text
stringlengths 2
1.05M
|
|---|
import React from 'react'
import Layout from '../components/Layout'
import { graphql, Link } from 'gatsby'
// import { css } from '@emotion/core'
export const query = graphql`
query markdownNotes {
allFile(filter: {relativeDirectory: {regex: "/notes/"}}) {
edges {
node {
relativeDirectory
childMarkdownRemark {
id
fields {
slug
}
frontmatter {
date(formatString: "MMM DD")
title
}
html
timeToRead
excerpt
tableOfContents
}
}
}
}
}
`
// const PostTitle = styled.h3`margin-bottom: ${rhythm(1/4)}`
// const PostMetadata = styled.span`font-size: small;`
// const TableOfContents = ({ htmlTOC }) => {
// return (
// <div dangerouslySetInnerHTML={{ __html: htmlTOC }} />
// )
// }
// const Preview = ({ node }) => (
// <Link to={node.fields.slug} css={css`
// text-decoration: none;
// color: inherit;
// `}
// >
// </Link>
// )
export default ({ data }) => {
console.log(data);
const mdEdges = data.allFile.edges
return (
<Layout>
{
mdEdges.map(({ node }) => {
const mdNode = node.childMarkdownRemark
return <Link key={mdNode.id} to={mdNode.fields.slug}>
{mdNode.fields.slug}
</Link>
})
}
</Layout>
)
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chokidar = require("chokidar");
const path = require("path");
class FilesWatcher {
constructor(watchPaths, watchExtensions) {
this.watchPaths = watchPaths;
this.watchExtensions = watchExtensions;
this.watchExtensions = watchExtensions;
this.watchers = [];
this.listeners = {};
}
isFileSupported(filePath) {
return this.watchExtensions.indexOf(path.extname(filePath)) !== -1;
}
watch() {
if (this.isWatching()) {
throw new Error('Cannot watch again - already watching.');
}
this.watchers = this.watchPaths.map((watchPath) => {
return chokidar
.watch(watchPath, { persistent: true, alwaysStat: true })
.on('change', (filePath, stats) => {
if (this.isFileSupported(filePath)) {
(this.listeners['change'] || []).forEach(changeListener => {
changeListener(filePath, stats);
});
}
})
.on('unlink', (filePath) => {
if (this.isFileSupported(filePath)) {
(this.listeners['unlink'] || []).forEach(unlinkListener => {
unlinkListener(filePath);
});
}
});
});
}
isWatchingFile(filePath) {
return (this.isWatching() &&
this.isFileSupported(filePath) &&
this.watchPaths.some(watchPath => filePath.startsWith(watchPath)));
}
isWatching() {
return this.watchers.length > 0;
}
on(event, listener) {
if (!this.listeners[event]) {
this.listeners[event] = [];
}
this.listeners[event].push(listener);
}
off(event, listener) {
if (this.listeners[event]) {
this.listeners[event] = this.listeners[event].filter(oldListener => oldListener !== listener);
}
}
}
exports.FilesWatcher = FilesWatcher;
//# sourceMappingURL=FilesWatcher.js.map
|
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4580],{24580:(t,e,s)=>{s.r(e),s.d(e,{GroupItem:()=>h,IStatusBar:()=>nt,KernelStatus:()=>T,LineCol:()=>Y,Popup:()=>N,ProgressBar:()=>B,RunningSessions:()=>X,StatusBar:()=>st,TextItem:()=>P,clickedItem:()=>S,interactiveItem:()=>w,item:()=>y,leftSide:()=>f,rightSide:()=>k,showPopup:()=>I,side:()=>x,statusBar:()=>b});var n=s(96927),i=s.n(n),a=s(66770);const r={display:"flex",alignItems:"center"},o={flexDirection:"row"};const l=(0,a.oB)(r,o);function h(t){const{spacing:e,children:s,className:i}=t,r=function(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(s[n[i]]=t[n[i]])}return s}(t,["spacing","children","className"]),o=n.Children.count(s);return n.createElement("div",Object.assign({className:(0,a.Sh)(l,i)},r),n.Children.map(s,((t,s)=>0===s?n.createElement("div",{style:{marginRight:`${e}px`}},t):s===o-1?n.createElement("div",{style:{marginLeft:`${e}px`}},t):n.createElement("div",{style:{margin:`0px ${e}px`}},t))))}var d=s(92005),c=s(18151);const u="var(--jp-statusbar-height)",_="var(--jp-ui-font-color1)",g="10px",m=(0,a.oB)({fontSize:"var(--jp-ui-font-size1)",fontFamily:"var(--jp-ui-font-family)"},{lineHeight:"24px",color:_}),p={paddingLeft:"6px",paddingRight:"6px"},v={$nest:{"&:hover":{backgroundColor:"var(--jp-layout-color3)"}}},C={backgroundColor:"var(--jp-brand-color1)",$nest:{["."+m]:{color:"white"}}},b=(0,a.oB)({background:"var(--jp-layout-color2)",minHeight:u,justifyContent:"space-between",paddingLeft:g,paddingRight:g},r),x=(0,a.oB)(r),f=(0,a.oB)(o),k=(0,a.oB)({flexDirection:"row-reverse"}),y=(0,a.oB)({maxHeight:u,marginLeft:"2px",marginRight:"2px",height:u,whiteSpace:"nowrap",textOverflow:"ellipsis",color:_},p),S=(0,a.oB)(C),w=(0,a.oB)(v),E=(0,a.oB)({boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"});function I(t){const e=new N(t);return e.launch(),e}class N extends c.Widget{constructor(t){super(),this._body=t.body,this._body.addClass(E),this._anchor=t.anchor,this._align=t.align,(this.layout=new c.PanelLayout).addWidget(t.body),this._body.node.addEventListener("resize",(()=>{this.update()}))}launch(){this._setGeometry(),c.Widget.attach(this,document.body),this.update(),this._anchor.addClass(S),this._anchor.removeClass(w)}onUpdateRequest(t){this._setGeometry(),super.onUpdateRequest(t)}onAfterAttach(t){document.addEventListener("click",this,!1),this.node.addEventListener("keydown",this,!1),window.addEventListener("resize",this,!1)}onAfterDetach(t){document.removeEventListener("click",this,!1),this.node.removeEventListener("keydown",this,!1),window.removeEventListener("resize",this,!1)}onResize(){this.update()}dispose(){super.dispose(),this._anchor.removeClass(S),this._anchor.addClass(w)}handleEvent(t){switch(t.type){case"keydown":this._evtKeydown(t);break;case"click":this._evtClick(t);break;case"resize":this.onResize()}}_evtClick(t){!t.target||this._body.node.contains(t.target)||this._anchor.node.contains(t.target)||this.dispose()}_evtKeydown(t){switch(t.keyCode){case 27:t.stopPropagation(),t.preventDefault(),this.dispose()}}_setGeometry(){let t=0;const e=this._anchor.node.getBoundingClientRect(),s=this._body.node.getBoundingClientRect();"right"===this._align&&(t=-(s.width-e.width));const n=window.getComputedStyle(this._body.node);d.HoverBox.setGeometry({anchor:e,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:t},privilege:"forceAbove",style:n})}}const R=(0,a.oB)({background:"black",height:"10px",width:"100px",border:"1px solid black",borderRadius:"3px",marginLeft:"4px",overflow:"hidden"}),j=(0,a.oB)({background:"var(--jp-brand-color2)",height:"10px"});function B(t){return n.createElement("div",{className:R},n.createElement(O,{percentage:t.percentage}))}function O(t){return n.createElement("div",{className:j,style:{width:`${t.percentage}px`}})}function P(t){const{title:e,source:s,className:i}=t,r=function(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(s[n[i]]=t[n[i]])}return s}(t,["title","source","className"]);return n.createElement("span",Object.assign({className:(0,a.Sh)(m,i),title:e},r),s)}var A=s(74161),D=s(93315);function L(t){const e=(t.translator||A.nullTranslator).load("jupyterlab");let s="";return t.status&&(s=` | ${t.status}`),i().createElement(P,{onClick:t.handleClick,source:`${t.kernelName}${s}`,title:e.__("Change kernel for %1",t.activityName)})}class T extends d.VDomRenderer{constructor(t,e){super(new T.Model(e)),this.translator=e||A.nullTranslator,this._handleClick=t.onClick,this.addClass(w)}render(){return null===this.model?null:i().createElement(L,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,translator:this.translator})}}!function(t){class e extends d.VDomModel{constructor(t){super(),this._onKernelStatusChanged=()=>{var t;this._kernelStatus=null===(t=this._sessionContext)||void 0===t?void 0:t.kernelDisplayStatus,this.stateChanged.emit(void 0)},this._onKernelChanged=(t,e)=>{var s;const n=this._getAllState();this._kernelStatus=null===(s=this._sessionContext)||void 0===s?void 0:s.kernelDisplayStatus,this._kernelName=t.kernelDisplayName,this._triggerChange(n,this._getAllState())},this._activityName="activity",this._kernelStatus="",this._sessionContext=null,t=t||A.nullTranslator,this._trans=t.load("jupyterlab"),this._kernelName=this._trans.__("No Kernel!"),this._statusNames={unknown:this._trans.__("Unknown"),starting:this._trans.__("Starting"),idle:this._trans.__("Idle"),busy:this._trans.__("Busy"),terminating:this._trans.__("Terminating"),restarting:this._trans.__("Restarting"),autorestarting:this._trans.__("Autorestarting"),dead:this._trans.__("Dead"),connected:this._trans.__("Connected"),connecting:this._trans.__("Connecting"),disconnected:this._trans.__("Disconnected"),initializing:this._trans.__("Initializing"),"":""}}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:void 0}get activityName(){return this._activityName}set activityName(t){this._activityName!==t&&(this._activityName=t,this.stateChanged.emit(void 0))}get sessionContext(){return this._sessionContext}set sessionContext(t){var e,s,n;null===(e=this._sessionContext)||void 0===e||e.statusChanged.disconnect(this._onKernelStatusChanged),null===(s=this._sessionContext)||void 0===s||s.kernelChanged.disconnect(this._onKernelChanged);const i=this._getAllState();this._sessionContext=t,this._kernelStatus=null==t?void 0:t.kernelDisplayStatus,this._kernelName=null!==(n=null==t?void 0:t.kernelDisplayName)&&void 0!==n?n:this._trans.__("No Kernel"),null==t||t.statusChanged.connect(this._onKernelStatusChanged,this),null==t||t.connectionStatusChanged.connect(this._onKernelStatusChanged,this),null==t||t.kernelChanged.connect(this._onKernelChanged,this),this._triggerChange(i,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(t,e){D.JSONExt.deepEqual(t,e)&&this.stateChanged.emit(void 0)}}t.Model=e}(T||(T={}));var z=s(79487);(0,a.oB)({boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"});const M=(0,a.oB)({padding:"4px 12px",backgroundColor:"var(--jp-layout-color2)",boxShadow:"var(--jp-toolbar-box-shadow)",zIndex:2,fontSize:"var(--jp-ui-font-size1)"}),F=(0,a.oB)({fontSize:"var(--jp-ui-font-size0)",lineHeight:"var(--jp-ui-font-size1)",marginTop:"4px",color:"var(--jp-ui-font-color0)"}),K={border:"none",borderRadius:"0px",position:"absolute",backgroundSize:"16px",backgroundRepeat:"no-repeat",backgroundPosition:"center",outline:"none",top:"0px",right:"0px"},W=(0,a.oB)(K,{top:"4px",right:"8px",height:"24px",padding:"0px 12px",width:"12px"}),U=(0,a.oB)(K,{backgroundColor:"var(--jp-brand-color1)",height:"100%",width:"100%",boxSizing:"border-box",padding:"4px 6px"}),$=(0,a.oB)(K,{backgroundColor:"transparent",height:"100%",width:"100%",boxSizing:"border-box"}),H=(0,a.oB)({overflow:"hidden",padding:"0px 8px",border:"1px solid var(--jp-border-color0)",backgroundColor:"var(--jp-input-active-background)",height:"22px"}),G=(0,a.oB)({border:"var(--jp-border-width) solid var(--md-blue-500)",boxShadow:"inset 0 0 4px var(--md-blue-300)"}),V=(0,a.oB)({background:"transparent",width:"200px",height:"100%",border:"none",outline:"none",color:"var(--jp-ui-font-color0)",lineHeight:"28px"});class q extends i().Component{constructor(t){super(t),this._handleChange=t=>{this.setState({value:t.currentTarget.value})},this._handleSubmit=t=>{t.preventDefault();const e=parseInt(this._textInput.value,10);return!isNaN(e)&&isFinite(e)&&1<=e&&e<=this.props.maxLine&&this.props.handleSubmit(e),!1},this._handleFocus=()=>{this.setState({hasFocus:!0})},this._handleBlur=()=>{this.setState({hasFocus:!1})},this._textInput=null,this.translator=t.translator||A.nullTranslator,this._trans=this.translator.load("jupyterlab"),this.state={value:"",hasFocus:!1}}componentDidMount(){this._textInput.focus()}render(){return i().createElement("div",{className:M},i().createElement("form",{name:"lineColumnForm",onSubmit:this._handleSubmit,noValidate:!0},i().createElement("div",{className:(0,a.Sh)(H,"lm-lineForm-wrapper",this.state.hasFocus?G:void 0)},i().createElement("input",{type:"text",className:V,onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,value:this.state.value,ref:t=>{this._textInput=t}}),i().createElement("div",{className:W},i().createElement(z.lineFormIcon.react,{className:U,elementPosition:"center"}),i().createElement("input",{type:"submit",className:$,value:""}))),i().createElement("label",{className:F},this._trans.__("Go to line number between 1 and %1",this.props.maxLine))))}}function J(t){const e=(t.translator||A.nullTranslator).load("jupyterlab");return i().createElement(P,{onClick:t.handleClick,source:e.__("Ln %1, Col %2",t.line,t.column),title:e.__("Go to line number…")})}class Y extends d.VDomRenderer{constructor(t){super(new Y.Model),this._popup=null,this.addClass(w),this.translator=t||A.nullTranslator}render(){return null===this.model?null:i().createElement(J,{line:this.model.line,column:this.model.column,translator:this.translator,handleClick:()=>this._handleClick()})}_handleClick(){this._popup&&this._popup.dispose();const t=d.ReactWidget.create(i().createElement(q,{handleSubmit:t=>this._handleSubmit(t),currentLine:this.model.line,maxLine:this.model.editor.lineCount,translator:this.translator}));this._popup=I({body:t,anchor:this,align:"right"})}_handleSubmit(t){this.model.editor.setCursorPosition({line:t-1,column:0}),this._popup.dispose(),this.model.editor.focus()}}function Q(t){return i().createElement(h,{spacing:4,onClick:t.handleClick},i().createElement(h,{spacing:4},i().createElement(P,{source:t.terminals}),i().createElement(z.terminalIcon.react,{left:"1px",top:"3px",stylesheet:"statusBar"})),i().createElement(h,{spacing:4},i().createElement(P,{source:t.sessions}),i().createElement(z.kernelIcon.react,{top:"2px",stylesheet:"statusBar"})))}!function(t){class e extends d.VDomModel{constructor(){super(...arguments),this._onSelectionChanged=()=>{const t=this._getAllState(),e=this.editor.getCursorPosition();this._line=e.line+1,this._column=e.column+1,this._triggerChange(t,this._getAllState())},this._line=1,this._column=1,this._editor=null}get editor(){return this._editor}set editor(t){const e=this._editor;e&&e.model.selections.changed.disconnect(this._onSelectionChanged);const s=this._getAllState();if(this._editor=t,this._editor){this._editor.model.selections.changed.connect(this._onSelectionChanged);const t=this._editor.getCursorPosition();this._column=t.column+1,this._line=t.line+1}else this._column=1,this._line=1;this._triggerChange(s,this._getAllState())}get line(){return this._line}get column(){return this._column}_getAllState(){return[this._line,this._column]}_triggerChange(t,e){t[0]===e[0]&&t[1]===e[1]||this.stateChanged.emit(void 0)}}t.Model=e}(Y||(Y={}));class X extends d.VDomRenderer{constructor(t){super(new X.Model),this._serviceManager=t.serviceManager,this._handleClick=t.onClick,this.translator=t.translator||A.nullTranslator,this._trans=this.translator.load("jupyterload"),this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this),this.addClass(w)}render(){return this.model?(this.title.caption=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions),i().createElement(Q,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick})):null}dispose(){super.dispose(),this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(t,e){this.model.sessions=e.length}_onTerminalsRunningChanged(t,e){this.model.terminals=e.length}}!function(t){class e extends d.VDomModel{constructor(){super(...arguments),this._terminals=0,this._sessions=0}get sessions(){return this._sessions}set sessions(t){const e=this._sessions;this._sessions=t,e!==this._sessions&&this.stateChanged.emit(void 0)}get terminals(){return this._terminals}set terminals(t){const e=this._terminals;this._terminals=t,e!==this._terminals&&this.stateChanged.emit(void 0)}}t.Model=e}(X||(X={}));var Z,tt=s(58623),et=s(79444);class st extends c.Widget{constructor(){super(),this._leftRankItems=[],this._rightRankItems=[],this._statusItems={},this._disposables=new et.DisposableSet,this.addClass(b);const t=this.layout=new c.PanelLayout,e=this._leftSide=new c.Panel,s=this._middlePanel=new c.Panel,n=this._rightSide=new c.Panel;e.addClass(x),e.addClass(f),s.addClass(x),n.addClass(x),n.addClass(k),t.addWidget(e),t.addWidget(s),t.addWidget(n)}registerStatusItem(t,e){if(t in this._statusItems)throw new Error(`Status item ${t} already registered.`);const s=Object.assign(Object.assign({},Z.statusItemDefaults),e),{align:n,item:i,rank:a}=s,r=()=>{this._refreshItem(t)};s.activeStateChanged&&s.activeStateChanged.connect(r);const o={id:t,rank:a};if(s.item.addClass(y),this._statusItems[t]=s,"left"===n){const t=this._findInsertIndex(this._leftRankItems,o);-1===t?(this._leftSide.addWidget(i),this._leftRankItems.push(o)):(tt.ArrayExt.insert(this._leftRankItems,t,o),this._leftSide.insertWidget(t,i))}else if("right"===n){const t=this._findInsertIndex(this._rightRankItems,o);-1===t?(this._rightSide.addWidget(i),this._rightRankItems.push(o)):(tt.ArrayExt.insert(this._rightRankItems,t,o),this._rightSide.insertWidget(t,i))}else this._middlePanel.addWidget(i);this._refreshItem(t);const l=new et.DisposableDelegate((()=>{delete this._statusItems[t],s.activeStateChanged&&s.activeStateChanged.disconnect(r),i.parent=null,i.dispose()}));return this._disposables.add(l),l}dispose(){this._leftRankItems.length=0,this._rightRankItems.length=0,this._disposables.dispose(),super.dispose()}onUpdateRequest(t){this._refreshAll(),super.onUpdateRequest(t)}_findInsertIndex(t,e){return tt.ArrayExt.findFirstIndex(t,(t=>t.rank>e.rank))}_refreshItem(t){const e=this._statusItems[t];e.isActive()?(e.item.show(),e.item.update()):e.item.hide()}_refreshAll(){Object.keys(this._statusItems).forEach((t=>{this._refreshItem(t)}))}}!function(t){t.statusItemDefaults={align:"left",rank:0,isActive:()=>!0,activeStateChanged:void 0}}(Z||(Z={}));const nt=new D.Token("@jupyterlab/statusbar:IStatusBar")}}]);
//# sourceMappingURL=4580.0405cd65b88894e06478.js.map
|
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var iconHelpers = require('@carbon/icon-helpers');
var PropTypes = _interopDefault(require('prop-types'));
var React = _interopDefault(require('react'));
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var defaultStyle = {
"willChange": "transform"
};
var CaretSortDown16 = React.forwardRef(function (_ref, ref) {
var className = _ref.className,
children = _ref.children,
style = _ref.style,
tabIndex = _ref.tabIndex,
rest = _objectWithoutProperties(_ref, ["className", "children", "style", "tabIndex"]);
var _getAttributes = iconHelpers.getAttributes(_objectSpread({}, rest, {
tabindex: tabIndex
})),
tabindex = _getAttributes.tabindex,
props = _objectWithoutProperties(_getAttributes, ["tabindex"]);
if (className) {
props.className = className;
}
if (tabindex !== undefined && tabindex !== null) {
props.tabIndex = tabindex;
}
if (_typeof(style) === 'object') {
props.style = _objectSpread({}, defaultStyle, style);
} else {
props.style = defaultStyle;
}
if (ref) {
props.ref = ref;
}
return React.createElement('svg', props, children, React.createElement('path', {
d: 'M11.5 10L8 14l-3.5-4z'
}));
});
CaretSortDown16.displayName = 'CaretSortDown16';
CaretSortDown16.propTypes = {
'aria-hidden': PropTypes.bool,
'aria-label': PropTypes.string,
'aria-labelledby': PropTypes.string,
className: PropTypes.string,
children: PropTypes.node,
height: PropTypes.number,
preserveAspectRatio: PropTypes.string,
tabIndex: PropTypes.string,
viewBox: PropTypes.string,
width: PropTypes.number,
xmlns: PropTypes.string
};
CaretSortDown16.defaultProps = {
width: 16,
height: 16,
viewBox: '0 0 16 16',
xmlns: 'http://www.w3.org/2000/svg',
preserveAspectRatio: 'xMidYMid meet'
};
module.exports = CaretSortDown16;
|
"use strict";
/**
* @ngdoc controller
* @name materialsCloudApp.controller:CifDetailsCtrl
* @description
*
* Controller for displaying CIF structures.
*
* #### File location: app/scripts/controllers/explore/nodedetails/data/cif.js
*
* @requires $scope : scope object for this page
* @requires $window : rezise event of window object is used to resize structure
* @requires nodeVisualization : service used to visualize structure
* @requires $timeout : used to add delay
* @requires CONFIG : materials cloud configuration file
* @requires nodeService : service used to request node data from server
*
*/
app.controller('CifDetailsCtrl',
["$scope", "$window", "nodeVisualization", "$timeout", "CONFIG", "nodeService", "utils",
function ($scope, $window, nodeVisualization, $timeout, CONFIG, nodeService, utils) {
/**
* @ngdoc
* @name materialsCloudApp.controller:CifDetailsCtrl#attributes
* @propertyOf materialsCloudApp.controller:CifDetailsCtrl
*
* @description
* stores the structure attributes received from the server.
*/
$scope.attributes = {};
$scope.strInfo = {};
/**
* Toggle the interaction of structure visualizer on double click event
*/
$scope.enableCifInteraction = true;
$scope.toggleCifVisInteraction = function(){
if ($scope.enableCifInteraction){
// enable interaction here
$("#str-overlay").css("display", "none");
$("#structure-content").css('pointer-events', 'auto');
$scope.enableCifInteraction = false;
}
else{
// disable interaction here
$("#str-overlay").css("display", "table");
$("#structure-content").css('pointer-events', 'none');
$scope.enableCifInteraction = true;
}
};
$scope.structureViewer = null;
$scope.jsmolAppletName = "";
$scope.crystalCif = "";
$scope.supercell = [1, 1, 1];
$scope.selectedAxesIdx = 1;
/**
* Get node visualization data from the server using nodeService
* and display structure using nodeVisualization.
*/
nodeService.getMetadata("DATA", $scope.nodeId, "VISUALIZATION_CIF", $scope.profileRestEndPoint)
.then(function (response) {
response = response.data.data[CONFIG.DATA_PATH[$scope.selectedProfileInfo.REST_API_MAJOR_VERSION.toUpperCase()]["VISUALIZATION"]];
if ($scope.selectedProfileInfo.REST_API_MAJOR_VERSION == 'v2' || $scope.selectedProfileInfo.REST_API_MAJOR_VERSION == 'v3') {
// download options
var base = $scope.profileRestEndPoint + CONFIG.REST_API.NODE[$scope.selectedProfileInfo.REST_API_MAJOR_VERSION.toUpperCase()]["DATA"] + "/" + $scope.nodeId
+ CONFIG.REST_API.NODE[$scope.selectedProfileInfo.REST_API_MAJOR_VERSION.toUpperCase()]["DOWNLOAD"] + "?format=";
$scope.downloadOptions = [
{"name": "CIF", link: base + "cif"}
];
// display crystal
if (response["str_viz_info"]["format"] == "chemdoodle") {
if (typeof response["str_viz_info"]["data"] === 'string' || response["str_viz_info"]["data"] instanceof String) {
var crystalCif = JSON.parse(response["str_viz_info"]["data"]);
} else {
var crystalCif = response["str_viz_info"]["data"];
}
// display crystal
$timeout(function () {
$scope.structureviewer = null;
$scope.structureviewer = nodeVisualization.chemDoodleCrystal(
crystalCif, "cif", "crystal", "structure-content", $scope.structureviewer);
$scope.toggleCifVisInteraction();
});
} else {
$scope.jsmolAppletName = "jmolApplet";
//get metadata
$timeout(function () {
$scope.crystalCif = response["str_viz_info"]["data"];
});
}
} else {
$scope.jsmolAppletName = "jmolApplet";
//get metadata
$timeout(function () {
$scope.crystalCif = response["data"];
});
}
});
if ($scope.selectedProfileInfo.REST_API_MAJOR_VERSION == 'v4') {
/**
* Get cif download options from the server using nodeService.
*/
nodeService.getDownloadFormats("DATA", $scope.profileRestEndPoint)
.then(function (response) {
response = response.data.data["data.cif.CifData.|"];
// download options
var base = $scope.profileRestEndPoint + CONFIG.REST_API.NODE[$scope.selectedProfileInfo.REST_API_MAJOR_VERSION.toUpperCase()]["DATA"]
+ "/" + $scope.nodeId + CONFIG.REST_API.NODE[$scope.selectedProfileInfo.REST_API_MAJOR_VERSION.toUpperCase()]["DOWNLOAD"] + "?download_format=";
$scope.downloadOptions = [];
angular.forEach(response, function (value) {
$scope.downloadOptions.push({"name": value.toUpperCase(), link: base + value});
});
});
}
/**
* Resize the structure on window resize event.
*/
angular.element($window).bind('resize', function(){
if ($scope.structureviewer) {
var parentcanvas = document.getElementById('structure-content');
var the_width = parentcanvas.offsetWidth -10;
var the_height = parentcanvas.offsetHeight -10;
$scope.structureviewer.resize(the_width, the_height);
}
});
}
]
);
|
import QUnit from 'qunit';
import {
constructTemplateUrl,
parseTemplateInfo,
segmentsFromTemplate
} from '../../src/segment/segmentTemplate';
QUnit.module('segmentTemplate - constructTemplateUrl');
QUnit.test('does not change url with no identifiers', function(assert) {
const url = 'path/to/segment.mp4';
assert.equal(constructTemplateUrl(url, {}), url, 'no change');
});
QUnit.test('replaces each identifier individually', function(assert) {
const values = {
RepresentationID: 'Rep1',
Bandwidth: 1000,
Number: 2,
Time: 2000
};
const cases = [
{
url: '/$RepresentationID$/segment.mp4',
expected: '/Rep1/segment.mp4'
},
{
url: '/$Bandwidth$/segment.mp4',
expected: '/1000/segment.mp4'
},
{
url: '/$Number$/segment.mp4',
expected: '/2/segment.mp4'
},
{
url: '/$Time$/segment.mp4',
expected: '/2000/segment.mp4'
},
{
url: '/$$/segment.mp4',
expected: '/$/segment.mp4'
}
];
cases.forEach(test => {
assert.equal(constructTemplateUrl(test.url, values), test.expected, `constructs ${test.url}`);
});
});
QUnit.test('replaces multiple identifiers in url', function(assert) {
assert.equal(
constructTemplateUrl(
'$$$Time$$$$$/$RepresentationID$/$Bandwidth$/$Number$-$Time$-segment-$Number$.mp4',
{
RepresentationID: 'Rep1',
Bandwidth: 1000,
Number: 2,
Time: 2000
}
),
'$2000$$/Rep1/1000/2-2000-segment-2.mp4',
'correctly replaces multiple identifiers in single url'
);
});
QUnit.test('does not replace unknown identifiers', function(assert) {
assert.equal(
constructTemplateUrl(
'/$UNKNOWN$/$RepresentationID$/$UNKOWN2$/$Number$.mp4',
{
RepresentationID: 'Rep1',
Number: 1
}
),
'/$UNKNOWN$/Rep1/$UNKOWN2$/1.mp4',
'ignores unknown identifiers'
);
});
QUnit.test('honors padding format tag', function(assert) {
assert.equal(
constructTemplateUrl(
'/$Number%03d$/segment.mp4',
{ Number: 7 }
),
'/007/segment.mp4',
'correctly adds padding when format tag present'
);
});
QUnit.test('does not add padding when value is longer than width', function(assert) {
assert.equal(
constructTemplateUrl(
'/$Bandwidth%06d$/segment.mp4',
{ Bandwidth: 999999999 }
),
'/999999999/segment.mp4',
'no padding when value longer than format width'
);
});
QUnit.test('does not use padding format tag for $RepresentationID$', function(assert) {
assert.equal(
constructTemplateUrl(
'/$RepresentationID%09d$/$Number%03d$/segment.mp4',
{ RepresentationID: 'Rep1', Number: 7 }
),
'/Rep1/007/segment.mp4',
'ignores format tag for $RepresentationID$'
);
});
QUnit.module('segmentTemplate - parseTemplateInfo');
QUnit.test(
'one media segment when no @duration attribute or SegmentTimeline element',
function(assert) {
const attributes = {
startNumber: 3,
timescale: 1000,
sourceDuration: 42,
periodIndex: 1,
type: 'static',
periodStart: 0
};
assert.deepEqual(
parseTemplateInfo(attributes, void 0),
[ { number: 3, duration: 42, time: 0, timeline: 1 }],
'creates segment list of one media segment when no @duration attribute or timeline'
);
}
);
QUnit.test('uses @duration attribute when present', function(assert) {
const attributes = {
startNumber: 0,
timescale: 1000,
sourceDuration: 16,
duration: 6000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
assert.deepEqual(
parseTemplateInfo(attributes, []),
[
{
number: 0,
duration: 6,
timeline: 1,
time: 0
},
{
number: 1,
duration: 6,
timeline: 1,
time: 6000
},
{
number: 2,
duration: 4,
timeline: 1,
time: 12000
}
],
'correctly parses segment durations and start times with @duration attribute'
);
});
QUnit.test('parseByDuration allows non zero startNumber', function(assert) {
const attributes = {
startNumber: 101,
timescale: 1000,
sourceDuration: 16,
duration: 6000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
assert.deepEqual(
parseTemplateInfo(attributes, []),
[
{
number: 101,
duration: 6,
timeline: 1,
time: 0
},
{
number: 102,
duration: 6,
timeline: 1,
time: 6000
},
{
number: 103,
duration: 4,
timeline: 1,
time: 12000
}
],
'allows non zero startNumber'
);
});
QUnit.test('parseByDuration defaults 1 for startNumber and timescale', function(assert) {
const attributes = {
sourceDuration: 11,
duration: '4',
periodIndex: 1,
type: 'static',
periodStart: 0
};
assert.deepEqual(
parseTemplateInfo(attributes, []),
[
{
number: 1,
duration: 4,
timeline: 1,
time: 0
},
{
number: 2,
duration: 4,
timeline: 1,
time: 4
},
{
number: 3,
duration: 3,
timeline: 1,
time: 8
}
],
'uses default startNumber and timescale value of 1'
);
});
QUnit.test('parseByDuration uses endNumber and has correct duration', function(assert) {
const attributes = {
sourceDuration: 11,
duration: '4',
periodIndex: 1,
endNumber: '2',
type: 'static',
periodStart: 0
};
assert.deepEqual(
parseTemplateInfo(attributes, []),
[
{
number: 1,
duration: 4,
timeline: 1,
time: 0
},
{
number: 2,
duration: 7,
timeline: 1,
time: 4
}
],
'uses default startNumber and timescale value of 1'
);
});
QUnit.test('uses SegmentTimeline info when no @duration attribute', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 6000
},
{
d: 2000
},
{
d: 3000
},
{
d: 5000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 0,
timeline: 1
},
{
number: 1,
duration: 2,
time: 6000,
timeline: 1
},
{
number: 2,
duration: 3,
time: 8000,
timeline: 1
},
{
number: 3,
duration: 5,
time: 11000,
timeline: 1
}
],
'correctly calculates segment durations and start times with SegmentTimeline'
);
});
QUnit.test('parseByTimeline allows non zero startNumber', function(assert) {
const attributes = {
startNumber: 101,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 6000
},
{
d: 2000
},
{
d: 3000
},
{
d: 5000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 101,
duration: 6,
time: 0,
timeline: 1
},
{
number: 102,
duration: 2,
time: 6000,
timeline: 1
},
{
number: 103,
duration: 3,
time: 8000,
timeline: 1
},
{
number: 104,
duration: 5,
time: 11000,
timeline: 1
}
],
'allows non zero startNumber'
);
});
QUnit.test('parseByTimeline defaults 1 for startNumber and timescale', function(assert) {
const attributes = {
sourceDuration: 11,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 4
},
{
d: 2
},
{
d: 3
},
{
d: 2
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 1,
duration: 4,
time: 0,
timeline: 1
},
{
number: 2,
duration: 2,
time: 4,
timeline: 1
},
{
number: 3,
duration: 3,
time: 6,
timeline: 1
},
{
number: 4,
duration: 2,
time: 9,
timeline: 1
}
],
'defaults to 1 for startNumber and timescale'
);
});
QUnit.test('defaults SegmentTimeline.S@t to 0 for first segment', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
d: 6000
},
{
d: 2000
},
{
d: 3000
},
{
d: 5000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 0,
timeline: 1
},
{
number: 1,
duration: 2,
time: 6000,
timeline: 1
},
{
number: 2,
duration: 3,
time: 8000,
timeline: 1
},
{
number: 3,
duration: 5,
time: 11000,
timeline: 1
}
],
'uses default value of 0'
);
});
QUnit.test('allows non zero starting SegmentTimeline.S@t value', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 42000,
d: 6000
},
{
d: 2000
},
{
d: 3000
},
{
d: 5000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 42000,
timeline: 1
},
{
number: 1,
duration: 2,
time: 48000,
timeline: 1
},
{
number: 2,
duration: 3,
time: 50000,
timeline: 1
},
{
number: 3,
duration: 5,
time: 53000,
timeline: 1
}
],
'allows non zero SegmentTimeline.S@t start value'
);
});
QUnit.test('honors @r repeat attribute for SegmentTimeline.S', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 6000
},
{
d: 1000,
r: 3
},
{
d: 5000
},
{
d: 1000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 0,
timeline: 1
},
{
number: 1,
duration: 1,
time: 6000,
timeline: 1
},
{
number: 2,
duration: 1,
time: 7000,
timeline: 1
},
{
number: 3,
duration: 1,
time: 8000,
timeline: 1
},
{
number: 4,
duration: 1,
time: 9000,
timeline: 1
},
{
number: 5,
duration: 5,
time: 10000,
timeline: 1
},
{
number: 6,
duration: 1,
time: 15000,
timeline: 1
}
],
'correctly uses @r repeat attribute'
);
});
QUnit.test('correctly handles negative @r repeat value', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 16,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 6000
},
{
d: 1000,
r: -1
},
{
t: 10000,
d: 5000
},
{
d: 1000
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 0,
timeline: 1
},
{
number: 1,
duration: 1,
time: 6000,
timeline: 1
},
{
number: 2,
duration: 1,
time: 7000,
timeline: 1
},
{
number: 3,
duration: 1,
time: 8000,
timeline: 1
},
{
number: 4,
duration: 1,
time: 9000,
timeline: 1
},
{
number: 5,
duration: 5,
time: 10000,
timeline: 1
},
{
number: 6,
duration: 1,
time: 15000,
timeline: 1
}
],
'correctly uses negative @r repeat attribute'
);
});
QUnit.test('correctly handles negative @r repeat value for last S', function(assert) {
const attributes = {
startNumber: 0,
sourceDuration: 15,
timescale: 1000,
periodIndex: 1,
type: 'static',
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 6000
},
{
d: 3000,
r: -1
}
];
assert.deepEqual(
parseTemplateInfo(attributes, segmentTimeline),
[
{
number: 0,
duration: 6,
time: 0,
timeline: 1
},
{
number: 1,
duration: 3,
time: 6000,
timeline: 1
},
{
number: 2,
duration: 3,
time: 9000,
timeline: 1
},
{
number: 3,
duration: 3,
time: 12000,
timeline: 1
}
],
'correctly uses negative @r repeat attribute for last S'
);
});
QUnit.skip(
'detects discontinuity when @t time is greater than expected start time',
function(assert) {
}
);
QUnit.module('segmentTemplate - type ="dynamic"');
QUnit.test('correctly handles duration', function(assert) {
const basicAttributes = {
baseUrl: 'http://www.example.com/',
type: 'dynamic',
media: 'n-$Number$.m4s',
minimumUpdatePeriod: 0,
timescale: 1,
NOW: 10000,
clientOffset: 0,
availabilityStartTime: 0,
startNumber: 1,
duration: 2,
periodIndex: 1,
periodStart: 0
};
assert.deepEqual(
segmentsFromTemplate(basicAttributes, []),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 6
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 5,
resolvedUri: 'http://www.example.com/n-5.m4s',
timeline: 1,
uri: 'n-5.m4s',
presentationTime: 8
}],
'segments correctly with basic settings'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign({}, basicAttributes, { startNumber: 10 }), []),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 10,
resolvedUri: 'http://www.example.com/n-10.m4s',
timeline: 1,
uri: 'n-10.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 11,
resolvedUri: 'http://www.example.com/n-11.m4s',
timeline: 1,
uri: 'n-11.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 12,
resolvedUri: 'http://www.example.com/n-12.m4s',
timeline: 1,
uri: 'n-12.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 13,
resolvedUri: 'http://www.example.com/n-13.m4s',
timeline: 1,
uri: 'n-13.m4s',
presentationTime: 6
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 14,
resolvedUri: 'http://www.example.com/n-14.m4s',
timeline: 1,
uri: 'n-14.m4s',
presentationTime: 8
}],
'segments adjusted correctly based on @startNumber'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign(
{}, basicAttributes,
{ availabilityStartTime: 4 }
), []),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}],
'segments correct with @availabilityStartTime set'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign(
{}, basicAttributes,
{ availabilityStartTime: 2, start: 4 }
), []),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}],
'segments correct with @availabilityStartTime and @start set'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign(
{}, basicAttributes,
{ timeShiftBufferDepth: 4 }, []
)),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 5,
resolvedUri: 'http://www.example.com/n-5.m4s',
timeline: 1,
uri: 'n-5.m4s',
presentationTime: 2
}],
'segments correct with @timeShiftBufferDepth set'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign(
{}, basicAttributes,
{ clientOffset: -2000 }, []
)),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 6
}],
'segments correct with given clientOffset'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign(
{}, basicAttributes,
{ endNumber: '4' }, []
)),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 6
}],
'segments correct with endNumber'
);
});
QUnit.test('correctly handles duration with segmentTimeline', function(assert) {
const basicAttributes = {
baseUrl: 'http://www.example.com/',
type: 'dynamic',
media: 'n-$Number$.m4s',
minimumUpdatePeriod: 2,
timescale: 1,
NOW: 8000,
clientOffset: 0,
availabilityStartTime: 0,
startNumber: 1,
periodIndex: 1,
periodStart: 0
};
const segmentTimeline = [
{
t: 0,
d: 2,
r: 1
},
{
d: 2,
r: -1
}
];
assert.deepEqual(
segmentsFromTemplate(basicAttributes, segmentTimeline),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 6
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 5,
resolvedUri: 'http://www.example.com/n-5.m4s',
timeline: 1,
uri: 'n-5.m4s',
presentationTime: 8
}],
'segments should fill until current time when r = -1 and @minimumUpdatePeriod > 0'
);
assert.deepEqual(
segmentsFromTemplate(Object.assign({}, basicAttributes, {clientOffset: -2000}), segmentTimeline),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 0
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 6
}],
'segments should fill correctly when taking client offset into account'
);
const segmentTimelineShifted = [
{
t: 2,
d: 2,
r: 1
},
{
d: 2,
r: -1
}
];
assert.deepEqual(
segmentsFromTemplate(basicAttributes, segmentTimelineShifted),
[{
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 2
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 4
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 6
}, {
duration: 2,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 8
}],
'segments take into account different time value for first segment'
);
assert.deepEqual(
segmentsFromTemplate(
Object.assign({}, basicAttributes, {timescale: 2 }),
segmentTimelineShifted
),
[{
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 1,
resolvedUri: 'http://www.example.com/n-1.m4s',
timeline: 1,
uri: 'n-1.m4s',
presentationTime: 1
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 2,
resolvedUri: 'http://www.example.com/n-2.m4s',
timeline: 1,
uri: 'n-2.m4s',
presentationTime: 2
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 3,
resolvedUri: 'http://www.example.com/n-3.m4s',
timeline: 1,
uri: 'n-3.m4s',
presentationTime: 3
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 4,
resolvedUri: 'http://www.example.com/n-4.m4s',
timeline: 1,
uri: 'n-4.m4s',
presentationTime: 4
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 5,
resolvedUri: 'http://www.example.com/n-5.m4s',
timeline: 1,
uri: 'n-5.m4s',
presentationTime: 5
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 6,
resolvedUri: 'http://www.example.com/n-6.m4s',
timeline: 1,
uri: 'n-6.m4s',
presentationTime: 6
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 7,
resolvedUri: 'http://www.example.com/n-7.m4s',
timeline: 1,
uri: 'n-7.m4s',
presentationTime: 7
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 8,
resolvedUri: 'http://www.example.com/n-8.m4s',
timeline: 1,
uri: 'n-8.m4s',
presentationTime: 8
}, {
duration: 1,
map: {
resolvedUri: 'http://www.example.com/',
uri: ''
},
number: 9,
resolvedUri: 'http://www.example.com/n-9.m4s',
timeline: 1,
uri: 'n-9.m4s',
presentationTime: 9
}],
'segments take into account different time value for first segment with timescale'
);
});
QUnit.module('segmentTemplate - segmentsFromTemplate');
QUnit.test('constructs simple segment list and resolves uris', function(assert) {
const attributes = {
startNumber: 0,
duration: 6000,
sourceDuration: 16,
timescale: 1000,
bandwidth: 100,
id: 'Rep1',
initialization: {
sourceURL: '$RepresentationID$/$Bandwidth$/init.mp4'
},
media: '$RepresentationID$/$Bandwidth$/$Number%03d$-$Time%05d$.mp4',
periodIndex: 1,
baseUrl: 'https://example.com/',
type: 'static',
periodStart: 0
};
const segments = [
{
duration: 6,
map: {
resolvedUri: 'https://example.com/Rep1/100/init.mp4',
uri: 'Rep1/100/init.mp4'
},
resolvedUri: 'https://example.com/Rep1/100/000-00000.mp4',
timeline: 1,
uri: 'Rep1/100/000-00000.mp4',
number: 0,
presentationTime: 0
},
{
duration: 6,
map: {
resolvedUri: 'https://example.com/Rep1/100/init.mp4',
uri: 'Rep1/100/init.mp4'
},
resolvedUri: 'https://example.com/Rep1/100/001-06000.mp4',
timeline: 1,
uri: 'Rep1/100/001-06000.mp4',
number: 1,
presentationTime: 6
},
{
duration: 4,
map: {
resolvedUri: 'https://example.com/Rep1/100/init.mp4',
uri: 'Rep1/100/init.mp4'
},
resolvedUri: 'https://example.com/Rep1/100/002-12000.mp4',
timeline: 1,
uri: 'Rep1/100/002-12000.mp4',
number: 2,
presentationTime: 12
}
];
assert.deepEqual(
segmentsFromTemplate(attributes, void 0), segments,
'creates segments from template'
);
});
QUnit.test('constructs simple segment list and with <Initialization> node', function(assert) {
const attributes = {
startNumber: 0,
duration: 6000,
sourceDuration: 16,
timescale: 1000,
bandwidth: 100,
id: 'Rep1',
initialization: {
sourceURL: 'init.mp4',
range: '121-125'
},
media: '$RepresentationID$/$Bandwidth$/$Number%03d$-$Time%05d$.mp4',
periodIndex: 1,
baseUrl: 'https://example.com/',
type: 'static',
periodStart: 0
};
const segments = [
{
duration: 6,
map: {
resolvedUri: 'https://example.com/init.mp4',
uri: 'init.mp4',
byterange: {
length: 5,
offset: 121
}
},
resolvedUri: 'https://example.com/Rep1/100/000-00000.mp4',
timeline: 1,
uri: 'Rep1/100/000-00000.mp4',
number: 0,
presentationTime: 0
},
{
duration: 6,
map: {
resolvedUri: 'https://example.com/init.mp4',
uri: 'init.mp4',
byterange: {
length: 5,
offset: 121
}
},
resolvedUri: 'https://example.com/Rep1/100/001-06000.mp4',
timeline: 1,
uri: 'Rep1/100/001-06000.mp4',
number: 1,
presentationTime: 6
},
{
duration: 4,
map: {
resolvedUri: 'https://example.com/init.mp4',
uri: 'init.mp4',
byterange: {
length: 5,
offset: 121
}
},
resolvedUri: 'https://example.com/Rep1/100/002-12000.mp4',
timeline: 1,
uri: 'Rep1/100/002-12000.mp4',
number: 2,
presentationTime: 12
}
];
assert.deepEqual(
segmentsFromTemplate(attributes, void 0), segments,
'creates segments from template'
);
});
QUnit.test('multiperiod uses periodDuration when available', function(assert) {
const attributes = {
startNumber: 0,
duration: 6000,
sourceDuration: 12,
timescale: 1000,
bandwidth: 100,
id: 'Rep1',
initialization: {
sourceURL: '$RepresentationID$/$Bandwidth$/init.mp4'
},
media: '$RepresentationID$/$Bandwidth$/$Number%03d$-$Time%05d$.mp4',
periodIndex: 1,
// 6 second period should mean a single 6 second segment
periodDuration: 6,
baseUrl: 'https://example.com/',
type: 'static',
periodStart: 0
};
const segments = [
{
duration: 6,
map: {
resolvedUri: 'https://example.com/Rep1/100/init.mp4',
uri: 'Rep1/100/init.mp4'
},
resolvedUri: 'https://example.com/Rep1/100/000-00000.mp4',
timeline: 1,
uri: 'Rep1/100/000-00000.mp4',
number: 0,
presentationTime: 0
}
];
assert.deepEqual(
segmentsFromTemplate(attributes, void 0), segments,
'creates segments from template'
);
});
|
/* eslint-disable prettier/prettier */
import { click, render } from '@ember/test-helpers';
import { module, test, skip } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setProperties, set } from '@ember/object';
import hbs from 'htmlbars-inline-precompile';
import sinon from 'sinon';
module('Integration | Component | es button', function(hooks){
setupRenderingTest(hooks);
test('it renders', async function(assert) {
await render(hbs`{{es-button}}`);
assert.dom(this.element).hasText('');
await render(hbs`
{{#es-button}}
template block text
{{/es-button}}
`);
assert.dom(this.element).hasText('template block text');
});
test('has html button tag and base class', async function(assert) {
await render(hbs`{{es-button}}`);
assert.dom('button').exists('has button tag');
assert.ok(document.querySelector('.es-button'), 'has base es-button class');
});
test('can display set label', async function(assert) {
const label = 'Button Label';
setProperties(this, { label });
await render(hbs`
{{es-button
label=this.label
}}
`);
assert.dom(this.element).hasText(label, 'displays button label');
});
test('calls closure function when clicked', async function(assert) {
const onClicked = sinon.spy();
setProperties(this, { onClicked });
await render(hbs`{{es-button onClicked=this.onClicked}}`);
await click('button');
assert.ok(onClicked.calledOnce, 'onClicked called');
});
skip('can disable button', async function(assert) {
const disabled = false;
setProperties(this, { disabled});
await render(hbs`{{es-button isDisabled=true}}`);
assert.dom('.es-button').hasAttribute('disabled');
});
skip('displays set data-role', async function(assert) {
const dataRole = 'some-data-role';
setProperties(this, { dataRole });
await render(hbs`{{es-button}}`);
assert.dom('.es-button').hasAttribute('data-role');
});
test('does not render aria-pressed unless set', async function(assert) {
const ariaPressed = 'false';
setProperties(this, { ariaPressed });
await render(hbs`<EsButton />`);
assert.dom('.es-button').doesNotHaveAttribute('aria-pressed')
set(this, 'ariaPressed', null);
await render(hbs`<EsButton aria-pressed="true" />`);
assert.dom('.es-button').hasAttribute('aria-pressed', 'true')
});
});
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _constants = require("./constants.js");
var _defaultProps = _interopRequireDefault(require("./default-props.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var defaultStateReducer = function defaultStateReducer(type, nextState) {
return nextState;
};
var StatefulPhoneInputContainer =
/*#__PURE__*/
function (_React$Component) {
_inherits(StatefulPhoneInputContainer, _React$Component);
function StatefulPhoneInputContainer() {
var _getPrototypeOf2;
var _this;
_classCallCheck(this, StatefulPhoneInputContainer);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StatefulPhoneInputContainer)).call.apply(_getPrototypeOf2, [this].concat(args)));
_defineProperty(_assertThisInitialized(_this), "state", _objectSpread({
text: '',
country: _constants.COUNTRIES.US
}, _this.props.initialState));
_defineProperty(_assertThisInitialized(_this), "internalSetState", function (type, nextState) {
_this.setState(_this.props.stateReducer(type, nextState, _this.state));
});
_defineProperty(_assertThisInitialized(_this), "onTextChange", function (event) {
_this.props.onTextChange(event);
_this.internalSetState(_constants.STATE_CHANGE_TYPE.textChange, {
text: event.target.value
});
});
_defineProperty(_assertThisInitialized(_this), "onCountryChange", function (event) {
_this.props.onCountryChange(event);
if (event.option && event.option.id) {
_this.internalSetState(_constants.STATE_CHANGE_TYPE.countryChange, {
country: _constants.COUNTRIES[event.option.id]
});
}
});
return _this;
}
_createClass(StatefulPhoneInputContainer, [{
key: "render",
value: function render() {
return this.props.children(_objectSpread({}, _defaultProps.default, {
'aria-label': this.props['aria-label'],
'aria-labelledby': this.props['aria-labelledby'],
'aria-describedby': this.props['aria-describedby'],
disabled: this.props.disabled,
error: this.props.error,
id: this.props.id,
maxDropdownHeight: this.props.maxDropdownHeight,
maxDropdownWidth: this.props.maxDropdownWidth,
mapIsoToLabel: this.props.mapIsoToLabel,
name: this.props.name,
overrides: this.props.overrides,
placeholder: this.props.placeholder,
positive: this.props.positive,
required: this.props.required,
size: this.props.size,
clearable: this.props.clearable,
country: this.state.country,
text: this.state.text,
onTextChange: this.onTextChange,
onCountryChange: this.onCountryChange
}));
}
}]);
return StatefulPhoneInputContainer;
}(_react.default.Component);
exports.default = StatefulPhoneInputContainer;
_defineProperty(StatefulPhoneInputContainer, "defaultProps", {
initialState: {
text: _defaultProps.default.text,
country: _defaultProps.default.country
},
onTextChange: _defaultProps.default.onTextChange,
onCountryChange: _defaultProps.default.onTextChange,
stateReducer: defaultStateReducer,
overrides: {}
});
|
// @flow
import React, { useState } from "react";
import Modal from "~/renderer/components/Modal";
import SwapBody from "~/renderer/modals/Swap/SwapBody";
const Swap = () => {
const [stepId, setStepId] = useState("summary");
const isModalLocked = ["device"].includes(stepId);
return (
<Modal
name="MODAL_SWAP"
centered
preventBackdropClick={isModalLocked}
render={({ data, onClose }) => (
<SwapBody
swap={data.swap}
transaction={data.transaction}
ratesExpiration={data.ratesExpiration}
onCompleteSwap={data.onCompleteSwap}
onStepChange={setStepId}
activeStep={stepId}
onClose={onClose}
/>
)}
/>
);
};
export default Swap;
|
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { FocusMonitor } from '@angular/cdk/a11y';
import { ENTER, LEFT_ARROW, RIGHT_ARROW, SPACE } from '@angular/cdk/keycodes';
import { forwardRef, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewChild, ViewEncapsulation } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { InputBoolean } from '../core/util/convert';
var NzSwitchComponent = /** @class */ (function () {
function NzSwitchComponent(cdr, focusMonitor) {
this.cdr = cdr;
this.focusMonitor = focusMonitor;
this.checked = false;
this.onChange = (/**
* @return {?}
*/
function () { return null; });
this.onTouched = (/**
* @return {?}
*/
function () { return null; });
this.nzLoading = false;
this.nzDisabled = false;
this.nzControl = false;
}
/**
* @param {?} e
* @return {?}
*/
NzSwitchComponent.prototype.hostClick = /**
* @param {?} e
* @return {?}
*/
function (e) {
e.preventDefault();
if (!this.nzDisabled && !this.nzLoading && !this.nzControl) {
this.updateValue(!this.checked);
}
};
/**
* @param {?} value
* @return {?}
*/
NzSwitchComponent.prototype.updateValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
if (this.checked !== value) {
this.checked = value;
this.onChange(this.checked);
}
};
/**
* @param {?} e
* @return {?}
*/
NzSwitchComponent.prototype.onKeyDown = /**
* @param {?} e
* @return {?}
*/
function (e) {
if (!this.nzControl && !this.nzDisabled && !this.nzLoading) {
if (e.keyCode === LEFT_ARROW) {
this.updateValue(false);
e.preventDefault();
}
else if (e.keyCode === RIGHT_ARROW) {
this.updateValue(true);
e.preventDefault();
}
else if (e.keyCode === SPACE || e.keyCode === ENTER) {
this.updateValue(!this.checked);
e.preventDefault();
}
}
};
/**
* @return {?}
*/
NzSwitchComponent.prototype.focus = /**
* @return {?}
*/
function () {
this.focusMonitor.focusVia(this.switchElement.nativeElement, 'keyboard');
};
/**
* @return {?}
*/
NzSwitchComponent.prototype.blur = /**
* @return {?}
*/
function () {
this.switchElement.nativeElement.blur();
};
/**
* @return {?}
*/
NzSwitchComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
var _this = this;
this.focusMonitor.monitor(this.switchElement.nativeElement, true).subscribe((/**
* @param {?} focusOrigin
* @return {?}
*/
function (focusOrigin) {
if (!focusOrigin) {
// When a focused element becomes disabled, the browser *immediately* fires a blur event.
// Angular does not expect events to be raised during change detection, so any state change
// (such as a form control's 'ng-touched') will cause a changed-after-checked error.
// See https://github.com/angular/angular/issues/17793. To work around this, we defer
// telling the form control it has been touched until the next tick.
Promise.resolve().then((/**
* @return {?}
*/
function () { return _this.onTouched(); }));
}
}));
};
/**
* @param {?} value
* @return {?}
*/
NzSwitchComponent.prototype.writeValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
this.checked = value;
this.cdr.markForCheck();
};
/**
* @param {?} fn
* @return {?}
*/
NzSwitchComponent.prototype.registerOnChange = /**
* @param {?} fn
* @return {?}
*/
function (fn) {
this.onChange = fn;
};
/**
* @param {?} fn
* @return {?}
*/
NzSwitchComponent.prototype.registerOnTouched = /**
* @param {?} fn
* @return {?}
*/
function (fn) {
this.onTouched = fn;
};
/**
* @param {?} isDisabled
* @return {?}
*/
NzSwitchComponent.prototype.setDisabledState = /**
* @param {?} isDisabled
* @return {?}
*/
function (isDisabled) {
this.nzDisabled = isDisabled;
this.cdr.markForCheck();
};
NzSwitchComponent.decorators = [
{ type: Component, args: [{
selector: 'nz-switch',
preserveWhitespaces: false,
template: "<button type=\"button\" #switchElement\n nz-wave\n class=\"ant-switch\"\n [disabled]=\"nzDisabled\"\n [class.ant-switch-checked]=\"checked\"\n [class.ant-switch-loading]=\"nzLoading\"\n [class.ant-switch-disabled]=\"nzDisabled\"\n [class.ant-switch-small]=\"nzSize === 'small'\"\n [nzWaveExtraNode]=\"true\"\n (keydown)=\"onKeyDown($event)\">\n <i *ngIf=\"nzLoading\" nz-icon type=\"loading\" class=\"ant-switch-loading-icon\"></i>\n <span class=\"ant-switch-inner\">\n <span>\n <ng-container *ngIf=\"checked\">\n <ng-container *nzStringTemplateOutlet=\"nzCheckedChildren\">{{ nzCheckedChildren }}</ng-container>\n </ng-container>\n <ng-container *ngIf=\"!checked\">\n <ng-container *nzStringTemplateOutlet=\"nzUnCheckedChildren\">{{ nzUnCheckedChildren }}</ng-container>\n </ng-container>\n </span>\n </span>\n</button>",
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
function () { return NzSwitchComponent; })),
multi: true
}
],
host: {
'(click)': 'hostClick($event)'
},
styles: ["\n nz-switch {\n display: inline-block;\n }"]
}] }
];
/** @nocollapse */
NzSwitchComponent.ctorParameters = function () { return [
{ type: ChangeDetectorRef },
{ type: FocusMonitor }
]; };
NzSwitchComponent.propDecorators = {
switchElement: [{ type: ViewChild, args: ['switchElement',] }],
nzLoading: [{ type: Input }],
nzDisabled: [{ type: Input }],
nzControl: [{ type: Input }],
nzCheckedChildren: [{ type: Input }],
nzUnCheckedChildren: [{ type: Input }],
nzSize: [{ type: Input }]
};
tslib_1.__decorate([
InputBoolean(),
tslib_1.__metadata("design:type", Object)
], NzSwitchComponent.prototype, "nzLoading", void 0);
tslib_1.__decorate([
InputBoolean(),
tslib_1.__metadata("design:type", Object)
], NzSwitchComponent.prototype, "nzDisabled", void 0);
tslib_1.__decorate([
InputBoolean(),
tslib_1.__metadata("design:type", Object)
], NzSwitchComponent.prototype, "nzControl", void 0);
return NzSwitchComponent;
}());
export { NzSwitchComponent };
if (false) {
/** @type {?} */
NzSwitchComponent.prototype.checked;
/** @type {?} */
NzSwitchComponent.prototype.onChange;
/** @type {?} */
NzSwitchComponent.prototype.onTouched;
/**
* @type {?}
* @private
*/
NzSwitchComponent.prototype.switchElement;
/** @type {?} */
NzSwitchComponent.prototype.nzLoading;
/** @type {?} */
NzSwitchComponent.prototype.nzDisabled;
/** @type {?} */
NzSwitchComponent.prototype.nzControl;
/** @type {?} */
NzSwitchComponent.prototype.nzCheckedChildren;
/** @type {?} */
NzSwitchComponent.prototype.nzUnCheckedChildren;
/** @type {?} */
NzSwitchComponent.prototype.nzSize;
/**
* @type {?}
* @private
*/
NzSwitchComponent.prototype.cdr;
/**
* @type {?}
* @private
*/
NzSwitchComponent.prototype.focusMonitor;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotc3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQvIiwic291cmNlcyI6WyJzd2l0Y2gvbnotc3dpdGNoLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsS0FBSyxFQUFFLFVBQVUsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDOUUsT0FBTyxFQUNMLFVBQVUsRUFFVix1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUVMLFNBQVMsRUFDVCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBR3pFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUVwRDtJQXVFRSwyQkFBb0IsR0FBc0IsRUFBVSxZQUEwQjtRQUExRCxRQUFHLEdBQUgsR0FBRyxDQUFtQjtRQUFVLGlCQUFZLEdBQVosWUFBWSxDQUFjO1FBaEQ5RSxZQUFPLEdBQUcsS0FBSyxDQUFDO1FBQ2hCLGFBQVE7OztRQUE2QixjQUFNLE9BQUEsSUFBSSxFQUFKLENBQUksRUFBQztRQUNoRCxjQUFTOzs7UUFBZSxjQUFNLE9BQUEsSUFBSSxFQUFKLENBQUksRUFBQztRQUVWLGNBQVMsR0FBRyxLQUFLLENBQUM7UUFDbEIsZUFBVSxHQUFHLEtBQUssQ0FBQztRQUNuQixjQUFTLEdBQUcsS0FBSyxDQUFDO0lBMkMzQyxDQUFDOzs7OztJQXRDRCxxQ0FBUzs7OztJQUFULFVBQVUsQ0FBYTtRQUNyQixDQUFDLENBQUMsY0FBYyxFQUFFLENBQUM7UUFDbkIsSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRTtZQUMxRCxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1NBQ2pDO0lBQ0gsQ0FBQzs7Ozs7SUFFRCx1Q0FBVzs7OztJQUFYLFVBQVksS0FBYztRQUN4QixJQUFJLElBQUksQ0FBQyxPQUFPLEtBQUssS0FBSyxFQUFFO1lBQzFCLElBQUksQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFDO1lBQ3JCLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1NBQzdCO0lBQ0gsQ0FBQzs7Ozs7SUFFRCxxQ0FBUzs7OztJQUFULFVBQVUsQ0FBZ0I7UUFDeEIsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRTtZQUMxRCxJQUFJLENBQUMsQ0FBQyxPQUFPLEtBQUssVUFBVSxFQUFFO2dCQUM1QixJQUFJLENBQUMsV0FBVyxDQUFDLEtBQUssQ0FBQyxDQUFDO2dCQUN4QixDQUFDLENBQUMsY0FBYyxFQUFFLENBQUM7YUFDcEI7aUJBQU0sSUFBSSxDQUFDLENBQUMsT0FBTyxLQUFLLFdBQVcsRUFBRTtnQkFDcEMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsQ0FBQztnQkFDdkIsQ0FBQyxDQUFDLGNBQWMsRUFBRSxDQUFDO2FBQ3BCO2lCQUFNLElBQUksQ0FBQyxDQUFDLE9BQU8sS0FBSyxLQUFLLElBQUksQ0FBQyxDQUFDLE9BQU8sS0FBSyxLQUFLLEVBQUU7Z0JBQ3JELElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7Z0JBQ2hDLENBQUMsQ0FBQyxjQUFjLEVBQUUsQ0FBQzthQUNwQjtTQUNGO0lBQ0gsQ0FBQzs7OztJQUVELGlDQUFLOzs7SUFBTDtRQUNFLElBQUksQ0FBQyxZQUFZLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsYUFBYSxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBQzNFLENBQUM7Ozs7SUFFRCxnQ0FBSTs7O0lBQUo7UUFDRSxJQUFJLENBQUMsYUFBYSxDQUFDLGFBQWEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUMxQyxDQUFDOzs7O0lBS0QsMkNBQWU7OztJQUFmO1FBQUEsaUJBV0M7UUFWQyxJQUFJLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLGFBQWEsRUFBRSxJQUFJLENBQUMsQ0FBQyxTQUFTOzs7O1FBQUMsVUFBQSxXQUFXO1lBQ3JGLElBQUksQ0FBQyxXQUFXLEVBQUU7Z0JBQ2hCLHlGQUF5RjtnQkFDekYsMkZBQTJGO2dCQUMzRixvRkFBb0Y7Z0JBQ3BGLHFGQUFxRjtnQkFDckYsb0VBQW9FO2dCQUNwRSxPQUFPLENBQUMsT0FBTyxFQUFFLENBQUMsSUFBSTs7O2dCQUFDLGNBQU0sT0FBQSxLQUFJLENBQUMsU0FBUyxFQUFFLEVBQWhCLENBQWdCLEVBQUMsQ0FBQzthQUNoRDtRQUNILENBQUMsRUFBQyxDQUFDO0lBQ0wsQ0FBQzs7Ozs7SUFFRCxzQ0FBVTs7OztJQUFWLFVBQVcsS0FBYztRQUN2QixJQUFJLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQztRQUNyQixJQUFJLENBQUMsR0FBRyxDQUFDLFlBQVksRUFBRSxDQUFDO0lBQzFCLENBQUM7Ozs7O0lBRUQsNENBQWdCOzs7O0lBQWhCLFVBQWlCLEVBQXdCO1FBQ3ZDLElBQUksQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0lBQ3JCLENBQUM7Ozs7O0lBRUQsNkNBQWlCOzs7O0lBQWpCLFVBQWtCLEVBQWM7UUFDOUIsSUFBSSxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUM7SUFDdEIsQ0FBQzs7Ozs7SUFFRCw0Q0FBZ0I7Ozs7SUFBaEIsVUFBaUIsVUFBbUI7UUFDbEMsSUFBSSxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUM7UUFDN0IsSUFBSSxDQUFDLEdBQUcsQ0FBQyxZQUFZLEVBQUUsQ0FBQztJQUMxQixDQUFDOztnQkF2R0YsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBYSxXQUFXO29CQUNoQyxtQkFBbUIsRUFBRSxLQUFLO29CQUMxQixvM0JBQWlEO29CQUNqRCxlQUFlLEVBQU0sdUJBQXVCLENBQUMsTUFBTTtvQkFDbkQsYUFBYSxFQUFRLGlCQUFpQixDQUFDLElBQUk7b0JBQzNDLFNBQVMsRUFBWTt3QkFDbkI7NEJBQ0UsT0FBTyxFQUFNLGlCQUFpQjs0QkFDOUIsV0FBVyxFQUFFLFVBQVU7Ozs0QkFBQyxjQUFNLE9BQUEsaUJBQWlCLEVBQWpCLENBQWlCLEVBQUM7NEJBQ2hELEtBQUssRUFBUSxJQUFJO3lCQUNsQjtxQkFDRjtvQkFDRCxJQUFJLEVBQWlCO3dCQUNuQixTQUFTLEVBQUUsbUJBQW1CO3FCQUMvQjs2QkFDc0Isd0RBR25CO2lCQUVMOzs7O2dCQWxDQyxpQkFBaUI7Z0JBTlYsWUFBWTs7O2dDQTZDbEIsU0FBUyxTQUFDLGVBQWU7NEJBQ3pCLEtBQUs7NkJBQ0wsS0FBSzs0QkFDTCxLQUFLO29DQUNMLEtBQUs7c0NBQ0wsS0FBSzt5QkFDTCxLQUFLOztJQUxtQjtRQUFmLFlBQVksRUFBRTs7d0RBQW1CO0lBQ2xCO1FBQWYsWUFBWSxFQUFFOzt5REFBb0I7SUFDbkI7UUFBZixZQUFZLEVBQUU7O3dEQUFtQjtJQTJFN0Msd0JBQUM7Q0FBQSxBQXhHRCxJQXdHQztTQWxGWSxpQkFBaUI7OztJQUM1QixvQ0FBZ0I7O0lBQ2hCLHFDQUFnRDs7SUFDaEQsc0NBQW1DOzs7OztJQUNuQywwQ0FBOEQ7O0lBQzlELHNDQUEyQzs7SUFDM0MsdUNBQTRDOztJQUM1QyxzQ0FBMkM7O0lBQzNDLDhDQUF1RDs7SUFDdkQsZ0RBQXlEOztJQUN6RCxtQ0FBOEI7Ozs7O0lBdUNsQixnQ0FBOEI7Ozs7O0lBQUUseUNBQWtDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRm9jdXNNb25pdG9yIH0gZnJvbSAnQGFuZ3VsYXIvY2RrL2ExMXknO1xuaW1wb3J0IHsgRU5URVIsIExFRlRfQVJST1csIFJJR0hUX0FSUk9XLCBTUEFDRSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9rZXljb2Rlcyc7XG5pbXBvcnQge1xuICBmb3J3YXJkUmVmLFxuICBBZnRlclZpZXdJbml0LFxuICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSxcbiAgQ2hhbmdlRGV0ZWN0b3JSZWYsXG4gIENvbXBvbmVudCxcbiAgRWxlbWVudFJlZixcbiAgSW5wdXQsXG4gIFRlbXBsYXRlUmVmLFxuICBWaWV3Q2hpbGQsXG4gIFZpZXdFbmNhcHN1bGF0aW9uXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29udHJvbFZhbHVlQWNjZXNzb3IsIE5HX1ZBTFVFX0FDQ0VTU09SIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuaW1wb3J0IHsgTnpTaXplRFNUeXBlIH0gZnJvbSAnLi4vY29yZS90eXBlcy9zaXplJztcblxuaW1wb3J0IHsgSW5wdXRCb29sZWFuIH0gZnJvbSAnLi4vY29yZS91dGlsL2NvbnZlcnQnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3IgICAgICAgICAgIDogJ256LXN3aXRjaCcsXG4gIHByZXNlcnZlV2hpdGVzcGFjZXM6IGZhbHNlLFxuICB0ZW1wbGF0ZVVybCAgICAgICAgOiAnLi9uei1zd2l0Y2guY29tcG9uZW50Lmh0bWwnLFxuICBjaGFuZ2VEZXRlY3Rpb24gICAgOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gIGVuY2Fwc3VsYXRpb24gICAgICA6IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmUsXG4gIHByb3ZpZGVycyAgICAgICAgICA6IFtcbiAgICB7XG4gICAgICBwcm92aWRlICAgIDogTkdfVkFMVUVfQUNDRVNTT1IsXG4gICAgICB1c2VFeGlzdGluZzogZm9yd2FyZFJlZigoKSA9PiBOelN3aXRjaENvbXBvbmVudCksXG4gICAgICBtdWx0aSAgICAgIDogdHJ1ZVxuICAgIH1cbiAgXSxcbiAgaG9zdCAgICAgICAgICAgICAgIDoge1xuICAgICcoY2xpY2spJzogJ2hvc3RDbGljaygkZXZlbnQpJ1xuICB9LFxuICBzdHlsZXMgICAgICAgICAgICAgOiBbIGBcbiAgICBuei1zd2l0Y2gge1xuICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIH1gXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTnpTd2l0Y2hDb21wb25lbnQgaW1wbGVtZW50cyBDb250cm9sVmFsdWVBY2Nlc3NvciwgQWZ0ZXJWaWV3SW5pdCB7XG4gIGNoZWNrZWQgPSBmYWxzZTtcbiAgb25DaGFuZ2U6ICh2YWx1ZTogYm9vbGVhbikgPT4gdm9pZCA9ICgpID0+IG51bGw7XG4gIG9uVG91Y2hlZDogKCkgPT4gdm9pZCA9ICgpID0+IG51bGw7XG4gIEBWaWV3Q2hpbGQoJ3N3aXRjaEVsZW1lbnQnKSBwcml2YXRlIHN3aXRjaEVsZW1lbnQ6IEVsZW1lbnRSZWY7XG4gIEBJbnB1dCgpIEBJbnB1dEJvb2xlYW4oKSBuekxvYWRpbmcgPSBmYWxzZTtcbiAgQElucHV0KCkgQElucHV0Qm9vbGVhbigpIG56RGlzYWJsZWQgPSBmYWxzZTtcbiAgQElucHV0KCkgQElucHV0Qm9vbGVhbigpIG56Q29udHJvbCA9IGZhbHNlO1xuICBASW5wdXQoKSBuekNoZWNrZWRDaGlsZHJlbjogc3RyaW5nIHwgVGVtcGxhdGVSZWY8dm9pZD47XG4gIEBJbnB1dCgpIG56VW5DaGVja2VkQ2hpbGRyZW46IHN0cmluZyB8IFRlbXBsYXRlUmVmPHZvaWQ+O1xuICBASW5wdXQoKSBuelNpemU6IE56U2l6ZURTVHlwZTtcblxuICBob3N0Q2xpY2soZTogTW91c2VFdmVudCk6IHZvaWQge1xuICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICBpZiAoIXRoaXMubnpEaXNhYmxlZCAmJiAhdGhpcy5uekxvYWRpbmcgJiYgIXRoaXMubnpDb250cm9sKSB7XG4gICAgICB0aGlzLnVwZGF0ZVZhbHVlKCF0aGlzLmNoZWNrZWQpO1xuICAgIH1cbiAgfVxuXG4gIHVwZGF0ZVZhbHVlKHZhbHVlOiBib29sZWFuKTogdm9pZCB7XG4gICAgaWYgKHRoaXMuY2hlY2tlZCAhPT0gdmFsdWUpIHtcbiAgICAgIHRoaXMuY2hlY2tlZCA9IHZhbHVlO1xuICAgICAgdGhpcy5vbkNoYW5nZSh0aGlzLmNoZWNrZWQpO1xuICAgIH1cbiAgfVxuXG4gIG9uS2V5RG93bihlOiBLZXlib2FyZEV2ZW50KTogdm9pZCB7XG4gICAgaWYgKCF0aGlzLm56Q29udHJvbCAmJiAhdGhpcy5uekRpc2FibGVkICYmICF0aGlzLm56TG9hZGluZykge1xuICAgICAgaWYgKGUua2V5Q29kZSA9PT0gTEVGVF9BUlJPVykge1xuICAgICAgICB0aGlzLnVwZGF0ZVZhbHVlKGZhbHNlKTtcbiAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgfSBlbHNlIGlmIChlLmtleUNvZGUgPT09IFJJR0hUX0FSUk9XKSB7XG4gICAgICAgIHRoaXMudXBkYXRlVmFsdWUodHJ1ZSk7XG4gICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH0gZWxzZSBpZiAoZS5rZXlDb2RlID09PSBTUEFDRSB8fCBlLmtleUNvZGUgPT09IEVOVEVSKSB7XG4gICAgICAgIHRoaXMudXBkYXRlVmFsdWUoIXRoaXMuY2hlY2tlZCk7XG4gICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBmb2N1cygpOiB2b2lkIHtcbiAgICB0aGlzLmZvY3VzTW9uaXRvci5mb2N1c1ZpYSh0aGlzLnN3aXRjaEVsZW1lbnQubmF0aXZlRWxlbWVudCwgJ2tleWJvYXJkJyk7XG4gIH1cblxuICBibHVyKCk6IHZvaWQge1xuICAgIHRoaXMuc3dpdGNoRWxlbWVudC5uYXRpdmVFbGVtZW50LmJsdXIoKTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgY2RyOiBDaGFuZ2VEZXRlY3RvclJlZiwgcHJpdmF0ZSBmb2N1c01vbml0b3I6IEZvY3VzTW9uaXRvcikge1xuICB9XG5cbiAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICAgIHRoaXMuZm9jdXNNb25pdG9yLm1vbml0b3IodGhpcy5zd2l0Y2hFbGVtZW50Lm5hdGl2ZUVsZW1lbnQsIHRydWUpLnN1YnNjcmliZShmb2N1c09yaWdpbiA9PiB7XG4gICAgICBpZiAoIWZvY3VzT3JpZ2luKSB7XG4gICAgICAgIC8vIFdoZW4gYSBmb2N1c2VkIGVsZW1lbnQgYmVjb21lcyBkaXNhYmxlZCwgdGhlIGJyb3dzZXIgKmltbWVkaWF0ZWx5KiBmaXJlcyBhIGJsdXIgZXZlbnQuXG4gICAgICAgIC8vIEFuZ3VsYXIgZG9lcyBub3QgZXhwZWN0IGV2ZW50cyB0byBiZSByYWlzZWQgZHVyaW5nIGNoYW5nZSBkZXRlY3Rpb24sIHNvIGFueSBzdGF0ZSBjaGFuZ2VcbiAgICAgICAgLy8gKHN1Y2ggYXMgYSBmb3JtIGNvbnRyb2wncyAnbmctdG91Y2hlZCcpIHdpbGwgY2F1c2UgYSBjaGFuZ2VkLWFmdGVyLWNoZWNrZWQgZXJyb3IuXG4gICAgICAgIC8vIFNlZSBodHRwczovL2dpdGh1Yi5jb20vYW5ndWxhci9hbmd1bGFyL2lzc3Vlcy8xNzc5My4gVG8gd29yayBhcm91bmQgdGhpcywgd2UgZGVmZXJcbiAgICAgICAgLy8gdGVsbGluZyB0aGUgZm9ybSBjb250cm9sIGl0IGhhcyBiZWVuIHRvdWNoZWQgdW50aWwgdGhlIG5leHQgdGljay5cbiAgICAgICAgUHJvbWlzZS5yZXNvbHZlKCkudGhlbigoKSA9PiB0aGlzLm9uVG91Y2hlZCgpKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIHdyaXRlVmFsdWUodmFsdWU6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICB0aGlzLmNoZWNrZWQgPSB2YWx1ZTtcbiAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgfVxuXG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBib29sZWFuKSA9PiB2b2lkKTogdm9pZCB7XG4gICAgdGhpcy5vbkNoYW5nZSA9IGZuO1xuICB9XG5cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+IHZvaWQpOiB2b2lkIHtcbiAgICB0aGlzLm9uVG91Y2hlZCA9IGZuO1xuICB9XG5cbiAgc2V0RGlzYWJsZWRTdGF0ZShpc0Rpc2FibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgdGhpcy5uekRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgfVxufVxuIl19
|
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
const propTypes = {
orgID: PropTypes.string.isRequired,
email: PropTypes.string.isRequired,
contactEmail: PropTypes.string.isRequired,
updateContactEmail: PropTypes.func.isRequired,
toggleDialog: PropTypes.func.isRequired
};
class SetOrgUserContactEmail extends React.Component {
constructor(props) {
super(props);
this.state = {
inputValue: this.props.contactEmail,
submitBtnDisabled: false
};
}
handleInputChange = (e) => {
this.setState({
inputValue: e.target.value
});
}
formSubmit = () => {
const { orgID, email } = this.props;
const contactEmail = this.state.inputValue.trim();
this.setState({
submitBtnDisabled: true
});
seafileAPI.orgAdminSetOrgUserContactEmail(orgID, email, contactEmail).then((res) => {
const newContactEmail = contactEmail ? res.data.contact_email : '';
this.props.updateContactEmail(newContactEmail);
this.props.toggleDialog();
}).catch((error) => {
let errorMsg = Utils.getErrorMsg(error);
this.setState({
formErrorMsg: errorMsg,
submitBtnDisabled: false
});
});
}
render() {
const { inputValue, formErrorMsg, submitBtnDisabled } = this.state;
return (
<Modal isOpen={true} centered={true} toggle={this.props.toggleDialog}>
<ModalHeader toggle={this.props.toggleDialog}>{gettext('Set user contact email')}</ModalHeader>
<ModalBody>
<React.Fragment>
<input type="text" className="form-control" value={inputValue} onChange={this.handleInputChange} />
{formErrorMsg && <p className="error m-0 mt-2">{formErrorMsg}</p>}
</React.Fragment>
</ModalBody>
<ModalFooter>
<button className="btn btn-secondary" onClick={this.props.toggleDialog}>{gettext('Cancel')}</button>
<button className="btn btn-primary" disabled={submitBtnDisabled} onClick={this.formSubmit}>{gettext('Submit')}</button>
</ModalFooter>
</Modal>
);
}
}
SetOrgUserContactEmail.propTypes = propTypes;
export default SetOrgUserContactEmail;
|
//
// Bank Account
// bankAccount.js
//
// Created by Dulio Denis on 10/17/15.
// Copyright (c) 2015 ddApps. All rights reserved.
// ------------------------------------------------
//
// Array of Accounts
var accounts = [];
// Creates an account and adds it to the array of accounts
// Returns: an account object
var createAccount = function(account) {
accounts.push(account);
return account;
}
// Finds matching accounts using a forEach on the array of accounts
var getAccount = function(username) {
var matchingAccounts = [];
for (var i=0; i < accounts.length; i++) {
if (username === accounts[i].username) matchingAccounts.push(accounts[i]);
}
return matchingAccounts;
}
var deposit = function(account, amount) {
if (typeof amount === 'number') {
console.log("Deposit of " + amount);
account.balance += amount;
} else {
console.log('Deposit failed. Amount is not a number.')
}
}
var withdrawal = function(account, amount) {
if (typeof amount === 'number') {
console.log("Withdrawal of " + amount);
account.balance -= amount;
} else {
console.log('Withdrawal failed. Amount is not a number.')
}
}
var getBalance = function(account) {
return account.balance;
}
var printBalance = function(account) {
console.log("Current Balance: " + getBalance(account));
}
// createBalanceGetter(account) using a closure
// return function() returns account.balance
var createBalanceGetter = function(account) {
return function() {
return account.balance;
}
}
// Bank Test Run: create an 'A' and 'B' account, deposit $10 into 'A', Withdraw $5 from 'B'. Result = A($10), B(-$5).
// deposit 100 into Account A and use the createBalanceGetter closure function.
var AAccount = createAccount({
balance: 0,
username: "A"
});
var BAccount = createAccount({
balance: 0,
username: "B"
});
var account = getAccount("A");
console.log("Matches = " + account.length);
deposit(account[0], 100);
var getABalance = createBalanceGetter(account[0]);
console.log("Account Balance: " + getABalance());
printBalance(AAccount);
deposit(AAccount, 10);
printBalance(AAccount);
withdrawal(BAccount, '5'); // error on type of amount
withdrawal(BAccount, 5);
printBalance(BAccount);
|
/*
* /MathJax-v2/jax/output/SVG/fonts/TeX/Main/Bold/GreekAndCoptic.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.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Main-bold"],{915:[680,0,692,39,643,"425 0L228 3Q63 3 51 0H39V62H147V618H39V680H612V676Q614 670 627 552T643 428V424H581V428Q580 430 576 461T562 524T532 576Q512 596 481 605T426 616T357 618H304V62H439V0H425"],916:[698,0,958,56,901,"901 12Q901 7 892 0H479Q65 0 62 2Q56 6 56 11Q56 14 242 347T433 685Q438 694 450 696Q454 698 480 698H506L523 687Q526 683 711 354T899 17Q901 13 901 12ZM653 137L427 538L202 137L315 136H540L653 137"],920:[696,10,894,64,830,"629 -10T446 -10T164 89T64 340Q64 380 71 420T102 510T163 596T266 662T418 696H438Q488 696 499 695Q582 686 644 655T741 584T796 495T823 409T829 338Q829 188 729 89ZM439 645Q416 645 390 638T333 615T275 564T236 480Q221 423 221 341Q221 272 230 228Q247 144 301 94T447 43T592 93T663 228Q672 272 672 341Q672 645 439 645ZM286 242V446H348V412H545V446H607V242H545V276H348V242H286"],923:[698,0,806,40,765,"285 0Q267 3 154 3Q56 3 47 0H40V62H131Q131 63 167 160T244 369T321 578T359 678Q366 698 393 698H404H413Q437 698 446 678Q448 672 560 369T674 62H765V0H754Q733 3 604 3Q453 3 429 0H416V62H461L507 63L355 470Q353 468 279 265L203 63L249 62H294V0H285"],926:[675,0,767,48,718,"54 465L63 674Q63 675 383 675T703 674L712 465Q712 464 681 464H650V467Q650 490 646 516T632 545Q612 550 383 550H283Q169 550 149 548T124 531Q123 530 123 529Q116 506 116 467V464H85Q54 464 54 465ZM160 256V447H222V414H544V447H606V256H544V289H222V256H160ZM57 0L48 222H110V219Q110 147 125 133Q127 130 130 129T160 127T235 126T383 126Q482 126 530 126T604 127T635 129T641 133Q656 146 656 219V222H718L709 0H57"],928:[680,0,900,39,860,"400 0Q376 3 226 3Q75 3 51 0H39V62H147V618H39V680H860V618H752V62H860V0H848Q824 3 674 3Q523 3 499 0H487V62H595V618H304V62H412V0H400"],931:[686,0,831,64,766,"766 271Q764 266 750 137T735 4V0H407Q74 0 71 4L70 5Q64 9 64 18Q64 24 82 41T213 158L359 288Q360 288 320 336T214 460Q67 633 66 635Q64 638 64 655Q64 679 75 684Q78 686 407 686H735V682Q738 676 751 558T766 434V430H735Q704 430 704 431Q704 434 703 444T696 477T681 520T654 563T613 598Q578 615 527 619T371 624H281L396 489Q506 358 513 351Q517 342 512 334Q503 325 371 208Q338 179 303 147T249 99L231 83L243 81Q258 81 364 81Q382 81 418 81T470 82T513 83T554 88T587 96T619 109T645 129Q689 173 702 260L704 274Q704 275 735 275H766V271"],933:[698,0,894,64,829,"64 556Q69 619 114 658T224 697Q271 697 310 677T375 622T417 554T444 484L447 477V479Q456 516 473 551T516 620T582 676T670 697Q735 697 780 656T829 556Q829 539 818 532H772Q761 539 761 548Q761 571 681 571Q664 571 653 570T623 562T587 537T555 490Q536 448 531 410T525 300V210V62H660V0H646L447 3Q257 1 247 0H233V62H368V210V301Q368 373 363 410T338 490Q324 518 307 536T270 561T240 569T212 571Q132 571 132 548Q132 539 121 532H75Q64 538 64 556"],934:[686,0,831,64,766,"609 0Q582 3 415 3T221 0H207V62H342V168L328 169Q193 180 117 241Q64 286 64 343T117 445Q193 506 328 517L342 518V624H207V686H221Q248 683 415 683T609 686H623V624H488V518L502 517Q637 506 713 445Q766 400 766 343T713 241Q637 180 502 169L488 168V62H623V0H609ZM342 219T342 343T340 467Q328 467 304 459Q277 451 261 439T237 409T228 378T226 343Q226 314 229 296T250 259T301 228Q331 219 341 219Q342 219 342 343ZM604 343Q604 365 602 379T591 413T560 446T503 464L489 467Q488 467 488 343T489 219Q499 219 529 228Q554 236 570 248T593 277T602 308T604 343"],936:[686,0,894,64,829,"64 515Q64 532 71 536T104 540H139Q200 540 207 538Q225 533 236 521T253 489T260 454T264 414Q264 340 287 296T347 237Q369 226 373 226Q374 226 374 425V624H239V686H253Q280 683 447 683T641 686H655V624H520V226L522 227Q525 228 531 229T552 240T580 261T606 298T624 354Q627 368 628 394T631 440T637 482T654 518T686 538Q693 540 754 540H794Q817 540 823 536T829 515Q829 500 824 495T811 489T796 483T782 461T775 408Q767 212 568 175Q526 168 521 168Q520 168 520 115V62H655V0H641Q614 3 447 3T253 0H239V62H374V168L364 169Q290 178 243 203Q126 261 118 409Q117 443 111 461T98 484T83 489T70 495T64 515"],937:[696,1,831,51,779,"598 645T415 645T232 458Q232 385 275 239T318 26Q318 8 311 4T272 -1Q265 -1 240 -1T196 0H88V3Q86 5 70 108Q52 211 51 212V215H113V212Q123 149 132 133Q136 124 149 122T202 118Q241 118 241 119Q241 132 132 277Q64 378 64 457Q64 564 158 630T403 696Q487 696 543 685T661 638Q722 599 744 549T766 458Q766 434 761 410T749 368T729 327T709 293T684 258T663 229Q632 187 614 160T592 126L589 119Q589 118 628 118Q667 119 680 121T698 133Q702 140 706 160T714 196L717 212V215H779V212Q778 211 760 108Q744 5 742 3V0H634H562Q528 0 520 4T512 26Q512 92 555 238T598 458Q598 645 415 645"]});MathJax.Ajax.loadComplete(MathJax.OutputJax.SVG.fontDir+"/Main/Bold/GreekAndCoptic.js");
|
import Experiment from '../../classes/Experiment'
import Bubble from './Bubble'
import colors from '../../data/colors/bubbles.json'
import forEach from '../../library/forEach'
import { random, randomInt } from '../../library/random'
export default class BubblesExperiment extends Experiment {
constructor() {
super('#1b1b1b')
this.x = this.canvas.clientWidth / 2
this.y = this.canvas.clientHeight / 2
this.colors = colors[randomInt(0, colors.length - 1)]
this.bubbles = []
this.update()
}
update() {
super.update()
super.createContext()
this.createBubble()
this.draw()
}
createBubble() {
const radius = 40
const color = this.colors[randomInt(0, this.colors.length - 1)]
const velocityX = random(-2, 2)
const velocityY = random(-2, 2)
const duration = 10
const bubble = new Bubble(this.canvas, this.context, this.x, this.y, velocityX, velocityY, radius, color, duration)
this.bubbles.push(bubble)
}
draw() {
forEach(this.bubbles, (bubble, index) => {
bubble.update()
if (bubble.isExpired()) this.bubbles.splice(index, 1)
})
}
mousemove(event) {
super.mousemove(event)
this.x = event.type.startsWith('mouse') ? event.clientX : event.touches[0].clientX
this.y = event.type.startsWith('mouse') ? event.clientY : event.touches[0].clientY
}
dblclick() {
super.dblclick()
this.colors = colors[randomInt(0, colors.length - 1)]
}
}
|
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you 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.
*/
import React from 'react';
import sinon from 'sinon';
import { render, mount } from 'enzyme';
import { findTestSubject, requiredProps } from '../../test';
import {
KuiPagerButtonGroup,
} from './pager_button_group';
let onNext;
let onPrevious;
beforeEach(() => {
onNext = sinon.spy();
onPrevious = sinon.spy();
});
test('renders KuiPagerButtonGroup', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
{...requiredProps}
/>);
expect(render(component)).toMatchSnapshot();
});
describe('property', () => {
function findPreviousButton(pager) {
return findTestSubject(pager, 'pagerPreviousButton');
}
function findNextButton(pager) {
return findTestSubject(pager, 'pagerNextButton');
}
test('onNext', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
/>);
const pager = mount(component);
findNextButton(pager).simulate('click');
sinon.assert.calledOnce(onNext);
sinon.assert.notCalled(onPrevious);
});
test('onPrevious', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
/>);
const pager = mount(component);
findPreviousButton(pager).simulate('click');
sinon.assert.calledOnce(onPrevious);
sinon.assert.notCalled(onNext);
});
describe('hasNext', () => {
test('is enabled when true', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
/>);
const pager = mount(component);
const isDisabled = findNextButton(pager).prop('disabled');
expect(isDisabled).toBe(false);
});
test('is disabled when false', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={false}
hasPrevious={true}
/>);
const pager = mount(component);
const isDisabled = findNextButton(pager).prop('disabled');
expect(isDisabled).toBe(true);
});
});
describe('hasPrevious', () => {
test('is enabled when true', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
/>);
const pager = mount(component);
const isDisabled = findPreviousButton(pager).prop('disabled');
expect(isDisabled).toBe(false);
});
test('is disabled when false', () => {
const component = (<KuiPagerButtonGroup
onNext={onNext}
onPrevious={onPrevious}
hasNext={true}
hasPrevious={false}
/>);
const pager = mount(component);
const isDisabled = findPreviousButton(pager).prop('disabled');
expect(isDisabled).toBe(true);
});
});
});
|
module.exports = function (sequelize, DataTypes) {
var Post = sequelize.define("Post", {
// image using Cloudinary URL
imageUrl: {
type: DataTypes.STRING,
allowNull: false,
validate: {
isUrl: true,
},
},
// image title (up to 25 characters)
title: {
type: DataTypes.STRING,
allowNull: false,
validate: {
len: [1, 25],
},
},
// color category from user selection
colorCategory: {
type: DataTypes.STRING,
allowNull: false,
},
// links array
postLink: {
type: DataTypes.STRING,
allowNull: true,
},
// description (500 character limit)
description: {
type: DataTypes.TEXT,
allowNull: true,
validate: {
len: [0, 1000],
},
},
// user tags
postTags: {
allowNull: true,
type: DataTypes.STRING,
},
// user-set price
price: {
type: DataTypes.INTEGER,
allowNull: true,
validate: {
isInt: true,
},
},
// number of times other users like a particular post;
// maybe this should be changed to STRING so that we can record which user(s) like the post...
});
Post.associate = function (models) {
// We're saying that a Post should belong to an User
// A Post can't be created without an User due to the foreign key constraint
Post.belongsTo(models.User, {
foreignKey: {
allowNull: false
},
});
Post.hasMany(models.Like);
};
return Post;
};
|
let data = {
"body": "<path d=\"M7.57 20c-1.34 0-2.43-1.09-2.43-2.43c0-1.07 1.18-3.07 2.43-4.76C8.82 14.5 10 16.5 10 17.57A2.43 2.43 0 0 1 7.57 20M12 2A10 10 0 0 0 2 12c0 1.75.45 3.38 1.24 4.81c.16-.81.57-1.74 1.07-2.64A7.69 7.69 0 0 1 4 12a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8c-.24 0-.47 0-.71-.04c-.47.74-1.15 1.32-1.95 1.67c.85.24 1.74.37 2.66.37a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 12c-.41 0-.81.04-1.19.12c.35.63.66 1.28.88 1.88H12c1.25 0 2.32.5 2.77 1.23l1.42-1.42C15.29 14.72 13.75 14 12 14m3.5-6c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5s1.5-.7 1.5-1.5S16.3 8 15.5 8M10 9.5C10 8.7 9.3 8 8.5 8S7 8.7 7 9.5S7.7 11 8.5 11s1.5-.7 1.5-1.5\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export default data;
|
/*!
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.2, built on 2014-09-25 4:01:07 PM
* @author https://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license MIT
*/
if (typeof jQuery === 'undefined') {
throw new Error('BootstrapValidator\'s JavaScript requires jQuery');
}
(function($) {
var BootstrapValidator = function(form, options) {
this.$form = $(form);
this.options = $.extend({}, $.fn.bootstrapValidator.DEFAULT_OPTIONS, options);
this.$invalidFields = $([]); // Array of invalid fields
this.$submitButton = null; // The submit button which is clicked to submit form
this.$hiddenButton = null;
// Validating status
this.STATUS_NOT_VALIDATED = 'NOT_VALIDATED';
this.STATUS_VALIDATING = 'VALIDATING';
this.STATUS_INVALID = 'INVALID';
this.STATUS_VALID = 'VALID';
// Determine the event that is fired when user change the field value
// Most modern browsers supports input event except IE 7, 8.
// IE 9 supports input event but the event is still not fired if I press the backspace key.
// Get IE version
// https://gist.github.com/padolsey/527683/#comment-7595
var ieVersion = (function() {
var v = 3, div = document.createElement('div'), a = div.all || [];
while (div.innerHTML = '<!--[if gt IE '+(++v)+']><br><![endif]-->', a[0]) {}
return v > 4 ? v : !v;
}());
var el = document.createElement('div');
this._changeEvent = (ieVersion === 9 || !('oninput' in el)) ? 'keyup' : 'input';
// The flag to indicate that the form is ready to submit when a remote/callback validator returns
this._submitIfValid = null;
// Field elements
this._cacheFields = {};
this._init();
};
BootstrapValidator.prototype = {
constructor: BootstrapValidator,
/**
* Init form
*/
_init: function() {
var that = this,
options = {
container: this.$form.attr('data-bv-container'),
events: {
formInit: this.$form.attr('data-bv-events-form-init'),
formError: this.$form.attr('data-bv-events-form-error'),
formSuccess: this.$form.attr('data-bv-events-form-success'),
fieldAdded: this.$form.attr('data-bv-events-field-added'),
fieldRemoved: this.$form.attr('data-bv-events-field-removed'),
fieldInit: this.$form.attr('data-bv-events-field-init'),
fieldError: this.$form.attr('data-bv-events-field-error'),
fieldSuccess: this.$form.attr('data-bv-events-field-success'),
fieldStatus: this.$form.attr('data-bv-events-field-status'),
validatorError: this.$form.attr('data-bv-events-validator-error'),
validatorSuccess: this.$form.attr('data-bv-events-validator-success')
},
excluded: this.$form.attr('data-bv-excluded'),
feedbackIcons: {
valid: this.$form.attr('data-bv-feedbackicons-valid'),
invalid: this.$form.attr('data-bv-feedbackicons-invalid'),
validating: this.$form.attr('data-bv-feedbackicons-validating')
},
group: this.$form.attr('data-bv-group'),
live: this.$form.attr('data-bv-live'),
message: this.$form.attr('data-bv-message'),
onError: this.$form.attr('data-bv-onerror'),
onSuccess: this.$form.attr('data-bv-onsuccess'),
submitButtons: this.$form.attr('data-bv-submitbuttons'),
threshold: this.$form.attr('data-bv-threshold'),
trigger: this.$form.attr('data-bv-trigger'),
verbose: this.$form.attr('data-bv-verbose'),
fields: {}
};
this.$form
// Disable client side validation in HTML 5
.attr('novalidate', 'novalidate')
.addClass(this.options.elementClass)
// Disable the default submission first
.on('submit.bv', function(e) {
e.preventDefault();
that.validate();
})
.on('click.bv', this.options.submitButtons, function() {
that.$submitButton = $(this);
// The user just click the submit button
that._submitIfValid = true;
})
// Find all fields which have either "name" or "data-bv-field" attribute
.find('[name], [data-bv-field]')
.each(function() {
var $field = $(this),
field = $field.attr('name') || $field.attr('data-bv-field'),
opts = that._parseOptions($field);
if (opts) {
$field.attr('data-bv-field', field);
options.fields[field] = $.extend({}, opts, options.fields[field]);
}
});
this.options = $.extend(true, this.options, options);
// When pressing Enter on any field in the form, the first submit button will do its job.
// The form then will be submitted.
// I create a first hidden submit button
this.$hiddenButton = $('<button/>')
.attr('type', 'submit')
.prependTo(this.$form)
.addClass('bv-hidden-submit')
.css({ display: 'none', width: 0, height: 0 });
this.$form
.on('click.bv', '[type="submit"]', function(e) {
// #746: Check if the button click handler returns false
if (!e.isDefaultPrevented()) {
var $target = $(e.target),
// The button might contain HTML tag
$button = $target.is('[type="submit"]') ? $target.eq(0) : $target.parent('[type="submit"]').eq(0);
// Don't perform validation when clicking on the submit button/input
// which aren't defined by the 'submitButtons' option
if (that.options.submitButtons && !$button.is(that.options.submitButtons) && !$button.is(that.$hiddenButton)) {
that.$form.off('submit.bv').submit();
}
}
});
for (var field in this.options.fields) {
this._initField(field);
}
this.$form.trigger($.Event(this.options.events.formInit), {
bv: this,
options: this.options
});
// Prepare the events
if (this.options.onSuccess) {
this.$form.on(this.options.events.formSuccess, function(e) {
$.fn.bootstrapValidator.helpers.call(that.options.onSuccess, [e]);
});
}
if (this.options.onError) {
this.$form.on(this.options.events.formError, function(e) {
$.fn.bootstrapValidator.helpers.call(that.options.onError, [e]);
});
}
},
/**
* Parse the validator options from HTML attributes
*
* @param {jQuery} $field The field element
* @returns {Object}
*/
_parseOptions: function($field) {
var field = $field.attr('name') || $field.attr('data-bv-field'),
validators = {},
validator,
v, // Validator name
enabled,
optionName,
optionValue,
html5AttrName,
html5AttrMap;
for (v in $.fn.bootstrapValidator.validators) {
validator = $.fn.bootstrapValidator.validators[v];
enabled = $field.attr('data-bv-' + v.toLowerCase()) + '';
html5AttrMap = ('function' === typeof validator.enableByHtml5) ? validator.enableByHtml5($field) : null;
if ((html5AttrMap && enabled !== 'false')
|| (html5AttrMap !== true && ('' === enabled || 'true' === enabled)))
{
// Try to parse the options via attributes
validator.html5Attributes = $.extend({}, { message: 'message', onerror: 'onError', onsuccess: 'onSuccess' }, validator.html5Attributes);
validators[v] = $.extend({}, html5AttrMap === true ? {} : html5AttrMap, validators[v]);
for (html5AttrName in validator.html5Attributes) {
optionName = validator.html5Attributes[html5AttrName];
optionValue = $field.attr('data-bv-' + v.toLowerCase() + '-' + html5AttrName);
if (optionValue) {
if ('true' === optionValue) {
optionValue = true;
} else if ('false' === optionValue) {
optionValue = false;
}
validators[v][optionName] = optionValue;
}
}
}
}
var opts = {
container: $field.attr('data-bv-container'),
excluded: $field.attr('data-bv-excluded'),
feedbackIcons: $field.attr('data-bv-feedbackicons'),
group: $field.attr('data-bv-group'),
message: $field.attr('data-bv-message'),
onError: $field.attr('data-bv-onerror'),
onStatus: $field.attr('data-bv-onstatus'),
onSuccess: $field.attr('data-bv-onsuccess'),
selector: $field.attr('data-bv-selector'),
threshold: $field.attr('data-bv-threshold'),
trigger: $field.attr('data-bv-trigger'),
verbose: $field.attr('data-bv-verbose'),
validators: validators
},
emptyOptions = $.isEmptyObject(opts), // Check if the field options are set using HTML attributes
emptyValidators = $.isEmptyObject(validators); // Check if the field validators are set using HTML attributes
if (!emptyValidators || (!emptyOptions && this.options.fields && this.options.fields[field])) {
opts.validators = validators;
return opts;
} else {
return null;
}
},
/**
* Init field
*
* @param {String|jQuery} field The field name or field element
*/
_initField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
fields = this.getFieldElements(field);
fields.attr('data-bv-field', field);
break;
default:
break;
}
// We don't need to validate non-existing fields
if (fields.length === 0) {
return;
}
if (this.options.fields[field] === null || this.options.fields[field].validators === null) {
return;
}
var validatorName;
for (validatorName in this.options.fields[field].validators) {
if (!$.fn.bootstrapValidator.validators[validatorName]) {
delete this.options.fields[field].validators[validatorName];
}
}
if (this.options.fields[field].enabled === null) {
this.options.fields[field].enabled = true;
}
var that = this,
total = fields.length,
type = fields.attr('type'),
updateAll = (total === 1) || ('radio' === type) || ('checkbox' === type),
event = ('radio' === type || 'checkbox' === type || 'file' === type || 'SELECT' === fields.eq(0).get(0).tagName) ? 'change' : this._changeEvent,
trigger = (this.options.fields[field].trigger || this.options.trigger || event).split(' '),
events = $.map(trigger, function(item) {
return item + '.update.bv';
}).join(' ');
for (var i = 0; i < total; i++) {
var $field = fields.eq(i),
group = this.options.fields[field].group || this.options.group,
$parent = $field.parents(group),
// Allow user to indicate where the error messages are shown
container = ('function' === typeof (this.options.fields[field].container || this.options.container)) ? (this.options.fields[field].container || this.options.container).call(this, $field, this) : (this.options.fields[field].container || this.options.container),
$message = (container && container !== 'tooltip' && container !== 'popover') ? $(container) : this._getMessageContainer($field, group);
if (container && container !== 'tooltip' && container !== 'popover') {
$message.addClass('has-error');
}
// Remove all error messages and feedback icons
$message.find('.help-block[data-bv-validator][data-bv-for="' + field + '"]').remove();
$parent.find('i[data-bv-icon-for="' + field + '"]').remove();
// Whenever the user change the field value, mark it as not validated yet
$field.off(events).on(events, function() {
that.updateStatus($(this), that.STATUS_NOT_VALIDATED);
});
// Create help block elements for showing the error messages
$field.data('bv.messages', $message);
for (validatorName in this.options.fields[field].validators) {
$field.data('bv.result.' + validatorName, this.STATUS_NOT_VALIDATED);
if (!updateAll || i === total - 1) {
$('<small/>')
.css('display', 'none')
.addClass('help-block')
.attr('data-bv-validator', validatorName)
.attr('data-bv-for', field)
.attr('data-bv-result', this.STATUS_NOT_VALIDATED)
.html(this._getMessage(field, validatorName))
.appendTo($message);
}
// Init the validator
if ('function' === typeof $.fn.bootstrapValidator.validators[validatorName].init) {
$.fn.bootstrapValidator.validators[validatorName].init(this, $field, this.options.fields[field].validators[validatorName]);
}
}
// Prepare the feedback icons
// Available from Bootstrap 3.1 (http://getbootstrap.com/css/#forms-control-validation)
if (this.options.fields[field].feedbackIcons !== false && this.options.fields[field].feedbackIcons !== 'false'
&& this.options.feedbackIcons
&& this.options.feedbackIcons.validating && this.options.feedbackIcons.invalid && this.options.feedbackIcons.valid
&& (!updateAll || i === total - 1))
{
// $parent.removeClass('has-success').removeClass('has-error').addClass('has-feedback');
// Keep error messages which are populated from back-end
$parent.addClass('has-feedback');
var $icon = $('<i/>')
.css('display', 'none')
.addClass('form-control-feedback')
.attr('data-bv-icon-for', field)
.insertAfter($field);
// Place it after the container of checkbox/radio
// so when clicking the icon, it doesn't effect to the checkbox/radio element
if ('checkbox' === type || 'radio' === type) {
var $fieldParent = $field.parent();
if ($fieldParent.hasClass(type)) {
$icon.insertAfter($fieldParent);
} else if ($fieldParent.parent().hasClass(type)) {
$icon.insertAfter($fieldParent.parent());
} else if ($fieldParent.hasClass('lyear-' + type) || $fieldParent.hasClass('lyear-switch')) { // 2019-11-25改
$icon.insertAfter($fieldParent);
}
}
// The feedback icon does not render correctly if there is no label
// https://github.com/twbs/bootstrap/issues/12873
if ($parent.find('label').length === 0) {
$icon.addClass('bv-no-label');
}
// Fix feedback icons in input-group
if ($parent.find('.input-group').length !== 0) {
$icon.addClass('bv-icon-input-group')
.insertAfter($parent.find('.input-group').eq(0));
}
if (container) {
$field
// Show tooltip/popover message when field gets focus
.off('focus.bv')
.on('focus.bv', function() {
switch (container) {
case 'tooltip':
$icon.tooltip('show');
break;
case 'popover':
$icon.popover('show');
break;
default:
break;
}
})
// and hide them when losing focus
.off('blur.bv')
.on('blur.bv', function() {
switch (container) {
case 'tooltip':
$icon.tooltip('hide');
break;
case 'popover':
$icon.popover('hide');
break;
default:
break;
}
});
}
}
}
// Prepare the events
fields
.on(this.options.events.fieldSuccess, function(e, data) {
var onSuccess = that.getOptions(data.field, null, 'onSuccess');
if (onSuccess) {
$.fn.bootstrapValidator.helpers.call(onSuccess, [e, data]);
}
})
.on(this.options.events.fieldError, function(e, data) {
var onError = that.getOptions(data.field, null, 'onError');
if (onError) {
$.fn.bootstrapValidator.helpers.call(onError, [e, data]);
}
})
.on(this.options.events.fieldStatus, function(e, data) {
var onStatus = that.getOptions(data.field, null, 'onStatus');
if (onStatus) {
$.fn.bootstrapValidator.helpers.call(onStatus, [e, data]);
}
})
.on(this.options.events.validatorError, function(e, data) {
var onError = that.getOptions(data.field, data.validator, 'onError');
if (onError) {
$.fn.bootstrapValidator.helpers.call(onError, [e, data]);
}
})
.on(this.options.events.validatorSuccess, function(e, data) {
var onSuccess = that.getOptions(data.field, data.validator, 'onSuccess');
if (onSuccess) {
$.fn.bootstrapValidator.helpers.call(onSuccess, [e, data]);
}
});
// Set live mode
events = $.map(trigger, function(item) {
return item + '.live.bv';
}).join(' ');
switch (this.options.live) {
case 'submitted':
break;
case 'disabled':
fields.off(events);
break;
case 'enabled':
/* falls through */
default:
fields.off(events).on(events, function() {
if (that._exceedThreshold($(this))) {
that.validateField($(this));
}
});
break;
}
fields.trigger($.Event(this.options.events.fieldInit), {
bv: this,
field: field,
element: fields
});
},
/**
* Get the error message for given field and validator
*
* @param {String} field The field name
* @param {String} validatorName The validator name
* @returns {String}
*/
_getMessage: function(field, validatorName) {
if (!this.options.fields[field] || !$.fn.bootstrapValidator.validators[validatorName]
|| !this.options.fields[field].validators || !this.options.fields[field].validators[validatorName])
{
return '';
}
var options = this.options.fields[field].validators[validatorName];
switch (true) {
case (!!options.message):
return options.message;
case (!!this.options.fields[field].message):
return this.options.fields[field].message;
case (!!$.fn.bootstrapValidator.i18n[validatorName]):
return $.fn.bootstrapValidator.i18n[validatorName]['default'];
default:
return this.options.message;
}
},
/**
* Get the element to place the error messages
*
* @param {jQuery} $field The field element
* @param {String} group
* @returns {jQuery}
*/
_getMessageContainer: function($field, group) {
var $parent = $field.parent();
if ($parent.is(group)) {
return $parent;
}
var cssClasses = $parent.attr('class');
if (!cssClasses) {
return this._getMessageContainer($parent, group);
}
cssClasses = cssClasses.split(' ');
var n = cssClasses.length;
for (var i = 0; i < n; i++) {
if (/^col-(xs|sm|md|lg)-\d+$/.test(cssClasses[i]) || /^col-(xs|sm|md|lg)-offset-\d+$/.test(cssClasses[i])) {
return $parent;
}
}
return this._getMessageContainer($parent, group);
},
/**
* Called when all validations are completed
*/
_submit: function() {
var isValid = this.isValid(),
eventType = isValid ? this.options.events.formSuccess : this.options.events.formError,
e = $.Event(eventType);
this.$form.trigger(e);
// Call default handler
// Check if whether the submit button is clicked
if (this.$submitButton) {
isValid ? this._onSuccess(e) : this._onError(e);
}
},
/**
* Check if the field is excluded.
* Returning true means that the field will not be validated
*
* @param {jQuery} $field The field element
* @returns {Boolean}
*/
_isExcluded: function($field) {
var excludedAttr = $field.attr('data-bv-excluded'),
// I still need to check the 'name' attribute while initializing the field
field = $field.attr('data-bv-field') || $field.attr('name');
switch (true) {
case (!!field && this.options.fields && this.options.fields[field] && (this.options.fields[field].excluded === 'true' || this.options.fields[field].excluded === true)):
case (excludedAttr === 'true'):
case (excludedAttr === ''):
return true;
case (!!field && this.options.fields && this.options.fields[field] && (this.options.fields[field].excluded === 'false' || this.options.fields[field].excluded === false)):
case (excludedAttr === 'false'):
return false;
default:
if (this.options.excluded) {
// Convert to array first
if ('string' === typeof this.options.excluded) {
this.options.excluded = $.map(this.options.excluded.split(','), function(item) {
// Trim the spaces
return $.trim(item);
});
}
var length = this.options.excluded.length;
for (var i = 0; i < length; i++) {
if (('string' === typeof this.options.excluded[i] && $field.is(this.options.excluded[i]))
|| ('function' === typeof this.options.excluded[i] && this.options.excluded[i].call(this, $field, this) === true))
{
return true;
}
}
}
return false;
}
},
/**
* Check if the number of characters of field value exceed the threshold or not
*
* @param {jQuery} $field The field element
* @returns {Boolean}
*/
_exceedThreshold: function($field) {
var field = $field.attr('data-bv-field'),
threshold = this.options.fields[field].threshold || this.options.threshold;
if (!threshold) {
return true;
}
var cannotType = $.inArray($field.attr('type'), ['button', 'checkbox', 'file', 'hidden', 'image', 'radio', 'reset', 'submit']) !== -1;
return (cannotType || $field.val().length >= threshold);
},
// ---
// Events
// ---
/**
* The default handler of error.form.bv event.
* It will be called when there is a invalid field
*
* @param {jQuery.Event} e The jQuery event object
*/
_onError: function(e) {
if (e.isDefaultPrevented()) {
return;
}
if ('submitted' === this.options.live) {
// Enable live mode
this.options.live = 'enabled';
var that = this;
for (var field in this.options.fields) {
(function(f) {
var fields = that.getFieldElements(f);
if (fields.length) {
var type = $(fields[0]).attr('type'),
event = ('radio' === type || 'checkbox' === type || 'file' === type || 'SELECT' === $(fields[0]).get(0).tagName) ? 'change' : that._changeEvent,
trigger = that.options.fields[field].trigger || that.options.trigger || event,
events = $.map(trigger.split(' '), function(item) {
return item + '.live.bv';
}).join(' ');
fields.off(events).on(events, function() {
if (that._exceedThreshold($(this))) {
that.validateField($(this));
}
});
}
})(field);
}
}
var $invalidField = this.$invalidFields.eq(0);
if ($invalidField) {
// Activate the tab containing the invalid field if exists
var $tabPane = $invalidField.parents('.tab-pane'), tabId;
if ($tabPane && (tabId = $tabPane.attr('id'))) {
$('a[href="#' + tabId + '"][data-toggle="tab"]').tab('show');
}
// Focus to the first invalid field
$invalidField.focus();
}
},
/**
* The default handler of success.form.bv event.
* It will be called when all the fields are valid
*
* @param {jQuery.Event} e The jQuery event object
*/
_onSuccess: function(e) {
if (e.isDefaultPrevented()) {
return;
}
// Submit the form
this.disableSubmitButtons(true).defaultSubmit();
},
/**
* Called after validating a field element
*
* @param {jQuery} $field The field element
* @param {String} [validatorName] The validator name
*/
_onFieldValidated: function($field, validatorName) {
var field = $field.attr('data-bv-field'),
validators = this.options.fields[field].validators,
counter = {},
numValidators = 0,
data = {
bv: this,
field: field,
element: $field,
validator: validatorName,
result: $field.data('bv.response.' + validatorName)
};
// Trigger an event after given validator completes
if (validatorName) {
switch ($field.data('bv.result.' + validatorName)) {
case this.STATUS_INVALID:
$field.trigger($.Event(this.options.events.validatorError), data);
break;
case this.STATUS_VALID:
$field.trigger($.Event(this.options.events.validatorSuccess), data);
break;
default:
break;
}
}
counter[this.STATUS_NOT_VALIDATED] = 0;
counter[this.STATUS_VALIDATING] = 0;
counter[this.STATUS_INVALID] = 0;
counter[this.STATUS_VALID] = 0;
for (var v in validators) {
if (validators[v].enabled === false) {
continue;
}
numValidators++;
var result = $field.data('bv.result.' + v);
if (result) {
counter[result]++;
}
}
if (counter[this.STATUS_VALID] === numValidators) {
// Remove from the list of invalid fields
this.$invalidFields = this.$invalidFields.not($field);
$field.trigger($.Event(this.options.events.fieldSuccess), data);
}
// If all validators are completed and there is at least one validator which doesn't pass
else if (counter[this.STATUS_NOT_VALIDATED] === 0 && counter[this.STATUS_VALIDATING] === 0 && counter[this.STATUS_INVALID] > 0) {
// Add to the list of invalid fields
this.$invalidFields = this.$invalidFields.add($field);
$field.trigger($.Event(this.options.events.fieldError), data);
}
},
// ---
// Public methods
// ---
/**
* Retrieve the field elements by given name
*
* @param {String} field The field name
* @returns {null|jQuery[]}
*/
getFieldElements: function(field) {
if (!this._cacheFields[field]) {
this._cacheFields[field] = (this.options.fields[field] && this.options.fields[field].selector)
? $(this.options.fields[field].selector)
: this.$form.find('[name="' + field + '"]');
}
return this._cacheFields[field];
},
/**
* Get the field options
*
* @param {String|jQuery} [field] The field name or field element. If it is not set, the method returns the form options
* @param {String} [validator] The name of validator. It null, the method returns form options
* @param {String} [option] The option name
* @return {String|Object}
*/
getOptions: function(field, validator, option) {
if (!field) {
return this.options;
}
if ('object' === typeof field) {
field = field.attr('data-bv-field');
}
if (!this.options.fields[field]) {
return null;
}
var options = this.options.fields[field];
if (!validator) {
return option ? options[option] : options;
}
if (!options.validators || !options.validators[validator]) {
return null;
}
return option ? options.validators[validator][option] : options.validators[validator];
},
/**
* Disable/enable submit buttons
*
* @param {Boolean} disabled Can be true or false
* @returns {BootstrapValidator}
*/
disableSubmitButtons: function(disabled) {
if (!disabled) {
this.$form.find(this.options.submitButtons).removeAttr('disabled');
} else if (this.options.live !== 'disabled') {
// Don't disable if the live validating mode is disabled
this.$form.find(this.options.submitButtons).attr('disabled', 'disabled');
}
return this;
},
/**
* Validate the form
*
* @returns {BootstrapValidator}
*/
validate: function() {
if (!this.options.fields) {
return this;
}
this.disableSubmitButtons(true);
for (var field in this.options.fields) {
this.validateField(field);
}
this._submit();
return this;
},
/**
* Validate given field
*
* @param {String|jQuery} field The field name or field element
* @returns {BootstrapValidator}
*/
validateField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
fields = this.getFieldElements(field);
break;
default:
break;
}
if (fields.length === 0 || (this.options.fields[field] && this.options.fields[field].enabled === false)) {
return this;
}
var that = this,
type = fields.attr('type'),
total = ('radio' === type || 'checkbox' === type) ? 1 : fields.length,
updateAll = ('radio' === type || 'checkbox' === type),
validators = this.options.fields[field].validators,
verbose = this.options.fields[field].verbose === 'true' || this.options.fields[field].verbose === true || this.options.verbose === 'true' || this.options.verbose === true,
validatorName,
validateResult;
for (var i = 0; i < total; i++) {
var $field = fields.eq(i);
if (this._isExcluded($field)) {
continue;
}
var stop = false;
for (validatorName in validators) {
if ($field.data('bv.dfs.' + validatorName)) {
$field.data('bv.dfs.' + validatorName).reject();
}
if (stop) {
break;
}
// Don't validate field if it is already done
var result = $field.data('bv.result.' + validatorName);
if (result === this.STATUS_VALID || result === this.STATUS_INVALID) {
this._onFieldValidated($field, validatorName);
continue;
} else if (validators[validatorName].enabled === false) {
this.updateStatus(updateAll ? field : $field, this.STATUS_VALID, validatorName);
continue;
}
$field.data('bv.result.' + validatorName, this.STATUS_VALIDATING);
validateResult = $.fn.bootstrapValidator.validators[validatorName].validate(this, $field, validators[validatorName]);
// validateResult can be a $.Deferred object ...
if ('object' === typeof validateResult && validateResult.resolve) {
this.updateStatus(updateAll ? field : $field, this.STATUS_VALIDATING, validatorName);
$field.data('bv.dfs.' + validatorName, validateResult);
validateResult.done(function($f, v, response) {
// v is validator name
$f.removeData('bv.dfs.' + v).data('bv.response.' + v, response);
if (response.message) {
that.updateMessage($f, v, response.message);
}
that.updateStatus(updateAll ? $f.attr('data-bv-field') : $f, response.valid ? that.STATUS_VALID : that.STATUS_INVALID, v);
if (response.valid && that._submitIfValid === true) {
// If a remote validator returns true and the form is ready to submit, then do it
that._submit();
} else if (!response.valid && !verbose) {
stop = true;
}
});
}
// ... or object { valid: true/false, message: 'dynamic message' }
else if ('object' === typeof validateResult && validateResult.valid !== undefined && validateResult.message !== undefined) {
$field.data('bv.response.' + validatorName, validateResult);
this.updateMessage(updateAll ? field : $field, validatorName, validateResult.message);
this.updateStatus(updateAll ? field : $field, validateResult.valid ? this.STATUS_VALID : this.STATUS_INVALID, validatorName);
if (!validateResult.valid && !verbose) {
break;
}
}
// ... or a boolean value
else if ('boolean' === typeof validateResult) {
$field.data('bv.response.' + validatorName, validateResult);
this.updateStatus(updateAll ? field : $field, validateResult ? this.STATUS_VALID : this.STATUS_INVALID, validatorName);
if (!validateResult && !verbose) {
break;
}
}
}
}
return this;
},
/**
* Update the error message
*
* @param {String|jQuery} field The field name or field element
* @param {String} validator The validator name
* @param {String} message The message
* @returns {BootstrapValidator}
*/
updateMessage: function(field, validator, message) {
var $fields = $([]);
switch (typeof field) {
case 'object':
$fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
$fields = this.getFieldElements(field);
break;
default:
break;
}
$fields.each(function() {
$(this).data('bv.messages').find('.help-block[data-bv-validator="' + validator + '"][data-bv-for="' + field + '"]').html(message);
});
},
/**
* Update all validating results of field
*
* @param {String|jQuery} field The field name or field element
* @param {String} status The status. Can be 'NOT_VALIDATED', 'VALIDATING', 'INVALID' or 'VALID'
* @param {String} [validatorName] The validator name. If null, the method updates validity result for all validators
* @returns {BootstrapValidator}
*/
updateStatus: function(field, status, validatorName) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
fields = this.getFieldElements(field);
break;
default:
break;
}
if (status === this.STATUS_NOT_VALIDATED) {
// Reset the flag
this._submitIfValid = false;
}
var that = this,
type = fields.attr('type'),
group = this.options.fields[field].group || this.options.group,
total = ('radio' === type || 'checkbox' === type) ? 1 : fields.length;
for (var i = 0; i < total; i++) {
var $field = fields.eq(i);
if (this._isExcluded($field)) {
continue;
}
var $parent = $field.parents(group),
$message = $field.data('bv.messages'),
$allErrors = $message.find('.help-block[data-bv-validator][data-bv-for="' + field + '"]'),
$errors = validatorName ? $allErrors.filter('[data-bv-validator="' + validatorName + '"]') : $allErrors,
$icon = $parent.find('.form-control-feedback[data-bv-icon-for="' + field + '"]'),
container = ('function' === typeof (this.options.fields[field].container || this.options.container)) ? (this.options.fields[field].container || this.options.container).call(this, $field, this) : (this.options.fields[field].container || this.options.container),
isValidField = null;
// Update status
if (validatorName) {
$field.data('bv.result.' + validatorName, status);
} else {
for (var v in this.options.fields[field].validators) {
$field.data('bv.result.' + v, status);
}
}
// Show/hide error elements and feedback icons
$errors.attr('data-bv-result', status);
// Determine the tab containing the element
var $tabPane = $field.parents('.tab-pane'),
tabId, $tab;
if ($tabPane && (tabId = $tabPane.attr('id'))) {
$tab = $('a[href="#' + tabId + '"][data-toggle="tab"]').parent();
}
switch (status) {
case this.STATUS_VALIDATING:
isValidField = null;
this.disableSubmitButtons(true);
$parent.removeClass('has-success').removeClass('has-error');
if ($icon) {
$icon.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).addClass(this.options.feedbackIcons.validating).show();
}
if ($tab) {
$tab.removeClass('bv-tab-success').removeClass('bv-tab-error');
}
break;
case this.STATUS_INVALID:
isValidField = false;
this.disableSubmitButtons(true);
$parent.removeClass('has-success').addClass('has-error');
if ($icon) {
$icon.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.validating).addClass(this.options.feedbackIcons.invalid).show();
}
if ($tab) {
$tab.removeClass('bv-tab-success').addClass('bv-tab-error');
}
break;
case this.STATUS_VALID:
// If the field is valid (passes all validators)
isValidField = ($allErrors.filter('[data-bv-result="' + this.STATUS_NOT_VALIDATED +'"]').length === 0)
? ($allErrors.filter('[data-bv-result="' + this.STATUS_VALID +'"]').length === $allErrors.length) // All validators are completed
: null; // There are some validators that have not done
if (isValidField !== null) {
this.disableSubmitButtons(this.$submitButton ? !this.isValid() : !isValidField);
if ($icon) {
$icon
.removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).removeClass(this.options.feedbackIcons.valid)
.addClass(isValidField ? this.options.feedbackIcons.valid : this.options.feedbackIcons.invalid)
.show();
}
}
$parent.removeClass('has-error has-success').addClass(this.isValidContainer($parent) ? 'has-success' : 'has-error');
if ($tab) {
$tab.removeClass('bv-tab-success').removeClass('bv-tab-error').addClass(this.isValidContainer($tabPane) ? 'bv-tab-success' : 'bv-tab-error');
}
break;
case this.STATUS_NOT_VALIDATED:
/* falls through */
default:
isValidField = null;
this.disableSubmitButtons(false);
$parent.removeClass('has-success').removeClass('has-error');
if ($icon) {
$icon.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).hide();
}
if ($tab) {
$tab.removeClass('bv-tab-success').removeClass('bv-tab-error');
}
break;
}
switch (true) {
// Only show the first error message if it is placed inside a tooltip ...
case ($icon && 'tooltip' === container):
(isValidField === false)
? $icon.css('cursor', 'pointer').tooltip('destroy').tooltip({
container: 'body',
html: true,
placement: 'top',
title: $allErrors.filter('[data-bv-result="' + that.STATUS_INVALID + '"]').eq(0).html()
})
: $icon.tooltip('hide');
break;
// ... or popover
case ($icon && 'popover' === container):
(isValidField === false)
? $icon.css('cursor', 'pointer').popover('destroy').popover({
container: 'body',
content: $allErrors.filter('[data-bv-result="' + that.STATUS_INVALID + '"]').eq(0).html(),
html: true,
placement: 'top',
trigger: 'hover click'
})
: $icon.popover('hide');
break;
default:
(status === this.STATUS_INVALID) ? $errors.show() : $errors.hide();
break;
}
// Trigger an event
$field.trigger($.Event(this.options.events.fieldStatus), {
bv: this,
field: field,
element: $field,
status: status
});
this._onFieldValidated($field, validatorName);
}
return this;
},
/**
* Check the form validity
*
* @returns {Boolean}
*/
isValid: function() {
for (var field in this.options.fields) {
if (!this.isValidField(field)) {
return false;
}
}
return true;
},
/**
* Check if the field is valid or not
*
* @param {String|jQuery} field The field name or field element
* @returns {Boolean}
*/
isValidField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
fields = this.getFieldElements(field);
break;
default:
break;
}
if (fields.length === 0 || this.options.fields[field] === null || this.options.fields[field].enabled === false) {
return true;
}
var type = fields.attr('type'),
total = ('radio' === type || 'checkbox' === type) ? 1 : fields.length,
$field, validatorName, status;
for (var i = 0; i < total; i++) {
$field = fields.eq(i);
if (this._isExcluded($field)) {
continue;
}
for (validatorName in this.options.fields[field].validators) {
if (this.options.fields[field].validators[validatorName].enabled === false) {
continue;
}
status = $field.data('bv.result.' + validatorName);
if (status !== this.STATUS_VALID) {
return false;
}
}
}
return true;
},
/**
* Check if all fields inside a given container are valid.
* It's useful when working with a wizard-like such as tab, collapse
*
* @param {String|jQuery} container The container selector or element
* @returns {Boolean}
*/
isValidContainer: function(container) {
var that = this,
map = {},
$container = ('string' === typeof container) ? $(container) : container;
if ($container.length === 0) {
return true;
}
$container.find('[data-bv-field]').each(function() {
var $field = $(this),
field = $field.attr('data-bv-field');
if (!that._isExcluded($field) && !map[field]) {
map[field] = $field;
}
});
for (var field in map) {
var $f = map[field];
if ($f.data('bv.messages')
.find('.help-block[data-bv-validator][data-bv-for="' + field + '"]')
.filter('[data-bv-result="' + this.STATUS_INVALID +'"]')
.length > 0)
{
return false;
}
}
return true;
},
/**
* Submit the form using default submission.
* It also does not perform any validations when submitting the form
*/
defaultSubmit: function() {
if (this.$submitButton) {
// Create hidden input to send the submit buttons
$('<input/>')
.attr('type', 'hidden')
.attr('data-bv-submit-hidden', '')
.attr('name', this.$submitButton.attr('name'))
.val(this.$submitButton.val())
.appendTo(this.$form);
}
// Submit form
this.$form.off('submit.bv').submit();
},
// ---
// Useful APIs which aren't used internally
// ---
/**
* Get the list of invalid fields
*
* @returns {jQuery[]}
*/
getInvalidFields: function() {
return this.$invalidFields;
},
/**
* Returns the clicked submit button
*
* @returns {jQuery}
*/
getSubmitButton: function() {
return this.$submitButton;
},
/**
* Get the error messages
*
* @param {String|jQuery} [field] The field name or field element
* If the field is not defined, the method returns all error messages of all fields
* @param {String} [validator] The name of validator
* If the validator is not defined, the method returns error messages of all validators
* @returns {String[]}
*/
getMessages: function(field, validator) {
var that = this,
messages = [],
$fields = $([]);
switch (true) {
case (field && 'object' === typeof field):
$fields = field;
break;
case (field && 'string' === typeof field):
var f = this.getFieldElements(field);
if (f.length > 0) {
var type = f.attr('type');
$fields = ('radio' === type || 'checkbox' === type) ? f.eq(0) : f;
}
break;
default:
$fields = this.$invalidFields;
break;
}
var filter = validator ? '[data-bv-validator="' + validator + '"]' : '';
$fields.each(function() {
messages = messages.concat(
$(this)
.data('bv.messages')
.find('.help-block[data-bv-for="' + $(this).attr('data-bv-field') + '"][data-bv-result="' + that.STATUS_INVALID + '"]' + filter)
.map(function() {
var v = $(this).attr('data-bv-validator'),
f = $(this).attr('data-bv-for');
return (that.options.fields[f].validators[v].enabled === false) ? '' : $(this).html();
})
.get()
);
});
return messages;
},
/**
* Update the option of a specific validator
*
* @param {String|jQuery} field The field name or field element
* @param {String} validator The validator name
* @param {String} option The option name
* @param {String} value The value to set
* @returns {BootstrapValidator}
*/
updateOption: function(field, validator, option, value) {
if ('object' === typeof field) {
field = field.attr('data-bv-field');
}
if (this.options.fields[field] && this.options.fields[field].validators[validator]) {
this.options.fields[field].validators[validator][option] = value;
this.updateStatus(field, this.STATUS_NOT_VALIDATED, validator);
}
return this;
},
/**
* Add a new field
*
* @param {String|jQuery} field The field name or field element
* @param {Object} [options] The validator rules
* @returns {BootstrapValidator}
*/
addField: function(field, options) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field') || field.attr('name');
break;
case 'string':
delete this._cacheFields[field];
fields = this.getFieldElements(field);
break;
default:
break;
}
fields.attr('data-bv-field', field);
var type = fields.attr('type'),
total = ('radio' === type || 'checkbox' === type) ? 1 : fields.length;
for (var i = 0; i < total; i++) {
var $field = fields.eq(i);
// Try to parse the options from HTML attributes
var opts = this._parseOptions($field);
opts = (opts === null) ? options : $.extend(true, options, opts);
this.options.fields[field] = $.extend(true, this.options.fields[field], opts);
// Update the cache
this._cacheFields[field] = this._cacheFields[field] ? this._cacheFields[field].add($field) : $field;
// Init the element
this._initField(('checkbox' === type || 'radio' === type) ? field : $field);
}
this.disableSubmitButtons(false);
// Trigger an event
this.$form.trigger($.Event(this.options.events.fieldAdded), {
field: field,
element: fields,
options: this.options.fields[field]
});
return this;
},
/**
* Remove a given field
*
* @param {String|jQuery} field The field name or field element
* @returns {BootstrapValidator}
*/
removeField: function(field) {
var fields = $([]);
switch (typeof field) {
case 'object':
fields = field;
field = field.attr('data-bv-field') || field.attr('name');
fields.attr('data-bv-field', field);
break;
case 'string':
fields = this.getFieldElements(field);
break;
default:
break;
}
if (fields.length === 0) {
return this;
}
var type = fields.attr('type'),
total = ('radio' === type || 'checkbox' === type) ? 1 : fields.length;
for (var i = 0; i < total; i++) {
var $field = fields.eq(i);
// Remove from the list of invalid fields
this.$invalidFields = this.$invalidFields.not($field);
// Update the cache
this._cacheFields[field] = this._cacheFields[field].not($field);
}
if (!this._cacheFields[field] || this._cacheFields[field].length === 0) {
delete this.options.fields[field];
}
if ('checkbox' === type || 'radio' === type) {
this._initField(field);
}
this.disableSubmitButtons(false);
// Trigger an event
this.$form.trigger($.Event(this.options.events.fieldRemoved), {
field: field,
element: fields
});
return this;
},
/**
* Reset given field
*
* @param {String|jQuery} field The field name or field element
* @param {Boolean} [resetValue] If true, the method resets field value to empty or remove checked/selected attribute (for radio/checkbox)
* @returns {BootstrapValidator}
*/
resetField: function(field, resetValue) {
var $fields = $([]);
switch (typeof field) {
case 'object':
$fields = field;
field = field.attr('data-bv-field');
break;
case 'string':
$fields = this.getFieldElements(field);
break;
default:
break;
}
var total = $fields.length;
if (this.options.fields[field]) {
for (var i = 0; i < total; i++) {
for (var validator in this.options.fields[field].validators) {
$fields.eq(i).removeData('bv.dfs.' + validator);
}
}
}
// Mark field as not validated yet
this.updateStatus(field, this.STATUS_NOT_VALIDATED);
if (resetValue) {
var type = $fields.attr('type');
('radio' === type || 'checkbox' === type) ? $fields.removeAttr('checked').removeAttr('selected') : $fields.val('');
}
return this;
},
/**
* Reset the form
*
* @param {Boolean} [resetValue] If true, the method resets field value to empty or remove checked/selected attribute (for radio/checkbox)
* @returns {BootstrapValidator}
*/
resetForm: function(resetValue) {
for (var field in this.options.fields) {
this.resetField(field, resetValue);
}
this.$invalidFields = $([]);
this.$submitButton = null;
// Enable submit buttons
this.disableSubmitButtons(false);
return this;
},
/**
* Revalidate given field
* It's used when you need to revalidate the field which its value is updated by other plugin
*
* @param {String|jQuery} field The field name of field element
* @returns {BootstrapValidator}
*/
revalidateField: function(field) {
this.updateStatus(field, this.STATUS_NOT_VALIDATED)
.validateField(field);
return this;
},
/**
* Enable/Disable all validators to given field
*
* @param {String} field The field name
* @param {Boolean} enabled Enable/Disable field validators
* @param {String} [validatorName] The validator name. If null, all validators will be enabled/disabled
* @returns {BootstrapValidator}
*/
enableFieldValidators: function(field, enabled, validatorName) {
var validators = this.options.fields[field].validators;
// Enable/disable particular validator
if (validatorName
&& validators
&& validators[validatorName] && validators[validatorName].enabled !== enabled)
{
this.options.fields[field].validators[validatorName].enabled = enabled;
this.updateStatus(field, this.STATUS_NOT_VALIDATED, validatorName);
}
// Enable/disable all validators
else if (!validatorName && this.options.fields[field].enabled !== enabled) {
this.options.fields[field].enabled = enabled;
for (var v in validators) {
this.enableFieldValidators(field, enabled, v);
}
}
return this;
},
/**
* Some validators have option which its value is dynamic.
* For example, the zipCode validator has the country option which might be changed dynamically by a select element.
*
* @param {jQuery|String} field The field name or element
* @param {String|Function} option The option which can be determined by:
* - a string
* - name of field which defines the value
* - name of function which returns the value
* - a function returns the value
*
* The callback function has the format of
* callback: function(value, validator, $field) {
* // value is the value of field
* // validator is the BootstrapValidator instance
* // $field is the field element
* }
*
* @returns {String}
*/
getDynamicOption: function(field, option) {
var $field = ('string' === typeof field) ? this.getFieldElements(field) : field,
value = $field.val();
// Option can be determined by
// ... a function
if ('function' === typeof option) {
return $.fn.bootstrapValidator.helpers.call(option, [value, this, $field]);
}
// ... value of other field
else if ('string' === typeof option) {
var $f = this.getFieldElements(option);
if ($f.length) {
return $f.val();
}
// ... return value of callback
else {
return $.fn.bootstrapValidator.helpers.call(option, [value, this, $field]) || option;
}
}
return null;
},
/**
* Destroy the plugin
* It will remove all error messages, feedback icons and turn off the events
*/
destroy: function() {
var field, fields, $field, validator, $icon, group;
for (field in this.options.fields) {
fields = this.getFieldElements(field);
group = this.options.fields[field].group || this.options.group;
for (var i = 0; i < fields.length; i++) {
$field = fields.eq(i);
$field
// Remove all error messages
.data('bv.messages')
.find('.help-block[data-bv-validator][data-bv-for="' + field + '"]').remove().end()
.end()
.removeData('bv.messages')
// Remove feedback classes
.parents(group)
.removeClass('has-feedback has-error has-success')
.end()
// Turn off events
.off('.bv')
.removeAttr('data-bv-field');
// Remove feedback icons, tooltip/popover container
$icon = $field.parents(group).find('i[data-bv-icon-for="' + field + '"]');
if ($icon) {
var container = ('function' === typeof (this.options.fields[field].container || this.options.container)) ? (this.options.fields[field].container || this.options.container).call(this, $field, this) : (this.options.fields[field].container || this.options.container);
switch (container) {
case 'tooltip':
$icon.tooltip('destroy').remove();
break;
case 'popover':
$icon.popover('destroy').remove();
break;
default:
$icon.remove();
break;
}
}
for (validator in this.options.fields[field].validators) {
if ($field.data('bv.dfs.' + validator)) {
$field.data('bv.dfs.' + validator).reject();
}
$field.removeData('bv.result.' + validator)
.removeData('bv.response.' + validator)
.removeData('bv.dfs.' + validator);
// Destroy the validator
if ('function' === typeof $.fn.bootstrapValidator.validators[validator].destroy) {
$.fn.bootstrapValidator.validators[validator].destroy(this, $field, this.options.fields[field].validators[validator]);
}
}
}
}
this.disableSubmitButtons(false); // Enable submit buttons
this.$hiddenButton.remove(); // Remove the hidden button
this.$form
.removeClass(this.options.elementClass)
.off('.bv')
.removeData('bootstrapValidator')
// Remove generated hidden elements
.find('[data-bv-submit-hidden]').remove().end()
.find('[type="submit"]').off('click.bv');
}
};
// Plugin definition
$.fn.bootstrapValidator = function(option) {
var params = arguments;
return this.each(function() {
var $this = $(this),
data = $this.data('bootstrapValidator'),
options = 'object' === typeof option && option;
if (!data) {
data = new BootstrapValidator(this, options);
$this.data('bootstrapValidator', data);
}
// Allow to call plugin method
if ('string' === typeof option) {
data[option].apply(data, Array.prototype.slice.call(params, 1));
}
});
};
// The default options
$.fn.bootstrapValidator.DEFAULT_OPTIONS = {
// The form CSS class
elementClass: 'bv-form',
// Default invalid message
message: 'This value is not valid',
// The CSS selector for indicating the element consists the field
// By default, each field is placed inside the <div class="form-group"></div>
// You should adjust this option if your form group consists of many fields which not all of them need to be validated
group: '.form-group',
//The error messages container. It can be:
// - 'tooltip' if you want to use Bootstrap tooltip to show error messages
// - 'popover' if you want to use Bootstrap popover to show error messages
// - a CSS selector indicating the container
// In the first two cases, since the tooltip/popover should be small enough, the plugin only shows only one error message
// You also can define the message container for particular field
container: null,
// The field will not be live validated if its length is less than this number of characters
threshold: null,
// Indicate fields which won't be validated
// By default, the plugin will not validate the following kind of fields:
// - disabled
// - hidden
// - invisible
//
// The setting consists of jQuery filters. Accept 3 formats:
// - A string. Use a comma to separate filter
// - An array. Each element is a filter
// - An array. Each element can be a callback function
// function($field, validator) {
// $field is jQuery object representing the field element
// validator is the BootstrapValidator instance
// return true or false;
// }
//
// The 3 following settings are equivalent:
//
// 1) ':disabled, :hidden, :not(:visible)'
// 2) [':disabled', ':hidden', ':not(:visible)']
// 3) [':disabled', ':hidden', function($field) {
// return !$field.is(':visible');
// }]
excluded: [':disabled', ':hidden', ':not(:visible)'],
// Shows ok/error/loading icons based on the field validity.
// This feature requires Bootstrap v3.1.0 or later (http://getbootstrap.com/css/#forms-control-validation).
// Since Bootstrap doesn't provide any methods to know its version, this option cannot be on/off automatically.
// In other word, to use this feature you have to upgrade your Bootstrap to v3.1.0 or later.
//
// Examples:
// - Use Glyphicons icons:
// feedbackIcons: {
// valid: 'glyphicon glyphicon-ok',
// invalid: 'glyphicon glyphicon-remove',
// validating: 'glyphicon glyphicon-refresh'
// }
// - Use FontAwesome icons:
// feedbackIcons: {
// valid: 'fa fa-check',
// invalid: 'fa fa-times',
// validating: 'fa fa-refresh'
// }
feedbackIcons: {
valid: null,
invalid: null,
validating: null
},
// The submit buttons selector
// These buttons will be disabled to prevent the valid form from multiple submissions
submitButtons: '[type="submit"]',
// Live validating option
// Can be one of 3 values:
// - enabled: The plugin validates fields as soon as they are changed
// - disabled: Disable the live validating. The error messages are only shown after the form is submitted
// - submitted: The live validating is enabled after the form is submitted
live: 'enabled',
// Map the field name with validator rules
fields: null,
// Use custom event name to avoid window.onerror being invoked by jQuery
// See https://github.com/nghuuphuoc/bootstrapvalidator/issues/630
events: {
formInit: 'init.form.bv',
formError: 'error.form.bv',
formSuccess: 'success.form.bv',
fieldAdded: 'added.field.bv',
fieldRemoved: 'removed.field.bv',
fieldInit: 'init.field.bv',
fieldError: 'error.field.bv',
fieldSuccess: 'success.field.bv',
fieldStatus: 'status.field.bv',
validatorError: 'error.validator.bv',
validatorSuccess: 'success.validator.bv'
},
// Whether to be verbose when validating a field or not.
// Possible values:
// - true: when a field has multiple validators, all of them will be checked, and respectively - if errors occur in
// multiple validators, all of them will be displayed to the user
// - false: when a field has multiple validators, validation for this field will be terminated upon the first encountered error.
// Thus, only the very first error message related to this field will be displayed to the user
verbose: true
};
// Available validators
$.fn.bootstrapValidator.validators = {};
// i18n
$.fn.bootstrapValidator.i18n = {};
$.fn.bootstrapValidator.Constructor = BootstrapValidator;
// Helper methods, which can be used in validator class
$.fn.bootstrapValidator.helpers = {
/**
* Execute a callback function
*
* @param {String|Function} functionName Can be
* - name of global function
* - name of namespace function (such as A.B.C)
* - a function
* @param {Array} args The callback arguments
*/
call: function(functionName, args) {
if ('function' === typeof functionName) {
return functionName.apply(this, args);
} else if ('string' === typeof functionName) {
if ('()' === functionName.substring(functionName.length - 2)) {
functionName = functionName.substring(0, functionName.length - 2);
}
var ns = functionName.split('.'),
func = ns.pop(),
context = window;
for (var i = 0; i < ns.length; i++) {
context = context[ns[i]];
}
return (typeof context[func] === 'undefined') ? null : context[func].apply(this, args);
}
},
/**
* Format a string
* It's used to format the error message
* format('The field must between %s and %s', [10, 20]) = 'The field must between 10 and 20'
*
* @param {String} message
* @param {Array} parameters
* @returns {String}
*/
format: function(message, parameters) {
if (!$.isArray(parameters)) {
parameters = [parameters];
}
for (var i in parameters) {
message = message.replace('%s', parameters[i]);
}
return message;
},
/**
* Validate a date
*
* @param {Number} year The full year in 4 digits
* @param {Number} month The month number
* @param {Number} day The day number
* @param {Boolean} [notInFuture] If true, the date must not be in the future
* @returns {Boolean}
*/
date: function(year, month, day, notInFuture) {
if (isNaN(year) || isNaN(month) || isNaN(day)) {
return false;
}
if (day.length > 2 || month.length > 2 || year.length > 4) {
return false;
}
day = parseInt(day, 10);
month = parseInt(month, 10);
year = parseInt(year, 10);
if (year < 1000 || year > 9999 || month <= 0 || month > 12) {
return false;
}
var numDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// Update the number of days in Feb of leap year
if (year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0)) {
numDays[1] = 29;
}
// Check the day
if (day <= 0 || day > numDays[month - 1]) {
return false;
}
if (notInFuture === true) {
var currentDate = new Date(),
currentYear = currentDate.getFullYear(),
currentMonth = currentDate.getMonth(),
currentDay = currentDate.getDate();
return (year < currentYear
|| (year === currentYear && month - 1 < currentMonth)
|| (year === currentYear && month - 1 === currentMonth && day < currentDay));
}
return true;
},
/**
* Implement Luhn validation algorithm
* Credit to https://gist.github.com/ShirtlessKirk/2134376
*
* @see http://en.wikipedia.org/wiki/Luhn
* @param {String} value
* @returns {Boolean}
*/
luhn: function(value) {
var length = value.length,
mul = 0,
prodArr = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]],
sum = 0;
while (length--) {
sum += prodArr[mul][parseInt(value.charAt(length), 10)];
mul ^= 1;
}
return (sum % 10 === 0 && sum > 0);
},
/**
* Implement modulus 11, 10 (ISO 7064) algorithm
*
* @param {String} value
* @returns {Boolean}
*/
mod11And10: function(value) {
var check = 5,
length = value.length;
for (var i = 0; i < length; i++) {
check = (((check || 10) * 2) % 11 + parseInt(value.charAt(i), 10)) % 10;
}
return (check === 1);
},
/**
* Implements Mod 37, 36 (ISO 7064) algorithm
* Usages:
* mod37And36('A12425GABC1234002M')
* mod37And36('002006673085', '0123456789')
*
* @param {String} value
* @param {String} [alphabet]
* @returns {Boolean}
*/
mod37And36: function(value, alphabet) {
alphabet = alphabet || '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var modulus = alphabet.length,
length = value.length,
check = Math.floor(modulus / 2);
for (var i = 0; i < length; i++) {
check = (((check || modulus) * 2) % (modulus + 1) + alphabet.indexOf(value.charAt(i))) % modulus;
}
return (check === 1);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.base64 = $.extend($.fn.bootstrapValidator.i18n.base64 || {}, {
'default': 'Please enter a valid base 64 encoded'
});
$.fn.bootstrapValidator.validators.base64 = {
/**
* Return true if the input value is a base 64 encoded string.
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.between = $.extend($.fn.bootstrapValidator.i18n.between || {}, {
'default': 'Please enter a value between %s and %s',
notInclusive: 'Please enter a value between %s and %s strictly'
});
$.fn.bootstrapValidator.validators.between = {
html5Attributes: {
message: 'message',
min: 'min',
max: 'max',
inclusive: 'inclusive'
},
enableByHtml5: function($field) {
if ('range' === $field.attr('type')) {
return {
min: $field.attr('min'),
max: $field.attr('max')
};
}
return false;
},
/**
* Return true if the input value is between (strictly or not) two given numbers
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - min
* - max
*
* The min, max keys define the number which the field value compares to. min, max can be
* - A number
* - Name of field which its value defines the number
* - Name of callback function that returns the number
* - A callback function that returns the number
*
* - inclusive [optional]: Can be true or false. Default is true
* - message: The invalid message
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!$.isNumeric(value)) {
return false;
}
var min = $.isNumeric(options.min) ? options.min : validator.getDynamicOption($field, options.min),
max = $.isNumeric(options.max) ? options.max : validator.getDynamicOption($field, options.max);
value = parseFloat(value);
return (options.inclusive === true || options.inclusive === undefined)
? {
valid: value >= min && value <= max,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.between['default'], [min, max])
}
: {
valid: value > min && value < max,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.between.notInclusive, [min, max])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.validators.blank = {
/**
* Placeholder validator that can be used to display a custom validation message
* returned from the server
* Example:
*
* (1) a "blank" validator is applied to an input field.
* (2) data is entered via the UI that is unable to be validated client-side.
* (3) server returns a 400 with JSON data that contains the field that failed
* validation and an associated message.
* (4) ajax 400 call handler does the following:
*
* bv.updateMessage(field, 'blank', errorMessage);
* bv.updateStatus(field, 'INVALID');
*
* @see https://github.com/nghuuphuoc/bootstrapvalidator/issues/542
* @see https://github.com/nghuuphuoc/bootstrapvalidator/pull/666
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
return true;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.callback = $.extend($.fn.bootstrapValidator.i18n.callback || {}, {
'default': 'Please enter a valid value'
});
$.fn.bootstrapValidator.validators.callback = {
html5Attributes: {
message: 'message',
callback: 'callback'
},
/**
* Return result from the callback method
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - callback: The callback method that passes 2 parameters:
* callback: function(fieldValue, validator, $field) {
* // fieldValue is the value of field
* // validator is instance of BootstrapValidator
* // $field is the field element
* }
* - message: The invalid message
* @returns {Deferred}
*/
validate: function(validator, $field, options) {
var value = $field.val(),
dfd = new $.Deferred(),
result = { valid: true };
if (options.callback) {
var response = $.fn.bootstrapValidator.helpers.call(options.callback, [value, validator, $field]);
result = ('boolean' === typeof response) ? { valid: response } : response;
}
dfd.resolve($field, 'callback', result);
return dfd;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.choice = $.extend($.fn.bootstrapValidator.i18n.choice || {}, {
'default': 'Please enter a valid value',
less: 'Please choose %s options at minimum',
more: 'Please choose %s options at maximum',
between: 'Please choose %s - %s options'
});
$.fn.bootstrapValidator.validators.choice = {
html5Attributes: {
message: 'message',
min: 'min',
max: 'max'
},
/**
* Check if the number of checked boxes are less or more than a given number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consists of following keys:
* - min
* - max
*
* At least one of two keys is required
* The min, max keys define the number which the field value compares to. min, max can be
* - A number
* - Name of field which its value defines the number
* - Name of callback function that returns the number
* - A callback function that returns the number
*
* - message: The invalid message
* @returns {Object}
*/
validate: function(validator, $field, options) {
var numChoices = $field.is('select')
? validator.getFieldElements($field.attr('data-bv-field')).find('option').filter(':selected').length
: validator.getFieldElements($field.attr('data-bv-field')).filter(':checked').length,
min = options.min ? ($.isNumeric(options.min) ? options.min : validator.getDynamicOption($field, options.min)) : null,
max = options.max ? ($.isNumeric(options.max) ? options.max : validator.getDynamicOption($field, options.max)) : null,
isValid = true,
message = options.message || $.fn.bootstrapValidator.i18n.choice['default'];
if ((min && numChoices < parseInt(min, 10)) || (max && numChoices > parseInt(max, 10))) {
isValid = false;
}
switch (true) {
case (!!min && !!max):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.choice.between, [parseInt(min, 10), parseInt(max, 10)]);
break;
case (!!min):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.choice.less, parseInt(min, 10));
break;
case (!!max):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.choice.more, parseInt(max, 10));
break;
default:
break;
}
return { valid: isValid, message: message };
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.creditCard = $.extend($.fn.bootstrapValidator.i18n.creditCard || {}, {
'default': 'Please enter a valid credit card number'
});
$.fn.bootstrapValidator.validators.creditCard = {
/**
* Return true if the input value is valid credit card number
* Based on https://gist.github.com/DiegoSalazar/4075533
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} [options] Can consist of the following key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Accept only digits, dashes or spaces
if (/[^0-9-\s]+/.test(value)) {
return false;
}
value = value.replace(/\D/g, '');
if (!$.fn.bootstrapValidator.helpers.luhn(value)) {
return false;
}
// Validate the card number based on prefix (IIN ranges) and length
var cards = {
AMERICAN_EXPRESS: {
length: [15],
prefix: ['34', '37']
},
DINERS_CLUB: {
length: [14],
prefix: ['300', '301', '302', '303', '304', '305', '36']
},
DINERS_CLUB_US: {
length: [16],
prefix: ['54', '55']
},
DISCOVER: {
length: [16],
prefix: ['6011', '622126', '622127', '622128', '622129', '62213',
'62214', '62215', '62216', '62217', '62218', '62219',
'6222', '6223', '6224', '6225', '6226', '6227', '6228',
'62290', '62291', '622920', '622921', '622922', '622923',
'622924', '622925', '644', '645', '646', '647', '648',
'649', '65']
},
JCB: {
length: [16],
prefix: ['3528', '3529', '353', '354', '355', '356', '357', '358']
},
LASER: {
length: [16, 17, 18, 19],
prefix: ['6304', '6706', '6771', '6709']
},
MAESTRO: {
length: [12, 13, 14, 15, 16, 17, 18, 19],
prefix: ['5018', '5020', '5038', '6304', '6759', '6761', '6762', '6763', '6764', '6765', '6766']
},
MASTERCARD: {
length: [16],
prefix: ['51', '52', '53', '54', '55']
},
SOLO: {
length: [16, 18, 19],
prefix: ['6334', '6767']
},
UNIONPAY: {
length: [16, 17, 18, 19],
prefix: ['622126', '622127', '622128', '622129', '62213', '62214',
'62215', '62216', '62217', '62218', '62219', '6222', '6223',
'6224', '6225', '6226', '6227', '6228', '62290', '62291',
'622920', '622921', '622922', '622923', '622924', '622925']
},
VISA: {
length: [16],
prefix: ['4']
}
};
var type, i;
for (type in cards) {
for (i in cards[type].prefix) {
if (value.substr(0, cards[type].prefix[i].length) === cards[type].prefix[i] // Check the prefix
&& $.inArray(value.length, cards[type].length) !== -1) // and length
{
return true;
}
}
}
return false;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.cusip = $.extend($.fn.bootstrapValidator.i18n.cusip || {}, {
'default': 'Please enter a valid CUSIP number'
});
$.fn.bootstrapValidator.validators.cusip = {
/**
* Validate a CUSIP
* Examples:
* - Valid: 037833100, 931142103, 14149YAR8, 126650BG6
* - Invalid: 31430F200, 022615AC2
*
* @see http://en.wikipedia.org/wiki/CUSIP
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} [options] Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
value = value.toUpperCase();
if (!/^[0-9A-Z]{9}$/.test(value)) {
return false;
}
var converted = $.map(value.split(''), function(item) {
var code = item.charCodeAt(0);
return (code >= 'A'.charCodeAt(0) && code <= 'Z'.charCodeAt(0))
// Replace A, B, C, ..., Z with 10, 11, ..., 35
? (code - 'A'.charCodeAt(0) + 10)
: item;
}),
length = converted.length,
sum = 0;
for (var i = 0; i < length - 1; i++) {
var num = parseInt(converted[i], 10);
if (i % 2 !== 0) {
num *= 2;
}
if (num > 9) {
num -= 9;
}
sum += num;
}
sum = (10 - (sum % 10)) % 10;
return sum === converted[length - 1];
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.cvv = $.extend($.fn.bootstrapValidator.i18n.cvv || {}, {
'default': 'Please enter a valid CVV number'
});
$.fn.bootstrapValidator.validators.cvv = {
html5Attributes: {
message: 'message',
ccfield: 'creditCardField'
},
/**
* Return true if the input value is a valid CVV number.
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - creditCardField: The credit card number field. It can be null
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!/^[0-9]{3,4}$/.test(value)) {
return false;
}
if (!options.creditCardField) {
return true;
}
// Get the credit card number
var creditCard = validator.getFieldElements(options.creditCardField).val();
if (creditCard === '') {
return true;
}
creditCard = creditCard.replace(/\D/g, '');
// Supported credit card types
var cards = {
AMERICAN_EXPRESS: {
length: [15],
prefix: ['34', '37']
},
DINERS_CLUB: {
length: [14],
prefix: ['300', '301', '302', '303', '304', '305', '36']
},
DINERS_CLUB_US: {
length: [16],
prefix: ['54', '55']
},
DISCOVER: {
length: [16],
prefix: ['6011', '622126', '622127', '622128', '622129', '62213',
'62214', '62215', '62216', '62217', '62218', '62219',
'6222', '6223', '6224', '6225', '6226', '6227', '6228',
'62290', '62291', '622920', '622921', '622922', '622923',
'622924', '622925', '644', '645', '646', '647', '648',
'649', '65']
},
JCB: {
length: [16],
prefix: ['3528', '3529', '353', '354', '355', '356', '357', '358']
},
LASER: {
length: [16, 17, 18, 19],
prefix: ['6304', '6706', '6771', '6709']
},
MAESTRO: {
length: [12, 13, 14, 15, 16, 17, 18, 19],
prefix: ['5018', '5020', '5038', '6304', '6759', '6761', '6762', '6763', '6764', '6765', '6766']
},
MASTERCARD: {
length: [16],
prefix: ['51', '52', '53', '54', '55']
},
SOLO: {
length: [16, 18, 19],
prefix: ['6334', '6767']
},
UNIONPAY: {
length: [16, 17, 18, 19],
prefix: ['622126', '622127', '622128', '622129', '62213', '62214',
'62215', '62216', '62217', '62218', '62219', '6222', '6223',
'6224', '6225', '6226', '6227', '6228', '62290', '62291',
'622920', '622921', '622922', '622923', '622924', '622925']
},
VISA: {
length: [16],
prefix: ['4']
}
};
var type, i, creditCardType = null;
for (type in cards) {
for (i in cards[type].prefix) {
if (creditCard.substr(0, cards[type].prefix[i].length) === cards[type].prefix[i] // Check the prefix
&& $.inArray(creditCard.length, cards[type].length) !== -1) // and length
{
creditCardType = type;
break;
}
}
}
return (creditCardType === null)
? false
: (('AMERICAN_EXPRESS' === creditCardType) ? (value.length === 4) : (value.length === 3));
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.date = $.extend($.fn.bootstrapValidator.i18n.date || {}, {
'default': 'Please enter a valid date'
});
$.fn.bootstrapValidator.validators.date = {
html5Attributes: {
message: 'message',
format: 'format',
separator: 'separator'
},
/**
* Return true if the input value is valid date
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* - separator: Use to separate the date, month, and year.
* By default, it is /
* - format: The date format. Default is MM/DD/YYYY
* The format can be:
*
* i) date: Consist of DD, MM, YYYY parts which are separated by the separator option
* ii) date and time:
* The time can consist of h, m, s parts which are separated by :
* ii) date, time and A (indicating AM or PM)
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
options.format = options.format || 'MM/DD/YYYY';
// #683: Force the format to YYYY-MM-DD as the default browser behaviour when using type="date" attribute
if ($field.attr('type') === 'date') {
options.format = 'YYYY-MM-DD';
}
var formats = options.format.split(' '),
dateFormat = formats[0],
timeFormat = (formats.length > 1) ? formats[1] : null,
amOrPm = (formats.length > 2) ? formats[2] : null,
sections = value.split(' '),
date = sections[0],
time = (sections.length > 1) ? sections[1] : null;
if (formats.length !== sections.length) {
return false;
}
// Determine the separator
var separator = options.separator;
if (!separator) {
separator = (date.indexOf('/') !== -1) ? '/' : ((date.indexOf('-') !== -1) ? '-' : null);
}
if (separator === null || date.indexOf(separator) === -1) {
return false;
}
// Determine the date
date = date.split(separator);
dateFormat = dateFormat.split(separator);
if (date.length !== dateFormat.length) {
return false;
}
var year = date[$.inArray('YYYY', dateFormat)],
month = date[$.inArray('MM', dateFormat)],
day = date[$.inArray('DD', dateFormat)];
if (!year || !month || !day || year.length !== 4) {
return false;
}
// Determine the time
var minutes = null, hours = null, seconds = null;
if (timeFormat) {
timeFormat = timeFormat.split(':');
time = time.split(':');
if (timeFormat.length !== time.length) {
return false;
}
hours = time.length > 0 ? time[0] : null;
minutes = time.length > 1 ? time[1] : null;
seconds = time.length > 2 ? time[2] : null;
// Validate seconds
if (seconds) {
if (isNaN(seconds) || seconds.length > 2) {
return false;
}
seconds = parseInt(seconds, 10);
if (seconds < 0 || seconds > 60) {
return false;
}
}
// Validate hours
if (hours) {
if (isNaN(hours) || hours.length > 2) {
return false;
}
hours = parseInt(hours, 10);
if (hours < 0 || hours >= 24 || (amOrPm && hours > 12)) {
return false;
}
}
// Validate minutes
if (minutes) {
if (isNaN(minutes) || minutes.length > 2) {
return false;
}
minutes = parseInt(minutes, 10);
if (minutes < 0 || minutes > 59) {
return false;
}
}
}
// Validate day, month, and year
return $.fn.bootstrapValidator.helpers.date(year, month, day);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.different = $.extend($.fn.bootstrapValidator.i18n.different || {}, {
'default': 'Please enter a different value'
});
$.fn.bootstrapValidator.validators.different = {
html5Attributes: {
message: 'message',
field: 'field'
},
/**
* Return true if the input value is different with given field's value
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consists of the following key:
* - field: The name of field that will be used to compare with current one
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var fields = options.field.split(','),
isValid = true;
for (var i = 0; i < fields.length; i++) {
var compareWith = validator.getFieldElements(fields[i]);
if (compareWith == null || compareWith.length === 0) {
continue;
}
var compareValue = compareWith.val();
if (value === compareValue) {
isValid = false;
} else if (compareValue !== '') {
validator.updateStatus(compareWith, validator.STATUS_VALID, 'different');
}
}
return isValid;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.digits = $.extend($.fn.bootstrapValidator.i18n.digits || {}, {
'default': 'Please enter only digits'
});
$.fn.bootstrapValidator.validators.digits = {
/**
* Return true if the input value contains digits only
*
* @param {BootstrapValidator} validator Validate plugin instance
* @param {jQuery} $field Field element
* @param {Object} [options]
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
return /^\d+$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.ean = $.extend($.fn.bootstrapValidator.i18n.ean || {}, {
'default': 'Please enter a valid EAN number'
});
$.fn.bootstrapValidator.validators.ean = {
/**
* Validate EAN (International Article Number)
* Examples:
* - Valid: 73513537, 9780471117094, 4006381333931
* - Invalid: 73513536
*
* @see http://en.wikipedia.org/wiki/European_Article_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!/^(\d{8}|\d{12}|\d{13})$/.test(value)) {
return false;
}
var length = value.length,
sum = 0,
weight = (length === 8) ? [3, 1] : [1, 3];
for (var i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i % 2];
}
sum = (10 - sum % 10) % 10;
return (sum + '' === value.charAt(length - 1));
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.emailAddress = $.extend($.fn.bootstrapValidator.i18n.emailAddress || {}, {
'default': 'Please enter a valid email address'
});
$.fn.bootstrapValidator.validators.emailAddress = {
html5Attributes: {
message: 'message',
multiple: 'multiple',
separator: 'separator'
},
enableByHtml5: function($field) {
return ('email' === $field.attr('type'));
},
/**
* Return true if and only if the input value is a valid email address
*
* @param {BootstrapValidator} validator Validate plugin instance
* @param {jQuery} $field Field element
* @param {Object} [options]
* - multiple: Allow multiple email addresses, separated by a comma or semicolon; default is false.
* - separator: Regex for character or characters expected as separator between addresses; default is comma /[,;]/, i.e. comma or semicolon.
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Email address regular expression
// http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
var emailRegExp = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,
allowMultiple = options.multiple === true || options.multiple === 'true';
if (allowMultiple) {
var separator = options.separator || /[,;]/,
addresses = this._splitEmailAddresses(value, separator);
for (var i = 0; i < addresses.length; i++) {
if (!emailRegExp.test(addresses[i])) {
return false;
}
}
return true;
} else {
return emailRegExp.test(value);
}
},
_splitEmailAddresses: function(emailAddresses, separator) {
var quotedFragments = emailAddresses.split(/"/),
quotedFragmentCount = quotedFragments.length,
emailAddressArray = [],
nextEmailAddress = '';
for (var i = 0; i < quotedFragmentCount; i++) {
if (i % 2 === 0) {
var splitEmailAddressFragments = quotedFragments[i].split(separator),
splitEmailAddressFragmentCount = splitEmailAddressFragments.length;
if (splitEmailAddressFragmentCount === 1) {
nextEmailAddress += splitEmailAddressFragments[0];
} else {
emailAddressArray.push(nextEmailAddress + splitEmailAddressFragments[0]);
for (var j = 1; j < splitEmailAddressFragmentCount - 1; j++) {
emailAddressArray.push(splitEmailAddressFragments[j]);
}
nextEmailAddress = splitEmailAddressFragments[splitEmailAddressFragmentCount - 1];
}
} else {
nextEmailAddress += '"' + quotedFragments[i];
if (i < quotedFragmentCount - 1) {
nextEmailAddress += '"';
}
}
}
emailAddressArray.push(nextEmailAddress);
return emailAddressArray;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.file = $.extend($.fn.bootstrapValidator.i18n.file || {}, {
'default': 'Please choose a valid file'
});
$.fn.bootstrapValidator.validators.file = {
html5Attributes: {
extension: 'extension',
maxsize: 'maxSize',
minsize: 'minSize',
message: 'message',
type: 'type'
},
/**
* Validate upload file. Use HTML 5 API if the browser supports
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - extension: The allowed extensions, separated by a comma
* - maxSize: The maximum size in bytes
* - minSize: the minimum size in bytes
* - message: The invalid message
* - type: The allowed MIME type, separated by a comma
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var ext,
extensions = options.extension ? options.extension.toLowerCase().split(',') : null,
types = options.type ? options.type.toLowerCase().split(',') : null,
html5 = (window.File && window.FileList && window.FileReader);
if (html5) {
// Get FileList instance
var files = $field.get(0).files,
total = files.length;
for (var i = 0; i < total; i++) {
// Check the minSize
if (options.minSize && files[i].size < parseInt(options.minSize, 10)) {
return false;
}
// Check the maxSize
if (options.maxSize && files[i].size > parseInt(options.maxSize, 10)) {
return false;
}
// Check file extension
ext = files[i].name.substr(files[i].name.lastIndexOf('.') + 1);
if (extensions && $.inArray(ext.toLowerCase(), extensions) === -1) {
return false;
}
// Check file type
if (files[i].type && types && $.inArray(files[i].type.toLowerCase(), types) === -1) {
return false;
}
}
} else {
// Check file extension
ext = value.substr(value.lastIndexOf('.') + 1);
if (extensions && $.inArray(ext.toLowerCase(), extensions) === -1) {
return false;
}
}
return true;
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.greaterThan = $.extend($.fn.bootstrapValidator.i18n.greaterThan || {}, {
'default': 'Please enter a value greater than or equal to %s',
notInclusive: 'Please enter a value greater than %s'
});
$.fn.bootstrapValidator.validators.greaterThan = {
html5Attributes: {
message: 'message',
value: 'value',
inclusive: 'inclusive'
},
enableByHtml5: function($field) {
var type = $field.attr('type'),
min = $field.attr('min');
if (min && type !== 'date') {
return {
value: min
};
}
return false;
},
/**
* Return true if the input value is greater than or equals to given number
*
* @param {BootstrapValidator} validator Validate plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - value: Define the number to compare with. It can be
* - A number
* - Name of field which its value defines the number
* - Name of callback function that returns the number
* - A callback function that returns the number
*
* - inclusive [optional]: Can be true or false. Default is true
* - message: The invalid message
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!$.isNumeric(value)) {
return false;
}
var compareTo = $.isNumeric(options.value) ? options.value : validator.getDynamicOption($field, options.value);
value = parseFloat(value);
return (options.inclusive === true || options.inclusive === undefined)
? {
valid: value >= compareTo,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.greaterThan['default'], compareTo)
}
: {
valid: value > compareTo,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.greaterThan.notInclusive, compareTo)
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.grid = $.extend($.fn.bootstrapValidator.i18n.grid || {}, {
'default': 'Please enter a valid GRId number'
});
$.fn.bootstrapValidator.validators.grid = {
/**
* Validate GRId (Global Release Identifier)
* Examples:
* - Valid: A12425GABC1234002M, A1-2425G-ABC1234002-M, A1 2425G ABC1234002 M, Grid:A1-2425G-ABC1234002-M
* - Invalid: A1-2425G-ABC1234002-Q
*
* @see http://en.wikipedia.org/wiki/Global_Release_Identifier
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
value = value.toUpperCase();
if (!/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(value)) {
return false;
}
value = value.replace(/\s/g, '').replace(/-/g, '');
if ('GRID:' === value.substr(0, 5)) {
value = value.substr(5);
}
return $.fn.bootstrapValidator.helpers.mod37And36(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.hex = $.extend($.fn.bootstrapValidator.i18n.hex || {}, {
'default': 'Please enter a valid hexadecimal number'
});
$.fn.bootstrapValidator.validators.hex = {
/**
* Return true if and only if the input value is a valid hexadecimal number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
return /^[0-9a-fA-F]+$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.hexColor = $.extend($.fn.bootstrapValidator.i18n.hexColor || {}, {
'default': 'Please enter a valid hex color'
});
$.fn.bootstrapValidator.validators.hexColor = {
enableByHtml5: function($field) {
return ('color' === $field.attr('type'));
},
/**
* Return true if the input value is a valid hex color
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.iban = $.extend($.fn.bootstrapValidator.i18n.iban || {}, {
'default': 'Please enter a valid IBAN number',
countryNotSupported: 'The country code %s is not supported',
country: 'Please enter a valid IBAN number in %s',
countries: {
AD: 'Andorra',
AE: 'United Arab Emirates',
AL: 'Albania',
AO: 'Angola',
AT: 'Austria',
AZ: 'Azerbaijan',
BA: 'Bosnia and Herzegovina',
BE: 'Belgium',
BF: 'Burkina Faso',
BG: 'Bulgaria',
BH: 'Bahrain',
BI: 'Burundi',
BJ: 'Benin',
BR: 'Brazil',
CH: 'Switzerland',
CI: 'Ivory Coast',
CM: 'Cameroon',
CR: 'Costa Rica',
CV: 'Cape Verde',
CY: 'Cyprus',
CZ: 'Czech Republic',
DE: 'Germany',
DK: 'Denmark',
DO: 'Dominica',
DZ: 'Algeria',
EE: 'Estonia',
ES: 'Spain',
FI: 'Finland',
FO: 'Faroe Islands',
FR: 'France',
GB: 'United Kingdom',
GE: 'Georgia',
GI: 'Gibraltar',
GL: 'Greenland',
GR: 'Greece',
GT: 'Guatemala',
HR: 'Croatia',
HU: 'Hungary',
IE: 'Ireland',
IL: 'Israel',
IR: 'Iran',
IS: 'Iceland',
IT: 'Italy',
JO: 'Jordan',
KW: 'Kuwait',
KZ: 'Kazakhstan',
LB: 'Lebanon',
LI: 'Liechtenstein',
LT: 'Lithuania',
LU: 'Luxembourg',
LV: 'Latvia',
MC: 'Monaco',
MD: 'Moldova',
ME: 'Montenegro',
MG: 'Madagascar',
MK: 'Macedonia',
ML: 'Mali',
MR: 'Mauritania',
MT: 'Malta',
MU: 'Mauritius',
MZ: 'Mozambique',
NL: 'Netherlands',
NO: 'Norway',
PK: 'Pakistan',
PL: 'Poland',
PS: 'Palestine',
PT: 'Portugal',
QA: 'Qatar',
RO: 'Romania',
RS: 'Serbia',
SA: 'Saudi Arabia',
SE: 'Sweden',
SI: 'Slovenia',
SK: 'Slovakia',
SM: 'San Marino',
SN: 'Senegal',
TN: 'Tunisia',
TR: 'Turkey',
VG: 'Virgin Islands, British'
}
});
$.fn.bootstrapValidator.validators.iban = {
html5Attributes: {
message: 'message',
country: 'country'
},
// http://www.swift.com/dsp/resources/documents/IBAN_Registry.pdf
// http://en.wikipedia.org/wiki/International_Bank_Account_Number#IBAN_formats_by_country
REGEX: {
AD: 'AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}', // Andorra
AE: 'AE[0-9]{2}[0-9]{3}[0-9]{16}', // United Arab Emirates
AL: 'AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}', // Albania
AO: 'AO[0-9]{2}[0-9]{21}', // Angola
AT: 'AT[0-9]{2}[0-9]{5}[0-9]{11}', // Austria
AZ: 'AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}', // Azerbaijan
BA: 'BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}', // Bosnia and Herzegovina
BE: 'BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}', // Belgium
BF: 'BF[0-9]{2}[0-9]{23}', // Burkina Faso
BG: 'BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}', // Bulgaria
BH: 'BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}', // Bahrain
BI: 'BI[0-9]{2}[0-9]{12}', // Burundi
BJ: 'BJ[0-9]{2}[A-Z]{1}[0-9]{23}', // Benin
BR: 'BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]', // Brazil
CH: 'CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}', // Switzerland
CI: 'CI[0-9]{2}[A-Z]{1}[0-9]{23}', // Ivory Coast
CM: 'CM[0-9]{2}[0-9]{23}', // Cameroon
CR: 'CR[0-9]{2}[0-9]{3}[0-9]{14}', // Costa Rica
CV: 'CV[0-9]{2}[0-9]{21}', // Cape Verde
CY: 'CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}', // Cyprus
CZ: 'CZ[0-9]{2}[0-9]{20}', // Czech Republic
DE: 'DE[0-9]{2}[0-9]{8}[0-9]{10}', // Germany
DK: 'DK[0-9]{2}[0-9]{14}', // Denmark
DO: 'DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}', // Dominican Republic
DZ: 'DZ[0-9]{2}[0-9]{20}', // Algeria
EE: 'EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}', // Estonia
ES: 'ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}', // Spain
FI: 'FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}', // Finland
FO: 'FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}', // Faroe Islands
FR: 'FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}', // France
GB: 'GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}', // United Kingdom
GE: 'GE[0-9]{2}[A-Z]{2}[0-9]{16}', // Georgia
GI: 'GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}', // Gibraltar
GL: 'GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}', // Greenland
GR: 'GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}', // Greece
GT: 'GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}', // Guatemala
HR: 'HR[0-9]{2}[0-9]{7}[0-9]{10}', // Croatia
HU: 'HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}', // Hungary
IE: 'IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}', // Ireland
IL: 'IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}', // Israel
IR: 'IR[0-9]{2}[0-9]{22}', // Iran
IS: 'IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}', // Iceland
IT: 'IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}', // Italy
JO: 'JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}', // Jordan
KW: 'KW[0-9]{2}[A-Z]{4}[0-9]{22}', // Kuwait
KZ: 'KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}', // Kazakhstan
LB: 'LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}', // Lebanon
LI: 'LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}', // Liechtenstein
LT: 'LT[0-9]{2}[0-9]{5}[0-9]{11}', // Lithuania
LU: 'LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}', // Luxembourg
LV: 'LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}', // Latvia
MC: 'MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}', // Monaco
MD: 'MD[0-9]{2}[A-Z0-9]{20}', // Moldova
ME: 'ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}', // Montenegro
MG: 'MG[0-9]{2}[0-9]{23}', // Madagascar
MK: 'MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}', // Macedonia
ML: 'ML[0-9]{2}[A-Z]{1}[0-9]{23}', // Mali
MR: 'MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}', // Mauritania
MT: 'MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}', // Malta
MU: 'MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}', // Mauritius
MZ: 'MZ[0-9]{2}[0-9]{21}', // Mozambique
NL: 'NL[0-9]{2}[A-Z]{4}[0-9]{10}', // Netherlands
NO: 'NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}', // Norway
PK: 'PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}', // Pakistan
PL: 'PL[0-9]{2}[0-9]{8}[0-9]{16}', // Poland
PS: 'PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}', // Palestinian
PT: 'PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}', // Portugal
QA: 'QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}', // Qatar
RO: 'RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}', // Romania
RS: 'RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}', // Serbia
SA: 'SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}', // Saudi Arabia
SE: 'SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}', // Sweden
SI: 'SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}', // Slovenia
SK: 'SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}', // Slovakia
SM: 'SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}', // San Marino
SN: 'SN[0-9]{2}[A-Z]{1}[0-9]{23}', // Senegal
TN: 'TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}', // Tunisia
TR: 'TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}', // Turkey
VG: 'VG[0-9]{2}[A-Z]{4}[0-9]{16}' // Virgin Islands, British
},
/**
* Validate an International Bank Account Number (IBAN)
* To test it, take the sample IBAN from
* http://www.nordea.com/Our+services/International+products+and+services/Cash+Management/IBAN+countries/908462.html
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* - country: The ISO 3166-1 country code. It can be
* - A country code
* - Name of field which its value defines the country code
* - Name of callback function that returns the country code
* - A callback function that returns the country code
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
value = value.replace(/[^a-zA-Z0-9]/g, '').toUpperCase();
var country = options.country;
if (!country) {
country = value.substr(0, 2);
} else if (typeof country !== 'string' || !this.REGEX[country]) {
// Determine the country code
country = validator.getDynamicOption($field, country);
}
if (!this.REGEX[country]) {
return {
valid: false,
message: $.fn.bootstrapValidator.helpers.format($.fn.bootstrapValidator.i18n.iban.countryNotSupported, country)
};
}
if (!(new RegExp('^' + this.REGEX[country] + '$')).test(value)) {
return {
valid: false,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.iban.country, $.fn.bootstrapValidator.i18n.iban.countries[country])
};
}
value = value.substr(4) + value.substr(0, 4);
value = $.map(value.split(''), function(n) {
var code = n.charCodeAt(0);
return (code >= 'A'.charCodeAt(0) && code <= 'Z'.charCodeAt(0))
// Replace A, B, C, ..., Z with 10, 11, ..., 35
? (code - 'A'.charCodeAt(0) + 10)
: n;
});
value = value.join('');
var temp = parseInt(value.substr(0, 1), 10),
length = value.length;
for (var i = 1; i < length; ++i) {
temp = (temp * 10 + parseInt(value.substr(i, 1), 10)) % 97;
}
return {
valid: (temp === 1),
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.iban.country, $.fn.bootstrapValidator.i18n.iban.countries[country])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.id = $.extend($.fn.bootstrapValidator.i18n.id || {}, {
'default': 'Please enter a valid identification number',
countryNotSupported: 'The country code %s is not supported',
country: 'Please enter a valid identification number in %s',
countries: {
BA: 'Bosnia and Herzegovina',
BG: 'Bulgaria',
BR: 'Brazil',
CH: 'Switzerland',
CL: 'Chile',
CN: 'China',
CZ: 'Czech Republic',
DK: 'Denmark',
EE: 'Estonia',
ES: 'Spain',
FI: 'Finland',
HR: 'Croatia',
IE: 'Ireland',
IS: 'Iceland',
LT: 'Lithuania',
LV: 'Latvia',
ME: 'Montenegro',
MK: 'Macedonia',
NL: 'Netherlands',
RO: 'Romania',
RS: 'Serbia',
SE: 'Sweden',
SI: 'Slovenia',
SK: 'Slovakia',
SM: 'San Marino',
TH: 'Thailand',
ZA: 'South Africa'
}
});
$.fn.bootstrapValidator.validators.id = {
html5Attributes: {
message: 'message',
country: 'country'
},
// Supported country codes
COUNTRY_CODES: [
'BA', 'BG', 'BR', 'CH', 'CL', 'CN', 'CZ', 'DK', 'EE', 'ES', 'FI', 'HR', 'IE', 'IS', 'LT', 'LV', 'ME', 'MK', 'NL',
'RO', 'RS', 'SE', 'SI', 'SK', 'SM', 'TH', 'ZA'
],
/**
* Validate identification number in different countries
*
* @see http://en.wikipedia.org/wiki/National_identification_number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - country: The ISO 3166-1 country code. It can be
* - One of country code defined in COUNTRY_CODES
* - Name of field which its value defines the country code
* - Name of callback function that returns the country code
* - A callback function that returns the country code
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var country = options.country;
if (!country) {
country = value.substr(0, 2);
} else if (typeof country !== 'string' || $.inArray(country.toUpperCase(), this.COUNTRY_CODES) === -1) {
// Determine the country code
country = validator.getDynamicOption($field, country);
}
if ($.inArray(country, this.COUNTRY_CODES) === -1) {
return { valid: false, message: $.fn.bootstrapValidator.helpers.format($.fn.bootstrapValidator.i18n.id.countryNotSupported, country) };
}
var method = ['_', country.toLowerCase()].join('');
return this[method](value)
? true
: {
valid: false,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.id.country, $.fn.bootstrapValidator.i18n.id.countries[country.toUpperCase()])
};
},
/**
* Validate Unique Master Citizen Number which uses in
* - Bosnia and Herzegovina (country code: BA)
* - Macedonia (MK)
* - Montenegro (ME)
* - Serbia (RS)
* - Slovenia (SI)
*
* @see http://en.wikipedia.org/wiki/Unique_Master_Citizen_Number
* @param {String} value The ID
* @param {String} countryCode The ISO country code, can be BA, MK, ME, RS, SI
* @returns {Boolean}
*/
_validateJMBG: function(value, countryCode) {
if (!/^\d{13}$/.test(value)) {
return false;
}
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 3), 10),
rr = parseInt(value.substr(7, 2), 10),
k = parseInt(value.substr(12, 1), 10);
// Validate date of birth
// FIXME: Validate the year of birth
if (day > 31 || month > 12) {
return false;
}
// Validate checksum
var sum = 0;
for (var i = 0; i < 6; i++) {
sum += (7 - i) * (parseInt(value.charAt(i), 10) + parseInt(value.charAt(i + 6), 10));
}
sum = 11 - sum % 11;
if (sum === 10 || sum === 11) {
sum = 0;
}
if (sum !== k) {
return false;
}
// Validate political region
// rr is the political region of birth, which can be in ranges:
// 10-19: Bosnia and Herzegovina
// 20-29: Montenegro
// 30-39: Croatia (not used anymore)
// 41-49: Macedonia
// 50-59: Slovenia (only 50 is used)
// 70-79: Central Serbia
// 80-89: Serbian province of Vojvodina
// 90-99: Kosovo
switch (countryCode.toUpperCase()) {
case 'BA':
return (10 <= rr && rr <= 19);
case 'MK':
return (41 <= rr && rr <= 49);
case 'ME':
return (20 <= rr && rr <= 29);
case 'RS':
return (70 <= rr && rr <= 99);
case 'SI':
return (50 <= rr && rr <= 59);
default:
return true;
}
},
_ba: function(value) {
return this._validateJMBG(value, 'BA');
},
_mk: function(value) {
return this._validateJMBG(value, 'MK');
},
_me: function(value) {
return this._validateJMBG(value, 'ME');
},
_rs: function(value) {
return this._validateJMBG(value, 'RS');
},
/**
* Examples: 0101006500006
*/
_si: function(value) {
return this._validateJMBG(value, 'SI');
},
/**
* Validate Bulgarian national identification number (EGN)
* Examples:
* - Valid: 7523169263, 8032056031, 803205 603 1, 8001010008, 7501020018, 7552010005, 7542011030
* - Invalid: 8019010008
*
* @see http://en.wikipedia.org/wiki/Uniform_civil_number
* @param {String} value The ID
* @returns {Boolean}
*/
_bg: function(value) {
if (!/^\d{10}$/.test(value) && !/^\d{6}\s\d{3}\s\d{1}$/.test(value)) {
return false;
}
value = value.replace(/\s/g, '');
// Check the birth date
var year = parseInt(value.substr(0, 2), 10) + 1900,
month = parseInt(value.substr(2, 2), 10),
day = parseInt(value.substr(4, 2), 10);
if (month > 40) {
year += 100;
month -= 40;
} else if (month > 20) {
year -= 100;
month -= 20;
}
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
var sum = 0,
weight = [2, 4, 8, 5, 10, 9, 7, 3, 6];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (sum % 11) % 10;
return (sum + '' === value.substr(9, 1));
},
/**
* Validate Brazilian national identification number (CPF)
* Examples:
* - Valid: 39053344705, 390.533.447-05, 111.444.777-35
* - Invalid: 231.002.999-00
*
* @see http://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F%C3%ADsicas
* @param {String} value The ID
* @returns {Boolean}
*/
_br: function(value) {
if (/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(value)) {
return false;
}
if (!/^\d{11}$/.test(value) && !/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(value)) {
return false;
}
value = value.replace(/\./g, '').replace(/-/g, '');
var d1 = 0;
for (var i = 0; i < 9; i++) {
d1 += (10 - i) * parseInt(value.charAt(i), 10);
}
d1 = 11 - d1 % 11;
if (d1 === 10 || d1 === 11) {
d1 = 0;
}
if (d1 + '' !== value.charAt(9)) {
return false;
}
var d2 = 0;
for (i = 0; i < 10; i++) {
d2 += (11 - i) * parseInt(value.charAt(i), 10);
}
d2 = 11 - d2 % 11;
if (d2 === 10 || d2 === 11) {
d2 = 0;
}
return (d2 + '' === value.charAt(10));
},
/**
* Validate Swiss Social Security Number (AHV-Nr/No AVS)
* Examples:
* - Valid: 756.1234.5678.95, 7561234567895
*
* @see http://en.wikipedia.org/wiki/National_identification_number#Switzerland
* @see http://www.bsv.admin.ch/themen/ahv/00011/02185/index.html?lang=de
* @param {String} value The ID
* @returns {Boolean}
*/
_ch: function(value) {
if (!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(value)) {
return false;
}
value = value.replace(/\D/g, '').substr(3);
var length = value.length,
sum = 0,
weight = (length === 8) ? [3, 1] : [1, 3];
for (var i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i % 2];
}
sum = 10 - sum % 10;
return (sum + '' === value.charAt(length - 1));
},
/**
* Validate Chilean national identification number (RUN/RUT)
* Examples:
* - Valid: 76086428-5, 22060449-7, 12531909-2
*
* @see http://en.wikipedia.org/wiki/National_identification_number#Chile
* @see https://palena.sii.cl/cvc/dte/ee_empresas_emisoras.html for samples
* @param {String} value The ID
* @returns {Boolean}
*/
_cl: function(value) {
if (!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(value)) {
return false;
}
value = value.replace(/\-/g, '');
while (value.length < 9) {
value = '0' + value;
}
var sum = 0,
weight = [3, 2, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 11) {
sum = 0;
} else if (sum === 10) {
sum = 'K';
}
return sum + '' === value.charAt(8).toUpperCase();
},
/**
* Validate Chinese citizen identification number
*
* Rules:
* - For current 18-digit system (since 1st Oct 1999, defined by GB11643—1999 national standard):
* - Digit 0-5: Must be a valid administrative division code of China PR.
* - Digit 6-13: Must be a valid YYYYMMDD date of birth. A future date is tolerated.
* - Digit 14-16: Order code, any integer.
* - Digit 17: An ISO 7064:1983, MOD 11-2 checksum.
* Both upper/lower case of X are tolerated.
* - For deprecated 15-digit system:
* - Digit 0-5: Must be a valid administrative division code of China PR.
* - Digit 6-11: Must be a valid YYMMDD date of birth, indicating the year of 19XX.
* - Digit 12-14: Order code, any integer.
* Lists of valid administrative division codes of China PR can be seen here:
* <http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/>
* Published and maintained by National Bureau of Statistics of China PR.
* NOTE: Current and deprecated codes MUST BOTH be considered valid.
* Many Chinese citizens born in once existed administrative divisions!
*
* @see http://en.wikipedia.org/wiki/Resident_Identity_Card#Identity_card_number
* @param {String} value The ID
* @returns {Boolean}
*/
_cn: function(value) {
// Basic format check (18 or 15 digits, considering X in checksum)
value = value.trim();
if (!/^\d{15}$/.test(value) && !/^\d{17}[\dXx]{1}$/.test(value)) {
return false;
}
// Check China PR Administrative division code
var adminDivisionCodes = {
11: {
0: [0],
1: [[0, 9], [11, 17]],
2: [0, 28, 29]
},
12: {
0: [0],
1: [[0, 16]],
2: [0, 21, 23, 25]
},
13: {
0: [0],
1: [[0, 5], 7, 8, 21, [23, 33], [81, 85]],
2: [[0, 5], [7, 9], [23, 25], 27, 29, 30, 81, 83],
3: [[0, 4], [21, 24]],
4: [[0, 4], 6, 21, [23, 35], 81],
5: [[0, 3], [21, 35], 81, 82],
6: [[0, 4], [21, 38], [81, 84]],
7: [[0, 3], 5, 6, [21, 33]],
8: [[0, 4], [21, 28]],
9: [[0, 3], [21, 30], [81, 84]],
10: [[0, 3], [22, 26], 28, 81, 82],
11: [[0, 2], [21, 28], 81, 82]
},
14: {
0: [0],
1: [0, 1, [5, 10], [21, 23], 81],
2: [[0, 3], 11, 12, [21, 27]],
3: [[0, 3], 11, 21, 22],
4: [[0, 2], 11, 21, [23, 31], 81],
5: [[0, 2], 21, 22, 24, 25, 81],
6: [[0, 3], [21, 24]],
7: [[0, 2], [21, 29], 81],
8: [[0, 2], [21, 30], 81, 82],
9: [[0, 2], [21, 32], 81],
10: [[0, 2], [21, 34], 81, 82],
11: [[0, 2], [21, 30], 81, 82],
23: [[0, 3], 22, 23, [25, 30], 32, 33]
},
15: {
0: [0],
1: [[0, 5], [21, 25]],
2: [[0, 7], [21, 23]],
3: [[0, 4]],
4: [[0, 4], [21, 26], [28, 30]],
5: [[0, 2], [21, 26], 81],
6: [[0, 2], [21, 27]],
7: [[0, 3], [21, 27], [81, 85]],
8: [[0, 2], [21, 26]],
9: [[0, 2], [21, 29], 81],
22: [[0, 2], [21, 24]],
25: [[0, 2], [22, 31]],
26: [[0, 2], [24, 27], [29, 32], 34],
28: [0, 1, [22, 27]],
29: [0, [21, 23]]
},
21: {
0: [0],
1: [[0, 6], [11, 14], [22, 24], 81],
2: [[0, 4], [11, 13], 24, [81, 83]],
3: [[0, 4], 11, 21, 23, 81],
4: [[0, 4], 11, [21, 23]],
5: [[0, 5], 21, 22],
6: [[0, 4], 24, 81, 82],
7: [[0, 3], 11, 26, 27, 81, 82],
8: [[0, 4], 11, 81, 82],
9: [[0, 5], 11, 21, 22],
10: [[0, 5], 11, 21, 81],
11: [[0, 3], 21, 22],
12: [[0, 2], 4, 21, 23, 24, 81, 82],
13: [[0, 3], 21, 22, 24, 81, 82],
14: [[0, 4], 21, 22, 81]
},
22: {
0: [0],
1: [[0, 6], 12, 22, [81, 83]],
2: [[0, 4], 11, 21, [81, 84]],
3: [[0, 3], 22, 23, 81, 82],
4: [[0, 3], 21, 22],
5: [[0, 3], 21, 23, 24, 81, 82],
6: [[0, 2], 4, 5, [21, 23], 25, 81],
7: [[0, 2], [21, 24], 81],
8: [[0, 2], 21, 22, 81, 82],
24: [[0, 6], 24, 26]
},
23: {
0: [0],
1: [[0, 12], 21, [23, 29], [81, 84]],
2: [[0, 8], 21, [23, 25], 27, [29, 31], 81],
3: [[0, 7], 21, 81, 82],
4: [[0, 7], 21, 22],
5: [[0, 3], 5, 6, [21, 24]],
6: [[0, 6], [21, 24]],
7: [[0, 16], 22, 81],
8: [[0, 5], 11, 22, 26, 28, 33, 81, 82],
9: [[0, 4], 21],
10: [[0, 5], 24, 25, 81, [83, 85]],
11: [[0, 2], 21, 23, 24, 81, 82],
12: [[0, 2], [21, 26], [81, 83]],
27: [[0, 4], [21, 23]]
},
31: {
0: [0],
1: [0, 1, [3, 10], [12, 20]],
2: [0, 30]
},
32: {
0: [0],
1: [[0, 7], 11, [13, 18], 24, 25],
2: [[0, 6], 11, 81, 82],
3: [[0, 5], 11, 12, [21, 24], 81, 82],
4: [[0, 2], 4, 5, 11, 12, 81, 82],
5: [[0, 9], [81, 85]],
6: [[0, 2], 11, 12, 21, 23, [81, 84]],
7: [0, 1, 3, 5, 6, [21, 24]],
8: [[0, 4], 11, 26, [29, 31]],
9: [[0, 3], [21, 25], 28, 81, 82],
10: [[0, 3], 11, 12, 23, 81, 84, 88],
11: [[0, 2], 11, 12, [81, 83]],
12: [[0, 4], [81, 84]],
13: [[0, 2], 11, [21, 24]]
},
33: {
0: [0],
1: [[0, 6], [8, 10], 22, 27, 82, 83, 85],
2: [0, 1, [3, 6], 11, 12, 25, 26, [81, 83]],
3: [[0, 4], 22, 24, [26, 29], 81, 82],
4: [[0, 2], 11, 21, 24, [81, 83]],
5: [[0, 3], [21, 23]],
6: [[0, 2], 21, 24, [81, 83]],
7: [[0, 3], 23, 26, 27, [81, 84]],
8: [[0, 3], 22, 24, 25, 81],
9: [[0, 3], 21, 22],
10: [[0, 4], [21, 24], 81, 82],
11: [[0, 2], [21, 27], 81]
},
34: {
0: [0],
1: [[0, 4], 11, [21, 24], 81],
2: [[0, 4], 7, 8, [21, 23], 25],
3: [[0, 4], 11, [21, 23]],
4: [[0, 6], 21],
5: [[0, 4], 6, [21, 23]],
6: [[0, 4], 21],
7: [[0, 3], 11, 21],
8: [[0, 3], 11, [22, 28], 81],
10: [[0, 4], [21, 24]],
11: [[0, 3], 22, [24, 26], 81, 82],
12: [[0, 4], 21, 22, 25, 26, 82],
13: [[0, 2], [21, 24]],
14: [[0, 2], [21, 24]],
15: [[0, 3], [21, 25]],
16: [[0, 2], [21, 23]],
17: [[0, 2], [21, 23]],
18: [[0, 2], [21, 25], 81]
},
35: {
0: [0],
1: [[0, 5], 11, [21, 25], 28, 81, 82],
2: [[0, 6], [11, 13]],
3: [[0, 5], 22],
4: [[0, 3], 21, [23, 30], 81],
5: [[0, 5], 21, [24, 27], [81, 83]],
6: [[0, 3], [22, 29], 81],
7: [[0, 2], [21, 25], [81, 84]],
8: [[0, 2], [21, 25], 81],
9: [[0, 2], [21, 26], 81, 82]
},
36: {
0: [0],
1: [[0, 5], 11, [21, 24]],
2: [[0, 3], 22, 81],
3: [[0, 2], 13, [21, 23]],
4: [[0, 3], 21, [23, 30], 81, 82],
5: [[0, 2], 21],
6: [[0, 2], 22, 81],
7: [[0, 2], [21, 35], 81, 82],
8: [[0, 3], [21, 30], 81],
9: [[0, 2], [21, 26], [81, 83]],
10: [[0, 2], [21, 30]],
11: [[0, 2], [21, 30], 81]
},
37: {
0: [0],
1: [[0, 5], 12, 13, [24, 26], 81],
2: [[0, 3], 5, [11, 14], [81, 85]],
3: [[0, 6], [21, 23]],
4: [[0, 6], 81],
5: [[0, 3], [21, 23]],
6: [[0, 2], [11, 13], 34, [81, 87]],
7: [[0, 5], 24, 25, [81, 86]],
8: [[0, 2], 11, [26, 32], [81, 83]],
9: [[0, 3], 11, 21, 23, 82, 83],
10: [[0, 2], [81, 83]],
11: [[0, 3], 21, 22],
12: [[0, 3]],
13: [[0, 2], 11, 12, [21, 29]],
14: [[0, 2], [21, 28], 81, 82],
15: [[0, 2], [21, 26], 81],
16: [[0, 2], [21, 26]],
17: [[0, 2], [21, 28]]
},
41: {
0: [0],
1: [[0, 6], 8, 22, [81, 85]],
2: [[0, 5], 11, [21, 25]],
3: [[0, 7], 11, [22, 29], 81],
4: [[0, 4], 11, [21, 23], 25, 81, 82],
5: [[0, 3], 5, 6, 22, 23, 26, 27, 81],
6: [[0, 3], 11, 21, 22],
7: [[0, 4], 11, 21, [24, 28], 81, 82],
8: [[0, 4], 11, [21, 23], 25, [81, 83]],
9: [[0, 2], 22, 23, [26, 28]],
10: [[0, 2], [23, 25], 81, 82],
11: [[0, 4], [21, 23]],
12: [[0, 2], 21, 22, 24, 81, 82],
13: [[0, 3], [21, 30], 81],
14: [[0, 3], [21, 26], 81],
15: [[0, 3], [21, 28]],
16: [[0, 2], [21, 28], 81],
17: [[0, 2], [21, 29]],
90: [0, 1]
},
42: {
0: [0],
1: [[0, 7], [11, 17]],
2: [[0, 5], 22, 81],
3: [[0, 3], [21, 25], 81],
5: [[0, 6], [25, 29], [81, 83]],
6: [[0, 2], 6, 7, [24, 26], [82, 84]],
7: [[0, 4]],
8: [[0, 2], 4, 21, 22, 81],
9: [[0, 2], [21, 23], 81, 82, 84],
10: [[0, 3], [22, 24], 81, 83, 87],
11: [[0, 2], [21, 27], 81, 82],
12: [[0, 2], [21, 24], 81],
13: [[0, 3], 21, 81],
28: [[0, 2], 22, 23, [25, 28]],
90: [0, [4, 6], 21]
},
43: {
0: [0],
1: [[0, 5], 11, 12, 21, 22, 24, 81],
2: [[0, 4], 11, 21, [23, 25], 81],
3: [[0, 2], 4, 21, 81, 82],
4: [0, 1, [5, 8], 12, [21, 24], 26, 81, 82],
5: [[0, 3], 11, [21, 25], [27, 29], 81],
6: [[0, 3], 11, 21, 23, 24, 26, 81, 82],
7: [[0, 3], [21, 26], 81],
8: [[0, 2], 11, 21, 22],
9: [[0, 3], [21, 23], 81],
10: [[0, 3], [21, 28], 81],
11: [[0, 3], [21, 29]],
12: [[0, 2], [21, 30], 81],
13: [[0, 2], 21, 22, 81, 82],
31: [0, 1, [22, 27], 30]
},
44: {
0: [0],
1: [[0, 7], [11, 16], 83, 84],
2: [[0, 5], 21, 22, 24, 29, 32, 33, 81, 82],
3: [0, 1, [3, 8]],
4: [[0, 4]],
5: [0, 1, [6, 15], 23, 82, 83],
6: [0, 1, [4, 8]],
7: [0, 1, [3, 5], 81, [83, 85]],
8: [[0, 4], 11, 23, 25, [81, 83]],
9: [[0, 3], 23, [81, 83]],
12: [[0, 3], [23, 26], 83, 84],
13: [[0, 3], [22, 24], 81],
14: [[0, 2], [21, 24], 26, 27, 81],
15: [[0, 2], 21, 23, 81],
16: [[0, 2], [21, 25]],
17: [[0, 2], 21, 23, 81],
18: [[0, 3], 21, 23, [25, 27], 81, 82],
19: [0],
20: [0],
51: [[0, 3], 21, 22],
52: [[0, 3], 21, 22, 24, 81],
53: [[0, 2], [21, 23], 81]
},
45: {
0: [0],
1: [[0, 9], [21, 27]],
2: [[0, 5], [21, 26]],
3: [[0, 5], 11, 12, [21, 32]],
4: [0, 1, [3, 6], 11, [21, 23], 81],
5: [[0, 3], 12, 21],
6: [[0, 3], 21, 81],
7: [[0, 3], 21, 22],
8: [[0, 4], 21, 81],
9: [[0, 3], [21, 24], 81],
10: [[0, 2], [21, 31]],
11: [[0, 2], [21, 23]],
12: [[0, 2], [21, 29], 81],
13: [[0, 2], [21, 24], 81],
14: [[0, 2], [21, 25], 81]
},
46: {
0: [0],
1: [0, 1, [5, 8]],
2: [0, 1],
3: [0, [21, 23]],
90: [[0, 3], [5, 7], [21, 39]]
},
50: {
0: [0],
1: [[0, 19]],
2: [0, [22, 38], [40, 43]],
3: [0, [81, 84]]
},
51: {
0: [0],
1: [0, 1, [4, 8], [12, 15], [21, 24], 29, 31, 32, [81, 84]],
3: [[0, 4], 11, 21, 22],
4: [[0, 3], 11, 21, 22],
5: [[0, 4], 21, 22, 24, 25],
6: [0, 1, 3, 23, 26, [81, 83]],
7: [0, 1, 3, 4, [22, 27], 81],
8: [[0, 2], 11, 12, [21, 24]],
9: [[0, 4], [21, 23]],
10: [[0, 2], 11, 24, 25, 28],
11: [[0, 2], [11, 13], 23, 24, 26, 29, 32, 33, 81],
13: [[0, 4], [21, 25], 81],
14: [[0, 2], [21, 25]],
15: [[0, 3], [21, 29]],
16: [[0, 3], [21, 23], 81],
17: [[0, 3], [21, 25], 81],
18: [[0, 3], [21, 27]],
19: [[0, 3], [21, 23]],
20: [[0, 2], 21, 22, 81],
32: [0, [21, 33]],
33: [0, [21, 38]],
34: [0, 1, [22, 37]]
},
52: {
0: [0],
1: [[0, 3], [11, 15], [21, 23], 81],
2: [0, 1, 3, 21, 22],
3: [[0, 3], [21, 30], 81, 82],
4: [[0, 2], [21, 25]],
5: [[0, 2], [21, 27]],
6: [[0, 3], [21, 28]],
22: [0, 1, [22, 30]],
23: [0, 1, [22, 28]],
24: [0, 1, [22, 28]],
26: [0, 1, [22, 36]],
27: [[0, 2], 22, 23, [25, 32]]
},
53: {
0: [0],
1: [[0, 3], [11, 14], 21, 22, [24, 29], 81],
3: [[0, 2], [21, 26], 28, 81],
4: [[0, 2], [21, 28]],
5: [[0, 2], [21, 24]],
6: [[0, 2], [21, 30]],
7: [[0, 2], [21, 24]],
8: [[0, 2], [21, 29]],
9: [[0, 2], [21, 27]],
23: [0, 1, [22, 29], 31],
25: [[0, 4], [22, 32]],
26: [0, 1, [21, 28]],
27: [0, 1, [22, 30]], 28: [0, 1, 22, 23],
29: [0, 1, [22, 32]],
31: [0, 2, 3, [22, 24]],
34: [0, [21, 23]],
33: [0, 21, [23, 25]],
35: [0, [21, 28]]
},
54: {
0: [0],
1: [[0, 2], [21, 27]],
21: [0, [21, 29], 32, 33],
22: [0, [21, 29], [31, 33]],
23: [0, 1, [22, 38]],
24: [0, [21, 31]],
25: [0, [21, 27]],
26: [0, [21, 27]]
},
61: {
0: [0],
1: [[0, 4], [11, 16], 22, [24, 26]],
2: [[0, 4], 22],
3: [[0, 4], [21, 24], [26, 31]],
4: [[0, 4], [22, 31], 81],
5: [[0, 2], [21, 28], 81, 82],
6: [[0, 2], [21, 32]],
7: [[0, 2], [21, 30]],
8: [[0, 2], [21, 31]],
9: [[0, 2], [21, 29]],
10: [[0, 2], [21, 26]]
},
62: {
0: [0],
1: [[0, 5], 11, [21, 23]],
2: [0, 1],
3: [[0, 2], 21],
4: [[0, 3], [21, 23]],
5: [[0, 3], [21, 25]],
6: [[0, 2], [21, 23]],
7: [[0, 2], [21, 25]],
8: [[0, 2], [21, 26]],
9: [[0, 2], [21, 24], 81, 82],
10: [[0, 2], [21, 27]],
11: [[0, 2], [21, 26]],
12: [[0, 2], [21, 28]],
24: [0, 21, [24, 29]],
26: [0, 21, [23, 30]],
29: [0, 1, [21, 27]],
30: [0, 1, [21, 27]]
},
63: {
0: [0],
1: [[0, 5], [21, 23]],
2: [0, 2, [21, 25]],
21: [0, [21, 23], [26, 28]],
22: [0, [21, 24]],
23: [0, [21, 24]],
25: [0, [21, 25]],
26: [0, [21, 26]],
27: [0, 1, [21, 26]],
28: [[0, 2], [21, 23]]
},
64: {
0: [0],
1: [0, 1, [4, 6], 21, 22, 81],
2: [[0, 3], 5, [21, 23]],
3: [[0, 3], [21, 24], 81],
4: [[0, 2], [21, 25]],
5: [[0, 2], 21, 22]
},
65: {
0: [0],
1: [[0, 9], 21],
2: [[0, 5]],
21: [0, 1, 22, 23],
22: [0, 1, 22, 23],
23: [[0, 3], [23, 25], 27, 28],
28: [0, 1, [22, 29]],
29: [0, 1, [22, 29]],
30: [0, 1, [22, 24]], 31: [0, 1, [21, 31]],
32: [0, 1, [21, 27]],
40: [0, 2, 3, [21, 28]],
42: [[0, 2], 21, [23, 26]],
43: [0, 1, [21, 26]],
90: [[0, 4]], 27: [[0, 2], 22, 23]
},
71: { 0: [0] },
81: { 0: [0] },
82: { 0: [0] }
};
var provincial = parseInt(value.substr(0, 2), 10),
prefectural = parseInt(value.substr(2, 2), 10),
county = parseInt(value.substr(4, 2), 10);
if (!adminDivisionCodes[provincial] || !adminDivisionCodes[provincial][prefectural]) {
return false;
}
var inRange = false,
rangeDef = adminDivisionCodes[provincial][prefectural];
for (var i = 0; i < rangeDef.length; i++) {
if (($.isArray(rangeDef[i]) && rangeDef[i][0] <= county && county <= rangeDef[i][1])
|| (!$.isArray(rangeDef[i]) && county === rangeDef[i]))
{
inRange = true;
break;
}
}
if (!inRange) {
return false;
}
// Check date of birth
var dob;
if (value.length === 18) {
dob = value.substr(6, 8);
} else /* length == 15 */ {
dob = '19' + value.substr(6, 6);
}
var year = parseInt(dob.substr(0, 4), 10),
month = parseInt(dob.substr(4, 2), 10),
day = parseInt(dob.substr(6, 2), 10);
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Check checksum (18-digit system only)
if (value.length === 18) {
var sum = 0,
weight = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
for (i = 0; i < 17; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (12 - (sum % 11)) % 11;
var checksum = (value.charAt(17).toUpperCase() !== 'X') ? parseInt(value.charAt(17), 10) : 10;
return checksum === sum;
}
return true;
},
/**
* Validate Czech national identification number (RC)
* Examples:
* - Valid: 7103192745, 991231123
* - Invalid: 1103492745, 590312123
*
* @param {String} value The ID
* @returns {Boolean}
*/
_cz: function(value) {
if (!/^\d{9,10}$/.test(value)) {
return false;
}
var year = 1900 + parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10) % 50 % 20,
day = parseInt(value.substr(4, 2), 10);
if (value.length === 9) {
if (year >= 1980) {
year -= 100;
}
if (year > 1953) {
return false;
}
} else if (year < 1954) {
year += 100;
}
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Check that the birth date is not in the future
if (value.length === 10) {
var check = parseInt(value.substr(0, 9), 10) % 11;
if (year < 1985) {
check = check % 10;
}
return (check + '' === value.substr(9, 1));
}
return true;
},
/**
* Validate Danish Personal Identification number (CPR)
* Examples:
* - Valid: 2110625629, 211062-5629
* - Invalid: 511062-5629
*
* @see https://en.wikipedia.org/wiki/Personal_identification_number_(Denmark)
* @param {String} value The ID
* @returns {Boolean}
*/
_dk: function(value) {
if (!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(value)) {
return false;
}
value = value.replace(/-/g, '');
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 2), 10);
switch (true) {
case ('5678'.indexOf(value.charAt(6)) !== -1 && year >= 58):
year += 1800;
break;
case ('0123'.indexOf(value.charAt(6)) !== -1):
case ('49'.indexOf(value.charAt(6)) !== -1 && year >= 37):
year += 1900;
break;
default:
year += 2000;
break;
}
return $.fn.bootstrapValidator.helpers.date(year, month, day);
},
/**
* Validate Estonian Personal Identification Code (isikukood)
* Examples:
* - Valid: 37605030299
*
* @see http://et.wikipedia.org/wiki/Isikukood
* @param {String} value The ID
* @returns {Boolean}
*/
_ee: function(value) {
// Use the same format as Lithuanian Personal Code
return this._lt(value);
},
/**
* Validate Spanish personal identity code (DNI)
* Support i) DNI (for Spanish citizens) and ii) NIE (for foreign people)
*
* Examples:
* - Valid: i) 54362315K, 54362315-K; ii) X2482300W, X-2482300W, X-2482300-W
* - Invalid: i) 54362315Z; ii) X-2482300A
*
* @see https://en.wikipedia.org/wiki/National_identification_number#Spain
* @param {String} value The ID
* @returns {Boolean}
*/
_es: function(value) {
if (!/^[0-9A-Z]{8}[-]{0,1}[0-9A-Z]$/.test(value) // DNI
&& !/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-Z]$/.test(value)) { // NIE
return false;
}
value = value.replace(/-/g, '');
var index = 'XYZ'.indexOf(value.charAt(0));
if (index !== -1) {
// It is NIE number
value = index + value.substr(1) + '';
}
var check = parseInt(value.substr(0, 8), 10);
check = 'TRWAGMYFPDXBNJZSQVHLCKE'[check % 23];
return (check === value.substr(8, 1));
},
/**
* Validate Finnish Personal Identity Code (HETU)
* Examples:
* - Valid: 311280-888Y, 131052-308T
* - Invalid: 131052-308U, 310252-308Y
*
* @param {String} value The ID
* @returns {Boolean}
*/
_fi: function(value) {
if (!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(value)) {
return false;
}
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 2), 10),
centuries = {
'+': 1800,
'-': 1900,
'A': 2000
};
year = centuries[value.charAt(6)] + year;
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
var individual = parseInt(value.substr(7, 3), 10);
if (individual < 2) {
return false;
}
var n = value.substr(0, 6) + value.substr(7, 3) + '';
n = parseInt(n, 10);
return '0123456789ABCDEFHJKLMNPRSTUVWXY'.charAt(n % 31) === value.charAt(10);
},
/**
* Validate Croatian personal identification number (OIB)
* Examples:
* - Valid: 33392005961
* - Invalid: 33392005962
*
* @param {String} value The ID
* @returns {Boolean}
*/
_hr: function(value) {
if (!/^[0-9]{11}$/.test(value)) {
return false;
}
return $.fn.bootstrapValidator.helpers.mod11And10(value);
},
/**
* Validate Irish Personal Public Service Number (PPS)
* Examples:
* - Valid: 6433435F, 6433435FT, 6433435FW, 6433435OA, 6433435IH, 1234567TW, 1234567FA
* - Invalid: 6433435E, 6433435VH
*
* @see https://en.wikipedia.org/wiki/Personal_Public_Service_Number
* @param {String} value The ID
* @returns {Boolean}
*/
_ie: function(value) {
if (!/^\d{7}[A-W][AHWTX]?$/.test(value)) {
return false;
}
var getCheckDigit = function(value) {
while (value.length < 7) {
value = '0' + value;
}
var alphabet = 'WABCDEFGHIJKLMNOPQRSTUV',
sum = 0;
for (var i = 0; i < 7; i++) {
sum += parseInt(value.charAt(i), 10) * (8 - i);
}
sum += 9 * alphabet.indexOf(value.substr(7));
return alphabet[sum % 23];
};
// 2013 format
if (value.length === 9 && ('A' === value.charAt(8) || 'H' === value.charAt(8))) {
return value.charAt(7) === getCheckDigit(value.substr(0, 7) + value.substr(8) + '');
}
// The old format
else {
return value.charAt(7) === getCheckDigit(value.substr(0, 7));
}
},
/**
* Validate Iceland national identification number (Kennitala)
* Examples:
* - Valid: 120174-3399, 1201743399, 0902862349
*
* @see http://en.wikipedia.org/wiki/Kennitala
* @param {String} value The ID
* @returns {Boolean}
*/
_is: function(value) {
if (!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(value)) {
return false;
}
value = value.replace(/-/g, '');
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 2), 10),
century = parseInt(value.charAt(9), 10);
year = (century === 9) ? (1900 + year) : ((20 + century) * 100 + year);
if (!$.fn.bootstrapValidator.helpers.date(year, month, day, true)) {
return false;
}
// Validate the check digit
var sum = 0,
weight = [3, 2, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
return (sum + '' === value.charAt(8));
},
/**
* Validate Lithuanian Personal Code (Asmens kodas)
* Examples:
* - Valid: 38703181745
* - Invalid: 38703181746, 78703181745, 38703421745
*
* @see http://en.wikipedia.org/wiki/National_identification_number#Lithuania
* @see http://www.adomas.org/midi2007/pcode.html
* @param {String} value The ID
* @returns {Boolean}
*/
_lt: function(value) {
if (!/^[0-9]{11}$/.test(value)) {
return false;
}
var gender = parseInt(value.charAt(0), 10),
year = parseInt(value.substr(1, 2), 10),
month = parseInt(value.substr(3, 2), 10),
day = parseInt(value.substr(5, 2), 10),
century = (gender % 2 === 0) ? (17 + gender / 2) : (17 + (gender + 1) / 2);
year = century * 100 + year;
if (!$.fn.bootstrapValidator.helpers.date(year, month, day, true)) {
return false;
}
// Validate the check digit
var sum = 0,
weight = [1, 2, 3, 4, 5, 6, 7, 8, 9, 1];
for (var i = 0; i < 10; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
if (sum !== 10) {
return sum + '' === value.charAt(10);
}
// Re-calculate the check digit
sum = 0;
weight = [3, 4, 5, 6, 7, 8, 9, 1, 2, 3];
for (i = 0; i < 10; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
if (sum === 10) {
sum = 0;
}
return (sum + '' === value.charAt(10));
},
/**
* Validate Latvian Personal Code (Personas kods)
* Examples:
* - Valid: 161175-19997, 16117519997
* - Invalid: 161375-19997
*
* @see http://laacz.lv/2006/11/25/pk-parbaudes-algoritms/
* @param {String} value The ID
* @returns {Boolean}
*/
_lv: function(value) {
if (!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(value)) {
return false;
}
value = value.replace(/\D/g, '');
// Check birth date
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 2), 10);
year = year + 1800 + parseInt(value.charAt(6), 10) * 100;
if (!$.fn.bootstrapValidator.helpers.date(year, month, day, true)) {
return false;
}
// Check personal code
var sum = 0,
weight = [10, 5, 8, 4, 2, 1, 6, 3, 7, 9];
for (var i = 0; i < 10; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (sum + 1) % 11 % 10;
return (sum + '' === value.charAt(10));
},
/**
* Validate Dutch national identification number (BSN)
* Examples:
* - Valid: 111222333, 941331490, 9413.31.490
* - Invalid: 111252333
*
* @see https://nl.wikipedia.org/wiki/Burgerservicenummer
* @param {String} value The ID
* @returns {Boolean}
*/
_nl: function(value) {
while (value.length < 9) {
value = '0' + value;
}
if (!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(value)) {
return false;
}
value = value.replace(/\./g, '');
if (parseInt(value, 10) === 0) {
return false;
}
var sum = 0,
length = value.length;
for (var i = 0; i < length - 1; i++) {
sum += (9 - i) * parseInt(value.charAt(i), 10);
}
sum = sum % 11;
if (sum === 10) {
sum = 0;
}
return (sum + '' === value.charAt(length - 1));
},
/**
* Validate Romanian numerical personal code (CNP)
* Examples:
* - Valid: 1630615123457, 1800101221144
* - Invalid: 8800101221144, 1632215123457, 1630615123458
*
* @see http://en.wikipedia.org/wiki/National_identification_number#Romania
* @param {String} value The ID
* @returns {Boolean}
*/
_ro: function(value) {
if (!/^[0-9]{13}$/.test(value)) {
return false;
}
var gender = parseInt(value.charAt(0), 10);
if (gender === 0 || gender === 7 || gender === 8) {
return false;
}
// Determine the date of birth
var year = parseInt(value.substr(1, 2), 10),
month = parseInt(value.substr(3, 2), 10),
day = parseInt(value.substr(5, 2), 10),
// The year of date is determined base on the gender
centuries = {
'1': 1900, // Male born between 1900 and 1999
'2': 1900, // Female born between 1900 and 1999
'3': 1800, // Male born between 1800 and 1899
'4': 1800, // Female born between 1800 and 1899
'5': 2000, // Male born after 2000
'6': 2000 // Female born after 2000
};
if (day > 31 && month > 12) {
return false;
}
if (gender !== 9) {
year = centuries[gender + ''] + year;
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
}
// Validate the check digit
var sum = 0,
weight = [2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9],
length = value.length;
for (var i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
if (sum === 10) {
sum = 1;
}
return (sum + '' === value.charAt(length - 1));
},
/**
* Validate Swedish personal identity number (personnummer)
* Examples:
* - Valid: 8112289874, 811228-9874, 811228+9874
* - Invalid: 811228-9873
*
* @see http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)
* @param {String} value The ID
* @returns {Boolean}
*/
_se: function(value) {
if (!/^[0-9]{10}$/.test(value) && !/^[0-9]{6}[-|+][0-9]{4}$/.test(value)) {
return false;
}
value = value.replace(/[^0-9]/g, '');
var year = parseInt(value.substr(0, 2), 10) + 1900,
month = parseInt(value.substr(2, 2), 10),
day = parseInt(value.substr(4, 2), 10);
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Validate the last check digit
return $.fn.bootstrapValidator.helpers.luhn(value);
},
/**
* Validate Slovak national identifier number (RC)
* Examples:
* - Valid: 7103192745, 991231123
* - Invalid: 7103192746, 1103492745
*
* @param {String} value The ID
* @returns {Boolean}
*/
_sk: function(value) {
// Slovakia uses the same format as Czech Republic
return this._cz(value);
},
/**
* Validate San Marino citizen number
*
* @see http://en.wikipedia.org/wiki/National_identification_number#San_Marino
* @param {String} value The ID
* @returns {Boolean}
*/
_sm: function(value) {
return /^\d{5}$/.test(value);
},
/**
* Validate Thailand citizen number
* Examples:
* - Valid: 7145620509547, 3688699975685, 2368719339716
* - Invalid: 1100800092310
*
* @see http://en.wikipedia.org/wiki/National_identification_number#Thailand
* @param {String} value The ID
* @returns {Boolean}
*/
_th: function(value) {
if (value.length !== 13) {
return false;
}
var sum = 0;
for (var i = 0; i < 12; i++) {
sum += parseInt(value.charAt(i), 10) * (13 - i);
}
return (11 - sum % 11) % 10 === parseInt(value.charAt(12), 10);
},
/**
* Validate South African ID
* Example:
* - Valid: 8001015009087
* - Invalid: 8001015009287, 8001015009086
*
* @see http://en.wikipedia.org/wiki/National_identification_number#South_Africa
* @param {String} value The ID
* @returns {Boolean}
*/
_za: function(value) {
if (!/^[0-9]{10}[0|1][8|9][0-9]$/.test(value)) {
return false;
}
var year = parseInt(value.substr(0, 2), 10),
currentYear = new Date().getFullYear() % 100,
month = parseInt(value.substr(2, 2), 10),
day = parseInt(value.substr(4, 2), 10);
year = (year >= currentYear) ? (year + 1900) : (year + 2000);
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Validate the last check digit
return $.fn.bootstrapValidator.helpers.luhn(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.identical = $.extend($.fn.bootstrapValidator.i18n.identical || {}, {
'default': 'Please enter the same value'
});
$.fn.bootstrapValidator.validators.identical = {
html5Attributes: {
message: 'message',
field: 'field'
},
/**
* Check if input value equals to value of particular one
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consists of the following key:
* - field: The name of field that will be used to compare with current one
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var compareWith = validator.getFieldElements(options.field);
if (compareWith === null || compareWith.length === 0) {
return true;
}
if (value === compareWith.val()) {
validator.updateStatus(options.field, validator.STATUS_VALID, 'identical');
return true;
} else {
return false;
}
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.imei = $.extend($.fn.bootstrapValidator.i18n.imei || {}, {
'default': 'Please enter a valid IMEI number'
});
$.fn.bootstrapValidator.validators.imei = {
/**
* Validate IMEI (International Mobile Station Equipment Identity)
* Examples:
* - Valid: 35-209900-176148-1, 35-209900-176148-23, 3568680000414120, 490154203237518
* - Invalid: 490154203237517
*
* @see http://en.wikipedia.org/wiki/International_Mobile_Station_Equipment_Identity
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
switch (true) {
case /^\d{15}$/.test(value):
case /^\d{2}-\d{6}-\d{6}-\d{1}$/.test(value):
case /^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(value):
value = value.replace(/[^0-9]/g, '');
return $.fn.bootstrapValidator.helpers.luhn(value);
case /^\d{14}$/.test(value):
case /^\d{16}$/.test(value):
case /^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(value):
case /^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(value):
return true;
default:
return false;
}
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.imo = $.extend($.fn.bootstrapValidator.i18n.imo || {}, {
'default': 'Please enter a valid IMO number'
});
$.fn.bootstrapValidator.validators.imo = {
/**
* Validate IMO (International Maritime Organization)
* Examples:
* - Valid: IMO 8814275, IMO 9176187
* - Invalid: IMO 8814274
*
* @see http://en.wikipedia.org/wiki/IMO_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!/^IMO \d{7}$/i.test(value)) {
return false;
}
// Grab just the digits
var sum = 0,
digits = value.replace(/^.*(\d{7})$/, '$1');
// Go over each char, multiplying by the inverse of it's position
// IMO 9176187
// (9 * 7) + (1 * 6) + (7 * 5) + (6 * 4) + (1 * 3) + (8 * 2) = 147
// Take the last digit of that, that's the check digit (7)
for (var i = 6; i >= 1; i--) {
sum += (digits.slice((6 - i), -i) * (i + 1));
}
return sum % 10 === parseInt(digits.charAt(6), 10);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.integer = $.extend($.fn.bootstrapValidator.i18n.integer || {}, {
'default': 'Please enter a valid number'
});
$.fn.bootstrapValidator.validators.integer = {
enableByHtml5: function($field) {
return ('number' === $field.attr('type')) && ($field.attr('step') === undefined || $field.attr('step') % 1 === 0);
},
/**
* Return true if the input value is an integer
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
if (this.enableByHtml5($field) && $field.get(0).validity && $field.get(0).validity.badInput === true) {
return false;
}
var value = $field.val();
if (value === '') {
return true;
}
return /^(?:-?(?:0|[1-9][0-9]*))$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.ip = $.extend($.fn.bootstrapValidator.i18n.ip || {}, {
'default': 'Please enter a valid IP address',
ipv4: 'Please enter a valid IPv4 address',
ipv6: 'Please enter a valid IPv6 address'
});
$.fn.bootstrapValidator.validators.ip = {
html5Attributes: {
message: 'message',
ipv4: 'ipv4',
ipv6: 'ipv6'
},
/**
* Return true if the input value is a IP address.
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - ipv4: Enable IPv4 validator, default to true
* - ipv6: Enable IPv6 validator, default to true
* - message: The invalid message
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
options = $.extend({}, { ipv4: true, ipv6: true }, options);
var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
ipv6Regex = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
valid = false,
message;
switch (true) {
case (options.ipv4 && !options.ipv6):
valid = ipv4Regex.test(value);
message = options.message || $.fn.bootstrapValidator.i18n.ip.ipv4;
break;
case (!options.ipv4 && options.ipv6):
valid = ipv6Regex.test(value);
message = options.message || $.fn.bootstrapValidator.i18n.ip.ipv6;
break;
case (options.ipv4 && options.ipv6):
/* falls through */
default:
valid = ipv4Regex.test(value) || ipv6Regex.test(value);
message = options.message || $.fn.bootstrapValidator.i18n.ip['default'];
break;
}
return {
valid: valid,
message: message
};
}
};
}(window.jQuery));;(function($) {
$.fn.bootstrapValidator.i18n.isbn = $.extend($.fn.bootstrapValidator.i18n.isbn || {}, {
'default': 'Please enter a valid ISBN number'
});
$.fn.bootstrapValidator.validators.isbn = {
/**
* Return true if the input value is a valid ISBN 10 or ISBN 13 number
* Examples:
* - Valid:
* ISBN 10: 99921-58-10-7, 9971-5-0210-0, 960-425-059-0, 80-902734-1-6, 85-359-0277-5, 1-84356-028-3, 0-684-84328-5, 0-8044-2957-X, 0-85131-041-9, 0-943396-04-2, 0-9752298-0-X
* ISBN 13: 978-0-306-40615-7
* - Invalid:
* ISBN 10: 99921-58-10-6
* ISBN 13: 978-0-306-40615-6
*
* @see http://en.wikipedia.org/wiki/International_Standard_Book_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} [options] Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// http://en.wikipedia.org/wiki/International_Standard_Book_Number#Overview
// Groups are separated by a hyphen or a space
var type;
switch (true) {
case /^\d{9}[\dX]$/.test(value):
case (value.length === 13 && /^(\d+)-(\d+)-(\d+)-([\dX])$/.test(value)):
case (value.length === 13 && /^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(value)):
type = 'ISBN10';
break;
case /^(978|979)\d{9}[\dX]$/.test(value):
case (value.length === 17 && /^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(value)):
case (value.length === 17 && /^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(value)):
type = 'ISBN13';
break;
default:
return false;
}
// Replace all special characters except digits and X
value = value.replace(/[^0-9X]/gi, '');
var chars = value.split(''),
length = chars.length,
sum = 0,
i,
checksum;
switch (type) {
case 'ISBN10':
sum = 0;
for (i = 0; i < length - 1; i++) {
sum += parseInt(chars[i], 10) * (10 - i);
}
checksum = 11 - (sum % 11);
if (checksum === 11) {
checksum = 0;
} else if (checksum === 10) {
checksum = 'X';
}
return (checksum + '' === chars[length - 1]);
case 'ISBN13':
sum = 0;
for (i = 0; i < length - 1; i++) {
sum += ((i % 2 === 0) ? parseInt(chars[i], 10) : (parseInt(chars[i], 10) * 3));
}
checksum = 10 - (sum % 10);
if (checksum === 10) {
checksum = '0';
}
return (checksum + '' === chars[length - 1]);
default:
return false;
}
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.isin = $.extend($.fn.bootstrapValidator.i18n.isin || {}, {
'default': 'Please enter a valid ISIN number'
});
$.fn.bootstrapValidator.validators.isin = {
// Available country codes
// See http://isin.net/country-codes/
COUNTRY_CODES: 'AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW',
/**
* Validate an ISIN (International Securities Identification Number)
* Examples:
* - Valid: US0378331005, AU0000XVGZA3, GB0002634946
* - Invalid: US0378331004, AA0000XVGZA3
*
* @see http://en.wikipedia.org/wiki/International_Securities_Identifying_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
value = value.toUpperCase();
var regex = new RegExp('^(' + this.COUNTRY_CODES + ')[0-9A-Z]{10}$');
if (!regex.test(value)) {
return false;
}
var converted = '',
length = value.length;
// Convert letters to number
for (var i = 0; i < length - 1; i++) {
var c = value.charCodeAt(i);
converted += ((c > 57) ? (c - 55).toString() : value.charAt(i));
}
var digits = '',
n = converted.length,
group = (n % 2 !== 0) ? 0 : 1;
for (i = 0; i < n; i++) {
digits += (parseInt(converted[i], 10) * ((i % 2) === group ? 2 : 1) + '');
}
var sum = 0;
for (i = 0; i < digits.length; i++) {
sum += parseInt(digits.charAt(i), 10);
}
sum = (10 - (sum % 10)) % 10;
return sum + '' === value.charAt(length - 1);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.ismn = $.extend($.fn.bootstrapValidator.i18n.ismn || {}, {
'default': 'Please enter a valid ISMN number'
});
$.fn.bootstrapValidator.validators.ismn = {
/**
* Validate ISMN (International Standard Music Number)
* Examples:
* - Valid: M230671187, 979-0-0601-1561-5, 979 0 3452 4680 5, 9790060115615
* - Invalid: 9790060115614
*
* @see http://en.wikipedia.org/wiki/International_Standard_Music_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Groups are separated by a hyphen or a space
var type;
switch (true) {
case /^M\d{9}$/.test(value):
case /^M-\d{4}-\d{4}-\d{1}$/.test(value):
case /^M\s\d{4}\s\d{4}\s\d{1}$/.test(value):
type = 'ISMN10';
break;
case /^9790\d{9}$/.test(value):
case /^979-0-\d{4}-\d{4}-\d{1}$/.test(value):
case /^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(value):
type = 'ISMN13';
break;
default:
return false;
}
if ('ISMN10' === type) {
value = '9790' + value.substr(1);
}
// Replace all special characters except digits
value = value.replace(/[^0-9]/gi, '');
var length = value.length,
sum = 0,
weight = [1, 3];
for (var i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i % 2];
}
sum = 10 - sum % 10;
return (sum + '' === value.charAt(length - 1));
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.issn = $.extend($.fn.bootstrapValidator.i18n.issn || {}, {
'default': 'Please enter a valid ISSN number'
});
$.fn.bootstrapValidator.validators.issn = {
/**
* Validate ISSN (International Standard Serial Number)
* Examples:
* - Valid: 0378-5955, 0024-9319, 0032-1478
* - Invalid: 0032-147X
*
* @see http://en.wikipedia.org/wiki/International_Standard_Serial_Number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Groups are separated by a hyphen or a space
if (!/^\d{4}\-\d{3}[\dX]$/.test(value)) {
return false;
}
// Replace all special characters except digits and X
value = value.replace(/[^0-9X]/gi, '');
var chars = value.split(''),
length = chars.length,
sum = 0;
if (chars[7] === 'X') {
chars[7] = 10;
}
for (var i = 0; i < length; i++) {
sum += parseInt(chars[i], 10) * (8 - i);
}
return (sum % 11 === 0);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.lessThan = $.extend($.fn.bootstrapValidator.i18n.lessThan || {}, {
'default': 'Please enter a value less than or equal to %s',
notInclusive: 'Please enter a value less than %s'
});
$.fn.bootstrapValidator.validators.lessThan = {
html5Attributes: {
message: 'message',
value: 'value',
inclusive: 'inclusive'
},
enableByHtml5: function($field) {
var type = $field.attr('type'),
max = $field.attr('max');
if (max && type !== 'date') {
return {
value: max
};
}
return false;
},
/**
* Return true if the input value is less than or equal to given number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - value: The number used to compare to. It can be
* - A number
* - Name of field which its value defines the number
* - Name of callback function that returns the number
* - A callback function that returns the number
*
* - inclusive [optional]: Can be true or false. Default is true
* - message: The invalid message
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!$.isNumeric(value)) {
return false;
}
var compareTo = $.isNumeric(options.value) ? options.value : validator.getDynamicOption($field, options.value);
value = parseFloat(value);
return (options.inclusive === true || options.inclusive === undefined)
? {
valid: value <= compareTo,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.lessThan['default'], compareTo)
}
: {
valid: value < compareTo,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.lessThan.notInclusive, compareTo)
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.mac = $.extend($.fn.bootstrapValidator.i18n.mac || {}, {
'default': 'Please enter a valid MAC address'
});
$.fn.bootstrapValidator.validators.mac = {
/**
* Return true if the input value is a MAC address.
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
return /^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.meid = $.extend($.fn.bootstrapValidator.i18n.meid || {}, {
'default': 'Please enter a valid MEID number'
});
$.fn.bootstrapValidator.validators.meid = {
/**
* Validate MEID (Mobile Equipment Identifier)
* Examples:
* - Valid: 293608736500703710, 29360-87365-0070-3710, AF0123450ABCDE, AF-012345-0ABCDE
* - Invalid: 2936087365007037101
*
* @see http://en.wikipedia.org/wiki/Mobile_equipment_identifier
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
switch (true) {
// 14 digit hex representation (no check digit)
case /^[0-9A-F]{15}$/i.test(value):
// 14 digit hex representation + dashes or spaces (no check digit)
case /^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(value):
// 18 digit decimal representation (no check digit)
case /^\d{19}$/.test(value):
// 18 digit decimal representation + dashes or spaces (no check digit)
case /^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(value):
// Grab the check digit
var cd = value.charAt(value.length - 1);
// Strip any non-hex chars
value = value.replace(/[- ]/g, '');
// If it's all digits, luhn base 10 is used
if (value.match(/^\d*$/i)) {
return $.fn.bootstrapValidator.helpers.luhn(value);
}
// Strip the check digit
value = value.slice(0, -1);
// Get every other char, and double it
var cdCalc = '';
for (var i = 1; i <= 13; i += 2) {
cdCalc += (parseInt(value.charAt(i), 16) * 2).toString(16);
}
// Get the sum of each char in the string
var sum = 0;
for (i = 0; i < cdCalc.length; i++) {
sum += parseInt(cdCalc.charAt(i), 16);
}
// If the last digit of the calc is 0, the check digit is 0
return (sum % 10 === 0)
? (cd === '0')
// Subtract it from the next highest 10s number (64 goes to 70) and subtract the sum
// Double it and turn it into a hex char
: (cd === ((Math.floor((sum + 10) / 10) * 10 - sum) * 2).toString(16));
// 14 digit hex representation (no check digit)
case /^[0-9A-F]{14}$/i.test(value):
// 14 digit hex representation + dashes or spaces (no check digit)
case /^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(value):
// 18 digit decimal representation (no check digit)
case /^\d{18}$/.test(value):
// 18 digit decimal representation + dashes or spaces (no check digit)
case /^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(value):
return true;
default:
return false;
}
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.notEmpty = $.extend($.fn.bootstrapValidator.i18n.notEmpty || {}, {
'default': 'Please enter a value'
});
$.fn.bootstrapValidator.validators.notEmpty = {
enableByHtml5: function($field) {
var required = $field.attr('required') + '';
return ('required' === required || 'true' === required);
},
/**
* Check if input value is empty or not
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var type = $field.attr('type');
if ('radio' === type || 'checkbox' === type) {
return validator
.getFieldElements($field.attr('data-bv-field'))
.filter(':checked')
.length > 0;
}
if ('number' === type && $field.get(0).validity && $field.get(0).validity.badInput === true) {
return true;
}
return $.trim($field.val()) !== '';
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.numeric = $.extend($.fn.bootstrapValidator.i18n.numeric || {}, {
'default': 'Please enter a valid float number'
});
$.fn.bootstrapValidator.validators.numeric = {
html5Attributes: {
message: 'message',
separator: 'separator'
},
enableByHtml5: function($field) {
return ('number' === $field.attr('type')) && ($field.attr('step') !== undefined) && ($field.attr('step') % 1 !== 0);
},
/**
* Validate decimal number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - separator: The decimal separator. Can be "." (default), ","
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
if (this.enableByHtml5($field) && $field.get(0).validity && $field.get(0).validity.badInput === true) {
return false;
}
var value = $field.val();
if (value === '') {
return true;
}
var separator = options.separator || '.';
if (separator !== '.') {
value = value.replace(separator, '.');
}
return !isNaN(parseFloat(value)) && isFinite(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.phone = $.extend($.fn.bootstrapValidator.i18n.phone || {}, {
'default': 'Please enter a valid phone number',
countryNotSupported: 'The country code %s is not supported',
country: 'Please enter a valid phone number in %s',
countries: {
BR: 'Brazil',
CN: 'China',
CZ: 'Czech Republic',
DK: 'Denmark',
ES: 'Spain',
FR: 'France',
GB: 'United Kingdom',
MA: 'Morocco',
PK: 'Pakistan',
RO: 'Romania',
RU: 'Russia',
SK: 'Slovakia',
TH: 'Thailand',
US: 'USA',
VE: 'Venezuela'
}
});
$.fn.bootstrapValidator.validators.phone = {
html5Attributes: {
message: 'message',
country: 'country'
},
// The supported countries
COUNTRY_CODES: ['BR', 'CN', 'CZ', 'DK', 'ES', 'FR', 'GB', 'MA', 'PK', 'RO', 'RU', 'SK', 'TH', 'US', 'VE'],
/**
* Return true if the input value contains a valid phone number for the country
* selected in the options
*
* @param {BootstrapValidator} validator Validate plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - country: The ISO-3166 country code. It can be
* - A country code
* - Name of field which its value defines the country code
* - Name of callback function that returns the country code
* - A callback function that returns the country code
*
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var country = options.country;
if (typeof country !== 'string' || $.inArray(country, this.COUNTRY_CODES) === -1) {
// Try to determine the country
country = validator.getDynamicOption($field, country);
}
if (!country || $.inArray(country.toUpperCase(), this.COUNTRY_CODES) === -1) {
return {
valid: false,
message: $.fn.bootstrapValidator.helpers.format($.fn.bootstrapValidator.i18n.phone.countryNotSupported, country)
};
}
var isValid = true;
switch (country.toUpperCase()) {
case 'BR':
// Test: http://regexr.com/399m1
value = $.trim(value);
isValid = (/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/).test(value);
break;
case 'CN':
// http://regexr.com/39dq4
value = $.trim(value);
isValid = (/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/).test(value);
break;
case 'CZ':
// Test: http://regexr.com/39hhl
isValid = /^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(value);
break;
case 'DK':
// Mathing DK phone numbers with country code in 1 of 3 formats and an
// 8 digit phone number not starting with a 0 or 1. Can have 1 space
// between each character except inside the country code.
// Test: http://regex101.com/r/sS8fO4/1
value = $.trim(value);
isValid = (/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/).test(value);
break;
case 'ES':
// http://regex101.com/r/rB9mA9/1
value = $.trim(value);
isValid = (/^(?:(?:(?:\+|00)34\D?))?(?:9|6)(?:\d\D?){8}$/).test(value);
break;
case 'FR':
// http://regexr.com/39a2p
value = $.trim(value);
isValid = (/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/).test(value);
break;
case 'GB':
// http://aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers#Match_GB_telephone_number_in_any_format
// Test: http://regexr.com/38uhv
value = $.trim(value);
isValid = (/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/).test(value);
break;
case 'MA':
// http://en.wikipedia.org/wiki/Telephone_numbers_in_Morocco
// Test: http://regexr.com/399n8
value = $.trim(value);
isValid = (/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/).test(value);
break;
case 'PK':
// http://regex101.com/r/yH8aV9/2
value = $.trim(value);
isValid = (/^0?3[0-9]{2}[0-9]{7}$/).test(value);
break;
case 'RO':
// All mobile network and land line
// http://regexr.com/39fv1
isValid = (/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|\-)?([0-9]{3}(\s|\.|\-|)){2}$/g).test(value);
break;
case 'RU':
// http://regex101.com/r/gW7yT5/5
isValid = (/^((8|\+7|007)[\-\.\/ ]?)?([\(\/\.]?\d{3}[\)\/\.]?[\-\.\/ ]?)?[\d\-\.\/ ]{7,10}$/g).test(value);
break;
case 'SK':
// Test: http://regexr.com/39hhl
isValid = /^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(value);
break;
case 'TH':
// http://regex101.com/r/vM5mZ4/2
isValid = (/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/).test(value);
break;
case 'VE':
// http://regex101.com/r/eM2yY0/6
value = $.trim(value);
isValid = (/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/).test(value);
break;
case 'US':
/* falls through */
default:
// Make sure US phone numbers have 10 digits
// May start with 1, +1, or 1-; should discard
// Area code may be delimited with (), & sections may be delimited with . or -
// Test: http://regexr.com/38mqi
value = value.replace(/\D/g, '');
isValid = (/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/).test(value) && (value.length === 10);
break;
}
return {
valid: isValid,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.phone.country, $.fn.bootstrapValidator.i18n.phone.countries[country])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.regexp = $.extend($.fn.bootstrapValidator.i18n.regexp || {}, {
'default': 'Please enter a value matching the pattern'
});
$.fn.bootstrapValidator.validators.regexp = {
html5Attributes: {
message: 'message',
regexp: 'regexp'
},
enableByHtml5: function($field) {
var pattern = $field.attr('pattern');
if (pattern) {
return {
regexp: pattern
};
}
return false;
},
/**
* Check if the element value matches given regular expression
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consists of the following key:
* - regexp: The regular expression you need to check
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var regexp = ('string' === typeof options.regexp) ? new RegExp(options.regexp) : options.regexp;
return regexp.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.remote = $.extend($.fn.bootstrapValidator.i18n.remote || {}, {
'default': 'Please enter a valid value'
});
$.fn.bootstrapValidator.validators.remote = {
html5Attributes: {
message: 'message',
name: 'name',
type: 'type',
url: 'url',
delay: 'delay'
},
/**
* Destroy the timer when destroying the bootstrapValidator (using validator.destroy() method)
*/
destroy: function(validator, $field, options) {
if ($field.data('bv.remote.timer')) {
clearTimeout($field.data('bv.remote.timer'));
$field.removeData('bv.remote.timer');
}
},
/**
* Request a remote server to check the input value
*
* @param {BootstrapValidator} validator Plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - url {String|Function}
* - type {String} [optional] Can be GET or POST (default)
* - data {Object|Function} [optional]: By default, it will take the value
* {
* <fieldName>: <fieldValue>
* }
* - delay
* - name {String} [optional]: Override the field name for the request.
* - message: The invalid message
* - headers: Additional headers
* @returns {Deferred}
*/
validate: function(validator, $field, options) {
var value = $field.val(),
dfd = new $.Deferred();
if (value === '') {
dfd.resolve($field, 'remote', { valid: true });
return dfd;
}
var name = $field.attr('data-bv-field'),
data = options.data || {},
url = options.url,
type = options.type || 'GET',
headers = options.headers || {};
// Support dynamic data
if ('function' === typeof data) {
data = data.call(this, validator);
}
// Support dynamic url
if ('function' === typeof url) {
url = url.call(this, validator);
}
data[options.name || name] = value;
function runCallback() {
var xhr = $.ajax({
type: type,
headers: headers,
url: url,
dataType: 'json',
data: data
});
xhr.then(function(response) {
response.valid = response.valid === true || response.valid === 'true';
dfd.resolve($field, 'remote', response);
});
dfd.fail(function() {
xhr.abort();
});
return dfd;
}
if (options.delay) {
// Since the form might have multiple fields with the same name
// I have to attach the timer to the field element
if ($field.data('bv.remote.timer')) {
clearTimeout($field.data('bv.remote.timer'));
}
$field.data('bv.remote.timer', setTimeout(runCallback, options.delay));
return dfd;
} else {
return runCallback();
}
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.rtn = $.extend($.fn.bootstrapValidator.i18n.rtn || {}, {
'default': 'Please enter a valid RTN number'
});
$.fn.bootstrapValidator.validators.rtn = {
/**
* Validate a RTN (Routing transit number)
* Examples:
* - Valid: 021200025, 789456124
*
* @see http://en.wikipedia.org/wiki/Routing_transit_number
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!/^\d{9}$/.test(value)) {
return false;
}
var sum = 0;
for (var i = 0; i < value.length; i += 3) {
sum += parseInt(value.charAt(i), 10) * 3
+ parseInt(value.charAt(i + 1), 10) * 7
+ parseInt(value.charAt(i + 2), 10);
}
return (sum !== 0 && sum % 10 === 0);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.sedol = $.extend($.fn.bootstrapValidator.i18n.sedol || {}, {
'default': 'Please enter a valid SEDOL number'
});
$.fn.bootstrapValidator.validators.sedol = {
/**
* Validate a SEDOL (Stock Exchange Daily Official List)
* Examples:
* - Valid: 0263494, B0WNLY7
*
* @see http://en.wikipedia.org/wiki/SEDOL
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
value = value.toUpperCase();
if (!/^[0-9A-Z]{7}$/.test(value)) {
return false;
}
var sum = 0,
weight = [1, 3, 1, 7, 3, 9, 1],
length = value.length;
for (var i = 0; i < length - 1; i++) {
sum += weight[i] * parseInt(value.charAt(i), 36);
}
sum = (10 - sum % 10) % 10;
return sum + '' === value.charAt(length - 1);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.siren = $.extend($.fn.bootstrapValidator.i18n.siren || {}, {
'default': 'Please enter a valid SIREN number'
});
$.fn.bootstrapValidator.validators.siren = {
/**
* Check if a string is a siren number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
if (!/^\d{9}$/.test(value)) {
return false;
}
return $.fn.bootstrapValidator.helpers.luhn(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.siret = $.extend($.fn.bootstrapValidator.i18n.siret || {}, {
'default': 'Please enter a valid SIRET number'
});
$.fn.bootstrapValidator.validators.siret = {
/**
* Check if a string is a siret number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var sum = 0,
length = value.length,
tmp;
for (var i = 0; i < length; i++) {
tmp = parseInt(value.charAt(i), 10);
if ((i % 2) === 0) {
tmp = tmp * 2;
if (tmp > 9) {
tmp -= 9;
}
}
sum += tmp;
}
return (sum % 10 === 0);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.step = $.extend($.fn.bootstrapValidator.i18n.step || {}, {
'default': 'Please enter a valid step of %s'
});
$.fn.bootstrapValidator.validators.step = {
html5Attributes: {
message: 'message',
base: 'baseValue',
step: 'step'
},
/**
* Return true if the input value is valid step one
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Can consist of the following keys:
* - baseValue: The base value
* - step: The step
* - message: The invalid message
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
options = $.extend({}, { baseValue: 0, step: 1 }, options);
value = parseFloat(value);
if (!$.isNumeric(value)) {
return false;
}
var round = function(x, precision) {
var m = Math.pow(10, precision);
x = x * m;
var sign = (x > 0) | -(x < 0),
isHalf = (x % 1 === 0.5 * sign);
if (isHalf) {
return (Math.floor(x) + (sign > 0)) / m;
} else {
return Math.round(x) / m;
}
},
floatMod = function(x, y) {
if (y === 0.0) {
return 1.0;
}
var dotX = (x + '').split('.'),
dotY = (y + '').split('.'),
precision = ((dotX.length === 1) ? 0 : dotX[1].length) + ((dotY.length === 1) ? 0 : dotY[1].length);
return round(x - y * Math.floor(x / y), precision);
};
var mod = floatMod(value - options.baseValue, options.step);
return {
valid: mod === 0.0 || mod === options.step,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.step['default'], [options.step])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.stringCase = $.extend($.fn.bootstrapValidator.i18n.stringCase || {}, {
'default': 'Please enter only lowercase characters',
upper: 'Please enter only uppercase characters'
});
$.fn.bootstrapValidator.validators.stringCase = {
html5Attributes: {
message: 'message',
'case': 'case'
},
/**
* Check if a string is a lower or upper case one
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - case: Can be 'lower' (default) or 'upper'
* @returns {Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var stringCase = (options['case'] || 'lower').toLowerCase();
return {
valid: ('upper' === stringCase) ? value === value.toUpperCase() : value === value.toLowerCase(),
message: options.message || (('upper' === stringCase) ? $.fn.bootstrapValidator.i18n.stringCase.upper : $.fn.bootstrapValidator.i18n.stringCase['default'])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.stringLength = $.extend($.fn.bootstrapValidator.i18n.stringLength || {}, {
'default': 'Please enter a value with valid length',
less: 'Please enter less than %s characters',
more: 'Please enter more than %s characters',
between: 'Please enter value between %s and %s characters long'
});
$.fn.bootstrapValidator.validators.stringLength = {
html5Attributes: {
message: 'message',
min: 'min',
max: 'max'
},
enableByHtml5: function($field) {
var options = {},
maxLength = $field.attr('maxlength'),
minLength = $field.attr('minlength');
if (maxLength) {
options.max = parseInt(maxLength, 10);
}
if (minLength) {
options.min = parseInt(minLength, 10);
}
return $.isEmptyObject(options) ? false : options;
},
/**
* Check if the length of element value is less or more than given number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consists of following keys:
* - min
* - max
* At least one of two keys is required
* The min, max keys define the number which the field value compares to. min, max can be
* - A number
* - Name of field which its value defines the number
* - Name of callback function that returns the number
* - A callback function that returns the number
*
* - message: The invalid message
* @returns {Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var min = $.isNumeric(options.min) ? options.min : validator.getDynamicOption($field, options.min),
max = $.isNumeric(options.max) ? options.max : validator.getDynamicOption($field, options.max),
length = value.length,
isValid = true,
message = options.message || $.fn.bootstrapValidator.i18n.stringLength['default'];
if ((min && length < parseInt(min, 10)) || (max && length > parseInt(max, 10))) {
isValid = false;
}
switch (true) {
case (!!min && !!max):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.stringLength.between, [parseInt(min, 10), parseInt(max, 10)]);
break;
case (!!min):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.stringLength.more, parseInt(min, 10));
break;
case (!!max):
message = $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.stringLength.less, parseInt(max, 10));
break;
default:
break;
}
return { valid: isValid, message: message };
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.uri = $.extend($.fn.bootstrapValidator.i18n.uri || {}, {
'default': 'Please enter a valid URI'
});
$.fn.bootstrapValidator.validators.uri = {
html5Attributes: {
message: 'message',
allowlocal: 'allowLocal',
protocol: 'protocol'
},
enableByHtml5: function($field) {
return ('url' === $field.attr('type'));
},
/**
* Return true if the input value is a valid URL
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options
* - message: The error message
* - allowLocal: Allow the private and local network IP. Default to false
* - protocol: The protocols, separated by a comma. Default to "http, https, ftp"
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Credit to https://gist.github.com/dperini/729294
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
//
// the regular expression composed & commented
// could be easily tweaked for RFC compliance,
// it was expressly modified to fit & satisfy
// these test for an URL shortener:
//
// http://mathiasbynens.be/demo/url-regex
//
// Notes on possible differences from a standard/generic validation:
//
// - utf-8 char class take in consideration the full Unicode range
// - TLDs are mandatory unless `allowLocal` is true
// - protocols have been restricted to ftp, http and https only as requested
//
// Changes:
//
// - IP address dotted notation validation, range: 1.0.0.0 - 223.255.255.255
// first and last IP address of each class is considered invalid
// (since they are broadcast/network addresses)
//
// - Added exclusion of private, reserved and/or local networks ranges
// unless `allowLocal` is true
//
// - Added possibility of choosing a custom protocol
//
var allowLocal = options.allowLocal === true || options.allowLocal === 'true',
protocol = (options.protocol || 'http, https, ftp').split(',').join('|').replace(/\s/g, ''),
urlExp = new RegExp(
"^" +
// protocol identifier
"(?:(?:" + protocol + ")://)" +
// user:pass authentication
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
// IP address exclusion
// private & local networks
(allowLocal
? ''
: ("(?!(?:10|127)(?:\\.\\d{1,3}){3})" +
"(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})" +
"(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")) +
// IP address dotted notation octets
// excludes loopback network 0.0.0.0
// excludes reserved space >= 224.0.0.0
// excludes network & broadcast addresses
// (first & last IP address of each class)
"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])" +
"(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}" +
"(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))" +
"|" +
// host name
"(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)" +
// domain name
"(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*" +
// TLD identifier
"(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))" +
// Allow intranet sites (no TLD) if `allowLocal` is true
(allowLocal ? '?' : '') +
")" +
// port number
"(?::\\d{2,5})?" +
// resource path
"(?:/[^\\s]*)?" +
"$", "i"
);
return urlExp.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.uuid = $.extend($.fn.bootstrapValidator.i18n.uuid || {}, {
'default': 'Please enter a valid UUID number',
version: 'Please enter a valid UUID version %s number'
});
$.fn.bootstrapValidator.validators.uuid = {
html5Attributes: {
message: 'message',
version: 'version'
},
/**
* Return true if and only if the input value is a valid UUID string
*
* @see http://en.wikipedia.org/wiki/Universally_unique_identifier
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - version: Can be 3, 4, 5, null
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// See the format at http://en.wikipedia.org/wiki/Universally_unique_identifier#Variants_and_versions
var patterns = {
'3': /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
'4': /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
'5': /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i
},
version = options.version ? (options.version + '') : 'all';
return {
valid: (null === patterns[version]) ? true : patterns[version].test(value),
message: options.version
? $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.uuid.version, options.version)
: (options.message || $.fn.bootstrapValidator.i18n.uuid['default'])
};
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.vat = $.extend($.fn.bootstrapValidator.i18n.vat || {}, {
'default': 'Please enter a valid VAT number',
countryNotSupported: 'The country code %s is not supported',
country: 'Please enter a valid VAT number in %s',
countries: {
AT: 'Austria',
BE: 'Belgium',
BG: 'Bulgaria',
BR: 'Brazil',
CH: 'Switzerland',
CY: 'Cyprus',
CZ: 'Czech Republic',
DE: 'Germany',
DK: 'Denmark',
EE: 'Estonia',
ES: 'Spain',
FI: 'Finland',
FR: 'France',
GB: 'United Kingdom',
GR: 'Greek',
EL: 'Greek',
HU: 'Hungary',
HR: 'Croatia',
IE: 'Ireland',
IS: 'Iceland',
IT: 'Italy',
LT: 'Lithuania',
LU: 'Luxembourg',
LV: 'Latvia',
MT: 'Malta',
NL: 'Netherlands',
NO: 'Norway',
PL: 'Poland',
PT: 'Portugal',
RO: 'Romania',
RU: 'Russia',
RS: 'Serbia',
SE: 'Sweden',
SI: 'Slovenia',
SK: 'Slovakia',
VE: 'Venezuela',
ZA: 'South Africa'
}
});
$.fn.bootstrapValidator.validators.vat = {
html5Attributes: {
message: 'message',
country: 'country'
},
// Supported country codes
COUNTRY_CODES: [
'AT', 'BE', 'BG', 'BR', 'CH', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU',
'IE', 'IS', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'NO', 'PL', 'PT', 'RO', 'RU', 'RS', 'SE', 'SK', 'SI', 'VE',
'ZA'
],
/**
* Validate an European VAT number
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - country: The ISO 3166-1 country code. It can be
* - One of country code defined in COUNTRY_CODES
* - Name of field which its value defines the country code
* - Name of callback function that returns the country code
* - A callback function that returns the country code
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
var country = options.country;
if (!country) {
country = value.substr(0, 2);
} else if (typeof country !== 'string' || $.inArray(country.toUpperCase(), this.COUNTRY_CODES) === -1) {
// Determine the country code
country = validator.getDynamicOption($field, country);
}
if ($.inArray(country, this.COUNTRY_CODES) === -1) {
return {
valid: false,
message: $.fn.bootstrapValidator.helpers.format($.fn.bootstrapValidator.i18n.vat.countryNotSupported, country)
};
}
var method = ['_', country.toLowerCase()].join('');
return this[method](value)
? true
: {
valid: false,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.vat.country, $.fn.bootstrapValidator.i18n.vat.countries[country.toUpperCase()])
};
},
// VAT validators
/**
* Validate Austrian VAT number
* Example:
* - Valid: ATU13585627
* - Invalid: ATU13585626
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_at: function(value) {
if (/^ATU[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^U[0-9]{8}$/.test(value)) {
return false;
}
value = value.substr(1);
var sum = 0,
weight = [1, 2, 1, 2, 1, 2, 1],
temp = 0;
for (var i = 0; i < 7; i++) {
temp = parseInt(value.charAt(i), 10) * weight[i];
if (temp > 9) {
temp = Math.floor(temp / 10) + temp % 10;
}
sum += temp;
}
sum = 10 - (sum + 4) % 10;
if (sum === 10) {
sum = 0;
}
return (sum + '' === value.substr(7, 1));
},
/**
* Validate Belgian VAT number
* Example:
* - Valid: BE0428759497
* - Invalid: BE431150351
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_be: function(value) {
if (/^BE[0]{0,1}[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0]{0,1}[0-9]{9}$/.test(value)) {
return false;
}
if (value.length === 9) {
value = '0' + value;
}
if (value.substr(1, 1) === '0') {
return false;
}
var sum = parseInt(value.substr(0, 8), 10) + parseInt(value.substr(8, 2), 10);
return (sum % 97 === 0);
},
/**
* Validate Bulgarian VAT number
* Example:
* - Valid: BG175074752,
* BG7523169263, BG8032056031,
* BG7542011030,
* BG7111042925
* - Invalid: BG175074753, BG7552A10004, BG7111042922
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_bg: function(value) {
if (/^BG[0-9]{9,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9,10}$/.test(value)) {
return false;
}
var sum = 0, i = 0;
// Legal entities
if (value.length === 9) {
for (i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * (i + 1);
}
sum = sum % 11;
if (sum === 10) {
sum = 0;
for (i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * (i + 3);
}
}
sum = sum % 10;
return (sum + '' === value.substr(8));
}
// Physical persons, foreigners and others
else if (value.length === 10) {
// Validate Bulgarian national identification numbers
var egn = function(value) {
// Check the birth date
var year = parseInt(value.substr(0, 2), 10) + 1900,
month = parseInt(value.substr(2, 2), 10),
day = parseInt(value.substr(4, 2), 10);
if (month > 40) {
year += 100;
month -= 40;
} else if (month > 20) {
year -= 100;
month -= 20;
}
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
var sum = 0,
weight = [2, 4, 8, 5, 10, 9, 7, 3, 6];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (sum % 11) % 10;
return (sum + '' === value.substr(9, 1));
},
// Validate Bulgarian personal number of a foreigner
pnf = function(value) {
var sum = 0,
weight = [21, 19, 17, 13, 11, 9, 7, 3, 1];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 10;
return (sum + '' === value.substr(9, 1));
},
// Finally, consider it as a VAT number
vat = function(value) {
var sum = 0,
weight = [4, 3, 2, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 10) {
return false;
}
if (sum === 11) {
sum = 0;
}
return (sum + '' === value.substr(9, 1));
};
return (egn(value) || pnf(value) || vat(value));
}
return false;
},
/**
* Validate Brazilian VAT number (CNPJ)
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_br: function(value) {
if (value === '') {
return true;
}
var cnpj = value.replace(/[^\d]+/g, '');
if (cnpj === '' || cnpj.length !== 14) {
return false;
}
// Remove invalids CNPJs
if (cnpj === '00000000000000' || cnpj === '11111111111111' || cnpj === '22222222222222' ||
cnpj === '33333333333333' || cnpj === '44444444444444' || cnpj === '55555555555555' ||
cnpj === '66666666666666' || cnpj === '77777777777777' || cnpj === '88888888888888' ||
cnpj === '99999999999999')
{
return false;
}
// Validate verification digits
var length = cnpj.length - 2,
numbers = cnpj.substring(0, length),
digits = cnpj.substring(length),
sum = 0,
pos = length - 7;
for (var i = length; i >= 1; i--) {
sum += parseInt(numbers.charAt(length - i), 10) * pos--;
if (pos < 2) {
pos = 9;
}
}
var result = sum % 11 < 2 ? 0 : 11 - sum % 11;
if (result !== parseInt(digits.charAt(0), 10)) {
return false;
}
length = length + 1;
numbers = cnpj.substring(0, length);
sum = 0;
pos = length - 7;
for (i = length; i >= 1; i--) {
sum += parseInt(numbers.charAt(length - i), 10) * pos--;
if (pos < 2) {
pos = 9;
}
}
result = sum % 11 < 2 ? 0 : 11 - sum % 11;
return (result === parseInt(digits.charAt(1), 10));
},
/**
* Validate Swiss VAT number
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ch: function(value) {
if (/^CHE[0-9]{9}(MWST)?$/.test(value)) {
value = value.substr(2);
}
if (!/^E[0-9]{9}(MWST)?$/.test(value)) {
return false;
}
value = value.substr(1);
var sum = 0,
weight = [5, 4, 3, 2, 7, 6, 5, 4];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 10) {
return false;
}
if (sum === 11) {
sum = 0;
}
return (sum + '' === value.substr(8, 1));
},
/**
* Validate Cypriot VAT number
* Examples:
* - Valid: CY10259033P
* - Invalid: CY10259033Z
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_cy: function(value) {
if (/^CY[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(value)) {
return false;
}
// Do not allow to start with "12"
if (value.substr(0, 2) === '12') {
return false;
}
// Extract the next digit and multiply by the counter.
var sum = 0,
translation = {
'0': 1, '1': 0, '2': 5, '3': 7, '4': 9,
'5': 13, '6': 15, '7': 17, '8': 19, '9': 21
};
for (var i = 0; i < 8; i++) {
var temp = parseInt(value.charAt(i), 10);
if (i % 2 === 0) {
temp = translation[temp + ''];
}
sum += temp;
}
sum = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[sum % 26];
return (sum + '' === value.substr(8, 1));
},
/**
* Validate Czech Republic VAT number
* Can be:
* i) Legal entities (8 digit numbers)
* ii) Individuals with a RC (the 9 or 10 digit Czech birth number)
* iii) Individuals without a RC (9 digit numbers beginning with 6)
*
* Examples:
* - Valid: i) CZ25123891; ii) CZ7103192745, CZ991231123; iii) CZ640903926
* - Invalid: i) CZ25123890; ii) CZ1103492745, CZ590312123
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_cz: function(value) {
if (/^CZ[0-9]{8,10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8,10}$/.test(value)) {
return false;
}
var sum = 0,
i = 0;
if (value.length === 8) {
// Do not allow to start with '9'
if (value.charAt(0) + '' === '9') {
return false;
}
sum = 0;
for (i = 0; i < 7; i++) {
sum += parseInt(value.charAt(i), 10) * (8 - i);
}
sum = 11 - sum % 11;
if (sum === 10) {
sum = 0;
}
if (sum === 11) {
sum = 1;
}
return (sum + '' === value.substr(7, 1));
} else if (value.length === 9 && (value.charAt(0) + '' === '6')) {
sum = 0;
// Skip the first (which is 6)
for (i = 0; i < 7; i++) {
sum += parseInt(value.charAt(i + 1), 10) * (8 - i);
}
sum = 11 - sum % 11;
if (sum === 10) {
sum = 0;
}
if (sum === 11) {
sum = 1;
}
sum = [8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 10][sum - 1];
return (sum + '' === value.substr(8, 1));
} else if (value.length === 9 || value.length === 10) {
// Validate Czech birth number (Rodné číslo), which is also national identifier
var year = 1900 + parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10) % 50 % 20,
day = parseInt(value.substr(4, 2), 10);
if (value.length === 9) {
if (year >= 1980) {
year -= 100;
}
if (year > 1953) {
return false;
}
} else if (year < 1954) {
year += 100;
}
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Check that the birth date is not in the future
if (value.length === 10) {
var check = parseInt(value.substr(0, 9), 10) % 11;
if (year < 1985) {
check = check % 10;
}
return (check + '' === value.substr(9, 1));
}
return true;
}
return false;
},
/**
* Validate German VAT number
* Examples:
* - Valid: DE136695976
* - Invalid: DE136695978
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_de: function(value) {
if (/^DE[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
return $.fn.bootstrapValidator.helpers.mod11And10(value);
},
/**
* Validate Danish VAT number
* Example:
* - Valid: DK13585628
* - Invalid: DK13585627
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_dk: function(value) {
if (/^DK[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
var sum = 0,
weight = [2, 7, 6, 5, 4, 3, 2, 1];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 11 === 0);
},
/**
* Validate Estonian VAT number
* Examples:
* - Valid: EE100931558, EE100594102
* - Invalid: EE100594103
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ee: function(value) {
if (/^EE[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
var sum = 0,
weight = [3, 7, 1, 3, 7, 1, 3, 7, 1];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 10 === 0);
},
/**
* Validate Spanish VAT number (NIF - Número de Identificación Fiscal)
* Can be:
* i) DNI (Documento nacional de identidad), for Spaniards
* ii) NIE (Número de Identificación de Extranjeros), for foreigners
* iii) CIF (Certificado de Identificación Fiscal), for legal entities and others
*
* Examples:
* - Valid: i) ES54362315K; ii) ESX2482300W, ESX5253868R; iii) ESM1234567L, ESJ99216582, ESB58378431, ESB64717838
* - Invalid: i) ES54362315Z; ii) ESX2482300A; iii) ESJ99216583
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_es: function(value) {
if (/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(value)) {
return false;
}
var dni = function(value) {
var check = parseInt(value.substr(0, 8), 10);
check = 'TRWAGMYFPDXBNJZSQVHLCKE'[check % 23];
return (check + '' === value.substr(8, 1));
},
nie = function(value) {
var check = ['XYZ'.indexOf(value.charAt(0)), value.substr(1)].join('');
check = parseInt(check, 10);
check = 'TRWAGMYFPDXBNJZSQVHLCKE'[check % 23];
return (check + '' === value.substr(8, 1));
},
cif = function(value) {
var first = value.charAt(0), check;
if ('KLM'.indexOf(first) !== -1) {
// K: Spanish younger than 14 year old
// L: Spanish living outside Spain without DNI
// M: Granted the tax to foreigners who have no NIE
check = parseInt(value.substr(1, 8), 10);
check = 'TRWAGMYFPDXBNJZSQVHLCKE'[check % 23];
return (check + '' === value.substr(8, 1));
} else if ('ABCDEFGHJNPQRSUVW'.indexOf(first) !== -1) {
var sum = 0,
weight = [2, 1, 2, 1, 2, 1, 2],
temp = 0;
for (var i = 0; i < 7; i++) {
temp = parseInt(value.charAt(i + 1), 10) * weight[i];
if (temp > 9) {
temp = Math.floor(temp / 10) + temp % 10;
}
sum += temp;
}
sum = 10 - sum % 10;
return (sum + '' === value.substr(8, 1) || 'JABCDEFGHI'[sum] === value.substr(8, 1));
}
return false;
};
var first = value.charAt(0);
if (/^[0-9]$/.test(first)) {
return dni(value);
} else if (/^[XYZ]$/.test(first)) {
return nie(value);
} else {
return cif(value);
}
},
/**
* Validate Finnish VAT number
* Examples:
* - Valid: FI20774740
* - Invalid: FI20774741
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_fi: function(value) {
if (/^FI[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
var sum = 0,
weight = [7, 9, 10, 5, 8, 4, 2, 1];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 11 === 0);
},
/**
* Validate French VAT number (TVA - taxe sur la valeur ajoutée)
* It's constructed by a SIREN number, prefixed by two characters.
*
* Examples:
* - Valid: FR40303265045, FR23334175221, FRK7399859412, FR4Z123456782
* - Invalid: FR84323140391
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_fr: function(value) {
if (/^FR[0-9A-Z]{2}[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9A-Z]{2}[0-9]{9}$/.test(value)) {
return false;
}
if (!$.fn.bootstrapValidator.helpers.luhn(value.substr(2))) {
return false;
}
if (/^[0-9]{2}$/.test(value.substr(0, 2))) {
// First two characters are digits
return value.substr(0, 2) === (parseInt(value.substr(2) + '12', 10) % 97 + '');
} else {
// The first characters cann't be O and I
var alphabet = '0123456789ABCDEFGHJKLMNPQRSTUVWXYZ',
check;
// First one is digit
if (/^[0-9]{1}$/.test(value.charAt(0))) {
check = alphabet.indexOf(value.charAt(0)) * 24 + alphabet.indexOf(value.charAt(1)) - 10;
} else {
check = alphabet.indexOf(value.charAt(0)) * 34 + alphabet.indexOf(value.charAt(1)) - 100;
}
return ((parseInt(value.substr(2), 10) + 1 + Math.floor(check / 11)) % 11) === (check % 11);
}
},
/**
* Validate United Kingdom VAT number
* Example:
* - Valid: GB980780684
* - Invalid: GB802311781
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_gb: function(value) {
if (/^GB[0-9]{9}$/.test(value) /* Standard */
|| /^GB[0-9]{12}$/.test(value) /* Branches */
|| /^GBGD[0-9]{3}$/.test(value) /* Government department */
|| /^GBHA[0-9]{3}$/.test(value) /* Health authority */
|| /^GB(GD|HA)8888[0-9]{5}$/.test(value))
{
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)
&& !/^[0-9]{12}$/.test(value)
&& !/^GD[0-9]{3}$/.test(value)
&& !/^HA[0-9]{3}$/.test(value)
&& !/^(GD|HA)8888[0-9]{5}$/.test(value))
{
return false;
}
var length = value.length;
if (length === 5) {
var firstTwo = value.substr(0, 2),
lastThree = parseInt(value.substr(2), 10);
return ('GD' === firstTwo && lastThree < 500) || ('HA' === firstTwo && lastThree >= 500);
} else if (length === 11 && ('GD8888' === value.substr(0, 6) || 'HA8888' === value.substr(0, 6))) {
if (('GD' === value.substr(0, 2) && parseInt(value.substr(6, 3), 10) >= 500)
|| ('HA' === value.substr(0, 2) && parseInt(value.substr(6, 3), 10) < 500))
{
return false;
}
return (parseInt(value.substr(6, 3), 10) % 97 === parseInt(value.substr(9, 2), 10));
} else if (length === 9 || length === 12) {
var sum = 0,
weight = [8, 7, 6, 5, 4, 3, 2, 10, 1];
for (var i = 0; i < 9; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 97;
if (parseInt(value.substr(0, 3), 10) >= 100) {
return (sum === 0 || sum === 42 || sum === 55);
} else {
return (sum === 0);
}
}
return true;
},
/**
* Validate Greek VAT number
* Examples:
* - Valid: GR023456780, EL094259216
* - Invalid: EL123456781
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_gr: function(value) {
if (/^(GR|EL)[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
if (value.length === 8) {
value = '0' + value;
}
var sum = 0,
weight = [256, 128, 64, 32, 16, 8, 4, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (sum % 11) % 10;
return (sum + '' === value.substr(8, 1));
},
// EL is traditionally prefix of Greek VAT numbers
_el: function(value) {
return this._gr(value);
},
/**
* Validate Hungarian VAT number
* Examples:
* - Valid: HU12892312
* - Invalid: HU12892313
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_hu: function(value) {
if (/^HU[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
var sum = 0,
weight = [9, 7, 3, 1, 9, 7, 3, 1];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 10 === 0);
},
/**
* Validate Croatian VAT number
* Examples:
* - Valid: HR33392005961
* - Invalid: HR33392005962
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_hr: function(value) {
if (/^HR[0-9]{11}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{11}$/.test(value)) {
return false;
}
return $.fn.bootstrapValidator.helpers.mod11And10(value);
},
/**
* Validate Irish VAT number
* Examples:
* - Valid: IE6433435F, IE6433435OA, IE8D79739I
* - Invalid: IE8D79738J
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ie: function(value) {
if (/^IE[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(value)) {
return false;
}
var getCheckDigit = function(value) {
while (value.length < 7) {
value = '0' + value;
}
var alphabet = 'WABCDEFGHIJKLMNOPQRSTUV',
sum = 0;
for (var i = 0; i < 7; i++) {
sum += parseInt(value.charAt(i), 10) * (8 - i);
}
sum += 9 * alphabet.indexOf(value.substr(7));
return alphabet[sum % 23];
};
// The first 7 characters are digits
if (/^[0-9]+$/.test(value.substr(0, 7))) {
// New system
return value.charAt(7) === getCheckDigit(value.substr(0, 7) + value.substr(8) + '');
} else if ('ABCDEFGHIJKLMNOPQRSTUVWXYZ+*'.indexOf(value.charAt(1)) !== -1) {
// Old system
return value.charAt(7) === getCheckDigit(value.substr(2, 5) + value.substr(0, 1) + '');
}
return true;
},
/**
* Validate Icelandic VAT (VSK) number
* Examples:
* - Valid: 12345, 123456
* - Invalid: 1234567
*
* @params {String} value VAT number
* @returns {Boolean}
*/
_is: function(value) {
if (/^IS[0-9]{5,6}$/.test(value)) {
value = value.substr(2);
}
return /^[0-9]{5,6}$/.test(value);
},
/**
* Validate Italian VAT number, which consists of 11 digits.
* - First 7 digits are a company identifier
* - Next 3 are the province of residence
* - The last one is a check digit
*
* Examples:
* - Valid: IT00743110157
* - Invalid: IT00743110158
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_it: function(value) {
if (/^IT[0-9]{11}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{11}$/.test(value)) {
return false;
}
if (parseInt(value.substr(0, 7), 10) === 0) {
return false;
}
var lastThree = parseInt(value.substr(7, 3), 10);
if ((lastThree < 1) || (lastThree > 201) && lastThree !== 999 && lastThree !== 888) {
return false;
}
return $.fn.bootstrapValidator.helpers.luhn(value);
},
/**
* Validate Lithuanian VAT number
* It can be:
* - 9 digits, for legal entities
* - 12 digits, for temporarily registered taxpayers
*
* Examples:
* - Valid: LT119511515, LT100001919017, LT100004801610
* - Invalid: LT100001919018
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_lt: function(value) {
if (/^LT([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(value)) {
value = value.substr(2);
}
if (!/^([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(value)) {
return false;
}
var length = value.length,
sum = 0,
i;
for (i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * (1 + i % 9);
}
var check = sum % 11;
if (check === 10) {
sum = 0;
for (i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * (1 + (i + 2) % 9);
}
}
check = check % 11 % 10;
return (check + '' === value.charAt(length - 1));
},
/**
* Validate Luxembourg VAT number
* Examples:
* - Valid: LU15027442
* - Invalid: LU15027443
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_lu: function(value) {
if (/^LU[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
return ((parseInt(value.substr(0, 6), 10) % 89) + '' === value.substr(6, 2));
},
/**
* Validate Latvian VAT number
* Examples:
* - Valid: LV40003521600, LV16117519997
* - Invalid: LV40003521601, LV16137519997
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_lv: function(value) {
if (/^LV[0-9]{11}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{11}$/.test(value)) {
return false;
}
var first = parseInt(value.charAt(0), 10),
sum = 0,
weight = [],
i,
length = value.length;
if (first > 3) {
// Legal entity
sum = 0;
weight = [9, 1, 4, 8, 3, 10, 2, 5, 7, 6, 1];
for (i = 0; i < length; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
return (sum === 3);
} else {
// Check birth date
var day = parseInt(value.substr(0, 2), 10),
month = parseInt(value.substr(2, 2), 10),
year = parseInt(value.substr(4, 2), 10);
year = year + 1800 + parseInt(value.charAt(6), 10) * 100;
if (!$.fn.bootstrapValidator.helpers.date(year, month, day)) {
return false;
}
// Check personal code
sum = 0;
weight = [10, 5, 8, 4, 2, 1, 6, 3, 7, 9];
for (i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (sum + 1) % 11 % 10;
return (sum + '' === value.charAt(length - 1));
}
},
/**
* Validate Maltese VAT number
* Examples:
* - Valid: MT11679112
* - Invalid: MT11679113
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_mt: function(value) {
if (/^MT[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
var sum = 0,
weight = [3, 4, 6, 7, 8, 9, 10, 1];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 37 === 0);
},
/**
* Validate Dutch VAT number
* Examples:
* - Valid: NL004495445B01
* - Invalid: NL123456789B90
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_nl: function(value) {
if (/^NL[0-9]{9}B[0-9]{2}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}B[0-9]{2}$/.test(value)) {
return false;
}
var sum = 0,
weight = [9, 8, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
if (sum > 9) {
sum = 0;
}
return (sum + '' === value.substr(8, 1));
},
/**
* Validate Norwegian VAT number
*
* @see http://www.brreg.no/english/coordination/number.html
* @param {String} value VAT number
* @returns {Boolean}
*/
_no: function(value) {
if (/^NO[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
var sum = 0,
weight = [3, 2, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 11) {
sum = 0;
}
return (sum + '' === value.substr(8, 1));
},
/**
* Validate Polish VAT number
* Examples:
* - Valid: PL8567346215
* - Invalid: PL8567346216
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_pl: function(value) {
if (/^PL[0-9]{10}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{10}$/.test(value)) {
return false;
}
var sum = 0,
weight = [6, 5, 7, 2, 3, 4, 5, 6, 7, -1];
for (var i = 0; i < 10; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
return (sum % 11 === 0);
},
/**
* Validate Portuguese VAT number
* Examples:
* - Valid: PT501964843
* - Invalid: PT501964842
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_pt: function(value) {
if (/^PT[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
var sum = 0,
weight = [9, 8, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum > 9) {
sum = 0;
}
return (sum + '' === value.substr(8, 1));
},
/**
* Validate Romanian VAT number
* Examples:
* - Valid: RO18547290
* - Invalid: RO18547291
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ro: function(value) {
if (/^RO[1-9][0-9]{1,9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[1-9][0-9]{1,9}$/.test(value)) {
return false;
}
var length = value.length,
weight = [7, 5, 3, 2, 1, 7, 5, 3, 2].slice(10 - length),
sum = 0;
for (var i = 0; i < length - 1; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = (10 * sum) % 11 % 10;
return (sum + '' === value.substr(length - 1, 1));
},
/**
* Validate Russian VAT number (Taxpayer Identification Number - INN)
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ru: function(value) {
if (/^RU([0-9]{10}|[0-9]{12})$/.test(value)) {
value = value.substr(2);
}
if (!/^([0-9]{10}|[0-9]{12})$/.test(value)) {
return false;
}
var i = 0;
if (value.length === 10) {
var sum = 0,
weight = [2, 4, 10, 3, 5, 9, 4, 6, 8, 0];
for (i = 0; i < 10; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = sum % 11;
if (sum > 9) {
sum = sum % 10;
}
return (sum + '' === value.substr(9, 1));
} else if (value.length === 12) {
var sum1 = 0,
weight1 = [7, 2, 4, 10, 3, 5, 9, 4, 6, 8, 0],
sum2 = 0,
weight2 = [3, 7, 2, 4, 10, 3, 5, 9, 4, 6, 8, 0];
for (i = 0; i < 11; i++) {
sum1 += parseInt(value.charAt(i), 10) * weight1[i];
sum2 += parseInt(value.charAt(i), 10) * weight2[i];
}
sum1 = sum1 % 11;
if (sum1 > 9) {
sum1 = sum1 % 10;
}
sum2 = sum2 % 11;
if (sum2 > 9) {
sum2 = sum2 % 10;
}
return (sum1 + '' === value.substr(10, 1) && sum2 + '' === value.substr(11, 1));
}
return false;
},
/**
* Validate Serbian VAT number
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_rs: function(value) {
if (/^RS[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{9}$/.test(value)) {
return false;
}
var sum = 10,
temp = 0;
for (var i = 0; i < 8; i++) {
temp = (parseInt(value.charAt(i), 10) + sum) % 10;
if (temp === 0) {
temp = 10;
}
sum = (2 * temp) % 11;
}
return ((sum + parseInt(value.substr(8, 1), 10)) % 10 === 1);
},
/**
* Validate Swedish VAT number
* Examples:
* - Valid: SE123456789701
* - Invalid: SE123456789101
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_se: function(value) {
if (/^SE[0-9]{10}01$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{10}01$/.test(value)) {
return false;
}
value = value.substr(0, 10);
return $.fn.bootstrapValidator.helpers.luhn(value);
},
/**
* Validate Slovenian VAT number
* Examples:
* - Valid: SI50223054
* - Invalid: SI50223055
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_si: function(value) {
if (/^SI[0-9]{8}$/.test(value)) {
value = value.substr(2);
}
if (!/^[0-9]{8}$/.test(value)) {
return false;
}
var sum = 0,
weight = [8, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 7; i++) {
sum += parseInt(value.charAt(i), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 10) {
sum = 0;
}
return (sum + '' === value.substr(7, 1));
},
/**
* Validate Slovak VAT number
* Examples:
* - Valid: SK2022749619
* - Invalid: SK2022749618
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_sk: function(value) {
if (/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(value)) {
value = value.substr(2);
}
if (!/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(value)) {
return false;
}
return (parseInt(value, 10) % 11 === 0);
},
/**
* Validate Venezuelan VAT number (RIF)
* Examples:
* - Valid: VEJ309272292, VEV242818101, VEJ000126518, VEJ000458324, J309272292, V242818101, J000126518, J000458324
* - Invalid: VEJ309272293, VEV242818100, J000126519, J000458323
*
* @param {String} value VAT number
* @returns {Boolean}
*/
_ve: function(value) {
if (/^VE[VEJPG][0-9]{9}$/.test(value)) {
value = value.substr(2);
}
if (!/^[VEJPG][0-9]{9}$/.test(value)) {
return false;
}
var types = {
'V': 4,
'E': 8,
'J': 12,
'P': 16,
'G': 20
},
sum = types[value.charAt(0)],
weight = [3, 2, 7, 6, 5, 4, 3, 2];
for (var i = 0; i < 8; i++) {
sum += parseInt(value.charAt(i + 1), 10) * weight[i];
}
sum = 11 - sum % 11;
if (sum === 11 || sum === 10) {
sum = 0;
}
return (sum + '' === value.substr(9, 1));
},
/**
* Validate South African VAT number
* Examples:
* - Valid: 4012345678
* - Invalid: 40123456789, 3012345678
*
* @params {String} value VAT number
* @returns {Boolean}
*/
_za: function(value) {
if (/^ZA4[0-9]{9}$/.test(value)) {
value = value.substr(2);
}
return /^4[0-9]{9}$/.test(value);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.vin = $.extend($.fn.bootstrapValidator.i18n.vin || {}, {
'default': 'Please enter a valid VIN number'
});
$.fn.bootstrapValidator.validators.vin = {
/**
* Validate an US VIN (Vehicle Identification Number)
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* @returns {Boolean}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '') {
return true;
}
// Don't accept I, O, Q characters
if (!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(value)) {
return false;
}
value = value.toUpperCase();
var chars = {
A: 1, B: 2, C: 3, D: 4, E: 5, F: 6, G: 7, H: 8,
J: 1, K: 2, L: 3, M: 4, N: 5, P: 7, R: 9,
S: 2, T: 3, U: 4, V: 5, W: 6, X: 7, Y: 8, Z: 9,
'1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, '0': 0
},
weights = [8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2],
sum = 0,
length = value.length;
for (var i = 0; i < length; i++) {
sum += chars[value.charAt(i) + ''] * weights[i];
}
var reminder = sum % 11;
if (reminder === 10) {
reminder = 'X';
}
return (reminder + '') === value.charAt(8);
}
};
}(window.jQuery));
;(function($) {
$.fn.bootstrapValidator.i18n.zipCode = $.extend($.fn.bootstrapValidator.i18n.zipCode || {}, {
'default': 'Please enter a valid postal code',
countryNotSupported: 'The country code %s is not supported',
country: 'Please enter a valid postal code in %s',
countries: {
BR: 'Brazil',
CA: 'Canada',
CZ: 'Czech Republic',
DK: 'Denmark',
GB: 'United Kingdom',
IT: 'Italy',
MA: 'Morocco',
NL: 'Netherlands',
RO: 'Romania',
RU: 'Russia',
SE: 'Sweden',
SG: 'Singapore',
SK: 'Slovakia',
US: 'USA'
}
});
$.fn.bootstrapValidator.validators.zipCode = {
html5Attributes: {
message: 'message',
country: 'country'
},
COUNTRY_CODES: ['BR', 'CA', 'CZ', 'DK', 'GB', 'IT', 'MA', 'NL', 'RO', 'RU', 'SE', 'SG', 'SK', 'US'],
/**
* Return true if and only if the input value is a valid country zip code
*
* @param {BootstrapValidator} validator The validator plugin instance
* @param {jQuery} $field Field element
* @param {Object} options Consist of key:
* - message: The invalid message
* - country: The country
*
* The country can be defined by:
* - An ISO 3166 country code
* - Name of field which its value defines the country code
* - Name of callback function that returns the country code
* - A callback function that returns the country code
*
* callback: function(value, validator, $field) {
* // value is the value of field
* // validator is the BootstrapValidator instance
* // $field is jQuery element representing the field
* }
*
* @returns {Boolean|Object}
*/
validate: function(validator, $field, options) {
var value = $field.val();
if (value === '' || !options.country) {
return true;
}
var country = options.country;
if (typeof country !== 'string' || $.inArray(country, this.COUNTRY_CODES) === -1) {
// Try to determine the country
country = validator.getDynamicOption($field, country);
}
if (!country || $.inArray(country.toUpperCase(), this.COUNTRY_CODES) === -1) {
return { valid: false, message: $.fn.bootstrapValidator.helpers.format($.fn.bootstrapValidator.i18n.zipCode.countryNotSupported, country) };
}
var isValid = false;
country = country.toUpperCase();
switch (country) {
case 'BR':
isValid = /^(\d{2})([\.]?)(\d{3})([\-]?)(\d{3})$/.test(value);
break;
case 'CA':
isValid = /^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(value);
break;
case 'CZ':
// Test: http://regexr.com/39hhr
isValid = /^(\d{3})([ ]?)(\d{2})$/.test(value);
break;
case 'DK':
isValid = /^(DK(-|\s)?)?\d{4}$/i.test(value);
break;
case 'GB':
isValid = this._gb(value);
break;
// http://en.wikipedia.org/wiki/List_of_postal_codes_in_Italy
case 'IT':
isValid = /^(I-|IT-)?\d{5}$/i.test(value);
break;
// http://en.wikipedia.org/wiki/List_of_postal_codes_in_Morocco
case 'MA':
isValid = /^[1-9][0-9]{4}$/i.test(value);
break;
// http://en.wikipedia.org/wiki/Postal_codes_in_the_Netherlands
case 'NL':
isValid = /^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(value);
break;
case 'RO':
isValid = /^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(value);
break;
case 'RU':
isValid = /^[0-9]{6}$/i.test(value);
break;
case 'SE':
isValid = /^(S-)?\d{3}\s?\d{2}$/i.test(value);
break;
case 'SG':
isValid = /^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(value);
break;
case 'SK':
// Test: http://regexr.com/39hhr
isValid = /^(\d{3})([ ]?)(\d{2})$/.test(value);
break;
case 'US':
/* falls through */
default:
isValid = /^\d{4,5}([\-]?\d{4})?$/.test(value);
break;
}
return {
valid: isValid,
message: $.fn.bootstrapValidator.helpers.format(options.message || $.fn.bootstrapValidator.i18n.zipCode.country, $.fn.bootstrapValidator.i18n.zipCode.countries[country])
};
},
/**
* Validate United Kingdom postcode
* Examples:
* - Standard: EC1A 1BB, W1A 1HQ, M1 1AA, B33 8TH, CR2 6XH, DN55 1PT
* - Special cases:
* AI-2640, ASCN 1ZZ, GIR 0AA
*
* @see http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom
* @param {String} value The postcode
* @returns {Boolean}
*/
_gb: function(value) {
var firstChar = '[ABCDEFGHIJKLMNOPRSTUWYZ]', // Does not accept QVX
secondChar = '[ABCDEFGHKLMNOPQRSTUVWXY]', // Does not accept IJZ
thirdChar = '[ABCDEFGHJKPMNRSTUVWXY]',
fourthChar = '[ABEHMNPRVWXY]',
fifthChar = '[ABDEFGHJLNPQRSTUWXYZ]',
regexps = [
// AN NAA, ANN NAA, AAN NAA, AANN NAA format
new RegExp('^(' + firstChar + '{1}' + secondChar + '?[0-9]{1,2})(\\s*)([0-9]{1}' + fifthChar + '{2})$', 'i'),
// ANA NAA
new RegExp('^(' + firstChar + '{1}[0-9]{1}' + thirdChar + '{1})(\\s*)([0-9]{1}' + fifthChar + '{2})$', 'i'),
// AANA NAA
new RegExp('^(' + firstChar + '{1}' + secondChar + '{1}?[0-9]{1}' + fourthChar + '{1})(\\s*)([0-9]{1}' + fifthChar + '{2})$', 'i'),
new RegExp('^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$', 'i'), // BFPO postcodes
/^(GIR)(\s*)(0AA)$/i, // Special postcode GIR 0AA
/^(BFPO)(\s*)([0-9]{1,4})$/i, // Standard BFPO numbers
/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i, // c/o BFPO numbers
/^([A-Z]{4})(\s*)(1ZZ)$/i, // Overseas Territories
/^(AI-2640)$/i // Anguilla
];
for (var i = 0; i < regexps.length; i++) {
if (regexps[i].test(value)) {
return true;
}
}
return false;
}
};
}(window.jQuery));
|
/**
* @fileOverview
* @name extend-hash.js<handlers>
* @author Travis Crist
*/
const { getCurrencyDetails, unitsPerHost } = require('../common/price.js')
const { checkPricesOnHosts, cleanHostListUrls } = require('../common/host-utils.js')
const { extendManifestByHash } = require('../common/manifest-upload.js')
const axios = require('axios')
const ora = require('ora')
const statusIndicator = ora({ text: '', color: 'blue', spinner: 'point' })
const config = require('../config.js')
const inquirer = require('inquirer')
const jsome = require('jsome')
const logger = require('riverpig')('codius-cli:extend-hash')
const { checkStatus } = require('../common/utils.js')
async function getExistingManifest (hostList, manifestHash) {
let responses = []
try {
for (const host of hostList) {
logger.debug(`Getting existing manifest from ${manifestHash}.${host}`)
const resp = await axios.get(`${host}/pods?manifestHash=${manifestHash}`, {
headers: { Accept: `application/codius-v${config.version.codius.min}+json` }
})
if (checkStatus(resp)) {
responses.push(resp.data)
} else {
throw new Error(`GET: ${host}/pods?manifestHash=${manifestHash} Failed. Status: ${resp.status}`)
}
}
} catch (err) {
throw new Error(`GET: ${err.config.url} ${err.message}`)
}
if (hostList.length !== responses.length) {
throw new Error(`One of the hosts: ${hostList} does not have the associated manifest. Please check your host(s) and try again`)
}
return responses[0]
}
function getHostList ({ host, manifestHash }) {
let hostsArr = []
if (!host) {
const potentialHost = manifestHash.split('.')
potentialHost.shift()
if (potentialHost.length <= 0) {
throw new Error(`The end of ${manifestHash} is not a valid url. Please use the format <manifesth-hash.hostName> to specify the specific pod to extend or the --host parameter.`)
}
console.log(potentialHost)
hostsArr = [`https://${potentialHost.join('.')}`]
} else {
hostsArr = host
}
return cleanHostListUrls(hostsArr)
}
function getManifestHash ({ host, manifestHash }) {
if (!host) {
return manifestHash.split('.')[0].toString().replace(/^https?:\/\//i, '')
}
return manifestHash
}
function getOptions ({
maxMonthlyRate = config.price.amount,
duration = config.duration,
units = config.price.units
}) {
return {
maxMonthlyRate: maxMonthlyRate,
duration: duration,
units: units
}
}
async function extendManifest (options) {
try {
statusIndicator.start('Checking Options')
const hostList = getHostList(options)
const manifestHash = getManifestHash(options)
const stateOptions = getOptions(options)
logger.debug(`host list: ${hostList}`)
logger.debug(`manifest hash: ${manifestHash}`)
logger.debug(`state options: ${JSON.stringify(stateOptions)}`)
statusIndicator.succeed('Options Validated Successfully')
statusIndicator.start('Fetching Exising Manifest')
const manifestJson = {
manifest: (await getExistingManifest(hostList, manifestHash)).manifest
}
statusIndicator.succeed()
if (!options.assumeYes) {
console.info('Extending Manifest:')
jsome(manifestJson)
console.info('on the following hosts:')
jsome(hostList)
console.info('with options:')
jsome(stateOptions)
const userResp = await inquirer.prompt([
{
type: 'confirm',
name: 'continueToExtend',
message: `Do you want to proceed with extending the pod?`,
default: false
}
])
if (!userResp.continueToExtend) {
statusIndicator.start('User declined to extend pod')
throw new Error('Extend manifest aborted by user')
}
}
statusIndicator.start('Calculating Max Monthly Rate')
const maxMonthlyRate = await unitsPerHost(stateOptions)
const currencyDetails = await getCurrencyDetails()
statusIndicator.start(`Checking Host(s) Monthly Rate vs Max Monthly Rate ${maxMonthlyRate.toString()} ${currencyDetails}`)
await checkPricesOnHosts(hostList, stateOptions.duration, maxMonthlyRate, manifestJson)
statusIndicator.succeed()
statusIndicator.start(`Uploading to ${hostList.length} host(s)`)
await extendManifestByHash(statusIndicator,
hostList, stateOptions.duration, maxMonthlyRate, manifestHash)
process.exit(0)
} catch (err) {
statusIndicator.fail()
logger.error(err.message)
logger.debug(err)
process.exit(1)
}
}
module.exports = {
extendManifest
}
|
import cleanGitRef from 'clean-git-ref'
import { GitRefManager } from '../managers/GitRefManager.js'
import { FileSystem } from '../models/FileSystem.js'
import { E, GitError } from '../models/GitError.js'
import { join } from '../utils/join.js'
import { cores } from '../utils/plugins.js'
/**
* Create a branch
*
* @link https://isomorphic-git.github.io/docs/branch.html
*/
export async function branch ({
core = 'default',
dir,
gitdir = join(dir, '.git'),
fs: _fs = cores.get(core).get('fs'),
ref
}) {
try {
const fs = new FileSystem(_fs)
if (ref === undefined) {
throw new GitError(E.MissingRequiredParameterError, {
function: 'branch',
parameter: 'ref'
})
}
if (ref !== cleanGitRef.clean(ref)) {
throw new GitError(E.InvalidRefNameError, {
verb: 'create',
noun: 'branch',
ref,
suggestion: cleanGitRef.clean(ref)
})
}
const exist = await fs.exists(`${gitdir}/refs/heads/${ref}`)
if (exist) {
throw new GitError(E.RefExistsError, { noun: 'branch', ref })
}
// Get tree oid
let oid
try {
oid = await GitRefManager.resolve({ fs, gitdir, ref: 'HEAD' })
} catch (e) {
throw new GitError(E.NoHeadCommitError, { noun: 'branch', ref })
}
// Create a new branch that points at that same commit
await fs.write(`${gitdir}/refs/heads/${ref}`, oid + '\n')
} catch (err) {
err.caller = 'git.branch'
throw err
}
}
|
define(function () {
"use strict";
//Deklarerer navn
function DataCristin() {};
//Init
DataCristin.prototype.initialize = function (oControlHost, fnDoneInitializing) {
fnDoneInitializing();
};
//Opptegning av elementene
DataCristin.prototype.draw = function (oControlHost) {
//henting av verdi fra prompt
var promptControls = oControlHost.page.getAllPromptControls();
var promptVerdi = promptControls[0].getValues(true)[0];
var urlPARAM = promptVerdi.use;
//importerer jQuery
var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-3.4.1.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
const unitVerdier = {
806: '194.35.5.0',
803: '194.33.0.0',
815: '194.62.1.0',
1082: '194.62.70.0',
1081: '194.62.65.0',
821: '194.62.35.0',
823: '194.62.45.0',
1080: '194.62.60.0',
822: '194.62.40.0',
808: '194.61.1.0',
1213: '194.61.50.0',
1214: '194.61.55.0',
840: '194.61.45.0',
813: '194.61.30.0',
826: '194.63.1.0',
1163: '194.63.60.0',
827: '194.63.10.0',
832: '194.63.35.0',
829: '194.63.20.0',
1215: '194.63.55.0',
831: '194.63.30.0',
828: '194.63.15.0',
830: '194.63.25.0',
1217: '194.64.91.0',
839: '194.64.25.0',
1216: '194.64.90.0',
1219: '194.64.93.0',
843: '194.64.45.0',
838: '194.64.20.0',
1218: '194.64.92.0',
1220: '194.64.94.0',
835: '194.64.1.0',
1102: '194.65.70.0',
1130: '194.65.80.0',
852: '194.65.15.0',
855: '194.65.30.0',
1228: '194.65.35.0',
853: '194.65.20.0',
854: '194.65.25.0',
1074: '194.65.60.0',
850: '194.65.1.0',
858: '194.65.35.5',
1221: '194.66.50.0',
1164: '194.66.40.0',
865: '194.66.10.0',
1134: '194.66.45.0',
866: '194.66.15.0',
867: '194.66.20.0',
868: '194.66.25.0',
869: '194.66.30.0',
870: '194.66.35.0',
864: '194.66.1.0',
873: '194.67.10.0',
1222: '194.67.80.0',
1186: '194.67.70.0',
879: '194.67.40.0',
880: '194.67.45.0',
1223: '194.67.90.0',
876: '194.67.25.0',
872: '194.67.1.0',
881: '194.60.25.0',
877: '194.60.20.0',
1138: '194.60.15.0',
1181: '194.60.10.0',
1212: '194.60.1.0',
804: '194.67.80.30',
805: '194.63.1.20',
1188: '194.67.80.40',
799: '194.31.5.0',
800: '194.31.10.0',
798: '194.31.1.0',
791: '194.16.0.0',
1044: '194.13.0.0',
1045: '194.17.0.0',
774: '194.14.30.0',
765: '194.14.0.0',
761: '194.12.1.0',
777: '194.15.0.0'
}
//åpner API request og starter struktureringen
let cristinResult = [];
let currentRequest = 0;
let feilmelding = false;
if (unitVerdier[urlPARAM] === undefined) {
var feil = document.createElement('div');
var melding = document.createElement('h2');
melding.textContent = 'Ingen Cristinresultater for denne enheten';
feil.appendChild(melding);
oControlHost.container.appendChild(feil);
feilmelding = true;
} else {
var section = document.createElement('div');
var categories = ["ARTICLE", "MONOGRAPHACA", "CHAPTERACADEMIC"];
var unit = unitVerdier[urlPARAM];
categories.forEach(function (category) {
var paramsString = "?fields=all&published_since=2019&category=" + category + "&unit=" + unit;
var requestURL = "https://api.cristin.no/v2/results" + paramsString;
var request = new XMLHttpRequest();
request.open("GET", requestURL);
request.responseType = "json";
request.onload = function () {
//sjekker om nettleseren er Internet Explorer
var isIE = /*@cc_on!@*/ false || !!document.documentMode;
if (isIE) {
cristinResult = cristinResult.concat(jQuery.parseJSON(request.response));
} else {
cristinResult = cristinResult.concat(request.response);
}
currentRequest++;
}
request.send();
});
}
if (!feilmelding) {
let done = false;
setInterval(function () {
if (currentRequest === categories.length && !done) {
done = true;
cristinResult.sort(function (a, b) {
var c = new Date(a.created.date);
var d = new Date(b.created.date);
return d - c;
});
var lengde = 5;
if (Object.keys(cristinResult).length < lengde) {
lengde = Object.keys(cristinResult).length;
}
for (var i = 0; i < lengde; i++) {
getMetadata(cristinResult[i]);
oControlHost.container.appendChild(section);
}
}
}, 500);
}
function getMetadata(jsonObj) {
var title = document.createElement('h2');
var myAuthor = document.createElement('h3');
var channel = document.createElement('h3');
var link = document.createElement('h3');
//legger inn tittel
title.textContent = jsonObj.title[Object.keys(jsonObj.title)[0]];
//henter og legger inn forfatter
myAuthor.textContent = "Forfattere:"
var contribURL = jsonObj.contributors.url;
var contribRequest = new XMLHttpRequest();
contribRequest.open('GET', contribURL);
contribRequest.responseType = 'json';
var unit = unitVerdier[urlPARAM];
contribRequest.onload = function () {
//sjekker om nettleseren er Internet Explorer
var isIE = /*@cc_on!@*/ false || !!document.documentMode;
if (isIE) {
var contributors = jQuery.parseJSON(contribRequest.response);
} else {
var contributors = contribRequest.response;
}
for (var key in contributors) {
if (contributors.hasOwnProperty(key)) {
var values = contributors[key]
if (values.affiliations[0].unit.cristin_unit_id == unit) {
if(myAuthor.textContent.length > 12) {
myAuthor.textContent += ', '
}
myAuthor.textContent += ' ' + values.first_name + ' ' + values.surname
}
}
}
}
contribRequest.send();
var link = document.createElement('a');
if (jsonObj.hasOwnProperty("links")) {
var linkText = jsonObj.links[0].url;
link.setAttribute("href", linkText);
link.setAttribute("target", "_blank");
link.textContent = jsonObj.links[0].url;
} else {
var linkText = jsonObj.url;
link.setAttribute("href", linkText);
link.setAttribute("target", "_blank");
link.textContent = jsonObj.url;
}
if (jsonObj.category.code == "ARTICLE") {
var journalName = jsonObj.journal.name;
channel.textContent = "Tidsskrift: " + journalName;
} else if (jsonObj.category.code == "MONOGRAPHACA") {
var publisherName = jsonObj.publisher.name;
channel.textContent = "Utgiver: " + publisherName;
} else {
var chapterURL = jsonObj.part_of.url;
channel.textContent = "Kapittel i antologi: " + chapterURL;
}
section.appendChild(title);
section.appendChild(myAuthor);
section.appendChild(link);
section.appendChild(channel);
}
};
//Returnerer objektet
return DataCristin;
});
|
$("#coinAmount").keypress(() => {
setTimeout(() => {
let btcAmount = (parseFloat($("#coinAmount").val()) * rate) / 100000000;
$("#btcAmount").val(btcAmount);
}, 50);
});
$("#btcAmount").keypress(() => {
setTimeout(() => {
let coinAmount = (parseFloat($("#btcAmount").val()) * 100000000) / rate;
$("#coinAmount").val(coinAmount);
}, 50);
});
|
const asyncHooks = require('async_hooks');
const Namespace = require('../namespace');
const { createNamespace, getNamespace } = require('../index');
jest.mock('async_hooks', () => ({
createHook: jest.fn()
}));
jest.mock('../namespace');
beforeEach(() => {
asyncHooks.createHook.mockClear();
Namespace.mockClear();
});
describe('Index unit tests', () => {
describe('Create namespace tests', () => {
it('should throw error if namespace already exists', () => {
asyncHooks.createHook.mockReturnValueOnce({ enable: () => true });
createNamespace('foo');
expect(() => createNamespace('foo')).toThrow(
'A namespace for foo already exists'
);
});
it('should create namespace properly', () => {
const enableSpy = jest.fn();
asyncHooks.createHook.mockReturnValueOnce({ enable: enableSpy });
createNamespace('bar');
expect(Namespace).toBeCalledTimes(1);
expect(asyncHooks.createHook).toBeCalledTimes(1);
expect(enableSpy).toBeCalledTimes(1);
});
});
describe('Get namespace tests', () => {
it('should get the created namespace', () => {
asyncHooks.createHook.mockReturnValueOnce({ enable: () => true });
const yam = createNamespace('yam');
const yabasha = getNamespace('yam');
expect(yam).toBe(yabasha);
});
});
});
|
// See http://docs.sequelizejs.com/en/latest/docs/models-definition/
// for more of what you can do here.
const Sequelize = require('sequelize');
const DataTypes = Sequelize.DataTypes;
const MODE = 'stores';
module.exports = function (app) {
// config Database
const paginate = app.get('paginate');
const sequelize = app.get('sequelizeClient');
// define table object
const model = sequelize.define(MODE,
{
id:{
type:DataTypes.INTEGER,
primaryKey:true,
autoIncrement:true,
allowNull: false,
unique: true
},
code:{
type:DataTypes.STRING,
allowNull:true,
defaultValue:null
},
name:{
type:DataTypes.STRING,
allowNull:false,
validate:{
notEmpty:{
args:true,
msg:"Vui lòng nhập tên"
},
len: {
args:[4,120],
msg:'Tên bộ phận giới hạn trong khoảng [4,120] ký tự'
},
}
},
type:{
type:DataTypes.TINYINT,
defaultValue:1
},
// AVAILABLE - NOT
status:{
type:DataTypes.TINYINT,
defaultValue:1
},
is_deleted:{
type:DataTypes.TINYINT,
defaultValue:0
},
company_id:{
type:DataTypes.INTEGER,
defaultValue:0
},
leader_id:{
type:DataTypes.INTEGER,
defaultValue:0
},
staff_on:{
type:DataTypes.TEXT,
allowNull:true,
defaultValue:null
},
creator_id:{
type:DataTypes.INTEGER,
defaultValue:0
},
deleted_by:{
type:DataTypes.INTEGER,
defaultValue:0
},
date_created:DataTypes.DATE,
date_modified:DataTypes.DATE,
date_deleted:DataTypes.DATE,
address:{
type:DataTypes.STRING,
defaultValue:null
},
region_code:{
type:DataTypes.STRING,
defaultValue:null
},
subregion_code:{
type:DataTypes.STRING,
defaultValue:null
},
ip_chamcong:{
type:DataTypes.STRING,
defaultValue:null
},
phone:{
type:DataTypes.STRING,
defaultValue:null
},
email:{
type:DataTypes.STRING,
defaultValue:null
},
fax:{
type:DataTypes.STRING,
defaultValue:null
},
lat:{
type:DataTypes.FLOAT('15,2'),
defaultValue:0
},
lng:{
type:DataTypes.FLOAT('15,2'),
defaultValue:0
},
setting:{
type:DataTypes.TEXT,
allowNull:true,
defaultValue:null
},
json:{
type:DataTypes.TEXT,
allowNull:true,
defaultValue:null
}
},
{
hooks: {
beforeValidate: function (data, options) {
if (typeof data.code === 'string') {
data.code = data.code.toLowerCase().trim();
}
}
}
}
)
Object.assign(model,{
_name:'departments',
_maxPage:paginate.max,
_page:0,
_key:'',
_start:'',
_end:'',
sort_by:'date_created',
sort_type:'DESC',
/* HTTP: GET METHOD*/
listAll(filter,params){
return new Promise((resolve,reject)=>{
const {query} = params;
this._maxPage = query.max || this._maxPage ;
this._page = query.p || 0 ;
this._page = this._page * this._maxPage;
this._key = query.key || this._key;
this._start = query.start || this._start;
this._end = query.end || this._end;
const isDel = query.is_deleted || 0 ;
const selWithDate = this._start !=='' ? ` AND ( ${this._name}.date_created >='${this._start}' and ${this._name}.date_created <= '${this._end}' ) ` : "";
const selWithIsDel = ` AND ${this._name}.is_deleted = ${isDel} `
const limit = this._maxPage !=='all' ? ` LIMIT ${this._page}, ${this._maxPage} ` : "";
let sql = ` SELECT ${this._name}.*, users.name as creator `;
const arr_type_condition = {
"count":`
FROM ${this._name}
INNER JOIN users on users.id = ${this._name}.creator_id
WHERE (${this._name}.json LIKE '%${ this._key }%' or ${this._name}.code LIKE '%${this._key}%' ) ${selWithDate + selWithIsDel }
`,
"all": `
FROM ${this._name}
INNER JOIN users on users.id = ${this._name}.creator_id
WHERE (${this._name}.json LIKE '%${ this._key }%' or ${this._name}.code LIKE '%${this._key}%' ) ${selWithDate + selWithIsDel }
ORDER BY ${this._name}.${this.sort_by} ${this.sort_type}
${limit}
`
}
sql += arr_type_condition[filter];
const countSQL = ` SELECT COUNT(*) AS cnt ${ arr_type_condition['count'] } `;
sequelize.query(sql).spread((results, metadata) => {
sequelize.query(countSQL).spread((count)=>{
const data = {
name:'success',
count:count[0]['cnt'],
rows:results,
}
resolve(data)
})
});
})
},
getInfo(id){
return new Promise((resolve,reject)=>{
const query = ` SELECT * from ${this._name}
WHERE id = ${id}
`;
sequelize.query(query).spread((results, metadata) => {
const data = results.length > 0 ? results[0] : {}
resolve(data);
});
});
},
// cURL : http://localhost:3333/products/checkcode?code=xxx
isExisted(code){
return new Promise((resolve,reject)=>{
model.findOne({
where: { code: code},
attributes: ['id']
}).then(idata => {
const data = idata || {};
const ret = {
name:"success",
message:JSON.stringify(data)==="{}" ? "no" : "yes"
}
resolve( ret );
});
})
}
/* END HTTP GET METHOD*/
});
return model;
};
|
process.env.NODE_ENV = 'test';
const chai = require('chai');
const should = chai.should();
const db = require('../../models');
const CartItemModel = require('../../models/cartitem');
const {
sequelize,
dataTypes,
checkModelName,
checkPropertyExists
} = require('sequelize-test-helpers');
chai.use(require('sinon-chai'));
describe('# CartItem Model', () => {
const CartItem = CartItemModel(sequelize, dataTypes);
checkModelName(CartItem)('CartItem');
context('properties', () => {
const cartItem = new CartItem();
['price', 'quantity', 'CartId', 'ProductId', 'ColorId'].forEach(
checkPropertyExists(cartItem)
);
});
context('associations', () => {
const [Cart, Product, Color] = ['Cart', 'Product', 'Color'];
before(() => {
CartItem.associate({ Cart });
CartItem.associate({ Product });
CartItem.associate({ Color });
});
it('should belong to one cart', done => {
CartItem.belongsTo.should.have.been.calledWith(Cart);
done();
});
it('should belong to one product', done => {
CartItem.belongsTo.should.have.been.calledWith(Product);
done();
});
it('should belong to one color', done => {
CartItem.belongsTo.should.have.been.calledWith(Color);
done();
});
});
context('action', () => {
let data = null;
const requiredColumns = {
quantity: 1,
price: 1
};
it('create', done => {
db.CartItem.create(requiredColumns)
.then(cartItem => {
data = cartItem;
should.exist(data);
done();
})
.catch(error => console.log(error));
});
it('read', done => {
db.CartItem.findByPk(data.id)
.then(cartItem => {
data.id.should.be.equal(cartItem.id);
done();
})
.catch(error => console.log(error));
});
it('update', done => {
db.CartItem.update({}, { where: { id: data.id } })
.then(() => db.CartItem.findByPk(data.id))
.then(cartItem => {
data.updatedAt.should.be.not.equal(cartItem.updatedAt);
done();
})
.catch(error => console.log(error));
});
it('delete', done => {
db.CartItem.destroy({ where: { id: data.id } })
.then(() => db.CartItem.findByPk(data.id))
.then(cartItem => {
should.not.exist(cartItem);
done();
})
.catch(error => console.log(error));
});
});
});
|
const express = require("express");
const router = express.Router();
const {
orderController,
getOrderController,
alluserorderController,
deliverorderController,
} = require("../controllers/orderController");
router.post("/placeorder", orderController);
router.post("/getuserorder", getOrderController);
router.get("/alluserorder", alluserorderController);
router.post("/deliverorder", deliverorderController);
module.exports = router;
|
/**
* @fileoverview Rule definition of "rule-def-format"
* @author Pig Fang <g-plane@hotmail.com>
*/
"use strict";
const path = require("path");
module.exports = {
meta: {
fixable: "code",
type: "problem",
schema: []
},
create: context => ({
CallExpression: node => {
if (node.callee.type !== "MemberExpression") {
return;
}
const { callee: { object: { name: objectName }, property: { name: propertyName } }, arguments: args } = node;
const sourceCode = context.getSourceCode();
if (objectName === "utils" && propertyName === "getFixableRule") {
const arg0 = args[0];
const ruleName = path.basename(context.getFilename(), ".js");
if (arg0.value !== ruleName) {
context.report({
node: arg0,
message: `Rule name should be '${ruleName}'`,
fix: fixer => fixer.replaceText(arg0, `"${ruleName}"`)
});
}
return;
}
if (objectName === "ruleComposer") {
if (propertyName === "mapReports") {
const [, predicate] = args;
if (predicate.type === "ArrowFunctionExpression" || predicate.type === "FunctionExpression") {
if (predicate.body.type !== "BlockStatement") {
context.report({
node: predicate.body,
message: "Body of predicate should be a block statement."
});
return;
}
const param0 = predicate.params[0].name;
const statements = predicate.body.body;
const returnStatement = statements.find(stmt => stmt.type === "ReturnStatement");
if (!returnStatement) {
context.report({
node: predicate,
message: "Should returning the problem object.",
fix: fixer => {
const lastToken = sourceCode.getLastToken(predicate);
return fixer.insertTextBefore(lastToken, `\nreturn ${param0};\n`);
}
});
} else if (returnStatement.argument.name !== param0) {
context.report({
node: predicate,
message: "Should returning the problem object.",
fix: fixer => fixer.replaceText(returnStatement, `return ${param0};`)
});
}
}
} else if (propertyName === "joinReports" && args[0].type !== "ArrayExpression") {
context.report({
node: args[0],
message: "The first argument of 'joinReports' should be an array."
});
}
}
}
})
};
|
import commonjs from '@rollup/plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
import resolve from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
const prod = process.env.NODE_ENV == 'production'
export default {
input: 'src/_bundle/main.js',
output: {
sourcemap: false,
format: 'iife',
name: 'main',
file: 'dist/assets/main.bundle.js',
},
plugins: [
postcss({
extract: 'main.bundle.css',
minimize: prod,
}),
resolve({
browser: true,
}),
commonjs(),
prod && terser(),
],
watch: {
clearScreen: false,
},
}
|
/**
* UserController
*
* @description :: Server-side logic for managing Users
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
index: function (req, res) {
console.log('loading users...')
User.find().exec(
function(err, users) {
return res.view('users/index', { users: users })
}
)
},
new: function (req, res) {
return res.view('users/new', {user: User.newObj()} );
},
create: function (req, res) {
var userParams = req.allParams().user;
if(userParams !== null) {
User.create(userParams).exec(
function createCB(err, user){
if(err !== null){
return res.view('users/new', {user: Object.assign(User.newObj(), userParams), errors: err.errors});
}
console.log('Created user with name ' + user.email);
req.flash('success', ('Successfully created user with email ' + user.email + ' .') );
return res.redirect('/users');
}
);
} else {
return res.view('users/new', {errors: {base: 'No user data provided.'} } );
}
},
edit: function (req, res) {
User.findOne({id: req.params.id}).exec(
function (err, user){
if (err) {
return res.serverError(err);
}
if (!user) {
return res.redirect('/');
}
sails.log('Found "%s"', user.email);
return res.view('users/edit', {user: user });
}
);
},
update: function (req, res) {
var userParams = req.allParams().user;
if(userParams !== null) {
User.update({ id : req.param("id")}, userParams).exec(
function updateCB(err, data){
if(err !== null){
return res.view('users/edit', {user: Object.assign(User.newObj(), userParams), errors: err.errors});
}
req.flash('error', ('Failed to update user "%s".', userParams['email'] ) );
return res.redirect('/users');
});
} else {
return res.view('users/edit', {errors: {base: 'No user data provided.'} } );
}
},
show: function (req, res) {
User.findOne({id: req.param("id")}).exec(
function(err, user){
if(err){
return res.redirect('/users');
} else {
return res.view('users/show', {user: user});
}
}
)
},
destroy: function (req, res) {
User.destroy({ id : req.param("id") }).exec(
function deleteCB(err, data){
return res.ok();
}
);
}
};
|
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = require('../ssr-module-cache.js');
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ var threw = true;
/******/ try {
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ threw = false;
/******/ } finally {
/******/ if(threw) delete installedModules[moduleId];
/******/ }
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ })
/************************************************************************/
/******/ ({
/***/ "/jkW":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.isDynamicRoute = isDynamicRoute; // Identify /[param]/ in route string
const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
function isDynamicRoute(route) {
return TEST_ROUTE.test(route);
}
/***/ }),
/***/ "0Bsm":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
exports.default = withRouter;
var _react = _interopRequireDefault(__webpack_require__("cDcd"));
var _router = __webpack_require__("nOHt");
function withRouter(ComposedComponent) {
function WithRouterWrapper(props) {
return /*#__PURE__*/_react.default.createElement(ComposedComponent, Object.assign({
router: (0, _router.useRouter)()
}, props));
}
WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps // This is needed to allow checking for custom getInitialProps in _app
;
WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
if (false) {}
return WithRouterWrapper;
}
/***/ }),
/***/ "0G5g":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.cancelIdleCallback = exports.requestIdleCallback = void 0;
const requestIdleCallback = typeof self !== 'undefined' && self.requestIdleCallback || function (cb) {
let start = Date.now();
return setTimeout(function () {
cb({
didTimeout: false,
timeRemaining: function () {
return Math.max(0, 50 - (Date.now() - start));
}
});
}, 1);
};
exports.requestIdleCallback = requestIdleCallback;
const cancelIdleCallback = typeof self !== 'undefined' && self.cancelIdleCallback || function (id) {
return clearTimeout(id);
};
exports.cancelIdleCallback = cancelIdleCallback;
/***/ }),
/***/ "284h":
/***/ (function(module, exports, __webpack_require__) {
var _typeof = __webpack_require__("cDf5");
function _getRequireWildcardCache() {
if (typeof WeakMap !== "function") return null;
var cache = new WeakMap();
_getRequireWildcardCache = function _getRequireWildcardCache() {
return cache;
};
return cache;
}
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
}
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
return {
"default": obj
};
}
var cache = _getRequireWildcardCache();
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
newObj["default"] = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
}
module.exports = _interopRequireWildcard;
/***/ }),
/***/ "3WeD":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.searchParamsToUrlQuery = searchParamsToUrlQuery;
exports.urlQueryToSearchParams = urlQueryToSearchParams;
exports.assign = assign;
function searchParamsToUrlQuery(searchParams) {
const query = {};
searchParams.forEach((value, key) => {
if (typeof query[key] === 'undefined') {
query[key] = value;
} else if (Array.isArray(query[key])) {
;
query[key].push(value);
} else {
query[key] = [query[key], value];
}
});
return query;
}
function stringifyUrlQueryParam(param) {
if (typeof param === 'string' || typeof param === 'number' && !isNaN(param) || typeof param === 'boolean') {
return String(param);
} else {
return '';
}
}
function urlQueryToSearchParams(urlQuery) {
const result = new URLSearchParams();
Object.entries(urlQuery).forEach(([key, value]) => {
if (Array.isArray(value)) {
value.forEach(item => result.append(key, stringifyUrlQueryParam(item)));
} else {
result.set(key, stringifyUrlQueryParam(value));
}
});
return result;
}
function assign(target, ...searchParamsList) {
searchParamsList.forEach(searchParams => {
Array.from(searchParams.keys()).forEach(key => target.delete(key));
searchParams.forEach((value, key) => target.append(key, value));
});
return target;
}
/***/ }),
/***/ "3wub":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.normalizeLocalePath = normalizeLocalePath;
function normalizeLocalePath(pathname, locales) {
let detectedLocale; // first item will be empty string from splitting at first char
const pathnameParts = pathname.split('/');
(locales || []).some(locale => {
if (pathnameParts[1].toLowerCase() === locale.toLowerCase()) {
detectedLocale = locale;
pathnameParts.splice(1, 1);
pathname = pathnameParts.join('/') || '/';
return true;
}
return false;
});
return {
pathname,
detectedLocale
};
}
/***/ }),
/***/ 4:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("RNiq");
/***/ }),
/***/ "4Q3z":
/***/ (function(module, exports) {
module.exports = require("next/router");
/***/ }),
/***/ "6D7l":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.formatUrl = formatUrl;
var querystring = _interopRequireWildcard(__webpack_require__("3WeD"));
function _getRequireWildcardCache() {
if (typeof WeakMap !== "function") return null;
var cache = new WeakMap();
_getRequireWildcardCache = function () {
return cache;
};
return cache;
}
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
}
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
return {
default: obj
};
}
var cache = _getRequireWildcardCache();
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
} // Format function modified from nodejs
// Copyright Joyent, Inc. and other Node contributors.
//
// 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.
const slashedProtocols = /https?|ftp|gopher|file/;
function formatUrl(urlObj) {
let {
auth,
hostname
} = urlObj;
let protocol = urlObj.protocol || '';
let pathname = urlObj.pathname || '';
let hash = urlObj.hash || '';
let query = urlObj.query || '';
let host = false;
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : '';
if (urlObj.host) {
host = auth + urlObj.host;
} else if (hostname) {
host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname);
if (urlObj.port) {
host += ':' + urlObj.port;
}
}
if (query && typeof query === 'object') {
query = String(querystring.urlQueryToSearchParams(query));
}
let search = urlObj.search || query && `?${query}` || '';
if (protocol && protocol.substr(-1) !== ':') protocol += ':';
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
host = '//' + (host || '');
if (pathname && pathname[0] !== '/') pathname = '/' + pathname;
} else if (!host) {
host = '';
}
if (hash && hash[0] !== '#') hash = '#' + hash;
if (search && search[0] !== '?') search = '?' + search;
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
search = search.replace('#', '%23');
return `${protocol}${host}${pathname}${search}${hash}`;
}
/***/ }),
/***/ "8NNg":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("4Q3z");
/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("dpnd");
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("YFqc");
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_3__);
var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
const Movie = props => {
const router = Object(next_router__WEBPACK_IMPORTED_MODULE_1__["useRouter"])();
const {
id
} = router.query;
const {
movie
} = props;
const handleDeleteMovie = id => {
Object(_actions__WEBPACK_IMPORTED_MODULE_2__[/* deleteMovie */ "b"])(id).then(() => {
router.push("/");
});
};
return __jsx("div", {
className: "container-fluid"
}, __jsx("div", {
className: "container"
}, __jsx("img", {
src: `https://image.tmdb.org/t/p/original${movie.backdrop_path}`,
className: "img-fluid",
alt: movie.title
}), __jsx("div", {
className: "jumbotron"
}, __jsx("h1", {
className: "display-4"
}, movie.title), __jsx("p", {
className: "lead c-dark"
}, movie.tagline), __jsx("hr", {
className: "my-4"
}), __jsx("div", {
className: "list-group-horizontal-sm mb-4"
}, movie.genres.map(genre => __jsx("span", {
key: genre.id,
className: "badge badge-pill badge-dark mr-1 mt-1"
}, genre.name))), movie.homepage && __jsx("a", {
className: "btn btn-outline-dark btn-lg mr-1",
href: movie.homepage,
target: "_blank",
role: "button"
}, "Learn more"), _actions__WEBPACK_IMPORTED_MODULE_2__[/* environment */ "c"] === "dev" && __jsx(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, __jsx("button", {
onClick: () => handleDeleteMovie(id),
className: "btn btn-outline-danger btn-lg mr-1",
href: "#",
role: "button"
}, "Delete"), __jsx(next_link__WEBPACK_IMPORTED_MODULE_3___default.a, {
href: "/movies/[id]/edit",
as: `/movies/${id}/edit`
}, __jsx("button", {
className: "btn btn-outline-warning btn-lg",
role: "button"
}, "Edit")))), __jsx("p", {
className: "lead c-white"
}, movie.overview)));
};
Movie.getInitialProps = async ({
query
}) => {
const movie = await Object(_actions__WEBPACK_IMPORTED_MODULE_2__[/* getMovieById */ "e"])(query.id);
return {
movie
};
};
/* harmony default export */ __webpack_exports__["default"] = (Movie);
/***/ }),
/***/ "GXs3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = resolveRewrites;
function resolveRewrites() {}
/***/ }),
/***/ "HJQg":
/***/ (function(module, exports) {
module.exports = require("styled-jsx/style");
/***/ }),
/***/ "HvCo":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
const MovieCreateForm = props => {
const {
0: isInitialDataLoaded,
1: setIsInitialDataLoaded
} = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(false);
const defaultData = {
name: "",
description: "",
rating: "",
image: "",
cover: "",
longDesc: ""
};
const formData = props.initialData ? _objectSpread({}, props.initialData) : defaultData;
const {
0: form,
1: setForm
} = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(formData); // useEffect(() => {
// if (props.initialData) {
// setForm(props.initialData);
// setIsInitialDataLoaded(true);
// }
// }, [isInitialDataLoaded]);
const handleChange = event => {
const target = event.target;
const name = target.name;
setForm(_objectSpread(_objectSpread({}, form), {}, {
[name]: target.value
}));
};
const handleGenreChange = event => {
const {
options
} = event.target;
const optionsLength = options.length;
let value = [];
for (let i = 0; i < optionsLength; i++) {
if (options[i].selected) {
value.push(options[i].value);
}
}
setForm(_objectSpread(_objectSpread({}, form), {}, {
genre: value.toString()
}));
};
const submitForm = () => {
props.handleFormSubmit(_objectSpread({}, form));
};
return __jsx(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, __jsx("form", null, __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "name"
}, "Nome"), __jsx("input", {
value: form.name,
onChange: handleChange,
name: "name",
type: "text",
className: "form-control",
id: "name",
"aria-describedby": "emailHelp",
placeholder: "Star Wars"
})), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "description"
}, "Descri\xE7\xE3o"), __jsx("input", {
value: form.description,
onChange: handleChange,
name: "description",
type: "text",
className: "form-control",
id: "description",
placeholder: "Em algum em uma gal\xE1xia distante..."
})), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "description"
}, "M\xE9dia"), __jsx("input", {
value: form.rating,
onChange: handleChange,
name: "rating",
type: "number",
max: "5",
min: "0",
className: "form-control",
id: "rating",
placeholder: "3"
}), __jsx("small", {
id: "emailHelp",
className: "form-text text-muted"
}, "Max: 5, Min: 0", " ")), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "image"
}, "Image"), __jsx("input", {
value: form.image,
onChange: handleChange,
name: "image",
type: "text",
className: "form-control",
id: "image",
placeholder: "http://....."
})), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "cover"
}, "Cover"), __jsx("input", {
value: form.cover,
onChange: handleChange,
name: "cover",
type: "text",
className: "form-control",
id: "cover",
placeholder: "http://......"
})), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "longDesc"
}, "Descri\xE7\xE3o completa"), __jsx("textarea", {
value: form.longDesc,
onChange: handleChange,
name: "longDesc",
className: "form-control",
id: "longDesc",
rows: "3"
})), __jsx("div", {
className: "form-group"
}, __jsx("label", {
htmlFor: "genre"
}, "Genre"), __jsx("select", {
onChange: handleGenreChange,
multiple: true,
className: "form-control",
id: "genre"
}, __jsx("option", null, "Drama"), __jsx("option", null, "A\xE7\xE3o"), __jsx("option", null, "Aventura"), __jsx("option", null, "Document\xE1rio"), __jsx("option", null, "M\xFAsical"))), __jsx("button", {
onClick: submitForm,
type: "button",
className: "btn btn-outline-dark"
}, props.submitButton || "Criar")));
};
/* harmony default export */ __webpack_exports__["a"] = (MovieCreateForm);
/***/ }),
/***/ "Nh2W":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
exports.markAssetError = markAssetError;
exports.isAssetError = isAssetError;
exports.getClientBuildManifest = getClientBuildManifest;
exports.default = void 0;
var _getAssetPathFromRoute = _interopRequireDefault(__webpack_require__("UhrY"));
var _requestIdleCallback = __webpack_require__("0G5g"); // 3.8s was arbitrarily chosen as it's what https://web.dev/interactive
// considers as "Good" time-to-interactive. We must assume something went
// wrong beyond this point, and then fall-back to a full page transition to
// show the user something of value.
const MS_MAX_IDLE_DELAY = 3800;
function withFuture(key, map, generator) {
let entry = map.get(key);
if (entry) {
if ('future' in entry) {
return entry.future;
}
return Promise.resolve(entry);
}
let resolver;
const prom = new Promise(resolve => {
resolver = resolve;
});
map.set(key, entry = {
resolve: resolver,
future: prom
});
return generator ? // eslint-disable-next-line no-sequences
generator().then(value => (resolver(value), value)) : prom;
}
function hasPrefetch(link) {
try {
link = document.createElement('link');
return (// detect IE11 since it supports prefetch but isn't detected
// with relList.support
!!window.MSInputMethodContext && !!document.documentMode || link.relList.supports('prefetch')
);
} catch (_unused) {
return false;
}
}
const canPrefetch = hasPrefetch();
function prefetchViaDom(href, as, link) {
return new Promise((res, rej) => {
if (document.querySelector(`link[rel="prefetch"][href^="${href}"]`)) {
return res();
}
link = document.createElement('link'); // The order of property assignment here is intentional:
if (as) link.as = as;
link.rel = `prefetch`;
link.crossOrigin = undefined;
link.onload = res;
link.onerror = rej; // `href` should always be last:
link.href = href;
document.head.appendChild(link);
});
}
const ASSET_LOAD_ERROR = Symbol('ASSET_LOAD_ERROR'); // TODO: unexport
function markAssetError(err) {
return Object.defineProperty(err, ASSET_LOAD_ERROR, {});
}
function isAssetError(err) {
return err && ASSET_LOAD_ERROR in err;
}
function appendScript(src, script) {
return new Promise((resolve, reject) => {
script = document.createElement('script'); // The order of property assignment here is intentional.
// 1. Setup success/failure hooks in case the browser synchronously
// executes when `src` is set.
script.onload = resolve;
script.onerror = () => reject(markAssetError(new Error(`Failed to load script: ${src}`))); // 2. Configure the cross-origin attribute before setting `src` in case the
// browser begins to fetch.
script.crossOrigin = undefined; // 3. Finally, set the source and inject into the DOM in case the child
// must be appended for fetching to start.
script.src = src;
document.body.appendChild(script);
});
} // Resolve a promise that times out after given amount of milliseconds.
function resolvePromiseWithTimeout(p, ms, err) {
return new Promise((resolve, reject) => {
let cancelled = false;
p.then(r => {
// Resolved, cancel the timeout
cancelled = true;
resolve(r);
}).catch(reject);
(0, _requestIdleCallback.requestIdleCallback)(() => setTimeout(() => {
if (!cancelled) {
reject(err);
}
}, ms));
});
} // TODO: stop exporting or cache the failure
// It'd be best to stop exporting this. It's an implementation detail. We're
// only exporting it for backwards compatibilty with the `page-loader`.
// Only cache this response as a last resort if we cannot eliminate all other
// code branches that use the Build Manifest Callback and push them through
// the Route Loader interface.
function getClientBuildManifest() {
if (self.__BUILD_MANIFEST) {
return Promise.resolve(self.__BUILD_MANIFEST);
}
const onBuildManifest = new Promise(resolve => {
// Mandatory because this is not concurrent safe:
const cb = self.__BUILD_MANIFEST_CB;
self.__BUILD_MANIFEST_CB = () => {
resolve(self.__BUILD_MANIFEST);
cb && cb();
};
});
return resolvePromiseWithTimeout(onBuildManifest, MS_MAX_IDLE_DELAY, markAssetError(new Error('Failed to load client build manifest')));
}
function getFilesForRoute(assetPrefix, route) {
if (false) {}
return getClientBuildManifest().then(manifest => {
if (!(route in manifest)) {
throw markAssetError(new Error(`Failed to lookup route: ${route}`));
}
const allFiles = manifest[route].map(entry => assetPrefix + '/_next/' + encodeURI(entry));
return {
scripts: allFiles.filter(v => v.endsWith('.js')),
css: allFiles.filter(v => v.endsWith('.css'))
};
});
}
function createRouteLoader(assetPrefix) {
const entrypoints = new Map();
const loadedScripts = new Map();
const styleSheets = new Map();
const routes = new Map();
function maybeExecuteScript(src) {
let prom = loadedScripts.get(src);
if (prom) {
return prom;
} // Skip executing script if it's already in the DOM:
if (document.querySelector(`script[src^="${src}"]`)) {
return Promise.resolve();
}
loadedScripts.set(src, prom = appendScript(src));
return prom;
}
function fetchStyleSheet(href) {
let prom = styleSheets.get(href);
if (prom) {
return prom;
}
styleSheets.set(href, prom = fetch(href).then(res => {
if (!res.ok) {
throw new Error(`Failed to load stylesheet: ${href}`);
}
return res.text().then(text => ({
href: href,
content: text
}));
}).catch(err => {
throw markAssetError(err);
}));
return prom;
}
return {
whenEntrypoint(route) {
return withFuture(route, entrypoints);
},
onEntrypoint(route, execute) {
Promise.resolve(execute).then(fn => fn()).then(exports => ({
component: exports && exports.default || exports,
exports: exports
}), err => ({
error: err
})).then(input => {
const old = entrypoints.get(route);
entrypoints.set(route, input);
if (old && 'resolve' in old) old.resolve(input);
});
},
loadRoute(route, prefetch) {
return withFuture(route, routes, () => {
return resolvePromiseWithTimeout(getFilesForRoute(assetPrefix, route).then(({
scripts,
css
}) => {
return Promise.all([entrypoints.has(route) ? [] : Promise.all(scripts.map(maybeExecuteScript)), Promise.all(css.map(fetchStyleSheet))]);
}).then(res => {
return this.whenEntrypoint(route).then(entrypoint => ({
entrypoint,
styles: res[1]
}));
}), MS_MAX_IDLE_DELAY, markAssetError(new Error(`Route did not complete loading: ${route}`))).then(({
entrypoint,
styles
}) => {
const res = Object.assign({
styles: styles
}, entrypoint);
return 'error' in entrypoint ? entrypoint : res;
}).catch(err => {
if (prefetch) {
// we don't want to cache errors during prefetch
throw err;
}
return {
error: err
};
});
});
},
prefetch(route) {
// https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118
// License: Apache 2.0
let cn;
if (cn = navigator.connection) {
// Don't prefetch if using 2G or if Save-Data is enabled.
if (cn.saveData || /2g/.test(cn.effectiveType)) return Promise.resolve();
}
return getFilesForRoute(assetPrefix, route).then(output => Promise.all(canPrefetch ? output.scripts.map(script => prefetchViaDom(script, 'script')) : [])).then(() => {
(0, _requestIdleCallback.requestIdleCallback)(() => this.loadRoute(route, true).catch(() => {}));
}).catch( // swallow prefetch errors
() => {});
}
};
}
var _default = createRouteLoader;
exports.default = _default;
/***/ }),
/***/ "Osoz":
/***/ (function(module, exports) {
module.exports = require("next/dist/next-server/lib/router-context.js");
/***/ }),
/***/ "RNiq":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: external "react"
var external_react_ = __webpack_require__("cDcd");
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
// EXTERNAL MODULE: external "next/router"
var router_ = __webpack_require__("4Q3z");
// CONCATENATED MODULE: ./components/modal.js
var __jsx = external_react_default.a.createElement;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// const Modal = (props) => {
// let closeButton = null;
// const submitModal = () => {
// alert("sub");
// closeButton.click();
// };
// return (
// <React.Fragment>
// <button
// type="button"
// className="btn btn-outline-dark"
// data-toggle="modal"
// data-target="#exampleModal"
// >
// Create Movie
// </button>
// <div
// className="modal fade"
// id="exampleModal"
// tabIndex="-1"
// aria-labelledby="exampleModalLabel"
// aria-hidden="true"
// >
// <div className="modal-dialog">
// <div className="modal-content">
// <div className="modal-header">
// <h5 className="modal-title" id="exampleModalLabel">
// Create Movie
// </h5>
// <button
// type="button"
// className="close"
// data-dismiss="modal"
// aria-label="Close"
// >
// <span aria-hidden="true">×</span>
// </button>
// </div>
// <div className="modal-body">{props.children}</div>
// <div className="modal-footer">
// <button
// ref={(ele) => (closeButton = ele)}
// type="button"
// className="btn btn-secondary"
// data-dismiss="modal"
// >
// Close
// </button>
// {props.hasSubmit && (
// <button
// onClick={submitModal}
// type="button"
// className="btn btn-outline-dark"
// >
// Save changes
// </button>
// )}
// </div>
// </div>
// </div>
// </div>
// </React.Fragment>
// );
// };
// export default Modal;
class modal_Modal extends external_react_default.a.Component {
constructor(props) {
super(props);
_defineProperty(this, "submitModal", () => {
this.closeModal();
});
this.closeButton = null;
}
closeModal() {
this.closeButton.click();
}
render() {
return __jsx(external_react_default.a.Fragment, null, this.props.environment === "dev" && __jsx("button", {
type: "button",
className: "btn btn-outline-dark",
"data-toggle": "modal",
"data-target": "#exampleModal"
}, "Create Movie"), __jsx("div", {
className: "modal fade",
id: "exampleModal",
tabIndex: "-1",
"aria-labelledby": "exampleModalLabel",
"aria-hidden": "true"
}, __jsx("div", {
className: "modal-dialog"
}, __jsx("div", {
className: "modal-content"
}, __jsx("div", {
className: "modal-header"
}, __jsx("h5", {
className: "modal-title",
id: "exampleModalLabel"
}, "Criar Filme"), __jsx("button", {
type: "button",
className: "close",
"data-dismiss": "modal",
"aria-label": "Close"
}, __jsx("span", {
"aria-hidden": "true"
}, "\xD7"))), __jsx("div", {
className: "modal-body"
}, this.props.children), __jsx("div", {
className: "modal-footer"
}, __jsx("button", {
ref: ele => this.closeButton = ele,
type: "button",
className: "btn btn-secondary",
"data-dismiss": "modal"
}, "Fechar"), this.props.hasSubmit && __jsx("button", {
onClick: this.submitModal,
type: "button",
className: "btn btn-outline-dark"
}, "Savar altera\xE7\xF5es"))))));
}
}
/* harmony default export */ var components_modal = (modal_Modal);
// EXTERNAL MODULE: ./components/movieCreateForm.js
var movieCreateForm = __webpack_require__("HvCo");
// EXTERNAL MODULE: ./actions/index.js
var actions = __webpack_require__("dpnd");
// CONCATENATED MODULE: ./components/sideMenu.js
var sideMenu_jsx = external_react_default.a.createElement;
const SideMenu = props => {
const {
categories
} = props;
const router = Object(router_["useRouter"])();
let modal = null;
const handleCreateMovie = movie => {
Object(actions["a" /* createMovie */])(movie).then(() => {
modal.closeModal();
router.push("/");
});
};
return sideMenu_jsx("div", null, sideMenu_jsx(components_modal, {
ref: ele => modal = ele,
hasSubmit: false,
environment: actions["c" /* environment */]
}, sideMenu_jsx(movieCreateForm["a" /* default */], {
handleFormSubmit: handleCreateMovie
})), sideMenu_jsx("h4", {
className: "my-4 c-red"
}, props.appName), sideMenu_jsx("div", {
className: "list-group"
}, categories.map(c => sideMenu_jsx("a", {
key: c.id,
onClick: () => props.changeCategory(c),
href: "#",
className: `list-group-item btn-outline-dark ${props.activeCategory === c.id ? "active" : ""}`
}, c.name))));
};
/* harmony default export */ var sideMenu = (SideMenu);
// EXTERNAL MODULE: external "styled-jsx/style"
var style_ = __webpack_require__("HJQg");
var style_default = /*#__PURE__*/__webpack_require__.n(style_);
// EXTERNAL MODULE: ./pages/movies/[id]/index.js
var _id_ = __webpack_require__("8NNg");
// CONCATENATED MODULE: ./components/carousel.js
var carousel_jsx = external_react_default.a.createElement;
const Carousel = props => {
const {
images
} = props;
return carousel_jsx("div", {
id: "carouselExampleIndicators",
"data-ride": "carousel",
className: "jsx-4231805008" + " " + "carousel slide my-4"
}, carousel_jsx("ol", {
className: "jsx-4231805008" + " " + "carousel-indicators"
}, images.map((image, index) => carousel_jsx("li", {
key: image.id,
"data-target": "#carouselExampleIndicators",
"data-slide-to": index,
className: "jsx-4231805008" + " " + ((index === 0 ? "active" : "") || "")
}))), carousel_jsx("div", {
role: "listbox",
className: "jsx-4231805008" + " " + "carousel-inner"
}, images.map((image, index) => carousel_jsx("div", {
key: image.id,
className: "jsx-4231805008" + " " + ((index === 0 ? "carousel-item active" : "carousel-item") || "")
}, carousel_jsx("img", {
src: `https://image.tmdb.org/t/p/original${image.backdrop_path}`,
alt: image.title,
className: "jsx-4231805008" + " " + "d-block img-fluid"
})))), carousel_jsx("a", {
href: "#carouselExampleIndicators",
role: "button",
"data-slide": "prev",
className: "jsx-4231805008" + " " + "carousel-control-prev"
}, carousel_jsx("span", {
"aria-hidden": "true",
className: "jsx-4231805008" + " " + "carousel-control-prev-icon"
}), carousel_jsx("span", {
className: "jsx-4231805008" + " " + "sr-only"
}, "Anterior")), carousel_jsx("a", {
href: "#carouselExampleIndicators",
role: "button",
"data-slide": "next",
className: "jsx-4231805008" + " " + "carousel-control-next"
}, carousel_jsx("span", {
"aria-hidden": "true",
className: "jsx-4231805008" + " " + "carousel-control-next-icon"
}), carousel_jsx("span", {
className: "jsx-4231805008" + " " + "sr-only"
}, "Pr\xF3ximo")), carousel_jsx(style_default.a, {
id: "4231805008"
}, [".carousel-item.jsx-4231805008{max-height:600px;}"]));
};
/* harmony default export */ var carousel = (Carousel);
// EXTERNAL MODULE: ./node_modules/next/link.js
var next_link = __webpack_require__("YFqc");
var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
// CONCATENATED MODULE: ./components/movieList.js
var movieList_jsx = external_react_default.a.createElement;
function movieList_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class movieList_MovieList extends external_react_default.a.Component {
constructor(...args) {
super(...args);
movieList_defineProperty(this, "shorten", (text, maxLength) => {
if (text && text.length > maxLength) {
return text.substr(0, maxLength) + "...";
}
return text;
});
}
renderMovies(movies) {
return movies.map(movie => movieList_jsx("div", {
key: movie.id,
className: "col-lg-3 col-md-6 mb-4"
}, movieList_jsx("div", {
className: "card h-100"
}, movieList_jsx(link_default.a, {
href: "/movies/[id]",
as: `/movies/${movie.id}`
}, movieList_jsx("a", null, movieList_jsx("img", {
className: "card-img-top",
src: `https://image.tmdb.org/t/p/original${movie.poster_path}`,
alt: movie.title
}))), movieList_jsx("div", {
className: "card-body"
}, movieList_jsx("h4", {
className: "card-title"
}, movieList_jsx(link_default.a, {
href: "/movies/[id]",
as: `/movies/${movie.id}`
}, movieList_jsx("a", {
className: "text-dark"
}, movie.title))), movieList_jsx("div", {
className: "movie-genre text-muted"
}, movie.genre), movieList_jsx("p", {
className: "card-text"
}, this.shorten(movie.overview, 100)), movieList_jsx("p", {
className: "card-text"
}, movieList_jsx("small", {
className: "text-muted"
}, `Release date: ${movie.release_date}`))), movieList_jsx("div", {
className: "card-footer"
}, movieList_jsx("small", {
className: "text-muted"
}, movie.vote_average)))));
} // TODO: Implement pagination. The themoviedb api is prepared.
render() {
const {
movies
} = this.props;
return movieList_jsx(external_react_default.a.Fragment, null, this.renderMovies(movies));
}
}
/* harmony default export */ var movieList = (movieList_MovieList);
// CONCATENATED MODULE: ./pages/index.js
var pages_jsx = external_react_default.a.createElement;
function pages_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class pages_Home extends external_react_default.a.Component {
constructor(props) {
super(props);
pages_defineProperty(this, "handleChangeCategory", category => {
this.setState({
filter: [category.id, category.name]
});
});
pages_defineProperty(this, "filterMovies", movies => {
if (this.state.filter[0] === 0) return movies;
return movies.filter(m => {
return m.genre_ids && m.genre_ids.includes(this.state.filter[0]);
});
});
this.state = {
filter: [0, "Todos"]
};
} // wait for the movies on server side before renders on browser
static async getInitialProps() {
const movies = await Object(actions["f" /* getMovies */])();
const categories = await Object(actions["d" /* getCategories */])(); // let movies = [];
// let categories = [];
// getMovies()
// .then((result) => {
// movies = result;
// })
// .catch((error) => {
// console.error(error);
// });
// getCategories()
// .then((result) => {
// categories = result;
// })
// .catch((error) => {
// console.error(error);
// });
const images = movies.map(movie => {
return {
id: `image-${movie.id}`,
backdrop_path: movie.backdrop_path,
title: movie.title
};
});
return {
movies,
categories,
images
};
}
// // called only on Client (Browser...)
// componentDidMount() {
//
// }
render() {
const {
movies,
images,
categories
} = this.props;
return pages_jsx(external_react_default.a.Fragment, null, pages_jsx("div", {
className: "home-page"
}, pages_jsx("div", {
className: "container-fluid"
}, pages_jsx("div", {
className: "row"
}, pages_jsx("div", {
className: "col-lg-3"
}, pages_jsx(sideMenu, {
changeCategory: this.handleChangeCategory,
activeCategory: this.state.filter[0],
appName: "Categorias",
categories: categories || []
})), pages_jsx("div", {
className: "col-lg-9"
}, pages_jsx(carousel, {
images: images || []
}), pages_jsx("h4", {
className: "my-4 c-red"
}, "Mostrando ", this.state.filter[1], " Filmes", " "), pages_jsx("div", {
className: "row"
}, pages_jsx(movieList, {
movies: this.filterMovies(movies) || []
})))))));
}
} // Functional component
// const Home = () => {
// const [movies, setMovies] = useState([]);
// useEffect(() => {
// getMovies().then((movies) => {
// setMovies(movies);
// });
// }, []);
// return (
// <div>
// <Head>
// <title>Home</title>
// <link
// rel="stylesheet"
// href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
// integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
// crossOrigin="anonymous"
// />
// <script
// src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
// integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
// crossOrigin="anonymous"
// ></script>
// <script
// src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
// integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
// crossOrigin="anonymous"
// ></script>
// <script
// src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
// integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
// crossOrigin="anonymous"
// ></script>
// </Head>
// <Navbar />
// <div className="home-page">
// <div className="container-fluid">
// <div className="row">
// <div className="col-lg-3">
// <SideMenu appName={"Movie DB"} />
// </div>
// <div className="col-lg-9">
// <Carousel />
// <div className="row">
// <MovieList movies={movies} />
// </div>
// </div>
// </div>
// </div>
// </div>
// <Footer />
// <style jsx>{`
// .home-page {
// padding-top: 80px;
// }
// `}</style>
// </div>
// );
// };
/* harmony default export */ var pages = __webpack_exports__["default"] = (pages_Home);
/***/ }),
/***/ "TqRt":
/***/ (function(module, exports) {
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}
module.exports = _interopRequireDefault;
/***/ }),
/***/ "UhrY":
/***/ (function(module, exports) {
module.exports = require("next/dist/next-server/lib/router/utils/get-asset-path-from-route.js");
/***/ }),
/***/ "X24+":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.removePathTrailingSlash = removePathTrailingSlash;
exports.normalizePathTrailingSlash = void 0;
/**
* Removes the trailing slash of a path if there is one. Preserves the root path `/`.
*/
function removePathTrailingSlash(path) {
return path.endsWith('/') && path !== '/' ? path.slice(0, -1) : path;
}
/**
* Normalizes the trailing slash of a path according to the `trailingSlash` option
* in `next.config.js`.
*/
const normalizePathTrailingSlash = false ? undefined : removePathTrailingSlash;
exports.normalizePathTrailingSlash = normalizePathTrailingSlash;
/***/ }),
/***/ "YFqc":
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("cTJO")
/***/ }),
/***/ "YTqd":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getRouteRegex = getRouteRegex; // this isn't importing the escape-string-regex module
// to reduce bytes
function escapeRegex(str) {
return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
}
function parseParameter(param) {
const optional = param.startsWith('[') && param.endsWith(']');
if (optional) {
param = param.slice(1, -1);
}
const repeat = param.startsWith('...');
if (repeat) {
param = param.slice(3);
}
return {
key: param,
repeat,
optional
};
}
function getRouteRegex(normalizedRoute) {
const segments = (normalizedRoute.replace(/\/$/, '') || '/').slice(1).split('/');
const groups = {};
let groupIndex = 1;
const parameterizedRoute = segments.map(segment => {
if (segment.startsWith('[') && segment.endsWith(']')) {
const {
key,
optional,
repeat
} = parseParameter(segment.slice(1, -1));
groups[key] = {
pos: groupIndex++,
repeat,
optional
};
return repeat ? optional ? '(?:/(.+?))?' : '/(.+?)' : '/([^/]+?)';
} else {
return `/${escapeRegex(segment)}`;
}
}).join(''); // dead code eliminate for browser since it's only needed
// while generating routes-manifest
if (true) {
let routeKeyCharCode = 97;
let routeKeyCharLength = 1; // builds a minimal routeKey using only a-z and minimal number of characters
const getSafeRouteKey = () => {
let routeKey = '';
for (let i = 0; i < routeKeyCharLength; i++) {
routeKey += String.fromCharCode(routeKeyCharCode);
routeKeyCharCode++;
if (routeKeyCharCode > 122) {
routeKeyCharLength++;
routeKeyCharCode = 97;
}
}
return routeKey;
};
const routeKeys = {};
let namedParameterizedRoute = segments.map(segment => {
if (segment.startsWith('[') && segment.endsWith(']')) {
const {
key,
optional,
repeat
} = parseParameter(segment.slice(1, -1)); // replace any non-word characters since they can break
// the named regex
let cleanedKey = key.replace(/\W/g, '');
let invalidKey = false; // check if the key is still invalid and fallback to using a known
// safe key
if (cleanedKey.length === 0 || cleanedKey.length > 30) {
invalidKey = true;
}
if (!isNaN(parseInt(cleanedKey.substr(0, 1)))) {
invalidKey = true;
}
if (invalidKey) {
cleanedKey = getSafeRouteKey();
}
routeKeys[cleanedKey] = key;
return repeat ? optional ? `(?:/(?<${cleanedKey}>.+?))?` : `/(?<${cleanedKey}>.+?)` : `/(?<${cleanedKey}>[^/]+?)`;
} else {
return `/${escapeRegex(segment)}`;
}
}).join('');
return {
re: new RegExp(`^${parameterizedRoute}(?:/)?$`),
groups,
routeKeys,
namedRegex: `^${namedParameterizedRoute}(?:/)?$`
};
}
return {
re: new RegExp(`^${parameterizedRoute}(?:/)?$`),
groups
};
}
/***/ }),
/***/ "cDcd":
/***/ (function(module, exports) {
module.exports = require("react");
/***/ }),
/***/ "cDf5":
/***/ (function(module, exports) {
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
module.exports = _typeof = function _typeof(obj) {
return typeof obj;
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
module.exports = _typeof;
/***/ }),
/***/ "cTJO":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _interopRequireWildcard = __webpack_require__("284h");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
var _router = __webpack_require__("elyg");
var _router2 = __webpack_require__("nOHt");
var _useIntersection = __webpack_require__("vNVm");
const prefetched = {};
function prefetch(router, href, as, options) {
if (true) return;
if (!(0, _router.isLocalURL)(href)) return; // Prefetch the JSON page if asked (only in the client)
// We need to handle a prefetch error here since we may be
// loading with priority which can reject but we don't
// want to force navigation since this is only a prefetch
router.prefetch(href, as, options).catch(err => {
if (false) {}
});
const curLocale = options && typeof options.locale !== 'undefined' ? options.locale : router && router.locale; // Join on an invalid URI character
prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')] = true;
}
function isModifiedEvent(event) {
const {
target
} = event.currentTarget;
return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
event.nativeEvent && event.nativeEvent.which === 2;
}
function linkClicked(e, router, href, as, replace, shallow, scroll, locale) {
const {
nodeName
} = e.currentTarget;
if (nodeName === 'A' && (isModifiedEvent(e) || !(0, _router.isLocalURL)(href))) {
// ignore click for browser’s default behavior
return;
}
e.preventDefault(); // avoid scroll for urls with anchor refs
if (scroll == null) {
scroll = as.indexOf('#') < 0;
} // replace state instead of push if prop is present
router[replace ? 'replace' : 'push'](href, as, {
shallow,
locale,
scroll
});
}
function Link(props) {
if (false) {}
const p = props.prefetch !== false;
const router = (0, _router2.useRouter)();
const pathname = router && router.asPath || '/';
const {
href,
as
} = _react.default.useMemo(() => {
const [resolvedHref, resolvedAs] = (0, _router.resolveHref)(pathname, props.href, true);
return {
href: resolvedHref,
as: props.as ? (0, _router.resolveHref)(pathname, props.as) : resolvedAs || resolvedHref
};
}, [pathname, props.href, props.as]);
let {
children,
replace,
shallow,
scroll,
locale
} = props; // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
if (typeof children === 'string') {
children = /*#__PURE__*/_react.default.createElement("a", null, children);
} // This will return the first child, if multiple are provided it will throw an error
const child = _react.Children.only(children);
const childRef = child && typeof child === 'object' && child.ref;
const [setIntersectionRef, isVisible] = (0, _useIntersection.useIntersection)({
rootMargin: '200px'
});
const setRef = _react.default.useCallback(el => {
setIntersectionRef(el);
if (childRef) {
if (typeof childRef === 'function') childRef(el);else if (typeof childRef === 'object') {
childRef.current = el;
}
}
}, [childRef, setIntersectionRef]);
(0, _react.useEffect)(() => {
const shouldPrefetch = isVisible && p && (0, _router.isLocalURL)(href);
const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale;
const isPrefetched = prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')];
if (shouldPrefetch && !isPrefetched) {
prefetch(router, href, as, {
locale: curLocale
});
}
}, [as, href, isVisible, locale, p, router]);
const childProps = {
ref: setRef,
onClick: e => {
if (child.props && typeof child.props.onClick === 'function') {
child.props.onClick(e);
}
if (!e.defaultPrevented) {
linkClicked(e, router, href, as, replace, shallow, scroll, locale);
}
}
};
childProps.onMouseEnter = e => {
if (!(0, _router.isLocalURL)(href)) return;
if (child.props && typeof child.props.onMouseEnter === 'function') {
child.props.onMouseEnter(e);
}
prefetch(router, href, as, {
priority: true
});
}; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
// defined, we specify the current 'href', so that repetition is not needed by the user
if (props.passHref || child.type === 'a' && !('href' in child.props)) {
const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale; // we only render domain locales if we are currently on a domain locale
// so that locale links are still visitable in development/preview envs
const localeDomain = router && router.isLocaleDomain && (0, _router.getDomainLocale)(as, curLocale, router && router.locales, router && router.domainLocales);
childProps.href = localeDomain || (0, _router.addBasePath)((0, _router.addLocale)(as, curLocale, router && router.defaultLocale));
}
return /*#__PURE__*/_react.default.cloneElement(child, childProps);
}
var _default = Link;
exports.default = _default;
/***/ }),
/***/ "dZ6Y":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = mitt;
/*
MIT License
Copyright (c) Jason Miller (https://jasonformat.com/)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// This file is based on https://github.com/developit/mitt/blob/v1.1.3/src/index.js
// It's been edited for the needs of this script
// See the LICENSE at the top of the file
function mitt() {
const all = Object.create(null);
return {
on(type, handler) {
;
(all[type] || (all[type] = [])).push(handler);
},
off(type, handler) {
if (all[type]) {
all[type].splice(all[type].indexOf(handler) >>> 0, 1);
}
},
emit(type, ...evts) {
// eslint-disable-next-line array-callback-return
;
(all[type] || []).slice().map(handler => {
handler(...evts);
});
}
};
}
/***/ }),
/***/ "dpnd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return environment; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getCategories; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getMovies; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createMovie; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getMovieById; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return updateMovie; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteMovie; });
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("zr5I");
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
const environment = "prod";
const dev = {
url: "http://localhost:3000"
};
const prod = {
url: "https://api.themoviedb.org/3",
// api_key: process.env.API_ENV,
api_key: "a6e3a68c3b13fa67916e7f4ce66a8290",
language: "pt-br"
};
const CATEGORY_DATA = [{
id: 0,
name: "Todos"
}, {
id: 28,
name: "Action"
}, {
id: 12,
name: "Adventure"
}, {
id: 16,
name: "Animation"
}, {
id: 35,
name: "Comedy"
}, {
id: 80,
name: "Crime"
}, {
id: 99,
name: "Documentary"
}, {
id: 18,
name: "Drama"
}, {
id: 10751,
name: "Family"
}, {
id: 14,
name: "Fantasy"
}, {
id: 36,
name: "History"
}, {
id: 27,
name: "Horror"
}, {
id: 10402,
name: "Music"
}, {
id: 9648,
name: "Mystery"
}, {
id: 10749,
name: "Romance"
}, {
id: 878,
name: "Science Fiction"
}, {
id: 10770,
name: "TV"
}, {
id: 53,
name: "Thriller"
}, {
id: 10752,
name: "War"
}, {
id: 37,
name: "Western"
}];
const getCategories = () => {
if (environment === "prod") {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(`${prod.url}/genre/movie/list?api_key=${prod.api_key}&language=${prod.language}`).then(res => {
const categories = [{
id: 0,
name: "Todos"
}];
categories.push(...res.data.genres);
return categories;
}).catch(error => {
console.error("getCategories", error);
});
} else {
return new Promise((resolve, reject) => {
setTimeout(() => {
try {
resolve(CATEGORY_DATA);
} catch (error) {
reject(`Cannot fetch data: ${error}`);
}
}, 200);
});
}
};
const getMovies = (page = 1) => {
if (environment === "prod") {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(`${prod.url}/movie/popular?api_key=${prod.api_key}&language=${prod.language}&page=${page}`).then(res => {
if (res.data && res.data.results) return res.data.results;else return [];
}).catch(error => {
console.error("getMovies", error);
return [];
});
} else {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(`${dev.url}/api/v1/movies`).then(res => {
return res.data.results;
});
}
};
const createMovie = movie => {
movie.id = Math.random().toString(36).substr(2, 7);
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.post(`${dev.url}/api/v1/movies`, movie).then(res => {
return res.data;
});
};
const getMovieById = id => {
if (environment === "prod") {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(`${prod.url}/movie/${id}?api_key=${prod.api_key}&language=${prod.language}`).then(res => {
return res.data;
}).catch(error => {
console.error("getMovieById", error);
});
} else {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(`${dev.url}/api/v1/movies/${id}`).then(res => {
return res.data;
});
}
};
const updateMovie = movie => {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.patch(`${dev.url}/api/v1/movies/${movie.id}`, movie).then(res => {
return res.data;
});
};
const deleteMovie = id => {
return axios__WEBPACK_IMPORTED_MODULE_0___default.a.delete(`${dev.url}/api/v1/movies/${id}`).then(res => {
return res.data;
});
};
/***/ }),
/***/ "elyg":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getDomainLocale = getDomainLocale;
exports.addLocale = addLocale;
exports.delLocale = delLocale;
exports.hasBasePath = hasBasePath;
exports.addBasePath = addBasePath;
exports.delBasePath = delBasePath;
exports.isLocalURL = isLocalURL;
exports.interpolateAs = interpolateAs;
exports.resolveHref = resolveHref;
exports.default = void 0;
var _normalizeTrailingSlash = __webpack_require__("X24+");
var _routeLoader = __webpack_require__("Nh2W");
var _denormalizePagePath = __webpack_require__("wkBG");
var _normalizeLocalePath = __webpack_require__("3wub");
var _mitt = _interopRequireDefault(__webpack_require__("dZ6Y"));
var _utils = __webpack_require__("g/15");
var _isDynamic = __webpack_require__("/jkW");
var _parseRelativeUrl = __webpack_require__("hS4m");
var _querystring = __webpack_require__("3WeD");
var _resolveRewrites = _interopRequireDefault(__webpack_require__("GXs3"));
var _routeMatcher = __webpack_require__("gguc");
var _routeRegex = __webpack_require__("YTqd");
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
} // tslint:disable:no-console
let detectDomainLocale;
if (false) {}
const basePath = false || '';
function buildCancellationError() {
return Object.assign(new Error('Route Cancelled'), {
cancelled: true
});
}
function addPathPrefix(path, prefix) {
return prefix && path.startsWith('/') ? path === '/' ? (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(prefix) : `${prefix}${pathNoQueryHash(path) === '/' ? path.substring(1) : path}` : path;
}
function getDomainLocale(path, locale, locales, domainLocales) {
if (false) {}
return false;
}
function addLocale(path, locale, defaultLocale) {
if (false) {}
return path;
}
function delLocale(path, locale) {
if (false) {}
return path;
}
function pathNoQueryHash(path) {
const queryIndex = path.indexOf('?');
const hashIndex = path.indexOf('#');
if (queryIndex > -1 || hashIndex > -1) {
path = path.substring(0, queryIndex > -1 ? queryIndex : hashIndex);
}
return path;
}
function hasBasePath(path) {
path = pathNoQueryHash(path);
return path === basePath || path.startsWith(basePath + '/');
}
function addBasePath(path) {
// we only add the basepath on relative urls
return addPathPrefix(path, basePath);
}
function delBasePath(path) {
path = path.slice(basePath.length);
if (!path.startsWith('/')) path = `/${path}`;
return path;
}
/**
* Detects whether a given url is routable by the Next.js router (browser only).
*/
function isLocalURL(url) {
// prevent a hydration mismatch on href for url with anchor refs
if (url.startsWith('/') || url.startsWith('#')) return true;
try {
// absolute urls can be local if they are on the same origin
const locationOrigin = (0, _utils.getLocationOrigin)();
const resolved = new URL(url, locationOrigin);
return resolved.origin === locationOrigin && hasBasePath(resolved.pathname);
} catch (_) {
return false;
}
}
function interpolateAs(route, asPathname, query) {
let interpolatedRoute = '';
const dynamicRegex = (0, _routeRegex.getRouteRegex)(route);
const dynamicGroups = dynamicRegex.groups;
const dynamicMatches = // Try to match the dynamic route against the asPath
(asPathname !== route ? (0, _routeMatcher.getRouteMatcher)(dynamicRegex)(asPathname) : '') || // Fall back to reading the values from the href
// TODO: should this take priority; also need to change in the router.
query;
interpolatedRoute = route;
const params = Object.keys(dynamicGroups);
if (!params.every(param => {
let value = dynamicMatches[param] || '';
const {
repeat,
optional
} = dynamicGroups[param]; // support single-level catch-all
// TODO: more robust handling for user-error (passing `/`)
let replaced = `[${repeat ? '...' : ''}${param}]`;
if (optional) {
replaced = `${!value ? '/' : ''}[${replaced}]`;
}
if (repeat && !Array.isArray(value)) value = [value];
return (optional || param in dynamicMatches) && ( // Interpolate group into data URL if present
interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map( // these values should be fully encoded instead of just
// path delimiter escaped since they are being inserted
// into the URL and we expect URL encoded segments
// when parsing dynamic route params
segment => encodeURIComponent(segment)).join('/') : encodeURIComponent(value)) || '/');
})) {
interpolatedRoute = ''; // did not satisfy all requirements
// n.b. We ignore this error because we handle warning for this case in
// development in the `<Link>` component directly.
}
return {
params,
result: interpolatedRoute
};
}
function omitParmsFromQuery(query, params) {
const filteredQuery = {};
Object.keys(query).forEach(key => {
if (!params.includes(key)) {
filteredQuery[key] = query[key];
}
});
return filteredQuery;
}
/**
* Resolves a given hyperlink with a certain router state (basePath not included).
* Preserves absolute urls.
*/
function resolveHref(currentPath, href, resolveAs) {
// we use a dummy base url for relative urls
let base;
try {
base = new URL(currentPath, 'http://n');
} catch (_) {
// fallback to / for invalid asPath values e.g. //
base = new URL('/', 'http://n');
}
const urlAsString = typeof href === 'string' ? href : (0, _utils.formatWithValidation)(href); // Return because it cannot be routed by the Next.js router
if (!isLocalURL(urlAsString)) {
return resolveAs ? [urlAsString] : urlAsString;
}
try {
const finalUrl = new URL(urlAsString, base);
finalUrl.pathname = (0, _normalizeTrailingSlash.normalizePathTrailingSlash)(finalUrl.pathname);
let interpolatedAs = '';
if ((0, _isDynamic.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
const {
result,
params
} = interpolateAs(finalUrl.pathname, finalUrl.pathname, query);
if (result) {
interpolatedAs = (0, _utils.formatWithValidation)({
pathname: result,
hash: finalUrl.hash,
query: omitParmsFromQuery(query, params)
});
}
} // if the origin didn't change, it means we received a relative href
const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
return resolveAs ? [resolvedHref, interpolatedAs || resolvedHref] : resolvedHref;
} catch (_) {
return resolveAs ? [urlAsString] : urlAsString;
}
}
function stripOrigin(url) {
const origin = (0, _utils.getLocationOrigin)();
return url.startsWith(origin) ? url.substring(origin.length) : url;
}
function prepareUrlAs(router, url, as) {
// If url and as provided as an object representation,
// we'll format them into the string version here.
let [resolvedHref, resolvedAs] = resolveHref(router.asPath, url, true);
const origin = (0, _utils.getLocationOrigin)();
const hrefHadOrigin = resolvedHref.startsWith(origin);
const asHadOrigin = resolvedAs && resolvedAs.startsWith(origin);
resolvedHref = stripOrigin(resolvedHref);
resolvedAs = resolvedAs ? stripOrigin(resolvedAs) : resolvedAs;
const preparedUrl = hrefHadOrigin ? resolvedHref : addBasePath(resolvedHref);
const preparedAs = as ? stripOrigin(resolveHref(router.asPath, as)) : resolvedAs || resolvedHref;
return {
url: preparedUrl,
as: asHadOrigin ? preparedAs : addBasePath(preparedAs)
};
}
function resolveDynamicRoute(pathname, pages) {
const cleanPathname = (0, _normalizeTrailingSlash.removePathTrailingSlash)((0, _denormalizePagePath.denormalizePagePath)(pathname));
if (cleanPathname === '/404' || cleanPathname === '/_error') {
return pathname;
} // handle resolving href for dynamic routes
if (!pages.includes(cleanPathname)) {
// eslint-disable-next-line array-callback-return
pages.some(page => {
if ((0, _isDynamic.isDynamicRoute)(page) && (0, _routeRegex.getRouteRegex)(page).re.test(cleanPathname)) {
pathname = page;
return true;
}
});
}
return (0, _normalizeTrailingSlash.removePathTrailingSlash)(pathname);
}
const manualScrollRestoration = false && false;
const SSG_DATA_NOT_FOUND = Symbol('SSG_DATA_NOT_FOUND');
function fetchRetry(url, attempts) {
return fetch(url, {
// Cookies are required to be present for Next.js' SSG "Preview Mode".
// Cookies may also be required for `getServerSideProps`.
//
// > `fetch` won’t send cookies, unless you set the credentials init
// > option.
// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
//
// > For maximum browser compatibility when it comes to sending &
// > receiving cookies, always supply the `credentials: 'same-origin'`
// > option instead of relying on the default.
// https://github.com/github/fetch#caveats
credentials: 'same-origin'
}).then(res => {
if (!res.ok) {
if (attempts > 1 && res.status >= 500) {
return fetchRetry(url, attempts - 1);
}
if (res.status === 404) {
return res.json().then(data => {
if (data.notFound) {
return {
notFound: SSG_DATA_NOT_FOUND
};
}
throw new Error(`Failed to load static props`);
});
}
throw new Error(`Failed to load static props`);
}
return res.json();
});
}
function fetchNextData(dataHref, isServerRender) {
return fetchRetry(dataHref, isServerRender ? 3 : 1).catch(err => {
// We should only trigger a server-side transition if this was caused
// on a client-side transition. Otherwise, we'd get into an infinite
// loop.
if (!isServerRender) {
(0, _routeLoader.markAssetError)(err);
}
throw err;
});
}
class Router {
/**
* Map of all components loaded in `Router`
*/
// Static Data Cache
// In-flight Server Data Requests, for deduping
constructor(_pathname, _query, _as, {
initialProps,
pageLoader,
App,
wrapApp,
Component,
err,
subscription,
isFallback,
locale,
locales,
defaultLocale,
domainLocales,
isPreview
}) {
this.route = void 0;
this.pathname = void 0;
this.query = void 0;
this.asPath = void 0;
this.basePath = void 0;
this.components = void 0;
this.sdc = {};
this.sdr = {};
this.sub = void 0;
this.clc = void 0;
this.pageLoader = void 0;
this._bps = void 0;
this.events = void 0;
this._wrapApp = void 0;
this.isSsr = void 0;
this.isFallback = void 0;
this._inFlightRoute = void 0;
this._shallow = void 0;
this.locale = void 0;
this.locales = void 0;
this.defaultLocale = void 0;
this.domainLocales = void 0;
this.isReady = void 0;
this.isPreview = void 0;
this.isLocaleDomain = void 0;
this._idx = 0;
this.onPopState = e => {
const state = e.state;
if (!state) {
// We get state as undefined for two reasons.
// 1. With older safari (< 8) and older chrome (< 34)
// 2. When the URL changed with #
//
// In the both cases, we don't need to proceed and change the route.
// (as it's already changed)
// But we can simply replace the state with the new changes.
// Actually, for (1) we don't need to nothing. But it's hard to detect that event.
// So, doing the following for (1) does no harm.
const {
pathname,
query
} = this;
this.changeState('replaceState', (0, _utils.formatWithValidation)({
pathname: addBasePath(pathname),
query
}), (0, _utils.getURL)());
return;
}
if (!state.__N) {
return;
}
let forcedScroll;
const {
url,
as,
options,
idx
} = state;
if (false) {}
this._idx = idx;
const {
pathname
} = (0, _parseRelativeUrl.parseRelativeUrl)(url); // Make sure we don't re-render on initial load,
// can be caused by navigating back from an external site
if (this.isSsr && as === this.asPath && pathname === this.pathname) {
return;
} // If the downstream application returns falsy, return.
// They will then be responsible for handling the event.
if (this._bps && !this._bps(state)) {
return;
}
this.change('replaceState', url, as, Object.assign({}, options, {
shallow: options.shallow && this._shallow,
locale: options.locale || this.defaultLocale
}), forcedScroll);
}; // represents the current component key
this.route = (0, _normalizeTrailingSlash.removePathTrailingSlash)(_pathname); // set up the component cache (by route keys)
this.components = {}; // We should not keep the cache, if there's an error
// Otherwise, this cause issues when when going back and
// come again to the errored page.
if (_pathname !== '/_error') {
this.components[this.route] = {
Component,
initial: true,
props: initialProps,
err,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP
};
}
this.components['/_app'] = {
Component: App,
styleSheets: [
/* /_app does not need its stylesheets managed */
]
}; // Backwards compat for Router.router.events
// TODO: Should be remove the following major version as it was never documented
this.events = Router.events;
this.pageLoader = pageLoader;
this.pathname = _pathname;
this.query = _query; // if auto prerendered and dynamic route wait to update asPath
// until after mount to prevent hydration mismatch
const autoExportDynamic = (0, _isDynamic.isDynamicRoute)(_pathname) && self.__NEXT_DATA__.autoExport;
this.asPath = autoExportDynamic ? _pathname : _as;
this.basePath = basePath;
this.sub = subscription;
this.clc = null;
this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
// back from external site
this.isSsr = true;
this.isFallback = isFallback;
this.isReady = !!(self.__NEXT_DATA__.gssp || self.__NEXT_DATA__.gip || !autoExportDynamic && !self.location.search && !false);
this.isPreview = !!isPreview;
this.isLocaleDomain = false;
if (false) {}
if (false) {}
}
reload() {
window.location.reload();
}
/**
* Go back in history
*/
back() {
window.history.back();
}
/**
* Performs a `pushState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/
push(url, as, options = {}) {
if (false) {}
;
({
url,
as
} = prepareUrlAs(this, url, as));
return this.change('pushState', url, as, options);
}
/**
* Performs a `replaceState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/
replace(url, as, options = {}) {
;
({
url,
as
} = prepareUrlAs(this, url, as));
return this.change('replaceState', url, as, options);
}
async change(method, url, as, options, forcedScroll) {
var _options$scroll;
if (!isLocalURL(url)) {
window.location.href = url;
return false;
}
const shouldResolveHref = url === as || options._h; // for static pages with query params in the URL we delay
// marking the router ready until after the query is updated
if (options._h) {
this.isReady = true;
} // Default to scroll reset behavior unless explicitly specified to be
// `false`! This makes the behavior between using `Router#push` and a
// `<Link />` consistent.
options.scroll = !!((_options$scroll = options.scroll) != null ? _options$scroll : true);
let localeChange = options.locale !== this.locale;
if (false) { var _this$locales; }
if (!options._h) {
this.isSsr = false;
} // marking route changes as a navigation start entry
if (_utils.ST) {
performance.mark('routeChange');
}
const {
shallow = false
} = options;
const routeProps = {
shallow
};
if (this._inFlightRoute) {
this.abortComponentLoad(this._inFlightRoute, routeProps);
}
as = addBasePath(addLocale(hasBasePath(as) ? delBasePath(as) : as, options.locale, this.defaultLocale));
const cleanedAs = delLocale(hasBasePath(as) ? delBasePath(as) : as, this.locale);
this._inFlightRoute = as; // If the url change is only related to a hash change
// We should not proceed. We should only change the state.
// WARNING: `_h` is an internal option for handing Next.js client-side
// hydration. Your app should _never_ use this property. It may change at
// any time without notice.
if (!options._h && this.onlyAHashChange(cleanedAs)) {
this.asPath = cleanedAs;
Router.events.emit('hashChangeStart', as, routeProps); // TODO: do we need the resolved href when only a hash change?
this.changeState(method, url, as, options);
this.scrollToHash(cleanedAs);
this.notify(this.components[this.route], null);
Router.events.emit('hashChangeComplete', as, routeProps);
return true;
}
let parsed = (0, _parseRelativeUrl.parseRelativeUrl)(url);
let {
pathname,
query
} = parsed; // The build manifest needs to be loaded before auto-static dynamic pages
// get their query parameters to allow ensuring they can be parsed properly
// when rewritten to
let pages, rewrites;
try {
pages = await this.pageLoader.getPageList();
({
__rewrites: rewrites
} = await (0, _routeLoader.getClientBuildManifest)());
} catch (err) {
// If we fail to resolve the page list or client-build manifest, we must
// do a server-side transition:
window.location.href = as;
return false;
} // If asked to change the current URL we should reload the current page
// (not location.reload() but reload getInitialProps and other Next.js stuffs)
// We also need to set the method = replaceState always
// as this should not go into the history (That's how browsers work)
// We should compare the new asPath to the current asPath, not the url
if (!this.urlIsNew(cleanedAs) && !localeChange) {
method = 'replaceState';
} // we need to resolve the as value using rewrites for dynamic SSG
// pages to allow building the data URL correctly
let resolvedAs = as; // url and as should always be prefixed with basePath by this
// point by either next/link or router.push/replace so strip the
// basePath from the pathname to match the pages dir 1-to-1
pathname = pathname ? (0, _normalizeTrailingSlash.removePathTrailingSlash)(delBasePath(pathname)) : pathname;
if (shouldResolveHref && pathname !== '/_error') {
if (false) {} else {
parsed.pathname = resolveDynamicRoute(pathname, pages);
if (parsed.pathname !== pathname) {
pathname = parsed.pathname;
url = (0, _utils.formatWithValidation)(parsed);
}
}
}
const route = (0, _normalizeTrailingSlash.removePathTrailingSlash)(pathname);
if (!isLocalURL(as)) {
if (false) {}
window.location.href = as;
return false;
}
resolvedAs = delLocale(delBasePath(resolvedAs), this.locale);
if ((0, _isDynamic.isDynamicRoute)(route)) {
const parsedAs = (0, _parseRelativeUrl.parseRelativeUrl)(resolvedAs);
const asPathname = parsedAs.pathname;
const routeRegex = (0, _routeRegex.getRouteRegex)(route);
const routeMatch = (0, _routeMatcher.getRouteMatcher)(routeRegex)(asPathname);
const shouldInterpolate = route === asPathname;
const interpolatedAs = shouldInterpolate ? interpolateAs(route, asPathname, query) : {};
if (!routeMatch || shouldInterpolate && !interpolatedAs.result) {
const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
if (missingParams.length > 0) {
if (false) {}
throw new Error((shouldInterpolate ? `The provided \`href\` (${url}) value is missing query values (${missingParams.join(', ')}) to be interpolated properly. ` : `The provided \`as\` value (${asPathname}) is incompatible with the \`href\` value (${route}). `) + `Read more: https://nextjs.org/docs/messages/${shouldInterpolate ? 'href-interpolation-failed' : 'incompatible-href-as'}`);
}
} else if (shouldInterpolate) {
as = (0, _utils.formatWithValidation)(Object.assign({}, parsedAs, {
pathname: interpolatedAs.result,
query: omitParmsFromQuery(query, interpolatedAs.params)
}));
} else {
// Merge params into `query`, overwriting any specified in search
Object.assign(query, routeMatch);
}
}
Router.events.emit('routeChangeStart', as, routeProps);
try {
var _self$__NEXT_DATA__$p, _self$__NEXT_DATA__$p2;
let routeInfo = await this.getRouteInfo(route, pathname, query, as, resolvedAs, routeProps);
let {
error,
props,
__N_SSG,
__N_SSP
} = routeInfo; // handle redirect on client-transition
if ((__N_SSG || __N_SSP) && props) {
if (props.pageProps && props.pageProps.__N_REDIRECT) {
const destination = props.pageProps.__N_REDIRECT; // check if destination is internal (resolves to a page) and attempt
// client-navigation if it is falling back to hard navigation if
// it's not
if (destination.startsWith('/')) {
const parsedHref = (0, _parseRelativeUrl.parseRelativeUrl)(destination);
parsedHref.pathname = resolveDynamicRoute(parsedHref.pathname, pages);
if (pages.includes(parsedHref.pathname)) {
const {
url: newUrl,
as: newAs
} = prepareUrlAs(this, destination, destination);
return this.change(method, newUrl, newAs, options);
}
}
window.location.href = destination;
return new Promise(() => {});
}
this.isPreview = !!props.__N_PREVIEW; // handle SSG data 404
if (props.notFound === SSG_DATA_NOT_FOUND) {
let notFoundRoute;
try {
await this.fetchComponent('/404');
notFoundRoute = '/404';
} catch (_) {
notFoundRoute = '/_error';
}
routeInfo = await this.getRouteInfo(notFoundRoute, notFoundRoute, query, as, resolvedAs, {
shallow: false
});
}
}
Router.events.emit('beforeHistoryChange', as, routeProps);
this.changeState(method, url, as, options);
if (false) {} // shallow routing is only allowed for same page URL changes.
const isValidShallowRoute = options.shallow && this.route === route;
if (options._h && pathname === '/_error' && ((_self$__NEXT_DATA__$p = self.__NEXT_DATA__.props) == null ? void 0 : (_self$__NEXT_DATA__$p2 = _self$__NEXT_DATA__$p.pageProps) == null ? void 0 : _self$__NEXT_DATA__$p2.statusCode) === 500 && props != null && props.pageProps) {
// ensure statusCode is still correct for static 500 page
// when updating query information
props.pageProps.statusCode = 500;
}
await this.set(route, pathname, query, cleanedAs, routeInfo, forcedScroll || (isValidShallowRoute || !options.scroll ? null : {
x: 0,
y: 0
})).catch(e => {
if (e.cancelled) error = error || e;else throw e;
});
if (error) {
Router.events.emit('routeChangeError', error, cleanedAs, routeProps);
throw error;
}
if (false) {}
Router.events.emit('routeChangeComplete', as, routeProps);
return true;
} catch (err) {
if (err.cancelled) {
return false;
}
throw err;
}
}
changeState(method, url, as, options = {}) {
if (false) {}
if (method !== 'pushState' || (0, _utils.getURL)() !== as) {
this._shallow = options.shallow;
window.history[method]({
url,
as,
options,
__N: true,
idx: this._idx = method !== 'pushState' ? this._idx : this._idx + 1
}, // Most browsers currently ignores this parameter, although they may use it in the future.
// Passing the empty string here should be safe against future changes to the method.
// https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
'', as);
}
}
async handleRouteInfoError(err, pathname, query, as, routeProps, loadErrorFail) {
if (err.cancelled) {
// bubble up cancellation errors
throw err;
}
if ((0, _routeLoader.isAssetError)(err) || loadErrorFail) {
Router.events.emit('routeChangeError', err, as, routeProps); // If we can't load the page it could be one of following reasons
// 1. Page doesn't exists
// 2. Page does exist in a different zone
// 3. Internal error while loading the page
// So, doing a hard reload is the proper way to deal with this.
window.location.href = as; // Changing the URL doesn't block executing the current code path.
// So let's throw a cancellation error stop the routing logic.
throw buildCancellationError();
}
try {
let Component;
let styleSheets;
let props;
if (typeof Component === 'undefined' || typeof styleSheets === 'undefined') {
;
({
page: Component,
styleSheets
} = await this.fetchComponent('/_error'));
}
const routeInfo = {
props,
Component,
styleSheets,
err,
error: err
};
if (!routeInfo.props) {
try {
routeInfo.props = await this.getInitialProps(Component, {
err,
pathname,
query
});
} catch (gipErr) {
console.error('Error in error page `getInitialProps`: ', gipErr);
routeInfo.props = {};
}
}
return routeInfo;
} catch (routeInfoErr) {
return this.handleRouteInfoError(routeInfoErr, pathname, query, as, routeProps, true);
}
}
async getRouteInfo(route, pathname, query, as, resolvedAs, routeProps) {
try {
const existingRouteInfo = this.components[route];
if (routeProps.shallow && existingRouteInfo && this.route === route) {
return existingRouteInfo;
}
const cachedRouteInfo = existingRouteInfo && 'initial' in existingRouteInfo ? undefined : existingRouteInfo;
const routeInfo = cachedRouteInfo ? cachedRouteInfo : await this.fetchComponent(route).then(res => ({
Component: res.page,
styleSheets: res.styleSheets,
__N_SSG: res.mod.__N_SSG,
__N_SSP: res.mod.__N_SSP
}));
const {
Component,
__N_SSG,
__N_SSP
} = routeInfo;
if (false) {}
let dataHref;
if (__N_SSG || __N_SSP) {
dataHref = this.pageLoader.getDataHref((0, _utils.formatWithValidation)({
pathname,
query
}), resolvedAs, __N_SSG, this.locale);
}
const props = await this._getData(() => __N_SSG ? this._getStaticData(dataHref) : __N_SSP ? this._getServerData(dataHref) : this.getInitialProps(Component, // we provide AppTree later so this needs to be `any`
{
pathname,
query,
asPath: as,
locale: this.locale,
locales: this.locales,
defaultLocale: this.defaultLocale
}));
routeInfo.props = props;
this.components[route] = routeInfo;
return routeInfo;
} catch (err) {
return this.handleRouteInfoError(err, pathname, query, as, routeProps);
}
}
set(route, pathname, query, as, data, resetScroll) {
this.isFallback = false;
this.route = route;
this.pathname = pathname;
this.query = query;
this.asPath = as;
return this.notify(data, resetScroll);
}
/**
* Callback to execute before replacing router state
* @param cb callback to be executed
*/
beforePopState(cb) {
this._bps = cb;
}
onlyAHashChange(as) {
if (!this.asPath) return false;
const [oldUrlNoHash, oldHash] = this.asPath.split('#');
const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
return true;
} // If the urls are change, there's more than a hash change
if (oldUrlNoHash !== newUrlNoHash) {
return false;
} // If the hash has changed, then it's a hash only change.
// This check is necessary to handle both the enter and
// leave hash === '' cases. The identity case falls through
// and is treated as a next reload.
return oldHash !== newHash;
}
scrollToHash(as) {
const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value or `#top`
// To mirror browsers
if (hash === '' || hash === 'top') {
window.scrollTo(0, 0);
return;
} // First we check if the element by id is found
const idEl = document.getElementById(hash);
if (idEl) {
idEl.scrollIntoView();
return;
} // If there's no element with the id, we check the `name` property
// To mirror browsers
const nameEl = document.getElementsByName(hash)[0];
if (nameEl) {
nameEl.scrollIntoView();
}
}
urlIsNew(asPath) {
return this.asPath !== asPath;
}
/**
* Prefetch page code, you may wait for the data during page rendering.
* This feature only works in production!
* @param url the href of prefetched page
* @param asPath the as path of the prefetched page
*/
async prefetch(url, asPath = url, options = {}) {
let parsed = (0, _parseRelativeUrl.parseRelativeUrl)(url);
let {
pathname
} = parsed;
if (false) {}
const pages = await this.pageLoader.getPageList();
let resolvedAs = asPath;
if (false) {} else {
parsed.pathname = resolveDynamicRoute(parsed.pathname, pages);
if (parsed.pathname !== pathname) {
pathname = parsed.pathname;
url = (0, _utils.formatWithValidation)(parsed);
}
}
const route = (0, _normalizeTrailingSlash.removePathTrailingSlash)(pathname); // Prefetch is not supported in development mode because it would trigger on-demand-entries
if (false) {}
await Promise.all([this.pageLoader._isSsg(route).then(isSsg => {
return isSsg ? this._getStaticData(this.pageLoader.getDataHref(url, resolvedAs, true, typeof options.locale !== 'undefined' ? options.locale : this.locale)) : false;
}), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]);
}
async fetchComponent(route) {
let cancelled = false;
const cancel = this.clc = () => {
cancelled = true;
};
const componentResult = await this.pageLoader.loadPage(route);
if (cancelled) {
const error = new Error(`Abort fetching component for route: "${route}"`);
error.cancelled = true;
throw error;
}
if (cancel === this.clc) {
this.clc = null;
}
return componentResult;
}
_getData(fn) {
let cancelled = false;
const cancel = () => {
cancelled = true;
};
this.clc = cancel;
return fn().then(data => {
if (cancel === this.clc) {
this.clc = null;
}
if (cancelled) {
const err = new Error('Loading initial props cancelled');
err.cancelled = true;
throw err;
}
return data;
});
}
_getStaticData(dataHref) {
const {
href: cacheKey
} = new URL(dataHref, window.location.href);
if ( true && !this.isPreview && this.sdc[cacheKey]) {
return Promise.resolve(this.sdc[cacheKey]);
}
return fetchNextData(dataHref, this.isSsr).then(data => {
this.sdc[cacheKey] = data;
return data;
});
}
_getServerData(dataHref) {
const {
href: resourceKey
} = new URL(dataHref, window.location.href);
if (this.sdr[resourceKey]) {
return this.sdr[resourceKey];
}
return this.sdr[resourceKey] = fetchNextData(dataHref, this.isSsr).then(data => {
delete this.sdr[resourceKey];
return data;
}).catch(err => {
delete this.sdr[resourceKey];
throw err;
});
}
getInitialProps(Component, ctx) {
const {
Component: App
} = this.components['/_app'];
const AppTree = this._wrapApp(App);
ctx.AppTree = AppTree;
return (0, _utils.loadGetInitialProps)(App, {
AppTree,
Component,
router: this,
ctx
});
}
abortComponentLoad(as, routeProps) {
if (this.clc) {
Router.events.emit('routeChangeError', buildCancellationError(), as, routeProps);
this.clc();
this.clc = null;
}
}
notify(data, resetScroll) {
return this.sub(data, this.components['/_app'].Component, resetScroll);
}
}
exports.default = Router;
Router.events = (0, _mitt.default)();
/***/ }),
/***/ "g/15":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.execOnce = execOnce;
exports.getLocationOrigin = getLocationOrigin;
exports.getURL = getURL;
exports.getDisplayName = getDisplayName;
exports.isResSent = isResSent;
exports.loadGetInitialProps = loadGetInitialProps;
exports.formatWithValidation = formatWithValidation;
exports.ST = exports.SP = exports.urlObjectKeys = void 0;
var _formatUrl = __webpack_require__("6D7l");
/**
* Utils
*/
function execOnce(fn) {
let used = false;
let result;
return (...args) => {
if (!used) {
used = true;
result = fn(...args);
}
return result;
};
}
function getLocationOrigin() {
const {
protocol,
hostname,
port
} = window.location;
return `${protocol}//${hostname}${port ? ':' + port : ''}`;
}
function getURL() {
const {
href
} = window.location;
const origin = getLocationOrigin();
return href.substring(origin.length);
}
function getDisplayName(Component) {
return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
}
function isResSent(res) {
return res.finished || res.headersSent;
}
async function loadGetInitialProps(App, ctx) {
if (false) { var _App$prototype; } // when called from _app `ctx` is nested in `ctx`
const res = ctx.res || ctx.ctx && ctx.ctx.res;
if (!App.getInitialProps) {
if (ctx.ctx && ctx.Component) {
// @ts-ignore pageProps default
return {
pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
};
}
return {};
}
const props = await App.getInitialProps(ctx);
if (res && isResSent(res)) {
return props;
}
if (!props) {
const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
throw new Error(message);
}
if (false) {}
return props;
}
const urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
exports.urlObjectKeys = urlObjectKeys;
function formatWithValidation(url) {
if (false) {}
return (0, _formatUrl.formatUrl)(url);
}
const SP = typeof performance !== 'undefined';
exports.SP = SP;
const ST = SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
exports.ST = ST;
/***/ }),
/***/ "gguc":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getRouteMatcher = getRouteMatcher;
function getRouteMatcher(routeRegex) {
const {
re,
groups
} = routeRegex;
return pathname => {
const routeMatch = re.exec(pathname);
if (!routeMatch) {
return false;
}
const decode = param => {
try {
return decodeURIComponent(param);
} catch (_) {
const err = new Error('failed to decode param');
err.code = 'DECODE_FAILED';
throw err;
}
};
const params = {};
Object.keys(groups).forEach(slugName => {
const g = groups[slugName];
const m = routeMatch[g.pos];
if (m !== undefined) {
params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
}
});
return params;
};
}
/***/ }),
/***/ "hS4m":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.parseRelativeUrl = parseRelativeUrl;
var _utils = __webpack_require__("g/15");
var _querystring = __webpack_require__("3WeD");
/**
* Parses path-relative urls (e.g. `/hello/world?foo=bar`). If url isn't path-relative
* (e.g. `./hello`) then at least base must be.
* Absolute urls are rejected with one exception, in the browser, absolute urls that are on
* the current origin will be parsed as relative
*/
function parseRelativeUrl(url, base) {
const globalBase = new URL(true ? 'http://n' : undefined);
const resolvedBase = base ? new URL(base, globalBase) : globalBase;
const {
pathname,
searchParams,
search,
hash,
href,
origin
} = new URL(url, resolvedBase);
if (origin !== globalBase.origin) {
throw new Error(`invariant: invalid relative URL, router received ${url}`);
}
return {
pathname,
query: (0, _querystring.searchParamsToUrlQuery)(searchParams),
search,
hash,
href: href.slice(globalBase.origin.length)
};
}
/***/ }),
/***/ "nOHt":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _interopRequireWildcard = __webpack_require__("284h");
var _interopRequireDefault = __webpack_require__("TqRt");
exports.__esModule = true;
exports.useRouter = useRouter;
exports.makePublicRouterInstance = makePublicRouterInstance;
exports.createRouter = exports.withRouter = exports.default = void 0;
var _react = _interopRequireDefault(__webpack_require__("cDcd"));
var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
exports.Router = _router2.default;
exports.NextRouter = _router2.NextRouter;
var _routerContext = __webpack_require__("Osoz");
var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
exports.withRouter = _withRouter.default;
/* global window */
const singletonRouter = {
router: null,
// holds the actual router instance
readyCallbacks: [],
ready(cb) {
if (this.router) return cb();
if (false) {}
}
}; // Create public properties and methods of the router in the singletonRouter
const urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath', 'locale', 'locales', 'defaultLocale', 'isReady', 'isPreview', 'isLocaleDomain'];
const routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
const coreMethodFields = ['push', 'replace', 'reload', 'back', 'prefetch', 'beforePopState']; // Events is a static property on the router, the router doesn't have to be initialized to use it
Object.defineProperty(singletonRouter, 'events', {
get() {
return _router2.default.events;
}
});
urlPropertyFields.forEach(field => {
// Here we need to use Object.defineProperty because, we need to return
// the property assigned to the actual router
// The value might get changed as we change routes and this is the
// proper way to access it
Object.defineProperty(singletonRouter, field, {
get() {
const router = getRouter();
return router[field];
}
});
});
coreMethodFields.forEach(field => {
// We don't really know the types here, so we add them later instead
;
singletonRouter[field] = (...args) => {
const router = getRouter();
return router[field](...args);
};
});
routerEvents.forEach(event => {
singletonRouter.ready(() => {
_router2.default.events.on(event, (...args) => {
const eventField = `on${event.charAt(0).toUpperCase()}${event.substring(1)}`;
const _singletonRouter = singletonRouter;
if (_singletonRouter[eventField]) {
try {
_singletonRouter[eventField](...args);
} catch (err) {
console.error(`Error when running the Router event: ${eventField}`);
console.error(`${err.message}\n${err.stack}`);
}
}
});
});
});
function getRouter() {
if (!singletonRouter.router) {
const message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
throw new Error(message);
}
return singletonRouter.router;
} // Export the singletonRouter and this is the public API.
var _default = singletonRouter; // Reexport the withRoute HOC
exports.default = _default;
function useRouter() {
return _react.default.useContext(_routerContext.RouterContext);
} // INTERNAL APIS
// -------------
// (do not use following exports inside the app)
// Create a router and assign it as the singleton instance.
// This is used in client side when we are initilizing the app.
// This should **not** use inside the server.
const createRouter = (...args) => {
singletonRouter.router = new _router2.default(...args);
singletonRouter.readyCallbacks.forEach(cb => cb());
singletonRouter.readyCallbacks = [];
return singletonRouter.router;
}; // This function is used to create the `withRouter` router instance
exports.createRouter = createRouter;
function makePublicRouterInstance(router) {
const _router = router;
const instance = {};
for (const property of urlPropertyFields) {
if (typeof _router[property] === 'object') {
instance[property] = Object.assign(Array.isArray(_router[property]) ? [] : {}, _router[property]); // makes sure query is not stateful
continue;
}
instance[property] = _router[property];
} // Events is a static property on the router, the router doesn't have to be initialized to use it
instance.events = _router2.default.events;
coreMethodFields.forEach(field => {
instance[field] = (...args) => {
return _router[field](...args);
};
});
return instance;
}
/***/ }),
/***/ "vNVm":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.useIntersection = useIntersection;
var _react = __webpack_require__("cDcd");
var _requestIdleCallback = __webpack_require__("0G5g");
const hasIntersectionObserver = typeof IntersectionObserver !== 'undefined';
function useIntersection({
rootMargin,
disabled
}) {
const isDisabled = disabled || !hasIntersectionObserver;
const unobserve = (0, _react.useRef)();
const [visible, setVisible] = (0, _react.useState)(false);
const setRef = (0, _react.useCallback)(el => {
if (unobserve.current) {
unobserve.current();
unobserve.current = undefined;
}
if (isDisabled || visible) return;
if (el && el.tagName) {
unobserve.current = observe(el, isVisible => isVisible && setVisible(isVisible), {
rootMargin
});
}
}, [isDisabled, rootMargin, visible]);
(0, _react.useEffect)(() => {
if (!hasIntersectionObserver) {
if (!visible) {
const idleCallback = (0, _requestIdleCallback.requestIdleCallback)(() => setVisible(true));
return () => (0, _requestIdleCallback.cancelIdleCallback)(idleCallback);
}
}
}, [visible]);
return [setRef, visible];
}
function observe(element, callback, options) {
const {
id,
observer,
elements
} = createObserver(options);
elements.set(element, callback);
observer.observe(element);
return function unobserve() {
elements.delete(element);
observer.unobserve(element); // Destroy observer when there's nothing left to watch:
if (elements.size === 0) {
observer.disconnect();
observers.delete(id);
}
};
}
const observers = new Map();
function createObserver(options) {
const id = options.rootMargin || '';
let instance = observers.get(id);
if (instance) {
return instance;
}
const elements = new Map();
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
const callback = elements.get(entry.target);
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
if (callback && isVisible) {
callback(isVisible);
}
});
}, options);
observers.set(id, instance = {
id,
observer,
elements
});
return instance;
}
/***/ }),
/***/ "wkBG":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule=true;exports.normalizePathSep=normalizePathSep;exports.denormalizePagePath=denormalizePagePath;function normalizePathSep(path){return path.replace(/\\/g,'/');}function denormalizePagePath(page){page=normalizePathSep(page);if(page.startsWith('/index/')){page=page.slice(6);}else if(page==='/index'){page='/';}return page;}
//# sourceMappingURL=denormalize-page-path.js.map
/***/ }),
/***/ "zr5I":
/***/ (function(module, exports) {
module.exports = require("axios");
/***/ })
/******/ });
|
import { AIRPORT_DATABASE, and } from '@airport/air-control';
import { container, DI } from '@airport/di';
import { MONTHLY_SYNC_LOG_DAO } from '../tokens';
import { BaseMonthlySyncLogDao } from '../generated/baseDaos';
import { Q } from '../generated/qApplication';
export class MonthlySyncLogDao extends BaseMonthlySyncLogDao {
async findAllForDatabase(databaseId, synced, callback) {
let dsl;
const airDb = await container(this).get(AIRPORT_DATABASE);
await airDb.find.sheet({
from: [
dsl = Q.MonthlySyncLog
],
select: [
dsl.repositoryId,
dsl.month
],
where: and(dsl.databaseId.equals(databaseId), dsl.synced.equals(synced))
}, 1000, (syncSyncLogRows) => {
callback(syncSyncLogRows);
});
}
async updateSyncStatus(databaseId, repositoryIds, synced) {
let dsl;
await this.db.updateWhere({
update: dsl = Q.MonthlySyncLog,
set: {
synced
},
where: and(dsl.databaseId.equals(databaseId), dsl.repositoryId.in(repositoryIds))
});
}
}
DI.set(MONTHLY_SYNC_LOG_DAO, MonthlySyncLogDao);
//# sourceMappingURL=MonthlySyncLogDao.js.map
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
/*!
* devextreme-angular
* Version: 18.2.5
* Build date: Wed Jan 23 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-angular
*/
Object.defineProperty(exports, "__esModule", { value: true });
var nested_option_1 = require("../../../core/nested-option");
var DxoFormat = (function (_super) {
__extends(DxoFormat, _super);
function DxoFormat() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(DxoFormat.prototype, "currency", {
get: function () {
return this._getOption('currency');
},
set: function (value) {
this._setOption('currency', value);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DxoFormat.prototype, "formatter", {
get: function () {
return this._getOption('formatter');
},
set: function (value) {
this._setOption('formatter', value);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DxoFormat.prototype, "parser", {
get: function () {
return this._getOption('parser');
},
set: function (value) {
this._setOption('parser', value);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DxoFormat.prototype, "precision", {
get: function () {
return this._getOption('precision');
},
set: function (value) {
this._setOption('precision', value);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DxoFormat.prototype, "type", {
get: function () {
return this._getOption('type');
},
set: function (value) {
this._setOption('type', value);
},
enumerable: true,
configurable: true
});
return DxoFormat;
}(nested_option_1.NestedOption));
exports.DxoFormat = DxoFormat;
//# sourceMappingURL=format.js.map
|
import Modal from '../mixin/modal';
import {$, addClass, assign, css, hasClass, height, html, isString, on, Promise, removeClass} from 'uikit-util';
export default {
install,
mixins: [Modal],
data: {
clsPage: 'uk-modal-page',
selPanel: '.uk-modal-dialog',
selClose: '.uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full'
},
events: [
{
name: 'show',
self: true,
handler() {
if (hasClass(this.panel, 'uk-margin-auto-vertical')) {
addClass(this.$el, 'uk-flex');
} else {
css(this.$el, 'display', 'block');
}
height(this.$el); // force reflow
}
},
{
name: 'hidden',
self: true,
handler() {
css(this.$el, 'display', '');
removeClass(this.$el, 'uk-flex');
}
}
]
};
function install (UIkit) {
UIkit.modal.dialog = function (content, options) {
const dialog = UIkit.modal(`
<div class="uk-modal">
<div class="uk-modal-dialog">${content}</div>
</div>
`, options);
dialog.show();
on(dialog.$el, 'hidden', ({target, currentTarget}) => {
if (target === currentTarget) {
dialog.$destroy(true);
}
});
return dialog;
};
UIkit.modal.alert = function (message, options) {
options = assign({bgClose: false, escClose: false, labels: UIkit.modal.labels}, options);
return new Promise(
resolve => on(UIkit.modal.dialog(`
<div class="uk-modal-body">${isString(message) ? message : html(message)}</div>
<div class="uk-modal-footer uk-text-right">
<button class="uk-button uk-button-primary uk-modal-close" autofocus>${options.labels.ok}</button>
</div>
`, options).$el, 'hide', resolve)
);
};
UIkit.modal.confirm = function (message, options) {
options = assign({bgClose: false, escClose: true, labels: UIkit.modal.labels}, options);
return new Promise((resolve, reject) => {
const confirm = UIkit.modal.dialog(`
<form>
<div class="uk-modal-body">${isString(message) ? message : html(message)}</div>
<div class="uk-modal-footer uk-text-right">
<button class="uk-button uk-button-default uk-modal-close" type="button">${options.labels.cancel}</button>
<button class="uk-button uk-button-primary" autofocus>${options.labels.ok}</button>
</div>
</form>
`, options);
let resolved = false;
on(confirm.$el, 'submit', 'form', e => {
e.preventDefault();
resolve();
resolved = true;
confirm.hide();
});
on(confirm.$el, 'hide', () => {
if (!resolved) {
reject();
}
});
});
};
UIkit.modal.prompt = function (message, value, options) {
options = assign({bgClose: false, escClose: true, labels: UIkit.modal.labels}, options);
return new Promise(resolve => {
const prompt = UIkit.modal.dialog(`
<form class="uk-form-stacked">
<div class="uk-modal-body">
<label>${isString(message) ? message : html(message)}</label>
<input class="uk-input" autofocus>
</div>
<div class="uk-modal-footer uk-text-right">
<button class="uk-button uk-button-default uk-modal-close" type="button">${options.labels.cancel}</button>
<button class="uk-button uk-button-primary">${options.labels.ok}</button>
</div>
</form>
`, options),
input = $('input', prompt.$el);
input.value = value;
let resolved = false;
on(prompt.$el, 'submit', 'form', e => {
e.preventDefault();
resolve(input.value);
resolved = true;
prompt.hide();
});
on(prompt.$el, 'hide', () => {
if (!resolved) {
resolve(null);
}
});
});
};
UIkit.modal.labels = {
ok: 'Ok',
cancel: 'Cancel'
};
}
|
'use strict';
require('dotenv').config();
const mongoose = require('mongoose');
const server = require('./lib/server.js');
const MONGOOSE_URI = process.env.MONGOOSE_URI;
const options = {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
useFindAndModify: false,
};
mongoose.connect(MONGOOSE_URI, options);
server.start(process.env.PORT || 8000);
|
function encodeAndDecodeMessages() {
let sendAndEncodeButton = document.getElementsByTagName('button')[0];
let decodeAndReadButton = document.getElementsByTagName('button')[1];
let sendTextArea = document.getElementsByTagName('textarea')[0];
let decodeTextArea = document.getElementsByTagName('textarea')[1];
sendAndEncodeButton.addEventListener('click', function(){
let input = sendTextArea.value;
let encodedMessage = '';
for(let i = 0; i < input.length; i++){
encodedMessage += String.fromCharCode(input[i].charCodeAt(0) + 1);
}
decodeTextArea.value = encodedMessage;
sendTextArea.value = '';
});
decodeAndReadButton.addEventListener('click', function(){
let input = decodeTextArea.value;
let decodedMsg = '';
for(let i = 0; i < input.length; i++){
decodedMsg += String.fromCharCode(input[i].charCodeAt(0) - 1);
}
decodeTextArea.value = decodedMsg;
});
}
|
!function(){function e(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),a&&t(e,a)}function t(e,a){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,a)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var a,r=s(e);if(t){var i=s(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return n(this,a)}}function n(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,a){return t&&i(e.prototype,t),a&&i(e,a),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+s0g":function(e,t,a){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(a("wd/R"))},"//9w":function(e,t,a){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},"/X5v":function(e,t,a){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},"0mo+":function(e,t,a){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},a={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,a){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(a("wd/R"))},"0tRk":function(e,t,a){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(a("wd/R"))},"1ppg":function(e,t,a){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(a("wd/R"))},"1rYy":function(e,t,a){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(a("wd/R"))},"1xZ4":function(e,t,a){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var a=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(a="a"),e+a},week:{dow:1,doy:4}})}(a("wd/R"))},"2fjn":function(e,t,a){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(a("wd/R"))},"2ykv":function(e,t,a){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(a("wd/R"))},"3E1r":function(e,t,a){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},n=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:n,longMonthsParse:n,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(a("wd/R"))},"4MV3":function(e,t,a){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},a={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(a("wd/R"))},"4dOw":function(e,t,a){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},"6+QB":function(e,t,a){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(a("wd/R"))},"6B0Y":function(e,t,a){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},a={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,a){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(a("wd/R"))},"7BjC":function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?s[a][2]?s[a][2]:s[a][1]:n?s[a][0]:s[a][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},"7C5Q":function(e,t,a){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(a("wd/R"))},"7aV9":function(e,t,a){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,a){return e>11?a?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":a?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(a("wd/R"))},"8/+R":function(e,t,a){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},a={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(a("wd/R"))},"8mBD":function(e,t,a){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},"9rRi":function(e,t,a){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(a("wd/R"))},"A+xa":function(e,t,a){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(a("wd/R"))},AQ68:function(e,t,a){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(a("wd/R"))},AvvY:function(e,t,a){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,a){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(a("wd/R"))},B55N:function(e,t,a){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,a){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(a("wd/R"))},BVg3:function(e,t,a){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function a(e,a,n,s){var r=e+" ";switch(n){case"s":return a||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?r+(a||s?"sek\xfandur":"sek\xfandum"):r+"sek\xfanda";case"m":return a?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?r+(a||s?"m\xedn\xfatur":"m\xedn\xfatum"):a?r+"m\xedn\xfata":r+"m\xedn\xfatu";case"hh":return t(e)?r+(a||s?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return a?"dagur":s?"dag":"degi";case"dd":return t(e)?a?r+"dagar":r+(s?"daga":"d\xf6gum"):a?r+"dagur":r+(s?"dag":"degi");case"M":return a?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?a?r+"m\xe1nu\xf0ir":r+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):a?r+"m\xe1nu\xf0ur":r+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return a||s?"\xe1r":"\xe1ri";case"yy":return t(e)?r+(a||s?"\xe1r":"\xe1rum"):r+(a||s?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:a,ss:a,m:a,mm:a,h:"klukkustund",hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},ByF4:function(e,t,a){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},CjzT:function(e,t,a){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},CoRJ:function(e,t,a){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(a("wd/R"))},"D/JM":function(e,t,a){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},"DKr+":function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?s[a][0]:s[a][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(a("wd/R"))},Dkky:function(e,t,a){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(a("wd/R"))},Dmvi:function(e,t,a){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(a("wd/R"))},DoHr:function(e,t,a){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,a){return e<12?a?"\xf6\xf6":"\xd6\xd6":a?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(a("wd/R"))},DxQv:function(e,t,a){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},Dzi0:function(e,t,a){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(a("wd/R"))},"E+lV":function(e,t,a){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var s=t.words[n];return 1===n.length?a?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},EOgW:function(e,t,a){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,a){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(a("wd/R"))},Fnuy:function(e,t,a){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var a=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(a="a"),e+a},week:{dow:1,doy:4}})}(a("wd/R"))},G0Uy:function(e,t,a){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},H8ED:function(e,t,a){!function(e){"use strict";function t(e,t,a){return"m"===a?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===a?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(n=+e,s={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[a].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,a){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(a("wd/R"))},HP3h:function(e,t,a){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(e){return function(t,s,r,i){var d=a(t),_=n[e][a(t)];return 2===d&&(_=_[s?0:1]),_.replace(/%d/i,t)}},r=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(a("wd/R"))},IBtZ:function(e,t,a){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,a){return"\u10d8"===a?t+"\u10e8\u10d8":t+a+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(a("wd/R"))},"Ivi+":function(e,t,a){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,a){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(a("wd/R"))},"JCF/":function(e,t,a){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:n,monthsShort:n,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,a){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return a[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(a("wd/R"))},JVSJ:function(e,t,a){!function(e){"use strict";function t(e,t,a){var n=e+" ";switch(a){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},Jo2N:function(e,t,a){"use strict";a.d(t,"a",function(){return h});var n=a("uUT0"),s=a("wd/R"),i=a.n(s),_=a("fXoL"),o=a("aOJN"),u=a("IO1d"),m=a("r328"),l=a("tC3r"),c=a("ejJU"),h=function(){var e=function(){function e(t,a,n,s,i){var d=this;r(this,e),this.loaderService=t,this.localizationService=a,this.confirmService=n,this.alertService=s,this.generalService=i,this.loader=function(){return d.loaderService},this.localization=function(){return d.localizationService},this.confirm=function(){return d.confirmService},this.alert=function(){return d.alertService},this.g=function(){return d.generalService}}return d(e,[{key:"toFormData",value:function(e){return Object(n.serialize)(e,{indices:!0,nullsAsUndefineds:!0})}},{key:"setForm",value:function(e,t){var a={};for(var n in t.controls)a[n]="boolean"!=typeof e[n]?e[n]?e[n]:null:e[n];return a}},{key:"download",value:function(e){if(e.url){var t=document.createElement("a");return t.setAttribute("target","_blank"),t.setAttribute("href",e.url),void t.click()}}},{key:"getErrors",value:function(e,t){if(t.errors&&Object.keys(t.errors).length){var a=Object.keys(t.errors)[0],n=t.errors[a],s=this.localization().translate("global_validation.".concat(a));return Object.keys(n).length&&(s="".concat(s," ").concat(n[Object.keys(n)[0]])),s}return e||""}},{key:"getDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD.MM.YYYY";return i()(e).format(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_.Zb(o.a),_.Zb(u.a),_.Zb(m.a),_.Zb(l.a),_.Zb(c.a))},e.\u0275prov=_.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},JvlW:function(e,t,a){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function a(e,t,a,n){return t?s(a)[0]:n?s(a)[1]:s(a)[2]}function n(e){return e%10==0||e>10&&e<20}function s(e){return t[e].split("_")}function r(e,t,r,i){var d=e+" ";return 1===e?d+a(0,t,r[0],i):t?d+(n(e)?s(r)[1]:s(r)[0]):i?d+s(r)[1]:d+(n(e)?s(r)[1]:s(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,a,n){return t?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(a("wd/R"))},"K/tc":function(e,t,a){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,a){return e<12?a?"vm":"VM":a?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(a("wd/R"))},KSF8:function(e,t,a){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,a){return e<12?a?"sa":"SA":a?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(a("wd/R"))},KTz0:function(e,t,a){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var s=t.words[n];return 1===n.length?a?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},LRb0:function(e,t,a){"use strict";a.d(t,"a",function(){return m});var n=a("fXoL"),s=a("Jo2N"),i=a("ofXK"),_=a("3Pt+");function o(e,t){if(1&e&&(n.Vb(0,"small",9),n.Ac(1),n.Ub()),2&e){var a=n.hc(2);n.Db(1),n.Cc("",a.label,"*")}}function u(e,t){if(1&e&&(n.Vb(0,"div",1),n.Vb(1,"div",2),n.zc(2,o,2,1,"small",3),n.Vb(3,"div",4),n.Qb(4,"div",5),n.Qb(5,"input",6),n.Ub(),n.Ub(),n.Vb(6,"span",7),n.Vb(7,"small",8),n.Vb(8,"span"),n.Ac(9),n.Ub(),n.Ub(),n.Ub(),n.Ub()),2&e){var a=n.hc();n.Db(1),n.Hb("required",a.control.errors&&a.control.errors.required&&a.control.touched),n.Db(1),n.mc("ngIf",a.control.value),n.Db(2),n.Fb(a.icon),n.Db(1),n.Hb("wrong",a.control.errors&&!a.control.value&&a.control.touched),n.mc("placeholder",a.label)("type",a.type)("formControl",a.control),n.Db(2),n.Hb("display-error",a.showErrors()||a.error),n.Db(2),n.Cc(" ",a.helpers.getErrors(a.error,a.control)," ")}}var m=function(){var e=function(){function e(t){r(this,e),this.helpers=t,this.icon="",this.label="",this.type="text",this.control={errors:{}},this.error=""}return d(e,[{key:"showErrors",value:function(){return!!this.helpers.getErrors(this.error,this.control)&&this.control.touched&&this.control.invalid}}]),e}();return e.\u0275fac=function(t){return new(t||e)(n.Pb(s.a))},e.\u0275cmp=n.Jb({type:e,selectors:[["form-input"]],inputs:{icon:"icon",label:"label",type:"type",control:"control",field:"field",error:"error"},decls:1,vars:1,consts:[["class","input-block my-5",4,"ngIf"],[1,"input-block","my-5"],[1,"form__input"],["class","form__input--label","text","text",4,"ngIf"],[1,"d-flex","full-width","align-center"],[2,"font-size","16px"],[3,"placeholder","type","formControl"],[1,"form__error","text-left"],[1,"form__error--text"],["text","text",1,"form__input--label"]],template:function(e,t){1&e&&n.zc(0,u,10,13,"div",0),2&e&&n.mc("ngIf",t.control)},directives:[i.l,_.d,_.l,_.f],styles:[".form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;box-sizing:border-box}.form__input[_ngcontent-%COMP%]{position:relative;max-width:100%;padding:5px 0}.form__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:30px;width:100%;outline:none;padding:0 5px;border:none;color:var(--text);border-bottom:1px solid var(--input-text);background:transparent;margin-left:.2rem}.form__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-bottom:2px solid var(--primary)}.form__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus:-moz-placeholder-shown .form__input--label[_ngcontent-%COMP%]{display:none}.form__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus:-ms-input-placeholder .form__input--label[_ngcontent-%COMP%]{display:none}.form__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus:placeholder-shown .form__input--label[_ngcontent-%COMP%]{display:none}.form__input--label[_ngcontent-%COMP%]{position:absolute;top:-11px;left:5px}.form__error[_ngcontent-%COMP%]{visibility:hidden}.form__error--text[_ngcontent-%COMP%]{margin-left:2px;color:var(--error);font-style:italic}.input-block[_ngcontent-%COMP%]{box-sizing:border-box;padding:5px 10px;display:inline-block;width:100%}.wrong[_ngcontent-%COMP%]::-moz-placeholder{color:var(--error)!important}.wrong[_ngcontent-%COMP%]:-ms-input-placeholder{color:var(--error)!important}.wrong[_ngcontent-%COMP%]::placeholder{color:var(--error)!important}.display-error[_ngcontent-%COMP%]{-webkit-animation:color-change 1s ease;animation:color-change 1s ease;visibility:visible}@-webkit-keyframes color-change{0%{transform:scale(1.01)}25%{transform:scale(.98)}50%{transform:scale(1.01)}75%{transform:scale(.98)}to{transform:scale(1.01)}}@keyframes color-change{0%{transform:scale(1.01)}25%{transform:scale(.98)}50%{transform:scale(1.01)}75%{transform:scale(.98)}to{transform:scale(1.01)}}"]}),e}()},Loxo:function(e,t,a){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(a("wd/R"))},OIYi:function(e,t,a){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(a("wd/R"))},Oaa7:function(e,t,a){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},Ob0Z:function(e,t,a){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(e,t,a,n){var s="";if(t)switch(a){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(a){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,a){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(a("wd/R"))},OjkT:function(e,t,a){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,a){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(a("wd/R"))},OmwH:function(e,t,a){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(a("wd/R"))},Oxv6:function(e,t,a){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(a("wd/R"))},PA2r:function(e,t,a){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),a="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],s=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,a,n){var s=e+" ";switch(a){case"s":return t||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||n?s+(r(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?s+(r(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(r(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?s+(r(e)?"dny":"dn\xed"):s+"dny";case"M":return t||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||n?s+(r(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?s+(r(e)?"roky":"let"):s+"lety"}}e.defineLocale("cs",{months:t,monthsShort:a,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},PeUW:function(e,t,a){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},a={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,a){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(a("wd/R"))},PpIw:function(e,t,a){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},a={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(a("wd/R"))},Qj4J:function(e,t,a){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(a("wd/R"))},RAwQ:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?s[a][0]:s[a][1]}function a(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return a(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return a(e)}return a(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return a(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return a(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},RnhZ:function(e,t,a){var n={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=r,e.exports=s,s.id="RnhZ"},S6ln:function(e,t,a){!function(e){"use strict";function t(e,t,a){var n=e+" ";switch(a){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},SFxW:function(e,t,a){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,a){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var a=e%10;return e+(t[a]||t[e%100-a]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(a("wd/R"))},SatO:function(e,t,a){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1200?"\u4e0a\u5348":1200===n?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(a("wd/R"))},UDhR:function(e,t,a){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(a("wd/R"))},USCx:function(e,t,a){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(a("wd/R"))},UpQW:function(e,t,a){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],a=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(a("wd/R"))},Ur1D:function(e,t,a){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,a){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(a("wd/R"))},V2x9:function(e,t,a){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},Vclq:function(e,t,a){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(a("wd/R"))},WYrj:function(e,t,a){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],a=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,a){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(a("wd/R"))},Wv91:function(e,t,a){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(a("wd/R"))},WxRl:function(e,t,a){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function a(e,t,a,n){var s=e;switch(a){case"s":return n||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return s+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return s+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||t?" \xe9v":" \xe9ve");case"yy":return s+(n||t?" \xe9v":" \xe9ve")}return""}function n(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,a){return e<12?!0===a?"de":"DE":!0===a?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},X709:function(e,t,a){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(a("wd/R"))},XDpg:function(e,t,a){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,a){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(a("wd/R"))},XLvN:function(e,t,a){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(a("wd/R"))},YRex:function(e,t,a){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,a){var n=100*e+t;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(a("wd/R"))},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z4QM:function(e,t,a){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],a=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(a("wd/R"))},ZAMP:function(e,t,a){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(a("wd/R"))},Zduo:function(e,t,a){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,a){return e>11?a?"p.t.m.":"P.T.M.":a?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(a("wd/R"))},aIdf:function(e,t,a){!function(e){"use strict";function t(e,t,a){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[a],e)}function a(e){return e>9?a(e%10):e}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,r=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:r,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:r,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,a){return e<12?"a.m.":"g.m."}})}(a("wd/R"))},aIsn:function(e,t,a){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},aQkU:function(e,t,a){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,a=e%100;return 0===e?e+"-\u0435\u0432":0===a?e+"-\u0435\u043d":a>10&&a<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(a("wd/R"))},b1Dy:function(e,t,a){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},bOMt:function(e,t,a){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},bXm7:function(e,t,a){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(a("wd/R"))},bYM6:function(e,t,a){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(a("wd/R"))},bpih:function(e,t,a){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},bxKX:function(e,t,a){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},cRix:function(e,t,a){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),a="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(a("wd/R"))},czMo:function(e,t,a){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(a("wd/R"))},dNwA:function(e,t,a){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(a("wd/R"))},"e+ae":function(e,t,a){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),a="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(e){return e>1&&e<5}function s(e,t,a,s){var r=e+" ";switch(a){case"s":return t||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||s?r+(n(e)?"sekundy":"sek\xfand"):r+"sekundami";case"m":return t?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return t||s?r+(n(e)?"min\xfaty":"min\xfat"):r+"min\xfatami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?r+(n(e)?"hodiny":"hod\xedn"):r+"hodinami";case"d":return t||s?"de\u0148":"d\u0148om";case"dd":return t||s?r+(n(e)?"dni":"dn\xed"):r+"d\u0148ami";case"M":return t||s?"mesiac":"mesiacom";case"MM":return t||s?r+(n(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||s?"rok":"rokom";case"yy":return t||s?r+(n(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:a,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},fzPg:function(e,t,a){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(a("wd/R"))},gVVK:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s=e+" ";switch(a){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return s+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return s+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return s+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return s+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return s+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))},gekB:function(e,t,a){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),a=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function n(e,n,s,r){var i="";switch(s){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":i=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta"}return function(e,n){return e<10?n?a[e]:t[e]:e}(e,r)+" "+i}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},gjCT:function(e,t,a){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return a[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(a("wd/R"))},hKrs:function(e,t,a){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,a=e%100;return 0===e?e+"-\u0435\u0432":0===a?e+"-\u0435\u043d":a>10&&a<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(a("wd/R"))},honF:function(e,t,a){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},a={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(a("wd/R"))},iEDd:function(e,t,a){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(a("wd/R"))},iYuL:function(e,t,a){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(a("wd/R"))},jUeY:function(e,t,a){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,a){return e>11?a?"\u03bc\u03bc":"\u039c\u039c":a?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var a,n=this._calendarEl[e],s=t&&t.hours();return a=n,("undefined"!=typeof Function&&a instanceof Function||"[object Function]"===Object.prototype.toString.call(a))&&(n=n.apply(t)),n.replace("{}",s%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(a("wd/R"))},jVdC:function(e,t,a){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function s(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,a){var n=e+" ";switch(a){case"ss":return n+(s(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return n+(s(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return n+(s(e)?"godziny":"godzin");case"ww":return n+(s(e)?"tygodnie":"tygodni");case"MM":return n+(s(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return n+(s(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,n){return e?/D MMMM/.test(n)?a[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:r,M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},jfSC:function(e,t,a){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},a={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,a){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return a[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(a("wd/R"))},jnO4:function(e,t,a){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,a,r,i){var d=n(t),_=s[e][n(t)];return 2===d&&(_=_[a?0:1]),_.replace(/%d/i,t)}},i=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return a[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(a("wd/R"))},kEOa:function(e,t,a){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},a={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,a){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(a("wd/R"))},kOpN:function(e,t,a){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,a){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(a("wd/R"))},l5ep:function(e,t,a){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(a("wd/R"))},lXzo:function(e,t,a){!function(e){"use strict";function t(e,t,a){return"m"===a?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(n=+e,s={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[a].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var a=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,a){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(a("wd/R"))},lYtQ:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){switch(a){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,a){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(a("wd/R"))},lgnt:function(e,t,a){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(a("wd/R"))},loYQ:function(e,t,a){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},a={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return a[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(a("wd/R"))},lyxo:function(e,t,a){!function(e){"use strict";function t(e,t,a){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[a]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(a("wd/R"))},nyYc:function(e,t,a){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,a=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(a("wd/R"))},o1bE:function(e,t,a){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},n=function(e){return function(n,s,r,i){var d=t(n),_=a[e][t(n)];return 2===d&&(_=_[s?0:1]),_.replace(/%d/i,n)}},s=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,a){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(a("wd/R"))},"p/rL":function(e,t,a){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(a("wd/R"))},qvJo:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return n?s[a][0]:s[a][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){switch(t){case"D":return e+"\u0935\u0947\u0930";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,a){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(a("wd/R"))},raLr:function(e,t,a){!function(e){"use strict";function t(e,t,a){return"m"===a?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===a?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(n=+e,s={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[a].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function a(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var a={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?a.nominative.slice(1,7).concat(a.nominative.slice(0,1)):e?a[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:a.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:a("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:a("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:a("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:a("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return a("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,a){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(a("wd/R"))},"s+uk":function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[a][0]:s[a][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},sp3z:function(e,t,a){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,a){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(a("wd/R"))},"t+mt":function(e,t,a){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(a("wd/R"))},tC3r:function(e,t,a){"use strict";a.d(t,"a",function(){return s});var n=a("fXoL"),s=function(){var e=function(){function e(){r(this,e),this.alert={success:{color:"green",title:"Success",content:"Operation successful",icon:"check_circle"},info:{color:"#3ac3e8",title:"Info",content:"Here is an info alert content",icon:"info"},warning:{color:"#f7a745",title:"Warning",content:"Here is an warrning alert message!",icon:"warning"},error:{color:"#f36e6e",title:"Error",content:"An error occurred",icon:"remove_circle"}}}return d(e,[{key:"showSuccess",value:function(e){this.alert.success.content=e,this.showMessage("success")}},{key:"showInfo",value:function(e){this.alert.info.content=e,this.showMessage("info")}},{key:"showWarning",value:function(e){this.alert.warning.content=e,this.showMessage("warning")}},{key:"showError",value:function(e){this.alert.error.content=e,this.showMessage("error")}},{key:"showMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"error",t=document.createElement("div");t.style.padding="10px 0",t.style.backgroundColor="#fff",t.style.width="300px",t.style.marginTop="5px",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="space-between",t.style.transition="all 0.3s ease",t.style.transform="translateX(+400px)",t.style.opacity="0",setTimeout(function(){t.style.transform="translateX(0)",t.style.opacity="1"},100);var a=document.createElement("div");a.innerHTML=this.alert[e].title,a.style.color=this.alert[e].color,a.style.fontWeight="500";var n=document.createElement("div");n.style.backgroundColor=this.alert[e].color,n.style.height="40px",n.style.width="3px";var s=document.createElement("div");s.style.color=this.alert[e].color,s.style.fontSize="24px",s.style.margin="0 10px",s.classList.add(this.alert[e].icon);var r=document.createElement("button");r.style.fontSize="12px",r.style.margin="0 10px",r.style.color="#8f8d8d",r.style.backgroundColor="transparent",r.style.float="right",r.style.cursor="pointer";var i=document.createElement("span");i.classList.add("material-icons"),i.innerHTML="clear",r.appendChild(i),r.addEventListener("click",function(){t.style.transform="translateX(400px)",t.style.opacity="0",setTimeout(function(){t.remove()},100)});var d=document.createElement("div"),_=document.createElement("div");_.style.display="flex",_.style.alignItems="center";var o=document.createElement("div");if(o.innerHTML=this.alert[e].content,o.style.color="#8f8d8d",d.appendChild(a),d.appendChild(o),_.appendChild(n),_.appendChild(s),_.appendChild(d),t.appendChild(_),t.appendChild(r),document.querySelector("#alert-container"))document.querySelector("#alert-container").appendChild(t);else{var u=document.createElement("div");u.style.position="fixed",u.style.right="10px",u.style.bottom="20%",u.style.zIndex="1111111111",u.id="alert-container",u.append(t),document.body.append(u)}setTimeout(function(){t.style.transform="translateX(400px)",t.style.transform="translateY(-40px)",t.style.opacity="0"},2500),setTimeout(function(){t.remove()},3e3)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},tGlX:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[a][0]:s[a][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},tT3J:function(e,t,a){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(a("wd/R"))},tUCv:function(e,t,a){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,a){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(a("wd/R"))},tbfe:function(e,t,a){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,n){return e?/-MMM-/.test(n)?a[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(a("wd/R"))},u3GI:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[a][0]:s[a][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},uEye:function(e,t,a){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},uUT0:function(e,t){var a=function(e){return void 0===e},n=function(e){return Array.isArray(e)},s=function(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice};e.exports={serialize:function e(t,r,i,d){return(r=r||{}).indices=!a(r.indices)&&r.indices,r.nullsAsUndefineds=!a(r.nullsAsUndefineds)&&r.nullsAsUndefineds,r.booleansAsIntegers=!a(r.booleansAsIntegers)&&r.booleansAsIntegers,r.allowEmptyArrays=!a(r.allowEmptyArrays)&&r.allowEmptyArrays,i=i||new FormData,a(t)||(null===t?r.nullsAsUndefineds||i.append(d,""):"boolean"==typeof t?i.append(d,r.booleansAsIntegers?t?1:0:t):n(t)?t.length?t.forEach(function(t,a){e(t,r,i,d+"["+(r.indices?a:"")+"]")}):r.allowEmptyArrays&&i.append(d+"[]",""):t instanceof Date?i.append(d,t.toISOString()):(_=t)!==Object(_)||function(e){return s(e)&&"string"==typeof e.name&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)}(t)||s(t)?i.append(d,t):Object.keys(t).forEach(function(a){var s=t[a];if(n(s))for(;a.length>2&&a.lastIndexOf("[]")===a.length-2;)a=a.substring(0,a.length-2);e(s,r,i,d?d+"["+a+"]":a)})),i;var _}}},uXwI:function(e,t,a){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function a(e,t,a){return a?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function n(e,n,s){return e+" "+a(t[s],e,n)}function s(e,n,s){return a(t[s],e,n)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},wQk9:function(e,t,a){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(a("wd/R"))},"wd/R":function(e,t,a){(function(e){e.exports=function(){"use strict";var t,n;function s(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(d(e,t))return!1;return!0}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function m(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function c(e,t){for(var a in t)d(t,a)&&(e[a]=t[a]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,a,n){return gt(e,t,a,n,!0).utc()}function M(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function L(e){if(null==e._isValid){var t=M(e),a=n.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function Y(e){var t=h(NaN);return null!=e?c(M(t),e):M(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,a=Object(this),n=a.length>>>0;for(t=0;t<n;t++)if(t in a&&e.call(this,a[t],t,a))return!0;return!1};var y=s.momentProperties=[],f=!1;function p(e,t){var a,n,s;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=M(t)),o(t._locale)||(e._locale=t._locale),y.length>0)for(a=0;a<y.length;a++)o(s=t[n=y[a]])||(e[n]=s);return e}function k(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===f&&(f=!0,s.updateOffset(this),f=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function w(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function g(e,t){var a=!0;return c(function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),a){var n,r,i,_=[];for(r=0;r<arguments.length;r++){if(n="","object"==typeof arguments[r]){for(i in n+="\n["+r+"] ",arguments[0])d(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[r];_.push(n)}w(e+"\nArguments: "+Array.prototype.slice.call(_).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)},t)}var T,v={};function b(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),v[e]||(w(t),v[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function H(e,t){var a,n=c({},e);for(a in t)d(t,a)&&(i(e[a])&&i(t[a])?(n[a]={},c(n[a],e[a]),c(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)d(e,a)&&!d(t,a)&&i(e[a])&&(n[a]=c({},n[a]));return n}function j(e){null!=e&&this.set(e)}function x(e,t,a){var n=""+Math.abs(e);return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)d(e,t)&&a.push(t);return a};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},E={};function A(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(E[e]=s),t&&(E[t[0]]=function(){return x(s.apply(this,arguments),t[1],t[2])}),a&&(E[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=R(t,e.localeData()),W[t]=W[t]||function(e){var t,a,n,s=e.match(O);for(t=0,a=s.length;t<a;t++)s[t]=E[s[t]]?E[s[t]]:(n=s[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,r="";for(n=0;n<a;n++)r+=S(s[n])?s[n].call(t,e):s[n];return r}}(t),W[t](e)):e.localeData().invalidDate()}function R(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;a>=0&&P.test(e);)e=e.replace(P,n),P.lastIndex=0,a-=1;return e}var z={};function N(e,t){var a=e.toLowerCase();z[a]=z[a+"s"]=z[t]=e}function J(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function C(e){var t,a,n={};for(a in e)d(e,a)&&(t=J(a))&&(n[t]=e[a]);return n}var I={};function U(e,t){I[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Z(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=G(t)),a}function B(e,t){return function(a){return null!=a?(Q(this,e,a),s.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(a=Z(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),De(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}var q,X=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ae=/[+-]?\d{6}/,ne=/\d\d?/,se=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,de=/\d{1,4}/,_e=/[+-]?\d{1,6}/,oe=/\d+/,ue=/[+-]?\d+/,me=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,a){q[e]=S(t)?t:function(e,n){return e&&a?a:t}}function Me(e,t){return d(q,e)?q[e](t._strict,t._locale):new RegExp(Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,s){return t||a||n||s})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q={};var Ye,ye={};function fe(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),u(t)&&(n=function(e,a){a[t]=Z(e)}),a=0;a<e.length;a++)ye[e[a]]=n}function pe(e,t){fe(e,function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function ke(e,t,a){null!=t&&d(ye,e)&&ye[e](t,a._a,a,e)}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=(t%12+12)%12;return e+=(t-a)/12,1===a?V(e)?29:28:31-a%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),A("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),U("month",8),he("M",ne),he("MM",ne,$),he("MMM",function(e,t){return t.monthsShortRegex(e)}),he("MMMM",function(e,t){return t.monthsRegex(e)}),fe(["M","MM"],function(e,t){t[1]=Z(e)-1}),fe(["MMM","MMMM"],function(e,t,a,n){var s=a._locale.monthsParse(e,n,a._strict);null!=s?t[1]=s:M(a).invalidMonth=e});var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ge="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ve=ce,be=ce;function Se(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(s=Ye.call(this._shortMonthsParse,i))?s:null:-1!==(s=Ye.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=Ye.call(this._shortMonthsParse,i))||-1!==(s=Ye.call(this._longMonthsParse,i))?s:null:-1!==(s=Ye.call(this._longMonthsParse,i))||-1!==(s=Ye.call(this._shortMonthsParse,i))?s:null}function He(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Z(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function je(e){return null!=e?(He(this,e),s.updateOffset(this,!0),this):K(this,"Month")}function xe(){function e(e,t){return t.length-e.length}var t,a,n=[],s=[],r=[];for(t=0;t<12;t++)a=h([2e3,t]),n.push(this.monthsShort(a,"")),s.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),s.sort(e),r.sort(e),t=0;t<12;t++)n[t]=Le(n[t]),s[t]=Le(s[t]);for(t=0;t<24;t++)r[t]=Le(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Oe(e){return V(e)?366:365}A("Y",0,0,function(){var e=this.year();return e<=9999?x(e,4):"+"+e}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),N("year","y"),U("year",1),he("Y",ue),he("YY",ne,$),he("YYYY",de,te),he("YYYYY",_e,ae),he("YYYYYY",_e,ae),fe(["YYYYY","YYYYYY"],0),fe("YYYY",function(e,t){t[0]=2===e.length?s.parseTwoDigitYear(e):Z(e)}),fe("YY",function(e,t){t[0]=s.parseTwoDigitYear(e)}),fe("Y",function(e,t){t[0]=parseInt(e,10)}),s.parseTwoDigitYear=function(e){return Z(e)+(Z(e)>68?1900:2e3)};var Pe=B("FullYear",!0);function We(e,t,a,n,s,r,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,a,n,s,r,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,a,n,s,r,i),d}function Ee(e){var t,a;return e<100&&e>=0?((a=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ae(e,t,a){var n=7+t-a;return-(7+Ee(e,0,n).getUTCDay()-t)%7+n-1}function Fe(e,t,a,n,s){var r,i,d=1+7*(t-1)+(7+a-n)%7+Ae(e,n,s);return d<=0?i=Oe(r=e-1)+d:d>Oe(e)?(r=e+1,i=d-Oe(e)):(r=e,i=d),{year:r,dayOfYear:i}}function Re(e,t,a){var n,s,r=Ae(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?n=i+ze(s=e.year()-1,t,a):i>ze(e.year(),t,a)?(n=i-ze(e.year(),t,a),s=e.year()+1):(s=e.year(),n=i),{week:n,year:s}}function ze(e,t,a){var n=Ae(e,t,a),s=Ae(e+1,t,a);return(Oe(e)-n+s)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),U("week",5),U("isoWeek",5),he("w",ne),he("ww",ne,$),he("W",ne),he("WW",ne,$),pe(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=Z(e)}),A("d",0,"do","day"),A("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),A("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),A("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),he("d",ne),he("e",ne),he("E",ne),he("dd",function(e,t){return t.weekdaysMinRegex(e)}),he("ddd",function(e,t){return t.weekdaysShortRegex(e)}),he("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,a,n){var s=a._locale.weekdaysParse(e,n,a._strict);null!=s?t.d=s:M(a).invalidWeekday=e}),pe(["d","e","E"],function(e,t,a,n){t[n]=Z(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ce="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=ce,Ve=ce,Ge=ce;function Ze(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(s=Ye.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=Ye.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=Ye.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=Ye.call(this._weekdaysParse,i))||-1!==(s=Ye.call(this._shortWeekdaysParse,i))||-1!==(s=Ye.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=Ye.call(this._shortWeekdaysParse,i))||-1!==(s=Ye.call(this._weekdaysParse,i))||-1!==(s=Ye.call(this._minWeekdaysParse,i))?s:null:-1!==(s=Ye.call(this._minWeekdaysParse,i))||-1!==(s=Ye.call(this._weekdaysParse,i))||-1!==(s=Ye.call(this._shortWeekdaysParse,i))?s:null}function Be(){function e(e,t){return t.length-e.length}var t,a,n,s,r,i=[],d=[],_=[],o=[];for(t=0;t<7;t++)a=h([2e3,1]).day(t),n=Le(this.weekdaysMin(a,"")),s=Le(this.weekdaysShort(a,"")),r=Le(this.weekdays(a,"")),i.push(n),d.push(s),_.push(r),o.push(n),o.push(s),o.push(r);i.sort(e),d.sort(e),_.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Qe(e,t){A(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function qe(e,t){return t._meridiemParse}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,Ke),A("k",["kk",2],0,function(){return this.hours()||24}),A("hmm",0,0,function(){return""+Ke.apply(this)+x(this.minutes(),2)}),A("hmmss",0,0,function(){return""+Ke.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),A("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),A("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),N("hour","h"),U("hour",13),he("a",qe),he("A",qe),he("H",ne),he("h",ne),he("k",ne),he("HH",ne,$),he("hh",ne,$),he("kk",ne,$),he("hmm",se),he("hmmss",re),he("Hmm",se),he("Hmmss",re),fe(["H","HH"],3),fe(["k","kk"],function(e,t,a){var n=Z(e);t[3]=24===n?0:n}),fe(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),fe(["h","hh"],function(e,t,a){t[3]=Z(e),M(a).bigHour=!0}),fe("hmm",function(e,t,a){var n=e.length-2;t[3]=Z(e.substr(0,n)),t[4]=Z(e.substr(n)),M(a).bigHour=!0}),fe("hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=Z(e.substr(0,n)),t[4]=Z(e.substr(n,2)),t[5]=Z(e.substr(s)),M(a).bigHour=!0}),fe("Hmm",function(e,t,a){var n=e.length-2;t[3]=Z(e.substr(0,n)),t[4]=Z(e.substr(n))}),fe("Hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=Z(e.substr(0,n)),t[4]=Z(e.substr(n,2)),t[5]=Z(e.substr(s))});var Xe,$e=B("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:ge,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Ie,weekdaysShort:Ce,meridiemParse:/[ap]\.?m?\.?/i},tt={},at={};function nt(e,t){var a,n=Math.min(e.length,t.length);for(a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}function st(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{n=Xe._abbr,a("RnhZ")("./"+t),it(n)}catch(s){tt[t]=null}return tt[t]}function it(e,t){var a;return e&&((a=o(t)?_t(e):dt(e,t))?Xe=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function dt(e,t){if(null!==t){var a,n=et;if(t.abbr=e,null!=tt[e])b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])n=tt[t.parentLocale]._config;else{if(null==(a=rt(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;n=a._config}return tt[e]=new j(H(n,t)),at[e]&&at[e].forEach(function(e){dt(e.name,e.config)}),it(e),tt[e]}return delete tt[e],null}function _t(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!r(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,a,n,s,r=0;r<e.length;){for(t=(s=st(e[r]).split("-")).length,a=(a=st(e[r+1]))?a.split("-"):null;t>0;){if(n=rt(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&nt(s,a)>=t-1)break;t--}r++}return Xe}(e)}function ot(e){var t,a=e._a;return a&&-2===M(e).overflow&&(t=a[1]<0||a[1]>11?1:a[2]<1||a[2]>De(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,M(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),M(e)._overflowWeeks&&-1===t&&(t=7),M(e)._overflowWeekday&&-1===t&&(t=8),M(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/Z|[+-]\d\d(?::?\d\d)?/,ct=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mt=/^\/?Date\((-?\d+)/i,Lt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,a,n,s,r,i,d=e._i,_=ut.exec(d)||mt.exec(d);if(_){for(M(e).iso=!0,t=0,a=ct.length;t<a;t++)if(ct[t][1].exec(_[1])){s=ct[t][0],n=!1!==ct[t][2];break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,a=ht.length;t<a;t++)if(ht[t][1].exec(_[3])){r=(_[2]||" ")+ht[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(_[4]){if(!lt.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),Dt(e)}else e._isValid=!1}function ft(e){var t,a,n,s,r,i,d,_,o,u=Lt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(a=u[3],n=u[2],s=u[5],r=u[6],i=u[7],d=[(_=u[4],o=parseInt(_,10),o<=49?2e3+o:o<=999?1900+o:o),ge.indexOf(a),parseInt(n,10),parseInt(s,10),parseInt(r,10)],i&&d.push(parseInt(i,10)),!function(e,t,a){return!e||Ce.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(M(a).weekdayMismatch=!0,a._isValid=!1,!1)}(u[1],t=d,e))return;e._a=t,e._tzm=function(e,t,a){if(e)return Yt[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}(u[8],u[9],u[10]),e._d=Ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function pt(e,t,a){return null!=e?e:null!=t?t:a}function kt(e){var t,a,n,r,i,d=[];if(!e._d){for(n=function(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,a,n,s,r,i,d,_,o;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,a=pt(t.GG,e._a[0],Re(Tt(),1,4).year),n=pt(t.W,1),((s=pt(t.E,1))<1||s>7)&&(_=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,o=Re(Tt(),r,i),a=pt(t.gg,e._a[0],o.year),n=pt(t.w,o.week),null!=t.d?((s=t.d)<0||s>6)&&(_=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(_=!0)):s=r),n<1||n>ze(a,r,i)?M(e)._overflowWeeks=!0:null!=_?M(e)._overflowWeekday=!0:(d=Fe(a,n,s,r,i),e._a[0]=d.year,e._dayOfYear=d.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[0],n[0]),(e._dayOfYear>Oe(i)||0===e._dayOfYear)&&(M(e)._overflowDayOfYear=!0),a=Ee(i,0,e._dayOfYear),e._a[1]=a.getUTCMonth(),e._a[2]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ee:We).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(M(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],M(e).empty=!0;var t,a,n,r,i,d,_=""+e._i,o=_.length,u=0;for(n=R(e._f,e._locale).match(O)||[],t=0;t<n.length;t++)(a=(_.match(Me(r=n[t],e))||[])[0])&&((i=_.substr(0,_.indexOf(a))).length>0&&M(e).unusedInput.push(i),_=_.slice(_.indexOf(a)+a.length),u+=a.length),E[r]?(a?M(e).empty=!1:M(e).unusedTokens.push(r),ke(r,a,e)):e._strict&&!a&&M(e).unusedTokens.push(r);M(e).charsLeftOver=o-u,_.length>0&&M(e).unusedInput.push(_),e._a[3]<=12&&!0===M(e).bigHour&&e._a[3]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[3]=function(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(d=M(e).era)&&(e._a[0]=e._locale.erasConvertYear(d,e._a[0])),kt(e),ot(e)}else ft(e);else yt(e)}function wt(e){var t=e._i,a=e._f;return e._locale=e._locale||_t(e._l),null===t||void 0===a&&""===t?Y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(ot(t)):(m(t)?e._d=t:r(a)?function(e){var t,a,n,s,r,i,d=!1;if(0===e._f.length)return M(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,i=!1,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Dt(t),L(t)&&(i=!0),r+=M(t).charsLeftOver,r+=10*M(t).unusedTokens.length,M(t).score=r,d?r<n&&(n=r,a=t):(null==n||r<n||i)&&(n=r,a=t,i&&(d=!0));c(e,a||t)}(e):a?Dt(e):function(e){var t=e._i;o(t)?e._d=new Date(s.now()):m(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,ft(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=l(t.slice(0),function(e){return parseInt(e,10)}),kt(e)):i(t)?function(e){if(!e._d){var t=C(e._i);e._a=l([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),kt(e)}}(e):u(t)?e._d=new Date(t):s.createFromInputFallback(e)}(e),L(e)||(e._d=null),e))}function gt(e,t,a,n,s){var d,o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==a&&!1!==a||(n=a,a=void 0),(i(e)&&_(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=a,o._i=e,o._f=t,o._strict=n,(d=new k(ot(wt(o))))._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function Tt(e,t,a,n){return gt(e,t,a,n,!1)}s.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){};var vt=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),bt=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Y()});function St(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Tt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}var Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jt(e){var t=C(e),a=t.year||0,n=t.quarter||0,s=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,_=t.hour||0,o=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=function(e){var t,a,n=!1;for(t in e)if(d(e,t)&&(-1===Ye.call(Ht,t)||null!=e[t]&&isNaN(e[t])))return!1;for(a=0;a<Ht.length;++a)if(e[Ht[a]]){if(n)return!1;parseFloat(e[Ht[a]])!==Z(e[Ht[a]])&&(n=!0)}return!0}(t),this._milliseconds=+m+1e3*u+6e4*o+1e3*_*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=_t(),this._bubble()}function xt(e){return e instanceof jt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){A(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+x(~~(e/60),2)+t+x(~~e%60,2)})}Pt("Z",":"),Pt("ZZ",""),he("Z",le),he("ZZ",le),fe(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Et(le,e)});var Wt=/([\+\-]|\d\d)/gi;function Et(e,t){var a,n,s=(t||"").match(e);return null===s?null:0===(n=60*(a=((s[s.length-1]||[])+"").match(Wt)||["-",0,0])[1]+Z(a[2]))?0:"+"===a[0]?n:-n}function At(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(D(e)||m(e)?e.valueOf():Tt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),s.updateOffset(a,!1),a):Tt(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var a,n,s,r,i,_,o=e,m=null;return xt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(m=zt.exec(e))?(a="-"===m[1]?-1:1,o={y:0,d:Z(m[2])*a,h:Z(m[3])*a,m:Z(m[4])*a,s:Z(m[5])*a,ms:Z(Ot(1e3*m[6]))*a}):(m=Nt.exec(e))?o={y:Ct(m[2],a="-"===m[1]?-1:1),M:Ct(m[3],a),w:Ct(m[4],a),d:Ct(m[5],a),h:Ct(m[6],a),m:Ct(m[7],a),s:Ct(m[8],a)}:null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Tt(o.from),i=Tt(o.to),s=r.isValid()&&i.isValid()?(i=At(i,r),r.isBefore(i)?_=It(r,i):((_=It(i,r)).milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0},(o={}).ms=s.milliseconds,o.M=s.months),n=new jt(o),xt(e)&&d(e,"_locale")&&(n._locale=e._locale),xt(e)&&d(e,"_isValid")&&(n._isValid=e._isValid),n}function Ct(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function It(e,t){var a={};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ut(e,t){return function(a,n){var s;return null===n||isNaN(+n)||(b(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=a,a=n,n=s),Vt(this,Jt(a,n),e),this}}function Vt(e,t,a,n){var r=t._milliseconds,i=Ot(t._days),d=Ot(t._months);e.isValid()&&(n=null==n||n,d&&He(e,K(e,"Month")+d*a),i&&Q(e,"Date",K(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&s.updateOffset(e,i||d))}Jt.fn=jt.prototype,Jt.invalid=function(){return Jt(NaN)};var Gt=Ut(1,"add"),Zt=Ut(-1,"subtract");function Bt(e){return"string"==typeof e||e instanceof String}function Kt(e){return D(e)||m(e)||Bt(e)||u(e)||function(e){var t=r(e),a=!1;return t&&(a=0===e.filter(function(t){return!u(t)&&Bt(e)}).length),t&&a}(e)||function(e){var t,a=i(e)&&!_(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<s.length;t+=1)n=n||d(e,s[t]);return a&&n}(e)||null==e}function Qt(e){var t,a=i(e)&&!_(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=n||d(e,s[t]);return a&&n}function qt(e,t){if(e.date()<t.date())return-qt(t,e);var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=_t(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ea(){return this._locale}function ta(e,t){return(e%t+t)%t}function aa(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-126227808e5:new Date(e,t,a).valueOf()}function na(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-126227808e5:Date.UTC(e,t,a)}function sa(e,t){return t.erasAbbrRegex(e)}function ra(){var e,t,a=[],n=[],s=[],r=[],i=this.eras();for(e=0,t=i.length;e<t;++e)n.push(Le(i[e].name)),a.push(Le(i[e].abbr)),s.push(Le(i[e].narrow)),r.push(Le(i[e].name)),r.push(Le(i[e].abbr)),r.push(Le(i[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function ia(e,t){A(0,[e,e.length],0,t)}function da(e,t,a,n,s){var r;return null==e?Re(this,n,s).year:(t>(r=ze(e,n,s))&&(t=r),_a.call(this,e,t,a,n,s))}function _a(e,t,a,n,s){var r=Fe(e,t,a,n,s),i=Ee(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),he("N",sa),he("NN",sa),he("NNN",sa),he("NNNN",function(e,t){return t.erasNameRegex(e)}),he("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,n){var s=a._locale.erasParse(e,n,a._strict);s?M(a).era=s:M(a).invalidEra=e}),he("y",oe),he("yy",oe),he("yyy",oe),he("yyyy",oe),he("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),fe(["y","yy","yyy","yyyy"],0),fe(["yo"],function(e,t,a,n){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),t[0]=a._locale.eraYearOrdinalParse?a._locale.eraYearOrdinalParse(e,s):parseInt(e,10)}),A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ia("gggg","weekYear"),ia("ggggg","weekYear"),ia("GGGG","isoWeekYear"),ia("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",ne,$),he("gg",ne,$),he("GGGG",de,te),he("gggg",de,te),he("GGGGG",_e,ae),he("ggggg",_e,ae),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=Z(e)}),pe(["gg","GG"],function(e,t,a,n){t[n]=s.parseTwoDigitYear(e)}),A("Q",0,"Qo","quarter"),N("quarter","Q"),U("quarter",7),he("Q",X),fe("Q",function(e,t){t[1]=3*(Z(e)-1)}),A("D",["DD",2],"Do","date"),N("date","D"),U("date",9),he("D",ne),he("DD",ne,$),he("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],2),fe("Do",function(e,t){t[2]=Z(e.match(ne)[0])});var oa=B("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),U("dayOfYear",4),he("DDD",ie),he("DDDD",ee),fe(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Z(e)}),A("m",["mm",2],0,"minute"),N("minute","m"),U("minute",14),he("m",ne),he("mm",ne,$),fe(["m","mm"],4);var ua=B("Minutes",!1);A("s",["ss",2],0,"second"),N("second","s"),U("second",15),he("s",ne),he("ss",ne,$),fe(["s","ss"],5);var ma,la,ca=B("Seconds",!1);for(A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,function(){return 10*this.millisecond()}),A(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),A(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),A(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),A(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),A(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),U("millisecond",16),he("S",ie,X),he("SS",ie,$),he("SSS",ie,ee),ma="SSSS";ma.length<=9;ma+="S")he(ma,oe);function ha(e,t){t[6]=Z(1e3*("0."+e))}for(ma="S";ma.length<=9;ma+="S")fe(ma,ha);la=B("Milliseconds",!1),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var Ma=k.prototype;function La(e){return e}Ma.add=Gt,Ma.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||Tt(),n=At(a,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",i=t&&(S(t[r])?t[r].call(this,a):t[r]);return this.format(i||this.localeData().calendar(r,this,Tt(a)))},Ma.clone=function(){return new k(this)},Ma.diff=function(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(!(n=At(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=J(t)){case"year":r=qt(this,n)/12;break;case"month":r=qt(this,n);break;case"quarter":r=qt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return a?r:G(r)},Ma.endOf=function(e){var t,a;if(void 0===(e=J(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?na:aa,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ta(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ta(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ta(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},Ma.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},Ma.from=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||Tt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ma.fromNow=function(e){return this.from(Tt(),e)},Ma.to=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||Tt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ma.toNow=function(e){return this.to(Tt(),e)},Ma.get=function(e){return S(this[e=J(e)])?this[e]():this},Ma.invalidAt=function(){return M(this).overflow},Ma.isAfter=function(e,t){var a=D(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=J(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},Ma.isBefore=function(e,t){var a=D(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=J(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},Ma.isBetween=function(e,t,a,n){var s=D(e)?e:Tt(e),r=D(t)?t:Tt(t);return!!(this.isValid()&&s.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(s,a):!this.isBefore(s,a))&&(")"===n[1]?this.isBefore(r,a):!this.isAfter(r,a))},Ma.isSame=function(e,t){var a,n=D(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=J(t)||"millisecond")?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},Ma.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Ma.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Ma.isValid=function(){return L(this)},Ma.lang=$t,Ma.locale=Xt,Ma.localeData=ea,Ma.max=bt,Ma.min=vt,Ma.parsingFlags=function(){return c({},M(this))},Ma.set=function(e,t){if("object"==typeof e){var a,n=function(e){var t,a=[];for(t in e)d(e,t)&&a.push({unit:t,priority:I[t]});return a.sort(function(e,t){return e.priority-t.priority}),a}(e=C(e));for(a=0;a<n.length;a++)this[n[a].unit](e[n[a].unit])}else if(S(this[e=J(e)]))return this[e](t);return this},Ma.startOf=function(e){var t,a;if(void 0===(e=J(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?na:aa,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ta(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ta(t,6e4);break;case"second":t=this._d.valueOf(),t-=ta(t,1e3)}return this._d.setTime(t),s.updateOffset(this,!0),this},Ma.subtract=Zt,Ma.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Ma.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Ma.toDate=function(){return new Date(this.valueOf())},Ma.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?F(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(a,"Z")):F(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ma.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,a="moment",n="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ma[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ma.toJSON=function(){return this.isValid()?this.toISOString():null},Ma.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ma.unix=function(){return Math.floor(this.valueOf()/1e3)},Ma.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ma.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ma.eraName=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].name;if(n[e].until<=a&&a<=n[e].since)return n[e].name}return""},Ma.eraNarrow=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].narrow;if(n[e].until<=a&&a<=n[e].since)return n[e].narrow}return""},Ma.eraAbbr=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].abbr;if(n[e].until<=a&&a<=n[e].since)return n[e].abbr}return""},Ma.eraYear=function(){var e,t,a,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(a=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-s(r[e].since).year())*a+r[e].offset;return this.year()},Ma.year=Pe,Ma.isLeapYear=function(){return V(this.year())},Ma.weekYear=function(e){return da.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ma.isoWeekYear=function(e){return da.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Ma.quarter=Ma.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Ma.month=je,Ma.daysInMonth=function(){return De(this.year(),this.month())},Ma.week=Ma.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Ma.isoWeek=Ma.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Ma.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},Ma.weeksInWeekYear=function(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)},Ma.isoWeeksInYear=function(){return ze(this.year(),1,4)},Ma.isoWeeksInISOWeekYear=function(){return ze(this.isoWeekYear(),1,4)},Ma.date=oa,Ma.day=Ma.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Ma.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Ma.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Ma.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Ma.hour=Ma.hours=$e,Ma.minute=Ma.minutes=ua,Ma.second=Ma.seconds=ca,Ma.millisecond=Ma.milliseconds=la,Ma.utcOffset=function(e,t,a){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Et(le,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Vt(this,Jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ft(this)},Ma.utc=function(e){return this.utcOffset(0,e)},Ma.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},Ma.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Et(me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Ma.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Ma.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ma.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ma.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ma.isUtc=Rt,Ma.isUTC=Rt,Ma.zoneAbbr=function(){return this._isUTC?"UTC":""},Ma.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ma.dates=g("dates accessor is deprecated. Use date instead.",oa),Ma.months=g("months accessor is deprecated. Use month instead",je),Ma.years=g("years accessor is deprecated. Use year instead",Pe),Ma.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Ma.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=wt(t))._a?(e=t._isUTC?h(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,a){var n,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(n=0;n<s;n++)Z(e[n])!==Z(t[n])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ya=j.prototype;function ya(e,t,a,n){var s=_t(),r=h().set(n,t);return s[a](r,e)}function fa(e,t,a){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ya(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=ya(e,n,a,"month");return s}function pa(e,t,a,n){"boolean"==typeof e?(u(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,u(t)&&(a=t,t=void 0),t=t||"");var s,r=_t(),i=e?r._week.dow:0,d=[];if(null!=a)return ya(t,(a+i)%7,n,"day");for(s=0;s<7;s++)d[s]=ya(t,(s+i)%7,n,"day");return d}Ya.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return S(n)?n.call(t,a):n},Ya.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Ya.invalidDate=function(){return this._invalidDate},Ya.ordinal=function(e){return this._ordinal.replace("%d",e)},Ya.preparse=La,Ya.postformat=La,Ya.relativeTime=function(e,t,a,n){var s=this._relativeTime[a];return S(s)?s(e,t,a,n):s.replace(/%d/i,e)},Ya.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return S(a)?a(t):a.replace(/%s/i,t)},Ya.set=function(e){var t,a;for(a in e)d(e,a)&&(S(t=e[a])?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ya.eras=function(e,t){var a,n,r,i=this._eras||_t("en")._eras;for(a=0,n=i.length;a<n;++a){switch(typeof i[a].since){case"string":r=s(i[a].since).startOf("day"),i[a].since=r.valueOf()}switch(typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":r=s(i[a].until).startOf("day").valueOf(),i[a].until=r.valueOf()}}return i},Ya.erasParse=function(e,t,a){var n,s,r,i,d,_=this.eras();for(e=e.toUpperCase(),n=0,s=_.length;n<s;++n)if(r=_[n].name.toUpperCase(),i=_[n].abbr.toUpperCase(),d=_[n].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(i===e)return _[n];break;case"NNNN":if(r===e)return _[n];break;case"NNNNN":if(d===e)return _[n]}else if([r,i,d].indexOf(e)>=0)return _[n]},Ya.erasConvertYear=function(e,t){var a=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*a},Ya.erasAbbrRegex=function(e){return d(this,"_erasAbbrRegex")||ra.call(this),e?this._erasAbbrRegex:this._erasRegex},Ya.erasNameRegex=function(e){return d(this,"_erasNameRegex")||ra.call(this),e?this._erasNameRegex:this._erasRegex},Ya.erasNarrowRegex=function(e){return d(this,"_erasNarrowRegex")||ra.call(this),e?this._erasNarrowRegex:this._erasRegex},Ya.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Ya.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ya.monthsParse=function(e,t,a){var n,s,r;if(this._monthsParseExact)return Se.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=h([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}},Ya.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Ya.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=ve),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Ya.week=function(e){return Re(e,this._week.dow,this._week.doy).week},Ya.firstDayOfYear=function(){return this._week.doy},Ya.firstDayOfWeek=function(){return this._week.dow},Ya.weekdays=function(e,t){var a=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(a,this._week.dow):e?a[e.day()]:a},Ya.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Ya.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Ya.weekdaysParse=function(e,t,a){var n,s,r;if(this._weekdaysParseExact)return Ze.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=h([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}},Ya.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Ya.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ya.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ya.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ya.meridiem=function(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=g("moment.lang is deprecated. Use moment.locale instead.",it),s.langData=g("moment.langData is deprecated. Use moment.localeData instead.",_t);var ka=Math.abs;function Da(e,t,a,n){var s=Jt(t,a);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function wa(e){return e<0?Math.floor(e):Math.ceil(e)}function ga(e){return 4800*e/146097}function Ta(e){return 146097*e/4800}function va(e){return function(){return this.as(e)}}var ba=va("ms"),Sa=va("s"),Ha=va("m"),ja=va("h"),xa=va("d"),Oa=va("w"),Pa=va("M"),Wa=va("Q"),Ea=va("y");function Aa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fa=Aa("milliseconds"),Ra=Aa("seconds"),za=Aa("minutes"),Na=Aa("hours"),Ja=Aa("days"),Ca=Aa("months"),Ia=Aa("years"),Ua=Math.round,Va={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ga(e,t,a,n,s){return s.relativeTime(t||1,!!a,e,n)}var Za=Math.abs;function Ba(e){return(e>0)-(e<0)||+e}function Ka(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n,s,r,i,d,_=Za(this._milliseconds)/1e3,o=Za(this._days),u=Za(this._months),m=this.asSeconds();return m?(e=G(_/60),t=G(e/60),_%=60,e%=60,a=G(u/12),u%=12,n=_?_.toFixed(3).replace(/\.?0+$/,""):"",s=m<0?"-":"",r=Ba(this._months)!==Ba(m)?"-":"",i=Ba(this._days)!==Ba(m)?"-":"",d=Ba(this._milliseconds)!==Ba(m)?"-":"",s+"P"+(a?r+a+"Y":"")+(u?r+u+"M":"")+(o?i+o+"D":"")+(t||e||_?"T":"")+(t?d+t+"H":"")+(e?d+e+"M":"")+(_?d+n+"S":"")):"P0D"}var Qa=jt.prototype;return Qa.isValid=function(){return this._isValid},Qa.abs=function(){var e=this._data;return this._milliseconds=ka(this._milliseconds),this._days=ka(this._days),this._months=ka(this._months),e.milliseconds=ka(e.milliseconds),e.seconds=ka(e.seconds),e.minutes=ka(e.minutes),e.hours=ka(e.hours),e.months=ka(e.months),e.years=ka(e.years),this},Qa.add=function(e,t){return Da(this,e,t,1)},Qa.subtract=function(e,t){return Da(this,e,t,-1)},Qa.as=function(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=J(e))||"quarter"===e||"year"===e)switch(a=this._months+ga(t=this._days+n/864e5),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(Ta(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Qa.asMilliseconds=ba,Qa.asSeconds=Sa,Qa.asMinutes=Ha,Qa.asHours=ja,Qa.asDays=xa,Qa.asWeeks=Oa,Qa.asMonths=Pa,Qa.asQuarters=Wa,Qa.asYears=Ea,Qa.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},Qa._bubble=function(){var e,t,a,n,s,r=this._milliseconds,i=this._days,d=this._months,_=this._data;return r>=0&&i>=0&&d>=0||r<=0&&i<=0&&d<=0||(r+=864e5*wa(Ta(d)+i),i=0,d=0),_.milliseconds=r%1e3,e=G(r/1e3),_.seconds=e%60,t=G(e/60),_.minutes=t%60,a=G(t/60),_.hours=a%24,i+=G(a/24),d+=s=G(ga(i)),i-=wa(Ta(s)),n=G(d/12),d%=12,_.days=i,_.months=d,_.years=n,this},Qa.clone=function(){return Jt(this)},Qa.get=function(e){return e=J(e),this.isValid()?this[e+"s"]():NaN},Qa.milliseconds=Fa,Qa.seconds=Ra,Qa.minutes=za,Qa.hours=Na,Qa.days=Ja,Qa.weeks=function(){return G(this.days()/7)},Qa.months=Ca,Qa.years=Ia,Qa.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var a,n,s=!1,r=Va;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(r=Object.assign({},Va,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=function(e,t,a,n){var s=Jt(e).abs(),r=Ua(s.as("s")),i=Ua(s.as("m")),d=Ua(s.as("h")),_=Ua(s.as("d")),o=Ua(s.as("M")),u=Ua(s.as("w")),m=Ua(s.as("y")),l=r<=a.ss&&["s",r]||r<a.s&&["ss",r]||i<=1&&["m"]||i<a.m&&["mm",i]||d<=1&&["h"]||d<a.h&&["hh",d]||_<=1&&["d"]||_<a.d&&["dd",_];return null!=a.w&&(l=l||u<=1&&["w"]||u<a.w&&["ww",u]),(l=l||o<=1&&["M"]||o<a.M&&["MM",o]||m<=1&&["y"]||["yy",m])[2]=t,l[3]=+e>0,l[4]=n,Ga.apply(null,l)}(this,!s,r,a=this.localeData()),s&&(n=a.pastFuture(+this,n)),a.postformat(n)},Qa.toISOString=Ka,Qa.toString=Ka,Qa.toJSON=Ka,Qa.locale=Xt,Qa.localeData=ea,Qa.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ka),Qa.lang=$t,A("X",0,0,"unix"),A("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e))}),fe("x",function(e,t,a){a._d=new Date(Z(e))}),s.version="2.29.1",t=Tt,s.fn=Ma,s.min=function(){return St("isBefore",[].slice.call(arguments,0))},s.max=function(){return St("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=h,s.unix=function(e){return Tt(1e3*e)},s.months=function(e,t){return fa(e,t,"months")},s.isDate=m,s.locale=it,s.invalid=Y,s.duration=Jt,s.isMoment=D,s.weekdays=function(e,t,a){return pa(e,t,a,"weekdays")},s.parseZone=function(){return Tt.apply(null,arguments).parseZone()},s.localeData=_t,s.isDuration=xt,s.monthsShort=function(e,t){return fa(e,t,"monthsShort")},s.weekdaysMin=function(e,t,a){return pa(e,t,a,"weekdaysMin")},s.defineLocale=dt,s.updateLocale=function(e,t){if(null!=t){var a,n,s=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(H(tt[e]._config,t)):(null!=(n=rt(e))&&(s=n._config),t=H(s,t),null==n&&(t.abbr=e),(a=new j(t)).parentLocale=tt[e],tt[e]=a),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},s.locales=function(){return T(tt)},s.weekdaysShort=function(e,t,a){return pa(e,t,a,"weekdaysShort")},s.normalizeUnits=J,s.relativeTimeRounding=function(e){return void 0===e?Ua:"function"==typeof e&&(Ua=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Va[e]&&(void 0===t?Va[e]:(Va[e]=t,"s"===e&&(Va.ss=t-1),!0))},s.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"},s.prototype=Ma,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,a("YuTi")(e))},x6pH:function(e,t,a){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,a){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?a?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?a?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(a("wd/R"))},yPMs:function(e,t,a){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,a){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},yZrb:function(t,n,s){"use strict";s.d(n,"a",function(){return D});var i,d,_,o,u,m,l=s("fXoL"),c=s("AytR"),h=s("aUJd"),M=s("tk/3"),L=((i=function(t){e(s,t);var n=a(s);function s(e){var t;return r(this,s),(t=n.call(this,e)).httpClient=e,t.resourceUrl="".concat(c.a.api,"/users"),t}return s}(h.a)).\u0275fac=function(e){return new(e||i)(l.Zb(M.b))},i.\u0275prov=l.Lb({token:i,factory:i.\u0275fac,providedIn:"root"}),i),Y=s("G7TF"),y=((m=function(t){e(s,t);var n=a(s);function s(e){var t;return r(this,s),(t=n.call(this,e)).httpClient=e,t.resourceUrl="".concat(c.a.api,"/roles"),t}return s}(h.a)).\u0275fac=function(e){return new(e||m)(l.Zb(M.b))},m.\u0275prov=l.Lb({token:m,factory:m.\u0275fac,providedIn:"root"}),m),f=((u=function(t){e(s,t);var n=a(s);function s(e){var t;return r(this,s),(t=n.call(this,e)).httpClient=e,t.resourceUrl="".concat(c.a.api,"/products"),t}return s}(h.a)).\u0275fac=function(e){return new(e||u)(l.Zb(M.b))},u.\u0275prov=l.Lb({token:u,factory:u.\u0275fac,providedIn:"root"}),u),p=((o=function(t){e(s,t);var n=a(s);function s(e){var t;return r(this,s),(t=n.call(this,e)).httpClient=e,t.resourceUrl="".concat(c.a.api,"/categories"),t}return s}(h.a)).\u0275fac=function(e){return new(e||o)(l.Zb(M.b))},o.\u0275prov=l.Lb({token:o,factory:o.\u0275fac,providedIn:"root"}),o),k=((_=function(t){e(s,t);var n=a(s);function s(e){var t;return r(this,s),(t=n.call(this,e)).httpClient=e,t.resourceUrl="".concat(c.a.api,"/goods"),t}return s}(h.a)).\u0275fac=function(e){return new(e||_)(l.Zb(M.b))},_.\u0275prov=l.Lb({token:_,factory:_.\u0275fac,providedIn:"root"}),_),D=((d=function e(t,a,n,s,i,d){var _=this;r(this,e),this.usersService=t,this.authService=a,this.rolesService=n,this.productsService=s,this.categoriesService=i,this.goodsService=d,this.users=function(){return _.usersService},this.auth=function(){return _.authService},this.roles=function(){return _.rolesService},this.products=function(){return _.productsService},this.categories=function(){return _.categoriesService},this.goods=function(){return _.goodsService}}).\u0275fac=function(e){return new(e||d)(l.Zb(L),l.Zb(Y.a),l.Zb(y),l.Zb(f),l.Zb(p),l.Zb(k))},d.\u0275prov=l.Lb({token:d,factory:d.\u0275fac,providedIn:"root"}),d)},z1FC:function(e,t,a){!function(e){"use strict";function t(e,t,a,n){var s={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?s[a][0]:s[a][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,a){return e>11?a?"d'o":"D'O":a?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},z3Vd:function(e,t,a){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function a(e,a,n,s){var r=function(e){var a=Math.floor(e%1e3/100),n=Math.floor(e%100/10),s=e%10,r="";return a>0&&(r+=t[a]+"vatlh"),n>0&&(r+=(""!==r?" ":"")+t[n]+"maH"),s>0&&(r+=(""!==r?" ":"")+t[s]),""===r?"pagh":r}(e);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:a,m:"wa\u2019 tup",mm:a,h:"wa\u2019 rep",hh:a,d:"wa\u2019 jaj",dd:a,M:"wa\u2019 jar",MM:a,y:"wa\u2019 DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(a("wd/R"))},zx6S:function(e,t,a){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,n){var s=t.words[n];return 1===n.length?a?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(a("wd/R"))}}])}();
|
import { setData } from '@progress/kendo-angular-intl';
setData({
name: "en-PH",
likelySubtags: {
en: "en-Latn-US"
},
identity: {
language: "en",
territory: "PH"
},
territory: "PH",
numbers: {
currencies: {
ADP: {
displayName: "Andorran Peseta",
"displayName-count-one": "Andorran peseta",
"displayName-count-other": "Andorran pesetas",
symbol: "ADP"
},
AED: {
displayName: "United Arab Emirates Dirham",
"displayName-count-one": "UAE dirham",
"displayName-count-other": "UAE dirhams",
symbol: "AED"
},
AFA: {
displayName: "Afghan Afghani (1927–2002)",
"displayName-count-one": "Afghan afghani (1927–2002)",
"displayName-count-other": "Afghan afghanis (1927–2002)",
symbol: "AFA"
},
AFN: {
displayName: "Afghan Afghani",
"displayName-count-one": "Afghan Afghani",
"displayName-count-other": "Afghan Afghanis",
symbol: "AFN"
},
ALK: {
displayName: "Albanian Lek (1946–1965)",
"displayName-count-one": "Albanian lek (1946–1965)",
"displayName-count-other": "Albanian lekë (1946–1965)",
symbol: "ALK"
},
ALL: {
displayName: "Albanian Lek",
"displayName-count-one": "Albanian lek",
"displayName-count-other": "Albanian lekë",
symbol: "ALL"
},
AMD: {
displayName: "Armenian Dram",
"displayName-count-one": "Armenian dram",
"displayName-count-other": "Armenian drams",
symbol: "AMD"
},
ANG: {
displayName: "Netherlands Antillean Guilder",
"displayName-count-one": "Netherlands Antillean guilder",
"displayName-count-other": "Netherlands Antillean guilders",
symbol: "ANG"
},
AOA: {
displayName: "Angolan Kwanza",
"displayName-count-one": "Angolan kwanza",
"displayName-count-other": "Angolan kwanzas",
symbol: "AOA",
"symbol-alt-narrow": "Kz"
},
AOK: {
displayName: "Angolan Kwanza (1977–1991)",
"displayName-count-one": "Angolan kwanza (1977–1991)",
"displayName-count-other": "Angolan kwanzas (1977–1991)",
symbol: "AOK"
},
AON: {
displayName: "Angolan New Kwanza (1990–2000)",
"displayName-count-one": "Angolan new kwanza (1990–2000)",
"displayName-count-other": "Angolan new kwanzas (1990–2000)",
symbol: "AON"
},
AOR: {
displayName: "Angolan Readjusted Kwanza (1995–1999)",
"displayName-count-one": "Angolan readjusted kwanza (1995–1999)",
"displayName-count-other": "Angolan readjusted kwanzas (1995–1999)",
symbol: "AOR"
},
ARA: {
displayName: "Argentine Austral",
"displayName-count-one": "Argentine austral",
"displayName-count-other": "Argentine australs",
symbol: "ARA"
},
ARL: {
displayName: "Argentine Peso Ley (1970–1983)",
"displayName-count-one": "Argentine peso ley (1970–1983)",
"displayName-count-other": "Argentine pesos ley (1970–1983)",
symbol: "ARL"
},
ARM: {
displayName: "Argentine Peso (1881–1970)",
"displayName-count-one": "Argentine peso (1881–1970)",
"displayName-count-other": "Argentine pesos (1881–1970)",
symbol: "ARM"
},
ARP: {
displayName: "Argentine Peso (1983–1985)",
"displayName-count-one": "Argentine peso (1983–1985)",
"displayName-count-other": "Argentine pesos (1983–1985)",
symbol: "ARP"
},
ARS: {
displayName: "Argentine Peso",
"displayName-count-one": "Argentine peso",
"displayName-count-other": "Argentine pesos",
symbol: "ARS",
"symbol-alt-narrow": "$"
},
ATS: {
displayName: "Austrian Schilling",
"displayName-count-one": "Austrian schilling",
"displayName-count-other": "Austrian schillings",
symbol: "ATS"
},
AUD: {
displayName: "Australian Dollar",
"displayName-count-one": "Australian dollar",
"displayName-count-other": "Australian dollars",
symbol: "A$",
"symbol-alt-narrow": "$"
},
AWG: {
displayName: "Aruban Florin",
"displayName-count-one": "Aruban florin",
"displayName-count-other": "Aruban florin",
symbol: "AWG"
},
AZM: {
displayName: "Azerbaijani Manat (1993–2006)",
"displayName-count-one": "Azerbaijani manat (1993–2006)",
"displayName-count-other": "Azerbaijani manats (1993–2006)",
symbol: "AZM"
},
AZN: {
displayName: "Azerbaijani Manat",
"displayName-count-one": "Azerbaijani manat",
"displayName-count-other": "Azerbaijani manats",
symbol: "AZN"
},
BAD: {
displayName: "Bosnia-Herzegovina Dinar (1992–1994)",
"displayName-count-one": "Bosnia-Herzegovina dinar (1992–1994)",
"displayName-count-other": "Bosnia-Herzegovina dinars (1992–1994)",
symbol: "BAD"
},
BAM: {
displayName: "Bosnia-Herzegovina Convertible Mark",
"displayName-count-one": "Bosnia-Herzegovina convertible mark",
"displayName-count-other": "Bosnia-Herzegovina convertible marks",
symbol: "BAM",
"symbol-alt-narrow": "KM"
},
BAN: {
displayName: "Bosnia-Herzegovina New Dinar (1994–1997)",
"displayName-count-one": "Bosnia-Herzegovina new dinar (1994–1997)",
"displayName-count-other": "Bosnia-Herzegovina new dinars (1994–1997)",
symbol: "BAN"
},
BBD: {
displayName: "Barbadian Dollar",
"displayName-count-one": "Barbadian dollar",
"displayName-count-other": "Barbadian dollars",
symbol: "BBD",
"symbol-alt-narrow": "$"
},
BDT: {
displayName: "Bangladeshi Taka",
"displayName-count-one": "Bangladeshi taka",
"displayName-count-other": "Bangladeshi takas",
symbol: "BDT",
"symbol-alt-narrow": "৳"
},
BEC: {
displayName: "Belgian Franc (convertible)",
"displayName-count-one": "Belgian franc (convertible)",
"displayName-count-other": "Belgian francs (convertible)",
symbol: "BEC"
},
BEF: {
displayName: "Belgian Franc",
"displayName-count-one": "Belgian franc",
"displayName-count-other": "Belgian francs",
symbol: "BEF"
},
BEL: {
displayName: "Belgian Franc (financial)",
"displayName-count-one": "Belgian franc (financial)",
"displayName-count-other": "Belgian francs (financial)",
symbol: "BEL"
},
BGL: {
displayName: "Bulgarian Hard Lev",
"displayName-count-one": "Bulgarian hard lev",
"displayName-count-other": "Bulgarian hard leva",
symbol: "BGL"
},
BGM: {
displayName: "Bulgarian Socialist Lev",
"displayName-count-one": "Bulgarian socialist lev",
"displayName-count-other": "Bulgarian socialist leva",
symbol: "BGM"
},
BGN: {
displayName: "Bulgarian Lev",
"displayName-count-one": "Bulgarian lev",
"displayName-count-other": "Bulgarian leva",
symbol: "BGN"
},
BGO: {
displayName: "Bulgarian Lev (1879–1952)",
"displayName-count-one": "Bulgarian lev (1879–1952)",
"displayName-count-other": "Bulgarian leva (1879–1952)",
symbol: "BGO"
},
BHD: {
displayName: "Bahraini Dinar",
"displayName-count-one": "Bahraini dinar",
"displayName-count-other": "Bahraini dinars",
symbol: "BHD"
},
BIF: {
displayName: "Burundian Franc",
"displayName-count-one": "Burundian franc",
"displayName-count-other": "Burundian francs",
symbol: "BIF"
},
BMD: {
displayName: "Bermudan Dollar",
"displayName-count-one": "Bermudan dollar",
"displayName-count-other": "Bermudan dollars",
symbol: "BMD",
"symbol-alt-narrow": "$"
},
BND: {
displayName: "Brunei Dollar",
"displayName-count-one": "Brunei dollar",
"displayName-count-other": "Brunei dollars",
symbol: "BND",
"symbol-alt-narrow": "$"
},
BOB: {
displayName: "Bolivian Boliviano",
"displayName-count-one": "Bolivian boliviano",
"displayName-count-other": "Bolivian bolivianos",
symbol: "BOB",
"symbol-alt-narrow": "Bs"
},
BOL: {
displayName: "Bolivian Boliviano (1863–1963)",
"displayName-count-one": "Bolivian boliviano (1863–1963)",
"displayName-count-other": "Bolivian bolivianos (1863–1963)",
symbol: "BOL"
},
BOP: {
displayName: "Bolivian Peso",
"displayName-count-one": "Bolivian peso",
"displayName-count-other": "Bolivian pesos",
symbol: "BOP"
},
BOV: {
displayName: "Bolivian Mvdol",
"displayName-count-one": "Bolivian mvdol",
"displayName-count-other": "Bolivian mvdols",
symbol: "BOV"
},
BRB: {
displayName: "Brazilian New Cruzeiro (1967–1986)",
"displayName-count-one": "Brazilian new cruzeiro (1967–1986)",
"displayName-count-other": "Brazilian new cruzeiros (1967–1986)",
symbol: "BRB"
},
BRC: {
displayName: "Brazilian Cruzado (1986–1989)",
"displayName-count-one": "Brazilian cruzado (1986–1989)",
"displayName-count-other": "Brazilian cruzados (1986–1989)",
symbol: "BRC"
},
BRE: {
displayName: "Brazilian Cruzeiro (1990–1993)",
"displayName-count-one": "Brazilian cruzeiro (1990–1993)",
"displayName-count-other": "Brazilian cruzeiros (1990–1993)",
symbol: "BRE"
},
BRL: {
displayName: "Brazilian Real",
"displayName-count-one": "Brazilian real",
"displayName-count-other": "Brazilian reals",
symbol: "R$",
"symbol-alt-narrow": "R$"
},
BRN: {
displayName: "Brazilian New Cruzado (1989–1990)",
"displayName-count-one": "Brazilian new cruzado (1989–1990)",
"displayName-count-other": "Brazilian new cruzados (1989–1990)",
symbol: "BRN"
},
BRR: {
displayName: "Brazilian Cruzeiro (1993–1994)",
"displayName-count-one": "Brazilian cruzeiro (1993–1994)",
"displayName-count-other": "Brazilian cruzeiros (1993–1994)",
symbol: "BRR"
},
BRZ: {
displayName: "Brazilian Cruzeiro (1942–1967)",
"displayName-count-one": "Brazilian cruzeiro (1942–1967)",
"displayName-count-other": "Brazilian cruzeiros (1942–1967)",
symbol: "BRZ"
},
BSD: {
displayName: "Bahamian Dollar",
"displayName-count-one": "Bahamian dollar",
"displayName-count-other": "Bahamian dollars",
symbol: "BSD",
"symbol-alt-narrow": "$"
},
BTN: {
displayName: "Bhutanese Ngultrum",
"displayName-count-one": "Bhutanese ngultrum",
"displayName-count-other": "Bhutanese ngultrums",
symbol: "BTN"
},
BUK: {
displayName: "Burmese Kyat",
"displayName-count-one": "Burmese kyat",
"displayName-count-other": "Burmese kyats",
symbol: "BUK"
},
BWP: {
displayName: "Botswanan Pula",
"displayName-count-one": "Botswanan pula",
"displayName-count-other": "Botswanan pulas",
symbol: "BWP",
"symbol-alt-narrow": "P"
},
BYB: {
displayName: "Belarusian New Rouble (1994–1999)",
"displayName-count-one": "Belarusian new rouble (1994–1999)",
"displayName-count-other": "Belarusian new roubles (1994–1999)",
symbol: "BYB"
},
BYN: {
displayName: "Belarusian Rouble",
"displayName-count-one": "Belarusian rouble",
"displayName-count-other": "Belarusian roubles",
symbol: "BYN",
"symbol-alt-narrow": "р."
},
BYR: {
displayName: "Belarusian Rouble (2000–2016)",
"displayName-count-one": "Belarusian rouble (2000–2016)",
"displayName-count-other": "Belarusian roubles (2000–2016)",
symbol: "BYR"
},
BZD: {
displayName: "Belize Dollar",
"displayName-count-one": "Belize dollar",
"displayName-count-other": "Belize dollars",
symbol: "BZD",
"symbol-alt-narrow": "$"
},
CAD: {
displayName: "Canadian Dollar",
"displayName-count-one": "Canadian dollar",
"displayName-count-other": "Canadian dollars",
symbol: "CA$",
"symbol-alt-narrow": "$"
},
CDF: {
displayName: "Congolese Franc",
"displayName-count-one": "Congolese franc",
"displayName-count-other": "Congolese francs",
symbol: "CDF"
},
CHE: {
displayName: "WIR Euro",
"displayName-count-one": "WIR euro",
"displayName-count-other": "WIR euros",
symbol: "CHE"
},
CHF: {
displayName: "Swiss Franc",
"displayName-count-one": "Swiss franc",
"displayName-count-other": "Swiss francs",
symbol: "CHF"
},
CHW: {
displayName: "WIR Franc",
"displayName-count-one": "WIR franc",
"displayName-count-other": "WIR francs",
symbol: "CHW"
},
CLE: {
displayName: "Chilean Escudo",
"displayName-count-one": "Chilean escudo",
"displayName-count-other": "Chilean escudos",
symbol: "CLE"
},
CLF: {
displayName: "Chilean Unit of Account (UF)",
"displayName-count-one": "Chilean unit of account (UF)",
"displayName-count-other": "Chilean units of account (UF)",
symbol: "CLF"
},
CLP: {
displayName: "Chilean Peso",
"displayName-count-one": "Chilean peso",
"displayName-count-other": "Chilean pesos",
symbol: "CLP",
"symbol-alt-narrow": "$"
},
CNH: {
displayName: "Chinese Yuan (offshore)",
"displayName-count-one": "Chinese yuan (offshore)",
"displayName-count-other": "Chinese yuan (offshore)",
symbol: "CNH"
},
CNX: {
displayName: "Chinese People’s Bank Dollar",
"displayName-count-one": "Chinese People’s Bank dollar",
"displayName-count-other": "Chinese People’s Bank dollars",
symbol: "CNX"
},
CNY: {
displayName: "Chinese Yuan",
"displayName-count-one": "Chinese yuan",
"displayName-count-other": "Chinese yuan",
symbol: "CN¥",
"symbol-alt-narrow": "¥"
},
COP: {
displayName: "Colombian Peso",
"displayName-count-one": "Colombian peso",
"displayName-count-other": "Colombian pesos",
symbol: "COP",
"symbol-alt-narrow": "$"
},
COU: {
displayName: "Colombian Real Value Unit",
"displayName-count-one": "Colombian real value unit",
"displayName-count-other": "Colombian real value units",
symbol: "COU"
},
CRC: {
displayName: "Costa Rican Colón",
"displayName-count-one": "Costa Rican colón",
"displayName-count-other": "Costa Rican colóns",
symbol: "CRC",
"symbol-alt-narrow": "₡"
},
CSD: {
displayName: "Serbian Dinar (2002–2006)",
"displayName-count-one": "Serbian dinar (2002–2006)",
"displayName-count-other": "Serbian dinars (2002–2006)",
symbol: "CSD"
},
CSK: {
displayName: "Czechoslovak Hard Koruna",
"displayName-count-one": "Czechoslovak hard koruna",
"displayName-count-other": "Czechoslovak hard korunas",
symbol: "CSK"
},
CUC: {
displayName: "Cuban Convertible Peso",
"displayName-count-one": "Cuban convertible peso",
"displayName-count-other": "Cuban convertible pesos",
symbol: "CUC",
"symbol-alt-narrow": "$"
},
CUP: {
displayName: "Cuban Peso",
"displayName-count-one": "Cuban peso",
"displayName-count-other": "Cuban pesos",
symbol: "CUP",
"symbol-alt-narrow": "$"
},
CVE: {
displayName: "Cape Verdean Escudo",
"displayName-count-one": "Cape Verdean escudo",
"displayName-count-other": "Cape Verdean escudos",
symbol: "CVE"
},
CYP: {
displayName: "Cypriot Pound",
"displayName-count-one": "Cypriot pound",
"displayName-count-other": "Cypriot pounds",
symbol: "CYP"
},
CZK: {
displayName: "Czech Koruna",
"displayName-count-one": "Czech koruna",
"displayName-count-other": "Czech korunas",
symbol: "CZK",
"symbol-alt-narrow": "Kč"
},
DDM: {
displayName: "East German Mark",
"displayName-count-one": "East German mark",
"displayName-count-other": "East German marks",
symbol: "DDM"
},
DEM: {
displayName: "German Mark",
"displayName-count-one": "German mark",
"displayName-count-other": "German marks",
symbol: "DEM"
},
DJF: {
displayName: "Djiboutian Franc",
"displayName-count-one": "Djiboutian franc",
"displayName-count-other": "Djiboutian francs",
symbol: "DJF"
},
DKK: {
displayName: "Danish Krone",
"displayName-count-one": "Danish krone",
"displayName-count-other": "Danish kroner",
symbol: "DKK",
"symbol-alt-narrow": "kr"
},
DOP: {
displayName: "Dominican Peso",
"displayName-count-one": "Dominican peso",
"displayName-count-other": "Dominican pesos",
symbol: "DOP",
"symbol-alt-narrow": "$"
},
DZD: {
displayName: "Algerian Dinar",
"displayName-count-one": "Algerian dinar",
"displayName-count-other": "Algerian dinars",
symbol: "DZD"
},
ECS: {
displayName: "Ecuadorian Sucre",
"displayName-count-one": "Ecuadorian sucre",
"displayName-count-other": "Ecuadorian sucres",
symbol: "ECS"
},
ECV: {
displayName: "Ecuadorian Unit of Constant Value",
"displayName-count-one": "Ecuadorian unit of constant value",
"displayName-count-other": "Ecuadorian units of constant value",
symbol: "ECV"
},
EEK: {
displayName: "Estonian Kroon",
"displayName-count-one": "Estonian kroon",
"displayName-count-other": "Estonian kroons",
symbol: "EEK"
},
EGP: {
displayName: "Egyptian Pound",
"displayName-count-one": "Egyptian pound",
"displayName-count-other": "Egyptian pounds",
symbol: "EGP",
"symbol-alt-narrow": "E£"
},
ERN: {
displayName: "Eritrean Nakfa",
"displayName-count-one": "Eritrean nakfa",
"displayName-count-other": "Eritrean nakfas",
symbol: "ERN"
},
ESA: {
displayName: "Spanish Peseta (A account)",
"displayName-count-one": "Spanish peseta (A account)",
"displayName-count-other": "Spanish pesetas (A account)",
symbol: "ESA"
},
ESB: {
displayName: "Spanish Peseta (convertible account)",
"displayName-count-one": "Spanish peseta (convertible account)",
"displayName-count-other": "Spanish pesetas (convertible account)",
symbol: "ESB"
},
ESP: {
displayName: "Spanish Peseta",
"displayName-count-one": "Spanish peseta",
"displayName-count-other": "Spanish pesetas",
symbol: "ESP",
"symbol-alt-narrow": "₧"
},
ETB: {
displayName: "Ethiopian Birr",
"displayName-count-one": "Ethiopian birr",
"displayName-count-other": "Ethiopian birrs",
symbol: "ETB"
},
EUR: {
displayName: "Euro",
"displayName-count-one": "euro",
"displayName-count-other": "euros",
symbol: "€",
"symbol-alt-narrow": "€"
},
FIM: {
displayName: "Finnish Markka",
"displayName-count-one": "Finnish markka",
"displayName-count-other": "Finnish markkas",
symbol: "FIM"
},
FJD: {
displayName: "Fijian Dollar",
"displayName-count-one": "Fijian dollar",
"displayName-count-other": "Fijian dollars",
symbol: "FJD",
"symbol-alt-narrow": "$"
},
FKP: {
displayName: "Falkland Islands Pound",
"displayName-count-one": "Falkland Islands pound",
"displayName-count-other": "Falkland Islands pounds",
symbol: "FKP",
"symbol-alt-narrow": "£"
},
FRF: {
displayName: "French Franc",
"displayName-count-one": "French franc",
"displayName-count-other": "French francs",
symbol: "FRF"
},
GBP: {
displayName: "British Pound",
"displayName-count-one": "British pound",
"displayName-count-other": "British pounds",
symbol: "£",
"symbol-alt-narrow": "£"
},
GEK: {
displayName: "Georgian Kupon Larit",
"displayName-count-one": "Georgian kupon larit",
"displayName-count-other": "Georgian kupon larits",
symbol: "GEK"
},
GEL: {
displayName: "Georgian Lari",
"displayName-count-one": "Georgian lari",
"displayName-count-other": "Georgian laris",
symbol: "GEL",
"symbol-alt-narrow": "₾"
},
GHC: {
displayName: "Ghanaian Cedi (1979–2007)",
"displayName-count-one": "Ghanaian cedi (1979–2007)",
"displayName-count-other": "Ghanaian cedis (1979–2007)",
symbol: "GHC"
},
GHS: {
displayName: "Ghanaian Cedi",
"displayName-count-one": "Ghanaian cedi",
"displayName-count-other": "Ghanaian cedis",
symbol: "GHS"
},
GIP: {
displayName: "Gibraltar Pound",
"displayName-count-one": "Gibraltar pound",
"displayName-count-other": "Gibraltar pounds",
symbol: "GIP",
"symbol-alt-narrow": "£"
},
GMD: {
displayName: "Gambian Dalasi",
"displayName-count-one": "Gambian dalasi",
"displayName-count-other": "Gambian dalasis",
symbol: "GMD"
},
GNF: {
displayName: "Guinean Franc",
"displayName-count-one": "Guinean franc",
"displayName-count-other": "Guinean francs",
symbol: "GNF",
"symbol-alt-narrow": "FG"
},
GNS: {
displayName: "Guinean Syli",
"displayName-count-one": "Guinean syli",
"displayName-count-other": "Guinean sylis",
symbol: "GNS"
},
GQE: {
displayName: "Equatorial Guinean Ekwele",
"displayName-count-one": "Equatorial Guinean ekwele",
"displayName-count-other": "Equatorial Guinean ekwele",
symbol: "GQE"
},
GRD: {
displayName: "Greek Drachma",
"displayName-count-one": "Greek drachma",
"displayName-count-other": "Greek drachmas",
symbol: "GRD"
},
GTQ: {
displayName: "Guatemalan Quetzal",
"displayName-count-one": "Guatemalan quetzal",
"displayName-count-other": "Guatemalan quetzals",
symbol: "GTQ",
"symbol-alt-narrow": "Q"
},
GWE: {
displayName: "Portuguese Guinea Escudo",
"displayName-count-one": "Portuguese Guinea escudo",
"displayName-count-other": "Portuguese Guinea escudos",
symbol: "GWE"
},
GWP: {
displayName: "Guinea-Bissau Peso",
"displayName-count-one": "Guinea-Bissau peso",
"displayName-count-other": "Guinea-Bissau pesos",
symbol: "GWP"
},
GYD: {
displayName: "Guyanaese Dollar",
"displayName-count-one": "Guyanaese dollar",
"displayName-count-other": "Guyanaese dollars",
symbol: "GYD",
"symbol-alt-narrow": "$"
},
HKD: {
displayName: "Hong Kong Dollar",
"displayName-count-one": "Hong Kong dollar",
"displayName-count-other": "Hong Kong dollars",
symbol: "HK$",
"symbol-alt-narrow": "$"
},
HNL: {
displayName: "Honduran Lempira",
"displayName-count-one": "Honduran lempira",
"displayName-count-other": "Honduran lempiras",
symbol: "HNL",
"symbol-alt-narrow": "L"
},
HRD: {
displayName: "Croatian Dinar",
"displayName-count-one": "Croatian dinar",
"displayName-count-other": "Croatian dinars",
symbol: "HRD"
},
HRK: {
displayName: "Croatian Kuna",
"displayName-count-one": "Croatian kuna",
"displayName-count-other": "Croatian kunas",
symbol: "HRK",
"symbol-alt-narrow": "kn"
},
HTG: {
displayName: "Haitian Gourde",
"displayName-count-one": "Haitian gourde",
"displayName-count-other": "Haitian gourdes",
symbol: "HTG"
},
HUF: {
displayName: "Hungarian Forint",
"displayName-count-one": "Hungarian forint",
"displayName-count-other": "Hungarian forints",
symbol: "HUF",
"symbol-alt-narrow": "Ft"
},
IDR: {
displayName: "Indonesian Rupiah",
"displayName-count-one": "Indonesian rupiah",
"displayName-count-other": "Indonesian rupiahs",
symbol: "IDR",
"symbol-alt-narrow": "Rp"
},
IEP: {
displayName: "Irish Pound",
"displayName-count-one": "Irish pound",
"displayName-count-other": "Irish pounds",
symbol: "IEP"
},
ILP: {
displayName: "Israeli Pound",
"displayName-count-one": "Israeli pound",
"displayName-count-other": "Israeli pounds",
symbol: "ILP"
},
ILR: {
displayName: "Israeli Shekel (1980–1985)",
"displayName-count-one": "Israeli shekel (1980–1985)",
"displayName-count-other": "Israeli shekels (1980–1985)",
symbol: "ILR"
},
ILS: {
displayName: "Israeli New Shekel",
"displayName-count-one": "Israeli new shekel",
"displayName-count-other": "Israeli new shekels",
symbol: "₪",
"symbol-alt-narrow": "₪"
},
INR: {
displayName: "Indian Rupee",
"displayName-count-one": "Indian rupee",
"displayName-count-other": "Indian rupees",
symbol: "₹",
"symbol-alt-narrow": "₹"
},
IQD: {
displayName: "Iraqi Dinar",
"displayName-count-one": "Iraqi dinar",
"displayName-count-other": "Iraqi dinars",
symbol: "IQD"
},
IRR: {
displayName: "Iranian Rial",
"displayName-count-one": "Iranian rial",
"displayName-count-other": "Iranian rials",
symbol: "IRR"
},
ISJ: {
displayName: "Icelandic Króna (1918–1981)",
"displayName-count-one": "Icelandic króna (1918–1981)",
"displayName-count-other": "Icelandic krónur (1918–1981)",
symbol: "ISJ"
},
ISK: {
displayName: "Icelandic Króna",
"displayName-count-one": "Icelandic króna",
"displayName-count-other": "Icelandic krónur",
symbol: "ISK",
"symbol-alt-narrow": "kr"
},
ITL: {
displayName: "Italian Lira",
"displayName-count-one": "Italian lira",
"displayName-count-other": "Italian liras",
symbol: "ITL"
},
JMD: {
displayName: "Jamaican Dollar",
"displayName-count-one": "Jamaican dollar",
"displayName-count-other": "Jamaican dollars",
symbol: "JMD",
"symbol-alt-narrow": "$"
},
JOD: {
displayName: "Jordanian Dinar",
"displayName-count-one": "Jordanian dinar",
"displayName-count-other": "Jordanian dinars",
symbol: "JOD"
},
JPY: {
displayName: "Japanese Yen",
"displayName-count-one": "Japanese yen",
"displayName-count-other": "Japanese yen",
symbol: "JP¥",
"symbol-alt-narrow": "¥"
},
KES: {
displayName: "Kenyan Shilling",
"displayName-count-one": "Kenyan shilling",
"displayName-count-other": "Kenyan shillings",
symbol: "KES"
},
KGS: {
displayName: "Kyrgystani Som",
"displayName-count-one": "Kyrgystani som",
"displayName-count-other": "Kyrgystani soms",
symbol: "KGS"
},
KHR: {
displayName: "Cambodian Riel",
"displayName-count-one": "Cambodian riel",
"displayName-count-other": "Cambodian riels",
symbol: "KHR",
"symbol-alt-narrow": "៛"
},
KMF: {
displayName: "Comorian Franc",
"displayName-count-one": "Comorian franc",
"displayName-count-other": "Comorian francs",
symbol: "KMF",
"symbol-alt-narrow": "CF"
},
KPW: {
displayName: "North Korean Won",
"displayName-count-one": "North Korean won",
"displayName-count-other": "North Korean won",
symbol: "KPW",
"symbol-alt-narrow": "₩"
},
KRH: {
displayName: "South Korean Hwan (1953–1962)",
"displayName-count-one": "South Korean hwan (1953–1962)",
"displayName-count-other": "South Korean hwan (1953–1962)",
symbol: "KRH"
},
KRO: {
displayName: "South Korean Won (1945–1953)",
"displayName-count-one": "South Korean won (1945–1953)",
"displayName-count-other": "South Korean won (1945–1953)",
symbol: "KRO"
},
KRW: {
displayName: "South Korean Won",
"displayName-count-one": "South Korean won",
"displayName-count-other": "South Korean won",
symbol: "₩",
"symbol-alt-narrow": "₩"
},
KWD: {
displayName: "Kuwaiti Dinar",
"displayName-count-one": "Kuwaiti dinar",
"displayName-count-other": "Kuwaiti dinars",
symbol: "KWD"
},
KYD: {
displayName: "Cayman Islands Dollar",
"displayName-count-one": "Cayman Islands dollar",
"displayName-count-other": "Cayman Islands dollars",
symbol: "KYD",
"symbol-alt-narrow": "$"
},
KZT: {
displayName: "Kazakhstani Tenge",
"displayName-count-one": "Kazakhstani tenge",
"displayName-count-other": "Kazakhstani tenges",
symbol: "KZT",
"symbol-alt-narrow": "₸"
},
LAK: {
displayName: "Laotian Kip",
"displayName-count-one": "Laotian kip",
"displayName-count-other": "Laotian kips",
symbol: "LAK",
"symbol-alt-narrow": "₭"
},
LBP: {
displayName: "Lebanese Pound",
"displayName-count-one": "Lebanese pound",
"displayName-count-other": "Lebanese pounds",
symbol: "LBP",
"symbol-alt-narrow": "L£"
},
LKR: {
displayName: "Sri Lankan Rupee",
"displayName-count-one": "Sri Lankan rupee",
"displayName-count-other": "Sri Lankan rupees",
symbol: "LKR",
"symbol-alt-narrow": "Rs"
},
LRD: {
displayName: "Liberian Dollar",
"displayName-count-one": "Liberian dollar",
"displayName-count-other": "Liberian dollars",
symbol: "LRD",
"symbol-alt-narrow": "$"
},
LSL: {
displayName: "Lesotho Loti",
"displayName-count-one": "Lesotho loti",
"displayName-count-other": "Lesotho lotis",
symbol: "LSL"
},
LTL: {
displayName: "Lithuanian Litas",
"displayName-count-one": "Lithuanian litas",
"displayName-count-other": "Lithuanian litai",
symbol: "LTL",
"symbol-alt-narrow": "Lt"
},
LTT: {
displayName: "Lithuanian Talonas",
"displayName-count-one": "Lithuanian talonas",
"displayName-count-other": "Lithuanian talonases",
symbol: "LTT"
},
LUC: {
displayName: "Luxembourgian Convertible Franc",
"displayName-count-one": "Luxembourgian convertible franc",
"displayName-count-other": "Luxembourgian convertible francs",
symbol: "LUC"
},
LUF: {
displayName: "Luxembourgian Franc",
"displayName-count-one": "Luxembourgian franc",
"displayName-count-other": "Luxembourgian francs",
symbol: "LUF"
},
LUL: {
displayName: "Luxembourg Financial Franc",
"displayName-count-one": "Luxembourg financial franc",
"displayName-count-other": "Luxembourg financial francs",
symbol: "LUL"
},
LVL: {
displayName: "Latvian Lats",
"displayName-count-one": "Latvian lats",
"displayName-count-other": "Latvian lati",
symbol: "LVL",
"symbol-alt-narrow": "Ls"
},
LVR: {
displayName: "Latvian Rouble",
"displayName-count-one": "Latvian rouble",
"displayName-count-other": "Latvian roubles",
symbol: "LVR"
},
LYD: {
displayName: "Libyan Dinar",
"displayName-count-one": "Libyan dinar",
"displayName-count-other": "Libyan dinars",
symbol: "LYD"
},
MAD: {
displayName: "Moroccan Dirham",
"displayName-count-one": "Moroccan dirham",
"displayName-count-other": "Moroccan dirhams",
symbol: "MAD"
},
MAF: {
displayName: "Moroccan Franc",
"displayName-count-one": "Moroccan franc",
"displayName-count-other": "Moroccan francs",
symbol: "MAF"
},
MCF: {
displayName: "Monegasque Franc",
"displayName-count-one": "Monegasque franc",
"displayName-count-other": "Monegasque francs",
symbol: "MCF"
},
MDC: {
displayName: "Moldovan Cupon",
"displayName-count-one": "Moldovan cupon",
"displayName-count-other": "Moldovan cupon",
symbol: "MDC"
},
MDL: {
displayName: "Moldovan Leu",
"displayName-count-one": "Moldovan leu",
"displayName-count-other": "Moldovan lei",
symbol: "MDL"
},
MGA: {
displayName: "Malagasy Ariary",
"displayName-count-one": "Malagasy ariary",
"displayName-count-other": "Malagasy ariaries",
symbol: "MGA",
"symbol-alt-narrow": "Ar"
},
MGF: {
displayName: "Malagasy Franc",
"displayName-count-one": "Malagasy franc",
"displayName-count-other": "Malagasy francs",
symbol: "MGF"
},
MKD: {
displayName: "Macedonian Denar",
"displayName-count-one": "Macedonian denar",
"displayName-count-other": "Macedonian denari",
symbol: "MKD"
},
MKN: {
displayName: "Macedonian Denar (1992–1993)",
"displayName-count-one": "Macedonian denar (1992–1993)",
"displayName-count-other": "Macedonian denari (1992–1993)",
symbol: "MKN"
},
MLF: {
displayName: "Malian Franc",
"displayName-count-one": "Malian franc",
"displayName-count-other": "Malian francs",
symbol: "MLF"
},
MMK: {
displayName: "Myanmar Kyat",
"displayName-count-one": "Myanmar kyat",
"displayName-count-other": "Myanmar kyats",
symbol: "MMK",
"symbol-alt-narrow": "K"
},
MNT: {
displayName: "Mongolian Tugrik",
"displayName-count-one": "Mongolian tugrik",
"displayName-count-other": "Mongolian tugriks",
symbol: "MNT",
"symbol-alt-narrow": "₮"
},
MOP: {
displayName: "Macanese Pataca",
"displayName-count-one": "Macanese pataca",
"displayName-count-other": "Macanese patacas",
symbol: "MOP"
},
MRO: {
displayName: "Mauritanian Ouguiya",
"displayName-count-one": "Mauritanian ouguiya",
"displayName-count-other": "Mauritanian ouguiyas",
symbol: "MRO"
},
MTL: {
displayName: "Maltese Lira",
"displayName-count-one": "Maltese lira",
"displayName-count-other": "Maltese lira",
symbol: "MTL"
},
MTP: {
displayName: "Maltese Pound",
"displayName-count-one": "Maltese pound",
"displayName-count-other": "Maltese pounds",
symbol: "MTP"
},
MUR: {
displayName: "Mauritian Rupee",
"displayName-count-one": "Mauritian rupee",
"displayName-count-other": "Mauritian rupees",
symbol: "MUR",
"symbol-alt-narrow": "Rs"
},
MVP: {
displayName: "Maldivian Rupee (1947–1981)",
"displayName-count-one": "Maldivian rupee (1947–1981)",
"displayName-count-other": "Maldivian rupees (1947–1981)",
symbol: "MVP"
},
MVR: {
displayName: "Maldivian Rufiyaa",
"displayName-count-one": "Maldivian rufiyaa",
"displayName-count-other": "Maldivian rufiyaas",
symbol: "MVR"
},
MWK: {
displayName: "Malawian Kwacha",
"displayName-count-one": "Malawian kwacha",
"displayName-count-other": "Malawian kwachas",
symbol: "MWK"
},
MXN: {
displayName: "Mexican Peso",
"displayName-count-one": "Mexican peso",
"displayName-count-other": "Mexican pesos",
symbol: "MX$",
"symbol-alt-narrow": "$"
},
MXP: {
displayName: "Mexican Silver Peso (1861–1992)",
"displayName-count-one": "Mexican silver peso (1861–1992)",
"displayName-count-other": "Mexican silver pesos (1861–1992)",
symbol: "MXP"
},
MXV: {
displayName: "Mexican Investment Unit",
"displayName-count-one": "Mexican investment unit",
"displayName-count-other": "Mexican investment units",
symbol: "MXV"
},
MYR: {
displayName: "Malaysian Ringgit",
"displayName-count-one": "Malaysian ringgit",
"displayName-count-other": "Malaysian ringgits",
symbol: "MYR",
"symbol-alt-narrow": "RM"
},
MZE: {
displayName: "Mozambican Escudo",
"displayName-count-one": "Mozambican escudo",
"displayName-count-other": "Mozambican escudos",
symbol: "MZE"
},
MZM: {
displayName: "Mozambican Metical (1980–2006)",
"displayName-count-one": "Mozambican metical (1980–2006)",
"displayName-count-other": "Mozambican meticals (1980–2006)",
symbol: "MZM"
},
MZN: {
displayName: "Mozambican Metical",
"displayName-count-one": "Mozambican metical",
"displayName-count-other": "Mozambican meticals",
symbol: "MZN"
},
NAD: {
displayName: "Namibian Dollar",
"displayName-count-one": "Namibian dollar",
"displayName-count-other": "Namibian dollars",
symbol: "NAD",
"symbol-alt-narrow": "$"
},
NGN: {
displayName: "Nigerian Naira",
"displayName-count-one": "Nigerian naira",
"displayName-count-other": "Nigerian nairas",
symbol: "NGN",
"symbol-alt-narrow": "₦"
},
NIC: {
displayName: "Nicaraguan Córdoba (1988–1991)",
"displayName-count-one": "Nicaraguan córdoba (1988–1991)",
"displayName-count-other": "Nicaraguan córdobas (1988–1991)",
symbol: "NIC"
},
NIO: {
displayName: "Nicaraguan Córdoba",
"displayName-count-one": "Nicaraguan córdoba",
"displayName-count-other": "Nicaraguan córdobas",
symbol: "NIO",
"symbol-alt-narrow": "C$"
},
NLG: {
displayName: "Dutch Guilder",
"displayName-count-one": "Dutch guilder",
"displayName-count-other": "Dutch guilders",
symbol: "NLG"
},
NOK: {
displayName: "Norwegian Krone",
"displayName-count-one": "Norwegian krone",
"displayName-count-other": "Norwegian kroner",
symbol: "NOK",
"symbol-alt-narrow": "kr"
},
NPR: {
displayName: "Nepalese Rupee",
"displayName-count-one": "Nepalese rupee",
"displayName-count-other": "Nepalese rupees",
symbol: "NPR",
"symbol-alt-narrow": "Rs"
},
NZD: {
displayName: "New Zealand Dollar",
"displayName-count-one": "New Zealand dollar",
"displayName-count-other": "New Zealand dollars",
symbol: "NZ$",
"symbol-alt-narrow": "$"
},
OMR: {
displayName: "Omani Rial",
"displayName-count-one": "Omani rial",
"displayName-count-other": "Omani rials",
symbol: "OMR"
},
PAB: {
displayName: "Panamanian Balboa",
"displayName-count-one": "Panamanian balboa",
"displayName-count-other": "Panamanian balboas",
symbol: "PAB"
},
PEI: {
displayName: "Peruvian Inti",
"displayName-count-one": "Peruvian inti",
"displayName-count-other": "Peruvian intis",
symbol: "PEI"
},
PEN: {
displayName: "Peruvian Sol",
"displayName-count-one": "Peruvian sol",
"displayName-count-other": "Peruvian soles",
symbol: "PEN"
},
PES: {
displayName: "Peruvian Sol (1863–1965)",
"displayName-count-one": "Peruvian sol (1863–1965)",
"displayName-count-other": "Peruvian soles (1863–1965)",
symbol: "PES"
},
PGK: {
displayName: "Papua New Guinean Kina",
"displayName-count-one": "Papua New Guinean kina",
"displayName-count-other": "Papua New Guinean kina",
symbol: "PGK"
},
PHP: {
displayName: "Philippine Piso",
"displayName-count-one": "Philippine piso",
"displayName-count-other": "Philippine pisos",
symbol: "₱",
"symbol-alt-narrow": "₱"
},
PKR: {
displayName: "Pakistani Rupee",
"displayName-count-one": "Pakistani rupee",
"displayName-count-other": "Pakistani rupees",
symbol: "PKR",
"symbol-alt-narrow": "Rs"
},
PLN: {
displayName: "Polish Zloty",
"displayName-count-one": "Polish zloty",
"displayName-count-other": "Polish zlotys",
symbol: "PLN",
"symbol-alt-narrow": "zł"
},
PLZ: {
displayName: "Polish Zloty (1950–1995)",
"displayName-count-one": "Polish zloty (PLZ)",
"displayName-count-other": "Polish zlotys (PLZ)",
symbol: "PLZ"
},
PTE: {
displayName: "Portuguese Escudo",
"displayName-count-one": "Portuguese escudo",
"displayName-count-other": "Portuguese escudos",
symbol: "PTE"
},
PYG: {
displayName: "Paraguayan Guarani",
"displayName-count-one": "Paraguayan guarani",
"displayName-count-other": "Paraguayan guaranis",
symbol: "PYG",
"symbol-alt-narrow": "₲"
},
QAR: {
displayName: "Qatari Rial",
"displayName-count-one": "Qatari rial",
"displayName-count-other": "Qatari rials",
symbol: "QAR"
},
RHD: {
displayName: "Rhodesian Dollar",
"displayName-count-one": "Rhodesian dollar",
"displayName-count-other": "Rhodesian dollars",
symbol: "RHD"
},
ROL: {
displayName: "Romanian Leu (1952–2006)",
"displayName-count-one": "Romanian leu (1952–2006)",
"displayName-count-other": "Romanian Lei (1952–2006)",
symbol: "ROL"
},
RON: {
displayName: "Romanian Leu",
"displayName-count-one": "Romanian leu",
"displayName-count-other": "Romanian lei",
symbol: "RON",
"symbol-alt-narrow": "lei"
},
RSD: {
displayName: "Serbian Dinar",
"displayName-count-one": "Serbian dinar",
"displayName-count-other": "Serbian dinars",
symbol: "RSD"
},
RUB: {
displayName: "Russian Rouble",
"displayName-count-one": "Russian rouble",
"displayName-count-other": "Russian roubles",
symbol: "RUB",
"symbol-alt-narrow": "₽"
},
RUR: {
displayName: "Russian Rouble (1991–1998)",
"displayName-count-one": "Russian rouble (1991–1998)",
"displayName-count-other": "Russian roubles (1991–1998)",
symbol: "RUR",
"symbol-alt-narrow": "р."
},
RWF: {
displayName: "Rwandan Franc",
"displayName-count-one": "Rwandan franc",
"displayName-count-other": "Rwandan francs",
symbol: "RWF",
"symbol-alt-narrow": "RF"
},
SAR: {
displayName: "Saudi Riyal",
"displayName-count-one": "Saudi riyal",
"displayName-count-other": "Saudi riyals",
symbol: "SAR"
},
SBD: {
displayName: "Solomon Islands Dollar",
"displayName-count-one": "Solomon Islands dollar",
"displayName-count-other": "Solomon Islands dollars",
symbol: "SBD",
"symbol-alt-narrow": "$"
},
SCR: {
displayName: "Seychellois Rupee",
"displayName-count-one": "Seychellois rupee",
"displayName-count-other": "Seychellois rupees",
symbol: "SCR"
},
SDD: {
displayName: "Sudanese Dinar (1992–2007)",
"displayName-count-one": "Sudanese dinar (1992–2007)",
"displayName-count-other": "Sudanese dinars (1992–2007)",
symbol: "SDD"
},
SDG: {
displayName: "Sudanese Pound",
"displayName-count-one": "Sudanese pound",
"displayName-count-other": "Sudanese pounds",
symbol: "SDG"
},
SDP: {
displayName: "Sudanese Pound (1957–1998)",
"displayName-count-one": "Sudanese pound (1957–1998)",
"displayName-count-other": "Sudanese pounds (1957–1998)",
symbol: "SDP"
},
SEK: {
displayName: "Swedish Krona",
"displayName-count-one": "Swedish krona",
"displayName-count-other": "Swedish kronor",
symbol: "SEK",
"symbol-alt-narrow": "kr"
},
SGD: {
displayName: "Singapore Dollar",
"displayName-count-one": "Singapore dollar",
"displayName-count-other": "Singapore dollars",
symbol: "SGD",
"symbol-alt-narrow": "$"
},
SHP: {
displayName: "St. Helena Pound",
"displayName-count-one": "St. Helena pound",
"displayName-count-other": "St. Helena pounds",
symbol: "SHP",
"symbol-alt-narrow": "£"
},
SIT: {
displayName: "Slovenian Tolar",
"displayName-count-one": "Slovenian tolar",
"displayName-count-other": "Slovenian tolars",
symbol: "SIT"
},
SKK: {
displayName: "Slovak Koruna",
"displayName-count-one": "Slovak koruna",
"displayName-count-other": "Slovak korunas",
symbol: "SKK"
},
SLL: {
displayName: "Sierra Leonean Leone",
"displayName-count-one": "Sierra Leonean leone",
"displayName-count-other": "Sierra Leonean leones",
symbol: "SLL"
},
SOS: {
displayName: "Somali Shilling",
"displayName-count-one": "Somali shilling",
"displayName-count-other": "Somali shillings",
symbol: "SOS"
},
SRD: {
displayName: "Surinamese Dollar",
"displayName-count-one": "Surinamese dollar",
"displayName-count-other": "Surinamese dollars",
symbol: "SRD",
"symbol-alt-narrow": "$"
},
SRG: {
displayName: "Surinamese Guilder",
"displayName-count-one": "Surinamese guilder",
"displayName-count-other": "Surinamese guilders",
symbol: "SRG"
},
SSP: {
displayName: "South Sudanese Pound",
"displayName-count-one": "South Sudanese pound",
"displayName-count-other": "South Sudanese pounds",
symbol: "SSP",
"symbol-alt-narrow": "£"
},
STD: {
displayName: "São Tomé & Príncipe Dobra",
"displayName-count-one": "São Tomé & Príncipe dobra",
"displayName-count-other": "São Tomé & Príncipe dobras",
symbol: "STD",
"symbol-alt-narrow": "Db"
},
STN: {
displayName: "São Tomé & Príncipe Dobra (2018)",
"displayName-count-one": "São Tomé & Príncipe dobra (2018)",
"displayName-count-other": "São Tomé & Príncipe dobras (2018)",
symbol: "STN"
},
SUR: {
displayName: "Soviet Rouble",
"displayName-count-one": "Soviet rouble",
"displayName-count-other": "Soviet roubles",
symbol: "SUR"
},
SVC: {
displayName: "Salvadoran Colón",
"displayName-count-one": "Salvadoran colón",
"displayName-count-other": "Salvadoran colones",
symbol: "SVC"
},
SYP: {
displayName: "Syrian Pound",
"displayName-count-one": "Syrian pound",
"displayName-count-other": "Syrian pounds",
symbol: "SYP",
"symbol-alt-narrow": "£"
},
SZL: {
displayName: "Swazi Lilangeni",
"displayName-count-one": "Swazi lilangeni",
"displayName-count-other": "Swazi emalangeni",
symbol: "SZL"
},
THB: {
displayName: "Thai Baht",
"displayName-count-one": "Thai baht",
"displayName-count-other": "Thai baht",
symbol: "THB",
"symbol-alt-narrow": "฿"
},
TJR: {
displayName: "Tajikistani Rouble",
"displayName-count-one": "Tajikistani rouble",
"displayName-count-other": "Tajikistani roubles",
symbol: "TJR"
},
TJS: {
displayName: "Tajikistani Somoni",
"displayName-count-one": "Tajikistani somoni",
"displayName-count-other": "Tajikistani somonis",
symbol: "TJS"
},
TMM: {
displayName: "Turkmenistani Manat (1993–2009)",
"displayName-count-one": "Turkmenistani manat (1993–2009)",
"displayName-count-other": "Turkmenistani manat (1993–2009)",
symbol: "TMM"
},
TMT: {
displayName: "Turkmenistani Manat",
"displayName-count-one": "Turkmenistani manat",
"displayName-count-other": "Turkmenistani manat",
symbol: "TMT"
},
TND: {
displayName: "Tunisian Dinar",
"displayName-count-one": "Tunisian dinar",
"displayName-count-other": "Tunisian dinars",
symbol: "TND"
},
TOP: {
displayName: "Tongan Paʻanga",
"displayName-count-one": "Tongan paʻanga",
"displayName-count-other": "Tongan paʻanga",
symbol: "TOP",
"symbol-alt-narrow": "T$"
},
TPE: {
displayName: "Timorese Escudo",
"displayName-count-one": "Timorese escudo",
"displayName-count-other": "Timorese escudos",
symbol: "TPE"
},
TRL: {
displayName: "Turkish Lira (1922–2005)",
"displayName-count-one": "Turkish lira (1922–2005)",
"displayName-count-other": "Turkish Lira (1922–2005)",
symbol: "TRL"
},
TRY: {
displayName: "Turkish Lira",
"displayName-count-one": "Turkish lira",
"displayName-count-other": "Turkish Lira",
symbol: "TRY",
"symbol-alt-narrow": "₺",
"symbol-alt-variant": "TL"
},
TTD: {
displayName: "Trinidad & Tobago Dollar",
"displayName-count-one": "Trinidad & Tobago dollar",
"displayName-count-other": "Trinidad & Tobago dollars",
symbol: "TTD",
"symbol-alt-narrow": "$"
},
TWD: {
displayName: "New Taiwan Dollar",
"displayName-count-one": "New Taiwan dollar",
"displayName-count-other": "New Taiwan dollars",
symbol: "NT$",
"symbol-alt-narrow": "$"
},
TZS: {
displayName: "Tanzanian Shilling",
"displayName-count-one": "Tanzanian shilling",
"displayName-count-other": "Tanzanian shillings",
symbol: "TZS"
},
UAH: {
displayName: "Ukrainian Hryvnia",
"displayName-count-one": "Ukrainian hryvnia",
"displayName-count-other": "Ukrainian hryvnias",
symbol: "UAH",
"symbol-alt-narrow": "₴"
},
UAK: {
displayName: "Ukrainian Karbovanets",
"displayName-count-one": "Ukrainian karbovanets",
"displayName-count-other": "Ukrainian karbovantsiv",
symbol: "UAK"
},
UGS: {
displayName: "Ugandan Shilling (1966–1987)",
"displayName-count-one": "Ugandan shilling (1966–1987)",
"displayName-count-other": "Ugandan shillings (1966–1987)",
symbol: "UGS"
},
UGX: {
displayName: "Ugandan Shilling",
"displayName-count-one": "Ugandan shilling",
"displayName-count-other": "Ugandan shillings",
symbol: "UGX"
},
USD: {
displayName: "US Dollar",
"displayName-count-one": "US dollar",
"displayName-count-other": "US dollars",
symbol: "US$",
"symbol-alt-narrow": "$"
},
USN: {
displayName: "US Dollar (Next day)",
"displayName-count-one": "US dollar (next day)",
"displayName-count-other": "US dollars (next day)",
symbol: "USN"
},
USS: {
displayName: "US Dollar (Same day)",
"displayName-count-one": "US dollar (same day)",
"displayName-count-other": "US dollars (same day)",
symbol: "USS"
},
UYI: {
displayName: "Uruguayan Peso (Indexed Units)",
"displayName-count-one": "Uruguayan peso (indexed units)",
"displayName-count-other": "Uruguayan pesos (indexed units)",
symbol: "UYI"
},
UYP: {
displayName: "Uruguayan Peso (1975–1993)",
"displayName-count-one": "Uruguayan peso (1975–1993)",
"displayName-count-other": "Uruguayan pesos (1975–1993)",
symbol: "UYP"
},
UYU: {
displayName: "Uruguayan Peso",
"displayName-count-one": "Uruguayan peso",
"displayName-count-other": "Uruguayan pesos",
symbol: "UYU",
"symbol-alt-narrow": "$"
},
UZS: {
displayName: "Uzbekistani Som",
"displayName-count-one": "Uzbekistani som",
"displayName-count-other": "Uzbekistani som",
symbol: "UZS"
},
VEB: {
displayName: "Venezuelan Bolívar (1871–2008)",
"displayName-count-one": "Venezuelan bolívar (1871–2008)",
"displayName-count-other": "Venezuelan bolívars (1871–2008)",
symbol: "VEB"
},
VEF: {
displayName: "Venezuelan Bolívar",
"displayName-count-one": "Venezuelan bolívar",
"displayName-count-other": "Venezuelan bolívars",
symbol: "VEF",
"symbol-alt-narrow": "Bs"
},
VND: {
displayName: "Vietnamese Dong",
"displayName-count-one": "Vietnamese dong",
"displayName-count-other": "Vietnamese dong",
symbol: "₫",
"symbol-alt-narrow": "₫"
},
VNN: {
displayName: "Vietnamese Dong (1978–1985)",
"displayName-count-one": "Vietnamese dong (1978–1985)",
"displayName-count-other": "Vietnamese dong (1978–1985)",
symbol: "VNN"
},
VUV: {
displayName: "Vanuatu Vatu",
"displayName-count-one": "Vanuatu vatu",
"displayName-count-other": "Vanuatu vatus",
symbol: "VUV"
},
WST: {
displayName: "Samoan Tala",
"displayName-count-one": "Samoan tala",
"displayName-count-other": "Samoan tala",
symbol: "WST"
},
XAF: {
displayName: "Central African CFA Franc",
"displayName-count-one": "Central African CFA franc",
"displayName-count-other": "Central African CFA francs",
symbol: "FCFA"
},
XAG: {
displayName: "Silver",
"displayName-count-one": "troy ounce of silver",
"displayName-count-other": "troy ounces of silver",
symbol: "XAG"
},
XAU: {
displayName: "Gold",
"displayName-count-one": "troy ounce of gold",
"displayName-count-other": "troy ounces of gold",
symbol: "XAU"
},
XBA: {
displayName: "European Composite Unit",
"displayName-count-one": "European composite unit",
"displayName-count-other": "European composite units",
symbol: "XBA"
},
XBB: {
displayName: "European Monetary Unit",
"displayName-count-one": "European monetary unit",
"displayName-count-other": "European monetary units",
symbol: "XBB"
},
XBC: {
displayName: "European Unit of Account (XBC)",
"displayName-count-one": "European unit of account (XBC)",
"displayName-count-other": "European units of account (XBC)",
symbol: "XBC"
},
XBD: {
displayName: "European Unit of Account (XBD)",
"displayName-count-one": "European unit of account (XBD)",
"displayName-count-other": "European units of account (XBD)",
symbol: "XBD"
},
XCD: {
displayName: "East Caribbean Dollar",
"displayName-count-one": "East Caribbean dollar",
"displayName-count-other": "East Caribbean dollars",
symbol: "EC$",
"symbol-alt-narrow": "$"
},
XDR: {
displayName: "Special Drawing Rights",
"displayName-count-one": "special drawing rights",
"displayName-count-other": "special drawing rights",
symbol: "XDR"
},
XEU: {
displayName: "European Currency Unit",
"displayName-count-one": "European currency unit",
"displayName-count-other": "European currency units",
symbol: "XEU"
},
XFO: {
displayName: "French Gold Franc",
"displayName-count-one": "French gold franc",
"displayName-count-other": "French gold francs",
symbol: "XFO"
},
XFU: {
displayName: "French UIC-Franc",
"displayName-count-one": "French UIC-franc",
"displayName-count-other": "French UIC-francs",
symbol: "XFU"
},
XOF: {
displayName: "West African CFA Franc",
"displayName-count-one": "West African CFA franc",
"displayName-count-other": "West African CFA francs",
symbol: "CFA"
},
XPD: {
displayName: "Palladium",
"displayName-count-one": "troy ounce of palladium",
"displayName-count-other": "troy ounces of palladium",
symbol: "XPD"
},
XPF: {
displayName: "CFP Franc",
"displayName-count-one": "CFP franc",
"displayName-count-other": "CFP francs",
symbol: "CFPF"
},
XPT: {
displayName: "Platinum",
"displayName-count-one": "troy ounce of platinum",
"displayName-count-other": "troy ounces of platinum",
symbol: "XPT"
},
XRE: {
displayName: "RINET Funds",
"displayName-count-one": "RINET Funds unit",
"displayName-count-other": "RINET Funds units",
symbol: "XRE"
},
XSU: {
displayName: "Sucre",
"displayName-count-one": "Sucre",
"displayName-count-other": "Sucres",
symbol: "XSU"
},
XTS: {
displayName: "Testing Currency Code",
"displayName-count-one": "Testing Currency unit",
"displayName-count-other": "Testing Currency units",
symbol: "XTS"
},
XUA: {
displayName: "ADB Unit of Account",
"displayName-count-one": "ADB unit of account",
"displayName-count-other": "ADB units of account",
symbol: "XUA"
},
XXX: {
displayName: "Unknown Currency",
"displayName-count-one": "(unknown unit of currency)",
"displayName-count-other": "(unknown currency)",
symbol: "XXX"
},
YDD: {
displayName: "Yemeni Dinar",
"displayName-count-one": "Yemeni dinar",
"displayName-count-other": "Yemeni dinars",
symbol: "YDD"
},
YER: {
displayName: "Yemeni Rial",
"displayName-count-one": "Yemeni rial",
"displayName-count-other": "Yemeni rials",
symbol: "YER"
},
YUD: {
displayName: "Yugoslavian Hard Dinar (1966–1990)",
"displayName-count-one": "Yugoslavian hard dinar (1966–1990)",
"displayName-count-other": "Yugoslavian hard dinars (1966–1990)",
symbol: "YUD"
},
YUM: {
displayName: "Yugoslavian New Dinar (1994–2002)",
"displayName-count-one": "Yugoslavian new dinar (1994–2002)",
"displayName-count-other": "Yugoslavian new dinars (1994–2002)",
symbol: "YUM"
},
YUN: {
displayName: "Yugoslavian Convertible Dinar (1990–1992)",
"displayName-count-one": "Yugoslavian convertible dinar (1990–1992)",
"displayName-count-other": "Yugoslavian convertible dinars (1990–1992)",
symbol: "YUN"
},
YUR: {
displayName: "Yugoslavian Reformed Dinar (1992–1993)",
"displayName-count-one": "Yugoslavian reformed dinar (1992–1993)",
"displayName-count-other": "Yugoslavian reformed dinars (1992–1993)",
symbol: "YUR"
},
ZAL: {
displayName: "South African Rand (financial)",
"displayName-count-one": "South African rand (financial)",
"displayName-count-other": "South African rands (financial)",
symbol: "ZAL"
},
ZAR: {
displayName: "South African Rand",
"displayName-count-one": "South African rand",
"displayName-count-other": "South African rand",
symbol: "ZAR",
"symbol-alt-narrow": "R"
},
ZMK: {
displayName: "Zambian Kwacha (1968–2012)",
"displayName-count-one": "Zambian kwacha (1968–2012)",
"displayName-count-other": "Zambian kwachas (1968–2012)",
symbol: "ZMK"
},
ZMW: {
displayName: "Zambian Kwacha",
"displayName-count-one": "Zambian kwacha",
"displayName-count-other": "Zambian kwachas",
symbol: "ZMW",
"symbol-alt-narrow": "ZK"
},
ZRN: {
displayName: "Zairean New Zaire (1993–1998)",
"displayName-count-one": "Zairean new zaire (1993–1998)",
"displayName-count-other": "Zairean new zaires (1993–1998)",
symbol: "ZRN"
},
ZRZ: {
displayName: "Zairean Zaire (1971–1993)",
"displayName-count-one": "Zairean zaire (1971–1993)",
"displayName-count-other": "Zairean zaires (1971–1993)",
symbol: "ZRZ"
},
ZWD: {
displayName: "Zimbabwean Dollar (1980–2008)",
"displayName-count-one": "Zimbabwean dollar (1980–2008)",
"displayName-count-other": "Zimbabwean dollars (1980–2008)",
symbol: "ZWD"
},
ZWL: {
displayName: "Zimbabwean Dollar (2009)",
"displayName-count-one": "Zimbabwean dollar (2009)",
"displayName-count-other": "Zimbabwean dollars (2009)",
symbol: "ZWL"
},
ZWR: {
displayName: "Zimbabwean Dollar (2008)",
"displayName-count-one": "Zimbabwean dollar (2008)",
"displayName-count-other": "Zimbabwean dollars (2008)",
symbol: "ZWR"
}
},
localeCurrency: "PHP"
}
});
|
module.exports = require('./createUniqueConstraintOnNode');
|
/*
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { ChangeDetectorRef, Directive, Optional } from '@angular/core';
import { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';
import { ExpandableRowsCount } from '../providers/global-expandable-rows';
import { DatagridWillyWonka } from './datagrid-willy-wonka';
export class ExpandableOompaLoompa extends OompaLoompa {
constructor(cdr, willyWonka, expandableCount) {
if (!willyWonka) {
throw new Error('clr-dg-row should only be used inside of a clr-datagrid');
}
super(cdr, willyWonka);
this.expandableCount = expandableCount;
}
get flavor() {
return this.expandableCount.hasExpandableRow;
}
}
ExpandableOompaLoompa.decorators = [
{ type: Directive, args: [{ selector: 'clr-datagrid, clr-dg-row' },] }
];
ExpandableOompaLoompa.ctorParameters = () => [
{ type: ChangeDetectorRef },
{ type: DatagridWillyWonka, decorators: [{ type: Optional }] },
{ type: ExpandableRowsCount }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwYW5kYWJsZS1vb21wYS1sb29tcGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyL3NyYy9kYXRhL2RhdGFncmlkL2Nob2NvbGF0ZS9leHBhbmRhYmxlLW9vbXBhLWxvb21wYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7OztHQUlHO0FBQ0gsT0FBTyxFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzFFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRzVELE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxXQUFXO0lBR3BELFlBQ0UsR0FBc0IsRUFDVixVQUE4QixFQUMxQyxlQUFvQztRQUVwQyxJQUFJLENBQUMsVUFBVSxFQUFFO1lBQ2YsTUFBTSxJQUFJLEtBQUssQ0FBQyx5REFBeUQsQ0FBQyxDQUFDO1NBQzVFO1FBQ0QsS0FBSyxDQUFDLEdBQUcsRUFBRSxVQUFVLENBQUMsQ0FBQztRQUN2QixJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQztJQUN6QyxDQUFDO0lBRUQsSUFBSSxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLGdCQUFnQixDQUFDO0lBQy9DLENBQUM7OztZQWxCRixTQUFTLFNBQUMsRUFBRSxRQUFRLEVBQUUsMEJBQTBCLEVBQUU7OztZQUwxQyxpQkFBaUI7WUFHakIsa0JBQWtCLHVCQVF0QixRQUFRO1lBVEosbUJBQW1CIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAoYykgMjAxNi0yMDIxIFZNd2FyZSwgSW5jLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICogVGhpcyBzb2Z0d2FyZSBpcyByZWxlYXNlZCB1bmRlciBNSVQgbGljZW5zZS5cbiAqIFRoZSBmdWxsIGxpY2Vuc2UgaW5mb3JtYXRpb24gY2FuIGJlIGZvdW5kIGluIExJQ0VOU0UgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgcHJvamVjdC5cbiAqL1xuaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0b3JSZWYsIERpcmVjdGl2ZSwgT3B0aW9uYWwgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE9vbXBhTG9vbXBhIH0gZnJvbSAnLi4vLi4vLi4vdXRpbHMvY2hvY29sYXRlL29vbXBhLWxvb21wYSc7XG5pbXBvcnQgeyBFeHBhbmRhYmxlUm93c0NvdW50IH0gZnJvbSAnLi4vcHJvdmlkZXJzL2dsb2JhbC1leHBhbmRhYmxlLXJvd3MnO1xuaW1wb3J0IHsgRGF0YWdyaWRXaWxseVdvbmthIH0gZnJvbSAnLi9kYXRhZ3JpZC13aWxseS13b25rYSc7XG5cbkBEaXJlY3RpdmUoeyBzZWxlY3RvcjogJ2Nsci1kYXRhZ3JpZCwgY2xyLWRnLXJvdycgfSlcbmV4cG9ydCBjbGFzcyBFeHBhbmRhYmxlT29tcGFMb29tcGEgZXh0ZW5kcyBPb21wYUxvb21wYSB7XG4gIHByaXZhdGUgZXhwYW5kYWJsZUNvdW50OiBFeHBhbmRhYmxlUm93c0NvdW50O1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIGNkcjogQ2hhbmdlRGV0ZWN0b3JSZWYsXG4gICAgQE9wdGlvbmFsKCkgd2lsbHlXb25rYTogRGF0YWdyaWRXaWxseVdvbmthLFxuICAgIGV4cGFuZGFibGVDb3VudDogRXhwYW5kYWJsZVJvd3NDb3VudFxuICApIHtcbiAgICBpZiAoIXdpbGx5V29ua2EpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignY2xyLWRnLXJvdyBzaG91bGQgb25seSBiZSB1c2VkIGluc2lkZSBvZiBhIGNsci1kYXRhZ3JpZCcpO1xuICAgIH1cbiAgICBzdXBlcihjZHIsIHdpbGx5V29ua2EpO1xuICAgIHRoaXMuZXhwYW5kYWJsZUNvdW50ID0gZXhwYW5kYWJsZUNvdW50O1xuICB9XG5cbiAgZ2V0IGZsYXZvcigpIHtcbiAgICByZXR1cm4gdGhpcy5leHBhbmRhYmxlQ291bnQuaGFzRXhwYW5kYWJsZVJvdztcbiAgfVxufVxuIl19
|
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.control');
goog.require('ol.expr');
goog.require('ol.layer.Vector');
goog.require('ol.parser.GeoJSON');
goog.require('ol.proj');
goog.require('ol.source.Vector');
goog.require('ol.style.Fill');
goog.require('ol.style.Rule');
goog.require('ol.style.Shape');
goog.require('ol.style.Stroke');
goog.require('ol.style.Style');
goog.require('ol.style.Text');
var style = new ol.style.Style({rules: [
new ol.style.Rule({
filter: 'where == "outer"',
symbolizers: [
new ol.style.Stroke({
color: ol.expr.parse('color'),
width: 4,
opacity: 1
})
]
}),
new ol.style.Rule({
filter: 'where == "inner"',
symbolizers: [
new ol.style.Stroke({
color: '#013',
width: 4,
opacity: 1
}),
new ol.style.Stroke({
color: ol.expr.parse('color'),
width: 2,
opacity: 1
})
]
}),
new ol.style.Rule({
filter: 'geometryType("point")',
symbolizers: [
new ol.style.Shape({
size: 40,
fill: new ol.style.Fill({color: '#013'})
}),
new ol.style.Text({
color: '#bada55',
text: ol.expr.parse('label'),
fontFamily: 'Calibri,sans-serif',
fontSize: 14
})
]
})
]});
var vector = new ol.layer.Vector({
style: style,
source: new ol.source.Vector({
data: {
'type': 'FeatureCollection',
'features': [{
'type': 'Feature',
'properties': {
'color': '#BADA55',
'where': 'inner'
},
'geometry': {
'type': 'LineString',
'coordinates': [[-10000000, -10000000], [10000000, 10000000]]
}
}, {
'type': 'Feature',
'properties': {
'color': '#BADA55',
'where': 'inner'
},
'geometry': {
'type': 'LineString',
'coordinates': [[-10000000, 10000000], [10000000, -10000000]]
}
}, {
'type': 'Feature',
'properties': {
'color': '#013',
'where': 'outer'
},
'geometry': {
'type': 'LineString',
'coordinates': [[-10000000, -10000000], [-10000000, 10000000]]
}
}, {
'type': 'Feature',
'properties': {
'color': '#013',
'where': 'outer'
},
'geometry': {
'type': 'LineString',
'coordinates': [[-10000000, 10000000], [10000000, 10000000]]
}
}, {
'type': 'Feature',
'properties': {
'color': '#013',
'where': 'outer'
},
'geometry': {
'type': 'LineString',
'coordinates': [[10000000, 10000000], [10000000, -10000000]]
}
}, {
'type': 'Feature',
'properties': {
'color': '#013',
'where': 'outer'
},
'geometry': {
'type': 'LineString',
'coordinates': [[10000000, -10000000], [-10000000, -10000000]]
}
}, {
'type': 'Feature',
'properties': {
'label': 'South'
},
'geometry': {
'type': 'Point',
'coordinates': [0, -6000000]
}
}, {
'type': 'Feature',
'properties': {
'label': 'West'
},
'geometry': {
'type': 'Point',
'coordinates': [-6000000, 0]
}
}, {
'type': 'Feature',
'properties': {
'label': 'North'
},
'geometry': {
'type': 'Point',
'coordinates': [0, 6000000]
}
}, {
'type': 'Feature',
'properties': {
'label': 'East'
},
'geometry': {
'type': 'Point',
'coordinates': [6000000, 0]
}
}]
},
parser: new ol.parser.GeoJSON(),
projection: ol.proj.get('EPSG:3857')
})
});
var map = new ol.Map({
layers: [vector],
controls: ol.control.defaults({
attribution: false
}),
renderer: ol.RendererHint.CANVAS,
target: 'map',
view: new ol.View2D({
center: [0, 0],
zoom: 1
})
});
|
import { graphql } from 'gatsby'
import ContentPage from '../../components/ContentPage'
export default ContentPage
export const query = graphql`
query {
pages: allMarkdownRemark(
filter: { fields: { source: { eq: "sdk/android" } } }
sort: { fields: [fields___prefix] }
) {
edges {
node {
fields {
slug
prefix
}
frontmatter {
title
categories
}
}
}
}
hero: markdownRemark(fileAbsolutePath: { regex: "/content/parts/hero/" }) {
html
}
footerLinks: markdownRemark(
fileAbsolutePath: { regex: "/content/parts/footerLinks/" }
) {
html
}
copyright: markdownRemark(
fileAbsolutePath: { regex: "/content/parts/copyright/" }
) {
html
}
}
`
|
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ([
/* 0 */,
/* 1 */
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
/***/ })
/******/ ]);
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(__webpack_module_cache__[moduleId]) {
/******/ return __webpack_module_cache__[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _b_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
})();
/******/ })()
;
|
export default {
namespaced: true,
state: {
loading: false
},
getters: {
loading (state) {
return state.loading
}
},
mutations: {
toggleLoading (state, payload) {
state.loading = payload
}
},
actions: {}
}
|
var __testDataSource={items:[]};
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EDependencies = void 0;
var _dependenciesEGenerated = require("./dependenciesE.generated.js");
var _factoriesAny = require("../../factoriesAny.js");
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
var EDependencies = {
eDependencies: _dependenciesEGenerated.eDependencies,
createUppercaseE: _factoriesAny.createUppercaseE
};
exports.EDependencies = EDependencies;
|
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
var $ = require('./$')
, has = require('./$.has')
, $export = require('./$.export')
, isObject = require('./$.is-object')
, anObject = require('./$.an-object');
function get(target, propertyKey/*, receiver*/) {
var receiver = arguments.length < 3 ? target : arguments[2]
, desc, proto;
if (anObject(target) === receiver) return target[propertyKey];
if (desc = $.getDesc(target, propertyKey)) return has(desc, 'value')
? desc.value
: desc.get !== undefined
? desc.get.call(receiver)
: undefined;
if (isObject(proto = $.getProto(target))) return get(proto, propertyKey, receiver);
}
$export($export.S, 'Reflect', {get: get});
|
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {
toTitle,
UNSELECTABLE_ATTRIBUTE, UNSELECTABLE_STYLE,
} from '../../util';
class Selection extends React.Component {
static propTypes = {
disableCloseTag: PropTypes.bool,
editable: PropTypes.bool,
prefixCls: PropTypes.string,
iconPrefix: PropTypes.string,
maxTagTextLength: PropTypes.number,
tagWidth: PropTypes.number,
onRemove: PropTypes.func,
label: PropTypes.node,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
onRemove = (event) => {
event.stopPropagation();
event.preventDefault();
const { onRemove, value } = this.props;
onRemove(event, value);
};
render() {
const {
prefixCls, maxTagTextLength,
label, value, tagWidth,
disableCloseTag, iconPrefix
} = this.props;
let content = label || value;
if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
content = `${content.slice(0, maxTagTextLength)}...`;
}
let tagStyle = Object.assign({
width: tagWidth + 'px'
}, UNSELECTABLE_STYLE);
const removeCls = classNames({
[`${prefixCls}-selection__choice__remove`]: true,
[`${iconPrefix}-close-modal-line`]: true,
[`${prefixCls}-selection__choice__remove__disabled`]: disableCloseTag
});
return (
<li
style={tagStyle}
{...UNSELECTABLE_ATTRIBUTE}
role="menuitem"
className={`${prefixCls}-selection__choice`}
title={toTitle(label)}
>
<span
className={removeCls}
onMouseDown={disableCloseTag ? null : this.onRemove}
/>
<span className={`${prefixCls}-selection__choice__content`}>
{content}
</span>
</li>
);
}
}
export default Selection;
|
var data = {
"body": "<path d=\"M18.5 5A1.5 1.5 0 1 1 17 6.5A1.5 1.5 0 0 1 18.5 5m0 6a1.5 1.5 0 1 1-1.5 1.5a1.5 1.5 0 0 1 1.5-1.5M10 4a5 5 0 0 0-5 5v1a2 2 0 1 0 2.18-2A3 3 0 0 1 10 6a4 4 0 0 1 4 4c0 3.59-2.23 6.19-7 8.2l.76 1.84C13.31 17.72 16 14.43 16 10a6 6 0 0 0-6-6z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data;
|
/**
* Created by maurobuselli@gmail.com
*/
(function(){
'use strict';
angular.module('AngularPanelsApp.pages.form')
.controller('datepickerCtrl', datepickerCtrl);
/** @ngInject */
function datepickerCtrl($scope) {
$scope.dt = new Date();
$scope.options = {
showWeeks: false
};
}
})();
|
/*
Copyright (C) 2019 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import loCapitalize from 'lodash/capitalize';
import canStache from 'can-stache';
import canMap from 'can-map';
import canComponent from 'can-component';
import template from './templates/feedback-link.stache';
const viewModel = canMap.extend({
define: {
link: {
get() {
return GGRC.config.CREATE_ISSUE_URL;
},
},
title: {
get() {
return loCapitalize(GGRC.config.CREATE_ISSUE_BUTTON_NAME) ||
'Feedback';
},
},
},
});
export default canComponent.extend({
tag: 'feedback-link',
view: canStache(template),
leakScope: true,
viewModel,
});
|
const connect = require('./connect.js');
const colors = require('colors/safe');
const execQuery = "SELECT * FROM File WHERE ecm:mixinType != 'HiddenInNavigation' " +
" AND ecm:isProxy = 0 AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted' " +
" AND dc:description != 'updated' ";
const queryPageSize = connect.Config.get('pageSize');
console.log(colors.yellow('Executing query...'));
connect.primary.operation('Repository.Query')
.params({
query: execQuery,
language: 'NXQL',
pageSize: queryPageSize,
})
.execute()
.then((doc) => {
console.log(colors.green(`Found ${doc.resultsCount} record(s).`));
})
.catch((error) => {
console.log(colors.red(`Error executing query: ${error}`));
});
|
/*==================================================
* Platform Utility Functions and Constants
*==================================================
*/
Timeline.Platform.os = {
isMac: false,
isWin: false,
isWin32: false,
isUnix: false
};
Timeline.Platform.browser = {
isIE: false,
isNetscape: false,
isMozilla: false,
isFirefox: false,
isOpera: false,
isSafari: false,
majorVersion: 0,
minorVersion: 0
};
(function() {
var an = navigator.appName.toLowerCase();
var ua = navigator.userAgent.toLowerCase();
/*
* Operating system
*/
Timeline.Platform.os.isMac = (ua.indexOf('mac') != -1);
Timeline.Platform.os.isWin = (ua.indexOf('win') != -1);
Timeline.Platform.os.isWin32 = Timeline.Platform.isWin && (
ua.indexOf('95') != -1 ||
ua.indexOf('98') != -1 ||
ua.indexOf('nt') != -1 ||
ua.indexOf('win32') != -1 ||
ua.indexOf('32bit') != -1
);
Timeline.Platform.os.isUnix = (ua.indexOf('x11') != -1);
/*
* Browser
*/
Timeline.Platform.browser.isIE = (an.indexOf("microsoft") != -1);
Timeline.Platform.browser.isNetscape = (an.indexOf("netscape") != -1);
Timeline.Platform.browser.isMozilla = (ua.indexOf("mozilla") != -1);
Timeline.Platform.browser.isFirefox = (ua.indexOf("firefox") != -1);
Timeline.Platform.browser.isOpera = (an.indexOf("opera") != -1);
//Timeline.Platform.browser.isSafari = (an.indexOf("safari") != -1);
var parseVersionString = function(s) {
var a = s.split(".");
Timeline.Platform.browser.majorVersion = parseInt(a[0]);
Timeline.Platform.browser.minorVersion = parseInt(a[1]);
};
var indexOf = function(s, sub, start) {
var i = s.indexOf(sub, start);
return i >= 0 ? i : s.length;
};
if (Timeline.Platform.browser.isMozilla) {
var offset = ua.indexOf("mozilla/");
if (offset >= 0) {
parseVersionString(ua.substring(offset + 8, indexOf(ua, " ", offset)));
}
}
if (Timeline.Platform.browser.isIE) {
var offset = ua.indexOf("msie ");
if (offset >= 0) {
parseVersionString(ua.substring(offset + 5, indexOf(ua, ";", offset)));
}
}
if (Timeline.Platform.browser.isNetscape) {
var offset = ua.indexOf("rv:");
if (offset >= 0) {
parseVersionString(ua.substring(offset + 3, indexOf(ua, ")", offset)));
}
}
if (Timeline.Platform.browser.isFirefox) {
var offset = ua.indexOf("firefox/");
if (offset >= 0) {
parseVersionString(ua.substring(offset + 8, indexOf(ua, " ", offset)));
}
}
})();
Timeline.Platform.getDefaultLocale = function() {
return Timeline.Platform.clientLocale;
};
|
import React from 'react';
import { packComponentsPropStyle, packPropStyle } from 'react-native-prop-style';
import { Text, View, SafeAreaView } from 'react-native-prop-style/react-native';
export default class App extends React.Component {
render() {
return (
<SafeAreaView flex1 center >
<Text h1>Column Layout</Text>
<View center column flex1>
<Text red margin-10 flex>red</Text>
<Text underline margin-10 padding-10 >underline</Text>
<Text bold blue>blod</Text>
</View>
<Text h1>Row Layout</Text>
<View center row flex1>
<Text red margin-10>red</Text>
<Text underline margin-10 padding-10 >underline</Text>
<Text bold blue>blod</Text>
</View>
</SafeAreaView>
);
}
}
|
import * as React from "react";
import Layout from "../components/layout";
import {
heroSection,
heroHeading,
heroSubHeading,
repeatIcon,
aboutSectionContainer,
bioSectionContainer,
bioTasteContainer,
bioTasteButton,
bioSection,
helloText,
bioText,
socialIconContainer,
profileImageContainer,
profileImage,
SocialIconItems,
SocialIconList,
projectBlogSection,
projectBlogHeadingContainer,
projectBlogHeading,
projectBlogDescription,
SocialLinks,
projectsContainer,
projectTitle,
projectCard,
technologyItem,
technologyUsedContainer,
projectDescription,
projectImage,
projectLink,
primaryButton,
secondaryButton,
contentContainer,
projectImageContainer,
viewAll,
socialIcon,
} from "../styles/index.module.css";
import {
blogContainer,
blogCard,
blogTitle,
blogImage,
blogLink,
blogDescription,
postedText,
} from "../styles/blogs.module.css";
import { GatsbyImage, StaticImage } from "gatsby-plugin-image";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faInstagram,
faGithub,
faTwitter,
faLinkedin,
} from "@fortawesome/free-brands-svg-icons";
import {
faExchangeAlt,
faLongArrowAltRight,
} from "@fortawesome/free-solid-svg-icons";
import { graphql, Link } from "gatsby";
const attributeData = [
"who loves software engineering",
"Who designs and codes",
"who is a friendly person",
"who loves to solve problems",
"who can be your good friend too",
"who cooks delicious foods",
"who sings on guitar on a rainy day",
];
const bioData = {
Casual:
"This is Mobashir Farhan, and he enjoys watching the sunset, eating candyfloss and waking up late in the morning.Just kidding, more importantly his friend will describe him as someone who loves to draw beautiful things, cook delicious foods, play guitar and loves to motivate them to start learning programming which sometimes irritate them 😂",
Professional:
"Mobashir is a software developer and designer who spends most of his time buiding softwares that solve user's problems giving them seamless experiences. He also design User Interfaces(UI) in Figma and he love that. In his free time he learns about UX research and medical science. Besides, he also loves the subject of cybersecurity and wants to contribute in making the internet a safer and healthy place. He do all this as a freelancer. Outside of that, he's useless 😄",
};
export const query = graphql`
query getProject {
allSanityProjectPreview {
edges {
node {
_id
title
technologyUsed
sourceCode
liveLink
image {
asset {
gatsbyImageData(placeholder: DOMINANT_COLOR)
}
}
description
}
}
}
allMdx(sort: { fields: frontmatter___date, order: DESC }) {
nodes {
id
slug
frontmatter {
title
description
date(fromNow: true)
cover {
childImageSharp {
gatsbyImageData
}
}
}
}
}
}
`;
// markup
const IndexPage = ({ data }) => {
const posts = data.allMdx.nodes;
function attributeClickHandler() {
if (attributeIdx < attributeData.length - 1) {
setAttributeIdx(attributeIdx + 1);
} else {
setAttributeIdx(0);
}
}
function bioTasteClickHandler(e) {
setActiveTaste(e.target.outerText);
}
const [attributeIdx, setAttributeIdx] = React.useState(0);
const [activeTaste, setActiveTaste] = React.useState("Casual");
return (
<Layout>
<main>
<div className={heroSection}>
<h1 className={heroHeading}>Hello from Mobashir</h1>
<h3 className={heroSubHeading}>{attributeData[attributeIdx]}</h3>
<FontAwesomeIcon
onClick={attributeClickHandler}
className={repeatIcon}
icon={faExchangeAlt}
/>
</div>
<div className={aboutSectionContainer}>
<div className={bioSectionContainer}>
<div className={bioTasteContainer}>
<button
onClick={bioTasteClickHandler}
className={bioTasteButton}
style={
activeTaste === "Professional"
? {
backgroundColor: "#ff5678",
color: "white",
border: "none",
}
: {
backgroundColor: "white",
color: "#4a4a4a",
}
}
>
Professional
</button>
<button
onClick={bioTasteClickHandler}
className={bioTasteButton}
style={
activeTaste === "Casual"
? {
backgroundColor: "#ff5678",
color: "white",
border: "none",
}
: {
backgroundColor: "white",
color: "#4a4a4a",
}
}
>
Casual
</button>
</div>
<div className={bioSection}>
<h3 className={helloText}>HELLO EVERYONE</h3>
<p className={bioText}>{bioData[activeTaste]}</p>
</div>
<div className={socialIconContainer}>
<ul className={SocialIconList}>
<li className={SocialIconItems}>
<a
className={SocialLinks}
href="https://github.com/FarhanMobashir"
>
<FontAwesomeIcon className={socialIcon} icon={faGithub} />
</a>
</li>
<li className={SocialIconItems}>
<a
className={SocialLinks}
href="https://twitter.com/MobashirFarhan"
>
<FontAwesomeIcon className={socialIcon} icon={faTwitter} />
</a>
</li>
<li className={SocialIconItems}>
<a
className={SocialLinks}
href="https://www.linkedin.com/in/mobashirfarhan/"
>
<FontAwesomeIcon className={socialIcon} icon={faLinkedin} />
</a>
</li>
<li className={SocialIconItems}>
<a
className={SocialLinks}
href="https://www.instagram.com/farhan_mobashir001/?hl=en"
>
<FontAwesomeIcon
className={socialIcon}
icon={faInstagram}
/>
</a>
</li>
</ul>
</div>
</div>
<div className={profileImageContainer}>
<StaticImage
className={profileImage}
src="../images/profile.png"
alt="profile picture"
placeholder="tracedSVG"
width={300}
height={300}
/>
</div>
</div>
{/* project section */}
<div className={projectBlogSection}>
<div className={projectBlogHeadingContainer}>
<h1 className={projectBlogHeading}>
Mobashir loves to solve real world problems by developing useful
applications
</h1>
<p className={projectBlogDescription}>
Mobashir believes that computer science is all about solving
problems and making the world a better and safer place. Let’s have
a look on some of his projects
</p>
<div className={projectsContainer}>
{data.allSanityProjectPreview.edges.map(
({ node: project }, idx) => (
<div className={projectCard} key={project.id}>
<div className={projectImageContainer}>
<GatsbyImage
className={projectImage}
image={project.image.asset.gatsbyImageData}
alt={project.title}
/>
</div>
<div className={contentContainer}>
<h3 className={projectTitle}>{project.title}</h3>
<p className={projectDescription}>
{project.description}
</p>
<div className={technologyUsedContainer}>
{project.technologyUsed.map((item) => {
return (
<small className={technologyItem}>{item}</small>
);
})}
</div>
<button className={secondaryButton}>
<a
className={projectLink}
target="_blank"
href={project.sourceCode}
>
Source Code
</a>
</button>
<button className={primaryButton}>
<a
className={projectLink}
target="_blank"
href={project.liveLink}
>
View Live
</a>
</button>
</div>
</div>
)
)}
</div>
<Link className={viewAll} to="/projects">
VIEW ALL PROJECTS →
</Link>
</div>
</div>
{/* blog-section */}
<div className={projectBlogSection}>
<div className={projectBlogHeadingContainer}>
<h1 className={projectBlogHeading}>
Mobashir also shares his learning through his writings
</h1>
<p className={projectBlogDescription}>
Learning about new things is really exciting , but what’s more
exciting is to share the learning with the world and sharing our
vulnerabilities to become empathetically more powerful.
</p>
<div className={blogContainer}>
{posts.slice(0, 3).map((post) => (
<div className={blogCard} key={post.id}>
<GatsbyImage
className={blogImage}
image={
post.frontmatter.cover.childImageSharp.gatsbyImageData
}
alt="magnifying glass"
placeholder="dominantColor"
width={300}
height={150}
/>
<h3 className={blogTitle}>{post.frontmatter.title}</h3>
<small className={postedText}>
posted : {post.frontmatter.date}
</small>
<p className={blogDescription}>
{post.frontmatter.description}
</p>
<Link className={blogLink} to={"/" + post.slug}>
CHECK IT OUT <FontAwesomeIcon icon={faLongArrowAltRight} />
</Link>
</div>
))}
</div>
<Link className={viewAll} to="/blogs">
VIEW ALL BLOGS →
</Link>
</div>
</div>
</main>
</Layout>
);
};
export default IndexPage;
|
import {all} from 'redux-saga/effects';
export default function* rootSaga() {
yield all([]);
}
|
/**
* This class manages a compiler, as well as any associated
* processes and data around that compiler.
*/
// These are the states that a compiler can be in.
const { PLUGIN_NAME, FIRST_BUILD, BUILDING, ERROR, DONE } = require("./constants");
const { logError } = require("./logger");
// This is the number of minutes to consider when determining
// frequency. If the range is 10, frequency is calculated as the
// number of requests per minute on average for the last 10 minutes.
const MS_PER_MINUTE = 60 * 1000;
const FREQUENCY_RANGE = 60;
class ManagedCompiler {
constructor(name, compiler, watching, status, pinned = false) {
if (typeof name !== "string") {
throw "ManagedCompiler must be initialized with a string name.";
}
if (!compiler || !watching) {
throw "ManagedCompiler needs a reference to a compiler and its Watching instance.";
}
// external params
this.name = name;
this.compiler = compiler;
this.watching = watching;
this.setStatus(status);
// internal state
this.callbacks = [];
this.frequencyChecks = [];
this.numberOfUses = 0;
this.lastUse = Date.now();
this.lastErrors = [];
this.pinned = !!pinned;
this.addCompilationHooks(compiler);
}
addCompilationHooks(compiler) {
// These hooks are for indicating the start of a new build. The state should
// always be BUILDING, unless it's FIRST_BUILD (which is just a special sort of
// BUILDING).
compiler.hooks.invalid.tap(PLUGIN_NAME, () => {
this.newCompilationHandler();
});
compiler.hooks.run.tap(PLUGIN_NAME, () => {
this.newCompilationHandler();
});
compiler.hooks.watchRun.tap(PLUGIN_NAME, () => {
this.newCompilationHandler();
});
// This hook indicates that the compilation is done, and any
// outstanding requests should be resolved.
compiler.hooks.done.tap(PLUGIN_NAME, (stats, hookCallback) => {
this.finishedCompilationHandler(stats);
});
// This hook fires whenever the compilation fails. We should render errors in
// the console if that's the case.
compiler.hooks.failed.tap(PLUGIN_NAME, (error) => {
this.failedCompilation(error);
});
// This hook indicates that a watcher has been closed, and any
// unresolved requests should probably return 503's.
compiler.hooks.watchClose.tap(PLUGIN_NAME, () => {
this.closeCompilerHandler();
});
}
newCompilationHandler() {
if (this.status !== FIRST_BUILD) {
this.setStatus(BUILDING);
}
}
finishedCompilationHandler(stats) {
// TODO: If we have errors from this build, we should expose them
// to the callback, so that it can tell the user that something broke,
// check the console, etc.
if (stats.hasErrors()) {
const errors = stats.compilation.errors;
this.setStatus(ERROR, errors);
errors.forEach(logError);
this.rejectCallbacks(errors);
} else {
this.setStatus(DONE);
this.resolveCallbacks(false);
}
}
failedCompilation(error) {
this.setStatus(ERROR, [error]);
this.rejectCallbacks(error);
}
closeCompilerHandler() {
// There may be outstanding requests, so we should close them
this.rejectCallbacks(
new Error("The compiler was closed before the request could be completed")
);
}
/**
* Sets the status of the compiler. Performs a validation check first, and
* throws if we try and use an invalid status. You can optionally provide a list of
* error messages to keep track of with the current state (we'll yell at you if you
* don't provide any errors when setting the state to ERROR). We assume that these
* errors don't need to be persisted across state changes.
* @param {string} status - either "first-build","building","error", or "done"
* @param {Error|Array} errors - a list of errors to set.
*/
setStatus(status, errors = []) {
errors = [].concat(errors).filter((error) => !!error);
const statuses = [FIRST_BUILD, BUILDING, ERROR, DONE];
if (!statuses.includes(status)) {
throw `${status} is not a valid status for a compiler. Valid statuses include: ${statuses.join(
", "
)}`;
}
if (status === ERROR && errors.length === 0) {
logError(
`Compiler for "${this.name}" was set to an ERROR state, but no error details were provided.`
);
}
this.status = status;
this.setCurrentErrors(errors);
}
/**
* Sets the list of errors from the previous build
* @param {Array<Error>} errors
*/
setCurrentErrors(errors) {
this.lastErrors = errors.map((err) => err.stack);
}
getCurrentErrors() {
return this.lastErrors;
}
addCallback(deferred) {
if (!deferred.resolve || !deferred.reject) {
logError(
`Compiler for "${this.name}" received a poorly formatted callback`
);
}
this.callbacks.push(deferred);
}
clearCallbacks() {
this.callbacks = [];
return;
}
resolveCallbacks(response) {
this.callbacks.forEach(({ resolve }) => {
resolve(response);
});
this.clearCallbacks();
}
rejectCallbacks(response) {
this.callbacks.forEach(({ reject }) => {
reject(response);
});
this.clearCallbacks();
}
/**
* When this method is called, it indicates that this compiler has been used
* or accessed. This call is used to calculate the frequency with which this
* compiler is used.
*/
logFrequencyUsage() {
// Since we always push, the oldest times are at the beginning
// of the frequency array.
const now = Date.now();
// NOTE: we store now twice because one storage is for frequency,
// and the other is for frecency. If we find one implementation is
// better than the other, that'll make it easier to tear out.
this.frequencyChecks.push(now);
this.lastUse = now;
this.numberOfUses++;
}
/**
* Calculates and returns the number of times this compiler has been
* used per minute, averaged over the last FREQUENCY_RANGE minutes.
* @return {number} times per minute
*/
getFrequency() {
if (this.pinned) {
return Infinity;
}
if (this.frequencyChecks.length === 0) {
return 0;
}
// Prune events older than FREQUENCY_RANGE minutes
const frequencyWindow = Date.now() - FREQUENCY_RANGE * MS_PER_MINUTE;
while (this.frequencyChecks[1] < frequencyWindow) {
this.frequencyChecks.shift();
}
return this.frequencyChecks.length / FREQUENCY_RANGE;
}
/**
* Frecency calculation shamelessly grifted from z.sh:
* https://github.com/rupa/z/wiki/frecency
*
* tl;dr: we bucket recency into 4 categories:
* - within the last minute
* - within the last 5 minutes
* - within the last half hour
* - everything else
* We return the number of uses for a compiler, weighted higher or lower
* based on which of those four buckets it falls into (lower bucket -> lower weight)
*/
getFrecency() {
if (this.pinned) {
return Infinity;
}
const timeSinceUse = Date.now() - this.lastUse;
if (timeSinceUse < MS_PER_MINUTE) {
return this.numberOfUses * 4;
} else if (timeSinceUse < 5 * MS_PER_MINUTE) {
return this.numberOfUses * 2;
} else if (timeSinceUse < 30 * MS_PER_MINUTE) {
return this.numberOfUses / 2;
}
return this.numberOfUses / 4;
}
/**
* Invalidates the compiler without killing it or its watching instance.
*/
invalidate() {
this.watching.invalidate();
this.setStatus(BUILDING);
}
}
module.exports = ManagedCompiler;
|
const { TimetableEvent } = require('../timetableEvent');
const {
placeholders: { DEFAULT },
} = require('../../../../utils/enums');
describe('TimetableEvent', () => {
it('Should handle an empty response', () => {
const timetableEvent = TimetableEvent.from();
expect(timetableEvent.eventSubType).not.toBeDefined();
expect(timetableEvent.eventSubTypeDesc).not.toBeDefined();
expect(timetableEvent.eventSourceDesc).not.toBeDefined();
expect(timetableEvent.startTime).not.toBeDefined();
expect(timetableEvent.endTime).not.toBeDefined();
expect(timetableEvent.location).not.toBeDefined();
expect(timetableEvent.eventType).not.toBeDefined();
expect(timetableEvent.finished).not.toBeDefined();
expect(timetableEvent.status).not.toBeDefined();
expect(timetableEvent.paid).not.toBeDefined();
const formatted = timetableEvent.format();
expect(formatted.description).toBe(DEFAULT);
expect(formatted.startTime).toBe('', 'Should return an empty string');
expect(formatted.endTime).toBe('', 'Should return an empty string');
expect(formatted.location).toBe(DEFAULT);
expect(formatted.timeString).toBe('', 'Should return an empty string');
expect(formatted.eventType).toBe(DEFAULT);
expect(formatted.finished).toBe(true, 'Should return a boolean value');
expect(formatted.status).toBe(DEFAULT);
expect(formatted.paid).not.toBeDefined();
});
it('should handle an incomplete response', () => {
const response = {
startTime: '2020-08-24T11:30:30',
eventSourceDesc: 'A test event',
eventLocation: 'A Wing',
eventType: 'TEST',
eventSubTypeDesc: 'Sub Type Desc',
eventStatus: 'SCH',
paid: true,
};
const formatted = TimetableEvent.from(response).format();
expect(formatted).toStrictEqual(
{
description: 'Sub Type Desc',
startTime: '11:30AM',
endTime: '',
location: 'A wing',
timeString: '11:30AM',
eventType: 'TEST',
finished: false,
status: 'SCH',
paid: true,
},
'Should handle being provided no end time',
);
});
it('should format data when passed and eventSubType is not PA', () => {
const response = {
startTime: '2020-08-24T11:30:30',
endTime: '2020-08-24T12:30:30',
eventSourceDesc: 'A test event',
eventLocation: 'A Wing',
eventType: 'TEST',
eventSubType: 'SUBTYPE',
eventSubTypeDesc: 'Sub Type Desc',
eventStatus: 'SCH',
paid: true,
};
const formatted = TimetableEvent.from(response).format();
expect(formatted).toStrictEqual({
description: 'Sub Type Desc',
startTime: '11:30AM',
endTime: '12:30PM',
location: 'A wing',
timeString: '11:30AM to 12:30PM',
eventType: 'TEST',
finished: false,
status: 'SCH',
paid: true,
});
});
it('should format data when passed and eventSubType is PA', () => {
const response = {
startTime: '2020-08-24T11:30:30',
endTime: '2020-08-24T12:30:30',
eventSourceDesc: 'A test event',
eventLocation: 'A Wing',
eventType: 'TEST',
eventSubType: 'PA',
eventSubTypeDesc: 'Sub Type Desc',
eventStatus: 'SCH',
paid: true,
};
const formatted = TimetableEvent.from(response).format();
expect(formatted).toStrictEqual({
description: 'A test event',
startTime: '11:30AM',
endTime: '12:30PM',
location: 'A wing',
timeString: '11:30AM to 12:30PM',
eventType: 'TEST',
finished: false,
status: 'SCH',
paid: true,
});
});
});
|
import { uuidShort } from "el/base/functions/math";
export default {
command: 'addSVGFilterAssetItem',
execute: function (editor, callback) {
var project = editor.selection.currentProject;
if (project) {
var id = uuidShort()
var index = project.createSVGFilter({ id, filters: []})
callback && callback (index, id);
}
}
}
|
var fs = require('fs');
var path = require('path');
var pkg = require('./package');
var minor_version = pkg.version.replace(/\.(\d)*$/, '');
var major_version = pkg.version.replace(/\.(\d)*\.(\d)*$/, '');
var path = require('path');
function rename_release (v) {
return function (d, f) {
var dest = path.join(d, f.replace(/(\.min)?\.js$/, '-'+ v + '$1.js').replace('auth0-', ''));
return dest;
};
}
function node_bin (bin) {
return path.join('node_modules', '.bin', bin);
}
module.exports = function (grunt) {
grunt.initConfig({
env: {
build: {
NODE_ENV: "production"
}
},
browserify: {
options: {
transform: [["babelify", { "stage": 0 }]],
browserifyOptions: {
debug: true,
extensions: ".jsx"
},
watch: true,
// Convert absolute sourcemap filepaths to relative ones using mold-source-map.
postBundleCB: function(err, src, cb) {
if (err) { return cb(err); }
var through = require('through');
var stream = through().pause().queue(src).end();
var buffer = '';
stream.pipe(require('mold-source-map').transformSourcesRelativeTo(__dirname)).pipe(through(function(chunk) {
buffer += chunk.toString();
}, function() {
cb(err, buffer);
}));
stream.resume();
}
},
debug: {
files: {
'build/auth0-editprofile-widget.js': ['standalone.js']
}
},
},
less: {
dist: {
options: {
paths: ['lib/css'],
},
files: {
'lib/css/main.css': 'lib/less/main.less'
}
},
demo: {
files: {
'support/development-demo/build/index.css': 'support/development-demo/index.less'
}
}
},
cssmin: {
minify: {
options: {
keepSpecialComments: 0
},
files: {
'lib/css/main.min.css': ['lib/css/main.css']
}
}
},
exec: {
'uglify': {
cmd: node_bin('uglifyjs') + ' build/auth0-editprofile-widget.js -b beautify=false,ascii_only=true > build/auth0-editprofile-widget.min.js',
stdout: true,
stderr: true
}
},
clean: {
css: ['lib/css/main.css', 'lib/css/main.min.css'],
js: ['release/', 'build/', 'support/development-demo/auth0-editprofile-widget.js']
},
watch: {
js: {
files: ['build/auth0-editprofile-widget.js'],
tasks: [],
options: {
livereload: true
},
},
css: {
files: [
'lib/**/*.less'
],
tasks: ['build'],
options: {
livereload: true
},
},
demo: {
files: ['support/development-demo/*'],
tasks: ['less:demo'],
options: {
livereload: true
},
}
},
/* Checks for outdated npm dependencies before release. */
outdated: {
release: {
development: false
}
}
});
// Loading dependencies
for (var key in grunt.file.readJSON('package.json').devDependencies) {
if (key !== 'grunt' && key.indexOf('grunt') === 0) { grunt.loadNpmTasks(key); }
}
grunt.registerTask('css', ['clean:css', 'less:dist', 'cssmin:minify']);
grunt.registerTask('js', ['clean:js', 'browserify:debug', 'exec:uglify']);
grunt.registerTask('build', ['env:build', 'css', 'js']);
grunt.registerTask('dev', ['build', 'watch']);
};
|
'use strict';
var should = require('should');
var app = require('../../app');
var request = require('supertest');
describe('GET /api/_endpoint_', function() {
it('should respond with JSON array', function(done) {
request(app)
.get('/api/_endpoint_')
.expect(200)
.expect('Content-Type', /json/)
.end(function(err, res) {
if (err) return done(err);
res.body.should.be.instanceof(Array);
done();
});
});
});
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const builder_util_1 = require("builder-util");
const builder_util_runtime_1 = require("builder-util-runtime");
const fs_extra_1 = require("fs-extra");
const js_yaml_1 = require("js-yaml");
const path = require("path");
const semver = require("semver");
const core_1 = require("../core");
const pathManager_1 = require("../util/pathManager");
const targetUtil_1 = require("./targetUtil");
const defaultPlugs = ["desktop", "desktop-legacy", "home", "x11", "wayland", "unity7", "browser-support", "network", "gsettings", "audio-playback", "pulseaudio", "opengl"];
class SnapTarget extends core_1.Target {
constructor(name, packager, helper, outDir) {
super(name);
this.packager = packager;
this.helper = helper;
this.outDir = outDir;
this.options = { ...this.packager.platformSpecificBuildOptions, ...this.packager.config[this.name] };
this.isUseTemplateApp = false;
}
replaceDefault(inList, defaultList) {
const result = builder_util_1.replaceDefault(inList, defaultList);
if (result !== defaultList) {
this.isUseTemplateApp = false;
}
return result;
}
async createDescriptor(arch) {
if (!this.isElectronVersionGreaterOrEqualThan("4.0.0")) {
if (!this.isElectronVersionGreaterOrEqualThan("2.0.0-beta.1")) {
throw new builder_util_1.InvalidConfigurationError("Electron 2 and higher is required to build Snap");
}
builder_util_1.log.warn("Electron 4 and higher is highly recommended for Snap");
}
const appInfo = this.packager.appInfo;
const snapName = this.packager.executableName.toLowerCase();
const options = this.options;
const plugs = normalizePlugConfiguration(this.options.plugs);
const plugNames = this.replaceDefault(plugs == null ? null : Object.getOwnPropertyNames(plugs), defaultPlugs);
const slots = normalizePlugConfiguration(this.options.slots);
const buildPackages = builder_util_runtime_1.asArray(options.buildPackages);
const defaultStagePackages = getDefaultStagePackages();
const stagePackages = this.replaceDefault(options.stagePackages, defaultStagePackages);
this.isUseTemplateApp =
this.options.useTemplateApp !== false &&
(arch === builder_util_1.Arch.x64 || arch === builder_util_1.Arch.armv7l) &&
buildPackages.length === 0 &&
isArrayEqualRegardlessOfSort(stagePackages, defaultStagePackages);
const appDescriptor = {
command: "command.sh",
plugs: plugNames,
adapter: "none",
};
const snap = js_yaml_1.load(await fs_extra_1.readFile(path.join(pathManager_1.getTemplatePath("snap"), "snapcraft.yaml"), "utf-8"));
if (this.isUseTemplateApp) {
delete appDescriptor.adapter;
}
if (options.grade != null) {
snap.grade = options.grade;
}
if (options.confinement != null) {
snap.confinement = options.confinement;
}
if (options.appPartStage != null) {
snap.parts.app.stage = options.appPartStage;
}
if (options.layout != null) {
snap.layout = options.layout;
}
if (slots != null) {
appDescriptor.slots = Object.getOwnPropertyNames(slots);
for (const slotName of appDescriptor.slots) {
const slotOptions = slots[slotName];
if (slotOptions == null) {
continue;
}
if (!snap.slots) {
snap.slots = {};
}
snap.slots[slotName] = slotOptions;
}
}
builder_util_1.deepAssign(snap, {
name: snapName,
version: appInfo.version,
title: options.title || appInfo.productName,
summary: options.summary || appInfo.productName,
description: this.helper.getDescription(options),
architectures: [builder_util_1.toLinuxArchString(arch, "snap")],
apps: {
[snapName]: appDescriptor,
},
parts: {
app: {
"stage-packages": stagePackages,
},
},
});
if (options.autoStart) {
appDescriptor.autostart = `${snap.name}.desktop`;
}
if (options.confinement === "classic") {
delete appDescriptor.plugs;
delete snap.plugs;
}
else {
const archTriplet = archNameToTriplet(arch);
appDescriptor.environment = {
// https://github.com/electron-userland/electron-builder/issues/4007
// https://github.com/electron/electron/issues/9056
DISABLE_WAYLAND: "1",
TMPDIR: "$XDG_RUNTIME_DIR",
PATH: "$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH",
SNAP_DESKTOP_RUNTIME: "$SNAP/gnome-platform",
LD_LIBRARY_PATH: [
"$SNAP_LIBRARY_PATH",
"$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/" + archTriplet + ":$SNAP/usr/lib/" + archTriplet,
"$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib",
"$SNAP/lib/" + archTriplet + ":$SNAP/usr/lib/" + archTriplet,
].join(":"),
...options.environment,
};
if (plugs != null) {
for (const plugName of plugNames) {
const plugOptions = plugs[plugName];
if (plugOptions == null) {
continue;
}
snap.plugs[plugName] = plugOptions;
}
}
}
if (buildPackages.length > 0) {
snap.parts.app["build-packages"] = buildPackages;
}
if (options.after != null) {
snap.parts.app.after = options.after;
}
if (options.assumes != null) {
snap.assumes = builder_util_runtime_1.asArray(options.assumes);
}
return snap;
}
async build(appOutDir, arch) {
const packager = this.packager;
const options = this.options;
// tslint:disable-next-line:no-invalid-template-strings
const artifactName = packager.expandArtifactNamePattern(this.options, "snap", arch, "${name}_${version}_${arch}.${ext}", false);
const artifactPath = path.join(this.outDir, artifactName);
await packager.info.callArtifactBuildStarted({
targetPresentableName: "snap",
file: artifactPath,
arch,
});
const snap = await this.createDescriptor(arch);
if (this.isUseTemplateApp) {
delete snap.parts;
}
const stageDir = await targetUtil_1.createStageDirPath(this, packager, arch);
const snapArch = builder_util_1.toLinuxArchString(arch, "snap");
const args = ["snap", "--app", appOutDir, "--stage", stageDir, "--arch", snapArch, "--output", artifactPath, "--executable", this.packager.executableName];
await this.helper.icons;
if (this.helper.maxIconPath != null) {
if (!this.isUseTemplateApp) {
snap.icon = "snap/gui/icon.png";
}
args.push("--icon", this.helper.maxIconPath);
}
// snapcraft.yaml inside a snap directory
const snapMetaDir = path.join(stageDir, this.isUseTemplateApp ? "meta" : "snap");
const desktopFile = path.join(snapMetaDir, "gui", `${snap.name}.desktop`);
await this.helper.writeDesktopEntry(this.options, packager.executableName + " %U", desktopFile, {
// tslint:disable:no-invalid-template-strings
Icon: "${SNAP}/meta/gui/icon.png",
});
if (this.isElectronVersionGreaterOrEqualThan("5.0.0") && !isBrowserSandboxAllowed(snap)) {
args.push("--extraAppArgs=--no-sandbox");
if (this.isUseTemplateApp) {
args.push("--exclude", "chrome-sandbox");
}
}
if (packager.packagerOptions.effectiveOptionComputed != null && (await packager.packagerOptions.effectiveOptionComputed({ snap, desktopFile, args }))) {
return;
}
await fs_extra_1.outputFile(path.join(snapMetaDir, this.isUseTemplateApp ? "snap.yaml" : "snapcraft.yaml"), builder_util_1.serializeToYaml(snap));
const hooksDir = await packager.getResource(options.hooks, "snap-hooks");
if (hooksDir != null) {
args.push("--hooks", hooksDir);
}
if (this.isUseTemplateApp) {
args.push("--template-url", `electron4:${snapArch}`);
}
await builder_util_1.executeAppBuilder(args);
await packager.info.callArtifactBuildCompleted({
file: artifactPath,
safeArtifactName: packager.computeSafeArtifactName(artifactName, "snap", arch, false),
target: this,
arch,
packager,
publishConfig: options.publish == null ? { provider: "snapStore" } : null,
});
}
isElectronVersionGreaterOrEqualThan(version) {
return semver.gte(this.packager.config.electronVersion || "7.0.0", version);
}
}
exports.default = SnapTarget;
function archNameToTriplet(arch) {
switch (arch) {
case builder_util_1.Arch.x64:
return "x86_64-linux-gnu";
case builder_util_1.Arch.ia32:
return "i386-linux-gnu";
case builder_util_1.Arch.armv7l:
// noinspection SpellCheckingInspection
return "arm-linux-gnueabihf";
case builder_util_1.Arch.arm64:
return "aarch64-linux-gnu";
default:
throw new Error(`Unsupported arch ${arch}`);
}
}
function isArrayEqualRegardlessOfSort(a, b) {
a = a.slice();
b = b.slice();
a.sort();
b.sort();
return a.length === b.length && a.every((value, index) => value === b[index]);
}
function normalizePlugConfiguration(raw) {
if (raw == null) {
return null;
}
const result = {};
for (const item of Array.isArray(raw) ? raw : [raw]) {
if (typeof item === "string") {
result[item] = null;
}
else {
Object.assign(result, item);
}
}
return result;
}
function isBrowserSandboxAllowed(snap) {
if (snap.plugs != null) {
for (const plugName of Object.keys(snap.plugs)) {
const plug = snap.plugs[plugName];
if (plug.interface === "browser-support" && plug["allow-sandbox"] === true) {
return true;
}
}
}
return false;
}
function getDefaultStagePackages() {
// libxss1 - was "error while loading shared libraries: libXss.so.1" on Xubuntu 16.04
// noinspection SpellCheckingInspection
return ["libnspr4", "libnss3", "libxss1", "libappindicator3-1", "libsecret-1-0"];
}
//# sourceMappingURL=snap.js.map
|
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../actions')
module.exports = connect(mapStateToProps)(CoinbaseForm)
function mapStateToProps (state) {
return {
warning: state.appState.warning,
}
}
inherits(CoinbaseForm, Component)
function CoinbaseForm () {
Component.call(this)
}
CoinbaseForm.prototype.render = function () {
var props = this.props
return h('.flex-column', {
style: {
marginTop: '35px',
padding: '25px',
width: '100%',
},
}, [
h('.flex-row', {
style: {
justifyContent: 'space-around',
margin: '33px',
marginTop: '0px',
},
}, [
h('button.btn-green', {
onClick: this.toCoinbase.bind(this),
}, 'Continue to Coinbase'),
h('button.btn-red', {
onClick: () => props.dispatch(actions.goHome()),
}, 'Cancel'),
]),
])
}
CoinbaseForm.prototype.toCoinbase = function () {
const props = this.props
const address = props.buyView.buyAddress
props.dispatch(actions.buyEth({ network: '1', address, amount: 0 }))
}
CoinbaseForm.prototype.renderLoading = function () {
return h('img', {
style: {
width: '27px',
marginRight: '-27px',
},
src: 'images/loading.svg',
})
}
|
/* @generated */
// prettier-ignore
if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat.__addLocaleData === 'function') {
Intl.RelativeTimeFormat.__addLocaleData({"data":{"nl":{"nu":["latn"],"year":{"0":"dit jaar","1":"volgend jaar","future":{"one":"over {0} jaar","other":"over {0} jaar"},"past":{"one":"{0} jaar geleden","other":"{0} jaar geleden"},"-1":"vorig jaar"},"year-short":{"0":"dit jaar","1":"volgend jaar","future":{"one":"over {0} jaar","other":"over {0} jaar"},"past":{"one":"{0} jaar geleden","other":"{0} jaar geleden"},"-1":"vorig jaar"},"year-narrow":{"0":"dit jaar","1":"volgend jaar","future":{"one":"over {0} jaar","other":"over {0} jaar"},"past":{"one":"{0} jaar geleden","other":"{0} jaar geleden"},"-1":"vorig jaar"},"quarter":{"0":"dit kwartaal","1":"volgend kwartaal","future":{"one":"over {0} kwartaal","other":"over {0} kwartalen"},"past":{"one":"{0} kwartaal geleden","other":"{0} kwartalen geleden"},"-1":"vorig kwartaal"},"quarter-short":{"0":"dit kwartaal","1":"volgend kwartaal","future":{"one":"over {0} kwartaal","other":"over {0} kwartalen"},"past":{"one":"{0} kwartaal geleden","other":"{0} kwartalen geleden"},"-1":"vorig kwartaal"},"quarter-narrow":{"0":"dit kwartaal","1":"volgend kwartaal","future":{"one":"over {0} kw.","other":"over {0} kwartalen"},"past":{"one":"{0} kwartaal geleden","other":"{0} kwartalen geleden"},"-1":"vorig kwartaal"},"month":{"0":"deze maand","1":"volgende maand","future":{"one":"over {0} maand","other":"over {0} maanden"},"past":{"one":"{0} maand geleden","other":"{0} maanden geleden"},"-1":"vorige maand"},"month-short":{"0":"deze maand","1":"volgende maand","future":{"one":"over {0} maand","other":"over {0} maanden"},"past":{"one":"{0} maand geleden","other":"{0} maanden geleden"},"-1":"vorige maand"},"month-narrow":{"0":"deze maand","1":"volgende maand","future":{"one":"over {0} maand","other":"over {0} maanden"},"past":{"one":"{0} maand geleden","other":"{0} maanden geleden"},"-1":"vorige maand"},"week":{"0":"deze week","1":"volgende week","future":{"one":"over {0} week","other":"over {0} weken"},"past":{"one":"{0} week geleden","other":"{0} weken geleden"},"-1":"vorige week"},"week-short":{"0":"deze week","1":"volgende week","future":{"one":"over {0} week","other":"over {0} weken"},"past":{"one":"{0} week geleden","other":"{0} weken geleden"},"-1":"vorige week"},"week-narrow":{"0":"deze week","1":"volgende week","future":{"one":"over {0} week","other":"over {0} weken"},"past":{"one":"{0} week geleden","other":"{0} weken geleden"},"-1":"vorige week"},"day":{"0":"vandaag","1":"morgen","2":"overmorgen","future":{"one":"over {0} dag","other":"over {0} dagen"},"past":{"one":"{0} dag geleden","other":"{0} dagen geleden"},"-2":"eergisteren","-1":"gisteren"},"day-short":{"0":"vandaag","1":"morgen","2":"overmorgen","future":{"one":"over {0} dag","other":"over {0} dgn"},"past":{"one":"{0} dag geleden","other":"{0} dgn geleden"},"-2":"eergisteren","-1":"gisteren"},"day-narrow":{"0":"vandaag","1":"morgen","2":"overmorgen","future":{"one":"over {0} dag","other":"over {0} dgn"},"past":{"one":"{0} dag geleden","other":"{0} dgn geleden"},"-2":"eergisteren","-1":"gisteren"},"hour":{"0":"binnen een uur","future":{"one":"over {0} uur","other":"over {0} uur"},"past":{"one":"{0} uur geleden","other":"{0} uur geleden"}},"hour-short":{"0":"binnen een uur","future":{"one":"over {0} uur","other":"over {0} uur"},"past":{"one":"{0} uur geleden","other":"{0} uur geleden"}},"hour-narrow":{"0":"binnen een uur","future":{"one":"over {0} uur","other":"over {0} uur"},"past":{"one":"{0} uur geleden","other":"{0} uur geleden"}},"minute":{"0":"binnen een minuut","future":{"one":"over {0} minuut","other":"over {0} minuten"},"past":{"one":"{0} minuut geleden","other":"{0} minuten geleden"}},"minute-short":{"0":"binnen een minuut","future":{"one":"over {0} min.","other":"over {0} min."},"past":{"one":"{0} min. geleden","other":"{0} min. geleden"}},"minute-narrow":{"0":"binnen een minuut","future":{"one":"over {0} min.","other":"over {0} min."},"past":{"one":"{0} min. geleden","other":"{0} min. geleden"}},"second":{"0":"nu","future":{"one":"over {0} seconde","other":"over {0} seconden"},"past":{"one":"{0} seconde geleden","other":"{0} seconden geleden"}},"second-short":{"0":"nu","future":{"one":"over {0} sec.","other":"over {0} sec."},"past":{"one":"{0} sec. geleden","other":"{0} sec. geleden"}},"second-narrow":{"0":"nu","future":{"one":"over {0} sec.","other":"over {0} sec."},"past":{"one":"{0} sec. geleden","other":"{0} sec. geleden"}}}},"availableLocales":["nl"]}
)
}
|
import React from 'react';
import Aux from '../../hoc/Aux';
import classes from './Layout.css';
const layout = (props) => (
<Aux>
<div> Backdrop
</div>
<main className={classes.Content}>
{props.children}
</main>
</Aux>
);
export default layout;
|
/**
* Copyright 2017 IBM Corp. 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
*
* https://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.
*/
var request = require('request');
var Cloudant = require('cloudant');
var LOGO_URL = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/IBM_logo.svg/512px-IBM_logo.svg.png";
var CONTENT_TYPE = "image/png";
var IMAGE_NAME_PREFIX = "IBM_logo";
var IMAGE_NAME_POSTFIX = ".png";
/**
* This action downloads an IBM logo, and returns an object to be written to a cloudant database.
* This action is idempotent. If it fails, it can be retried.
*
* @param params.CLOUDANT_USERNAME Cloudant username
* @param params.CLOUDANT_PASSWORD Cloudant password
* @param params.CLOUDANT_DATABASE Cloudant database to store the file to
* @return Promise for the downloaded image object
*/
function main(params) {
// Configure database connection
var cloudant = new Cloudant({
account: params.CLOUDANT_USERNAME,
password: params.CLOUDANT_PASSWORD
});
var database = cloudant.db.use(params.CLOUDANT_DATABASE);
// Generate a random name to trigger the database change feed
var imageName = IMAGE_NAME_PREFIX + getRandomInt(1, 100000) + IMAGE_NAME_POSTFIX;
return new Promise(function(resolve, reject) {
request({
uri: LOGO_URL,
method: 'GET',
encoding: null
}, function(err, response, body) {
if (err) {
reject();
} else {
database.multipart.insert({
_id: imageName
}, [{
name: imageName,
data: body,
content_type: CONTENT_TYPE
}],
imageName,
function(err, body) {
if (err && err.statusCode != 409) {
console.log("Error with file insert." + err);
reject();
} else {
console.log("Success with file insert.");
resolve();
}
}
);
}
});
});
}
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}
|
'use strict';
describe('Controller: LoginCtrl', function () {
// load the controller's module
beforeEach(module('wheretoliveApp'));
var LoginCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
LoginCtrl = $controller('LoginCtrl', {
$scope: scope
});
}));
it('should attach a list of awesomeThings to the scope', function () {
expect(scope.awesomeThings.length).toBe(3);
});
});
|
import React from 'react';
import PropTypes from 'prop-types';
import { useStaticQuery, graphql, Link } from 'gatsby';
import { Global, css } from '@emotion/core';
import { Helmet } from 'react-helmet';
import AsideBar from '../components/Molecules/AsideBar';
import Header from './header';
// import './layout.css';
const Layout = ({ children }) => {
const data = useStaticQuery(graphql`
query SiteTitleQuery {
site {
siteMetadata {
title
}
}
}
`);
const styles = css`
.main-wrapper-layout {
}
`;
const [openMenu, setMenu] = React.useState(false);
const toggleMenu = () => {
if (openMenu === true) {
setMenu(false);
} else {
setMenu(true);
}
};
return (
<>
<Helmet>
<link
rel='stylesheet'
href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css'
integrity='sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk'
crossOrigin='anonymous'
/>
<script
src='https://kit.fontawesome.com/767b73986e.js'
crossOrigin='anonymous'
></script>
</Helmet>
<Global styles={styles} />
<div className='website-wrapper'>
<div className={`main-wrapper-layout ${openMenu ? 'activee' : ''}`}>
<Header
toggleMenu={toggleMenu}
siteTitle={data.site.siteMetadata.title}
/>
<main>{children}</main>
<AsideBar toggleMenu={toggleMenu} />
<footer className='main-footer d-flex align-items-center justify-content-between'>
<div className='main'>
© {new Date().getFullYear()}, Built by
{` `}
<a href='https://github.com/IrfDev'>IrfDev</a>
</div>
<div className='logo'>
<Link
to='/'
style={{
color: `white`,
textDecoration: `none`,
}}
>
<img
src='/fullstack-logo.png'
alt='logo fullstack'
className='_logo img-fluid'
/>
</Link>
</div>
</footer>
</div>
</div>
<script
src='https://code.jquery.com/jquery-3.5.1.slim.min.js'
integrity='sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj'
crossOrigin='anonymous'
/>
<script
src='https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js'
integrity='sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo'
crossOrigin='anonymous'
/>
<script
src='https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js'
integrity='sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI'
crossOrigin='anonymous'
/>
</>
);
};
Layout.propTypes = {
children: PropTypes.node.isRequired,
};
export default Layout;
|
(self["webpackChunkquasar"]=self["webpackChunkquasar"]||[]).push([[736],{7518:e=>{e.exports=function(e,t,n){const o=void 0!==e.__vccOpts?e.__vccOpts:e,r=o[t];if(void 0===r)o[t]=n;else for(const i in n)void 0===r[i]&&(r[i]=n[i])}},1959:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>Re,cE:()=>u,X3:()=>we,PG:()=>ye,dq:()=>Se,Xl:()=>xe,Jd:()=>g,WL:()=>Ae,qj:()=>he,iH:()=>Ee,lk:()=>b,Um:()=>ve,XI:()=>Ce,sT:()=>d,IU:()=>_e,j:()=>w,X$:()=>_,SU:()=>Le});var o=n(2323);const r=new WeakMap,i=[];let s;const a=Symbol(""),l=Symbol("");function c(e){return e&&!0===e._isEffect}function u(e,t=o.kT){c(e)&&(e=e.raw);const n=p(e,t);return t.lazy||n(),n}function d(e){e.active&&(h(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let f=0;function p(e,t){const n=function(){if(!n.active)return e();if(!i.includes(n)){h(n);try{return y(),i.push(n),s=n,e()}finally{i.pop(),b(),s=i[i.length-1]}}};return n.id=f++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function h(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let v=!0;const m=[];function g(){m.push(v),v=!1}function y(){m.push(v),v=!0}function b(){const e=m.pop();v=void 0===e||e}function w(e,t,n){if(!v||void 0===s)return;let o=r.get(e);o||r.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=new Set),i.has(s)||(i.add(s),s.deps.push(i))}function _(e,t,n,i,c,u){const d=r.get(e);if(!d)return;const f=new Set,p=e=>{e&&e.forEach((e=>{(e!==s||e.allowRecurse)&&f.add(e)}))};if("clear"===t)d.forEach(p);else if("length"===n&&(0,o.kJ)(e))d.forEach(((e,t)=>{("length"===t||t>=i)&&p(e)}));else switch(void 0!==n&&p(d.get(n)),t){case"add":(0,o.kJ)(e)?(0,o.S0)(n)&&p(d.get("length")):(p(d.get(a)),(0,o._N)(e)&&p(d.get(l)));break;case"delete":(0,o.kJ)(e)||(p(d.get(a)),(0,o._N)(e)&&p(d.get(l)));break;case"set":(0,o._N)(e)&&p(d.get(a));break}const h=e=>{e.options.scheduler?e.options.scheduler(e):e()};f.forEach(h)}const x=(0,o.fY)("__proto__,__v_isRef,__isVue"),k=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(o.yk)),S=L(),E=L(!1,!0),C=L(!0),O=T();function T(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)w(n,"get",t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(_e)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){g();const n=_e(this)[t].apply(this,e);return b(),n}})),e}function L(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?de:ue:t?ce:le).get(n))return n;const s=(0,o.kJ)(n);if(!e&&s&&(0,o.RI)(O,r))return Reflect.get(O,r,i);const a=Reflect.get(n,r,i);if((0,o.yk)(r)?k.has(r):x(r))return a;if(e||w(n,"get",r),t)return a;if(Se(a)){const e=!s||!(0,o.S0)(r);return e?a.value:a}return(0,o.Kn)(a)?e?me(a):he(a):a}}const P=F(),A=F(!0);function F(e=!1){return function(t,n,r,i){let s=t[n];if(!e&&(r=_e(r),s=_e(s),!(0,o.kJ)(t)&&Se(s)&&!Se(r)))return s.value=r,!0;const a=(0,o.kJ)(t)&&(0,o.S0)(n)?Number(n)<t.length:(0,o.RI)(t,n),l=Reflect.set(t,n,r,i);return t===_e(i)&&(a?(0,o.aU)(r,s)&&_(t,"set",n,r,s):_(t,"add",n,r)),l}}function R(e,t){const n=(0,o.RI)(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&_(e,"delete",t,void 0,r),i}function j(e,t){const n=Reflect.has(e,t);return(0,o.yk)(t)&&k.has(t)||w(e,"has",t),n}function q(e){return w(e,"iterate",(0,o.kJ)(e)?"length":a),Reflect.ownKeys(e)}const $={get:S,set:P,deleteProperty:R,has:j,ownKeys:q},M={get:C,set(e,t){return!0},deleteProperty(e,t){return!0}},N=(0,o.l7)({},$,{get:E,set:A}),I=e=>(0,o.Kn)(e)?he(e):e,B=e=>(0,o.Kn)(e)?me(e):e,U=e=>e,z=e=>Reflect.getPrototypeOf(e);function H(e,t,n=!1,o=!1){e=e["__v_raw"];const r=_e(e),i=_e(t);t!==i&&!n&&w(r,"get",t),!n&&w(r,"get",i);const{has:s}=z(r),a=o?U:n?B:I;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function D(e,t=!1){const n=this["__v_raw"],o=_e(n),r=_e(e);return e!==r&&!t&&w(o,"has",e),!t&&w(o,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function V(e,t=!1){return e=e["__v_raw"],!t&&w(_e(e),"iterate",a),Reflect.get(e,"size",e)}function J(e){e=_e(e);const t=_e(this),n=z(t),o=n.has.call(t,e);return o||(t.add(e),_(t,"add",e,e)),this}function Z(e,t){t=_e(t);const n=_e(this),{has:r,get:i}=z(n);let s=r.call(n,e);s||(e=_e(e),s=r.call(n,e));const a=i.call(n,e);return n.set(e,t),s?(0,o.aU)(t,a)&&_(n,"set",e,t,a):_(n,"add",e,t),this}function W(e){const t=_e(this),{has:n,get:o}=z(t);let r=n.call(t,e);r||(e=_e(e),r=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return r&&_(t,"delete",e,void 0,i),s}function K(){const e=_e(this),t=0!==e.size,n=void 0,o=e.clear();return t&&_(e,"clear",void 0,void 0,n),o}function G(e,t){return function(n,o){const r=this,i=r["__v_raw"],s=_e(i),l=t?U:e?B:I;return!e&&w(s,"iterate",a),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function Y(e,t,n){return function(...r){const i=this["__v_raw"],s=_e(i),c=(0,o._N)(s),u="entries"===e||e===Symbol.iterator&&c,d="keys"===e&&c,f=i[e](...r),p=n?U:t?B:I;return!t&&w(s,"iterate",d?l:a),{next(){const{value:e,done:t}=f.next();return t?{value:e,done:t}:{value:u?[p(e[0]),p(e[1])]:p(e),done:t}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return"delete"!==e&&this}}function Q(){const e={get(e){return H(this,e)},get size(){return V(this)},has:D,add:J,set:Z,delete:W,clear:K,forEach:G(!1,!1)},t={get(e){return H(this,e,!1,!0)},get size(){return V(this)},has:D,add:J,set:Z,delete:W,clear:K,forEach:G(!1,!0)},n={get(e){return H(this,e,!0)},get size(){return V(this,!0)},has(e){return D.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:G(!0,!1)},o={get(e){return H(this,e,!0,!0)},get size(){return V(this,!0)},has(e){return D.call(this,e,!0)},add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear"),forEach:G(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{e[r]=Y(r,!1,!1),n[r]=Y(r,!0,!1),t[r]=Y(r,!1,!0),o[r]=Y(r,!0,!0)})),[e,n,t,o]}const[ee,te,ne,oe]=Q();function re(e,t){const n=t?e?oe:ne:e?te:ee;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.RI)(n,r)&&r in t?n:t,r,i)}const ie={get:re(!1,!1)},se={get:re(!1,!0)},ae={get:re(!0,!1)};const le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap;function fe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:fe((0,o.W7)(e))}function he(e){return e&&e["__v_isReadonly"]?e:ge(e,!1,$,ie,le)}function ve(e){return ge(e,!1,N,se,ce)}function me(e){return ge(e,!0,M,ae,ue)}function ge(e,t,n,r,i){if(!(0,o.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const s=i.get(e);if(s)return s;const a=pe(e);if(0===a)return e;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function ye(e){return be(e)?ye(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function be(e){return!(!e||!e["__v_isReadonly"])}function we(e){return ye(e)||be(e)}function _e(e){return e&&_e(e["__v_raw"])||e}function xe(e){return(0,o.Nj)(e,"__v_skip",!0),e}const ke=e=>(0,o.Kn)(e)?he(e):e;function Se(e){return Boolean(e&&!0===e.__v_isRef)}function Ee(e){return Te(e)}function Ce(e){return Te(e,!0)}class Oe{constructor(e,t=!1){this._shallow=t,this.__v_isRef=!0,this._rawValue=t?e:_e(e),this._value=t?e:ke(e)}get value(){return w(_e(this),"get","value"),this._value}set value(e){e=this._shallow?e:_e(e),(0,o.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:ke(e),_(_e(this),"set","value",e))}}function Te(e,t=!1){return Se(e)?e:new Oe(e,t)}function Le(e){return Se(e)?e.value:e}const Pe={get:(e,t,n)=>Le(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Se(r)&&!Se(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ae(e){return ye(e)?e:new Proxy(e,Pe)}class Fe{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=u(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,_(_e(this),"set","value"))}}),this["__v_isReadonly"]=n}get value(){const e=_e(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),w(e,"get","value"),e._value}set value(e){this._setter(e)}}function Re(e){let t,n;return(0,o.mf)(e)?(t=e,n=o.dG):(t=e.get,n=e.set),new Fe(t,n,(0,o.mf)(e)||!e.set)}},3673:(e,t,n)=>{"use strict";n.d(t,{P$:()=>se,HY:()=>At,$d:()=>s,Fl:()=>Cn,j4:()=>Ut,kq:()=>Yt,Us:()=>wt,Uk:()=>Gt,Wm:()=>Zt,aZ:()=>pe,FN:()=>fn,Q6:()=>fe,h:()=>On,f3:()=>G,dG:()=>tn,Y3:()=>x,Jd:()=>Le,bv:()=>Ce,ic:()=>Te,wg:()=>Mt,JJ:()=>K,Ko:()=>nn,up:()=>Ot,U2:()=>le,nK:()=>de,Y8:()=>oe,YP:()=>X,w5:()=>B,wy:()=>dt});var o=n(1959),r=n(2323);function i(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){a(i,t,n)}return r}function s(e,t,n,o){if((0,r.mf)(e)){const s=i(e,t,n,o);return s&&(0,r.tI)(s)&&s.catch((e=>{a(e,t,n)})),s}const l=[];for(let r=0;r<e.length;r++)l.push(s(e[r],t,n,o));return l}function a(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,s=n;while(o){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;o=o.parent}const a=t.appContext.config.errorHandler;if(a)return void i(a,null,10,[e,r,s])}l(e,n,r,o)}function l(e,t,n,o=!0){console.error(e)}let c=!1,u=!1;const d=[];let f=0;const p=[];let h=null,v=0;const m=[];let g=null,y=0;const b=Promise.resolve();let w=null,_=null;function x(e){const t=w||b;return e?t.then(this?e.bind(this):e):t}function k(e){let t=f+1,n=d.length;const o=F(e);while(t<n){const e=t+n>>>1,r=F(d[e]);r<o?t=e+1:n=e}return t}function S(e){if((!d.length||!d.includes(e,c&&e.allowRecurse?f+1:f))&&e!==_){const t=k(e);t>-1?d.splice(t,0,e):d.push(e),E()}}function E(){c||u||(u=!0,w=b.then(R))}function C(e){const t=d.indexOf(e);t>f&&d.splice(t,1)}function O(e,t,n,o){(0,r.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),E()}function T(e){O(e,h,p,v)}function L(e){O(e,g,m,y)}function P(e,t=null){if(p.length){for(_=t,h=[...new Set(p)],p.length=0,v=0;v<h.length;v++)h[v]();h=null,v=0,_=null,P(e,t)}}function A(e){if(m.length){const e=[...new Set(m)];if(m.length=0,g)return void g.push(...e);for(g=e,g.sort(((e,t)=>F(e)-F(t))),y=0;y<g.length;y++)g[y]();g=null,y=0}}const F=e=>null==e.id?1/0:e.id;function R(e){u=!1,c=!0,P(e),d.sort(((e,t)=>F(e)-F(t)));try{for(f=0;f<d.length;f++){const e=d[f];e&&!1!==e.active&&i(e,null,14)}}finally{f=0,d.length=0,A(e),c=!1,w=null,(d.length||p.length||m.length)&&R(e)}}new Set;new Map;Object.create(null),Object.create(null);function j(e,t,...n){const o=e.vnode.props||r.kT;let i=n;const a=t.startsWith("update:"),l=a&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:s}=o[e]||r.kT;s?i=n.map((e=>e.trim())):t&&(i=n.map(r.He))}let c;let u=o[c=(0,r.hR)(t)]||o[c=(0,r.hR)((0,r._A)(t))];!u&&a&&(u=o[c=(0,r.hR)((0,r.rs)(t))]),u&&s(u,e,6,i);const d=o[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,s(d,e,6,i)}}function q(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const s=e.emits;let a={},l=!1;if(!(0,r.mf)(e)){const o=e=>{const n=q(e,t,!0);n&&(l=!0,(0,r.l7)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?((0,r.kJ)(s)?s.forEach((e=>a[e]=null)):(0,r.l7)(a,s),o.set(e,a),a):(o.set(e,null),null)}function $(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let M=null,N=null;function I(e){const t=M;return M=e,N=e&&e.type.__scopeId||null,t}function B(e,t=M,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Bt(-1);const r=I(t),i=e(...n);return I(r),o._d&&Bt(1),i};return o._n=!0,o._c=!0,o._d=!0,o}function U(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:s,propsOptions:[l],slots:c,attrs:u,emit:d,render:f,renderCache:p,data:h,setupState:v,ctx:m,inheritAttrs:g}=e;let y;const b=I(e);try{let e;if(4&n.shapeFlag){const t=i||o;y=Xt(f.call(t,t,p,s,v,h,m)),e=u}else{const n=t;0,y=Xt(n.length>1?n(s,{attrs:u,slots:c,emit:d}):n(s,null)),e=t.props?u:z(u)}let a=y;if(e&&!1!==g){const t=Object.keys(e),{shapeFlag:n}=a;t.length&&(1&n||6&n)&&(l&&t.some(r.tR)&&(e=H(e,l)),a=Kt(a,e))}0,n.dirs&&(a.dirs=a.dirs?a.dirs.concat(n.dirs):n.dirs),n.transition&&(a.transition=n.transition),y=a}catch(w){qt.length=0,a(w,e,1),y=Zt(Rt)}return I(b),y}const z=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},H=(e,t)=>{const n={};for(const o in e)(0,r.tR)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function D(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||V(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?V(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!$(c,n))return!0}}return!1}function V(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!$(n,i))return!0}return!1}function J({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const Z=e=>e.__isSuspense;function W(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):L(e)}function K(e,t){if(dn){let n=dn.provides;const o=dn.parent&&dn.parent.provides;o===n&&(n=dn.provides=Object.create(o)),n[e]=t}else 0}function G(e,t,n=!1){const o=dn||M;if(o){const i=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(o.proxy):t}else 0}const Y={};function X(e,t,n){return Q(e,t,n)}function Q(e,t,{immediate:n,deep:a,flush:l,onTrack:c,onTrigger:u}=r.kT,d=dn){let f,p,h=!1,v=!1;if((0,o.dq)(e)?(f=()=>e.value,h=!!e._shallow):(0,o.PG)(e)?(f=()=>e,a=!0):(0,r.kJ)(e)?(v=!0,h=e.some(o.PG),f=()=>e.map((e=>(0,o.dq)(e)?e.value:(0,o.PG)(e)?ne(e):(0,r.mf)(e)?i(e,d,2):void 0))):f=(0,r.mf)(e)?t?()=>i(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),s(e,d,3,[m])}:r.dG,t&&a){const e=f;f=()=>ne(e())}let m=e=>{p=w.options.onStop=()=>{i(e,d,4)}},g=v?[]:Y;const y=()=>{if(w.active)if(t){const e=w();(a||h||(v?e.some(((e,t)=>(0,r.aU)(e,g[t]))):(0,r.aU)(e,g)))&&(p&&p(),s(t,d,3,[e,g===Y?void 0:g,m]),g=e)}else w()};let b;y.allowRecurse=!!t,b="sync"===l?y:"post"===l?()=>yt(y,d&&d.suspense):()=>{!d||d.isMounted?T(y):y()};const w=(0,o.cE)(f,{lazy:!0,onTrack:c,onTrigger:u,scheduler:b});return kn(w,d),t?n?y():g=w():"post"===l?yt(w,d&&d.suspense):w(),()=>{(0,o.sT)(w),d&&(0,r.Od)(d.effects,w)}}function ee(e,t,n){const o=this.proxy,i=(0,r.HD)(e)?e.includes(".")?te(o,e):()=>o[e]:e.bind(o,o);let s;return(0,r.mf)(t)?s=t:(s=t.handler,n=t),Q(i,s.bind(o),n,this)}function te(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function ne(e,t=new Set){if(!(0,r.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),(0,o.dq)(e))ne(e.value,t);else if((0,r.kJ)(e))for(let n=0;n<e.length;n++)ne(e[n],t);else if((0,r.DM)(e)||(0,r._N)(e))e.forEach((e=>{ne(e,t)}));else if((0,r.PO)(e))for(const n in e)ne(e[n],t);return e}function oe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ce((()=>{e.isMounted=!0})),Le((()=>{e.isUnmounting=!0})),e}const re=[Function,Array],ie={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:re,onEnter:re,onAfterEnter:re,onEnterCancelled:re,onBeforeLeave:re,onLeave:re,onAfterLeave:re,onLeaveCancelled:re,onBeforeAppear:re,onAppear:re,onAfterAppear:re,onAppearCancelled:re},setup(e,{slots:t}){const n=fn(),r=oe();let i;return()=>{const s=t.default&&fe(t.default(),!0);if(!s||!s.length)return;const a=(0,o.IU)(e),{mode:l}=a;const c=s[0];if(r.isLeaving)return ce(c);const u=ue(c);if(!u)return ce(c);const d=le(u,a,r,n);de(u,d);const f=n.subTree,p=f&&ue(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const e=v();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==Rt&&(!Ht(u,p)||h)){const e=le(p,a,r,n);if(de(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},ce(c);"in-out"===l&&u.type!==Rt&&(e.delayLeave=(e,t,n)=>{const o=ae(r,p);o[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}},se=ie;function ae(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function le(e,t,n,o){const{appear:r,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:m,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),_=ae(n,e),x=(e,t)=>{e&&s(e,o,9,t)},k={mode:i,persisted:a,beforeEnter(t){let o=l;if(!n.isMounted){if(!r)return;o=m||l}t._leaveCb&&t._leaveCb(!0);const i=_[w];i&&Ht(e,i)&&i.el._leaveCb&&i.el._leaveCb(),x(o,[t])},enter(e){let t=c,o=u,i=d;if(!n.isMounted){if(!r)return;t=g||c,o=y||u,i=b||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,x(t?i:o,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();x(f,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),x(n?v:h,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,p?(p(t,s),p.length<=1&&s()):s()},clone(e){return le(e,t,n,o)}};return k}function ce(e){if(ve(e))return e=Kt(e),e.children=null,e}function ue(e){return ve(e)?e.children?e.children[0]:void 0:e}function de(e,t){6&e.shapeFlag&&e.component?de(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fe(e,t=!1){let n=[],o=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===At?(128&i.patchFlag&&o++,n=n.concat(fe(i.children,t))):(t||i.type!==Rt)&&n.push(i)}if(o>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function pe(e){return(0,r.mf)(e)?{setup:e,name:e.name}:e}const he=e=>!!e.type.__asyncLoader;const ve=e=>e.type.__isKeepAlive;RegExp,RegExp;function me(e,t){return(0,r.kJ)(e)?e.some((e=>me(e,t))):(0,r.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function ge(e,t){be(e,"a",t)}function ye(e,t){be(e,"da",t)}function be(e,t,n=dn){const o=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}e()});if(ke(t,o,n),n){let e=n.parent;while(e&&e.parent)ve(e.parent.vnode)&&we(o,t,n,e),e=e.parent}}function we(e,t,n,o){const i=ke(t,e,o,!0);Pe((()=>{(0,r.Od)(o[t],i)}),n)}function _e(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function xe(e){return 128&e.shapeFlag?e.ssContent:e}function ke(e,t,n=dn,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,o.Jd)(),pn(n);const i=s(t,n,e,r);return pn(null),(0,o.lk)(),i});return r?i.unshift(a):i.push(a),a}}const Se=e=>(t,n=dn)=>(!mn||"sp"===e)&&ke(e,t,n),Ee=Se("bm"),Ce=Se("m"),Oe=Se("bu"),Te=Se("u"),Le=Se("bum"),Pe=Se("um"),Ae=Se("sp"),Fe=Se("rtg"),Re=Se("rtc");function je(e,t=dn){ke("ec",e,t)}let qe=!0;function $e(e){const t=Be(e),n=e.proxy,i=e.ctx;qe=!1,t.beforeCreate&&Ne(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:v,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:_,unmounted:x,render:k,renderTracked:S,renderTriggered:E,errorCaptured:C,serverPrefetch:O,expose:T,inheritAttrs:L,components:P,directives:A,filters:F}=t,R=null;if(d&&Me(d,i,R),l)for(const o in l){const e=l[o];(0,r.mf)(e)&&(i[o]=e.bind(n))}if(s){0;const t=s.call(n,n);0,(0,r.Kn)(t)&&(e.data=(0,o.qj)(t))}if(qe=!0,a)for(const o in a){const e=a[o],t=(0,r.mf)(e)?e.bind(n,n):(0,r.mf)(e.get)?e.get.bind(n,n):r.dG;0;const s=!(0,r.mf)(e)&&(0,r.mf)(e.set)?e.set.bind(n):r.dG,l=Cn({get:t,set:s});Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const o in c)Ie(c[o],i,n,o);if(u){const e=(0,r.mf)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{K(t,e[t])}))}function j(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&Ne(f,e,"c"),j(Ee,p),j(Ce,h),j(Oe,v),j(Te,m),j(ge,g),j(ye,y),j(je,C),j(Re,S),j(Fe,E),j(Le,w),j(Pe,x),j(Ae,O),(0,r.kJ)(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===r.dG&&(e.render=k),null!=L&&(e.inheritAttrs=L),P&&(e.components=P),A&&(e.directives=A)}function Me(e,t,n=r.dG){(0,r.kJ)(e)&&(e=Ve(e));for(const o in e){const n=e[o];(0,r.Kn)(n)?t[o]="default"in n?G(n.from||o,n.default,!0):G(n.from||o):t[o]=G(n)}}function Ne(e,t,n){s((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ie(e,t,n,o){const i=o.includes(".")?te(n,o):()=>n[o];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&X(i,n)}else if((0,r.mf)(e))X(i,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>Ie(e,t,n,o)));else{const o=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(o)&&X(i,o,e)}else 0}function Be(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>Ue(l,e,s,!0))),Ue(l,t,s)):l=t,i.set(t,l),l}function Ue(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Ue(e,i,n,!0),r&&r.forEach((t=>Ue(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=ze[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const ze={data:He,props:Ze,emits:Ze,methods:Ze,computed:Ze,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,destroyed:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Ze,directives:Ze,watch:We,provide:He,inject:De};function He(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function De(e,t){return Ze(Ve(e),Ve(t))}function Ve(e){if((0,r.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function Ze(e,t){return e?(0,r.l7)((0,r.l7)(Object.create(null),e),t):t}function We(e,t){if(!e)return t;if(!t)return e;const n=(0,r.l7)(Object.create(null),e);for(const o in t)n[o]=Je(e[o],t[o]);return n}function Ke(e,t,n,i=!1){const s={},a={};(0,r.Nj)(a,Dt,1),e.propsDefaults=Object.create(null),Ye(e,t,s,a);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:(0,o.Um)(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function Ge(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,o.IU)(s),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let o;Ye(e,t,s,a)&&(d=!0);for(const i in c)t&&((0,r.RI)(t,i)||(o=(0,r.rs)(i))!==i&&(0,r.RI)(t,o))||(u?!n||void 0===n[i]&&void 0===n[o]||(s[i]=Xe(u,c,i,void 0,e,!0)):delete s[i]);if(a!==c)for(const e in a)t&&(0,r.RI)(t,e)||(delete a[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];const l=t[i];if(u)if((0,r.RI)(a,i))l!==a[i]&&(a[i]=l,d=!0);else{const t=(0,r._A)(i);s[t]=Xe(u,c,t,l,e,!1)}else l!==a[i]&&(a[i]=l,d=!0)}}d&&(0,o.X$)(e,"set","$attrs")}function Ye(e,t,n,i){const[s,a]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if((0,r.Gg)(o))continue;const u=t[o];let d;s&&(0,r.RI)(s,d=(0,r._A)(o))?a&&a.includes(d)?(l||(l={}))[d]=u:n[d]=u:$(e.emitsOptions,o)||u!==i[o]&&(i[o]=u,c=!0)}if(a){const t=(0,o.IU)(n),i=l||r.kT;for(let o=0;o<a.length;o++){const l=a[o];n[l]=Xe(s,t,l,i[l],e,!(0,r.RI)(i,l))}}return c}function Xe(e,t,n,o,i,s){const a=e[n];if(null!=a){const e=(0,r.RI)(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&(0,r.mf)(e)){const{propsDefaults:r}=i;n in r?o=r[n]:(pn(i),o=r[n]=e.call(null,t),pn(null))}else o=e}a[0]&&(s&&!e?o=!1:!a[1]||""!==o&&o!==(0,r.rs)(n)||(o=!0))}return o}function Qe(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const s=e.props,a={},l=[];let c=!1;if(!(0,r.mf)(e)){const o=e=>{c=!0;const[n,o]=Qe(e,t,!0);(0,r.l7)(a,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return o.set(e,r.Z6),r.Z6;if((0,r.kJ)(s))for(let d=0;d<s.length;d++){0;const e=(0,r._A)(s[d]);et(e)&&(a[e]=r.kT)}else if(s){0;for(const e in s){const t=(0,r._A)(e);if(et(t)){const n=s[e],o=a[t]=(0,r.kJ)(n)||(0,r.mf)(n)?{type:n}:n;if(o){const e=ot(Boolean,o.type),n=ot(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||(0,r.RI)(o,"default"))&&l.push(t)}}}}const u=[a,l];return o.set(e,u),u}function et(e){return"$"!==e[0]}function tt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function nt(e,t){return tt(e)===tt(t)}function ot(e,t){return(0,r.kJ)(t)?t.findIndex((t=>nt(t,e))):(0,r.mf)(t)&&nt(t,e)?0:-1}const rt=e=>"_"===e[0]||"$stable"===e,it=e=>(0,r.kJ)(e)?e.map(Xt):[Xt(e)],st=(e,t,n)=>{const o=B((e=>it(t(e))),n);return o._c=!1,o},at=(e,t,n)=>{const o=e._ctx;for(const i in e){if(rt(i))continue;const n=e[i];if((0,r.mf)(n))t[i]=st(i,n,o);else if(null!=n){0;const e=it(n);t[i]=()=>e}}},lt=(e,t)=>{const n=it(t);e.slots.default=()=>n},ct=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,o.IU)(t),(0,r.Nj)(t,"_",n)):at(t,e.slots={})}else e.slots={},t&<(e,t);(0,r.Nj)(e.slots,Dt,1)},ut=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,a=r.kT;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:((0,r.l7)(i,t),n||1!==e||delete i._):(s=!t.$stable,at(t,i)),a=t}else t&&(lt(e,t),a={default:1});if(s)for(const r in i)rt(r)||r in a||delete i[r]};function dt(e,t){const n=M;if(null===n)return e;const o=n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[e,n,a,l=r.kT]=t[s];(0,r.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&ne(n),i.push({dir:e,instance:o,value:n,oldValue:void 0,arg:a,modifiers:l})}return e}function ft(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];a&&(c.oldValue=a[l].value);let u=c.dir[r];u&&((0,o.Jd)(),s(u,n,8,[e.el,c,e,t]),(0,o.lk)())}}function pt(){return{app:null,config:{isNativeTag:r.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ht=0;function vt(e,t){return function(n,o=null){null==o||(0,r.Kn)(o)||(o=null);const i=pt(),s=new Set;let a=!1;const l=i.app={_uid:ht++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Tn,get config(){return i.config},set config(e){0},use(e,...t){return s.has(e)||(e&&(0,r.mf)(e.install)?(s.add(e),e.install(l,...t)):(0,r.mf)(e)&&(s.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(r,s,c){if(!a){const u=Zt(n,o);return u.appContext=i,s&&t?t(u,r):e(u,r,c),a=!0,l._container=r,r.__vue_app__=l,u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l}};return l}}function mt(){}const gt={scheduler:S,allowRecurse:!0};const yt=W,bt=(e,t,n,s,a=!1)=>{if((0,r.kJ)(e))return void e.forEach(((e,o)=>bt(e,t&&((0,r.kJ)(t)?t[o]:t),n,s,a)));if(he(s)&&!a)return;const l=4&s.shapeFlag?xn(s.component)||s.component.proxy:s.el,c=a?null:l,{i:u,r:d}=e;const f=t&&t.r,p=u.refs===r.kT?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==d&&((0,r.HD)(f)?(p[f]=null,(0,r.RI)(h,f)&&(h[f]=null)):(0,o.dq)(f)&&(f.value=null)),(0,r.HD)(d)){const e=()=>{p[d]=c,(0,r.RI)(h,d)&&(h[d]=c)};c?(e.id=-1,yt(e,n)):e()}else if((0,o.dq)(d)){const e=()=>{d.value=c};c?(e.id=-1,yt(e,n)):e()}else(0,r.mf)(d)&&i(d,u,12,[c,p])};function wt(e){return _t(e)}function _t(e,t){mt();const{insert:n,remove:i,patchProp:s,forcePatchProp:a,createElement:l,createText:c,createComment:u,setText:d,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=r.dG,cloneNode:m,insertStaticContent:g}=e,y=(e,t,n,o=null,r=null,i=null,s=!1,a=null,l=!!t.dynamicChildren)=>{e&&!Ht(e,t)&&(o=X(e),Z(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Ft:b(e,t,n,o);break;case Rt:w(e,t,n,o);break;case jt:null==e&&_(t,n,o,s);break;case At:j(e,t,n,o,r,i,s,a,l);break;default:1&d?S(e,t,n,o,r,i,s,a,l):6&d?q(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,ee)}null!=u&&r&&bt(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=c(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=g(e.children,t,n,o)},x=({el:e,anchor:t},o,r)=>{let i;while(e&&e!==t)i=h(e),n(e,o,r),e=i;n(t,o,r)},k=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=h(e),i(e),e=n;i(t)},S=(e,t,n,o,r,i,s,a,l)=>{s=s||"svg"===t.type,null==e?E(t,n,o,r,i,s,a,l):L(e,t,r,i,s,a,l)},E=(e,t,o,i,a,c,u,d)=>{let p,h;const{type:v,props:g,shapeFlag:y,transition:b,patchFlag:w,dirs:_}=e;if(e.el&&void 0!==m&&-1===w)p=e.el=m(e.el);else{if(p=e.el=l(e.type,c,g&&g.is,g),8&y?f(p,e.children):16&y&&T(e.children,p,null,i,a,c&&"foreignObject"!==v,u,d),_&&ft(e,null,i,"created"),g){for(const t in g)(0,r.Gg)(t)||s(p,t,null,g[t],c,e.children,i,a,Y);(h=g.onVnodeBeforeMount)&&xt(h,i,e)}O(p,e,e.scopeId,u,i)}_&&ft(e,null,i,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&b&&!b.persisted;x&&b.beforeEnter(p),n(p,t,o),((h=g&&g.onVnodeMounted)||x||_)&&yt((()=>{h&&xt(h,i,e),x&&b.enter(p),_&&ft(e,null,i,"mounted")}),a)},O=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let i=0;i<o.length;i++)v(e,o[i]);if(r){let n=r.subTree;if(t===n){const t=r.vnode;O(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},T=(e,t,n,o,r,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?Qt(e[c]):Xt(e[c]);y(null,l,t,n,o,r,i,s,a)}},L=(e,t,n,o,i,l,c)=>{const u=t.el=e.el;let{patchFlag:d,dynamicChildren:p,dirs:h}=t;d|=16&e.patchFlag;const v=e.props||r.kT,m=t.props||r.kT;let g;if((g=m.onVnodeBeforeUpdate)&&xt(g,n,t,e),h&&ft(t,e,n,"beforeUpdate"),d>0){if(16&d)R(u,t,v,m,n,o,i);else if(2&d&&v.class!==m.class&&s(u,"class",null,m.class,i),4&d&&s(u,"style",v.style,m.style,i),8&d){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const l=r[t],c=v[l],d=m[l];(d!==c||a&&a(u,l))&&s(u,l,c,d,i,e.children,n,o,Y)}}1&d&&e.children!==t.children&&f(u,t.children)}else c||null!=p||R(u,t,v,m,n,o,i);const y=i&&"foreignObject"!==t.type;p?F(e.dynamicChildren,p,u,n,o,y,l):c||B(e,t,u,null,n,o,y,l,!1),((g=m.onVnodeUpdated)||h)&&yt((()=>{g&&xt(g,n,t,e),h&&ft(t,e,n,"updated")}),o)},F=(e,t,n,o,r,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===At||!Ht(l,c)||6&l.shapeFlag||64&l.shapeFlag)?p(l.el):n;y(l,c,u,null,o,r,i,s,!0)}},R=(e,t,n,o,i,l,c)=>{if(n!==o){for(const u in o){if((0,r.Gg)(u))continue;const d=o[u],f=n[u];(d!==f||a&&a(e,u))&&s(e,u,f,d,c,t.children,i,l,Y)}if(n!==r.kT)for(const a in n)(0,r.Gg)(a)||a in o||s(e,a,n[a],null,c,t.children,i,l,Y)}},j=(e,t,o,r,i,s,a,l,u)=>{const d=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;h&&(u=!0),v&&(l=l?l.concat(v):v),null==e?(n(d,o,r),n(f,o,r),T(t.children,o,f,i,s,a,l,u)):p>0&&64&p&&h&&e.dynamicChildren?(F(e.dynamicChildren,h,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&kt(e,t,!0)):B(e,t,o,f,i,s,a,l,u)},q=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):$(t,n,o,r,i,s,l):M(e,t,l)},$=(e,t,n,o,r,i,s)=>{const a=e.component=un(e,o,r);if(ve(e)&&(a.ctx.renderer=ee),gn(a),a.asyncDep){if(r&&r.registerDep(a,N),!e.el){const e=a.subTree=Zt(Rt);w(null,e,t,n)}}else N(a,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(D(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void I(o,t,n);o.next=t,C(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},N=(e,t,n,i,s,a,l)=>{e.update=(0,o.cE)((function(){if(e.isMounted){let t,{next:n,bu:o,u:i,parent:c,vnode:u}=e,d=n;0,n?(n.el=u.el,I(e,n,l)):n=u,o&&(0,r.ir)(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&xt(t,c,n,u);const f=U(e);0;const h=e.subTree;e.subTree=f,y(h,f,p(h.el),X(h),e,s,a),n.el=f.el,null===d&&J(e,f.el),i&&yt(i,s),(t=n.props&&n.props.onVnodeUpdated)&&yt((()=>xt(t,c,n,u)),s)}else{let o;const{el:l,props:c}=t,{bm:u,m:d,parent:f}=e;if(u&&(0,r.ir)(u),(o=c&&c.onVnodeBeforeMount)&&xt(o,f,t),l&&ne){const n=()=>{e.subTree=U(e),ne(l,e.subTree,e,s,null)};he(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const o=e.subTree=U(e);0,y(null,o,n,i,e,s,a),t.el=o.el}if(d&&yt(d,s),o=c&&c.onVnodeMounted){const e=t;yt((()=>xt(o,f,e)),s)}256&t.shapeFlag&&e.a&&yt(e.a,s),e.isMounted=!0,t=n=i=null}}),gt)},I=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,Ge(e,t.props,r,n),ut(e,t.children,n),(0,o.Jd)(),P(void 0,e.update),(0,o.lk)()},B=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(c,d,n,o,r,i,s,a,l);if(256&p)return void z(c,d,n,o,r,i,s,a,l)}8&h?(16&u&&Y(c,r,i),d!==c&&f(n,d)):16&u?16&h?H(c,d,n,o,r,i,s,a,l):Y(c,r,i,!0):(8&u&&f(n,""),16&h&&T(d,n,o,r,i,s,a,l))},z=(e,t,n,o,i,s,a,l,c)=>{e=e||r.Z6,t=t||r.Z6;const u=e.length,d=t.length,f=Math.min(u,d);let p;for(p=0;p<f;p++){const o=t[p]=c?Qt(t[p]):Xt(t[p]);y(e[p],o,n,null,i,s,a,l,c)}u>d?Y(e,i,s,!0,!1,f):T(t,n,o,i,s,a,l,c,f)},H=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;while(u<=f&&u<=p){const o=e[u],r=t[u]=c?Qt(t[u]):Xt(t[u]);if(!Ht(o,r))break;y(o,r,n,null,i,s,a,l,c),u++}while(u<=f&&u<=p){const o=e[f],r=t[p]=c?Qt(t[p]):Xt(t[p]);if(!Ht(o,r))break;y(o,r,n,null,i,s,a,l,c),f--,p--}if(u>f){if(u<=p){const e=p+1,r=e<d?t[e].el:o;while(u<=p)y(null,t[u]=c?Qt(t[u]):Xt(t[u]),n,r,i,s,a,l,c),u++}}else if(u>p)while(u<=f)Z(e[u],i,s,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=p;u++){const e=t[u]=c?Qt(t[u]):Xt(t[u]);null!=e.key&&m.set(e.key,u)}let g,b=0;const w=p-v+1;let _=!1,x=0;const k=new Array(w);for(u=0;u<w;u++)k[u]=0;for(u=h;u<=f;u++){const o=e[u];if(b>=w){Z(o,i,s,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(g=v;g<=p;g++)if(0===k[g-v]&&Ht(o,t[g])){r=g;break}void 0===r?Z(o,i,s,!0):(k[r-v]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,a,l,c),b++)}const S=_?St(k):r.Z6;for(g=S.length-1,u=w-1;u>=0;u--){const e=v+u,r=t[e],f=e+1<d?t[e+1].el:o;0===k[u]?y(null,r,n,f,i,s,a,l,c):_&&(g<0||u!==S[g]?V(r,n,f,2):g--)}}},V=(e,t,o,r,i=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void a.move(e,t,o,ee);if(a===At){n(s,t,o);for(let e=0;e<c.length;e++)V(c[e],t,o,r);return void n(e.anchor,t,o)}if(a===jt)return void x(e,t,o);const d=2!==r&&1&u&&l;if(d)if(0===r)l.beforeEnter(s),n(s,t,o),yt((()=>l.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o)},Z=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=a&&bt(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f;let h;if((h=s&&s.onVnodeBeforeUnmount)&&xt(h,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);p&&ft(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,ee,o):c&&(i!==At||d>0&&64&d)?Y(c,t,n,!1,!0):(i===At&&(128&d||256&d)||!r&&16&u)&&Y(l,t,n),o&&W(e)}((h=s&&s.onVnodeUnmounted)||p)&&yt((()=>{h&&xt(h,t,e),p&&ft(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===At)return void K(n,o);if(t===jt)return void k(e);const s=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,s);o?o(e.el,s,i):i()}else s()},K=(e,t)=>{let n;while(e!==t)n=h(e),i(e),e=n;i(t)},G=(e,t,n)=>{const{bum:i,effects:s,update:a,subTree:l,um:c}=e;if(i&&(0,r.ir)(i),s)for(let r=0;r<s.length;r++)(0,o.sT)(s[r]);a&&((0,o.sT)(a),Z(l,e,t,n)),c&&yt(c,t),yt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s<e.length;s++)Z(e[s],t,n,o,r)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),Q=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),A(),t._vnode=e},ee={p:y,um:Z,m:V,r:W,mt:$,mc:T,pc:B,pbc:F,n:X,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Q,hydrate:te,createApp:vt(Q,te)}}function xt(e,t,n,o=null){s(e,t,7,[n,o])}function kt(e,t,n=!1){const o=e.children,i=t.children;if((0,r.kJ)(o)&&(0,r.kJ)(i))for(let r=0;r<o.length;r++){const e=o[r];let t=i[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[r]=Qt(i[r]),t.el=e.el),n||kt(e,t))}}function St(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}i=0,s=n.length-1;while(i<s)a=(i+s)/2|0,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];while(i-- >0)n[i]=s,s=t[s];return n}const Et=e=>e.__isTeleport;const Ct="components";function Ot(e,t){return Lt(Ct,e,!0,t)||e}const Tt=Symbol();function Lt(e,t,n=!0,o=!1){const i=M||dn;if(i){const n=i.type;if(e===Ct){const e=Sn(n);if(e&&(e===t||e===(0,r._A)(t)||e===(0,r.kC)((0,r._A)(t))))return n}const s=Pt(i[e]||n[e],t)||Pt(i.appContext[e],t);return!s&&o?n:s}}function Pt(e,t){return e&&(e[t]||e[(0,r._A)(t)]||e[(0,r.kC)((0,r._A)(t))])}const At=Symbol(void 0),Ft=Symbol(void 0),Rt=Symbol(void 0),jt=Symbol(void 0),qt=[];let $t=null;function Mt(e=!1){qt.push($t=e?null:[])}function Nt(){qt.pop(),$t=qt[qt.length-1]||null}let It=1;function Bt(e){It+=e}function Ut(e,t,n,o,i){const s=Zt(e,t,n,o,i,!0);return s.dynamicChildren=It>0?$t||r.Z6:null,Nt(),It>0&&$t&&$t.push(s),s}function zt(e){return!!e&&!0===e.__v_isVNode}function Ht(e,t){return e.type===t.type&&e.key===t.key}const Dt="__vInternal",Vt=({key:e})=>null!=e?e:null,Jt=({ref:e})=>null!=e?(0,r.HD)(e)||(0,o.dq)(e)||(0,r.mf)(e)?{i:M,r:e}:e:null,Zt=Wt;function Wt(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==Tt||(e=Rt),zt(e)){const o=Kt(e,t,!0);return n&&en(o,n),o}if(En(e)&&(e=e.__vccOpts),t){((0,o.X3)(t)||Dt in t)&&(t=(0,r.l7)({},t));let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,o.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}const l=(0,r.HD)(e)?1:Z(e)?128:Et(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0;const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vt(t),ref:t&&Jt(t),scopeId:N,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:l,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null};return en(c,n),128&l&&e.normalize(c),It>0&&!a&&$t&&(i>0||6&l)&&32!==i&&$t.push(c),c}function Kt(e,t,n=!1){const{props:o,ref:i,patchFlag:s,children:a}=e,l=t?tn(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Vt(l),ref:t&&t.ref?n&&i?(0,r.kJ)(i)?i.concat(Jt(t)):[i,Jt(t)]:Jt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==At?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor};return c}function Gt(e=" ",t=0){return Zt(Ft,null,e,t)}function Yt(e="",t=!1){return t?(Mt(),Ut(Rt,null,e)):Zt(Rt,null,e)}function Xt(e){return null==e||"boolean"===typeof e?Zt(Rt):(0,r.kJ)(e)?Zt(At,null,e.slice()):"object"===typeof e?Qt(e):Zt(Ft,null,String(e))}function Qt(e){return null===e.el?e:Kt(e)}function en(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"===typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),en(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Dt in t?3===o&&M&&(1===M.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=M}}else(0,r.mf)(t)?(t={default:t,_ctx:M},n=32):(t=String(t),64&o?(n=16,t=[Gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function tn(...e){const t=(0,r.l7)({},e[0]);for(let n=1;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=(0,r.C_)([t.class,o.class]));else if("style"===e)t.style=(0,r.j5)([t.style,o.style]);else if((0,r.F7)(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}function nn(e,t){let n;if((0,r.kJ)(e)||(0,r.HD)(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o)}else if("number"===typeof e){0,n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o)}else if((0,r.Kn)(e))if(e[Symbol.iterator])n=Array.from(e,t);else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,i=o.length;r<i;r++){const i=o[r];n[r]=t(e[i],i,r)}}else n=[];return n}const on=e=>e?hn(e)?xn(e)||e.proxy:on(e.parent):null,rn=(0,r.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>on(e.parent),$root:e=>on(e.root),$emit:e=>e.emit,$options:e=>Be(e),$forceUpdate:e=>()=>S(e.update),$nextTick:e=>x.bind(e.proxy),$watch:e=>ee.bind(e)}),sn={get({_:e},t){const{ctx:n,setupState:i,data:s,props:a,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const o=l[t];if(void 0!==o)switch(o){case 0:return i[t];case 1:return s[t];case 3:return n[t];case 2:return a[t]}else{if(i!==r.kT&&(0,r.RI)(i,t))return l[t]=0,i[t];if(s!==r.kT&&(0,r.RI)(s,t))return l[t]=1,s[t];if((d=e.propsOptions[0])&&(0,r.RI)(d,t))return l[t]=2,a[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=3,n[t];qe&&(l[t]=4)}}const f=rn[t];let p,h;return f?("$attrs"===t&&(0,o.j)(e,"get",t),f(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=3,n[t]):(h=u.config.globalProperties,(0,r.RI)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;if(i!==r.kT&&(0,r.RI)(i,t))i[t]=n;else if(o!==r.kT&&(0,r.RI)(o,t))o[t]=n;else if((0,r.RI)(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:s}},a){let l;return void 0!==n[a]||e!==r.kT&&(0,r.RI)(e,a)||t!==r.kT&&(0,r.RI)(t,a)||(l=s[0])&&(0,r.RI)(l,a)||(0,r.RI)(o,a)||(0,r.RI)(rn,a)||(0,r.RI)(i.config.globalProperties,a)}};const an=(0,r.l7)({},sn,{get(e,t){if(t!==Symbol.unscopables)return sn.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!(0,r.e1)(t);return n}});const ln=pt();let cn=0;function un(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||ln,s={uid:cn++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qe(o,i),emitsOptions:q(o,i),emit:null,emitted:null,propsDefaults:r.kT,inheritAttrs:o.inheritAttrs,ctx:r.kT,data:r.kT,props:r.kT,attrs:r.kT,slots:r.kT,refs:r.kT,setupState:r.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=j.bind(null,s),s}let dn=null;const fn=()=>dn||M,pn=e=>{dn=e};function hn(e){return 4&e.vnode.shapeFlag}let vn,mn=!1;function gn(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=hn(e);Ke(e,n,r,t),ct(e,o);const i=r?yn(e,t):void 0;return mn=!1,i}function yn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,o.Xl)(new Proxy(e.ctx,sn));const{setup:s}=n;if(s){const n=e.setupContext=s.length>1?_n(e):null;dn=e,(0,o.Jd)();const l=i(s,e,0,[e.props,n]);if((0,o.lk)(),dn=null,(0,r.tI)(l)){const n=()=>{dn=null};if(l.then(n,n),t)return l.then((n=>{bn(e,n,t)})).catch((t=>{a(t,e,0)}));e.asyncDep=l}else bn(e,l,t)}else wn(e,t)}function bn(e,t,n){(0,r.mf)(t)?e.render=t:(0,r.Kn)(t)&&(e.setupState=(0,o.WL)(t)),wn(e,n)}function wn(e,t,n){const i=e.type;if(!e.render){if(vn&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:s},o),a);i.render=vn(t,l)}}e.render=i.render||r.dG,e.render._rc&&(e.withProxy=new Proxy(e.ctx,an))}dn=e,(0,o.Jd)(),$e(e),(0,o.lk)(),dn=null}function _n(e){const t=t=>{e.exposed=t||{}};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}function xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,o.WL)((0,o.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in rn?rn[n](e):void 0}}))}function kn(e,t=dn){t&&(t.effects||(t.effects=[])).push(e)}function Sn(e){return(0,r.mf)(e)&&e.displayName||e.name}function En(e){return(0,r.mf)(e)&&"__vccOpts"in e}function Cn(e){const t=(0,o.Fl)(e);return kn(t.effect),t}function On(e,t,n){const o=arguments.length;return 2===o?(0,r.Kn)(t)&&!(0,r.kJ)(t)?zt(t)?Zt(e,null,[t]):Zt(e,t):Zt(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&zt(n)&&(n=[n]),Zt(e,t,n))}Symbol("");const Tn="3.1.5"},8880:(e,t,n)=>{"use strict";n.d(t,{uT:()=>N,ri:()=>oe});var o=n(2323),r=n(3673);n(1959);const i="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,a=new Map,l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?s.createElementNS(i,e):s.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>s.createTextNode(e),createComment:e=>s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let i=a.get(e);if(!i){const t=s.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,i=t.content,o){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}a.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function c(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function u(e,t,n){const r=e.style;if(n)if((0,o.HD)(n)){if(t!==n){const t=r.display;r.cssText=n,"_vod"in e&&(r.display=t)}}else{for(const e in n)f(r,e,n[e]);if(t&&!(0,o.HD)(t))for(const e in t)null==n[e]&&f(r,e,"")}else e.removeAttribute("style")}const d=/\s*!important$/;function f(e,t,n){if((0,o.kJ)(n))n.forEach((n=>f(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=v(e,t);d.test(n)?e.setProperty((0,o.rs)(r),n.replace(d,""),"important"):e[r]=n}}const p=["Webkit","Moz","ms"],h={};function v(e,t){const n=h[t];if(n)return n;let r=(0,o._A)(t);if("filter"!==r&&r in e)return h[t]=r;r=(0,o.kC)(r);for(let o=0;o<p.length;o++){const n=p[o]+r;if(n in e)return h[t]=n}return t}const m="http://www.w3.org/1999/xlink";function g(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(m,t.slice(6,t.length)):e.setAttributeNS(m,t,n);else{const r=(0,o.Pq)(t);null==n||r&&!1===n?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function y(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if(""===n&&"boolean"===o)return void(e[t]=!0);if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(a){}return void e.removeAttribute(t)}}try{e[t]=n}catch(l){0}}let b=Date.now,w=!1;if("undefined"!==typeof window){b()>document.createEvent("Event").timeStamp&&(b=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);w=!!(e&&Number(e[1])<=53)}let _=0;const x=Promise.resolve(),k=()=>{_=0},S=()=>_||(x.then(k),_=b());function E(e,t,n,o){e.addEventListener(t,n,o)}function C(e,t,n,o){e.removeEventListener(t,n,o)}function O(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=L(t);if(o){const s=i[t]=P(o,r);E(e,n,s,a)}else s&&(C(e,n,s,a),i[t]=void 0)}}const T=/(?:Once|Passive|Capture)$/;function L(e){let t;if(T.test(e)){let n;t={};while(n=e.match(T))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,o.rs)(e.slice(2)),t]}function P(e,t){const n=e=>{const o=e.timeStamp||b();(w||o>=n.attached-1)&&(0,r.$d)(A(e,n.value),t,5,[e])};return n.value=e,n.attached=S(),n}function A(e,t){if((0,o.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}const F=/^on[a-z]/,R=(e,t)=>"value"===t,j=(e,t,n,r,i=!1,s,a,l,d)=>{switch(t){case"class":c(e,r,i);break;case"style":u(e,n,r);break;default:(0,o.F7)(t)?(0,o.tR)(t)||O(e,t,n,r,a):q(e,t,r,i)?y(e,t,r,s,a,l,d):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),g(e,t,r,i));break}};function q(e,t,n,r){return r?"innerHTML"===t||!!(t in e&&F.test(t)&&(0,o.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!F.test(t)||!(0,o.HD)(n))&&t in e))))}const $="transition",M="animation",N=(e,{slots:t})=>(0,r.h)(r.P$,z(e),t);N.displayName="Transition";const I={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},B=(N.props=(0,o.l7)({},r.P$.props,I),(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),U=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function z(e){const t={};for(const o in e)o in I||(t[o]=e[o]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=H(i),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:S=b,onAppearCancelled:E=w}=t,C=(e,t,n)=>{J(e,t?d:l),J(e,t?u:a),n&&n()},O=(e,t)=>{J(e,h),J(e,p),t&&t()},T=e=>(t,n)=>{const o=e?S:b,i=()=>C(t,e,n);B(o,[t,i]),Z((()=>{J(t,e?c:s),V(t,e?d:l),U(o)||K(t,r,m,i)}))};return(0,o.l7)(t,{onBeforeEnter(e){B(y,[e]),V(e,s),V(e,a)},onBeforeAppear(e){B(k,[e]),V(e,c),V(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){const n=()=>O(e,t);V(e,f),Q(),V(e,p),Z((()=>{J(e,f),V(e,h),U(_)||K(e,r,g,n)})),B(_,[e,n])},onEnterCancelled(e){C(e,!1),B(w,[e])},onAppearCancelled(e){C(e,!0),B(E,[e])},onLeaveCancelled(e){O(e),B(x,[e])}})}function H(e){if(null==e)return null;if((0,o.Kn)(e))return[D(e.enter),D(e.leave)];{const t=D(e);return[t,t]}}function D(e){const t=(0,o.He)(e);return t}function V(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function J(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Z(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let W=0;function K(e,t,n,o){const r=e._endId=++W,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=G(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),a+1),e.addEventListener(c,f)}function G(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o($+"Delay"),i=o($+"Duration"),s=Y(r,i),a=o(M+"Delay"),l=o(M+"Duration"),c=Y(a,l);let u=null,d=0,f=0;t===$?s>0&&(u=$,d=s,f=i.length):t===M?c>0&&(u=M,d=c,f=l.length):(d=Math.max(s,c),u=d>0?s>c?$:M:null,f=u?u===$?i.length:l.length:0);const p=u===$&&/\b(transform|all)(,|$)/.test(n[$+"Property"]);return{type:u,timeout:d,propCount:f,hasTransform:p}}function Y(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>X(t)+X(e[n]))))}function X(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Q(){return document.body.offsetHeight}new WeakMap,new WeakMap;const ee=(0,o.l7)({patchProp:j,forcePatchProp:R},l);let te;function ne(){return te||(te=(0,r.Us)(ee))}const oe=(...e)=>{const t=ne().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=re(e);if(!r)return;const i=t._component;(0,o.mf)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function re(e){if((0,o.HD)(e)){const t=document.querySelector(e);return t}return e}},2323:(e,t,n)=>{"use strict";function o(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{Z6:()=>b,kT:()=>y,NO:()=>_,dG:()=>w,_A:()=>J,kC:()=>K,Nj:()=>Q,l7:()=>E,aU:()=>Y,RI:()=>T,rs:()=>W,ir:()=>X,kJ:()=>L,mf:()=>R,e1:()=>i,S0:()=>z,_N:()=>P,tR:()=>S,Kn:()=>$,F7:()=>k,PO:()=>U,tI:()=>M,Gg:()=>H,DM:()=>A,Pq:()=>a,HD:()=>j,yk:()=>q,WV:()=>h,hq:()=>v,fY:()=>o,C_:()=>f,j5:()=>l,Od:()=>C,zw:()=>m,hR:()=>G,He:()=>ee,W7:()=>B});const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",i=o(r);const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=o(s);function l(e){if(L(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=l(j(o)?d(o):o);if(r)for(const e in r)t[e]=r[e]}return t}if($(e))return e}const c=/;(?![^(]*\))/g,u=/:(.+)/;function d(e){const t={};return e.split(c).forEach((e=>{if(e){const n=e.split(u);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function f(e){let t="";if(j(e))t=e;else if(L(e))for(let n=0;n<e.length;n++){const o=f(e[n]);o&&(t+=o+" ")}else if($(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function p(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=h(e[o],t[o]);return n}function h(e,t){if(e===t)return!0;let n=F(e),o=F(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=L(e),o=L(t),n||o)return!(!n||!o)&&p(e,t);if(n=$(e),o=$(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!h(e[n],t[n]))return!1}}return String(e)===String(t)}function v(e,t){return e.findIndex((e=>h(e,t)))}const m=e=>null==e?"":$(e)?JSON.stringify(e,g,2):String(e),g=(e,t)=>P(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!$(t)||L(t)||U(t)?t:String(t),y={},b=[],w=()=>{},_=()=>!1,x=/^on[^a-z]/,k=e=>x.test(e),S=e=>e.startsWith("onUpdate:"),E=Object.assign,C=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O=Object.prototype.hasOwnProperty,T=(e,t)=>O.call(e,t),L=Array.isArray,P=e=>"[object Map]"===I(e),A=e=>"[object Set]"===I(e),F=e=>e instanceof Date,R=e=>"function"===typeof e,j=e=>"string"===typeof e,q=e=>"symbol"===typeof e,$=e=>null!==e&&"object"===typeof e,M=e=>$(e)&&R(e.then)&&R(e.catch),N=Object.prototype.toString,I=e=>N.call(e),B=e=>I(e).slice(8,-1),U=e=>"[object Object]"===I(e),z=e=>j(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,H=o(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>{const o=t[n];return o||(t[n]=e(n))}},V=/-(\w)/g,J=D((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),Z=/\B([A-Z])/g,W=D((e=>e.replace(Z,"-$1").toLowerCase())),K=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),G=D((e=>e?`on${K(e)}`:"")),Y=(e,t)=>e!==t&&(e===e||t===t),X=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Q=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ee=e=>{const t=parseFloat(e);return isNaN(t)?e:t}},52:(e,t,n)=>{e.exports=n(7974)},8699:(e,t,n)=>{"use strict";var o=n(7210),r=n(4923),i=n(3634),s=n(7696),a=n(9835),l=n(3423),c=n(8365),u=n(701);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers;o.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+v)}var m=a(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),s(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var o="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?p.response:p.responseText,s={data:i,status:p.status,statusText:p.statusText,headers:o,config:e,request:p};r(t,n,s),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},o.isStandardBrowserEnv()){var g=(e.withCredentials||c(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&o.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},7974:(e,t,n)=>{"use strict";var o=n(7210),r=n(2938),i=n(8799),s=n(4495),a=n(7079);function l(e){var t=new i(e),n=r(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var c=l(a);c.Axios=i,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n(6678),c.CancelToken=n(8858),c.isCancel=n(6029),c.all=function(e){return Promise.all(e)},c.spread=n(5178),c.isAxiosError=n(5615),e.exports=c,e.exports.default=c},6678:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},8858:(e,t,n)=>{"use strict";var o=n(6678);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},6029:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8799:(e,t,n)=>{"use strict";var o=n(7210),r=n(7696),i=n(2591),s=n(516),a=n(4495);function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,o){return this.request(a(o||{},{method:e,url:t,data:n}))}})),e.exports=l},2591:(e,t,n)=>{"use strict";var o=n(7210);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},9835:(e,t,n)=>{"use strict";var o=n(8380),r=n(6092);e.exports=function(e,t){return e&&!o(t)?r(e,t):t}},701:(e,t,n)=>{"use strict";var o=n(654);e.exports=function(e,t,n,r,i){var s=new Error(e);return o(s,t,n,r,i)}},516:(e,t,n)=>{"use strict";var o=n(7210),r=n(4330),i=n(6029),s=n(7079);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},654:e=>{"use strict";e.exports=function(e,t,n,o,r){return e.config=t,n&&(e.code=n),e.request=o,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},4495:(e,t,n)=>{"use strict";var o=n(7210);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function c(r){o.isUndefined(t[r])?o.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}o.forEach(r,(function(e){o.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),o.forEach(i,c),o.forEach(s,(function(r){o.isUndefined(t[r])?o.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])})),o.forEach(a,(function(o){o in t?n[o]=l(e[o],t[o]):o in e&&(n[o]=l(void 0,e[o]))}));var u=r.concat(i).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return o.forEach(d,c),n}},4923:(e,t,n)=>{"use strict";var o=n(701);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(o("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4330:(e,t,n)=>{"use strict";var o=n(7210);e.exports=function(e,t,n){return o.forEach(n,(function(n){e=n(e,t)})),e}},7079:(e,t,n)=>{"use strict";var o=n(7210),r=n(4733),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8699)),e}var l={adapter:a(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(i)})),e.exports=l},2938:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},7696:(e,t,n)=>{"use strict";var o=n(7210);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},6092:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3634:(e,t,n)=>{"use strict";var o=n(7210);e.exports=o.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(r)&&a.push("path="+r),o.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},8380:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5615:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},8365:(e,t,n)=>{"use strict";var o=n(7210);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},4733:(e,t,n)=>{"use strict";var o=n(7210);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},3423:(e,t,n)=>{"use strict";var o=n(7210),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},5178:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7210:(e,t,n)=>{"use strict";var o=n(2938),r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function f(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function v(e){return"[object Date]"===r.call(e)}function m(e){return"[object File]"===r.call(e)}function g(e){return"[object Blob]"===r.call(e)}function y(e){return"[object Function]"===r.call(e)}function b(e){return p(e)&&y(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function S(){var e={};function t(t,n){h(e[n])&&h(t)?e[n]=S(e[n],t):h(t)?e[n]=S({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,o=arguments.length;n<o;n++)k(arguments[n],t);return e}function E(e,t,n){return k(t,(function(t,r){e[r]=n&&"function"===typeof t?o(t,n):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:d,isNumber:f,isObject:p,isPlainObject:h,isUndefined:s,isDate:v,isFile:m,isBlob:g,isFunction:y,isStream:b,isURLSearchParams:w,isStandardBrowserEnv:x,forEach:k,merge:S,extend:E,trim:_,stripBOM:C}},5429:e=>{function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},515:(e,t,n)=>{var o=n(5429);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},9119:(e,t,n)=>{var o=n(2094);function r(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},2094:e=>{function t(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},1828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var o=n(515),r=n.n(o),i=n(3673),s=n(1959),a=n(8880),l=n(4554),c=n(2417);const u={size:{type:[Number,String],default:"1em"},color:String};function d(e){return{cSize:(0,i.Fl)((()=>e.size in c.Ok?`${c.Ok[e.size]}px`:e.size)),classes:(0,i.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}const f=(0,i.aZ)({name:"QSpinner",props:r()(r()({},u),{},{thickness:{type:Number,default:5}}),setup(e){const{cSize:t,classes:n}=d(e);return()=>(0,i.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,i.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});var p=n(2012),h=n(4716),v=n(1436);function m(e,t=250){let n,o=!1;return function(){return!1===o&&(o=!0,setTimeout((()=>{o=!1}),t),n=e.apply(this,arguments)),n}}function g(e,t,n,o){!0===n.modifiers.stop&&(0,h.sT)(e);const r=n.modifiers.color;let i=n.modifiers.center;i=!0===i||!0===o;const s=document.createElement("span"),a=document.createElement("span"),l=(0,h.FK)(e),{left:c,top:u,width:d,height:f}=t.getBoundingClientRect(),v=Math.sqrt(d*d+f*f),m=v/2,g=(d-v)/2+"px",y=i?g:l.left-c-m+"px",b=(f-v)/2+"px",w=i?b:l.top-u-m+"px";a.className="q-ripple__inner",(0,p.iv)(a,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${y},${w},0) scale3d(.2,.2,1)`,opacity:0}),s.className="q-ripple"+(r?" text-"+r:""),s.setAttribute("dir","ltr"),s.appendChild(a),t.appendChild(s);const _=()=>{s.remove(),clearTimeout(x)};n.abort.push(_);let x=setTimeout((()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${g},${b},0) scale3d(1,1,1)`,a.style.opacity=.2,x=setTimeout((()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,x=setTimeout((()=>{s.remove(),n.abort.splice(n.abort.indexOf(_),1)}),275)}),250)}),50)}function y(e,{modifiers:t,value:n,arg:o,instance:r}){const i=Object.assign({},r.$q.config.ripple,t,n);e.modifiers={early:!0===i.early,stop:!0===i.stop,center:!0===i.center,color:i.color||o,keyCodes:[].concat(i.keyCodes||13)}}const b={name:"ripple",beforeMount(e,t){const n={enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&(!0===n.modifiers.early?!0===["mousedown","touchstart"].includes(t.type):"click"===t.type)&&g(t,e,n,!0===t.qKeyEvent)},keystart:m((t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===(0,v.So)(t,n.modifiers.keyCodes)&&t.type==="key"+(!0===n.modifiers.early?"down":"up")&&g(t,e,n,!0)}),300)};y(n,t),e.__qripple=n,(0,h.M0)(n,"main",[[e,"mousedown","start","passive"],[e,"touchstart","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&y(n,t)}},beforeUnmount(e){const t=e.__qripple;t.abort.forEach((e=>{e()})),(0,h.ul)(t,"main"),delete e._qripple}};n(7280),n(9377);const w={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},_=Object.keys(w),x={align:{type:String,validator:e=>_.includes(e)}};function k(e){return(0,i.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${w[t]}`}))}var S=n(7277);const E={none:0,xs:4,sm:8,md:16,lg:24,xl:32},C={xs:8,sm:10,md:14,lg:20,xl:24},O=r()(r()(r()({},c.LU),S.$),{},{type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:r()(r()({},x.align),{},{default:"center"}),stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean});function T(e){const t=(0,c.ZP)(e,C),n=k(e),{hasLink:o,linkProps:r,navigateToLink:s}=(0,S.Z)(),a=(0,i.Fl)((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in E?E[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),l=(0,i.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),u=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.loading)),d=(0,i.Fl)((()=>!0===u.value?e.tabindex||0:-1)),f=(0,i.Fl)((()=>"a"===e.type||!0===o.value)),p=(0,i.Fl)((()=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":"standard")),h=(0,i.Fl)((()=>{const t={tabindex:d.value};return"a"!==e.type&&(t.type=e.type),!0===o.value?Object.assign(t,r.value):t.role="a"===e.type?"link":"button",!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),t})),v=(0,i.Fl)((()=>{let t;return void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`),`q-btn--${p.value} q-btn--`+(!0===e.round?"round":"rectangle"+(!0===l.value?" q-btn--rounded":""))+(void 0!==t?" "+t:"")+(!0===u.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")})),m=(0,i.Fl)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:v,style:a,innerClasses:m,attributes:h,hasLink:o,isLink:f,navigateToLink:s,isActionable:u}}var L=n(7657);const{passiveCapture:P}=h.rU;let A=null,F=null,R=null;const j=(0,i.aZ)({name:"QBtn",props:r()(r()({},O),{},{percentage:Number,darkPercentage:Boolean}),emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=(0,i.FN)(),{classes:c,style:u,innerClasses:d,attributes:p,hasLink:m,isLink:g,navigateToLink:y,isActionable:w}=T(e),_=(0,s.iH)(null),x=(0,s.iH)(null);let k,S,E=null;const C=(0,i.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),O=(0,i.Fl)((()=>!1!==e.ripple&&r()({keyCodes:!0===g.value?[13,32]:[13]},!0===e.ripple?{}:e.ripple))),j=(0,i.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),q=(0,i.Fl)((()=>!0===e.loading?{onMousedown:D,onTouchstartPassive:D,onClick:D,onKeydown:D,onKeyup:D}:!0===w.value?{onClick:N,onKeydown:I,onMousedown:U,onTouchstartPassive:B}:{onClick:h.NS})),$=(0,i.Fl)((()=>[[b,O.value,void 0,{center:e.round}]])),M=(0,i.Fl)((()=>r()(r()({ref:_,class:"q-btn q-btn-item non-selectable no-outline "+c.value,style:u.value},p.value),q.value)));function N(t){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===_.value.contains(n)&&!1===n.contains(_.value)){_.value.focus();const e=()=>{document.removeEventListener("keydown",h.NS,!0),document.removeEventListener("keyup",e,P),null!==_.value&&_.value.removeEventListener("blur",e,P)};document.addEventListener("keydown",h.NS,!0),document.addEventListener("keyup",e,P),_.value.addEventListener("blur",e,P)}}if(!0===m.value){const e=()=>{t.__qNavigate=!0,y(t)};n("click",t,e),!0!==t.defaultPrevented&&e()}else n("click",t)}function I(e){!0===(0,v.So)(e,[13,32])&&((0,h.NS)(e),F!==_.value&&(null!==F&&H(),_.value.focus(),F=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("keyup",z,!0),_.value.addEventListener("blur",z,P))),n("keydown",e)}function B(e){A!==_.value&&(null!==A&&H(),A=_.value,E=e.target,E.addEventListener("touchcancel",z,P),E.addEventListener("touchend",z,P)),k=!0,clearTimeout(S),S=setTimeout((()=>{k=!1}),200),n("touchstart",e)}function U(e){R!==_.value&&(null!==R&&H(),R=_.value,_.value.classList.add("q-btn--active"),document.addEventListener("mouseup",z,P)),e.qSkipRipple=!0===k,n("mousedown",e)}function z(e){if(void 0===e||"blur"!==e.type||document.activeElement!==_.value){if(void 0!==e&&"keyup"===e.type){if(F===_.value&&!0===(0,v.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,h.X$)(t),!0===e.cancelBubble&&(0,h.sT)(t),_.value.dispatchEvent(t),(0,h.NS)(e),e.qKeyEvent=!0}n("keyup",e)}H()}}function H(e){const t=x.value;!0===e||A!==_.value&&R!==_.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),A===_.value&&(null!==E&&(E.removeEventListener("touchcancel",z,P),E.removeEventListener("touchend",z,P)),A=E=null),R===_.value&&(document.removeEventListener("mouseup",z,P),R=null),F===_.value&&(document.removeEventListener("keyup",z,!0),null!==_.value&&_.value.removeEventListener("blur",z,P),F=null),null!==_.value&&_.value.classList.remove("q-btn--active")}function D(e){e.qSkipRipple=!0}return(0,i.Jd)((()=>{H(!0)})),Object.assign(o,{click:N}),()=>{let n=[];void 0!==e.icon&&n.push((0,i.h)(l.Z,{name:e.icon,left:!1===e.stack&&!0===C.value,role:"img","aria-hidden":"true"})),!0===C.value&&n.push((0,i.h)("span",{class:"block"},[e.label])),n=(0,L.vs)(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,i.h)(l.Z,{name:e.iconRight,right:!1===e.stack&&!0===C.value,role:"img","aria-hidden":"true"}));const o=[(0,i.h)("span",{class:"q-focus-helper",ref:x})];return!0===e.loading&&void 0!==e.percentage&&o.push((0,i.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"},[(0,i.h)("span",{class:"q-btn__progress-indicator fit block"+(!0===e.darkPercentage?" q-btn__progress--dark":""),style:j.value})])),o.push((0,i.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},n)),null!==e.loading&&o.push((0,i.h)(a.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,i.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,i.h)(f)])]:null))),(0,L.Jl)(!0===g.value?"a":"button",M.value,o,"ripple",!0!==e.disable&&!1!==e.ripple,(()=>$.value))}}})},3949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>V});var o=n(515),r=n.n(o),i=(n(71),n(3673)),s=n(1959),a=n(6583);function l(e,t,n){let o;function r(){void 0!==o&&(a.Z.remove(o),o=void 0)}return(0,i.Jd)((()=>{!0===e.value&&r()})),{removeFromHistory:r,addToHistory(){o={condition:()=>!0===n.value,handler:t},a.Z.add(o)}}}var c=n(7445);const u={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":Function},d=["before-show","show","before-hide","hide"];function f({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:r,processOnMount:s}){const a=(0,i.FN)(),{props:l,emit:u,proxy:d}=a;let f;function p(t){!0===e.value?m(t):h(t)}function h(e){if(!0===l.disable||void 0!==t&&!0!==t(e))return;const n=void 0!==l["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),f=e,(0,i.Y3)((()=>{f===e&&(f=void 0)}))),null!==l.modelValue&&!1!==n||v(e)}function v(t){!0!==e.value&&(e.value=!0,u("before-show",t),void 0!==o?o(t):u("show",t))}function m(e){if(!0===l.disable)return;const t=void 0!==l["onUpdate:modelValue"];!0===t&&(u("update:modelValue",!1),f=e,(0,i.Y3)((()=>{f===e&&(f=void 0)}))),null!==l.modelValue&&!1!==t||g(e)}function g(t){!1!==e.value&&(e.value=!1,u("before-hide",t),void 0!==r?r(t):u("hide",t))}function y(t){if(!0===l.disable&&!0===t)void 0!==l["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?v:g;e(f)}}(0,i.YP)((()=>l.modelValue),y),void 0!==n&&!0===(0,c.Rb)(a)&&(0,i.YP)((()=>d.$route),(()=>{!0===n.value&&!0===e.value&&m()})),!0===s&&(0,i.bv)((()=>{y(l.modelValue)}));const b={show:h,hide:m,toggle:p};return Object.assign(d,b),b}var p=n(4716),h=n(8400),v=n(4688);let m,g,y,b,w,_,x=0,k=!1;function S(e){E(e)&&(0,p.NS)(e)}function E(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,p.AZ)(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),r=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const e=t[i];if((0,h.QA)(e,o))return o?r<0&&0===e.scrollTop||r>0&&e.scrollTop+e.clientHeight===e.scrollHeight:r<0&&0===e.scrollLeft||r>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function C(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function O(e){!0!==k&&(k=!0,requestAnimationFrame((()=>{k=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;void 0!==y&&t===window.innerHeight||(y=n-t,document.scrollingElement.scrollTop=o),o>y&&(document.scrollingElement.scrollTop-=Math.ceil((o-y)/8))})))}function T(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:o}=window.getComputedStyle(t);m=(0,h.OI)(window),g=(0,h.u3)(window),b=t.style.left,w=t.style.top,t.style.left=`-${m}px`,t.style.top=`-${g}px`,"hidden"!==o&&("scroll"===o||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===v.Lp.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",O,p.rU.passiveCapture),window.visualViewport.addEventListener("scroll",O,p.rU.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",C,p.rU.passiveCapture))}!0===v.Lp.is.desktop&&!0===v.Lp.is.mac&&window[`${e}EventListener`]("wheel",S,p.rU.notPassive),"remove"===e&&(!0===v.Lp.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",O,p.rU.passiveCapture),window.visualViewport.removeEventListener("scroll",O,p.rU.passiveCapture)):window.removeEventListener("scroll",C,p.rU.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=b,t.style.top=w,window.scrollTo(m,g),y=void 0)}function L(e){let t="add";if(!0===e){if(x++,void 0!==_)return clearTimeout(_),void(_=void 0);if(x>1)return}else{if(0===x)return;if(x--,x>0)return;if(t="remove",!0===v.Lp.is.ios&&!0===v.Lp.is.nativeMobile)return clearTimeout(_),void(_=setTimeout((()=>{T(t),_=void 0}),100))}T(t)}function P(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,L(t))}}}function A(){let e;return(0,i.Jd)((()=>{clearTimeout(e)})),{registerTimeout(t,n){clearTimeout(e),e=setTimeout(t,n)},removeTimeout(){clearTimeout(e)}}}var F=n(2236);const R={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},j=Object.keys(R);function q(e){const t={};for(const n of j)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?R:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function $(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function M(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==v.ZP.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}function N(e,t,n){const o=(0,p.FK)(e);let r,i=o.left-t.event.x,s=o.top-t.event.y,a=Math.abs(i),l=Math.abs(s);const c=t.direction;!0===c.horizontal&&!0!==c.vertical?r=i<0?"left":"right":!0!==c.horizontal&&!0===c.vertical?r=s<0?"up":"down":!0===c.up&&s<0?(r="up",a>l&&(!0===c.left&&i<0?r="left":!0===c.right&&i>0&&(r="right"))):!0===c.down&&s>0?(r="down",a>l&&(!0===c.left&&i<0?r="left":!0===c.right&&i>0&&(r="right"))):!0===c.left&&i<0?(r="left",a<l&&(!0===c.up&&s<0?r="up":!0===c.down&&s>0&&(r="down"))):!0===c.right&&i>0&&(r="right",a<l&&(!0===c.up&&s<0?r="up":!0===c.down&&s>0&&(r="down")));let u=!1;if(void 0===r&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};r=t.event.lastDir,u=!0,"left"===r||"right"===r?(o.left-=i,a=0,i=0):(o.top-=s,l=0,s=0)}return{synthetic:u,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:o,direction:r,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:a,y:l},offset:{x:i,y:s},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}R.all=!0;let I=0;const B={name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==v.Lp.has.touch)return;function o(e,t){!0===n.mouse&&!0===t?(0,p.NS)(e):(!0===n.stop&&(0,p.sT)(e),!0===n.prevent&&(0,p.X$)(e))}const r={uid:"qvtp_"+I++,handler:t,modifiers:n,direction:q(n),noop:p.ZT,mouseStart(e){$(e,r)&&(0,p.du)(e)&&((0,p.M0)(r,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),r.start(e,!0))},touchStart(e){if($(e,r)){const t=e.target;(0,p.M0)(r,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),r.start(e)}},start(t,o){!0===v.Lp.is.firefox&&(0,p.Jf)(e,!0),r.lastEvt=t;const i=(0,p.FK)(t);if(!0===o||!0===n.stop){if(!0!==r.direction.all&&(!0!==o||!0!==r.direction.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,p.X$)(e),!0===t.cancelBubble&&(0,p.sT)(e),e.qClonedBy=void 0===t.qClonedBy?[r.uid]:t.qClonedBy.concat(r.uid),e.qKeyEvent=t.qKeyEvent,e.qClickOutside=t.qClickOutside,r.initialEvent={target:t.target,event:e}}(0,p.sT)(t)}r.event={x:i.left,y:i.top,time:Date.now(),mouse:!0===o,detected:!1,isFirst:!0,isFinal:!1,lastX:i.left,lastY:i.top}},move(e){if(void 0===r.event)return;r.lastEvt=e;const t=!0===r.event.mouse,i=()=>{o(e,t),!0!==n.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===t&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),M(),r.styleCleanup=e=>{if(r.styleCleanup=void 0,!0!==n.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===t){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===r.event.detected){!0!==r.event.isFirst&&o(e,r.event.mouse);const{payload:t,synthetic:n}=N(e,r,!1);return void(void 0!==t&&(!1===r.handler(t)?r.end(e):(void 0===r.styleCleanup&&!0===r.event.isFirst&&i(),r.event.lastX=t.position.left,r.event.lastY=t.position.top,r.event.lastDir=!0===n?void 0:t.direction,r.event.isFirst=!1)))}if(!0===r.direction.all||!0===t&&!0===r.modifiers.mouseAllDir)return i(),r.event.detected=!0,void r.move(e);const s=(0,p.FK)(e),a=s.left-r.event.x,l=s.top-r.event.y,c=Math.abs(a),u=Math.abs(l);c!==u&&(!0===r.direction.horizontal&&c>u||!0===r.direction.vertical&&c<u||!0===r.direction.up&&c<u&&l<0||!0===r.direction.down&&c<u&&l>0||!0===r.direction.left&&c>u&&a<0||!0===r.direction.right&&c>u&&a>0?(r.event.detected=!0,r.move(e)):r.end(e,!0))},end(t,n){if(void 0!==r.event){if((0,p.ul)(r,"temp"),!0===v.Lp.is.firefox&&(0,p.Jf)(e,!1),!0===n)void 0!==r.styleCleanup&&r.styleCleanup(),!0!==r.event.detected&&void 0!==r.initialEvent&&r.initialEvent.target.dispatchEvent(r.initialEvent.event);else if(!0===r.event.detected){!0===r.event.isFirst&&r.handler(N(void 0===t?r.lastEvt:t,r).payload);const{payload:e}=N(void 0===t?r.lastEvt:t,r,!0),n=()=>{r.handler(e)};void 0!==r.styleCleanup?r.styleCleanup(n):n()}r.event=void 0,r.initialEvent=void 0,r.lastEvt=void 0}}};e.__qtouchpan=r,!0===n.mouse&&(0,p.M0)(r,"main",[[e,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===v.Lp.has.touch&&(0,p.M0)(r,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof value&&n.end(),n.handler=t.value),n.direction=q(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,p.ul)(t,"main"),(0,p.ul)(t,"temp"),!0===v.Lp.is.firefox&&(0,p.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}};function U(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}var z=n(7657),H=n(2547);const D=150,V=(0,i.aZ)({name:"QDrawer",inheritAttrs:!1,props:r()(r()(r()({},u),F.S),{},{side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean}),emits:[...d,"on-layout","mini-state"],setup(e,{slots:t,emit:n,attrs:o}){const a=(0,i.FN)(),{proxy:{$q:c}}=a,u=(0,F.Z)(e,c),{preventBodyScroll:d}=P(),{registerTimeout:p}=A(),h=(0,i.f3)(H.YE,(()=>{console.error("QDrawer needs to be child of QLayout")}));let v,m,g;const y=(0,s.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&h.totalWidth.value<=e.breakpoint),b=(0,i.Fl)((()=>!0===e.mini&&!0!==y.value)),w=(0,i.Fl)((()=>!0===b.value?e.miniWidth:e.width)),_=(0,s.iH)(!0===e.showIfAbove&&!1===y.value||!0===e.modelValue),x=(0,i.Fl)((()=>!0!==e.persistent&&(!0===y.value||!0===W.value)));function k(e,t){if(O(),!1!==e&&h.animate(),se(0),!0===y.value){const e=h.instances[I.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),le(1),!0!==h.isContainer.value&&d(!0)}else le(0),!1!==e&&ce(!1);p((()=>{!1!==e&&ce(!0),!0!==t&&n("show",e)}),D)}function S(e,t){T(),!1!==e&&h.animate(),le(0),se(j.value*w.value),pe(),!0!==t&&p((()=>{n("hide",e)}),D)}const{show:E,hide:C}=f({showing:_,hideOnRouteChange:x,handleShow:k,handleHide:S}),{addToHistory:O,removeFromHistory:T}=l(_,C,x),L={belowBreakpoint:y,hide:C},R=(0,i.Fl)((()=>"right"===e.side)),j=(0,i.Fl)((()=>(!0===c.lang.rtl?-1:1)*(!0===R.value?1:-1))),q=(0,s.iH)(0),$=(0,s.iH)(!1),M=(0,s.iH)(!1),N=(0,s.iH)(w.value*j.value),I=(0,i.Fl)((()=>!0===R.value?"left":"right")),V=(0,i.Fl)((()=>!0===_.value&&!1===y.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:w.value:0)),J=(0,i.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||h.view.value.indexOf(R.value?"R":"L")>-1||!0===c.platform.is.ios&&!0===h.isContainer.value)),Z=(0,i.Fl)((()=>!1===e.overlay&&!0===_.value&&!1===y.value)),W=(0,i.Fl)((()=>!0===e.overlay&&!0===_.value&&!1===y.value)),K=(0,i.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===_.value&&!1===$.value?" hidden":""))),G=(0,i.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*q.value})`}))),Y=(0,i.Fl)((()=>!0===R.value?"r"===h.rows.value.top[2]:"l"===h.rows.value.top[0])),X=(0,i.Fl)((()=>!0===R.value?"r"===h.rows.value.bottom[2]:"l"===h.rows.value.bottom[0])),Q=(0,i.Fl)((()=>{const e={};return!0===h.header.space&&!1===Y.value&&(!0===J.value?e.top=`${h.header.offset}px`:!0===h.header.space&&(e.top=`${h.header.size}px`)),!0===h.footer.space&&!1===X.value&&(!0===J.value?e.bottom=`${h.footer.offset}px`:!0===h.footer.space&&(e.bottom=`${h.footer.size}px`)),e})),ee=(0,i.Fl)((()=>{const e={width:`${w.value}px`,transform:`translateX(${N.value}px)`};return!0===y.value?e:Object.assign(e,Q.value)})),te=(0,i.Fl)((()=>"q-drawer__content fit "+(!0!==h.isContainer.value?"scroll":"overflow-auto"))),ne=(0,i.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===M.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===u.value?" q-drawer--dark q-dark":"")+(!0===$.value?" no-transition":!0===_.value?"":" q-layout--prevent-focus")+(!0===y.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===b.value?"mini":"standard")+(!0===J.value||!0!==Z.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===Y.value?" q-drawer--top-padding":"")))),oe=(0,i.Fl)((()=>{const t=!0===c.lang.rtl?e.side:I.value;return[[B,de,void 0,{[t]:!0,mouse:!0}]]})),re=(0,i.Fl)((()=>{const t=!0===c.lang.rtl?I.value:e.side;return[[B,fe,void 0,{[t]:!0,mouse:!0}]]})),ie=(0,i.Fl)((()=>{const t=!0===c.lang.rtl?I.value:e.side;return[[B,fe,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function se(e){void 0===e?(0,i.Y3)((()=>{e=!0===_.value?0:w.value,se(j.value*e)})):(!0!==h.isContainer.value||!0!==R.value||!0!==y.value&&Math.abs(e)!==w.value||(e+=j.value*h.scrollbarWidth.value),N.value=e)}function ae(){ve(y,"mobile"===e.behavior||"desktop"!==e.behavior&&h.totalWidth.value<=e.breakpoint)}function le(e){q.value=e}function ce(e){const t=!0===e?"remove":!0!==h.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function ue(){clearTimeout(m),a.proxy&&a.proxy.$el&&a.proxy.$el.classList.add("q-drawer--mini-animate"),M.value=!0,m=setTimeout((()=>{M.value=!1}),150)}function de(e){if(!1!==_.value)return;const t=w.value,n=U(e.distance.x,0,t);if(!0===e.isFinal){const e=n>=Math.min(75,t);return!0===e?E():(h.animate(),le(0),se(j.value*t)),void($.value=!1)}se((!0===c.lang.rtl?!0!==R.value:R.value)?Math.max(t-n,0):Math.min(0,n-t)),le(U(n/t,0,1)),!0===e.isFirst&&($.value=!0)}function fe(t){if(!0!==_.value)return;const n=w.value,o=t.direction===e.side,r=(!0===c.lang.rtl?!0!==o:o)?U(t.distance.x,0,n):0;if(!0===t.isFinal){const e=Math.abs(r)<Math.min(75,n);return!0===e?(h.animate(),le(1),se(0)):C(),void($.value=!1)}se(j.value*r),le(U(1-r/n,0,1)),!0===t.isFirst&&($.value=!0)}function pe(){d(!1),ce(!0)}function he(t,n){h.update(e.side,t,n)}function ve(e,t){e.value!==t&&(e.value=t)}function me(t,n){he("size",!0===t?e.miniWidth:n)}return(0,i.YP)(y,(t=>{!0===t?(v=_.value,!0===_.value&&C(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==v&&(!0===_.value?(se(0),le(0),pe()):E(!1))})),(0,i.YP)(h.totalWidth,(t=>{ve(y,"mobile"===e.behavior||"desktop"!==e.behavior&&t<=e.breakpoint)})),(0,i.YP)((()=>e.side),((e,t)=>{h.instances[t]===L&&(h.instances[t]=void 0,h[t].space=!1,h[t].offset=0),h.instances[e]=L,h[e].size=w.value,h[e].space=Z.value,h[e].offset=V.value})),(0,i.YP)((()=>e.behavior+e.breakpoint),ae),(0,i.YP)(h.isContainer,(e=>{!0===_.value&&d(!0!==e)})),(0,i.YP)(h.scrollbarWidth,(()=>{se(!0===_.value?0:void 0)})),(0,i.YP)(V,(e=>{he("offset",e)})),(0,i.YP)(Z,(e=>{n("on-layout",e),he("space",e)})),(0,i.YP)(R,(()=>{se()})),(0,i.YP)(w,(t=>{se(),me(e.miniToOverlay,t)})),(0,i.YP)((()=>e.miniToOverlay),(e=>{me(e,w.value)})),(0,i.YP)((()=>c.lang.rtl),(()=>{se()})),(0,i.YP)((()=>e.mini),(()=>{!0===e.modelValue&&(ue(),h.animate())})),(0,i.YP)(b,(e=>{n("mini-state",e)})),h.instances[e.side]=L,me(e.miniToOverlay,w.value),he("space",Z.value),he("offset",V.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===_.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),(0,i.bv)((()=>{n("on-layout",Z.value),n("mini-state",b.value),v=!0===e.showIfAbove;const t=()=>{const e=!0===_.value?k:S;e(!1,!0)};0===h.totalWidth.value?g=(0,i.YP)(h.totalWidth,(()=>{g(),g=void 0,!1===_.value&&!0===e.showIfAbove&&!1===y.value?E(!1):t()})):(0,i.Y3)(t)})),(0,i.Jd)((()=>{void 0!==g&&g(),clearTimeout(m),!0===_.value&&pe(),h.instances[e.side]===L&&(h.instances[e.side]=void 0,he("size",0),he("offset",0),he("space",!1))})),()=>{const n=[];!0===y.value&&(!1===e.noSwipeOpen&&n.push((0,i.wy)((0,i.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),oe.value)),n.push((0,z.Jl)("div",{ref:"backdrop",class:K.value,style:G.value,"aria-hidden":"true",onClick:C},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===_.value,(()=>ie.value))));const s=!0===b.value&&void 0!==t.mini,a=[(0,i.h)("div",r()(r()({},o),{},{key:""+s,class:[te.value,o.class]}),!0===s?t.mini():(0,z.KR)(t.default))];return!0===e.elevated&&!0===_.value&&a.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,z.Jl)("aside",{ref:"content",class:ne.value,style:ee.value},a,"contentclose",!0!==e.noSwipeClose&&!0===y.value,(()=>re.value))),(0,i.h)("div",{class:"q-drawer-container"},n)}}})},3812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(3673),r=n(1959),i=n(5151),s=n(7657),a=n(2547);const l=(0,o.aZ)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:l}}=(0,o.FN)(),c=(0,o.f3)(a.YE,(()=>{console.error("QHeader needs to be child of QLayout")})),u=(0,r.iH)(parseInt(e.heightHint,10)),d=(0,r.iH)(!0),f=(0,o.Fl)((()=>!0===e.reveal||c.view.value.indexOf("H")>-1||!0===c.isContainer.value)),p=(0,o.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===f.value)return!0===d.value?u.value:0;const t=u.value-c.scroll.value.position;return t>0?t:0})),h=(0,o.Fl)((()=>!0!==e.modelValue||!0===f.value&&!0!==d.value)),v=(0,o.Fl)((()=>!0===e.modelValue&&!0===h.value&&!0===e.reveal)),m=(0,o.Fl)((()=>"q-header q-layout__section--marginal "+(!0===f.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===h.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),g=(0,o.Fl)((()=>{const e=c.rows.value.top,t={};return"l"===e[0]&&!0===c.left.space&&(t[!0===l.lang.rtl?"right":"left"]=`${c.left.size}px`),"r"===e[2]&&!0===c.right.space&&(t[!0===l.lang.rtl?"left":"right"]=`${c.right.size}px`),t}));function y(e,t){c.update("header",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function w({height:e}){b(u,e),y("size",e)}function _(e){!0===v.value&&b(d,!0),n("focusin",e)}(0,o.YP)((()=>e.modelValue),(e=>{y("space",e),b(d,!0),c.animate()})),(0,o.YP)(p,(e=>{y("offset",e)})),(0,o.YP)((()=>e.reveal),(t=>{!1===t&&b(d,e.modelValue)})),(0,o.YP)(d,(e=>{c.animate(),n("reveal",e)})),(0,o.YP)(c.scroll,(t=>{!0===e.reveal&&b(d,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const x={};return c.instances.header=x,!0===e.modelValue&&y("size",u.value),y("space",e.modelValue),y("offset",p.value),(0,o.Jd)((()=>{c.instances.header===x&&(c.instances.header=void 0,y("size",0),y("offset",0),y("space",!1))})),()=>{const n=(0,s.Bl)(t.default,[]);return!0===e.elevated&&n.push((0,o.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,o.h)(i.Z,{debounce:0,onResize:w})),(0,o.h)("header",{class:m.value,style:g.value,onFocusin:_},n)}}})},4554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(515),r=n.n(o),i=(n(4303),n(7280),n(71),n(3673)),s=n(2417),a=n(7657);const l=e=>e,c=e=>`ionicons ${e}`,u={"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":c,"ion-ios":c,"ion-logo":c,"mdi-":e=>`mdi ${e}`,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},d={o_:"-outlined",r_:"-round",s_:"-sharp"},f=new RegExp("^("+Object.keys(u).join("|")+")"),p=new RegExp("^("+Object.keys(d).join("|")+")"),h=/^M/,v=/^img:/,m=/^svguse:/,g=/^ion-/,y=/^[l|f]a[s|r|l|b|d]? /,b=(0,i.aZ)({name:"QIcon",props:r()(r()({},s.LU),{},{tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean}),setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),o=(0,s.ZP)(e),r=(0,i.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),l=(0,i.Fl)((()=>{let t,o=e.name;if(!o)return{none:!0,cls:r.value};if(null!==n.iconMapFn){const e=n.iconMapFn(o);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls+" "+r.value,content:void 0!==e.content?e.content:" "};o=e.icon}}if(!0===h.test(o)){const[e,t]=o.split("|");return{svg:!0,cls:r.value,nodes:e.split("&&").map((e=>{const[t,n,o]=e.split("@@");return(0,i.h)("path",{style:n,d:t,transform:o})})),viewBox:void 0!==t?t:"0 0 24 24"}}if(!0===v.test(o))return{img:!0,cls:r.value,src:o.substring(4)};if(!0===m.test(o)){const[e,t]=o.split("|");return{svguse:!0,cls:r.value,src:e.substring(7),viewBox:void 0!==t?t:"0 0 24 24"}}let s=" ";const a=o.match(f);if(null!==a)t=u[a[1]](o);else if(!0===y.test(o))t=o;else if(!0===g.test(o))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${o.substr(3)}`;else{t="notranslate material-icons";const e=o.match(p);null!==e&&(o=o.substring(2),t+=d[e[1]]),s=o}return{cls:t+" "+r.value,content:s}}));return()=>{const n={class:l.value.cls,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===l.value.none?(0,i.h)(e.tag,n,(0,a.KR)(t.default)):!0===l.value.img?(n.src=l.value.src,(0,i.h)("img",n)):!0===l.value.svg?(n.viewBox=l.value.viewBox,(0,i.h)("svg",n,(0,a.vs)(t.default,l.value.nodes))):!0===l.value.svguse?(n.viewBox=l.value.viewBox,(0,i.h)("svg",n,(0,a.vs)(t.default,[(0,i.h)("use",{"xlink:href":l.value.src})]))):(0,i.h)(e.tag,n,(0,a.vs)(t.default,[l.value.content]))}}})},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(515),r=n.n(o),i=n(3673),s=n(1959),a=n(2236),l=n(7277),c=n(7657),u=n(4716),d=n(1436);const f=(0,i.aZ)({name:"QItem",props:r()(r()(r()({},a.S),l.$),{},{tag:{type:String,default:"div"},active:Boolean,clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean}),emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=(0,i.FN)(),r=(0,a.Z)(e,o),{hasLink:f,linkProps:p,linkClass:h,linkTag:v,navigateToLink:m}=(0,l.Z)(),g=(0,s.iH)(null),y=(0,s.iH)(null),b=(0,i.Fl)((()=>!0===e.clickable||!0===f.value||"a"===e.tag||"label"===e.tag)),w=(0,i.Fl)((()=>!0!==e.disable&&!0===b.value)),_=(0,i.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===r.value?" q-item--dark":"")+(!0===f.value?h.value:!0===e.active?(void 0!==e.activeClass?` ${e.activeClass}`:"")+" q-item--active":"")+(!0===e.disable?" disabled":"")+(!0===w.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),x=(0,i.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===o.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function k(e){!0===w.value&&(null!==y.value&&(!0!==e.qKeyEvent&&document.activeElement===g.value?y.value.focus():document.activeElement===y.value&&g.value.focus()),!0===f.value&&m(e),n("click",e))}function S(e){if(!0===w.value&&!0===(0,d.So)(e,13)){(0,u.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,g.value.dispatchEvent(t)}n("keyup",e)}function E(){const e=(0,c.Bl)(t.default,[]);return!0===w.value&&e.unshift((0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:y})),e}return()=>{const t={ref:g,class:_.value,style:x.value,onClick:k,onKeyup:S};return!0===w.value?(t.tabindex=e.tabindex||"0",Object.assign(t,p.value)):!0===b.value&&(t["aria-disabled"]="true"),(0,i.h)(v.value,t,E())}}})},2350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(3673),r=n(7657);const i=(0,o.aZ)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=(0,o.Fl)((()=>parseInt(e.lines,10))),i=(0,o.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),s=(0,o.Fl)((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>(0,o.h)("div",{style:s.value,class:i.value},(0,r.KR)(t.default))}})},2035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(3673),r=n(7657);const i=(0,o.aZ)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=(0,o.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,o.h)("div",{class:n.value},(0,r.KR)(t.default))}})},7011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(515),r=n.n(o),i=n(3673),s=n(2236),a=n(7657);const l=(0,i.aZ)({name:"QList",props:r()(r()({},s.S),{},{bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean}),setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,s.Z)(e,n.proxy.$q),r=(0,i.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===o.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,i.h)("div",{class:r.value},(0,a.KR)(t.default))}})},3066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});n(7280);var o=n(3673),r=n(1959),i=n(4688),s=n(515),a=n.n(s),l=n(8400),c=n(4716);const{passive:u}=c.rU,d=["both","horizontal","vertical"],f=(0,o.aZ)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>d.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r,i,s=null;function d(){s=null;const o=Math.max(0,(0,l.u3)(r)),i=(0,l.OI)(r),c={top:o-n.position.top,left:i-n.position.left};if("vertical"===e.axis&&0===c.top||"horizontal"===e.axis&&0===c.left)return;const u=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:o,left:i},n.directionChanged=n.direction!==u,n.delta=c,!0===n.directionChanged&&(n.direction=u,n.inflectionPoint=n.position),t("scroll",a()({},n))}function f(){r=(0,l.b0)(i,e.scrollTarget),r.addEventListener("scroll",h,u),h(!0)}function p(){void 0!==r&&(r.removeEventListener("scroll",h,u),r=void 0)}function h(t){!0===t||0===e.debounce||"0"===e.debounce?d():null===s&&(s=e.debounce?setTimeout(d,e.debounce):requestAnimationFrame(d))}(0,o.YP)((()=>e.scrollTarget),(()=>{p(),f()}));const v=(0,o.FN)();return(0,o.bv)((()=>{i=v.proxy.$el.parentNode,f()})),(0,o.Jd)((()=>{clearTimeout(s),cancelAnimationFrame(s),p()})),Object.assign(v.proxy,{trigger:h,getPosition:()=>n}),c.ZT}});var p=n(5151),h=n(7657),v=n(2547);const m=(0,o.aZ)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:s}}=(0,o.FN)(),a=(0,r.iH)(null),c=(0,r.iH)(s.screen.height),u=(0,r.iH)(!0===e.container?0:s.screen.width),d=(0,r.iH)({position:0,direction:"down",inflectionPoint:0}),m=(0,r.iH)(0),g=(0,r.iH)(!0===i.uX.value?0:(0,l.np)()),y=(0,o.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),b=(0,o.Fl)((()=>!1===e.container?{minHeight:s.screen.height+"px"}:null)),w=(0,o.Fl)((()=>0!==g.value?{[!0===s.lang.rtl?"left":"right"]:`${g.value}px`}:null)),_=(0,o.Fl)((()=>0!==g.value?{[!0===s.lang.rtl?"right":"left"]:0,[!0===s.lang.rtl?"left":"right"]:`-${g.value}px`,width:`calc(100% + ${g.value}px)`}:null));function x(t){if(!0===e.container||!0!==document.qScrollPrevented){const o={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};d.value=o,void 0!==e.onScroll&&n("scroll",o)}}function k(t){const{height:o,width:r}=t;let i=!1;c.value!==o&&(i=!0,c.value=o,void 0!==e.onScrollHeight&&n("scroll-height",o),E()),u.value!==r&&(i=!0,u.value=r),!0===i&&void 0!==e.onResize&&n("resize",t)}function S({height:e}){m.value!==e&&(m.value=e,E())}function E(){if(!0===e.container){const e=c.value>m.value?(0,l.np)():0;g.value!==e&&(g.value=e)}}let C;const O={instances:{},view:(0,o.Fl)((()=>e.view)),isContainer:(0,o.Fl)((()=>e.container)),rootRef:a,height:c,containerHeight:m,scrollbarWidth:g,totalWidth:(0,o.Fl)((()=>u.value+g.value)),rows:(0,o.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,r.qj)({size:0,offset:0,space:!1}),right:(0,r.qj)({size:300,offset:0,space:!1}),footer:(0,r.qj)({size:0,offset:0,space:!1}),left:(0,r.qj)({size:300,offset:0,space:!1}),scroll:d,animate(){void 0!==C?clearTimeout(C):document.body.classList.add("q-body--layout-animate"),C=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),C=void 0}),155)},update(e,t,n){O[e][t]=n}};return(0,o.JJ)(v.YE,O),()=>{const n=(0,h.vs)(t.default,[(0,o.h)(f,{onScroll:x}),(0,o.h)(p.Z,{onResize:k})]),r=(0,o.h)("div",{class:y.value,style:b.value,ref:!0===e.container?void 0:a},n);return!0===e.container?(0,o.h)("div",{class:"q-layout-container overflow-hidden",ref:a},[(0,o.h)(p.Z,{onResize:S}),(0,o.h)("div",{class:"absolute-full",style:w.value},[(0,o.h)("div",{class:"scroll",style:_.value},[r])])]):r}}})},4379:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(3673),r=n(7657),i=n(2547);const s=(0,o.aZ)({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,o.FN)(),s=(0,o.f3)(i.YE);(0,o.f3)(i.Mw,(()=>{console.error("QPage needs to be child of QPageContainer")}));const a=(0,o.Fl)((()=>{const t=(!0===s.header.space?s.header.size:0)+(!0===s.footer.space?s.footer.size:0);if("function"===typeof e.styleFn){const o=!0===s.isContainer.value?s.containerHeight.value:n.screen.height;return e.styleFn(t,o)}return{minHeight:!0===s.isContainer.value?s.containerHeight.value-t+"px":0===n.screen.height?0!==t?`calc(100vh - ${t}px)`:"100vh":n.screen.height-t+"px"}})),l=(0,o.Fl)((()=>"q-page "+(!0===e.padding?" q-layout-padding":"")));return()=>(0,o.h)("main",{class:l.value,style:a.value},(0,r.KR)(t.default))}})},2652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(3673),r=n(7657),i=n(2547);const s=(0,o.aZ)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=(0,o.FN)(),s=(0,o.f3)(i.YE,(()=>{console.error("QPageContainer needs to be child of QLayout")}));(0,o.JJ)(i.Mw,!0);const a=(0,o.Fl)((()=>{const e={};return!0===s.header.space&&(e.paddingTop=`${s.header.size}px`),!0===s.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${s.right.size}px`),!0===s.footer.space&&(e.paddingBottom=`${s.footer.size}px`),!0===s.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${s.left.size}px`),e}));return()=>(0,o.h)("div",{class:"q-page-container",style:a.value},(0,r.KR)(t.default))}})},5151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(3673),r=n(1959),i=n(4688);function s(){const e=(0,r.iH)(!i.uX.value);return!1===e.value&&(0,o.bv)((()=>{e.value=!0})),e}var a=n(4716);const l="undefined"!==typeof ResizeObserver,c=!0===l?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},u=(0,o.aZ)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,r,i={width:-1,height:-1};function u(t){!0===t||0===e.debounce||"0"===e.debounce?d():n||(n=setTimeout(d,e.debounce))}function d(){if(n=void 0,r){const{offsetWidth:e,offsetHeight:n}=r;e===i.width&&n===i.height||(i={width:e,height:n},t("resize",i))}}const f=(0,o.FN)();if(Object.assign(f.proxy,{trigger:u}),!0===l){let e;return(0,o.bv)((()=>{(0,o.Y3)((()=>{r=f.proxy.$el.parentNode,r&&(e=new ResizeObserver(u),e.observe(r),d())}))})),(0,o.Jd)((()=>{clearTimeout(n),void 0!==e&&(void 0!==e.disconnect?e.disconnect():r&&e.unobserve(r))})),a.ZT}{const e=s();let t;function i(){clearTimeout(n),void 0!==t&&(void 0!==t.removeEventListener&&t.removeEventListener("resize",u,a.rU.passive),t=void 0)}function l(){i(),r&&r.contentDocument&&(t=r.contentDocument.defaultView,t.addEventListener("resize",u,a.rU.passive),d())}return(0,o.bv)((()=>{(0,o.Y3)((()=>{r=f.proxy.$el,r&&l()}))})),(0,o.Jd)(i),()=>{if(!0===e.value)return(0,o.h)("object",{style:c.style,tabindex:-1,type:"text/html",data:c.url,"aria-hidden":"true",onLoad:l})}}}})},9570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(3673),r=n(7657);const i=(0,o.aZ)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=(0,o.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,o.h)("div",{class:n.value},(0,r.KR)(t.default))}})},3747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(3673),r=n(7657);const i=(0,o.aZ)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=(0,o.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,o.h)("div",{class:n.value},(0,r.KR)(t.default))}})},2236:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,Z:()=>i});var o=n(3673);const r={dark:{type:Boolean,default:null}};function i(e,t){return(0,o.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},7277:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,Z:()=>u});n(7280),n(5363);var o=n(3673),r=n(4716),i=n(7445);function s(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function a(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l(e,t){for(const n in t){const o=t[n],r=e[n];if("string"===typeof o){if(o!==r)return!1}else if(!1===Array.isArray(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}const c={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},disable:Boolean};function u(){const e=(0,o.FN)(),{props:t,attrs:n,proxy:c}=e,u=(0,i.Rb)(e),d=(0,o.Fl)((()=>!0===u&&!0!==t.disable&&void 0!==t.to&&null!==t.to&&""!==t.to)),f=(0,o.Fl)((()=>!0===d.value?"a":t.tag||"div")),p=(0,o.Fl)((()=>!0===d.value?c.$router.resolve(t.to):null)),h=(0,o.Fl)((()=>{if(!1===d.value)return null;const{matched:e}=p.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const o=c.$route.matched;if(0===o.length)return-1;const r=o.findIndex(a.bind(null,n));if(r>-1)return r;const i=s(e[t-2]);return t>1&&s(n)===i&&o[o.length-1].path!==i?o.findIndex(a.bind(null,e[t-2])):r})),v=(0,o.Fl)((()=>!0===d.value&&h.value>-1&&l(c.$route.params,p.value.params))),m=(0,o.Fl)((()=>!0===v.value&&h.value===c.$route.matched.length-1)),g=(0,o.Fl)((()=>!0===d.value?!0===m.value?` ${t.exactActiveClass} ${t.activeClass}`:!0===t.exact?"":!0===v.value?` ${t.activeClass}`:"":"")),y=(0,o.Fl)((()=>!0===d.value?{href:p.value.href,target:n.target,role:"link"}:{}));function b(e){return!(!0===t.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&((0,r.X$)(e),c.$router[!0===t.replace?"replace":"push"](t.to).catch((()=>{})),!0)}return{hasLink:d,linkTag:f,linkRoute:p,linkIsActive:v,linkIsExactActive:m,linkClass:g,linkProps:y,navigateToLink:b}}},2417:(e,t,n)=>{"use strict";n.d(t,{Ok:()=>r,LU:()=>i,ZP:()=>s});var o=n(3673);const r={xs:18,sm:24,md:32,lg:38,xl:46},i={size:String};function s(e,t=r){return(0,o.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},6583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(71);var o=n(4688),r=n(4716);const i=()=>!0;function s(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function a(e){return!0===e.startsWith("#")&&(e=e.substr(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substr(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return i;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(s).map(a)),()=>t.includes(window.location.hash)}const c={__history:[],add:r.ZT,remove:r.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:n}=o.Lp.is;if(!0!==t&&!0!==n)return;const r=e.config[!0===t?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=i),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const s=l(Object.assign({backButtonExit:!0},r)),a=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===s()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",a,!1)})):window.Capacitor.Plugins.App.addListener("backButton",a)}}},4688:(e,t,n)=>{"use strict";n.d(t,{uX:()=>s,aG:()=>a,Lp:()=>m,ZP:()=>y});var o=n(515),r=n.n(o),i=(n(7280),n(1959));const s=(0,i.iH)(!1);let a,l=!1;function c(e,t){const n=/(edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function u(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const d="ontouchstart"in window||window.navigator.maxTouchPoints>0;function f(e){a={is:r()({},e)},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function p(e){const t=e.toLowerCase(),n=u(t),o=c(t,n),r={};o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(r[o.platform]=!0);const i=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===i||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,o.browser="edge"):r.crios?(r.chrome=!0,o.browser="chrome"):r.fxios&&(r.firefox=!0,o.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==i)&&(r.webkit=!0),(r.safari&&r.blackberry||r.bb)&&(o.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(o.browser="playbook",r.playbook=!0),r.opr&&(o.browser="opera",r.opera=!0),r.safari&&r.android&&(o.browser="android",r.android=!0),r.safari&&r.kindle&&(o.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(o.browser="silk",r.silk=!0),r.vivaldi&&(o.browser="vivaldi",r.vivaldi=!0),r.name=o.browser,r.platform=o.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===d&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&f(r)),r}const h=navigator.userAgent||navigator.vendor||window.opera,v={has:{touch:!1,webStorage:!1},within:{iframe:!1}},m={userAgent:h,is:p(h),has:{touch:d},within:{iframe:window.self!==window.top}},g={install(e){const{$q:t}=e;!0===s.value?(e.onSSRHydrated.push((()=>{s.value=!1,Object.assign(t.platform,m),a=void 0})),t.platform=(0,i.qj)(this)):t.platform=this}};{let e;Object.defineProperty(m.has,"webStorage",{get:()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1}}),l=!0===m.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),!0===s.value?Object.assign(g,m,a,v):Object.assign(g,m)}const y=g},2012:(e,t,n)=>{"use strict";n.d(t,{iv:()=>r,sb:()=>i});var o=n(1959);function r(e,t){const n=e.style;Object.keys(t).forEach((e=>{n[e]=t[e]}))}function i(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=!0===(0,o.dq)(e)?e.value:e;return t?t.$el||t:void 0}},4716:(e,t,n)=>{"use strict";n.d(t,{rU:()=>o,ZT:()=>r,du:()=>i,FK:()=>s,AZ:()=>a,sT:()=>l,X$:()=>c,NS:()=>u,Jf:()=>d,M0:()=>f,ul:()=>p});n(71);const o={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(o,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(h){}function r(){}function i(e){return 0===e.button}function s(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function a(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function l(e){e.stopPropagation()}function c(e){!1!==e.cancelable&&e.preventDefault()}function u(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function d(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",c,o.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",c,o.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function f(e,t,n){const r=`__q_${t}_evt`;e[r]=void 0!==e[r]?e[r].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],o[t[3]])}))}function p(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],o[t[3]])})),e[n]=void 0)}},1436:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>r,So:()=>s});let o=!1;function r(e){o=!0===e.isComposing}function i(e){return!0===o||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function s(e,t){return!0!==i(e)&&[].concat(t).includes(e.keyCode)}},7657:(e,t,n)=>{"use strict";n.d(t,{KR:()=>r,Bl:()=>i,vs:()=>s,Jl:()=>a});var o=n(3673);function r(e,t){return void 0!==e&&e()||t}function i(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function s(e,t){return void 0!==e?t.concat(e()):t}function a(e,t,n,r,i,s){t.key=r+i;const a=(0,o.h)(e,t,n);return!0===i?(0,o.wy)(a,s()):a}},2547:(e,t,n)=>{"use strict";n.d(t,{Ng:()=>o,YE:()=>r,Mw:()=>i});const o="_q_",r="_q_l_",i="_q_pc_"},7445:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>o});n(71);function o(e){return void 0!==e.appContext.config.globalProperties.$router}},8400:(e,t,n)=>{"use strict";n.d(t,{b0:()=>i,u3:()=>s,OI:()=>a,np:()=>c,QA:()=>u});var o=n(2012);const r=[null,document,document.body,document.scrollingElement,document.documentElement];function i(e,t){let n=(0,o.sb)(t);if(void 0===n){if(void 0===e||null===e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return r.includes(n)?window:n}function s(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function a(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let l;function c(){if(void 0!==l)return l;const e=document.createElement("p"),t=document.createElement("div");(0,o.iv)(e,{width:"100%",height:"200px"}),(0,o.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),l=n-r,l}function u(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},2277:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var o=n(515),r=n.n(o),i=(n(9119),n(4688)),s=n(1959);const a=(e,t)=>{const n={},o=(0,s.qj)(e);return Object.keys(e).forEach((e=>{n[e]={get:()=>o[e],set:t=>{o[e]=t}}})),Object.defineProperties(t,n),t};var l=n(4716);function c(e,t=250,n){let o;function r(){const r=arguments,i=()=>{o=void 0,!0!==n&&e.apply(this,r)};clearTimeout(o),!0===n&&void 0===o&&e.apply(this,r),o=setTimeout(i,t)}return r.cancel=()=>{clearTimeout(o)},r}const u=["sm","md","lg","xl"],{passive:d}=l.rU,f=a({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:l.ZT,setDebounce:l.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const n=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const t=window.innerWidth,o=window.innerHeight;if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let r=this.sizes;this.gt.xs=t>=r.sm,this.gt.sm=t>=r.md,this.gt.md=t>=r.lg,this.gt.lg=t>=r.xl,this.lt.sm=t<r.sm,this.lt.md=t<r.md,this.lt.lg=t<r.lg,this.lt.xl=t<r.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,r=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",r!==this.name&&(!0===n&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${r}`)),this.name=r)};let o,r={},s=16;this.setSizes=e=>{u.forEach((t=>{void 0!==e[t]&&(r[t]=e[t])}))},this.setDebounce=e=>{s=e};const a=()=>{const e=getComputedStyle(document.body),t=void 0!==window.visualViewport?window.visualViewport:window;e.getPropertyValue("--q-size-sm")&&u.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{u.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==o&&t.removeEventListener("resize",o,d),o=e>0?c(this.__update,e):this.__update,t.addEventListener("resize",o,d)},this.setDebounce(s),Object.keys(r).length>0?(this.setSizes(r),r=void 0):this.__update(),!0===n&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===i.uX.value?t.push(a):a()}});n(7280),n(5363);const p=a({isActive:!1,mode:!1},{__media:void 0,set(e){p.mode=e,"auto"===e?(void 0===p.__media&&(p.__media=window.matchMedia("(prefers-color-scheme: dark)"),p.__updateMedia=()=>{p.set("auto")},p.__media.addListener(p.__updateMedia)),e=p.__media.matches):void 0!==p.__media&&(p.__media.removeListener(p.__updateMedia),p.__media=void 0),p.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){p.set(!1===p.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:o}=e.config;if(e.dark=this,!0===this.__installed&&void 0===o)return;this.isActive=!0===o;const r=void 0!==o&&o;if(!0===i.uX.value){const e=e=>{this.__fromSSR=e},n=this.set;this.set=e,e(r),t.push((()=>{this.set=n,this.set(this.__fromSSR)}))}else this.set(r)}}),h=p;var v=n(6583);const m={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function g(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const y=a({__langPack:{}},{getLocale:g,set(e=m,t){const n=r()(r()({},e),{},{rtl:!0===e.rtl,getLocale:g});{const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName),n.set=y.set,Object.assign(y.__langPack,n),y.props=n,y.isoName=n.isoName,y.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=y.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||m)}}),b=y;function w(e,t,n=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}var _=n(1436);function x(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function k({is:e,has:t,within:n},o){const r=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=x(e);void 0!==t&&r.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;r.push(t),r.push("native-mobile"),!0!==e.ios||void 0!==o[t]&&!1===o[t].iosStatusBarPadding||r.push("q-ios-padding")}else!0===e.electron?r.push("electron"):!0===e.bex&&r.push("bex");return!0===n.iframe&&r.push("within-iframe"),r}function S(){const e=document.body.className;let t=e;void 0!==i.aG&&(t=t.replace("desktop","platform-ios mobile")),!0===i.Lp.has.touch&&(t=t.replace("no-touch","touch")),!0===i.Lp.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function E(e){for(const t in e)w(t,e[t])}const C={install(e){const{$q:t}=e;if(void 0!==t.config.brand&&E(t.config.brand),!0!==this.__installed){if(!0===i.uX.value)S();else{const e=k(i.Lp,t.config);document.body.classList.add.apply(document.body.classList,e)}!0===i.Lp.is.ios&&document.body.addEventListener("touchstart",l.ZT),window.addEventListener("keydown",_.ZK,!0)}}},O={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},T=a({iconMapFn:null,__icons:{}},{set(e,t){const n=r()(r()({},e),{},{rtl:!0===e.rtl});n.set=T.set,Object.assign(T.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,Object.defineProperty(e,"iconMapFn",{get:()=>this.iconMapFn,set:e=>{this.iconMapFn=e}}),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||O)}}),L=T;var P=n(2547);const A={};let F=!1;function R(){F=!0}const j=[i.ZP,C,h,f,v.Z,b,L];function q(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function $(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(P.Ng,n.$q),q(n,j),void 0!==t.components&&Object.values(t.components).forEach((t=>{Object(t)===t&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{Object(t)===t&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&q(n,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===j.includes(e)))),!0===i.uX.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach((e=>{e()})),n.$q.onSSRHydrated=()=>{}})}const M=function(e,t={}){const n={version:"2.0.3"};!1===F?(void 0!==t.config&&Object.assign(A,t.config),n.config=r()({},A),R()):n.config=t.config||{},$(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},N={version:"2.0.3",install:M,lang:b,iconSet:L}},7083:e=>{e.exports.xr=function(e){return e},e.exports.BC=function(e){return e},e.exports.h=function(e){return e}},8231:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},8248:(e,t,n)=>{var o=n(776);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},2852:(e,t,n)=>{var o=n(854),r=n(1074),i=n(928),s=o("unscopables"),a=Array.prototype;void 0==a[s]&&i.f(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},6412:(e,t,n)=>{"use strict";var o=n(1021).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},7950:(e,t,n)=>{var o=n(776);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},6963:(e,t,n)=>{var o=n(7120),r=n(4068),i=n(1801),s=function(e){return function(t,n,s){var a,l=o(t),c=r(l.length),u=i(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},330:(e,t,n)=>{var o=n(776),r=n(6894),i=n(854),s=i("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)?o(t)&&(t=t[s],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},6340:(e,t,n)=>{var o=n(330);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},5173:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},8438:(e,t,n)=>{var o=n(8752),r=n(7764),i=n(2404),s=n(928);e.exports=function(e,t){for(var n=r(t),a=s.f,l=i.f,c=0;c<n.length;c++){var u=n[c];o(e,u)||a(e,u,l(t,u))}}},123:(e,t,n)=>{var o=n(6400);e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5912:(e,t,n)=>{"use strict";var o=n(4848).IteratorPrototype,r=n(1074),i=n(5442),s=n(1061),a=n(2184),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),s(e,c,!1,!0),a[c]=l,e}},1904:(e,t,n)=>{var o=n(9631),r=n(928),i=n(5442);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},5442:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8810:(e,t,n)=>{"use strict";var o=n(8934),r=n(5912),i=n(4945),s=n(6184),a=n(1061),l=n(1904),c=n(298),u=n(854),d=n(6692),f=n(2184),p=n(4848),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,u,p,_,x){r(n,t,u);var k,S,E,C=function(e){if(e===p&&A)return A;if(!v&&e in L)return L[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",T=!1,L=e.prototype,P=L[m]||L["@@iterator"]||p&&L[p],A=!v&&P||C(p),F="Array"==t&&L.entries||P;if(F&&(k=i(F.call(new e)),h!==Object.prototype&&k.next&&(d||i(k)===h||(s?s(k,h):"function"!=typeof k[m]&&l(k,m,w)),a(k,O,!0,!0),d&&(f[O]=w))),p==y&&P&&P.name!==y&&(T=!0,A=function(){return P.call(this)}),d&&!x||L[m]===A||l(L,m,A),f[t]=A,p)if(S={values:C(y),keys:_?A:C(g),entries:C(b)},x)for(E in S)(v||T||!(E in L))&&c(L,E,S[E]);else o({target:t,proto:!0,forced:v||T},S);return S}},9631:(e,t,n)=>{var o=n(6400);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5354:(e,t,n)=>{var o=n(7358),r=n(776),i=o.document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},4296:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9173:(e,t,n)=>{var o=n(9694);e.exports=o("navigator","userAgent")||""},5068:(e,t,n)=>{var o,r,i=n(7358),s=n(9173),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u?(o=u.split("."),r=o[0]<4?1:o[0]+o[1]):s&&(o=s.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/),o&&(r=o[1]))),e.exports=r&&+r},2875:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8934:(e,t,n)=>{var o=n(7358),r=n(2404).f,i=n(1904),s=n(298),a=n(3534),l=n(8438),c=n(4389);e.exports=function(e,t){var n,u,d,f,p,h,v=e.target,m=e.global,g=e.stat;if(u=m?o:g?o[v]||a(v,{}):(o[v]||{}).prototype,u)for(d in t){if(p=t[d],e.noTargetGet?(h=r(u,d),f=h&&h.value):f=u[d],n=c(m?d:v+(g?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;l(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),s(u,d,p,e)}}},6400:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},9529:(e,t,n)=>{"use strict";n(7280);var o=n(298),r=n(4348),i=n(6400),s=n(854),a=n(1904),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,u){var d=s(e),f=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!p||n){var h=/./[d],v=t(d,""[e],(function(e,t,n,o,i){var s=t.exec;return s===r||s===c.exec?f&&!i?{done:!0,value:h.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(c,d,v[1])}u&&a(c[d],"sham",!0)}},4817:(e,t,n)=>{"use strict";var o=n(6894),r=n(4068),i=n(422),s=function(e,t,n,a,l,c,u,d){var f,p=l,h=0,v=!!u&&i(u,d,3);while(h<a){if(h in n){if(f=v?v(n[h],h,t):n[h],c>0&&o(f))p=s(e,t,f,r(f.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=s},422:(e,t,n)=>{var o=n(8231);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},9694:(e,t,n)=>{var o=n(7358),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(o[e]):o[e]&&o[e][t]}},8716:(e,t,n)=>{var o=n(7475),r=Math.floor,i="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,p=a;return void 0!==c&&(c=o(c),p=s),i.call(u,p,(function(o,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":s=c[i.slice(1,-1)];break;default:var a=+i;if(0===a)return o;if(a>f){var u=r(a/10);return 0===u?o:u<=f?void 0===l[u-1]?i.charAt(1):l[u-1]+i.charAt(1):o}s=l[a-1]}return void 0===s?"":s}))}},7358:(e,t,n)=>{var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},8752:(e,t,n)=>{var o=n(7475),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(o(e),t)}},600:e=>{e.exports={}},9970:(e,t,n)=>{var o=n(9694);e.exports=o("document","documentElement")},7021:(e,t,n)=>{var o=n(9631),r=n(6400),i=n(5354);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2985:(e,t,n)=>{var o=n(6400),r=n(5173),i="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?i.call(e,""):Object(e)}:Object},9941:(e,t,n)=>{var o=n(776),r=n(6184);e.exports=function(e,t,n){var i,s;return r&&"function"==typeof(i=t.constructor)&&i!==n&&o(s=i.prototype)&&s!==n.prototype&&r(e,s),e}},3725:(e,t,n)=>{var o=n(1089),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},7624:(e,t,n)=>{var o,r,i,s=n(9262),a=n(7358),l=n(776),c=n(1904),u=n(8752),d=n(1089),f=n(203),p=n(600),h="Object already initialized",v=a.WeakMap,m=function(e){return i(e)?r(e):o(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var y=d.state||(d.state=new v),b=y.get,w=y.has,_=y.set;o=function(e,t){if(w.call(y,e))throw new TypeError(h);return t.facade=e,_.call(y,e,t),t},r=function(e){return b.call(y,e)||{}},i=function(e){return w.call(y,e)}}else{var x=f("state");p[x]=!0,o=function(e,t){if(u(e,x))throw new TypeError(h);return t.facade=e,c(e,x,t),t},r=function(e){return u(e,x)?e[x]:{}},i=function(e){return u(e,x)}}e.exports={set:o,get:r,has:i,enforce:m,getterFor:g}},6894:(e,t,n)=>{var o=n(5173);e.exports=Array.isArray||function(e){return"Array"==o(e)}},4389:(e,t,n)=>{var o=n(6400),r=/#|\.prototype\./,i=function(e,t){var n=a[s(e)];return n==c||n!=l&&("function"==typeof t?o(t):!!t)},s=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},776:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},6692:e=>{e.exports=!1},6491:(e,t,n)=>{var o=n(776),r=n(5173),i=n(854),s=i("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},410:(e,t,n)=>{var o=n(9694),r=n(8476);e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return"function"==typeof t&&Object(e)instanceof t}},4848:(e,t,n)=>{"use strict";var o,r,i,s=n(6400),a=n(4945),l=n(1904),c=n(8752),u=n(854),d=n(6692),f=u("iterator"),p=!1,h=function(){return this};[].keys&&(i=[].keys(),"next"in i?(r=a(a(i)),r!==Object.prototype&&(o=r)):p=!0);var v=void 0==o||s((function(){var e={};return o[f].call(e)!==e}));v&&(o={}),d&&!v||c(o,f)||l(o,f,h),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},2184:e=>{e.exports={}},7529:(e,t,n)=>{var o=n(5068),r=n(6400);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},9262:(e,t,n)=>{var o=n(7358),r=n(3725),i=o.WeakMap;e.exports="function"===typeof i&&/native code/.test(r(i))},1074:(e,t,n)=>{var o,r=n(7950),i=n(3605),s=n(2875),a=n(600),l=n(9970),c=n(5354),u=n(203),d=">",f="<",p="prototype",h="script",v=u("IE_PROTO"),m=function(){},g=function(e){return f+h+d+e+f+"/"+h+d},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+h+":";if(t.style)return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}w=document.domain&&o?y(o):b()||y(o);var e=s.length;while(e--)delete w[p][s[e]];return w()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=r(e),n=new m,m[p]=null,n[v]=e):n=w(),void 0===t?n:i(n,t)}},3605:(e,t,n)=>{var o=n(9631),r=n(928),i=n(7950),s=n(9158);e.exports=o?Object.defineProperties:function(e,t){i(e);var n,o=s(t),a=o.length,l=0;while(a>l)r.f(e,n=o[l++],t[n]);return e}},928:(e,t,n)=>{var o=n(9631),r=n(7021),i=n(7950),s=n(8618),a=Object.defineProperty;t.f=o?a:function(e,t,n){if(i(e),t=s(t),i(n),r)try{return a(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2404:(e,t,n)=>{var o=n(9631),r=n(5604),i=n(5442),s=n(7120),a=n(8618),l=n(8752),c=n(7021),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=s(e),t=a(t),c)try{return u(e,t)}catch(n){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},1454:(e,t,n)=>{var o=n(1587),r=n(2875),i=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},3353:(e,t)=>{t.f=Object.getOwnPropertySymbols},4945:(e,t,n)=>{var o=n(8752),r=n(7475),i=n(203),s=n(123),a=i("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),o(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},1587:(e,t,n)=>{var o=n(8752),r=n(7120),i=n(6963).indexOf,s=n(600);e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)!o(s,n)&&o(a,n)&&c.push(n);while(t.length>l)o(a,n=t[l++])&&(~i(c,n)||c.push(n));return c}},9158:(e,t,n)=>{var o=n(1587),r=n(2875);e.exports=Object.keys||function(e){return o(e,r)}},5604:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},6184:(e,t,n)=>{var o=n(7950),r=n(8248);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},9308:(e,t,n)=>{var o=n(776);e.exports=function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7764:(e,t,n)=>{var o=n(9694),r=n(1454),i=n(3353),s=n(7950);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},298:(e,t,n)=>{var o=n(7358),r=n(1904),i=n(8752),s=n(3534),a=n(3725),l=n(7624),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var l,c=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||r(n,"name",t),l=u(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==o?(c?!p&&e[t]&&(f=!0):delete e[t],f?e[t]=n:r(e,t,n)):f?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},9395:(e,t,n)=>{var o=n(5173),r=n(4348);e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},4348:(e,t,n)=>{"use strict";var o=n(4481),r=n(136),i=n(2351),s=n(1586),a=n(1074),l=n(7624).get,c=n(5337),u=n(1442),d=RegExp.prototype.exec,f=s("native-string-replace",String.prototype.replace),p=d,h=function(){var e=/a/,t=/b*/g;return d.call(e,"a"),d.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),v=i.UNSUPPORTED_Y||i.BROKEN_CARET,m=void 0!==/()??/.exec("")[1],g=h||m||v||c||u;g&&(p=function(e){var t,n,i,s,c,u,g,y=this,b=l(y),w=o(e),_=b.raw;if(_)return _.lastIndex=y.lastIndex,t=p.call(_,w),y.lastIndex=_.lastIndex,t;var x=b.groups,k=v&&y.sticky,S=r.call(y),E=y.source,C=0,O=w;if(k&&(S=S.replace("y",""),-1===S.indexOf("g")&&(S+="g"),O=w.slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==w.charAt(y.lastIndex-1))&&(E="(?: "+E+")",O=" "+O,C++),n=new RegExp("^(?:"+E+")",S)),m&&(n=new RegExp("^"+E+"$(?!\\s)",S)),h&&(i=y.lastIndex),s=d.call(k?n:y,O),k?s?(s.input=s.input.slice(C),s[0]=s[0].slice(C),s.index=y.lastIndex,y.lastIndex+=s[0].length):y.lastIndex=0:h&&s&&(y.lastIndex=y.global?s.index+s[0].length:i),m&&s&&s.length>1&&f.call(s[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s&&x)for(s.groups=u=a(null),c=0;c<x.length;c++)g=x[c],u[g[0]]=s[g[1]];return s}),e.exports=p},136:(e,t,n)=>{"use strict";var o=n(7950);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2351:(e,t,n)=>{var o=n(6400),r=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},5337:(e,t,n)=>{var o=n(6400);e.exports=o((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1442:(e,t,n)=>{var o=n(6400);e.exports=o((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7933:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},3534:(e,t,n)=>{var o=n(7358);e.exports=function(e,t){try{Object.defineProperty(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},4114:(e,t,n)=>{"use strict";var o=n(9694),r=n(928),i=n(854),s=n(9631),a=i("species");e.exports=function(e){var t=o(e),n=r.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},1061:(e,t,n)=>{var o=n(928).f,r=n(8752),i=n(854),s=i("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&o(e,s,{configurable:!0,value:t})}},203:(e,t,n)=>{var o=n(1586),r=n(6862),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},1089:(e,t,n)=>{var o=n(7358),r=n(3534),i="__core-js_shared__",s=o[i]||r(i,{});e.exports=s},1586:(e,t,n)=>{var o=n(6692),r=n(1089);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:o?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},1021:(e,t,n)=>{var o=n(3814),r=n(4481),i=n(7933),s=function(e){return function(t,n){var s,a,l=r(i(t)),c=o(n),u=l.length;return c<0||c>=u?e?"":void 0:(s=l.charCodeAt(c),s<55296||s>56319||c+1===u||(a=l.charCodeAt(c+1))<56320||a>57343?e?l.charAt(c):s:e?l.slice(c,c+2):a-56320+(s-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},1801:(e,t,n)=>{var o=n(3814),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},7120:(e,t,n)=>{var o=n(2985),r=n(7933);e.exports=function(e){return o(r(e))}},3814:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4068:(e,t,n)=>{var o=n(3814),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},7475:(e,t,n)=>{var o=n(7933);e.exports=function(e){return Object(o(e))}},2181:(e,t,n)=>{var o=n(776),r=n(410),i=n(9308),s=n(854),a=s("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,s=e[a];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!o(n)||r(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},8618:(e,t,n)=>{var o=n(2181),r=n(410);e.exports=function(e){var t=o(e,"string");return r(t)?t:String(t)}},4481:(e,t,n)=>{var o=n(410);e.exports=function(e){if(o(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},6862:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},8476:(e,t,n)=>{var o=n(7529);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},854:(e,t,n)=>{var o=n(7358),r=n(1586),i=n(8752),s=n(6862),a=n(7529),l=n(8476),c=r("wks"),u=o.Symbol,d=l?u:u&&u.withoutSetter||s;e.exports=function(e){return i(c,e)&&(a||"string"==typeof c[e])||(a&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},9377:(e,t,n)=>{"use strict";var o=n(8934),r=n(4817),i=n(7475),s=n(4068),a=n(3814),l=n(6340);o({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=s(t.length),o=l(t,0);return o.length=r(o,t,t,n,0,void 0===e?1:a(e)),o}})},6843:(e,t,n)=>{"use strict";var o=n(7120),r=n(2852),i=n(2184),s=n(7624),a=n(8810),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:o(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},4303:(e,t,n)=>{var o=n(9631),r=n(7358),i=n(4389),s=n(9941),a=n(1904),l=n(928).f,c=n(1454).f,u=n(6491),d=n(4481),f=n(136),p=n(2351),h=n(298),v=n(6400),m=n(8752),g=n(7624).enforce,y=n(4114),b=n(854),w=n(5337),_=n(1442),x=b("match"),k=r.RegExp,S=k.prototype,E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,C=/a/g,O=/a/g,T=new k(C)!==C,L=p.UNSUPPORTED_Y,P=o&&(!T||L||w||_||v((function(){return O[x]=!1,k(C)!=C||k(O)==O||"/a/i"!=k(C,"i")}))),A=function(e){for(var t,n=e.length,o=0,r="",i=!1;o<=n;o++)t=e.charAt(o),"\\"!==t?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+e.charAt(++o);return r},F=function(e){for(var t,n=e.length,o=0,r="",i=[],s={},a=!1,l=!1,c=0,u="";o<=n;o++){if(t=e.charAt(o),"\\"===t)t+=e.charAt(++o);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:E.test(e.slice(o+1))&&(o+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||m(s,u))throw new SyntaxError("Invalid capture group name");s[u]=!0,i.push([u,c]),l=!1,u="";continue}l?u+=t:r+=t}return[r,i]};if(i("RegExp",P)){for(var R=function(e,t){var n,o,r,i,l,c,p=this instanceof R,h=u(e),v=void 0===t,m=[],y=e;if(!p&&h&&v&&e.constructor===R)return e;if((h||e instanceof R)&&(e=e.source,v&&(t="flags"in y?y.flags:f.call(y))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),y=e,w&&"dotAll"in C&&(o=!!t&&t.indexOf("s")>-1,o&&(t=t.replace(/s/g,""))),n=t,L&&"sticky"in C&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,""))),_&&(i=F(e),e=i[0],m=i[1]),l=s(k(e,t),p?this:S,R),(o||r||m.length)&&(c=g(l),o&&(c.dotAll=!0,c.raw=R(A(e),n)),r&&(c.sticky=!0),m.length&&(c.groups=m)),e!==y)try{a(l,"source",""===y?"(?:)":y)}catch(b){}return l},j=function(e){e in R||l(R,e,{configurable:!0,get:function(){return k[e]},set:function(t){k[e]=t}})},q=c(k),$=0;q.length>$;)j(q[$++]);S.constructor=R,R.prototype=S,h(r,"RegExp",R)}y("RegExp")},7280:(e,t,n)=>{"use strict";var o=n(8934),r=n(4348);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},5363:(e,t,n)=>{"use strict";var o=n(9529),r=n(6400),i=n(7950),s=n(3814),a=n(4068),l=n(4481),c=n(7933),u=n(6412),d=n(8716),f=n(9395),p=n(854),h=p("replace"),v=Math.max,m=Math.min,g=function(e){return void 0===e?e:String(e)},y=function(){return"$0"==="a".replace(/./,"$0")}(),b=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),w=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));o("replace",(function(e,t,n){var o=b?"$":"$0";return[function(e,n){var o=c(this),r=void 0==e?void 0:e[h];return void 0!==r?r.call(e,o,n):t.call(l(o),e,n)},function(e,r){var c=i(this),p=l(e);if("string"===typeof r&&-1===r.indexOf(o)&&-1===r.indexOf("$<")){var h=n(t,c,p,r);if(h.done)return h.value}var y="function"===typeof r;y||(r=l(r));var b=c.global;if(b){var w=c.unicode;c.lastIndex=0}var _=[];while(1){var x=f(c,p);if(null===x)break;if(_.push(x),!b)break;var k=l(x[0]);""===k&&(c.lastIndex=u(p,a(c.lastIndex),w))}for(var S="",E=0,C=0;C<_.length;C++){x=_[C];for(var O=l(x[0]),T=v(m(s(x.index),p.length),0),L=[],P=1;P<x.length;P++)L.push(g(x[P]));var A=x.groups;if(y){var F=[O].concat(L,T,p);void 0!==A&&F.push(A);var R=l(r.apply(void 0,F))}else R=d(O,p,T,L,A,r);T>=E&&(S+=p.slice(E,T)+R,E=T+O.length)}return S+p.slice(E)}]}),!w||!y||b)},71:(e,t,n)=>{var o=n(7358),r=n(4296),i=n(6843),s=n(1904),a=n(854),l=a("iterator"),c=a("toStringTag"),u=i.values;for(var d in r){var f=o[d],p=f&&f.prototype;if(p){if(p[l]!==u)try{s(p,l,u)}catch(v){p[l]=u}if(p[c]||s(p,c,d),r[d])for(var h in i)if(p[h]!==i[h])try{s(p,h,i[h])}catch(v){p[h]=i[h]}}}},9582:(e,t,n)=>{"use strict";n.d(t,{p7:()=>tt,r5:()=>J});var o=n(3673),r=n(1959);
/*!
* vue-router v4.0.10
* (c) 2021 Eduardo San Martin Morote
* @license MIT
*/
const i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,s=e=>i?Symbol(e):"_vr_"+e,a=s("rvlm"),l=s("rvd"),c=s("r"),u=s("rl"),d=s("rvl"),f="undefined"!==typeof window;function p(e){return e.__esModule||i&&"Module"===e[Symbol.toStringTag]}const h=Object.assign;function v(e,t){const n={};for(const o in t){const r=t[o];n[o]=Array.isArray(r)?r.map(e):e(r)}return n}let m=()=>{};const g=/\/$/,y=e=>e.replace(g,"");function b(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(o=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=O(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:s}}function w(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function x(e,t,n){let o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&k(t.matched[o],n.matched[r])&&S(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function k(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function S(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!E(e[n],t[n]))return!1;return!0}function E(e,t){return Array.isArray(e)?C(e,t):Array.isArray(t)?C(t,e):e===t}function C(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function O(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,s=n.length-1;for(r=0;r<o.length;r++)if(i=o[r],1!==s&&"."!==i){if(".."!==i)break;s--}return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var T,L;(function(e){e["pop"]="pop",e["push"]="push"})(T||(T={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(L||(L={}));function P(e){if(!e)if(f){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),y(e)}const A=/^[^#]+#/;function F(e,t){return e.replace(A,"#")+t}function R(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const j=()=>({left:window.pageXOffset,top:window.pageYOffset});function q(e){let t;if("el"in e){let n=e.el;const o="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=R(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function $(e,t){const n=history.state?history.state.position-t:-1;return n+e}const M=new Map;function N(e,t){M.set(e,t)}function I(e){const t=M.get(e);return M.delete(e),t}let B=()=>location.protocol+"//"+location.host;function U(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),_(n,"")}const s=_(n,e);return s+o+r}function z(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=U(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:T.pop,direction:u?u>0?L.forward:L.back:L.unknown})}))};function l(){s=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t}function u(){const{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:j()}),"")}function d(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function H(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?j():null}}function D(e){const{history:t,location:n}=window;let o={value:U(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:B()+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}function s(e,n){const s=h({},t.state,H(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});i(e,s,!0),o.value=e}function a(e,n){const s=h({},r.value,t.state,{forward:e,scroll:j()});i(s.current,s,!0);const a=h({},H(o.value,e,null),{position:s.position+1},n);i(e,a,!1),o.value=e}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:a,replace:s}}function V(e){e=P(e);const t=D(e),n=z(e,t.state,t.location,t.replace);function o(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=h({location:"",base:e,go:o,createHref:F.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function J(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),V(e)}function Z(e){return"string"===typeof e||e&&"object"===typeof e}function W(e){return"string"===typeof e||"symbol"===typeof e}const K={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G=s("nf");var Y;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(Y||(Y={}));function X(e,t){return h(new Error,{type:e,[G]:!0},t)}function Q(e,t){return e instanceof Error&&G in e&&(null==t||!!(e.type&t))}const ee="[^/]+?",te={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function oe(e,t){const n=h({},te,t);let o=[],r=n.start?"^":"";const i=[];for(const u of e){const e=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let t=0;t<u.length;t++){const o=u[t];let s=40+(n.sensitive?.25:0);if(0===o.type)t||(r+="/"),r+=o.value.replace(ne,"\\$&"),s+=40;else if(1===o.type){const{value:e,repeatable:n,optional:a,regexp:l}=o;i.push({name:e,repeatable:n,optional:a});const d=l||ee;if(d!==ee){s+=10;try{new RegExp(`(${d})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+c.message)}}let f=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(f=a&&u.length<2?`(?:/${f})`:"/"+f),a&&(f+="?"),r+=f,s+=20,a&&(s+=-8),n&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function a(e){const t=e.match(s),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",r=i[o-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n}function l(t){let n="",o=!1;for(const r of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:s,optional:a}=e,l=i in t?t[i]:"";if(Array.isArray(l)&&!s)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const c=Array.isArray(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${i}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):o=!0)}n+=c}}return n}return{re:s,score:o,keys:i,parse:a,stringify:l}}function re(e,t){let n=0;while(n<e.length&&n<t.length){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;while(n<o.length&&n<r.length){const e=re(o[n],r[n]);if(e)return e;n++}return r.length-o.length}const se={type:0,value:""},ae=/[a-zA-Z0-9_]/;function le(e){if(!e)return[[]];if("/"===e)return[[se]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,o=n;const r=[];let i;function s(){i&&r.push(i),i=[]}let a,l=0,c="",u="";function d(){c&&(0===n?i.push({type:0,value:c}):1===n||2===n||3===n?(i.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}while(l<e.length)if(a=e[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&d(),s()):":"===a?(d(),n=1):f();break;case 4:f(),n=o;break;case 1:"("===a?n=2:ae.test(a)?f():(d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:t("Unknown state");break}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),r}function ce(e,t,n){const o=oe(le(e.path),n);const r=h(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf===!t.record.aliasOf&&t.children.push(r),r}function ue(e,t){const n=[],o=new Map;function r(e){return o.get(e)}function i(e,n,o){let r=!o,a=fe(e);a.aliasOf=o&&o.record;const c=me(t,e),u=[a];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(h({},a,{components:o?o.record.components:a.components,path:e,aliasOf:o?o.record:a}))}let d,f;for(const t of u){let{path:u}=t;if(n&&"/"!==u[0]){let e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=ce(t,n,c),o?o.alias.push(d):(f=f||d,f!==d&&f.alias.push(d),r&&e.name&&!he(d)&&s(e.name)),"children"in a){let e=a.children;for(let t=0;t<e.length;t++)i(e[t],d,o&&o.children[t])}o=o||d,l(d)}return f?()=>{s(f)}:m}function s(e){if(W(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function a(){return n}function l(e){let t=0;while(t<n.length&&ie(e,n[t])>=0)t++;n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}function c(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw X(1,{location:e});s=r.record.name,a=h(de(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),i=r.stringify(a)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw X(1,{location:e,currentLocation:t});s=r.record.name,a=h({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;while(c)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:ve(l)}}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:r}}function de(e,t){let n={};for(let o of t)o in e&&(n[o]=e[o]);return n}function fe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function pe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(let o in e.components)t[o]="boolean"===typeof n?n:n[o];return t}function he(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ve(e){return e.reduce(((e,t)=>h(e,t.meta)),{})}function me(e,t){let n={};for(let o in e)n[o]=o in t?t[o]:e[o];return n}const ge=/#/g,ye=/&/g,be=/\//g,we=/=/g,_e=/\?/g,xe=/\+/g,ke=/%5B/g,Se=/%5D/g,Ee=/%5E/g,Ce=/%60/g,Oe=/%7B/g,Te=/%7C/g,Le=/%7D/g,Pe=/%20/g;function Ae(e){return encodeURI(""+e).replace(Te,"|").replace(ke,"[").replace(Se,"]")}function Fe(e){return Ae(e).replace(Oe,"{").replace(Le,"}").replace(Ee,"^")}function Re(e){return Ae(e).replace(xe,"%2B").replace(Pe,"+").replace(ge,"%23").replace(ye,"%26").replace(Ce,"`").replace(Oe,"{").replace(Le,"}").replace(Ee,"^")}function je(e){return Re(e).replace(we,"%3D")}function qe(e){return Ae(e).replace(ge,"%23").replace(_e,"%3F")}function $e(e){return qe(e).replace(be,"%2F")}function Me(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ne(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],o=(n?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const e=o[r].replace(xe," ");let n=e.indexOf("="),i=Me(n<0?e:e.slice(0,n)),s=n<0?null:Me(e.slice(n+1));if(i in t){let e=t[i];Array.isArray(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function Ie(e){let t="";for(let n in e){const o=e[n];if(n=je(n),null==o){void 0!==o&&(t+=(t.length?"&":"")+n);continue}let r=Array.isArray(o)?o.map((e=>e&&Re(e))):[o&&Re(o)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Be(e){const t={};for(let n in e){let o=e[n];void 0!==o&&(t[n]=Array.isArray(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}function Ue(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ze(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,a)=>{const l=e=>{!1===e?a(X(4,{from:n,to:t})):e instanceof Error?a(e):Z(e)?a(X(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"===typeof e&&i.push(e),s())},c=e.call(o&&o.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>a(e)))}))}function He(e,t,n,o){const r=[];for(const i of e)for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(De(s)){let a=s.__vccOpts||s;const l=a[t];l&&r.push(ze(l,n,o,i,e))}else{let a=s();0,r.push((()=>a.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const s=p(r)?r.default:r;i.components[e]=s;let a=s.__vccOpts||s;const l=a[t];return l&&ze(l,n,o,i,e)()}))))}}return r}function De(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ve(e){const t=(0,o.f3)(c),n=(0,o.f3)(u),i=(0,o.Fl)((()=>t.resolve((0,r.SU)(e.to)))),s=(0,o.Fl)((()=>{let{matched:e}=i.value,{length:t}=e;const o=e[t-1];let r=n.matched;if(!o||!r.length)return-1;let s=r.findIndex(k.bind(null,o));if(s>-1)return s;let a=Ge(e[t-2]);return t>1&&Ge(o)===a&&r[r.length-1].path!==a?r.findIndex(k.bind(null,e[t-2])):s})),a=(0,o.Fl)((()=>s.value>-1&&Ke(n.params,i.value.params))),l=(0,o.Fl)((()=>s.value>-1&&s.value===n.matched.length-1&&S(n.params,i.value.params)));function d(n={}){return We(n)?t[(0,r.SU)(e.replace)?"replace":"push"]((0,r.SU)(e.to)).catch(m):Promise.resolve()}return{route:i,href:(0,o.Fl)((()=>i.value.href)),isActive:a,isExactActive:l,navigate:d}}const Je=(0,o.aZ)({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ve,setup(e,{slots:t}){const n=(0,r.qj)(Ve(e)),{options:i}=(0,o.f3)(c),s=(0,o.Fl)((()=>({[Ye(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Ye(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,o.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),Ze=Je;function We(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ke(e,t){for(let n in t){let o=t[n],r=e[n];if("string"===typeof o){if(o!==r)return!1}else if(!Array.isArray(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}function Ge(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ye=(e,t,n)=>null!=e?e:null!=t?t:n,Xe=(0,o.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const i=(0,o.f3)(d),s=(0,o.Fl)((()=>e.route||i.value)),c=(0,o.f3)(l,0),u=(0,o.Fl)((()=>s.value.matched[c]));(0,o.JJ)(l,c+1),(0,o.JJ)(a,u),(0,o.JJ)(d,s);const f=(0,r.iH)();return(0,o.YP)((()=>[f.value,u.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&k(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=s.value,i=u.value,a=i&&i.components[e.name],l=e.name;if(!a)return Qe(n.default,{Component:a,route:r});const c=i.props[e.name],d=c?!0===c?r.params:"function"===typeof c?c(r):c:null,p=e=>{e.component.isUnmounted&&(i.instances[l]=null)},v=(0,o.h)(a,h({},d,t,{onVnodeUnmounted:p,ref:f}));return Qe(n.default,{Component:v,route:r})||v}}});function Qe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const et=Xe;function tt(e){const t=ue(e.routes,e);let n=e.parseQuery||Ne,i=e.stringifyQuery||Ie,s=e.history;const a=Ue(),l=Ue(),p=Ue(),g=(0,r.XI)(K);let y=K;f&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=v.bind(null,(e=>""+e)),k=v.bind(null,$e),S=v.bind(null,Me);function E(e,n){let o,r;return W(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)}function C(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function O(){return t.getRoutes().map((e=>e.record))}function L(e){return!!t.getRecordMatcher(e)}function P(e,o){if(o=h({},o||g.value),"string"===typeof e){let r=b(n,e,o.path),i=t.resolve({path:r.path},o),a=s.createHref(r.fullPath);return h(r,i,{params:S(i.params),hash:Me(r.hash),redirectedFrom:void 0,href:a})}let r;"path"in e?r=h({},e,{path:b(n,e.path,o.path).path}):(r=h({},e,{params:k(e.params)}),o.params=k(o.params));let a=t.resolve(r,o);const l=e.hash||"";a.params=_(S(a.params));const c=w(i,h({},e,{hash:Fe(l),path:a.path}));let u=s.createHref(c);return h({fullPath:c,hash:l,query:i===Ie?Be(e.query):e.query},a,{redirectedFrom:void 0,href:u})}function A(e){return"string"===typeof e?b(n,e,g.value.path):h({},e)}function F(e,t){if(y!==e)return X(8,{from:t,to:e})}function R(e){return U(e)}function M(e){return R(h(A(e),{replace:!0}))}function B(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"===typeof n?n(e):n;return"string"===typeof o&&(o=o.includes("?")||o.includes("#")?o=A(o):{path:o},o.params={}),h({query:e.query,hash:e.hash,params:e.params},o)}}function U(e,t){const n=y=P(e),o=g.value,r=e.state,s=e.force,a=!0===e.replace,l=B(n);if(l)return U(h(A(l),{state:r,force:s,replace:a}),t||n);const c=n;let u;return c.redirectedFrom=t,!s&&x(i,o,n)&&(u=X(16,{to:c,from:o}),re(o,o,!0,!1)),(u?Promise.resolve(u):H(c,o)).catch((e=>Q(e)?e:te(e,c,o))).then((e=>{if(e){if(Q(e,2))return U(h(A(e.to),{state:r,force:s,replace:a}),t||c)}else e=V(c,o,!0,a,r);return D(c,o,e),e}))}function z(e,t){const n=F(e,t);return n?Promise.reject(n):Promise.resolve()}function H(e,t){let n;const[o,r,i]=ot(e,t);n=He(o.reverse(),"beforeRouteLeave",e,t);for(const a of o)a.leaveGuards.forEach((o=>{n.push(ze(o,e,t))}));const s=z.bind(null,e,t);return n.push(s),nt(n).then((()=>{n=[];for(const o of a.list())n.push(ze(o,e,t));return n.push(s),nt(n)})).then((()=>{n=He(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(ze(o,e,t))}));return n.push(s),nt(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(Array.isArray(o.beforeEnter))for(const r of o.beforeEnter)n.push(ze(r,e,t));else n.push(ze(o.beforeEnter,e,t));return n.push(s),nt(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=He(i,"beforeRouteEnter",e,t),n.push(s),nt(n)))).then((()=>{n=[];for(const o of l.list())n.push(ze(o,e,t));return n.push(s),nt(n)})).catch((e=>Q(e,8)?e:Promise.reject(e)))}function D(e,t,n){for(const o of p.list())o(e,t,n)}function V(e,t,n,o,r){const i=F(e,t);if(i)return i;const a=t===K,l=f?history.state:{};n&&(o||a?s.replace(e.fullPath,h({scroll:a&&l&&l.scroll},r)):s.push(e.fullPath,r)),g.value=e,re(e,t,n,a),oe()}let J;function Z(){J=s.listen(((e,t,n)=>{let o=P(e);const r=B(o);if(r)return void U(h(r,{replace:!0}),o).catch(m);y=o;const i=g.value;f&&N($(i.fullPath,n.delta),j()),H(o,i).catch((e=>Q(e,12)?e:Q(e,2)?(U(e.to,o).then((e=>{Q(e,20)&&!n.delta&&n.type===T.pop&&s.go(-1,!1)})).catch(m),Promise.reject()):(n.delta&&s.go(-n.delta,!1),te(e,o,i)))).then((e=>{e=e||V(o,i,!1),e&&(n.delta?s.go(-n.delta,!1):n.type===T.pop&&Q(e,20)&&s.go(-1,!1)),D(o,i,e)})).catch(m)}))}let G,Y=Ue(),ee=Ue();function te(e,t,n){oe(e);const o=ee.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function ne(){return G&&g.value!==K?Promise.resolve():new Promise(((e,t)=>{Y.add([e,t])}))}function oe(e){G||(G=!0,Z(),Y.list().forEach((([t,n])=>e?n(e):t())),Y.reset())}function re(t,n,r,i){const{scrollBehavior:s}=e;if(!f||!s)return Promise.resolve();let a=!r&&I($(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return(0,o.Y3)().then((()=>s(t,n,a))).then((e=>e&&q(e))).catch((e=>te(e,t,n)))}const ie=e=>s.go(e);let se;const ae=new Set,le={currentRoute:g,addRoute:E,removeRoute:C,hasRoute:L,getRoutes:O,resolve:P,options:e,push:R,replace:M,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:l.add,afterEach:p.add,onError:ee.add,isReady:ne,install(e){const t=this;e.component("RouterLink",Ze),e.component("RouterView",et),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.SU)(g)}),f&&!se&&g.value===K&&(se=!0,R(s.location).catch((e=>{0})));const n={};for(let r in K)n[r]=(0,o.Fl)((()=>g.value[r]));e.provide(c,t),e.provide(u,(0,r.qj)(n)),e.provide(d,g);let i=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(J(),g.value=K,se=!1,G=!1),i()}}};return le}function nt(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function ot(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const i=t.matched[s];i&&(e.matched.find((e=>k(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>k(e,a)))||r.push(a))}return[n,o,r]}},7874:(e,t,n)=>{"use strict";n.d(t,{MT:()=>Z});var o=n(3673),r=n(1959);function i(){return s().__VUE_DEVTOOLS_GLOBAL_HOOK__}function s(){return"undefined"!==typeof navigator?window:"undefined"!==typeof n.g?n.g:{}}const a="devtools-plugin:setup";function l(e,t){const n=i();if(n)n.emit(a,e,t);else{const n=s(),o=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:e,setupFn:t})}}
/*!
* vuex v4.0.2
* (c) 2021 Evan You
* @license MIT
*/
var c="store";function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function d(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function p(e,t){return function(){return e(t)}}function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;g(e,n,[],e._modules.root,!0),m(e,n,t)}function m(e,t,n){var o=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={};u(i,(function(t,n){s[n]=p(t,e),Object.defineProperty(e.getters,n,{get:function(){return s[n]()},enumerable:!0})})),e._state=(0,r.qj)({data:t}),e.strict&&k(e),o&&n&&e._withCommit((function(){o.data=null}))}function g(e,t,n,o,r){var i=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!i&&!r){var a=S(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){a[l]=o.state}))}var c=o.context=y(e,s,n);o.forEachMutation((function(t,n){var o=s+n;w(e,o,t,c)})),o.forEachAction((function(t,n){var o=t.root?n:s+n,r=t.handler||t;_(e,o,r,c)})),o.forEachGetter((function(t,n){var o=s+n;x(e,o,t,c)})),o.forEachChild((function(o,i){g(e,t,n.concat(i),o,r)}))}function y(e,t,n){var o=""===t,r={dispatch:o?e.dispatch:function(n,o,r){var i=E(n,o,r),s=i.payload,a=i.options,l=i.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:o?e.commit:function(n,o,r){var i=E(n,o,r),s=i.payload,a=i.options,l=i.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return b(e,t)}},state:{get:function(){return S(e.state,n)}}}),r}function b(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,o)===t){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function w(e,t,n,o){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,o.state,t)}))}function _(e,t,n,o){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return f(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function x(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}function k(e){(0,o.YP)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function S(e,t){return t.reduce((function(e,t){return e[t]}),e)}function E(e,t,n){return d(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var C="vuex bindings",O="vuex:mutations",T="vuex:actions",L="vuex",P=0;function A(e,t){l({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[C]},(function(n){n.addTimelineLayer({id:O,label:"Vuex Mutations",color:F}),n.addTimelineLayer({id:T,label:"Vuex Actions",color:F}),n.addInspector({id:L,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===L)if(n.filter){var o=[];N(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[M(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===L){var o=n.nodeId;b(t,o),n.state=I(U(t._modules,o),"root"===o?t.getters:t._makeLocalGettersCache,o)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===L){var o=n.nodeId,r=n.path;"root"!==o&&(r=o.split("/").filter(Boolean).concat(r)),t._withCommit((function(){n.set(t._state.data,r,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.addTimelineEvent({layerId:O,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=P++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:T,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},r=Date.now()-e._time;o.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:T,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var F=8702998,R=6710886,j=16777215,q={label:"namespaced",textColor:j,backgroundColor:R};function $(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function M(e,t){return{id:t||"root",label:$(t),tags:e.namespaced?[q]:[],children:Object.keys(e._children).map((function(n){return M(e._children[n],t+n+"/")}))}}function N(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[q]:[]}),Object.keys(t._children).forEach((function(r){N(e,t._children[r],n,o+r+"/")}))}function I(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),r={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var i=B(t);r.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?$(e):e,editable:!1,value:z((function(){return i[e]}))}}))}return r}function B(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var r=t,i=o.pop();o.forEach((function(e){r[e]||(r[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),r=r[e]._custom.value})),r[i]=z((function(){return e[n]}))}else t[n]=z((function(){return e[n]}))})),t}function U(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,o,r){var i=e[o];if(!i)throw new Error('Missing module "'+o+'" for path "'+t+'".');return r===n.length-1?i:i._children}),"root"===t?e:e.root._children)}function z(e){try{return e()}catch(t){return t}}var H=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},D={namespaced:{configurable:!0}};D.namespaced.get=function(){return!!this._rawModule.namespaced},H.prototype.addChild=function(e,t){this._children[e]=t},H.prototype.removeChild=function(e){delete this._children[e]},H.prototype.getChild=function(e){return this._children[e]},H.prototype.hasChild=function(e){return e in this._children},H.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},H.prototype.forEachChild=function(e){u(this._children,e)},H.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},H.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},H.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(H.prototype,D);var V=function(e){this.register([],e,!1)};function J(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return void 0;J(e.concat(o),t.getChild(o),n.modules[o])}}V.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},V.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},V.prototype.update=function(e){J([],this.root,e)},V.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var r=new H(t,n);if(0===e.length)this.root=r;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],r)}t.modules&&u(t.modules,(function(t,r){o.register(e.concat(r),t,n)}))},V.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},V.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function Z(e){return new W(e)}var W=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new V(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var i=this,s=this,a=s.dispatch,l=s.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=o;var c=this._modules.root.state;g(this,c,[],this._modules.root),m(this,c),n.forEach((function(e){return e(t)}))},K={state:{configurable:!0}};W.prototype.install=function(e,t){e.provide(t||c,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&A(e,this)},K.state.get=function(){return this._state.data},K.state.set=function(e){0},W.prototype.commit=function(e,t,n){var o=this,r=E(e,t,n),i=r.type,s=r.payload,a=(r.options,{type:i,payload:s}),l=this._mutations[i];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,o.state)})))},W.prototype.dispatch=function(e,t){var n=this,o=E(e,t),r=o.type,i=o.payload,s={type:r,payload:i},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(c){0}var l=a.length>1?Promise.all(a.map((function(e){return e(i)}))):a[0](i);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(c){0}t(e)}))}))}},W.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},W.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return h(n,this._actionSubscribers,t)},W.prototype.watch=function(e,t,n){var r=this;return(0,o.YP)((function(){return e(r.state,r.getters)}),t,Object.assign({},n))},W.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},W.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),g(this,this.state,e,this._modules.get(e),n.preserveState),m(this,this.state)},W.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=S(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),v(this)},W.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},W.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},W.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(W.prototype,K);X((function(e,t){var n={};return G(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=Q(this.$store,"mapState",e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[o].vuex=!0})),n})),X((function(e,t){var n={};return G(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.commit;if(e){var i=Q(this.$store,"mapMutations",e);if(!i)return;o=i.context.commit}return"function"===typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n})),X((function(e,t){var n={};return G(t).forEach((function(t){var o=t.key,r=t.val;r=e+r,n[o]=function(){if(!e||Q(this.$store,"mapGetters",e))return this.$store.getters[r]},n[o].vuex=!0})),n})),X((function(e,t){var n={};return G(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var i=Q(this.$store,"mapActions",e);if(!i)return;o=i.context.dispatch}return"function"===typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n}));function G(e){return Y(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Y(e){return Array.isArray(e)||d(e)}function X(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Q(e,t,n){var o=e._modulesNamespaceMap[n];return o}}}]);
|
import request from '@/utils/request'
export function update(obj) {
let _method = 'post'
if ('method' in obj) {
_method = obj.method
}
return request({
url: obj.url,
method: _method,
data: obj.params
})
}
export function optionData(obj) {
if (obj.method && obj.method !== 'get') {
return request({
url: obj.url,
method: obj.method,
data: obj.params || {}
})
}
return request({
url: obj.url,
method: 'get',
params: obj.params || {}
})
}
export function paramsGetApi(obj) {
return request({
url: obj.url + '/' + obj.params,
method: 'get'
})
}
export function postApi(obj) {
if (obj.method && obj.method === 'get') {
return request({
url: obj.url,
method: 'get',
params: obj.params || {}
})
}
return request({
url: obj.url,
method: obj.method ? obj.method : 'post',
data: obj.params
})
}
|
var checksum = require('checksum');
module.exports = {
website: {
assets: "./book",
css: [
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css",
"fbqx.css"
],
js: [
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js",
"fbqx.js"
]
},
blocks: {
fbq: {
process: function (blk) {
var self = this;
var para = blk.body.trim();
return this.book.renderBlock('markdown', para)
.then(function (para) {
return new Promise(function (resolve, reject) {
var substr = para.split("$$");
var ans = [];
para = para.split('\n').join('<br>');
for (var i = 1; i < substr.length; i++) {
ans.push(substr[i].split('##', 1));
var str = '$$' + ans[i - 1].toString() + '##';
para = (self.output.name === 'website') ?
para.replace(str, "<div class='ans'><input type='text' class='form-control input-sm'/></div>") :
para.replace(str, "______");
}
var result = (self.output.name === 'website') ?
"<div class='fbqx'><div class='FBQbox gitQuestion' data-id='" + checksum(blk.body) + "' data-answer='" + JSON.stringify(ans) + "'>" + para + "<br><button class='btn btn-default btn-sm FBQsubmit'>Submit</button><br><p class='alert alert-default FBQmessage'>Correct.</p></div></div>" :
"<blockquote>" + para + "<br/><small style='font-size: 8px;'>ans: OMIT</small></blockquote>";
resolve(result);
});
});
}
}
}
};
|
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
// Create Schema
const UserSchema = new Schema({
name:{
type:String,
required:true
},
email:{
type:String,
required:true
},
password:{
type:String,
required:true
},
avatar:{
type:String
},
date:{
type:Date,
default:Date.now
}
})
module.exports = User = mongoose.model("users",UserSchema);
|
//DEPRECATO NESSUNA SOLUZIONE PER IMPLEMENTARE IL SERVICE WORKER
let cacheName = "TAPP_CACHE"
let filesToCache = [
"/static/CSS/Style.css",
"/template/Main.html",
"/template/Testing.html",
"templates/UserProject.html",
"/static/PWA FILES/Manifest Icons/32px-Antu_alarm-clock.svg.png",
"/static/PWA FILES/Manifest Icons/64px-Antu_alarm-clock.svg.png",
"/static/PWA FILES/Manifest Icons/128px-Antu_alarm-clock.svg.png",
"/static/PWA FILES/Manifest Icons/256px-Antu_alarm-clock.svg.png",
"/static/PWA FILES/Manifest Icons/512px-Antu_alarm-clock.svg.png",
"/static/PWA FILES/Manifest Icons/Antu_alarm-clock.svg",
];
self.addEventListener('install', function (event) {
// Perform install steps
event.waitUntil(
caches.open(cacheName)
.then(function (cache) {
console.log('Opened cache');
return cache.addAll(filesToCache);
})
);
});
|
module.exports = {handler: require('@ohoareau/lambda-api-event').default()}
|
const profileModel = require('../../database/models/profileSchema');
let WelcomeSchema = require(`../../database/models/welcomeSchema`)
const Discord = require(`discord.js`)
const mongoose = require(`mongoose`)
module.exports = (client, member, GuildMember) => {
WelcomeSchema.findOne({ guildID: member.guild.id}, async (err, data, user) => {
//console.log(member.guild.id)
if(!data) return;
const channel = await client.channels.cache.find(x => x.id === `${data.WelcomeChannel}`)
channel.send(`Welcome ${member}, ${data.WelcomeMsg}`)
})
}
|
$.ajaxSetup(
{
headers:
{
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$(document).ready(function()
{
Listar();
});
function Listar()
{
$.ajax(
{
type: 'get',
url: '/admin/estrategias-listado',
success: function(data)
{
$('#listado').empty().html(data);
$(".tooltip").tooltip("hide");
$(function()
{
$('#example1').stickyTableHeaders();
});
}
});
}
function Create()
{
BorrarDatos();
QuitarErrores();
$(".modal-title").html("Agregar estrategia de captación");
$('.modal-header').css(
{
'background-color': '#218CBF'
});
$("#btn-save").removeClass();
$("#btn-save").toggleClass("btn btn-primary btn-flat");
}
function Edit(id)
{
QuitarErrores();
var route = "/admin/estrategias/edit/" + id;
$.get(route, function(data)
{
$(".modal-title").html("Editar estrategia: #" + id);
$('.modal-header').css(
{
'background-color': '#EE8F14'
});
$("#btn-save").removeClass();
$("#btn-save").toggleClass("btn btn-warning btn-flat");
$('#id_estrategia').val(data.id);
$('#estrategia').val(data.estrategia);
$('#estatus').val(data.estatus).change();
});
}
$('#btn-save').click(function()
{
id = $('#id_estrategia').val();
if(id == '')
{
Store();
}
else
{
Update(id);
}
});
function Store()
{
$('#btn-save').attr('disabled', 'disabled');
var token = $("#_token").val();
var formData = {
estrategia: $('#estrategia').val(),
estatus: $('#estatus').val()
}
//console.log(formData);
$.ajax(
{
url: '/admin/estrategias/store',
headers:
{
'X-CSRF-TOKEN': token
},
type: 'POST',
dataType: 'json',
data: formData,
success: function(data)
{
Listar();
BorrarDatos();
$('#modal-estrategia').modal('toggle');
$('#btn-save').removeAttr('disabled');
toastr.success('Se creó el registro satisfactoriamente');
},
error: function(data)
{
$('#btn-save').removeAttr('disabled');
console.log(data);
if (data.responseJSON.errors.estrategia)
{
$("#estrategia_error").html(data.responseJSON.errors.estrategia);
$("#estrategia_error").fadeIn();
}
else
{
$("#estrategia_error").fadeOut();
}
toastr.error('No se pudo ingresar el registro, revise los errores en el formulario.');
console.clear();
}
});
}
function Update(id)
{
$('#btn-save').attr('disabled', 'disabled');
var token = $("#_token").val();
var formData = {
estrategia: $('#estrategia').val(),
estatus: $('#estatus').val()
}
//console.log(formData);
$.ajax(
{
url: '/admin/estrategias/update/' + id,
headers:
{
'X-CSRF-TOKEN': token
},
type: 'PUT',
dataType: 'json',
data: formData,
success: function(data)
{
Listar();
BorrarDatos();
$('#modal-estrategia').modal('toggle');
$('#btn-save').removeAttr('disabled');
toastr.success('Se editó el registro satisfactoriamente');
},
error: function(data)
{
$('#btn-save').removeAttr('disabled');
console.log(data);
if (data.responseJSON.errors.estrategia)
{
$("#estrategia_error").html(data.responseJSON.errors.estrategia);
$("#estrategia_error").fadeIn();
}
else
{
$("#estrategia_error").fadeOut();
}
toastr.error('No se pudo ingresar el registro, revise los errores en el formulario.');
console.clear();
}
});
}
function Inactivar(id)
{
$.confirm(
{
title: '¿Desea inactivar la estrategia?',
content: '',
autoClose: 'Cerrar|8000',
buttons:
{
Cerrar: function ()
{
//$.alert('action is canceled');
},
deleteUser:
{
text: 'Inactivar',
btnClass: 'btn-red any-other-class',
action: function ()
{
router = '/admin/estrategias/status/' + id;
token = $('#_token_egresos');
formData =
{
estatus:0
}
$.ajax(
{
url: router,
type: 'DELETE',
data: formData,
dataType: 'json',
success: function(data)
{
Listar();
toastr.info('Se inactivó la estrategia satisfactoriamente');
},
error: function(data)
{
console.log(data);
}
});
}
},
}
});
}
function Activar(id)
{
$.confirm(
{
title: '¿Desea activar la estrategia?',
content: '',
autoClose: 'Cerrar|8000',
buttons:
{
Cerrar: function ()
{
//$.alert('action is canceled');
},
deleteUser:
{
text: 'Activar',
btnClass: 'btn-green any-other-class',
action: function ()
{
router = '/admin/estrategias/status/' + id;
token = $('#_token_egresos');
formData =
{
estatus:1
}
$.ajax(
{
url: router,
type: 'DELETE',
data: formData,
dataType: 'json',
success: function(data)
{
Listar();
toastr.info('Se activó la estrategia satisfactoriamente');
},
error: function(data)
{
console.log(data);
}
});
}
},
}
});
}
function BorrarDatos()
{
$('#id_estrategia').val('');
$('#estrategia').val('');
$('#estatus').val('1').change();
}
function QuitarErrores()
{
$('#estrategia_error').fadeOut();
}
|
// Load modules
var Path = require('path');
var Boom = require('boom');
var CatboxMemory = require('catbox-memory');
var Code = require('code');
var Handlebars = require('handlebars');
var Hapi = require('..');
var Hoek = require('hoek');
var Inert = require('inert');
var Lab = require('lab');
var Vision = require('vision');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var expect = Code.expect;
describe('Plugin', function () {
describe('select()', function () {
it('creates a subset of connections for manipulation', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['s1', 'a', 'b'] });
server.connection({ labels: ['s2', 'a', 'c'] });
server.connection({ labels: ['s3', 'a', 'b', 'd'] });
server.connection({ labels: ['s4', 'b', 'x'] });
var register = function (srv, options, next) {
var a = srv.select('a');
var ab = a.select('b');
var memoryx = srv.select('x', 's4');
var sodd = srv.select(['s2', 's4']);
expect(srv.connections.length).to.equal(4);
expect(a.connections.length).to.equal(3);
expect(ab.connections.length).to.equal(2);
expect(memoryx.connections.length).to.equal(1);
expect(sodd.connections.length).to.equal(2);
srv.route({
method: 'GET',
path: '/all',
handler: function (request, reply) {
return reply('all');
}
});
a.route({
method: 'GET',
path: '/a',
handler: function (request, reply) {
return reply('a');
}
});
ab.route({
method: 'GET',
path: '/ab',
handler: function (request, reply) {
return reply('ab');
}
});
memoryx.route({
method: 'GET',
path: '/memoryx',
handler: function (request, reply) {
return reply('memoryx');
}
});
sodd.route({
method: 'GET',
path: '/sodd',
handler: function (request, reply) {
return reply('sodd');
}
});
memoryx.state('sid', { encoding: 'base64' });
srv.method({
name: 'testMethod', method: function (nxt) {
return nxt(null, '123');
}, options: { cache: { expiresIn: 1000, generateTimeout: 10 } }
});
srv.methods.testMethod(function (err, result1) {
expect(result1).to.equal('123');
srv.methods.testMethod(function (err, result2) {
expect(result2).to.equal('123');
return next();
});
});
};
register.attributes = {
name: 'plugin'
};
server.register(register, function (err) {
expect(err).to.not.exist();
expect(internals.routesList(server, 's1')).to.deep.equal(['/a', '/ab', '/all']);
expect(internals.routesList(server, 's2')).to.deep.equal(['/a', '/all', '/sodd']);
expect(internals.routesList(server, 's3')).to.deep.equal(['/a', '/ab', '/all']);
expect(internals.routesList(server, 's4')).to.deep.equal(['/all', '/memoryx', '/sodd']);
done();
});
});
it('registers a plugin on selection inside a plugin', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a'] });
server.connection({ labels: ['b'] });
server.connection({ labels: ['c'] });
var child = function (srv, options, next) {
srv.expose('key2', srv.connections.length);
return next();
};
child.attributes = {
name: 'child'
};
var test = function (srv, options, next) {
srv.expose('key1', srv.connections.length);
srv.select('a').register(child, next);
};
test.attributes = {
name: 'test'
};
server.register(test, { select: ['a', 'b'] }, function (err) {
expect(err).to.not.exist();
expect(server.plugins.test.key1).to.equal(2);
expect(server.plugins.child.key2).to.equal(1);
done();
});
});
});
describe('register()', function () {
it('registers plugin with options', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a', 'b'] });
var test = function (srv, options, next) {
expect(options.something).to.be.true();
expect(srv.realm.pluginOptions).to.equal(options);
return next();
};
test.attributes = {
name: 'test'
};
server.register({ register: test, options: { something: true } }, function (err) {
expect(err).to.not.exist();
done();
});
});
it('registers a required plugin', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a', 'b'] });
var test = {
register: function (srv, options, next) {
expect(options.something).to.be.true();
return next();
}
};
test.register.attributes = {
name: 'test'
};
server.register({ register: test, options: { something: true } }, function (err) {
expect(err).to.not.exist();
done();
});
});
it('throws on bad plugin (missing attributes)', function (done) {
var server = new Hapi.Server();
expect(function () {
server.register({
register: function (srv, options, next) {
return next();
}
}, function (err) { });
}).to.throw();
done();
});
it('throws on bad plugin (missing name)', function (done) {
var register = function (srv, options, next) {
return next();
};
register.attributes = {};
var server = new Hapi.Server();
expect(function () {
server.register(register, function (err) { });
}).to.throw();
done();
});
it('throws on bad plugin (empty pkg)', function (done) {
var register = function (srv, options, next) {
return next();
};
register.attributes = {
pkg: {}
};
var server = new Hapi.Server();
expect(function () {
server.register(register, function (err) { });
}).to.throw();
done();
});
it('throws when register is missing a callback function', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a', 'b'] });
var test = function (srv, options, next) {
expect(options.something).to.be.true();
return next();
};
test.attributes = {
name: 'test'
};
expect(function () {
server.register(test);
}).to.throw('A callback function is required to register a plugin');
done();
});
it('returns plugin error', function (done) {
var test = function (srv, options, next) {
return next(new Error('from plugin'));
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.exist();
expect(err.message).to.equal('from plugin');
done();
});
});
it('sets version to 0.0.0 if missing', function (done) {
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply(srv.version);
}
});
return next();
};
test.attributes = {
pkg: {
name: 'steve'
}
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
expect(server.connections[0].registrations.steve.version).to.equal('0.0.0');
server.inject('/', function (res) {
expect(res.result).to.equal(require('../package.json').version);
done();
});
});
});
it('exposes plugin registration information', function (done) {
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply(srv.version);
}
});
return next();
};
test.attributes = {
multiple: true,
pkg: {
name: 'bob',
version: '1.2.3'
}
};
var server = new Hapi.Server();
server.connection();
server.register({
register: test,
options: { foo: 'bar' }
}, function (err) {
expect(err).to.not.exist();
var bob = server.connections[0].registrations.bob;
expect(bob).to.exist();
expect(bob).to.be.an.object();
expect(bob.version).to.equal('1.2.3');
expect(bob.attributes.multiple).to.be.true();
expect(bob.options.foo).to.equal('bar');
server.inject('/', function (res) {
expect(res.result).to.equal(require('../package.json').version);
done();
});
});
});
it('prevents plugin from multiple registrations', function (done) {
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/a',
handler: function (request, reply) {
return reply('a');
}
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection({ host: 'example.com' });
server.register(test, function (err) {
expect(err).to.not.exist();
expect(function () {
server.register(test, function (err) { });
}).to.throw('Plugin test already registered in: http://example.com');
done();
});
});
it('allows plugin multiple registrations (attributes)', function (done) {
var test = function (srv, options, next) {
srv.app.x = srv.app.x ? srv.app.x + 1 : 1;
return next();
};
test.attributes = {
name: 'test',
multiple: true
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.register(test, function (err) {
expect(err).to.not.exist();
expect(server.app.x).to.equal(2);
done();
});
});
});
it('registers multiple plugins', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
var log = null;
server.once('log', function (event, tags) {
log = [event, tags];
});
server.register([internals.plugins.test1, internals.plugins.test2], function (err) {
expect(err).to.not.exist();
expect(internals.routesList(server)).to.deep.equal(['/test1', '/test2']);
expect(log[1].test).to.equal(true);
expect(log[0].data).to.equal('abc');
done();
});
});
it('registers multiple plugins (verbose)', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
var log = null;
server.once('log', function (event, tags) {
log = [event, tags];
});
server.register([{ register: internals.plugins.test1 }, { register: internals.plugins.test2 }], function (err) {
expect(err).to.not.exist();
expect(internals.routesList(server)).to.deep.equal(['/test1', '/test2']);
expect(log[1].test).to.equal(true);
expect(log[0].data).to.equal('abc');
done();
});
});
it('registers a child plugin', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(internals.plugins.child, function (err) {
expect(err).to.not.exist();
server.inject('/test1', function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a plugin with routes path prefix', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(internals.plugins.test1, { routes: { prefix: '/xyz' } }, function (err) {
expect(server.plugins.test1.prefix).to.equal('/xyz');
expect(err).to.not.exist();
server.inject('/xyz/test1', function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a plugin with routes path prefix (plugin options)', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register({ register: internals.plugins.test1, routes: { prefix: '/abc' } }, { routes: { prefix: '/xyz' } }, function (err) {
expect(server.plugins.test1.prefix).to.equal('/abc');
expect(err).to.not.exist();
server.inject('/abc/test1', function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a plugin with routes path prefix and plugin root route', function (done) {
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(test, { routes: { prefix: '/xyz' } }, function (err) {
expect(err).to.not.exist();
server.inject('/xyz', function (res) {
expect(res.result).to.equal('ok');
done();
});
});
});
it('ignores the type of the plugin value', function (done) {
var a = function () { };
a.register = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
return next();
};
a.register.attributes = { name: 'a' };
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(a, { routes: { prefix: '/xyz' } }, function (err) {
expect(err).to.not.exist();
server.inject('/xyz', function (res) {
expect(res.result).to.equal('ok');
done();
});
});
});
it('ignores unknown plugin properties', function (done) {
var a = {
register: function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
return next();
},
other: {}
};
a.register.attributes = { name: 'a' };
var server = new Hapi.Server();
server.connection();
server.register(a, function (err) {
expect(err).to.not.exist();
done();
});
});
it('ignores unknown plugin properties (with options)', function (done) {
var a = {
register: function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
return next();
},
other: {}
};
a.register.attributes = { name: 'a' };
var server = new Hapi.Server();
server.connection();
server.register({ register: a }, function (err) {
expect(err).to.not.exist();
done();
});
});
it('registers a child plugin with parent routes path prefix', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(internals.plugins.child, { routes: { prefix: '/xyz' } }, function (err) {
expect(err).to.not.exist();
server.inject('/xyz/test1', function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a child plugin with parent routes vhost prefix', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(internals.plugins.child, { routes: { vhost: 'example.com' } }, function (err) {
expect(err).to.not.exist();
server.inject({ url: '/test1', headers: { host: 'example.com' } }, function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a child plugin with parent routes path prefix and inner register prefix', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register({ register: internals.plugins.child, options: { routes: { prefix: '/inner' } } }, { routes: { prefix: '/xyz' } }, function (err) {
expect(err).to.not.exist();
server.inject('/xyz/inner/test1', function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a child plugin with parent routes vhost prefix and inner register vhost', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register({ register: internals.plugins.child, options: { routes: { vhost: 'example.net' } } }, { routes: { vhost: 'example.com' } }, function (err) {
expect(err).to.not.exist();
server.inject({ url: '/test1', headers: { host: 'example.com' } }, function (res) {
expect(res.result).to.equal('testing123');
done();
});
});
});
it('registers a plugin with routes vhost', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register(internals.plugins.test1, { routes: { vhost: 'example.com' } }, function (err) {
expect(err).to.not.exist();
server.inject('/test1', function (res1) {
expect(res1.statusCode).to.equal(404);
server.inject({ url: '/test1', headers: { host: 'example.com' } }, function (res2) {
expect(res2.result).to.equal('testing123');
done();
});
});
});
});
it('registers a plugin with routes vhost (plugin options)', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'test' });
server.register({ register: internals.plugins.test1, routes: { vhost: 'example.org' } }, { routes: { vhost: 'example.com' } }, function (err) {
expect(err).to.not.exist();
server.inject('/test1', function (res1) {
expect(res1.statusCode).to.equal(404);
server.inject({ url: '/test1', headers: { host: 'example.org' } }, function (res2) {
expect(res2.result).to.equal('testing123');
done();
});
});
});
});
it('registers plugins with pre-selected label', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a'] });
server.connection({ labels: ['b'] });
var server1 = server.connections[0];
var server2 = server.connections[1];
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, { select: 'a' }, function (err) {
expect(err).to.not.exist();
server1.inject('/', function (res1) {
expect(res1.statusCode).to.equal(200);
server2.inject('/', function (res2) {
expect(res2.statusCode).to.equal(404);
done();
});
});
});
});
it('registers plugins with pre-selected labels', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a'] });
server.connection({ labels: ['b'] });
server.connection({ labels: ['c'] });
var server1 = server.connections[0];
var server2 = server.connections[1];
var server3 = server.connections[2];
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
srv.expose('super', 'trooper');
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, { select: ['a', 'c'] }, function (err) {
expect(err).to.not.exist();
expect(server.plugins.test.super).to.equal('trooper');
server1.inject('/', function (res1) {
expect(res1.statusCode).to.equal(200);
server2.inject('/', function (res2) {
expect(res2.statusCode).to.equal(404);
server3.inject('/', function (res3) {
expect(res3.statusCode).to.equal(200);
done();
});
});
});
});
});
it('registers plugins with pre-selected labels (plugin options)', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a'] });
server.connection({ labels: ['b'] });
server.connection({ labels: ['c'] });
var server1 = server.connections[0];
var server2 = server.connections[1];
var server3 = server.connections[2];
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('ok');
}
});
srv.expose('super', 'trooper');
return next();
};
test.attributes = {
name: 'test'
};
server.register({ register: test, select: ['a', 'c'] }, { select: ['b'] }, function (err) {
expect(err).to.not.exist();
expect(server.plugins.test.super).to.equal('trooper');
server1.inject('/', function (res1) {
expect(res1.statusCode).to.equal(200);
server2.inject('/', function (res2) {
expect(res2.statusCode).to.equal(404);
server3.inject('/', function (res3) {
expect(res3.statusCode).to.equal(200);
done();
});
});
});
});
});
it('sets multiple dependencies in one statement', function (done) {
var a = function (srv, options, next) {
srv.dependency(['b', 'c']);
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var c = function (srv, options, next) {
return next();
};
c.attributes = {
name: 'c'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.register(c, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
});
it('sets multiple dependencies in attributes', function (done) {
var a = function (srv, options, next) {
return next();
};
a.attributes = {
name: 'a',
dependencies: ['b', 'c']
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var c = function (srv, options, next) {
return next();
};
c.attributes = {
name: 'c'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.register(c, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
});
it('sets multiple dependencies in multiple statements', function (done) {
var a = function (srv, options, next) {
srv.dependency('b');
srv.dependency('c');
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var c = function (srv, options, next) {
return next();
};
c.attributes = {
name: 'c'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.register(c, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
});
it('sets multiple dependencies in multiple locations', function (done) {
var a = function (srv, options, next) {
srv.dependency('b');
return next();
};
a.attributes = {
name: 'a',
dependencies: 'c'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var c = function (srv, options, next) {
return next();
};
c.attributes = {
name: 'c'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.register(c, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
});
it('errors when dependency loaded before connection was added', function (done) {
var a = function (srv, options, next) {
return next();
};
a.attributes = {
name: 'a',
dependencies: 'b'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin a missing dependency b in connection: ' + server.connections[1].info.uri);
done();
});
});
});
});
it('set dependency on previously loaded connectionless plugin', function (done) {
var a = function (srv, options, next) {
return next();
};
a.attributes = {
name: 'a',
dependencies: 'b'
};
var b = function (srv, options, next) {
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
it('allows multiple connectionless plugin', function (done) {
var a = function (srv, options, next) {
return next();
};
a.attributes = {
name: 'a',
dependencies: 'b'
};
var b = function (srv, options, next) {
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false,
multiple: true
};
var server = new Hapi.Server();
server.connection();
server.register([b, b], function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
it('register nested connectionless plugins', function (done) {
var a = function (srv, options, next) {
srv.register(b, function (err) {
return next();
});
};
a.attributes = {
name: 'a',
connections: false
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(a, function (err) {
expect(err).to.not.exist();
done();
});
});
it('throws when nested connectionless plugins select', function (done) {
var a = function (srv, options, next) {
expect(function () {
srv.register(b, { select: 'none' }, function (err) { });
}).to.throw('Cannot select inside a connectionless plugin');
return next();
};
a.attributes = {
name: 'a',
connections: false
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(a, function (err) {
expect(err).to.not.exist();
done();
});
});
it('register a plugin once per connection', function (done) {
var a = function (srv, options, next) {
srv.register(b, { once: true }, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(2);
done();
});
});
});
});
it('register a plugin once per connection (skip empty selection)', function (done) {
var a = function (srv, options, next) {
srv.select('none').register(b, { once: true }, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection();
server.connection();
server.register(b, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
});
});
it('register a connectionless plugin once (empty selection)', function (done) {
var count = 0;
var b = function (srv, options, next) {
++count;
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.connection();
server.select('none').register(b, { once: true }, function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
it('register a plugin once per connection (no selection left)', function (done) {
var a = function (srv, options, next) {
srv.register(b, { once: true }, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection();
server.connection();
server.register(b, function (err) {
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
});
});
it('register a plugin once (empty selection)', function (done) {
var count = 0;
var b = function (srv, options, next) {
++count;
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection();
server.connection();
server.select('none').register(b, { once: true }, function (err) {
expect(err).to.not.exist();
expect(count).to.equal(0);
done();
});
});
it('register a connectionless plugin once', function (done) {
var a = function (srv, options, next) {
srv.register(b, { once: true }, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
});
});
it('register a connectionless plugin once (plugin attributes)', function (done) {
var a = function (srv, options, next) {
srv.register(b, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false,
once: true
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
});
});
it('register a connectionless plugin once (plugin options)', function (done) {
var a = function (srv, options, next) {
srv.register({ register: b, once: true }, function (err) {
expect(err).to.not.exist();
return next();
});
};
a.attributes = {
name: 'a'
};
var count = 0;
var b = function (srv, options, next) {
++count;
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(b, function (err) {
server.connection();
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
});
});
it('register a connectionless plugin once (first time)', function (done) {
var count = 0;
var b = function (srv, options, next) {
++count;
expect(srv.connections).to.be.null();
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.connection();
server.register(b, { once: true }, function (err) {
expect(err).to.not.exist();
expect(count).to.equal(1);
done();
});
});
it('throws when once used with plugin options', function (done) {
var a = function (srv, options, next) {
return next();
};
a.attributes = {
name: 'a'
};
var server = new Hapi.Server();
server.connection();
expect(function () {
server.register({ register: a, options: {}, once: true }, function (err) { });
}).to.throw();
done();
});
it('throws when dependencies is an object', function (done) {
var a = function (srv, options, next) {
next();
};
a.attributes = {
name: 'a',
dependencies: { b: true }
};
var server = new Hapi.Server();
server.connection();
expect(function () {
server.register(a, function () { });
}).to.throw();
done();
});
it('throws when dependencies contain something else than a string', function (done) {
var a = function (srv, options, next) {
next();
};
a.attributes = {
name: 'a',
dependencies: [true]
};
var server = new Hapi.Server();
server.connection();
expect(function () {
server.register(a, function () { });
}).to.throw();
done();
});
it('exposes server decorations to next register', function (done) {
var server = new Hapi.Server();
server.connection();
var a = function (srv, options, next) {
srv.decorate('server', 'a', function () {
return 'a';
});
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
return next(typeof srv.a === 'function' ? null : new Error('Missing decoration'));
};
b.attributes = {
name: 'b'
};
server.register([a, b], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
it('exposes server decorations to dependency (dependency first)', function (done) {
var server = new Hapi.Server();
server.connection();
var a = function (srv, options, next) {
srv.decorate('server', 'a', function () {
return 'a';
});
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
srv.dependency('a', function (srv2, next2) {
return next2(typeof srv2.a === 'function' ? null : new Error('Missing decoration'));
});
return next();
};
b.attributes = {
name: 'b'
};
server.register([a, b], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
it('exposes server decorations to dependency (dependency second)', function (done) {
var server = new Hapi.Server();
server.connection();
var a = function (srv, options, next) {
srv.decorate('server', 'a', function () {
return 'a';
});
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
srv.realm.x = 1;
srv.dependency('a', function (srv2, next2) {
expect(srv2.realm.x).to.equal(1);
return next2(typeof srv2.a === 'function' ? null : new Error('Missing decoration'));
});
return next();
};
b.attributes = {
name: 'b'
};
server.register([b, a], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
it('exposes server decorations to next register when nested', function (done) {
var server = new Hapi.Server();
server.connection();
var a = function (srv, options, next) {
srv.decorate('server', 'a', function () {
return 'a';
});
return next();
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
srv.register(a, function (err) {
expect(err).to.not.exist();
return next(typeof srv.a === 'function' ? null : new Error('Missing decoration'));
});
};
b.attributes = {
name: 'b'
};
server.register([b], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
});
describe('after()', function () {
it('calls method after plugin', function (done) {
var x = function (srv, options, next) {
srv.expose('a', 'b');
return next();
};
x.attributes = {
name: 'x'
};
var server = new Hapi.Server();
server.connection();
expect(server.plugins.x).to.not.exist();
var called = false;
server.after(function (srv, next) {
expect(srv.plugins.x.a).to.equal('b');
called = true;
return next();
}, { after: 'x' });
server.register(x, function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
expect(called).to.be.true();
done();
});
});
});
it('calls method after plugin (legacy)', function (done) {
var x = function (srv, options, next) {
srv.expose('a', 'b');
return next();
};
x.attributes = {
name: 'x'
};
var server = new Hapi.Server();
server.connection();
expect(server.plugins.x).to.not.exist();
var called = false;
server.after(function (srv, next) {
expect(srv.plugins.x.a).to.equal('b');
called = true;
return next();
}, 'x');
server.register(x, function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
expect(called).to.be.true();
done();
});
});
});
it('calls method before start', function (done) {
var server = new Hapi.Server();
server.connection();
var called = false;
server.after(function (srv, next) {
called = true;
return next();
});
server.initialize(function (err) {
expect(err).to.not.exist();
expect(called).to.be.true();
done();
});
});
it('calls method before start even if plugin not registered', function (done) {
var server = new Hapi.Server();
server.connection();
var called = false;
server.after(function (srv, next) {
called = true;
return next();
}, { after: 'x' });
server.initialize(function (err) {
expect(err).to.not.exist();
expect(called).to.be.true();
done();
});
});
it('fails to start server when after method fails', function (done) {
var test = function (srv, options, next) {
srv.after(function (inner, finish) {
return finish();
});
srv.after(function (inner, finish) {
return finish(new Error('Not in the mood'));
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.exist();
done();
});
});
});
it('errors when added after initialization', function (done) {
var server = new Hapi.Server();
server.connection();
server.initialize(function (err) {
expect(function () {
server.after(function () { });
}).to.throw('Cannot add onPreStart (after) extension after the server was initialized');
done();
});
});
});
describe('auth', function () {
it('adds auth strategy via plugin', function (done) {
var server = new Hapi.Server();
server.connection({ labels: 'a' });
server.connection({ labels: 'b' });
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('authenticated!');
}
});
server.register(internals.plugins.auth, function (err) {
expect(err).to.not.exist();
server.select('a').inject('/', function (res1) {
expect(res1.statusCode).to.equal(401);
server.select('a').inject({ method: 'GET', url: '/', headers: { authorization: 'Basic ' + (new Buffer('john:12345', 'utf8')).toString('base64') } }, function (res2) {
expect(res2.statusCode).to.equal(200);
expect(res2.result).to.equal('authenticated!');
done();
});
});
});
});
});
describe('bind()', function () {
it('sets plugin context', function (done) {
var test = function (srv, options, next) {
var bind = {
value: 'in context',
suffix: ' throughout'
};
srv.bind(bind);
srv.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply(this.value);
}
});
srv.ext('onPreResponse', function (request, reply) {
return reply(request.response.source + this.suffix);
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.inject('/', function (res) {
expect(res.result).to.equal('in context throughout');
done();
});
});
});
});
describe('cache()', function () {
it('provisions a server cache', function (done) {
var server = new Hapi.Server();
server.connection();
var cache = server.cache({ segment: 'test', expiresIn: 1000 });
server.initialize(function (err) {
expect(err).to.not.exist();
cache.set('a', 'going in', 0, function (err) {
cache.get('a', function (err, value, cached, report) {
expect(value).to.equal('going in');
done();
});
});
});
});
it('throws when missing segment', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.cache({ expiresIn: 1000 });
}).to.throw('Missing cache segment name');
done();
});
it('provisions a server cache with custom partition', function (done) {
var server = new Hapi.Server({ cache: { engine: CatboxMemory, partition: 'hapi-test-other' } });
server.connection();
var cache = server.cache({ segment: 'test', expiresIn: 1000 });
server.initialize(function (err) {
expect(err).to.not.exist();
cache.set('a', 'going in', 0, function (err) {
cache.get('a', function (err, value, cached, report) {
expect(value).to.equal('going in');
expect(cache._cache.connection.settings.partition).to.equal('hapi-test-other');
done();
});
});
});
});
it('throws when allocating an invalid cache segment', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.cache({ segment: 'a', expiresAt: '12:00', expiresIn: 1000 });
}).throws();
done();
});
it('allows allocating a cache segment with empty options', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.cache({ segment: 'a' });
}).to.not.throw();
done();
});
it('allows reusing the same cache segment (server)', function (done) {
var server = new Hapi.Server({ cache: { engine: CatboxMemory, shared: true } });
server.connection();
expect(function () {
server.cache({ segment: 'a', expiresIn: 1000 });
server.cache({ segment: 'a', expiresIn: 1000 });
}).to.not.throw();
done();
});
it('allows reusing the same cache segment (cache)', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.cache({ segment: 'a', expiresIn: 1000 });
server.cache({ segment: 'a', expiresIn: 1000, shared: true });
}).to.not.throw();
done();
});
it('uses plugin cache interface', function (done) {
var test = function (srv, options, next) {
var cache = srv.cache({ expiresIn: 10 });
srv.expose({
get: function (key, callback) {
cache.get(key, function (err, value, cached, report) {
callback(err, value);
});
},
set: function (key, value, callback) {
cache.set(key, value, 0, callback);
}
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
server.plugins.test.set('a', '1', function (err) {
expect(err).to.not.exist();
server.plugins.test.get('a', function (err, value1) {
expect(err).to.not.exist();
expect(value1).to.equal('1');
setTimeout(function () {
server.plugins.test.get('a', function (err, value2) {
expect(err).to.not.exist();
expect(value2).to.equal(null);
done();
});
}, 11);
});
});
});
});
});
});
describe('connection()', function () {
it('returns a selection object within the same realm', function (done) {
var plugin = function (srv, options, next) {
srv.bind({ some: 'context' });
var con = srv.connection();
con.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply(this.some);
}
});
return next();
};
plugin.attributes = {
name: 'test',
connections: false
};
var server = new Hapi.Server();
server.register(plugin, function (err) {
expect(err).to.not.exist();
server.connections[0].inject('/', function (res) {
expect(res.result).to.equal('context');
done();
});
});
});
});
describe('decorate()', function () {
it('decorates request', function (done) {
var server = new Hapi.Server();
server.connection();
server.decorate('request', 'getId', function () {
return this.id;
});
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply(request.getId());
}
});
server.inject('/', function (res) {
expect(res.statusCode).to.equal(200);
expect(res.result).to.match(/^.*\:.*\:.*\:.*\:.*$/);
done();
});
});
it('decorates reply', function (done) {
var server = new Hapi.Server();
server.connection();
server.decorate('reply', 'success', function () {
return this.response({ status: 'ok' });
});
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply.success();
}
});
server.inject('/', function (res) {
expect(res.statusCode).to.equal(200);
expect(res.result.status).to.equal('ok');
done();
});
});
it('throws on double reply decoration', function (done) {
var server = new Hapi.Server();
server.connection();
server.decorate('reply', 'success', function () {
return this.response({ status: 'ok' });
});
expect(function () {
server.decorate('reply', 'success', function () { });
}).to.throw('Reply interface decoration already defined: success');
done();
});
it('throws on internal conflict', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.decorate('reply', 'redirect', function () { });
}).to.throw('Cannot override built-in reply interface decoration: redirect');
done();
});
it('decorates server', function (done) {
var server = new Hapi.Server();
server.connection();
server.decorate('server', 'ok', function (path) {
server.route({
method: 'GET',
path: path,
handler: function (request, reply) {
return reply('ok');
}
});
});
server.ok('/');
server.inject('/', function (res) {
expect(res.statusCode).to.equal(200);
expect(res.result).to.equal('ok');
done();
});
});
it('throws on double server decoration', function (done) {
var server = new Hapi.Server();
server.connection();
server.decorate('server', 'ok', function (path) {
server.route({
method: 'GET',
path: path,
handler: function (request, reply) {
return reply('ok');
}
});
});
expect(function () {
server.decorate('server', 'ok', function () { });
}).to.throw('Server decoration already defined: ok');
done();
});
it('throws on server decoration root conflict', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.decorate('server', 'start', function () { });
}).to.throw('Cannot override the built-in server interface method: start');
done();
});
it('throws on server decoration plugin conflict', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.decorate('server', 'select', function () { });
}).to.throw('Cannot override the built-in server interface method: select');
done();
});
it('throws on invalid decoration name', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.decorate('server', '_special', function () { });
}).to.throw('Property name cannot begin with an underscore: _special');
done();
});
});
describe('dependency()', function () {
it('fails to register single plugin with dependencies', function (done) {
var test = function (srv, options, next) {
srv.dependency('none');
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin test missing dependency none in connection: ' + server.info.uri);
done();
});
});
});
it('fails to register single plugin with dependencies (attributes)', function (done) {
var test = function (srv, options, next) {
return next();
};
test.attributes = {
name: 'test',
dependencies: 'none'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin test missing dependency none in connection: ' + server.info.uri);
done();
});
});
});
it('fails to register single plugin with dependencies (connectionless)', function (done) {
var test = function (srv, options, next) {
srv.dependency('none');
return next();
};
test.attributes = {
name: 'test',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin test missing dependency none');
done();
});
});
});
it('fails to register plugin with multiple dependencies (connectionless)', function (done) {
var test = function (srv, options, next) {
srv.dependency(['b', 'none']);
return next();
};
test.attributes = {
name: 'test',
connections: false
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register([test, b], function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin test missing dependency none');
done();
});
});
});
it('register plugin with multiple dependencies (connectionless)', function (done) {
var test = function (srv, options, next) {
srv.dependency(['b']);
return next();
};
test.attributes = {
name: 'test',
connections: false
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b',
connections: false
};
var server = new Hapi.Server();
server.connection();
server.register([test, b], function (err) {
server.initialize(function (err) {
expect(err).to.not.exist();
done();
});
});
});
it('fails to register multiple plugins with dependencies', function (done) {
var server = new Hapi.Server();
server.connection({ port: 80, host: 'localhost' });
server.register([internals.plugins.deps1, internals.plugins.deps3], function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin deps1 missing dependency deps2 in connection: ' + server.info.uri);
done();
});
});
});
it('recognizes dependencies from peer plugins', function (done) {
var a = function (srv, options, next) {
srv.register(b, next);
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b'
};
var c = function (srv, options, next) {
srv.dependency('b');
return next();
};
c.attributes = {
name: 'c'
};
var server = new Hapi.Server();
server.connection();
server.register([a, c], function (err) {
expect(err).to.not.exist();
done();
});
});
it('errors when missing inner dependencies', function (done) {
var a = function (srv, options, next) {
srv.register(b, next);
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
srv.dependency('c');
return next();
};
b.attributes = {
name: 'b'
};
var server = new Hapi.Server();
server.connection({ port: 80, host: 'localhost' });
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin b missing dependency c in connection: ' + server.info.uri);
done();
});
});
});
it('errors when missing inner dependencies (attributes)', function (done) {
var a = function (srv, options, next) {
srv.register(b, next);
};
a.attributes = {
name: 'a'
};
var b = function (srv, options, next) {
return next();
};
b.attributes = {
name: 'b',
dependencies: 'c'
};
var server = new Hapi.Server();
server.connection({ port: 80, host: 'localhost' });
server.register(a, function (err) {
server.initialize(function (err) {
expect(err).to.exist();
expect(err.message).to.equal('Plugin b missing dependency c in connection: ' + server.info.uri);
done();
});
});
});
});
describe('events', function () {
it('plugin event handlers receive more than 2 arguments when they exist', function (done) {
var test = function (srv, options, next) {
srv.once('request-internal', function () {
expect(arguments).to.have.length(3);
done();
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.inject({ url: '/' }, function () { });
});
});
it('listens to events on selected connections', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a'] });
server.connection({ labels: ['b'] });
server.connection({ labels: ['c'] });
var server1 = server.connections[0];
var server2 = server.connections[1];
var server3 = server.connections[2];
var counter = 0;
var test = function (srv, options, next) {
srv.select(['a', 'b']).on('test', function () {
++counter;
});
srv.select(['a']).on('start', function () {
++counter;
});
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, function (err) {
expect(err).to.not.exist();
server1.emit('test');
server2.emit('test');
server3.emit('test');
server.start(function (err) {
expect(err).to.not.exist();
server.stop(function (err) {
expect(err).to.not.exist();
expect(counter).to.equal(3);
done();
});
});
});
});
});
describe('expose()', function () {
it('exposes an api', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['s1', 'a', 'b'] });
server.connection({ labels: ['s2', 'a', 'test'] });
server.connection({ labels: ['s3', 'a', 'b', 'd', 'cache'] });
server.connection({ labels: ['s4', 'b', 'test', 'cache'] });
server.register(internals.plugins.test1, function (err) {
expect(err).to.not.exist();
expect(server.connections[0]._router.routes.get).to.not.exist();
expect(internals.routesList(server, 's2')).to.deep.equal(['/test1']);
expect(server.connections[2]._router.routes.get).to.not.exist();
expect(internals.routesList(server, 's4')).to.deep.equal(['/test1']);
expect(server.plugins.test1.add(1, 3)).to.equal(4);
expect(server.plugins.test1.glue('1', '3')).to.equal('13');
done();
});
});
});
describe('ext()', function () {
it('extends onRequest point', function (done) {
var test = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/b',
handler: function (request, reply) {
return reply('b');
}
});
srv.ext('onRequest', function (request, reply) {
request.setUrl('/b');
return reply.continue();
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
expect(internals.routesList(server)).to.deep.equal(['/b']);
server.inject('/a', function (res) {
expect(res.result).to.equal('b');
done();
});
});
});
it('adds multiple ext functions with simple dependencies', function (done) {
var server = new Hapi.Server();
server.connection({ labels: ['a', 'b', '0'] });
server.connection({ labels: ['a', 'c', '1'] });
server.connection({ labels: ['c', 'b', '2'] });
var handler = function (request, reply) {
return reply(request.app.deps);
};
server.select('0').route({ method: 'GET', path: '/', handler: handler });
server.select('1').route({ method: 'GET', path: '/', handler: handler });
server.select('2').route({ method: 'GET', path: '/', handler: handler });
server.register([internals.plugins.deps1, internals.plugins.deps2, internals.plugins.deps3], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
expect(server.plugins.deps1.breaking).to.equal('bad');
server.connections[0].inject('/', function (res1) {
expect(res1.result).to.equal('|2|1|');
server.connections[1].inject('/', function (res2) {
expect(res2.result).to.equal('|3|1|');
server.connections[2].inject('/', function (res3) {
expect(res3.result).to.equal('|3|2|');
done();
});
});
});
});
});
});
it('adds multiple ext functions with complex dependencies', function (done) {
// Generate a plugin with a specific index and ext dependencies.
var pluginCurrier = function (num, deps) {
var plugin = function (server, options, next) {
server.ext('onRequest', function (request, reply) {
request.app.complexDeps = request.app.complexDeps || '|';
request.app.complexDeps += num + '|';
return reply.continue();
}, deps);
next();
};
plugin.attributes = {
name: 'deps' + num
};
return plugin;
};
var handler = function (request, reply) {
return reply(request.app.complexDeps);
};
var server = new Hapi.Server();
server.connection();
server.route({ method: 'GET', path: '/', handler: handler });
server.register([
pluginCurrier(1, { after: 'deps2' }),
pluginCurrier(2),
pluginCurrier(3, { before: ['deps1', 'deps2'] })
], function (err) {
expect(err).to.not.exist();
server.initialize(function (err) {
expect(err).to.not.exist();
server.inject('/', function (res) {
expect(res.result).to.equal('|3|2|1|');
done();
});
});
});
});
it('throws when adding ext without connections', function (done) {
var server = new Hapi.Server();
expect(function () {
server.ext('onRequest', function () { });
}).to.throw('Cannot add ext without a connection');
done();
});
it('binds server ext to context (options)', function (done) {
var server = new Hapi.Server();
server.connection();
var bind = {
state: false
};
server.ext('onPreStart', function (srv, next) {
this.state = true;
return next();
}, { bind: bind });
server.initialize(function (err) {
expect(err).to.not.exist();
expect(bind.state).to.be.true();
done();
});
});
it('binds server ext to context (realm)', function (done) {
var server = new Hapi.Server();
server.connection();
var bind = {
state: false
};
server.bind(bind);
server.ext('onPreStart', function (srv, next) {
this.state = true;
return next();
});
server.initialize(function (err) {
expect(err).to.not.exist();
expect(bind.state).to.be.true();
done();
});
});
it('extends server actions', function (done) {
var server = new Hapi.Server();
server.connection();
var result = '';
server.ext('onPreStart', function (srv, next) {
result += '1';
return next();
});
server.ext('onPostStart', function (srv, next) {
result += '2';
return next();
});
server.ext('onPreStop', function (srv, next) {
result += '3';
return next();
});
server.ext('onPreStop', function (srv, next) {
result += '4';
return next();
});
server.start(function (err) {
expect(err).to.not.exist();
expect(result).to.equal('12');
server.stop(function (err) {
expect(err).to.not.exist();
expect(result).to.equal('1234');
done();
});
});
});
it('extends server actions (single call)', function (done) {
var server = new Hapi.Server();
server.connection();
var result = '';
server.ext([
{
type: 'onPreStart',
method: function (srv, next) {
result += '1';
return next();
}
},
{
type: 'onPostStart',
method: function (srv, next) {
result += '2';
return next();
}
},
{
type: 'onPreStop',
method: function (srv, next) {
result += '3';
return next();
}
},
{
type: 'onPreStop',
method: function (srv, next) {
result += '4';
return next();
}
}
]);
server.start(function (err) {
expect(err).to.not.exist();
expect(result).to.equal('12');
server.stop(function (err) {
expect(err).to.not.exist();
expect(result).to.equal('1234');
done();
});
});
});
it('combine route extensions', function (done) {
var server = new Hapi.Server();
server.connection();
server.ext('onPreAuth', function (request, reply) {
request.app.x = '1';
return reply.continue();
});
var plugin = function (srv, options, next) {
srv.route({
method: 'GET',
path: '/',
config: {
ext: {
onPreAuth: {
method: function (request, reply) {
request.app.x += '2';
return reply.continue();
}
}
},
handler: function (request, reply) {
return reply(request.app.x);
}
}
});
srv.ext('onPreAuth', function (request, reply) {
request.app.x += '3';
return reply.continue();
}, { sandbox: 'plugin' });
return next();
};
plugin.attributes = {
name: 'test'
};
server.register(plugin, function (err) {
expect(err).to.not.exist();
server.route({
method: 'GET',
path: '/a',
config: {
handler: function (request, reply) {
return reply(request.app.x);
}
}
});
server.inject('/', function (res1) {
expect(res1.result).to.equal('123');
server.inject('/a', function (res2) {
expect(res2.result).to.equal('1');
done();
});
});
});
});
});
describe('handler()', function () {
it('add new handler', function (done) {
var test = function (srv, options1, next) {
srv.handler('bar', function (route, options2) {
return function (request, reply) {
return reply('success');
};
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
server.register(test, function (err) {
expect(err).to.not.exist();
server.route({
method: 'GET',
path: '/',
handler: {
bar: {}
}
});
server.inject('/', function (res) {
expect(res.payload).to.equal('success');
done();
});
});
});
it('errors on duplicate handler', function (done) {
var server = new Hapi.Server();
server.register(Inert, Hoek.ignore);
server.connection();
expect(function () {
server.handler('file', function () { });
}).to.throw('Handler name already exists: file');
done();
});
it('errors on unknown handler', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.route({ method: 'GET', path: '/', handler: { test: {} } });
}).to.throw('Unknown handler: test');
done();
});
it('errors on non-string name', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.handler();
}).to.throw('Invalid handler name');
done();
});
it('errors on non-function handler', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.handler('foo', 'bar');
}).to.throw('Handler must be a function: foo');
done();
});
});
describe('log()', { parallel: false }, function () {
it('emits a log event', function (done) {
var server = new Hapi.Server();
server.connection();
var count = 0;
server.once('log', function (event) {
++count;
expect(event.data).to.equal('log event 1');
});
server.once('log', function (event) {
++count;
expect(event.data).to.equal('log event 1');
});
server.log('1', 'log event 1', Date.now());
server.once('log', function (event) {
++count;
expect(event.data).to.equal('log event 2');
});
server.log(['2'], 'log event 2', new Date(Date.now()));
expect(count).to.equal(3);
done();
});
it('emits a log event and print to console', { parallel: false }, function (done) {
var server = new Hapi.Server();
server.connection();
server.once('log', function (event) {
expect(event.data).to.equal('log event 1');
});
var orig = console.error;
console.error = function () {
console.error = orig;
expect(arguments[0]).to.equal('Debug:');
expect(arguments[1]).to.equal('internal, implementation, error');
done();
};
server.log(['internal', 'implementation', 'error'], 'log event 1');
});
it('outputs log data to debug console', function (done) {
var server = new Hapi.Server();
server.connection();
var orig = console.error;
console.error = function () {
console.error = orig;
expect(arguments[0]).to.equal('Debug:');
expect(arguments[1]).to.equal('implementation');
expect(arguments[2]).to.equal('\n {"data":1}');
done();
};
server.log(['implementation'], { data: 1 });
});
it('outputs log error data to debug console', function (done) {
var server = new Hapi.Server();
server.connection();
var orig = console.error;
console.error = function () {
console.error = orig;
expect(arguments[0]).to.equal('Debug:');
expect(arguments[1]).to.equal('implementation');
expect(arguments[2]).to.contain('\n Error: test\n at');
done();
};
server.log(['implementation'], new Error('test'));
});
it('outputs log data to debug console without data', function (done) {
var server = new Hapi.Server();
server.connection();
var orig = console.error;
console.error = function () {
console.error = orig;
expect(arguments[0]).to.equal('Debug:');
expect(arguments[1]).to.equal('implementation');
expect(arguments[2]).to.equal('');
done();
};
server.log(['implementation']);
});
it('does not output events when debug disabled', function (done) {
var server = new Hapi.Server({ debug: false });
server.connection();
var i = 0;
var orig = console.error;
console.error = function () {
++i;
};
server.log(['implementation']);
console.error('nothing');
expect(i).to.equal(1);
console.error = orig;
done();
});
it('does not output events when debug.log disabled', function (done) {
var server = new Hapi.Server({ debug: { log: false } });
server.connection();
var i = 0;
var orig = console.error;
console.error = function () {
++i;
};
server.log(['implementation']);
console.error('nothing');
expect(i).to.equal(1);
console.error = orig;
done();
});
it('does not output non-implementation events by default', function (done) {
var server = new Hapi.Server();
server.connection();
var i = 0;
var orig = console.error;
console.error = function () {
++i;
};
server.log(['xyz']);
console.error('nothing');
expect(i).to.equal(1);
console.error = orig;
done();
});
it('emits server log events once', function (done) {
var pc = 0;
var test = function (srv, options, next) {
srv.on('log', function (event, tags) {
++pc;
});
next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
var sc = 0;
server.on('log', function (event, tags) {
++sc;
});
server.register(test, function (err) {
expect(err).to.not.exist();
server.log('test');
expect(sc).to.equal(1);
expect(pc).to.equal(1);
done();
});
});
});
describe('lookup()', function () {
it('returns route based on id', function (done) {
var server = new Hapi.Server();
server.connection();
server.route({
method: 'GET',
path: '/',
config: {
handler: function (request, reply) {
return reply();
},
id: 'root',
app: { test: 123 }
}
});
var root = server.lookup('root');
expect(root.path).to.equal('/');
expect(root.settings.app.test).to.equal(123);
done();
});
it('returns null on unknown route', function (done) {
var server = new Hapi.Server();
server.connection();
var root = server.lookup('root');
expect(root).to.be.null();
done();
});
it('throws on missing id', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.lookup();
}).to.throw('Invalid route id: ');
done();
});
});
describe('match()', function () {
it('returns route based on path', function (done) {
var server = new Hapi.Server();
server.connection();
server.route({
method: 'GET',
path: '/',
config: {
handler: function (request, reply) {
return reply();
},
id: 'root'
}
});
server.route({
method: 'GET',
path: '/abc',
config: {
handler: function (request, reply) {
return reply();
},
id: 'abc'
}
});
server.route({
method: 'POST',
path: '/abc',
config: {
handler: function (request, reply) {
return reply();
},
id: 'post'
}
});
server.route({
method: 'GET',
path: '/{p}/{x}',
config: {
handler: function (request, reply) {
return reply();
},
id: 'params'
}
});
server.route({
method: 'GET',
path: '/abc',
vhost: 'example.com',
config: {
handler: function (request, reply) {
return reply();
},
id: 'vhost'
}
});
expect(server.match('GET', '/').settings.id).to.equal('root');
expect(server.match('GET', '/none')).to.equal(null);
expect(server.match('GET', '/abc').settings.id).to.equal('abc');
expect(server.match('get', '/').settings.id).to.equal('root');
expect(server.match('post', '/abc').settings.id).to.equal('post');
expect(server.match('get', '/a/b').settings.id).to.equal('params');
expect(server.match('GET', '/abc', 'example.com').settings.id).to.equal('vhost');
done();
});
it('throws on missing method', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match();
}).to.throw('Invalid method: ');
done();
});
it('throws on invalid method', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match(5);
}).to.throw('Invalid method: 5');
done();
});
it('throws on missing path', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match('get');
}).to.throw('Invalid path: ');
done();
});
it('throws on invalid path type', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match('get', 5);
}).to.throw('Invalid path: 5');
done();
});
it('throws on invalid path prefix', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match('get', '5');
}).to.throw('Invalid path: 5');
done();
});
it('throws on invalid path', function (done) {
var server = new Hapi.Server();
server.connection();
server.route({
method: 'GET',
path: '/{p}',
config: {
handler: function (request, reply) {
return reply();
}
}
});
expect(function () {
server.match('GET', '/%p');
}).to.throw('Invalid path: /%p');
done();
});
it('throws on invalid host type', function (done) {
var server = new Hapi.Server();
server.connection();
expect(function () {
server.match('get', '/a', 5);
}).to.throw('Invalid host: 5');
done();
});
});
describe('method()', function () {
it('adds server method using arguments', function (done) {
var server = new Hapi.Server();
server.connection();
var test = function (srv, options, next) {
srv.method('log', function (methodNext) {
return methodNext(null);
});
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, function (err) {
expect(err).to.not.exist();
done();
});
});
it('adds server method with plugin bind', function (done) {
var server = new Hapi.Server();
server.connection();
var test = function (srv, options, next) {
srv.bind({ x: 1 });
srv.method('log', function (methodNext) {
return methodNext(null, this.x);
});
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, function (err) {
expect(err).to.not.exist();
server.methods.log(function (err, result) {
expect(result).to.equal(1);
done();
});
});
});
it('adds server method with method bind', function (done) {
var server = new Hapi.Server();
server.connection();
var test = function (srv, options, next) {
srv.method('log', function (methodNext) {
return methodNext(null, this.x);
}, { bind: { x: 2 } });
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, function (err) {
expect(err).to.not.exist();
server.methods.log(function (err, result) {
expect(result).to.equal(2);
done();
});
});
});
it('adds server method with method and ext bind', function (done) {
var server = new Hapi.Server();
server.connection();
var test = function (srv, options, next) {
srv.bind({ x: 1 });
srv.method('log', function (methodNext) {
return methodNext(null, this.x);
}, { bind: { x: 2 } });
return next();
};
test.attributes = {
name: 'test'
};
server.register(test, function (err) {
expect(err).to.not.exist();
server.methods.log(function (err, result) {
expect(result).to.equal(2);
done();
});
});
});
});
describe('path()', function () {
it('sets local path for directory route handler', function (done) {
var test = function (srv, options, next) {
srv.path(Path.join(__dirname, '..'));
srv.route({
method: 'GET',
path: '/handler/{file*}',
handler: {
directory: {
path: './'
}
}
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.register(Inert, Hoek.ignore);
server.connection({ routes: { files: { relativeTo: __dirname } } });
server.register(test, function (err) {
expect(err).to.not.exist();
server.inject('/handler/package.json', function (res) {
expect(res.statusCode).to.equal(200);
done();
});
});
});
it('throws when plugin sets undefined path', function (done) {
var test = function (srv, options, next) {
srv.path();
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.connection();
expect(function () {
server.register(test, function (err) { });
}).to.throw('relativeTo must be a non-empty string');
done();
});
});
describe('render()', function () {
it('renders view', function (done) {
var server = new Hapi.Server();
server.register(Vision, Hoek.ignore);
server.connection();
server.views({
engines: { html: Handlebars },
path: __dirname + '/templates'
});
server.render('test', { title: 'test', message: 'Hapi' }, function (err, rendered, config) {
expect(rendered).to.exist();
expect(rendered).to.contain('Hapi');
done();
});
});
});
describe('state()', function () {
it('throws when adding state without connections', function (done) {
var server = new Hapi.Server();
expect(function () {
server.state('sid', { encoding: 'base64' });
}).to.throw('Cannot add state without a connection');
done();
});
});
describe('views()', function () {
it('requires plugin with views', function (done) {
var test = function (srv, options, next) {
srv.path(__dirname);
var views = {
engines: { 'html': Handlebars },
path: './templates/plugin'
};
srv.views(views);
if (Object.keys(views).length !== 2) {
return next(new Error('plugin.view() modified options'));
}
srv.route([
{
path: '/view', method: 'GET', handler: function (request, reply) {
return reply.view('test', { message: options.message });
}
},
{
path: '/file', method: 'GET', handler: { file: './templates/plugin/test.html' }
}
]);
srv.ext('onRequest', function (request, reply) {
if (request.path === '/ext') {
return reply.view('test', { message: 'grabbed' });
}
return reply.continue();
});
return next();
};
test.attributes = {
name: 'test'
};
var server = new Hapi.Server();
server.register([Inert, Vision], Hoek.ignore);
server.connection();
server.register({ register: test, options: { message: 'viewing it' } }, function (err) {
expect(err).to.not.exist();
server.inject('/view', function (res1) {
expect(res1.result).to.equal('<h1>viewing it</h1>');
server.inject('/file', function (res2) {
expect(res2.result).to.equal('<h1>{{message}}</h1>');
server.inject('/ext', function (res3) {
expect(res3.result).to.equal('<h1>grabbed</h1>');
done();
});
});
});
});
});
});
});
internals.routesList = function (server, label) {
var tables = server.select(label || []).table();
var list = [];
for (var c = 0, cl = tables.length; c < cl; ++c) {
var routes = tables[c].table;
for (var i = 0, il = routes.length; i < il; ++i) {
var route = routes[i];
if (route.method === 'get') {
list.push(route.path);
}
}
}
return list;
};
internals.plugins = {
auth: function (server, options, next) {
server.auth.scheme('basic', function (srv, authOptions) {
var settings = Hoek.clone(authOptions);
var scheme = {
authenticate: function (request, reply) {
var req = request.raw.req;
var authorization = req.headers.authorization;
if (!authorization) {
return reply(Boom.unauthorized(null, 'Basic'));
}
var parts = authorization.split(/\s+/);
if (parts[0] &&
parts[0].toLowerCase() !== 'basic') {
return reply(Boom.unauthorized(null, 'Basic'));
}
if (parts.length !== 2) {
return reply(Boom.badRequest('Bad HTTP authentication header format', 'Basic'));
}
var credentialsParts = new Buffer(parts[1], 'base64').toString().split(':');
if (credentialsParts.length !== 2) {
return reply(Boom.badRequest('Bad header internal syntax', 'Basic'));
}
var username = credentialsParts[0];
var password = credentialsParts[1];
settings.validateFunc(username, password, function (err, isValid, credentials) {
if (!isValid) {
return reply(Boom.unauthorized('Bad username or password', 'Basic'), { credentials: credentials });
}
return reply.continue({ credentials: credentials });
});
}
};
return scheme;
});
var loadUser = function (username, password, callback) {
if (username === 'john') {
return callback(null, password === '12345', { user: 'john' });
}
return callback(null, false);
};
server.auth.strategy('basic', 'basic', 'required', { validateFunc: loadUser });
server.auth.scheme('special', function () {
return { authenticate: function () { } };
});
server.auth.strategy('special', 'special', {});
return next();
},
child: function (server, options, next) {
if (options.routes) {
return server.register(internals.plugins.test1, options, next);
}
return server.register(internals.plugins.test1, next);
},
deps1: function (server, options, next) {
server.dependency('deps2', function (srv, nxt) {
srv.expose('breaking', srv.plugins.deps2.breaking);
return nxt();
});
var selection = server.select('a');
if (selection.connections.length) {
selection.ext('onRequest', function (request, reply) {
request.app.deps = request.app.deps || '|';
request.app.deps += '1|';
return reply.continue();
}, { after: 'deps3' });
}
return next();
},
deps2: function (server, options, next) {
var selection = server.select('b');
if (selection.connections.length) {
selection.ext('onRequest', function (request, reply) {
request.app.deps = request.app.deps || '|';
request.app.deps += '2|';
return reply.continue();
}, { after: 'deps3', before: 'deps1' });
}
server.expose('breaking', 'bad');
return next();
},
deps3: function (server, options, next) {
var selection = server.select('c');
if (selection.connections.length) {
selection.ext('onRequest', function (request, reply) {
request.app.deps = request.app.deps || '|';
request.app.deps += '3|';
return reply.continue();
});
}
return next();
},
test1: function (server, options, next) {
var handler = function (request, reply) {
return reply('testing123' + ((server.settings.app && server.settings.app.my) || ''));
};
server.select('test').route({ path: '/test1', method: 'GET', handler: handler });
server.expose({
add: function (a, b) {
return a + b;
}
});
server.expose('glue', function (a, b) {
return a + b;
});
server.expose('prefix', server.realm.modifiers.route.prefix);
return next();
},
test2: function (server, options, next) {
server.route({
path: '/test2',
method: 'GET',
handler: function (request, reply) {
return reply('testing123');
}
});
server.log('test', 'abc');
return next();
}
};
internals.plugins.auth.attributes = {
name: 'auth'
};
internals.plugins.child.attributes = {
name: 'child'
};
internals.plugins.deps1.attributes = {
name: 'deps1'
};
internals.plugins.deps2.attributes = {
name: 'deps2'
};
internals.plugins.deps3.attributes = {
name: 'deps3'
};
internals.plugins.test1.attributes = {
name: 'test1',
version: '1.0.0'
};
internals.plugins.test2.attributes = {
pkg: {
name: 'test2',
version: '1.0.0'
}
};
|
#!/usr/bin/env node
var jt = require("jacksmhtools-client");
var utils = require("./_utils");
var paladinBaneSuffix = ' (Paladin\'s Bane)'
var stages = [
"Acolyte",
"Ancient Lab",
"Entrance",
"Frozen Alcove",
"Furnace Room",
"Gearworks",
"Guard Barracks",
"Hidden Treasury",
"Ingress",
"Lucky Tower",
"Pursuer Mousoleum",
"Runic Laboratory",
"Security",
"Timewarp"
]
var cheeses = [
"Runic String",
"Ancient String",
"Magical String",
"Brie String",
"Swiss String",
"Marble String"
]
// Stages where Portal Pursuer is always available or Paladin's Bane have no effect
var specialStages = [
"Entrance",
'Guard Barracks',
"Ingress",
"Pursuer Mousoleum",
"Security"
]
var normalStages = stages.filter(function (stage) { return specialStages.indexOf(stage) === -1})
utils
.process({
default: {
location: utils.genVarField("location", "Bristle Woods Rift"),
cheese: utils.genVarField("cheese", cheeses),
},
series: [
{ // normal chambers - no pursuer and no paladin's bane
phase: utils.genVarField("stage", normalStages),
charm: [
{
vars: { charm: { "Rift Antiskele": false } },
opts: { exclude: [ 'Portal Pursuer' ] }
},
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion', 'Portal Pursuer' ] }
}
]
},
{ // normal chambers with Paladin's Bane buff
phase: utils.genVarField("stage", normalStages).map(function (options) {
options.fields.stage += paladinBaneSuffix
return options
}),
charm: [
{
vars: { charm: { "Rift Antiskele": false } },
opts: { exclude: [ 'Portal Pursuer', 'Portal Paladin' ] }
},
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion', 'Portal Pursuer', 'Portal Paladin' ] }
}
]
},
{ // Entrance - have no buffs or curses
phase: utils.genVarField("stage", "Entrance"),
charm: [
{
vars: { charm: { "Rift Antiskele": false } },
opts: { exclude: [ 'Portal Pursuer' ] }
},
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion', 'Portal Pursuer' ] }
}
]
},
{ // Guard Barracks - no paladin's bane and no skeletal champion
phase: utils.genVarField("stage", "Guard Barracks"),
noPursuer: [ { opts: { exclude: [ 'Portal Pursuer' ] } } ]
},
{ // Ingress chamber - have Portal Pursuer but no Skeletal Champion
phase: [
{
vars: { stage: { "Ingress": true } },
fields: { stage: "Ingress" }
},
{
vars: { stage: { "Ingress": true } },
fields: { stage: "Ingress" + paladinBaneSuffix },
opts: { exclude: [ 'Portal Paladin' ] }
}
]
},
{ // Pursuer Mousoleum without paladin's bane - have Portal Pursuer
phase: utils.genVarField("stage", "Pursuer Mousoleum"),
charm: [
{ vars: { charm: { "Rift Antiskele": false } } },
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion' ] }
}
]
},
{ // Pursuer Mousoleum with paladin's bane - have Portal Pursuer
phase: [{
vars: { stage: { "Pursuer Mousoleum": true } },
fields: { stage: "Pursuer Mousoleum" + paladinBaneSuffix }
}],
charm: [
{ vars: { charm: { "Rift Antiskele": false } } },
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion', 'Portal Paladin' ] }
}
]
},
{ // Security Chamber - always with paladin's bane
phase: [{
vars: { stage: { "Security": true } },
fields: { stage: "Security" + paladinBaneSuffix }
}],
charm: [
{
vars: { charm: { "Rift Antiskele": false } },
opts: { exclude: [ 'Portal Pursuer' ] }
},
{
fields: { charm: "Rift Antiskele" },
opts: { exclude: [ 'Skeletal Champion', 'Portal Pursuer' ] }
}
]
}
],
process: function (item) {
console.error("requesting", JSON.stringify(item.vars));
return jt
.getSAEncounterRateData(item.vars, item.opts)
.filter(function (item) {
return item.sample > 100;
})
.map(utils.preparePopulation.bind(utils, item.fields));
}
})
.then(function (rows) {
return rows.sort(function (a, b) {
if (a.stage < b.stage) return -1
if (a.stage > b.stage) return 1
var cheeseA = cheeses.indexOf(a.cheese)
var cheeseB = cheeses.indexOf(b.cheese)
if (cheeseA < cheeseB) return -1
if (cheeseA > cheeseB) return 1
var charmA = a.charm || '-'
var charmB = b.charm || '-'
if (charmA < charmB) return -1
if (charmA > charmB) return 1
if (parseFloat(a.attraction) > parseFloat(b.attraction)) return -1
if (parseFloat(a.attraction) < parseFloat(b.attraction)) return 1
return 0
})
})
.then(utils.toCsv.bind(utils, utils.POP_FIELDS))
.then(console.log.bind(console));
|
const test = require('ava');
const cfntest = require('@cfn-modules/test');
test.serial('defaults', async t => {
const stackName = cfntest.stackName();
try {
t.log(await cfntest.createStack(`${__dirname}/defaults.yml`, stackName, {}));
// what could we test here?
} finally {
t.log(await cfntest.deleteStack(stackName));
t.pass();
}
});
test.serial('latest', async t => {
const stackName = cfntest.stackName();
try {
t.log(await cfntest.createStack(`${__dirname}/latest.yml`, stackName, {}));
// what could we test here?
} finally {
t.log(await cfntest.deleteStack(stackName));
t.pass();
}
});
test.serial('minimal', async t => {
const stackName = cfntest.stackName();
try {
t.log(await cfntest.createStack(`${__dirname}/minimal.yml`, stackName, {}));
// what could we test here?
} finally {
t.log(await cfntest.deleteStack(stackName));
t.pass();
}
});
// TODO test with-alerting
// TODO test with-hosted-zone-private
// TODO test with-bastion (SQL access)
// TODO test with-kms
|
(function(factory){typeof define==="function"&&define.amd?define(factory):factory()})(function(){"use strict";if(typeof document!=="undefined"){(function(e){var matches=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;if(matches){e.matches=e.matchesSelector=matches}else{e.matches=e.matchesSelector=function matches(selector){var matches=document.querySelectorAll(selector);var th=this;return Array.prototype.some.call(matches,function(e){return e===th})}}})(Element.prototype)}var isCustom=function isCustom(event){return!event.target||!event.target.matches};var Selector$1={TABS:".yfm .yfm-tabs",TAB_LIST:".yfm .yfm-tab-list",TAB:".yfm .yfm-tab",TAB_PANEL:".yfm .yfm-tab-panel"};var ClassName$1={ACTIVE:"active"};function selectTab(element){if(!element.parentNode||!element.parentNode.matches(Selector$1.TAB_LIST)||!element.parentNode.parentNode||!element.parentNode.parentNode.matches(Selector$1.TABS)||element.classList.contains(ClassName$1.ACTIVE)){return}var tab=element;var tabList=tab.parentNode;var tabsContainer=tabList.parentNode;var allTabs=Array.from(tabsContainer.querySelectorAll(Selector$1.TAB));var allPanels=Array.from(tabsContainer.querySelectorAll(Selector$1.TAB_PANEL));var targetIndex=allTabs.indexOf(tab);for(var i=0;i<allTabs.length;i++){var _tab=allTabs[i];var panel=allPanels[i];if(i===targetIndex){_tab.classList.toggle(ClassName$1.ACTIVE,true);_tab.setAttribute("aria-selected",true);_tab.setAttribute("tabindex",0);panel.classList.toggle(ClassName$1.ACTIVE,true)}else{_tab.classList.toggle(ClassName$1.ACTIVE,false);_tab.setAttribute("aria-selected",false);_tab.setAttribute("tabindex",-1);panel.classList.toggle(ClassName$1.ACTIVE,false)}}}if(typeof document!=="undefined"){document.addEventListener("click",function(event){if(isCustom(event)||!event.target.matches(Selector$1.TAB)){return}selectTab(event.target)})}var BUTTON_SELECTOR=".yfm-clipboard-button";function copyToClipboard(text){if(!text){return Promise.resolve()}if(navigator.clipboard&&typeof navigator.clipboard.writeText){return navigator.clipboard.writeText(text)}var textarea=document.createElement("textarea");textarea.setAttribute("style","position: absolute; left: 1000%");textarea.textContent=text;document.body.append(textarea);textarea.select();document.execCommand("copy");document.body.removeChild(textarea);return Promise.resolve()}function notifySuccess(svgButton){if(!svgButton){return}var id=svgButton.getAttribute("data-animation");var icon=document.getElementById("visibileAnimation-"+id);if(!icon){return}icon.beginElement()}if(typeof document!=="undefined"){document.addEventListener("click",function(event){if(isCustom(event)||!event.target.matches(BUTTON_SELECTOR)){return}var parent=event.target.parentNode;if(!parent){return}var code=parent.querySelector("pre code");if(!code){return}copyToClipboard(code.innerText).then(function(){notifySuccess(parent.querySelector(".yfm-clipboard-button"))})})}var Selector={CUT:".yfm .yfm-cut",TITLE:".yfm .yfm-cut-title",CONTENT:".yfm .yfm-cut-content"};var ClassName={OPEN:"open"};function toggleCut(element){var cutEl=element.parentNode;cutEl.classList.toggle(ClassName.OPEN)}if(typeof document!=="undefined"){document.addEventListener("click",function(event){if(isCustom(event)||!event.target.matches(Selector.TITLE)){return}toggleCut(event.target)})}});
|
const e={key:"v-8daa1a0e",path:"/",title:"",lang:"zh-CN",frontmatter:{},excerpt:"",headers:[{level:2,title:"Who am I",slug:"who-am-i",children:[]}],filePathRelative:"README.md",git:{updatedTime:1640337325e3,contributors:[{name:"oushihao",email:"oushihao97@163.com",commits:5}]}};export{e as data};
|
// @flow
import * as React from 'react'
import {Box, Text, ConnectedUsernames, Icon, TimelineMarker} from '../../../../common-adapters'
import {EmojiIfExists} from '../../../../common-adapters/markdown.shared'
import UserNotice from '../../notices/user-notice'
import {globalStyles, globalColors, globalMargins} from '../../../../styles'
import {formatTimeForMessages} from '../../../../util/timestamp'
import {isAndroid, isMobile} from '../../../../constants/platform'
import type {
SystemMessage,
AddedToTeamInfo,
SimpleToComplexTeamInfo,
InviteAcceptedInfo,
GitPushInfo,
} from '../../../../constants/types/chat'
const connectedUsernamesProps = {
clickable: true,
inline: true,
colorFollowing: true,
type: 'BodySmallSemibold',
underline: true,
}
type Props = {
admin: boolean,
channelname: string,
isBigTeam: boolean,
message: SystemMessage,
onClickUserAvatar: (username: string) => void,
onManageChannels: (teamname: string) => void,
onViewTeam: (teamname: string) => void,
onViewGitRepo: (repoID: string, teamname: string) => void,
teamname: string,
you: string,
}
type AddedToTeamProps = Props & {info: AddedToTeamInfo}
const AddedToTeamNotice = ({
admin,
channelname,
isBigTeam,
message,
info,
onClickUserAvatar,
onManageChannels,
onViewTeam,
you,
}: AddedToTeamProps) => {
const {adder, addee, team} = info
const adderComponent =
adder === you ? 'You' : <ConnectedUsernames {...connectedUsernamesProps} usernames={[adder]} />
const selfAddee = adder === you ? 'yourself' : 'you'
const addeeComponent =
addee === you ? selfAddee : <ConnectedUsernames {...connectedUsernamesProps} usernames={[addee]} />
let manageComponent = null
if (addee === you && isBigTeam) {
manageComponent = (
<Text
onClick={() => onManageChannels(team)}
type="BodySmallSemiboldInlineLink"
style={{color: globalColors.blue}}
>
Manage your channel subscriptions
</Text>
)
} else if (admin) {
manageComponent = (
<Text
onClick={() => onViewTeam(team)}
type="BodySmallSemiboldInlineLink"
style={{color: globalColors.blue}}
>
Manage members
</Text>
)
} else {
manageComponent = (
<Text
onClick={() => onViewTeam(team)}
type="BodySmallSemiboldInlineLink"
style={{color: globalColors.blue}}
>
See all members
</Text>
)
}
return (
<UserNotice
style={{marginTop: globalMargins.small}}
username={you !== addee ? addee : undefined}
teamname={you === addee ? team : undefined}
onClickAvatar={you !== addee ? () => onClickUserAvatar(addee) : () => onViewTeam(team)}
bgColor={globalColors.blue4}
>
{you === addee && (
<Icon type="icon-team-sparkles-48-40" style={{marginTop: -36, width: 48, height: 40}} />
)}
<Text type="BodySmallSemibold" backgroundMode="Announcements" style={{color: globalColors.black_40}}>
{formatTimeForMessages(message.timestamp)}
</Text>
<Box style={{...globalStyles.flexBoxColumn, alignItems: 'center'}}>
<Text
type="BodySmallSemibold"
backgroundMode="Announcements"
style={{color: globalColors.black_40, textAlign: 'center'}}
>
{adderComponent} added {addeeComponent} to{' '}
<Text type="BodySmallSemibold" style={{color: globalColors.black_60}}>
{team}
</Text>
.{' '}
{you === addee && (
<Text type="BodySmallSemibold">
Say hi!{' '}
<EmojiIfExists
style={{display: isMobile ? 'flex' : 'inline-block'}}
emojiName=":wave:"
size={14}
/>
</Text>
)}
</Text>
{manageComponent}
</Box>
</UserNotice>
)
}
type ComplexTeamProps = Props & {info: SimpleToComplexTeamInfo}
const ComplexTeamNotice = ({
channelname,
message,
info,
onManageChannels,
onViewTeam,
you,
}: ComplexTeamProps) => {
const teamname = info.team
const authorComponent =
message.author === you ? (
'You'
) : (
<ConnectedUsernames
clickable={true}
inline={true}
type="BodySmallSemibold"
colorFollowing={true}
usernames={[message.author]}
/>
)
return (
<UserNotice
style={{marginTop: globalMargins.small}}
teamname={teamname || ''}
bgColor={globalColors.blue4}
onClickAvatar={() => onViewTeam(teamname)}
>
<Text
type="BodySmallSemibold"
backgroundMode="Announcements"
style={{color: globalColors.black_40, marginTop: globalMargins.tiny}}
>
{formatTimeForMessages(message.timestamp)}
</Text>
<Box style={globalStyles.flexBoxColumn}>
<Text type="BodySmallSemibold" style={{textAlign: 'center'}}>
{authorComponent} made {teamname} a big team!
</Text>
<Text type="BodySmallSemibold" style={{textAlign: 'center', marginTop: globalMargins.tiny}}>
Note that:
</Text>
<Box style={{...globalStyles.flexBoxColumn, marginTop: globalMargins.xtiny}}>
<Box style={{...globalStyles.flexBoxRow}}>
<Text type="BodySmallSemibold" style={{marginRight: globalMargins.tiny}}>
{'\u2022'}
</Text>
<Text type="BodySmallSemibold">
Your team channels will now appear in the "Big teams" section of the inbox.
</Text>
</Box>
<Box style={{...globalStyles.flexBoxRow, marginTop: globalMargins.tiny}}>
<Text type="BodySmallSemibold" style={{marginRight: globalMargins.tiny}}>
{'\u2022'}
</Text>
{!isAndroid && (
<Text type="BodySmallSemibold">
Notifications will no longer happen for every message. {isMobile ? 'Tap' : 'Click on'} the{' '}
<Box style={{display: isMobile ? 'flex' : 'inline-block', height: 11, width: 11}}>
<Icon type="iconfont-info" style={{fontSize: 11}} />
</Box>{' '}
to configure them.
</Text>
)}
{isAndroid && (
<Text type="BodySmallSemibold">
Notifications will no longer happen for every message. Tap the info icon in the top right to
configure them.
</Text>
)}
</Box>
<Box style={{...globalStyles.flexBoxRow, marginTop: globalMargins.tiny}}>
<Text type="BodySmallSemibold" style={{marginRight: globalMargins.tiny}}>
{'\u2022'}
</Text>
<Text type="BodySmallSemibold">
Everyone can now create and join channels.{' '}
<Text
onClick={() => onManageChannels(teamname || '')}
type="BodySmallSemiboldInlineLink"
style={{color: globalColors.blue}}
>
Manage your channel subscriptions
</Text>
</Text>
</Box>
</Box>
</Box>
</UserNotice>
)
}
type InviteAddedToTeamProps = Props & {info: InviteAcceptedInfo}
const InviteAddedToTeamNotice = ({
channelname,
message,
info,
onClickUserAvatar,
onManageChannels,
onViewTeam,
you,
}: InviteAddedToTeamProps) => {
const {team, inviter, invitee, adder, inviteType} = info
let copy
if (you === invitee) {
copy = (
<Text type="BodySmallSemibold" style={{textAlign: 'center'}}>
Welcome to{' '}
<Text type="BodySmallSemibold" style={{color: globalColors.black_60}}>
{team}
</Text>
. Say hi!{' '}
<EmojiIfExists style={{display: isMobile ? 'flex' : 'inline-block'}} emojiName=":wave:" size={14} />
</Text>
)
} else {
copy = (
<Text type="BodySmallSemibold" style={{textAlign: 'center'}}>
<ConnectedUsernames {...connectedUsernamesProps} usernames={[invitee]} /> just joined {team}.{' '}
{you === inviter ? 'You invited them' : 'They were invited by '}
{you !== inviter && <ConnectedUsernames {...connectedUsernamesProps} usernames={[inviter]} />}
{inviteType === 'seitan' ? '' : ' via ' + inviteType}
, and they were just now auto-added to the team sigchain by{' '}
{you === adder ? 'you' : <ConnectedUsernames {...connectedUsernamesProps} usernames={[adder]} />}
, the first available admin.
</Text>
)
}
return (
<UserNotice
style={{marginTop: globalMargins.small}}
username={invitee === you ? undefined : invitee}
teamname={invitee === you ? team : undefined}
bgColor={globalColors.blue4}
onClickAvatar={invitee === you ? () => onViewTeam(team) : () => onClickUserAvatar(invitee)}
>
{you === invitee && (
<Icon type="icon-team-sparkles-48-40" style={{marginTop: -36, width: 48, height: 40}} />
)}
<Text type="BodySmallSemibold" backgroundMode="Announcements" style={{color: globalColors.black_40}}>
{formatTimeForMessages(message.timestamp)}
</Text>
<Box style={{...globalStyles.flexBoxColumn, alignItems: 'center'}}>{copy}</Box>
</UserNotice>
)
}
type GitPushInfoProps = Props & {info: GitPushInfo}
const GitPushInfoNotice = ({message, info, onClickUserAvatar, onViewGitRepo}: GitPushInfoProps) => {
// There is a bug in the data layer where mergeEntities when it sees dupes of this message will keep on adding to the array
// Short term fix: clean this up
const refsMap = (info.refs || []).reduce((map, ref) => {
;(ref.commits || []).forEach(commit => {
const name = ref.refName.split('/')[2]
if (!map[name]) {
map[name] = []
}
if (!map[name].find(c => c.commitHash === commit.commitHash)) {
map[name].push(commit)
}
})
return map
}, {})
return Object.keys(refsMap).map(branchName => (
<UserNotice
username={info.pusher}
key={branchName}
style={{marginTop: globalMargins.small}}
bgColor={globalColors.blue4}
onClickAvatar={() => onClickUserAvatar(info.pusher)}
>
<Text type="BodySmallSemibold" backgroundMode="Announcements" style={{color: globalColors.black_40}}>
{formatTimeForMessages(message.timestamp)}
</Text>
<Box style={globalStyles.flexBoxColumn}>
<Text type="BodySmallSemibold" style={{textAlign: 'center', marginBottom: globalMargins.xtiny}}>
<ConnectedUsernames {...connectedUsernamesProps} usernames={[info.pusher]} /> pushed{' '}
{refsMap[branchName].length} {`commit${refsMap[branchName].length !== 1 ? 's' : ''}`} to{' '}
<Text
type="BodySmallSemibold"
style={info.repoID ? {color: globalColors.black_75} : undefined}
onClick={info.repoID ? () => onViewGitRepo(info.repoID, info.team) : undefined}
>{`${info.repo}/${branchName}`}</Text>:
</Text>
<Box style={globalStyles.flexBoxColumn}>
{refsMap[branchName].map((commit, i) => (
<Box style={globalStyles.flexBoxRow} key={commit.commitHash}>
<TimelineMarker
idx={i}
max={refsMap[branchName].length - 1}
style={{marginRight: globalMargins.xtiny, ...(isMobile ? {marginTop: -3} : null)}}
/>
<Box style={{...globalStyles.flexBoxRow, flex: 1, alignItems: 'flex-start'}}>
<Box
style={{
display: 'flex',
backgroundColor: globalColors.blue3_20,
padding: 2,
borderRadius: 3,
marginRight: globalMargins.xtiny,
marginBottom: 1,
height: 18,
}}
>
<Text
type="Terminal"
selectable={true}
style={{
fontSize: 11,
color: globalColors.blue,
lineHeight: isMobile ? 16 : 1.3,
}}
>
{commit.commitHash.substr(0, 8)}
</Text>
</Box>
<Box style={{display: 'flex', flex: 1}}>
<Text type="BodySmall" selectable={true} style={{textAlign: 'left'}} lineClamp={2}>
{commit.message}
</Text>
</Box>
</Box>
</Box>
))}
</Box>
</Box>
</UserNotice>
))
}
export {AddedToTeamNotice, ComplexTeamNotice, InviteAddedToTeamNotice, GitPushInfoNotice}
|
module.exports = {
themeColor: '#B21255',
head: '<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet" />',
};
|
export default{
async getTweets({commit}, url) {
let res = await axios.get(url);
commit('PUSH_TWEETS', res.data.data);
commit('likes/PUSH_LIKES', res.data.likes, {root: true} )
commit('retweets/PUSH_RETWEETS', res.data.retweets, {root: true})
return res;
},
async quoteTweet(_, {tweet,data}){
await axios.post(`/api/tweets/${tweet.id}/quotes`, data);
},
async replyToTweet(_, {tweet, data})
{
await axios.post(`/api/tweets/${tweet.id}/replies`, data);
}
}
|
const reduxAction = ( { type, success, payload } ) => {
if ( typeof success === 'undefined' ) success = true;
return { type: type + ( success ? '_SUCCESS' : '_FAIL' ), payload };
};
export default reduxAction;
|
/**
* The global state selectors
*/
import { createSelector } from 'reselect';
const selectGlobal = (state) => state.get('global');
const selectRoute = (state) => state.get('route');
const makeSelectLocation = () => createSelector(
selectRoute,
(routeState) => routeState.get('location').toJS()
);
const makeSelectProjects = () => createSelector(
selectGlobal,
(state) => state.get('projects')
);
const makeSelectOrder = () => createSelector(
selectGlobal,
(state) => state.get('order').toJS()
);
const makeSelectHeader = () => createSelector(
selectGlobal,
(state) => state.get('header')
);
const makeSelectSearch = () => createSelector(
selectGlobal,
(state) => state.get('search').toJS()
);
const makeSelectSelected = () => createSelector(
selectGlobal,
(state) => state.get('selected')
);
const makeSelectTarget = () => createSelector(
selectGlobal,
(state) => state.get('target').toJS()
);
const makeSelectNews = () => createSelector(
selectGlobal,
(state) => state.get('news')
);
const makeSelectReady = () => createSelector(
selectGlobal,
(state) => state.get('ready')
);
const makeSelectError = () => createSelector(
selectGlobal,
(state) => state.get('error')
);
const makeSelectAbout = () => createSelector(
selectGlobal,
(state) => state.get('about')
);
const makeSelectFeature = () => createSelector(
selectGlobal,
(state) => state.get('feature')
);
const makeSelectLang = () => createSelector(
selectGlobal,
(state) => state.get('language')
);
const makeSelectHover = () => createSelector(
selectGlobal,
(state) => state.get('hover')
);
export {
selectGlobal,
makeSelectLocation,
makeSelectProjects,
makeSelectNews,
makeSelectAbout,
makeSelectOrder,
makeSelectSelected,
makeSelectSearch,
makeSelectHeader,
makeSelectFeature,
makeSelectError,
makeSelectReady,
makeSelectLang,
makeSelectTarget,
makeSelectHover
};
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
var _class, _temp2;
var _index = require("../../../../../@tarojs/taro-weapp/index.js");
var _index2 = _interopRequireDefault(_index);
var _index3 = require("../../../../../prop-types/index.js");
var _index4 = _interopRequireDefault(_index3);
var _index5 = require("../../../../../classnames/index.js");
var _index6 = _interopRequireDefault(_index5);
var _component = require("../../common/component.js");
var _component2 = _interopRequireDefault(_component);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var SIZE_CLASS = {
large: 'large',
normal: 'normal',
small: 'small'
};
var AtAvatar = (_temp2 = _class = function (_AtComponent) {
_inherits(AtAvatar, _AtComponent);
function AtAvatar() {
var _ref;
var _temp, _this, _ret;
_classCallCheck(this, AtAvatar);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = AtAvatar.__proto__ || Object.getPrototypeOf(AtAvatar)).call.apply(_ref, [this].concat(args))), _this), _this.$usedState = ["anonymousState__temp", "anonymousState__temp2", "openData", "image", "letter", "isWEAPP", "size", "circle", "text", "customStyle", "className"], _this.$$refs = [], _temp), _possibleConstructorReturn(_this, _ret);
}
_createClass(AtAvatar, [{
key: "_constructor",
value: function _constructor() {
_get(AtAvatar.prototype.__proto__ || Object.getPrototypeOf(AtAvatar.prototype), "_constructor", this).apply(this, arguments);
this.state = {
isWEAPP: _index2.default.getEnv() === _index2.default.ENV_TYPE.WEAPP
};
}
}, {
key: "onClick",
value: function onClick() {}
}, {
key: "_createData",
value: function _createData() {
var _classObject;
this.__state = arguments[0] || this.state || {};
this.__props = arguments[1] || this.props || {};
;
var _props = this.__props,
size = _props.size,
circle = _props.circle,
image = _props.image,
text = _props.text,
openData = _props.openData,
customStyle = _props.customStyle;
var rootClassName = ['at-avatar'];
var classObject = (_classObject = {}, _defineProperty(_classObject, "at-avatar--" + SIZE_CLASS[size], SIZE_CLASS[size]), _defineProperty(_classObject, 'at-avatar--circle', circle), _classObject);
var letter = '';
if (text) {
letter = text[0];
}var elem = void 0;
if (openData && openData.type === 'userAvatarUrl' && this.__state.isWEAPP) {} else if (image) {} else {}
var anonymousState__temp = (0, _index6.default)(rootClassName, classObject, this.__props.className);
var anonymousState__temp2 = (0, _index.internal_inline_style)(customStyle);
Object.assign(this.__state, {
anonymousState__temp: anonymousState__temp,
anonymousState__temp2: anonymousState__temp2,
openData: openData,
image: image,
letter: letter
});
return this.__state;
}
}]);
return AtAvatar;
}(_component2.default), _class.properties = {
"size": {
"type": null,
"value": null
},
"circle": {
"type": null,
"value": null
},
"image": {
"type": null,
"value": null
},
"text": {
"type": null,
"value": null
},
"openData": {
"type": null,
"value": null
},
"customStyle": {
"type": null,
"value": null
},
"className": {
"type": null,
"value": null
}
}, _class.$$events = [], _temp2);
AtAvatar.defaultProps = {
size: 'normal',
circle: false,
image: '',
openData: {},
customStyle: {}
};
AtAvatar.propTypes = {
size: _index4.default.oneOf(['large', 'normal', 'small']),
circle: _index4.default.bool,
image: _index4.default.string,
openData: _index4.default.object,
customStyle: _index4.default.oneOfType([_index4.default.object, _index4.default.string])
};
exports.default = AtAvatar;
Component(require('../../../../../@tarojs/taro-weapp/index.js').default.createComponent(AtAvatar));
|
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) {
'use strict';
function plural(word, num) {
var forms = word.split('_');
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
}
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
'dd': 'дзень_дні_дзён',
'MM': 'месяц_месяцы_месяцаў',
'yy': 'год_гады_гадоў'
};
if (key === 'm') {
return withoutSuffix ? 'хвіліна' : 'хвіліну';
} else if (key === 'h') {
return withoutSuffix ? 'гадзіна' : 'гадзіну';
} else {
return number + ' ' + plural(format[key], +number);
}
}
var be = moment.defineLocale('be', {
months: {
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
},
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
weekdays: {
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
},
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY г.',
LLL: 'D MMMM YYYY г., HH:mm',
LLLL: 'dddd, D MMMM YYYY г., HH:mm'
},
calendar: {
sameDay: '[Сёння ў] LT',
nextDay: '[Заўтра ў] LT',
lastDay: '[Учора ў] LT',
nextWeek: function () {
return '[У] dddd [ў] LT';
},
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
case 5:
case 6:
return '[У мінулую] dddd [ў] LT';
case 1:
case 2:
case 4:
return '[У мінулы] dddd [ў] LT';
}
},
sameElse: 'L'
},
relativeTime: {
future: 'праз %s',
past: '%s таму',
s: 'некалькі секунд',
m: relativeTimeWithPlural,
mm: relativeTimeWithPlural,
h: relativeTimeWithPlural,
hh: relativeTimeWithPlural,
d: 'дзень',
dd: relativeTimeWithPlural,
M: 'месяц',
MM: relativeTimeWithPlural,
y: 'год',
yy: relativeTimeWithPlural
},
meridiemParse: /ночы|раніцы|дня|вечара/,
isPM: function (input) {
return /^(дня|вечара)$/.test(input);
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return 'ночы';
} else if (hour < 12) {
return 'раніцы';
} else if (hour < 17) {
return 'дня';
} else {
return 'вечара';
}
},
dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
ordinal: function (number, period) {
switch (period) {
case 'M':
case 'd':
case 'DDD':
case 'w':
case 'W':
return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
case 'D':
return number + '-га';
default:
return number;
}
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 7 // The week that contains Jan 7th is the first week of the year.
}
});
return be;
})));
|
/**
* @author jsantell / https://www.jsantell.com/
* @author mrdoob / http://mrdoob.com/
*/
import { Vector3 } from '../../math/Vector3.js';
var cameraLPos = new Vector3();
var cameraRPos = new Vector3();
/**
* Assumes 2 cameras that are perpendicular and share an X-axis, and that
* the cameras' projection and world matrices have already been set.
* And that near and far planes are identical for both cameras.
*/
function setProjectionFromUnion( camera, cameraL, cameraR ) {
cameraLPos.setFromMatrixPosition( cameraL.matrixWorld );
cameraRPos.setFromMatrixPosition( cameraR.matrixWorld );
var ipd = cameraLPos.distanceTo( cameraRPos );
var projL = cameraL.projectionMatrix;
var projR = cameraR.projectionMatrix;
// VR systems will have identical far and near planes, and
// most likely identical top and bottom frustum extents.
// via: https://computergraphics.stackexchange.com/a/4765
var near = projL[ 14 ] / ( projL[ 10 ] - 1 );
var far = projL[ 14 ] / ( projL[ 10 ] + 1 );
var leftFovL = ( projL[ 8 ] - 1 ) / projL[ 0 ];
var rightFovR = ( projR[ 8 ] + 1 ) / projR[ 0 ];
var leftL = leftFovL * near;
var rightR = rightFovR * near;
var topL = near * ( projL[ 9 ] + 1 ) / projL[ 5 ];
var topR = near * ( projR[ 9 ] + 1 ) / projR[ 5 ];
var bottomL = near * ( projL[ 9 ] - 1 ) / projL[ 5 ];
var bottomR = near * ( projR[ 9 ] - 1 ) / projR[ 5 ];
// Calculate the new camera's position offset from the
// left camera.
var zOffset = ipd / ( leftFovL + rightFovR );
var xOffset = zOffset * leftFovL;
// TODO: Better way to apply this offset?
cameraL.matrixWorld.decompose( camera.position, camera.quaternion, camera.scale );
camera.translateX( xOffset );
camera.translateZ( - zOffset );
camera.matrixWorld.compose( camera.position, camera.quaternion, camera.scale );
camera.matrixWorldInverse.getInverse( camera.matrixWorld );
// Find the union of the frustum values of the cameras and scale
// the values so that the near plane's position does not change in world space,
// although must now be relative to the new union camera.
var near2 = near + zOffset;
var far2 = far + zOffset;
var left = leftL - xOffset;
var right = rightR + ( ipd - xOffset );
var top = Math.max( topL, topR );
var bottom = Math.min( bottomL, bottomR );
camera.projectionMatrix.makePerspective( left, right, top, bottom, near2, far2 );
}
export { setProjectionFromUnion };
|
import tn from "./tn.png";
export default {
name: "shizuojinpo",
chs: "试作金珀",
url: tn,
star: 4,
type: "book",
effect: "炊金:施放元素爆发后6秒内,每2秒恢复4/4.5/5/5.5/6点元素能量,队伍中的所有角色每2秒恢复4%/4.5%/5%/5.5%/6%生命值。"
}
|
(function(){
// Objeto con propiedades de tabs
var propTabs = {
primer_encabezado: document.getElementById('encabezado_menu').firstElementChild,
primer_contenido: document.getElementById('contenido_menu').firstElementChild,
enlaces_encabezado: document.querySelectorAll('#encabezado_menu li a'),
li_encabezado: document.querySelectorAll('#encabezado_menu li'),
div_contenido: document.querySelectorAll('#contenido_menu >div'),
contenido_activo: null
}
// Objeto con métodos de tabs
var metTabs = {
inicio : function(){
propTabs.primer_encabezado.className = 'active';
propTabs.primer_contenido.className = 'active';
for (var i = 0; i < propTabs.enlaces_encabezado.length; i++) {
propTabs.enlaces_encabezado[i].addEventListener('click', metTabs.evento);
}
},
evento : function(e){
e.preventDefault();
for (var i = 0; i < propTabs.li_encabezado.length; i++) {
propTabs.li_encabezado[i].className='';
}
for (var i = 0; i < propTabs.div_contenido.length; i++) {
propTabs.div_contenido[i].className='';
}
this.parentElement.className = 'active';
propTabs.contenido_activo = this.getAttribute('href');
document.querySelector(propTabs.contenido_activo).className = 'active';
document.querySelector(propTabs.contenido_activo).style.opacity = 0;
setTimeout(function(){
document.querySelector(propTabs.contenido_activo).style.opacity = 1;
}, 100);
}
}
metTabs.inicio();
}())
|
const palindromeSieve = require('./code');
describe('Tests', () => {
test('the tests', () => {
expect(palindromeSieve([443, 12, 639, 121, 3232])).toEqual([443, 121, 3232]);
expect(palindromeSieve([5, 55, 6655, 8787])).toEqual([5, 55, 6655, 8787]);
expect(palindromeSieve([897, 89, 23, 54, 6197, 53342])).toEqual([]);
expect(palindromeSieve([112, 334, 555, 656, 665, 444, 443, 7])).toEqual([112, 334, 555, 656, 665, 444, 443, 7]);
expect(palindromeSieve([1, 2, 123])).toEqual([1, 2]);
expect(palindromeSieve([1, 2, 3])).toEqual([1, 2, 3]);
expect(palindromeSieve([555, 687868877])).toEqual([555, 687868877]);
expect(palindromeSieve([555, 68786887])).toEqual([555, 68786887]);
});
});
|
const AWS = require("aws-sdk");
const parse = AWS.DynamoDB.Converter.output;
const parseDynamoJSON = (data)=> {
try {
console.log ("Parsing dynamodb json", data);
let parsed = parse ({M: data});
console.log ("Parsed dynamo jso9n", parsed)
return parsed;
} catch (e) {
caught`Error ${e} parsing Dynamo JSON.`
}
}
const parseTableFromEventSourceArn = (arn) => {
return arn.split ('/')[1];
}
module.exports = {
parseDynamoJSON,
parseTableFromEventSourceArn
}
|
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.DropdownTimePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.DropdownContainer");
dojo.require("dojo.widget.TimePicker");
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.date.format");
dojo.require("dojo.date.serialize");
dojo.require("dojo.i18n.common");
dojo.requireLocalization("dojo.widget", "DropdownTimePicker");
// summary
// input box with a drop-down gui control, for setting the time (hours, minutes, seconds, am/pm) of an event
dojo.widget.defineWidget(
"dojo.widget.DropdownTimePicker",
dojo.widget.DropdownContainer,
{
// URL
// path of icon for button to display time picker widget
iconURL: dojo.uri.dojoUri("src/widget/templates/images/timeIcon.gif"),
// Number
// z-index of time picker widget
zIndex: "10",
// pattern used in display of formatted time. Uses locale-specific format by default. See dojo.date.format.
displayFormat: "",
// String
// Deprecated. format string for how time is displayed in the input box using strftime, see dojo.date.strftime
timeFormat: "",
//FIXME: need saveFormat attribute support
// type of format appropriate to locale. see dojo.date.format
formatLength: "short",
// String
// time value in RFC3339 format (http://www.ietf.org/rfc/rfc3339.txt)
// ex: 12:00
value: "",
postMixInProperties: function() {
dojo.widget.DropdownTimePicker.superclass.postMixInProperties.apply(this, arguments);
var messages = dojo.i18n.getLocalization("dojo.widget", "DropdownTimePicker", this.lang);
this.iconAlt = messages.selectTime;
},
fillInTemplate: function(){
dojo.widget.DropdownTimePicker.superclass.fillInTemplate.apply(this, arguments);
var timeProps = { widgetContainerId: this.widgetId, lang: this.lang };
this.timePicker = dojo.widget.createWidget("TimePicker", timeProps, this.containerNode, "child");
dojo.event.connect(this.timePicker, "onSetTime", this, "onSetTime");
dojo.event.connect(this.inputNode, "onchange", this, "onInputChange");
this.containerNode.style.zIndex = this.zIndex;
this.containerNode.explodeClassName = "timeBorder";
if(this.value){
this.timePicker.selectedTime.anyTime = false;
this.timePicker.setDateTime("2005-01-01T" + this.value);
this.timePicker.initData();
this.timePicker.initUI();
this.onSetTime();
}
},
onSetTime: function(){
// summary: callback when user sets the time via the TimePicker widget
if(this.timePicker.selectedTime.anyTime){
this.inputNode.value = "";
}else if(this.timeFormat){
dojo.deprecated("dojo.widget.DropdownTimePicker",
"Must use displayFormat attribute instead of timeFormat. See dojo.date.format for specification.", "0.5");
this.inputNode.value = dojo.date.strftime(this.timePicker.time, this.timeFormat, this.lang);
}else{
this.inputNode.value = dojo.date.format(this.timePicker.time,
{formatLength:this.formatLength, datePattern:this.displayFormat, selector:'timeOnly', locale:this.lang});
}
this.hideContainer();
},
onInputChange: function(){
// summary: callback when the user has typed in a time value manually
this.timePicker.time = "2005-01-01T" + this.inputNode.value; //FIXME: i18n
this.timePicker.setDateTime(this.timePicker.time);
this.timePicker.initData();
this.timePicker.initUI();
},
enable: function() {
// summary: enable this widget to accept user input
this.inputNode.disabled = false;
this.timePicker.enable();
dojo.widget.DropdownTimePicker.superclass.enable.apply(this, arguments);
},
disable: function() {
// summary: lock this widget so that the user can't change the value
this.inputNode.disabled = true;
this.timePicker.disable();
dojo.widget.DropdownTimePicker.superclass.disable.apply(this, arguments);
}
}
);
|
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'find', 'tr', {
find: 'Bul',
findOptions: 'Seçenekleri Bul',
findWhat: 'Aranan:',
matchCase: 'Büyük/küçük harf duyarlı',
matchCyclic: 'Eşleşen döngü',
matchWord: 'Kelimenin tamamı uysun',
notFoundMsg: 'Belirtilen yazı bulunamadı.',
replace: 'Değiştir',
replaceAll: 'Tümünü Değiştir',
replaceSuccessMsg: '%1 bulunanlardan değiştirildi.',
replaceWith: 'Bununla değiştir:',
title: 'Bul ve Değiştir'
} );
|
window.onload = function() {
console.log('This is a JSHint demo')
}
|
import React from 'react'
import './AnswersList.css'
import AnswerItem from './AnswerItem/AnswerItem'
const AnswersList = props => (
<ul className="AnswersList">
{ props.answers.map((answer, index) => {
return (
<AnswerItem
key={index}
answer = {answer}
onAnswerClick={props.onAnswerClick}
state={props.state ? props.state[answer.id] : null}
/>
)
}) }
</ul>
)
export default AnswersList
|
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_BATCH_ACCOUNT'] = 'lchency4';
process.env['AZURE_BATCH_ENDPOINT'] = 'https://lchency4.westcentralus.batch.azure.com';
process.env['AZURE_SUBSCRIPTION_ID'] = '3ee7eaf5-6a2f-49fd-953f-d760b5ac2e05';
};
exports.scopes = [[function (nock) {
var result =
nock('http://lchency4.westcentralus.batch.azure.com:443')
.get('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-08-01.7.0')
.reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D607A4396C0D8C\",\"lastModified\":\"2018-08-21T20:25:23.8917516Z\",\"creationTime\":\"2018-08-21T20:25:23.5846713Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-21T20:25:23.6076746Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-08-21T20:25:23.6076746Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked',
'content-type': 'application/json;odata=minimalmetadata',
'last-modified': 'Tue, 21 Aug 2018 20:25:23 GMT',
etag: '0x8D607A4396C0D8C',
server: 'Microsoft-HTTPAPI/2.0',
'request-id': '48237bb7-af49-462c-8793-11c154c658b9',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
'x-content-type-options': 'nosniff',
dataserviceversion: '3.0',
date: 'Tue, 21 Aug 2018 20:31:01 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://lchency4.westcentralus.batch.azure.com:443')
.get('/jobs/HelloWorldJobNodeSDKTest?api-version=2018-08-01.7.0')
.reply(200, "{\r\n \"odata.metadata\":\"https://lchency4.westcentralus.batch.azure.com/$metadata#jobs/@Element\",\"id\":\"HelloWorldJobNodeSDKTest\",\"url\":\"https://lchency4.westcentralus.batch.azure.com/jobs/HelloWorldJobNodeSDKTest\",\"eTag\":\"0x8D607A4396C0D8C\",\"lastModified\":\"2018-08-21T20:25:23.8917516Z\",\"creationTime\":\"2018-08-21T20:25:23.5846713Z\",\"state\":\"active\",\"stateTransitionTime\":\"2018-08-21T20:25:23.6076746Z\",\"priority\":500,\"usesTaskDependencies\":false,\"constraints\":{\r\n \"maxWallClockTime\":\"P10675199DT2H48M5.4775807S\",\"maxTaskRetryCount\":3\r\n },\"poolInfo\":{\r\n \"poolId\":\"nodesdktestpool1\"\r\n },\"executionInfo\":{\r\n \"startTime\":\"2018-08-21T20:25:23.6076746Z\",\"poolId\":\"nodesdktestpool1\"\r\n },\"onAllTasksComplete\":\"noaction\",\"onTaskFailure\":\"noaction\"\r\n}", { 'transfer-encoding': 'chunked',
'content-type': 'application/json;odata=minimalmetadata',
'last-modified': 'Tue, 21 Aug 2018 20:25:23 GMT',
etag: '0x8D607A4396C0D8C',
server: 'Microsoft-HTTPAPI/2.0',
'request-id': '48237bb7-af49-462c-8793-11c154c658b9',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
'x-content-type-options': 'nosniff',
dataserviceversion: '3.0',
date: 'Tue, 21 Aug 2018 20:31:01 GMT',
connection: 'close' });
return result; }]];
|
import { configureStore } from "@reduxjs/toolkit";
import userReducer from "../features/userSlice";
export const store = configureStore({
reducer: {
user: userReducer,
},
});
|
/**
@Name:layui.form 表单组件
@Author:贤心
@License:MIT
*/
layui.define('layer', function(exports){
"use strict";
var $ = layui.$
,layer = layui.layer
,hint = layui.hint()
,device = layui.device()
,MOD_NAME = 'form', ELEM = '.layui-form', THIS = 'layui-this'
,SHOW = 'layui-show', HIDE = 'layui-hide', DISABLED = 'layui-disabled'
,Form = function(){
this.config = {
verify: {
required: [
/[\S]+/
,'Can not be empty.'
// ,'必填项不能为空.'
]
,phone: [
/^1\d{10}$/
,'请输入正确的手机号'
]
,email: [
/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/
,'The mailbox format is incorrect.'
// ,'邮箱格式不正确'
]
,url: [
/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/
,'链接格式不正确'
]
,number: function(value){
if(!value || isNaN(value)) return '只能填写数字'
}
,date: [
/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/
,'日期格式不正确'
]
,identity: [
/(^\d{15}$)|(^\d{17}(x|X|\d)$)/
,'请输入正确的身份证号'
]
}
};
};
//全局设置
Form.prototype.set = function(options){
var that = this;
$.extend(true, that.config, options);
return that;
};
//验证规则设定
Form.prototype.verify = function(settings){
var that = this;
$.extend(true, that.config.verify, settings);
return that;
};
//表单事件监听
Form.prototype.on = function(events, callback){
return layui.onevent.call(this, MOD_NAME, events, callback);
};
//初始赋值
Form.prototype.val = function(filter, object){
var that = this
,formElem = $(ELEM + '[lay-filter="' + filter +'"]');
formElem.each(function(index, item){
var itemFrom = $(this);
layui.each(object, function(key, value){
var itemElem = itemFrom.find('[name="'+ key +'"]')
,type;
//如果对应的表单不存在,则不执行
if(!itemElem[0]) return;
type = itemElem[0].type;
//如果为复选框
if(type === 'checkbox'){
itemElem[0].checked = value;
} else if(type === 'radio') { //如果为单选框
itemElem.each(function(){
if(this.value === value ){
this.checked = true
}
});
} else { //其它类型的表单
itemElem.val(value);
}
});
});
form.render(null, filter);
};
//表单控件渲染
Form.prototype.render = function(type, filter){
var that = this
,elemForm = $(ELEM + function(){
return filter ? ('[lay-filter="' + filter +'"]') : '';
}())
,items = {
//下拉选择框
select: function(){
var TIPS = 'Please choose', CLASS = 'layui-form-select', TITLE = 'layui-select-title'
,NONE = 'layui-select-none', initValue = '', thatInput
,selects = elemForm.find('select')
//隐藏 select
,hide = function(e, clear){
if(!$(e.target).parent().hasClass(TITLE) || clear){
$('.'+CLASS).removeClass(CLASS+'ed ' + CLASS+'up');
thatInput && initValue && thatInput.val(initValue);
}
thatInput = null;
}
//各种事件
,events = function(reElem, disabled, isSearch){
var select = $(this)
,title = reElem.find('.' + TITLE)
,input = title.find('input')
,dl = reElem.find('dl')
,dds = dl.children('dd')
,index = this.selectedIndex //当前选中的索引
,nearElem; //select 组件当前选中的附近元素,用于辅助快捷键功能
if(disabled) return;
//展开下拉
var showDown = function(){
var top = reElem.offset().top + reElem.outerHeight() + 5 - $win.scrollTop()
,dlHeight = dl.outerHeight();
index = select[0].selectedIndex; //获取最新的 selectedIndex
reElem.addClass(CLASS+'ed');
dds.removeClass(HIDE);
nearElem = null;
//初始选中样式
dds.eq(index).addClass(THIS).siblings().removeClass(THIS);
//上下定位识别
if(top + dlHeight > $win.height() && top >= dlHeight){
reElem.addClass(CLASS + 'up');
}
followScroll();
}
//隐藏下拉
,hideDown = function(choose){
reElem.removeClass(CLASS+'ed ' + CLASS+'up');
input.blur();
nearElem = null;
if(choose) return;
notOption(input.val(), function(none){
var selectedIndex = select[0].selectedIndex;
//未查询到相关值
if(none){
initValue = $(select[0].options[selectedIndex]).html(); //重新获得初始选中值
//如果是第一项,且文本值等于 placeholder,则清空初始值
if(selectedIndex === 0 && initValue === input.attr('placeholder')){
initValue = '';
};
//如果有选中值,则将输入框纠正为该值。否则清空输入框
input.val(initValue || '');
}
});
}
//定位下拉滚动条
,followScroll = function(){
var thisDd = dl.children('dd.'+ THIS);
if(!thisDd[0]) return;
var posTop = thisDd.position().top
,dlHeight = dl.height()
,ddHeight = thisDd.height();
//若选中元素在滚动条不可见底部
if(posTop > dlHeight){
dl.scrollTop(posTop + dl.scrollTop() - dlHeight + ddHeight - 5);
}
//若选择玄素在滚动条不可见顶部
if(posTop < 0){
dl.scrollTop(posTop + dl.scrollTop() - 5);
}
};
//点击标题区域
title.on('click', function(e){
reElem.hasClass(CLASS+'ed') ? (
hideDown()
) : (
hide(e, true),
showDown()
);
dl.find('.'+NONE).remove();
});
//点击箭头获取焦点
title.find('.layui-edge').on('click', function(){
input.focus();
});
//select 中 input 键盘事件
input.on('keyup', function(e){ //键盘松开
var keyCode = e.keyCode;
//Tab键展开
if(keyCode === 9){
showDown();
}
}).on('keydown', function(e){ //键盘按下
var keyCode = e.keyCode;
//Tab键隐藏
if(keyCode === 9){
hideDown();
}
//标注 dd 的选中状态
var setThisDd = function(prevNext, thisElem1){
var nearDd, cacheNearElem
e.preventDefault();
//得到当前队列元素
var thisElem = function(){
var thisDd = dl.children('dd.'+ THIS);
//如果是搜索状态,且按 Down 键,且当前可视 dd 元素在选中元素之前,
//则将当前可视 dd 元素的上一个元素作为虚拟的当前选中元素,以保证递归不中断
if(dl.children('dd.'+ HIDE)[0] && prevNext === 'next'){
var showDd = dl.children('dd:not(.'+ HIDE +',.'+ DISABLED +')')
,firstIndex = showDd.eq(0).index();
if(firstIndex >=0 && firstIndex < thisDd.index() && !showDd.hasClass(THIS)){
return showDd.eq(0).prev()[0] ? showDd.eq(0).prev() : dl.children(':last');
}
}
if(thisElem1 && thisElem1[0]){
return thisElem1;
}
if(nearElem && nearElem[0]){
return nearElem;
}
return thisDd;
//return dds.eq(index);
}();
cacheNearElem = thisElem[prevNext](); //当前元素的附近元素
nearDd = thisElem[prevNext]('dd:not(.'+ HIDE +')'); //当前可视元素的 dd 元素
//如果附近的元素不存在,则停止执行,并清空 nearElem
if(!cacheNearElem[0]) return nearElem = null;
//记录附近的元素,让其成为下一个当前元素
nearElem = thisElem[prevNext]();
//如果附近不是 dd ,或者附近的 dd 元素是禁用状态,则进入递归查找
if((!nearDd[0] || nearDd.hasClass(DISABLED)) && nearElem[0]){
return setThisDd(prevNext, nearElem);
}
nearDd.addClass(THIS).siblings().removeClass(THIS); //标注样式
followScroll(); //定位滚动条
};
if(keyCode === 38) setThisDd('prev'); //Up 键
if(keyCode === 40) setThisDd('next'); //Down 键
//Enter 键
if(keyCode === 13){
e.preventDefault();
dl.children('dd.'+THIS).trigger('click');
}
});
//检测值是否不属于 select 项
var notOption = function(value, callback, origin){
var num = 0;
layui.each(dds, function(){
var othis = $(this)
,text = othis.text()
,not = text.indexOf(value) === -1;
if(value === '' || (origin === 'blur') ? value !== text : not) num++;
origin === 'keyup' && othis[not ? 'addClass' : 'removeClass'](HIDE);
});
var none = num === dds.length;
return callback(none), none;
};
//搜索匹配
var search = function(e){
var value = this.value, keyCode = e.keyCode;
if(keyCode === 9 || keyCode === 13
|| keyCode === 37 || keyCode === 38
|| keyCode === 39 || keyCode === 40
){
return false;
}
notOption(value, function(none){
if(none){
dl.find('.'+NONE)[0] || dl.append('<p class="'+ NONE +'">无匹配项</p>');
} else {
dl.find('.'+NONE).remove();
}
}, 'keyup');
if(value === ''){
dl.find('.'+NONE).remove();
}
followScroll(); //定位滚动条
};
if(isSearch){
input.on('keyup', search).on('blur', function(e){
var selectedIndex = select[0].selectedIndex;
thatInput = input; //当前的 select 中的 input 元素
initValue = $(select[0].options[selectedIndex]).html(); //重新获得初始选中值
//如果是第一项,且文本值等于 placeholder,则清空初始值
if(selectedIndex === 0 && initValue === input.attr('placeholder')){
initValue = '';
};
setTimeout(function(){
notOption(input.val(), function(none){
initValue || input.val(''); //none && !initValue
}, 'blur');
}, 200);
});
}
//选择
dds.on('click', function(){
var othis = $(this), value = othis.attr('lay-value');
var filter = select.attr('lay-filter'); //获取过滤器
if(othis.hasClass(DISABLED)) return false;
if(othis.hasClass('layui-select-tips')){
input.val('');
} else {
input.val(othis.text());
othis.addClass(THIS);
}
othis.siblings().removeClass(THIS);
select.val(value).removeClass('layui-form-danger')
layui.event.call(this, MOD_NAME, 'select('+ filter +')', {
elem: select[0]
,value: value
,othis: reElem
});
hideDown(true);
return false;
});
reElem.find('dl>dt').on('click', function(e){
return false;
});
$(document).off('click', hide).on('click', hide); //点击其它元素关闭 select
}
selects.each(function(index, select){
var othis = $(this)
,hasRender = othis.next('.'+CLASS)
,disabled = this.disabled
,value = select.value
,selected = $(select.options[select.selectedIndex]) //获取当前选中项
,optionsFirst = select.options[0];
if(typeof othis.attr('lay-ignore') === 'string') return othis.show();
var isSearch = typeof othis.attr('lay-search') === 'string'
,placeholder = optionsFirst ? (
optionsFirst.value ? TIPS : (optionsFirst.innerHTML || TIPS)
) : TIPS;
//替代元素
var reElem = $(['<div class="'+ (isSearch ? '' : 'layui-unselect ') + CLASS
,(disabled ? ' layui-select-disabled' : '') +'">'
,'<div class="'+ TITLE +'">'
,('<input type="text" placeholder="'+ placeholder +'" '
+('value="'+ (value ? selected.html() : '') +'"') //默认值
+(isSearch ? '' : ' readonly') //是否开启搜索
+' class="layui-input'
+(isSearch ? '' : ' layui-unselect')
+ (disabled ? (' ' + DISABLED) : '') +'">') //禁用状态
,'<i class="layui-edge"></i></div>'
,'<dl class="layui-anim layui-anim-upbit'+ (othis.find('optgroup')[0] ? ' layui-select-group' : '') +'">'
,function(options){
var arr = [];
layui.each(options, function(index, item){
if(index === 0 && !item.value){
arr.push('<dd lay-value="" class="layui-select-tips">'+ (item.innerHTML || TIPS) +'</dd>');
} else if(item.tagName.toLowerCase() === 'optgroup'){
arr.push('<dt>'+ item.label +'</dt>');
} else {
arr.push('<dd lay-value="'+ item.value +'" class="'+ (value === item.value ? THIS : '') + (item.disabled ? (' '+DISABLED) : '') +'">'+ item.innerHTML +'</dd>');
}
});
arr.length === 0 && arr.push('<dd lay-value="" class="'+ DISABLED +'">No options</dd>');
return arr.join('');
}(othis.find('*')) +'</dl>'
,'</div>'].join(''));
hasRender[0] && hasRender.remove(); //如果已经渲染,则Rerender
othis.after(reElem);
events.call(this, reElem, disabled, isSearch);
});
}
//复选框/开关
,checkbox: function(){
var CLASS = {
checkbox: ['layui-form-checkbox', 'layui-form-checked', 'checkbox']
,_switch: ['layui-form-switch', 'layui-form-onswitch', 'switch']
}
,checks = elemForm.find('input[type=checkbox]')
,events = function(reElem, RE_CLASS){
var check = $(this);
//勾选
reElem.on('click', function(){
var filter = check.attr('lay-filter') //获取过滤器
,text = (check.attr('lay-text')||'').split('|');
if(check[0].disabled) return;
check[0].checked ? (
check[0].checked = false
,reElem.removeClass(RE_CLASS[1]).find('em').text(text[1])
) : (
check[0].checked = true
,reElem.addClass(RE_CLASS[1]).find('em').text(text[0])
);
layui.event.call(check[0], MOD_NAME, RE_CLASS[2]+'('+ filter +')', {
elem: check[0]
,value: check[0].value
,othis: reElem
});
});
}
checks.each(function(index, check){
var othis = $(this), skin = othis.attr('lay-skin')
,text = (othis.attr('lay-text') || '').split('|'), disabled = this.disabled;
if(skin === 'switch') skin = '_'+skin;
var RE_CLASS = CLASS[skin] || CLASS.checkbox;
if(typeof othis.attr('lay-ignore') === 'string') return othis.show();
//替代元素
var hasRender = othis.next('.' + RE_CLASS[0])
,reElem = $(['<div class="layui-unselect '+ RE_CLASS[0]
,(check.checked ? (' '+ RE_CLASS[1]) : '') //选中状态
,(disabled ? ' layui-checkbox-disbaled '+ DISABLED : '') //禁用状态
,'"'
,(skin ? ' lay-skin="'+ skin +'"' : '') //风格
,'>'
,function(){ //不同风格的内容
var title = check.title.replace(/\s/g, '')
,type = {
//复选框
checkbox: [
(title ? ('<span>'+ check.title +'</span>') : '')
,'<i class="layui-icon layui-icon-ok"></i>'
].join('')
//开关
,_switch: '<em>'+ ((check.checked ? text[0] : text[1]) || '') +'</em><i></i>'
};
return type[skin] || type['checkbox'];
}()
,'</div>'].join(''));
hasRender[0] && hasRender.remove(); //如果已经渲染,则Rerender
othis.after(reElem);
events.call(this, reElem, RE_CLASS);
});
}
//单选框
,radio: function(){
var CLASS = 'layui-form-radio', ICON = ['', '']
,radios = elemForm.find('input[type=radio]')
,events = function(reElem){
var radio = $(this), ANIM = 'layui-anim-scaleSpring';
reElem.on('click', function(){
var name = radio[0].name, forms = radio.parents(ELEM);
var filter = radio.attr('lay-filter'); //获取过滤器
var sameRadio = forms.find('input[name='+ name.replace(/(\.|#|\[|\])/g, '\\$1') +']'); //找到相同name的兄弟
if(radio[0].disabled) return;
layui.each(sameRadio, function(){
var next = $(this).next('.'+CLASS);
this.checked = false;
next.removeClass(CLASS+'ed');
next.find('.layui-icon').removeClass(ANIM).html(ICON[1]);
});
radio[0].checked = true;
reElem.addClass(CLASS+'ed');
reElem.find('.layui-icon').addClass(ANIM).html(ICON[0]);
layui.event.call(radio[0], MOD_NAME, 'radio('+ filter +')', {
elem: radio[0]
,value: radio[0].value
,othis: reElem
});
});
};
radios.each(function(index, radio){
var othis = $(this), hasRender = othis.next('.' + CLASS), disabled = this.disabled;
if(typeof othis.attr('lay-ignore') === 'string') return othis.show();
hasRender[0] && hasRender.remove(); //如果已经渲染,则Rerender
//替代元素
var reElem = $(['<div class="layui-unselect '+ CLASS
,(radio.checked ? (' '+CLASS+'ed') : '') //选中状态
,(disabled ? ' layui-radio-disbaled '+DISABLED : '') +'">' //禁用状态
,'<i class="layui-anim layui-icon">'+ ICON[radio.checked ? 0 : 1] +'</i>'
,'<div>'+ function(){
var title = radio.title || '';
if(typeof othis.next().attr('lay-radio') === 'string'){
title = othis.next().html();
othis.next().remove();
}
return title
}() +'</div>'
,'</div>'].join(''));
othis.after(reElem);
events.call(this, reElem);
});
}
};
type ? (
items[type] ? items[type]() : hint.error('不支持的'+ type + '表单渲染')
) : layui.each(items, function(index, item){
item();
});
return that;
};
//表单提交校验
var submit = function(){
var button = $(this), verify = form.config.verify, stop = null
,DANGER = 'layui-form-danger', field = {} ,elem = button.parents(ELEM)
,verifyElem = elem.find('*[lay-verify]') //获取需要校验的元素
,formElem = button.parents('form')[0] //获取当前所在的form元素,如果存在的话
,fieldElem = elem.find('input,select,textarea') //获取所有表单域
,filter = button.attr('lay-filter'); //获取过滤器
//开始校验
layui.each(verifyElem, function(_, item){
var othis = $(this)
,vers = othis.attr('lay-verify').split('|')
,verType = othis.attr('lay-verType') //提示方式
,value = othis.val();
othis.removeClass(DANGER);
layui.each(vers, function(_, thisVer){
var isTrue //是否命中校验
,errorText = '' //错误提示文本
,isFn = typeof verify[thisVer] === 'function';
//匹配验证规则
if(verify[thisVer]){
var isTrue = isFn ? errorText = verify[thisVer](value, item) : !verify[thisVer][0].test(value);
errorText = errorText || verify[thisVer][1];
//如果是必填项或者非空命中校验,则阻止提交,弹出提示
if(isTrue){
//提示层风格
if(verType === 'tips'){
layer.tips(errorText, function(){
if(typeof othis.attr('lay-ignore') !== 'string'){
if(item.tagName.toLowerCase() === 'select' || /^checkbox|radio$/.test(item.type)){
return othis.next();
}
}
return othis;
}(), {tips: 1});
} else if(verType === 'alert') {
layer.alert(errorText, {title: '提示', shadeClose: true});
} else {
layer.msg(errorText, {icon: 5, shift: 6});
}
if(!device.android && !device.ios) item.focus(); //非移动设备自动定位焦点
othis.addClass(DANGER);
return stop = true;
}
}
});
if(stop) return stop;
});
if(stop) return false;
var nameIndex = {}; //数组 name 索引
layui.each(fieldElem, function(_, item){
item.name = (item.name || '').replace(/^\s*|\s*&/, '');
if(!item.name) return;
//用于支持数组 name
if(/^.*\[\]$/.test(item.name)){
var key = item.name.match(/^(.*)\[\]$/g)[0];
nameIndex[key] = nameIndex[key] | 0;
item.name = item.name.replace(/^(.*)\[\]$/, '$1['+ (nameIndex[key]++) +']');
}
if(/^checkbox|radio$/.test(item.type) && !item.checked) return;
field[item.name] = item.value;
});
//获取字段
return layui.event.call(this, MOD_NAME, 'submit('+ filter +')', {
elem: this
,form: formElem
,field: field
});
};
//自动完成渲染
var form = new Form()
,$dom = $(document), $win = $(window);
form.render();
//表单reset重置渲染
$dom.on('reset', ELEM, function(){
var filter = $(this).attr('lay-filter');
setTimeout(function(){
form.render(null, filter);
}, 50);
});
//表单提交事件
$dom.on('submit', ELEM, submit)
.on('click', '*[lay-submit]', submit);
exports(MOD_NAME, form);
});
|
const generateD209 = (fill, outline, viewBoxW = "600", viewBoxH = "600") => `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${viewBoxW} ${viewBoxH}">
<g>
<g fill="${fill}">
<path d="M157.6 402.9L295.9 553c2 2.1 6.8 2.1 8.8 0L443 402.9c2-2.1-.5-4.8-4.4-4.8H162c-3.9 0-6.3 2.7-4.4 4.8zm1.4-21.2l135.1-228c2.5-4.2-1-9.4-5.8-8.8L86.2 171.6c-3.6.5-5.9 4.2-4.8 7.6l67 201.3c1.7 4.8 8.1 5.5 10.6 1.2z"/>
<path d="M300.3 47.5v94.1c0 1-.8 1.9-1.8 2L89.4 171.2c-2.2.3-3.2-2.7-1.3-3.8L297.2 45.7c1.4-.8 3.1.2 3.1 1.8zm0 0v94.1c0 1 .8 1.9 1.8 2l209.1 27.6c2.2.3 3.2-2.7 1.3-3.8L303.4 45.7c-1.4-.8-3.1.2-3.1 1.8zM151.2 398.6l-68.4 28.1c-.9.4-2-.3-2-1.3l-1.6-243.6c0-1.6 2.3-2 2.8-.4l70 215.5c.2.7-.1 1.4-.8 1.7z"/>
<path d="M151.2 398.6l-67 27.5c-1.4.6-1.5 2.5-.2 3.2l205.5 123.1c1.8 1.1 3.7-1.2 2.3-2.8L153.3 399.1c-.5-.6-1.4-.8-2.1-.5zm297.3 0l67 27.5c1.4.6 1.5 2.5.2 3.2L310.3 552.5c-1.8 1.1-3.7-1.2-2.3-2.8l138.5-150.6c.5-.6 1.3-.8 2-.5zm.3 0l68.4 28.1c.9.4 2-.3 2-1.3l1.6-243.6c0-1.6-2.3-2-2.8-.4l-70 215.5c-.2.7.1 1.4.8 1.7z"/>
<path d="M442.3 388.3l-137-236.1c-2.1-3.6.9-8.1 5-7.5l204.8 27c3.1.4 5.1 3.6 4.1 6.6l-67.8 209c-1.2 4.2-6.9 4.8-9.1 1z"/>
<path d="M157.6 390.5L295.9 151c2-3.4 6.8-3.4 8.8 0L443 390.5c2 3.4-.5 7.6-4.4 7.6H162c-3.9 0-6.3-4.2-4.4-7.6z"/>
</g>
<g fill="none" stroke="${outline}" stroke-width="12" stroke-miterlimit="10">
<path d="M157.6 402.9L295.9 553c2 2.1 6.8 2.1 8.8 0L443 402.9c2-2.1-.5-4.8-4.4-4.8H162c-3.9 0-6.3 2.7-4.4 4.8zm1.4-21.2l135.1-228c2.5-4.2-1-9.4-5.8-8.8L86.2 171.6c-3.6.5-5.9 4.2-4.8 7.6l67 201.3c1.7 4.8 8.1 5.5 10.6 1.2z"/>
<path d="M300.3 47.5v94.1c0 1-.8 1.9-1.8 2L89.4 171.2c-2.2.3-3.2-2.7-1.3-3.8L297.2 45.7c1.4-.8 3.1.2 3.1 1.8zm0 0v94.1c0 1 .8 1.9 1.8 2l209.1 27.6c2.2.3 3.2-2.7 1.3-3.8L303.4 45.7c-1.4-.8-3.1.2-3.1 1.8zM151.2 398.6l-68.4 28.1c-.9.4-2-.3-2-1.3l-1.6-243.6c0-1.6 2.3-2 2.8-.4l70 215.5c.2.7-.1 1.4-.8 1.7z"/>
<path d="M151.2 398.6l-67 27.5c-1.4.6-1.5 2.5-.2 3.2l205.5 123.1c1.8 1.1 3.7-1.2 2.3-2.8L153.3 399.1c-.5-.6-1.4-.8-2.1-.5zm297.3 0l67 27.5c1.4.6 1.5 2.5.2 3.2L310.3 552.5c-1.8 1.1-3.7-1.2-2.3-2.8l138.5-150.6c.5-.6 1.3-.8 2-.5zm.3 0l68.4 28.1c.9.4 2-.3 2-1.3l1.6-243.6c0-1.6-2.3-2-2.8-.4l-70 215.5c-.2.7.1 1.4.8 1.7z"/>
<path d="M442.3 388.3l-137-236.1c-2.1-3.6.9-8.1 5-7.5l204.8 27c3.1.4 5.1 3.6 4.1 6.6l-67.8 209c-1.2 4.2-6.9 4.8-9.1 1z"/>
<path d="M157.6 390.5L295.9 151c2-3.4 6.8-3.4 8.8 0L443 390.5c2 3.4-.5 7.6-4.4 7.6H162c-3.9 0-6.3-4.2-4.4-7.6z"/>
</g>
</g>
<g>
<path d="M303.6 335.9c4.1 0 7-1.9 8.7-5.7 1.7-3.8 2.4-9.7 2.3-17.7-1.2 2.9-3.3 5.2-6.3 6.9-3 1.7-6.4 2.5-10.3 2.5-7.1 0-12.8-2.2-16.9-6.5-4.1-4.3-6.2-10.5-6.2-18.6 0-5.1 1-9.6 3.1-13.5 2.1-3.9 5.1-7 9.1-9.1 4-2.2 8.9-3.3 14.5-3.3 7.6 0 13.6 1.6 17.9 4.8 4.3 3.2 7.2 7.6 8.9 13.1 1.6 5.5 2.5 12.2 2.5 20 0 13.7-2.1 24.1-6.3 31.1-4.2 7-11.2 10.5-21 10.5-5.4 0-10.1-1.1-14-3.3-3.9-2.2-6.9-5.1-9-8.7-2.1-3.6-3.3-7.6-3.6-12h17.1c1.1 6.4 4.2 9.5 9.5 9.5zm6.9-46.1c-1.9-2-4.6-3-8.1-3-3.2 0-5.7.9-7.5 2.7-1.8 1.8-2.7 4.4-2.7 7.8s.9 6 2.8 7.9c1.9 1.8 4.4 2.7 7.6 2.7 3.1 0 5.6-.9 7.7-2.6 2.1-1.7 3.1-4.2 3.1-7.4-.1-3.4-1.1-6.1-2.9-8.1z"/>
<path d="M216.5 109.4l3.4-11.1 17.5-2.5-13 42.4-11.6 1.6 9.6-31.3-5.9.9zm15.9 20.8l3-9.8L260.7 92l11.9-1.7-7.8 25.6 4.4-.6-3.1 10.2-4.4.6-2.2 7.2-11.1 1.6 2.2-7.2-18.2 2.5zm25.8-25l-11.6 13.3 7.9-1.1 3.7-12.2z"/>
<path d="M346.8 125.7l-1.1-9.5 14.5-22.8 11.9 1.7L375 120l4.4.6 1.1 9.9-4.4-.6.8 7-11.1-1.6-.8-7-18.2-2.6zm16.5-19l-6.6 10.7 7.9 1.1-1.3-11.8z"/>
<path d="M142.7 447.6c-.5-1.7-.3-3.1.6-4.2.9-1.1 2.3-1.9 4.2-2.3 2.4-.5 4.7-.4 7 .3s4.2 1.6 5.8 2.9h.2c-1.7-3.9-.4-6.3 3.9-7.2 2.2-.4 4.4-.4 6.8.1 2.4.5 4.7 1.4 7 2.7 2.3 1.3 4.4 3.1 6.3 5.2 3.2 3.5 4.6 6.6 4.4 9-.3 2.5-2.5 4.2-6.8 5.2l-7.3-8.1c3-.6 3.6-1.9 1.6-4.1-.7-.8-1.5-1.3-2.5-1.7-1-.3-2-.4-3-.2-1.2.3-1.8.8-1.8 1.6s.7 2 2 3.5l1.3 1.5-8.2 1.7-1.3-1.4c-1-1.1-2-2-3.2-2.6-1.1-.6-2.4-.8-3.8-.5-1.1.2-1.7.6-1.8 1.1-.2.5.1 1.1.7 1.9.7.8 1.6 1.3 2.7 1.6 1.1.3 2.2.3 3.4.1l7.2 8.1c-4.1.7-8 .3-11.8-1.1-3.8-1.4-7.1-3.8-10.1-7.1-1.9-2.3-3.1-4.3-3.5-6z"/>
<path d="M108 371.1l-7.4 5.2-5.3-16.9 28.5-19.9 3.5 11.1-21.1 14.7 1.8 5.8zM94 333c-.3.9-.3 2 .1 3.1.5 1.7 1.5 2.5 3 2.3 1.5-.2 3.5-1.2 6-3-1.1 0-2.1-.5-3.1-1.5s-1.7-2.4-2.3-4.1c-1.1-3.5-1.2-6.9-.2-10.1 1-3.2 2.9-5.9 5.9-8 2-1.4 3.9-2 5.7-1.9 1.8.1 3.5.8 4.9 2.3 1.5 1.5 2.6 3.7 3.5 6.5 1.8 5.6 1.7 10.4-.2 14.4s-5.1 7.6-9.7 10.8c-3.6 2.5-6.7 4.1-9.2 4.6-2.6.6-4.7.2-6.5-1.2-1.8-1.4-3.2-3.8-4.3-7.3-1.3-4.1-1.4-7.9-.3-11.3 1.1-3.4 2.9-6.1 5.5-8.2l3.1 9.9c-1.1.8-1.7 1.7-1.9 2.7zm17-5.5c.3-1.2.3-2.4-.2-3.8-.4-1.3-1-2.1-1.7-2.5-.8-.4-1.7-.2-2.7.5-1 .7-1.7 1.6-2 2.8-.3 1.1-.2 2.3.2 3.6.4 1.3 1 2.1 1.8 2.5.8.4 1.7.3 2.6-.4 1-.7 1.7-1.6 2-2.7z"/>
<path d="M506.9 325.2l6.4 7.3-5.5 16.8-24.6-27.8 3.6-11.1 18.2 20.5 1.9-5.7zm-7.4 50.7c-1.3 1.3-2.6 1.8-4 1.6-1.4-.2-2.7-1-4.1-2.5-1.6-1.8-2.7-3.9-3.2-6.2-.6-2.3-.7-4.5-.4-6.4l-.1-.2c-2.6 3.4-5.3 3.5-8.2.2-1.5-1.6-2.6-3.6-3.4-5.9-.8-2.3-1.1-4.8-1.1-7.4 0-2.7.5-5.3 1.4-8.1 1.5-4.5 3.4-7.3 5.6-8.3 2.3-1 4.9.1 7.9 3.3l-3.4 10.3c-2-2.3-3.4-2.1-4.4.6-.3 1-.4 2-.2 3s.6 1.9 1.3 2.7c.8.9 1.6 1.2 2.3.8.7-.4 1.4-1.6 2-3.5l.6-1.9 5.5 6.2-.6 1.8c-.5 1.4-.7 2.7-.7 4 0 1.3.5 2.5 1.4 3.5.7.8 1.3 1.1 1.9 1 .5-.1 1-.6 1.2-1.5.3-1 .3-2.1 0-3.1-.3-1.1-.9-2.1-1.6-3l3.4-10.3c2.6 3.2 4.3 6.7 5 10.7.7 4 .3 8.1-1.1 12.4-.7 2.9-1.8 4.9-3 6.2z"/>
<path d="M446.4 448l8.2 3.9-12 13-31.5-14.7 7.9-8.6 23.3 10.9 4.1-4.5z"/>
<path d="M158.6 211.8c-1.9.5-3.4 1.8-4.7 3.9-1.9 3.3-1.8 6.5.3 9.5 2.1 3.1 6.2 6.3 12.3 9.6-1.7-2.2-2.5-4.9-2.4-8 .1-3.1 1-6.2 2.8-9.3 3.3-5.7 7.5-9.2 12.7-10.6 5.2-1.4 10.8-.3 16.9 3.2 3.8 2.2 6.8 5 8.8 8.4 2 3.4 3 7.1 2.8 11.3-.2 4.2-1.6 8.5-4.2 12.9-5.1 8.8-11.2 13.3-18.3 13.7-7.1.3-15.3-2.2-24.5-7.5-10.6-6.1-17.4-12.4-20.4-18.9-3-6.5-2.1-13.7 2.5-21.8 3.7-6.3 8.2-10.2 13.5-11.5 5.3-1.3 10.7-.6 16.2 2l-7.8 13.6c-2.4-.8-4.6-1-6.5-.5zm27.1 29.7c2.4-.6 4.4-2.3 6-5.1 1.5-2.5 1.9-4.9 1.4-7.2-.5-2.2-2.1-4.1-4.7-5.6s-5-1.9-7.3-1.2c-2.2.7-4.1 2.3-5.6 4.8-1.4 2.4-1.9 4.9-1.5 7.3.4 2.4 1.8 4.3 4.2 5.7 2.7 1.5 5.1 1.9 7.5 1.3z"/>
<path d="M434.4 188.8l13-7.5 14 24.3-57.4 33.2-8.8-15.3 44.5-25.7-5.3-9zm17.4 30.2l13-7.5 14 24.3-57.4 33.2-8.8-15.3 44.5-25.7-5.3-9z"/>
<path d="M339.6 468.3v12.1h-24v-53.6h15.1v41.5h8.9zm-54.7-31.6c-3.3 0-5.5 1.3-6.9 4-1.3 2.7-1.9 6.8-1.8 12.5 1-2.1 2.6-3.7 4.9-4.9 2.3-1.2 5-1.8 8.1-1.8 5.6 0 10 1.5 13.3 4.6 3.3 3.1 4.9 7.4 4.9 13.2 0 3.6-.8 6.8-2.4 9.6-1.6 2.8-4 4.9-7.2 6.5-3.2 1.5-7 2.3-11.4 2.3-6 0-10.7-1.1-14-3.4s-5.7-5.4-7-9.3c-1.3-3.9-1.9-8.6-1.9-14.1 0-9.7 1.6-17 4.9-22 3.3-5 8.8-7.5 16.5-7.5 4.3 0 7.9.8 11 2.3 3.1 1.5 5.4 3.6 7.1 6.2 1.7 2.6 2.6 5.4 2.8 8.5h-13.5c-.8-4.5-3.3-6.7-7.4-6.7zm-5.4 32.6c1.5 1.4 3.6 2.2 6.4 2.2 2.5 0 4.5-.6 5.9-1.9 1.4-1.3 2.1-3.1 2.1-5.5s-.7-4.3-2.2-5.6c-1.5-1.3-3.4-1.9-6-1.9-2.4 0-4.4.6-6.1 1.9-1.6 1.2-2.4 3-2.4 5.3.1 2.2.8 4.1 2.3 5.5z"/>
</g>
</svg>`;
module.exports = generateD209;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.