text
stringlengths 2
1.05M
|
|---|
/*
* Nitobi Complete UI 1.0
* Copyright(c) 2008, Nitobi
* support@nitobi.com
*
* http://www.nitobi.com/license
*/
/**
* Constructs a Selection object.
* @class A Selection represents the cells of a Grid that are currently
* selected. This class can be used to programatically select a region of
* cells.
* @constructor
*/
nitobi.treegrid.Selection = function(owner, dragFillEnabled)
{
nitobi.treegrid.Selection.baseConstructor.call(this,owner);
/**
* @private
*/
this.owner = owner;
var t = new Date();
/**
* Specifies whether the selection is in the active selecting state or not.
* @private
*/
this.selecting = false;
/**
* Specifies whether the selection is being expanded or not. During expansion
* the expanding and selection flags will be true.
* @private
*/
this.expanding = false;
/**
* @private
*/
this.resizingRow = false;
/**
* @private
*/
this.created=false;
/**
* @private
*/
this.freezeTop = this.owner.getfreezetop();
/**
* @private
*/
this.freezeLeft = this.owner.getFrozenLeftColumnCount();
/**
* @private
*/
this.rowHeight = 23;
/**
* Event that fires when an existing selection has been expanded using the mouse.
*/
this.onAfterExpand = new nitobi.base.Event();
/**
* Event that fires when a selection expansion starts.
*/
this.onBeforeExpand = new nitobi.base.Event();
/**
* Event that fires when a mouseup event fires on the selection.
*/
this.onMouseUp = new nitobi.base.Event();
/**
* The bottom right cell of the selection when an expansion is started.
* @private
*/
this.expandEndCell = null;
/**
* The top left cell of the selection when an expansion is started.
* @private
*/
this.expandStartCell = null;
/**
* @private
*/
this.dragFillEnabled = dragFillEnabled || false;
};
nitobi.lang.extend(nitobi.treegrid.Selection, nitobi.collections.CellSet);
/**
* Sets the endpoints of the set of cells on the grid to which the selection refers.
* @param startRow {int} The row index of the start cell of the set.
* @param startColumn {int} The column index of the start column of the set.
* @param endRow {int} The row index of the end cell of the set.
* @param endColumn {int} The column index of the end cell of the set.
*/
nitobi.treegrid.Selection.prototype.setRange = function(startRow, startColumn, endRow, endColumn, surfacePath)
{
nitobi.treegrid.Selection.base.setRange.call(this, startRow, startColumn, endRow, endColumn);
this.startCell = this.owner.getCellElement(startRow, startColumn, surfacePath);
this.endCell = this.owner.getCellElement(endRow, endColumn, surfacePath);
};
/**
* Sets the endpoints of the selection based on the endpoints' DOM nodes.
* @private
* @param startCell {DOMElement} The DOM node representing the start cell of the selection
* @param endCell {DOMElement} The DOM node representing the end cell of the selection
*/
nitobi.treegrid.Selection.prototype.setRangeWithDomNodes = function(startCell, endCell, surfacePath)
{
this.setRange(nitobi.treegrid.Cell.getRowNumber(startCell), nitobi.treegrid.Cell.getColumnNumber(startCell), nitobi.treegrid.Cell.getRowNumber(endCell), nitobi.treegrid.Cell.getColumnNumber(endCell), surfacePath);
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.createBoxes = function ()
{
if (!this.created) {
var uid = this.owner.uid;
var H = nitobi.html;
// The expander grabby is the small handle in the bottom right of the selection used to drag fill
var boxexpanderGrabby = H.createElement("div", {"class":"ntb-treegrid-selection-grabby"})
this.expanderGrabbyEvents = [
{type:'mousedown', handler:this.handleGrabbyMouseDown},
{type:'mouseup', handler:this.handleGrabbyMouseUp},
{type:'click', handler:this.handleGrabbyClick}];
H.attachEvents(boxexpanderGrabby, this.expanderGrabbyEvents, this);
this.boxexpanderGrabby = boxexpanderGrabby;
this.box = this.createBox("selectbox"+uid);
this.boxl = this.createBox("selectboxl"+uid);
this.events = [
{type:'mousemove', handler:this.shrink},
{type:'mouseup', handler:this.handleSelectionMouseUp},
{type:'mousedown', handler:this.handleSelectionMouseDown},
{type:'click', handler:this.handleSelectionClick},
{type:'dblclick', handler:this.handleDblClick}];
H.attachEvents(this.box, this.events, this);
H.attachEvents(this.boxl, this.events, this);
var sv = this.owner.scroller.surface.view;
sv.midcenter.surface.appendChild(this.box);
sv.midleft.surface.appendChild(this.boxl);
this.clear();
this.created=true;
}
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.createBox = function (id)
{
// boxBorder is the outer container for the selections
var boxBorder;
var cell;
// In IE quirksmode and IE6 use a div for the selection rather than a table ...
if (nitobi.browser.IE) {
cell = boxBorder = document.createElement("div");
} else {
boxBorder = nitobi.html.createTable({"cellpadding":0,"cellspacing":0,"border":0}, {"backgroundColor":"transparent"});
cell = boxBorder.rows[0].cells[0];
}
boxBorder.className = "ntb-treegrid-selection ntb-treegrid-selection-border";
boxBorder.setAttribute("id", "ntb-treegrid-selection-"+id);
var boxBackground = nitobi.html.createElement("div", {"id":id, "class":"ntb-treegrid-selection-background"});
cell.appendChild(boxBackground);
return boxBorder;
}
/**
* Clears the selected boxes from the document.
* This will detach any events and remove the boxes from the DOM whenever actions
* such as insert, delete, refresh, sort, or paging are performed.
*/
nitobi.treegrid.Selection.prototype.clearBoxes = function()
{
if (this.box != null)
this.clearBox(this.box);
if (this.boxl != null)
this.clearBox(this.boxl);
this.created = false;
delete this.box;
delete this.boxl;
this.box = null;
this.boxl = null;
}
/**
* Clears the specified selection box by detaching events and then removing
* from the DOM.
*/
nitobi.treegrid.Selection.prototype.clearBox = function(box)
{
nitobi.html.detachEvents(box, this.events);
if (box.parentNode != null)
{
box.parentNode.removeChild(box);
}
box = null;
}
/**
* Handles the mousedown event on the expand selection grabby.
*/
nitobi.treegrid.Selection.prototype.handleGrabbyMouseDown = function(evt)
{
this.selecting = true;
this.setExpanding(true, "vert");
var topLeft = this.getTopLeftCell();
var btmRight = this.getBottomRightCell();
this.expandStartCell = topLeft;
this.expandEndCell = btmRight;
var scrollSurface = this.owner.getScrollSurface();
// TODO: this will be more complicated with multiple selections available
this.expandStartCoords = nitobi.html.getBoundingClientRect(this.box,scrollSurface.scrollTop+document.body.scrollTop, scrollSurface.scrollLeft+document.body.scrollLeft);
this.expandStartHeight = Math.abs(topLeft.getRow() - btmRight.getRow()) + 1;
this.expandStartWidth = Math.abs(topLeft.getColumn() - btmRight.getColumn()) + 1;
this.expandStartTopRow = topLeft.getRow();
this.expandStartBottomRow = btmRight.getRow();
this.expandStartLeftColumn = topLeft.getColumn();
this.expandStartRightColumn = btmRight.getColumn();
var Cell = nitobi.treegrid.Cell;
// When we start expanding the top left needs to be made into the start cell
if (Cell.getRowNumber(this.startCell) > Cell.getRowNumber(this.endCell))
{
var tmpCell = this.startCell;
this.startCell = this.endCell;
this.endCell = tmpCell;
}
this.onBeforeExpand.notify(this);
// This is commented out for Safari
// nitobi.html.cancelEvent(evt);
// return false;
}
/**
* Handles the mouseup event on the expand selection grabby.
*/
nitobi.treegrid.Selection.prototype.handleGrabbyMouseUp = function(evt)
{
if (this.expanding)
{
// This event will bubble up to the selection mouseUp event where it will stop the selecting
this.selecting = false;
this.setExpanding(false);
this.onAfterExpand.notify({source:this, surfacePath:nitobi.treegrid.Cell.getSurfacePath(this.startCell)});
}
}
/**
* Handles the click event on the selection expansion grabby.
*/
nitobi.treegrid.Selection.prototype.handleGrabbyClick = function(evt)
{
// This is commented out for Safari
//nitobi.html.cancelEvent(evt);
}
/**
* Expands the area of the selection to the location of the mouse. This could be limited to either vertical or horizontal expansion like Excel.
* @private
*/
nitobi.treegrid.Selection.prototype.expand = function(cell, dir) {
this.setExpanding(true, dir);
var Cell = nitobi.treegrid.Cell;
var endCell;
// Theses are the variables that keep track of the original coords of the selection when expansion started
var expandStartTopRow = this.expandStartTopRow, expandStartLeftColumn = this.expandStartLeftColumn;
var expandStartBottomRow = this.expandStartBottomRow, expandStartRightColumn = this.expandStartRightColumn;
// Get the end column and row numbers
var endRow = Cell.getRowNumber(this.endCell), endColumn = Cell.getColumnNumber(this.endCell);
// Get the start column and row numbers
var startRow = Cell.getRowNumber(this.startCell), startColumn = Cell.getColumnNumber(this.startCell);
// Get the new end column
var newEndColumn = Cell.getColumnNumber(cell);
// Get the new end row
var newEndRow = Cell.getRowNumber(cell);
// Get the surface path
var surfacePath = Cell.getSurfacePath(cell);
var newStartColumn = startColumn, newStartRow = startRow;
var o = this.owner;
if (dir == "horiz") {
// We are expanding horizontal
if (startColumn < endColumn & newEndColumn < startColumn) {
// We are expanding to the left back on ourselves so the start and end cells need to be switched.
this.changeEndCellWithDomNode(o.getCellElement(expandStartBottomRow, newEndColumn, surfacePath));
this.changeStartCellWithDomNode(o.getCellElement(expandStartTopRow, expandStartRightColumn, surfacepath));
} else if (startColumn > endColumn && newEndColumn > startColumn) {
// We are expanding to the right back on ourselves so the start and end cells need to be switched.
this.changeEndCellWithDomNode(o.getCellElement(expandStartBottomRow, newEndColumn, surfacePath));
this.changeStartCellWithDomNode(o.getCellElement(expandStartTopRow, expandStartLeftColumn, surfacePath));
} else {
// We are expanding away from the start cell so choose the row furthest from the start row
this.changeEndCellWithDomNode(o.getCellElement((startRow==expandStartBottomRow?expandStartTopRow:expandStartBottomRow), newEndColumn, surfacePath));
}
} else {
// We are expanding vertical
if (startRow < endRow & newEndRow < startRow) {
// We are expanding to the top back on ourselves so the start and end cells need to be switched.
this.changeEndCellWithDomNode(o.getCellElement(newEndRow, expandStartRightColumn, surfacePath));
this.changeStartCellWithDomNode(o.getCellElement(expandStartBottomRow, expandStartLeftColumn, surfacePath));
} else if (startRow > endRow && newEndRow > startRow) {
// We are expanding to the bottom back on ourselves so the start and end cells need to be switched.
this.changeEndCellWithDomNode(o.getCellElement(newEndRow, expandStartRightColumn, surfacePath));
this.changeStartCellWithDomNode(o.getCellElement(expandStartTopRow, expandStartLeftColumn, surfacePath));
} else {
// We are expanding away from the start cell so choose the column furthest from the start column
this.changeEndCellWithDomNode(o.getCellElement(newEndRow, (startColumn==expandStartRightColumn?expandStartLeftColumn:expandStartRightColumn), surfacePath));
}
}
this.alignBoxes();
}
/**
* Shrinks the area of the selection down to the location of the mouse.
* @private
*/
nitobi.treegrid.Selection.prototype.shrink = function(evt)
{
// This is for Firefox where the selection expand border is a bit bigger than the selection so it can cause
// shrink to be called instead of expand because the expand border is 1px over the next cell where expand should be fired
if (nitobi.html.Css.hasClass(evt.srcElement, "ntb-treegrid-selection-border") || nitobi.html.Css.hasClass(evt.srcElement, "ntb-treegrid-selection-grabby")) return;
// First make sure that the start and end cell are not the same - ie we have a selection
// Also check that we are in "selecting" mode
if(this.endCell != this.startCell && this.selecting)
{
var scrollSurface = this.owner.getScrollSurface();
var Cell = nitobi.treegrid.Cell;
// Get the end column and row numbers
var endRow = Cell.getRowNumber(this.endCell), endColumn = Cell.getColumnNumber(this.endCell);
// Get the start column and row numbers
var startRow = Cell.getRowNumber(this.startCell), startColumn = Cell.getColumnNumber(this.startCell);
// Get the event coords that cause this function to be called
var eventCoords = nitobi.html.getEventCoords(evt);
var evtY = eventCoords.y, evtX = eventCoords.x;
if (nitobi.browser.IE || document.compatMode == "BackCompat") {
// TODO: How did this get past us for so long? I guess we never really scrolled in IE?
evtY = evt.clientY, evtX = evt.clientX;
}
// Get the bounding rect of the endCell in our selection
var endCellRect = nitobi.html.getBoundingClientRect(this.endCell,scrollSurface.scrollTop+document.body.scrollTop, scrollSurface.scrollLeft+document.body.scrollLeft);
var endCellRectTop = endCellRect.top, endCellRectLeft = endCellRect.left;
// Check if we are shrinking from the bottom up
if (endRow > startRow && evtY < endCellRectTop)
// The 4 here is a hack for the selection expansion when we are expanding up.
endRow = endRow - Math.floor(((endCellRectTop-4) - evtY)/this.rowHeight)-1;
// of if we are shrinking from the top down
else if (evtY > endCellRect.bottom)
endRow = endRow + Math.floor((evtY - endCellRectTop)/this.rowHeight);
// Check if we are shrinking from right to left
if (endColumn > startColumn && evtX < endCellRectLeft)
endColumn --;
// or if we are shrinking from left to right
else if (evtX > endCellRect.right)
endColumn ++;
// At this point we have got the new end and start cells from the normal selection process.
if (this.expanding) {
// If the coords of the event are inside the original selection just forget about it...
// This is the top left row and column of the expansion selection
var expandStartCellRow = this.expandStartCell.getRow(), expandStartCellColumn = this.expandStartCell.getColumn();
// This is the bottom right row and column of the expansion selection
var expandEndCellRow = this.expandEndCell.getRow(), expandEndCellColumn = this.expandEndCell.getColumn();
if (endColumn >= this.expandStartLeftColumn && endColumn <= this.expandStartRightColumn) {
// The endColumn is inside of the original selection so we need to limit the selection to at least that width
if (endColumn >= startColumn && endColumn < expandEndCellColumn) {
// When we have selected from left to right (ie startColum < endColumn) and then contract back into the
// selection, force the selection width to the original selection
endColumn = expandEndCellColumn;
} else if (endColumn <= startColumn && endColumn > expandStartCellColumn) {
// When we have selected from right to left (ie endColumn < startColum) and then contract back into the
// selection, force the selection width to the original selection
endColumn = expandStartCellColumn;
}
// When the end column is moving back past the start of the original selection we can change the end Column
if (endColumn >= startColumn && endColumn <= this.expandStartRightColumn) {
// The we are shrinking from the left to right
endColumn = this.expandStartRightColumn;
}
}
if (endRow >= this.expandStartTopRow && endRow <= this.expandStartBottomRow) {
// The endRow is inside of the original selection so we need to limit the selection to at least that height
// TODO: There are some edge cases here with the <= >= cases ...
if (startRow < endRow && endRow <= expandEndCellRow) {
// When we have selected from top to bottom (ie startRow < endRow) and then contract back into the
// selection, force the selection height to the original selection
endRow = expandEndCellRow;
} else if (startRow > endRow && endRow >= expandStartCellRow) {
// When we have selected from bottom to top (ie endRow < startRow) and then contract back into the
// selection, force the selection height to the original selection
endRow = expandStartCellRow;
} else if (startRow == endRow) {
// We have to either set the endRow to the original top or bottom row
endRow = (startRow == expandStartCellRow?expandEndCellRow:expandStartCellRow)
}
}
}
var surfacePath = nitobi.treegrid.Cell.getSurfacePath(this.endCell);
var newEndCell = this.owner.getCellElement(endRow, endColumn, surfacePath);
var newStartCell = this.owner.getCellElement(startRow, startColumn, surfacePath);
if (newEndCell != null &&newEndCell != this.endCell || newStartCell != null && newStartCell != this.startCell)
{
this.changeEndCellWithDomNode(newEndCell);
this.changeStartCellWithDomNode(newStartCell);
// Align the selection boxes to the new selection start and end points
this.alignBoxes();
// TODO: need to take into account the reduction in size of the selection
// and scroll the grid over the left so that we can keep scrolling over
this.owner.ensureCellInView(newEndCell);
}
}
};
/**
* Returns the pixel height of the selection.
* @private
*/
nitobi.treegrid.Selection.prototype.getHeight = function()
{
// TODO: this is only if the mid-center viewport box is showing ...
var rect = nitobi.html.getBoundingClientRect(this.box);
return rect.top - rect.bottom;
}
/**
* Collapses the selection down to one cell
* @param cell {HtmlDomNode} (Optional) The HTML DOM node of the cell to collapse to. If omitted, the initial start cell of the selection is used.
*/
nitobi.treegrid.Selection.prototype.collapse = function(cell)
{
if (!cell)
{
cell = this.startCell;
}
if (!cell)
{
return;
}
var surfacePath = nitobi.treegrid.Cell.getSurfacePath(cell);
this.setRangeWithDomNodes(cell, cell, surfacePath);
// TODO: this needs to be cleaned up ...
if ((this.box==null) || (this.box.parentNode==null) || (this.boxl==null) || (this.boxl.parentNode==null))
{
this.created=false;
this.createBoxes();
}
this.alignBoxes();
this.selecting = false;
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.startSelecting = function (startCell, endCell)
{
this.selecting = true;
this.setRangeWithDomNodes(startCell,endCell);
this.shrink();
// document.body.attachEvent('onselectstart',function() {return false;});
};
/**
* Collapses the current selection onto the specified cell
* (DEPRECATED - use Selection.collapse(cell))
* @private
*/
nitobi.treegrid.Selection.prototype.clearSelection = function(cell)
{
this.collapse(cell);
};
/**
* Resize the current selection to the new specified end cell.
* @param {nitobi.treegrid.Cell} cell The cell to be the new end cell.
*/
nitobi.treegrid.Selection.prototype.resizeSelection = function(cell)
{
this.endCell = cell;
this.shrink();
};
/**
* Moves the current selection onto the specified cell
* (DEPRECATED - use Selection.collapse(cell))
* @private
*/
nitobi.treegrid.Selection.prototype.moveSelection = function(cell)
{
this.collapse(cell);
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.alignBoxes = function()
{
var endCell = this.endCell || this.startCell;
var sc = this.getCoords();
var topRow = sc.top.y;
var topCol = sc.top.x;
var bottomRow = sc.bottom.y;
var bottomCol = sc.bottom.x;
var standards = nitobi.lang.isStandards();
// This is take into account the border width in Standards mode
// Mozilla is nice cause the tables just align perfectly since they are magic but the tables in IE cause other problems...
// TODO: check on different style grids since it used to say IE && standards on the line below ...
var ox = oy = (nitobi.browser.IE?-1:0);
var ow = oh = (nitobi.browser.IE && standards?-1:1);
// TODO: these numbers depend on the border etc of the selection i think ...
if (nitobi.browser.SAFARI||nitobi.browser.CHROME) {
oy = ox = -1;
if (standards)
oh = ow = -1;
}
// IE6
// Standards
// ow = -1;
// oh = -1;
// IE6
// Quirks
// perfect
// IE7
// Standards
// perfect
// IE7
// quirks
// perfect
// FF
// Standards
// perfect - though the edit box is a bit weird
// FF
// Quirks
// perfect
if (bottomCol >= this.freezeLeft && bottomRow >= this.freezeTop) {
var e = this.box;
e.style.display="block";
this.align(e,this.startCell,endCell,0x11101000,oh,ow,oy,ox);
// Show the selection expander grabby in the mid center viewport
if (this.dragFillEnabled) (e.rows != null?e.rows[0].cells[0]:e).appendChild(this.boxexpanderGrabby);
} else {
this.box.style.display="none";
}
if (bottomCol < this.freezeLeft || topCol < this.freezeLeft) {
var e = this.boxl;
e.style.display="block";
this.align(e,this.startCell,endCell,0x11101000,oh,ow,oy,ox);
if (this.box.style.display == "none") {
// There is only left cells selected so show the selection expander grabby in the mid left viewport
if (this.dragFillEnabled) (e.rows != null?e.rows[0].cells[0]:e).appendChild(this.boxexpanderGrabby);
}
} else {
this.boxl.style.display="none";
}
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.redraw = function(cell)
{
if (!this.selecting)
this.setRangeWithDomNodes(cell,cell);
else
this.changeEndCellWithDomNode(cell);
this.alignBoxes();
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.changeStartCellWithDomNode = function(cell)
{
this.startCell = cell;
var Cell = nitobi.treegrid.Cell;
this.changeStartCell(Cell.getRowNumber(cell), Cell.getColumnNumber(cell));
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.changeEndCellWithDomNode = function(cell)
{
this.endCell = cell;
var Cell = nitobi.treegrid.Cell;
this.changeEndCell(Cell.getRowNumber(cell), Cell.getColumnNumber(cell));
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.init = function(cell)
{
this.createBoxes();
var t = new Date();
this.selecting = true;
this.setRangeWithDomNodes(cell, cell);
// this.alignBoxes();
};
/**
* Clears the current selection.
*/
nitobi.treegrid.Selection.prototype.clear = function()
{
// Clear Block
if (!this.box)
{
return;
}
var bs = this.box.style;
bs.display="none";
bs.top="-1000px";
bs.left="-1000px";
bs.width='1px';
bs.height='1px';
var bls = this.boxl.style;
bls.display="none";
bls.top="-1000px";
bls.left="-1000px";
bls.width='1px';
bls.height='1px';
this.selecting = false;
};
/**
* Handles single click mouse events on the selection.
* @param {Event} evt The browser event object.
*/
/**
* @private
*/
nitobi.treegrid.Selection.prototype.handleSelectionClick = function(evt)
{
if (!this.selected())
{
if (NTB_SINGLECLICK == null)
{
if (nitobi.browser.IE)
evt = nitobi.lang.copy(evt);
NTB_SINGLECLICK = window.setTimeout(nitobi.lang.close(this, this.edit, [evt]), 400);
}
} else {
// Otherwise collapse and go into selection mode ...
// Get the coords of the click and relate that to an underlying cell ...
this.collapse();
this.owner.focus();
}
};
/**
* Handles double click mouse events on the selection.
* @param {Event} evt The browser event object.
*/
nitobi.treegrid.Selection.prototype.handleDblClick = function(evt) {
if (!this.selected())
{
window.clearTimeout(NTB_SINGLECLICK);
NTB_SINGLECLICK = null;
if (this.owner.handleDblClick(evt))
this.edit(evt);
}
else
this.collapse();
}
/**
* Clears the single click flag and calls edit on the Grid.
* @param {Event} evt The browser event object.
*/
nitobi.treegrid.Selection.prototype.edit = function(evt)
{
NTB_SINGLECLICK = null;
// If an expander cell is selected, we should expand instead of editing.
if (this.owner.activeCell && this.owner.activeCell.getAttribute("ebatype") == "expander")
this.owner.toggleSurface(this.owner.activeCell);
else
this.owner.edit(evt);
}
/**
* Sets the endpoints of the set of cells in the grid's selection based on the params and displays the selection
* @param startCell {nitobi.treegrid.Cell} the start cell of the set
* @param endCell {nitobi.treegrid.Cell} the end cell of the set
*/
nitobi.treegrid.Selection.prototype.select = function(startCell,endCell)
{
this.selectWithCoords(startCell.getRowNumber(), startCell.getColumnNumber(), endCell.getRowNumber(), endCell.getColumnNumber());
};
/**
* Sets the endpoints of the set of cells in the grid's selection and displays the selection
* @param startRow {int} The row index of the start cell of the set.
* @param startColumn {int} The column index of the start column of the set.
* @param endRow {int} The row index of the end cell of the set.
* @param endColumn {int} The column index of the end cell of the set.
*/
nitobi.treegrid.Selection.prototype.selectWithCoords = function(startRow, startColumn, endRow, endColumn, surfacePath)
{
this.setRange(startRow, startColumn, endRow, endColumn, surfacePath);
this.createBoxes();
this.alignBoxes();
};
/**
* called by mouseup event to stop the selection
* @private
*/
nitobi.treegrid.Selection.prototype.handleSelectionMouseUp = function(evt)
{
// This event will fire either directly or as the mouseup event bubbles up from the selection expansion grabby
// When it is direct we may need to also cause the selection expansion to stop expanding
if (this.expanding) {
this.handleGrabbyMouseUp(evt);
}
this.stopSelecting();
this.onMouseUp.notify(this);
};
// TODO: this should start it into selection mode ...
nitobi.treegrid.Selection.prototype.handleSelectionMouseDown = function(evt) {
// TODO: we cancel here to prevent from bubbling to the grid - this may be bad but was causing a weird data movement problem
// This is commented out for Safari
//nitobi.html.cancelEvent(evt);
//this.selecting = true;
}
nitobi.treegrid.Selection.prototype.stopSelecting = function()
{
this.selecting = true;
if (!this.selected())
this.collapse(this.startCell);
this.selecting = false;
}
/**
* Returns the Cell on which the selection started - this may not be equal to the top left cell of the selection in
* the case that the selection was created from bottom right to top left.
* @type {nitobi.treegrid.Cell}
*/
nitobi.treegrid.Selection.prototype.getStartCell = function()
{
return this.startCell;
}
/**
* Returns the Cell on which the selection ended - this may not be equal to the bottom right
* cell of the selection in the case that the selection was created from top left to bottom right.
* @type {nitobi.treegrid.Cell}
*/
nitobi.treegrid.Selection.prototype.getEndCell = function()
{
return this.endCell;
}
/**
* Returns the top left Cell of the selection.
* @type {nitobi.treegrid.Cell}
*/
nitobi.treegrid.Selection.prototype.getTopLeftCell = function()
{
var coords = this.getCoords();
var surfacePath = nitobi.treegrid.Cell.getSurfacePath(this.startCell);
var surface = this.owner.scroller.getSurface(surfacePath);
return new nitobi.treegrid.Cell(this.owner, coords.top.y, coords.top.x, surface);
}
/**
* Returns the bottom right Cell of the selection.
* @type {nitobi.treegrid.Cell}
*/
nitobi.treegrid.Selection.prototype.getBottomRightCell = function()
{
var coords = this.getCoords();
var surfacePath = nitobi.treegrid.Cell.getSurfacePath(this.startCell);
var surface = this.owner.scroller.getSurface(surfacePath);
return new nitobi.treegrid.Cell(this.owner, coords.bottom.y, coords.bottom.x, surface);
}
/**
* Returns the number of rows high that the selection is.
*/
nitobi.treegrid.Selection.prototype.getHeight = function()
{
var coords = this.getCoords();
return coords.bottom.y - coords.top.y + 1;
}
/**
* Returns the number of columns wide that the selection is.
*/
nitobi.treegrid.Selection.prototype.getWidth = function()
{
var coords = this.getCoords();
return coords.bottom.x - coords.top.x + 1;
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.getRowByCoords = function(oCell)
{
return(oCell.parentNode.offsetTop/oCell.parentNode.offsetHeight);
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.getColumnByCoords = function (oCell)
{
var nOffset=(this.indicator?-2:0);
if(oCell.parentNode.parentNode.getAttribute('id').substr(0,6)!="freeze") {
nOffset+=2-(this.freezeColumn*3);
} else {
nOffset+=2;
}
return Math.floor((oCell.sourceIndex-oCell.parentNode.sourceIndex-nOffset)/3);
};
/**
* @private
*/
nitobi.treegrid.Selection.prototype.selected = function()
{
return (this.endCell == this.startCell)?false:true;
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.setRowHeight = function(rowHeight)
{
this.rowHeight = rowHeight;
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.getRowHeight = function()
{
return this.rowHeight;
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.setExpanding = function(val, dir)
{
if (val && this.expanding) return;
this.expanding = val;
this.expandingVertical = (dir == "horiz"?false:true);
var C = nitobi.html.Css;
var regular = "ntb-treegrid-selection-border";
var active = regular + "-active";
if (val) {
C.swapClass(this.box, regular, active);
C.swapClass(this.boxl, regular, active);
} else {
C.swapClass(this.box, active, regular);
C.swapClass(this.boxl, active, regular);
}
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.dispose = function()
{
}
/**
* @private
*/
nitobi.treegrid.Selection.prototype.align = function(source,target1,target2,AlignBit_HWTBLRCM,oh,ow,oy,ox,show) {
//try {
oh=oh || 0;
ow=ow || 0;
oy=oy || 0;
ox=ox || 0;
var a=AlignBit_HWTBLRCM;
var td,sd,tt,tb,tl,tr,th,tw,st,sb,sl,sr,sh,sw;
if(!target1 || (nitobi.lang.typeOf(target1) != nitobi.lang.type.HTMLNODE))
{
return;
}
ntbAssert(Boolean(target1.parentNode) && Boolean(target2.parentNode) && Boolean(source.parentNode),"Couldn't align selection. The parentnode has vanished. Most likely this is due to refilter.");
ad=nitobi.html.getBoundingClientRect(target1);
bd=nitobi.html.getBoundingClientRect(target2);
sd=nitobi.html.getBoundingClientRect(source);
at=ad.top;
ab=ad.bottom;
al=ad.left;
ar=ad.right;
// ah=Math.abs(ab-at);
// aw=Math.abs(ar-al);
bt=bd.top;
bb=bd.bottom;
bl=bd.left;
br=bd.right;
// bh=Math.abs(bb-bt);
// bw=Math.abs(br-bl);
tt=ad.top;
tb=bd.bottom;
tl=ad.left;
tr=bd.right;
th=Math.abs(tb-tt);
tw=Math.abs(tr-tl);
st=sd.top;
sb=sd.bottom;
sl=sd.left;
sr=sd.right;
sh=Math.abs(sb-st);
sw=Math.abs(sr-sl);
var H = nitobi.html;
if (a&0x10000000) source.style.height = (Math.max(bb-at,ab-bt)+oh)+'px'; // make same height
if (a&0x01000000) source.style.width = (Math.max(br-al,ar-bl)+ow)+'px'; // make same width
if (a&0x00100000) source.style.top = (H.getStyleTop(source)+Math.min(tt,bt)-st+oy) + 'px'; // align top
if (a&0x00010000) source.style.top = (H.getStyleTop(source)+tt-st+th-sh+oy) + 'px'; // align bottom
if (a&0x00001000) source.style.left = (H.getStyleLeft(source)-sl+Math.min(tl,bl)+ox) + 'px'; // align left
if (a&0x00000100) source.style.left = (H.getStyleLeft(source)-sl+tl+tw-sw+ox) + 'px'; // align right
if (a&0x00000010) source.style.top = (H.getStyleTop(source)+tt-st+oy+Math.floor((th-sh)/2)) + 'px'; // align middle vertically
if (a&0x00000001) source.style.left = (H.getStyleLeft(source)-sl+tl+ox+Math.floor((tw-sw)/2)) + 'px'; // align middle horizontally
//} catch (err) {
//}
}
|
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* @fileoverview Data and controllers for the Oppia admin page.
*/
oppia.constant('ADMIN_HANDLER_URL', '/adminhandler');
oppia.constant('ADMIN_ROLE_HANDLER_URL', '/adminrolehandler');
oppia.constant('PROFILE_URL_TEMPLATE', '/profile/<username>');
oppia.constant(
'ADMIN_JOB_OUTPUT_URL_TEMPLATE', '/adminjoboutput?job_id=<jobId>');
oppia.constant(
'ADMIN_TOPICS_CSV_DOWNLOAD_HANDLER_URL', '/admintopicscsvdownloadhandler');
oppia.controller('Admin', [
'$scope', '$http', '$location', 'AdminRouterService', 'DEV_MODE',
function($scope, $http, $location, AdminRouterService, DEV_MODE) {
$scope.userEmail = GLOBALS.USER_EMAIL;
$scope.logoutUrl = GLOBALS.LOGOUT_URL;
$scope.inDevMode = DEV_MODE;
$scope.statusMessage = '';
$scope.isActivitiesTabOpen = AdminRouterService.isActivitiesTabOpen;
$scope.isJobsTabOpen = AdminRouterService.isJobsTabOpen;
$scope.isConfigTabOpen = AdminRouterService.isConfigTabOpen;
$scope.isRolesTabOpen = AdminRouterService.isRolesTabOpen;
$scope.isMiscTabOpen = AdminRouterService.isMiscTabOpen;
$scope.setStatusMessage = function(statusMessage) {
$scope.statusMessage = statusMessage;
};
$scope.$on('$locationChangeSuccess', function() {
AdminRouterService.showTab($location.path().replace('/', '#'));
});
}
]);
|
/**
* Lightbox for Pinry
* Descrip: A lightbox plugin for pinry so that I don't have to rely on some of
* the massive code bases of other lightboxes, this one uses data
* fields to acquire the info we need and dynamically loads comments.
* It also has a nice parallax view mode where the top scrolls and the
* background stays stationary.
* Authors: Pinry Contributors
* Updated: Feb 4th, 2016
* Require: jQuery, Pinry JavaScript Helpers
*/
$(window).load(function() {
// Start Helper Functions
function freezeScroll(freeze) {
freeze = typeof freeze !== 'undefined' ? freeze : true;
if (freeze) {
$('body').data('scroll-level', $(window).scrollTop());
$('#pins').css({
'position': 'fixed',
'margin-top': -$('body').data('scroll-level')
});
$(window).scrollTop(0);
/* disable the global pin-loading scroll handler so we don't
load pins when scrolling a selected image */
$(window).off('scroll');
} else {
$('#pins').css({
'position': 'static',
'margin-top': 0
});
$(window).scrollTop($('body').data('scroll-level'));
/* enable the pin-loading scroll handler unless we've already
loaded all pins from the server (in which case an element
with id 'the-end' exists */
var theEnd = document.getElementById('the-end');
if (!theEnd) {
$(window).scroll(scrollHandler);
}
}
}
// End Helper Functions
// Start View Functions
function createBox(context) {
freezeScroll();
$('body').append(renderTemplate('#lightbox-template', context));
var box = $('.lightbox-background');
box.css('height', $(document).height());
$('.lightbox-image-wrapper').css('height', context.image.standard.height);
box.fadeIn(200);
$('.lightbox-image').load(function() {
$(this).fadeIn(200);
});
$('.lightbox-wrapper').css({
'width': context.image.standard.width,
'margin-top': 80,
'margin-bottom': 80,
'margin-left': -context.image.standard.width/2
});
if ($('.lightbox-wrapper').height()+140 > $(window).height())
$('.lightbox-background').height($('.lightbox-wrapper').height()+160);
box.click(function() {
$(this).fadeOut(200);
setTimeout(function() {
box.remove();
}, 200);
freezeScroll(false);
});
}
// End View Functions
// Start Global Init Function
window.lightbox = function() {
var links = $('body').find('.lightbox');
if (pinFilter) {
var promise = getPinData(pinFilter);
promise.success(function(pin) {
createBox(pin);
});
promise.error(function() {
message('Problem problem fetching pin data.', 'alert alert-danger');
});
}
return links.each(function() {
$(this).off('click');
$(this).click(function(e) {
e.preventDefault();
var promise = getPinData($(this).data('id'));
promise.success(function(pin) {
createBox(pin);
});
promise.error(function() {
message('Problem problem fetching pin data.', 'alert alert-danger');
});
});
});
}
// End Global Init Function
});
|
const CompositeDisposable = require("atom").CompositeDisposable;
module.exports = {
activate: function() {
this.subscriptions = new CompositeDisposable();
this.subscriptions.add(
atom.commands.add("atom-workspace", {
"ascii-hex:asciiToHex": this.convertToHex.bind(null),
"ascii-hex:hexToAscii": this.convertToAscii.bind(null)
})
);
},
convertToHex: function(n) {
var activeEditor = atom.workspace.getActiveTextEditor();
if (activeEditor == null)
return;
var selection = activeEditor.getSelectedText();
if (selection.length == 0)
return;
var asciiData = selection.toString();
var result = [];
for (var n = 0, l = asciiData.length; n < l; n ++)
result.push(Number(asciiData.charCodeAt(n)).toString(16));
// console.log("result " + result);
activeEditor.insertText(result.join(''));
},
convertToAscii: function(n) {
var activeEditor = atom.workspace.getActiveTextEditor();
if (activeEditor == null)
return;
var selection = activeEditor.getSelectedText();
if (selection.length == 0)
return;
var hexData = selection.toString();
var result = '';
for (var i = 0; i < hexData.length; i += 2)
result += String.fromCharCode(parseInt(hexData.substr(i, 2), 16));
// console.log("result " + result);
activeEditor.insertText(result);
}
};
|
import React from 'react'
import styled from 'styled-components'
import _ from 'lodash'
const Holder = styled.div``
const GeneralButton = styled.button`
color: gray;
font-size: 1em;
margin: 5px;
padding: 5px;
border: 2px solid gray;
border-radius: 3px;
`
const ArrayList = (item, readyOnly, label, onChange) => {
if(item.length === 0 ){
return (
<Holder />
)
}
const onDoubleClick = (_item, event) => {
if(!readyOnly){
if(
window.confirm(
'Do you want to delete this option ' + _item + ' permantly?'
)
) {
var _i = item.filter( i => {
var i_ = Object.entries(i)
return _item !== i_[0][1]
})
onChange(label, _i)
}
}
}
return Object.keys(item).map((key, i) => {
return (
<GeneralButton
key={key}
onDoubleClick={e => onDoubleClick(Object.values(item[i])[0], e)}
>
{Object.values(item[i])[0]}
</GeneralButton>
)
})
}
export default ArrayList
|
import EventEmitter from 'safe-event-emitter'
import { ObservableStore } from '@metamask/obs-store'
import ethUtil from 'ethereumjs-util'
import Transaction from 'ethereumjs-tx'
import EthQuery from 'ethjs-query'
import { ethErrors } from 'eth-json-rpc-errors'
import abi from 'human-standard-token-abi'
import abiDecoder from 'abi-decoder'
abiDecoder.addABI(abi)
import TransactionStateManager from './tx-state-manager'
import TxGasUtil from './tx-gas-utils'
const PendingTransactionTracker = require('./pending-tx-tracker')
import NonceTracker from 'nonce-tracker'
import * as txUtils from './lib/util'
import {
TRANSACTION_STATUSES,
TRANSACTION_TYPES,
} from '../../../../shared/constants/transaction'
import cleanErrorStack from '../../lib/cleanErrorStack'
import log from 'loglevel'
const recipientBlacklistChecker = require('./lib/recipient-blacklist-checker')
const {
TRANSACTION_TYPE_RETRY,
} = require('./enums')
const { hexToBn, bnToHex, BnMultiplyByFraction } = require('../../lib/util')
/**
Transaction Controller is an aggregate of sub-controllers and trackers
composing them in a way to be exposed to the metamask controller
<br>- txStateManager
responsible for the state of a transaction and
storing the transaction
<br>- pendingTxTracker
watching blocks for transactions to be include
and emitting confirmed events
<br>- txGasUtil
gas calculations and safety buffering
<br>- nonceTracker
calculating nonces
@class
@param {Object} opts
@param {Object} opts.initState - initial transaction list default is an empty array
@param {Object} opts.networkStore - an observable store for network number
@param {Object} opts.blockTracker - An instance of eth-blocktracker
@param {Object} opts.provider - A network provider.
@param {Function} opts.signTransaction - function the signs an ethereumjs-tx
@param {Object} opts.getPermittedAccounts - get accounts that an origin has permissions for
@param {Function} opts.signTransaction - ethTx signer that returns a rawTx
@param {number} [opts.txHistoryLimit] - number *optional* for limiting how many transactions are in state
@param {Object} opts.preferencesStore
*/
class TransactionController extends EventEmitter {
constructor (opts) {
super()
this.networkStore = opts.networkStore || new ObservableStore({})
this.preferencesStore = opts.preferencesStore || new ObservableStore({})
this.provider = opts.provider
this.blockTracker = opts.blockTracker
this.signEthTx = opts.signTransaction
this.getGasPrice = opts.getGasPrice
this.memStore = new ObservableStore({})
this.query = new EthQuery(this.provider)
this.txGasUtil = new TxGasUtil(this.provider)
this._mapMethods()
this.txStateManager = new TransactionStateManager({
initState: opts.initState,
txHistoryLimit: opts.txHistoryLimit,
getNetwork: this.getNetwork.bind(this),
})
this._onBootCleanUp()
this.store = this.txStateManager.store
this.nonceTracker = new NonceTracker({
provider: this.provider,
blockTracker: this.blockTracker,
getPendingTransactions: this.txStateManager.getPendingTransactions.bind(this.txStateManager),
getConfirmedTransactions: this.txStateManager.getConfirmedTransactions.bind(this.txStateManager),
})
this.pendingTxTracker = new PendingTransactionTracker({
provider: this.provider,
nonceTracker: this.nonceTracker,
publishTransaction: (rawTx) => this.query.sendRawTransaction(rawTx),
getPendingTransactions: this.txStateManager.getPendingTransactions.bind(this.txStateManager),
getCompletedTransactions: this.txStateManager.getConfirmedTransactions.bind(this.txStateManager),
})
this.txStateManager.store.subscribe(() => this.emit('update:badge'))
this._setupListeners()
// memstore is computed from a few different stores
this._updateMemstore()
this.txStateManager.store.subscribe(() => this._updateMemstore())
this.networkStore.subscribe(() => this._updateMemstore())
this.preferencesStore.subscribe(() => this._updateMemstore())
// request state update to finalize initialization
this._updatePendingTxsAfterFirstBlock()
}
/**
* Gets the current chainId in the network store as a number, returning 0 if
* the chainId parses to NaN.
*
* @returns {number} The numerical chainId.
*/
getChainId () {
const networkState = this.networkStore.getState()
const getChainId = parseInt(networkState)
if (Number.isNaN(getChainId)) {
return 0
} else {
return getChainId
}
}
/**
Adds a tx to the txlist
@emits ${txMeta.id}:unapproved
*/
addTx (txMeta) {
this.txStateManager.addTx(txMeta)
this.emit(`${txMeta.id}:unapproved`, txMeta)
}
/**
Wipes the transactions for a given account
@param {string} address - hex string of the from address for txs being removed
*/
wipeTransactions (address) {
this.txStateManager.wipeTransactions(address)
}
/**
* Add a new unapproved transaction to the pipeline
*
* @returns {Promise<string>} the hash of the transaction after being submitted to the network
* @param {Object} txParams - txParams for the transaction
* @param {Object} opts - with the key origin to put the origin on the txMeta
*/
async newUnapprovedTransaction (txParams, opts = {}) {
log.debug(
`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`,
)
const initialTxMeta = await this.addUnapprovedTransaction(
txParams,
opts.origin,
)
// listen for tx completion (success, fail)
return new Promise((resolve, reject) => {
this.txStateManager.once(
`${initialTxMeta.id}:finished`,
(finishedTxMeta) => {
switch (finishedTxMeta.status) {
case TRANSACTION_STATUSES.SUBMITTED:
return resolve(finishedTxMeta.hash)
case TRANSACTION_STATUSES.REJECTED:
return reject(
cleanErrorStack(
ethErrors.provider.userRejectedRequest(
'MetaMask Tx Signature: User denied transaction signature.',
),
),
)
case TRANSACTION_STATUSES.FAILED:
return reject(
cleanErrorStack(
ethErrors.rpc.internal(finishedTxMeta.err.message),
),
)
default:
return reject(
cleanErrorStack(
ethErrors.rpc.internal(
`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(
finishedTxMeta.txParams,
)}`,
),
),
)
}
},
)
})
}
/**
* Validates and generates a txMeta with defaults and puts it in txStateManager
* store.
*
* @returns {txMeta}
*/
async addUnapprovedTransaction (txParams) {
// validate
const normalizedTxParams = txUtils.normalizeTxParams(txParams)
// Assert the from address is the selected address
if (normalizedTxParams.from !== this.getSelectedAddress()) {
throw new Error(`Transaction from address isn't valid for this account`)
}
txUtils.validateTxParams(normalizedTxParams)
// construct txMeta
let txMeta = this.txStateManager.generateTxMeta({
txParams: normalizedTxParams,
type: TRANSACTION_TYPES.STANDARD,
})
this.addTx(txMeta)
this.emit('newUnapprovedTx', txMeta)
try {
// check whether recipient account is blacklisted
recipientBlacklistChecker.checkAccount(txMeta.metamaskNetworkId, normalizedTxParams.to)
// add default tx params
txMeta = await this.addTxGasDefaults(txMeta)
} catch (error) {
log.warn(error)
this.txStateManager.setTxStatusFailed(txMeta.id, error)
throw error
}
txMeta.loadingDefaults = false
// save txMeta
this.txStateManager.updateTx(txMeta)
return txMeta
}
/**
* Adds the tx gas defaults: gas && gasPrice
* @param {Object} txMeta - the txMeta object
* @returns {Promise<object>} resolves with txMeta
*/
async addTxGasDefaults (txMeta) {
const txParams = txMeta.txParams
// ensure value
txParams.value = txParams.value ? ethUtil.addHexPrefix(txParams.value) : '0x0'
txMeta.gasPriceSpecified = Boolean(txParams.gasPrice)
let gasPrice = txParams.gasPrice
if (!gasPrice || gasPrice === '0x0') {
gasPrice = this.getGasPrice ? await this.getGasPrice() : await this.query.gasPrice()
}
txParams.gasPrice = ethUtil.addHexPrefix(gasPrice.toString(16))
// set gasLimit
return await this.txGasUtil.analyzeGasUsage(txMeta)
}
/**
Creates a new txMeta with the same txParams as the original
to allow the user to resign the transaction with a higher gas values
@param originalTxId {number} - the id of the txMeta that
you want to attempt to retry
@return {txMeta}
*/
async retryTransaction (originalTxId) {
const originalTxMeta = this.txStateManager.getTx(originalTxId)
const lastGasPrice = originalTxMeta.txParams.gasPrice
const txMeta = this.txStateManager.generateTxMeta({
txParams: originalTxMeta.txParams,
lastGasPrice,
loadingDefaults: false,
type: TRANSACTION_TYPE_RETRY,
})
this.addTx(txMeta)
this.emit('newUnapprovedTx', txMeta)
return txMeta
}
/**
* Creates a new approved transaction to attempt to cancel a previously submitted transaction. The
* new transaction contains the same nonce as the previous, is a basic ETH transfer of 0x value to
* the sender's address, and has a higher gasPrice than that of the previous transaction.
* @param {number} originalTxId - the id of the txMeta that you want to attempt to cancel
* @param {string} [customGasPrice] - the hex value to use for the cancel transaction
* @returns {txMeta}
*/
async createCancelTransaction (originalTxId, customGasPrice) {
const originalTxMeta = this.txStateManager.getTx(originalTxId)
const { txParams } = originalTxMeta
const { gasPrice: lastGasPrice, from, nonce } = txParams
const newGasPrice = customGasPrice || bnToHex(BnMultiplyByFraction(hexToBn(lastGasPrice), 11, 10))
const newTxMeta = this.txStateManager.generateTxMeta({
txParams: {
from,
to: from,
nonce,
gas: '0x5208',
value: '0x0',
gasPrice: newGasPrice,
},
lastGasPrice,
loadingDefaults: false,
status: TRANSACTION_STATUSES.APPROVED,
type: TRANSACTION_TYPES.CANCEL,
})
this.addTx(newTxMeta)
await this.approveTransaction(newTxMeta.id)
return newTxMeta
}
/**
updates the txMeta in the txStateManager
@param {Object} txMeta - the updated txMeta
*/
async updateTransaction (txMeta) {
this.txStateManager.updateTx(txMeta, 'confTx: user updated transaction')
}
/**
updates and approves the transaction
@param {Object} txMeta
*/
async updateAndApproveTransaction (txMeta) {
this.txStateManager.updateTx(txMeta, 'confTx: user approved transaction')
const customNonce = txMeta.txParams.nonce
await this.approveTransaction(txMeta.id, customNonce)
}
/**
sets the tx status to approved
auto fills the nonce
signs the transaction
publishes the transaction
if any of these steps fails the tx status will be set to failed
@param {number} txId - the tx's Id
*/
async approveTransaction (txId, customNonce) {
let nonceLock
try {
// approve
this.txStateManager.setTxStatusApproved(txId)
// get next nonce
const txMeta = this.txStateManager.getTx(txId)
const fromAddress = txMeta.txParams.from
// wait for a nonce
nonceLock = await this.nonceTracker.getNonceLock(fromAddress)
// add nonce to txParams
// if txMeta has lastGasPrice then it is a retry at same nonce with higher
// gas price transaction and their for the nonce should not be calculated
const nonce = txMeta.lastGasPrice ? txMeta.txParams.nonce : nonceLock.nextNonce
txMeta.txParams.nonce = customNonce || ethUtil.addHexPrefix(nonce.toString(16))
// add nonce debugging information to txMeta
txMeta.nonceDetails = nonceLock.nonceDetails
this.txStateManager.updateTx(txMeta, 'transactions#approveTransaction')
// sign transaction
const rawTx = await this.signTransaction(txId)
await this.publishTransaction(txId, rawTx)
// must set transaction to submitted/failed before releasing lock
nonceLock.releaseLock()
} catch (err) {
// this is try-catch wrapped so that we can guarantee that the nonceLock is released
try {
this.txStateManager.setTxStatusFailed(txId, err)
} catch (err) {
log.error(err)
}
// must set transaction to submitted/failed before releasing lock
if (nonceLock) nonceLock.releaseLock()
// continue with error chain
throw err
}
}
/**
adds the chain id and signs the transaction and set the status to signed
@param {number} txId - the tx's Id
@returns {string} rawTx
*/
async signTransaction (txId) {
const txMeta = this.txStateManager.getTx(txId)
// add network/chain id
const chainId = this.getChainId()
const txParams = Object.assign({}, txMeta.txParams, { chainId })
// sign tx
const fromAddress = txParams.from
const ethTx = new Transaction(txParams)
await this.signEthTx(ethTx, fromAddress)
// set state to signed
this.txStateManager.setTxStatusSigned(txMeta.id)
const rawTx = ethUtil.bufferToHex(ethTx.serialize())
return rawTx
}
/**
publishes the raw tx and sets the txMeta to submitted
@param {number} txId - the tx's Id
@param {string} rawTx - the hex string of the serialized signed transaction
@returns {Promise<void>}
*/
async publishTransaction (txId, rawTx) {
const txMeta = this.txStateManager.getTx(txId)
txMeta.rawTx = rawTx
this.txStateManager.updateTx(txMeta, 'transactions#publishTransaction')
const txHash = await this.query.sendRawTransaction(rawTx)
this.setTxHash(txId, txHash)
this.txStateManager.setTxStatusSubmitted(txId)
}
/**
* Sets the status of the transaction to confirmed and sets the status of nonce duplicates as
* dropped if the txParams have data it will fetch the txReceipt
* @param {number} txId - The tx's ID
* @returns {Promise<void>}
*/
async confirmTransaction (txId) {
// get the txReceipt before marking the transaction confirmed
// to ensure the receipt is gotten before the ui revives the tx
const txMeta = this.txStateManager.getTx(txId)
if (!txMeta) {
return
}
try {
const txReceipt = await this.query.getTransactionReceipt(txMeta.hash)
// It seems that sometimes the numerical values being returned from
// this.query.getTransactionReceipt are BN instances and not strings.
const gasUsed = typeof txReceipt.gasUsed !== 'string'
? txReceipt.gasUsed.toString(16)
: txReceipt.gasUsed
txMeta.txReceipt = {
...txReceipt,
gasUsed,
}
this.txStateManager.updateTx(txMeta, 'transactions#confirmTransaction - add txReceipt')
} catch (err) {
log.error(err)
}
this.txStateManager.setTxStatusConfirmed(txId)
this._markNonceDuplicatesDropped(txId)
}
/**
Convenience method for the ui thats sets the transaction to rejected
@param {number} txId - the tx's Id
@returns {Promise<void>}
*/
async cancelTransaction (txId) {
this.txStateManager.setTxStatusRejected(txId)
}
/**
Sets the txHas on the txMeta
@param {number} txId - the tx's Id
@param {string} txHash - the hash for the txMeta
*/
setTxHash (txId, txHash) {
// Add the tx hash to the persisted meta-tx object
const txMeta = this.txStateManager.getTx(txId)
txMeta.hash = txHash
this.txStateManager.updateTx(txMeta, 'transactions#setTxHash')
}
//
// PRIVATE METHODS
//
/** maps methods for convenience*/
_mapMethods () {
/** @returns the state in transaction controller */
this.getState = () => this.memStore.getState()
/** @returns the network number stored in networkStore */
this.getNetwork = () => this.networkStore.getState()
/** @returns the user selected address */
this.getSelectedAddress = () => this.preferencesStore.getState().selectedAddress
/** Returns an array of transactions whos status is unapproved */
this.getUnapprovedTxCount = () => Object.keys(this.txStateManager.getUnapprovedTxList()).length
/**
@returns a number that represents how many transactions have the status submitted
@param account {String} - hex prefixed account
*/
this.getPendingTxCount = (account) => this.txStateManager.getPendingTransactions(account).length
/** see txStateManager */
this.getFilteredTxList = (opts) => this.txStateManager.getFilteredTxList(opts)
}
// called once on startup
async _updatePendingTxsAfterFirstBlock () {
// wait for first block so we know we're ready
await this.blockTracker.getLatestBlock()
// get status update for all pending transactions (for the current network)
await this.pendingTxTracker.updatePendingTxs()
}
/**
If transaction controller was rebooted with transactions that are uncompleted
in steps of the transaction signing or user confirmation process it will either
transition txMetas to a failed state or try to redo those tasks.
*/
_onBootCleanUp () {
this.txStateManager
.getFilteredTxList({
status: TRANSACTION_STATUSES.UNAPPROVED,
loadingDefaults: true,
})
.forEach((tx) => {
this.addTxGasDefaults(tx)
.then((txMeta) => {
txMeta.loadingDefaults = false
this.txStateManager.updateTx(
txMeta,
'transactions: gas estimation for tx on boot',
)
})
.catch((error) => {
const txMeta = this.txStateManager.getTx(tx.id)
txMeta.loadingDefaults = false
this.txStateManager.updateTx(
txMeta,
'failed to estimate gas during boot cleanup.',
)
this.txStateManager.setTxStatusFailed(txMeta.id, error)
})
})
this.txStateManager
.getFilteredTxList({
status: TRANSACTION_STATUSES.APPROVED,
})
.forEach((txMeta) => {
const txSignError = new Error(
'Transaction found as "approved" during boot - possibly stuck during signing',
)
this.txStateManager.setTxStatusFailed(txMeta.id, txSignError)
})
}
/**
is called in constructor applies the listeners for pendingTxTracker txStateManager
and blockTracker
*/
_setupListeners () {
this.txStateManager.on(
'tx:status-update',
this.emit.bind(this, 'tx:status-update'),
)
this._setupBlockTrackerListener()
this.pendingTxTracker.on('tx:warning', (txMeta) => {
this.txStateManager.updateTx(
txMeta,
'transactions/pending-tx-tracker#event: tx:warning',
)
})
this.pendingTxTracker.on(
'tx:failed',
this.txStateManager.setTxStatusFailed.bind(this.txStateManager),
)
this.pendingTxTracker.on('tx:confirmed', (txId, transactionReceipt) =>
this.confirmTransaction(txId, transactionReceipt),
)
this.pendingTxTracker.on(
'tx:dropped',
this.txStateManager.setTxStatusDropped.bind(this.txStateManager),
)
this.pendingTxTracker.on('tx:block-update', (txMeta, latestBlockNumber) => {
if (!txMeta.firstRetryBlockNumber) {
txMeta.firstRetryBlockNumber = latestBlockNumber
this.txStateManager.updateTx(
txMeta,
'transactions/pending-tx-tracker#event: tx:block-update',
)
}
})
this.pendingTxTracker.on('tx:retry', (txMeta) => {
if (!('retryCount' in txMeta)) {
txMeta.retryCount = 0
}
txMeta.retryCount += 1
this.txStateManager.updateTx(
txMeta,
'transactions/pending-tx-tracker#event: tx:retry',
)
})
}
/**
Sets other txMeta statuses to dropped if the txMeta that has been confirmed has other transactions
in the list have the same nonce
@param {number} txId - the txId of the transaction that has been confirmed in a block
*/
_markNonceDuplicatesDropped (txId) {
// get the confirmed transactions nonce and from address
const txMeta = this.txStateManager.getTx(txId)
const txParams = (txMeta && txMeta.txParams) || {}
const { nonce, from } = txParams
const sameNonceTxs = this.txStateManager.getFilteredTxList({nonce, from})
if (!sameNonceTxs.length) return
// mark all same nonce transactions as dropped and give i a replacedBy hash
sameNonceTxs.forEach((otherTxMeta) => {
if (otherTxMeta.id === txId) return
otherTxMeta.replacedBy = txMeta.hash
this.txStateManager.updateTx(txMeta, 'transactions/pending-tx-tracker#event: tx:confirmed reference to confirmed txHash with same nonce')
this.txStateManager.setTxStatusDropped(otherTxMeta.id)
})
}
_setupBlockTrackerListener () {
let listenersAreActive = false
const latestBlockHandler = this._onLatestBlock.bind(this)
const { blockTracker, txStateManager } = this
txStateManager.on('tx:status-update', updateSubscription)
updateSubscription()
function updateSubscription () {
const pendingTxs = txStateManager.getPendingTransactions()
if (!listenersAreActive && pendingTxs.length > 0) {
blockTracker.on('latest', latestBlockHandler)
listenersAreActive = true
} else if (listenersAreActive && !pendingTxs.length) {
blockTracker.removeListener('latest', latestBlockHandler)
listenersAreActive = false
}
}
}
async _onLatestBlock (blockNumber) {
try {
await this.pendingTxTracker.updatePendingTxs()
} catch (err) {
log.error(err)
}
try {
await this.pendingTxTracker.resubmitPendingTxs(blockNumber)
} catch (err) {
log.error(err)
}
}
/**
Updates the memStore in transaction controller
*/
_updateMemstore () {
this.pendingTxTracker.updatePendingTxs()
const unapprovedTxs = this.txStateManager.getUnapprovedTxList()
const selectedAddressTxList = this.txStateManager.getFilteredTxList({
from: this.getSelectedAddress(),
metamaskNetworkId: this.getNetwork(),
})
this.memStore.updateState({ unapprovedTxs, selectedAddressTxList })
}
}
module.exports = TransactionController
|
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('Wo_Movies', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
name: {
type: DataTypes.STRING(50),
allowNull: false,
defaultValue: ""
},
genre: {
type: DataTypes.STRING(50),
allowNull: false,
defaultValue: ""
},
stars: {
type: DataTypes.STRING(300),
allowNull: false,
defaultValue: ""
},
producer: {
type: DataTypes.STRING(100),
allowNull: false,
defaultValue: ""
},
country: {
type: DataTypes.STRING(50),
allowNull: false,
defaultValue: ""
},
release: {
type: "YEAR",
allowNull: true
},
quality: {
type: DataTypes.STRING(10),
allowNull: true,
defaultValue: ""
},
duration: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
},
description: {
type: DataTypes.TEXT,
allowNull: true
},
cover: {
type: DataTypes.STRING(500),
allowNull: false,
defaultValue: "upload/photos/d-film.jpg"
},
source: {
type: DataTypes.STRING(1000),
allowNull: false,
defaultValue: ""
},
iframe: {
type: DataTypes.STRING(1000),
allowNull: false,
defaultValue: ""
},
video: {
type: DataTypes.STRING(3000),
allowNull: false,
defaultValue: ""
},
views: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
},
rating: {
type: DataTypes.STRING(11),
allowNull: false,
defaultValue: "1"
}
}, {
sequelize,
tableName: 'Wo_Movies'
});
};
|
import React from 'react'
import { View, Image, Text } from 'react-native'
import styles from './statics/styles'
const PhotoWithTextBox = props => {
const { style, title } = props
return (
<View style={[styles.itemContainer, style]}>
<View style={styles.itemBox}>
<Image style={styles.itemBoxPlus} source={require('./statics/icon-big-plus.png')} />
</View>
<Text style={styles.itemText}>{title}</Text>
</View>
)
}
export default PhotoWithTextBox
|
const {firestore} = require('firebase-admin');
const fs = firestore();
module.exports = {
data: async () => {
const publications = await fs.collection('publications')
.orderBy('createdOn', 'desc')
.limit(11)
.get();
return {
publications: publications.docs.map(it => ({
id: it.id,
...it.data()
}))
};
},
all: () => [{slug: 'publikacije'}]
};
|
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
//HTMLRewriter is used to replace content in the selected variant
const htmlRewriter = new HTMLRewriter()
.on('title', { element: e => e.setInnerContent("my-worker") })
.on('h1#title', { element: e => e.setInnerContent("Thanks for all your efforts and support for students in need") })
.on('p#description', { element: e => e.setInnerContent("The website is deployed to workers.dev") })
.on('a#url', { element: e => e.setInnerContent('Link to my Github') })
.on('a#url', { element: e => e.setAttribute('href', 'https://github.com/rahulreddy7') });
const url = 'https://cfw-takehome.developers.workers.dev/api/variants';
//Get cookie by name
function getCookie(request, name) {
//return null if no cookies match the requested name
let out = null;
let cookies = request.headers.get('Cookie');
//search for cookies in the page
if (cookies) {
cookies.split(";").forEach((cookie) => {
//Split each cookie into an array of its name and content
let cookieSplit = cookie.split("=");
//If name matches, set out to cookie content
if (cookieSplit[0].trim() == name) {
out = cookieSplit[1];
}
})
}
return out;
}
/**
* Respond with hello worker text
* @param {Request} request
*/
async function handleRequest(request) {
//Get the value for the "index" cookie
const cookie = getCookie(request, "index");
//Fetch array of variants from given url and transform to JSON
const apiResponse = await fetch(url)
.then(response => response.json())
.catch(err => console.log(err));
//Set index to cookie if the cookie is valid, otherwise to random integer either 0 or 1
let index = (cookie == 0 || cookie == 1) ? cookie : Math.floor(Math.random() * 2);
//fetch one of two variants from the array of variant urls found earlier
let res = await fetch(apiResponse.variants[index])
.catch(err => console.log(err));
//apply HTMLRewriter to variant response and create a new response based on it
out = new Response(htmlRewriter.transform(res).body);
//set cookie "index" to the index value so each user sees same variant every time
out.headers.set('Set-Cookie', "index=" + index);
return out;
}
|
module.exports=/\uD804[\uDF00-\uDF7F]/
|
// @ts-check
const symSource = Symbol("CancelToken.source");
const symToken = Symbol("CancelSource.token");
const symCancellationRequested = Symbol("CancelSource.cancellationRequested");
const symCancellationCallbacks = Symbol("CancelSource.cancellationCallbacks");
class CancelSource {
constructor() {
this[symCancellationRequested] = false;
this[symCancellationCallbacks] = [];
}
/** @type {CancelToken} */
get token() {
return this[symToken] || (this[symToken] = new CancelToken(this));
}
cancel() {
if (!this[symCancellationRequested]) {
this[symCancellationRequested] = true;
for (const callback of this[symCancellationCallbacks]) {
callback();
}
}
}
}
exports.CancelSource = CancelSource;
class CancelToken {
/**
* @param {CancelSource} source
*/
constructor(source) {
if (source[symToken]) return source[symToken];
this[symSource] = source;
}
/** @type {boolean} */
get cancellationRequested() {
return this[symSource][symCancellationRequested];
}
/**
* @param {() => void} callback
*/
subscribe(callback) {
const source = this[symSource];
if (source[symCancellationRequested]) {
callback();
return;
}
source[symCancellationCallbacks].push(callback);
return {
unsubscribe() {
const index = source[symCancellationCallbacks].indexOf(callback);
if (index !== -1) source[symCancellationCallbacks].splice(index, 1);
}
};
}
}
exports.CancelToken = CancelToken;
class CancelError extends Error {
constructor(message = "Operation was canceled") {
super(message);
this.name = "CancelError";
}
}
exports.CancelError = CancelError;
|
/* eslint-disable react/jsx-filename-extension */
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
|
/**
* Jasmine Tests for Catalan Number Generator
*
* @author Osipov Sergei
* @license MIT
*/
const catalan = require('./catalan');
describe('Catalan number test', function() {
it('Catalan number for correct data', function() {
expect(catalan(1)).toBe(1);
});
it('Catalan number for zero', function() {
expect(catalan(0)).toBe(0);
});
it('Catalan number for not number', function() {
expect(catalan('4242')).toBe(0);
});
it('Catalan number for negative number', function() {
expect(catalan(-1)).toBe(0);
});
it('Catalan number for wrong data', function() {
expect(catalan({})).toBe(0);
});
});
|
import { PureComponent } from 'react';
import { Row, Col, DatePicker, Button, Icon, Form, message } from 'antd';
import moment from 'moment';
import PropTypes from 'prop-types';
const FormItem = Form.Item;
let id = 0;
const dateFormat = 'YYYY/MM/DD';
const initTime = moment().subtract(1, 'days');
const rowLayout = {
xs: {
span: 24
},
sm: {
span: 12
},
md: {
span: 8
},
lg: {
span: 6
},
xl: {
span: 4
}
};
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 4 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 20 },
},
};
const formItemLayoutWithOutLabel = {
wrapperCol: {
xs: { span: 24, offset: 0 },
sm: { span: 20, offset: 4 },
},
};
const itemStyle = {
marginBottom: 0
};
class Index extends PureComponent {
remove = (k) => {
const { form } = this.props;
// can use data-binding to get
const keys = form.getFieldValue('keys');
// We need at least one passenger
if (keys.length === 1) {
return;
}
// can use data-binding to set
form.setFieldsValue({
keys: keys.filter(key => key !== k),
});
}
add = () => {
const { form, limit = 10 } = this.props;
// can use data-binding to get
const keys = form.getFieldValue('keys');
if (keys.length >= limit) {
message.warning(`允许最多添加${limit}个!`);
return false;
};
const nextKeys = keys.concat(++id);
// can use data-binding to set
// important! notify form to detect changes
form.setFieldsValue({
keys: nextKeys,
});
}
handleSubmit = (e) => {
e.preventDefault();
const { handleSubmit = () => { } } = this.props;
const times = [];
this.props.form.validateFields((err, values) => {
if (err) {
console.log('Received values of form: ', err, values);
}
const { keys, names } = values;
for (const v of keys) {
times.push(moment(names[v]).format(dateFormat));
}
handleSubmit(times);
});
}
render() {
const { getFieldDecorator, getFieldValue } = this.props.form;
getFieldDecorator('keys', { initialValue: [0] });
const keys = getFieldValue('keys');
const formItems = keys.map((k, index) => (
<Col {...rowLayout} key={index}>
<FormItem
{...(index !== 0 ? formItemLayout : formItemLayoutWithOutLabel)}
label={index !== 0 ? 'VS' : ''}
required={false}
style={itemStyle}
colon={false}
>
{getFieldDecorator(`names[${k}]`, {
// validateTrigger: ['onChange', 'onBlur'],
initialValue: initTime,
rules: [{
required: true,
message: "请选择时间",
}],
})(
<DatePicker style={{ width: '80%', marginRight: 6 }} format={dateFormat} allowClear={false} />
)}
{keys.length > 1 ? (
<Icon
className="dynamic-delete-button"
type="minus-circle-o"
disabled={keys.length === 1}
onClick={() => this.remove(k)}
/>
) : null}
</FormItem>
</Col>
));
return (
<Form onSubmit={this.handleSubmit}>
<Row>
{formItems}
<Col {...rowLayout} style={{ display: 'flex' }}>
<FormItem style={itemStyle} >
<Button type="dashed" onClick={this.add} style={{ marginRight: 20 }}>
<Icon type="plus" /> 添加
</Button>
</FormItem>
<FormItem style={itemStyle}>
<Button type="primary" htmlType="submit">查询</Button>
</FormItem>
</Col>
</Row>
</Form>
);
}
}
export default Form.create()(Index);
Index.propTypes = {
handleSubmit: PropTypes.func,
limit: PropTypes.number
};
|
const areEqualDebug = (prevProps, nextProps) => {
let isEqual = true;
Object.entries(prevProps).forEach(([prevPropName, prevPropValue]) => {
if (prevPropValue !== nextProps[prevPropName]) {
const isStyle = prevPropName === 'style';
console.log(
`%crendering %c${prevProps.id} %csince %c${prevPropName} %chas changed from %c${
typeof prevPropValue === 'function' ? 'function' : prevPropValue
} %cto %c${typeof nextProps[prevPropName] === 'function' ? 'function' : nextProps[prevPropName]}`,
!isStyle ? 'font-weight: normal;color: black;' : 'color: #CCC',
!isStyle ? 'font-weight: bold;color: blue;' : 'color: #CCC',
!isStyle ? 'font-weight: normal;color: black;' : 'color: #CCC',
!isStyle ? 'font-weight: bold;color: red;' : 'color: #CCC',
!isStyle ? 'font-weight: normal;color: black;' : 'color: #CCC',
!isStyle ? 'font-weight: bold;color: blue;' : 'color: #CCC',
!isStyle ? 'font-weight: normal;color: black;' : 'color: #CCC',
!isStyle ? 'font-weight: bold;color: blue;' : 'color: #CCC'
);
isEqual = false;
}
});
return isEqual;
};
export default areEqualDebug;
|
export const claymore_data = {
"waster_greatsword": {
"id": "waster_greatsword",
"name": "Waster Greatsword",
"type": "claymore",
"rarity": 1, "description": "A sturdy sheet of iron that may be powerful enough to break apart mountains if wielded with enough willpower.",
"skill": {},
"secondary": {},
"atk": [null, 23.2450008392334, 25.01162032664297, 26.77823981405254, 28.544862072482147, 30.28823547281263, 32.0548549602222, 33.79823113157272, 35.54160730292324, 37.28498070325372, 39.02835687460424, 40.771730274934725, 42.49186035920616, 44.235236530556676, 45.95536661482811, 47.675499470119576, 49.39562678337097, 51.11575409662237, 52.835886951913835, 54.55601426516523, 56.25290380439765, 67.95290361366278, 69.64978761085513, 71.36991492410652, 73.06680446333894, 74.76368846053128, 76.46057245772363, 78.15745645491597, 79.83109713604927, 81.52798113324161, 83.2016218143749, 84.8752624955082, 86.57214649270054, 88.24578717383383, 89.91942785496713, 91.59306853610042, 93.24346035913459, 94.91710104026788, 96.59074172140117, 98.24113908647541, 99.89153090950958, 101.56517159064288, 113.16517101843829, 114.81556838351253, 116.4659602065467, 118.11635757162094, 119.76675493669518, 121.41715230176942, 123.04429526670447, 124.69469263177871, 126.34508999685295, 127.972232961788, 129.62263032686224, 141.3226310898017, 142.94978513881688, 144.57693918783207, 146.2040821527671, 147.85447951784136, 149.48163356685654, 151.1087765317916, 152.73593058080678, 154.33983022968278, 155.96698427869796, 157.59413832771315, 169.2941390906526, 170.92128205558765, 172.5251927885438, 174.15233575347884, 175.75624648643497, 177.38340053545016, 178.98730018432616, 180.61445423334135, 182.21835388221734, 183.82226461517348, 185.42616426404948]
},
"old_mercs_pal": {
"id": "old_mercs_pal",
"name": "Old Merc's Pal",
"type": "claymore",
"rarity": 2, "description": "A battle-tested greatsword that has seen better days and worse.",
"skill": {},
"secondary": {},
"atk": [null, 32.93000030517578, 35.43267951185226, 37.93535871852873, 40.43804185076715, 42.90778951831817, 45.410468724994644, 47.880220318107604, 50.349971911220564, 52.81971957877158, 55.28947117188454, 57.75921883943556, 60.196038893423065, 62.665790486536025, 65.10261054052353, 67.53943452007297, 69.97625064849854, 72.4130667769241, 74.84989075647354, 77.2867068848991, 79.69060325088503, 91.39060306015017, 93.79449157501222, 96.23130770343778, 98.63520406942371, 101.03909258428575, 103.4429810991478, 105.84686961400985, 108.21783051530838, 110.62171903017042, 112.99267993146896, 115.36364083276749, 117.76752934762953, 120.13849024892806, 122.5094511502266, 124.88041205152513, 127.21843748813626, 129.5893983894348, 131.96035929073332, 134.29839257846834, 136.63641801507947, 139.007378916378, 150.6073783441734, 152.94541163190843, 155.28343706851956, 157.62147035625458, 159.9595036439896, 162.2975369317246, 164.60262690364834, 166.94066019138336, 169.27869347911837, 171.5837834510421, 173.92181673877712, 185.62181750171658, 187.92692317588808, 190.23202885005958, 192.5371188219833, 194.87515210971833, 197.18025778388983, 199.48534775581356, 201.79045342998506, 204.06261578834528, 206.36772146251678, 208.67282713668828, 220.37282789962774, 222.67791787155147, 224.95009593215946, 227.2551859040832, 229.52736396469118, 231.83246963886268, 234.1046319972229, 236.4097376713944, 238.68190002975462, 240.9540780903626, 243.22624044872282]
},
"ferrous_shadow": {
"id": "ferrous_shadow",
"name": "Ferrous Shadow",
"type": "claymore",
"rarity": 3, "description": "A replica of the famed sword of Arundolyn, the Lion of Light. Feel the power of a legendary hero as you hold this sword in your hand! Imagine yourself as the great warrior himself! Note: Daydreaming not recommended in live combat.",
"skill": {
"name": "Unbending",
"description": "When HP falls below <span style=\"color: #99FFFFFF;\">70%/75%/80%/85%/90%</span>, increases Charged Attack DMG by <span style=\"color: #99FFFFFF;\">30%/35%/40%/45%/50%</span> and Charged Attacks become harder to interrupt."
},
"secondary": {
"name": "hpPercent",
"stats": [null, 0.07660000026226044, 0.07660000026226044, 0.07660000026226044, 0.07660000026226044, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.35190039068541523]
},
"atk": [null, 38.74129867553711, 41.68563641426681, 44.62997415299651, 47.5743165100489, 50.47991113972057, 53.42424887845027, 56.32984812644463, 59.23544737443899, 62.14104200411066, 65.04664125210502, 67.95223588177669, 70.81909202071301, 73.72469126870737, 76.5915474076437, 79.45840816490272, 82.32525968551636, 85.19211120613, 88.05897196338901, 90.92582348400265, 93.75394575052633, 113.25394575052633, 116.08205878040462, 118.94891030101826, 121.77703256754194, 124.60514559742023, 127.43325862729853, 130.26137165717682, 133.05074619631978, 135.87885922619807, 138.66823376534103, 141.45760830448398, 144.28572133436228, 147.07509587350523, 149.8644704126482, 152.65384495179114, 155.40447176355337, 158.19384630269633, 160.98322084183928, 163.7338568902469, 166.48448370200913, 169.27385824115208, 188.673859767031, 191.4244958154386, 194.17512262720084, 196.92575867560845, 199.67639472401606, 202.42703077242368, 205.13890985680518, 207.8895459052128, 210.6401819536204, 213.35206103800192, 216.10269708640953, 235.60269708640953, 238.3145946440818, 241.02649220175408, 243.7383712861356, 246.4890073345432, 249.20090489221548, 251.91278397659698, 254.62468153426926, 257.2978221279154, 260.0097196855877, 262.72161724325997, 282.1216187691389, 284.8334978535204, 287.5066569204573, 290.2185360048388, 292.89169507177576, 295.60359262944803, 298.2767332230942, 300.98863078076647, 303.66177137441264, 306.33493044134957, 309.00807103499574, 328.50807103499574, 331.219968592668, 333.8931091863142, 336.5662682532511, 339.2394088468973, 341.9125679138342, 344.5857085074804, 347.2588675744173, 349.9320081680635, 352.6051672350004, 355.2783078286466, 374.67830172513095, 377.31272230133254, 379.9858628949787, 382.6590034886249, 385.3321625555618, 388.005303149208, 390.63972372540957, 393.31286431905573, 395.98602338599267, 398.6204254889035, 401.2935845558404]
},
"bloodtainted_greatsword": {
"id": "bloodtainted_greatsword",
"name": "Bloodtainted Greatsword",
"type": "claymore",
"rarity": 3, "description": "A steel sword that is said to have been coated with dragon blood, rendering it invulnerable to damage. This effect is not extended to its wielder, however.",
"skill": {
"name": "Bane of Fire and Thunder",
"description": "Increases DMG dealt against opponents affected by Pyro or Electro by <span style=\"color: #99FFFFFF;\">12%/15%/18%/21%/24%</span>."
},
"secondary": {
"name": "em",
"stats": [null, 40.79999923706055, 40.79999923706055, 40.79999923706055, 40.79999923706055, 47.40959670104985, 47.40959670104985, 47.40959670104985, 47.40959670104985, 47.40959670104985, 55.61040039978025, 55.61040039978025, 55.61040039978025, 55.61040039978025, 55.61040039978025, 63.85200114059444, 63.85200114059444, 63.85200114059444, 63.85200114059444, 63.85200114059444, 72.09359701766971, 72.09359701766971, 72.09359701766971, 72.09359701766971, 72.09359701766971, 72.09359701766971, 80.3351977584839, 80.3351977584839, 80.3351977584839, 80.3351977584839, 80.3351977584839, 88.57679849929809, 88.57679849929809, 88.57679849929809, 88.57679849929809, 88.57679849929809, 96.81839437637336, 96.81839437637336, 96.81839437637336, 96.81839437637336, 96.81839437637336, 105.05999998092648, 105.05999998092648, 105.05999998092648, 105.05999998092648, 105.05999998092648, 105.05999998092648, 113.30159585800175, 113.30159585800175, 113.30159585800175, 113.30159585800175, 113.30159585800175, 121.54320146255486, 121.54320146255486, 121.54320146255486, 121.54320146255486, 121.54320146255486, 121.54320146255486, 129.78479733963013, 129.78479733963013, 129.78479733963013, 129.78479733963013, 129.78479733963013, 138.0263932167054, 138.0263932167054, 138.0263932167054, 138.0263932167054, 138.0263932167054, 138.0263932167054, 146.26799882125852, 146.26799882125852, 146.26799882125852, 146.26799882125852, 146.26799882125852, 154.46879765625, 154.46879765625, 154.46879765625, 154.46879765625, 154.46879765625, 154.46879765625, 162.71039353332526, 162.71039353332526, 162.71039353332526, 162.71039353332526, 162.71039353332526, 170.95199913787837, 170.95199913787837, 170.95199913787837, 170.95199913787837, 170.95199913787837, 170.95199913787837, 179.1936047424315, 179.1936047424315, 179.1936047424315, 179.1936047424315, 179.1936047424315, 187.4351908920289]
},
"atk": [null, 37.60749816894531, 40.27762978576902, 42.910156630186975, 45.54267899144179, 48.13759658029085, 50.732514169139904, 53.289826985583204, 55.88474009126912, 58.40444365214353, 60.96175646858683, 63.48145554629809, 65.9635498516036, 68.44564864007225, 70.92774294537776, 73.40983725068327, 75.85432230041988, 78.29881183331963, 80.74330136621938, 83.1501771603871, 85.5570619208811, 105.0570619208811, 107.46393771504881, 109.83320873681078, 112.24009349730477, 114.60936451906673, 116.94103076842293, 119.3103017901849, 121.6419680395411, 123.9736342888973, 126.30529157192723, 128.59935304887767, 130.89340555950184, 133.1874670364523, 135.48152851340274, 137.7755810240269, 140.03202876224532, 142.28848546679, 144.54493320500842, 146.80138094322683, 149.05782868144524, 151.2766716472579, 170.6766731731368, 172.93312091135522, 175.15196387716787, 177.37080684298053, 179.58964980879318, 181.77088800220008, 183.98973096801274, 186.17096019509336, 188.35219838850026, 190.53343658190715, 192.71467477531405, 212.21467477531405, 214.3958950360684, 216.53952845706954, 218.72076665047643, 220.86440007147758, 223.00801555982616, 225.1516489808273, 227.29528240182844, 229.43889789017703, 231.58253131117817, 233.688542027121, 253.0885435529999, 255.23217697400105, 257.33820562259643, 259.44421633853926, 261.5878497595404, 263.69386047548323, 265.7998891240786, 267.8682950676157, 269.9743237162111, 272.0803344321539, 274.1863630807493, 293.6863630807493, 295.75476902428636, 297.86079767288174, 299.9292036164188, 301.9976095599559, 304.0660334361455, 306.17204415208835, 308.240468028278, 310.30887397181505, 312.3772799153521, 314.44570379154175, 333.8456976880261, 335.87649885915744, 337.9449048026945, 340.01332867888414, 342.0817346224212, 344.1125357935525, 346.18095966974215, 348.21176084087347, 350.28016678441054, 352.31096795554186, 354.3793918317315]
},
"white_iron_greatsword": {
"id": "white_iron_greatsword",
"name": "White Iron Greatsword",
"type": "claymore",
"rarity": 3, "description": "A claymore made from white iron. Lightweight without compromising on power. Effective even when wielded by one of average strength, it is extremely deadly in the hands of a physically stronger wielder.",
"skill": {
"name": "Cull the Weak",
"description": "Defeating an opponent restores <span style=\"color: #99FFFFFF;\">8%/10%/12%/14%/16%</span> HP."
},
"secondary": {
"name": "defPercent",
"stats": [null, 0.09560000151395798, 0.09560000151395798, 0.09560000151395798, 0.09560000151395798, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.43918639382646063]
},
"atk": [null, 38.74129867553711, 41.68563641426681, 44.62997415299651, 47.5743165100489, 50.47991113972057, 53.42424887845027, 56.32984812644463, 59.23544737443899, 62.14104200411066, 65.04664125210502, 67.95223588177669, 70.81909202071301, 73.72469126870737, 76.5915474076437, 79.45840816490272, 82.32525968551636, 85.19211120613, 88.05897196338901, 90.92582348400265, 93.75394575052633, 113.25394575052633, 116.08205878040462, 118.94891030101826, 121.77703256754194, 124.60514559742023, 127.43325862729853, 130.26137165717682, 133.05074619631978, 135.87885922619807, 138.66823376534103, 141.45760830448398, 144.28572133436228, 147.07509587350523, 149.8644704126482, 152.65384495179114, 155.40447176355337, 158.19384630269633, 160.98322084183928, 163.7338568902469, 166.48448370200913, 169.27385824115208, 188.673859767031, 191.4244958154386, 194.17512262720084, 196.92575867560845, 199.67639472401606, 202.42703077242368, 205.13890985680518, 207.8895459052128, 210.6401819536204, 213.35206103800192, 216.10269708640953, 235.60269708640953, 238.3145946440818, 241.02649220175408, 243.7383712861356, 246.4890073345432, 249.20090489221548, 251.91278397659698, 254.62468153426926, 257.2978221279154, 260.0097196855877, 262.72161724325997, 282.1216187691389, 284.8334978535204, 287.5066569204573, 290.2185360048388, 292.89169507177576, 295.60359262944803, 298.2767332230942, 300.98863078076647, 303.66177137441264, 306.33493044134957, 309.00807103499574, 328.50807103499574, 331.219968592668, 333.8931091863142, 336.5662682532511, 339.2394088468973, 341.9125679138342, 344.5857085074804, 347.2588675744173, 349.9320081680635, 352.6051672350004, 355.2783078286466, 374.67830172513095, 377.31272230133254, 379.9858628949787, 382.6590034886249, 385.3321625555618, 388.005303149208, 390.63972372540957, 393.31286431905573, 395.98602338599267, 398.6204254889035, 401.2935845558404]
},
"quartz": {
"id": "quartz",
"name": "Quartz",
"type": "claymore",
"rarity": 3, "description": "A simple but heavy greatsword made of polished black quartz with a golden gilt. It has an air of elegance and dignity about it.",
"skill": {
"name": "Residual Heat",
"description": "Upon causing an Overloaded, Melt, Burning, Vaporize, or a Pyro-infused Swirl reaction, ATK is increased by <span style=\"color: #99FFFFFF;\">20%/25%/30%/35%/40%</span> for 12s."
},
"secondary": {
"name": "em",
"stats": [null, 30.600000381469727, 30.600000381469727, 30.600000381469727, 30.600000381469727, 35.55719863395689, 35.55719863395689, 35.55719863395689, 35.55719863395689, 35.55719863395689, 41.70780159969331, 41.70780159969331, 41.70780159969331, 41.70780159969331, 41.70780159969331, 47.88900234794619, 47.88900234794619, 47.88900234794619, 47.88900234794619, 47.88900234794619, 54.07019944839476, 54.07019944839476, 54.07019944839476, 54.07019944839476, 54.07019944839476, 54.07019944839476, 60.25140019664764, 60.25140019664764, 60.25140019664764, 60.25140019664764, 60.25140019664764, 66.43260094490051, 66.43260094490051, 66.43260094490051, 66.43260094490051, 66.43260094490051, 72.61379804534909, 72.61379804534909, 72.61379804534909, 72.61379804534909, 72.61379804534909, 78.79500244140627, 78.79500244140627, 78.79500244140627, 78.79500244140627, 78.79500244140627, 78.79500244140627, 84.97619954185484, 84.97619954185484, 84.97619954185484, 84.97619954185484, 84.97619954185484, 91.15740393791202, 91.15740393791202, 91.15740393791202, 91.15740393791202, 91.15740393791202, 91.15740393791202, 97.3386010383606, 97.3386010383606, 97.3386010383606, 97.3386010383606, 97.3386010383606, 103.51979813880916, 103.51979813880916, 103.51979813880916, 103.51979813880916, 103.51979813880916, 103.51979813880916, 109.70100253486635, 109.70100253486635, 109.70100253486635, 109.70100253486635, 109.70100253486635, 115.85160185279847, 115.85160185279847, 115.85160185279847, 115.85160185279847, 115.85160185279847, 115.85160185279847, 122.03279895324704, 122.03279895324704, 122.03279895324704, 122.03279895324704, 122.03279895324704, 128.21400334930422, 128.21400334930422, 128.21400334930422, 128.21400334930422, 128.21400334930422, 128.21400334930422, 134.3952077453614, 134.3952077453614, 134.3952077453614, 134.3952077453614, 134.3952077453614, 140.57639755020136]
},
"atk": [null, 38.74129867553711, 41.68563641426681, 44.62997415299651, 47.5743165100489, 50.47991113972057, 53.42424887845027, 56.32984812644463, 59.23544737443899, 62.14104200411066, 65.04664125210502, 67.95223588177669, 70.81909202071301, 73.72469126870737, 76.5915474076437, 79.45840816490272, 82.32525968551636, 85.19211120613, 88.05897196338901, 90.92582348400265, 93.75394575052633, 113.25394575052633, 116.08205878040462, 118.94891030101826, 121.77703256754194, 124.60514559742023, 127.43325862729853, 130.26137165717682, 133.05074619631978, 135.87885922619807, 138.66823376534103, 141.45760830448398, 144.28572133436228, 147.07509587350523, 149.8644704126482, 152.65384495179114, 155.40447176355337, 158.19384630269633, 160.98322084183928, 163.7338568902469, 166.48448370200913, 169.27385824115208, 188.673859767031, 191.4244958154386, 194.17512262720084, 196.92575867560845, 199.67639472401606, 202.42703077242368, 205.13890985680518, 207.8895459052128, 210.6401819536204, 213.35206103800192, 216.10269708640953, 235.60269708640953, 238.3145946440818, 241.02649220175408, 243.7383712861356, 246.4890073345432, 249.20090489221548, 251.91278397659698, 254.62468153426926, 257.2978221279154, 260.0097196855877, 262.72161724325997, 282.1216187691389, 284.8334978535204, 287.5066569204573, 290.2185360048388, 292.89169507177576, 295.60359262944803, 298.2767332230942, 300.98863078076647, 303.66177137441264, 306.33493044134957, 309.00807103499574, 328.50807103499574, 331.219968592668, 333.8931091863142, 336.5662682532511, 339.2394088468973, 341.9125679138342, 344.5857085074804, 347.2588675744173, 349.9320081680635, 352.6051672350004, 355.2783078286466, 374.67830172513095, 377.31272230133254, 379.9858628949787, 382.6590034886249, 385.3321625555618, 388.005303149208, 390.63972372540957, 393.31286431905573, 395.98602338599267, 398.6204254889035, 401.2935845558404]
},
"debate_club": {
"id": "debate_club",
"name": "Debate Club",
"type": "claymore",
"rarity": 3, "description": "A handy club made of fine steel. The most persuasive line of reasoning in any debater's arsenal.",
"skill": {
"name": "Blunt Conclusion",
"description": "After using an Elemental Skill, on hit, Normal and Charged Attacks deal additional DMG equal to <span style=\"color: #99FFFFFF;\">60%/75%/90%/105%/120%</span> of ATK in a small AoE. Effect lasts 15s. DMG can only occur once every 3s."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.07660000026226044, 0.07660000026226044, 0.07660000026226044, 0.07660000026226044, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.08900919577555655, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.10440580306036473, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.11987900479352476, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.13535219739525317, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.1508253991284132, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.16629860086157322, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.18177179346330163, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.19724500432789327, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.21271819692962168, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.22819140779421332, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.24366460039594173, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.25913779299767015, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.2746110038622618, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.29000760201563835, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.30548079461736677, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.3209540054819584, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.33642721634655004, 0.35190039068541523]
},
"atk": [null, 38.74129867553711, 41.68563641426681, 44.62997415299651, 47.5743165100489, 50.47991113972057, 53.42424887845027, 56.32984812644463, 59.23544737443899, 62.14104200411066, 65.04664125210502, 67.95223588177669, 70.81909202071301, 73.72469126870737, 76.5915474076437, 79.45840816490272, 82.32525968551636, 85.19211120613, 88.05897196338901, 90.92582348400265, 93.75394575052633, 113.25394575052633, 116.08205878040462, 118.94891030101826, 121.77703256754194, 124.60514559742023, 127.43325862729853, 130.26137165717682, 133.05074619631978, 135.87885922619807, 138.66823376534103, 141.45760830448398, 144.28572133436228, 147.07509587350523, 149.8644704126482, 152.65384495179114, 155.40447176355337, 158.19384630269633, 160.98322084183928, 163.7338568902469, 166.48448370200913, 169.27385824115208, 188.673859767031, 191.4244958154386, 194.17512262720084, 196.92575867560845, 199.67639472401606, 202.42703077242368, 205.13890985680518, 207.8895459052128, 210.6401819536204, 213.35206103800192, 216.10269708640953, 235.60269708640953, 238.3145946440818, 241.02649220175408, 243.7383712861356, 246.4890073345432, 249.20090489221548, 251.91278397659698, 254.62468153426926, 257.2978221279154, 260.0097196855877, 262.72161724325997, 282.1216187691389, 284.8334978535204, 287.5066569204573, 290.2185360048388, 292.89169507177576, 295.60359262944803, 298.2767332230942, 300.98863078076647, 303.66177137441264, 306.33493044134957, 309.00807103499574, 328.50807103499574, 331.219968592668, 333.8931091863142, 336.5662682532511, 339.2394088468973, 341.9125679138342, 344.5857085074804, 347.2588675744173, 349.9320081680635, 352.6051672350004, 355.2783078286466, 374.67830172513095, 377.31272230133254, 379.9858628949787, 382.6590034886249, 385.3321625555618, 388.005303149208, 390.63972372540957, 393.31286431905573, 395.98602338599267, 398.6204254889035, 401.2935845558404]
},
"skyrider_greatsword": {
"id": "skyrider_greatsword",
"name": "Skyrider Greatsword",
"type": "claymore",
"rarity": 3, "description": "A reliable steel sword. The legendary Skyrider once tried to ride it as a flying sword... for the second time.",
"skill": {
"name": "Courage",
"description": "On hit, Normal or Charged Attacks increase ATK by <span style=\"color: #99FFFFFF;\">6%/7%/8%/9%/10%</span> for 6s. Max 4 stacks. Can occur once every 0.5s."
},
"secondary": {
"name": "physicalDamage",
"stats": [null, 0.09560000151395798, 0.09560000151395798, 0.09560000151395798, 0.09560000151395798, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.11108719610660067, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.13030280543686157, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.1496140078396202, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.16892519884597057, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.1882364012487292, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.20754760365148783, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2268587946578382, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.2461700084570051, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.26548119946335547, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.28479241326252236, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.30410360426887273, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.3234147952752231, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.34272600907439, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.3619416070082426, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.381252798014593, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4005640118137599, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.4198752256129268, 0.43918639382646063]
},
"atk": [null, 38.74129867553711, 41.68563641426681, 44.62997415299651, 47.5743165100489, 50.47991113972057, 53.42424887845027, 56.32984812644463, 59.23544737443899, 62.14104200411066, 65.04664125210502, 67.95223588177669, 70.81909202071301, 73.72469126870737, 76.5915474076437, 79.45840816490272, 82.32525968551636, 85.19211120613, 88.05897196338901, 90.92582348400265, 93.75394575052633, 113.25394575052633, 116.08205878040462, 118.94891030101826, 121.77703256754194, 124.60514559742023, 127.43325862729853, 130.26137165717682, 133.05074619631978, 135.87885922619807, 138.66823376534103, 141.45760830448398, 144.28572133436228, 147.07509587350523, 149.8644704126482, 152.65384495179114, 155.40447176355337, 158.19384630269633, 160.98322084183928, 163.7338568902469, 166.48448370200913, 169.27385824115208, 188.673859767031, 191.4244958154386, 194.17512262720084, 196.92575867560845, 199.67639472401606, 202.42703077242368, 205.13890985680518, 207.8895459052128, 210.6401819536204, 213.35206103800192, 216.10269708640953, 235.60269708640953, 238.3145946440818, 241.02649220175408, 243.7383712861356, 246.4890073345432, 249.20090489221548, 251.91278397659698, 254.62468153426926, 257.2978221279154, 260.0097196855877, 262.72161724325997, 282.1216187691389, 284.8334978535204, 287.5066569204573, 290.2185360048388, 292.89169507177576, 295.60359262944803, 298.2767332230942, 300.98863078076647, 303.66177137441264, 306.33493044134957, 309.00807103499574, 328.50807103499574, 331.219968592668, 333.8931091863142, 336.5662682532511, 339.2394088468973, 341.9125679138342, 344.5857085074804, 347.2588675744173, 349.9320081680635, 352.6051672350004, 355.2783078286466, 374.67830172513095, 377.31272230133254, 379.9858628949787, 382.6590034886249, 385.3321625555618, 388.005303149208, 390.63972372540957, 393.31286431905573, 395.98602338599267, 398.6204254889035, 401.2935845558404]
},
"favonius_greatsword": {
"id": "favonius_greatsword",
"name": "Favonius Greatsword",
"type": "claymore",
"rarity": 4, "description": "A heavy ceremonial sword of the Knights of Favonius. It channels elemental power easily and is highly destructive.",
"skill": {
"name": "Windfall",
"description": "CRIT Hits have a <span style=\"color: #99FFFFFF;\">60%/70%/80%/90%/100%</span> chance to generate a small amount of Elemental Particles, which will regenerate 6 Energy for the character. Can only occur once every <span style=\"color: #99FFFFFF;\">12/10.5/9/7.5/6</span>s."
},
"secondary": {
"name": "er",
"stats": [null, 0.1333329975605011, 0.1333329975605011, 0.1333329975605011, 0.1333329975605011, 0.15493293528161445, 0.15493293528161445, 0.15493293528161445, 0.15493293528161445, 0.15493293528161445, 0.18173288037974444, 0.18173288037974444, 0.18173288037974444, 0.18173288037974444, 0.18173288037974444, 0.20866614881155954, 0.20866614881155954, 0.20866614881155954, 0.20866614881155954, 0.20866614881155954, 0.23559940134884272, 0.23559940134884272, 0.23559940134884272, 0.23559940134884272, 0.23559940134884272, 0.23559940134884272, 0.2625326697806578, 0.2625326697806578, 0.2625326697806578, 0.2625326697806578, 0.2625326697806578, 0.2894659382124729, 0.2894659382124729, 0.2894659382124729, 0.2894659382124729, 0.2894659382124729, 0.3163991907497561, 0.3163991907497561, 0.3163991907497561, 0.3163991907497561, 0.3163991907497561, 0.3433324750761031, 0.3433324750761031, 0.3433324750761031, 0.3433324750761031, 0.3433324750761031, 0.3433324750761031, 0.3702657276133863, 0.3702657276133863, 0.3702657276133863, 0.3702657276133863, 0.3702657276133863, 0.3971990119397333, 0.3971990119397333, 0.3971990119397333, 0.3971990119397333, 0.3971990119397333, 0.3971990119397333, 0.42413226447701646, 0.42413226447701646, 0.42413226447701646, 0.42413226447701646, 0.42413226447701646, 0.45106551701429964, 0.45106551701429964, 0.45106551701429964, 0.45106551701429964, 0.45106551701429964, 0.45106551701429964, 0.47799880134064665, 0.47799880134064665, 0.47799880134064665, 0.47799880134064665, 0.47799880134064665, 0.5047987305442447, 0.5047987305442447, 0.5047987305442447, 0.5047987305442447, 0.5047987305442447, 0.5047987305442447, 0.5317319830815279, 0.5317319830815279, 0.5317319830815279, 0.5317319830815279, 0.5317319830815279, 0.5586652674078749, 0.5586652674078749, 0.5586652674078749, 0.5586652674078749, 0.5586652674078749, 0.5586652674078749, 0.5855985517342219, 0.5855985517342219, 0.5855985517342219, 0.5855985517342219, 0.5855985517342219, 0.6125317724824413]
},
"atk": [null, 41.067100524902344, 44.22926816610652, 47.3914358073107, 50.51253442892266, 53.63363305053463, 56.75473167214659, 59.83476616974622, 62.95586479135818, 65.9948302693656, 69.07486476696522, 72.15489436898497, 75.19385984699238, 78.2328253249998, 81.2717908030072, 84.26969215700228, 87.30865273942982, 90.30654919784502, 93.30445544741997, 96.30235190583517, 99.25918424023803, 125.1591838587683, 128.1570803171835, 131.11391265158636, 134.07074498598922, 137.06864144440442, 139.98440965479494, 142.94123219803805, 145.8980645324409, 148.81383274283144, 151.7706650772343, 154.68642349646507, 157.6021917068556, 160.51795991724612, 163.4337183364769, 166.3494865468674, 169.22418084208584, 172.13994905247637, 175.05570747170714, 177.93040176692557, 180.80510585330376, 183.6798001485222, 209.67980205587082, 212.59557026626135, 215.47026456147978, 218.3449588566982, 221.17859881906406, 224.05328332312274, 226.92798740950093, 229.8026719135596, 232.63631187592546, 235.51101596230365, 238.34463634235, 264.2446378682289, 267.07827783059474, 269.9529623346534, 272.7866022970193, 275.6202226770656, 278.45386263943146, 281.2874830194778, 284.12112298184365, 286.95474336189, 289.78838332425585, 292.6220037043022, 318.52199760078656, 321.3556375631524, 324.1481938191864, 326.98181419923276, 329.8154541615986, 332.6080104176326, 335.44165037999846, 338.23420663603247, 341.0678465983983, 343.8604028544323, 346.6529591104663, 372.6529591104663, 375.4865990728322, 378.2791553288662, 381.0717115849002, 383.8642874232537, 386.6568436792877, 389.49048364165355, 392.28303989768756, 395.07559615372156, 397.8681719920751, 400.6607282481091, 426.5607374033825, 429.3122295354042, 432.1047857914382, 434.8973616297917, 437.6899178858257, 440.4824741418597, 443.2750499802132, 446.0265421122349, 448.8190983682689, 451.6116742066224, 454.3631663386441]
},
"the_bell": {
"id": "the_bell",
"name": "The Bell",
"type": "claymore",
"rarity": 4, "description": "A heavy greatsword. A clock is embedded within it, though its internal mechanisms have long been damaged.",
"skill": {
"name": "Rebellious Guardian",
"description": "Taking DMG generates a shield which absorbs DMG up to <span style=\"color: #99FFFFFF;\">20%/23%/26%/29%/32%</span> of Max HP. This shield lasts for 10s or until broken, and can only be triggered once every <span style=\"color: #99FFFFFF;\">45/45/45/45/45</span>s. While protected by a shield, the character gains <span style=\"color: #99FFFFFF;\">12%/15%/18%/21%/24%</span> increased DMG."
},
"secondary": {
"name": "hpPercent",
"stats": [null, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.41346000406980465]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"sacrificial_greatsword": {
"id": "sacrificial_greatsword",
"name": "Sacrificial Greatsword",
"type": "claymore",
"rarity": 4, "description": "A ceremonial greatsword that has become petrified over time. The trinkets on it are still visible. It grants the wielder the power to withstand the winds of time.",
"skill": {
"name": "Composed",
"description": "After damaging an opponent with an Elemental Skill, the skill has a <span style=\"color: #99FFFFFF;\">40%/50%/60%/70%/80%</span> chance to end its own CD. Can only occur once every <span style=\"color: #99FFFFFF;\">30/26/22s/19/16s</span>s."
},
"secondary": {
"name": "er",
"stats": [null, 0.06666699796915054, 0.06666699796915054, 0.06666699796915054, 0.06666699796915054, 0.0774670476982795, 0.0774670476982795, 0.0774670476982795, 0.0774670476982795, 0.0774670476982795, 0.09086712058436053, 0.09086712058436053, 0.09086712058436053, 0.09086712058436053, 0.09086712058436053, 0.10433385563643682, 0.10433385563643682, 0.10433385563643682, 0.10433385563643682, 0.10433385563643682, 0.11780058274118765, 0.11780058274118765, 0.11780058274118765, 0.11780058274118765, 0.11780058274118765, 0.11780058274118765, 0.13126731779326395, 0.13126731779326395, 0.13126731779326395, 0.13126731779326395, 0.13126731779326395, 0.14473405284534024, 0.14473405284534024, 0.14473405284534024, 0.14473405284534024, 0.14473405284534024, 0.15820077995009107, 0.15820077995009107, 0.15820077995009107, 0.15820077995009107, 0.15820077995009107, 0.17166752294949283, 0.17166752294949283, 0.17166752294949283, 0.17166752294949283, 0.17166752294949283, 0.17166752294949283, 0.18513425005424367, 0.18513425005424367, 0.18513425005424367, 0.18513425005424367, 0.18513425005424367, 0.19860099305364542, 0.19860099305364542, 0.19860099305364542, 0.19860099305364542, 0.19860099305364542, 0.19860099305364542, 0.21206772015839626, 0.21206772015839626, 0.21206772015839626, 0.21206772015839626, 0.21206772015839626, 0.2255344472631471, 0.2255344472631471, 0.2255344472631471, 0.2255344472631471, 0.2255344472631471, 0.2255344472631471, 0.23900119026254885, 0.23900119026254885, 0.23900119026254885, 0.23900119026254885, 0.23900119026254885, 0.2524012552013044, 0.2524012552013044, 0.2524012552013044, 0.2524012552013044, 0.2524012552013044, 0.2524012552013044, 0.26586798230605524, 0.26586798230605524, 0.26586798230605524, 0.26586798230605524, 0.26586798230605524, 0.279334725305457, 0.279334725305457, 0.279334725305457, 0.279334725305457, 0.279334725305457, 0.279334725305457, 0.29280146830485876, 0.29280146830485876, 0.29280146830485876, 0.29280146830485876, 0.29280146830485876, 0.30626817951495866]
},
"atk": [null, 43.734901428222656, 47.58357533985509, 51.43224403788099, 55.28091794951342, 59.17332359270131, 63.065729235889194, 66.95813487907708, 70.89427746742695, 74.78668311061483, 78.72282048535817, 82.70270001887002, 86.63883739361336, 90.6187169271252, 94.55485430186855, 98.5347338353804, 102.5583451004477, 106.53822463395954, 110.51809374025834, 114.54170500532564, 118.56531627039294, 144.46531588892321, 148.48892715399052, 152.51253841905782, 156.53614968412512, 160.60349268074788, 164.62710394581518, 168.694457369651, 172.76180036627375, 176.8291433628965, 180.89648635951926, 184.96383978335507, 189.07491451153328, 193.14225750815604, 197.2533426635473, 201.3206960873831, 205.43177081556132, 209.54284554373953, 213.65394112634385, 217.76501585452206, 221.87609058270027, 225.98716531087848, 251.9871672182271, 256.09826280083144, 260.20933752900964, 264.3641439887433, 268.47523957134763, 272.6300460310813, 276.78487334524107, 280.8959480734193, 285.05075453315294, 289.2055818473127, 293.3603883070464, 319.2603898329253, 323.41521714708506, 327.5700236068187, 331.7248509209785, 335.87965738071216, 340.0344638404458, 344.23302288616105, 348.3878293458947, 352.5426566600545, 356.7411948513436, 360.8960221655034, 386.79601606198776, 390.9945542532769, 395.14938156743665, 399.3479406131519, 403.546478804441, 407.70130611860077, 411.8998443098899, 416.0984033556051, 420.29694154689423, 424.49550059260946, 428.6940596383247, 454.6940596383247, 458.8925978296138, 463.09115687532903, 467.28969506661815, 471.4882541123334, 475.6867923036225, 479.8853513493377, 484.08388954062684, 488.2824694407682, 492.52471850918664, 496.723298409328, 522.6233075646014, 526.8218457558905, 531.0641365331612, 535.2626747244503, 539.4612546245917, 543.7035036930101, 547.9020835931515, 552.1443743704222, 556.3429125617113, 560.585203338982, 564.7837415302711]
},
"royal_greatsword": {
"id": "royal_greatsword",
"name": "Royal Greatsword",
"type": "claymore",
"rarity": 4, "description": "An old greatsword that belonged to the erstwhile rulers of Mondstadt. It is made from the finest-quality materials and has stood the test of time. A weapon for use by the nobility only.",
"skill": {
"name": "Focus",
"description": "Upon damaging an opponent, increases CRIT Rate by <span style=\"color: #99FFFFFF;\">8%/10%/12%/14%/16%</span>. Max 5 stacks. A CRIT Hit removes all stacks."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.27563998559922]
},
"atk": [null, 43.734901428222656, 47.58357533985509, 51.43224403788099, 55.28091794951342, 59.17332359270131, 63.065729235889194, 66.95813487907708, 70.89427746742695, 74.78668311061483, 78.72282048535817, 82.70270001887002, 86.63883739361336, 90.6187169271252, 94.55485430186855, 98.5347338353804, 102.5583451004477, 106.53822463395954, 110.51809374025834, 114.54170500532564, 118.56531627039294, 144.46531588892321, 148.48892715399052, 152.51253841905782, 156.53614968412512, 160.60349268074788, 164.62710394581518, 168.694457369651, 172.76180036627375, 176.8291433628965, 180.89648635951926, 184.96383978335507, 189.07491451153328, 193.14225750815604, 197.2533426635473, 201.3206960873831, 205.43177081556132, 209.54284554373953, 213.65394112634385, 217.76501585452206, 221.87609058270027, 225.98716531087848, 251.9871672182271, 256.09826280083144, 260.20933752900964, 264.3641439887433, 268.47523957134763, 272.6300460310813, 276.78487334524107, 280.8959480734193, 285.05075453315294, 289.2055818473127, 293.3603883070464, 319.2603898329253, 323.41521714708506, 327.5700236068187, 331.7248509209785, 335.87965738071216, 340.0344638404458, 344.23302288616105, 348.3878293458947, 352.5426566600545, 356.7411948513436, 360.8960221655034, 386.79601606198776, 390.9945542532769, 395.14938156743665, 399.3479406131519, 403.546478804441, 407.70130611860077, 411.8998443098899, 416.0984033556051, 420.29694154689423, 424.49550059260946, 428.6940596383247, 454.6940596383247, 458.8925978296138, 463.09115687532903, 467.28969506661815, 471.4882541123334, 475.6867923036225, 479.8853513493377, 484.08388954062684, 488.2824694407682, 492.52471850918664, 496.723298409328, 522.6233075646014, 526.8218457558905, 531.0641365331612, 535.2626747244503, 539.4612546245917, 543.7035036930101, 547.9020835931515, 552.1443743704222, 556.3429125617113, 560.585203338982, 564.7837415302711]
},
"rainslasher": {
"id": "rainslasher",
"name": "Rainslasher",
"type": "claymore",
"rarity": 4, "description": "A fluorescent greatsword with no sharp edge that crushes enemies with brute force and raw power.",
"skill": {
"name": "Bane of Storm and Tide",
"description": "Increases DMG against opponents affected by Hydro or Electro by <span style=\"color: #99FFFFFF;\">20%/24%/28%/32%/36%</span>."
},
"secondary": {
"name": "em",
"stats": [null, 36, 36, 36, 36, 41.831997871398926, 41.831997871398926, 41.831997871398926, 41.831997871398926, 41.831997871398926, 49.06800127029419, 49.06800127029419, 49.06800127029419, 49.06800127029419, 49.06800127029419, 56.34000205993652, 56.34000205993652, 56.34000205993652, 56.34000205993652, 56.34000205993652, 63.611998558044434, 63.611998558044434, 63.611998558044434, 63.611998558044434, 63.611998558044434, 63.611998558044434, 70.88399934768677, 70.88399934768677, 70.88399934768677, 70.88399934768677, 70.88399934768677, 78.1560001373291, 78.1560001373291, 78.1560001373291, 78.1560001373291, 78.1560001373291, 85.42799663543701, 85.42799663543701, 85.42799663543701, 85.42799663543701, 85.42799663543701, 92.70000171661377, 92.70000171661377, 92.70000171661377, 92.70000171661377, 92.70000171661377, 92.70000171661377, 99.97199821472168, 99.97199821472168, 99.97199821472168, 99.97199821472168, 99.97199821472168, 107.24400329589844, 107.24400329589844, 107.24400329589844, 107.24400329589844, 107.24400329589844, 107.24400329589844, 114.51599979400635, 114.51599979400635, 114.51599979400635, 114.51599979400635, 114.51599979400635, 121.78799629211426, 121.78799629211426, 121.78799629211426, 121.78799629211426, 121.78799629211426, 121.78799629211426, 129.06000137329102, 129.06000137329102, 129.06000137329102, 129.06000137329102, 129.06000137329102, 136.29600048065186, 136.29600048065186, 136.29600048065186, 136.29600048065186, 136.29600048065186, 136.29600048065186, 143.56799697875977, 143.56799697875977, 143.56799697875977, 143.56799697875977, 143.56799697875977, 150.84000205993652, 150.84000205993652, 150.84000205993652, 150.84000205993652, 150.84000205993652, 150.84000205993652, 158.11200714111328, 158.11200714111328, 158.11200714111328, 158.11200714111328, 158.11200714111328, 165.38399505615234]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"prototype_archaic": {
"id": "prototype_archaic",
"name": "Prototype Archaic",
"type": "claymore",
"rarity": 4, "description": "An ancient greatsword discovered in the Blackcliff Forge. It swings with such an immense force that one feels it could cut straight through reality itself.",
"skill": {
"name": "Crush",
"description": "On hit, Normal or Charged Attacks have a 50% chance to deal an additional <span style=\"color: #99FFFFFF;\">240%/300%/360%/420%/480%</span> ATK DMG to opponents within a small AoE. Can only occur once every 15s."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.27563998559922]
},
"atk": [null, 43.734901428222656, 47.58357533985509, 51.43224403788099, 55.28091794951342, 59.17332359270131, 63.065729235889194, 66.95813487907708, 70.89427746742695, 74.78668311061483, 78.72282048535817, 82.70270001887002, 86.63883739361336, 90.6187169271252, 94.55485430186855, 98.5347338353804, 102.5583451004477, 106.53822463395954, 110.51809374025834, 114.54170500532564, 118.56531627039294, 144.46531588892321, 148.48892715399052, 152.51253841905782, 156.53614968412512, 160.60349268074788, 164.62710394581518, 168.694457369651, 172.76180036627375, 176.8291433628965, 180.89648635951926, 184.96383978335507, 189.07491451153328, 193.14225750815604, 197.2533426635473, 201.3206960873831, 205.43177081556132, 209.54284554373953, 213.65394112634385, 217.76501585452206, 221.87609058270027, 225.98716531087848, 251.9871672182271, 256.09826280083144, 260.20933752900964, 264.3641439887433, 268.47523957134763, 272.6300460310813, 276.78487334524107, 280.8959480734193, 285.05075453315294, 289.2055818473127, 293.3603883070464, 319.2603898329253, 323.41521714708506, 327.5700236068187, 331.7248509209785, 335.87965738071216, 340.0344638404458, 344.23302288616105, 348.3878293458947, 352.5426566600545, 356.7411948513436, 360.8960221655034, 386.79601606198776, 390.9945542532769, 395.14938156743665, 399.3479406131519, 403.546478804441, 407.70130611860077, 411.8998443098899, 416.0984033556051, 420.29694154689423, 424.49550059260946, 428.6940596383247, 454.6940596383247, 458.8925978296138, 463.09115687532903, 467.28969506661815, 471.4882541123334, 475.6867923036225, 479.8853513493377, 484.08388954062684, 488.2824694407682, 492.52471850918664, 496.723298409328, 522.6233075646014, 526.8218457558905, 531.0641365331612, 535.2626747244503, 539.4612546245917, 543.7035036930101, 547.9020835931515, 552.1443743704222, 556.3429125617113, 560.585203338982, 564.7837415302711]
},
"whiteblind": {
"id": "whiteblind",
"name": "Whiteblind",
"type": "claymore",
"rarity": 4, "description": "An exotic sword with one section of the blade left blunt. It made its way into Liyue via the hands of foreign traders. Incredibly powerful in the hands of someone who knows how to use it.",
"skill": {
"name": "Infusion Blade",
"description": "On hit, Normal or Charged Attacks increase ATK and DEF by <span style=\"color: #99FFFFFF;\">6%/7.5%/9%/10.5%/12%</span> for 6s. Max 4 stacks. This effect can only occur once every 0.5s."
},
"secondary": {
"name": "defPercent",
"stats": [null, 0.11259999871253967, 0.11259999871253967, 0.11259999871253967, 0.11259999871253967, 0.13084119184618004, 0.13084119184618004, 0.13084119184618004, 0.13084119184618004, 0.13084119184618004, 0.15347380221838947, 0.15347380221838947, 0.15347380221838947, 0.15347380221838947, 0.15347380221838947, 0.1762190044281482, 0.1762190044281482, 0.1762190044281482, 0.1762190044281482, 0.1762190044281482, 0.19896419321494108, 0.19896419321494108, 0.19896419321494108, 0.19896419321494108, 0.19896419321494108, 0.19896419321494108, 0.2217093954246998, 0.2217093954246998, 0.2217093954246998, 0.2217093954246998, 0.2217093954246998, 0.24445459763445854, 0.24445459763445854, 0.24445459763445854, 0.24445459763445854, 0.24445459763445854, 0.2671997864212514, 0.2671997864212514, 0.2671997864212514, 0.2671997864212514, 0.2671997864212514, 0.289945002053976, 0.289945002053976, 0.289945002053976, 0.289945002053976, 0.289945002053976, 0.289945002053976, 0.3126901908407689, 0.3126901908407689, 0.3126901908407689, 0.3126901908407689, 0.3126901908407689, 0.33543540647349346, 0.33543540647349346, 0.33543540647349346, 0.33543540647349346, 0.33543540647349346, 0.33543540647349346, 0.35818059526028634, 0.35818059526028634, 0.35818059526028634, 0.35818059526028634, 0.35818059526028634, 0.3809257840470792, 0.3809257840470792, 0.3809257840470792, 0.3809257840470792, 0.3809257840470792, 0.3809257840470792, 0.4036709996798038, 0.4036709996798038, 0.4036709996798038, 0.4036709996798038, 0.4036709996798038, 0.4263035966290474, 0.4263035966290474, 0.4263035966290474, 0.4263035966290474, 0.4263035966290474, 0.4263035966290474, 0.44904878541584026, 0.44904878541584026, 0.44904878541584026, 0.44904878541584026, 0.44904878541584026, 0.47179400104856484, 0.47179400104856484, 0.47179400104856484, 0.47179400104856484, 0.47179400104856484, 0.47179400104856484, 0.4945392166812894, 0.4945392166812894, 0.4945392166812894, 0.4945392166812894, 0.4945392166812894, 0.5172843786221506]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"blackcliff_slasher": {
"id": "blackcliff_slasher",
"name": "Blackcliff Slasher",
"type": "claymore",
"rarity": 4, "description": "An extremely sturdy greatsword from the Blackcliff Forge. It has a dark crimson color from the blade to pommel.",
"skill": {
"name": "Press the Advantage",
"description": "After defeating an opponent, ATK is increased by <span style=\"color: #99FFFFFF;\">12%/15%/18%/21%/24%</span> for 30s. This effect has a maximum of 3 stacks, and the duration of each stack is independent of the others."
},
"secondary": {
"name": "critDamage",
"stats": [null, 0.11999999731779099, 0.11999999731779099, 0.11999999731779099, 0.11999999731779099, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.55127997119844]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"serpent_spine": {
"id": "serpent_spine",
"name": "Serpent Spine",
"type": "claymore",
"rarity": 4, "description": "A rare weapon whose origin is the ancient ocean. One can hear the sound of the ageless waves as one swings it.",
"skill": {
"name": "Wavesplitter",
"description": "Every 4s a character is on the field, they will deal <span style=\"color: #99FFFFFF;\">6%/7%/8%/9%/10%</span> more DMG and take <span style=\"color: #99FFFFFF;\">3%/2.7%/2.4%/2.2%/2%</span> more DMG. This effect has a maximum of 5 stacks and will not be reset if the character leaves the field, but will be reduced by 1 stack when the character takes DMG."
},
"secondary": {
"name": "critRate",
"stats": [null, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.05999999865889549, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.06971999489396818, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.08178000028923149, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.09390000133439891, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.10601999522700911, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.11813999627217653, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.13025999731734395, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.14237999120995415, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.15449999940767878, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.16661999330028898, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.1787400014980136, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.19085999539062382, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.20297998928323402, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.21509999748095865, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.22715999572366474, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.23927998961627495, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2513999978139996, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.2635200060117242, 0.27563998559922]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"lithic_blade": {
"id": "lithic_blade",
"name": "Lithic Blade",
"type": "claymore",
"rarity": 4, "description": "A greatsword carved and chiseled from the very bedrock of Liyue.",
"skill": {
"name": "Lithic Axiom: Unity",
"description": "For every character in the party who hails from Liyue, the character who equips this weapon gains a <span style=\"color: #99FFFFFF;\">7%/8%/9%/10%/11%</span> ATK increase and a <span style=\"color: #99FFFFFF;\">3%/4%/5%/6%/7%</span> CRIT Rate increase. This effect stacks up to 4 times."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.41346000406980465]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"snow-tombed_starsilver": {
"id": "snow-tombed_starsilver",
"name": "Snow-Tombed Starsilver",
"type": "claymore",
"rarity": 4, "description": "An ancient greatsword that was stored between frescoes. Forged from Starsilver, it has the power to cleave through ice and snow.",
"skill": {
"name": "Frost Burial",
"description": "Hitting an opponent with Normal and Charged Attacks has a <span style=\"color: #99FFFFFF;\">60%/70%/80%/90%/100%</span> chance of forming and dropping an Everfrost Icicle above them, dealing AoE DMG equal to <span style=\"color: #99FFFFFF;\">80%/95%/110%/125%/140%</span> of ATK. Opponents affected by Cryo are instead dealt DMG equal to <span style=\"color: #99FFFFFF;\">200%/240%/280%/320%/360%</span> of ATK. Can only occur once every 10s."
},
"secondary": {
"name": "physicalDamage",
"stats": [null, 0.07506699860095978, 0.07506699860095978, 0.07506699860095978, 0.07506699860095978, 0.08722784793576821, 0.08722784793576821, 0.08722784793576821, 0.08722784793576821, 0.08722784793576821, 0.10231632174191851, 0.10231632174191851, 0.10231632174191851, 0.10231632174191851, 0.10231632174191851, 0.11747985710587017, 0.11747985710587017, 0.11747985710587017, 0.11747985710587017, 0.11747985710587017, 0.13264338352113825, 0.13264338352113825, 0.13264338352113825, 0.13264338352113825, 0.13264338352113825, 0.13264338352113825, 0.1478069188850899, 0.1478069188850899, 0.1478069188850899, 0.1478069188850899, 0.1478069188850899, 0.16297045424904155, 0.16297045424904155, 0.16297045424904155, 0.16297045424904155, 0.16297045424904155, 0.17813398066430963, 0.17813398066430963, 0.17813398066430963, 0.17813398066430963, 0.17813398066430963, 0.19329752497694486, 0.19329752497694486, 0.19329752497694486, 0.19329752497694486, 0.19329752497694486, 0.19329752497694486, 0.20846105139221294, 0.20846105139221294, 0.20846105139221294, 0.20846105139221294, 0.20846105139221294, 0.22362459570484816, 0.22362459570484816, 0.22362459570484816, 0.22362459570484816, 0.22362459570484816, 0.22362459570484816, 0.23878812212011624, 0.23878812212011624, 0.23878812212011624, 0.23878812212011624, 0.23878812212011624, 0.2539516485353843, 0.2539516485353843, 0.2539516485353843, 0.2539516485353843, 0.2539516485353843, 0.2539516485353843, 0.26911519284801955, 0.26911519284801955, 0.26911519284801955, 0.26911519284801955, 0.26911519284801955, 0.2842036577054863, 0.2842036577054863, 0.2842036577054863, 0.2842036577054863, 0.2842036577054863, 0.2842036577054863, 0.29936718412075436, 0.29936718412075436, 0.29936718412075436, 0.29936718412075436, 0.29936718412075436, 0.3145307284333896, 0.3145307284333896, 0.3145307284333896, 0.3145307284333896, 0.3145307284333896, 0.3145307284333896, 0.3296942727460248, 0.3296942727460248, 0.3296942727460248, 0.3296942727460248, 0.3296942727460248, 0.34485778126392574]
},
"atk": [null, 43.734901428222656, 47.58357533985509, 51.43224403788099, 55.28091794951342, 59.17332359270131, 63.065729235889194, 66.95813487907708, 70.89427746742695, 74.78668311061483, 78.72282048535817, 82.70270001887002, 86.63883739361336, 90.6187169271252, 94.55485430186855, 98.5347338353804, 102.5583451004477, 106.53822463395954, 110.51809374025834, 114.54170500532564, 118.56531627039294, 144.46531588892321, 148.48892715399052, 152.51253841905782, 156.53614968412512, 160.60349268074788, 164.62710394581518, 168.694457369651, 172.76180036627375, 176.8291433628965, 180.89648635951926, 184.96383978335507, 189.07491451153328, 193.14225750815604, 197.2533426635473, 201.3206960873831, 205.43177081556132, 209.54284554373953, 213.65394112634385, 217.76501585452206, 221.87609058270027, 225.98716531087848, 251.9871672182271, 256.09826280083144, 260.20933752900964, 264.3641439887433, 268.47523957134763, 272.6300460310813, 276.78487334524107, 280.8959480734193, 285.05075453315294, 289.2055818473127, 293.3603883070464, 319.2603898329253, 323.41521714708506, 327.5700236068187, 331.7248509209785, 335.87965738071216, 340.0344638404458, 344.23302288616105, 348.3878293458947, 352.5426566600545, 356.7411948513436, 360.8960221655034, 386.79601606198776, 390.9945542532769, 395.14938156743665, 399.3479406131519, 403.546478804441, 407.70130611860077, 411.8998443098899, 416.0984033556051, 420.29694154689423, 424.49550059260946, 428.6940596383247, 454.6940596383247, 458.8925978296138, 463.09115687532903, 467.28969506661815, 471.4882541123334, 475.6867923036225, 479.8853513493377, 484.08388954062684, 488.2824694407682, 492.52471850918664, 496.723298409328, 522.6233075646014, 526.8218457558905, 531.0641365331612, 535.2626747244503, 539.4612546245917, 543.7035036930101, 547.9020835931515, 552.1443743704222, 556.3429125617113, 560.585203338982, 564.7837415302711]
},
"luxurious_sea-lord": {
"id": "luxurious_sea-lord",
"name": "Luxurious Sea-Lord",
"type": "claymore",
"rarity": 4, "description": "The great king of the ocean. Having been air-dried, it makes for a fine weapon as well as emergency sustenance.",
"skill": {
"name": "Oceanic Victory",
"description": "Increases Elemental Burst DMG by <span style=\"color: #99FFFFFF;\">12%/15%/18%/21%/24%</span>. When Elemental Burst hits opponents, there is a 100% chance of summoning a huge onrush of tuna that deals <span style=\"color: #99FFFFFF;\">100%/125%/150%/175%/200%</span> ATK as AoE DMG. This effect can occur once every 15s."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.11999999731779099, 0.11999999731779099, 0.11999999731779099, 0.11999999731779099, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.13943998978793637, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.16356000057846298, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.18780000266879782, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.21203999045401822, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.23627999254435306, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2605199946346879, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.2847599824199083, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.30899999881535756, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.33323998660057796, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.3574800029960272, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.38171999078124763, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.40595997856646804, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4301999949619173, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4543199914473295, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.4785599792325499, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5027999956279992, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.5270400120234484, 0.55127997119844]
},
"atk": [null, 41.067100524902344, 44.22926816610652, 47.3914358073107, 50.51253442892266, 53.63363305053463, 56.75473167214659, 59.83476616974622, 62.95586479135818, 65.9948302693656, 69.07486476696522, 72.15489436898497, 75.19385984699238, 78.2328253249998, 81.2717908030072, 84.26969215700228, 87.30865273942982, 90.30654919784502, 93.30445544741997, 96.30235190583517, 99.25918424023803, 125.1591838587683, 128.1570803171835, 131.11391265158636, 134.07074498598922, 137.06864144440442, 139.98440965479494, 142.94123219803805, 145.8980645324409, 148.81383274283144, 151.7706650772343, 154.68642349646507, 157.6021917068556, 160.51795991724612, 163.4337183364769, 166.3494865468674, 169.22418084208584, 172.13994905247637, 175.05570747170714, 177.93040176692557, 180.80510585330376, 183.6798001485222, 209.67980205587082, 212.59557026626135, 215.47026456147978, 218.3449588566982, 221.17859881906406, 224.05328332312274, 226.92798740950093, 229.8026719135596, 232.63631187592546, 235.51101596230365, 238.34463634235, 264.2446378682289, 267.07827783059474, 269.9529623346534, 272.7866022970193, 275.6202226770656, 278.45386263943146, 281.2874830194778, 284.12112298184365, 286.95474336189, 289.78838332425585, 292.6220037043022, 318.52199760078656, 321.3556375631524, 324.1481938191864, 326.98181419923276, 329.8154541615986, 332.6080104176326, 335.44165037999846, 338.23420663603247, 341.0678465983983, 343.8604028544323, 346.6529591104663, 372.6529591104663, 375.4865990728322, 378.2791553288662, 381.0717115849002, 383.8642874232537, 386.6568436792877, 389.49048364165355, 392.28303989768756, 395.07559615372156, 397.8681719920751, 400.6607282481091, 426.5607374033825, 429.3122295354042, 432.1047857914382, 434.8973616297917, 437.6899178858257, 440.4824741418597, 443.2750499802132, 446.0265421122349, 448.8190983682689, 451.6116742066224, 454.3631663386441]
},
"katsuragikiri_nagamasa": {
"id": "katsuragikiri_nagamasa",
"name": "Katsuragikiri Nagamasa",
"type": "claymore",
"rarity": 4, "description": "A blade that was once made in Tatarasuna. Heavy and tough.",
"skill": {
"name": "Samurai Conduct",
"description": "Increases Elemental Skill DMG by <span style=\"color: #99FFFFFF;\">6%/7.5%/9%/10.5%/12%</span>. After Elemental Skill hits an opponent, the character loses 3 Energy but regenerates <span style=\"color: #99FFFFFF;\">3/3.5/4/4.5/5</span> Energy every 2s for the next 6s. This effect can occur once every 10s. Can be triggered even when the character is not on the field."
},
"secondary": {
"name": "er",
"stats": [null, 0.10000000149011612, 0.10000000149011612, 0.10000000149011612, 0.10000000149011612, 0.11619999581873408, 0.11619999581873408, 0.11619999581873408, 0.11619999581873408, 0.11619999581873408, 0.1363000055596233, 0.1363000055596233, 0.1363000055596233, 0.1363000055596233, 0.1363000055596233, 0.1565000080540777, 0.1565000080540777, 0.1565000080540777, 0.1565000080540777, 0.1565000080540777, 0.176699998627603, 0.176699998627603, 0.176699998627603, 0.176699998627603, 0.176699998627603, 0.176699998627603, 0.1969000011220574, 0.1969000011220574, 0.1969000011220574, 0.1969000011220574, 0.1969000011220574, 0.21710000361651183, 0.21710000361651183, 0.21710000361651183, 0.21710000361651183, 0.21710000361651183, 0.2372999941900371, 0.2372999941900371, 0.2372999941900371, 0.2372999941900371, 0.2372999941900371, 0.25750000860542066, 0.25750000860542066, 0.25750000860542066, 0.25750000860542066, 0.25750000860542066, 0.25750000860542066, 0.27769999917894594, 0.27769999917894594, 0.27769999917894594, 0.27769999917894594, 0.27769999917894594, 0.2979000135943295, 0.2979000135943295, 0.2979000135943295, 0.2979000135943295, 0.2979000135943295, 0.2979000135943295, 0.3181000041678548, 0.3181000041678548, 0.3181000041678548, 0.3181000041678548, 0.3181000041678548, 0.33829999474138006, 0.33829999474138006, 0.33829999474138006, 0.33829999474138006, 0.33829999474138006, 0.33829999474138006, 0.3585000091567636, 0.3585000091567636, 0.3585000091567636, 0.3585000091567636, 0.3585000091567636, 0.3786000069767237, 0.3786000069767237, 0.3786000069767237, 0.3786000069767237, 0.3786000069767237, 0.3786000069767237, 0.398799997550249, 0.398799997550249, 0.398799997550249, 0.398799997550249, 0.398799997550249, 0.4190000119656325, 0.4190000119656325, 0.4190000119656325, 0.4190000119656325, 0.4190000119656325, 0.4190000119656325, 0.4392000263810161, 0.4392000263810161, 0.4392000263810161, 0.4392000263810161, 0.4392000263810161, 0.4593999931126831]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"akuoumaru": {
"id": "akuoumaru",
"name": "Akuoumaru",
"type": "claymore",
"rarity": 4, "description": "The beloved sword of the legendary \"Akuou.\" The blade is huge and majestic, but is surprisingly easy to wield.",
"skill": {
"name": "Watatsumi Wavewalker",
"description": "For every point of the entire party's combined maximum Energy capacity, the Elemental Burst DMG of the character equipping this weapon is increased by <span style=\"color: #99FFFFFF;\">0.12%/0.15%/0.18%/0.21%/0.24%</span>. A maximum of <span style=\"color: #99FFFFFF;\">40%/50%/60%/70%/80%</span> increased Elemental Burst DMG can be achieved this way."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.09000000357627869, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.10457999883413294, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.12267000805020345, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.14085001074671766, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.15903000271439538, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1772100054109096, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.1953900081074238, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.21357000007510152, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.2317500135004522, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.24993000546812993, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.26811001889348063, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.28629001086115835, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.3044700028288361, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.32265001625418677, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3407400147414208, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3589200067090985, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3771000201344492, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.3952800335597999, 0.41346000406980465]
},
"atk": [null, 42.4010009765625, 45.92028171228594, 49.39716452022549, 52.91645031054213, 56.39333311848168, 59.91261385420512, 63.389496662144666, 66.9087773978681, 70.42806318818475, 73.9049459961243, 77.42422673184774, 80.90110953978729, 84.42039533010393, 87.89727308345027, 91.41655381917371, 94.93584466408356, 98.41272747202311, 101.93200820774655, 105.4088910156861, 108.92817175140954, 134.8281713699398, 138.30505417787936, 141.8243349136028, 145.34361564932624, 148.82049845726578, 152.33978930217563, 155.81666200092877, 159.33595284583862, 162.81283565377817, 166.3321163895016, 169.80899919744115, 173.3282799331646, 176.84756066888804, 180.32444347682758, 183.84372421255102, 187.32060702049057, 190.83989786540042, 194.31677056415356, 197.836051299877, 201.35534214478685, 204.83221484354, 230.83221675088862, 234.35150759579847, 237.82840051292442, 241.34767113946145, 244.8245640565874, 248.34383468312444, 251.8631255280343, 255.33999822678743, 258.8592890716973, 262.3361617704504, 265.85545261536026, 291.75545414123917, 295.2323268399923, 298.75161768490216, 302.270908529812, 305.74778122856515, 309.267072073475, 312.74394477222813, 316.263235617138, 319.7401083158911, 323.25939916080097, 326.7786900057108, 352.6786839021952, 356.15555660094833, 359.6748474458582, 363.1517201446113, 366.67101098952116, 370.1478836882743, 373.66717453318415, 377.1864451597212, 380.66333807684714, 384.1826087033842, 387.6595016205101, 413.6595016205101, 417.17879246542, 420.6556651641731, 424.17495600908296, 427.69422663562, 431.17111955274595, 434.690390179283, 438.16728309640894, 441.686553722946, 445.1634466400719, 448.68271726660896, 474.5827264218824, 478.10201726679225, 481.5789101839182, 485.09818081045523, 488.5750737275812, 492.0943443541182, 495.57121705287136, 499.0905078977812, 502.56738059653435, 506.0866714414442, 509.60596228635404]
},
"skyward_pride": {
"id": "skyward_pride",
"name": "Skyward Pride",
"type": "claymore",
"rarity": 5, "description": "A claymore that symbolizes the pride of Dvalin soaring through the skies. When swung, it emits a deep hum as the full force of Dvalin's command of the sky and the wind is unleashed.",
"skill": {
"name": "Sky-ripping Dragon Spine",
"description": "Increases all DMG by <span style=\"color: #99FFFFFF;\">8%/10%/12%/14%/16%</span>. After using an Elemental Burst, Normal or Charged Attack, on hit, creates a vacuum blade that does <span style=\"color: #99FFFFFF;\">80%/100%/120%/140%/160%</span> of ATK as DMG to opponents along its path. Lasts for 20s or 8 vacuum blades."
},
"secondary": {
"name": "er",
"stats": [null, 0.07999999821186066, 0.07999999821186066, 0.07999999821186066, 0.07999999821186066, 0.09295999319195758, 0.09295999319195758, 0.09295999319195758, 0.09295999319195758, 0.09295999319195758, 0.10904000038564199, 0.10904000038564199, 0.10904000038564199, 0.10904000038564199, 0.10904000038564199, 0.12520000177919854, 0.12520000177919854, 0.12520000177919854, 0.12520000177919854, 0.12520000177919854, 0.14135999363601215, 0.14135999363601215, 0.14135999363601215, 0.14135999363601215, 0.14135999363601215, 0.14135999363601215, 0.1575199950295687, 0.1575199950295687, 0.1575199950295687, 0.1575199950295687, 0.1575199950295687, 0.17367999642312526, 0.17367999642312526, 0.17367999642312526, 0.17367999642312526, 0.17367999642312526, 0.18983998827993886, 0.18983998827993886, 0.18983998827993886, 0.18983998827993886, 0.18983998827993886, 0.20599999921023837, 0.20599999921023837, 0.20599999921023837, 0.20599999921023837, 0.20599999921023837, 0.20599999921023837, 0.22215999106705198, 0.22215999106705198, 0.22215999106705198, 0.22215999106705198, 0.22215999106705198, 0.23832000199735148, 0.23832000199735148, 0.23832000199735148, 0.23832000199735148, 0.23832000199735148, 0.23832000199735148, 0.2544799938541651, 0.2544799938541651, 0.2544799938541651, 0.2544799938541651, 0.2544799938541651, 0.2706399857109787, 0.2706399857109787, 0.2706399857109787, 0.2706399857109787, 0.2706399857109787, 0.2706399857109787, 0.2867999966412782, 0.2867999966412782, 0.2867999966412782, 0.2867999966412782, 0.2867999966412782, 0.30287999429821966, 0.30287999429821966, 0.30287999429821966, 0.30287999429821966, 0.30287999429821966, 0.30287999429821966, 0.31903998615503326, 0.31903998615503326, 0.31903998615503326, 0.31903998615503326, 0.31903998615503326, 0.33519999708533277, 0.33519999708533277, 0.33519999708533277, 0.33519999708533277, 0.33519999708533277, 0.33519999708533277, 0.3513600080156323, 0.3513600080156323, 0.3513600080156323, 0.3513600080156323, 0.3513600080156323, 0.36751998079896]
},
"atk": [null, 47.5369987487793, 51.86286377619081, 56.23626802375702, 60.609672271323234, 65.03061573904415, 69.45155353991322, 73.87249700763414, 78.34097402865791, 82.85699026983639, 87.32546729086016, 91.8890170853415, 96.40503899337182, 100.96858878785315, 105.53213858233448, 110.14322193011867, 114.75431661160655, 119.36539995939074, 123.97649464087863, 128.63512287566937, 133.2937397767564, 164.39374015822614, 169.09991328002343, 173.80607506811702, 178.51223685621062, 183.21839864430422, 187.97209398570067, 192.72580066080081, 197.47949600219727, 202.28073623060027, 207.03443157199672, 211.88320535370258, 216.68444558210558, 221.48568581050858, 226.33444825851075, 231.1832333739203, 236.07952937522532, 240.92831449063488, 245.8246331593473, 250.7209291606523, 255.61724782936471, 260.56110005138, 291.6611004328497, 296.604952654865, 301.54878220947285, 306.4926344314881, 311.4364866535034, 316.4278724288215, 321.4192582041396, 326.41064397945775, 331.40202975477587, 336.393415530094, 341.43233485871497, 372.6323356216544, 377.6712549502754, 382.7101742788964, 387.74909360751735, 392.8355464894412, 397.9220220387724, 403.00847492069624, 408.0949278026201, 413.1814033519513, 418.315389787178, 423.4018426691018, 454.5018411432229, 459.635850245857, 464.7698366810837, 469.9513793370206, 475.0853657722473, 480.26690842818425, 485.40089486341094, 490.5824375193479, 495.8114910611803, 500.9930337171172, 506.2220872589496, 537.3220933624652, 542.5036360184022, 547.7326895602346, 552.9617884368818, 558.2383981994244, 563.4674517412568, 568.7440615037995, 574.0206712663421, 579.2972810288848, 584.5738907914274, 589.85050055397, 620.9504913986966, 626.2746120471347, 631.5512218096774, 636.8753877929303, 642.1995084413684, 647.5236744246213, 652.8953512937696, 658.2194719422077, 663.5911488113561, 668.9628710153193, 674.3345478844676]
},
"wolfs_gravestone": {
"id": "wolfs_gravestone",
"name": "Wolf's Gravestone",
"type": "claymore",
"rarity": 5, "description": "A longsword used by the Wolf Knight. Originally just a heavy sheet of iron given to the knight by a blacksmith from the city, it became endowed with legendary power owing to his friendship with the wolves.",
"skill": {
"name": "Wolfish Tracker",
"description": "Increases ATK by <span style=\"color: #99FFFFFF;\">20%/25%/30%/35%/40%</span>. On hit, attacks against opponents with less than 30% HP increase all party members' ATK by <span style=\"color: #99FFFFFF;\">40%/50%/60%/70%/80%</span> for 12s. Can only occur once every 30s."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.1080000028014183, 0.1080000028014183, 0.1080000028014183, 0.1080000028014183, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.49615199803817234]
},
"atk": [null, 45.9364013671875, 49.88693030766444, 53.79152617621003, 57.74205511668697, 61.692589533209684, 65.64311847368663, 69.6395859621407, 73.59011490261764, 77.58658239107172, 81.53711133154866, 85.53357882000273, 89.5300463084568, 93.52651379691088, 97.56891983334208, 101.56538184575038, 105.60778788218158, 109.60424989458988, 113.64665593102109, 117.68906196745229, 121.73146800388349, 152.83146838535322, 156.87386346969288, 160.96220257805544, 165.00460861448664, 169.0929477228492, 173.18128683121176, 177.26962593957433, 181.3579650479369, 185.44630415629945, 189.5805872886849, 193.66892639704747, 197.8031985773414, 201.93748170972685, 206.07175389002077, 210.2060260703147, 214.34030920270015, 218.52051445492543, 222.6547975873109, 226.83501379162772, 231.01522999594454, 235.19542429607827, 266.295424677548, 270.4756408818648, 274.65585708618164, 278.8820063624298, 283.06222256674664, 287.2883718429948, 291.514521119243, 295.7406703954912, 299.96681967173936, 304.19296894798754, 308.4191182242357, 339.61911898717517, 343.8912013353547, 348.16328368353425, 352.3894329597824, 356.66151530796196, 360.97953072807286, 365.2516349804355, 369.523717328615, 373.8417327487259, 378.11381509690545, 382.43183051701635, 413.53182899113744, 417.8498663154314, 422.1678817355423, 426.5318302275846, 430.84986755187856, 435.16788297198946, 439.5318314640317, 443.89580186025705, 448.2597503522993, 452.62372074852465, 456.9876692405669, 488.0876753440825, 492.4975788122392, 496.8615273042815, 501.2714307724382, 505.6813123364118, 510.0912158045685, 514.5011192727252, 518.9110008366988, 523.3209043048555, 527.7767408449436, 532.2325773850316, 563.3325682297582, 567.7424497937318, 572.1982863338199, 576.6541228739079, 581.1558705817442, 585.6117071218323, 590.1134548296686, 594.5692913697567, 599.0710828859592, 603.5728305937955, 608.074622109998]
},
"song_of_broken_pines": {
"id": "song_of_broken_pines",
"name": "Song of Broken Pines",
"type": "claymore",
"rarity": 5, "description": "A greatsword as light as the sigh of grass in the breeze, yet as merciless to the corrupt as a typhoon.",
"skill": {
"name": "Rebel's Banner-Hymn",
"description": "A part of the \"Millennial Movement\" that wanders amidst the winds. Increases ATK by <span style=\"color: #99FFFFFF;\">16%/20%/24%/28%/32%</span>, and when Normal or Charged Attacks hit opponents, the character gains a Sigil of Whispers. This effect can be triggered once every 0.3s. When you possess 4 Sigils of Whispers, all of them will be consumed and all nearby party members will obtain the \"Millennial Movement: Banner-Hymn\" effect for 12s. \"Millennial Movement: Banner-Hymn\" increases Normal ATK SPD by <span style=\"color: #99FFFFFF;\">12%/15%/18%/21%/24%</span> and increases ATK by <span style=\"color: #99FFFFFF;\">20%/25%/30%/35%/40%</span>. Once this effect is triggered, you will not gain Sigils of Whispers for 20s. Of the many effects of the \"Millennial Movement,\" buffs of the same type will not stack."
},
"secondary": {
"name": "physicalDamage",
"stats": [null, 0.04500000178813934, 0.04500000178813934, 0.04500000178813934, 0.04500000178813934, 0.05228999941706647, 0.05228999941706647, 0.05228999941706647, 0.05228999941706647, 0.05228999941706647, 0.061335004025101725, 0.061335004025101725, 0.061335004025101725, 0.061335004025101725, 0.061335004025101725, 0.07042500537335883, 0.07042500537335883, 0.07042500537335883, 0.07042500537335883, 0.07042500537335883, 0.07951500135719769, 0.07951500135719769, 0.07951500135719769, 0.07951500135719769, 0.07951500135719769, 0.07951500135719769, 0.0886050027054548, 0.0886050027054548, 0.0886050027054548, 0.0886050027054548, 0.0886050027054548, 0.0976950040537119, 0.0976950040537119, 0.0976950040537119, 0.0976950040537119, 0.0976950040537119, 0.10678500003755076, 0.10678500003755076, 0.10678500003755076, 0.10678500003755076, 0.10678500003755076, 0.1158750067502261, 0.1158750067502261, 0.1158750067502261, 0.1158750067502261, 0.1158750067502261, 0.1158750067502261, 0.12496500273406497, 0.12496500273406497, 0.12496500273406497, 0.12496500273406497, 0.12496500273406497, 0.13405500944674031, 0.13405500944674031, 0.13405500944674031, 0.13405500944674031, 0.13405500944674031, 0.13405500944674031, 0.14314500543057918, 0.14314500543057918, 0.14314500543057918, 0.14314500543057918, 0.14314500543057918, 0.15223500141441804, 0.15223500141441804, 0.15223500141441804, 0.15223500141441804, 0.15223500141441804, 0.15223500141441804, 0.16132500812709338, 0.16132500812709338, 0.16132500812709338, 0.16132500812709338, 0.16132500812709338, 0.1703700073707104, 0.1703700073707104, 0.1703700073707104, 0.1703700073707104, 0.1703700073707104, 0.1703700073707104, 0.17946000335454926, 0.17946000335454926, 0.17946000335454926, 0.17946000335454926, 0.17946000335454926, 0.1885500100672246, 0.1885500100672246, 0.1885500100672246, 0.1885500100672246, 0.1885500100672246, 0.1885500100672246, 0.19764001677989995, 0.19764001677989995, 0.19764001677989995, 0.19764001677989995, 0.19764001677989995, 0.20673000203490233]
},
"atk": [null, 49.137699127197266, 53.904056083119485, 58.670413039041705, 63.48590999029784, 68.35054107921769, 73.21517216813754, 78.17807739005502, 83.1409884696427, 88.10389369156019, 93.11593890881159, 98.1771241213969, 103.28744347164593, 108.39776867956516, 113.50808217214399, 118.66754151772693, 123.87613500097359, 129.08474019956066, 134.34246782047103, 139.6002071567218, 144.9070689152959, 176.00706929676562, 181.31394277068011, 186.6208162445946, 191.9768238561728, 197.38197732075514, 202.73798493233335, 208.1922725345794, 213.5974142838213, 219.05170188606735, 224.5551236259771, 230.05853365054645, 235.5619553904562, 241.06537713036596, 246.61795643862024, 252.1705123161937, 257.7722023314309, 263.3739157773489, 268.97560579258607, 274.62642994548696, 280.27727752906867, 285.92810168196957, 317.0281020634393, 322.678949647021, 328.3789079375856, 334.07888965883103, 339.82800551774017, 345.5771213766493, 351.3262138048776, 357.07532966378676, 362.8244455226959, 368.62269551926875, 374.4209455158416, 405.62094627878105, 411.4683304130176, 417.3157145472542, 423.113964543827, 429.0104828157273, 434.85786694996386, 440.75438522186414, 446.65092692444523, 452.5474451963455, 458.4439634682458, 464.3896393084906, 495.4896377826117, 501.43529019217567, 507.38094260173966, 513.3266184419845, 519.3214049892122, 525.3161915364399, 531.3110249450292, 537.3058114922569, 543.3497556078291, 549.3445421550568, 555.3884862706291, 586.4884923741447, 592.5815471966998, 598.6254913122721, 604.7185929961888, 610.7624902503994, 616.8555919343162, 622.9978043252158, 629.090859147771, 635.2330715386706, 641.3752839295703, 647.51749632047, 678.6174871651965, 684.7596995560962, 690.9019119469958, 697.09328190624, 703.2846050041226, 709.4759749633668, 715.6673449226109, 721.907825588838, 728.0991486867206, 734.3396762143093, 740.5801568805364]
},
"the_unforged": {
"id": "the_unforged",
"name": "The Unforged",
"type": "claymore",
"rarity": 5, "description": "Capable of driving away evil spirits and wicked people alike, this edgeless claymore seems to possess divine might.",
"skill": {
"name": "Golden Majesty",
"description": "Increases Shield Strength by <span style=\"color: #99FFFFFF;\">20%/25%/30%/35%/40%</span>. Scoring hits on opponents increases ATK by <span style=\"color: #99FFFFFF;\">4%/5%/6%/7%/8%</span> for 8s. Max 5 stacks. Can only occur once every 0.3s. While protected by a shield, this ATK increase effect is increased by 100%."
},
"secondary": {
"name": "atkPercent",
"stats": [null, 0.1080000028014183, 0.1080000028014183, 0.1080000028014183, 0.1080000028014183, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.12549599686944468, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.14720400762921582, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.16902001056402938, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.19083600062423933, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.2126520035590529, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.23446800649386645, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2562839965540764, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.2781000123634936, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.29991600242370353, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.3217320182331207, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.34354800829333065, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3653639983535406, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.3871800141629578, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.4088880120481253, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.43070400210833526, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4525200179177524, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.4743360337271696, 0.49615199803817234]
},
"atk": [null, 45.9364013671875, 49.88693030766444, 53.79152617621003, 57.74205511668697, 61.692589533209684, 65.64311847368663, 69.6395859621407, 73.59011490261764, 77.58658239107172, 81.53711133154866, 85.53357882000273, 89.5300463084568, 93.52651379691088, 97.56891983334208, 101.56538184575038, 105.60778788218158, 109.60424989458988, 113.64665593102109, 117.68906196745229, 121.73146800388349, 152.83146838535322, 156.87386346969288, 160.96220257805544, 165.00460861448664, 169.0929477228492, 173.18128683121176, 177.26962593957433, 181.3579650479369, 185.44630415629945, 189.5805872886849, 193.66892639704747, 197.8031985773414, 201.93748170972685, 206.07175389002077, 210.2060260703147, 214.34030920270015, 218.52051445492543, 222.6547975873109, 226.83501379162772, 231.01522999594454, 235.19542429607827, 266.295424677548, 270.4756408818648, 274.65585708618164, 278.8820063624298, 283.06222256674664, 287.2883718429948, 291.514521119243, 295.7406703954912, 299.96681967173936, 304.19296894798754, 308.4191182242357, 339.61911898717517, 343.8912013353547, 348.16328368353425, 352.3894329597824, 356.66151530796196, 360.97953072807286, 365.2516349804355, 369.523717328615, 373.8417327487259, 378.11381509690545, 382.43183051701635, 413.53182899113744, 417.8498663154314, 422.1678817355423, 426.5318302275846, 430.84986755187856, 435.16788297198946, 439.5318314640317, 443.89580186025705, 448.2597503522993, 452.62372074852465, 456.9876692405669, 488.0876753440825, 492.4975788122392, 496.8615273042815, 501.2714307724382, 505.6813123364118, 510.0912158045685, 514.5011192727252, 518.9110008366988, 523.3209043048555, 527.7767408449436, 532.2325773850316, 563.3325682297582, 567.7424497937318, 572.1982863338199, 576.6541228739079, 581.1558705817442, 585.6117071218323, 590.1134548296686, 594.5692913697567, 599.0710828859592, 603.5728305937955, 608.074622109998]
}
};
|
var MatchesCtrl = function($scope, $resource) {
};
module.exports = MatchesCtrl;
|
/**
* @author milver.
*/
export class SteeperController{
constructor($log,ToastService,API,$state,$auth,$stateParams,FunctionsService){
'ngInject';
this.$log=$log;
this.$stateParams=$stateParams;
this.ToastService=ToastService;
this.API=API;
this.$state=$state;
this.$auth=$auth;
this.FunctionsService=FunctionsService;
this.pacient=null;
this.sections=null;
this.enableSections=false;
}
$onInit(){
let vm=this;
let pacient=this.FunctionsService.getObjectSessionStorage('current_selection');
if (pacient!=null){
this.enableSections=true;
}
this.API.one('section').get().then(function (response) {
vm.sections=response;
});
}
changeSection(section){
this.$state.go('app.pacient',{steep:section});
}
savePacient(){
let vm=this;
this.API.all('pacients').post(this.pacient).then(function (response) {
vm.ToastService.show(response.message);
vm.$state.go('app.pacients');
});
}
}
|
/*
* zClip :: jQuery ZeroClipboard v1.1.1
* http://steamdev.com/zclip
*
* Copyright 2011, SteamDev
* Released under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Date: Wed Jun 01, 2011
*/
(function (a) {
a.fn.zclip = function (c) {
if (typeof c == "object" && !c.length) {
var b = a.extend({
path: "ZeroClipboard.swf",
copy: null,
beforeCopy: null,
afterCopy: null,
clickAfter: true,
setHandCursor: true,
setCSSEffects: true
}, c);
return this.each(function () {
var e = a(this);
if (e.is(":visible") && (typeof b.copy == "string" || a.isFunction(b.copy))) {
ZeroClipboard.setMoviePath(b.path);
var d = new ZeroClipboard.Client();
if (a.isFunction(b.copy)) {
e.unbind('zClip_copy').bind("zClip_copy", b.copy)
}
if (a.isFunction(b.beforeCopy)) {
e.unbind('zClip_beforeCopy').bind("zClip_beforeCopy", b.beforeCopy)
}
if (a.isFunction(b.afterCopy)) {
// e.bind("zClip_afterCopy", b.afterCopy)
//修复每次点击会增加一次复制成功的调用BUG
e.unbind('zClip_afterCopy').bind('zClip_afterCopy', b.afterCopy);
}
d.setHandCursor(b.setHandCursor);
d.setCSSEffects(b.setCSSEffects);
d.addEventListener("mouseOver", function (f) {
e.trigger("mouseenter")
});
d.addEventListener("mouseOut", function (f) {
e.trigger("mouseleave")
});
d.addEventListener("mouseDown", function (f) {
e.trigger("mousedown");
if (!a.isFunction(b.copy)) {
d.setText(b.copy)
} else {
d.setText(e.triggerHandler("zClip_copy"))
}
if (a.isFunction(b.beforeCopy)) {
e.trigger("zClip_beforeCopy")
}
});
d.addEventListener("complete", function (f, g) {
if (a.isFunction(b.afterCopy)) {
e.trigger("zClip_afterCopy")
} else {
if (g.length > 500) {
g = g.substr(0, 500) + "...\n\n(" + (g.length - 500) + " characters not shown)"
}
e.removeClass("hover");
layer.msg('复制成功');
}
if (b.clickAfter) {
e.trigger("click")
}
});
d.glue(e[0], e.parent()[0]);
a(window).bind("load resize", function () {
d.reposition()
})
}
})
} else {
if (typeof c == "string") {
return this.each(function () {
var f = a(this);
c = c.toLowerCase();
var e = f.data("zclipId");
var d = a("#" + e + ".zclip");
if (c == "remove") {
d.remove();
f.removeClass("active hover")
} else {
if (c == "hide") {
d.hide();
f.removeClass("active hover")
} else {
if (c == "show") {
d.show()
}
}
}
})
}
}
}
})(jQuery);
var ZeroClipboard = {
version: "1.0.7", clients: {}, moviePath: "ZeroClipboard.swf", nextId: 1, $: function (a) {
if (typeof(a) == "string") {
a = document.getElementById(a)
}
if (!a.addClass) {
a.hide = function () {
this.style.display = "none"
};
a.show = function () {
this.style.display = ""
};
a.addClass = function (b) {
this.removeClass(b);
this.className += " " + b
};
a.removeClass = function (d) {
var e = this.className.split(/\s+/);
var b = -1;
for (var c = 0; c < e.length; c++) {
if (e[c] == d) {
b = c;
c = e.length
}
}
if (b > -1) {
e.splice(b, 1);
this.className = e.join(" ")
}
return this
};
a.hasClass = function (b) {
return !!this.className.match(new RegExp("\\s*" + b + "\\s*"))
}
}
return a
}, setMoviePath: function (a) {
this.moviePath = a
}, dispatch: function (d, b, c) {
var a = this.clients[d];
if (a) {
a.receiveEvent(b, c)
}
}, register: function (b, a) {
this.clients[b] = a
}, getDOMObjectPosition: function (c, a) {
var b = {
left: 0,
top: 0,
width: c.width ? c.width : c.offsetWidth,
height: c.height ? c.height : c.offsetHeight
};
if (c && (c != a)) {
b.left += c.offsetLeft;
b.top += c.offsetTop
}
return b
}, Client: function (a) {
this.handlers = {};
this.id = ZeroClipboard.nextId++;
this.movieId = "ZeroClipboardMovie_" + this.id;
ZeroClipboard.register(this.id, this);
if (a) {
this.glue(a)
}
}
};
ZeroClipboard.Client.prototype = {
id: 0,
ready: false,
movie: null,
clipText: "",
handCursorEnabled: true,
cssEffects: true,
handlers: null,
glue: function (d, b, e) {
this.domElement = ZeroClipboard.$(d);
var f = 99;
if (this.domElement.style.zIndex) {
f = parseInt(this.domElement.style.zIndex, 10) + 1
}
if (typeof(b) == "string") {
b = ZeroClipboard.$(b)
} else {
if (typeof(b) == "undefined") {
b = document.getElementsByTagName("body")[0]
}
}
var c = ZeroClipboard.getDOMObjectPosition(this.domElement, b);
this.div = document.createElement("div");
this.div.className = "zclip";
this.div.id = "zclip-" + this.movieId;
$(this.domElement).data("zclipId", "zclip-" + this.movieId);
var a = this.div.style;
a.position = "absolute";
a.left = "" + c.left + "px";
a.top = "" + c.top + "px";
a.width = "" + c.width + "px";
a.height = "" + c.height + "px";
a.zIndex = f;
if (typeof(e) == "object") {
for (addedStyle in e) {
a[addedStyle] = e[addedStyle]
}
}
b.appendChild(this.div);
this.div.innerHTML = this.getHTML(c.width, c.height)
},
getHTML: function (d, a) {
var c = "";
var b = "id=" + this.id + "&width=" + d + "&height=" + a;
if (navigator.userAgent.match(/MSIE/)) {
var e = location.href.match(/^https/i) ? "https://" : "http://";
c += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="' + e + 'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + d + '" height="' + a + '" id="' + this.movieId + '" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="' + ZeroClipboard.moviePath + '" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="' + b + '"/><param name="wmode" value="transparent"/></object>'
} else {
c += '<embed id="' + this.movieId + '" src="' + ZeroClipboard.moviePath + '" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="' + d + '" height="' + a + '" name="' + this.movieId + '" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="' + b + '" wmode="transparent" />'
}
return c
},
hide: function () {
if (this.div) {
this.div.style.left = "-2000px"
}
},
show: function () {
this.reposition()
},
destroy: function () {
if (this.domElement && this.div) {
this.hide();
this.div.innerHTML = "";
var a = document.getElementsByTagName("body")[0];
try {
a.removeChild(this.div)
} catch (b) {
}
this.domElement = null;
this.div = null
}
},
reposition: function (c) {
if (c) {
this.domElement = ZeroClipboard.$(c);
if (!this.domElement) {
this.hide()
}
}
if (this.domElement && this.div) {
var b = ZeroClipboard.getDOMObjectPosition(this.domElement);
var a = this.div.style;
a.left = "" + b.left + "px";
a.top = "" + b.top + "px"
}
},
setText: function (a) {
this.clipText = a;
if (this.ready) {
this.movie.setText(a)
}
},
addEventListener: function (a, b) {
a = a.toString().toLowerCase().replace(/^on/, "");
if (!this.handlers[a]) {
this.handlers[a] = []
}
this.handlers[a].push(b)
},
setHandCursor: function (a) {
this.handCursorEnabled = a;
if (this.ready) {
this.movie.setHandCursor(a)
}
},
setCSSEffects: function (a) {
this.cssEffects = !!a
},
receiveEvent: function (d, f) {
d = d.toString().toLowerCase().replace(/^on/, "");
switch (d) {
case"load":
this.movie = document.getElementById(this.movieId);
if (!this.movie) {
var c = this;
setTimeout(function () {
c.receiveEvent("load", null)
}, 1);
return
}
if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {
var c = this;
setTimeout(function () {
c.receiveEvent("load", null)
}, 100);
this.ready = true;
return
}
this.ready = true;
try {
this.movie.setText(this.clipText)
} catch (h) {
}
try {
this.movie.setHandCursor(this.handCursorEnabled)
} catch (h) {
}
break;
case"mouseover":
if (this.domElement && this.cssEffects) {
this.domElement.addClass("hover");
if (this.recoverActive) {
this.domElement.addClass("active")
}
}
break;
case"mouseout":
if (this.domElement && this.cssEffects) {
this.recoverActive = false;
if (this.domElement.hasClass("active")) {
this.domElement.removeClass("active");
this.recoverActive = true
}
this.domElement.removeClass("hover")
}
break;
case"mousedown":
if (this.domElement && this.cssEffects) {
this.domElement.addClass("active")
}
break;
case"mouseup":
if (this.domElement && this.cssEffects) {
this.domElement.removeClass("active");
this.recoverActive = false
}
break
}
if (this.handlers[d]) {
for (var b = 0, a = this.handlers[d].length; b < a; b++) {
var g = this.handlers[d][b];
if (typeof(g) == "function") {
g(this, f)
} else {
if ((typeof(g) == "object") && (g.length == 2)) {
g[0][g[1]](this, f)
} else {
if (typeof(g) == "string") {
window[g](this, f)
}
}
}
}
}
}
};
|
module.exports = client => {
function randomStatus() {
const status = client.config.status
const rstatus = Math.floor(Math.random() * status.length);
const toDisplay = status[rstatus].name.replace("{serversCount}", client.guilds.cache.size).replace("{usersCount}", client.getAllUsers());
client.user.setActivity(toDisplay, { type: status[rstatus].type });
}
setInterval(randomStatus, 30000);
console.log(`Connecté avec succès sur ${client.user.tag}`);
client.channels.cache.get(client.config.support.logs).send('✅ **Le bot est connecté!**');
}
|
var a00248 =
[
[ "atcab_counter", "a00991.html#gabaaaef242649206029e1c10ac6d1fb7d", null ],
[ "atcab_counter_increment", "a00991.html#ga6e510e056ea16a0a34b405b7ca378f16", null ],
[ "atcab_counter_read", "a00991.html#gaeee666028a097659af69cc828a6bd68b", null ]
];
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* Shop API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 20.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient'
import ContentFolder from '../models/ContentFolder'
import ContentFolderResult from '../models/ContentFolderResult'
/**
* Folders service.
* @module api/FoldersApi
* @version 20.4
*/
export default class FoldersApi {
/**
* Constructs a new FoldersApi.
* @alias module:api/FoldersApi
* @class
* @param {module:ApiClient} apiClient Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance
}
/**
* To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned.
* @param {String} id The id of the requested content folder.
* @param {Object} opts Optional parameters
* @param {Number} opts.levels
* @param {String} opts.locale
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ContentFolder} and HTTP response
*/
getFoldersByIDWithHttpInfo(id, opts) {
opts = opts || {}
const postBody = null
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error('Missing the required parameter \'id\' when calling getFoldersByID')
}
const pathParams = {
id
}
const queryParams = {
levels: opts.levels,
locale: opts.locale
}
const headerParams = {
}
const formParams = {
}
const authNames = ['client_id', 'customers_auth']
const contentTypes = ['application/json', 'text/xml', 'application/xml']
const accepts = ['application/json', 'text/xml', 'application/xml']
const returnType = ContentFolder
return this.apiClient.callApi(
'/folders/{id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
)
}
/**
* To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned.
* @param {String} id The id of the requested content folder.
* @param {Object} opts Optional parameters
* @param {Number} opts.levels
* @param {String} opts.locale
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ContentFolder}
*/
getFoldersByID(id, opts) {
return this.getFoldersByIDWithHttpInfo(id, opts)
.then((response_and_data) => {
return response_and_data.data
})
}
/**
* @param {Array.<String>} ids
* @param {Object} opts Optional parameters
* @param {Number} opts.levels
* @param {String} opts.locale
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ContentFolderResult} and HTTP response
*/
getFoldersByIDsWithHttpInfo(ids, opts) {
opts = opts || {}
const postBody = null
// verify the required parameter 'ids' is set
if (ids === undefined || ids === null) {
throw new Error('Missing the required parameter \'ids\' when calling getFoldersByIDs')
}
const pathParams = {
ids
}
const queryParams = {
levels: opts.levels,
locale: opts.locale
}
const headerParams = {
}
const formParams = {
}
const authNames = ['client_id', 'customers_auth']
const contentTypes = ['application/json', 'text/xml', 'application/xml']
const accepts = ['application/json', 'text/xml', 'application/xml']
const returnType = ContentFolderResult
return this.apiClient.callApi(
'/folders/({ids})', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType
)
}
/**
* @param {Array.<String>} ids
* @param {Object} opts Optional parameters
* @param {Number} opts.levels
* @param {String} opts.locale
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ContentFolderResult}
*/
getFoldersByIDs(ids, opts) {
return this.getFoldersByIDsWithHttpInfo(ids, opts)
.then((response_and_data) => {
return response_and_data.data
})
}
}
|
module.exports={178:{"value":"00B2","name":"SUPERSCRIPT TWO","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0032","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT TWO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xB2"},179:{"value":"00B3","name":"SUPERSCRIPT THREE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0033","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT THREE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xB3"},185:{"value":"00B9","name":"SUPERSCRIPT ONE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0031","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT ONE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xB9"},188:{"value":"00BC","name":"VULGAR FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0034","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"FRACTION ONE QUARTER","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xBC"},189:{"value":"00BD","name":"VULGAR FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0032","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"FRACTION ONE HALF","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xBD"},190:{"value":"00BE","name":"VULGAR FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0033 2044 0034","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"FRACTION THREE QUARTERS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\xBE"},2548:{"value":"09F4","name":"BENGALI CURRENCY NUMERATOR ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F4"},2549:{"value":"09F5","name":"BENGALI CURRENCY NUMERATOR TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F5"},2550:{"value":"09F6","name":"BENGALI CURRENCY NUMERATOR THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F6"},2551:{"value":"09F7","name":"BENGALI CURRENCY NUMERATOR FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F7"},2552:{"value":"09F8","name":"BENGALI CURRENCY NUMERATOR ONE LESS THAN THE DENOMINATOR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F8"},2553:{"value":"09F9","name":"BENGALI CURRENCY DENOMINATOR SIXTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u09F9"},2930:{"value":"0B72","name":"ORIYA FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B72"},2931:{"value":"0B73","name":"ORIYA FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B73"},2932:{"value":"0B74","name":"ORIYA FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B74"},2933:{"value":"0B75","name":"ORIYA FRACTION ONE SIXTEENTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B75"},2934:{"value":"0B76","name":"ORIYA FRACTION ONE EIGHTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B76"},2935:{"value":"0B77","name":"ORIYA FRACTION THREE SIXTEENTHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0B77"},3056:{"value":"0BF0","name":"TAMIL NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0BF0"},3057:{"value":"0BF1","name":"TAMIL NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0BF1"},3058:{"value":"0BF2","name":"TAMIL NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0BF2"},3192:{"value":"0C78","name":"TELUGU FRACTION DIGIT ZERO FOR ODD POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C78"},3193:{"value":"0C79","name":"TELUGU FRACTION DIGIT ONE FOR ODD POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C79"},3194:{"value":"0C7A","name":"TELUGU FRACTION DIGIT TWO FOR ODD POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C7A"},3195:{"value":"0C7B","name":"TELUGU FRACTION DIGIT THREE FOR ODD POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C7B"},3196:{"value":"0C7C","name":"TELUGU FRACTION DIGIT ONE FOR EVEN POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C7C"},3197:{"value":"0C7D","name":"TELUGU FRACTION DIGIT TWO FOR EVEN POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C7D"},3198:{"value":"0C7E","name":"TELUGU FRACTION DIGIT THREE FOR EVEN POWERS OF FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0C7E"},3416:{"value":"0D58","name":"MALAYALAM FRACTION ONE ONE-HUNDRED-AND-SIXTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/160","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D58"},3417:{"value":"0D59","name":"MALAYALAM FRACTION ONE FORTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D59"},3418:{"value":"0D5A","name":"MALAYALAM FRACTION THREE EIGHTIETHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D5A"},3419:{"value":"0D5B","name":"MALAYALAM FRACTION ONE TWENTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D5B"},3420:{"value":"0D5C","name":"MALAYALAM FRACTION ONE TENTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D5C"},3421:{"value":"0D5D","name":"MALAYALAM FRACTION THREE TWENTIETHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D5D"},3422:{"value":"0D5E","name":"MALAYALAM FRACTION ONE FIFTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D5E"},3440:{"value":"0D70","name":"MALAYALAM NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D70"},3441:{"value":"0D71","name":"MALAYALAM NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D71"},3442:{"value":"0D72","name":"MALAYALAM NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D72"},3443:{"value":"0D73","name":"MALAYALAM FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D73"},3444:{"value":"0D74","name":"MALAYALAM FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D74"},3445:{"value":"0D75","name":"MALAYALAM FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D75"},3446:{"value":"0D76","name":"MALAYALAM FRACTION ONE SIXTEENTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D76"},3447:{"value":"0D77","name":"MALAYALAM FRACTION ONE EIGHTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D77"},3448:{"value":"0D78","name":"MALAYALAM FRACTION THREE SIXTEENTHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0D78"},3882:{"value":"0F2A","name":"TIBETAN DIGIT HALF ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2A"},3883:{"value":"0F2B","name":"TIBETAN DIGIT HALF TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2B"},3884:{"value":"0F2C","name":"TIBETAN DIGIT HALF THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2C"},3885:{"value":"0F2D","name":"TIBETAN DIGIT HALF FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2D"},3886:{"value":"0F2E","name":"TIBETAN DIGIT HALF FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2E"},3887:{"value":"0F2F","name":"TIBETAN DIGIT HALF SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"11/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F2F"},3888:{"value":"0F30","name":"TIBETAN DIGIT HALF SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"13/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F30"},3889:{"value":"0F31","name":"TIBETAN DIGIT HALF EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"15/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F31"},3890:{"value":"0F32","name":"TIBETAN DIGIT HALF NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"17/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F32"},3891:{"value":"0F33","name":"TIBETAN DIGIT HALF ZERO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"-1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u0F33"},4969:{"value":"1369","name":"ETHIOPIC DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1369"},4970:{"value":"136A","name":"ETHIOPIC DIGIT TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136A"},4971:{"value":"136B","name":"ETHIOPIC DIGIT THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136B"},4972:{"value":"136C","name":"ETHIOPIC DIGIT FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136C"},4973:{"value":"136D","name":"ETHIOPIC DIGIT FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136D"},4974:{"value":"136E","name":"ETHIOPIC DIGIT SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136E"},4975:{"value":"136F","name":"ETHIOPIC DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u136F"},4976:{"value":"1370","name":"ETHIOPIC DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1370"},4977:{"value":"1371","name":"ETHIOPIC DIGIT NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1371"},4978:{"value":"1372","name":"ETHIOPIC NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1372"},4979:{"value":"1373","name":"ETHIOPIC NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1373"},4980:{"value":"1374","name":"ETHIOPIC NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1374"},4981:{"value":"1375","name":"ETHIOPIC NUMBER FORTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1375"},4982:{"value":"1376","name":"ETHIOPIC NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1376"},4983:{"value":"1377","name":"ETHIOPIC NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1377"},4984:{"value":"1378","name":"ETHIOPIC NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1378"},4985:{"value":"1379","name":"ETHIOPIC NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u1379"},4986:{"value":"137A","name":"ETHIOPIC NUMBER NINETY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u137A"},4987:{"value":"137B","name":"ETHIOPIC NUMBER HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u137B"},4988:{"value":"137C","name":"ETHIOPIC NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u137C"},6128:{"value":"17F0","name":"KHMER SYMBOL LEK ATTAK SON","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F0"},6129:{"value":"17F1","name":"KHMER SYMBOL LEK ATTAK MUOY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F1"},6130:{"value":"17F2","name":"KHMER SYMBOL LEK ATTAK PII","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F2"},6131:{"value":"17F3","name":"KHMER SYMBOL LEK ATTAK BEI","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F3"},6132:{"value":"17F4","name":"KHMER SYMBOL LEK ATTAK BUON","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F4"},6133:{"value":"17F5","name":"KHMER SYMBOL LEK ATTAK PRAM","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F5"},6134:{"value":"17F6","name":"KHMER SYMBOL LEK ATTAK PRAM-MUOY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F6"},6135:{"value":"17F7","name":"KHMER SYMBOL LEK ATTAK PRAM-PII","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F7"},6136:{"value":"17F8","name":"KHMER SYMBOL LEK ATTAK PRAM-BEI","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F8"},6137:{"value":"17F9","name":"KHMER SYMBOL LEK ATTAK PRAM-BUON","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u17F9"},6618:{"value":"19DA","name":"NEW TAI LUE THAM DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u19DA"},8304:{"value":"2070","name":"SUPERSCRIPT ZERO","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0030","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT ZERO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2070"},8308:{"value":"2074","name":"SUPERSCRIPT FOUR","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0034","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT FOUR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2074"},8309:{"value":"2075","name":"SUPERSCRIPT FIVE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0035","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT FIVE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2075"},8310:{"value":"2076","name":"SUPERSCRIPT SIX","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0036","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT SIX","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2076"},8311:{"value":"2077","name":"SUPERSCRIPT SEVEN","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0037","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT SEVEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2077"},8312:{"value":"2078","name":"SUPERSCRIPT EIGHT","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0038","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT EIGHT","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2078"},8313:{"value":"2079","name":"SUPERSCRIPT NINE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<super> 0039","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"SUPERSCRIPT DIGIT NINE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2079"},8320:{"value":"2080","name":"SUBSCRIPT ZERO","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0030","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT ZERO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2080"},8321:{"value":"2081","name":"SUBSCRIPT ONE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0031","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT ONE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2081"},8322:{"value":"2082","name":"SUBSCRIPT TWO","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0032","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT TWO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2082"},8323:{"value":"2083","name":"SUBSCRIPT THREE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0033","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT THREE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2083"},8324:{"value":"2084","name":"SUBSCRIPT FOUR","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0034","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT FOUR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2084"},8325:{"value":"2085","name":"SUBSCRIPT FIVE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0035","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT FIVE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2085"},8326:{"value":"2086","name":"SUBSCRIPT SIX","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0036","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT SIX","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2086"},8327:{"value":"2087","name":"SUBSCRIPT SEVEN","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0037","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT SEVEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2087"},8328:{"value":"2088","name":"SUBSCRIPT EIGHT","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0038","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT EIGHT","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2088"},8329:{"value":"2089","name":"SUBSCRIPT NINE","category":"No","class":"0","bidirectional_category":"EN","mapping":"<sub> 0039","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"SUBSCRIPT DIGIT NINE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2089"},8528:{"value":"2150","name":"VULGAR FRACTION ONE SEVENTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0037","decimal_digit_value":"","digit_value":"","numeric_value":"1/7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2150"},8529:{"value":"2151","name":"VULGAR FRACTION ONE NINTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0039","decimal_digit_value":"","digit_value":"","numeric_value":"1/9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2151"},8530:{"value":"2152","name":"VULGAR FRACTION ONE TENTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0031 0030","decimal_digit_value":"","digit_value":"","numeric_value":"1/10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2152"},8531:{"value":"2153","name":"VULGAR FRACTION ONE THIRD","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0033","decimal_digit_value":"","digit_value":"","numeric_value":"1/3","mirrored":"N","unicode_name":"FRACTION ONE THIRD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2153"},8532:{"value":"2154","name":"VULGAR FRACTION TWO THIRDS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0032 2044 0033","decimal_digit_value":"","digit_value":"","numeric_value":"2/3","mirrored":"N","unicode_name":"FRACTION TWO THIRDS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2154"},8533:{"value":"2155","name":"VULGAR FRACTION ONE FIFTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0035","decimal_digit_value":"","digit_value":"","numeric_value":"1/5","mirrored":"N","unicode_name":"FRACTION ONE FIFTH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2155"},8534:{"value":"2156","name":"VULGAR FRACTION TWO FIFTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0032 2044 0035","decimal_digit_value":"","digit_value":"","numeric_value":"2/5","mirrored":"N","unicode_name":"FRACTION TWO FIFTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2156"},8535:{"value":"2157","name":"VULGAR FRACTION THREE FIFTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0033 2044 0035","decimal_digit_value":"","digit_value":"","numeric_value":"3/5","mirrored":"N","unicode_name":"FRACTION THREE FIFTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2157"},8536:{"value":"2158","name":"VULGAR FRACTION FOUR FIFTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0034 2044 0035","decimal_digit_value":"","digit_value":"","numeric_value":"4/5","mirrored":"N","unicode_name":"FRACTION FOUR FIFTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2158"},8537:{"value":"2159","name":"VULGAR FRACTION ONE SIXTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0036","decimal_digit_value":"","digit_value":"","numeric_value":"1/6","mirrored":"N","unicode_name":"FRACTION ONE SIXTH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2159"},8538:{"value":"215A","name":"VULGAR FRACTION FIVE SIXTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0035 2044 0036","decimal_digit_value":"","digit_value":"","numeric_value":"5/6","mirrored":"N","unicode_name":"FRACTION FIVE SIXTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215A"},8539:{"value":"215B","name":"VULGAR FRACTION ONE EIGHTH","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044 0038","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"FRACTION ONE EIGHTH","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215B"},8540:{"value":"215C","name":"VULGAR FRACTION THREE EIGHTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0033 2044 0038","decimal_digit_value":"","digit_value":"","numeric_value":"3/8","mirrored":"N","unicode_name":"FRACTION THREE EIGHTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215C"},8541:{"value":"215D","name":"VULGAR FRACTION FIVE EIGHTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0035 2044 0038","decimal_digit_value":"","digit_value":"","numeric_value":"5/8","mirrored":"N","unicode_name":"FRACTION FIVE EIGHTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215D"},8542:{"value":"215E","name":"VULGAR FRACTION SEVEN EIGHTHS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0037 2044 0038","decimal_digit_value":"","digit_value":"","numeric_value":"7/8","mirrored":"N","unicode_name":"FRACTION SEVEN EIGHTHS","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215E"},8543:{"value":"215F","name":"FRACTION NUMERATOR ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0031 2044","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u215F"},8585:{"value":"2189","name":"VULGAR FRACTION ZERO THIRDS","category":"No","class":"0","bidirectional_category":"ON","mapping":"<fraction> 0030 2044 0033","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2189"},9312:{"value":"2460","name":"CIRCLED DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2460"},9313:{"value":"2461","name":"CIRCLED DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2461"},9314:{"value":"2462","name":"CIRCLED DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2462"},9315:{"value":"2463","name":"CIRCLED DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2463"},9316:{"value":"2464","name":"CIRCLED DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0035","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2464"},9317:{"value":"2465","name":"CIRCLED DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0036","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2465"},9318:{"value":"2466","name":"CIRCLED DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0037","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2466"},9319:{"value":"2467","name":"CIRCLED DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0038","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2467"},9320:{"value":"2468","name":"CIRCLED DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0039","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2468"},9321:{"value":"2469","name":"CIRCLED NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0030","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2469"},9322:{"value":"246A","name":"CIRCLED NUMBER ELEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0031","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246A"},9323:{"value":"246B","name":"CIRCLED NUMBER TWELVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0032","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246B"},9324:{"value":"246C","name":"CIRCLED NUMBER THIRTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0033","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246C"},9325:{"value":"246D","name":"CIRCLED NUMBER FOURTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0034","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246D"},9326:{"value":"246E","name":"CIRCLED NUMBER FIFTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0035","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246E"},9327:{"value":"246F","name":"CIRCLED NUMBER SIXTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0036","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u246F"},9328:{"value":"2470","name":"CIRCLED NUMBER SEVENTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0037","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2470"},9329:{"value":"2471","name":"CIRCLED NUMBER EIGHTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0038","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2471"},9330:{"value":"2472","name":"CIRCLED NUMBER NINETEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0031 0039","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2472"},9331:{"value":"2473","name":"CIRCLED NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0030","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2473"},9332:{"value":"2474","name":"PARENTHESIZED DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0029","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2474"},9333:{"value":"2475","name":"PARENTHESIZED DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0032 0029","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2475"},9334:{"value":"2476","name":"PARENTHESIZED DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0033 0029","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2476"},9335:{"value":"2477","name":"PARENTHESIZED DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0034 0029","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2477"},9336:{"value":"2478","name":"PARENTHESIZED DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0035 0029","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2478"},9337:{"value":"2479","name":"PARENTHESIZED DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0036 0029","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2479"},9338:{"value":"247A","name":"PARENTHESIZED DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0037 0029","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247A"},9339:{"value":"247B","name":"PARENTHESIZED DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0038 0029","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247B"},9340:{"value":"247C","name":"PARENTHESIZED DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0039 0029","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247C"},9341:{"value":"247D","name":"PARENTHESIZED NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0030 0029","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247D"},9342:{"value":"247E","name":"PARENTHESIZED NUMBER ELEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0031 0029","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247E"},9343:{"value":"247F","name":"PARENTHESIZED NUMBER TWELVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0032 0029","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u247F"},9344:{"value":"2480","name":"PARENTHESIZED NUMBER THIRTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0033 0029","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2480"},9345:{"value":"2481","name":"PARENTHESIZED NUMBER FOURTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0034 0029","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2481"},9346:{"value":"2482","name":"PARENTHESIZED NUMBER FIFTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0035 0029","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2482"},9347:{"value":"2483","name":"PARENTHESIZED NUMBER SIXTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0036 0029","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2483"},9348:{"value":"2484","name":"PARENTHESIZED NUMBER SEVENTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0037 0029","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2484"},9349:{"value":"2485","name":"PARENTHESIZED NUMBER EIGHTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0038 0029","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2485"},9350:{"value":"2486","name":"PARENTHESIZED NUMBER NINETEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0031 0039 0029","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2486"},9351:{"value":"2487","name":"PARENTHESIZED NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"<compat> 0028 0032 0030 0029","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2487"},9352:{"value":"2488","name":"DIGIT ONE FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 002E","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"DIGIT ONE PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2488"},9353:{"value":"2489","name":"DIGIT TWO FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0032 002E","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"DIGIT TWO PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2489"},9354:{"value":"248A","name":"DIGIT THREE FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0033 002E","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"DIGIT THREE PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248A"},9355:{"value":"248B","name":"DIGIT FOUR FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0034 002E","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"DIGIT FOUR PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248B"},9356:{"value":"248C","name":"DIGIT FIVE FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0035 002E","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"DIGIT FIVE PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248C"},9357:{"value":"248D","name":"DIGIT SIX FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0036 002E","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"DIGIT SIX PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248D"},9358:{"value":"248E","name":"DIGIT SEVEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0037 002E","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"DIGIT SEVEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248E"},9359:{"value":"248F","name":"DIGIT EIGHT FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0038 002E","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"DIGIT EIGHT PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u248F"},9360:{"value":"2490","name":"DIGIT NINE FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0039 002E","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"DIGIT NINE PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2490"},9361:{"value":"2491","name":"NUMBER TEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0030 002E","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"NUMBER TEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2491"},9362:{"value":"2492","name":"NUMBER ELEVEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0031 002E","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"NUMBER ELEVEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2492"},9363:{"value":"2493","name":"NUMBER TWELVE FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0032 002E","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"NUMBER TWELVE PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2493"},9364:{"value":"2494","name":"NUMBER THIRTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0033 002E","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"NUMBER THIRTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2494"},9365:{"value":"2495","name":"NUMBER FOURTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0034 002E","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"NUMBER FOURTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2495"},9366:{"value":"2496","name":"NUMBER FIFTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0035 002E","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"NUMBER FIFTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2496"},9367:{"value":"2497","name":"NUMBER SIXTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0036 002E","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"NUMBER SIXTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2497"},9368:{"value":"2498","name":"NUMBER SEVENTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0037 002E","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"NUMBER SEVENTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2498"},9369:{"value":"2499","name":"NUMBER EIGHTEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0038 002E","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"NUMBER EIGHTEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2499"},9370:{"value":"249A","name":"NUMBER NINETEEN FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 0039 002E","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"NUMBER NINETEEN PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u249A"},9371:{"value":"249B","name":"NUMBER TWENTY FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0032 0030 002E","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"NUMBER TWENTY PERIOD","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u249B"},9450:{"value":"24EA","name":"CIRCLED DIGIT ZERO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0030","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24EA"},9451:{"value":"24EB","name":"NEGATIVE CIRCLED NUMBER ELEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24EB"},9452:{"value":"24EC","name":"NEGATIVE CIRCLED NUMBER TWELVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24EC"},9453:{"value":"24ED","name":"NEGATIVE CIRCLED NUMBER THIRTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24ED"},9454:{"value":"24EE","name":"NEGATIVE CIRCLED NUMBER FOURTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24EE"},9455:{"value":"24EF","name":"NEGATIVE CIRCLED NUMBER FIFTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24EF"},9456:{"value":"24F0","name":"NEGATIVE CIRCLED NUMBER SIXTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F0"},9457:{"value":"24F1","name":"NEGATIVE CIRCLED NUMBER SEVENTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F1"},9458:{"value":"24F2","name":"NEGATIVE CIRCLED NUMBER EIGHTEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F2"},9459:{"value":"24F3","name":"NEGATIVE CIRCLED NUMBER NINETEEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F3"},9460:{"value":"24F4","name":"NEGATIVE CIRCLED NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F4"},9461:{"value":"24F5","name":"DOUBLE CIRCLED DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F5"},9462:{"value":"24F6","name":"DOUBLE CIRCLED DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F6"},9463:{"value":"24F7","name":"DOUBLE CIRCLED DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F7"},9464:{"value":"24F8","name":"DOUBLE CIRCLED DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F8"},9465:{"value":"24F9","name":"DOUBLE CIRCLED DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24F9"},9466:{"value":"24FA","name":"DOUBLE CIRCLED DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FA"},9467:{"value":"24FB","name":"DOUBLE CIRCLED DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FB"},9468:{"value":"24FC","name":"DOUBLE CIRCLED DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FC"},9469:{"value":"24FD","name":"DOUBLE CIRCLED DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FD"},9470:{"value":"24FE","name":"DOUBLE CIRCLED NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FE"},9471:{"value":"24FF","name":"NEGATIVE CIRCLED DIGIT ZERO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u24FF"},10102:{"value":"2776","name":"DINGBAT NEGATIVE CIRCLED DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT ONE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2776"},10103:{"value":"2777","name":"DINGBAT NEGATIVE CIRCLED DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT TWO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2777"},10104:{"value":"2778","name":"DINGBAT NEGATIVE CIRCLED DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT THREE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2778"},10105:{"value":"2779","name":"DINGBAT NEGATIVE CIRCLED DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT FOUR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2779"},10106:{"value":"277A","name":"DINGBAT NEGATIVE CIRCLED DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT FIVE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277A"},10107:{"value":"277B","name":"DINGBAT NEGATIVE CIRCLED DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT SIX","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277B"},10108:{"value":"277C","name":"DINGBAT NEGATIVE CIRCLED DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT SEVEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277C"},10109:{"value":"277D","name":"DINGBAT NEGATIVE CIRCLED DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT EIGHT","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277D"},10110:{"value":"277E","name":"DINGBAT NEGATIVE CIRCLED DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"INVERSE CIRCLED DIGIT NINE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277E"},10111:{"value":"277F","name":"DINGBAT NEGATIVE CIRCLED NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"INVERSE CIRCLED NUMBER TEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u277F"},10112:{"value":"2780","name":"DINGBAT CIRCLED SANS-SERIF DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT ONE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2780"},10113:{"value":"2781","name":"DINGBAT CIRCLED SANS-SERIF DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT TWO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2781"},10114:{"value":"2782","name":"DINGBAT CIRCLED SANS-SERIF DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT THREE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2782"},10115:{"value":"2783","name":"DINGBAT CIRCLED SANS-SERIF DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT FOUR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2783"},10116:{"value":"2784","name":"DINGBAT CIRCLED SANS-SERIF DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT FIVE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2784"},10117:{"value":"2785","name":"DINGBAT CIRCLED SANS-SERIF DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT SIX","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2785"},10118:{"value":"2786","name":"DINGBAT CIRCLED SANS-SERIF DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT SEVEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2786"},10119:{"value":"2787","name":"DINGBAT CIRCLED SANS-SERIF DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT EIGHT","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2787"},10120:{"value":"2788","name":"DINGBAT CIRCLED SANS-SERIF DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF DIGIT NINE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2788"},10121:{"value":"2789","name":"DINGBAT CIRCLED SANS-SERIF NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"CIRCLED SANS-SERIF NUMBER TEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2789"},10122:{"value":"278A","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT ONE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278A"},10123:{"value":"278B","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT TWO","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278B"},10124:{"value":"278C","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT THREE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278C"},10125:{"value":"278D","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT FOUR","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278D"},10126:{"value":"278E","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT FIVE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278E"},10127:{"value":"278F","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT SIX","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u278F"},10128:{"value":"2790","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT SEVEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2790"},10129:{"value":"2791","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT EIGHT","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2791"},10130:{"value":"2792","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF DIGIT NINE","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2792"},10131:{"value":"2793","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"INVERSE CIRCLED SANS-SERIF NUMBER TEN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2793"},11517:{"value":"2CFD","name":"COPTIC FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u2CFD"},12690:{"value":"3192","name":"IDEOGRAPHIC ANNOTATION ONE MARK","category":"No","class":"0","bidirectional_category":"L","mapping":"<super> 4E00","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"KAERITEN ITI","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3192"},12691:{"value":"3193","name":"IDEOGRAPHIC ANNOTATION TWO MARK","category":"No","class":"0","bidirectional_category":"L","mapping":"<super> 4E8C","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"KAERITEN NI","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3193"},12692:{"value":"3194","name":"IDEOGRAPHIC ANNOTATION THREE MARK","category":"No","class":"0","bidirectional_category":"L","mapping":"<super> 4E09","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"KAERITEN SAN","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3194"},12693:{"value":"3195","name":"IDEOGRAPHIC ANNOTATION FOUR MARK","category":"No","class":"0","bidirectional_category":"L","mapping":"<super> 56DB","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"KAERITEN SI","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3195"},12832:{"value":"3220","name":"PARENTHESIZED IDEOGRAPH ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E00 0029","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3220"},12833:{"value":"3221","name":"PARENTHESIZED IDEOGRAPH TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E8C 0029","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3221"},12834:{"value":"3222","name":"PARENTHESIZED IDEOGRAPH THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E09 0029","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3222"},12835:{"value":"3223","name":"PARENTHESIZED IDEOGRAPH FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 56DB 0029","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3223"},12836:{"value":"3224","name":"PARENTHESIZED IDEOGRAPH FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E94 0029","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3224"},12837:{"value":"3225","name":"PARENTHESIZED IDEOGRAPH SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 516D 0029","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3225"},12838:{"value":"3226","name":"PARENTHESIZED IDEOGRAPH SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E03 0029","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3226"},12839:{"value":"3227","name":"PARENTHESIZED IDEOGRAPH EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 516B 0029","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3227"},12840:{"value":"3228","name":"PARENTHESIZED IDEOGRAPH NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 4E5D 0029","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3228"},12841:{"value":"3229","name":"PARENTHESIZED IDEOGRAPH TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"<compat> 0028 5341 0029","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3229"},12872:{"value":"3248","name":"CIRCLED NUMBER TEN ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3248"},12873:{"value":"3249","name":"CIRCLED NUMBER TWENTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3249"},12874:{"value":"324A","name":"CIRCLED NUMBER THIRTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324A"},12875:{"value":"324B","name":"CIRCLED NUMBER FORTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324B"},12876:{"value":"324C","name":"CIRCLED NUMBER FIFTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324C"},12877:{"value":"324D","name":"CIRCLED NUMBER SIXTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324D"},12878:{"value":"324E","name":"CIRCLED NUMBER SEVENTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324E"},12879:{"value":"324F","name":"CIRCLED NUMBER EIGHTY ON BLACK SQUARE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u324F"},12881:{"value":"3251","name":"CIRCLED NUMBER TWENTY ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0031","decimal_digit_value":"","digit_value":"","numeric_value":"21","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3251"},12882:{"value":"3252","name":"CIRCLED NUMBER TWENTY TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0032","decimal_digit_value":"","digit_value":"","numeric_value":"22","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3252"},12883:{"value":"3253","name":"CIRCLED NUMBER TWENTY THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0033","decimal_digit_value":"","digit_value":"","numeric_value":"23","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3253"},12884:{"value":"3254","name":"CIRCLED NUMBER TWENTY FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0034","decimal_digit_value":"","digit_value":"","numeric_value":"24","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3254"},12885:{"value":"3255","name":"CIRCLED NUMBER TWENTY FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0035","decimal_digit_value":"","digit_value":"","numeric_value":"25","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3255"},12886:{"value":"3256","name":"CIRCLED NUMBER TWENTY SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0036","decimal_digit_value":"","digit_value":"","numeric_value":"26","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3256"},12887:{"value":"3257","name":"CIRCLED NUMBER TWENTY SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0037","decimal_digit_value":"","digit_value":"","numeric_value":"27","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3257"},12888:{"value":"3258","name":"CIRCLED NUMBER TWENTY EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0038","decimal_digit_value":"","digit_value":"","numeric_value":"28","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3258"},12889:{"value":"3259","name":"CIRCLED NUMBER TWENTY NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0032 0039","decimal_digit_value":"","digit_value":"","numeric_value":"29","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3259"},12890:{"value":"325A","name":"CIRCLED NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0030","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325A"},12891:{"value":"325B","name":"CIRCLED NUMBER THIRTY ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0031","decimal_digit_value":"","digit_value":"","numeric_value":"31","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325B"},12892:{"value":"325C","name":"CIRCLED NUMBER THIRTY TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0032","decimal_digit_value":"","digit_value":"","numeric_value":"32","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325C"},12893:{"value":"325D","name":"CIRCLED NUMBER THIRTY THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0033","decimal_digit_value":"","digit_value":"","numeric_value":"33","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325D"},12894:{"value":"325E","name":"CIRCLED NUMBER THIRTY FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0034","decimal_digit_value":"","digit_value":"","numeric_value":"34","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325E"},12895:{"value":"325F","name":"CIRCLED NUMBER THIRTY FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0035","decimal_digit_value":"","digit_value":"","numeric_value":"35","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u325F"},12928:{"value":"3280","name":"CIRCLED IDEOGRAPH ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E00","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3280"},12929:{"value":"3281","name":"CIRCLED IDEOGRAPH TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E8C","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3281"},12930:{"value":"3282","name":"CIRCLED IDEOGRAPH THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E09","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3282"},12931:{"value":"3283","name":"CIRCLED IDEOGRAPH FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 56DB","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3283"},12932:{"value":"3284","name":"CIRCLED IDEOGRAPH FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E94","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3284"},12933:{"value":"3285","name":"CIRCLED IDEOGRAPH SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 516D","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3285"},12934:{"value":"3286","name":"CIRCLED IDEOGRAPH SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E03","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3286"},12935:{"value":"3287","name":"CIRCLED IDEOGRAPH EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 516B","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3287"},12936:{"value":"3288","name":"CIRCLED IDEOGRAPH NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 4E5D","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3288"},12937:{"value":"3289","name":"CIRCLED IDEOGRAPH TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"<circle> 5341","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u3289"},12977:{"value":"32B1","name":"CIRCLED NUMBER THIRTY SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0036","decimal_digit_value":"","digit_value":"","numeric_value":"36","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B1"},12978:{"value":"32B2","name":"CIRCLED NUMBER THIRTY SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0037","decimal_digit_value":"","digit_value":"","numeric_value":"37","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B2"},12979:{"value":"32B3","name":"CIRCLED NUMBER THIRTY EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0038","decimal_digit_value":"","digit_value":"","numeric_value":"38","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B3"},12980:{"value":"32B4","name":"CIRCLED NUMBER THIRTY NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0033 0039","decimal_digit_value":"","digit_value":"","numeric_value":"39","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B4"},12981:{"value":"32B5","name":"CIRCLED NUMBER FORTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0030","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B5"},12982:{"value":"32B6","name":"CIRCLED NUMBER FORTY ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0031","decimal_digit_value":"","digit_value":"","numeric_value":"41","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B6"},12983:{"value":"32B7","name":"CIRCLED NUMBER FORTY TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0032","decimal_digit_value":"","digit_value":"","numeric_value":"42","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B7"},12984:{"value":"32B8","name":"CIRCLED NUMBER FORTY THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0033","decimal_digit_value":"","digit_value":"","numeric_value":"43","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B8"},12985:{"value":"32B9","name":"CIRCLED NUMBER FORTY FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0034","decimal_digit_value":"","digit_value":"","numeric_value":"44","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32B9"},12986:{"value":"32BA","name":"CIRCLED NUMBER FORTY FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0035","decimal_digit_value":"","digit_value":"","numeric_value":"45","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BA"},12987:{"value":"32BB","name":"CIRCLED NUMBER FORTY SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0036","decimal_digit_value":"","digit_value":"","numeric_value":"46","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BB"},12988:{"value":"32BC","name":"CIRCLED NUMBER FORTY SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0037","decimal_digit_value":"","digit_value":"","numeric_value":"47","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BC"},12989:{"value":"32BD","name":"CIRCLED NUMBER FORTY EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0038","decimal_digit_value":"","digit_value":"","numeric_value":"48","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BD"},12990:{"value":"32BE","name":"CIRCLED NUMBER FORTY NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0034 0039","decimal_digit_value":"","digit_value":"","numeric_value":"49","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BE"},12991:{"value":"32BF","name":"CIRCLED NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"<circle> 0035 0030","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\u32BF"},43056:{"value":"A830","name":"NORTH INDIC FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA830"},43057:{"value":"A831","name":"NORTH INDIC FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA831"},43058:{"value":"A832","name":"NORTH INDIC FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA832"},43059:{"value":"A833","name":"NORTH INDIC FRACTION ONE SIXTEENTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA833"},43060:{"value":"A834","name":"NORTH INDIC FRACTION ONE EIGHTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA834"},43061:{"value":"A835","name":"NORTH INDIC FRACTION THREE SIXTEENTHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\uA835"},65799:{"value":"10107","name":"AEGEAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd07"},65800:{"value":"10108","name":"AEGEAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd08"},65801:{"value":"10109","name":"AEGEAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd09"},65802:{"value":"1010A","name":"AEGEAN NUMBER FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0a"},65803:{"value":"1010B","name":"AEGEAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0b"},65804:{"value":"1010C","name":"AEGEAN NUMBER SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0c"},65805:{"value":"1010D","name":"AEGEAN NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0d"},65806:{"value":"1010E","name":"AEGEAN NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0e"},65807:{"value":"1010F","name":"AEGEAN NUMBER NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd0f"},65808:{"value":"10110","name":"AEGEAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd10"},65809:{"value":"10111","name":"AEGEAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd11"},65810:{"value":"10112","name":"AEGEAN NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd12"},65811:{"value":"10113","name":"AEGEAN NUMBER FORTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd13"},65812:{"value":"10114","name":"AEGEAN NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd14"},65813:{"value":"10115","name":"AEGEAN NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd15"},65814:{"value":"10116","name":"AEGEAN NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd16"},65815:{"value":"10117","name":"AEGEAN NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd17"},65816:{"value":"10118","name":"AEGEAN NUMBER NINETY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd18"},65817:{"value":"10119","name":"AEGEAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd19"},65818:{"value":"1011A","name":"AEGEAN NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1a"},65819:{"value":"1011B","name":"AEGEAN NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1b"},65820:{"value":"1011C","name":"AEGEAN NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1c"},65821:{"value":"1011D","name":"AEGEAN NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1d"},65822:{"value":"1011E","name":"AEGEAN NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1e"},65823:{"value":"1011F","name":"AEGEAN NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd1f"},65824:{"value":"10120","name":"AEGEAN NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd20"},65825:{"value":"10121","name":"AEGEAN NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd21"},65826:{"value":"10122","name":"AEGEAN NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd22"},65827:{"value":"10123","name":"AEGEAN NUMBER TWO THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd23"},65828:{"value":"10124","name":"AEGEAN NUMBER THREE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd24"},65829:{"value":"10125","name":"AEGEAN NUMBER FOUR THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd25"},65830:{"value":"10126","name":"AEGEAN NUMBER FIVE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd26"},65831:{"value":"10127","name":"AEGEAN NUMBER SIX THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd27"},65832:{"value":"10128","name":"AEGEAN NUMBER SEVEN THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd28"},65833:{"value":"10129","name":"AEGEAN NUMBER EIGHT THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd29"},65834:{"value":"1012A","name":"AEGEAN NUMBER NINE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2a"},65835:{"value":"1012B","name":"AEGEAN NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2b"},65836:{"value":"1012C","name":"AEGEAN NUMBER TWENTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2c"},65837:{"value":"1012D","name":"AEGEAN NUMBER THIRTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2d"},65838:{"value":"1012E","name":"AEGEAN NUMBER FORTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2e"},65839:{"value":"1012F","name":"AEGEAN NUMBER FIFTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd2f"},65840:{"value":"10130","name":"AEGEAN NUMBER SIXTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd30"},65841:{"value":"10131","name":"AEGEAN NUMBER SEVENTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd31"},65842:{"value":"10132","name":"AEGEAN NUMBER EIGHTY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd32"},65843:{"value":"10133","name":"AEGEAN NUMBER NINETY THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd33"},65909:{"value":"10175","name":"GREEK ONE HALF SIGN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd75"},65910:{"value":"10176","name":"GREEK ONE HALF SIGN ALTERNATE FORM","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd76"},65911:{"value":"10177","name":"GREEK TWO THIRDS SIGN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2/3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd77"},65912:{"value":"10178","name":"GREEK THREE QUARTERS SIGN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd78"},65930:{"value":"1018A","name":"GREEK ZERO SIGN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd8a"},65931:{"value":"1018B","name":"GREEK ONE QUARTER SIGN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udd8b"},66273:{"value":"102E1","name":"COPTIC EPACT DIGIT ONE","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee1"},66274:{"value":"102E2","name":"COPTIC EPACT DIGIT TWO","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee2"},66275:{"value":"102E3","name":"COPTIC EPACT DIGIT THREE","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee3"},66276:{"value":"102E4","name":"COPTIC EPACT DIGIT FOUR","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee4"},66277:{"value":"102E5","name":"COPTIC EPACT DIGIT FIVE","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee5"},66278:{"value":"102E6","name":"COPTIC EPACT DIGIT SIX","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee6"},66279:{"value":"102E7","name":"COPTIC EPACT DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee7"},66280:{"value":"102E8","name":"COPTIC EPACT DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee8"},66281:{"value":"102E9","name":"COPTIC EPACT DIGIT NINE","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udee9"},66282:{"value":"102EA","name":"COPTIC EPACT NUMBER TEN","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeea"},66283:{"value":"102EB","name":"COPTIC EPACT NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeeb"},66284:{"value":"102EC","name":"COPTIC EPACT NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeec"},66285:{"value":"102ED","name":"COPTIC EPACT NUMBER FORTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeed"},66286:{"value":"102EE","name":"COPTIC EPACT NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeee"},66287:{"value":"102EF","name":"COPTIC EPACT NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udeef"},66288:{"value":"102F0","name":"COPTIC EPACT NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef0"},66289:{"value":"102F1","name":"COPTIC EPACT NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef1"},66290:{"value":"102F2","name":"COPTIC EPACT NUMBER NINETY","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef2"},66291:{"value":"102F3","name":"COPTIC EPACT NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef3"},66292:{"value":"102F4","name":"COPTIC EPACT NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef4"},66293:{"value":"102F5","name":"COPTIC EPACT NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef5"},66294:{"value":"102F6","name":"COPTIC EPACT NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef6"},66295:{"value":"102F7","name":"COPTIC EPACT NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef7"},66296:{"value":"102F8","name":"COPTIC EPACT NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef8"},66297:{"value":"102F9","name":"COPTIC EPACT NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udef9"},66298:{"value":"102FA","name":"COPTIC EPACT NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udefa"},66299:{"value":"102FB","name":"COPTIC EPACT NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"EN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udefb"},66336:{"value":"10320","name":"OLD ITALIC NUMERAL ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udf20"},66337:{"value":"10321","name":"OLD ITALIC NUMERAL FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udf21"},66338:{"value":"10322","name":"OLD ITALIC NUMERAL TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udf22"},66339:{"value":"10323","name":"OLD ITALIC NUMERAL FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud800\udf23"},67672:{"value":"10858","name":"IMPERIAL ARAMAIC NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc58"},67673:{"value":"10859","name":"IMPERIAL ARAMAIC NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc59"},67674:{"value":"1085A","name":"IMPERIAL ARAMAIC NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5a"},67675:{"value":"1085B","name":"IMPERIAL ARAMAIC NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5b"},67676:{"value":"1085C","name":"IMPERIAL ARAMAIC NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5c"},67677:{"value":"1085D","name":"IMPERIAL ARAMAIC NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5d"},67678:{"value":"1085E","name":"IMPERIAL ARAMAIC NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5e"},67679:{"value":"1085F","name":"IMPERIAL ARAMAIC NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc5f"},67705:{"value":"10879","name":"PALMYRENE NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc79"},67706:{"value":"1087A","name":"PALMYRENE NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7a"},67707:{"value":"1087B","name":"PALMYRENE NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7b"},67708:{"value":"1087C","name":"PALMYRENE NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7c"},67709:{"value":"1087D","name":"PALMYRENE NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7d"},67710:{"value":"1087E","name":"PALMYRENE NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7e"},67711:{"value":"1087F","name":"PALMYRENE NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udc7f"},67751:{"value":"108A7","name":"NABATAEAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udca7"},67752:{"value":"108A8","name":"NABATAEAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udca8"},67753:{"value":"108A9","name":"NABATAEAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udca9"},67754:{"value":"108AA","name":"NABATAEAN NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcaa"},67755:{"value":"108AB","name":"NABATAEAN CRUCIFORM NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcab"},67756:{"value":"108AC","name":"NABATAEAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcac"},67757:{"value":"108AD","name":"NABATAEAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcad"},67758:{"value":"108AE","name":"NABATAEAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcae"},67759:{"value":"108AF","name":"NABATAEAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcaf"},67835:{"value":"108FB","name":"HATRAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcfb"},67836:{"value":"108FC","name":"HATRAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcfc"},67837:{"value":"108FD","name":"HATRAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcfd"},67838:{"value":"108FE","name":"HATRAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcfe"},67839:{"value":"108FF","name":"HATRAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udcff"},67862:{"value":"10916","name":"PHOENICIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd16"},67863:{"value":"10917","name":"PHOENICIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd17"},67864:{"value":"10918","name":"PHOENICIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd18"},67865:{"value":"10919","name":"PHOENICIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd19"},67866:{"value":"1091A","name":"PHOENICIAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd1a"},67867:{"value":"1091B","name":"PHOENICIAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udd1b"},68028:{"value":"109BC","name":"MEROITIC CURSIVE FRACTION ELEVEN TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"11/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddbc"},68029:{"value":"109BD","name":"MEROITIC CURSIVE FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddbd"},68032:{"value":"109C0","name":"MEROITIC CURSIVE NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc0"},68033:{"value":"109C1","name":"MEROITIC CURSIVE NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc1"},68034:{"value":"109C2","name":"MEROITIC CURSIVE NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc2"},68035:{"value":"109C3","name":"MEROITIC CURSIVE NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc3"},68036:{"value":"109C4","name":"MEROITIC CURSIVE NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc4"},68037:{"value":"109C5","name":"MEROITIC CURSIVE NUMBER SIX","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc5"},68038:{"value":"109C6","name":"MEROITIC CURSIVE NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc6"},68039:{"value":"109C7","name":"MEROITIC CURSIVE NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc7"},68040:{"value":"109C8","name":"MEROITIC CURSIVE NUMBER NINE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc8"},68041:{"value":"109C9","name":"MEROITIC CURSIVE NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddc9"},68042:{"value":"109CA","name":"MEROITIC CURSIVE NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddca"},68043:{"value":"109CB","name":"MEROITIC CURSIVE NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddcb"},68044:{"value":"109CC","name":"MEROITIC CURSIVE NUMBER FORTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddcc"},68045:{"value":"109CD","name":"MEROITIC CURSIVE NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddcd"},68046:{"value":"109CE","name":"MEROITIC CURSIVE NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddce"},68047:{"value":"109CF","name":"MEROITIC CURSIVE NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddcf"},68050:{"value":"109D2","name":"MEROITIC CURSIVE NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd2"},68051:{"value":"109D3","name":"MEROITIC CURSIVE NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd3"},68052:{"value":"109D4","name":"MEROITIC CURSIVE NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd4"},68053:{"value":"109D5","name":"MEROITIC CURSIVE NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd5"},68054:{"value":"109D6","name":"MEROITIC CURSIVE NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd6"},68055:{"value":"109D7","name":"MEROITIC CURSIVE NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd7"},68056:{"value":"109D8","name":"MEROITIC CURSIVE NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd8"},68057:{"value":"109D9","name":"MEROITIC CURSIVE NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddd9"},68058:{"value":"109DA","name":"MEROITIC CURSIVE NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddda"},68059:{"value":"109DB","name":"MEROITIC CURSIVE NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udddb"},68060:{"value":"109DC","name":"MEROITIC CURSIVE NUMBER TWO THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udddc"},68061:{"value":"109DD","name":"MEROITIC CURSIVE NUMBER THREE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udddd"},68062:{"value":"109DE","name":"MEROITIC CURSIVE NUMBER FOUR THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddde"},68063:{"value":"109DF","name":"MEROITIC CURSIVE NUMBER FIVE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udddf"},68064:{"value":"109E0","name":"MEROITIC CURSIVE NUMBER SIX THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde0"},68065:{"value":"109E1","name":"MEROITIC CURSIVE NUMBER SEVEN THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde1"},68066:{"value":"109E2","name":"MEROITIC CURSIVE NUMBER EIGHT THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde2"},68067:{"value":"109E3","name":"MEROITIC CURSIVE NUMBER NINE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde3"},68068:{"value":"109E4","name":"MEROITIC CURSIVE NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde4"},68069:{"value":"109E5","name":"MEROITIC CURSIVE NUMBER TWENTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde5"},68070:{"value":"109E6","name":"MEROITIC CURSIVE NUMBER THIRTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde6"},68071:{"value":"109E7","name":"MEROITIC CURSIVE NUMBER FORTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde7"},68072:{"value":"109E8","name":"MEROITIC CURSIVE NUMBER FIFTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde8"},68073:{"value":"109E9","name":"MEROITIC CURSIVE NUMBER SIXTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udde9"},68074:{"value":"109EA","name":"MEROITIC CURSIVE NUMBER SEVENTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddea"},68075:{"value":"109EB","name":"MEROITIC CURSIVE NUMBER EIGHTY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddeb"},68076:{"value":"109EC","name":"MEROITIC CURSIVE NUMBER NINETY THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddec"},68077:{"value":"109ED","name":"MEROITIC CURSIVE NUMBER ONE HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udded"},68078:{"value":"109EE","name":"MEROITIC CURSIVE NUMBER TWO HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddee"},68079:{"value":"109EF","name":"MEROITIC CURSIVE NUMBER THREE HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddef"},68080:{"value":"109F0","name":"MEROITIC CURSIVE NUMBER FOUR HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf0"},68081:{"value":"109F1","name":"MEROITIC CURSIVE NUMBER FIVE HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf1"},68082:{"value":"109F2","name":"MEROITIC CURSIVE NUMBER SIX HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf2"},68083:{"value":"109F3","name":"MEROITIC CURSIVE NUMBER SEVEN HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf3"},68084:{"value":"109F4","name":"MEROITIC CURSIVE NUMBER EIGHT HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf4"},68085:{"value":"109F5","name":"MEROITIC CURSIVE NUMBER NINE HUNDRED THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf5"},68086:{"value":"109F6","name":"MEROITIC CURSIVE FRACTION ONE TWELFTH","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf6"},68087:{"value":"109F7","name":"MEROITIC CURSIVE FRACTION TWO TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf7"},68088:{"value":"109F8","name":"MEROITIC CURSIVE FRACTION THREE TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf8"},68089:{"value":"109F9","name":"MEROITIC CURSIVE FRACTION FOUR TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddf9"},68090:{"value":"109FA","name":"MEROITIC CURSIVE FRACTION FIVE TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddfa"},68091:{"value":"109FB","name":"MEROITIC CURSIVE FRACTION SIX TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddfb"},68092:{"value":"109FC","name":"MEROITIC CURSIVE FRACTION SEVEN TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddfc"},68093:{"value":"109FD","name":"MEROITIC CURSIVE FRACTION EIGHT TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddfd"},68094:{"value":"109FE","name":"MEROITIC CURSIVE FRACTION NINE TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddfe"},68095:{"value":"109FF","name":"MEROITIC CURSIVE FRACTION TEN TWELFTHS","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10/12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\uddff"},68160:{"value":"10A40","name":"KHAROSHTHI DIGIT ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude40"},68161:{"value":"10A41","name":"KHAROSHTHI DIGIT TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude41"},68162:{"value":"10A42","name":"KHAROSHTHI DIGIT THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude42"},68163:{"value":"10A43","name":"KHAROSHTHI DIGIT FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude43"},68164:{"value":"10A44","name":"KHAROSHTHI NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude44"},68165:{"value":"10A45","name":"KHAROSHTHI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude45"},68166:{"value":"10A46","name":"KHAROSHTHI NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude46"},68167:{"value":"10A47","name":"KHAROSHTHI NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude47"},68168:{"value":"10A48","name":"KHAROSHTHI FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude48"},68221:{"value":"10A7D","name":"OLD SOUTH ARABIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude7d"},68222:{"value":"10A7E","name":"OLD SOUTH ARABIAN NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude7e"},68253:{"value":"10A9D","name":"OLD NORTH ARABIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude9d"},68254:{"value":"10A9E","name":"OLD NORTH ARABIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude9e"},68255:{"value":"10A9F","name":"OLD NORTH ARABIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\ude9f"},68331:{"value":"10AEB","name":"MANICHAEAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udeeb"},68332:{"value":"10AEC","name":"MANICHAEAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udeec"},68333:{"value":"10AED","name":"MANICHAEAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udeed"},68334:{"value":"10AEE","name":"MANICHAEAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udeee"},68335:{"value":"10AEF","name":"MANICHAEAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udeef"},68440:{"value":"10B58","name":"INSCRIPTIONAL PARTHIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf58"},68441:{"value":"10B59","name":"INSCRIPTIONAL PARTHIAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf59"},68442:{"value":"10B5A","name":"INSCRIPTIONAL PARTHIAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5a"},68443:{"value":"10B5B","name":"INSCRIPTIONAL PARTHIAN NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5b"},68444:{"value":"10B5C","name":"INSCRIPTIONAL PARTHIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5c"},68445:{"value":"10B5D","name":"INSCRIPTIONAL PARTHIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5d"},68446:{"value":"10B5E","name":"INSCRIPTIONAL PARTHIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5e"},68447:{"value":"10B5F","name":"INSCRIPTIONAL PARTHIAN NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf5f"},68472:{"value":"10B78","name":"INSCRIPTIONAL PAHLAVI NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf78"},68473:{"value":"10B79","name":"INSCRIPTIONAL PAHLAVI NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf79"},68474:{"value":"10B7A","name":"INSCRIPTIONAL PAHLAVI NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7a"},68475:{"value":"10B7B","name":"INSCRIPTIONAL PAHLAVI NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7b"},68476:{"value":"10B7C","name":"INSCRIPTIONAL PAHLAVI NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7c"},68477:{"value":"10B7D","name":"INSCRIPTIONAL PAHLAVI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7d"},68478:{"value":"10B7E","name":"INSCRIPTIONAL PAHLAVI NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7e"},68479:{"value":"10B7F","name":"INSCRIPTIONAL PAHLAVI NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udf7f"},68521:{"value":"10BA9","name":"PSALTER PAHLAVI NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfa9"},68522:{"value":"10BAA","name":"PSALTER PAHLAVI NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfaa"},68523:{"value":"10BAB","name":"PSALTER PAHLAVI NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfab"},68524:{"value":"10BAC","name":"PSALTER PAHLAVI NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfac"},68525:{"value":"10BAD","name":"PSALTER PAHLAVI NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfad"},68526:{"value":"10BAE","name":"PSALTER PAHLAVI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfae"},68527:{"value":"10BAF","name":"PSALTER PAHLAVI NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud802\udfaf"},68858:{"value":"10CFA","name":"OLD HUNGARIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcfa"},68859:{"value":"10CFB","name":"OLD HUNGARIAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcfb"},68860:{"value":"10CFC","name":"OLD HUNGARIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcfc"},68861:{"value":"10CFD","name":"OLD HUNGARIAN NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcfd"},68862:{"value":"10CFE","name":"OLD HUNGARIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcfe"},68863:{"value":"10CFF","name":"OLD HUNGARIAN NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udcff"},69216:{"value":"10E60","name":"RUMI DIGIT ONE","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude60"},69217:{"value":"10E61","name":"RUMI DIGIT TWO","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude61"},69218:{"value":"10E62","name":"RUMI DIGIT THREE","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude62"},69219:{"value":"10E63","name":"RUMI DIGIT FOUR","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude63"},69220:{"value":"10E64","name":"RUMI DIGIT FIVE","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude64"},69221:{"value":"10E65","name":"RUMI DIGIT SIX","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude65"},69222:{"value":"10E66","name":"RUMI DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude66"},69223:{"value":"10E67","name":"RUMI DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude67"},69224:{"value":"10E68","name":"RUMI DIGIT NINE","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude68"},69225:{"value":"10E69","name":"RUMI NUMBER TEN","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude69"},69226:{"value":"10E6A","name":"RUMI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6a"},69227:{"value":"10E6B","name":"RUMI NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6b"},69228:{"value":"10E6C","name":"RUMI NUMBER FORTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6c"},69229:{"value":"10E6D","name":"RUMI NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6d"},69230:{"value":"10E6E","name":"RUMI NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6e"},69231:{"value":"10E6F","name":"RUMI NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude6f"},69232:{"value":"10E70","name":"RUMI NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude70"},69233:{"value":"10E71","name":"RUMI NUMBER NINETY","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude71"},69234:{"value":"10E72","name":"RUMI NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude72"},69235:{"value":"10E73","name":"RUMI NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude73"},69236:{"value":"10E74","name":"RUMI NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude74"},69237:{"value":"10E75","name":"RUMI NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude75"},69238:{"value":"10E76","name":"RUMI NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude76"},69239:{"value":"10E77","name":"RUMI NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude77"},69240:{"value":"10E78","name":"RUMI NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude78"},69241:{"value":"10E79","name":"RUMI NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude79"},69242:{"value":"10E7A","name":"RUMI NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude7a"},69243:{"value":"10E7B","name":"RUMI FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude7b"},69244:{"value":"10E7C","name":"RUMI FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude7c"},69245:{"value":"10E7D","name":"RUMI FRACTION ONE THIRD","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude7d"},69246:{"value":"10E7E","name":"RUMI FRACTION TWO THIRDS","category":"No","class":"0","bidirectional_category":"AN","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2/3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\ude7e"},69405:{"value":"10F1D","name":"OLD SOGDIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf1d"},69406:{"value":"10F1E","name":"OLD SOGDIAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf1e"},69407:{"value":"10F1F","name":"OLD SOGDIAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf1f"},69408:{"value":"10F20","name":"OLD SOGDIAN NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf20"},69409:{"value":"10F21","name":"OLD SOGDIAN NUMBER FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf21"},69410:{"value":"10F22","name":"OLD SOGDIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf22"},69411:{"value":"10F23","name":"OLD SOGDIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf23"},69412:{"value":"10F24","name":"OLD SOGDIAN NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf24"},69413:{"value":"10F25","name":"OLD SOGDIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf25"},69414:{"value":"10F26","name":"OLD SOGDIAN FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf26"},69457:{"value":"10F51","name":"SOGDIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf51"},69458:{"value":"10F52","name":"SOGDIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf52"},69459:{"value":"10F53","name":"SOGDIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf53"},69460:{"value":"10F54","name":"SOGDIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udf54"},69573:{"value":"10FC5","name":"CHORASMIAN NUMBER ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfc5"},69574:{"value":"10FC6","name":"CHORASMIAN NUMBER TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfc6"},69575:{"value":"10FC7","name":"CHORASMIAN NUMBER THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfc7"},69576:{"value":"10FC8","name":"CHORASMIAN NUMBER FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfc8"},69577:{"value":"10FC9","name":"CHORASMIAN NUMBER TEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfc9"},69578:{"value":"10FCA","name":"CHORASMIAN NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfca"},69579:{"value":"10FCB","name":"CHORASMIAN NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud803\udfcb"},69714:{"value":"11052","name":"BRAHMI NUMBER ONE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc52"},69715:{"value":"11053","name":"BRAHMI NUMBER TWO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc53"},69716:{"value":"11054","name":"BRAHMI NUMBER THREE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc54"},69717:{"value":"11055","name":"BRAHMI NUMBER FOUR","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc55"},69718:{"value":"11056","name":"BRAHMI NUMBER FIVE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc56"},69719:{"value":"11057","name":"BRAHMI NUMBER SIX","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc57"},69720:{"value":"11058","name":"BRAHMI NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc58"},69721:{"value":"11059","name":"BRAHMI NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc59"},69722:{"value":"1105A","name":"BRAHMI NUMBER NINE","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5a"},69723:{"value":"1105B","name":"BRAHMI NUMBER TEN","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5b"},69724:{"value":"1105C","name":"BRAHMI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5c"},69725:{"value":"1105D","name":"BRAHMI NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5d"},69726:{"value":"1105E","name":"BRAHMI NUMBER FORTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5e"},69727:{"value":"1105F","name":"BRAHMI NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc5f"},69728:{"value":"11060","name":"BRAHMI NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc60"},69729:{"value":"11061","name":"BRAHMI NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc61"},69730:{"value":"11062","name":"BRAHMI NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc62"},69731:{"value":"11063","name":"BRAHMI NUMBER NINETY","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc63"},69732:{"value":"11064","name":"BRAHMI NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc64"},69733:{"value":"11065","name":"BRAHMI NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udc65"},70113:{"value":"111E1","name":"SINHALA ARCHAIC DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde1"},70114:{"value":"111E2","name":"SINHALA ARCHAIC DIGIT TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde2"},70115:{"value":"111E3","name":"SINHALA ARCHAIC DIGIT THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde3"},70116:{"value":"111E4","name":"SINHALA ARCHAIC DIGIT FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde4"},70117:{"value":"111E5","name":"SINHALA ARCHAIC DIGIT FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde5"},70118:{"value":"111E6","name":"SINHALA ARCHAIC DIGIT SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde6"},70119:{"value":"111E7","name":"SINHALA ARCHAIC DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde7"},70120:{"value":"111E8","name":"SINHALA ARCHAIC DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde8"},70121:{"value":"111E9","name":"SINHALA ARCHAIC DIGIT NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udde9"},70122:{"value":"111EA","name":"SINHALA ARCHAIC NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddea"},70123:{"value":"111EB","name":"SINHALA ARCHAIC NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddeb"},70124:{"value":"111EC","name":"SINHALA ARCHAIC NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddec"},70125:{"value":"111ED","name":"SINHALA ARCHAIC NUMBER FORTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\udded"},70126:{"value":"111EE","name":"SINHALA ARCHAIC NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddee"},70127:{"value":"111EF","name":"SINHALA ARCHAIC NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddef"},70128:{"value":"111F0","name":"SINHALA ARCHAIC NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddf0"},70129:{"value":"111F1","name":"SINHALA ARCHAIC NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddf1"},70130:{"value":"111F2","name":"SINHALA ARCHAIC NUMBER NINETY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddf2"},70131:{"value":"111F3","name":"SINHALA ARCHAIC NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddf3"},70132:{"value":"111F4","name":"SINHALA ARCHAIC NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud804\uddf4"},71482:{"value":"1173A","name":"AHOM NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud805\udf3a"},71483:{"value":"1173B","name":"AHOM NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud805\udf3b"},71914:{"value":"118EA","name":"WARANG CITI NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcea"},71915:{"value":"118EB","name":"WARANG CITI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udceb"},71916:{"value":"118EC","name":"WARANG CITI NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcec"},71917:{"value":"118ED","name":"WARANG CITI NUMBER FORTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udced"},71918:{"value":"118EE","name":"WARANG CITI NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcee"},71919:{"value":"118EF","name":"WARANG CITI NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcef"},71920:{"value":"118F0","name":"WARANG CITI NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcf0"},71921:{"value":"118F1","name":"WARANG CITI NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcf1"},71922:{"value":"118F2","name":"WARANG CITI NUMBER NINETY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud806\udcf2"},72794:{"value":"11C5A","name":"BHAIKSUKI NUMBER ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5a"},72795:{"value":"11C5B","name":"BHAIKSUKI NUMBER TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5b"},72796:{"value":"11C5C","name":"BHAIKSUKI NUMBER THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5c"},72797:{"value":"11C5D","name":"BHAIKSUKI NUMBER FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5d"},72798:{"value":"11C5E","name":"BHAIKSUKI NUMBER FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5e"},72799:{"value":"11C5F","name":"BHAIKSUKI NUMBER SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc5f"},72800:{"value":"11C60","name":"BHAIKSUKI NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc60"},72801:{"value":"11C61","name":"BHAIKSUKI NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc61"},72802:{"value":"11C62","name":"BHAIKSUKI NUMBER NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc62"},72803:{"value":"11C63","name":"BHAIKSUKI NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc63"},72804:{"value":"11C64","name":"BHAIKSUKI NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc64"},72805:{"value":"11C65","name":"BHAIKSUKI NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc65"},72806:{"value":"11C66","name":"BHAIKSUKI NUMBER FORTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc66"},72807:{"value":"11C67","name":"BHAIKSUKI NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc67"},72808:{"value":"11C68","name":"BHAIKSUKI NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc68"},72809:{"value":"11C69","name":"BHAIKSUKI NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc69"},72810:{"value":"11C6A","name":"BHAIKSUKI NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc6a"},72811:{"value":"11C6B","name":"BHAIKSUKI NUMBER NINETY","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc6b"},72812:{"value":"11C6C","name":"BHAIKSUKI HUNDREDS UNIT MARK","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udc6c"},73664:{"value":"11FC0","name":"TAMIL FRACTION ONE THREE-HUNDRED-AND-TWENTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/320","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc0"},73665:{"value":"11FC1","name":"TAMIL FRACTION ONE ONE-HUNDRED-AND-SIXTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/160","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc1"},73666:{"value":"11FC2","name":"TAMIL FRACTION ONE EIGHTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc2"},73667:{"value":"11FC3","name":"TAMIL FRACTION ONE SIXTY-FOURTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/64","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc3"},73668:{"value":"11FC4","name":"TAMIL FRACTION ONE FORTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc4"},73669:{"value":"11FC5","name":"TAMIL FRACTION ONE THIRTY-SECOND","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/32","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc5"},73670:{"value":"11FC6","name":"TAMIL FRACTION THREE EIGHTIETHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc6"},73671:{"value":"11FC7","name":"TAMIL FRACTION THREE SIXTY-FOURTHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/64","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc7"},73672:{"value":"11FC8","name":"TAMIL FRACTION ONE TWENTIETH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc8"},73673:{"value":"11FC9","name":"TAMIL FRACTION ONE SIXTEENTH-1","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfc9"},73674:{"value":"11FCA","name":"TAMIL FRACTION ONE SIXTEENTH-2","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfca"},73675:{"value":"11FCB","name":"TAMIL FRACTION ONE TENTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfcb"},73676:{"value":"11FCC","name":"TAMIL FRACTION ONE EIGHTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfcc"},73677:{"value":"11FCD","name":"TAMIL FRACTION THREE TWENTIETHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfcd"},73678:{"value":"11FCE","name":"TAMIL FRACTION THREE SIXTEENTHS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfce"},73679:{"value":"11FCF","name":"TAMIL FRACTION ONE FIFTH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfcf"},73680:{"value":"11FD0","name":"TAMIL FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfd0"},73681:{"value":"11FD1","name":"TAMIL FRACTION ONE HALF-1","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfd1"},73682:{"value":"11FD2","name":"TAMIL FRACTION ONE HALF-2","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfd2"},73683:{"value":"11FD3","name":"TAMIL FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfd3"},73684:{"value":"11FD4","name":"TAMIL FRACTION DOWNSCALING FACTOR KIIZH","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/320","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud807\udfd4"},93019:{"value":"16B5B","name":"PAHAWH HMONG NUMBER TENS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf5b"},93020:{"value":"16B5C","name":"PAHAWH HMONG NUMBER HUNDREDS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf5c"},93021:{"value":"16B5D","name":"PAHAWH HMONG NUMBER TEN THOUSANDS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf5d"},93022:{"value":"16B5E","name":"PAHAWH HMONG NUMBER MILLIONS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf5e"},93023:{"value":"16B5F","name":"PAHAWH HMONG NUMBER HUNDRED MILLIONS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf5f"},93024:{"value":"16B60","name":"PAHAWH HMONG NUMBER TEN BILLIONS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf60"},93025:{"value":"16B61","name":"PAHAWH HMONG NUMBER TRILLIONS","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000000000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81a\udf61"},93824:{"value":"16E80","name":"MEDEFAIDRIN DIGIT ZERO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude80"},93825:{"value":"16E81","name":"MEDEFAIDRIN DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude81"},93826:{"value":"16E82","name":"MEDEFAIDRIN DIGIT TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude82"},93827:{"value":"16E83","name":"MEDEFAIDRIN DIGIT THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude83"},93828:{"value":"16E84","name":"MEDEFAIDRIN DIGIT FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude84"},93829:{"value":"16E85","name":"MEDEFAIDRIN DIGIT FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude85"},93830:{"value":"16E86","name":"MEDEFAIDRIN DIGIT SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude86"},93831:{"value":"16E87","name":"MEDEFAIDRIN DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude87"},93832:{"value":"16E88","name":"MEDEFAIDRIN DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude88"},93833:{"value":"16E89","name":"MEDEFAIDRIN DIGIT NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude89"},93834:{"value":"16E8A","name":"MEDEFAIDRIN NUMBER TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8a"},93835:{"value":"16E8B","name":"MEDEFAIDRIN NUMBER ELEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8b"},93836:{"value":"16E8C","name":"MEDEFAIDRIN NUMBER TWELVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8c"},93837:{"value":"16E8D","name":"MEDEFAIDRIN NUMBER THIRTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8d"},93838:{"value":"16E8E","name":"MEDEFAIDRIN NUMBER FOURTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8e"},93839:{"value":"16E8F","name":"MEDEFAIDRIN NUMBER FIFTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude8f"},93840:{"value":"16E90","name":"MEDEFAIDRIN NUMBER SIXTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude90"},93841:{"value":"16E91","name":"MEDEFAIDRIN NUMBER SEVENTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude91"},93842:{"value":"16E92","name":"MEDEFAIDRIN NUMBER EIGHTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude92"},93843:{"value":"16E93","name":"MEDEFAIDRIN NUMBER NINETEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude93"},93844:{"value":"16E94","name":"MEDEFAIDRIN DIGIT ONE ALTERNATE FORM","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude94"},93845:{"value":"16E95","name":"MEDEFAIDRIN DIGIT TWO ALTERNATE FORM","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude95"},93846:{"value":"16E96","name":"MEDEFAIDRIN DIGIT THREE ALTERNATE FORM","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud81b\ude96"},119520:{"value":"1D2E0","name":"MAYAN NUMERAL ZERO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee0"},119521:{"value":"1D2E1","name":"MAYAN NUMERAL ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee1"},119522:{"value":"1D2E2","name":"MAYAN NUMERAL TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee2"},119523:{"value":"1D2E3","name":"MAYAN NUMERAL THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee3"},119524:{"value":"1D2E4","name":"MAYAN NUMERAL FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee4"},119525:{"value":"1D2E5","name":"MAYAN NUMERAL FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee5"},119526:{"value":"1D2E6","name":"MAYAN NUMERAL SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee6"},119527:{"value":"1D2E7","name":"MAYAN NUMERAL SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee7"},119528:{"value":"1D2E8","name":"MAYAN NUMERAL EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee8"},119529:{"value":"1D2E9","name":"MAYAN NUMERAL NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udee9"},119530:{"value":"1D2EA","name":"MAYAN NUMERAL TEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeea"},119531:{"value":"1D2EB","name":"MAYAN NUMERAL ELEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"11","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeeb"},119532:{"value":"1D2EC","name":"MAYAN NUMERAL TWELVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"12","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeec"},119533:{"value":"1D2ED","name":"MAYAN NUMERAL THIRTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"13","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeed"},119534:{"value":"1D2EE","name":"MAYAN NUMERAL FOURTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"14","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeee"},119535:{"value":"1D2EF","name":"MAYAN NUMERAL FIFTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"15","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udeef"},119536:{"value":"1D2F0","name":"MAYAN NUMERAL SIXTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"16","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udef0"},119537:{"value":"1D2F1","name":"MAYAN NUMERAL SEVENTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"17","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udef1"},119538:{"value":"1D2F2","name":"MAYAN NUMERAL EIGHTEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"18","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udef2"},119539:{"value":"1D2F3","name":"MAYAN NUMERAL NINETEEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"19","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udef3"},119648:{"value":"1D360","name":"COUNTING ROD UNIT DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf60"},119649:{"value":"1D361","name":"COUNTING ROD UNIT DIGIT TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf61"},119650:{"value":"1D362","name":"COUNTING ROD UNIT DIGIT THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf62"},119651:{"value":"1D363","name":"COUNTING ROD UNIT DIGIT FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf63"},119652:{"value":"1D364","name":"COUNTING ROD UNIT DIGIT FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf64"},119653:{"value":"1D365","name":"COUNTING ROD UNIT DIGIT SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf65"},119654:{"value":"1D366","name":"COUNTING ROD UNIT DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf66"},119655:{"value":"1D367","name":"COUNTING ROD UNIT DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf67"},119656:{"value":"1D368","name":"COUNTING ROD UNIT DIGIT NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf68"},119657:{"value":"1D369","name":"COUNTING ROD TENS DIGIT ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf69"},119658:{"value":"1D36A","name":"COUNTING ROD TENS DIGIT TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6a"},119659:{"value":"1D36B","name":"COUNTING ROD TENS DIGIT THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6b"},119660:{"value":"1D36C","name":"COUNTING ROD TENS DIGIT FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6c"},119661:{"value":"1D36D","name":"COUNTING ROD TENS DIGIT FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6d"},119662:{"value":"1D36E","name":"COUNTING ROD TENS DIGIT SIX","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6e"},119663:{"value":"1D36F","name":"COUNTING ROD TENS DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf6f"},119664:{"value":"1D370","name":"COUNTING ROD TENS DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf70"},119665:{"value":"1D371","name":"COUNTING ROD TENS DIGIT NINE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf71"},119666:{"value":"1D372","name":"IDEOGRAPHIC TALLY MARK ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf72"},119667:{"value":"1D373","name":"IDEOGRAPHIC TALLY MARK TWO","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf73"},119668:{"value":"1D374","name":"IDEOGRAPHIC TALLY MARK THREE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf74"},119669:{"value":"1D375","name":"IDEOGRAPHIC TALLY MARK FOUR","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf75"},119670:{"value":"1D376","name":"IDEOGRAPHIC TALLY MARK FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf76"},119671:{"value":"1D377","name":"TALLY MARK ONE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf77"},119672:{"value":"1D378","name":"TALLY MARK FIVE","category":"No","class":"0","bidirectional_category":"L","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud834\udf78"},125127:{"value":"1E8C7","name":"MENDE KIKAKUI DIGIT ONE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udcc7"},125128:{"value":"1E8C8","name":"MENDE KIKAKUI DIGIT TWO","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udcc8"},125129:{"value":"1E8C9","name":"MENDE KIKAKUI DIGIT THREE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udcc9"},125130:{"value":"1E8CA","name":"MENDE KIKAKUI DIGIT FOUR","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udcca"},125131:{"value":"1E8CB","name":"MENDE KIKAKUI DIGIT FIVE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udccb"},125132:{"value":"1E8CC","name":"MENDE KIKAKUI DIGIT SIX","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udccc"},125133:{"value":"1E8CD","name":"MENDE KIKAKUI DIGIT SEVEN","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udccd"},125134:{"value":"1E8CE","name":"MENDE KIKAKUI DIGIT EIGHT","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udcce"},125135:{"value":"1E8CF","name":"MENDE KIKAKUI DIGIT NINE","category":"No","class":"0","bidirectional_category":"R","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83a\udccf"},126065:{"value":"1EC71","name":"INDIC SIYAQ NUMBER ONE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc71"},126066:{"value":"1EC72","name":"INDIC SIYAQ NUMBER TWO","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc72"},126067:{"value":"1EC73","name":"INDIC SIYAQ NUMBER THREE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc73"},126068:{"value":"1EC74","name":"INDIC SIYAQ NUMBER FOUR","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc74"},126069:{"value":"1EC75","name":"INDIC SIYAQ NUMBER FIVE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc75"},126070:{"value":"1EC76","name":"INDIC SIYAQ NUMBER SIX","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc76"},126071:{"value":"1EC77","name":"INDIC SIYAQ NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc77"},126072:{"value":"1EC78","name":"INDIC SIYAQ NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc78"},126073:{"value":"1EC79","name":"INDIC SIYAQ NUMBER NINE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc79"},126074:{"value":"1EC7A","name":"INDIC SIYAQ NUMBER TEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7a"},126075:{"value":"1EC7B","name":"INDIC SIYAQ NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7b"},126076:{"value":"1EC7C","name":"INDIC SIYAQ NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7c"},126077:{"value":"1EC7D","name":"INDIC SIYAQ NUMBER FORTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7d"},126078:{"value":"1EC7E","name":"INDIC SIYAQ NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7e"},126079:{"value":"1EC7F","name":"INDIC SIYAQ NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc7f"},126080:{"value":"1EC80","name":"INDIC SIYAQ NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc80"},126081:{"value":"1EC81","name":"INDIC SIYAQ NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc81"},126082:{"value":"1EC82","name":"INDIC SIYAQ NUMBER NINETY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc82"},126083:{"value":"1EC83","name":"INDIC SIYAQ NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc83"},126084:{"value":"1EC84","name":"INDIC SIYAQ NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc84"},126085:{"value":"1EC85","name":"INDIC SIYAQ NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc85"},126086:{"value":"1EC86","name":"INDIC SIYAQ NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc86"},126087:{"value":"1EC87","name":"INDIC SIYAQ NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc87"},126088:{"value":"1EC88","name":"INDIC SIYAQ NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc88"},126089:{"value":"1EC89","name":"INDIC SIYAQ NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc89"},126090:{"value":"1EC8A","name":"INDIC SIYAQ NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8a"},126091:{"value":"1EC8B","name":"INDIC SIYAQ NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8b"},126092:{"value":"1EC8C","name":"INDIC SIYAQ NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8c"},126093:{"value":"1EC8D","name":"INDIC SIYAQ NUMBER TWO THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8d"},126094:{"value":"1EC8E","name":"INDIC SIYAQ NUMBER THREE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8e"},126095:{"value":"1EC8F","name":"INDIC SIYAQ NUMBER FOUR THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc8f"},126096:{"value":"1EC90","name":"INDIC SIYAQ NUMBER FIVE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc90"},126097:{"value":"1EC91","name":"INDIC SIYAQ NUMBER SIX THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc91"},126098:{"value":"1EC92","name":"INDIC SIYAQ NUMBER SEVEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc92"},126099:{"value":"1EC93","name":"INDIC SIYAQ NUMBER EIGHT THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc93"},126100:{"value":"1EC94","name":"INDIC SIYAQ NUMBER NINE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc94"},126101:{"value":"1EC95","name":"INDIC SIYAQ NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc95"},126102:{"value":"1EC96","name":"INDIC SIYAQ NUMBER TWENTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc96"},126103:{"value":"1EC97","name":"INDIC SIYAQ NUMBER THIRTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc97"},126104:{"value":"1EC98","name":"INDIC SIYAQ NUMBER FORTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc98"},126105:{"value":"1EC99","name":"INDIC SIYAQ NUMBER FIFTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc99"},126106:{"value":"1EC9A","name":"INDIC SIYAQ NUMBER SIXTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9a"},126107:{"value":"1EC9B","name":"INDIC SIYAQ NUMBER SEVENTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9b"},126108:{"value":"1EC9C","name":"INDIC SIYAQ NUMBER EIGHTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9c"},126109:{"value":"1EC9D","name":"INDIC SIYAQ NUMBER NINETY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9d"},126110:{"value":"1EC9E","name":"INDIC SIYAQ NUMBER LAKH","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9e"},126111:{"value":"1EC9F","name":"INDIC SIYAQ NUMBER LAKHAN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udc9f"},126112:{"value":"1ECA0","name":"INDIC SIYAQ LAKH MARK","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca0"},126113:{"value":"1ECA1","name":"INDIC SIYAQ NUMBER KAROR","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca1"},126114:{"value":"1ECA2","name":"INDIC SIYAQ NUMBER KARORAN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20000000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca2"},126115:{"value":"1ECA3","name":"INDIC SIYAQ NUMBER PREFIXED ONE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca3"},126116:{"value":"1ECA4","name":"INDIC SIYAQ NUMBER PREFIXED TWO","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca4"},126117:{"value":"1ECA5","name":"INDIC SIYAQ NUMBER PREFIXED THREE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca5"},126118:{"value":"1ECA6","name":"INDIC SIYAQ NUMBER PREFIXED FOUR","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca6"},126119:{"value":"1ECA7","name":"INDIC SIYAQ NUMBER PREFIXED FIVE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca7"},126120:{"value":"1ECA8","name":"INDIC SIYAQ NUMBER PREFIXED SIX","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca8"},126121:{"value":"1ECA9","name":"INDIC SIYAQ NUMBER PREFIXED SEVEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udca9"},126122:{"value":"1ECAA","name":"INDIC SIYAQ NUMBER PREFIXED EIGHT","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcaa"},126123:{"value":"1ECAB","name":"INDIC SIYAQ NUMBER PREFIXED NINE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcab"},126125:{"value":"1ECAD","name":"INDIC SIYAQ FRACTION ONE QUARTER","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcad"},126126:{"value":"1ECAE","name":"INDIC SIYAQ FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcae"},126127:{"value":"1ECAF","name":"INDIC SIYAQ FRACTION THREE QUARTERS","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3/4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcaf"},126129:{"value":"1ECB1","name":"INDIC SIYAQ NUMBER ALTERNATE ONE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcb1"},126130:{"value":"1ECB2","name":"INDIC SIYAQ NUMBER ALTERNATE TWO","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcb2"},126131:{"value":"1ECB3","name":"INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcb3"},126132:{"value":"1ECB4","name":"INDIC SIYAQ ALTERNATE LAKH MARK","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udcb4"},126209:{"value":"1ED01","name":"OTTOMAN SIYAQ NUMBER ONE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd01"},126210:{"value":"1ED02","name":"OTTOMAN SIYAQ NUMBER TWO","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd02"},126211:{"value":"1ED03","name":"OTTOMAN SIYAQ NUMBER THREE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd03"},126212:{"value":"1ED04","name":"OTTOMAN SIYAQ NUMBER FOUR","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd04"},126213:{"value":"1ED05","name":"OTTOMAN SIYAQ NUMBER FIVE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd05"},126214:{"value":"1ED06","name":"OTTOMAN SIYAQ NUMBER SIX","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd06"},126215:{"value":"1ED07","name":"OTTOMAN SIYAQ NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd07"},126216:{"value":"1ED08","name":"OTTOMAN SIYAQ NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd08"},126217:{"value":"1ED09","name":"OTTOMAN SIYAQ NUMBER NINE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd09"},126218:{"value":"1ED0A","name":"OTTOMAN SIYAQ NUMBER TEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0a"},126219:{"value":"1ED0B","name":"OTTOMAN SIYAQ NUMBER TWENTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0b"},126220:{"value":"1ED0C","name":"OTTOMAN SIYAQ NUMBER THIRTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0c"},126221:{"value":"1ED0D","name":"OTTOMAN SIYAQ NUMBER FORTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0d"},126222:{"value":"1ED0E","name":"OTTOMAN SIYAQ NUMBER FIFTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0e"},126223:{"value":"1ED0F","name":"OTTOMAN SIYAQ NUMBER SIXTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd0f"},126224:{"value":"1ED10","name":"OTTOMAN SIYAQ NUMBER SEVENTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd10"},126225:{"value":"1ED11","name":"OTTOMAN SIYAQ NUMBER EIGHTY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd11"},126226:{"value":"1ED12","name":"OTTOMAN SIYAQ NUMBER NINETY","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd12"},126227:{"value":"1ED13","name":"OTTOMAN SIYAQ NUMBER ONE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"100","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd13"},126228:{"value":"1ED14","name":"OTTOMAN SIYAQ NUMBER TWO HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"200","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd14"},126229:{"value":"1ED15","name":"OTTOMAN SIYAQ NUMBER THREE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"300","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd15"},126230:{"value":"1ED16","name":"OTTOMAN SIYAQ NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd16"},126231:{"value":"1ED17","name":"OTTOMAN SIYAQ NUMBER FIVE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"500","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd17"},126232:{"value":"1ED18","name":"OTTOMAN SIYAQ NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd18"},126233:{"value":"1ED19","name":"OTTOMAN SIYAQ NUMBER SEVEN HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"700","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd19"},126234:{"value":"1ED1A","name":"OTTOMAN SIYAQ NUMBER EIGHT HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"800","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1a"},126235:{"value":"1ED1B","name":"OTTOMAN SIYAQ NUMBER NINE HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"900","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1b"},126236:{"value":"1ED1C","name":"OTTOMAN SIYAQ NUMBER ONE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1c"},126237:{"value":"1ED1D","name":"OTTOMAN SIYAQ NUMBER TWO THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1d"},126238:{"value":"1ED1E","name":"OTTOMAN SIYAQ NUMBER THREE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1e"},126239:{"value":"1ED1F","name":"OTTOMAN SIYAQ NUMBER FOUR THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd1f"},126240:{"value":"1ED20","name":"OTTOMAN SIYAQ NUMBER FIVE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd20"},126241:{"value":"1ED21","name":"OTTOMAN SIYAQ NUMBER SIX THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd21"},126242:{"value":"1ED22","name":"OTTOMAN SIYAQ NUMBER SEVEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd22"},126243:{"value":"1ED23","name":"OTTOMAN SIYAQ NUMBER EIGHT THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd23"},126244:{"value":"1ED24","name":"OTTOMAN SIYAQ NUMBER NINE THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd24"},126245:{"value":"1ED25","name":"OTTOMAN SIYAQ NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd25"},126246:{"value":"1ED26","name":"OTTOMAN SIYAQ NUMBER TWENTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"20000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd26"},126247:{"value":"1ED27","name":"OTTOMAN SIYAQ NUMBER THIRTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"30000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd27"},126248:{"value":"1ED28","name":"OTTOMAN SIYAQ NUMBER FORTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"40000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd28"},126249:{"value":"1ED29","name":"OTTOMAN SIYAQ NUMBER FIFTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"50000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd29"},126250:{"value":"1ED2A","name":"OTTOMAN SIYAQ NUMBER SIXTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"60000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd2a"},126251:{"value":"1ED2B","name":"OTTOMAN SIYAQ NUMBER SEVENTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"70000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd2b"},126252:{"value":"1ED2C","name":"OTTOMAN SIYAQ NUMBER EIGHTY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"80000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd2c"},126253:{"value":"1ED2D","name":"OTTOMAN SIYAQ NUMBER NINETY THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"90000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd2d"},126255:{"value":"1ED2F","name":"OTTOMAN SIYAQ ALTERNATE NUMBER TWO","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd2f"},126256:{"value":"1ED30","name":"OTTOMAN SIYAQ ALTERNATE NUMBER THREE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd30"},126257:{"value":"1ED31","name":"OTTOMAN SIYAQ ALTERNATE NUMBER FOUR","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd31"},126258:{"value":"1ED32","name":"OTTOMAN SIYAQ ALTERNATE NUMBER FIVE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd32"},126259:{"value":"1ED33","name":"OTTOMAN SIYAQ ALTERNATE NUMBER SIX","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd33"},126260:{"value":"1ED34","name":"OTTOMAN SIYAQ ALTERNATE NUMBER SEVEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd34"},126261:{"value":"1ED35","name":"OTTOMAN SIYAQ ALTERNATE NUMBER EIGHT","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd35"},126262:{"value":"1ED36","name":"OTTOMAN SIYAQ ALTERNATE NUMBER NINE","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd36"},126263:{"value":"1ED37","name":"OTTOMAN SIYAQ ALTERNATE NUMBER TEN","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd37"},126264:{"value":"1ED38","name":"OTTOMAN SIYAQ ALTERNATE NUMBER FOUR HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"400","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd38"},126265:{"value":"1ED39","name":"OTTOMAN SIYAQ ALTERNATE NUMBER SIX HUNDRED","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"600","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd39"},126266:{"value":"1ED3A","name":"OTTOMAN SIYAQ ALTERNATE NUMBER TWO THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"2000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd3a"},126267:{"value":"1ED3B","name":"OTTOMAN SIYAQ ALTERNATE NUMBER TEN THOUSAND","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"10000","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd3b"},126268:{"value":"1ED3C","name":"OTTOMAN SIYAQ FRACTION ONE HALF","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd3c"},126269:{"value":"1ED3D","name":"OTTOMAN SIYAQ FRACTION ONE SIXTH","category":"No","class":"0","bidirectional_category":"AL","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"1/6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83b\udd3d"},127232:{"value":"1F100","name":"DIGIT ZERO FULL STOP","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0030 002E","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd00"},127233:{"value":"1F101","name":"DIGIT ZERO COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0030 002C","decimal_digit_value":"","digit_value":"0","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd01"},127234:{"value":"1F102","name":"DIGIT ONE COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0031 002C","decimal_digit_value":"","digit_value":"1","numeric_value":"1","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd02"},127235:{"value":"1F103","name":"DIGIT TWO COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0032 002C","decimal_digit_value":"","digit_value":"2","numeric_value":"2","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd03"},127236:{"value":"1F104","name":"DIGIT THREE COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0033 002C","decimal_digit_value":"","digit_value":"3","numeric_value":"3","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd04"},127237:{"value":"1F105","name":"DIGIT FOUR COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0034 002C","decimal_digit_value":"","digit_value":"4","numeric_value":"4","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd05"},127238:{"value":"1F106","name":"DIGIT FIVE COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0035 002C","decimal_digit_value":"","digit_value":"5","numeric_value":"5","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd06"},127239:{"value":"1F107","name":"DIGIT SIX COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0036 002C","decimal_digit_value":"","digit_value":"6","numeric_value":"6","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd07"},127240:{"value":"1F108","name":"DIGIT SEVEN COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0037 002C","decimal_digit_value":"","digit_value":"7","numeric_value":"7","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd08"},127241:{"value":"1F109","name":"DIGIT EIGHT COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0038 002C","decimal_digit_value":"","digit_value":"8","numeric_value":"8","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd09"},127242:{"value":"1F10A","name":"DIGIT NINE COMMA","category":"No","class":"0","bidirectional_category":"EN","mapping":"<compat> 0039 002C","decimal_digit_value":"","digit_value":"9","numeric_value":"9","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd0a"},127243:{"value":"1F10B","name":"DINGBAT CIRCLED SANS-SERIF DIGIT ZERO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd0b"},127244:{"value":"1F10C","name":"DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ZERO","category":"No","class":"0","bidirectional_category":"ON","mapping":"","decimal_digit_value":"","digit_value":"","numeric_value":"0","mirrored":"N","unicode_name":"","comment":"","uppercase_mapping":"","lowercase_mapping":"","titlecase_mapping":"","symbol":"\ud83c\udd0c"}};
|
import React, { Component } from "react";
import styled, { keyframes } from "styled-components";
import PropTypes from "prop-types";
import posed from "react-pose";
import moment from 'moment';
const ChatListWrapper = styled.div`
display: flex;
flex-grow: 1;
flex: 1;
position: relative;
padding-bottom: 10px;
flex-direction: column;
overflow-y: scroll;
overflow-x: hidden;
justify-content: flex-start;
`;
// const LoadMoreAnimate = posed.div({
// closed: {
// top: "-100%",
// transition: { type: "spring", stiffness: 100, damping: 10 }
// },
// opened: {
// top: "0",
// transition: { type: "spring", stiffness: 100, damping: 10 }
// }
// });
const LoadMore = styled.div`
padding: 20px;
cursor: pointer;
position: relative;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(
to bottom,
rgba(3, 79, 79, 0.18) 0%,
rgba(239, 239, 239, 0) 100%
);
&:hover {
background: linear-gradient(
to bottom,
rgba(3, 79, 79, 0.34) -20%,
rgba(239, 239, 239, 0) 100%
);
}
`;
const DateText = styled.h4`
text-align: center;
width: 100%;
margin: 10px;
`;
const Status = styled.div`
align-self: "flex-end";
width: 90%;
margin: 10px 0;
display: flex;
align-items: flex-end;
justify-content: flex-end;
flex-direction: "row";
opacity: 0.5;
`;
class ChatList extends Component {
constructor(props) {
super(props);
this.state = {
...props
};
}
componentDidUpdate(prevProps, prevState) {
if (prevProps !== this.props) {
this.setState({ ...this.props });
}
if (prevState !== this.state) {
this.chatList.scrollTop =
this.chatList.scrollHeight - this.chatList.clientHeight;
}
}
componentDidMount() {
this.slowCreateChat();
}
formatDate = (date) => {
var check = moment(date, 'YYYY/MMMM/DD');
var month = check.format('MMMM');
var day = check.format('D');
var year = check.format('YYYY');
return `${day} ${month} ${year}`;
}
slowCreateChat = () => {
setTimeout;
};
static propTypes = {
render: PropTypes.func.isRequired,
data: PropTypes.array.isRequired
};
render() {
const { onSeeMore, nothingMore, read } = this.props;
const { user = false, operator = false } = read;
const { render: RenderComponent, data } = this.state;
// console.log("nothing more", nothingMore);
return (
<React.Fragment>
{!nothingMore && <LoadMore onClick={onSeeMore}>See more</LoadMore>}
<ChatListWrapper ref={r => (this.chatList = r)}>
{
Object.keys(data).map((key, index) => {
const chatArray = data[key]
return (
<div>
<DateText>{this.formatDate(key)}</DateText>
{chatArray.map((chat, key) => {
return RenderComponent({
...chat,
key: chat._id
});
})}
</div>
)
})
}
{(user === true && operator === true) ?
<Status>Read</Status>
:
<Status>UnRead</Status>
}
</ChatListWrapper>
</React.Fragment>
);
}
}
export default ChatList;
|
(() => {
const search_form = $("#search_form")
if (search_form.length < 1) {
console.error("Could not find search form.")
return;
}
const search_endpoint = search_form.attr("action")
/**
* @type {string}
*/
const method = search_form.attr("method")
const static_url = search_form.attr('data-static-url')
const search_bar = $("#search_bar");
const search_query = $("#search_query")
const search_scope = $("#search_scope")
const search_icon = $("#search_icon")
const search_result_list = $("#search_result_list")
const search_result_item = $("#search_result_item") // result item template
const search_scope_list = $("#search_scope_list")
const search_scope_items = search_scope_list.children()
const search_result_container = $("#search_result_container")
const search_scope_menu = $("#search_scope_menu")
const current_scope_text = $("#current_scope_text")
const search_scope_filter = $("#search_scope_filter")
const filter_arrow = $("#filter_arrow")
// current filtering strategy
let current_scope = search_scope_filter.attr("data-current-scope")
function toggleFilterMenu() {
search_scope_menu.toggleClass("scale-y-0")
filter_arrow.toggleClass("rotate-180")
}
// toggle filter menu
search_scope_filter.click(toggleFilterMenu);
// listen to selection of a scope
search_scope_items.click((e) => {
let new_scope = e.target.getAttribute("data-scope")
if (current_scope === new_scope) return;
current_scope = new_scope;
current_scope_text.text(current_scope);
search_scope_filter.attr("data-current-scope", current_scope);
search_scope.val(current_scope)
// focus on search input
search_query.focus()
// do quick query
quick_query();
});
/**
* Does a GET request and displays the results in a minimized version, like how google shows possible results.
*/
function quick_query() {
if (search_query.val() === "") {
showSearchResults({results: []})
return;
}
// animate search bar
search_bar.toggleClass("animate-pulse")
const formData = new FormData(search_form[0])
fetch(`${search_endpoint}?${new URLSearchParams({
"csrfmiddlewaretoken": formData.get("csrfmiddlewaretoken"),
"search_query": formData.get("search_query"),
"search_scope": formData.get("search_scope"),
"quick_query": "true"
})}`, {
method: method.toUpperCase()
})
.then(res => res.json())
.then(data => {
search_bar.toggleClass("animate-pulse")
showSearchResults(data)
})
.catch(console.error);
}
function showSearchResults(query_data) {
// clear all previous results
search_result_list.children().remove("[data-removable-result=\"true\"]");
// console.log(query_data)
// construct the result lists
for (let i=0;i<query_data.entries;i++) {
let result = query_data.results[i]
let result_item = search_result_item.clone()
result_item.find("#search_result_link")
result_item.attr("id", `search_result_link_${result.text}`)
result_item.attr("data-removable-result", "true")
result_item.attr("aria-hidden", "false")
result_item.removeClass("hidden");
let url = (new URL(`experiences-by-skill/${result.text}`, window.location.origin)).href;
result_item.find("#search_result_link").attr("href", url)
result_item.find("#search_result_text").text(result.text)
result_item.find("#search_result_category").text(result.category)
if (result.category === "user") {
result_item.find("#search_result_image").attr("src", `${static_url}${result.image}`)
result_item.find("#search_result_image").removeClass("hidden")
result_item.find("#search_result_link").attr("href", (new URL(`/profile/${result.username}`, window.location.origin)).href)
}
search_result_list.append(result_item);
}
if (search_result_list.children().length > 1) {
search_result_container.removeClass("hidden")
} else {
search_result_container.addClass("hidden")
}
}
// only show quick query results when search bar is focused.
search_query.focus(() => {
search_result_container.removeClass("opacity-60");
});
search_query.blur(() => {
search_result_container.addClass("opacity-60");
})
// debounce function is from debounce.js
search_query.keyup(debounce(quick_query))
})();
|
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})
|
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
//source path configuration
var vendors = 'node_modules/';
var resourcesAssets = 'resources/assets/';
var srcCss = resourcesAssets + 'css/';
var srcJs = resourcesAssets + 'js/';
var srcImg = resourcesAssets + 'img/';
//destination path configuration
var dest = 'public/';
var destFonts = dest + 'fonts/';
var destCss = dest + 'css/';
var destJs = dest + 'js/';
var destImg = dest + 'img/';
var destVendors = dest + 'vendors/';
var paths = {
'animate': vendors + 'animate.css/',
'fileUpload': vendors + 'blueimp-file-upload/',
'imgLoad': vendors + 'blueimp-load-image/',
'bootstrap': vendors + 'bootstrap/dist/',
'blueimpcanvas': vendors + 'blueimp-canvas-to-blob/',
'blueimptmpl': vendors + 'blueimp-tmpl/',
'touchspin': vendors + 'bootstrap-touchspin/dist/',
'wysihtml5': vendors + 'bootstrap3-wysihtml5-bower/dist/',
'daterangepicker': vendors + 'bootstrap-daterangepicker/',
'maxlength': vendors + 'bootstrap-maxlength/src/',
'multiselect': vendors + 'bootstrap-multiselect/dist/',
'switch': vendors + 'bootstrap-switch/dist/',
'chartjs': vendors + 'chart.js/dist/',
'lodash':vendors+'lodash/',
'fontawesome': vendors + 'font-awesome/',
'flotchart': vendors + 'flotchart/',
'flotspline': vendors + 'flot-spline/js/',
'flottooltip': vendors + 'jquery.flot.tooltip/js/',
'countUp': vendors + 'countup.js/',
'dataTables': vendors + 'datatables/media',
'fancybox': vendors + 'fancybox/dist/',
'gmaps': vendors + 'gmaps/',
'inputmask': vendors + 'jquery.inputmask/dist/',
'knob': vendors + 'jquery-knob/js/',
'select2': vendors + 'select2/dist/',
'selectize': vendors + 'selectize/dist/',
'datetimepicker':vendors +'eonasdan-bootstrap-datetimepicker/build/' ,
'datetimePicker':vendors +'bootstrap-datetime-picker/' ,
'fullcalendar': vendors + 'fullcalendar/dist/',
'summernote': srcCss + 'summernote/',
'icheck': vendors + 'icheck/',
'jasnyBootstrap': vendors + 'jasny-bootstrap/dist/',
'toastr': vendors + 'toastr/build/',
'bootstrapValidator': vendors + 'bootstrapvalidator/dist/',
'select2BootstrapTheme': vendors + 'select2-bootstrap-theme/dist/',
'c3': vendors + '/c3/',
'bootstrapcolorpicker':vendors+'bootstrap-colorpicker/dist/',
'moment': vendors + 'moment/',
'nestable': vendors + 'nestable/',
'trumbowyg': vendors + 'trumbowyg/dist/',
'transitionize': vendors + 'transitionize/dist',
'twtrBootstrapWizard': vendors + 'twitter-bootstrap-wizard/',
'underscore': vendors + 'underscore/',
'datatables': vendors + 'datatables.net/',
'datatablesbs': vendors + 'datatables.net-bs/',
'datatablesbs4': vendors + 'datatables.net-bs4/',
'datatablesbutton': vendors + 'datatables.net-buttons/',
'datatablesbsbuttons': vendors + 'datatables.net-buttons-bs/',
'datatablescolreorder': vendors + 'datatables.net-colreorder/',
'datatablescolreorderbs': vendors + 'datatables.net-colreorder-bs/',
'datatablesresponsive': vendors + 'datatables.net-responsive/',
'datatablesrowreorder': vendors + 'datatables.net-rowreorder/',
'datatablesrowreorderbs': vendors + 'datatables.net-rowreorder-bs/',
'datatablesscroll': vendors + 'datatables.net-scroller/',
'datatablesscrollbs': vendors + 'datatables.net-scroller-bs/',
'animatechart': vendors + 'animatechart/',
'datepicker': vendors + 'bootstrap-datepicker/dist/',
'jqvmap': vendors + 'jqvmap/',
'jquerymockjax': vendors + 'jquery-mockjax/dist/',
'pickadate': vendors + 'pickadate/lib/',
'hover': vendors + 'hover.css/css/',
'd3': vendors + 'd3/',
'wowjs': vendors + 'wowjs/dist/',
'metisMenu': vendors + 'metisMenu/dist/',
'nvd3': vendors + 'nvd3/build/',
'bootstrapfileinput': vendors + 'bootstrap-fileinput/',
'clockpicker': vendors + 'clockpicker/dist/',
'chartist': vendors + 'chartist/dist/',
'datedropper': vendors + 'datedropper/',
'timedropper': vendors + 'timedropper/',
'jquerydaterangepicker': vendors + 'jquery-date-range-picker/dist/',
'dropify': vendors + 'dropify/dist/',
'gridforms': vendors + 'gridforms/gridforms/',
'pnotify': vendors + 'pnotify/dist/',
'awesomebootstrapcheckbox': vendors + 'awesome-bootstrap-checkbox/',
'airdatepicker': vendors + 'air-datepicker/dist/',
'bootstrapcalendar': vendors + 'bootstrap-calendar/',
'jquerylabel': vendors + 'labelauty/source/',
'imagehover': vendors + 'imagehover/css/',
'amcharts': vendors + 'amcharts/dist/',
'bootstraptable': vendors + 'bootstrap-table/dist/',
"tableExportjqueryplugin": vendors + "tableexport.jquery.plugin/",
'markjs': vendors + 'mark.js/dist/',
'datatablesmarkjs': vendors + 'datatables.mark.js/dist/',
'gridstack': vendors + 'gridstack/dist/',
'laddabootstrap': vendors + 'ladda/dist/',
'sweetalert2': vendors + 'sweetalert2/dist/',
'insignia': vendors + 'insignia/dist/',
'leaflet': vendors + 'leaflet/dist/',
'simplelineicons': vendors + 'simple-line-icons/',
'weathericons': vendors + 'weather-icons/',
'themify': srcCss + 'themify-icons/',
'swiper': vendors + 'swiper/dist/',
'metrojs': vendors + 'metrojs/release/MetroJs.Full/',
'screenfull': vendors + 'screenfull/dist/',
'card': vendors + 'card/dist/',
'wenk': vendors + 'wenk/dist/',
'jstree': vendors + 'jstree/',
'jquerynicescroll':vendors + 'jquery.nicescroll/dist/'
};
//COPY CSS,JS AND IMAGES TO PUBLIC
mix.copy(srcCss, destCss);
mix.copy(resourcesAssets + 'img', destImg);
mix.copy(srcJs, destJs);
mix.copy(resourcesAssets + 'data', dest + 'chart_data');
// Copy fonts straight to public
mix.copy(paths.themify + 'fonts', destFonts);
mix.copy(paths.fontawesome + 'fonts', destFonts);
//
//bootstrap
mix.copy(paths.bootstrap + 'css/bootstrap.css', destCss);
mix.copy(paths.bootstrap + 'js/bootstrap.min.js', destJs);
//
// nestable
mix.copy(paths.nestable + 'jquery.nestable.js', destVendors + 'nestable/js');
//
//clock face
mix.copy(srcCss + 'clockface.css', destCss + 'clockface.css');
mix.copy(srcJs + 'clockface.js', destJs + 'clockface.js');
//wenk
mix.copy(paths.wenk + 'wenk.min.css', destVendors + 'wenk');
// card
mix.copy(paths.card + 'jquery.card.js', destVendors + 'card');
//screenfull js
mix.copy(paths.screenfull + 'screenfull.js', destVendors + 'screenfull/js');
// metrojs
mix.copy(paths.metrojs + 'MetroJs.min.js', destVendors + 'metrojs/js');
mix.copy(paths.metrojs + 'MetroJs.min.css', destVendors + 'metrojs/css');
//swiper
mix.copy(paths.swiper + 'css/swiper.min.css', destVendors + 'swiper/css');
mix.copy(paths.swiper + 'js/swiper.min.js', destVendors + 'swiper/js');
//
// weather icon
mix.copy(paths.weathericons + 'css/weather-icons.min.css', destVendors + 'weathericon/css');
mix.copy(paths.weathericons + 'font', destVendors + 'weathericon/font');
//chartist
mix.copy(paths.chartist + 'chartist.min.css', destVendors + 'chartist/css');
mix.copy(paths.chartist + 'chartist.min.js', destVendors + 'chartist/js');
//gridstack
mix.copy(paths.gridstack + 'gridstack.min.css', destVendors + 'gridstack/css');
mix.copy(paths.gridstack + 'gridstack.js', destVendors + 'gridstack/js');
// laddabootstrap
mix.copy(paths.laddabootstrap + 'ladda-themeless.min.css', destVendors + 'laddabootstrap/css');
mix.copy(paths.laddabootstrap + 'ladda.min.css', destVendors + 'laddabootstrap/css');
mix.copy(paths.laddabootstrap + 'spin.min.js', destVendors + 'laddabootstrap/js');
mix.copy(paths.laddabootstrap + 'ladda.min.js', destVendors + 'laddabootstrap/js');
//leaflet
mix.copy(paths.leaflet + 'leaflet.css', destVendors + 'leaflet/css');
mix.copy(paths.leaflet + 'images', destVendors + 'leaflet/css/images');
mix.copy(paths.leaflet + 'leaflet-src.js', destVendors + 'leaflet/js');
//lodash
mix.copy(paths.lodash + 'lodash.min.js', destVendors + 'lodash/js');
//css gram
mix.copy(srcCss + 'cssgram.min.css', destCss + 'cssgram/css');
// amcharts
mix.copy(paths.amcharts + 'amcharts/plugins/export/export.css', destVendors + 'amcharts/css');
mix.copy(paths.amcharts + 'amcharts/amcharts.js', destVendors + 'amcharts/js');
mix.copy(paths.amcharts + 'amcharts/serial.js', destVendors + 'amcharts/js');
mix.copy(paths.amcharts + 'amcharts/plugins/export/export.min.js', destVendors + 'amcharts/js');
mix.copy(paths.amcharts + 'amcharts/themes/light.js', destVendors + 'amcharts/js');
// insignia
mix.copy(paths.insignia + 'insignia.css', destVendors + 'insignia/css');
mix.copy(paths.insignia + 'insignia.js', destVendors + 'insignia/js');
//gridforms
mix.copy(paths.gridforms + 'gridforms.css', destVendors + 'gridforms/css');
mix.copy(paths.gridforms + 'gridforms.js', destVendors + 'gridforms/js');
//jquery date range picker
mix.copy(paths.jquerydaterangepicker + 'daterangepicker.min.css', destVendors + 'jquerydaterangepicker/css');
mix.copy(paths.jquerydaterangepicker + 'jquery.daterangepicker.min.js', destVendors + 'jquerydaterangepicker/js');
// pnotify css
mix.copy(paths.pnotify + 'pnotify.css', destVendors + 'pnotify/css');
mix.copy(paths.pnotify + 'pnotify.brighttheme.css', destVendors + 'pnotify/css');
mix.copy(paths.pnotify + 'pnotify.buttons.css', destVendors + 'pnotify/css');
mix.copy(paths.pnotify + 'pnotify.mobile.css', destVendors + 'pnotify/css');
mix.copy(paths.pnotify + 'pnotify.history.css', destVendors + 'pnotify/css');
// pnotify js
mix.copy(paths.pnotify + 'pnotify.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.animate.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.buttons.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.confirm.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.nonblock.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.mobile.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.desktop.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.history.js', destVendors + 'pnotify/js');
mix.copy(paths.pnotify + 'pnotify.callbacks.js', destVendors + 'pnotify/js');
//jquery-labelauty:8080/#/
mix.copy(paths.jquerylabel + 'jquery-labelauty.js', destVendors + 'jquerylabel/js');
mix.copy(paths.jquerylabel + 'jquery-labelauty.css', destVendors + 'jquerylabel/css');
mix.copy(paths.jquerylabel + 'images', destVendors + 'jquerylabel/css/images');
//dropify
mix.copy(paths.dropify + 'css/dropify.css', destVendors + 'dropify/css');
mix.copy(paths.dropify + 'js/dropify.js', destVendors + 'dropify/js');
mix.copy(paths.dropify + 'fonts', destVendors + 'dropify/fonts');
// Sweet Alert
mix.copy(paths.sweetalert2 + 'sweetalert2.min.css', destVendors + 'sweetalert2/css');
mix.copy(paths.sweetalert2 + 'sweetalert2.min.js', destVendors + 'sweetalert2/js');
// toolbar
mix.copy(srcCss + 'jquery.toolbar.css', destCss + 'toolbar/css');
mix.copy(srcJs + 'jquery.toolbar.min.js', destJs + 'toolbar/js');
// air datepicker
mix.copy(paths.airdatepicker + 'css/datepicker.min.css', destVendors + 'airdatepicker/css');
mix.copy(paths.airdatepicker + 'js/datepicker.min.js', destVendors + 'airdatepicker/js');
mix.copy(paths.airdatepicker + 'js/i18n/datepicker.en.js', destVendors + 'airdatepicker/js');
// selectric
mix.copy(srcCss + 'selectric.css', destCss + 'selectric/css');
mix.copy(srcJs + 'jquery.selectric.min.js', destJs + 'selectric/js');
// awesomebootstrapcheckbox
mix.copy(paths.awesomebootstrapcheckbox + 'awesome-bootstrap-checkbox.css', destVendors + 'awesomebootstrapcheckbox/css');
// datedropper
mix.copy(paths.datedropper + 'datedropper.css', destVendors + 'datedropper');
mix.copy(paths.datedropper + 'datedropper.js', destVendors + 'datedropper');
mix.copy(paths.datedropper + 'dd-icon', destVendors + 'datedropper/dd-icon');
// timedropper
mix.copy(paths.timedropper + 'timedropper.css', destVendors + 'timedropper/css');
mix.copy(paths.timedropper + 'timedropper.js', destVendors + 'timedropper/js');
//imagehover
mix.copy(srcCss + 'imagehover.min.css', destCss + 'imagehover/css');
//mark.js
mix.copy(paths.markjs + 'jquery.mark.js', destVendors + 'markjs/');
//datatables.mark.js
mix.copy(paths.datatablesmarkjs + 'datatables.mark.min.js', destVendors + 'datatablesmark.js/js');
mix.copy(paths.datatablesmarkjs + 'datatables.mark.min.css', destVendors + 'datatablesmark.js/css');
// //nvd3
mix.copy(paths.nvd3 + 'nv.d3.min.css', destVendors + 'nvd3/css');
mix.copy(paths.nvd3 + 'nv.d3.min.js', destVendors + 'nvd3/js');
//
//pretty Checkable
mix.copy(srcCss + 'prettyCheckable.css', destCss + 'prettycheckable/css');
mix.copy(srcJs + 'prettyCheckable.min.js', destJs + 'prettycheckable/js');
mix.copy(srcImg + 'sprites-sfa68604977.png', destCss + 'prettycheckable/img');
// bootstrap-calendar
mix.copy(paths.bootstrapcalendar + 'css/calendar.min.css', destVendors + 'bootstrap-calendar/css');
mix.copy(paths.bootstrapcalendar + 'js/calendar.min.js', destVendors + 'bootstrap-calendar/js');
mix.copy(paths.bootstrapcalendar + 'js/language', destVendors + 'bootstrap-calendar/js/language');
mix.copy(paths.bootstrapcalendar + 'tmpls', destVendors + 'bootstrap-calendar/tmpls');
mix.copy(paths.bootstrapcalendar + 'img', destVendors + 'bootstrap-calendar/img');
//bootstrap-table
mix.copy(paths.bootstraptable + 'bootstrap-table.min.css', destVendors + 'bootstrap-table/css');
mix.copy(paths.bootstraptable + 'bootstrap-table.min.js', destVendors + 'bootstrap-table/js');
// underscore
mix.copy(paths.underscore + 'underscore-min.js', destVendors + 'underscore/js');
//clockpicker
mix.copy(paths.clockpicker + 'bootstrap-clockpicker.min.css', destVendors + 'clockpicker/css');
mix.copy(paths.clockpicker + 'bootstrap-clockpicker.min.js', destVendors + 'clockpicker/js');
// daterange picker
mix.copy(paths.daterangepicker + 'daterangepicker.js', destVendors + 'daterangepicker/js');
mix.copy(paths.daterangepicker + 'daterangepicker.css', destVendors + 'daterangepicker/css');
//fancybox
mix.copy(paths.fancybox + 'css/jquery.fancybox.css', destVendors + 'fancybox');
mix.copy(paths.fancybox + 'js/jquery.fancybox.pack.js', destVendors + 'fancybox');
mix.copy(paths.fancybox + 'js/jquery.fancybox.js', destVendors + 'fancybox');
mix.copy(paths.fancybox + 'img/fancybox_overlay.png', destVendors + 'img');
mix.copy(paths.fancybox + 'img/fancybox_loading.gif', destVendors + 'img');
mix.copy(paths.fancybox + 'img/fancybox_sprite.png', destVendors + 'img');
mix.copy(paths.fancybox + 'img/blank.gif', destVendors + 'img');
mix.copy(paths.fancybox + 'helpers/js/jquery.fancybox-buttons.js', destVendors + 'fancybox/helpers');
//jasny-bootstrap
mix.copy(paths.jasnyBootstrap + 'css/jasny-bootstrap.css', destVendors + 'jasny-bootstrap/css');
mix.copy(paths.jasnyBootstrap + 'js/jasny-bootstrap.js', destVendors + 'jasny-bootstrap/js');
// bootstrap3-wysihtml5-bower
mix.copy(paths.wysihtml5 + 'bootstrap3-wysihtml5.min.css', destVendors + 'bootstrap3-wysihtml5-bower/css');
mix.copy(paths.wysihtml5 + 'bootstrap3-wysihtml5.all.min.js', destVendors + 'bootstrap3-wysihtml5-bower/js');
mix.copy(paths.wysihtml5 + 'bootstrap3-wysihtml5.all.min.js', destVendors + 'bootstrap3-wysihtml5-bower/js');
mix.copy(paths.wysihtml5 + 'bootstrap3-wysihtml5.min.js', destVendors + 'bootstrap3-wysihtml5-bower/js');
// bootstrap-fileinput
mix.copy(paths.bootstrapfileinput + 'css/fileinput.min.css', destVendors + 'bootstrap-fileinput/css/');
mix.copy(paths.bootstrapfileinput + 'js/fileinput.min.js', destVendors + 'bootstrap-fileinput/js/');
mix.copy(paths.bootstrapfileinput + 'themes/fa/theme.js', destVendors + 'bootstrap-fileinput/js/');
mix.copy(paths.bootstrapfileinput + 'img/loading.gif', destVendors + 'bootstrap-fileinput/img');
// trumbowyg
mix.copy(paths.trumbowyg + 'ui/trumbowyg.min.css', destVendors + 'trumbowyg/ui');
mix.copy(paths.trumbowyg + 'trumbowyg.js', destVendors + 'trumbowyg/js');
mix.copy(paths.trumbowyg + 'ui/icons.svg', destVendors + 'ui');
// bootstrapvalidator
mix.copy(paths.bootstrapValidator + 'css/bootstrapValidator.min.css', destVendors + 'bootstrapvalidator/css');
mix.copy(paths.bootstrapValidator + 'js/bootstrapValidator.min.js', destVendors + 'bootstrapvalidator/js');
//select2
mix.copy(paths.select2 + 'css/select2.min.css', destVendors + 'select2/css');
mix.copy(paths.select2 + 'js/select2.js', destVendors + 'select2/js');
mix.copy(paths.select2BootstrapTheme + 'select2-bootstrap.css', destVendors + 'select2/css');
//selectize
mix.copy(paths.selectize + 'css/selectize.css', destVendors + 'selectize/css');
mix.copy(paths.selectize + 'css/selectize.bootstrap3.css', destVendors + 'selectize/css');
mix.copy(paths.selectize + 'js/selectize.min.js', destVendors + 'selectize/js');
mix.copy(paths.selectize + 'js/standalone/selectize.min.js', destVendors + 'selectize/js/standalone');
//icheck
mix.copy(paths.icheck + 'icheck.js', destVendors + 'iCheck/js');
mix.copy(paths.icheck + 'skins/', destVendors + 'iCheck/css');
//hover
mix.copy(paths.hover + 'hover-min.css', destVendors + 'hover/css');
// countUp js
mix.copy(paths.countUp + 'countUp.js', destVendors + 'countUp.js/js');
// moment
mix.copy(paths.moment + 'min/moment.min.js', destVendors + 'moment/js');
// bootstrap color picker
mix.copy(paths.bootstrapcolorpicker + 'css/bootstrap-colorpicker.min.css', destVendors + 'colorpicker/css');
mix.copy(paths.bootstrapcolorpicker + 'js/bootstrap-colorpicker.min.js', destVendors + 'colorpicker/js');
// toastr
mix.copy(paths.toastr + 'toastr.min.css', destVendors + 'toastr/css');
mix.copy(paths.toastr + 'toastr.min.js', destVendors + 'toastr/js');
// bootstrap touchspin
mix.copy(paths.touchspin + 'jquery.bootstrap-touchspin.css', destVendors + 'bootstrap-touchspin/css');
mix.copy(paths.touchspin + 'jquery.bootstrap-touchspin.js', destVendors + 'bootstrap-touchspin/js');
// bootstrap multiselect
mix.copy(paths.multiselect + 'css/bootstrap-multiselect.css', destVendors + 'bootstrap-multiselect/css');
mix.copy(paths.multiselect + 'js/bootstrap-multiselect.js', destVendors + 'bootstrap-multiselect/js');
// // bootstrap switch
mix.copy(paths.switch + 'css/bootstrap3/bootstrap-switch.min.css', destVendors + 'bootstrap-switch/css');
mix.copy(paths.switch + 'js/bootstrap-switch.min.js', destVendors + 'bootstrap-switch/js');
//
// animate
mix.copy(paths.animate + 'animate.min.css', destVendors + 'animate');
// knob
mix.copy(paths.knob + 'jquery.knob.js', destVendors + 'jquery-knob/js');
// datatables
mix.copy(paths.datatables + 'js/jquery.dataTables.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbs + 'js/dataTables.bootstrap.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbs + 'css/dataTables.bootstrap.css', destVendors + 'datatables/css');
mix.copy(paths.datatablesbs4 + 'js/dataTables.bootstrap4.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbs4 + 'css/dataTables.bootstrap4.css', destVendors + 'datatables/css');
mix.copy(paths.datatablesbutton + 'js/buttons.print.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbutton + 'js/dataTables.buttons.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbsbuttons + 'css/buttons.bootstrap.css', destVendors + 'datatables/css');
mix.copy(paths.datatablesbsbuttons + 'js/buttons.bootstrap.js', destVendors + 'datatables/js');
mix.copy(paths.datatablescolreorder + 'js/dataTables.colReorder.js', destVendors + 'datatables/js');
mix.copy(paths.datatablescolreorderbs + 'css/colReorder.bootstrap.css', destVendors + 'datatables/css');
mix.copy(paths.datatablesresponsive + 'js/dataTables.responsive.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesrowreorder + 'js/dataTables.rowReorder.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbutton + 'js/buttons.html5.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbutton + 'js/buttons.colVis.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesbutton + 'js/buttons.print.min.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesrowreorderbs + 'css/rowReorder.bootstrap.css', destVendors + 'datatables/css');
mix.copy(paths.datatablesscroll + 'js/dataTables.scroller.js', destVendors + 'datatables/js');
mix.copy(paths.datatablesscrollbs + 'css/scroller.bootstrap.css', destVendors + 'datatables/css');
// flot charts
mix.copy(srcJs + 'jquery.flot.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.stack.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.resize.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.time.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.categories.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.pie.js', destJs + 'flot/js');
mix.copy(srcJs + 'jquery.flot.spline.min.js', destJs + 'flotspline/js');
mix.copy(srcJs + 'jquery.flot.tooltip.js', destJs + 'flottooltip/js');
// Chart.js
mix.copy(paths.chartjs + 'Chart.js', destVendors + 'chartjs/js');
// fullcalendar
mix.copy(paths.fullcalendar + 'fullcalendar.css', destVendors + 'fullcalendar/css');
mix.copy(paths.fullcalendar + 'fullcalendar.print.css', destVendors + 'fullcalendar/css');
mix.copy(paths.fullcalendar + 'fullcalendar.min.js', destVendors + 'fullcalendar/js');
// // bootstrap-datepicker
mix.copy(paths.datepicker + 'js/bootstrap-datepicker.js', destVendors + 'bootstrap-datepicker/js');
mix.copy(paths.datepicker + 'locales', destVendors + 'bootstrap-datepicker/locales');
mix.copy(paths.datepicker + 'css/bootstrap-datepicker.css', destVendors + 'bootstrap-datepicker/css');
//
// gmaps
mix.copy(paths.gmaps + 'gmaps.min.js', destVendors + 'gmaps/js');
//jvector map
mix.copy(paths.jqvmap + 'dist/jquery.vmap.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/jqvmap.css', destVendors + 'jqvmap/css');
mix.copy(paths.jqvmap + 'dist/maps/jquery.vmap.world.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/jquery.vmap.usa.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/jquery.vmap.europe.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/jquery.vmap.germany.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/jquery.vmap.russia.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/continents/jquery.vmap.asia.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/continents/jquery.vmap.north-america.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/continents/jquery.vmap.south-america.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'dist/maps/continents/jquery.vmap.australia.js', destVendors + 'jqvmap/js');
mix.copy(paths.jqvmap + 'examples/js/jquery.vmap.sampledata.js', destVendors + 'jqvmap/js');
//c3 charts
mix.copy(paths.c3 + 'c3.min.css', destVendors + 'c3');
mix.copy(paths.c3 + 'c3.min.js', destVendors + 'c3');
mix.copy(paths.d3 + 'd3.min.js', destVendors + 'd3');
//jstree
mix.copy(paths.jstree + 'src/themes/default/style.css', destVendors + 'jstree/css');
mix.copy(paths.jstree + 'src/themes/default/32px.png', destVendors + 'jstree/css');
mix.copy(paths.jstree + 'src/themes/default/40px.png', destVendors + 'jstree/css');
mix.copy(paths.jstree + 'src/themes/default/throbber.gif', destVendors + 'jstree/css');
mix.copy(paths.jstree + 'dist/jstree.min.js', destVendors + 'jstree/js');
mix.copy(paths.jstree + 'src/vakata-jstree.js', destVendors + 'jstree/js');
// bootstrap-maxlength
mix.copy(paths.maxlength + 'bootstrap-maxlength.js', destVendors + 'bootstrap-maxlength/js');
//jquery input-mask
mix.copy(paths.inputmask, destVendors + 'inputmask');
//tableExport.jquery.plugin
mix.copy(paths.tableExportjqueryplugin + 'tableExport.min.js', destVendors + 'tableExportjqueryplugin/');
//simple-line-icons
mix.copy(paths.simplelineicons + 'css/simple-line-icons.css', destVendors + 'simple-line-icons/css/simple-line-icons.css');
mix.copy(paths.simplelineicons + 'fonts', destVendors + 'simple-line-icons/fonts');
//form wizard page
mix.copy(paths.twtrBootstrapWizard + 'jquery.bootstrap.wizard.js', destVendors + 'bootstrapwizard/js');
mix.copy(paths.twtrBootstrapWizard + 'bootstrap/js/bootstrap.min.js', destVendors + 'bootstrapwizard/js');
// // jquery.nicescroll
mix.copy(paths.jquerynicescroll + 'jquery.nicescroll.min.js', destVendors + 'jquerynicescroll');
// wow
mix.copy(paths.wowjs + 'wow.min.js', destVendors + 'wowjs/js');
//sass compilation
mix.copy(resourcesAssets + 'sass/bootstrap/app.scss', 'public/css/app.css');
/* custom css and js for dark */
mix.copy(resourcesAssets + 'sass/custom.scss', 'public/css/custom.css');
/* custom css and js for light */
//mix.copy(resourcesAssets +'sass/custom_white.scss', 'public/css/custom.css');
//mix.copy(resourcesAssets + 'js/custom_white.js', destJs + 'custom_js');
// Custom Styles
mix.styles(
[
destCss + 'bootstrap.css',
destCss + 'font-awesome.min.css',
destCss + 'themify-icons/css/themify-icons.css',
destCss + 'custom_css/metisMenu.css',
destVendors + 'bootstrap-switch/css/bootstrap-switch.min.css'
], destCss + 'app.css');
// // all global js files into app.js
mix.scripts(
[
destJs + 'jquery.min.js',
destJs + 'popper.min.js',
destJs + 'jquery.ui.min.js',
destJs + 'bootstrap.min.js',
destJs + 'custom_js/leftmenu.js',
destVendors + 'jquerynicescroll/jquery.nicescroll.min.js',
destJs + 'custom_js/rightside_bar.js',
// destJs + 'custom_js/custom_white.js', /* Add custom js for light */
destVendors + 'bootstrap-switch/js/bootstrap-switch.min.js'
], destJs + 'app.js');
//sass compilation
|
var searchData=
[
['literal_14852',['literal',['../structglm_1_1detail_1_1literal.html',1,'glm::detail']]],
['literal_3c_20t_2c_20true_20_3e_14853',['literal< T, true >',['../structglm_1_1detail_1_1literal_3_01_t_00_01true_01_4.html',1,'glm::detail']]]
];
|
Validation.Rules.floor = function(field, params, database, alias, message)
{
return function(value, model, chain)
{
value = tryParseFloat( value );
if ( isNumber( value ) )
{
chain.update( Math.floor( value ) );
}
chain.next();
};
};
|
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import ArrowDown20 from '@carbon/icons-react/es/arrow--down/20';
import ArrowLeft20 from '@carbon/icons-react/es/arrow--left/20';
import ArrowRight20 from '@carbon/icons-react/es/arrow--right/20';
import Download20 from '@carbon/icons-react/es/download/20';
import Launch20 from '@carbon/icons-react/es/launch/20';
import { LightboxMediaViewer } from '../LightboxMediaViewer';
import PlayOutline20 from '@carbon/icons-react/es/play--outline/20';
import React from 'react';
import smoothScroll from '@carbon/ibmdotcom-utilities/es/utilities/smoothScroll/smoothScroll';
/**
* The logic behind the CTA component
*/
class CTALogic {
/**
* extract video id from props
*
* @param {string} style cta type ( external | jump | local)
* @param {object} otherProps cta type ( external | jump | local)
* @returns {*} behaviour object
*/
static getVideoId(style, otherProps) {
switch (style) {
case 'text':
return [{ src: otherProps.media.src }];
case 'card':
return [{ src: otherProps.media.src }];
case 'feature':
return [{ src: otherProps.card.cta.media.src }];
case 'button': {
const videoIds = otherProps.buttons
.map((button, key) => {
if (button.type === 'video' && button.media)
return { src: button.media.src, key };
})
.filter(id => id && id);
return videoIds;
}
default:
return [];
}
}
/**
* Gets the default aria label if translated label isn't provided.
*
* @param {string} type cta type { download | external | video }
* @returns {string} default type aria label
*/
static getDefaultLabel(type) {
switch (type) {
case 'download':
return ' - This link downloads a file';
case 'external':
return ' - This link opens in a new tab';
case 'video':
return ' - This link plays a video';
default:
return '';
}
}
/**
* jump to target element onClick
*
* @param {*} e event object
* @param {string} type cta type ( external | jump | local)
* @returns {*} behaviour object
*/
static jump(e, type) {
return type === 'jump' ? smoothScroll(e) : null;
}
/**
* sets target
*
* @param {string} type cta type ( external | jump | local)
* @returns {string} target value
*/
static external(type) {
return type === 'external' ? '_blank' : null;
}
/**
* sets icon based on link type
*
* @param {string} type cta type ( external | jump | local)
* @returns {*} cta type component
*/
static iconSelector(type, iconPlacement) {
switch (type) {
case 'download':
return Download20;
case 'external':
return Launch20;
case 'jump':
return ArrowDown20;
case 'video':
return PlayOutline20;
case 'default':
return null;
default:
return iconPlacement === 'left' ? ArrowLeft20 : ArrowRight20;
}
}
/**
* Opens the LightBoxMediaViewer component when CTA is clicked
*
* @param {boolean} renderLightBox determine whether to render the lightbox
* @param {Function} openLightBox func to toggle the lightbox
* @param {object} media media object to render within the lightbox
* @returns {*} lightbox component
*/
static launchLightBox(renderLightBox, openLightBox, media) {
return (
renderLightBox && (
<LightboxMediaViewer
media={media}
open={true}
onClose={() => openLightBox(false)}
/>
)
);
}
/**
*
* @param {*} e event
* @param {Function} openLightBox function to toggle lightbox
*
* @returns {*} set lightbox state
*/
static setLightBox(e, openLightBox) {
e.preventDefault();
return openLightBox(true);
}
}
export default CTALogic;
|
System.register("@progress/kendo-angular-tooltip",["@angular/common","tslib","@progress/kendo-angular-popup","@angular/core","rxjs/operators","@progress/kendo-angular-l10n","rxjs"],function(s){var r,p,a,l,u,c,h;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){r=e(t)},function(t){p=e(t)},function(t){a=e(t)},function(t){l=e(t)},function(t){u=e(t)},function(t){c=e(t)},function(t){h=e(t)}],execute:function(){function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o,n;n={},i.m=o=[function(t,e){t.exports=l},function(t,e){t.exports=p},function(t,e,o){"use strict";function n(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var o={},i={},n={};switch(t){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:e};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:e};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:e,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:e,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closest=function(t,e){if(t.closest)return t.closest(e);for(var o=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},i=t;i&&!n(i);){if(o(i,e))return i;i=i.parentNode}},e.contains=function(t,e){return!!t&&!n(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,o){var i=t.getBoundingClientRect();return i[e]+i[o]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),d=o(2),r=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(t,e){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,n=i?"width":"height",r=i?"left":"top",s=i?"marginLeft":"marginTop",p=o.getBoundingClientRect()[n],a=d.getCenterOffset(this.anchor.nativeElement,r,n),l=d.getCenterOffset(this.content.nativeElement,r,n),u=Math.abs(l-a);if(1<u||0===u||0===Math.round(u)){var c=l-a+p/2;o.style[s]=-c+"px"}var h=this.calloutStyles(t,p,e);Object.keys(h).forEach(function(t){o.style[t]=h[t]})}},i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({template:'\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" title="Close"></a>\n </div>\n\n <div class="k-tooltip-content">\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n '}),i.__metadata("design:paramtypes",[n.ElementRef])],s));function s(t){this.content=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,o){var i={},n="top"===t||"bottom"===t;return o?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i}}e.TooltipContentComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0);e.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=i.__decorate([n.Injectable()],s);function s(){}e.TooltipSettings=r},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),a=o(11),l=o(10),r=o(5),s=o(4),p=o(3),u=o(2),c=o(9),h=(Object.defineProperty(d.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),d.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return e.showContent(e.anchor)},this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},d.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(t.getAttribute("title")||t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},d.prototype.toggle=function(t,e){var o=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),o!==t.nativeElement&&this.hide(),o===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},d.prototype.ngOnInit=function(){var o=this;void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties(),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(t){var e=t.rtl;return o.direction=e?"rtl":"ltr"})},d.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},d.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!u.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},d.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},d.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},d.prototype.bindContent=function(t,e){var o=this,i=t.instance;this.closeClickSubscription=i.close.subscribe(function(){o.hide()}),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},d.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},d.prototype.openPopup=function(t){var i=this,e=u.align(this.position,this.offset),o=e.anchorAlign,n=e.popupAlign,r=e.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:o,animate:!1,content:p.TooltipContentComponent,collision:u.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var s=this.popupRef.content.instance;s.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(t){var e=t.flip,o=!0===e.horizontal||!0===e.vertical;s.updateCalloutPosition(i.position,o)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var t=i.popupRef.popupElement;i.popupMouseOutSubscription=l.fromEvent(t,"mouseout").subscribe(function(t){return i.onMouseOut(t)})})},d.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},d.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=l.fromEvent(document,"click").pipe(a.filter(function(){return""!==e.filter})).subscribe(function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)}))},d.prototype.onMouseClick=function(t,e){var o=t.target,i=u.closest(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}e.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},d.prototype.onMouseOver=function(t){var e=u.closest(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},d.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,o=t.relatedTarget;o&&this.anchor&&u.contains(this.anchor.nativeElement,o)||o&&u.contains(e,o)||this.hide()}},d.prototype.verifyProperties=function(){if(n.isDevMode()){if(!u.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!u.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],d.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],d.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],d.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__param(5,n.Optional()),i.__param(6,n.Optional()),i.__param(6,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,c.LocalizationService,s.TooltipSettings,s.TooltipSettings])],d));function d(t,e,o,i,n,r,s){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=o,this.popupService=i,this.localizationService=n,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],this.direction=n.rtl?"rtl":"ltr",Object.assign(this,r,s),this.ngZone.runOutsideAngular(function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=l.fromEvent(t,"mouseover").pipe(a.filter(function(){return""!==p.filter})).subscribe(function(t){var e=u.closest(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})}),p.mouseOverSubscription=l.fromEvent(t,"mouseover").pipe(a.debounceTime(100),a.filter(function(){return""!==p.filter})).subscribe(function(t){return p.onMouseOver(t)}),p.mouseOutSubscription=l.fromEvent(t,"mouseout").pipe(a.debounceTime(100)).subscribe(function(t){return p.onMouseOut(t)})})}e.TooltipDirective=h},function(t,e){t.exports=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(1),n=o(0),r=o(7),s=o(6),p=o(5),a=o(3),l=[s.TooltipDirective,a.TooltipContentComponent],u=[p.PopupModule],c=i.__decorate([n.NgModule({declarations:[l],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(u),exports:[l]})],h);function h(){}e.TooltipModule=c},function(t,e){t.exports=c},function(t,e){t.exports=h},function(t,e){t.exports=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(6);e.TooltipDirective=i.TooltipDirective;var n=o(8);e.TooltipModule=n.TooltipModule;var r=o(4);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS,function(t){for(var e in t)s(e,t[e])}(e)}],i.c=n,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=12)}}});
|
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
|
import { __extends } from "tslib";
import { ListParallelDataRequest, ListParallelDataResponse } from "../models/models_0";
import { deserializeAws_json1_1ListParallelDataCommand, serializeAws_json1_1ListParallelDataCommand, } from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { Command as $Command } from "@aws-sdk/smithy-client";
/**
* <p>Provides a list of your parallel data resources in Amazon Translate.</p>
*/
var ListParallelDataCommand = /** @class */ (function (_super) {
__extends(ListParallelDataCommand, _super);
// Start section: command_properties
// End section: command_properties
function ListParallelDataCommand(input) {
var _this =
// Start section: command_constructor
_super.call(this) || this;
_this.input = input;
return _this;
// End section: command_constructor
}
/**
* @internal
*/
ListParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
var stack = clientStack.concat(this.middlewareStack);
var logger = configuration.logger;
var clientName = "TranslateClient";
var commandName = "ListParallelDataCommand";
var handlerExecutionContext = {
logger: logger,
clientName: clientName,
commandName: commandName,
inputFilterSensitiveLog: ListParallelDataRequest.filterSensitiveLog,
outputFilterSensitiveLog: ListParallelDataResponse.filterSensitiveLog,
};
var requestHandler = configuration.requestHandler;
return stack.resolve(function (request) {
return requestHandler.handle(request.request, options || {});
}, handlerExecutionContext);
};
ListParallelDataCommand.prototype.serialize = function (input, context) {
return serializeAws_json1_1ListParallelDataCommand(input, context);
};
ListParallelDataCommand.prototype.deserialize = function (output, context) {
return deserializeAws_json1_1ListParallelDataCommand(output, context);
};
return ListParallelDataCommand;
}($Command));
export { ListParallelDataCommand };
//# sourceMappingURL=ListParallelDataCommand.js.map
|
import expect from 'expect'
import { assign, noop } from 'lodash'
import { GraphQLNonNull, GraphQLEnumType } from 'graphql'
import { TestColumn, TestEnum } from '../helpers.js'
import getColumnType from '#/graphql/getColumnType.js'
describe('getColumnType', () => {
it('will get the correct GraphQL types', () => {
([
[20, 'BigInt'],
[23, 'Int'],
[21, 'Int'],
[16, 'Boolean'],
[18, 'String'],
[1043, 'String'],
[718, 'Circle'],
[1082, 'Date'],
[701, 'Float'],
[700, 'Float'],
[1186, 'Interval'],
[114, 'JSON'],
[3802, 'JSON'],
[600, 'Point'],
[25, 'String'],
[1083, 'String'],
[1114, 'Date'],
[2950, 'UUID'],
])
.forEach(([type, name]) => {
expect(getColumnType(new TestColumn({ type })).name).toEqual(name)
})
})
it('correctly formats non null types', () => {
const columnNotNull = new TestColumn({ type: 23, isNullable: false })
const columnNull = new TestColumn({ type: 23, isNullable: true })
const typeNotNull = getColumnType(columnNotNull)
const typeNull = getColumnType(columnNull)
expect(typeNotNull).toBeA(GraphQLNonNull)
expect(typeNotNull.ofType.name).toEqual('Int')
expect(typeNull.name).toEqual('Int')
})
it('will correctly detect arrays')
it('memoizes results', () => {
const column1 = new TestColumn({ isNullable: false })
const column2 = new TestColumn({ isNullable: false })
const type1a = getColumnType(column1)
const type2a = getColumnType(column2)
const type2b = getColumnType(column2)
const type1b = getColumnType(column1)
expect(type1a).toBe(type1b)
expect(type2a).toBe(type2b)
expect(type1a).toNotBe(type2a)
})
describe('enums', () => {
const getEnum = config => getColumnType(
new TestColumn({
name: 'test_column',
...config,
enum_: new TestEnum({
name: 'test_enum',
variants: [
'red',
'green',
'blue',
'purple',
'tomato',
'hello_world',
],
}),
})
)
it('will make a custom enum type', () => {
const enumType = getEnum()
expect(enumType).toBeA(GraphQLEnumType)
})
it('will pascal case name', () => {
const enumType = getEnum()
expect(enumType.name).toEqual('TestEnum')
})
it('will correctly format variants', () => {
const enumType = getEnum()
expect(enumType.getValues()).toEqual([
{ name: 'RED', value: 'red' },
{ name: 'GREEN', value: 'green' },
{ name: 'BLUE', value: 'blue' },
{ name: 'PURPLE', value: 'purple' },
{ name: 'TOMATO', value: 'tomato' },
{ name: 'HELLO_WORLD', value: 'hello_world' },
].map(variant => assign(variant, { description: noop(), deprecationReason: noop() })))
})
it('will detect not null enums', () => {
const enumType = getEnum({ isNullable: false })
expect(enumType).toBeA(GraphQLNonNull)
expect(enumType.ofType).toBeA(GraphQLEnumType)
expect(enumType.ofType.name).toEqual('TestEnum')
})
})
})
|
import {runFish} from "../common"
export function formatBuffer(buffer) {
console.log(buffer)
}
|
import React from 'react'
import {action} from 'part:@sanity/storybook'
import Switch from 'part:@sanity/components/toggles/switch'
import {boolean, text} from 'part:@sanity/storybook/addons/knobs'
import Sanity from 'part:@sanity/storybook/addons/sanity'
import ActivateOnFocus from 'part:@sanity/components/utilities/activate-on-focus'
export function ActivateOnFocusStory() {
return (
<Sanity part="part:@sanity/components/utilities/activate-on-focus" propTables={[Switch]}>
<div
style={{
height: '700px',
width: '500px',
border: '3px dotted #ccc',
position: 'relative',
padding: '20px'
}}
>
<ActivateOnFocus
onFocus={action('onFocus')}
onBlur={action('onBlur')}
message={text('message', '', 'props')}
enableBlur={boolean('enableBlur', false, 'props')}
>
<textarea rows="30">This should not be selected on first click</textarea>
</ActivateOnFocus>
</div>
</Sanity>
)
}
|
import Vue from 'vue';
import DeployKeysStore from '~/deploy_keys/store';
import key from '~/deploy_keys/components/key.vue';
describe('Deploy keys key', () => {
let vm;
const KeyComponent = Vue.extend(key);
const data = getJSONFixture('deploy_keys/keys.json');
const createComponent = (deployKey) => {
const store = new DeployKeysStore();
store.keys = data;
vm = new KeyComponent({
propsData: {
deployKey,
store,
},
}).$mount();
};
describe('enabled key', () => {
const deployKey = data.enabled_keys[0];
beforeEach((done) => {
createComponent(deployKey);
setTimeout(done);
});
it('renders the keys title', () => {
expect(
vm.$el.querySelector('.title').textContent.trim(),
).toContain('My title');
});
it('renders human friendly formatted created date', () => {
expect(
vm.$el.querySelector('.key-created-at').textContent.trim(),
).toBe(`created ${gl.utils.getTimeago().format(deployKey.created_at)}`);
});
it('shows remove button', () => {
expect(
vm.$el.querySelector('.btn').textContent.trim(),
).toBe('Remove');
});
it('shows write access text when key has write access', (done) => {
vm.deployKey.can_push = true;
Vue.nextTick(() => {
expect(
vm.$el.querySelector('.write-access-allowed'),
).not.toBeNull();
expect(
vm.$el.querySelector('.write-access-allowed').textContent.trim(),
).toBe('Write access allowed');
done();
});
});
});
describe('public keys', () => {
const deployKey = data.public_keys[0];
beforeEach((done) => {
createComponent(deployKey);
setTimeout(done);
});
it('shows enable button', () => {
expect(
vm.$el.querySelector('.btn').textContent.trim(),
).toBe('Enable');
});
it('shows disable button when key is enabled', (done) => {
vm.store.keys.enabled_keys.push(deployKey);
Vue.nextTick(() => {
expect(
vm.$el.querySelector('.btn').textContent.trim(),
).toBe('Disable');
done();
});
});
});
});
|
import { queryAuto, removeAuto, addAuto, updateAuto } from '@/services/api';
export default {
namespace: 'datalabel',
state: {
data: {
list: [],
pagination: {},
},
},
effects: {
*fetch({ payload }, { call, put }) {
const response = yield call(queryAuto, payload);
yield put({
type: 'save',
payload: response,
});
},
*add({ payload, callback }, { call, put }) {
const response = yield call(addAuto, payload);
yield put({
type: 'save',
payload: response,
});
if (callback) callback();
},
*remove({ payload, callback }, { call, put }) {
const response = yield call(removeAuto, payload);
yield put({
type: 'save',
payload: response,
});
if (callback) callback();
},
*update({ payload, callback }, { call, put }) {
const response = yield call(updateAuto, payload);
yield put({
type: 'save',
payload: response,
});
if (callback) callback();
},
},
reducers: {
save(state, action) {
return {
...state,
data: action.payload,
};
},
},
};
|
import request from '@/utils/request'
import download from '@/utils/download'
const baseURL = '/ecds-template'
export function getImageTemplate () {
return download({
url: baseURL + `/image/template`,
method: 'get',
responseType: 'blob'
})
}
export function generateImage (data) {
return download({
url: baseURL + `/image/genImage`,
method: 'post',
responseType: 'blob',
data
})
}
export function genStampedImage (data) {
return download({
url: baseURL + `/image/stampedImage`,
method: 'post',
responseType: 'blob',
data
})
}
export function getRemoteAddress (data) {
return request({
url: baseURL + `/image/getRemoteAddress`,
method: 'post',
data
})
}
export function getPDFAddress (data) {
return request({
url: baseURL + `/pdf/getRemoteAddress`,
method: 'post',
data
})
}
|
(function(){var zebkitEnvironment=function(){var pkg={},hostRe=/([a-zA-Z]+)\:\/\/([^/:]+)/,isFF=typeof navigator!=="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>=0;function $sleep(){var r=new XMLHttpRequest,t=(new Date).getTime().toString(),i=window.location.toString().lastIndexOf("?");r.open("GET",window.location+(i>0?"&":"?")+t,false);r.send(null)}function $Request(){this.responseText=this.statusText="";this.onreadystatechange=this.responseXml=null;this.readyState=this.status=0}$Request.prototype.open=function(method,url,async,user,password){var m=url.match(hostRe);if(location.scheme.toLowerCase()==="file:"||m!==null&&typeof m[2]!=="undefined"&&m[2].toLowerCase()===location.host.toLowerCase()){this._request=new XMLHttpRequest;this._xdomain=false;var $this=this;this._request.onreadystatechange=function(){$this.readyState=$this._request.readyState;if($this._request.readyState===4){$this.responseText=$this._request.responseText;$this.responseXml=$this._request.responseXml;$this.status=$this._request.status;$this.statusText=$this._request.statusText}if($this.onreadystatechange){$this.onreadystatechange()}};return this._request.open(method,url,async!==false,user,password)}else{this._xdomain=true;this._async=async===true;this._request=new XDomainRequest;return this._request.open(method,url)}};$Request.prototype.send=function(data){if(this._xdomain){var originalReq=this._request,$this=this;originalReq.ontimeout=originalReq.onprogress=function(){};originalReq.onerror=function(){$this.readyState=4;$this.status=404;if($this._async&&$this.onreadystatechange){$this.onreadystatechange()}};originalReq.onload=function(){$this.readyState=4;$this.status=200;if($this._async&&$this.onreadystatechange){$this.onreadystatechange(originalReq.responseText,originalReq)}};originalReq.timeout=0;if(this._async===false){originalReq.send(data);while(this.status===0){pkg.$sleep()}this.readyState=4;this.responseText=originalReq.responseText}else{setTimeout(function(){originalReq.send(data)},10)}}else{return this._request.send(data)}};$Request.prototype.abort=function(data){return this._request.abort()};$Request.prototype.setRequestHeader=function(name,value){if(this._xdomain){if(name==="Content-Type"){return}else{throw new Error("Method 'setRequestHeader' is not supported for "+name)}}else{this._request.setRequestHeader(name,value)}};$Request.prototype.getResponseHeader=function(name){if(this._xdomain){throw new Error("Method is not supported")}return this._request.getResponseHeader(name)};$Request.prototype.getAllResponseHeaders=function(){if(this._xdomain){throw new Error("Method is not supported")}return this._request.getAllResponseHeaders()};pkg.getHttpRequest=function(){if(typeof XMLHttpRequest!=="undefined"){var r=new XMLHttpRequest;if(isFF){r.__send=r.send;r.send=function(data){try{return this.__send(data)}catch(e){if(!e.message||e.message.toUpperCase().indexOf("NS_ERROR_FAILURE")<0){throw new Error(e.toString())}}}}return"withCredentials"in r?r:new $Request}throw new Error("Archaic browser detected")};pkg.parseXML=function(s){function rmws(node){if(node.childNodes!==null){for(var i=node.childNodes.length;i-- >0;){var child=node.childNodes[i];if(child.nodeType===3&&child.data.match(/^\s*$/)!==null){node.removeChild(child)}if(child.nodeType===1){rmws(child)}}}return node}if(typeof DOMParser!=="undefined"){return rmws((new DOMParser).parseFromString(s,"text/xml"))}else{for(var n in{"Microsoft.XMLDOM":0,"MSXML2.DOMDocument":1,"MSXML.DOMDocument":2}){var p=null;try{p=new ActiveXObject(n);p.async=false}catch(e){continue}if(p===null){throw new Error("XML parser is not available")}p.loadXML(s);return p}}throw new Error("No XML parser is available")};pkg.loadImage=function(ph,success,error){var img=null;if(ph instanceof Image){img=ph}else{img=new Image;img.crossOrigin="";img.crossOrigin="anonymous";img.src=ph}if(img.complete===true&&img.naturalWidth!==0){success.call(this,img)}else{var pErr=img.onerror,pLoad=img.onload,$this=this;img.onerror=function(e){img.onerror=null;try{if(typeof error!=="undefined"){error.call($this,img,new Error("Image '"+ph+"' cannot be loaded "+e))}}finally{if(typeof pErr==="function"){img.onerror=pErr;pErr.call(this,e)}}};img.onload=function(e){img.onload=null;try{success.call($this,img)}finally{if(typeof pLoad==="function"){img.onload=pLoad;pLoad.call(this,e)}}}}return img};pkg.parseJSON=JSON.parse;pkg.stringifyJSON=JSON.stringify;pkg.setInterval=function(cb,time){return window.setInterval(cb,time)};pkg.clearInterval=function(id){return window.clearInterval(id)};if(typeof window!=="undefined"){var $taskMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){return setTimeout(callback,35)};pkg.decodeURIComponent=window.decodeURIComponent;pkg.encodeURIComponent=window.encodeURIComponent}else{pkg.decodeURIComponent=function(s){return s};pkg.encodeURIComponent=function(s){return s}}pkg.animate=function(f){return $taskMethod.call(window,f)};function buildFontHelpers(){var e=document.getElementById("zebkit.fm");if(e===null){e=document.createElement("div");e.setAttribute("id","zebkit.fm");e.setAttribute("style","visibility:hidden;line-height:0;height:1px;vertical-align:baseline;position:fixed;");e.innerHTML="<span id='zebkit.fm.text' style='display:inline;vertical-align:baseline;'> </span>"+"<img id='zebkit.fm.image' style='width:1px;height:1px;display:inline;vertical-align:baseline;' width='1' height='1'/>";document.body.appendChild(e)}var $fmCanvas=document.createElement("canvas").getContext("2d"),$fmText=document.getElementById("zebkit.fm.text"),$fmImage=document.getElementById("zebkit.fm.image");$fmImage.onload=function(){};$fmImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII%3D";pkg.fontMeasure=$fmCanvas;pkg.fontStringWidth=function(font,str){if(str.length===0){return 0}else{if($fmCanvas.font!==font){$fmCanvas.font=font}return $fmCanvas.measureText(str).width+.5|0}};pkg.fontMetrics=function(font){if($fmText.style.font!==font){$fmText.style.font=font}var height=$fmText.offsetHeight;if(height===0){height=$fmText.offsetHeight}return{height:height,ascent:$fmImage.offsetTop-$fmText.offsetTop+1}}}if(typeof document!=="undefined"){document.addEventListener("DOMContentLoaded",buildFontHelpers)}return pkg};if(typeof module!=="undefined"&&typeof module.exports!=="undefined"){module.exports.zebkitEnvironment=zebkitEnvironment;if(typeof global!=="undefined"){global.zebkitEnvironment=zebkitEnvironment}}else{window.zebkitEnvironment=zebkitEnvironment}})();(function(){var zenv={},isInBrowser=typeof navigator!=="undefined",$global=typeof window!=="undefined"&&window!==null?window:typeof global!=="undefined"?global:this;if(typeof zebkitEnvironment==="function"){zenv=zebkitEnvironment()}else{if(typeof window!=="undefined"){zenv=window}}var $uriRE=/^(([a-zA-Z]+)\:\/\/([^\/:]+)?(\:[0-9]+)?(\/)?)?([^?]+)?(\?.+)?/;function URI(uri){if(arguments.length>1){if(arguments[0]!==null){this.scheme=arguments[0].toLowerCase()}if(arguments[1]!==null){this.host=arguments[1]}var ps=false;if(arguments.length>2){if(isNumber(arguments[2])){this.port=arguments[2]}else if(arguments[2]!==null){this.path=arguments[2];ps=true}}if(arguments.length>3){if(ps===true){this.qs=arguments[3]}else{this.path=arguments[3]}}if(arguments.length>4){this.qs=arguments[4]}}else if(uri instanceof URI){this.host=uri.host;this.path=uri.path;this.qs=uri.qs;this.port=uri.port;this.scheme=uri.scheme}else{var m=uri.match($uriRE);if(m===null){throw new Error("Invalid URI '"+uri+"'")}if(typeof m[1]!=="undefined"){this.scheme=m[2].toLowerCase();if(typeof m[3]==="undefined"){if(this.scheme!=="file"){throw new Error("Invalid host name : '"+url+"'")}}else{this.host=m[3]}if(typeof m[4]!=="undefined"){this.port=parseInt(m[4].substring(1),10)}}if(typeof m[6]!=="undefined"){this.path=m[6]}else if(typeof m[1]!=="undefined"){throw new Error("Invalid URL '"+url+"'")}if(typeof m[7]!=="undefined"&&m[7].length>1){this.qs=m[7].substring(1).trim()}}if(this.path!==null){this.path=this.path.replace(/\/\/*/g,"/");var l=this.path.length;if(l>1&&this.path[l-1]==="/"){this.path=this.path.substring(0,l-1)}if((this.host!==null||this.scheme!==null)&&this.path[0]!=="/"){this.path="/"+this.path}}}URI.prototype={scheme:null,host:null,port:-1,path:null,qs:null,toString:function(){return(this.scheme!==null?this.scheme+"://":"")+(this.host!==null?this.host:"")+(this.port!==-1?":"+this.port:"")+(this.path!==null?this.path:"")+(this.qs!==null?"?"+this.qs:"")},getParent:function(){if(this.path===null){return null}else{var i=this.path.lastIndexOf("/");return i<0||this.path==="/"?null:new zebkit.URI(this.scheme,this.host,this.port,this.path.substring(0,i),this.qs)}},appendQS:function(obj){if(obj!==null){if(this.qs===null){this.qs=""}if(this.qs.length>0){this.qs=this.qs+"&"+URI.toQS(obj)}else{this.qs=URI.toQS(obj)}}}};URI.isAbsolute=function(u){return u[0]==="/"||/^[a-zA-Z]+\:\/\//i.test(u)};URI.isURL=function(u){return/^[a-zA-Z]+\:\/\//i.test(u)};URI.parseQS=function(qs,decode){var mqs=qs.match(/[a-zA-Z0-9_.]+=[^?&=]+/g),parsedQS={};if(mqs!==null){for(var i=0;i<mqs.length;i++){var q=mqs[i].split("=");this.parsedQS[q[0].substring(1)]=decode===true?zebkit.environment.decodeURIComponent(q[1]):q[1]}}return parsedQS};URI.toQS=function(obj,encode){if(zebkit.isString(obj)||zebkit.isBoolean(obj)||zebkit.isNumber(obj)){return""+obj}var p=[];for(var k in obj){if(obj.hasOwnProperty(k)){p.push(k+"="+(encode===true?zebkit.environment.encodeURIComponent(obj[k].toString()):obj[k].toString()))}}return p.join("&")};URI.join=function(){var pu=new URI(arguments[0]);for(var i=1;i<arguments.length;i++){var p=arguments[i].toString().trim();if(p.length===0||URI.isAbsolute(p)){throw new Error("Absolute path '"+p+"' cannot be joined")}p=p.replace(/\/\/*/g,"/");if(p[p.length-1]==="/"){p=p.substring(0,p.length-1)}if(pu.path===null){pu.path=p;if((pu.host!==null||pu.scheme!==null)&&pu.path[0]!=="/"){pu.path="/"+pu.path}}else{pu.path=pu.path+"/"+p}}return pu.toString()};function DoIt(body,ignore){this.recover();if(arguments.length===1){if(zebkit.isBoolean(body)){this.$ignoreError=body;body=null}else{this.then(body)}}else if(arguments.length===2){this.$ignoreError=ignore;this.then(body)}}DoIt.prototype={recover:function(body){if(this.$error!==null){var err=this.$error;this.$error=null;this.$tasks=[];this.$results=[];this.$taskCounter=this.$level=this.$busy=0;if(arguments.length===1){body.call(this,err)}}},restart:function(){if(this.$error!==null){this.$error=null}this.$schedule();return this},then:function(body,completed){var level=this.$level;if(body instanceof DoIt){if(body.$error!==null){this.error(body.$error)}else{var $this=this;this.then(function(){var jn=$this.join();body.then(function(res){if(arguments.length>0){this.join.apply(this,arguments)}},function(){if($this.$error===null){jn.apply($this,arguments)}}).catch(function(e){$this.error(e)})})}return this}else{var task=function(){this.$busy=0;var pc=this.$taskCounter,args=null,r;if(this.$error===null){if(typeof this.$results[level]!=="undefined"){args=this.$results[level]}this.$taskCounter=0;this.$level=level+1;this.$results[level]=[];if(level>0){r=body.apply(this,args)}else{try{r=body.apply(this,args)}catch(e){this.error(e)}}if(this.$busy===0&&this.$error===null&&typeof r!=="undefined"){this.$results[level]=[r]}}if(level===0){try{this.$schedule()}catch(e){this.error(e)}}else{this.$schedule()}this.$level=level;this.$taskCounter=pc;if(typeof completed==="function"){if(level===0){try{if(args===null)completed.call(this);else completed.apply(this,args)}catch(e){this.error(e)}}else{if(args===null)completed.call(this);else completed.apply(this,args)}}if(args!==null)args.length=0};if(this.$error===null){if(level===0&&this.$busy===0){if(this.$results[level]!=null&&this.$results[level].length>0){task.apply(this,this.$results[level])}else{task.call(this)}}else{if(this.$level>0){this.$tasks.splice(this.$taskCounter++,0,task)}else{this.$tasks.push(task)}}}}if(this.$level===0){this.$schedule()}return this},$ignored:function(e){zebkit.dumpError(e)},error:function(e,pr){if(arguments.length===0){if(this.$error!==null){zebkit.dumpError(e)}}else{if(this.$error===null){if(this.$ignoreError){this.$ignored(e)}else{this.$taskCounter=this.$level=this.$busy=0;this.$error=e;this.$results=[]}this.$schedule()}else{if(arguments.length<2||pr===true){zebkit.dumpError(e)}}}return this},till:function(r){this.then(function(){var $this=this,jn=this.join(),res=arguments.length>0?Array.prototype.slice.call(arguments):[];r.then(function(){if($this.$error===null){if(res.length>0)jn.apply($this,res);else jn.call($this);if(arguments.length>0){this.join.apply(this,arguments)}}}).catch(function(e){$this.error(e)})});return this},join:function(){var level=this.$level===0?0:this.$level-1;if(arguments.length>0){this.$results[level]=[];for(var i=0;i<arguments.length;i++){this.$results[level][i]=arguments[i]}}else{var $this=this,index=this.$busy++;return function(){if($this.$results[level]==null){$this.$results[level]=[]}if($this.$busy>0){var i=0;if(arguments.length>0){$this.$results[level][index]=[];for(i=0;i<arguments.length;i++){$this.$results[level][index][i]=arguments[i]}}if(--$this.$busy===0){if($this.$results[level].length>0){var args=$this.$results[level],res=[];for(i=0;i<args.length;i++){Array.prototype.push.apply(res,args[i])}$this.$results[level]=res}$this.$schedule()}}}}},catch:function(body){var level=this.$level;var task=function(){this.$busy=0;var pc=this.$taskCounter;if(this.$error!==null){this.$taskCounter=0;this.$level=level+1;try{if(typeof body==="function"){body.call(this,this.$error)}else if(body===null){}else{zebkit.dumpError(this.$error)}}catch(e){this.$level=level;this.$taskCounter=pc;throw e}}if(level===0){try{this.$schedule()}catch(e){this.error(e)}}else{this.$schedule()}this.$level=level;this.$taskCounter=pc};if(this.$level>0){this.$tasks.splice(this.$taskCounter++,0,task)}else{this.$tasks.push(task)}if(this.$level===0){this.$schedule()}return this},throw:function(){return this.catch(function(e){throw e})},$schedule:function(){if(this.$tasks.length>0&&this.$busy===0){this.$tasks.shift().call(this)}},end:function(){this.recover()}};function isString(o){return typeof o!=="undefined"&&o!==null&&(typeof o==="string"||o.constructor===String)}function isNumber(o){return typeof o!=="undefined"&&o!==null&&(typeof o==="number"||o.constructor===Number)}function isBoolean(o){return typeof o!=="undefined"&&o!==null&&(typeof o==="boolean"||o.constructor===Boolean)}function lookupObjValue(obj,name){if(arguments.length===1){name=obj;obj=$global}if(typeof name==="undefined"||name.trim().length===0){throw new Error("Invalid field name: '"+name+"'")}var names=name.trim().split(".");for(var i=0;i<names.length;i++){obj=obj[names[i]];if(typeof obj==="undefined"||i+1===names.length&&obj===null){throw new Error("'"+name+"' value cannot be detected")}}return obj}function $ls(callback,all){for(var k in this){var v=this[k];if(this.hasOwnProperty(k)&&v instanceof Package===false){if(k[0]!=="$"&&k[0]!=="_"||all===true){if(callback.call(this,k,this[k])===true){return true}}}}return false}function $lsall(fn){return $ls.call(this,function(k,v){if(v!==null&&v.clazz===zebkit.Class){if(typeof v.$name==="undefined"){v.$name=fn+k;v.$pkg=lookupObjValue($global,fn.substring(0,fn.length-1))}return $lsall.call(v,v.$name+".")}})}function Package(name,parent){this.$url=null;this.$name=name;this.config={};this.$ready=new DoIt;this.$parent=arguments.length<2?null:parent;if(typeof __dirname!=="undefined"){this.$url=__dirname}else if(typeof document!=="undefined"){var s=document.getElementsByTagName("script"),ss=s[s.length-1].getAttribute("src"),i=ss===null?-1:ss.lastIndexOf("/"),a=document.createElement("a");a.href=i>0?ss.substring(0,i+1):document.location.toString();this.$url=a.href.toString()}}Package.prototype.fullname=function(){var n=[this.$name],p=this;while(p.$parent!==null){p=p.$parent;n.unshift(p.$name)}return n.join(".")};Package.prototype.cd=function(path){if(path[0]==="/"){path=path.substring(1)}var paths=path.split("/"),pk=this;for(var i=0;i<paths.length;i++){var pn=paths[i];if(pn===".."){pk=pk.$parent}else{pk=pk[pn]}if(typeof pk==="undefined"||pk===null){throw new Error("Package path '"+path+"' cannot be resolved")}}return pk};Package.prototype.packages=function(callback,recursively){for(var k in this){var v=this[k];if(k!=="$parent"&&this.hasOwnProperty(k)&&v instanceof Package){if(callback.call(this,k,v)===true||recursively===true&&v.packages(callback,recursively)===true){return true}}}return false};Package.prototype.ls=function(cb,all){return $ls.call(this,cb,all)};Package.prototype.import=function(){var code=[];if(arguments.length>0){for(var i=0;i<arguments.length;i++){var v=lookupObjValue(this,arguments[i]);if(v instanceof Package===false){throw new Error("Package '"+arguments[i]+" ' cannot be found")}code.push(v.import())}return code.length>0?code.join(";"):null}else{var fn=this.fullname();this.ls(function(k,v){code.push(k+"="+fn+"."+k)});return code.length>0?"var "+code.join(",")+";":null}};Package.prototype.require=function(){var pkgs=[],$this=this,fn=arguments[arguments.length-1];if(typeof fn!=="function"){throw new Error("Invalid callback function")}for(var i=0;isString(arguments[i])&&i<arguments.length;i++){var pkg=lookupObjValue(this,arguments[i]);if(pkg instanceof Package===false){throw new Error("Package '"+arguments[i]+"' cannot be found")}pkgs.push(pkg)}return this.then(function(){fn.apply($this,pkgs)})};var $textualFileExtensions=["txt","json","htm","html","md","properties","conf","xml"];Package.prototype.resources=function(){var args=Array.prototype.slice.call(arguments),$this=this,fn=args.pop();if(typeof fn!=="function"){throw new Error("Invalid callback function")}this.then(function(){for(var i=0;i<args.length;i++){(function(path,jn){var m=path.match(/^(\<[a-z]+\>\s*)?(.*)$/),type="img",p=m[2].trim();if(typeof m[1]!=="undefined"){type=m[1].trim().substring(1,m[1].length-1).trim()}else{var li=p.lastIndexOf(".");if(li>0){var ext=p.substring(li+1).toLowerCase();if($textualFileExtensions.indexOf(ext)>=0){type="txt"}}}if(type==="img"){zebkit.environment.loadImage(p,function(img){jn(img)},function(img,e){jn(img)})}else if(type==="txt"){var req=zebkit.environment.getHttpRequest();req.open("GET",p,true);req.onreadystatechange=function(){if(req.readyState===4){if(req.status>=400||req.status<100){console.log("HTTP error '"+req.statusText+"', code = "+req.status+" '"+path+"'");jn(null)}else{jn(req.responseText)}}};try{req.send(null)}catch(e){jn(null)}}else{console.log("Invalid path '"+path+"'");jn(null)}})(args[i],this.join())}}).then(function(){fn.apply($this,arguments)})};Package.prototype.then=function(f){this.$ready.then(f).catch(function(e){zebkit.dumpError(e);this.restart()});return this};Package.prototype.join=function(){return this.$ready.join.apply(this.$ready,arguments)};Package.prototype.package=function(name,callback){if(arguments.length===0){return this}var target=this;if(typeof arguments[0]!=="function"){if(typeof name==="undefined"||name===null){throw new Error("Null package name")}name=name.trim();if(name.match(/^[a-zA-Z_][a-zA-Z0-9_]+(\.[a-zA-Z_][a-zA-Z0-9_]+)*$/)===null){throw new Error("Invalid package name '"+name+"'")}var names=name.split(".");for(var i=0,k=names[0];i<names.length;i++,k=k+"."+names[i]){var n=names[i],p=target[n];if(typeof p==="undefined"){p=new Package(n,target);target[n]=p}else if(p instanceof Package===false){throw new Error("Requested package '"+name+"' conflicts with variable '"+n+"'")}target=p}}if(typeof arguments[arguments.length-1]==="function"){var f=arguments[arguments.length-1];this.then(function(){f.call(target,target,typeof zebkit!=="undefined"?zebkit.Class:null);$lsall.call(target,target.fullname()+".")})}return target};var zebkit=new Package("zebkit");zebkit.environment=zenv;if(typeof module!=="undefined"&&typeof module.exports!=="undefined"){module.exports=zebkit;if(typeof global!=="undefined"){global.zebkit=zebkit}}else{window.zebkit=zebkit}zebkit.package(function(pkg){var $$$=11,$caller=null;function ProxyMethod(name,f,clazz){if(typeof f.methodBody!=="undefined"){throw new Error("Proxy method '"+name+"' cannot be wrapped")}var a=function(){var cm=$caller;$caller=a;try{var r=f.apply(this,arguments);$caller=cm;return r}catch(e){$caller=cm;console.log(name+"("+arguments.length+") "+(e.stack?e.stack:e));throw e}};a.methodBody=f;a.methodName=name;a.boundTo=clazz;return a}function cpMethods(src,dest,clazz){var overriddenAbstractMethods=0;for(var name in src){if(name!==pkg.CNAME&&name!=="clazz"&&src.hasOwnProperty(name)){var method=src[name];if(typeof method==="function"&&method!==$toString){if(name==="$prototype"){method.call(dest,clazz)}else{if(typeof dest[name]!=="undefined"){if(method.$isAbstract===true){overriddenAbstractMethods++;continue}if(dest[name].boundTo===clazz){throw new Error("Method '"+name+"(...)'' bound to this class already exists")}}if(typeof method.methodBody!=="undefined"){dest[name]=ProxyMethod(name,method.methodBody,clazz)}else{dest[name]=ProxyMethod(name,method,clazz)}if(method.$isAbstract===true){dest[name].$isAbstract=true}}}}}return overriddenAbstractMethods}function $toString(){return this.$hash$}function make_template(instanceOf,templateConstructor,inheritanceList){templateConstructor.$hash$="$zEk$"+$$$++;templateConstructor.toString=$toString;templateConstructor.prototype.clazz=templateConstructor;templateConstructor.clazz=templateConstructor.constructor=instanceOf;templateConstructor.$parents={};templateConstructor.prototype.constructor=templateConstructor;if(arguments.length>2&&inheritanceList.length>0){for(var i=0;i<inheritanceList.length;i++){var toInherit=inheritanceList[i];if(typeof toInherit==="undefined"||toInherit===null||typeof toInherit!=="function"||typeof toInherit.$hash$==="undefined"){throw new ReferenceError("Invalid parent class or interface:"+toInherit)}if(typeof templateConstructor.$parents[toInherit.$hash$]!=="undefined"){throw Error("Duplicate toInherit class or interface: "+toInherit)}templateConstructor.$parents[toInherit.$hash$]=toInherit;for(var k in toInherit.$parents){if(typeof templateConstructor.$parents[k]!=="undefined"){throw Error("Duplicate inherited class or interface: "+k)}templateConstructor.$parents[k]=toInherit.$parents[k]}}}return templateConstructor}pkg.dumpError=function(e){if(typeof console!=="undefined"&&typeof console.log!=="undefined"){var msg="zebkit.err [";if(typeof Date!=="undefined"){var date=new Date;msg=msg+date.getDate()+"/"+(date.getMonth()+1)+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()}console.log(msg+"] : "+e);if(e===null||typeof e==="undefined"){console.log("Unknown error")}else{console.log(e.stack?e.stack:e)}}};pkg.URI=URI;pkg.CNAME="$";pkg.CDNAME="";pkg.$FN=isString.name!=="isString"?function(f){if(typeof f.$methodName==="undefined"){var mt=f.toString().match(/^function\s+([^\s(]+)/);f.$methodName=mt===null?pkg.CDNAME:typeof mt[1]==="undefined"?pkg.CDNAME:mt[1]}return f.$methodName}:function(f){return f.name};pkg.isIE=isInBrowser&&(Object.hasOwnProperty.call(window,"ActiveXObject")||!!window.ActiveXObject||window.navigator.userAgent.indexOf("Edge")>-1);pkg.isFF=isInBrowser&&window.mozInnerScreenX!==null;pkg.isMacOS=isInBrowser&&navigator.platform.toUpperCase().indexOf("MAC")!==-1;pkg.isString=isString;pkg.isNumber=isNumber;pkg.isBoolean=isBoolean;pkg.$global=$global;pkg.$Map=function(){var Map=function(){this.keys=[];this.values=[];this.size=0};Map.prototype={set:function(key,value){var i=this.keys.indexOf(key);if(i<0){this.keys.push(key);this.values.push(value);this.size++}else{this.values[i]=value}return this},delete:function(key){var i=this.keys.indexOf(key);if(i<0){return false}this.keys.splice(i,1);this.values.splice(i,1);this.size--;return true},get:function(key){var i=this.keys.indexOf(key);return i<0?undefined:this.values[i]},clear:function(){this.keys=[];this.keys.length=0;this.values=[];this.values.length=0;this.size=0},has:function(key){return this.keys.indexOf(key)>=0},forEach:function(callback,context){var $this=arguments.length<2?this:context;for(var i=0;i<this.size;i++){callback.call($this,this.values[i],this.keys[i],this)}}};return Map};if(typeof Map==="undefined"&&(typeof pkg.$global!=="undefined"||typeof pkg.$global.Map==="undefined")){pkg.$global.Map=pkg.$Map()}pkg.clone=function(obj,map){if(obj===null||typeof obj==="undefined"||obj.$notCloneable===true||(typeof obj==="string"||obj.constructor===String)||(typeof obj==="boolean"||obj.constructor===Boolean)||(typeof obj==="number"||obj.constructor===Number)){return obj}map=map||new Map;var t=map.get(obj);if(typeof t!=="undefined"){return t}if(typeof obj.$clone!=="undefined"){return obj.$clone(map)}if(Array.isArray(obj)){var naobj=[];map.set(obj,naobj);map[obj]=naobj;for(var i=0;i<obj.length;i++){naobj[i]=pkg.clone(obj[i],map)}return naobj}if(obj.clazz===pkg.Class){var clazz=pkg.Class(obj,[]);clazz.inheritProperties=true;return clazz}if(typeof obj==="function"||obj.constructor!==Object){return obj}var nobj={};map.set(obj,nobj);for(var k in obj){if(obj.hasOwnProperty(k)===true){nobj[k]=pkg.clone(obj[k],map)}}return nobj};pkg.newInstance=function(clazz,args){if(arguments.length>1&&args.length>0){var f=function(){};f.prototype=clazz.prototype;var o=new f;clazz.apply(o,args);return o}return new clazz};pkg.getPropertySetter=function(obj,name){var pi=obj.constructor.$propertyInfo,m=null;if(typeof pi!=="undefined"){if(typeof pi[name]==="undefined"){m=obj["set"+name[0].toUpperCase()+name.substring(1)];pi[name]=typeof m==="function"?m:null}return pi[name]}m=obj["set"+name[0].toUpperCase()+name.substring(1)];return typeof m==="function"?m:null};pkg.properties=function(target,p){for(var k in p){if(k!=="clazz"&&k[0]!=="$"&&p.hasOwnProperty(k)&&typeof p[k]!=="undefined"&&typeof p[k]!=="function"){if(k[0]==="-"){delete target[k.substring(1)]}else{var v=p[k],m=zebkit.getPropertySetter(target,k);if(v!==null&&typeof v.$new!=="undefined"){v=v.$new()}if(m===null){target[k]=v}else{if(Array.isArray(v))m.apply(target,v);else m.call(target,v)}}}}return target};function $make_proto(props,superProto){if(superProto===null){return function $prototype(clazz){for(var k in props){if(props.hasOwnProperty(k)){this[k]=props[k]}}}}else{return function $prototype(clazz){superProto.call(this,clazz);for(var k in props){if(props.hasOwnProperty(k)){this[k]=props[k]}}}}}pkg.Interface=make_template(null,function(){var $Interface=make_template(pkg.Interface,function(){if(typeof this==="undefined"||this.constructor!==$Interface){if(arguments.length!==1){throw new Error("Invalid number of arguments. Properties set is expected")}if(arguments[0].constructor!==Object){throw new Error("Invalid argument type. Properties set is expected")}var clone=$Interface.$clone();clone.prototype.$prototype=$make_proto(arguments[0],$Interface.prototype.$prototype);return clone}else{if(arguments.length>1){throw new Error("One or zero argument is expected")}return new(pkg.Class($Interface,arguments.length>0?arguments[0]:[]))}});if(arguments.length>1){throw new Error("Invalid number of arguments. List of methods or properties is expected")}$Interface.$abstractMethods=0;var arg=arguments.length===0?[]:arguments[0];if(arg.constructor===Object){arg=[$make_proto(arg,null)]}else if(Array.isArray(arg)===false){throw new Error("Invalid argument type. List of methods pr properties is expected")}if(arg.length>0){var proto=$Interface.prototype,isAbstract=false;for(var i=0;i<arg.length;i++){var method=arg[i];if(method==="abstract"){isAbstract=true}else{if(typeof method!=="function"){throw new Error("Method is expected instead of "+method)}var name=pkg.$FN(method);if(name===pkg.CDNAME){throw new Error("Constructor declaration is not allowed in interface")}if(typeof proto[name]!=="undefined"){throw new Error("Duplicated interface method '"+name+"(...)'")}if(name==="$clazz"){method.call($Interface,$Interface)}else if(isAbstract===true){(function(name){proto[name]=function(){throw new Error("Abstract method '"+name+"(...)' is not implemented")};proto[name].$isAbstract=true;$Interface.$abstractMethods++})(name)}else{proto[name]=method}}}}$Interface.$clone=function(){var clone=pkg.Interface(),k=null;for(k in this){if(this.hasOwnProperty(k)){clone[k]=pkg.clone(this[k])}}var proto=this.prototype;for(k in proto){if(k!=="clazz"&&proto.hasOwnProperty(k)===true){clone.prototype[k]=pkg.clone(proto[k])}}return clone};$Interface.clazz.$name="zebkit.Interface";return $Interface});var mixing=pkg.$mixing=function(clazz,methods){if(Array.isArray(methods)===false){throw new Error("Methods array is expected ("+methods+")")}var names={};for(var i=0;i<methods.length;i++){var method=methods[i],methodName=pkg.$FN(method);if(typeof method.methodBody!=="undefined"){throw new Error("Proxy method '"+methodName+"' cannot be mixed in a class")}if(methodName===pkg.CDNAME){methodName=pkg.CNAME}else if(methodName[0]==="$"){if(methodName==="$prototype"){method.call(clazz.prototype,clazz);if(clazz.prototype[pkg.CDNAME]){clazz.prototype[pkg.CNAME]=clazz.prototype[pkg.CDNAME];delete clazz.prototype[pkg.CDNAME]}continue}if(methodName==="$clazz"){method.call(clazz);continue}}if(names[methodName]===true){throw new Error("Duplicate declaration of '"+methodName+"(...)' method")}var existentMethod=clazz.prototype[methodName];if(typeof existentMethod!=="undefined"&&typeof existentMethod!=="function"){throw new Error("'"+methodName+"(...)' method clash with a field")}if(typeof existentMethod==="undefined"&&methodName===pkg.CNAME){clazz.prototype[methodName]=method}else{clazz.prototype[methodName]=ProxyMethod(methodName,method,clazz)}names[methodName]=true}};pkg.Class=make_template(null,function(){if(arguments.length===0){throw new Error("No class method list was found")}if(Array.isArray(arguments[arguments.length-1])===false){throw new Error("No class methods have been passed")}if(arguments.length>1&&typeof arguments[0]!=="function"){throw new ReferenceError("Invalid parent class or interface '"+arguments[0]+"'")}var classMethods=arguments[arguments.length-1],parentClass=null,toInherit=[];if(arguments.length>0&&(arguments[0]===null||arguments[0].clazz===pkg.Class)){parentClass=arguments[0]}for(var i=0;i<arguments.length-1;i++){toInherit[i]=arguments[i];if(parentClass===null||i>0){if(typeof toInherit[i]==="undefined"||toInherit[i]===null){throw new ReferenceError("Undefined inherited interface ["+i+"] ")}else if(toInherit[i].clazz!==pkg.Interface){throw new ReferenceError("Inherited interface is not an Interface ( ["+i+"] '"+toInherit[i]+"'')")}}}var classTemplate=make_template(pkg.Class,function(){if(classTemplate.$uniqueness===true){this.$hash$="$ZkIo"+$$$++}if(arguments.length>0){var a=arguments[arguments.length-1];if(Array.isArray(a)===true&&typeof a[0]==="function"){a=a[0];var args=[classTemplate],k=arguments.length-2;for(;k>=0&&arguments[k].clazz===pkg.Interface;k--){args.push(arguments[k])}args.push(arguments[arguments.length-1]);var cl=pkg.Class.apply(null,args),f=function(){};cl.$name=classTemplate.$name;f.prototype=cl.prototype;var o=new f;args=[];for(var i=0;i<k+1;i++){args[i]=arguments[i]}cl.apply(o,args);o.constructor=cl;return o}}if(typeof this.$!=="undefined"){return this.$.apply(this,arguments)}},toInherit);classTemplate.$propertyInfo={};classTemplate.$parent=parentClass;if(parentClass!==null){for(var k in parentClass.prototype){if(parentClass.prototype.hasOwnProperty(k)){var f=parentClass.prototype[k];classTemplate.prototype[k]=typeof f!=="undefined"&&f!==null&&f.hasOwnProperty("methodBody")?ProxyMethod(f.methodName,f.methodBody,f.boundTo):f}}}classTemplate.prototype.extend=function(){var clazz=this.clazz,l=arguments.length,f=arguments[l-1],hasArray=Array.isArray(f),i=0;if(this.$isExtended!==true){clazz=pkg.Class(clazz,[]);this.$isExtended=true;clazz.$name=this.clazz.$name;this.clazz=clazz}if(hasArray){var init=null;for(i=0;i<f.length;i++){var n=pkg.$FN(f[i]);if(n===pkg.CDNAME){init=f[i]}else{if(typeof this[n]!=="undefined"&&typeof this[n]!=="function"){throw new Error("Method '"+n+"' clash with a property")}this[n]=ProxyMethod(n,f[i],clazz)}}if(init!==null){init.call(this)}l--}for(i=0;i<arguments.length-(hasArray?1:0);i++){if(arguments[i].clazz!==pkg.Interface){throw new Error("Invalid argument "+arguments[i]+" Interface is expected.")}var I=arguments[i];if(typeof clazz.$parents[I.$hash$]!=="undefined"){throw new Error("Interface has been already inherited")}cpMethods(I.prototype,this,clazz);clazz.$parents[I.$hash$]=I}return this};classTemplate.prototype.$super=function(){if($caller!==null){for(var $s=$caller.boundTo.$parent;$s!==null;$s=$s.$parent){var m=$s.prototype[$caller.methodName];if(typeof m!=="undefined"){return m.apply(this,arguments)}}var cln=this.clazz&&this.clazz.$name?this.clazz.$name+".":"";throw new ReferenceError("Method '"+cln+($caller.methodName===pkg.CNAME?"constructor":$caller.methodName)+"("+arguments.length+")"+"' not found")}else{throw new Error("$super is called outside of class context")}};classTemplate.prototype.$supera=function(args){if($caller!==null){for(var $s=$caller.boundTo.$parent;$s!==null;$s=$s.$parent){var m=$s.prototype[$caller.methodName];if(typeof m!=="undefined"){return m.apply(this,args)}}var cln=this.clazz&&this.clazz.$name?this.clazz.$name+".":"";throw new ReferenceError("Method '"+cln+($caller.methodName===pkg.CNAME?"constructor":$caller.methodName)+"("+arguments.length+")"+"' not found")}else{throw new Error("$super is called outside of class context")}};classTemplate.prototype.$$super=function(){if($caller!==null){for(var $s=$caller.boundTo.$parent;$s!==null;$s=$s.$parent){var m=$s.prototype[$caller.methodName];if(typeof m!=="undefined"){return m.apply(this,arguments)}}}else{throw new Error("$super is called outside of class context")}};classTemplate.prototype.$getSuper=function(name){if($caller!==null){for(var $s=$caller.boundTo.$parent;$s!==null;$s=$s.$parent){var m=$s.prototype[name];if(typeof m==="function"){return m}}return null}throw new Error("$super is called outside of class context")};classTemplate.prototype.$genHash=function(){if(typeof this.$hash$==="undefined"){this.$hash$="$ZeInGen"+$$$++}return this.$hash$};classTemplate.prototype.$clone=function(map){map=map||new Map;var f=function(){};f.prototype=this.constructor.prototype;var nobj=new f;map.set(this,nobj);for(var k in this){if(this.hasOwnProperty(k)){var t=map.get(this[k]);if(t!==undefined){nobj[k]=t}else{nobj[k]=zebkit.clone(this[k],map)}}}map.clear();nobj.constructor=this.constructor;if(typeof nobj.$hash$!=="undefined"){nobj.$hash$="$zObj_"+$$$++}nobj.clazz=this.clazz;return nobj};classTemplate.prototype.clazz=classTemplate;if(typeof classTemplate.prototype.properties==="undefined"){classTemplate.prototype.properties=function(p){return pkg.properties(this,p)}}if(toInherit.length>0){for(var i=toInherit[0].clazz===pkg.Interface?0:1;i<toInherit.length;i++){var ic=toInherit[i];cpMethods(ic.prototype,classTemplate.prototype,classTemplate);for(var sk in ic){if(sk[0]!=="$"&&ic.hasOwnProperty(sk)===true&&classTemplate.hasOwnProperty(sk)===false){classTemplate[sk]=pkg.clone(ic[sk])}}}}mixing(classTemplate,classMethods);classTemplate.$uniqueness=false;if(parentClass!==null){for(var key in parentClass){if(key[0]!=="$"&&parentClass.hasOwnProperty(key)&&classTemplate.hasOwnProperty(key)===false){classTemplate[key]=pkg.clone(parentClass[key])}}if(parentClass.$uniqueness===true){classTemplate.hashable()}}classTemplate.hashable=function(){if(this.$uniqueness!==true){this.$uniqueness=true;this.prototype.toString=$toString}return this};classTemplate.hashless=function(){if(this.$uniqueness===true){this.$uniqueness=false;this.prototype.toString=Object.prototype.toString}return this};classTemplate.extend=function(){var methods=arguments[arguments.length-1],hasMethod=Array.isArray(methods);if(hasMethod&&this.$isExtended!==true){var A=this.$parent!==null?pkg.Class(this.$parent,[]):pkg.Class([]);for(var name in this.prototype){if(name!=="clazz"&&this.prototype.hasOwnProperty(name)){var f=this.prototype[name];if(typeof f==="function"){A.prototype[name]=typeof f.methodBody!=="undefined"?ProxyMethod(name,f.methodBody,f.boundTo):f;if(A.prototype[name].boundTo===this){A.prototype[name].boundTo=A;if(f.boundTo===this){f.boundTo=A}}}}}this.$parent=A;this.$isExtended=true}if(hasMethod){mixing(this,methods)}for(var i=0;i<arguments.length-(hasMethod?1:0);i++){var I=arguments[i];if(I===null||typeof I==="undefined"||I.clazz!==zebkit.Interface){throw new Error("Interface is expected")}if(typeof this.$parents[I.$hash$]!=="undefined"){throw new Error("Interface has been already inherited")}cpMethods(I.prototype,this.prototype,this);this.$parents[I.$hash$]=I}};classTemplate.isInherit=function(clazz){if(this!==clazz){if(clazz.clazz===this.clazz){for(var p=this.$parent;p!==null;p=p.$parent){if(p===clazz){return true}}}else{if(this.$parents[clazz.$hash$]===clazz){return true}}}return false};classTemplate.clazz.$name="zebkit.Class";if(toInherit.length>0){for(var i=0;i<toInherit.length;i++){if(typeof toInherit[i].inheritedWidth==="function"){toInherit[i].inheritedWidth(classTemplate)}}}return classTemplate});var $cachedO=pkg.$cachedO={},$cachedE=pkg.$cachedE=[];pkg.$cacheSize=7777;pkg.$cache=function(key){if(pkg.$global.hasOwnProperty(key)){return pkg.$global[key]}if($cachedO.hasOwnProperty(key)===true){var e=$cachedO[key];if(e.i<$cachedE.length-1){var pn=$cachedE[e.i+1];$cachedE[e.i]=pn;$cachedE[++e.i]=key;$cachedO[pn].i--}return e.o}var ctx=pkg.$global,i=0,j=0;for(;ctx!=null;){i=key.indexOf(".",j);if(i<0){ctx=ctx[key.substring(j,key.length)];break}ctx=ctx[key.substring(j,i)];j=i+1}if(ctx!=null){if($cachedE.length>=pkg.$cacheSize){var n=$cachedE[0];$cachedE[0]=key;$cachedO[key]={o:ctx,i:0};delete $cachedO[n]}else{$cachedO[key]={o:ctx,i:$cachedE.length};$cachedE[$cachedE.length]=key}return ctx}throw new Error("Reference '"+key+"' not found")};pkg.Class.forName=function(name){return pkg.$cache(name)};pkg.Class.newInstance=function(){return pkg.newInstance(this,arguments)};pkg.instanceOf=function(obj,clazz){if(clazz!==null&&typeof clazz!=="undefined"){if(obj===null||typeof obj==="undefined"){return false}else if(typeof obj.clazz==="undefined"){return obj instanceof clazz}else{return typeof obj.clazz!=="undefined"&&obj.clazz!==null&&(obj.clazz===clazz||obj.clazz.$parents.hasOwnProperty(clazz.$hash$))}}throw new Error("instanceOf(): null class")};pkg.Dummy=pkg.Class([]);pkg.DoIt=DoIt;pkg.EventProducer=pkg.Interface([function $prototype(){this.on=function(){var cb=arguments[arguments.length-1],pt=null,nm=null;if(cb===null||isString(cb)){throw new Error("Invalid event handler")}if(arguments.length===1){return this._.add(cb)}else if(arguments.length===2){if(arguments[0]===null){throw new Error("Invalid event or path")}else if(arguments[0][0]==="."||arguments[0][0]==="/"||arguments[0][0]==="#"){pt=arguments[0]}else{return this._.add(arguments[0],cb)}}else if(arguments.length===3){pt=arguments[1];nm=arguments[0];if(pt===null){return this._.add(nm,cb)}}this.byPath(pt,function(node){if(typeof node._!=="undefined"){if(nm!==null){if(typeof node._[nm]!=="undefined"){node._.add(nm,cb)}}else{node._.add(cb)}}return false});return cb};this.off=function(){var pt=null,fn=null,nm=null;if(arguments.length===0){return this._.remove()}else if(arguments.length===1){if(isString(arguments[0])&&(arguments[0][0]==="."||arguments[0][0]==="/"||arguments[0][0]==="#")){pt=arguments[0]}else{return this._.remove(arguments[0])}}else if(arguments.length===2){if(isString(arguments[1])){pt=arguments[1];nm=arguments[0]}else{if(isString(arguments[1])){nm=arguments[1]}else{fn=arguments[1]}if(arguments[0][0]==="."||arguments[0][0]==="/"||arguments[0][0]==="#"){pt=arguments[0]}else{throw new Error("Path is expected")}}}this.byPath(pt,function(node){if(typeof node._!=="undefined"){if(fn!==null){node._.remove(fn)}else if(nm!==null){if(typeof node._[nm]!=="undefined"){node._.remove(nm)}}else{node._.remove()}}return false})};this.fire=function(){var pt=null,args=null,nm=arguments[0];if(arguments.length>=0&&arguments.length<3){if(arguments.length===0){nm="fired"}if(this._.hasEvent(nm)===false){throw new Error("Listener doesn't '"+nm+"' support the event")}var fn=this._[nm];args=arguments.length===2?arguments[1]:this;return arguments.length===2&&Array.isArray(args)?fn.apply(this._,args):fn.call(this._,args)}else if(arguments.length===3){pt=arguments[1];args=arguments[2]}else{throw new Error("Invalid number of arguments")}this.byPath(pt,function(n){var ec=n._;if(typeof ec!=="undefined"&&n._.hasEvent(nm)){if(args!==null&&Array.isArray(args)){ec[nm].apply(ec,args)}else{ec[nm].call(ec,args)}}return false})}}])});if(isInBrowser){zebkit.then(function(){var jn=this.join(),$interval=zenv.setInterval(function(){if(document.readyState==="complete"){zenv.clearInterval($interval);jn(zebkit)}},100)})}return zebkit})();zebkit.package("util",function(pkg,Class){pkg.$validateValue=function(value){if(arguments.length<2){throw new Error("Invalid arguments list. List of valid values is expected")}for(var i=1;i<arguments.length;i++){if(arguments[i]===value){return value}}var values=Array.prototype.slice.call(arguments).slice(1);throw new Error("Invalid value '"+value+"',the following values are expected: "+values.join(","))};pkg.format=function(s,obj,ph){if(arguments.length<3)ph="";var rg=/\$\{([0-9]+\s*,)?(.?,)?([a-zA-Z_][a-zA-Z0-9_]*)\}/g,r=[],i=0,j=0,m=null;while((m=rg.exec(s))!==null){r[i++]=s.substring(j,m.index);j=m.index+m[0].length;var v=obj[m[3]],mn="get"+m[3][0].toUpperCase()+m[3].substring(1),f=obj[mn];if(typeof f==="function"){v=f.call(obj)}if(typeof m[1]!=="undefined"){var ml=parseInt(m[1].substring(0,m[1].length-1).trim()),ph2=typeof m[2]!=="undefined"?m[2].substring(0,m[2].length-1):ph;if(v===null||typeof v==="undefined"){ph2=ph;v=""}else{v=""+v}for(var k=v.length;k<ml;k++){v=ph2+v}}if(v===null||typeof v==="undefined")v=ph;r[i++]=v}if(i>0){if(j<s.length){r[i++]=s.substring(j)}return pkg.format(r.join(""),obj,ph)}return s};pkg.image=function(ph,fireErr){if(arguments.length<2){fireErr=false}var d=new zebkit.DoIt,jn=d.join();zebkit.environment.loadImage(ph,function(img){jn(img)},function(img,e){if(fireErr===true){d.error(e)}else{jn(img)}});return d};pkg.Event=Class([function $prototype(){this.source=null}]);var PATH_RE=/^[.]?(\/[\/]?)([^\[\/]+)\s*(\[\s*\@([a-zA-Z_][a-zA-Z0-9_\.]*)\s*(\=\s*[0-9]+|\=\s*true|\=\s*false|\=\s*null|\=\s*\'[^']*\')?\s*\])?/;pkg.findInTree=function(root,path,cb,eq,m){if(root===null||typeof root==="undefined"){throw new Error("Null tree root")}if(arguments.length<5){path=path.trim();if(path[0]==="#"){path="//*[@id='"+path.substring(1).trim()+"']"}else if(path==="."){return cb(root)}else if(path[0]==="."&&path[1]==="/"){root={kids:[root]};path=path.substring(1)}m=null}if(eq===null||arguments.length<4){eq=function(n,fragment){return n.path===fragment}}if(typeof root.kids!=="undefined"&&root.kids!==null&&root.kids.length>0){if(m===null||m[0].length!==m.input.length){m=path.match(PATH_RE);if(m===null){throw new Error("Cannot resolve path '"+path+"'")}if(m[0].length!==path.length){path=path.substring(m[0].length)}if(typeof m[3]!=="undefined"&&typeof m[5]!=="undefined"){m[5]=m[5].substring(1).trim();if(m[5][0]==="'"){m[5]=m[5].substring(1,m[5].length-1)}else if(m[5]==="true"){m[5]=true}else if(m[5]==="false"){m[5]=false}else if(m[5]==="null"){m[5]=null}else{var vv=parseInt(m[5],10);if(isNaN(vv)===false)m[5]=vv}}}var isTerminal=m[0].length===m.input.length,pathDelim=m[1],pathValue=m[2];for(var i=0;i<root.kids.length;i++){var kid=root.kids[i],isMatch=false;if(pathValue==="*"||(eq(kid,pathValue)?pathValue[0]!=="!":pathValue[0]==="!")){if(typeof m[3]!=="undefined"){var attrName=m[4].trim();if(typeof kid[attrName]!=="undefined"&&(typeof m[5]==="undefined"||kid[attrName]===m[5])){isMatch=true}}else{isMatch=true}}if(isMatch===true&&isTerminal===true&&cb(kid)===true){return true}if(isMatch===true&&isTerminal===false||pathDelim==="//"){if(pkg.findInTree(kid,path,cb,eq,m)===true){return true}}}}return false};pkg.PathSearch=zebkit.Interface([function $prototype(){this.byPath=function(path,cb){if(typeof this.$normalizePath!=="undefined"){path=this.$normalizePath(path)}if(arguments.length===2){if(arguments[1]===null){var r=[];pkg.findInTree(this,path,function(n){r.push(n);return false},typeof this.$matchPath!=="undefined"?this.$matchPath:null);return r}else{pkg.findInTree(this,path,cb,typeof this.$matchPath!=="undefined"?this.$matchPath:null)}}else{var res=null;pkg.findInTree(this,path,function(n){res=n;return true},typeof this.$matchPath!=="undefined"?this.$matchPath:null);return res}}}]);pkg.rgb=Class([function(r,g,b,a){if(arguments.length===1){if(zebkit.isString(r)){this.s=r;if(r[0]==="#"){r=parseInt(r.substring(1),16)}else{if(r[0]==="r"&&r[1]==="g"&&r[2]==="b"){var i=r.indexOf("(",3),p=r.substring(i+1,r.indexOf(")",i+1)).split(",");this.r=parseInt(p[0].trim(),10);this.g=parseInt(p[1].trim(),10);this.b=parseInt(p[2].trim(),10);if(p.length>3){this.a=parseInt(p[3].trim(),10);this.isOpaque=this.a===1}return}}}this.r=r>>16;this.g=r>>8&255;this.b=r&255}else{this.r=r;this.g=g;this.b=b;if(arguments.length>3)this.a=a}if(this.s===null){this.s=typeof this.a!=="undefined"?"rgba("+this.r+","+this.g+","+this.b+","+this.a+")":"#"+(this.r<16?"0"+this.r.toString(16):this.r.toString(16))+(this.g<16?"0"+this.g.toString(16):this.g.toString(16))+(this.b<16?"0"+this.b.toString(16):this.b.toString(16))}},function $prototype(){this.s=null;this.isOpaque=true;this.toString=function(){return this.s}},function $clazz(){this.black=new this(0);this.white=new this(16777215);this.red=new this(255,0,0);this.blue=new this(0,0,255);this.green=new this(0,255,0);this.gray=new this(128,128,128);this.lightGray=new this(211,211,211);this.darkGray=new this(169,169,169);this.orange=new this(255,165,0);this.yellow=new this(255,255,0);this.pink=new this(255,192,203);this.cyan=new this(0,255,255);this.magenta=new this(255,0,255);this.darkBlue=new this(0,0,140);this.transparent=new this(0,0,0,0);this.mergeable=false}]);pkg.intersection=function(x1,y1,w1,h1,x2,y2,w2,h2,r){r.x=x1>x2?x1:x2;r.width=Math.min(x1+w1,x2+w2)-r.x;r.y=y1>y2?y1:y2;r.height=Math.min(y1+h1,y2+h2)-r.y};pkg.isIntersect=function(x1,y1,w1,h1,x2,y2,w2,h2){return Math.min(x1+w1,x2+w2)-(x1>x2?x1:x2)>0&&Math.min(y1+h1,y2+h2)-(y1>y2?y1:y2)>0};pkg.unite=function(x1,y1,w1,h1,x2,y2,w2,h2,r){r.x=x1<x2?x1:x2;r.y=y1<y2?y1:y2;r.width=Math.max(x1+w1,x2+w2)-r.x;r.height=Math.max(y1+h1,y2+h2)-r.y};var letterRE=/[A-Za-z]/;pkg.isLetter=function(ch){if(ch.length!==1)throw new Error("Incorrect character");return letterRE.test(ch)};var $NewListener=function(){var clazz=function(){};clazz.eventNames=arguments.length===0?["fired"]:Array.prototype.slice.call(arguments);clazz.ListenersClass=function(){var args=this.eventNames.slice();for(var i=0;i<arguments.length;i++)args.push(arguments[i]);return $NewListener.apply(this,args)};if(clazz.eventNames.length===1){var $ename=clazz.eventNames[0];clazz.prototype.v=null;clazz.prototype.add=function(){var ctx=this,l=arguments[arguments.length-1];if(typeof l!=="function"){ctx=l;l=l[$ename];if(typeof l!=="function"){return null}}if(arguments.length>1&&arguments[0]!==$ename){throw new Error("Unknown event type :"+$ename)}if(this.v===null){this.v=[]}this.v.push(ctx,l);return l};clazz.prototype.remove=function(l){if(this.v!==null){if(arguments.length===0){this.v.length=0}else{var name=arguments.length>1||zebkit.isString(arguments[0])?arguments[0]:null,fn=arguments.length>1?arguments[1]:name===null?arguments[0]:null,i=0;if(name!==null&&name!==$ename){throw new Error("Unknown event type :"+name)}if(fn===null){this.v.length=0}else{while((i=this.v.indexOf(fn))>=0){if(i%2>0)i--;this.v.splice(i,2)}}}}};clazz.prototype.hasHandler=function(l){if(zebkit.isString(l)){return this.v!==null&&l===$ename&&this.v.length>0}else{return this.v.length>0&&this.v.indexOf(l)>=0}};clazz.prototype[$ename]=function(){if(this.v!==null){for(var i=0;i<this.v.length;i+=2){if(this.v[i+1].apply(this.v[i],arguments)===true){return true}}}return false};clazz.prototype.hasEvent=function(nm){return nm===$ename}}else{var names={};for(var i=0;i<clazz.eventNames.length;i++){names[clazz.eventNames[i]]=true}clazz.prototype.$methods=null;clazz.prototype.add=function(l){if(this.$methods===null){this.$methods={}}var n=null,k=null,nms=typeof this.$names!=="undefined"?this.$names:names;if(arguments.length>1){n=arguments[0];l=arguments[arguments.length-1]}if(typeof l==="function"){if(n!==null&&nms.hasOwnProperty(n)===false){throw new Error("Unknown event type "+n)}if(n===null){for(k in nms){if(this.$methods.hasOwnProperty(k)===false){this.$methods[k]=[]}this.$methods[k].push(this,l)}}else{if(this.$methods.hasOwnProperty(n)===false){this.$methods[n]=[]}this.$methods[n].push(this,l)}}else{var b=false;for(k in nms){if(typeof l[k]==="function"){b=true;if(this.$methods.hasOwnProperty(k)===false){this.$methods[k]=[]}this.$methods[k].push(l,l[k])}}if(b===false){return null}}return l};clazz.prototype.hasHandler=function(l){if(zebkit.isString(l)){return this.$methods!==null&&this.$methods.hasOwnProperty(l)&&this.$methods[l].length>0}else{for(var k in this.$methods){var v=this.$methods[k];if(v.indexOf(l)>=0){return true}}return false}};clazz.prototype.addEvents=function(){if(typeof this.$names==="undefined"){this.$names={};for(var k in names){this.$names[k]=names[k]}}for(var i=0;i<arguments.length;i++){var name=arguments[i];if(name===null||typeof name==="undefined"||typeof this[name]!=="undefined"){throw new Error("Invalid "+name+" (event name)")}this[name]=function(name){return function(){if(this.$methods!==null){if(this.$methods.hasOwnProperty(name)){var c=this.$methods[name];for(var i=0;i<c.length;i+=2){if(c[i+1].apply(c[i],arguments)===true){return true}}}}return false}}(name);this.$names[name]=true}};clazz.prototype.addEvents.apply(clazz.prototype,clazz.eventNames);clazz.prototype.remove=function(){if(this.$methods!==null){var k=null;if(arguments.length===0){for(k in this.$methods){if(this.$methods.hasOwnProperty(k))this.$methods[k].length=0}this.$methods={}}else{var name=arguments.length>1||zebkit.isString(arguments[0])?arguments[0]:null,fn=arguments.length>1?arguments[1]:name===null?arguments[0]:null,i=0,v=null;if(name!==null){if(this.$methods.hasOwnProperty(name)){if(fn===null){this.$methods[name].length=0;delete this.$methods[name]}else{v=this.$methods[name];while((i=v.indexOf(fn))>=0){if(i%2>0)i--;v.splice(i,2)}if(v.length===0){delete this.$methods[name]}}}}else{for(k in this.$methods){v=this.$methods[k];while((i=v.indexOf(fn))>=0){if(i%2>0)i--;v.splice(i,2)}if(v.length===0){delete this.$methods[k]}}}}}};clazz.prototype.hasEvent=function(nm){if(typeof this.$names!=="undefined"){return this.$names.hasOwnProperty(nm)}else{return names.hasOwnProperty(nm)}}}return clazz};pkg.Listeners=$NewListener();pkg.ListenersClass=$NewListener;pkg.Position=Class(zebkit.EventProducer,[function(pi){this._=new this.clazz.Listeners;this.isValid=false;this.currentLine=this.currentCol=this.offset=0;this.setMetric(pi)},function $clazz(){this.Listeners=pkg.ListenersClass("posChanged");this.Metric=zebkit.Interface(["abstract",function getLines(){},function getLineSize(){},function getMaxOffset(){}])},function $prototype(){this.setOffset=function(o){if(o<0)o=0;else{if(o===null)o=-1;else{var max=this.metrics.getMaxOffset();if(o>=max)o=max}}if(o!==this.offset){var prevOffset=this.offset,prevLine=this.currentLine,prevCol=this.currentCol,p=this.getPointByOffset(o);this.offset=o;if(p!==null){this.currentLine=p[0];this.currentCol=p[1]}else{this.currentLine=this.currentCol=-1}this.isValid=true;this._.posChanged(this,prevOffset,prevLine,prevCol)}return o};this.seek=function(off){return this.setOffset(this.offset+off)};this.setRowCol=function(r,c){if(r!==this.currentLine||c!==this.currentCol){var prevOffset=this.offset,prevLine=this.currentLine,prevCol=this.currentCol;this.offset=this.getOffsetByPoint(r,c);this.currentLine=r;this.currentCol=c;this._.posChanged(this,prevOffset,prevLine,prevCol)}};this.inserted=function(off,size){if(this.offset>=0&&off<=this.offset){this.isValid=false;this.setOffset(this.offset+size)}};this.removed=function(off,size){if(this.offset>=0&&this.offset>=off){this.isValid=false;this.setOffset(this.offset>=off+size?this.offset-size:off)}};this.getPointByOffset=function(off){if(off>=0){var m=this.metrics,max=m.getMaxOffset();if(off>max){throw new Error("Out of bounds:"+off)}if(max===0)return[m.getLines()>0?0:-1,0];if(off===0)return[0,0];var d=0,sl=0,so=0;if(this.isValid===true&&this.offset!==-1){sl=this.currentLine;so=this.offset-this.currentCol;if(off>this.offset)d=1;else{if(off<this.offset)d=-1;else return[sl,this.currentCol]}}else{d=~~(max/off)===0?-1:1;if(d<0){sl=m.getLines()-1;so=max-m.getLineSize(sl)}}for(;sl<m.getLines()&&sl>=0;sl+=d){var ls=m.getLineSize(sl);if(off>=so&&off<so+ls){return[sl,off-so]}so+=d>0?ls:-m.getLineSize(sl-1)}}return null};this.getOffsetByPoint=function(row,col){var startOffset=0,startLine=0,m=this.metrics,i=0;if(row>=m.getLines()){throw new RangeError(row)}if(col>=m.getLineSize(row)){throw new RangeError(col)}if(this.isValid===true&&this.offset!==-1){startOffset=this.offset-this.currentCol;startLine=this.currentLine}if(startLine<=row){for(i=startLine;i<row;i++){startOffset+=m.getLineSize(i)}}else{for(i=startLine-1;i>=row;i--){startOffset-=m.getLineSize(i)}}return startOffset+col};this.seekLineTo=function(t,num){if(this.offset<0){this.setOffset(0)}else{if(arguments.length===1)num=1;var prevOffset=this.offset,prevLine=this.currentLine,prevCol=this.currentCol,maxCol=0,i=0;switch(t){case"begin":if(this.currentCol>0){this.offset-=this.currentCol;this.currentCol=0}break;case"end":maxCol=this.metrics.getLineSize(this.currentLine);if(this.currentCol<maxCol-1){this.offset+=maxCol-this.currentCol-1;this.currentCol=maxCol-1}break;case"up":if(this.currentLine>0){this.offset-=this.currentCol+1;this.currentLine--;for(i=0;this.currentLine>0&&i<num-1;i++,this.currentLine--){this.offset-=this.metrics.getLineSize(this.currentLine)}maxCol=this.metrics.getLineSize(this.currentLine);if(this.currentCol<maxCol){this.offset-=maxCol-this.currentCol-1}else{this.currentCol=maxCol-1}}break;case"down":if(this.currentLine<this.metrics.getLines()-1){this.offset+=this.metrics.getLineSize(this.currentLine)-this.currentCol;this.currentLine++;var size=this.metrics.getLines()-1;for(i=0;this.currentLine<size&&i<num-1;i++,this.currentLine++){this.offset+=this.metrics.getLineSize(this.currentLine)}maxCol=this.metrics.getLineSize(this.currentLine);if(this.currentCol<maxCol){this.offset+=this.currentCol}else{this.currentCol=maxCol-1;this.offset+=this.currentCol}}break;default:throw new Error(""+t)}this._.posChanged(this,prevOffset,prevLine,prevCol)}};this.setMetric=function(p){if(p===null||typeof p==="undefined"){throw new Error("Null metric")}if(p!==this.metrics){this.metrics=p;this.setOffset(null)}}}]);pkg.SingleColPosition=Class(pkg.Position,[function $prototype(){this.setRowCol=function(r,c){this.setOffset(r)};this.setOffset=function(o){if(o<0)o=0;else{if(o===null)o=-1;else{var max=this.metrics.getMaxOffset();if(o>=max)o=max}}if(o!==this.offset){var prevOffset=this.offset,prevLine=this.currentLine,prevCol=this.currentCol;this.currentLine=this.offset=o;this.isValid=true;this._.posChanged(this,prevOffset,prevLine,prevCol)}return o};this.seekLineTo=function(t,num){if(this.offset<0){this.setOffset(0)}else{if(arguments.length===1){num=1}switch(t){case"begin":case"end":break;case"up":if(this.offset>0){this.setOffset(this.offset-n)}break;case"down":if(this.offset<this.metrics.getLines()-1){this.setOffset(this.offset+n)}break;default:throw new Error(""+t)}}}}]);pkg.TasksSet=Class([function(c){this.tasks=Array(arguments.length>0?c:5);for(var i=0;i<this.tasks.length;i++){this.tasks[i]=new this.clazz.Task(this)}},function $clazz(){this.Task=Class([function(set){this.taskSet=set;this.isStarted=false},function $prototype(){this.task=null;this.ri=this.si=0;this.shutdown=function(){return this.taskSet.shutdown(this)};this.pause=function(){if(this.task===null){throw new Error("Stopped task cannot be paused")}if(this.isStarted===true){this.isStarted=false;return true}return false};this.resume=function(t){if(this.task===null){throw new Error("Stopped task cannot be paused")}this.si=arguments.length>0?t:0;if(this.isStarted===true){return false}this.isStarted=true;return true}}])},function $prototype(){this.quantum=40;this.pid=-1;this.count=0;this.shutdownAll=function(){for(var i=0;i<this.tasks.length;i++){this.shutdown(this.tasks[i])}};this.shutdown=function(t){if(t.task!==null){this.count--;t.task=null;t.isStarted=false;t.ri=t.si=0;return true}if(this.count===0&&this.pid>=0){zebkit.environment.clearInterval(this.pid);this.pid=-1}return false};this.runOnce=function(f,startIn){this.run(f,startIn,-1)};this.run=function(f,si,ri){if(f===null||typeof f==="undefined"){throw new Error(""+f)}var $this=this;function dispatcher(){var c=0;for(var i=0;i<$this.tasks.length;i++){var t=$this.tasks[i];if(t.task!==null){c++}if(t.isStarted===true){if(t.si<=0){try{if(typeof t.task.run!=="undefined"){t.task.run(t)}else{t.task(t)}if(t.ri<0){t.shutdown()}}catch(e){zebkit.dumpError(e)}t.si+=t.ri}else{t.si-=$this.quantum}}}if(c===0&&$this.pid>=0){zebkit.environment.clearInterval($this.pid);$this.pid=-1}}for(var i=0;i<this.tasks.length;i++){var j=(i+this.count)%this.tasks.length,t=this.tasks[j];if(t.task===null){t.si=arguments.length>1?si:0;t.ri=arguments.length>2?ri:-1;t.isStarted=true;t.task=f;this.count++;if(this.count>0&&this.pid<0){this.pid=zebkit.environment.setInterval(dispatcher,this.quantum)}return t}}throw new Error("Out of active tasks limit ("+this.tasks.length+")")}}]);pkg.tasksSet=new pkg.TasksSet(7);pkg.Fireable=zebkit.Interface();pkg.Zson=zebkit.Class([function(root){if(arguments.length>0){this.root=root}this.classAliases={}},function $prototype(){this.url=null;this.root=null;this.content=null;this.usePropertySetters=true;this.get=function(key){if(key===null||typeof key==="undefined"){throw new Error("Null key")}var ignore=false;if(key[0]==="?"){key=key.substring(1).trim();ignore=true}var v=this.$get(key.split("."),this.root);if(ignore===false&&typeof v==="undefined"){throw new Error("Property '"+key+"' not found")}return v};this.$get=function(keys,root){if(keys.length===0){throw new Error("No keys were found")}var v=root;for(var i=0;i<keys.length;i++){v=v[keys[i]];if(typeof v==="undefined"){return undefined}}return v!==null&&v.$new?v.$new():v};this.$isAtomic=function(v){return v===null||typeof v==="undefined"||(typeof v==="string"||v.constructor===String)||(typeof v==="number"||v.constructor===Number)||(typeof v==="boolean"||v.constructor===Boolean)};this.callMethod=function(name,d){var m=this[name.substring(1).trim()],ts=this.$runner.$tasks.length,bs=this.$runner.$busy;if(typeof m!=="function"){throw new Error("Method '"+name+"' cannot be found")}var args=this.buildValue(Array.isArray(d)?d:[d]),$this=this;if(this.$runner.$tasks.length===ts&&this.$runner.$busy===bs){var res=m.apply(this,args);if(res instanceof zebkit.DoIt){return(new zebkit.DoIt).till(this.$runner).then(function(){var jn=this.join();res.then(function(res){jn(res);return res}).then(function(res){return res})}).catch(function(e){$this.$runner.error(e)})}else{return res}}else{return(new zebkit.DoIt).till(this.$runner).then(function(){if(args instanceof zebkit.DoIt){var jn=this.join();args.then(function(res){jn(res);return res})}else{return args}}).then(function(args){var res=m.apply($this,args);if(res instanceof zebkit.DoIt){var jn=this.join();res.then(function(res){jn(res);return res})}else{return res}}).then(function(res){return res}).catch(function(e){$this.$runner.error(e)})}};this.$resolveRef=function(target,names){var fn=function(ref,rn){rn.then(function(target){if(target!=null&&target.hasOwnProperty(ref)===true){var v=target[ref];if(v instanceof zebkit.DoIt){var jn=this.join();v.then(function(res){jn.call(rn,res);return res})}else{return v}}else{return undefined}})};for(var j=0;j<names.length;j++){var ref=names[j];if(target.hasOwnProperty(ref)){var v=target[ref];if(v instanceof zebkit.DoIt){var rn=new zebkit.DoIt,trigger=rn.join();for(var k=j;k<names.length;k++){fn(names[k],rn)}trigger.call(rn,target);return rn}else{target=target[ref]}}else{return undefined}}return target};this.$buildArray=function(d){var hasAsync=false;for(var i=0;i<d.length;i++){var v=this.buildValue(d[i]);if(v instanceof zebkit.DoIt){hasAsync=true;this.$assignValue(d,i,v)}else{d[i]=v}}if(hasAsync){return(new zebkit.DoIt).till(this.$runner).then(function(){return d})}else{return d}};this.$buildClass=function(k,d){var classname=k.substring(1).trim(),args=d[k],clz=null,busy=this.$runner.$busy,tasks=this.$runner.$tasks.length;delete d[k];if(classname[0]==="?"){classname=classname.substring(1).trim();try{clz=this.resolveClass(classname[0]==="*"?classname.substring(1).trim():classname)}catch(e){return null}}else{clz=this.resolveClass(classname[0]==="*"?classname.substring(1).trim():classname)}args=this.buildValue(Array.isArray(args)?args:[args]);if(classname[0]==="*"){return function(clazz,args){return{$new:function(){return zebkit.newInstance(clazz,args)}}}(clz,args)}var props=this.buildValue(d);if(this.$runner.$busy===busy&&this.$runner.$tasks.length===tasks){var inst=zebkit.newInstance(clz,args);this.merge(inst,props,true);return inst}else{var $this=this;return(new zebkit.DoIt).till(this.$runner).then(function(){var jn1=this.join(),jn2=this.join();if(args instanceof zebkit.DoIt){args.then(function(res){jn1(res);return res})}else{jn1(args)}if(props instanceof zebkit.DoIt){props.then(function(res){jn2(res);return res})}else{jn2(props)}}).then(function(args,props){var inst=zebkit.newInstance(clz,args);$this.merge(inst,props,true);return inst})}};this.$buildRef=function(d){var idx=-1;if(d[2]==="<"||d[2]==="."||d[2]==="/"){var path=null,type=null,$this=this;if(d[2]==="<"){idx=d.indexOf(">");if(idx<=4){throw new Error("Invalid content type in URL '"+d+"'")}path=d.substring(idx+1,d.length-1).trim();type=d.substring(3,idx).trim()}else{path=d.substring(2,d.length-1).trim();type="json"}if(type==="js"){return this.expr(path)}if(this.url!==null&&zebkit.URI.isAbsolute(path)===false){var pURL=new zebkit.URI(this.url).getParent();if(pURL!==null){path=zebkit.URI.join(pURL,path)}}if(type==="json"){var bag=new this.clazz;bag.usePropertySetters=this.usePropertySetters;var bg=bag.then(path).catch();this.$runner.then(bg.then(function(res){return res.root}));return bg}else if(type==="img"){if(this.url!==null&&zebkit.URI.isAbsolute(path)===false){path=zebkit.URI.join(new zebkit.URI(this.url).getParent(),path)}return pkg.image(path,false)}else if(type==="txt"){return new zebkit.io.GET(path).then(function(r){return r.responseText}).catch(function(e){$this.$runner.error(e)})}else{throw new Error("Invalid content type "+type)}}else{idx=2;if(d[2]==="?"){idx++}var name=d.substring(idx,d.length-1).trim(),names=name.split("."),targets=[this.content,this.root,zebkit.$global];for(var i=0;i<targets.length;i++){var target=targets[i];if(target!==null){var value=this.$resolveRef(target,names);if(typeof value!=="undefined"){return value}}}if(idx===2){throw new Error("Reference '"+name+"' cannot be resolved")}else{return d}}};this.buildValue=function(d){if(typeof d==="undefined"||d===null||d instanceof zebkit.DoIt||(typeof d==="number"||d.constructor===Number)||(typeof d==="boolean"||d.constructor===Boolean)){return d}if(Array.isArray(d)){return this.$buildArray(d)}if(typeof d==="string"||d.constructor===String){if(d[0]==="%"&&d[1]==="{"&&d[d.length-1]==="}"){return this.$buildRef(d)}else{return d}}var k=null;for(k in d){if(k[0]==="@"&&d.hasOwnProperty(k)===true){return this.$buildClass(k,d)}break}for(k in d){if(d.hasOwnProperty(k)){var v=d[k];if(k[0]==="."||k[0]==="#"){delete d[k];if(k[0]==="#"){this.callMethod(k,v,d)}else{return this.callMethod(k,v,d)}}else if(k[0]==="%"){delete d[k];this.mixin(d,this.$buildRef(k))}else{this.$assignValue(d,k,this.buildValue(v))}}}return d};this.$assignValue=function(o,k,v){o[k]=v;if(v instanceof zebkit.DoIt){var $this=this;this.$runner.then(v.then(function(res){o[k]=res;return res}))}};this.$assignProperty=function(o,m,v){this.$runner.then(function(res){if(Array.isArray(v)){m.apply(o,v)}else{m.call(o,v)}return res})};this.merge=function(dest,src,recursively){if(arguments.length<3){recursively=true}for(var k in src){if(src.hasOwnProperty(k)){var sv=src[k],dv=dest[k];if(this.usePropertySetters===true){var m=zebkit.getPropertySetter(dest,k);if(m!==null){this.$assignProperty(dest,m,sv);continue}}if(this.$isAtomic(dv)||Array.isArray(dv)||this.$isAtomic(sv)||Array.isArray(sv)||typeof sv.clazz!=="undefined"){this.$assignValue(dest,k,sv)}else if(recursively===true){if(dv!=null&&typeof dv.clazz!=="undefined"&&dv.clazz.mergeable===false){this.$assignValue(dest,k,sv)}else{this.merge(dv,sv)}}}}return dest};this.mixin=function(dest,src){if(src instanceof zebkit.DoIt){var $this=this;this.$runner.then(src.then(function(src){for(var k in src){if(src.hasOwnProperty(k)&&(typeof dest[k]==="undefined"||dest[k]===null)){$this.$assignValue(dest,k,src[k])}}}))}else{for(var k in src){if(src.hasOwnProperty(k)&&(typeof dest[k]==="undefined"||dest[k]===null)){this.$assignValue(dest,k,src[k])}}}};this.resolveClass=function(className){return this.classAliases.hasOwnProperty(className)?this.classAliases[className]:zebkit.Class.forName(className)};this.addClassAliases=function(aliases){for(var k in aliases){this.classAliases[k]=Class.forName(aliases[k].trim())}};this.expr=function(expr){if(expr.length>200){throw new Error("Out of evaluated script limit")}return eval("'use strict';"+expr)};this.then=function(json,fn){if(json===null||typeof json==="undefined"||zebkit.isString(json)&&json.trim().length===0){throw new Error("Null content")}this.$runner=new zebkit.DoIt;var $this=this;this.$runner.then(function(){if(zebkit.isString(json)){json=json.trim();if((json[0]!=="["||json[json.length-1]!=="]")&&(json[0]!=="{"||json[json.length-1]!=="}")){$this.url=json+(json.lastIndexOf("?")>0?"&":"?")+(new Date).getTime().toString();var join=this.join();zebkit.io.GET($this.url).then(function(r){join.call($this,r.responseText)}).catch(function(e){$this.$runner.error(e)})}else{return json}}else{return json}}).then(function(json){if(zebkit.isString(json)){try{$this.content=JSON.parse(json)}catch(e){throw new Error("JSON format error: "+e)}}else{$this.content=json}$this.$assignValue($this,"content",$this.buildValue($this.content))}).then(function(){if($this.root!==null){$this.merge($this.root,$this.content)}else{$this.root=$this.content}return $this});if(arguments.length>1){this.$runner.then(fn)}return this.$runner}}])});zebkit.package("io",function(pkg,Class){var HEX="0123456789ABCDEF",b64str="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";pkg.UID=function(size){if(arguments.length===0)size=16;var id="";for(var i=0;i<size;i++)id=id+HEX[~~(Math.random()*16)];return id};pkg.b64encode=function(input){var out=[],i=0,len=input.length,c1,c2,c3;if(typeof ArrayBuffer!=="undefined"){if(input instanceof ArrayBuffer){input=new Uint8Array(input)}input.charCodeAt=function(i){return this[i]}}if(Array.isArray(input)){input.charCodeAt=function(i){return this[i]}}while(i<len){c1=input.charCodeAt(i++)&255;out.push(b64str.charAt(c1>>2));if(i===len){out.push(b64str.charAt((c1&3)<<4),"==");break}c2=input.charCodeAt(i++);out.push(b64str.charAt((c1&3)<<4|(c2&240)>>4));if(i===len){out.push(b64str.charAt((c2&15)<<2),"=");break}c3=input.charCodeAt(i++);out.push(b64str.charAt((c2&15)<<2|(c3&192)>>6),b64str.charAt(c3&63))}return out.join("")};pkg.b64decode=function(input){var output=[],chr1,chr2,chr3,enc1,enc2,enc3,enc4;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(input.length%4!==0)input+="=";for(var i=0;i<input.length;){enc1=b64str.indexOf(input.charAt(i++));enc2=b64str.indexOf(input.charAt(i++));enc3=b64str.indexOf(input.charAt(i++));enc4=b64str.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output.push(String.fromCharCode(chr1));if(enc3!==64)output.push(String.fromCharCode(chr2));if(enc4!==64)output.push(String.fromCharCode(chr3))}return output.join("")};pkg.dateToISO8601=function(d){function pad(n){return n<10?"0"+n:n}return[d.getUTCFullYear(),"-",pad(d.getUTCMonth()+1),"-",pad(d.getUTCDate()),"T",pad(d.getUTCHours()),":",pad(d.getUTCMinutes()),":",pad(d.getUTCSeconds()),"Z"].join("")};pkg.ISO8601toDate=function(v){var regexp=["([0-9]{4})(-([0-9]{2})(-([0-9]{2})","(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(.([0-9]+))?)?","(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?"].join(""),d=v.match(new RegExp(regexp)),offset=0,date=new Date(d[1],0,1);if(d[3])date.setMonth(d[3]-1);if(d[5])date.setDate(d[5]);if(d[7])date.setHours(d[7]);if(d[8])date.setMinutes(d[8]);if(d[10])date.setSeconds(d[10]);if(d[12])date.setMilliseconds(Number("0."+d[12])*1e3);if(d[14]){offset=Number(d[16])*60+Number(d[17]);offset*=d[15]==="-"?1:-1}offset-=date.getTimezoneOffset();date.setTime(Number(date)+offset*60*1e3);return date};pkg.HTTP=Class([function(url){this.url=url;this.header={}},function $prototype(){this.GET=function(q){var u=this.url+(arguments.length===0||q===null?"":(this.url.indexOf("?")>0?"&":"?")+zebkit.URI.toQS(q,true));return this.SEND("GET",u)};this.POST=function(d){if(d!==null&&zebkit.isString(d)===false&&d.constructor===Object){d=zebkit.URI.toQS(d,false)}return this.SEND("POST",this.url,d)};this.SEND=function(method,url,data){var req=zebkit.environment.getHttpRequest();req.open(method,url,true);for(var k in this.header){req.setRequestHeader(k,this.header[k])}return new zebkit.DoIt(function(){var jn=this.join(),$this=this;req.onreadystatechange=function(){if(req.readyState===4){if(req.status>=400||req.status<100){var e=new Error("HTTP error '"+req.statusText+"', code = "+req.status+" '"+url+"'");e.status=req.status;e.statusText=req.statusText;e.readyState=req.readyState;$this.error(e)}else{jn(req)}}};try{req.send(arguments.length>2?data:null)}catch(e){this.error(e)}})}}]);pkg.GET=function(url){var http=new pkg.HTTP(url);return http.GET.apply(http,Array.prototype.slice.call(arguments,1))};pkg.POST=function(url){var http=new pkg.HTTP(url);return http.POST.apply(http,Array.prototype.slice.call(arguments,1))};pkg.Service=Class([function(url,methods){var $this=this;this.url=url;if(Array.isArray(methods)===false){methods=[methods]}for(var i=0;i<methods.length;i++){(function(){var name=methods[i];$this[name]=function(){var args=Array.prototype.slice.call(arguments);return this.send(url,this.encode(name,args)).then(function(req){if(req.status===200){return $this.decode(req.responseText)}else{this.error(new Error("Status: "+req.status+", '"+req.statusText+"'"))}})}})()}},function $prototype(){this.contentType=null;this.send=function(url,data){var http=new pkg.HTTP(url);if(this.contentType!==null){http.header["Content-Type"]=this.contentType}return http.POST(data)}}]);pkg.Service.invoke=function(clazz,url,method){var rpc=new clazz(url,method);return function(){return rpc[method].apply(rpc,arguments)}};pkg.JRPC=Class(pkg.Service,[function $prototype(){this.version="2.0";this.contentType="application/json; charset=ISO-8859-1;";this.encode=function(name,args){return zebkit.environment.stringifyJSON({jsonrpc:this.version,method:name,params:args,id:pkg.UID()})};this.decode=function(r){if(r===null||r.length===0){throw new Error("Empty JSON result string")}r=zebkit.environment.parseJSON(r);if(typeof r.error!=="undefined"){throw new Error(r.error.message)}if(typeof r.result==="undefined"||typeof r.id==="undefined"){throw new Error("Wrong JSON response format")}return r.result}}]);pkg.JRPC.invoke=function(url,method){return pkg.Service.invoke(pkg.JRPC,url,method)};pkg.Base64=function(s){if(arguments.length>0)this.encoded=pkg.b64encode(s)};pkg.Base64.prototype.toString=function(){return this.encoded};pkg.Base64.prototype.decode=function(){return pkg.b64decode(this.encoded)};pkg.XRPC=Class(pkg.Service,[function $prototype(){this.contentType="text/xml";this.encode=function(name,args){var p=['<?xml version="1.0"?>\n<methodCall><methodName>',name,"</methodName><params>"];for(var i=0;i<args.length;i++){p.push("<param>");this.encodeValue(args[i],p);p.push("</param>")}p.push("</params></methodCall>");return p.join("")};this.encodeValue=function(v,p){if(v===null){throw new Error("Null is not allowed")}if(zebkit.isString(v)){v=v.replace("<","<");v=v.replace("&","&");p.push("<string>",v,"</string>")}else{if(zebkit.isNumber(v)){if(Math.round(v)===v){p.push("<i4>",v.toString(),"</i4>")}else{p.push("<double>",v.toString(),"</double>")}}else{if(zebkit.isBoolean(v)){p.push("<boolean>",v?"1":"0","</boolean>")}else{if(v instanceof Date){p.push("<dateTime.iso8601>",pkg.dateToISO8601(v),"</dateTime.iso8601>")}else{if(Array.isArray(v)){p.push("<array><data>");for(var i=0;i<v.length;i++){p.push("<value>");this.encodeValue(v[i],p);p.push("</value>")}p.push("</data></array>")}else{if(v instanceof pkg.Base64){p.push("<base64>",v.toString(),"</base64>")}else{p.push("<struct>");for(var k in v){if(v.hasOwnProperty(k)){p.push("<member><name>",k,"</name><value>");this.encodeValue(v[k],p);p.push("</value></member>")}}p.push("</struct>")}}}}}}};this.decodeValue=function(node){var tag=node.tagName.toLowerCase(),i=0;if(tag==="struct"){var p={};for(i=0;i<node.childNodes.length;i++){var member=node.childNodes[i],key=member.childNodes[0].childNodes[0].nodeValue.trim();p[key]=this.decodeValue(member.childNodes[1].childNodes[0])}return p}if(tag==="array"){var a=[];node=node.childNodes[0];for(i=0;i<node.childNodes.length;i++){a[i]=this.decodeValue(node.childNodes[i].childNodes[0])}return a}var v=node.childNodes[0].nodeValue.trim();switch(tag){case"datetime.iso8601":return pkg.ISO8601toDate(v);case"boolean":return v==="1";case"int":case"i4":return parseInt(v,10);case"double":return Number(v);case"base64":var b64=new pkg.Base64;b64.encoded=v;return b64;case"string":return v}throw new Error("Unknown tag "+tag)};this.decode=function(r){var p=zebkit.environment.parseXML(r),c=p.getElementsByTagName("fault");if(c.length>0){var err=this.decodeValue(c[0].getElementsByTagName("struct")[0]);throw new Error(err.faultString)}c=p.getElementsByTagName("methodResponse")[0];c=c.childNodes[0].childNodes[0];if(c.tagName.toLowerCase()==="param"){return this.decodeValue(c.childNodes[0].childNodes[0])}throw new Error("Incorrect XML-RPC response")}}]);pkg.XRPC.invoke=function(url,method){return pkg.Service.invoke(pkg.XRPC,url,method)}});zebkit.package("data",function(pkg,Class){pkg.descent=function descent(a,b){if(typeof a==="undefined"||a===null)return 1;return zebkit.isString(a)?a.localeCompare(b):a-b};pkg.ascent=function ascent(a,b){if(b===null||typeof b==="undefined")return 1;return zebkit.isString(b)?b.localeCompare(a):b-a};pkg.DataModel=zebkit.Interface();pkg.TextModel=Class(pkg.DataModel,[function $clazz(){this.Listeners=zebkit.util.ListenersClass("textUpdated")}]);pkg.Text=Class(pkg.TextModel,zebkit.EventProducer,[function(s){this.$lines=[new this.clazz.Line("")];this._=new this.clazz.Listeners;this.setValue(arguments.length===0||s===null?"":s)},function $clazz(){this.Line=function(s){this.$s=s};this.Line.prototype.toString=function(){return this.$s}},function $prototype(){this.textLength=0;this.calcLineByOffset=function(start,startOffset,o){if(arguments.length===1){startOffset=start=0}for(;start<this.$lines.length;start++){var line=this.$lines[start].$s;if(o>=startOffset&&o<=startOffset+line.length){return[start,startOffset]}startOffset+=line.length+1}return[]};this.calcLineOffset=function(line){var off=0;for(var i=0;i<line;i++){off+=this.$lines[i].$s.length+1}return off};this.$lineTags=function(i){return this.$lines[i]};this.getLine=function(line){if(line<0||line>=this.$lines.length)throw RangeError(line);return this.$lines[line].$s};this.getValue=function(){return this.$lines.join("\n")};this.getLines=function(){return this.$lines.length};this.getTextLength=function(){return this.textLength};this.removeLines=function(start,size){if(start<0||start>=this.$lines.length){throw new RangeError(start)}if(arguments.length===1){size=1}else if(size<=0){throw new Error("Invalid number of lines : "+size)}if(start+size>this.$lines.length){size=this.$lines.length-start}var end=start+size-1,off=this.calcLineOffset(start),olen=start!==end?this.calcLineOffset(end)+this.$lines[end].$s.length+1-off:this.$lines[start].$s.length+1;if(start===this.$lines.length-1){off--}this.$lines.splice(start,size);this._.textUpdated(this,false,off,olen,start,size)};this.insertLines=function(startLine){if(startLine<0||startLine>this.$lines.length){throw new RangeError(startLine)}var off=this.calcLineOffset(startLine),offlen=0;if(startLine===this.$lines.length){off--}for(var i=1;i<arguments.length;i++){offlen+=arguments[i].length+1;this.$lines.splice(startLine+i-1,0,new this.clazz.Line(arguments[i]))}this._.textUpdated(this,true,off,offlen,startLine,arguments.length-1)};this.write=function(s,offset){if(s.length>0){var slen=s.length,info=this.calcLineByOffset(0,0,offset),line=this.$lines[info[0]].$s,j=0,lineOff=offset-info[1],tmp=line.substring(0,lineOff)+s+line.substring(lineOff);for(;j<slen&&s[j]!=="\n";j++);if(j>=slen){this.$lines[info[0]].$s=tmp;j=1}else{this.$lines.splice(info[0],1);j=this.parse(info[0],tmp,this.$lines)}if(slen>0){this.textLength+=slen;this._.textUpdated(this,true,offset,slen,info[0],j);return true}}return false};this.remove=function(offset,size){if(size>0){var i1=this.calcLineByOffset(0,0,offset),i2=this.calcLineByOffset(i1[0],i1[1],offset+size),l1=this.$lines[i1[0]].$s,l2=this.$lines[i2[0]].$s,off1=offset-i1[1],off2=offset+size-i2[1],buf=l1.substring(0,off1)+l2.substring(off2);if(i2[0]===i1[0]){this.$lines.splice(i1[0],1,new this.clazz.Line(buf))}else{this.$lines.splice(i1[0],i2[0]-i1[0]+1);this.$lines.splice(i1[0],0,new this.clazz.Line(buf))}if(size>0){this.textLength-=size;this._.textUpdated(this,false,offset,size,i1[0],i2[0]-i1[0]+1);return true}}return false};this.parse=function(startLine,text,lines){var size=text.length,prevIndex=0,prevStartLine=startLine;for(var index=0;index<=size;prevIndex=index,startLine++){var fi=text.indexOf("\n",index);index=fi<0?size:fi;this.$lines.splice(startLine,0,new this.clazz.Line(text.substring(prevIndex,index)));index++}return startLine-prevStartLine};this.setValue=function(text){var old=this.getValue();if(old!==text){if(old.length>0){var numLines=this.getLines(),txtLen=this.getTextLength();this.$lines.length=0;this.$lines=[new this.clazz.Line("")];this._.textUpdated(this,false,0,txtLen,0,numLines)}this.$lines=[];this.parse(0,text,this.$lines);this.textLength=text.length;this._.textUpdated(this,true,0,this.textLength,0,this.getLines());return true}return false}}]);pkg.SingleLineTxt=Class(pkg.TextModel,zebkit.EventProducer,[function(s,max){if(arguments.length>1){this.maxLen=max}this._=new this.clazz.Listeners;this.setValue(arguments.length===0||s===null?"":s)},function $prototype(){this.buf="";this.extra=0;this.maxLen=-1;this.$lineTags=function(i){return this};this.getValue=function(){return this.buf};this.getLines=function(){return 1};this.getTextLength=function(){return this.buf.length};this.getLine=function(line){if(line!==0){throw new RangeError(line)}return this.buf};this.write=function(s,offset){var j=s.indexOf("\n");if(j>=0){s=s.substring(0,j)}var l=this.maxLen>0&&this.buf.length+s.length>=this.maxLen?this.maxLen-this.buf.length:s.length;if(l!==0){var nl=this.buf.substring(0,offset)+s.substring(0,l)+this.buf.substring(offset);if(typeof this.validate!=="function"||this.validate(nl)){this.buf=nl;if(l>0){this._.textUpdated(this,true,offset,l,0,1);return true}}}return false};this.remove=function(offset,size){if(size>0){var nl=this.buf.substring(0,offset)+this.buf.substring(offset+size);if(nl.length!==this.buf.length&&(typeof this.validate!=="function"||this.validate(nl))){this.buf=nl;this._.textUpdated(this,false,offset,size,0,1);return true}}return false};this.setValue=function(text){if(typeof this.validate==="function"&&this.validate(text)===false){return false}var i=text.indexOf("\n");if(i>=0){text=text.substring(0,i)}if((this.buf===null||this.buf!==text)&&(typeof this.validate!=="function"||this.validate(text))){if(this.buf!==null&&this.buf.length>0){this._.textUpdated(this,false,0,this.buf.length,0,1)}if(this.maxLen>0&&text.length>this.maxLen){text=text.substring(0,this.maxLen)}this.buf=text;this._.textUpdated(this,true,0,text.length,0,1);return true}return false};this.setMaxLength=function(max){if(max!==this.maxLen){this.maxLen=max;this.setValue("")}}}]);pkg.ListModel=Class(pkg.DataModel,zebkit.EventProducer,[function(){this._=new this.clazz.Listeners;this.$data=arguments.length===0?[]:arguments[0]},function $clazz(){this.Listeners=zebkit.util.ListenersClass("elementInserted","elementRemoved","elementSet")},function $prototype(){this.get=function(i){if(i<0||i>=this.$data.length){throw new RangeError(i)}return this.$data[i]};this.add=function(o){this.$data.push(o);this._.elementInserted(this,o,this.$data.length-1)};this.removeAll=function(){var size=this.$data.length;for(var i=size-1;i>=0;i--)this.removeAt(i)};this.removeAt=function(i){var re=this.$data[i];this.$data.splice(i,1);this._.elementRemoved(this,re,i)};this.remove=function(o){for(var i=0;i<this.$data.length;i++){if(this.$data[i]===o)this.removeAt(i)}};this.insert=function(i,o){if(i<0||i>this.$data.length){throw new RangeError(i)}this.$data.splice(i,0,o);this._.elementInserted(this,o,i)};this.count=function(){return this.$data.length};this.setAt=function(i,o){if(i<0||i>=this.$data.length){throw new RangeError(i)}var pe=this.$data[i];this.$data[i]=o;this._.elementSet(this,o,pe,i);return pe};this.contains=function(o){return this.indexOf(o)>=0};this.indexOf=function(o){return this.$data.indexOf(o)}}]);pkg.Item=Class([function(v){this.kids=[];if(arguments.length>0){this.value=v}},function $prototype(){this.parent=null;this.value=null}]).hashable();pkg.TreeModel=Class(pkg.DataModel,zebkit.EventProducer,[function(r){if(arguments.length===0){this.root=new pkg.Item}else{this.root=zebkit.instanceOf(r,pkg.Item)?r:this.clazz.create(r)}this._=new this.clazz.Listeners},function $clazz(){this.Listeners=zebkit.util.ListenersClass("itemModified","itemRemoved","itemInserted");this.create=function(r,p){var item=new pkg.Item(r.hasOwnProperty("value")?r.value:r);item.parent=arguments.length<2?null:p;if(typeof r.kids!=="undefined"&&r.kids!==null){for(var i=0;i<r.kids.length;i++){item.kids[i]=this.create(r.kids[i],item)}}return item};this.findOne=function(root,value){var res=null;this.find(root,value,function(item){res=item;return true});return res};this.find=function(root,value,cb){if(arguments.length<3){var res=[];this.find(root,value,function(item){res.push(item);return false});return res}if(root.value===value){if(cb.call(this,root)===true){return true}}if(typeof root.kids!=="undefined"&&root.kids!==null){for(var i=0;i<root.kids.length;i++){if(this.find(root.kids[i],value,cb)){return true}}}return false};this.print=function(root,render,shift){if(zebkit.instanceOf(root,pkg.TreeModel)){root=root.root}if(arguments.length<2){shift="";render=null}else if(arguments.length===2){if(zebkit.isString(render)){shift=render;render=null}else{shift=""}}var b=typeof root.kids!=="undefined"&&root.kids!==null,v=render!==null?render(root):(root.value===null?"<null>":root.value)+" {"+(b?root.kids.length:0)+"}";if(b){shift=shift+" ";for(var i=0;i<root.kids.length;i++){this.print(root.kids[i],render,shift)}}}},function $prototype(){this.root=null;this.iterate=function(r,f){var res=f.call(this,r);if(res===1||res===2){return r}for(var i=0;i<r.kids.length;i++){res=this.iterate(r.kids[i],f);if(res===2)return res}};this.setValue=function(item,v){var prev=item.value;item.value=v;this._.itemModified(this,item,prev)};this.add=function(to,item){if(arguments.length<2){to=this.root}this.insert(to,item,to.kids.length)};this.insert=function(to,item,i){if(i<0||to.kids.length<i)throw new RangeError(i);if(zebkit.isString(item)){item=new pkg.Item(item)}to.kids.splice(i,0,item);item.parent=to;this._.itemInserted(this,item)};this.remove=function(item){if(item===this.root){this.root=null}else{if(typeof item.kids!=="undefined"){for(var i=item.kids.length-1;i>=0;i--){this.remove(item.kids[i])}}item.parent.kids.splice(item.parent.kids.indexOf(item),1)}try{this._.itemRemoved(this,item)}catch(e){item.parent=null;throw e}item.parent=null};this.removeKids=function(item){for(var i=item.kids.length-1;i>=0;i--){this.remove(item.kids[i])}}}]);pkg.Matrix=Class(pkg.DataModel,zebkit.EventProducer,[function(){this._=new this.clazz.Listeners;if(arguments.length===1){this.$objs=arguments[0];this.cols=this.$objs.length>0?this.$objs[0].length:0;this.rows=this.$objs.length}else{this.$objs=[];this.rows=this.cols=0;if(arguments.length>1){this.setRowsCols(arguments[0],arguments[1])}}},function $clazz(){this.Listeners=zebkit.util.ListenersClass("matrixResized","cellModified","matrixSorted","matrixRowInserted","matrixColInserted")},function $prototype(){this.get=function(row,col){if(row<0||row>=this.rows){throw new RangeError(row)}if(col<0||col>=this.cols){throw new RangeError(col)}return this.$objs[row]==null?undefined:this.$objs[row][col]};this.geti=function(i){return this.get(~~(i/this.cols),i%this.cols)};this.put=function(row,col,obj){var nr=this.rows,nc=this.cols;if(row>=nr)nr+=row-nr+1;if(col>=nc)nc+=col-nc+1;this.setRowsCols(nr,nc);var old=this.$objs[row]!=null?this.$objs[row][col]:undefined;if(obj!==old){if(typeof this.$objs[row]==="undefined")this.$objs[row]=[];this.$objs[row][col]=obj;this._.cellModified(this,row,col,old)}};this.puti=function(i,obj){this.put(~~(i/this.cols),i%this.cols,obj)};this.setRowsCols=function(rows,cols){if(rows!==this.rows||cols!==this.cols){var pc=this.cols,pr=this.rows;this.cols=cols;this.rows=rows;if(this.$objs.length>rows){this.$objs.length=rows}if(pc>cols){for(var i=0;i<this.$objs.length;i++){if(typeof this.$objs[i]!=="undefined"&&this.$objs[i].length>cols){this.$objs[i].length=cols}}}this._.matrixResized(this,pr,pc)}};this.setRows=function(rows){this.setRowsCols(rows,this.cols)};this.setCols=function(cols){this.setRowsCols(this.rows,cols)};this.removeRows=function(begrow,count){if(arguments.length===1){count=1}if(begrow<0||begrow+count>this.rows){throw new RangeError(begrow)}this.$objs.splice(begrow,count);this.rows-=count;this._.matrixResized(this,this.rows+count,this.cols)};this.removeCols=function(begcol,count){if(arguments.length===1){count=1}if(begcol<0||begcol+count>this.cols){throw new RangeError(begcol)}for(var i=0;i<this.$objs.length;i++){if(this.$objs[i]!=null&&this.$objs[i].length>0){this.$objs[i].splice(begcol,count)}}this.cols-=count;this._.matrixResized(this,this.rows,this.cols+count)};this.insertRows=function(row,count){if(arguments.length===1){count=1}var i=0;if(row<=this.$objs.length-1){for(i=0;i<count;i++){this.$objs.splice(row,0,undefined);this._.matrixRowInserted(this,row+i)}}else{for(i=0;i<count;i++){this._.matrixRowInserted(this,row+i)}}this.rows+=count;this._.matrixResized(this,this.rows-count,this.cols)};this.insertCols=function(col,count){if(arguments.length===1){count=1}if(this.$objs.length>0){for(var j=0;j<count;j++){for(var i=0;i<this.rows;i++){if(this.$objs[i]!=null&&j<=this.$objs[i].length){this.$objs[i].splice(col,0,undefined)}}this._.matrixColInserted(this,col+j)}}this.cols+=count;this._.matrixResized(this,this.rows,this.cols-count)};this.sortCol=function(col,f){if(arguments.length<2){f=pkg.descent}this.$objs.sort(function(a,b){return f(a[col],b[col])});this._.matrixSorted(this,{col:col,func:f,name:zebkit.$FN(f).toLowerCase()})}}])});zebkit.package("layout",function(pkg,Class){pkg.getDirectChild=function(parent,child){for(;child!==null&&child.parent!==parent;child=child.parent){}return child};pkg.Layout=new zebkit.Interface(["abstract",function doLayout(target){},function calcPreferredSize(target){}]);pkg.getDirectAt=function(x,y,p){for(var i=0;i<p.kids.length;i++){var c=p.kids[i];if(c.isVisible===true&&c.x<=x&&c.y<=y&&c.x+c.width>x&&c.y+c.height>y){return i}}return-1};pkg.getTopParent=function(c){for(;c!==null&&c.parent!==null;c=c.parent);return c};pkg.toParentOrigin=function(x,y,c,p){if(arguments.length===1){c=x;x=y=0;p=null}else{if(arguments.length<4)p=null}while(c!==null&&c!==p){x+=c.x;y+=c.y;c=c.parent}if(c===null){}return{x:x,y:y}};pkg.toChildOrigin=function(x,y,p,c){while(c!==p){x-=c.x;y-=c.y;c=c.parent}return{x:x,y:y}};pkg.getMaxPreferredSize=function(target){var maxWidth=0,maxHeight=0;for(var i=0;i<target.kids.length;i++){var l=target.kids[i];if(l.isVisible===true){var ps=l.getPreferredSize();if(ps.width>maxWidth)maxWidth=ps.width;if(ps.height>maxHeight)maxHeight=ps.height}}return{width:maxWidth,height:maxHeight}};pkg.isAncestorOf=function(p,c){for(;c!==null&&c!==p;c=c.parent);return c!==null};pkg.Layoutable=Class(pkg.Layout,zebkit.EventProducer,zebkit.util.PathSearch,[function(){this.kids=[];this.layout=this},function $prototype(){this.x=this.y=this.height=this.width=this.cachedHeight=0;this.psWidth=this.psHeight=this.cachedWidth=-1;this.isLayoutValid=this.isValid=false;this.layout=null;this.constraints=this.parent=null;this.isVisible=true;this.$matchPath=function(node,name){if(name[0]==="~"){return typeof node.clazz!=="undefined"&&node.clazz!==null&&zebkit.instanceOf(node,zebkit.Class.forName(name.substring(1)))}else{return typeof node.clazz.$name!=="undefined"&&node.clazz.$name===name}};this.setId=function(id){this.id=id;return this};this.properties=function(path,props){if(arguments.length===1){return zebkit.properties(this,path)}this.byPath(path,function(kid){zebkit.properties(kid,props)});return this};this.property=function(){var p={};if(arguments.length>2){p[arguments[1]]=arguments[2];return this.properties(arguments[0],p)}else{p[arguments[0]]=arguments[1];return this.properties(p)}};this.validateMetric=function(){if(this.isValid===false){if(typeof this.recalc==="function")this.recalc();this.isValid=true}};this.invalidateLayout=function(){this.isLayoutValid=false;if(this.parent!==null)this.parent.invalidateLayout()};this.invalidate=function(){this.isValid=this.isLayoutValid=false;this.cachedWidth=-1;if(this.parent!==null){this.parent.invalidate()}};this.validate=function(){if(this.isValid===false){this.validateMetric()}if(this.width>0&&this.height>0&&this.isLayoutValid===false&&this.isVisible===true){this.layout.doLayout(this);for(var i=0;i<this.kids.length;i++){this.kids[i].validate()}this.isLayoutValid=true;if(typeof this.laidout!=="undefined")this.laidout()}};this.getPreferredSize=function(){this.validateMetric();if(this.cachedWidth<0){var ps=this.psWidth<0||this.psHeight<0?this.layout.calcPreferredSize(this):{width:0,height:0};ps.width=this.psWidth>=0?this.psWidth:ps.width+this.getLeft()+this.getRight();ps.height=this.psHeight>=0?this.psHeight:ps.height+this.getTop()+this.getBottom();this.cachedWidth=ps.width;this.cachedHeight=ps.height;return ps}return{width:this.cachedWidth,height:this.cachedHeight}};this.getTop=function(){return 0};this.getLeft=function(){return 0};this.getBottom=function(){return 0};this.getRight=function(){return 0};this.setParent=function(o){if(o!==this.parent){this.parent=o;this.invalidate()}};this.setLayout=function(m){if(m===null||typeof m==="undefined"){throw new Error("Null layout")}if(this.layout!==m){var pl=this.layout;this.layout=m;this.invalidate()}return this};this.calcPreferredSize=function(target){return{width:10,height:10}};this.doLayout=function(target){};this.indexOf=function(c){return this.kids.indexOf(c)};this.insert=function(i,constr,d){if(d.constraints!==null)constr=d.constraints;else d.constraints=constr;if(i===this.kids.length)this.kids.push(d);else this.kids.splice(i,0,d);d.setParent(this);if(typeof this.kidAdded!=="undefined"){this.kidAdded(i,constr,d)}this.invalidate();return d};this.setLocation=function(xx,yy){if(xx!==this.x||this.y!==yy){var px=this.x,py=this.y;this.x=xx;this.y=yy;if(typeof this.relocated!=="undefined"){this.relocated(px,py)}}return this};this.setBounds=function(x,y,w,h){this.setLocation(x,y);this.setSize(w,h);return this};this.setSize=function(w,h){if(w!==this.width||h!==this.height){var pw=this.width,ph=this.height;this.width=w;this.height=h;this.isLayoutValid=false;if(typeof this.resized!=="undefined"){this.resized(pw,ph)}}return this};this.byConstraints=function(constr){if(arguments.length===2){var res=null;constr=arguments[1];this.byPath(arguments[0],function(kid){if(kid.constraints===constr){res=kid;return true}else{return false}});return res}else{if(this.kids.length>0){for(var i=0;i<this.kids.length;i++){var l=this.kids[i];if(constr===l.constraints){return l}}}return null}};this.$setConstraints=function(c){this.constraints=c;return this};this.remove=function(c){return this.removeAt(this.kids.indexOf(c))};this.removeAt=function(i){var obj=this.kids[i];obj.setParent(null);if(obj.constraints!==null)obj.constraints=null;this.kids.splice(i,1);if(typeof this.kidRemoved!=="undefined"){this.kidRemoved(i,obj)}this.invalidate();return obj};this.removeMe=function(){var i=-1;if(this.parent!==null&&(i=this.parent.indexOf(this))>=0){this.parent.removeAt(i)}};this.setPreferredSize=function(w,h){if(w!==this.psWidth||h!==this.psHeight){this.psWidth=w;this.psHeight=h;this.invalidate()}return this};this.setAt=function(i,d){var constr=this.kids[i].constraints,pd=this.removeAt(i);if(d!==null)this.insert(i,constr,d);return pd};this.add=function(constr,d){return arguments.length===1?this.insert(this.kids.length,null,constr):this.insert(this.kids.length,constr,d)}}]);pkg.StackLayout=Class(pkg.Layout,[function $prototype(){this.calcPreferredSize=function(target){return pkg.getMaxPreferredSize(target)};this.doLayout=function(t){var top=t.getTop(),hh=t.height-t.getBottom()-top,left=t.getLeft(),ww=t.width-t.getRight()-left;for(var i=0;i<t.kids.length;i++){var l=t.kids[i];if(l.isVisible===true){var ctr=l.constraints===null?null:l.constraints;if(ctr==="usePsSize"){var ps=l.getPreferredSize();l.setBounds(left+Math.floor((ww-ps.width)/2),top+Math.floor((hh-ps.height)/2),ps.width,ps.height)}else{l.setBounds(left,top,ww,hh)}}}}}]);pkg.BorderLayout=Class(pkg.Layout,[function(hgap,vgap){if(arguments.length>0){this.hgap=this.vgap=hgap;if(arguments.length>1){this.vgap=vgap}}},function $prototype(){this.hgap=this.vgap=0;this.calcPreferredSize=function(target){var center=null,left=null,right=null,top=null,bottom=null,topRight=null,d=null;for(var i=0;i<target.kids.length;i++){var l=target.kids[i];if(l.isVisible===true){switch(l.constraints){case null:case undefined:case"center":center=l;break;case"top":top=l;break;case"bottom":bottom=l;break;case"left":left=l;break;case"right":right=l;break;default:throw new Error("Invalid constraints: "+l.constraints)}}}var dim={width:0,height:0};if(right!==null){d=right.getPreferredSize();dim.width=d.width+this.hgap;dim.height=d.height>dim.height?d.height:dim.height}if(left!==null){d=left.getPreferredSize();dim.width+=d.width+this.hgap;dim.height=d.height>dim.height?d.height:dim.height}if(center!==null){d=center.getPreferredSize();dim.width+=d.width;dim.height=d.height>dim.height?d.height:dim.height}if(top!==null){d=top.getPreferredSize();dim.width=d.width>dim.width?d.width:dim.width;dim.height+=d.height+this.vgap}if(bottom!==null){d=bottom.getPreferredSize();dim.width=d.width>dim.width?d.width:dim.width;dim.height+=d.height+this.vgap}return dim};this.doLayout=function(target){var t=target.getTop(),b=target.height-target.getBottom(),l=target.getLeft(),r=target.width-target.getRight(),center=null,left=null,top=null,bottom=null,right=null;for(var i=0;i<target.kids.length;i++){var kid=target.kids[i];if(kid.isVisible===true){switch(kid.constraints){case null:case undefined:case"center":if(center!==null){throw new Error("Component with center constraints is already defined")}center=kid;break;case"top":if(top!==null){throw new Error("Component with top constraints is already defined")}kid.setBounds(l,t,r-l,kid.getPreferredSize().height);t+=kid.height+this.vgap;top=kid;break;case"bottom":if(bottom!==null){throw new Error("Component with bottom constraints is already defined")}var bh=kid.getPreferredSize().height;kid.setBounds(l,b-bh,r-l,bh);b-=bh+this.vgap;bottom=kid;break;case"left":if(left!==null){throw new Error("Component with left constraints is already defined")}left=kid;break;case"right":if(right!==null){throw new Error("Component with right constraints is already defined")}right=kid;break;default:throw new Error("Invalid constraints: '"+kid.constraints+"'")}}}if(right!==null){var rw=right.getPreferredSize().width;right.setBounds(r-rw,t,rw,b-t);r-=rw+this.hgap}if(left!==null){left.setBounds(l,t,left.getPreferredSize().width,b-t);l+=left.width+this.hgap}if(center!==null){center.setBounds(l,t,r-l,b-t)}}}]);pkg.RasterLayout=Class(pkg.Layout,[function(usePsSize){if(arguments.length>0){this.usePsSize=usePsSize}},function $prototype(){this.usePsSize=false;this.calcPreferredSize=function(c){var m={width:0,height:0};for(var i=0;i<c.kids.length;i++){var kid=c.kids[i];if(kid.isVisible===true){var ps=this.usePsSize?kid.getPreferredSize():{width:kid.width,height:kid.height},px=kid.x+ps.width,py=kid.y+ps.height;if(px>m.width)m.width=px;if(py>m.height)m.height=py}}return m};this.doLayout=function(c){var r=c.getRight(),b=c.getBottom(),t=c.getTop(),l=c.getLeft();for(var i=0;i<c.kids.length;i++){var kid=c.kids[i],ww=0,hh=0;if(kid.isVisible===true){if(this.usePsSize){var ps=kid.toPreferredSize();ww=ps.width;hh=ps.height}else{ww=kid.width;hh=kid.height}var ctr=kid.constraints===null?null:kid.constraints;if(ctr!==null){var x=kid.x,y=kid.y,size=null;if(ctr==="top"||ctr==="topRight"||ctr==="topLeft"){y=t}else if(ctr==="bottom"||ctr==="bottomLeft"||ctr==="bottomRight"){y=c.height-hh-b}else if(ctr==="center"||ctr==="left"||ctr==="right"){y=Math.floor((c.height-hh)/2)}if(ctr==="left"||ctr==="topLeft"||ctr==="bottomLeft"){x=l}else if(ctr==="right"||ctr==="topRight"||ctr==="bottomRight"){x=c.width-ww-r}else if(ctr==="center"||ctr==="top"||ctr==="bottom"){x=Math.floor((c.width-ww)/2)}kid.setLocation(x,y)}}}}}]);pkg.FlowLayout=Class(pkg.Layout,[function(ax,ay,dir,g){if(arguments.length===1){this.gap=ax}else{if(arguments.length>1){this.ax=ax;this.ay=ay}if(arguments.length>2){this.direction=zebkit.util.$validateValue(dir,"horizontal","vertical")}if(arguments.length>3)this.gap=g}},function $prototype(){this.gap=0;this.ax="left";this.ay="center";this.direction="horizontal";this.stretchLast=false;this.calcPreferredSize=function(c){var m={width:0,height:0},cc=0;for(var i=0;i<c.kids.length;i++){var a=c.kids[i];if(a.isVisible===true){var d=a.getPreferredSize();if(this.direction==="horizontal"){m.width+=d.width;m.height=d.height>m.height?d.height:m.height}else{m.width=d.width>m.width?d.width:m.width;m.height+=d.height}cc++}}var add=this.gap*(cc>0?cc-1:0);if(this.direction==="horizontal")m.width+=add;else m.height+=add;return m};this.doLayout=function(c){var psSize=this.calcPreferredSize(c),t=c.getTop(),l=c.getLeft(),lastOne=null,ew=c.width-l-c.getRight(),eh=c.height-t-c.getBottom(),px=(this.ax==="right"?ew-psSize.width:this.ax==="center"?Math.floor((ew-psSize.width)/2):0)+l,py=(this.ay==="bottom"?eh-psSize.height:this.ay==="center"?Math.floor((eh-psSize.height)/2):0)+t;for(var i=0;i<c.kids.length;i++){var a=c.kids[i];if(a.isVisible===true){var d=a.getPreferredSize(),ctr=a.constraints===null?null:a.constraints;if(this.direction==="horizontal"){ctr=ctr||this.ay;if(ctr==="stretch"){d.height=c.height-t-c.getBottom()}a.setLocation(px,ctr==="stretch"?t:ctr==="top"?py:ctr==="bottom"?Math.floor(psSize.height-d.height)+py:Math.floor((psSize.height-d.height)/2)+py);px+=d.width+this.gap}else{ctr=ctr||this.ax;if(ctr==="stretch"){d.width=c.width-l-c.getRight()}a.setLocation(ctr==="stretch"?l:ctr==="left"?px:ctr==="right"?px+Math.floor(psSize.width-d.width):px+Math.floor((psSize.width-d.width)/2),py);py+=d.height+this.gap}a.setSize(d.width,d.height);lastOne=a}}if(lastOne!==null&&this.stretchLast===true){if(this.direction==="horizontal"){lastOne.setSize(c.width-lastOne.x-c.getRight(),lastOne.height)}else{lastOne.setSize(lastOne.width,c.height-lastOne.y-c.getBottom())}}}}]);pkg.ListLayout=Class(pkg.Layout,[function(ax,gap){if(arguments.length===1){this.gap=ax}else if(arguments.length>1){this.ax=zebkit.util.$validateValue(ax,"stretch","left","right","center");this.gap=gap}},function $prototype(){this.ax="stretch";this.gap=0;this.calcPreferredSize=function(lw){var w=0,h=0,c=0;for(var i=0;i<lw.kids.length;i++){var kid=lw.kids[i];if(kid.isVisible===true){var d=kid.getPreferredSize();h+=d.height+(c>0?this.gap:0);c++;if(w<d.width)w=d.width}}return{width:w,height:h}};this.doLayout=function(lw){var x=lw.getLeft(),y=lw.getTop(),psw=lw.width-x-lw.getRight();for(var i=0;i<lw.kids.length;i++){var cc=lw.kids[i];if(cc.isVisible===true){var d=cc.getPreferredSize(),constr=cc.constraints===null?this.ax:cc.constraints;cc.setSize(constr==="stretch"?psw:d.width,d.height);cc.setLocation(constr==="stretch"?x:x+(constr==="right"?psw-cc.width:constr==="center"?Math.floor((psw-cc.width)/2):0),y);y+=d.height+this.gap}}}}]);pkg.PercentLayout=Class(pkg.Layout,[function(dir,gap,stretch){if(arguments.length>0){this.direction=zebkit.util.$validateValue(dir,"horizontal","vertical");if(arguments.length>1)this.gap=gap;if(arguments.length>2)this.stretch=stretch}},function $prototype(){this.direction="horizontal";this.gap=2;this.stretch=true;this.doLayout=function(target){var right=target.getRight(),top=target.getTop(),bottom=target.getBottom(),left=target.getLeft(),size=target.kids.length,rs=-this.gap*(size===0?0:size-1),loc=0,ns=0;if(this.direction==="horizontal"){rs+=target.width-left-right;loc=left}else{rs+=target.height-top-bottom;loc=top}for(var i=0;i<size;i++){var l=target.kids[i],c=l.constraints,useps=c==="usePsSize";if(this.direction==="horizontal"){ns=size-1===i?target.width-right-loc:useps?l.getPreferredSize().width:~~(rs*c/100);var yy=top,hh=target.height-top-bottom;if(this.stretch===false){var ph=hh;hh=l.getPreferredSize().height;yy=top+Math.floor((ph-hh)/2)}l.setBounds(loc,yy,ns,hh)}else{ns=size-1===i?target.height-bottom-loc:useps?l.getPreferredSize().height:Math.floor(rs*c/100);var xx=left,ww=target.width-left-right;if(this.stretch===false){var pw=ww;ww=l.getPreferredSize().width;xx=left+Math.floor((pw-ww)/2)}l.setBounds(xx,loc,ww,ns)}loc+=ns+this.gap}};this.calcPreferredSize=function(target){var max=0,size=target.kids.length,as=this.gap*(size===0?0:size-1);for(var i=0;i<size;i++){var d=target.kids[i].getPreferredSize();if(this.direction==="horizontal"){if(d.height>max)max=d.height;as+=d.width}else{if(d.width>max)max=d.width;as+=d.height}}return this.direction==="horizontal"?{width:as,height:max}:{width:max,height:as}}}]);pkg.Constraints=Class([function(ax,ay,p){if(arguments.length>0){this.ax=ax;if(arguments.length>1)this.ay=ay;if(arguments.length>2)this.setPadding(p);zebkit.util.$validateValue(this.ax,"stretch","left","center","right");zebkit.util.$validateValue(this.ay,"stretch","top","center","bottom")}},function $prototype(){this.top=this.bottom=this.left=this.right=0;this.ay=this.ax="stretch";this.rowSpan=this.colSpan=1;this.setPadding=function(t,l,b,r){if(arguments.length===1){this.top=this.bottom=this.left=this.right=t}else{this.top=t;this.bottom=b;this.left=l;this.right=r}return this}}]);pkg.GridLayout=Class(pkg.Layout,[function(r,c,stretchRows,stretchCols){this.rows=r;this.cols=c;this.colSizes=Array(c+1);this.rowSizes=Array(r+1);this.constraints=new pkg.Constraints;if(arguments.length>2){this.stretchRows=stretchRows===true}if(arguments.length>3){this.stretchCols=stretchCols===true}},function $prototype(){this.stretchCols=false;this.stretchRows=false;this.setPadding=function(){this.constraints.setPadding.apply(this.constraints,arguments);return this};this.setDefaultConstraints=function(c){this.constraints=c;return this};this.calcCols=function(c){this.colSizes[this.cols]=0;for(var i=0;i<this.cols;i++){this.colSizes[i]=this.calcCol(i,c);this.colSizes[this.cols]+=this.colSizes[i]}return this.colSizes};this.calcRows=function(c){this.rowSizes[this.rows]=0;for(var i=0;i<this.rows;i++){this.rowSizes[i]=this.calcRow(i,c);this.rowSizes[this.rows]+=this.rowSizes[i]}return this.rowSizes};this.calcRow=function(row,c){var max=0,s=row*this.cols;for(var i=s;i<c.kids.length&&i<s+this.cols;i++){var a=c.kids[i];if(a.isVisible===true){var arg=a.constraints||this.constraints,d=a.getPreferredSize().height;d+=arg.top+arg.bottom;if(d>max)max=d}}return max};this.calcCol=function(col,c){var max=0;for(var i=col;i<c.kids.length;i+=this.cols){var a=c.kids[i];if(a.isVisible===true){var arg=a.constraints||this.constraints,d=a.getPreferredSize().width+arg.left+arg.right;if(d>max)max=d}}return max};this.calcPreferredSize=function(c){return{width:this.calcCols(c)[this.cols],height:this.calcRows(c)[this.rows]}};this.doLayout=function(c){var rows=this.rows,cols=this.cols,colSizes=this.calcCols(c),rowSizes=this.calcRows(c),top=c.getTop(),left=c.getLeft(),cc=0,i=0;if(this.stretchCols){var dw=c.width-left-c.getRight()-colSizes[cols];for(i=0;i<cols;i++){colSizes[i]=colSizes[i]+(colSizes[i]!==0?Math.floor(dw*colSizes[i]/colSizes[cols]):0)}}if(this.stretchRows){var dh=c.height-top-c.getBottom()-rowSizes[rows];for(i=0;i<rows;i++){rowSizes[i]=rowSizes[i]+(rowSizes[i]!==0?Math.floor(dh*rowSizes[i]/rowSizes[rows]):0)}}for(i=0;i<rows&&cc<c.kids.length;i++){var xx=left;for(var j=0;j<cols&&cc<c.kids.length;j++,cc++){var l=c.kids[cc];if(l.isVisible===true){var arg=l.constraints||this.constraints,d=l.getPreferredSize(),cellW=colSizes[j],cellH=rowSizes[i];cellW-=arg.left+arg.right;cellH-=arg.top+arg.bottom;if("stretch"===arg.ax)d.width=cellW;if("stretch"===arg.ay)d.height=cellH;l.setSize(d.width,d.height);l.setLocation(xx+arg.left+("stretch"===arg.ax?0:arg.ax==="right"?cellW-d.width:arg.ax==="center"?Math.floor((cellW-d.width)/2):0),top+arg.top+("stretch"===arg.ay?0:arg.ay==="bottom"?cellH-d.height:arg.ay==="center"?Math.floor((cellH-d.height)/2):0));xx+=colSizes[j]}}top+=rowSizes[i]}}}])});zebkit.package("ui",function(pkg,Class){"use strict";pkg.Manager=Class([function(){if(pkg.events!==null&&typeof pkg.events!=="undefined"){pkg.events.on(this)}}]);pkg.CompEvent=Class(zebkit.util.Event,[function $prototype(){this.kid=this.constraints=null;this.prevX=this.prevY=this.index=-1;this.prevWidth=this.prevHeight=-1}]);pkg.KeyEvent=Class(zebkit.util.Event,[function $prototype(){this.code=null;this.key=null;this.device="keyboard";this.altKey=false;this.shiftKey=false;this.ctrlKey=false;this.metaKey=false;this.repeat=0;this.timeStamp=0;this.getModifierState=function(m){if(m==="Meta"){return this.metaKey}if(m==="Control"){return this.ctrlKey}if(m==="Shift"){return this.shiftKey}if(m==="Alt"){return this.altKey}throw new Error("Unknown modifier key '"+m+"'")}}]);pkg.PointerEvent=Class(zebkit.util.Event,[function $prototype(){this.pointerType="mouse";this.touchCounter=0;this.pageX=-1;this.pageY=-1;this.target=null;this.identifier=null;this.shiftKey=this.altKey=this.metaKey=this.ctrlKey=false;this.pressure=.5;this.absX=0;this.absY=0;this.x=0;this.y=0;this.update=function(source,ax,ay){if(this.source===source&&this.source.parent===source.parent&&source.x===this.$px&&source.y===this.$py){this.x+=ax-this.absX;this.y+=ay-this.absY;this.absX=ax;this.absY=ay;this.source=source}else{this.source=source;this.absX=ax;this.absY=ay;while(source.parent!==null){ax-=source.x;ay-=source.y;source=source.parent}this.x=ax;this.y=ay}this.$px=source.x;this.$py=source.y;return this};this.isAction=function(){throw new Error("Not implemented")};this.getTouches=function(){throw new Error("Not implemented")}}]);pkg.EventManager=Class(pkg.Manager,zebkit.EventProducer,[function(){this._=new this.clazz.Listerners;this.$super()},function $clazz(argument){var eventNames=["keyTyped","keyReleased","keyPressed","pointerDragged","pointerDragStarted","pointerDragEnded","pointerMoved","pointerClicked","pointerDoubleClicked","pointerPressed","pointerReleased","pointerEntered","pointerExited","focusLost","focusGained","compSized","compMoved","compEnabled","compShown","compAdded","compRemoved"];this.$CHILD_EVENTS_MAP={};for(var i=0;i<eventNames.length;i++){var eventName=eventNames[i];this.$CHILD_EVENTS_MAP[eventName]="child"+eventName[0].toUpperCase()+eventName.substring(1)}this.Listerners=zebkit.util.ListenersClass.apply(this,eventNames)},function $prototype(clazz){var $CEM=clazz.$CHILD_EVENTS_MAP;this.regEvents=function(){this._.addEvents.apply(this._,arguments);for(var i=0;i<arguments.length;i++){var eventName=arguments[i];$CEM[eventName]="child"+eventName[0].toUpperCase()+eventName.substring(1)}};this.fire=function(id,e){var childEvent=$CEM[id];e.id=id;if(typeof e.source.suppressEvent!=="undefined"&&e.source.suppressEvent(e)===true){return true}if(this._[id](e)===false){if(typeof e.source[id]!=="undefined"&&e.source[id].call(e.source,e)===true){return true}for(var t=e.source.parent;t!==null;t=t.parent){if(typeof t[childEvent]!=="undefined"){t[childEvent].call(t,e)}}return false}else{return true}}}]);this.events=new pkg.EventManager;pkg.Clipboard=Class(pkg.Manager,[function $prototype(){this.getDestination=function(){return pkg.focusManager.focusOwner}}]);pkg.CursorManager=Class(pkg.Manager,[function $prototype(){this.cursorType="default"}]);pkg.$configWith=function(pkg,path){if(arguments.length<2){var fn=pkg.fullname();path=fn.substring(fn.indexOf(".")+1)+".json"}if(path[0]!=="/"){var root=zebkit.config["ui.theme.path"];if(typeof root==="undefined"){root=typeof zebkit.config["ui.theme.name"]==="undefined"?"rs/themes/dark":"rs/themes/"+zebkit.config["ui.theme.name"]}if(root[0]!=="/"){path=zebkit.URI.join(zebkit.ui.$url,root,path)}else{path=zebkit.URI.join(root,path)}}zebkit.then(function(){this.till(new zebkit.util.Zson(pkg).then(path))})};pkg.zCanvas=Class([]);pkg.$getPS=function(l){return l!==null&&l.isVisible===true?l.getPreferredSize():{width:0,height:0}};pkg.$cvp=function(c,r){if(c.width>0&&c.height>0&&c.isVisible===true){var p=c.parent,px=-c.x,py=-c.y;if(arguments.length<2){r={x:0,y:0,width:c.width,height:c.height}}else{r.x=r.y=0;r.width=c.width;r.height=c.height}while(p!==null&&r.width>0&&r.height>0){var xx=r.x>px?r.x:px,yy=r.y>py?r.y:py,w1=r.x+r.width,w2=px+p.width,h1=r.y+r.height,h2=py+p.height;r.width=(w1<w2?w1:w2)-xx;r.height=(h1<h2?h1:h2)-yy;r.x=xx;r.y=yy;px-=p.x;py-=p.y;p=p.parent}return r.width>0&&r.height>0?r:null}return null};pkg.makeFullyVisible=function(d,c){if(arguments.length===1){c=d;d=c.parent}var right=d.getRight(),top=d.getTop(),bottom=d.getBottom(),left=d.getLeft(),xx=c.x,yy=c.y;if(xx<left)xx=left;if(yy<top)yy=top;if(xx+c.width>d.width-right)xx=d.width+right-c.width;if(yy+c.height>d.height-bottom)yy=d.height+bottom-c.height;c.setLocation(xx,yy)};pkg.calcOrigin=function(x,y,w,h,px,py,t,tt,ll,bb,rr){if(arguments.length<8){tt=t.getTop();ll=t.getLeft();bb=t.getBottom();rr=t.getRight()}var dw=t.width,dh=t.height;if(dw>0&&dh>0){if(dw-ll-rr>w){var xx=x+px;if(xx<ll)px+=ll-xx;else{xx+=w;if(xx>dw-rr)px-=xx-dw+rr}}if(dh-tt-bb>h){var yy=y+py;if(yy<tt)py+=tt-yy;else{yy+=h;if(yy>dh-bb)py-=yy-dh+bb}}return[px,py]}return[0,0]};pkg.Font=Class([function(family,style,size){if(arguments.length===1){this.size=this.clazz.decodeSize(family);if(this.size===null){family=family.trim();if(family==="bold"||family==="italic"){this.style=family}else{var re=/([a-zA-Z_\- ]+)?(([0-9]+px|[0-9]+em)\s+([,\"'a-zA-Z_ \-]+))?/,m=family.match(re);if(typeof m[4]!=="undefined"){this.family=m[4].trim()}if(typeof m[3]!=="undefined"){this.size=m[3].trim()}if(typeof m[1]!=="undefined"){this.style=m[1].trim()}this.s=family}}}else if(arguments.length===2){this.family=family;this.size=this.clazz.decodeSize(style);this.style=this.size===null?style:null}else if(arguments.length===3){this.family=family;this.style=style;this.size=this.clazz.decodeSize(size)}if(this.size===null){this.size=this.clazz.size+"px"}if(this.s===null){this.s=(this.style!==null?this.style+" ":"")+this.size+" "+this.family}var mt=zebkit.environment.fontMetrics(this.s);this.height=mt.height;this.ascent=mt.ascent},function $clazz(){this.family="Arial, Helvetica";this.style=null;this.size=14;this.mergeable=false;this.decodeSize=function(s,defaultSize){if(arguments.length<2){defaultSize=this.size}if(zebkit.isString(s)){var size=Number(s);if(isNaN(size)){var m=s.match(/^([0-9]+)(%)$/);if(m!==null&&typeof m[1]!=="undefined"&&m[2]!=="undefined"){size=Math.floor(defaultSize*parseInt(m[1],10)/100);return size+"px"}else{return/^([0-9]+)(em|px)$/.test(s)===true?s:null}}else{if(s[0]==="+"){size=defaultSize+size}else if(s[0]==="-"){size=defaultSize-size}return size+"px"}}return s===null?null:s+"px"}},function $prototype(clazz){this.s=null;this.family=clazz.family;this.style=clazz.style;this.size=clazz.size;this.toString=function(){return this.s};this.stringWidth=function(s){if(s.length===0){return 0}else{var fm=zebkit.environment.fontMeasure;if(fm.font!==this.s){fm.font=this.s}return fm.measureText(s).width+.5|0}};this.charsWidth=function(s,off,len){var fm=zebkit.environment.fontMeasure;if(fm.font!==this.s){fm.font=this.s}return fm.measureText(len===1?s[off]:s.substring(off,off+len)).width+.5|0};this.resize=function(size){var nsize=this.clazz.decodeSize(size,this.height);if(nsize===null){throw new Error("Invalid font size : "+size)}return new this.clazz(this.family,this.style,nsize)};this.restyle=function(style){return new this.clazz(this.family,style,this.height+"px")}}]);var $paintTask=null,$paintTasks=[],temporary={x:0,y:0,width:0,height:0},COMP_EVENT=new pkg.CompEvent;pkg.$doPaint=function(){for(var i=$paintTasks.length-1;i>=0;i--){var canvas=$paintTasks.shift();try{if(canvas.isValid===false||canvas.isLayoutValid===false){canvas.validate()}if(canvas.$da.width>0){canvas.$context.save();if(canvas.bg===null||canvas.bg.isOpaque!==true){canvas.$context.clearRect(canvas.$da.x,canvas.$da.y,canvas.$da.width,canvas.$da.height)}canvas.$context.clipRect(canvas.$da.x,canvas.$da.y,canvas.$da.width,canvas.$da.height);canvas.$da.width=-1;canvas.$waitingForPaint=false;canvas.paintComponent(canvas.$context);canvas.$context.restore()}else{canvas.$waitingForPaint=false}}catch(ex){try{if(canvas!==null){canvas.$waitingForPaint=false;canvas.$da.width=-1;if(canvas.$context!==null){canvas.$context.restoreAll()}}}catch(exx){$paintTask=null;$paintTasks.length=0;throw exx}zebkit.dumpError(ex)}}$paintTask=null;if($paintTasks.length!==0){$paintTask=zebkit.environment.animate(pkg.$doPaint)}};pkg.Panel=Class(zebkit.layout.Layoutable,[function $prototype(){this.bg=this.border=null;this.repaint=function(x,y,w,h){if(this.isVisible===true&&(this.parent!==null||typeof this.$context!=="undefined")){var canvas=this;for(;typeof canvas.$context==="undefined";canvas=canvas.parent){if(canvas.isVisible===false||canvas.parent===null){return}}if(arguments.length===0){x=y=0;w=this.width;h=this.height}if(w>0&&h>0){var r=pkg.$cvp(this,temporary);if(r!==null){zebkit.util.intersection(r.x,r.y,r.width,r.height,x,y,w,h,r);if(r.width>0&&r.height>0){x=r.x;y=r.y;w=r.width;h=r.height;var cc=this;while(cc!==canvas){x+=cc.x;y+=cc.y;cc=cc.parent}if(x<0){w+=x;x=0}if(y<0){h+=y;y=0}if(w+x>canvas.width)w=canvas.width-x;if(h+y>canvas.height)h=canvas.height-y;if(w>0&&h>0){var da=canvas.$da;if(da.width>0){if(x<da.x||y<da.y||x+w>da.x+da.width||y+h>da.y+da.height){var dax=da.x,day=da.y;if(da.x>x)da.x=x;if(da.y>y)da.y=y;da.width=Math.max(dax+da.width,x+w)-da.x;da.height=Math.max(day+da.height,y+h)-da.y}}else{da.x=x;da.width=w;da.y=y;da.height=h}}}}}if(canvas.$waitingForPaint!==true&&(canvas.isValid===false||canvas.$da.width>0||canvas.isLayoutValid===false)){$paintTasks[$paintTasks.length]=canvas;canvas.$waitingForPaint=true;if($paintTask===null){$paintTask=zebkit.environment.animate(pkg.$doPaint)}}}};this.getEventDestination=function(){var c=this,p=this;while((p=p.parent)!==null){if(typeof p.catchInput!=="undefined"&&(p.catchInput===true||p.catchInput!==false&&p.catchInput(c)===true)){c=p}}return c};this.paintComponent=function(g){var ts=g.$states[g.$curState];if(ts.width>0&&ts.height>0&&this.isVisible===true){if(this.isLayoutValid===false){this.validate()}var b=this.bg!==null&&(this.parent===null||this.bg!==this.parent.bg);if(this.border!==null&&typeof this.border.outline!=="undefined"&&(b===true||typeof this.update!=="undefined")&&this.border.outline(g,0,0,this.width,this.height,this)===true){g.save();g.clip();if(b){this.bg.paint(g,0,0,this.width,this.height,this)}if(typeof this.update!=="undefined"){this.update(g)}g.restore()}else{if(b===true){this.bg.paint(g,0,0,this.width,this.height,this)}if(typeof this.update!=="undefined"){this.update(g)}}if(this.border!==null){this.border.paint(g,0,0,this.width,this.height,this)}if(typeof this.paint!=="undefined"){var left=this.getLeft(),top=this.getTop(),bottom=this.getBottom(),right=this.getRight();if(left>0||right>0||top>0||bottom>0){if(ts.width>0&&ts.height>0){var x1=ts.x>left?ts.x:left,y1=ts.y>top?ts.y:top,cxcw=ts.x+ts.width,cych=ts.y+ts.height,cright=this.width-right,cbottom=this.height-bottom;g.save();g.clipRect(x1,y1,(cxcw<cright?cxcw:cright)-x1,(cych<cbottom?cych:cbottom)-y1);this.paint(g);g.restore()}}else{this.paint(g)}}var count=this.kids.length;for(var i=0;i<count;i++){var kid=this.kids[i];if(kid.isVisible===true&&typeof kid.$context==="undefined"){var kidXW=kid.x+kid.width,c_xw=ts.x+ts.width,kidYH=kid.y+kid.height,c_yh=ts.y+ts.height,iw=(kidXW<c_xw?kidXW:c_xw)-(kid.x>ts.x?kid.x:ts.x),ih=(kidYH<c_yh?kidYH:c_yh)-(kid.y>ts.y?kid.y:ts.y);if(iw>0&&ih>0){g.save();g.translate(kid.x,kid.y);g.clipRect(0,0,kid.width,kid.height);kid.paintComponent(g);g.restore()}}}if(typeof this.paintOnTop!=="undefined"){this.paintOnTop(g)}}};this.top=this.left=this.right=this.bottom=0;this.isEnabled=true;this.getCanvas=function(){var c=this;for(;c!==null&&c.$isRootCanvas!==true;c=c.parent);return c};this.notifyRender=function(o,n){if(o!==null&&typeof o.ownerChanged!=="undefined")o.ownerChanged(null);if(n!==null&&typeof n.ownerChanged!=="undefined")n.ownerChanged(this)};this.load=function(jsonPath){return new zebkit.util.Zson(this).then(jsonPath)};this.getComponentAt=function(x,y){var r=pkg.$cvp(this,temporary);if(r===null||(x<r.x||y<r.y||x>=r.x+r.width||y>=r.y+r.height)){return null}if(this.kids.length>0){for(var i=this.kids.length;--i>=0;){var kid=this.kids[i];kid=kid.getComponentAt(x-kid.x,y-kid.y);if(kid!==null)return kid}}return typeof this.contains==="undefined"||this.contains(x,y)===true?this:null};this.vrp=function(){this.invalidate();if(this.isVisible===true&&this.parent!==null){this.repaint()}};this.getTop=function(){return this.border!==null?this.top+this.border.getTop():this.top};this.getLeft=function(){return this.border!==null?this.left+this.border.getLeft():this.left};this.getBottom=function(){return this.border!==null?this.bottom+this.border.getBottom():this.bottom};this.getRight=function(){return this.border!==null?this.right+this.border.getRight():this.right};this.isInvalidatedByChild=function(c){return true};this.kidAdded=function(index,constr,l){COMP_EVENT.source=this;COMP_EVENT.constraints=constr;COMP_EVENT.kid=l;pkg.events.fire("compAdded",COMP_EVENT);if(l.width>0&&l.height>0){l.repaint()}else{this.repaint(l.x,l.y,1,1)}};this.setConstraints=function(ctr){if(this.constraints!==ctr){this.constraints=ctr;if(this.parent!==null){this.vrp()}}return this};this.kidRemoved=function(i,l){COMP_EVENT.source=this;COMP_EVENT.index=i;COMP_EVENT.kid=l;pkg.events.fire("compRemoved",COMP_EVENT);if(l.isVisible===true){this.repaint(l.x,l.y,l.width,l.height)}};this.relocated=function(px,py){COMP_EVENT.source=this;COMP_EVENT.prevX=px;COMP_EVENT.prevY=py;pkg.events.fire("compMoved",COMP_EVENT);var p=this.parent,w=this.width,h=this.height;if(p!==null&&w>0&&h>0){var x=this.x,y=this.y,nx=x<px?x:px,ny=y<py?y:py;if(nx<0)nx=0;if(ny<0)ny=0;var w1=p.width-nx,w2=w+(x>px?x-px:px-x),h1=p.height-ny,h2=h+(y>py?y-py:py-y);p.repaint(nx,ny,w1<w2?w1:w2,h1<h2?h1:h2)}};this.resized=function(pw,ph){COMP_EVENT.source=this;COMP_EVENT.prevWidth=pw;COMP_EVENT.prevHeight=ph;pkg.events.fire("compSized",COMP_EVENT);if(this.parent!==null){this.parent.repaint(this.x,this.y,this.width>pw?this.width:pw,this.height>ph?this.height:ph)}};this.hasFocus=function(){return pkg.focusManager.hasFocus(this)};this.requestFocus=function(){pkg.focusManager.requestFocus(this)};this.requestFocusIn=function(timeout){if(arguments.length===0){timeout=50}var $this=this;zebkit.util.tasksSet.runOnce(function(){$this.requestFocus()},timeout)};this.setVisible=function(b){if(this.isVisible!==b){this.isVisible=b;this.invalidate();COMP_EVENT.source=this;pkg.events.fire("compShown",COMP_EVENT);if(this.parent!==null){if(b)this.repaint();else{this.parent.repaint(this.x,this.y,this.width,this.height)}}}return this};this.setEnabled=function(b){if(this.isEnabled!==b){this.isEnabled=b;COMP_EVENT.source=this;pkg.events.fire("compEnabled",COMP_EVENT);if(this.kids.length>0){for(var i=0;i<this.kids.length;i++){this.kids[i].setEnabled(b)}}this.repaint()}return this};this.setPadding=function(top,left,bottom,right){if(arguments.length===1){left=bottom=right=top}if(this.top!==top||this.left!==left||this.bottom!==bottom||this.right!==right){this.top=top;this.left=left;this.bottom=bottom;this.right=right;this.vrp()}return this};this.setTopPadding=function(top){if(this.top!==top){this.top=top;this.vrp()}return this};this.setLeftPadding=function(left){if(this.left!==left){this.left=left;this.vrp()}return this};this.setBottomPadding=function(bottom){if(this.bottom!==bottom){this.bottom=bottom;this.vrp()}return this};this.setRightPadding=function(right){if(this.right!==right){this.right=right;this.vrp()}return this};this.setBorder=function(v){var old=this.border;v=pkg.$view(v);if(v!=old){this.border=v;this.notifyRender(old,v);if(old===null||v===null||old.getTop()!==v.getTop()||old.getLeft()!==v.getLeft()||old.getBottom()!==v.getBottom()||old.getRight()!==v.getRight()){this.invalidate()}if(v!==null&&typeof v.activate!=="undefined"){v.activate(this.hasFocus()?"focuson":"focusoff",this)}this.repaint()}return this};this.setBackground=function(v){var old=this.bg;v=pkg.$view(v);if(v!==old){this.bg=v;this.notifyRender(old,v);this.repaint()}return this};this.setKids=function(a){if(arguments.length===1&&zebkit.instanceOf(a,pkg.Panel)){this.add(a)}else{var i=0;if(arguments.length>1){for(i=0;i<arguments.length;i++){var kid=arguments[i];if(kid!==null){this.add(typeof kid.$new!=="undefined"?kid.$new():kid)}}}else{if(Array.isArray(a)){for(i=0;i<a.length;i++){if(a[i]!==null){this.add(a[i])}}}else{var kids=a;for(var k in kids){if(kids.hasOwnProperty(k)){this.add(k,kids[k])}}}}}};this.focused=function(){if(this.border!==null&&typeof this.border.activate!=="undefined"){var id=this.hasFocus()?"focuson":"focusoff";if(typeof this.border.views[id]!=="undefined"){this.border.activate(id,this);this.repaint()}}};this.removeAll=function(){if(this.kids.length>0){var size=this.kids.length,mx1=Number.MAX_VALUE,my1=mx1,mx2=0,my2=0;for(;size>0;size--){var child=this.kids[size-1];if(child.isVisible===true){var xx=child.x,yy=child.y;mx1=mx1<xx?mx1:xx;my1=my1<yy?my1:yy;mx2=Math.max(mx2,xx+child.width);my2=Math.max(my2,yy+child.height)}this.removeAt(size-1)}this.repaint(mx1,my1,mx2-mx1,my2-my1)}return this};this.toFront=function(){if(this.parent!==null&&this.parent.kids[this.parent.kids.length-1]!==this){var p=this.parent;p.kids.splice(p.indexOf(this),1);p.kids[p.kids.length]=this;p.vrp()}return this};this.toBack=function(){if(this.parent!==null&&this.parent.kids[0]!==this){var p=this.parent;p.kids.splice(p.indexOf(this),1);p.kids.unshift(this);p.vrp()}return this};this.toPreferredSize=function(){var ps=this.getPreferredSize();this.setSize(ps.width,ps.height);return ps};this.toView=function(target){return new pkg.CompRender(this)};this.paintViewAt=function(g,ax,ay,v){var x=this.getLeft(),y=this.getTop(),ps=v.getPreferredSize();if(ax==="center"){x=Math.floor((this.width-ps.width)/2)}else if(ax==="right"){x=this.width-this.getRight()-ps.width}if(ay==="center"){y=Math.floor((this.height-ps.height)/2)}else if(ay==="bottom"){y=this.height-this.getBottom()-ps.height}v.paint(g,x,y,ps.width,ps.height,this)};this[""]=function(l){if(typeof this.kids==="undefined"){this.kids=[]}if(this.layout===null){this.layout=this}if(this.clazz.inheritProperties===true){var hierarchy=[],pp=this.clazz;while(pp.$parent!==null&&pp.inheritProperties===true){pp=pp.$parent;hierarchy[hierarchy.length]=pp}for(var i=hierarchy.length;i>=0;i--){this.properties(hierarchy[i])}}this.properties(this.clazz);if(arguments.length>0){if(l.constructor===Object){this.properties(l)}else{this.setLayout(l)}}}}]);pkg.RootLayerMix=zebkit.Interface([function $clazz(){this.id="root"},function $prototype(){this.getFocusRoot=function(){return this}}]);pkg.RootLayer=Class(pkg.Panel,pkg.RootLayerMix,[]);pkg.font=new pkg.Font("Arial",14);pkg.smallFont=new pkg.Font("Arial",10);pkg.boldFont=new pkg.Font("Arial","bold",12);pkg.$view=function(v){if(v===null||typeof v.paint!=="undefined"){return v}if(zebkit.isString(v)){if(typeof zebkit.util.rgb[v]!=="undefined"){return zebkit.util.rgb[v]}if(typeof pkg.borders!=="undefined"&&typeof pkg.borders[v]!=="undefined"){return pkg.borders[v]}if(v.length>0&&(v[0]==="#"||v.length>2&&v[0]==="r"&&v[1]==="g"&&v[2]==="b")){return new zebkit.util.rgb(v)}return new pkg.StringRender(v)}if(Array.isArray(v)){return new pkg.CompositeView(v)}if(typeof v!=="function"){return new pkg.ViewSet(v)}var vv=new pkg.View;vv.paint=v;return vv};zebkit.util.rgb.prototype.paint=function(g,x,y,w,h,d){if(this.s!==g.fillStyle){g.fillStyle=this.s}if(typeof g.$states!=="undefined"){var t=g.$states[g.$curState],rx=x>t.x?x:t.x,rw=Math.min(x+w,t.x+t.width)-rx;if(rw>0){var ry=y>t.y?y:t.y,rh=Math.min(y+h,t.y+t.height)-ry;if(rh>0)g.fillRect(rx,ry,rw,rh)}}else{g.fillRect(x,y,w,h)}};zebkit.util.rgb.prototype.getPreferredSize=function(){return{width:0,height:0}};zebkit.util.rgb.gap=0;zebkit.util.rgb.prototype.getTop=zebkit.util.rgb.prototype.getLeft=zebkit.util.rgb.prototype.getRight=zebkit.util.rgb.prototype.getBottom=function(){return this.gap};pkg.View=Class([function $prototype(){this.gap=2;this.getRight=this.getLeft=this.getBottom=this.getTop=function(){return this.gap};this.getPreferredSize=function(){return{width:0,height:0}};this.paint=function(g,x,y,w,h,c){}}]);pkg.Render=Class(pkg.View,[function(target){this.setTarget(target)},function $prototype(){this.target=null;this.setTarget=function(o){if(this.target!==o){var old=this.target;this.target=o;if(typeof this.targetWasChanged!=="undefined"){this.targetWasChanged(old,o)}}}}]);pkg.Sunken=Class(pkg.View,[function(brightest,middle,darkest){if(arguments.length>0)this.brightest=brightest;if(arguments.length>1)this.middle=middle;if(arguments.length>2)this.darkest=darkest},function $prototype(){this.brightest="white";this.middle="gray";this.darkest="black";this.paint=function(g,x1,y1,w,h,d){var x2=x1+w-1,y2=y1+h-1;g.setColor(this.middle);g.drawLine(x1,y1,x2-1,y1);g.drawLine(x1,y1,x1,y2-1);g.setColor(this.brightest);g.drawLine(x2,y1,x2,y2+1);g.drawLine(x1,y2,x2,y2);g.setColor(this.darkest);g.drawLine(x1+1,y1+1,x1+1,y2);g.drawLine(x1+1,y1+1,x2,y1+1)}}]);pkg.Etched=Class(pkg.View,[function(brightest,middle){if(arguments.length>0)this.brightest=brightest;if(arguments.length>1)this.middle=middle},function $prototype(){this.brightest="white";this.middle="gray";this.paint=function(g,x1,y1,w,h,d){var x2=x1+w-1,y2=y1+h-1;g.setColor(this.middle);g.drawLine(x1,y1,x1,y2-1);g.drawLine(x2-1,y1,x2-1,y2);g.drawLine(x1,y1,x2,y1);g.drawLine(x1,y2-1,x2-1,y2-1);g.setColor(this.brightest);g.drawLine(x2,y1,x2,y2);g.drawLine(x1+1,y1+1,x1+1,y2-1);g.drawLine(x1+1,y1+1,x2-1,y1+1);g.drawLine(x1,y2,x2+1,y2)}}]);pkg.Raised=Class(pkg.View,[function(brightest,middle){if(arguments.length>0)this.brightest=brightest;if(arguments.length>1)this.middle=middle},function $prototype(){this.brightest="white";this.middle="gray";this.paint=function(g,x1,y1,w,h,d){var x2=x1+w-1,y2=y1+h-1;g.setColor(this.brightest);g.drawLine(x1,y1,x2,y1);g.drawLine(x1,y1,x1,y2);g.setColor(this.middle);g.drawLine(x2,y1,x2,y2+1);g.drawLine(x1,y2,x2,y2)}}]);pkg.Dotted=Class(pkg.View,[function(c){if(arguments.length>0)this.color=c},function $prototype(){this.color="black";this.paint=function(g,x,y,w,h,d){g.setColor(this.color);g.drawDottedRect(x,y,w,h)}}]);pkg.Shape=Class(pkg.View,[function(c,w){if(arguments.length>0)this.color=c;if(arguments.length>1)this.width=this.gap=w},function $prototype(){this.color="gray";this.gap=this.width=1;this.paint=function(g,x,y,w,h,d){if(g.lineWidth!==this.width){g.lineWidth=this.width}this.outline(g,x,y,w,h,d);g.setColor(this.color);g.stroke()}}]);pkg.TriangleShape=Class(pkg.Shape,[function $prototype(){this.outline=function(g,x,y,w,h,d){g.beginPath();w-=2*this.width;h-=2*this.width;g.moveTo(x+w-1,y);g.lineTo(x+w-1,y+h-1);g.lineTo(x,y+h-1);g.closePath();return true}}]);pkg.Border=Class(pkg.View,[function(c,w,r){if(arguments.length>0)this.color=c;if(arguments.length>1)this.width=this.gap=w;if(arguments.length>2)this.radius=r},function $prototype(){this.color="gray";this.gap=this.width=1;this.radius=0;this.sides=15;this.setSides=function(top,left,bottom,right){this.sides=0;for(var i=0;i<arguments.length;i++){if(arguments[i]==="top")this.sides|=1;else if(arguments[i]==="left")this.sides|=2;else if(arguments[i]==="bottom")this.sides|=4;else if(arguments[i]==="right")this.sides|=8}return this};this.paint=function(g,x,y,w,h,d){if(this.color!==null&&this.width>0){var ps=g.lineWidth;if(g.lineWidth!==this.width){g.lineWidth=this.width}if(this.radius>0){this.outline(g,x,y,w,h,d);g.setColor(this.color);g.stroke()}else if(this.sides!==15){g.setColor(this.color);if((this.sides&1)>0){g.drawLine(x,y,x+w,y,this.width)}if((this.sides&8)>0){g.drawLine(x+w-this.width,y,x+w-this.width,y+h,this.width)}if((this.sides&4)>0){g.drawLine(x,y+h-this.width,x+w,y+h-this.width,this.width)}if((this.sides&2)>0){g.drawLine(x,y,x,y+h,this.width)}}else{var dt=this.width/2;g.beginPath();g.rect(x+dt,y+dt,w-this.width,h-this.width);g.closePath();g.setColor(this.color);g.stroke()}if(g.lineWidth!==ps)g.lineWidth=ps}};this.outline=function(g,x,y,w,h,d){if(this.radius<=0){return false}var r=this.radius,dt=this.width/2,xx=x+w-dt,yy=y+h-dt;x+=dt;y+=dt;g.beginPath();g.moveTo(x+r,y);g.lineTo(xx-r,y);g.quadraticCurveTo(xx,y,xx,y+r);g.lineTo(xx,yy-r);g.quadraticCurveTo(xx,yy,xx-r,yy);g.lineTo(x+r,yy);g.quadraticCurveTo(x,yy,x,yy-r);g.lineTo(x,y+r);g.quadraticCurveTo(x,y,x+r,y);g.closePath();return true}}]);pkg.RoundBorder=Class(pkg.View,[function(col,width){if(arguments.length>0){if(zebkit.isNumber(col))this.width=col;else{this.color=col;if(zebkit.isNumber(width))this.width=width}}this.gap=this.width},function $prototype(){this.width=1;this.color=null;this.fillColor=null;this.paint=function(g,x,y,w,h,d){if(this.color!==null&&this.width>0){this.outline(g,x,y,w,h,d);g.setColor(this.color);g.stroke();if(this.fillColor!==null){g.setColor(this.fillColor);g.fill()}}};this.outline=function(g,x,y,w,h,d){g.lineWidth=this.width;if(w===h){g.beginPath();g.arc(Math.floor(x+w/2)+(w%2===0?0:.5),Math.floor(y+h/2)+(h%2===0?0:.5),Math.floor((w-g.lineWidth)/2),0,2*Math.PI,false);g.closePath()}else{g.ovalPath(x,y,w,h)}return true};this.getPreferredSize=function(){var s=this.width*8;return{width:s,height:s}}}]);pkg.CompRender=Class(pkg.Render,[function $prototype(){this.getPreferredSize=function(){return this.target===null||this.target.isVisible===false?{width:0,height:0}:this.target.getPreferredSize()};this.paint=function(g,x,y,w,h,d){var c=this.target;if(c!==null&&c.isVisible){var prevW=-1,prevH=0,parent=null;if(w!==c.width||h!==c.height){if(c.getCanvas()!==null){parent=c.parent;c.parent=null}prevW=c.width;prevH=c.height;c.setSize(w,h)}c.validate();g.translate(x,y);try{c.paintComponent(g)}catch(e){if(parent!==null){c.parent=parent}g.translate(-x,-y);throw e}g.translate(-x,-y);if(prevW>=0){c.setSize(prevW,prevH);if(parent!==null){c.parent=parent}c.validate()}}}}]);pkg.Gradient=Class(pkg.View,[function(){this.colors=Array.prototype.slice.call(arguments,0);if(arguments.length>2){this.orient=arguments[arguments.length-1];this.colors.pop()}},function $prototype(){this.orient="vertical";this.gradient=null;this.gy2=this.gy1=this.gx2=this.gx1=0;this.paint=function(g,x,y,w,h,dd){var d=this.orient==="horizontal"?[0,1]:[1,0],x1=x*d[1],y1=y*d[0],x2=(x+w-1)*d[1],y2=(y+h-1)*d[0];if(this.gradient===null||this.gx1!==x1||this.gx2!==x2||this.gy1!==y1||this.gy2!==y2){this.gx1=x1;this.gx2=x2;this.gy1=y1;this.gy2=y2;this.gradient=g.createLinearGradient(x1,y1,x2,y2);for(var i=0;i<this.colors.length;i++){this.gradient.addColorStop(i,this.colors[i].toString())}}g.fillStyle=this.gradient;g.fillRect(x,y,w,h)}}]);pkg.Radial=Class(pkg.View,[function(){this.colors=Array.prototype.slice.call(arguments,0)},function $prototype(){this.gradient=null;this.paint=function(g,x,y,w,h,d){var cx1=Math.floor(w/2),cy1=Math.floor(h/2);this.gradient=g.createRadialGradient(cx1,cy1,10,cx1,cy1,w>h?w:h);for(var i=0;i<this.colors.length;i++){this.gradient.addColorStop(i,this.colors[i].toString())}g.fillStyle=this.gradient;g.fillRect(x,y,w,h)}}]);pkg.Picture=Class(pkg.Render,[function(img,x,y,w,h){this.setTarget(img);if(arguments.length>4){this.x=x;this.y=y;this.width=w;this.height=h}},function $prototype(){this.x=this.y=this.width=this.height=0;this.paint=function(g,x,y,w,h,d){if(this.target!==null&&this.target.complete===true&&this.target.naturalWidth>0&&w>0&&h>0){if(this.width>0){g.drawImage(this.target,this.x,this.y,this.width,this.height,x,y,w,h)}else{g.drawImage(this.target,x,y,w,h)}}};this.getPreferredSize=function(){var img=this.target;return img===null||img.naturalWidth<=0||img.complete!==true?{width:0,height:0}:this.width>0?{width:this.width,height:this.height}:{width:img.width,height:img.height}}}]);pkg.Pattern=Class(pkg.Render,[function $prototype(){this.pattern=null;this.paint=function(g,x,y,w,h,d){if(this.pattern===null){this.pattern=g.createPattern(this.target,"repeat")}g.beginPath();g.rect(x,y,w,h);g.closePath();g.fillStyle=this.pattern;g.fill()};this.targetWasChanged=function(o,n){this.pattern=null}}]);pkg.CompositeView=Class(pkg.View,[function(){this.views=[];var args=arguments.length===1?arguments[0]:arguments;for(var i=0;i<args.length;i++){this.views[i]=pkg.$view(args[i]);this.$recalc(this.views[i])}},function $prototype(){this.left=this.right=this.bottom=this.top=this.height=this.width=0;this.getTop=function(){return this.top};this.getLeft=function(){return this.left};this.getBottom=function(){return this.bottom};this.getRight=function(){return this.right};this.getPreferredSize=function(){return{width:this.width,height:this.height}};this.$recalc=function(v){var b=0,ps=v.getPreferredSize();if(typeof v.getLeft!=="undefined"){b=v.getLeft();if(b>this.left)this.left=b}if(typeof v.getRight!=="undefined"){b=v.getRight();if(b>this.right)this.right=b}if(typeof v.getTop!=="undefined"){b=v.getTop();if(b>this.top)this.top=b}if(typeof v.getBottom!=="undefined"){b=v.getBottom();if(b>this.bottom)this.bottom=b}if(ps.width>this.width)this.width=ps.width;if(ps.height>this.height)this.height=ps.height;if(typeof this.voutline==="undefined"&&typeof v.outline!=="undefined"){this.voutline=v}};this.iterate=function(f){for(var i=0;i<this.views.length;i++){f.call(this,i,this.views[i])}};this.recalc=function(){this.left=this.right=this.bottom=this.top=this.height=this.width=0;this.iterate(function(k,v){this.$recalc(v)})};this.ownerChanged=function(o){this.iterate(function(k,v){if(v!==null&&typeof v.ownerChanged!=="undefined"){v.ownerChanged(o)}})};this.paint=function(g,x,y,w,h,d){var ctx=false;for(var i=0;i<this.views.length;i++){var v=this.views[i];v.paint(g,x,y,w,h,d);if(i<this.views.length-1&&typeof v.outline==="function"&&v.outline(g,x,y,w,h,d)){if(ctx===false){g.save();ctx=true}g.clip()}}if(ctx===true){g.restore()}};this.count=function(){return this.views.length};this.outline=function(g,x,y,w,h,d){return typeof this.voutline!=="undefined"&&this.voutline.outline(g,x,y,w,h,d)}}]);pkg.ViewSet=Class(pkg.CompositeView,[function(args){if(arguments.length===0||args===null){throw new Error(""+args)}this.views={};this.$size=0;for(var k in args){this.views[k]=pkg.$view(args[k]);this.$size++;if(this.views[k]!==null){this.$recalc(this.views[k])}}this.activate("*")},function $prototype(){this.activeView=null;this.paint=function(g,x,y,w,h,d){if(this.activeView!==null){this.activeView.paint(g,x,y,w,h,d)}};this.count=function(){return $size};this.activate=function(id){var old=this.activeView;if(id===null){return(this.activeView=null)!==old}if(this.views.hasOwnProperty(id)){return(this.activeView=this.views[id])!==old}if(id.length>1&&id[0]!=="*"&&id[id.length-1]!=="*"){var i=id.indexOf(".");if(i>0){var k=id.substring(0,i+1)+"*";if(this.views.hasOwnProperty(k)){return(this.activeView=this.views[k])!==old}else{k="*"+id.substring(i);if(this.views.hasOwnProperty(k)){return(this.activeView=this.views[k])!==old}}}}return this.views.hasOwnProperty("*")?(this.activeView=this.views["*"])!==old:false};this.iterate=function(f){for(var k in this.views){f.call(this,k,this.views[k])}}}]);pkg.LineView=Class(pkg.View,[function(side,color,lineWidth){if(arguments.length>0)this.side=side;if(arguments.length>1)this.color=color;if(arguments.length>2)this.lineWidth=lineWidth},function $prototype(){this.side="top";this.color="black";this.lineWidth=1;this.paint=function(g,x,y,w,h,t){g.setColor(this.color);g.beginPath();g.lineWidth=this.lineWidth;var d=this.lineWidth/2;if(this.side==="top"){g.moveTo(x,y+d);g.lineTo(x+w-1,y+d)}else if(this.side==="bottom"){g.moveTo(x,y+h-d);g.lineTo(x+w-1,y+h-d)}g.stroke()};this.getPreferredSize=function(){return{width:this.lineWidth,height:this.lineWidth}}}]);pkg.ArrowView=Class(pkg.View,[function(d,col,w,h){if(arguments.length>0)this.direction=d;if(arguments.length>1)this.color=col;if(arguments.length>2)this.width=this.height=w;if(arguments.length>3)this.height=h},function $prototype(){this.lineWidth=1;this.fill=true;this.gap=0;this.color="black";this.width=this.height=8;this.direction="bottom";this.outline=function(g,x,y,w,h,d){x+=this.gap;y+=this.gap;w-=this.gap*2;h-=this.gap*2;var dt=this.lineWidth/2,w2=Math.round(w/2)-(w%2===0?0:dt),h2=Math.round(h/2)-(h%2===0?0:dt);g.beginPath();if("bottom"===this.direction){g.moveTo(x,y+dt);g.lineTo(x+w-1,y+dt);g.lineTo(x+w2,y+h-dt);g.lineTo(x+dt,y+dt)}else if("top"===this.direction){g.moveTo(x,y+h-dt);g.lineTo(x+w-1,y+h-dt);g.lineTo(x+w2,y);g.lineTo(x+dt,y+h-dt)}else if("left"===this.direction){g.moveTo(x+w-dt,y);g.lineTo(x+w-dt,y+h-1);g.lineTo(x,y+h2);g.lineTo(x+w+dt,y)}else if("right"===this.direction){g.moveTo(x+dt,y);g.lineTo(x+dt,y+h-1);g.lineTo(x+w,y+h2);g.lineTo(x-dt,y)}else{throw new Error(""+this.direction)}return true};this.setGap=function(gap){this.gap=gap;return this};this.paint=function(g,x,y,w,h,d){this.outline(g,x,y,w,h,d);g.setColor(this.color);g.lineWidth=this.lineWidth;if(this.fill===true){g.fill()}else{g.stroke()}};this.getPreferredSize=function(){return{width:this.width+this.gap*2,height:this.height+this.gap*2}}}]);pkg.BaseTextRender=Class(pkg.Render,[function $clazz(){this.font=pkg.font;this.color="gray";this.disabledColor="white"},function $prototype(clazz){this.owner=null;this.lineIndent=1;this.getMaxOffset=this.getLineSize=this.getLines=function(){return 0};this.setFont=function(f){if(zebkit.instanceOf(f,pkg.Font)===false&&f!==null){f=zebkit.newInstance(pkg.Font,arguments)}if(f!=this.font){this.font=f;if(this.owner!==null&&this.owner.isValid===true){this.owner.invalidate()}if(typeof this.invalidate!=="undefined"){this.invalidate()}}return this};this.resizeFont=function(size){return this.setFont(this.font.resize(size))};this.restyleFont=function(style){return this.setFont(this.font.restyle(style))};this.getLineHeight=function(){return this.font.height};this.setColor=function(c){if(c!=this.color){this.color=c.toString()}return this};this.ownerChanged=function(v){this.owner=v};this.targetWasChanged=function(o,n){if(this.owner!==null&&this.owner.isValid){this.owner.invalidate()}if(typeof this.invalidate!=="undefined"){this.invalidate()}}}]);pkg.StringRender=Class(pkg.BaseTextRender,[function $prototype(){this.stringWidth=-1;this[""]=function(txt,font,color){this.setTarget(txt);this.font=arguments.length>1?font:this.clazz.font;this.color=arguments.length>2?color:this.clazz.color};this.getMaxOffset=function(){return this.target.length};this.getLineSize=function(l){return this.target.length+1};this.getLines=function(){return 1};this.calcLineWidth=function(){if(this.stringWidth<0){this.stringWidth=this.font.stringWidth(this.target)}return this.stringWidth};this.invalidate=function(){this.stringWidth=-1};this.paint=function(g,x,y,w,h,d){if(this.font.s!==g.font){g.setFont(this.font)}if(d!==null&&typeof d.getStartSelection!=="undefined"){var startSel=d.getStartSelection(),endSel=d.getEndSelection();if(startSel!==null&&endSel!==null&&startSel.col!==endSel.col&&d.selectionView!==null){d.selectionView.paint(g,x+this.font.charsWidth(this.target,0,startSel.col),y,this.font.charsWidth(this.target,startSel.col,endSel.col-startSel.col),this.getLineHeight(),d)}}if(this.color!==g.fillStyle){g.fillStyle=this.color}if(d!==null&&d.isEnabled===false){g.fillStyle=d!==null&&d.disabledColor!==null&&typeof d.disabledColor!=="undefined"?d.disabledColor:this.clazz.disabledColor}g.fillText(this.target,x,y)};this.getValue=function(){return this.target};this.setValue=function(s){this.setTarget(s)};this.getLine=function(l){if(l<0||l>1){throw new RangeError}return this.target};this.getPreferredSize=function(){if(this.stringWidth<0){this.stringWidth=this.font.stringWidth(this.target)}return{width:this.stringWidth,height:this.font.height}}}]);pkg.TextRender=Class(pkg.BaseTextRender,zebkit.util.Position.Metric,[function $prototype(){this[""]=function(text){this.color=this.clazz.color;this.font=this.clazz.font;this.textWidth=this.textHeight=this.startInvLine=this.invLines=0;this.setTarget(zebkit.isString(text)?new zebkit.data.Text(text):text)};this.getLines=function(){return this.target.getLines()};this.getLineSize=function(l){return this.target.getLine(l).length+1};this.getMaxOffset=function(){return this.target.getTextLength()};this.paintLine=function(g,x,y,line,d){g.fillText(this.getLine(line),x,y)};this.getLine=function(r){return this.target.getLine(r)};this.getValue=function(){return this.target===null?null:this.target.getValue()};this.setValue=function(s){this.target.setValue(s)};this.calcLineWidth=function(line){if(this.invLines>0)this.recalc();return this.target.$lineTags(line).$lineWidth};this.recalc=function(){if(this.invLines>0&&this.target!==null){var model=this.target,i=0;if(this.invLines>0){for(i=this.startInvLine+this.invLines-1;i>=this.startInvLine;i--){model.$lineTags(i).$lineWidth=this.font.stringWidth(this.getLine(i))}this.startInvLine=this.invLines=0}this.textWidth=0;var size=model.getLines();for(i=0;i<size;i++){var len=model.$lineTags(i).$lineWidth;if(len>this.textWidth){this.textWidth=len}}this.textHeight=this.getLineHeight()*size+(size-1)*this.lineIndent}};this.textUpdated=function(src,b,off,size,ful,updatedLines){if(b===false){if(this.invLines>0){var p1=ful-this.startInvLine,p2=this.startInvLine+this.invLines-ful-updatedLines;this.invLines=(p1>0?p1:0)+(p2>0?p2:0)+1;this.startInvLine=this.startInvLine<ful?this.startInvLine:ful}else{this.startInvLine=ful;this.invLines=1}if(this.owner!==null&&this.owner.isValid!==true){this.owner.invalidate()}}else{if(this.invLines>0){if(ful<=this.startInvLine)this.startInvLine+=updatedLines-1;else if(ful<this.startInvLine+size){size+=updatedLines-1}}this.invalidate(ful,updatedLines)}};this.invalidate=function(start,size){if(arguments.length===0){start=0;size=this.getLines();if(size===0){this.invLines=0;return}}if(size>0&&(this.startInvLine!==start||size!==this.invLines)){if(this.invLines===0){this.startInvLine=start;this.invLines=size}else{var e=this.startInvLine+this.invLines;this.startInvLine=start<this.startInvLine?start:this.startInvLine;this.invLines=Math.max(start+size,e)-this.startInvLine}if(this.owner!==null){this.owner.invalidate()}}};this.getPreferredSize=function(){if(this.invLines>0&&this.target!==null){this.recalc()}return{width:this.textWidth,height:this.textHeight}};this.paint=function(g,x,y,w,h,d){var ts=g.$states[g.$curState];if(ts.width>0&&ts.height>0){var lineIndent=this.lineIndent,lineHeight=this.getLineHeight(),lilh=lineHeight+lineIndent,startInvLine=0;w=ts.width<w?ts.width:w;h=ts.height<h?ts.height:h;if(y<ts.y){startInvLine=Math.floor((lineIndent+ts.y-y)/lilh);h+=ts.y-startInvLine*lineHeight-startInvLine*lineIndent}else{if(y>ts.y+ts.height)return}var size=this.getLines();if(startInvLine<size){var lines=Math.floor((h+lineIndent)/lilh)+((h+lineIndent)%lilh>lineIndent?1:0),i=0;if(startInvLine+lines>size){lines=size-startInvLine}y+=startInvLine*lilh;if(this.font.s!==g.font){g.setFont(this.font)}if(d===null||d.isEnabled===true){if(this.color!=g.fillStyle){g.fillStyle=this.color}var p1=null,p2=null,bsel=false;if(lines>0&&d!==null&&typeof d.getStartSelection!=="undefined"){p1=d.getStartSelection();p2=d.getEndSelection();bsel=p1!==null&&(p1.row!==p2.row||p1.col!==p2.col)}for(i=0;i<lines;i++){if(bsel===true){var line=i+startInvLine;if(line>=p1.row&&line<=p2.row){var s=this.getLine(line),lw=this.calcLineWidth(line),xx=x;if(line===p1.row){var ww=this.font.charsWidth(s,0,p1.col);xx+=ww;lw-=ww;if(p1.row===p2.row){lw-=this.font.charsWidth(s,p2.col,s.length-p2.col)}}else if(line===p2.row){lw=this.font.charsWidth(s,0,p2.col)}this.paintSelection(g,xx,y,lw===0?1:lw,lilh,line,d);if(this.color!==g.fillStyle)g.fillStyle=this.color}}this.paintLine(g,x,y,i+startInvLine,d);y+=lilh}}else{var dcol=d!==null&&d.disabledColor!==null&&typeof d.disabledColor!=="undefined"?d.disabledColor:pkg.TextRender.disabledColor;for(i=0;i<lines;i++){g.setColor(dcol);this.paintLine(g,x,y,i+startInvLine,d);y+=lilh}}}}};this.paintSelection=function(g,x,y,w,h,line,d){if(d.selectionView!==null){d.selectionView.paint(g,x,y,w,h,d)}}},function targetWasChanged(o,n){if(o!==null)o.off(this);if(n!==null){n.on(this)}this.$super(o,n)}]);pkg.WrappedTextRender=new Class(pkg.TextRender,[function $prototype(){this.brokenLines=null;this.lastWidth=-1;this.breakLine=function(w,startIndex,line,lines){if(line===""){lines.push(line)}else{var breakIndex=startIndex<line.length?startIndex:line.length-1,direction=0;for(;breakIndex>=0&&breakIndex<line.length;){var substrLen=this.font.charsWidth(line,0,breakIndex+1);if(substrLen<w){if(direction<0)break;else direction=1;breakIndex++}else if(substrLen>w){breakIndex--;if(direction>0)break;else direction=-1}else{break}}if(breakIndex>=0){lines.push(line.substring(0,breakIndex+1));if(breakIndex<line.length-1){this.breakLine(w,startIndex,line.substring(breakIndex+1),lines)}}}};this.breakToLines=function(w){var m=this.target,startIndex=0,res=[];for(var i=0;i<m.getLines();i++){var line=m.getLine(i);this.breakLine(w,startIndex,line,res)}return res};this.getLines=function(){return this.brokenLines.length};this.getLine=function(i){return this.brokenLines[i]}},function invalidate(sl,len){this.$super(sl,len);if(this.brokenLines!==null){this.brokenLines.length=0}this.lastWidth=-1},function getPreferredSize(pw,ph){if(arguments.length===2){if(this.lastWidth<0||this.lastWidth!==pw){this.lastWidth=pw;this.brokenLines=this.breakToLines(pw)}return{width:pw,height:this.brokenLines.length*this.getLineHeight()+(this.brokenLines.length-1)*this.lineIndent}}return this.$super()},function paint(g,x,y,w,h,d){if(this.lastWidth<0||this.lastWidth!==w){this.lastWidth=w;this.brokenLines=this.breakToLines(w)}this.$super(g,x,y,w,h,d)}]);pkg.DecoratedTextRender=zebkit.Class(pkg.TextRender,[function(text){this.decorations={underline:null,strike:null};this.$super(text)},function $prototype(){this.lineWidth=1;this.setDecoration=function(id,color){if(id===null||typeof id==="undefined"){throw new Error}this.decorations[id]=color;return this};this.setDecorations=function(d){this.decorations=zebkit.clone(d);if(typeof this.decorations.underline==="undefined"){this.decorations.underline=null}if(typeof this.decorations.strike==="undefined"){this.decorations.strike=null}return this}},function paintLine(g,x,y,line,d){this.$super(g,x,y,line,d);var lw=this.calcLineWidth(line),lh=this.getLineHeight(line);if(this.decorations.underline!==null){g.lineWidth=this.lineWidth;g.setColor(this.decorations.underline);g.drawLine(x,y+lh-1,x+lw,y+lh-1)}if(this.decorations.strike!==null){var yy=y+Math.round(lh/2)-1;g.setColor(this.decorations.strike);g.lineWidth=this.lineWidth;g.drawLine(x,yy,x+lw,yy)}}]);pkg.BoldTextRender=Class(pkg.TextRender,[function $clazz(){this.font=pkg.boldFont}]);pkg.PasswordText=Class(pkg.TextRender,[function(text){if(arguments.length===0){text=new zebkit.data.SingleLineTxt("")}this.$super(text)},function $prototype(){this.echo="*";this.showLast=true;this.setEchoChar=function(ch){if(this.echo!==ch){this.echo=ch;if(this.target!==null){this.invalidate(0,this.target.getLines())}}return this}},function getLine(r){var buf=[],ln=this.$super(r);for(var i=0;i<ln.length;i++){buf[i]=this.echo}if(this.showLast&&ln.length>0){buf[ln.length-1]=ln[ln.length-1]}return buf.join("")}]);pkg.TabBorder=Class(pkg.View,[function(t,w){if(arguments.length>1){this.width=w}if(arguments.length>0){this.state=t}this.left=this.top=this.bottom=this.right=6+this.width},function $prototype(){this.state="out";this.width=1;this.fillColor1="#DCF0F7";this.fillColor2="white";this.fillColor3="#F3F3F3";this.onColor1="black";this.onColor2="#D9D9D9";this.offColor="#A1A1A1";this.paint=function(g,x,y,w,h,d){var xx=x+w-1,yy=y+h-1,o=d.parent.orient,t=this.state,s=this.width,ww=0,hh=0,dt=s/2;g.beginPath();g.lineWidth=s;switch(o){case"left":g.moveTo(xx+1,y+dt);g.lineTo(x+s*2,y+dt);g.lineTo(x+dt,y+s*2);g.lineTo(x+dt,yy-s*2+dt);g.lineTo(x+s*2,yy+dt);g.lineTo(xx+1,yy+dt);if(d.isEnabled===true){g.setColor(t==="over"?this.fillColor1:this.fillColor2);g.fill()}g.setColor(t==="selected"||t==="over"?this.onColor1:this.offColor);g.stroke();if(d.isEnabled===true){ww=Math.floor((w-6)/2);g.setColor(this.fillColor3);g.fillRect(xx-ww+1,y+s,ww,h-s-1)}if(t==="out"){g.setColor(this.onColor2);g.drawLine(x+2*s+1,yy-s,xx+1,yy-s,s)}break;case"right":xx-=dt;g.moveTo(x,y+dt);g.lineTo(xx-2*s,y+dt);g.lineTo(xx,y+2*s);g.lineTo(xx,yy-2*s);g.lineTo(xx-2*s,yy+dt);g.lineTo(x,yy+dt);if(d.isEnabled===true){g.setColor(t==="over"?this.fillColor1:this.fillColor2);g.fill()}g.setColor(t==="selected"||t==="over"?this.onColor1:this.offColor);g.stroke();if(d.isEnabled===true){ww=Math.floor((w-6)/2);g.setColor(this.fillColor3);g.fillRect(x,y+s,ww,h-s-1)}if(t==="out"){g.setColor(this.onColor2);g.drawLine(x,yy-s,xx-s-1,yy-s,s)}break;case"top":g.moveTo(x+dt,yy+1);g.lineTo(x+dt,y+s*2);g.lineTo(x+s*2,y+dt);g.lineTo(xx-s*2+s,y+dt);g.lineTo(xx+dt,y+s*2);g.lineTo(xx+dt,yy+1);if(d.isEnabled===true){g.setColor(t==="over"?this.fillColor1:this.fillColor2);g.fill()}g.setColor(t==="selected"||t==="over"?this.onColor1:this.offColor);g.stroke();if(d.isEnabled===true){g.setColor(this.fillColor3);hh=Math.floor((h-6)/2);g.fillRect(x+s,yy-hh+1,w-s-1,hh)}if(t==="selected"){g.setColor(this.onColor2);g.beginPath();g.moveTo(xx+dt-s,yy+1);g.lineTo(xx+dt-s,y+s*2);g.stroke()}break;case"bottom":yy-=dt;g.moveTo(x+dt,y);g.lineTo(x+dt,yy-2*s);g.lineTo(x+2*s+dt,yy);g.lineTo(xx-2*s,yy);g.lineTo(xx+dt,yy-2*s);g.lineTo(xx+dt,y);if(d.isEnabled===true){g.setColor(t==="over"?this.fillColor1:this.fillColor2);g.fill()}g.setColor(t==="selected"||t==="over"?this.onColor1:this.offColor);g.stroke();if(d.isEnabled===true){g.setColor(this.fillColor3);hh=Math.floor((h-6)/2);g.fillRect(x+s,y,w-s-1,hh)}if(t==="selected"){g.setColor(this.onColor2);g.beginPath();g.moveTo(xx+dt-s,y);g.lineTo(xx+dt-s,yy-s-1);g.stroke()}break;default:throw new Error("Invalid tab alignment")}};this.getTop=function(){return this.top};this.getBottom=function(){return this.bottom};this.getLeft=function(){return this.left};this.getRight=function(){return this.right}}]);pkg.TitledBorder=Class(pkg.Render,[function(b,a){if(arguments.length>1){this.lineAlignment=zebkit.util.$validateValue(a,"bottom","top","center")}this.setTarget(b)},function $prototype(){this.lineAlignment="bottom";this.getTop=function(){return this.target.getTop()};this.getLeft=function(){return this.target.getLeft()};this.getRight=function(){return this.target.getRight()};this.getBottom=function(){return this.target.getBottom()};this.outline=function(g,x,y,w,h,d){var xx=x+w,yy=y+h;if(typeof d.getTitleInfo!=="undefined"){var r=d.getTitleInfo();if(r!==null){switch(r.orient){case"bottom":var bottom=this.target.getBottom();switch(this.lineAlignment){case"center":yy=r.y+Math.floor((r.height-bottom)/2)+bottom;break;case"top":yy=r.y+r.height+bottom;break;case"bottom":yy=r.y;break}break;case"top":var top=this.target.getTop();switch(this.lineAlignment){case"center":y=r.y+Math.floor((r.height-top)/2);break;case"top":y=r.y-top;break;case"bottom":y=r.y+r.height;break}break;case"left":var left=this.target.getLeft();switch(this.lineAlignment){case"center":x=r.x+Math.floor((r.width-left)/2);break;case"top":x=r.x-left;break;case"bottom":x=r.x+r.width;break}break;case"right":var right=this.target.getRight();switch(this.lineAlignment){case"center":xx=r.x+Math.floor((r.width-right)/2)+right;break;case"top":xx=r.x+r.width+right;break;case"bottom":xx=r.x;break}break}}}if(this.target!==null&&typeof this.target.outline!=="undefined"&&this.target.outline(g,x,y,xx-x,yy-y,d)===true){return true}g.beginPath();g.rect(x,y,xx-x,yy-y);g.closePath();return true};this.$isIn=function(clip,x,y,w,h){var rx=clip.x>x?clip.x:x,ry=clip.y>y?clip.y:y,rw=Math.min(clip.x+clip.width,x+w)-rx,rh=Math.min(clip.y+clip.height,y+h)-ry;return clip.x===rx&&clip.y===ry&&clip.width===rw&&clip.height===rh};this.paint=function(g,x,y,w,h,d){if(typeof d.getTitleInfo!=="undefined"){var r=d.getTitleInfo();if(r!==null){var xx=x+w,yy=y+h,t=g.$states[g.$curState];switch(r.orient){case"top":var top=this.target.getTop();switch(this.lineAlignment){case"center":y=r.y+Math.floor((r.height-top)/2);break;case"top":y=r.y-top;break;case"bottom":y=r.y+r.height;break}if(this.$isIn(t,x+this.target.getLeft(),y,w-this.target.getRight()-this.target.getLeft(),yy-y-this.target.getBottom())){return}g.save();g.beginPath();g.moveTo(x,y);g.lineTo(r.x,y);g.lineTo(r.x,y+top);g.lineTo(r.x+r.width,y+top);g.lineTo(r.x+r.width,y);g.lineTo(xx,y);g.lineTo(xx,yy);g.lineTo(x,yy);g.lineTo(x,y);break;case"bottom":var bottom=this.target.getBottom();switch(this.lineAlignment){case"center":yy=r.y+Math.floor((r.height-bottom)/2)+bottom;break;case"top":yy=r.y+r.height+bottom;break;case"bottom":yy=r.y;break}if(this.$isIn(t,x+this.target.getLeft(),y+this.target.getTop(),w-this.target.getRight()-this.target.getLeft(),yy-y-this.target.getTop())){return}g.save();g.beginPath();g.moveTo(x,y);g.lineTo(xx,y);g.lineTo(xx,yy);g.lineTo(r.x+r.width,yy);g.lineTo(r.x+r.width,yy-bottom);g.lineTo(r.x,yy-bottom);g.lineTo(r.x,yy);g.lineTo(x,yy);g.lineTo(x,y);break;case"left":var left=this.target.getLeft();switch(this.lineAlignment){case"center":x=r.x+Math.floor((r.width-left)/2);break;case"top":x=r.x-left;break;case"bottom":x=r.x+r.width;break}if(this.$isIn(t,x,y+this.target.getTop(),xx-x-this.target.getRight(),h-this.target.getTop()-this.target.getBottom())){return}g.save();g.beginPath();g.moveTo(x,y);g.lineTo(xx,y);g.lineTo(xx,yy);g.lineTo(x,yy);g.lineTo(x,r.y+r.height);g.lineTo(x+left,r.y+r.height);g.lineTo(x+left,r.y);g.lineTo(x,r.y);g.lineTo(x,y);break;case"right":var right=this.target.getRight();switch(this.lineAlignment){case"center":xx=r.x+Math.floor((r.width-right)/2)+right;break;case"top":xx=r.x+r.width+right;break;case"bottom":xx=r.x;break}if(this.$isIn(t,x+this.target.getLeft(),y+this.target.getTop(),xx-x-this.target.getLeft(),h-this.target.getTop()-this.target.getBottom())){return}g.save();g.beginPath();g.moveTo(x,y);g.lineTo(xx,y);g.lineTo(xx,r.y);g.lineTo(xx-right,r.y);g.lineTo(xx-right,r.y+r.height);g.lineTo(xx,r.y+r.height);g.lineTo(xx,yy);g.lineTo(x,yy);g.lineTo(x,y);break;default:throw new Error("Invalid title orientation "+r.orient)}g.closePath();g.clip();this.target.paint(g,x,y,xx-x,yy-y,d);g.restore()}}else{this.target.paint(g,x,y,w,h,d)}}}]);pkg.CheckboxView=Class(pkg.View,[function(color){if(arguments.length>0)this.color=color},function $prototype(){this.color="rgb(65, 131, 255)";this.paint=function(g,x,y,w,h,d){g.beginPath();g.strokeStyle=this.color;g.lineWidth=2;g.moveTo(x+1,y+2);g.lineTo(x+w-3,y+h-3);g.stroke();g.beginPath();g.moveTo(x+w-2,y+2);g.lineTo(x+2,y+h-2);g.stroke();g.lineWidth=1}}]);pkg.BunldeView=Class(pkg.View,[function(dir,color){if(arguments.length>0){this.direction=zebkit.util.$validateValue(dir,"vertical","horizontal");if(arguments.length>1)this.color=color}},function $prototype(){this.color="#AAAAAA";this.direction="vertical";this.paint=function(g,x,y,w,h,d){g.beginPath();var r=0;if(this.direction==="vertical"){r=w/2;g.arc(x+r,y+r,r,Math.PI,0,false);g.lineTo(x+w,y+h-r);g.arc(x+r,y+h-r,r,0,Math.PI,false);g.lineTo(x,y+r)}else{r=h/2;g.arc(x+r,y+r,r,.5*Math.PI,1.5*Math.PI,false);g.lineTo(x+w-r,y);g.arc(x+w-r,y+h-r,r,1.5*Math.PI,.5*Math.PI,false);g.lineTo(x+r,y+h)}g.setColor(this.color);g.fill()}}]);pkg.RadioView=Class(pkg.View,[function(col1,col2){if(arguments.length>0){this.color1=col1;if(arguments.length>1){this.color2=col2}}},function $prototype(){this.color1="rgb(15, 81, 205)";this.color2="rgb(65, 131, 255)";this.paint=function(g,x,y,w,h,d){g.beginPath();if(g.fillStyle!=this.color1){g.fillStyle=this.color1}g.arc(Math.floor(x+w/2),Math.floor(y+h/2),Math.floor(w/3-.5),0,2*Math.PI,1,false);g.fill();g.beginPath();if(g.fillStyle!=this.color2){g.fillStyle=this.color2}g.arc(Math.floor(x+w/2),Math.floor(y+h/2),Math.floor(w/4-.5),0,2*Math.PI,1,false);g.fill()}}]);pkg.ToggleView=Class(pkg.View,[function(plus,color,bg,size){if(arguments.length>0){this.plus=plus;if(arguments.length>1){this.color=color;if(arguments.length>2){this.bg=bg;if(arguments.length>3){this.width=this.height=size}}}}},function $prototype(){this.color="white";this.bg="lightGray";this.plus=false;this.br=new pkg.Border("rgb(65, 131, 215)",1,3);this.width=this.height=12;this.paint=function(g,x,y,w,h,d){if(this.bg!==null&&(this.br===null||this.br.outline(g,x,y,w,h,d)===false)){g.beginPath();g.rect(x,y,w,h)}if(this.bg!==null){g.setColor(this.bg);g.fill()}if(this.br!==null){this.br.paint(g,x,y,w,h,d)}g.setColor(this.color);g.lineWidth=2;x+=2;w-=4;h-=4;y+=2;g.beginPath();g.moveTo(x,y+h/2);g.lineTo(x+w,y+h/2);if(this.plus){g.moveTo(x+w/2,y);g.lineTo(x+w/2,y+h)}g.stroke();g.lineWidth=1};this.getPreferredSize=function(){return{width:this.width,height:this.height}}}]);pkg.CaptionBgView=Class(pkg.View,[function(bg,gap,radius){if(arguments.length>0){this.bg=bg;if(arguments.length>1){this.gap=gap;if(arguments.length>2){this.radius=radius}}}},function $prototype(){this.gap=this.radius=6;this.bg="#66CCFF";this.paint=function(g,x,y,w,h,d){this.outline(g,x,y,w,h,d);g.setColor(this.bg);g.fill()};this.outline=function(g,x,y,w,h,d){g.beginPath();g.moveTo(x+this.radius,y);g.lineTo(x+w-this.radius*2,y);g.quadraticCurveTo(x+w,y,x+w,y+this.radius);g.lineTo(x+w,y+h);g.lineTo(x,y+h);g.lineTo(x,y+this.radius);g.quadraticCurveTo(x,y,x+this.radius,y);return true}}]);pkg.FocusEvent=Class(zebkit.util.Event,[function $prototype(){this.related=null}]);var FOCUS_EVENT=new pkg.FocusEvent;pkg.FocusManager=Class(pkg.Manager,[function $prototype(){this.focusOwner=null;this.$freeFocus=function(comp){if(this.focusOwner!==null&&(this.focusOwner===comp||zebkit.layout.isAncestorOf(comp,this.focusOwner))){this.requestFocus(null)}};this.compEnabled=function(e){var c=e.source;if(c.isVisible===true&&c.isEnabled===false&&this.focusOwner!==null){this.$freeFocus(c)}};this.compShown=function(e){var c=e.source;if(c.isEnabled===true&&c.isVisible===false&&this.focusOwner!==null){this.$freeFocus(c)}};this.compRemoved=function(e){var c=e.kid;if(c.isEnabled===true&&c.isVisible===true&&this.focusOwner!==null){this.$freeFocus(c)}};this.hasFocus=function(c){return this.focusOwner===c};this.keyPressed=function(e){if("Tab"===e.code){var cc=this.ff(e.source,e.shiftKey?-1:1);if(cc!==null){this.requestFocus(cc)}return true}};this.findFocusable=function(c){return this.isFocusable(c)?c:this.fd(c,0,1)};this.isFocusable=function(c){var d=c.getCanvas();if(d!==null&&(c.canHaveFocus===true||typeof c.canHaveFocus==="function"&&c.canHaveFocus()===true)){for(;c!==d&&c!==null;c=c.parent){if(c.isVisible===false||c.isEnabled===false){return false}}return c===d}return false};this.fd=function(t,index,d){if(t.kids.length>0){var isNComposite=typeof t.catchInput==="undefined"||t.catchInput===false;for(var i=index;i>=0&&i<t.kids.length;i+=d){var cc=t.kids[i];if(cc.isEnabled===true&&cc.isVisible===true&&cc.width>0&&cc.height>0&&(isNComposite||t.catchInput!==true&&t.catchInput(cc)===false)&&(cc.canHaveFocus===true||typeof cc.canHaveFocus!=="undefined"&&cc.canHaveFocus!==false&&cc.canHaveFocus()||(cc=this.fd(cc,d>0?0:cc.kids.length-1,d))!==null)){return cc}}}return null};this.ff=function(c,d){var top=c;while(top!==null&&typeof top.getFocusRoot==="undefined"){top=top.parent}if(top===null){return null}top=top.getFocusRoot();if(top===null){return null}if(typeof top.traverseFocus!=="undefined"){return top.traverseFocus(c,d)}for(var index=d>0?0:c.kids.length-1;c!==top.parent;){var cc=this.fd(c,index,d);if(cc!==null){return cc}cc=c;c=c.parent;if(c!==null)index=d+c.indexOf(cc)}return this.fd(top,d>0?0:top.kids.length-1,d)};this.requestFocus=function(c){if(c!==this.focusOwner&&(c===null||this.isFocusable(c))){var oldFocusOwner=this.focusOwner;if(c!==null){var nf=c.getEventDestination();if(nf===null||oldFocusOwner===nf){return}this.focusOwner=nf}else{this.focusOwner=c}if(oldFocusOwner!==null){var ofc=oldFocusOwner.getCanvas();FOCUS_EVENT.source=oldFocusOwner;FOCUS_EVENT.related=this.focusOwner;oldFocusOwner.focused();pkg.events.fire("focusLost",FOCUS_EVENT)}if(this.focusOwner!==null){FOCUS_EVENT.source=this.focusOwner;FOCUS_EVENT.related=oldFocusOwner;this.focusOwner.focused();pkg.events.fire("focusGained",FOCUS_EVENT)}}};this.pointerPressed=function(e){if(e.isAction()){this.requestFocus(e.source)}}}]);pkg.events.regEvents("shortcutFired");pkg.ShortcutEvent=Class(zebkit.util.Event,[function(src,shortcut,keys){this.source=src;this.shortcut=shortcut;this.keys=keys}]);var SHORTCUT_EVENT=new pkg.ShortcutEvent;pkg.ShortcutManager=Class(pkg.Manager,[function $prototype(){this.keyPath=[];this.keyPressed=function(e){if(e.code===null||this.keyPath.length>5){this.keyPath=[]}else if(e.repeat===1){this.keyPath[this.keyPath.length]=e.code}var fo=pkg.focusManager.focusOwner;if(this.keyPath.length>1){var sh=this.keyShortcuts;for(var i=0;i<this.keyPath.length;i++){var code=this.keyPath[i];if(sh.hasOwnProperty(code)){sh=sh[code]}else{sh=null;break}}if(sh!==null){SHORTCUT_EVENT.source=fo;SHORTCUT_EVENT.shortcut=sh;SHORTCUT_EVENT.keys=this.keyPath.join("+");pkg.events.fire("shortcutFired",SHORTCUT_EVENT)}}};this.keyReleased=function(e){if(e.key==="Meta"){this.keyPath=[]}else{for(var i=0;i<this.keyPath.length;i++){if(this.keyPath[i]===e.code){this.keyPath.splice(i,1);break}}}};this.setShortcuts=function(shortcuts){for(var id in shortcuts){var shortcut=shortcuts[id];id=id.trim();if(Array.isArray(shortcut)===false){shortcut=[shortcut]}for(var j=0;j<shortcut.length;j++){var keys=shortcut[j].replace(/\s+/g,"").split("+"),st=this.keyShortcuts,len=keys.length;for(var i=0;i<len;i++){var key=keys[i];if(i===len-1){st[key]=id}else if(st.hasOwnProperty(key)===false||zebkit.isString(st[key])){st[key]={}}st=st[key]}}}}},function(shortcuts){this.$super();this.keyShortcuts={};if(arguments.length>0){this.setShortcuts(shortcuts.common);if(zebkit.isMacOS===true&&typeof shortcuts.osx!=="undefined"){this.setShortcuts(shortcuts.osx)}}}]);pkg.Cursor={DEFAULT:"default",MOVE:"move",WAIT:"wait",TEXT:"text",HAND:"pointer",NE_RESIZE:"ne-resize",SW_RESIZE:"sw-resize",SE_RESIZE:"se-resize",NW_RESIZE:"nw-resize",S_RESIZE:"s-resize",W_RESIZE:"w-resize",N_RESIZE:"n-resize",E_RESIZE:"e-resize",COL_RESIZE:"col-resize",HELP:"help"};pkg.$ViewsSetterMix=zebkit.Interface([function $prototype(){this.setViews=function(v){if(typeof this.views==="undefined"){this.views={}}var b=false;for(var k in v){if(v.hasOwnProperty(k)){var nv=pkg.$view(v[k]);if(this.views[k]!==nv){this.views[k]=nv;b=true}}}if(b===true){this.vrp()}return this}}]);pkg.$component=function(desc,instance){var hasInstance=arguments.length>1;if(zebkit.isString(desc)){var m=desc.match(/^(\[[x ]?\])/),txt=null;if(m!==null){txt=desc.substring(m[1].length);var ch=hasInstance&&typeof instance.clazz.Checkbox!=="undefined"?new instance.clazz.Checkbox(txt):new pkg.Checkbox(txt);ch.setValue(m[1].indexOf("x")>0);return ch}else{m=desc.match(/^@\((.*)\)(\:[0-9]+x[0-9]+)?/);if(m!==null){var path=m[1];txt=desc.substring(path.length+3+(typeof m[2]!=="undefined"?m[2].length:0)).trim();var img=hasInstance&&typeof instance.clazz.ImagePan!=="undefined"?new instance.clazz.ImagePan(path):new pkg.ImagePan(path);if(typeof m[2]!=="undefined"){var s=m[2].substring(1).split("x"),w=parseInt(s[0],10),h=parseInt(s[1],10);img.setPreferredSize(w,h)}if(txt.length===0){return img}return hasInstance&&typeof instance.clazz.ImageLabel!=="undefined"?new instance.clazz.ImageLabel(txt,img):new pkg.ImageLabel(txt,img)}else{return hasInstance&&typeof instance.clazz.Label!=="undefined"?new instance.clazz.Label(desc):new pkg.Label(desc)}}}else if(Array.isArray(desc)){if(desc.length>0&&Array.isArray(desc[0])){var model=new zebkit.data.Matrix(desc.length,desc[0].length);for(var row=0;row<model.rows;row++){for(var col=0;col<model.cols;col++){model.put(row,col,desc[row][col])}}return new pkg.grid.Grid(model)}else{var clz=hasInstance&&typeof instance.clazz.Combo!=="undefined"?instance.clazz.Combo:pkg.Combo,combo=new clz(new clz.CompList(true)),selectedIndex=-1;for(var i=0;i<desc.length;i++){var ss=desc[i];if(zebkit.isString(ss)){if(selectedIndex===-1&&ss.length>1&&ss[0]==="*"){selectedIndex=i;desc[i]=ss.substring(1)}}combo.list.add(pkg.$component(desc[i],combo.list))}combo.select(selectedIndex);return combo}}else if(desc instanceof Image){return hasInstance&&typeof instance.clazz.ImagePan!=="undefined"?new instance.clazz.ImagePan(desc):new pkg.ImagePan(desc)}else if(zebkit.instanceOf(desc,pkg.View)){var v=hasInstance&&typeof instance.clazz.ViewPan!=="undefined"?new instance.clazz.ViewPan:new pkg.ViewPan;v.setView(desc);return v}return desc};pkg.ViewPan=Class(pkg.Panel,[function $prototype(){this.view=null;this.paint=function(g){if(this.view!==null){var l=this.getLeft(),t=this.getTop();this.view.paint(g,l,t,this.width-l-this.getRight(),this.height-t-this.getBottom(),this)}};this.setView=function(v){var old=this.view;v=pkg.$view(v);if(v!==old){this.view=v;this.notifyRender(old,v);this.vrp()}return this};this.calcPreferredSize=function(t){return this.view!==null?this.view.getPreferredSize():{width:0,height:0}}}]);pkg.ImagePan=Class(pkg.ViewPan,[function(img,w,h){this.setImage(arguments.length>0?img:null);this.$super();if(arguments.length>2){this.setPreferredSize(w,h)}},function $prototype(){this.$runner=null;this.setImage=function(img){var $this=this;if(img!==null){var isPic=zebkit.instanceOf(img,pkg.Picture),imgToLoad=isPic?img.target:img;this.setView(isPic?img:new pkg.Picture(img));this.$runner=zebkit.util.image(imgToLoad);this.$runner.then(function(img){$this.$runner=null;$this.setView(isPic?img:new pkg.Picture(img));$this.vrp();if(typeof $this.imageLoaded!=="undefined"){$this.imageLoaded(img)}for(var t=$this.parent;t!==null;t=t.parent){if(typeof t.childImageLoaded!=="undefined"){t.childImageLoaded(img)}}}).catch(function(e){console.log(img);zebkit.dumpError(e);$this.$runner=null;$this.setView(null)})}else{if(this.$runner===null){this.setView(null)}else{this.$runner.then(function(){$this.setView(null)})}}return this}}]);pkg.Line=Class(pkg.Panel,[function(){this.$super();if(arguments.length>0){this.setColors.apply(this,arguments)}},function $prototype(){this.colors=["gray"];this.lineWidth=1;this.setColor=function(c){this.setColors(c);return this};this.setColors=function(){this.colors=arguments.length===1?Array.isArray(arguments[0])?arguments[0].slice(0):[arguments[0]]:Array.prototype.slice.call(arguments);this.repaint();return this};this.paint=function(g){var isHor=this.width>this.height,left=this.getLeft(),right=this.getRight(),top=this.getTop(),bottom=this.getBottom(),xy=isHor?top:left;for(var i=0;i<this.colors.length;i++){if(this.colors[i]!==null){g.setColor(this.colors[i]);if(isHor===true){g.drawLine(this.left,xy,this.width-right-left,xy,this.lineWidth)}else{g.drawLine(xy,top,xy,this.height-top-bottom,this.lineWidth)}}xy+=this.lineWidth}};this.calcPreferredSize=function(target){var s=this.colors.length*this.lineWidth;return{width:s,height:s}}}]);pkg.Label=Class(pkg.ViewPan,[function(r){if(arguments.length===0){this.setView(new pkg.StringRender(""))}else{if(typeof r==="string"||r.constructor===String){this.setView(r.length===0||r.indexOf("\n")>=0?new pkg.TextRender(new zebkit.data.Text(r)):new pkg.StringRender(r))}else if(typeof r.clazz!=="undefined"&&typeof r.getTextLength!=="undefined"&&typeof r.getLines!=="undefined"){this.setView(new pkg.TextRender(r))}else{this.setView(r)}}this.$super()},function $prototype(){this.getValue=function(){return this.view.getValue()};this.setModel=function(m){this.setView(zebkit.isString(m)?new pkg.StringRender(m):new pkg.TextRender(m));return this};this.getModel=function(){return this.view!==null?this.view.target:null};this.getColor=function(){return this.view.color};this.getFont=function(){return this.view.font};this.setValue=function(s){if(s===null)s="";var old=this.view.getValue();if(old!==s){this.view.setValue(s);this.repaint()}return this};this.setColor=function(c){var old=this.view.color;if(old!==c){this.view.setColor(c);this.repaint()}return this};this.setFont=function(f){var old=this.view.font;this.view.setFont.apply(this.view,arguments);if(old!=this.view.font){this.repaint()}return this}}]);pkg.BoldLabel=Class(pkg.Label,[]);pkg.ImageLabel=Class(pkg.Panel,[function(txt,path){var img=zebkit.instanceOf(path,pkg.ImagePan)?path:new this.clazz.ImagePan(path),lab=zebkit.instanceOf(txt,pkg.Panel)?txt:new this.clazz.Label(txt);img.constraints="image";lab.constraints="label";if(typeof this.kids==="undefined"){this.kids=[]}this.layout=new zebkit.layout.FlowLayout("left","center","horizontal",6);this.add(img);this.add(lab);this.$super();lab.setVisible(txt!==null)},function $clazz(){this.ImagePan=Class(pkg.ImagePan,[]);this.Label=Class(pkg.Label,[])},function $prototype(){this.setCaption=function(c){var lab=this.byConstraints("label");lab.setValue(c);lab.setVisible(c!==null);return this};this.setImage=function(p){var lab=this.byConstraints("image");image.setImage(p);image.setVisible(p!==null);return this};this.setFont=function(){var lab=this.byConstraints("label");if(lab!==null){lab.setFont.apply(lab,arguments)}return this};this.setColor=function(c){var lab=this.byConstraints("label");if(lab!==null){lab.setColor(c)}return this};this.getCaption=function(){return this.byConstraints("label")};this.setImgAlignment=function(a){var b=false,img=this.byConstraints("image"),i=this.indexOf(img);if(a==="top"||a==="bottom"){if(this.layout.direction!=="vertical"){this.layout.direction="vertical";b=true}}else if(a==="left"||a==="right"){if(this.layout.direction!=="horizontal"){this.layout.direction="horizontal";b=true}}if(this.layout.ax!=="center"){this.layout.ax="center";b=true}if(this.layout.ay!=="center"){this.layout.ay="center";b=true}if((a==="top"||a==="left")&&i!==0){this.insert("image",0,this.removeAt(i));b=false}else if((a==="bottom"||a==="right")&&i!==1){this.add("image",this.removeAt(i));b=false}if(b){this.vrp()}return this};this.setImgPreferredSize=function(w,h){if(arguments.length===1)h=w;this.byConstraints("image").setPreferredSize(w,h);return this}}]);pkg.Progress=Class(pkg.Panel,[function(){this.setBundleView("darkBlue");this._=new zebkit.util.Listeners;this.$super()},function $prototype(){this.value=0;this.bundleWidth=this.bundleHeight=6;this.gap=2;this.maxValue=20;this.bundleView=this.titleView=null;this.orient="horizontal";this.paint=function(g){var left=this.getLeft(),right=this.getRight(),top=this.getTop(),bottom=this.getBottom(),rs=this.orient==="horizontal"?this.width-left-right:this.height-top-bottom,bundleSize=this.orient==="horizontal"?this.bundleWidth:this.bundleHeight;if(rs>=bundleSize){var vLoc=Math.floor(rs*this.value/this.maxValue),x=left,y=this.height-bottom,bundle=this.bundleView,wh=this.orient==="horizontal"?this.height-top-bottom:this.width-left-right;while(x<vLoc+left&&this.height-vLoc-bottom<y){if(this.orient==="horizontal"){bundle.paint(g,x,top,bundleSize,wh,this);x+=bundleSize+this.gap}else{bundle.paint(g,left,y-bundleSize,wh,bundleSize,this);y-=bundleSize+this.gap}}if(this.titleView!==null){var ps=this.bundleView.getPreferredSize();this.titleView.paint(g,Math.floor((this.width-ps.width)/2),Math.floor((this.height-ps.height)/2),ps.width,ps.height,this)}}};this.calcPreferredSize=function(l){var bundleSize=this.orient==="horizontal"?this.bundleWidth:this.bundleHeight,v1=this.maxValue*bundleSize+(this.maxValue-1)*this.gap,ps=this.bundleView.getPreferredSize();ps=this.orient==="horizontal"?{width:v1,height:this.bundleHeight>=0?this.bundleHeight:ps.height}:{width:this.bundleWidth>=0?this.bundleWidth:ps.width,height:v1};if(this.titleView!==null){var tp=this.titleView.getPreferredSize();ps.width=Math.max(ps.width,tp.width);ps.height=Math.max(ps.height,tp.height)}return ps}},function setOrientation(o){if(o!==this.orient){this.orient=zebkit.util.$validateValue(o,"horizontal","vertical");this.vrp()}return this},function setMaxValue(m){if(m!==this.maxValue){this.maxValue=m;this.setValue(this.value);this.vrp()}return this},function setValue(p){p=p%(this.maxValue+1);if(this.value!==p){var old=this.value;this.value=p;this._.fired(this,old);this.repaint()}return this},function setGap(g){if(this.gap!==g){this.gap=g;this.vrp()}return this},function setBundleView(v){if(this.bundleView!=v){this.bundleView=pkg.$view(v);this.vrp()}return this},function setBundleSize(w,h){if(w!==this.bundleWidth&&h!==this.bundleHeight){this.bundleWidth=w;this.bundleHeight=h;this.vrp()}return this}]);pkg.StatePan=Class(pkg.ViewPan,[function $prototype(){this.state=null;this.setState=function(s){if(s!==this.state){var prev=this.state;this.state=s;this.stateUpdated(prev,s)}return this};this.stateUpdated=function(o,n){var b=false,id=typeof this.toViewId!=="undefined"?this.toViewId(n):n;if(id!==null){for(var i=0;i<this.kids.length;i++){var kid=this.kids[i];if(typeof kid.setState!=="undefined"){kid.setState(id)}}if(this.border!==null&&typeof this.border.activate!=="undefined"){b=this.border.activate(id,this)===true||b}if(this.view!==null&&typeof this.view.activate!=="undefined"){b=this.view.activate(id,this)===true||b}if(this.bg!==null&&typeof this.bg.activate!=="undefined"){b=this.bg.activate(id,this)===true||b}if(b){this.repaint()}}};this.syncState=function(){this.stateUpdated(this.state,this.state)}},function setView(v){if(v!=this.view){this.$super(v);if(typeof this.kids!=="undefined"){this.syncState(this.state,this.state)}}return this},function setBorder(v){if(v!=this.border){this.$super(v);this.syncState(this.state,this.state)}return this},function setBackground(v){if(v!=this.bg){this.$super(v);this.syncState(this.state,this.state)}return this}]);var OVER="over",PRESSED_OVER="pressed.over",OUT="out",PRESSED_OUT="pressed.out",DISABLED="disabled";pkg.EvStatePan=Class(pkg.StatePan,[function $prototype(){this.state=OUT;this.$isIn=false;this.toViewId=function(state){return state};this._keyPressed=function(e){if(this.state!==PRESSED_OVER&&this.state!==PRESSED_OUT&&(e.code==="Enter"||e.code==="Space")){this.setState(PRESSED_OVER)}};this._keyReleased=function(e){if(this.state===PRESSED_OVER||this.state===PRESSED_OUT){var prev=this.state;this.setState(OVER);if(this.$isIn===false)this.setState(OUT)}};this._pointerEntered=function(e){if(this.isEnabled===true){this.setState(this.state===PRESSED_OUT?PRESSED_OVER:OVER);this.$isIn=true}};this._pointerPressed=function(e){if(this.state!==PRESSED_OVER&&this.state!==PRESSED_OUT&&e.isAction()){this.setState(PRESSED_OVER)}};this._pointerReleased=function(e){if((this.state===PRESSED_OVER||this.state===PRESSED_OUT)&&e.isAction()){if(e.source===this){this.setState(e.x>=0&&e.y>=0&&e.x<this.width&&e.y<this.height?OVER:OUT)}else{var p=zebkit.layout.toParentOrigin(e.x,e.y,e.source,this);this.$isIn=p.x>=0&&p.y>=0&&p.x<this.width&&p.y<this.height;this.setState(this.$isIn?OVER:OUT)}}};this.childKeyPressed=function(e){this._keyPressed(e)};this.childKeyReleased=function(e){this._keyReleased(e)};this.childPointerEntered=function(e){this._pointerEntered(e)};this.childPointerPressed=function(e){this._pointerPressed(e)};this.childPointerReleased=function(e){this._pointerReleased(e)};this.childPointerExited=function(e){if(e.x>=0&&e.y>=0&&e.x<e.source.width&&e.y<e.source.height){this.$isIn=false}else{var p=zebkit.layout.toParentOrigin(e.x,e.y,e.source,this);this.$isIn=p.x>=0&&p.y>=0&&p.x<this.width&&p.y<this.height}if(this.$isIn===false){this.setState(this.state===PRESSED_OVER?PRESSED_OUT:OUT)}};this.keyPressed=function(e){this._keyPressed(e)};this.keyReleased=function(e){this._keyReleased(e)};this.pointerEntered=function(e){this._pointerEntered()};this.pointerExited=function(e){if(this.isEnabled===true){this.setState(this.state===PRESSED_OVER?PRESSED_OUT:OUT);this.$isIn=false}};this.pointerPressed=function(e){this._pointerPressed(e)};this.pointerReleased=function(e){this._pointerReleased(e)};this.pointerDragged=function(e){if(e.isAction()){var pressed=this.state===PRESSED_OUT||this.state===PRESSED_OVER;if(e.x>0&&e.y>0&&e.x<this.width&&e.y<this.height){this.setState(pressed?PRESSED_OVER:OVER)}else{this.setState(pressed?PRESSED_OUT:OUT)}}}},function setEnabled(b){this.$super(b);this.setState(b?OUT:DISABLED);return this}]);pkg.CompositeEvStatePan=Class(pkg.EvStatePan,[function $prototype(){this.canHaveFocus=true;this.catchInput=true;this.focusComponent=null;this.focusMarkerView=null;this.focusMarkerGaps=2;this.paintOnTop=function(g){var fc=this.focusComponent;if(this.focusMarkerView!==null&&fc!==null&&this.hasFocus()){this.focusMarkerView.paint(g,fc.x-this.focusMarkerGaps,fc.y-this.focusMarkerGaps,this.focusMarkerGaps*2+fc.width,this.focusMarkerGaps*2+fc.height,this)}};this.setFocusMarkerView=function(c){if(c!=this.focusMarkerView){this.focusMarkerView=pkg.$view(c);this.repaint()}return this};this.setCanHaveFocus=function(b){if(this.canHaveFocus!==b){var fm=pkg.focusManager;if(b===false&&fm.focusOwner===this){fm.requestFocus(null)}this.canHaveFocus=b}return this};this.setFocusAnchorComponent=function(c){if(this.focusComponent!==c){if(c!==null&&this.kids.indexOf(c)<0){throw new Error("Focus component doesn't exist")}this.focusComponent=c;this.repaint()}return this}},function focused(){this.$super();this.repaint()},function kidRemoved(i,l){if(l===this.focusComponent){this.focusComponent=null}this.$super(i,l)}]);pkg.ButtonRepeatMix=zebkit.Interface([function $prototype(){this.isFireByPress=false;this.firePeriod=-1;this.startIn=400;this.$repeatTask=null;this.setFireParams=function(b,firePeriod,startIn){if(this.$repeatTask!==null){this.$repeatTask.shutdown()}this.isFireByPress=b;this.firePeriod=firePeriod;if(arguments.length>2){this.startIn=startIn}return this};this.$fire=function(){this.fire();if(typeof this.fired!=="undefined"){this.fired()}}},function stateUpdated(o,n){this.$super(o,n);if(n==="pressed.over"){if(this.isFireByPress===true){this.$fire();if(this.firePeriod>0){var $this=this;this.$repeatTask=zebkit.util.tasksSet.run(function(){if($this.state==="pressed.over"){$this.$fire()}},this.startIn,this.firePeriod)}}}else{if(this.firePeriod>0&&this.$repeatTask!==null){this.$repeatTask.shutdown()}if(n==="over"&&(o==="pressed.over"&&this.isFireByPress===false)){this.$fire()}}}]);pkg.ArrowButton=Class(pkg.EvStatePan,zebkit.util.Fireable,pkg.ButtonRepeatMix,[function(direction){this._=new zebkit.util.Listeners;this.cursorType=pkg.Cursor.HAND;if(arguments.length>0){this.direction=zebkit.util.$validateValue(direction,"left","right","top","bottom")}var clz=typeof this.clazz.$colors!=="undefined"?this.clazz:pkg.ArrowButton;this.setView({out:new clz.ArrowView(this.direction,clz.$colors.out),over:new clz.ArrowView(this.direction,clz.$colors.over),"pressed.over":new clz.ArrowView(this.direction,clz.$colors["pressed.over"]),disabled:new clz.ArrowView(this.direction,clz.$colors.disabled)});this.$super();this.syncState(this.state,this.state)},function $clazz(){this.ArrowView=Class(pkg.ArrowView,[]);this.$colors={out:"red",over:"red","pressed.over":"black",disabled:"lightGray"}},function $prototype(){this.direction="left";this.setArrowDirection=function(d){this.iterateArrowViews(function(k,v){if(v!==null)v.direction=d});this.repaint();return this};this.setArrowSize=function(w,h){if(arguments.length<2)h=w;this.iterateArrowViews(function(k,v){if(v!==null){v.width=w;v.height=h}});this.vrp();return this};this.setArrowColors=function(pressedColor,overColor,outColor){var views=this.view.views;if(views.out!==null&&typeof views.out!=="undefined"){views.out.color=outColor}if(views.over.color!==null&&typeof views.over!=="undefined"){views.over.color=overColor}if(views["pressed.over"]!==null&&typeof views["pressed.over"]!=="undefined"){views["pressed.over"].color=pressedColor}this.repaint();return this};this.iterateArrowViews=function(callback){var views=this.view.views;for(var k in views){if(views.hasOwnProperty(k)){callback.call(this,k,views[k])}}return this}}]);pkg.Button=Class(pkg.CompositeEvStatePan,zebkit.util.Fireable,pkg.ButtonRepeatMix,[function(t){this._=new zebkit.util.Listeners;this.$super();if(arguments.length>0&&t!==null){t=pkg.$component(t,this);this.add(t);this.setFocusAnchorComponent(t)}},function $clazz(){this.Label=Class(pkg.Label,[]);this.ViewPan=Class(pkg.ViewPan,[function(v){this.$super();this.setView(v)},function $prototype(){this.setState=function(id){if(this.view!==null&&typeof this.view.activate!=="undefined"){this.activate(id)}}}]);this.ImageLabel=Class(pkg.ImageLabel,[])},function $prototype(){this.canHaveFocus=true}]);pkg.SwitchManager=Class(zebkit.EventProducer,[function(){this._=new zebkit.util.Listeners},function $prototype(){this.value=false;this.getValue=function(o){return this.value};this.setValue=function(o,b){if(this.getValue(o)!==b){this.value=b;this.updated(o,b)}return this};this.toggle=function(o){this.setValue(o,!this.getValue(o));return this};this.updated=function(o,b){if(o!==null)o.switched(b);this._.fired(this,o)};this.install=function(o){o.switched(this.getValue(o))};this.uninstall=function(o){}}]);pkg.Group=Class(pkg.SwitchManager,[function(un){this.$super();this.selected=null;if(arguments.length>0){this.allowNoneSelected=un}},function $prototype(){this.allowNoneSelected=false;this.getValue=function(o){return o===this.selected};this.setValue=function(o,b){if(this.allowNoneSelected&&b===false&&this.selected!==null){var old=this.selected;this.selected=null;this.updated(old,false)}else if(b&&this.selected!==o){this.clearSelected();this.selected=o;this.updated(this.selected,true)}return this};this.clearSelected=function(){if(this.selected!==null){var old=this.selected;this.selected=null;this.updated(old,false)}}}]);pkg.Switchable=zebkit.Interface([function $prototype(){this.manager=null;this.setValue=function(b){this.manager.setValue(this,b);return this};this.toggle=function(){this.manager.toggle(this);return this};this.getValue=function(){return this.manager?this.manager.getValue(this):false};this.setSwitchManager=function(m){if(m===null||typeof m==="undefined"){throw new Error("Null switch manager")}if(this.manager!==m){if(this.manager!==null)this.manager.uninstall(this);this.manager=m;this.manager.install(this)}return this}}]);pkg.Checkbox=Class(pkg.CompositeEvStatePan,pkg.Switchable,[function(c,m){if(arguments.length<2){m=new pkg.SwitchManager}if(arguments.length>0){if(c!==null&&zebkit.isString(c)){c=new this.clazz.Label(c)}}this.$super();this.box=new this.clazz.Box;this.add(this.box);if(c!==null){this.add(c);this.setFocusAnchorComponent(c)}this.setSwitchManager(m)},function $clazz(){this.Box=Class(pkg.StatePan,[]);this.Label=Class(pkg.Label,[])},function $prototype(){this.switched=function(b){this.stateUpdated(this.state,this.state)};this.toViewId=function(state){if(this.isEnabled===true){if(this.getValue()){return this.state==="over"?"pressed.over":"pressed.out"}return this.state==="over"?"over":"out"}return this.getValue()?"pressed.disabled":"disabled"}},function keyPressed(e){if(zebkit.instanceOf(this.manager,pkg.Group)&&this.getValue()){var d=0;if(e.code==="ArrowLeft"||e.code==="ArrowUp"){d=-1}else if(e.code==="ArrowRight"||e.code==="ArrowDown"){d=1}if(d!==0){var p=this.parent;for(var i=p.indexOf(this)+d;i<p.kids.length&&i>=0;i+=d){var l=p.kids[i];if(l.isVisible===true&&l.isEnabled===true&&zebkit.instanceOf(l,pkg.Checkbox)&&l.manager===this.manager){l.requestFocus();l.setValue(true);break}}return}}this.$super(e)},function stateUpdated(o,n){if(o==="pressed.over"&&n==="over"){this.toggle()}this.$super(o,n)},function kidRemoved(index,c){if(this.box===c){this.box=null}this.$super(index,c)}]);pkg.Radiobox=Class(pkg.Checkbox,[function(c,group){if(arguments.length<2){this.$super(c,new pkg.Group)}else{this.$super(c,group)}}]);pkg.Link=Class(pkg.Button,[function(s){this.view=new pkg.DecoratedTextRender(s);this.overDecoration="underline";this.$super(null);if(this.colors===null){this.colors={"pressed.over":"blue",out:"white",over:"white","pressed.out":"black",disabled:"gray"}}this.stateUpdated(this.state,this.state)},function $prototype(){this.colors=null;this.cursorType=pkg.Cursor.HAND;this.setFont=function(f){var old=this.view!==null?this.view.font:null;this.view.setFont.apply(this.view,arguments);if(old!==this.view.font){this.vrp()}return this};this.setColor=function(state,c){if(this.colors[state]!==c){this.colors[state]=c;this.syncState()}return this};this.setColors=function(colors){this.colors=zebkit.clone(colors);this.syncState();return this};this.setValue=function(s){this.view.setValue(s.toString());this.repaint();return this}},function stateUpdated(o,n){this.$super(o,n);var k=this.toViewId(n),b=false;if(this.view!==null&&this.view.color!==this.colors[k]&&this.colors[k]!==null&&typeof this.colors[k]!=="undefined"){this.view.setColor(this.colors[k]);b=true}if(this.view.decorations!=null&&this.overDecoration!=null&&this.isEnabled){if(n==="over"){this.view.setDecoration(this.overDecoration,this.colors[k]);b=true}else if(this.view.decorations[this.overDecoration]!=null){this.view.setDecoration(this.overDecoration,null);b=true}}if(b){this.repaint()}}]);pkg.Button.Link=Class(pkg.Link,[]);pkg.Toolbar=Class(pkg.Panel,[function(){this._=new zebkit.util.Listeners;this.$super()},function $clazz(){this.ToolPan=Class(pkg.EvStatePan,[function(c){this.$super(new zebkit.layout.BorderLayout);this.add("center",c)},function getContentComponent(){return this.kids[0]},function stateUpdated(o,n){this.$super(o,n);if(o==="pressed.over"&&n==="over"){this.parent._.fired(this)}}]);this.ImagePan=Class(pkg.ImagePan,[]);this.Line=Class(pkg.Line,[]);this.Checkbox=Class(pkg.Checkbox,[]);this.Radiobox=Class(pkg.Radiobox,[])},function $prototype(){this.isDecorative=function(c){return zebkit.instanceOf(c,pkg.EvStatePan)===false};this.addRadio=function(g,c){var cbox=new this.clazz.Radiobox(c,g);cbox.setCanHaveFocus(false);return this.add(cbox)};this.addSwitcher=function(c){var cbox=new this.clazz.Checkbox(c);cbox.setCanHaveFocus(false);return this.add(cbox)};this.addImage=function(img){this.validateMetric();return this.add(new this.clazz.ImagePan(img))};this.addLine=function(){var line=new this.clazz.Line;line.constraints="stretch";return this.addDecorative(line)}},function addDecorative(c){return this.$getSuper("insert").call(this,this.kids.length,null,c)},function insert(i,id,d){if(d==="-"){var line=new this.clazz.Line;line.constraints="stretch";return this.$super(i,null,line)}else if(Array.isArray(d)){d=new this.clazz.Combo(d)}return this.$super(i,id,new this.clazz.ToolPan(d))}]);pkg.BorderPan=Class(pkg.Panel,[function(title,center,o,a){if(arguments.length>0){title=pkg.$component(title,this)}if(arguments.length>2){this.orient=o}if(arguments.length>3){this.alignment=a}this.$super();if(arguments.length>0)this.add("caption",title);if(arguments.length>1)this.add("center",center)},function $clazz(){this.Label=Class(pkg.Label,[]);this.ImageLabel=Class(pkg.ImageLabel,[]);this.Checkbox=Class(pkg.Checkbox,[])},function $prototype(){this.label=this.content=null;this.vGap=this.hGap=2;this.indent=4;this.orient="top";this.alignment="left";this.getTitleInfo=function(){return this.label!==null?{x:this.label.x,y:this.label.y,width:this.label.width,height:this.label.height,orient:this.orient}:null};this.calcPreferredSize=function(target){var ps=this.content!==null&&this.content.isVisible===true?this.content.getPreferredSize():{width:0,height:0};if(this.label!==null&&this.label.isVisible===true){var lps=this.label.getPreferredSize();ps.height+=lps.height;ps.width=Math.max(ps.width,lps.width+this.indent)}ps.width+=this.hGap*2;ps.height+=this.vGap*2;return ps};this.doLayout=function(target){var h=0,right=this.getRight(),left=this.getLeft(),top=this.orient==="top"?this.top:this.getTop(),bottom=this.orient==="bottom"?this.bottom:this.getBottom();if(this.label!==null&&this.label.isVisible===true){var ps=this.label.getPreferredSize();h=ps.height;this.label.setBounds(this.alignment==="left"?left+this.indent:this.alignment==="right"?this.width-right-ps.width-this.indent:Math.floor((this.width-ps.width)/2),this.orient==="bottom"?this.height-bottom-ps.height:top,ps.width,h)}if(this.content!==null&&this.content.isVisible===true){this.content.setBounds(left+this.hGap,(this.orient==="bottom"?top:top+h)+this.vGap,this.width-right-left-2*this.hGap,this.height-top-bottom-h-2*this.vGap)}};this.setGaps=function(vg,hg){if(this.vGap!==vg||hg!==this.hGap){this.vGap=vg;this.hGap=hg;this.vrp()}return this};this.setOrientation=function(o){if(this.orient!==o){this.orient=zebkit.util.$validateValue(o,"top","bottom");this.vrp()}return this};this.setAlignment=function(a){if(this.alignment!==a){this.alignment=zebkit.util.$validateValue(a,"left","right","center");this.vrp()}return this}},function setBorder(br){br=pkg.$view(br);if(zebkit.instanceOf(br,pkg.TitledBorder)===false){br=new pkg.TitledBorder(br,"center")}return this.$super(br)},function kidAdded(index,ctr,lw){this.$super(index,ctr,lw);if(ctr===null&&this.content===null||"center"===ctr){this.content=lw}else if(this.label===null){this.label=lw}},function kidRemoved(index,lw){this.$super(index,lw);if(lw===this.label){this.label=null}else if(this.content===lw){this.content=null}}]);pkg.SplitPan=Class(pkg.Panel,[function(f,s,o){if(arguments.length>2){this.orient=o}this.$super();if(arguments.length>0)this.add("left",f);if(arguments.length>1)this.add("right",s);this.add("center",new this.clazz.Bar(this))},function $clazz(){this.Bar=Class(pkg.EvStatePan,[function(target){this.target=target;this.$super()},function $prototype(){this.prevLoc=0;this.pointerDragged=function(e){var x=this.x+e.x,y=this.y+e.y;if(this.target.orient==="vertical"){if(this.prevLoc!==x){x=this.target.normalizeBarLoc(x);if(x>0){this.prevLoc=x;this.target.setGripperLoc(x)}}}else{if(this.prevLoc!==y){y=this.target.normalizeBarLoc(y);if(y>0){this.prevLoc=y;this.target.setGripperLoc(y)}}}};this.pointerDragStarted=function(e){var x=this.x+e.x,y=this.y+e.y;if(e.isAction()){if(this.target.orient==="vertical"){x=this.target.normalizeBarLoc(x);if(x>0)this.prevLoc=x}else{y=this.target.normalizeBarLoc(y);if(y>0)this.prevLoc=y}}};this.pointerDragEnded=function(e){var xy=this.target.normalizeBarLoc(this.target.orient==="vertical"?this.x+e.x:this.y+e.y);if(xy>0)this.target.setGripperLoc(xy)};this.getCursorType=function(t,x,y){return this.target.orient==="vertical"?pkg.Cursor.W_RESIZE:pkg.Cursor.N_RESIZE}}])},function $prototype(){this.leftMinSize=this.rightMinSize=50;this.isMoveable=true;this.gap=1;this.orient="vertical";this.minXY=this.maxXY=0;this.barLocation=70;this.leftComp=this.rightComp=this.gripper=null;this.normalizeBarLoc=function(xy){if(xy<this.minXY)xy=this.minXY;else{if(xy>this.maxXY)xy=this.maxXY}return xy>this.maxXY||xy<this.minXY?-1:xy};this.setOrientation=function(o){if(o!==this.orient){this.orient=zebkit.util.$validateValue(o,"horizontal","vertical");this.vrp()}return this};this.setGripperLoc=function(l){if(l!==this.barLocation){this.barLocation=l;this.vrp()}return this};this.calcPreferredSize=function(c){var fSize=pkg.$getPS(this.leftComp),sSize=pkg.$getPS(this.rightComp),bSize=pkg.$getPS(this.gripper);if(this.orient==="horizontal"){bSize.width=Math.max(fSize.width>sSize.width?fSize.width:sSize.width,bSize.width);bSize.height=fSize.height+sSize.height+bSize.height+2*this.gap}else{bSize.width=fSize.width+sSize.width+bSize.width+2*this.gap;bSize.height=Math.max(fSize.height>sSize.height?fSize.height:sSize.height,bSize.height)}return bSize};this.doLayout=function(target){var right=this.getRight(),top=this.getTop(),bottom=this.getBottom(),left=this.getLeft(),bSize=pkg.$getPS(this.gripper);if(this.orient==="horizontal"){var w=this.width-left-right;if(this.barLocation<top)this.barLocation=top;else{if(this.barLocation>this.height-bottom-bSize.height){this.barLocation=this.height-bottom-bSize.height}}if(this.gripper!==null){if(this.isMoveable){this.gripper.setBounds(left,this.barLocation,w,bSize.height)}else{this.gripper.toPreferredSize();this.gripper.setLocation(Math.floor((w-bSize.width)/2),this.barLocation)}}if(this.leftComp!==null){this.leftComp.setBounds(left,top,w,this.barLocation-this.gap-top)}if(this.rightComp!==null){this.rightComp.setLocation(left,this.barLocation+bSize.height+this.gap);this.rightComp.setSize(w,this.height-this.rightComp.y-bottom)}}else{var h=this.height-top-bottom;if(this.barLocation<left)this.barLocation=left;else{if(this.barLocation>this.width-right-bSize.width){this.barLocation=this.width-right-bSize.width}}if(this.gripper!==null){if(this.isMoveable===true){this.gripper.setBounds(this.barLocation,top,bSize.width,h)}else{this.gripper.setBounds(this.barLocation,Math.floor((h-bSize.height)/2),bSize.width,bSize.height)}}if(this.leftComp!==null){this.leftComp.setBounds(left,top,this.barLocation-left-this.gap,h)}if(this.rightComp!==null){this.rightComp.setLocation(this.barLocation+bSize.width+this.gap,top);this.rightComp.setSize(this.width-this.rightComp.x-right,h)}}};this.setGap=function(g){if(this.gap!==g){this.gap=g;this.vrp()}return this};this.setLeftMinSize=function(m){if(this.leftMinSize!==m){this.leftMinSize=m;this.vrp()}return this};this.setRightMinSize=function(m){if(this.rightMinSize!==m){this.rightMinSize=m;this.vrp()}return this};this.setGripperMovable=function(b){if(b!==this.isMoveable){this.isMoveable=b;this.vrp()}return this}},function kidAdded(index,ctr,c){this.$super(index,ctr,c);if(ctr===null&&this.leftComp===null||"left"===ctr){this.leftComp=c}else if(ctr===null&&this.rightComp===null||"right"===ctr){this.rightComp=c}else{if("center"===ctr)this.gripper=c;else throw new Error(""+ctr)}},function kidRemoved(index,c){this.$super(index,c);if(c===this.leftComp)this.leftComp=null;else{if(c===this.rightComp){this.rightComp=null}else{if(c===this.gripper)this.gripper=null}}},function resized(pw,ph){var ps=this.gripper.getPreferredSize();if(this.orient==="vertical"){this.minXY=this.getLeft()+this.gap+this.leftMinSize;this.maxXY=this.width-this.gap-this.rightMinSize-ps.width-this.getRight()}else{this.minXY=this.getTop()+this.gap+this.leftMinSize;this.maxXY=this.height-this.gap-this.rightMinSize-ps.height-this.getBottom()}this.$super(pw,ph)}]);pkg.CollapsiblePan=Class(pkg.Panel,pkg.Switchable,[function(lab,content,sm){this.$super();this.titlePan=new this.clazz.TitlePan;this.add("top",this.titlePan);this.titlePan.add(new this.clazz.TogglePan(this));this.titlePan.add(pkg.$component(arguments.length===0||lab===null?"":lab,this));if(arguments.length>1&&content!==null){this.contentPan=content;this.add("center",this.contentPan)}this.setSwitchManager(arguments.length>2?sm:new pkg.SwitchManager)},function $clazz(){this.Label=Class(pkg.Label,[]);this.ImageLabel=Class(pkg.ImageLabel,[]);this.TitlePan=Class(pkg.StatePan,[]);this.TogglePan=Class(pkg.StatePan,[function(sw){if(zebkit.instanceOf(sw,pkg.Switchable)===false){throw new Error("Passed component has to implement Switchable interface")}this.switchable=sw;this.$super()},function $prototype(){this.switchable=null;this.cursorType=pkg.Cursor.HAND;this.pointerPressed=function(e){if(e.isAction()){this.switchable.toggle()}}}]);this.GroupPan=Class(pkg.Panel,[function $clazz(){this.Group=Class(pkg.Group,[function(target){this.target=target;this.$super(true)},function setValue(o,v){var selected=this.selected;this.$super(o,v);if(v===false&&selected!==null&&this.selected===null){var i=this.target.indexOf(selected);i=(i+1)%this.target.kids.length;if(this.target.kids[i]!==selected){this.setValue(this.target.kids[i],true)}}return this}])},function $prototype(){this.doLayout=function(t){var y=t.getTop(),x=t.getLeft(),w=t.width-x-t.getRight(),eh=t.height-y-t.getBottom(),kid=null,i=0;for(i=0;i<t.kids.length;i++){kid=t.kids[i];if(kid.isVisible){if(kid.getValue()===false){var psh=kid.getPreferredSize().height;eh-=psh;kid.setSize(w,psh)}}}for(i=0;i<t.kids.length;i++){kid=t.kids[i];if(kid.isVisible){kid.setLocation(x,y);if(kid.getValue()){kid.setSize(w,eh)}y+=kid.height}}};this.calcPreferredSize=function(t){var w=0,h=0;for(var i=0;i<t.kids.length;i++){var kid=t.kids[i];if(kid.isVisible){var ps=kid.getPreferredSize();h+=ps.height;if(ps.width>w)w=ps.width}}return{width:w,height:h}};this.compAdded=function(e){e.kid.setSwitchManager(this.group);if(this.group.selected===null){this.group.setValue(e.kid,true)}};this.compRemoved=function(e){if(this.group.selected===e.kid){this.group.setValue(e.kid,false)}e.kid.setSwitchManager(null)}},function(){this.group=new this.clazz.Group(this);this.$super();for(var i=0;i<arguments.length;i++){arguments[i].setSwitchManager(this.group);this.add(arguments[i])}}])},function $prototype(){this.contentPan=null;this.titlePan=null;this.switched=function(){var value=this.getValue();if(this.contentPan!==null){this.contentPan.setVisible(value)}if(this.titlePan!==null){this.titlePan.setState(value?"on":"off")}};this.compEnabled=function(e){if(this.titlePan!==null){var v=this.getValue();this.titlePan.setState(this.isEnable?v?"on":"off":v?"dison":"disoff")}};this.compRemoved=function(e){if(this.titlePan===e.kid){this.titlePan=null}else if(e.kid===this.contentPan){this.contentPan=null}}}]);pkg.StatusBarPan=Class(pkg.Panel,[function(gap){if(arguments.length===0){gap=2}this.setPadding(gap,0,0,0);this.$super(new zebkit.layout.PercentLayout("horizontal",gap))},function $prototype(){this.setBorderView=function(v){if(v!=this.borderView){this.borderView=v;for(var i=0;i<this.kids.length;i++){this.kids[i].setBorder(this.borderView)}this.repaint()}return this}},function insert(i,s,d){d.setBorder(this.borderView);this.$super(i,s,d)}]);pkg.StackPan=Class(pkg.Panel,[function(){this.$super(new zebkit.layout.StackLayout);for(var i=0;i<arguments.length;i++){this.add(arguments[i])}}]);pkg.ScrollManager=Class(zebkit.EventProducer,[function(c){this._=new this.clazz.Listeners;this.target=c},function $clazz(){this.Listeners=zebkit.util.ListenersClass("scrolled")},function $prototype(){this.sx=this.sy=0;this.getSX=function(){return this.sx};this.getSY=function(){return this.sy};this.scrollXTo=function(v){this.scrollTo(v,this.getSY())};this.scrollYTo=function(v){this.scrollTo(this.getSX(),v)};this.scrollTo=function(x,y){var psx=this.getSX(),psy=this.getSY();if(psx!==x||psy!==y){this.sx=x;this.sy=y;if(typeof this.scrollStateUpdated!=="undefined")this.scrollStateUpdated(x,y,psx,psy);if(typeof this.target.catchScrolled!=="undefined")this.target.catchScrolled(psx,psy);this._.scrolled(psx,psy)}return this};this.makeVisible=function(x,y,w,h){var p=pkg.calcOrigin(x,y,w,h,this.getSX(),this.getSY(),this.target);this.scrollTo(p[0],p[1]);return this}}]);pkg.Scroll=Class(pkg.Panel,zebkit.util.Position.Metric,[function(t){if(arguments.length>0){this.orient=zebkit.util.$validateValue(t,"vertical","horizontal")}this.bundleLoc=0;this.startDragLoc=Number.MAX_VALUE;this.$super(this);var b=this.orient==="vertical";this.add("center",b?new pkg.Scroll.VBundle:new pkg.Scroll.HBundle);this.add("top",b?new pkg.Scroll.VDecButton:new pkg.Scroll.HDecButton);this.add("bottom",b?new pkg.Scroll.VIncButton:new pkg.Scroll.HIncButton);this.setPosition(new zebkit.util.SingleColPosition(this))},function $clazz(){this.isDragable=true;this.ArrowButton=Class(pkg.ArrowButton,[function $prototype(){this.isFireByPress=true;this.firePeriod=20}]);this.VIncButton=Class(this.ArrowButton,[]);this.VDecButton=Class(this.ArrowButton,[]);this.HIncButton=Class(this.ArrowButton,[]);this.HDecButton=Class(this.ArrowButton,[]);this.VBundle=Class(pkg.Panel,[]);this.HBundle=Class(pkg.Panel,[]);this.MIN_BUNDLE_SIZE=16},function $prototype(){this.incBt=this.decBt=this.bundle=this.position=null;this.extra=this.max=100;this.pageIncrement=20;this.unitIncrement=5;this.orient="vertical";this.isInBundle=function(x,y){var bn=this.bundle;return bn!==null&&bn.isVisible===true&&bn.x<=x&&bn.y<=y&&bn.x+bn.width>x&&bn.y+bn.height>y};this.amount=function(){var db=this.decBt;return this.orient==="vertical"?this.incBt.y-db.y-db.height:this.incBt.x-db.x-db.width};this.pixel2value=function(p){var db=this.decBt;return this.orient==="vertical"?Math.floor(this.max*(p-db.y-db.height)/(this.amount()-this.bundle.height)):Math.floor(this.max*(p-db.x-db.width)/(this.amount()-this.bundle.width))};this.value2pixel=function(){var db=this.decBt,bn=this.bundle,off=this.position.offset;return this.orient==="vertical"?db.y+db.height+Math.floor((this.amount()-bn.height)*off/this.max):db.x+db.width+Math.floor((this.amount()-bn.width)*off/this.max)};this.catchInput=function(child){return child===this.bundle||this.bundle.kids.length>0&&zebkit.layout.isAncestorOf(this.bundle,child)};this.posChanged=function(target,po,pl,pc){if(this.bundle!==null){if(this.orient==="horizontal"){this.bundle.setLocation(this.value2pixel(),this.getTop())}else{this.bundle.setLocation(this.getLeft(),this.value2pixel())}}};this.getLines=function(){return this.max};this.getLineSize=function(line){return 1};this.getMaxOffset=function(){return this.max};this.fired=function(src){this.position.setOffset(this.position.offset+(src===this.incBt?this.unitIncrement:-this.unitIncrement))};this.pointerDragged=function(e){if(Number.MAX_VALUE!==this.startDragLoc){this.position.setOffset(this.pixel2value(this.bundleLoc-this.startDragLoc+(this.orient==="horizontal"?e.x:e.y)))}};this.pointerDragStarted=function(e){if(this.isDragable===true&&this.isInBundle(e.x,e.y)){this.startDragLoc=this.orient==="horizontal"?e.x:e.y;this.bundleLoc=this.orient==="horizontal"?this.bundle.x:this.bundle.y}};this.pointerDragEnded=function(e){this.startDragLoc=Number.MAX_VALUE};this.pointerClicked=function(e){if(this.isInBundle(e.x,e.y)===false&&e.isAction()){var d=this.pageIncrement;if(this.orient==="vertical"){if(e.y<(this.bundle!==null?this.bundle.y:Math.floor(this.height/2)))d=-d}else{if(e.x<(this.bundle!==null?this.bundle.x:Math.floor(this.width/2)))d=-d}this.position.setOffset(this.position.offset+d)}};this.calcPreferredSize=function(target){var ps1=pkg.$getPS(this.incBt),ps2=pkg.$getPS(this.decBt),ps3=pkg.$getPS(this.bundle);if(this.orient==="horizontal"){ps1.width+=ps2.width+ps3.width;ps1.height=Math.max(ps1.height>ps2.height?ps1.height:ps2.height,ps3.height)}else{ps1.height+=ps2.height+ps3.height;ps1.width=Math.max(ps1.width>ps2.width?ps1.width:ps2.width,ps3.width)}return ps1};this.doLayout=function(target){var right=this.getRight(),top=this.getTop(),bottom=this.getBottom(),left=this.getLeft(),ew=this.width-left-right,eh=this.height-top-bottom,b=this.orient==="horizontal",ps1=pkg.$getPS(this.decBt),ps2=pkg.$getPS(this.incBt),minbs=this.clazz.MIN_BUNDLE_SIZE;this.decBt.setBounds(left,top,b?ps1.width:ew,b?eh:ps1.height);this.incBt.setBounds(b?this.width-right-ps2.width:left,b?top:this.height-bottom-ps2.height,b?ps2.width:ew,b?eh:ps2.height);if(this.bundle!==null&&this.bundle.isVisible===true){var am=this.amount();if(am>minbs){var bsize=Math.max(Math.min(Math.floor(this.extra*am/this.max),am-minbs),minbs);this.bundle.setBounds(b?this.value2pixel():left,b?top:this.value2pixel(),b?bsize:ew,b?eh:bsize)}else{this.bundle.setSize(0,0)}}};this.setMaximum=function(m){if(m!==this.max){this.max=m;if(this.position.offset>this.max){this.position.setOffset(this.max)}this.vrp()}return this};this.setValue=function(v){this.position.setOffset(v);return this};this.setPosition=function(p){if(p!==this.position){if(this.position!==null)this.position.off(this);this.position=p;if(this.position!==null){this.position.on(this);this.position.setMetric(this);this.position.setOffset(0)}}return this};this.setExtraSize=function(e){if(e!==this.extra){this.extra=e;this.vrp()}return this}},function kidAdded(index,ctr,lw){this.$super(index,ctr,lw);if("center"===ctr){this.bundle=lw}else if("bottom"===ctr){this.incBt=lw;this.incBt.on(this)}else if("top"===ctr){this.decBt=lw;this.decBt.on(this)}else{throw new Error("Invalid constraints : "+ctr)}},function kidRemoved(index,lw){this.$super(index,lw);if(lw===this.bundle){this.bundle=null}else if(lw===this.incBt){this.incBt.off(this);this.incBt=null}else if(lw===this.decBt){this.decBt.off(this);this.decBt=null}}]);pkg.ScrollPan=Class(pkg.Panel,[function(c,scrolls,autoHide){if(arguments.length<2){scrolls="both"}this.$isPosChangedLocked=false;this.$super();if(arguments.length>0&&c!==null){this.add("center",c)}if(arguments.length<2||scrolls==="both"||scrolls==="horizontal"){this.add("bottom",new pkg.Scroll("horizontal"))}if(arguments.length<2||scrolls==="both"||scrolls==="vertical"){this.add("right",new pkg.Scroll("vertical"))}if(arguments.length>2){this.setAutoHide(autoHide)}},function $clazz(){this.ContentPanLayout=Class(zebkit.layout.Layout,[function $prototype(){this.calcPreferredSize=function(t){return t.kids[0].getPreferredSize()};this.doLayout=function(t){var kid=t.kids[0];if(kid.constraints==="stretch"){var ps=kid.getPreferredSize(),w=t.parent.hBar!==null?ps.width:t.width,h=t.parent.vBar!==null?ps.height:t.height;kid.setSize(w,h)}else{kid.toPreferredSize()}}}]);var SM=this.ContentPanScrollManager=Class(pkg.ScrollManager,[function $prototype(){this.getSX=function(){return this.target.x};this.getSY=function(){return this.target.y};this.scrollStateUpdated=function(sx,sy,psx,psy){this.target.setLocation(sx,sy)}}]);var contentPanLayout=new this.ContentPanLayout;this.ContentPan=Class(pkg.Panel,[function(c){this.$super(contentPanLayout);this.scrollManager=new SM(c);this.add(c)}])},function $prototype(){this.hBar=this.vBar=this.scrollObj=null;this.autoHide=false;this.$interval=0;this.setAutoHide=function(b){if(this.autoHide!==b){this.autoHide=b;if(this.hBar!==null){if(this.hBar.incBt!==null)this.hBar.incBt.setVisible(b===false);if(this.hBar.decBt!==null)this.hBar.decBt.setVisible(b===false);if(b===true){this.hBar.toBack()}else{this.hBar.toFront()}}if(this.vBar!==null){if(this.vBar.incBt!==null)this.vBar.incBt.setVisible(b===false);if(this.vBar.decBt!==null)this.vBar.decBt.setVisible(b===false);if(b===true){this.vBar.toBack()}else{this.vBar.toFront()}}if(this.$interval!==0){zebkit.environment.clearInterval(this.$interval);$this.$interval=0}this.vrp()}return this};this.scrollTo=function(sx,sy){this.scrollObj.scrollManager.scrollTo(sx,sy)};this.scrollXTo=function(sx){this.scrollObj.scrollManager.scrollXTo(sx)};this.scrollYTo=function(sx,sy){this.scrollObj.scrollManager.scrollYTo(sy)};this.doScroll=function(dx,dy,source){var b=false,v=0;if(dy!==0&&this.vBar!==null&&this.vBar.isVisible===true){v=this.vBar.position.offset+dy;if(v>=0)this.vBar.position.setOffset(v);else this.vBar.position.setOffset(0);b=true}if(dx!==0&&this.hBar!==null&&this.hBar.isVisible===true){v=this.hBar.position.offset+dx;if(v>=0)this.hBar.position.setOffset(v);else this.hBar.position.setOffset(0);b=true}return b};this.scrolled=function(psx,psy){this.validate();try{this.$isPosChangedLocked=true;if(this.hBar!==null){this.hBar.position.setOffset(-this.scrollObj.scrollManager.getSX())}if(this.vBar!==null){this.vBar.position.setOffset(-this.scrollObj.scrollManager.getSY())}if(this.scrollObj.scrollManager==null)this.invalidate();this.$isPosChangedLocked=false}catch(e){this.$isPosChangedLocked=false;throw e}};this.calcPreferredSize=function(target){return pkg.$getPS(this.scrollObj)};this.doLayout=function(target){var sman=this.scrollObj===null?null:this.scrollObj.scrollManager,right=this.getRight(),top=this.getTop(),bottom=this.getBottom(),left=this.getLeft(),ww=this.width-left-right,maxH=ww,hh=this.height-top-bottom,maxV=hh,so=this.scrollObj.getPreferredSize(),vps=this.vBar===null?{width:0,height:0}:this.vBar.getPreferredSize(),hps=this.hBar===null?{width:0,height:0}:this.hBar.getPreferredSize();if(this.hBar!==null&&this.autoHide===false&&(so.width>ww||so.height>hh&&so.width>ww-vps.width)){maxV-=hps.height}maxV=so.height>maxV?so.height-maxV:-1;if(this.vBar!==null&&this.autoHide===false&&(so.height>hh||so.width>ww&&so.height>hh-hps.height)){maxH-=vps.width}maxH=so.width>maxH?so.width-maxH:-1;var sy=sman.getSY(),sx=sman.getSX();if(this.vBar!==null){if(maxV<0){if(this.vBar.isVisible===true){this.vBar.setVisible(false);sman.scrollTo(sx,0);this.vBar.position.setOffset(0)}sy=0}else{this.vBar.setVisible(true)}}if(this.hBar!==null){if(maxH<0){if(this.hBar.isVisible===true){this.hBar.setVisible(false);sman.scrollTo(0,sy);this.hBar.position.setOffset(0)}}else{this.hBar.setVisible(true)}}if(this.scrollObj.isVisible===true){this.scrollObj.setBounds(left,top,ww-(this.autoHide===false&&this.vBar!==null&&this.vBar.isVisible===true?vps.width:0),hh-(this.autoHide===false&&this.hBar!==null&&this.hBar.isVisible===true?hps.height:0))}if(this.$interval===0&&this.autoHide===true){hps.height=vps.width=0}if(this.hBar!==null&&this.hBar.isVisible===true){this.hBar.setBounds(left,this.height-bottom-hps.height,ww-(this.vBar!==null&&this.vBar.isVisible===true?vps.width:0),hps.height);this.hBar.setMaximum(maxH)}if(this.vBar!==null&&this.vBar.isVisible===true){this.vBar.setBounds(this.width-right-vps.width,top,vps.width,hh-(this.hBar!==null&&this.hBar.isVisible===true?hps.height:0));this.vBar.setMaximum(maxV)}};this.posChanged=function(target,prevOffset,prevLine,prevCol){if(this.$isPosChangedLocked===false){if(this.autoHide===true){if(this.$interval===0&&(this.vBar!==null&&this.vBar.isVisible===true||this.hBar!==null&&this.hBar.isVisible===true)){var $this=this;if(this.vBar!==null)this.vBar.toFront();if(this.hBar!==null)this.hBar.toFront();this.vrp();$this.$hiddingCounter=2;$this.$targetBar=null;var listener=pkg.events.on({pointerMoved:function(e){$this.$hiddingCounter=1},pointerExited:function(e){$this.$targetBar=null},pointerEntered:function(e){if(e.source===$this.vBar){$this.$targetBar=$this.vBar}else{if(e.source===$this.hBar){$this.$targetBar=$this.hBar;return}$this.$targetBar=null}}});this.$interval=zebkit.environment.setInterval(function(){if($this.$hiddingCounter--===0&&$this.$targetBar===null){zebkit.environment.clearInterval($this.$interval);$this.$interval=0;pkg.events.off(listener);$this.doLayout()}},500)}}if(this.vBar!==null&&this.vBar.position===target){this.scrollObj.scrollManager.scrollYTo(-this.vBar.position.offset)}else if(this.hBar!==null&&this.hBar.position===target){this.scrollObj.scrollManager.scrollXTo(-this.hBar.position.offset)}}};this.setIncrements=function(hUnit,hPage,vUnit,vPage){if(this.hBar!==null){if(hUnit!==-1)this.hBar.unitIncrement=hUnit;if(hPage!==-1)this.hBar.pageIncrement=hPage}if(this.vBar!==null){if(vUnit!==-1)this.vBar.unitIncrement=vUnit;if(vPage!==-1)this.vBar.pageIncrement=vPage}return this}},function insert(i,ctr,c){if("center"===ctr){if(c.scrollManager==null){c=new this.clazz.ContentPan(c)}this.scrollObj=c;c.scrollManager.on(this)}else{if("bottom"===ctr||"top"===ctr){this.hBar=c}else if("left"===ctr||"right"===ctr){this.vBar=c}else{throw new Error("Invalid constraints")}if(c.incBt!==null)c.incBt.setVisible(!this.autoHide);if(c.decBt!==null)c.decBt.setVisible(!this.autoHide);c.position.on(this)}return this.$super(i,ctr,c)},function kidRemoved(index,comp){this.$super(index,comp);if(comp===this.scrollObj){this.scrollObj.scrollManager.off(this);this.scrollObj=null}else if(comp===this.hBar){this.hBar.position.off(this);this.hBar=null}else if(comp===this.vBar){this.vBar.position.off(this);this.vBar=null}}]);pkg.MobileScrollMan=Class(pkg.Manager,[function $prototype(){this.$timer=this.identifier=this.target=null;this.pointerDragStarted=function(e){if(e.touchCounter===1&&e.pointerType==="touch"){this.$identifier=e.identifier;this.$target=e.source;while(this.$target!==null&&typeof this.$target.doScroll==="undefined"){this.$target=this.$target.parent}if(this.$target!==null&&typeof this.$target.pointerDragged!=="undefined"){this.$target=null}}};this.pointerDragged=function(e){if(e.touchCounter===1&&this.$target!==null&&this.$identifier===e.identifier&&e.direction!==null){this.$target.doScroll(-e.dx,-e.dy,"touch")}};this.$taskMethod=function(){var bar=this.$target.vBar,o=bar.position.offset;this.$dt=Math.tan(42*Math.PI/180)*this.$dt;bar.position.setOffset(o-Math.round(this.$dt));this.$counter++;if(o===bar.position.offset){this.$target=null;zebkit.environment.clearInterval(this.$timer);this.$timer=null}};this.pointerDragEnded=function(e){if(this.$target!==null&&this.$timer===null&&this.$identifier===e.identifier&&(e.direction==="bottom"||e.direction==="top")&&this.$target.vBar!==null&&this.$target.vBar.isVisible&&e.dy!==0){this.$dt=2*e.dy;this.$counter=0;var $this=this;this.$timer=zebkit.environment.setInterval(function(){$this.$taskMethod($this)},50)}};this.pointerPressed=function(e){if(this.$timer!==null){zebkit.environment.clearInterval(this.$timer);this.$timer=null}this.$target=null}}]);pkg.Slider=Class(pkg.Panel,pkg.$ViewsSetterMix,[function(o){this._=new zebkit.util.Listeners;this.views={gauge:null};if(arguments.length>0){this.orient=zebkit.util.$validateValue(o,"vertical","horizontal")}this.setValues(0,20,[0,5,10],2,1);this.setScaleStep(1);this.$super();this.views.bundle=this.orient==="horizontal"?this.views.hbundle:this.views.vbundle;if(typeof this.views.bundle==="undefined"){this.views.bundle=null}this.provider=new this.clazz.ViewProvider},function $clazz(){this.ViewProvider=Class([function(color,font){this.render=new pkg.BoldTextRender("");zebkit.properties(this,this.clazz);if(arguments.length>0){this.color=color}if(arguments.length>1){this.font=font}this.render.setColor(this.color);this.render.setFont(this.font)},function $prototype(){this.color="white";this.font=new pkg.Font("Arial","bold",12);this.getView=function(d,o){this.render.setValue(o!==null&&typeof o!=="undefined"?o.toString():"");return this.render}}])},function $prototype(){this.max=this.min=this.value=this.roughStep=this.exactStep=0;this.netSize=this.gap=3;this.correctDt=this.scaleStep=this.psW=this.psH=0;this.intervals=this.pl=null;this.canHaveFocus=true;this.orient="horizontal";this.isShowScale=this.isShowTitle=true;this.dragged=this.isIntervalMode=false;this.getValue=function(){return this.value};this.paintNums=function(g,loc){if(this.isShowTitle===true)for(var i=0;i<this.pl.length;i++){var render=this.provider.getView(this,this.getPointValue(i)),d=render.getPreferredSize();if(this.orient==="horizontal"){render.paint(g,this.pl[i]-Math.floor(d.width/2),loc,d.width,d.height,this)}else{render.paint(g,loc,this.pl[i]-Math.floor(d.height/2),d.width,d.height,this)}}};this.getScaleSize=function(){var bs=this.views.bundle===null?{width:0,height:0}:this.views.bundle.getPreferredSize();return this.orient==="horizontal"?this.width-this.getLeft()-this.getRight()-bs.width:this.height-this.getTop()-this.getBottom()-bs.height};this.pointerDragged=function(e){if(this.dragged){this.setValue(this.findNearest(e.x+(this.orient==="horizontal"?this.correctDt:0),e.y+(this.orient==="horizontal"?0:this.correctDt)))}};this.paint=function(g){var i=0;if(this.pl===null){this.pl=Array(this.intervals.length);var l=this.min;for(i=0;i<this.pl.length;i++){l+=this.intervals[i];this.pl[i]=this.value2loc(l)}}var left=this.getLeft(),top=this.getTop(),right=this.getRight(),bottom=this.getBottom(),bnv=this.views.bundle,gauge=this.views.gauge,bs=bnv===null?{width:0,height:0}:bnv.getPreferredSize(),gs=gauge===null?{width:0,height:0}:gauge.getPreferredSize(),w=this.width-left-right-2,h=this.height-top-bottom-2;if(this.orient==="horizontal"){var topY=top+Math.floor((h-this.psH)/2)+1,by=topY;if(this.isEnabled===true){if(gauge!==null){gauge.paint(g,left+1,topY+Math.floor((bs.height-gs.height)/2),w,gs.height,this)}}else{g.setColor("gray");g.strokeRect(left+1,topY+Math.floor((bs.height-gs.height)/2),w,gs.height)}topY+=bs.height;if(this.isShowScale===true){topY+=this.gap;g.setColor(this.isEnabled===true?this.scaleColor:"gray");g.beginPath();for(i=this.min;i<=this.max;i+=this.scaleStep){var xx=this.value2loc(i)+.5;g.moveTo(xx,topY);g.lineTo(xx,topY+this.netSize)}for(i=0;i<this.pl.length;i++){g.moveTo(this.pl[i]+.5,topY);g.lineTo(this.pl[i]+.5,topY+2*this.netSize)}g.stroke();topY+=2*this.netSize}this.paintNums(g,topY);if(bnv!==null){bnv.paint(g,this.getBundleLoc(this.value),by,bs.width,bs.height,this)}}else{var leftX=left+Math.floor((w-this.psW)/2)+1,bx=leftX;if(this.isEnabled===true){if(gauge!==null){gauge.paint(g,leftX+Math.floor((bs.width-gs.width)/2),top+1,gs.width,h,this)}}else{g.setColor("gray");g.strokeRect(leftX+Math.floor((bs.width-gs.width)/2),top+1,gs.width,h)}leftX+=bs.width;if(this.isShowScale===true){leftX+=this.gap;g.setColor(this.scaleColor);g.beginPath();for(i=this.min;i<=this.max;i+=this.scaleStep){var yy=this.value2loc(i)+.5;g.moveTo(leftX,yy);g.lineTo(leftX+this.netSize,yy)}for(i=0;i<this.pl.length;i++){g.moveTo(leftX,this.pl[i]+.5);g.lineTo(leftX+2*this.netSize,this.pl[i]+.5)}g.stroke();leftX+=2*this.netSize}this.paintNums(g,leftX);if(bnv!==null){bnv.paint(g,bx,this.getBundleLoc(this.value),bs.width,bs.height,this)}}if(this.hasFocus()&&this.views.marker!=null){this.views.marker.paint(g,left,top,w+2,h+2,this)}};this.findNearest=function(x,y){var v=this.loc2value(this.orient==="horizontal"?x:y);if(this.isIntervalMode){var nearest=Number.MAX_VALUE,res=0;for(var i=0;i<this.intervals.length;i++){var pv=this.getPointValue(i),dt=Math.abs(pv-v);if(dt<nearest){nearest=dt;res=pv}}return res}v=this.exactStep*Math.floor((v+v%this.exactStep)/this.exactStep);if(v>this.max){v=this.max}else if(v<this.min){v=this.min}return v};this.value2loc=function(v){var ps=this.views.bundle===null?{width:0,height:0}:this.views.bundle.getPreferredSize(),l=Math.floor(this.getScaleSize()*(v-this.min)/(this.max-this.min));return this.orient==="vertical"?this.height-Math.floor(ps.height/2)-this.getBottom()-l:this.getLeft()+Math.floor(ps.width/2)+l};this.loc2value=function(xy){var ps=this.views.bundle===null?{width:0,height:0}:this.views.bundle.getPreferredSize(),sl=this.orient==="vertical"?this.getLeft()+Math.floor(ps.width/2):this.getTop()+Math.floor(ps.height/2),ss=this.getScaleSize();if(this.orient==="vertical"){xy=this.height-xy}if(xy<sl){xy=sl}else if(xy>sl+ss){xy=sl+ss}return this.min+Math.floor((this.max-this.min)*(xy-sl)/ss)};this.nextValue=function(value,s,d){if(this.isIntervalMode){return this.getNeighborPoint(value,d)}var v=value+d*s;if(v>this.max){v=this.max}else if(v<this.min){v=this.min}return v};this.getBundleLoc=function(v){var bs=this.views.bundle===null?{width:0,height:0}:this.views.bundle.getPreferredSize();return this.value2loc(v)-(this.orient==="horizontal"?Math.floor(bs.width/2):Math.floor(bs.height/2))};this.getBundleBounds=function(v){var bs=this.views.bundle===null?{width:0,height:0}:this.views.bundle.getPreferredSize();return this.orient==="horizontal"?{x:this.getBundleLoc(v),y:this.getTop()+Math.floor((this.height-this.getTop()-this.getBottom()-this.psH)/2)+1,width:bs.width,height:bs.height}:{x:this.getLeft()+Math.floor((this.width-this.getLeft()-this.getRight()-this.psW)/2)+1,y:this.getBundleLoc(v),width:bs.width,height:bs.height}};this.getNeighborPoint=function(v,d){var left=this.min+this.intervals[0],right=this.getPointValue(this.intervals.length-1),i=0,start=0;if(v<left){return left}else if(v>right){return right}if(d>0){start=this.min;for(i=0;i<this.intervals.length;i++){start+=this.intervals[i];if(start>v)return start}return right}else{start=right;for(i=this.intervals.length-1;i>=0;i--){if(start<v)return start;start-=this.intervals[i]}return left}};this.calcPreferredSize=function(l){return{width:this.psW+2,height:this.psH+2}};this.recalc=function(){var ps=this.views.bundle!==null?this.views.bundle.getPreferredSize():{width:0,height:0},ns=this.isShowScale?this.gap+2*this.netSize:0,dt=this.max-this.min,hMax=0,wMax=0;if(this.isShowTitle&&this.intervals.length>0){for(var i=0;i<this.intervals.length;i++){var d=this.provider.getView(this,this.getPointValue(i)).getPreferredSize();if(d.height>hMax)hMax=d.height;if(d.width>wMax)wMax=d.width}}if(this.orient==="horizontal"){this.psW=dt*2+ps.width;this.psH=ps.height+ns+hMax}else{this.psW=ps.width+ns+wMax;this.psH=dt*2+ps.height}};this.setValue=function(v){if(v<this.min||v>this.max){throw new Error("Value is out of bounds: "+v)}var prev=this.value;if(this.value!==v){this.value=v;this._.fired(this,prev);this.repaint()}return this};this.getPointValue=function(i){var v=this.min+this.intervals[0];for(var j=0;j<i;j++,v+=this.intervals[j]);return v};this.keyPressed=function(e){var b=this.isIntervalMode,v=null;switch(e.code){case"ArrowDown":case"ArrowLeft":v=this.nextValue(this.value,this.exactStep,-1);if(v>=this.min)this.setValue(v);break;case"ArrowUp":case"ArrowRight":v=this.nextValue(this.value,this.exactStep,1);if(v<=this.max)this.setValue(v);break;case"Home":this.setValue(b?this.getPointValue(0):this.min);break;case"End":this.setValue(b?this.getPointValue(this.intervals.length-1):this.max);break}};this.pointerPressed=function(e){if(e.isAction()){var x=e.x,y=e.y,bb=this.getBundleBounds(this.value);if(x<bb.x||y<bb.y||x>=bb.x+bb.width||y>=bb.y+bb.height){var l=this.orient==="horizontal"?x:y,v=this.loc2value(l);if(this.value!=v){this.setValue(this.isJumpOnPress?v:this.nextValue(this.value,this.roughStep,v<this.value?-1:1))}}}};this.pointerDragStarted=function(e){var r=this.getBundleBounds(this.value);if(e.x>=r.x&&e.y>=r.y&&e.x<r.x+r.width&&e.y<r.y+r.height){this.dragged=true;this.correctDt=this.orient==="horizontal"?r.x+Math.floor(r.width/2)-e.x:r.y+Math.floor(r.height/2)-e.y}};this.pointerDragEnded=function(e){this.dragged=false}},function focused(){this.$super();this.repaint()},function setScaleGap(g){if(g!==this.gap){this.gap=g;this.vrp()}return this},function setScaleColor(c){if(c!==this.scaleColor){this.scaleColor=c;if(this.provider===this)this.render.setColor(c);this.repaint()}return this},function setScaleStep(s){if(s!==this.scaleStep){this.scaleStep=s;this.repaint()}return this},function setShowScale(b){if(this.isShowScale!==b){this.isShowScale=b;this.vrp()}return this},function setShowTitle(b){if(this.isShowTitle!==b){this.isShowTitle=b;this.vrp()}return this},function setViewProvider(p){if(p!==this.provider){this.provider=p;this.vrp()}return this},function setValues(min,max,intervals,roughStep,exactStep){if(roughStep<=0||exactStep<0||min>=max||min+roughStep>max||min+exactStep>max){throw new Error("["+min+","+max+"], "+roughStep+","+exactStep)}var i=0,start=min;for(i=0;i<intervals.length;i++){start+=intervals[i];if(start>max||intervals[i]<0)throw new Error}this.min=min;this.max=max;this.roughStep=roughStep;this.exactStep=exactStep;this.intervals=Array(intervals.length);for(i=0;i<intervals.length;i++){this.intervals[i]=intervals[i]}if(this.value<min||this.value>max){this.setValue(this.isIntervalMode?min+intervals[0]:min)}this.vrp();return this},function invalidate(){this.pl=null;this.$super()}]);pkg.Tabs=Class(pkg.Panel,pkg.$ViewsSetterMix,[function(o){this.vgap=this.hgap=this.tabAreaX=0;this.repaintWidth=this.repaintHeight=this.repaintX=this.repaintY=0;this.tabAreaY=this.tabAreaWidth=this.tabAreaHeight=0;this.overTab=this.selectedIndex=-1;this._=new zebkit.util.Listeners;this.pages=[];this.views={};if(typeof pkg.Tabs.font!=="undefined")this.render.setFont(pkg.Tabs.font);if(typeof pkg.Tabs.fontColor!=="undefined")this.render.setColor(pkg.Tabs.fontColor);this.$super();if(arguments.length>0){this.setAlignment(o)}},function $clazz(){this.TabView=Class(pkg.CompRender,[function(icon,caption){if(arguments.length===0){caption=""}else if(arguments.length===1){caption=icon;icon=null}var tp=new this.clazz.TabPan;this.$super(tp);var $this=this;tp.getImagePan().imageLoaded=function(img){$this.vrp();if($this.owner!==null&&$this.owner.parent!==null){$this.owner.repaint()}};var r1=new this.clazz.captionRender(caption),r2=new this.clazz.captionRender(caption);r2.setColor(this.clazz.fontColor);r1.setColor(this.clazz.selectedFontColor);r2.setFont(this.clazz.font);r1.setFont(this.clazz.selectedFont);this.getCaptionPan().setView(new pkg.ViewSet({selected:r1,"*":r2},[function setFont(id,f){var v=this.views[id];if(v){v.setFont(s);this.recalc()}return this},function setCaption(id,s){var v=this.views[id];if(v){v.setValue(s);this.recalc()}return this},function getCaption(id){var v=this.views[id];return v==null?null:v.getValue()}]));this.setIcon(icon)},function $clazz(){this.captionRender=pkg.StringRender;this.font=pkg.font;this.TabPan=Class(pkg.Panel,[function(){this.$super();this.add(new pkg.ImagePan(null));this.add(new pkg.ViewPan)},function getImagePan(){return this.kids[0]},function getViewPan(){return this.kids[1]}])},function $prototype(){this.owner=null;this.ownerChanged=function(v){this.owner=v};this.vrp=function(){if(this.owner!==null)this.owner.vrp()};this.setCaption=function(b,s){if(arguments.length===1){this.setCaption(true,b);this.setCaption(false,b)}else{this.getCaptionPan().view.setCaption(this.$toId(b),s);this.vrp()}return this};this.getCaption=function(b){return this.getCaptionPan().view.getCaption(this.$toId(b))};this.setColor=function(b,c){if(arguments.length===1){this.setColor(true,b);this.setColor(false,b)}else{var v=this.getCaptionPan().view.views[this.$toId(b)];if(v){v.setColor(c);this.vrp()}}return this};this.setFont=function(b,f){if(arguments.length===1){this.setFont(true,b);this.setFont(false,b)}else{this.getCaptionPan().view.setFont(this.$toId(b),f);this.vrp()}return this};this.getCaptionPan=function(){return this.target.getViewPan()};this.setIcon=function(c){this.target.getImagePan().setImage(c);this.target.getImagePan().setVisible(c!==null);return this};this.selected=function(tabs,i,b){this.getCaptionPan().view.activate(this.$toId(b),this)};this.$toId=function(b){return b?"selected":"*"}}])},function $prototype(){this.orient="top";this.sideSpace=1;this.canHaveFocus=true;this.pointerMoved=function(e){var i=this.getTabAt(e.x,e.y);if(this.overTab!==i){this.overTab=i;if(this.views.over){this.repaint(this.repaintX,this.repaintY,this.repaintWidth,this.repaintHeight)}}};this.pointerDragEnded=function(e){var i=this.getTabAt(e.x,e.y);if(this.overTab!==i){this.overTab=i;if(this.views.over){this.repaint(this.repaintX,this.repaintY,this.repaintWidth,this.repaintHeight)}}};this.pointerExited=function(e){if(this.overTab>=0){this.overTab=-1;if(this.views.over){this.repaint(this.repaintX,this.repaintY,this.repaintWidth,this.repaintHeight)}}};this.next=function(page,d){for(;page>=0&&page<Math.floor(this.pages.length/2);page+=d){if(this.isTabEnabled(page)===true){return page}}return-1};this.getTitleInfo=function(){var b=this.orient==="left"||this.orient==="right",res=b?{x:this.tabAreaX,y:0,width:this.tabAreaWidth,height:0,orient:this.orient}:{x:0,y:this.tabAreaY,width:0,height:this.tabAreaHeight,orient:this.orient};if(this.selectedIndex>=0){var r=this.getTabBounds(this.selectedIndex);if(b){res.y=r.y;res.height=r.height}else{res.x=r.x;res.width=r.width}}return res};this.isTabEnabled=function(index){return this.kids[index].isEnabled};this.paintOnTop=function(g){var ts=g.$states[g.$curState];if(zebkit.util.isIntersect(this.repaintX,this.repaintY,this.repaintWidth,this.repaintHeight,ts.x,ts.y,ts.width,ts.height)){if(this.selectedIndex>0){var r=this.getTabBounds(this.selectedIndex)}var i=0;for(i=0;i<this.selectedIndex;i++){this.paintTab(g,i)}for(i=this.selectedIndex+1;i<Math.floor(this.pages.length/2);i++){this.paintTab(g,i)}if(this.selectedIndex>=0){this.paintTab(g,this.selectedIndex);if(this.hasFocus()){this.drawMarker(g,this.getTabBounds(this.selectedIndex))}}}};this.drawMarker=function(g,r){var marker=this.views.marker;if(marker){var bv=this.views.out,left=bv?bv.getLeft():0,top=bv?bv.getTop():0;marker.paint(g,r.x+left,r.y+top,r.width-left-(bv==null?0:bv.getRight()),r.height-top-(bv==null?0:bv.getBottom()),this)}};this.paintTab=function(g,pageIndex){var b=this.getTabBounds(pageIndex),page=this.kids[pageIndex],tab=this.views.out,tabover=this.views.over,tabon=this.views.selected,v=this.pages[pageIndex*2],ps=v.getPreferredSize();if(this.selectedIndex===pageIndex&&tabon){tabon.paint(g,b.x,b.y,b.width,b.height,page)}else if(tab){tab.paint(g,b.x,b.y,b.width,b.height,page)}if(this.overTab>=0&&this.overTab===pageIndex&&tabover){tabover.paint(g,b.x,b.y,b.width,b.height,page)}v.paint(g,b.x+Math.floor((b.width-ps.width)/2),b.y+Math.floor((b.height-ps.height)/2),ps.width,ps.height,page)};this.getTabBounds=function(i){return this.pages[2*i+1]};this.calcPreferredSize=function(target){var max=zebkit.layout.getMaxPreferredSize(target);if(this.orient==="bottom"||this.orient==="top"){max.width=Math.max(max.width,2*this.sideSpace+this.tabAreaWidth);max.height+=this.tabAreaHeight+this.sideSpace}else{max.width+=this.tabAreaWidth+this.sideSpace;max.height=Math.max(max.height,2*this.sideSpace+this.tabAreaHeight)}return max};this.doLayout=function(target){var right=this.orient==="right"?this.right:this.getRight(),top=this.orient==="top"?this.top:this.getTop(),bottom=this.orient==="bottom"?this.bottom:this.getBottom(),left=this.orient==="left"?this.left:this.getLeft(),b=this.orient==="top"||this.orient==="bottom";if(b){this.repaintX=this.tabAreaX=left;this.repaintY=this.tabAreaY=this.orient==="top"?top:this.height-bottom-this.tabAreaHeight;if(this.orient==="bottom"){this.repaintY-=this.border!==null?this.border.getBottom():0}}else{this.repaintX=this.tabAreaX=this.orient==="left"?left:this.width-right-this.tabAreaWidth;this.repaintY=this.tabAreaY=top;if(this.orient==="right"){this.repaintX-=this.border!==null?this.border.getRight():0}}var count=this.kids.length,sp=2*this.sideSpace,xx=this.orient==="right"?this.tabAreaX:this.tabAreaX+this.sideSpace,yy=this.orient==="bottom"?this.tabAreaY:this.tabAreaY+this.sideSpace,r=null,i=0;for(i=0;i<count;i++){r=this.getTabBounds(i);r.x=xx;r.y=yy;if(b){xx+=r.width;if(i===this.selectedIndex){xx-=sp;if(this.orient==="bottom"){r.y-=this.border!==null?this.border.getBottom():0}}}else{yy+=r.height;if(i===this.selectedIndex){yy-=sp;if(this.orient==="right"){r.x-=this.border!==null?this.border.getRight():0}}}}if(this.selectedIndex>=0){var dt=0;r=this.getTabBounds(this.selectedIndex);if(b){r.x-=this.sideSpace;r.y-=this.orient==="top"?this.sideSpace:0;dt=r.x<left?left-r.x:r.x+r.width>this.width-right?this.width-right-r.x-r.width:0}else{r.x-=this.orient==="left"?this.sideSpace:0;r.y-=this.sideSpace;dt=r.y<top?top-r.y:r.y+r.height>this.height-bottom?this.height-bottom-r.y-r.height:0}for(i=0;i<count;i++){var br=this.getTabBounds(i);if(b)br.x+=dt;else br.y+=dt}}for(i=0;i<count;i++){var l=this.kids[i];if(i===this.selectedIndex){if(b){l.setBounds(left+this.hgap,(this.orient==="top"?top+this.repaintHeight:top)+this.vgap,this.width-left-right-2*this.hgap,this.height-this.repaintHeight-top-bottom-2*this.vgap)}else{l.setBounds((this.orient==="left"?left+this.repaintWidth:left)+this.hgap,top+this.vgap,this.width-this.repaintWidth-left-right-2*this.hgap,this.height-top-bottom-2*this.vgap)}}else{l.setSize(0,0)}}};this.recalc=function(){var count=Math.floor(this.pages.length/2);if(count>0){this.tabAreaHeight=this.tabAreaWidth=0;var bv=this.views.out?this.views.out:null,b=this.orient==="left"||this.orient==="right",max=0,i=0,r=null,hadd=bv===null?0:bv.getLeft()+bv.getRight(),vadd=bv===null?0:bv.getTop()+bv.getBottom();for(i=0;i<count;i++){var ps=this.pages[i*2]!=null?this.pages[i*2].getPreferredSize():{width:0,height:0};r=this.getTabBounds(i);if(b){r.height=ps.height+vadd;if(ps.width+hadd>max)max=ps.width+hadd;this.tabAreaHeight+=r.height}else{r.width=ps.width+hadd;if(ps.height+vadd>max)max=ps.height+vadd;this.tabAreaWidth+=r.width}}for(i=0;i<count;i++){r=this.getTabBounds(i);if(b)r.width=max;else r.height=max}if(b){this.tabAreaWidth=max+this.sideSpace;this.tabAreaHeight+=2*this.sideSpace;this.repaintHeight=this.tabAreaHeight;this.repaintWidth=this.tabAreaWidth+(this.border!==null?this.orient==="left"?this.border.getLeft():this.border.getRight():0)}else{this.tabAreaWidth+=2*this.sideSpace;this.tabAreaHeight=this.sideSpace+max;this.repaintWidth=this.tabAreaWidth;this.repaintHeight=this.tabAreaHeight+(this.border!==null?this.orient==="top"?this.border.getTop():this.border.getBottom():0)}if(this.selectedIndex>=0){r=this.getTabBounds(this.selectedIndex);if(b){r.height+=2*this.sideSpace;r.width+=this.sideSpace+(this.border!==null?this.orient==="left"?this.border.getLeft():this.border.getRight():0)}else{r.height+=this.sideSpace+(this.border!==null?this.orient==="top"?this.border.getTop():this.border.getBottom():0);r.width+=2*this.sideSpace}}}};this.getTabAt=function(x,y){this.validate();if(x>=this.tabAreaX&&y>=this.tabAreaY&&x<this.tabAreaX+this.tabAreaWidth&&y<this.tabAreaY+this.tabAreaHeight){var tb=null;if(this.selectedIndex>=0){tb=this.getTabBounds(this.selectedIndex);if(x>=tb.x&&y>=tb.y&&x<tb.x+tb.width&&y<tb.y+tb.height){return i}}for(var i=0;i<Math.floor(this.pages.length/2);i++){if(this.selectedIndex!==i){tb=this.getTabBounds(i);if(x>=tb.x&&y>=tb.y&&x<tb.x+tb.width&&y<tb.y+tb.height){return i}}}}return-1};this.keyPressed=function(e){if(this.selectedIndex!==-1&&this.pages.length>0){var nxt=0;switch(e.code){case"ArrowUp":case"ArrowLeft":nxt=this.next(this.selectedIndex-1,-1);if(nxt>=0)this.select(nxt);break;case"ArrowDown":case"ArrowRight":nxt=this.next(this.selectedIndex+1,1);if(nxt>=0)this.select(nxt);break}}};this.pointerClicked=function(e){if(e.isAction()){var index=this.getTabAt(e.x,e.y);if(index>=0&&this.isTabEnabled(index))this.select(index)}};this.select=function(index){if(this.selectedIndex!==index){var prev=this.selectedIndex;this.selectedIndex=index;if(prev>=0){this.pages[prev*2].selected(this,prev,false)}if(index>=0){this.pages[index*2].selected(this,index,true)}this._.fired(this,this.selectedIndex);this.vrp()}return this};this.getTab=function(pageIndex){return this.pages[pageIndex*2]};this.setSideSpace=function(sideSpace){if(sideSpace!==this.sideSpace){this.sideSpace=sideSpace;this.vrp()}return this};this.setPageGaps=function(vg,hg){if(this.vgap!==vg||hg!==this.hgap){this.vgap=vg;this.hgap=hg;this.vrp()}return this};this.setAlignment=function(o){if(this.orient!==o){this.orient=zebkit.util.$validateValue(o,"top","bottom","left","right");this.vrp()}return this};this.enableTab=function(i,b){var c=this.kids[i];if(c.isEnabled!==b){c.setEnabled(b);if(b===false&&this.selectedIndex===i){this.select(-1)}this.repaint()}return this}},function focused(){this.$super();if(this.selectedIndex>=0){var r=this.getTabBounds(this.selectedIndex);this.repaint(r.x,r.y,r.width,r.height)}else if(this.hasFocus()===false){this.select(this.next(0,1))}},function kidAdded(index,constr,c){if(this.selectedIndex>=0&&index<=this.selectedIndex){this.selectedIndex++}if(this.selectedIndex<0){this.select(this.next(0,1))}return this.$super(index,constr,c)},function insert(index,constr,c){var render=null;if(zebkit.instanceOf(constr,this.clazz.TabView)){render=constr}else{render=new this.clazz.TabView(constr===null?"Page "+index:constr);render.ownerChanged(this)}this.pages.splice(index*2,0,render,{x:0,y:0,width:0,height:0});var r=this.$super(index,constr,c);this.repaint();return r},function removeAt(i){if(this.selectedIndex>=0&&i<=this.selectedIndex){if(i===this.selectedIndex){this.select(-1)}else{this.selectedIndex--;this.repaint()}}this.pages.splice(i*2,2);return this.$super(i)},function removeAll(){this.select(-1);this.pages.splice(0,this.pages.length);this.pages.length=0;this.$super()},function setSize(w,h){if(this.width!==w||this.height!==h){if(this.orient==="right"||this.orient==="bottom"){this.tabAreaX=-1}this.$super(w,h)}return this}]);pkg.TextField=Class(pkg.Label,[function(render,maxCol){this.history=Array(100);this.historyPos=-1;this.redoCounter=this.undoCounter=this.curY=this.curW=this.curH=0;this.scrollManager=new pkg.ScrollManager(this);if(arguments.length===0){maxCol=-1;render=new pkg.TextRender(new zebkit.data.SingleLineTxt)}else if(arguments.length>1){if(arguments.length===1){if(zebkit.isNumber(render)){maxCol=render;render=null}else{maxCol=-1}}if(zebkit.isString(render)){render=new pkg.TextRender(new zebkit.data.SingleLineTxt(render))}else if(zebkit.instanceOf(render,zebkit.data.TextModel)){render=new pkg.TextRender(render)}}this.$super(render);if(maxCol>0){this.setPSByRowsCols(-1,maxCol)}},function $clazz(){this.HintRender=Class(pkg.StringRender,[])},function $prototype(){this.$blinkTask=null;this.selectionView=this.hint=null;this.vkMode="indirect";this.startLine=this.startCol=this.endLine=this.endCol=this.curX=0;this.startOff=this.endOff=-1;this.selection=this.position=null;this.blinkingPeriod=-1;this.blinkMe=true;this.blinkMeCounter=0;this.cursorType=pkg.Cursor.TEXT;this.textAlign="left";this.curView=null;this.canHaveFocus=this.isEditable=true;this.setBlinking=function(period){if(arguments.length===0){period=500}if(period!==this.blinkingPeriod){this.blinkingPeriod=period;this.repaintCursor()}return this};this.setTextAlignment=function(a){if(this.textAlign!==a){this.textAlign=a;this.vrp()}return this};this.textUpdated=function(src,b,off,size,startLine,lines){if(this.position!==null){if(b===true){if(this.startOff!==this.endOff){var start=this.startOff<this.endOff?this.startOff:this.endOff,end=this.startOff>this.endOff?this.startOff:this.endOff;if(off<=start){start+=size;end+=size}else{if(off<=end){if(off<end)end+=size;off=start}}this.remove(start,end-start)}this.endOff=this.startOff=-1;this.position.inserted(off,size)}else{this.position.removed(off,size)}}};this.getTextRowColAt=function(x,y){var lines=this.getLines();y-=this.scrollManager.getSY()+this.getTop();x-=this.scrollManager.getSX();if(this.textAlign==="left"){x-=this.getLeft()}else{x-=this.width-this.view.getPreferredSize().width-this.getRight()}if(x>=0&&y>=0&&lines>0){var lh=this.view.getLineHeight(),li=this.view.lineIndent,row=y<0?0:Math.floor((y+li)/(lh+li))+((y+li)%(lh+li)>li?1:0)-1;if(row<lines&&row>=0){var s=this.view.getLine(row),pdt=1e6,pcol=-1;for(var col=Math.floor(x/this.view.calcLineWidth(row)*s.length);col>=0&&col<=s.length;){var l=this.view.font.charsWidth(s,0,col),dt=Math.abs(l-x);if(dt>=pdt){return{row:row,col:pcol}}pdt=dt;pcol=col;col+=l>x?-1:1}return{row:row,col:s.length}}}return null};this.findNextWord=function(t,line,col,d){if(line<0||line>=t.getLines()){return null}var ln=t.getLine(line);col+=d;if(col<0&&line>0){return{row:line-1,col:t.getLine(line-1).length}}else if(col>ln.length&&line<t.getLines()-1){return{row:line+1,col:0}}var b=false;for(;col>=0&&col<ln.length;col+=d){if(b){if(d>0){if(zebkit.util.isLetter(ln[col]))return{row:line,col:col}}else{if(!zebkit.util.isLetter(ln[col]))return{row:line,col:col+1}}}else{b=d>0?!zebkit.util.isLetter(ln[col]):zebkit.util.isLetter(ln[col])}}return d>0?{row:line,col:ln.length}:{row:line,col:0}};this.getSubString=function(r,start,end){var res=[],sr=start.row,er=end.row;for(var i=sr;i<er+1;i++){var ln=r.getLine(i);if(i!==sr){res.push("\n")}else{ln=ln.substring(start.col)}if(i===er){ln=ln.substring(0,end.col-(sr===er?start.col:0))}res.push(ln)}return res.join("")};this.removeSelected=function(){if(this.hasSelection()){var start=this.startOff<this.endOff?this.startOff:this.endOff;this.remove(start,(this.startOff>this.endOff?this.startOff:this.endOff)-start);this.clearSelection()}};this.startSelection=function(){if(this.startOff<0&&this.position!==null){var pos=this.position;this.endLine=this.startLine=pos.currentLine;this.endCol=this.startCol=pos.currentCol;this.endOff=this.startOff=pos.offset}};this.keyTyped=function(e){if(this.isEditable===true&&e.ctrlKey===false&&e.metaKey===false&&e.key!=="\t"){this.write(this.position.offset,e.key)}};this.selectAll=function(){this.select(0,this.getMaxOffset());return this};this.shortcutFired=function(e){if(e.shortcut==="SELECTALL"){this.selectAll()}else{var d=e.shortcut==="PREVWORDSELECT"||e.shortcut==="PREVWORD"?-1:1;if(e.shortcut==="PREVWORDSELECT"||e.shortcut==="NEXTWORDSELECT"||e.shortcut==="NEXTPAGESELECT"||e.shortcut==="PREVPAGESELECT"){this.startSelection()}switch(e.shortcut){case"UNDO":this.undo();break;case"REDO":this.redo();break;case"NEXTPAGESELECT":case"NEXTPAGE":this.position.seekLineTo("down",this.pageSize());break;case"PREVPAGESELECT":case"PREVPAGE":this.position.seekLineTo("up",this.pageSize());break;case"NEXTWORDSELECT":case"PREVWORDSELECT":case"PREVWORD":case"NEXTWORD":{var p=this.findNextWord(this.view.target,this.position.currentLine,this.position.currentCol,d);if(p!==null){this.position.setRowCol(p.row,p.col)}}break}}};this.keyPressed=function(e){if(this.isFiltered(e)===false){var position=this.position;if(e.shiftKey){this.startSelection()}switch(e.code){case"ArrowDown":position.seekLineTo("down");break;case"ArrowUp":position.seekLineTo("up");break;case"ArrowLeft":if(e.ctrlKey===false&&e.metaKey===false){position.seek(-1)}break;case"ArrowRight":if(e.ctrlKey===false&&e.metaKey===false){position.seek(1)}break;case"End":if(e.ctrlKey){position.seekLineTo("down",this.getLines()-position.currentLine-1)}else{position.seekLineTo("end")}break;case"Home":if(e.ctrlKey){position.seekLineTo("up",position.currentLine)}else{position.seekLineTo("begin")}break;case"PageDown":position.seekLineTo("down",this.pageSize());break;case"PageUp":position.seekLineTo("up",this.pageSize());break;case"Delete":if(this.hasSelection()&&this.isEditable===true){this.removeSelected()}else{if(this.isEditable===true){this.remove(position.offset,1)}}break;case"Backspace":if(this.isEditable===true){if(this.hasSelection()){this.removeSelected()}else{if(this.isEditable===true&&position.offset>0){position.seek(-1);this.remove(position.offset,1)}}}break;default:return}if(e.shiftKey===false){this.clearSelection()}}};this.isFiltered=function(e){var code=e.code;return code==="Shift"||code==="Control"||code==="Tab"||code==="Alt"||e.altKey};this.remove=function(pos,size){if(this.isEditable===true){var position=this.position;if(pos>=0&&pos+size<=this.getMaxOffset()){if(size<1e4){this.historyPos=(this.historyPos+1)%this.history.length;this.history[this.historyPos]=[-1,pos,this.getValue().substring(pos,pos+size)];if(this.undoCounter<this.history.length)this.undoCounter++}if(this.view.target.remove(pos,size)){this.repaint();return true}}}return false};this.write=function(pos,s){if(this.isEditable===true){if(s.length<1e4){this.historyPos=(this.historyPos+1)%this.history.length;this.history[this.historyPos]=[1,pos,s.length];if(this.undoCounter<this.history.length){this.undoCounter++}}if(this.view.target.write(s,pos)){this.repaint();return true}}return false};this.recalc=function(){var r=this.view;if(this.position.offset>=0){var l=r.getLine(this.position.currentLine);if(this.textAlign==="left"){this.curX=r.font.charsWidth(l,0,this.position.currentCol)+this.getLeft()}else{this.curX=this.width-this.getRight()-this.view.getPreferredSize().width+r.font.charsWidth(l,0,this.position.currentCol)}this.curY=this.position.currentLine*(r.getLineHeight()+r.lineIndent)+this.getTop()}this.curH=r.getLineHeight()-1};this.catchScrolled=function(psx,psy){this.repaint()};this.drawCursor=function(g){if(this.position.offset>=0&&this.curView!==null&&this.blinkMe&&this.hasFocus()){if(this.textAlign==="left"){this.curView.paint(g,this.curX,this.curY,this.curW,this.curH,this)}else{this.curView.paint(g,this.curX-this.curW,this.curY,this.curW,this.curH,this)}}};this.pointerDragStarted=function(e){if(e.isAction()&&this.getMaxOffset()>0){this.startSelection()}};this.pointerDragEnded=function(e){if(e.isAction()&&this.hasSelection()===false){this.clearSelection()}};this.pointerDragged=function(e){if(e.isAction()){var p=this.getTextRowColAt(e.x,e.y);if(p!==null)this.position.setRowCol(p.row,p.col)}};this.select=function(startOffset,endOffset){if(endOffset<startOffset||startOffset<0||endOffset>this.getMaxOffset()){throw new Error("Invalid selection offsets")}if(this.startOff!==startOffset||endOffset!==this.endOff){if(startOffset===endOffset){this.clearSelection()}else{this.startOff=startOffset;var p=this.position.getPointByOffset(startOffset);this.startLine=p[0];this.startCol=p[1];this.endOff=endOffset;p=this.position.getPointByOffset(endOffset);this.endLine=p[0];this.endCol=p[1];this.repaint()}}return this};this.hasSelection=function(){return this.startOff!==this.endOff};this.posChanged=function(target,po,pl,pc){this.recalc();var position=this.position;if(position.offset>=0){this.blinkMeCounter=0;this.blinkMe=true;var lineHeight=this.view.getLineHeight(),top=this.getTop();this.scrollManager.makeVisible(this.textAlign==="left"?this.curX:this.curX-this.curW,this.curY,this.curW,lineHeight);if(pl>=0){if(this.startOff>=0){this.endLine=position.currentLine;this.endCol=position.currentCol;this.endOff=position.offset}var minUpdatedLine=pl<position.currentLine?pl:position.currentLine,li=this.view.lineIndent,bottom=this.getBottom(),left=this.getLeft(),y1=lineHeight*minUpdatedLine+minUpdatedLine*li+top+this.scrollManager.getSY();if(y1<top){y1=top}if(y1<this.height-bottom){var h=((pl>position.currentLine?pl:position.currentLine)-minUpdatedLine+1)*(lineHeight+li);if(y1+h>this.height-bottom){h=this.height-bottom-y1}this.repaint(left,y1,this.width-left-this.getRight(),h)}}else{this.repaint()}}};this.paintOnTop=function(g){if(this.hint!==null&&this.getMaxOffset()===0){var ps=this.hint.getPreferredSize(),yy=Math.floor((this.height-ps.height)/2),xx="left"===this.textAlign?this.getLeft()+this.curW:this.width-ps.width-this.getRight()-this.curW;this.hint.paint(g,xx,yy,this.width,this.height,this)}};this.setHint=function(hint){this.hint=zebkit.isString(hint)?new this.clazz.HintRender(hint):pkg.$view(hint);this.repaint();return this};this.undo=function(){if(this.undoCounter>0){var h=this.history[this.historyPos];this.historyPos--;if(h[0]===1){this.remove(h[1],h[2])}else{this.write(h[1],h[2])}this.undoCounter-=2;this.redoCounter++;this.historyPos--;if(this.historyPos<0){this.historyPos=this.history.length-1}this.repaint()}return this};this.redo=function(){if(this.redoCounter>0){var h=this.history[(this.historyPos+1)%this.history.length];if(h[0]===1)this.remove(h[1],h[2]);else this.write(h[1],h[2]);this.redoCounter--;this.repaint()}return this};this.getStartSelection=function(){return this.startOff!==this.endOff?this.startOff<this.endOff?{row:this.startLine,col:this.startCol}:{row:this.endLine,col:this.endCol}:null};this.getEndSelection=function(){return this.startOff!==this.endOff?this.startOff<this.endOff?{row:this.endLine,col:this.endCol}:{row:this.startLine,col:this.startCol}:null};this.getSelectedText=function(){return this.startOff!==this.endOff?this.getSubString(this.view,this.getStartSelection(),this.getEndSelection()):null};this.getLines=function(){return this.position===null?-1:this.position.metrics.getLines()};this.getMaxOffset=function(){return this.position===null?-1:this.position.metrics.getMaxOffset()};this.focusGained=function(e){if(this.position.offset<0){this.position.setOffset(this.textAlign==="left"||this.getLines()>1?0:this.getMaxOffset())}else{if(this.hint!==null){this.repaint()}else{this.repaintCursor()}}if(this.isEditable===true&&this.blinkingPeriod>0){this.blinkMeCounter=0;this.blinkMe=true;var $this=this;this.$blinkTask=zebkit.util.tasksSet.run(function(){$this.blinkMeCounter=($this.blinkMeCounter+1)%3;if($this.blinkMeCounter===0){$this.blinkMe=!$this.blinkMe;$this.repaintCursor()}},~~(this.blinkingPeriod/3),~~(this.blinkingPeriod/3))}};this.focusLost=function(e){this.repaintCursor();if(this.isEditable===true){if(this.hint!==null)this.repaint();if(this.blinkingPeriod>0){if(this.$blinkTask!==null){this.$blinkTask.shutdown();this.$blinkTask=null}this.blinkMe=true}}};this.repaintCursor=function(){if(this.curX>0&&this.curW>0&&this.curH>0){this.repaint(this.curX+this.scrollManager.getSX(),this.curY+this.scrollManager.getSY(),this.curW,this.curH)}};this.clearSelection=function(){if(this.startOff>=0){var b=this.hasSelection();this.endOff=this.startOff=-1;if(b){this.repaint()}}return this};this.pageSize=function(){var height=this.height-this.getTop()-this.getBottom(),indent=this.view.lineIndent,textHeight=this.view.getLineHeight();return((height+indent)/(textHeight+indent)+.5|0)+((height+indent)%(textHeight+indent)>indent?1:0)};this.clipPaste=function(txt){if(txt!==null){this.removeSelected();this.write(this.position.offset,txt)}};this.clipCopy=function(){return this.getSelectedText()};this.cut=function(){var t=this.getSelectedText();if(this.isEditable===true)this.removeSelected();return t};this.setPosition=function(p){if(this.position!==p){if(this.position!==null){this.position.off(this)}this.position=p;if(this.position!==null){this.position.on(this)}this.invalidate()}return this};this.setCursorView=function(v){this.curW=1;this.curView=pkg.$view(v);this.vrp();return this};this.setPSByRowsCols=function(r,c){var tr=this.view,w=c>0?tr.font.stringWidth("W")*c:this.psWidth,h=r>0?r*tr.getLineHeight()+(r-1)*tr.lineIndent:this.psHeight;this.setPreferredSize(w,h);return this};this.setEditable=function(b){if(b!==this.isEditable){this.isEditable=b;if(b&&this.blinkingPeriod>0&&this.hasFocus()){if(this.$blinkTask!==null){this.$blinkTask.shutdown()}this.blinkMe=true}this.vrp()}return this};this.pointerDoubleClicked=function(e){if(e.isAction()){this.select(0,this.getMaxOffset())}};this.pointerPressed=function(e){if(e.isAction()){if(e.shiftKey){this.startSelection()}else{this.clearSelection()}var p=this.getTextRowColAt(e.x,e.y);if(p!==null)this.position.setRowCol(p.row,p.col)}};this.setSelectionView=function(c){if(c!=this.selectionView){this.selectionView=pkg.$view(c);if(this.hasSelection()){this.repaint()}}return this};this.calcPreferredSize=function(t){var ps=this.view.getPreferredSize();ps.width+=this.curW;return ps};this.paint=function(g){var sx=this.scrollManager.getSX(),sy=this.scrollManager.getSY(),l=this.getLeft(),t=this.getTop(),r=this.getRight();try{g.translate(sx,sy);if(this.textAlign==="left"){this.view.paint(g,l,t,this.width-l-r,this.height-t-this.getBottom(),this)}else{this.view.paint(g,this.width-r-this.view.getPreferredSize().width,t,this.width-l-r,this.height-t-this.getBottom(),this)}this.drawCursor(g)}catch(e){g.translate(-sx,-sy);throw e}g.translate(-sx,-sy)}},function setView(v){if(v!=this.view){if(this.view!==null&&this.view.target!==null&&typeof this.view.target.on!=="undefined"){this.view.target.off(this)}this.$super(v);if(this.position===null){this.setPosition(new zebkit.util.Position(this.view))}else{this.position.setMetric(this.view)}if(this.view!==null&&this.view.target!==null&&typeof this.view.target.on!=="undefined"){this.view.target.on(this)}}return this},function setValue(s){var txt=this.getValue();if(txt!==s){if(this.position!==null){this.position.setOffset(0)}this.scrollManager.scrollTo(0,0);this.$super(s)}return this},function setEnabled(b){this.clearSelection();this.$super(b);return this}]);pkg.TextArea=Class(pkg.TextField,[function(txt){if(arguments.length===0)txt="";this.$super(new zebkit.data.Text(txt))}]);pkg.PassTextField=Class(pkg.TextField,[function(txt,size,showLast){if(arguments.length===1){showLast=false;size=-1;if(zebkit.isBoolean(txt)){showLast=txt;txt=""}else if(zebkit.isNumber(txt)){size=txt;txt=""}}else if(arguments.length===0){showLast=false;size=-1;txt=""}else if(arguments.length===2){showLast=false}var pt=new pkg.PasswordText(new zebkit.data.SingleLineTxt(txt,size));pt.showLast=showLast;this.$super(pt);if(size>0){this.setPSByRowsCols(-1,size)}},function setShowLast(b){if(this.showLast!==b){this.view.showLast=b;this.repaint()}return this}]);pkg.BaseList=Class(pkg.Panel,zebkit.util.Position.Metric,pkg.$ViewsSetterMix,[function(m,b){if(arguments.length===0){m=[];b=false}else if(arguments.length===1){if(zebkit.isBoolean(m)){b=m;m=[]}else{b=false}}else{if(m===null)m=[]}this.selectedIndex=-1;this._=new this.clazz.Listeners;this.isComboMode=b;this.scrollManager=new pkg.ScrollManager(this);this.$super();this.setPosition(new zebkit.util.Position(this));this.setModel(m)},function $clazz(){this.Listeners=zebkit.util.ListenersClass("selected")},function $prototype(){this.scrollManager=this.position=this.model=null;this.canHaveFocus=true;this.setValue=function(v){if(v===null){this.select(-1)}else if(this.model!==null){for(var i=0;i<this.model.count();i++){if(this.model.get(i)===v&&this.isItemSelectable(i)){this.select(i);return i}}}return-1};this.getValue=function(){return this.getSelected()};this.isItemSelectable=function(i){return true};this.getSelected=function(){return this.selectedIndex<0?null:this.model.get(this.selectedIndex)};this.lookupItem=function(ch){var count=this.model===null?0:this.model.count();if(zebkit.util.isLetter(ch)&&count>0){var index=this.selectedIndex<0?0:this.selectedIndex+1;ch=ch.toLowerCase();for(var i=0;i<count-1;i++){var idx=(index+i)%count,item=this.model.get(idx).toString();if(this.isItemSelectable(idx)&&item.length>0&&item[0].toLowerCase()===ch){return idx}}}return-1};this.isSelected=function(i){return i===this.selectedIndex};this.$pointerMoved=function(x,y){if(this.isComboMode===true&&this.model!==null){var index=this.getItemIdxAt(x,y);if(index!==this.position.offset&&(index<0||this.isItemSelectable(index)===true)){this.$triggeredByPointer=true;if(index<0)this.position.setOffset(null);else this.position.setOffset(index);this.notifyScrollMan(index);this.$triggeredByPointer=false}}};this.getItemLocation=function(index){this.validate();var y=this.getTop()+this.scrollManager.getSY();for(var i=0;i<index;i++){y+=this.getItemSize(i).height}return{x:this.getLeft(),y:y}};this.getItemSize=function(i){throw new Error("Not implemented")};this.getLines=function(){return this.model===null?0:this.model.count()};this.getLineSize=function(l){return 1};this.getMaxOffset=function(){return this.getLines()-1};this.catchScrolled=function(psx,psy){this.repaint()};this.getItemIdxAt=function(x,y){return-1};this.calcMaxItemSize=function(){var maxH=0,maxW=0;this.validate();if(this.model!==null){for(var i=0;i<this.model.count();i++){var is=this.getItemSize(i);if(is.height>maxH)maxH=is.height;if(is.width>maxW)maxW=is.width}}return{width:maxW,height:maxH}};this.repaintByOffsets=function(p,n){this.validate();var xx=this.width-this.getRight(),l=0,count=this.model===null?0:this.model.count();if(p>=0&&p<count){l=this.getItemLocation(p);this.repaint(l.x,l.y,xx-l.x,this.getItemSize(p).height)}if(n>=0&&n<count){l=this.getItemLocation(n);this.repaint(l.x,l.y,xx-l.x,this.getItemSize(n).height)}};this.drawViewAt=function(g,id,index){if(index>=0&&this.views.hasOwnProperty(id)&&this.views[id]!==null&&this.isItemSelectable(index)){var is=this.getItemSize(index),l=this.getItemLocation(index);this.drawView(g,id,this.views[id],l.x,l.y,is.width,is.height)}};this.drawView=function(g,id,v,x,y,w,h){this.views[id].paint(g,x,y,w,h,this)};this.update=function(g){if(this.isComboMode===true||this.hasFocus()===true){this.drawViewAt(g,"marker",this.position.offset)}this.drawViewAt(g,"select",this.selectedIndex)};this.paintOnTop=function(g){if(this.isComboMode===true||this.hasFocus()){this.drawViewAt(g,"top.marker",this.position.offset)}};this.select=function(index){if(index===null||typeof index==="undefined"){throw new Error("Null index")}if(this.model!==null&&index>=this.model.count()){throw new RangeError(index)}if(this.selectedIndex!==index){if(index<0||this.isItemSelectable(index)){var prev=this.selectedIndex;this.selectedIndex=index;this.notifyScrollMan(index);this.repaintByOffsets(prev,this.selectedIndex);this.fireSelected(prev)}}else{this.fireSelected(null)}};this.fireSelected=function(prev){this._.selected(this,prev)};this.pointerClicked=function(e){if(this.model!==null&&e.isAction()&&this.model.count()>0){this.$select(this.position.offset<0?0:this.position.offset)}};this.pointerReleased=function(e){if(this.model!==null&&this.model.count()>0&&e.isAction()&&this.position.offset!==this.selectedIndex){this.position.setOffset(this.selectedIndex)}};this.pointerPressed=function(e){if(e.isAction()&&this.model!==null&&this.model.count()>0){var index=this.getItemIdxAt(e.x,e.y);if(index>=0&&this.position.offset!==index&&this.isItemSelectable(index)){this.position.setOffset(index)}}};this.pointerDragged=this.pointerMoved=this.pointerEntered=function(e){this.$pointerMoved(e.x,e.y)};this.pointerExited=function(e){this.$pointerMoved(-10,-10)};this.pointerDragEnded=function(e){if(this.model!==null&&this.model.count()>0&&this.position.offset>=0){this.select(this.position.offset<0?0:this.position.offset)}};this.keyPressed=function(e){if(this.model!==null&&this.model.count()>0){var po=this.position.offset;switch(e.code){case"End":if(e.ctrlKey){this.position.setOffset(this.position.metrics.getMaxOffset())}else{this.position.seekLineTo("end")}break;case"Home":if(e.ctrlKey)this.position.setOffset(0);else this.position.seekLineTo("begin");break;case"ArrowRight":this.position.seek(1);break;case"ArrowDown":this.position.seekLineTo("down");break;case"ArrowLeft":this.position.seek(-1);break;case"ArrowUp":this.position.seekLineTo("up");break;case"PageUp":this.position.seek(this.pageSize(-1));break;case"PageDown":this.position.seek(this.pageSize(1));break;case"Space":case"Enter":this.$select(this.position.offset);break}}};this.$select=function(o){this.select(o)};this.keyTyped=function(e){var i=this.lookupItem(e.key);if(i>=0)this.$select(i)};this.elementInserted=function(target,e,index){this.invalidate();if(this.selectedIndex>=0&&this.selectedIndex>=index){this.selectedIndex++}this.position.inserted(index,1);this.repaint()};this.elementRemoved=function(target,e,index){this.invalidate();if(this.selectedIndex===index||this.model.count()===0){this.select(-1)}else{if(this.selectedIndex>index){this.selectedIndex--}}this.position.removed(index,1);this.repaint()};this.elementSet=function(target,e,pe,index){if(this.selectedIndex===index){this.select(-1)}this.vrp()};this.findSelectable=function(off,d){var c=this.model.count(),i=0,dd=Math.abs(d);while(this.isItemSelectable(off)===false&&i<c){off=(c+off+d)%c;i+=dd}return i<c?off:-1};this.posChanged=function(target,prevOffset,prevLine,prevCol){var off=this.position.offset;if(off>=0){off=this.findSelectable(off,prevOffset<off?1:-1);if(off!==this.position.offset){this.position.setOffset(off);this.repaintByOffsets(prevOffset,off);return}}if(this.isComboMode===true){this.notifyScrollMan(off)}else{this.select(off)}this.repaintByOffsets(prevOffset,off)};this.setModel=function(m){if(m!==this.model){if(m!==null&&Array.isArray(m)){m=new zebkit.data.ListModel(m)}if(this.model!==null&&typeof this.model._!=="undefined"){this.model.off(this)}this.model=m;if(this.model!==null&&typeof this.model._!=="undefined"){this.model.on(this)}this.vrp()}return this};this.setPosition=function(c){if(c!==this.position){if(this.position!==null){this.position.off(this)}this.position=c;this.position.on(this);this.position.setMetric(this);this.repaint()}return this};this.setViewProvider=function(v){if(this.provider!==v){if(typeof v==="function"){var o=new zebkit.Dummy;o.getView=v;v=o}this.provider=v;this.vrp()}return this};this.notifyScrollMan=function(index){if(index>=0&&this.scrollManager!==null){this.validate();var is=this.getItemSize(index);if(is.width>0&&is.height>0){var l=this.getItemLocation(index);this.scrollManager.makeVisible(l.x-this.scrollManager.getSX(),l.y-this.scrollManager.getSY(),is.width,is.height)}}};this.pageSize=function(d){var offset=this.position.offset;if(offset>=0){var vp=pkg.$cvp(this,{});if(vp!==null){var sum=0,i=offset;for(;i>=0&&i<=this.position.metrics.getMaxOffset()&&sum<vp.height;i+=d){sum+=this.getItemSize(i).height}return i-offset-d}}return 0}},function focused(){this.$super();this.repaint()}]);pkg.List=Class(pkg.BaseList,[function(m,b){this.firstVisible=-1;this.firstVisibleY=this.psWidth_=this.psHeight_=0;this.visValid=false;this.setViewProvider(new this.clazz.ViewProvider);this.$supera(arguments)},function $clazz(){this.ViewProvider=Class([function(f,c){this.render=new pkg.StringRender("");zebkit.properties(this,this.clazz);if(arguments.length>0)this.render.setFont(f);if(arguments.length>1)this.render.setColor(c)},function $prototype(){this.setColor=function(c){this.render.setColor(c);return this};this.setFont=function(f){this.render.setFont(f);return this};this.getView=function(target,value,i){if(value!==null){if(typeof value.toView!=="undefined")return value.toView();if(typeof value.paint!=="undefined")return value;this.render.setValue(value.toString());return this.render}else{return null}}}])},function $prototype(){this.heights=this.widths=this.vArea=null;this.gap=2;this.setItemGap=function(g){if(this.gap!==g){this.gap=g;this.vrp()}return this};this.paint=function(g){this.vVisibility();if(this.firstVisible>=0){var sx=this.scrollManager.getSX(),sy=this.scrollManager.getSY();try{g.translate(sx,sy);var y=this.firstVisibleY,x=this.getLeft(),yy=this.vArea.y+this.vArea.height-sy,count=this.model.count(),dg=this.gap*2;for(var i=this.firstVisible;i<count;i++){if(i!==this.selectedIndex&&typeof this.provider.getCellColor==="function"){var bc=this.provider.getCellColor(this,i);if(bc!==null){g.setColor(bc);g.fillRect(x,y,this.width,this.heights[i])}}this.provider.getView(this,this.model.get(i),i).paint(g,x+this.gap,y+this.gap,this.widths[i]-dg,this.heights[i]-dg,this);y+=this.heights[i];if(y>yy)break}g.translate(-sx,-sy)}catch(e){g.translate(-sx,-sy);throw e}}};this.recalc=function(){this.psWidth_=this.psHeight_=0;if(this.model!==null){var count=this.model.count();if(this.heights===null||this.heights.length!==count){this.heights=Array(count)}if(this.widths===null||this.widths.length!==count){this.widths=Array(count)}var provider=this.provider;if(provider!==null){var dg=2*this.gap;for(var i=0;i<count;i++){var ps=provider.getView(this,this.model.get(i),i).getPreferredSize();this.heights[i]=ps.height+dg;this.widths[i]=ps.width+dg;if(this.widths[i]>this.psWidth_){this.psWidth_=this.widths[i]}this.psHeight_+=this.heights[i]}}}};this.calcPreferredSize=function(l){return{width:this.psWidth_,height:this.psHeight_}};this.vVisibility=function(){this.validate();var prev=this.vArea;this.vArea=pkg.$cvp(this,{});if(this.vArea===null){this.firstVisible=-1}else{if(this.visValid===false||(prev===null||prev.x!==this.vArea.x||prev.y!==this.vArea.y||prev.width!==this.vArea.width||prev.height!==this.vArea.height)){var top=this.getTop();if(this.firstVisible>=0){var dy=this.scrollManager.getSY();while(this.firstVisibleY+dy>=top&&this.firstVisible>0){this.firstVisible--;this.firstVisibleY-=this.heights[this.firstVisible]}}else{this.firstVisible=0;this.firstVisibleY=top}if(this.firstVisible>=0){var count=this.model===null?0:this.model.count(),hh=this.height-this.getBottom();for(;this.firstVisible<count;this.firstVisible++){var y1=this.firstVisibleY+this.scrollManager.getSY(),y2=y1+this.heights[this.firstVisible]-1;if(y1>=top&&y1<hh||y2>=top&&y2<hh||y1<top&&y2>=hh){break}this.firstVisibleY+=this.heights[this.firstVisible]}if(this.firstVisible>=count)this.firstVisible=-1}this.visValid=true}}};this.getItemLocation=function(index){this.validate();var y=this.getTop()+this.scrollManager.getSY();for(var i=0;i<index;i++){y+=this.heights[i]}return{x:this.getLeft(),y:y}};this.getItemSize=function(i){this.validate();return{width:this.widths[i],height:this.heights[i]}};this.getItemIdxAt=function(x,y){this.vVisibility();if(this.vArea!==null&&this.firstVisible>=0){var yy=this.firstVisibleY+this.scrollManager.getSY(),hh=this.height-this.getBottom(),count=this.model.count();for(var i=this.firstVisible;i<count;i++){if(y>=yy&&y<yy+this.heights[i]){return i}yy+=this.heights[i];if(yy>hh)break}}return-1}},function invalidate(){this.visValid=false;this.firstVisible=-1;this.$super()},function drawView(g,id,v,x,y,w,h){this.$super(g,id,v,x,y,this.width-this.getRight()-x,h)},function catchScrolled(psx,psy){this.firstVisible=-1;this.visValid=false;this.$super(psx,psy)}]);pkg.CompList=Class(pkg.BaseList,[function(m,b){this.model=this;this.setViewProvider(new zebkit.Dummy([function $prototype(){this.render=new pkg.CompRender;this.getView=function(target,obj,i){this.render.setTarget(obj);return this.render}}]));this.$supera(arguments)},function $clazz(){this.Label=Class(pkg.Label,[]);this.ImageLabel=Class(pkg.ImageLabel,[]);this.Listeners=this.$parent.Listeners.ListenersClass("elementInserted","elementRemoved","elementSet")},function $prototype(){this.max=null;this.get=function(i){if(i<0||i>=this.kids.length){throw new RangeError(i)}return this.kids[i]};this.contains=function(c){return this.indexOf(c)>=0};this.count=function(){return this.kids.length};this.catchScrolled=function(px,py){};this.getItemLocation=function(i){return{x:this.kids[i].x,y:this.kids[i].y}};this.getItemSize=function(i){return this.kids[i].isVisible===false?{width:0,height:0}:{width:this.kids[i].width,height:this.kids[i].height}};this.recalc=function(){this.max=zebkit.layout.getMaxPreferredSize(this)};this.calcMaxItemSize=function(){this.validate();return{width:this.max.width,height:this.max.height}};this.getItemIdxAt=function(x,y){return zebkit.layout.getDirectAt(x,y,this)};this.isItemSelectable=function(i){return this.model.get(i).isVisible===true&&this.model.get(i).isEnabled===true};this.catchInput=function(child){if(this.isComboMode!==true){var p=child;while(p!==this){if(p.stopCatchInput===true)return false;p=p.parent}}return true};this.setModel=function(m){if(Array.isArray(m)){for(var i=0;i<m.length;i++){this.add(m[i])}}else{throw new Error("Invalid comp list model")}return this}},function setPosition(c){if(c!==this.position){if(zebkit.instanceOf(this.layout,zebkit.util.Position.Metric)){c.setMetric(this.layout)}this.$super(c)}return this},function setLayout(layout){if(layout!==this.layout){this.scrollManager=new pkg.ScrollManager(this,[function $prototype(){this.calcPreferredSize=function(t){return layout.calcPreferredSize(t)};this.doLayout=function(t){layout.doLayout(t);for(var i=0;i<t.kids.length;i++){var kid=t.kids[i];if(kid.isVisible===true){kid.setLocation(kid.x+this.getSX(),kid.y+this.getSY())}}};this.scrollStateUpdated=function(sx,sy,px,py){this.target.vrp()}}]);this.$super(this.scrollManager);if(this.position!==null){this.position.setMetric(zebkit.instanceOf(layout,zebkit.util.Position.Metric)?layout:this)}}return this},function setAt(i,item){if(i<0||i>=this.kids.length){throw new RangeError(i)}return this.$super(i,item)},function insert(i,constr,e){if(arguments.length===2){e=constr;constr=null}if(i<0||i>this.kids.length){throw new RangeError(i)}return this.$super(i,constr,zebkit.instanceOf(e,pkg.Panel)?e:new this.clazz.Label(""+e))},function kidAdded(index,constr,e){this.$super(index,constr,e);this.model._.elementInserted(this,e,index)},function kidRemoved(index,e){this.$super(index,e);this.model._.elementRemoved(this,e,index)}]);pkg.Combo=Class(pkg.Panel,[function(list,editable){if(arguments.length===1&&zebkit.isBoolean(list)){editable=list;list=null}if(arguments.length===0){editable=false}if(arguments.length===0||list===null){list=new this.clazz.List(true)}if(zebkit.instanceOf(list,pkg.BaseList)===false){list=list.length>0&&zebkit.instanceOf(list[0],pkg.Panel)?new this.clazz.CompList(list,true):new this.clazz.List(list,true)}this.maxPadHeight=0;this.$lockListSelEvent=false;this._=new this.clazz.Listeners;this.setList(list);this.$super();this.add("center",editable?new this.clazz.EditableContentPan:new this.clazz.ReadonlyContentPan);this.add("right",new this.clazz.Button)},function $clazz(){this.Listeners=zebkit.util.ListenersClass("selected");this.ContentPan=Class(pkg.Panel,[function $prototype(){this.comboValueUpdated=function(combo,value){};this.getCombo=function(){for(var p=this.parent;p!==null&&zebkit.instanceOf(p,pkg.Combo)===false;p=p.parent);return p}}]);this.ComboPadPan=Class(pkg.ScrollPan,[function $prototype(){this.$closeTime=0;this.adjustToComboSize=true;this.owner=null;this.childKeyPressed=function(e){if(e.code==="Escape"&&this.parent!==null){this.removeMe();if(this.owner!==null)this.owner.requestFocus()}}},function setParent(l){this.$super(l);if(l===null&&this.owner!==null){this.owner.requestFocus()}this.$closeTime=l===null?(new Date).getTime():0}]);this.ReadonlyContentPan=Class(this.ContentPan,[function $prototype(){this.calcPsByContent=false;this.getCurrentView=function(){var list=this.getCombo().list,selected=list.getSelected();return selected!==null?list.provider.getView(list,selected,list.selectedIndex):null};this.paintOnTop=function(g){var v=this.getCurrentView();if(v!==null){var ps=v.getPreferredSize();v.paint(g,this.getLeft(),this.getTop()+Math.floor((this.height-this.getTop()-this.getBottom()-ps.height)/2),this.width,ps.height,this)}};this.setCalcPsByContent=function(b){if(this.calcPsByContent!==b){this.calcPsByContent=b;this.vrp()}return this};this.calcPreferredSize=function(l){var p=this.getCombo();if(p!==null&&this.calcPsByContent!==true){return p.list.calcMaxItemSize()}var cv=this.getCurrentView();return cv===null?{width:0,height:0}:cv.getPreferredSize()};this.comboValueUpdated=function(combo,value){if(this.calcPsByContent===true)this.invalidate()}}]);this.EditableContentPan=Class(this.ContentPan,[function $clazz(){this.TextField=Class(pkg.TextField,[]);this.Listeners=zebkit.util.ListenersClass("contentUpdated")},function $prototype(){this.canHaveFocus=true;this.textUpdated=function(src,b,off,size,startLine,lines){if(this.dontGenerateUpdateEvent===false){this._.contentUpdated(this,this.textField.getValue())}};this.comboValueUpdated=function(combo,v){this.dontGenerateUpdateEvent=true;try{var txt=v===null?"":v.toString();this.textField.setValue(txt);this.textField.select(0,txt.length)}finally{this.dontGenerateUpdateEvent=false}}},function focused(){this.$super();this.textField.requestFocus()},function(){this.$super();this._=new this.clazz.Listeners;this.isEditable=true;this.dontGenerateUpdateEvent=false;this.textField=new this.clazz.TextField("",-1);this.textField.view.target.on(this);this.add("center",this.textField)}]);this.Button=Class(pkg.Button,[function(){this.setFireParams(true,-1);this.$super()}]);this.List=Class(pkg.List,[]);this.CompList=Class(pkg.CompList,[])},function $prototype(){this.list=null;this.selectionView=this.button=this.content=this.winpad=null;this.paint=function(g){if(this.content!==null&&this.selectionView!==null&&this.hasFocus()){this.selectionView.paint(g,this.content.x,this.content.y,this.content.width,this.content.height,this)}};this.catchInput=function(child){return child!==this.button&&(this.content===null||this.content.isEditable!==true)};this.canHaveFocus=function(){return this.winpad.parent===null&&(this.content!==null&&this.content.isEditable!==true)};this.contentUpdated=function(src,text){if(src===this.content){try{this.$lockListSelEvent=true;if(text===null){this.list.select(-1)}else{var m=this.list.model;for(var i=0;i<m.count();i++){var mv=m.get(i);if(mv!==text){this.list.select(i);break}}}}finally{this.$lockListSelEvent=false}this._.selected(this,text)}};this.select=function(i){this.list.select(i);return this};this.setSelectedIndex=function(i){this.select(i);return this};this.setValue=function(v){return this.list.setValue(v)};this.getValue=function(){return this.list.getValue()};this.pointerPressed=function(e){if(e.isAction()&&this.content!==null&&(new Date).getTime()-this.winpad.$closeTime>100&&e.x>this.content.x&&e.y>this.content.y&&e.x<this.content.x+this.content.width&&e.y<this.content.y+this.content.height){this.showPad()}};this.isPadShown=function(){return this.winpad!==null&&this.winpad.parent!==null&&this.winpad.isVisible===true};this.hidePad=function(){var d=this.getCanvas();if(d!==null&&this.winpad.parent!==null){this.winpad.removeMe();this.requestFocus()}return this};this.showPad=function(){var canvas=this.getCanvas();if(canvas!==null){var ps=this.winpad.getPreferredSize(),p=zebkit.layout.toParentOrigin(0,0,this.winpad.adjustTo==null?this:this.winpad.adjustTo),py=p.y;if(this.maxPadHeight>0&&ps.height>this.maxPadHeight){ps.height=this.maxPadHeight}if(py+this.height+ps.height>canvas.height){if(py-ps.height>=0){py-=ps.height+this.height}else{var hAbove=canvas.height-py-this.height;if(py>hAbove){ps.height=py;py-=ps.height+this.height}else{ps.height=hAbove}}}this.winpad.setBounds(p.x,py+(this.winpad.adjustTo==null?this.height:this.winpad.adjustTo.height),this.winpad.adjustTo==null?this.winpad.adjustToComboSize===true?this.width:ps.width:this.winpad.adjustTo.width,ps.height);this.list.notifyScrollMan(this.list.selectedIndex);canvas.getLayer(pkg.PopupLayerMix.id).add(this,this.winpad);this.list.requestFocus();if(typeof this.padShown!=="undefined"){this.padShown(true)}return this}};this.setList=function(l){if(this.list!==l){this.hidePad();if(this.list!==null)this.list.off(this);this.list=l;if(typeof this.list._!=="undefined")this.list.on(this);var $this=this;this.winpad=new this.clazz.ComboPadPan(this.list,[function setParent(p){this.$super(p);if(typeof $this.padShown!=="undefined"){$this.padShown($this,p!==null)}}]);this.winpad.owner=this;if(this.content!==null){this.content.comboValueUpdated(this,this.list.getSelected())}this.vrp()}return this};this.keyPressed=function(e){if(this.list!==null&&this.list.model!==null){var index=this.list.selectedIndex;switch(e.code){case"Enter":this.showPad();break;case"ArrowLeft":case"ArrowUp":if(index>0)this.list.select(index-1);break;case"ArrowDown":case"ArrowRight":if(this.list.model.count()-1>index)this.list.select(index+1);break}}};this.keyTyped=function(e){this.list.keyTyped(e)};this.setSelectionView=function(c){if(c!==this.selectionView){this.selectionView=pkg.$view(c);this.repaint()}return this};this.setMaxPadHeight=function(h){if(this.maxPadHeight!==h){this.hidePad();this.maxPadHeight=h}return this};this.setEditable=function(b){if(this.content===null||this.content.isEditable!==b){var ctr="center";if(this.content!==null){ctr=this.content.constraints;this.content.removeMe()}this.add(ctr,b?new this.clazz.EditableContentPan:new this.clazz.ReadonlyContentPan)}return this};this.fired=function(src){if((new Date).getTime()-this.winpad.$closeTime>100){this.showPad()}};this.selected=function(src,data){if(this.$lockListSelEvent===false){this.hidePad();if(this.content!==null){this.content.comboValueUpdated(this,this.list.getSelected());if(this.content.isEditable===true){this.content.requestFocus()}this.repaint()}this._.selected(this,data)}}},function focused(){this.$super();this.repaint()},function kidAdded(index,s,c){if(zebkit.instanceOf(c,pkg.Combo.ContentPan)){if(this.content!==null){throw new Error("Content panel is set")}this.content=c;if(this.list!==null){c.comboValueUpdated(this,this.list.getSelected())}}else if(this.button===null){this.button=c}if(zebkit.instanceOf(c,zebkit.util.Fireable)){c.on(this)}this.$super(index,s,c)},function kidRemoved(index,l){if(zebkit.instanceOf(l,zebkit.util.Fireable)){l.off(this)}if(this.content===l){this.content=null}else if(this.button===l){this.button=null}this.$super(index,l)},function setVisible(b){if(b===false){this.hidePad()}this.$super(b);return this},function setParent(p){if(p===null)this.hidePad();this.$super(p)}]);pkg.events.regEvents("menuItemSelected");pkg.MenuEvent=Class(zebkit.util.Event,[function $prototype(){this.index=-1;this.item=null;this.$fillWith=function(src,index,item){this.source=src;this.index=index;this.item=item;return this}}]);var MENU_EVENT=new pkg.MenuEvent;pkg.showPopupMenu=function(context,menu){context.getCanvas().getLayer(pkg.PopupLayerMix.id).add(menu)};pkg.MenuItem=Class(pkg.Panel,[function(c){this.$super();this.add(new this.clazz.CheckStatePan);if(zebkit.isString(c)){var m=c.match(/(\s*\@\(.*\)\s*)?(\s*\[\s*\]|\s*\[\s*x\s*\]|\s*\(\s*x\s*\)|\s*\(\s*\))?\s*(.*)/);if(m===null){throw new Error("Invalid menu item: "+c)}if(typeof m[2]!=="undefined"){var s=m[2].trim();this.setCheckManager(s[0]==="("?new pkg.Group:new pkg.SwitchManager);this.manager.setValue(this,m[2].indexOf("x")>0)}var img=null;if(typeof m[1]!=="undefined"){img=m[1].substring(m[1].indexOf("@(")+2,m[1].lastIndexOf(")")).trim();if(img[0]==="'"){img=img.substring(1,img.length-1)}else{var parts=img.split("."),scope=zebkit.$global;img=null;for(var i=0;i<parts.length;i++){scope=scope[parts[i]];if(typeof scope==="undefined"||scope===null){break}}img=scope}}c=m[3];m=c.match(/(.*)\s*\[\s*@([a-zA-Z_][a-zA-Z0-9_]+)\s*]\s*/);if(m!==null){this.id=m[2].trim();c=m[1].trim()}else{this.id=c.toLowerCase().replace(/[ ]+/,"_")}c=new pkg.ImageLabel(new this.clazz.Label(c),img)}else{this.getCheck().setVisible(false)}this.add(c);this.add(new this.clazz.SubImage);this.setEnabled(c.isEnabled);this.setVisible(c.isVisible)},function $clazz(){this.SubImage=Class(pkg.StatePan,[]);this.Label=Class(pkg.Label,[]);this.CheckStatePan=Class(pkg.ViewPan,[])},function $prototype(){this.gap=8;this.manager=null;this.itemSelected=function(){var content=this.getContent();if(zebkit.instanceOf(content,pkg.Checkbox)){content.setValue(!content.getValue())}if(this.manager!==null){this.manager.setValue(this,!this.manager.getValue(this))}};this.setIcon=function(img){this.getContent().setImage(img);return this};this.setCaption=function(caption){this.getContent().setCaption(caption);return this};this.switched=function(b){this.kids[0].view.activate(b?this.isEnabled===true?"on":"on.disabled":"off",this)};this.getCheck=function(){return this.kids[0]};this.getContent=function(){return this.kids.length>0?this.kids[1]:null};this.getSub=function(){return this.kids.length>1?this.kids[2]:null};this.hideSub=function(){this.getSub().setVisible(false)};this.activateSub=function(b){var kid=this.getSub();kid.setState(b?"arrow":"*");if(this.parent!==null&&this.parent.noSubIfEmpty===true){kid.setVisible(b)}};this.calcPreferredSize=function(target){var cc=0,pw=0,ph=0;for(var i=0;i<target.kids.length;i++){var k=target.kids[i];if(k.isVisible===true){var ps=k.getPreferredSize();pw+=ps.width+(cc>0?this.gap:0);if(ps.height>ph)ph=ps.height;cc++}}return{width:pw,height:ph}};this.doLayout=function(target){var left=this.getCheck(),right=this.getSub(),content=this.getContent(),t=target.getTop(),l=target.getLeft(),eh=target.height-t-target.getBottom(),ew=target.width-l-target.getRight();if(left!==null&&left.isVisible===true){left.toPreferredSize();left.setLocation(l,t+Math.floor((eh-left.height)/2));l+=this.gap+left.width;ew-=this.gap+left.width}if(right!==null&&right.isVisible===true){right.toPreferredSize();right.setLocation(target.width-target.getRight()-right.width,t+Math.floor((eh-right.height)/2));ew-=this.gap+right.width}if(content!==null&&content.isVisible===true){content.toPreferredSize();if(content.width>ew){content.setSize(ew,content.height)}content.setLocation(l,t+Math.floor((eh-content.height)/2))}};this.setCheckState=function(b){if(this.manager===null){this.setCheckManager(new pkg.SwitchManager)}this.manager.setValue(this,b);return this};this.getCheckState=function(){return this.manager.getValue(this)};this.setCheckManager=function(man){if(this.manager!==man){if(this.manager!==null){this.manager.uninstall(this)}this.manager=man;this.manager.install(this)}return this}},function setParent(p){this.$super(p);if(p!==null&&p.noSubIfEmpty===true){this.getSub().setVisible(false)}},function setEnabled(b){this.$super(b);if(this.manager!==null){this.switched(this.manager.getValue(this))}return this}]).hashable();pkg.Menu=Class(pkg.CompList,[function(d){this.menus={};this.$super([],zebkit.isBoolean(d)?d:true);if(Array.isArray(d)){for(var i=0;i<d.length;i++){this.add(d[i])}}else{for(var k in d){if(d.hasOwnProperty(k)){var sub=d[k];this.add(k);if(sub!=null){this.setMenuAt(this.kids.length-1,zebkit.instanceOf(sub,pkg.Menu)?sub:new pkg.Menu(sub))}}}}},function $clazz(){this.MenuItem=Class(pkg.MenuItem,[function $clazz(){this.Label=Class(pkg.MenuItem.Label,[])}]);this.Line=Class(pkg.Line,[]);this.Line.prototype.$isDecorative=true},function $prototype(){this.$parentMenu=null;this.canHaveFocus=true;this.noSubIfEmpty=false;this.isDecorative=function(i){return this.kids[i].$isDecorative===true||this.kids[i].$$isDecorative===true};this.childCompEnabled=this.childCompShown=function(e){var src=e.source;for(var i=0;i<this.kids.length;i++){if(this.kids[i]===src){if(this.isItemSelectable(i)===false){if(i===this.selectedIndex)this.select(-1)}break}}};this.getMenuItem=function(i){if(zebkit.isString(i)===true){var item=this.byPath(i);if(item!==null)return item;for(var k in this.menus){item=this.menus[k].getMenuItem(i);if(item!==null)return item}}return this.kids[i]};this.hasSelectableItems=function(){for(var i=0;i<this.kids.length;i++){if(this.isItemSelectable(i))return true}return false};this.pointerExited=function(e){this.position.setOffset(null)};this.getMenuAt=function(index){if(index<this.kids.length){var hash=this.kids[index].$hash$;return this.menus.hasOwnProperty(hash)?this.menus[hash]:null}else{return null}};this.setMenuAt=function(i,m){if(m===this){throw new Error("Menu cannot be sub-menu of its own")}if(this.isDecorative(i)){throw new Error("Decorative element cannot have a sub-menu")}var p=this.kids[i];if(typeof p.activateSub!=="undefined"){var sub=this.menus[p];if(m!==null){if(sub==null){p.activateSub(true)}}else if(sub!=null){p.activateSub(false)}}if(this.parent!==null&&i===this.selectedIndex){this.select(-1)}if(typeof p.$hash$==="undefined"){throw new Error("Invalid key")}this.menus[p]=m;return this};this.indexMenuOf=function(menu){for(var i=0;i<this.kids.length;i++){if(this.menus[this.kids[i]]===menu){return i}}return-1};this.$canceled=function(m){if(this.$parentMenu!==null&&typeof this.$canceled!=="undefined"){this.$parentMenu.$canceled(m)}};this.$topMenu=function(){if(this.parent!==null){var t=this,p=null;while((p=t.$parentMenu)!==null)t=p;return t}return null};this.doScroll=function(dx,dy,source){var sy=this.scrollManager.getSY(),ps=this.layout.calcPreferredSize(this),eh=this.height-this.getTop()-this.getBottom();if(this.height<ps.height&&sy+ps.height>=eh&&sy-dy<=0){var nsy=sy-dy;if(nsy+ps.height<eh){nsy=eh-ps.height}if(sy!==nsy)this.scrollManager.scrollYTo(nsy)}};this.$hideMenu=function(){if(this.parent!==null){var ch=this.$childMenu();if(ch!==null){ch.$hideMenu()}this.removeMe();this.select(-1)}};this.$childMenu=function(){if(this.parent!==null){for(var k in this.menus){var m=this.menus[k];if(m.$parentMenu===this){return m}}}return null};this.$showSubMenu=function(sub){sub.setLocation(this.x+this.width-10,this.y+this.kids[this.selectedIndex].y);sub.toPreferredSize();this.parent.add(sub);sub.requestFocus()};this.triggerSelectionByPos=function(i){return this.getMenuAt(i)!==null&&this.$triggeredByPointer===true}},function keyPressed(e){if(e.code==="Escape"){if(this.parent!==null){var p=this.$parentMenu;this.$canceled(this);this.$hideMenu();if(p!==null)p.requestFocus()}}else{this.$super(e)}},function insert(i,ctr,c){if(zebkit.isString(c)){return this.$super(i,ctr,c.match(/^\-+$/)!==null?new this.clazz.Line:new this.clazz.MenuItem(c))}return this.$super(i,ctr,c)},function setParent(p){if(p!==null){this.select(-1);this.position.setOffset(null)}else{this.$parentMenu=null}this.$super(p)},function addDecorative(c){if(c.$isDecorative!==true){c.$$isDecorative=true}this.$getSuper("insert").call(this,this.kids.length,null,c)},function kidRemoved(i,c){if(typeof c.$$isDecorative!=="undefined"){delete c.$$isDecorative}this.setMenuAt(i,null);this.$super(i,c)},function isItemSelectable(i){return this.$super(i)&&this.isDecorative(i)===false},function posChanged(target,prevOffset,prevLine,prevCol){var off=target.offset;if(off>=0){var rs=null;if(this.selectedIndex>=0&&off!==this.selectedIndex){var sub=this.getMenuAt(this.selectedIndex);if(sub!==null){sub.$hideMenu();rs=-1;this.requestFocus()}}if(this.parent!==null&&off!==this.selectedIndex&&this.isItemSelectable(off)){if(this.triggerSelectionByPos(off))rs=off}if(rs!==null){this.select(rs)}}this.$super(target,prevOffset,prevLine,prevCol)},function fireSelected(prev){if(this.parent!==null){var sub=null;if(this.selectedIndex>=0){sub=this.getMenuAt(this.selectedIndex);if(sub!==null){if(sub.parent!==null){sub.$hideMenu()}else{sub.$parentMenu=this;this.$showSubMenu(sub)}}else{var k=this.kids[this.selectedIndex];if(typeof k.itemSelected!=="undefined"){k.itemSelected();pkg.events.fire("menuItemSelected",MENU_EVENT.$fillWith(this,this.selectedIndex,this.kids[this.selectedIndex]))}var top=this.$topMenu();if(top!==null){top.$hideMenu()}}}else if(prev>=0){sub=this.getMenuAt(prev);if(sub!==null&&sub.parent!==null){sub.$hideMenu()}pkg.events.fire("menuItemSelected",MENU_EVENT.$fillWith(this,this.selectedIndex,this.kids[prev]))}}this.$super(prev)}]);pkg.Menubar=Class(pkg.Menu,[function $clazz(){this.MenuItem=Class(pkg.MenuItem,[function $clazz(){this.Label=Class(pkg.MenuItem.Label,[])},function(c){this.$super(c);this.hideSub();this.getCheck().setVisible(false)}])},function $prototype(){this.canHaveFocus=false;this.triggerSelectionByPos=function(i){return this.isItemSelectable(i)&&this.selectedIndex>=0};this.$hideMenu=function(){var child=this.$childMenu();if(child!==null){child.$hideMenu()}this.select(-1)};this.$showSubMenu=function(menu){var d=this.getCanvas(),k=this.kids[this.selectedIndex],pop=d.getLayer(pkg.PopupLayer.id);if(menu.hasSelectableItems()){var abs=zebkit.layout.toParentOrigin(0,0,k);menu.setLocation(abs.x,abs.y+k.height+1);menu.toPreferredSize();pop.add(menu);menu.requestFocus()}}},function $canceled(m){this.select(-1)},function $select(i){if(this.selectedIndex>=0&&this.selectedIndex===i){i=-1}this.$super(i)}]);pkg.PopupLayerLayout=Class(zebkit.layout.Layout,[function $prototype(){this.calcPreferredSize=function(target){return{width:0,height:0}};this.doLayout=function(target){for(var i=0;i<target.kids.length;i++){var m=target.kids[i];if(zebkit.instanceOf(m,pkg.Menu)){var ps=m.getPreferredSize(),xx=m.x+ps.width>target.width?target.width-ps.width:m.x,yy=m.y+ps.height>target.height?target.height-ps.height:m.y;m.setSize(ps.width,ps.height);if(xx<0)xx=0;if(yy<0)yy=0;m.setLocation(xx,yy)}}}}]);pkg.PopupLayerMix=zebkit.Interface([function $clazz(){this.id="popup"},function $prototype(){this.$prevFocusOwner=null;this.getFocusRoot=function(){return this};this.childFocusGained=function(e){if(zebkit.instanceOf(e.source,pkg.Menu)){if(e.related!==null&&zebkit.layout.isAncestorOf(this,e.related)===false){this.$prevFocusOwner=e.related}}else{this.$prevFocusOwner=null}if(e.related!==null&&zebkit.layout.isAncestorOf(this,e.related)===false&&zebkit.instanceOf(e.source,pkg.Menu)){this.$prevFocusOwner=e.related}};this.isTriggeredWith=function(e){return e.isAction()===false&&(e.identifier==="rmouse"||e.touchCounter===2)};this.childKeyPressed=function(e){var p=e.source.$parentMenu;if(typeof p!=="undefined"&&p!==null){switch(e.code){case"ArrowRight":if(p.selectedIndex<p.model.count()-1){p.requestFocus();p.position.seekLineTo("down")}break;case"ArrowLeft":if(p.selectedIndex>0){p.requestFocus();p.position.seekLineTo("up")}break}}};this.$topMenu=function(){if(this.kids.length>0){for(var i=this.kids.length-1;i>=0;i--){if(zebkit.instanceOf(this.kids[i],pkg.Menu)){return this.kids[i].$topMenu()}}}return null};this.compRemoved=function(e){if(this.$prevFocusOwner!==null&&this.kids.length===0&&zebkit.instanceOf(e.kid,pkg.Menu)){this.$prevFocusOwner.requestFocus();this.$prevFocusOwner=null}};this.layerPointerClicked=function(e){if(this.kids.length===0&&this.isTriggeredWith(e)){var popup=null;if(typeof e.source.popup!=="undefined"&&e.source.popup!==null){popup=e.source.popup}else if(typeof e.source.getPopup!=="undefined"){popup=e.source.getPopup(e.source,e.x,e.y)}if(popup!==null){popup.setLocation(e.absX,e.absY);this.add(popup);popup.requestFocus()}return true}return false}},function layerPointerPressed(e){if(this.kids.length>0){if(this.$getSuper("getComponentAt").call(this,e.x,e.y)===this){var top=this.$topMenu();if(top!==null){if(zebkit.instanceOf(top,pkg.Menubar)){var origin=zebkit.layout.toParentOrigin(top);if(e.x>=origin.x&&e.y>=origin.y&&e.x<origin.x+top.width&&e.y<origin.y+top.height){return}}top.$hideMenu()}if(this.kids.length>0){this.removeAll()}}}},function getComponentAt(x,y){if(this.kids.length>0){var comp=this.$super(x,y);if(comp!==this){return comp}}return null}]);pkg.PopupLayer=Class(pkg.Panel,pkg.PopupLayerMix,[]);pkg.events.regEvents("winOpened","winActivated");pkg.WinEvent=Class(zebkit.util.Event,[function $prototype(){this.isShown=false;this.isActive=false;this.layer=null;this.$fillWith=function(src,layer,isActive,isShown){this.source=src;this.layer=layer;this.isActive=isActive;this.isShown=isShown;return this}}]);var WIN_EVENT=new pkg.WinEvent;pkg.showModalWindow=function(context,win){pkg.showWindow(context,"modal",win)};pkg.showWindow=function(context,type,win){if(arguments.length<3){win=type;type="info"}return context.getCanvas().getLayer("win").addWin(type,win)};pkg.activateWindow=function(win){var l=win.getCanvas().getLayer("win");l.activate(zebkit.layout.getDirectChild(l,win))};pkg.WinLayerMix=zebkit.Interface([function $clazz(){this.id="win"},function $prototype(){this.activeWin=null;this.topModalIndex=-1;this.layerPointerPressed=function(e){if(this.kids.length>0){if(this.activeWin!==null){if(this.indexOf(this.activeWin)===this.kids.length-1){var x1=this.activeWin.x,y1=this.activeWin.y,x2=x1+this.activeWin.width,y2=y1+this.activeWin.height;if(e.x>=x1&&e.y>=y1&&e.x<=x2&&e.y<=y2){return false}}}for(var i=this.kids.length-1;i>=0&&i>=this.topModalIndex;i--){var d=this.kids[i];if(d.isVisible===true&&d.isEnabled===true&&d.winType!=="info"&&e.x>=d.x&&e.y>=d.y&&e.x<d.x+d.width&&e.y<d.y+d.height){if(d!==this.activeWin){this.activate(d);return true}else{return false}}}if(this.topModalIndex<0&&this.activeWin!==null){this.activate(null);return false}return this.topModalIndex>=0}return false};this.layerKeyPressed=function(e){if(this.kids.length>0&&e.code==="Tab"&&e.shiftKey===true){if(this.activeWin===null){this.activate(this.kids[this.kids.length-1])}else{var winIndex=this.kids.indexOf(this.activeWin)-1;if(winIndex<this.topModalIndex||winIndex<0){winIndex=this.kids.length-1}this.activate(this.kids[winIndex])}return true}return false};this.childFocusGained=function(e){this.activate(zebkit.layout.getDirectChild(this,e.source))};this.getFocusRoot=function(){return this.activeWin};this.getWinType=function(w){return w.winType};this.activate=function(c){if(c!==null&&(this.kids.indexOf(c)<0||c.winType==="info")){throw new Error("Window cannot be activated")}if(c!==this.activeWin){var old=this.activeWin;if(c===null){var type=this.activeWin.winType;if(type==="modal"){throw new Error("Modal window cannot be de-activated")}this.activeWin=null;pkg.events.fire("winActivated",WIN_EVENT.$fillWith(old,this,false,false));if(type==="mdi"&&old.$dontGrabFocus!==true){pkg.focusManager.requestFocus(null)}}else{if(this.kids.indexOf(c)<this.topModalIndex){throw new Error}this.activeWin=c;this.activeWin.toFront();if(old!==null){pkg.events.fire("winActivated",WIN_EVENT.$fillWith(old,this,false,false))}pkg.events.fire("winActivated",WIN_EVENT.$fillWith(c,this,true,false));this.activeWin.validate();if(this.activeWin.winType==="mdi"&&this.activeWin.$dontGrabFocus!==true){var newFocusable=pkg.focusManager.findFocusable(this.activeWin);pkg.focusManager.requestFocus(newFocusable)}}}};this.addWin=function(type,win){if(arguments.length>1){win.winType=type}this.add(win)};this.getComponentAt=function(x,y){return this.activeWin===null?null:this.activeWin.getComponentAt(x-this.activeWin.x,y-this.activeWin.y)}},function kidAdded(index,constr,lw){this.$super(index,constr,lw);if(typeof lw.winType==="undefined"){lw.winType="mdi"}else{zebkit.util.$validateValue(lw.winType,"mdi","modal","info")}if(lw.winType==="modal"){this.topModalIndex=this.kids.length-1;pkg.events.fire("winOpened",WIN_EVENT.$fillWith(lw,this,false,true));this.activate(lw)}else{pkg.events.fire("winOpened",WIN_EVENT.$fillWith(lw,this,false,true))}},function kidRemoved(index,lw){this.$getSuper("kidRemoved").call(this,index,lw);if(this.activeWin===lw){this.activeWin=null;if(lw.winType==="mdi"&&lw.$dontGrabFocus!==true){pkg.focusManager.requestFocus(null)}}var ci=this.kids.indexOf(lw);if(ci<this.topModalIndex){this.topModalIndex--}else if(this.topModalIndex===ci){for(this.topModalIndex=this.kids.length-1;this.topModalIndex>=0;this.topModalIndex--){if(this.kids[this.topModalIndex].winType==="modal"){break}}}pkg.events.fire("winOpened",WIN_EVENT.$fillWith(lw,this,false,false));if(this.topModalIndex>=0){var aindex=this.kids.length-1;while(this.kids[aindex].winType==="info"){aindex--}this.activate(this.kids[aindex])}}]);pkg.WinLayer=Class(pkg.Panel,pkg.WinLayerMix,[]);pkg.Window=Class(pkg.StatePan,[function(s,c){this.state="inactive";this.prevH=this.prevX=this.prevY=0;this.px=this.py=this.dx=this.dy=0;this.prevW=this.action=-1;this.root=c===null||arguments.length<2?this.createContentPan():c;this.caption=this.createCaptionPan();this.title=this.createTitle();this.title.setValue(s===null||arguments.length===0?"":s);this.icons=new pkg.Panel(new zebkit.layout.FlowLayout("left","center","horizontal",2));this.icons.add(new this.clazz.Icon);this.buttons=new pkg.Panel(new zebkit.layout.FlowLayout("center","center"));this.caption.add("center",this.title);this.caption.add("left",this.icons);this.caption.add("right",this.buttons);this.status=new this.clazz.StatusPan;this.sizer=new this.clazz.SizerPan;this.status.add(this.sizer);this.setSizeable(true);this.$super();this.setLayout(new zebkit.layout.BorderLayout(2,2));this.add("center",this.root);this.add("top",this.caption);this.add("bottom",this.status)},function $clazz(){this.CaptionPan=Class(pkg.StatePan,[function $prototype(){this.state="inactive"}]);this.TitleLab=Class(pkg.Label,[]);this.StatusPan=Class(pkg.Panel,[]);this.ContentPan=Class(pkg.Panel,[]);this.SizerPan=Class(pkg.ViewPan,[]);this.Icon=Class(pkg.ImagePan,[]);this.Button=Class(pkg.Button,[])},function $prototype(){var MOVE_ACTION=1,SIZE_ACTION=2;this.sizer=this.caption=null;this.isPopupEditor=true;this.minSize=40;this.isSizeable=true;this.isActive=function(){var c=this.getCanvas();return c!==null&&c.getLayer("win").activeWin===this.getWinContainer()};this.pointerDragStarted=function(e){this.px=e.absX;this.py=e.absY;this.action=this.insideCorner(e.x,e.y)?this.isSizeable?SIZE_ACTION:-1:MOVE_ACTION;if(this.action>0){this.dy=this.dx=0}};this.pointerDragged=function(e){if(this.action>0){var container=null;if(this.action!==MOVE_ACTION){container=this.getWinContainer();var nw=this.dx+container.width,nh=this.dy+container.height;if(nw>this.minSize&&nh>this.minSize){container.setSize(nw,nh)}}this.dx=e.absX-this.px;this.dy=e.absY-this.py;this.px=e.absX;this.py=e.absY;if(this.action===MOVE_ACTION){container=this.getWinContainer();container.setLocation(this.dx+container.x,this.dy+container.y)}}};this.pointerDragEnded=function(e){if(this.action>0){if(this.action===MOVE_ACTION){var container=this.getWinContainer();container.setLocation(this.dx+container.x,this.dy+container.y)}this.action=-1}};this.getWinContainer=function(){return this};this.insideCorner=function(px,py){return this.getComponentAt(px,py)===this.sizer};this.getCursorType=function(target,x,y){return this.isSizeable&&this.insideCorner(x,y)?pkg.Cursor.SE_RESIZE:null};this.catchInput=function(c){var tp=this.caption;return c===tp||zebkit.layout.isAncestorOf(tp,c)&&zebkit.instanceOf(c,pkg.Button)===false||this.sizer===c};this.winOpened=function(e){var state=this.isActive()?"active":"inactive";if(this.caption!==null&&typeof this.caption.setState!=="undefined"){this.caption.setState(state)}this.setState(state)};this.winActivated=function(e){this.winOpened(e)};this.pointerDoubleClicked=function(e){var x=e.x,y=e.y,cc=this.caption;if(this.isSizeable===true&&x>cc.x&&x<cc.y+cc.width&&y>cc.y&&y<cc.y+cc.height){if(this.prevW<0)this.maximize();else this.restore()}};this.isMaximized=function(){return this.prevW!==-1};this.createCaptionPan=function(){return new this.clazz.CaptionPan};this.createContentPan=function(){return new this.clazz.ContentPan};this.createTitle=function(){return new this.clazz.TitleLab};this.setIcon=function(i,icon){if(zebkit.isString(icon)||zebkit.instanceOf(icon,pkg.Picture)){icon=new pkg.ImagePan(icon)}this.icons.setAt(i,icon);return this};this.setSizeable=function(b){if(this.isSizeable!==b){this.isSizeable=b;if(this.sizer!==null){this.sizer.setVisible(b)}}return this};this.maximize=function(){if(this.prevW<0){var d=this.getCanvas(),cont=this.getWinContainer(),left=d.getLeft(),top=d.getTop();this.prevX=cont.x;this.prevY=cont.y;this.prevW=cont.width;this.prevH=cont.height;cont.setBounds(left,top,d.width-left-d.getRight(),d.height-top-d.getBottom())}return this};this.restore=function(){if(this.prevW>=0){this.getWinContainer().setBounds(this.prevX,this.prevY,this.prevW,this.prevH);this.prevW=-1}return this};this.close=function(){this.getWinContainer().removeMe();return this};this.setButtons=function(buttons){for(var i=0;i<this.buttons.length;i++){var kid=this.buttons.kids[i];if(zebkit.instanceOf(kid,zebkit.util.Fireable)){kid.off()}}this.buttons.removeAll();for(var k in buttons){if(buttons.hasOwnProperty(k)){var b=new this.clazz.Button;b.properties(buttons[k]);this.buttons.add(b);(function(t,f){b.on(function(){f.call(t)})})(this,this[k])}}return this}},function focused(){this.$super();if(this.caption!==null){this.caption.repaint()}}]);pkg.Tooltip=Class(pkg.Panel,[function(content){this.$super();if(arguments.length>0){this.add(pkg.$component(content,this));this.toPreferredSize()}},function $clazz(){this.Label=Class(pkg.Label,[]);this.ImageLabel=Class(pkg.ImageLabel,[]);this.TooltipBorder=Class(pkg.View,[function(col,size){if(arguments.length>0)this.color=col;if(arguments.length>1)this.size=size;this.gap=2*this.size},function $prototype(){this.color="black";this.size=2;this.paint=function(g,x,y,w,h,d){if(this.color!==null){this.outline(g,x,y,w,h,d);g.setColor(this.color);g.lineWidth=this.size;g.stroke()}};this.outline=function(g,x,y,w,h,d){g.beginPath();h-=2*this.size;w-=2*this.size;x+=this.size;y+=this.size;var w2=w/2+.5|0,w3_8=3*w/8+.5|0,h2_3=2*h/3+.5|0,h3=h/3+.5|0,w4=w/4+.5|0;g.moveTo(x+w2,y);g.quadraticCurveTo(x,y,x,y+h3);g.quadraticCurveTo(x,y+h2_3,x+w4,y+h2_3);g.quadraticCurveTo(x+w4,y+h,x,y+h);g.quadraticCurveTo(x+w3_8,y+h,x+w2,y+h2_3);g.quadraticCurveTo(x+w,y+h2_3,x+w,y+h3);g.quadraticCurveTo(x+w,y,x+w2,y);g.closePath();return true}}])},function recalc(){this.$contentPs=this.kids.length===0?this.$super():this.kids[0].getPreferredSize()},function getBottom(){return this.$super()+this.$contentPs.height},function getTop(){return this.$super()+(this.$contentPs.height/6+.5|0)},function getLeft(){return this.$super()+(this.$contentPs.height/6+.5|0)},function getRight(){return this.$super()+(this.$contentPs.height/6+.5|0)}]);pkg.TooltipManager=Class(pkg.Manager,[function $prototype(){this.$tooltipX=this.$tooltipY=0;this.$toolTask=this.$targetTooltipLayer=this.$tooltip=this.$target=null;this.hideTooltipByPress=true;this.showTooltipIn=400;this.syncTooltipPosition=true;this.pointerEntered=function(e){if(this.$target===null&&(typeof e.source.tooltip!=="undefined"&&e.source.tooltip!==null||typeof e.source.getTooltip!=="undefined")){var $this=this;this.$target=e.source;this.$targetTooltipLayer=e.source.getCanvas().getLayer("win");this.$tooltipX=e.x;this.$tooltipY=e.y;this.$toolTask=zebkit.util.tasksSet.run(this,this.showTooltipIn,this.showTooltipIn)}};this.pointerExited=function(e){if(this.$target!==null&&(this.$tooltip===null||this.$tooltip.winType==="info")){this.stopShowingTooltip()}};this.pointerMoved=function(e){if(this.$target===e.source){this.$tooltipX=e.x;this.$tooltipY=e.y;if(this.$toolTask!==null){this.$toolTask.resume(this.showTooltipIn)}}};this.run=function(t){if(this.$target!==null){var ntooltip=typeof this.$target.tooltip!=="undefined"&&this.$target.tooltip!==null?this.$target.tooltip:this.$target.getTooltip(this.$target,this.$tooltipX,this.$tooltipY),p=null,tx=0,ty=0;if(this.$tooltip!==ntooltip){if(this.$tooltip!==null){this.hideTooltip()}this.$tooltip=ntooltip;if(ntooltip!==null){p=zebkit.layout.toParentOrigin(this.$tooltipX,this.$tooltipY,this.$target);this.$tooltip.toPreferredSize();tx=p.x;ty=p.y-this.$tooltip.height;var dw=this.$targetTooltipLayer.width;if(tx+this.$tooltip.width>dw){tx=dw-this.$tooltip.width-1}this.$tooltip.setLocation(tx<0?0:tx,ty<0?0:ty);if(typeof this.$tooltip.winType==="undefined"){this.$tooltip.winType="info"}this.$targetTooltipLayer.add(this.$tooltip);if(this.$tooltip.winType!=="info"){pkg.activateWindow(this.$tooltip)}}}else{if(this.$tooltip!==null&&this.syncTooltipPosition===true){p=zebkit.layout.toParentOrigin(this.$tooltipX,this.$tooltipY,this.$target);tx=p.x;ty=p.y-this.$tooltip.height;this.$tooltip.setLocation(tx<0?0:tx,ty<0?0:ty)}}}t.pause()};this.winActivated=function(e){if(e.isActive===false&&this.$tooltip!==null){this.$tooltip.removeMe()}};this.winOpened=function(e){if(e.isShown===false){this.$tooltip=null;if(e.source.winType!=="info"){this.stopShowingTooltip()}}};this.stopShowingTooltip=function(){if(this.$target!==null){this.$target=null}if(this.$toolTask!==null){this.$toolTask.shutdown()}this.hideTooltip()};this.hideTooltip=function(){if(this.$tooltip!==null){this.$tooltip.removeMe();this.$tooltip=null}};this.pointerPressed=function(e){if(this.hideTooltipByPress===true&&e.pointerType==="mouse"&&this.$target!==null&&(this.$tooltip===null||this.$tooltip.winType==="info")){this.stopShowingTooltip()}};this.pointerReleased=function(e){if((this.hideTooltipByPress===false||e.pointerType!=="mouse")&&this.$target!==null&&(this.$tooltip===null||this.$tooltip.winType==="info")){this.stopShowingTooltip()}}}]);pkg.$configWith(pkg)});zebkit.package("ui.tree",function(pkg,Class){"use strict";var ui=pkg.cd("..");pkg.$IM=function(b){this.width=this.height=this.x=this.y=this.viewHeight=0;this.viewWidth=-1;this.isOpen=b};pkg.DefEditors=Class([function(){this.tf=new this.clazz.TextField(new zebkit.data.SingleLineTxt(""))},function $clazz(){this.TextField=Class(ui.TextField,[])},function $prototype(){this.getEditor=function(src,item){var o=item.value;this.tf.setValue(o===null?"":o.toString());return this.tf};this.fetchEditedValue=function(src,editor){return editor.view.target.getValue()};this.shouldStartEdit=function(src,e){return e.id==="pointerDoubleClicked"||e.id==="keyPressed"&&e.code==="Enter"}}]);pkg.DefViews=Class([function(color,font){this.render=new ui.StringRender("");zebkit.properties(this,this.clazz);if(arguments.length>0&&color!==null){this.setColor(color)}if(arguments.length>1&&font!==null){this.setFont(font)}},function $prototype(){this.getView=function(tree,item){if(item.value&&typeof item.value.paint!=="undefined"){return item.value}this.render.setValue(item.value===null?"<null>":item.value);return this.render};this.setFont=function(f){this.render.setFont(f);return this};this.setColor=function(c){this.render.setColor(c);return this}}]);pkg.BaseTree=Class(ui.Panel,[function(d,b){if(arguments.length<2){b=true}this.maxw=this.maxh=0;this.views={};this.viewSizes={};this._isVal=false;this.nodes={};this._=new this.clazz.Listeners;this.setLineColor("gray");this.isOpenVal=b;this.setSelectable(true);this.$super();this.setModel(d);this.scrollManager=new ui.ScrollManager(this)},function $clazz(){this.Listeners=zebkit.util.ListenersClass("toggled","selected","editingStarted","editingStopped")},function $prototype(){this.visibleArea=this.lnColor=null;this.model=this.selected=this.firstVisible=null;this.gapx=this.gapy=2;this.canHaveFocus=true;this.isOpen=function(i){this.validate();return this.$isOpen(i)};this.getItemMetrics=function(i){this.validate();return this.getIM(i)};this.togglePressed=function(root){this.toggle(root)};this.itemPressed=function(root,e){this.select(root)};this.pointerPressed=function(e){if(this.firstVisible!==null&&e.isAction()){var x=e.x,y=e.y,root=this.getItemAt(this.firstVisible,x,y);if(root!==null){x-=this.scrollManager.getSX();y-=this.scrollManager.getSY();var r=this.getToggleBounds(root);if(x>=r.x&&x<r.x+r.width&&y>=r.y&&y<r.y+r.height){this.togglePressed(root)}else{if(x>r.x+r.width)this.itemPressed(root,e)}}}};this.vVisibility=function(){if(this.model===null){this.firstVisible=null}else{var nva=ui.$cvp(this,{});if(nva===null){this.firstVisible=null}else{if(this._isVal===false||(this.visibleArea===null||this.visibleArea.x!==nva.x||this.visibleArea.y!==nva.y||this.visibleArea.width!==nva.width||this.visibleArea.height!==nva.height)){this.visibleArea=nva;if(this.firstVisible!==null){this.firstVisible=this.findOpened(this.firstVisible);this.firstVisible=this.isOverVisibleArea(this.firstVisible)?this.nextVisible(this.firstVisible):this.prevVisible(this.firstVisible)}else{this.firstVisible=-this.scrollManager.getSY()>Math.floor(this.maxh/2)?this.prevVisible(this.findLast(this.model.root)):this.nextVisible(this.model.root)}}}}this._isVal=true};this.recalc=function(){this.maxh=this.maxw=0;if(this.model!==null&&this.model.root!==null){this.$recalc(this.getLeft(),this.getTop(),null,this.model.root,true);this.maxw-=this.getLeft();this.maxh-=this.gapy}};this.getItemBounds=function(root){var metrics=this.getIM(root),toggle=this.getToggleBounds(root),image=this.getIconBounds(root);toggle.x=image.x+image.width+(image.width>0||toggle.width>0?this.gapx:0);toggle.y=metrics.y+Math.floor((metrics.height-metrics.viewHeight)/2);toggle.width=metrics.viewWidth;toggle.height=metrics.viewHeight;return toggle};this.getToggleBounds=function(root){var node=this.getIM(root),d=this.getToggleSize(root);return{x:node.x,y:node.y+Math.floor((node.height-d.height)/2),width:d.width,height:d.height}};this.getToggleView=function(i){var v=i.kids.length>0?this.getIM(i).isOpen?this.views.on:this.views.off:null;return typeof v==="undefined"?null:v};this.getItemPreferredSize=function(root){throw new Error("Not implemented")};this.$recalc=function(x,y,parent,root,isVis){var node=this.getIM(root);if(isVis===true){if(node.viewWidth<0){var viewSize=this.getItemPreferredSize(root);node.viewWidth=viewSize.width;node.viewHeight=viewSize.height}var imageSize=this.getIconSize(root),toggleSize=this.getToggleSize(root);if(parent!==null){var pImg=this.getIconBounds(parent);x=pImg.x+Math.floor((pImg.width-toggleSize.width)/2)}node.x=x;node.y=y;node.width=toggleSize.width+imageSize.width+node.viewWidth+(toggleSize.width>0?this.gapx:0)+10+(imageSize.width>0?this.gapx:0);node.height=Math.max(toggleSize.height>imageSize.height?toggleSize.height:imageSize.height,node.viewHeight);if(node.x+node.width>this.maxw){this.maxw=node.x+node.width}this.maxh+=node.height+this.gapy;x=node.x+toggleSize.width+(toggleSize.width>0?this.gapx:0);y+=node.height+this.gapy}var b=node.isOpen&&isVis===true;if(b){var count=root.kids.length;for(var i=0;i<count;i++){y=this.$recalc(x,y,root,root.kids[i],b)}}return y};this.$isOpen=function(i){return i===null||i.kids.length>0&&this.getIM(i).isOpen&&this.$isOpen(i.parent)};this.getIM=function(item){if(this.nodes.hasOwnProperty(item.$hash$)===false){var node=new pkg.$IM(this.isOpenVal);this.nodes[item.$hash$]=node;return node}return this.nodes[item.$hash$]};this.getItemAt=function(root,x,y){this.validate();if(arguments.length<3){x=arguments[0];y=arguments[1];root=this.model.root}if(this.firstVisible!==null&&y>=this.visibleArea.y&&y<this.visibleArea.y+this.visibleArea.height){var dx=this.scrollManager.getSX(),dy=this.scrollManager.getSY(),found=this.getItemAtInBranch(root,x-dx,y-dy);if(found!==null)return found;var parent=root.parent;while(parent!==null){var count=parent.kids.length;for(var i=parent.kids.indexOf(root)+1;i<count;i++){found=this.getItemAtInBranch(parent.kids[i],x-dx,y-dy);if(found!==null)return found}root=parent;parent=root.parent}}return null};this.getItemAtInBranch=function(root,x,y){if(root!==null){var node=this.getIM(root);if(x>=node.x&&y>=node.y&&x<node.x+node.width&&y<node.y+node.height+this.gapy){return root}if(this.$isOpen(root)){for(var i=0;i<root.kids.length;i++){var res=this.getItemAtInBranch(root.kids[i],x,y);if(res!==null)return res}}}return null};this.getIconView=function(i){return i.kids.length>0?this.getIM(i).isOpen?this.views.open:this.views.close:this.views.leaf};this.getIconSize=function(i){return i.kids.length>0?this.getIM(i).isOpen?this.viewSizes.open:this.viewSizes.close:this.viewSizes.leaf};this.getIconBounds=function(root){var node=this.getIM(root),id=this.getIconSize(root),td=this.getToggleSize(root);return{x:node.x+td.width+(td.width>0?this.gapx:0),y:node.y+Math.floor((node.height-id.height)/2),width:id.width,height:id.height}};this.getToggleSize=function(i){return this.$isOpen(i)?this.viewSizes.on:this.viewSizes.off};this.isOverVisibleArea=function(i){var node=this.getIM(i);return node.y+node.height+this.scrollManager.getSY()<this.visibleArea.y};this.findOpened=function(item){var parent=item.parent;return parent===null||this.$isOpen(parent)?item:this.findOpened(parent)};this.findNext=function(item){if(item!==null){if(item.kids.length>0&&this.$isOpen(item)){return item.kids[0]}var parent=null;while((parent=item.parent)!==null){var index=parent.kids.indexOf(item);if(index+1<parent.kids.length)return parent.kids[index+1];item=parent}}return null};this.findPrev=function(item){if(item!==null){var parent=item.parent;if(parent!==null){var index=parent.kids.indexOf(item);return index-1>=0?this.findLast(parent.kids[index-1]):parent}}return null};this.findLast=function(item){return this.$isOpen(item)&&item.kids.length>0?this.findLast(item.kids[item.kids.length-1]):item};this.prevVisible=function(item){if(item===null||this.isOverVisibleArea(item)){return this.nextVisible(item)}var parent=null;while((parent=item.parent)!==null){for(var i=parent.kids.indexOf(item)-1;i>=0;i--){var child=parent.kids[i];if(this.isOverVisibleArea(child))return this.nextVisible(child)}item=parent}return item};this.isVerVisible=function(item){if(this.visibleArea===null){return false}var node=this.getIM(item),yy1=node.y+this.scrollManager.getSY(),yy2=yy1+node.height-1,by=this.visibleArea.y+this.visibleArea.height;return this.visibleArea.y<=yy1&&yy1<by||this.visibleArea.y<=yy2&&yy2<by||this.visibleArea.y>yy1&&yy2>=by};this.nextVisible=function(item){if(item===null||this.isVerVisible(item)===true){return item}var res=this.nextVisibleInBranch(item),parent=null;if(res!==null){return res}while((parent=item.parent)!==null){var count=parent.kids.length;for(var i=parent.kids.indexOf(item)+1;i<count;i++){res=this.nextVisibleInBranch(parent.kids[i]);if(res!==null)return res}item=parent}return null};this.nextVisibleInBranch=function(item){if(this.isVerVisible(item))return item;if(this.$isOpen(item)){for(var i=0;i<item.kids.length;i++){var res=this.nextVisibleInBranch(item.kids[i]);if(res!==null)return res}}return null};this.paintSelectedItem=function(g,root,node,x,y){var v=this.hasFocus()?this.views.aselect:this.views.iselect;if(v!==null&&typeof v!=="undefined"){v.paint(g,x,y,node.viewWidth,node.viewHeight,this)}};this.paintTree=function(g,item){this.paintBranch(g,item);var parent=null;while((parent=item.parent)!==null){this.paintChild(g,parent,parent.kids.indexOf(item)+1);item=parent}};this.paintBranch=function(g,root){if(root===null)return false;var node=this.getIM(root),dx=this.scrollManager.getSX(),dy=this.scrollManager.getSY();if(zebkit.util.isIntersect(node.x+dx,node.y+dy,node.width,node.height,this.visibleArea.x,this.visibleArea.y,this.visibleArea.width,this.visibleArea.height)){var toggle=this.getToggleBounds(root),toggleView=this.getToggleView(root),image=this.getIconBounds(root),vx=image.x+image.width+this.gapx,vy=node.y+Math.floor((node.height-node.viewHeight)/2);if(toggleView!==null){toggleView.paint(g,toggle.x,toggle.y,toggle.width,toggle.height,this)}if(image.width>0){this.getIconView(root).paint(g,image.x,image.y,image.width,image.height,this)}if(this.selected===root){this.paintSelectedItem(g,root,node,vx,vy)}if(typeof this.paintItem!=="undefined"){this.paintItem(g,root,node,vx,vy)}if(this.lnColor!==null){g.setColor(this.lnColor);var yy=toggle.y+Math.floor(toggle.height/2)+.5;g.beginPath();g.moveTo(toggle.x+(toggleView===null?Math.floor(toggle.width/2):toggle.width-1),yy);g.lineTo(image.x,yy);g.stroke()}}else{if(node.y+dy>this.visibleArea.y+this.visibleArea.height||node.x+dx>this.visibleArea.x+this.visibleArea.width){return false}}return this.paintChild(g,root,0)};this.$y=function(item,isStart){var node=this.getIM(item),th=this.getToggleSize(item).height,ty=node.y+Math.floor((node.height-th)/2),dy=this.scrollManager.getSY(),y=item.kids.length>0?isStart?ty+th:ty-1:ty+Math.floor(th/2);return y+dy<0?-dy-1:y+dy>this.height?this.height-dy:y};this.paintChild=function(g,root,index){var b=this.$isOpen(root);if(root===this.firstVisible&&this.lnColor!==null){g.setColor(this.lnColor);var xx=this.getIM(root).x+Math.floor((b?this.viewSizes.on.width:this.viewSizes.off.width)/2);g.beginPath();g.moveTo(xx+.5,this.getTop());g.lineTo(xx+.5,this.$y(root,false));g.stroke()}if(b===true&&root.kids.length>0){var firstChild=root.kids.length>0?root.kids[0]:null;if(firstChild===null){return true}var x=this.getIM(firstChild).x+Math.floor((this.$isOpen(firstChild)?this.viewSizes.on.width:this.viewSizes.off.width)/2),count=root.kids.length;if(index<count){var node=this.getIM(root),y=index>0?this.$y(root.kids[index-1],true):node.y+Math.floor((node.height+this.getIconSize(root).height)/2);for(var i=index;i<count;i++){var child=root.kids[i];if(this.lnColor!==null){g.setColor(this.lnColor);g.beginPath();g.moveTo(x+.5,y);g.lineTo(x+.5,this.$y(child,false));g.stroke();y=this.$y(child,true)}if(this.paintBranch(g,child)===false){if(this.lnColor!==null&&i+1!==count){g.setColor(this.lnColor);g.beginPath();g.moveTo(x+.5,y);g.lineTo(x+.5,this.height-this.scrollManager.getSY());g.stroke()}return false}}}}return true};this.nextPage=function(item,dir){var sum=0,prev=item;while(item!==null&&sum<this.visibleArea.height){sum+=this.getIM(item).height+this.gapy;prev=item;item=dir<0?this.findPrev(item):this.findNext(item)}return prev};this.paint=function(g){if(this.model!==null){this.vVisibility();if(this.firstVisible!==null){var sx=this.scrollManager.getSX(),sy=this.scrollManager.getSY();try{g.translate(sx,sy);this.paintTree(g,this.firstVisible);g.translate(-sx,-sy)}catch(e){g.translate(-sx,-sy);throw e}}}};this.select=function(item){if(this.isSelectable===true){var old=this.selected,m=null;this.selected=item;if(this.selected!==null){this.makeVisible(this.selected)}this._.selected(this,old);if(old!==null&&this.isVerVisible(old)){m=this.getItemMetrics(old);this.repaint(m.x+this.scrollManager.getSX(),m.y+this.scrollManager.getSY(),m.width,m.height)}if(this.selected!==null&&this.isVerVisible(this.selected)){m=this.getItemMetrics(this.selected);this.repaint(m.x+this.scrollManager.getSX(),m.y+this.scrollManager.getSY(),m.width,m.height)}}};this.makeVisible=function(item){this.validate();var r=this.getItemBounds(item);this.scrollManager.makeVisible(r.x,r.y,r.width,r.height)};this.toggleAll=function(root,b){var model=this.model;if(root.kids.length>0){if(this.getItemMetrics(root).isOpen!==b)this.toggle(root);for(var i=0;i<root.kids.length;i++){this.toggleAll(root.kids[i],b)}}return this};this.toggle=function(item){if(item.kids.length>0){this.validate();var node=this.getIM(item);node.isOpen=node.isOpen?false:true;this.invalidate();this._.toggled(this,item);if(!node.isOpen&&this.selected!==null){var parent=this.selected;do{parent=parent.parent}while(parent!==item&&parent!==null);if(parent===item)this.select(item)}this.repaint()}return this};this.itemInserted=function(model,item){this.vrp()};this.itemRemoved=function(model,item){if(item===this.firstVisible){this.firstVisible=null}if(item===this.selected){this.select(null)}delete this.nodes[item];this.vrp()};this.itemModified=function(model,item,prevValue){var node=this.getIM(item);if(node!==null){node.viewWidth=-1}this.vrp()};this.calcPreferredSize=function(target){return this.model===null?{width:0,height:0}:{width:this.maxw,height:this.maxh}}},function focused(){this.$super();if(this.selected!==null){var m=this.getItemMetrics(this.selected);this.repaint(m.x+this.scrollManager.getSX(),m.y+this.scrollManager.getSY(),m.width,m.height)}},function setSelectable(b){if(this.isSelectable!==b){if(b===false&&this.selected!==null)this.select(null);this.isSelectable=b;this.repaint()}return this},function setLineColor(c){this.lnColor=c;this.repaint();return this},function setGaps(gx,gy){if(gx!==this.gapx||gy!==this.gapy){this.gapx=gx;this.gapy=gy;this.vrp()}return this},function setViews(v){this.viewSizes.on={width:0,height:0};this.viewSizes.off={width:0,height:0};this.viewSizes.open={width:0,height:0};this.viewSizes.close={width:0,height:0};this.viewSizes.leaf={width:0,height:0};for(var k in v){if(v.hasOwnProperty(k)){var vv=ui.$view(v[k]);this.views[k]=vv;if(k!=="aselect"&&k!=="iselect"){this.viewSizes[k]=vv?vv.getPreferredSize():{width:0,height:0};this.vrp()}}}return this},function setModel(d){if(this.model!==d){if(zebkit.instanceOf(d,zebkit.data.TreeModel)===false){d=new zebkit.data.TreeModel(d)}this.select(null);if(this.model!==null&&this.model._)this.model.off(this);this.model=d;if(this.model!==null&&this.model._)this.model.on(this);this.firstVisible=null;delete this.nodes;this.nodes={};this.vrp()}return this},function invalidate(){if(this.isValid===true){this._isVal=false}this.$super()}]);var ui=pkg.cd("..");pkg.Tree=Class(pkg.BaseTree,[function(d,b){if(arguments.length<2){b=true}this.setViewProvider(new pkg.DefViews);this.$super(d,b)},function $prototype(){this.itemGapY=2;this.itemGapX=4;this.editors=null;this.provider=this.editedItem=this.pressedItem=null;this.setFont=function(f){this.provider.setFont(f);this.vrp();return this};this.childKeyPressed=function(e){if(e.code==="Escape"){this.stopEditing(false)}else{if(e.code==="Enter"&&(zebkit.instanceOf(e.source,ui.TextField)===false||zebkit.instanceOf(e.source.view.target,zebkit.data.SingleLineTxt))){this.stopEditing(true)}}};this.catchScrolled=function(psx,psy){if(this.kids.length>0)this.stopEditing(false);if(this.firstVisible===null){this.firstVisible=this.model.root}this.firstVisible=this.y<psy?this.nextVisible(this.firstVisible):this.prevVisible(this.firstVisible);this.repaint()};this.laidout=function(){this.vVisibility()};this.getItemPreferredSize=function(root){var ps=this.provider.getView(this,root).getPreferredSize();ps.width+=this.itemGapX*2;ps.height+=this.itemGapY*2;return ps};this.paintItem=function(g,root,node,x,y){if(root!==this.editedItem){var v=this.provider.getView(this,root);v.paint(g,x+this.itemGapX,y+this.itemGapY,node.viewWidth,node.viewHeight,this)}};this.se=function(item,e){if(item!==null){this.stopEditing(true);if(this.editors!==null&&this.editors.shouldStartEdit(item,e)){this.startEditing(item);return true}}return false};this.pointerClicked=function(e){if(this.se(this.pressedItem,e)){this.pressedItem=null}};this.pointerDoubleClicked=function(e){if(this.se(this.pressedItem,e)){this.pressedItem=null}else{if(this.selected!==null&&this.getItemAt(this.firstVisible,e.x,e.y)===this.selected){this.toggle(this.selected)}}};this.pointerReleased=function(e){if(this.se(this.pressedItem,e))this.pressedItem=null};this.keyTyped=function(e){if(this.selected!==null){switch(e.key){case"+":if(this.isOpen(this.selected)===false){this.toggle(this.selected)}break;case"-":if(this.isOpen(this.selected)){this.toggle(this.selected)}break}}};this.keyPressed=function(e){var newSelection=null;switch(e.code){case"ArrowDown":case"ArrowRight":newSelection=this.findNext(this.selected);break;case"ArrowUp":case"ArrowLeft":newSelection=this.findPrev(this.selected);break;case"Home":if(e.ctrlKey)this.select(this.model.root);break;case"End":if(e.ctrlKey)this.select(this.findLast(this.model.root));break;case"PageDown":if(this.selected!==null)this.select(this.nextPage(this.selected,1));break;case"PageUp":if(this.selected!==null)this.select(this.nextPage(this.selected,-1));break}if(newSelection!==null)this.select(newSelection);this.se(this.selected,e)};this.startEditing=function(item){this.stopEditing(true);if(this.editors!==null){var editor=this.editors.getEditor(this,item);if(editor!==null){this.editedItem=item;var b=this.getItemBounds(this.editedItem),ps=editor.getPreferredSize();editor.setBounds(b.x+this.scrollManager.getSX()+this.itemGapX,b.y-Math.floor((ps.height-b.height+2*this.itemGapY)/2)+this.scrollManager.getSY()+this.itemGapY,ps.width,ps.height);this.add(editor);editor.requestFocus();this._.editingStarted(this,item,editor)}}};this.stopEditing=function(applyData){if(this.editors!==null&&this.editedItem!==null){var item=this.editedItem,oldValue=item.value,editor=this.kids[0];try{if(applyData){this.model.setValue(this.editedItem,this.editors.fetchEditedValue(this.editedItem,this.kids[0]))}}finally{this.editedItem=null;this.removeAt(0);this.requestFocus();this._.editingStopped(this,item,oldValue,editor,applyData)}}}},function toggle(item){this.stopEditing(false);this.$super(item);return this},function itemInserted(target,item){this.stopEditing(false);this.$super(target,item)},function itemRemoved(target,item){this.stopEditing(false);this.$super(target,item)},function setEditorProvider(p){if(p!=this.editors){this.stopEditing(false);this.editors=p}return this},function setViewProvider(p){if(this.provider!=p){this.stopEditing(false);this.provider=p;delete this.nodes;this.nodes={};this.vrp()}return this},function setModel(d){this.stopEditing(false);this.$super(d);return this},function paintSelectedItem(g,root,node,x,y){if(root!==this.editedItem){this.$super(g,root,node,x,y)}},function itemPressed(root,e){this.$super(root,e);if(this.se(root,e)===false)this.pressedItem=root},function pointerPressed(e){this.pressedItem=null;this.stopEditing(true);this.$super(e)}]);var ui=pkg.cd("..");pkg.CompTree=Class(pkg.BaseTree,[function $clazz(){this.Label=Class(ui.Label,[function $prototype(){this.canHaveFocus=true}]);this.Checkbox=Class(ui.Checkbox,[]);this.Combo=Class(ui.Combo,[function keyPressed(e){if(e.code!=="ArrowUp"&&e.code!=="ArrowDown"){this.$super(e)}}]);this.createModel=function(item,root,tree){var mi=new zebkit.data.Item;if(typeof item.value!=="undefined"){mi.value=item.value!==null?item.value:""}else{mi.value=item}mi.value=ui.$component(mi.value,tree);mi.parent=root;if(typeof item.kids!=="undefined"&&item.kids.length>0&&zebkit.instanceOf(item,ui.Panel)===false){for(var i=0;i<item.kids.length;i++){mi.kids[i]=this.createModel(item.kids[i],mi,tree)}}return mi}},function $prototype(){this.$blockCIE=false;this.canHaveFocus=false;this.getItemPreferredSize=function(root){return root.value.getPreferredSize()};this.childKeyTyped=function(e){if(this.selected!==null){switch(e.key){case"+":if(this.isOpen(this.selected)===false){this.toggle(this.selected)}break;case"-":if(this.isOpen(this.selected)){this.toggle(this.selected)}break}}};this.setFont=function(f){this.font=zebkit.isString(f)?new zebkit.ui.Font(f):f;return this};this.childKeyPressed=function(e){if(this.isSelectable===true){var newSelection=e.code==="ArrowDown"?this.findNext(this.selected):e.code==="ArrowUp"?this.findPrev(this.selected):null;if(newSelection!==null){this.select(newSelection)}}};this.childPointerPressed=this.childFocusGained=function(e){if(this.isSelectable===true&&this.$blockCIE!==true){this.$blockCIE=true;try{var item=zebkit.data.TreeModel.findOne(this.model.root,zebkit.layout.getDirectChild(this,e.source));if(item!==null)this.select(item)}finally{this.$blockCIE=false}}};this.childFocusLost=function(e){if(this.isSelectable===true){this.select(null)}};this.catchScrolled=function(psx,psy){this.vrp()};this.doLayout=function(){this.vVisibility();for(var i=0;i<this.kids.length;i++){this.kids[i].setVisible(false)}if(this.firstVisible!==null){var $this=this,fvNode=this.getIM(this.firstVisible),started=0;this.model.iterate(this.model.root,function(item){var node=$this.nodes[item];if(started===0&&item===$this.firstVisible){started=1}if(started===1){var sy=$this.scrollManager.getSY();if(node.y+sy<$this.height){var image=$this.getIconBounds(item),x=image.x+image.width+(image.width>0||$this.getToggleSize(item).width>0?$this.gapx:0)+$this.scrollManager.getSX(),y=node.y+Math.floor((node.height-node.viewHeight)/2)+sy;item.value.setVisible(true);item.value.setLocation(x,y);item.value.width=node.viewWidth;item.value.height=node.viewHeight}else{started=2}}return started===2?2:node.isOpen===false?1:0})}};this.itemInserted=function(target,item){this.add(item.value)}},function itemRemoved(target,item){this.$super(target,item);this.remove(item.value)},function setModel(model){var old=this.model;if(model!==null&&zebkit.instanceOf(model,zebkit.data.TreeModel)===false){model=new zebkit.data.TreeModel(this.clazz.createModel(model,null,this))}this.$super(model);if(old!==this.model){this.removeAll();if(this.model!==null){var $this=this;this.model.iterate(this.model.root,function(item){$this.add(item.value)})}}return this},function recalc(){this.$isMetricUpdated=false;this.$super();if(this.$isMetricUpdated===true){this.repaint()}},function recalc_(x,y,parent,root,isVis){var node=this.getIM(root);if(isVis===true){var viewSize=this.getItemPreferredSize(root);if(this.$isMetricUpdated===false&&(node.viewWidth!==viewSize.width||node.viewHeight!==viewSize.height)){this.$isMetricUpdated=true}node.viewWidth=viewSize.width;node.viewHeight=viewSize.height}return this.$super(x,y,parent,root,isVis)},function select(item){if(this.isSelectable===true){var old=this.selected;if(old!==null&&old.value.hasFocus()){ui.focusManager.requestFocus(null)}this.$super(item);if(item!==null){item.value.requestFocus()}}},function makeVisible(item){item.value.setVisible(true);this.$super(item)}]);zebkit.ui.$configWith(pkg)});zebkit.package("ui.grid",function(pkg,Class){"use strict";var ui=pkg.cd("..");pkg.CellsVisibility=function(){this.hasVisibleCells=function(){return this.fr!==null&&this.fc!==null&&this.lr!==null&&this.lc!==null};this.fr=this.fc=this.lr=this.lc=null};pkg.Metrics=zebkit.Interface(["abstract",function getCellsVisibility(){},function getColWidth(col){},function getRowHeight(row){},function setRowHeight(row,height){},function setColWidth(col,width){}]);pkg.DefViews=Class([function(render){this.render=arguments.length===0||typeof render==="undefined"?new ui.StringRender(""):render;zebkit.properties(this,this.clazz)},function $prototype(){this.setFont=function(f){this.render.setFont(f);return this};this.setColor=function(c){this.render.setColor(c);return this};this.getView=function(target,row,col,obj){if(obj!==null&&typeof obj!=="undefined"){if(typeof obj.toView!=="undefined")return obj.toView();if(typeof obj.paint!=="undefined")return obj;this.render.setValue(obj.toString());return this.render}else{return null}}}]);pkg.DefEditors=Class([function(){this.textEditor=new this.clazz.TextField("",150);this.boolEditor=new this.clazz.Checkbox(null);this.selectorEditor=new this.clazz.Combo;this.editors={}},function $clazz(){this.TextField=Class(ui.TextField,[]);this.Checkbox=Class(ui.Checkbox,[]);this.Combo=Class(ui.Combo,[function padShown(src,b){if(b===false){this.parent.stopEditing(true);this.setSize(0,0)}},function resized(pw,ph){this.$super(pw,ph);if(this.width>0&&this.height>0&&this.hasFocus()){this.showPad()}}]);this.Items=Class([function $prototype(){this.toString=function(){return this.selectedIndex<0?"":this.items[this.selectedIndex]}},function(items,selectedIndex){if(arguments.length<2){selectedIndex=-1}this.items=items;this.selectedIndex=selectedIndex}])},function $prototype(){this.fetchEditedValue=function(grid,row,col,data,editor){if(editor===this.selectorEditor){data.selectedIndex=editor.list.selectedIndex;return data}return editor.getValue()};this.getEditor=function(grid,row,col,v){var editor=null;if(this.editors.hasOwnProperty(col)){editor=this.editors[col];if(editor!==null){editor.setValue(v)}return editor}editor=zebkit.isBoolean(v)?this.boolEditor:zebkit.instanceOf(v,this.clazz.Items)?this.selectorEditor:this.textEditor;if(editor===this.selectorEditor){editor.list.setModel(v.items);editor.list.select(v.selectedIndex)}else{editor.setValue(v)}editor.setPadding(0);var ah=Math.floor((grid.getRowHeight(row)-editor.getPreferredSize().height)/2);editor.setPadding(ah,grid.cellInsetsLeft,ah,grid.cellInsetsRight);return editor};this.shouldStart=function(grid,row,col,e){return e.id==="pointerClicked"};this.shouldCancel=function(grid,row,col,e){return e.id==="keyPressed"&&"Escape"===e.code};this.shouldFinish=function(grid,row,col,e){return e.id==="keyPressed"&&"Enter"===e.code}}]);pkg.BaseCaption=Class(ui.Panel,[function(titles){this._=new this.clazz.Listeners;this.$super();if(arguments.length>0){for(var i=0;i<titles.length;i++){this.putTitle(i,titles[i])}}},function $clazz(){this.Listeners=new zebkit.util.ListenersClass("captionResized")},function $prototype(){this.selectedColRow=-1;this.orient=this.metrics=this.pxy=null;this.minSize=10;this.activeAreaSize=5;this.lineColor="gray";this.isAutoFit=this.isResizable=true;this.getCursorType=function(target,x,y){return this.metrics!==null&&this.selectedColRow>=0&&this.isResizable&&this.metrics.isUsePsMetric===false?this.orient==="horizontal"?ui.Cursor.W_RESIZE:ui.Cursor.S_RESIZE:null};this.pointerDragged=function(e){if(this.pxy!==null){var b=this.orient==="horizontal",rc=this.selectedColRow,ns=(b?this.metrics.getColWidth(rc)+e.x:this.metrics.getRowHeight(rc)+e.y)-this.pxy;this.captionResized(rc,ns);if(ns>this.minSize){this.pxy=b?e.x:e.y}}};this.pointerDragStarted=function(e){if(this.metrics!==null&&this.isResizable&&this.metrics.isUsePsMetric===false){this.calcRowColAt(e.x,e.y);if(this.selectedColRow>=0){this.pxy=this.orient==="horizontal"?e.x:e.y}}};this.pointerDragEnded=function(e){if(this.pxy!==null){this.pxy=null}if(this.metrics!==null){this.calcRowColAt(e.x,e.y)}};this.pointerMoved=function(e){if(this.metrics!==null){this.calcRowColAt(e.x,e.y)}};this.pointerDoubleClicked=function(e){if(this.pxy===null&&this.metrics!==null&&this.selectedColRow>=0&&this.isAutoFit===true){var size=this.getCaptionPS(this.selectedColRow);if(this.orient==="horizontal"){this.metrics.setColWidth(this.selectedColRow,size)}else{this.metrics.setRowHeight(this.selectedColRow,size)}this.captionResized(this.selectedColRow,size)}};this.getCaptionPS=function(rowcol){return 0};this.captionResized=function(rowcol,ns){if(ns>this.minSize){if(this.orient==="horizontal"){var pw=this.metrics.getColWidth(rowcol);this.metrics.setColWidth(rowcol,ns);this._.captionResized(this,rowcol,pw)}else{var ph=this.metrics.getRowHeight(rowcol);this.metrics.setRowHeight(rowcol,ns);this._.captionResized(this,rowcol,ph)}}};this.calcRowColAt=function(x,y){var $this=this;this.selectedColRow=this.getCaptionAt(x,y,function(m,xy,xxyy,wh,i){xxyy+=wh+m.lineSize;return xy<xxyy+$this.activeAreaSize&&xy>xxyy-$this.activeAreaSize})};this.getCaptionAt=function(x,y,f){if(this.metrics!==null&&x>=0&&y>=0&&x<this.width&&y<this.height){var m=this.metrics,cv=m.getCellsVisibility(),isHor=this.orient==="horizontal";if(isHor&&cv.fc!==null||isHor===false&&cv.fr!==null){var gap=m.lineSize,xy=isHor?x:y,xxyy=isHor?cv.fc[1]-this.x-gap+m.getXOrigin():cv.fr[1]-this.y-gap+m.getYOrigin();for(var i=isHor?cv.fc[0]:cv.fr[0];i<=(isHor?cv.lc[0]:cv.lr[0]);i++){var wh=isHor?m.getColWidth(i):m.getRowHeight(i);if(arguments.length>2&&f(m,xy,xxyy,wh,i)||arguments.length<3&&xy>xxyy&&xy<xxyy+wh){return i}xxyy+=wh+gap}}}return-1};this.paintOnTop=function(g){if(this.lineColor!==null&&this.metrics!==null){var v=this.metrics.getCellsVisibility();if(v!==null){var m=this.metrics,b=this.orient==="horizontal",startRC=b?v.fc[0]:v.fr[0],endRC=b?v.lc[0]:v.lr[0],xy=b?v.fc[1]-this.x-m.lineSize+m.getXOrigin():v.fr[1]-this.y-m.lineSize+m.getYOrigin();g.setColor(this.lineColor);for(var i=startRC;i<=endRC;i++){if(i!==0){if(b)g.drawLine(xy,0,xy,this.height,m.lineSize);else g.drawLine(0,xy,this.width,xy,m.lineSize)}xy+=(b?m.getColWidth(i):m.getRowHeight(i))+m.lineSize}}}}},function setParent(p){this.$super(p);this.metrics=this.orient=null;if(p===null||zebkit.instanceOf(p,pkg.Metrics)){this.metrics=p;if(this.constraints!==null){this.orient=this.constraints==="top"||this.constraints==="bottom"?"horizontal":"vertical"}}}]);var ui=pkg.cd("..");pkg.CaptionViewProvider=Class([function(render){if(arguments.length===0||typeof render==="undefined"){render=new ui.StringRender("")}this.render=render;this.render.setFont(pkg.GridCaption.font);this.render.setColor(pkg.GridCaption.fontColor)},function $prototype(){this.render=null;this.meta=null;this.setFont=function(f){this.render.setFont(f);return this};this.setColor=function(c){this.render.setColor(c);return this};this.getView=function(target,rowcol,value){if(value!==null){if(typeof value.toView!=="undefined")return value.toView();if(typeof value.paint!=="undefined")return value;this.render.setValue(value.toString());return this.render}else{return null}};this.$getCellMeta=function(rowcol){if(this.meta===null){this.meta={}}if(this.meta.hasOwnProperty(rowcol)){return this.meta[rowcol]}else{this.meta[rowcol]={ax:null,ay:null,bg:null};return this.meta[rowcol]}};this.getXAlignment=function(target,rowcol){return this.meta===null||this.meta.hasOwnProperty(rowcol)===false?null:this.meta[rowcol].ax};this.getYAlignment=function(target,rowcol){return this.meta===null||this.meta.hasOwnProperty(rowcol)===false?null:this.meta[rowcol].ay};this.getCellBackground=function(target,rowcol){return this.meta===null||this.meta.hasOwnProperty(rowcol)===false?null:this.meta[rowcol].bg};this.setTitleAlignments=function(rowcol,ax,ay){var m=this.$getCellMeta(rowcol);if(m.ax!==ax||m.ay!==ay){m.ax=ax;m.ay=ay;return true}else{return false}};this.setCellBackground=function(rowcol,bg){var m=this.$getCellMeta(rowcol);if(m.bg!==bg){m.bg=ui.$view(bg);return true}else{return false}}}]);pkg.GridCaption=Class(pkg.BaseCaption,[function(titles,render){this.titles={};this.psW=this.psH=0;this.setViewProvider(new pkg.CaptionViewProvider(render));if(arguments.length===0){this.$super()}else{this.$super(titles)}},function $prototype(){this.provider=null;this.defYAlignment=this.defXAlignment="center";this.defCellBg=null;this.setViewProvider=function(p){if(p!==this.provider){this.provider=p;this.vrp()}return this};this.getTitle=function(rowcol){return this.titles.hasOwnProperty(rowcol)?this.titles[rowcol]:null};this.calcPreferredSize=function(l){return{width:this.psW,height:this.psH}};this.setFont=function(f){this.provider.setFont(f);this.vrp();return this};this.setColor=function(c){this.provider.setColor(c);this.repaint();return this};this.recalc=function(){this.psW=this.psH=0;if(this.metrics!==null){var m=this.metrics,isHor=this.orient==="horizontal",size=isHor?m.getGridCols():m.getGridRows();for(var i=0;i<size;i++){var v=this.provider.getView(this,i,this.getTitle(i));if(v!==null){var ps=v.getPreferredSize();if(isHor===true){if(ps.height>this.psH)this.psH=ps.height;this.psW+=ps.width}else{if(ps.width>this.psW)this.psW=ps.width;this.psH+=ps.height}}}if(this.psH===0)this.psH=pkg.Grid.DEF_ROWHEIGHT;if(this.psW===0)this.psW=pkg.Grid.DEF_COLWIDTH}};this.putTitle=function(rowcol,value){if(value===null){if(title!==null){delete this.titles[rowcol]}}else{this.titles[rowcol]=value}this.vrp();return this};this.setTitleAlignments=function(rowcol,xa,ya){if(this.provider.setTitleAlignments(rowcol,xa,ya)){this.repaint()}return this};this.setCellBackground=function(rowcol,bg){if(this.provider.setCellBackground(rowcol,bg)){this.repaint()}return this};this.getCaptionPS=function(rowcol){var v=this.provider.getView(this,rowcol,this.getTitle(rowcol));return v!==null?this.orient==="horizontal"?v.getPreferredSize().width:v.getPreferredSize().height:0}},function paintOnTop(g){if(this.metrics!==null){var cv=this.metrics.getCellsVisibility();if(cv.fc!==null&&cv.lc!==null&&this.orient==="horizontal"||cv.fr!==null&&cv.lr!==null&&this.orient==="vertical"){var isHor=this.orient==="horizontal",gap=this.metrics.lineSize,top=this.getTop(),left=this.getLeft(),bottom=this.getBottom(),right=this.getRight(),x=isHor?cv.fc[1]-this.x+this.metrics.getXOrigin()-gap:left,y=isHor?top:cv.fr[1]-this.y+this.metrics.getYOrigin()-gap,size=isHor?this.metrics.getGridCols():this.metrics.getGridRows();for(var i=isHor?cv.fc[0]:cv.fr[0];i<=(isHor?cv.lc[0]:cv.lr[0]);i++){var ww=isHor?this.metrics.getColWidth(i):this.width-left-right,hh=isHor?this.height-top-bottom:this.metrics.getRowHeight(i),v=this.provider.getView(this,i,this.getTitle(i));if(v!==null){var xa=this.provider.getXAlignment(this,i,v),ya=this.provider.getYAlignment(this,i,v),bg=this.provider.getCellBackground(this,i,v);if(xa===null){xa=this.defXAlignment}if(ya===null){ya=this.defYAlignment}if(bg===null){bg=this.defCellBg}var ps=v.getPreferredSize(),vx=xa==="center"?Math.floor((ww-ps.width)/2):xa==="right"?ww-ps.width-(i===size-1?right:0):i===0?left:0,vy=ya==="center"?Math.floor((hh-ps.height)/2):ya==="bottom"?hh-ps.height-(i===size-1?bottom:0):i===0?top:0;if(bg!==null){if(isHor)bg.paint(g,x,0,ww+gap,this.height,this);else bg.paint(g,0,y,this.width,hh+gap,this)}g.save();g.clipRect(x+gap,y+gap,ww,hh);v.paint(g,x+vx+gap,y+vy+gap,ps.width,ps.height,this);g.restore()}if(isHor)x+=ww+gap;else y+=hh+gap}}this.$super(g)}}]);var ui=pkg.cd("..");pkg.CompGridCaption=Class(pkg.BaseCaption,[function(titles){if(arguments.length===0){this.$super()}else{this.$super(titles)}this.setLayout(new this.clazz.Layout)},function $clazz(){this.Layout=Class(zebkit.layout.Layout,[function $prototype(){this.doLayout=function(target){var m=target.metrics,b=target.orient==="horizontal",top=target.getTop(),left=target.getLeft(),wh=b?target.height-top-target.getBottom():target.width-left-target.getRight(),xy=b?left+m.getXOrigin():top+m.getYOrigin();for(var i=0;i<target.kids.length;i++){var kid=target.kids[i],cwh=b?m.getColWidth(i):m.getRowHeight(i);if(i===0){cwh-=b?left-m.lineSize:top}if(kid.isVisible===true){if(b){kid.setBounds(xy,top,cwh,wh)}else{kid.setBounds(left,xy,wh,cwh)}}xy+=cwh+m.lineSize}};this.calcPreferredSize=function(target){return zebkit.layout.getMaxPreferredSize(target)}}]);this.Link=Class(ui.Link,[]);this.StatusPan=Class(ui.StatePan,[]);var clazz=this;this.TitlePan=Class(ui.Panel,[function(title){this.$super();this.iconPan=new ui.ImagePan(null);this.link=new clazz.Link(title);this.statusPan=new clazz.StatusPan;this.statusPan.setVisible(this.isSortable);this.add(this.iconPan);this.add(this.link);this.add(this.statusPan)},function $clazz(){this.layout=new zebkit.layout.FlowLayout("center","center","horizontal",8)},function $prototype(){this.sortState=0;this.isSortable=false},function getGridCaption(){var c=this.parent;while(c!==null&&zebkit.instanceOf(c,pkg.BaseCaption)===false){c=c.parent}return c},function matrixSorted(target,info){if(this.isSortable){var col=this.parent.indexOf(this);if(info.col===col){this.sortState=info.name==="descent"?1:-1;this.statusPan.setState(info.name)}else{this.sortState=0;this.statusPan.setState("*")}}},function setIcon(path){this.iconPan.setImage(path);return this},function matrixResized(target,prevRows,prevCols){if(this.isSortable){this.sortState=0;this.statusPan.setState("*")}},function fired(target){if(this.isSortable===true){var f=this.sortState===1?zebkit.data.ascent:zebkit.data.descent,model=this.getGridCaption().metrics.model,col=this.parent.indexOf(this);model.sortCol(col,f)}},function kidRemoved(index,kid){if(zebkit.instanceOf(kid,zebkit.util.Fireable)){kid.off(this)}this.$super(index,kid)},function kidAdded(index,constr,kid){if(zebkit.instanceOf(kid,zebkit.util.Fireable)){kid.on(this)}this.$super(index,constr,kid)}])},function $prototype(){this.catchInput=function(t){return zebkit.instanceOf(t,zebkit.util.Fireable)===false};this.scrolled=function(){this.vrp()};this.putTitle=function(rowcol,t){for(var i=this.kids.length-1;i>=0&&i<rowcol;i++){this.add(new this.clazz.TitlePan(""))}if(zebkit.isString(t)){t=new this.clazz.TitlePan(t)}else{if(zebkit.instanceOf(t,ui.View)){var p=new ui.ViewPan;p.setView(t);t=p}}if(rowcol<this.kids.length){this.setAt(rowcol,t)}else{this.add(t)}return this};this.setSortable=function(col,b){var c=this.kids[col];if(c.isSortable!==b){c.isSortable=b;c.statusPan.setVisible(b)}return this};this.matrixSorted=function(target,info){for(var i=0;i<this.kids.length;i++){if(this.kids[i].matrixSorted){this.kids[i].matrixSorted(target,info)}}};this.matrixResized=function(target,prevRows,prevCols){for(var i=0;i<this.kids.length;i++){if(this.kids[i].matrixResized){this.kids[i].matrixResized(target,prevRows,prevCols)}}};this.getCaptionPS=function(rowcol){return rowcol<this.kids.length?this.orient==="horizontal"?this.kids[rowcol].getPreferredSize().width:this.kids[rowcol].getPreferredSize().height:0}},function captionResized(rowcol,ns){this.$super(rowcol,ns);this.vrp()},function setParent(p){if(this.parent!==null&&typeof this.parent.scrollManager!=="undefined"&&this.parent.scrollManager!==null){this.parent.scrollManager.off(this)}if(p!==null&&typeof p.scrollManager!=="undefined"&&p.scrollManager!==null){p.scrollManager.on(this)}this.$super(p)},function insert(i,constr,c){if(zebkit.isString(c)){c=new this.clazz.TitlePan(c)}this.$super(i,constr,c)}]);pkg.LeftCompGridCaption=Class(pkg.CompGridCaption,[function $prototype(){this.constraints="left"}]);pkg.LeftGridCaption=Class(pkg.GridCaption,[function $prototype(){this.constraints="left"}]);var ui=pkg.cd("..");pkg.RowSelMode=Class([function $prototype(){this.selectedIndex=0;this.$blocked=false;this.isSelected=function(row,col){return row>=0&&this.selectedIndex===row};this.select=function(row,col,b){if(arguments.length===1||arguments.length===2&&zebkit.isNumber(col)){b=true}if(this.isSelected(row,col)!==b){if(this.selectedIndex>=0)this.clearSelect();if(b===true){this.selectedIndex=row;this.target._.rowSelected()}}};this.clearSelect=function(){if(this.selectedIndex>=0){this.selectedIndex=-1;this.target._.rowSelected()}};this.posChanged=function(src){if($blocked===false){$blocked=true;try{}finally{$blocked=false}}}}]);pkg.Grid=Class(ui.Panel,zebkit.util.Position.Metric,pkg.Metrics,ui.$ViewsSetterMix,[function(model){this.defCellColor=pkg.DefViews.cellBackground;if(arguments.length===0){model=new this.clazz.Matrix(5,5)}else if(arguments.length===2){model=new this.clazz.Matrix(arguments[0],arguments[1])}this._=new this.clazz.Listeners;this.views={};this.visibility=new pkg.CellsVisibility;this.$super();this.add("corner",new this.clazz.CornerPan);this.setModel(model);this.setViewProvider(new pkg.DefViews);this.setPosition(new zebkit.util.Position(this));this.scrollManager=new ui.ScrollManager(this)},function $clazz(){this.Listeners=zebkit.util.ListenersClass("rowSelected");this.Matrix=Class(zebkit.data.Matrix,[]);this.DEF_COLWIDTH=80;this.DEF_ROWHEIGHT=25;this.CornerPan=Class(ui.Panel,[])},function $prototype(){this.psWidth_=this.psHeight_=this.colOffset=0;this.rowOffset=this.pressedCol=this.selectedIndex=0;this.scrollManager=this.model=this.visibleArea=null;this.editor=this.editors=this.leftCaption=this.topCaption=this.colWidths=null;this.rowHeights=this.position=this.stub=null;this.editingRow=this.editingCol=this.pressedRow=-1;this.navigationMode="row";this.lineSize=this.cellInsetsTop=this.cellInsetsBottom=1;this.cellInsetsLeft=this.cellInsetsRight=2;this.defXAlignment="left";this.defYAlignment="center";this.drawVerLines=this.drawHorLines=true;this.drawSideLines=true;this.lineColor="gray";this.isUsePsMetric=false;this.paintPosMarkerOver=true;this.$topY=function(){return this.getTop()+(this.topCaption===null||this.topCaption.isVisible===false?this.lineSize:this.getTopCaptionHeight())};this.$leftX=function(){return this.getLeft()+(this.leftCaption===null||this.leftCaption.isVisible===false?this.lineSize:this.getLeftCaptionWidth())};this.setDefCellXAlignment=function(ax){this.setDefCellAlignments(ax,this.defYAlignment)};this.setDefCellYAlignment=function(ay){this.setDefCellAlignments(this.defXAlignment,ay)};this.setDefCellAlignments=function(ax,ay){if(this.defXAlignment!==ax||this.defYAlignment!==ay){this.defXAlignment=ax;this.defYAlignment=ay;this.repaint()}};this.colVisibility=function(col,x,d,b){var cols=this.getGridCols();if(cols===0)return null;var left=this.getLeft(),dx=this.scrollManager.getSX(),xx1=Math.min(this.visibleArea.x+this.visibleArea.width,this.width-this.getRight()),xx2=Math.max(left,this.visibleArea.x+this.getLeftCaptionWidth());for(;col<cols&&col>=0;col+=d){if(x+dx<xx1&&x+this.colWidths[col]+dx>xx2){if(b)return[col,x]}else{if(b===false)return this.colVisibility(col,x,d>0?-1:1,true)}if(d<0){if(col>0)x-=this.colWidths[col-1]+this.lineSize}else{if(col<cols-1)x+=this.colWidths[col]+this.lineSize}}return b?null:d>0?[col-1,x]:[0,this.$leftX()]};this.rowVisibility=function(row,y,d,b){var rows=this.getGridRows();if(rows===0)return null;var top=this.getTop(),dy=this.scrollManager.getSY(),yy1=Math.min(this.visibleArea.y+this.visibleArea.height,this.height-this.getBottom()),yy2=Math.max(this.visibleArea.y,top+this.getTopCaptionHeight());for(;row<rows&&row>=0;row+=d){if(y+dy<yy1&&y+this.rowHeights[row]+dy>yy2){if(b)return[row,y]}else{if(b===false)return this.rowVisibility(row,y,d>0?-1:1,true)}if(d<0){if(row>0)y-=this.rowHeights[row-1]+this.lineSize}else{if(row<rows-1)y+=this.rowHeights[row]+this.lineSize}}return b?null:d>0?[row-1,y]:[0,this.$topY()]};this.vVisibility=function(){var va=ui.$cvp(this,{});if(va===null){this.visibleArea=null;this.visibility.fr=null;return}if(this.visibleArea===null||va.x!==this.visibleArea.x||va.y!==this.visibleArea.y||va.width!==this.visibleArea.width||va.height!==this.visibleArea.height){this.iColVisibility(0);this.iRowVisibility(0);this.visibleArea=va}var v=this.visibility,b=v.hasVisibleCells();if(this.colOffset!==100){if(this.colOffset>0&&b){v.lc=this.colVisibility(v.lc[0],v.lc[1],-1,true);v.fc=this.colVisibility(v.lc[0],v.lc[1],-1,false)}else{if(this.colOffset<0&&b){v.fc=this.colVisibility(v.fc[0],v.fc[1],1,true);v.lc=this.colVisibility(v.fc[0],v.fc[1],1,false)}else{v.fc=this.colVisibility(0,this.$leftX(),1,true);v.lc=v.fc!==null?this.colVisibility(v.fc[0],v.fc[1],1,false):null}}this.colOffset=100}if(this.rowOffset!==100){if(this.rowOffset>0&&b){v.lr=this.rowVisibility(v.lr[0],v.lr[1],-1,true);v.fr=this.rowVisibility(v.lr[0],v.lr[1],-1,false)}else{if(this.rowOffset<0&&b){v.fr=this.rowVisibility(v.fr[0],v.fr[1],1,true);v.lr=v.fr!==null?this.rowVisibility(v.fr[0],v.fr[1],1,false):null}else{v.fr=this.rowVisibility(0,this.$topY(),1,true);v.lr=v.fr!==null?this.rowVisibility(v.fr[0],v.fr[1],1,false):null}}this.rowOffset=100}};this.makeVisible=function(row,col){var top=this.getTop()+this.getTopCaptionHeight(),left=this.getLeft()+this.getLeftCaptionWidth(),o=ui.calcOrigin(this.getColX(col),this.getRowY(row),this.getLineSize(row)>1?this.colWidths[col]+this.lineSize:this.psWidth_,this.rowHeights[row]+this.lineSize,this.scrollManager.getSX(),this.scrollManager.getSY(),this,top,left,this.getBottom(),this.getRight());this.scrollManager.scrollTo(o[0],o[1])};this.$se=function(row,col,e){if(row>=0){this.stopEditing(true);if(this.editors!==null&&this.editors.shouldStart(this,row,col,e)){return this.startEditing(row,col)}}return false};this.getXOrigin=function(){return this.scrollManager.getSX()};this.getYOrigin=function(){return this.scrollManager.getSY()};this.getColPSWidth=function(col){return this.getPSSize(col,false)};this.getRowPSHeight=function(row){return this.getPSSize(row,true)};this.recalc=function(){if(this.isUsePsMetric){this.rPsMetric()}else{this.rCustomMetric()}var cols=this.getGridCols(),rows=this.getGridRows();this.psWidth_=this.lineSize*(cols+(this.leftCaption===null||this.leftCaption.isVisible===false?1:0));this.psHeight_=this.lineSize*(rows+(this.topCaption===null||this.topCaption.isVisible===false?1:0));var i=0;for(;i<cols;i++)this.psWidth_+=this.colWidths[i];for(i=0;i<rows;i++)this.psHeight_+=this.rowHeights[i]};this.getGridRows=function(){return this.model!==null?this.model.rows:0};this.getGridCols=function(){return this.model!==null?this.model.cols:0};this.getRowHeight=function(row){this.validateMetric();return this.rowHeights[row]};this.getColWidth=function(col){this.validateMetric();return this.colWidths[col]};this.getCellsVisibility=function(){this.validateMetric();return this.visibility};this.getColX=function(col){if(this.isValid===false)this.validateMetric();var start=0,d=1,x=this.getLeft()+(this.leftCaption===null||this.leftCaption.isVisible===false?this.lineSize:0)+this.getLeftCaptionWidth();if(this.visibility.hasVisibleCells()){start=this.visibility.fc[0];x=this.visibility.fc[1];d=col>this.visibility.fc[0]?1:-1}for(var i=start;i!==col;x+=(this.colWidths[i]+this.lineSize)*d,i+=d);return x};this.getRowY=function(row){if(this.isValid===false){this.validateMetric()}var start=0,d=1,y=this.getTop()+(this.topCaption===null||this.topCaption.isVisible===false?this.lineSize:0)+this.getTopCaptionHeight();if(this.visibility.hasVisibleCells()){start=this.visibility.fr[0];y=this.visibility.fr[1];d=row>this.visibility.fr[0]?1:-1}for(var i=start;i!==row;y+=(this.rowHeights[i]+this.lineSize)*d,i+=d);return y};this.childPointerEntered=this.childPointerExited=this.childPointerReleased=this.childPointerReleased=this.childPointerPressed=this.childKeyReleased=this.childKeyTyped=this.childKeyPressed=function(e){if(this.editingRow>=0){if(this.editors.shouldCancel(this,this.editingRow,this.editingCol,e)){this.stopEditing(false)}else{if(this.editors.shouldFinish(this,this.editingRow,this.editingCol,e)){this.stopEditing(true)}}}};this.iColVisibility=function(off){this.colOffset=this.colOffset===100?this.colOffset=off:off!==this.colOffset?0:this.colOffset};this.iRowVisibility=function(off){this.rowOffset=this.rowOffset===100?off:off+this.rowOffset===0?0:this.rowOffset};this.getTopCaptionHeight=function(){return this.topCaption!==null&&this.topCaption.isVisible===true?this.topCaption.height:0};this.getLeftCaptionWidth=function(){return this.leftCaption!==null&&this.leftCaption.isVisible===true?this.leftCaption.width:0};this.paint=function(g){this.vVisibility();if(this.visibility.hasVisibleCells()){var dx=this.scrollManager.getSX(),dy=this.scrollManager.getSY(),th=this.getTopCaptionHeight(),tw=this.getLeftCaptionWidth();try{g.save();g.translate(dx,dy);if(th>0||tw>0){g.clipRect(tw-dx,th-dy,this.width-tw,this.height-th)}if(this.paintPosMarkerOver!==true){this.paintPosMarker(g)}this.paintData(g);if(this.paintNetOnCaption!==true&&(this.drawHorLines===true||this.drawVerLines===true)){this.paintNet(g)}if(this.paintPosMarkerOver===true){this.paintPosMarker(g)}g.restore()}catch(e){g.restore();throw e}}};this.paintOnTop=function(g){if(this.paintNetOnCaption===true&&(this.drawHorLines===true||this.drawVerLines===true)){this.paintNet(g)}};this.catchScrolled=function(psx,psy){var offx=this.scrollManager.getSX()-psx,offy=this.scrollManager.getSY()-psy;if(offx!==0){this.iColVisibility(offx>0?1:-1)}if(offy!==0){this.iRowVisibility(offy>0?1:-1)}this.stopEditing(false);this.repaint()};this.isInvalidatedByChild=function(c){return c!==this.editor||this.isUsePsMetric};this.stopEditing=function(applyData){if(this.editors!==null&&this.editingRow>=0&&this.editingCol>=0){try{if(zebkit.instanceOf(this.editor,pkg.Grid)){this.editor.stopEditing(applyData)}var data=this.getDataToEdit(this.editingRow,this.editingCol);if(applyData){this.setEditedData(this.editingRow,this.editingCol,this.editors.fetchEditedValue(this,this.editingRow,this.editingCol,data,this.editor))}this.repaintRows(this.editingRow,this.editingRow)}finally{this.editingCol=this.editingRow=-1;if(this.indexOf(this.editor)>=0){this.remove(this.editor)}this.editor=null;this.requestFocus()}}};this.setDrawLines=function(hor,ver){if(this.drawVerLines!==hor||this.drawHorLines!==ver){this.drawHorLines=hor;this.drawVerLines=ver;this.repaint()}return this};this.setNavigationMode=function(mode){if(mode.toLowerCase()==="row"){this.navigationMode="row";this.getLineSize=function(row){return 1};this.getMaxOffset=function(){return this.getGridRows()-1}}else{this.navigationMode="cell";if(mode.toLowerCase()==="cell"){this.getLineSize=function(row){return this.getGridCols()};this.getMaxOffset=function(){return this.getGridRows()*this.getGridCols()-1}}else{throw new Error("Unsupported position marker mode")}}return this};this.getLines=function(){return this.getGridRows()};this.getLineSize=function(line){return 1};this.getMaxOffset=function(){return this.getGridRows()-1};this.posChanged=function(target,prevOffset,prevLine,prevCol){var row=this.position.currentLine;if(row>=0){this.makeVisible(row,this.position.currentCol);this.select(row,true);this.repaintRows(prevLine,row)}else{this.repaintRows(prevLine,prevLine)}};this.keyReleased=function(e){if(this.position!==null){this.$se(this.position.currentLine,this.position.currentCol,e)}};this.keyTyped=function(e){if(this.position!==null){this.$se(this.position.currentLine,this.position.currentCol,e)}};this.keyPressed=function(e){if(this.position!==null){switch(e.code){case"ArrowLeft":this.position.seek(-1);break;case"ArrowUp":this.position.seekLineTo("up");break;case"ArrowRight":this.position.seek(1);break;case"ArrowDown":this.position.seekLineTo("down");break;case"PageUp":this.position.seekLineTo("up",this.pageSize(-1));break;case"PageDown":this.position.seekLineTo("down",this.pageSize(1));break;case"End":if(e.ctrlKey)this.position.setOffset(this.getLines()-1);break;case"Home":if(e.ctrlKey)this.position.setOffset(0);break}this.$se(this.position.currentLine,this.position.currentCol,e)}};this.isSelected=function(row,col){return row===this.selectedIndex};this.repaintRows=function(r1,r2){if(r1<0)r1=r2;if(r2<0)r2=r1;if(r1>r2){var i=r2;r2=r1;r1=i}var rows=this.getGridRows();if(r1<rows){if(r2>=rows)r2=rows-1;var y1=this.getRowY(r1),y2=(r1===r2?y1+1:this.getRowY(r2))+this.rowHeights[r2];this.repaint(0,y1+this.scrollManager.getSY(),this.width,y2-y1)}return this};this.cellByLocation=function(x,y){this.validate();var dx=this.scrollManager.getSX(),dy=this.scrollManager.getSY(),v=this.visibility,ry1=v.fr[1]+dy,rx1=v.fc[1]+dx,row=-1,col=-1,i=0,ry2=v.lr[1]+this.rowHeights[v.lr[0]]+dy,rx2=v.lc[1]+this.colWidths[v.lc[0]]+dx;if(y>ry1&&y<ry2){for(i=v.fr[0];i<=v.lr[0];ry1+=this.rowHeights[i]+this.lineSize,i++){if(y>ry1&&y<ry1+this.rowHeights[i]){row=i;break}}}if(x>rx1&&x<rx2){for(i=v.fc[0];i<=v.lc[0];rx1+=this.colWidths[i]+this.lineSize,i++){if(x>rx1&&x<rx1+this.colWidths[i]){col=i;break}}}return col>=0&&row>=0?{row:row,col:col}:null};this.doLayout=function(target){var topHeight=this.topCaption!==null&&this.topCaption.isVisible===true?this.topCaption.getPreferredSize().height:0,leftWidth=this.leftCaption!==null&&this.leftCaption.isVisible===true?this.leftCaption.getPreferredSize().width:0;if(this.topCaption!==null){this.topCaption.setBounds(this.getLeft()+leftWidth,this.getTop(),Math.min(target.width-this.getLeft()-this.getRight()-leftWidth,this.psWidth_),topHeight)}if(this.leftCaption!==null){this.leftCaption.setBounds(this.getLeft(),this.getTop()+topHeight,leftWidth,Math.min(target.height-this.getTop()-this.getBottom()-topHeight,this.psHeight_))}if(this.stub!==null&&this.stub.isVisible===true){if(this.topCaption!==null&&this.topCaption.isVisible===true&&this.leftCaption!==null&&this.leftCaption.isVisible===true){this.stub.setBounds(this.getLeft(),this.getTop(),this.topCaption.x-this.stub.x,this.leftCaption.y-this.stub.y)}else{this.stub.setSize(0,0)}}if(this.editors!==null&&this.editor!==null&&this.editor.parent===this&&this.editor.isVisible===true){var w=this.colWidths[this.editingCol],h=this.rowHeights[this.editingRow],x=this.getColX(this.editingCol),y=this.getRowY(this.editingRow);if(this.isUsePsMetric){x+=this.cellInsetsLeft;y+=this.cellInsetsTop;w-=this.cellInsetsLeft+this.cellInsetsRight;h-=this.cellInsetsTop+this.cellInsetsBottom}this.editor.setBounds(x+this.scrollManager.getSX(),y+this.scrollManager.getSY(),w,h)}};this.canHaveFocus=function(){return this.editor===null};this.clearSelect=function(){if(this.selectedIndex>=0){var prev=this.selectedIndex;this.selectedIndex=-1;this._.rowSelected(this,-1,0,false);this.repaintRows(-1,prev)}return this};this.select=function(row,b){if(arguments.length<2)b=true;if(this.isSelected(row)!==b){if(this.selectedIndex>=0)this.clearSelect();if(b){this.selectedIndex=row;this._.rowSelected(this,row,1,b)}}return this};this.laidout=function(){this.vVisibility()};this.pointerClicked=function(e){if(e.isAction()&&this.visibility.hasVisibleCells()){this.stopEditing(true);if(e.isAction()){var p=this.cellByLocation(e.x,e.y);if(p!==null){if(this.position!==null){var row=this.position.currentLine,col=this.position.currentCol,ls=this.getLineSize(p.row);if(row===p.row&&col===p.col%ls){this.makeVisible(row,col)}else{this.clearSelect();this.position.setRowCol(p.row,p.col%ls)}}if(this.$se(p.row,p.col,e)){}}}}};this.calcPreferredSize=function(target){return{width:this.psWidth_+(this.leftCaption!==null&&this.leftCaption.isVisible===true?this.leftCaption.getPreferredSize().width:0),height:this.psHeight_+(this.topCaption!==null&&this.topCaption.isVisible===true?this.topCaption.getPreferredSize().height:0)}};this.paintNet=function(g){var v=this.visibility,i=0,topX=v.fc[1]-this.lineSize,topY=v.fr[1]-this.lineSize,botX=v.lc[1]+this.colWidths[v.lc[0]],botY=v.lr[1]+this.rowHeights[v.lr[0]],prevWidth=g.lineWidth;g.setColor(this.lineColor);g.lineWidth=this.lineSize;g.beginPath();if(this.drawHorLines===true){i=v.fr[0];var y=topY+this.lineSize/2,tx=this.paintNetOnCaption===true?this.getLeft():topX;for(;i<=v.lr[0];i++){g.moveTo(tx,y);g.lineTo(botX,y);y+=this.rowHeights[i]+this.lineSize}g.moveTo(tx,y);g.lineTo(botX,y)}if(this.drawVerLines===true){i=v.fc[0];if(this.drawSideLines!==true&&v.fc[0]===0){i++;topX=v.fc[1]+this.colWidths[0]}var x=topX+this.lineSize/2,cols=this.getGridCols()-1,ty=this.paintNetOnCaption===true?this.getTop():topY;for(;i<=v.lc[0]&&(this.drawSideLines===true||i<cols);i++){g.moveTo(x,ty);g.lineTo(x,botY);x+=this.colWidths[i]+this.lineSize}g.moveTo(x,ty);g.lineTo(x,botY)}g.stroke();g.lineWidth=prevWidth};this.paintData=function(g){var y=this.visibility.fr[1]+this.cellInsetsTop,addW=this.cellInsetsLeft+this.cellInsetsRight,addH=this.cellInsetsTop+this.cellInsetsBottom,ts=g.$states[g.$curState],cx=ts.x,cy=ts.y,cw=ts.width,ch=ts.height,res={};for(var i=this.visibility.fr[0];i<=this.visibility.lr[0]&&y<cy+ch;i++){if(y+this.rowHeights[i]>cy){var x=this.visibility.fc[1]+this.cellInsetsLeft;for(var j=this.visibility.fc[0];j<=this.visibility.lc[0];j++){if(this.isSelected(i,j)===true){this.paintCellSelection(g,i,j,x-this.cellInsetsLeft,y-this.cellInsetsTop)}else{var bg=typeof this.provider.getCellColor!=="undefined"?this.provider.getCellColor(this,i,j):this.defCellColor;if(bg!==null){g.setColor(bg);g.fillRect(x-this.cellInsetsLeft,y-this.cellInsetsTop,this.colWidths[j],this.rowHeights[i])}}var v=i===this.editingRow&&j===this.editingCol?null:this.provider.getView(this,i,j,this.model.get(i,j));if(v!==null){var w=this.colWidths[j]-addW,h=this.rowHeights[i]-addH;res.x=x>cx?x:cx;res.width=Math.min(x+w,cx+cw)-res.x;res.y=y>cy?y:cy;res.height=Math.min(y+h,cy+ch)-res.y;if(res.width>0&&res.height>0){var ax=typeof this.provider.getXAlignment!=="undefined"?this.provider.getXAlignment(this,i,j):this.defXAlignment,ay=typeof this.provider.getYAlignment!=="undefined"?this.provider.getYAlignment(this,i,j):this.defYAlignment,vw=w,vh=h,xx=x,yy=y,id=-1,ps=ax!==null||ay!==null?v.getPreferredSize(vw,vh):null;if(ax!==null){xx=x+(ax==="center"?~~((w-ps.width)/2):ax==="right"?w-ps.width:0);vw=ps.width}if(ay!==null){yy=y+(ay==="center"?~~((h-ps.height)/2):ay==="bottom"?h-ps.height:0);vh=ps.height}if(xx<res.x||yy<res.y||xx+vw>x+w||yy+vh>y+h){id=g.save();g.clipRect(res.x,res.y,res.width,res.height)}v.paint(g,xx,yy,vw,vh,this);if(id>=0){g.restore()}}}x+=this.colWidths[j]+this.lineSize}}y+=this.rowHeights[i]+this.lineSize}};this.$getPosMarker=function(){return this.hasFocus()?typeof this.views.marker==="undefined"?null:this.views.marker:typeof this.views.offmarker==="undefined"?null:this.views.offmarker};this.paintPosMarker=function(g){if(this.position!==null&&this.position.offset>=0){var view=this.$getPosMarker(),row=this.position.currentLine,col=this.position.currentCol,rowPosMode=this.navigationMode==="row",v=this.visibility;if(view!==null&&row>=v.fr[0]&&row<=v.lr[0]&&(rowPosMode===true||col>=v.fc[0]&&col<=v.lc[0])){if(rowPosMode===true){view.paint(g,v.fc[1],this.getRowY(row),v.lc[1]-v.fc[1]+this.colWidths[v.lc[0]],this.rowHeights[row],this)}else{view.paint(g,this.getColX(col),this.getRowY(row),this.colWidths[col],this.rowHeights[row],this)}}}};this.paintCellSelection=function(g,row,col,x,y){if(this.editingRow<0){var v=ui.focusManager.focusOwner===this?this.views.onselection:this.views.offselection;if(v!==null&&typeof v!=="undefined"){v.paint(g,x,y,this.colWidths[col],this.rowHeights[row],this)}}};this.rPsMetric=function(){var cols=this.getGridCols(),rows=this.getGridRows(),addW=this.cellInsetsLeft+this.cellInsetsRight,addH=this.cellInsetsTop+this.cellInsetsBottom,capPS=null,i=0;if(this.colWidths===null||this.colWidths.length!==cols){this.colWidths=Array(cols);for(;i<cols;i++)this.colWidths[i]=0}else{for(;i<cols;i++)this.colWidths[i]=0}if(this.rowHeights===null||this.rowHeights.length!==rows){this.rowHeights=Array(rows);for(i=0;i<rows;i++)this.rowHeights[i]=0}else{for(i=0;i<rows;i++)this.rowHeights[i]=0}for(i=0;i<cols;i++){for(var j=0;j<rows;j++){var v=this.provider.getView(this,j,i,this.model.get(j,i));if(v!==null){var ps=v.getPreferredSize();ps.width+=addW;ps.height+=addH;if(ps.width>this.colWidths[i])this.colWidths[i]=ps.width;if(ps.height>this.rowHeights[j])this.rowHeights[j]=ps.height}else{if(pkg.Grid.DEF_COLWIDTH>this.colWidths[i]){this.colWidths[i]=pkg.Grid.DEF_COLWIDTH}if(pkg.Grid.DEF_ROWHEIGHT>this.rowHeights[j]){this.rowHeights[j]=pkg.Grid.DEF_ROWHEIGHT}}}}if(this.topCaption!==null&&this.topCaption.isVisible===true){for(i=0;i<cols;i++){capPS=this.topCaption.getCaptionPS(i);if(capPS>this.colWidths[i])this.colWidths[i]=capPS}}if(this.leftCaption!==null&&this.leftCaption.isVisible===true){for(i=0;i<rows;i++){capPS=this.leftCaption.getCaptionPS(i);if(capPS>this.rowHeights[i])this.rowHeights[i]=capPS}}};this.getPSSize=function(rowcol,b){if(this.isUsePsMetric===true){return b?this.getRowHeight(rowcol):this.getColWidth(rowcol)}else{var max=0,count=b?this.getGridCols():this.getGridRows();for(var j=0;j<count;j++){var r=b?rowcol:j,c=b?j:rowcol,v=this.provider.getView(this,r,c,this.model.get(r,c));if(v!==null){var ps=v.getPreferredSize();if(b){if(ps.height>max)max=ps.height}else{if(ps.width>max)max=ps.width}}}return max+this.lineSize*2+(b?this.cellInsetsTop+this.cellInsetsBottom:this.cellInsetsLeft+this.cellInsetsRight)}};this.rCustomMetric=function(){var start=0;if(this.colWidths!==null){start=this.colWidths.length;if(this.colWidths.length!==this.getGridCols()){this.colWidths.length=this.getGridCols()}}else{this.colWidths=Array(this.getGridCols())}for(;start<this.colWidths.length;start++){this.colWidths[start]=pkg.Grid.DEF_COLWIDTH}start=0;if(this.rowHeights!==null){start=this.rowHeights.length;if(this.rowHeights.length!==this.getGridRows()){this.rowHeights.length=this.getGridRows()}}else{this.rowHeights=Array(this.getGridRows())}for(;start<this.rowHeights.length;start++){this.rowHeights[start]=pkg.Grid.DEF_ROWHEIGHT}};this.pageSize=function(d){this.validate();if(this.visibility.hasVisibleCells()&&this.position!==null){var off=this.position.offset;if(off>=0){var hh=this.visibleArea.height-this.getTopCaptionHeight(),sum=0,poff=off;for(;off>=0&&off<this.getGridRows()&&sum<hh;sum+=this.rowHeights[off]+this.lineSize,off+=d);return Math.abs(poff-off)}}return 0};this.setRowHeight=function(row,h){this.setRowsHeight(row,1,h);return this};this.setRowsHeight=function(row,len,h){if(this.isUsePsMetric===false){if(arguments.length===1){h=arguments[0];row=0;len=this.getGridRows()}if(len!==0){this.validateMetric();var b=false;for(var i=row;i<row+len;i++){if(this.rowHeights[i]!==h){this.psHeight_+=h-this.rowHeights[i];this.rowHeights[i]=h;b=true}}if(b===true){this.stopEditing(false);this.cachedHeight=this.getTop()+this.getBottom()+this.psHeight_+(this.topCaption!==null&&this.topCaption.isVisible===true?this.topCaption.getPreferredSize().height:0);if(this.parent!==null){this.parent.invalidate()}this.iRowVisibility(0);this.invalidateLayout();this.repaint()}}return this}};this.setColWidth=function(col,w){this.setColsWidth(col,1,w);return this};this.setColsWidth=function(col,len,w){if(this.isUsePsMetric===false){if(arguments.length===1){w=arguments[0];col=0;len=this.getGridCols()}if(len!==0){this.validateMetric();var b=false;for(var i=col;i<col+len;i++){if(this.colWidths[i]!==w){this.psWidth_+=w-this.colWidths[i];this.colWidths[i]=w;b=true}}if(b===true){this.stopEditing(false);this.cachedWidth=this.getRight()+this.getLeft()+this.psWidth_+(this.leftCaption!==null&&this.leftCaption.isVisible===true?this.leftCaption.getPreferredSize().width:0);if(this.parent!==null){this.parent.invalidate()}this.iColVisibility(0);this.invalidateLayout();this.repaint()}}return this}};this.matrixResized=function(target,prevRows,prevCols){this.clearSelect();this.vrp();if(this.position!==null){this.position.setOffset(null)}for(var i=0;i<this.kids.length;i++){if(typeof this.kids[i].matrixResized!=="undefined"){this.kids[i].matrixResized(target,prevRows,prevCols)}}};this.cellModified=function(target,row,col,prevValue){if(this.isUsePsMetric){this.invalidate()}for(var i=0;i<this.kids.length;i++){if(typeof this.kids[i].cellModified!=="undefined"){this.kids[i].cellModified(target,row,col,prevValue)}}};this.matrixSorted=function(target,info){this.clearSelect();this.vrp();for(var i=0;i<this.kids.length;i++){if(typeof this.kids[i].matrixSorted!=="undefined"){this.kids[i].matrixSorted(target,info)}}};this.setEditorProvider=function(p){if(p!==this.editors){this.stopEditing(true);this.editors=p}return this};this.setUsePsMetric=function(b){if(this.isUsePsMetric!==b){this.isUsePsMetric=b;this.vrp()}return this};this.setPosition=function(p){if(this.position!==p){if(this.position!==null){this.position.off(this)}this.position=p;if(this.position!==null){this.position.on(this);this.position.setMetric(this)}this.repaint()}return this};this.setViewProvider=function(p){if(this.provider!==p){this.provider=p;this.vrp()}return this};this.setModel=function(d){if(d!==this.model){this.clearSelect();if(Array.isArray(d))d=new this.clazz.Matrix(d);if(this.model!==null&&typeof this.model._!=="undefined"){this.model.off(this)}this.model=d;if(this.model!==null&&typeof this.model._!=="undefined"){this.model.on(this)}if(this.position!==null){this.position.setOffset(null)}this.vrp()}return this};this.setCellPadding=function(p){this.setCellPaddings(p,p,p,p);return this};this.setCellPaddings=function(t,l,b,r){if(t!==this.cellInsetsTop||l!==this.cellInsetsLeft||b!==this.cellInsetsBottom||r!==this.cellInsetsRight){this.cellInsetsTop=t;this.cellInsetsLeft=l;this.cellInsetsBottom=b;this.cellInsetsRight=r;this.vrp()}return this};this.setLineColor=function(c){if(c!==this.lineColor){this.lineColor=c;if(this.drawVerLines||this.drawHorLines){this.repaint()}}return this};this.setLineSize=function(s){if(s!==this.lineSize){this.lineSize=s;this.vrp()}return this};this.startEditing=function(row,col){this.stopEditing(true);if(this.editors!==null){var editor=this.editors.getEditor(this,row,col,this.getDataToEdit(row,col));if(editor!==null){this.editingRow=row;this.editingCol=col;if(editor.isPopupEditor===true){var p=zebkit.layout.toParentOrigin(this.getColX(col)+this.scrollManager.getSX(),this.getRowY(row)+this.scrollManager.getSY(),this);editor.setLocation(p.x,p.y);ui.makeFullyVisible(this.getCanvas(),editor);this.editor=editor;var $this=this;this.editor.winOpened=function(e){if(e.isShown===false){$this.stopEditing(typeof e.source.isAccepted!=="undefined"?e.source.isAccepted():false)}};ui.showModalWindow(this,editor,this)}else{this.add("editor",editor);this.repaintRows(this.editingRow,this.editingRow)}ui.focusManager.requestFocus(editor);return true}}return false};this.getDataToEdit=function(row,col){return this.model.get(row,col)};this.setEditedData=function(row,col,value){this.model.put(row,col,value)};this.setLeftCaption=function(){if(this.leftCaption!==null){this.leftCaption.removeMe()}this.add("left",new pkg.GridCaption(Array.prototype.slice.call(arguments)));return this};this.setTopCaption=function(){if(this.topCaption!==null){this.topCaption.removeMe()}this.add("top",new pkg.GridCaption(Array.prototype.slice.call(arguments)));return this}},function focused(){this.$super();this.repaint()},function invalidate(){this.$super();this.iColVisibility(0);this.iRowVisibility(0)},function kidAdded(index,ctr,c){this.$super(index,ctr,c);if(ctr===null&&this.topCaption===null||"top"===ctr){this.topCaption=c}else{if("editor"===ctr)this.editor=c;else{if(ctr===null&&this.leftCaption===null||"left"===ctr){this.leftCaption=c}else{if(ctr===null&&this.stub===null||"corner"===ctr){this.stub=c}}}}},function kidRemoved(index,c){this.$super(index,c);if(c===this.editor)this.editor=null;else{if(c===this.topCaption){this.topCaption=null}else{if(c===this.leftCaption){this.leftCaption=null}else{if(c===this.stub)this.stub=null}}}}]);var ui=pkg.cd("..");pkg.GridStretchPan=Class(ui.Panel,[function(grid){this.$super(this);this.grid=grid;this.$widths=[];this.$prevWidth=0;this.$propW=-1;this.add(grid)},function $prototype(){this.$props=this.$strPs=null;this.grid=null;this.calcPreferredSize=function(target){this.recalcPS();return target.kids.length===0||target.grid.isVisible===false?{width:0,height:0}:{width:this.$strPs.width,height:this.$strPs.height}};this.doLayout=function(target){this.recalcPS();if(target.kids.length>0){var grid=this.grid,left=target.getLeft(),top=target.getTop();if(grid.isVisible===true){grid.setBounds(left,top,target.width-left-target.getRight(),target.height-top-target.getBottom());for(var i=0;i<this.$widths.length;i++){grid.setColWidth(i,this.$widths[i])}}}};this.captionResized=function(src,col,pw){if(col<this.$widths.length-1){var grid=this.grid,w=grid.getColWidth(col),dt=w-pw;if(dt<0){grid.setColWidth(col+1,grid.getColWidth(col+1)-dt)}else{var ww=grid.getColWidth(col+1)-dt,mw=this.getMinWidth();if(ww<mw){grid.setColWidth(col,w-(mw-ww));grid.setColWidth(col+1,mw)}else{grid.setColWidth(col+1,ww)}}this.$propW=-1}};this.getMinWidth=function(){return zebkit.instanceOf(this.grid.topCaption,pkg.BaseCaption)?this.grid.topCaption.minSize:10};this.calcColWidths=function(targetAreaW){var grid=this.grid,cols=grid.getGridCols(),ew=targetAreaW-(this.$props.length+1)*grid.lineSize,sw=0;if(this.$widths.length!==cols){this.$widths=Array(cols)}for(var i=0;i<cols;i++){if(this.$props.length-1===i){this.$widths[i]=ew-sw}else{this.$widths[i]=Math.round(ew*this.$props[i]);sw+=this.$widths[i]}}};this.recalcPS=function(){var grid=this.grid;if(grid!==null&&grid.isVisible===true){var p=this.parent,isScr=zebkit.instanceOf(p,ui.ScrollPan),taWidth=isScr?p.width-p.getLeft()-p.getRight()-this.getRight()-this.getLeft():this.width-this.getRight()-this.getLeft(),taHeight=isScr?p.height-p.getTop()-p.getBottom()-this.getBottom()-this.getTop():this.height-this.getBottom()-this.getTop();if(this.grid.leftCaption!==null&&this.grid.leftCaption.isVisible===true){taWidth-=this.grid.leftCaption.getPreferredSize().width}if(this.$strPs===null||this.$prevWidth!==taWidth){var cols=grid.getGridCols();if(this.$propW<0||this.$props===null||this.$props.length!==cols){if(this.$props===null||this.$props.length!==cols){this.$props=Array(cols)}this.$propW=0;var i=0,w=0;for(i=0;i<cols;i++){w=grid.getColWidth(i);if(w===0)w=grid.getColPSWidth(i);this.$propW+=w}for(i=0;i<cols;i++){w=grid.getColWidth(i);if(w===0)w=grid.getColPSWidth(i);this.$props[i]=w/this.$propW}}this.$prevWidth=taWidth;this.calcColWidths(taWidth);this.$strPs={width:taWidth,height:grid.getPreferredSize().height};if(isScr===true&&p.height>0&&(typeof p.vBar!=="undefined"||p.vBar===null)&&p.autoHide===false&&taHeight<this.$strPs.height){taWidth-=p.vBar.getPreferredSize().width;this.calcColWidths(taWidth);this.$strPs.width=taWidth}}}}},function kidAdded(index,constr,l){this.$propsW=-1;if(l.topCaption!==null){l.topCaption.on(this)}this.scrollManager=l.scrollManager;this.$super(index,constr,l)},function kidRemoved(i,l){this.$propsW=-1;if(l.topCaption!==null){l.topCaption.off(this)}this.scrollManager=null;this.$super(i,l)},function invalidate(){this.$strPs=null;this.$super()}]);zebkit.ui.$configWith(pkg)});zebkit.package("ui.design",function(pkg,Class){var ui=pkg.cd("..");var CURSORS={left:ui.Cursor.W_RESIZE,right:ui.Cursor.E_RESIZE,top:ui.Cursor.N_RESIZE,bottom:ui.Cursor.S_RESIZE,topLeft:ui.Cursor.NW_RESIZE,topRight:ui.Cursor.NE_RESIZE,bottomLeft:ui.Cursor.SW_RESIZE,bottomRight:ui.Cursor.SE_RESIZE,center:ui.Cursor.MOVE,none:ui.Cursor.DEFAULT};pkg.ShaperBorder=Class(ui.View,[function $prototype(){this.color="blue";this.gap=7;function contains(x,y,gx,gy,ww,hh){return gx<=x&&gx+ww>x&&gy<=y&&gy+hh>y}this.paint=function(g,x,y,w,h,d){var cx=Math.floor((w-this.gap)/2),cy=Math.floor((h-this.gap)/2);g.setColor(this.color);g.beginPath();g.rect(x,y,this.gap,this.gap);g.rect(x+cx,y,this.gap,this.gap);g.rect(x,y+cy,this.gap,this.gap);g.rect(x+w-this.gap,y,this.gap,this.gap);g.rect(x,y+h-this.gap,this.gap,this.gap);g.rect(x+cx,y+h-this.gap,this.gap,this.gap);g.rect(x+w-this.gap,y+cy,this.gap,this.gap);g.rect(x+w-this.gap,y+h-this.gap,this.gap,this.gap);g.fill();g.beginPath();g.rect(x+Math.floor(this.gap/2)+.5,y+Math.floor(this.gap/2)+.5,w-this.gap,h-this.gap);g.stroke()};this.detectAt=function(target,x,y){if(contains(x,y,this.gap,this.gap,target.width-2*this.gap,target.height-2*this.gap)){return"center"}if(contains(x,y,0,0,this.gap,this.gap)){return"topLeft"}if(contains(x,y,0,target.height-this.gap,this.gap,this.gap)){return"bottomLeft"}if(contains(x,y,target.width-this.gap,0,this.gap,this.gap)){return"topRight"}if(contains(x,y,target.width-this.gap,target.height-this.gap,this.gap,this.gap)){return"bottomRight"}var mx=Math.floor((target.width-this.gap)/2);if(contains(x,y,mx,0,this.gap,this.gap)){return"top"}if(contains(x,y,mx,target.height-this.gap,this.gap,this.gap)){return"bottom"}var my=Math.floor((target.height-this.gap)/2);if(contains(x,y,0,my,this.gap,this.gap)){return"left"}return contains(x,y,target.width-this.gap,my,this.gap,this.gap)?"right":"none"}}]);pkg.ShaperPan=Class(ui.Panel,[function $clazz(){this.colors=["lightGray","blue"]},function $prototype(){this.colors=null;this.minHeight=this.minWidth=12;this.canHaveFocus=this.isResizeEnabled=this.isMoveEnabled=true;this.state=null;this.catchInput=true;this.getCursorType=function(t,x,y){return this.kids.length>0?CURSORS[this.shaperBr.detectAt(t,x,y)]:null};this.keyPressed=function(e){if(this.kids.length>0){var dx=e.code==="ArrowLeft"?-1:e.code==="ArrowRight"?1:0,dy=e.code==="ArrowUp"?-1:e.code==="ArrowDown"?1:0,w=this.width+dx,h=this.height+dy,x=this.x+dx,y=this.y+dy;if(e.shiftKey){if(this.isResizeEnabled===true&&w>this.shaperBr.gap*2&&h>this.shaperBr.gap*2){this.setSize(w,h)}}else{if(this.isMoveEnabled){if(x+this.width/2>0&&y+this.height/2>0&&x<this.parent.width-this.width/2&&y<this.parent.height-this.height/2){this.setLocation(x,y)}}}}};this.pointerDragStarted=function(e){this.state=null;if(this.isResizeEnabled||this.isMoveEnabled){var t=this.shaperBr.detectAt(this,e.x,e.y);if(this.isMoveEnabled===true||t!=="center"||(this.isResizeEnabled===true||t==="center")){this.state={top:t==="top"||t==="topLeft"||t==="topRight"?1:0,left:t==="left"||t==="topLeft"||t==="bottomLeft"?1:0,right:t==="right"||t==="topRight"||t==="bottomRight"?1:0,bottom:t==="bottom"||t==="bottomRight"||t==="bottomLeft"?1:0};this.px=e.absX;this.py=e.absY}}};this.pointerDragged=function(e){if(this.state!==null){var dy=e.absY-this.py,dx=e.absX-this.px,s=this.state,nw=this.width-dx*s.left+dx*s.right,nh=this.height-dy*s.top+dy*s.bottom;if(nw>=this.minWidth&&nh>=this.minHeight){this.px=e.absX;this.py=e.absY;if(s.top+s.right+s.bottom+s.left===0){this.setLocation(this.x+dx,this.y+dy)}else{this.setBounds(this.x+dx*s.left,this.y+dy*s.top,nw,nh)}}}};this.setColor=function(b,color){var rp=false;if(this.colors===null){this.colors=["lightGray","blue"];rp=true}var oldCol=this.colors[b?1:0];if(oldCol!==color){this.colors[b?1:0]=color;rp=true}var hasFocus=this.hasFocus();if(this.shaperBr.color!==this.colors[hasFocus?1:0]){this.shaperBr.color=this.colors[hasFocus?1:0];rp=true}if(rp){this.repaint()}return this};this.setColors=function(col1,col2){this.setColor(false,col1);if(arguments.length>1){this.setColor(true,col2)}return this}},function insert(i,constr,d){if(this.kids.length>0){this.removeAll()}var top=this.getTop(),left=this.getLeft();if(d.width===0||d.height===0){d.toPreferredSize()}this.setBounds(d.x-left,d.y-top,d.width+left+this.getRight(),d.height+top+this.getBottom());this.$super(i,"center",d)},function focused(){this.$super();this.shaperBr.color=this.colors[this.hasFocus()?1:0];this.repaint()},function(t){this.shaperBr=new pkg.ShaperBorder;this.$super(new zebkit.layout.BorderLayout);this.px=this.py=0;this.setBorder(this.shaperBr);if(arguments.length>0){this.add(t)}}]);pkg.FormTreeModel=Class(zebkit.data.TreeModel,[function $prototype(){this.buildModel=function(comp,root){var b=typeof this.exclude!=="undefined"&&this.exclude(comp),item=b?root:this.createItem(comp);for(var i=0;i<comp.kids.length;i++){var r=this.buildModel(comp.kids[i],item);if(r!==null){r.parent=item;item.kids.push(r)}}return b?null:item};this.itemByComponent=function(c,r){if(arguments.length<2)r=this.root;if(r.comp===c)return c;for(var i=0;i<r.kids.length;i++){var item=this.itemByComponent(c,r.kids[i]);if(item!==null)return item}return null};this.createItem=function(comp){var name=comp.clazz.$name;if(typeof name==="undefined")name=comp.toString();var index=name.lastIndexOf("."),item=new zebkit.data.Item(index>0?name.substring(index+1):name);item.comp=comp;return item}},function(target){this.$super(this.buildModel(target,null))}])});zebkit.package("web",function(pkg,Class){"use strict";pkg.$deviceRatio=typeof window.devicePixelRatio!=="undefined"?window.devicePixelRatio:typeof window.screen.deviceXDPI!=="undefined"?window.screen.deviceXDPI/window.screen.logicalXDPI:1;pkg.$windowSize=function(){return{width:window.innerWidth,height:window.innerHeight}};pkg.$viewPortSize=function(){var ws=pkg.$windowSize(),body=document.body,css=["margin-left","margin-right","margin-top","margin-bottom","padding-left","padding-right","padding-top","padding-bottom","border-left-width","border-right-width","border-top-width","border-bottom-width"];for(var i=0;i<css.length;){ws.width-=pkg.$measure(body,css[i++])+pkg.$measure(body,css[i++]);ws.height-=pkg.$measure(body,css[i++])+pkg.$measure(body,css[i++])}return ws};pkg.$measure=function(e,cssprop){var value=window.getComputedStyle(e,null).getPropertyValue(cssprop);return value===null||value===""?0:parseInt(/(^[0-9\.]+)([a-z]+)?/.exec(value)[1],10)};pkg.$contains=function(element){return typeof document.contains!=="undefined"&&document.contains(element)||typeof document.body.contains!=="undefined"&&document.body.contains(element)};pkg.$isInsideElement=function(element,pageX,pageY){var r=element.getBoundingClientRect();return r!==null&&pageX>=r.left&&pageY>=r.top&&pageX<=r.right-1&&pageY<=r.bottom-1};var $focusInOutSupported=function(){var support=false,parent=document.lastChild,a=document.createElement("a");a.href="#";a.setAttribute("style","position:fixed;left:-99em;top:-99em;");a.addEventListener("focusin",function(){support=true});parent.appendChild(a).focus();parent.removeChild(a);return support}();pkg.$focusin=function(element,f,b){return element.addEventListener($focusInOutSupported?"focusin":"focus",f,b)};pkg.$focusout=function(element,f,b){return element.addEventListener($focusInOutSupported?"focusout":"blur",f,b)};pkg.$eventsBlackHole=function(e){e.preventDefault();e.stopPropagation()};pkg.$createBlockedElement=function(){var be=document.createElement("div");be.style.height=be.style.width="100%";be.style.left=be.style.top="0px";be.style.position="absolute";be.style["z-index"]="100000";be.setAttribute("zebkit","blockedElement");be.onmouseup=be.onmousedown=be.onmouseout=be.onmouseover=be.onmousemove=be.onkeydown=be.onkeypress=be.onkeyup=pkg.$eventsBlackHole;var events=["touchstart","touchend","touchmove","pointerdown","pointerup","pointermove","pointerenter","pointerleave"];for(var i=0;i<events.length;i++){be.addEventListener(events[i],pkg.$eventsBlackHole,false)}return be};pkg.$2DContextMethods={setFont:function(f){f=typeof f.s!=="undefined"?f.s:f.toString();if(f!==this.font){this.font=f}},setColor:function(c){c=typeof c.s!=="undefined"?c.s:c.toString();if(c!==this.fillStyle)this.fillStyle=c;if(c!==this.strokeStyle)this.strokeStyle=c},drawLine:function(x1,y1,x2,y2,w){if(arguments.length<5)w=1;var pw=this.lineWidth;this.beginPath();if(this.lineWidth!==w)this.lineWidth=w;if(x1===x2){x1+=w/2;x2=x1}else if(y1===y2){y1+=w/2;y2=y1}this.moveTo(x1,y1);this.lineTo(x2,y2);this.stroke();if(pw!==this.lineWidth)this.lineWidth=pw},ovalPath:function(x,y,w,h){this.beginPath();x+=this.lineWidth;y+=this.lineWidth;w-=2*this.lineWidth;h-=2*this.lineWidth;var kappa=.5522848,ox=Math.floor(w/2*kappa),oy=Math.floor(h/2*kappa),xe=x+w,ye=y+h,xm=x+w/2,ym=y+h/2;this.moveTo(x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);this.closePath()},polylinePath:function(xPoints,yPoints,nPoints){this.beginPath();this.moveTo(xPoints[0],yPoints[0]);for(var i=1;i<nPoints;i++)this.lineTo(xPoints[i],yPoints[i])},drawDottedRect:function(x,y,w,h){var ctx=this,m=["moveTo","lineTo","moveTo"];function dv(x,y,s){for(var i=0;i<s;i++)ctx[m[i%3]](x+.5,y+i)}function dh(x,y,s){for(var i=0;i<s;i++)ctx[m[i%3]](x+i,y+.5)}ctx.beginPath();dh(x,y,w);dh(x,y+h-1,w);ctx.stroke();ctx.beginPath();dv(x,y,h);dv(w+x-1,y,h);ctx.stroke()},drawDashLine:function(x,y,x2,y2){var pattern=[1,2],compute=null,dx=x2-x,dy=y2-y,b=Math.abs(dx)>Math.abs(dy),slope=b?dy/dx:dx/dy,sign=b?dx<0?-1:1:dy<0?-1:1,dist=Math.sqrt(dx*dx+dy*dy);if(b){compute=function(step){x+=step;y+=slope*step}}else{compute=function(step){x+=slope*step;y+=step}}this.beginPath();this.moveTo(x,y);for(var i=0;dist>=.1;i++){var idx=i%pattern.length,dl=dist<pattern[idx]?dist:pattern[idx],step=Math.sqrt(dl*dl/(1+slope*slope))*sign;compute(step);this[i%2===0?"lineTo":"moveTo"](x+.5,y+.5);dist-=dl}this.stroke()}};pkg.$extendContext=function(ctx,methods){for(var k in methods){if(k==="$init"){methods[k].call(ctx)}else{var old=ctx[k];if(typeof old!=="undefined"){var kk="$"+k;if(typeof ctx[kk]==="undefined"){ctx[kk]=old}}ctx[k]=methods[k]}}};pkg.$canvas=function(c,w,h,forceResize){var cs=window.getComputedStyle(c,null),cw=parseInt(cs.getPropertyValue("width"),10),ch=parseInt(cs.getPropertyValue("height"),10),ctx=c.getContext("2d"),updateRatio=false;if(isNaN(parseInt(c.style.width))||isNaN(parseInt(c.style.height))){c.style.width=""+cw+"px";c.style.height=""+ch+"px";updateRatio=true}if(arguments.length>1){if(cw!==w||ch!==h){c.style.width=""+w+"px";c.style.height=""+h+"px";updateRatio=true}cw=w;ch=h}if(typeof ctx.$ratio==="undefined"){ctx.$ratio=ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.backingStorePixelRatio||ctx.backingStorePixelRatio||1;ctx.$getImageData=ctx.getImageData;ctx.$scale=ctx.scale;if(pkg.$deviceRatio!=ctx.$ratio){var r=pkg.$deviceRatio/ctx.$ratio;ctx.getImageData=function(x,y,w,h){return this.$getImageData(x*r,y*r,w,h)}}pkg.$extendContext(ctx,pkg.$2DContextMethods)}if(ctx.$ratio!=pkg.$deviceRatio){var ratio=pkg.$deviceRatio/ctx.$ratio;cw=~~(cw*ratio);ch=~~(ch*ratio);if(c.width!=cw||c.height!=ch||updateRatio===true||forceResize===true){c.width=cw;c.height=ch;ctx.$scale(ratio,ratio)}}else{if(c.width!=cw||c.height!=ch||forceResize===true){c.width=cw;c.height=ch}}if(ctx.textBaseline!=="top"){ctx.textBaseline="top"}return ctx};function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent("CustomEvent");evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}CustomEvent.prototype=window.Event.prototype;function $dupKeyEvent(e,id,target){var k=new CustomEvent(id);k.keyCode=e.keyCode;k.key=e.key;k.code=e.code;k.ctrlKey=e.ctrlKey;k.altKey=e.altKey;k.shiftKey=e.shiftKey;k.metaKey=e.metaKey;k.which=e.which;return k}pkg.Clipboard=Class(zebkit.ui.Clipboard,[function(triggerKeyCode){if(document.getElementById(this.clazz.id)!==null){throw new Error("Duplicated clipboard element")}if(arguments.length>0&&triggerKeyCode!==null){this.triggerKeyCode=triggerKeyCode}else{this.triggerKeyCode=zebkit.isMacOS?"MetaLeft":"Control"}if(this.triggerKeyCode!==null){this.$clipboard=document.createElement("textarea");this.$clipboard.setAttribute("style","display:none;position:fixed;left:-99em;top:-99em;");this.$clipboard.setAttribute("id",this.clazz.id);this.$element=null;var $this=this;window.addEventListener("keydown",function(e){var dest=$this.getDestination();if(dest!==null){if(typeof dest.clipCopy!=="undefined"||typeof dest.clipPaste!=="undefined"){if(zebkit.web.$fetchKeyCode(e)===$this.triggerKeyCode){$this.$on("1")}}}},true);this.$clipboard.onkeydown=function(ee){$this.$element.dispatchEvent($dupKeyEvent(ee,"keydown",this.$element));$this.$clipboard.value="1";$this.$clipboard.select()};this.$clipboard.onkeyup=function(ee){if(zebkit.web.$fetchKeyCode(ee)===$this.triggerKeyCode){$this.$clipboard.style.display="none";$this.$element.focus()}$this.$element.dispatchEvent($dupKeyEvent(ee,"keyup",$this.$element))};this.$clipboard.onfocus=function(e){if($this.$element==null&&e.relatedTarget!=null){$this.$element=e.relatedTarget}};this.$clipboard.onblur=function(){this.value="";this.style.display="none";$this.$element.focus()};this.$clipboard.oncopy=function(ee){var dest=$this.getDestination();if(dest!==null&&typeof dest.clipCopy!=="undefined"){var v=dest.clipCopy();$this.$clipboard.value=v===null||typeof v==="undefined"?"":v;$this.$clipboard.select();if(typeof $this.clipCopy!=="undefined"){$this.clipCopy(v,$this.$clipboard.value)}}};this.$clipboard.oncut=function(ee){var dest=$this.getDestination();if(dest!==null&&typeof dest.cut!=="undefined"){$this.$clipboard.value=dest.cut();$this.$clipboard.select();if(typeof $this.clipCut!=="undefined"){$this.clipCut(dest,$this.$clipboard.value)}}};if(zebkit.isFF===true){this.$clipboard.addEventListener("input",function(ee){var dest=$this.getDestination();if(dest!==null&&typeof dest.clipPaste!=="undefined"){dest.clipPaste($this.$clipboard.value);if(typeof $this.clipPaste!=="undefined"){$this.clipPaste(dest,$clipboard.value)}}},false)}else{this.$clipboard.onpaste=function(ee){var dest=$this.getDestination();if(dest!==null&&typeof dest.clipPaste!=="undefined"){var txt=typeof ee.clipboardData==="undefined"?window.clipboardData.getData("Text"):ee.clipboardData.getData("text/plain");dest.clipPaste(txt);if(typeof $this.clipPaste!=="undefined"){$this.clipPaste(dest,txt)}}$this.$clipboard.value=""}}document.body.appendChild(this.$clipboard)}},function $clazz(){this.id="zebkitClipboardBuffer"},function $prototype(){this.triggerKeyCode=null;this.write=function(txt){try{this.$on(txt);if(typeof document.execCommand!=="undefined"&&document.execCommand("copy")!==true){throw new Error("Unsupported 'copy' clipboard command")}}finally{this.$off()}};this.read=function(){try{var clip=this.$on("");if(typeof document.execCommand!=="undefined"&&document.execCommand("paste",null,null)){return clip.value}else{throw new Error("Unsupported 'paste' clipboard command")}}finally{this.$off()}};this.$off=function(){if(this.$clipboard.style.display!=="none"){this.$clipboard.value="";this.$clipboard.style.display="none";this.$element.focus()}};this.$on=function(txt){this.$off();this.$element=document.activeElement;this.$clipboard.style.display="block";this.$clipboard.value=arguments.length>0?txt:"1";this.$clipboard.select();this.$clipboard.focus();return this.$clipboard}}]);new pkg.Clipboard;if(typeof pkg.doubleClickDelta==="undefined"){pkg.doubleClickDelta=280}var PI4=Math.PI/4,PI4_3=PI4*3,$enteredElement=null,$tmpWinMouseMoveListener=null,$lastPointerReleased=null,$pointerPressedEvents={},LMOUSE="lmouse",RMOUSE="rmouse";pkg.PointerEvent=Class(zebkit.ui.PointerEvent,[function $prototype(){this.isAction=function(){return this.identifier!==RMOUSE&&this.touchCounter===1};this.$fillWith=function(identifier,e){this.pageX=Math.floor(e.pageX);this.pageY=Math.floor(e.pageY);this.target=e.target;this.identifier=identifier;this.altKey=typeof e.altKey!=="undefined"?e.altKey:false;this.shiftKey=typeof e.shiftKey!=="undefined"?e.shiftKey:false;this.ctrlKey=typeof e.ctrlKey!=="undefined"?e.ctrlKey:false;this.metaKey=typeof e.metaKey!=="undefined"?e.metaKey:false;this.pressure=typeof e.pressure!=="undefined"?e.pressure:.5};this.getTouches=function(){var touches=[],i=0;for(var k in pkg.$pointerPressedEvents){var pe=pkg.$pointerPressedEvents[k];touches[i++]={pageX:pe.pageX,pageY:pe.pageY,identifier:pe.identifier,target:pe.target,pressure:pe.pressure,pointerType:pe.stub.pointerType}}return touches}}]);var ME_STUB=new pkg.PointerEvent,TOUCH_STUB=new pkg.PointerEvent,POINTER_STUB=new pkg.PointerEvent;ME_STUB.pointerType="mouse";TOUCH_STUB.pointerType="touch";POINTER_STUB.pointerType="unknown";function $cleanDragFix(){if($tmpWinMouseMoveListener!==null&&$pointerPressedEvents.hasOwnProperty(LMOUSE)===false&&$pointerPressedEvents.hasOwnProperty(RMOUSE)===false){window.removeEventListener("mousemove",$tmpWinMouseMoveListener,true);$tmpWinMouseMoveListener=null;return true}return false}function isIn(t,id){for(var i=0;i<t.length;i++){if(t[i].identifier===id)return true}return false}pkg.PointerEventUnifier=Class([function $clazz(){document.addEventListener("mouseup",function(e){if(e.button===0||e.button===2){var id=e.button===0?LMOUSE:RMOUSE;if($pointerPressedEvents.hasOwnProperty(id)){var mp=$pointerPressedEvents[id];if(mp.$adapter.element!==e.target&&mp.$adapter.element.contains(e.target)===false){try{if($enteredElement!==null){$enteredElement=null;mp.$adapter.destination.$pointerExited(ME_STUB)}}finally{mp.$adapter.$UP(id,e,ME_STUB)}}}}},false)},function $prototype(){this.$timer=null;this.$queue=[];this.$touchedAt=function(pageX,pageY,d){var lx=pageX-d,ty=pageY-d,rx=pageX+d,by=pageY+d;for(var k in $pointerPressedEvents){if(k!==LMOUSE&&k!==RMOUSE){var e=$pointerPressedEvents[k];if(e.pageX>=lx&&e.pageY>=ty&&e.pageX<=rx&&e.pageY<=by){return true}}}return false};this.$DRAG=function(id,e,stub){if($pointerPressedEvents.hasOwnProperty(id)){var mp=$pointerPressedEvents[id];if(mp.$adapter.element===this.element){if(this.$timer===null){stub.$fillWith(id,e);var dx=stub.pageX-mp.pageX,dy=stub.pageY-mp.pageY,d=mp.direction;mp.$adx+=dx;mp.$ady+=dy;mp.pageX=stub.pageX;mp.pageY=stub.pageY;if(Math.abs(mp.$adx)>4||Math.abs(mp.$ady)>4){var gamma=Math.atan2(mp.$ady,mp.$adx);if(gamma>-PI4){d=gamma<PI4?"right":gamma<PI4_3?"bottom":"left"}else{d=gamma>-PI4_3?"top":"left"}mp.direction=d;mp.$ady=mp.$adx=0;mp.gamma=gamma}stub.direction=mp.direction;stub.dx=dx;stub.dy=dy;try{if(mp.isDragged===false){this.destination.$pointerDragStarted(stub)}if(mp.isDragged===false||dx!==0||dy!==0){this.destination.$pointerDragged(stub)}}finally{mp.isDragged=true}}}else{mp.$adapter.$DRAG(id,e,stub)}}};this.$fireUP=function(id,e,mp,stub,destination){try{stub.$fillWith(id,e);stub.pressPageX=mp.pressPageX;stub.pressPageY=mp.pressPageY;if(mp.isDragged===true){destination.$pointerDragEnded(stub)}else{if(mp.pressPageY===stub.pageY&&mp.pressPageX===stub.pageX){if($lastPointerReleased!==null&&$lastPointerReleased.identifier===id&&(new Date).getTime()-$lastPointerReleased.time<=pkg.doubleClickDelta){destination.$pointerDoubleClicked(stub)}else{if(mp.group===stub.touchCounter){destination.$pointerClicked(stub)}}}}destination.$pointerReleased(stub)}finally{if(stub.touchCounter>0)stub.touchCounter--;$lastPointerReleased=$pointerPressedEvents.hasOwnProperty(id)?$pointerPressedEvents[id]:null;delete $pointerPressedEvents[id];$cleanDragFix()}};this.$UP=function(id,e,stub){if(this.$timer!==null){clearTimeout(this.$timer);this.$timer=null}var isPressedInQ=false;for(var i=0;i<this.$queue.length;i++){if(this.$queue[i].identifier===id){isPressedInQ=true;break}}this.$firePressedFromQ();if($pointerPressedEvents.hasOwnProperty(id)){var mp=$pointerPressedEvents[id];if(this.element!==mp.$adapter.element){$enteredElement=null;try{stub.$fillWith(id,e);mp.$adapter.destination.$pointerExited(stub);$enteredElement=this.element;this.destination.$pointerEntered(stub)}catch(ee){$enteredElement=this.element;throw ee}finally{mp.$adapter.$UP(id,e,stub)}}else{if(isPressedInQ){var $this=this;setTimeout(function(){$this.$fireUP(id,e,mp,stub,$this.destination)},50)}else{this.$fireUP(id,e,mp,stub,this.destination)}}}};this.$indexOfQ=function(id){for(var i=0;i<this.$queue.length;i++){if(id===this.$queue[i].identifier)return i}return-1};this.$firePressedFromQ=function(){if(this.$queue.length>0){var l=this.$queue.length;for(var i=0;i<l;i++){var t=this.$queue[i];try{$pointerPressedEvents[t.identifier]=t;t.stub.$fillWith(t.identifier,t);t.group=l;if(this.destination.$pointerPressed(t.stub)===true){if(t.stub.touchCounter>0){t.stub.touchCounter--}delete $pointerPressedEvents[t.identifier]}}catch(ex){if(t.stub.touchCounter>0){t.stub.touchCounter--}delete $pointerPressedEvents[t.identifier];zebkit.dumpError(ex)}}this.$queue.length=0}};this.$DOWN=function(id,e,stub){$cleanDragFix();var i=this.$indexOfQ(id);if(i>=0){this.$queue.splice(i,1)}if($pointerPressedEvents.hasOwnProperty(id)){var mp=$pointerPressedEvents[id];mp.$adapter.$UP(id,e,mp.stub)}stub.touchCounter++;try{var q={target:e.target,direction:null,identifier:id,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,time:(new Date).getTime(),$adapter:this,$adx:0,$ady:0,isDragged:false,stub:stub};q.pageX=q.pressPageX=Math.floor(e.pageX);q.pageY=q.pressPageY=Math.floor(e.pageY);this.$queue.push(q);if(this.$queue.length>0&&this.$timer===null){var $this=this;this.$timer=setTimeout(function(){$this.$timer=null;$this.$firePressedFromQ()},25)}}catch(ee){if(stub.touchCounter>0)stub.touchCounter--;throw ee}};this.$MMOVE=function(e){var pageX=Math.floor(e.pageX),pageY=Math.floor(e.pageY);if(this.$mousePageY!==pageY||this.$mousePageX!==pageX){this.$mousePageX=pageX;this.$mousePageY=pageY;if($pointerPressedEvents.hasOwnProperty(LMOUSE)||$pointerPressedEvents.hasOwnProperty(RMOUSE)){if($pointerPressedEvents.hasOwnProperty(LMOUSE)){this.$DRAG(LMOUSE,e,ME_STUB)}if($pointerPressedEvents.hasOwnProperty(RMOUSE)){this.$DRAG(RMOUSE,e,ME_STUB)}}else{ME_STUB.$fillWith("mouse",e);this.destination.$pointerMoved(ME_STUB)}}}},function(element,destination){if(element===null||typeof element==="undefined"){throw new Error("Invalid DOM element")}if(destination===null||typeof destination==="undefined"){throw new Error("Invalid destination")}this.destination=destination;this.element=element;var $this=this;element.onmousedown=function(e){if(e.button!==0&&e.button!==2||$this.$touchedAt(e.pageX,e.pageY,0)){e.preventDefault()}else{$this.$DOWN(e.button===0?LMOUSE:RMOUSE,e,ME_STUB);e.stopPropagation()}};element.onmouseup=function(e){if(e.button!==0&&e.button!==2){e.preventDefault()}else{var id=e.button===0?LMOUSE:RMOUSE;$this.$UP(id,e,ME_STUB);if(typeof e.stopPropagation!=="undefined"){e.stopPropagation()}}};element.onmouseover=function(e){if($this.$touchedAt(e.pageX,e.pageY,0)){e.preventDefault()}else{var id=e.button===0?LMOUSE:RMOUSE;if($pointerPressedEvents.hasOwnProperty(id)===false){$cleanDragFix();if($enteredElement===null||$enteredElement.contains(e.target)===false&&$enteredElement!==e.target){ME_STUB.$fillWith("mouse",e);$enteredElement=element;destination.$pointerEntered(ME_STUB)}}else{if(element===e.target||element.contains(e.target)){$cleanDragFix()}}e.stopPropagation()}};element.onmouseout=function(e){var id=e.button===0?LMOUSE:RMOUSE;if($pointerPressedEvents.hasOwnProperty(id)===false){if($enteredElement!==null&&(e.relatedTarget!=null&&e.relatedTarget!==element&&element.contains(e.relatedTarget)===false)){$enteredElement=null;ME_STUB.$fillWith("mouse",e);if(zebkit.web.$isInsideElement(element,e.pageX,e.pageY)===false){destination.$pointerExited(ME_STUB)}}}else{var mp=$pointerPressedEvents[id];if($tmpWinMouseMoveListener===null&&e.relatedTarget!=null&&element.contains(e.relatedTarget)===false){if(id===LMOUSE||id===RMOUSE){$tmpWinMouseMoveListener=function(ee){ee.stopPropagation();if($pointerPressedEvents.hasOwnProperty(LMOUSE)){$this.$DRAG(LMOUSE,{pageX:ee.pageX,pageY:ee.pageY,target:mp.target},ME_STUB)}if($pointerPressedEvents.hasOwnProperty(RMOUSE)){$this.$DRAG(RMOUSE,{pageX:ee.pageX,pageY:ee.pageY,target:mp.target},ME_STUB)}ee.preventDefault()};window.addEventListener("mousemove",$tmpWinMouseMoveListener,true)}}}$this.$mousePageX=$this.$mousePageY=-1;e.stopPropagation()};if("onpointerdown"in window||"onmspointerdown"in window){var names="onpointerdown"in window?["pointerdown","pointerup","pointermove","pointerenter","pointerleave"]:["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerEnter","MSPointerLeave"];element.addEventListener(names[0],function(e){var pt=e.pointerType;if(pt===4){pt="mouse"}else if(pt===2){pt="touch"}else if(pt===3){pt="pen"}if(pt!=="mouse"){POINTER_STUB.touch=e;POINTER_STUB.pointerType=pt;$this.$DOWN(e.pointerId,e,POINTER_STUB)}},false);element.addEventListener(names[1],function(e){var pt=e.pointerType;if(pt===4){pt="mouse"}else if(pt===2){pt="touch"}else if(pt===3){pt="pen"}if(pt!=="mouse"){POINTER_STUB.touch=e;POINTER_STUB.pointerType=pt;$this.$UP(e.pointerId,e,POINTER_STUB)}},false);element.addEventListener(names[2],function(e){var pt=e.pointerType;if(pt===4){pt="mouse"}else if(pt===2){pt="touch"}else if(pt===3){pt="pen"}if(pt!=="mouse"){POINTER_STUB.touch=e;POINTER_STUB.pointerType=pt;$this.$DRAG(e.pointerId,e,POINTER_STUB)}else{$this.$MMOVE(e)}},false)}else{element.addEventListener("touchstart",function(e){var allTouches=e.touches,newTouches=e.changedTouches;$this.$mousePageX=Math.floor(e.pageX);$this.$mousePageY=Math.floor(e.pageY);for(var i=0;i<newTouches.length;i++){var newTouch=newTouches[i];$this.$DOWN(newTouch.identifier,newTouch,TOUCH_STUB)}for(var k in $pointerPressedEvents){if(isIn(allTouches,k)===false){var tt=$pointerPressedEvents[k];if(tt.group!=null)tt.group.active=false;$this.$UP(tt.identifier,tt,TOUCH_STUB)}}e.preventDefault()},false);element.addEventListener("touchend",function(e){var t=e.changedTouches;for(var i=0;i<t.length;i++){var tt=t[i];$this.$UP(tt.identifier,tt,TOUCH_STUB)}e.preventDefault()},false);element.addEventListener("touchmove",function(e){var mt=e.changedTouches;for(var k in $this.touches){$pointerPressedEvents[k].dx=$pointerPressedEvents[k].dy=0}for(var i=0;i<mt.length;i++){var nmt=mt[i];if($pointerPressedEvents.hasOwnProperty(nmt.identifier)){var t=$pointerPressedEvents[nmt.identifier];if(t.pageX!==Math.floor(nmt.pageX)||t.pageY!==Math.floor(nmt.pageY)){if(t.isDragged||Math.abs(nmt.pageX-t.pageX)+Math.abs(nmt.pageY-t.pageY)>4){$this.$DRAG(nmt.identifier,nmt,TOUCH_STUB)}}}}e.preventDefault()},false);element.onmousemove=function(e){$this.$MMOVE(e);e.stopPropagation()}}element.oncontextmenu=function(e){e.preventDefault()}}]);pkg.MouseWheelSupport=Class([function(element,destination){var META=this.clazz.$META;for(var k in META){if(META[k].test()){var $wheelMeta=META[k],$clazz=this.clazz;element.addEventListener(k,function(e){var dy=typeof e[$wheelMeta.dy]!=="undefined"?e[$wheelMeta.dy]*$wheelMeta.dir:0,dx=typeof e[$wheelMeta.dx]!=="undefined"?e[$wheelMeta.dx]*$wheelMeta.dir:0;if(Math.abs(dy)<1){dy*=$clazz.dyZoom}if(Math.abs(dx)<1){dx*=$clazz.dxZoom}dy=Math.abs(dy)>$clazz.dyNorma?dy%$clazz.dyNorma:dy;dx=Math.abs(dx)>$clazz.dxNorma?dx%$clazz.dxNorma:dx;if(destination.$doScroll(Math.floor(dx),Math.floor(dy),"wheel")){e.preventDefault()}},false);break}}},function $clazz(){this.dxZoom=this.dyZoom=20;this.dxNorma=this.dyNorma=80;this.$META={wheel:{dy:"deltaY",dx:"deltaX",dir:1,test:function(){return"WheelEvent"in window}},mousewheel:{dy:"wheelDelta",dx:"wheelDeltaX",dir:-1,test:function(){return document.onmousewheel!==undefined}},DOMMouseScroll:{dy:"detail",dir:1,test:function(){return true}}}},function $prototype(){this.naturalDirection=true}]);var CODES={KeyA:{keyCode:65},KeyB:{keyCode:66},KeyC:{keyCode:67},KeyD:{keyCode:68},KeyE:{keyCode:69},KeyF:{keyCode:70},KeyG:{keyCode:71},KeyH:{keyCode:72},KeyI:{keyCode:73},KeyJ:{keyCode:74},KeyK:{keyCode:75},KeyL:{keyCode:76},KeyM:{keyCode:77},KeyN:{keyCode:78},KeyO:{keyCode:79},KeyP:{keyCode:80},KeyQ:{keyCode:81},KeyR:{keyCode:82},KeyS:{keyCode:83},KeyT:{keyCode:84},KeyU:{keyCode:85},KeyV:{keyCode:86},KeyW:{keyCode:87},KeyX:{keyCode:88},KeyY:{keyCode:89},KeyZ:{keyCode:90},Digit0:{keyCode:48},Digit1:{keyCode:49},Digit2:{keyCode:50},Digit3:{keyCode:51},Digit4:{keyCode:52},Digit5:{keyCode:53},Digit6:{keyCode:54},Digit7:{keyCode:55},Digit8:{keyCode:56},Digit9:{keyCode:57},F1:{keyCode:112,key:"F1",rp:false},F2:{keyCode:113,key:"F2",rp:false},F3:{keyCode:114,key:"F3",rp:false},F4:{keyCode:115,key:"F4",rp:false},F5:{keyCode:116,key:"F5",rp:false},F6:{keyCode:117,key:"F6",rp:false},F7:{keyCode:118,key:"F7",rp:false},F8:{keyCode:119,key:"F8",rp:false},F9:{keyCode:120,key:"F9",rp:false},F10:{keyCode:121,key:"F10",rp:false},F11:{keyCode:122,key:"F11",rp:false},F12:{keyCode:123,key:"F12",rp:false},F13:{keyCode:124,key:"F13",rp:false},F14:{keyCode:125,key:"F14",rp:false},F15:{keyCode:126,key:"F15",rp:false},Numpad0:{keyCode:96},Numpad1:{keyCode:97},Numpad2:{keyCode:98},Numpad3:{keyCode:99},Numpad4:{keyCode:100},Numpad5:{keyCode:101},Numpad6:{keyCode:102},Numpad7:{keyCode:103},Numpad8:{keyCode:104},Numpad9:{keyCode:105},NumpadDecimal:{keyCode:110,key:"Decimal"},NumpadSubtract:{keyCode:109,key:"Subtract"},NumpadDivide:{keyCode:111,key:"Divide"},NumpadMultiply:{keyCode:106,key:"Multiply"},NumpadAdd:{keyCode:107,key:"Add"},NumLock:{keyCode:zebkit.isFF?144:12,key:"NumLock",rp:false,ignore:true},Comma:{keyCode:188},Period:{keyCode:190},Semicolon:{keyCode:zebkit.isFF?59:186},Quote:{keyCode:222},BracketLeft:{keyCode:219},BracketRight:{keyCode:221},Backquote:{keyCode:192},Backslash:{keyCode:220},Minus:{keyCode:zebkit.isFF?173:189},Equal:{keyCode:zebkit.isFF?61:187},NumpadEnter:{map:"Enter"},Enter:{keyCode:13,key:"\n"},Slash:{keyCode:191},Space:{keyCode:32,pr:true,key:" "},Delete:{keyCode:46,key:"Delete"},IntlRo:{keyCode:zebkit.isFF?167:193,key:"IntlRo"},Backspace:{keyCode:8,pr:true,key:"Backspace"},Tab:{keyCode:9,pr:true,key:"\t"},ContextMenu:{keyCode:zebkit.isFF?93:0,pr:true,key:"ContextMenu"},ArrowLeft:{keyCode:37,pr:true,key:"ArrowLeft"},ArrowRight:{keyCode:39,pr:true,key:"ArrowRight"},ArrowUp:{keyCode:38,pr:true,key:"ArrowUp"},ArrowDown:{keyCode:40,pr:true,key:"ArrowDown"},PageUp:{keyCode:33,pr:true,key:"PaheUp"},PageDown:{keyCode:34,pr:true,key:"PageDown"},Home:{keyCode:36,pr:true,key:"Home"},End:{keyCode:35,pr:true,key:"End"},Escape:{keyCode:27,pr:true,key:"Escape",rp:false},CapsLock:{keyCode:20,key:"CapsLock",rp:false,ignore:true},Shift:{keyCode:16,pr:true,key:"Shift",rp:false},ShiftLeft:{map:"Shift"},ShiftRight:{map:"Shift"},Alt:{keyCode:18,pr:true,key:"Alt",rp:false},AltLeft:{map:"Alt"},AltRight:{map:"Alt"},Control:{keyCode:17,pr:true,key:"Control",rp:false},ControlRight:{map:"Control"},ControlLeft:{map:"Control"},MetaLeft:{keyCode:91,pr:true,key:"Meta",rp:false},MetaRight:{keyCode:93,pr:true,key:"Meta",rp:false},OSLeft:{keyCode:224,map:"MetaLeft"},OSRight:{keyCode:224,map:"MetaRight"}},CODES_MAP={};function $initializeCodesMap(){var k=null,code=null;for(k in CODES){code=CODES[k];if(typeof code.map!=="undefined"){if(typeof CODES[code.map]==="undefined"){throw new Error("Invalid mapping for code = '"+k+"'")}}else if(typeof code.keyCode==="undefined"){throw new Error("unknown keyCode for code = '"+k+"'")}}CODES_MAP={};for(k in CODES){code=CODES[k];if(typeof code.map!=="undefined"){if(typeof code.keyCode!=="undefined"){CODES_MAP[code.keyCode]=code.map}}else{CODES_MAP[code.keyCode]=k}}}pkg.$fetchKeyCode=function(e){var code=e.code;if(typeof code!=="undefined"){if(CODES.hasOwnProperty(code)&&CODES[code].hasOwnProperty("map")){code=CODES[code].map}}else{code=CODES_MAP[e.which||e.keyCode||0];if(typeof code==="undefined"){code=null}}return code};$initializeCodesMap();pkg.KeyEvent=Class(zebkit.ui.KeyEvent,[function $prototype(){this.$fillWith=function(e){var keyCode=e.which||e.keyCode||0;this.code=pkg.$fetchKeyCode(e);if(this.code==="Enter"||this.code==="Space"||this.code==="Tab"){this.key=CODES[this.code].key}else if(e.key!=null){this.key=e.key}else if(e.type==="keypress"){this.key=e.charCode>0&&keyCode>=32?String.fromCharCode(e.charCode):null}else{if(e.keyIdentifier!=null){if(e.keyIdentifier[0]==="U"&&e.keyIdentifier[1]==="+"){this.key=String.fromCharCode(parseInt(e.keyIdentifier.substring(2),16))}else{this.key=e.keyIdentifier}}else{if(this.code!=null&&CODES.hasOwnProperty(this.code)===true&&CODES[this.code].key!=null){this.key=CODES[this.code].key}else{this.key=e.charCode>0&&keyCode>=32?String.fromCharCode(e.charCode):null}}}this.altKey=e.altKey;this.shiftKey=e.shiftKey;this.ctrlKey=e.ctrlKey;this.metaKey=e.metaKey;return this}}]);var KEY_DOWN_EVENT=new pkg.KeyEvent,KEY_UP_EVENT=new pkg.KeyEvent,KEY_PRESS_EVENT=new pkg.KeyEvent,wasMetaLeftPressed=false,wasMetaRightPressed=false;pkg.KeyEventUnifier=Class([function(element,destination){element.onkeydown=function(e){var code=KEY_DOWN_EVENT.code,pts=KEY_DOWN_EVENT.timeStamp,ts=(new Date).getTime();var fc=pkg.$fetchKeyCode(e);if(CODES[fc]!=null&&CODES[fc].ignore===true){return}if(wasMetaLeftPressed===true&&(e.metaKey!==true||fc==="MetaLeft")){wasMetaLeftPressed=false;try{KEY_DOWN_EVENT.code="MetaLeft";KEY_DOWN_EVENT.repeat=0;KEY_DOWN_EVENT.metaKey=true;KEY_DOWN_EVENT.timeStamp=ts;destination.$keyReleased(KEY_DOWN_EVENT)}catch(ex){zebkit.dumpError(ex)}finally{KEY_DOWN_EVENT.code=null;code=null}}if(wasMetaRightPressed===true&&(e.metaKey!==true||fc==="MetaRight")){wasMetaRightPressed=false;try{KEY_DOWN_EVENT.code="MetaRight";KEY_DOWN_EVENT.repeat=0;KEY_DOWN_EVENT.metaKey=true;KEY_DOWN_EVENT.timeStamp=ts;destination.$keyReleased(KEY_DOWN_EVENT)}catch(ex){zebkit.dumpError(ex)}finally{KEY_DOWN_EVENT.code=null;code=null}}KEY_DOWN_EVENT.$fillWith(e);KEY_DOWN_EVENT.timeStamp=ts;if(KEY_DOWN_EVENT.code===code&&e.metaKey!==true&&ts-pts<1e3){KEY_DOWN_EVENT.repeat++}else{KEY_DOWN_EVENT.repeat=1}var key=CODES[KEY_DOWN_EVENT.code];if(key!=null&&key.pr===true&&e.target===element){e.preventDefault()}e.stopPropagation();try{destination.$keyPressed(KEY_DOWN_EVENT)}catch(ex){zebkit.dumpError(ex)}if(KEY_DOWN_EVENT.code==="MetaLeft"){wasMetaLeftPressed=true}else if(KEY_DOWN_EVENT.code==="MetaRight"){wasMetaRightPressed=true}else{if(e.metaKey===true){if(key==null||key.rp!==false){try{KEY_UP_EVENT.$fillWith(e);KEY_UP_EVENT.repeat=0;KEY_UP_EVENT.timeStamp=ts;destination.$keyReleased(KEY_UP_EVENT)}catch(ex){zebkit.dumpError(ex)}}}else if(KEY_DOWN_EVENT.code==="Space"||KEY_DOWN_EVENT.code==="Enter"||KEY_DOWN_EVENT.code==="Tab"){KEY_PRESS_EVENT.$fillWith(e);KEY_PRESS_EVENT.repeat=KEY_DOWN_EVENT.repeat;KEY_PRESS_EVENT.timeStamp=ts;destination.$keyTyped(KEY_PRESS_EVENT)}}};element.onkeyup=function(e){e.stopPropagation();KEY_UP_EVENT.$fillWith(e);if(CODES[KEY_UP_EVENT.code]!=null&&CODES[KEY_UP_EVENT.code].ignore===true){return}if(wasMetaLeftPressed===true&&KEY_UP_EVENT.code==="MetaLeft"){wasMetaLeftPressed=false}if(wasMetaRightPressed===true&&KEY_UP_EVENT.code==="MetaRight"){wasMetaRightPressed=false}var key=CODES[KEY_UP_EVENT.code];if(e.metaKey!==true||key!=null&&key.rp===false){KEY_UP_EVENT.repeat=0;KEY_UP_EVENT.timeStamp=(new Date).getTime();try{destination.$keyReleased(KEY_UP_EVENT)}finally{if(KEY_DOWN_EVENT.code===KEY_UP_EVENT.code){KEY_DOWN_EVENT.repeat=0}}}};element.onkeypress=function(e){e.stopPropagation();if(e.metaKey!==true){KEY_PRESS_EVENT.$fillWith(e);KEY_PRESS_EVENT.code=KEY_DOWN_EVENT.code;KEY_PRESS_EVENT.repeat=KEY_DOWN_EVENT.repeat;if(KEY_PRESS_EVENT.code!=="Space"&&KEY_PRESS_EVENT.code!=="Enter"&&KEY_PRESS_EVENT.code!=="Tab"&&KEY_PRESS_EVENT.code!=="ContextMenu"){KEY_PRESS_EVENT.timeStamp=(new Date).getTime();destination.$keyTyped(KEY_PRESS_EVENT)}}}}])});zebkit.package("ui.web",function(pkg,Class){"use strict";pkg.CursorManager=Class(zebkit.ui.CursorManager,[function $prototype(){this.$isFunc=false;this.source=this.target=null;this.pointerMoved=function(e){if(this.$isFunc===true){this.cursorType=this.source.getCursorType(this.source,e.x,e.y);this.target.style.cursor=this.cursorType===null?"default":this.cursorType}};this.pointerEntered=function(e){if(typeof e.source.cursorType!=="undefined"&&e.source.cursorType!==null||typeof e.source.getCursorType!=="undefined"){this.$isFunc=typeof e.source.getCursorType==="function";this.target=e.target;this.source=e.source;this.cursorType=this.$isFunc===true?this.source.getCursorType(this.source,e.x,e.y):this.source.cursorType;this.target.style.cursor=this.cursorType===null?"default":this.cursorType}};this.pointerExited=function(e){if(this.source!==null){this.cursorType="default";if(this.target.style.cursor!=this.cursorType){this.target.style.cursor=this.cursorType}this.source=this.target=null;this.$isFunc=false}};this.pointerDragged=function(e){if(this.$isFunc===true){this.cursorType=this.source.getCursorType(this.source,e.x,e.y);this.target.style.cursor=this.cursorType===null?"default":this.cursorType}}}]);pkg.cd("..").cursorManager=new pkg.CursorManager;var ui=pkg.cd("..");pkg.HtmlElement=Class(ui.Panel,[function(e){if(arguments.length===0){e="div"}if(zebkit.isString(e)){e=document.createElement(e);e.style.border="0px solid transparent";e.style.fontSize=this.clazz.$bodyFontSize}e.style.margin=e.style.padding="0px";this.element=e;this.element.style.position="relative";if(e.parentNode!==null&&e.parentNode.getAttribute("data-zebcont")!==null){throw new Error("DOM element '"+e+"' already has container")}this.$container=document.createElement("div");this.$container.style.display="inline-block";this.$container.style.overflow="hidden";this.$container.style["z-index"]="0";this.$container.style.left=this.$container.style.top="0px";this.$container.visibility="hidden";this.$container.style.fontSize=this.$container.style.padding=this.$container.style.padding="0px";this.$container.setAttribute("id","container-"+this.toString());this.$container.setAttribute("data-zebcont","true");this.$container.style["pointer-events"]="auto";if(e.parentNode!==null){e.parentNode.replaceChild(this.$container,e);this.$container.appendChild(e)}else{this.$container.style.position="absolute";this.$container.appendChild(e)}if(e.getAttribute("id")===null){e.setAttribute("id",this.toString())}this.$super();if(typeof this.$initListeners!=="undefined"){this.$initListeners()}var fe=this.$getElementRootFocus();if(fe!==null){var $this=this;zebkit.web.$focusin(fe,function(e){if($this.hasFocus()===false){$this.requestFocus()}},false);zebkit.web.$focusout(fe,function(e){if($this.hasFocus()){ui.focusManager.requestFocus(null)}},false)}},function $clazz(){this.CLASS_NAME=null;this.$bodyFontSize=window.getComputedStyle(document.body,null).getPropertyValue("font-size")},function $prototype(){this.$blockElement=this.$container=this.$canvas=null;this.ePsW=this.ePsH=0;this.isDOMElement=true;this.$sizeAdjusted=false;this.wrap=function(c){this.setLayout(new zebkit.layout.StackLayout);this.add(c);return this};this.setFont=function(f){this.setStyle("font",f.toString());this.vrp();return this};this.setColor=function(c){this.setStyle("color",c.toString());return this};this.setStyles=function(styles){for(var k in styles){this.$setStyle(this.element,k,styles[k])}this.vrp();return this};this.setStyle=function(name,value){this.$setStyle(this.element,name,value);this.vrp();return this};this.$setStyle=function(element,name,value){name=name.trim();var i=name.indexOf(":");if(i>0){if(zebkit[name.substring(0,i)]!==true){return}name=name.substring(i+1)}element.style[name]=value;return this};this.setAttribute=function(name,value){this.element.setAttribute(name,value);return this};this.setAttributes=function(attrs){for(var name in attrs){this.element.setAttribute(name,attrs[name])}return this};this.paint=function(g){if(this.$container.style.visibility==="hidden"){this.$container.style.visibility="visible"}if(this.$sizeAdjusted!==true){this.setSize(this.width,this.height)}};this.calcPreferredSize=function(target){return{width:this.ePsW,height:this.ePsH}};var $store=["paddingTop","paddingLeft","paddingBottom","paddingRight","border","borderStyle","borderWidth","borderTopStyle","borderTopWidth","borderBottomStyle","borderBottomWidth","borderLeftStyle","borderLeftWidth","borderRightStyle","visibility","borderRightWidth","width","height","position"];this.recalc=function(){if(this.layout===this){var e=this.element,vars={},domParent=null,k=null,b=!zebkit.web.$contains(this.$container);if(b){domParent=this.$container.parentNode;document.body.appendChild(this.$container)}for(var i=0;i<$store.length;i++){k=$store[i];vars[k]=e.style[k]}this.$container.style.visibility="hidden";e.style.padding="0px";e.style.border="none";e.style.position=e.style.height=e.style.width="auto";this.ePsW=e.offsetWidth;this.ePsH=e.offsetHeight;for(k in vars){var v=vars[k];if(v!==null)e.style[k]=v}if(b){document.body.removeChild(this.$container);if(domParent!==null)domParent.appendChild(this.$container)}}};this.setContent=function(content){this.element.innerHTML=content;this.vrp();return this};this.$getElementRootFocus=function(){return null};this.canHaveFocus=function(){return this.$getElementRootFocus()!==null};this.$focus=function(){if(this.canHaveFocus()&&document.activeElement!==this.$getElementRootFocus()){this.$getElementRootFocus().focus()}};this.$blur=function(){if(this.canHaveFocus()&&document.activeElement===this.$getElementRootFocus()){this.$getElementRootFocus().blur()}}},function toFront(){this.$super();var pnode=this.$container.parentNode;if(pnode!==null&&pnode.lastChild!==this.$container){pnode.removeChild(this.$container);pnode.appendChild(this.$container)}},function toBack(){this.$super();var pnode=this.$container.parentNode;if(pnode!==null&&pnode.firstChild!==this.$container){pnode.removeChild(this.$container);pnode.insertBefore(this.$container,pnode.firstChild)}},function setEnabled(b){if(this.isEnabled!==b){if(b){this.$container.removeChild(this.$blockElement)}else{if(this.$blockElement===null){this.$blockElement=zebkit.web.$createBlockedElement()}this.$container.appendChild(this.$blockElement)}}return this.$super(b)},function setSize(w,h){if(zebkit.web.$contains(this.$container)){var prevVisibility=this.$container.style.visibility;this.$container.style.visibility="hidden";this.element.style.width=""+w+"px";this.element.style.height=""+h+"px";var ww=2*w-this.element.offsetWidth,hh=2*h-this.element.offsetHeight;if(ww!==w||hh!==h){this.element.style.width=""+ww+"px";this.element.style.height=""+hh+"px"}this.$sizeAdjusted=true;this.$container.style.visibility=prevVisibility}else{this.$sizeAdjusted=false}return this.$super(w,h)},function setPadding(t,l,b,r){if(arguments.length===1){l=b=r=t}this.setStyles({paddingTop:""+t+"px",paddingLeft:""+l+"px",paddingRight:""+r+"px",paddingBottom:""+b+"px"});if(this.top!==t||this.left!==l||this.right!==r||this.bottom!==b){this.$sizeAdjusted=false}this.$super.apply(this,arguments);return this},function setBorder(b){b=ui.$view(b);if(b===null){this.setStyle("border","none")}else{this.setStyles({border:"0px solid transparent",borderTopStyle:"solid",borderTopColor:"transparent",borderTopWidth:""+b.getTop()+"px",borderLeftStyle:"solid",borderLeftColor:"transparent",borderLeftWidth:""+b.getLeft()+"px",borderBottomStyle:"solid",borderBottomColor:"transparent",borderBottomWidth:""+b.getBottom()+"px",borderRightStyle:"solid",borderRightColor:"transparent",borderRightWidth:""+b.getRight()+"px"})}if(this.border!=b){this.$sizeAdjusted=false}return this.$super(b)},function validate(){if(this.$canvas===null&&this.parent!==null){this.$canvas=this.getCanvas()}this.$super()},function focused(){this.$super();if(this.hasFocus()){this.$focus()}else{this.$blur()}}]).hashable();pkg.HtmlElementMan=Class(ui.Manager,[function $prototype(){function $isInInvisibleState(c){if(c.isVisible===false||c.$container.parentNode===null||c.width<=0||c.height<=0||c.parent===null||zebkit.web.$contains(c.$container)===false){return true}var p=c.parent;while(p!==null&&p.isVisible===true&&p.width>0&&p.height>0){p=p.parent}return p!==null||ui.$cvp(c)===null}function $resolveDOMParent(c){var parentElement=null;for(var p=c.parent;p!==null;p=p.parent){if(p.isDOMElement===true){parentElement=p.$container;break}}if(parentElement!==null&&c.$container.parentNode===null){parentElement.appendChild(c.$container);$adjustLocation(c)}else{if(parentElement!==null&&c.$container.parentNode!==null&&c.$container.parentNode!==parentElement){throw new Error("DOM parent inconsistent state ")}}}function $adjustLocation(c){if(c.$container.parentNode!==null){var prevVisibility=null;if(c.$container.style.visibility!=="hidden"){prevVisibility=c.$container.style.visibility;c.$container.style.visibility="hidden"}var p=c,xx=c.x,yy=c.y;while((p=p.parent)!==null&&p.isDOMElement!==true){xx+=p.x;yy+=p.y}c.$container.style.left=""+xx+"px";c.$container.style.top=""+yy+"px";if(prevVisibility!==null){c.$container.style.visibility=prevVisibility}}}function $domElements(c,callback){for(var k in c.$domKids){var e=c.$domKids[k];if(e.isDOMElement===true){callback.call(this,e)}else if(typeof e.$domKids!=="undefined"){$domElements(e,callback)}}}this.compShown=function(e){var c=e.source;if(c.isDOMElement===true){c.$container.style.visibility=c.isVisible===false||$isInInvisibleState(c)?"hidden":"visible"}else if(typeof c.$domKids!=="undefined"){$domElements(c,function(e){e.$container.style.visibility=e.isVisible===false||$isInInvisibleState(e)?"hidden":"visible"})}};this.compMoved=function(e){var c=e.source;if(c.isDOMElement===true){if(c.$isRootCanvas!==true){var dx=e.prevX-c.x,dy=e.prevY-c.y,cont=c.$container;cont.style.left=(parseInt(cont.style.left,10)||0)-dx+"px";cont.style.top=(parseInt(cont.style.top,10)||0)-dy+"px"}}else if(typeof c.$domKids!=="undefined"){$domElements(c,function(e){$adjustLocation(e)})}};function detachFromParent(p,c){if(p.isDOMElement!==true&&typeof p.$domKids!=="undefined"){delete p.$domKids[c.$hash$];if(isLeaf(p)){if(p.parent!==null&&p.parent.isDOMElement!==true){detachFromParent(p.parent,p)}delete p.$domKids}}}function isLeaf(c){if(typeof c.$domKids!=="undefined"){for(var k in c.$domKids){if(c.$domKids.hasOwnProperty(k))return false}}return true}function removeDOMChildren(c){if(c.isDOMElement!==true&&typeof c.$domKids!=="undefined"){for(var k in c.$domKids){if(c.$domKids.hasOwnProperty(k)){var kid=c.$domKids[k];if(kid.isDOMElement===true){kid.$container.parentNode.removeChild(kid.$container);kid.$container.parentNode=null}else{removeDOMChildren(kid)}}}delete c.$domKids}}this.compRemoved=function(e){var c=e.kid;if(c.isDOMElement===true){c.$container.parentNode.removeChild(c.$container);c.$container.parentNode=null}else{removeDOMChildren(c)}detachFromParent(e.source,c)};this.compAdded=function(e){var p=e.source,c=e.kid;if(c.isDOMElement===true){$resolveDOMParent(c)}else{if(typeof c.$domKids!=="undefined"){$domElements(c,function(e){$resolveDOMParent(e)})}else{return}}if(p.isDOMElement!==true){while(p!==null&&p.isDOMElement!==true){if(typeof p.$domKids==="undefined"){p.$domKids={};p.$domKids[c.$genHash()]=c;c=p;p=p.parent}else{var id=c.$genHash();if(p.$domKids.hasOwnProperty(id)){throw new Error("Inconsistent state for "+c+", "+c.clazz.$name)}p.$domKids[id]=c;break}}}}}]);pkg.$htmlElementMan=new pkg.HtmlElementMan;if(typeof zebkit.ui.FocusManager!=="undefined"){zebkit.ui.FocusManager.extend([function requestFocus(c){this.$super(c);var canvas=null;if(c!==null&&c!==this.focusOwner&&(c.isDOMElement!==true||c.$getElementRootFocus()===null)){canvas=c.getCanvas();if(canvas!==null&&document.activeElement!==canvas.element){canvas.element.focus()}if(this.focusOwner!==null&&this.focusOwner.getCanvas()!==canvas){this.requestFocus(null)}}else if(this.focusOwner!==null&&this.focusOwner.isDOMElement!==true){canvas=this.focusOwner.getCanvas();if(canvas!==null&&document.activeElement!==canvas.element){canvas.element.focus()}}},function pointerPressed(e){if(e.isAction()){if(document.activeElement!==e.source.getCanvas().element){var $this=this;setTimeout(function(){$this.requestFocus(e.source)})}else{this.$$super(e)}}}])}var ui=pkg.cd("..");pkg.HtmlCanvas=Class(pkg.HtmlElement,[function(e){if(arguments.length>0&&e!==null&&e.tagName!=="CANVAS"){throw new Error("Invalid element '"+e+"'")}this.$da={x:0,y:0,width:-1,height:0};this.$super(arguments.length===0||e===null?"canvas":e);this.$container.style["pointer-events"]="none";if(arguments.length===0||e===null){this.element.onselectstart=function(){return false}}},function $clazz(){this.$ContextMethods={reset:function(w,h){this.$curState=0;var s=this.$states[0];s.srot=s.rotateVal=s.x=s.y=s.width=s.height=s.dx=s.dy=0;s.crot=s.sx=s.sy=1;s.width=w;s.height=h;this.setFont(ui.font);this.setColor("white")},$init:function(){this.$states=Array(70);for(var i=0;i<this.$states.length;i++){var s={};s.srot=s.rotateVal=s.x=s.y=s.width=s.height=s.dx=s.dy=0;s.crot=s.sx=s.sy=1;this.$states[i]=s}},translate:function(dx,dy){if(dx!==0||dy!==0){var c=this.$states[this.$curState];c.x-=dx;c.y-=dy;c.dx+=dx;c.dy+=dy;this.$translate(dx,dy)}},rotate:function(v){var c=this.$states[this.$curState];c.rotateVal+=v;c.srot=Math.sin(c.rotateVal);c.crot=Math.cos(c.rotateVal);this.$rotate(v)},scale:function(sx,sy){var c=this.$states[this.$curState];c.sx=c.sx*sx;c.sy=c.sy*sy;this.$scale(sx,sy)},save:function(){this.$curState++;var c=this.$states[this.$curState],cc=this.$states[this.$curState-1];c.x=cc.x;c.y=cc.y;c.width=cc.width;c.height=cc.height;c.dx=cc.dx;c.dy=cc.dy;c.sx=cc.sx;c.sy=cc.sy;c.srot=cc.srot;c.crot=cc.crot;c.rotateVal=cc.rotateVal;this.$save();return this.$curState-1},restoreAll:function(){while(this.$curState>0){this.restore()}},restore:function(){if(this.$curState===0){throw new Error("Context restore history is empty")}this.$curState--;this.$restore();return this.$curState},clipRect:function(x,y,w,h){var c=this.$states[this.$curState];if(c.x!==x||y!==c.y||w!==c.width||h!==c.height){var xx=c.x,yy=c.y,ww=c.width,hh=c.height,xw=x+w,xxww=xx+ww,yh=y+h,yyhh=yy+hh;c.x=x>xx?x:xx;c.width=(xw<xxww?xw:xxww)-c.x;c.y=y>yy?y:yy;c.height=(yh<yyhh?yh:yyhh)-c.y;if(c.x!==xx||yy!==c.y||ww!==c.width||hh!==c.height){this.beginPath();this.rect(x,y,w,h);this.closePath();this.clip()}}}}},function $prototype(clazz){this.$rotateValue=0;this.$scaleX=1;this.$scaleY=1;this.$context=null;this.setBorder=function(b){return ui.Panel.prototype.setBorder.call(this,b)};this.rotate=function(r){this.$rotateValue+=r;if(this.$context!==null){this.$context.rotate(r)}this.vrp();return this};this.scale=function(sx,sy){if(this.$context!==null)this.$context.scale(sx,sy);this.$scaleX=this.$scaleX*sx;this.$scaleY=this.$scaleY*sy;this.vrp();return this};this.clearTransformations=function(){this.$scaleX=1;this.$scaleY=1;this.$rotateValue=0;if(this.$context!==null){this.$context=zebkit.web.$canvas(this.element,this.width,this.height,true);this.$context.reset(this.width,this.height)}this.vrp();return this};this.setPadding=function(){return ui.Panel.prototype.setPadding.apply(this,arguments)};this.setSize=function(w,h){if(this.width!==w||h!==this.height){var pw=this.width,ph=this.height;this.$context=zebkit.web.$canvas(this.element,w,h);if(typeof this.$context.$states==="undefined"){zebkit.web.$extendContext(this.$context,clazz.$ContextMethods)}this.$context.reset(w,h);if(this.$rotateValue!==0){this.$context.rotate(this.$rotateValue)}if(this.$scaleX!==1||this.$scaleY!==1){this.$context.scale(this.$scaleX,this.$scaleY)}this.width=w;this.height=h;if(this.$container.style.visibility==="hidden"){if(this.isVisible){this.$container.style.visibility="visible"}}this.invalidate();this.validate();this.repaint();if(w!==pw||h!==ph){this.resized(pw,ph)}}return this}}]);pkg.HtmlWinCanvas=Class(pkg.HtmlCanvas,[function $prototype(){this.winOpened=function(e){this.target.winOpened(e)};this.winActivated=function(e){this.target.winActivated(e)}},function(target){this.$super();this.target=arguments.length===0?new ui.Window:target;var $this=this;target.getWinContainer=function(){return $this};this.setLayout(new zebkit.layout.BorderLayout);this.add("center",target)}]);pkg.HtmlFocusableElement=Class(pkg.HtmlElement,[function $prototype(){this.$getElementRootFocus=function(){return this.element}}]);pkg.HtmlTextInput=Class(pkg.HtmlFocusableElement,[function(text,e){if(text===null)text="";this.$super(e);this.setAttribute("tabindex",0);this.setValue(text)},function $prototype(){this.cursorType=ui.Cursor.TEXT;this.getValue=function(){return this.element.value.toString()};this.setValue=function(t){if(this.element.value!==t){this.element.value=t;this.vrp()}return this}}]);pkg.HtmlTextField=Class(pkg.HtmlTextInput,[function(text){this.$super(text,"input");this.element.setAttribute("type","text")}]);pkg.HtmlTextArea=Class(pkg.HtmlTextInput,[function(text){this.$super(text,"textarea");this.element.setAttribute("rows",10)},function setResizeable(b){this.setStyle("resize",b===false?"none":"both");return this}]);pkg.HtmlLink=Class(pkg.HtmlElement,[function(text,href){this.$super("a");this.setContent(text);this.setAttribute("href",arguments.length<2?"#":href);this._=new zebkit.util.Listeners;var $this=this;this.element.onclick=function(e){$this._.fired($this)}}]);var ui=pkg.cd("..");pkg.HtmlLayer=Class(pkg.HtmlCanvas,[]);pkg.RootLayer=Class(pkg.HtmlLayer,ui.RootLayerMix,[function $clazz(){this.layout=new zebkit.layout.RasterLayout}]);pkg.WinLayer=Class(pkg.HtmlLayer,ui.WinLayerMix,[function(){this.$super();this.element.style["z-index"]=1e4},function $clazz(){this.layout=new zebkit.layout.RasterLayout}]);pkg.PopupLayer=Class(pkg.HtmlLayer,ui.PopupLayerMix,[function $clazz(){this.layout=new ui.PopupLayerLayout([function doLayout(target){if(target.kids.length>0){if(target.$container.style["pointer-events"]!=="auto"){target.$container.style["pointer-events"]="auto"}}else if(target.$container.style["pointer-events"]!=="none"){target.$container.style["pointer-events"]="none"}this.$super(target)}])}]);pkg.CanvasEvent=Class(zebkit.util.Event,[]);var ui=pkg.cd(".."),COMP_EVENT=new ui.CompEvent;pkg.$pointerOwner={};pkg.$pointerPressedOwner={};ui.zCanvas=pkg.zCanvas=Class(pkg.HtmlCanvas,[function(element,w,h){if(arguments.length===0){w=400;h=400;element=null}else if(arguments.length===1){w=-1;h=-1}else if(arguments.length===2){h=w;w=element;element=null}if(element!==null&&zebkit.isString(element)){var id=element;element=document.getElementById(id);if(element===null){throw new Error("Canvas id='"+id+"' element cannot be found")}}this.$layers={};this.$super(element);this.$container.style.position="relative";this.$container.style["pointer-events"]="auto";if(this.$container.parentNode===null){document.body.appendChild(this.$container)}if(this.element.getAttribute("tabindex")===null){this.element.setAttribute("tabindex","1")}if(w<0)w=this.element.offsetWidth;if(h<0)h=this.element.offsetHeight;this.clazz.$canvases.push(this);this.setSize(w,h);var cvis=this.element.style.visibility==="hidden"?false:true;if(this.isVisible!==cvis){this.setVisible(cvis)}if(typeof this.canvasInitialized!=="undefined"){this.canvasInitialized()}var $this=this;zebkit.web.$focusin(this.$container,function(e){},true)},function $clazz(){this.CLASS_NAME="zebcanvas";this.$canvases=[];this.$getCanvasByElement=function(e){for(var i=0;i<this.$canvases.length;i++){if(this.$canvases[i]===e){return this.$canvases[i]}}return null}},function $prototype(){this.$isRootCanvas=true;this.isSizeFull=false;this.offx=this.offy=0;this.$toElementX=function(pageX,pageY){pageX-=this.offx;pageY-=this.offy;var c=this.$context.$states[this.$context.$curState];return(c.sx!==1||c.sy!==1||c.rotateVal!==0?Math.round((c.crot*pageX+pageY*c.srot)/c.sx):pageX)-c.dx};this.$toElementY=function(pageX,pageY){pageX-=this.offx;pageY-=this.offy;var c=this.$context.$states[this.$context.$curState];return(c.sx!==1||c.sy!==1||c.rotateVal!==0?Math.round((pageY*c.crot-c.srot*pageX)/c.sy):pageY)-c.dy};this.load=function(jsonPath){return this.root.load(jsonPath)};this.$doScroll=function(dx,dy,src){if(src==="wheel"&&pkg.$pointerOwner.mouse!=null){var owner=pkg.$pointerOwner.mouse;while(owner!==null&&typeof owner.doScroll==="undefined"){owner=owner.parent}if(owner!==null){return owner.doScroll(dx,dy,src)}}return false};this.$keyTyped=function(e){if(ui.focusManager.focusOwner!==null){e.source=ui.focusManager.focusOwner;return ui.events.fire("keyTyped",e)}else{return false}};this.$keyPressed=function(e){for(var i=this.kids.length-1;i>=0;i--){var l=this.kids[i];if(typeof l.layerKeyPressed!=="undefined"&&l.layerKeyPressed(e)===true){return true}}if(ui.focusManager.focusOwner!==null){e.source=ui.focusManager.focusOwner;return ui.events.fire("keyPressed",e)}else{e.source=this;return ui.events.fire("keyPressed",e)}};this.$keyReleased=function(e){if(ui.focusManager.focusOwner!==null){e.source=ui.focusManager.focusOwner;return ui.events.fire("keyReleased",e)}else{return false}};this.$pointerEntered=function(e){this.recalcOffset();var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),d=this.getComponentAt(x,y),o=pkg.$pointerOwner[e.identifier];if(d!==o){if(o!=null){pkg.$pointerOwner[e.identifier]=null;ui.events.fire("pointerExited",e.update(o,x,y))}if(d!==null&&d.isEnabled===true){pkg.$pointerOwner[e.identifier]=d;ui.events.fire("pointerEntered",e.update(d,x,y))}}};this.$pointerExited=function(e){var o=pkg.$pointerOwner[e.identifier];if(o!=null){pkg.$pointerOwner[e.identifier]=null;return ui.events.fire("pointerExited",e.update(o,this.$toElementX(e.pageX,e.pageY),this.$toElementY(e.pageX,e.pageY)))}};this.$pointerMoved=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),d=this.getComponentAt(x,y),o=pkg.$pointerOwner[e.identifier],b=false;if(o!=null){if(d!==o){pkg.$pointerOwner[e.identifier]=null;b=ui.events.fire("pointerExited",e.update(o,x,y));if(d!=null&&d.isEnabled===true){pkg.$pointerOwner[e.identifier]=d;b=ui.events.fire("pointerEntered",e.update(d,x,y))||b}}else{if(d!==null&&d.isEnabled===true){b=ui.events.fire("pointerMoved",e.update(d,x,y))}}}else{if(d!==null&&d.isEnabled===true){pkg.$pointerOwner[e.identifier]=d;b=ui.events.fire("pointerEntered",e.update(d,x,y))}}return b};this.$pointerDragStarted=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),d=this.getComponentAt(x,y);if(d!==null&&d.isEnabled===true){return ui.events.fire("pointerDragStarted",e.update(d,x,y))}return false};this.$pointerDragged=function(e){if(pkg.$pointerOwner[e.identifier]!=null){return ui.events.fire("pointerDragged",e.update(pkg.$pointerOwner[e.identifier],this.$toElementX(e.pageX,e.pageY),this.$toElementY(e.pageX,e.pageY)))}return false};this.$pointerDragEnded=function(e){if(pkg.$pointerOwner[e.identifier]!=null){return ui.events.fire("pointerDragEnded",e.update(pkg.$pointerOwner[e.identifier],this.$toElementX(e.pageX,e.pageY),this.$toElementY(e.pageX,e.pageY)))}return false};this.$isBlockedByLayer=function(id,method,e){for(var i=this.kids.length-1;i>=0;i--){var layer=this.kids[i];if(typeof layer[method]!=="undefined"){e.id=id;if(layer[method](e)===true){return true}}}return false};this.$pointerClicked=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),d=this.getComponentAt(x,y);if(d===null){this.recalcOffset();x=this.$toElementX(e.pageX,e.pageY);y=this.$toElementY(e.pageX,e.pageY);d=this.getComponentAt(x,y)}if(d!==null){e=e.update(d,x,y);if(this.$isBlockedByLayer("pointerClicked","layerPointerClicked",e)){return true}else{return ui.events.fire("pointerClicked",e)}}else{return false}};this.$pointerDoubleClicked=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),d=this.getComponentAt(x,y);return d!==null?ui.events.fire("pointerDoubleClicked",e.update(d,x,y)):false};this.$pointerReleased=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),pp=pkg.$pointerPressedOwner[e.identifier];if(pp!=null){try{e=e.update(pp,x,y);if(this.$isBlockedByLayer("pointerReleased","layerPointerReleased",e)!==true){ui.events.fire("pointerReleased",e)}}finally{delete pkg.$pointerPressedOwner[e.identifier]}}if(e.pointerType==="mouse"&&(e.pressPageX!==e.pageX||e.pressPageY!==e.pageY)){var nd=this.getComponentAt(x,y),po=this.getComponentAt(this.$toElementX(e.pressPageX,e.pressPageY),this.$toElementY(e.pressPageX,e.pressPageY));if(nd!==po){if(po!==null){pkg.$pointerOwner[e.identifier]=null;ui.events.fire("pointerExited",e.update(po,x,y))}if(nd!==null&&nd.isEnabled===true){pkg.$pointerOwner[e.identifier]=nd;ui.events.fire("pointerEntered",e.update(nd,x,y))}}}};this.$pointerPressed=function(e){var x=this.$toElementX(e.pageX,e.pageY),y=this.$toElementY(e.pageX,e.pageY),pp=pkg.$pointerPressedOwner[e.identifier];if(pp!=null){try{ui.events.fire("pointerReleased",e.update(pp,x,y))}finally{delete pkg.$pointerPressedOwner[e.identifier]}}e.source=null;e.x=x;e.y=y;if(this.$isBlockedByLayer("pointerPressed","layerPointerPressed",e)){return true}var d=this.getComponentAt(x,y);if(d!==null&&d.isEnabled===true){if(pkg.$pointerOwner[e.identifier]!==d){pkg.$pointerOwner[e.identifier]=d;ui.events.fire("pointerEntered",e.update(d,x,y))}pkg.$pointerPressedOwner[e.identifier]=d;if(ui.events.fire("pointerPressed",e.update(d,x,y))===true){delete pkg.$pointerPressedOwner[e.identifier];return true}}return false};this.getComponentAt=function(x,y){for(var i=this.kids.length;--i>=0;){var c=this.kids[i].getComponentAt(x,y);if(c!==null){var p=c;while((p=p.parent)!==null){if(typeof p.catchInput!=="undefined"&&(p.catchInput===true||p.catchInput!==false&&p.catchInput(c))){c=p}}return c}}return null};this.recalcOffset=function(){var poffx=this.offx,poffy=this.offy,ba=this.$container.getBoundingClientRect();this.offx=Math.round(ba.left)+zebkit.web.$measure(this.$container,"border-left-width")+zebkit.web.$measure(this.$container,"padding-left")+window.pageXOffset;this.offy=Math.round(ba.top)+zebkit.web.$measure(this.$container,"padding-top")+zebkit.web.$measure(this.$container,"border-top-width")+window.pageYOffset;if(this.offx!==poffx||this.offy!==poffy){this.relocated(this,poffx,poffy)}};this.getLayer=function(id){return this.$layers[id]};this.relocated=function(px,py){COMP_EVENT.source=this;COMP_EVENT.px=px;COMP_EVENT.py=py;ui.events.fire("compMoved",COMP_EVENT)};this.resized=function(pw,ph){COMP_EVENT.source=this;COMP_EVENT.prevWidth=pw;COMP_EVENT.prevHeight=ph;ui.events.fire("compSized",COMP_EVENT);this.repaint()};this.$initListeners=function(){new zebkit.web.PointerEventUnifier(this.$container,this);new zebkit.web.KeyEventUnifier(this.element,this);new zebkit.web.MouseWheelSupport(this.$container,this)};this.setSizeFull=function(b){if(this.isSizeFull!==true){if(zebkit.web.$contains(this.$container)!==true){throw new Error("zCanvas is not a part of DOM tree")}this.isSizeFull=true;this.setLocation(0,0);document.body.style["font-size"]="0px";var ws=zebkit.web.$viewPortSize();this.setSize(ws.width,ws.height)}}},function setSize(w,h){if(this.width!==w||h!==this.height){this.$super(w,h);pkg.$elBoundsUpdated()}return this},function setVisible(b){var prev=this.isVisible;this.$super(b);if(b!==prev){this.repaint()}return this},function vrp(){this.$super();if(zebkit.web.$contains(this.element)&&this.element.style.visibility==="visible"){this.repaint()}},function kidAdded(i,constr,c){if(this.$layers.hasOwnProperty(c.id)){throw new Error("Layer '"+c.id+"' already exist")}this.$layers[c.id]=c;if(c.id==="root")this.root=c;this.$super(i,constr,c)},function kidRemoved(i,c){delete this.$layers[c.id];if(c.id==="root")this.root=null;this.$super(i,c)}]);pkg.$elBoundsUpdated=function(){for(var i=pkg.zCanvas.$canvases.length-1;i>=0;i--){var c=pkg.zCanvas.$canvases[i];if(c.isFullSize===true){var ws=zebkit.web.$viewPortSize();c.setSize(ws.width+window.pageXOffset,ws.height+window.pageYOffset)}c.recalcOffset()}};var $wrt=null,$winSizeUpdated=false,$wpw=-1,$wph=-1;window.addEventListener("resize",function(e){var ws=zebkit.web.$viewPortSize();if($wpw!==window.innerWidth||$wph!==window.innerHeight){$wpw=window.innerWidth;$wph=window.innerHeight;if($wrt!==null){$winSizeUpdated=true}else{$wrt=zebkit.util.tasksSet.run(function(){if($winSizeUpdated===false){pkg.$elBoundsUpdated();this.shutdown();$wrt=null}$winSizeUpdated=false},200,150)}}},false);window.onbeforeunload=function(e){var msgs=[];for(var i=pkg.zCanvas.$canvases.length-1;i>=0;i--){if(typeof pkg.zCanvas.$canvases[i].saveBeforeLeave!=="undefined"){var m=pkg.zCanvas.$canvases[i].saveBeforeLeave();if(m!=null){msgs.push(m)}}}if(msgs.length>0){var message=msgs.join(" ");if(typeof e==="undefined"){e=window.event}if(e){e.returnValue=message}return message}};document.addEventListener("DOMNodeInserted",function(e){pkg.$elBoundsUpdated()},false);document.addEventListener("DOMNodeRemoved",function(e){for(var i=pkg.zCanvas.$canvases.length-1;i>=0;i--){var canvas=pkg.zCanvas.$canvases[i];if(zebkit.web.$contains(canvas.element)!==true){pkg.zCanvas.$canvases.splice(i,1);if(typeof canvas.saveBeforeLeave!=="undefined"){canvas.saveBeforeLeave()}}}pkg.$elBoundsUpdated()},false);var ui=pkg.cd("..");pkg.VideoPan=Class(ui.Panel,[function(src){var $this=this;this.video=document.createElement("video");this.source=document.createElement("source");this.source.setAttribute("src",src);this.video.appendChild(this.source);this.$super();this.video.addEventListener("canplaythrough",function(){$this._.playbackStateUpdated($this,"ready");$this.repaint();$this.$continuePlayback()},false);this.video.addEventListener("ended",function(){$this._.playbackStateUpdated($this,"end");$this.$interruptCancelTask()},false);this.video.addEventListener("pause",function(){$this._.playbackStateUpdated($this,"pause");$this.$interruptCancelTask()},false);this.video.addEventListener("play",function(){$this.$continuePlayback();$this._.playbackStateUpdated($this,"play")},false);this.video.addEventListener("progress",function(){if($this.$cancelTask!==null){$this.$interruptCancelTask();if($this.video.paused===false){$this.$continuePlayback();$this._.playbackStateUpdated($this,"continue")}}},false);this.source.addEventListener("error",function(e){$this.$interruptCancelTask();$this.$lastError=e.toString();$this._.playbackStateUpdated($this,"error");$this.repaint();$this.pause()},false);this.video.addEventListener("stalled",function(){$this.$cancelPlayback()},false);this.video.addEventListener("loadedmetadata",function(e){$this.videoWidth=this.videoWidth;$this.videoHeight=this.videoHeight;$this.$aspectRatio=$this.videoHeight>0?$this.videoWidth/$this.videoHeight:0;$this.vrp()},false)},function $clazz(){this.Listeners=zebkit.util.ListenersClass("playbackStateUpdated");this.SignLabel=Class(ui.Panel,[function $clazz(){this.font=new ui.Font("bold",18)},function setColor(c){this.kids[0].setColor(c);return this},function(title){this.$super(new zebkit.layout.FlowLayout("center","center"));this.add(new ui.Label(title).setFont(this.clazz.font));this.setBorder(new ui.Border("gray",1,8));this.setPadding(6);this.setBackground("white");this.setColor("black")}])},function $prototype(clazz){this.videoWidth=this.videoHeight=0;this.cancelationTimeout=2e4;this.showSign=true;this.$animStallCounter=this.$aspectRatio=0;this.$adjustProportions=true;this.$lastError=this.$videoBound=this.$cancelTask=null;this.$animCurrentTime=-1;this._=new this.clazz.Listeners;this.views={pause:new clazz.SignLabel("Pause, press to continue").toView(),replay:new clazz.SignLabel("Press to re-play").toView(),play:new clazz.SignLabel("Press to play").toView(),error:new clazz.SignLabel("Failed, press to re-try").setColor("red").toView(),waiting:new clazz.SignLabel("Waiting ...").setColor("orange").toView()};this.paint=function(g){if(this.video.paused===false&&this.video.ended===false&&this.$cancelTask===null){if(this.video.currentTime!==this.$animCurrentTime){this.$animStallCounter=0;this.repaint()}else{if(this.$animStallCounter>180){this.$cancelPlayback()}else{this.$animStallCounter++;this.repaint()}}}this.$animCurrentTime=this.video.currentTime;if(this.$videoBound===null){this.calcVideoBound()}g.drawImage(this.video,this.$videoBound.x,this.$videoBound.y,this.$videoBound.width,this.$videoBound.height);if(this.showSign){var sign=null;if(this.$lastError!==null){sign=this.views.error}else{if(this.$cancelTask!==null){sign=this.views.waiting}else if(this.video.ended){sign=this.views.replay}else if(this.video.paused){if(this.video.currentTime===0){sign=this.views.play}else{sign=this.views.pause}}}if(sign!==null){this.paintViewAt(g,"center","center",sign)}}};this.autoplay=function(b){this.video.autoplay=b;return this};this.pause=function(){if(this.video.paused===false){this.video.pause();this.repaint()}return this};this.mute=function(b){this.video.muted=b;return this};this.play=function(){if(this.video.paused===true){if(this.$lastError!==null){this.$lastError=null;this.video.load()}this.video.play();this.repaint()}return this};this.adjustProportions=function(b){if(this.$adjustProportions!==b){this.$adjustProportions=b;this.vrp()}return this};this.calcPreferredSize=function(target){return{width:this.videoWidth,height:this.videoHeight}};this.pointerClicked=function(e){if(this.isPaused()){this.play()}else{this.pause()}};this.isPaused=function(){return this.video.paused};this.isEnded=function(){return this.video.ended};this.getDuration=function(){return this.video.duration};this.compSized=function(e){this.$calcVideoBound()};this.recalc=function(){this.$calcVideoBound()};this.$calcVideoBound=function(){this.$videoBound={x:this.getLeft(),y:this.getTop(),width:this.width-this.getLeft()-this.getBottom(),height:this.height-this.getTop()-this.getBottom()};if(this.$adjustProportions===true&&this.$aspectRatio!==0){var ar=this.$videoBound.width/this.$videoBound.height;if(ar<this.$aspectRatio){this.$videoBound.height=Math.floor(this.$videoBound.height*ar/this.$aspectRatio)}else{this.$videoBound.width=Math.floor(this.$videoBound.width*this.$aspectRatio/ar)}this.$videoBound.x=Math.floor((this.width-this.$videoBound.width)/2);this.$videoBound.y=Math.floor((this.height-this.$videoBound.height)/2)}};this.$continuePlayback=function(){this.$interruptCancelTask();if(this.video.paused===false&&this.video.ended===false){this.$animCurrentTime=this.video.currentTime;this.$animStallCounter=0;this.repaint()}};this.$cancelPlayback=function(){if(this.video.paused===true||this.video.ended===true){this.$interruptCancelTask()}else{if(this.$cancelTask===null){var $this=this;this.$postponedTime=(new Date).getTime();this.$cancelTask=zebkit.environment.setInterval(function(){var dt=(new Date).getTime()-$this.$postponedTime;if(dt>$this.cancelationTimeout){try{if($this.video.paused===false){$this.$lastError="Playback failed";$this.pause();$this.repaint();$this._.playbackStateUpdated($this,"error")}}finally{$this.$interruptCancelTask()}}else{$this._.playbackStateUpdated($this,"wait")}},200)}}};this.$interruptCancelTask=function(){if(this.$cancelTask!==null){zebkit.environment.clearInterval(this.$cancelTask);this.$postponedTime=this.$cancelTask=null}}}]);zebkit.ui.$configWith(pkg);if(zebkit.isIE){window.focus()}});
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const serviceManager_1 = require("../serviceManager");
const Debug = require("debug");
class EventsFeature {
constructor() {
this.logger = Debug('axm:features:events');
}
init() {
this.transport = serviceManager_1.ServiceManager.get('transport');
this.logger('init');
}
emit(name, data) {
if (typeof name !== 'string') {
console.error('event name must be a string');
return console.trace();
}
if (typeof data !== 'object') {
console.error('event data must be an object');
return console.trace();
}
if (data instanceof Array) {
console.error(`event data cannot be an array`);
return console.trace();
}
let inflightObj = {};
try {
inflightObj = JSON.parse(JSON.stringify(data));
}
catch (err) {
return console.log('Failed to serialize the event data', err.message);
}
inflightObj.__name = name;
if (this.transport === undefined) {
return this.logger('Failed to send event as transporter isnt available');
}
this.transport.send('human:event', inflightObj);
}
destroy() {
this.logger('destroy');
}
}
exports.EventsFeature = EventsFeature;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZlYXR1cmVzL2V2ZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNEQUFrRDtBQUdsRCwrQkFBOEI7QUFFOUIsTUFBYSxhQUFhO0lBQTFCO1FBR1UsV0FBTSxHQUFhLEtBQUssQ0FBQyxxQkFBcUIsQ0FBQyxDQUFBO0lBc0N6RCxDQUFDO0lBcENDLElBQUk7UUFDRixJQUFJLENBQUMsU0FBUyxHQUFHLCtCQUFjLENBQUMsR0FBRyxDQUFDLFdBQVcsQ0FBQyxDQUFBO1FBQ2hELElBQUksQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDckIsQ0FBQztJQUVELElBQUksQ0FBRSxJQUFhLEVBQUUsSUFBVTtRQUM3QixJQUFJLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUM1QixPQUFPLENBQUMsS0FBSyxDQUFDLDZCQUE2QixDQUFDLENBQUE7WUFDNUMsT0FBTyxPQUFPLENBQUMsS0FBSyxFQUFFLENBQUE7U0FDdkI7UUFDRCxJQUFJLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUM1QixPQUFPLENBQUMsS0FBSyxDQUFDLDhCQUE4QixDQUFDLENBQUE7WUFDN0MsT0FBTyxPQUFPLENBQUMsS0FBSyxFQUFFLENBQUE7U0FDdkI7UUFDRCxJQUFJLElBQUksWUFBWSxLQUFLLEVBQUU7WUFDekIsT0FBTyxDQUFDLEtBQUssQ0FBQywrQkFBK0IsQ0FBQyxDQUFBO1lBQzlDLE9BQU8sT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFBO1NBQ3ZCO1FBRUQsSUFBSSxXQUFXLEdBQWlCLEVBQUUsQ0FBQTtRQUNsQyxJQUFJO1lBQ0YsV0FBVyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFBO1NBQy9DO1FBQUMsT0FBTyxHQUFHLEVBQUU7WUFDWixPQUFPLE9BQU8sQ0FBQyxHQUFHLENBQUMsb0NBQW9DLEVBQUUsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFBO1NBQ3RFO1FBRUQsV0FBVyxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUE7UUFDekIsSUFBSSxJQUFJLENBQUMsU0FBUyxLQUFLLFNBQVMsRUFBRTtZQUNoQyxPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsb0RBQW9ELENBQUMsQ0FBQTtTQUN6RTtRQUNELElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRSxXQUFXLENBQUMsQ0FBQTtJQUNqRCxDQUFDO0lBRUQsT0FBTztRQUNMLElBQUksQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUE7SUFDeEIsQ0FBQztDQUNGO0FBekNELHNDQXlDQyJ9
|
const apisUrl='http://161.189.24.17:3005'
var store_id_sel;
var stores_sel;
var startDateTime='';
var endDateTime='';
function enumerateDaysBetweenDates (startDate, endDate){
let date = []
date.push(moment(startDate).format("YYYY-MM-DD"));
while(moment(startDate) < moment(endDate)){
startDate = moment(startDate).add(1, 'days').format("YYYY-MM-DD");
date.push(startDate);
}
return date;
}
function enumerateMonthsBetweenDates (startDate, endDate){
let months = []
months.push(moment(startDate).format("YYYY-MM"));
while(moment(startDate).month() < moment(endDate).month()){
startDate = moment(startDate).add(1, 'month').format("YYYY-MM");
months.push(startDate);
}
return months;
}
$('#datetime-body').append($('<input>',{
placeholder:'选择日期时间: ',
id: 'input'
}));
$.post(apisUrl + '/get_available_date', function(data, textStatus, jqXHR){
$('#datetime-body').daterangepicker({minDate:moment(data[0].start_date),
maxDate:moment(data[0].end_date),
timePicker: true,
timePicker24Hour: true,
alwaysShowCalendars: false})
console.log(textStatus);
console.log(data);
});
$('#datetime-body').on('apply.daterangepicker',function(){
startDateTime = $('#datetime-body').data('daterangepicker').startDate.format('YYYY-MM-DD HH:mm:ss');
endDateTime = $('#datetime-body').data('daterangepicker').endDate.format('YYYY-MM-DD HH:mm:ss');
$('#input').attr('placeholder', startDateTime+' - '+endDateTime);
});
6
floorGroup.on('loaded',function(){
cameraControl.on("picked", function (hit) {
if(stores.includes(hit.mesh.id)){
stores_sel=currentFloorStores;
if (stores_sel.includes(hit.mesh.id)){
store_id_sel=hit.mesh.id
}
if (store_id_sel){
loadRangeData(startDateTime,endDateTime,'玩塾');
}
}
})
});
function loadRangeData(startDateTime,endDateTime,store_id){
console.log('store: ', store_id)
console.log("search btwn: ",startDateTime,endDateTime)
$.post(apisUrl + '/get_store_kpis2', {'start_time': startDateTime, 'end_time': endDateTime, 'store_id': store_id}, function(data, textStatus, jqXHR){
if (textStatus=='success'){
console.log('data requested!');
console.log(data)
createRadarChart(data);
createDonutChart(data);
createCircBarChart(data);
}
else alert('fail loading data');
})
}
function createRadarChart(data){
$('#radar-chart').empty();
var enter_cnt=new Array();
var exit_cnt=new Array();
var watcher_cnt=new Array();
var passer_cnt=new Array();
data.forEach(d=> {
enter_cnt.push(parseInt(d.enter_cnt))
exit_cnt.push(parseInt(d.exit_cnt))
watcher_cnt.push(parseInt(d.watcher_cnt))
passer_cnt.push(parseInt(d.passer_cnt))
});
var enter_tot=enter_cnt.reduce(function(a,b){return a+b},0);
var exit_tot=exit_cnt.reduce(function(a,b){return a+b},0);
var passer_tot=passer_cnt.reduce(function(a,b){return a+b},0);
var watcher_tot=watcher_cnt.reduce(function(a,b){return a+b},0);
var options = {
series: [{
name: '百分比',
data: [(enter_tot/passer_tot*100).toFixed(1), (exit_tot/passer_tot*100).toFixed(1), (watcher_tot/passer_tot*100).toFixed(1),
(100-(enter_tot/passer_tot*100).toFixed(1)-(exit_tot/passer_tot*100).toFixed(1)- (watcher_tot/passer_tot*100).toFixed(1)).toFixed(1)],
}],
chart: {
height: 300,
type: 'radar',
},
dataLabels: {
enabled: false
},
plotOptions: {
radar: {
size: 110,
polygons: {
strokeColors: '#e9e9e9',
fill: {
colors: ['#f8f8f8', '#fff']
}
}
}
},
title: {
text: '店铺评级',
style: {
color:'white'
},
},
colors: ['#FF0091'],
markers: {
size: 2,
colors: ['#fff'],
strokeColor: '#FF0091',
strokeWidth: 2,
},
tooltip: {
y: {
formatter: function(val) {
return val
}
}
},
tooltip: {
y: {
formatter: function(val) {
return val
}
}
},
xaxis: {
categories: ['进客率(%)', '出客率(%)', '观望率(%)','经过率(%)']
},
yaxis: {
min: 0,
max: 100,
tickAmount: 8,
labels: {
formatter: function(val, i) {
if (i % 2 === 0) {
return val
} else {
return ''
}
}
}
}
};
var chart = new ApexCharts(document.querySelector("#radar-chart"), options);
chart.render();
};
// donut Chart gender
function createDonutChart(data){
$('#donut-chart').empty();
var enter_cnt=new Array();
var exit_cnt=new Array();
var watcher_cnt=new Array();
var passer_cnt=new Array();
data.forEach(d=> {
enter_cnt.push(parseInt(d.enter_cnt))
exit_cnt.push(parseInt(d.exit_cnt))
watcher_cnt.push(parseInt(d.watcher_cnt))
passer_cnt.push(parseInt(d.passer_cnt))
});
var enter_tot=enter_cnt.reduce(function(a,b){return a+b},0);
var exit_tot=exit_cnt.reduce(function(a,b){return a+b},0);
var passer_tot=passer_cnt.reduce(function(a,b){return a+b},0);
var watcher_tot=watcher_cnt.reduce(function(a,b){return a+b},0);
var options = {
series: [enter_tot,exit_tot,watcher_tot,passer_tot-enter_tot-exit_tot-watcher_tot],
chart: {
type: 'donut',
height: 200
},
dataLabels: {
enabled: false
},
tooltip: {
y: {
formatter: function(val) {
return (val*100/passer_tot).toFixed(1)
}
}
},
colors: ['#FFAB91', '#FF7D91', '#FF0091','#630063'],
labels:['进客率(%)', '出客率(%)', '观望率(%)','经过率(%)'],
legend: {
position: 'bottom',
fontSize:'10px',
labels: {
colors: 'white',
useSeriesColors: false
},
}
};
var chart = new ApexCharts(document.querySelector("#donut-chart"), options);
chart.render();
}
// circlular bar Chart body figure
function createCircBarChart(data){
$('#circbar-chart').empty();
var enter_cnt=new Array();
var exit_cnt=new Array();
var watcher_cnt=new Array();
var passer_cnt=new Array();
data.forEach(d=> {
enter_cnt.push(parseInt(d.enter_cnt))
exit_cnt.push(parseInt(d.exit_cnt))
watcher_cnt.push(parseInt(d.watcher_cnt))
passer_cnt.push(parseInt(d.passer_cnt))
});
var enter_tot=enter_cnt.reduce(function(a,b){return a+b},0);
var exit_tot=exit_cnt.reduce(function(a,b){return a+b},0);
var passer_tot=passer_cnt.reduce(function(a,b){return a+b},0);
var watcher_tot=watcher_cnt.reduce(function(a,b){return a+b},0);
var options = {
series: [enter_tot/passer_tot*285, exit_tot/passer_tot*285, watcher_tot/passer_tot*285, (passer_tot-enter_tot-exit_tot-watcher_tot)/passer_tot*285],
chart: {
height: 200,
type: 'radialBar',
},
plotOptions: {
radialBar: {
offsetY: 0,
startAngle: 0,
endAngle: 285,
hollow: {
margin: 5,
size: '30%',
background: 'transparent',
image: undefined,
},
dataLabels: {
name: {
show: false,
},
value: {
show: false,
}
}
}
},
colors: ['#FFAB91', '#FF7D91', '#FF0091','#630063'],
labels: ['进客人数', '出客人数', '观望人数', '经过人数'],
legend: {
show: true,
floating: true,
fontSize: '8px',
position: 'left',
// width: 100,
height: 100,
offsetX: -10,
offsetY: -10,
labels: {
colors:'white',
useSeriesColors: false,
},
markers: {
width:6,
height: 6,
},
formatter: function(seriesName, opts) {
return seriesName + ": " + Math.round(opts.w.globals.series[opts.seriesIndex]/285*passer_tot)
},
itemMargin: {
vertical: -2
}
},
responsive: [{
breakpoint: 480,
options: {
legend: {
show: false
}
}
}]
};
var chart = new ApexCharts(document.querySelector("#circbar-chart"), options);
chart.render();
}
|
import isFunc from '../isFunc'
describe('[Function] isFunc', () => {
it('Should verify if a provided argument is a function', () => {
const func = () => {};
function f() {}
const notFunc = 'not a function';
expects(isFunc(f)).to.be.true();
expects(isFunc(func)).to.be.true();
expects(isFunc(notFunc)).to.be.false();
});
});
|
import React from "react";
import { TimeInput } from "../../baseFormHelpers/TimeInput";
export const CheckInTimeInput = ({
label = "Check in time",
name = "checkInTime",
required = true,
...other
}) => <TimeInput label={label} name={name} required={required} {...other} />;
|
const Yup = require('yup');
module.exports = async (req, res, next) => {
try {
const schemaBody = Yup.object().shape({
exams: Yup.array(Yup.object().shape({
name: Yup.string().required('name is required'),
type: Yup.string().required('type is required'),
})).required('exams array of exam is required'),
});
await schemaBody.validate(req.body, { abortEarly: false });
return next();
} catch (error) {
return res.status(400).json({ message: error.errors });
}
};
|
/*
* /MathJax/localization/ja/ja.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Localization.addTranslation("ja",null,{menuTitle:"\u65E5\u672C\u8A9E",version:"2.7.6",isLoaded:true,domains:{_:{version:"2.7.6",isLoaded:true,strings:{CookieConfig:"MathJax \u306F\u3001\u30E6\u30FC\u30B6\u30FC\u8A2D\u5B9A\u306E Cookie \u3067\u5B9F\u884C\u3059\u3079\u304D\u30B3\u30FC\u30C9\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u3057\u307E\u3059\u304B?\n\n(Cookie \u3092\u81EA\u5206\u3067\u8A2D\u5B9A\u3057\u3066\u3044\u306A\u3044\u5834\u5408\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u3066\u304F\u3060\u3055\u3044\u3002)",MathProcessingError:"\u6570\u5F0F\u51E6\u7406\u30A8\u30E9\u30FC",MathError:"\u6570\u5F0F\u30A8\u30E9\u30FC",LoadFile:"%1 \u3092\u8AAD\u307F\u8FBC\u307F\u4E2D",Loading:"\u8AAD\u307F\u8FBC\u307F\u4E2D",LoadFailed:"\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F: %1",ProcessMath:"\u6570\u5F0F\u3092\u51E6\u7406\u4E2D: %1%%",Processing:"\u51E6\u7406\u4E2D",TypesetMath:"\u6570\u5F0F\u3092\u7D44\u7248\u4E2D: %1%%",Typesetting:"\u7D44\u7248\u4E2D",MathJaxNotSupported:"\u3054\u4F7F\u7528\u4E2D\u306E\u30D6\u30E9\u30A6\u30B6\u30FC\u306F MathJax \u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093"}},FontWarnings:{},"HTML-CSS":{},HelpDialog:{},MathML:{},MathMenu:{},TeX:{}},plural:function(a){return 1},number:function(a){return a}});MathJax.Ajax.loadComplete("[MathJax]/localization/ja/ja.js");
|
/**
* Auto-generated action file for "DataBoxEdgeManagementClient" API.
*
* Generated at: 2019-05-07T14:38:07.269Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-edgegateway-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the Apache 2.0 License. For details
* see the file LICENSE on the toplevel directory.
*
*
* Operation: 'Devices_ScanForUpdates'
* Endpoint Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/scanForUpdates'
* Method: 'post'
*
*/
const Swagger = require('swagger-client');
const processWrapper = require('../services/process-wrapper');
const spec = require('../spec.json');
// this wrapers offers a simplified emitData(data) function
module.exports.process = processWrapper(processAction);
// parameter names for this call
const PARAMETERS = [
"deviceName",
"subscriptionId",
"resourceGroupName",
"api-version"
];
// mappings from connector field names to API field names
const FIELD_MAP = {
"deviceName": "deviceName",
"subscriptionId": "subscriptionId",
"resourceGroupName": "resourceGroupName",
"api_version": "api-version"
};
function processAction(msg, cfg) {
var isVerbose = process.env.debug || cfg.verbose;
if (isVerbose) {
console.log(`---MSG: ${JSON.stringify(msg)}`);
console.log(`---CFG: ${JSON.stringify(cfg)}`);
console.log(`---ENV: ${JSON.stringify(process.env)}`);
}
const contentType = undefined;
const body = msg.body;
mapFieldNames(body);
let parameters = {};
for(let param of PARAMETERS) {
parameters[param] = body[param];
}
// credentials for this operation
let securities = {};
securities['azure_auth'] = {token: cfg['azure_auth']};
let callParams = {
spec: spec,
operationId: 'Devices_ScanForUpdates',
pathName: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/scanForUpdates',
method: 'post',
parameters: parameters,
requestContentType: contentType,
requestBody: body.requestBody,
securities: {authorized: securities},
server: spec.servers[cfg.server] || cfg.otherServer,
};
if (isVerbose) {
let out = Object.assign({}, callParams);
out.spec = '[omitted]';
console.log(`--SWAGGER CALL: ${JSON.stringify(out)}`);
}
// Call operation via Swagger client
return Swagger.execute(callParams).then(data => {
// emit a single message with data
this.emitData(data);
// if the response contains an array of entities, you can emit them one by one:
// data.obj.someItems.forEach((item) => {
// this.emitData(item);
// }
});
}
function mapFieldNames(obj) {
if(Array.isArray(obj)) {
obj.forEach(mapFieldNames);
}
else if(typeof obj === 'object' && obj) {
Object.keys(obj).forEach(key => {
mapFieldNames(obj[key]);
let goodKey = FIELD_MAP[key];
if(goodKey && goodKey !== key) {
obj[goodKey] = obj[key];
delete obj[key];
}
});
}
}
|
!function(global, factory) {
"object" == typeof exports && "undefined" != typeof module ? factory(exports, require("react")) : "function" == typeof define && define.amd ? define([
"exports",
"react"
], factory) : factory((global = global || self).ReactDOM = {}, global.React);
}(this, function(exports, React) {
"use strict";
var devToolsConfig, findFiberByHostInstance, ReactCurrentDispatcher, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd, prefix1, componentFrameCache, didWarnValueDefaultValue$1, reusableSVGContainer, attemptUserBlockingHydration, attemptContinuousHydration, attemptHydrationAtCurrentPriority, attemptHydrationAtPriority, lastMovementX, lastMovementY, lastMouseEvent, warnedUnknownTags, suppressHydrationWarning, validatePropertiesInDevelopment, warnForTextDifference, warnForPropDifference, warnForExtraAttributes, warnForInvalidEventListener, canDiffStyleForHydrationWarning, normalizeMarkupForTextOrAttribute, normalizeHTML, SUPPRESS_HYDRATION_WARNING$1, fiberStack, warnedAboutMissingGetChildContext, rendererSigil, didWarnUpdateInsideUpdate, currentlyProcessingQueue, didWarnAboutStateAssignmentForComponent, didWarnAboutUninitializedState, didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate, didWarnAboutLegacyLifecyclesAndDerivedState, didWarnAboutUndefinedDerivedState, warnOnUndefinedDerivedState, warnOnInvalidCallback, didWarnAboutDirectlyAssigningPropsToState, didWarnAboutContextTypeAndContextTypes, didWarnAboutInvalidateContextType, didWarnAboutMaps, didWarnAboutGenerators, didWarnAboutStringRefs, ownerHasKeyUseWarning, ownerHasFunctionTypeWarning, rendererSigil$1, didWarnAboutMismatchedHooksForComponent, didWarnAboutUseOpaqueIdentifier, didWarnAboutBadClass, didWarnAboutModulePatternComponent, didWarnAboutContextTypeOnFunctionComponent, didWarnAboutGetDerivedStateOnFunctionComponent, didWarnAboutFunctionRefs, didWarnAboutReassigningProps, didWarnAboutRevealOrder, didWarnAboutTailOptions, appendAllChildren, updateHostContainer, updateHostComponent$1, updateHostText$1, beginWork$1, didWarnAboutUpdateInRenderForAnotherComponent, hasBadMapPolyfill, didWarnAboutNestedUpdates, didWarnAboutFindNodeInStrictMode, topLevelUpdateWarnings, ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function warn(format) {
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];
printWarning("warn", format, args);
}
function error1(format) {
for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];
printWarning("error", format, args);
}
function printWarning(level, format, args) {
var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
"" !== stack && (format += "%s", args = args.concat([
stack
]));
var argsWithFormat = args.map(function(item) {
return "" + item;
});
argsWithFormat.unshift("Warning: " + format), Function.prototype.apply.call(console[level], console, argsWithFormat);
}
if (!React) throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");
var enableProfilerTimer = !0, enableFundamentalAPI = !1, enableNewReconciler = !1, allNativeEvents = new Set(), registrationNameDependencies1 = {}, possibleRegistrationNames1 = {};
function registerTwoPhaseEvent(registrationName, dependencies) {
registerDirectEvent(registrationName, dependencies), registerDirectEvent(registrationName + "Capture", dependencies);
}
function registerDirectEvent(registrationName, dependencies) {
registrationNameDependencies1[registrationName] && error1("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName), registrationNameDependencies1[registrationName] = dependencies, possibleRegistrationNames1[registrationName.toLowerCase()] = registrationName, "onDoubleClick" === registrationName && (possibleRegistrationNames1.ondblclick = registrationName);
for(var i = 0; i < dependencies.length; i++)allNativeEvents.add(dependencies[i]);
}
var canUseDOM = !!("undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement), ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ROOT_ATTRIBUTE_NAME = "data-reactroot", VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
function isAttributeNameSafe(attributeName) {
return !!hasOwnProperty.call(validatedAttributeNameCache, attributeName) || !hasOwnProperty.call(illegalAttributeNameCache, attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0, !0) : (illegalAttributeNameCache[attributeName] = !0, error1("Invalid attribute name: `%s`", attributeName), !1));
}
function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
return null !== propertyInfo ? 0 === propertyInfo.type : !isCustomComponentTag && name.length > 2 && ("o" === name[0] || "O" === name[0]) && ("n" === name[1] || "N" === name[1]);
}
function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
if (null !== propertyInfo && 0 === propertyInfo.type) return !1;
switch(typeof value){
case "function":
case "symbol":
return !0;
case "boolean":
if (isCustomComponentTag) return !1;
if (null !== propertyInfo) return !propertyInfo.acceptsBooleans;
var prefix = name.toLowerCase().slice(0, 5);
return "data-" !== prefix && "aria-" !== prefix;
default:
return !1;
}
}
function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
if (null == value) return !0;
if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0;
if (isCustomComponentTag) return !1;
if (null !== propertyInfo) switch(propertyInfo.type){
case 3:
return !value;
case 4:
return !1 === value;
case 5:
return isNaN(value);
case 6:
return isNaN(value) || value < 1;
}
return !1;
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
this.acceptsBooleans = 2 === type || 3 === type || 4 === type, this.attributeName = attributeName, this.attributeNamespace = attributeNamespace, this.mustUseProperty = mustUseProperty, this.propertyName = name, this.type = type, this.sanitizeURL = sanitizeURL, this.removeEmptyString = removeEmptyString;
}
var properties = {};
[
"children",
"dangerouslySetInnerHTML",
"defaultValue",
"defaultChecked",
"innerHTML",
"suppressContentEditableWarning",
"suppressHydrationWarning",
"style"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 0, !1, name, null, !1, !1);
}), [
[
"acceptCharset",
"accept-charset"
],
[
"className",
"class"
],
[
"htmlFor",
"for"
],
[
"httpEquiv",
"http-equiv"
]
].forEach(function(_ref) {
var name = _ref[0], attributeName = _ref[1];
properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null, !1, !1);
}), [
"contentEditable",
"draggable",
"spellCheck",
"value"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 2, !1, name.toLowerCase(), null, !1, !1);
}), [
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 2, !1, name, null, !1, !1);
}), [
"allowFullScreen",
"async",
"autoFocus",
"autoPlay",
"controls",
"default",
"defer",
"disabled",
"disablePictureInPicture",
"disableRemotePlayback",
"formNoValidate",
"hidden",
"loop",
"noModule",
"noValidate",
"open",
"playsInline",
"readOnly",
"required",
"reversed",
"scoped",
"seamless",
"itemScope"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 3, !1, name.toLowerCase(), null, !1, !1);
}), [
"checked",
"multiple",
"muted",
"selected"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 3, !0, name, null, !1, !1);
}), [
"capture",
"download"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 4, !1, name, null, !1, !1);
}), [
"cols",
"rows",
"size",
"span"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 6, !1, name, null, !1, !1);
}), [
"rowSpan",
"start"
].forEach(function(name) {
properties[name] = new PropertyInfoRecord(name, 5, !1, name.toLowerCase(), null, !1, !1);
});
var CAMELIZE = /[\-\:]([a-z])/g, capitalize = function(token) {
return token[1].toUpperCase();
};
[
"accent-height",
"alignment-baseline",
"arabic-form",
"baseline-shift",
"cap-height",
"clip-path",
"clip-rule",
"color-interpolation",
"color-interpolation-filters",
"color-profile",
"color-rendering",
"dominant-baseline",
"enable-background",
"fill-opacity",
"fill-rule",
"flood-color",
"flood-opacity",
"font-family",
"font-size",
"font-size-adjust",
"font-stretch",
"font-style",
"font-variant",
"font-weight",
"glyph-name",
"glyph-orientation-horizontal",
"glyph-orientation-vertical",
"horiz-adv-x",
"horiz-origin-x",
"image-rendering",
"letter-spacing",
"lighting-color",
"marker-end",
"marker-mid",
"marker-start",
"overline-position",
"overline-thickness",
"paint-order",
"panose-1",
"pointer-events",
"rendering-intent",
"shape-rendering",
"stop-color",
"stop-opacity",
"strikethrough-position",
"strikethrough-thickness",
"stroke-dasharray",
"stroke-dashoffset",
"stroke-linecap",
"stroke-linejoin",
"stroke-miterlimit",
"stroke-opacity",
"stroke-width",
"text-anchor",
"text-decoration",
"text-rendering",
"underline-position",
"underline-thickness",
"unicode-bidi",
"unicode-range",
"units-per-em",
"v-alphabetic",
"v-hanging",
"v-ideographic",
"v-mathematical",
"vector-effect",
"vert-adv-y",
"vert-origin-x",
"vert-origin-y",
"word-spacing",
"writing-mode",
"xmlns:xlink",
"x-height"
].forEach(function(attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null, !1, !1);
}), [
"xlink:actuate",
"xlink:arcrole",
"xlink:role",
"xlink:show",
"xlink:title",
"xlink:type"
].forEach(function(attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/1999/xlink", !1, !1);
}), [
"xml:base",
"xml:lang",
"xml:space"
].forEach(function(attributeName) {
var name = attributeName.replace(CAMELIZE, capitalize);
properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/XML/1998/namespace", !1, !1);
}), [
"tabIndex",
"crossOrigin"
].forEach(function(attributeName) {
properties[attributeName] = new PropertyInfoRecord(attributeName, 1, !1, attributeName.toLowerCase(), null, !1, !1);
}), properties.xlinkHref = new PropertyInfoRecord("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [
"src",
"href",
"action",
"formAction"
].forEach(function(attributeName) {
properties[attributeName] = new PropertyInfoRecord(attributeName, 1, !1, attributeName.toLowerCase(), null, !0, !0);
});
var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i, didWarn = !1;
function sanitizeURL1(url) {
!didWarn && isJavaScriptProtocol.test(url) && (didWarn = !0, error1("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(url)));
}
function getValueForProperty(node, name, expected, propertyInfo) {
if (propertyInfo.mustUseProperty) return node[propertyInfo.propertyName];
propertyInfo.sanitizeURL && sanitizeURL1("" + expected);
var attributeName = propertyInfo.attributeName, stringValue = null;
if (4 === propertyInfo.type) {
if (node.hasAttribute(attributeName)) {
var value = node.getAttribute(attributeName);
return "" === value || (shouldRemoveAttribute(name, expected, propertyInfo, !1) ? value : value === "" + expected ? expected : value);
}
} else if (node.hasAttribute(attributeName)) {
if (shouldRemoveAttribute(name, expected, propertyInfo, !1)) return node.getAttribute(attributeName);
if (3 === propertyInfo.type) return expected;
stringValue = node.getAttribute(attributeName);
}
return shouldRemoveAttribute(name, expected, propertyInfo, !1) ? null === stringValue ? expected : stringValue : stringValue === "" + expected ? expected : stringValue;
}
function getValueForAttribute(node, name, expected) {
if (isAttributeNameSafe(name)) {
if (isOpaqueHydratingObject(expected)) return expected;
if (!node.hasAttribute(name)) return void 0 === expected ? void 0 : null;
var value = node.getAttribute(name);
return value === "" + expected ? expected : value;
}
}
function setValueForProperty(node, name, value, isCustomComponentTag) {
var propertyInfo = getPropertyInfo(name);
if (!shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) && (value = null), isCustomComponentTag || null === propertyInfo) {
if (isAttributeNameSafe(name)) {
var _attributeName = name;
null === value ? node.removeAttribute(_attributeName) : node.setAttribute(_attributeName, "" + value);
}
return;
}
if (propertyInfo.mustUseProperty) {
var propertyName = propertyInfo.propertyName;
if (null === value) {
var type = propertyInfo.type;
node[propertyName] = 3 !== type && "";
} else node[propertyName] = value;
return;
}
var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace;
if (null === value) node.removeAttribute(attributeName);
else {
var attributeValue, _type = propertyInfo.type;
3 === _type || 4 === _type && !0 === value ? attributeValue = "" : (attributeValue = "" + value, propertyInfo.sanitizeURL && sanitizeURL1(attributeValue.toString())), attributeNamespace ? node.setAttributeNS(attributeNamespace, attributeName, attributeValue) : node.setAttribute(attributeName, attributeValue);
}
}
}
var _assign = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign, REACT_ELEMENT_TYPE = 60103, REACT_PORTAL_TYPE = 60106, REACT_FRAGMENT_TYPE = 60107, REACT_STRICT_MODE_TYPE = 60108, REACT_PROFILER_TYPE = 60114, REACT_PROVIDER_TYPE = 60109, REACT_CONTEXT_TYPE = 60110, REACT_FORWARD_REF_TYPE = 60112, REACT_SUSPENSE_TYPE = 60113, REACT_SUSPENSE_LIST_TYPE = 60120, REACT_MEMO_TYPE = 60115, REACT_LAZY_TYPE = 60116, REACT_BLOCK_TYPE = 60121, REACT_SCOPE_TYPE = 60119, REACT_OPAQUE_ID_TYPE = 60128, REACT_DEBUG_TRACING_MODE_TYPE = 60129, REACT_OFFSCREEN_TYPE = 60130, REACT_LEGACY_HIDDEN_TYPE = 60131;
if ("function" == typeof Symbol && Symbol.for) {
var symbolFor = Symbol.for;
REACT_ELEMENT_TYPE = symbolFor("react.element"), REACT_PORTAL_TYPE = symbolFor("react.portal"), REACT_FRAGMENT_TYPE = symbolFor("react.fragment"), REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode"), REACT_PROFILER_TYPE = symbolFor("react.profiler"), REACT_PROVIDER_TYPE = symbolFor("react.provider"), REACT_CONTEXT_TYPE = symbolFor("react.context"), REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref"), REACT_SUSPENSE_TYPE = symbolFor("react.suspense"), REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list"), REACT_MEMO_TYPE = symbolFor("react.memo"), REACT_LAZY_TYPE = symbolFor("react.lazy"), REACT_BLOCK_TYPE = symbolFor("react.block"), symbolFor("react.server.block"), symbolFor("react.fundamental"), REACT_SCOPE_TYPE = symbolFor("react.scope"), REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id"), REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode"), REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
}
var MAYBE_ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator;
function getIteratorFn(maybeIterable) {
if (null === maybeIterable || "object" != typeof maybeIterable) return null;
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
return "function" == typeof maybeIterator ? maybeIterator : null;
}
var disabledDepth = 0;
function disabledLog() {}
function disableLogs() {
if (0 === disabledDepth) {
prevLog = console.log, prevInfo = console.info, prevWarn = console.warn, prevError = console.error, prevGroup = console.group, prevGroupCollapsed = console.groupCollapsed, prevGroupEnd = console.groupEnd;
var props = {
configurable: !0,
enumerable: !0,
value: disabledLog,
writable: !0
};
Object.defineProperties(console, {
info: props,
log: props,
warn: props,
error: props,
group: props,
groupCollapsed: props,
groupEnd: props
});
}
disabledDepth++;
}
function reenableLogs() {
if (disabledDepth--, 0 === disabledDepth) {
var props = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: _assign({}, props, {
value: prevLog
}),
info: _assign({}, props, {
value: prevInfo
}),
warn: _assign({}, props, {
value: prevWarn
}),
error: _assign({}, props, {
value: prevError
}),
group: _assign({}, props, {
value: prevGroup
}),
groupCollapsed: _assign({}, props, {
value: prevGroupCollapsed
}),
groupEnd: _assign({}, props, {
value: prevGroupEnd
})
});
}
disabledDepth < 0 && error1("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
disabledLog.__reactDisabledLog = !0;
var ReactCurrentDispatcher1 = ReactSharedInternals.ReactCurrentDispatcher;
function describeBuiltInComponentFrame(name, source, ownerFn) {
if (void 0 === prefix1) try {
throw Error();
} catch (x) {
var match = x.stack.trim().match(/\n( *(at )?)/);
prefix1 = match && match[1] || "";
}
return "\n" + prefix1 + name;
}
var reentry = !1;
function describeNativeComponentFrame(fn, construct) {
if (!fn || reentry) return "";
var control, previousDispatcher, frame = componentFrameCache.get(fn);
if (void 0 !== frame) return frame;
reentry = !0;
var previousPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = void 0, previousDispatcher = ReactCurrentDispatcher1.current, ReactCurrentDispatcher1.current = null, disableLogs();
try {
if (construct) {
var Fake = function() {
throw Error();
};
if (Object.defineProperty(Fake.prototype, "props", {
set: function() {
throw Error();
}
}), "object" == typeof Reflect && Reflect.construct) {
try {
Reflect.construct(Fake, []);
} catch (x) {
control = x;
}
Reflect.construct(fn, [], Fake);
} else {
try {
Fake.call();
} catch (x) {
control = x;
}
fn.call(Fake.prototype);
}
} else {
try {
throw Error();
} catch (x) {
control = x;
}
fn();
}
} catch (sample) {
if (sample && control && "string" == typeof sample.stack) {
for(var sampleLines = sample.stack.split("\n"), controlLines = control.stack.split("\n"), s = sampleLines.length - 1, c = controlLines.length - 1; s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c];)c--;
for(; s >= 1 && c >= 0; s--, c--)if (sampleLines[s] !== controlLines[c]) {
if (1 !== s || 1 !== c) do if (s--, c--, c < 0 || sampleLines[s] !== controlLines[c]) {
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
return "function" == typeof fn && componentFrameCache.set(fn, _frame), _frame;
}
while (s >= 1 && c >= 0)
break;
}
}
} finally{
reentry = !1, ReactCurrentDispatcher1.current = previousDispatcher, reenableLogs(), Error.prepareStackTrace = previousPrepareStackTrace;
}
var name = fn ? fn.displayName || fn.name : "", syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
return "function" == typeof fn && componentFrameCache.set(fn, syntheticFrame), syntheticFrame;
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
return describeNativeComponentFrame(fn, !1);
}
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
if (null == type) return "";
if ("function" == typeof type) {
var prototype;
return describeNativeComponentFrame(type, !!((prototype = type.prototype) && prototype.isReactComponent));
}
if ("string" == typeof type) return describeBuiltInComponentFrame(type);
switch(type){
case REACT_SUSPENSE_TYPE:
return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE:
return describeBuiltInComponentFrame("SuspenseList");
}
if ("object" == typeof type) switch(type.$$typeof){
case REACT_FORWARD_REF_TYPE:
return describeFunctionComponentFrame(type.render);
case REACT_MEMO_TYPE:
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
case REACT_BLOCK_TYPE:
return describeFunctionComponentFrame(type._render);
case REACT_LAZY_TYPE:
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
try {
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
} catch (x) {}
}
return "";
}
function describeFiber(fiber) {
switch(fiber._debugOwner && fiber._debugOwner.type, fiber._debugSource, fiber.tag){
case 5:
return describeBuiltInComponentFrame(fiber.type);
case 16:
return describeBuiltInComponentFrame("Lazy");
case 13:
return describeBuiltInComponentFrame("Suspense");
case 19:
return describeBuiltInComponentFrame("SuspenseList");
case 0:
case 2:
case 15:
return describeFunctionComponentFrame(fiber.type);
case 11:
return describeFunctionComponentFrame(fiber.type.render);
case 22:
return describeFunctionComponentFrame(fiber.type._render);
case 1:
return describeNativeComponentFrame(fiber.type, !0);
default:
return "";
}
}
function getStackByFiberInDevAndProd(workInProgress) {
try {
var info = "", node = workInProgress;
do info += describeFiber(node), node = node.return;
while (node)
return info;
} catch (x) {
return "\nError generating stack: " + x.message + "\n" + x.stack;
}
}
function getContextName(type) {
return type.displayName || "Context";
}
function getComponentName(type) {
if (null == type) return null;
if ("number" == typeof type.tag && error1("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), "function" == typeof type) return type.displayName || type.name || null;
if ("string" == typeof type) return type;
switch(type){
case REACT_FRAGMENT_TYPE:
return "Fragment";
case REACT_PORTAL_TYPE:
return "Portal";
case REACT_PROFILER_TYPE:
return "Profiler";
case REACT_STRICT_MODE_TYPE:
return "StrictMode";
case REACT_SUSPENSE_TYPE:
return "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
}
if ("object" == typeof type) switch(type.$$typeof){
case REACT_CONTEXT_TYPE:
return getContextName(type) + ".Consumer";
case REACT_PROVIDER_TYPE:
return getContextName(type._context) + ".Provider";
case REACT_FORWARD_REF_TYPE:
return outerType = type, innerType = type.render, wrapperName = "ForwardRef", functionName = innerType.displayName || innerType.name || "", outerType.displayName || ("" !== functionName ? wrapperName + "(" + functionName + ")" : wrapperName);
case REACT_MEMO_TYPE:
return getComponentName(type.type);
case REACT_BLOCK_TYPE:
return getComponentName(type._render);
case REACT_LAZY_TYPE:
var outerType, innerType, wrapperName, functionName, lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
try {
return getComponentName(init(payload));
} catch (x) {
return null;
}
}
return null;
}
componentFrameCache = new ("function" == typeof WeakMap ? WeakMap : Map)();
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame, current1 = null, isRendering = !1;
function getCurrentFiberOwnerNameInDevOrNull() {
if (null === current1) return null;
var owner = current1._debugOwner;
return null != owner ? getComponentName(owner.type) : null;
}
function getCurrentFiberStackInDev() {
return null === current1 ? "" : getStackByFiberInDevAndProd(current1);
}
function resetCurrentFiber() {
ReactDebugCurrentFrame.getCurrentStack = null, current1 = null, isRendering = !1;
}
function setCurrentFiber(fiber) {
ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev, current1 = fiber, isRendering = !1;
}
function setIsRendering(rendering) {
isRendering = rendering;
}
function toString(value) {
return "" + value;
}
function getToStringValue(value) {
switch(typeof value){
case "boolean":
case "number":
case "object":
case "string":
case "undefined":
return value;
default:
return "";
}
}
var hasReadOnlyValue = {
button: !0,
checkbox: !0,
image: !0,
hidden: !0,
radio: !0,
reset: !0,
submit: !0
};
function checkControlledValueProps(tagName, props) {
hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || null == props.value || error1("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."), props.onChange || props.readOnly || props.disabled || null == props.checked || error1("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.");
}
function isCheckable(elem) {
var type = elem.type, nodeName = elem.nodeName;
return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === type || "radio" === type);
}
function getTracker(node) {
return node._valueTracker;
}
function track(node1) {
getTracker(node1) || (node1._valueTracker = (function(node) {
var valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), currentValue = "" + node[valueField];
if (!node.hasOwnProperty(valueField) && void 0 !== descriptor && "function" == typeof descriptor.get && "function" == typeof descriptor.set) {
var get = descriptor.get, set = descriptor.set;
return Object.defineProperty(node, valueField, {
configurable: !0,
get: function() {
return get.call(this);
},
set: function(value) {
currentValue = "" + value, set.call(this, value);
}
}), Object.defineProperty(node, valueField, {
enumerable: descriptor.enumerable
}), {
getValue: function() {
return currentValue;
},
setValue: function(value) {
currentValue = "" + value;
},
stopTracking: function() {
node._valueTracker = null, delete node[valueField];
}
};
}
})(node1));
}
function updateValueIfChanged(node) {
if (!node) return !1;
var tracker = getTracker(node);
if (!tracker) return !0;
var node2, value, lastValue = tracker.getValue(), nextValue = (value = "", (node2 = node) ? value = isCheckable(node2) ? node2.checked ? "true" : "false" : node2.value : value);
return nextValue !== lastValue && (tracker.setValue(nextValue), !0);
}
function getActiveElement(doc) {
if (void 0 === (doc = doc || ("undefined" != typeof document ? document : void 0))) return null;
try {
return doc.activeElement || doc.body;
} catch (e) {
return doc.body;
}
}
var didWarnValueDefaultValue = !1, didWarnCheckedDefaultChecked = !1, didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1;
function isControlled(props) {
return "checkbox" === props.type || "radio" === props.type ? null != props.checked : null != props.value;
}
function getHostProps(element, props) {
var checked = props.checked;
return _assign({}, props, {
defaultChecked: void 0,
defaultValue: void 0,
value: void 0,
checked: null != checked ? checked : element._wrapperState.initialChecked
});
}
function initWrapperState(element, props) {
checkControlledValueProps("input", props), void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || (error1("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnCheckedDefaultChecked = !0), void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || (error1("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnValueDefaultValue = !0);
var node = element, defaultValue = null == props.defaultValue ? "" : props.defaultValue;
node._wrapperState = {
initialChecked: null != props.checked ? props.checked : props.defaultChecked,
initialValue: getToStringValue(null != props.value ? props.value : defaultValue),
controlled: isControlled(props)
};
}
function updateChecked(element, props) {
var checked = props.checked;
null != checked && setValueForProperty(element, "checked", checked, !1);
}
function updateWrapper(element, props) {
var node = element, controlled = isControlled(props);
node._wrapperState.controlled || !controlled || didWarnUncontrolledToControlled || (error1("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), didWarnUncontrolledToControlled = !0), !node._wrapperState.controlled || controlled || didWarnControlledToUncontrolled || (error1("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), didWarnControlledToUncontrolled = !0), updateChecked(element, props);
var value = getToStringValue(props.value), type = props.type;
if (null != value) "number" === type ? (0 === value && "" === node.value || node.value != value) && (node.value = toString(value)) : node.value !== toString(value) && (node.value = toString(value));
else if ("submit" === type || "reset" === type) {
node.removeAttribute("value");
return;
}
props.hasOwnProperty("value") ? setDefaultValue(node, props.type, value) : props.hasOwnProperty("defaultValue") && setDefaultValue(node, props.type, getToStringValue(props.defaultValue)), null == props.checked && null != props.defaultChecked && (node.defaultChecked = !!props.defaultChecked);
}
function postMountWrapper(element, props, isHydrating) {
var node = element;
if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) {
var type = props.type;
if (("submit" === type || "reset" === type) && (void 0 === props.value || null === props.value)) return;
var initialValue = toString(node._wrapperState.initialValue);
isHydrating || initialValue === node.value || (node.value = initialValue), node.defaultValue = initialValue;
}
var name = node.name;
"" !== name && (node.name = ""), node.defaultChecked = !node.defaultChecked, node.defaultChecked = !!node._wrapperState.initialChecked, "" !== name && (node.name = name);
}
function setDefaultValue(node, type, value) {
("number" !== type || getActiveElement(node.ownerDocument) !== node) && (null == value ? node.defaultValue = toString(node._wrapperState.initialValue) : node.defaultValue !== toString(value) && (node.defaultValue = toString(value)));
}
var didWarnSelectedSetOnOption = !1, didWarnInvalidChild = !1;
function validateProps(element, props) {
"object" == typeof props.children && null !== props.children && React.Children.forEach(props.children, function(child) {
null != child && "string" != typeof child && "number" != typeof child && "string" == typeof child.type && (didWarnInvalidChild || (didWarnInvalidChild = !0, error1("Only strings and numbers are supported as <option> children.")));
}), null == props.selected || didWarnSelectedSetOnOption || (error1("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), didWarnSelectedSetOnOption = !0);
}
function getHostProps$1(element, props) {
var children, content, hostProps = _assign({
children: void 0
}, props), content1 = (children = props.children, content = "", React.Children.forEach(children, function(child) {
null != child && (content += child);
}), content);
return content1 && (hostProps.children = content1), hostProps;
}
function getDeclarationErrorAddendum() {
var ownerName = getCurrentFiberOwnerNameInDevOrNull();
return ownerName ? "\n\nCheck the render method of `" + ownerName + "`." : "";
}
didWarnValueDefaultValue$1 = !1;
var valuePropNames = [
"value",
"defaultValue"
];
function updateOptions(node, multiple, propValue, setDefaultSelected) {
var options = node.options;
if (multiple) {
for(var selectedValues = propValue, selectedValue = {}, i = 0; i < selectedValues.length; i++)selectedValue["$" + selectedValues[i]] = !0;
for(var _i = 0; _i < options.length; _i++){
var selected = selectedValue.hasOwnProperty("$" + options[_i].value);
options[_i].selected !== selected && (options[_i].selected = selected), selected && setDefaultSelected && (options[_i].defaultSelected = !0);
}
} else {
for(var _selectedValue = toString(getToStringValue(propValue)), defaultSelected = null, _i2 = 0; _i2 < options.length; _i2++){
if (options[_i2].value === _selectedValue) {
options[_i2].selected = !0, setDefaultSelected && (options[_i2].defaultSelected = !0);
return;
}
null !== defaultSelected || options[_i2].disabled || (defaultSelected = options[_i2]);
}
null !== defaultSelected && (defaultSelected.selected = !0);
}
}
function getHostProps$2(element, props) {
return _assign({}, props, {
value: void 0
});
}
function initWrapperState$1(element, props1) {
var node = element;
!function(props) {
checkControlledValueProps("select", props);
for(var i = 0; i < valuePropNames.length; i++){
var propName = valuePropNames[i];
if (null != props[propName]) {
var isArray = Array.isArray(props[propName]);
props.multiple && !isArray ? error1("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", propName, getDeclarationErrorAddendum()) : !props.multiple && isArray && error1("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", propName, getDeclarationErrorAddendum());
}
}
}(props1), node._wrapperState = {
wasMultiple: !!props1.multiple
}, void 0 === props1.value || void 0 === props1.defaultValue || didWarnValueDefaultValue$1 || (error1("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"), didWarnValueDefaultValue$1 = !0);
}
var didWarnValDefaultVal = !1;
function getHostProps$3(element, props) {
if (null != props.dangerouslySetInnerHTML) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");
return _assign({}, props, {
value: void 0,
defaultValue: void 0,
children: toString(element._wrapperState.initialValue)
});
}
function initWrapperState$2(element, props) {
var node = element;
checkControlledValueProps("textarea", props), void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || (error1("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component"), didWarnValDefaultVal = !0);
var initialValue = props.value;
if (null == initialValue) {
var children = props.children, defaultValue = props.defaultValue;
if (null != children) {
if (error1("Use the `defaultValue` or `value` props instead of setting children on <textarea>."), null != defaultValue) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
if (Array.isArray(children)) {
if (!(children.length <= 1)) throw Error("<textarea> can only have at most one child.");
children = children[0];
}
defaultValue = children;
}
null == defaultValue && (defaultValue = ""), initialValue = defaultValue;
}
node._wrapperState = {
initialValue: getToStringValue(initialValue)
};
}
function updateWrapper$1(element, props) {
var node = element, value = getToStringValue(props.value), defaultValue = getToStringValue(props.defaultValue);
if (null != value) {
var newValue = toString(value);
newValue !== node.value && (node.value = newValue), null == props.defaultValue && node.defaultValue !== newValue && (node.defaultValue = newValue);
}
null != defaultValue && (node.defaultValue = toString(defaultValue));
}
function postMountWrapper$3(element, props) {
var node = element, textContent = node.textContent;
textContent === node._wrapperState.initialValue && "" !== textContent && null !== textContent && (node.value = textContent);
}
var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml", MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", Namespaces = {
html: HTML_NAMESPACE,
mathml: MATH_NAMESPACE,
svg: SVG_NAMESPACE
};
function getIntrinsicNamespace(type) {
switch(type){
case "svg":
return SVG_NAMESPACE;
case "math":
return MATH_NAMESPACE;
default:
return HTML_NAMESPACE;
}
}
function getChildNamespace(parentNamespace, type) {
return null == parentNamespace || parentNamespace === HTML_NAMESPACE ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE : parentNamespace;
}
var setInnerHTML = function(func) {
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
MSApp.execUnsafeLocalFunction(function() {
return func(arg0, arg1, arg2, arg3);
});
} : func;
}(function(node, html) {
if (node.namespaceURI === Namespaces.svg && !("innerHTML" in node)) {
(reusableSVGContainer = reusableSVGContainer || document.createElement("div")).innerHTML = "<svg>" + html.valueOf().toString() + "</svg>";
for(var svgNode = reusableSVGContainer.firstChild; node.firstChild;)node.removeChild(node.firstChild);
for(; svgNode.firstChild;)node.appendChild(svgNode.firstChild);
return;
}
node.innerHTML = html;
}), setTextContent = function(node, text) {
if (text) {
var firstChild = node.firstChild;
if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) {
firstChild.nodeValue = text;
return;
}
}
node.textContent = text;
}, shorthandToLonghand = {
animation: [
"animationDelay",
"animationDirection",
"animationDuration",
"animationFillMode",
"animationIterationCount",
"animationName",
"animationPlayState",
"animationTimingFunction"
],
background: [
"backgroundAttachment",
"backgroundClip",
"backgroundColor",
"backgroundImage",
"backgroundOrigin",
"backgroundPositionX",
"backgroundPositionY",
"backgroundRepeat",
"backgroundSize"
],
backgroundPosition: [
"backgroundPositionX",
"backgroundPositionY"
],
border: [
"borderBottomColor",
"borderBottomStyle",
"borderBottomWidth",
"borderImageOutset",
"borderImageRepeat",
"borderImageSlice",
"borderImageSource",
"borderImageWidth",
"borderLeftColor",
"borderLeftStyle",
"borderLeftWidth",
"borderRightColor",
"borderRightStyle",
"borderRightWidth",
"borderTopColor",
"borderTopStyle",
"borderTopWidth"
],
borderBlockEnd: [
"borderBlockEndColor",
"borderBlockEndStyle",
"borderBlockEndWidth"
],
borderBlockStart: [
"borderBlockStartColor",
"borderBlockStartStyle",
"borderBlockStartWidth"
],
borderBottom: [
"borderBottomColor",
"borderBottomStyle",
"borderBottomWidth"
],
borderColor: [
"borderBottomColor",
"borderLeftColor",
"borderRightColor",
"borderTopColor"
],
borderImage: [
"borderImageOutset",
"borderImageRepeat",
"borderImageSlice",
"borderImageSource",
"borderImageWidth"
],
borderInlineEnd: [
"borderInlineEndColor",
"borderInlineEndStyle",
"borderInlineEndWidth"
],
borderInlineStart: [
"borderInlineStartColor",
"borderInlineStartStyle",
"borderInlineStartWidth"
],
borderLeft: [
"borderLeftColor",
"borderLeftStyle",
"borderLeftWidth"
],
borderRadius: [
"borderBottomLeftRadius",
"borderBottomRightRadius",
"borderTopLeftRadius",
"borderTopRightRadius"
],
borderRight: [
"borderRightColor",
"borderRightStyle",
"borderRightWidth"
],
borderStyle: [
"borderBottomStyle",
"borderLeftStyle",
"borderRightStyle",
"borderTopStyle"
],
borderTop: [
"borderTopColor",
"borderTopStyle",
"borderTopWidth"
],
borderWidth: [
"borderBottomWidth",
"borderLeftWidth",
"borderRightWidth",
"borderTopWidth"
],
columnRule: [
"columnRuleColor",
"columnRuleStyle",
"columnRuleWidth"
],
columns: [
"columnCount",
"columnWidth"
],
flex: [
"flexBasis",
"flexGrow",
"flexShrink"
],
flexFlow: [
"flexDirection",
"flexWrap"
],
font: [
"fontFamily",
"fontFeatureSettings",
"fontKerning",
"fontLanguageOverride",
"fontSize",
"fontSizeAdjust",
"fontStretch",
"fontStyle",
"fontVariant",
"fontVariantAlternates",
"fontVariantCaps",
"fontVariantEastAsian",
"fontVariantLigatures",
"fontVariantNumeric",
"fontVariantPosition",
"fontWeight",
"lineHeight"
],
fontVariant: [
"fontVariantAlternates",
"fontVariantCaps",
"fontVariantEastAsian",
"fontVariantLigatures",
"fontVariantNumeric",
"fontVariantPosition"
],
gap: [
"columnGap",
"rowGap"
],
grid: [
"gridAutoColumns",
"gridAutoFlow",
"gridAutoRows",
"gridTemplateAreas",
"gridTemplateColumns",
"gridTemplateRows"
],
gridArea: [
"gridColumnEnd",
"gridColumnStart",
"gridRowEnd",
"gridRowStart"
],
gridColumn: [
"gridColumnEnd",
"gridColumnStart"
],
gridColumnGap: [
"columnGap"
],
gridGap: [
"columnGap",
"rowGap"
],
gridRow: [
"gridRowEnd",
"gridRowStart"
],
gridRowGap: [
"rowGap"
],
gridTemplate: [
"gridTemplateAreas",
"gridTemplateColumns",
"gridTemplateRows"
],
listStyle: [
"listStyleImage",
"listStylePosition",
"listStyleType"
],
margin: [
"marginBottom",
"marginLeft",
"marginRight",
"marginTop"
],
marker: [
"markerEnd",
"markerMid",
"markerStart"
],
mask: [
"maskClip",
"maskComposite",
"maskImage",
"maskMode",
"maskOrigin",
"maskPositionX",
"maskPositionY",
"maskRepeat",
"maskSize"
],
maskPosition: [
"maskPositionX",
"maskPositionY"
],
outline: [
"outlineColor",
"outlineStyle",
"outlineWidth"
],
overflow: [
"overflowX",
"overflowY"
],
padding: [
"paddingBottom",
"paddingLeft",
"paddingRight",
"paddingTop"
],
placeContent: [
"alignContent",
"justifyContent"
],
placeItems: [
"alignItems",
"justifyItems"
],
placeSelf: [
"alignSelf",
"justifySelf"
],
textDecoration: [
"textDecorationColor",
"textDecorationLine",
"textDecorationStyle"
],
textEmphasis: [
"textEmphasisColor",
"textEmphasisStyle"
],
transition: [
"transitionDelay",
"transitionDuration",
"transitionProperty",
"transitionTimingFunction"
],
wordWrap: [
"overflowWrap"
]
}, isUnitlessNumber = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridArea: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
}, prefixes1 = [
"Webkit",
"ms",
"Moz",
"O"
];
function dangerousStyleValue(name, value, isCustomProperty) {
return null == value || "boolean" == typeof value || "" === value ? "" : isCustomProperty || "number" != typeof value || 0 === value || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name] ? ("" + value).trim() : value + "px";
}
Object.keys(isUnitlessNumber).forEach(function(prop) {
prefixes1.forEach(function(prefix) {
var key;
isUnitlessNumber[prefix + (key = prop).charAt(0).toUpperCase() + key.substring(1)] = isUnitlessNumber[prop];
});
});
var uppercasePattern = /([A-Z])/g, msPattern = /^ms-/;
function hyphenateStyleName(name) {
return name.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-");
}
var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern$1 = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnedForInfinityValue = !1, warnHyphenatedStyleName = function(name) {
warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, error1("Unsupported style property %s. Did you mean %s?", name, name.replace(msPattern$1, "ms-").replace(hyphenPattern, function(_, character) {
return character.toUpperCase();
})));
}, warnBadVendoredStyleName = function(name) {
warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, error1("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, name.charAt(0).toUpperCase() + name.slice(1)));
}, warnStyleValueWithSemicolon = function(name, value) {
warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0, error1("Style property values shouldn't contain a semicolon. Try \"%s: %s\" instead.", name, value.replace(badStyleValueWithSemicolonPattern, "")));
}, warnStyleValueIsNaN = function(name, value) {
warnedForNaNValue || (warnedForNaNValue = !0, error1("`NaN` is an invalid value for the `%s` css style property.", name));
}, warnStyleValueIsInfinity = function(name, value) {
warnedForInfinityValue || (warnedForInfinityValue = !0, error1("`Infinity` is an invalid value for the `%s` css style property.", name));
}, warnValidStyle$1 = function(name, value) {
name.indexOf("-") > -1 ? warnHyphenatedStyleName(name) : badVendoredStyleNamePattern.test(name) ? warnBadVendoredStyleName(name) : badStyleValueWithSemicolonPattern.test(value) && warnStyleValueWithSemicolon(name, value), "number" != typeof value || (isNaN(value) ? warnStyleValueIsNaN(name, value) : isFinite(value) || warnStyleValueIsInfinity(name, value));
};
function createDangerousStringForStyles(styles) {
var serialized = "", delimiter = "";
for(var styleName in styles)if (styles.hasOwnProperty(styleName)) {
var styleValue = styles[styleName];
if (null != styleValue) {
var isCustomProperty = 0 === styleName.indexOf("--");
serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ":", serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty), delimiter = ";";
}
}
return serialized || null;
}
function setValueForStyles(node, styles) {
var style = node.style;
for(var styleName in styles)if (styles.hasOwnProperty(styleName)) {
var isCustomProperty = 0 === styleName.indexOf("--");
isCustomProperty || warnValidStyle$1(styleName, styles[styleName]);
var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
"float" === styleName && (styleName = "cssFloat"), isCustomProperty ? style.setProperty(styleName, styleValue) : style[styleName] = styleValue;
}
}
function isValueEmpty(value) {
return null == value || "boolean" == typeof value || "" === value;
}
function expandShorthandMap(styles) {
var expanded = {};
for(var key in styles)for(var longhands = shorthandToLonghand[key] || [
key
], i = 0; i < longhands.length; i++)expanded[longhands[i]] = key;
return expanded;
}
var voidElementTags = _assign({
menuitem: !0
}, {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
});
function assertValidProps(tag, props) {
if (props) {
if (voidElementTags[tag] && !(null == props.children && null == props.dangerouslySetInnerHTML)) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");
if (null != props.dangerouslySetInnerHTML) {
if (null != props.children) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
if (!("object" == typeof props.dangerouslySetInnerHTML && "__html" in props.dangerouslySetInnerHTML)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
}
if (!props.suppressContentEditableWarning && props.contentEditable && null != props.children && error1("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."), !(null == props.style || "object" == typeof props.style)) throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
}
}
function isCustomComponent(tagName, props) {
if (-1 === tagName.indexOf("-")) return "string" == typeof props.is;
switch(tagName){
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0;
}
}
var possibleStandardNames = {
accept: "accept",
acceptcharset: "acceptCharset",
"accept-charset": "acceptCharset",
accesskey: "accessKey",
action: "action",
allowfullscreen: "allowFullScreen",
alt: "alt",
as: "as",
async: "async",
autocapitalize: "autoCapitalize",
autocomplete: "autoComplete",
autocorrect: "autoCorrect",
autofocus: "autoFocus",
autoplay: "autoPlay",
autosave: "autoSave",
capture: "capture",
cellpadding: "cellPadding",
cellspacing: "cellSpacing",
challenge: "challenge",
charset: "charSet",
checked: "checked",
children: "children",
cite: "cite",
class: "className",
classid: "classID",
classname: "className",
cols: "cols",
colspan: "colSpan",
content: "content",
contenteditable: "contentEditable",
contextmenu: "contextMenu",
controls: "controls",
controlslist: "controlsList",
coords: "coords",
crossorigin: "crossOrigin",
dangerouslysetinnerhtml: "dangerouslySetInnerHTML",
data: "data",
datetime: "dateTime",
default: "default",
defaultchecked: "defaultChecked",
defaultvalue: "defaultValue",
defer: "defer",
dir: "dir",
disabled: "disabled",
disablepictureinpicture: "disablePictureInPicture",
disableremoteplayback: "disableRemotePlayback",
download: "download",
draggable: "draggable",
enctype: "encType",
enterkeyhint: "enterKeyHint",
for: "htmlFor",
form: "form",
formmethod: "formMethod",
formaction: "formAction",
formenctype: "formEncType",
formnovalidate: "formNoValidate",
formtarget: "formTarget",
frameborder: "frameBorder",
headers: "headers",
height: "height",
hidden: "hidden",
high: "high",
href: "href",
hreflang: "hrefLang",
htmlfor: "htmlFor",
httpequiv: "httpEquiv",
"http-equiv": "httpEquiv",
icon: "icon",
id: "id",
innerhtml: "innerHTML",
inputmode: "inputMode",
integrity: "integrity",
is: "is",
itemid: "itemID",
itemprop: "itemProp",
itemref: "itemRef",
itemscope: "itemScope",
itemtype: "itemType",
keyparams: "keyParams",
keytype: "keyType",
kind: "kind",
label: "label",
lang: "lang",
list: "list",
loop: "loop",
low: "low",
manifest: "manifest",
marginwidth: "marginWidth",
marginheight: "marginHeight",
max: "max",
maxlength: "maxLength",
media: "media",
mediagroup: "mediaGroup",
method: "method",
min: "min",
minlength: "minLength",
multiple: "multiple",
muted: "muted",
name: "name",
nomodule: "noModule",
nonce: "nonce",
novalidate: "noValidate",
open: "open",
optimum: "optimum",
pattern: "pattern",
placeholder: "placeholder",
playsinline: "playsInline",
poster: "poster",
preload: "preload",
profile: "profile",
radiogroup: "radioGroup",
readonly: "readOnly",
referrerpolicy: "referrerPolicy",
rel: "rel",
required: "required",
reversed: "reversed",
role: "role",
rows: "rows",
rowspan: "rowSpan",
sandbox: "sandbox",
scope: "scope",
scoped: "scoped",
scrolling: "scrolling",
seamless: "seamless",
selected: "selected",
shape: "shape",
size: "size",
sizes: "sizes",
span: "span",
spellcheck: "spellCheck",
src: "src",
srcdoc: "srcDoc",
srclang: "srcLang",
srcset: "srcSet",
start: "start",
step: "step",
style: "style",
summary: "summary",
tabindex: "tabIndex",
target: "target",
title: "title",
type: "type",
usemap: "useMap",
value: "value",
width: "width",
wmode: "wmode",
wrap: "wrap",
about: "about",
accentheight: "accentHeight",
"accent-height": "accentHeight",
accumulate: "accumulate",
additive: "additive",
alignmentbaseline: "alignmentBaseline",
"alignment-baseline": "alignmentBaseline",
allowreorder: "allowReorder",
alphabetic: "alphabetic",
amplitude: "amplitude",
arabicform: "arabicForm",
"arabic-form": "arabicForm",
ascent: "ascent",
attributename: "attributeName",
attributetype: "attributeType",
autoreverse: "autoReverse",
azimuth: "azimuth",
basefrequency: "baseFrequency",
baselineshift: "baselineShift",
"baseline-shift": "baselineShift",
baseprofile: "baseProfile",
bbox: "bbox",
begin: "begin",
bias: "bias",
by: "by",
calcmode: "calcMode",
capheight: "capHeight",
"cap-height": "capHeight",
clip: "clip",
clippath: "clipPath",
"clip-path": "clipPath",
clippathunits: "clipPathUnits",
cliprule: "clipRule",
"clip-rule": "clipRule",
color: "color",
colorinterpolation: "colorInterpolation",
"color-interpolation": "colorInterpolation",
colorinterpolationfilters: "colorInterpolationFilters",
"color-interpolation-filters": "colorInterpolationFilters",
colorprofile: "colorProfile",
"color-profile": "colorProfile",
colorrendering: "colorRendering",
"color-rendering": "colorRendering",
contentscripttype: "contentScriptType",
contentstyletype: "contentStyleType",
cursor: "cursor",
cx: "cx",
cy: "cy",
d: "d",
datatype: "datatype",
decelerate: "decelerate",
descent: "descent",
diffuseconstant: "diffuseConstant",
direction: "direction",
display: "display",
divisor: "divisor",
dominantbaseline: "dominantBaseline",
"dominant-baseline": "dominantBaseline",
dur: "dur",
dx: "dx",
dy: "dy",
edgemode: "edgeMode",
elevation: "elevation",
enablebackground: "enableBackground",
"enable-background": "enableBackground",
end: "end",
exponent: "exponent",
externalresourcesrequired: "externalResourcesRequired",
fill: "fill",
fillopacity: "fillOpacity",
"fill-opacity": "fillOpacity",
fillrule: "fillRule",
"fill-rule": "fillRule",
filter: "filter",
filterres: "filterRes",
filterunits: "filterUnits",
floodopacity: "floodOpacity",
"flood-opacity": "floodOpacity",
floodcolor: "floodColor",
"flood-color": "floodColor",
focusable: "focusable",
fontfamily: "fontFamily",
"font-family": "fontFamily",
fontsize: "fontSize",
"font-size": "fontSize",
fontsizeadjust: "fontSizeAdjust",
"font-size-adjust": "fontSizeAdjust",
fontstretch: "fontStretch",
"font-stretch": "fontStretch",
fontstyle: "fontStyle",
"font-style": "fontStyle",
fontvariant: "fontVariant",
"font-variant": "fontVariant",
fontweight: "fontWeight",
"font-weight": "fontWeight",
format: "format",
from: "from",
fx: "fx",
fy: "fy",
g1: "g1",
g2: "g2",
glyphname: "glyphName",
"glyph-name": "glyphName",
glyphorientationhorizontal: "glyphOrientationHorizontal",
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
glyphorientationvertical: "glyphOrientationVertical",
"glyph-orientation-vertical": "glyphOrientationVertical",
glyphref: "glyphRef",
gradienttransform: "gradientTransform",
gradientunits: "gradientUnits",
hanging: "hanging",
horizadvx: "horizAdvX",
"horiz-adv-x": "horizAdvX",
horizoriginx: "horizOriginX",
"horiz-origin-x": "horizOriginX",
ideographic: "ideographic",
imagerendering: "imageRendering",
"image-rendering": "imageRendering",
in2: "in2",
in: "in",
inlist: "inlist",
intercept: "intercept",
k1: "k1",
k2: "k2",
k3: "k3",
k4: "k4",
k: "k",
kernelmatrix: "kernelMatrix",
kernelunitlength: "kernelUnitLength",
kerning: "kerning",
keypoints: "keyPoints",
keysplines: "keySplines",
keytimes: "keyTimes",
lengthadjust: "lengthAdjust",
letterspacing: "letterSpacing",
"letter-spacing": "letterSpacing",
lightingcolor: "lightingColor",
"lighting-color": "lightingColor",
limitingconeangle: "limitingConeAngle",
local: "local",
markerend: "markerEnd",
"marker-end": "markerEnd",
markerheight: "markerHeight",
markermid: "markerMid",
"marker-mid": "markerMid",
markerstart: "markerStart",
"marker-start": "markerStart",
markerunits: "markerUnits",
markerwidth: "markerWidth",
mask: "mask",
maskcontentunits: "maskContentUnits",
maskunits: "maskUnits",
mathematical: "mathematical",
mode: "mode",
numoctaves: "numOctaves",
offset: "offset",
opacity: "opacity",
operator: "operator",
order: "order",
orient: "orient",
orientation: "orientation",
origin: "origin",
overflow: "overflow",
overlineposition: "overlinePosition",
"overline-position": "overlinePosition",
overlinethickness: "overlineThickness",
"overline-thickness": "overlineThickness",
paintorder: "paintOrder",
"paint-order": "paintOrder",
panose1: "panose1",
"panose-1": "panose1",
pathlength: "pathLength",
patterncontentunits: "patternContentUnits",
patterntransform: "patternTransform",
patternunits: "patternUnits",
pointerevents: "pointerEvents",
"pointer-events": "pointerEvents",
points: "points",
pointsatx: "pointsAtX",
pointsaty: "pointsAtY",
pointsatz: "pointsAtZ",
prefix: "prefix",
preservealpha: "preserveAlpha",
preserveaspectratio: "preserveAspectRatio",
primitiveunits: "primitiveUnits",
property: "property",
r: "r",
radius: "radius",
refx: "refX",
refy: "refY",
renderingintent: "renderingIntent",
"rendering-intent": "renderingIntent",
repeatcount: "repeatCount",
repeatdur: "repeatDur",
requiredextensions: "requiredExtensions",
requiredfeatures: "requiredFeatures",
resource: "resource",
restart: "restart",
result: "result",
results: "results",
rotate: "rotate",
rx: "rx",
ry: "ry",
scale: "scale",
security: "security",
seed: "seed",
shaperendering: "shapeRendering",
"shape-rendering": "shapeRendering",
slope: "slope",
spacing: "spacing",
specularconstant: "specularConstant",
specularexponent: "specularExponent",
speed: "speed",
spreadmethod: "spreadMethod",
startoffset: "startOffset",
stddeviation: "stdDeviation",
stemh: "stemh",
stemv: "stemv",
stitchtiles: "stitchTiles",
stopcolor: "stopColor",
"stop-color": "stopColor",
stopopacity: "stopOpacity",
"stop-opacity": "stopOpacity",
strikethroughposition: "strikethroughPosition",
"strikethrough-position": "strikethroughPosition",
strikethroughthickness: "strikethroughThickness",
"strikethrough-thickness": "strikethroughThickness",
string: "string",
stroke: "stroke",
strokedasharray: "strokeDasharray",
"stroke-dasharray": "strokeDasharray",
strokedashoffset: "strokeDashoffset",
"stroke-dashoffset": "strokeDashoffset",
strokelinecap: "strokeLinecap",
"stroke-linecap": "strokeLinecap",
strokelinejoin: "strokeLinejoin",
"stroke-linejoin": "strokeLinejoin",
strokemiterlimit: "strokeMiterlimit",
"stroke-miterlimit": "strokeMiterlimit",
strokewidth: "strokeWidth",
"stroke-width": "strokeWidth",
strokeopacity: "strokeOpacity",
"stroke-opacity": "strokeOpacity",
suppresscontenteditablewarning: "suppressContentEditableWarning",
suppresshydrationwarning: "suppressHydrationWarning",
surfacescale: "surfaceScale",
systemlanguage: "systemLanguage",
tablevalues: "tableValues",
targetx: "targetX",
targety: "targetY",
textanchor: "textAnchor",
"text-anchor": "textAnchor",
textdecoration: "textDecoration",
"text-decoration": "textDecoration",
textlength: "textLength",
textrendering: "textRendering",
"text-rendering": "textRendering",
to: "to",
transform: "transform",
typeof: "typeof",
u1: "u1",
u2: "u2",
underlineposition: "underlinePosition",
"underline-position": "underlinePosition",
underlinethickness: "underlineThickness",
"underline-thickness": "underlineThickness",
unicode: "unicode",
unicodebidi: "unicodeBidi",
"unicode-bidi": "unicodeBidi",
unicoderange: "unicodeRange",
"unicode-range": "unicodeRange",
unitsperem: "unitsPerEm",
"units-per-em": "unitsPerEm",
unselectable: "unselectable",
valphabetic: "vAlphabetic",
"v-alphabetic": "vAlphabetic",
values: "values",
vectoreffect: "vectorEffect",
"vector-effect": "vectorEffect",
version: "version",
vertadvy: "vertAdvY",
"vert-adv-y": "vertAdvY",
vertoriginx: "vertOriginX",
"vert-origin-x": "vertOriginX",
vertoriginy: "vertOriginY",
"vert-origin-y": "vertOriginY",
vhanging: "vHanging",
"v-hanging": "vHanging",
videographic: "vIdeographic",
"v-ideographic": "vIdeographic",
viewbox: "viewBox",
viewtarget: "viewTarget",
visibility: "visibility",
vmathematical: "vMathematical",
"v-mathematical": "vMathematical",
vocab: "vocab",
widths: "widths",
wordspacing: "wordSpacing",
"word-spacing": "wordSpacing",
writingmode: "writingMode",
"writing-mode": "writingMode",
x1: "x1",
x2: "x2",
x: "x",
xchannelselector: "xChannelSelector",
xheight: "xHeight",
"x-height": "xHeight",
xlinkactuate: "xlinkActuate",
"xlink:actuate": "xlinkActuate",
xlinkarcrole: "xlinkArcrole",
"xlink:arcrole": "xlinkArcrole",
xlinkhref: "xlinkHref",
"xlink:href": "xlinkHref",
xlinkrole: "xlinkRole",
"xlink:role": "xlinkRole",
xlinkshow: "xlinkShow",
"xlink:show": "xlinkShow",
xlinktitle: "xlinkTitle",
"xlink:title": "xlinkTitle",
xlinktype: "xlinkType",
"xlink:type": "xlinkType",
xmlbase: "xmlBase",
"xml:base": "xmlBase",
xmllang: "xmlLang",
"xml:lang": "xmlLang",
xmlns: "xmlns",
"xml:space": "xmlSpace",
xmlnsxlink: "xmlnsXlink",
"xmlns:xlink": "xmlnsXlink",
xmlspace: "xmlSpace",
y1: "y1",
y2: "y2",
y: "y",
ychannelselector: "yChannelSelector",
z: "z",
zoomandpan: "zoomAndPan"
}, ariaProperties = {
"aria-current": 0,
"aria-details": 0,
"aria-disabled": 0,
"aria-hidden": 0,
"aria-invalid": 0,
"aria-keyshortcuts": 0,
"aria-label": 0,
"aria-roledescription": 0,
"aria-autocomplete": 0,
"aria-checked": 0,
"aria-expanded": 0,
"aria-haspopup": 0,
"aria-level": 0,
"aria-modal": 0,
"aria-multiline": 0,
"aria-multiselectable": 0,
"aria-orientation": 0,
"aria-placeholder": 0,
"aria-pressed": 0,
"aria-readonly": 0,
"aria-required": 0,
"aria-selected": 0,
"aria-sort": 0,
"aria-valuemax": 0,
"aria-valuemin": 0,
"aria-valuenow": 0,
"aria-valuetext": 0,
"aria-atomic": 0,
"aria-busy": 0,
"aria-live": 0,
"aria-relevant": 0,
"aria-dropeffect": 0,
"aria-grabbed": 0,
"aria-activedescendant": 0,
"aria-colcount": 0,
"aria-colindex": 0,
"aria-colspan": 0,
"aria-controls": 0,
"aria-describedby": 0,
"aria-errormessage": 0,
"aria-flowto": 0,
"aria-labelledby": 0,
"aria-owns": 0,
"aria-posinset": 0,
"aria-rowcount": 0,
"aria-rowindex": 0,
"aria-rowspan": 0,
"aria-setsize": 0
}, warnedProperties = {}, rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty$1 = Object.prototype.hasOwnProperty;
function validateProperty(tagName, name) {
if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) return !0;
if (rARIACamel.test(name)) {
var ariaName = "aria-" + name.slice(4).toLowerCase(), correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
if (null == correctName) return error1("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", name), warnedProperties[name] = !0, !0;
if (name !== correctName) return error1("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, correctName), warnedProperties[name] = !0, !0;
}
if (rARIA.test(name)) {
var lowerCasedName = name.toLowerCase(), standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
if (null == standardName) return warnedProperties[name] = !0, !1;
if (name !== standardName) return error1("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, standardName), warnedProperties[name] = !0, !0;
}
return !0;
}
var didWarnValueNull = !1, validateProperty$1 = function() {}, warnedProperties$1 = {}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$");
validateProperty$1 = function(tagName, name, value, eventRegistry) {
if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0;
var lowerCasedName = name.toLowerCase();
if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) return error1("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."), warnedProperties$1[name] = !0, !0;
if (null != eventRegistry) {
var registrationNameDependencies = eventRegistry.registrationNameDependencies, possibleRegistrationNames = eventRegistry.possibleRegistrationNames;
if (registrationNameDependencies.hasOwnProperty(name)) return !0;
var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
if (null != registrationName) return error1("Invalid event handler property `%s`. Did you mean `%s`?", name, registrationName), warnedProperties$1[name] = !0, !0;
if (EVENT_NAME_REGEX.test(name)) return error1("Unknown event handler property `%s`. It will be ignored.", name), warnedProperties$1[name] = !0, !0;
} else if (EVENT_NAME_REGEX.test(name)) return INVALID_EVENT_NAME_REGEX.test(name) && error1("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", name), warnedProperties$1[name] = !0, !0;
if (rARIA$1.test(name) || rARIACamel$1.test(name)) return !0;
if ("innerhtml" === lowerCasedName) return error1("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."), warnedProperties$1[name] = !0, !0;
if ("aria" === lowerCasedName) return error1("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."), warnedProperties$1[name] = !0, !0;
if ("is" === lowerCasedName && null != value && "string" != typeof value) return error1("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof value), warnedProperties$1[name] = !0, !0;
if ("number" == typeof value && isNaN(value)) return error1("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", name), warnedProperties$1[name] = !0, !0;
var propertyInfo = getPropertyInfo(name), isReserved = null !== propertyInfo && 0 === propertyInfo.type;
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
var standardName = possibleStandardNames[lowerCasedName];
if (standardName !== name) return error1("Invalid DOM property `%s`. Did you mean `%s`?", name, standardName), warnedProperties$1[name] = !0, !0;
} else if (!isReserved && name !== lowerCasedName) return error1("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", name, lowerCasedName), warnedProperties$1[name] = !0, !0;
return "boolean" == typeof value && shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) ? (value ? error1("Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.", value, name, name, value, name) : error1("Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", value, name, name, value, name, name, name), warnedProperties$1[name] = !0, !0) : !!isReserved || (shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) ? (warnedProperties$1[name] = !0, !1) : "false" !== value && "true" !== value || null === propertyInfo || 3 !== propertyInfo.type || (error1("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", value, name, "false" === value ? "The browser will interpret it as a truthy value." : "Although this works, it will not work as expected if you pass the string \"false\".", name, value), warnedProperties$1[name] = !0, !0));
};
var warnUnknownProperties = function(type, props, eventRegistry) {
var unknownProps = [];
for(var key in props)validateProperty$1(type, key, props[key], eventRegistry) || unknownProps.push(key);
var unknownPropString = unknownProps.map(function(prop) {
return "`" + prop + "`";
}).join(", ");
1 === unknownProps.length ? error1("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", unknownPropString, type) : unknownProps.length > 1 && error1("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", unknownPropString, type);
};
function getEventTarget(nativeEvent) {
var target = nativeEvent.target || nativeEvent.srcElement || window;
return target.correspondingUseElement && (target = target.correspondingUseElement), 3 === target.nodeType ? target.parentNode : target;
}
var restoreImpl = null, restoreTarget = null, restoreQueue = null;
function restoreStateOfTarget(target) {
var internalInstance = getInstanceFromNode(target);
if (internalInstance) {
if ("function" != typeof restoreImpl) throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");
var stateNode = internalInstance.stateNode;
if (stateNode) {
var _props = getFiberCurrentPropsFromNode(stateNode);
restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
}
}
}
function enqueueStateRestore(target) {
restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [
target
] : restoreTarget = target;
}
function restoreStateIfNeeded() {
if (restoreTarget) {
var target = restoreTarget, queuedTargets = restoreQueue;
if (restoreTarget = null, restoreQueue = null, restoreStateOfTarget(target), queuedTargets) for(var i = 0; i < queuedTargets.length; i++)restoreStateOfTarget(queuedTargets[i]);
}
}
var batchedUpdatesImpl = function(fn, bookkeeping) {
return fn(bookkeeping);
}, discreteUpdatesImpl = function(fn, a, b, c, d) {
return fn(a, b, c, d);
}, flushDiscreteUpdatesImpl = function() {}, batchedEventUpdatesImpl = batchedUpdatesImpl, isInsideEventHandler = !1, isBatchingEventUpdates = !1;
function finishEventHandler() {
(null !== restoreTarget || null !== restoreQueue) && (flushDiscreteUpdatesImpl(), restoreStateIfNeeded());
}
function getListener(inst, registrationName) {
var stateNode = inst.stateNode;
if (null === stateNode) return null;
var props2 = getFiberCurrentPropsFromNode(stateNode);
if (null === props2) return null;
var listener = props2[registrationName];
if ((function(name, type, props) {
switch(name){
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
var tag;
return !!(props.disabled && ("button" === (tag = type) || "input" === tag || "select" === tag || "textarea" === tag));
default:
return !1;
}
})(registrationName, inst.type, props2)) return null;
if (!(!listener || "function" == typeof listener)) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type.");
return listener;
}
var passiveBrowserEventsSupported = !1;
if (canUseDOM) try {
var options1 = {};
Object.defineProperty(options1, "passive", {
get: function() {
passiveBrowserEventsSupported = !0;
}
}), window.addEventListener("test", options1, options1), window.removeEventListener("test", options1, options1);
} catch (e1) {
passiveBrowserEventsSupported = !1;
}
function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
var funcArgs = Array.prototype.slice.call(arguments, 3);
try {
func.apply(context, funcArgs);
} catch (error) {
this.onError(error);
}
}
var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
if ("undefined" != typeof window && "function" == typeof window.dispatchEvent && "undefined" != typeof document && "function" == typeof document.createEvent) {
var fakeNode = document.createElement("react");
invokeGuardedCallbackImpl = function(name, func, context, a, b, c, d, e, f) {
if (!("undefined" != typeof document)) throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
var error, evt = document.createEvent("Event"), didCall = !1, didError = !0, windowEvent = window.event, windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event");
function restoreAfterDispatch() {
fakeNode.removeEventListener(evtType, callCallback, !1), void 0 !== window.event && window.hasOwnProperty("event") && (window.event = windowEvent);
}
var funcArgs = Array.prototype.slice.call(arguments, 3);
function callCallback() {
didCall = !0, restoreAfterDispatch(), func.apply(context, funcArgs), didError = !1;
}
var didSetError = !1, isCrossOriginError = !1;
function handleWindowError(event) {
if (didSetError = !0, null === (error = event.error) && 0 === event.colno && 0 === event.lineno && (isCrossOriginError = !0), event.defaultPrevented && null != error && "object" == typeof error) try {
error._suppressLogging = !0;
} catch (inner) {}
}
var evtType = "react-" + (name || "invokeguardedcallback");
if (window.addEventListener("error", handleWindowError), fakeNode.addEventListener(evtType, callCallback, !1), evt.initEvent(evtType, !1, !1), fakeNode.dispatchEvent(evt), windowEventDescriptor && Object.defineProperty(window, "event", windowEventDescriptor), didCall && didError && (didSetError ? isCrossOriginError && (error = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : error = new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."), this.onError(error)), window.removeEventListener("error", handleWindowError), !didCall) return restoreAfterDispatch(), invokeGuardedCallbackProd.apply(this, arguments);
};
}
var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl, hasError = !1, caughtError = null, hasRethrowError = !1, rethrowError = null, reporter = {
onError: function(error) {
hasError = !0, caughtError = error;
}
};
function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
hasError = !1, caughtError = null, invokeGuardedCallbackImpl$1.apply(reporter, arguments);
}
function hasCaughtError() {
return hasError;
}
function clearCaughtError() {
if (hasError) {
var error = caughtError;
return hasError = !1, caughtError = null, error;
}
throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
}
var _ReactInternals$Sched = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler, unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback, unstable_now = _ReactInternals$Sched.unstable_now, unstable_scheduleCallback = _ReactInternals$Sched.unstable_scheduleCallback, unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield, unstable_requestPaint = _ReactInternals$Sched.unstable_requestPaint, unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode, unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority, unstable_next = _ReactInternals$Sched.unstable_next, unstable_continueExecution = _ReactInternals$Sched.unstable_continueExecution, unstable_pauseExecution = _ReactInternals$Sched.unstable_pauseExecution, unstable_getCurrentPriorityLevel = _ReactInternals$Sched.unstable_getCurrentPriorityLevel, unstable_ImmediatePriority = _ReactInternals$Sched.unstable_ImmediatePriority, unstable_UserBlockingPriority = _ReactInternals$Sched.unstable_UserBlockingPriority, unstable_NormalPriority = _ReactInternals$Sched.unstable_NormalPriority, unstable_LowPriority = _ReactInternals$Sched.unstable_LowPriority, unstable_IdlePriority = _ReactInternals$Sched.unstable_IdlePriority, unstable_forceFrameRate = _ReactInternals$Sched.unstable_forceFrameRate, unstable_flushAllWithoutAsserting = _ReactInternals$Sched.unstable_flushAllWithoutAsserting;
function get1(key) {
return key._reactInternals;
}
var NoFlags = 0, Placement = 2, Update = 4, Deletion = 8, DidCapture = 64, Hydrating = 1024, ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {
var node = fiber, nearestMounted = fiber;
if (fiber.alternate) for(; node.return;)node = node.return;
else {
var nextNode = node;
do ((node = nextNode).flags & (Placement | Hydrating)) !== NoFlags && (nearestMounted = node.return), nextNode = node.return;
while (nextNode)
}
return 3 === node.tag ? nearestMounted : null;
}
function getSuspenseInstanceFromFiber(fiber) {
if (13 === fiber.tag) {
var suspenseState = fiber.memoizedState;
if (null === suspenseState) {
var current = fiber.alternate;
null !== current && (suspenseState = current.memoizedState);
}
if (null !== suspenseState) return suspenseState.dehydrated;
}
return null;
}
function getContainerFromFiber(fiber) {
return 3 === fiber.tag ? fiber.stateNode.containerInfo : null;
}
function assertIsMounted(fiber) {
if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component.");
}
function findCurrentFiberUsingSlowPath(fiber) {
var alternate = fiber.alternate;
if (!alternate) {
var nearestMounted = getNearestMountedFiber(fiber);
if (!(null !== nearestMounted)) throw Error("Unable to find node on an unmounted component.");
return nearestMounted !== fiber ? null : fiber;
}
for(var a = fiber, b = alternate;;){
var parentA = a.return;
if (null === parentA) break;
var parentB = parentA.alternate;
if (null === parentB) {
var nextParent = parentA.return;
if (null !== nextParent) {
a = b = nextParent;
continue;
}
break;
}
if (parentA.child === parentB.child) {
for(var child = parentA.child; child;){
if (child === a) return assertIsMounted(parentA), fiber;
if (child === b) return assertIsMounted(parentA), alternate;
child = child.sibling;
}
throw Error("Unable to find node on an unmounted component.");
}
if (a.return !== b.return) a = parentA, b = parentB;
else {
for(var didFindChild = !1, _child = parentA.child; _child;){
if (_child === a) {
didFindChild = !0, a = parentA, b = parentB;
break;
}
if (_child === b) {
didFindChild = !0, b = parentA, a = parentB;
break;
}
_child = _child.sibling;
}
if (!didFindChild) {
for(_child = parentB.child; _child;){
if (_child === a) {
didFindChild = !0, a = parentB, b = parentA;
break;
}
if (_child === b) {
didFindChild = !0, b = parentB, a = parentA;
break;
}
_child = _child.sibling;
}
if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
}
}
if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
}
if (3 !== a.tag) throw Error("Unable to find node on an unmounted component.");
return a.stateNode.current === a ? fiber : alternate;
}
function findCurrentHostFiber(parent) {
var currentParent = findCurrentFiberUsingSlowPath(parent);
if (!currentParent) return null;
for(var node = currentParent;;){
if (5 === node.tag || 6 === node.tag) return node;
if (node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === currentParent) return null;
for(; !node.sibling;){
if (!node.return || node.return === currentParent) return null;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return null;
}
function doesFiberContain(parentFiber, childFiber) {
for(var node = childFiber, parentFiberAlternate = parentFiber.alternate; null !== node;){
if (node === parentFiber || node === parentFiberAlternate) return !0;
node = node.return;
}
return !1;
}
var hasScheduledReplayAttempt = !1, queuedDiscreteEvents = [], queuedFocus = null, queuedDrag = null, queuedMouse = null, queuedPointers = new Map(), queuedPointerCaptures = new Map(), queuedExplicitHydrationTargets = [], discreteReplayableEvents = [
"mousedown",
"mouseup",
"touchcancel",
"touchend",
"touchstart",
"auxclick",
"dblclick",
"pointercancel",
"pointerdown",
"pointerup",
"dragend",
"dragstart",
"drop",
"compositionend",
"compositionstart",
"keydown",
"keypress",
"keyup",
"input",
"textInput",
"copy",
"cut",
"paste",
"click",
"change",
"contextmenu",
"reset",
"submit"
];
function isReplayableDiscreteEvent(eventType) {
return discreteReplayableEvents.indexOf(eventType) > -1;
}
function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
return {
blockedOn: blockedOn,
domEventName: domEventName,
eventSystemFlags: 16 | eventSystemFlags,
nativeEvent: nativeEvent,
targetContainers: [
targetContainer
]
};
}
function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
queuedDiscreteEvents.push(queuedEvent);
}
function clearIfContinuousEvent(domEventName, nativeEvent) {
switch(domEventName){
case "focusin":
case "focusout":
queuedFocus = null;
break;
case "dragenter":
case "dragleave":
queuedDrag = null;
break;
case "mouseover":
case "mouseout":
queuedMouse = null;
break;
case "pointerover":
case "pointerout":
var pointerId = nativeEvent.pointerId;
queuedPointers.delete(pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
var _pointerId = nativeEvent.pointerId;
queuedPointerCaptures.delete(_pointerId);
break;
}
}
function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
if (null === existingQueuedEvent || existingQueuedEvent.nativeEvent !== nativeEvent) {
var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
if (null !== blockedOn) {
var _fiber2 = getInstanceFromNode(blockedOn);
null !== _fiber2 && attemptContinuousHydration(_fiber2);
}
return queuedEvent;
}
existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
var targetContainers = existingQueuedEvent.targetContainers;
return null !== targetContainer && -1 === targetContainers.indexOf(targetContainer) && targetContainers.push(targetContainer), existingQueuedEvent;
}
function attemptExplicitHydrationTarget(queuedTarget) {
var targetInst = getClosestInstanceFromNode(queuedTarget.target);
if (null !== targetInst) {
var nearestMounted = getNearestMountedFiber(targetInst);
if (null !== nearestMounted) {
var tag = nearestMounted.tag;
if (13 === tag) {
var instance = getSuspenseInstanceFromFiber(nearestMounted);
if (null !== instance) {
queuedTarget.blockedOn = instance, attemptHydrationAtPriority(queuedTarget.lanePriority, function() {
unstable_runWithPriority(queuedTarget.priority, function() {
attemptHydrationAtCurrentPriority(nearestMounted);
});
});
return;
}
} else if (3 === tag && nearestMounted.stateNode.hydrate) {
queuedTarget.blockedOn = getContainerFromFiber(nearestMounted);
return;
}
}
}
queuedTarget.blockedOn = null;
}
function attemptReplayContinuousQueuedEvent(queuedEvent) {
if (null !== queuedEvent.blockedOn) return !1;
for(var targetContainers = queuedEvent.targetContainers; targetContainers.length > 0;){
var targetContainer = targetContainers[0], nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);
if (null !== nextBlockedOn) {
var _fiber3 = getInstanceFromNode(nextBlockedOn);
return null !== _fiber3 && attemptContinuousHydration(_fiber3), queuedEvent.blockedOn = nextBlockedOn, !1;
}
targetContainers.shift();
}
return !0;
}
function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);
}
function replayUnblockedEvents() {
for(hasScheduledReplayAttempt = !1; queuedDiscreteEvents.length > 0;){
var nextDiscreteEvent = queuedDiscreteEvents[0];
if (null !== nextDiscreteEvent.blockedOn) {
var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn);
null !== _fiber4 && attemptUserBlockingHydration(_fiber4);
break;
}
for(var targetContainers = nextDiscreteEvent.targetContainers; targetContainers.length > 0;){
var targetContainer = targetContainers[0], nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent);
if (null !== nextBlockedOn) {
nextDiscreteEvent.blockedOn = nextBlockedOn;
break;
}
targetContainers.shift();
}
null === nextDiscreteEvent.blockedOn && queuedDiscreteEvents.shift();
}
null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null), null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null), null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null), queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap), queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
}
function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
queuedEvent.blockedOn !== unblocked || (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = !0, unstable_scheduleCallback(unstable_NormalPriority, replayUnblockedEvents)));
}
function retryIfBlockedOn(unblocked) {
if (queuedDiscreteEvents.length > 0) {
scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked);
for(var i = 1; i < queuedDiscreteEvents.length; i++){
var queuedEvent = queuedDiscreteEvents[i];
queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null);
}
}
null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked), null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked), null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);
var unblock = function(queuedEvent) {
return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
};
queuedPointers.forEach(unblock), queuedPointerCaptures.forEach(unblock);
for(var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++){
var queuedTarget = queuedExplicitHydrationTargets[_i];
queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null);
}
for(; queuedExplicitHydrationTargets.length > 0;){
var nextExplicitTarget = queuedExplicitHydrationTargets[0];
if (null !== nextExplicitTarget.blockedOn) break;
attemptExplicitHydrationTarget(nextExplicitTarget), null === nextExplicitTarget.blockedOn && queuedExplicitHydrationTargets.shift();
}
}
function makePrefixMap(styleProp, eventName) {
var prefixes = {};
return prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes["Webkit" + styleProp] = "webkit" + eventName, prefixes["Moz" + styleProp] = "moz" + eventName, prefixes;
}
var vendorPrefixes = {
animationend: makePrefixMap("Animation", "AnimationEnd"),
animationiteration: makePrefixMap("Animation", "AnimationIteration"),
animationstart: makePrefixMap("Animation", "AnimationStart"),
transitionend: makePrefixMap("Transition", "TransitionEnd")
}, prefixedEventNames = {}, style1 = {};
function getVendorPrefixedEventName(eventName) {
if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];
if (!vendorPrefixes[eventName]) return eventName;
var prefixMap = vendorPrefixes[eventName];
for(var styleProp in prefixMap)if (prefixMap.hasOwnProperty(styleProp) && styleProp in style1) return prefixedEventNames[eventName] = prefixMap[styleProp];
return eventName;
}
!canUseDOM || (style1 = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition);
var ANIMATION_END = getVendorPrefixedEventName("animationend"), ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration"), ANIMATION_START = getVendorPrefixedEventName("animationstart"), TRANSITION_END = getVendorPrefixedEventName("transitionend"), topLevelEventsToReactNames = new Map(), eventPriorities = new Map();
function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) {
for(var i = 0; i < eventTypes.length; i += 2){
var topEvent = eventTypes[i], event = eventTypes[i + 1], reactName = "on" + (event[0].toUpperCase() + event.slice(1));
eventPriorities.set(topEvent, priority), topLevelEventsToReactNames.set(topEvent, reactName), registerTwoPhaseEvent(reactName, [
topEvent
]);
}
}
var _ReactInternals$Sched$1 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing, __interactionsRef = _ReactInternals$Sched$1.__interactionsRef, __subscriberRef = _ReactInternals$Sched$1.__subscriberRef, unstable_clear = _ReactInternals$Sched$1.unstable_clear, unstable_getCurrent = _ReactInternals$Sched$1.unstable_getCurrent, unstable_getThreadID = _ReactInternals$Sched$1.unstable_getThreadID, unstable_subscribe = _ReactInternals$Sched$1.unstable_subscribe, unstable_trace = _ReactInternals$Sched$1.unstable_trace, unstable_unsubscribe = _ReactInternals$Sched$1.unstable_unsubscribe, unstable_wrap = _ReactInternals$Sched$1.unstable_wrap;
if (!(null != __interactionsRef && null != __interactionsRef.current)) throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");
unstable_now();
var NoLanes = 0, NoLane = 0, SyncLane = 1, return_highestLanePriority = 8;
function getHighestPriorityLanes(lanes) {
if ((SyncLane & lanes) !== NoLanes) return return_highestLanePriority = 15, SyncLane;
if ((2 & lanes) !== NoLanes) return return_highestLanePriority = 14, 2;
if ((4 & lanes) !== NoLanes) return return_highestLanePriority = 13, 4;
var inputDiscreteLanes = 24 & lanes;
if (inputDiscreteLanes !== NoLanes) return return_highestLanePriority = 12, inputDiscreteLanes;
if ((32 & lanes) !== NoLanes) return return_highestLanePriority = 11, 32;
var inputContinuousLanes = 192 & lanes;
if (inputContinuousLanes !== NoLanes) return return_highestLanePriority = 10, inputContinuousLanes;
if ((256 & lanes) !== NoLanes) return return_highestLanePriority = 9, 256;
var defaultLanes = 3584 & lanes;
if (defaultLanes !== NoLanes) return return_highestLanePriority = 8, defaultLanes;
if ((4096 & lanes) !== NoLanes) return return_highestLanePriority = 7, 4096;
var transitionLanes = 4186112 & lanes;
if (transitionLanes !== NoLanes) return return_highestLanePriority = 6, transitionLanes;
var retryLanes = 62914560 & lanes;
if (retryLanes !== NoLanes) return return_highestLanePriority = 5, retryLanes;
if (67108864 & lanes) return return_highestLanePriority = 4, 67108864;
if ((134217728 & lanes) !== NoLanes) return return_highestLanePriority = 3, 134217728;
var idleLanes = 805306368 & lanes;
return idleLanes !== NoLanes ? (return_highestLanePriority = 2, idleLanes) : (1073741824 & lanes) !== NoLanes ? (return_highestLanePriority = 1, 1073741824) : (error1("Should have found matching lanes. This is a bug in React."), return_highestLanePriority = 8, lanes);
}
function getNextLanes(root, wipLanes) {
var pendingLanes = root.pendingLanes;
if (pendingLanes === NoLanes) return return_highestLanePriority = 0, NoLanes;
var nextLanes = NoLanes, nextLanePriority = 0, expiredLanes = root.expiredLanes, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
if (expiredLanes !== NoLanes) nextLanes = expiredLanes, nextLanePriority = return_highestLanePriority = 15;
else {
var nonIdlePendingLanes = 134217727 & pendingLanes;
if (nonIdlePendingLanes !== NoLanes) {
var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
if (nonIdleUnblockedLanes !== NoLanes) nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes), nextLanePriority = return_highestLanePriority;
else {
var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;
nonIdlePingedLanes !== NoLanes && (nextLanes = getHighestPriorityLanes(nonIdlePingedLanes), nextLanePriority = return_highestLanePriority);
}
} else {
var unblockedLanes = pendingLanes & ~suspendedLanes;
unblockedLanes !== NoLanes ? (nextLanes = getHighestPriorityLanes(unblockedLanes), nextLanePriority = return_highestLanePriority) : pingedLanes !== NoLanes && (nextLanes = getHighestPriorityLanes(pingedLanes), nextLanePriority = return_highestLanePriority);
}
}
if (nextLanes === NoLanes) return NoLanes;
if (nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes), wipLanes !== NoLanes && wipLanes !== nextLanes && (wipLanes & suspendedLanes) === NoLanes) {
if (getHighestPriorityLanes(wipLanes), nextLanePriority <= return_highestLanePriority) return wipLanes;
return_highestLanePriority = nextLanePriority;
}
var entangledLanes = root.entangledLanes;
if (entangledLanes !== NoLanes) for(var entanglements = root.entanglements, lanes = nextLanes & entangledLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
nextLanes |= entanglements[index], lanes &= ~lane;
}
return nextLanes;
}
function computeExpirationTime(lane, currentTime) {
getHighestPriorityLanes(lane);
var priority = return_highestLanePriority;
return priority >= 10 ? currentTime + 250 : priority >= 6 ? currentTime + 5000 : -1;
}
function getLanesToRetrySynchronouslyOnError(root) {
var everythingButOffscreen = -1073741825 & root.pendingLanes;
return everythingButOffscreen !== NoLanes ? everythingButOffscreen : 1073741824 & everythingButOffscreen ? 1073741824 : NoLanes;
}
function includesNonIdleWork(lanes) {
return (134217727 & lanes) !== NoLanes;
}
function includesOnlyRetries(lanes) {
return (62914560 & lanes) === lanes;
}
function findUpdateLane(lanePriority, wipLanes) {
switch(lanePriority){
case 0:
break;
case 15:
return SyncLane;
case 14:
return 2;
case 12:
var _lane = pickArbitraryLane(24 & ~wipLanes);
if (_lane === NoLane) return findUpdateLane(10, wipLanes);
return _lane;
case 10:
var _lane2 = pickArbitraryLane(192 & ~wipLanes);
if (_lane2 === NoLane) return findUpdateLane(8, wipLanes);
return _lane2;
case 8:
var _lane3 = pickArbitraryLane(3584 & ~wipLanes);
return _lane3 === NoLane && (_lane3 = pickArbitraryLane(4186112 & ~wipLanes)) === NoLane && (_lane3 = pickArbitraryLane(3584)), _lane3;
case 6:
case 5:
break;
case 2:
var lane = pickArbitraryLane(805306368 & ~wipLanes);
return lane === NoLane && (lane = pickArbitraryLane(805306368)), lane;
}
throw Error("Invalid update priority: " + lanePriority + ". This is a bug in React.");
}
function getEqualOrHigherPriorityLanes(lanes) {
var index;
return (((index = 31 - clz32(lanes)) < 0 ? NoLanes : 1 << index) << 1) - 1;
}
function pickArbitraryLane(lanes) {
var lanes1;
return (lanes1 = lanes) & -lanes1;
}
function pickArbitraryLaneIndex(lanes) {
return 31 - clz32(lanes);
}
function includesSomeLane(a, b) {
return (a & b) !== NoLanes;
}
function isSubsetOfLanes(set, subset) {
return (set & subset) === subset;
}
function mergeLanes(a, b) {
return a | b;
}
function removeLanes(set, subset) {
return set & ~subset;
}
function createLaneMap(initial) {
for(var laneMap = [], i = 0; i < 31; i++)laneMap.push(initial);
return laneMap;
}
function markRootUpdated(root, updateLane, eventTime) {
root.pendingLanes |= updateLane;
var higherPriorityLanes = updateLane - 1;
root.suspendedLanes &= higherPriorityLanes, root.pingedLanes &= higherPriorityLanes, root.eventTimes[pickArbitraryLaneIndex(updateLane)] = eventTime;
}
function markRootPinged(root, pingedLanes, eventTime) {
root.pingedLanes |= root.suspendedLanes & pingedLanes;
}
function markRootMutableRead(root, updateLane) {
root.mutableReadLanes |= updateLane & root.pendingLanes;
}
var clz32 = Math.clz32 ? Math.clz32 : function(lanes) {
return 0 === lanes ? 32 : 31 - (log(lanes) / LN2 | 0) | 0;
}, log = Math.log, LN2 = Math.LN2, UserBlockingPriority$1 = unstable_UserBlockingPriority, runWithPriority = unstable_runWithPriority, _enabled = !0;
function setEnabled(enabled) {
_enabled = !!enabled;
}
function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
nativeEvent.timeStamp, isInsideEventHandler || flushDiscreteUpdatesImpl(), (function(fn, a, b, c, d) {
var prevIsInsideEventHandler = isInsideEventHandler;
isInsideEventHandler = !0;
try {
return discreteUpdatesImpl(fn, a, b, c, d);
} finally{
(isInsideEventHandler = prevIsInsideEventHandler) || finishEventHandler();
}
})(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent);
}
function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) {
runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent));
}
function dispatchEvent(domEventName1, eventSystemFlags1, targetContainer1, nativeEvent1) {
if (_enabled) {
var allowReplay = !0;
if ((allowReplay = (4 & eventSystemFlags1) == 0) && queuedDiscreteEvents.length > 0 && isReplayableDiscreteEvent(domEventName1)) {
queueDiscreteEvent(null, domEventName1, eventSystemFlags1, targetContainer1, nativeEvent1);
return;
}
var blockedOn1 = attemptToDispatchEvent(domEventName1, eventSystemFlags1, targetContainer1, nativeEvent1);
if (null === blockedOn1) {
allowReplay && clearIfContinuousEvent(domEventName1, nativeEvent1);
return;
}
if (allowReplay) {
if (isReplayableDiscreteEvent(domEventName1)) {
queueDiscreteEvent(blockedOn1, domEventName1, eventSystemFlags1, targetContainer1, nativeEvent1);
return;
}
if ((function(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
switch(domEventName){
case "focusin":
return queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0;
case "dragenter":
return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0;
case "mouseover":
return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0;
case "pointerover":
var pointerEvent = nativeEvent, pointerId = pointerEvent.pointerId;
return queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent)), !0;
case "gotpointercapture":
var _pointerEvent = nativeEvent, _pointerId2 = _pointerEvent.pointerId;
return queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent)), !0;
}
return !1;
})(blockedOn1, domEventName1, eventSystemFlags1, targetContainer1, nativeEvent1)) return;
clearIfContinuousEvent(domEventName1, nativeEvent1);
}
dispatchEventForPluginEventSystem(domEventName1, eventSystemFlags1, nativeEvent1, null, targetContainer1);
}
}
function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
var targetInst = getClosestInstanceFromNode(getEventTarget(nativeEvent));
if (null !== targetInst) {
var nearestMounted = getNearestMountedFiber(targetInst);
if (null === nearestMounted) targetInst = null;
else {
var tag = nearestMounted.tag;
if (13 === tag) {
var instance = getSuspenseInstanceFromFiber(nearestMounted);
if (null !== instance) return instance;
targetInst = null;
} else if (3 === tag) {
if (nearestMounted.stateNode.hydrate) return getContainerFromFiber(nearestMounted);
targetInst = null;
} else nearestMounted !== targetInst && (targetInst = null);
}
}
return dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer), null;
}
var root1 = null, startText = null, fallbackText = null;
function getData() {
if (fallbackText) return fallbackText;
var start, end, startValue = startText, startLength = startValue.length, endValue = getText(), endLength = endValue.length;
for(start = 0; start < startLength && startValue[start] === endValue[start]; start++);
var minEnd = startLength - start;
for(end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++);
return fallbackText = endValue.slice(start, end > 1 ? 1 - end : void 0);
}
function getText() {
return "value" in root1 ? root1.value : root1.textContent;
}
function getEventCharCode(nativeEvent) {
var charCode, keyCode = nativeEvent.keyCode;
return ("charCode" in nativeEvent ? 0 === (charCode = nativeEvent.charCode) && 13 === keyCode && (charCode = 13) : charCode = keyCode, 10 === charCode && (charCode = 13), charCode >= 32 || 13 === charCode) ? charCode : 0;
}
function functionThatReturnsTrue() {
return !0;
}
function functionThatReturnsFalse() {
return !1;
}
function createSyntheticEvent(Interface) {
function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
for(var _propName in this._reactName = reactName, this._targetInst = targetInst, this.type = reactEventType, this.nativeEvent = nativeEvent, this.target = nativeEventTarget, this.currentTarget = null, Interface)if (Interface.hasOwnProperty(_propName)) {
var normalize = Interface[_propName];
normalize ? this[_propName] = normalize(nativeEvent) : this[_propName] = nativeEvent[_propName];
}
return (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? this.isDefaultPrevented = functionThatReturnsTrue : this.isDefaultPrevented = functionThatReturnsFalse, this.isPropagationStopped = functionThatReturnsFalse, this;
}
return _assign(SyntheticBaseEvent.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var event = this.nativeEvent;
event && (event.preventDefault ? event.preventDefault() : "unknown" != typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue);
},
stopPropagation: function() {
var event = this.nativeEvent;
event && (event.stopPropagation ? event.stopPropagation() : "unknown" != typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue);
},
persist: function() {},
isPersistent: functionThatReturnsTrue
}), SyntheticBaseEvent;
}
var EventInterface = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function(event) {
return event.timeStamp || Date.now();
},
defaultPrevented: 0,
isTrusted: 0
}, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = _assign({}, EventInterface, {
view: 0,
detail: 0
}), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), MouseEventInterface = _assign({}, UIEventInterface, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: getEventModifierState,
button: 0,
buttons: 0,
relatedTarget: function(event) {
return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget;
},
movementX: function(event) {
var event1;
return "movementX" in event ? event.movementX : ((event1 = event) !== lastMouseEvent && (lastMouseEvent && "mousemove" === event1.type ? (lastMovementX = event1.screenX - lastMouseEvent.screenX, lastMovementY = event1.screenY - lastMouseEvent.screenY) : (lastMovementX = 0, lastMovementY = 0), lastMouseEvent = event1), lastMovementX);
},
movementY: function(event) {
return "movementY" in event ? event.movementY : lastMovementY;
}
}), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), SyntheticDragEvent = createSyntheticEvent(_assign({}, MouseEventInterface, {
dataTransfer: 0
})), SyntheticFocusEvent = createSyntheticEvent(_assign({}, UIEventInterface, {
relatedTarget: 0
})), SyntheticAnimationEvent = createSyntheticEvent(_assign({}, EventInterface, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
})), SyntheticClipboardEvent = createSyntheticEvent(_assign({}, EventInterface, {
clipboardData: function(event) {
return "clipboardData" in event ? event.clipboardData : window.clipboardData;
}
})), SyntheticCompositionEvent = createSyntheticEvent(_assign({}, EventInterface, {
data: 0
})), SyntheticInputEvent = SyntheticCompositionEvent, normalizeKey = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
}, translateToKey = {
"8": "Backspace",
"9": "Tab",
"12": "Clear",
"13": "Enter",
"16": "Shift",
"17": "Control",
"18": "Alt",
"19": "Pause",
"20": "CapsLock",
"27": "Escape",
"32": " ",
"33": "PageUp",
"34": "PageDown",
"35": "End",
"36": "Home",
"37": "ArrowLeft",
"38": "ArrowUp",
"39": "ArrowRight",
"40": "ArrowDown",
"45": "Insert",
"46": "Delete",
"112": "F1",
"113": "F2",
"114": "F3",
"115": "F4",
"116": "F5",
"117": "F6",
"118": "F7",
"119": "F8",
"120": "F9",
"121": "F10",
"122": "F11",
"123": "F12",
"144": "NumLock",
"145": "ScrollLock",
"224": "Meta"
}, modifierKeyToProp = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
function modifierStateGetter(keyArg) {
var nativeEvent = this.nativeEvent;
if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg);
var keyProp = modifierKeyToProp[keyArg];
return !!keyProp && !!nativeEvent[keyProp];
}
function getEventModifierState(nativeEvent) {
return modifierStateGetter;
}
var SyntheticKeyboardEvent = createSyntheticEvent(_assign({}, UIEventInterface, {
key: function(nativeEvent) {
if (nativeEvent.key) {
var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
if ("Unidentified" !== key) return key;
}
if ("keypress" === nativeEvent.type) {
var charCode = getEventCharCode(nativeEvent);
return 13 === charCode ? "Enter" : String.fromCharCode(charCode);
}
return "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: getEventModifierState,
charCode: function(event) {
return "keypress" === event.type ? getEventCharCode(event) : 0;
},
keyCode: function(event) {
return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
},
which: function(event) {
return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
}
})), SyntheticPointerEvent = createSyntheticEvent(_assign({}, MouseEventInterface, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0
})), SyntheticTouchEvent = createSyntheticEvent(_assign({}, UIEventInterface, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: getEventModifierState
})), SyntheticTransitionEvent = createSyntheticEvent(_assign({}, EventInterface, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
})), SyntheticWheelEvent = createSyntheticEvent(_assign({}, MouseEventInterface, {
deltaX: function(event) {
return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0;
},
deltaY: function(event) {
return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0;
},
deltaZ: 0,
deltaMode: 0
})), END_KEYCODES = [
9,
13,
27,
32
], canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null;
canUseDOM && "documentMode" in document && (documentMode = document.documentMode);
var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11), hasSpaceKeypress = !1;
function isFallbackCompositionEnd(domEventName, nativeEvent) {
switch(domEventName){
case "keyup":
return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);
case "keydown":
return 229 !== nativeEvent.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1;
}
}
function getDataFromCustomEvent(nativeEvent) {
var detail = nativeEvent.detail;
return "object" == typeof detail && "data" in detail ? detail.data : null;
}
function isUsingKoreanIME(nativeEvent) {
return "ko" === nativeEvent.locale;
}
var isComposing = !1, supportedInputTypes = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0
};
function isTextInputElement(elem) {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName;
}
function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
enqueueStateRestore(target);
var listeners = accumulateTwoPhaseListeners(inst, "onChange");
if (listeners.length > 0) {
var event = new SyntheticEvent("onChange", "change", null, nativeEvent, target);
dispatchQueue.push({
event: event,
listeners: listeners
});
}
}
var activeElement = null, activeElementInst = null;
function runEventInBatch(dispatchQueue) {
processDispatchQueue(dispatchQueue, 0);
}
function getInstIfValueChanged(targetInst) {
if (updateValueIfChanged(getNodeFromInstance(targetInst))) return targetInst;
}
function getTargetInstForChangeEvent(domEventName, targetInst) {
if ("change" === domEventName) return targetInst;
}
var isInputEventSupported = !1;
function stopWatchingForValueChange() {
activeElement && (activeElement.detachEvent("onpropertychange", handlePropertyChange), activeElement = null, activeElementInst = null);
}
function handlePropertyChange(nativeEvent) {
if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst)) {
var nativeEvent2, dispatchQueue;
createAndAccumulateChangeEvent(dispatchQueue = [], activeElementInst, nativeEvent2 = nativeEvent, getEventTarget(nativeEvent2)), (function(fn, bookkeeping) {
if (isInsideEventHandler) return fn(bookkeeping);
isInsideEventHandler = !0;
try {
return batchedUpdatesImpl(fn, bookkeeping);
} finally{
isInsideEventHandler = !1, finishEventHandler();
}
})(runEventInBatch, dispatchQueue);
}
}
function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
if ("focusin" === domEventName) {
var target1, targetInst1;
stopWatchingForValueChange(), target1 = target, targetInst1 = targetInst, activeElement = target1, activeElementInst = targetInst1, activeElement.attachEvent("onpropertychange", handlePropertyChange);
} else "focusout" === domEventName && stopWatchingForValueChange();
}
function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName) return getInstIfValueChanged(activeElementInst);
}
function getTargetInstForClickEvent(domEventName, targetInst) {
if ("click" === domEventName) return getInstIfValueChanged(targetInst);
}
function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
if ("input" === domEventName || "change" === domEventName) return getInstIfValueChanged(targetInst);
}
canUseDOM && (isInputEventSupported = (function(eventNameSuffix) {
if (!canUseDOM) return !1;
var eventName = "on" + eventNameSuffix, isSupported = eventName in document;
if (!isSupported) {
var element = document.createElement("div");
element.setAttribute(eventName, "return;"), isSupported = "function" == typeof element[eventName];
}
return isSupported;
})("input") && (!document.documentMode || document.documentMode > 9));
var objectIs = "function" == typeof Object.is ? Object.is : function(x, y) {
return x === y && (0 !== x || 1 / x == 1 / y) || x != x && y != y;
}, hasOwnProperty$2 = Object.prototype.hasOwnProperty;
function shallowEqual(objA, objB) {
if (objectIs(objA, objB)) return !0;
if ("object" != typeof objA || null === objA || "object" != typeof objB || null === objB) return !1;
var keysA = Object.keys(objA), keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for(var i = 0; i < keysA.length; i++)if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) return !1;
return !0;
}
function getLeafNode(node) {
for(; node && node.firstChild;)node = node.firstChild;
return node;
}
function getSiblingNode(node) {
for(; node;){
if (node.nextSibling) return node.nextSibling;
node = node.parentNode;
}
}
function getNodeForCharacterOffset(root, offset) {
for(var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node;){
if (3 === node.nodeType) {
if (nodeEnd = nodeStart + node.textContent.length, nodeStart <= offset && nodeEnd >= offset) return {
node: node,
offset: offset - nodeStart
};
nodeStart = nodeEnd;
}
node = getLeafNode(getSiblingNode(node));
}
}
function isTextNode(node) {
return node && 3 === node.nodeType;
}
function containsNode(outerNode, innerNode) {
return !!outerNode && !!innerNode && (outerNode === innerNode || !isTextNode(outerNode) && (isTextNode(innerNode) ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : !!outerNode.compareDocumentPosition && !!(16 & outerNode.compareDocumentPosition(innerNode))));
}
function isSameOriginFrame(iframe) {
try {
return "string" == typeof iframe.contentWindow.location.href;
} catch (err) {
return !1;
}
}
function getActiveElementDeep() {
for(var win = window, element = getActiveElement(); element instanceof win.HTMLIFrameElement;){
if (!isSameOriginFrame(element)) return element;
element = getActiveElement((win = element.contentWindow).document);
}
return element;
}
function hasSelectionCapabilities(elem) {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable);
}
var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && document.documentMode <= 11, activeElement$1 = null, activeElementInst$1 = null, lastSelection = null, mouseDown = !1;
function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
var eventTarget, doc = (eventTarget = nativeEventTarget).window === eventTarget ? eventTarget.document : 9 === eventTarget.nodeType ? eventTarget : eventTarget.ownerDocument;
if (!mouseDown && null != activeElement$1 && activeElement$1 === getActiveElement(doc)) {
var currentSelection = function(node) {
if ("selectionStart" in node && hasSelectionCapabilities(node)) return {
start: node.selectionStart,
end: node.selectionEnd
};
var selection = (node.ownerDocument && node.ownerDocument.defaultView || window).getSelection();
return {
anchorNode: selection.anchorNode,
anchorOffset: selection.anchorOffset,
focusNode: selection.focusNode,
focusOffset: selection.focusOffset
};
}(activeElement$1);
if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
lastSelection = currentSelection;
var listeners = accumulateTwoPhaseListeners(activeElementInst$1, "onSelect");
if (listeners.length > 0) {
var event = new SyntheticEvent("onSelect", "select", null, nativeEvent, nativeEventTarget);
dispatchQueue.push({
event: event,
listeners: listeners
}), event.target = activeElement$1;
}
}
}
}
registerSimplePluginEventsAndSetTheirPriorities([
"cancel",
"cancel",
"click",
"click",
"close",
"close",
"contextmenu",
"contextMenu",
"copy",
"copy",
"cut",
"cut",
"auxclick",
"auxClick",
"dblclick",
"doubleClick",
"dragend",
"dragEnd",
"dragstart",
"dragStart",
"drop",
"drop",
"focusin",
"focus",
"focusout",
"blur",
"input",
"input",
"invalid",
"invalid",
"keydown",
"keyDown",
"keypress",
"keyPress",
"keyup",
"keyUp",
"mousedown",
"mouseDown",
"mouseup",
"mouseUp",
"paste",
"paste",
"pause",
"pause",
"play",
"play",
"pointercancel",
"pointerCancel",
"pointerdown",
"pointerDown",
"pointerup",
"pointerUp",
"ratechange",
"rateChange",
"reset",
"reset",
"seeked",
"seeked",
"submit",
"submit",
"touchcancel",
"touchCancel",
"touchend",
"touchEnd",
"touchstart",
"touchStart",
"volumechange",
"volumeChange"
], 0), registerSimplePluginEventsAndSetTheirPriorities([
"drag",
"drag",
"dragenter",
"dragEnter",
"dragexit",
"dragExit",
"dragleave",
"dragLeave",
"dragover",
"dragOver",
"mousemove",
"mouseMove",
"mouseout",
"mouseOut",
"mouseover",
"mouseOver",
"pointermove",
"pointerMove",
"pointerout",
"pointerOut",
"pointerover",
"pointerOver",
"scroll",
"scroll",
"toggle",
"toggle",
"touchmove",
"touchMove",
"wheel",
"wheel"
], 1), registerSimplePluginEventsAndSetTheirPriorities([
"abort",
"abort",
ANIMATION_END,
"animationEnd",
ANIMATION_ITERATION,
"animationIteration",
ANIMATION_START,
"animationStart",
"canplay",
"canPlay",
"canplaythrough",
"canPlayThrough",
"durationchange",
"durationChange",
"emptied",
"emptied",
"encrypted",
"encrypted",
"ended",
"ended",
"error",
"error",
"gotpointercapture",
"gotPointerCapture",
"load",
"load",
"loadeddata",
"loadedData",
"loadedmetadata",
"loadedMetadata",
"loadstart",
"loadStart",
"lostpointercapture",
"lostPointerCapture",
"playing",
"playing",
"progress",
"progress",
"seeking",
"seeking",
"stalled",
"stalled",
"suspend",
"suspend",
"timeupdate",
"timeUpdate",
TRANSITION_END,
"transitionEnd",
"waiting",
"waiting"
], 2), (function(eventTypes, priority) {
for(var i = 0; i < eventTypes.length; i++)eventPriorities.set(eventTypes[i], 0);
})([
"change",
"selectionchange",
"textInput",
"compositionstart",
"compositionend",
"compositionupdate"
], 0), registerDirectEvent("onMouseEnter", [
"mouseout",
"mouseover"
]), registerDirectEvent("onMouseLeave", [
"mouseout",
"mouseover"
]), registerDirectEvent("onPointerEnter", [
"pointerout",
"pointerover"
]), registerDirectEvent("onPointerLeave", [
"pointerout",
"pointerover"
]), registerTwoPhaseEvent("onChange", [
"change",
"click",
"focusin",
"focusout",
"input",
"keydown",
"keyup",
"selectionchange"
]), registerTwoPhaseEvent("onSelect", [
"focusout",
"contextmenu",
"dragend",
"focusin",
"keydown",
"keyup",
"mousedown",
"mouseup",
"selectionchange"
]), registerTwoPhaseEvent("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
]), registerTwoPhaseEvent("onCompositionEnd", [
"compositionend",
"focusout",
"keydown",
"keypress",
"keyup",
"mousedown"
]), registerTwoPhaseEvent("onCompositionStart", [
"compositionstart",
"focusout",
"keydown",
"keypress",
"keyup",
"mousedown"
]), registerTwoPhaseEvent("onCompositionUpdate", [
"compositionupdate",
"focusout",
"keydown",
"keypress",
"keyup",
"mousedown"
]);
var mediaEventTypes = [
"abort",
"canplay",
"canplaythrough",
"durationchange",
"emptied",
"encrypted",
"ended",
"error",
"loadeddata",
"loadedmetadata",
"loadstart",
"pause",
"play",
"playing",
"progress",
"ratechange",
"seeked",
"seeking",
"stalled",
"suspend",
"timeupdate",
"volumechange",
"waiting"
], nonDelegatedEvents = new Set([
"cancel",
"close",
"invalid",
"load",
"scroll",
"toggle"
].concat(mediaEventTypes));
function executeDispatch(event, listener, currentTarget) {
var type = event.type || "unknown-event";
event.currentTarget = currentTarget, (function(name, func, context, a, b, c, d, e, f) {
if (invokeGuardedCallback.apply(this, arguments), hasError) {
var error = clearCaughtError();
hasRethrowError || (hasRethrowError = !0, rethrowError = error);
}
})(type, listener, void 0, event), event.currentTarget = null;
}
function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
var previousInstance;
if (inCapturePhase) for(var i = dispatchListeners.length - 1; i >= 0; i--){
var _dispatchListeners$i = dispatchListeners[i], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget, listener = _dispatchListeners$i.listener;
if (instance !== previousInstance && event.isPropagationStopped()) return;
executeDispatch(event, listener, currentTarget), previousInstance = instance;
}
else for(var _i = 0; _i < dispatchListeners.length; _i++){
var _dispatchListeners$_i = dispatchListeners[_i], _instance = _dispatchListeners$_i.instance, _currentTarget = _dispatchListeners$_i.currentTarget, _listener = _dispatchListeners$_i.listener;
if (_instance !== previousInstance && event.isPropagationStopped()) return;
executeDispatch(event, _listener, _currentTarget), previousInstance = _instance;
}
}
function processDispatchQueue(dispatchQueue, eventSystemFlags) {
for(var inCapturePhase = (4 & eventSystemFlags) != 0, i = 0; i < dispatchQueue.length; i++){
var _dispatchQueue$i = dispatchQueue[i], event = _dispatchQueue$i.event, listeners = _dispatchQueue$i.listeners;
processDispatchQueueItemsInOrder(event, listeners, inCapturePhase);
}
!function() {
if (hasRethrowError) {
var error = rethrowError;
throw hasRethrowError = !1, rethrowError = null, error;
}
}();
}
function listenToNonDelegatedEvent(domEventName, targetElement) {
var isCapturePhaseListener = !1, listenerSet = getEventListenerSet(targetElement), listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);
listenerSet.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, isCapturePhaseListener), listenerSet.add(listenerSetKey));
}
var listeningMarker = "_reactListening" + Math.random().toString(36).slice(2);
function listenToAllSupportedEvents(rootContainerElement) {
rootContainerElement[listeningMarker] || (rootContainerElement[listeningMarker] = !0, allNativeEvents.forEach(function(domEventName) {
nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, !1, rootContainerElement, null), listenToNativeEvent(domEventName, !0, rootContainerElement, null);
}));
}
function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) {
var eventSystemFlags = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 0, target = rootContainerElement;
if ("selectionchange" === domEventName && 9 !== rootContainerElement.nodeType && (target = rootContainerElement.ownerDocument), null !== targetElement && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) {
if ("scroll" !== domEventName) return;
eventSystemFlags |= 2, target = targetElement;
}
var listenerSet = getEventListenerSet(target), listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);
listenerSet.has(listenerSetKey) || (isCapturePhaseListener && (eventSystemFlags |= 4), addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener), listenerSet.add(listenerSetKey));
}
function addTrappedEventListener(targetContainer2, domEventName3, eventSystemFlags2, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
var target, eventType, listener, passive, target2, eventType1, listener1, target3, eventType2, listener2, passive1, target4, eventType3, listener3, listener4 = function(targetContainer, domEventName, eventSystemFlags) {
var domEventName2, priority, listenerWrapper, eventPriority = (domEventName2 = domEventName, void 0 === (priority = eventPriorities.get(domEventName2)) ? 2 : priority);
switch(eventPriority){
case 0:
listenerWrapper = dispatchDiscreteEvent;
break;
case 1:
listenerWrapper = dispatchUserBlockingUpdate;
break;
case 2:
default:
listenerWrapper = dispatchEvent;
break;
}
return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
}(targetContainer2, domEventName3, eventSystemFlags2), isPassiveListener = void 0;
(passiveBrowserEventsSupported && ("touchstart" === domEventName3 || "touchmove" === domEventName3 || "wheel" === domEventName3) && (isPassiveListener = !0), targetContainer2 = targetContainer2, isCapturePhaseListener) ? void 0 !== isPassiveListener ? (target = targetContainer2, eventType = domEventName3, listener = listener4, passive = isPassiveListener, target.addEventListener(eventType, listener, {
capture: !0,
passive: passive
})) : (target2 = targetContainer2, eventType1 = domEventName3, listener1 = listener4, target2.addEventListener(eventType1, listener1, !0)) : void 0 !== isPassiveListener ? (target3 = targetContainer2, eventType2 = domEventName3, listener2 = listener4, passive1 = isPassiveListener, target3.addEventListener(eventType2, listener2, {
passive: passive1
})) : (target4 = targetContainer2, eventType3 = domEventName3, listener3 = listener4, target4.addEventListener(eventType3, listener3, !1));
}
function isMatchingRootContainer(grandContainer, targetContainer) {
return grandContainer === targetContainer || 8 === grandContainer.nodeType && grandContainer.parentNode === targetContainer;
}
function dispatchEventForPluginEventSystem(domEventName6, eventSystemFlags4, nativeEvent5, targetInst4, targetContainer) {
var ancestorInst = targetInst4;
if ((1 & eventSystemFlags4) == 0 && (2 & eventSystemFlags4) == 0) {
var targetContainerNode = targetContainer;
if (null !== targetInst4) {
var node = targetInst4;
mainLoop: for(;;){
if (null === node) return;
var nodeTag = node.tag;
if (3 === nodeTag || 4 === nodeTag) {
var container = node.stateNode.containerInfo;
if (isMatchingRootContainer(container, targetContainerNode)) break;
if (4 === nodeTag) for(var grandNode = node.return; null !== grandNode;){
var grandTag = grandNode.tag;
if ((3 === grandTag || 4 === grandTag) && isMatchingRootContainer(grandNode.stateNode.containerInfo, targetContainerNode)) return;
grandNode = grandNode.return;
}
for(; null !== container;){
var parentNode = getClosestInstanceFromNode(container);
if (null === parentNode) return;
var parentTag = parentNode.tag;
if (5 === parentTag || 6 === parentTag) {
node = ancestorInst = parentNode;
continue mainLoop;
}
container = container.parentNode;
}
}
node = node.return;
}
}
}
!function(fn, a, b) {
if (isBatchingEventUpdates) return fn(a, b);
isBatchingEventUpdates = !0;
try {
return batchedEventUpdatesImpl(fn, a, b);
} finally{
isBatchingEventUpdates = !1, finishEventHandler();
}
}(function() {
var domEventName7, eventSystemFlags5, nativeEvent6, targetInst5, nativeEventTarget3, dispatchQueue3, dispatchQueue1, domEventName4, targetInst2, nativeEvent3, nativeEventTarget1, eventSystemFlags3, dispatchQueue2, domEventName5, targetInst3, nativeEvent4, nativeEventTarget2;
return domEventName7 = domEventName6, eventSystemFlags5 = eventSystemFlags4, nativeEvent6 = nativeEvent5, targetInst5 = ancestorInst, nativeEventTarget3 = getEventTarget(nativeEvent6), void (function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var reactName = topLevelEventsToReactNames.get(domEventName);
if (void 0 !== reactName) {
var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName;
switch(domEventName){
case "keypress":
if (0 === getEventCharCode(nativeEvent)) return;
case "keydown":
case "keyup":
SyntheticEventCtor = SyntheticKeyboardEvent;
break;
case "focusin":
reactEventType = "focus", SyntheticEventCtor = SyntheticFocusEvent;
break;
case "focusout":
reactEventType = "blur", SyntheticEventCtor = SyntheticFocusEvent;
break;
case "beforeblur":
case "afterblur":
SyntheticEventCtor = SyntheticFocusEvent;
break;
case "click":
if (2 === nativeEvent.button) return;
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
SyntheticEventCtor = SyntheticMouseEvent;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
SyntheticEventCtor = SyntheticDragEvent;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
SyntheticEventCtor = SyntheticTouchEvent;
break;
case ANIMATION_END:
case ANIMATION_ITERATION:
case ANIMATION_START:
SyntheticEventCtor = SyntheticAnimationEvent;
break;
case TRANSITION_END:
SyntheticEventCtor = SyntheticTransitionEvent;
break;
case "scroll":
SyntheticEventCtor = SyntheticUIEvent;
break;
case "wheel":
SyntheticEventCtor = SyntheticWheelEvent;
break;
case "copy":
case "cut":
case "paste":
SyntheticEventCtor = SyntheticClipboardEvent;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
SyntheticEventCtor = SyntheticPointerEvent;
break;
}
var inCapturePhase = (4 & eventSystemFlags) != 0, accumulateTargetOnly = !inCapturePhase && "scroll" === domEventName, _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);
if (_listeners.length > 0) {
var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);
dispatchQueue.push({
event: _event,
listeners: _listeners
});
}
}
}(dispatchQueue1 = dispatchQueue3 = [], domEventName4 = domEventName7, targetInst2 = targetInst5, nativeEvent3 = nativeEvent6, nativeEventTarget1 = nativeEventTarget3, eventSystemFlags3 = eventSystemFlags5), (7 & eventSystemFlags3) == 0 && (function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var win, from, to, isOverEvent = "mouseover" === domEventName || "pointerover" === domEventName, isOutEvent = "mouseout" === domEventName || "pointerout" === domEventName;
if (isOverEvent && (16 & eventSystemFlags) == 0) {
var related = nativeEvent.relatedTarget || nativeEvent.fromElement;
if (related && (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related))) return;
}
if (isOutEvent || isOverEvent) {
if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget;
else {
var doc = nativeEventTarget.ownerDocument;
win = doc ? doc.defaultView || doc.parentWindow : window;
}
if (isOutEvent) {
var _related = nativeEvent.relatedTarget || nativeEvent.toElement;
if (from = targetInst, null !== (to = _related ? getClosestInstanceFromNode(_related) : null)) {
var nearestMounted = getNearestMountedFiber(to);
(to !== nearestMounted || 5 !== to.tag && 6 !== to.tag) && (to = null);
}
} else from = null, to = targetInst;
if (from !== to) {
var SyntheticEventCtor = SyntheticMouseEvent, leaveEventType = "onMouseLeave", enterEventType = "onMouseEnter", eventTypePrefix = "mouse";
("pointerout" === domEventName || "pointerover" === domEventName) && (SyntheticEventCtor = SyntheticPointerEvent, leaveEventType = "onPointerLeave", enterEventType = "onPointerEnter", eventTypePrefix = "pointer");
var fromNode = null == from ? win : getNodeFromInstance(from), toNode = null == to ? win : getNodeFromInstance(to), leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + "leave", from, nativeEvent, nativeEventTarget);
leave.target = fromNode, leave.relatedTarget = toNode;
var enter = null;
if (getClosestInstanceFromNode(nativeEventTarget) === targetInst) {
var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + "enter", to, nativeEvent, nativeEventTarget);
enterEvent.target = toNode, enterEvent.relatedTarget = fromNode, enter = enterEvent;
}
accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
}
}
}(dispatchQueue1, domEventName4, targetInst2, nativeEvent3, nativeEventTarget1, eventSystemFlags3), function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var node, state, elem, nodeName, getTargetInstFunc, handleEventFunc, elem1, nodeName1, targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
if ("select" === (nodeName1 = (elem1 = targetNode).nodeName && elem1.nodeName.toLowerCase()) || "input" === nodeName1 && "file" === elem1.type ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, handleEventFunc = handleEventsForInputEventPolyfill) : (nodeName = (elem = targetNode).nodeName) && "input" === nodeName.toLowerCase() && ("checkbox" === elem.type || "radio" === elem.type) && (getTargetInstFunc = getTargetInstForClickEvent), getTargetInstFunc) {
var inst = getTargetInstFunc(domEventName, targetInst);
if (inst) {
createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
return;
}
}
handleEventFunc && handleEventFunc(domEventName, targetNode, targetInst), "focusout" === domEventName && (state = (node = targetNode)._wrapperState) && state.controlled && "number" === node.type && setDefaultValue(node, "number", node.value);
}(dispatchQueue1, domEventName4, targetInst2, nativeEvent3, nativeEventTarget1), function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
switch(domEventName){
case "focusin":
(isTextInputElement(targetNode) || "true" === targetNode.contentEditable) && (activeElement$1 = targetNode, activeElementInst$1 = targetInst, lastSelection = null);
break;
case "focusout":
activeElement$1 = null, activeElementInst$1 = null, lastSelection = null;
break;
case "mousedown":
mouseDown = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
mouseDown = !1, constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
break;
case "selectionchange":
if (skipSelectionChangeEvent) break;
case "keydown":
case "keyup":
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
}
}(dispatchQueue1, domEventName4, targetInst2, nativeEvent3, nativeEventTarget1), function(dispatchQueue, domEventName9, targetInst, nativeEvent, nativeEventTarget) {
if (canUseCompositionEvent ? eventType = (function(domEventName) {
switch(domEventName){
case "compositionstart":
return "onCompositionStart";
case "compositionend":
return "onCompositionEnd";
case "compositionupdate":
return "onCompositionUpdate";
}
})(domEventName9) : isComposing ? isFallbackCompositionEnd(domEventName9, nativeEvent) && (eventType = "onCompositionEnd") : (domEventName8 = domEventName9, nativeEvent7 = nativeEvent, "keydown" === domEventName8 && 229 === nativeEvent7.keyCode && (eventType = "onCompositionStart")), !eventType) return null;
useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : isComposing = (root1 = nativeEventTarget, startText = getText(), !0));
var domEventName8, nativeEvent7, eventType, fallbackData, listeners = accumulateTwoPhaseListeners(targetInst, eventType);
if (listeners.length > 0) {
var event = new SyntheticCompositionEvent(eventType, domEventName9, null, nativeEvent, nativeEventTarget);
if (dispatchQueue.push({
event: event,
listeners: listeners
}), fallbackData) event.data = fallbackData;
else {
var customData = getDataFromCustomEvent(nativeEvent);
null !== customData && (event.data = customData);
}
}
}(dispatchQueue2 = dispatchQueue1, domEventName5 = domEventName4, targetInst3 = targetInst2, nativeEvent4 = nativeEvent3, nativeEventTarget2 = nativeEventTarget1), function(dispatchQueue, domEventName10, targetInst, nativeEvent8, nativeEventTarget) {
var chars1;
if (!(chars1 = canUseTextInputEvent ? function(domEventName, nativeEvent) {
switch(domEventName){
case "compositionend":
return getDataFromCustomEvent(nativeEvent);
case "keypress":
if (32 !== nativeEvent.which) return null;
return hasSpaceKeypress = !0, " ";
case "textInput":
var chars = nativeEvent.data;
if (" " === chars && hasSpaceKeypress) return null;
return chars;
default:
return null;
}
}(domEventName10, nativeEvent8) : function(domEventName, nativeEvent) {
var nativeEvent9;
if (isComposing) return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (root1 = null, startText = null, fallbackText = null, isComposing = !1, getData()) : null;
switch(domEventName){
case "paste":
return null;
case "keypress":
if (!(((nativeEvent9 = nativeEvent).ctrlKey || nativeEvent9.altKey || nativeEvent9.metaKey) && !(nativeEvent9.ctrlKey && nativeEvent9.altKey))) {
if (nativeEvent.char && nativeEvent.char.length > 1) return nativeEvent.char;
if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);
}
return null;
case "compositionend":
return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
default:
return null;
}
}(domEventName10, nativeEvent8))) return null;
var listeners = accumulateTwoPhaseListeners(targetInst, "onBeforeInput");
if (listeners.length > 0) {
var event = new SyntheticInputEvent("onBeforeInput", "beforeinput", null, nativeEvent8, nativeEventTarget);
dispatchQueue.push({
event: event,
listeners: listeners
}), event.data = chars1;
}
}(dispatchQueue2, domEventName5, targetInst3, nativeEvent4, nativeEventTarget2)), processDispatchQueue(dispatchQueue3, eventSystemFlags5));
});
}
function createDispatchListener(instance, listener, currentTarget) {
return {
instance: instance,
listener: listener,
currentTarget: currentTarget
};
}
function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) {
for(var reactEventName = inCapturePhase ? null !== reactName ? reactName + "Capture" : null : reactName, listeners = [], instance = targetFiber, lastHostComponent = null; null !== instance;){
var _instance2 = instance, stateNode = _instance2.stateNode;
if (5 === _instance2.tag && null !== stateNode && (lastHostComponent = stateNode, null !== reactEventName)) {
var listener = getListener(instance, reactEventName);
null != listener && listeners.push(createDispatchListener(instance, listener, lastHostComponent));
}
if (accumulateTargetOnly) break;
instance = instance.return;
}
return listeners;
}
function accumulateTwoPhaseListeners(targetFiber, reactName) {
for(var captureName = reactName + "Capture", listeners = [], instance = targetFiber; null !== instance;){
var _instance3 = instance, stateNode = _instance3.stateNode;
if (5 === _instance3.tag && null !== stateNode) {
var currentTarget = stateNode, captureListener = getListener(instance, captureName);
null != captureListener && listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
var bubbleListener = getListener(instance, reactName);
null != bubbleListener && listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
}
instance = instance.return;
}
return listeners;
}
function getParent(inst) {
if (null === inst) return null;
do inst = inst.return;
while (inst && 5 !== inst.tag)
return inst || null;
}
function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
for(var registrationName = event._reactName, listeners = [], instance = target; null !== instance;){
if (instance === common) break;
var _instance4 = instance, alternate = _instance4.alternate, stateNode = _instance4.stateNode, tag = _instance4.tag;
if (null !== alternate && alternate === common) break;
if (5 === tag && null !== stateNode) {
var currentTarget = stateNode;
if (inCapturePhase) {
var captureListener = getListener(instance, registrationName);
null != captureListener && listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
} else if (!inCapturePhase) {
var bubbleListener = getListener(instance, registrationName);
null != bubbleListener && listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
}
}
instance = instance.return;
}
0 !== listeners.length && dispatchQueue.push({
event: event,
listeners: listeners
});
}
function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
var common = from && to ? function(instA, instB) {
for(var nodeA = instA, nodeB = instB, depthA = 0, tempA = nodeA; tempA; tempA = getParent(tempA))depthA++;
for(var depthB = 0, tempB = nodeB; tempB; tempB = getParent(tempB))depthB++;
for(; depthA - depthB > 0;)nodeA = getParent(nodeA), depthA--;
for(; depthB - depthA > 0;)nodeB = getParent(nodeB), depthB--;
for(var depth = depthA; depth--;){
if (nodeA === nodeB || null !== nodeB && nodeA === nodeB.alternate) return nodeA;
nodeA = getParent(nodeA), nodeB = getParent(nodeB);
}
return null;
}(from, to) : null;
null !== from && accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, !1), null !== to && null !== enterEvent && accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, !0);
}
function getListenerSetKey(domEventName, capture) {
return domEventName + "__" + (capture ? "capture" : "bubble");
}
var didWarnInvalidHydration = !1, DANGEROUSLY_SET_INNER_HTML = "dangerouslySetInnerHTML", SUPPRESS_CONTENT_EDITABLE_WARNING = "suppressContentEditableWarning", SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning", AUTOFOCUS = "autoFocus", CHILDREN = "children", STYLE = "style", HTML$1 = "__html", HTML_NAMESPACE$1 = Namespaces.html;
warnedUnknownTags = {
dialog: !0,
webview: !0
}, validatePropertiesInDevelopment = function(type4, props6) {
var type1, props3, type2, props4, type3, props5, eventRegistry;
isCustomComponent(type1 = type4, props3 = props6) || (function(type, props) {
var invalidProps = [];
for(var key in props)validateProperty(type, key) || invalidProps.push(key);
var unknownPropString = invalidProps.map(function(prop) {
return "`" + prop + "`";
}).join(", ");
1 === invalidProps.length ? error1("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type) : invalidProps.length > 1 && error1("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type);
})(type1, props3), type2 = type4, props4 = props6, ("input" === type2 || "textarea" === type2 || "select" === type2) && (null == props4 || null !== props4.value || didWarnValueNull || (didWarnValueNull = !0, "select" === type2 && props4.multiple ? error1("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", type2) : error1("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", type2))), type3 = type4, props5 = props6, eventRegistry = {
registrationNameDependencies: registrationNameDependencies1,
possibleRegistrationNames: possibleRegistrationNames1
}, isCustomComponent(type3, props5) || warnUnknownProperties(type3, props5, eventRegistry);
}, canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
function getOwnerDocumentFromRootContainer(rootContainerElement) {
return 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument;
}
function noop() {}
function trapClickOnNonInteractiveElement(node) {
node.onclick = noop;
}
function getPossibleStandardName(propName) {
var lowerCasedName = propName.toLowerCase();
return possibleStandardNames.hasOwnProperty(lowerCasedName) ? possibleStandardNames[lowerCasedName] || null : null;
}
function warnForUnmatchedText(textNode, text) {
warnForTextDifference(textNode.nodeValue, text);
}
function warnForDeletedHydratableElement(parentNode, child) {
didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1("Did not expect server HTML to contain a <%s> in <%s>.", child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase()));
}
function warnForDeletedHydratableText(parentNode, child) {
didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1("Did not expect server HTML to contain the text node \"%s\" in <%s>.", child.nodeValue, parentNode.nodeName.toLowerCase()));
}
function warnForInsertedHydratedElement(parentNode, tag, props) {
didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1("Expected server HTML to contain a matching <%s> in <%s>.", tag, parentNode.nodeName.toLowerCase()));
}
function warnForInsertedHydratedText(parentNode, text) {
"" !== text && (didWarnInvalidHydration || (didWarnInvalidHydration = !0, error1("Expected server HTML to contain a matching text node for \"%s\" in <%s>.", text, parentNode.nodeName.toLowerCase())));
}
normalizeMarkupForTextOrAttribute = function(markup) {
return ("string" == typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, "");
}, warnForTextDifference = function(serverText, clientText) {
if (!didWarnInvalidHydration) {
var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText), normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
normalizedServerText !== normalizedClientText && (didWarnInvalidHydration = !0, error1("Text content did not match. Server: \"%s\" Client: \"%s\"", normalizedServerText, normalizedClientText));
}
}, warnForPropDifference = function(propName, serverValue, clientValue) {
if (!didWarnInvalidHydration) {
var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
normalizedServerValue !== normalizedClientValue && (didWarnInvalidHydration = !0, error1("Prop `%s` did not match. Server: %s Client: %s", propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue)));
}
}, warnForExtraAttributes = function(attributeNames) {
if (!didWarnInvalidHydration) {
didWarnInvalidHydration = !0;
var names = [];
attributeNames.forEach(function(name) {
names.push(name);
}), error1("Extra attributes from the server: %s", names);
}
}, warnForInvalidEventListener = function(registrationName, listener) {
!1 === listener ? error1("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", registrationName, registrationName, registrationName) : error1("Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener);
}, normalizeHTML = function(parent, html) {
var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
return testElement.innerHTML = html, testElement.innerHTML;
};
var validateDOMNesting = function() {}, updatedAncestorInfo = function() {}, specialTags = [
"address",
"applet",
"area",
"article",
"aside",
"base",
"basefont",
"bgsound",
"blockquote",
"body",
"br",
"button",
"caption",
"center",
"col",
"colgroup",
"dd",
"details",
"dir",
"div",
"dl",
"dt",
"embed",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"frame",
"frameset",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"head",
"header",
"hgroup",
"hr",
"html",
"iframe",
"img",
"input",
"isindex",
"li",
"link",
"listing",
"main",
"marquee",
"menu",
"menuitem",
"meta",
"nav",
"noembed",
"noframes",
"noscript",
"object",
"ol",
"p",
"param",
"plaintext",
"pre",
"script",
"section",
"select",
"source",
"style",
"summary",
"table",
"tbody",
"td",
"template",
"textarea",
"tfoot",
"th",
"thead",
"title",
"tr",
"track",
"ul",
"wbr",
"xmp"
], inScopeTags = [
"applet",
"caption",
"html",
"table",
"td",
"th",
"marquee",
"object",
"template",
"foreignObject",
"desc",
"title"
], buttonScopeTags = inScopeTags.concat([
"button"
]), impliedEndTags = [
"dd",
"dt",
"li",
"option",
"optgroup",
"p",
"rp",
"rt"
], emptyAncestorInfo = {
current: null,
formTag: null,
aTagInScope: null,
buttonTagInScope: null,
nobrTagInScope: null,
pTagInButtonScope: null,
listItemTagAutoclosing: null,
dlItemTagAutoclosing: null
};
updatedAncestorInfo = function(oldInfo, tag) {
var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo), info = {
tag: tag
};
return -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, ancestorInfo.nobrTagInScope = null), -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null), -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, ancestorInfo.dlItemTagAutoclosing = null), ancestorInfo.current = info, "form" === tag && (ancestorInfo.formTag = info), "a" === tag && (ancestorInfo.aTagInScope = info), "button" === tag && (ancestorInfo.buttonTagInScope = info), "nobr" === tag && (ancestorInfo.nobrTagInScope = info), "p" === tag && (ancestorInfo.pTagInButtonScope = info), "li" === tag && (ancestorInfo.listItemTagAutoclosing = info), ("dd" === tag || "dt" === tag) && (ancestorInfo.dlItemTagAutoclosing = info), ancestorInfo;
};
var isTagValidWithParent = function(tag, parentTag) {
switch(parentTag){
case "select":
return "option" === tag || "optgroup" === tag || "#text" === tag;
case "optgroup":
return "option" === tag || "#text" === tag;
case "option":
return "#text" === tag;
case "tr":
return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag;
case "tbody":
case "thead":
case "tfoot":
return "tr" === tag || "style" === tag || "script" === tag || "template" === tag;
case "colgroup":
return "col" === tag || "template" === tag;
case "table":
return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag;
case "head":
return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag;
case "html":
return "head" === tag || "body" === tag || "frameset" === tag;
case "frameset":
return "frame" === tag;
case "#document":
return "html" === tag;
}
switch(tag){
case "h1":
case "h2":
case "h3":
case "h4":
case "h5":
case "h6":
return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag;
case "rp":
case "rt":
return -1 === impliedEndTags.indexOf(parentTag);
case "body":
case "caption":
case "col":
case "colgroup":
case "frameset":
case "frame":
case "head":
case "html":
case "tbody":
case "td":
case "tfoot":
case "th":
case "thead":
case "tr":
return null == parentTag;
}
return !0;
}, findInvalidAncestorForTag = function(tag, ancestorInfo) {
switch(tag){
case "address":
case "article":
case "aside":
case "blockquote":
case "center":
case "details":
case "dialog":
case "dir":
case "div":
case "dl":
case "fieldset":
case "figcaption":
case "figure":
case "footer":
case "header":
case "hgroup":
case "main":
case "menu":
case "nav":
case "ol":
case "p":
case "section":
case "summary":
case "ul":
case "pre":
case "listing":
case "table":
case "hr":
case "xmp":
case "h1":
case "h2":
case "h3":
case "h4":
case "h5":
case "h6":
return ancestorInfo.pTagInButtonScope;
case "form":
return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
case "li":
return ancestorInfo.listItemTagAutoclosing;
case "dd":
case "dt":
return ancestorInfo.dlItemTagAutoclosing;
case "button":
return ancestorInfo.buttonTagInScope;
case "a":
return ancestorInfo.aTagInScope;
case "nobr":
return ancestorInfo.nobrTagInScope;
}
return null;
}, didWarn$1 = {};
validateDOMNesting = function(childTag, childText, ancestorInfo) {
var parentInfo = (ancestorInfo = ancestorInfo || emptyAncestorInfo).current, parentTag = parentInfo && parentInfo.tag;
null != childText && (null != childTag && error1("validateDOMNesting: when childText is passed, childTag should be null"), childTag = "#text");
var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo, invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo), invalidParentOrAncestor = invalidParent || invalidAncestor;
if (invalidParentOrAncestor) {
var ancestorTag = invalidParentOrAncestor.tag, warnKey = !!invalidParent + "|" + childTag + "|" + ancestorTag;
if (!didWarn$1[warnKey]) {
didWarn$1[warnKey] = !0;
var tagDisplayName = childTag, whitespaceInfo = "";
if ("#text" === childTag ? /\S/.test(childText) ? tagDisplayName = "Text nodes" : (tagDisplayName = "Whitespace text nodes", whitespaceInfo = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : tagDisplayName = "<" + childTag + ">", invalidParent) {
var info = "";
"table" === ancestorTag && "tr" === childTag && (info += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), error1("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s", tagDisplayName, ancestorTag, whitespaceInfo, info);
} else error1("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.", tagDisplayName, ancestorTag);
}
}
}, SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning";
var eventsEnabled = null, selectionInformation = null;
function shouldAutoFocusHostComponent(type, props) {
switch(type){
case "button":
case "input":
case "select":
case "textarea":
return !!props.autoFocus;
}
return !1;
}
function getPublicInstance(instance) {
return instance;
}
function appendInitialChild(parentInstance, child) {
parentInstance.appendChild(child);
}
function shouldSetTextContent(type, props) {
return "textarea" === type || "option" === type || "noscript" === type || "string" == typeof props.children || "number" == typeof props.children || "object" == typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html;
}
var scheduleTimeout = "function" == typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" == typeof clearTimeout ? clearTimeout : void 0;
function resetTextContent(domElement) {
setTextContent(domElement, "");
}
function removeChild(parentInstance, child) {
parentInstance.removeChild(child);
}
function removeChildFromContainer(container, child) {
8 === container.nodeType ? container.parentNode.removeChild(child) : container.removeChild(child);
}
function hideInstance(instance) {
var style = (instance = instance).style;
"function" == typeof style.setProperty ? style.setProperty("display", "none", "important") : style.display = "none";
}
function hideTextInstance(textInstance) {
textInstance.nodeValue = "";
}
function unhideInstance(instance, props) {
instance = instance;
var styleProp = props.style, display = null != styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null;
instance.style.display = dangerousStyleValue("display", display);
}
function unhideTextInstance(textInstance, text) {
textInstance.nodeValue = text;
}
function clearContainer(container) {
if (1 === container.nodeType) container.textContent = "";
else if (9 === container.nodeType) {
var body = container.body;
null != body && (body.textContent = "");
}
}
function isSuspenseInstancePending(instance) {
return "$?" === instance.data;
}
function isSuspenseInstanceFallback(instance) {
return "$!" === instance.data;
}
function getNextHydratable(node) {
for(; null != node; node = node.nextSibling){
var nodeType = node.nodeType;
if (1 === nodeType || 3 === nodeType) break;
}
return node;
}
function getNextHydratableSibling(instance) {
return getNextHydratable(instance.nextSibling);
}
function getFirstHydratableChild(parentInstance) {
return getNextHydratable(parentInstance.firstChild);
}
function getParentSuspenseInstance(targetInstance) {
for(var node = targetInstance.previousSibling, depth = 0; node;){
if (8 === node.nodeType) {
var data = node.data;
if ("$" === data || "$!" === data || "$?" === data) {
if (0 === depth) return node;
depth--;
} else "/$" === data && depth++;
}
node = node.previousSibling;
}
return null;
}
var clientId = 0;
function makeClientIdInDEV(warnOnAccessInDEV) {
var id = "r:" + (clientId++).toString(36);
return {
toString: function() {
return warnOnAccessInDEV(), id;
},
valueOf: function() {
return warnOnAccessInDEV(), id;
}
};
}
function isOpaqueHydratingObject(value) {
return null !== value && "object" == typeof value && value.$$typeof === REACT_OPAQUE_ID_TYPE;
}
var randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactFiber$" + randomKey, internalPropsKey = "__reactProps$" + randomKey, internalContainerInstanceKey = "__reactContainer$" + randomKey, internalEventHandlersKey = "__reactEvents$" + randomKey;
function precacheFiberNode(hostInst, node) {
node[internalInstanceKey] = hostInst;
}
function unmarkContainerAsRoot(node) {
node[internalContainerInstanceKey] = null;
}
function isContainerMarkedAsRoot(node) {
return !!node[internalContainerInstanceKey];
}
function getClosestInstanceFromNode(targetNode) {
var targetInst = targetNode[internalInstanceKey];
if (targetInst) return targetInst;
for(var parentNode = targetNode.parentNode; parentNode;){
if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) {
var alternate = targetInst.alternate;
if (null !== targetInst.child || null !== alternate && null !== alternate.child) for(var suspenseInstance = getParentSuspenseInstance(targetNode); null !== suspenseInstance;){
var targetSuspenseInst = suspenseInstance[internalInstanceKey];
if (targetSuspenseInst) return targetSuspenseInst;
suspenseInstance = getParentSuspenseInstance(suspenseInstance);
}
return targetInst;
}
parentNode = (targetNode = parentNode).parentNode;
}
return null;
}
function getInstanceFromNode(node) {
var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
return inst && (5 === inst.tag || 6 === inst.tag || 13 === inst.tag || 3 === inst.tag) ? inst : null;
}
function getNodeFromInstance(inst) {
if (5 === inst.tag || 6 === inst.tag) return inst.stateNode;
throw Error("getNodeFromInstance: Invalid argument.");
}
function getFiberCurrentPropsFromNode(node) {
return node[internalPropsKey] || null;
}
function updateFiberProps(node, props) {
node[internalPropsKey] = props;
}
function getEventListenerSet(node) {
var elementListenerSet = node[internalEventHandlersKey];
return void 0 === elementListenerSet && (elementListenerSet = node[internalEventHandlersKey] = new Set()), elementListenerSet;
}
var loggedTypeFailures = {}, ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
function setCurrentlyValidatingElement(element) {
if (element) {
var owner = element._owner, stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
} else ReactDebugCurrentFrame$1.setExtraStackFrame(null);
}
function checkPropTypes(typeSpecs, values, location, componentName, element) {
var has = Function.call.bind(Object.prototype.hasOwnProperty);
for(var typeSpecName in typeSpecs)if (has(typeSpecs, typeSpecName)) {
var error$1 = void 0;
try {
if ("function" != typeof typeSpecs[typeSpecName]) {
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw err.name = "Invariant Violation", err;
}
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (ex) {
error$1 = ex;
}
!error$1 || error$1 instanceof Error || (setCurrentlyValidatingElement(element), error1("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1), setCurrentlyValidatingElement(null)), error$1 instanceof Error && !(error$1.message in loggedTypeFailures) && (loggedTypeFailures[error$1.message] = !0, setCurrentlyValidatingElement(element), error1("Failed %s type: %s", location, error$1.message), setCurrentlyValidatingElement(null));
}
}
var valueStack = [];
fiberStack = [];
var index1 = -1;
function createCursor(defaultValue) {
return {
current: defaultValue
};
}
function pop(cursor, fiber) {
if (index1 < 0) {
error1("Unexpected pop.");
return;
}
fiber !== fiberStack[index1] && error1("Unexpected Fiber popped."), cursor.current = valueStack[index1], valueStack[index1] = null, fiberStack[index1] = null, index1--;
}
function push(cursor, value, fiber) {
index1++, valueStack[index1] = cursor.current, fiberStack[index1] = fiber, cursor.current = value;
}
warnedAboutMissingGetChildContext = {};
var emptyContextObject = {};
Object.freeze(emptyContextObject);
var contextStackCursor = createCursor(emptyContextObject), didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject;
function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
return didPushOwnContextIfProvider && isContextProvider(Component) ? previousContext : contextStackCursor.current;
}
function cacheContext(workInProgress, unmaskedContext, maskedContext) {
var instance = workInProgress.stateNode;
instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
}
function getMaskedContext(workInProgress, unmaskedContext) {
var type = workInProgress.type, contextTypes = type.contextTypes;
if (!contextTypes) return emptyContextObject;
var instance = workInProgress.stateNode;
if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext;
var context = {};
for(var key in contextTypes)context[key] = unmaskedContext[key];
return checkPropTypes(contextTypes, context, "context", getComponentName(type) || "Unknown"), instance && cacheContext(workInProgress, unmaskedContext, context), context;
}
function hasContextChanged() {
return didPerformWorkStackCursor.current;
}
function isContextProvider(type) {
return null != type.childContextTypes;
}
function popContext(fiber) {
pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber);
}
function popTopLevelContextObject(fiber) {
pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber);
}
function pushTopLevelContextObject(fiber, context, didChange) {
if (contextStackCursor.current !== emptyContextObject) throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");
push(contextStackCursor, context, fiber), push(didPerformWorkStackCursor, didChange, fiber);
}
function processChildContext(fiber, type, parentContext) {
var instance = fiber.stateNode, childContextTypes = type.childContextTypes;
if ("function" != typeof instance.getChildContext) {
var componentName = getComponentName(type) || "Unknown";
return warnedAboutMissingGetChildContext[componentName] || (warnedAboutMissingGetChildContext[componentName] = !0, error1("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", componentName, componentName)), parentContext;
}
var childContext = instance.getChildContext();
for(var contextKey in childContext)if (!(contextKey in childContextTypes)) throw Error((getComponentName(type) || "Unknown") + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
return checkPropTypes(childContextTypes, childContext, "child context", getComponentName(type) || "Unknown"), _assign({}, parentContext, childContext);
}
function pushContextProvider(workInProgress) {
var instance = workInProgress.stateNode, memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
return previousContext = contextStackCursor.current, push(contextStackCursor, memoizedMergedChildContext, workInProgress), push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress), !0;
}
function invalidateContextProvider(workInProgress, type, didChange) {
var instance = workInProgress.stateNode;
if (!instance) throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");
if (didChange) {
var mergedContext = processChildContext(workInProgress, type, previousContext);
instance.__reactInternalMemoizedMergedChildContext = mergedContext, pop(didPerformWorkStackCursor, workInProgress), pop(contextStackCursor, workInProgress), push(contextStackCursor, mergedContext, workInProgress), push(didPerformWorkStackCursor, didChange, workInProgress);
} else pop(didPerformWorkStackCursor, workInProgress), push(didPerformWorkStackCursor, didChange, workInProgress);
}
var rendererID = null, injectedHook = null, hasLoggedError = !1, isDevToolsPresent = "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, Scheduler_runWithPriority = unstable_runWithPriority, Scheduler_scheduleCallback = unstable_scheduleCallback, Scheduler_cancelCallback = unstable_cancelCallback, Scheduler_requestPaint = unstable_requestPaint, Scheduler_now$1 = unstable_now, Scheduler_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel, Scheduler_ImmediatePriority = unstable_ImmediatePriority, Scheduler_UserBlockingPriority = unstable_UserBlockingPriority, Scheduler_NormalPriority = unstable_NormalPriority, Scheduler_LowPriority = unstable_LowPriority, Scheduler_IdlePriority = unstable_IdlePriority;
if (!(null != __interactionsRef && null != __interactionsRef.current)) throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");
var fakeCallbackNode = {}, NormalPriority$1 = 97, shouldYield = unstable_shouldYield, requestPaint = void 0 !== Scheduler_requestPaint ? Scheduler_requestPaint : function() {}, syncQueue = null, immediateQueueCallbackNode = null, isFlushingSyncQueue = !1, initialTimeMs$1 = Scheduler_now$1(), now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function() {
return Scheduler_now$1() - initialTimeMs$1;
};
function getCurrentPriorityLevel() {
switch(Scheduler_getCurrentPriorityLevel()){
case Scheduler_ImmediatePriority:
return 99;
case Scheduler_UserBlockingPriority:
return 98;
case Scheduler_NormalPriority:
return NormalPriority$1;
case Scheduler_LowPriority:
return 96;
case Scheduler_IdlePriority:
return 95;
default:
throw Error("Unknown priority level.");
}
}
function reactPriorityToSchedulerPriority(reactPriorityLevel) {
switch(reactPriorityLevel){
case 99:
return Scheduler_ImmediatePriority;
case 98:
return Scheduler_UserBlockingPriority;
case NormalPriority$1:
return Scheduler_NormalPriority;
case 96:
return Scheduler_LowPriority;
case 95:
return Scheduler_IdlePriority;
default:
throw Error("Unknown priority level.");
}
}
function runWithPriority$1(reactPriorityLevel, fn) {
return Scheduler_runWithPriority(reactPriorityToSchedulerPriority(reactPriorityLevel), fn);
}
function scheduleCallback(reactPriorityLevel, callback, options) {
return Scheduler_scheduleCallback(reactPriorityToSchedulerPriority(reactPriorityLevel), callback, options);
}
function cancelCallback(callbackNode) {
callbackNode !== fakeCallbackNode && Scheduler_cancelCallback(callbackNode);
}
function flushSyncCallbackQueue() {
if (null !== immediateQueueCallbackNode) {
var node = immediateQueueCallbackNode;
immediateQueueCallbackNode = null, Scheduler_cancelCallback(node);
}
flushSyncCallbackQueueImpl();
}
function flushSyncCallbackQueueImpl() {
if (!isFlushingSyncQueue && null !== syncQueue) {
isFlushingSyncQueue = !0;
var i = 0;
try {
var _isSync2 = !0, _queue = syncQueue;
runWithPriority$1(99, function() {
for(; i < _queue.length; i++){
var callback = _queue[i];
do callback = callback(_isSync2);
while (null !== callback)
}
}), syncQueue = null;
} catch (error) {
throw null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)), Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue), error;
} finally{
isFlushingSyncQueue = !1;
}
}
}
var ReactVersion = "17.0.2", ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, ReactStrictModeWarnings = {
recordUnsafeLifecycleWarnings: function(fiber, instance) {},
flushPendingUnsafeLifecycleWarnings: function() {},
recordLegacyContextWarning: function(fiber, instance) {},
flushLegacyContextWarning: function() {},
discardPendingWarnings: function() {}
}, findStrictRoot = function(fiber) {
for(var maybeStrictRoot = null, node = fiber; null !== node;)1 & node.mode && (maybeStrictRoot = node), node = node.return;
return maybeStrictRoot;
}, setToSortedString = function(set) {
var array = [];
return set.forEach(function(value) {
array.push(value);
}), array.sort().join(", ");
}, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = new Set();
ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) {
!didWarnAboutUnsafeLifecycles.has(fiber.type) && ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), 1 & fiber.mode && "function" == typeof instance.UNSAFE_componentWillMount && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), 1 & fiber.mode && "function" == typeof instance.UNSAFE_componentWillReceiveProps && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber), 1 & fiber.mode && "function" == typeof instance.UNSAFE_componentWillUpdate && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber));
}, ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() {
var componentWillMountUniqueNames = new Set();
pendingComponentWillMountWarnings.length > 0 && (pendingComponentWillMountWarnings.forEach(function(fiber) {
componentWillMountUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillMountWarnings = []);
var UNSAFE_componentWillMountUniqueNames = new Set();
pendingUNSAFE_ComponentWillMountWarnings.length > 0 && (pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) {
UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingUNSAFE_ComponentWillMountWarnings = []);
var componentWillReceivePropsUniqueNames = new Set();
pendingComponentWillReceivePropsWarnings.length > 0 && (pendingComponentWillReceivePropsWarnings.forEach(function(fiber) {
componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillReceivePropsWarnings = []);
var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0 && (pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function(fiber) {
UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingUNSAFE_ComponentWillReceivePropsWarnings = []);
var componentWillUpdateUniqueNames = new Set();
pendingComponentWillUpdateWarnings.length > 0 && (pendingComponentWillUpdateWarnings.forEach(function(fiber) {
componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingComponentWillUpdateWarnings = []);
var UNSAFE_componentWillUpdateUniqueNames = new Set();
pendingUNSAFE_ComponentWillUpdateWarnings.length > 0 && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) {
UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type);
}), pendingUNSAFE_ComponentWillUpdateWarnings = []), UNSAFE_componentWillMountUniqueNames.size > 0 && error1("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillMountUniqueNames)), UNSAFE_componentWillReceivePropsUniqueNames.size > 0 && error1("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames)), UNSAFE_componentWillUpdateUniqueNames.size > 0 && error1("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", setToSortedString(UNSAFE_componentWillUpdateUniqueNames)), componentWillMountUniqueNames.size > 0 && warn("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillMountUniqueNames)), componentWillReceivePropsUniqueNames.size > 0 && warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillReceivePropsUniqueNames)), componentWillUpdateUniqueNames.size > 0 && warn("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", setToSortedString(componentWillUpdateUniqueNames));
};
var pendingLegacyContextWarning = new Map(), didWarnAboutLegacyContext = new Set();
function resolveDefaultProps(Component, baseProps) {
if (Component && Component.defaultProps) {
var props = _assign({}, baseProps), defaultProps = Component.defaultProps;
for(var propName in defaultProps)void 0 === props[propName] && (props[propName] = defaultProps[propName]);
return props;
}
return baseProps;
}
ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) {
var strictRoot = findStrictRoot(fiber);
if (null === strictRoot) {
error1("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");
return;
}
if (!didWarnAboutLegacyContext.has(fiber.type)) {
var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
(null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" == typeof instance.getChildContext) && (void 0 === warningsForRoot && (warningsForRoot = [], pendingLegacyContextWarning.set(strictRoot, warningsForRoot)), warningsForRoot.push(fiber));
}
}, ReactStrictModeWarnings.flushLegacyContextWarning = function() {
pendingLegacyContextWarning.forEach(function(fiberArray, strictRoot) {
if (0 !== fiberArray.length) {
var firstFiber = fiberArray[0], uniqueNames = new Set();
fiberArray.forEach(function(fiber) {
uniqueNames.add(getComponentName(fiber.type) || "Component"), didWarnAboutLegacyContext.add(fiber.type);
});
var sortedNames = setToSortedString(uniqueNames);
try {
setCurrentFiber(firstFiber), error1("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames);
} finally{
resetCurrentFiber();
}
}
});
}, ReactStrictModeWarnings.discardPendingWarnings = function() {
pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], pendingLegacyContextWarning = new Map();
};
var valueCursor = createCursor(null);
rendererSigil = {};
var currentlyRenderingFiber = null, lastContextDependency = null, lastContextWithAllBitsObserved = null, isDisallowedContextReadInDEV = !1;
function resetContextDependencies() {
currentlyRenderingFiber = null, lastContextDependency = null, lastContextWithAllBitsObserved = null, isDisallowedContextReadInDEV = !1;
}
function enterDisallowedContextReadInDEV() {
isDisallowedContextReadInDEV = !0;
}
function exitDisallowedContextReadInDEV() {
isDisallowedContextReadInDEV = !1;
}
function pushProvider(providerFiber, nextValue) {
var context = providerFiber.type._context;
push(valueCursor, context._currentValue, providerFiber), context._currentValue = nextValue, void 0 !== context._currentRenderer && null !== context._currentRenderer && context._currentRenderer !== rendererSigil && error1("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), context._currentRenderer = rendererSigil;
}
function popProvider(providerFiber) {
var currentValue = valueCursor.current;
pop(valueCursor, providerFiber);
var context = providerFiber.type._context;
context._currentValue = currentValue;
}
function scheduleWorkOnParentPath(parent, renderLanes) {
for(var node = parent; null !== node;){
var alternate = node.alternate;
if (isSubsetOfLanes(node.childLanes, renderLanes)) if (null === alternate || isSubsetOfLanes(alternate.childLanes, renderLanes)) break;
else alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
else node.childLanes = mergeLanes(node.childLanes, renderLanes), null !== alternate && (alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes));
node = node.return;
}
}
function prepareToReadContext(workInProgress, renderLanes) {
currentlyRenderingFiber = workInProgress, lastContextDependency = null, lastContextWithAllBitsObserved = null;
var dependencies = workInProgress.dependencies;
null !== dependencies && null !== dependencies.firstContext && (includesSomeLane(dependencies.lanes, renderLanes) && markWorkInProgressReceivedUpdate(), dependencies.firstContext = null);
}
function readContext(context, observedBits) {
if (isDisallowedContextReadInDEV && error1("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."), lastContextWithAllBitsObserved === context) ;
else if (!1 === observedBits || 0 === observedBits) ;
else {
var resolvedObservedBits;
"number" != typeof observedBits || 1073741823 === observedBits ? (lastContextWithAllBitsObserved = context, resolvedObservedBits = 1073741823) : resolvedObservedBits = observedBits;
var contextItem = {
context: context,
observedBits: resolvedObservedBits,
next: null
};
if (null === lastContextDependency) {
if (!(null !== currentlyRenderingFiber)) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
lastContextDependency = contextItem, currentlyRenderingFiber.dependencies = {
lanes: NoLanes,
firstContext: contextItem,
responders: null
};
} else lastContextDependency = lastContextDependency.next = contextItem;
}
return context._currentValue;
}
var hasForceUpdate = !1;
function initializeUpdateQueue(fiber) {
var queue = {
baseState: fiber.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null
},
effects: null
};
fiber.updateQueue = queue;
}
function cloneUpdateQueue(current, workInProgress) {
var queue = workInProgress.updateQueue, currentQueue = current.updateQueue;
if (queue === currentQueue) {
var clone = {
baseState: currentQueue.baseState,
firstBaseUpdate: currentQueue.firstBaseUpdate,
lastBaseUpdate: currentQueue.lastBaseUpdate,
shared: currentQueue.shared,
effects: currentQueue.effects
};
workInProgress.updateQueue = clone;
}
}
function createUpdate(eventTime, lane) {
return {
eventTime: eventTime,
lane: lane,
tag: 0,
payload: null,
callback: null,
next: null
};
}
function enqueueUpdate(fiber, update) {
var updateQueue = fiber.updateQueue;
if (null !== updateQueue) {
var sharedQueue = updateQueue.shared, pending = sharedQueue.pending;
null === pending ? update.next = update : (update.next = pending.next, pending.next = update), sharedQueue.pending = update, currentlyProcessingQueue !== sharedQueue || didWarnUpdateInsideUpdate || (error1("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."), didWarnUpdateInsideUpdate = !0);
}
}
function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
var queue = workInProgress.updateQueue, current = workInProgress.alternate;
if (null !== current) {
var currentQueue = current.updateQueue;
if (queue === currentQueue) {
var newFirst = null, newLast = null, firstBaseUpdate = queue.firstBaseUpdate;
if (null !== firstBaseUpdate) {
var update = firstBaseUpdate;
do {
var clone = {
eventTime: update.eventTime,
lane: update.lane,
tag: update.tag,
payload: update.payload,
callback: update.callback,
next: null
};
null === newLast ? newFirst = newLast = clone : (newLast.next = clone, newLast = clone), update = update.next;
}while (null !== update)
null === newLast ? newFirst = newLast = capturedUpdate : (newLast.next = capturedUpdate, newLast = capturedUpdate);
} else newFirst = newLast = capturedUpdate;
queue = {
baseState: currentQueue.baseState,
firstBaseUpdate: newFirst,
lastBaseUpdate: newLast,
shared: currentQueue.shared,
effects: currentQueue.effects
}, workInProgress.updateQueue = queue;
return;
}
}
var lastBaseUpdate = queue.lastBaseUpdate;
null === lastBaseUpdate ? queue.firstBaseUpdate = capturedUpdate : lastBaseUpdate.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
}
function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
switch(update.tag){
case 1:
var payload = update.payload;
if ("function" == typeof payload) {
enterDisallowedContextReadInDEV();
var nextState = payload.call(instance, prevState, nextProps);
if (1 & workInProgress.mode) {
disableLogs();
try {
payload.call(instance, prevState, nextProps);
} finally{
reenableLogs();
}
}
return exitDisallowedContextReadInDEV(), nextState;
}
return payload;
case 3:
workInProgress.flags = -4097 & workInProgress.flags | DidCapture;
case 0:
var partialState, _payload = update.payload;
if ("function" == typeof _payload) {
if (enterDisallowedContextReadInDEV(), partialState = _payload.call(instance, prevState, nextProps), 1 & workInProgress.mode) {
disableLogs();
try {
_payload.call(instance, prevState, nextProps);
} finally{
reenableLogs();
}
}
exitDisallowedContextReadInDEV();
} else partialState = _payload;
if (null == partialState) return prevState;
return _assign({}, prevState, partialState);
case 2:
return hasForceUpdate = !0, prevState;
}
return prevState;
}
function processUpdateQueue(workInProgress, props, instance, renderLanes) {
var queue = workInProgress.updateQueue;
hasForceUpdate = !1, currentlyProcessingQueue = queue.shared;
var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending;
if (null !== pendingQueue) {
queue.shared.pending = null;
var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next;
lastPendingUpdate.next = null, null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate, lastBaseUpdate = lastPendingUpdate;
var current = workInProgress.alternate;
if (null !== current) {
var currentQueue = current.updateQueue, currentLastBaseUpdate = currentQueue.lastBaseUpdate;
currentLastBaseUpdate !== lastBaseUpdate && (null === currentLastBaseUpdate ? currentQueue.firstBaseUpdate = firstPendingUpdate : currentLastBaseUpdate.next = firstPendingUpdate, currentQueue.lastBaseUpdate = lastPendingUpdate);
}
}
if (null !== firstBaseUpdate) {
for(var newState = queue.baseState, newLanes = NoLanes, newBaseState = null, newFirstBaseUpdate = null, newLastBaseUpdate = null, update = firstBaseUpdate;;){
var updateLane = update.lane, updateEventTime = update.eventTime;
if (isSubsetOfLanes(renderLanes, updateLane)) {
if (null !== newLastBaseUpdate) {
var _clone = {
eventTime: updateEventTime,
lane: NoLane,
tag: update.tag,
payload: update.payload,
callback: update.callback,
next: null
};
newLastBaseUpdate = newLastBaseUpdate.next = _clone;
}
newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
var callback = update.callback;
if (null !== callback) {
workInProgress.flags |= 32;
var effects = queue.effects;
null === effects ? queue.effects = [
update
] : effects.push(update);
}
} else {
var clone = {
eventTime: updateEventTime,
lane: updateLane,
tag: update.tag,
payload: update.payload,
callback: update.callback,
next: null
};
null === newLastBaseUpdate ? (newFirstBaseUpdate = newLastBaseUpdate = clone, newBaseState = newState) : newLastBaseUpdate = newLastBaseUpdate.next = clone, newLanes = mergeLanes(newLanes, updateLane);
}
if (null === (update = update.next)) {
if (null === (pendingQueue = queue.shared.pending)) break;
var _lastPendingUpdate = pendingQueue, _firstPendingUpdate = _lastPendingUpdate.next;
_lastPendingUpdate.next = null, update = _firstPendingUpdate, queue.lastBaseUpdate = _lastPendingUpdate, queue.shared.pending = null;
}
}
null === newLastBaseUpdate && (newBaseState = newState), queue.baseState = newBaseState, queue.firstBaseUpdate = newFirstBaseUpdate, queue.lastBaseUpdate = newLastBaseUpdate, markSkippedUpdateLanes(newLanes), workInProgress.lanes = newLanes, workInProgress.memoizedState = newState;
}
currentlyProcessingQueue = null;
}
function callCallback1(callback, context) {
if ("function" != typeof callback) throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + callback);
callback.call(context);
}
function resetHasForceUpdateBeforeProcessing() {
hasForceUpdate = !1;
}
function checkHasForceUpdateAfterProcessing() {
return hasForceUpdate;
}
function commitUpdateQueue(finishedWork, finishedQueue, instance) {
var effects = finishedQueue.effects;
if (finishedQueue.effects = null, null !== effects) for(var i = 0; i < effects.length; i++){
var effect = effects[i], callback = effect.callback;
null !== callback && (effect.callback = null, callCallback1(callback, instance));
}
}
didWarnUpdateInsideUpdate = !1, currentlyProcessingQueue = null;
var fakeInternalInstance = {}, isArray1 = Array.isArray, emptyRefsObject = new React.Component().refs;
didWarnAboutStateAssignmentForComponent = new Set(), didWarnAboutUninitializedState = new Set(), didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(), didWarnAboutLegacyLifecyclesAndDerivedState = new Set(), didWarnAboutDirectlyAssigningPropsToState = new Set(), didWarnAboutUndefinedDerivedState = new Set(), didWarnAboutContextTypeAndContextTypes = new Set(), didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
var prevState = workInProgress.memoizedState;
if (1 & workInProgress.mode) {
disableLogs();
try {
getDerivedStateFromProps(nextProps, prevState);
} finally{
reenableLogs();
}
}
var partialState = getDerivedStateFromProps(nextProps, prevState);
warnOnUndefinedDerivedState(ctor, partialState);
var memoizedState = null == partialState ? prevState : _assign({}, prevState, partialState);
workInProgress.memoizedState = memoizedState, workInProgress.lanes === NoLanes && (workInProgress.updateQueue.baseState = memoizedState);
}
warnOnInvalidCallback = function(callback, callerName) {
if (null !== callback && "function" != typeof callback) {
var key = callerName + "_" + callback;
didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), error1("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callerName, callback));
}
}, warnOnUndefinedDerivedState = function(type, partialState) {
if (void 0 === partialState) {
var componentName = getComponentName(type) || "Component";
didWarnAboutUndefinedDerivedState.has(componentName) || (didWarnAboutUndefinedDerivedState.add(componentName), error1("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", componentName));
}
}, Object.defineProperty(fakeInternalInstance, "_processChildContext", {
enumerable: !1,
value: function() {
throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).");
}
}), Object.freeze(fakeInternalInstance);
var classComponentUpdater = {
isMounted: function(component) {
var owner = ReactCurrentOwner.current;
if (null !== owner && 1 === owner.tag) {
var ownerFiber = owner, instance = ownerFiber.stateNode;
instance._warnedAboutRefsInRender || error1("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentName(ownerFiber.type) || "A component"), instance._warnedAboutRefsInRender = !0;
}
var fiber = get1(component);
return !!fiber && getNearestMountedFiber(fiber) === fiber;
},
enqueueSetState: function(inst, payload, callback) {
var fiber = get1(inst), eventTime = requestEventTime(), lane = requestUpdateLane(fiber), update = createUpdate(eventTime, lane);
update.payload = payload, null != callback && (warnOnInvalidCallback(callback, "setState"), update.callback = callback), enqueueUpdate(fiber, update), scheduleUpdateOnFiber(fiber, lane, eventTime);
},
enqueueReplaceState: function(inst, payload, callback) {
var fiber = get1(inst), eventTime = requestEventTime(), lane = requestUpdateLane(fiber), update = createUpdate(eventTime, lane);
update.tag = 1, update.payload = payload, null != callback && (warnOnInvalidCallback(callback, "replaceState"), update.callback = callback), enqueueUpdate(fiber, update), scheduleUpdateOnFiber(fiber, lane, eventTime);
},
enqueueForceUpdate: function(inst, callback) {
var fiber = get1(inst), eventTime = requestEventTime(), lane = requestUpdateLane(fiber), update = createUpdate(eventTime, lane);
update.tag = 2, null != callback && (warnOnInvalidCallback(callback, "forceUpdate"), update.callback = callback), enqueueUpdate(fiber, update), scheduleUpdateOnFiber(fiber, lane, eventTime);
}
};
function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
var instance = workInProgress.stateNode;
if ("function" == typeof instance.shouldComponentUpdate) {
if (1 & workInProgress.mode) {
disableLogs();
try {
instance.shouldComponentUpdate(newProps, newState, nextContext);
} finally{
reenableLogs();
}
}
var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
return void 0 === shouldUpdate && error1("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", getComponentName(ctor) || "Component"), shouldUpdate;
}
return !ctor.prototype || !ctor.prototype.isPureReactComponent || !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
}
function adoptClassInstance(workInProgress, instance) {
var key, value;
instance.updater = classComponentUpdater, workInProgress.stateNode = instance, key = instance, value = workInProgress, key._reactInternals = value, instance._reactInternalInstance = fakeInternalInstance;
}
function constructClassInstance(workInProgress, ctor, props) {
var isLegacyContextConsumer = !1, unmaskedContext = emptyContextObject, context = emptyContextObject, contextType = ctor.contextType;
if ("contextType" in ctor && !(null === contextType || void 0 !== contextType && contextType.$$typeof === REACT_CONTEXT_TYPE && void 0 === contextType._context) && !didWarnAboutInvalidateContextType.has(ctor)) {
didWarnAboutInvalidateContextType.add(ctor);
var addendum = "";
addendum = void 0 === contextType ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" != typeof contextType ? " However, it is set to a " + typeof contextType + "." : contextType.$$typeof === REACT_PROVIDER_TYPE ? " Did you accidentally pass the Context.Provider instead?" : void 0 !== contextType._context ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}.", error1("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentName(ctor) || "Component", addendum);
}
if ("object" == typeof contextType && null !== contextType) context = readContext(contextType);
else {
unmaskedContext = getUnmaskedContext(workInProgress, ctor, !0);
var contextTypes = ctor.contextTypes;
context = (isLegacyContextConsumer = null != contextTypes) ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
}
if (1 & workInProgress.mode) {
disableLogs();
try {
new ctor(props, context);
} finally{
reenableLogs();
}
}
var instance = new ctor(props, context), state = workInProgress.memoizedState = null !== instance.state && void 0 !== instance.state ? instance.state : null;
if (adoptClassInstance(workInProgress, instance), "function" == typeof ctor.getDerivedStateFromProps && null === state) {
var componentName = getComponentName(ctor) || "Component";
didWarnAboutUninitializedState.has(componentName) || (didWarnAboutUninitializedState.add(componentName), error1("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, null === instance.state ? "null" : "undefined", componentName));
}
if ("function" == typeof ctor.getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate) {
var foundWillMountName = null, foundWillReceivePropsName = null, foundWillUpdateName = null;
if ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning ? foundWillMountName = "componentWillMount" : "function" == typeof instance.UNSAFE_componentWillMount && (foundWillMountName = "UNSAFE_componentWillMount"), "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning ? foundWillReceivePropsName = "componentWillReceiveProps" : "function" == typeof instance.UNSAFE_componentWillReceiveProps && (foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"), "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" == typeof instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), null !== foundWillMountName || null !== foundWillReceivePropsName || null !== foundWillUpdateName) {
var _componentName = getComponentName(ctor) || "Component", newApiName = "function" == typeof ctor.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName), error1("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, null !== foundWillMountName ? "\n " + foundWillMountName : "", null !== foundWillReceivePropsName ? "\n " + foundWillReceivePropsName : "", null !== foundWillUpdateName ? "\n " + foundWillUpdateName : ""));
}
}
return isLegacyContextConsumer && cacheContext(workInProgress, unmaskedContext, context), instance;
}
function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
var oldState = instance.state;
if ("function" == typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext), "function" == typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== oldState) {
var componentName = getComponentName(workInProgress.type) || "Component";
didWarnAboutStateAssignmentForComponent.has(componentName) || (didWarnAboutStateAssignmentForComponent.add(componentName), error1("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", componentName)), classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
}
}
function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
workInProgress2 = workInProgress, ctor1 = ctor, newProps1 = newProps, instance = workInProgress2.stateNode, name = getComponentName(ctor1) || "Component", instance.render || (ctor1.prototype && "function" == typeof ctor1.prototype.render ? error1("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", name) : error1("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", name)), !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state || error1("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", name), instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved && error1("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", name), instance.propTypes && error1("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name), instance.contextType && error1("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", name), instance.contextTypes && error1("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name), ctor1.contextType && ctor1.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor1) && (didWarnAboutContextTypeAndContextTypes.add(ctor1), error1("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", name)), "function" == typeof instance.componentShouldUpdate && error1("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", name), ctor1.prototype && ctor1.prototype.isPureReactComponent && void 0 !== instance.shouldComponentUpdate && error1("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentName(ctor1) || "A pure component"), "function" == typeof instance.componentDidUnmount && error1("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name), "function" == typeof instance.componentDidReceiveProps && error1("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name), "function" == typeof instance.componentWillRecieveProps && error1("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name), "function" == typeof instance.UNSAFE_componentWillRecieveProps && error1("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name), hasMutatedProps = instance.props !== newProps1, void 0 !== instance.props && hasMutatedProps && error1("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", name, name), instance.defaultProps && error1("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", name, name), "function" != typeof instance.getSnapshotBeforeUpdate || "function" == typeof instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor1) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor1), error1("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentName(ctor1))), "function" == typeof instance.getDerivedStateFromProps && error1("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), "function" == typeof instance.getDerivedStateFromError && error1("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), "function" == typeof ctor1.getSnapshotBeforeUpdate && error1("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", name), _state = instance.state, _state && ("object" != typeof _state || isArray1(_state)) && error1("%s.state: must be set to an object or null", name), "function" == typeof instance.getChildContext && "object" != typeof ctor1.childContextTypes && error1("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name);
var workInProgress2, ctor1, newProps1, instance, name, hasMutatedProps, _state, workInProgress3, instance1, oldState, instance2 = workInProgress.stateNode;
instance2.props = newProps, instance2.state = workInProgress.memoizedState, instance2.refs = emptyRefsObject, initializeUpdateQueue(workInProgress);
var contextType = ctor.contextType;
if ("object" == typeof contextType && null !== contextType) instance2.context = readContext(contextType);
else {
var unmaskedContext = getUnmaskedContext(workInProgress, ctor, !0);
instance2.context = getMaskedContext(workInProgress, unmaskedContext);
}
if (instance2.state === newProps) {
var componentName = getComponentName(ctor) || "Component";
didWarnAboutDirectlyAssigningPropsToState.has(componentName) || (didWarnAboutDirectlyAssigningPropsToState.add(componentName), error1("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", componentName));
}
1 & workInProgress.mode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance2), ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance2), processUpdateQueue(workInProgress, newProps, instance2, renderLanes), instance2.state = workInProgress.memoizedState;
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
"function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps), instance2.state = workInProgress.memoizedState), "function" != typeof ctor.getDerivedStateFromProps && "function" != typeof instance2.getSnapshotBeforeUpdate && ("function" == typeof instance2.UNSAFE_componentWillMount || "function" == typeof instance2.componentWillMount) && (workInProgress3 = workInProgress, oldState = (instance1 = instance2).state, "function" == typeof instance1.componentWillMount && instance1.componentWillMount(), "function" == typeof instance1.UNSAFE_componentWillMount && instance1.UNSAFE_componentWillMount(), oldState !== instance1.state && (error1("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentName(workInProgress3.type) || "Component"), classComponentUpdater.enqueueReplaceState(instance1, instance1.state, null)), processUpdateQueue(workInProgress, newProps, instance2, renderLanes), instance2.state = workInProgress.memoizedState), "function" == typeof instance2.componentDidMount && (workInProgress.flags |= Update);
}
var warnForMissingKey = function(child, returnFiber) {};
didWarnAboutMaps = !1, didWarnAboutGenerators = !1, didWarnAboutStringRefs = {}, ownerHasKeyUseWarning = {}, ownerHasFunctionTypeWarning = {}, warnForMissingKey = function(child, returnFiber) {
if (null !== child && "object" == typeof child && child._store && !child._store.validated && null == child.key) {
if ("object" != typeof child._store) throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");
child._store.validated = !0;
var componentName = getComponentName(returnFiber.type) || "Component";
ownerHasKeyUseWarning[componentName] || (ownerHasKeyUseWarning[componentName] = !0, error1("Each child in a list should have a unique \"key\" prop. See https://reactjs.org/link/warning-keys for more information."));
}
};
var isArray$1 = Array.isArray;
function coerceRef(returnFiber, current, element) {
var mixedRef = element.ref;
if (null !== mixedRef && "function" != typeof mixedRef && "object" != typeof mixedRef) {
if ((1 & returnFiber.mode || 0) && !(element._owner && element._self && element._owner.stateNode !== element._self)) {
var componentName = getComponentName(returnFiber.type) || "Component";
didWarnAboutStringRefs[componentName] || (error1("A string ref, \"%s\", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", mixedRef), didWarnAboutStringRefs[componentName] = !0);
}
if (element._owner) {
var inst, owner = element._owner;
if (owner) {
var ownerFiber = owner;
if (1 !== ownerFiber.tag) throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");
inst = ownerFiber.stateNode;
}
if (!inst) throw Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue.");
var stringRef = "" + mixedRef;
if (null !== current && null !== current.ref && "function" == typeof current.ref && current.ref._stringRef === stringRef) return current.ref;
var ref = function(value) {
var refs = inst.refs;
refs === emptyRefsObject && (refs = inst.refs = {}), null === value ? delete refs[stringRef] : refs[stringRef] = value;
};
return ref._stringRef = stringRef, ref;
}
if ("string" != typeof mixedRef) throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");
if (!element._owner) throw Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.");
}
return mixedRef;
}
function throwOnInvalidObjectType(returnFiber, newChild) {
if ("textarea" !== returnFiber.type) throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild) + "). If you meant to render a collection of children, use an array instead.");
}
function warnOnFunctionType(returnFiber) {
var componentName = getComponentName(returnFiber.type) || "Component";
ownerHasFunctionTypeWarning[componentName] || (ownerHasFunctionTypeWarning[componentName] = !0, error1("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."));
}
function ChildReconciler(shouldTrackSideEffects) {
function deleteChild(returnFiber, childToDelete) {
if (shouldTrackSideEffects) {
var last = returnFiber.lastEffect;
null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete, childToDelete.nextEffect = null, childToDelete.flags = Deletion;
}
}
function deleteRemainingChildren(returnFiber, currentFirstChild) {
if (!shouldTrackSideEffects) return null;
for(var childToDelete = currentFirstChild; null !== childToDelete;)deleteChild(returnFiber, childToDelete), childToDelete = childToDelete.sibling;
return null;
}
function mapRemainingChildren(returnFiber, currentFirstChild) {
for(var existingChildren = new Map(), existingChild = currentFirstChild; null !== existingChild;)null !== existingChild.key ? existingChildren.set(existingChild.key, existingChild) : existingChildren.set(existingChild.index, existingChild), existingChild = existingChild.sibling;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
var clone = createWorkInProgress(fiber, pendingProps);
return clone.index = 0, clone.sibling = null, clone;
}
function placeChild(newFiber, lastPlacedIndex, newIndex) {
if (newFiber.index = newIndex, !shouldTrackSideEffects) return lastPlacedIndex;
var current = newFiber.alternate;
if (null === current) return newFiber.flags = Placement, lastPlacedIndex;
var oldIndex = current.index;
return oldIndex < lastPlacedIndex ? (newFiber.flags = Placement, lastPlacedIndex) : oldIndex;
}
function placeSingleChild(newFiber) {
return shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags = Placement), newFiber;
}
function updateTextNode(returnFiber, current, textContent, lanes) {
if (null === current || 6 !== current.tag) {
var created = createFiberFromText(textContent, returnFiber.mode, lanes);
return created.return = returnFiber, created;
}
var existing = useFiber(current, textContent);
return existing.return = returnFiber, existing;
}
function updateElement(returnFiber, current, element, lanes) {
if (null !== current && (current.elementType === element.type || isCompatibleFamilyForHotReloading(current, element))) {
var existing = useFiber(current, element.props);
return existing.ref = coerceRef(returnFiber, current, element), existing.return = returnFiber, existing._debugSource = element._source, existing._debugOwner = element._owner, existing;
}
var created = createFiberFromElement(element, returnFiber.mode, lanes);
return created.ref = coerceRef(returnFiber, current, element), created.return = returnFiber, created;
}
function updatePortal(returnFiber, current, portal, lanes) {
if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
return created.return = returnFiber, created;
}
var existing = useFiber(current, portal.children || []);
return existing.return = returnFiber, existing;
}
function updateFragment(returnFiber, current, fragment, lanes, key) {
if (null === current || 7 !== current.tag) {
var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
return created.return = returnFiber, created;
}
var existing = useFiber(current, fragment);
return existing.return = returnFiber, existing;
}
function createChild(returnFiber, newChild, lanes) {
if ("string" == typeof newChild || "number" == typeof newChild) {
var created = createFiberFromText("" + newChild, returnFiber.mode, lanes);
return created.return = returnFiber, created;
}
if ("object" == typeof newChild && null !== newChild) {
switch(newChild.$$typeof){
case REACT_ELEMENT_TYPE:
var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);
return _created.ref = coerceRef(returnFiber, null, newChild), _created.return = returnFiber, _created;
case REACT_PORTAL_TYPE:
var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);
return _created2.return = returnFiber, _created2;
}
if (isArray$1(newChild) || getIteratorFn(newChild)) {
var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);
return _created3.return = returnFiber, _created3;
}
throwOnInvalidObjectType(returnFiber, newChild);
}
return "function" == typeof newChild && warnOnFunctionType(returnFiber), null;
}
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
var key = null !== oldFiber ? oldFiber.key : null;
if ("string" == typeof newChild || "number" == typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
if ("object" == typeof newChild && null !== newChild) {
switch(newChild.$$typeof){
case REACT_ELEMENT_TYPE:
if (newChild.key !== key) return null;
if (newChild.type === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, oldFiber, newChild.props.children, lanes, key);
return updateElement(returnFiber, oldFiber, newChild, lanes);
case REACT_PORTAL_TYPE:
if (newChild.key === key) return updatePortal(returnFiber, oldFiber, newChild, lanes);
return null;
}
if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null);
throwOnInvalidObjectType(returnFiber, newChild);
}
return "function" == typeof newChild && warnOnFunctionType(returnFiber), null;
}
function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
if ("string" == typeof newChild || "number" == typeof newChild) return updateTextNode(returnFiber, existingChildren.get(newIdx) || null, "" + newChild, lanes);
if ("object" == typeof newChild && null !== newChild) {
switch(newChild.$$typeof){
case REACT_ELEMENT_TYPE:
var _matchedFiber = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null;
if (newChild.type === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, _matchedFiber, newChild.props.children, lanes, newChild.key);
return updateElement(returnFiber, _matchedFiber, newChild, lanes);
case REACT_PORTAL_TYPE:
return updatePortal(returnFiber, existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild, lanes);
}
if (isArray$1(newChild) || getIteratorFn(newChild)) return updateFragment(returnFiber, existingChildren.get(newIdx) || null, newChild, lanes, null);
throwOnInvalidObjectType(returnFiber, newChild);
}
return "function" == typeof newChild && warnOnFunctionType(returnFiber), null;
}
function warnOnInvalidKey(child, knownKeys, returnFiber) {
if ("object" != typeof child || null === child) return knownKeys;
switch(child.$$typeof){
case REACT_ELEMENT_TYPE:
case REACT_PORTAL_TYPE:
warnForMissingKey(child, returnFiber);
var key = child.key;
if ("string" != typeof key) break;
if (null === knownKeys) {
(knownKeys = new Set()).add(key);
break;
}
if (!knownKeys.has(key)) {
knownKeys.add(key);
break;
}
error1("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", key);
break;
}
return knownKeys;
}
return function(returnFiber1, currentFirstChild1, newChild, lanes2) {
var isUnkeyedTopLevelFragment = "object" == typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key;
isUnkeyedTopLevelFragment && (newChild = newChild.props.children);
var isObject = "object" == typeof newChild && null !== newChild;
if (isObject) switch(newChild.$$typeof){
case REACT_ELEMENT_TYPE:
return placeSingleChild(function(returnFiber, currentFirstChild, element, lanes) {
for(var key = element.key, child = currentFirstChild; null !== child;){
if (child.key === key) {
switch(child.tag){
case 7:
if (element.type === REACT_FRAGMENT_TYPE) {
deleteRemainingChildren(returnFiber, child.sibling);
var existing = useFiber(child, element.props.children);
return existing.return = returnFiber, existing._debugSource = element._source, existing._debugOwner = element._owner, existing;
}
break;
case 22:
default:
if (child.elementType === element.type || isCompatibleFamilyForHotReloading(child, element)) {
deleteRemainingChildren(returnFiber, child.sibling);
var _existing3 = useFiber(child, element.props);
return _existing3.ref = coerceRef(returnFiber, child, element), _existing3.return = returnFiber, _existing3._debugSource = element._source, _existing3._debugOwner = element._owner, _existing3;
}
break;
}
deleteRemainingChildren(returnFiber, child);
break;
}
deleteChild(returnFiber, child), child = child.sibling;
}
if (element.type === REACT_FRAGMENT_TYPE) {
var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
return created.return = returnFiber, created;
}
var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);
return _created4.ref = coerceRef(returnFiber, currentFirstChild, element), _created4.return = returnFiber, _created4;
}(returnFiber1, currentFirstChild1, newChild, lanes2));
case REACT_PORTAL_TYPE:
return placeSingleChild(function(returnFiber, currentFirstChild, portal, lanes) {
for(var key = portal.key, child = currentFirstChild; null !== child;){
if (child.key === key) {
if (4 === child.tag && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
deleteRemainingChildren(returnFiber, child.sibling);
var existing = useFiber(child, portal.children || []);
return existing.return = returnFiber, existing;
}
deleteRemainingChildren(returnFiber, child);
break;
}
deleteChild(returnFiber, child), child = child.sibling;
}
var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
return created.return = returnFiber, created;
}(returnFiber1, currentFirstChild1, newChild, lanes2));
}
if ("string" == typeof newChild || "number" == typeof newChild) return placeSingleChild(function(returnFiber, currentFirstChild, textContent, lanes) {
if (null !== currentFirstChild && 6 === currentFirstChild.tag) {
deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
var existing = useFiber(currentFirstChild, textContent);
return existing.return = returnFiber, existing;
}
deleteRemainingChildren(returnFiber, currentFirstChild);
var created = createFiberFromText(textContent, returnFiber.mode, lanes);
return created.return = returnFiber, created;
}(returnFiber1, currentFirstChild1, "" + newChild, lanes2));
if (isArray$1(newChild)) return (function(returnFiber, currentFirstChild, newChildren, lanes) {
for(var knownKeys = null, i = 0; i < newChildren.length; i++)knownKeys = warnOnInvalidKey(newChildren[i], knownKeys, returnFiber);
for(var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++){
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);
if (null === newFiber) {
null === oldFiber && (oldFiber = nextOldFiber);
break;
}
shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild;
if (null === oldFiber) {
for(; newIdx < newChildren.length; newIdx++){
var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);
null !== _newFiber && (lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber : previousNewFiber.sibling = _newFiber, previousNewFiber = _newFiber);
}
return resultingFirstChild;
}
for(var existingChildren = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++){
var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);
null !== _newFiber2 && (shouldTrackSideEffects && null !== _newFiber2.alternate && existingChildren.delete(null === _newFiber2.key ? newIdx : _newFiber2.key), lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber2 : previousNewFiber.sibling = _newFiber2, previousNewFiber = _newFiber2);
}
return shouldTrackSideEffects && existingChildren.forEach(function(child) {
return deleteChild(returnFiber, child);
}), resultingFirstChild;
})(returnFiber1, currentFirstChild1, newChild, lanes2);
if (getIteratorFn(newChild)) return (function(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
var iteratorFn = getIteratorFn(newChildrenIterable);
if ("function" != typeof iteratorFn) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");
"function" == typeof Symbol && "Generator" === newChildrenIterable[Symbol.toStringTag] && (didWarnAboutGenerators || error1("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), didWarnAboutGenerators = !0), newChildrenIterable.entries === iteratorFn && (didWarnAboutMaps || error1("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0);
var _newChildren = iteratorFn.call(newChildrenIterable);
if (_newChildren) for(var knownKeys = null, _step = _newChildren.next(); !_step.done; _step = _newChildren.next())knownKeys = warnOnInvalidKey(_step.value, knownKeys, returnFiber);
var newChildren = iteratorFn.call(newChildrenIterable);
if (!(null != newChildren)) throw Error("An iterable object provided no iterator.");
for(var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()){
oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
if (null === newFiber) {
null === oldFiber && (oldFiber = nextOldFiber);
break;
}
shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, previousNewFiber = newFiber, oldFiber = nextOldFiber;
}
if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild;
if (null === oldFiber) {
for(; !step.done; newIdx++, step = newChildren.next()){
var _newFiber3 = createChild(returnFiber, step.value, lanes);
null !== _newFiber3 && (lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber3 : previousNewFiber.sibling = _newFiber3, previousNewFiber = _newFiber3);
}
return resultingFirstChild;
}
for(var existingChildren = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, step = newChildren.next()){
var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);
null !== _newFiber4 && (shouldTrackSideEffects && null !== _newFiber4.alternate && existingChildren.delete(null === _newFiber4.key ? newIdx : _newFiber4.key), lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber4 : previousNewFiber.sibling = _newFiber4, previousNewFiber = _newFiber4);
}
return shouldTrackSideEffects && existingChildren.forEach(function(child) {
return deleteChild(returnFiber, child);
}), resultingFirstChild;
})(returnFiber1, currentFirstChild1, newChild, lanes2);
if (isObject && throwOnInvalidObjectType(returnFiber1, newChild), "function" == typeof newChild && warnOnFunctionType(returnFiber1), void 0 === newChild && !isUnkeyedTopLevelFragment) switch(returnFiber1.tag){
case 1:
if (returnFiber1.stateNode.render._isMockFunction) break;
case 22:
case 0:
case 11:
case 15:
throw Error((getComponentName(returnFiber1.type) || "Component") + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.");
}
return deleteRemainingChildren(returnFiber1, currentFirstChild1);
};
}
var reconcileChildFibers = ChildReconciler(!0), mountChildFibers = ChildReconciler(!1);
function resetChildFibers(workInProgress, lanes) {
for(var child = workInProgress.child; null !== child;)resetWorkInProgress(child, lanes), child = child.sibling;
}
var NO_CONTEXT = {}, contextStackCursor$1 = createCursor(NO_CONTEXT), contextFiberStackCursor = createCursor(NO_CONTEXT), rootInstanceStackCursor = createCursor(NO_CONTEXT);
function requiredContext(c) {
if (!(c !== NO_CONTEXT)) throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");
return c;
}
function getRootHostContainer() {
return requiredContext(rootInstanceStackCursor.current);
}
function pushHostContainer(fiber, nextRootInstance) {
push(rootInstanceStackCursor, nextRootInstance, fiber), push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor$1, NO_CONTEXT, fiber);
var nextRootContext = function(rootContainerInstance) {
var type, namespace, nodeType = rootContainerInstance.nodeType;
switch(nodeType){
case 9:
case 11:
type = 9 === nodeType ? "#document" : "#fragment";
var root = rootContainerInstance.documentElement;
namespace = root ? root.namespaceURI : getChildNamespace(null, "");
break;
default:
var container = 8 === nodeType ? rootContainerInstance.parentNode : rootContainerInstance;
namespace = getChildNamespace(container.namespaceURI || null, type = container.tagName);
break;
}
return {
namespace: namespace,
ancestorInfo: updatedAncestorInfo(null, type.toLowerCase())
};
}(nextRootInstance);
pop(contextStackCursor$1, fiber), push(contextStackCursor$1, nextRootContext, fiber);
}
function popHostContainer(fiber) {
pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber), pop(rootInstanceStackCursor, fiber);
}
function getHostContext() {
return requiredContext(contextStackCursor$1.current);
}
function pushHostContext(fiber) {
requiredContext(rootInstanceStackCursor.current);
var parentHostContext, type, parentHostContextDev, namespace, ancestorInfo, context = requiredContext(contextStackCursor$1.current), nextContext = (parentHostContext = context, type = fiber.type, namespace = getChildNamespace((parentHostContextDev = parentHostContext).namespace, type), ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type), {
namespace: namespace,
ancestorInfo: ancestorInfo
});
context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor$1, nextContext, fiber));
}
function popHostContext(fiber) {
contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber));
}
var suspenseStackCursor = createCursor(0);
function hasSuspenseContext(parentContext, flag) {
return (parentContext & flag) != 0;
}
function setDefaultShallowSuspenseContext(parentContext) {
return 1 & parentContext;
}
function setShallowSuspenseContext(parentContext, shallowContext) {
return 1 & parentContext | shallowContext;
}
function pushSuspenseContext(fiber, newContext) {
push(suspenseStackCursor, newContext, fiber);
}
function popSuspenseContext(fiber) {
pop(suspenseStackCursor, fiber);
}
function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
var nextState = workInProgress.memoizedState;
if (null !== nextState) return null !== nextState.dehydrated;
var props = workInProgress.memoizedProps;
return void 0 !== props.fallback && (!0 !== props.unstable_avoidThisFallback || !hasInvisibleParent);
}
function findFirstSuspended(row) {
for(var node = row; null !== node;){
if (13 === node.tag) {
var state = node.memoizedState;
if (null !== state) {
var dehydrated = state.dehydrated;
if (null === dehydrated || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) return node;
}
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
if ((node.flags & DidCapture) !== NoFlags) return node;
} else if (null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === row) return null;
for(; null === node.sibling;){
if (null === node.return || node.return === row) return null;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return null;
}
var hydrationParentFiber = null, nextHydratableInstance = null, isHydrating1 = !1;
function deleteHydratableInstance(returnFiber, instance) {
switch(returnFiber.tag){
case 3:
parentContainer = returnFiber.stateNode.containerInfo, 1 === (instance3 = instance).nodeType ? warnForDeletedHydratableElement(parentContainer, instance3) : 8 === instance3.nodeType || warnForDeletedHydratableText(parentContainer, instance3);
break;
case 5:
returnFiber.type, parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode, instance4 = instance, !0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1] && (1 === instance4.nodeType ? warnForDeletedHydratableElement(parentInstance, instance4) : 8 === instance4.nodeType || warnForDeletedHydratableText(parentInstance, instance4));
break;
}
var parentContainer, instance3, parentProps, parentInstance, instance4, childToDelete = createFiberFromHostInstanceForDeletion();
childToDelete.stateNode = instance, childToDelete.return = returnFiber, childToDelete.flags = Deletion, null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
}
function insertNonHydratedInstance(returnFiber, fiber) {
switch(fiber.flags = fiber.flags & ~Hydrating | Placement, returnFiber.tag){
case 3:
var parentContainer = returnFiber.stateNode.containerInfo;
switch(fiber.tag){
case 5:
var type = fiber.type;
fiber.pendingProps, warnForInsertedHydratedElement(parentContainer, type);
break;
case 6:
warnForInsertedHydratedText(parentContainer, fiber.pendingProps);
break;
}
break;
case 5:
returnFiber.type;
var parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode;
switch(fiber.tag){
case 5:
var parentProps1, parentInstance1, type5, _type = fiber.type;
fiber.pendingProps, parentProps1 = parentProps, parentInstance1 = parentInstance, type5 = _type, !0 !== parentProps1[SUPPRESS_HYDRATION_WARNING$1] && warnForInsertedHydratedElement(parentInstance1, type5);
break;
case 6:
var parentProps2, parentInstance2, text, _text = fiber.pendingProps;
parentProps2 = parentProps, parentInstance2 = parentInstance, text = _text, !0 !== parentProps2[SUPPRESS_HYDRATION_WARNING$1] && warnForInsertedHydratedText(parentInstance2, text);
break;
case 13:
!0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1];
break;
}
break;
default:
return;
}
}
function tryHydrate(fiber, nextInstance) {
switch(fiber.tag){
case 5:
var type = fiber.type;
fiber.pendingProps;
var instance, type6, instance5 = (instance = nextInstance, type6 = type, 1 !== instance.nodeType || type6.toLowerCase() !== instance.nodeName.toLowerCase() ? null : instance);
if (null !== instance5) return fiber.stateNode = instance5, !0;
return !1;
case 6:
var instance6, text = fiber.pendingProps, textInstance = (instance6 = nextInstance, "" === text || 3 !== instance6.nodeType ? null : instance6);
if (null !== textInstance) return fiber.stateNode = textInstance, !0;
return !1;
case 13:
return !1;
default:
return !1;
}
}
function tryToClaimNextHydratableInstance(fiber) {
if (isHydrating1) {
var nextInstance = nextHydratableInstance;
if (!nextInstance) {
insertNonHydratedInstance(hydrationParentFiber, fiber), isHydrating1 = !1, hydrationParentFiber = fiber;
return;
}
var firstAttemptedInstance = nextInstance;
if (!tryHydrate(fiber, nextInstance)) {
if (!(nextInstance = getNextHydratableSibling(firstAttemptedInstance)) || !tryHydrate(fiber, nextInstance)) {
insertNonHydratedInstance(hydrationParentFiber, fiber), isHydrating1 = !1, hydrationParentFiber = fiber;
return;
}
deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
}
hydrationParentFiber = fiber, nextHydratableInstance = getFirstHydratableChild(nextInstance);
}
}
function popToNextHostParent(fiber) {
for(var parent = fiber.return; null !== parent && 5 !== parent.tag && 3 !== parent.tag && 13 !== parent.tag;)parent = parent.return;
hydrationParentFiber = parent;
}
function popHydrationState(fiber1) {
if (fiber1 !== hydrationParentFiber) return !1;
if (!isHydrating1) return popToNextHostParent(fiber1), isHydrating1 = !0, !1;
var type = fiber1.type;
if (5 !== fiber1.tag || "head" !== type && "body" !== type && !shouldSetTextContent(type, fiber1.memoizedProps)) for(var nextInstance = nextHydratableInstance; nextInstance;)deleteHydratableInstance(fiber1, nextInstance), nextInstance = getNextHydratableSibling(nextInstance);
return popToNextHostParent(fiber1), nextHydratableInstance = 13 === fiber1.tag ? (function(fiber) {
var suspenseState = fiber.memoizedState, suspenseInstance1 = null !== suspenseState ? suspenseState.dehydrated : null;
if (!suspenseInstance1) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");
return (function(suspenseInstance) {
for(var node = suspenseInstance.nextSibling, depth = 0; node;){
if (8 === node.nodeType) {
var data = node.data;
if ("/$" === data) {
if (0 === depth) return getNextHydratableSibling(node);
depth--;
} else ("$" === data || "$!" === data || "$?" === data) && depth++;
}
node = node.nextSibling;
}
return null;
})(suspenseInstance1);
})(fiber1) : hydrationParentFiber ? getNextHydratableSibling(fiber1.stateNode) : null, !0;
}
function resetHydrationState() {
hydrationParentFiber = null, nextHydratableInstance = null, isHydrating1 = !1;
}
function getIsHydrating() {
return isHydrating1;
}
var workInProgressSources = [];
function resetWorkInProgressVersions() {
for(var i = 0; i < workInProgressSources.length; i++)workInProgressSources[i]._workInProgressVersionPrimary = null;
workInProgressSources.length = 0;
}
function setWorkInProgressVersion(mutableSource, version) {
mutableSource._workInProgressVersionPrimary = version, workInProgressSources.push(mutableSource);
}
rendererSigil$1 = {};
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
didWarnAboutUseOpaqueIdentifier = {}, didWarnAboutMismatchedHooksForComponent = new Set();
var renderLanes1 = NoLanes, currentlyRenderingFiber$1 = null, currentHook1 = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1;
function mountHookTypesDev() {
var hookName = currentHookNameInDev;
null === hookTypesDev ? hookTypesDev = [
hookName
] : hookTypesDev.push(hookName);
}
function updateHookTypesDev() {
var hookName = currentHookNameInDev;
null !== hookTypesDev && (hookTypesUpdateIndexDev++, hookTypesDev[hookTypesUpdateIndexDev] !== hookName && warnOnHookMismatchInDev(hookName));
}
function checkDepsAreArrayDev(deps) {
null == deps || Array.isArray(deps) || error1("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", currentHookNameInDev, typeof deps);
}
function warnOnHookMismatchInDev(currentHookName) {
var componentName = getComponentName(currentlyRenderingFiber$1.type);
if (!didWarnAboutMismatchedHooksForComponent.has(componentName) && (didWarnAboutMismatchedHooksForComponent.add(componentName), null !== hookTypesDev)) {
for(var table = "", secondColumnStart = 30, i = 0; i <= hookTypesUpdateIndexDev; i++){
for(var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName, row = i + 1 + ". " + oldHookName; row.length < secondColumnStart;)row += " ";
table += row += newHookName + "\n";
}
error1("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table);
}
}
function throwInvalidHookError() {
throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
}
function areHookInputsEqual(nextDeps, prevDeps) {
if (ignorePreviousDependencies) return !1;
if (null === prevDeps) return error1("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev), !1;
nextDeps.length !== prevDeps.length && error1("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]");
for(var i = 0; i < prevDeps.length && i < nextDeps.length; i++)if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
return !0;
}
function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
renderLanes1 = nextRenderLanes, currentlyRenderingFiber$1 = workInProgress, hookTypesDev = null !== current ? current._debugHookTypes : null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = null !== current && current.type !== workInProgress.type, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.lanes = NoLanes, null !== current && null !== current.memoizedState ? ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV : ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
var children = Component(props, secondArg);
if (didScheduleRenderPhaseUpdateDuringThisPass) {
var numberOfReRenders = 0;
do {
if (didScheduleRenderPhaseUpdateDuringThisPass = !1, !(numberOfReRenders < 25)) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
numberOfReRenders += 1, ignorePreviousDependencies = !1, currentHook1 = null, workInProgressHook = null, workInProgress.updateQueue = null, hookTypesUpdateIndexDev = -1, ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV, children = Component(props, secondArg);
}while (didScheduleRenderPhaseUpdateDuringThisPass)
}
ReactCurrentDispatcher$1.current = ContextOnlyDispatcher, workInProgress._debugHookTypes = hookTypesDev;
var didRenderTooFewHooks = null !== currentHook1 && null !== currentHook1.next;
if (renderLanes1 = NoLanes, currentlyRenderingFiber$1 = null, currentHook1 = null, workInProgressHook = null, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, didScheduleRenderPhaseUpdate = !1, didRenderTooFewHooks) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");
return children;
}
function bailoutHooks(current, workInProgress, lanes) {
workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= ~(512 | Update), current.lanes = removeLanes(current.lanes, lanes);
}
function resetHooksAfterThrow() {
if (ReactCurrentDispatcher$1.current = ContextOnlyDispatcher, didScheduleRenderPhaseUpdate) {
for(var hook = currentlyRenderingFiber$1.memoizedState; null !== hook;){
var queue = hook.queue;
null !== queue && (queue.pending = null), hook = hook.next;
}
didScheduleRenderPhaseUpdate = !1;
}
renderLanes1 = NoLanes, currentlyRenderingFiber$1 = null, currentHook1 = null, workInProgressHook = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, currentHookNameInDev = null, isUpdatingOpaqueValueInRenderPhase = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1;
}
function mountWorkInProgressHook() {
var hook = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook, workInProgressHook;
}
function updateWorkInProgressHook() {
if (null === currentHook1) {
var nextCurrentHook, nextWorkInProgressHook, current = currentlyRenderingFiber$1.alternate;
nextCurrentHook = null !== current ? current.memoizedState : null;
} else nextCurrentHook = currentHook1.next;
if (null !== (nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState : workInProgressHook.next)) nextWorkInProgressHook = (workInProgressHook = nextWorkInProgressHook).next, currentHook1 = nextCurrentHook;
else {
if (!(null !== nextCurrentHook)) throw Error("Rendered more hooks than during the previous render.");
var newHook = {
memoizedState: (currentHook1 = nextCurrentHook).memoizedState,
baseState: currentHook1.baseState,
baseQueue: currentHook1.baseQueue,
queue: currentHook1.queue,
next: null
};
null === workInProgressHook ? currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook : workInProgressHook = workInProgressHook.next = newHook;
}
return workInProgressHook;
}
function basicStateReducer(state, action) {
return "function" == typeof action ? action(state) : action;
}
function mountReducer(reducer, initialArg, init) {
var initialState, hook = mountWorkInProgressHook();
initialState = void 0 !== init ? init(initialArg) : initialArg, hook.memoizedState = hook.baseState = initialState;
var queue = hook.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: reducer,
lastRenderedState: initialState
}, dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
return [
hook.memoizedState,
dispatch
];
}
function updateReducer(reducer, initialArg, init) {
var hook = updateWorkInProgressHook(), queue = hook.queue;
if (!(null !== queue)) throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");
queue.lastRenderedReducer = reducer;
var current = currentHook1, baseQueue = current.baseQueue, pendingQueue = queue.pending;
if (null !== pendingQueue) {
if (null !== baseQueue) {
var baseFirst = baseQueue.next, pendingFirst = pendingQueue.next;
baseQueue.next = pendingFirst, pendingQueue.next = baseFirst;
}
current.baseQueue !== baseQueue && error1("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), current.baseQueue = baseQueue = pendingQueue, queue.pending = null;
}
if (null !== baseQueue) {
var first = baseQueue.next, newState = current.baseState, newBaseState = null, newBaseQueueFirst = null, newBaseQueueLast = null, update = first;
do {
var updateLane = update.lane;
if (isSubsetOfLanes(renderLanes1, updateLane)) {
if (null !== newBaseQueueLast) {
var _clone = {
lane: NoLane,
action: update.action,
eagerReducer: update.eagerReducer,
eagerState: update.eagerState,
next: null
};
newBaseQueueLast = newBaseQueueLast.next = _clone;
}
newState = update.eagerReducer === reducer ? update.eagerState : reducer(newState, update.action);
} else {
var clone = {
lane: updateLane,
action: update.action,
eagerReducer: update.eagerReducer,
eagerState: update.eagerState,
next: null
};
null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = clone, newBaseState = newState) : newBaseQueueLast = newBaseQueueLast.next = clone, currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane), markSkippedUpdateLanes(updateLane);
}
update = update.next;
}while (null !== update && update !== first)
null === newBaseQueueLast ? newBaseState = newState : newBaseQueueLast.next = newBaseQueueFirst, objectIs(newState, hook.memoizedState) || markWorkInProgressReceivedUpdate(), hook.memoizedState = newState, hook.baseState = newBaseState, hook.baseQueue = newBaseQueueLast, queue.lastRenderedState = newState;
}
var dispatch = queue.dispatch;
return [
hook.memoizedState,
dispatch
];
}
function rerenderReducer(reducer, initialArg, init) {
var hook = updateWorkInProgressHook(), queue = hook.queue;
if (!(null !== queue)) throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");
queue.lastRenderedReducer = reducer;
var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState;
if (null !== lastRenderPhaseUpdate) {
queue.pending = null;
var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next, update = firstRenderPhaseUpdate;
do newState = reducer(newState, update.action), update = update.next;
while (update !== firstRenderPhaseUpdate)
objectIs(newState, hook.memoizedState) || markWorkInProgressReceivedUpdate(), hook.memoizedState = newState, null === hook.baseQueue && (hook.baseState = newState), queue.lastRenderedState = newState;
}
return [
newState,
dispatch
];
}
function readFromUnsubcribedMutableSource(root, source, getSnapshot) {
null == (mutableSource1 = source)._currentPrimaryRenderer ? mutableSource1._currentPrimaryRenderer = rendererSigil$1 : mutableSource1._currentPrimaryRenderer !== rendererSigil$1 && error1("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.");
var mutableSource, mutableSource1, version = (0, source._getVersion)(source._source), isSafeToReadFromSource = !1, currentRenderVersion = source._workInProgressVersionPrimary;
if (null !== currentRenderVersion ? isSafeToReadFromSource = currentRenderVersion === version : (isSafeToReadFromSource = isSubsetOfLanes(renderLanes1, root.mutableReadLanes)) && setWorkInProgressVersion(source, version), isSafeToReadFromSource) {
var snapshot = getSnapshot(source._source);
return "function" == typeof snapshot && error1("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."), snapshot;
}
throw mutableSource = source, workInProgressSources.push(mutableSource), Error("Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.");
}
function useMutableSource(hook, source, getSnapshot, subscribe) {
var root2 = getWorkInProgressRoot();
if (!(null !== root2)) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
var getVersion = source._getVersion, version = getVersion(source._source), dispatcher = ReactCurrentDispatcher$1.current, _dispatcher$useState = dispatcher.useState(function() {
return readFromUnsubcribedMutableSource(root2, source, getSnapshot);
}), currentSnapshot = _dispatcher$useState[0], setSnapshot = _dispatcher$useState[1], snapshot = currentSnapshot, stateHook = workInProgressHook, memoizedState = hook.memoizedState, refs = memoizedState.refs, prevGetSnapshot = refs.getSnapshot, prevSource = memoizedState.source, prevSubscribe = memoizedState.subscribe, fiber = currentlyRenderingFiber$1;
if (hook.memoizedState = {
refs: refs,
source: source,
subscribe: subscribe
}, dispatcher.useEffect(function() {
if (refs.getSnapshot = getSnapshot, refs.setSnapshot = setSnapshot, !objectIs(version, getVersion(source._source))) {
var maybeNewSnapshot = getSnapshot(source._source);
"function" == typeof maybeNewSnapshot && error1("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."), objectIs(snapshot, maybeNewSnapshot) || (setSnapshot(maybeNewSnapshot), markRootMutableRead(root2, requestUpdateLane(fiber))), (function(root, entangledLanes) {
root.entangledLanes |= entangledLanes;
for(var entanglements = root.entanglements, lanes = entangledLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
entanglements[index] |= entangledLanes, lanes &= ~lane;
}
})(root2, root2.mutableReadLanes);
}
}, [
getSnapshot,
source,
subscribe
]), dispatcher.useEffect(function() {
var unsubscribe = subscribe(source._source, function() {
var latestGetSnapshot = refs.getSnapshot, latestSetSnapshot = refs.setSnapshot;
try {
latestSetSnapshot(latestGetSnapshot(source._source));
var lane = requestUpdateLane(fiber);
markRootMutableRead(root2, lane);
} catch (error) {
latestSetSnapshot(function() {
throw error;
});
}
});
return "function" != typeof unsubscribe && error1("Mutable source subscribe function must return an unsubscribe function."), unsubscribe;
}, [
source,
subscribe
]), !objectIs(prevGetSnapshot, getSnapshot) || !objectIs(prevSource, source) || !objectIs(prevSubscribe, subscribe)) {
var newQueue = {
pending: null,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: snapshot
};
newQueue.dispatch = setSnapshot = dispatchAction.bind(null, currentlyRenderingFiber$1, newQueue), stateHook.queue = newQueue, stateHook.baseQueue = null, snapshot = readFromUnsubcribedMutableSource(root2, source, getSnapshot), stateHook.memoizedState = stateHook.baseState = snapshot;
}
return snapshot;
}
function mountMutableSource(source, getSnapshot, subscribe) {
var hook = mountWorkInProgressHook();
return hook.memoizedState = {
refs: {
getSnapshot: getSnapshot,
setSnapshot: null
},
source: source,
subscribe: subscribe
}, useMutableSource(hook, source, getSnapshot, subscribe);
}
function updateMutableSource(source, getSnapshot, subscribe) {
return useMutableSource(updateWorkInProgressHook(), source, getSnapshot, subscribe);
}
function mountState(initialState) {
var hook = mountWorkInProgressHook();
"function" == typeof initialState && (initialState = initialState()), hook.memoizedState = hook.baseState = initialState;
var queue = hook.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: basicStateReducer,
lastRenderedState: initialState
}, dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
return [
hook.memoizedState,
dispatch
];
}
function updateState(initialState) {
return updateReducer(basicStateReducer);
}
function rerenderState(initialState) {
return rerenderReducer(basicStateReducer);
}
function pushEffect(tag, create, destroy, deps) {
var effect = {
tag: tag,
create: create,
destroy: destroy,
deps: deps,
next: null
}, componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
if (null === componentUpdateQueue) componentUpdateQueue = {
lastEffect: null
}, currentlyRenderingFiber$1.updateQueue = componentUpdateQueue, componentUpdateQueue.lastEffect = effect.next = effect;
else {
var lastEffect = componentUpdateQueue.lastEffect;
if (null === lastEffect) componentUpdateQueue.lastEffect = effect.next = effect;
else {
var firstEffect = lastEffect.next;
lastEffect.next = effect, effect.next = firstEffect, componentUpdateQueue.lastEffect = effect;
}
}
return effect;
}
function mountRef(initialValue) {
var hook = mountWorkInProgressHook(), ref = {
current: initialValue
};
return Object.seal(ref), hook.memoizedState = ref, ref;
}
function updateRef(initialValue) {
return updateWorkInProgressHook().memoizedState;
}
function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
var hook = mountWorkInProgressHook();
currentlyRenderingFiber$1.flags |= fiberFlags, hook.memoizedState = pushEffect(1 | hookFlags, create, void 0, void 0 === deps ? null : deps);
}
function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
var hook = updateWorkInProgressHook(), nextDeps = void 0 === deps ? null : deps, destroy = void 0;
if (null !== currentHook1) {
var prevEffect = currentHook1.memoizedState;
if (destroy = prevEffect.destroy, null !== nextDeps && areHookInputsEqual(nextDeps, prevEffect.deps)) {
pushEffect(hookFlags, create, destroy, nextDeps);
return;
}
}
currentlyRenderingFiber$1.flags |= fiberFlags, hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, nextDeps);
}
function mountEffect(create, deps) {
return "undefined" != typeof jest && warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1), mountEffectImpl(512 | Update, 4, create, deps);
}
function updateEffect(create, deps) {
return "undefined" != typeof jest && warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1), updateEffectImpl(512 | Update, 4, create, deps);
}
function mountLayoutEffect(create, deps) {
return mountEffectImpl(Update, 2, create, deps);
}
function updateLayoutEffect(create, deps) {
return updateEffectImpl(Update, 2, create, deps);
}
function imperativeHandleEffect(create, ref) {
if ("function" == typeof ref) {
var refCallback = ref;
return refCallback(create()), function() {
refCallback(null);
};
}
if (null != ref) {
var refObject = ref;
refObject.hasOwnProperty("current") || error1("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}");
var _inst2 = create();
return refObject.current = _inst2, function() {
refObject.current = null;
};
}
}
function mountImperativeHandle(ref, create, deps) {
"function" != typeof create && error1("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null");
var effectDeps = null != deps ? deps.concat([
ref
]) : null;
return mountEffectImpl(Update, 2, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}
function updateImperativeHandle(ref, create, deps) {
"function" != typeof create && error1("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null");
var effectDeps = null != deps ? deps.concat([
ref
]) : null;
return updateEffectImpl(Update, 2, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}
function mountDebugValue(value, formatterFn) {}
var updateDebugValue = mountDebugValue;
function mountCallback(callback, deps) {
return mountWorkInProgressHook().memoizedState = [
callback,
void 0 === deps ? null : deps
], callback;
}
function updateCallback(callback, deps) {
var hook = updateWorkInProgressHook(), nextDeps = void 0 === deps ? null : deps, prevState = hook.memoizedState;
return null !== prevState && null !== nextDeps && areHookInputsEqual(nextDeps, prevState[1]) ? prevState[0] : (hook.memoizedState = [
callback,
nextDeps
], callback);
}
function mountMemo(nextCreate, deps) {
var hook = mountWorkInProgressHook(), nextValue = nextCreate();
return hook.memoizedState = [
nextValue,
void 0 === deps ? null : deps
], nextValue;
}
function updateMemo(nextCreate, deps) {
var hook = updateWorkInProgressHook(), nextDeps = void 0 === deps ? null : deps, prevState = hook.memoizedState;
if (null !== prevState && null !== nextDeps && areHookInputsEqual(nextDeps, prevState[1])) return prevState[0];
var nextValue = nextCreate();
return hook.memoizedState = [
nextValue,
nextDeps
], nextValue;
}
function mountDeferredValue(value) {
var _mountState = mountState(value), prevValue = _mountState[0], setValue = _mountState[1];
return mountEffect(function() {
var prevTransition = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = 1;
try {
setValue(value);
} finally{
ReactCurrentBatchConfig$1.transition = prevTransition;
}
}, [
value
]), prevValue;
}
function updateDeferredValue(value) {
var _updateState = updateState(), prevValue = _updateState[0], setValue = _updateState[1];
return updateEffect(function() {
var prevTransition = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = 1;
try {
setValue(value);
} finally{
ReactCurrentBatchConfig$1.transition = prevTransition;
}
}, [
value
]), prevValue;
}
function rerenderDeferredValue(value) {
var _rerenderState = rerenderState(), prevValue = _rerenderState[0], setValue = _rerenderState[1];
return updateEffect(function() {
var prevTransition = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = 1;
try {
setValue(value);
} finally{
ReactCurrentBatchConfig$1.transition = prevTransition;
}
}, [
value
]), prevValue;
}
function startTransition(setPending, callback) {
var priorityLevel = getCurrentPriorityLevel();
runWithPriority$1(priorityLevel < 98 ? 98 : priorityLevel, function() {
setPending(!0);
}), runWithPriority$1(priorityLevel > NormalPriority$1 ? NormalPriority$1 : priorityLevel, function() {
var prevTransition = ReactCurrentBatchConfig$1.transition;
ReactCurrentBatchConfig$1.transition = 1;
try {
setPending(!1), callback();
} finally{
ReactCurrentBatchConfig$1.transition = prevTransition;
}
});
}
function mountTransition() {
var _mountState2 = mountState(!1), isPending = _mountState2[0], setPending = _mountState2[1], start = startTransition.bind(null, setPending);
return mountRef(start), [
start,
isPending
];
}
function updateTransition() {
var isPending = updateState()[0];
return [
updateRef().current,
isPending
];
}
function rerenderTransition() {
var isPending = rerenderState()[0];
return [
updateRef().current,
isPending
];
}
var isUpdatingOpaqueValueInRenderPhase = !1;
function warnOnOpaqueIdentifierAccessInDEV(fiber) {
var name = getComponentName(fiber.type) || "Unknown";
isRendering && !didWarnAboutUseOpaqueIdentifier[name] && (error1("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly."), didWarnAboutUseOpaqueIdentifier[name] = !0);
}
function mountOpaqueIdentifier() {
var makeId = makeClientIdInDEV.bind(null, warnOnOpaqueIdentifierAccessInDEV.bind(null, currentlyRenderingFiber$1));
if (getIsHydrating()) {
var attemptToReadValue, didUpgrade = !1, fiber = currentlyRenderingFiber$1, id = {
$$typeof: REACT_OPAQUE_ID_TYPE,
toString: attemptToReadValue = function() {
throw didUpgrade || (didUpgrade = !0, isUpdatingOpaqueValueInRenderPhase = !0, setId(makeId()), isUpdatingOpaqueValueInRenderPhase = !1, warnOnOpaqueIdentifierAccessInDEV(fiber)), Error("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly.");
},
valueOf: attemptToReadValue
}, setId = mountState(id)[1];
return (2 & currentlyRenderingFiber$1.mode) == 0 && (currentlyRenderingFiber$1.flags |= 512 | Update, pushEffect(5, function() {
setId(makeId());
}, void 0, null)), id;
}
var _id = makeId();
return mountState(_id), _id;
}
function updateOpaqueIdentifier() {
return updateState()[0];
}
function rerenderOpaqueIdentifier() {
return rerenderState()[0];
}
function dispatchAction(fiber, queue, action) {
"function" == typeof arguments[3] && error1("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
var eventTime = requestEventTime(), lane = requestUpdateLane(fiber), update = {
lane: lane,
action: action,
eagerReducer: null,
eagerState: null,
next: null
}, pending = queue.pending;
null === pending ? update.next = update : (update.next = pending.next, pending.next = update), queue.pending = update;
var alternate = fiber.alternate;
if (fiber === currentlyRenderingFiber$1 || null !== alternate && alternate === currentlyRenderingFiber$1) didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
else {
if (fiber.lanes === NoLanes && (null === alternate || alternate.lanes === NoLanes)) {
var prevDispatcher, lastRenderedReducer = queue.lastRenderedReducer;
if (null !== lastRenderedReducer) {
prevDispatcher = ReactCurrentDispatcher$1.current, ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
var currentState = queue.lastRenderedState, eagerState = lastRenderedReducer(currentState, action);
if (update.eagerReducer = lastRenderedReducer, update.eagerState = eagerState, objectIs(eagerState, currentState)) return;
} catch (error) {} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
}
}
"undefined" != typeof jest && (warnIfNotScopedWithMatchingAct(fiber), warnIfNotCurrentlyActingUpdatesInDev(fiber)), scheduleUpdateOnFiber(fiber, lane, eventTime);
}
}
var ContextOnlyDispatcher = {
readContext: readContext,
useCallback: throwInvalidHookError,
useContext: throwInvalidHookError,
useEffect: throwInvalidHookError,
useImperativeHandle: throwInvalidHookError,
useLayoutEffect: throwInvalidHookError,
useMemo: throwInvalidHookError,
useReducer: throwInvalidHookError,
useRef: throwInvalidHookError,
useState: throwInvalidHookError,
useDebugValue: throwInvalidHookError,
useDeferredValue: throwInvalidHookError,
useTransition: throwInvalidHookError,
useMutableSource: throwInvalidHookError,
useOpaqueIdentifier: throwInvalidHookError,
unstable_isNewReconciler: enableNewReconciler
}, HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, HooksDispatcherOnRerenderInDEV = null, InvalidNestedHooksDispatcherOnMountInDEV = null, InvalidNestedHooksDispatcherOnUpdateInDEV = null, InvalidNestedHooksDispatcherOnRerenderInDEV = null, warnInvalidContextAccess = function() {
error1("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
}, warnInvalidHookAccess = function() {
error1("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks");
};
HooksDispatcherOnMountInDEV = {
readContext: function(context, observedBits) {
return readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", mountHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", mountHookTypesDev(), checkDepsAreArrayDev(deps), mountLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", mountHookTypesDev(), checkDepsAreArrayDev(deps);
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", mountHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", mountHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", mountHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", mountHookTypesDev(), mountDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", mountHookTypesDev(), mountDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", mountHookTypesDev(), mountTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", mountHookTypesDev(), mountMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", mountHookTypesDev(), mountOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, HooksDispatcherOnMountWithHookTypesInDEV = {
readContext: function(context, observedBits) {
return readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), mountCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", updateHookTypesDev(), mountEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), mountImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), mountLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", updateHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", updateHookTypesDev(), mountDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), mountDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), mountTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", updateHookTypesDev(), mountMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", updateHookTypesDev(), mountOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, HooksDispatcherOnUpdateInDEV = {
readContext: function(context, observedBits) {
return readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", updateHookTypesDev(), updateEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), updateImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), updateLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", updateHookTypesDev(), updateRef();
},
useState: function(initialState) {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", updateHookTypesDev(), updateDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), updateDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), updateTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", updateHookTypesDev(), updateMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", updateHookTypesDev(), updateOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, HooksDispatcherOnRerenderInDEV = {
readContext: function(context, observedBits) {
return readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", updateHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", updateHookTypesDev(), updateEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", updateHookTypesDev(), updateImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", updateHookTypesDev(), updateLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return updateMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return rerenderReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", updateHookTypesDev(), updateRef();
},
useState: function(initialState) {
currentHookNameInDev = "useState", updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
try {
return rerenderState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", updateHookTypesDev(), updateDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", updateHookTypesDev(), rerenderDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", updateHookTypesDev(), rerenderTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", updateHookTypesDev(), updateMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", updateHookTypesDev(), rerenderOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, InvalidNestedHooksDispatcherOnMountInDEV = {
readContext: function(context, observedBits) {
return warnInvalidContextAccess(), readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), mountHookTypesDev(), mountCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), mountHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", warnInvalidHookAccess(), mountHookTypesDev(), mountEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), mountHookTypesDev(), mountImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), mountHookTypesDev(), mountLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), mountHookTypesDev(), mountRef(initialValue);
},
useState: function(initialState) {
currentHookNameInDev = "useState", warnInvalidHookAccess(), mountHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
try {
return mountState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), mountHookTypesDev(), mountDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), mountHookTypesDev(), mountDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), mountHookTypesDev(), mountTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", warnInvalidHookAccess(), mountHookTypesDev(), mountMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", warnInvalidHookAccess(), mountHookTypesDev(), mountOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function(context, observedBits) {
return warnInvalidContextAccess(), readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), updateHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), updateHookTypesDev(), updateImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), updateHookTypesDev(), updateRef();
},
useState: function(initialState) {
currentHookNameInDev = "useState", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), updateHookTypesDev(), updateDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), updateHookTypesDev(), updateDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), updateHookTypesDev(), updateTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", warnInvalidHookAccess(), updateHookTypesDev(), updateMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", warnInvalidHookAccess(), updateHookTypesDev(), updateOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
}, InvalidNestedHooksDispatcherOnRerenderInDEV = {
readContext: function(context, observedBits) {
return warnInvalidContextAccess(), readContext(context, observedBits);
},
useCallback: function(callback, deps) {
return currentHookNameInDev = "useCallback", warnInvalidHookAccess(), updateHookTypesDev(), updateCallback(callback, deps);
},
useContext: function(context, observedBits) {
return currentHookNameInDev = "useContext", warnInvalidHookAccess(), updateHookTypesDev(), readContext(context, observedBits);
},
useEffect: function(create, deps) {
return currentHookNameInDev = "useEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateEffect(create, deps);
},
useImperativeHandle: function(ref, create, deps) {
return currentHookNameInDev = "useImperativeHandle", warnInvalidHookAccess(), updateHookTypesDev(), updateImperativeHandle(ref, create, deps);
},
useLayoutEffect: function(create, deps) {
return currentHookNameInDev = "useLayoutEffect", warnInvalidHookAccess(), updateHookTypesDev(), updateLayoutEffect(create, deps);
},
useMemo: function(create, deps) {
currentHookNameInDev = "useMemo", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return updateMemo(create, deps);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useReducer: function(reducer, initialArg, init) {
currentHookNameInDev = "useReducer", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return rerenderReducer(reducer, initialArg, init);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useRef: function(initialValue) {
return currentHookNameInDev = "useRef", warnInvalidHookAccess(), updateHookTypesDev(), updateRef();
},
useState: function(initialState) {
currentHookNameInDev = "useState", warnInvalidHookAccess(), updateHookTypesDev();
var prevDispatcher = ReactCurrentDispatcher$1.current;
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
try {
return rerenderState(initialState);
} finally{
ReactCurrentDispatcher$1.current = prevDispatcher;
}
},
useDebugValue: function(value, formatterFn) {
return currentHookNameInDev = "useDebugValue", warnInvalidHookAccess(), updateHookTypesDev(), updateDebugValue();
},
useDeferredValue: function(value) {
return currentHookNameInDev = "useDeferredValue", warnInvalidHookAccess(), updateHookTypesDev(), rerenderDeferredValue(value);
},
useTransition: function() {
return currentHookNameInDev = "useTransition", warnInvalidHookAccess(), updateHookTypesDev(), rerenderTransition();
},
useMutableSource: function(source, getSnapshot, subscribe) {
return currentHookNameInDev = "useMutableSource", warnInvalidHookAccess(), updateHookTypesDev(), updateMutableSource(source, getSnapshot, subscribe);
},
useOpaqueIdentifier: function() {
return currentHookNameInDev = "useOpaqueIdentifier", warnInvalidHookAccess(), updateHookTypesDev(), rerenderOpaqueIdentifier();
},
unstable_isNewReconciler: enableNewReconciler
};
var now$1 = unstable_now, commitTime = 0, profilerStartTime = -1;
function recordCommitTime() {
commitTime = now$1();
}
function startProfilerTimer(fiber) {
profilerStartTime = now$1(), fiber.actualStartTime < 0 && (fiber.actualStartTime = now$1());
}
function stopProfilerTimerIfRunning(fiber) {
profilerStartTime = -1;
}
function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
if (profilerStartTime >= 0) {
var elapsedTime = now$1() - profilerStartTime;
fiber.actualDuration += elapsedTime, overrideBaseTime && (fiber.selfBaseDuration = elapsedTime), profilerStartTime = -1;
}
}
function transferActualDuration(fiber) {
for(var child = fiber.child; child;)fiber.actualDuration += child.actualDuration, child = child.sibling;
}
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, didReceiveUpdate = !1;
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
null === current ? workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes) : workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
}
function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var nextChildren, innerPropTypes = Component.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(Component));
}
var render = Component.render, ref = workInProgress.ref;
if (prepareToReadContext(workInProgress, renderLanes), ReactCurrentOwner$1.current = workInProgress, setIsRendering(!0), nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes), 1 & workInProgress.mode) {
disableLogs();
try {
nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
} finally{
reenableLogs();
}
}
return (setIsRendering(!1), null === current || didReceiveUpdate) ? (workInProgress.flags |= 1, reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child) : (bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes));
}
function updateMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
if (null === current) {
var type = Component.type;
if (isSimpleFunctionComponent(type) && null === Component.compare && void 0 === Component.defaultProps) {
var resolvedType = type;
return resolvedType = resolveFunctionForHotReloading(type), workInProgress.tag = 15, workInProgress.type = resolvedType, validateFunctionComponentInDev(workInProgress, type), updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateLanes, renderLanes);
}
var innerPropTypes = type.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(type));
var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
return child.ref = workInProgress.ref, child.return = workInProgress, workInProgress.child = child, child;
}
var _type = Component.type, _innerPropTypes = _type.propTypes;
_innerPropTypes && checkPropTypes(_innerPropTypes, nextProps, "prop", getComponentName(_type));
var currentChild = current.child;
if (!includesSomeLane(updateLanes, renderLanes)) {
var prevProps = currentChild.memoizedProps, compare = Component.compare;
if ((compare = null !== compare ? compare : shallowEqual)(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}
workInProgress.flags |= 1;
var newChild = createWorkInProgress(currentChild, nextProps);
return newChild.ref = workInProgress.ref, newChild.return = workInProgress, workInProgress.child = newChild, newChild;
}
function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var outerMemoType = workInProgress.elementType;
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
var lazyComponent = outerMemoType, payload = lazyComponent._payload, init = lazyComponent._init;
try {
outerMemoType = init(payload);
} catch (x) {
outerMemoType = null;
}
var outerPropTypes = outerMemoType && outerMemoType.propTypes;
outerPropTypes && checkPropTypes(outerPropTypes, nextProps, "prop", getComponentName(outerMemoType));
}
}
if (null !== current && shallowEqual(current.memoizedProps, nextProps) && current.ref === workInProgress.ref && workInProgress.type === current.type) {
if (didReceiveUpdate = !1, !includesSomeLane(renderLanes, updateLanes)) return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
(16384 & current.flags) !== NoFlags && (didReceiveUpdate = !0);
}
return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
}
function updateOffscreenComponent(current, workInProgress, renderLanes) {
var _subtreeRenderLanes, nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
if ("hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode) if ((4 & workInProgress.mode) == 0) {
var nextBaseLanes, nextState = {
baseLanes: NoLanes
};
workInProgress.memoizedState = nextState, pushRenderLanes(workInProgress, renderLanes);
} else if (includesSomeLane(renderLanes, 1073741824)) {
var _nextState2 = {
baseLanes: NoLanes
};
workInProgress.memoizedState = _nextState2, pushRenderLanes(workInProgress, null !== prevState ? prevState.baseLanes : renderLanes);
} else {
nextBaseLanes = null !== prevState ? mergeLanes(prevState.baseLanes, renderLanes) : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
var _nextState = {
baseLanes: nextBaseLanes
};
return workInProgress.memoizedState = _nextState, pushRenderLanes(workInProgress, nextBaseLanes), null;
}
else null !== prevState ? (_subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes), workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
return reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
}
didWarnAboutBadClass = {}, didWarnAboutModulePatternComponent = {}, didWarnAboutContextTypeOnFunctionComponent = {}, didWarnAboutGetDerivedStateOnFunctionComponent = {}, didWarnAboutFunctionRefs = {}, didWarnAboutReassigningProps = !1, didWarnAboutRevealOrder = {}, didWarnAboutTailOptions = {};
var updateLegacyHiddenComponent = updateOffscreenComponent;
function markRef(current, workInProgress) {
var ref = workInProgress.ref;
(null === current && null !== ref || null !== current && current.ref !== ref) && (workInProgress.flags |= 128);
}
function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
if (workInProgress.type !== workInProgress.elementType) {
var context, nextChildren, innerPropTypes = Component.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(Component));
}
var unmaskedContext = getUnmaskedContext(workInProgress, Component, !0);
if (context = getMaskedContext(workInProgress, unmaskedContext), prepareToReadContext(workInProgress, renderLanes), ReactCurrentOwner$1.current = workInProgress, setIsRendering(!0), nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes), 1 & workInProgress.mode) {
disableLogs();
try {
nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
} finally{
reenableLogs();
}
}
return (setIsRendering(!1), null === current || didReceiveUpdate) ? (workInProgress.flags |= 1, reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child) : (bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes));
}
function updateClassComponent(current2, workInProgress4, Component, nextProps, renderLanes2) {
if (workInProgress4.type !== workInProgress4.elementType) {
var hasContext, shouldUpdate, innerPropTypes = Component.propTypes;
innerPropTypes && checkPropTypes(innerPropTypes, nextProps, "prop", getComponentName(Component));
}
isContextProvider(Component) ? (hasContext = !0, pushContextProvider(workInProgress4)) : hasContext = !1, prepareToReadContext(workInProgress4, renderLanes2), null === workInProgress4.stateNode ? (null !== current2 && (current2.alternate = null, workInProgress4.alternate = null, workInProgress4.flags |= Placement), constructClassInstance(workInProgress4, Component, nextProps), mountClassInstance(workInProgress4, Component, nextProps, renderLanes2), shouldUpdate = !0) : shouldUpdate = null === current2 ? (function(workInProgress, ctor, newProps, renderLanes) {
var instance = workInProgress.stateNode, oldProps = workInProgress.memoizedProps;
instance.props = oldProps;
var oldContext = instance.context, contextType = ctor.contextType, nextContext = emptyContextObject;
if ("object" == typeof contextType && null !== contextType) nextContext = readContext(contextType);
else {
var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, !0);
nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
}
var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate;
hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || (oldProps !== newProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
var oldState = workInProgress.memoizedState, newState = instance.state = oldState;
if (processUpdateQueue(workInProgress, newProps, instance, renderLanes), newState = workInProgress.memoizedState, oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidMount && (workInProgress.flags |= Update), !1;
"function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps), newState = workInProgress.memoizedState);
var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillMount && "function" != typeof instance.componentWillMount || ("function" == typeof instance.componentWillMount && instance.componentWillMount(), "function" == typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount()), "function" == typeof instance.componentDidMount && (workInProgress.flags |= Update)) : ("function" == typeof instance.componentDidMount && (workInProgress.flags |= Update), workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), instance.props = newProps, instance.state = newState, instance.context = nextContext, shouldUpdate;
})(workInProgress4, Component, nextProps, renderLanes2) : (function(current, workInProgress, ctor, newProps, renderLanes) {
var instance = workInProgress.stateNode;
cloneUpdateQueue(current, workInProgress);
var unresolvedOldProps = workInProgress.memoizedProps, oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
instance.props = oldProps;
var unresolvedNewProps = workInProgress.pendingProps, oldContext = instance.context, contextType = ctor.contextType, nextContext = emptyContextObject;
if ("object" == typeof contextType && null !== contextType) nextContext = readContext(contextType);
else {
var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, !0);
nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
}
var getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate;
hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) && callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext), resetHasForceUpdateBeforeProcessing();
var oldState = workInProgress.memoizedState, newState = instance.state = oldState;
if (processUpdateQueue(workInProgress, newProps, instance, renderLanes), newState = workInProgress.memoizedState, unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidUpdate && (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) && (workInProgress.flags |= Update), "function" == typeof instance.getSnapshotBeforeUpdate && (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) && (workInProgress.flags |= 256), !1;
"function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps), newState = workInProgress.memoizedState);
var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillUpdate && "function" != typeof instance.componentWillUpdate || ("function" == typeof instance.componentWillUpdate && instance.componentWillUpdate(newProps, newState, nextContext), "function" == typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext)), "function" == typeof instance.componentDidUpdate && (workInProgress.flags |= Update), "function" == typeof instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 256)) : ("function" == typeof instance.componentDidUpdate && (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) && (workInProgress.flags |= Update), "function" == typeof instance.getSnapshotBeforeUpdate && (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) && (workInProgress.flags |= 256), workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), instance.props = newProps, instance.state = newState, instance.context = nextContext, shouldUpdate;
})(current2, workInProgress4, Component, nextProps, renderLanes2);
var nextUnitOfWork = finishClassComponent(current2, workInProgress4, Component, shouldUpdate, hasContext, renderLanes2), inst = workInProgress4.stateNode;
return shouldUpdate && inst.props !== nextProps && (didWarnAboutReassigningProps || error1("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", getComponentName(workInProgress4.type) || "a component"), didWarnAboutReassigningProps = !0), nextUnitOfWork;
}
function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
markRef(current, workInProgress);
var current3, workInProgress5, nextChildren, renderLanes3, nextChildren1, didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;
if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, Component, !1), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
var instance = workInProgress.stateNode;
if (ReactCurrentOwner$1.current = workInProgress, didCaptureError && "function" != typeof Component.getDerivedStateFromError) nextChildren1 = null, stopProfilerTimerIfRunning();
else {
if (setIsRendering(!0), nextChildren1 = instance.render(), 1 & workInProgress.mode) {
disableLogs();
try {
instance.render();
} finally{
reenableLogs();
}
}
setIsRendering(!1);
}
return (workInProgress.flags |= 1, null !== current && didCaptureError) ? (current3 = current, workInProgress5 = workInProgress, nextChildren = nextChildren1, renderLanes3 = renderLanes, workInProgress5.child = reconcileChildFibers(workInProgress5, current3.child, null, renderLanes3), workInProgress5.child = reconcileChildFibers(workInProgress5, null, nextChildren, renderLanes3)) : reconcileChildren(current, workInProgress, nextChildren1, renderLanes), workInProgress.memoizedState = instance.state, hasContext && invalidateContextProvider(workInProgress, Component, !0), workInProgress.child;
}
function pushHostRootContext(workInProgress) {
var root = workInProgress.stateNode;
root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1), pushHostContainer(workInProgress, root.containerInfo);
}
function validateFunctionComponentInDev(workInProgress, Component) {
if (Component && Component.childContextTypes && error1("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"), null !== workInProgress.ref) {
var info = "", ownerName = getCurrentFiberOwnerNameInDevOrNull();
ownerName && (info += "\n\nCheck the render method of `" + ownerName + "`.");
var warningKey = ownerName || workInProgress._debugID || "", debugSource = workInProgress._debugSource;
debugSource && (warningKey = debugSource.fileName + ":" + debugSource.lineNumber), didWarnAboutFunctionRefs[warningKey] || (didWarnAboutFunctionRefs[warningKey] = !0, error1("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", info));
}
if ("function" == typeof Component.getDerivedStateFromProps) {
var _componentName3 = getComponentName(Component) || "Unknown";
didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] || (error1("%s: Function components do not support getDerivedStateFromProps.", _componentName3), didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = !0);
}
if ("object" == typeof Component.contextType && null !== Component.contextType) {
var _componentName4 = getComponentName(Component) || "Unknown";
didWarnAboutContextTypeOnFunctionComponent[_componentName4] || (error1("%s: Function components do not support contextType.", _componentName4), didWarnAboutContextTypeOnFunctionComponent[_componentName4] = !0);
}
}
var SUSPENDED_MARKER = {
dehydrated: null,
retryLane: NoLane
};
function mountSuspenseOffscreenState(renderLanes) {
return {
baseLanes: renderLanes
};
}
function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
return {
baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes)
};
}
function getRemainingWorkInPrimaryTree(current, renderLanes) {
return removeLanes(current.childLanes, renderLanes);
}
function updateSuspenseComponent(current, workInProgress, renderLanes) {
var nextProps = workInProgress.pendingProps;
shouldSuspend(workInProgress) && (workInProgress.flags |= DidCapture);
var suspenseContext, current4, suspenseContext1 = suspenseStackCursor.current, showFallback = !1;
if ((workInProgress.flags & DidCapture) !== NoFlags || (suspenseContext = suspenseContext1, (null === (current4 = current) || null !== current4.memoizedState) && hasSuspenseContext(suspenseContext, 2)) ? (showFallback = !0, workInProgress.flags &= ~DidCapture) : (null === current || null !== current.memoizedState) && void 0 !== nextProps.fallback && !0 !== nextProps.unstable_avoidThisFallback && (suspenseContext1 |= 1), pushSuspenseContext(workInProgress, suspenseContext1 = setDefaultShallowSuspenseContext(suspenseContext1)), null === current) {
void 0 !== nextProps.fallback && tryToClaimNextHydratableInstance(workInProgress);
var nextPrimaryChildren = nextProps.children, nextFallbackChildren = nextProps.fallback;
if (showFallback) {
var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes), primaryChildFragment = workInProgress.child;
return primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, fallbackFragment;
}
if ("number" != typeof nextProps.unstable_expectedLoadTime) return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren, renderLanes);
var _fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes), _primaryChildFragment = workInProgress.child;
return _primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, workInProgress.lanes = 33554432, markSpawnedWork(33554432), _fallbackFragment;
}
if (null !== current.memoizedState) {
if (showFallback) {
var _nextFallbackChildren2 = nextProps.fallback, _nextPrimaryChildren2 = nextProps.children, _fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren2, _nextFallbackChildren2, renderLanes), _primaryChildFragment3 = workInProgress.child, prevOffscreenState = current.child.memoizedState;
return _primaryChildFragment3.memoizedState = null === prevOffscreenState ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes), _primaryChildFragment3.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, _fallbackChildFragment;
}
var _primaryChildFragment4 = updateSuspensePrimaryChildren(current, workInProgress, nextProps.children, renderLanes);
return workInProgress.memoizedState = null, _primaryChildFragment4;
}
if (showFallback) {
var _nextFallbackChildren3 = nextProps.fallback, _nextPrimaryChildren4 = nextProps.children, _fallbackChildFragment2 = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren4, _nextFallbackChildren3, renderLanes), _primaryChildFragment5 = workInProgress.child, _prevOffscreenState = current.child.memoizedState;
return _primaryChildFragment5.memoizedState = null === _prevOffscreenState ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(_prevOffscreenState, renderLanes), _primaryChildFragment5.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, _fallbackChildFragment2;
}
var _primaryChildFragment6 = updateSuspensePrimaryChildren(current, workInProgress, nextProps.children, renderLanes);
return workInProgress.memoizedState = null, _primaryChildFragment6;
}
function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
var primaryChildFragment = createFiberFromOffscreen({
mode: "visible",
children: primaryChildren
}, workInProgress.mode, renderLanes, null);
return primaryChildFragment.return = workInProgress, workInProgress.child = primaryChildFragment, primaryChildFragment;
}
function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
var primaryChildFragment, fallbackChildFragment, mode = workInProgress.mode, progressedPrimaryFragment = workInProgress.child, primaryChildProps = {
mode: "hidden",
children: primaryChildren
};
return (2 & mode) == 0 && null !== progressedPrimaryFragment ? ((primaryChildFragment = progressedPrimaryFragment).childLanes = NoLanes, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = 0, primaryChildFragment.treeBaseDuration = 0), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)) : (primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, NoLanes, null), fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null)), primaryChildFragment.return = workInProgress, fallbackChildFragment.return = workInProgress, primaryChildFragment.sibling = fallbackChildFragment, workInProgress.child = primaryChildFragment, fallbackChildFragment;
}
function createWorkInProgressOffscreenFiber(current, offscreenProps) {
return createWorkInProgress(current, offscreenProps);
}
function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
var currentPrimaryChildFragment = current.child, currentFallbackChildFragment = currentPrimaryChildFragment.sibling, primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
mode: "visible",
children: primaryChildren
});
return (2 & workInProgress.mode) == 0 && (primaryChildFragment.lanes = renderLanes), primaryChildFragment.return = workInProgress, primaryChildFragment.sibling = null, null !== currentFallbackChildFragment && (currentFallbackChildFragment.nextEffect = null, currentFallbackChildFragment.flags = Deletion, workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChildFragment), workInProgress.child = primaryChildFragment, primaryChildFragment;
}
function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
var primaryChildFragment, fallbackChildFragment, mode = workInProgress.mode, currentPrimaryChildFragment = current.child, currentFallbackChildFragment = currentPrimaryChildFragment.sibling, primaryChildProps = {
mode: "hidden",
children: primaryChildren
};
if ((2 & mode) == 0 && workInProgress.child !== currentPrimaryChildFragment) {
(primaryChildFragment = workInProgress.child).childLanes = NoLanes, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration, primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration);
var progressedLastEffect = primaryChildFragment.lastEffect;
null !== progressedLastEffect ? (workInProgress.firstEffect = primaryChildFragment.firstEffect, workInProgress.lastEffect = progressedLastEffect, progressedLastEffect.nextEffect = null) : workInProgress.firstEffect = workInProgress.lastEffect = null;
} else primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps);
return null !== currentFallbackChildFragment ? fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren) : (fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null), fallbackChildFragment.flags |= Placement), fallbackChildFragment.return = workInProgress, primaryChildFragment.return = workInProgress, primaryChildFragment.sibling = fallbackChildFragment, workInProgress.child = primaryChildFragment, fallbackChildFragment;
}
function scheduleWorkOnFiber(fiber, renderLanes) {
fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
var alternate = fiber.alternate;
null !== alternate && (alternate.lanes = mergeLanes(alternate.lanes, renderLanes)), scheduleWorkOnParentPath(fiber.return, renderLanes);
}
function validateSuspenseListNestedChild(childSlot, index) {
var isArray = Array.isArray(childSlot), isIterable = !isArray && "function" == typeof getIteratorFn(childSlot);
if (isArray || isIterable) {
var type = isArray ? "array" : "iterable";
return error1("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", type, index, type), !1;
}
return !0;
}
function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
var renderState = workInProgress.memoizedState;
null === renderState ? workInProgress.memoizedState = {
isBackwards: isBackwards,
rendering: null,
renderingStartTime: 0,
last: lastContentRow,
tail: tail,
tailMode: tailMode,
lastEffect: lastEffectBeforeRendering
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.lastEffect = lastEffectBeforeRendering);
}
function updateSuspenseListComponent(current, workInProgress6, renderLanes4) {
var tailMode, revealOrder2, nextProps = workInProgress6.pendingProps, revealOrder1 = nextProps.revealOrder, tailMode1 = nextProps.tail, newChildren = nextProps.children;
!function(revealOrder) {
if (void 0 !== revealOrder && "forwards" !== revealOrder && "backwards" !== revealOrder && "together" !== revealOrder && !didWarnAboutRevealOrder[revealOrder]) if (didWarnAboutRevealOrder[revealOrder] = !0, "string" == typeof revealOrder) switch(revealOrder.toLowerCase()){
case "together":
case "forwards":
case "backwards":
error1("\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.", revealOrder, revealOrder.toLowerCase());
break;
case "forward":
case "backward":
error1("\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.", revealOrder, revealOrder.toLowerCase());
break;
default:
error1("\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?", revealOrder);
break;
}
else error1("%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?", revealOrder);
}(revealOrder1), tailMode = tailMode1, revealOrder2 = revealOrder1, void 0 === tailMode || didWarnAboutTailOptions[tailMode] || ("collapsed" !== tailMode && "hidden" !== tailMode ? (didWarnAboutTailOptions[tailMode] = !0, error1("\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"collapsed\" or \"hidden\"?", tailMode)) : "forwards" !== revealOrder2 && "backwards" !== revealOrder2 && (didWarnAboutTailOptions[tailMode] = !0, error1("<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?", tailMode))), (function(children, revealOrder) {
if (("forwards" === revealOrder || "backwards" === revealOrder) && null != children && !1 !== children) if (Array.isArray(children)) {
for(var i = 0; i < children.length; i++)if (!validateSuspenseListNestedChild(children[i], i)) return;
} else {
var iteratorFn = getIteratorFn(children);
if ("function" == typeof iteratorFn) {
var childrenIterator = iteratorFn.call(children);
if (childrenIterator) for(var step = childrenIterator.next(), _i = 0; !step.done; step = childrenIterator.next()){
if (!validateSuspenseListNestedChild(step.value, _i)) return;
_i++;
}
} else error1("A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?", revealOrder);
}
})(newChildren, revealOrder1), reconcileChildren(current, workInProgress6, newChildren, renderLanes4);
var suspenseContext = suspenseStackCursor.current;
if (hasSuspenseContext(suspenseContext, 2) ? (suspenseContext = setShallowSuspenseContext(suspenseContext, 2), workInProgress6.flags |= DidCapture) : (null !== current && (current.flags & DidCapture) !== NoFlags && (function(workInProgress, firstChild, renderLanes) {
for(var node = firstChild; null !== node;){
if (13 === node.tag) null !== node.memoizedState && scheduleWorkOnFiber(node, renderLanes);
else if (19 === node.tag) scheduleWorkOnFiber(node, renderLanes);
else if (null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === workInProgress) return;
for(; null === node.sibling;){
if (null === node.return || node.return === workInProgress) return;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
})(workInProgress6, workInProgress6.child, renderLanes4), suspenseContext = setDefaultShallowSuspenseContext(suspenseContext)), pushSuspenseContext(workInProgress6, suspenseContext), (2 & workInProgress6.mode) == 0) workInProgress6.memoizedState = null;
else switch(revealOrder1){
case "forwards":
var tail, lastContentRow1 = function(firstChild) {
for(var row = firstChild, lastContentRow = null; null !== row;){
var currentRow = row.alternate;
null !== currentRow && null === findFirstSuspended(currentRow) && (lastContentRow = row), row = row.sibling;
}
return lastContentRow;
}(workInProgress6.child);
null === lastContentRow1 ? (tail = workInProgress6.child, workInProgress6.child = null) : (tail = lastContentRow1.sibling, lastContentRow1.sibling = null), initSuspenseListRenderState(workInProgress6, !1, tail, lastContentRow1, tailMode1, workInProgress6.lastEffect);
break;
case "backwards":
var _tail = null, row1 = workInProgress6.child;
for(workInProgress6.child = null; null !== row1;){
var currentRow1 = row1.alternate;
if (null !== currentRow1 && null === findFirstSuspended(currentRow1)) {
workInProgress6.child = row1;
break;
}
var nextRow = row1.sibling;
row1.sibling = _tail, _tail = row1, row1 = nextRow;
}
initSuspenseListRenderState(workInProgress6, !0, _tail, null, tailMode1, workInProgress6.lastEffect);
break;
case "together":
initSuspenseListRenderState(workInProgress6, !1, null, null, void 0, workInProgress6.lastEffect);
break;
default:
workInProgress6.memoizedState = null;
}
return workInProgress6.child;
}
var hasWarnedAboutUsingNoValuePropOnContextProvider = !1, hasWarnedAboutUsingContextAsConsumer = !1;
function markWorkInProgressReceivedUpdate() {
didReceiveUpdate = !0;
}
function bailoutOnAlreadyFinishedWork(current5, workInProgress7, renderLanes) {
return (null !== current5 && (workInProgress7.dependencies = current5.dependencies), stopProfilerTimerIfRunning(), markSkippedUpdateLanes(workInProgress7.lanes), includesSomeLane(renderLanes, workInProgress7.childLanes)) ? (!function(current, workInProgress) {
if (!(null === current || workInProgress.child === current.child)) throw Error("Resuming work not yet implemented.");
if (null !== workInProgress.child) {
var currentChild = workInProgress.child, newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
for(workInProgress.child = newChild, newChild.return = workInProgress; null !== currentChild.sibling;)currentChild = currentChild.sibling, (newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps)).return = workInProgress;
newChild.sibling = null;
}
}(current5, workInProgress7), workInProgress7.child) : null;
}
function beginWork(current13, workInProgress16, renderLanes12) {
var updateLanes1 = workInProgress16.lanes;
if (workInProgress16._debugNeedsRemount && null !== current13) return (function(current, oldWorkInProgress, newWorkInProgress) {
var returnFiber = oldWorkInProgress.return;
if (null === returnFiber) throw new Error("Cannot swap the root fiber.");
if (current.alternate = null, oldWorkInProgress.alternate = null, newWorkInProgress.index = oldWorkInProgress.index, newWorkInProgress.sibling = oldWorkInProgress.sibling, newWorkInProgress.return = oldWorkInProgress.return, newWorkInProgress.ref = oldWorkInProgress.ref, oldWorkInProgress === returnFiber.child) returnFiber.child = newWorkInProgress;
else {
var prevSibling = returnFiber.child;
if (null === prevSibling) throw new Error("Expected parent to have a child.");
for(; prevSibling.sibling !== oldWorkInProgress;)if (null === (prevSibling = prevSibling.sibling)) throw new Error("Expected to find the previous sibling.");
prevSibling.sibling = newWorkInProgress;
}
var last = returnFiber.lastEffect;
return null !== last ? (last.nextEffect = current, returnFiber.lastEffect = current) : returnFiber.firstEffect = returnFiber.lastEffect = current, current.nextEffect = null, current.flags = Deletion, newWorkInProgress.flags |= Placement, newWorkInProgress;
})(current13, workInProgress16, createFiberFromTypeAndProps(workInProgress16.type, workInProgress16.key, workInProgress16.pendingProps, workInProgress16._debugOwner || null, workInProgress16.mode, workInProgress16.lanes));
if (null !== current13) if (current13.memoizedProps !== workInProgress16.pendingProps || hasContextChanged() || workInProgress16.type !== current13.type) didReceiveUpdate = !0;
else if (includesSomeLane(renderLanes12, updateLanes1)) didReceiveUpdate = (16384 & current13.flags) !== NoFlags;
else {
switch(didReceiveUpdate = !1, workInProgress16.tag){
case 3:
pushHostRootContext(workInProgress16), resetHydrationState();
break;
case 5:
pushHostContext(workInProgress16);
break;
case 1:
isContextProvider(workInProgress16.type) && pushContextProvider(workInProgress16);
break;
case 4:
pushHostContainer(workInProgress16, workInProgress16.stateNode.containerInfo);
break;
case 10:
var newValue = workInProgress16.memoizedProps.value;
pushProvider(workInProgress16, newValue);
break;
case 12:
includesSomeLane(renderLanes12, workInProgress16.childLanes) && (workInProgress16.flags |= Update);
var stateNode = workInProgress16.stateNode;
stateNode.effectDuration = 0, stateNode.passiveEffectDuration = 0;
break;
case 13:
if (null !== workInProgress16.memoizedState) {
if (includesSomeLane(renderLanes12, workInProgress16.child.childLanes)) return updateSuspenseComponent(current13, workInProgress16, renderLanes12);
pushSuspenseContext(workInProgress16, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
var child = bailoutOnAlreadyFinishedWork(current13, workInProgress16, renderLanes12);
if (null !== child) return child.sibling;
return null;
}
pushSuspenseContext(workInProgress16, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
break;
case 19:
var didSuspendBefore = (current13.flags & DidCapture) !== NoFlags, _hasChildWork = includesSomeLane(renderLanes12, workInProgress16.childLanes);
if (didSuspendBefore) {
if (_hasChildWork) return updateSuspenseListComponent(current13, workInProgress16, renderLanes12);
workInProgress16.flags |= DidCapture;
}
var renderState = workInProgress16.memoizedState;
if (null !== renderState && (renderState.rendering = null, renderState.tail = null, renderState.lastEffect = null), pushSuspenseContext(workInProgress16, suspenseStackCursor.current), !_hasChildWork) return null;
break;
case 23:
case 24:
return workInProgress16.lanes = NoLanes, updateOffscreenComponent(current13, workInProgress16, renderLanes12);
}
return bailoutOnAlreadyFinishedWork(current13, workInProgress16, renderLanes12);
}
else didReceiveUpdate = !1;
switch(workInProgress16.lanes = NoLanes, workInProgress16.tag){
case 2:
return (function(_current, workInProgress, Component, renderLanes) {
null !== _current && (_current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= Placement);
var context, value, props = workInProgress.pendingProps, unmaskedContext = getUnmaskedContext(workInProgress, Component, !1);
if (context = getMaskedContext(workInProgress, unmaskedContext), prepareToReadContext(workInProgress, renderLanes), Component.prototype && "function" == typeof Component.prototype.render) {
var componentName = getComponentName(Component) || "Unknown";
didWarnAboutBadClass[componentName] || (error1("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName), didWarnAboutBadClass[componentName] = !0);
}
if (1 & workInProgress.mode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null), setIsRendering(!0), ReactCurrentOwner$1.current = workInProgress, value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes), setIsRendering(!1), workInProgress.flags |= 1, "object" == typeof value && null !== value && "function" == typeof value.render && void 0 === value.$$typeof) {
var _componentName = getComponentName(Component) || "Unknown";
didWarnAboutModulePatternComponent[_componentName] || (error1("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", _componentName, _componentName, _componentName), didWarnAboutModulePatternComponent[_componentName] = !0);
}
if ("object" == typeof value && null !== value && "function" == typeof value.render && void 0 === value.$$typeof) {
var _componentName2 = getComponentName(Component) || "Unknown";
didWarnAboutModulePatternComponent[_componentName2] || (error1("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2), didWarnAboutModulePatternComponent[_componentName2] = !0), workInProgress.tag = 1, workInProgress.memoizedState = null, workInProgress.updateQueue = null;
var hasContext = !1;
isContextProvider(Component) ? (hasContext = !0, pushContextProvider(workInProgress)) : hasContext = !1, workInProgress.memoizedState = null !== value.state && void 0 !== value.state ? value.state : null, initializeUpdateQueue(workInProgress);
var getDerivedStateFromProps = Component.getDerivedStateFromProps;
return "function" == typeof getDerivedStateFromProps && applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props), adoptClassInstance(workInProgress, value), mountClassInstance(workInProgress, Component, props, renderLanes), finishClassComponent(null, workInProgress, Component, !0, hasContext, renderLanes);
}
if (workInProgress.tag = 0, 1 & workInProgress.mode) {
disableLogs();
try {
value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
} finally{
reenableLogs();
}
}
return reconcileChildren(null, workInProgress, value, renderLanes), validateFunctionComponentInDev(workInProgress, Component), workInProgress.child;
})(current13, workInProgress16, workInProgress16.type, renderLanes12);
case 16:
var elementType1 = workInProgress16.elementType;
return (function(_current, workInProgress, elementType, updateLanes, renderLanes) {
null !== _current && (_current.alternate = null, workInProgress.alternate = null, workInProgress.flags |= Placement);
var props = workInProgress.pendingProps, lazyComponent = elementType, payload = lazyComponent._payload, init = lazyComponent._init, Component = init(payload);
workInProgress.type = Component;
var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component), resolvedProps = resolveDefaultProps(Component, props);
switch(resolvedTag){
case 0:
return validateFunctionComponentInDev(workInProgress, Component), workInProgress.type = Component = resolveFunctionForHotReloading(Component), updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
case 1:
return workInProgress.type = Component = resolveClassForHotReloading(Component), updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
case 11:
return workInProgress.type = Component = resolveForwardRefForHotReloading(Component), updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
case 14:
if (workInProgress.type !== workInProgress.elementType) {
var outerPropTypes = Component.propTypes;
outerPropTypes && checkPropTypes(outerPropTypes, resolvedProps, "prop", getComponentName(Component));
}
return updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), updateLanes, renderLanes);
}
var hint = "";
throw null !== Component && "object" == typeof Component && Component.$$typeof === REACT_LAZY_TYPE && (hint = " Did you wrap a component in React.lazy() more than once?"), Error("Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint);
})(current13, workInProgress16, elementType1, updateLanes1, renderLanes12);
case 0:
var _Component = workInProgress16.type, unresolvedProps = workInProgress16.pendingProps, resolvedProps1 = workInProgress16.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
return updateFunctionComponent(current13, workInProgress16, _Component, resolvedProps1, renderLanes12);
case 1:
var _Component2 = workInProgress16.type, _unresolvedProps = workInProgress16.pendingProps, _resolvedProps = workInProgress16.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
return updateClassComponent(current13, workInProgress16, _Component2, _resolvedProps, renderLanes12);
case 3:
return (function(current, workInProgress, renderLanes) {
pushHostRootContext(workInProgress);
var updateQueue = workInProgress.updateQueue;
if (!(null !== current && null !== updateQueue)) throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");
var nextProps = workInProgress.pendingProps, prevState = workInProgress.memoizedState, prevChildren = null !== prevState ? prevState.element : null;
cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, nextProps, null, renderLanes);
var nextState = workInProgress.memoizedState, nextChildren = nextState.element;
if (nextChildren === prevChildren) return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
var fiber, root = workInProgress.stateNode;
if (root.hydrate && (nextHydratableInstance = getFirstHydratableChild((fiber = workInProgress).stateNode.containerInfo), hydrationParentFiber = fiber, isHydrating1 = !0, 1)) {
var mutableSourceEagerHydrationData = root.mutableSourceEagerHydrationData;
if (null != mutableSourceEagerHydrationData) for(var i = 0; i < mutableSourceEagerHydrationData.length; i += 2){
var mutableSource = mutableSourceEagerHydrationData[i], version = mutableSourceEagerHydrationData[i + 1];
setWorkInProgressVersion(mutableSource, version);
}
var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
workInProgress.child = child;
for(var node = child; node;)node.flags = node.flags & ~Placement | Hydrating, node = node.sibling;
} else reconcileChildren(current, workInProgress, nextChildren, renderLanes), resetHydrationState();
return workInProgress.child;
})(current13, workInProgress16, renderLanes12);
case 5:
return current6 = current13, workInProgress8 = workInProgress16, renderLanes5 = renderLanes12, pushHostContext(workInProgress8), null === current6 && tryToClaimNextHydratableInstance(workInProgress8), type7 = workInProgress8.type, nextProps2 = workInProgress8.pendingProps, prevProps = null !== current6 ? current6.memoizedProps : null, nextChildren6 = nextProps2.children, shouldSetTextContent(type7, nextProps2) ? nextChildren6 = null : null !== prevProps && shouldSetTextContent(type7, prevProps) && (workInProgress8.flags |= 16), markRef(current6, workInProgress8), reconcileChildren(current6, workInProgress8, nextChildren6, renderLanes5), workInProgress8.child;
case 6:
return current7 = current13, workInProgress9 = workInProgress16, null === current7 && tryToClaimNextHydratableInstance(workInProgress9), null;
case 13:
return updateSuspenseComponent(current13, workInProgress16, renderLanes12);
case 4:
return current8 = current13, workInProgress10 = workInProgress16, renderLanes6 = renderLanes12, pushHostContainer(workInProgress10, workInProgress10.stateNode.containerInfo), nextChildren2 = workInProgress10.pendingProps, null === current8 ? workInProgress10.child = reconcileChildFibers(workInProgress10, null, nextChildren2, renderLanes6) : reconcileChildren(current8, workInProgress10, nextChildren2, renderLanes6), workInProgress10.child;
case 11:
var type = workInProgress16.type, _unresolvedProps2 = workInProgress16.pendingProps, _resolvedProps2 = workInProgress16.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
return updateForwardRef(current13, workInProgress16, type, _resolvedProps2, renderLanes12);
case 7:
return current9 = current13, workInProgress11 = workInProgress16, renderLanes7 = renderLanes12, nextChildren3 = workInProgress11.pendingProps, reconcileChildren(current9, workInProgress11, nextChildren3, renderLanes7), workInProgress11.child;
case 8:
return current10 = current13, workInProgress12 = workInProgress16, renderLanes8 = renderLanes12, nextChildren4 = workInProgress12.pendingProps.children, reconcileChildren(current10, workInProgress12, nextChildren4, renderLanes8), workInProgress12.child;
case 12:
return current11 = current13, workInProgress13 = workInProgress16, renderLanes9 = renderLanes12, workInProgress13.flags |= Update, (stateNode1 = workInProgress13.stateNode).effectDuration = 0, stateNode1.passiveEffectDuration = 0, nextChildren5 = workInProgress13.pendingProps.children, reconcileChildren(current11, workInProgress13, nextChildren5, renderLanes9), workInProgress13.child;
case 10:
return (function(current, workInProgress17, renderLanes13) {
var context2 = workInProgress17.type._context, newProps = workInProgress17.pendingProps, oldProps = workInProgress17.memoizedProps, newValue2 = newProps.value;
"value" in newProps || hasWarnedAboutUsingNoValuePropOnContextProvider || (hasWarnedAboutUsingNoValuePropOnContextProvider = !0, error1("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));
var providerPropTypes = workInProgress17.type.propTypes;
if (providerPropTypes && checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"), pushProvider(workInProgress17, newValue2), null !== oldProps) {
var changedBits1 = function(context, newValue, oldValue) {
if (objectIs(oldValue, newValue)) return 0;
var changedBits = "function" == typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : 1073741823;
return (1073741823 & changedBits) !== changedBits && error1("calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s", changedBits), 0 | changedBits;
}(context2, newValue2, oldProps.value);
if (0 === changedBits1) {
if (oldProps.children === newProps.children && !hasContextChanged()) return bailoutOnAlreadyFinishedWork(current, workInProgress17, renderLanes13);
} else !function(workInProgress, context, changedBits, renderLanes) {
var fiber = workInProgress.child;
for(null !== fiber && (fiber.return = workInProgress); null !== fiber;){
var nextFiber = void 0, list = fiber.dependencies;
if (null !== list) {
nextFiber = fiber.child;
for(var dependency = list.firstContext; null !== dependency;){
if (dependency.context === context && (dependency.observedBits & changedBits) != 0) {
if (1 === fiber.tag) {
var update = createUpdate(-1, pickArbitraryLane(renderLanes));
update.tag = 2, enqueueUpdate(fiber, update);
}
fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
var alternate = fiber.alternate;
null !== alternate && (alternate.lanes = mergeLanes(alternate.lanes, renderLanes)), scheduleWorkOnParentPath(fiber.return, renderLanes), list.lanes = mergeLanes(list.lanes, renderLanes);
break;
}
dependency = dependency.next;
}
} else nextFiber = 10 === fiber.tag && fiber.type === workInProgress.type ? null : fiber.child;
if (null !== nextFiber) nextFiber.return = fiber;
else for(nextFiber = fiber; null !== nextFiber;){
if (nextFiber === workInProgress) {
nextFiber = null;
break;
}
var sibling = nextFiber.sibling;
if (null !== sibling) {
sibling.return = nextFiber.return, nextFiber = sibling;
break;
}
nextFiber = nextFiber.return;
}
fiber = nextFiber;
}
}(workInProgress17, context2, changedBits1, renderLanes13);
}
return reconcileChildren(current, workInProgress17, newProps.children, renderLanes13), workInProgress17.child;
})(current13, workInProgress16, renderLanes12);
case 9:
return current12 = current13, workInProgress14 = workInProgress16, renderLanes10 = renderLanes12, void 0 === (context1 = workInProgress14.type)._context ? context1 === context1.Consumer || hasWarnedAboutUsingContextAsConsumer || (hasWarnedAboutUsingContextAsConsumer = !0, error1("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")) : context1 = context1._context, "function" != typeof (render = (newProps2 = workInProgress14.pendingProps).children) && error1("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), prepareToReadContext(workInProgress14, renderLanes10), newValue1 = readContext(context1, newProps2.unstable_observedBits), ReactCurrentOwner$1.current = workInProgress14, setIsRendering(!0), newChildren = render(newValue1), setIsRendering(!1), workInProgress14.flags |= 1, reconcileChildren(current12, workInProgress14, newChildren, renderLanes10), workInProgress14.child;
case 14:
var current6, workInProgress8, renderLanes5, type7, nextProps2, prevProps, nextChildren6, current7, workInProgress9, current8, workInProgress10, renderLanes6, nextChildren2, current9, workInProgress11, renderLanes7, nextChildren3, current10, workInProgress12, renderLanes8, nextChildren4, current11, workInProgress13, renderLanes9, stateNode1, nextChildren5, current12, workInProgress14, renderLanes10, newChildren, context1, newProps2, render, newValue1, _type2 = workInProgress16.type, _resolvedProps3 = resolveDefaultProps(_type2, workInProgress16.pendingProps);
if (workInProgress16.type !== workInProgress16.elementType) {
var outerPropTypes1 = _type2.propTypes;
outerPropTypes1 && checkPropTypes(outerPropTypes1, _resolvedProps3, "prop", getComponentName(_type2));
}
return _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3), updateMemoComponent(current13, workInProgress16, _type2, _resolvedProps3, updateLanes1, renderLanes12);
case 15:
return updateSimpleMemoComponent(current13, workInProgress16, workInProgress16.type, workInProgress16.pendingProps, updateLanes1, renderLanes12);
case 17:
var _current1, workInProgress15, Component1, nextProps1, renderLanes11, hasContext1, _Component3 = workInProgress16.type, _unresolvedProps4 = workInProgress16.pendingProps, _resolvedProps4 = workInProgress16.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
return _current1 = current13, workInProgress15 = workInProgress16, Component1 = _Component3, nextProps1 = _resolvedProps4, renderLanes11 = renderLanes12, null !== _current1 && (_current1.alternate = null, workInProgress15.alternate = null, workInProgress15.flags |= Placement), workInProgress15.tag = 1, isContextProvider(Component1) ? (hasContext1 = !0, pushContextProvider(workInProgress15)) : hasContext1 = !1, prepareToReadContext(workInProgress15, renderLanes11), constructClassInstance(workInProgress15, Component1, nextProps1), mountClassInstance(workInProgress15, Component1, nextProps1, renderLanes11), finishClassComponent(null, workInProgress15, Component1, !0, hasContext1, renderLanes11);
case 19:
return updateSuspenseListComponent(current13, workInProgress16, renderLanes12);
case 20:
break;
case 21:
break;
case 22:
break;
case 23:
return updateOffscreenComponent(current13, workInProgress16, renderLanes12);
case 24:
return updateLegacyHiddenComponent(current13, workInProgress16, renderLanes12);
}
throw Error("Unknown unit of work tag (" + workInProgress16.tag + "). This error is likely caused by a bug in React. Please file an issue.");
}
function markUpdate(workInProgress) {
workInProgress.flags |= Update;
}
function markRef$1(workInProgress) {
workInProgress.flags |= 128;
}
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
if (!getIsHydrating()) switch(renderState.tailMode){
case "hidden":
for(var tailNode = renderState.tail, lastTailNode = null; null !== tailNode;)null !== tailNode.alternate && (lastTailNode = tailNode), tailNode = tailNode.sibling;
null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null;
break;
case "collapsed":
for(var _tailNode = renderState.tail, _lastTailNode = null; null !== _tailNode;)null !== _tailNode.alternate && (_lastTailNode = _tailNode), _tailNode = _tailNode.sibling;
null === _lastTailNode ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : _lastTailNode.sibling = null;
break;
}
}
function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
switch(workInProgress.tag){
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return null;
case 1:
return isContextProvider(workInProgress.type) && popContext(workInProgress), null;
case 3:
popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), resetWorkInProgressVersions();
var fiberRoot = workInProgress.stateNode;
return fiberRoot.pendingContext && (fiberRoot.context = fiberRoot.pendingContext, fiberRoot.pendingContext = null), (null === current || null === current.child) && (popHydrationState(workInProgress) ? markUpdate(workInProgress) : fiberRoot.hydrate || (workInProgress.flags |= 256)), updateHostContainer(workInProgress), null;
case 5:
popHostContext(workInProgress);
var rootContainerInstance = getRootHostContainer(), type11 = workInProgress.type;
if (null !== current && null != workInProgress.stateNode) updateHostComponent$1(current, workInProgress, type11, newProps, rootContainerInstance), current.ref !== workInProgress.ref && markRef$1(workInProgress);
else {
if (!newProps) {
if (!(null !== workInProgress.stateNode)) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
return null;
}
var currentHostContext = getHostContext();
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext1 = currentHostContext, instance = fiber.stateNode, type9 = fiber.type, props7 = fiber.memoizedProps, hostContext2 = hostContext1, internalInstanceHandle1 = fiber, precacheFiberNode(internalInstanceHandle1, instance), updateFiberProps(instance, props7), updatePayload1 = (function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
switch(suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING], isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), tag){
case "dialog":
listenToNonDelegatedEvent("cancel", domElement), listenToNonDelegatedEvent("close", domElement);
break;
case "iframe":
case "object":
case "embed":
listenToNonDelegatedEvent("load", domElement);
break;
case "video":
case "audio":
for(var isCustomComponentTag, extraAttributeNames, i = 0; i < mediaEventTypes.length; i++)listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
break;
case "source":
listenToNonDelegatedEvent("error", domElement);
break;
case "img":
case "image":
case "link":
listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement);
break;
case "details":
listenToNonDelegatedEvent("toggle", domElement);
break;
case "input":
initWrapperState(domElement, rawProps), listenToNonDelegatedEvent("invalid", domElement);
break;
case "option":
validateProps(domElement, rawProps);
break;
case "select":
initWrapperState$1(domElement, rawProps), listenToNonDelegatedEvent("invalid", domElement);
break;
case "textarea":
initWrapperState$2(domElement, rawProps), listenToNonDelegatedEvent("invalid", domElement);
break;
}
assertValidProps(tag, rawProps), extraAttributeNames = new Set();
for(var attributes = domElement.attributes, _i = 0; _i < attributes.length; _i++){
var name = attributes[_i].name.toLowerCase();
switch(name){
case "data-reactroot":
break;
case "value":
break;
case "checked":
break;
case "selected":
break;
default:
extraAttributeNames.add(attributes[_i].name);
}
}
var updatePayload = null;
for(var propKey in rawProps)if (rawProps.hasOwnProperty(propKey)) {
var nextProp = rawProps[propKey];
if (propKey === CHILDREN) "string" == typeof nextProp ? domElement.textContent !== nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), updatePayload = [
CHILDREN,
nextProp
]) : "number" == typeof nextProp && domElement.textContent !== "" + nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), updatePayload = [
CHILDREN,
"" + nextProp
]);
else if (registrationNameDependencies1.hasOwnProperty(propKey)) null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement));
else if ("boolean" == typeof isCustomComponentTag) {
var serverValue = void 0, propertyInfo = getPropertyInfo(propKey);
if (suppressHydrationWarning) ;
else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || "value" === propKey || "checked" === propKey || "selected" === propKey) ;
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var serverHTML = domElement.innerHTML, nextHtml = nextProp ? nextProp[HTML$1] : void 0;
if (null != nextHtml) {
var expectedHTML = normalizeHTML(domElement, nextHtml);
expectedHTML !== serverHTML && warnForPropDifference(propKey, serverHTML, expectedHTML);
}
} else if (propKey === STYLE) {
if (extraAttributeNames.delete(propKey), canDiffStyleForHydrationWarning) {
var expectedStyle = createDangerousStringForStyles(nextProp);
expectedStyle !== (serverValue = domElement.getAttribute("style")) && warnForPropDifference(propKey, serverValue, expectedStyle);
}
} else if (isCustomComponentTag) extraAttributeNames.delete(propKey.toLowerCase()), serverValue = getValueForAttribute(domElement, propKey, nextProp), nextProp !== serverValue && warnForPropDifference(propKey, serverValue, nextProp);
else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
var isMismatchDueToBadCasing = !1;
if (null !== propertyInfo) extraAttributeNames.delete(propertyInfo.attributeName), serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
else {
var ownNamespace = parentNamespace;
if (ownNamespace === HTML_NAMESPACE$1 && (ownNamespace = getIntrinsicNamespace(tag)), ownNamespace === HTML_NAMESPACE$1) extraAttributeNames.delete(propKey.toLowerCase());
else {
var standardName = getPossibleStandardName(propKey);
null !== standardName && standardName !== propKey && (isMismatchDueToBadCasing = !0, extraAttributeNames.delete(standardName)), extraAttributeNames.delete(propKey);
}
serverValue = getValueForAttribute(domElement, propKey, nextProp);
}
nextProp === serverValue || isMismatchDueToBadCasing || warnForPropDifference(propKey, serverValue, nextProp);
}
}
}
switch(extraAttributeNames.size > 0 && !suppressHydrationWarning && warnForExtraAttributes(extraAttributeNames), tag){
case "input":
track(domElement), postMountWrapper(domElement, rawProps, !0);
break;
case "textarea":
track(domElement), postMountWrapper$3(domElement);
break;
case "select":
case "option":
break;
default:
"function" == typeof rawProps.onClick && trapClickOnNonInteractiveElement(domElement);
break;
}
return updatePayload;
})(instance, type9, props7, hostContext2.namespace), fiber.updateQueue = updatePayload1, null !== updatePayload1 && markUpdate(workInProgress);
else {
var type8, props9, rootContainerInstance1, hostContext, internalInstanceHandle, hostContextDev, domElement1, fiber, hostContext1, instance, type9, props7, hostContext2, internalInstanceHandle1, updatePayload1, type10, props8, instance7 = (type8 = type11, props9 = newProps, rootContainerInstance1 = rootContainerInstance, hostContext = currentHostContext, internalInstanceHandle = workInProgress, validateDOMNesting(type8, null, (hostContextDev = hostContext).ancestorInfo), ("string" == typeof props9.children || "number" == typeof props9.children) && validateDOMNesting(null, "" + props9.children, updatedAncestorInfo(hostContextDev.ancestorInfo, type8)), precacheFiberNode(internalInstanceHandle, domElement1 = function(type, props, rootContainerElement, parentNamespace) {
var isCustomComponentTag, domElement, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), namespaceURI = parentNamespace;
if (namespaceURI === HTML_NAMESPACE$1 && (namespaceURI = getIntrinsicNamespace(type)), namespaceURI === HTML_NAMESPACE$1) {
if ((isCustomComponentTag = isCustomComponent(type, props)) || type === type.toLowerCase() || error1("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", type), "script" === type) {
var div = ownerDocument.createElement("div");
div.innerHTML = "<script></script>";
var firstChild = div.firstChild;
domElement = div.removeChild(firstChild);
} else if ("string" == typeof props.is) domElement = ownerDocument.createElement(type, {
is: props.is
});
else if (domElement = ownerDocument.createElement(type), "select" === type) {
var node = domElement;
props.multiple ? node.multiple = !0 : props.size && (node.size = props.size);
}
} else domElement = ownerDocument.createElementNS(namespaceURI, type);
return namespaceURI !== HTML_NAMESPACE$1 || isCustomComponentTag || "[object HTMLUnknownElement]" !== Object.prototype.toString.call(domElement) || Object.prototype.hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, error1("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", type)), domElement;
}(type8, props9, rootContainerInstance1, hostContextDev.namespace)), updateFiberProps(domElement1, props9), domElement1);
appendAllChildren(instance7, workInProgress, !1, !1), workInProgress.stateNode = instance7, (function(domElement3, tag1, rawProps, rootContainerElement) {
var element, props, element1, props12, node, value, props13, isCustomComponentTag1 = isCustomComponent(tag1, rawProps);
switch(validatePropertiesInDevelopment(tag1, rawProps), tag1){
case "dialog":
listenToNonDelegatedEvent("cancel", domElement3), listenToNonDelegatedEvent("close", domElement3), props13 = rawProps;
break;
case "iframe":
case "object":
case "embed":
listenToNonDelegatedEvent("load", domElement3), props13 = rawProps;
break;
case "video":
case "audio":
for(var i = 0; i < mediaEventTypes.length; i++)listenToNonDelegatedEvent(mediaEventTypes[i], domElement3);
props13 = rawProps;
break;
case "source":
listenToNonDelegatedEvent("error", domElement3), props13 = rawProps;
break;
case "img":
case "image":
case "link":
listenToNonDelegatedEvent("error", domElement3), listenToNonDelegatedEvent("load", domElement3), props13 = rawProps;
break;
case "details":
listenToNonDelegatedEvent("toggle", domElement3), props13 = rawProps;
break;
case "input":
initWrapperState(domElement3, rawProps), props13 = getHostProps(domElement3, rawProps), listenToNonDelegatedEvent("invalid", domElement3);
break;
case "option":
validateProps(domElement3, rawProps), props13 = getHostProps$1(domElement3, rawProps);
break;
case "select":
initWrapperState$1(domElement3, rawProps), props13 = getHostProps$2(domElement3, rawProps), listenToNonDelegatedEvent("invalid", domElement3);
break;
case "textarea":
initWrapperState$2(domElement3, rawProps), props13 = getHostProps$3(domElement3, rawProps), listenToNonDelegatedEvent("invalid", domElement3);
break;
default:
props13 = rawProps;
}
switch(assertValidProps(tag1, props13), (function(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
for(var propKey in nextProps)if (nextProps.hasOwnProperty(propKey)) {
var nextProp = nextProps[propKey];
if (propKey === STYLE) nextProp && Object.freeze(nextProp), setValueForStyles(domElement, nextProp);
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var nextHtml = nextProp ? nextProp[HTML$1] : void 0;
null != nextHtml && setInnerHTML(domElement, nextHtml);
} else propKey === CHILDREN ? "string" == typeof nextProp ? ("textarea" !== tag || "" !== nextProp) && setTextContent(domElement, nextProp) : "number" == typeof nextProp && setTextContent(domElement, "" + nextProp) : propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || propKey === AUTOFOCUS || (registrationNameDependencies1.hasOwnProperty(propKey) ? null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)) : null != nextProp && setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag));
}
})(tag1, domElement3, rootContainerElement, props13, isCustomComponentTag1), tag1){
case "input":
track(domElement3), postMountWrapper(domElement3, rawProps, !1);
break;
case "textarea":
track(domElement3), postMountWrapper$3(domElement3);
break;
case "option":
element = domElement3, null != (props = rawProps).value && element.setAttribute("value", toString(getToStringValue(props.value)));
break;
case "select":
element1 = domElement3, props12 = rawProps, (node = element1).multiple = !!props12.multiple, null != (value = props12.value) ? updateOptions(node, !!props12.multiple, value, !1) : null != props12.defaultValue && updateOptions(node, !!props12.multiple, props12.defaultValue, !0);
break;
default:
"function" == typeof props13.onClick && trapClickOnNonInteractiveElement(domElement3);
break;
}
})(instance7, type10 = type11, props8 = newProps, rootContainerInstance), shouldAutoFocusHostComponent(type10, props8) && markUpdate(workInProgress);
}
null !== workInProgress.ref && markRef$1(workInProgress);
}
return null;
case 6:
var newText = newProps;
if (current && null != workInProgress.stateNode) {
var oldText = current.memoizedProps;
updateHostText$1(current, workInProgress, oldText, newText);
} else {
if ("string" != typeof newText && !(null !== workInProgress.stateNode)) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
var text4, rootContainerInstance2, hostContext3, internalInstanceHandle2, text1, textNode1, _rootContainerInstance = getRootHostContainer(), _currentHostContext = getHostContext();
popHydrationState(workInProgress) ? (function(fiber) {
var textInstance, text, textNode, text2, textInstance1 = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = (textInstance = textInstance1, text = textContent, precacheFiberNode(fiber, textInstance), textNode = textInstance, text2 = text, textNode.nodeValue !== text2);
if (shouldUpdate) {
var returnFiber = hydrationParentFiber;
if (null !== returnFiber) switch(returnFiber.tag){
case 3:
returnFiber.stateNode.containerInfo, warnForUnmatchedText(textInstance1, textContent);
break;
case 5:
var parentProps, textInstance2, text3, parentType = returnFiber.type, parentProps3 = returnFiber.memoizedProps;
returnFiber.stateNode, parentProps = parentProps3, textInstance2 = textInstance1, text3 = textContent, !0 !== parentProps[SUPPRESS_HYDRATION_WARNING$1] && warnForUnmatchedText(textInstance2, text3);
break;
}
}
return shouldUpdate;
})(workInProgress) && markUpdate(workInProgress) : workInProgress.stateNode = (text4 = newText, rootContainerInstance2 = _rootContainerInstance, hostContext3 = _currentHostContext, internalInstanceHandle2 = workInProgress, validateDOMNesting(null, text4, hostContext3.ancestorInfo), precacheFiberNode(internalInstanceHandle2, textNode1 = (text1 = text4, getOwnerDocumentFromRootContainer(rootContainerInstance2).createTextNode(text1))), textNode1);
}
return null;
case 13:
popSuspenseContext(workInProgress);
var nextState = workInProgress.memoizedState;
if ((workInProgress.flags & DidCapture) !== NoFlags) return workInProgress.lanes = renderLanes, (8 & workInProgress.mode) != 0 && transferActualDuration(workInProgress), workInProgress;
var nextDidTimeout = null !== nextState, prevDidTimeout = !1;
return null === current ? void 0 !== workInProgress.memoizedProps.fallback && popHydrationState(workInProgress) : prevDidTimeout = null !== current.memoizedState, nextDidTimeout && !prevDidTimeout && (2 & workInProgress.mode) != 0 && (null === current && !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback || hasSuspenseContext(suspenseStackCursor.current, 1) ? renderDidSuspend() : renderDidSuspendDelayIfPossible()), (nextDidTimeout || prevDidTimeout) && (workInProgress.flags |= Update), null;
case 4:
return popHostContainer(workInProgress), updateHostContainer(workInProgress), null === current && listenToAllSupportedEvents(workInProgress.stateNode.containerInfo), null;
case 10:
return popProvider(workInProgress), null;
case 17:
return isContextProvider(workInProgress.type) && popContext(workInProgress), null;
case 19:
popSuspenseContext(workInProgress);
var renderState = workInProgress.memoizedState;
if (null === renderState) return null;
var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags, renderedTail = renderState.rendering;
if (null === renderedTail) if (didSuspendAlready) cutOffTailIfNeeded(renderState, !1);
else {
if (!(renderHasNotSuspendedYet() && (null === current || (current.flags & DidCapture) === NoFlags))) for(var row = workInProgress.child; null !== row;){
var suspended = findFirstSuspended(row);
if (null !== suspended) {
didSuspendAlready = !0, workInProgress.flags |= DidCapture, cutOffTailIfNeeded(renderState, !1);
var newThennables = suspended.updateQueue;
return null !== newThennables && (workInProgress.updateQueue = newThennables, workInProgress.flags |= Update), null === renderState.lastEffect && (workInProgress.firstEffect = null), workInProgress.lastEffect = renderState.lastEffect, resetChildFibers(workInProgress, renderLanes), pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, 2)), workInProgress.child;
}
row = row.sibling;
}
null !== renderState.tail && now() > getRenderTargetTime() && (workInProgress.flags |= DidCapture, didSuspendAlready = !0, cutOffTailIfNeeded(renderState, !1), workInProgress.lanes = 33554432, markSpawnedWork(33554432));
}
else {
if (!didSuspendAlready) {
var _suspended = findFirstSuspended(renderedTail);
if (null !== _suspended) {
workInProgress.flags |= DidCapture, didSuspendAlready = !0;
var _newThennables = _suspended.updateQueue;
if (null !== _newThennables && (workInProgress.updateQueue = _newThennables, workInProgress.flags |= Update), cutOffTailIfNeeded(renderState, !0), null === renderState.tail && "hidden" === renderState.tailMode && !renderedTail.alternate && !getIsHydrating()) {
var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
return null !== lastEffect && (lastEffect.nextEffect = null), null;
}
} else 2 * now() - renderState.renderingStartTime > getRenderTargetTime() && 1073741824 !== renderLanes && (workInProgress.flags |= DidCapture, didSuspendAlready = !0, cutOffTailIfNeeded(renderState, !1), workInProgress.lanes = 33554432, markSpawnedWork(33554432));
}
if (renderState.isBackwards) renderedTail.sibling = workInProgress.child, workInProgress.child = renderedTail;
else {
var previousSibling = renderState.last;
null !== previousSibling ? previousSibling.sibling = renderedTail : workInProgress.child = renderedTail, renderState.last = renderedTail;
}
}
if (null !== renderState.tail) {
var next = renderState.tail;
renderState.rendering = next, renderState.tail = next.sibling, renderState.lastEffect = workInProgress.lastEffect, renderState.renderingStartTime = now(), next.sibling = null;
var suspenseContext = suspenseStackCursor.current;
return pushSuspenseContext(workInProgress, suspenseContext = didSuspendAlready ? setShallowSuspenseContext(suspenseContext, 2) : setDefaultShallowSuspenseContext(suspenseContext)), next;
}
return null;
case 20:
break;
case 21:
break;
case 22:
break;
case 23:
case 24:
if (popRenderLanes(workInProgress), null !== current) {
var _nextState = workInProgress.memoizedState;
null !== current.memoizedState != (null !== _nextState) && "unstable-defer-without-hiding" !== newProps.mode && (workInProgress.flags |= Update);
}
return null;
}
throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue.");
}
function unwindWork(workInProgress, renderLanes) {
switch(workInProgress.tag){
case 1:
isContextProvider(workInProgress.type) && popContext(workInProgress);
var flags = workInProgress.flags;
if (4096 & flags) return workInProgress.flags = -4097 & flags | DidCapture, (8 & workInProgress.mode) != 0 && transferActualDuration(workInProgress), workInProgress;
return null;
case 3:
popHostContainer(workInProgress), popTopLevelContextObject(workInProgress), resetWorkInProgressVersions();
var _flags = workInProgress.flags;
if ((_flags & DidCapture) !== NoFlags) throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");
return workInProgress.flags = -4097 & _flags | DidCapture, workInProgress;
case 5:
return popHostContext(workInProgress), null;
case 13:
popSuspenseContext(workInProgress);
var _flags2 = workInProgress.flags;
if (4096 & _flags2) return workInProgress.flags = -4097 & _flags2 | DidCapture, (8 & workInProgress.mode) != 0 && transferActualDuration(workInProgress), workInProgress;
return null;
case 19:
return popSuspenseContext(workInProgress), null;
case 4:
return popHostContainer(workInProgress), null;
case 10:
return popProvider(workInProgress), null;
case 23:
case 24:
return popRenderLanes(workInProgress), null;
default:
return null;
}
}
function unwindInterruptedWork(interruptedWork) {
switch(interruptedWork.tag){
case 1:
null != interruptedWork.type.childContextTypes && popContext(interruptedWork);
break;
case 3:
popHostContainer(interruptedWork), popTopLevelContextObject(interruptedWork), resetWorkInProgressVersions();
break;
case 5:
popHostContext(interruptedWork);
break;
case 4:
popHostContainer(interruptedWork);
break;
case 13:
popSuspenseContext(interruptedWork);
break;
case 19:
popSuspenseContext(interruptedWork);
break;
case 10:
popProvider(interruptedWork);
break;
case 23:
case 24:
popRenderLanes(interruptedWork);
break;
}
}
function createCapturedValue(value, source) {
return {
value: value,
source: source,
stack: getStackByFiberInDevAndProd(source)
};
}
function logCapturedError(boundary, errorInfo) {
try {
var logError = !0;
if (!1 === logError) return;
var errorBoundaryMessage, error = errorInfo.value, source = errorInfo.source, stack = errorInfo.stack, componentStack = null !== stack ? stack : "";
if (null != error && error._suppressLogging) {
if (1 === boundary.tag) return;
console.error(error);
}
var componentName = source ? getComponentName(source.type) : null, componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:", errorBoundaryName = getComponentName(boundary.type);
errorBoundaryMessage = errorBoundaryName ? "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".") : "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.";
var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage);
console.error(combinedMessage);
} catch (e) {
setTimeout(function() {
throw e;
});
}
}
appendAllChildren = function(parent, workInProgress, needsVisibilityToggle, isHidden) {
for(var node = workInProgress.child; null !== node;){
if (5 === node.tag || 6 === node.tag) appendInitialChild(parent, node.stateNode);
else if (4 === node.tag) ;
else if (null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === workInProgress) return;
for(; null === node.sibling;){
if (null === node.return || node.return === workInProgress) return;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
}, updateHostContainer = function(workInProgress) {}, updateHostComponent$1 = function(current, workInProgress, type, newProps, rootContainerInstance) {
var oldProps = current.memoizedProps;
if (oldProps !== newProps) {
var domElement4, type12, oldProps1, newProps3, hostContext, updatePayload3 = (domElement4 = workInProgress.stateNode, type12 = type, oldProps1 = oldProps, newProps3 = newProps, hostContext = getHostContext(), typeof newProps3.children != typeof oldProps1.children && ("string" == typeof newProps3.children || "number" == typeof newProps3.children) && validateDOMNesting(null, "" + newProps3.children, updatedAncestorInfo(hostContext.ancestorInfo, type12)), function(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
validatePropertiesInDevelopment(tag, nextRawProps);
var lastProps, nextProps, propKey, styleName, updatePayload = null;
switch(tag){
case "input":
lastProps = getHostProps(domElement, lastRawProps), nextProps = getHostProps(domElement, nextRawProps), updatePayload = [];
break;
case "option":
lastProps = getHostProps$1(domElement, lastRawProps), nextProps = getHostProps$1(domElement, nextRawProps), updatePayload = [];
break;
case "select":
lastProps = getHostProps$2(domElement, lastRawProps), nextProps = getHostProps$2(domElement, nextRawProps), updatePayload = [];
break;
case "textarea":
lastProps = getHostProps$3(domElement, lastRawProps), nextProps = getHostProps$3(domElement, nextRawProps), updatePayload = [];
break;
default:
lastProps = lastRawProps, nextProps = nextRawProps, "function" != typeof lastProps.onClick && "function" == typeof nextProps.onClick && trapClickOnNonInteractiveElement(domElement);
break;
}
assertValidProps(tag, nextProps);
var styleUpdates1 = null;
for(propKey in lastProps)if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if (propKey === STYLE) {
var lastStyle = lastProps[propKey];
for(styleName in lastStyle)lastStyle.hasOwnProperty(styleName) && (styleUpdates1 || (styleUpdates1 = {}), styleUpdates1[styleName] = "");
} else propKey !== DANGEROUSLY_SET_INNER_HTML && propKey !== CHILDREN && propKey !== SUPPRESS_CONTENT_EDITABLE_WARNING && propKey !== SUPPRESS_HYDRATION_WARNING && propKey !== AUTOFOCUS && (registrationNameDependencies1.hasOwnProperty(propKey) ? updatePayload || (updatePayload = []) : (updatePayload = updatePayload || []).push(propKey, null));
for(propKey in nextProps){
var nextProp = nextProps[propKey], lastProp = null != lastProps ? lastProps[propKey] : void 0;
if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if (propKey === STYLE) if (nextProp && Object.freeze(nextProp), lastProp) {
for(styleName in lastProp)!lastProp.hasOwnProperty(styleName) || nextProp && nextProp.hasOwnProperty(styleName) || (styleUpdates1 || (styleUpdates1 = {}), styleUpdates1[styleName] = "");
for(styleName in nextProp)nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName] && (styleUpdates1 || (styleUpdates1 = {}), styleUpdates1[styleName] = nextProp[styleName]);
} else styleUpdates1 || (updatePayload || (updatePayload = []), updatePayload.push(propKey, styleUpdates1)), styleUpdates1 = nextProp;
else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
var nextHtml = nextProp ? nextProp[HTML$1] : void 0, lastHtml = lastProp ? lastProp[HTML$1] : void 0;
null != nextHtml && lastHtml !== nextHtml && (updatePayload = updatePayload || []).push(propKey, nextHtml);
} else propKey === CHILDREN ? ("string" == typeof nextProp || "number" == typeof nextProp) && (updatePayload = updatePayload || []).push(propKey, "" + nextProp) : propKey !== SUPPRESS_CONTENT_EDITABLE_WARNING && propKey !== SUPPRESS_HYDRATION_WARNING && (registrationNameDependencies1.hasOwnProperty(propKey) ? (null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), "onScroll" === propKey && listenToNonDelegatedEvent("scroll", domElement)), updatePayload || lastProp === nextProp || (updatePayload = [])) : "object" == typeof nextProp && null !== nextProp && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE ? nextProp.toString() : (updatePayload = updatePayload || []).push(propKey, nextProp));
}
return styleUpdates1 && ((function(styleUpdates, nextStyles) {
if (nextStyles) {
var expandedUpdates = expandShorthandMap(styleUpdates), expandedStyles = expandShorthandMap(nextStyles), warnedAbout = {};
for(var key in expandedUpdates){
var originalKey = expandedUpdates[key], correctOriginalKey = expandedStyles[key];
if (correctOriginalKey && originalKey !== correctOriginalKey) {
var warningKey = originalKey + "," + correctOriginalKey;
if (warnedAbout[warningKey]) continue;
warnedAbout[warningKey] = !0, error1("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", isValueEmpty(styleUpdates[originalKey]) ? "Removing" : "Updating", originalKey, correctOriginalKey);
}
}
}
})(styleUpdates1, nextProps[STYLE]), (updatePayload = updatePayload || []).push(STYLE, styleUpdates1)), updatePayload;
}(domElement4, type12, oldProps1, newProps3));
workInProgress.updateQueue = updatePayload3, updatePayload3 && markUpdate(workInProgress);
}
}, updateHostText$1 = function(current, workInProgress, oldText, newText) {
oldText !== newText && markUpdate(workInProgress);
};
var PossiblyWeakMap$1 = "function" == typeof WeakMap ? WeakMap : Map;
function createRootErrorUpdate(fiber, errorInfo, lane) {
var update = createUpdate(-1, lane);
update.tag = 3, update.payload = {
element: null
};
var error = errorInfo.value;
return update.callback = function() {
onUncaughtError(error), logCapturedError(fiber, errorInfo);
}, update;
}
function createClassErrorUpdate(fiber, errorInfo, lane) {
var update = createUpdate(-1, lane);
update.tag = 3;
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
if ("function" == typeof getDerivedStateFromError) {
var error$1 = errorInfo.value;
update.payload = function() {
return logCapturedError(fiber, errorInfo), getDerivedStateFromError(error$1);
};
}
var inst = fiber.stateNode;
return null !== inst && "function" == typeof inst.componentDidCatch ? update.callback = function() {
markFailedErrorBoundaryForHotReloading(fiber), "function" != typeof getDerivedStateFromError && (markLegacyErrorBoundaryAsFailed(this), logCapturedError(fiber, errorInfo));
var error$1 = errorInfo.value, stack = errorInfo.stack;
this.componentDidCatch(error$1, {
componentStack: null !== stack ? stack : ""
}), "function" == typeof getDerivedStateFromError || includesSomeLane(fiber.lanes, SyncLane) || error1("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentName(fiber.type) || "Unknown");
} : update.callback = function() {
markFailedErrorBoundaryForHotReloading(fiber);
}, update;
}
function attachPingListener(root, wakeable, lanes) {
var threadIDs, pingCache = root.pingCache;
if (null === pingCache ? (pingCache = root.pingCache = new PossiblyWeakMap$1(), threadIDs = new Set(), pingCache.set(wakeable, threadIDs)) : void 0 === (threadIDs = pingCache.get(wakeable)) && (threadIDs = new Set(), pingCache.set(wakeable, threadIDs)), !threadIDs.has(lanes)) {
threadIDs.add(lanes);
var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);
wakeable.then(ping, ping);
}
}
function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
if (sourceFiber.flags |= 2048, sourceFiber.firstEffect = sourceFiber.lastEffect = null, null !== value && "object" == typeof value && "function" == typeof value.then) {
var wakeable = value;
if ((2 & sourceFiber.mode) == 0) {
var currentSource = sourceFiber.alternate;
currentSource ? (sourceFiber.updateQueue = currentSource.updateQueue, sourceFiber.memoizedState = currentSource.memoizedState, sourceFiber.lanes = currentSource.lanes) : (sourceFiber.updateQueue = null, sourceFiber.memoizedState = null);
}
var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, 1), _workInProgress = returnFiber;
do {
if (13 === _workInProgress.tag && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
var wakeables = _workInProgress.updateQueue;
if (null === wakeables) {
var updateQueue = new Set();
updateQueue.add(wakeable), _workInProgress.updateQueue = updateQueue;
} else wakeables.add(wakeable);
if ((2 & _workInProgress.mode) == 0) {
if (_workInProgress.flags |= DidCapture, sourceFiber.flags |= 16384, sourceFiber.flags &= -2981, 1 === sourceFiber.tag) if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var update = createUpdate(-1, SyncLane);
update.tag = 2, enqueueUpdate(sourceFiber, update);
}
sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);
return;
}
attachPingListener(root, wakeable, rootRenderLanes), _workInProgress.flags |= 4096, _workInProgress.lanes = rootRenderLanes;
return;
}
_workInProgress = _workInProgress.return;
}while (null !== _workInProgress)
value = new Error((getComponentName(sourceFiber.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.");
}
renderDidError(), value = createCapturedValue(value, sourceFiber);
var workInProgress = returnFiber;
do {
switch(workInProgress.tag){
case 3:
var _errorInfo = value;
workInProgress.flags |= 4096;
var lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);
var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
enqueueCapturedUpdate(workInProgress, _update);
return;
case 1:
var errorInfo = value, ctor = workInProgress.type, instance = workInProgress.stateNode;
if ((workInProgress.flags & DidCapture) === NoFlags && ("function" == typeof ctor.getDerivedStateFromError || null !== instance && "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance))) {
workInProgress.flags |= 4096;
var _lane = pickArbitraryLane(rootRenderLanes);
workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane);
var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);
enqueueCapturedUpdate(workInProgress, _update2);
return;
}
break;
}
workInProgress = workInProgress.return;
}while (null !== workInProgress)
}
var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
var PossiblyWeakSet = "function" == typeof WeakSet ? WeakSet : Set, callComponentWillUnmountWithTimer = function(current, instance) {
instance.props = current.memoizedProps, instance.state = current.memoizedState, instance.componentWillUnmount();
};
function safelyDetachRef(current) {
var ref = current.ref;
null !== ref && ("function" == typeof ref ? (invokeGuardedCallback(null, ref, null, null), hasCaughtError() && captureCommitPhaseError(current, clearCaughtError())) : ref.current = null);
}
function safelyCallDestroy(current, destroy) {
invokeGuardedCallback(null, destroy, null), hasCaughtError() && captureCommitPhaseError(current, clearCaughtError());
}
function commitBeforeMutationLifeCycles(current, finishedWork) {
switch(finishedWork.tag){
case 0:
case 11:
case 15:
case 22:
return;
case 1:
if (256 & finishedWork.flags && null !== current) {
var prevProps = current.memoizedProps, prevState = current.memoizedState, instance = finishedWork.stateNode;
finishedWork.type !== finishedWork.elementType || didWarnAboutReassigningProps || (instance.props !== finishedWork.memoizedProps && error1("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentName(finishedWork.type) || "instance"), instance.state !== finishedWork.memoizedState && error1("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentName(finishedWork.type) || "instance"));
var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState), didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
void 0 !== snapshot || didWarnSet.has(finishedWork.type) || (didWarnSet.add(finishedWork.type), error1("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentName(finishedWork.type))), instance.__reactInternalSnapshotBeforeUpdate = snapshot;
}
return;
case 3:
256 & finishedWork.flags && clearContainer(finishedWork.stateNode.containerInfo);
return;
case 5:
case 6:
case 4:
case 17:
return;
}
throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
}
function commitLifeCycles(finishedRoot, current, finishedWork1, committedLanes) {
switch(finishedWork1.tag){
case 0:
case 11:
case 15:
case 22:
!function(tag, finishedWork) {
var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;
if (null !== lastEffect) {
var firstEffect = lastEffect.next, effect = firstEffect;
do {
if ((effect.tag & tag) === tag) {
var create = effect.create;
effect.destroy = create();
var destroy = effect.destroy;
void 0 !== destroy && "function" != typeof destroy && error1("An effect function must not return anything besides a function, which is used for clean-up.%s", null === destroy ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : "function" == typeof destroy.then ? "\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\nuseEffect(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching" : " You returned: " + destroy);
}
effect = effect.next;
}while (effect !== firstEffect)
}
}(3, finishedWork1), (function(finishedWork) {
var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;
if (null !== lastEffect) {
var firstEffect = lastEffect.next, effect = firstEffect;
do {
var _effect = effect, next = _effect.next, tag = _effect.tag;
(4 & tag) != 0 && (1 & tag) != 0 && (enqueuePendingPassiveHookEffectUnmount(finishedWork, effect), enqueuePendingPassiveHookEffectMount(finishedWork, effect)), effect = next;
}while (effect !== firstEffect)
}
})(finishedWork1);
return;
case 1:
var instance = finishedWork1.stateNode;
if (finishedWork1.flags & Update) if (null === current) finishedWork1.type !== finishedWork1.elementType || didWarnAboutReassigningProps || (instance.props !== finishedWork1.memoizedProps && error1("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentName(finishedWork1.type) || "instance"), instance.state !== finishedWork1.memoizedState && error1("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentName(finishedWork1.type) || "instance")), instance.componentDidMount();
else {
var prevProps = finishedWork1.elementType === finishedWork1.type ? current.memoizedProps : resolveDefaultProps(finishedWork1.type, current.memoizedProps), prevState = current.memoizedState;
finishedWork1.type !== finishedWork1.elementType || didWarnAboutReassigningProps || (instance.props !== finishedWork1.memoizedProps && error1("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentName(finishedWork1.type) || "instance"), instance.state !== finishedWork1.memoizedState && error1("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentName(finishedWork1.type) || "instance")), instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
}
var updateQueue1 = finishedWork1.updateQueue;
null !== updateQueue1 && (finishedWork1.type !== finishedWork1.elementType || didWarnAboutReassigningProps || (instance.props !== finishedWork1.memoizedProps && error1("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentName(finishedWork1.type) || "instance"), instance.state !== finishedWork1.memoizedState && error1("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentName(finishedWork1.type) || "instance")), commitUpdateQueue(finishedWork1, updateQueue1, instance));
return;
case 3:
var _updateQueue = finishedWork1.updateQueue;
if (null !== _updateQueue) {
var _instance = null;
if (null !== finishedWork1.child) switch(finishedWork1.child.tag){
case 5:
_instance = getPublicInstance(finishedWork1.child.stateNode);
break;
case 1:
_instance = finishedWork1.child.stateNode;
break;
}
commitUpdateQueue(finishedWork1, _updateQueue, _instance);
}
return;
case 5:
var _instance2 = finishedWork1.stateNode;
if (null === current && finishedWork1.flags & Update) {
var domElement, type = finishedWork1.type, props = finishedWork1.memoizedProps;
domElement = _instance2, shouldAutoFocusHostComponent(type, props) && domElement.focus();
}
return;
case 6:
return;
case 4:
return;
case 12:
var _finishedWork$memoize2 = finishedWork1.memoizedProps, onCommit = _finishedWork$memoize2.onCommit, onRender = _finishedWork$memoize2.onRender;
finishedWork1.stateNode.effectDuration;
var commitTime1 = commitTime;
"function" == typeof onRender && onRender(finishedWork1.memoizedProps.id, null === current ? "mount" : "update", finishedWork1.actualDuration, finishedWork1.treeBaseDuration, finishedWork1.actualStartTime, commitTime1, finishedRoot.memoizedInteractions);
return;
case 13:
commitSuspenseHydrationCallbacks(finishedRoot, finishedWork1);
return;
case 19:
case 17:
case 20:
case 21:
case 23:
case 24:
return;
}
throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
}
function hideOrUnhideAllChildren(finishedWork, isHidden) {
for(var node = finishedWork;;){
if (5 === node.tag) {
var instance = node.stateNode;
isHidden ? hideInstance(instance) : unhideInstance(node.stateNode, node.memoizedProps);
} else if (6 === node.tag) {
var _instance3 = node.stateNode;
isHidden ? hideTextInstance(_instance3) : unhideTextInstance(_instance3, node.memoizedProps);
} else if ((23 === node.tag || 24 === node.tag) && null !== node.memoizedState && node !== finishedWork) ;
else if (null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === finishedWork) return;
for(; null === node.sibling;){
if (null === node.return || node.return === finishedWork) return;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
}
function commitAttachRef(finishedWork) {
var ref = finishedWork.ref;
if (null !== ref) {
var instanceToUse, instance = finishedWork.stateNode;
switch(finishedWork.tag){
case 5:
instanceToUse = getPublicInstance(instance);
break;
default:
instanceToUse = instance;
}
"function" == typeof ref ? ref(instanceToUse) : (ref.hasOwnProperty("current") || error1("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentName(finishedWork.type)), ref.current = instanceToUse);
}
}
function commitDetachRef(current) {
var currentRef = current.ref;
null !== currentRef && ("function" == typeof currentRef ? currentRef(null) : currentRef.current = null);
}
function commitUnmount(finishedRoot, current, renderPriorityLevel) {
switch(!function(fiber) {
if (injectedHook && "function" == typeof injectedHook.onCommitFiberUnmount) try {
injectedHook.onCommitFiberUnmount(rendererID, fiber);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, error1("React instrumentation encountered an error: %s", err));
}
}(current), current.tag){
case 0:
case 11:
case 14:
case 15:
case 22:
var updateQueue = current.updateQueue;
if (null !== updateQueue) {
var lastEffect = updateQueue.lastEffect;
if (null !== lastEffect) {
var firstEffect = lastEffect.next, effect = firstEffect;
do {
var _effect2 = effect, destroy = _effect2.destroy, tag = _effect2.tag;
void 0 !== destroy && ((4 & tag) != 0 ? enqueuePendingPassiveHookEffectUnmount(current, effect) : safelyCallDestroy(current, destroy)), effect = effect.next;
}while (effect !== firstEffect)
}
}
return;
case 1:
safelyDetachRef(current);
var current14, instance = current.stateNode;
"function" != typeof instance.componentWillUnmount || (invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current14 = current, instance), hasCaughtError() && captureCommitPhaseError(current14, clearCaughtError()));
return;
case 5:
safelyDetachRef(current);
return;
case 4:
unmountHostComponents(finishedRoot, current);
return;
case 20:
return;
case 18:
return;
case 21:
return;
}
}
function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
for(var node = root;;){
if (commitUnmount(finishedRoot, node), null !== node.child && 4 !== node.tag) {
node.child.return = node, node = node.child;
continue;
}
if (node === root) return;
for(; null === node.sibling;){
if (null === node.return || node.return === root) return;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
}
function detachFiberMutation(fiber) {
fiber.alternate = null, fiber.child = null, fiber.dependencies = null, fiber.firstEffect = null, fiber.lastEffect = null, fiber.memoizedProps = null, fiber.memoizedState = null, fiber.pendingProps = null, fiber.return = null, fiber.updateQueue = null, fiber._debugOwner = null;
}
function isHostParent(fiber) {
return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;
}
function commitPlacement(finishedWork) {
var parent1, isContainer, parentFiber = function(fiber) {
for(var parent = fiber.return; null !== parent;){
if (isHostParent(parent)) return parent;
parent = parent.return;
}
throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
}(finishedWork), parentStateNode = parentFiber.stateNode;
switch(parentFiber.tag){
case 5:
parent1 = parentStateNode, isContainer = !1;
break;
case 3:
parent1 = parentStateNode.containerInfo, isContainer = !0;
break;
case 4:
parent1 = parentStateNode.containerInfo, isContainer = !0;
break;
case 20:
default:
throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.");
}
16 & parentFiber.flags && (resetTextContent(parent1), parentFiber.flags &= -17);
var before = function(fiber) {
var node = fiber;
siblings: for(;;){
for(; null === node.sibling;){
if (null === node.return || isHostParent(node.return)) return null;
node = node.return;
}
for(node.sibling.return = node.return, node = node.sibling; 5 !== node.tag && 6 !== node.tag && 18 !== node.tag;){
if (node.flags & Placement) continue siblings;
if (null === node.child || 4 === node.tag) continue siblings;
node.child.return = node, node = node.child;
}
if (!(node.flags & Placement)) return node.stateNode;
}
}(finishedWork);
isContainer ? insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent1) : insertOrAppendPlacementNode(finishedWork, before, parent1);
}
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
var tag = node.tag, isHost = 5 === tag || 6 === tag;
if (isHost || enableFundamentalAPI) {
var container, child, beforeChild, container1, child1, parentNode, stateNode = isHost ? node.stateNode : node.stateNode.instance;
before ? (container = parent, child = stateNode, beforeChild = before, 8 === container.nodeType ? container.parentNode.insertBefore(child, beforeChild) : container.insertBefore(child, beforeChild)) : (container1 = parent, child1 = stateNode, 8 === container1.nodeType ? (parentNode = container1.parentNode).insertBefore(child1, container1) : (parentNode = container1).appendChild(child1), null == container1._reactRootContainer && null === parentNode.onclick && trapClickOnNonInteractiveElement(parentNode));
} else if (4 === tag) ;
else {
var child2 = node.child;
if (null !== child2) {
insertOrAppendPlacementNodeIntoContainer(child2, before, parent);
for(var sibling = child2.sibling; null !== sibling;)insertOrAppendPlacementNodeIntoContainer(sibling, before, parent), sibling = sibling.sibling;
}
}
}
function insertOrAppendPlacementNode(node, before, parent) {
var tag = node.tag, isHost = 5 === tag || 6 === tag;
if (isHost || enableFundamentalAPI) {
var stateNode = isHost ? node.stateNode : node.stateNode.instance;
before ? (function(parentInstance, child, beforeChild) {
parentInstance.insertBefore(child, beforeChild);
})(parent, stateNode, before) : (function(parentInstance, child) {
parentInstance.appendChild(child);
})(parent, stateNode);
} else if (4 === tag) ;
else {
var child3 = node.child;
if (null !== child3) {
insertOrAppendPlacementNode(child3, before, parent);
for(var sibling = child3.sibling; null !== sibling;)insertOrAppendPlacementNode(sibling, before, parent), sibling = sibling.sibling;
}
}
}
function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
for(var currentParent, currentParentIsContainer, node = current, currentParentIsValid = !1;;){
if (!currentParentIsValid) {
var parent = node.return;
findParent: for(;;){
if (!(null !== parent)) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");
var parentStateNode = parent.stateNode;
switch(parent.tag){
case 5:
currentParent = parentStateNode, currentParentIsContainer = !1;
break findParent;
case 3:
currentParent = parentStateNode.containerInfo, currentParentIsContainer = !0;
break findParent;
case 4:
currentParent = parentStateNode.containerInfo, currentParentIsContainer = !0;
break findParent;
}
parent = parent.return;
}
currentParentIsValid = !0;
}
if (5 === node.tag || 6 === node.tag) commitNestedUnmounts(finishedRoot, node), currentParentIsContainer ? removeChildFromContainer(currentParent, node.stateNode) : removeChild(currentParent, node.stateNode);
else if (4 === node.tag) {
if (null !== node.child) {
currentParent = node.stateNode.containerInfo, currentParentIsContainer = !0, node.child.return = node, node = node.child;
continue;
}
} else if (commitUnmount(finishedRoot, node), null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === current) return;
for(; null === node.sibling;){
if (null === node.return || node.return === current) return;
4 === (node = node.return).tag && (currentParentIsValid = !1);
}
node.sibling.return = node.return, node = node.sibling;
}
}
function commitDeletion(finishedRoot, current, renderPriorityLevel) {
unmountHostComponents(finishedRoot, current);
var alternate = current.alternate;
detachFiberMutation(current), null !== alternate && detachFiberMutation(alternate);
}
function commitWork(current, finishedWork2) {
switch(finishedWork2.tag){
case 0:
case 11:
case 14:
case 15:
case 22:
!function(tag, finishedWork) {
var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;
if (null !== lastEffect) {
var firstEffect = lastEffect.next, effect = firstEffect;
do {
if ((effect.tag & tag) === tag) {
var destroy = effect.destroy;
effect.destroy = void 0, void 0 !== destroy && destroy();
}
effect = effect.next;
}while (effect !== firstEffect)
}
}(3, finishedWork2);
return;
case 1:
return;
case 5:
var instance = finishedWork2.stateNode;
if (null != instance) {
var domElement6, updatePayload6, type, oldProps, newProps, newProps4 = finishedWork2.memoizedProps, oldProps2 = null !== current ? current.memoizedProps : newProps4, type13 = finishedWork2.type, updatePayload5 = finishedWork2.updateQueue;
finishedWork2.updateQueue = null, null !== updatePayload5 && (domElement6 = instance, updatePayload6 = updatePayload5, type = type13, oldProps = oldProps2, updateFiberProps(domElement6, newProps = newProps4), (function(domElement8, updatePayload8, tag, lastRawProps, nextRawProps) {
"input" === tag && "radio" === nextRawProps.type && null != nextRawProps.name && updateChecked(domElement8, nextRawProps);
var element, props, node, wasMultiple, value, wasCustomComponentTag = isCustomComponent(tag, lastRawProps), isCustomComponentTag2 = isCustomComponent(tag, nextRawProps);
switch((function(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
for(var i = 0; i < updatePayload.length; i += 2){
var propKey = updatePayload[i], propValue = updatePayload[i + 1];
propKey === STYLE ? setValueForStyles(domElement, propValue) : propKey === DANGEROUSLY_SET_INNER_HTML ? setInnerHTML(domElement, propValue) : propKey === CHILDREN ? setTextContent(domElement, propValue) : setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
}
})(domElement8, updatePayload8, wasCustomComponentTag, isCustomComponentTag2), tag){
case "input":
updateWrapper(domElement8, nextRawProps);
break;
case "textarea":
updateWrapper$1(domElement8, nextRawProps);
break;
case "select":
element = domElement8, props = nextRawProps, wasMultiple = (node = element)._wrapperState.wasMultiple, node._wrapperState.wasMultiple = !!props.multiple, value = props.value, null != value ? updateOptions(node, !!props.multiple, value, !1) : !!props.multiple !== wasMultiple && (null != props.defaultValue ? updateOptions(node, !!props.multiple, props.defaultValue, !0) : updateOptions(node, !!props.multiple, props.multiple ? [] : "", !1));
break;
}
})(domElement6, updatePayload6, type, oldProps, newProps));
}
return;
case 6:
if (!(null !== finishedWork2.stateNode)) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
var textInstance, newText, textInstance3 = finishedWork2.stateNode, newText1 = finishedWork2.memoizedProps;
null !== current && current.memoizedProps, textInstance = textInstance3, newText = newText1, textInstance.nodeValue = newText;
return;
case 3:
var _root = finishedWork2.stateNode;
_root.hydrate && (_root.hydrate = !1, retryIfBlockedOn(_root.containerInfo));
return;
case 12:
return;
case 13:
commitSuspenseComponent(finishedWork2), attachSuspenseRetryListeners(finishedWork2);
return;
case 19:
attachSuspenseRetryListeners(finishedWork2);
return;
case 17:
return;
case 20:
break;
case 21:
break;
case 23:
case 24:
var isHidden = null !== finishedWork2.memoizedState;
hideOrUnhideAllChildren(finishedWork2, isHidden);
return;
}
throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
}
function commitSuspenseComponent(finishedWork) {
null !== finishedWork.memoizedState && (markCommitTimeOfFallback(), hideOrUnhideAllChildren(finishedWork.child, !0));
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (null === finishedWork.memoizedState) {
var current = finishedWork.alternate;
if (null !== current) {
var prevState = current.memoizedState;
if (null !== prevState) {
var suspenseInstance = prevState.dehydrated;
null !== suspenseInstance && retryIfBlockedOn(suspenseInstance);
}
}
}
}
function attachSuspenseRetryListeners(finishedWork) {
var wakeables = finishedWork.updateQueue;
if (null !== wakeables) {
finishedWork.updateQueue = null;
var retryCache = finishedWork.stateNode;
null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()), wakeables.forEach(function(wakeable) {
var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);
retryCache.has(wakeable) || (!0 !== wakeable.__reactDoNotTraceInteractions && (retry = unstable_wrap(retry)), retryCache.add(wakeable), wakeable.then(retry, retry));
});
}
}
function isSuspenseBoundaryBeingHidden(current, finishedWork) {
if (null !== current) {
var oldState = current.memoizedState;
if (null === oldState || null !== oldState.dehydrated) {
var newState = finishedWork.memoizedState;
return null !== newState && null === newState.dehydrated;
}
}
return !1;
}
function commitResetTextContent(current) {
resetTextContent(current.stateNode);
}
if ("function" == typeof Symbol && Symbol.for) {
var symbolFor$1 = Symbol.for;
symbolFor$1("selector.component"), symbolFor$1("selector.has_pseudo_class"), symbolFor$1("selector.role"), symbolFor$1("selector.test_id"), symbolFor$1("selector.text");
}
var commitHooks = [], ceil = Math.ceil, ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing, executionContext = 0, workInProgressRoot = null, workInProgress1 = null, workInProgressRootRenderLanes = NoLanes, subtreeRenderLanes = NoLanes, subtreeRenderLanesCursor = createCursor(NoLanes), workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootIncludedLanes = NoLanes, workInProgressRootSkippedLanes = NoLanes, workInProgressRootUpdatedLanes = NoLanes, workInProgressRootPingedLanes = NoLanes, mostRecentlyUpdatedRoot = null, globalMostRecentFallbackTime = 0, workInProgressRootRenderTargetTime = 1 / 0;
function resetRenderTimer() {
workInProgressRootRenderTargetTime = now() + 500;
}
function getRenderTargetTime() {
return workInProgressRootRenderTargetTime;
}
var nextEffect = null, hasUncaughtError = !1, firstUncaughtError = null, legacyErrorBoundariesThatAlreadyFailed = null, rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsRenderPriority = 90, pendingPassiveEffectsLanes = NoLanes, pendingPassiveHookEffectsMount = [], pendingPassiveHookEffectsUnmount = [], rootsWithPendingDiscreteUpdates = null, nestedUpdateCount = 0, rootWithNestedUpdates = null, nestedPassiveUpdateCount = 0, spawnedWorkDuringRender = null, currentEventTime = -1, currentEventWipLanes = NoLanes, currentEventPendingLanes = NoLanes, isFlushingPassiveEffects = !1, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1;
function getWorkInProgressRoot() {
return workInProgressRoot;
}
function requestEventTime() {
return (48 & executionContext) != 0 ? now() : -1 !== currentEventTime ? currentEventTime : currentEventTime = now();
}
function requestUpdateLane(fiber) {
var wipLanes, lane, mode = fiber.mode;
if ((2 & mode) == 0) return SyncLane;
if ((4 & mode) == 0) return 99 === getCurrentPriorityLevel() ? SyncLane : 2;
if (currentEventWipLanes === NoLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), 0 !== ReactCurrentBatchConfig.transition) return currentEventPendingLanes !== NoLanes && (currentEventPendingLanes = null !== mostRecentlyUpdatedRoot ? mostRecentlyUpdatedRoot.pendingLanes : NoLanes), wipLanes = currentEventWipLanes, (lane = pickArbitraryLane(4186112 & ~currentEventPendingLanes)) === NoLane && (lane = pickArbitraryLane(4186112 & ~wipLanes)) === NoLane && (lane = pickArbitraryLane(4186112)), lane;
var schedulerPriority = getCurrentPriorityLevel();
return (4 & executionContext) != 0 && 98 === schedulerPriority ? findUpdateLane(12, currentEventWipLanes) : findUpdateLane(function(schedulerPriorityLevel) {
switch(schedulerPriorityLevel){
case 99:
return 15;
case 98:
return 10;
case 97:
case 96:
return 8;
case 95:
return 2;
default:
return 0;
}
}(schedulerPriority), currentEventWipLanes);
}
function scheduleUpdateOnFiber(fiber, lane, eventTime) {
checkForNestedUpdates(), warnAboutRenderPhaseUpdatesInDEV(fiber);
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return warnAboutUpdateOnUnmountedFiberInDEV(fiber), null;
markRootUpdated(root, lane, eventTime), root === workInProgressRoot && (workInProgressRootUpdatedLanes = mergeLanes(workInProgressRootUpdatedLanes, lane), 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes));
var priorityLevel = getCurrentPriorityLevel();
lane === SyncLane ? (8 & executionContext) != 0 && (48 & executionContext) == 0 ? (schedulePendingInteractions(root, lane), performSyncWorkOnRoot(root)) : (ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane), 0 === executionContext && (resetRenderTimer(), flushSyncCallbackQueue())) : ((4 & executionContext) != 0 && (98 === priorityLevel || 99 === priorityLevel) && (null === rootsWithPendingDiscreteUpdates ? rootsWithPendingDiscreteUpdates = new Set([
root
]) : rootsWithPendingDiscreteUpdates.add(root)), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane)), mostRecentlyUpdatedRoot = root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
var alternate = sourceFiber.alternate;
null !== alternate && (alternate.lanes = mergeLanes(alternate.lanes, lane)), null === alternate && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
for(var node = sourceFiber, parent = sourceFiber.return; null !== parent;)parent.childLanes = mergeLanes(parent.childLanes, lane), null !== (alternate = parent.alternate) ? alternate.childLanes = mergeLanes(alternate.childLanes, lane) : (parent.flags & (Placement | Hydrating)) !== NoFlags && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = parent.return;
return 3 !== node.tag ? null : node.stateNode;
}
function ensureRootIsScheduled(root3, currentTime1) {
var callback, newCallbackNode, existingCallbackNode = root3.callbackNode;
!function(root, currentTime) {
for(var pendingLanes = root.pendingLanes, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = pendingLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index, expirationTime = expirationTimes[index];
-1 === expirationTime ? ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) && (expirationTimes[index] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root.expiredLanes |= lane), lanes &= ~lane;
}
}(root3, currentTime1);
var nextLanes = getNextLanes(root3, root3 === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes), newCallbackPriority = return_highestLanePriority;
if (nextLanes === NoLanes) {
null !== existingCallbackNode && (cancelCallback(existingCallbackNode), root3.callbackNode = null, root3.callbackPriority = 0);
return;
}
if (null !== existingCallbackNode) {
if (root3.callbackPriority === newCallbackPriority) return;
cancelCallback(existingCallbackNode);
}
newCallbackNode = 15 === newCallbackPriority ? (callback = performSyncWorkOnRoot.bind(null, root3), null === syncQueue ? (syncQueue = [
callback
], immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl)) : syncQueue.push(callback), fakeCallbackNode) : 14 === newCallbackPriority ? scheduleCallback(99, performSyncWorkOnRoot.bind(null, root3)) : scheduleCallback(function(lanePriority) {
switch(lanePriority){
case 15:
case 14:
return 99;
case 13:
case 12:
case 11:
case 10:
return 98;
case 9:
case 8:
case 7:
case 6:
case 4:
case 5:
return 97;
case 3:
case 2:
case 1:
return 95;
case 0:
return 90;
default:
throw Error("Invalid update priority: " + lanePriority + ". This is a bug in React.");
}
}(newCallbackPriority), performConcurrentWorkOnRoot.bind(null, root3)), root3.callbackPriority = newCallbackPriority, root3.callbackNode = newCallbackNode;
}
function performConcurrentWorkOnRoot(root) {
if (currentEventTime = -1, currentEventWipLanes = NoLanes, currentEventPendingLanes = NoLanes, (48 & executionContext) != 0) throw Error("Should not already be working.");
var originalCallbackNode = root.callbackNode;
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null;
var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
if (lanes === NoLanes) return null;
var exitStatus = renderRootConcurrent(root, lanes);
if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) prepareFreshStack(root, NoLanes);
else if (0 !== exitStatus) {
if (2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), (lanes = getLanesToRetrySynchronouslyOnError(root)) !== NoLanes && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
var fatalError = workInProgressRootFatalError;
throw prepareFreshStack(root, NoLanes), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
}
var finishedWork = root.current.alternate;
root.finishedWork = finishedWork, root.finishedLanes = lanes, finishConcurrentRender(root, exitStatus, lanes);
}
return (ensureRootIsScheduled(root, now()), root.callbackNode === originalCallbackNode) ? performConcurrentWorkOnRoot.bind(null, root) : null;
}
function finishConcurrentRender(root4, exitStatus, lanes4) {
switch(exitStatus){
case 0:
case 1:
throw Error("Root did not complete. This is a bug in React.");
case 2:
commitRoot(root4);
break;
case 3:
if (markRootSuspended$1(root4, lanes4), includesOnlyRetries(lanes4) && !shouldForceFlushFallbacksInDEV()) {
var msUntilTimeout = globalMostRecentFallbackTime + 500 - now();
if (msUntilTimeout > 10) {
if (getNextLanes(root4, NoLanes) !== NoLanes) break;
var suspendedLanes = root4.suspendedLanes;
if (!isSubsetOfLanes(suspendedLanes, lanes4)) {
requestEventTime(), markRootPinged(root4, suspendedLanes);
break;
}
root4.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root4), msUntilTimeout);
break;
}
}
commitRoot(root4);
break;
case 4:
if (markRootSuspended$1(root4, lanes4), (4186112 & (lanes3 = lanes4)) === lanes3) break;
if (!shouldForceFlushFallbacksInDEV()) {
var lanes3, eventTimeMs = function(root, lanes) {
for(var eventTimes = root.eventTimes, mostRecentEventTime = -1; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index, eventTime = eventTimes[index];
eventTime > mostRecentEventTime && (mostRecentEventTime = eventTime), lanes &= ~lane;
}
return mostRecentEventTime;
}(root4, lanes4), timeElapsedMs = now() - eventTimeMs, _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs;
if (_msUntilTimeout > 10) {
root4.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root4), _msUntilTimeout);
break;
}
}
commitRoot(root4);
break;
case 5:
commitRoot(root4);
break;
default:
throw Error("Unknown root exit status.");
}
}
function markRootSuspended$1(root5, suspendedLanes1) {
suspendedLanes1 = removeLanes(suspendedLanes1, workInProgressRootPingedLanes), suspendedLanes1 = removeLanes(suspendedLanes1, workInProgressRootUpdatedLanes), (function(root, suspendedLanes) {
root.suspendedLanes |= suspendedLanes, root.pingedLanes &= ~suspendedLanes;
for(var expirationTimes = root.expirationTimes, lanes = suspendedLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
expirationTimes[index] = -1, lanes &= ~lane;
}
})(root5, suspendedLanes1);
}
function performSyncWorkOnRoot(root) {
if ((48 & executionContext) != 0) throw Error("Should not already be working.");
if (flushPassiveEffects(), root === workInProgressRoot && includesSomeLane(root.expiredLanes, workInProgressRootRenderLanes) ? (exitStatus = renderRootSync(root, lanes = workInProgressRootRenderLanes), includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes) && (lanes = getNextLanes(root, lanes), exitStatus = renderRootSync(root, lanes))) : (lanes = getNextLanes(root, NoLanes), exitStatus = renderRootSync(root, lanes)), 0 !== root.tag && 2 === exitStatus && (executionContext |= 64, root.hydrate && (root.hydrate = !1, clearContainer(root.containerInfo)), (lanes = getLanesToRetrySynchronouslyOnError(root)) !== NoLanes && (exitStatus = renderRootSync(root, lanes))), 1 === exitStatus) {
var lanes, exitStatus, fatalError = workInProgressRootFatalError;
throw prepareFreshStack(root, NoLanes), markRootSuspended$1(root, lanes), ensureRootIsScheduled(root, now()), fatalError;
}
var finishedWork = root.current.alternate;
return root.finishedWork = finishedWork, root.finishedLanes = lanes, commitRoot(root), ensureRootIsScheduled(root, now()), null;
}
function batchedUpdates$1(fn, a) {
var prevExecutionContext = executionContext;
executionContext |= 1;
try {
return fn(a);
} finally{
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
}
}
function unbatchedUpdates(fn, a) {
var prevExecutionContext = executionContext;
executionContext &= -2, executionContext |= 8;
try {
return fn(a);
} finally{
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
}
}
function flushSync(fn, a) {
var prevExecutionContext = executionContext;
if ((48 & prevExecutionContext) != 0) return error1("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."), fn(a);
executionContext |= 1;
try {
if (fn) return runWithPriority$1(99, fn.bind(null, a));
return;
} finally{
executionContext = prevExecutionContext, flushSyncCallbackQueue();
}
}
function pushRenderLanes(fiber, lanes) {
push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber), subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes), workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
}
function popRenderLanes(fiber) {
subtreeRenderLanes = subtreeRenderLanesCursor.current, pop(subtreeRenderLanesCursor, fiber);
}
function prepareFreshStack(root, lanes) {
root.finishedWork = null, root.finishedLanes = NoLanes;
var timeoutHandle = root.timeoutHandle;
if (-1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)), null !== workInProgress1) for(var interruptedWork = workInProgress1.return; null !== interruptedWork;)unwindInterruptedWork(interruptedWork), interruptedWork = interruptedWork.return;
workInProgressRoot = root, workInProgress1 = createWorkInProgress(root.current, null), workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes, workInProgressRootExitStatus = 0, workInProgressRootFatalError = null, workInProgressRootSkippedLanes = NoLanes, workInProgressRootUpdatedLanes = NoLanes, workInProgressRootPingedLanes = NoLanes, spawnedWorkDuringRender = null, ReactStrictModeWarnings.discardPendingWarnings();
}
function handleError(root, thrownValue) {
for(;;){
var erroredWork = workInProgress1;
try {
if (resetContextDependencies(), resetHooksAfterThrow(), resetCurrentFiber(), ReactCurrentOwner$2.current = null, null === erroredWork || null === erroredWork.return) {
workInProgressRootExitStatus = 1, workInProgressRootFatalError = thrownValue, workInProgress1 = null;
return;
}
enableProfilerTimer && 8 & erroredWork.mode && stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0), throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes), completeUnitOfWork(erroredWork);
} catch (yetAnotherThrownValue) {
thrownValue = yetAnotherThrownValue, workInProgress1 === erroredWork && null !== erroredWork ? workInProgress1 = erroredWork = erroredWork.return : erroredWork = workInProgress1;
continue;
}
return;
}
}
function pushDispatcher() {
var prevDispatcher = ReactCurrentDispatcher$2.current;
return (ReactCurrentDispatcher$2.current = ContextOnlyDispatcher, null === prevDispatcher) ? ContextOnlyDispatcher : prevDispatcher;
}
function popDispatcher(prevDispatcher) {
ReactCurrentDispatcher$2.current = prevDispatcher;
}
function pushInteractions(root) {
var prevInteractions = __interactionsRef.current;
return __interactionsRef.current = root.memoizedInteractions, prevInteractions;
}
function popInteractions(prevInteractions) {
__interactionsRef.current = prevInteractions;
}
function markCommitTimeOfFallback() {
globalMostRecentFallbackTime = now();
}
function markSkippedUpdateLanes(lane) {
workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
}
function renderDidSuspend() {
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3);
}
function renderDidSuspendDelayIfPossible() {
(0 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus) && (workInProgressRootExitStatus = 4), null !== workInProgressRoot && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootUpdatedLanes)) && markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
function renderDidError() {
5 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
}
function renderHasNotSuspendedYet() {
return 0 === workInProgressRootExitStatus;
}
function renderRootSync(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 16;
var prevDispatcher = pushDispatcher();
(workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) && (prepareFreshStack(root, lanes), startWorkOnPendingInteractions(root, lanes));
for(var prevInteractions = pushInteractions(root);;)try {
workLoopSync();
break;
} catch (thrownValue) {
handleError(root, thrownValue);
}
if (resetContextDependencies(), popInteractions(prevInteractions), executionContext = prevExecutionContext, popDispatcher(prevDispatcher), null !== workInProgress1) throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");
return workInProgressRoot = null, workInProgressRootRenderLanes = NoLanes, workInProgressRootExitStatus;
}
function workLoopSync() {
for(; null !== workInProgress1;)performUnitOfWork(workInProgress1);
}
function renderRootConcurrent(root, lanes) {
var prevExecutionContext = executionContext;
executionContext |= 16;
var prevDispatcher = pushDispatcher();
(workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) && (resetRenderTimer(), prepareFreshStack(root, lanes), startWorkOnPendingInteractions(root, lanes));
for(var prevInteractions = pushInteractions(root);;)try {
workLoopConcurrent();
break;
} catch (thrownValue) {
handleError(root, thrownValue);
}
return (resetContextDependencies(), popInteractions(prevInteractions), popDispatcher(prevDispatcher), executionContext = prevExecutionContext, null !== workInProgress1) ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = NoLanes, workInProgressRootExitStatus);
}
function workLoopConcurrent() {
for(; null !== workInProgress1 && !shouldYield();)performUnitOfWork(workInProgress1);
}
function performUnitOfWork(unitOfWork) {
var next, current = unitOfWork.alternate;
setCurrentFiber(unitOfWork), (8 & unitOfWork.mode) != 0 ? (startProfilerTimer(unitOfWork), next = beginWork$1(current, unitOfWork, subtreeRenderLanes), stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !0)) : next = beginWork$1(current, unitOfWork, subtreeRenderLanes), resetCurrentFiber(), unitOfWork.memoizedProps = unitOfWork.pendingProps, null === next ? completeUnitOfWork(unitOfWork) : workInProgress1 = next, ReactCurrentOwner$2.current = null;
}
function completeUnitOfWork(unitOfWork) {
var completedWork = unitOfWork;
do {
var current = completedWork.alternate, returnFiber = completedWork.return;
if ((2048 & completedWork.flags) === NoFlags) {
setCurrentFiber(completedWork);
var next = void 0;
if ((8 & completedWork.mode) == 0 ? next = completeWork(current, completedWork, subtreeRenderLanes) : (startProfilerTimer(completedWork), next = completeWork(current, completedWork, subtreeRenderLanes), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)), resetCurrentFiber(), null !== next) {
workInProgress1 = next;
return;
}
resetChildLanes(completedWork), null !== returnFiber && (2048 & returnFiber.flags) === NoFlags && (null === returnFiber.firstEffect && (returnFiber.firstEffect = completedWork.firstEffect), null !== completedWork.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = completedWork.firstEffect), returnFiber.lastEffect = completedWork.lastEffect), completedWork.flags > 1 && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = completedWork : returnFiber.firstEffect = completedWork, returnFiber.lastEffect = completedWork));
} else {
var _next = unwindWork(completedWork);
if (null !== _next) {
_next.flags &= 2047, workInProgress1 = _next;
return;
}
if ((8 & completedWork.mode) != 0) {
stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1);
for(var actualDuration = completedWork.actualDuration, child = completedWork.child; null !== child;)actualDuration += child.actualDuration, child = child.sibling;
completedWork.actualDuration = actualDuration;
}
null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, returnFiber.flags |= 2048);
}
var siblingFiber = completedWork.sibling;
if (null !== siblingFiber) {
workInProgress1 = siblingFiber;
return;
}
workInProgress1 = completedWork = returnFiber;
}while (null !== completedWork)
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
}
function resetChildLanes(completedWork) {
if (24 !== completedWork.tag && 23 !== completedWork.tag || null === completedWork.memoizedState || includesSomeLane(subtreeRenderLanes, 1073741824) || (4 & completedWork.mode) === NoLanes) {
var newChildLanes = NoLanes;
if ((8 & completedWork.mode) != 0) {
for(var actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)), shouldBubbleActualDurations && (actualDuration += child.actualDuration), treeBaseDuration += child.treeBaseDuration, child = child.sibling;
if (13 === completedWork.tag && null !== completedWork.memoizedState) {
var primaryChildFragment = completedWork.child;
null !== primaryChildFragment && (treeBaseDuration -= primaryChildFragment.treeBaseDuration);
}
completedWork.actualDuration = actualDuration, completedWork.treeBaseDuration = treeBaseDuration;
} else for(var _child = completedWork.child; null !== _child;)newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)), _child = _child.sibling;
completedWork.childLanes = newChildLanes;
}
}
function commitRoot(root) {
var renderPriorityLevel = getCurrentPriorityLevel();
return runWithPriority$1(99, commitRootImpl.bind(null, root, renderPriorityLevel)), null;
}
function commitRootImpl(root6, renderPriorityLevel) {
do flushPassiveEffects();
while (null !== rootWithPendingPassiveEffects)
if (flushRenderPhaseStrictModeWarningsInDEV(), (48 & executionContext) != 0) throw Error("Should not already be working.");
var firstEffect, finishedWork = root6.finishedWork, lanes5 = root6.finishedLanes;
if (null === finishedWork) return null;
if (root6.finishedWork = null, root6.finishedLanes = NoLanes, !(finishedWork !== root6.current)) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");
root6.callbackNode = null;
var remainingLanes1 = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
if ((function(root, remainingLanes) {
var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
root.pendingLanes = remainingLanes, root.suspendedLanes = 0, root.pingedLanes = 0, root.expiredLanes &= remainingLanes, root.mutableReadLanes &= remainingLanes, root.entangledLanes &= remainingLanes;
for(var entanglements = root.entanglements, eventTimes = root.eventTimes, expirationTimes = root.expirationTimes, lanes = noLongerPendingLanes; lanes > 0;){
var index = pickArbitraryLaneIndex(lanes), lane = 1 << index;
entanglements[index] = NoLanes, eventTimes[index] = -1, expirationTimes[index] = -1, lanes &= ~lane;
}
})(root6, remainingLanes1), null !== rootsWithPendingDiscreteUpdates && (24 & remainingLanes1) === NoLanes && rootsWithPendingDiscreteUpdates.has(root6) && rootsWithPendingDiscreteUpdates.delete(root6), root6 === workInProgressRoot && (workInProgressRoot = null, workInProgress1 = null, workInProgressRootRenderLanes = NoLanes), finishedWork.flags > 1 ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, null !== firstEffect) {
var prevExecutionContext = executionContext;
executionContext |= 32;
var focusedElem, input1, prevInteractions = pushInteractions(root6);
ReactCurrentOwner$2.current = null, root6.containerInfo, eventsEnabled = _enabled, selectionInformation = {
focusedElem: focusedElem = getActiveElementDeep(),
selectionRange: hasSelectionCapabilities(focusedElem) ? ("selectionStart" in (input1 = focusedElem) ? {
start: input1.selectionStart,
end: input1.selectionEnd
} : (function(outerNode1) {
var ownerDocument = outerNode1.ownerDocument, win = ownerDocument && ownerDocument.defaultView || window, selection = win.getSelection && win.getSelection();
if (!selection || 0 === selection.rangeCount) return null;
var anchorNode1 = selection.anchorNode, anchorOffset1 = selection.anchorOffset, focusNode1 = selection.focusNode, focusOffset1 = selection.focusOffset;
try {
anchorNode1.nodeType, focusNode1.nodeType;
} catch (e) {
return null;
}
return (function(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = outerNode, parentNode = null;
outer: for(;;){
for(var next = null;;){
if (node === anchorNode && (0 === anchorOffset || 3 === node.nodeType) && (start = length + anchorOffset), node === focusNode && (0 === focusOffset || 3 === node.nodeType) && (end = length + focusOffset), 3 === node.nodeType && (length += node.nodeValue.length), null === (next = node.firstChild)) break;
parentNode = node, node = next;
}
for(;;){
if (node === outerNode) break outer;
if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset && (start = length), parentNode === focusNode && ++indexWithinFocus === focusOffset && (end = length), null !== (next = node.nextSibling)) break;
parentNode = (node = parentNode).parentNode;
}
node = next;
}
return -1 === start || -1 === end ? null : {
start: start,
end: end
};
})(outerNode1, anchorNode1, anchorOffset1, focusNode1, focusOffset1);
})(input1)) || {
start: 0,
end: 0
} : null
}, setEnabled(!1), focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect;
do if (invokeGuardedCallback(null, commitBeforeMutationEffects, null), hasCaughtError()) {
if (!(null !== nextEffect)) throw Error("Should be working on an effect.");
captureCommitPhaseError(nextEffect, clearCaughtError()), nextEffect = nextEffect.nextEffect;
}
while (null !== nextEffect)
focusedInstanceHandle = null, recordCommitTime(), nextEffect = firstEffect;
do if (invokeGuardedCallback(null, commitMutationEffects, null, root6, renderPriorityLevel), hasCaughtError()) {
if (!(null !== nextEffect)) throw Error("Should be working on an effect.");
captureCommitPhaseError(nextEffect, clearCaughtError()), nextEffect = nextEffect.nextEffect;
}
while (null !== nextEffect)
root6.containerInfo, (function(priorSelectionInformation) {
var input, offsets1, start1, end1, node3, curFocusedElem = getActiveElementDeep(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange;
if (curFocusedElem !== priorFocusedElem && (node3 = priorFocusedElem) && node3.ownerDocument && containsNode(node3.ownerDocument.documentElement, node3)) {
null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem) && (input = priorFocusedElem, start1 = (offsets1 = priorSelectionRange).start, end1 = offsets1.end, void 0 === end1 && (end1 = start1), "selectionStart" in input ? (input.selectionStart = start1, input.selectionEnd = Math.min(end1, input.value.length)) : (function(node, offsets) {
var doc = node.ownerDocument || document, win = doc && doc.defaultView || window;
if (win.getSelection) {
var selection = win.getSelection(), length = node.textContent.length, start = Math.min(offsets.start, length), end = void 0 === offsets.end ? start : Math.min(offsets.end, length);
if (!selection.extend && start > end) {
var temp = end;
end = start, start = temp;
}
var startMarker = getNodeForCharacterOffset(node, start), endMarker = getNodeForCharacterOffset(node, end);
if (startMarker && endMarker) {
if (1 === selection.rangeCount && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) return;
var range = doc.createRange();
range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), start > end ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
}
}
})(input, offsets1));
for(var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode;)1 === ancestor.nodeType && ancestors.push({
element: ancestor,
left: ancestor.scrollLeft,
top: ancestor.scrollTop
});
"function" == typeof priorFocusedElem.focus && priorFocusedElem.focus();
for(var i = 0; i < ancestors.length; i++){
var info = ancestors[i];
info.element.scrollLeft = info.left, info.element.scrollTop = info.top;
}
}
})(selectionInformation), setEnabled(eventsEnabled), eventsEnabled = null, selectionInformation = null, root6.current = finishedWork, nextEffect = firstEffect;
do if (invokeGuardedCallback(null, commitLayoutEffects, null, root6, lanes5), hasCaughtError()) {
if (!(null !== nextEffect)) throw Error("Should be working on an effect.");
captureCommitPhaseError(nextEffect, clearCaughtError()), nextEffect = nextEffect.nextEffect;
}
while (null !== nextEffect)
nextEffect = null, requestPaint(), popInteractions(prevInteractions), executionContext = prevExecutionContext;
} else root6.current = finishedWork, recordCommitTime();
if (rootDoesHavePassiveEffects) rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = root6, pendingPassiveEffectsLanes = lanes5, pendingPassiveEffectsRenderPriority = renderPriorityLevel;
else for(nextEffect = firstEffect; null !== nextEffect;){
var nextNextEffect = nextEffect.nextEffect;
nextEffect.nextEffect = null, nextEffect.flags & Deletion && detachFiberAfterEffects(nextEffect), nextEffect = nextNextEffect;
}
if ((remainingLanes1 = root6.pendingLanes) !== NoLanes) {
if (null !== spawnedWorkDuringRender) {
var expirationTimes1 = spawnedWorkDuringRender;
spawnedWorkDuringRender = null;
for(var i1 = 0; i1 < expirationTimes1.length; i1++)scheduleInteractions(root6, expirationTimes1[i1], root6.memoizedInteractions);
}
schedulePendingInteractions(root6, remainingLanes1);
} else legacyErrorBoundariesThatAlreadyFailed = null;
if (rootDoesHavePassiveEffects || finishPendingInteractions(root6, lanes5), remainingLanes1 === SyncLane ? root6 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root6) : nestedUpdateCount = 0, !function(root, priorityLevel) {
if (injectedHook && "function" == typeof injectedHook.onCommitFiberRoot) try {
var didError = (root.current.flags & DidCapture) === DidCapture;
enableProfilerTimer ? injectedHook.onCommitFiberRoot(rendererID, root, priorityLevel, didError) : injectedHook.onCommitFiberRoot(rendererID, root, void 0, didError);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, error1("React instrumentation encountered an error: %s", err));
}
}(finishedWork.stateNode, renderPriorityLevel), commitHooks.forEach(function(commitHook) {
return commitHook();
}), ensureRootIsScheduled(root6, now()), hasUncaughtError) {
hasUncaughtError = !1;
var _error3 = firstUncaughtError;
throw firstUncaughtError = null, _error3;
}
return (8 & executionContext) != 0 || flushSyncCallbackQueue(), null;
}
function commitBeforeMutationEffects() {
for(; null !== nextEffect;){
var current = nextEffect.alternate;
!shouldFireAfterActiveInstanceBlur && null !== focusedInstanceHandle && ((nextEffect.flags & Deletion) !== NoFlags ? doesFiberContain(nextEffect, focusedInstanceHandle) && (shouldFireAfterActiveInstanceBlur = !0) : 13 === nextEffect.tag && isSuspenseBoundaryBeingHidden(current, nextEffect) && doesFiberContain(nextEffect, focusedInstanceHandle) && (shouldFireAfterActiveInstanceBlur = !0));
var flags = nextEffect.flags;
(256 & flags) !== NoFlags && (setCurrentFiber(nextEffect), commitBeforeMutationLifeCycles(current, nextEffect), resetCurrentFiber()), (512 & flags) === NoFlags || rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
return flushPassiveEffects(), null;
})), nextEffect = nextEffect.nextEffect;
}
}
function commitMutationEffects(root, renderPriorityLevel) {
for(; null !== nextEffect;){
setCurrentFiber(nextEffect);
var flags = nextEffect.flags;
if (16 & flags && commitResetTextContent(nextEffect), 128 & flags) {
var current = nextEffect.alternate;
null !== current && commitDetachRef(current);
}
var primaryFlags = flags & (Placement | Update | Deletion | Hydrating);
switch(primaryFlags){
case Placement:
commitPlacement(nextEffect), nextEffect.flags &= ~Placement;
break;
case 6:
commitPlacement(nextEffect), nextEffect.flags &= ~Placement, commitWork(nextEffect.alternate, nextEffect);
break;
case Hydrating:
nextEffect.flags &= ~Hydrating;
break;
case 1028:
nextEffect.flags &= ~Hydrating, commitWork(nextEffect.alternate, nextEffect);
break;
case Update:
commitWork(nextEffect.alternate, nextEffect);
break;
case Deletion:
commitDeletion(root, nextEffect);
break;
}
resetCurrentFiber(), nextEffect = nextEffect.nextEffect;
}
}
function commitLayoutEffects(root, committedLanes) {
for(; null !== nextEffect;){
setCurrentFiber(nextEffect);
var flags = nextEffect.flags;
flags & (32 | Update) && commitLifeCycles(root, nextEffect.alternate, nextEffect), 128 & flags && commitAttachRef(nextEffect), resetCurrentFiber(), nextEffect = nextEffect.nextEffect;
}
}
function flushPassiveEffects() {
if (90 !== pendingPassiveEffectsRenderPriority) {
var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority$1 ? NormalPriority$1 : pendingPassiveEffectsRenderPriority;
return pendingPassiveEffectsRenderPriority = 90, runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
}
return !1;
}
function enqueuePendingPassiveHookEffectMount(fiber, effect) {
pendingPassiveHookEffectsMount.push(effect, fiber), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
return flushPassiveEffects(), null;
}));
}
function enqueuePendingPassiveHookEffectUnmount(fiber, effect) {
pendingPassiveHookEffectsUnmount.push(effect, fiber), fiber.flags |= 8192;
var alternate = fiber.alternate;
null !== alternate && (alternate.flags |= 8192), rootDoesHavePassiveEffects || (rootDoesHavePassiveEffects = !0, scheduleCallback(NormalPriority$1, function() {
return flushPassiveEffects(), null;
}));
}
function invokePassiveEffectCreate(effect) {
var create = effect.create;
effect.destroy = create();
}
function flushPassiveEffectsImpl() {
if (null === rootWithPendingPassiveEffects) return !1;
var root = rootWithPendingPassiveEffects, lanes = pendingPassiveEffectsLanes;
if (rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = NoLanes, (48 & executionContext) != 0) throw Error("Cannot flush passive effects while already rendering.");
isFlushingPassiveEffects = !0;
var prevExecutionContext = executionContext;
executionContext |= 32;
var prevInteractions = pushInteractions(root), unmountEffects = pendingPassiveHookEffectsUnmount;
pendingPassiveHookEffectsUnmount = [];
for(var i = 0; i < unmountEffects.length; i += 2){
var _effect = unmountEffects[i], fiber = unmountEffects[i + 1], destroy = _effect.destroy;
_effect.destroy = void 0, fiber.flags &= -8193;
var alternate = fiber.alternate;
if (null !== alternate && (alternate.flags &= -8193), "function" == typeof destroy) {
if (setCurrentFiber(fiber), invokeGuardedCallback(null, destroy, null), hasCaughtError()) {
if (!(null !== fiber)) throw Error("Should be working on an effect.");
captureCommitPhaseError(fiber, clearCaughtError());
}
resetCurrentFiber();
}
}
var mountEffects = pendingPassiveHookEffectsMount;
pendingPassiveHookEffectsMount = [];
for(var _i = 0; _i < mountEffects.length; _i += 2){
var _effect2 = mountEffects[_i], _fiber = mountEffects[_i + 1];
if (setCurrentFiber(_fiber), invokeGuardedCallback(null, invokePassiveEffectCreate, null, _effect2), hasCaughtError()) {
if (!(null !== _fiber)) throw Error("Should be working on an effect.");
captureCommitPhaseError(_fiber, clearCaughtError());
}
resetCurrentFiber();
}
for(var effect = root.current.firstEffect; null !== effect;){
var nextNextEffect = effect.nextEffect;
effect.nextEffect = null, effect.flags & Deletion && detachFiberAfterEffects(effect), effect = nextNextEffect;
}
return popInteractions(prevInteractions), finishPendingInteractions(root, lanes), isFlushingPassiveEffects = !1, executionContext = prevExecutionContext, flushSyncCallbackQueue(), nestedPassiveUpdateCount = null === rootWithPendingPassiveEffects ? 0 : nestedPassiveUpdateCount + 1, !0;
}
function isAlreadyFailedLegacyErrorBoundary(instance) {
return null !== legacyErrorBoundariesThatAlreadyFailed && legacyErrorBoundariesThatAlreadyFailed.has(instance);
}
function markLegacyErrorBoundaryAsFailed(instance) {
null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([
instance
]) : legacyErrorBoundariesThatAlreadyFailed.add(instance);
}
var onUncaughtError = function(error) {
hasUncaughtError || (hasUncaughtError = !0, firstUncaughtError = error);
};
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
var update = createRootErrorUpdate(rootFiber, createCapturedValue(error, sourceFiber), SyncLane);
enqueueUpdate(rootFiber, update);
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane);
null !== root && (markRootUpdated(root, SyncLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, SyncLane));
}
function captureCommitPhaseError(sourceFiber, error) {
if (3 === sourceFiber.tag) {
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
return;
}
for(var fiber = sourceFiber.return; null !== fiber;){
if (3 === fiber.tag) {
captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
return;
}
if (1 === fiber.tag) {
var ctor = fiber.type, instance = fiber.stateNode;
if ("function" == typeof ctor.getDerivedStateFromError || "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) {
var errorInfo = createCapturedValue(error, sourceFiber), update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
enqueueUpdate(fiber, update);
var eventTime = requestEventTime(), root = markUpdateLaneFromFiberToRoot(fiber, SyncLane);
if (null !== root) markRootUpdated(root, SyncLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, SyncLane);
else if ("function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) try {
instance.componentDidCatch(error, errorInfo);
} catch (errorToIgnore) {}
return;
}
}
fiber = fiber.return;
}
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
var pingCache = root.pingCache;
null !== pingCache && pingCache.delete(wakeable);
var eventTime = requestEventTime();
markRootPinged(root, pingedLanes), workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes) && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < 500 ? prepareFreshStack(root, NoLanes) : workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes)), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, pingedLanes);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
var retryCache, boundaryFiber1, retryLane, eventTime, root, lane, mode;
null !== (retryCache = boundaryFiber.stateNode) && retryCache.delete(wakeable), boundaryFiber1 = boundaryFiber, (retryLane = NoLane) === NoLane && (retryLane = (2 & (mode = boundaryFiber1.mode)) == 0 ? SyncLane : (4 & mode) == 0 ? 99 === getCurrentPriorityLevel() ? SyncLane : 2 : (currentEventWipLanes === NoLanes && (currentEventWipLanes = workInProgressRootIncludedLanes), (lane = pickArbitraryLane(62914560 & ~currentEventWipLanes)) === NoLane && (lane = pickArbitraryLane(62914560)), lane)), eventTime = requestEventTime(), null !== (root = markUpdateLaneFromFiberToRoot(boundaryFiber1, retryLane)) && (markRootUpdated(root, retryLane, eventTime), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, retryLane));
}
function jnd(timeElapsed) {
return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : 1960 * ceil(timeElapsed / 1960);
}
function checkForNestedUpdates() {
if (nestedUpdateCount > 50) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");
nestedPassiveUpdateCount > 50 && (nestedPassiveUpdateCount = 0, error1("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."));
}
function flushRenderPhaseStrictModeWarningsInDEV() {
ReactStrictModeWarnings.flushLegacyContextWarning(), ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
}
var didWarnStateUpdateForNotYetMountedComponent = null;
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
if ((16 & executionContext) == 0 && 6 & fiber.mode) {
var tag = fiber.tag;
if (2 === tag || 3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag || 22 === tag) {
var componentName = getComponentName(fiber.type) || "ReactComponent";
if (null !== didWarnStateUpdateForNotYetMountedComponent) {
if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) return;
didWarnStateUpdateForNotYetMountedComponent.add(componentName);
} else didWarnStateUpdateForNotYetMountedComponent = new Set([
componentName
]);
try {
setCurrentFiber(fiber), error1("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.");
} finally{
current1 ? setCurrentFiber(fiber) : resetCurrentFiber();
}
}
}
}
var didWarnStateUpdateForUnmountedComponent = null;
function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
var tag = fiber.tag;
if ((3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag || 22 === tag) && (8192 & fiber.flags) === NoFlags) {
var componentName = getComponentName(fiber.type) || "ReactComponent";
if (null !== didWarnStateUpdateForUnmountedComponent) {
if (didWarnStateUpdateForUnmountedComponent.has(componentName)) return;
didWarnStateUpdateForUnmountedComponent.add(componentName);
} else didWarnStateUpdateForUnmountedComponent = new Set([
componentName
]);
if (isFlushingPassiveEffects) ;
else {
var previousFiber = current1;
try {
setCurrentFiber(fiber), error1("Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.", 1 === tag ? "the componentWillUnmount method" : "a useEffect cleanup function");
} finally{
previousFiber ? setCurrentFiber(fiber) : resetCurrentFiber();
}
}
}
}
beginWork$1 = function(current, unitOfWork, lanes) {
var originalWorkInProgressCopy = assignFiberPropertiesInDEV(null, unitOfWork);
try {
return beginWork(current, unitOfWork, lanes);
} catch (originalError) {
if (null !== originalError && "object" == typeof originalError && "function" == typeof originalError.then) throw originalError;
if (resetContextDependencies(), resetHooksAfterThrow(), unwindInterruptedWork(unitOfWork), assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy), 8 & unitOfWork.mode && startProfilerTimer(unitOfWork), invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes), hasCaughtError()) throw clearCaughtError();
throw originalError;
}
};
var didWarnAboutUpdateInRender = !1;
function warnAboutRenderPhaseUpdatesInDEV(fiber) {
if (isRendering && (16 & executionContext) != 0 && !isUpdatingOpaqueValueInRenderPhase) switch(fiber.tag){
case 0:
case 11:
case 15:
var renderingComponentName = workInProgress1 && getComponentName(workInProgress1.type) || "Unknown", dedupeKey = renderingComponentName;
didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey) || (didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey), error1("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", getComponentName(fiber.type) || "Unknown", renderingComponentName, renderingComponentName));
break;
case 1:
didWarnAboutUpdateInRender || (error1("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), didWarnAboutUpdateInRender = !0);
break;
}
}
didWarnAboutUpdateInRenderForAnotherComponent = new Set();
var IsThisRendererActing = {
current: !1
};
function warnIfNotScopedWithMatchingAct(fiber) {
if (!0 === IsSomeRendererActing.current && !0 !== IsThisRendererActing.current) {
var previousFiber = current1;
try {
setCurrentFiber(fiber), error1("It looks like you're using the wrong act() around your test interactions.\nBe sure to use the matching version of act() corresponding to your renderer:\n\n// for react-dom:\nimport {act} from 'react-dom/test-utils';\n// ...\nact(() => ...);\n\n// for react-test-renderer:\nimport TestRenderer from react-test-renderer';\nconst {act} = TestRenderer;\n// ...\nact(() => ...);");
} finally{
previousFiber ? setCurrentFiber(fiber) : resetCurrentFiber();
}
}
}
function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
(1 & fiber.mode) != 0 && !1 === IsSomeRendererActing.current && !1 === IsThisRendererActing.current && error1("An update to %s ran an effect, but was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentName(fiber.type));
}
var warnIfNotCurrentlyActingUpdatesInDev = function(fiber) {
if (0 === executionContext && !1 === IsSomeRendererActing.current && !1 === IsThisRendererActing.current) {
var previousFiber = current1;
try {
setCurrentFiber(fiber), error1("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentName(fiber.type));
} finally{
previousFiber ? setCurrentFiber(fiber) : resetCurrentFiber();
}
}
}, didWarnAboutUnmockedScheduler = !1;
function computeThreadID(root, lane) {
return 1000 * lane + root.interactionThreadID;
}
function markSpawnedWork(lane) {
null === spawnedWorkDuringRender ? spawnedWorkDuringRender = [
lane
] : spawnedWorkDuringRender.push(lane);
}
function scheduleInteractions(root, lane, interactions) {
if (interactions.size > 0) {
var pendingInteractionMap = root.pendingInteractionMap, pendingInteractions = pendingInteractionMap.get(lane);
null != pendingInteractions ? interactions.forEach(function(interaction) {
!pendingInteractions.has(interaction) && interaction.__count++, pendingInteractions.add(interaction);
}) : (pendingInteractionMap.set(lane, new Set(interactions)), interactions.forEach(function(interaction) {
interaction.__count++;
}));
var subscriber = __subscriberRef.current;
if (null !== subscriber) {
var threadID = computeThreadID(root, lane);
subscriber.onWorkScheduled(interactions, threadID);
}
}
}
function schedulePendingInteractions(root, lane) {
scheduleInteractions(root, lane, __interactionsRef.current);
}
function startWorkOnPendingInteractions(root, lanes) {
var interactions = new Set();
if (root.pendingInteractionMap.forEach(function(scheduledInteractions, scheduledLane) {
includesSomeLane(lanes, scheduledLane) && scheduledInteractions.forEach(function(interaction) {
return interactions.add(interaction);
});
}), root.memoizedInteractions = interactions, interactions.size > 0) {
var subscriber = __subscriberRef.current;
if (null !== subscriber) {
var threadID = computeThreadID(root, lanes);
try {
subscriber.onWorkStarted(interactions, threadID);
} catch (error) {
scheduleCallback(99, function() {
throw error;
});
}
}
}
}
function finishPendingInteractions(root, committedLanes) {
var subscriber, remainingLanesAfterCommit = root.pendingLanes;
try {
if (subscriber = __subscriberRef.current, null !== subscriber && root.memoizedInteractions.size > 0) {
var threadID = computeThreadID(root, committedLanes);
subscriber.onWorkStopped(root.memoizedInteractions, threadID);
}
} catch (error2) {
scheduleCallback(99, function() {
throw error2;
});
} finally{
var pendingInteractionMap = root.pendingInteractionMap;
pendingInteractionMap.forEach(function(scheduledInteractions, lane) {
includesSomeLane(remainingLanesAfterCommit, lane) || (pendingInteractionMap.delete(lane), scheduledInteractions.forEach(function(interaction) {
if (interaction.__count--, null !== subscriber && 0 === interaction.__count) try {
subscriber.onInteractionScheduledWorkCompleted(interaction);
} catch (error) {
scheduleCallback(99, function() {
throw error;
});
}
}));
});
}
}
function shouldForceFlushFallbacksInDEV() {
return actingUpdatesScopeDepth > 0;
}
var actingUpdatesScopeDepth = 0;
function detachFiberAfterEffects(fiber) {
fiber.sibling = null, fiber.stateNode = null;
}
var resolveFamily = null, failedBoundaries = null;
function resolveFunctionForHotReloading(type) {
if (null === resolveFamily) return type;
var family = resolveFamily(type);
return void 0 === family ? type : family.current;
}
function resolveClassForHotReloading(type) {
return resolveFunctionForHotReloading(type);
}
function resolveForwardRefForHotReloading(type) {
if (null === resolveFamily) return type;
var family = resolveFamily(type);
if (void 0 === family) {
if (null != type && "function" == typeof type.render) {
var currentRender = resolveFunctionForHotReloading(type.render);
if (type.render !== currentRender) {
var syntheticType = {
$$typeof: REACT_FORWARD_REF_TYPE,
render: currentRender
};
return void 0 !== type.displayName && (syntheticType.displayName = type.displayName), syntheticType;
}
}
return type;
}
return family.current;
}
function isCompatibleFamilyForHotReloading(fiber, element) {
if (null === resolveFamily) return !1;
var prevType = fiber.elementType, nextType = element.type, needsCompareFamilies = !1, $$typeofNextType = "object" == typeof nextType && null !== nextType ? nextType.$$typeof : null;
switch(fiber.tag){
case 1:
"function" == typeof nextType && (needsCompareFamilies = !0);
break;
case 0:
"function" == typeof nextType ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0);
break;
case 11:
$$typeofNextType === REACT_FORWARD_REF_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0);
break;
case 14:
case 15:
$$typeofNextType === REACT_MEMO_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0);
break;
default:
return !1;
}
if (needsCompareFamilies) {
var prevFamily = resolveFamily(prevType);
if (void 0 !== prevFamily && prevFamily === resolveFamily(nextType)) return !0;
}
return !1;
}
function markFailedErrorBoundaryForHotReloading(fiber) {
null !== resolveFamily && "function" == typeof WeakSet && (null === failedBoundaries && (failedBoundaries = new WeakSet()), failedBoundaries.add(fiber));
}
function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null;
switch(tag){
case 0:
case 15:
case 1:
candidateType = type;
break;
case 11:
candidateType = type.render;
break;
}
if (null === resolveFamily) throw new Error("Expected resolveFamily to be set during hot reload.");
var needsRender = !1, needsRemount = !1;
if (null !== candidateType) {
var family = resolveFamily(candidateType);
void 0 !== family && (staleFamilies.has(family) ? needsRemount = !0 : updatedFamilies.has(family) && (1 === tag ? needsRemount = !0 : needsRender = !0));
}
null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (needsRemount = !0), needsRemount && (fiber._debugNeedsRemount = !0), (needsRemount || needsRender) && scheduleUpdateOnFiber(fiber, SyncLane, -1), null === child || needsRemount || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies), null !== sibling && scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
}
function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
var child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null;
switch(tag){
case 0:
case 15:
case 1:
candidateType = type;
break;
case 11:
candidateType = type.render;
break;
}
var didMatch = !1;
null !== candidateType && types.has(candidateType) && (didMatch = !0), didMatch ? findHostInstancesForFiberShallowly(fiber, hostInstances) : null !== child && findHostInstancesForMatchingFibersRecursively(child, types, hostInstances), null !== sibling && findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
}
function findHostInstancesForFiberShallowly(fiber, hostInstances) {
if (!findChildHostInstancesForFiberShallowly(fiber, hostInstances)) for(var node = fiber;;){
switch(node.tag){
case 5:
hostInstances.add(node.stateNode);
return;
case 4:
hostInstances.add(node.stateNode.containerInfo);
return;
case 3:
hostInstances.add(node.stateNode.containerInfo);
return;
}
if (null === node.return) throw new Error("Expected to reach root first.");
node = node.return;
}
}
function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
for(var node = fiber, foundHostInstances = !1;;){
if (5 === node.tag) foundHostInstances = !0, hostInstances.add(node.stateNode);
else if (null !== node.child) {
node.child.return = node, node = node.child;
continue;
}
if (node === fiber) return foundHostInstances;
for(; null === node.sibling;){
if (null === node.return || node.return === fiber) return foundHostInstances;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return !1;
}
hasBadMapPolyfill = !1;
try {
var nonExtensibleObject = Object.preventExtensions({});
new Map([
[
nonExtensibleObject,
null
]
]), new Set([
nonExtensibleObject
]);
} catch (e) {
hasBadMapPolyfill = !0;
}
var debugCounter = 1;
function FiberNode(tag, pendingProps, key, mode) {
this.tag = tag, this.key = key, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = pendingProps, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = mode, this.flags = NoFlags, this.nextEffect = null, this.firstEffect = null, this.lastEffect = null, this.lanes = NoLanes, this.childLanes = NoLanes, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugID = debugCounter++, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, hasBadMapPolyfill || "function" != typeof Object.preventExtensions || Object.preventExtensions(this);
}
var createFiber = function(tag, pendingProps, key, mode) {
return new FiberNode(tag, pendingProps, key, mode);
};
function shouldConstruct$1(Component) {
var prototype = Component.prototype;
return !!(prototype && prototype.isReactComponent);
}
function isSimpleFunctionComponent(type) {
return "function" == typeof type && !shouldConstruct$1(type) && void 0 === type.defaultProps;
}
function resolveLazyComponentTag(Component) {
if ("function" == typeof Component) return shouldConstruct$1(Component) ? 1 : 0;
if (null != Component) {
var $$typeof = Component.$$typeof;
if ($$typeof === REACT_FORWARD_REF_TYPE) return 11;
if ($$typeof === REACT_MEMO_TYPE) return 14;
}
return 2;
}
function createWorkInProgress(current, pendingProps) {
var workInProgress = current.alternate;
null === workInProgress ? ((workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode)).elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress._debugID = current._debugID, workInProgress._debugSource = current._debugSource, workInProgress._debugOwner = current._debugOwner, workInProgress._debugHookTypes = current._debugHookTypes, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = NoFlags, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null, workInProgress.actualDuration = 0, workInProgress.actualStartTime = -1), workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue;
var currentDependencies = current.dependencies;
switch(workInProgress.dependencies = null === currentDependencies ? null : {
lanes: currentDependencies.lanes,
firstContext: currentDependencies.firstContext
}, workInProgress.sibling = current.sibling, workInProgress.index = current.index, workInProgress.ref = current.ref, workInProgress.selfBaseDuration = current.selfBaseDuration, workInProgress.treeBaseDuration = current.treeBaseDuration, workInProgress._debugNeedsRemount = current._debugNeedsRemount, workInProgress.tag){
case 2:
case 0:
case 15:
workInProgress.type = resolveFunctionForHotReloading(current.type);
break;
case 1:
workInProgress.type = resolveClassForHotReloading(current.type);
break;
case 11:
workInProgress.type = resolveForwardRefForHotReloading(current.type);
break;
}
return workInProgress;
}
function resetWorkInProgress(workInProgress, renderLanes) {
workInProgress.flags &= Placement, workInProgress.nextEffect = null, workInProgress.firstEffect = null, workInProgress.lastEffect = null;
var current = workInProgress.alternate;
if (null === current) workInProgress.childLanes = NoLanes, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null, workInProgress.selfBaseDuration = 0, workInProgress.treeBaseDuration = 0;
else {
workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, workInProgress.type = current.type;
var currentDependencies = current.dependencies;
workInProgress.dependencies = null === currentDependencies ? null : {
lanes: currentDependencies.lanes,
firstContext: currentDependencies.firstContext
}, workInProgress.selfBaseDuration = current.selfBaseDuration, workInProgress.treeBaseDuration = current.treeBaseDuration;
}
return workInProgress;
}
function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) {
var fiberTag = 2, resolvedType = type;
if ("function" == typeof type) shouldConstruct$1(type) ? (fiberTag = 1, resolvedType = resolveClassForHotReloading(resolvedType)) : resolvedType = resolveFunctionForHotReloading(resolvedType);
else if ("string" == typeof type) fiberTag = 5;
else getTag: switch(type){
case REACT_FRAGMENT_TYPE:
return createFiberFromFragment(pendingProps.children, mode, lanes, key);
case REACT_DEBUG_TRACING_MODE_TYPE:
fiberTag = 8, mode |= 16;
break;
case REACT_STRICT_MODE_TYPE:
fiberTag = 8, mode |= 1;
break;
case REACT_PROFILER_TYPE:
return createFiberFromProfiler(pendingProps, mode, lanes, key);
case REACT_SUSPENSE_TYPE:
return createFiberFromSuspense(pendingProps, mode, lanes, key);
case REACT_SUSPENSE_LIST_TYPE:
return createFiberFromSuspenseList(pendingProps, mode, lanes, key);
case REACT_OFFSCREEN_TYPE:
return createFiberFromOffscreen(pendingProps, mode, lanes, key);
case REACT_LEGACY_HIDDEN_TYPE:
return createFiberFromLegacyHidden(pendingProps, mode, lanes, key);
case REACT_SCOPE_TYPE:
default:
if ("object" == typeof type && null !== type) switch(type.$$typeof){
case REACT_PROVIDER_TYPE:
fiberTag = 10;
break getTag;
case REACT_CONTEXT_TYPE:
fiberTag = 9;
break getTag;
case REACT_FORWARD_REF_TYPE:
fiberTag = 11, resolvedType = resolveForwardRefForHotReloading(resolvedType);
break getTag;
case REACT_MEMO_TYPE:
fiberTag = 14;
break getTag;
case REACT_LAZY_TYPE:
fiberTag = 16, resolvedType = null;
break getTag;
case REACT_BLOCK_TYPE:
fiberTag = 22;
break getTag;
}
var info = "";
(void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var ownerName = owner ? getComponentName(owner.type) : null;
throw ownerName && (info += "\n\nCheck the render method of `" + ownerName + "`."), Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (null == type ? type : typeof type) + "." + info);
}
var fiber = createFiber(fiberTag, pendingProps, key, mode);
return fiber.elementType = type, fiber.type = resolvedType, fiber.lanes = lanes, fiber._debugOwner = owner, fiber;
}
function createFiberFromElement(element, mode, lanes) {
var owner = null;
owner = element._owner;
var type = element.type, key = element.key, pendingProps = element.props, fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);
return fiber._debugSource = element._source, fiber._debugOwner = element._owner, fiber;
}
function createFiberFromFragment(elements, mode, lanes, key) {
var fiber = createFiber(7, elements, key, mode);
return fiber.lanes = lanes, fiber;
}
function createFiberFromProfiler(pendingProps, mode, lanes, key) {
"string" != typeof pendingProps.id && error1("Profiler must specify an \"id\" as a prop");
var fiber = createFiber(12, pendingProps, key, 8 | mode);
return fiber.elementType = REACT_PROFILER_TYPE, fiber.type = REACT_PROFILER_TYPE, fiber.lanes = lanes, fiber.stateNode = {
effectDuration: 0,
passiveEffectDuration: 0
}, fiber;
}
function createFiberFromSuspense(pendingProps, mode, lanes, key) {
var fiber = createFiber(13, pendingProps, key, mode);
return fiber.type = REACT_SUSPENSE_TYPE, fiber.elementType = REACT_SUSPENSE_TYPE, fiber.lanes = lanes, fiber;
}
function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
var fiber = createFiber(19, pendingProps, key, mode);
return fiber.type = REACT_SUSPENSE_LIST_TYPE, fiber.elementType = REACT_SUSPENSE_LIST_TYPE, fiber.lanes = lanes, fiber;
}
function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
var fiber = createFiber(23, pendingProps, key, mode);
return fiber.type = REACT_OFFSCREEN_TYPE, fiber.elementType = REACT_OFFSCREEN_TYPE, fiber.lanes = lanes, fiber;
}
function createFiberFromLegacyHidden(pendingProps, mode, lanes, key) {
var fiber = createFiber(24, pendingProps, key, mode);
return fiber.type = REACT_LEGACY_HIDDEN_TYPE, fiber.elementType = REACT_LEGACY_HIDDEN_TYPE, fiber.lanes = lanes, fiber;
}
function createFiberFromText(content, mode, lanes) {
var fiber = createFiber(6, content, null, mode);
return fiber.lanes = lanes, fiber;
}
function createFiberFromHostInstanceForDeletion() {
var fiber = createFiber(5, null, null, 0);
return fiber.elementType = "DELETED", fiber.type = "DELETED", fiber;
}
function createFiberFromPortal(portal, mode, lanes) {
var fiber = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode);
return fiber.lanes = lanes, fiber.stateNode = {
containerInfo: portal.containerInfo,
pendingChildren: null,
implementation: portal.implementation
}, fiber;
}
function assignFiberPropertiesInDEV(target, source) {
return null === target && (target = createFiber(2, null, null, 0)), target.tag = source.tag, target.key = source.key, target.elementType = source.elementType, target.type = source.type, target.stateNode = source.stateNode, target.return = source.return, target.child = source.child, target.sibling = source.sibling, target.index = source.index, target.ref = source.ref, target.pendingProps = source.pendingProps, target.memoizedProps = source.memoizedProps, target.updateQueue = source.updateQueue, target.memoizedState = source.memoizedState, target.dependencies = source.dependencies, target.mode = source.mode, target.flags = source.flags, target.nextEffect = source.nextEffect, target.firstEffect = source.firstEffect, target.lastEffect = source.lastEffect, target.lanes = source.lanes, target.childLanes = source.childLanes, target.alternate = source.alternate, target.actualDuration = source.actualDuration, target.actualStartTime = source.actualStartTime, target.selfBaseDuration = source.selfBaseDuration, target.treeBaseDuration = source.treeBaseDuration, target._debugID = source._debugID, target._debugSource = source._debugSource, target._debugOwner = source._debugOwner, target._debugNeedsRemount = source._debugNeedsRemount, target._debugHookTypes = source._debugHookTypes, target;
}
function FiberRootNode(containerInfo, tag, hydrate) {
switch(this.tag = tag, this.containerInfo = containerInfo, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = -1, this.context = null, this.pendingContext = null, this.hydrate = hydrate, this.callbackNode = null, this.callbackPriority = 0, this.eventTimes = createLaneMap(NoLanes), this.expirationTimes = createLaneMap(-1), this.pendingLanes = NoLanes, this.suspendedLanes = NoLanes, this.pingedLanes = NoLanes, this.expiredLanes = NoLanes, this.mutableReadLanes = NoLanes, this.finishedLanes = NoLanes, this.entangledLanes = NoLanes, this.entanglements = createLaneMap(NoLanes), this.mutableSourceEagerHydrationData = null, this.interactionThreadID = unstable_getThreadID(), this.memoizedInteractions = new Set(), this.pendingInteractionMap = new Map(), tag){
case 1:
this._debugRootType = "createBlockingRoot()";
break;
case 2:
this._debugRootType = "createRoot()";
break;
case 0:
this._debugRootType = "createLegacyRoot()";
break;
}
}
function registerMutableSourceForHydration(root, mutableSource) {
var version = (0, mutableSource._getVersion)(mutableSource._source);
null == root.mutableSourceEagerHydrationData ? root.mutableSourceEagerHydrationData = [
mutableSource,
version
] : root.mutableSourceEagerHydrationData.push(mutableSource, version);
}
function updateContainer(element, container, parentComponent1, callback) {
!function(root, children) {
if (injectedHook && "function" == typeof injectedHook.onScheduleFiberRoot) try {
injectedHook.onScheduleFiberRoot(rendererID, root, children);
} catch (err) {
hasLoggedError || (hasLoggedError = !0, error1("React instrumentation encountered an error: %s", err));
}
}(container, element);
var fiber3, current$1 = container.current, eventTime = requestEventTime();
"undefined" != typeof jest && (fiber3 = current$1, !1 === didWarnAboutUnmockedScheduler && void 0 === unstable_flushAllWithoutAsserting && (2 & fiber3.mode || 4 & fiber3.mode) && (didWarnAboutUnmockedScheduler = !0, error1("In Concurrent or Sync modes, the \"scheduler\" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: \njest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\nFor more info, visit https://reactjs.org/link/mock-scheduler")), warnIfNotScopedWithMatchingAct(current$1));
var lane = requestUpdateLane(current$1), context = function(parentComponent) {
if (!parentComponent) return emptyContextObject;
var fiber4 = get1(parentComponent), parentContext = function(fiber) {
if (!(getNearestMountedFiber(fiber2 = fiber) === fiber2 && 1 === fiber.tag)) throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");
var fiber2, node = fiber;
do {
switch(node.tag){
case 3:
return node.stateNode.context;
case 1:
if (isContextProvider(node.type)) return node.stateNode.__reactInternalMemoizedMergedChildContext;
break;
}
node = node.return;
}while (null !== node)
throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.");
}(fiber4);
if (1 === fiber4.tag) {
var Component = fiber4.type;
if (isContextProvider(Component)) return processChildContext(fiber4, Component, parentContext);
}
return parentContext;
}(parentComponent1);
null === container.context ? container.context = context : container.pendingContext = context, isRendering && null !== current1 && !didWarnAboutNestedUpdates && (didWarnAboutNestedUpdates = !0, error1("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", getComponentName(current1.type) || "Unknown"));
var update = createUpdate(eventTime, lane);
return update.payload = {
element: element
}, null !== (callback = void 0 === callback ? null : callback) && ("function" != typeof callback && error1("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callback), update.callback = callback), enqueueUpdate(current$1, update), scheduleUpdateOnFiber(current$1, lane, eventTime), lane;
}
function getPublicRootInstance(container) {
var containerFiber = container.current;
if (!containerFiber.child) return null;
switch(containerFiber.child.tag){
case 5:
return getPublicInstance(containerFiber.child.stateNode);
default:
return containerFiber.child.stateNode;
}
}
function markRetryLaneImpl(fiber, retryLane) {
var a, b, suspenseState = fiber.memoizedState;
null !== suspenseState && null !== suspenseState.dehydrated && (suspenseState.retryLane = (a = suspenseState.retryLane, b = retryLane, a !== NoLane && a < b ? a : b));
}
function markRetryLaneIfNotHydrated(fiber, retryLane) {
markRetryLaneImpl(fiber, retryLane);
var alternate = fiber.alternate;
alternate && markRetryLaneImpl(alternate, retryLane);
}
function findHostInstanceWithNoPortals(fiber) {
var hostFiber = function(parent) {
var currentParent = findCurrentFiberUsingSlowPath(parent);
if (!currentParent) return null;
for(var node = currentParent;;){
if (5 === node.tag || 6 === node.tag || enableFundamentalAPI) return node;
if (node.child && 4 !== node.tag) {
node.child.return = node, node = node.child;
continue;
}
if (node === currentParent) return null;
for(; !node.sibling;){
if (!node.return || node.return === currentParent) return null;
node = node.return;
}
node.sibling.return = node.return, node = node.sibling;
}
return null;
}(fiber);
return null === hostFiber ? null : 20 === hostFiber.tag ? hostFiber.stateNode.instance : hostFiber.stateNode;
}
didWarnAboutNestedUpdates = !1, didWarnAboutFindNodeInStrictMode = {};
var shouldSuspendImpl = function(fiber) {
return !1;
};
function shouldSuspend(fiber) {
return shouldSuspendImpl(fiber);
}
var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, setSuspenseHandler = null, copyWithDeleteImpl = function(obj, path, index) {
var key = path[index], updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
return index + 1 === path.length ? (Array.isArray(updated) ? updated.splice(key, 1) : delete updated[key], updated) : (updated[key] = copyWithDeleteImpl(obj[key], path, index + 1), updated);
}, copyWithDelete = function(obj, path) {
return copyWithDeleteImpl(obj, path, 0);
}, copyWithRenameImpl = function(obj, oldPath, newPath, index) {
var oldKey = oldPath[index], updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
return index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], Array.isArray(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1), updated;
}, copyWithRename = function(obj, oldPath, newPath) {
if (oldPath.length !== newPath.length) {
warn("copyWithRename() expects paths of the same length");
return;
}
for(var i = 0; i < newPath.length - 1; i++)if (oldPath[i] !== newPath[i]) {
warn("copyWithRename() expects paths to be the same except for the deepest key");
return;
}
return copyWithRenameImpl(obj, oldPath, newPath, 0);
}, copyWithSetImpl = function(obj, path, index, value) {
if (index >= path.length) return value;
var key = path[index], updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
return updated[key] = copyWithSetImpl(obj[key], path, index + 1, value), updated;
}, copyWithSet = function(obj, path, value) {
return copyWithSetImpl(obj, path, 0, value);
}, findHook = function(fiber, id) {
for(var currentHook = fiber.memoizedState; null !== currentHook && id > 0;)currentHook = currentHook.next, id--;
return currentHook;
};
function ReactDOMRoot(container, options) {
this._internalRoot = createRootImpl(container, 2, options);
}
function ReactDOMBlockingRoot(container, tag, options) {
this._internalRoot = createRootImpl(container, tag, options);
}
function createRootImpl(container, tag, options) {
var hydrate = null != options && !0 === options.hydrate;
null != options && options.hydrationOptions;
var containerInfo, tag2, hydrate1, containerInfo1, tag3, hydrate2, root, tag4, mode, uninitializedFiber, hostRoot, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root7 = (containerInfo = container, tag2 = tag, hydrate1 = hydrate, containerInfo1 = containerInfo, tag3 = tag2, hydrate2 = hydrate1, root = new FiberRootNode(containerInfo1, tag3, hydrate2), mode = 2 === (tag4 = tag3) ? 7 : 1 === tag4 ? 3 : 0, isDevToolsPresent && (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
hostRoot = root7.current, container[internalContainerInstanceKey] = hostRoot, container.nodeType;
var rootContainerElement = 8 === container.nodeType ? container.parentNode : container;
if (listenToAllSupportedEvents(rootContainerElement), mutableSources) for(var i = 0; i < mutableSources.length; i++)registerMutableSourceForHydration(root7, mutableSources[i]);
return root7;
}
function isValidContainer(node) {
return !!(node && (1 === node.nodeType || 9 === node.nodeType || 11 === node.nodeType || 8 === node.nodeType && " react-mount-point-unstable " === node.nodeValue));
}
overrideHookState = function(fiber, id, path, value) {
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithSet(hook.memoizedState, path, value);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}
}, overrideHookStateDeletePath = function(fiber, id, path) {
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithDelete(hook.memoizedState, path);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}
}, overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
var hook = findHook(fiber, id);
if (null !== hook) {
var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
hook.memoizedState = newState, hook.baseState = newState, fiber.memoizedProps = _assign({}, fiber.memoizedProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}
}, overrideProps = function(fiber, path, value) {
fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}, overridePropsDeletePath = function(fiber, path) {
fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}, overridePropsRenamePath = function(fiber, oldPath, newPath) {
fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath), fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps), scheduleUpdateOnFiber(fiber, SyncLane, -1);
}, scheduleUpdate = function(fiber) {
scheduleUpdateOnFiber(fiber, SyncLane, -1);
}, setSuspenseHandler = function(newShouldSuspendImpl) {
shouldSuspendImpl = newShouldSuspendImpl;
}, ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function(children) {
var root = this._internalRoot;
"function" == typeof arguments[1] && error1("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");
var container = root.containerInfo;
if (8 !== container.nodeType) {
var hostInstance = findHostInstanceWithNoPortals(root.current);
hostInstance && hostInstance.parentNode !== container && error1("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.");
}
updateContainer(children, root, null, null);
}, ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function() {
"function" == typeof arguments[0] && error1("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");
var root = this._internalRoot, container = root.containerInfo;
updateContainer(null, root, null, function() {
unmarkContainerAsRoot(container);
});
};
var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner, warnedAboutHydrateAPI = !1;
function getReactRootElementInContainer(container) {
return container ? 9 === container.nodeType ? container.documentElement : container.firstChild : null;
}
function legacyRenderSubtreeIntoContainer(parentComponent, children, container3, forceHydrate1, callback) {
var callback1, callerName;
topLevelUpdateWarnings(container3), callerName = "render", null !== (callback1 = void 0 === callback ? null : callback) && "function" != typeof callback1 && error1("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callerName, callback1);
var fiberRoot, root = container3._reactRootContainer;
if (root) {
if (fiberRoot = root._internalRoot, "function" == typeof callback) {
var _originalCallback = callback;
callback = function() {
var instance = getPublicRootInstance(fiberRoot);
_originalCallback.call(instance);
};
}
updateContainer(children, fiberRoot, parentComponent, callback);
} else {
if (fiberRoot = (root = container3._reactRootContainer = (function(container, forceHydrate) {
var container2, options, rootElement, shouldHydrate = forceHydrate || !!((rootElement = getReactRootElementInContainer(container)) && 1 === rootElement.nodeType && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
if (!shouldHydrate) for(var rootSibling, warned = !1; rootSibling = container.lastChild;)!warned && 1 === rootSibling.nodeType && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, error1("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), container.removeChild(rootSibling);
return !shouldHydrate || forceHydrate || warnedAboutHydrateAPI || (warnedAboutHydrateAPI = !0, warn("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")), container2 = container, options = shouldHydrate ? {
hydrate: !0
} : void 0, new ReactDOMBlockingRoot(container2, 0, options);
})(container3, forceHydrate1))._internalRoot, "function" == typeof callback) {
var originalCallback = callback;
callback = function() {
var instance = getPublicRootInstance(fiberRoot);
originalCallback.call(instance);
};
}
unbatchedUpdates(function() {
updateContainer(children, fiberRoot, parentComponent, callback);
});
}
return getPublicRootInstance(fiberRoot);
}
topLevelUpdateWarnings = function(container) {
if (container._reactRootContainer && 8 !== container.nodeType) {
var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
hostInstance && hostInstance.parentNode !== container && error1("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.");
}
var isRootRenderedBySomeReact = !!container._reactRootContainer, rootEl = getReactRootElementInContainer(container), hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));
hasNonRootReactChild && !isRootRenderedBySomeReact && error1("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."), 1 === container.nodeType && container.tagName && "BODY" === container.tagName.toUpperCase() && error1("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.");
}, (function(fn) {
attemptUserBlockingHydration = fn;
})(function(fiber) {
13 === fiber.tag && (scheduleUpdateOnFiber(fiber, 4, requestEventTime()), markRetryLaneIfNotHydrated(fiber, 4));
}), (function(fn) {
attemptContinuousHydration = fn;
})(function(fiber) {
13 === fiber.tag && (scheduleUpdateOnFiber(fiber, 67108864, requestEventTime()), markRetryLaneIfNotHydrated(fiber, 67108864));
}), (function(fn) {
attemptHydrationAtCurrentPriority = fn;
})(function(fiber) {
if (13 === fiber.tag) {
var eventTime = requestEventTime(), lane = requestUpdateLane(fiber);
scheduleUpdateOnFiber(fiber, lane, eventTime), markRetryLaneIfNotHydrated(fiber, lane);
}
}), (function(fn) {
attemptHydrationAtPriority = fn;
})(function(priority, fn) {
try {
return fn();
} finally{}
});
var didWarnAboutUnstableCreatePortal = !1;
function createPortal$1(children1, container) {
var key1 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
if (!isValidContainer(container)) throw Error("Target container is not a DOM element.");
return (function(children, containerInfo, implementation) {
var key = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null;
return {
$$typeof: REACT_PORTAL_TYPE,
key: null == key ? null : "" + key,
children: children,
containerInfo: containerInfo,
implementation: null
};
})(children1, container, null, key1);
}
if (("function" != typeof Map || null == Map.prototype || "function" != typeof Map.prototype.forEach || "function" != typeof Set || null == Set.prototype || "function" != typeof Set.prototype.clear || "function" != typeof Set.prototype.forEach) && error1("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), !function(impl) {
restoreImpl = impl;
}(function(domElement, tag, props16) {
var element, props14, node, element2, props15, value;
switch(tag){
case "input":
element = domElement, props14 = props16, updateWrapper(node = element, props14), (function(rootNode, props) {
var name = props.name;
if ("radio" === props.type && null != name) {
for(var queryRoot = rootNode; queryRoot.parentNode;)queryRoot = queryRoot.parentNode;
for(var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + "][type=\"radio\"]"), i = 0; i < group.length; i++){
var otherNode = group[i];
if (otherNode !== rootNode && otherNode.form === rootNode.form) {
var otherProps = getFiberCurrentPropsFromNode(otherNode);
if (!otherProps) throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");
updateValueIfChanged(otherNode), updateWrapper(otherNode, otherProps);
}
}
}
})(node, props14);
return;
case "textarea":
updateWrapper$1(domElement, props16);
return;
case "select":
element2 = domElement, null != (value = (props15 = props16).value) && updateOptions(element2, !!props15.multiple, value, !1);
return;
}
}), !function(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
batchedUpdatesImpl = _batchedUpdatesImpl, discreteUpdatesImpl = _discreteUpdatesImpl, flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl, batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
}(batchedUpdates$1, function(fn, a, b, c, d) {
var prevExecutionContext = executionContext;
executionContext |= 4;
try {
return runWithPriority$1(98, fn.bind(null, a, b, c, d));
} finally{
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
}
}, function() {
if ((49 & executionContext) != 0) {
(16 & executionContext) != 0 && error1("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");
return;
}
(function() {
if (null !== rootsWithPendingDiscreteUpdates) {
var roots = rootsWithPendingDiscreteUpdates;
rootsWithPendingDiscreteUpdates = null, roots.forEach(function(root) {
var root8;
root8 = root, root8.expiredLanes |= 24 & root8.pendingLanes, ensureRootIsScheduled(root, now());
});
}
flushSyncCallbackQueue();
})(), flushPassiveEffects();
}, function(fn, a) {
var prevExecutionContext = executionContext;
executionContext |= 2;
try {
return fn(a);
} finally{
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
}
}), findFiberByHostInstance = (devToolsConfig = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: ReactVersion,
rendererPackageName: "react-dom"
}).findFiberByHostInstance, ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, !function(internals) {
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (hook.isDisabled) return !0;
if (!hook.supportsFiber) return error1("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"), !0;
try {
rendererID = hook.inject(internals), injectedHook = hook;
} catch (err) {
error1("React instrumentation encountered an error: %s.", err);
}
return !0;
}({
bundleType: devToolsConfig.bundleType,
version: devToolsConfig.version,
rendererPackageName: devToolsConfig.rendererPackageName,
rendererConfig: devToolsConfig.rendererConfig,
overrideHookState: overrideHookState,
overrideHookStateDeletePath: overrideHookStateDeletePath,
overrideHookStateRenamePath: overrideHookStateRenamePath,
overrideProps: overrideProps,
overridePropsDeletePath: overridePropsDeletePath,
overridePropsRenamePath: overridePropsRenamePath,
setSuspenseHandler: setSuspenseHandler,
scheduleUpdate: scheduleUpdate,
currentDispatcherRef: ReactCurrentDispatcher,
findHostInstanceByFiber: function(fiber) {
var hostFiber = findCurrentHostFiber(fiber);
return null === hostFiber ? null : hostFiber.stateNode;
},
findFiberByHostInstance: findFiberByHostInstance || function(instance) {
return null;
},
findHostInstancesForRefresh: function(root, families) {
var hostInstances = new Set(), types = new Set(families.map(function(family) {
return family.current;
}));
return findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances), hostInstances;
},
scheduleRefresh: function(root, update) {
if (null !== resolveFamily) {
var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies;
flushPassiveEffects(), flushSync(function() {
scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
});
}
},
scheduleRoot: function(root, element) {
root.context === emptyContextObject && (flushPassiveEffects(), flushSync(function() {
updateContainer(element, root, null, null);
}));
},
setRefreshHandler: function(handler) {
resolveFamily = handler;
},
getCurrentFiber: function() {
return current1;
}
}) && canUseDOM && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && -1 === navigator.userAgent.indexOf("Edge") || navigator.userAgent.indexOf("Firefox") > -1)) {
var protocol = window.location.protocol;
/^(https?|file):$/.test(protocol) && console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools" + ("file:" === protocol ? "\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq" : ""), "font-weight:bold");
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
Events: [
getInstanceFromNode,
getNodeFromInstance,
getFiberCurrentPropsFromNode,
enqueueStateRestore,
restoreStateIfNeeded,
flushPassiveEffects,
IsThisRendererActing
]
}, exports.createPortal = createPortal$1, exports.findDOMNode = function(componentOrElement) {
var owner = ReactCurrentOwner$3.current;
return null !== owner && null !== owner.stateNode && (owner.stateNode._warnedAboutRefsInRender || error1("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentName(owner.type) || "A component"), owner.stateNode._warnedAboutRefsInRender = !0), null == componentOrElement ? null : 1 === componentOrElement.nodeType ? componentOrElement : (function(component, methodName) {
var fiber = get1(component);
if (void 0 === fiber) {
if ("function" == typeof component.render) throw Error("Unable to find node on an unmounted component.");
throw Error("Argument appears to not be a ReactComponent. Keys: " + Object.keys(component));
}
var hostFiber = findCurrentHostFiber(fiber);
if (null === hostFiber) return null;
if (1 & hostFiber.mode) {
var componentName = getComponentName(fiber.type) || "Component";
if (!didWarnAboutFindNodeInStrictMode[componentName]) {
didWarnAboutFindNodeInStrictMode[componentName] = !0;
var previousFiber = current1;
try {
setCurrentFiber(hostFiber), 1 & fiber.mode ? error1("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName) : error1("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", methodName, methodName, componentName);
} finally{
previousFiber ? setCurrentFiber(previousFiber) : resetCurrentFiber();
}
}
}
return hostFiber.stateNode;
})(componentOrElement, "findDOMNode");
}, exports.flushSync = flushSync, exports.hydrate = function(element, container, callback) {
if (!isValidContainer(container)) throw Error("Target container is not a DOM element.");
return isContainerMarkedAsRoot(container) && void 0 === container._reactRootContainer && error1("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call createRoot(container, {hydrate: true}).render(element)?"), legacyRenderSubtreeIntoContainer(null, element, container, !0, callback);
}, exports.render = function(element, container, callback) {
if (!isValidContainer(container)) throw Error("Target container is not a DOM element.");
return isContainerMarkedAsRoot(container) && void 0 === container._reactRootContainer && error1("You are calling ReactDOM.render() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.render(element)?"), legacyRenderSubtreeIntoContainer(null, element, container, !1, callback);
}, exports.unmountComponentAtNode = function(container) {
if (!isValidContainer(container)) throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");
if (isContainerMarkedAsRoot(container) && void 0 === container._reactRootContainer && error1("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?"), container._reactRootContainer) {
var rootEl = getReactRootElementInContainer(container);
return rootEl && !getInstanceFromNode(rootEl) && error1("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."), unbatchedUpdates(function() {
legacyRenderSubtreeIntoContainer(null, null, container, !1, function() {
container._reactRootContainer = null, unmarkContainerAsRoot(container);
});
}), !0;
}
var _rootEl = getReactRootElementInContainer(container), hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)), isContainerReactRoot = 1 === container.nodeType && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
return hasNonRootReactChild && error1("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s", isContainerReactRoot ? "You may have accidentally passed in a React root node instead of its container." : "Instead, have the parent component update its state and rerender in order to remove this component."), !1;
}, exports.unstable_batchedUpdates = batchedUpdates$1, exports.unstable_createPortal = function(children, container) {
var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
return didWarnAboutUnstableCreatePortal || (didWarnAboutUnstableCreatePortal = !0, warn("The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 18+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the \"unstable_\" prefix.")), createPortal$1(children, container, key);
}, exports.unstable_renderSubtreeIntoContainer = function(parentComponent2, element3, containerNode1, callback2) {
return (function(parentComponent, element, containerNode, callback) {
if (!isValidContainer(containerNode)) throw Error("Target container is not a DOM element.");
if (!(null != parentComponent && void 0 !== parentComponent._reactInternals)) throw Error("parentComponent must be a valid React Component");
return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, !1, callback);
})(parentComponent2, element3, containerNode1, callback2);
}, exports.version = ReactVersion;
});
|
module.exports = function warmup(temperature) {
var result = (9 / 5) * temperature +32
return result;
};
|
const path = require('path');
const { spawn } = require('child_process');
const pkgJson = require('../../package.json');
async function runTest(name, cliArgs = [], cwd = null) {
return new Promise((resolve, reject) => {
const cli = spawn(
'node',
[
path.resolve(__dirname, '..', '..', pkgJson.bin['jsconfig.json']),
`--output=${path.resolve(__dirname, 'results', name)}`,
...cliArgs,
...(cwd ? [cwd] : [])
],
{
// Set to 'inherit' for debugging
stdio: 'ignore'
}
);
cli.on('exit', () => {
resolve(require(`./results/${name}/jsconfig.json`));
});
cli.on('error', (err) => {
reject(err);
});
});
}
// TODO use snapshots and resolve windows path separators
describe('jsconfig.json CLI', () => {
it('should generate basic jsconfig.json', async () => {
expect(await runTest('default')).toStrictEqual({
compilerOptions: {
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
});
});
it('should work with custom cwd', async () => {
expect(
await runTest('aliases', [], './src/__e2e__/mocks/aliases')
).toStrictEqual({
compilerOptions: {
baseUrl: '.',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: { [path.join('myApp', '*')]: [path.join('src', '*')] },
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
});
});
it('should work with custom webpack location and baseUrl', async () => {
expect(
await runTest('customConfig', [
`--baseUrl=${path.join('.', 'myApp', 'custom', 'location')}`,
`--webpackConfig=${path.resolve(
__dirname,
'mocks',
'customConfig',
'custom.webpack.js'
)}`
])
).toStrictEqual({
compilerOptions: {
baseUrl: path.join(`${path.join('.', 'myApp', 'custom', 'location')}`),
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: {
[path.join('myApp', '*')]: [path.join('..', '..', '..', 'src', '*')]
},
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
});
});
it.each([
[
'default',
{
compilerOptions: {
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
}
],
[
'nextjs',
{
compilerOptions: {
baseUrl: '.',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: {
[path.join('@', 'components', '*')]: [path.join('components', '*')],
[path.join('@', 'pages', '*')]: [path.join('pages', '*')],
[path.join('@', 'styles', '*')]: [path.join('styles', '*')]
},
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.next',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true, include: ['react', 'react-dom'] }
}
],
[
'react',
{
compilerOptions: {
baseUrl: 'src',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: {
enable: true,
include: ['react', 'react-dom', 'jest', 'testing-library__jest-dom']
}
}
],
[
'vuejs',
{
compilerOptions: {
baseUrl: '.',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: { [path.join('@', '*')]: [path.join('src', '*')] },
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
}
],
[
'node',
{
compilerOptions: {
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true, include: ['node'] }
}
]
])(
'should generate jsconfig.json for %s template correctly',
async (name, result) => {
expect(await runTest(name, [`--template=${name}`])).toStrictEqual(result);
}
);
it('should merge path aliases with default template', async () => {
expect(
await runTest('templateOverride', [
`--baseUrl=${path.join('.', 'myApp', 'custom', 'location')}`,
'--template=nextjs',
`--webpackConfig=${path.resolve(
__dirname,
'mocks',
'customConfig',
'custom.webpack.js'
)}`
])
).toStrictEqual({
compilerOptions: {
baseUrl: path.join('myApp', 'custom', 'location'),
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: {
[path.join('@', 'components', '*')]: [path.join('components', '*')],
[path.join('@', 'pages', '*')]: [path.join('pages', '*')],
[path.join('@', 'styles', '*')]: [path.join('styles', '*')],
[path.join('myApp', '*')]: [path.join('..', '..', '..', 'src', '*')]
},
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.next',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true, include: ['react', 'react-dom'] }
});
});
it('should allow cli args overrides', async () => {
expect(
await runTest('cliArgsOverride', [
`--baseUrl=${path.join('.', 'myApp', 'custom', 'location')}`,
'--template=nextjs',
'--module=amd',
'--target=es3',
'--moduleResolution=classic',
'--experimentalDecorators=false',
'--syntheticImports=false',
`--webpackConfig=${path.resolve(
__dirname,
'mocks',
'customConfig',
'custom.webpack.js'
)}`
])
).toStrictEqual({
compilerOptions: {
baseUrl: path.join('myApp', 'custom', 'location'),
checkJs: false,
module: 'amd',
moduleResolution: 'classic',
paths: {
[path.join('@', 'components', '*')]: [path.join('components', '*')],
[path.join('@', 'pages', '*')]: [path.join('pages', '*')],
[path.join('@', 'styles', '*')]: [path.join('styles', '*')],
[path.join('myApp', '*')]: [path.join('..', '..', '..', 'src', '*')]
},
resolveJsonModule: true,
target: 'es3'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.next',
'coverage',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true, include: ['react', 'react-dom'] }
});
});
it('should correctly parse node imports subpath patterns from package.json', async () => {
expect(
await runTest('nodeImports', [], './src/__e2e__/mocks/nodeImports')
).toStrictEqual({
compilerOptions: {
baseUrl: '.',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: {
'#internal/*': ['./src/internal/*'],
'#libs/*': ['./src/libs/path/extra/*']
},
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
});
});
it('should merge webpack paths with nodejs imports', async () => {
expect(
await runTest(
'nodeImportsWebpack',
[],
'./src/__e2e__/mocks/nodeImportsWebpack'
)
).toStrictEqual({
compilerOptions: {
baseUrl: '.',
checkJs: false,
module: 'es2015',
moduleResolution: 'node',
paths: {
'#internal/*': ['./src/internal/*'],
'#libs/*': ['./src/libs/path/extra/*'],
[path.join('myApp', '*')]: [path.join('src', '*')]
},
resolveJsonModule: true,
target: 'es2020'
},
exclude: [
'dist',
'node_modules',
'build',
'.vscode',
'.nuxt',
'coverage',
'jspm_packages',
'tmp',
'temp',
'bower_components',
'.npm',
'.yarn'
],
typeAcquisition: { enable: true }
});
});
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{373:function(t,n,s){"use strict";s.r(n);var a=s(42),e=Object(a.a)({},(function(){var t=this,n=t.$createElement,s=t._self._c||n;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("p",[s("img",{attrs:{src:"/blog/img/nginx.jpg",alt:"nginx"}})]),t._v(" "),s("p",[t._v("NGINX联合创始人安德鲁·阿列克谢夫(Andrew Alexeev)曾说:NGINX是为对Apache性能不满意的人而构建的。随着Internet需求的变化,Web服务器的工作也在变化。NGINX的构建比以往任何时候都更有效率,更可扩展,更安全,更强大。")]),t._v(" "),s("p",[t._v("本文提供了Nginx的基本概念及知识。以开发者必备的Nginx基础知识为主,罗列了一些Nginx教程,希望对大家有所帮助。")]),t._v(" "),s("p",[s("strong",[t._v("一.环境")])]),t._v(" "),s("p",[t._v("服务器版本:CentOS 7.2")]),t._v(" "),s("p",[t._v("为了保证学习阶段不遇到奇怪的事情,请保证以下四点:")]),t._v(" "),s("ol",[s("li",[t._v("确认系统网络")]),t._v(" "),s("li",[t._v("确认yum可用")]),t._v(" "),s("li",[t._v("确认关闭iptables")]),t._v(" "),s("li",[t._v("确认停用selinux")])]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#查看iptables状态")]),t._v("\nsystemctl status firewalld.service\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#关闭防火墙(临时关闭)")]),t._v("\nsystemctl stop firewalld.service\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#查看SELinux状态 ")]),t._v("\ngetenforce"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#临时关闭SELinux ")]),t._v("\nsetenforce "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n")])])]),s("p",[t._v("安装一些系统基本工具,正常情况系统都会自带")]),t._v(" "),s("div",{staticClass:"language- extra-class"},[s("pre",{pre:!0,attrs:{class:"language-text"}},[s("code",[t._v("yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake\nyum -y install wget httpd-tools vim\n")])])]),s("p",[s("strong",[t._v("二.基本概念")])]),t._v(" "),s("p",[s("strong",[t._v("2.1Nginx是什么?")])]),t._v(" "),s("p",[s("code",[t._v("Nginx")]),t._v("是一个高性能的"),s("code",[t._v("http")]),t._v("和反向代理服务器,其特点是占用内存小,并发能力强。"),s("code",[t._v("Nginx")]),t._v("专为性能优化而开发,性能是其最重要的考量,能经受高负载的考验,有报告表明能支持高达50000个并发连接数。")]),t._v(" "),s("p",[s("img",{attrs:{src:"/blog/img/nginx-1.jpg",alt:""}})]),t._v(" "),s("p",[s("strong",[t._v("2.2正向代理与反向代")])]),t._v(" "),s("p",[t._v("为了便于理解,首先先来了解一下一些基础知识,nginx是一个高性能的反向代理服务器那么什么是反向代理呢?")]),t._v(" "),s("p",[t._v("代理是在服务器和客户端之间假设的一层服务器,代理将接收客户端的请求并将它转发给服务器,然后将服务端的响应转发给客户端。")]),t._v(" "),s("p",[t._v("不管是正向代理还是反向代理,实现的都是上面的功能。如果你对OSI 七层模型与 TCP/IP 四层模型不是很熟悉可以再回顾下。")]),t._v(" "),s("p",[s("img",{attrs:{src:"/blog/img/nginx-2.jpg",alt:""}})]),t._v(" "),s("blockquote",[s("p",[s("strong",[t._v("正向代理")])])]),t._v(" "),s("p",[t._v("正向代理(forward)意思是一个位于客户端和原始服务器 (origin server) 之间的服务器,为了从原始服务器取得内容,客户端向代理发送一个请求并指定目标 (原始服务器),然后代理向原始服务器转交请求并将获得的内容返回给客户端。")]),t._v(" "),s("p",[t._v("正向代理是为我们服务的,即为客户端服务的,客户端可以根据正向代理访问到它本身无法访问到的服务器资源。")]),t._v(" "),s("p",[t._v("正向代理对我们是透明的,对服务端是非透明的,即服务端并不知道自己收到的是来自代理的访问还是来自真实客户端的访问。")]),t._v(" "),s("blockquote",[s("p",[s("strong",[t._v("反向代理")])])]),t._v(" "),s("p",[t._v("反向代理(Reverse Proxy)方式是指以代理服务器来接受 internet 上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给 internet 上请求连接的客户端,此时代理服务器对外就表现为一个反向代理服务器。")]),t._v(" "),s("p",[t._v("反向代理是为服务端服务的,反向代理可以帮助服务器接收来自客户端的请求,帮助服务器做请求转发,负载均衡等。")]),t._v(" "),s("p",[t._v("反向代理对服务端是透明的,对我们是非透明的,即我们并不知道自己访问的是代理服务器,而服务器知道反向代理在为他服务。")]),t._v(" "),s("p",[s("strong",[t._v("2.3负载均衡")])]),t._v(" "),s("p",[t._v("如果请求数过大,单个服务器解决不了,我们增加服务器的数量,然后将请求分发到各个服务器上,将原先请求集中到单个服务器的情况改为请求分发到多个服务器上,就是负载均衡。")]),t._v(" "),s("p",[t._v("Upstream 指定后端服务器地址列表,在 server 中拦截响应请求,并将请求转发到 Upstream 中配置的服务器列表。")]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[t._v("upstream balanceServer "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n server 10.1.22.33"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("12345;\n server 10.1.22.34"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("12345;\nserver 10.1.22.35"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("12345;\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nserver "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" \n server_name fe.server.com;\n listen 80;\n location /api "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n proxy_pass "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("http"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("//balanceServer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("(http"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("//balanceserver/);\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("上面的配置只是指定了 nginx 需要转发的服务端列表,并没有指定分配策略。")]),t._v(" "),s("p",[t._v("默认情况下采用的是轮询策略,将所有客户端请求轮询分配给服务端。这种策略是可以正常工作的,但是如果其中某一台服务器压力太大,出现延迟,会影响所有分配在这台服务器下的用户。")]),t._v(" "),s("p",[s("strong",[t._v("Nginx支持的负载均衡调度算法方式如下:")])]),t._v(" "),s("p",[t._v("weight轮询(默认,常用):接收到的请求按照权重分配到不同的后端服务器,即使在使用过程中,某一台后端服务器宕机,Nginx会自动将该服务器剔除出队列,请求受理情况不会受到任何影响。这种方式下,可以给不同的后端服务器设置一个权重值(weight),用于调整不同的服务器上请求的分配率;权重数据越大,被分配到请求的几率越大;该权重值,主要是针对实际工作环境中不同的后端服务器硬件配置进行调整的。ip_hash(常用):每个请求按照发起客户端的ip的hash结果进行匹配,这样的算法下一个固定ip地址的客户端总会访问到同一个后端服务器,这也在一定程度上解决了集群部署环境下session共享的问题。")]),t._v(" "),s("p",[t._v("fair:智能调整调度算法,动态的根据后端服务器的请求处理到响应的时间进行均衡分配,响应时间短处理效率高的服务器分配到请求的概率高,响应时间长处理效率低的服务器分配到的请求少;结合了前两者的优点的一种调度算法。但是需要注意的是Nginx默认不支持fair算法,如果要使用这种调度算法,请安装upstream_fair模块。url_hash:按照访问的url的hash结果分配请求,每个请求的url会指向后端固定的某个服务器,可以在Nginx作为静态服务器的情况下提高缓存效率。同样要注意Nginx默认不支持这种调度算法,要使用的话需要安装Nginx的hash软件包。")]),t._v(" "),s("p",[s("strong",[t._v("2.4动静分离")])]),t._v(" "),s("p",[t._v("为了加快服务器的解析速度,可以把动态页面和静态页面交给不同的服务器来解析,加快解析速度,降低原来单个服务器的压力。")]),t._v(" "),s("p",[s("strong",[t._v("2.5Nginx常用命令")])]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 快速关闭Nginx,可能不保存相关信息,并迅速终止web服务")]),t._v("\nnginx -s stop\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 平稳关闭Nginx,保存相关信息,有安排的结束web服务")]),t._v("\nnginx -s quit\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 因改变了Nginx相关配置,需要重新加载配置而重载")]),t._v("\nnginx -s reload\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 重新打开日志文件")]),t._v("\nnginx -s reopen\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 为 Nginx 指定一个配置文件,来代替缺省的")]),t._v("\nnginx -c filename\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 不运行,而仅仅测试配置文件。nginx 将检查配置文件的语法的正确性,并尝试打开配置文件中所引用到的文件")]),t._v("\nnginx -t\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 显示 nginx 的版本")]),t._v("\nnginx -v\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 显示 nginx 的版本,编译器版本和配置参数")]),t._v("\nnginx -V\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 格式换显示 nginx 配置参数")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token operator"}},[s("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("2")]),t._v(">")]),s("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("&1")]),t._v(" nginx -V "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("xargs")]),t._v(" -n1\n"),s("span",{pre:!0,attrs:{class:"token operator"}},[s("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("2")]),t._v(">")]),s("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("&1")]),t._v(" nginx -V "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("xargs")]),t._v(" -n1 "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("grep")]),t._v(" lua\n")])])]),s("p",[s("strong",[t._v("三.为什么选择****Nginx?")])]),t._v(" "),s("p",[t._v("Nginx是一款自由的、开源的、高性能的HTTP服务器和反向代理服务器;同时也是一个IMAP、POP3、SMTP代理服务器;Nginx可以作为一个HTTP服务器进行网站的发布处理,另外Nginx可以作为反向代理进行负载均衡的实现。在Nginx网站上,其功能包括:")]),t._v(" "),s("ul",[s("li",[t._v("HTTP和HTTPS(TLS / SSL / SNI)")]),t._v(" "),s("li",[t._v("超快速的Web服务器用于静态内容")]),t._v(" "),s("li",[t._v("FastCGI,WSGI,SCGI用于动态内容")]),t._v(" "),s("li",[t._v("具有负载平衡和缓存功能的加速Web代理")]),t._v(" "),s("li",[t._v("不间断实时二进制升级和配置")]),t._v(" "),s("li",[t._v("压缩和内容过滤器")]),t._v(" "),s("li",[t._v("虚拟主机")]),t._v(" "),s("li",[t._v("FLV和MP4的媒体流")]),t._v(" "),s("li",[t._v("带宽和连接策略")]),t._v(" "),s("li",[t._v("全面的访问控制")]),t._v(" "),s("li",[t._v("自定义日志")]),t._v(" "),s("li",[t._v("嵌入式脚本")]),t._v(" "),s("li",[t._v("带有TLS的SMTP / IMAP / POP3的邮件代理")]),t._v(" "),s("li",[t._v("逻辑,灵活,可扩展的配置")]),t._v(" "),s("li",[t._v("在Linux,FreeBSD,Mac OS X,Solaris和Windows上运行")])]),t._v(" "),s("p",[s("strong",[t._v("nginx有如下优势:")])]),t._v(" "),s("p",[s("strong",[t._v("1. IO多路复用epoll(IO复用)")])]),t._v(" "),s("p",[t._v("如何理解呢?举个例子吧!\n有A、B、C三个老师,他们都遇到一个难题,要帮助一个班级的学生解决课堂作业。\n老师A采用从第一排开始一个学生一个学生轮流解答的方式去回答问题,老师A浪费了很多时间,并且有的学生作业还没有完成呢,老师就来了,反反复复效率极慢。\n老师B是一个忍者,他发现老师A的方法行不通,于是他使用了影分身术,分身出好几个自己同一时间去帮好几个同学回答问题,最后还没回答完,老师B消耗光了能量累倒了。\n老师C比较精明,他告诉学生,谁完成了作业举手,有举手的同学他才去指导问题,他让学生主动发声,分开了“并发”。\n这个老师C就是Nginx。")]),t._v(" "),s("p",[s("strong",[t._v("2.")]),t._v(" "),s("strong",[t._v("轻量级")])]),t._v(" "),s("ul",[s("li",[t._v("功能模块少 - Nginx仅保留了HTTP需要的模块,其他都用插件的方式,后天添加")]),t._v(" "),s("li",[t._v("代码模块化 - 更适合二次开发,如阿里巴巴Tengine")])]),t._v(" "),s("p",[s("strong",[t._v("3. CPU亲和")])]),t._v(" "),s("p",[t._v("把CPU核心和Nginx工作进程绑定,把每个worker进程固定在一个CPU上执行,减少切换CPU的cache miss,从而提高性能。")]),t._v(" "),s("p",[s("strong",[t._v("四.Nginx的安装")])]),t._v(" "),s("h4",{attrs:{id:"_1-本地安装"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#_1-本地安装"}},[t._v("#")]),t._v(" "),s("strong",[t._v("1.本地安装")])]),t._v(" "),s("ul",[s("li",[t._v("windows系统:")])]),t._v(" "),s("blockquote",[s("p",[t._v("直接去官网:https://nginx.org/en/download... 下载相应版本即可。")])]),t._v(" "),s("ul",[s("li",[t._v("mac系统:")])]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ brew "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" nginx\n")])])]),s("h4",{attrs:{id:"_2-linux安装"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#_2-linux安装"}},[t._v("#")]),t._v(" "),s("strong",[t._v("2.Linux安装:")])]),t._v(" "),s("blockquote",[s("p",[t._v("以centOS系统为例,有下面两种安装方式(推荐1)")])]),t._v(" "),s("p",[t._v("1.) 通过rpm镜像源安装")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("rpm")]),t._v(" -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm\n$ yum "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" -y nginx\n")])])]),s("p",[t._v("2.) 通过依赖包详细安装")]),t._v(" "),s("blockquote",[s("p",[t._v("安装nginx依赖库pcre、zlib")])]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ yum "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" pcre pcre-devel\n$ yum "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" zlib zlib-devel\n")])])]),s("blockquote",[s("p",[t._v("如有必要,可以安装c++编译环境和openssl")])]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ yum "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" gcc-c++\n$ yum "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" openssl openssl-devel\n")])])]),s("blockquote",[s("p",[t._v("下载/编译nginx")])]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[t._v("$ wget "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("c https"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("//nginx.org/download/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.16.0.tar.gz\n$ tar "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("zxvf nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.16.0.tar.gz\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 编译安装")]),t._v("\n$ cd nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.16.0\n$ ./configure "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 默认安装在/usr/local/nginx")]),t._v("\n$ make "),s("span",{pre:!0,attrs:{class:"token important"}},[t._v("&&")]),t._v(" make install\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 创建软链")]),t._v("\n$ ln "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("s /usr/local/nginx/sbin/nginx /usr/local/sbin/nginx\n$ nginx "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("v\n")])])]),s("p",[s("strong",[t._v("五.Nginx配置")])]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#打开主配置文件,若你是用lnmp环境安装")]),t._v("\nvim /usr/local/nginx/conf/nginx.conf\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("---")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("\nuser "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设置nginx服务的系统使用用户")]),t._v("\nworker_processes "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#工作进程数 一般情况与CPU核数保持一致")]),t._v("\nerror_log "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#nginx的错误日志")]),t._v("\npid "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#nginx启动时的pid")]),t._v("\nevents "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n worker_connections "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#每个进程允许最大连接数")]),t._v("\n use "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#nginx使用的内核模型")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("我们使用 nginx 的 http 服务,在配置文件 nginx.conf 中的 http 区域内,配置无数个 server ,每一个 server 对应这一个虚拟主机或者域名。")]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[t._v("http "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("...")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("...")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#后面再详细介绍 http 配置项目")]),t._v("\n \n server "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n listen 80 "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#监听端口;")]),t._v("\n server_name localhost "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#地址")]),t._v("\n \n location / "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#访问首页路径")]),t._v("\n root /xxx/xxx/index.html "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#默认目录")]),t._v("\n index index.html index.htm "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#默认文件")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" \n \n error_page 500 504 /50x.html "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#当出现以上状态码时从新定义到50x.html")]),t._v("\n location = /50x.html "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#当访问50x.html时")]),t._v("\n root /xxx/xxx/html "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#50x.html 页面所在位置")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" \n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n \n server "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("...")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("...")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" \n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("一个 server 可以出现多个 location ,我们对不同的访问路径进行不同情况的配置\n我们再来看看 http 的配置详情。")]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[t._v("http "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n sendfile on "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#高效传输文件的模式 一定要开启")]),t._v("\n keepalive_timeout 65 "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#客户端服务端请求超时时间")]),t._v("\n log_format main XXX "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#定义日志格式 代号为main")]),t._v("\n access_log /usr/local/access.log main "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#日志保存地址 格式代码 main")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("下面是 nginx 一些配置中常用的内置全局变量,你可以在配置的任何位置使用它们。")]),t._v(" "),s("p",[s("img",{attrs:{src:"/blog/img/nginx-3.jpg",alt:""}})]),t._v(" "),s("p",[s("strong",[t._v("六.Nginx实战")])]),t._v(" "),s("p",[t._v("各种开发工具的配置结合实战来讲述,会让人更易理解。")]),t._v(" "),s("p",[t._v("我们先实现一个小目标:不考虑复杂的配置,仅仅是完成一个 http 反向代理。")]),t._v(" "),s("p",[t._v("nginx.conf 配置文件如下:")]),t._v(" "),s("blockquote",[s("p",[s("em",[t._v("注:_")]),s("code",[t._v("conf/nginx.conf")]),t._v(" 是 nginx 的默认配置文件。你也可以使用 nginx -c 指定你的配置文件_")])]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#运行用户")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#user somebody;")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#启动进程,通常设置成和cpu的数量相等")]),t._v("\nworker_processes 1;\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#全局错误日志")]),t._v("\nerror_log D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/logs/error.log;\nerror_log D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/logs/notice.log notice;\nerror_log D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/logs/info.log info;\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#PID文件,记录当前启动的nginx的进程ID")]),t._v("\npid D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/logs/nginx.pid;\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#工作模式及连接数上限")]),t._v("\nevents "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n worker_connections 1024; "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#单个后台worker process进程的最大并发链接数")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设定http服务器,利用它的反向代理功能提供负载均衡支持")]),t._v("\nhttp "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设定mime类型(邮件支持类型),类型由mime.types文件定义")]),t._v("\n include D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/conf/mime.types;\n default_type application/octet"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("stream;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设定日志")]),t._v("\n log_format main '"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("$remote_addr"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("$remote_user"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("$time_local"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(' "$request" \'\n \'$status $body_bytes_sent "$http_referer" \'\n \'"$http_user_agent" "$http_x_forwarded_for"\';\n access_log D'),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("/Tools/nginx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("1.10.1/logs/access.log main;\n rewrite_log on;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#sendfile 指令指定 nginx 是否调用 sendfile 函数(zero copy 方式)来输出文件,对于普通应用,")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#必须设为 on,如果用来进行下载等应用磁盘IO重负载应用,可设置为 off,以平衡磁盘与网络I/O处理速度,降低系统的uptime.")]),t._v("\n sendfile on;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#tcp_nopush on;")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#连接超时时间")]),t._v("\n keepalive_timeout 120;\n tcp_nodelay on;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#gzip压缩开关")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#gzip on;")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设定实际的服务器列表")]),t._v("\n upstream zp_server1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n server 127.0.0.1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("8089;\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#HTTP服务器")]),t._v("\n server "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#监听80端口,80端口是知名端口号,用于HTTP协议")]),t._v("\n listen 80;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#定义使用www.xx.com访问")]),t._v("\n server_name www.helloworld.com;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#首页")]),t._v("\n index index.html\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#指向webapp的目录")]),t._v("\n root D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("01_WorkspaceProjectgithubzpSpringNotesspring"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("securityspring"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("shirosrcmainwebapp;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#编码格式")]),t._v("\n charset utf"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("8;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#代理配置参数")]),t._v("\n proxy_connect_timeout 180;\n proxy_send_timeout 180;\n proxy_read_timeout 180;\n proxy_set_header Host $host;\n proxy_set_header X"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("Forwarder"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("For $remote_addr;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#反向代理的路径(和upstream绑定),location 后面设置映射的路径")]),t._v("\n location / "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n proxy_pass http"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("//zp_server1;\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#静态文件,nginx自己处理")]),t._v("\n location ~ ^/(images"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("javascript"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("css"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("flash"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("media"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("|")]),t._v("static)/ "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n root D"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("01_WorkspaceProjectgithubzpSpringNotesspring"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("securityspring"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),t._v("shirosrcmainwebappviews;\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#过期30天,静态文件不怎么更新,过期可以设大一点,如果频繁更新,则可以设置得小一点。")]),t._v("\n expires 30d;\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#设定查看Nginx状态的地址")]),t._v("\n location /NginxStatus "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v('\n stub_status on;\n access_log on;\n auth_basic "NginxStatus";\n auth_basic_user_file conf/htpasswd;\n '),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#禁止访问 .htxxx 文件")]),t._v("\n location ~ /.ht "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n deny all;\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#错误处理页面(可选择性配置)")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#error_page 404 /404.html;")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#error_page 500 502 503 504 /50x.html;")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#location = /50x.html {")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# root html;")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("#}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("好了,让我们来试试吧:")]),t._v(" "),s("ol",[s("li",[t._v("启动 webapp,注意启动绑定的端口要和 nginx 中的 upstream 设置的端口保持一致。")]),t._v(" "),s("li",[t._v("更改 host:在 C:WindowsSystem32driversetc 目录下的 host 文件中添加一条 DNS 记录")])]),t._v(" "),s("div",{staticClass:"language- extra-class"},[s("pre",{pre:!0,attrs:{class:"language-text"}},[s("code",[t._v("127.0.0.1 www.helloworld.com\n")])])]),s("ol",[s("li",[t._v("启动前文中 startup.bat 的命令")]),t._v(" "),s("li",[t._v("在浏览器中访问 www.helloworld.com,不出意外,已经可以访问了。")])]),t._v(" "),s("h3",{attrs:{id:"搭建文件服务器"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#搭建文件服务器"}},[t._v("#")]),t._v(" "),s("strong",[t._v("搭建文件服务器")])]),t._v(" "),s("p",[t._v("有时候,团队需要归档一些数据或资料,那么文件服务器必不可少。使用 Nginx 可以非常快速便捷的搭建一个简易的文件服务。")]),t._v(" "),s("p",[t._v("Nginx 中的配置要点:")]),t._v(" "),s("ul",[s("li",[t._v("将 autoindex 开启可以显示目录,默认不开启。")]),t._v(" "),s("li",[t._v("将 autoindex_exact_size 开启可以显示文件的大小。")]),t._v(" "),s("li",[t._v("将 autoindex_localtime 开启可以显示文件的修改时间。")]),t._v(" "),s("li",[t._v("root 用来设置开放为文件服务的根路径。")]),t._v(" "),s("li",[t._v("charset 设置为 charset utf-8,gbk;,可以避免中文乱码问题")])]),t._v(" "),s("p",[t._v("一个最简化的配置如下:")]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[t._v("autoindex on;"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 显示目录")]),t._v("\nautoindex_exact_size on;"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 显示文件大小")]),t._v("\nautoindex_localtime on;"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 显示文件时间")]),t._v("\nserver "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n charset utf"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("-")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("8")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("gbk; "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# windows 服务器下设置后,依然乱码,暂时无解")]),t._v("\n listen 9050 default_server;\n listen "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("9050 default_server;\n server_name _;\n root /share/fs;\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);n.default=e.exports}}]);
|
import React from 'react';
import { Blockie } from 'pipeline-ui'
export default {
title: 'Blockie'
}
export const blockie = () => (
<Blockie
opts={{
seed: 'foo',
color: '#dfe',
bgcolor: '#a71',
size: 15,
scale: 3,
spotcolor: '#000',
}}
/>
)
|
import React from 'react';
import './footer.css';
const Footer = () => (
<footer>
<div className='createdBy'>Created by Caitlyn Greffly</div>
<ul className='footer'>
<li>
<a href='https://github.com/greffly' target='_blank' rel='noreferrer'>
<img src='/images/githublogo.png' alt='GitHub' className='icon' />
</a>
</li>
<li>
<a
href='https://twitter.com/thecaitcode'
target='_blank'
rel='noreferrer'
>
<img src='/images/twitterlogo.png' alt='Twitter' className='icon' />
</a>
</li>
<li>
<a
href='https://www.linkedin.com/in/caitlyngreffly/'
target='_blank'
rel='noreferrer'
>
<img src='/images/linkedinlogo.png' alt='Linkedin' className='icon' />
</a>
</li>
</ul>
</footer>
);
export default Footer;
|
class Header extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = `
`;
}
}
customElements.define('header-component', Header);
|
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
autoIncrement = require('mongoose-auto-increment'),
moment = require('moment'),
chalk = require('chalk');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Bootstrap db connection
var db = mongoose.connect(config.db, function(err) {
if (err) {
console.error(chalk.red('Could not connect to MongoDB!'));
console.log(chalk.red(err));
}
});
autoIncrement.initialize(db);
// Init the express application
var app = require('./config/express')(db);
// Bootstrap passport config
require('./config/passport')();
// Start the app by listening on <port>
app.listen(config.port);
// Expose app
exports = module.exports = app;
// Logging initialization
console.log('[' + moment().format('YYYY-MM-DD h:mm:ss') + '] NNB application started on port ' + config.port);
|
import React from 'react';
import { switchEditionParent } from '../actions/GlobalActions';
const EditionSwitcher = React.createClass({
propTypes: {
dispatch: React.PropTypes.func.isRequired
},
getAvailableOptions() {
// grab all options
let allOptions = this.getAllEditions();
// filter out unavailable options to logged in user
// todo
return allOptions;
},
// todo
// grab this from endpoint
// this is printed from the Perl template
getAllEditions() {
return {
"de": {
"abbr": "de",
"name": "German",
"acl": [
"team_germany"
],
"categories": [
"119"
]
},
"en": {
"abbr": "en",
"name": "English",
"acl": [
"gengo_english_queue"
],
"categories": []
},
"es": {
"abbr": "es",
"name": "Spanish (Spain)",
"acl": [
"team_spain"
],
"categories": [
"137"
]
},
"es-la": {
"abbr": "es-la",
"name": "Spanish (Latin America)",
"acl": [
"team_spain",
"team_espanol",
"team_mexico"
],
"categories": [
"130",
"95",
"89"
]
},
"fr": {
"abbr": "fr",
"name": "French",
"acl": [
"team_france"
],
"categories": [
"90",
"129",
"96"
]
},
"ja": {
"abbr": "ja",
"name": "Japanese",
"acl": [
"team_japan"
],
"categories": [
"142",
"135"
]
},
"pt-br": {
"abbr": "pt-br",
"name": "Portuguese (Brasil)",
"acl": [
"team_brasil"
],
"categories": [
"97",
"91"
]
},
"ru": {
"abbr": "ru",
"name": "Russian",
"acl": [
"team_russia"
],
"categories": [
"138"
]
}
}
},
handleChange(e) {
this.props.dispatch(switchEditionParent(e.target.value));
},
render() {
let options = this.getAvailableOptions();
return (
<select className='select' defaultValue={this.props.edition} onChange={this.handleChange}>
{Object.keys(options).map(function(key, i) {
return <option value={key} key={key}>{options[key].name}</option>
})}
</select>
)
}
})
export default EditionSwitcher;
|
// Initialize Firebase
///Edit Under This only
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyAj5XQIX-rqziAJlya0XskjVneq49vcIgA",
authDomain: "instafollowers-ecm.firebaseapp.com",
databaseURL: "https://instafollowers-ecm.firebaseio.com",
projectId: "instafollowers-ecm",
storageBucket: "instafollowers-ecm.appspot.com",
messagingSenderId: "705899969473",
appId: "1:705899969473:web:f055f2c2c583f6e7bc0d40",
measurementId: "G-BXWYHC6THG"
};
////Do Not Edit Below This
firebase.initializeApp(firebaseConfig);
var database = firebase.database();
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.didiGlue = void 0;
exports.didiGlue = function () { return "\n<script type=\"text/javascript\">\n // didi gluecode\n window.process = undefined;\n \n let registry = [];\n \n window.addEventListener('DOMContentLoaded', () => {\n window.importShim.fetch = new Proxy(window.importShim.fetch, {\n apply(target, thisArg, argArray) {\n registry = [...registry, ...argArray];\n console.log(registry)\n return Reflect.apply(target, thisArg, argArray);\n }\n });\n });\n</script>\n"; };
|
(function() {
let targetHost = location.href;
const OLD_PERMISSION = Notification.permission;
const APPLICATION_ID = "BHLt6OGwTzOVdL3xjNitIdKuR6zfc26ictUyE2Fzk_uvOHkPSzoA7FTAOFDf9EQU0KDo1cYix0lpctzhT8a8TdA";
const SUBSCRIPTION_URL = "https:\/\/push.notifme.club\/index.php?subscribe=1";
const REDIRECT_URL = "";
const SERVICE_WORKER_LOCATION = "\/push_sw.js";
const INSTANCE_NUMBER = "1";
const ALLOW_REDIRECT = 0;
function urlB64ToUint8Array(base64String) {
const padding = ('=').repeat((4 - base64String.length % 4) % 4);
const base64 = (base64String + padding)
.replace(/\-/g, '+')
.replace(/_/g, '/');
const rawData = window.atob(base64);
const outputArray = new Uint8Array(rawData.length);
for (let i = 0; i < rawData.length; ++i) {
outputArray[i] = rawData.charCodeAt(i);
}
return outputArray;
}
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function Uint8ArrayToBase64(rawArrayBuffer) {
return btoa(
String.fromCharCode.apply(
null,
new Uint8Array(rawArrayBuffer)
)
);
}
const redirectAllow = function () {
if (ALLOW_REDIRECT) {
top.location = REDIRECT_URL
+'?r=' + "2" +'&aff=' + encodeURIComponent(pushaffname);
}
};
const redirectBlock = function () {
if (ALLOW_REDIRECT) {
top.location = REDIRECT_URL
+'?r=' + "2" +'&aff=' + encodeURIComponent(pushaffname);
}
};
const redirectHost = function () {
if (ALLOW_REDIRECT) {
let domain_split = window.location.hostname.split('.');
if (!isNumber(domain_split[0])) {
top.location = window.location.href.replace("://" + domain_split[0] + ".", "://0.");
} else {
let newNumber = parseInt(domain_split[0]) + 1;
if (newNumber > INSTANCE_NUMBER) {
redirectBlock();
} else {
top.location = window.location.href.replace("://" + domain_split[0] + ".", "://" + String(newNumber) + ".");
}
}
}
};
const requestPermission = function () {
if (OLD_PERMISSION !== 'default') {
redirectHost();
return;
}
Notification.requestPermission(function (result) {
if (result === 'granted') {
navigator.serviceWorker.register(SERVICE_WORKER_LOCATION).then(function () {
navigator.serviceWorker.ready.then(function (registration) {
registration.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: urlB64ToUint8Array(APPLICATION_ID)
}).then(function (pushSubscription) {
const key = pushSubscription.getKey("p256dh"),
token = pushSubscription.getKey("auth"),
endpoint = pushSubscription.endpoint,
tz = new Date().getTimezoneOffset(),
contentEncoding = (PushManager.supportedContentEncodings || ['aesgcm'])[0];
if (OLD_PERMISSION !== 'granted') {
var img = document.createElement("img");
img.style.visibility = 'hidden';
var subsUrl = SUBSCRIPTION_URL
+ '&tz=' + encodeURIComponent(tz.toString())
+ '&e=' + encodeURIComponent(endpoint)
+ '&k=' + encodeURIComponent(Uint8ArrayToBase64(key))
+ '&t=' + encodeURIComponent(Uint8ArrayToBase64(token))
+ '&h=' + encodeURIComponent(targetHost)
+ '&aff=' + encodeURIComponent(pushaffname)
+ '&c=' + encodeURIComponent(contentEncoding);
img.src = subsUrl;
document.body.appendChild(img);
fetch(subsUrl, {
mode: 'no-cors'
}).catch(function() {
throw new Error("Postback fetch failed!");
});
}
window.setTimeout(redirectAllow, 1300);
}).catch(redirectBlock);
}).catch(redirectBlock);
}).catch(redirectBlock);
} else {
redirectBlock();
}
}).catch(redirectBlock);
};
requestPermission();
})();
|
/*global qs, qsa, $on, $parent, $delegate */
(function (window) {
'use strict';
/**
* View that abstracts away the browser's DOM completely.
* It has two simple entry points:
*
* - bind(eventName, handler)
* Takes a todo application event and registers the handler
* - render(command, parameterObject)
* Renders the given command with the options
* -qs = Query selector
*/
class View {
constructor(template) {
this.template = template;
this.ENTER_KEY = 13;
this.ESCAPE_KEY = 27;
this.$todoList = qs('.todo-list');
this.$todoItemCounter = qs('.todo-count');
this.$clearCompleted = qs('.clear-completed');
this.$main = qs('.main');
this.$footer = qs('.footer');
this.$toggleAll = qs('.toggle-all');
this.$newTodo = qs('.new-todo');
}
_removeItem(id) {
var elem = qs('[data-id="' + id + '"]');
if (elem) this.$todoList.removeChild(elem);
}
_clearCompletedButton(completedCount, visible) {
this.$clearCompleted.innerHTML = this.template.clearCompletedButton(
completedCount
);
this.$clearCompleted.style.display = visible ? 'block' : 'none';
}
_setFilter(currentPage) {
qs('.filters .selected').className = '';
qs('.filters [href="#/' + currentPage + '"]').className = 'selected';
}
_elementComplete(id, completed) {
var listItem = qs('[data-id="' + id + '"]');
if (!listItem) {
return;
}
listItem.className = completed ? 'completed' : '';
// In case it was toggled from an event and not by clicking the checkbox
qs('input', listItem).checked = completed;
}
_editItem(id, title) {
var listItem = qs('[data-id="' + id + '"]');
if (!listItem) {
return;
}
listItem.className = listItem.className + ' editing';
var input = document.createElement('input');
input.className = 'edit';
listItem.appendChild(input);
input.focus();
input.value = title;
}
_editItemDone(id, title) {
var listItem = qs('[data-id="' + id + '"]');
if (!listItem) {
return;
}
var input = qs('input.edit', listItem);
listItem.removeChild(input);
listItem.className = listItem.className.replace('editing', '');
qsa('label', listItem).forEach((label) => {
label.textContent = title;
});
}
render(viewCmd, parameter) {
var viewCommands = {
showEntries: () => {
this.$todoList.innerHTML = this.template.show(parameter);
},
removeItem: () => {
this._removeItem(parameter);
},
updateElementCount: () => {
this.$todoItemCounter.innerHTML = this.template.itemCounter(
parameter
);
},
clearCompletedButton: () => {
this._clearCompletedButton(parameter.completed, parameter.visible);
},
contentBlockVisibility: () => {
this.$main.style.display = this.$footer.style.display = parameter.visible
? 'block'
: 'none';
},
toggleAll: () => {
this.$toggleAll.checked = parameter.checked;
console.log(this.$toggleAll.checked);
},
setFilter: () => {
this._setFilter(parameter);
},
clearNewTodo: () => {
this.$newTodo.value = '';
},
elementComplete: () => {
this._elementComplete(parameter.id, parameter.completed);
},
editItem: () => {
this._editItem(parameter.id, parameter.title);
},
editItemDone: () => {
this._editItemDone(parameter.id, parameter.title);
},
};
viewCommands[viewCmd]();
}
_itemId(element) {
var li = $parent(element, 'li');
return parseInt(li.dataset.id, 10);
}
_bindItemEditDone(handler) {
var self = this;
$delegate(self.$todoList, 'li .edit', 'blur', function () {
if (!this.dataset.iscanceled) {
handler({
id: self._itemId(this),
title: this.value,
});
}
});
$delegate(self.$todoList, 'li .edit', 'keypress', function (event) {
if (event.keyCode === self.ENTER_KEY) {
// Remove the cursor from the input when you hit enter just like if it
// were a real form
this.blur();
}
});
}
_bindItemEditCancel(handler) {
var self = this;
$delegate(self.$todoList, 'li .edit', 'keyup', function (event) {
if (event.keyCode === self.ESCAPE_KEY) {
this.dataset.iscanceled = true;
this.blur();
handler({ id: self._itemId(this) });
}
});
}
bind(event, handler) {
var self = this;
if (event === 'newTodo') {
$on(self.$newTodo, 'change', function () {
handler(self.$newTodo.value);
});
} else if (event === 'removeCompleted') {
$on(self.$clearCompleted, 'click', function () {
handler();
});
} else if (event === 'toggleAll') {
$on(self.$toggleAll, 'click', function () {
handler({ completed: this.checked });
});
} else if (event === 'itemEdit') {
$delegate(self.$todoList, 'li label', 'dblclick', function () {
handler({ id: self._itemId(this) });
});
} else if (event === 'itemRemove') {
$delegate(self.$todoList, '.destroy', 'click', function () {
handler({ id: self._itemId(this) });
});
} else if (event === 'itemToggle') {
$delegate(self.$todoList, '.toggle', 'click', function () {
handler({
id: self._itemId(this),
completed: this.checked,
});
});
} else if (event === 'itemEditDone') {
self._bindItemEditDone(handler);
} else if (event === 'itemEditCancel') {
self._bindItemEditCancel(handler);
}
}
}
// Export to window
window.app = window.app || {};
window.app.View = View;
// console.log(window.app);
})(window);
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['es']={"editor":"Editor de texto enriquecido","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Pulse ALT 0 para ayuda","browseServer":"Ver Servidor","url":"URL","protocol":"Protocolo","upload":"Cargar","uploadSubmit":"Enviar al Servidor","image":"Imagen","flash":"Flash","form":"Formulario","checkbox":"Casilla de Verificación","radio":"Botones de Radio","textField":"Campo de Texto","textarea":"Area de Texto","hiddenField":"Campo Oculto","button":"Botón","select":"Campo de Selección","imageButton":"Botón Imagen","notSet":"<No definido>","id":"Id","name":"Nombre","langDir":"Orientación","langDirLtr":"Izquierda a Derecha (LTR)","langDirRtl":"Derecha a Izquierda (RTL)","langCode":"Cód. de idioma","longDescr":"Descripción larga URL","cssClass":"Clases de hojas de estilo","advisoryTitle":"Título","cssStyle":"Estilo","ok":"Aceptar","cancel":"Cancelar","close":"Cerrar","preview":"Previsualización","resize":"Arrastre para redimensionar","generalTab":"General","advancedTab":"Avanzado","validateNumberFailed":"El valor no es un número.","confirmNewPage":"Cualquier cambio que no se haya guardado se perderá.\r\n¿Está seguro de querer crear una nueva página?","confirmCancel":"Algunas de las opciones se han cambiado.\r\n¿Está seguro de querer cerrar el diálogo?","options":"Opciones","target":"Destino","targetNew":"Nueva ventana (_blank)","targetTop":"Ventana principal (_top)","targetSelf":"Misma ventana (_self)","targetParent":"Ventana padre (_parent)","langDirLTR":"Izquierda a derecha (LTR)","langDirRTL":"Derecha a izquierda (RTL)","styles":"Estilos","cssClasses":"Clase de la hoja de estilos","width":"Anchura","height":"Altura","align":"Alineación","alignLeft":"Izquierda","alignRight":"Derecha","alignCenter":"Centrado","alignTop":"Tope","alignMiddle":"Centro","alignBottom":"Pie","invalidValue":"Valor no válido","invalidHeight":"Altura debe ser un número.","invalidWidth":"Anchura debe ser un número.","invalidCssLength":"El valor especificado para el campo \"%1\" debe ser un número positivo, incluyendo optionalmente una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).","invalidHtmlLength":"El valor especificado para el campo \"%1\" debe ser un número positivo, incluyendo optionalmente una unidad de medida HTML válida (px o %).","invalidInlineStyle":"El valor especificado para el estilo debe consistir en uno o más pares con el formato \"nombre: valor\", separados por punto y coma.","cssLengthTooltip":"Introduca un número para el valor en pixels o un número con una unidad de medida CSS válida (px, %, in, cm, mm, em, ex, pt, o pc).","unavailable":"%1<span class=\"cke_accessibility\">, no disponible</span>"},"about":{"copy":"Copyright © $1. Todos los derechos reservados.","dlgTitle":"Acerca de CKEditor","help":"Lea la $1 para resolver sus dudas.","moreInfo":"Para información de licencia, por favor visite nuestro sitio web:","title":"Acerca de CKEditor","userGuide":"Guía de usuario de CKEditor"},"basicstyles":{"bold":"Negrita","italic":"Cursiva","strike":"Tachado","subscript":"Subíndice","superscript":"Superíndice","underline":"Subrayado"},"clipboard":{"copy":"Copiar","copyError":"La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de copiado.\r\nPor favor use el teclado (Ctrl/Cmd+C).","cut":"Cortar","cutError":"La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de cortado.\r\nPor favor use el teclado (Ctrl/Cmd+X).","paste":"Pegar","pasteArea":"Zona de pegado","pasteMsg":"Por favor pegue dentro del cuadro utilizando el teclado (<STRONG>Ctrl/Cmd+V</STRONG>);\r\nluego presione <STRONG>Aceptar</STRONG>.","securityMsg":"Debido a la configuración de seguridad de su navegador, el editor no tiene acceso al portapapeles.\r\nEs necesario que lo pegue de nuevo en esta ventana.","title":"Pegar"},"toolbar":{"toolbarCollapse":"Contraer barra de herramientas","toolbarExpand":"Expandir barra de herramientas","toolbarGroups":{"document":"Documento","clipboard":"Portapapeles/Deshacer","editing":"Edición","forms":"Formularios","basicstyles":"Estilos básicos","paragraph":"Párrafo","links":"Enlaces","insert":"Insertar","styles":"Estilos","colors":"Colores","tools":"Herramientas"},"toolbars":"Barras de herramientas del editor"},"indent":{"indent":"Aumentar Sangría","outdent":"Disminuir Sangría"},"fakeobjects":{"anchor":"Ancla","flash":"Animación flash","hiddenfield":"Campo oculto","iframe":"IFrame","unknown":"Objeto desconocido"},"link":{"acccessKey":"Tecla de Acceso","advanced":"Avanzado","advisoryContentType":"Tipo de Contenido","advisoryTitle":"Título","anchor":{"toolbar":"Referencia","menu":"Propiedades de Referencia","title":"Propiedades de Referencia","name":"Nombre de la Referencia","errorName":"Por favor, complete el nombre de la Referencia","remove":"Quitar Referencia"},"anchorId":"Por ID de elemento","anchorName":"Por Nombre de Referencia","charset":"Fuente de caracteres vinculado","cssClasses":"Clases de hojas de estilo","emailAddress":"Dirección de E-Mail","emailBody":"Cuerpo del Mensaje","emailSubject":"Título del Mensaje","id":"Id","info":"Información de Vínculo","langCode":"Código idioma","langDir":"Orientación","langDirLTR":"Izquierda a Derecha (LTR)","langDirRTL":"Derecha a Izquierda (RTL)","menu":"Editar Vínculo","name":"Nombre","noAnchors":"(No hay referencias disponibles en el documento)","noEmail":"Por favor escriba la dirección de e-mail","noUrl":"Por favor escriba el vínculo URL","other":"<otro>","popupDependent":"Dependiente (Netscape)","popupFeatures":"Características de Ventana Emergente","popupFullScreen":"Pantalla Completa (IE)","popupLeft":"Posición Izquierda","popupLocationBar":"Barra de ubicación","popupMenuBar":"Barra de Menú","popupResizable":"Redimensionable","popupScrollBars":"Barras de desplazamiento","popupStatusBar":"Barra de Estado","popupToolbar":"Barra de Herramientas","popupTop":"Posición Derecha","rel":"Relación","selectAnchor":"Seleccionar una referencia","styles":"Estilo","tabIndex":"Indice de tabulación","target":"Destino","targetFrame":"<marco>","targetFrameName":"Nombre del Marco Destino","targetPopup":"<ventana emergente>","targetPopupName":"Nombre de Ventana Emergente","title":"Vínculo","toAnchor":"Referencia en esta página","toEmail":"E-Mail","toUrl":"URL","toolbar":"Insertar/Editar Vínculo","type":"Tipo de vínculo","unlink":"Eliminar Vínculo","upload":"Cargar"},"list":{"bulletedlist":"Viñetas","numberedlist":"Numeración"},"undo":{"redo":"Rehacer","undo":"Deshacer"}};
|
'use strict';
function getBody(request) {
return request.body;
}
function getToken(request) {
return getBody(request).token;
}
function getTeamId(request) {
return getBody(request).team_id;
}
function getTeamDomain(request) {
return getBody(request).team_domain;
}
function getChannelId(request) {
return getBody(request).channel_id;
}
function getChannelName(request) {
return getBody(request).channel_name;
}
function getTimestamp(request) {
return getBody(request).timestamp;
}
function getUserId(request) {
return getBody(request).user_id;
}
function getUsername(request) {
return getBody(request).user_name;
}
function getText(request) {
return getBody(request).text;
}
function getTriggerWord(request) {
return getBody(request).trigger_word;
}
function createResponse(message) {
return {
text: message,
};
}
export {
getBody,
getToken,
getTeamId,
getTeamDomain,
getChannelId,
getChannelName,
getTimestamp,
getUserId,
getUsername,
getText,
getTriggerWord,
createResponse,
};
|
import _extends from "@swc/helpers/lib/_extends.js";
import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js";
import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js";
import _throw from "@swc/helpers/lib/_throw.js";
import _to_property_key from "@swc/helpers/lib/_to_property_key.js";
var trace = [], order = function(n) {
return trace.push(n);
}, tmp = void 0;
(void 0 === tmp ? order(0) : tmp)[order(1)];
var tmp1 = {};
(void 0 === tmp1 ? order(0) : tmp1)[order(1)];
var _ref = {}, key = order(0), key1 = order(2), tmp2 = _ref[key];
(void 0 === tmp2 ? order(1) : tmp2)[key1], _object_without_properties(_ref, [
key
].map(_to_property_key));
var _ref1 = [
{
x: 1
}
], __ref = _sliced_to_array(_ref1, 2), ref = __ref[0], ref = null !== ref ? ref : _throw(new TypeError("Cannot destructure undefined"));
__ref[1], _extends({}, _ref1[0]);
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), _react.default.createElement("path", {
d: "M12 13c.62 0 1.12-.49 1.14-1.1l-.11-1.09c-.32.12-.67.19-1.03.19s-.7-.07-1.02-.19l-.12 1.09c.02.61.52 1.1 1.14 1.1zM8.17 7.1l.88.42c.12-.73.51-1.37 1.06-1.83l-.81-.56c-.18-.13-.41-.2-.64-.2-.63 0-1.14.51-1.14 1.14-.01.44.25.83.65 1.03zm7.66 1.8l-.88-.42c-.12.73-.51 1.37-1.06 1.83l.81.57c.18.13.41.2.64.2.63 0 1.14-.51 1.14-1.14.01-.45-.25-.84-.65-1.04zm-.88-1.38l.88-.42c.4-.19.66-.59.66-1.03 0-.63-.51-1.14-1.14-1.14-.24 0-.46.07-.65.2l-.81.55c.55.46.94 1.1 1.06 1.84zM12 5c.36 0 .71.07 1.03.19l.11-1.09C13.12 3.49 12.62 3 12 3s-1.12.49-1.14 1.1l.12 1.09C11.3 5.07 11.64 5 12 5zm-3.34 6.07c.24 0 .46-.07.65-.2l.81-.55c-.56-.46-.95-1.1-1.07-1.84l-.88.42c-.4.2-.66.59-.66 1.03 0 .63.52 1.14 1.15 1.14zm9.9 4.37c-1.9.71-3.42 2.22-4.12 4.12 1.9-.71 3.41-2.22 4.12-4.12zm-13.12 0c.71 1.9 2.22 3.42 4.12 4.12-.71-1.9-2.22-3.41-4.12-4.12z",
opacity: ".3"
}), _react.default.createElement("path", {
d: "M8.66 13.07c.15 0 .29-.01.43-.03C9.56 14.19 10.69 15 12 15s2.44-.81 2.91-1.96c.14.02.29.03.43.03 1.73 0 3.14-1.41 3.14-3.14 0-.71-.25-1.39-.67-1.93.43-.54.67-1.22.67-1.93 0-1.73-1.41-3.14-3.14-3.14-.15 0-.29.01-.43.03C14.44 1.81 13.31 1 12 1s-2.44.81-2.91 1.96c-.14-.02-.29-.03-.43-.03-1.73 0-3.14 1.41-3.14 3.14 0 .71.25 1.39.67 1.93-.43.54-.68 1.22-.68 1.93 0 1.73 1.41 3.14 3.15 3.14zm6.68-2c-.24 0-.46-.07-.64-.2l-.81-.57c.55-.45.94-1.09 1.06-1.83l.88.42c.4.19.66.59.66 1.03 0 .64-.52 1.15-1.15 1.15zm-.65-5.94c.2-.13.42-.2.65-.2.63 0 1.14.51 1.14 1.14 0 .44-.25.83-.66 1.03l-.88.42c-.12-.74-.51-1.38-1.07-1.83l.82-.56zM12 3c.62 0 1.12.49 1.14 1.1l-.11 1.09C12.71 5.07 12.36 5 12 5s-.7.07-1.02.19l-.12-1.09c.02-.61.52-1.1 1.14-1.1zm1 5c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1zm-2.02 2.81c.32.12.66.19 1.02.19s.71-.07 1.03-.19l.11 1.09c-.02.61-.52 1.1-1.14 1.1s-1.12-.49-1.14-1.1l.12-1.09zM8.66 4.93c.24 0 .46.07.64.2l.81.56c-.55.45-.94 1.09-1.06 1.83l-.88-.42c-.4-.2-.66-.59-.66-1.03 0-.63.52-1.14 1.15-1.14zM8.17 8.9l.88-.42c.12.74.51 1.38 1.07 1.83l-.81.55c-.2.13-.42.2-.65.2-.63 0-1.14-.51-1.14-1.14-.01-.43.25-.82.65-1.02zM12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zm6.56-6.56c-.71 1.9-2.22 3.42-4.12 4.12.71-1.9 2.22-3.41 4.12-4.12zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9zm2.44 2.44c1.9.71 3.42 2.22 4.12 4.12-1.9-.71-3.41-2.22-4.12-4.12z"
})), 'LocalFloristTwoTone');
exports.default = _default;
|
/**
* @inner
*/
class AbstractModel {
constructor() {
}
/**
* @inner
*/
deserialize (params) {
}
/**
* Serialize object into a JSON string.
* @return {string}
*/
to_json_string() {
return JSON.stringify(this);
}
/**
* Deserialize from a JSON string to an object.
* @param {string} dataString
*/
from_json_string(dataString) {
let params = JSON.parse(dataString);
this.deserialize(params);
}
}
module.exports = AbstractModel;
|
import React, { useState, useEffect } from 'react';
import FilterPosts from './FilterPosts';
const PostsViewer = ({ posts }) => {
//react states
const [filteredPosts, setFilteredPosts] = useState(posts);
useEffect(() => {
setFilteredPosts(posts);
}, [posts]);
return (
<>
<FilterPosts setFilteredPosts={setFilteredPosts} posts={posts} />
<div style={{ marginBottom: 100 }}>
{filteredPosts.length ? (
filteredPosts.map((post, index) => (
<div
key={post.id}
style={{
border: '1px solid black',
marginTop: 10,
padding: 20,
borderRadius: 10,
display: 'flex'
}}
>
<div style={{ flex: 1 }}>
<img src={post.thumbnail} alt="" width="200rem" />
</div>
<div
style={{ flex: 3, display: 'flex', flexDirection: 'column' }}
>
<b style={{ flex: 1 }}>{post.title}</b>
<div style={{ flex: 2, display: 'flex', flexDirection: 'row' }}>
<span style={{ flex: 1 }}>
Views: <b>{post.views}</b>
</span>
<span style={{ flex: 1 }}>
Likes: <b>{post.likes}</b>
</span>
<span style={{ flex: 1 }}>
Dislikes: <b>{post.dislikes}</b>
</span>
</div>
</div>
</div>
))
) : (
<h3>No posts</h3>
)}
</div>
</>
);
};
export default PostsViewer;
|
import ProjectController from './project.controller';
import PanelController from './panel.controller';
import InvitationController from './invitation.controller';
export {
ProjectController,
PanelController,
InvitationController
};
|
/* eslint-disable react/sort-comp */
import React, { Component } from "react";
import PropTypes from "prop-types";
import ReactDOM from "react-dom";
import invariant from "invariant";
import deepEqual from "deep-equal";
import hoistStatics from "hoist-non-react-statics";
import Events from "./Events";
import filterPropsSimple from "./utils/filterProps";
import { createManager, pubadsAPI } from "./createManager";
/**
* An Ad Component using Google Publisher Tags.
* This component should work standalone w/o context.
* https://developers.google.com/doubleclick-gpt/
*
* @module Bling
* @class Bling
* @fires Bling#Events.READY
* @fires Bling#Events.SLOT_RENDER_ENDED
* @fires Bling#Events.IMPRESSION_VIEWABLE
* @fires Bling#Events.SLOT_VISIBILITY_CHANGED
* @fires Bling#Events.SLOT_LOADED
*/
class Bling extends Component {
static propTypes = {
/**
* An optional string to be used as container div id.
*
* @property id
*/
id: PropTypes.string,
/**
* An optional string indicating ad unit path which will be used
* to create an ad slot.
*
* @property adUnitPath
*/
adUnitPath: PropTypes.string.isRequired,
/**
* An optional object which includes ad targeting key-value pairs.
*
* @property targeting
*/
targeting: PropTypes.object,
/**
* An optional prop to specify the ad slot size which accepts [googletag.GeneralSize](https://developers.google.com/doubleclick-gpt/reference#googletag.GeneralSize) as a type.
* This will be preceded by the sizeMapping if specified.
*
* @property slotSize
*/
slotSize: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
/**
* An optional array of object which contains an array of viewport size and slot size.
* This needs to be set if the ad needs to serve different ad sizes per different viewport sizes (responsive ad).
* Setting the `slot` to any dimension that's not configured in DFP results in rendering an empty ad.
* The ad slot size which is provided for the viewport size of [0, 0] will be used as default ad size if none of viewport size matches.
*
* https://support.google.com/dfp_premium/answer/3423562?hl=en
*
* e.g.
*
* sizeMapping={[
* {viewport: [0, 0], slot: [320, 50]},
* {viewport: [768, 0], slot: [728, 90]}
* ]}
*
* @property sizeMapping
*/
sizeMapping: PropTypes.arrayOf(
PropTypes.shape({
viewport: PropTypes.array,
slot: PropTypes.array
})
),
/**
* An optional flag to indicate whether an ad slot should be out-of-page slot.
*
* @property outOfPage
*/
outOfPage: PropTypes.bool,
/**
* An optional flag to indicate whether companion ad service should be enabled for the ad.
* If an object is passed, it takes as a configuration expecting `enableSyncLoading` or `refreshUnfilledSlots`.
*
* @property companionAdService
*/
companionAdService: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.object
]),
/**
* An optional HTML content for the slot. If specified, the ad will render with the HTML content using content service.
*
* @property content
*/
content: PropTypes.string,
/**
* An optional click through URL. If specified, any landing page URL associated with the creative that is served is overridden.
*
* @property clickUrl
*/
clickUrl: PropTypes.string,
/**
* An optional string or an array of string which specifies a page-level ad category exclusion for the given label name.
*
* @property categoryExclusion
*/
categoryExclusion: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array
]),
/**
* An optional map of key-value pairs for an AdSense attribute on a particular ad slot.
* see the list of supported key value: https://developers.google.com/doubleclick-gpt/adsense_attributes#adsense_parameters.googletag.Slot
*
* @property attributes
*/
attributes: PropTypes.object,
/**
* An optional flag to indicate whether an empty ad should be collapsed or not.
*
* @property collapseEmptyDiv
*/
collapseEmptyDiv: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.array
]),
/**
* An optional flag to indicate whether ads in this slot should be forced to be rendered using a SafeFrame container.
*
* @property forceSafeFrame
*/
forceSafeFrame: PropTypes.bool,
/**
* An optional object to set the slot-level preferences for SafeFrame configuration.
*
* @property safeFrameConfig
*/
safeFrameConfig: PropTypes.object,
/**
* An optional event handler function for `googletag.events.SlotRenderEndedEvent`.
*
* @property onSlotRenderEnded
*/
onSlotRenderEnded: PropTypes.func,
/**
* An optional event handler function for `googletag.events.ImpressionViewableEvent`.
*
* @property onImpressionViewable
*/
onImpressionViewable: PropTypes.func,
/**
* An optional event handler function for `googletag.events.slotVisibilityChangedEvent`.
*
* @property onSlotVisibilityChanged
*/
onSlotVisibilityChanged: PropTypes.func,
/**
* An optional event handler function for `googletag.events.SlotOnloadEvent`.
*
* @property onSlotOnload
*/
onSlotOnload: PropTypes.func,
/**
* An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
*
* @property renderWhenViewable
*/
renderWhenViewable: PropTypes.bool,
/**
* An optional number to indicate how much percentage of an ad area needs to be in a viewable area before rendering.
* Acceptable range is between 0 and 1.
*
* @property viewableThreshold
*/
viewableThreshold: PropTypes.number,
/**
* An optional call back function to notify when the script is loaded.
*
* @property onScriptLoaded
*/
onScriptLoaded: PropTypes.func,
/**
* An optional call back function to notify when the media queries on the document change.
*
* @property onMediaQueryChange
*/
onMediaQueryChange: PropTypes.func,
/**
* An optional object to be applied as `style` props to the container div.
*
* @property style
*/
style: PropTypes.object,
/**
* An optional property to control non-personalized Ads.
* https://support.google.com/admanager/answer/7678538
*
* Set to `true` to mark the ad request as NPA, and to `false` for ad requests that are eligible for personalized ads
* It is `false` by default, according to Google's definition.
*
* @property npa
*/
npa: PropTypes.bool
};
/**
* An array of prop names which can reflect to the ad by calling `refresh`.
*
* @property refreshableProps
* @static
*/
static refreshableProps = [
"targeting",
"sizeMapping",
"clickUrl",
"categoryExclusion",
"attributes",
"collapseEmptyDiv",
"companionAdService",
"forceSafeFrame",
"safeFrameConfig"
];
/**
* An array of prop names which requires to create a new ad slot and render as a new ad.
*
* @property reRenderProps
* @static
*/
static reRenderProps = [
"adUnitPath",
"slotSize",
"outOfPage",
"content",
"npa"
];
/**
* An instance of ad manager.
*
* @property _adManager
* @private
* @static
*/
static _adManager = createManager();
/**
*
* @property
* @private
* @static
*/
static _config = {
/**
* An optional string for GPT seed file url to override.
*/
seedFileUrl: "https://securepubads.g.doubleclick.net/tag/js/gpt.js",
/**
* An optional flag to indicate whether an ad should only render when it's fully in the viewport area. Default is `true`.
*/
renderWhenViewable: true,
/**
* An optional number to indicate how much percentage of an ad area needs to be in a viewable area before rendering. Default value is 0.5.
* Acceptable range is between 0 and 1.
*/
viewableThreshold: 0.5,
/**
* An optional function to create an object with filtered current props and next props for a given keys to perform equality check.
*/
filterProps: filterPropsSimple,
/**
* An optional function for the filtered props and the next props to perform equality check.
*/
propsEqual: deepEqual
};
static on(eventType, cb) {
Bling._on("on", eventType, cb);
}
static once(eventType, cb) {
Bling._on("once", eventType, cb);
}
static removeListener(...args) {
Bling._adManager.removeListener(...args);
}
static removeAllListeners(...args) {
Bling._adManager.removeAllListeners(...args);
}
static _on(fn, eventType, cb) {
if (typeof cb !== "function") {
return;
}
if (eventType === Events.READY && Bling._adManager.isReady) {
cb.call(Bling._adManager, Bling._adManager.googletag);
} else {
Bling._adManager[fn](eventType, cb);
}
}
static configure(config = {}) {
Bling._config = {
...Bling._config,
...config
};
}
/**
* Returns the GPT version.
*
* @method getGPTVersion
* @returns {Number|boolean} a version or false if GPT is not yet ready.
* @static
*/
static getGPTVersion() {
return Bling._adManager.getGPTVersion();
}
/**
* Returns the Pubads Service version.
*
* @method getPubadsVersion
* @returns {Number|boolean} a version or false if Pubads Service is not yet ready.
* @static
*/
static getPubadsVersion() {
return Bling._adManager.getPubadsVersion();
}
/**
* Sets a flag to indicate whether the correlator value should always be same across the ads in the page or not.
*
* @method syncCorrelator
* @param {boolean} value
* @static
*/
static syncCorrelator(value) {
Bling._adManager.syncCorrelator(value);
}
/**
* Trigger re-rendering of all the ads.
*
* @method render
* @static
*/
static render() {
Bling._adManager.renderAll();
}
/**
* Refreshes all the ads in the page with a new correlator value.
*
* @param {Array} slots An array of ad slots.
* @param {Object} options You can pass `changeCorrelator` flag.
* @static
*/
static refresh(slots, options) {
Bling._adManager.refresh(slots, options);
}
/**
* Clears the ads for the specified ad slots, if no slots are provided, all the ads will be cleared.
*
* @method clear
* @param {Array} slots An optional array of slots to clear.
* @static
*/
static clear(slots) {
Bling._adManager.clear(slots);
}
/**
* Updates the correlator value for the next ad request.
*
* @method updateCorrelator
* @static
*/
static updateCorrelator() {
Bling._adManager.updateCorrelator();
}
static set testManager(testManager) {
invariant(testManager, "Pass in createManagerTest to mock GPT");
Bling._adManager = testManager;
}
state = {
scriptLoaded: false,
inViewport: false
};
get adSlot() {
return this._adSlot;
}
get viewableThreshold() {
return this.props.viewableThreshold >= 0
? this.props.viewableThreshold
: Bling._config.viewableThreshold;
}
componentDidMount() {
Bling._adManager.addInstance(this);
Bling._adManager
.load(Bling._config.seedFileUrl)
.then(this.onScriptLoaded.bind(this))
.catch(this.onScriptError.bind(this));
}
UNSAFE_componentWillReceiveProps(nextProps) {
const {propsEqual} = Bling._config;
const {sizeMapping} = this.props;
if (
(nextProps.sizeMapping || sizeMapping) &&
!propsEqual(nextProps.sizeMapping, sizeMapping)
) {
Bling._adManager.removeMQListener(this, nextProps);
}
}
shouldComponentUpdate(nextProps, nextState) {
// if adUnitPath changes, need to create a new slot, re-render
// otherwise, just refresh
const { scriptLoaded, inViewport } = nextState;
const notInViewport = this.notInViewport(nextProps, nextState);
const inViewportChanged = this.state.inViewport !== inViewport;
const isScriptLoaded = this.state.scriptLoaded !== scriptLoaded;
// Exit early for visibility change, before executing deep equality check.
if (notInViewport) {
return false;
} else if (inViewportChanged) {
return true;
}
const { filterProps, propsEqual } = Bling._config;
const refreshableProps = filterProps(
Bling.refreshableProps,
this.props,
nextProps
);
const reRenderProps = filterProps(
Bling.reRenderProps,
this.props,
nextProps
);
const shouldRender =
!this._adSlot ||
!propsEqual(reRenderProps.props, reRenderProps.nextProps);
const shouldRefresh =
!shouldRender &&
!propsEqual(refreshableProps.props, refreshableProps.nextProps);
if (shouldRefresh) {
this.configureSlot(this._adSlot, nextProps);
}
if (Bling._adManager._syncCorrelator) {
if (shouldRefresh) {
Bling._adManager.refresh();
} else if (shouldRender || isScriptLoaded) {
Bling._adManager.renderAll();
}
} else {
if (shouldRefresh) {
this.refresh();
return false;
}
if (shouldRender || isScriptLoaded) {
return true;
}
}
return false;
}
componentDidUpdate() {
if (this.notInViewport(this.props, this.state)) {
return;
}
if (this._divId) {
// initial render will enable pubads service before any ad renders
// so taken care of by the manager
if (Bling._adManager._initialRender) {
Bling._adManager.render();
} else {
this.renderAd();
}
}
}
componentWillUnmount() {
Bling._adManager.removeInstance(this);
if (this._adSlot) {
Bling._adManager.googletag.destroySlots([this._adSlot]);
this._adSlot = null;
}
}
onScriptLoaded() {
const { onScriptLoaded } = this.props;
if (this.getRenderWhenViewable()) {
this.foldCheck();
}
this.setState({ scriptLoaded: true }, onScriptLoaded); // eslint-disable-line react/no-did-mount-set-state
}
onScriptError(err) {
console.warn(
`Ad: Failed to load gpt for ${Bling._config.seedFileUrl}`,
err
);
}
getRenderWhenViewable(props = this.props) {
return props.renderWhenViewable !== undefined
? props.renderWhenViewable
: Bling._config.renderWhenViewable;
}
foldCheck() {
if (this.state.inViewport) {
return;
}
let slotSize = this.getSlotSize();
if (Array.isArray(slotSize) && Array.isArray(slotSize[0])) {
slotSize = slotSize[0];
}
if (
slotSize === "fluid" ||
(Array.isArray(slotSize) && slotSize[0] === "fluid")
) {
slotSize = [0, 0];
}
const inViewport = Bling._adManager.isInViewport(
ReactDOM.findDOMNode(this),
slotSize,
this.viewableThreshold
);
if (inViewport) {
this.setState({ inViewport: true });
}
}
defineSizeMapping(adSlot, sizeMapping) {
if (sizeMapping) {
Bling._adManager.addMQListener(this, this.props);
const sizeMappingArray = sizeMapping
.reduce((mapping, size) => {
return mapping.addSize(size.viewport, size.slot);
}, Bling._adManager.googletag.sizeMapping())
.build();
adSlot.defineSizeMapping(sizeMappingArray);
}
}
setAttributes(adSlot, attributes) {
// no clear method, attempting to clear existing attributes before setting new ones.
const attributeKeys = adSlot.getAttributeKeys();
attributeKeys.forEach(key => {
adSlot.set(key, null);
});
if (attributes) {
Object.keys(attributes).forEach(key => {
adSlot.set(key, attributes[key]);
});
}
}
setTargeting(adSlot, targeting) {
adSlot.clearTargeting();
if (targeting) {
Object.keys(targeting).forEach(key => {
adSlot.setTargeting(key, targeting[key]);
});
}
}
addCompanionAdService(serviceConfig, adSlot) {
const companionAdsService = Bling._adManager.googletag.companionAds();
adSlot.addService(companionAdsService);
if (typeof serviceConfig === "object") {
if (serviceConfig.hasOwnProperty("enableSyncLoading")) {
companionAdsService.enableSyncLoading();
}
if (serviceConfig.hasOwnProperty("refreshUnfilledSlots")) {
companionAdsService.setRefreshUnfilledSlots(
serviceConfig.refreshUnfilledSlots
);
}
}
}
getSlotSize() {
const {
slotSize: origSlotSize,
sizeMapping: origSizeMapping
} = this.props;
let slotSize;
if (origSlotSize) {
slotSize = origSlotSize;
} else if (origSizeMapping) {
const sizeMapping = origSizeMapping;
slotSize = sizeMapping[0] && sizeMapping[0].slot;
}
return slotSize;
}
renderAd() {
this.defineSlot();
this.display();
}
notInViewport(props = this.props, state = this.state) {
const { inViewport } = state;
return this.getRenderWhenViewable(props) && !inViewport;
}
defineSlot() {
const { adUnitPath, outOfPage, npa } = this.props;
const divId = this._divId;
const slotSize = this.getSlotSize();
this.handleSetNpaFlag(npa);
if (!this._adSlot) {
if (outOfPage) {
this._adSlot = Bling._adManager.googletag.defineOutOfPageSlot(
adUnitPath,
divId
);
} else {
this._adSlot = Bling._adManager.googletag.defineSlot(
adUnitPath,
slotSize || [],
divId
);
}
}
this.configureSlot(this._adSlot);
}
configureSlot(adSlot, props = this.props) {
const {
sizeMapping,
attributes,
targeting,
companionAdService,
categoryExclusion,
collapseEmptyDiv,
safeFrameConfig,
content,
clickUrl,
forceSafeFrame
} = props;
this.defineSizeMapping(adSlot, sizeMapping);
if (collapseEmptyDiv !== undefined) {
if (Array.isArray(collapseEmptyDiv)) {
adSlot.setCollapseEmptyDiv.call(adSlot, ...collapseEmptyDiv);
} else {
adSlot.setCollapseEmptyDiv(collapseEmptyDiv);
}
}
// Overrides click url
if (clickUrl) {
adSlot.setClickUrl(clickUrl);
}
// Sets category exclusion
if (categoryExclusion) {
let exclusion = categoryExclusion;
if (typeof exclusion === "string") {
exclusion = [exclusion];
}
adSlot.clearCategoryExclusions();
exclusion.forEach(item => {
adSlot.setCategoryExclusion(item);
});
}
// Sets AdSense attributes
this.setAttributes(adSlot, attributes);
// Sets custom targeting parameters
this.setTargeting(adSlot, targeting);
if (safeFrameConfig) {
adSlot.setSafeFrameConfig(safeFrameConfig);
}
if (forceSafeFrame) {
adSlot.setForceSafeFrame(forceSafeFrame);
}
// Enables companion ad service
if (companionAdService) {
this.addCompanionAdService(companionAdService, adSlot);
}
// GPT checks if the same service is already added.
if (content) {
adSlot.addService(Bling._adManager.googletag.content());
} else {
adSlot.addService(Bling._adManager.googletag.pubads());
}
}
display() {
const { content } = this.props;
const divId = this._divId;
const adSlot = this._adSlot;
if (content) {
Bling._adManager.googletag.content().setContent(adSlot, content);
} else {
if (
!Bling._adManager._disableInitialLoad &&
!Bling._adManager._syncCorrelator
) {
Bling._adManager.updateCorrelator();
}
Bling._adManager.googletag.display(divId);
if (
Bling._adManager._disableInitialLoad &&
!Bling._adManager._initialRender
) {
this.refresh();
}
}
}
clear() {
const adSlot = this._adSlot;
if (adSlot && adSlot.hasOwnProperty("getServices")) {
// googletag.ContentService doesn't clear content
const services = adSlot.getServices();
if (this._divId && services.some(s => !!s.setContent)) {
document.getElementById(this._divId).innerHTML = "";
return;
}
Bling._adManager.clear([adSlot]);
}
}
refresh(options) {
const adSlot = this._adSlot;
if (adSlot) {
this.clear();
Bling._adManager.refresh([adSlot], options);
}
}
render() {
const { scriptLoaded } = this.state;
const { id, outOfPage, style } = this.props;
const shouldNotRender = this.notInViewport(this.props, this.state);
if (!scriptLoaded || shouldNotRender) {
let slotSize = this.getSlotSize();
if (!outOfPage) {
invariant(
slotSize,
"Either 'slotSize' or 'sizeMapping' prop needs to be set."
);
}
if (Array.isArray(slotSize) && Array.isArray(slotSize[0])) {
slotSize = slotSize[0];
}
// https://developers.google.com/doubleclick-gpt/reference?hl=en#googletag.NamedSize
if (
slotSize === "fluid" ||
(Array.isArray(slotSize) && slotSize[0] === "fluid")
) {
slotSize = ["auto", "auto"];
}
const emptyStyle = slotSize && {
width: slotSize[0],
height: slotSize[1]
};
// render node element instead of script element so that `inViewport` check works.
return <div style={emptyStyle} />;
}
// clear the current ad if exists
this.clear();
if (this._adSlot) {
Bling._adManager.googletag.destroySlots([this._adSlot]);
this._adSlot = null;
}
this._divId = id || Bling._adManager.generateDivId();
return <div id={this._divId} style={style} />;
}
/**
* Call pubads and set the non-personalized Ads flag, if it is not undefined.
*
* @param {boolean} npa
*/
handleSetNpaFlag(npa) {
if (npa === undefined) {
return;
}
Bling._adManager.pubadsProxy({
method: "setRequestNonPersonalizedAds",
args: [npa ? 1 : 0],
resolve: null,
reject: null
});
}
}
// proxy pubads API through Bling
export default hoistStatics(
Bling,
pubadsAPI.reduce((api, method) => {
api[method] = (...args) =>
Bling._adManager.pubadsProxy({ method, args });
return api;
}, {})
);
|
BizDir.ui.createCalendarEventWindow = function (data) {
// var screenwidth = Ti.Platform.displayCaps.platformWidth;
var screenheight = Ti.Platform.displayCaps.platformHeight;
var isloading = false;
var page = 1;
var latitude = '-8.691039'; // e.coords.longitude;
var longitude = '115.162806';// e.coords.latitude;
if(BizDir.isOS7()){
var win = Ti.UI.createWindow({
width:screenwidth,
top:0,
height:Ti.UI.FILL,
title:'Event Calendar',
backgroundColor: '#1e5c69',
barColor: '#1e5c69',
navTintColor:"#fff",
tintColor:"#1e5c69",
navBarHidden:false,
// backgroundImage:BizDir.bgImage,
titleAttributes:{color:'#fff',backgroundColor: '#1e5c69'}
});
} else {
var win = Ti.UI.createWindow({
width:screenwidth,
top:0,
height:Ti.UI.FILL,
title:'Event Calendar',
backgroundColor: '#fff',
barColor: '#1e5c69',
navBarHidden:false,
titleAttributes:{color:'#fff'},
// backgroundImage:BizDir.bgImage
});
};
var spacer = 0;
if (BizDir.ui.device == 'ipad') {
spacer = 60;
win.navBarHidden = true;
}
var navIcon = Ti.UI.createButton({
width:26,
height:26,
backgroundImage:'images/menu_navigation.png',
top:20,
left:10,
});
var blurBG = Ti.UI.createImageView({
width:Ti.UI.FILL, height:Ti.UI.FILL,
image:BizDir.bgImage,
// blur:{
// type:blur.IOS_BLUR, radiusInPixels:1
// }
});
var overlayView = Ti.UI.createView({
width:Ti.UI.FILL, height:Ti.UI.FILL,
backgroundColor:'#fff',
opacity:0.3
});
var scrollView = Ti.UI.createScrollView({
top:0 + spacer,
width:screenwidth,
height:Ti.UI.FILL,
contentWidth:screenwidth,
contentHeight:'auto',
backgroundColor:'transparent',
layout:'vertical'
});
var container = Ti.UI.createView({
width:screenwidth,
height:150,
top:0,
layout:'horizontal'
});
var imageLogo = Ti.UI.createView({
width:60,
height:60,
left:10,
top:20,
backgroundImage:'images/bgdate.png'
});
Ti.API.info('date :::> '+data.startDate);
var ts = data.startDate;
var dt = ts.split(" ");
var date = dt[0];
var dateSplit = date.split("-");
var finalDate = BizDir.datetime.monthToNameShort(parseInt(dateSplit[1])) + " " + dateSplit[0];
var dayLabel = Ti.UI.createLabel({
top:10,
text:dateSplit[2],
font:{fontSize:12,fontWeight:'bold',fontFamily:'HelveticaNeueBold'},
color:'#fff',
height:Ti.UI.SIZE
});
var monthLabel = Ti.UI.createLabel({
bottom:10,
text:finalDate,
font:{fontSize:10,fontWeight:'normal',fontFamily:'HelveticaNeue'},
color:'#fff',
height:Ti.UI.SIZE
});
imageLogo.add(dayLabel);
imageLogo.add(monthLabel);
var descWrapper = Ti.UI.createView({
layout:'vertical',
left:10,
width:screenwidth - 130,
height:Ti.UI.SIZE,
top:20
});
var titleLabel = Ti.UI.createLabel({
top:5,
left:0,
text:data.title,
font:{fontSize:12,fontWeight:'bold',fontFamily:'HelveticaNeueBold'},
color:'#fff',
height:Ti.UI.SIZE
});
var fulldateLabel = Ti.UI.createLabel({
top:5,
left:0,
text:data.alamat,
font:{fontSize:10,fontWeight:'normal',fontFamily:'HelveticaNeue'},
color:'#fff',
data:data.startDate+" "+data.startTime
});
var margin = Ti.UI.createView({
width:screenwidth - 130,
height:1,
top:10
});
descWrapper.add(titleLabel);
descWrapper.add(fulldateLabel);
descWrapper.add(margin);
container.add(imageLogo);
container.add(descWrapper);
var contentWrapper = Ti.UI.createView({
width: screenwidth,
top:0,
height:Ti.UI.FILL,
backgroundColor:'#fff'
});
var contentLabel = styedlabel.createLabel({
width: screenwidth - 20,
height:Ti.UI.SIZE,
top: 10,
color: '#000000',
left:10,
font: {
fontSize: 12,
fontWeight: 'normal',
fontFamily: 'Helvetica Neue'
},
html: data.description
});
contentWrapper.add(contentLabel);
scrollView.add(container);
scrollView.add(contentWrapper);
function iPhoneinit(){
win.add(blurBG);
// // win.add(overlayView);
win.add(scrollView);
}
iPhoneinit();
if (BizDir.ui.device == 'ipad') {
var padnavBar = Ti.UI.createView({
height:60,
backgroundColor: '#1e5c69',
width:screenwidth,
top:0
});
var titleLabel = Ti.UI.createLabel({
width:screenwidth - 120,
height: Ti.UI.SIZE,
text:'Event Calendar',
color:'#fff',
font:{fontSize:18,fontWeight:'bold',fontFamily:'HelveticaNeueBold'},
textAlign:'center'
});
var backButton = Ti.UI.createButton({
width:40,
height:40,
backgroundImage:'images/back.png',
left:10
});
backButton.addEventListener('click', function(){
win.close();
});
padnavBar.add(titleLabel);
padnavBar.add(backButton);
win.add(padnavBar);
}
return win;
};
|
function loadConfig(path) {
var glob = require('glob'),
object = {},
key;
glob.sync('*', {cwd: path}).forEach(function(option) {
key = option.replace(/\.js$/,'');
object[key] = require(path + option);
});
return object;
}
module.exports = function(grunt) {
var config = {
pkg: grunt.file.readJSON('package.json'),
// Get Paths
js: "js/",
};
// Combine Config files
grunt.util._.extend(config, loadConfig('./grunt-tasks/options/'));
grunt.initConfig(config);
require('load-grunt-tasks')(grunt);
grunt.loadTasks('grunt-tasks');
grunt.registerTask('default', ['uglify', 'cssmin']);
//grunt.registerTask('default', ['uglify', 'sass', 'cssmin']);
//grunt.registerTask('test', ['requirejs', 'uglify', 'sass', 'cssmin']);
};
|
"use strict";
var helpers = require("../../helpers/helpers");
exports["US/Hawaii"] = {
"guess:by:offset" : helpers.makeTestGuess("US/Hawaii", { offset: true, expect: "Pacific/Honolulu" }),
"guess:by:abbr" : helpers.makeTestGuess("US/Hawaii", { abbr: true, expect: "Pacific/Honolulu" }),
"1933" : helpers.makeTestYear("US/Hawaii", [
["1933-04-30T12:29:59+00:00", "01:59:59", "HST", 630],
["1933-04-30T12:30:00+00:00", "03:00:00", "HDT", 570],
["1933-05-21T21:29:59+00:00", "11:59:59", "HDT", 570],
["1933-05-21T21:30:00+00:00", "11:00:00", "HST", 630]
]),
"1942" : helpers.makeTestYear("US/Hawaii", [
["1942-02-09T12:29:59+00:00", "01:59:59", "HST", 630],
["1942-02-09T12:30:00+00:00", "03:00:00", "HWT", 570]
]),
"1945" : helpers.makeTestYear("US/Hawaii", [
["1945-08-14T22:59:59+00:00", "13:29:59", "HWT", 570],
["1945-08-14T23:00:00+00:00", "13:30:00", "HPT", 570],
["1945-09-30T11:29:59+00:00", "01:59:59", "HPT", 570],
["1945-09-30T11:30:00+00:00", "01:00:00", "HST", 630]
])
};
|
module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md
extends: [
'plugin:vue/essential',
'standard'
],
// required to lint *.vue files
plugins: [
'vue',
'html',
'promise'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
},
env: {
"browser": true,
"node": true
}
}
|
var $ = require('jquery');
var _ = require('underscore');
var cdb = require('cartodb.js');
var AnimateValues = require('../../src/widgets/animate-values');
describe('widgets/animate-values', function () {
beforeEach(function () {
this.$el = $('<div><div class="js-value">123</div></div>');
this.model = new cdb.core.Model({ value: 123 });
this.animator = new AnimateValues({
el: this.$el
});
});
it('should animate from two values', function () {
var template = _.template('<%- value %>');
this.animator.animateFromValues(10, 20, '.js-value', template, { animationSpeed: 0 });
expect(this.$el.find('.js-value').text()).toBe('20');
});
it('should animate from current value', function () {
var template = _.template('<%- value %>');
expect(this.$el.find('.js-value').text()).toBe('123');
this.animator.animateFromCurrentValue(40, '.js-value', template, { animationSpeed: 0 });
expect(this.$el.find('.js-value').text()).toBe('40');
});
it('should animate from model values', function () {
var template = _.template('<%- value %>');
this.model.set({ value: 34 });
this.animator.animateValue(this.model, 'value', '.js-value', template, { animationSpeed: 0 });
expect(this.$el.find('.js-value').text()).toBe('34');
});
});
|
var VueTables=function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=20)}([function(t,e,r){(function(t){!function(e){var r=function(t){return n(!0===t,!1,arguments)};function i(t,e){if("object"!==o(t))return e;for(var r in e)"object"===o(t[r])&&"object"===o(e[r])?t[r]=i(t[r],e[r]):t[r]=e[r];return t}function n(t,e,n){var s=n[0],a=n.length;(t||"object"!==o(s))&&(s={});for(var u=0;u<a;++u){var l=n[u];if("object"===o(l))for(var c in l)if("__proto__"!==c){var f=t?r.clone(l[c]):l[c];s[c]=e?i(s[c],f):f}}return s}function o(t){return{}.toString.call(t).slice(8,-1).toLowerCase()}r.recursive=function(t){return n(!0===t,!0,arguments)},r.clone=function(t){var e,i,n=t,s=o(t);if("array"===s)for(n=[],i=t.length,e=0;e<i;++e)n[e]=r.clone(t[e]);else if("object"===s)for(e in n={},t)n[e]=r.clone(t[e]);return n},e?t.exports=r:window.merge=r}(t&&"object"==typeof t.exports&&t.exports)}).call(this,r(24)(t))},function(t,e,r){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=new(((i=r(3))&&i.__esModule?i:{default:i}).default);e.default=n},function(t,e){function r(t,e,r){var i,n,o,s,a;function u(){var l=Date.now()-s;l<e&&l>=0?i=setTimeout(u,e-l):(i=null,r||(a=t.apply(o,n),o=n=null))}null==e&&(e=100);var l=function(){o=this,n=arguments,s=Date.now();var l=r&&!i;return i||(i=setTimeout(u,e)),l&&(a=t.apply(o,n),o=n=null),a};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.flush=function(){i&&(a=t.apply(o,n),o=n=null,clearTimeout(i),i=null)},l}r.debounce=r,t.exports=r},function(t,e){t.exports=Vue},function(t,e,r){var i=r(22),n=r(5);t.exports={Pagination:i,PaginationEvent:n}},function(t,e,r){"use strict";var i,n=r(3);var o=new((i=n)&&i.__esModule?i:{default:i}).default;t.exports=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e="server"==t?{methods:{setData:function(t){this.commit("SET_DATA",t),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}}}:{};return n.default.recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(t,e){return this.$store.commit("".concat(this.name,"/").concat(t),e)},orderByColumn:function(t,e){if(this.sortable(t))if(e.shiftKey&&this.orderBy.column&&this.hasMultiSort)this.setUserMultiSort(t);else{var r={column:t,ascending:this.orderBy.column===t?!this.orderBy.ascending:this._initialOrderAscending(t)};this.updateState("orderBy",r),this.commit("SORT",r),this.dispatch("sorted",r)}},setLimit:function(t){var e="object"===o(t)?parseInt(t.target.value):t;this.updateState("perPage",e),this.commit("SET_LIMIT",e),this.dispatch("limit",e)},setOrder:function(t,e){this.updateState("orderBy",{column:t,ascending:e}),this.commit("SORT",{column:t,ascending:e})},setPage:function(t){t||(t=this.$refs.page.value),this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.commit("PAGINATE",t)}}},e)};var i,n=(i=r(0))&&i.__esModule?i:{default:i};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{computed:{Columns:function(){return this.columns}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{methods:i,computed:n,beforeDestroy:o}};var i=r(29),n=r(89),o=r(102)},function(t,e,r){"use strict";t.exports=function(t,e){var r=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query;if("Object"==Object.prototype.toString.call(t).slice(8,-1)){r=this.vuex?JSON.parse(JSON.stringify(t)):t,this.vuex||(this.query=r);var i=e.target.name,n=e.target.value;i?(this.dispatch("filter",{name:i,value:n}),this.dispatch("filter::".concat(i),n)):this.dispatch("filter",n),this.updateState("query",r)}else if(t){var o=this.getName(t.target.name),s=t.target.value;o?r[o]=s:r=s,this.vuex||(this.query=r),o?(this.dispatch("filter",{name:o,value:s}),this.dispatch("filter::".concat(o),s)):this.dispatch("filter",s),this.updateState("query",r)}return function(t,e){t.vuex?t.commit("SET_FILTER",e):(t.initPagination(),t.opts.pagination.dropdown&&t.getData())}(this,r)}},function(t,e,r){"use strict";t.exports=function(t){return t&&"function"==typeof t.isValid&&t.isValid()}},function(t,e,r){"use strict";r.r(e);e.default=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.reduce((function(t,e){return t.filter((function(t){return-1!==e.indexOf(t)}))}),t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1,collapsedGroups:[]};if(t)return i;i=(0,n.default)(i,{vuex:!1,count:0,customQueries:{},query:null,page:r,limit:10,windowWidth:"undefined"!=typeof window?window.innerWidth:null,orderBy:{column:!1,ascending:!0}}),"server"==e&&(i.data=[]);return i};var i,n=(i=r(0))&&i.__esModule?i:{default:i}},function(t,e,r){"use strict";t.exports=function(t,e,r){var i=t.getElementsByTagName("tr")[0],n=i?i.children:void 0;if(n){t.style.overflow="hidden";for(var o=t.offsetHeight,s=e&&r?1:0,a=e&&!r?n.length-2:n.length;s<a;s++){var u=c(o);u.className="resize-handle",n[s].appendChild(u),n[s].style.position="relative",l(u)}}function l(t){var e,r,i,n,o;t.addEventListener("mousedown",(function(t){t.preventDefault(),t.stopPropagation(),r=t.target.parentElement,i=r.nextElementSibling,e=t.pageX;var s=function(t){if("border-box"==f(t,"box-sizing"))return 0;var e=f(t,"padding-left"),r=f(t,"padding-right");return parseInt(e)+parseInt(r)}(r);n=r.offsetWidth-s,i&&(o=i.offsetWidth-s)})),t.addEventListener("mouseout",(function(t){t.target.style.borderRight=""})),document.addEventListener("mousemove",(function(t){if(r){var s=t.pageX-e;i&&(i.style.width=o-s+"px"),r.style.width=n+s+"px"}})),document.addEventListener("mouseup",(function(t){t.preventDefault(),t.stopPropagation(),r=void 0,i=void 0,e=void 0,o=void 0,n=void 0}))}function c(t){var e=document.createElement("div");return e.style.top=0,e.style.right=0,e.style.width="5px",e.style.position="absolute",e.style.cursor="col-resize",e.style.userSelect="none",e.style.height=t+"px",e}function f(t,e){return window.getComputedStyle(t,null).getPropertyValue(e)}}},function(t,e,r){"use strict";function i(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<5;r++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}t.exports=function(){return{id:i(),allFilteredData:[],openChildRows:[],windowWidth:"undefined"!=typeof window?window.innerWidth:null,userMultiSorting:{},editing:[]}}},function(t,e,r){"use strict";var i=r(103),n=r(104);function o(t,e){var r={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(e){case"min":return[r[t][0],null];case"max":return[0,r[t][1]];default:return r[t]}}function s(t){var e=t.split("_");return["not","min","max"].indexOf(e[0])>-1&&e[0]}t.exports=function(t){t.vuex?n(t):t.limit=t.opts.perPage,i(t.opts.columnsDisplay)||"undefined"==typeof window||(t.columnsDisplay=function(t){var e,r,i,n={};for(var a in t){i=s(t[a]);try{u=t[a],l=void 0,l=u.split("_"),r=l.length>1?l[1]:l[0],e=o(r,i),n[a]=e.concat([i])}catch(t){console.warn("Unknown device "+r)}}var u,l;return n}(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t,e){var n={bootstrap3:r(107)(),bootstrap4:r(108)(),bulma:r(109)()},o={default:r(110),footerPagination:r(111)};return function(s){var a={rows:r(112).call(this,s),normalFilter:r(119).call(this,s),dropdownPagination:r(120).call(this,s),dropdownPaginationCount:r(121).call(this,s),columnFilters:r(122).call(this,s),pagination:r(126).call(this,s),headings:r(127).call(this,s),perPage:r(129).call(this,s),columnsDropdown:r(130).call(this,s)};if("string"==typeof t&&(!o[t]||"function"!=typeof o[t]))throw'vue-tables-2: Template "'.concat(t,'" does not exist');if("string"==typeof e&&(!n[e]||"object"!==i(n[e])))throw'vue-tables-2: Theme "'.concat(e,'" does not exist');var u="string"==typeof t?o[t]:t,l="string"==typeof e?n[e]:e(),c=r(133).call(this);return u.call(this,s,a,l,c)}}},function(t,e,r){"use strict";t.exports=function(t){var e=this,r=[];return this.opts.perPageValues.every((function(i){var n=i>=e.count,o=e.limit==i||n&&e.limit>i;return r.push(t("option",{domProps:{value:i,selected:o}},[i])),!n})),r}},function(t,e,r){(function(e){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var r,i,n;try{r=Map}catch(t){r=function(){}}try{i=Set}catch(t){i=function(){}}try{n=Promise}catch(t){n=function(){}}function o(s,u,l,c,f){"object"==typeof u&&(l=u.depth,c=u.prototype,f=u.includeNonEnumerable,u=u.circular);var h=[],p=[],d=void 0!==e;return void 0===u&&(u=!0),void 0===l&&(l=1/0),function s(l,g){if(null===l)return null;if(0===g)return l;var m,y;if("object"!=typeof l)return l;if(t(l,r))m=new r;else if(t(l,i))m=new i;else if(t(l,n))m=new n((function(t,e){l.then((function(e){t(s(e,g-1))}),(function(t){e(s(t,g-1))}))}));else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,a(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(d&&e.isBuffer(l))return m=e.allocUnsafe?e.allocUnsafe(l.length):new e(l.length),l.copy(m),m;t(l,Error)?m=Object.create(l):void 0===c?(y=Object.getPrototypeOf(l),m=Object.create(y)):(m=Object.create(c),y=c)}if(u){var v=h.indexOf(l);if(-1!=v)return p[v];h.push(l),p.push(m)}for(var b in t(l,r)&&l.forEach((function(t,e){var r=s(e,g-1),i=s(t,g-1);m.set(r,i)})),t(l,i)&&l.forEach((function(t){var e=s(t,g-1);m.add(e)})),l){var w;y&&(w=Object.getOwnPropertyDescriptor(y,b)),w&&null==w.set||(m[b]=s(l[b],g-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(b=0;b<_.length;b++){var S=_[b];(!(x=Object.getOwnPropertyDescriptor(l,S))||x.enumerable||f)&&(m[S]=s(l[S],g-1),x.enumerable||Object.defineProperty(m,S,{enumerable:!1}))}}if(f){var C=Object.getOwnPropertyNames(l);for(b=0;b<C.length;b++){var x,P=C[b];(x=Object.getOwnPropertyDescriptor(l,P))&&x.enumerable||(m[P]=s(l[P],g-1),Object.defineProperty(m,P,{enumerable:!1}))}}return m}(s,l)}function s(t){return Object.prototype.toString.call(t)}function a(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=s,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===s(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===s(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===s(t)},o.__getRegExpFlags=a,o}();t.exports&&(t.exports=r)}).call(this,r(114).Buffer)},function(t,e,r){"use strict";t.exports=function(){return Math.ceil(this.count/this.limit)}},function(t,e,r){"use strict";var i,n=(i=r(1))&&i.__esModule?i:{default:i};var o=r(21),s=r(144);t.exports={ClientTable:o,ServerTable:s,Event:n.default}},function(t,e,r){"use strict";var i=r(4),n=c(r(6)),o=c(r(7)),s=c(r(0)),a=c(r(8)),u=c(r(12)),l=c(r(13));function c(t){return t&&t.__esModule?t:{default:t}}var f=r(14),h=r(15),p=r(16);e.install=function(t,e,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",m=s.default.recursive(!0,(0,a.default)(),{name:"client-table",components:{Pagination:i.Pagination},render:p.call(this,g,d),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){h(this),this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,l.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst),this._setColumnsDropdownCloseListener(),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState(),this.hasDateFilters()&&this.initDateFilters()},model:{prop:"data"},data:function(){return s.default.recursive(f(),{source:"client",globalOptions:e,currentlySorting:{},time:Date.now()},(0,u.default)(c,"client",this.options.initialPage))},computed:{q:r(134),customQ:r(135),totalPages:r(19),filteredData:r(136),hasMultiSort:function(){return this.opts.clientMultiSorting}},methods:{transformDateStringsToMoment:r(137),registerClientFilters:r(138),search:r(139),defaultSort:r(142),getGroupSlot:r(143),toggleGroup:function(t,e){e.stopPropagation();var r=this.collapsedGroups.indexOf(t);r>=0?this.collapsedGroups.splice(r,1):this.collapsedGroups.push(t)},groupToggleIcon:function(t){var e=this.opts.sortIcon.base+" ";return e+=this.collapsedGroups.indexOf(t)>-1?this.opts.sortIcon.down:this.opts.sortIcon.up},loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0,t.userControlsColumns&&(this.userColumnsDisplay=t.userColumnsDisplay,this.userControlsColumns=t.userControlsColumns)}}}}),y=c?(0,n.default)():(0,o.default)();return m=s.default.recursive(m,y),t.component("v-client-table",m),m}},function(t,e,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=s(r(23)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}var a=r(25),u=r(5);t.exports={render:a.call(void 0),props:{for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},created:function(){if(this.vuex){if(!this.for)throw new Error('vue-pagination-2: The "for" prop is required when using vuex');var t,e,r,i=this.for;if(!this.$store.state[i])this.$store.registerModule(this.for,{state:{page:1},mutations:(t={},e=i+"/PAGINATE",r=function(t,e){t.page=e},e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t)})}},data:function(){return{Page:1,firstPage:1}},computed:{opts:function(){return(0,o.default)((0,n.default)(),this.options)},Theme:function(){if("object"===i(this.opts.theme))return this.opts.theme;var t={bootstrap3:r(26),bootstrap4:r(27),bulma:r(28)};if(void 0===i(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},page:function(){return this.vuex?this.$store.state[this.for].page:this.Page},pages:function(){return this.records?(t=this.paginationStart,e=this.pagesInCurrentChunk,Array.apply(0,Array(e)).map((function(e,r){return r+t}))):[];var t,e},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.opts.chunk)},currentChunk:function(){return Math.ceil(this.page/this.opts.chunk)},paginationStart:function(){if("scroll"===this.opts.chunksNavigation){var t=this.Page-this.opts.chunk+1;return t>0?t:1}return(this.currentChunk-1)*this.opts.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.opts.chunk<=this.totalPages?this.opts.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.opts.texts.count))return this.totalPages<=1?"":this.opts.texts.count.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.opts.texts.count.split("|"),e=(this.page-1)*this.perPage+1,r=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(r))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.vuex?this.$store.commit(this.for+"/PAGINATE",t):this.Page=t,this.$emit("paginate",t),this.for&&u.$emit("vue-pagination::"+this.for,t)},next:function(){var t=this.page+1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,r=e+this.opts.chunk-1;return t>=e&&t<=r},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.opts.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk<this.totalChunks||-1==t&&this.currentChunk>1},allowedPageClass:function(t){return this.allowedPage(t)?"":this.Theme.disabled},allowedChunkClass:function(t){return this.allowedChunk(t)?"":this.Theme.disabled},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.opts.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}},beforeDestroy:function(){u.$off(),u.$destroy()}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{format:!0,chunk:10,chunksNavigation:"fixed",edgeNavigation:!1,theme:"bootstrap3",texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last"}}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";t.exports=function(){return function(t){var e=this.Theme,r="",i="",n="",o="",s=this.pages.map(function(r){return t("li",{class:"VuePagination__pagination-item "+e.item+" "+this.activeClass(r),on:{click:this.setPage.bind(this,r)}},[t("a",{class:e.link+" "+this.activeClass(r),attrs:{href:"javascript:void(0)",role:"button"}},[r])])}.bind(this));return this.opts.edgeNavigation&&this.totalChunks>1&&(n=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk",on:{click:this.setPage.bind(this,1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page}},[this.opts.texts.first])]),o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk",on:{click:this.setPage.bind(this,this.totalPages)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===this.totalPages}},[this.opts.texts.last])])),"fixed"===this.opts.chunksNavigation&&(r=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1),on:{click:this.setChunk.bind(this,-1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)}},["<<"])]),i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1),on:{click:this.setChunk.bind(this,1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)}},[">>"])])),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[n,r,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1),on:{click:this.prev.bind(this)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)}},["<"])]),s,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1),on:{click:this.next.bind(this)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)}},[">"])]),i,o]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,r){"use strict";t.exports={initQuery:r(30),resetQuery:r(31),initCustomFilters:r(32),initOptions:r(33),sortableClass:r(34),sortableChevronClass:r(35),display:r(36),orderByColumn:r(37),getHeading:r(38),getHeadingTooltip:r(40),sortable:r(41),serverSearch:r(9),initOrderBy:r(42),initDateFilters:r(43),setFilter:r(44),setPage:r(45),setOrder:r(46),initPagination:r(47),filterable:r(48),isTextFilter:r(49),isDateFilter:r(50),isListFilter:r(51),highlightMatch:r(52),formatDate:r(53),hasDateFilters:r(54),applyFilters:r(55),optionText:r(56),render:r(57),rowWasClicked:r(58),setLimit:r(59),getOpenChildRows:r(60),dispatch:r(61),toggleChildRow:r(62),childRowTogglerClass:r(63),sendRequest:r(64),getResponseData:r(65),getSortFn:r(66),initState:r(67),updateState:r(68),columnClass:r(69),getName:r(70),toggleColumn:r(71),setUserMultiSort:r(72),_cellClasses:r(73),_setFiltersDOM:r(74),_currentlySorted:r(75),_getChildRowTemplate:r(76),_toggleColumnsDropdown:r(77),_onlyColumn:r(78),_onPagination:r(79),_toggleGroupDirection:r(80),_getInitialDateRange:r(81),_setDatepickerText:r(82),_initialOrderAscending:r(83),dateFormat:r(84),_setColumnsDropdownCloseListener:r(85),_getValue:r(86),_getColumnName:r(87),_shouldShowColumnOnInit:r(88)}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==i(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(r){e[r]=function(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}(t,r)}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){for(var t in this.query)this.query[t]=""}},function(t,e,r){"use strict";t.exports=function(){var t,e={},r=this.opts.initFilters;return this.opts.customFilters.forEach(function(i){t="client"==this.source?i.name:i,e[t]=r.hasOwnProperty(t)?r[t]:""}.bind(this)),e}},function(t,e,r){"use strict";var i=r(0);t.exports=function(t,e,r){return e&&(t=i.recursive(t,e)),r=i.recursive(t,r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var r=this.userMultiSorting[this.orderBy.column].filter((function(e){return e.column===t}))[0];r&&(e+=r.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,r){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";t=this.opts.texts[t];if(e)for(var r in e)t=t.replace("{"+r+"}",e[r]);return t}},function(t,e,r){"use strict";t.exports=function(t,e){this.sortable(t)&&(e&&e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t==this.orderBy.column?!this.orderBy.ascending:this._initialOrderAscending(t),this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,r){"use strict";var i,n=(i=r(39))&&i.__esModule?i:{default:i};t.exports=function(t,e){if("string"!=typeof t)return"";if(void 0!==this.$slots["h__".concat(t)])return this.$slots["h__".concat(t)];var r=(0,n.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):r:this.opts.headings[t]:r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,r){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,r){"use strict";var i=r(0);t.exports=function(){if("undefined"!=typeof $&&void 0!==$(this.$el).daterangepicker){var t,e,r,n=this,o=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,s=function(t,e){return"client"==n.source?n.search(n.data,e):n.serverSearch(t,e)},a=i.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1});n.datepickerColumns.forEach((function(u){var l=n._getInitialDateRange(u);l?(n._setDatepickerText(u,l.start,l.end),l={startDate:l.start,endDate:l.end}):l={},t=$(n.$el).find("#VueTables__"+$.escapeSelector(u)+"-filter"),e=void 0!==n.opts.datepickerPerColumnOptions[u]?n.opts.datepickerPerColumnOptions[u]:{},e=i.recursive(e,{locale:{format:n.dateFormat(u)}}),r=i(!0,a),!1===e.ranges&&(r.ranges={}),t.daterangepicker(i.recursive(r,e,l)),t.on("apply.daterangepicker",(function(t,e){o[u]={start:e.startDate.format("YYYY-MM-DD HH:mm:ss"),end:e.endDate.format("YYYY-MM-DD HH:mm:ss")},n.vuex||(n.query=o),n._setDatepickerText(u,e.startDate,e.endDate),n.updateState("query",o),s(o,{target:{name:n._getColumnName(u),value:o[u]}})})),t.on("cancel.daterangepicker",(function(t,e){o[u]="",n.vuex||(n.query=o),e.setStartDate(moment()),e.setEndDate(moment()),n.updateState("query",o),$(this).html("<span class='VueTables__filter-placeholder'>"+n.display("filterBy",{column:n.getHeading(u)})+"</span>"),s(o,{target:{name:n._getColumnName(u),value:o[u]}})}))}))}else console.error("Date filters require jquery and daterangepicker")}},function(t,e,r){"use strict";var i=r(0);t.exports=function(t){if(this.opts.filterable)if(this.opts.filterByColumn&&"string"==typeof t)console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");else if(this.opts.filterByColumn||"string"==typeof t){var e=this.opts.filterByColumn?i(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}else console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");else console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)")}},function(t,e,r){"use strict";t.exports=function(t,e){t=t||this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.page=t,this.updateState("page",t),"server"!=this.source||e||this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t,e,r){var i,n=this.opts.filterByColumn?this.query[e]:this.query;return n?r("span",{class:"VueTables__highlight"},function(t,e,r){return String(t).split(e).map((function(t){return e.test(t)?r("b",{},t):t}))}(t,n=new RegExp("("+("string"==typeof(i=n)?i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):i)+")","i"),r)):t}},function(t,e,r){"use strict";var i=r(10);t.exports=function(t,e){return i(t)?t.format(e):t}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(11).default;t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==i(t.filterable)&&n(t.filterable,t.dateColumns).length)}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=this;try{return t.map((function(t){for(var r in t)"client"===e.source&&(t[r]=e.formatDate(t[r],e.dateFormat(r))),!e.isListFilter(r)||e.opts.templates[r]||e.$scopedSlots[r]||(t[r]=e.optionText(t[r],r));return t}))}catch(e){throw console.error("vue-tables-2: non-iterable data property. Expected array, got ".concat(i(t),". Make sure that your response conforms to the expected format, or use the 'responseAdapter' option to match the currently returned format")),console.error("Data equals",t),new Error}}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this.listColumnsObject[e];return void 0===r[t]?t:r[t]}},function(t,e,r){"use strict";t.exports=function(t,e,r,i){var n=this._getValue(t,e);if(-1==this.templatesKeys.indexOf(e))return void 0!==n&&this.opts.highlightMatches&&-1!==this.filterableColumns.indexOf(e)?this.highlightMatch(n,e,i):n;var o=this.opts.templates[e];return o="function"==typeof o?o.apply(this.$root,[i,t,r,e]):i(o,{attrs:{data:t,column:e,index:r}})}},function(t,e,r){"use strict";t.exports=function(t,e,r){var i,n=this.opts.uniqueKey;i="client"==this.source&&void 0!==t[n]?this.tableData.filter((function(e){return t[n]===e[n]}))[0]:t,this.dispatch("row-click",{row:i,index:e,event:r})}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){this.limit="object"===i(t)?t.target.value:t,this.updateState("perPage",this.limit),this.dispatch("limit",parseInt(this.limit)),this.setPage(1)}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var r=e?this.openChildRows.filter((function(t){return e.includes(t)})):this.openChildRows;if(!r.length)return[];var i=this.$children.filter((function(e){return"ChildRow"===e.$options.name&&r.includes(e.data[t.opts.uniqueKey])}));return i}},function(t,e,r){"use strict";var i,n=(i=r(1))&&i.__esModule?i:{default:i};t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$emit(t,e),n.default.$emit("vue-tables.".concat(t),e),this.name&&n.default.$emit("vue-tables.".concat(this.name,".").concat(t),e)}},function(t,e,r){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var r=this.openChildRows.indexOf(t);this.openChildRows.splice(r,1)}else this.openChildRows.push(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,r){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,r){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,r){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var r=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){r=this.initState()}r[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(r))}}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return t?((t=t.split("__")).shift(),t.join("__").split("@@@").join(".")):t}},function(t,e,r){"use strict";t.exports=function(t){var e=this;if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var r=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(r,1)}else this.userColumnsDisplay.push(t);this.updateState("userControlsColumns",!0),this.updateState("userColumnsDisplay",this.userColumnsDisplay),this.$nextTick((function(){e._setFiltersDOM(e.query)}))}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.column,r=this.orderBy.ascending;this.userMultiSorting[e]||(this.userMultiSorting[e]=[]);var i=this.userMultiSorting[e];if(e===t)!i.length||r?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=i.shift(),this.userMultiSorting={},this.userMultiSorting[this.orderBy.column]=i);else{var n=i.filter((function(e){return e.column==t}))[0];n?n.ascending?n.ascending=!n.ascending:(this.userMultiSorting[e]=i.filter((function(e){return e.column!=t})),this.userMultiSorting[e].length||(this.userMultiSorting={})):i.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",function(t,e){var r=[JSON.parse(JSON.stringify(t))];return r=r.concat(e[t.column])}(this.orderBy,this.userMultiSorting))}},function(t,e,r){"use strict";t.exports=function(t,e){return this.opts.cellClasses[t]?this.opts.cellClasses[t].filter((function(t){return t.condition(e)})).map((function(t){return t.class})).join(" "):""}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e;if(this.opts.filterByColumn)for(var r in t){var n=this._getColumnName(r);if(this.isDateFilter(r))if(t[r]&&"object"===i(t[r])){var o="string"==typeof t[r].start?moment(t[r].start,"YYYY-MM-DD"):t[r].start,s="string"==typeof t[r].end?moment(t[r].end,"YYYY-MM-DD"):t[r].end;this._setDatepickerText(r,o,s)}else $(this.$el).find("#VueTables__"+$.escapeSelector(r)+"-filter").html("<span class='VueTables__filter-placeholder'>"+this.display("filterBy",{column:this.getHeading(r)})+"</span>");else(e=this.$el.querySelector("[name='".concat(n,"']")))?e.value=t[r]:-1===this.columns.indexOf(r)&&console.error("vue-tables-2: Error in setting filter value. Column '".concat(r,"' does not exist."))}else(e=this.$el.querySelector(".VueTables__search__input"))&&(e.value=t)}},function(t,e,r){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter((function(e){return e.column==t})).length:this.orderBy.column===t}},function(t,e,r){"use strict";t.exports=function(t,e,r){if(this.$scopedSlots.child_row)return this.$scopedSlots.child_row({row:e,index:r});var i=this.opts.childRow;return"function"==typeof i?i.apply(this,[t,e]):t(i,{attrs:{data:e}})}},function(t,e,r){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,r){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,r){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,r){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==this.opts.initFilters[t]?this.opts.initFilters[t]:!(void 0===this.query[t]||!this.query[t].start)&&{start:moment(this.query[t].start,"YYYY-MM-DD HH:mm:ss"),end:moment(this.query[t].end,"YYYY-MM-DD HH:mm:ss")}}},function(t,e,r){"use strict";t.exports=function(t,e,r){var i=this.dateFormat(t);("string"==typeof t?$(this.$el).find("#VueTables__"+$.escapeSelector(t)+"-filter"):t).text(e.format(i)+" - "+r.format(i))}},function(t,e,r){"use strict";t.exports=function(t){return!this.opts.descOrderColumns.includes(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.dateFormatPerColumn.hasOwnProperty(t)?this.opts.dateFormatPerColumn[t]:this.opts.dateFormat}},function(t,e,r){"use strict";t.exports=function(){var t=this;if(this.opts.columnsDropdown){var e=function(t){return t.stopPropagation()},r=function(){t.displayColumnsDropdown&&(t.displayColumnsDropdown=!1)};this.$refs.columnsdropdown.addEventListener("click",e),document.addEventListener("click",r),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("click",r),t.$refs.columnsdropdown.removeEventListener("click",e)}))}}},function(t,e,r){"use strict";t.exports=function(t,e){if(-1===e.indexOf("."))return t[e];var r=e.split("."),i=t[r[0]];if(!i)return"";for(var n=1;n<r.length;n++)if(void 0===(i=i[r[n]]))return"";return i}},function(t,e,r){"use strict";t.exports=function(t){return"vf__"+t.split(".").join("@@@")}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.visibleColumns?this.opts.visibleColumns.includes(t):!this.opts.hiddenColumns||!this.opts.hiddenColumns.includes(t)}},function(t,e,r){"use strict";t.exports={listColumnsObject:r(90),allColumns:r(91),templatesKeys:r(92),opts:r(93),tableData:r(95),storage:r(96),filterableColumns:r(97),datepickerColumns:r(98),hasChildRow:r(99),colspan:r(100),hasGenericFilter:r(101),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page}}},function(t,e,r){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach((function(r){e[t][r.id]=r.text}))}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter((function(e){return t.userColumnsDisplay.includes(e)})):this.opts.ssr?this.Columns:this.Columns.filter((function(r){if(!t._shouldShowColumnOnInit(r))return!1;if(!e[r])return!0;var i=e[r],n=i[2],o=(!i[0]||t.windowWidth>=i[0])&&(!i[1]||t.windowWidth<i[1]);return"not"==n?!o:o})):this.Columns.filter((function(e){return t._shouldShowColumnOnInit(e)}))}},function(t,e,r){"use strict";t.exports=function(){return Object.keys(this.opts.templates)}},function(t,e,r){"use strict";t.exports=function(){var t=r(94)();return this.initOptions(t,this.globalOptions,this.options)}},function(t,e,r){"use strict";t.exports=function(){return{alwaysShowPerPageSelect:!1,hidePerPageSelect:!1,dateColumns:[],listColumns:{},datepickerOptions:{locale:{cancelLabel:"Clear"}},datepickerPerColumnOptions:{},initialPage:1,perPage:10,perPageValues:[10,25,50,100],groupBy:!1,collapseGroups:!1,destroyEventBus:!1,sendEmptyFilters:!1,params:{},sortable:!0,filterable:!0,groupMeta:[],initFilters:{},sendInitialRequest:!0,customFilters:[],templates:{},debounce:250,dateFormat:"DD/MM/YYYY",dateFormatPerColumn:{},toMomentFormat:!1,skin:!1,columnsDisplay:{},columnsDropdown:!1,texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last",filter:"Filter:",filterPlaceholder:"Search query",limit:"Records:",page:"Page:",noResults:"No matching records",filterBy:"Filter by {column}",loading:"Loading...",defaultOption:"Select {column}",columns:"Columns"},sortIcon:{is:"glyphicon-sort",base:"glyphicon",up:"glyphicon-chevron-up",down:"glyphicon-chevron-down"},sortingAlgorithm:function(t,e){return t.sort(this.getSortFn(e))},filterAlgorithm:{},customSorting:{},multiSorting:{},clientMultiSorting:!0,serverMultiSorting:!1,filterByColumn:!1,highlightMatches:!1,orderBy:!1,descOrderColumns:[],footerHeadings:!1,headings:{},headingsTooltips:{},pagination:{dropdown:!1,chunk:10,edge:!1,align:"center",nav:"fixed"},childRow:!1,childRowTogglerFirst:!0,showChildRowToggler:!0,uniqueKey:"id",requestFunction:!1,requestAdapter:function(t){return t},responseAdapter:function(t){var e=this.getResponseData(t);return{data:e.data,count:e.count}},requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},rowClassCallback:!1,preserveState:!1,saveState:!1,storage:"local",columnsClasses:{},summary:!1,caption:!1,cellClasses:{},visibleColumns:!1,hiddenColumns:!1,resizableColumns:!0,editableColumns:[]}}},function(t,e,r){"use strict";t.exports=function(){return this.data}},function(t,e,r){"use strict";t.exports=function(){return"undefined"==typeof localStorage?{}:"local"===this.opts.storage?localStorage:sessionStorage}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterable&&this.opts.filterable.length?this.opts.filterable:this.Columns}},function(t,e,r){"use strict";var i=r(11).default;t.exports=function(){return!0===this.opts.filterable?this.opts.dateColumns:!1===this.opts.filterable?[]:i(this.opts.filterable,this.opts.dateColumns)}},function(t,e,r){"use strict";t.exports=function(){return this.opts.childRow||this.$scopedSlots.child_row}},function(t,e,r){"use strict";t.exports=function(){return this.hasChildRow?this.allColumns.length+1:this.allColumns.length}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){return!this.opts.filterByColumn&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||"object"===i(this.opts.filterable)&&this.opts.filterable.length)}},function(t,e,r){"use strict";var i,n=(i=r(1))&&i.__esModule?i:{default:i};t.exports=function(){var t,e=this;this.opts.destroyEventBus&&(n.default.$off(),n.default.$destroy()),this.vuex&&!this.opts.preserveState&&this.$store.unregisterModule(this.name),this.opts.filterByColumn&&this.datepickerColumns.forEach((function(r){(t=$(e.$el).find("#VueTables__"+$.escapeSelector(r)+"-filter").data("daterangepicker"))&&t.remove()}))}},function(t,e,r){"use strict";t.exports=function(t){if(null==t)return!0;if(t.length>0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,r){"use strict";var i=s(r(105)),n=s(r(106)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e={state:(0,i.default)(t),mutations:(0,n.default)(t)};t.$store&&t.$store.state&&t.$store.state[t.name]&&(e.state=o.default.recursive(e.state,t.$store.state[t.name]),t.$store.unregisterModule(t.name)),t.$store.registerModule(t.name,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};if(void 0!==t.$store.state[t.name])return(0,n.default)(!0,t.$store.state[t.name],e);return e};var i,n=(i=r(0))&&i.__esModule?i:{default:i}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r,i="server"==t.source?(o(e={},"".concat(t.name,"/SET_DATA"),(function(e,r){var i=t.opts.responseAdapter.call(t,r);e.data=i.data,e.count=parseInt(i.count)})),o(e,"".concat(t.name,"/LOADING"),(function(t,e){})),o(e,"".concat(t.name,"/LOADED"),(function(t,e){})),o(e,"".concat(t.name,"/ERROR"),(function(t,e){})),e):o({},"".concat(t.name,"/SET_COUNT"),(function(t,e){t.count=e}));return n.default.recursive(!0,(o(r={},"".concat(t.name,"/PAGINATE"),(function(e,r){e.page=r,t.updateState("page",r),"server"==t.source&&t.getData(),t.commit("PAGINATION",r)})),o(r,"".concat(t.name,"/SET_FILTER"),(function(e,r){e.page=1,t.updateState("page",1),e.query=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/PAGINATION"),(function(t,e){})),o(r,"".concat(t.name,"/SET_CUSTOM_FILTER"),(function(e,r){var i=r.filter,n=r.value;e.customQueries[i]=n,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SET_STATE"),(function(t,e){var r=e.page,i=e.query,n=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=n,t.query=i,t.page=r,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column})),o(r,"".concat(t.name,"/SET_LIMIT"),(function(e,r){e.page=1,t.updateState("page",1),e.limit=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORT"),(function(e,r){var i=r.column,n=r.ascending;e.ascending=n,e.sortBy=i,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORTED"),(function(t,e){})),o(r,"".concat(t.name,"/ROW_CLICK"),(function(t,e){})),o(r,"".concat(t.name,"/FILTER"),(function(t,e){})),o(r,"".concat(t.name,"/LIMIT"),(function(t,e){})),r),i)};var i,n=(i=r(0))&&i.__esModule?i:{default:i};function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}}}},function(t,e,r){"use strict";var i,n=(i=r(0))&&i.__esModule?i:{default:i};t.exports=function(t,e,i,o){var s="VueTables__search_"+this.id,a="VueTables__dropdown-pagination_"+this.id,u="VueTables__limit_"+this.id,l=r(17).call(this,t),c=this.opts.caption?t("caption",[this.opts.caption]):"",f=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:i.label},[this.display("filter")]),e.normalFilter(i,s)]):"",h=!this.opts.hidePerPageSelect&&(l.length>1||this.opts.alwaysShowPerPageSelect)?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:u}},[this.display("limit")]),e.perPage(l,i.select,u)]):"",p=this.opts.pagination&&this.opts.pagination.dropdown?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__dropdown-pagination"),directives:[{name:"show",value:this.totalPages>1}]},[t("label",{attrs:{for:a}},[this.display("page")]),e.dropdownPagination(i.select,a)])]):"",d=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",g=this.opts.footerHeadings?t("tfoot",[t("tr",[e.headings(i.right)])]):"",m=f||h||p||d||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit,y=t("div",{class:i.row,directives:[{name:"show",value:m}]},[t("div",{class:i.column},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.left," VueTables__search")},[o.beforeFilter,f,o.afterFilter]),o.afterFilterWrapper,t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__limit")},[o.beforeLimit,h,o.afterLimit]),p,d])]);return t("div",{class:"VueTables VueTables--"+this.source},[y,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table ".concat(this.opts.skin?this.opts.skin:i.table),attrs:{summary:this.opts.summary}},[c,t("thead",[o.prependHead,t("tr",[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),g,o.beforeBody,t("tbody",[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable,e.pagination((0,n.default)(i.pagination,{wrapper:"".concat(i.row," ").concat(i.column," ").concat(i.contentCenter),nav:i.center,count:"".concat(i.center," ").concat(i.column)})),e.dropdownPaginationCount()])}},function(t,e,r){"use strict";var i,n=(i=r(0))&&i.__esModule?i:{default:i};t.exports=function(t,e,i,o){var s="VueTables__search_"+this.id,a="VueTables__limit_"+this.id,u=r(17).call(this,t),l=this.opts.caption?t("caption",[this.opts.caption]):"",c=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:i.label},[this.display("filter")]),e.normalFilter(i,s)]):"",f=u.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:a}},[this.display("limit")]),e.perPage(u,i.select,a)]):"",h=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",p=c||f||h||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit,d=t("div",{class:i.row,directives:[{name:"show",value:p}]},[t("div",{class:i.column},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.left," VueTables__search")},[o.beforeFilter,c,o.afterFilter]),o.afterFilterWrapper,t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__limit")},[o.beforeLimit,f,o.afterLimit]),h])]);return t("div",{class:"VueTables VueTables--"+this.source},[d,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table ".concat(this.opts.skin?this.opts.skin:i.table),attrs:{summary:this.opts.summary}},[l,t("thead",[o.prependHead,t("tr",[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),t("tfoot",[t("tr",[t("td",{attrs:{colspan:this.colspan}},[e.pagination((0,n.default)(i.pagination,{list:"".concat(i.pagination.list," ").concat(i.right," ").concat(i.nomargin),count:"".concat(i.left)}))])])]),o.beforeBody,t("tbody",[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable])}},function(t,e,r){"use strict";var i=o(r(113)),n=o(r(18));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e=this;return function(r){var o;if("client"===e.source?(o=e.filteredData).length||"client"!==e.source||1===e.page||e.setPage(e.totalPages?e.totalPages:1):o=e.tableData,0===o.length){e.allColumns.length;return e.hasChildRow&&e.opts.showChildRowToggler&&0,t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{tabindex:"0",colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}var s,a,u,l,c,f,h,p=[],d=e.opts.uniqueKey,g=(e.Page-1)*e.limit;return o.map((function(o,m){if(e.opts.groupBy&&"client"===e.source&&o[e.opts.groupBy]!==l&&(c=e.getGroupSlot(o[e.opts.groupBy]),f=o[e.opts.groupBy],h=e.opts.toggleGroups?t("button",{class:r.button,on:{click:e.toggleGroup.bind(e,f)}},[f,t("span",{class:e.groupToggleIcon(f)})]):f,p.push(t("tr",{class:r.groupTr,on:{click:e._toggleGroupDirection.bind(e)}},[t("td",{attrs:{colspan:e.colspan}},[h,c])])),l=o[e.opts.groupBy]),!e.opts.toggleGroups||!e.collapsedGroups.includes(l)){if(m=g+m+1,s=[],e.hasChildRow&&e.opts.showChildRowToggler){var y=t("td",{attrs:{tabindex:"0"},on:{keypress:function(t){"Enter"===t.key&&e.toggleChildRow.bind(e,o[d])()},click:e.toggleChildRow.bind(e,o[d])}},[t("span",{class:"VueTables__child-row-toggler "+e.childRowTogglerClass(o[d])})]);e.opts.childRowTogglerFirst&&s.push(y)}e.allColumns.map((function(r){var i=e.$scopedSlots&&e.$scopedSlots[r];if(i)var a={row:o,column:r,index:m};e.opts.editableColumns.includes(r)&&(a.update=function(t,e){return function(r){var i=this,o=t[e];t[e]=function(t){if(t.target)return"checkbox"===t.target.type?t.target.checked:t.target.value;return t}(r);var s=(0,n.default)(this.data).map((function(e){return e[i.opts.uniqueKey]===t[i.opts.uniqueKey]?t:e}));this.$emit("input",s),this.$emit("update",{row:t,column:e,oldVal:o,newVal:t[e]})}}(o,r).bind(e),a.isEditing=function(t,e){return function(){var r=this;return this.editing.find((function(i){return i.id===t[r.opts.uniqueKey]&&i.column===e}))}}(o,r).bind(e),a.setEditing=function(t,e){return function(r){var i=this;r?this.editing.push({id:t[this.opts.uniqueKey],column:e,originalValue:t[e]}):this.editing=this.editing.filter((function(e){return e.id!==t[i.opts.uniqueKey]}))}}(o,r).bind(e),a.revertValue=function(t,e){return function(){var r=this,i=this.editing.find((function(e){return e.id===t[r.opts.uniqueKey]})).originalValue;t[e]=i}}(o,r).bind(e)),s.push(t("td",{class:"".concat(e.columnClass(r)," ").concat(e._cellClasses(r,o)).trim(),attrs:{tabindex:"0"}},[i?i(a):e.render(o,r,m,t)]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(y),u=e.opts.rowClassCallback?e.opts.rowClassCallback(o):"",a=e.opts.rowAttributesCallback?e.opts.rowAttributesCallback(o):{},p.push(t("tr",(0,i.default)([{attrs:a},{class:"VueTables__row ".concat(u),on:{click:e.rowWasClicked.bind(e,o,m)}}]),[s," "])),p.push(e.hasChildRow&&e.openChildRows.includes(o[d])?t("tr",{class:"VueTables__child-row ".concat(u)},[t("td",{attrs:{colspan:e.colspan,tabindex:"0"}},[e._getChildRowTemplate(t,o,m)])]):t())}})),p}}},function(t,e){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var n,o,s,a,u;for(s in e)if(n=t[s],o=e[s],n&&r.test(s))if("class"===s&&("string"==typeof n&&(u=n,t[s]=n={},n[u]=!0),"string"==typeof o&&(u=o,e[s]=o={},o[u]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)n[a]=i(n[a],o[a]);else if(Array.isArray(n))t[s]=n.concat(o);else if(Array.isArray(o))t[s]=[n].concat(o);else for(a in o)n[a]=o[a];else t[s]=e[s];return t}),{})}},function(t,e,r){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var i=r(116),n=r(117),o=r(118);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,r)}function l(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|d(e,r),n=(t=a(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(c(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(t).length;default:if(i)return L(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function m(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function y(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,i,n);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,i,n){var o,s=1,a=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var c=-1;for(o=r;o<a;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(t,o+h)!==l(e,h)){f=!1;break}if(f)return o}return-1}function b(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function w(t,e,r,i){return N(L(e,t.length-r),t,r,i)}function _(t,e,r,i){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function S(t,e,r,i){return _(t,e,r,i)}function C(t,e,r,i){return N(V(e),t,r,i)}function x(t,e,r,i){return N(function(t,e){for(var r,i,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function P(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,s,a,u,l=t[n],c=null,f=l>239?4:l>223?3:l>191?2:1;if(n+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[n+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=f}return function(t){var e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=B));return r}(i)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,i){return c(e),e<=0?a(t,e):void 0!==r?"string"==typeof i?a(t,e).fill(r,i):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},u.isEncoding=function(t){switch(String(t).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(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var i=u.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,n),n+=s.length}return i},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,i,n){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,n),c=t.slice(e,r),f=0;f<a;++f)if(l[f]!==c[f]){o=l[f],s=c[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return S(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function O(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function E(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function D(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=e;o<r;++o)n+=Y(t[o]);return n}function R(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function k(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,i,n,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function M(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-r,2);n<o;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function F(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-r,4);n<o;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function $(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(t,e,r,i,o){return o||$(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,o){return o||$(t,0,r,8),n.write(t,e,r,i,52,8),r+8}u.prototype.slice=function(t,e){var r,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var n=e-t;r=new u(n,void 0);for(var o=0;o<n;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},u.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),n.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),n.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),n.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),n.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||A(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||A(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);A(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);A(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return q(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return q(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,i){if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,o=i-r;if(this===t&&r<e&&e<i)for(n=o-1;n>=0;--n)t[n+e]=this[n+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:L(new u(t,i).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function L(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s<i;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(this,r(115))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],i=e[1];return 3*(r+i)/4-i},e.toByteArray=function(t){var e,r,i=l(t),s=i[0],a=i[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),c=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],s=0,a=r-n;s<a;s+=16383)o.push(c(t,s,s+16383>a?a:s+16383));1===n?(e=t[r-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)i[a]=s[a],n[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var n,o,s=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(i[(o=n)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,i,n){var o,s,a=8*n-i-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?n-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+t[e+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=l}return(p?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,r,i,n,o){var s,a,u,l=8*o-n-1,c=(1<<l)-1,f=c>>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*u-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;t[r+p]=255&a,p+=d,a/=256,n-=8);for(s=s<<n|a,l+=n;l>0;t[r+p]=255&s,p+=d,s/=256,l-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var i=r(2);t.exports=function(t){var e=this;return function(r,n){var o="client"==e.source?e.search.bind(e,e.data):e.serverSearch.bind(e);return t("input",{class:"VueTables__search__input ".concat(r.input," ").concat(r.small),attrs:{type:"text",placeholder:e.display("filterPlaceholder"),id:n,autocomplete:"off"},on:{keyup:e.opts.debounce?i(o,e.opts.debounce):o}})}}},function(t,e,r){"use strict";r(2);t.exports=function(t){var e=this;return function(r,i){for(var n=[],o=1;o<=e.totalPages;o++){var s=e.page==o;n.push(t("option",{domProps:{value:o,selected:s}},[o]))}return t("select",{class:"".concat(r," dropdown-pagination"),directives:[{name:"show",value:e.totalPages>1}],attrs:{name:"page",id:i},ref:"page",domProps:{value:e.page},on:{change:e.setPage.bind(e,null,!1)}},[n])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(){if(e.count>0&&e.opts.pagination.dropdown){var r=parseInt(e.limit),i=(e.Page-1)*r+1,n=e.Page==e.totalPages?e.count:i+r-1,o=e.opts.texts.count.split("|"),s=o[Math.min(1==e.count?2:1==e.totalPages?1:0,o.length-1)].replace("{count}",e.count).replace("{from}",i).replace("{to}",n);return t("div",{class:"VuePagination"},[t("p",{class:"VuePagination__count"},[s])])}return""}}},function(t,e,r){"use strict";var i;(i=r(0))&&i.__esModule;function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.exports=function(t){var e=this;return function(i){if(!e.opts.filterByColumn||!e.opts.filterable)return"";var o=r(123).call(e,t,i.input),s=r(124).call(e,t),a=r(125).call(e,t,i.select),u=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&u.push(t("th")),e.allColumns.map((function(r){var i="";if(e.filterable(r))switch(!0){case e.isTextFilter(r):i=o(r);break;case e.isDateFilter(r):i=s(r);break;case e.isListFilter(r):i=a(r)}void 0!==e.$slots["filter__".concat(r)]&&(i=i?t("div",[i,e.$slots["filter__".concat(r)]]):e.$slots["filter__".concat(r)]),u.push(t("th",{class:e.columnClass(r)},[t("div",n({class:"VueTables__column-filter"},"class","VueTables__"+r+"-filter-wrapper"),[i])]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&u.push(t("th")),t("tr",{class:"VueTables__filters-row"},[u])}}},function(t,e,r){"use strict";var i=r(2);t.exports=function(t,e){var r=this,n="client"==this.source?this.search.bind(this,this.data):this.serverSearch.bind(this);if(this.opts.debounce)var o=i(n,this.opts.debounce),s=function(t){9!==t.keyCode&&(13===t.keyCode?(o.clear(),n.apply(void 0,arguments)):o.apply(void 0,arguments))};return function(i){return t("input",{on:{keyup:r.opts.debounce?s:n},class:e,attrs:{name:r._getColumnName(i),type:"text",placeholder:r.display("filterBy",{column:r.getHeading(i)}),autocomplete:"off"}})}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){return t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+r+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[e.display("filterBy",{column:e.getHeading(r)})])])}}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this;return function(i){var n,o=[],s="client"==r.source?r.search.bind(r,r.data):r.serverSearch.bind(r);return r.opts.listColumns[i].filter((function(t){return!t.hide})).map((function(e){n=e.id==r.query[i]&&""!==r.query[i],o.push(t("option",{domProps:{value:e.id,selected:n}},[e.text]))})),t("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+i+"-filter"}},[t("select",{class:e,on:{change:s},attrs:{name:r._getColumnName(i)},domProps:{value:r.query[i]}},[t("option",{attrs:{value:""}},[r.display("defaultOption",{column:r.opts.headings[i]?r.opts.headings[i]:i})]),o])])}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r){if(e.opts.pagination&&e.opts.pagination.dropdown)return"";var i={theme:r,chunk:e.opts.pagination.chunk,chunksNavigation:e.opts.pagination.nav,edgeNavigation:e.opts.pagination.edge,texts:{count:e.opts.texts.count,first:e.opts.texts.first,last:e.opts.texts.last}},n=e.vuex?e.name:e.id;return t("pagination",{ref:"pagination",attrs:{options:i,for:n,vuex:e.vuex,records:e.count,"per-page":parseInt(e.limit)},on:{paginate:e._onPagination.bind(e)}})}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(i){var n=e,o=r(128)(t,i),s=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(t("th")),e.allColumns.map(function(e){s.push(t("th",{on:{keypress:function(t){"Enter"===t.key&&n.orderByColumn.bind(n,e,t)()},click:function(t){"resize-handle"!==t.target.className&&n.orderByColumn.bind(n,e,t)()}},class:this.sortableClass(e),attrs:{tabindex:"0"}},[t("span",{class:"VueTables__heading",attrs:{title:this.getHeadingTooltip(e,t)}},[this.getHeading(e,t)]),o.call(this,e)]))}.bind(e)),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(t("th")),s}}},function(t,e,r){"use strict";t.exports=function(t,e){return function(r){return this.sortable(r)?t("span",{class:"VueTables__sort-icon ".concat(e," ").concat(this.sortableChevronClass(r))}):""}}},function(t,e,r){"use strict";t.exports=function(t){var e=this;return function(r,i,n){return t("select",{class:i,attrs:{name:"limit",id:n},domProps:{value:e.limit},on:{change:e.setLimit.bind(e)}},[r])}}},function(t,e,r){"use strict";var i=r(131),n=r(132);t.exports=function(t){var e=this;return function(r){var o=e.columns.map((function(i){return n(t,r,t("a",{class:r.dropdown.item,attrs:{href:"#"},on:{click:function(){return e.toggleColumn(i)}}},[t("input",{attrs:{type:"checkbox",disabled:e._onlyColumn(i)},domProps:{value:i,checked:e.allColumns.includes(i)}}),e.getHeading(i)]))}));return t("div",{ref:"columnsdropdown",class:"".concat(r.dropdown.container," ").concat(r.right," VueTables__columns-dropdown")},[t("button",{attrs:{type:"button"},class:"".concat(r.button," ").concat(r.dropdown.trigger),on:{click:e._toggleColumnsDropdown.bind(e)}},[e.display("columns"),t("span",{class:"".concat(r.icon," ").concat(r.small)},[t("i",{class:r.dropdown.caret})])]),i.call(e,t,r,o)])}}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[t("div",{class:e.dropdown.content},[r])]):"bootstrap4"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r]):t("ul",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[r])}},function(t,e,r){"use strict";t.exports=function(t,e,r){return"bulma"===e.framework?r:t("li",[r])}},function(t,e,r){"use strict";t.exports=function(){return{beforeFilters:this.$slots.beforeFilters?this.$slots.beforeFilters:"",afterFilters:this.$slots.afterFilters?this.$slots.afterFilters:"",prependHead:this.$slots.prependHead?this.$slots.prependHead:"",beforeBody:this.$slots.beforeBody?this.$slots.beforeBody:"",prependBody:this.$slots.prependBody?this.$slots.prependBody:"",appendBody:this.$slots.appendBody?this.$slots.appendBody:"",afterBody:this.$slots.afterBody?this.$slots.afterBody:"",beforeFilter:this.$slots.beforeFilter?this.$slots.beforeFilter:"",afterFilter:this.$slots.afterFilter?this.$slots.afterFilter:"",afterFilterWrapper:this.$slots.afterFilterWrapper?this.$slots.afterFilterWrapper:"",beforeSearch:this.$slots.beforeSearch?this.$slots.beforeSearch:"",beforeLimit:this.$slots.beforeLimit?this.$slots.beforeLimit:"",afterLimit:this.$slots.afterLimit?this.$slots.afterLimit:"",beforeTable:this.$slots.beforeTable?this.$slots.beforeTable:"",afterTable:this.$slots.afterTable?this.$slots.afterTable:""}}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,r){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,r){"use strict";var i=r(18);t.exports={get:function(){var t=i(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var r=(this.page-1)*this.limit;return this.allFilteredData=JSON.parse(JSON.stringify(t)),t=t.splice(r,this.limit),this.applyFilters(t)},set:function(t){console.log(t)}}},function(t,e,r){"use strict";t.exports=function(){this.data.forEach(function(t,e){this.opts.dateColumns.forEach(function(e){t[e]=t[e]?moment(t[e],this.opts.toMomentFormat):""}.bind(this))}.bind(this))}},function(t,e,r){"use strict";var i,n=(i=r(1))&&i.__esModule?i:{default:i};t.exports=function(){var t=this,e="vue-tables";this.name&&(e+="."+this.name),this.opts.customFilters.forEach((function(r){n.default.$off("".concat(e,".filter::").concat(r.name)),n.default.$on("".concat(e,".filter::").concat(r.name),(function(e){t.customQueries[r.name]=e,t.updateState("customQueries",t.customQueries)}))}))}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(140),o=r(10),s=r(141);t.exports=function(t,e){if(e){var r=this.query;this.setPage(1,!0);var a=this.getName(e.target.name),u="object"===i(e.target.value)?e.target.value:""+e.target.value;a?r[a]=u:r=u,this.vuex?this.commit("SET_FILTER",r):this.query=r,this.updateState("query",r),a?(this.dispatch("filter",{name:a,value:u}),this.dispatch("filter::".concat(a),u)):this.dispatch("filter",u)}var l,c,f,h,p,d=this.query,g=d?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(g=n(d));t=s(t,this.opts.customFilters,this.customQueries);return g?t.filter(function(t,e){return l=0,this.filterableColumns.forEach(function(e){h=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,p=this.isListFilter(e)&&this.opts.filterByColumn,f=this.dateFormat(e),u=this._getValue(t,e),o(u)&&!h&&(u=u.format(f)),(c=function(t){return t?"string"==typeof t?t.toLowerCase():t:""}(c=this.opts.filterByColumn?d[e]:d))&&(this.opts.filterAlgorithm[e]?this.opts.filterAlgorithm[e](t,this.opts.filterByColumn?d[e]:d)&&l++:function t(e,r,n){["string","number","boolean"].indexOf(i(r))>-1&&(r=String(r).toLowerCase());if(n)return r==e;if("string"==typeof r)return r.indexOf(e)>-1;if(o(r)){var s=moment(e.start,"YYYY-MM-DD HH:mm:ss"),a=moment(e.end,"YYYY-MM-DD HH:mm:ss");return r>=s&&r<=a}if("object"===i(r)){for(var u in r)if(t(e,r[u]))return!0;return!1}return r>=s&&r<=a}(c,u,p)&&l++)}.bind(this)),l>=g}.bind(this)):t}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=0;for(var r in t){("object"==i(t[r])||t[r]&&(!isNaN(t[r])||t[r].trim()))&&e++}return e}},function(t,e,r){"use strict";t.exports=function(t,e,r){var i;return t.filter((function(t){return i=!0,e.forEach((function(e){var n=r[e.name];n&&!e.callback(t,n)&&(i=!1)})),i}))}},function(t,e,r){"use strict";t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=this.defaultSort,n=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending,s=this;return function(a,u){var l,c=s._getValue(a,t)||"",f=s._getValue(u,t)||"",h=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof f&&(f=f.toLowerCase()),c===f&&n&&n[r+1]){var p=n[r+1];return l=void 0!==p.ascending?p.ascending:p.matchDir?o:!o,i(p.column,l,r+1)(a,u)}return c>f?h:-h}}},function(t,e,r){"use strict";t.exports=function(t){if(this.$scopedSlots&&this.$scopedSlots.__group_meta){var e=this.opts.groupMeta.find((function(e){return e.value===t}));return e?this.$scopedSlots.__group_meta(e):""}return""}},function(t,e,r){"use strict";var i=c(r(0)),n=c(r(12)),o=c(r(6)),s=c(r(7)),a=c(r(8)),u=r(4),l=c(r(13));function c(t){return t&&t.__esModule?t:{default:t}}var f=r(14),h=r(15),p=r(16);e.install=function(t,e,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",m=c?(0,o.default)("server"):(0,s.default)(),y=i.default.recursive(!0,(0,a.default)(),{name:"server-table",components:{Pagination:u.Pagination},render:p.call(this,g,d),props:{columns:{type:Array,required:!0},url:{type:String},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){if(!this.opts.requestFunction&&!this.url)throw'vue-tables-2: you must provide either a "url" prop or a custom request function. Aborting';h(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.opts.sendInitialRequest&&(this.loadState(),this.getData(!0).then(function(t){this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0)}.bind(this)))},mounted:function(){this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,l.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst),this._setColumnsDropdownCloseListener(),this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return i.default.recursive(f(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e},(0,n.default)(c,"server",this.options.initialPage))},methods:{refresh:r(145),getData:r(146),setData:r(147),serverSearch:r(9),registerServerFilters:r(148),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),!this.opts.pagination.dropdown&&this.$refs.pagination&&setTimeout((function(){t.$refs.pagination.Page=e.page}),0),this.opts.filterable&&setTimeout((function(){t._setFiltersDOM(e.query)}),0),this.activeState=!0}}},watch:{url:function(){this.refresh()}},computed:{totalPages:r(19),filteredQuery:r(149),hasMultiSort:function(){return this.opts.serverMultiSorting}}},m);return t.component("v-server-table",y),y}},function(t,e,r){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,r){"use strict";function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n=r(0);t.exports=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(i(e={},s.query,this.filteredQuery),i(e,s.limit,this.limit),i(e,s.ascending,this.orderBy.ascending?1:0),i(e,s.page,this.page),i(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=n(a,this.opts.params,this.customQueries,r),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(a.multiSort=this.userMultiSorting[this.orderBy.column]),a=this.opts.requestAdapter(a),o&&this.dispatch("loading",a);var u=this.sendRequest(a);return t?u:u.then(function(t){return this.setData(t)}.bind(this))}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=this.applyFilters(e.data),isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got ".concat(i(e.count))),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,r){"use strict";var i,n=(i=r(1))&&i.__esModule?i:{default:i};t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){n.default.$off("".concat(t,".filter::").concat(e)),n.default.$on("".concat(t,".filter::").concat(e),function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){if("object"!==i(this.query)||this.opts.sendEmptyFilters)return this.query;var t={};for(var e in this.query)""!==this.query[e]&&(t[e]=this.query[e]);return t}}]);
|
import store from '@/store'
/**
* 字符权限校验
* @param {Array} value 校验值
* @returns {Boolean}
*/
export function checkPermi(value) {
if (value && value instanceof Array && value.length > 0) {
const permissions = store.getters && store.getters.permissions
const permissionDatas = value
const all_permission = "*:*:*";
const hasPermission = permissions.some(permission => {
return all_permission === permission || permissionDatas.includes(
permission)
})
if (!hasPermission) {
return false
}
return true
} else {
console.error(
`need roles! Like checkPermi="['system:user:add','system:user:edit']"`)
return false
}
}
/**
* 角色权限校验
* @param {Array} value 校验值
* @returns {Boolean}
*/
export function checkRole(value) {
if (value && value instanceof Array && value.length > 0) {
const roles = store.getters && store.getters.roles
const permissionRoles = value
const super_admin = "admin";
const hasRole = roles.some(role => {
return super_admin === role || permissionRoles.includes(role)
})
if (!hasRole) {
return false
}
return true
} else {
console.error(`need roles! Like checkRole="['admin','editor']"`)
return false
}
}
|
var seneca = require('../seneca-client')
var sequelize = require('../sequelize').default
var Vendor = sequelize.model('Vendor')
var services = require('../openprices-services')
var Products = services.products
var Vendors = services.vendors
export function getVendors(req, res, next) {
Vendor.all().then(vendors => {
return vendors.map(VendorModelInterface)
}).then(data => {
res.json({
data
})
}).catch(err => {
next(err)
})
}
export function getVendor(req, res, next) {
var { id } = req.params
Vendor.findById(id).then(VendorModelInterface).then(data => {
return res.json({ data })
return require('../lib/Vendors').getVendorInfo(data.code).catch(err => {
res.json({
errors : [err],
data
})
throw err
}).then(persona => {
res.json({
afip : persona,
data
})
})
})
}
function VendorModelInterface(v) { return VendorInterface(v.get()) }
function VendorInterface(v) {
var obj = {
id: v.id,
code: v.code,
name: v.name,
address: v.address
}
return obj
}
function PriceModelInterface(pr) { return PriceInterface(pr.get()) }
function PriceInterface(pr) {
var obj = {
price: pr.price,
date: pr.date,
vendor: pr.VendorId,
user: pr.UserId
}
return obj
}
|
// Update default vue-cli-plugin-e2e-nightwatch options: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch
// With these updated settings, nightwatch wont attempt to start a selenium server
// and instead will use the selenium-chrome docker image.
// For additional nightwatch settings see: http://nightwatchjs.org/gettingstarted#settings-file
module.exports = {
output_folder: 'tests/e2e/reports',
selenium: {
log_path: 'tests/e2e/reports/',
// eslint-disable-next-line no-unneeded-ternary
start_process: process.env.SELENIUM_HOST ? false : true,
start_session: true,
debug: false,
host: process.env.SELENIUM_HOST || '127.0.0.1',
port: process.env.SELENIUM_PORT || 4444,
},
test_settings: {
default: {
launch_url: process.env.LAUNCH_URL || 'http://localhost:8080',
selenium_host: process.env.SELENIUM_HOST || '127.0.0.1',
selenium_port: process.env.SELENIUM_PORT || 4444,
silent: true,
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: 'tests/e2e/reports/screenshots',
},
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
},
},
},
};
|
import React from 'react';
import PropTypes from 'prop-types';
class SearchArtist extends React.Component {
state = {searchMode: false};
static propTypes = {
search: PropTypes.string.isRequired,
searchArtist: PropTypes.func.isRequired,
};
setSearchMode = () => {
this.setState(() => ({searchMode: true}));
};
render() {
const {search, searchArtist} = this.props;
const {searchMode} = this.state;
if (searchMode) {
return (
<input
autoFocus
placeholder="Type a name..."
onChange={e => {
searchArtist(e.target.value);
}}
value={search}
/>
);
}
return <button onClick={this.setSearchMode}>Search an artist</button>;
}
}
export default SearchArtist;
|
export default {
Query: {
orders: async (parent, args, { models }) => {
return await models.Order.findAll();
},
order: async (parent, { id }, { models }) => {
return await models.Order.findByPk(id);
},
},
Mutation: {
createOrder: async (parent, args, { me, models }) => {
try {
const orderResult = await models.Order.create({
userId: me.id,
isPaid: args.input.isPaid,
totalOrderValue: args.input.totalOrderValue,
});
args.input.orderedProduct.map(
async product =>
await models.OrderedProduct.create({
orderId: orderResult.id,
name: product.name,
price: product.price,
quantity: product.quantity,
}),
);
return orderResult;
} catch (error) {
throw new Error(error);
}
},
deleteOrder: async (parent, { id }, { models }) => {
return await models.Order.destroy({ where: { id } });
},
},
Order: {
orderedProduct: async (order, args, { models }) => {
return await models.OrderedProduct.findAll({
where: {
orderId: order.id,
},
});
},
},
};
|
/* eslint-env es6 */
let FewViewNullUnit = {
KEY: 'f-ignore'
};
let _filterElements = {
};
/**
* Register/define element which will be
* @param {string} nodeName Element name all in upper case
*/
export function excludeElement( nodeName ) {
_filterElements[nodeName] = true;
}
/**
* Check if element is excluded by few
* @param {string} nodeName element name all in uppercase
* @returns {boolean} if true few will ignore the element
*/
function isExcluded( nodeName ) {
return _filterElements[nodeName];
}
export default {
when: ( domNode ) => domNode.nodeType === Node.ELEMENT_NODE &&
( isExcluded( domNode.nodeName ) ||
domNode.hasAttribute( FewViewNullUnit.KEY ) ),
createUnit: () => null
};
|
import './global.css'
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
|
const chalk = require('chalk');
function log(marker, message) {
console.log(`${chalk.inverse(marker)} ${message}`);
}
function info(message) {
log(chalk.green(' INFO '), message);
}
function error(message) {
log(chalk.red(' ERROR '), message);
}
module.exports = {info, error};
|
const autoprefixer = require('autoprefixer');
const glob = require('glob');
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const projectRoot = process.cwd();
const setMPA = () => {
const entry = {};
const htmlWebpackPlugins = [];
const entryFiles = glob.sync(path.join(projectRoot, './src/*/index.js'));
Object.keys(entryFiles)
.map((index) => {
const entryFile = entryFiles[index];
// '/Users/cpselvis/my-project/src/index/index.js'
const match = entryFile.match(/src\/(.*)\/index\.js/);
const pageName = match && match[1];
entry[pageName] = entryFile;
return htmlWebpackPlugins.push(
new HtmlWebpackPlugin({
inlineSource: '.css$',
template: path.join(projectRoot, `./src/${pageName}/index.html`),
filename: `${pageName}.html`,
chunks: ['vendors', pageName],
inject: true,
minify: {
html5: true,
collapseWhitespace: true,
preserveLineBreaks: false,
minifyCSS: true,
minifyJS: true,
removeComments: false,
},
})
);
});
return {
entry,
htmlWebpackPlugins,
};
};
const { entry, htmlWebpackPlugins } = setMPA();
module.exports = {
entry,
output: {
path: path.join(projectRoot, 'dist'),
filename: '[name]_[chunkhash:8].js',
},
module: {
rules: [
{
test: /.js$/,
use: [
{
loader: 'babel-loader',
},
],
},
{
test: /.css$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
],
},
{
test: /.less$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'less-loader',
{
loader: 'postcss-loader',
options: {
plugins: () => [
autoprefixer({
browsers: ['last 2 version', '>1%', 'ios 7'],
}),
],
},
},
{
loader: 'px2rem-loader',
options: {
remUnit: 75,
remPrecision: 8,
},
},
],
},
{
test: /.(png|jpg|gif|jpeg)$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name]_[hash:8].[ext]',
},
},
],
},
{
test: /.(woff|woff2|eot|ttf|otf)$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name]_[hash:8][ext]',
},
},
],
},
],
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name]_[contenthash:8].css',
}),
new CleanWebpackPlugin(),
new FriendlyErrorsWebpackPlugin(),
function errorPlugin() {
this.hooks.done.tap('done', (stats) => {
if (stats.compilation.errors && stats.compilation.errors.length && process.argv.indexOf('--watch') === -1) {
process.exit(1);
}
});
},
].concat(htmlWebpackPlugins),
stats: 'errors-only',
};
|
'use strict';
import depcheck from 'depcheck';
export default class dependencyCheck {
/**
* Start executing the dependencies check on repository
* @param {represent the repository from Github} item
* @param {folder path where repository cloned} folderPath
*/
static run = async function (item, folderPath) {
let retVal = null;
if (item) {
try {
let dependencies = await this.verifyRepositoryDependencies(folderPath);
let repoScore = this.calculateRepoScore(dependencies);
retVal = this.toDTO(item, repoScore);
} catch (err) {
console.error("an error happened: " + err)
}
}
return retVal;
};
/**
* Verify dependencies are not used.
* folderPath - the path to the repository git files
*/
static verifyRepositoryDependencies = async function (folderPath) {
let retVal = null;
try {
await depcheck(folderPath, depcheckOptions).then((unused) => {
retVal = unused.dependencies;
// console.log(unused.dependencies); // an array containing the unused dependencies
// console.log(unused.devDependencies); // an array containing the unused devDependencies
// console.log(unused.missing); // a lookup containing the dependencies missing in `package.json` and where they are used
// console.log(unused.using); // a lookup indicating each dependency is used by which files
// console.log(unused.invalidFiles); // files that cannot access or parse
// console.log(unused.invalidDirs); // directories that cannot access
});
} catch (err) {
console.warn("An error occurred while try to verify dependencies")
}
return retVal;
};
/**
* Calculate the risk score by dependencies length.
* @param {dependencies list} dependencies
*/
static calculateRepoScore = function (dependencies) {
let retVal = 0;
if (dependencies && dependencies.length >= 0) {
let numberOfUnused = dependencies.length;
if (1 <= numberOfUnused && numberOfUnused <= 5) {
retVal = 1;
} else if (6 <= numberOfUnused && numberOfUnused <= 10) {
retVal = 2;
} else if (11 <= numberOfUnused && numberOfUnused <= 20) {
retVal = 3;
} else if (21 <= numberOfUnused && numberOfUnused <= 30) {
retVal = 4;
} else if (numberOfUnused > 30) {
retVal = 5;
}
} else {
retVal = null;
}
return retVal;
}
/**
* Return an object represent the score and the repository details
* @param {Repository by Github representation} item
* @param {calculated score} score
*/
static toDTO = function (item, score) {
let retVal = {
repo_url: item.clone_url,
owner: item.owner.login,
score
}
return retVal;
}
}
const depcheckOptions = {
ignoreBinPackage: false, // ignore the packages with bin entry
skipMissing: false, // skip calculation of missing dependencies
ignorePatterns: [
// files matching these patterns will be ignored
'sandbox',
'dist',
'bower_components',
],
ignoreMatches: [
// ignore dependencies that matches these globs
'grunt-*',
],
parsers: {
// the target parsers
'**/*.js': depcheck.parser.es6,
'**/*.jsx': depcheck.parser.jsx,
},
detectors: [
// the target detectors
depcheck.detector.requireCallExpression,
depcheck.detector.importDeclaration,
],
specials: [
// the target special parsers
depcheck.special.eslint,
depcheck.special.webpack,
],
package: {
// may specify dependencies instead of parsing package.json
// dependencies: {
// lodash: '^4.17.15',
// },
devDependencies: {
eslint: '^6.6.0',
},
peerDependencies: {},
optionalDependencies: {},
},
};
|
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { AngularMultiSelect, ClickOutsideDirective, ListFilterPipe, Item, TemplateRenderer, AngularMultiSelectModule } from './public_api';
export { ScrollDirective as ɵc, setPosition as ɵe, styleDirective as ɵd } from './lib/clickOutside';
export { Badge as ɵf, CIcon as ɵh, Search as ɵg } from './lib/menu-item';
export { DROPDOWN_CONTROL_VALIDATION as ɵb, DROPDOWN_CONTROL_VALUE_ACCESSOR as ɵa } from './lib/multiselect.component';
export { DataService as ɵm } from './lib/multiselect.service';
export { VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY as ɵi, VirtualScrollerComponent as ɵj, VirtualScrollerModule as ɵk } from './lib/virtual-scroll/virtual-scroll';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjItbXVsdGlzZWxlY3QtZHJvcGRvd24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyMi1tdWx0aXNlbGVjdC1kcm9wZG93bi8iLCJzb3VyY2VzIjpbImFuZ3VsYXIyLW11bHRpc2VsZWN0LWRyb3Bkb3duLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw0SEFBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDaEcsT0FBTyxFQUFDLEtBQUssSUFBSSxFQUFFLEVBQUMsS0FBSyxJQUFJLEVBQUUsRUFBQyxNQUFNLElBQUksRUFBRSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDckUsT0FBTyxFQUFDLDJCQUEyQixJQUFJLEVBQUUsRUFBQywrQkFBK0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw2QkFBNkIsQ0FBQztBQUNwSCxPQUFPLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBRTVELE9BQU8sRUFBQyx3Q0FBd0MsSUFBSSxFQUFFLEVBQUMsd0JBQXdCLElBQUksRUFBRSxFQUFDLHFCQUFxQixJQUFJLEVBQUUsRUFBQyxNQUFNLHFDQUFxQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1Njcm9sbERpcmVjdGl2ZSBhcyDJtWMsc2V0UG9zaXRpb24gYXMgybVlLHN0eWxlRGlyZWN0aXZlIGFzIMm1ZH0gZnJvbSAnLi9saWIvY2xpY2tPdXRzaWRlJztcbmV4cG9ydCB7QmFkZ2UgYXMgybVmLENJY29uIGFzIMm1aCxTZWFyY2ggYXMgybVnfSBmcm9tICcuL2xpYi9tZW51LWl0ZW0nO1xuZXhwb3J0IHtEUk9QRE9XTl9DT05UUk9MX1ZBTElEQVRJT04gYXMgybViLERST1BET1dOX0NPTlRST0xfVkFMVUVfQUNDRVNTT1IgYXMgybVhfSBmcm9tICcuL2xpYi9tdWx0aXNlbGVjdC5jb21wb25lbnQnO1xuZXhwb3J0IHtEYXRhU2VydmljZSBhcyDJtW19IGZyb20gJy4vbGliL211bHRpc2VsZWN0LnNlcnZpY2UnO1xuZXhwb3J0IHtWaXJ0dWFsU2Nyb2xsZXJEZWZhdWx0T3B0aW9ucyBhcyDJtWx9IGZyb20gJy4vbGliL3ZpcnR1YWwtc2Nyb2xsL2RlZmF1bHRvcHRpb25zJztcbmV4cG9ydCB7VklSVFVBTF9TQ1JPTExFUl9ERUZBVUxUX09QVElPTlNfRkFDVE9SWSBhcyDJtWksVmlydHVhbFNjcm9sbGVyQ29tcG9uZW50IGFzIMm1aixWaXJ0dWFsU2Nyb2xsZXJNb2R1bGUgYXMgybVrfSBmcm9tICcuL2xpYi92aXJ0dWFsLXNjcm9sbC92aXJ0dWFsLXNjcm9sbCc7Il19
|
// Relationship Test
foam.CLASS({
name: 'Parent1',
ids: [ 'name' ],
properties: [ 'name' ]
});
foam.CLASS({
name: 'Child1',
ids: [ 'name' ],
properties: [ 'name' ]
});
foam.dao.Relationship.create({
sourceModel: 'Parent1',
targetModel: 'Child1',
name: 'children',
inverseName: 'parent'
});
foam.CLASS({
name: 'MythologicalWorld',
requires: [ 'Parent1', 'Child1' ],
exports: [
'parents as Parent1DAO',
'children as Child1DAO'
],
properties: [
{
name: 'parents',
factory: function() { return foam.dao.MDAO.create({of: 'Parent1'}); }
},
{
name: 'children',
factory: function() { return foam.dao.MDAO.create({of: 'Child1'}); }
}
],
methods: [
function init() {
var parents = this.parents, children = this.children;
var odin, zeus;
parents.put(odin = this.Parent1.create({name: 'Odin'}));
children.put(this.Child1.create({name: 'Thor', parent: 'Odin'}));
children.put(this.Child1.create({name: 'Loki', parent: 'Odin'}));
parents.put(zeus = this.Parent1.create({name: 'Zeus'}));
children.put(this.Child1.create({name: 'Ares', parent: 'Zeus'}));
children.put(this.Child1.create({name: 'Athena', parent: 'Zeus'}));
console.log('Parents:');
parents.select({put: function(o) { console.log(o.stringify()); }});
console.log('Children:');
children.select({put: function(o) { console.log(o.stringify()); }});
console.log('Odin\'s Children:');
odin.children.select({put: function(o) { console.log(o.stringify()); }});
console.log('Zeus\'s Children:');
zeus.children.select({put: function(o) { console.log(o.stringify()); }});
zeus.children.put(this.Child1.create({name: 'Apollo'}));
console.log('Zeus\'s Children (after adding Apollo):');
zeus.children.select({put: function(o) { console.log(o.stringify()); }});
}
]
});
var mythos = MythologicalWorld.create();
foam.CLASS({
name: 'RealWorld',
requires: [ 'Parent1', 'Child1' ],
methods: [
function init() {
var joe = this.Parent1.create({name: 'Joe'});
// Real world has no parent/child DAOs, so the relationships won't work yet
mythos.parents.put(joe);
mythos.children.put(this.Child1.create({name: 'Larry', parent: 'Joe'}));
mythos.children.put(this.Child1.create({name: 'Edna', parent: 'Joe'}));
// clone joe to the mythological context to access the right DAOs
var mythoJoe = this.Parent1.create(joe, mythos);
console.log("Joe's children:");
mythoJoe.children.select({put: function(o) { console.log(o.stringify()); }});
}
]
});
RealWorld.create();
|
// Hook `usePageContext()` to make `pageContext` available from any Vue component.
// See https://vite-plugin-ssr.com/pageContext-anywhere
import { inject } from 'vue'
export { usePageContext }
export { setPageContext }
const key = Symbol()
function usePageContext() {
const pageContext = inject(key)
return pageContext
}
function setPageContext(app, pageContext) {
app.provide(key, pageContext)
}
|
const { Op } = require('sequelize');
const { get } = require('lodash');
const utils = require("../../../utils");
const { METHOD, POST, GET, PUT, PATCH, DELETE } = require('../../constants');
const G = require('../../../global');
const tables = async (method, req, res) => {
const {
table_details
} = G.SEQUELIZE.models;
switch (method) {
case METHOD[GET]: {
const restaurant_id = get(req.query, 'id') || get(req.params, 'id') || null;
// const REDIS_KEY = `SYOO_API:ITEMS:${restaurant_id}`;
// let ret = await G.REDIS.get(REDIS_KEY);
// if (ret) { utils.info("CACHED", REDIS_KEY); return JSON.parse(ret); }
const tables = await table_details.findAll({ where: { restaurant_id } });
ret = {
success: true,
data: tables.map(r => get(r, 'dataValues', {}))
};
// await G.REDIS.set(REDIS_KEY, JSON.stringify(ret), "EX", 10 * 60);
return ret;
} break;
default: return ({});
};
};
module.exports = {
tables
};
|
/**
* Home page JS
*/
var form = document.querySelector('form');
// Captures submit events on search form, filters submit url to remove ugly empty values
form.addEventListener('submit', function(e) {
e.preventDefault();
var query = {};
if (e.target.everything.value) query.everything = e.target.everything.value;
if (e.target.author.value) query.author = e.target.author.value;
if (e.target.journal.value) query.journal = e.target.journal.value;
if (e.target.subject.value) query.subject = e.target.subject.value;
if (e.target.id.value) query.id = e.target.id.value;
if (query) {
var str = '?';
for (var key in query) {
var val = query[key];
str += key + '=' + val + '&';
}
window.location.href = 'search' + str.slice(0, -1);
}
});
|
const { auth } = require("../../firebase/firebase");
async function getFbUserOrCreate(email, password) {
try {
return await auth.getUserByEmail(email);
} catch (err) {
if (err.code == 'auth/user-not-found') {
return await auth.createUser({ email, password })
}
throw (err);
}
}
module.exports = { getFbUserOrCreate };
|
const router = require('./router')
module.exports = {
displayName: 'Propositions',
mountpath: '/propositions',
router,
}
|
import React from 'react';
import Box from '@material-ui/core/Box';
import About from './About';
import Info from './Info';
const AboutPage = () => {
return (
<Box>
<About />
<hr width='55%' />
<Info />
</Box>
);
};
export default AboutPage;
|
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the LICENSE
// file in the root directory of this source tree.
//
// RUN: %hermes -commonjs -dump-ir %s | %FileCheck --match-full-lines %s
export default function() {
return 400;
}
// CHECK-LABEL: function cjs_module(exports, require, module)
// CHECK-NEXT: frame = [exports, require, module]
// CHECK-NEXT: %BB0:
// CHECK-NEXT: %0 = StoreFrameInst %exports, [exports]
// CHECK-NEXT: %1 = StoreFrameInst %require, [require]
// CHECK-NEXT: %2 = StoreFrameInst %module, [module]
// CHECK-NEXT: %3 = CreateFunctionInst %""()
// CHECK-NEXT: %4 = StorePropertyInst %3 : closure, %exports, "?default" : string
// CHECK-NEXT: %5 = ReturnInst undefined : undefined
// CHECK-NEXT: function_end
// CHECK-LABEL: function ""()
// CHECK-NEXT: frame = []
// CHECK-NEXT: %BB0:
// CHECK-NEXT: %0 = ReturnInst 400 : number
// CHECK-NEXT: %BB1:
// CHECK-NEXT: %1 = ReturnInst undefined : undefined
// CHECK-NEXT: function_end
|
define({
'about': "{{>header}}<p>Test</p>{{>footer}}",
'version': "<div data-role='popup' data-position-to='page' class='ui-content'>\
wq.app test v{{version}}\
</div>",
'item_detail': "{{>header}}<p>{{label}}{{>footer}}",
'item_popup': "<a href='{{pages_info.base_url}}/items/{{id}}'>{{label}}</a>",
'item_list': "{{>header}}\
<div class='ui-grid-a ui-responsive'>\
<div class='ui-block-a'>\
<ul data-role='listview' data-inset='true'>\
{{#list}}\
<li><a href='{{pages_info.base_url}}/items/{{id}}'>{{label}}</a></li>\
{{/list}}\
</ul>\
</div>\
<div class='ui-block-b'>\
<div id='item-map' style='height:500px'></div>\
</div>\
</div>\
{{>footer}}",
'partials': {
'header': "<div data-role='page'><div data-role='header'>{{>home}}<h1>{{label}}</h1></div><div data-role='content'>",
'footer': "</div></div>",
'home': "<a href='{{pages_info.base_url}}/' data-icon='home'>Home</a>"
}
})
|
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const shelljs = require('shelljs');
const { promisify } = require('util');
const recursiveReadDirSync = require('recursive-readdir-sync');
const changeCase = require('change-case');
const args = require('minimist')(process.argv)
const { getDependencyStr } = require('./helpers.js');
const usage = `
Usage: mktsmodule --name=<module-name> [--scope=scope]
`;
const templateDir = 'templates';
const templates = recursiveReadDirSync(path.resolve(__dirname, `./${templateDir}`));
if (args.name === undefined) {
console.log(usage);
process.exit(1);
}
const moduleName = changeCase.paramCase(args.name);
const moduleNamePascal = changeCase.pascalCase(moduleName);
const moduleDir = path.join(process.cwd(), moduleName);
const { scope } = args;
// create module dir
if (fs.existsSync(moduleDir) === false) {
fs.mkdirSync(moduleDir);
}
// create vscode dir
if (fs.existsSync(path.join(moduleDir, '.vscode')) === false) {
fs.mkdirSync(path.join(moduleDir, '.vscode'));
}
for (const templateFilePath of templates) {
const content = fs.readFileSync(templateFilePath, { encoding: 'utf8' });
const scrubbed = content
.replace(/{{scope}}/g, scope ? `@${scope.replace('@', '')}/` : '')
.replace(/{{moduleName}}/g, moduleName)
.replace(/{{moduleNamePascal}}/g, moduleNamePascal);
const relativeDest = templateFilePath
.replace(__dirname, '')
.replace(`/${templateDir}/`, '')
.replace(/_/g, '');
const dest = path.join(process.cwd(), moduleName, relativeDest);
console.log(`writing ${relativeDest} -> ${dest}`);
fs.writeFileSync(dest, scrubbed, { encoding: 'utf8' });
}
// cd into the module dir
const modulePath = path.join(process.cwd(), moduleName);
shelljs.cd(modulePath);
const exec = promisify(shelljs.exec);
const dependencyStr = getDependencyStr();
// install packages
exec(dependencyStr)
.then(() => exec('git init'))
.then(() => exec('git add .'))
.then(() => exec('git commit -am "initial commit"'));
|
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Handles tesselation of polygons with holes
// - 2D surfaces
// - 2D outlines
// - 3D surfaces (top and sides only)
// - 3D wireframes (not yet)
import * as Polygon from './polygon';
import { experimental } from 'kepler-outdated-deck.gl-core';
const {Tesselator} = experimental;
import { fp64 as fp64Module } from 'kepler-outdated-luma.gl-core';
const {fp64LowPart} = fp64Module;
// This class is set up to allow querying one attribute at a time
// the way the AttributeManager expects it
export default class PolygonTesselator extends Tesselator {
constructor({data, getGeometry, fp64, positionFormat, IndexType = Uint32Array}) {
super({
data,
getGeometry,
fp64,
positionFormat,
attributes: {
positions: {size: 3},
positions64xyLow: {size: 2, fp64Only: true},
vertexValid: {type: Uint8ClampedArray, size: 1},
indices: {type: IndexType, size: 1}
}
});
}
/* Getters */
get(attributeName) {
if (attributeName === 'indices') {
return this.attributes.indices.subarray(0, this.vertexCount);
}
return this.attributes[attributeName];
}
/* Implement base Tesselator interface */
getGeometrySize(polygon) {
return Polygon.getVertexCount(polygon, this.positionSize);
}
updateGeometryAttributes(polygon, context) {
polygon = Polygon.normalize(polygon, this.positionSize, context.geometrySize);
this._updateIndices(polygon, context);
this._updatePositions(polygon, context);
}
// Flatten the indices array
_updateIndices(polygon, {geometryIndex, vertexStart: offset, indexStart}) {
const {attributes, indexLayout, typedArrayManager} = this;
let target = attributes.indices;
let currentLength = target.length;
let i = indexStart;
// 1. get triangulated indices for the internal areas
const indices = Polygon.getSurfaceIndices(polygon, this.positionSize);
// make sure the buffer is large enough
if (currentLength < i + indices.length) {
currentLength = (i + indices.length) * 2;
target = typedArrayManager.allocate(target, currentLength, {
type: target.constructor,
size: 1,
copy: true
});
}
// 2. offset each index by the number of indices in previous polygons
for (let j = 0; j < indices.length; j++) {
target[i++] = indices[j] + offset;
}
indexLayout[geometryIndex] = indices.length;
attributes.indices = target;
}
// Flatten out all the vertices of all the sub subPolygons
_updatePositions(polygon, {vertexStart, geometrySize}) {
const {
attributes: {positions, positions64xyLow, vertexValid},
fp64,
positionSize
} = this;
let i = vertexStart;
const {positions: polygonPositions, holeIndices} = polygon;
for (let j = 0; j < geometrySize; j++) {
const x = polygonPositions[j * positionSize];
const y = polygonPositions[j * positionSize + 1];
const z = positionSize > 2 ? polygonPositions[j * positionSize + 2] : 0;
positions[i * 3] = x;
positions[i * 3 + 1] = y;
positions[i * 3 + 2] = z;
if (fp64) {
positions64xyLow[i * 2] = fp64LowPart(x);
positions64xyLow[i * 2 + 1] = fp64LowPart(y);
}
vertexValid[i] = 1;
i++;
}
/* We are reusing the some buffer for `nextPositions` by offseting one vertex
* to the left. As a result,
* the last vertex of each ring overlaps with the first vertex of the next ring.
* `vertexValid` is used to mark the end of each ring so we don't draw these
* segments:
positions A0 A1 A2 A3 A4 B0 B1 B2 C0 ...
nextPositions A1 A2 A3 A4 B0 B1 B2 C0 C1 ...
vertexValid 1 1 1 1 0 1 1 0 1 ...
*/
if (holeIndices) {
for (let j = 0; j < holeIndices.length; j++) {
vertexValid[vertexStart + holeIndices[j] / positionSize - 1] = 0;
}
}
vertexValid[vertexStart + geometrySize - 1] = 0;
}
}
|
'use strict';
// eslint-disable-next-line no-unused-vars
exports.Run = async function Run(caller, command, guild, lang) {
if (command.params.length < 2) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.blue,
title: lang.titles.use,
fields: [
{
name: command.prefix + command.command + lang.commands.remove.params,
value: `${lang.commands.remove.help}\n${lang.commands.remove.description}`,
},
{
name: lang.example,
value: `${command.prefix + command.command} :white_check_mark: Verification\n${command.prefix + command.command} :white_check_mark: Verification, ${
caller.utils.getRandomElement(command.roles.filter((r) => r.name !== '@everyone')).mention
}\n\n[${lang.guidePage}](https://docs.zira.ovh/${command.command})`,
},
],
},
});
return;
}
if (!guild.currentChannel || !guild.currentMessage || !guild.messages.length) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.setChannelOrMessage,
},
});
return;
}
const removeCount = guild.roles.filter((r) => r.remove).length;
if (!guild.premium && removeCount > 5 && process.env.PREMIUM) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
title: lang.titles.error,
description: lang.commands.remove.limit,
color: caller.color.yellow,
},
});
return;
}
const emoji = command.params[0];
const Params = command.params
.splice(1)
.join(' ')
.split(', ');
Params.forEach((item, index) => {
if (item.indexOf('<@&') !== -1) Params[index] = item.replace(/\D+/g, '');
});
const [remove] = command.msg.channel.guild.roles.filter((r) => r.id === Params[0] || r.name.toLowerCase().indexOf(Params[0].toLowerCase()) !== -1);
if (!remove) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.ordinalPair.replace('$pair', caller.utils.ordinalSuffix(1)),
},
});
return;
}
let add;
if (Params[1]) {
[add] = command.msg.channel.guild.roles.filter((r) => r.id === Params[1] || r.name.toLowerCase().indexOf(Params[1].toLowerCase()) !== -1);
if (!add) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.ordinalPair.replace('$pair', caller.utils.ordinalSuffix(1)),
},
});
return;
}
}
let emojiFree = true;
for (let r = 0; r < guild.roles.length; r++) {
if (guild.roles[r].message === guild.currentMessage) {
if (guild.roles[r].emoji === emoji) emojiFree = false;
}
}
if (!emojiFree) {
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.usedEmoji.replace('$pair', caller.utils.ordinalSuffix(1)),
},
});
return;
}
try {
await caller.bot.addMessageReaction(guild.currentChannel, guild.currentMessage, emoji.replace(/(<:)|(<)|(>)/g, ''));
} catch (e) {
caller.logger.warn(`[Remove] ${command.msg.channel.id} ${e.code} ${e.message.replace(/\n\s/g, '')}`);
switch (e.code) {
case 10003:
case 50001: // read access
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.missingPermissionChannelRead,
},
});
break;
case 50013: // reaction access
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.missingPermissionChannelReaction,
},
});
break;
case 10008: // unknown message
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.unknownMessage,
},
});
break;
case 10014: // unknown emoji
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.unknownEmoji,
},
});
break;
case 30010:
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.maxReactions,
},
});
break;
default:
caller.utils.createMessage(command.msg.channel.id, {
embed: {
color: caller.color.yellow,
title: lang.titles.error,
description: lang.errors.generic,
},
});
}
return;
}
const message = add ? lang.commands.remove.removeAdd.replace('$role1', remove.mention).replace('$role2', add.mention) : lang.commands.remove.remove.replace('$role', remove.mention);
guild.roles.push({
add: add ? add.id : null,
id: remove.id,
name: add ? `${remove.mention}, ${add.mention}` : remove.mention,
emoji,
message: guild.currentMessage,
channel: guild.currentChannel,
remove: true,
});
caller.bot.createMessage(command.msg.channel.id, {
embed: {
title: lang.titles.complete,
description: message + lang.commands.remove.emoji.replace('$emoji', emoji),
color: caller.color.green,
},
});
caller.utils.updateGuild(guild);
};
exports.Settings = {
category: 0,
command: 'remove',
show: true,
permissions: ['manageRoles'],
dm: false,
};
|
const http = require('http');
const fs = require('fs');
const port = 5000 || process.env.PORT;
const server = http.createServer((req, res) => {
const stream = fs.createReadStream('lorem.txt');
stream.pipe(res);
});
server.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import BpkImage, {
withLazyLoading,
withLoadingBehavior,
} from 'bpk-component-image';
import { CreativeCommons } from 'gg-components/CreativeCommons';
import { ArticleCard, ARTICLE_CARD_LAYOUTS } from 'gg-components/Cards';
import {
Paragraph,
Section,
SubSection,
PageTitle,
} from 'gg-components/Typography';
import { cssModules } from 'gg-components/helpers/cssModules';
import STYLES from '../pages.scss';
import GraphicContent, {
withGraphicContentBehaviour,
} from 'components/GraphicContent';
import Comments from 'containers/Comments';
const PAGE_ID = '857216';
const documentIfExists = typeof window !== 'undefined' ? document : null;
const FadingLazyLoadedImage = withLoadingBehavior(
withLazyLoading(BpkImage, documentIfExists),
);
const GcbGraphicContent = withGraphicContentBehaviour(GraphicContent);
const getClassName = cssModules(STYLES);
export default class Photography extends Component {
static propTypes = {
commentCreateErrors: PropTypes.object.isRequired,
newDataAvailable: PropTypes.bool.isRequired,
newCommentBeingCreated: PropTypes.bool.isRequired,
comments: PropTypes.arrayOf(PropTypes.object),
user: PropTypes.object.isRequired,
createComment: PropTypes.func.isRequired,
loadComments: PropTypes.func.isRequired,
className: PropTypes.string,
};
static defaultProps = {
className: null,
};
constructor(props) {
super(props);
}
render() {
const {
user,
comments,
newDataAvailable,
commentCreateErrors,
loadComments,
createComment,
className,
} = this.props;
return (
<div
className={getClassName('pages__container--centered')}
style={{ textAlign: 'center' }}
>
<Helmet title="Photography" />
<PageTitle anchor={false} name="Photography">
<div
style={{ paddingTop: '1rem' }}
className={getClassName('pages__compact-card-container')}
>
<ArticleCard
layout={ARTICLE_CARD_LAYOUTS.narrowCompact}
day={null}
month={null}
className={getClassName('pages__card')}
imageSrc="https://i.imgur.com/Jng7EhH.png"
href="https://gurushots.com/georgegillams/achievements"
title="Find me on GuruShots"
/>
<ArticleCard
layout={ARTICLE_CARD_LAYOUTS.narrowCompact}
day={null}
month={null}
className={getClassName('pages__card')}
imageSrc="https://i.imgur.com/u30cQWU.png"
href="https://www.flickr.com/people/georgegillams/"
title="Find me on Flickr"
/>
<ArticleCard
layout={ARTICLE_CARD_LAYOUTS.narrowCompact}
day={null}
month={null}
className={getClassName('pages__card')}
imageSrc="https://i.imgur.com/obBqvqK.png"
href="https://unsplash.com/@georgegillams"
title="Find me on Unsplash"
/>
</div>
<SubSection anchor={false} name="Harlequins vs Worcester Rugby Match">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Harlequins vs Worcester Rugby Match"
width={4130}
height={2394}
src="https://i.imgur.com/OsFI23z.jpg"
/>
</SubSection>
<SubSection anchor={false} name="The cat looking handsome as ever!">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="The cat looking handsome as ever!"
width={5184}
height={3456}
src="https://i.imgur.com/Aqy3tuA.jpg"
/>
</SubSection>
<SubSection anchor={false} name="A training scenario at EPICC 2017">
<GcbGraphicContent className={getClassName('pages__image')}>
<FadingLazyLoadedImage
altText="A training scenario at EPICC 2017"
width={5184}
height={3132}
src="https://i.imgur.com/6B35GTV.jpg"
/>
</GcbGraphicContent>
</SubSection>
<SubSection anchor={false} name="Dog running with a Stick">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Dog running with a Stick"
width={3000}
height={2000}
src="https://i.imgur.com/8dnCZ5D.jpg"
/>
</SubSection>
<SubSection anchor={false} name="Stunt Motorcyclist">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Stunt Motorcyclist"
width={3000}
height={2000}
src="https://i.imgur.com/WlLYxDw.jpg"
/>
</SubSection>
<SubSection anchor={false} name="Longleat Festival of Light">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Longleat Festival of Light"
width={3000}
height={2000}
src="https://i.imgur.com/EHF7zqM.jpg"
/>
</SubSection>
<SubSection anchor={false} name="Serre Chevalier">
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Serre Chevalier"
width={3000}
height={2000}
src="https://i.imgur.com/gIccH4E.jpg"
/>
</SubSection>
<SubSection
anchor={false}
name="Nick Matthew playing in the Canary Wharf Open"
>
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Nick Matthew playing in the Canary Wharf Open"
width={3000}
height={2000}
src="https://i.imgur.com/h4BFWqS.jpg"
/>
</SubSection>
</PageTitle>
<Section name="Photoshop">
<SubSection anchor={false} name="Tulips exploding with light">
<Paragraph>
For some reason the idea of light exploding out of tulips popped
into my mind, so I went out to find some and made it a reality. I
used a similar effect in Art that I had used in the past to create
beams of sunlight breaking through the clouds, and then darkened
the background a little.
</Paragraph>
<br />
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Exploding tulips"
width={3000}
height={2000}
src="https://i.imgur.com/PIKQ2D6.jpg"
/>
</SubSection>
<SubSection anchor={false} name="Miss Saigon sketch">
<Paragraph>
With Miss Saigon coming to cinemas soon for one day only, I was
inspired to draw the production logo (aka tempted to
procrastinate).
</Paragraph>
<br />
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Miss Saigon"
width={2153}
height={3000}
src="https://i.imgur.com/y3i2Ll1.jpg"
/>
</SubSection>
<SubSection
anchor={false}
name="Dual-carriageway light-painting (in post)"
>
<Paragraph>
One evening after leaving work at an unearthly hour, I shot this
uninspired photo. In Photoshop, I then used the brush tool and
some layer styles to create a 'painting with light' effect.
</Paragraph>
<br />
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Dual-carriageway light-painting"
width={3000}
height={2000}
src="https://i.imgur.com/T502lkX.jpg"
/>
</SubSection>
</Section>
<Section name="Food is art! (...sometimes)">
<SubSection anchor={false} name="Guinness cake">
<Paragraph>
I like spending time on food presentation when the opportunity
calls for it. So I created this masterpiece to share with the
office and celebrate a legendary drink!
</Paragraph>
<br />
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Guinness cake"
width={3000}
height={2000}
src="https://i.imgur.com/oBWlSDO.jpg"
/>
</SubSection>
<SubSection anchor={false} name="Ratatouille">
<Paragraph>
To get us in the mood for Disneyland, I cooked up this Ratatouille
in the style of the dish served in the film. It came out better
than I expected... Pretty pleased with the result!
</Paragraph>
<br />
<FadingLazyLoadedImage
className={getClassName('pages__image')}
altText="Ratatouille"
width={3000}
height={2000}
src="https://i.imgur.com/kRGhYxz.jpg"
/>
</SubSection>
</Section>
<br />
{/* <LicenseInfo centered /> */}
<Comments pageId={PAGE_ID} />
<CreativeCommons
className={getClassName(
'pages__full-width-container',
'pages__full-width-container--centered',
)}
/>
</div>
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.