tao-test/app/tao/views/js/loader/vendor.min.js

4948 lines
3.3 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var requirejs,require,define;!function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.6",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",
isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(match,singlePrefix){return singlePrefix||""}function isFunction(it){return"[object Function]"===ostring.call(it)}function isArray(it){return"[object Array]"===ostring.call(it)}function each(ary,func){if(ary)for(var i=0;i<ary.length&&(!ary[i]||!func(ary[i],i,ary));i+=1);}function eachReverse(ary,func){if(ary)for(var i=ary.length-1;-1<i&&(!ary[i]||!func(ary[i],i,ary));--i);}function hasProp(obj,prop){return hasOwn.call(obj,prop)}function getOwn(obj,prop){return hasProp(obj,prop)&&obj[prop]}function eachProp(obj,
func){for(var prop in obj)if(hasProp(obj,prop)&&func(obj[prop],prop))break}function mixin(target,source,force,deepStringMixin){return source&&eachProp(source,function(value,prop){!force&&hasProp(target,prop)||(!deepStringMixin||"object"!=typeof value||!value||isArray(value)||isFunction(value)||value instanceof RegExp?target[prop]=value:(target[prop]||(target[prop]={}),mixin(target[prop],value,force,deepStringMixin)))}),target}function bind(obj,fn){return function(){return fn.apply(obj,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(err){throw err}function getGlobal(value){if(!value)return value
;var g=global;return each(value.split("."),function(part){g=g[part]}),g}function makeError(id,e,err,requireModules){e=new Error(e+"\nhttps://requirejs.org/docs/errors.html#"+id);return e.requireType=id,e.requireModules=requireModules,err&&(e.originalError=err),e}if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(deps,callback,errback,context){var config,contextName=defContextName;return isArray(deps)||"string"==typeof deps||(config=deps,isArray(callback)?(deps=callback,callback=errback,errback=context):deps=[]),
config&&config.context&&(contextName=config.context),context=(context=getOwn(contexts,contextName))||(contexts[contextName]=req.s.newContext(contextName)),config&&context.configure(config),context.require(deps,callback,errback)},req.config=function(config){return req(config)},req.nextTick=void 0!==setTimeout?function(fn){setTimeout(fn,4)}:function(fn){fn()},require=require||req,req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(prop){req[prop]=function(){var ctx=contexts[defContextName];return ctx.require[prop].apply(ctx,
arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(config,moduleName,url){var node=config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return node.type=config.scriptType||"text/javascript",node.charset="utf-8",node.async=!0,node},req.load=function(context,moduleName,url){var node,config=context&&context.config||{};if(isBrowser)return(node=req.createNode(config,moduleName,url)).setAttribute("data-requirecontext",
context.contextName),node.setAttribute("data-requiremodule",moduleName),!node.attachEvent||node.attachEvent.toString&&node.attachEvent.toString().indexOf("[native code")<0||isOpera?(node.addEventListener("load",context.onScriptLoad,!1),node.addEventListener("error",context.onScriptError,!1)):(useInteractive=!0,node.attachEvent("onreadystatechange",context.onScriptLoad)),node.src=url,config.onNodeCreated&&config.onNodeCreated(node,config,moduleName,url),currentlyAddingScript=node,baseElement?head.insertBefore(node,baseElement):head.appendChild(node),currentlyAddingScript=null,node;if(isWebWorker)try{setTimeout(function(){},0),importScripts(url),
context.completeLoad(moduleName)}catch(e){context.onError(makeError("importscripts","importScripts failed for "+moduleName+" at "+url,e,[moduleName]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(script){if(head=head||script.parentNode,dataMain=script.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(mainScript=(src=mainScript.split("/")).pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(name,
deps,callback){var node,context;"string"!=typeof name&&(callback=deps,deps=name,name=null),isArray(deps)||(callback=deps,deps=null),!deps&&isFunction(callback)&&(deps=[],callback.length&&(callback.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(match,dep){deps.push(dep)}),deps=(1===callback.length?["require"]:["require","exports","module"]).concat(deps))),useInteractive&&(node=currentlyAddingScript||getInteractiveScript())&&(name=name||node.getAttribute("data-requiremodule"),context=contexts[node.getAttribute("data-requirecontext")]),context?(context.defQueue.push([name,deps,callback]),context.defQueueMap[name]=!0
):globalDefQueue.push([name,deps,callback])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}function newContext(contextName){var inCheckLoaded,Module,context,handlers,checkLoadedTimeoutId,config={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},registry={},enabledRegistry={},undefEvents={},defQueue=[],defined={},urlFetched={},bundlesMap={},requireCounter=1,unnormalizedCounter=1;function normalize(name,lastIndex,applyMap){var mapValue,nameParts,i,j,nameSegment,foundMap,foundI,foundStarMap,starI,baseParts=lastIndex&&lastIndex.split("/"),map=config.map,starMap=map&&map["*"];if(name&&(lastIndex=(
name=name.split("/")).length-1,config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])&&(name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,"")),"."===name[0].charAt(0)&&baseParts&&(name=baseParts.slice(0,baseParts.length-1).concat(name)),function(ary){for(var part,i=0;i<ary.length;i++)"."===(part=ary[i])?(ary.splice(i,1),--i):".."===part&&(0===i||1===i&&".."===ary[2]||".."===ary[i-1]||0<i&&(ary.splice(i-1,2),i-=2))}(name),name=name.join("/")),applyMap&&map&&(baseParts||starMap)){outerLoop:for(i=(nameParts=name.split("/")).length;0<i;--i){if(nameSegment=nameParts.slice(0,i).join("/"),baseParts)for(j=baseParts.length;0<j;--j)if(mapValue=(
mapValue=getOwn(map,baseParts.slice(0,j).join("/")))&&getOwn(mapValue,nameSegment)){foundMap=mapValue,foundI=i;break outerLoop}!foundStarMap&&starMap&&getOwn(starMap,nameSegment)&&(foundStarMap=getOwn(starMap,nameSegment),starI=i)}!foundMap&&foundStarMap&&(foundMap=foundStarMap,foundI=starI),foundMap&&(nameParts.splice(0,foundI,foundMap),name=nameParts.join("/"))}return getOwn(config.pkgs,name)||name}function removeScript(name){isBrowser&&each(scripts(),function(scriptNode){if(scriptNode.getAttribute("data-requiremodule")===name&&scriptNode.getAttribute("data-requirecontext")===context.contextName)return scriptNode.parentNode.removeChild(scriptNode),!0})}
function hasPathFallback(id){var pathConfig=getOwn(config.paths,id);return pathConfig&&isArray(pathConfig)&&1<pathConfig.length&&(pathConfig.shift(),context.require.undef(id),context.makeRequire(null,{skipMap:!0})([id]),1)}function splitPrefix(name){var prefix,index=name?name.indexOf("!"):-1;return-1<index&&(prefix=name.substring(0,index),name=name.substring(index+1,name.length)),[prefix,name]}function makeModuleMap(name,parentModuleMap,suffix,applyMap){var url,pluginModule,nameParts,prefix=null,parentName=parentModuleMap?parentModuleMap.name:null,originalName=name,isDefine=!0,normalizedName="";return name||(isDefine=!1,name="_@r"+(requireCounter+=1)),
prefix=(nameParts=splitPrefix(name))[0],name=nameParts[1],prefix&&(prefix=normalize(prefix,parentName,applyMap),pluginModule=getOwn(defined,prefix)),name&&(prefix?normalizedName=suffix?name:pluginModule&&pluginModule.normalize?pluginModule.normalize(name,function(name){return normalize(name,parentName,applyMap)}):-1===name.indexOf("!")?normalize(name,parentName,applyMap):name:(prefix=(nameParts=splitPrefix(normalizedName=normalize(name,parentName,applyMap)))[0],normalizedName=nameParts[1],suffix=!0,url=context.nameToUrl(normalizedName))),{prefix:prefix,name:normalizedName,parentMap:parentModuleMap,unnormalized:!!(
suffix=!prefix||pluginModule||suffix?"":"_unnormalized"+(unnormalizedCounter+=1)),url:url,originalName:originalName,isDefine:isDefine,id:(prefix?prefix+"!"+normalizedName:normalizedName)+suffix}}function getModule(depMap){var id=depMap.id;return getOwn(registry,id)||(registry[id]=new context.Module(depMap))}function on(depMap,name,fn){var id=depMap.id,mod=getOwn(registry,id);!hasProp(defined,id)||mod&&!mod.defineEmitComplete?(mod=getModule(depMap)).error&&"error"===name?fn(mod.error):mod.on(name,fn):"defined"===name&&fn(defined[id])}function onError(err,errback){var ids=err.requireModules,notified=!1;errback?errback(err):(each(ids,function(mod){mod=getOwn(
registry,mod);mod&&(mod.error=err,mod.events.error&&(notified=!0,mod.emit("error",err)))}),notified||req.onError(err))}function takeGlobalQueue(){globalDefQueue.length&&(each(globalDefQueue,function(queueItem){var id=queueItem[0];"string"==typeof id&&(context.defQueueMap[id]=!0),defQueue.push(queueItem)}),globalDefQueue=[])}function cleanRegistry(id){delete registry[id],delete enabledRegistry[id]}function checkLoaded(){var usingPathFallback,err=1e3*config.waitSeconds,expired=err&&context.startTime+err<(new Date).getTime(),noLoads=[],reqCalls=[],stillLoading=!1,needCycleCheck=!0;if(!inCheckLoaded){if(inCheckLoaded=!0,eachProp(enabledRegistry,function(mod){
var map=mod.map,modId=map.id;if(mod.enabled&&(map.isDefine||reqCalls.push(mod),!mod.error))if(!mod.inited&&expired)hasPathFallback(modId)?stillLoading=usingPathFallback=!0:(noLoads.push(modId),removeScript(modId));else if(!mod.inited&&mod.fetched&&map.isDefine&&(stillLoading=!0,!map.prefix))return needCycleCheck=!1}),expired&&noLoads.length)return(err=makeError("timeout","Load timeout for modules: "+noLoads,null,noLoads)).contextName=context.contextName,onError(err),0;needCycleCheck&&each(reqCalls,function(mod){!function breakCycle(mod,traced,processed){var id=mod.map.id;mod.error?mod.emit("error",mod.error):(traced[id]=!0,each(mod.depMaps,function(dep,i){
var depId=dep.id,dep=getOwn(registry,depId);!dep||mod.depMatched[i]||processed[depId]||(getOwn(traced,depId)?(mod.defineDep(i,defined[depId]),mod.check()):breakCycle(dep,traced,processed))}),processed[id]=!0)}(mod,{},{})}),expired&&!usingPathFallback||!stillLoading||!isBrowser&&!isWebWorker||checkLoadedTimeoutId||(checkLoadedTimeoutId=setTimeout(function(){checkLoadedTimeoutId=0,checkLoaded()},50)),inCheckLoaded=!1}}function callGetModule(args){hasProp(defined,args[0])||getModule(makeModuleMap(args[0],null,!0)).init(args[1],args[2])}function removeListener(node,func,name,ieName){node.detachEvent&&!isOpera?ieName&&node.detachEvent(ieName,func
):node.removeEventListener(name,func,!1)}function getScriptData(node){node=node.currentTarget||node.srcElement;return removeListener(node,context.onScriptLoad,"load","onreadystatechange"),removeListener(node,context.onScriptError,"error"),{node:node,id:node&&node.getAttribute("data-requiremodule")}}function intakeDefines(){var args;for(takeGlobalQueue();defQueue.length;){if(null===(args=defQueue.shift())[0])return onError(makeError("mismatch","Mismatched anonymous define() module: "+args[args.length-1])),0;callGetModule(args)}context.defQueueMap={}}return handlers={require:function(mod){return mod.require||(mod.require=context.makeRequire(mod.map))},
exports:function(mod){if(mod.usingExports=!0,mod.map.isDefine)return mod.exports?defined[mod.map.id]=mod.exports:mod.exports=defined[mod.map.id]={}},module:function(mod){return mod.module||(mod.module={id:mod.map.id,uri:mod.map.url,config:function(){return getOwn(config.config,mod.map.id)||{}},exports:mod.exports||(mod.exports={})})}},(Module=function(map){this.events=getOwn(undefEvents,map.id)||{},this.map=map,this.shim=getOwn(config.shim,map.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0}).prototype={init:function(depMaps,factory,errback,options){options=options||{},this.inited||(this.factory=factory,
errback?this.on("error",errback):this.events.error&&(errback=bind(this,function(err){this.emit("error",err)})),this.depMaps=depMaps&&depMaps.slice(0),this.errback=errback,this.inited=!0,this.ignore=options.ignore,options.enabled||this.enabled?this.enable():this.check())},defineDep:function(i,depExports){this.depMatched[i]||(this.depMatched[i]=!0,--this.depCount,this.depExports[i]=depExports)},fetch:function(){if(!this.fetched){this.fetched=!0,context.startTime=(new Date).getTime();var map=this.map;if(!this.shim)return map.prefix?this.callPlugin():this.load();context.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){
return map.prefix?this.callPlugin():this.load()}))}},load:function(){var url=this.map.url;urlFetched[url]||(urlFetched[url]=!0,context.load(this.map.id,url))},check:function(){if(this.enabled&&!this.enabling){var err,cjsModule,resLoadMaps,id=this.map.id,depExports=this.depExports,exports=this.exports,factory=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(factory)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{exports=context.execCb(id,factory,depExports,exports)}catch(e){err=e}else exports=context.execCb(id,factory,
depExports,exports);if(this.map.isDefine&&void 0===exports&&((cjsModule=this.module)?exports=cjsModule.exports:this.usingExports&&(exports=this.exports)),err)return err.requireMap=this.map,err.requireModules=this.map.isDefine?[this.map.id]:null,err.requireType=this.map.isDefine?"define":"require",onError(this.error=err)}else exports=factory;this.exports=exports,this.map.isDefine&&!this.ignore&&(defined[id]=exports,req.onResourceLoad&&(resLoadMaps=[],each(this.depMaps,function(depMap){resLoadMaps.push(depMap.normalizedMap||depMap)}),req.onResourceLoad(context,this.map,resLoadMaps))),cleanRegistry(id),this.defined=!0}this.defining=!1,
this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(context.defQueueMap,id)||this.fetch()}},callPlugin:function(){var map=this.map,id=map.id,pluginMap=makeModuleMap(map.prefix);this.depMaps.push(pluginMap),on(pluginMap,"defined",bind(this,function(plugin){var load,normalizedMap,bundleId=getOwn(bundlesMap,this.map.id),normalizedMod=this.map.name,parentName=this.map.parentMap?this.map.parentMap.name:null,localRequire=context.makeRequire(map.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(plugin.normalize&&(normalizedMod=plugin.normalize(normalizedMod,function(
name){return normalize(name,parentName,!0)})||""),on(normalizedMap=makeModuleMap(map.prefix+"!"+normalizedMod,this.map.parentMap,!0),"defined",bind(this,function(value){this.map.normalizedMap=normalizedMap,this.init([],function(){return value},null,{enabled:!0,ignore:!0})})),void((normalizedMod=getOwn(registry,normalizedMap.id))&&(this.depMaps.push(normalizedMap),this.events.error&&normalizedMod.on("error",bind(this,function(err){this.emit("error",err)})),normalizedMod.enable()))):bundleId?(this.map.url=context.nameToUrl(bundleId),void this.load()):((load=bind(this,function(value){this.init([],function(){return value},null,{enabled:!0})})).error=bind(this,
function(err){this.inited=!0,(this.error=err).requireModules=[id],eachProp(registry,function(mod){0===mod.map.id.indexOf(id+"_unnormalized")&&cleanRegistry(mod.map.id)}),onError(err)}),load.fromText=bind(this,function(text,textAlt){var moduleName=map.name,moduleMap=makeModuleMap(moduleName),hasInteractive=useInteractive;textAlt&&(text=textAlt),hasInteractive&&(useInteractive=!1),getModule(moduleMap),hasProp(config.config,id)&&(config.config[moduleName]=config.config[id]);try{req.exec(text)}catch(e){return onError(makeError("fromtexteval","fromText eval for "+id+" failed: "+e,e,[id]))}hasInteractive&&(useInteractive=!0),this.depMaps.push(moduleMap),
context.completeLoad(moduleName),localRequire([moduleName],load)}),void plugin.load(map.name,localRequire,load,config))})),context.enable(pluginMap,this),this.pluginMaps[pluginMap.id]=pluginMap},enable:function(){(enabledRegistry[this.map.id]=this).enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(depMap,i){var id,mod;if("string"==typeof depMap){if(depMap=makeModuleMap(depMap,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[i]=depMap,mod=getOwn(handlers,depMap.id))return void(this.depExports[i]=mod(this));this.depCount+=1,on(depMap,"defined",bind(this,function(depExports){this.undefed||(this.defineDep(i,depExports),
this.check())})),this.errback?on(depMap,"error",bind(this,this.errback)):this.events.error&&on(depMap,"error",bind(this,function(err){this.emit("error",err)}))}id=depMap.id,mod=registry[id],hasProp(handlers,id)||!mod||mod.enabled||context.enable(depMap,this)})),eachProp(this.pluginMaps,bind(this,function(pluginMap){var mod=getOwn(registry,pluginMap.id);mod&&!mod.enabled&&context.enable(pluginMap,this)})),this.enabling=!1,this.check()},on:function(name,cb){(this.events[name]||(this.events[name]=[])).push(cb)},emit:function(name,evt){each(this.events[name],function(cb){cb(evt)}),"error"===name&&delete this.events[name]}},(context={config:config,
contextName:contextName,registry:registry,defined:defined,urlFetched:urlFetched,defQueue:defQueue,defQueueMap:{},Module:Module,makeModuleMap:makeModuleMap,nextTick:req.nextTick,onError:onError,configure:function(cfg){var urlArgs;cfg.baseUrl&&"/"!==cfg.baseUrl.charAt(cfg.baseUrl.length-1)&&(cfg.baseUrl+="/"),"string"==typeof cfg.urlArgs&&(urlArgs=cfg.urlArgs,cfg.urlArgs=function(id,url){return(-1===url.indexOf("?")?"?":"&")+urlArgs});var shim=config.shim,objs={paths:!0,bundles:!0,config:!0,map:!0};eachProp(cfg,function(value,prop){objs[prop]?(config[prop]||(config[prop]={}),mixin(config[prop],value,!0,!0)):config[prop]=value}),cfg.bundles&&eachProp(
cfg.bundles,function(value,prop){each(value,function(v){v!==prop&&(bundlesMap[v]=prop)})}),cfg.shim&&(eachProp(cfg.shim,function(value,id){isArray(value)&&(value={deps:value}),!value.exports&&!value.init||value.exportsFn||(value.exportsFn=context.makeShimExports(value)),shim[id]=value}),config.shim=shim),cfg.packages&&each(cfg.packages,function(pkgObj){var name=(pkgObj="string"==typeof pkgObj?{name:pkgObj}:pkgObj).name;pkgObj.location&&(config.paths[name]=pkgObj.location),config.pkgs[name]=pkgObj.name+"/"+(pkgObj.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(registry,function(mod,id){mod.inited||mod.map.unnormalized||(
mod.map=makeModuleMap(id,null,!0))}),(cfg.deps||cfg.callback)&&context.require(cfg.deps||[],cfg.callback)},makeShimExports:function(value){return function(){var ret;return value.init&&(ret=value.init.apply(global,arguments)),ret||value.exports&&getGlobal(value.exports)}},makeRequire:function(relMap,options){function localRequire(deps,callback,errback){var id,requireMod;return options.enableBuildCallback&&callback&&isFunction(callback)&&(callback.__requireJsBuild=!0),"string"==typeof deps?isFunction(callback)?onError(makeError("requireargs","Invalid require call"),errback):relMap&&hasProp(handlers,deps)?handlers[deps](registry[relMap.id]):req.get?req.get(
context,deps,relMap,localRequire):(id=makeModuleMap(deps,relMap,!1,!0).id,hasProp(defined,id)?defined[id]:onError(makeError("notloaded",'Module name "'+id+'" has not been loaded yet for context: '+contextName+(relMap?"":". Use require([])")))):(intakeDefines(),context.nextTick(function(){intakeDefines(),(requireMod=getModule(makeModuleMap(null,relMap))).skipMap=options.skipMap,requireMod.init(deps,callback,errback,{enabled:!0}),checkLoaded()}),localRequire)}return options=options||{},mixin(localRequire,{isBrowser:isBrowser,toUrl:function(moduleNamePlusExt){var ext,index=moduleNamePlusExt.lastIndexOf("."),segment=moduleNamePlusExt.split("/")[0]
;return-1!==index&&(!("."===segment||".."===segment)||1<index)&&(ext=moduleNamePlusExt.substring(index,moduleNamePlusExt.length),moduleNamePlusExt=moduleNamePlusExt.substring(0,index)),context.nameToUrl(normalize(moduleNamePlusExt,relMap&&relMap.id,!0),ext,!0)},defined:function(id){return hasProp(defined,makeModuleMap(id,relMap,!1,!0).id)},specified:function(id){return id=makeModuleMap(id,relMap,!1,!0).id,hasProp(defined,id)||hasProp(registry,id)}}),relMap||(localRequire.undef=function(id){takeGlobalQueue();var map=makeModuleMap(id,relMap,!0),mod=getOwn(registry,id);mod.undefed=!0,removeScript(id),delete defined[id],delete urlFetched[map.url],
delete undefEvents[id],eachReverse(defQueue,function(args,i){args[0]===id&&defQueue.splice(i,1)}),delete context.defQueueMap[id],mod&&(mod.events.defined&&(undefEvents[id]=mod.events),cleanRegistry(id))}),localRequire},enable:function(depMap){getOwn(registry,depMap.id)&&getModule(depMap).enable()},completeLoad:function(moduleName){var found,args,mod,shim=getOwn(config.shim,moduleName)||{},shExports=shim.exports;for(takeGlobalQueue();defQueue.length;){if(null===(args=defQueue.shift())[0]){if(args[0]=moduleName,found)break;found=!0}else args[0]===moduleName&&(found=!0);callGetModule(args)}if(context.defQueueMap={},mod=getOwn(registry,moduleName),
!found&&!hasProp(defined,moduleName)&&mod&&!mod.inited){if(!(!config.enforceDefine||shExports&&getGlobal(shExports)))return hasPathFallback(moduleName)?void 0:onError(makeError("nodefine","No define call for "+moduleName,null,[moduleName]));callGetModule([moduleName,shim.deps||[],shim.exportsFn])}checkLoaded()},nameToUrl:function(moduleName,ext,skipExt){var paths,syms,i,url,parentPath,bundleId=getOwn(config.pkgs,moduleName);if(bundleId&&(moduleName=bundleId),bundleId=getOwn(bundlesMap,moduleName))return context.nameToUrl(bundleId,ext,skipExt);if(req.jsExtRegExp.test(moduleName))url=moduleName+(ext||"");else{for(paths=config.paths,i=(syms=moduleName.split("/"
)).length;0<i;--i)if(parentPath=getOwn(paths,syms.slice(0,i).join("/"))){isArray(parentPath)&&(parentPath=parentPath[0]),syms.splice(0,i,parentPath);break}url=syms.join("/"),url=("/"===(url+=ext||(/^data\:|^blob\:|\?/.test(url)||skipExt?"":".js")).charAt(0)||url.match(/^[\w\+\.\-]+:/)?"":config.baseUrl)+url}return config.urlArgs&&!/^blob\:/.test(url)?url+config.urlArgs(moduleName,url):url},load:function(id,url){req.load(context,id,url)},execCb:function(name,callback,args,exports){return callback.apply(exports,args)},onScriptLoad:function(data){"load"!==data.type&&!readyRegExp.test((data.currentTarget||data.srcElement).readyState)||(interactiveScript=null,
data=getScriptData(data),context.completeLoad(data.id))},onScriptError:function(evt){var data=getScriptData(evt);if(!hasPathFallback(data.id)){var parents=[];return eachProp(registry,function(value,key){0!==key.indexOf("_@r")&&each(value.depMaps,function(depMap){if(depMap.id===data.id)return parents.push(key),!0})}),onError(makeError("scripterror",'Script error for "'+data.id+(parents.length?'", needed by: '+parents.join(", "):'"'),evt,[data.id]))}}}).require=context.makeRequire(),context}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState||eachReverse(scripts(),function(script){if(
"interactive"===script.readyState)return interactiveScript=script}),interactiveScript}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),define("lib/require",function(){}),define("text",["module"],function(module){"use strict";var fs,Cc,Ci,xpcIsWindows,progIds=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],xmlRegExp=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,bodyRegExp=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,hasLocation="undefined"!=typeof location&&location.href,defaultProtocol=hasLocation&&location.protocol&&location.protocol.replace(/\:/,""),defaultHostName=hasLocation&&location.hostname,defaultPort=hasLocation&&(
location.port||void 0),buildMap={},masterConfig=module.config&&module.config()||{},text={version:"2.0.10",strip:function(content){var matches;return content?(matches=(content=content.replace(xmlRegExp,"")).match(bodyRegExp))&&(content=matches[1]):content="",content},jsEscape:function(content){return content.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:masterConfig.createXhr||function(){var xhr,i,progId;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if(
"undefined"!=typeof ActiveXObject)for(i=0;i<3;i+=1){progId=progIds[i];try{xhr=new ActiveXObject(progId)}catch(e){}if(xhr){progIds=[progId];break}}return xhr},parseName:function(temp){var modName,ext,strip=!1,index=temp.indexOf("."),isRelative=0===temp.indexOf("./")||0===temp.indexOf("../");return-1!==index&&(!isRelative||1<index)?(modName=temp.substring(0,index),ext=temp.substring(index+1,temp.length)):modName=temp,-1!==(index=(temp=ext||modName).indexOf("!"))&&(strip="strip"===temp.substring(index+1),temp=temp.substring(0,index),ext?ext=temp:modName=temp),{moduleName:modName,ext:ext,strip:strip}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(
uHostName,protocol,hostname,port){var uProtocol,uPort=text.xdRegExp.exec(uHostName);return!uPort||(uProtocol=uPort[2],uPort=(uHostName=(uHostName=uPort[3]).split(":"))[1],uHostName=uHostName[0],!(uProtocol&&uProtocol!==protocol||uHostName&&uHostName.toLowerCase()!==hostname.toLowerCase()||(uPort||uHostName)&&uPort!==port))},finishLoad:function(name,strip,content,onLoad){content=strip?text.strip(content):content,masterConfig.isBuild&&(buildMap[name]=content),onLoad(content)},load:function(name,req,onLoad,useXhr){var parsed,nonStripName,url;!useXhr.isBuild||useXhr.inlineText?(masterConfig.isBuild=useXhr.isBuild,nonStripName=(parsed=text.parseName(name)
).moduleName+(parsed.ext?"."+parsed.ext:""),url=req.toUrl(nonStripName),useXhr=masterConfig.useXhr||text.useXhr,0!==url.indexOf("empty:")?!hasLocation||useXhr(url,defaultProtocol,defaultHostName,defaultPort)?text.get(url,function(content){text.finishLoad(name,parsed.strip,content,onLoad)},function(err){onLoad.error&&onLoad.error(err)}):req([nonStripName],function(content){text.finishLoad(parsed.moduleName+"."+parsed.ext,parsed.strip,content,onLoad)}):onLoad()):onLoad()},write:function(pluginName,moduleName,write,config){var content;buildMap.hasOwnProperty(moduleName)&&(content=text.jsEscape(buildMap[moduleName]),write.asModule(pluginName+"!"+moduleName,
"define(function () { return '"+content+"';});\n"))},writeFile:function(pluginName,extPart,req,write,config){var parsed=text.parseName(extPart),extPart=parsed.ext?"."+parsed.ext:"",nonStripName=parsed.moduleName+extPart,fileName=req.toUrl(parsed.moduleName+extPart)+".js";text.load(nonStripName,req,function(value){function textWrite(contents){return write(fileName,contents)}textWrite.asModule=function(moduleName,contents){return write.asModule(moduleName,fileName,contents)},text.write(pluginName,nonStripName,textWrite,config)},config)}}
;return"node"===masterConfig.env||!masterConfig.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(fs=require.nodeRequire("fs"),text.get=function(url,callback,errback){try{var file=fs.readFileSync(url,"utf8");0===file.indexOf("\ufeff")&&(file=file.substring(1)),callback(file)}catch(e){errback(e)}}):"xhr"===masterConfig.env||!masterConfig.env&&text.createXhr()?text.get=function(url,callback,errback,headers){var header,xhr=text.createXhr();if(xhr.open("GET",url,!0),headers)for(header in headers)headers.hasOwnProperty(header)&&xhr.setRequestHeader(header.toLowerCase(),headers[header])
;masterConfig.onXhr&&masterConfig.onXhr(xhr,url),xhr.onreadystatechange=function(evt){var err;4===xhr.readyState&&(399<(err=xhr.status)&&err<600?((err=new Error(url+" HTTP status: "+err)).xhr=xhr,errback(err)):callback(xhr.responseText),masterConfig.onXhrComplete&&masterConfig.onXhrComplete(xhr,url))},xhr.send(null)}:"rhino"===masterConfig.env||!masterConfig.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?text.get=function(file,callback){var stringBuffer,line,file=new java.io.File(file),lineSeparator=java.lang.System.getProperty("line.separator"),input=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file),
"utf-8")),content="";try{for(stringBuffer=new java.lang.StringBuffer,(line=input.readLine())&&line.length()&&65279===line.charAt(0)&&(line=line.substring(1)),null!==line&&stringBuffer.append(line);null!==(line=input.readLine());)stringBuffer.append(lineSeparator),stringBuffer.append(line);content=String(stringBuffer.toString())}finally{input.close()}callback(content)}:("xpconnect"===masterConfig.env||!masterConfig.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(Cc=Components.classes,Ci=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),xpcIsWindows="@mozilla.org/windows-registry-key;1"in Cc
,text.get=function(url,callback){var inStream,convertStream,fileObj,readData={};xpcIsWindows&&(url=url.replace(/\//g,"\\")),fileObj=new FileUtils.File(url);try{(inStream=Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream)).init(fileObj,1,0,!1),(convertStream=Cc["@mozilla.org/intl/converter-input-stream;1"].createInstance(Ci.nsIConverterInputStream)).init(inStream,"utf-8",inStream.available(),Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),convertStream.readString(inStream.available(),readData),convertStream.close(),inStream.close(),callback(readData.value)}catch(e){throw new Error((fileObj&&fileObj.path||"")+": "+e)
}}),text}),define("json",["text"],function(text){var CACHE_BUST_QUERY_PARAM="bust",CACHE_BUST_FLAG="!bust",jsonParse="undefined"!=typeof JSON&&"function"==typeof JSON.parse?JSON.parse:function(val){return eval("("+val+")")},buildMap={};function cacheBust(url){return url=url.replace(CACHE_BUST_FLAG,""),(url+=url.indexOf("?")<0?"?":"&")+CACHE_BUST_QUERY_PARAM+"="+Math.round(2147483647*Math.random())}return{load:function(name,req,onLoad,config){!config.isBuild||!1!==config.inlineJSON&&-1===name.indexOf(CACHE_BUST_QUERY_PARAM+"=")?text.get(req.toUrl(name),function(data){config.isBuild?(buildMap[name]=data,onLoad(data)):onLoad(jsonParse(data))},onLoad.error,{
accept:"application/json"}):onLoad(null)},normalize:function(name,normalize){return-1!==name.indexOf(CACHE_BUST_FLAG)&&(name=cacheBust(name)),normalize(name)},write:function(pluginName,moduleName,write){moduleName in buildMap&&write('define("'+pluginName+"!"+moduleName+'", function(){ return '+buildMap[moduleName]+";});\n")}}}),define("css",[],function(){if("undefined"==typeof window)return{load:function(n,r,load){load()}};var head=document.getElementsByTagName("head")[0],cssAPI=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,
useImportLoad=!1,useOnload=!0;cssAPI[1]||cssAPI[7]?useImportLoad=parseInt(cssAPI[1])<6||parseInt(cssAPI[7])<=9:cssAPI[2]||cssAPI[8]?useOnload=!1:cssAPI[4]&&(useImportLoad=parseInt(cssAPI[4])<18);function createStyle(){curStyle=document.createElement("style"),head.appendChild(curStyle),curSheet=curStyle.styleSheet||curStyle.sheet}function createIeLoad(url){32==++ieCnt&&(createStyle(),ieCnt=0),curSheet.addImport(url),curStyle.onload=function(){processIeLoad()}}var curStyle,curSheet,ieCurCallback,cssAPI={pluginBuilder:"./css-builder"},ieCnt=0,ieLoads=[],processIeLoad=function(){ieCurCallback();var nextLoad=ieLoads.shift();nextLoad?(ieCurCallback=nextLoad[1],
createIeLoad(nextLoad[0])):ieCurCallback=null};return cssAPI.normalize=function(name,normalize){return".css"==name.substr(name.length-4,4)&&(name=name.substr(0,name.length-4)),normalize(name)},cssAPI.load=function(cssId,req,load,config){(useImportLoad?function(url,callback){var loadInterval;curSheet&&curSheet.addImport||createStyle(),curSheet&&curSheet.addImport?ieCurCallback?ieLoads.push([url,callback]):(createIeLoad(url),ieCurCallback=callback):(curStyle.textContent='@import "'+url+'";',loadInterval=setInterval(function(){try{curStyle.sheet.cssRules,clearInterval(loadInterval),callback()}catch(e){}},10))}:function(url,callback){var loadInterval,
link=document.createElement("link");link.type="text/css",link.rel="stylesheet",useOnload?link.onload=function(){link.onload=function(){},setTimeout(callback,7)}:loadInterval=setInterval(function(){for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].href==link.href)return clearInterval(loadInterval),callback()}},10),link.href=url,head.appendChild(link)})(req.toUrl(cssId+".css"),load)},cssAPI});var Handlebars=function(){var __module4__=function(){"use strict";function SafeString(string){this.string=string}return SafeString.prototype.toString=function(){return""+this.string},SafeString}(),__module3__=function(){"use strict"
;var __exports__={},SafeString=__module4__,escape={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},badChars=/[&<>"'`]/g,possible=/[&<>"'`]/;function escapeChar(chr){return escape[chr]||"&amp;"}__exports__.extend=function(obj,value){for(var key in value)Object.prototype.hasOwnProperty.call(value,key)&&(obj[key]=value[key])};var toString=Object.prototype.toString;__exports__.toString=toString;var isFunction=function(value){return"function"==typeof value};isFunction(/x/)&&(isFunction=function(value){return"function"==typeof value&&"[object Function]"===toString.call(value)}),__exports__.isFunction=isFunction
;var isArray=Array.isArray||function(value){return!(!value||"object"!=typeof value)&&"[object Array]"===toString.call(value)};return __exports__.isArray=isArray,__exports__.escapeExpression=function(string){return string instanceof SafeString?string.toString():string||0===string?(string=""+string,possible.test(string)?string.replace(badChars,escapeChar):string):""},__exports__.isEmpty=function(value){return!value&&0!==value||!(!isArray(value)||0!==value.length)},__exports__}(),__module5__=function(){"use strict";var errorProps=["description","fileName","lineNumber","message","name","number","stack"];function Exception(message,node){var line
;node&&node.firstLine&&(message+=" - "+(line=node.firstLine)+":"+node.firstColumn);for(var tmp=Error.prototype.constructor.call(this,message),idx=0;idx<errorProps.length;idx++)this[errorProps[idx]]=tmp[errorProps[idx]];line&&(this.lineNumber=line,this.column=node.firstColumn)}return Exception.prototype=new Error,Exception}(),__module2__=function(){"use strict";var __exports__={},Utils=__module3__,Exception=__module5__;__exports__.VERSION="1.3.0";__exports__.COMPILER_REVISION=4;__exports__.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};var isArray=Utils.isArray,isFunction=Utils.isFunction,toString=Utils.toString
;function HandlebarsEnvironment(helpers,partials){var instance;this.helpers=helpers||{},this.partials=partials||{},(instance=this).registerHelper("helperMissing",function(arg){if(2!==arguments.length)throw new Exception("Missing helper: '"+arg+"'")}),instance.registerHelper("blockHelperMissing",function(context,options){var inverse=options.inverse||function(){},fn=options.fn;return isFunction(context)&&(context=context.call(this)),!0===context?fn(this):!1===context||null==context?inverse(this):isArray(context)?0<context.length?instance.helpers.each(context,options):inverse(this):fn(context)}),instance.registerHelper("each",function(context,options){var data,
fn=options.fn,inverse=options.inverse,i=0,ret="";if(isFunction(context)&&(context=context.call(this)),options.data&&(data=createFrame(options.data)),context&&"object"==typeof context)if(isArray(context))for(var j=context.length;i<j;i++)data&&(data.index=i,data.first=0===i,data.last=i===context.length-1),ret+=fn(context[i],{data:data});else for(var key in context)context.hasOwnProperty(key)&&(data&&(data.key=key,data.index=i,data.first=0===i),ret+=fn(context[key],{data:data}),i++);return 0===i&&(ret=inverse(this)),ret}),instance.registerHelper("if",function(conditional,options){return isFunction(conditional)&&(conditional=conditional.call(this)),
!options.hash.includeZero&&!conditional||Utils.isEmpty(conditional)?options.inverse(this):options.fn(this)}),instance.registerHelper("unless",function(conditional,options){return instance.helpers.if.call(this,conditional,{fn:options.inverse,inverse:options.fn,hash:options.hash})}),instance.registerHelper("with",function(context,options){if(isFunction(context)&&(context=context.call(this)),!Utils.isEmpty(context))return options.fn(context)}),instance.registerHelper("log",function(context,level){level=level.data&&null!=level.data.level?parseInt(level.data.level,10):1;instance.log(level,context)})}(__exports__.HandlebarsEnvironment=HandlebarsEnvironment
).prototype={constructor:HandlebarsEnvironment,logger:logger,log:log,registerHelper:function(name,fn,inverse){if("[object Object]"===toString.call(name)){if(inverse||fn)throw new Exception("Arg not supported with multiple helpers");Utils.extend(this.helpers,name)}else inverse&&(fn.not=inverse),this.helpers[name]=fn},registerPartial:function(name,str){"[object Object]"===toString.call(name)?Utils.extend(this.partials,name):this.partials[name]=str}};var logger={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(method,obj){logger.level<=method&&(method=logger.methodMap[method],
"undefined"!=typeof console&&console[method]&&console[method].call(console,obj))}};function log(level,obj){logger.log(level,obj)}__exports__.logger=logger,__exports__.log=log;var createFrame=function(object){var obj={};return Utils.extend(obj,object),obj};return __exports__.createFrame=createFrame,__exports__}(),__module6__=function(){"use strict";var __exports__={},Utils=__module3__,Exception=__module5__,COMPILER_REVISION=__module2__.COMPILER_REVISION,REVISION_CHANGES=__module2__.REVISION_CHANGES;function program(i,fn,data){function prog(context,options){return fn(context,(options=options||{}).data||data)}return prog.program=i,prog.depth=0,prog}
return __exports__.checkRevision=function(compilerInfo){if((compilerVersions=compilerInfo&&compilerInfo[0]||1)!==COMPILER_REVISION){if(compilerVersions<COMPILER_REVISION){var runtimeVersions=REVISION_CHANGES[COMPILER_REVISION],compilerVersions=REVISION_CHANGES[compilerVersions];throw new Exception("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").")}throw new Exception(
"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+compilerInfo[1]+").")}},__exports__.template=function(templateSpec,env){if(!env)throw new Exception("No environment passed to template");var container={escapeExpression:Utils.escapeExpression,invokePartial:function(partial,name,context,options,partials,data){var result=env.VM.invokePartial.apply(this,arguments);if(null!=result)return result;if(env.compile){options={helpers:options,partials:partials,data:data};return partials[name]=env.compile(partial,{data:void 0!==data},env),partials[name](context,options)}
throw new Exception("The partial "+name+" could not be compiled when running in runtime-only mode")},programs:[],program:function(i,fn,data){var programWrapper=this.programs[i];return programWrapper=data?program(i,fn,data):programWrapper||(this.programs[i]=program(i,fn))},merge:function(param,common){var ret=param||common;return param&&common&&param!==common&&(ret={},Utils.extend(ret,common),Utils.extend(ret,param)),ret},programWithDepth:env.VM.programWithDepth,noop:env.VM.noop,compilerInfo:null};return function(context,options){var helpers,namespace=(options=options||{}).partial?options:env;options.partial||(helpers=options.helpers,result=options.partials)
;var result=templateSpec.call(container,namespace,context,helpers,result,options.data);return options.partial||env.VM.checkRevision(container.compilerInfo),result}},__exports__.programWithDepth=function(i,fn,data){function prog(context,options){return options=options||{},fn.apply(this,[context,options.data||data].concat(args))}var args=Array.prototype.slice.call(arguments,3);return prog.program=i,prog.depth=args.length,prog},__exports__.program=program,__exports__.invokePartial=function(partial,name,context,helpers,partials,options){if(options={partial:!0,helpers:helpers,partials:partials,data:options},void 0===partial)throw new Exception(
"The partial "+name+" could not be found");if(partial instanceof Function)return partial(context,options)},__exports__.noop=function(){return""},__exports__}(),__module1__=function(){"use strict";function create(){var hb=new base.HandlebarsEnvironment;return Utils.extend(hb,base),hb.SafeString=SafeString,hb.Exception=Exception,hb.Utils=Utils,hb.VM=runtime,hb.template=function(spec){return runtime.template(spec,hb)},hb}var base=__module2__,SafeString=__module4__,Exception=__module5__,Utils=__module3__,runtime=__module6__,Handlebars=create();return Handlebars.create=create,Handlebars}(),__module7__=function(){"use strict";var Exception=__module5__
;function LocationInfo(locInfo){locInfo=locInfo||{},this.firstLine=locInfo.first_line,this.firstColumn=locInfo.first_column,this.lastColumn=locInfo.last_column,this.lastLine=locInfo.last_line}var AST={ProgramNode:function(inverseLocationInfo,inverseStrip,inverse,locInfo){3===arguments.length?(locInfo=inverse,inverse=null):2===arguments.length&&(locInfo=inverseStrip,inverseStrip=null),LocationInfo.call(this,locInfo),this.type="program",this.statements=inverseLocationInfo,this.strip={},inverse?((inverseLocationInfo=inverse[0])?(inverseLocationInfo={first_line:inverseLocationInfo.firstLine,last_line:inverseLocationInfo.lastLine,
last_column:inverseLocationInfo.lastColumn,first_column:inverseLocationInfo.firstColumn},this.inverse=new AST.ProgramNode(inverse,inverseStrip,inverseLocationInfo)):this.inverse=new AST.ProgramNode(inverse,inverseStrip),this.strip.right=inverseStrip.left):inverseStrip&&(this.strip.left=inverseStrip.right)},MustacheNode:function(rawParams,hash,open,escapeFlag,locInfo){LocationInfo.call(this,locInfo),this.type="mustache",this.strip=escapeFlag,null!=open&&open.charAt?(escapeFlag=open.charAt(3)||open.charAt(2),this.escaped="{"!==escapeFlag&&"&"!==escapeFlag):this.escaped=!!open,rawParams instanceof AST.SexprNode?this.sexpr=rawParams:this.sexpr=new AST.SexprNode(
rawParams,hash),this.sexpr.isRoot=!0,this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(params,hash,eligibleHelper){LocationInfo.call(this,eligibleHelper),this.type="sexpr",this.hash=hash;eligibleHelper=this.id=params[0],params=this.params=params.slice(1),eligibleHelper=this.eligibleHelper=eligibleHelper.isSimple;this.isHelper=eligibleHelper&&(params.length||hash)},PartialNode:function(partialName,context,strip,locInfo){LocationInfo.call(this,locInfo),this.type="partial",this.partialName=partialName,this.context=context,
this.strip=strip},BlockNode:function(mustache,program,inverse,close,locInfo){if(LocationInfo.call(this,locInfo),mustache.sexpr.id.original!==close.path.original)throw new Exception(mustache.sexpr.id.original+" doesn't match "+close.path.original,this);this.type="block",this.mustache=mustache,this.program=program,this.inverse=inverse,this.strip={left:mustache.strip.left,right:close.strip.right},(program||inverse).strip.left=mustache.strip.right,(inverse||program).strip.right=close.strip.left,inverse&&!program&&(this.isInverse=!0)},ContentNode:function(string,locInfo){LocationInfo.call(this,locInfo),this.type="content",this.string=string},HashNode:function(
pairs,locInfo){LocationInfo.call(this,locInfo),this.type="hash",this.pairs=pairs},IdNode:function(parts,locInfo){LocationInfo.call(this,locInfo),this.type="ID";for(var original="",dig=[],depth=0,i=0,l=parts.length;i<l;i++){var part=parts[i].part;if(original+=(parts[i].separator||"")+part,".."===part||"."===part||"this"===part){if(0<dig.length)throw new Exception("Invalid path: "+original,this);".."===part?depth++:this.isScoped=!0}else dig.push(part)}this.original=original,this.parts=dig,this.string=dig.join("."),this.depth=depth,this.isSimple=1===parts.length&&!this.isScoped&&0===depth,this.stringModeValue=this.string},PartialNameNode:function(name,locInfo){
LocationInfo.call(this,locInfo),this.type="PARTIAL_NAME",this.name=name.original},DataNode:function(id,locInfo){LocationInfo.call(this,locInfo),this.type="DATA",this.id=id},StringNode:function(string,locInfo){LocationInfo.call(this,locInfo),this.type="STRING",this.original=this.string=this.stringModeValue=string},IntegerNode:function(integer,locInfo){LocationInfo.call(this,locInfo),this.type="INTEGER",this.original=this.integer=integer,this.stringModeValue=Number(integer)},BooleanNode:function(bool,locInfo){LocationInfo.call(this,locInfo),this.type="BOOLEAN",this.bool=bool,this.stringModeValue="true"===bool},CommentNode:function(comment,locInfo){
LocationInfo.call(this,locInfo),this.type="comment",this.comment=comment}};return AST}(),__module9__=function(){"use strict";var parser,lexer;function stripFlags(open,close){return{left:"~"===open.charAt(2),right:"~"===close.charAt(0)||"~"===close.charAt(1)}}function Parser(){this.yy={}}return parser={trace:function(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,sexpr:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,
sexpr_repetition0:28,sexpr_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,OPEN_SEXPR:35,CLOSE_SEXPR:36,hash:37,hash_repetition_plus0:38,hashSegment:39,ID:40,EQUALS:41,DATA:42,pathSegments:43,SEP:44,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",32:"STRING",33:"INTEGER",34:"BOOLEAN",35:"OPEN_SEXPR",36:"CLOSE_SEXPR",40:"ID",41:"EQUALS",42:"DATA",44:"SEP"},productions_:[0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[
12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,3],[37,1],[39,3],[26,1],[26,1],[26,1],[30,2],[21,1],[43,3],[43,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[38,1],[38,2]],performAction:function(yytext,yyleng,yylineno,yy,yystate,$$){var $0=$$.length-1;switch(yystate){case 1:return new yy.ProgramNode($$[$0-1],this._$);case 2:return new yy.ProgramNode([],this._$);case 3:this.$=new yy.ProgramNode([],$$[$0-1],$$[$0],this._$);break;case 4:this.$=new yy.ProgramNode($$[$0-2],$$[$0-1],$$[$0],this._$);break;case 5:this.$=new yy.ProgramNode($$[$0-1],$$[$0],[],this._$);break;case 6:this.$=new yy.ProgramNode($$[$0],this._$);break;case 7:
case 8:this.$=new yy.ProgramNode([],this._$);break;case 9:this.$=[$$[$0]];break;case 10:$$[$0-1].push($$[$0]),this.$=$$[$0-1];break;case 11:this.$=new yy.BlockNode($$[$0-2],$$[$0-1].inverse,$$[$0-1],$$[$0],this._$);break;case 12:this.$=new yy.BlockNode($$[$0-2],$$[$0-1],$$[$0-1].inverse,$$[$0],this._$);break;case 13:case 14:this.$=$$[$0];break;case 15:this.$=new yy.ContentNode($$[$0],this._$);break;case 16:this.$=new yy.CommentNode($$[$0],this._$);break;case 17:case 18:this.$=new yy.MustacheNode($$[$0-1],null,$$[$0-2],stripFlags($$[$0-2],$$[$0]),this._$);break;case 19:this.$={path:$$[$0-1],strip:stripFlags($$[$0-2],$$[$0])};break;case 20:case 21:
this.$=new yy.MustacheNode($$[$0-1],null,$$[$0-2],stripFlags($$[$0-2],$$[$0]),this._$);break;case 22:this.$=new yy.PartialNode($$[$0-2],$$[$0-1],stripFlags($$[$0-3],$$[$0]),this._$);break;case 23:this.$=stripFlags($$[$0-1],$$[$0]);break;case 24:this.$=new yy.SexprNode([$$[$0-2]].concat($$[$0-1]),$$[$0],this._$);break;case 25:this.$=new yy.SexprNode([$$[$0]],null,this._$);break;case 26:this.$=$$[$0];break;case 27:this.$=new yy.StringNode($$[$0],this._$);break;case 28:this.$=new yy.IntegerNode($$[$0],this._$);break;case 29:this.$=new yy.BooleanNode($$[$0],this._$);break;case 30:this.$=$$[$0];break;case 31:$$[$0-1].isHelper=!0,this.$=$$[$0-1];break;case 32:
this.$=new yy.HashNode($$[$0],this._$);break;case 33:this.$=[$$[$0-2],$$[$0]];break;case 34:this.$=new yy.PartialNameNode($$[$0],this._$);break;case 35:this.$=new yy.PartialNameNode(new yy.StringNode($$[$0],this._$),this._$);break;case 36:this.$=new yy.PartialNameNode(new yy.IntegerNode($$[$0],this._$));break;case 37:this.$=new yy.DataNode($$[$0],this._$);break;case 38:this.$=new yy.IdNode($$[$0],this._$);break;case 39:$$[$0-2].push({part:$$[$0],separator:$$[$0-1]}),this.$=$$[$0-2];break;case 40:this.$=[{part:$$[$0]}];break;case 43:this.$=[];break;case 44:$$[$0-1].push($$[$0]);break;case 47:this.$=[$$[$0]];break;case 48:$$[$0-1].push($$[$0])}},table:[{3:1,
4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],
16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:29,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:30,21:24,30:25,40:[1,28],42:[1,27],43:26},{17:31,21:24,30:25,40:[1,28],42:[1,27],43:26},{21:33,26:32,32:[1,34],33:[1,35],40:[1,28],43:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],
20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,40:[1,28],42:[1,27],43:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,43],24:[2,43],28:43,32:[2,43],33:[2,43],34:[2,43],35:[2,43],36:[2,43],40:[2,43],42:[2,43]},{18:[2,25],24:[2,25],36:[2,25]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],35:[2,38],36:[2,38],40:[2,38],42:[2,38],44:[1,44]},{21:45,40:[1,28],43:26},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],42:[2,40],44:[2,40]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,41],21:50,27:49,40:[1,28],
43:26},{18:[2,34],40:[2,34]},{18:[2,35],40:[2,35]},{18:[2,36],40:[2,36]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,40:[1,28],43:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,45],
21:56,24:[2,45],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:[1,61],36:[2,45],37:55,38:62,39:63,40:[1,64],42:[1,27],43:26},{40:[1,65]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],35:[2,37],36:[2,37],40:[2,37],42:[2,37]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,66]},{18:[2,42]},{18:[1,67]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24],36:[2,24
]},{18:[2,44],24:[2,44],32:[2,44],33:[2,44],34:[2,44],35:[2,44],36:[2,44],40:[2,44],42:[2,44]},{18:[2,46],24:[2,46],36:[2,46]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],35:[2,26],36:[2,26],40:[2,26],42:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],35:[2,27],36:[2,27],40:[2,27],42:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],35:[2,28],36:[2,28],40:[2,28],42:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],35:[2,29],36:[2,29],40:[2,29],42:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],35:[2,30],36:[2,30],40:[2,30],42:[2,30]},{17:68,21:24,30:25,40:[1,28],42:[1,27],43:26},{18:[2,32],24:[2,32],36:[2,32],
39:69,40:[1,70]},{18:[2,47],24:[2,47],36:[2,47],40:[2,47]},{18:[2,40],24:[2,40],32:[2,40],33:[2,40],34:[2,40],35:[2,40],36:[2,40],40:[2,40],41:[1,71],42:[2,40],44:[2,40]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],35:[2,39],36:[2,39],40:[2,39],42:[2,39],44:[2,39]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{36:[1,72]},{18:[2,48],24:[2,48],36:[2,48],40:[2,48]},{41:[1,71]},{21:56,30:60,31:73,32:[1,57],33:[1,58],34:[1,59],35:[1,61],40:[1,28],42:[1,27],43:26},{18:[2,31],24:[2,31],32:[2,31],33:[2,31],34:[2,31],35:[2,31
],36:[2,31],40:[2,31],42:[2,31]},{18:[2,33],24:[2,33],36:[2,33],40:[2,33]}],defaultActions:{3:[2,2],16:[2,1],50:[2,42]},parseError:function(str){throw new Error(str)},parse:function(input){var self=this,stack=[0],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,recovering=0;this.lexer.setInput(input),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===(this.yy.parser=this).lexer.yylloc&&(this.lexer.yylloc={});var yyloc=this.lexer.yylloc;lstack.push(yyloc);var ranges=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var symbol,preErrorSymbol,r,p,newState,
expected,token,yyval={};;){if(r=stack[stack.length-1],void 0===(newState=this.defaultActions[r]||(null==symbol&&(token=void 0,"number"!=typeof(token=self.lexer.lex()||1)&&(token=self.symbols_[token]||token),symbol=token),table[r]&&table[r][symbol]))||!newState.length||!newState[0]){var len="";if(!recovering){for(p in expected=[],table[r])this.terminals_[p]&&2<p&&expected.push("'"+this.terminals_[p]+"'");len=this.lexer.showPosition?"Parse error on line "+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(
1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(len,{text:this.lexer.match,token:this.terminals_[symbol]||symbol,line:this.lexer.yylineno,loc:yyloc,expected:expected})}}if(newState[0]instanceof Array&&1<newState.length)throw new Error("Parse Error: multiple actions possible at state: "+r+", token: "+symbol);switch(newState[0]){case 1:stack.push(symbol),vstack.push(this.lexer.yytext),lstack.push(this.lexer.yylloc),stack.push(newState[1]),symbol=null,preErrorSymbol?(symbol=preErrorSymbol,preErrorSymbol=null):(yyleng=this.lexer.yyleng,yytext=this.lexer.yytext,yylineno=this.lexer.yylineno,yyloc=this.lexer.yylloc,
0<recovering&&recovering--);break;case 2:if(len=this.productions_[newState[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.call(yyval,yytext,yyleng,yylineno,this.yy,newState[1],vstack,lstack)))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(
this.productions_[newState[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0}},lexer=function(){var lexer={EOF:1,parseError:function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},setInput:function(input){return this._input=input,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},
input:function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},unput:function(r){var len=r.length,lines=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len-1),this.offset-=len;var oldLines=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(
this.yylineno-=lines.length-1);r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(20<past.length?"...":"")+past.substr(-20).replace(/\n/g,"")},
upcomingInput:function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(20<next.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},next:function(){if(this.done)return this.EOF;var match,tempMatch,index,token;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length&&(!(tempMatch=this._input.match(this.rules[rules[i]]))||match&&!(tempMatch[0].length>match[0].length)||(match=tempMatch,index=i,this.options.flex));i++);
return match?((token=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=token.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:token?token[token.length-1].length-token[token.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,rules[index],
this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return void 0!==r?r:this.lex()},begin:function(condition){this.conditionStack.push(condition)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(
condition){this.begin(condition)},options:{},performAction:function(yy,yy_,$avoiding_name_collisions){function strip(start,end){return yy_.yytext=yy_.yytext.substr(start,yy_.yyleng-end)}switch($avoiding_name_collisions){case 0:if("\\\\"===yy_.yytext.slice(-2)?(strip(0,1),this.begin("mu")):"\\"===yy_.yytext.slice(-1)?(strip(0,1),this.begin("emu")):this.begin("mu"),yy_.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return strip(0,4),this.popState(),15;case 4:return 35;case 5:return 36;case 6:return 25;case 7:return 16;case 8:return 20;case 9:case 10:return 19;case 11:return 23;case 12:return 22;case 13:this.popState(),
this.begin("com");break;case 14:return strip(3,5),this.popState(),15;case 15:return 22;case 16:return 41;case 17:case 18:return 40;case 19:return 44;case 20:break;case 21:return this.popState(),24;case 22:return this.popState(),18;case 23:return yy_.yytext=strip(1,2).replace(/\\"/g,'"'),32;case 24:return yy_.yytext=strip(1,2).replace(/\\'/g,"'"),32;case 25:return 42;case 26:case 27:return 34;case 28:return 33;case 29:return 40;case 30:return yy_.yytext=strip(1,2),40;case 31:return"INVALID";case 32:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,
/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!1},emu:{rules:[2],
inclusive:!1},com:{rules:[3],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}}};return lexer}(),parser.lexer=lexer,new((Parser.prototype=parser).Parser=Parser)}(),__module8__=function(){"use strict";var __exports__={},parser=__module9__,AST=__module7__;return __exports__.parser=parser,__exports__.parse=function(input){return input.constructor===AST.ProgramNode?input:(parser.yy=AST,parser.parse(input))},__exports__}(),__module10__=function(){"use strict";var __exports__={},Exception=__module5__;function Compiler(){}return(__exports__.Compiler=Compiler).prototype={compiler:Compiler,disassemble:function(){for(var opcode,params,param,opcodes=this.opcodes,
out=[],i=0,l=opcodes.length;i<l;i++)if("DECLARE"===(opcode=opcodes[i]).opcode)out.push("DECLARE "+opcode.name+"="+opcode.value);else{params=[];for(var j=0;j<opcode.args.length;j++)"string"==typeof(param=opcode.args[j])&&(param='"'+param.replace("\n","\\n")+'"'),params.push(param);out.push(opcode.opcode+" "+params.join(" "))}return out.join("\n")},equals:function(other){var len=this.opcodes.length;if(other.opcodes.length!==len)return!1;for(var i=0;i<len;i++){var opcode=this.opcodes[i],otherOpcode=other.opcodes[i];if(opcode.opcode!==otherOpcode.opcode||opcode.args.length!==otherOpcode.args.length)return!1;for(var j=0;j<opcode.args.length;j++)if(
opcode.args[j]!==otherOpcode.args[j])return!1}if(len=this.children.length,other.children.length!==len)return!1;for(i=0;i<len;i++)if(!this.children[i].equals(other.children[i]))return!1;return!0},guid:0,compile:function(program,options){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=options;var knownHelpers=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0},knownHelpers)for(var name in knownHelpers)this.options.knownHelpers[name]=knownHelpers[name];return this.accept(program)},accept:function(ret){var strip=ret.strip||{};return strip.left&&this.opcode(
"strip"),ret=this[ret.type](ret),strip.right&&this.opcode("strip"),ret},program:function(program){for(var statements=program.statements,i=0,l=statements.length;i<l;i++)this.accept(statements[i]);return this.isSimple=1===l,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(guid){var depth,result=(new this.compiler).compile(guid,this.options),guid=this.guid++;this.usePartial=this.usePartial||result.usePartial;for(var i=0,l=(this.children[guid]=result).depths.list.length;i<l;i++)(depth=result.depths.list[i])<2||this.addDepth(depth-1);return guid},block:function(sexpr){var type=sexpr.mustache,program=sexpr.program,
inverse=sexpr.inverse,program=program&&this.compileProgram(program),inverse=inverse&&this.compileProgram(inverse),sexpr=type.sexpr,type=this.classifySexpr(sexpr);"helper"===type?this.helperSexpr(sexpr,program,inverse):"simple"===type?(this.simpleSexpr(sexpr),this.opcode("pushProgram",program),this.opcode("pushProgram",inverse),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousSexpr(sexpr,program,inverse),this.opcode("pushProgram",program),this.opcode("pushProgram",inverse),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(hash){var pair,val,pairs=hash.pairs;this.opcode("pushHash");for(var i=0,
l=pairs.length;i<l;i++)val=(pair=pairs[i])[1],this.options.stringParams?(val.depth&&this.addDepth(val.depth),this.opcode("getContext",val.depth||0),this.opcode("pushStringParam",val.stringModeValue,val.type),"sexpr"===val.type&&this.sexpr(val)):this.accept(val),this.opcode("assignToHash",pair[0]);this.opcode("popHash")},partial:function(partial){var partialName=partial.partialName;this.usePartial=!0,partial.context?this.ID(partial.context):this.opcode("push","depth0"),this.opcode("invokePartial",partialName.name),this.opcode("append")},content:function(content){this.opcode("appendContent",content.string)},mustache:function(mustache){this.sexpr(mustache.sexpr
),mustache.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(isBlock,program,inverse){var id=isBlock.id,name=id.parts[0],isBlock=null!=program||null!=inverse;this.opcode("getContext",id.depth),this.opcode("pushProgram",program),this.opcode("pushProgram",inverse),this.opcode("invokeAmbiguous",name,isBlock)},simpleSexpr:function(id){id=id.id;"DATA"===id.type?this.DATA(id):id.parts.length?this.ID(id):(this.addDepth(id.depth),this.opcode("getContext",id.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(sexpr,params,name){params=this.setupFullMustacheParams(sexpr
,params,name),name=sexpr.id.parts[0];if(this.options.knownHelpers[name])this.opcode("invokeKnownHelper",params.length,name);else{if(this.options.knownHelpersOnly)throw new Exception("You specified knownHelpersOnly, but used the unknown helper "+name,sexpr);this.opcode("invokeHelper",params.length,name,sexpr.isRoot)}},sexpr:function(sexpr){var type=this.classifySexpr(sexpr);"simple"===type?this.simpleSexpr(sexpr):"helper"===type?this.helperSexpr(sexpr):this.ambiguousSexpr(sexpr)},ID:function(id){this.addDepth(id.depth),this.opcode("getContext",id.depth),id.parts[0]?this.opcode("lookupOnContext",id.parts[0]):this.opcode("pushContext");for(var i=1,
l=id.parts.length;i<l;i++)this.opcode("lookup",id.parts[i])},DATA:function(data){if(this.options.data=!0,data.id.isScoped||data.id.depth)throw new Exception("Scoped data references are not supported: "+data.original,data);this.opcode("lookupData");for(var parts=data.id.parts,i=0,l=parts.length;i<l;i++)this.opcode("lookup",parts[i])},STRING:function(string){this.opcode("pushString",string.string)},INTEGER:function(integer){this.opcode("pushLiteral",integer.integer)},BOOLEAN:function(bool){this.opcode("pushLiteral",bool.bool)},comment:function(){},opcode:function(name){this.opcodes.push({opcode:name,args:[].slice.call(arguments,1)})},declare:function(name,
value){this.opcodes.push({opcode:"DECLARE",name:name,value:value})},addDepth:function(depth){0!==depth&&(this.depths[depth]||(this.depths[depth]=!0,this.depths.list.push(depth)))},classifySexpr:function(name){var isHelper=name.isHelper,isEligible=name.eligibleHelper,options=this.options;return isEligible&&!isHelper&&(name=name.id.parts[0],options.knownHelpers[name]?isHelper=!0:options.knownHelpersOnly&&(isEligible=!1)),isHelper?"helper":isEligible?"ambiguous":"simple"},pushParams:function(params){for(var param,i=params.length;i--;)param=params[i],this.options.stringParams?(param.depth&&this.addDepth(param.depth),this.opcode("getContext",param.depth||0),
this.opcode("pushStringParam",param.stringModeValue,param.type),"sexpr"===param.type&&this.sexpr(param)):this[param.type](param)},setupFullMustacheParams:function(sexpr,program,inverse){var params=sexpr.params;return this.pushParams(params),this.opcode("pushProgram",program),this.opcode("pushProgram",inverse),sexpr.hash?this.hash(sexpr.hash):this.opcode("emptyHash"),params}},__exports__.precompile=function(environment,options,env){if(null==environment||"string"!=typeof environment&&environment.constructor!==env.AST.ProgramNode)throw new Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+environment);return"data"in(
options=options||{})||(options.data=!0),environment=env.parse(environment),environment=(new env.Compiler).compile(environment,options),(new env.JavaScriptCompiler).compile(environment,options)},__exports__.compile=function(input,options,env){if(null==input||"string"!=typeof input&&input.constructor!==env.AST.ProgramNode)throw new Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+input);var compiled;function compileInput(){var templateSpec=env.parse(input),templateSpec=(new env.Compiler).compile(templateSpec,options),templateSpec=(new env.JavaScriptCompiler).compile(templateSpec,options,void 0,!0);return env.template(
templateSpec)}return"data"in(options=options||{})||(options.data=!0),function(context,options){return(compiled=compiled||compileInput()).call(this,context,options)}},__exports__}(),__module11__=function(){"use strict";var COMPILER_REVISION=__module2__.COMPILER_REVISION,REVISION_CHANGES=__module2__.REVISION_CHANGES,log=__module2__.log,Exception=__module5__;function Literal(value){this.value=value}function JavaScriptCompiler(){}JavaScriptCompiler.prototype={nameLookup:function(parent,ret){var wrap;return 0===parent.indexOf("depth")&&(wrap=!0),ret=/^[0-9]+$/.test(ret)?parent+"["+ret+"]":JavaScriptCompiler.isValidJavaScriptVariableName(ret
)?parent+"."+ret:parent+"['"+ret+"']",wrap?"("+parent+" && "+ret+")":ret},compilerInfo:function(){return"this.compilerInfo = ["+COMPILER_REVISION+",'"+REVISION_CHANGES[COMPILER_REVISION]+"'];\n"},appendToBuffer:function(string){return this.environment.isSimple?"return "+string+";":{appendToBuffer:!0,content:string,toString:function(){return"buffer += "+string+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(environment,options,context,asObject){this.environment=environment,this.options=options||{},log("debug",this.environment.disassemble()+"\n\n"),this.name=this.environment.name,this.isChild=!!context,
this.context=context||{programs:[],environments:[],aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(environment,options);var opcode,opcodes=environment.opcodes;this.i=0;for(var l=opcodes.length;this.i<l;this.i++)"DECLARE"===(opcode=opcodes[this.i]).opcode?this[opcode.name]=opcode.value:this[opcode.opcode].apply(this,opcode.args),opcode.opcode!==this.stripNext&&(this.stripNext=!1);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Exception("Compile completed with content left on stack")
;return this.createFunctionContext(asObject)},preamble:function(){var namespace,copies,out=[];this.isChild?out.push(""):(copies="helpers = this.merge(helpers, "+(namespace=this.namespace)+".helpers);",this.environment.usePartial&&(copies=copies+" partials = this.merge(partials, "+namespace+".partials);"),this.options.data&&(copies+=" data = data || {};"),out.push(copies)),this.environment.isSimple?out.push(""):out.push(", buffer = "+this.initializeBuffer()),this.lastContext=0,this.source=out},createFunctionContext:function(asObject){var functionSource=this.stackVars.concat(this.registers.list);if(0<functionSource.length&&(
this.source[1]=this.source[1]+", "+functionSource.join(", ")),!this.isChild)for(var alias in this.context.aliases)this.context.aliases.hasOwnProperty(alias)&&(this.source[1]=this.source[1]+", "+alias+"="+this.context.aliases[alias]);this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.pushSource("return buffer;");for(var params=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"],i=0,l=this.environment.depths.list.length;i<l;i++)params.push("depth"+this.environment.depths.list[i])
;functionSource=this.mergeSource();if(this.isChild||(functionSource=this.compilerInfo()+functionSource),asObject)return params.push(functionSource),Function.apply(this,params);functionSource="function "+(this.name||"")+"("+params.join(",")+") {\n "+functionSource+"}";return log("debug",functionSource+"\n\n"),functionSource},mergeSource:function(){for(var buffer,source="",i=0,len=this.source.length;i<len;i++){var line=this.source[i];line.appendToBuffer?buffer=buffer?buffer+"\n + "+line.content:line.content:(buffer&&(source+="buffer += "+buffer+";\n ",buffer=void 0),source+=line+"\n ")}return source},blockValue:function(){
this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var params=["depth0"];this.setupParams(0,params),this.replaceStack(function(current){return params.splice(1,0,current),"blockHelperMissing.call("+params.join(", ")+")"})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var params=["depth0"];this.setupParams(0,params);var current=this.topStack();params.splice(1,0,current),this.pushSource("if (!"+this.lastHelper+") { "+current+" = blockHelperMissing.call("+params.join(", ")+"); }")},appendContent:function(content){this.pendingContent&&(content=this.pendingContent+content),this.stripNext&&(
content=content.replace(/^\s+/,"")),this.pendingContent=content},strip:function(){this.pendingContent&&(this.pendingContent=this.pendingContent.replace(/\s+$/,"")),this.stripNext="strip"},append:function(){this.flushInline();var local=this.popStack();this.pushSource("if("+local+" || "+local+" === 0) { "+this.appendToBuffer(local)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(depth){this.lastContext!==depth&&(this.lastContext=depth
)},lookupOnContext:function(name){this.push(this.nameLookup("depth"+this.lastContext,name,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"',this.replaceStack(function(current){return"typeof "+current+" === functionType ? "+current+".apply(depth0) : "+current})},lookup:function(name){this.replaceStack(function(current){return current+" == null || "+current+" === false ? "+current+" : "+this.nameLookup(current,name,"context")})},lookupData:function(){this.pushStackLiteral("data")},pushStringParam:function(string,type){this.pushStackLiteral(
"depth"+this.lastContext),this.pushString(type),"sexpr"!==type&&("string"==typeof string?this.pushString(string):this.pushStackLiteral(string))},emptyHash:function(){this.pushStackLiteral("{}"),this.options.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[]}},popHash:function(){var hash=this.hash;this.hash=this.hashes.pop(),this.options.stringParams&&(this.push("{"+hash.contexts.join(",")+"}"),this.push("{"+hash.types.join(",")+"}")),this.push("{\n "+hash.values.join(",\n ")+"\n }")},pushString:function(string){this.pushStackLiteral(this.quotedString(
string))},push:function(expr){return this.inlineStack.push(expr),expr},pushLiteral:function(value){this.pushStackLiteral(value)},pushProgram:function(guid){null!=guid?this.pushStackLiteral(this.programExpression(guid)):this.pushStackLiteral(null)},invokeHelper:function(helper,lookup,isRoot){this.context.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");helper=this.lastHelper=this.setupHelper(helper,lookup,!0),lookup=this.nameLookup("depth"+this.lastContext,lookup,"context"),lookup="helper = "+helper.name+" || "+lookup;helper.paramsInit&&(lookup+=","+helper.paramsInit),this.push(
"("+lookup+",helper ? helper.call("+helper.callParams+") : helperMissing.call("+helper.helperMissingParams+"))"),isRoot||this.flushInline()},invokeKnownHelper:function(paramSize,helper){helper=this.setupHelper(paramSize,helper);this.push(helper.name+".call("+helper.callParams+")")},invokeAmbiguous:function(nextStack,nonHelper){this.context.aliases.functionType='"function"',this.useRegister("helper"),this.emptyHash();var helper=this.setupHelper(0,nextStack,nonHelper),helperName=this.lastHelper=this.nameLookup("helpers",nextStack,"helper"),nonHelper=this.nameLookup("depth"+this.lastContext,nextStack,"context"),nextStack=this.nextStack()
;helper.paramsInit&&this.pushSource(helper.paramsInit),this.pushSource("if (helper = "+helperName+") { "+nextStack+" = helper.call("+helper.callParams+"); }"),this.pushSource("else { helper = "+nonHelper+"; "+nextStack+" = typeof helper === functionType ? helper.call("+helper.callParams+") : helper; }")},invokePartial:function(params){params=[this.nameLookup("partials",params,"partial"),"'"+params+"'",this.popStack(),"helpers","partials"];this.options.data&&params.push("data"),this.context.aliases.self="this",this.push("self.invokePartial("+params.join(", ")+")")},assignToHash:function(key){var context,type,value=this.popStack();this.options.stringParams&&(
type=this.popStack(),context=this.popStack());var hash=this.hash;context&&hash.contexts.push("'"+key+"': "+context),type&&hash.types.push("'"+key+"': "+type),hash.values.push("'"+key+"': ("+value+")")},compiler:JavaScriptCompiler,compileChildren:function(environment,options){for(var child,compiler,children=environment.children,i=0,l=children.length;i<l;i++){child=children[i],compiler=new this.compiler;var index=this.matchExistingProgram(child);null==index?(this.context.programs.push(""),index=this.context.programs.length,child.index=index,child.name="program"+index,this.context.programs[index]=compiler.compile(child,options,this.context),
this.context.environments[index]=child):(child.index=index,child.name="program"+index)}},matchExistingProgram:function(child){for(var i=0,len=this.context.environments.length;i<len;i++){var environment=this.context.environments[i];if(environment&&environment.equals(child))return i}},programExpression:function(child){if(this.context.aliases.self="this",null==child)return"self.noop";for(var depth,child=this.environment.children[child],depths=child.depths.list,programParams=[child.index,child.name,"data"],i=0,l=depths.length;i<l;i++)1===(depth=depths[i])?programParams.push("depth0"):programParams.push("depth"+(depth-1));return(
0===depths.length?"self.program(":"self.programWithDepth(")+programParams.join(", ")+")"},register:function(name,val){this.useRegister(name),this.pushSource(name+" = "+val+";")},useRegister:function(name){this.registers[name]||(this.registers[name]=!0,this.registers.list.push(name))},pushStackLiteral:function(item){return this.push(new Literal(item))},pushSource:function(source){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),source&&this.source.push(source)},pushStack:function(item){this.flushInline();var stack=this.incrStack();return item&&this.pushSource(stack+" = "+item+";"),
this.compileStack.push(stack),stack},replaceStack:function(item){var createdStack,usedLiteral,top,name,stack,prefix="",inline=this.isInline();inline?(top=this.popStack(!0))instanceof Literal?(stack=top.value,usedLiteral=!0):(name=(createdStack=!this.stackSlot)?this.incrStack():this.topStackName(),prefix="("+this.push(name)+" = "+top+"),",stack=this.topStack()):stack=this.topStack();item=item.call(this,stack);return inline?(usedLiteral||this.popStack(),createdStack&&this.stackSlot--,this.push("("+prefix+item+")")):(/^stack/.test(stack)||(stack=this.nextStack()),this.pushSource(stack+" = ("+prefix+item+");")),stack},nextStack:function(){return this.pushStack()
},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var inlineStack=this.inlineStack;if(inlineStack.length){this.inlineStack=[];for(var i=0,len=inlineStack.length;i<len;i++){var entry=inlineStack[i];entry instanceof Literal?this.compileStack.push(entry):this.pushStack(entry)}}},isInline:function(){return this.inlineStack.length},popStack:function(wrapped){var inline=this.isInline(),item=(inline?this.inlineStack:this.compileStack).pop();if(!wrapped&&item instanceof Literal
)return item.value;if(!inline){if(!this.stackSlot)throw new Exception("Invalid stack pop");this.stackSlot--}return item},topStack:function(wrapped){var item=this.isInline()?this.inlineStack:this.compileStack,item=item[item.length-1];return!wrapped&&item instanceof Literal?item.value:item},quotedString:function(str){return'"'+str.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(paramSize,name,missingParams){var params=[];return{params:params,paramsInit:this.setupParams(paramSize,params,missingParams),name:this.nameLookup("helpers",name,
"helper"),callParams:["depth0"].concat(params).join(", "),helperMissingParams:missingParams&&["depth0",this.quotedString(name)].concat(params).join(", ")}},setupOptions:function(paramSize,params){var param,inverse,program,options=[],contexts=[],types=[];options.push("hash:"+this.popStack()),this.options.stringParams&&(options.push("hashTypes:"+this.popStack()),options.push("hashContexts:"+this.popStack())),inverse=this.popStack(),((program=this.popStack())||inverse)&&(program||(this.context.aliases.self="this",program="self.noop"),inverse||(this.context.aliases.self="this",inverse="self.noop"),options.push("inverse:"+inverse),options.push("fn:"+program))
;for(var i=0;i<paramSize;i++)param=this.popStack(),params.push(param),this.options.stringParams&&(types.push(this.popStack()),contexts.push(this.popStack()));return this.options.stringParams&&(options.push("contexts:["+contexts.join(",")+"]"),options.push("types:["+types.join(",")+"]")),this.options.data&&options.push("data:data"),options},setupParams:function(options,params,useRegister){options="{"+this.setupOptions(options,params).join(",")+"}";return useRegister?(this.useRegister("options"),params.push("options"),"options="+options):(params.push(options),"")}};for(
var reservedWords="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),compilerWords=JavaScriptCompiler.RESERVED_WORDS={},i=0,l=reservedWords.length;i<l;i++)compilerWords[reservedWords[i]]=!0;return JavaScriptCompiler.isValidJavaScriptVariableName=function(name){return!(
JavaScriptCompiler.RESERVED_WORDS[name]||!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name))},JavaScriptCompiler}();return function(){"use strict";function create(){var hb=_create();return hb.compile=function(input,options){return compile(input,options,hb)},hb.precompile=function(input,options){return precompile(input,options,hb)},hb.AST=AST,hb.Compiler=Compiler,hb.JavaScriptCompiler=JavaScriptCompiler,hb.Parser=Parser,hb.parse=parse,hb}var Handlebars=__module1__,AST=__module7__,Parser=__module8__.parser,parse=__module8__.parse,Compiler=__module10__.Compiler,compile=__module10__.compile,precompile=__module10__.precompile,JavaScriptCompiler=__module11__,
_create=Handlebars.create;return(Handlebars=create()).create=create,Handlebars}()}();define("handlebars",function(global){return function(){return global.Handlebars}}(this)),function(){var undefined,arrayPool=[],objectPool=[],idCounter=0,indicatorObject={},keyPrefix=+new Date+"",largeArraySize=75,maxPoolSize=40,whitespace=" \t\v\f \ufeff\n\r\u2028\u2029  ",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reFuncName=/^\s*function[ \n\r\t]+\w/,reInterpolate=/<%=([\s\S]+?)%>/g,
reLeadingSpacesAndZeros=RegExp("^["+whitespace+"]*0+(?=.$)"),reNoMatch=/($^)/,reThis=/\bthis\b/,reUnescapedString=/['\n\r\t\u2028\u2029\\]/g,contextProps=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],shadowedProps=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],templateCounter=0,argsClass="[object Arguments]",arrayClass="[object Array]",boolClass="[object Boolean]",dateClass="[object Date]",errorClass="[object Error]",funcClass="[object Function]",numberClass="[object Number]",
objectClass="[object Object]",regexpClass="[object RegExp]",stringClass="[object String]",cloneableClasses={};cloneableClasses[funcClass]=!1;var debounceOptions={leading:!(cloneableClasses[argsClass]=cloneableClasses[arrayClass]=cloneableClasses[boolClass]=cloneableClasses[dateClass]=cloneableClasses[numberClass]=cloneableClasses[objectClass]=cloneableClasses[regexpClass]=cloneableClasses[stringClass]=!0),maxWait:0,trailing:!1},descriptor={configurable:!1,enumerable:!1,value:null,writable:!1},iteratorData={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},objectTypes={boolean:!1,function:!0,
object:!0,number:!1,string:!1,undefined:!1},stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},root=objectTypes[typeof window]&&window||this,freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,freeGlobal=objectTypes[typeof global]&&global;function baseIndexOf(array,value,fromIndex){for(var index=(fromIndex||0)-1,length=array?array.length:0;++index<length;)if(array[index]===value)return index;return-1}function cacheIndexOf(cache,value){
var type=typeof value;if(cache=cache.cache,"boolean"==type||null==value)return cache[value]?0:-1;"number"!=type&&"string"!=type&&(type="object");var key="number"==type?value:keyPrefix+value;return cache=(cache=cache[type])&&cache[key],"object"==type?cache&&-1<baseIndexOf(cache,value)?0:-1:cache?0:-1}function cachePush(value){var key,typeCache=this.cache,type=typeof value;"boolean"==type||null==value?typeCache[value]=!0:("number"!=type&&"string"!=type&&(type="object"),key="number"==type?value:keyPrefix+value,typeCache=typeCache[type]||(typeCache[type]={}),"object"==type?(typeCache[key]||(typeCache[key]=[])).push(value):typeCache[key]=!0)}
function charAtCallback(value){return value.charCodeAt(0)}function compareAscending(a,b){for(var ac=a.criteria,bc=b.criteria,index=-1,length=ac.length;++index<length;){var value=ac[index],other=bc[index];if(value!==other){if(other<value||void 0===value)return 1;if(value<other||void 0===other)return-1}}return a.index-b.index}function createCache(array){var index=-1,length=array.length,first=array[0],mid=array[length/2|0],cache=array[length-1];if(first&&"object"==typeof first&&mid&&"object"==typeof mid&&cache&&"object"==typeof cache)return!1;cache=getObject();cache.false=cache.null=cache.true=cache[void 0]=!1;var result=getObject();for(result.array=array,
result.cache=cache,result.push=cachePush;++index<length;)result.push(array[index]);return result}function escapeStringChar(match){return"\\"+stringEscapes[match]}function getArray(){return arrayPool.pop()||[]}function getObject(){return objectPool.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function isNode(value){return"function"!=typeof value.toString&&"string"==typeof(value+"")}function releaseArray(array){array.length=0,arrayPool.length<maxPoolSize&&arrayPool.push(array)}function releaseObject(object){var cache=object.cache;cache&&releaseObject(cache),
object.array=object.cache=object.criteria=object.object=object.number=object.string=object.value=null,objectPool.length<maxPoolSize&&objectPool.push(object)}function slice(array,start,end){start=start||0,void 0===end&&(end=array?array.length:0);for(var index=-1,length=end-start||0,result=Array(length<0?0:length);++index<length;)result[index]=array[start+index];return result}!freeGlobal||freeGlobal.global!==freeGlobal&&freeGlobal.window!==freeGlobal||(root=freeGlobal);var _=function runInContext(context){var Array=(context=context?_.defaults(root.Object(),context,_.pick(root,contextProps)):root).Array,parseInt=context.Boolean,Date=context.Date,
where=context.Error,Function=context.Function,indexBy=context.Math,countBy=context.Number,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError,arrayRef=[],errorProto=where.prototype,objectProto=Object.prototype,stringProto=String.prototype,oldDash=context._,toString=objectProto.toString,reNative=RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ceil=indexBy.ceil,clearTimeout=context.clearTimeout,floor=indexBy.floor,fnToString=Function.prototype.toString,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,
hasOwnProperty=objectProto.hasOwnProperty,push=arrayRef.push,propertyIsEnumerable=objectProto.propertyIsEnumerable,setTimeout=context.setTimeout,splice=arrayRef.splice,unshift=arrayRef.unshift,defineProperty=function(){try{var o={},func=isNative(func=Object.defineProperty)&&func,result=func(o,o,o)&&func}catch(e){}return result}(),nativeCreate=isNative(nativeCreate=Object.create)&&nativeCreate,groupBy=isNative(groupBy=Array.isArray)&&groupBy,nativeIsFinite=context.isFinite,nativeIsNaN=context.isNaN,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=indexBy.max,nativeMin=indexBy.min,nativeParseInt=context.parseInt,nativeRandom=indexBy.random,
ctorByClass={};ctorByClass[arrayClass]=Array,ctorByClass[boolClass]=parseInt,ctorByClass[dateClass]=Date,ctorByClass[funcClass]=Function,ctorByClass[objectClass]=Object,ctorByClass[numberClass]=countBy,ctorByClass[regexpClass]=RegExp,ctorByClass[stringClass]=String;var nonEnumProps={};function lodash(value){return value&&"object"==typeof value&&!isArray(value)&&hasOwnProperty.call(value,"__wrapped__")?value:new lodashWrapper(value)}function lodashWrapper(value,chainAll){this.__chain__=!!chainAll,this.__wrapped__=value}nonEnumProps[arrayClass]=nonEnumProps[dateClass]=nonEnumProps[numberClass]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},
nonEnumProps[boolClass]=nonEnumProps[stringClass]={constructor:!0,toString:!0,valueOf:!0},nonEnumProps[errorClass]=nonEnumProps[funcClass]=nonEnumProps[regexpClass]={constructor:!0,toString:!0},nonEnumProps[objectClass]={constructor:!0},function(){for(var length=shadowedProps.length;length--;){var className,key=shadowedProps[length];for(className in nonEnumProps)hasOwnProperty.call(nonEnumProps,className)&&!hasOwnProperty.call(nonEnumProps[className],key)&&(nonEnumProps[className][key]=!1)}}(),lodashWrapper.prototype=lodash.prototype;var support=lodash.support={};!function(){function ctor(){this.x=1}var key,object={0:1,length:1},props=[];for(
key in ctor.prototype={valueOf:1,y:1},new ctor)props.push(key);for(key in arguments);support.argsClass=toString.call(arguments)==argsClass,support.argsObject=arguments.constructor==Object&&!(arguments instanceof Array),support.enumErrorProps=propertyIsEnumerable.call(errorProto,"message")||propertyIsEnumerable.call(errorProto,"name"),support.enumPrototypes=propertyIsEnumerable.call(ctor,"prototype"),support.funcDecomp=!isNative(context.WinRTError)&&reThis.test(runInContext),support.funcNames="string"==typeof Function.name,support.nonEnumArgs=0!=key,support.nonEnumShadows=!/valueOf/.test(props),support.ownLast="x"!=props[0],support.spliceObjects=(
arrayRef.splice.call(object,0,1),!object[0]),support.unindexedChars="x"[0]+Object("x")[0]!="xx";try{support.nodeClass=!(toString.call(document)==objectClass&&!({toString:0}+""))}catch(e){support.nodeClass=!0}}(1),lodash.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:reInterpolate,variable:"",imports:{_:lodash}};var iteratorTemplate=template(
"var index, iterable = <%= firstArg %>, result = <%= init %>;\nif (!iterable) return result;\n<%= top %>;<% if (array) { %>\nvar length = iterable.length; index = -1;\nif (<%= array %>) { <% if (support.unindexedChars) { %>\n if (isString(iterable)) {\n iterable = iterable.split('')\n } <% } %>\n while (++index < length) {\n <%= loop %>;\n }\n}\nelse { <% } else if (support.nonEnumArgs) { %>\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n <%= loop %>;\n }\n } else { <% } %> <% if (support.enumPrototypes) { %>\n var skipProto = typeof iterable == 'function';\n <% } %> <% if (support.enumErrorProps) { %>\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n <% } %> <% var conditions = []; if (support.enumPrototypes) { conditions.push('!(skipProto && index == \"prototype\")'); } if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (index == \"message\" || index == \"name\"))'); } %> <% if (useHas && keys) { %>\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n<% if (conditions.length) { %> if (<%= conditions.join(' && ') %>) {\n <% } %> <%= loop %>; <% if (conditions.length) { %>\n }<% } %>\n } <% } else { %>\n for (index in iterable) {\n<% if (useHas) { conditions.push(\"hasOwnProperty.call(iterable, index)\"); } if (conditions.length) { %> if (<%= conditions.join(' && ') %>) {\n <% } %> <%= loop %>; <% if (conditions.length) { %>\n }<% } %>\n } <% if (support.nonEnumShadows) { %>\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n <% for (k = 0; k < 7; k++) { %>\n index = '<%= shadowedProps[k] %>';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))<% if (!useHas) { %> || (!nonEnum[index] && iterable[index] !== objectProto[index])<% } %>) {\n <%= loop %>;\n } <% } %>\n } <% } %> <% } %> <% if (array || support.nonEnumArgs) { %>\n}<% } %>\n<%= bottom %>;\nreturn result"
);function baseBind(bindData){var func=bindData[0],partialArgs=bindData[2],thisArg=bindData[4];function bound(){var args;if(partialArgs&&(args=slice(partialArgs),push.apply(args,arguments)),this instanceof bound){var thisBinding=baseCreate(func.prototype),result=func.apply(thisBinding,args||arguments);return isObject(result)?result:thisBinding}return func.apply(thisArg,args||arguments)}return setBindData(bound,bindData),bound}function baseClone(value,isDeep,callback,stackA,stackB){if(callback){var result=callback(value);if(void 0!==result)return result}if(!isObject(value))return value;var isArr=toString.call(value);if(
!cloneableClasses[isArr]||!support.nodeClass&&isNode(value))return value;var ctor=ctorByClass[isArr];switch(isArr){case boolClass:case dateClass:return new ctor(+value);case numberClass:case stringClass:return new ctor(value);case regexpClass:return(result=ctor(value.source,reFlags.exec(value))).lastIndex=value.lastIndex,result}if(isArr=isArray(value),isDeep){var initedStack=!stackA;stackA=stackA||getArray(),stackB=stackB||getArray();for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];result=isArr?ctor(value.length):{}}else result=isArr?slice(value):assign({},value);return isArr&&(hasOwnProperty.call(value,"index")&&(
result.index=value.index),hasOwnProperty.call(value,"input")&&(result.input=value.input)),isDeep&&(stackA.push(value),stackB.push(result),(isArr?baseEach:forOwn)(value,function(objValue,key){result[key]=baseClone(objValue,isDeep,callback,stackA,stackB)}),initedStack&&(releaseArray(stackA),releaseArray(stackB))),result}function baseCreate(prototype,properties){return isObject(prototype)?nativeCreate(prototype):{}}function baseCreateCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(void 0===thisArg||!("prototype"in func))return func;var source,bindData=func.__bindData__;if(void 0===bindData&&(support.funcNames&&(bindData=!func.name)
,(bindData=bindData||!support.funcDecomp)||(source=fnToString.call(func),support.funcNames||(bindData=!reFuncName.test(source)),bindData||(bindData=reThis.test(source),setBindData(func,bindData)))),!1===bindData||!0!==bindData&&1&bindData[1])return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 2:return function(a,b){return func.call(thisArg,a,b)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)}}return bind(func,thisArg)}function baseCreateWrapper(
bindData){var func=bindData[0],bitmask=bindData[1],partialArgs=bindData[2],partialRightArgs=bindData[3],thisArg=bindData[4],arity=bindData[5],isBind=1&bitmask,isBindKey=2&bitmask,isCurry=4&bitmask,isCurryBound=8&bitmask,key=func;function bound(){var args,thisBinding=isBind?thisArg:this;if(partialArgs&&(args=slice(partialArgs),push.apply(args,arguments)),(partialRightArgs||isCurry)&&(args=args||slice(arguments),partialRightArgs&&push.apply(args,partialRightArgs),isCurry&&args.length<arity))return bitmask|=16,baseCreateWrapper([func,isCurryBound?bitmask:-4&bitmask,args,null,thisArg,arity]);if(args=args||arguments,isBindKey&&(func=thisBinding[key]),
this instanceof bound){thisBinding=baseCreate(func.prototype);var result=func.apply(thisBinding,args);return isObject(result)?result:thisBinding}return func.apply(thisBinding,args)}return setBindData(bound,bindData),bound}function baseDifference(array,values){var cache,index=-1,indexOf=getIndexOf(),length=array?array.length:0,isLarge=largeArraySize<=length&&indexOf===baseIndexOf,result=[];for(isLarge&&((cache=createCache(values))?(indexOf=cacheIndexOf,values=cache):isLarge=!1);++index<length;){var value=array[index];indexOf(values,value)<0&&result.push(value)}return isLarge&&releaseObject(values),result}function baseFlatten(array,isShallow,isStrict,fromIndex
){for(var index=(fromIndex||0)-1,length=array?array.length:0,result=[];++index<length;){var value=array[index];if(value&&"object"==typeof value&&"number"==typeof value.length&&(isArray(value)||isArguments(value))){isShallow||(value=baseFlatten(value,isShallow,isStrict));var valIndex=-1,valLength=value.length,resIndex=result.length;for(result.length+=valLength;++valIndex<valLength;)result[resIndex++]=value[valIndex]}else isStrict||result.push(value)}return result}function baseIsEqual(a,b,callback,isWhere,stackA,stackB){if(callback){var result=callback(a,b);if(void 0!==result)return!!result}if(a===b)return 0!==a||1/a==1/b;var isArr=typeof b;if(!(
a!=a||a&&objectTypes[typeof a]||b&&objectTypes[isArr]))return!1;if(null==a||null==b)return a===b;var ctorA=toString.call(a),aWrapped=toString.call(b);if(ctorA==argsClass&&(ctorA=objectClass),aWrapped==argsClass&&(aWrapped=objectClass),ctorA!=aWrapped)return!1;switch(ctorA){case boolClass:case dateClass:return+a==+b;case numberClass:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case regexpClass:case stringClass:return a==String(b)}if(!(isArr=ctorA==arrayClass)){var aWrapped=hasOwnProperty.call(a,"__wrapped__"),initedStack=hasOwnProperty.call(b,"__wrapped__");if(aWrapped||initedStack)return baseIsEqual(aWrapped?a.__wrapped__:a,initedStack?b.__wrapped__:b,callback,
isWhere,stackA,stackB);if(ctorA!=objectClass||!support.nodeClass&&(isNode(a)||isNode(b)))return!1;if(ctorA=!support.argsObject&&isArguments(a)?Object:a.constructor,initedStack=!support.argsObject&&isArguments(b)?Object:b.constructor,ctorA!=initedStack&&!(isFunction(ctorA)&&ctorA instanceof ctorA&&isFunction(initedStack)&&initedStack instanceof initedStack)&&"constructor"in a&&"constructor"in b)return!1}initedStack=!stackA,stackA=stackA||getArray(),stackB=stackB||getArray();for(var length=stackA.length;length--;)if(stackA[length]==a)return stackB[length]==b;var size=0,result=!0;if(stackA.push(a),stackB.push(b),isArr){if(length=a.length,size=b.length,(
result=size==length)||isWhere)for(;size--;){var index=length,value=b[size];if(isWhere)for(;index--&&!(result=baseIsEqual(a[index],value,callback,isWhere,stackA,stackB)););else if(!(result=baseIsEqual(a[size],value,callback,isWhere,stackA,stackB)))break}}else forIn(b,function(value,key,b){if(hasOwnProperty.call(b,key))return size++,result=hasOwnProperty.call(a,key)&&baseIsEqual(a[key],value,callback,isWhere,stackA,stackB)}),result&&!isWhere&&forIn(a,function(value,key,a){if(hasOwnProperty.call(a,key))return result=-1<--size});return stackA.pop(),stackB.pop(),initedStack&&(releaseArray(stackA),releaseArray(stackB)),result}function baseRandom(min,max){
return min+floor(nativeRandom()*(max-min+1))}function baseUniq(array,isSorted,callback){var index=-1,indexOf=getIndexOf(),length=array?array.length:0,result=[],isLarge=!isSorted&&largeArraySize<=length&&indexOf===baseIndexOf,seen=callback||isLarge?getArray():result;for(isLarge&&(indexOf=cacheIndexOf,seen=createCache(seen));++index<length;){var value=array[index],computed=callback?callback(value,index,array):value;(isSorted?!index||seen[seen.length-1]!==computed:indexOf(seen,computed)<0)&&((callback||isLarge)&&seen.push(computed),result.push(value))}return isLarge?(releaseArray(seen.array),releaseObject(seen)):callback&&releaseArray(seen),result}
function createAggregator(setter){return function(collection,callback,thisArg){var result={};if(callback=lodash.createCallback(callback,thisArg,3),isArray(collection))for(var index=-1,length=collection.length;++index<length;){var value=collection[index];setter(result,value,callback(value,index,collection),collection)}else baseEach(collection,function(value,key,collection){setter(result,value,callback(value,key,collection),collection)});return result}}function createWrapper(func,bitmask,partialArgs,partialRightArgs,thisArg,arity){var isBind=1&bitmask,isCurry=4&bitmask,isPartial=16&bitmask,isPartialRight=32&bitmask;if(!(2&bitmask||isFunction(func))
)throw new TypeError;isPartial&&!partialArgs.length&&(bitmask&=-17,isPartial=partialArgs=!1),isPartialRight&&!partialRightArgs.length&&(bitmask&=-33,isPartialRight=partialRightArgs=!1);var bindData=func&&func.__bindData__;return bindData&&!0!==bindData?((bindData=slice(bindData))[2]&&(bindData[2]=slice(bindData[2])),bindData[3]&&(bindData[3]=slice(bindData[3])),!isBind||1&bindData[1]||(bindData[4]=thisArg),!isBind&&1&bindData[1]&&(bitmask|=8),!isCurry||4&bindData[1]||(bindData[5]=arity),isPartial&&push.apply(bindData[2]||(bindData[2]=[]),partialArgs),isPartialRight&&unshift.apply(bindData[3]||(bindData[3]=[]),partialRightArgs),bindData[1]|=bitmask,
createWrapper.apply(null,bindData)):(1==bitmask||17===bitmask?baseBind:baseCreateWrapper)([func,bitmask,partialArgs,partialRightArgs,thisArg,arity])}function createIterator(){iteratorData.shadowedProps=shadowedProps,iteratorData.support=support,iteratorData.array=iteratorData.bottom=iteratorData.loop=iteratorData.top="",iteratorData.init="iterable",iteratorData.useHas=!0;for(var object,index=0;object=arguments[index];index++)for(var key in object)iteratorData[key]=object[key];var args=iteratorData.args;return iteratorData.firstArg=/^[^,]+/.exec(args)[0],Function(
"baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+args+") {\n"+iteratorTemplate(iteratorData)+"\n}")(baseCreateCallback,errorClass,errorProto,hasOwnProperty,indicatorObject,isArguments,isArray,isString,iteratorData.keys,objectProto,objectTypes,nonEnumProps,stringClass,stringProto,toString)}function escapeHtmlChar(match){return htmlEscapes[match]}function getIndexOf(){var result=(result=lodash.indexOf)===indexOf?baseIndexOf:result;return result}function isNative(value){
return"function"==typeof value&&reNative.test(value)}nativeCreate||(baseCreate=function(){function Object(){}return function(prototype){var result;return isObject(prototype)&&(Object.prototype=prototype,result=new Object,Object.prototype=null),result||context.Object()}}());var setBindData=defineProperty?function(func,value){descriptor.value=value,defineProperty(func,"__bindData__",descriptor)}:noop;function shimIsPlainObject(value){var ctor,result;return!(!value||toString.call(value)!=objectClass||isFunction(ctor=value.constructor)&&!(ctor instanceof ctor)||!support.argsClass&&isArguments(value)||!support.nodeClass&&isNode(value))&&(support.ownLast?(forIn(
value,function(value,key,object){return result=hasOwnProperty.call(object,key),!1}),!1!==result):(forIn(value,function(value,key){result=key}),void 0===result||hasOwnProperty.call(value,result)))}function unescapeHtmlChar(match){return htmlUnescapes[match]}function isArguments(value){return value&&"object"==typeof value&&"number"==typeof value.length&&toString.call(value)==argsClass||!1}support.argsClass||(isArguments=function(value){return value&&"object"==typeof value&&"number"==typeof value.length&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")||!1});var isArray=groupBy||function(value){
return value&&"object"==typeof value&&"number"==typeof value.length&&toString.call(value)==arrayClass||!1},shimKeys=createIterator({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),keys=nativeKeys?function(object){return isObject(object)?(support.enumPrototypes&&"function"==typeof object||support.nonEnumArgs&&object.length&&isArguments(object)?shimKeys:nativeKeys)(object):[]}:shimKeys,where={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:keys,
loop:"if (callback(iterable[index], index, collection) === false) return result"},indexBy={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",keys:keys,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},parseInt={top:"if (!objectTypes[typeof iterable]) return result;\n"+where.top,array:!1},htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},htmlUnescapes=invert(htmlEscapes),
reEscapedHtml=RegExp("("+keys(htmlUnescapes).join("|")+")","g"),reUnescapedHtml=RegExp("["+keys(htmlEscapes).join("")+"]","g"),baseEach=createIterator(where),assign=createIterator(indexBy,{top:indexBy.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"});var defaults=createIterator(indexBy);var forIn=createIterator(where,parseInt,{
useHas:!1});var forOwn=createIterator(where,parseInt);function forOwnRight(object,callback,thisArg){var props=keys(object),length=props.length;for(callback=baseCreateCallback(callback,thisArg,3);length--;){var key=props[length];if(!1===callback(object[key],key,object))break}return object}function functions(object){var result=[];return forIn(object,function(value,key){isFunction(value)&&result.push(key)}),result.sort()}function invert(object){for(var index=-1,props=keys(object),length=props.length,result={};++index<length;){var key=props[index];result[object[key]]=key}return result}function isFunction(value){return"function"==typeof value}function isObject(
value){return!(!value||!objectTypes[typeof value])}function isNumber(value){return"number"==typeof value||value&&"object"==typeof value&&toString.call(value)==numberClass||!1}isFunction(/x/)&&(isFunction=function(value){return"function"==typeof value&&toString.call(value)==funcClass});var isPlainObject=getPrototypeOf?function(value){if(!value||toString.call(value)!=objectClass||!support.argsClass&&isArguments(value))return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject
;function isString(value){return"string"==typeof value||value&&"object"==typeof value&&toString.call(value)==stringClass||!1}function values(object){for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index<length;)result[index]=object[props[index]];return result}function contains(collection,target,fromIndex){var index=-1,indexOf=getIndexOf(),length=collection?collection.length:0,result=!1;return fromIndex=(fromIndex<0?nativeMax(0,length+fromIndex):fromIndex)||0,isArray(collection)?result=-1<indexOf(collection,target,fromIndex):"number"==typeof length?result=-1<(isString(collection)?collection.indexOf(target,fromIndex):indexOf(
collection,target,fromIndex)):baseEach(collection,function(value){if(++index>=fromIndex)return!(result=value===target)}),result}countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key]++:result[key]=1});function every(collection,callback,thisArg){var result=!0;if(callback=lodash.createCallback(callback,thisArg,3),isArray(collection))for(var index=-1,length=collection.length;++index<length&&(result=!!callback(collection[index],index,collection)););else baseEach(collection,function(value,index,collection){return result=!!callback(value,index,collection)});return result}function filter(collection,callback,thisArg){
var result=[];if(callback=lodash.createCallback(callback,thisArg,3),isArray(collection))for(var index=-1,length=collection.length;++index<length;){var value=collection[index];callback(value,index,collection)&&result.push(value)}else baseEach(collection,function(value,index,collection){callback(value,index,collection)&&result.push(value)});return result}function find(collection,callback,thisArg){var result;if(callback=lodash.createCallback(callback,thisArg,3),!isArray(collection))return baseEach(collection,function(value,index,collection){if(callback(value,index,collection))return result=value,!1}),result;for(var index=-1,
length=collection.length;++index<length;){var value=collection[index];if(callback(value,index,collection))return value}}function forEach(collection,callback,thisArg){if(callback&&void 0===thisArg&&isArray(collection))for(var index=-1,length=collection.length;++index<length&&!1!==callback(collection[index],index,collection););else baseEach(collection,callback,thisArg);return collection}function forEachRight(collection,callback,thisArg){var props,iterable=collection,length=collection?collection.length:0;if(callback=callback&&void 0===thisArg?callback:baseCreateCallback(callback,thisArg,3),isArray(collection))for(;length--&&!1!==callback(collection[length],
length,collection););else"number"!=typeof length?(props=keys(collection),length=props.length):support.unindexedChars&&isString(collection)&&(iterable=collection.split("")),baseEach(collection,function(value,key,collection){return key=props?props[--length]:--length,callback(iterable[key],key,collection)});return collection}groupBy=createAggregator(function(result,value,key){(hasOwnProperty.call(result,key)?result[key]:result[key]=[]).push(value)}),indexBy=createAggregator(function(result,value,key){result[key]=value});function map(collection,callback,thisArg){var index=-1,length=collection?collection.length:0,result=Array("number"==typeof length?length:0);if(
callback=lodash.createCallback(callback,thisArg,3),isArray(collection))for(;++index<length;)result[index]=callback(collection[index],index,collection);else baseEach(collection,function(value,key,collection){result[++index]=callback(value,key,collection)});return result}function max(collection,callback,thisArg){var computed=-1/0,result=computed;if("function"!=typeof callback&&thisArg&&thisArg[callback]===collection&&(callback=null),null==callback&&isArray(collection))for(var index=-1,length=collection.length;++index<length;){var value=collection[index];result<value&&(result=value)}else callback=null==callback&&isString(collection
)?charAtCallback:lodash.createCallback(callback,thisArg,3),baseEach(collection,function(value,index,current){current=callback(value,index,current),computed<current&&(computed=current,result=value)});return result}var pluck=map;function reduce(collection,callback,accumulator,thisArg){var noaccum=arguments.length<3;if(callback=lodash.createCallback(callback,thisArg,4),isArray(collection)){var index=-1,length=collection.length;for(noaccum&&(accumulator=collection[++index]);++index<length;)accumulator=callback(accumulator,collection[index],index,collection)}else baseEach(collection,function(value,index,collection){accumulator=noaccum?(noaccum=!1,value):callback(
accumulator,value,index,collection)});return accumulator}function reduceRight(collection,callback,accumulator,thisArg){var noaccum=arguments.length<3;return callback=lodash.createCallback(callback,thisArg,4),forEachRight(collection,function(value,index,collection){accumulator=noaccum?(noaccum=!1,value):callback(accumulator,value,index,collection)}),accumulator}function shuffle(collection){var index=-1,length=collection?collection.length:0,result=Array("number"==typeof length?length:0);return forEach(collection,function(value){var rand=baseRandom(0,++index);result[index]=result[rand],result[rand]=value}),result}function some(collection,callback,thisArg){
var result;if(callback=lodash.createCallback(callback,thisArg,3),isArray(collection))for(var index=-1,length=collection.length;++index<length&&!(result=callback(collection[index],index,collection)););else baseEach(collection,function(value,index,collection){return!(result=callback(value,index,collection))});return!!result}where=filter;function first(array,callback,thisArg){var n=0,length=array?array.length:0;if("number"!=typeof callback&&null!=callback){var index=-1;for(callback=lodash.createCallback(callback,thisArg,3);++index<length&&callback(array[index],index,array);)n++}else if(null==(n=callback)||thisArg)return array?array[0]:undefined;return slice(
array,0,nativeMin(nativeMax(0,n),length))}function indexOf(array,value,fromIndex){if("number"==typeof fromIndex){var index=array?array.length:0;fromIndex=fromIndex<0?nativeMax(0,index+fromIndex):fromIndex||0}else if(fromIndex)return index=sortedIndex(array,value),array[index]===value?index:-1;return baseIndexOf(array,value,fromIndex)}function rest(array,callback,thisArg){if("number"!=typeof callback&&null!=callback){var n=0,index=-1,length=array?array.length:0;for(callback=lodash.createCallback(callback,thisArg,3);++index<length&&callback(array[index],index,array);)n++}else n=null==callback||thisArg?1:nativeMax(0,callback);return slice(array,n)}
function sortedIndex(array,value,callback,thisArg){var low=0,high=array?array.length:low;for(value=(callback=callback?lodash.createCallback(callback,thisArg,1):identity)(value);low<high;){var mid=low+high>>>1;callback(array[mid])<value?low=1+mid:high=mid}return low}function uniq(array,isSorted,callback,thisArg){return"boolean"!=typeof isSorted&&null!=isSorted&&(thisArg=callback,callback="function"!=typeof isSorted&&thisArg&&thisArg[isSorted]===array?null:isSorted,isSorted=!1),null!=callback&&(callback=lodash.createCallback(callback,thisArg,3)),baseUniq(array,isSorted,callback)}function zip(){for(var array=1<arguments.length?arguments:arguments[0],index=-1,
length=array?max(pluck(array,"length")):0,result=Array(length<0?0:length);++index<length;)result[index]=pluck(array,index);return result}function zipObject(keys,values){var index=-1,length=keys?keys.length:0,result={};for(values||!length||isArray(keys[0])||(values=[]);++index<length;){var key=keys[index];values?result[key]=values[index]:key&&(result[key[0]]=key[1])}return result}function bind(func,thisArg){return 2<arguments.length?createWrapper(func,17,slice(arguments,2),null,thisArg):createWrapper(func,1,null,null,thisArg)}function debounce(func,wait,options){var args,maxTimeoutId,result,stamp,thisArg,timeoutId,trailingCall,leading,lastCalled=0,maxWait=!1,
trailing=!0;if(!isFunction(func))throw new TypeError;function maxDelayed(){timeoutId&&clearTimeout(timeoutId),maxTimeoutId=timeoutId=trailingCall=undefined,!trailing&&maxWait===wait||(lastCalled=now(),result=func.apply(thisArg,args),timeoutId||maxTimeoutId||(args=thisArg=null))}wait=nativeMax(0,wait)||0,!0===options?trailing=!(leading=!0):isObject(options)&&(leading=options.leading,maxWait="maxWait"in options&&(nativeMax(wait,options.maxWait)||0),trailing="trailing"in options?options.trailing:trailing);var delayed=function(){var isCalled,remaining=wait-(now()-stamp);remaining<=0?(maxTimeoutId&&clearTimeout(maxTimeoutId),isCalled=trailingCall,
maxTimeoutId=timeoutId=trailingCall=undefined,isCalled&&(lastCalled=now(),result=func.apply(thisArg,args),timeoutId||maxTimeoutId||(args=thisArg=null))):timeoutId=setTimeout(delayed,remaining)};return function(){var leadingCall,remaining,isCalled;return args=arguments,stamp=now(),thisArg=this,trailingCall=trailing&&(timeoutId||!leading),!1===maxWait?leadingCall=leading&&!timeoutId:(maxTimeoutId||leading||(lastCalled=stamp),(isCalled=(remaining=maxWait-(stamp-lastCalled))<=0)?(maxTimeoutId=maxTimeoutId&&clearTimeout(maxTimeoutId),lastCalled=stamp,result=func.apply(thisArg,args)):maxTimeoutId=maxTimeoutId||setTimeout(maxDelayed,remaining)),
isCalled&&timeoutId?timeoutId=clearTimeout(timeoutId):timeoutId||wait===maxWait||(timeoutId=setTimeout(delayed,wait)),leadingCall&&(isCalled=!0,result=func.apply(thisArg,args)),!isCalled||timeoutId||maxTimeoutId||(args=thisArg=null),result}}function identity(value){return value}function mixin(object,source,options){var chain=!0,methodNames=source&&functions(source);source&&(options||methodNames.length)||(null==options&&(options=source),ctor=lodashWrapper,source=object,object=lodash,methodNames=functions(source)),!1===options?chain=!1:isObject(options)&&"chain"in options&&(chain=options.chain);var ctor=object,isFunc=isFunction(ctor);forEach(methodNames,
function(methodName){var func=object[methodName]=source[methodName];isFunc&&(ctor.prototype[methodName]=function(){var chainAll=this.__chain__,value=this.__wrapped__,result=[value];if(push.apply(result,arguments),result=func.apply(object,result),chain||chainAll){if(value===result&&isObject(result))return this;(result=new ctor(result)).__chain__=chainAll}return result})})}function noop(){}var source,now=isNative(now=Date.now)&&now||function(){return(new Date).getTime()},parseInt=8==nativeParseInt(whitespace+"08")?nativeParseInt:function(value,radix){return nativeParseInt(isString(value)?value.replace(reLeadingSpacesAndZeros,""):value,radix||0)}
;function property(key){return function(object){return object[key]}}function template(text,data,options){var variable=lodash.templateSettings;text=String(text||""),options=iteratorTemplate?defaults({},options,variable):variable;var isEvaluating,hasVariable=iteratorTemplate&&defaults({},options.imports,variable.imports),importsKeys=iteratorTemplate?keys(hasVariable):["_"],importsValues=iteratorTemplate?values(hasVariable):[lodash],index=0,variable=options.interpolate||reNoMatch,source="__p += '",hasVariable=RegExp((options.escape||reNoMatch).source+"|"+variable.source+"|"+(variable===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(
options.evaluate||reNoMatch).source+"|$","g");text.replace(hasVariable,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){return interpolateValue=interpolateValue||esTemplateValue,source+=text.slice(index,offset).replace(reUnescapedString,escapeStringChar),escapeValue&&(source+="' +\n__e("+escapeValue+") +\n'"),evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '"),interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"),index=offset+match.length,match}),source+="';\n",variable=options.variable,(hasVariable=variable)||(source="with ("+(variable="obj"
)+") {\n"+source+"\n}\n"),source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),source="function("+variable+") {\n"+(hasVariable?"":variable+" || ("+variable+" = {});\n")+"var __t, __p = '', __e = _.escape"+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var sourceURL="\n/*\n//# sourceURL="+(options.sourceURL||"/lodash/template/source["+templateCounter+++"]")+"\n*/";try{var result=Function(importsKeys,"return "+source+sourceURL).apply(undefined,importsValues)}catch(e){throw e.source=source,e}
return data?result(data):(result.source=source,result)}function wrapperValueOf(){return this.__wrapped__}return lodash.after=function(n,func){if(!isFunction(func))throw new TypeError;return function(){if(--n<1)return func.apply(this,arguments)}},lodash.assign=assign,lodash.at=function(collection){var args=arguments,index=-1,props=baseFlatten(args,!0,!1,1),length=args[2]&&args[2][args[1]]===collection?1:props.length,result=Array(length);for(support.unindexedChars&&isString(collection)&&(collection=collection.split(""));++index<length;)result[index]=collection[props[index]];return result},lodash.bind=bind,lodash.bindAll=function(object){for(
var funcs=1<arguments.length?baseFlatten(arguments,!0,!1,1):functions(object),index=-1,length=funcs.length;++index<length;){var key=funcs[index];object[key]=createWrapper(object[key],1,null,null,object)}return object},lodash.bindKey=function(object,key){return 2<arguments.length?createWrapper(key,19,slice(arguments,2),null,object):createWrapper(key,3,null,null,object)},lodash.chain=function(value){return(value=new lodashWrapper(value)).__chain__=!0,value},lodash.compact=function(array){for(var index=-1,length=array?array.length:0,result=[];++index<length;){var value=array[index];value&&result.push(value)}return result},lodash.compose=function(){for(
var funcs=arguments,length=funcs.length;length--;)if(!isFunction(funcs[length]))throw new TypeError;return function(){for(var args=arguments,length=funcs.length;length--;)args=[funcs[length].apply(this,args)];return args[0]}},lodash.constant=function(value){return function(){return value}},lodash.countBy=countBy,lodash.create=function(result,properties){return result=baseCreate(result),properties?assign(result,properties):result},lodash.createCallback=function(func,thisArg,argCount){var type=typeof func;if(null==func||"function"==type)return baseCreateCallback(func,thisArg,argCount);if("object"!=type)return property(func);var props=keys(func),key=props[0],
a=func[key];return 1!=props.length||a!=a||isObject(a)?function(object){for(var length=props.length,result=!1;length--&&(result=baseIsEqual(object[props[length]],func[props[length]],null,!0)););return result}:function(b){return b=b[key],a===b&&(0!==a||1/a==1/b)}},lodash.curry=function(func,arity){return createWrapper(func,4,null,null,null,arity="number"==typeof arity?arity:+arity||func.length)},lodash.debounce=debounce,lodash.defaults=defaults,lodash.defer=function(func){if(!isFunction(func))throw new TypeError;var args=slice(arguments,1);return setTimeout(function(){func.apply(undefined,args)},1)},lodash.delay=function(func,wait){if(!isFunction(func)
)throw new TypeError;var args=slice(arguments,2);return setTimeout(function(){func.apply(undefined,args)},wait)},lodash.difference=function(array){return baseDifference(array,baseFlatten(arguments,!0,!0,1))},lodash.filter=filter,lodash.flatten=function(array,isShallow,callback,thisArg){return"boolean"!=typeof isShallow&&null!=isShallow&&(thisArg=callback,callback="function"!=typeof isShallow&&thisArg&&thisArg[isShallow]===array?null:isShallow,isShallow=!1),null!=callback&&(array=map(array,callback,thisArg)),baseFlatten(array,isShallow)},lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=function(object,callback,
thisArg){var pairs=[];forIn(object,function(value,key){pairs.push(key,value)});var length=pairs.length;for(callback=baseCreateCallback(callback,thisArg,3);length--&&!1!==callback(pairs[length--],pairs[length],object););return object},lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.functions=functions,lodash.groupBy=groupBy,lodash.indexBy=indexBy,lodash.initial=function(array,callback,thisArg){var n=0,length=array?array.length:0;if("number"!=typeof callback&&null!=callback){var index=length;for(callback=lodash.createCallback(callback,thisArg,3);index--&&callback(array[index],index,array);)n++}else n=null==callback||thisArg?1:callback||n
;return slice(array,0,nativeMin(nativeMax(0,length-n),length))},lodash.intersection=function(){for(var args=[],argsIndex=-1,argsLength=arguments.length,caches=getArray(),indexOf=getIndexOf(),trustIndexOf=indexOf===baseIndexOf,seen=getArray();++argsIndex<argsLength;){var value=arguments[argsIndex];(isArray(value)||isArguments(value))&&(args.push(value),caches.push(trustIndexOf&&value.length>=largeArraySize&&createCache(argsIndex?args[argsIndex]:seen)))}var array=args[0],index=-1,length=array?array.length:0,result=[];outer:for(;++index<length;){var cache=caches[0],value=array[index];if((cache?cacheIndexOf(cache,value):indexOf(seen,value))<0){for(
argsIndex=argsLength,(cache||seen).push(value);--argsIndex;)if(((cache=caches[argsIndex])?cacheIndexOf(cache,value):indexOf(args[argsIndex],value))<0)continue outer;result.push(value)}}for(;argsLength--;)(cache=caches[argsLength])&&releaseObject(cache);return releaseArray(caches),releaseArray(seen),result},lodash.invert=invert,lodash.invoke=function(collection,methodName){var args=slice(arguments,2),index=-1,isFunc="function"==typeof methodName,length=collection?collection.length:0,result=Array("number"==typeof length?length:0);return forEach(collection,function(value){result[++index]=(isFunc?methodName:value[methodName]).apply(value,args)}),result},
lodash.keys=keys,lodash.map=map,lodash.mapValues=function(object,callback,thisArg){var result={};return callback=lodash.createCallback(callback,thisArg,3),forOwn(object,function(value,key,object){result[key]=callback(value,key,object)}),result},lodash.max=max,lodash.memoize=function(func,resolver){if(!isFunction(func))throw new TypeError;var memoized=function(){var cache=memoized.cache,key=resolver?resolver.apply(this,arguments):keyPrefix+arguments[0];return hasOwnProperty.call(cache,key)?cache[key]:cache[key]=func.apply(this,arguments)};return memoized.cache={},memoized},lodash.merge=function(object){var callback,args=arguments,length=2;if(!isObject(object)
)return object;"number"!=typeof args[2]&&(length=args.length),3<length&&"function"==typeof args[length-2]?callback=baseCreateCallback(args[--length-1],args[length--],2):2<length&&"function"==typeof args[length-1]&&(callback=args[--length]);for(var sources=slice(arguments,1,length),index=-1,stackA=getArray(),stackB=getArray();++index<length;)!function baseMerge(object,source,callback,stackA,stackB){(isArray(source)?forEach:forOwn)(source,function(source,key){var found,isArr,result=source,value=object[key];if(source&&((isArr=isArray(source))||isPlainObject(source))){for(var isShallow,stackLength=stackA.length;stackLength--;)if(found=stackA[stackLength]==source
){value=stackB[stackLength];break}found||(callback&&(isShallow=void 0!==(result=callback(value,source)))&&(value=result),isShallow||(value=isArr?isArray(value)?value:[]:isPlainObject(value)?value:{}),stackA.push(source),stackB.push(value),isShallow||baseMerge(value,source,callback,stackA,stackB))}else callback&&void 0===(result=callback(value,source))&&(result=source),void 0!==result&&(value=result);object[key]=value})}(object,sources[index],callback,stackA,stackB);return releaseArray(stackA),releaseArray(stackB),object},lodash.min=function(collection,callback,thisArg){var computed=1/0,result=computed;if(
"function"!=typeof callback&&thisArg&&thisArg[callback]===collection&&(callback=null),null==callback&&isArray(collection))for(var index=-1,length=collection.length;++index<length;){var value=collection[index];value<result&&(result=value)}else callback=null==callback&&isString(collection)?charAtCallback:lodash.createCallback(callback,thisArg,3),baseEach(collection,function(value,index,current){(current=callback(value,index,current))<computed&&(computed=current,result=value)});return result},lodash.omit=function(object,callback,thisArg){var result={};if("function"!=typeof callback){var props=[];forIn(object,function(value,key){props.push(key)});for(
var index=-1,length=(props=baseDifference(props,baseFlatten(arguments,!0,!1,1))).length;++index<length;){var key=props[index];result[key]=object[key]}}else callback=lodash.createCallback(callback,thisArg,3),forIn(object,function(value,key,object){callback(value,key,object)||(result[key]=value)});return result},lodash.once=function(func){var ran,result;if(!isFunction(func))throw new TypeError;return function(){return ran||(ran=!0,result=func.apply(this,arguments),func=null),result}},lodash.pairs=function(object){for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index<length;){var key=props[index];result[index]=[key,object[key]]}
return result},lodash.partial=function(func){return createWrapper(func,16,slice(arguments,1))},lodash.partialRight=function(func){return createWrapper(func,32,null,slice(arguments,1))},lodash.pick=function(object,callback,thisArg){var result={};if("function"!=typeof callback)for(var index=-1,props=baseFlatten(arguments,!0,!1,1),length=isObject(object)?props.length:0;++index<length;){var key=props[index];key in object&&(result[key]=object[key])}else callback=lodash.createCallback(callback,thisArg,3),forIn(object,function(value,key,object){callback(value,key,object)&&(result[key]=value)});return result},lodash.pluck=pluck,lodash.property=property,
lodash.pull=function(array){for(var args=arguments,argsIndex=0,argsLength=args.length,length=array?array.length:0;++argsIndex<argsLength;)for(var index=-1,value=args[argsIndex];++index<length;)array[index]===value&&(splice.call(array,index--,1),length--);return array},lodash.range=function(start,end,step){start=+start||0,null==end&&(end=start,start=0);for(var index=-1,length=nativeMax(0,ceil((end-start)/((step="number"==typeof step?step:+step||1)||1))),result=Array(length);++index<length;)result[index]=start,start+=step;return result},lodash.reject=function(collection,callback,thisArg){return callback=lodash.createCallback(callback,thisArg,3),filter(
collection,function(value,index,collection){return!callback(value,index,collection)})},lodash.remove=function(array,callback,thisArg){var index=-1,length=array?array.length:0,result=[];for(callback=lodash.createCallback(callback,thisArg,3);++index<length;){var value=array[index];callback(value,index,array)&&(result.push(value),splice.call(array,index--,1),length--)}return result},lodash.rest=rest,lodash.shuffle=shuffle,lodash.sortBy=function(collection,callback,thisArg){var index=-1,isArr=isArray(callback),length=collection?collection.length:0,result=Array("number"==typeof length?length:0);for(isArr||(callback=lodash.createCallback(callback,thisArg,3)),
forEach(collection,function(value,key,collection){var object=result[++index]=getObject();isArr?object.criteria=map(callback,function(key){return value[key]}):(object.criteria=getArray())[0]=callback(value,key,collection),object.index=index,object.value=value}),length=result.length,result.sort(compareAscending);length--;){var object=result[length];result[length]=object.value,isArr||releaseArray(object.criteria),releaseObject(object)}return result},lodash.tap=function(value,interceptor){return interceptor(value),value},lodash.throttle=function(func,wait,options){var leading=!0,trailing=!0;if(!isFunction(func))throw new TypeError
;return!1===options?leading=!1:isObject(options)&&(leading="leading"in options?options.leading:leading,trailing="trailing"in options?options.trailing:trailing),debounceOptions.leading=leading,debounceOptions.maxWait=wait,debounceOptions.trailing=trailing,debounce(func,wait,debounceOptions)},lodash.times=function(n,callback,thisArg){n=-1<(n=+n)?n:0;var index=-1,result=Array(n);for(callback=baseCreateCallback(callback,thisArg,1);++index<n;)result[index]=callback(index);return result},lodash.toArray=function(collection){return collection&&"number"==typeof collection.length?support.unindexedChars&&isString(collection)?collection.split(""):slice(collection
):values(collection)},lodash.transform=function(object,callback,accumulator,thisArg){var ctor,isArr=isArray(object);return null==accumulator&&(accumulator=isArr?[]:baseCreate((ctor=object&&object.constructor)&&ctor.prototype)),callback&&(callback=lodash.createCallback(callback,thisArg,4),(isArr?baseEach:forOwn)(object,function(value,index,object){return callback(accumulator,value,index,object)})),accumulator},lodash.union=function(){return baseUniq(baseFlatten(arguments,!0,!0))},lodash.uniq=uniq,lodash.values=values,lodash.where=where,lodash.without=function(array){return baseDifference(array,slice(arguments,1))},lodash.wrap=function(value,wrapper){
return createWrapper(wrapper,16,[value])},lodash.xor=function(){for(var index=-1,length=arguments.length;++index<length;){var result,array=arguments[index];(isArray(array)||isArguments(array))&&(result=result?baseUniq(baseDifference(result,array).concat(baseDifference(array,result))):array)}return result||[]},lodash.zip=zip,lodash.zipObject=zipObject,lodash.collect=map,lodash.drop=rest,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.extend=assign,lodash.methods=functions,lodash.object=zipObject,lodash.select=filter,lodash.tail=rest,lodash.unique=uniq,lodash.unzip=zip,mixin(lodash),lodash.clone=function(value,isDeep,callback,thisArg){
return"boolean"!=typeof isDeep&&null!=isDeep&&(thisArg=callback,callback=isDeep,isDeep=!1),baseClone(value,isDeep,"function"==typeof callback&&baseCreateCallback(callback,thisArg,1))},lodash.cloneDeep=function(value,callback,thisArg){return baseClone(value,!0,"function"==typeof callback&&baseCreateCallback(callback,thisArg,1))},lodash.contains=contains,lodash.escape=function(string){return null==string?"":String(string).replace(reUnescapedHtml,escapeHtmlChar)},lodash.every=every,lodash.find=find,lodash.findIndex=function(array,callback,thisArg){var index=-1,length=array?array.length:0;for(callback=lodash.createCallback(callback,thisArg,3);++index<length;)if(
callback(array[index],index,array))return index;return-1},lodash.findKey=function(object,callback,thisArg){var result;return callback=lodash.createCallback(callback,thisArg,3),forOwn(object,function(value,key,object){if(callback(value,key,object))return result=key,!1}),result},lodash.findLast=function(collection,callback,thisArg){var result;return callback=lodash.createCallback(callback,thisArg,3),forEachRight(collection,function(value,index,collection){if(callback(value,index,collection))return result=value,!1}),result},lodash.findLastIndex=function(array,callback,thisArg){var length=array?array.length:0;for(callback=lodash.createCallback(callback,thisArg,3
);length--;)if(callback(array[length],length,array))return length;return-1},lodash.findLastKey=function(object,callback,thisArg){var result;return callback=lodash.createCallback(callback,thisArg,3),forOwnRight(object,function(value,key,object){if(callback(value,key,object))return result=key,!1}),result},lodash.has=function(object,key){return!!object&&hasOwnProperty.call(object,key)},lodash.identity=identity,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isBoolean=function(value){return!0===value||!1===value||value&&"object"==typeof value&&toString.call(value)==boolClass||!1},lodash.isDate=function(value){
return value&&"object"==typeof value&&toString.call(value)==dateClass||!1},lodash.isElement=function(value){return value&&1===value.nodeType||!1},lodash.isEmpty=function(value){var result=!0;if(!value)return result;var className=toString.call(value),length=value.length;return className==arrayClass||className==stringClass||(support.argsClass?className==argsClass:isArguments(value))||className==objectClass&&"number"==typeof length&&isFunction(value.splice)?!length:(forOwn(value,function(){return result=!1}),result)},lodash.isEqual=function(a,b,callback,thisArg){return baseIsEqual(a,b,"function"==typeof callback&&baseCreateCallback(callback,thisArg,2))},
lodash.isFinite=function(value){return nativeIsFinite(value)&&!nativeIsNaN(parseFloat(value))},lodash.isFunction=isFunction,lodash.isNaN=function(value){return isNumber(value)&&value!=+value},lodash.isNull=function(value){return null===value},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isRegExp=function(value){return value&&objectTypes[typeof value]&&toString.call(value)==regexpClass||!1},lodash.isString=isString,lodash.isUndefined=function(value){return void 0===value},lodash.lastIndexOf=function(array,value,fromIndex){var index=array?array.length:0;for("number"==typeof fromIndex&&(index=(
fromIndex<0?nativeMax(0,index+fromIndex):nativeMin(fromIndex,index-1))+1);index--;)if(array[index]===value)return index;return-1},lodash.mixin=mixin,lodash.noConflict=function(){return context._=oldDash,this},lodash.noop=noop,lodash.now=now,lodash.parseInt=parseInt,lodash.random=function(min,max,rand){var noMin=null==min,noMax=null==max;return null==rand&&("boolean"==typeof min&&noMax?(rand=min,min=1):noMax||"boolean"!=typeof max||(rand=max,noMax=!0)),noMin&&noMax&&(max=1),min=+min||0,noMax?(max=min,min=0):max=+max||0,rand||min%1||max%1?(rand=nativeRandom(),nativeMin(min+rand*(max-min+parseFloat("1e-"+((rand+"").length-1))),max)):baseRandom(min,max)},
lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.result=function(object,key){if(object){var value=object[key];return isFunction(value)?object[key]():value}},lodash.runInContext=runInContext,lodash.size=function(collection){var length=collection?collection.length:0;return"number"==typeof length?length:keys(collection).length},lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.template=template,lodash.unescape=function(string){return null==string?"":String(string).replace(reEscapedHtml,unescapeHtmlChar)},lodash.uniqueId=function(prefix){var id=++idCounter;return String(null==prefix?"":prefix)+id},lodash.all=every,lodash.any=some,
lodash.detect=find,lodash.findWhere=find,lodash.foldl=reduce,lodash.foldr=reduceRight,lodash.include=contains,lodash.inject=reduce,mixin((source={},forOwn(lodash,function(func,methodName){lodash.prototype[methodName]||(source[methodName]=func)}),source),!1),lodash.first=first,lodash.last=function(array,callback,thisArg){var n=0,length=array?array.length:0;if("number"!=typeof callback&&null!=callback){var index=length;for(callback=lodash.createCallback(callback,thisArg,3);index--&&callback(array[index],index,array);)n++}else if(null==(n=callback)||thisArg)return array?array[length-1]:undefined;return slice(array,nativeMax(0,length-n))},lodash.sample=function(
result,n,guard){return result&&"number"!=typeof result.length?result=values(result):support.unindexedChars&&isString(result)&&(result=result.split("")),null==n||guard?result?result[baseRandom(0,result.length-1)]:undefined:((result=shuffle(result)).length=nativeMin(nativeMax(0,n),result.length),result)},lodash.take=first,lodash.head=first,forOwn(lodash,function(func,methodName){var callbackable="sample"!==methodName;lodash.prototype[methodName]||(lodash.prototype[methodName]=function(n,guard){var chainAll=this.__chain__,result=func(this.__wrapped__,n,guard);return chainAll||null!=n&&(!guard||callbackable&&"function"==typeof n)?new lodashWrapper(result,
chainAll):result})}),lodash.VERSION="2.4.1",lodash.prototype.chain=function(){return this.__chain__=!0,this},lodash.prototype.toString=function(){return String(this.__wrapped__)},lodash.prototype.value=wrapperValueOf,lodash.prototype.valueOf=wrapperValueOf,baseEach(["join","pop","shift"],function(methodName){var func=arrayRef[methodName];lodash.prototype[methodName]=function(){var chainAll=this.__chain__,result=func.apply(this.__wrapped__,arguments);return chainAll?new lodashWrapper(result,chainAll):result}}),baseEach(["push","reverse","sort","unshift"],function(methodName){var func=arrayRef[methodName];lodash.prototype[methodName]=function(){
return func.apply(this.__wrapped__,arguments),this}}),baseEach(["concat","slice","splice"],function(methodName){var func=arrayRef[methodName];lodash.prototype[methodName]=function(){return new lodashWrapper(func.apply(this.__wrapped__,arguments),this.__chain__)}}),support.spliceObjects||baseEach(["pop","shift","splice"],function(methodName){var func=arrayRef[methodName],isSplice="splice"==methodName;lodash.prototype[methodName]=function(){var chainAll=this.__chain__,value=this.__wrapped__,result=func.apply(value,arguments);return 0===value.length&&delete value[0],chainAll||isSplice?new lodashWrapper(result,chainAll):result}}),lodash._baseEach=baseEach,
lodash._iteratorTemplate=iteratorTemplate,lodash._shimKeys=shimKeys,lodash}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(root._=_,define("lodash",[],function(){return _})):freeExports&&freeModule?moduleExports?(freeModule.exports=_)._=_:freeExports._=_:root._=_}.call(this),define("core/format",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var pattern=/(%[sdj])/g;return function(message){var replacements=Array.prototype.slice.call(arguments,1);return _.reduce(message.match(pattern),function(acc,match,index){var replacement="";if(void 0!==replacements[index]){switch(match){
case"%d":replacement=Number(replacements[index]);break;case"%j":try{replacement=JSON.stringify(replacements[index]).replace(/"/g,"")}catch(e){}break;default:replacement=replacements[index]}message=message.replace(match,replacement)}return message},message)}}),define("i18n",["json!i18ntr/messages.json","core/format"],function(i18nTr,format){"use strict";var translations=i18nTr.translations;return function(localized){localized=translations[localized]||localized;return 1<arguments.length&&(localized=format.apply(null,[localized].concat([].slice.call(arguments,1)))),localized}}),function(global,factory){
"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/dompurify/purify",factory):global.DOMPurify=factory()}(this,function(){"use strict";var seal=Object.freeze||function(x){return x},html=seal(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header",
"hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg=seal(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph",
"glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),svgFilters=seal(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mathMl=seal(["math","menclose","merror","mfenced","mfrac","mglyph","mi"
,"mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),text=seal(["#text"]),seal=Object.freeze||function(x){return x},html$1=seal(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media"
,"method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),svg$1=seal(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation",
"color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end",
"marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset",
"stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl$1=seal(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id",
"largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=seal(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,apply$1=("undefined"!=typeof Reflect&&Reflect).apply;function addToSet(set,array){
setPrototypeOf&&setPrototypeOf(set,null);for(var l=array.length;l--;){var lcElement,element=array[l];"string"!=typeof element||(lcElement=element.toLowerCase())!==element&&(Object.isFrozen(array)||(array[l]=lcElement),element=lcElement),set[element]=!0}return set}function clone(object){var newObject={},property=void 0;for(property in object)apply$1(hasOwnProperty,object,[property])&&(newObject[property]=object[property]);return newObject}apply$1=apply$1||function(fun,thisValue,args){return fun.apply(thisValue,args)};var seal=Object.seal||function(x){return x},MUSTACHE_EXPR=seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ERB_EXPR=seal(/<%[\s\S]*|[\s\S]*%>/gm),
DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i]
;return arr2}return Array.from(arr)}var apply=("undefined"!=typeof Reflect&&Reflect).apply,arraySlice=Array.prototype.slice,freeze=Object.freeze,getGlobal=function(){return"undefined"==typeof window?null:window},apply=apply||function(fun,thisValue,args){return fun.apply(thisValue,args)},_createTrustedTypesPolicy=function(trustedTypes,document){if("object"!==(void 0===trustedTypes?"undefined":_typeof(trustedTypes))||"function"!=typeof trustedTypes.createPolicy)return null;var suffix=null;document.currentScript&&document.currentScript.hasAttribute("data-tt-policy-suffix")&&(suffix=document.currentScript.getAttribute("data-tt-policy-suffix"))
;var policyName="dompurify"+(suffix?"#"+suffix:"");try{return trustedTypes.createPolicy(policyName,{createHTML:function(html$$1){return html$$1}})}catch(e){return console.warn("TrustedTypes policy "+policyName+" could not be created."),null}};return function createDOMPurify(TrustedTypes){var window=0<arguments.length&&void 0!==TrustedTypes?TrustedTypes:getGlobal(),DOMPurify=function(root){return createDOMPurify(root)};if(DOMPurify.version="1.0.9",DOMPurify.removed=[],!window||!window.document||9!==window.document.nodeType)return DOMPurify.isSupported=!1,DOMPurify;var originalDocument=window.document,useDOMParser=!1,removeTitle=!1,document=window.document,
DocumentFragment=window.DocumentFragment,template=window.HTMLTemplateElement,Node=window.Node,NodeFilter=window.NodeFilter,TrustedTypes=window.NamedNodeMap,NamedNodeMap=void 0===TrustedTypes?window.NamedNodeMap||window.MozNamedAttrMap:TrustedTypes,Text=window.Text,Comment=window.Comment,DOMParser=window.DOMParser,TrustedTypes=window.TrustedTypes;"function"!=typeof template||(template=document.createElement("template")).content&&template.content.ownerDocument&&(document=template.content.ownerDocument);var trustedTypesPolicy=_createTrustedTypesPolicy(TrustedTypes,originalDocument),emptyHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(""):"",
implementation=document.implementation,createNodeIterator=document.createNodeIterator,getElementsByTagName=document.getElementsByTagName,createDocumentFragment=document.createDocumentFragment,importNode=originalDocument.importNode,hooks={};DOMPurify.isSupported=implementation&&void 0!==implementation.createHTMLDocument&&9!==document.documentMode;var USE_PROFILES,MUSTACHE_EXPR$$1=MUSTACHE_EXPR,ERB_EXPR$$1=ERB_EXPR,DATA_ATTR$$1=DATA_ATTR,ARIA_ATTR$$1=ARIA_ATTR,IS_SCRIPT_OR_DATA$$1=IS_SCRIPT_OR_DATA,ATTR_WHITESPACE$$1=ATTR_WHITESPACE,IS_ALLOWED_URI$$1=IS_ALLOWED_URI,ALLOWED_TAGS=null,DEFAULT_ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(html),
_toConsumableArray(svg),_toConsumableArray(svgFilters),_toConsumableArray(mathMl),_toConsumableArray(text))),ALLOWED_ATTR=null,DEFAULT_ALLOWED_ATTR=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(mathMl$1),_toConsumableArray(xml))),FORBID_TAGS=null,FORBID_ATTR=null,ALLOW_ARIA_ATTR=!0,ALLOW_DATA_ATTR=!0,ALLOW_UNKNOWN_PROTOCOLS=!1,SAFE_FOR_JQUERY=!1,SAFE_FOR_TEMPLATES=!1,WHOLE_DOCUMENT=!1,SET_CONFIG=!1,FORCE_BODY=!1,RETURN_DOM=!1,RETURN_DOM_FRAGMENT=!1,RETURN_DOM_IMPORT=!1,SANITIZE_DOM=!0,KEEP_CONTENT=!0,IN_PLACE=!1,FORBID_CONTENTS=addToSet({},["audio","head","math","script","style","template","svg","video"]),
DATA_URI_TAGS=addToSet({},["audio","video","img","source","image"]),URI_SAFE_ATTRIBUTES=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),CONFIG=null,formElement=document.createElement("form"),_parseConfig=function(cfg){CONFIG&&CONFIG===cfg||(cfg&&"object"===(void 0===cfg?"undefined":_typeof(cfg))||(cfg={}),ALLOWED_TAGS="ALLOWED_TAGS"in cfg?addToSet({},cfg.ALLOWED_TAGS):DEFAULT_ALLOWED_TAGS,ALLOWED_ATTR="ALLOWED_ATTR"in cfg?addToSet({},cfg.ALLOWED_ATTR):DEFAULT_ALLOWED_ATTR,FORBID_TAGS="FORBID_TAGS"in cfg?addToSet({},cfg.FORBID_TAGS):{},FORBID_ATTR="FORBID_ATTR"in cfg?addToSet({},
cfg.FORBID_ATTR):{},USE_PROFILES="USE_PROFILES"in cfg&&cfg.USE_PROFILES,ALLOW_ARIA_ATTR=!1!==cfg.ALLOW_ARIA_ATTR,ALLOW_DATA_ATTR=!1!==cfg.ALLOW_DATA_ATTR,ALLOW_UNKNOWN_PROTOCOLS=cfg.ALLOW_UNKNOWN_PROTOCOLS||!1,SAFE_FOR_JQUERY=cfg.SAFE_FOR_JQUERY||!1,SAFE_FOR_TEMPLATES=cfg.SAFE_FOR_TEMPLATES||!1,WHOLE_DOCUMENT=cfg.WHOLE_DOCUMENT||!1,RETURN_DOM=cfg.RETURN_DOM||!1,RETURN_DOM_FRAGMENT=cfg.RETURN_DOM_FRAGMENT||!1,RETURN_DOM_IMPORT=cfg.RETURN_DOM_IMPORT||!1,FORCE_BODY=cfg.FORCE_BODY||!1,SANITIZE_DOM=!1!==cfg.SANITIZE_DOM,KEEP_CONTENT=!1!==cfg.KEEP_CONTENT,IN_PLACE=cfg.IN_PLACE||!1,IS_ALLOWED_URI$$1=cfg.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$$1,SAFE_FOR_TEMPLATES&&(
ALLOW_DATA_ATTR=!1),RETURN_DOM_FRAGMENT&&(RETURN_DOM=!0),USE_PROFILES&&(ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(text))),ALLOWED_ATTR=[],!0===USE_PROFILES.html&&(addToSet(ALLOWED_TAGS,html),addToSet(ALLOWED_ATTR,html$1)),!0===USE_PROFILES.svg&&(addToSet(ALLOWED_TAGS,svg),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.svgFilters&&(addToSet(ALLOWED_TAGS,svgFilters),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.mathMl&&(addToSet(ALLOWED_TAGS,mathMl),addToSet(ALLOWED_ATTR,mathMl$1),addToSet(ALLOWED_ATTR,xml))),cfg.ADD_TAGS&&(ALLOWED_TAGS===DEFAULT_ALLOWED_TAGS&&(ALLOWED_TAGS=clone(ALLOWED_TAGS
)),addToSet(ALLOWED_TAGS,cfg.ADD_TAGS)),cfg.ADD_ATTR&&(ALLOWED_ATTR===DEFAULT_ALLOWED_ATTR&&(ALLOWED_ATTR=clone(ALLOWED_ATTR)),addToSet(ALLOWED_ATTR,cfg.ADD_ATTR)),cfg.ADD_URI_SAFE_ATTR&&addToSet(URI_SAFE_ATTRIBUTES,cfg.ADD_URI_SAFE_ATTR),KEEP_CONTENT&&(ALLOWED_TAGS["#text"]=!0),WHOLE_DOCUMENT&&addToSet(ALLOWED_TAGS,["html","head","body"]),ALLOWED_TAGS.table&&addToSet(ALLOWED_TAGS,["tbody"]),freeze&&freeze(cfg),CONFIG=cfg)},_forceRemove=function(node){DOMPurify.removed.push({element:node});try{node.parentNode.removeChild(node)}catch(err){node.outerHTML=emptyHTML}},_removeAttribute=function(name,node){try{DOMPurify.removed.push({
attribute:node.getAttributeNode(name),from:node})}catch(err){DOMPurify.removed.push({attribute:null,from:node})}node.removeAttribute(name)},_initDocument=function(dirty){var body,doc=void 0,leadingWhitespace=void 0;if(FORCE_BODY?dirty="<remove></remove>"+dirty:(leadingWhitespace=(body=dirty.match(/^[\s]+/))&&body[0])&&(dirty=dirty.slice(leadingWhitespace.length)),useDOMParser)try{doc=(new DOMParser).parseFromString(dirty,"text/html")}catch(err){}return removeTitle&&addToSet(FORBID_TAGS,["title"]),doc&&doc.documentElement||((body=(doc=implementation.createHTMLDocument("")).body).parentNode.removeChild(body.parentNode.firstElementChild),
body.outerHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(dirty):dirty),leadingWhitespace&&doc.body.insertBefore(document.createTextNode(leadingWhitespace),doc.body.childNodes[0]||null),getElementsByTagName.call(doc,WHOLE_DOCUMENT?"html":"body")[0]};DOMPurify.isSupported&&(function(){try{_initDocument('<svg><p><style><img src="</style><img src=x onerror=1//">').querySelector("svg img")&&(useDOMParser=!0)}catch(err){}}(),function(){try{_initDocument("<x/><title>&lt;/title&gt;&lt;img&gt;").querySelector("title").innerHTML.match(/<\/title/)&&(removeTitle=!0)}catch(err){}}());function _sanitizeShadowDOM(fragment){var shadowNode,
shadowIterator=_createIterator(fragment);for(_executeHook("beforeSanitizeShadowDOM",fragment,null);shadowNode=shadowIterator.nextNode();)_executeHook("uponSanitizeShadowNode",shadowNode,null),_sanitizeElements(shadowNode)||(shadowNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(shadowNode.content),_sanitizeAttributes(shadowNode));_executeHook("afterSanitizeShadowDOM",fragment,null)}var _createIterator=function(root){return createNodeIterator.call(root.ownerDocument||root,root,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1)},_isNode=function(obj){return"object"===(
void 0===Node?"undefined":_typeof(Node))?obj instanceof Node:obj&&"object"===(void 0===obj?"undefined":_typeof(obj))&&"number"==typeof obj.nodeType&&"string"==typeof obj.nodeName},_executeHook=function(entryPoint,currentNode,data){hooks[entryPoint]&&hooks[entryPoint].forEach(function(hook){hook.call(DOMPurify,currentNode,data,CONFIG)})},_sanitizeElements=function(currentNode){var content=void 0;if(_executeHook("beforeSanitizeElements",currentNode,null),!((tagName=currentNode
)instanceof Text||tagName instanceof Comment||"string"==typeof tagName.nodeName&&"string"==typeof tagName.textContent&&"function"==typeof tagName.removeChild&&tagName.attributes instanceof NamedNodeMap&&"function"==typeof tagName.removeAttribute&&"function"==typeof tagName.setAttribute))return _forceRemove(currentNode),!0;var tagName=currentNode.nodeName.toLowerCase();if(_executeHook("uponSanitizeElement",currentNode,{tagName:tagName,allowedTags:ALLOWED_TAGS}),ALLOWED_TAGS[tagName]&&!FORBID_TAGS[tagName])return!SAFE_FOR_JQUERY||currentNode.firstElementChild||currentNode.content&&currentNode.content.firstElementChild||!/</g.test(currentNode.textContent)||(
DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.innerHTML?currentNode.innerHTML=currentNode.innerHTML.replace(/</g,"&lt;"):currentNode.innerHTML=currentNode.textContent.replace(/</g,"&lt;")),SAFE_FOR_TEMPLATES&&3===currentNode.nodeType&&(content=(content=(content=currentNode.textContent).replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," "),currentNode.textContent!==content&&(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.textContent=content)),_executeHook("afterSanitizeElements",currentNode,null),!1;if(KEEP_CONTENT&&!FORBID_CONTENTS[tagName]&&"function"==typeof currentNode.insertAdjacentHTML)try{
var htmlToInsert=currentNode.innerHTML;currentNode.insertAdjacentHTML("AfterEnd",trustedTypesPolicy?trustedTypesPolicy.createHTML(htmlToInsert):htmlToInsert)}catch(err){}return _forceRemove(currentNode),!0},_isValidAttribute=function(lcTag,lcName,value){if(SANITIZE_DOM&&("id"===lcName||"name"===lcName)&&(value in document||value in formElement))return!1;if(SAFE_FOR_TEMPLATES&&(value=(value=value.replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," ")),!(ALLOW_DATA_ATTR&&DATA_ATTR$$1.test(lcName)||ALLOW_ARIA_ATTR&&ARIA_ATTR$$1.test(lcName))){if(!ALLOWED_ATTR[lcName]||FORBID_ATTR[lcName])return!1;if(!URI_SAFE_ATTRIBUTES[lcName]&&!IS_ALLOWED_URI$$1.test(
value.replace(ATTR_WHITESPACE$$1,""))&&("src"!==lcName&&"xlink:href"!==lcName||"script"===lcTag||0!==value.indexOf("data:")||!DATA_URI_TAGS[lcTag])&&(!ALLOW_UNKNOWN_PROTOCOLS||IS_SCRIPT_OR_DATA$$1.test(value.replace(ATTR_WHITESPACE$$1,"")))&&value)return!1}return!0},_sanitizeAttributes=function(currentNode){var attr=void 0,l=void 0;_executeHook("beforeSanitizeAttributes",currentNode,null);var attributes=currentNode.attributes;if(attributes){for(var hookEvent={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ALLOWED_ATTR},l=attributes.length;l--;){var name=(attr=attributes[l]).name,namespaceURI=attr.namespaceURI,value=attr.value.trim(),
lcName=name.toLowerCase();if(hookEvent.attrName=lcName,hookEvent.attrValue=value,hookEvent.keepAttr=!0,_executeHook("uponSanitizeAttribute",currentNode,hookEvent),value=hookEvent.attrValue,"name"===lcName&&"IMG"===currentNode.nodeName&&attributes.id)lcTag=attributes.id,attributes=apply(arraySlice,attributes,[]),_removeAttribute("id",currentNode),_removeAttribute(name,currentNode),attributes.indexOf(lcTag)>l&&currentNode.setAttribute("id",lcTag.value);else{if("INPUT"===currentNode.nodeName&&"type"===lcName&&"file"===value&&(ALLOWED_ATTR[lcName]||!FORBID_ATTR[lcName]))continue;"id"===name&&currentNode.setAttribute(name,""),_removeAttribute(name,currentNode)}
if(hookEvent.keepAttr){var lcTag=currentNode.nodeName.toLowerCase();if(_isValidAttribute(lcTag,lcName,value))try{namespaceURI?currentNode.setAttributeNS(namespaceURI,name,value):currentNode.setAttribute(name,value),DOMPurify.removed.pop()}catch(err){}}}_executeHook("afterSanitizeAttributes",currentNode,null)}};return DOMPurify.sanitize=function(serializedHTML,importedNode){var currentNode,body=void 0,oldNode=void 0,returnNode=void 0;if("string"!=typeof(serializedHTML=serializedHTML||"\x3c!--\x3e")&&!_isNode(serializedHTML)){if("function"!=typeof serializedHTML.toString)throw new TypeError("toString is not a function");if("string"!=typeof(
serializedHTML=serializedHTML.toString()))throw new TypeError("dirty is not a string, aborting")}if(!DOMPurify.isSupported){if("object"===_typeof(window.toStaticHTML)||"function"==typeof window.toStaticHTML){if("string"==typeof serializedHTML)return window.toStaticHTML(serializedHTML);if(_isNode(serializedHTML))return window.toStaticHTML(serializedHTML.outerHTML)}return serializedHTML}if(SET_CONFIG||_parseConfig(importedNode),DOMPurify.removed=[],!IN_PLACE)if(serializedHTML instanceof Node)1===(importedNode=(body=_initDocument("\x3c!--\x3e")).ownerDocument.importNode(serializedHTML,!0)
).nodeType&&"BODY"===importedNode.nodeName?body=importedNode:body.appendChild(importedNode);else{if(!RETURN_DOM&&!WHOLE_DOCUMENT&&-1===serializedHTML.indexOf("<"))return trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML;if(!(body=_initDocument(serializedHTML)))return RETURN_DOM?null:emptyHTML}body&&FORCE_BODY&&_forceRemove(body.firstChild);for(var nodeIterator=_createIterator(IN_PLACE?serializedHTML:body);currentNode=nodeIterator.nextNode();)3===currentNode.nodeType&&currentNode===oldNode||_sanitizeElements(currentNode)||(currentNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(currentNode.content),
_sanitizeAttributes(currentNode),oldNode=currentNode);if(oldNode=null,IN_PLACE)return serializedHTML;if(RETURN_DOM){if(RETURN_DOM_FRAGMENT)for(returnNode=createDocumentFragment.call(body.ownerDocument);body.firstChild;)returnNode.appendChild(body.firstChild);else returnNode=body;return RETURN_DOM_IMPORT&&(returnNode=importNode.call(originalDocument,returnNode,!0)),returnNode}return serializedHTML=WHOLE_DOCUMENT?body.outerHTML:body.innerHTML,trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML},DOMPurify.setConfig=function(cfg){_parseConfig(cfg),SET_CONFIG=!0},DOMPurify.clearConfig=function(){CONFIG=null,SET_CONFIG=!1},
DOMPurify.isValidAttribute=function(lcTag,lcName,value){return CONFIG||_parseConfig({}),lcTag=lcTag.toLowerCase(),lcName=lcName.toLowerCase(),_isValidAttribute(lcTag,lcName,value)},DOMPurify.addHook=function(entryPoint,hookFunction){"function"==typeof hookFunction&&(hooks[entryPoint]=hooks[entryPoint]||[],hooks[entryPoint].push(hookFunction))},DOMPurify.removeHook=function(entryPoint){hooks[entryPoint]&&hooks[entryPoint].pop()},DOMPurify.removeHooks=function(entryPoint){hooks[entryPoint]&&(hooks[entryPoint]=[])},DOMPurify.removeAllHooks=function(){hooks={}},DOMPurify}()}),define("tpl",["handlebars","i18n","lodash","lib/dompurify/purify"],function(hb,__,_,
DOMPurify){"use strict";var buildMap={},extension=".tpl";return hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"==typeof value&&(value=_.values(value).join(" ")):value="",
void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return void 0!==context[name]?new hb.SafeString(context[name]):""}),
hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)}),{load:function(name,req,onload,config){extension=extension||config.extension,config.isBuild?(buildMap[name]=fs.readFileSync(req.toUrl(name+extension)).toString().trim(),onload()):req(["text!"+name+extension],function(raw){onload(function(){return hb.compile(raw).apply(hb,arguments).trim()})})},write:function(pluginName,moduleName,write){moduleName in buildMap&&write("define('tpl!"+moduleName+"', ['handlebars'], function(hb){ \nreturn hb.template("+hb.precompile(buildMap[moduleName]).toString()+");\n});\n")}}}),function(window,undefined){
function fcamelCase(all,letter){return letter.toUpperCase()}function completed(event){!document.addEventListener&&"load"!==event.type&&"complete"!==document.readyState||(detach(),jQuery.ready())}var readyList,rootjQuery,core_strundefined=typeof undefined,document=window.document,location=window.location,_jQuery=window.jQuery,_$=window.$,class2type={},core_deletedIds=[],core_concat=core_deletedIds.concat,core_push=core_deletedIds.push,core_slice=core_deletedIds.slice,core_indexOf=core_deletedIds.indexOf,core_toString=class2type.toString,core_hasOwn=class2type.hasOwnProperty,core_trim="1.9.1".trim,jQuery=function(selector,context){return new jQuery.fn.init(
selector,context,rootjQuery)},core_pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,core_rnotwhite=/\S+/g,rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rquickExpr=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rvalidchars=/^[\],:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,detach=function(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",completed,!1),window.removeEventListener("load",completed,!1)):(document.detachEvent(
"onreadystatechange",completed),window.detachEvent("onload",completed))};function isArraylike(obj){var length=obj.length,type=jQuery.type(obj);return!jQuery.isWindow(obj)&&(!(1!==obj.nodeType||!length)||("array"===type||"function"!==type&&(0===length||"number"==typeof length&&0<length&&length-1 in obj)))}jQuery.fn=jQuery.prototype={jquery:"1.9.1",constructor:jQuery,init:function(selector,context,rootjQuery){var match,elem;if(!selector)return this;if("string"!=typeof selector)return selector.nodeType?(this.context=this[0]=selector,this.length=1,this):jQuery.isFunction(selector)?rootjQuery.ready(selector):(selector.selector!==undefined&&(
this.selector=selector.selector,this.context=selector.context),jQuery.makeArray(selector,this));if(!(match="<"===selector.charAt(0)&&">"===selector.charAt(selector.length-1)&&3<=selector.length?[null,selector,null]:rquickExpr.exec(selector))||!match[1]&&context)return(!context||context.jquery?context||rootjQuery:this.constructor(context)).find(selector);if(match[1]){if(context=context instanceof jQuery?context[0]:context,jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,!0)),rsingleTag.test(match[1])&&jQuery.isPlainObject(context))for(match in context)jQuery.isFunction(this[match])?this[match](
context[match]):this.attr(match,context[match]);return this}if((elem=document.getElementById(match[2]))&&elem.parentNode){if(elem.id!==match[2])return rootjQuery.find(selector);this.length=1,this[0]=elem}return this.context=document,this.selector=selector,this},selector:"",length:0,size:function(){return this.length},toArray:function(){return core_slice.call(this)},get:function(num){return null==num?this.toArray():num<0?this[this.length+num]:this[num]},pushStack:function(ret){ret=jQuery.merge(this.constructor(),ret);return ret.prevObject=this,ret.context=this.context,ret},each:function(callback,args){return jQuery.each(this,callback,args)},ready:function(fn
){return jQuery.ready.promise().done(fn),this},slice:function(){return this.pushStack(core_slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(j){var len=this.length,j=+j+(j<0?len:0);return this.pushStack(0<=j&&j<len?[this[j]]:[])},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},end:function(){return this.prevObject||this.constructor(null)},push:core_push,sort:[].sort,splice:[].splice},jQuery.fn.init.prototype=jQuery.fn,jQuery.extend=jQuery.fn.extend=function(){var copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,
length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[1]||{},i=2),"object"==typeof target||jQuery.isFunction(target)||(target={}),length===i&&(target=this,--i);i<length;i++)if(null!=(options=arguments[i]))for(name in options)clone=target[name],target!==(copy=options[name])&&(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))?(clone=copyIsArray?(copyIsArray=!1,clone&&jQuery.isArray(clone)?clone:[]):clone&&jQuery.isPlainObject(clone)?clone:{},target[name]=jQuery.extend(deep,clone,copy)):copy!==undefined&&(target[name]=copy));return target},jQuery.extend({noConflict:function(deep){
return window.$===jQuery&&(window.$=_$),deep&&window.jQuery===jQuery&&(window.jQuery=_jQuery),jQuery},isReady:!1,readyWait:1,holdReady:function(hold){hold?jQuery.readyWait++:jQuery.ready(!0)},ready:function(wait){if(!0===wait?!--jQuery.readyWait:!jQuery.isReady){if(!document.body)return setTimeout(jQuery.ready);(jQuery.isReady=!0)!==wait&&0<--jQuery.readyWait||(readyList.resolveWith(document,[jQuery]),jQuery.fn.trigger&&jQuery(document).trigger("ready").off("ready"))}},isFunction:function(obj){return"function"===jQuery.type(obj)},isArray:Array.isArray||function(obj){return"array"===jQuery.type(obj)},isWindow:function(obj){return null!=obj&&obj==obj.window},
isNumeric:function(obj){return!isNaN(parseFloat(obj))&&isFinite(obj)},type:function(obj){return null==obj?String(obj):"object"==typeof obj||"function"==typeof obj?class2type[core_toString.call(obj)]||"object":typeof obj},isPlainObject:function(obj){if(!obj||"object"!==jQuery.type(obj)||obj.nodeType||jQuery.isWindow(obj))return!1;try{if(obj.constructor&&!core_hasOwn.call(obj,"constructor")&&!core_hasOwn.call(obj.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(var key in obj);return key===undefined||core_hasOwn.call(obj,key)},isEmptyObject:function(obj){for(var name in obj)return!1;return!0},error:function(msg){throw new Error(msg)},
parseHTML:function(data,context,scripts){if(!data||"string"!=typeof data)return null;"boolean"==typeof context&&(scripts=context,context=!1),context=context||document;var parsed=rsingleTag.exec(data),scripts=!scripts&&[];return parsed?[context.createElement(parsed[1])]:(parsed=jQuery.buildFragment([data],context,scripts),scripts&&jQuery(scripts).remove(),jQuery.merge([],parsed.childNodes))},parseJSON:function(data){return window.JSON&&window.JSON.parse?window.JSON.parse(data):null===data?data:"string"==typeof data&&(data=jQuery.trim(data))&&rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))?new Function(
"return "+data)():void jQuery.error("Invalid JSON: "+data)},parseXML:function(data){var xml;if(!data||"string"!=typeof data)return null;try{window.DOMParser?xml=(new DOMParser).parseFromString(data,"text/xml"):((xml=new ActiveXObject("Microsoft.XMLDOM")).async="false",xml.loadXML(data))}catch(e){xml=undefined}return xml&&xml.documentElement&&!xml.getElementsByTagName("parsererror").length||jQuery.error("Invalid XML: "+data),xml},noop:function(){},globalEval:function(data){data&&jQuery.trim(data)&&(window.execScript||function(data){window.eval.call(window,data)})(data)},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,
fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()},each:function(obj,callback,args){var i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray)for(;i<length&&!1!==callback.apply(obj[i],args);i++);else for(i in obj)if(!1===callback.apply(obj[i],args))break}else if(isArray)for(;i<length&&!1!==callback.call(obj[i],i,obj[i]);i++);else for(i in obj)if(!1===callback.call(obj[i],i,obj[i]))break;return obj},trim:core_trim&&!core_trim.call("\ufeff ")?function(text){return null==text?"":core_trim.call(text)}:function(text){return null==text?"":(text+"").replace(rtrim,"")},makeArray:function(arr
,ret){ret=ret||[];return null!=arr&&(isArraylike(Object(arr))?jQuery.merge(ret,"string"==typeof arr?[arr]:arr):core_push.call(ret,arr)),ret},inArray:function(elem,arr,i){var len;if(arr){if(core_indexOf)return core_indexOf.call(arr,elem,i);for(len=arr.length,i=i?i<0?Math.max(0,len+i):i:0;i<len;i++)if(i in arr&&arr[i]===elem)return i}return-1},merge:function(first,second){var l=second.length,i=first.length,j=0;if("number"==typeof l)for(;j<l;j++)first[i++]=second[j];else for(;second[j]!==undefined;)first[i++]=second[j++];return first.length=i,first},grep:function(elems,callback,inv){var ret=[],i=0,length=elems.length;for(inv=!!inv;i<length;i++)inv!==!!callback(
elems[i],i)&&ret.push(elems[i]);return ret},map:function(elems,callback,arg){var value,i=0,length=elems.length,ret=[];if(isArraylike(elems))for(;i<length;i++)null!=(value=callback(elems[i],i,arg))&&(ret[ret.length]=value);else for(i in elems)null!=(value=callback(elems[i],i,arg))&&(ret[ret.length]=value);return core_concat.apply([],ret)},guid:1,proxy:function(fn,context){var args,proxy;return"string"==typeof context&&(proxy=fn[context],context=fn,fn=proxy),jQuery.isFunction(fn)?(args=core_slice.call(arguments,2),(proxy=function(){return fn.apply(context||this,args.concat(core_slice.call(arguments)))}).guid=fn.guid=fn.guid||jQuery.guid++,proxy):undefined},
access:function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,length=elems.length,bulk=null==key;if("object"===jQuery.type(key))for(i in chainable=!0,key)jQuery.access(elems,fn,i,key[i],!0,emptyGet,raw);else if(value!==undefined&&(chainable=!0,jQuery.isFunction(value)||(raw=!0),bulk&&(fn=raw?(fn.call(elems,value),null):(bulk=fn,function(elem,key,value){return bulk.call(jQuery(elem),value)})),fn))for(;i<length;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):length?fn(elems[0],key):emptyGet},now:function(){return(new Date).getTime()}}),jQuery.ready.promise=function(obj){if(!readyList)if(
readyList=jQuery.Deferred(),"complete"===document.readyState)setTimeout(jQuery.ready);else if(document.addEventListener)document.addEventListener("DOMContentLoaded",completed,!1),window.addEventListener("load",completed,!1);else{document.attachEvent("onreadystatechange",completed),window.attachEvent("onload",completed);var top=!1;try{top=null==window.frameElement&&document.documentElement}catch(e){}top&&top.doScroll&&!function doScrollCheck(){if(!jQuery.isReady){try{top.doScroll("left")}catch(e){return setTimeout(doScrollCheck,50)}detach(),jQuery.ready()}}()}return readyList.promise(obj)},jQuery.each(
"Boolean Number String Function Array Date RegExp Object Error".split(" "),function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()}),rootjQuery=jQuery(document);var optionsCache={};jQuery.Callbacks=function(options){options="string"==typeof options?optionsCache[options]||function(options){var object=optionsCache[options]={};return jQuery.each(options.match(core_rnotwhite)||[],function(_,flag){object[flag]=!0}),object}(options):jQuery.extend({},options);var firing,memory,fired,firingLength,firingIndex,firingStart,list=[],stack=!options.once&&[],fire=function(data){for(memory=options.memory&&data,fired=!0,firingIndex=firingStart||0,firingStart=0,
firingLength=list.length,firing=!0;list&&firingIndex<firingLength;firingIndex++)if(!1===list[firingIndex].apply(data[0],data[1])&&options.stopOnFalse){memory=!1;break}firing=!1,list&&(stack?stack.length&&fire(stack.shift()):memory?list=[]:self.disable())},self={add:function(){var start;return list&&(start=list.length,function add(args){jQuery.each(args,function(_,arg){var type=jQuery.type(arg);"function"===type?options.unique&&self.has(arg)||list.push(arg):arg&&arg.length&&"string"!==type&&add(arg)})}(arguments),firing?firingLength=list.length:memory&&(firingStart=start,fire(memory))),this},remove:function(){return list&&jQuery.each(arguments,function(_,arg
){for(var index;-1<(index=jQuery.inArray(arg,list,index));)list.splice(index,1),firing&&(index<=firingLength&&firingLength--,index<=firingIndex&&firingIndex--)}),this},has:function(fn){return fn?-1<jQuery.inArray(fn,list):!(!list||!list.length)},empty:function(){return list=[],this},disable:function(){return list=stack=memory=undefined,this},disabled:function(){return!list},lock:function(){return stack=undefined,memory||self.disable(),this},locked:function(){return!stack},fireWith:function(context,args){return args=[context,(args=args||[]).slice?args.slice():args],!list||fired&&!stack||(firing?stack.push(args):fire(args)),this},fire:function(){
return self.fireWith(this,arguments),this},fired:function(){return!!fired}};return self},jQuery.extend({Deferred:function(func){var tuples=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state},always:function(){return deferred.done(arguments).fail(arguments),this},then:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var action=tuple[0],fn=jQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]](function(){
var returned=fn&&fn.apply(this,arguments);returned&&jQuery.isFunction(returned.promise)?returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify):newDefer[action+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments)})}),fns=null}).promise()},promise:function(obj){return null!=obj?jQuery.extend(obj,promise):promise}},deferred={};return promise.pipe=promise.then,jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add,stateString&&list.add(function(){state=stateString},tuples[1^i][2].disable,tuples[2][2].lock),deferred[tuple[0]]=function(){
return deferred[tuple[0]+"With"](this===deferred?promise:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith}),promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(subordinate){function updateFunc(i,contexts,values){return function(value){contexts[i]=this,values[i]=1<arguments.length?core_slice.call(arguments):value,values===progressValues?deferred.notifyWith(contexts,values):--remaining||deferred.resolveWith(contexts,values)}}var progressValues,progressContexts,resolveContexts,i=0,resolveValues=core_slice.call(arguments),length=resolveValues.length,remaining=1!==length||subordinate&&jQuery.isFunction(
subordinate.promise)?length:0,deferred=1===remaining?subordinate:jQuery.Deferred();if(1<length)for(progressValues=new Array(length),progressContexts=new Array(length),resolveContexts=new Array(length);i<length;i++)resolveValues[i]&&jQuery.isFunction(resolveValues[i].promise)?resolveValues[i].promise().done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject).progress(updateFunc(i,progressContexts,progressValues)):--remaining;return remaining||deferred.resolveWith(resolveContexts,resolveValues),deferred.promise()}}),jQuery.support=function(){var support,all,a,input,select,fragment,opt,eventName,isSupported,i,div=document.createElement("div");if(
div.setAttribute("className","t"),div.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0],!all||!a||!all.length)return{};opt=(select=document.createElement("select")).appendChild(document.createElement("option")),input=div.getElementsByTagName("input")[0],a.style.cssText="top:1px;float:left;opacity:.5",support={getSetAttribute:"t"!==div.className,leadingWhitespace:3===div.firstChild.nodeType,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/top/.test(a.getAttribute("style")),
hrefNormalized:"/a"===a.getAttribute("href"),opacity:/^0.5/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:!!input.value,optSelected:opt.selected,enctype:!!document.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==document.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===document.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},input.checked=!0,support.noCloneChecked=input.cloneNode(!0).checked,select.disabled=!0,support.optDisabled=!opt.disabled;try{delete div.test}catch(e){support.deleteExpando=!1}for(i in(
input=document.createElement("input")).setAttribute("value",""),support.input=""===input.getAttribute("value"),input.value="t",input.setAttribute("type","radio"),support.radioValue="t"===input.value,input.setAttribute("checked","t"),input.setAttribute("name","t"),(fragment=document.createDocumentFragment()).appendChild(input),support.appendChecked=input.checked,support.checkClone=fragment.cloneNode(!0).cloneNode(!0).lastChild.checked,div.attachEvent&&(div.attachEvent("onclick",function(){support.noCloneEvent=!1}),div.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})div.setAttribute(eventName="on"+i,"t"),
support[i+"Bubbles"]=eventName in window||!1===div.attributes[eventName].expando;return div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle="content-box"===div.style.backgroundClip,jQuery(function(){var container,marginDiv,tds,divReset="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",body=document.getElementsByTagName("body")[0];body&&((container=document.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",body.appendChild(container).appendChild(div),
div.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(tds=div.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",isSupported=0===tds[0].offsetHeight,tds[0].style.display="",tds[1].style.display="none",support.reliableHiddenOffsets=isSupported&&0===tds[0].offsetHeight,div.innerHTML="",div.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",support.boxSizing=4===div.offsetWidth,support.doesNotIncludeMarginInBodyOffset=1!==body.offsetTop,window.getComputedStyle&&(
support.pixelPosition="1%"!==(window.getComputedStyle(div,null)||{}).top,support.boxSizingReliable="4px"===(window.getComputedStyle(div,null)||{width:"4px"}).width,(marginDiv=div.appendChild(document.createElement("div"))).style.cssText=div.style.cssText=divReset,marginDiv.style.marginRight=marginDiv.style.width="0",div.style.width="1px",support.reliableMarginRight=!parseFloat((window.getComputedStyle(marginDiv,null)||{}).marginRight)),typeof div.style.zoom!==core_strundefined&&(div.innerHTML="",div.style.cssText=divReset+"width:1px;padding:1px;display:inline;zoom:1",support.inlineBlockNeedsLayout=3===div.offsetWidth,div.style.display="block",
div.innerHTML="<div></div>",div.firstChild.style.width="5px",support.shrinkWrapBlocks=3!==div.offsetWidth,support.inlineBlockNeedsLayout&&(body.style.zoom=1)),body.removeChild(container),container=div=tds=marginDiv=null)}),all=select=fragment=a=input=null,support}();var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rmultiDash=/([A-Z])/g;function internalData(elem,name,data,pvt){if(jQuery.acceptData(elem)){var ret,internalKey=jQuery.expando,getByName="string"==typeof name,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,thisCache=isNode?elem[internalKey]:elem[internalKey]&&internalKey;if(thisCache&&cache[thisCache]&&(pvt||cache[thisCache].data
)||!getByName||data!==undefined)return thisCache||(isNode?elem[internalKey]=thisCache=core_deletedIds.pop()||jQuery.guid++:thisCache=internalKey),cache[thisCache]||(cache[thisCache]={},isNode||(cache[thisCache].toJSON=jQuery.noop)),"object"!=typeof name&&"function"!=typeof name||(pvt?cache[thisCache]=jQuery.extend(cache[thisCache],name):cache[thisCache].data=jQuery.extend(cache[thisCache].data,name)),thisCache=cache[thisCache],pvt||(thisCache.data||(thisCache.data={}),thisCache=thisCache.data),data!==undefined&&(thisCache[jQuery.camelCase(name)]=data),getByName?null==(ret=thisCache[name])&&(ret=thisCache[jQuery.camelCase(name)]):ret=thisCache,ret}}
function internalRemoveData(elem,name,pvt){if(jQuery.acceptData(elem)){var i,l,thisCache,isNode=elem.nodeType,cache=isNode?jQuery.cache:elem,id=isNode?elem[jQuery.expando]:jQuery.expando;if(cache[id]){if(name&&(thisCache=pvt?cache[id]:cache[id].data)){for((i=0,l=(name=jQuery.isArray(name)?name.concat(jQuery.map(name,jQuery.camelCase)):name in thisCache||(name=jQuery.camelCase(name))in thisCache?[name]:name.split(" ")).length);i<l;i++)delete thisCache[name[i]];if(!(pvt?isEmptyDataObject:jQuery.isEmptyObject)(thisCache))return}(pvt||(delete cache[id].data,isEmptyDataObject(cache[id])))&&(isNode?jQuery.cleanData([elem],!0
):jQuery.support.deleteExpando||cache!=cache.window?delete cache[id]:cache[id]=null)}}}function dataAttr(elem,key,data){if(data===undefined&&1===elem.nodeType){var name="data-"+key.replace(rmultiDash,"-$1").toLowerCase();if("string"==typeof(data=elem.getAttribute(name))){try{data="true"===data||"false"!==data&&("null"===data?null:+data+""===data?+data:rbrace.test(data)?jQuery.parseJSON(data):data)}catch(e){}jQuery.data(elem,key,data)}else data=undefined}return data}function isEmptyDataObject(obj){for(var name in obj)if(("data"!==name||!jQuery.isEmptyObject(obj[name]))&&"toJSON"!==name)return!1;return!0}jQuery.extend({cache:{},expando:"jQuery"+(
"1.9.1"+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(elem){return!!(elem=elem.nodeType?jQuery.cache[elem[jQuery.expando]]:elem[jQuery.expando])&&!isEmptyDataObject(elem)},data:function(elem,name,data){return internalData(elem,name,data)},removeData:function(elem,name){return internalRemoveData(elem,name)},_data:function(elem,name,data){return internalData(elem,name,data,!0)},_removeData:function(elem,name){return internalRemoveData(elem,name,!0)},acceptData:function(elem){if(elem.nodeType&&1!==elem.nodeType&&9!==elem.nodeType)return!1
;var noData=elem.nodeName&&jQuery.noData[elem.nodeName.toLowerCase()];return!noData||!0!==noData&&elem.getAttribute("classid")===noData}}),jQuery.fn.extend({data:function(key,value){var attrs,name,elem=this[0],i=0,data=null;if(key!==undefined)return"object"==typeof key?this.each(function(){jQuery.data(this,key)}):jQuery.access(this,function(value){return value===undefined?elem?dataAttr(elem,key,jQuery.data(elem,key)):null:void this.each(function(){jQuery.data(this,key,value)})},null,value,1<arguments.length,null,!0);if(this.length&&(data=jQuery.data(elem),1===elem.nodeType&&!jQuery._data(elem,"parsedAttrs"))){for(attrs=elem.attributes;i<attrs.length;i++)(
name=attrs[i].name).indexOf("data-")||(name=jQuery.camelCase(name.slice(5)),dataAttr(elem,name,data[name]));jQuery._data(elem,"parsedAttrs",!0)}return data},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})}}),jQuery.extend({queue:function(elem,type,data){var queue;if(elem)return type=(type||"fx")+"queue",queue=jQuery._data(elem,type),data&&(!queue||jQuery.isArray(data)?queue=jQuery._data(elem,type,jQuery.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type);"inprogress"===fn&&(
fn=queue.shift(),startLength--),(hooks.cur=fn)&&("fx"===type&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,function(){jQuery.dequeue(elem,type)},hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return jQuery._data(elem,key)||jQuery._data(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){jQuery._removeData(elem,type+"queue"),jQuery._removeData(elem,key)})})}}),jQuery.fn.extend({queue:function(type,data){var setter=2;return"string"!=typeof type&&(data=type,type="fx",setter--),arguments.length<setter?jQuery.queue(this[0],type):data===undefined?this:this.each(function(){
var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type),"fx"===type&&"inprogress"!==queue[0]&&jQuery.dequeue(this,type)})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},delay:function(time,type){return time=jQuery.fx&&jQuery.fx.speeds[time]||time,type=type||"fx",this.queue(type,function(next,hooks){var timeout=setTimeout(next,time);hooks.stop=function(){clearTimeout(timeout)}})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){function resolve(){--count||defer.resolveWith(elements,[elements])}var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length;for(
"string"!=typeof type&&(obj=type,type=undefined),type=type||"fx";i--;)(tmp=jQuery._data(elements[i],type+"queueHooks"))&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});var nodeHook,boolHook,rclass=/[\t\r\n]/g,rreturn=/\r/g,rfocusable=/^(?:input|select|textarea|button|object)$/i,rclickable=/^(?:a|area)$/i,rboolean=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,ruseDefault=/^(?:checked|selected)$/i,getSetAttribute=jQuery.support.getSetAttribute,getSetInput=jQuery.support.input;jQuery.fn.extend({attr:function(name,value){return jQuery.access(this,
jQuery.attr,name,value,1<arguments.length)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})},prop:function(name,value){return jQuery.access(this,jQuery.prop,name,value,1<arguments.length)},removeProp:function(name){return name=jQuery.propFix[name]||name,this.each(function(){try{this[name]=undefined,delete this[name]}catch(e){}})},addClass:function(value){var classes,elem,cur,clazz,j,i=0,len=this.length,proceed="string"==typeof value&&value;if(jQuery.isFunction(value))return this.each(function(j){jQuery(this).addClass(value.call(this,j,this.className))});if(proceed)for(classes=(value||"").match(core_rnotwhite)||[
];i<len;i++)if(cur=1===(elem=this[i]).nodeType&&(elem.className?(" "+elem.className+" ").replace(rclass," "):" ")){for(j=0;clazz=classes[j++];)cur.indexOf(" "+clazz+" ")<0&&(cur+=clazz+" ");elem.className=jQuery.trim(cur)}return this},removeClass:function(value){var classes,elem,cur,clazz,j,i=0,len=this.length,proceed=0===arguments.length||"string"==typeof value&&value;if(jQuery.isFunction(value))return this.each(function(j){jQuery(this).removeClass(value.call(this,j,this.className))});if(proceed)for(classes=(value||"").match(core_rnotwhite)||[];i<len;i++)if(cur=1===(elem=this[i]).nodeType&&(elem.className?(" "+elem.className+" ").replace(rclass," "):"")){
for(j=0;clazz=classes[j++];)for(;0<=cur.indexOf(" "+clazz+" ");)cur=cur.replace(" "+clazz+" "," ");elem.className=value?jQuery.trim(cur):""}return this},toggleClass:function(value,stateVal){var type=typeof value,isBool="boolean"==typeof stateVal;return jQuery.isFunction(value)?this.each(function(i){jQuery(this).toggleClass(value.call(this,i,this.className,stateVal),stateVal)}):this.each(function(){if("string"==type)for(var className,i=0,self=jQuery(this),state=stateVal,classNames=value.match(core_rnotwhite)||[];className=classNames[i++];)state=isBool?state:!self.hasClass(className),self[state?"addClass":"removeClass"](className
);else type!==core_strundefined&&"boolean"!=type||(this.className&&jQuery._data(this,"__className__",this.className),this.className=!this.className&&!1!==value&&jQuery._data(this,"__className__")||"")})},hasClass:function(selector){for(var className=" "+selector+" ",i=0,l=this.length;i<l;i++)if(1===this[i].nodeType&&0<=(" "+this[i].className+" ").replace(rclass," ").indexOf(className))return!0;return!1},val:function(value){var ret,hooks,isFunction,elem=this[0];return arguments.length?(isFunction=jQuery.isFunction(value),this.each(function(i){var val=jQuery(this);1===this.nodeType&&(null==(val=isFunction?value.call(this,i,val.val()):value
)?val="":"number"==typeof val?val+="":jQuery.isArray(val)&&(val=jQuery.map(val,function(value){return null==value?"":value+""})),(hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()])&&"set"in hooks&&hooks.set(this,val,"value")!==undefined||(this.value=val))})):elem?(hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()])&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined?ret:"string"==typeof(ret=elem.value)?ret.replace(rreturn,""):null==ret?"":ret:void 0}}),jQuery.extend({valHooks:{option:{get:function(elem){var val=elem.attributes.value;return!val||val.specified?elem.value:elem.text}},select:{
get:function(elem){for(var value,options=elem.options,index=elem.selectedIndex,one="select-one"===elem.type||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;i<max;i++)if(((value=options[i]).selected||i===index)&&(jQuery.support.optDisabled?!value.disabled:null===value.getAttribute("disabled"))&&(!value.parentNode.disabled||!jQuery.nodeName(value.parentNode,"optgroup"))){if(value=jQuery(value).val(),one)return value;values.push(value)}return values},set:function(elem,value){var values=jQuery.makeArray(value);return jQuery(elem).find("option").each(function(){this.selected=0<=jQuery.inArray(jQuery(this).val(),values)}),
values.length||(elem.selectedIndex=-1),values}}},attr:function(elem,name,value){var hooks,ret,notxml=elem.nodeType;if(elem&&3!==notxml&&8!==notxml&&2!==notxml)return typeof elem.getAttribute===core_strundefined?jQuery.prop(elem,name,value):((notxml=1!==notxml||!jQuery.isXMLDoc(elem))&&(name=name.toLowerCase(),hooks=jQuery.attrHooks[name]||(rboolean.test(name)?boolHook:nodeHook)),value===undefined?hooks&&notxml&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:(typeof elem.getAttribute!==core_strundefined&&(ret=elem.getAttribute(name)),null==ret?undefined:ret):null!==value?hooks&&notxml&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined?ret:(
elem.setAttribute(name,value+""),value):void jQuery.removeAttr(elem,name))},removeAttr:function(elem,value){var name,propName,i=0,attrNames=value&&value.match(core_rnotwhite);if(attrNames&&1===elem.nodeType)for(;name=attrNames[i++];)propName=jQuery.propFix[name]||name,rboolean.test(name)?!getSetAttribute&&ruseDefault.test(name)?elem[jQuery.camelCase("default-"+name)]=elem[propName]=!1:elem[propName]=!1:jQuery.attr(elem,name,""),elem.removeAttribute(getSetAttribute?name:propName)},attrHooks:{type:{set:function(elem,value){if(!jQuery.support.radioValue&&"radio"===value&&jQuery.nodeName(elem,"input")){var val=elem.value;return elem.setAttribute("type",value),
val&&(elem.value=val),value}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(elem&&3!==nType&&8!==nType&&2!==nType)return(1!==nType||!jQuery.isXMLDoc(elem))&&(name=jQuery.propFix[name]||name,hooks=jQuery.propHooks[name]),value!==undefined?hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined?ret:elem[name]=value:hooks&&"get"in hooks&&null!==(ret=hooks.get(elem
,name))?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var attributeNode=elem.getAttributeNode("tabindex");return attributeNode&&attributeNode.specified?parseInt(attributeNode.value,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined}}}}),boolHook={get:function(detail,name){var prop=jQuery.prop(detail,name),attr="boolean"==typeof prop&&detail.getAttribute(name),detail="boolean"==typeof prop?getSetInput&&getSetAttribute?null!=attr:ruseDefault.test(name)?detail[jQuery.camelCase("default-"+name)]:!!attr:detail.getAttributeNode(name);return detail&&!1!==detail.value?name.toLowerCase():undefined},set:function(elem,
value,name){return!1===value?jQuery.removeAttr(elem,name):getSetInput&&getSetAttribute||!ruseDefault.test(name)?elem.setAttribute(!getSetAttribute&&jQuery.propFix[name]||name,name):elem[jQuery.camelCase("default-"+name)]=elem[name]=!0,name}},getSetInput&&getSetAttribute||(jQuery.attrHooks.value={get:function(elem,ret){ret=elem.getAttributeNode(ret);return jQuery.nodeName(elem,"input")?elem.defaultValue:ret&&ret.specified?ret.value:undefined},set:function(elem,value,name){if(!jQuery.nodeName(elem,"input"))return nodeHook&&nodeHook.set(elem,value,name);elem.defaultValue=value}}),getSetAttribute||(nodeHook=jQuery.valHooks.button={get:function(ret,name){
ret=ret.getAttributeNode(name);return ret&&("id"===name||"name"===name||"coords"===name?""!==ret.value:ret.specified)?ret.value:undefined},set:function(elem,value,name){var ret=elem.getAttributeNode(name);return ret||elem.setAttributeNode(ret=elem.ownerDocument.createAttribute(name)),ret.value=value+="","value"===name||value===elem.getAttribute(name)?value:undefined}},jQuery.attrHooks.contenteditable={get:nodeHook.get,set:function(elem,value,name){nodeHook.set(elem,""!==value&&value,name)}},jQuery.each(["width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{set:function(elem,value){if(""===value
)return elem.setAttribute(name,"auto"),value}})})),jQuery.support.hrefNormalized||(jQuery.each(["href","src","width","height"],function(i,name){jQuery.attrHooks[name]=jQuery.extend(jQuery.attrHooks[name],{get:function(ret){ret=ret.getAttribute(name,2);return null==ret?undefined:ret}})}),jQuery.each(["href","src"],function(i,name){jQuery.propHooks[name]={get:function(elem){return elem.getAttribute(name,4)}}})),jQuery.support.style||(jQuery.attrHooks.style={get:function(elem){return elem.style.cssText||undefined},set:function(elem,value){return elem.style.cssText=value+""}}),jQuery.support.optSelected||(jQuery.propHooks.selected=jQuery.extend(
jQuery.propHooks.selected,{get:function(parent){parent=parent.parentNode;return parent&&(parent.selectedIndex,parent.parentNode&&parent.parentNode.selectedIndex),null}})),jQuery.support.enctype||(jQuery.propFix.enctype="encoding"),jQuery.support.checkOn||jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={get:function(elem){return null===elem.getAttribute("value")?"on":elem.value}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]=jQuery.extend(jQuery.valHooks[this],{set:function(elem,value){if(jQuery.isArray(value))return elem.checked=0<=jQuery.inArray(jQuery(elem).val(),value)}})})
;var rformElems=/^(?:input|select|textarea)$/i,rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;function returnTrue(){return!0}function returnFalse(){return!1}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var events,t,handleObjIn,special,eventHandle,handleObj,type,namespaces,handlers,elemData=jQuery._data(elem);if(elemData){for(handler.handler&&(handler=(handleObjIn=handler).handler,selector=handleObjIn.selector),handler.guid||(handler.guid=jQuery.guid++),(events=elemData.events)||(events=elemData.events={}),(eventHandle=elemData.handle)||(
(eventHandle=elemData.handle=function(e){return typeof jQuery===core_strundefined||e&&jQuery.event.triggered===e.type?undefined:jQuery.event.dispatch.apply(eventHandle.elem,arguments)}).elem=elem),t=(types=(types||"").match(core_rnotwhite)||[""]).length;t--;)type=handlers=(handleObj=rtypenamespace.exec(types[t])||[])[1],namespaces=(handleObj[2]||"").split(".").sort(),special=jQuery.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=jQuery.event.special[type]||{},handleObj=jQuery.extend({type:type,origType:handlers,data:data,handler:handler,guid:handler.guid,selector:selector,
needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn),(handlers=events[type])||((handlers=events[type]=[]).delegateCount=0,special.setup&&!1!==special.setup.call(elem,data,namespaces,eventHandle)||(elem.addEventListener?elem.addEventListener(type,eventHandle,!1):elem.attachEvent&&elem.attachEvent("on"+type,eventHandle))),special.add&&(special.add.call(elem,handleObj),handleObj.handler.guid||(handleObj.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,handleObj):handlers.push(handleObj),jQuery.event.global[type]=!0;elem=null}},remove:function(elem,types,handler,selector,
mappedTypes){var j,handleObj,tmp,origCount,t,events,special,handlers,type,namespaces,origType,elemData=jQuery.hasData(elem)&&jQuery._data(elem);if(elemData&&(events=elemData.events)){for(t=(types=(types||"").match(core_rnotwhite)||[""]).length;t--;)if(type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type){for(special=jQuery.event.special[type]||{},handlers=events[type=(selector?special.delegateType:special.bindType)||type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],
!mappedTypes&&origType!==handleObj.origType||handler&&handler.guid!==handleObj.guid||tmp&&!tmp.test(handleObj.namespace)||selector&&selector!==handleObj.selector&&("**"!==selector||!handleObj.selector)||(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&(special.teardown&&!1!==special.teardown.call(elem,namespaces,elemData.handle)||jQuery.removeEvent(elem,type,elemData.handle),delete events[type])}else for(type in events)jQuery.event.remove(elem,type+types[t],handler,selector,!0);jQuery.isEmptyObject(events)&&(delete elemData.handle,jQuery._removeData(elem,
"events"))}},trigger:function(event,data,elem,onlyHandlers){var handle,ontype,bubbleType,special,tmp,i,eventPath=[elem||document],type=core_hasOwn.call(event,"type")?event.type:event,namespaces=core_hasOwn.call(event,"namespace")?event.namespace.split("."):[],cur=tmp=elem=elem||document;if(3!==elem.nodeType&&8!==elem.nodeType&&!rfocusMorph.test(type+jQuery.event.triggered)&&(0<=type.indexOf(".")&&(type=(namespaces=type.split(".")).shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,(event=event[jQuery.expando]?event:new jQuery.Event(type,"object"==typeof event&&event)).isTrigger=!0,event.namespace=namespaces.join("."),
event.namespace_re=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=undefined,event.target||(event.target=elem),data=null==data?[event]:jQuery.makeArray(data,[event]),special=jQuery.event.special[type]||{},onlyHandlers||!special.trigger||!1!==special.trigger.apply(elem,data))){if(!onlyHandlers&&!special.noBubble&&!jQuery.isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window)}for(i=0;(cur=eventPath[i++]
)&&!event.isPropagationStopped();)event.type=1<i?bubbleType:special.bindType||type,(handle=(jQuery._data(cur,"events")||{})[event.type]&&jQuery._data(cur,"handle"))&&handle.apply(cur,data),(handle=ontype&&cur[ontype])&&jQuery.acceptData(cur)&&handle.apply&&!1===handle.apply(cur,data)&&event.preventDefault();if(event.type=type,!onlyHandlers&&!event.isDefaultPrevented()&&(!special._default||!1===special._default.apply(elem.ownerDocument,data))&&("click"!==type||!jQuery.nodeName(elem,"a"))&&jQuery.acceptData(elem)&&ontype&&elem[type]&&!jQuery.isWindow(elem)){(tmp=elem[ontype])&&(elem[ontype]=null),jQuery.event.triggered=type;try{elem[type]()}catch(e){}
jQuery.event.triggered=undefined,tmp&&(elem[ontype]=tmp)}return event.result}},dispatch:function(event){event=jQuery.event.fix(event);var i,ret,matched,j,handlerQueue,args=core_slice.call(arguments),handlers=(jQuery._data(this,"events")||{})[event.type]||[],special=jQuery.event.special[event.type]||{};if((args[0]=event).delegateTarget=this,!special.preDispatch||!1!==special.preDispatch.call(this,event)){for(handlerQueue=jQuery.event.handlers.call(this,event,handlers),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(ret=matched.handlers[j++])&&!event.isImmediatePropagationStopped();
)event.namespace_re&&!event.namespace_re.test(ret.namespace)||(event.handleObj=ret,event.data=ret.data,(ret=((jQuery.event.special[ret.origType]||{}).handle||ret.handler).apply(matched.elem,args))!==undefined&&!1===(event.result=ret)&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,handlers){var sel,handleObj,matches,i,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&(!event.button||"click"!==event.type))for(;cur!=this;cur=cur.parentNode||this)if(1===cur.nodeType&&(
!0!==cur.disabled||"click"!==event.type)){for(matches=[],i=0;i<delegateCount;i++)matches[sel=(handleObj=handlers[i]).selector+" "]===undefined&&(matches[sel]=handleObj.needsContext?0<=jQuery(sel,this).index(cur):jQuery.find(sel,this,null,[cur]).length),matches[sel]&&matches.push(handleObj);matches.length&&handlerQueue.push({elem:cur,handlers:matches})}return delegateCount<handlers.length&&handlerQueue.push({elem:this,handlers:handlers.slice(delegateCount)}),handlerQueue},fix:function(event){if(event[jQuery.expando])return event;var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];for(fixHook||(
this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{}),copy=fixHook.props?this.props.concat(fixHook.props):this.props,event=new jQuery.Event(originalEvent),i=copy.length;i--;)event[prop=copy[i]]=originalEvent[prop];return event.target||(event.target=originalEvent.srcElement||document),3===event.target.nodeType&&(event.target=event.target.parentNode),event.metaKey=!!event.metaKey,fixHook.filter?fixHook.filter(event,originalEvent):event},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{
props:"char charCode key keyCode".split(" "),filter:function(event,original){return null==event.which&&(event.which=null!=original.charCode?original.charCode:original.keyCode),event}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var body,doc,button=original.button,fromElement=original.fromElement;return null==event.pageX&&null!=original.clientX&&(doc=(body=event.target.ownerDocument||document).documentElement,body=body.body,event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0
),event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)),!event.relatedTarget&&fromElement&&(event.relatedTarget=fromElement===event.target?original.toElement:fromElement),event.which||button===undefined||(event.which=1&button?1:2&button?3:4&button?2:0),event}},special:{load:{noBubble:!0},click:{trigger:function(){if(jQuery.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==document.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(
this===document.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(event){event.result!==undefined&&(event.originalEvent.returnValue=event.result)}}},simulate:function(e,elem,event,bubble){e=jQuery.extend(new jQuery.Event,event,{type:e,isSimulated:!0,originalEvent:{}});bubble?jQuery.event.trigger(e,null,elem):jQuery.event.dispatch.call(elem,e),e.isDefaultPrevented()&&event.preventDefault()}},jQuery.removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle,!1)}:function(elem,name,handle){name="on"+name;elem.detachEvent&&(
typeof elem[name]===core_strundefined&&(elem[name]=null),elem.detachEvent(name,handle))},jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event))return new jQuery.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||!1===src.returnValue||src.getPreventDefault&&src.getPreventDefault()?returnTrue:returnFalse):this.type=src,props&&jQuery.extend(this,props),this.timeStamp=src&&src.timeStamp||jQuery.now(),this[jQuery.expando]=!0},jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){
var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue,this.stopPropagation()}},jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,related=event.relatedTarget,handleObj=event.handleObj;return related&&(related===this||jQuery.contains(this,related))||(
event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}}),jQuery.support.submitBubbles||(jQuery.event.special.submit={setup:function(){if(jQuery.nodeName(this,"form"))return!1;jQuery.event.add(this,"click._submit keypress._submit",function(form){form=form.target,form=jQuery.nodeName(form,"input")||jQuery.nodeName(form,"button")?form.form:undefined;form&&!jQuery._data(form,"submitBubbles")&&(jQuery.event.add(form,"submit._submit",function(event){event._submit_bubble=!0}),jQuery._data(form,"submitBubbles",!0))})},postDispatch:function(event){event._submit_bubble&&(delete event._submit_bubble,
this.parentNode&&!event.isTrigger&&jQuery.event.simulate("submit",this.parentNode,event,!0))},teardown:function(){if(jQuery.nodeName(this,"form"))return!1;jQuery.event.remove(this,"._submit")}}),jQuery.support.changeBubbles||(jQuery.event.special.change={setup:function(){if(rformElems.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(jQuery.event.add(this,"propertychange._change",function(event){"checked"===event.originalEvent.propertyName&&(this._just_changed=!0)}),jQuery.event.add(this,"click._change",function(event){this._just_changed&&!event.isTrigger&&(this._just_changed=!1),jQuery.event.simulate("change",this,event,!0)})),!1
;jQuery.event.add(this,"beforeactivate._change",function(elem){elem=elem.target;rformElems.test(elem.nodeName)&&!jQuery._data(elem,"changeBubbles")&&(jQuery.event.add(elem,"change._change",function(event){!this.parentNode||event.isSimulated||event.isTrigger||jQuery.event.simulate("change",this.parentNode,event,!0)}),jQuery._data(elem,"changeBubbles",!0))})},handle:function(event){var elem=event.target;if(this!==elem||event.isSimulated||event.isTrigger||"radio"!==elem.type&&"checkbox"!==elem.type)return event.handleObj.handler.apply(this,arguments)},teardown:function(){return jQuery.event.remove(this,"._change"),!rformElems.test(this.nodeName)}}),
jQuery.support.focusinBubbles||jQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){function handler(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event),!0)}var attaches=0;jQuery.event.special[fix]={setup:function(){0==attaches++&&document.addEventListener(orig,handler,!0)},teardown:function(){0==--attaches&&document.removeEventListener(orig,handler,!0)}}}),jQuery.fn.extend({on:function(types,selector,data,fn,one){var type,origFn;if("object"==typeof types){for(type in"string"!=typeof selector&&(data=data||selector,selector=undefined),types)this.on(type,selector,data,types[type],one);return this}if(null==data&&null==fn?(
fn=selector,data=selector=undefined):null==fn&&("string"==typeof selector?(fn=data,data=undefined):(fn=data,data=selector,selector=undefined)),!1===fn)fn=returnFalse;else if(!fn)return this;return 1===one&&(origFn=fn,(fn=function(event){return jQuery().off(event),origFn.apply(this,arguments)}).guid=origFn.guid||(origFn.guid=jQuery.guid++)),this.each(function(){jQuery.event.add(this,types,fn,data,selector)})},one:function(types,selector,data,fn){return this.on(types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)return handleObj=types.handleObj,jQuery(types.delegateTarget).off(
handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler),this;if("object"!=typeof types)return!1!==selector&&"function"!=typeof selector||(fn=selector,selector=undefined),!1===fn&&(fn=returnFalse),this.each(function(){jQuery.event.remove(this,types,fn,selector)});for(type in types)this.off(type,selector,types[type]);return this},bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){
return 1===arguments.length?this.off(selector,"**"):this.off(types,selector||"**",fn)},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem)return jQuery.event.trigger(type,data,elem,!0)}}),function(window){var i,cachedruns,Expr,getText,isXML,compile,hasDuplicate,outermostContext,setDocument,document,docElem,documentIsXML,rbuggyQSA,rbuggyMatches,matches,contains,sortOrder,expando="sizzle"+-new Date,preferredDoc=window.document,support={},dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),attributes=[],
pop=attributes.pop,push=attributes.push,slice=attributes.slice,indexOf=attributes.indexOf||function(elem){for(var i=0,len=this.length;i<len;i++)if(this[i]===elem)return i;return-1},whitespace="[\\x20\\t\\r\\n\\f]",characterEncoding="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",identifier=characterEncoding.replace("w","w#"),attributes="\\["+whitespace+"*("+characterEncoding+")"+whitespace+"*(?:([*^$|!~]?=)"+whitespace+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+identifier+")|)|)"+whitespace+"*\\]",pseudos=":("+characterEncoding+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+attributes.replace(3,8)+")*)|.*)\\)|)",rtrim=new RegExp(
"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([\\x20\\t\\r\\n\\f>+~])"+whitespace+"*"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+characterEncoding+")"),CLASS:new RegExp("^\\.("+characterEncoding+")"),NAME:new RegExp("^\\[name=['\"]?("+characterEncoding+")['\"]?\\]"),TAG:new RegExp("^("+characterEncoding.replace("w","w*")+")"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp(
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rsibling=/[\x20\t\r\n\f]*[+~]/,rnative=/^[^{]+\{\s*\[native code/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rescape=/'|\\/g,rattributeQuotes=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,runescape=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,funescape=function(_,escaped){
var high="0x"+escaped-65536;return high!=high?escaped:high<0?String.fromCharCode(65536+high):String.fromCharCode(high>>10|55296,1023&high|56320)};try{slice.call(preferredDoc.documentElement.childNodes,0)[0].nodeType}catch(e){slice=function(i){for(var elem,results=[];elem=this[i++];)results.push(elem);return results}}function isNative(fn){return rnative.test(fn+"")}function createCache(){var cache,keys=[];return cache=function(key,value){return keys.push(key+=" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key]=value}}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var div=document.createElement("div");try{return fn(div)}catch(e
){return!1}finally{div=null}}function Sizzle(selector,context,results,seed){var match,elem,nodeType,i,groups,old,nid,newContext,newSelector;if((context?context.ownerDocument||context:preferredDoc)!==document&&setDocument(context),results=results||[],!selector||"string"!=typeof selector)return results;if(1!==(nodeType=(context=context||document).nodeType)&&9!==nodeType)return[];if(!documentIsXML&&!seed){if(match=rquickExpr.exec(selector))if(old=match[1]){if(9===nodeType){if(!(elem=context.getElementById(old))||!elem.parentNode)return results;if(elem.id===old)return results.push(elem),results}else if(context.ownerDocument&&(
elem=context.ownerDocument.getElementById(old))&&contains(context,elem)&&elem.id===old)return results.push(elem),results}else{if(match[2])return push.apply(results,slice.call(context.getElementsByTagName(selector),0)),results;if((old=match[3])&&support.getByClassName&&context.getElementsByClassName)return push.apply(results,slice.call(context.getElementsByClassName(old),0)),results}if(support.qsa&&!rbuggyQSA.test(selector)){if(old=!0,nid=expando,newContext=context,newSelector=9===nodeType&&selector,1===nodeType&&"object"!==context.nodeName.toLowerCase()){for(groups=tokenize(selector),(old=context.getAttribute("id"))?nid=old.replace(rescape,"\\$&"
):context.setAttribute("id",nid),nid="[id='"+nid+"'] ",i=groups.length;i--;)groups[i]=nid+toSelector(groups[i]);newContext=rsibling.test(selector)&&context.parentNode||context,newSelector=groups.join(",")}if(newSelector)try{return push.apply(results,slice.call(newContext.querySelectorAll(newSelector),0)),results}catch(qsaError){}finally{old||context.removeAttribute("id")}}}return function(selector,context,results,seed){var i,tokens,token,type,find,match=tokenize(selector);if(!seed&&1===match.length){if(2<(tokens=match[0]=match[0].slice(0)).length&&"ID"===(token=tokens[0]).type&&9===context.nodeType&&!documentIsXML&&Expr.relative[tokens[1].type]){if(!(
context=Expr.find.ID(token.matches[0].replace(runescape,funescape),context)[0]))return results;selector=selector.slice(tokens.shift().value.length)}for(i=matchExpr.needsContext.test(selector)?0:tokens.length;i--&&(token=tokens[i],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&context.parentNode||context))){if(tokens.splice(i,1),!(selector=seed.length&&toSelector(tokens)))return push.apply(results,slice.call(seed,0)),results;break}}return compile(selector,match)(seed,context,documentIsXML,results,rsibling.test(selector)),results}(selector.replace(rtrim,"$1"),
context,results,seed)}function siblingCheck(a,b){var cur=b&&a,diff=cur&&(~b.sourceIndex||1<<31)-(~a.sourceIndex||1<<31);if(diff)return diff;if(cur)for(;cur=cur.nextSibling;)if(cur===b)return-1;return a?1:-1}function createPositionalPseudo(fn){return markFunction(function(argument){return argument=+argument,markFunction(function(seed,matches){for(var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;i--;)seed[j=matchIndexes[i]]&&(seed[j]=!(matches[j]=seed[j]))})})}for(i in isXML=Sizzle.isXML=function(documentElement){documentElement=documentElement&&(documentElement.ownerDocument||documentElement).documentElement
;return!!documentElement&&"HTML"!==documentElement.nodeName},setDocument=Sizzle.setDocument=function(node){var doc=node?node.ownerDocument||node:preferredDoc;return doc!==document&&9===doc.nodeType&&doc.documentElement&&(docElem=(document=doc).documentElement,documentIsXML=isXML(doc),support.tagNameNoComments=assert(function(div){return div.appendChild(doc.createComment("")),!div.getElementsByTagName("*").length}),support.attributes=assert(function(type){type.innerHTML="<select></select>";type=typeof type.lastChild.getAttribute("multiple");return"boolean"!=type&&"string"!=type}),support.getByClassName=assert(function(div){
return div.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!div.getElementsByClassName||!div.getElementsByClassName("e").length)&&(div.lastChild.className="e",2===div.getElementsByClassName("e").length)}),support.getByName=assert(function(div){div.id=expando+0,div.innerHTML="<a name='"+expando+"'></a><div name='"+expando+"'></div>",docElem.insertBefore(div,docElem.firstChild);var pass=doc.getElementsByName&&doc.getElementsByName(expando).length===2+doc.getElementsByName(expando+0).length;return support.getIdNotName=!doc.getElementById(expando),docElem.removeChild(div),pass}),Expr.attrHandle=assert(function(div){
return div.innerHTML="<a href='#'></a>",div.firstChild&&void 0!==div.firstChild.getAttribute&&"#"===div.firstChild.getAttribute("href")})?{}:{href:function(elem){return elem.getAttribute("href",2)},type:function(elem){return elem.getAttribute("type")}},support.getIdNotName?(Expr.find.ID=function(m,context){if(void 0!==context.getElementById&&!documentIsXML){m=context.getElementById(m);return m&&m.parentNode?[m]:[]}},Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}}):(Expr.find.ID=function(id,m){if(void 0!==m.getElementById&&!documentIsXML){m=m.getElementById(id)
;return m?m.id===id||void 0!==m.getAttributeNode&&m.getAttributeNode("id").value===id?[m]:void 0:[]}},Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(node){node=void 0!==node.getAttributeNode&&node.getAttributeNode("id");return node&&node.value===attrId}}),Expr.find.TAG=support.tagNameNoComments?function(tag,context){if(void 0!==context.getElementsByTagName)return context.getElementsByTagName(tag)}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if("*"!==tag)return results;for(;elem=results[i++];)1===elem.nodeType&&tmp.push(elem);return tmp},Expr.find.NAME=support.getByName&&function(
tag,context){if(void 0!==context.getElementsByName)return context.getElementsByName(name)},Expr.find.CLASS=support.getByClassName&&function(className,context){if(void 0!==context.getElementsByClassName&&!documentIsXML)return context.getElementsByClassName(className)},rbuggyMatches=[],rbuggyQSA=[":focus"],(support.qsa=isNative(doc.querySelectorAll))&&(assert(function(div){div.innerHTML="<select><option selected=''></option></select>",div.querySelectorAll("[selected]").length||rbuggyQSA.push("\\["+whitespace+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),div.querySelectorAll(":checked").length||rbuggyQSA.push(":checked")}),assert(function(div
){div.innerHTML="<input type='hidden' i=''/>",div.querySelectorAll("[i^='']").length&&rbuggyQSA.push("[*^$]="+whitespace+"*(?:\"\"|'')"),div.querySelectorAll(":enabled").length||rbuggyQSA.push(":enabled",":disabled"),div.querySelectorAll("*,:x"),rbuggyQSA.push(",.*:")})),(support.matchesSelector=isNative(matches=docElem.matchesSelector||docElem.mozMatchesSelector||docElem.webkitMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector))&&assert(function(div){support.disconnectedMatch=matches.call(div,"div"),matches.call(div,"[s!='']:x"),rbuggyMatches.push("!=",pseudos)}),rbuggyQSA=new RegExp(rbuggyQSA.join("|")),rbuggyMatches=new RegExp(
rbuggyMatches.join("|")),contains=isNative(docElem.contains)||docElem.compareDocumentPosition?function(a,bup){var adown=9===a.nodeType?a.documentElement:a,bup=bup&&bup.parentNode;return a===bup||!(!bup||1!==bup.nodeType||!(adown.contains?adown.contains(bup):a.compareDocumentPosition&&16&a.compareDocumentPosition(bup)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},sortOrder=docElem.compareDocumentPosition?function(a,b){var compare;return a===b?(hasDuplicate=!0,0):(compare=b.compareDocumentPosition&&a.compareDocumentPosition&&a.compareDocumentPosition(b))?1&compare||a.parentNode&&11===a.parentNode.nodeType?a===doc||contains(preferredDoc
,a)?-1:b===doc||contains(preferredDoc,b)?1:0:4&compare?-1:1:a.compareDocumentPosition?-1:1}:function(a,b){var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(a===b)return hasDuplicate=!0,0;if(!aup||!bup)return a===doc?-1:b===doc?1:aup?-1:bup?1:0;if(aup===bup)return siblingCheck(a,b);for(cur=a;cur=cur.parentNode;)ap.unshift(cur);for(cur=b;cur=cur.parentNode;)bp.unshift(cur);for(;ap[i]===bp[i];)i++;return i?siblingCheck(ap[i],bp[i]):ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0},hasDuplicate=!1,[0,0].sort(sortOrder),support.detectDuplicates=hasDuplicate),document},Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)},
Sizzle.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document&&setDocument(elem),expr=expr.replace(rattributeQuotes,"='$1']"),support.matchesSelector&&!documentIsXML&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&!rbuggyQSA.test(expr))try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&11!==elem.document.nodeType)return ret}catch(e){}return 0<Sizzle(expr,document,null,[elem]).length},Sizzle.contains=function(context,elem){return(context.ownerDocument||context)!==document&&setDocument(context),contains(context,elem)},Sizzle.attr=function(elem,name){var val;return(elem.ownerDocument||elem
)!==document&&setDocument(elem),documentIsXML||(name=name.toLowerCase()),(val=Expr.attrHandle[name])?val(elem):documentIsXML||support.attributes?elem.getAttribute(name):((val=elem.getAttributeNode(name))||elem.getAttribute(name))&&!0===elem[name]?name:val&&val.specified?val.value:null},Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},Sizzle.uniqueSort=function(results){var elem,duplicates=[],i=1,j=0;if(hasDuplicate=!support.detectDuplicates,results.sort(sortOrder),hasDuplicate){for(;elem=results[i];i++)elem===results[i-1]&&(j=duplicates.push(i));for(;j--;)results.splice(duplicates[j],1)}return results},
getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){if(1===nodeType||9===nodeType||11===nodeType){if("string"==typeof elem.textContent)return elem.textContent;for(elem=elem.firstChild;elem;elem=elem.nextSibling)ret+=getText(elem)}else if(3===nodeType||4===nodeType)return elem.nodeValue}else for(;node=elem[i];i++)ret+=getText(node);return ret},Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){
return match[1]=match[1].replace(runescape,funescape),match[3]=(match[4]||match[5]||"").replace(runescape,funescape),"~="===match[2]&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),"nth"===match[1].slice(0,3)?(match[3]||Sizzle.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*("even"===match[3]||"odd"===match[3])),match[5]=+(match[7]+match[8]||"odd"===match[3])):match[3]&&Sizzle.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[5]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[4]?match[2]=match[4]:unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(
unquoted,!0))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeName){return"*"===nodeName?function(){return!0}:(nodeName=nodeName.replace(runescape,funescape).toLowerCase(),function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName})},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(elem.className||void 0!==elem.getAttribute&&elem.getAttribute(
"class")||"")})},ATTR:function(name,operator,check){return function(result){result=Sizzle.attr(result,name);return null==result?"!="===operator:!operator||(result+="","="===operator?result===check:"!="===operator?result!==check:"^="===operator?check&&0===result.indexOf(check):"*="===operator?check&&-1<result.indexOf(check):"$="===operator?check&&result.slice(-check.length)===check:"~="===operator?-1<(" "+result+" ").indexOf(check):"|="===operator&&(result===check||result.slice(0,check.length+1)===check+"-"))}},CHILD:function(type,what,argument,first,last){var simple="nth"!==type.slice(0,3),forward="last"!==type.slice(-4),ofType="of-type"===what
;return 1===first&&0===last?function(elem){return!!elem.parentNode}:function(elem,context,xml){var cache,outerCache,node,diff,nodeIndex,start,dir=simple!=forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType;if(parent){if(simple){for(;dir;){for(node=elem;node=node[dir];)if(ofType?node.nodeName.toLowerCase()===name:1===node.nodeType)return!1;start=dir="only"===type&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(nodeIndex=(cache=(outerCache=parent[expando]||(parent[expando]={}))[type]||[])[0]===dirruns&&cache[1],
diff=cache[0]===dirruns&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop();)if(1===node.nodeType&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break}}else if(useCache&&(cache=(elem[expando]||(elem[expando]={}))[type])&&cache[0]===dirruns)diff=cache[1];else for(;(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())&&((ofType?node.nodeName.toLowerCase()!==name:1!==node.nodeType)||!++diff||(useCache&&((node[expando]||(node[expando]={}))[type]=[dirruns,diff]),node!==elem)););return(diff-=last)===first||diff%first==0&&0<=diff/first}}},PSEUDO:function(pseudo,
argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):1<fn.length?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){for(var idx,matched=fn(seed,argument),i=matched.length;i--;)seed[idx=indexOf.call(seed,matched[i])]=!(matches[idx]=matched[i])}):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){for(
var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;i--;)(elem=unmatched[i])&&(seed[i]=!(matches[i]=elem))}):function(elem,context,xml){return input[0]=elem,matcher(input,null,xml,results),!results.pop()}}),has:markFunction(function(selector){return function(elem){return 0<Sizzle(selector,elem).length}}),contains:markFunction(function(text){return function(elem){return-1<(elem.textContent||elem.innerText||getText(elem)).indexOf(text)}}),lang:markFunction(function(lang){return ridentifier.test(lang||"")||Sizzle.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do{if(
elemLang=documentIsXML?elem.getAttribute("xml:lang")||elem.getAttribute("lang"):elem.lang)return(elemLang=elemLang.toLowerCase())===lang||0===elemLang.indexOf(lang+"-")}while((elem=elem.parentNode)&&1===elem.nodeType);return!1}}),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:function(elem){return!1===elem.disabled},disabled:function(elem){return!0===elem.disabled},checked:function(elem){
var nodeName=elem.nodeName.toLowerCase();return"input"===nodeName&&!!elem.checked||"option"===nodeName&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,!0===elem.selected},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if("@"<elem.nodeName||3===elem.nodeType||4===elem.nodeType)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return"input"===name&&"button"===elem.type||"button"===name},
text:function(elem){var attr;return"input"===elem.nodeName.toLowerCase()&&"text"===elem.type&&(null==(attr=elem.getAttribute("type"))||attr.toLowerCase()===elem.type)},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){for(var i=0;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i=1;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),
lt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;0<=--i;)matchIndexes.push(i);return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i<length;)matchIndexes.push(i);return matchIndexes})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=function(type){return function(elem){return"input"===elem.nodeName.toLowerCase()&&elem.type===type}}(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=function(type){return function(elem){var name=elem.nodeName.toLowerCase();return("input"===name||"button"===name
)&&elem.type===type}}(i);function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){for(type in matched&&!(match=rcomma.exec(soFar))||(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rcombinators.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrim," ")}),soFar=soFar.slice(matched.length)),Expr.filter)!(match=matchExpr[type].exec(soFar))||preFilters[type]&&!(match=preFilters[type](match))||(
matched=match.shift(),tokens.push({value:matched,type:type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0)}function toSelector(tokens){for(var i=0,len=tokens.length,selector="";i<len;i++)selector+=tokens[i].value;return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&"parentNode"===dir,doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)return matcher(elem,context,xml)}:function(elem,context,xml){var data,cache,
outerCache,dirkey=dirruns+" "+doneName;if(xml){for(;elem=elem[dir];)if((1===elem.nodeType||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)if((cache=(outerCache=elem[expando]||(elem[expando]={}))[dir])&&cache[0]===dirkey){if(!0===(data=cache[1])||data===cachedruns)return!0===data}else if((cache=outerCache[dir]=[dirkey])[1]=matcher(elem,context,xml)||cachedruns,!0===cache[1])return!0}}function elementMatcher(matchers){return 1<matchers.length?function(elem,context,xml){for(var i=matchers.length;i--;)if(!matchers[i](elem,context,xml))return!1;return!0}:matchers[0]}function condense(
unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=null!=map;i<len;i++)(elem=unmatched[i])&&(filter&&!filter(elem,context,xml)||(newUnmatched.push(elem),mapped&&map.push(i)));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction(function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||function(selector,contexts,results){for(var i=0,
len=contexts.length;i<len;i++)Sizzle(selector,contexts[i],results);return results}(selector||"*",context.nodeType?[context]:context,[]),matcherIn=!preFilter||!seed&&selector?elems:condense(elems,preMap,preFilter,context,xml),matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher&&matcher(matcherIn,matcherOut,context,xml),postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i=temp.length;i--;)(elem=temp[i])&&(matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i=matcherOut.length;i--;)(elem=matcherOut[i])&&temp.push(
matcherIn[i]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i=matcherOut.length;i--;)(elem=matcherOut[i])&&-1<(temp=postFinder?indexOf.call(seed,elem):preMap[i])&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push.apply(results,matcherOut)})}function matcherFromGroupMatchers(elementMatchers,setMatchers){function superMatcher(seed,context,xml,results,expandContext){var elem,j,matcher,setMatched=[],matchedCount=0,i="0",unmatched=seed&&[],outermost=null!=expandContext,contextBackup=outermostContext,
elems=seed||byElement&&Expr.find.TAG("*",expandContext&&context.parentNode||context),dirrunsUnique=dirruns+=null==contextBackup?1:Math.random()||.1;for(outermost&&(outermostContext=context!==document&&context,cachedruns=matcherCachedRuns);null!=(elem=elems[i]);i++){if(byElement&&elem){for(j=0;matcher=elementMatchers[j++];)if(matcher(elem,context,xml)){results.push(elem);break}outermost&&(dirruns=dirrunsUnique,cachedruns=++matcherCachedRuns)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed&&unmatched.push(elem))}if(matchedCount+=i,bySet&&i!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(0<matchedCount
)for(;i--;)unmatched[i]||setMatched[i]||(setMatched[i]=pop.call(results));setMatched=condense(setMatched)}push.apply(results,setMatched),outermost&&!seed&&0<setMatched.length&&1<matchedCount+setMatchers.length&&Sizzle.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched}var matcherCachedRuns=0,bySet=0<setMatchers.length,byElement=0<elementMatchers.length;return bySet?markFunction(superMatcher):superMatcher}function setFilters(){}compile=Sizzle.compile=function(selector,group){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(i=(group=group||tokenize(selector)
).length;i--;)((cached=function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,!0),matchAnyContext=addCombinator(function(elem){return-1<indexOf.call(checkContext,elem)},implicitRelative,!0),matchers=[function(elem,context,xml){return!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext:matchAnyContext)(elem,context,xml)}];i<len;i++)if(matcher=Expr.relative[tokens[i].type]
)matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if((matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches))[expando]){for(j=++i;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(1<i&&elementMatcher(matchers),1<i&&toSelector(tokens.slice(0,i-1)).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}(group[i]))[expando]?setMatchers:elementMatchers).push(cached);cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers))}return cached},
Expr.pseudos.nth=Expr.pseudos.eq,Expr.filters=setFilters.prototype=Expr.pseudos,Expr.setFilters=new setFilters,setDocument(),Sizzle.attr=jQuery.attr,jQuery.find=Sizzle,jQuery.expr=Sizzle.selectors,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=Sizzle.uniqueSort,jQuery.text=Sizzle.getText,jQuery.isXMLDoc=Sizzle.isXML,jQuery.contains=Sizzle.contains}(window);var runtil=/Until$/,rparentsprev=/^(?:parents|prev(?:Until|All))/,isSimple=/^.[^:#\[\.,]*$/,rneedsContext=jQuery.expr.match.needsContext,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};function sibling(cur,dir){for(;(cur=cur[dir])&&1!==cur.nodeType;);return cur}function winnow(elements,
qualifier,keep){if(qualifier=qualifier||0,jQuery.isFunction(qualifier))return jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)===keep});if(qualifier.nodeType)return jQuery.grep(elements,function(elem){return elem===qualifier===keep});if("string"==typeof qualifier){var filtered=jQuery.grep(elements,function(elem){return 1===elem.nodeType});if(isSimple.test(qualifier))return jQuery.filter(qualifier,filtered,!keep);qualifier=jQuery.filter(qualifier,filtered)}return jQuery.grep(elements,function(elem){return 0<=jQuery.inArray(elem,qualifier)===keep})}function createSafeFragment(document){var list=nodeNames.split("|"),
safeFrag=document.createDocumentFragment();if(safeFrag.createElement)for(;list.length;)safeFrag.createElement(list.pop());return safeFrag}jQuery.fn.extend({find:function(selector){var i,ret,self,len=this.length;if("string"!=typeof selector)return(self=this).pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++)if(jQuery.contains(self[i],this))return!0}));for(ret=[],i=0;i<len;i++)jQuery.find(selector,this[i],ret);return(ret=this.pushStack(1<len?jQuery.unique(ret):ret)).selector=(this.selector?this.selector+" ":"")+selector,ret},has:function(target){var i,targets=jQuery(target,this),len=targets.length;return this.filter(function(){for(i=0;i<len;i++
)if(jQuery.contains(this,targets[i]))return!0})},not:function(selector){return this.pushStack(winnow(this,selector,!1))},filter:function(selector){return this.pushStack(winnow(this,selector,!0))},is:function(selector){return!!selector&&("string"==typeof selector?rneedsContext.test(selector)?0<=jQuery(selector,this.context).index(this[0]):0<jQuery.filter(selector,this).length:0<this.filter(selector).length)},closest:function(selectors,context){for(var cur,i=0,l=this.length,ret=[],pos=rneedsContext.test(selectors)||"string"!=typeof selectors?jQuery(selectors,context||this.context):0;i<l;i++)for(
cur=this[i];cur&&cur.ownerDocument&&cur!==context&&11!==cur.nodeType;){if(pos?-1<pos.index(cur):jQuery.find.matchesSelector(cur,selectors)){ret.push(cur);break}cur=cur.parentNode}return this.pushStack(1<ret.length?jQuery.unique(ret):ret)},index:function(elem){return elem?"string"==typeof elem?jQuery.inArray(this[0],jQuery(elem)):jQuery.inArray(elem.jquery?elem[0]:elem,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(all,context){all="string"==typeof all?jQuery(all,context):jQuery.makeArray(all&&all.nodeType?[all]:all),all=jQuery.merge(this.get(),all);return this.pushStack(jQuery.unique(all))},addBack:function(selector){
return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}}),jQuery.fn.andSelf=jQuery.fn.addBack,jQuery.each({parent:function(parent){parent=parent.parentNode;return parent&&11!==parent.nodeType?parent:null},parents:function(elem){return jQuery.dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return jQuery.dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},nextUntil:function(elem,i,until){
return jQuery.dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return jQuery.dir(elem,"previousSibling",until)},siblings:function(elem){return jQuery.sibling((elem.parentNode||{}).firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.merge([],elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(until,selector){var ret=jQuery.map(this,fn,until);return runtil.test(name)||(selector=until),selector&&"string"==typeof selector&&(ret=jQuery.filter(selector,ret)),
ret=1<this.length&&!guaranteedUnique[name]?jQuery.unique(ret):ret,1<this.length&&rparentsprev.test(name)&&(ret=ret.reverse()),this.pushStack(ret)}}),jQuery.extend({filter:function(expr,elems,not){return not&&(expr=":not("+expr+")"),1===elems.length?jQuery.find.matchesSelector(elems[0],expr)?[elems[0]]:[]:jQuery.find.matches(expr,elems)},dir:function(elem,dir,until){for(var matched=[],cur=elem[dir];cur&&9!==cur.nodeType&&(until===undefined||1!==cur.nodeType||!jQuery(cur).is(until));)1===cur.nodeType&&matched.push(cur),cur=cur[dir];return matched},sibling:function(n,elem){for(var r=[];n;n=n.nextSibling)1===n.nodeType&&n!==elem&&r.push(n);return r}})
;var nodeNames="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",rinlinejQuery=/ jQuery\d+="(?:null|\d+)"/g,rnoshimcache=new RegExp("<(?:"+nodeNames+")[\\s/>]","i"),rleadingWhitespace=/^\s+/,rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,manipulation_rcheckableType=/^(?:checkbox|radio)$/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,
rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:jQuery.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},fragmentDiv=createSafeFragment(document).appendChild(document.createElement("div"));function disableScript(elem){var attr=elem.getAttributeNode("type");return elem.type=(
attr&&attr.specified)+"/"+elem.type,elem}function restoreScript(elem){var match=rscriptTypeMasked.exec(elem.type);return match?elem.type=match[1]:elem.removeAttribute("type"),elem}function setGlobalEval(elems,refElements){for(var elem,i=0;null!=(elem=elems[i]);i++)jQuery._data(elem,"globalEval",!refElements||jQuery._data(refElements[i],"globalEval"))}function cloneCopyEvent(curData,dest){if(1===dest.nodeType&&jQuery.hasData(curData)){var type,i,l,oldData=jQuery._data(curData),curData=jQuery._data(dest,oldData),events=oldData.events;if(events)for(type in delete curData.handle,curData.events={},events)for(i=0,l=events[type].length;i<l;i++)jQuery.event.add(dest
,type,events[type][i]);curData.data&&(curData.data=jQuery.extend({},curData.data))}}function getAll(context,tag){var elems,elem,i=0,found=typeof context.getElementsByTagName!==core_strundefined?context.getElementsByTagName(tag||"*"):typeof context.querySelectorAll!==core_strundefined?context.querySelectorAll(tag||"*"):undefined;if(!found)for(found=[],elems=context.childNodes||context;null!=(elem=elems[i]);i++)!tag||jQuery.nodeName(elem,tag)?found.push(elem):jQuery.merge(found,getAll(elem,tag));return tag===undefined||tag&&jQuery.nodeName(context,tag)?jQuery.merge([context],found):found}function fixDefaultChecked(elem){manipulation_rcheckableType.test(
elem.type)&&(elem.defaultChecked=elem.checked)}wrapMap.optgroup=wrapMap.option,wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,jQuery.fn.extend({text:function(value){return jQuery.access(this,function(value){return value===undefined?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(value))},null,value,arguments.length)},wrapAll:function(html){return jQuery.isFunction(html)?this.each(function(i){jQuery(this).wrapAll(html.call(this,i))}):(this[0]&&(wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&wrap.insertBefore(this[0]),wrap.map(
function(){for(var elem=this;elem.firstChild&&1===elem.firstChild.nodeType;)elem=elem.firstChild;return elem}).append(this)),this);var wrap},wrapInner:function(html){return jQuery.isFunction(html)?this.each(function(i){jQuery(this).wrapInner(html.call(this,i))}):this.each(function(){var self=jQuery(this),contents=self.contents();contents.length?contents.wrapAll(html):self.append(html)})},wrap:function(html){var isFunction=jQuery.isFunction(html);return this.each(function(i){jQuery(this).wrapAll(isFunction?html.call(this,i):html)})},unwrap:function(){return this.parent().each(function(){jQuery.nodeName(this,"body")||jQuery(this).replaceWith(this.childNodes)}
).end()},append:function(){return this.domManip(arguments,!0,function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.appendChild(elem)})},prepend:function(){return this.domManip(arguments,!0,function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this.insertBefore(elem,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,!1,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)})},remove:function(selector,keepData){for(var elem,i=0;null!=(elem=this[i]
);i++)(!selector||0<jQuery.filter(selector,[elem]).length)&&(keepData||1!==elem.nodeType||jQuery.cleanData(getAll(elem)),elem.parentNode&&(keepData&&jQuery.contains(elem.ownerDocument,elem)&&setGlobalEval(getAll(elem,"script")),elem.parentNode.removeChild(elem)));return this},empty:function(){for(var elem,i=0;null!=(elem=this[i]);i++){for(1===elem.nodeType&&jQuery.cleanData(getAll(elem,!1));elem.firstChild;)elem.removeChild(elem.firstChild);elem.options&&jQuery.nodeName(elem,"select")&&(elem.options.length=0)}return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=null!=dataAndEvents&&dataAndEvents,
deepDataAndEvents=null==deepDataAndEvents?dataAndEvents:deepDataAndEvents,this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return jQuery.access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined)return 1===elem.nodeType?elem.innerHTML.replace(rinlinejQuery,""):undefined;if("string"==typeof value&&!rnoInnerhtml.test(value)&&(jQuery.support.htmlSerialize||!rnoshimcache.test(value))&&(jQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,"<$1></$2>");try{for(;i<l;i++)1===(
elem=this[i]||{}).nodeType&&(jQuery.cleanData(getAll(elem,!1)),elem.innerHTML=value);elem=0}catch(e){}}elem&&this.empty().append(value)},null,value,arguments.length)},replaceWith:function(value){return jQuery.isFunction(value)||"string"==typeof value||(value=jQuery(value).not(this).detach()),this.domManip([value],!0,function(elem){var next=this.nextSibling,parent=this.parentNode;parent&&(jQuery(this).remove(),parent.insertBefore(elem,next))})},detach:function(selector){return this.remove(selector,!0)},domManip:function(args,table,callback){args=core_concat.apply([],args);var first,node,hasScripts,scripts,doc,fragment,elem,tag,i=0,l=this.length,set=this,
iNoClone=l-1,value=args[0],isFunction=jQuery.isFunction(value);if(isFunction||!(l<=1||"string"!=typeof value||jQuery.support.checkClone)&&rchecked.test(value))return this.each(function(index){var self=set.eq(index);isFunction&&(args[0]=value.call(this,index,table?self.html():undefined)),self.domManip(args,table,callback)});if(l&&(first=(fragment=jQuery.buildFragment(args,this[0].ownerDocument,!1,this)).firstChild,1===fragment.childNodes.length&&(fragment=first),first)){for(table=table&&jQuery.nodeName(first,"tr"),hasScripts=(scripts=jQuery.map(getAll(fragment,"script"),disableScript)).length;i<l;i++)node=fragment,i!==iNoClone&&(node=jQuery.clone(node,!0,!0),
hasScripts&&jQuery.merge(scripts,getAll(node,"script"))),callback.call(table&&jQuery.nodeName(this[i],"table")?(elem=this[i],tag="tbody",elem.getElementsByTagName(tag)[0]||elem.appendChild(elem.ownerDocument.createElement(tag))):this[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,jQuery.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!jQuery._data(node,"globalEval")&&jQuery.contains(doc,node)&&(node.src?jQuery.ajax({url:node.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):jQuery.globalEval((node.text||node.textContent||node.innerHTML||"").replace(rcleanScript,"")))
;fragment=first=null}return this}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){for(var elems,i=0,ret=[],insert=jQuery(selector),last=insert.length-1;i<=last;i++)elems=i===last?this:this.clone(!0),jQuery(insert[i])[original](elems),core_push.apply(ret,elems.get());return this.pushStack(ret)}}),jQuery.extend({clone:function(elem,dataAndEvents,deepDataAndEvents){var destElements,node,clone,i,srcElements,inPage=jQuery.contains(elem.ownerDocument,elem);if(jQuery.support.html5Clone||jQuery.isXMLDoc(elem)||!rnoshimcache.test(
"<"+elem.nodeName+">")?clone=elem.cloneNode(!0):(fragmentDiv.innerHTML=elem.outerHTML,fragmentDiv.removeChild(clone=fragmentDiv.firstChild)),!(jQuery.support.noCloneEvent&&jQuery.support.noCloneChecked||1!==elem.nodeType&&11!==elem.nodeType||jQuery.isXMLDoc(elem)))for(destElements=getAll(clone),srcElements=getAll(elem),i=0;null!=(node=srcElements[i]);++i)destElements[i]&&function(src,dest){var nodeName,e,data;if(1===dest.nodeType){if(nodeName=dest.nodeName.toLowerCase(),!jQuery.support.noCloneEvent&&dest[jQuery.expando]){for(e in(data=jQuery._data(dest)).events)jQuery.removeEvent(dest,e,data.handle);dest.removeAttribute(jQuery.expando)}
"script"===nodeName&&dest.text!==src.text?(disableScript(dest).text=src.text,restoreScript(dest)):"object"===nodeName?(dest.parentNode&&(dest.outerHTML=src.outerHTML),jQuery.support.html5Clone&&src.innerHTML&&!jQuery.trim(dest.innerHTML)&&(dest.innerHTML=src.innerHTML)):"input"===nodeName&&manipulation_rcheckableType.test(src.type)?(dest.defaultChecked=dest.checked=src.checked,dest.value!==src.value&&(dest.value=src.value)):"option"===nodeName?dest.defaultSelected=dest.selected=src.defaultSelected:"input"!==nodeName&&"textarea"!==nodeName||(dest.defaultValue=src.defaultValue)}}(node,destElements[i]);if(dataAndEvents)if(deepDataAndEvents)for(
srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0;null!=(node=srcElements[i]);i++)cloneCopyEvent(node,destElements[i]);else cloneCopyEvent(elem,clone);return 0<(destElements=getAll(clone,"script")).length&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),destElements=srcElements=node=null,clone},buildFragment:function(elems,context,scripts,selection){for(var j,elem,contains,tmp,tag,tbody,wrap,l=elems.length,safe=createSafeFragment(context),nodes=[],i=0;i<l;i++)if((elem=elems[i])||0===elem)if("object"===jQuery.type(elem))jQuery.merge(nodes,elem.nodeType?[elem]:elem);else if(rhtml.test(elem)){for(
tmp=tmp||safe.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,tmp.innerHTML=wrap[1]+elem.replace(rxhtmlTag,"<$1></$2>")+wrap[2],j=wrap[0];j--;)tmp=tmp.lastChild;if(!jQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)&&nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0])),!jQuery.support.tbody)for(j=(elem="table"!==tag||rtbody.test(elem)?"<table>"!==wrap[1]||rtbody.test(elem)?0:tmp:tmp.firstChild)&&elem.childNodes.length;j--;)jQuery.nodeName(tbody=elem.childNodes[j],"tbody")&&!tbody.childNodes.length&&elem.removeChild(tbody);for(jQuery.merge(nodes,
tmp.childNodes),tmp.textContent="";tmp.firstChild;)tmp.removeChild(tmp.firstChild);tmp=safe.lastChild}else nodes.push(context.createTextNode(elem));for(tmp&&safe.removeChild(tmp),jQuery.support.appendChecked||jQuery.grep(getAll(nodes,"input"),fixDefaultChecked),i=0;elem=nodes[i++];)if((!selection||-1===jQuery.inArray(elem,selection))&&(contains=jQuery.contains(elem.ownerDocument,elem),tmp=getAll(safe.appendChild(elem),"script"),contains&&setGlobalEval(tmp),scripts))for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem);return tmp=null,safe},cleanData:function(elems,acceptData){for(var elem,type,id,data,i=0,internalKey=jQuery.expando,
cache=jQuery.cache,deleteExpando=jQuery.support.deleteExpando,special=jQuery.event.special;null!=(elem=elems[i]);i++)if((acceptData||jQuery.acceptData(elem))&&(data=(id=elem[internalKey])&&cache[id])){if(data.events)for(type in data.events)special[type]?jQuery.event.remove(elem,type):jQuery.removeEvent(elem,type,data.handle);cache[id]&&(delete cache[id],deleteExpando?delete elem[internalKey]:typeof elem.removeAttribute!==core_strundefined?elem.removeAttribute(internalKey):elem[internalKey]=null,core_deletedIds.push(id))}}});var iframe,getStyles,curCSS,ralpha=/alpha\([^)]*\)/i,ropacity=/opacity\s*=\s*([^)]*)/,rposition=/^(top|right|bottom|left)$/,
rdisplayswap=/^(none|table(?!-c[ea]).+)/,rmargin=/^margin/,rnumsplit=new RegExp("^("+core_pnum+")(.*)$","i"),rnumnonpx=new RegExp("^("+core_pnum+")(?!px)[a-z%]+$","i"),rrelNum=new RegExp("^([+-])=("+core_pnum+")","i"),elemdisplay={BODY:"block"},cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:0,fontWeight:400},cssExpand=["Top","Right","Bottom","Left"],cssPrefixes=["Webkit","O","Moz","ms"];function vendorPropName(style,name){if(name in style)return name;for(var capName=name.charAt(0).toUpperCase()+name.slice(1),origName=name,i=cssPrefixes.length;i--;)if((name=cssPrefixes[i]+capName)in style)return name
;return origName}function isHidden(elem,el){return elem=el||elem,"none"===jQuery.css(elem,"display")||!jQuery.contains(elem.ownerDocument,elem)}function showHide(elements,show){for(var display,elem,hidden,values=[],index=0,length=elements.length;index<length;index++)(elem=elements[index]).style&&(values[index]=jQuery._data(elem,"olddisplay"),display=elem.style.display,show?(values[index]||"none"!==display||(elem.style.display=""),""===elem.style.display&&isHidden(elem)&&(values[index]=jQuery._data(elem,"olddisplay",css_defaultDisplay(elem.nodeName)))):values[index]||(hidden=isHidden(elem),(display&&"none"!==display||!hidden)&&jQuery._data(elem,"olddisplay",
hidden?display:jQuery.css(elem,"display"))));for(index=0;index<length;index++)(elem=elements[index]).style&&(show&&"none"!==elem.style.display&&""!==elem.style.display||(elem.style.display=show?values[index]||"":"none"));return elements}function setPositiveNumber(elem,value,subtract){var matches=rnumsplit.exec(value);return matches?Math.max(0,matches[1]-(subtract||0))+(matches[2]||"px"):value}function augmentWidthOrHeight(elem,name,extra,isBorderBox,styles){for(var i=extra===(isBorderBox?"border":"content")?4:"width"===name?1:0,val=0;i<4;i+=2)"margin"===extra&&(val+=jQuery.css(elem,extra+cssExpand[i],!0,styles)),isBorderBox?("content"===extra&&(
val-=jQuery.css(elem,"padding"+cssExpand[i],!0,styles)),"margin"!==extra&&(val-=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(val+=jQuery.css(elem,"padding"+cssExpand[i],!0,styles),"padding"!==extra&&(val+=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles)));return val}function getWidthOrHeight(elem,name,extra){var valueIsBorderBox=!0,val="width"===name?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox=jQuery.support.boxSizing&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles);if(val<=0||null==val){if(((val=curCSS(elem,name,styles))<0||null==val)&&(val=elem.style[name]),rnumnonpx.test(val))return val
;valueIsBorderBox=isBorderBox&&(jQuery.support.boxSizingReliable||val===elem.style[name]),val=parseFloat(val)||0}return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)+"px"}function css_defaultDisplay(nodeName){var doc=document,display=elemdisplay[nodeName];return display||("none"!==(display=actualDisplay(nodeName,doc))&&display||((doc=((iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(doc.documentElement))[0].contentWindow||iframe[0].contentDocument).document).write("<!doctype html><html><body>"),doc.close(),display=actualDisplay(
nodeName,doc),iframe.detach()),elemdisplay[nodeName]=display),display}function actualDisplay(elem,display){elem=jQuery(display.createElement(elem)).appendTo(display.body),display=jQuery.css(elem[0],"display");return elem.remove(),display}jQuery.fn.extend({css:function(name,value){return jQuery.access(this,function(elem,name,value){var len,styles,map={},i=0;if(jQuery.isArray(name)){for(styles=getStyles(elem),len=name.length;i<len;i++)map[name[i]]=jQuery.css(elem,name[i],!1,styles);return map}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)},name,value,1<arguments.length)},show:function(){return showHide(this,!0)},hide:function(){
return showHide(this)},toggle:function(state){var bool="boolean"==typeof state;return this.each(function(){(bool?state:isHidden(this))?jQuery(this).show():jQuery(this).hide()})}}),jQuery.extend({cssHooks:{opacity:{get:function(ret,computed){if(computed){ret=curCSS(ret,"opacity");return""===ret?"1":ret}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:jQuery.support.cssFloat?"cssFloat":"styleFloat"},style:function(elem,name,value,extra){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style){var ret,type,hooks,origName=jQuery.camelCase(name),style=elem.style;if(
name=jQuery.cssProps[origName]||(jQuery.cssProps[origName]=vendorPropName(style,origName)),hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName],value===undefined)return hooks&&"get"in hooks&&(ret=hooks.get(elem,!1,extra))!==undefined?ret:style[name];if("string"===(type=typeof value)&&(ret=rrelNum.exec(value))&&(value=(ret[1]+1)*ret[2]+parseFloat(jQuery.css(elem,name)),type="number"),!(null==value||"number"===type&&isNaN(value)||("number"!==type||jQuery.cssNumber[origName]||(value+="px"),jQuery.support.clearCloneStyle||""!==value||0!==name.indexOf("background")||(style[name]="inherit"),hooks&&"set"in hooks&&(value=hooks.set(elem,value,extra))===undefined))
)try{style[name]=value}catch(e){}}},css:function(elem,num,extra,styles){var val,hooks=jQuery.camelCase(num);return num=jQuery.cssProps[hooks]||(jQuery.cssProps[hooks]=vendorPropName(elem.style,hooks)),(hooks=jQuery.cssHooks[num]||jQuery.cssHooks[hooks])&&"get"in hooks&&(val=hooks.get(elem,!0,extra)),val===undefined&&(val=curCSS(elem,num,styles)),"normal"===val&&num in cssNormalTransform&&(val=cssNormalTransform[num]),""===extra||extra?(num=parseFloat(val),!0===extra||jQuery.isNumeric(num)?num||0:val):val},swap:function(elem,options,callback,ret){var name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];for(
name in ret=callback.apply(elem,ret||[]),options)elem.style[name]=old[name];return ret}}),window.getComputedStyle?(getStyles=function(elem){return window.getComputedStyle(elem,null)},curCSS=function(minWidth,maxWidth,width){var computed=width||getStyles(minWidth),ret=computed?computed.getPropertyValue(maxWidth)||computed[maxWidth]:undefined,style=minWidth.style;return computed&&(""!==ret||jQuery.contains(minWidth.ownerDocument,minWidth)||(ret=jQuery.style(minWidth,maxWidth)),rnumnonpx.test(ret)&&rmargin.test(maxWidth)&&(width=style.width,minWidth=style.minWidth,maxWidth=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,
style.width=width,style.minWidth=minWidth,style.maxWidth=maxWidth)),ret}):document.documentElement.currentStyle&&(getStyles=function(elem){return elem.currentStyle},curCSS=function(elem,name,rs){var left,rsLeft=rs||getStyles(elem),ret=rsLeft?rsLeft[name]:undefined,style=elem.style;return null==ret&&style&&style[name]&&(ret=style[name]),rnumnonpx.test(ret)&&!rposition.test(name)&&(left=style.left,(rsLeft=(rs=elem.runtimeStyle)&&rs.left)&&(rs.left=elem.currentStyle.left),style.left="fontSize"===name?"1em":ret,ret=style.pixelLeft+"px",style.left=left,rsLeft&&(rs.left=rsLeft)),""===ret?"auto":ret}),jQuery.each(["height","width"],function(i,name){
jQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed)return 0===elem.offsetWidth&&rdisplayswap.test(jQuery.css(elem,"display"))?jQuery.swap(elem,cssShow,function(){return getWidthOrHeight(elem,name,extra)}):getWidthOrHeight(elem,name,extra)},set:function(elem,value,extra){var styles=extra&&getStyles(elem);return setPositiveNumber(0,value,extra?augmentWidthOrHeight(elem,name,extra,jQuery.support.boxSizing&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles),styles):0)}}}),jQuery.support.opacity||(jQuery.cssHooks.opacity={get:function(elem,computed){return ropacity.test((computed&&elem.currentStyle?elem.currentStyle:elem.style).filter||""
)?.01*parseFloat(RegExp.$1)+"":computed?"1":""},set:function(filter,value){var style=filter.style,currentStyle=filter.currentStyle,opacity=jQuery.isNumeric(value)?"alpha(opacity="+100*value+")":"",filter=currentStyle&&currentStyle.filter||style.filter||"";((style.zoom=1)<=value||""===value)&&""===jQuery.trim(filter.replace(ralpha,""))&&style.removeAttribute&&(style.removeAttribute("filter"),""===value||currentStyle&&!currentStyle.filter)||(style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):filter+" "+opacity)}}),jQuery(function(){jQuery.support.reliableMarginRight||(jQuery.cssHooks.marginRight={get:function(elem,computed){if(computed
)return jQuery.swap(elem,{display:"inline-block"},curCSS,[elem,"marginRight"])}}),!jQuery.support.pixelPosition&&jQuery.fn.position&&jQuery.each(["top","left"],function(i,prop){jQuery.cssHooks[prop]={get:function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed}}})}),jQuery.expr&&jQuery.expr.filters&&(jQuery.expr.filters.hidden=function(elem){return elem.offsetWidth<=0&&elem.offsetHeight<=0||!jQuery.support.reliableHiddenOffsets&&"none"===(elem.style&&elem.style.display||jQuery.css(elem,"display"))},jQuery.expr.filters.visible=function(elem){return!jQuery.expr.filters.hidden(
elem)}),jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts="string"==typeof value?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},rmargin.test(prefix)||(jQuery.cssHooks[prefix+suffix].set=setPositiveNumber)});var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(
function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this}).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!manipulation_rcheckableType.test(type))}).map(function(i,elem){var val=jQuery(this).val();return null==val?null:jQuery.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}}),jQuery.param=function(a,traditional){function add(key,value){value=jQuery.isFunction(value)?value():null==value?"":value
,s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)}var prefix,s=[];if(traditional===undefined&&(traditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional),jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a))jQuery.each(a,function(){add(this.name,this.value)});else for(prefix in a)!function buildParams(prefix,obj,traditional,add){if(jQuery.isArray(obj))jQuery.each(obj,function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"==typeof v?i:"")+"]",v,traditional,add)});else if(traditional||"object"!==jQuery.type(obj))add(prefix,obj);else for(var name in obj)buildParams(prefix+"["+name+"]",obj[name],
traditional,add)}(prefix,a[prefix],traditional,add);return s.join("&").replace(r20,"+")},jQuery.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(i,name){jQuery.fn[name]=function(data,fn){return 0<arguments.length?this.on(name,null,data,fn):this.trigger(name)}}),jQuery.fn.hover=function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)};var ajaxLocParts,ajaxLocation,ajax_nonce=jQuery.now(),ajax_rquery=/\?/,rhash=/#.*$/,rts=/([?&])_=[^&]*/,
rheaders=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_load=jQuery.fn.load,prefilters={},transports={},allTypes="*/".concat("*");try{ajaxLocation=location.href}catch(e){(ajaxLocation=document.createElement("a")).href="",ajaxLocation=ajaxLocation.href}function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){"string"!=typeof dataTypeExpression&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(core_rnotwhite)||[];if(jQuery.isFunction(func))for(;dataType=dataTypes[i++];
)"+"===dataType[0]?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;return inspected[dataType]=!0,jQuery.each(structure[dataType]||[],function(_,dataTypeOrTransport){dataTypeOrTransport=dataTypeOrTransport(options,originalOptions,jqXHR);return"string"!=typeof dataTypeOrTransport||seekingTransport||inspected[dataTypeOrTransport]?seekingTransport?!(selected=dataTypeOrTransport
):void 0:(options.dataTypes.unshift(dataTypeOrTransport),inspect(dataTypeOrTransport),!1)}),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var deep,key,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src)src[key]!==undefined&&((flatOptions[key]?target:deep=deep||{})[key]=src[key]);return deep&&jQuery.extend(!0,target,deep),target}ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[],jQuery.fn.load=function(url,params,callback){if("string"!=typeof url&&_load)return _load.apply(this,arguments);var selector,response,type,self=this,off=url.indexOf(" ");return 0<=off&&(selector=url.slice(
off,url.length),url=url.slice(0,off)),jQuery.isFunction(params)?(callback=params,params=undefined):params&&"object"==typeof params&&(type="POST"),0<self.length&&jQuery.ajax({url:url,type:type,dataType:"html",data:params}).done(function(responseText){response=arguments,self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText)}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR])}),this},jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}}),jQuery.each([
"get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){return jQuery.isFunction(data)&&(type=type||callback,callback=data,data=undefined),jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback})}}),jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ajaxLocParts[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{
xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":!0,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(parts,options){"object"==typeof parts&&(options=parts,parts=undefined),options=options||{};var i,cacheURL,responseHeadersString,timeoutTimer,fireGlobals,transport
,responseHeaders,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(2===state){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()]=match[2];match=responseHeaders[key.toLowerCase()]}return null==match?null:match},
getAllResponseHeaders:function(){return 2===state?responseHeadersString:null},setRequestHeader:function(name,value){var lname=name.toLowerCase();return state||(name=requestHeadersNames[lname]=requestHeadersNames[lname]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return state||(s.mimeType=type),this},statusCode:function(map){if(map)if(state<2)for(var code in map)statusCode[code]=[statusCode[code],map[code]];else jqXHR.always(map[jqXHR.status]);return this},abort:function(finalText){finalText=finalText||strAbort;return transport&&transport.abort(finalText),done(0,finalText),this}};if(deferred.promise(jqXHR
).complete=completeDeferred.add,jqXHR.success=jqXHR.done,jqXHR.error=jqXHR.fail,s.url=((parts||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(core_rnotwhite)||[""],null==s.crossDomain&&(parts=rurl.exec(s.url.toLowerCase()),s.crossDomain=!(!parts||parts[1]===ajaxLocParts[1]&&parts[2]===ajaxLocParts[2]&&(parts[3]||("http:"===parts[1]?80:443))==(ajaxLocParts[3]||("http:"===ajaxLocParts[1]?80:443)))),s.data&&s.processData&&"string"!=typeof s.data&&(s.data=jQuery.param(s.data,s.traditional)),
inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),2===state)return jqXHR;for(i in(fireGlobals=s.global)&&0==jQuery.active++&&jQuery.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url,s.hasContent||(s.data&&(cacheURL=s.url+=(ajax_rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(s.url=rts.test(cacheURL)?cacheURL.replace(rts,"$1_="+ajax_nonce++):cacheURL+(ajax_rquery.test(cacheURL)?"&":"?")+"_="+ajax_nonce++)),s.ifModified&&(jQuery.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]),jQuery.etag[cacheURL]&&jqXHR.setRequestHeader(
"If-None-Match",jQuery.etag[cacheURL])),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]),s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||2===state))return jqXHR.abort();for(i in strAbort="abort",{success:1,error:1,complete:1})jqXHR[i](s[i]);if(transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){jqXHR.readyState=1,
fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),s.async&&0<s.timeout&&(timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout));try{state=1,transport.send(requestHeaders,done)}catch(e){if(!(state<2))throw e;done(-1,e)}}else done(-1,"No Transport");function done(status,nativeStatusText,modified,headers){var isSuccess,success,error,response,statusText=nativeStatusText;2!==state&&(state=2,timeoutTimer&&clearTimeout(timeoutTimer),transport=undefined,responseHeadersString=headers||"",jqXHR.readyState=0<status?4:0,modified&&(response=function(s,jqXHR,responses){var firstDataType,ct,finalDataType,type,contents=s.contents,
dataTypes=s.dataTypes,responseFields=s.responseFields;for(type in responseFields)type in responses&&(jqXHR[responseFields[type]]=responses[type]);for(;"*"===dataTypes[0];)dataTypes.shift(),ct===undefined&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct)for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType=firstDataType||type}finalDataType=finalDataType||firstDataType}if(finalDataType
)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]}(s,jqXHR,modified)),200<=status&&status<300||304===status?(s.ifModified&&((modified=jqXHR.getResponseHeader("Last-Modified"))&&(jQuery.lastModified[cacheURL]=modified),(modified=jqXHR.getResponseHeader("etag"))&&(jQuery.etag[cacheURL]=modified)),204===status?(isSuccess=!0,statusText="nocontent"):304===status?(isSuccess=!0,statusText="notmodified"):(statusText=(isSuccess=function(s,response){var conv2,current,conv,tmp,converters={},i=0,dataTypes=s.dataTypes.slice(),prev=dataTypes[0];s.dataFilter&&(response=s.dataFilter(response,s.dataType));if(dataTypes[1])for(
conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(;current=dataTypes[++i];)if("*"!==current){if("*"!==prev&&prev!==current){if(!(conv=converters[prev+" "+current]||converters["* "+current]))for(conv2 in converters)if((tmp=conv2.split(" "))[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]])){!0===conv?conv=converters[conv2]:!0!==converters[conv2]&&(current=tmp[0],dataTypes.splice(i--,0,current));break}if(!0!==conv)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}prev=current}return{
state:"success",data:response}}(s,response)).state,success=isSuccess.data,isSuccess=!(error=isSuccess.error))):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",isSuccess?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=undefined,fireGlobals&&globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger(
"ajaxComplete",[jqXHR,s]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}return jqXHR},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")}}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(text){return jQuery.globalEval(text),text}}}),jQuery.ajaxPrefilter("script",function(s){s.cache===undefined&&(s.cache=!1),s.crossDomain&&(s.type="GET",s.global=!1)}),jQuery.ajaxTransport("script",
function(s){if(s.crossDomain){var script,head=document.head||jQuery("head")[0]||document.documentElement;return{send:function(_,callback){(script=document.createElement("script")).async=!0,s.scriptCharset&&(script.charset=s.scriptCharset),script.src=s.url,script.onload=script.onreadystatechange=function(_,isAbort){!isAbort&&script.readyState&&!/loaded|complete/.test(script.readyState)||(script.onload=script.onreadystatechange=null,script.parentNode&&script.parentNode.removeChild(script),script=null,isAbort||callback(200,"success"))},head.insertBefore(script,head.firstChild)},abort:function(){script&&script.onload(undefined,!0)}}}});var oldCallbacks=[],
rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+ajax_nonce++;return this[callback]=!0,callback}}),jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,
"$1"+callbackName):!1!==s.jsonp&&(s.url+=(ajax_rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||jQuery.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always(function(){window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&jQuery.isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=undefined}),"script"});var xhrCallbacks,
xhrSupported,xhrId=0,xhrOnUnloadAbort=window.ActiveXObject&&function(){for(var key in xhrCallbacks)xhrCallbacks[key](undefined,!0)};function createStandardXHR(){try{return new window.XMLHttpRequest}catch(e){}}jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&createStandardXHR()||function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:createStandardXHR,xhrSupported=jQuery.ajaxSettings.xhr(),jQuery.support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,(xhrSupported=jQuery.support.ajax=!!xhrSupported)&&jQuery.ajaxTransport(function(s){var callback;if(!s.crossDomain||jQuery.support.cors)return{
send:function(headers,complete){var handle,i,xhr=s.xhr();if(s.username?xhr.open(s.type,s.url,s.async,s.username,s.password):xhr.open(s.type,s.url,s.async),s.xhrFields)for(i in s.xhrFields)xhr[i]=s.xhrFields[i];s.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(s.mimeType),s.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest");try{for(i in headers)xhr.setRequestHeader(i,headers[i])}catch(err){}xhr.send(s.hasContent&&s.data||null),callback=function(_,isAbort){var status,responseHeaders,statusText,responses;try{if(callback&&(isAbort||4===xhr.readyState))if(callback=undefined,handle&&(xhr.onreadystatechange=jQuery.noop,
xhrOnUnloadAbort&&delete xhrCallbacks[handle]),isAbort)4!==xhr.readyState&&xhr.abort();else{responses={},status=xhr.status,responseHeaders=xhr.getAllResponseHeaders(),"string"==typeof xhr.responseText&&(responses.text=xhr.responseText);try{statusText=xhr.statusText}catch(e){statusText=""}status||!s.isLocal||s.crossDomain?1223===status&&(status=204):status=responses.text?200:404}}catch(firefoxAccessException){isAbort||complete(-1,firefoxAccessException)}responses&&complete(status,statusText,responses,responseHeaders)},s.async?4===xhr.readyState?setTimeout(callback):(handle=++xhrId,xhrOnUnloadAbort&&(xhrCallbacks||(xhrCallbacks={},jQuery(window).unload(
xhrOnUnloadAbort)),xhrCallbacks[handle]=callback),xhr.onreadystatechange=callback):callback()},abort:function(){callback&&callback(undefined,!0)}}});var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[function(elem,props,opts){var prop,index,length,value,dataShow,toggle,tween,hooks,oldfire,anim=this,style=elem.style,orig={},handled=[],hidden=elem.nodeType&&isHidden(elem);opts.queue||(null==(hooks=jQuery._queueHooks(elem,"fx")).unqueued&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,
anim.always(function(){anim.always(function(){hooks.unqueued--,jQuery.queue(elem,"fx").length||hooks.empty.fire()})}));1===elem.nodeType&&("height"in props||"width"in props)&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],"inline"===jQuery.css(elem,"display")&&"none"===jQuery.css(elem,"float")&&(jQuery.support.inlineBlockNeedsLayout&&"inline"!==css_defaultDisplay(elem.nodeName)?style.zoom=1:style.display="inline-block"));opts.overflow&&(style.overflow="hidden",jQuery.support.shrinkWrapBlocks||anim.always(function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]}));for(index in props
)value=props[index],rfxtypes.exec(value)&&(delete props[index],toggle=toggle||"toggle"===value,value!==(hidden?"hide":"show")&&handled.push(index));if(length=handled.length){"hidden"in(dataShow=jQuery._data(elem,"fxshow")||jQuery._data(elem,"fxshow",{}))&&(hidden=dataShow.hidden),toggle&&(dataShow.hidden=!hidden),hidden?jQuery(elem).show():anim.done(function(){jQuery(elem).hide()}),anim.done(function(){for(var prop in jQuery._removeData(elem,"fxshow"),orig)jQuery.style(elem,prop,orig[prop])});for(index=0;index<length;index++)prop=handled[index],tween=anim.createTween(prop,hidden?dataShow[prop]:0),orig[prop]=dataShow[prop]||jQuery.style(elem,prop),
prop in dataShow||(dataShow[prop]=tween.start,hidden&&(tween.end=tween.start,tween.start="width"===prop||"height"===prop?1:0))}}],tweeners={"*":[function(prop,end){var unit,tween=this.createTween(prop,end),parts=rfxnum.exec(end),target=tween.cur(),start=+target||0,scale=1,maxIterations=20;if(parts){if(end=+parts[2],"px"!==(unit=parts[3]||(jQuery.cssNumber[prop]?"":"px"))&&start)for(start=jQuery.css(tween.elem,prop,!0)||end||1;start/=scale=scale||".5",jQuery.style(tween.elem,prop,start+unit),scale!==(scale=tween.cur()/target)&&1!==scale&&--maxIterations;);tween.unit=unit,tween.start=start,tween.end=parts[1]?start+(parts[1]+1)*end:end}return tween}]}
;function createFxNow(){return setTimeout(function(){fxNow=undefined}),fxNow=jQuery.now()}function Animation(elem,properties,options){var result,stopped,index=0,length=animationPrefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem}),tick=function(){if(stopped)return!1;for(var remaining=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-remaining),percent=1-(remaining/animation.duration||0),index=0,length=animation.tweens.length;index<length;index++)animation.tweens[index].run(percent);return deferred.notifyWith(elem,[animation,percent,remaining]),percent<1&&length?remaining:(deferred.resolveWith(elem,[
animation]),!1)},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(!0,{specialEasing:{}},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(tween,end){tween=jQuery.Tween(elem,animation.opts,tween,end,animation.opts.specialEasing[tween]||animation.opts.easing);return animation.tweens.push(tween),tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped)return this;for(stopped=!0;index<length;index++)animation.tweens[index].run(1);return gotoEnd?deferred.resolveWith(elem,[animation,
gotoEnd]):deferred.rejectWith(elem,[animation,gotoEnd]),this}}),props=animation.props;for(!function(props,specialEasing){var value,name,index,easing,hooks;for(index in props)if(name=jQuery.camelCase(index),easing=specialEasing[name],value=props[index],jQuery.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),(hooks=jQuery.cssHooks[name])&&"expand"in hooks)for(index in value=hooks.expand(value),delete props[name],value)index in props||(props[index]=value[index],specialEasing[index]=easing);else specialEasing[name]=easing}(props,animation.opts.specialEasing);index<length;index++)if(
result=animationPrefilters[index].call(animation,elem,props,animation.opts))return result;return function(animation,props){jQuery.each(props,function(prop,value){for(var collection=(tweeners[prop]||[]).concat(tweeners["*"]),index=0,length=collection.length;index<length;index++)if(collection[index].call(animation,prop,value))return})}(animation,props),jQuery.isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue})),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(
animation.opts.always)}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}function genFx(type,includeWidth){var which,attrs={height:type},i=0;for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)attrs["margin"+(which=cssExpand[i])]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function getWindow(elem){return jQuery.isWindow(elem)?elem:9===elem.nodeType&&(elem.defaultView||elem.parentWindow)}jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){for(var prop,index=0,length=(props=jQuery.isFunction(props)?(callback=props,["*"]):props.split(
" ")).length;index<length;index++)prop=props[index],tweeners[prop]=tweeners[prop]||[],tweeners[prop].unshift(callback)},prefilter:function(callback,prepend){prepend?animationPrefilters.unshift(callback):animationPrefilters.push(callback)}}),(jQuery.Tween=Tween).prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||"swing",this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return(hooks&&hooks.get?hooks:Tween.propHooks._default).get(this)},run:function(percent){var eased,
hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(hooks&&hooks.set?hooks:Tween.propHooks._default).set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(tween){var result;return null==tween.elem[tween.prop]||tween.elem.style&&null!=tween.elem.style[tween.prop]?(result=jQuery.css(tween.elem,tween.prop,""))&&"auto"!==result?result:0:tween.elem[tween.prop]},
set:function(tween){jQuery.fx.step[tween.prop]?jQuery.fx.step[tween.prop](tween):tween.elem.style&&(null!=tween.elem.style[jQuery.cssProps[tween.prop]]||jQuery.cssHooks[tween.prop])?jQuery.style(tween.elem,tween.prop,tween.now+tween.unit):tween.elem[tween.prop]=tween.now}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},jQuery.each(["toggle","show","hide"],function(i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return null==speed||"boolean"==typeof speed?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,
easing,callback)}}),jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery.extend({},prop),optall);doAnimation.finish=function(){anim.stop(!0)},(empty||jQuery._data(this,"finish"))&&anim.stop(!0)};return doAnimation.finish=doAnimation,empty||!1===optall.queue?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){
function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)}return"string"!=typeof type&&(gotoEnd=clearQueue,clearQueue=type,type=undefined),clearQueue&&!1!==type&&this.queue(type||"fx",[]),this.each(function(){var dequeue=!0,index=null!=type&&type+"queueHooks",timers=jQuery.timers,data=jQuery._data(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem!==this||null!=type&&timers[index].queue!==type||(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1))
;!dequeue&&gotoEnd||jQuery.dequeue(this,type)})},finish:function(type){return!1!==type&&(type=type||"fx"),this.each(function(){var index,data=jQuery._data(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;for(data.finish=!0,jQuery.queue(this,type,[]),hooks&&hooks.cur&&hooks.cur.finish&&hooks.cur.finish.call(this),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish})}}),jQuery.each({slideDown:genFx(
"show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}}),jQuery.speed=function(speed,easing,fn){var opt=speed&&"object"==typeof speed?jQuery.extend({},speed):{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};return opt.duration=jQuery.fx.off?0:"number"==typeof opt.duration?opt.duration:opt.duration in jQuery.fx.speeds?jQuery.fx.speeds[opt.duration]:jQuery.fx.speeds._default,
null!=opt.queue&&!0!==opt.queue||(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){jQuery.isFunction(opt.old)&&opt.old.call(this),opt.queue&&jQuery.dequeue(this,opt.queue)},opt},jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2}},jQuery.timers=[],jQuery.fx=Tween.prototype.init,jQuery.fx.tick=function(){var timer,timers=jQuery.timers,i=0;for(fxNow=jQuery.now();i<timers.length;i++)(timer=timers[i])()||timers[i]!==timer||timers.splice(i--,1);timers.length||jQuery.fx.stop(),fxNow=undefined},jQuery.fx.timer=function(timer){timer()&&jQuery.timers.push(timer)&&jQuery.fx.start()},jQuery.fx.interval=13,
jQuery.fx.start=function(){timerId=timerId||setInterval(jQuery.fx.tick,jQuery.fx.interval)},jQuery.fx.stop=function(){clearInterval(timerId),timerId=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fx.step={},jQuery.expr&&jQuery.expr.filters&&(jQuery.expr.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length}),jQuery.fn.offset=function(options){if(arguments.length)return options===undefined?this:this.each(function(i){jQuery.offset.setOffset(this,options,i)});var docElem,box={top:0,left:0},elem=this[0],win=elem&&elem.ownerDocument;return win?(docElem=win.documentElement,jQuery.contains(
docElem,elem)?(typeof elem.getBoundingClientRect!==core_strundefined&&(box=elem.getBoundingClientRect()),win=getWindow(win),{top:box.top+(win.pageYOffset||docElem.scrollTop)-(docElem.clientTop||0),left:box.left+(win.pageXOffset||docElem.scrollLeft)-(docElem.clientLeft||0)}):box):void 0},jQuery.offset={setOffset:function(elem,options,i){var position=jQuery.css(elem,"position");"static"===position&&(elem.style.position="relative");var curPosition,curTop,curElem=jQuery(elem),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curLeft=jQuery.css(elem,"left"),props={},curLeft=("absolute"===position||"fixed"===position)&&-1<jQuery.inArray("auto",[curCSSTop
,curLeft])?(curTop=(curPosition=curElem.position()).top,curPosition.left):(curTop=parseFloat(curCSSTop)||0,parseFloat(curLeft)||0);jQuery.isFunction(options)&&(options=options.call(elem,i,curOffset)),null!=options.top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+curLeft),"using"in options?options.using.call(elem,props):curElem.css(props)}},jQuery.fn.extend({position:function(){if(this[0]){var offsetParent,offset,parentOffset={top:0,left:0},elem=this[0];return"fixed"===jQuery.css(elem,"position")?offset=elem.getBoundingClientRect():(offsetParent=this.offsetParent(),offset=this.offset(),
jQuery.nodeName(offsetParent[0],"html")||(parentOffset=offsetParent.offset()),parentOffset.top+=jQuery.css(offsetParent[0],"borderTopWidth",!0),parentOffset.left+=jQuery.css(offsetParent[0],"borderLeftWidth",!0)),{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var offsetParent=this.offsetParent||document.documentElement;offsetParent&&!jQuery.nodeName(offsetParent,"html")&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||document.documentElement})}}),
jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return jQuery.access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined)return win?prop in win?win[prop]:win.document.documentElement[method]:elem[method];win?win.scrollTo(top?jQuery(win).scrollLeft():val,top?val:jQuery(win).scrollTop()):elem[method]=val},method,val,arguments.length,null)}}),jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){
var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return jQuery.access(this,function(elem,type,value){var doc;return jQuery.isWindow(elem)?elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)},type,chainable?margin:undefined,chainable,null)}})}),window.jQuery=window.$=jQuery,"function"==typeof define&&define.amd&&define.amd.jQuery&&define(
"jquery",[],function(){return jQuery})}(window),define("jquery.cookie",["jquery"],function(jQuery){jQuery.cookie=function(name,value,secure){if(void 0===value){var cookieValue=null;if(document.cookie&&""!=document.cookie)for(var cookies=document.cookie.split(";"),i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==name+"="){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}return cookieValue}secure=secure||{},null===value&&(value="",secure.expires=-1);var expires="";secure.expires&&("number"==typeof secure.expires||secure.expires.toUTCString)&&("number"==typeof secure.expires?(
domain=new Date).setTime(domain.getTime()+24*secure.expires*60*60*1e3):domain=secure.expires,expires="; expires="+domain.toUTCString());var path=secure.path?"; path="+secure.path:"",domain=secure.domain?"; domain="+secure.domain:"",secure=secure.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}}),define("nouislider",["jquery"],function($){"use strict";var doc=$(document),namespace=".nui",$val=$.fn.val,actions=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{
start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},Classes=["noUi-target","noUi-base","noUi-origin","noUi-handle","noUi-horizontal","noUi-vertical","noUi-background","noUi-connect","noUi-ltr","noUi-rtl","noUi-dragable","","noUi-state-drag","","noUi-state-tap","noUi-active","noUi-extended","noUi-stacking"],Formatting=["decimals","mark","thousand","prefix","postfix","encoder","decoder","negative","negativeBefore"],FormatDefaults=[2,".","","","",function(a){return a},function(a){return a},"-",""];function throwError(message){throw new RangeError("noUiSlider: "+message)}function throwEqualError(F,a,b){(F[a]||F[b]
)&&F[a]===F[b]&&throwError("(Link) '"+a+"' can't match '"+b+"'.'")}function limit(a){return Math.max(Math.min(a,100),0)}function subRangeRatio(pa,pb){return 100/(pb-pa)}function isNumeric(a){return"number"==typeof a&&!isNaN(a)&&isFinite(a)}function addClassFor(element,className,duration){element.addClass(className),setTimeout(function(){element.removeClass(className)},duration)}function fromPercentage(range,value){return 100*value/(range[1]-range[0])}function toStepping(options,value){if(value>=options.xVal.slice(-1)[0])return 100;for(var va,vb,pa,pb,j=1;value>=options.xVal[j];)j++;return va=options.xVal[j-1],vb=options.xVal[j],pa=options.xPct[j-1],
pb=options.xPct[j],pa+function(range,value){return fromPercentage(range,range[0]<0?value+Math.abs(range[0]):value-range[0])}([va,vb],value)/(100/(pb-pa))}function fromStepping(options,value){if(100<=value)return options.xVal.slice(-1)[0];for(var va,vb,pa,j=1;value>=options.xPct[j];)j++;return va=options.xVal[j-1],vb=options.xVal[j],pa=options.xPct[j-1],function(range,value){return value*(range[1]-range[0])/100+range[0]}([va,vb],100/(options.xPct[j]-pa)*(value-pa))}function getStep(options,value){for(var a,b,j=1;value>=options.xPct[j];)j++;return options.snap?(a=options.xPct[j-1],((b=options.xPct[j])-a)/2<value-a?b:a
):options.xSteps[j-1]?options.xPct[j-1]+function(value,to){return Math.round(value/to)*to}(value-options.xPct[j-1],options.xSteps[j-1]):value}function Format(options){void 0===options&&(options={}),"object"!=typeof options&&throwError("(Format) 'format' option must be an object.");var settings={};$(Formatting).each(function(i,val){void 0===options[val]?settings[val]=FormatDefaults[i]:typeof options[val]==typeof FormatDefaults[i]?("decimals"===val&&(options[val]<0||7<options[val])&&throwError("(Format) 'format.decimals' option must be between 0 and 7."),settings[val]=options[val]):throwError("(Format) 'format."+val+"' must be a "+typeof FormatDefaults[i]+".")
}),throwEqualError(settings,"mark","thousand"),throwEqualError(settings,"prefix","negative"),throwEqualError(settings,"prefix","negativeBefore"),this.settings=settings}function Link(methodIsFunction,isInput){if(!(this instanceof Link))throw new Error("Link: Don't use Link as a function. Use the 'new' keyword.");if(!methodIsFunction)throw new RangeError("Link: missing parameters.");this.formatting=methodIsFunction.format||{},this.update=!isInput;var methodIsName,that=this,target=methodIsFunction.target||function(){},method=methodIsFunction.method,isTooltip="string"==typeof target&&0===target.indexOf("-tooltip-"),
isHidden="string"==typeof target&&0!==target.indexOf("-"),isMethod="function"==typeof target,is$=(methodIsName=target)instanceof $||$.zepto&&$.zepto.isZ(methodIsName),isInput=is$&&target.is("input, select, textarea"),methodIsFunction=is$&&"function"==typeof method,methodIsName=is$&&"string"==typeof method&&target[method];if(isTooltip)return this.method=method||"html",void(this.el=$(target.replace("-tooltip-","")||"<div/>")[0]);if(isHidden)return this.method="val",this.el=document.createElement("input"),this.el.name=target,void(this.el.type="hidden");if(isMethod)return this.target=!1,void(this.method=target);if(is$){if(method&&(methodIsFunction||methodIsName)
)return this.target=target,void(this.method=method);if(!method&&isInput)return this.method="val",this.target=target,void this.target.on("change",function(output){var a,b,c,output=(a=null,b=$(output.target).val(),[(c=that.N)?a:b,c?b:a]);that.obj.val(output,{link:that})});if(!method&&!isInput)return this.method="html",void(this.target=target)}throw new RangeError("Link: Invalid Link.")}function testStep(parsed,entry){isNumeric(entry)||throwError("'step' is not numeric."),parsed.xSteps[0]=entry}function testRange(parsed,entry){"object"==typeof entry&&!$.isArray(entry)||throwError("'range' is not an object."),$.each(entry,function(percentage,value){
"number"==typeof value&&(value=[value]),$.isArray(value)||throwError("'range' contains invalid value."),isNumeric(percentage="min"===percentage?0:"max"===percentage?100:parseFloat(percentage))&&isNumeric(value[0])||throwError("'range' value isn't numeric."),parsed.xPct.push(percentage),parsed.xVal.push(value[0]),percentage?parsed.xSteps.push(!isNaN(value[1])&&value[1]):isNaN(value[1])||(parsed.xSteps[0]=value[1])}),$.each(parsed.xSteps,function(i,n){return!n||void(parsed.xSteps[i]=fromPercentage([parsed.xVal[i],parsed.xVal[i+1]],n)/subRangeRatio(parsed.xPct[i],parsed.xPct[i+1]))})}function testStart(parsed,entry){"number"==typeof entry&&(entry=[entry]),
$.isArray(entry)&&entry.length&&!(2<entry.length)||throwError("'start' option is incorrect."),parsed.handles=entry.length,parsed.start=entry}function testSnap(parsed,entry){"boolean"!=typeof(parsed.snap=entry)&&throwError("'snap' option must be a boolean.")}function testConnect(parsed,entry){"lower"===entry&&1===parsed.handles?parsed.connect=1:"upper"===entry&&1===parsed.handles?parsed.connect=2:!0===entry&&2===parsed.handles?parsed.connect=3:!1===entry?parsed.connect=0:throwError("'connect' option was doesn't match handle count.")}function testOrientation(parsed,entry){switch(entry){case"horizontal":parsed.ort=0;break;case"vertical":parsed.ort=1;break
;default:throwError("'orientation' option is invalid.")}}function testMargin(parsed,entry){2<parsed.xPct.length&&throwError("'margin' option is only supported on linear sliders."),parsed.margin=fromPercentage(parsed.xVal,entry),isNumeric(entry)||throwError("'margin' option must be numeric.")}function testDirection(parsed,entry){switch(entry){case"ltr":parsed.dir=0;break;case"rtl":parsed.dir=1,parsed.connect=[0,2,1,3][parsed.connect];break;default:throwError("'direction' option was not recognized.")}}function testBehaviour(parsed,snap){"string"!=typeof snap&&throwError("'behaviour' must be a string containing options.");var tap=0<=snap.indexOf("tap"),
extend=0<=snap.indexOf("extend"),drag=0<=snap.indexOf("drag"),fixed=0<=snap.indexOf("fixed"),snap=0<=snap.indexOf("snap");parsed.events={tap:tap||snap,extend:extend,drag:drag,fixed:fixed,snap:snap}}function testSerialization(parsed,entry,sliders){parsed.ser=[entry.lower,entry.upper],parsed.formatting=new Format(entry.format),$.each(parsed.ser,function(i,a){$.isArray(a)||throwError("'serialization."+(i?"upper":"lower")+"' must be an array."),$.each(a,function(){this instanceof Link||throwError("'serialization."+(i?"upper":"lower")+"' can only contain Link instances."),this.N=i,this.obj=sliders,this.scope=this.scope||sliders,this.formatting=new Format(
$.extend({},entry.format,this.formatting))})}),parsed.dir&&1<parsed.handles&&parsed.ser.reverse()}function addElements(elements,handle,formatting){var index,list=[];for(list.push(new Link({format:formatting},!0)),index=0;index<elements.length;index++)list.push(function(handle,link){return link.el&&(link=new Link({target:$(link.el).clone().appendTo(handle),method:link.method,format:link.formatting},!0)),link}(handle,elements[index]));return list}function addHandles(options,base){for(var handles=[],index=0;index<options.handles;index++)handles.push(function(options,index){var handle=$("<div><div/></div>").addClass(Classes[2]),additions=["-lower","-upper"]
;return options.dir&&additions.reverse(),handle.children().addClass(Classes[3]+" "+Classes[3]+additions[index]),handle}(options,index).appendTo(base));return handles}function closure(target,options,originalOptions){var $Base,$Serialization,$Handles,$Target=$(target),$Locations=[-1,-1];function baseSize(){return $Base[["width","height"][options.ort]]()}function fireEvents(events){for(var values=[$Target.val()],index=0;index<events.length;index++)$Target.trigger(events[index],values)}function setHandle(handle,to,delimit){var n=handle[0]!==$Handles[0][0]?1:0,lower=$Locations[0]+options.margin,upper=$Locations[1]-options.margin
;return delimit&&1<$Handles.length&&(to=n?Math.max(to,lower):Math.min(to,upper)),to<100&&(to=getStep(options,to)),(to=limit(parseFloat(to.toFixed(7))))===$Locations[n]?1!==$Handles.length&&((to===lower||to===upper)&&0):(handle.css(options.style,to+"%"),handle.is(":first-child")&&handle.toggleClass(Classes[17],50<to),$Locations[n]=to,options.dir&&(to=100-to),$($Serialization[n]).each(function(){this.write(options,to,handle.children(),$Target)}),!0)}function jump(handle,to,instant){instant||addClassFor($Target,Classes[14],300),setHandle(handle,to,!1),fireEvents(["slide","set","change"])}function attach(events,element,callback,data){
return events=events.replace(/\s/g,namespace+" ")+namespace,element.on(events,function(e){var disabled=!(null==(disabled=$Target.attr("disabled")));if($Target.hasClass(Classes[14])||disabled)return!1;(e=function(e){e.preventDefault();var x,y,touch=0===e.type.indexOf("touch"),mouse=0===e.type.indexOf("mouse"),pointer=0===e.type.indexOf("pointer"),event=e;return 0===e.type.indexOf("MSPointer")&&(pointer=!0),e.originalEvent&&(e=e.originalEvent),touch&&(x=e.changedTouches[0].pageX,y=e.changedTouches[0].pageY),(mouse||pointer)&&(pointer||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,
window.pageYOffset=document.documentElement.scrollTop),x=e.clientX+window.pageXOffset,y=e.clientY+window.pageYOffset),event.points=[x,y],event.cursor=mouse,event}(e)).calcPoint=e.points[options.ort],callback(e,data)})}function move(positions,c){var a,handles=c.handles||$Handles,state=!1,delimit=100*(positions.calcPoint-c.start)/baseSize(),h=handles[0][0]!==$Handles[0][0]?1:0;a=delimit,positions=c.positions,delimit=1<handles.length,c=a+positions[0],positions=a+positions[1],positions=delimit?(c<0&&(positions+=Math.abs(c)),100<positions&&(c-=positions-100),[limit(c),limit(positions)]):[c,positions],state=setHandle(handles[0],positions[h],1===handles.length),
1<handles.length&&(state=setHandle(handles[1],positions[h?0:1],!1)||state),state&&fireEvents(["slide"])}function end(event){$("."+Classes[15]).removeClass(Classes[15]),event.cursor&&$("body").css("cursor","").off(namespace),doc.off(namespace),$Target.removeClass(Classes[12]),fireEvents(["set","change"])}function start(event,data){1===data.handles.length&&data.handles[0].children().addClass(Classes[15]),event.stopPropagation(),attach(actions.move,doc,move,{start:event.calcPoint,handles:data.handles,positions:[$Locations[0],$Locations[$Handles.length-1]]}),attach(actions.end,doc,end,null),event.cursor&&($("body").css("cursor",$(event.target).css("cursor")),
1<$Handles.length&&$Target.addClass(Classes[12]),$("body").on("selectstart"+namespace,!1))}function tap(event){var to=event.calcPoint,total=0;event.stopPropagation(),$.each($Handles,function(){total+=this.offset()[options.style]}),total=to<total/2||1===$Handles.length?0:1,to=100*(to-=$Base.offset()[options.style])/baseSize(),jump($Handles[total],to,options.events.snap),options.events.snap&&start(event,{handles:[$Handles[total]]})}function edge(to){var to=(i=to.calcPoint<$Base.offset()[options.style])?0:100,i=i?0:$Handles.length-1;jump($Handles[i],to,!1)}if(!$Target.is(":empty"))throw new Error("Slider was already initialized.");$Base=function(options,target
){return target.addClass([Classes[0],Classes[8+options.dir],Classes[4+options.ort]].join(" ")),$("<div/>").appendTo(target).addClass(Classes[1])}(options,$Target),$Handles=addHandles(options,$Base),$Serialization=function(options,handles){for(var links=[],index=0;index<options.handles;index++)links[index]=addElements(options.ser[index],handles[index].children(),options.formatting);return links}(options,$Handles),function(connect,target,handles){switch(connect){case 1:target.addClass(Classes[7]),handles[0].addClass(Classes[6]);break;case 3:handles[1].addClass(Classes[6]);case 2:handles[0].addClass(Classes[7]);case 0:target.addClass(Classes[6])}}(
options.connect,$Target,$Handles),function(behaviour){var i,drag;if(!behaviour.fixed)for(i=0;i<$Handles.length;i++)attach(actions.start,$Handles[i].children(),start,{handles:[$Handles[i]]});behaviour.tap&&attach(actions.start,$Base,tap,{handles:$Handles}),behaviour.extend&&($Target.addClass(Classes[16]),behaviour.tap&&attach(actions.start,$Target,edge,{handles:$Handles})),behaviour.drag&&(drag=$Base.find("."+Classes[7]).addClass(Classes[10]),behaviour.fixed&&(drag=drag.add($Base.children().not(drag).children())),attach(actions.start,drag,start,{handles:$Handles}))}(options.events),target.vSet=function(values,callback,link,update,animate){var i,to;for(
options.dir&&1<options.handles&&values.reverse(),animate&&addClassFor($Target,Classes[14],300),i=0;i<(1<$Handles.length?3:1);i++)!1!==(to=(to=link||$Serialization[i%2][0]).valueOf(values[i%2]))&&(to=toStepping(options,to),options.dir&&(to=100-to),!0!==setHandle($Handles[i%2],to,!0)&&$($Serialization[i%2]).each(function(){this.write(options,$Locations[i%2],$Handles[i%2].children(),$Target,update)}));return!0===callback&&fireEvents(["set"]),this},target.vGet=function(){for(var retour=[],i=0;i<options.handles;i++)retour[i]=$Serialization[i][0].saved;return 1===retour.length?retour[0]:options.dir&&1<options.handles?retour.reverse():retour},
target.destroy=function(){return $.each($Serialization,function(){$.each(this,function(){this.target&&this.target.off(namespace)})}),$(this).off(namespace).removeClass(Classes.join(" ")).empty(),originalOptions},$Target.val(options.start)}function initialize(originalOptions){if(this.length){var options=function(options,sliders){var parsed={xPct:[],xVal:[],xSteps:[!1],margin:0},tests={step:{r:!1,t:testStep},range:{r:!0,t:testRange},start:{r:!0,t:testStart},snap:{r:!1,t:testSnap},connect:{r:!0,t:testConnect},orientation:{r:!1,t:testOrientation},margin:{r:!1,t:testMargin},direction:{r:!0,t:testDirection},behaviour:{r:!0,t:testBehaviour},serialization:{r:!0,
t:testSerialization}};return(options=$.extend({connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},options)).serialization=$.extend({lower:[],upper:[],format:{}},options.serialization),$.each(tests,function(name,test){if(void 0===options[name]){if(!test.r)return!0;throwError("'"+name+"' is required.")}test.t(parsed,options[name],sliders)}),parsed.style=parsed.ort?"top":"left",parsed}(originalOptions,this);return this.each(function(){closure(this,options,originalOptions)})}}Format.prototype.v=function(a){return this.settings[a]},Format.prototype.to=function(number){function reverse(a){return a.split("").reverse().join("")}var negative="",
preNegative="",base="",mark="";return(number=this.v("encoder")(number))<0&&(negative=this.v("negative"),preNegative=this.v("negativeBefore")),number=(number=Math.abs(number).toFixed(this.v("decimals")).toString()).split("."),0===parseFloat(number)&&(number[0]="0"),base=this.v("thousand")?(base=reverse(number[0]).match(/.{1,3}/g),reverse(base.join(reverse(this.v("thousand"))))):number[0],this.v("mark")&&1<number.length&&(mark=this.v("mark")+number[1]),preNegative+this.v("prefix")+negative+base+mark+this.v("postfix")},Format.prototype.from=function(input){function esc(s){return s.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g,"\\$&")}var isNeg;return null!=input&&(
isNeg=(input=input.toString()).replace(new RegExp("^"+esc(this.v("negativeBefore"))),""),isNeg=input!==isNeg?(input=isNeg,"-"):"",input=input.replace(new RegExp("^"+esc(this.v("prefix"))),""),this.v.negative&&(isNeg="",input=input.replace(new RegExp("^"+esc(this.v("negative"))),"-")),input=input.replace(new RegExp(esc(this.v("postfix"))+"$"),"").replace(new RegExp(esc(this.v("thousand")),"g"),"").replace(this.v("mark"),"."),input=this.v("decoder")(parseFloat(isNeg+input)),!isNaN(input)&&input)},Link.prototype.write=function(options,value,handle,slider,update){this.update&&!1===update||(value=fromStepping(options,value),value=this.format(value),
this.saved=value,"function"==typeof this.method?this.method.call(this.target[0]||slider[0],value,handle,slider):this.target[this.method](value,handle,slider))},Link.prototype.format=function(a){return this.formatting.to(a)},Link.prototype.valueOf=function(a){return this.formatting.from(a)},$.noUiSlider={Link:Link},$.fn.noUiSlider=function(options,re){return(re?function(options){return this.each(function(){var values=$(this).val(),originalOptions=this.destroy(),newOptions=$.extend({},originalOptions,options);$(this).noUiSlider(newOptions),originalOptions.start===newOptions.start&&$(this).val(values)})}:initialize).call(this,options)},$.fn.val=function(){
var set,link,update,animate,args=Array.prototype.slice.call(arguments,0);return args.length?("object"==typeof args[1]?(set=args[1].set,link=args[1].link,update=args[1].update,animate=args[1].animate):!0===args[1]&&(set=!0),this.each(function(){var a;$(this).hasClass(Classes[0])?this.vSet((a=args[0],$.isArray(a)?a:[a]),set,link,update,animate):$val.apply($(this),args)})):this.hasClass(Classes[0])?this[0].vGet():$val.apply(this)}}),function(){var root,previous_async,async={};function only_once(fn){var called=!1;return function(){if(called)throw new Error("Callback was already called.");called=!0,fn.apply(root,arguments)}}null!=(root=this)&&(
previous_async=root.async),async.noConflict=function(){return root.async=previous_async,async};function _each(arr,iterator){if(arr.forEach)return arr.forEach(iterator);for(var i=0;i<arr.length;i+=1)iterator(arr[i],i,arr)}function _map(arr,iterator){if(arr.map)return arr.map(iterator);var results=[];return _each(arr,function(x,i,a){results.push(iterator(x,i,a))}),results}function _keys(obj){if(Object.keys)return Object.keys(obj);var k,keys=[];for(k in obj)obj.hasOwnProperty(k)&&keys.push(k);return keys}"undefined"!=typeof process&&process.nextTick?(async.nextTick=process.nextTick,"undefined"!=typeof setImmediate?async.setImmediate=function(fn){setImmediate(fn
)}:async.setImmediate=async.nextTick):("function"==typeof setImmediate?async.nextTick=function(fn){setImmediate(fn)}:async.nextTick=function(fn){setTimeout(fn,0)},async.setImmediate=async.nextTick),async.each=function(arr,iterator,callback){if(callback=callback||function(){},!arr.length)return callback();var completed=0;_each(arr,function(x){iterator(x,only_once(function(err){err?(callback(err),callback=function(){}):(completed+=1)>=arr.length&&callback(null)}))})},async.forEach=async.each,async.eachSeries=function(arr,iterator,callback){if(callback=callback||function(){},!arr.length)return callback();var completed=0,iterate=function(){iterator(
arr[completed],function(err){err?(callback(err),callback=function(){}):(completed+=1)>=arr.length?callback(null):iterate()})};iterate()},async.forEachSeries=async.eachSeries,async.eachLimit=function(arr,limit,iterator,callback){_eachLimit(limit).apply(null,[arr,iterator,callback])},async.forEachLimit=async.eachLimit;function doParallel(fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[async.each].concat(args))}}function doSeries(fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[async.eachSeries].concat(args))}}function _asyncMap(eachfn,arr,iterator,callback){var results=[]
;eachfn(arr=_map(arr,function(x,i){return{index:i,value:x}}),function(x,callback){iterator(x.value,function(err,v){results[x.index]=v,callback(err)})},function(err){callback(err,results)})}var _eachLimit=function(limit){return function(arr,iterator,callback){if(callback=callback||function(){},!arr.length||limit<=0)return callback();var completed=0,started=0,running=0;!function replenish(){if(completed>=arr.length)return callback();for(;running<limit&&started<arr.length;)running+=1,iterator(arr[(started+=1)-1],function(err){err?(callback(err),callback=function(){}):(--running,((completed+=1)>=arr.length?callback:replenish)())})}()}};async.map=doParallel(
_asyncMap),async.mapSeries=doSeries(_asyncMap),async.mapLimit=function(arr,limit,iterator,callback){return _mapLimit(limit)(arr,iterator,callback)};var _mapLimit=function(limit){return function(limit,fn){return function(){var args=Array.prototype.slice.call(arguments);return fn.apply(null,[_eachLimit(limit)].concat(args))}}(limit,_asyncMap)};async.reduce=function(arr,memo,iterator,callback){async.eachSeries(arr,function(x,callback){iterator(memo,x,function(err,v){memo=v,callback(err)})},function(err){callback(err,memo)})},async.inject=async.reduce,async.foldl=async.reduce,async.reduceRight=function(reversed,memo,iterator,callback){reversed=_map(reversed,
function(x){return x}).reverse();async.reduce(reversed,memo,iterator,callback)},async.foldr=async.reduceRight;var _applyEach=function(eachfn,arr,iterator,callback){var results=[];eachfn(arr=_map(arr,function(x,i){return{index:i,value:x}}),function(x,callback){iterator(x.value,function(v){v&&results.push(x),callback()})},function(err){callback(_map(results.sort(function(a,b){return a.index-b.index}),function(x){return x.value}))})};async.filter=doParallel(_applyEach),async.filterSeries=doSeries(_applyEach),async.select=async.filter,async.selectSeries=async.filterSeries;_applyEach=function(eachfn,arr,iterator,callback){var results=[];eachfn(arr=_map(arr,
function(x,i){return{index:i,value:x}}),function(x,callback){iterator(x.value,function(v){v||results.push(x),callback()})},function(err){callback(_map(results.sort(function(a,b){return a.index-b.index}),function(x){return x.value}))})};async.reject=doParallel(_applyEach),async.rejectSeries=doSeries(_applyEach);_applyEach=function(eachfn,arr,iterator,main_callback){eachfn(arr,function(x,callback){iterator(x,function(result){result?(main_callback(x),main_callback=function(){}):callback()})},function(err){main_callback()})};async.detect=doParallel(_applyEach),async.detectSeries=doSeries(_applyEach),async.some=function(arr,iterator,main_callback){async.each(arr,
function(x,callback){iterator(x,function(v){v&&(main_callback(!0),main_callback=function(){}),callback()})},function(err){main_callback(!1)})},async.any=async.some,async.every=function(arr,iterator,main_callback){async.each(arr,function(x,callback){iterator(x,function(v){v||(main_callback(!1),main_callback=function(){}),callback()})},function(err){main_callback(!0)})},async.all=async.every,async.sortBy=function(arr,iterator,callback){async.map(arr,function(x,callback){iterator(x,function(err,criteria){err?callback(err):callback(null,{value:x,criteria:criteria})})},function(err,results){if(err)return callback(err);callback(null,_map(results.sort(function(a,b
){a=a.criteria,b=b.criteria;return a<b?-1:b<a?1:0}),function(x){return x.value}))})},async.auto=function(tasks,callback){callback=callback||function(){};var keys=_keys(tasks);if(!keys.length)return callback(null);function addListener(fn){listeners.unshift(fn)}function taskComplete(){_each(listeners.slice(0),function(fn){fn()})}var results={},listeners=[];addListener(function(){_keys(results).length===keys.length&&(callback(null,results),callback=function(){})}),_each(keys,function(k){function taskCallback(err){var safeResults,args=Array.prototype.slice.call(arguments,1);args.length<=1&&(args=args[0]),err?(safeResults={},_each(_keys(results),function(rkey){
safeResults[rkey]=results[rkey]}),safeResults[k]=args,callback(err,safeResults),callback=function(){}):(results[k]=args,async.setImmediate(taskComplete))}function ready(){return iterator=function(a,x){return a&&results.hasOwnProperty(x)},memo=!0,((arr=requires).reduce?arr.reduce(iterator,memo):(_each(arr,function(x,i,a){memo=iterator(memo,x,i,a)}),memo))&&!results.hasOwnProperty(k);var arr,iterator,memo}var listener,task=tasks[k]instanceof Function?[tasks[k]]:tasks[k],requires=task.slice(0,Math.abs(task.length-1))||[];ready()?task[task.length-1](taskCallback,results):addListener(listener=function(){ready()&&(function(fn){for(var i=0;i<listeners.length;i+=1
)if(listeners[i]===fn)return listeners.splice(i,1)}(listener),task[task.length-1](taskCallback,results))})})},async.waterfall=function(tasks,callback){if(callback=callback||function(){},tasks.constructor!==Array){var err=new Error("First argument to waterfall must be an array of functions");return callback(err)}if(!tasks.length)return callback();var wrapIterator=function(iterator){return function(err){var args,next;err?(callback.apply(null,arguments),callback=function(){}):(args=Array.prototype.slice.call(arguments,1),(next=iterator.next())?args.push(wrapIterator(next)):args.push(callback),async.setImmediate(function(){iterator.apply(null,args)}))}}
;wrapIterator(async.iterator(tasks))()};function _parallel(eachfn,tasks,callback){var results;callback=callback||function(){},tasks.constructor===Array?eachfn.map(tasks,function(fn,callback){fn&&fn(function(err){var args=Array.prototype.slice.call(arguments,1);args.length<=1&&(args=args[0]),callback.call(null,err,args)})},callback):(results={},eachfn.each(_keys(tasks),function(k,callback){tasks[k](function(err){var args=Array.prototype.slice.call(arguments,1);args.length<=1&&(args=args[0]),results[k]=args,callback(err)})},function(err){callback(err,results)}))}async.parallel=function(tasks,callback){_parallel({map:async.map,each:async.each},tasks,callback)},
async.parallelLimit=function(tasks,limit,callback){_parallel({map:_mapLimit(limit),each:_eachLimit(limit)},tasks,callback)},async.series=function(tasks,callback){var results;callback=callback||function(){},tasks.constructor===Array?async.mapSeries(tasks,function(fn,callback){fn&&fn(function(err){var args=Array.prototype.slice.call(arguments,1);args.length<=1&&(args=args[0]),callback.call(null,err,args)})},callback):(results={},async.eachSeries(_keys(tasks),function(k,callback){tasks[k](function(err){var args=Array.prototype.slice.call(arguments,1);args.length<=1&&(args=args[0]),results[k]=args,callback(err)})},function(err){callback(err,results)}))},
async.iterator=function(tasks){var makeCallback=function(index){var fn=function(){return tasks.length&&tasks[index].apply(null,arguments),fn.next()};return fn.next=function(){return index<tasks.length-1?makeCallback(index+1):null},fn};return makeCallback(0)},async.apply=function(fn){var args=Array.prototype.slice.call(arguments,1);return function(){return fn.apply(null,args.concat(Array.prototype.slice.call(arguments)))}};_applyEach=function(eachfn,arr,fn,callback){var r=[];eachfn(arr,function(x,cb){fn(x,function(err,y){r=r.concat(y||[]),cb(err)})},function(err){callback(err,r)})};async.concat=doParallel(_applyEach),async.concatSeries=doSeries(_applyEach),
async.whilst=function(test,iterator,callback){test()?iterator(function(err){return err?callback(err):void async.whilst(test,iterator,callback)}):callback()},async.doWhilst=function(iterator,test,callback){iterator(function(err){return err?callback(err):void(test()?async.doWhilst(iterator,test,callback):callback())})},async.until=function(test,iterator,callback){test()?callback():iterator(function(err){return err?callback(err):void async.until(test,iterator,callback)})},async.doUntil=function(iterator,test,callback){iterator(function(err){return err?callback(err):void(test()?callback():async.doUntil(iterator,test,callback))})},async.queue=function(worker,
concurrency){function _insert(q,data,pos,callback){data.constructor!==Array&&(data=[data]),_each(data,function(item){item={data:item,callback:"function"==typeof callback?callback:null};pos?q.tasks.unshift(item):q.tasks.push(item),q.saturated&&q.tasks.length===concurrency&&q.saturated(),async.setImmediate(q.process)})}void 0===concurrency&&(concurrency=1);var workers=0,q={tasks:[],concurrency:concurrency,saturated:null,empty:null,drain:null,push:function(data,callback){_insert(q,data,!1,callback)},unshift:function(data,callback){_insert(q,data,!0,callback)},process:function(){var task,cb;workers<q.concurrency&&q.tasks.length&&(task=q.tasks.shift(),
q.empty&&0===q.tasks.length&&q.empty(),workers+=1,cb=only_once(function(){--workers,task.callback&&task.callback.apply(task,arguments),q.drain&&q.tasks.length+workers===0&&q.drain(),q.process()}),worker(task.data,cb))},length:function(){return q.tasks.length},running:function(){return workers}};return q},async.cargo=function(worker,payload){var working=!1,tasks=[],cargo={tasks:tasks,payload:payload,saturated:null,empty:null,drain:null,push:function(data,callback){data.constructor!==Array&&(data=[data]),_each(data,function(task){tasks.push({data:task,callback:"function"==typeof callback?callback:null}),cargo.saturated&&tasks.length===payload&&cargo.saturated(
)}),async.setImmediate(cargo.process)},process:function process(){var ts,ds;working||(0!==tasks.length?(ts="number"==typeof payload?tasks.splice(0,payload):tasks.splice(0),ds=_map(ts,function(task){return task.data}),cargo.empty&&cargo.empty(),working=!0,worker(ds,function(){working=!1;var args=arguments;_each(ts,function(data){data.callback&&data.callback.apply(null,args)}),process()})):cargo.drain&&cargo.drain())},length:function(){return tasks.length},running:function(){return working}};return cargo};_applyEach=function(name){return function(fn){var args=Array.prototype.slice.call(arguments,1);fn.apply(null,args.concat([function(err){
var args=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(err?console.error&&console.error(err):console[name]&&_each(args,function(x){console[name](x)}))}]))}};async.log=_applyEach("log"),async.dir=_applyEach("dir"),async.memoize=function(fn,hasher){var memo={},queues={};hasher=hasher||function(x){return x};function memoized(){var args=Array.prototype.slice.call(arguments),callback=args.pop(),key=hasher.apply(null,args);key in memo?callback.apply(null,memo[key]):key in queues?queues[key].push(callback):(queues[key]=[callback],fn.apply(null,args.concat([function(){memo[key]=arguments;var q=queues[key];delete queues[key];for(var i=0,
l=q.length;i<l;i++)q[i].apply(null,arguments)}])))}return memoized.memo=memo,memoized.unmemoized=fn,memoized},async.unmemoize=function(fn){return function(){return(fn.unmemoized||fn).apply(null,arguments)}},async.times=function(count,iterator,callback){for(var counter=[],i=0;i<count;i++)counter.push(i);return async.map(counter,iterator,callback)},async.timesSeries=function(count,iterator,callback){for(var counter=[],i=0;i<count;i++)counter.push(i);return async.mapSeries(counter,iterator,callback)},async.compose=function(){var fns=Array.prototype.reverse.call(arguments);return function(){var that=this,args=Array.prototype.slice.call(arguments),
callback=args.pop();async.reduce(fns,args,function(newargs,fn,cb){fn.apply(that,newargs.concat([function(){var err=arguments[0],nextargs=Array.prototype.slice.call(arguments,1);cb(err,nextargs)}]))},function(err,results){callback.apply(that,[err].concat(results))})}};_applyEach=function(eachfn,fns){function go(){var that=this,args=Array.prototype.slice.call(arguments),callback=args.pop();return eachfn(fns,function(fn,cb){fn.apply(that,args.concat([cb]))},callback)}if(2<arguments.length){var args=Array.prototype.slice.call(arguments,2);return go.apply(this,args)}return go};async.applyEach=doParallel(_applyEach),async.applyEachSeries=doSeries(_applyEach),
async.forever=function(fn,callback){!function next(err){if(err){if(callback)return callback(err);throw err}fn(next)}()},void 0!==define&&define.amd?define("async",[],function(){return async}):"undefined"!=typeof module&&module.exports?module.exports=async:root.async=async}(),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("moment",factory):global.moment=factory()}(this,function(){"use strict";var hookCallback;function utils_hooks__hooks(){return hookCallback.apply(null,arguments)}function isArray(input){return"[object Array]"===Object.prototype.toString.call(
input)}function isDate(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(arr,fn){for(var res=[],i=0;i<arr.length;++i)res.push(fn(arr[i],i));return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b)hasOwnProp(b,i)&&(a[i]=b[i]);return hasOwnProp(b,"toString")&&(a.toString=b.toString),hasOwnProp(b,"valueOf")&&(a.valueOf=b.valueOf),a}function create_utc__createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!0).utc()}function getParsingFlags(m){return null==m._pf&&(m._pf={empty:!1,unusedTokens:[],unusedInput:[
],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),m._pf}function valid__isValid(m){var flags;return null==m._isValid&&(flags=getParsingFlags(m),m._isValid=!(isNaN(m._d.getTime())||!(flags.overflow<0)||flags.empty||flags.invalidMonth||flags.invalidWeekday||flags.nullInput||flags.invalidFormat||flags.userInvalidated),m._strict&&(m._isValid=m._isValid&&0===flags.charsLeftOver&&0===flags.unusedTokens.length&&void 0===flags.bigHour)),m._isValid}function valid__createInvalid(flags){var m=create_utc__createUTC(NaN);return null!=flags?extend(getParsingFlags(m),flags):getParsingFlags(m).userInvalidated=!0,m}
var momentProperties=utils_hooks__hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(void 0!==from._isAMomentObject&&(to._isAMomentObject=from._isAMomentObject),void 0!==from._i&&(to._i=from._i),void 0!==from._f&&(to._f=from._f),void 0!==from._l&&(to._l=from._l),void 0!==from._strict&&(to._strict=from._strict),void 0!==from._tzm&&(to._tzm=from._tzm),void 0!==from._isUTC&&(to._isUTC=from._isUTC),void 0!==from._offset&&(to._offset=from._offset),void 0!==from._pf&&(to._pf=getParsingFlags(from)),void 0!==from._locale&&(to._locale=from._locale),0<momentProperties.length)for(i in momentProperties)void 0!==(val=from[prop=momentProperties[i]]
)&&(to[prop]=val);return to}var updateInProgress=!1;function Moment(config){copyConfig(this,config),this._d=new Date(null!=config._d?config._d.getTime():NaN),!1===updateInProgress&&(updateInProgress=!0,utils_hooks__hooks.updateOffset(this),updateInProgress=!1)}function isMoment(obj){return obj instanceof Moment||null!=obj&&null!=obj._isAMomentObject}function absFloor(number){return number<0?Math.ceil(number):Math.floor(number)}function toInt(value){var coercedNumber=+value,value=0;return 0!=coercedNumber&&isFinite(coercedNumber)&&(value=absFloor(coercedNumber)),value}function compareArrays(array1,array2,dontConvert){for(var len=Math.min(array1.length,
array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i=0;i<len;i++)(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i]))&&diffs++;return diffs+lengthDiff}function Locale(){}var globalLocale,locales={};function normalizeLocale(key){return key&&key.toLowerCase().replace("_","-")}function loadLocale(name){var oldLocale;if(!locales[name]&&"undefined"!=typeof module&&module&&module.exports)try{oldLocale=globalLocale._abbr,require("./locale/"+name),locale_locales__getSetGlobalLocale(oldLocale)}catch(e){}return locales[name]}function locale_locales__getSetGlobalLocale(key,values){var data;return key&&(
data=void 0===values?locale_locales__getLocale(key):defineLocale(key,values))&&(globalLocale=data),globalLocale._abbr}function defineLocale(name,values){return null!==values?(values.abbr=name,locales[name]=locales[name]||new Locale,locales[name].set(values),locale_locales__getSetGlobalLocale(name),locales[name]):(delete locales[name],null)}function locale_locales__getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr&&(key=key._locale._abbr),!key)return globalLocale;if(!isArray(key)){if(locale=loadLocale(key))return locale;key=[key]}return function(names){for(var j,next,locale,split,i=0;i<names.length;){for(j=(split=normalizeLocale(names[i]
).split("-")).length,next=(next=normalizeLocale(names[i+1]))?next.split("-"):null;0<j;){if(locale=loadLocale(split.slice(0,j).join("-")))return locale;if(next&&next.length>=j&&compareArrays(split,next,!0)>=j-1)break;j--}i++}return null}(key)}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return"string"==typeof units?aliases[units]||aliases[units.toLowerCase()]:void 0}function normalizeObjectUnits(inputObject){var normalizedProp,prop,normalizedInput={};for(prop in inputObject)hasOwnProp(inputObject,prop)&&(
normalizedProp=normalizeUnits(prop))&&(normalizedInput[normalizedProp]=inputObject[prop]);return normalizedInput}function isFunction(input){return input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function makeGetSet(unit,keepTime){return function(value){return null!=value?(get_set__set(this,unit,value),utils_hooks__hooks.updateOffset(this,keepTime),this):get_set__get(this,unit)}}function get_set__get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function get_set__set(mom,unit,value){mom.isValid()&&mom._d["set"+(mom._isUTC?"UTC":"")+unit](value)}function getSet(units,value){if(
"object"==typeof units)for(var unit in units)this.set(unit,units[unit]);else if(isFunction(this[units=normalizeUnits(units)]))return this[units](value);return this}function zeroFill(number,zerosToFill,forceSign){var absNumber=""+Math.abs(number),zerosToFill=zerosToFill-absNumber.length;return(0<=number?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
formatFunctions={},formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func="string"==typeof callback?function(){return this[callback]()}:callback;token&&(formatTokenFunctions[token]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal&&(formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)})}function formatMoment(m,format){return m.isValid()?(format=expandFormat(format,m.localeData()),formatFunctions[format]=formatFunctions[format]||function(format){for(var input,array=format.match(
formattingTokens),i=0,length=array.length;i<length;i++)formatTokenFunctions[array[i]]?array[i]=formatTokenFunctions[array[i]]:array[i]=(input=array[i]).match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"");return function(mom){var output="";for(i=0;i<length;i++)output+=array[i]instanceof Function?array[i].call(mom,format):array[i];return output}}(format),formatFunctions[format](m)):m.localeData().invalidDate()}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}for(localFormattingTokens.lastIndex=0;0<=i&&localFormattingTokens.test(format);)format=format.replace(
localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,--i;return format}var match1=/\d/,match2=/\d\d/,asYears=/\d{3}/,days=/\d{4}/,duration_get__months=/[+-]?\d{6}/,match1to2=/\d\d?/,asMinutes=/\d\d\d\d?/,asHours=/\d\d\d\d\d\d?/,asDays=/\d{1,3}/,asWeeks=/\d{1,4}/,years=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,moment_with_locales=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,asSeconds=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex
)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){return hasOwnProp(regexes,token)?regexes[token](config._strict,config._locale):new RegExp(regexEscape(token.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4})))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(token,callback){var i,func=callback;for("string"==typeof token&&(token=[token]),"number"==typeof callback&&(func=function(input,array){array[callback]=toInt(input)}),i=0;i<token.length;i++
)tokens[token[i]]=func}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{},callback(input,config._w,config,token)})}function addTimeToArrayFromToken(token,input,config){null!=input&&hasOwnProp(tokens,token)&&tokens[token](input,config._a,config,token)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function daysInMonth(year,month){return new Date(Date.UTC(year,month+1,0)).getUTCDate()}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(format){return this.localeData().monthsShort(this,format)}),
addFormatToken("MMMM",0,0,function(format){return this.localeData().months(this,format)}),addUnitAlias("month","M"),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(isStrict,locale){return locale.monthsShortRegex(isStrict)}),addRegexToken("MMMM",function(isStrict,locale){return locale.monthsRegex(isStrict)}),addParseToken(["M","MM"],function(input,array){array[MONTH]=toInt(input)-1}),addParseToken(["MMM","MMMM"],function(input,array,config,month){month=config._locale.monthsParse(input,month,config._strict);null!=month?array[MONTH]=month:getParsingFlags(config).invalidMonth=input})
;var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,milliseconds="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var seconds="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function setMonth(mom,value){var dayOfMonth;return mom.isValid()&&("string"==typeof value&&"number"!=typeof(value=mom.localeData().monthsParse(value))||(dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value)),mom._d["set"+(mom._isUTC?"UTC":"")+"Month"](value,dayOfMonth))),mom}function getSetMonth(value){return null!=value?(setMonth(this,value),utils_hooks__hooks.updateOffset(this,!0),this):get_set__get(this,"Month")}
var hours=asSeconds;var minutes=asSeconds;function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}for(var mom,shortPieces=[],longPieces=[],mixedPieces=[],i=0;i<12;i++)mom=create_utc__createUTC([2e3,i]),shortPieces.push(this.monthsShort(mom,"")),longPieces.push(this.months(mom,"")),mixedPieces.push(this.months(mom,"")),mixedPieces.push(this.monthsShort(mom,""));for(shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<12;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]),mixedPieces[i]=regexEscape(mixedPieces[i]);this._monthsRegex=new RegExp("^("+mixedPieces.join(
"|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")$","i")}function checkOverflow(m){var overflow=m._a;return overflow&&-2===getParsingFlags(m).overflow&&(overflow=overflow[MONTH]<0||11<overflow[MONTH]?MONTH:overflow[DATE]<1||overflow[DATE]>daysInMonth(overflow[YEAR],overflow[MONTH])?DATE:overflow[HOUR]<0||24<overflow[HOUR]||24===overflow[HOUR]&&(0!==overflow[MINUTE]||0!==overflow[SECOND]||0!==overflow[MILLISECOND]
)?HOUR:overflow[MINUTE]<0||59<overflow[MINUTE]?MINUTE:overflow[SECOND]<0||59<overflow[SECOND]?SECOND:overflow[MILLISECOND]<0||999<overflow[MILLISECOND]?MILLISECOND:-1,getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||DATE<overflow)&&(overflow=DATE),getParsingFlags(m)._overflowWeeks&&-1===overflow&&(overflow=WEEK),getParsingFlags(m)._overflowWeekday&&-1===overflow&&(overflow=WEEKDAY),getParsingFlags(m).overflow=overflow),m}function warn(msg){!1===utils_hooks__hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+msg)}function deprecate(msg,fn){var firstTime=!0;return extend(function(){
return firstTime&&(warn(msg+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),firstTime=!1),fn.apply(this,arguments)},fn)}var deprecations={};var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",
/\d{4}-W\d\d/,utils_hooks__hooks.suppressDeprecationWarnings=!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}/]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(config){var i,l,allowTime,dateFormat,timeFormat,tzFormat,string=config._i,
match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string);if(match){for(getParsingFlags(config).iso=!0,i=0,l=isoDates.length;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0],allowTime=!1!==isoDates[i][2];break}if(null!=dateFormat){if(match[3]){for(i=0,l=isoTimes.length;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}if(null==timeFormat)return void(config._isValid=!1)}if(allowTime||null==timeFormat){if(match[4]){if(!tzRegex.exec(match[4]))return void(config._isValid=!1);tzFormat="Z"}config._f=dateFormat+(timeFormat||"")+(tzFormat||""),configFromStringAndFormat(config)}else config._isValid=!1
}else config._isValid=!1}else config._isValid=!1}function createUTCDate(y){var date=new Date(Date.UTC.apply(null,arguments));return y<100&&0<=y&&isFinite(date.getUTCFullYear())&&date.setUTCFullYear(y),date}function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4==0&&year%100!=0||year%400==0}utils_hooks__hooks.createFromInputFallback=deprecate("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(config){config._d=new Date(config._i+(config._useUTC?" UTC":""))}),addFormatToken(
"Y",0,0,function(){var y=this.year();return y<=9999?""+y:"+"+y}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addRegexToken("Y",moment_with_locales),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",asWeeks,days),addRegexToken("YYYYY",years,duration_get__months),addRegexToken("YYYYYY",years,duration_get__months),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(input,array){array[YEAR]=2===input.length?utils_hooks__hooks.parseTwoDigitYear(input):toInt(input)}),
addParseToken("YY",function(input,array){array[YEAR]=utils_hooks__hooks.parseTwoDigitYear(input)}),addParseToken("Y",function(input,array){array[YEAR]=parseInt(input,10)});var asMonths=makeGetSet("FullYear",!(utils_hooks__hooks.parseTwoDigitYear=function(input){return toInt(input)+(68<toInt(input)?1900:2e3)}));function firstWeekOffset(year,dow,fwd){fwd=7+dow-fwd;return fwd-(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7-1}function dayOfYearFromWeeks(year,week,weekday,dow,resDayOfYear){var resYear,resDayOfYear=1+7*(week-1)+(7+weekday-dow)%7+firstWeekOffset(year,dow,resDayOfYear),resDayOfYear=resDayOfYear<=0?daysInYear(resYear=year-1
)+resDayOfYear:resDayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear-daysInYear(year)):(resYear=year,resDayOfYear);return{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var resWeek,resYear,week=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-week-1)/7)+1;return week<1?resWeek=week+weeksInYear(resYear=mom.year()-1,dow,doy):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,weekOffsetNext){var weekOffset=firstWeekOffset(year,dow,weekOffsetNext),
weekOffsetNext=firstWeekOffset(year+1,dow,weekOffsetNext);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}function defaults(a,b,c){return null!=a?a:null!=b?b:c}function configFromArray(config){var i,currentDate,date,input=[];if(!config._d){for(currentDate=function(config){var nowValue=new Date(utils_hooks__hooks.now());return config._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}(config),config._w&&null==config._a[DATE]&&null==config._a[MONTH]&&function(config){var w,weekYear,week,weekday,dow,temp,weekdayOverflow;null!=(w=config._w
).GG||null!=w.W||null!=w.E?(dow=1,temp=4,weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(local__createLocal(),1,4).year),week=defaults(w.W,1),((weekday=defaults(w.E,1))<1||7<weekday)&&(weekdayOverflow=!0)):(dow=config._locale._week.dow,temp=config._locale._week.doy,weekYear=defaults(w.gg,config._a[YEAR],weekOfYear(local__createLocal(),dow,temp).year),week=defaults(w.w,1),null!=w.d?((weekday=w.d)<0||6<weekday)&&(weekdayOverflow=!0):null!=w.e?(weekday=w.e+dow,(w.e<0||6<w.e)&&(weekdayOverflow=!0)):weekday=dow);week<1||week>weeksInYear(weekYear,dow,temp)?getParsingFlags(config)._overflowWeeks=!0:null!=weekdayOverflow?getParsingFlags(config
)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,temp),config._a[YEAR]=temp.year,config._dayOfYear=temp.dayOfYear)}(config),config._dayOfYear&&(date=defaults(config._a[YEAR],currentDate[YEAR]),config._dayOfYear>daysInYear(date)&&(getParsingFlags(config)._overflowDayOfYear=!0),date=createUTCDate(date,0,config._dayOfYear),config._a[MONTH]=date.getUTCMonth(),config._a[DATE]=date.getUTCDate()),i=0;i<3&&null==config._a[i];++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=null==config._a[i]?2===i?1:0:config._a[i];24===config._a[HOUR]&&0===config._a[MINUTE]&&0===config._a[SECOND]&&0===config._a[MILLISECOND]&&(
config._nextDay=!0,config._a[HOUR]=0),config._d=(config._useUTC?createUTCDate:function(y,m,d,h,M,s,date){return date=new Date(y,m,d,h,M,s,date),y<100&&0<=y&&isFinite(date.getFullYear())&&date.setFullYear(y),date}).apply(null,input),null!=config._tzm&&config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),config._nextDay&&(config._a[HOUR]=24)}}function configFromStringAndFormat(config){if(config._f!==utils_hooks__hooks.ISO_8601){config._a=[],getParsingFlags(config).empty=!0;for(var parsedInput,token,skipped,string=""+config._i,stringLength=string.length,totalParsedInputLength=0,tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[],
i=0;i<tokens.length;i++)token=tokens[i],(parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0])&&(0<(skipped=string.substr(0,string.indexOf(parsedInput))).length&&getParsingFlags(config).unusedInput.push(skipped),string=string.slice(string.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token]?(parsedInput?getParsingFlags(config).empty=!1:getParsingFlags(config).unusedTokens.push(token),addTimeToArrayFromToken(token,parsedInput,config)):config._strict&&!parsedInput&&getParsingFlags(config).unusedTokens.push(token);getParsingFlags(config
).charsLeftOver=stringLength-totalParsedInputLength,0<string.length&&getParsingFlags(config).unusedInput.push(string),!0===getParsingFlags(config).bigHour&&config._a[HOUR]<=12&&0<config._a[HOUR]&&(getParsingFlags(config).bigHour=void 0),config._a[HOUR]=function(locale,hour,isPm){if(null==isPm)return hour;return null!=locale.meridiemHour?locale.meridiemHour(hour,isPm):(null!=locale.isPM&&((isPm=locale.isPM(isPm))&&hour<12&&(hour+=12),isPm||12!==hour||(hour=0)),hour)}(config._locale,config._a[HOUR],config._meridiem),configFromArray(config),checkOverflow(config)}else configFromISO(config)}function prepareConfig(config){var input=config._i,format=config._f
;return config._locale=config._locale||locale_locales__getLocale(config._l),null===input||void 0===format&&""===input?valid__createInvalid({nullInput:!0}):("string"==typeof input&&(config._i=input=config._locale.preparse(input)),isMoment(input)?new Moment(checkOverflow(input)):(isArray(format)?function(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(0===config._f.length)return getParsingFlags(config).invalidFormat=!0,config._d=new Date(NaN);for(i=0;i<config._f.length;i++)currentScore=0,tempConfig=copyConfig({},config),null!=config._useUTC&&(tempConfig._useUTC=config._useUTC),tempConfig._f=config._f[i],configFromStringAndFormat(tempConfig),
valid__isValid(tempConfig)&&(currentScore+=getParsingFlags(tempConfig).charsLeftOver,currentScore+=10*getParsingFlags(tempConfig).unusedTokens.length,getParsingFlags(tempConfig).score=currentScore,(null==scoreToBeat||currentScore<scoreToBeat)&&(scoreToBeat=currentScore,bestMoment=tempConfig));extend(config,bestMoment||tempConfig)}(config):format?configFromStringAndFormat(config):isDate(input)?config._d=input:function(config){var input=config._i;void 0===input?config._d=new Date(utils_hooks__hooks.now()):isDate(input)?config._d=new Date(+input):"string"==typeof input?function(config){var matched=aspNetJsonRegex.exec(config._i);null===matched?(configFromISO(
config),!1===config._isValid&&(delete config._isValid,utils_hooks__hooks.createFromInputFallback(config))):config._d=new Date(+matched[1])}(config):isArray(input)?(config._a=map(input.slice(0),function(obj){return parseInt(obj,10)}),configFromArray(config)):"object"==typeof input?function(config){var i;config._d||(i=normalizeObjectUnits(config._i),config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)}),configFromArray(config))}(config):"number"==typeof input?config._d=new Date(input):utils_hooks__hooks.createFromInputFallback(config)}(config),valid__isValid(config)||(config._d=null),
config))}function createLocalOrUTC(input,format,locale,strict,isUTC){var res={};return"boolean"==typeof locale&&(strict=locale,locale=void 0),res._isAMomentObject=!0,res._useUTC=res._isUTC=isUTC,res._l=locale,res._i=input,res._f=format,res._strict=strict,(res=new Moment(checkOverflow(prepareConfig(res=res))))._nextDay&&(res.add(1,"d"),res._nextDay=void 0),res}function local__createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!1)}utils_hooks__hooks.ISO_8601=function(){};var duration_prototype__proto=deprecate("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){
var other=local__createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other<this?this:other:valid__createInvalid()}),sk__months=deprecate("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var other=local__createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?this<other?this:other:valid__createInvalid()});function pickBy(fn,moments){var res,i;if(1===moments.length&&isArray(moments[0])&&(moments=moments[0]),!moments.length)return local__createLocal();for(res=moments[0],i=1;i<moments.length;++i)moments[i].isValid()&&!moments[i][fn](res)||(res=moments[i])
;return res}function Duration(seconds){var milliseconds=normalizeObjectUnits(seconds),years=milliseconds.year||0,quarters=milliseconds.quarter||0,months=milliseconds.month||0,weeks=milliseconds.week||0,days=milliseconds.day||0,hours=milliseconds.hour||0,minutes=milliseconds.minute||0,seconds=milliseconds.second||0,milliseconds=milliseconds.millisecond||0;this._milliseconds=+milliseconds+1e3*seconds+6e4*minutes+36e5*hours,this._days=+days+7*weeks,this._months=+months+3*quarters+12*years,this._data={},this._locale=locale_locales__getLocale(),this._bubble()}function isDuration(obj){return obj instanceof Duration}function offset(token,separator){addFormatToken(
token,0,0,function(){var offset=this.utcOffset(),sign="+";return offset<0&&(offset=-offset,sign="-"),sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(input,array,config){config._useUTC=!0,config._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(parts,minutes){minutes=(minutes||"").match(parts)||[],parts=((minutes[minutes.length-1]||[])+"").match(chunkOffset)||["-",0,0],minutes=60*parts[1]+toInt(parts[2]);return"+"===parts[0]?minutes:-minutes}
function cloneWithOffset(input,diff){var res;return diff._isUTC?(res=diff.clone(),diff=(isMoment(input)||isDate(input)?+input:+local__createLocal(input))-+res,res._d.setTime(+res._d+diff),utils_hooks__hooks.updateOffset(res,!1),res):local__createLocal(input).local()}function getDateOffset(m){return 15*-Math.round(m._d.getTimezoneOffset()/15)}function isUtc(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}utils_hooks__hooks.updateOffset=function(){};var aspNetRegex=/(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,
isoRegex=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;function create__createDuration(input,key){var diffRes,ret=input,match=null;return isDuration(input)?ret={ms:input._milliseconds,d:input._days,M:input._months}:"number"==typeof input?(ret={},key?ret[key]=input:ret.milliseconds=input):(match=aspNetRegex.exec(input))?(diffRes="-"===match[1]?-1:1,ret={y:0,d:toInt(match[DATE])*diffRes,h:toInt(match[HOUR])*diffRes,m:toInt(match[MINUTE])*diffRes,s:toInt(match[SECOND])*diffRes,ms:toInt(match[MILLISECOND])*diffRes}):(match=isoRegex.exec(input))?(diffRes="-"===match[1]?-1:1,ret={
y:parseIso(match[2],diffRes),M:parseIso(match[3],diffRes),d:parseIso(match[4],diffRes),h:parseIso(match[5],diffRes),m:parseIso(match[6],diffRes),s:parseIso(match[7],diffRes),w:parseIso(match[8],diffRes)}):null==ret?ret={}:"object"==typeof ret&&("from"in ret||"to"in ret)&&(diffRes=function(base,other){var res;if(!base.isValid()||!other.isValid())return{milliseconds:0,months:0};other=cloneWithOffset(other,base),base.isBefore(other)?res=positiveMomentsDifference(base,other):((res=positiveMomentsDifference(other,base)).milliseconds=-res.milliseconds,res.months=-res.months);return res}(local__createLocal(ret.from),local__createLocal(ret.to)),(ret={}
).ms=diffRes.milliseconds,ret.M=diffRes.months),ret=new Duration(ret),isDuration(input)&&hasOwnProp(input,"_locale")&&(ret._locale=input._locale),ret}function parseIso(res,sign){res=res&&parseFloat(res.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};return res.months=other.month()-base.month()+12*(other.year()-base.year()),base.clone().add(res.months,"M").isAfter(other)&&--res.months,res.milliseconds=+other-+base.clone().add(res.months,"M"),res}function createAdder(direction,name){return function(val,period){var tmp;return null===period||isNaN(+period)||(function(name,msg){
deprecations[name]||(warn(msg),deprecations[name]=!0)}(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period)."),tmp=val,val=period,period=tmp),add_subtract__addSubtract(this,create__createDuration(val="string"==typeof val?+val:val,period),direction),this}}function add_subtract__addSubtract(mom,months,isAdding,updateOffset){var milliseconds=months._milliseconds,days=months._days,months=months._months;mom.isValid()&&(updateOffset=null==updateOffset||updateOffset,milliseconds&&mom._d.setTime(+mom._d+milliseconds*isAdding),days&&get_set__set(mom,"Date",get_set__get(mom,"Date")+days*isAdding),months&&setMonth(mom,
get_set__get(mom,"Month")+months*isAdding),updateOffset&&utils_hooks__hooks.updateOffset(mom,days||months))}create__createDuration.fn=Duration.prototype;var add_subtract__add=createAdder(1,"add"),asMilliseconds=createAdder(-1,"subtract");function locale(newLocaleData){return void 0===newLocaleData?this._locale._abbr:(null!=(newLocaleData=locale_locales__getLocale(newLocaleData))&&(this._locale=newLocaleData),this)}utils_hooks__hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(key){
return void 0===key?this.localeData():this.locale(key)});function localeData(){return this._locale}function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return null==input?weekOfYear(this,dow,doy).year:((weeksTarget=weeksInYear(input,dow,doy))<week&&(week=weeksTarget),function(weekYear,week,weekday,dow,date){date=dayOfYearFromWeeks(weekYear,week,weekday,dow,date),date=createUTCDate(date.year,0,date.dayOfYear);return this.year(date.getUTCFullYear()),this.month(date.getUTCMonth()),this.date(date.getUTCDate()),this}.call(this,input,week,weekday,dow,
doy))}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100}),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addRegexToken("G",moment_with_locales),addRegexToken("g",moment_with_locales),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",asWeeks,days),addRegexToken("gggg",asWeeks,days),addRegexToken("GGGGG",years,duration_get__months),
addRegexToken("ggggg",years,duration_get__months),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(input,week,config,token){week[token.substr(0,2)]=toInt(input)}),addWeekParseToken(["gg","GG"],function(input,week,config,token){week[token]=utils_hooks__hooks.parseTwoDigitYear(input)}),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addRegexToken("Q",match1),addParseToken("Q",function(input,array){array[MONTH]=3*(toInt(input)-1)}),addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),
addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(isStrict,locale){return isStrict?locale._ordinalParse:locale._ordinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(input,array){array[DATE]=toInt(input.match(match1to2)[0])});asWeeks=makeGetSet("Date",!0);addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(format){
return this.localeData().weekdaysMin(this,format)}),addFormatToken("ddd",0,0,function(format){return this.localeData().weekdaysShort(this,format)}),addFormatToken("dddd",0,0,function(format){return this.localeData().weekdays(this,format)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",asSeconds),addRegexToken("ddd",asSeconds),addRegexToken("dddd",asSeconds),addWeekParseToken(["dd","ddd","dddd"],function(input,week,config,weekday){
weekday=config._locale.weekdaysParse(input,weekday,config._strict);null!=weekday?week.d=weekday:getParsingFlags(config).invalidWeekday=input}),addWeekParseToken(["d","e","E"],function(input,week,config,token){week[token]=toInt(input)});days="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");years="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");duration_get__months="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function hFormat(){return this.hours()%12||12}function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)})}function matchMeridiem(isStrict,locale){
return locale._meridiemParse}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addRegexToken("DDD",asDays),addRegexToken("DDDD",asYears),addParseToken(["DDD","DDDD"],function(input,array,config){config._dayOfYear=toInt(input)}),addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",
0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("hmm",asMinutes),addRegexToken("hmmss",asHours),addRegexToken("Hmm",asMinutes),addRegexToken("Hmmss",asHours),addParseToken(["H","HH"],HOUR),addParseToken(["a","A"],function(input,array,config){config._isPm=config._locale.isPM(input),config._meridiem=input}),addParseToken(["h","hh"],function(input,
array,config){array[HOUR]=toInt(input),getParsingFlags(config).bigHour=!0}),addParseToken("hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos)),getParsingFlags(config).bigHour=!0}),addParseToken("hmmss",function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2)),getParsingFlags(config).bigHour=!0}),addParseToken("Hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos))
}),addParseToken("Hmmss",function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2))});asSeconds=makeGetSet("Hours",!0);addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);asMinutes=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var token,asHours=makeGetSet("Seconds",!1)
;for(addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return 10*this.millisecond()}),addFormatToken(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),addFormatToken(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),addFormatToken(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),addFormatToken(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),addUnitAlias(
"millisecond","ms"),addRegexToken("S",asDays,match1),addRegexToken("SS",asDays,match2),addRegexToken("SSS",asDays,asYears),token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(input,array){array[MILLISECOND]=toInt(1e3*("0."+input))}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);asDays=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");asYears=Moment.prototype;asYears.add=add_subtract__add,asYears.calendar=function(format,output){var now=format||local__createLocal(),format=cloneWithOffset(now,this).startOf("day"),format=(format=this.diff(format,
"days",!0))<-6?"sameElse":format<-1?"lastWeek":format<0?"lastDay":format<1?"sameDay":format<2?"nextDay":format<7?"nextWeek":"sameElse",output=output&&(isFunction(output[format])?output[format]():output[format]);return this.format(output||this.localeData().calendar(format,this,local__createLocal(now)))},asYears.clone=function(){return new Moment(this)},asYears.diff=function(zoneDelta,units,asFloat){var delta,output;return this.isValid()&&(delta=cloneWithOffset(zoneDelta,this)).isValid()?(zoneDelta=6e4*(delta.utcOffset()-this.utcOffset()),"year"===(units=normalizeUnits(units))||"month"===units||"quarter"===units?(output=function(a,b){var anchor2,
wholeMonthDiff=12*(b.year()-a.year())+(b.month()-a.month()),adjust=a.clone().add(wholeMonthDiff,"months");adjust=b-adjust<0?(anchor2=a.clone().add(wholeMonthDiff-1,"months"),(b-adjust)/(adjust-anchor2)):(anchor2=a.clone().add(1+wholeMonthDiff,"months"),(b-adjust)/(anchor2-adjust));return-(wholeMonthDiff+adjust)}(this,delta),"quarter"===units?output/=3:"year"===units&&(output/=12)):(delta=this-delta,output="second"===units?delta/1e3:"minute"===units?delta/6e4:"hour"===units?delta/36e5:"day"===units?(delta-zoneDelta)/864e5:"week"===units?(delta-zoneDelta)/6048e5:delta),asFloat?output:absFloor(output)):NaN},asYears.endOf=function(units){return void 0===(
units=normalizeUnits(units))||"millisecond"===units?this:this.startOf(units).add(1,"isoWeek"===units?"week":units).subtract(1,"ms")},asYears.format=function(output){return output=formatMoment(this,output||utils_hooks__hooks.defaultFormat),this.localeData().postformat(output)},asYears.from=function(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||local__createLocal(time).isValid())?create__createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},asYears.fromNow=function(withoutSuffix){return this.from(local__createLocal(),withoutSuffix)},asYears.to=function(time,
withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||local__createLocal(time).isValid())?create__createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},asYears.toNow=function(withoutSuffix){return this.to(local__createLocal(),withoutSuffix)},asYears.get=getSet,asYears.invalidAt=function(){return getParsingFlags(this).overflow},asYears.isAfter=function(localInput,units){return localInput=isMoment(localInput)?localInput:local__createLocal(localInput),!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(void 0!==units?units:"millisecond")
)?+localInput<+this:+localInput<+this.clone().startOf(units))},asYears.isBefore=function(localInput,units){return localInput=isMoment(localInput)?localInput:local__createLocal(localInput),!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(void 0!==units?units:"millisecond"))?+this<+localInput:+this.clone().endOf(units)<+localInput)},asYears.isBetween=function(from,to,units){return this.isAfter(from,units)&&this.isBefore(to,units)},asYears.isSame=function(inputMs,units){return inputMs=isMoment(inputMs)?inputMs:local__createLocal(inputMs),!(!this.isValid()||!inputMs.isValid())&&("millisecond"===(units=normalizeUnits(
units||"millisecond"))?+this==+inputMs:(inputMs=+inputMs,+this.clone().startOf(units)<=inputMs&&inputMs<=+this.clone().endOf(units)))},asYears.isSameOrAfter=function(input,units){return this.isSame(input,units)||this.isAfter(input,units)},asYears.isSameOrBefore=function(input,units){return this.isSame(input,units)||this.isBefore(input,units)},asYears.isValid=function(){return valid__isValid(this)},asYears.lang=lang,asYears.locale=locale,asYears.localeData=localeData,asYears.max=sk__months,asYears.min=duration_prototype__proto,asYears.parsingFlags=function(){return extend({},getParsingFlags(this))},asYears.set=getSet,asYears.startOf=function(units){switch(
units=normalizeUnits(units)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===units&&this.weekday(0),"isoWeek"===units&&this.isoWeekday(1),"quarter"===units&&this.month(3*Math.floor(this.month()/3)),this},asYears.subtract=asMilliseconds,asYears.toArray=function(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]},asYears.toObject=function(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),
seconds:m.seconds(),milliseconds:m.milliseconds()}},asYears.toDate=function(){return this._offset?new Date(+this):this._d},asYears.toISOString=function(){var m=this.clone().utc();return 0<m.year()&&m.year()<=9999?isFunction(Date.prototype.toISOString)?this.toDate().toISOString():formatMoment(m,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):formatMoment(m,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},asYears.toJSON=function(){return this.isValid()?this.toISOString():"null"},asYears.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},asYears.unix=function(){return Math.floor(+this/1e3)},asYears.valueOf=function(){return+this._d-6e4*(
this._offset||0)},asYears.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},asYears.year=asMonths,asYears.isLeapYear=function(){return isLeapYear(this.year())},asYears.weekYear=function(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},asYears.isoWeekYear=function(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)},asYears.quarter=asYears.quarters=function(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)},
asYears.month=getSetMonth,asYears.daysInMonth=function(){return daysInMonth(this.year(),this.month())},asYears.week=asYears.weeks=function(input){var week=this.localeData().week(this);return null==input?week:this.add(7*(input-week),"d")},asYears.isoWeek=asYears.isoWeeks=function(input){var week=weekOfYear(this,1,4).week;return null==input?week:this.add(7*(input-week),"d")},asYears.weeksInYear=function(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)},asYears.isoWeeksInYear=function(){return weeksInYear(this.year(),1,4)},asYears.date=asWeeks,asYears.day=asYears.days=function(input){if(!this.isValid()
)return null!=input?this:NaN;var day=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=function(input,locale){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=locale.weekdaysParse(input))?input:null:parseInt(input,10)}(input,this.localeData()),this.add(input-day,"d")):day},asYears.weekday=function(input){if(!this.isValid())return null!=input?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return null==input?weekday:this.add(input-weekday,"d")},asYears.isoWeekday=function(input){return this.isValid()?null==input?this.day()||7:this.day(this.day()%7?input:input-7):null!=input?this:NaN},
asYears.dayOfYear=function(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?dayOfYear:this.add(input-dayOfYear,"d")},asYears.hour=asYears.hours=asSeconds,asYears.minute=asYears.minutes=asMinutes,asYears.second=asYears.seconds=asHours,asYears.millisecond=asYears.milliseconds=asDays,asYears.utcOffset=function(input,keepLocalTime){var localAdjust,offset=this._offset||0;return this.isValid()?null!=input?("string"==typeof input?input=offsetFromString(matchShortOffset,input):Math.abs(input)<16&&(input*=60),!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,
this._isUTC=!0,null!=localAdjust&&this.add(localAdjust,"m"),offset!==input&&(!keepLocalTime||this._changeInProgress?add_subtract__addSubtract(this,create__createDuration(input-offset,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,utils_hooks__hooks.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?offset:getDateOffset(this):null!=input?this:NaN},asYears.utc=function(keepLocalTime){return this.utcOffset(0,keepLocalTime)},asYears.local=function(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this},asYears.parseZone=function(){
return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(offsetFromString(matchOffset,this._i)),this},asYears.hasAlignedHourOffset=function(input){return!!this.isValid()&&(input=input?local__createLocal(input).utcOffset():0,(this.utcOffset()-input)%60==0)},asYears.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},asYears.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var other,c={};return copyConfig(c,this),(c=prepareConfig(c))._a?(other=(c._isUTC?create_utc__createUTC:local__createLocal)(c._a),
this._isDSTShifted=this.isValid()&&0<compareArrays(c._a,other.toArray())):this._isDSTShifted=!1,this._isDSTShifted},asYears.isLocal=function(){return!!this.isValid()&&!this._isUTC},asYears.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},asYears.isUtc=isUtc,asYears.isUTC=isUtc,asYears.zoneAbbr=function(){return this._isUTC?"UTC":""},asYears.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},asYears.dates=deprecate("dates accessor is deprecated. Use date instead.",asWeeks),asYears.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),asYears.years=deprecate(
"years accessor is deprecated. Use year instead",asMonths),asYears.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(input,keepLocalTime){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()});sk__months=asYears;function preParsePostFormat(string){return string}duration_prototype__proto=Locale.prototype;function lists__get(format,utc,field,setter){var locale=locale_locales__getLocale(),utc=create_utc__createUTC().set(setter,utc);return locale[field](utc,format)}function list(format,index,field,count,setter){if(
"number"==typeof format&&(index=format,format=void 0),format=format||"",null!=index)return lists__get(format,index,field,setter);for(var out=[],i=0;i<count;i++)out[i]=lists__get(format,i,field,setter);return out}duration_prototype__proto._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},duration_prototype__proto.calendar=function(output,mom,now){return isFunction(output=this._calendar[output])?output.call(mom,now):output},duration_prototype__proto._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"},duration_prototype__proto.longDateFormat=function(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];return format||!formatUpper?format:(this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)}),this._longDateFormat[key])},duration_prototype__proto._invalidDate="Invalid date",duration_prototype__proto.invalidDate=function(){return this._invalidDate},duration_prototype__proto._ordinal="%d",duration_prototype__proto.ordinal=function(number){return this._ordinal.replace("%d",number)},duration_prototype__proto._ordinalParse=/\d{1,2}/,
duration_prototype__proto.preparse=preParsePostFormat,duration_prototype__proto.postformat=preParsePostFormat,duration_prototype__proto._relativeTime={future:"in %s",past:"%s ago",s:"a few 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"},duration_prototype__proto.relativeTime=function(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)},duration_prototype__proto.pastFuture=function(format,output){return isFunction(
format=this._relativeTime[0<format?"future":"past"])?format(output):format.replace(/%s/i,output)},duration_prototype__proto.set=function(config){var prop,i;for(i in config)isFunction(prop=config[i])?this[i]=prop:this["_"+i]=prop;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},duration_prototype__proto.months=function(m,format){return(isArray(this._months)?this._months:this._months[MONTHS_IN_FORMAT.test(format)?"format":"standalone"])[m.month()]},duration_prototype__proto._months=milliseconds,duration_prototype__proto.monthsShort=function(m,format){return(isArray(this._monthsShort
)?this._monthsShort:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"])[m.month()]},duration_prototype__proto._monthsShort=seconds,duration_prototype__proto.monthsParse=function(monthName,format,strict){var i,regex;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(regex=create_utc__createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(regex,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(regex,"").replace(".","")+"$","i")),strict||this._monthsParse[i]||(regex="^"+this.months(regex,""
)+"|^"+this.monthsShort(regex,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"MMMM"===format&&this._longMonthsParse[i].test(monthName))return i;if(strict&&"MMM"===format&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}},duration_prototype__proto._monthsRegex=minutes,duration_prototype__proto.monthsRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex},
duration_prototype__proto._monthsShortRegex=hours,duration_prototype__proto.monthsShortRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex},duration_prototype__proto.week=function(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week},duration_prototype__proto._week={dow:0,doy:6},duration_prototype__proto.firstDayOfYear=function(){return this._week.doy},duration_prototype__proto.firstDayOfWeek=function(){return this._week.dow},
duration_prototype__proto.weekdays=function(m,format){return(isArray(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(format)?"format":"standalone"])[m.day()]},duration_prototype__proto._weekdays=days,duration_prototype__proto.weekdaysMin=function(m){return this._weekdaysMin[m.day()]},duration_prototype__proto._weekdaysMin=duration_get__months,duration_prototype__proto.weekdaysShort=function(m){return this._weekdaysShort[m.day()]},duration_prototype__proto._weekdaysShort=years,duration_prototype__proto.weekdaysParse=function(weekdayName,format,strict){var i,regex;for(this._weekdaysParse||(this._weekdaysParse=[],
this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(regex=local__createLocal([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(regex,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(regex,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(regex,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(regex,"")+"|^"+this.weekdaysShort(regex,"")+"|^"+this.weekdaysMin(regex,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),
strict&&"dddd"===format&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&"ddd"===format&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&"dd"===format&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}},duration_prototype__proto.isPM=function(input){return"p"===(input+"").toLowerCase().charAt(0)},duration_prototype__proto._meridiemParse=/[ap]\.?m?\.?/i,duration_prototype__proto.meridiem=function(hours,minutes,isLower){return 11<hours?isLower?"pm":"PM":isLower?"am":"AM"},locale_locales__getSetGlobalLocale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,
ordinal:function(number){var b=number%10;return number+(1===toInt(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")}}),utils_hooks__hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",locale_locales__getSetGlobalLocale),utils_hooks__hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",locale_locales__getLocale);var mathAbs=Math.abs;function duration_add_subtract__addSubtract(duration,input,other,direction){other=create__createDuration(input,other);return duration._milliseconds+=direction*other._milliseconds,duration._days+=direction*other._days,duration._months+=direction*other._months,
duration._bubble()}function absCeil(number){return number<0?Math.floor(number):Math.ceil(number)}function makeAs(alias){return function(){return this.as(alias)}}asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asYears=makeAs("y");function makeGetter(name){return function(){return this._data[name]}}milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),duration_get__months=makeGetter("months"),years=makeGetter("years");var round=Math.round,thresholds={s:45,m:45,
h:22,d:26,M:11};function duration_humanize__relativeTime(posNegDuration,withoutSuffix,locale){var a=create__createDuration(posNegDuration).abs(),seconds=round(a.as("s")),minutes=round(a.as("m")),hours=round(a.as("h")),days=round(a.as("d")),months=round(a.as("M")),a=round(a.as("y")),a=(seconds<thresholds.s?["s",seconds]:minutes<=1&&["m"])||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days]||months<=1&&["M"]||months<thresholds.M&&["MM",months]||a<=1&&["y"]||["yy",a];return a[2]=withoutSuffix,a[3]=0<+posNegDuration,a[4]=locale,function(string,number,withoutSuffix,isFuture,
locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}.apply(null,a)}var iso_string__abs=Math.abs;function iso_string__toISOString(){var total=iso_string__abs(this._milliseconds)/1e3,h=iso_string__abs(this._days),D=iso_string__abs(this._months),s=absFloor(total/60),m=absFloor(s/60);total%=60,s%=60;var Y=absFloor(D/12),M=D%=12,D=h,h=m,m=s,s=total,total=this.asSeconds();return total?(total<0?"-":"")+"P"+(Y?Y+"Y":"")+(M?M+"M":"")+(D?D+"D":"")+(h||m||s?"T":"")+(h?h+"H":"")+(m?m+"M":"")+(s?s+"S":""):"P0D"}duration_prototype__proto=Duration.prototype;duration_prototype__proto.abs=function(){var data=this._data
;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this},duration_prototype__proto.add=function(input,value){return duration_add_subtract__addSubtract(this,input,value,1)},duration_prototype__proto.subtract=function(input,value){return duration_add_subtract__addSubtract(this,input,value,-1)},duration_prototype__proto.as=function(units){var days,months,milliseconds=this._milliseconds
;if("month"===(units=normalizeUnits(units))||"year"===units)return days=this._days+milliseconds/864e5,months=this._months+4800*days/146097,"month"===units?months:months/12;switch(days=this._days+Math.round(146097*this._months/4800),units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return 24*days+milliseconds/36e5;case"minute":return 1440*days+milliseconds/6e4;case"second":return 86400*days+milliseconds/1e3;case"millisecond":return Math.floor(864e5*days)+milliseconds;default:throw new Error("Unknown unit "+units)}},duration_prototype__proto.asMilliseconds=asMilliseconds,
duration_prototype__proto.asSeconds=asSeconds,duration_prototype__proto.asMinutes=asMinutes,duration_prototype__proto.asHours=asHours,duration_prototype__proto.asDays=asDays,duration_prototype__proto.asWeeks=asWeeks,duration_prototype__proto.asMonths=asMonths,duration_prototype__proto.asYears=asYears,duration_prototype__proto.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12)},duration_prototype__proto._bubble=function(){var years=this._milliseconds,days=this._days,months=this._months,data=this._data;return 0<=years&&0<=days&&0<=months||years<=0&&days<=0&&months<=0||(years+=864e5*absCeil(
146097*months/4800+days),months=days=0),data.milliseconds=years%1e3,years=absFloor(years/1e3),data.seconds=years%60,years=absFloor(years/60),data.minutes=years%60,years=absFloor(years/60),data.hours=years%24,days+=absFloor(years/24),months+=years=absFloor(4800*days/146097),days-=absCeil(146097*years/4800),years=absFloor(months/12),months%=12,data.days=days,data.months=months,data.years=years,this},duration_prototype__proto.get=function(units){return this[(units=normalizeUnits(units))+"s"]()},duration_prototype__proto.milliseconds=milliseconds,duration_prototype__proto.seconds=seconds,duration_prototype__proto.minutes=minutes,
duration_prototype__proto.hours=hours,duration_prototype__proto.days=days,duration_prototype__proto.weeks=function(){return absFloor(this.days()/7)},duration_prototype__proto.months=duration_get__months,duration_prototype__proto.years=years,duration_prototype__proto.humanize=function(withSuffix){var locale=this.localeData(),output=duration_humanize__relativeTime(this,!withSuffix,locale);return withSuffix&&(output=locale.pastFuture(+this,output)),locale.postformat(output)},duration_prototype__proto.toISOString=iso_string__toISOString,duration_prototype__proto.toString=iso_string__toISOString,duration_prototype__proto.toJSON=iso_string__toISOString,
duration_prototype__proto.locale=locale,duration_prototype__proto.localeData=localeData,duration_prototype__proto.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iso_string__toISOString),duration_prototype__proto.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",moment_with_locales),addRegexToken("X",/[+-]?\d+(\.\d{1,3})?/),addParseToken("X",function(input,array,config){config._d=new Date(1e3*parseFloat(input,10))}),addParseToken("x",function(input,array,config){config._d=new Date(toInt(input))}),utils_hooks__hooks.version="2.11.1",
hookCallback=local__createLocal,utils_hooks__hooks.fn=sk__months,utils_hooks__hooks.min=function(){return pickBy("isBefore",[].slice.call(arguments,0))},utils_hooks__hooks.max=function(){return pickBy("isAfter",[].slice.call(arguments,0))},utils_hooks__hooks.now=function(){return Date.now?Date.now():+new Date},utils_hooks__hooks.utc=create_utc__createUTC,utils_hooks__hooks.unix=function(input){return local__createLocal(1e3*input)},utils_hooks__hooks.months=function(format,index){return list(format,index,"months",12,"month")},utils_hooks__hooks.isDate=isDate,utils_hooks__hooks.locale=locale_locales__getSetGlobalLocale,
utils_hooks__hooks.invalid=valid__createInvalid,utils_hooks__hooks.duration=create__createDuration,utils_hooks__hooks.isMoment=isMoment,utils_hooks__hooks.weekdays=function(format,index){return list(format,index,"weekdays",7,"day")},utils_hooks__hooks.parseZone=function(){return local__createLocal.apply(null,arguments).parseZone()},utils_hooks__hooks.localeData=locale_locales__getLocale,utils_hooks__hooks.isDuration=isDuration,utils_hooks__hooks.monthsShort=function(format,index){return list(format,index,"monthsShort",12,"month")},utils_hooks__hooks.weekdaysMin=function(format,index){return list(format,index,"weekdaysMin",7,"day")},
utils_hooks__hooks.defineLocale=defineLocale,utils_hooks__hooks.weekdaysShort=function(format,index){return list(format,index,"weekdaysShort",7,"day")},utils_hooks__hooks.normalizeUnits=normalizeUnits,utils_hooks__hooks.relativeTimeThreshold=function(threshold,limit){return void 0!==thresholds[threshold]&&(void 0===limit?thresholds[threshold]:(thresholds[threshold]=limit,!0))},utils_hooks__hooks.prototype=sk__months;function pluralForm(n){return 0===n?0:1===n?1:2===n?2:3<=n%100&&n%100<=10?3:11<=n%100?4:5}var moment__default=utils_hooks__hooks,ar_sa__symbolMap=(moment__default.defineLocale("af",{
months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_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(input){return/^nm$/i.test(input)},meridiem:function(hours,minutes,isLower){return hours<12?isLower?"vm":"VM":isLower?"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ôre 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",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"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||20<=number?"ste":"de")},week:{dow:1,doy:4}}),moment__default.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),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",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",
h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),ar_sa__numberMap={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ar__symbolMap=(moment__default.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),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"},meridiemParse:/ص|م/,isPM:function(input){return"م"===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(string){
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(match){return ar_sa__numberMap[match]}).replace(/،/g,",")},postformat:function(string){return string.replace(/\d/g,function(match){return ar_sa__symbolMap[match]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),moment__default.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),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",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),ar__numberMap={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},plurals={s:[
"أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},moment_with_locales=function(u){return function(number,withoutSuffix,string,isFuture){var f=pluralForm(number),str=plurals[u][pluralForm(number)];return 2===f&&(
str=str[withoutSuffix?0:1]),str.replace(/%d/i,number)}},sk__months=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],az__suffixes=(moment__default.defineLocale("ar",{months:sk__months,monthsShort:sk__months,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".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:/ص|م/,isPM:function(input){return"م"===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:moment_with_locales("s"),m:moment_with_locales("m"),mm:moment_with_locales("m"),h:moment_with_locales("h"),hh:moment_with_locales("h"),d:moment_with_locales("d"),dd:moment_with_locales("d"),M:moment_with_locales("M"),MM:moment_with_locales("M"),y:moment_with_locales("y"),yy:moment_with_locales("y")},
preparse:function(string){return string.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(match){return ar__numberMap[match]}).replace(/،/g,",")},postformat:function(string){return string.replace(/\d/g,function(match){return ar__symbolMap[match]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"});moment__default.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əsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".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ün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",
mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(input){return/^(gündüz|axşam)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"gecə":hour<12?"səhər":hour<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(number){if(0===number)return number+"-ıncı";var a=number%10;return number+(az__suffixes[a]||az__suffixes[number%100-a]||az__suffixes[100<=number?100:null])},week:{dow:1,doy:7}});function be__relativeTimeWithPlural(num,withoutSuffix,forms){
return"m"===forms?withoutSuffix?"хвіліна":"хвіліну":"h"===forms?withoutSuffix?"гадзіна":"гадзіну":num+" "+(num=+num,forms=(forms={mm:withoutSuffix?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:withoutSuffix?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[forms]).split("_"),num%10==1&&num%100!=11?forms[0]:2<=num%10&&num%10<=4&&(num%100<10||20<=num%100)?forms[1]:forms[2])}moment__default.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:be__relativeTimeWithPlural,mm:be__relativeTimeWithPlural,h:be__relativeTimeWithPlural,hh:be__relativeTimeWithPlural,d:"дзень",dd:be__relativeTimeWithPlural,M:"месяц",MM:be__relativeTimeWithPlural,y:"год",yy:be__relativeTimeWithPlural},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(input){
return/^(дня|вечара)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"ночы":hour<12?"раніцы":hour<17?"дня":"вечара"},ordinalParse:/\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,doy:7}}),moment__default.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янрев_мар_апрай_юни_юли_авг_сеп_окт_ноеек".split("_"),
weekdays:"неделя_понеделник_вторник_срядаетвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".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:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",
mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(number){var lastDigit=number%10,last2Digits=number%100;return 0===number?number+"-ев":0==last2Digits?number+"-ен":10<last2Digits&&last2Digits<20?number+"-ти":1==lastDigit?number+"-ви":2==lastDigit?number+"-ри":7==lastDigit||8==lastDigit?number+"-ми":number+"-ти"},week:{dow:1,doy:7}});var bn__symbolMap={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},bn__numberMap={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"},bo__symbolMap=(
moment__default.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".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:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",
lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(string){return string.replace(/[১২৩৪৫৬৭৮৯০]/g,function(match){return bn__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return bn__symbolMap[match]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,isPM:function(input){return/^(দুপুর|বিকাল|রাত)$/.test(input)},meridiem:function(hour,minute,isLower){
return hour<4?"রাত":hour<10?"সকাল":hour<17?"দুপুর":hour<20?"বিকাল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),bo__numberMap={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};moment__default.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),
weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".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:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",
d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(string){return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(match){return bo__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return bo__symbolMap[match]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(input){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"མཚན་མོ":hour<10?"ཞོགས་ཀས":hour<17?"ཉིན་གུང":hour<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});function relativeTimeWithMutation(number,withoutSuffix,key){return number+" "+function(text,number){
return 2!==number?text:function(text){var mutationTable={m:"v",b:"v",d:"z"};return void 0!==mutationTable[text.charAt(0)]?mutationTable[text.charAt(0)]+text.substring(1):text}(text)}({mm:"munutenn",MM:"miz",dd:"devezh"}[key],number)}moment__default.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",
L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:function(number){switch(function lastNumber(number){if(9<number)return lastNumber(number%10);return number}(number)){case 1:case 3:case 4:case 5:case 9:
return number+" bloaz";default:return number+" vloaz"}}},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(number){return number+(1===number?"añ":"vet")},week:{dow:1,doy:4}});function bs__translate(number,withoutSuffix,key){var result=number+" ";switch(key){case"m":return withoutSuffix?"jedna minuta":"jedne minute";case"mm":return result+=1!==number&&(2===number||3===number||4===number)?"minute":"minuta";case"h":return withoutSuffix?"jedan sat":"jednog sata";case"hh":return result+=1===number?"sat":2===number||3===number||4===number?"sata":"sati";case"dd":return result+=1===number?"dan":"dana";case"MM":
return result+=1===number?"mjesec":2===number||3===number||4===number?"mjeseca":"mjeseci";case"yy":return result+=1!==number&&(2===number||3===number||4===number)?"godine":"godina"}}moment__default.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("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".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:"[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čer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:bs__translate,mm:bs__translate,h:bs__translate,
hh:bs__translate,d:"dan",dd:bs__translate,M:"mjesec",MM:bs__translate,y:"godinu",yy:bs__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),moment__default.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),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("_"),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:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà 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:"en %s",past:"fa %s",s:"uns 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"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,
ordinal:function(number,period){return number+("w"!==period&&"W"!==period?1===number?"r":2===number?"n":3===number?"r":4===number?"t":"è":"a")},week:{dow:1,doy:4}});sk__months="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),moment_with_locales="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function cs__plural(n){return 1<n&&n<5&&1!=~~(n/10)}function cs__translate(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"pár sekund":"pár sekundami";case"m":return withoutSuffix?"minuta":isFuture?"minutu":"minutou";case"mm":
return withoutSuffix||isFuture?result+(cs__plural(number)?"minuty":"minut"):result+"minutami";case"h":return withoutSuffix?"hodina":isFuture?"hodinu":"hodinou";case"hh":return withoutSuffix||isFuture?result+(cs__plural(number)?"hodiny":"hodin"):result+"hodinami";case"d":return withoutSuffix||isFuture?"den":"dnem";case"dd":return withoutSuffix||isFuture?result+(cs__plural(number)?"dny":"dní"):result+"dny";case"M":return withoutSuffix||isFuture?"měsíc":"měsícem";case"MM":return withoutSuffix||isFuture?result+(cs__plural(number)?"měsíce":"měsíců"):result+"měsíci";case"y":return withoutSuffix||isFuture?"rok":"rokem";case"yy":
return withoutSuffix||isFuture?result+(cs__plural(number)?"roky":"let"):result+"lety"}}moment__default.defineLocale("cs",{months:sk__months,monthsShort:moment_with_locales,monthsParse:function(months,monthsShort){for(var _monthsParse=[],i=0;i<12;i++)_monthsParse[i]=new RegExp("^"+months[i]+"$|^"+monthsShort[i]+"$","i");return _monthsParse}(sk__months,moment_with_locales),shortMonthsParse:function(monthsShort){for(var _shortMonthsParse=[],i=0;i<12;i++)_shortMonthsParse[i]=new RegExp("^"+monthsShort[i]+"$","i");return _shortMonthsParse}(moment_with_locales),longMonthsParse:function(months){for(var _longMonthsParse=[],i=0;i<12;i++
)_longMonthsParse[i]=new RegExp("^"+months[i]+"$","i");return _longMonthsParse}(sk__months),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_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 v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:
return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:cs__translate,m:cs__translate,mm:cs__translate,h:cs__translate,hh:cs__translate,d:cs__translate,dd:cs__translate,M:cs__translate,MM:cs__translate,y:cs__translate,yy:cs__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("cv",{
months:"кӑрлач_нарӑс_пуш_акаай_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑрар_пуш_акаай_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"вырун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",
nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(output){return output+(/сехет$/i.exec(output)?"рен":/ҫул$/i.exec(output)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),moment__default.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("_"),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 ôl",s:"ychydig eiliadau",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"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(number){var output="";return 20<number?output=40===number||50===number||60===number||80===number||100===number?"fed":"ain":0<number&&(output=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][number]),number+output},week:{dow:1,doy:4}}),moment__default.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øndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"
),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".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 HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})
;function de_at__processRelativeTime(format,withoutSuffix,key,isFuture){format={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[format+" Tage",format+" Tagen"],M:["ein Monat","einem Monat"],MM:[format+" Monate",format+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[format+" Jahre",format+" Jahren"]};return withoutSuffix?format[key][0]:format[key][1]}moment__default.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
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("_"),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",m:de_at__processRelativeTime,mm:"%d Minuten",h:de_at__processRelativeTime,hh:"%d Stunden",
d:de_at__processRelativeTime,dd:de_at__processRelativeTime,M:de_at__processRelativeTime,MM:de_at__processRelativeTime,y:de_at__processRelativeTime,yy:de_at__processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function de__processRelativeTime(format,withoutSuffix,key,isFuture){format={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[format+" Tage",format+" Tagen"],M:["ein Monat","einem Monat"],MM:[format+" Monate",format+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[format+" Jahre",format+" Jahren"]};return withoutSuffix?format[key][0]:format[key][1]}moment__default.defineLocale("de",{
months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),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("_"),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",m:de__processRelativeTime,mm:"%d Minuten",h:de__processRelativeTime,hh:"%d Stunden",d:de__processRelativeTime,dd:de__processRelativeTime,M:de__processRelativeTime,MM:de__processRelativeTime,y:de__processRelativeTime,yy:de__processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var moment_with_locales=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],sk__months=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],monthsShortDot=(
moment__default.defineLocale("dv",{months:moment_with_locales,monthsShort:moment_with_locales,weekdays:sk__months,weekdaysShort:sk__months,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".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:/މކ|މފ/,isPM:function(input){return""===input},meridiem:function(hour,minute,isLower){return hour<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",
m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(string){return string.replace(/،/g,",")},postformat:function(string){return string.replace(/,/g,"،")},week:{dow:7,doy:12}}),moment__default.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(momentToFormat,format){return(/D/.test(
format.substring(0,format.indexOf("MMMM")))?this._monthsGenitiveEl:this._monthsNominativeEl)[momentToFormat.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παραβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Παα".split("_"),meridiem:function(hours,minutes,isLower){return 11<hours?isLower?"μμ":"ΜΜ":isLower?"πμ":"ΠΜ"},isPM:function(input){return"μ"===(input+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/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:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6!==this.day()?"[την προηγούμενη] dddd [{}] LT":"[το προηγούμενο] dddd [{}] LT"},sameElse:"L"},calendar:function(hours,mom){var output=this._calendarEl[hours],hours=mom&&mom.hours();return isFunction(output)&&(output=output.apply(mom)),output.replace("{}",hours%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},
ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),moment__default.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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")},week:{dow:1,doy:4}}),moment__default.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:"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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")}}),moment__default.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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")},week:{dow:1,doy:4}}),moment__default.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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")},week:{dow:1,doy:4}}),moment__default.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",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"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10
;return number+(1==~~(number%100/10)?"th":1==b?"st":2==b?"nd":3==b?"rd":"th")},week:{dow:1,doy:4}}),moment__default.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},
meridiemParse:/[ap]\.t\.m/i,isPM:function(input){return"p"===input.charAt(0).toLowerCase()},meridiem:function(hours,minutes,isLower){return 11<hours?isLower?"p.t.m.":"P.T.M.":isLower?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}),
"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),es__monthsShort="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");moment__default.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(m,format){return(/-MMM-/.test(format)?es__monthsShort:monthsShortDot)[m.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),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ñana 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",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},
ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});function et__processRelativeTime(format,withoutSuffix,key,isFuture){format={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[format+" minuti",format+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[format+" tunni",format+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[format+" kuu",format+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[format+" aasta",format+" aastat"]};return withoutSuffix?format[key][2]||format[key][1]:isFuture?format[key][0]:format[key][1]}moment__default.defineLocale("et",{
months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".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äna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{
future:"%s pärast",past:"%s tagasi",s:et__processRelativeTime,m:et__processRelativeTime,mm:et__processRelativeTime,h:et__processRelativeTime,hh:et__processRelativeTime,d:et__processRelativeTime,dd:"%d päeva",M:et__processRelativeTime,MM:et__processRelativeTime,y:et__processRelativeTime,yy:et__processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.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("_"),
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("_"),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",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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var fa__symbolMap={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},fa__numberMap={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},numbersPast=(moment__default.defineLocale("fa",{months:"ژانویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),
weekdays:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),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"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(input){return/بعد از ظهر/.test(input)},meridiem:function(hour,minute,isLower){return hour<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{
future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(string){return string.replace(/[۰-۹]/g,function(match){return fa__numberMap[match]}).replace(/،/g,",")},postformat:function(string){return string.replace(/\d/g,function(match){return fa__symbolMap[match]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),numbersFuture=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",numbersPast[7],numbersPast[8],
numbersPast[9]];function fi__translate(number,withoutSuffix,key,isFuture){var result="";switch(key){case"s":return isFuture?"muutaman sekunnin":"muutama sekunti";case"m":return isFuture?"minuutin":"minuutti";case"mm":result=isFuture?"minuutin":"minuuttia";break;case"h":return isFuture?"tunnin":"tunti";case"hh":result=isFuture?"tunnin":"tuntia";break;case"d":return isFuture?"päivän":"päivä";case"dd":result=isFuture?"päivän":"päivää";break;case"M":return isFuture?"kuukauden":"kuukausi";case"MM":result=isFuture?"kuukauden":"kuukautta";break;case"y":return isFuture?"vuoden":"vuosi";case"yy":result=isFuture?"vuoden":"vuotta"}return result=function(number,isFuture
){return number<10?(isFuture?numbersFuture:numbersPast)[number]:number}(number,isFuture)+" "+result}moment__default.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_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änään] [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äästä",past:"%s sitten",s:fi__translate,m:fi__translate,mm:fi__translate,h:fi__translate,hh:fi__translate,d:fi__translate,dd:fi__translate,M:fi__translate,MM:fi__translate,y:fi__translate,yy:fi__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("fo",{
months:"januar_februar_mars_apríl_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ánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_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:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},
relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),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("_"),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'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(number){return number+(1===number?"er":"e")}}),moment__default.defineLocale("fr-ch",{
months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),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("_"),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'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},
relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(number){return number+(1===number?"er":"e")},week:{dow:1,doy:4}}),moment__default.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),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("_"),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'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(number){return number+(
1===number?"er":"")},week:{dow:1,doy:4}});var fy__monthsShortWithDots="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),fy__monthsShortWithoutDots="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),hi__symbolMap=(moment__default.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(m,format){return(/-MMM-/.test(format)?fy__monthsShortWithoutDots:fy__monthsShortWithDots)[m.month()]},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("_"),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:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",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"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||20<=number?"ste":"de")},week:{
dow:1,doy:4}}),moment__default.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","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àireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(number){return number+(1===number?"d":number%10==2?"na":"mh")},week:{dow:1,doy:4}}),moment__default.defineLocale("gl",{
months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".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:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){
return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(str){return"uns segundos"===str?"nuns segundos":"en "+str},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}}),moment__default.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יוליוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יוליוג׳_ספט׳וק׳וב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישיישי_שבת".split("_"),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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",
m:"דקה",mm:"%d דקות",h:"שעה",hh:function(number){return 2===number?"שעתיים":number+" שעות"},d:"יום",dd:function(number){return 2===number?"יומיים":number+" ימים"},M:"חודש",MM:function(number){return 2===number?"חודשיים":number+" חודשים"},y:"שנה",yy:function(number){return 2===number?"שנתיים":number%10==0&&10!==number?number+" שנה":number+" שנים"}}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""}),hi__numberMap={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};moment__default.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),
monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".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:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",
dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(string){return string.replace(/[१२३४५६७८९०]/g,function(match){return hi__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return hi__symbolMap[match]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"रात"===meridiem?hour<4?hour:hour+12:"सुबह"===meridiem?hour:"दोपहर"===meridiem?10<=hour?hour:hour+12:"शाम"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"रात":hour<10?"सुबह":hour<17?"दोपहर":hour<20?"शाम":"रात"},week:{dow:0,doy:6}})
;function hr__translate(number,withoutSuffix,key){var result=number+" ";switch(key){case"m":return withoutSuffix?"jedna minuta":"jedne minute";case"mm":return result+=1!==number&&(2===number||3===number||4===number)?"minute":"minuta";case"h":return withoutSuffix?"jedan sat":"jednog sata";case"hh":return result+=1===number?"sat":2===number||3===number||4===number?"sata":"sati";case"dd":return result+=1===number?"dan":"dana";case"MM":return result+=1===number?"mjesec":2===number||3===number||4===number?"mjeseca":"mjeseci";case"yy":return result+=1!==number&&(2===number||3===number||4===number)?"godine":"godina"}}moment__default.defineLocale("hr",{months:{
format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".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:"[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čer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:hr__translate,mm:hr__translate,h:hr__translate,hh:hr__translate,d:"dan",dd:hr__translate,M:"mjesec",MM:hr__translate,y:"godinu",
yy:hr__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var weekEndings="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function hu__translate(num,withoutSuffix,key,isFuture){switch(key){case"s":return isFuture||withoutSuffix?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(isFuture||withoutSuffix?" perc":" perce");case"mm":return num+(isFuture||withoutSuffix?" perc":" perce");case"h":return"egy"+(isFuture||withoutSuffix?" óra":" órája");case"hh":return num+(isFuture||withoutSuffix?" óra":" órája");case"d":return"egy"+(isFuture||withoutSuffix?" nap":" napja");case"dd":return num+(
isFuture||withoutSuffix?" nap":" napja");case"M":return"egy"+(isFuture||withoutSuffix?" hónap":" hónapja");case"MM":return num+(isFuture||withoutSuffix?" hónap":" hónapja");case"y":return"egy"+(isFuture||withoutSuffix?" év":" éve");case"yy":return num+(isFuture||withoutSuffix?" év":" éve")}return""}function week(isFuture){return(isFuture?"":"[múlt] ")+"["+weekEndings[this.day()]+"] LT[-kor]"}moment__default.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_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(input){return"u"===input.charAt(1).toLowerCase()},meridiem:function(hours,minutes,isLower){return hours<12?!0===isLower?"de":"DE":!0===isLower?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){
return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:hu__translate,m:hu__translate,mm:hu__translate,h:hu__translate,hh:hu__translate,d:hu__translate,dd:hu__translate,M:hu__translate,MM:hu__translate,y:hu__translate,yy:hu__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),moment__default.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},
monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),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(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",
m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(input){return/^(ցերեկվա|երեկոյան)$/.test(input)},meridiem:function(hour){return hour<4?"գիշերվա":hour<12?"առավոտվա":hour<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(number,period){switch(period){case"DDD":case"w":case"W":case"DDDo":return 1===number?number+"-ին":number+"-րդ";default:return number}},week:{dow:1,doy:7}}),moment__default.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split(
"_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"siang"===meridiem?11<=hour?hour:hour+12:"sore"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){
return hours<11?"pagi":hours<15?"siang":hours<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",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:1,doy:7}});function is__plural(n){return n%100==11||n%10!=1}function is__translate(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":
return withoutSuffix||isFuture?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return withoutSuffix?"mínúta":"mínútu";case"mm":return is__plural(number)?result+(withoutSuffix||isFuture?"mínútur":"mínútum"):withoutSuffix?result+"mínúta":result+"mínútu";case"hh":return is__plural(number)?result+(withoutSuffix||isFuture?"klukkustundir":"klukkustundum"):result+"klukkustund";case"d":return withoutSuffix?"dagur":isFuture?"dag":"degi";case"dd":return is__plural(number)?withoutSuffix?result+"dagar":result+(isFuture?"daga":"dögum"):withoutSuffix?result+"dagur":result+(isFuture?"dag":"degi");case"M":return withoutSuffix?"mánuður":isFuture?"mánuð":"mánuði";case"MM":
return is__plural(number)?withoutSuffix?result+"mánuðir":result+(isFuture?"mánuði":"mánuðum"):withoutSuffix?result+"mánuður":result+(isFuture?"mánuð":"mánuði");case"y":return withoutSuffix||isFuture?"ár":"ári";case"yy":return is__plural(number)?result+(withoutSuffix||isFuture?"ár":"árum"):result+(withoutSuffix||isFuture?"ár":"ári")}}moment__default.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_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:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:is__translate,m:is__translate,mm:is__translate,h:"klukkustund",hh:is__translate,d:is__translate,dd:is__translate,M:is__translate,MM:is__translate,y:is__translate,yy:is__translate},ordinalParse:/\d{1,2}\./,
ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.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ì_Martedì_Mercoledì_Giovedì_Venerdì_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(){return 0!==this.day()?"[lo scorso] dddd [alle] LT":"[la scorsa] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(s){return(/^[0-9].+$/.test(s)?"tra":"in")+" "+s},past:"%s fa",s:"alcuni 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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),moment__default.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(input){return"午後"===input},meridiem:function(hour,minute,isLower){return hour<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),moment__default.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(hour,meridiem){return 12===hour&&(hour=0),
"enjing"===meridiem?hour:"siyang"===meridiem?11<=hour?hour:hour+12:"sonten"===meridiem||"ndalu"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"enjing":hours<15?"siyang":hours<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",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}}
),moment__default.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".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:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(s){return/(წამი|წუთი|საათი|წელი)/.test(s)?s.replace(/ი$/,"ში"):s+"ში"},past:function(s){return/(წამი|წუთი|საათი|დღე|თვე)/.test(s)?s.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(s)?s.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"
},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(number){return 0===number?number:1===number?number+"-ლი":number<20||number<=100&&number%20==0||number%100==0?"მე-"+number:number+"-ე"},week:{dow:1,doy:7}});var kk__suffixes={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};moment__default.defineLocale("kk",{months:"Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қарашаелтоқсан".split("_"),monthsShort:"Қаң_Ақп_Нау_Сәу_Мам_Мауіл_Там_Қыраз_Қарел".split("_"),
weekdays:"Жексенбіүйсенбі_Сейсенбі_Сәрсенбіейсенбі_Жұма_Сенбі".split("_"),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",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",
yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(number){return number+(kk__suffixes[number]||kk__suffixes[number%10]||kk__suffixes[100<=number?100:null])},week:{dow:1,doy:7}}),moment__default.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),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",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}}),moment__default.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(token){return"오후"===token},meridiem:function(hour,minute,isUpper){
return hour<12?"오전":"오후"}});function lb__processRelativeTime(number,withoutSuffix,key,isFuture){var format={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 withoutSuffix?format[key][0]:format[key][1]}function eifelerRegelAppliesToNumber(number){if(number=parseInt(number,10),isNaN(number))return!1;if(number<0)return!0;if(number<10)return 4<=number&&number<=7;if(number<100){var lastDigit=number%10;return 0==lastDigit?eifelerRegelAppliesToNumber(number/10):eifelerRegelAppliesToNumber(lastDigit)}if(number<1e4){for(;10<=number;)number/=10
;return eifelerRegelAppliesToNumber(number)}return eifelerRegelAppliesToNumber(number/=1e3)}moment__default.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),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ëschter 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(string){return eifelerRegelAppliesToNumber(string.substr(0,string.indexOf(" ")))?"a "+string:"an "+string},past:function(string){return eifelerRegelAppliesToNumber(string.substr(0,string.indexOf(" ")))?"viru "+string:"virun "+string},s:"e puer Sekonnen",m:lb__processRelativeTime,mm:"%d Minutten",h:lb__processRelativeTime,hh:"%d Stonnen",d:lb__processRelativeTime,dd:"%d Deeg",
M:lb__processRelativeTime,MM:"%d Méint",y:lb__processRelativeTime,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),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"},
meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(input){return"ຕອນແລງ"===input},meridiem:function(hour,minute,isLower){return hour<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(number){return"ທີ່"+number}});var lt__units={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",
h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function translateSingular(number,withoutSuffix,key,isFuture){return withoutSuffix?forms(key)[0]:isFuture?forms(key)[1]:forms(key)[2]}function special(number){return number%10==0||10<number&&number<20}function forms(key){return lt__units[key].split("_")}function lt__translate(number,withoutSuffix,key,isFuture){var result=number+" ";return 1===number?result+translateSingular(0,withoutSuffix,key[0],isFuture):withoutSuffix?result+(special(number)?forms(key
)[1]:forms(key)[0]):isFuture?result+forms(key)[1]:result+(special(number)?forms(key)[1]:forms(key)[2])}moment__default.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),
standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),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:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",
sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(number,withoutSuffix,key,isFuture){return withoutSuffix?"kelios sekundės":isFuture?"kelių sekundžių":"kelias sekundes"},m:translateSingular,mm:lt__translate,h:translateSingular,hh:lt__translate,d:translateSingular,dd:lt__translate,M:translateSingular,MM:lt__translate,y:translateSingular,yy:lt__translate},ordinalParse:/\d{1,2}-oji/,ordinal:function(number){return number+"-oji"},week:{dow:1,doy:4}});var lv__units={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),
hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function lv__format(forms,number,withoutSuffix){return withoutSuffix?number%10==1&&11!==number?forms[2]:forms[3]:number%10==1&&11!==number?forms[0]:forms[1]}function lv__relativeTimeWithPlural(number,withoutSuffix,key){return number+" "+lv__format(lv__units[key],number,withoutSuffix)}function relativeTimeWithSingular(number,withoutSuffix,key){return lv__format(
lv__units[key],number,withoutSuffix)}moment__default.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),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:"[Šodien pulksten] LT",
nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(number,withoutSuffix){return withoutSuffix?"dažas sekundes":"dažām sekundēm"},m:relativeTimeWithSingular,mm:lv__relativeTimeWithPlural,h:relativeTimeWithSingular,hh:lv__relativeTimeWithPlural,d:relativeTimeWithSingular,dd:lv__relativeTimeWithPlural,M:relativeTimeWithSingular,MM:lv__relativeTimeWithPlural,y:relativeTimeWithSingular,yy:lv__relativeTimeWithPlural},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var me__translator={words:{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(number,wordKey){return 1===number?wordKey[0]:2<=number&&number<=4?wordKey[1]:wordKey[2]},translate:function(number,withoutSuffix,key){var wordKey=me__translator.words[key];return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+me__translator.correctGrammaticalCase(number,wordKey)}},mr__symbolMap=(moment__default.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust",
"septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],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če u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:me__translator.translate,mm:me__translator.translate,h:me__translator.translate,hh:me__translator.translate,d:"dan",dd:me__translator.translate,M:"mjesec",MM:me__translator.translate,y:"godinu",yy:me__translator.translate},
ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),moment__default.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апрај_јун_јул_авг_сеп_окт_ноеек".split("_"),weekdays:"недела_понеделник_вторник_средаетврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_среет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_сре_пе_сa".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:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",
lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(number){var lastDigit=number%10,last2Digits=number%100
;return 0===number?number+"-ев":0==last2Digits?number+"-ен":10<last2Digits&&last2Digits<20?number+"-ти":1==lastDigit?number+"-ви":2==lastDigit?number+"-ри":7==lastDigit||8==lastDigit?number+"-ми":number+"-ти"},week:{dow:1,doy:7}}),moment__default.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റബർ_ഒക്ടോബർ_നവബർ_ഡിസബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവ._ഡിസ.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴ_വെള്ളി_ശനി".split("_"),
weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".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:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(input){
return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"രാത്രി":hour<12?"രാവിലെ":hour<17?"ഉച്ച കഴിഞ്ഞ്":hour<20?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""}),mr__numberMap={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function relativeTimeMr(number,withoutSuffix,string,isFuture){var output="";if(withoutSuffix)switch(string){case"s":output="काही सेकंद";break;case"m":output="एक मिनिट";break;case"mm":output="%d मिनिटे";break;case"h":output="एक तास";break;case"hh":output="%d तास";break;case"d":output="एक दिवस";break;case"dd":
output="%d दिवस";break;case"M":output="एक महिना";break;case"MM":output="%d महिने";break;case"y":output="एक वर्ष";break;case"yy":output="%d वर्षे"}else switch(string){case"s":output="काही सेकंदां";break;case"m":output="एका मिनिटा";break;case"mm":output="%d मिनिटां";break;case"h":output="एका तासा";break;case"hh":output="%d तासां";break;case"d":output="एका दिवसा";break;case"dd":output="%d दिवसां";break;case"M":output="एका महिन्या";break;case"MM":output="%d महिन्यां";break;case"y":output="एका वर्षा";break;case"yy":output="%d वर्षां"}return output.replace(/%d/i,number)}moment__default.defineLocale("mr",{
months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".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:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",
sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(string){return string.replace(/[१२३४५६७८९०]/g,function(match){return mr__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return mr__symbolMap[match]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),
"रात्री"===meridiem?hour<4?hour:hour+12:"सकाळी"===meridiem?hour:"दुपारी"===meridiem?10<=hour?hour:hour+12:"सायंकाळी"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"रात्री":hour<10?"सकाळी":hour<17?"दुपारी":hour<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),moment__default.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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"tengahari"===meridiem?11<=hour?hour:hour+12:"petang"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"pagi":hours<15?"tengahari":hours<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",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}}),moment__default.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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"tengahari"===meridiem?11<=hour?hour:hour+12:"petang"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"pagi":hours<15?"tengahari":hours<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",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}});var my__symbolMap={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},my__numberMap={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"},ne__symbolMap=(moment__default.defineLocale("my",{months:"ဇန်နါရီ_ဖေဖော်ါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),
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 [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(string){return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,
function(match){return my__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return my__symbolMap[match]})},week:{dow:1,doy:4}}),moment__default.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),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år kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""}),ne__numberMap={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},
nl__monthsShortWithDots=(moment__default.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".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 बजे"},preparse:function(string){return string.replace(
/[१२३४५६७८९०]/g,function(match){return ne__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return ne__symbolMap[match]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"राति"===meridiem?hour<4?hour:hour+12:"बिहान"===meridiem?hour:"दिउँसो"===meridiem?10<=hour?hour:hour+12:"साँझ"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<3?"राति":hour<12?"बिहान":hour<16?"दिउँसो":hour<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},
relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),nl__monthsShortWithoutDots="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),monthsNominative=(moment__default.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(m,format){return(/-MMM-/.test(format)?nl__monthsShortWithoutDots:nl__monthsShortWithDots)[m.month()]},
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("_"),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",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",
y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||20<=number?"ste":"de")},week:{dow:1,doy:4}}),moment__default.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),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år klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),
monthsSubjective="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function pl__plural(n){return n%10<5&&1<n%10&&~~(n/10)%10!=1}function pl__translate(number,withoutSuffix,key){var result=number+" ";switch(key){case"m":return withoutSuffix?"minuta":"minutę";case"mm":return result+(pl__plural(number)?"minuty":"minut");case"h":return withoutSuffix?"godzina":"godzinę";case"hh":return result+(pl__plural(number)?"godziny":"godzin");case"MM":return result+(pl__plural(number)?"miesiące":"miesięcy");case"yy":return result+(pl__plural(number)?"lata":"lat")}}moment__default.defineLocale("pl",{
months:function(momentToFormat,format){return""===format?"("+monthsSubjective[momentToFormat.month()]+"|"+monthsNominative[momentToFormat.month()]+")":(/D MMMM/.test(format)?monthsSubjective:monthsNominative)[momentToFormat.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_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ś o] LT",
nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:pl__translate,mm:pl__translate,h:pl__translate,hh:pl__translate,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:pl__translate,y:"rok",yy:pl__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("pt-br",{
months:"Janeiro_Fevereiro_Março_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ça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",
lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),moment__default.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_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ça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),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 às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",
mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});function ro__relativeTimeWithPlural(number,withoutSuffix,key){return number+(20<=number%100||100<=number&&number%100==0?" de ":" ")+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[key]}moment__default.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),
weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".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âine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:ro__relativeTimeWithPlural,h:"o oră",hh:ro__relativeTimeWithPlural,d:"o zi",dd:ro__relativeTimeWithPlural,M:"o lună",
MM:ro__relativeTimeWithPlural,y:"un an",yy:ro__relativeTimeWithPlural},week:{dow:1,doy:7}});function ru__relativeTimeWithPlural(num,withoutSuffix,forms){return"m"===forms?withoutSuffix?"минута":"минуту":num+" "+(num=+num,forms=(forms={mm:withoutSuffix?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",MM:"месяц_месяцаесяцев",yy:"год_годает"}[forms]).split("_"),num%10==1&&num%100!=11?forms[0]:2<=num%10&&num%10<=4&&(num%100<10||20<=num%100)?forms[1]:forms[2])}moment_with_locales=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],moment__default.defineLocale("ru",{months:{
format:"Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря".split("_"),standalone:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_")},monthsShort:{format:"янв_фев_мар_апрая_июня_июля_авг_сен_окт_ноя_дек".split("_"),standalone:"янв_фев_март_апрай_июнь_июль_авг_сен_окт_ноя_дек".split("_")},weekdays:{standalone:"Воскресеньеонедельник_Вторник_Средаетверг_Пятница_Суббота".split("_"),format:"Воскресеньеонедельник_Вторник_Средуетверг_Пятницу_Субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),
weekdaysMin:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),monthsParse:moment_with_locales,longMonthsParse:moment_with_locales,shortMonthsParse:moment_with_locales,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(now){if(now.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},
lastWeek:function(now){if(now.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:ru__relativeTimeWithPlural,mm:ru__relativeTimeWithPlural,h:"час",hh:ru__relativeTimeWithPlural,d:"день",dd:ru__relativeTimeWithPlural,M:"месяц",MM:ru__relativeTimeWithPlural,y:"год",yy:ru__relativeTimeWithPlural},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(input){return/^(дня|вечера)$/.test(input
)},meridiem:function(hour,minute,isLower){return hour<4?"ночи":hour<12?"утра":hour<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(number,period){switch(period){case"M":case"d":case"DDD":return number+"-й";case"D":return number+"-го";case"w":case"W":return number+"-я";default:return number}},week:{dow:1,doy:7}}),moment__default.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),
weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".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žes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",
dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),moment__default.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),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 [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(number){return number+" වැනි"},meridiem:function(hours,minutes,isLower){return 11<hours?isLower?"ප.ව.":"පස් වරු":isLower?"පෙ.ව.":"පෙර වරු"}}),sk__months="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),
moment_with_locales="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function sk__plural(n){return 1<n&&n<5}function sk__translate(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"pár sekúnd":"pár sekundami";case"m":return withoutSuffix?"minúta":isFuture?"minútu":"minútou";case"mm":return withoutSuffix||isFuture?result+(sk__plural(number)?"minúty":"minút"):result+"minútami";case"h":return withoutSuffix?"hodina":isFuture?"hodinu":"hodinou";case"hh":return withoutSuffix||isFuture?result+(sk__plural(number)?"hodiny":"hodín"):result+"hodinami";case"d":
return withoutSuffix||isFuture?"deň":"dňom";case"dd":return withoutSuffix||isFuture?result+(sk__plural(number)?"dni":"dní"):result+"dňami";case"M":return withoutSuffix||isFuture?"mesiac":"mesiacom";case"MM":return withoutSuffix||isFuture?result+(sk__plural(number)?"mesiace":"mesiacov"):result+"mesiacmi";case"y":return withoutSuffix||isFuture?"rok":"rokom";case"yy":return withoutSuffix||isFuture?result+(sk__plural(number)?"roky":"rokov"):result+"rokmi"}}moment__default.defineLocale("sk",{months:sk__months,monthsShort:moment_with_locales,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),
weekdaysMin:"ne_po_ut_st_št_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ľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:
return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:sk__translate,m:sk__translate,mm:sk__translate,h:sk__translate,hh:sk__translate,d:sk__translate,dd:sk__translate,M:sk__translate,MM:sk__translate,y:sk__translate,yy:sk__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function sl__processRelativeTime(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"nekaj sekund":"nekaj sekundami";case"m":return withoutSuffix?"ena minuta":"eno minuto";case"mm":
return result+=1===number?withoutSuffix?"minuta":"minuto":2===number?withoutSuffix||isFuture?"minuti":"minutama":number<5?withoutSuffix||isFuture?"minute":"minutami":withoutSuffix||isFuture?"minut":"minutami";case"h":return withoutSuffix?"ena ura":"eno uro";case"hh":return result+=1===number?withoutSuffix?"ura":"uro":2===number?withoutSuffix||isFuture?"uri":"urama":number<5?withoutSuffix||isFuture?"ure":"urami":withoutSuffix||isFuture?"ur":"urami";case"d":return withoutSuffix||isFuture?"en dan":"enim dnem";case"dd":
return result+=1===number?withoutSuffix||isFuture?"dan":"dnem":2===number?withoutSuffix||isFuture?"dni":"dnevoma":withoutSuffix||isFuture?"dni":"dnevi";case"M":return withoutSuffix||isFuture?"en mesec":"enim mesecem";case"MM":return result+=1===number?withoutSuffix||isFuture?"mesec":"mesecem":2===number?withoutSuffix||isFuture?"meseca":"mesecema":number<5?withoutSuffix||isFuture?"mesece":"meseci":withoutSuffix||isFuture?"mesecev":"meseci";case"y":return withoutSuffix||isFuture?"eno leto":"enim letom";case"yy":
return result+=1===number?withoutSuffix||isFuture?"leto":"letom":2===number?withoutSuffix||isFuture?"leti":"letoma":number<5?withoutSuffix||isFuture?"leta":"leti":withoutSuffix||isFuture?"let":"leti"}}moment__default.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("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_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:"[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čeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",
s:sl__processRelativeTime,m:sl__processRelativeTime,mm:sl__processRelativeTime,h:sl__processRelativeTime,hh:sl__processRelativeTime,d:sl__processRelativeTime,dd:sl__processRelativeTime,M:sl__processRelativeTime,MM:sl__processRelativeTime,y:sl__processRelativeTime,yy:sl__processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),moment__default.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),
weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(input){return"M"===input.charAt(0)},meridiem:function(hours,minutes,isLower){return hours<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ë] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",
M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var sr_cyrl__translator={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(number,wordKey){return 1===number?wordKey[0]:2<=number&&number<=4?wordKey[1]:wordKey[2]},translate:function(number,withoutSuffix,key){var wordKey=sr_cyrl__translator.words[key]
;return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+sr_cyrl__translator.correctGrammaticalCase(number,wordKey)}},sr__translator=(moment__default.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],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:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",
m:sr_cyrl__translator.translate,mm:sr_cyrl__translator.translate,h:sr_cyrl__translator.translate,hh:sr_cyrl__translator.translate,d:"дан",dd:sr_cyrl__translator.translate,M:"месец",MM:sr_cyrl__translator.translate,y:"годину",yy:sr_cyrl__translator.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{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(number,wordKey){return 1===number?wordKey[0]:2<=number&&number<=4?wordKey[1]:wordKey[2]},
translate:function(number,withoutSuffix,key){var wordKey=sr__translator.words[key];return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+sr__translator.correctGrammaticalCase(number,wordKey)}}),ta__symbolMap=(moment__default.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],
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] [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če u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},
relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:sr__translator.translate,mm:sr__translator.translate,h:sr__translator.translate,hh:sr__translator.translate,d:"dan",dd:sr__translator.translate,M:"mesec",MM:sr__translator.translate,y:"godinu",yy:sr__translator.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),moment__default.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öndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),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:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(number){var b=number%10;return number+(1!=~~(
number%100/10)&&(1==b||2==b)?"a":"e")},week:{dow:1,doy:4}}),moment__default.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("_"),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:"[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",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),{1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""}),ta__numberMap={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"},numbersNouns=(moment__default.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"
),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),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",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",
past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(number){return number+"வது"},preparse:function(string){return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(match){return ta__numberMap[match]})},postformat:function(string){return string.replace(/\d/g,function(match){return ta__symbolMap[match]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(hour,minute,isLower){
return hour<2?" யாமம்":hour<6?" வைகறை":hour<10?" காலை":hour<14?" நண்பகல்":hour<18?" எற்பாடு":hour<22?" மாலை":" யாமம்"},meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"யாமம்"===meridiem?hour<2?hour:hour+12:"வைகறை"===meridiem||"காலை"===meridiem||"நண்பகல்"===meridiem&&10<=hour?hour:hour+12},week:{dow:0,doy:6}}),moment__default.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెబర్_అక్టోబర్_నవబర్_డిసెబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdays:"ఆదివార_సోమవార_మగళవార_బుధవార_గురువార_శుక్రవార_శనివార".split("_"),
weekdaysShort:"ఆది_సోమ_మగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మ_బు_గు_శు_శ".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:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"రాత్రి"===meridiem?hour<4?hour:hour+12:"ఉదయం"===meridiem?hour:"మధ్యాహ్నం"===meridiem?10<=hour?hour:hour+12:"సాయంత్రం"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"రాత్రి":hour<10?"ఉదయం":hour<17?"మధ్యాహ్నం":hour<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),moment__default.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),
weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(input){return"หลังเที่ยง"===input},meridiem:function(hour,minute,isLower){return hour<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",
lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),moment__default.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:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang 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"},ordinalParse:/\d{1,2}/,ordinal:function(number){return number},week:{dow:1,doy:4}}),"pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"))
;function tlh__translate(numberNoun,withoutSuffix,string,isFuture){numberNoun=function(word){var hundred=Math.floor(word%1e3/100),ten=Math.floor(word%100/10),one=word%10,word="";0<hundred&&(word+=numbersNouns[hundred]+"vatlh");0<ten&&(word+=(""!==word?" ":"")+numbersNouns[ten]+"maH");0<one&&(word+=(""!==word?" ":"")+numbersNouns[one]);return""===word?"pagh":word}(numberNoun);switch(string){case"mm":return numberNoun+" tup";case"hh":return numberNoun+" rep";case"dd":return numberNoun+" jaj";case"MM":return numberNoun+" jar";case"yy":return numberNoun+" DIS"}}moment__default.defineLocale("tlh",{
months:"tera jar wa_tera jar cha_tera jar wej_tera jar loS_tera jar vagh_tera jar jav_tera jar Soch_tera jar chorgh_tera jar Hut_tera jar wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH cha".split("_"),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:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(output){var time=output;return time=-1!==output.indexOf("jaj")?time.slice(0,-3)+"leS":-1!==output.indexOf("jar")?time.slice(0,-3)+"waQ":-1!==output.indexOf("DIS")?time.slice(0,-3)+"nem":time+" pIq"},past:function(output){var time=output;return time=-1!==output.indexOf("jaj")?time.slice(0,-3)+"Hu":-1!==output.indexOf("jar")?time.slice(0,-3)+"wen":-1!==output.indexOf("DIS")?time.slice(0,-3)+"ben":time+" ret"},s:"puS lup",m:"wa tup",
mm:tlh__translate,h:"wa rep",hh:tlh__translate,d:"wa jaj",dd:tlh__translate,M:"wa jar",MM:tlh__translate,y:"wa DIS",yy:tlh__translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var tr__suffixes={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};moment__default.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),
weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".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ün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",
yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(number){if(0===number)return number+"'ıncı";var a=number%10;return number+(tr__suffixes[a]||tr__suffixes[number%100-a]||tr__suffixes[100<=number?100:null])},week:{dow:1,doy:7}}),moment__default.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".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"},meridiem:function(hours,minutes,isLower){return 11<hours?isLower?"d'o":"D'O":isLower?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:tzl__processRelativeTime,m:tzl__processRelativeTime,mm:tzl__processRelativeTime,h:tzl__processRelativeTime,hh:tzl__processRelativeTime,d:tzl__processRelativeTime,dd:tzl__processRelativeTime,M:tzl__processRelativeTime,
MM:tzl__processRelativeTime,y:tzl__processRelativeTime,yy:tzl__processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function tzl__processRelativeTime(format,withoutSuffix,key,isFuture){format={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[format+" míuts",format+" míuts"],h:["'n þora","'iensa þora"],hh:[format+" þoras",format+" þoras"],d:["'n ziua","'iensa ziua"],dd:[format+" ziuas",format+" ziuas"],M:["'n mes","'iens mes"],MM:[format+" mesen",format+" mesen"],y:["'n ar","'iens ar"],yy:[format+" ars",format+" ars"]};return isFuture||withoutSuffix?format[key][0]:format[key][1]}moment__default.defineLocale(
"tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".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",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),moment__default.defineLocale("tzm",{months:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),monthsShort:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),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",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰ",M:"ⴰⵢoⵓ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});function uk__relativeTimeWithPlural(num,withoutSuffix,forms){
return"m"===forms?withoutSuffix?"хвилина":"хвилину":"h"===forms?withoutSuffix?"година":"годину":num+" "+(num=+num,forms=(forms={mm:withoutSuffix?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:withoutSuffix?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[forms]).split("_"),num%10==1&&num%100!=11?forms[0]:2<=num%10&&num%10<=4&&(num%100<10||20<=num%100)?forms[1]:forms[2])}function processHoursFunction(str){return function(){return str+"о"+(11===this.hours()?"б":"")+"] LT"}}moment__default.defineLocale("uk",{months:{
format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:function(m,format){return{nominative:"неділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:"неділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(format
)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)?"genitive":"nominative"][m.day()]},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:processHoursFunction("[Сьогодні "),nextDay:processHoursFunction("[Завтра "),lastDay:processHoursFunction("[Вчора "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[Минулої] dddd [").call(this);case 1:case 2:case 4:
return processHoursFunction("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:uk__relativeTimeWithPlural,mm:uk__relativeTimeWithPlural,h:"годину",hh:uk__relativeTimeWithPlural,d:"день",dd:uk__relativeTimeWithPlural,M:"місяць",MM:uk__relativeTimeWithPlural,y:"рік",yy:uk__relativeTimeWithPlural},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(input){return/^(дня|вечора)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"ночі":hour<12?"ранку":hour<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(number,period){switch(period){case"M":case"d":case"DDD":case"w":
case"W":return number+"-й";case"D":return number+"-го";default:return number}},week:{dow:1,doy:7}}),moment__default.defineLocale("uz",{months:"январеврал_март_апрел_май_июн_июл_август_сентябр_октяброябрекабр".split("_"),monthsShort:"янв_фев_мар_апрай_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанбаушанба_Сешанбаоршанбаайшанбаумаанба".split("_"),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:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",
nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),moment__default.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] 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ôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",
h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(number){return number},week:{dow:1,doy:4}}),moment__default.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",
llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"凌晨"===meridiem||"早上"===meridiem||"上午"===meridiem||"下午"!==meridiem&&"晚上"!==meridiem&&11<=hour?hour:hour+12},meridiem:function(hour,hm,isLower){hm=100*hour+hm;return hm<600?"凌晨":hm<900?"早上":hm<1130?"上午":hm<1230?"中午":hm<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var prefix=moment__default().startOf("week"),prefix=604800<=this.unix(
)-prefix.unix()?"[下]":"[本]";return 0===this.minutes()?prefix+"dddAh点整":prefix+"dddAh点mm"},lastWeek:function(){var prefix=moment__default().startOf("week"),prefix=this.unix()<prefix.unix()?"[上]":"[本]";return 0===this.minutes()?prefix+"dddAh点整":prefix+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"日";case"M":return number+"月";case"w":case"W":return number+"周";default:return number}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),
moment__default.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),
"早上"===meridiem||"上午"===meridiem?hour:"中午"===meridiem?11<=hour?hour:hour+12:"下午"===meridiem||"晚上"===meridiem?hour+12:void 0},meridiem:function(hour,hm,isLower){hm=100*hour+hm;return hm<900?"早上":hm<1130?"上午":hm<1230?"中午":hm<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"日";case"M":return number+"月";case"w":case"W":return number+"週";default:return number}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",
MM:"%d個月",y:"一年",yy:"%d年"}});moment_with_locales=moment__default;return moment_with_locales.locale("en"),moment_with_locales});var initializing=!1,fnTest=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;Class=function(){},Class.extend=function(prop){var _super=this.prototype;initializing=!0;var name,prototype=new this;for(name in initializing=!1,prop)prototype[name]="function"==typeof prop[name]&&"function"==typeof _super[name]&&fnTest.test(prop[name])?function(name,fn){return function(){var tmp=this._super;this._super=_super[name];var ret=fn.apply(this,arguments);return this._super=tmp,ret}}(name,prop[name]):prop[name];return Class=function(){
!initializing&&this.init&&this.init.apply(this,arguments)},Class.prototype=prototype,Class.constructor=Class,Class.extend=arguments.callee,Class},"undefined"!=typeof exports&&(exports.Class=Class),define("class",function(global){return function(){return global.Class}}(this)),function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("raphael",[],factory):"object"==typeof exports?exports.Raphael=factory():root.Raphael=factory()}(this,function(){return installedModules={},__webpack_require__.m=modules=[function(module,exports,__WEBPACK_AMD_DEFINE_RESULT__){
var __WEBPACK_AMD_DEFINE_RESULT__=[__WEBPACK_AMD_DEFINE_RESULT__(1),__WEBPACK_AMD_DEFINE_RESULT__(3),__WEBPACK_AMD_DEFINE_RESULT__(4)],__WEBPACK_AMD_DEFINE_RESULT__=function(R){return R}.apply(exports,__WEBPACK_AMD_DEFINE_RESULT__);void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,exports,__WEBPACK_AMD_DEFINE_RESULT__){var __WEBPACK_AMD_DEFINE_RESULT__=[__WEBPACK_AMD_DEFINE_RESULT__(2)],__WEBPACK_AMD_DEFINE_RESULT__=function(eve){function R(first){if(R.is(first,"function"))return loaded?first():eve.on("raphael.DOMload",first);if(R.is(first,array))return R._engine.create[apply](R,first.splice(0,3+R.is(
first[0],nu))).add(first);var args=Array.prototype.slice.call(arguments,0);if(R.is(args[args.length-1],"function")){var f=args.pop();return loaded?f.call(R._engine.create[apply](R,args)):eve.on("raphael.DOMload",function(){f.call(R._engine.create[apply](R,args))})}return R._engine.create[apply](R,arguments)}R.version="2.2.0",R.eve=eve;function sortByNumber(a,b){return toFloat(a)-toFloat(b)}function ellipsePath(x,y,rx,ry){return null==ry&&(ry=rx),[["M",x,y],["m",0,-ry],["a",rx,ry,0,1,1,0,2*ry],["a",rx,ry,0,1,1,0,-2*ry],["z"]]}var loaded,separator=/[, ]+/,elements={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},formatrg=/\{(\d+)\}/g,has="hasOwnProperty",g={
doc:document,win:window},oldRaphael={was:Object.prototype[has].call(g.win,"Raphael"),is:g.win.Raphael},ef=function(){this.ca=this.customAttributes={}},apply="apply",concat="concat",supportsTouch="ontouchstart"in g.win||g.win.DocumentTouch&&g.doc instanceof DocumentTouch,E="",S=" ",Str=String,split="split",events="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[split](S),touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},lowerCase=Str.prototype.toLowerCase,math=Math,mmax=math.max,mmin=math.min,abs=math.abs,pow=math.pow,PI=math.PI,nu="number",array="array",
objectToString=Object.prototype.toString,colourRegExp=(R._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),isnan={NaN:1,Infinity:1,"-Infinity":1},bezierrg=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,round=math.round,toFloat=parseFloat,toInt=parseInt,upperCase=Str.prototype.toUpperCase,availableAttrs=R._availableAttrs={"arrow-end":"none","arrow-start":"none",
blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},availableAnimAttrs=R._availableAnimAttrs={blur:nu,"clip-rect":"csv",cx:nu,cy:nu,fill:"colour","fill-opacity":nu,"font-size":nu,
height:nu,opacity:nu,path:"path",r:nu,rx:nu,ry:nu,stroke:"colour","stroke-opacity":nu,"stroke-width":nu,transform:"transform",width:nu,x:nu,y:nu},commaSpaces=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,hsrg={hs:1,rg:1},p2s=/,?([achlmqrstvxz]),?/gi,
pathCommand=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,
tCommand=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,
pathValues=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,eldata=(R._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),
pipe=function(x){return x},rectPath=R._rectPath=function(x,y,w,h,r){return r?[["M",x+r,y],["l",w-2*r,0],["a",r,r,0,0,1,r,r],["l",0,h-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-w,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-h],["a",r,r,0,0,1,r,-r],["z"]]:[["M",x,y],["l",w,0],["l",0,h],["l",-w,0],["z"]]},getPath=R._getPath={path:function(el){return el.attr("path")},circle:function(a){a=a.attrs;return ellipsePath(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return ellipsePath(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return rectPath(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return rectPath(a.x,a.y,a.width,a.height)},text:function(bbox){
bbox=bbox._getBBox();return rectPath(bbox.x,bbox.y,bbox.width,bbox.height)},set:function(bbox){bbox=bbox._getBBox();return rectPath(bbox.x,bbox.y,bbox.width,bbox.height)}},mapPath=R.mapPath=function(path,matrix){if(!matrix)return path;for(var x,y,j,jj,pathi,i=0,ii=(path=path2curve(path)).length;i<ii;i++)for(j=1,jj=(pathi=path[i]).length;j<jj;j+=2)x=matrix.x(pathi[j],pathi[j+1]),y=matrix.y(pathi[j],pathi[j+1]),pathi[j]=x,pathi[j+1]=y;return path};if(R._g=g,R.type=g.win.SVGAngle||g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==R.type){var b,paperproto=g.doc.createElement("div");if(
paperproto.innerHTML='<v:shape adj="1"/>',(b=paperproto.firstChild).style.behavior="url(#default#VML)",!b||"object"!=typeof b.adj)return R.type=E;paperproto=null}function clone(obj){if("function"==typeof obj||Object(obj)!==obj)return obj;var key,res=new obj.constructor;for(key in obj)obj[has](key)&&(res[key]=clone(obj[key]));return res}R.svg=!(R.vml="VML"==R.type),R._Paper=ef,R.fn=paperproto=ef.prototype=R.prototype,R._id=0,R.is=function(o,type){return"finite"==(type=lowerCase.call(type))?!isnan[has](+o):"array"==type?o instanceof Array:"null"==type&&null===o||type==typeof o&&null!==o||"object"==type&&o===Object(o
)||"array"==type&&Array.isArray&&Array.isArray(o)||objectToString.call(o).slice(8,-1).toLowerCase()==type},R.angle=function(x1,y1,x,y,x3,y3){if(null!=x3)return R.angle(x1,y1,x3,y3)-R.angle(x,y,x3,y3);x=x1-x,y=y1-y;return x||y?(180+180*math.atan2(-y,-x)/PI+360)%360:0},R.rad=function(deg){return deg%360*PI/180},R.deg=function(rad){return Math.round(180*rad/PI%360*1e3)/1e3},R.snapTo=function(values,value,tolerance){if(tolerance=R.is(tolerance,"finite")?tolerance:10,R.is(values,array)){for(var i=values.length;i--;)if(abs(values[i]-value)<=tolerance)return values[i]}else{var rem=value%(values=+values);if(rem<tolerance)return value-rem;if(values-tolerance<rem
)return value-rem+values}return value};var uuidRegEx,uuidReplacer;R.createUUID=(uuidRegEx=/[xy]/g,uuidReplacer=function(c){var r=16*math.random()|0;return("x"==c?r:3&r|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(uuidRegEx,uuidReplacer).toUpperCase()});R.setWindow=function(newwin){eve("raphael.setWindow",R,g.win,newwin),g.win=newwin,g.doc=g.win.document,R._engine.initWin&&R._engine.initWin(g.win)};function hsbtoString(){return"hsb("+[this.h,this.s,this.b]+")"}function hsltoString(){return"hsl("+[this.h,this.s,this.l]+")"}function rgbtoString(){return this.hex}function prepareRGB(r,g,b){var clr;return null==g&&R.is(r,
"object")&&"r"in r&&"g"in r&&"b"in r&&(b=r.b,g=r.g,r=r.r),null==g&&R.is(r,"string")&&(r=(clr=R.getRGB(r)).r,g=clr.g,b=clr.b),(1<r||1<g||1<b)&&(r/=255,g/=255,b/=255),[r,g,b]}function packageRGB(r,g,rgb,o){return rgb={r:r*=255,g:g*=255,b:rgb*=255,hex:R.rgb(r,g,rgb),toString:rgbtoString},R.is(o,"finite")&&(rgb.opacity=o),rgb}var toHex=function(color){if(R.vml){var bod,trim=/^\s+|\s+$/g;try{var docum=new ActiveXObject("htmlfile");docum.write("<body>"),docum.close(),bod=docum.body}catch(e){bod=createPopup().document.body}var range=bod.createTextRange();toHex=cacher(function(color){try{bod.style.color=Str(color).replace(trim,E);var value=range.queryCommandValue(
"ForeColor");return"#"+("000000"+(value=(255&value)<<16|65280&value|(16711680&value)>>>16).toString(16)).slice(-6)}catch(e){return"none"}})}else{var i=g.doc.createElement("i");i.title="Raphaël Colour Picker",i.style.display="none",g.doc.body.appendChild(i),toHex=cacher(function(color){return i.style.color=color,g.doc.defaultView.getComputedStyle(i,E).getPropertyValue("color")})}return toHex(color)};function cacher(f,scope,postprocessor){function newf(){var arg=Array.prototype.slice.call(arguments,0),args=arg.join("␀"),cache=newf.cache=newf.cache||{},count=newf.count=newf.count||[];return cache[has](args)?function(array,item){for(var i=0,
ii=array.length;i<ii;i++)if(array[i]===item)return array.push(array.splice(i,1)[0])}(count,args):(1e3<=count.length&&delete cache[count.shift()],count.push(args),cache[args]=f[apply](scope,arg)),postprocessor?postprocessor(cache[args]):cache[args]}return newf}R.color=function(clr){var rgb;return R.is(clr,"object")&&"h"in clr&&"s"in clr&&"b"in clr?(rgb=R.hsb2rgb(clr),clr.r=rgb.r,clr.g=rgb.g,clr.b=rgb.b,clr.hex=rgb.hex):R.is(clr,"object")&&"h"in clr&&"s"in clr&&"l"in clr?(rgb=R.hsl2rgb(clr),clr.r=rgb.r,clr.g=rgb.g,clr.b=rgb.b,clr.hex=rgb.hex):(R.is(clr,"string")&&(clr=R.getRGB(clr)),R.is(clr,"object")&&"r"in clr&&"g"in clr&&"b"in clr?(rgb=R.rgb2hsl(clr),
clr.h=rgb.h,clr.s=rgb.s,clr.l=rgb.l,rgb=R.rgb2hsb(clr),clr.v=rgb.b):(clr={hex:"none"}).r=clr.g=clr.b=clr.h=clr.s=clr.v=clr.l=-1),clr.toString=rgbtoString,clr},R.hsb2rgb=function(h,G,R,o){var B,X,C;return this.is(h,"object")&&"h"in h&&"s"in h&&"b"in h&&(R=h.b,G=h.s,o=h.o,h=h.h),X=(C=R*G)*(1-abs((h=(h*=360)%360/60)%2-1)),R=G=B=R-C,packageRGB(R+=[C,X,0,0,X,C][h=~~h],G+=[X,C,C,X,0,0][h],B+=[0,0,X,C,C,X][h],o)},R.hsl2rgb=function(h,G,R,o){var B,X,C;return this.is(h,"object")&&"h"in h&&"s"in h&&"l"in h&&(R=h.l,G=h.s,h=h.h),(1<h||1<G||1<R)&&(h/=360,G/=100,R/=100),X=(C=2*G*(R<.5?R:1-R))*(1-abs((h=(h*=360)%360/60)%2-1)),R=G=B=R-C/2,packageRGB(R+=[C,X,0,0,X,C][h=~~h],
G+=[X,C,C,X,0,0][h],B+=[0,0,X,C,C,X][h],o)},R.rgb2hsb=function(r,g,b){var V,C;return r=(b=prepareRGB(r,g,b))[0],g=b[1],b=b[2],{h:((0==(C=(V=mmax(r,g,b))-mmin(r,g,b))?null:V==r?(g-b)/C:V==g?(b-r)/C+2:(r-g)/C+4)+360)%6*60/360,s:0==C?0:C/V,b:V,toString:hsbtoString}},R.rgb2hsl=function(r,g,b){var L,M,C;return r=(b=prepareRGB(r,g,b))[0],g=b[1],b=b[2],L=((M=mmax(r,g,b))+(C=mmin(r,g,b)))/2,{h:((0==(C=M-C)?null:M==r?(g-b)/C:M==g?(b-r)/C+2:(r-g)/C+4)+360)%6*60/360,s:0==C?0:L<.5?C/(2*L):C/(2-2*L),l:L,toString:hsltoString}},R._path2string=function(){return this.join(",").replace(p2s,"$1")};R._preload=function(src,f){var img=g.doc.createElement("img")
;img.style.cssText="position:absolute;left:-9999em;top:-9999em",img.onload=function(){f.call(this),this.onload=null,g.doc.body.removeChild(this)},img.onerror=function(){g.doc.body.removeChild(this)},g.doc.body.appendChild(img),img.src=src};function clrToString(){return this.hex}function catmullRom2bezier(crp,z){for(var d=[],i=0,iLen=crp.length;i<iLen-2*!z;i+=2){var p=[{x:+crp[i-2],y:+crp[i-1]},{x:+crp[i],y:+crp[i+1]},{x:+crp[i+2],y:+crp[i+3]},{x:+crp[i+4],y:+crp[i+5]}];z?i?iLen-4==i?p[3]={x:+crp[0],y:+crp[1]}:iLen-2==i&&(p[2]={x:+crp[0],y:+crp[1]},p[3]={x:+crp[2],y:+crp[3]}):p[0]={x:+crp[iLen-2],y:+crp[iLen-1]}:iLen-4==i?p[3]=p[2]:i||(p[0]={x:+crp[i],
y:+crp[i+1]}),d.push(["C",(-p[0].x+6*p[1].x+p[2].x)/6,(-p[0].y+6*p[1].y+p[2].y)/6,(p[1].x+6*p[2].x-p[3].x)/6,(p[1].y+6*p[2].y-p[3].y)/6,p[2].x,p[2].y])}return d}R.getRGB=cacher(function(t){if(!t||(t=Str(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:clrToString};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:clrToString};hsrg[has](t.toLowerCase().substring(0,2))||"#"==t.charAt()||(t=toHex(t));var red,green,blue,opacity,values,rgb=t.match(colourRegExp);return rgb?(rgb[2]&&(blue=toInt(rgb[2].substring(5),16),green=toInt(rgb[2].substring(3,5),16),red=toInt(rgb[2].substring(1,3),16)),rgb[3]&&(blue=toInt((t=rgb[3].charAt(3))+t,16),
green=toInt((t=rgb[3].charAt(2))+t,16),red=toInt((t=rgb[3].charAt(1))+t,16)),rgb[4]&&(values=rgb[4][split](commaSpaces),red=toFloat(values[0]),"%"==values[0].slice(-1)&&(red*=2.55),green=toFloat(values[1]),"%"==values[1].slice(-1)&&(green*=2.55),blue=toFloat(values[2]),"%"==values[2].slice(-1)&&(blue*=2.55),"rgba"==rgb[1].toLowerCase().slice(0,4)&&(opacity=toFloat(values[3])),values[3]&&"%"==values[3].slice(-1)&&(opacity/=100)),rgb[5]?(values=rgb[5][split](commaSpaces),red=toFloat(values[0]),"%"==values[0].slice(-1)&&(red*=2.55),green=toFloat(values[1]),"%"==values[1].slice(-1)&&(green*=2.55),blue=toFloat(values[2]),"%"==values[2].slice(-1)&&(blue*=2.55),
"deg"!=values[0].slice(-3)&&"°"!=values[0].slice(-1)||(red/=360),"hsba"==rgb[1].toLowerCase().slice(0,4)&&(opacity=toFloat(values[3])),values[3]&&"%"==values[3].slice(-1)&&(opacity/=100),R.hsb2rgb(red,green,blue,opacity)):rgb[6]?(values=rgb[6][split](commaSpaces),red=toFloat(values[0]),"%"==values[0].slice(-1)&&(red*=2.55),green=toFloat(values[1]),"%"==values[1].slice(-1)&&(green*=2.55),blue=toFloat(values[2]),"%"==values[2].slice(-1)&&(blue*=2.55),"deg"!=values[0].slice(-3)&&"°"!=values[0].slice(-1)||(red/=360),"hsla"==rgb[1].toLowerCase().slice(0,4)&&(opacity=toFloat(values[3])),values[3]&&"%"==values[3].slice(-1)&&(opacity/=100),R.hsl2rgb(red,green,blue,
opacity)):((rgb={r:red,g:green,b:blue,toString:clrToString}).hex="#"+(16777216|blue|green<<8|red<<16).toString(16).slice(1),R.is(opacity,"finite")&&(rgb.opacity=opacity),rgb)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:clrToString}},R),R.hsb=cacher(function(h,s,b){return R.hsb2rgb(h,s,b).hex}),R.hsl=cacher(function(h,s,l){return R.hsl2rgb(h,s,l).hex}),R.rgb=cacher(function(r,g,b){return"#"+(b+.5|16777216|(g+.5|0)<<8|(r+.5|0)<<16).toString(16).slice(1)}),R.getColor=function(rgb){var start=this.getColor.start=this.getColor.start||{h:0,s:1,b:rgb||.75},rgb=this.hsb2rgb(start.h,start.s,start.b);return start.h+=.075,1<start.h&&(start.h=0,start.s-=.2,start.s<=0&&(
this.getColor.start={h:0,s:1,b:start.b})),rgb.hex},R.getColor.reset=function(){delete this.start},R.parsePathString=function(pathString){if(!pathString)return null;var pth=paths(pathString);if(pth.arr)return pathClone(pth.arr);var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},data=[];return R.is(pathString,array)&&R.is(pathString[0],array)&&(data=pathClone(pathString)),data.length||Str(pathString).replace(pathCommand,function(a,b,c){var params=[],name=b.toLowerCase();if(c.replace(pathValues,function(a,b){b&&params.push(+b)}),"m"==name&&2<params.length&&(data.push([b][concat](params.splice(0,2))),name="l",b="m"==b?"l":"L"),"r"==name)data.push([b
][concat](params));else for(;params.length>=paramCounts[name]&&(data.push([b][concat](params.splice(0,paramCounts[name]))),paramCounts[name]););}),data.toString=R._path2string,pth.arr=pathClone(data),data},R.parseTransformString=cacher(function(TString){if(!TString)return null;var data=[];return R.is(TString,array)&&R.is(TString[0],array)&&(data=pathClone(TString)),data.length||Str(TString).replace(tCommand,function(a,b,c){var params=[];lowerCase.call(b);c.replace(pathValues,function(a,b){b&&params.push(+b)}),data.push([b][concat](params))}),data.toString=R._path2string,data});var paths=function(ps){var p=paths.ps=paths.ps||{}
;return p[ps]?p[ps].sleep=100:p[ps]={sleep:100},setTimeout(function(){for(var key in p)p[has](key)&&key!=ps&&(p[key].sleep--,p[key].sleep||delete p[key])}),p[ps]};function base3(t,p1,p2,p3,p4){return t*(t*(-3*p1+9*p2-9*p3+3*p4)+6*p1-12*p2+6*p3)-3*p1+3*p2}function bezlen(x1,y1,x2,y2,x3,y3,x4,y4,z){null==z&&(z=1);for(var z2=(z=1<z?1:z<0?0:z)/2,Tvalues=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Cvalues=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],sum=0,i=0;i<12;i++){var comb=z2*Tvalues[i]+z2,xbase=base3(comb,x1,x2,x3,x4),comb=base3(comb,y1,y2,y3,y4),comb=xbase*xbase+comb*comb
;sum+=Cvalues[i]*math.sqrt(comb)}return z2*sum}function interHelper(bez1,bez2,justCount){var l1=R.bezierBBox(bez1),l2=R.bezierBBox(bez2);if(!R.isBBoxIntersect(l1,l2))return justCount?0:[];for(var l1=bezlen.apply(0,bez1),l2=bezlen.apply(0,bez2),n1=mmax(~~(l1/5),1),n2=mmax(~~(l2/5),1),dots1=[],dots2=[],xy={},res=justCount?0:[],i=0;i<n1+1;i++){var p=R.findDotsAtSegment.apply(R,bez1.concat(i/n1));dots1.push({x:p.x,y:p.y,t:i/n1})}for(i=0;i<n2+1;i++)p=R.findDotsAtSegment.apply(R,bez2.concat(i/n2)),dots2.push({x:p.x,y:p.y,t:i/n2});for(i=0;i<n1;i++)for(var j=0;j<n2;j++){var t1=dots1[i],di1=dots1[i+1],t2=dots2[j],dj1=dots2[j+1],ci=abs(di1.x-t1.x)<.001?"y":"x",cj=abs(
dj1.x-t2.x)<.001?"y":"x",is=function(x1,y1,x2,y2,x3,y3,x4,y4){if(!(mmax(x1,x2)<mmin(x3,x4)||mmin(x1,x2)>mmax(x3,x4)||mmax(y1,y2)<mmin(y3,y4)||mmin(y1,y2)>mmax(y3,y4))){var py2=(x1-x2)*(y3-y4)-(y1-y2)*(x3-x4);if(py2){var px=((x1*y2-y1*x2)*(x3-x4)-(x1-x2)*(x3*y4-y3*x4))/py2,py=((x1*y2-y1*x2)*(y3-y4)-(y1-y2)*(x3*y4-y3*x4))/py2,px2=+px.toFixed(2),py2=+py.toFixed(2);if(!(px2<+mmin(x1,x2).toFixed(2)||px2>+mmax(x1,x2).toFixed(2)||px2<+mmin(x3,x4).toFixed(2)||px2>+mmax(x3,x4).toFixed(2)||py2<+mmin(y1,y2).toFixed(2)||py2>+mmax(y1,y2).toFixed(2)||py2<+mmin(y3,y4).toFixed(2)||py2>+mmax(y3,y4).toFixed(2)))return{x:px,y:py}}}}(t1.x,t1.y,di1.x,di1.y,t2.x,t2.y,dj1.x,dj1.y)
;is&&xy[is.x.toFixed(4)]!=is.y.toFixed(4)&&(xy[is.x.toFixed(4)]=is.y.toFixed(4),t1=t1.t+abs((is[ci]-t1[ci])/(di1[ci]-t1[ci]))*(di1.t-t1.t),t2=t2.t+abs((is[cj]-t2[cj])/(dj1[cj]-t2[cj]))*(dj1.t-t2.t),0<=t1&&t1<=1.001&&0<=t2&&t2<=1.001&&(justCount?res++:res.push({x:is.x,y:is.y,t1:mmin(t1,1),t2:mmin(t2,1)})))}return res}function interPathHelper(path1,path2,justCount){path1=R._path2curve(path1),path2=R._path2curve(path2);for(var x1,y1,x2,y2,x1m,y1m,x2m,y2m,bez1,bez2,res=justCount?0:[],i=0,ii=path1.length;i<ii;i++){var pi=path1[i];if("M"==pi[0])x1=x1m=pi[1],y1=y1m=pi[2];else{y1="C"==pi[0]?(x1=(bez1=[x1,y1].concat(pi.slice(1)))[6],bez1[7]):(bez1=[x1,y1,x1,y1,x1m,
y1m,x1m,y1m],x1=x1m,y1m);for(var j=0,jj=path2.length;j<jj;j++){var pj=path2[j];if("M"==pj[0])x2=x2m=pj[1],y2=y2m=pj[2];else{y2="C"==pj[0]?(x2=(bez2=[x2,y2].concat(pj.slice(1)))[6],bez2[7]):(bez2=[x2,y2,x2,y2,x2m,y2m,x2m,y2m],x2=x2m,y2m);var intr=interHelper(bez1,bez2,justCount);if(justCount)res+=intr;else{for(var k=0,kk=intr.length;k<kk;k++)intr[k].segment1=i,intr[k].segment2=j,intr[k].bez1=bez1,intr[k].bez2=bez2;res=res.concat(intr)}}}}}return res}R.findDotsAtSegment=function(p1x,p1y,ax,ay,c2x,c2y,cx,alpha,cy){var t1=1-cy,mx=pow(t1,3),my=pow(t1,2),ny=cy*cy,nx=ny*cy,x=mx*p1x+3*my*cy*ax+3*t1*cy*cy*c2x+nx*cx,y=mx*p1y+3*my*cy*ay+3*t1*cy*cy*c2y+nx*alpha,
mx=p1x+2*cy*(ax-p1x)+ny*(c2x-2*ax+p1x),my=p1y+2*cy*(ay-p1y)+ny*(c2y-2*ay+p1y),nx=ax+2*cy*(c2x-ax)+ny*(cx-2*c2x+ax),ny=ay+2*cy*(c2y-ay)+ny*(alpha-2*c2y+ay),ax=t1*p1x+cy*ax,ay=t1*p1y+cy*ay,cx=t1*c2x+cy*cx,cy=t1*c2y+cy*alpha,alpha=90-180*math.atan2(mx-nx,my-ny)/PI;return(nx<mx||my<ny)&&(alpha+=180),{x:x,y:y,m:{x:mx,y:my},n:{x:nx,y:ny},start:{x:ax,y:ay},end:{x:cx,y:cy},alpha:alpha}},R.bezierBBox=function(bbox,p1y,c1x,c1y,c2x,c2y,p2x,p2y){R.is(bbox,"array")||(bbox=[bbox,p1y,c1x,c1y,c2x,c2y,p2x,p2y]);bbox=curveDim.apply(null,bbox);return{x:bbox.min.x,y:bbox.min.y,x2:bbox.max.x,y2:bbox.max.y,width:bbox.max.x-bbox.min.x,height:bbox.max.y-bbox.min.y}},
R.isPointInsideBBox=function(bbox,x,y){return x>=bbox.x&&x<=bbox.x2&&y>=bbox.y&&y<=bbox.y2},R.isBBoxIntersect=function(bbox1,bbox2){var i=R.isPointInsideBBox;return i(bbox2,bbox1.x,bbox1.y)||i(bbox2,bbox1.x2,bbox1.y)||i(bbox2,bbox1.x,bbox1.y2)||i(bbox2,bbox1.x2,bbox1.y2)||i(bbox1,bbox2.x,bbox2.y)||i(bbox1,bbox2.x2,bbox2.y)||i(bbox1,bbox2.x,bbox2.y2)||i(bbox1,bbox2.x2,bbox2.y2)||(bbox1.x<bbox2.x2&&bbox1.x>bbox2.x||bbox2.x<bbox1.x2&&bbox2.x>bbox1.x)&&(bbox1.y<bbox2.y2&&bbox1.y>bbox2.y||bbox2.y<bbox1.y2&&bbox2.y>bbox1.y)},R.pathIntersection=function(path1,path2){return interPathHelper(path1,path2)},R.pathIntersectionNumber=function(path1,path2){
return interPathHelper(path1,path2,1)},R.isPointInsidePath=function(path,x,y){var bbox=R.pathBBox(path);return R.isPointInsideBBox(bbox,x,y)&&interPathHelper(path,[["M",x,y],["H",bbox.x2+10]],1)%2==1},R._removedFactory=function(methodname){return function(){eve("raphael.log",null,"Raphaël: you are calling to method “"+methodname+"” of removed object",methodname)}};function l2c(x1,y1,x2,y2){return[x1,y1,x2,y2,x2,y2]}function q2c(x1,y1,ax,ay,x2,y2){return[1/3*x1+2/3*ax,1/3*y1+2/3*ay,1/3*x2+2/3*ax,1/3*y2+2/3*ay,x2,y2]}function findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t){var t1=1-t;return{x:pow(t1,3)*p1x+3*pow(t1,2)*t*c1x+3*t1*t*t*c2x+pow(t,3)*p2x,y:pow(
t1,3)*p1y+3*pow(t1,2)*t*c1y+3*t1*t*t*c2y+pow(t,3)*p2y}}function getEmpty(item){var l=item[0];switch(l.toLowerCase()){case"t":return[l,0,0];case"m":return[l,1,0,0,1,0,0];case"r":return 4==item.length?[l,0,item[2],item[3]]:[l,0];case"s":return 5==item.length?[l,1,1,item[3],item[4]]:3==item.length?[l,1,1]:[l,1]}}var pathDimensions=R.pathBBox=function(path){var pth=paths(path);if(pth.bbox)return clone(pth.bbox);if(!path)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var dim,p,x=0,y=0,X=[],Y=[],i=0,ii=(path=path2curve(path)).length;i<ii;i++){"M"==(p=path[i])[0]?(x=p[1],y=p[2],X.push(x),Y.push(y)):(dim=curveDim(x,y,p[1],p[2],p[3],p[4],p[5],p[6]),X=X[concat](
dim.min.x,dim.max.x),Y=Y[concat](dim.min.y,dim.max.y),x=p[5],y=p[6])}var xmin=mmin[apply](0,X),ymin=mmin[apply](0,Y),xmax=mmax[apply](0,X),ymax=mmax[apply](0,Y),width=xmax-xmin,bb=ymax-ymin,bb={x:xmin,y:ymin,x2:xmax,y2:ymax,width:width,height:bb,cx:xmin+width/2,cy:ymin+bb/2};return pth.bbox=clone(bb),bb},pathClone=function(res){res=clone(res);return res.toString=R._path2string,res},ef=R._pathToRelative=function(pathArray){var pth=paths(pathArray);if(pth.rel)return pathClone(pth.rel);R.is(pathArray,array)&&R.is(pathArray&&pathArray[0],array)||(pathArray=R.parsePathString(pathArray));var res=[],x=0,y=0,mx=0,my=0,start=0;"M"==pathArray[0][0]&&(
mx=x=pathArray[0][1],my=y=pathArray[0][2],start++,res.push(["M",x,y]));for(var i=start,ii=pathArray.length;i<ii;i++){var r=res[i]=[],pa=pathArray[i];if(pa[0]!=lowerCase.call(pa[0]))switch(r[0]=lowerCase.call(pa[0]),r[0]){case"a":r[1]=pa[1],r[2]=pa[2],r[3]=pa[3],r[4]=pa[4],r[5]=pa[5],r[6]=+(pa[6]-x).toFixed(3),r[7]=+(pa[7]-y).toFixed(3);break;case"v":r[1]=+(pa[1]-y).toFixed(3);break;case"m":mx=pa[1],my=pa[2];default:for(var j=1,jj=pa.length;j<jj;j++)r[j]=+(pa[j]-(j%2?x:y)).toFixed(3)}else{r=res[i]=[],"m"==pa[0]&&(mx=pa[1]+x,my=pa[2]+y);for(var k=0,kk=pa.length;k<kk;k++)res[i][k]=pa[k]}var len=res[i].length;switch(res[i][0]){case"z":x=mx,y=my;break;case"h":
x+=+res[i][len-1];break;case"v":y+=+res[i][len-1];break;default:x+=+res[i][len-2],y+=+res[i][len-1]}}return res.toString=R._path2string,pth.rel=pathClone(res),res},pathToAbsolute=R._pathToAbsolute=function(pathArray){var pth=paths(pathArray);if(pth.abs)return pathClone(pth.abs);if(R.is(pathArray,array)&&R.is(pathArray&&pathArray[0],array)||(pathArray=R.parsePathString(pathArray)),!pathArray||!pathArray.length)return[["M",0,0]];var res=[],x=0,y=0,mx=0,my=0,start=0;"M"==pathArray[0][0]&&(mx=x=+pathArray[0][1],my=y=+pathArray[0][2],start++,res[0]=["M",x,y]);for(var r,pa,crz=3==pathArray.length&&"M"==pathArray[0][0]&&"R"==pathArray[1][0].toUpperCase(
)&&"Z"==pathArray[2][0].toUpperCase(),i=start,ii=pathArray.length;i<ii;i++){if(res.push(r=[]),(pa=pathArray[i])[0]!=upperCase.call(pa[0]))switch(r[0]=upperCase.call(pa[0]),r[0]){case"A":r[1]=pa[1],r[2]=pa[2],r[3]=pa[3],r[4]=pa[4],r[5]=pa[5],r[6]=+(pa[6]+x),r[7]=+(pa[7]+y);break;case"V":r[1]=+pa[1]+y;break;case"H":r[1]=+pa[1]+x;break;case"R":for(var dots=[x,y][concat](pa.slice(1)),j=2,jj=dots.length;j<jj;j++)dots[j]=+dots[j]+x,dots[++j]=+dots[j]+y;res.pop(),res=res[concat](catmullRom2bezier(dots,crz));break;case"M":mx=+pa[1]+x,my=+pa[2]+y;default:for(j=1,jj=pa.length;j<jj;j++)r[j]=+pa[j]+(j%2?x:y)}else if("R"==pa[0])dots=[x,y][concat](pa.slice(1)),res.pop(),
res=res[concat](catmullRom2bezier(dots,crz)),r=["R"][concat](pa.slice(-2));else for(var k=0,kk=pa.length;k<kk;k++)r[k]=pa[k];switch(r[0]){case"Z":x=mx,y=my;break;case"H":x=r[1];break;case"V":y=r[1];break;case"M":mx=r[r.length-2],my=r[r.length-1];default:x=r[r.length-2],y=r[r.length-1]}}return res.toString=R._path2string,pth.abs=pathClone(res),res},a2c=function(x1,y1,hx,hy,angle,large_arc_flag,sweep_flag,x2,m4,recursive){var _120=120*PI/180,rad=PI/180*(+angle||0),res=[],rotate=cacher(function(x,y,rad){return{x:x*math.cos(rad)-y*math.sin(rad),y:x*math.sin(rad)+y*math.cos(rad)}});recursive?(m3=recursive[0],s2=recursive[1],m2=recursive[2],s1=recursive[3]):(x1=(
x2old=rotate(x1,y1,-rad)).x,y1=x2old.y,x2=(x2old=rotate(x2,m4,-rad)).x,m4=x2old.y,math.cos(PI/180*angle),math.sin(PI/180*angle),1<(m1=(y2old=(x1-x2)/2)*y2old/(hx*hx)+(f2old=(y1-m4)/2)*f2old/(hy*hy))&&(hx*=m1=math.sqrt(m1),hy*=m1),x2old=hx*hx,m1=hy*hy,m2=(x2old=(large_arc_flag==sweep_flag?-1:1)*math.sqrt(abs((x2old*m1-x2old*f2old*f2old-m1*y2old*y2old)/(x2old*f2old*f2old+m1*y2old*y2old))))*hx*f2old/hy+(x1+x2)/2,s1=x2old*-hy*y2old/hx+(y1+m4)/2,m3=math.asin(((y1-s1)/hy).toFixed(9)),s2=math.asin(((m4-s1)/hy).toFixed(9)),(m3=x1<m2?PI-m3:m3)<0&&(m3=2*PI+m3),(s2=x2<m2?PI-s2:s2)<0&&(s2=2*PI+s2),sweep_flag&&s2<m3&&(m3-=2*PI),!sweep_flag&&m3<s2&&(s2-=2*PI));var f2old,
x2old,y2old,m1=s2-m3;abs(m1)>_120&&(f2old=s2,x2old=x2,y2old=m4,s2=m3+_120*(sweep_flag&&m3<s2?1:-1),x2=m2+hx*math.cos(s2),m4=s1+hy*math.sin(s2),res=a2c(x2,m4,hx,hy,angle,0,sweep_flag,x2old,y2old,[s2,f2old,m2,s1])),m1=s2-m3;var m2=math.cos(m3),s1=math.sin(m3),m3=math.cos(s2),s2=math.sin(s2),m1=math.tan(m1/4),hx=4/3*hx*m1,hy=4/3*hy*m1,m1=[x1,y1],m2=[x1+hx*s1,y1-hy*m2],m3=[x2+hx*s2,m4-hy*m3],m4=[x2,m4];if(m2[0]=2*m1[0]-m2[0],m2[1]=2*m1[1]-m2[1],recursive)return[m2,m3,m4][concat](res);for(var newres=[],i=0,ii=(res=[m2,m3,m4][concat](res).join()[split](",")).length;i<ii;i++)newres[i]=i%2?rotate(res[i-1],res[i],rad).y:rotate(res[i],res[i+1],rad).x;return newres},
curveDim=cacher(function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y){var dot,a=c2x-2*c1x+p1x-(p2x-2*c2x+c1x),b=2*(c1x-p1x)-2*(c2x-c1x),c=p1x-c1x,t1=(-b+math.sqrt(b*b-4*a*c))/2/a,t2=(-b-math.sqrt(b*b-4*a*c))/2/a,y=[p1y,p2y],x=[p1x,p2x];return"1e12"<abs(t1)&&(t1=.5),"1e12"<abs(t2)&&(t2=.5),0<t1&&t1<1&&(dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1),x.push(dot.x),y.push(dot.y)),0<t2&&t2<1&&(dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2),x.push(dot.x),y.push(dot.y)),a=c2y-2*c1y+p1y-(p2y-2*c2y+c1y),c=p1y-c1y,t1=(-(b=2*(c1y-p1y)-2*(c2y-c1y))+math.sqrt(b*b-4*a*c))/2/a,t2=(-b-math.sqrt(b*b-4*a*c))/2/a,"1e12"<abs(t1)&&(t1=.5),"1e12"<abs(t2)&&(t2=.5),
0<t1&&t1<1&&(dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1),x.push(dot.x),y.push(dot.y)),0<t2&&t2<1&&(dot=findDotAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2),x.push(dot.x),y.push(dot.y)),{min:{x:mmin[apply](0,x),y:mmin[apply](0,y)},max:{x:mmax[apply](0,x),y:mmax[apply](0,y)}}}),path2curve=R._path2curve=cacher(function(path,path2){var pth=!path2&&paths(path);if(!path2&&pth.curve)return pathClone(pth.curve);function processPath(path,d,pcom){var nx,ny;if(!path)return["C",d.x,d.y,d.x,d.y,d.x,d.y];switch(path[0]in{T:1,Q:1}||(d.qx=d.qy=null),path[0]){case"M":d.X=path[1],d.Y=path[2];break;case"A":path=["C"][concat](a2c[apply](0,[d.x,d.y][concat](
path.slice(1))));break;case"S":ny="C"==pcom||"S"==pcom?(nx=2*d.x-d.bx,2*d.y-d.by):(nx=d.x,d.y),path=["C",nx,ny][concat](path.slice(1));break;case"T":"Q"==pcom||"T"==pcom?(d.qx=2*d.x-d.qx,d.qy=2*d.y-d.qy):(d.qx=d.x,d.qy=d.y),path=["C"][concat](q2c(d.x,d.y,d.qx,d.qy,path[1],path[2]));break;case"Q":d.qx=path[1],d.qy=path[2],path=["C"][concat](q2c(d.x,d.y,path[1],path[2],path[3],path[4]));break;case"L":path=["C"][concat](l2c(d.x,d.y,path[1],path[2]));break;case"H":path=["C"][concat](l2c(d.x,d.y,path[1],d.y));break;case"V":path=["C"][concat](l2c(d.x,d.y,d.x,path[1]));break;case"Z":path=["C"][concat](l2c(d.x,d.y,d.X,d.Y))}return path}function fixArc(pp,i){if(
7<pp[i].length){pp[i].shift();for(var pi=pp[i];pi.length;)pcoms1[i]="A",p2&&(pcoms2[i]="A"),pp.splice(i++,0,["C"][concat](pi.splice(0,6)));pp.splice(i,1),ii=mmax(p.length,p2&&p2.length||0)}}function fixM(path1,path2,a1,a2,i){path1&&path2&&"M"==path1[i][0]&&"M"!=path2[i][0]&&(path2.splice(i,0,["M",a2.x,a2.y]),a1.bx=0,a1.by=0,a1.x=path1[i][1],a1.y=path1[i][2],ii=mmax(p.length,p2&&p2.length||0))}for(var p=pathToAbsolute(path),p2=path2&&pathToAbsolute(path2),attrs={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},attrs2={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},pcoms1=[],pcoms2=[],pfirst="",pcom="",i=0,ii=mmax(p.length,p2&&p2.length||0);i<ii;i++){p[i]&&(
pfirst=p[i][0]),"C"!=pfirst&&(pcoms1[i]=pfirst,i&&(pcom=pcoms1[i-1])),p[i]=processPath(p[i],attrs,pcom),"A"!=pcoms1[i]&&"C"==pfirst&&(pcoms1[i]="C"),fixArc(p,i),p2&&(p2[i]&&(pfirst=p2[i][0]),"C"!=pfirst&&(pcoms2[i]=pfirst,i&&(pcom=pcoms2[i-1])),p2[i]=processPath(p2[i],attrs2,pcom),"A"!=pcoms2[i]&&"C"==pfirst&&(pcoms2[i]="C"),fixArc(p2,i)),fixM(p,p2,attrs,attrs2,i),fixM(p2,p,attrs2,attrs,i);var seg=p[i],seg2=p2&&p2[i],seglen=seg.length,seg2len=p2&&seg2.length;attrs.x=seg[seglen-2],attrs.y=seg[seglen-1],attrs.bx=toFloat(seg[seglen-4])||attrs.x,attrs.by=toFloat(seg[seglen-3])||attrs.y,attrs2.bx=p2&&(toFloat(seg2[seg2len-4])||attrs2.x),attrs2.by=p2&&(toFloat(
seg2[seg2len-3])||attrs2.y),attrs2.x=p2&&seg2[seg2len-2],attrs2.y=p2&&seg2[seg2len-1]}return p2||(pth.curve=pathClone(p)),p2?[p,p2]:p},null,pathClone),tear=(R._parseDots=cacher(function(gradient){for(var dots=[],i=0,ii=gradient.length;i<ii;i++){var dot={},par=gradient[i].match(/^([^:]*):?([\d\.]*)/);if(dot.color=R.getRGB(par[1]),dot.color.error)return null;dot.opacity=dot.color.opacity,dot.color=dot.color.hex,par[2]&&(dot.offset=par[2]+"%"),dots.push(dot)}for(i=1,ii=dots.length-1;i<ii;i++)if(!dots[i].offset){for(var start=toFloat(dots[i-1].offset||0),end=0,j=i+1;j<ii;j++)if(dots[j].offset){end=dots[j].offset;break}end||(end=100,j=ii);for(var d=((end=toFloat(
end))-start)/(j-i+1);i<j;i++)start+=d,dots[i].offset=start+"%"}return dots}),R._tear=function(el,paper){el==paper.top&&(paper.top=el.prev),el==paper.bottom&&(paper.bottom=el.next),el.next&&(el.next.prev=el.prev),el.prev&&(el.prev.next=el.next)}),toMatrix=(R._tofront=function(el,paper){paper.top!==el&&(tear(el,paper),el.next=null,el.prev=paper.top,paper.top.next=el,paper.top=el)},R._toback=function(el,paper){paper.bottom!==el&&(tear(el,paper),el.next=paper.bottom,el.prev=null,paper.bottom.prev=el,paper.bottom=el)},R._insertafter=function(el,el2,paper){tear(el,paper),el2==paper.top&&(paper.top=el),el2.next&&(el2.next.prev=el),el.next=el2.next,(el.prev=el2
).next=el},R._insertbefore=function(el,el2,paper){tear(el,paper),el2==paper.bottom&&(paper.bottom=el),el2.prev&&(el2.prev.next=el),el.prev=el2.prev,(el2.prev=el).next=el2},R.toMatrix=function(el,transform){var bb=pathDimensions(el),el={_:{transform:E},getBBox:function(){return bb}};return extractTransform(el,transform),el.matrix}),extractTransform=(R.transformPath=function(path,transform){return mapPath(path,toMatrix(path,transform))},R._extractTransform=function(el,dy){if(null==dy)return el._.transform;dy=Str(dy).replace(/\.{3}|\u2026/g,el._.transform||E);var dx,tdata=R.parseTransformString(dy),deg=0,dy=0,sx=1,sy=1,_=el._,m=new Matrix;if(
_.transform=tdata||[],tdata)for(var i=0,ii=tdata.length;i<ii;i++){var x1,y1,x2,y2,bb,t=tdata[i],tlen=t.length,command=Str(t[0]).toLowerCase(),absolute=t[0]!=command,inver=absolute?m.invert():0;"t"==command&&3==tlen?absolute?(x1=inver.x(0,0),y1=inver.y(0,0),x2=inver.x(t[1],t[2]),y2=inver.y(t[1],t[2]),m.translate(x2-x1,y2-y1)):m.translate(t[1],t[2]):"r"==command?2==tlen?(bb=bb||el.getBBox(1),m.rotate(t[1],bb.x+bb.width/2,bb.y+bb.height/2),deg+=t[1]):4==tlen&&(absolute?(x2=inver.x(t[2],t[3]),y2=inver.y(t[2],t[3]),m.rotate(t[1],x2,y2)):m.rotate(t[1],t[2],t[3]),deg+=t[1]):"s"==command?2==tlen||3==tlen?(bb=bb||el.getBBox(1),m.scale(t[1],t[tlen-1],bb.x+bb.width/2,
bb.y+bb.height/2),sx*=t[1],sy*=t[tlen-1]):5==tlen&&(absolute?(x2=inver.x(t[3],t[4]),y2=inver.y(t[3],t[4]),m.scale(t[1],t[2],x2,y2)):m.scale(t[1],t[2],t[3],t[4]),sx*=t[1],sy*=t[2]):"m"==command&&7==tlen&&m.add(t[1],t[2],t[3],t[4],t[5],t[6]),_.dirtyT=1,el.matrix=m}el.matrix=m,_.sx=sx,_.sy=sy,_.deg=deg,_.dx=dx=m.e,_.dy=dy=m.f,1==sx&&1==sy&&!deg&&_.bbox?(_.bbox.x+=+dx,_.bbox.y+=+dy):_.dirtyT=1}),equaliseTransform=R._equaliseTransform=function(t1,t2){t2=Str(t2).replace(/\.{3}|\u2026/g,t1),t1=R.parseTransformString(t1)||[],t2=R.parseTransformString(t2)||[];for(var j,jj,tt1,tt2,maxlength=mmax(t1.length,t2.length),from=[],to=[],i=0;i<maxlength;i++){if(
tt1=t1[i]||getEmpty(t2[i]),tt2=t2[i]||getEmpty(tt1),tt1[0]!=tt2[0]||"r"==tt1[0].toLowerCase()&&(tt1[2]!=tt2[2]||tt1[3]!=tt2[3])||"s"==tt1[0].toLowerCase()&&(tt1[3]!=tt2[3]||tt1[4]!=tt2[4]))return;for(from[i]=[],to[i]=[],j=0,jj=mmax(tt1.length,tt2.length);j<jj;j++)j in tt1&&(from[i][j]=tt1[j]),j in tt2&&(to[i][j]=tt2[j])}return{from:from,to:to}};function Matrix(a,b,c,d,e,f){null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function norm(a){return a[0]*a[0]+a[1]*a[1]}function normalize(a){var mag=math.sqrt(norm(a));a[0]&&(a[0]/=mag),a[1]&&(a[1]/=mag)}R._getContainer=function(x,y,w,h){
var container=null!=h||R.is(x,"object")?x:g.doc.getElementById(x);if(null!=container)return container.tagName?null==y?{container:container,width:container.style.pixelWidth||container.offsetWidth,height:container.style.pixelHeight||container.offsetHeight}:{container:container,width:y,height:w}:{container:1,x:x,y:y,width:w,height:h}},R.pathToRelative=ef,R._engine={},R.path2curve=path2curve,R.matrix=function(a,b,c,d,e,f){return new Matrix(a,b,c,d,e,f)},(ef=Matrix.prototype).add=function(a,b,c,d,e,f){var x,y,z,res,out=[[],[],[]],m=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],matrix=[[a,c,e],[b,d,f],[0,0,1]];for(a&&a instanceof Matrix&&(matrix=[[a.a,
a.c,a.e],[a.b,a.d,a.f],[0,0,1]]),x=0;x<3;x++)for(y=0;y<3;y++){for(z=res=0;z<3;z++)res+=m[x][z]*matrix[z][y];out[x][y]=res}this.a=out[0][0],this.b=out[1][0],this.c=out[0][1],this.d=out[1][1],this.e=out[0][2],this.f=out[1][2]},ef.invert=function(){var me=this,x=me.a*me.d-me.b*me.c;return new Matrix(me.d/x,-me.b/x,-me.c/x,me.a/x,(me.c*me.f-me.d*me.e)/x,(me.b*me.e-me.a*me.f)/x)},ef.clone=function(){return new Matrix(this.a,this.b,this.c,this.d,this.e,this.f)},ef.translate=function(x,y){this.add(1,0,0,1,x,y)},ef.scale=function(x,y,cx,cy){null==y&&(y=x),(cx||cy)&&this.add(1,0,0,1,cx,cy),this.add(x,0,0,y,0,0),(cx||cy)&&this.add(1,0,0,1,-cx,-cy)},ef.rotate=function(
sin,x,y){sin=R.rad(sin),x=x||0,y=y||0;var cos=+math.cos(sin).toFixed(9),sin=+math.sin(sin).toFixed(9);this.add(cos,sin,-sin,cos,x,y),this.add(1,0,0,1,-x,-y)},ef.x=function(x,y){return x*this.a+y*this.c+this.e},ef.y=function(x,y){return x*this.b+y*this.d+this.f},ef.get=function(i){return+this[Str.fromCharCode(97+i)].toFixed(4)},ef.toString=function(){return R.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},ef.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1
)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},ef.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},ef.split=function(){var out={};out.dx=this.e,out.dy=this.f;var cos=[[this.a,this.c],[this.b,this.d]];out.scalex=math.sqrt(norm(cos[0])),normalize(cos[0]),out.shear=cos[0][0]*cos[1][0]+cos[0][1]*cos[1][1],cos[1]=[cos[1][0]-cos[0][0]*out.shear,cos[1][1]-cos[0][1]*out.shear],out.scaley=math.sqrt(norm(cos[1])),normalize(cos[1]),out.shear/=out.scaley;var sin=-cos[0][1],cos=cos[1][1];return cos<0?(out.rotate=R.deg(math.acos(cos)),sin<0&&(out.rotate=360-out.rotate)):out.rotate=R.deg(math.asin(sin)),
out.isSimple=!(+out.shear.toFixed(9)||out.scalex.toFixed(9)!=out.scaley.toFixed(9)&&out.rotate),out.isSuperSimple=!+out.shear.toFixed(9)&&out.scalex.toFixed(9)==out.scaley.toFixed(9)&&!out.rotate,out.noRotation=!+out.shear.toFixed(9)&&!out.rotate,out},ef.toTransformString=function(s){s=s||this[split]();return s.isSimple?(s.scalex=+s.scalex.toFixed(4),s.scaley=+s.scaley.toFixed(4),s.rotate=+s.rotate.toFixed(4),(s.dx||s.dy?"t"+[s.dx,s.dy]:E)+(1!=s.scalex||1!=s.scaley?"s"+[s.scalex,s.scaley,0,0]:E)+(s.rotate?"r"+[s.rotate,0,0]:E)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]};function preventDefault(){this.returnValue=!1}
function preventTouch(){return this.originalEvent.preventDefault()}function stopPropagation(){this.cancelBubble=!0}function stopTouch(){return this.originalEvent.stopPropagation()}function getEventPosition(e){var scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:e.clientX+scrollX,y:e.clientY+scrollY}}function dragMove(e){for(var dragi,x=e.clientX,y=e.clientY,scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,j=drag.length;j--;){if(dragi=drag[j],supportsTouch&&e.touches){for(var touch,
i=e.touches.length;i--;)if((touch=e.touches[i]).identifier==dragi.el._drag.id){x=touch.clientX,y=touch.clientY,(e.originalEvent||e).preventDefault();break}}else e.preventDefault();var o,node=dragi.el.node,next=node.nextSibling,parent=node.parentNode,display=node.style.display;g.win.opera&&parent.removeChild(node),node.style.display="none",o=dragi.el.paper.getElementByPoint(x,y),node.style.display=display,g.win.opera&&(next?parent.insertBefore(node,next):parent.appendChild(node)),o&&eve("raphael.drag.over."+dragi.el.id,dragi.el,o),x+=scrollX,y+=scrollY,eve("raphael.drag.move."+dragi.el.id,dragi.move_scope||dragi.el,x-dragi.el._drag.x,y-dragi.el._drag.y,x,y,e)
}}for(var addEvent=g.doc.addEventListener?function(obj,type,fn,element){function f(e){var pos=getEventPosition(e);return fn.call(element,e,pos.x,pos.y)}var _f;return obj.addEventListener(type,f,!1),supportsTouch&&touchMap[type]&&(_f=function(e){for(var pos=getEventPosition(e),olde=e,i=0,ii=e.targetTouches&&e.targetTouches.length;i<ii;i++)if(e.targetTouches[i].target==obj){(e=e.targetTouches[i]).originalEvent=olde,e.preventDefault=preventTouch,e.stopPropagation=stopTouch;break}return fn.call(element,e,pos.x,pos.y)},obj.addEventListener(touchMap[type],_f,!1)),function(){return obj.removeEventListener(type,f,!1),
supportsTouch&&touchMap[type]&&obj.removeEventListener(touchMap[type],_f,!1),!0}}:g.doc.attachEvent?function(obj,type,fn,element){function f(e){e=e||g.win.event;var y=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,x=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,x=e.clientX+x,y=e.clientY+y;return e.preventDefault=e.preventDefault||preventDefault,e.stopPropagation=e.stopPropagation||stopPropagation,fn.call(element,e,x,y)}obj.attachEvent("on"+type,f);return function(){return obj.detachEvent("on"+type,f),!0}}:void 0,drag=[],dragUp=function(e){R.unmousemove(dragMove).unmouseup(dragUp);for(var dragi,i=drag.length;i--;)(dragi=drag[i]).el._drag={},
eve("raphael.drag.end."+dragi.el.id,dragi.end_scope||dragi.start_scope||dragi.move_scope||dragi.el,e);drag=[]},elproto=R.el={},i=events.length;i--;)!function(eventName){R[eventName]=elproto[eventName]=function(fn,scope){return R.is(fn,"function")&&(this.events=this.events||[],this.events.push({name:eventName,f:fn,unbind:addEvent(this.shape||this.node||g.doc,eventName,fn,scope||this)})),this},R["un"+eventName]=elproto["un"+eventName]=function(fn){for(var events=this.events||[],l=events.length;l--;)events[l].name!=eventName||!R.is(fn,"undefined")&&events[l].f!=fn||(events[l].unbind(),events.splice(l,1),events.length||delete this.events);return this}}(events[i]
);elproto.data=function(key,value){var data=eldata[this.id]=eldata[this.id]||{};if(0==arguments.length)return data;if(1!=arguments.length)return data[key]=value,eve("raphael.data.set."+this.id,this,value,key),this;if(R.is(key,"object")){for(var i in key)key[has](i)&&this.data(i,key[i]);return this}return eve("raphael.data.get."+this.id,this,data[key],key),data[key]},elproto.removeData=function(key){return null==key?eldata[this.id]={}:eldata[this.id]&&delete eldata[this.id][key],this},elproto.getData=function(){return clone(eldata[this.id]||{})},elproto.hover=function(f_in,f_out,scope_in,scope_out){return this.mouseover(f_in,scope_in).mouseout(f_out,
scope_out||scope_in)},elproto.unhover=function(f_in,f_out){return this.unmouseover(f_in).unmouseout(f_out)};var draggable=[];elproto.drag=function(onmove,onstart,onend,move_scope,start_scope,end_scope){function start(e){(e.originalEvent||e).preventDefault();var x=e.clientX,y=e.clientY,scrollY=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,scrollX=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;if(this._drag.id=e.identifier,supportsTouch&&e.touches)for(var touch,i=e.touches.length;i--;)if(touch=e.touches[i],this._drag.id=touch.identifier,touch.identifier==this._drag.id){x=touch.clientX,y=touch.clientY;break}this._drag.x=x+scrollX,
this._drag.y=y+scrollY,drag.length||R.mousemove(dragMove).mouseup(dragUp),drag.push({el:this,move_scope:move_scope,start_scope:start_scope,end_scope:end_scope}),onstart&&eve.on("raphael.drag.start."+this.id,onstart),onmove&&eve.on("raphael.drag.move."+this.id,onmove),onend&&eve.on("raphael.drag.end."+this.id,onend),eve("raphael.drag.start."+this.id,start_scope||move_scope||this,e.clientX+scrollX,e.clientY+scrollY,e)}return this._drag={},draggable.push({el:this,start:start}),this.mousedown(start),this},elproto.onDragOver=function(f){f?eve.on("raphael.drag.over."+this.id,f):eve.unbind("raphael.drag.over."+this.id)},elproto.undrag=function(){for(
var i=draggable.length;i--;)draggable[i].el==this&&(this.unmousedown(draggable[i].start),draggable.splice(i,1),eve.unbind("raphael.drag.*."+this.id));draggable.length||R.unmousemove(dragMove).unmouseup(dragUp),drag=[]},paperproto.circle=function(x,y,out){out=R._engine.circle(this,x||0,y||0,out||0);return this.__set__&&this.__set__.push(out),out},paperproto.rect=function(x,y,w,h,out){out=R._engine.rect(this,x||0,y||0,w||0,h||0,out||0);return this.__set__&&this.__set__.push(out),out},paperproto.ellipse=function(x,y,rx,out){out=R._engine.ellipse(this,x||0,y||0,rx||0,out||0);return this.__set__&&this.__set__.push(out),out},paperproto.path=function(pathString){
!pathString||R.is(pathString,"string")||R.is(pathString[0],array)||(pathString+=E);var out=R._engine.path(R.format[apply](R,arguments),this);return this.__set__&&this.__set__.push(out),out},paperproto.image=function(src,x,y,w,out){out=R._engine.image(this,src||"about:blank",x||0,y||0,w||0,out||0);return this.__set__&&this.__set__.push(out),out},paperproto.text=function(x,y,out){out=R._engine.text(this,x||0,y||0,Str(out));return this.__set__&&this.__set__.push(out),out},paperproto.set=function(itemsArray){R.is(itemsArray,"array")||(itemsArray=Array.prototype.splice.call(arguments,0,arguments.length));var out=new Set(itemsArray)
;return this.__set__&&this.__set__.push(out),out.paper=this,out.type="set",out},paperproto.setStart=function(set){this.__set__=set||this.set()},paperproto.setFinish=function(set){var out=this.__set__;return delete this.__set__,out},paperproto.getSize=function(){var container=this.canvas.parentNode;return{width:container.offsetWidth,height:container.offsetHeight}},paperproto.setSize=function(width,height){return R._engine.setSize.call(this,width,height)},paperproto.setViewBox=function(x,y,w,h,fit){return R._engine.setViewBox.call(this,x,y,w,h,fit)},paperproto.top=paperproto.bottom=null,paperproto.raphael=R;function x_y_w_h(){
return this.x+S+this.y+S+this.width+" × "+this.height}paperproto.getElementByPoint=function(x,y){var clientTop,box,hits,so,docElem,svg=this.canvas,target=g.doc.elementFromPoint(x,y);if(g.win.opera&&"svg"==target.tagName&&(box=(clientTop=svg).getBoundingClientRect(),hits=clientTop.ownerDocument,so=hits.body,docElem=hits.documentElement,clientTop=docElem.clientTop||so.clientTop||0,hits=docElem.clientLeft||so.clientLeft||0,so={y:box.top+(g.win.pageYOffset||docElem.scrollTop||so.scrollTop)-clientTop,x:box.left+(g.win.pageXOffset||docElem.scrollLeft||so.scrollLeft)-hits},(hits=svg.createSVGRect()).x=x-so.x,hits.y=y-so.y,hits.width=hits.height=1,(
hits=svg.getIntersectionList(hits,null)).length&&(target=hits[hits.length-1])),!target)return null;for(;target.parentNode&&target!=svg.parentNode&&!target.raphael;)target=target.parentNode;return target==this.canvas.parentNode&&(target=svg),target=target&&target.raphael?this.getById(target.raphaelid):null},paperproto.getElementsByBBox=function(bbox){var set=this.set();return this.forEach(function(el){R.isBBoxIntersect(el.getBBox(),bbox)&&set.push(el)}),set},paperproto.getById=function(id){for(var bot=this.bottom;bot;){if(bot.id==id)return bot;bot=bot.next}return null},paperproto.forEach=function(callback,thisArg){for(var bot=this.bottom;bot;){if(
!1===callback.call(thisArg,bot))return this;bot=bot.next}return this},paperproto.getElementsByPoint=function(x,y){var set=this.set();return this.forEach(function(el){el.isPointInside(x,y)&&set.push(el)}),set},elproto.isPointInside=function(x,y){var rp=this.realPath=getPath[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(rp=R.transformPath(rp,this.attr("transform"))),R.isPointInsidePath(rp,x,y)},elproto.getBBox=function(isWithoutTransform){if(this.removed)return{};var _=this._;return isWithoutTransform?(!_.dirty&&_.bboxwt||(this.realPath=getPath[this.type](this),_.bboxwt=pathDimensions(this.realPath),_.bboxwt.toString=x_y_w_h,
_.dirty=0),_.bboxwt):(!_.dirty&&!_.dirtyT&&_.bbox||(!_.dirty&&this.realPath||(_.bboxwt=0,this.realPath=getPath[this.type](this)),_.bbox=pathDimensions(mapPath(this.realPath,this.matrix)),_.bbox.toString=x_y_w_h,_.dirty=_.dirtyT=0),_.bbox)},elproto.clone=function(){if(this.removed)return null;var out=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(out),out},elproto.glow=function(glow){if("text"==this.type)return null;for(var s={width:((glow=glow||{}).width||10)+(+this.attr("stroke-width")||1),fill:glow.fill||!1,opacity:null==glow.opacity?.5:glow.opacity,offsetx:glow.offsetx||0,offsety:glow.offsety||0,color:glow.color||"#000"},
c=s.width/2,r=this.paper,out=r.set(),path=this.realPath||getPath[this.type](this),path=this.matrix?mapPath(path,this.matrix):path,i=1;i<1+c;i++)out.push(r.path(path).attr({stroke:s.color,fill:s.fill?s.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(s.width/c*i).toFixed(3),opacity:+(s.opacity/c).toFixed(3)}));return out.insertBefore(this).translate(s.offsetx,s.offsety)};function getPointAtSegmentLength(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length){return null==length?bezlen(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y):R.findDotsAtSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,function(x1,y1,x2,y2,x3,y3,x4,y4,ll){if(!(ll<0||bezlen(x1,y1,x2,y2,x3,y3,x4,
y4)<ll)){for(var step=.5,t2=1-step,l=bezlen(x1,y1,x2,y2,x3,y3,x4,y4,t2);.01<abs(l-ll);)l=bezlen(x1,y1,x2,y2,x3,y3,x4,y4,t2+=(l<ll?1:-1)*(step/=2));return t2}}(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length))}var ef=function(istotal,subpath){return function(path,length,onlystart){for(var x,y,p,l,point,sp="",subpaths={},len=0,i=0,ii=(path=path2curve(path)).length;i<ii;i++){if("M"==(p=path[i])[0])x=+p[1],y=+p[2];else{if(length<len+(l=getPointAtSegmentLength(x,y,p[1],p[2],p[3],p[4],p[5],p[6]))){if(subpath&&!subpaths.start){if(sp+=["C"+(point=getPointAtSegmentLength(x,y,p[1],p[2],p[3],p[4],p[5],p[6],length-len)).start.x,point.start.y,point.m.x,point.m.y,point.x,point.y],
onlystart)return sp;subpaths.start=sp,sp=["M"+point.x,point.y+"C"+point.n.x,point.n.y,point.end.x,point.end.y,p[5],p[6]].join(),len+=l,x=+p[5],y=+p[6];continue}if(!istotal&&!subpath)return{x:(point=getPointAtSegmentLength(x,y,p[1],p[2],p[3],p[4],p[5],p[6],length-len)).x,y:point.y,alpha:point.alpha}}len+=l,x=+p[5],y=+p[6]}sp+=p.shift()+p}return subpaths.end=sp,(point=istotal?len:subpath?subpaths:R.findDotsAtSegment(x,y,p[0],p[1],p[2],p[3],p[4],p[5],1)).alpha&&(point={x:point.x,y:point.y,alpha:point.alpha}),point}},getTotalLength=ef(1),getPointAtLength=ef(),getSubpathsAtLength=ef(0,1);R.getTotalLength=getTotalLength,R.getPointAtLength=getPointAtLength,
R.getSubpath=function(path,from,a){if(this.getTotalLength(path)-a<1e-6)return getSubpathsAtLength(path,from).end;a=getSubpathsAtLength(path,a,1);return from?getSubpathsAtLength(a,from).end:a},elproto.getTotalLength=function(){var path=this.getPath();if(path)return this.node.getTotalLength?this.node.getTotalLength():getTotalLength(path)},elproto.getPointAtLength=function(length){var path=this.getPath();if(path)return getPointAtLength(path,length)},elproto.getPath=function(){var path,getPath=R._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return getPath&&(path=getPath(this)),path},elproto.getSubpath=function(from,to){var path=this.getPath();if(
path)return R.getSubpath(path,from,to)};ef=R.easing_formulas={linear:function(n){return n},"<":function(n){return pow(n,1.7)},">":function(n){return pow(n,.48)},"<>":function(x){var t=.48-x/1.04,Q=math.sqrt(.1734+t*t),x=Q-t,t=-Q-t,t=pow(abs(x),1/3)*(x<0?-1:1)+pow(abs(t),1/3)*(t<0?-1:1)+.5;return 3*(1-t)*t*t+t*t*t},backIn:function(n){var s=1.70158;return n*n*((1+s)*n-s)},backOut:function(n){var s=1.70158;return--n*n*((1+s)*n+s)+1},elastic:function(n){return n==!!n?n:pow(2,-10*n)*math.sin(2*PI*(n-.075)/.3)+1},bounce:function(l){var s=7.5625,p=2.75,l=l<1/p?s*l*l:l<2/p?s*(l-=1.5/p)*l+.75:l<2.5/p?s*(l-=2.25/p)*l+.9375:s*(l-=2.625/p)*l+.984375;return l}}
;ef.easeIn=ef["ease-in"]=ef["<"],ef.easeOut=ef["ease-out"]=ef[">"],ef.easeInOut=ef["ease-in-out"]=ef["<>"],ef["back-in"]=ef.backIn,ef["back-out"]=ef.backOut;var animationElements=[],requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){setTimeout(callback,16)},animation=function(){for(var Now=+new Date,l=0;l<animationElements.length;l++){var e=animationElements[l];if(!e.el.removed&&!e.paused){var key,time=Now-e.start,ms=e.ms,easing=e.easing,from=e.from,diff=e.diff,to=e.to,that=(e.t,e.el),set={},init={};if(
e.initstatus?(time=(e.initstatus*e.anim.top-e.prev)/(e.percent-e.prev)*ms,e.status=e.initstatus,delete e.initstatus,e.stop&&animationElements.splice(l--,1)):e.status=(e.prev+(e.percent-e.prev)*(time/ms))/e.anim.top,!(time<0))if(time<ms){var attr,pos=easing(time/ms);for(attr in from)if(from[has](attr)){switch(availableAnimAttrs[attr]){case nu:now=+from[attr]+pos*ms*diff[attr];break;case"colour":now="rgb("+[upto255(round(from[attr].r+pos*ms*diff[attr].r)),upto255(round(from[attr].g+pos*ms*diff[attr].g)),upto255(round(from[attr].b+pos*ms*diff[attr].b))].join(",")+")";break;case"path":now=[];for(var i=0,ii=from[attr].length;i<ii;i++){now[i]=[from[attr][i][0]]
;for(var j=1,jj=from[attr][i].length;j<jj;j++)now[i][j]=+from[attr][i][j]+pos*ms*diff[attr][i][j];now[i]=now[i].join(S)}now=now.join(S);break;case"transform":if(diff[attr].real)for(now=[],i=0,ii=from[attr].length;i<ii;i++)for(now[i]=[from[attr][i][0]],j=1,jj=from[attr][i].length;j<jj;j++)now[i][j]=from[attr][i][j]+pos*ms*diff[attr][i][j];else{function get(i){return+from[attr][i]+pos*ms*diff[attr][i]}var now=[["m",get(0),get(1),get(2),get(3),get(4),get(5)]]}break;case"csv":if("clip-rect"==attr)for(now=[],i=4;i--;)now[i]=+from[attr][i]+pos*ms*diff[attr][i];break;default:var from2=[][concat](from[attr]);for(now=[],i=that.paper.customAttributes[attr].length;i--;
)now[i]=+from2[i]+pos*ms*diff[attr][i]}set[attr]=now}that.attr(set),function(id,that,anim){setTimeout(function(){eve("raphael.anim.frame."+id,that,anim)})}(that.id,that,e.anim)}else{if(!function(f,el,a){setTimeout(function(){eve("raphael.anim.frame."+el.id,el,a),eve("raphael.anim.finish."+el.id,el,a),R.is(f,"function")&&f.call(el)})}(e.callback,that,e.anim),that.attr(to),animationElements.splice(l--,1),1<e.repeat&&!e.next){for(key in to)to[has](key)&&(init[key]=e.totalOrigin[key]);e.el.attr(init),runAnimation(e.anim,e.el,e.anim.percents[0],null,e.totalOrigin,e.repeat-1)}e.next&&!e.stop&&runAnimation(e.anim,e.el,e.next,null,e.totalOrigin,e.repeat)}}}
animationElements.length&&requestAnimFrame(animation)},upto255=function(color){return 255<color?255:color<0?0:color};function CubicBezierAtTime(t,p1x,p1y,p2x,p2y,duration){var cx=3*p1x,bx=3*(p2x-p1x)-cx,ax=1-cx-bx,cy=3*p1y,by=3*(p2y-p1y)-cy,ay=1-cy-by;function sampleCurveX(t){return((ax*t+bx)*t+cx)*t}return function(x,t){return t=function(x,epsilon){var t0,t1,t2,x2,d2,i;for(t2=x,i=0;i<8;i++){if(x2=sampleCurveX(t2)-x,abs(x2)<epsilon)return t2;if(abs(d2=(3*ax*t2+2*bx)*t2+cx)<1e-6)break;t2-=x2/d2}if(t1=1,(t2=x)<(t0=0))return t0;if(t1<t2)return t1;for(;t0<t1;){if(x2=sampleCurveX(t2),abs(x2-x)<epsilon)return t2;x2<x?t0=t2:t1=t2,t2=(t1-t0)/2+t0}return t2}(x,t),((
ay*t+by)*t+cy)*t}(t,1/(200*duration))}function Animation(anim,ms){var percents=[],newAnim={};if(this.ms=ms,this.times=1,anim){for(var attr in anim)anim[has](attr)&&(newAnim[toFloat(attr)]=anim[attr],percents.push(toFloat(attr)));percents.sort(sortByNumber)}this.anim=newAnim,this.top=percents[percents.length-1],this.percents=percents}function runAnimation(anim,element,percent,status,totalOrigin,times){percent=toFloat(percent);var params,isInAnim,isInAnimSet,next,prev,ms=anim.ms,from={},to={},diff={};if(status)for(i=0,ii=animationElements.length;i<ii;i++){var e=animationElements[i];if(e.el.id==element.id&&e.anim==anim){e.percent!=percent?(
animationElements.splice(i,1),isInAnimSet=1):isInAnim=e,element.attr(e.totalOrigin);break}}else status=+to;for(var i=0,ii=anim.percents.length;i<ii;i++){if(anim.percents[i]==percent||anim.percents[i]>status*anim.top){percent=anim.percents[i],prev=anim.percents[i-1]||0,ms=ms/anim.top*(percent-prev),next=anim.percents[i+1],params=anim.anim[percent];break}status&&element.attr(anim.anim[anim.percents[i]])}if(params){if(isInAnim)isInAnim.initstatus=status,isInAnim.start=new Date-isInAnim.ms*status;else{for(var attr in params)if(params[has](attr)&&(availableAnimAttrs[has](attr)||element.paper.customAttributes[has](attr)))switch(from[attr]=element.attr(attr),
null==from[attr]&&(from[attr]=availableAttrs[attr]),to[attr]=params[attr],availableAnimAttrs[attr]){case nu:diff[attr]=(to[attr]-from[attr])/ms;break;case"colour":from[attr]=R.getRGB(from[attr]);var to2=R.getRGB(to[attr]);diff[attr]={r:(to2.r-from[attr].r)/ms,g:(to2.g-from[attr].g)/ms,b:(to2.b-from[attr].b)/ms};break;case"path":var m=path2curve(from[attr],to[attr]),toPath=m[1];for(from[attr]=m[0],diff[attr]=[],i=0,ii=from[attr].length;i<ii;i++){diff[attr][i]=[0];for(var j=1,jj=from[attr][i].length;j<jj;j++)diff[attr][i][j]=(toPath[i][j]-from[attr][i][j])/ms}break;case"transform":to2=element._,m=equaliseTransform(to2[attr],to[attr]);if(m)for(from[attr]=m.from
,to[attr]=m.to,diff[attr]=[],diff[attr].real=!0,i=0,ii=from[attr].length;i<ii;i++)for(diff[attr][i]=[from[attr][i][0]],j=1,jj=from[attr][i].length;j<jj;j++)diff[attr][i][j]=(to[attr][i][j]-from[attr][i][j])/ms;else{m=element.matrix||new Matrix,to2={_:{transform:to2.transform},getBBox:function(){return element.getBBox(1)}};from[attr]=[m.a,m.b,m.c,m.d,m.e,m.f],extractTransform(to2,to[attr]),to[attr]=to2._.transform,diff[attr]=[(to2.matrix.a-m.a)/ms,(to2.matrix.b-m.b)/ms,(to2.matrix.c-m.c)/ms,(to2.matrix.d-m.d)/ms,(to2.matrix.e-m.e)/ms,(to2.matrix.f-m.f)/ms]}break;case"csv":var values=Str(params[attr])[split](separator),from2=Str(from[attr])[split](separator)
;if("clip-rect"==attr)for(from[attr]=from2,diff[attr]=[],i=from2.length;i--;)diff[attr][i]=(values[i]-from[attr][i])/ms;to[attr]=values;break;default:for(values=[][concat](params[attr]),from2=[][concat](from[attr]),diff[attr]=[],i=element.paper.customAttributes[attr].length;i--;)diff[attr][i]=((values[i]||0)-(from2[i]||0))/ms}var curve,timestamp=params.easing,easyeasy=R.easing_formulas[timestamp];if(easyeasy=easyeasy||((easyeasy=Str(timestamp).match(bezierrg))&&5==easyeasy.length?(curve=easyeasy,function(t){return CubicBezierAtTime(t,+curve[1],+curve[2],+curve[3],+curve[4],ms)}):pipe),e={anim:anim,percent:percent,
timestamp:timestamp=params.start||anim.start||+new Date,start:timestamp+(anim.del||0),status:0,initstatus:status||0,stop:!1,ms:ms,easing:easyeasy,from:from,diff:diff,to:to,el:element,callback:params.callback,prev:prev,next:next,repeat:times||anim.times,origin:element.attr(),totalOrigin:totalOrigin},animationElements.push(e),status&&!isInAnim&&!isInAnimSet&&(e.stop=!0,e.start=new Date-ms*status,1==animationElements.length))return animation();isInAnimSet&&(e.start=new Date-e.ms*status),1==animationElements.length&&requestAnimFrame(animation)}eve("raphael.anim.start."+element.id,element,anim)}}function stopAnimation(paper){for(
var i=0;i<animationElements.length;i++)animationElements[i].el.paper==paper&&animationElements.splice(i--,1)}elproto.animateWith=function(el,anim,params,ms,easing,a){if(this.removed)return a&&a.call(this),this;a=params instanceof Animation?params:R.animation(params,ms,easing,a);runAnimation(a,this,a.percents[0],null,this.attr());for(var i=0,ii=animationElements.length;i<ii;i++)if(animationElements[i].anim==anim&&animationElements[i].el==el){animationElements[ii-1].start=animationElements[i].start;break}return this},elproto.onAnimation=function(f){return f?eve.on("raphael.anim.frame."+this.id,f):eve.unbind("raphael.anim.frame."+this.id),this},
Animation.prototype.delay=function(delay){var a=new Animation(this.anim,this.ms);return a.times=this.times,a.del=+delay||0,a},Animation.prototype.repeat=function(times){var a=new Animation(this.anim,this.ms);return a.del=this.del,a.times=math.floor(mmax(times,0))||1,a},R.animation=function(params,ms,easing,callback){if(params instanceof Animation)return params;!R.is(easing,"function")&&easing||(callback=callback||easing||null,easing=null),ms=+ms||0;var json,attr,p={};for(attr in params=Object(params))params[has](attr)&&toFloat(attr)!=attr&&toFloat(attr)+"%"!=attr&&(json=!0,p[attr]=params[attr]);if(json)return easing&&(p.easing=easing),callback&&(
p.callback=callback),new Animation({100:p},ms);if(callback){var i,lastKey=0;for(i in params){var percent=toInt(i);params[has](i)&&lastKey<percent&&(lastKey=percent)}params[lastKey+="%"].callback||(params[lastKey].callback=callback)}return new Animation(params,ms)},elproto.animate=function(params,ms,easing,anim){if(this.removed)return anim&&anim.call(this),this;anim=params instanceof Animation?params:R.animation(params,ms,easing,anim);return runAnimation(anim,this,anim.percents[0],null,this.attr()),this},elproto.setTime=function(anim,value){return anim&&null!=value&&this.status(anim,mmin(value,anim.ms)/anim.ms),this},elproto.status=function(anim,value){
var len,e,out=[],i=0;if(null!=value)return runAnimation(anim,this,-1,mmin(value,1)),this;for(len=animationElements.length;i<len;i++)if((e=animationElements[i]).el.id==this.id&&(!anim||e.anim==anim)){if(anim)return e.status;out.push({anim:e.anim,status:e.status})}return anim?0:out},elproto.pause=function(anim){for(var i=0;i<animationElements.length;i++)animationElements[i].el.id!=this.id||anim&&animationElements[i].anim!=anim||!1!==eve("raphael.anim.pause."+this.id,this,animationElements[i].anim)&&(animationElements[i].paused=!0);return this},elproto.resume=function(anim){for(var e,i=0;i<animationElements.length;i++){
animationElements[i].el.id!=this.id||anim&&animationElements[i].anim!=anim||(e=animationElements[i],!1!==eve("raphael.anim.resume."+this.id,this,e.anim)&&(delete e.paused,this.status(e.anim,e.status)))}return this},elproto.stop=function(anim){for(var i=0;i<animationElements.length;i++)animationElements[i].el.id!=this.id||anim&&animationElements[i].anim!=anim||!1!==eve("raphael.anim.stop."+this.id,this,animationElements[i].anim)&&animationElements.splice(i--,1);return this},eve.on("raphael.remove",stopAnimation),eve.on("raphael.clear",stopAnimation),elproto.toString=function(){return"Raphaëls object"};var method,tokenRegex,objNotationRegex,doc,f,
Set=function(items){if(this.items=[],this.length=0,this.type="set",items)for(var i=0,ii=items.length;i<ii;i++)!items[i]||items[i].constructor!=elproto.constructor&&items[i].constructor!=Set||(this[this.items.length]=this.items[this.items.length]=items[i],this.length++)},setproto=Set.prototype;for(method in setproto.push=function(){for(var item,len,i=0,ii=arguments.length;i<ii;i++)!(item=arguments[i])||item.constructor!=elproto.constructor&&item.constructor!=Set||(this[len=this.items.length]=this.items[len]=item,this.length++);return this},setproto.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},setproto.forEach=function(
callback,thisArg){for(var i=0,ii=this.items.length;i<ii;i++)if(!1===callback.call(thisArg,this.items[i],i))return this;return this},elproto)elproto[has](method)&&(setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname][apply](el,arg)})}}(method));return setproto.attr=function(name,value){if(name&&R.is(name,array)&&R.is(name[0],"object"))for(var j=0,jj=name.length;j<jj;j++)this.items[j].attr(name[j]);else for(var i=0,ii=this.items.length;i<ii;i++)this.items[i].attr(name,value);return this},setproto.clear=function(){for(;this.length;)this.pop()},setproto.splice=function(index,count,insertion){
index=index<0?mmax(this.length+index,0):index,count=mmax(0,mmin(this.length-index,count));for(var tail=[],todel=[],args=[],i=2;i<arguments.length;i++)args.push(arguments[i]);for(i=0;i<count;i++)todel.push(this[index+i]);for(;i<this.length-index;i++)tail.push(this[index+i]);var arglen=args.length;for(i=0;i<arglen+tail.length;i++)this.items[index+i]=this[index+i]=i<arglen?args[i]:tail[i-arglen];for(i=this.items.length=this.length-=count-arglen;this[i];)delete this[i++];return new Set(todel)},setproto.exclude=function(el){for(var i=0,ii=this.length;i<ii;i++)if(this[i]==el)return this.splice(i,1),!0},setproto.animate=function(params,ms,easing,callback){!R.is(
easing,"function")&&easing||(callback=easing||null);var collector,len=this.items.length,i=len,set=this;if(!len)return this;callback&&(collector=function(){--len||callback.call(set)}),easing=R.is(easing,"string")?easing:collector;for(var anim=R.animation(params,ms,easing,collector),item=this.items[--i].animate(anim);i--;)this.items[i]&&!this.items[i].removed&&this.items[i].animateWith(item,anim,anim),this.items[i]&&!this.items[i].removed||len--;return this},setproto.insertAfter=function(el){for(var i=this.items.length;i--;)this.items[i].insertAfter(el);return this},setproto.getBBox=function(){for(var box,x=[],y=[],x2=[],y2=[],i=this.items.length;i--;){
this.items[i].removed||(box=this.items[i].getBBox(),x.push(box.x),y.push(box.y),x2.push(box.x+box.width),y2.push(box.y+box.height))}return{x:x=mmin[apply](0,x),y:y=mmin[apply](0,y),x2:x2=mmax[apply](0,x2),y2:y2=mmax[apply](0,y2),width:x2-x,height:y2-y}},setproto.clone=function(s){s=this.paper.set();for(var i=0,ii=this.items.length;i<ii;i++)s.push(this.items[i].clone());return s},setproto.toString=function(){return"Raphaëls set"},setproto.glow=function(glowConfig){var ret=this.paper.set();return this.forEach(function(g,index){g=g.glow(glowConfig);null!=g&&g.forEach(function(shape2,index2){ret.push(shape2)})}),ret},setproto.isPointInside=function(x,y){
var isPointInside=!1;return this.forEach(function(el){if(el.isPointInside(x,y))return!(isPointInside=!0)}),isPointInside},R.registerFont=function(font){if(!font.face)return font;this.fonts=this.fonts||{};var prop,fontcopy={w:font.w,face:{},glyphs:{}},family=font.face["font-family"];for(prop in font.face)font.face[has](prop)&&(fontcopy.face[prop]=font.face[prop]);if(this.fonts[family]?this.fonts[family].push(fontcopy):this.fonts[family]=[fontcopy],!font.svg)for(var glyph in fontcopy.face["units-per-em"]=toInt(font.face["units-per-em"],10),font.glyphs)if(font.glyphs[has](glyph)){var path=font.glyphs[glyph];if(fontcopy.glyphs[glyph]={w:path.w,k:{},
d:path.d&&"M"+path.d.replace(/[mlcxtrv]/g,function(command){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[command]||"M"})+"z"},path.k)for(var k in path.k)path[has](k)&&(fontcopy.glyphs[glyph].k[k]=path.k[k])}return font},paperproto.getFont=function(family,weight,style,stretch){if(stretch=stretch||"normal",style=style||"normal",weight=+weight||{normal:400,bold:700,lighter:300,bolder:800}[weight]||400,R.fonts){var thefont,font=R.fonts[family];if(!font){var fontName,name=new RegExp("(^|\\s)"+family.replace(/[^\w\d\s+!~.:_-]/g,E)+"(\\s|$)","i");for(fontName in R.fonts)if(R.fonts[has](fontName)&&name.test(fontName)){font=R.fonts[fontName];break}}if(font)for(var i=0
,ii=font.length;i<ii&&((thefont=font[i]).face["font-weight"]!=weight||thefont.face["font-style"]!=style&&thefont.face["font-style"]||thefont.face["font-stretch"]!=stretch);i++);return thefont}},paperproto.print=function(x,y,string,font,bb,origin,letter_spacing,line_spacing){origin=origin||"middle",letter_spacing=mmax(mmin(letter_spacing||0,1),-1),line_spacing=mmax(mmin(line_spacing||1,3),1);var scale,letters=Str(string)[split](E),shift=0,notfirst=0,path=E;if(R.is(font,"string")&&(font=this.getFont(font)),font){scale=(bb||16)/font.face["units-per-em"];for(var prev,curr,bb=font.face.bbox[split](separator),top=+bb[0],lineHeight=bb[3]-bb[1],shifty=0,
height=+bb[1]+("baseline"==origin?lineHeight+ +font.face.descent:lineHeight/2),i=0,ii=letters.length;i<ii;i++){"\n"==letters[i]?(notfirst=curr=shift=0,shifty+=lineHeight*line_spacing):(prev=notfirst&&font.glyphs[letters[i-1]]||{},curr=font.glyphs[letters[i]],shift+=notfirst?(prev.w||font.w)+(prev.k&&prev.k[letters[i]]||0)+font.w*letter_spacing:0,notfirst=1),curr&&curr.d&&(path+=R.transformPath(curr.d,["t",shift*scale,shifty*scale,"s",scale,scale,top,height,"t",(x-top)/scale,(y-height)/scale]))}}return this.path(path).attr({fill:"#000",stroke:"none"})},paperproto.add=function(json){if(R.is(json,"array"))for(var j,res=this.set(),i=0,ii=json.length;i<ii;i++
)j=json[i]||{},elements[has](j.type)&&res.push(this[j.type]().attr(j));return res},R.format=function(token,params){var args=R.is(params,array)?[0][concat](params):arguments;return token&&R.is(token,"string")&&args.length-1&&(token=token.replace(formatrg,function(str,i){return null==args[++i]?E:args[i]})),token||E},R.fullfill=(tokenRegex=/\{([^\}]+)\}/g,objNotationRegex=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(str,obj){return String(str).replace(tokenRegex,function(all,key){return function(all,key,obj){var res=obj;return key.replace(objNotationRegex,function(all,name,quote,quotedName,isFunc){name=name||quotedName,res&&(
name in res&&(res=res[name]),"function"==typeof res&&isFunc&&(res=res()))}),res=(null==res||res==obj?all:res)+""}(all,key,obj)})}),R.ninja=function(){if(oldRaphael.was)g.win.Raphael=oldRaphael.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(e){}}return R},R.st=setproto,eve.on("raphael.DOMload",function(){loaded=!0}),null==(doc=document).readyState&&doc.addEventListener&&(doc.addEventListener("DOMContentLoaded",f=function(){doc.removeEventListener("DOMContentLoaded",f,!1),doc.readyState="complete"},!1),doc.readyState="loading"),function isLoaded(){/in/.test(doc.readyState)?setTimeout(isLoaded,9):R.eve("raphael.DOMload")}(),R}.apply(exports,
__WEBPACK_AMD_DEFINE_RESULT__);void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,exports){function fun(){}function numsort(a,b){return a-b}var glob,current_event,has,separator,events,eve;glob=this,has="hasOwnProperty",separator=/[\.\/]/,events={n:{}},(eve=function(name,scope){var l,args=Array.prototype.slice.call(arguments,2),listeners=eve.listeners(name),z=0,f=!1,indexed=[],queue={};current_event=name;for(var i=0,ii=listeners.length;i<ii;i++)"zIndex"in listeners[i]&&(indexed.push(listeners[i].zIndex),listeners[i].zIndex<0&&(queue[listeners[i].zIndex]=listeners[i]));for(indexed.sort(numsort);indexed[z]<0;
)if((l=queue[indexed[z++]]).apply(scope,args)===f)return f;for(i=0;i<ii;i++)if("zIndex"in(l=listeners[i]))if(l.zIndex==indexed[z]){if(l.apply(scope,args)===f)return f;do{if((l=queue[indexed[++z]])&&l.apply(scope,args)===f)return f}while(l)}else queue[l.zIndex]=l;else if(l.apply(scope,args)===f)return f}).listeners=function(name){for(var item,items,k,j,jj,nes,names=name.split(separator),e=events,es=[e],out=[],i=0,ii=names.length;i<ii;i++){for(nes=[],j=0,jj=es.length;j<jj;j++)for(items=[(e=es[j].n)[names[i]],e["*"]],k=2;k--;)(item=items[k])&&(nes.push(item),out=out.concat(item.f||[]));es=nes}return out},eve.on=function(name,f){for(var names=name.split(
separator),e=events,i=0,ii=names.length;i<ii;i++)(e=e.n)[names[i]]||(e[names[i]]={n:{}}),e=e[names[i]];for(e.f=e.f||[],i=0,ii=e.f.length;i<ii;i++)if(e.f[i]==f)return fun;return e.f.push(f),function(zIndex){+zIndex==+zIndex&&(f.zIndex=+zIndex)}},eve.nt=function(subname){return subname?new RegExp("(?:\\.|\\/|^)"+subname+"(?:\\.|\\/|$)").test(current_event):current_event},eve.unbind=function(name,f){for(var e,key,splice,names=name.split(separator),cur=[events],i=0,ii=names.length;i<ii;i++)for(var j=0;j<cur.length;j+=splice.length-2){if(splice=[j,1],e=cur[j].n,"*"!=names[i])e[names[i]]&&splice.push(e[names[i]]);else for(key in e)e[has](key)&&splice.push(e[key])
;cur.splice.apply(cur,splice)}for(i=0,ii=cur.length;i<ii;i++)for(e=cur[i];e.n;){if(f){if(e.f){for(i=0,ii=e.f.length;i<ii;i++)if(e.f[i]==f){e.f.splice(i,1);break}e.f.length||delete e.f}for(key in e.n)if(e.n[has](key)&&e.n[key].f){for(var funcs=e.n[key].f,i=0,ii=funcs.length;i<ii;i++)if(funcs[i]==f){funcs.splice(i,1);break}funcs.length||delete e.n[key].f}}else for(key in delete e.f,e.n)e.n[has](key)&&e.n[key].f&&delete e.n[key].f;e=e.n}},eve.version="0.2.4",eve.toString=function(){return"You are running Eve 0.2.4"},void 0!==module&&module.exports?module.exports=eve:glob.eve=eve},function(module,exports,__WEBPACK_AMD_DEFINE_RESULT__){
var __WEBPACK_AMD_DEFINE_RESULT__=[__WEBPACK_AMD_DEFINE_RESULT__(1)],__WEBPACK_AMD_DEFINE_RESULT__=function(R){if(!R||R.svg){var has="hasOwnProperty",Str=String,toFloat=parseFloat,toInt=parseInt,math=Math,mmax=math.max,abs=math.abs,pow=math.pow,separator=/[, ]+/,eve=R.eve,E="",S=" ",xlink="http://www.w3.org/1999/xlink",markers={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},markerCounter={};R.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};function addGradientFill(element,gradient){
var type="linear",id=element.id+gradient,fx=.5,fy=.5,o=element.node,SVG=element.paper,s=o.style,el=R._g.doc.getElementById(id);if(!el){if(gradient=(gradient=Str(gradient).replace(R._radial_gradient,function(all,_fx,dir){return type="radial",_fx&&dir&&(fx=toFloat(_fx),dir=2*(.5<(fy=toFloat(dir)))-1,.25<pow(fx-.5,2)+pow(fy-.5,2)&&(fy=math.sqrt(.25-pow(fx-.5,2))*dir+.5)&&.5!=fy&&(fy=fy.toFixed(5)-1e-5*dir)),E})).split(/\s*\-\s*/),"linear"==type){var max=gradient.shift(),max=-toFloat(max);if(isNaN(max))return null;var vector=[0,0,math.cos(R.rad(max)),math.sin(R.rad(max))],max=1/(mmax(abs(vector[2]),abs(vector[3]))||1);vector[2]*=max,vector[3]*=max,vector[2]<0&&(
vector[0]=-vector[2],vector[2]=0),vector[3]<0&&(vector[1]=-vector[3],vector[3]=0)}var dots=R._parseDots(gradient);if(!dots)return null;if(id=id.replace(/[\(\)\s,\xb0#]/g,"_"),element.gradient&&id!=element.gradient.id&&(SVG.defs.removeChild(element.gradient),delete element.gradient),!element.gradient){el=$(type+"Gradient",{id:id}),element.gradient=el,$(el,"radial"==type?{fx:fx,fy:fy}:{x1:vector[0],y1:vector[1],x2:vector[2],y2:vector[3],gradientTransform:element.matrix.invert()}),SVG.defs.appendChild(el);for(var i=0,ii=dots.length;i<ii;i++)el.appendChild($("stop",{offset:dots[i].offset||(i?"100%":"0%"),"stop-color":dots[i].color||"#fff",
"stop-opacity":isFinite(dots[i].opacity)?dots[i].opacity:1}))}}return $(o,{fill:fillurl(id),opacity:1,"fill-opacity":1}),s.fill=E,s.opacity=1,s.fillOpacity=1}function updatePosition(o){var bbox=o.getBBox(1);$(o.pattern,{patternTransform:o.matrix.invert()+" translate("+bbox.x+","+bbox.y+")"})}function addArrow(o,value,isEnd){if("path"==o.type){for(var from,refX,pathId,markerId,marker,delta,to,attr,item,values=Str(value).toLowerCase().split("-"),p=o.paper,se=isEnd?"end":"start",node=o.node,attrs=o.attrs,stroke=attrs["stroke-width"],i=values.length,type="classic",w=3,h=3,t=5;i--;)switch(values[i]){case"block":case"classic":case"oval":case"diamond":case"open":
case"none":type=values[i];break;case"wide":h=5;break;case"narrow":h=2;break;case"long":w=5;break;case"short":w=2}for(attr in attr="open"==type?(w+=2,h+=2,t+=2,delta=1,refX=isEnd?4:1,{fill:"none",stroke:attrs.stroke}):(refX=delta=w/2,{fill:attrs.stroke,stroke:"none"}),o._.arrows?isEnd?(o._.arrows.endPath&&markerCounter[o._.arrows.endPath]--,o._.arrows.endMarker&&markerCounter[o._.arrows.endMarker]--):(o._.arrows.startPath&&markerCounter[o._.arrows.startPath]--,o._.arrows.startMarker&&markerCounter[o._.arrows.startMarker]--):o._.arrows={},"none"!=type?(pathId="raphael-marker-"+type,markerId="raphael-marker-"+se+type+w+h+"-obj"+o.id,R._g.doc.getElementById(
pathId)?markerCounter[pathId]++:(p.defs.appendChild($($("path"),{"stroke-linecap":"round",d:markers[type],id:pathId})),markerCounter[pathId]=1),(marker=R._g.doc.getElementById(markerId))?(markerCounter[markerId]++,to=marker.getElementsByTagName("use")[0]):(marker=$($("marker"),{id:markerId,markerHeight:h,markerWidth:w,orient:"auto",refX:refX,refY:h/2}),to=$($("use"),{"xlink:href":"#"+pathId,transform:(isEnd?"rotate(180 "+w/2+" "+h/2+") ":E)+"scale("+w/t+","+h/t+")","stroke-width":(1/((w/t+h/t)/2)).toFixed(4)}),marker.appendChild(to),p.defs.appendChild(marker),markerCounter[markerId]=1),$(to,attr),delta=delta*("diamond"!=type&&"oval"!=type),to=isEnd?(
from=o._.arrows.startdx*stroke||0,R.getTotalLength(attrs.path)-delta*stroke):(from=delta*stroke,R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)),(attr={})["marker-"+se]="url(#"+markerId+")",(to||from)&&(attr.d=R.getSubpath(attrs.path,from,to)),$(node,attr),o._.arrows[se+"Path"]=pathId,o._.arrows[se+"Marker"]=markerId,o._.arrows[se+"dx"]=delta,o._.arrows[se+"Type"]=type,o._.arrows[se+"String"]=value):(to=isEnd?(from=o._.arrows.startdx*stroke||0,R.getTotalLength(attrs.path)-from):(from=0,R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)),o._.arrows[se+"Path"]&&$(node,{d:R.getSubpath(attrs.path,from,to)}),delete o._.arrows[se+"Path"],
delete o._.arrows[se+"Marker"],delete o._.arrows[se+"dx"],delete o._.arrows[se+"Type"],delete o._.arrows[se+"String"]),markerCounter){!markerCounter[has](attr)||markerCounter[attr]||(item=R._g.doc.getElementById(attr))&&item.parentNode.removeChild(item)}}}function addDashes(o,value,params){if(value=dasharray[Str(value).toLowerCase()]){for(var width=o.attrs["stroke-width"]||"1",butt={round:width,square:width,butt:0}[o.attrs["stroke-linecap"]||params["stroke-linecap"]]||0,dashes=[],i=value.length;i--;)dashes[i]=value[i]*width+(i%2?1:-1)*butt;$(o.node,{"stroke-dasharray":dashes.join(",")})}else $(o.node,{"stroke-dasharray":"none"})}function setFillAndStroke(o,
params){var att,node=o.node,attrs=o.attrs,vis=node.style.visibility;for(att in node.style.visibility="hidden",params)if(params[has](att)&&R._availableAttrs[has](att)){var value=params[att];switch(attrs[att]=value,att){case"blur":o.blur(value);break;case"title":var val,hl=node.getElementsByTagName("title");hl.length&&(hl=hl[0])?hl.firstChild.nodeValue=value:(hl=$("title"),val=R._g.doc.createTextNode(value),hl.appendChild(val),node.appendChild(hl));break;case"href":case"target":var rect=node.parentNode;"a"!=rect.tagName.toLowerCase()&&(hl=$("a"),rect.insertBefore(hl,node),hl.appendChild(node),rect=hl),"target"==att?rect.setAttributeNS(xlink,"show",
"blank"==value?"new":value):rect.setAttributeNS(xlink,att,value);break;case"cursor":node.style.cursor=value;break;case"transform":o.transform(value);break;case"arrow-start":addArrow(o,value);break;case"arrow-end":addArrow(o,value,1);break;case"clip-rect":var el,path,rect=Str(value).split(separator);4==rect.length&&(o.clip&&o.clip.parentNode.parentNode.removeChild(o.clip.parentNode),el=$("clipPath"),path=$("rect"),el.id=R.createUUID(),$(path,{x:rect[0],y:rect[1],width:rect[2],height:rect[3]}),el.appendChild(path),o.paper.defs.appendChild(el),$(node,{"clip-path":"url(#"+el.id+")"}),o.clip=path),value||(path=node.getAttribute("clip-path"))&&((
cssrule=R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g,E)))&&cssrule.parentNode.removeChild(cssrule),$(node,{"clip-path":E}),delete o.clip);break;case"path":"path"==o.type&&($(node,{d:value?attrs.path=R._pathToAbsolute(value):"M0,0"}),o._.dirty=1,o._.arrows&&("startString"in o._.arrows&&addArrow(o,o._.arrows.startString),"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)));break;case"width":if(node.setAttribute(att,value),o._.dirty=1,!attrs.fx)break;att="x",value=attrs.x;case"x":attrs.fx&&(value=-attrs.x-(attrs.width||0));case"rx":if("rx"==att&&"rect"==o.type)break;case"cx":node.setAttribute(att,value),o.pattern&&updatePosition(o),
o._.dirty=1;break;case"height":if(node.setAttribute(att,value),o._.dirty=1,!attrs.fy)break;att="y",value=attrs.y;case"y":attrs.fy&&(value=-attrs.y-(attrs.height||0));case"ry":if("ry"==att&&"rect"==o.type)break;case"cy":node.setAttribute(att,value),o.pattern&&updatePosition(o),o._.dirty=1;break;case"r":"rect"==o.type?$(node,{rx:value,ry:value}):node.setAttribute(att,value),o._.dirty=1;break;case"src":"image"==o.type&&node.setAttributeNS(xlink,"href",value);break;case"stroke-width":1==o._.sx&&1==o._.sy||(value/=mmax(abs(o._.sx),abs(o._.sy))||1),node.setAttribute(att,value),attrs["stroke-dasharray"]&&addDashes(o,attrs["stroke-dasharray"],params),o._.arrows&&(
"startString"in o._.arrows&&addArrow(o,o._.arrows.startString),"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1));break;case"stroke-dasharray":addDashes(o,value,params);break;case"fill":var isURL=Str(value).match(R._ISURL);if(isURL){el=$("pattern");var ig=$("image");el.id=R.createUUID(),$(el,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),$(ig,{x:0,y:0,"xlink:href":isURL[1]}),el.appendChild(ig),function(el){R._preload(isURL[1],function(){var w=this.offsetWidth,h=this.offsetHeight;$(el,{width:w,height:h}),$(ig,{width:w,height:h})})}(el),o.paper.defs.appendChild(el),$(node,{fill:"url(#"+el.id+")"}),o.pattern=el,o.pattern&&updatePosition(o)
;break}var gradient,stops,clr=R.getRGB(value);if(clr.error){if(("circle"==o.type||"ellipse"==o.type||"r"!=Str(value).charAt())&&addGradientFill(o,value)){!("opacity"in attrs||"fill-opacity"in attrs)||(gradient=R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g,E)))&&(stops=gradient.getElementsByTagName("stop"),$(stops[stops.length-1],{"stop-opacity":("opacity"in attrs?attrs.opacity:1)*("fill-opacity"in attrs?attrs["fill-opacity"]:1)})),attrs.gradient=value,attrs.fill="none";break}}else delete params.gradient,delete attrs.gradient,!R.is(attrs.opacity,"undefined")&&R.is(params.opacity,"undefined")&&$(node,{opacity:attrs.opacity}),!R.is(
attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")&&$(node,{"fill-opacity":attrs["fill-opacity"]});clr[has]("opacity")&&$(node,{"fill-opacity":1<clr.opacity?clr.opacity/100:clr.opacity});case"stroke":clr=R.getRGB(value),node.setAttribute(att,clr.hex),"stroke"==att&&clr[has]("opacity")&&$(node,{"stroke-opacity":1<clr.opacity?clr.opacity/100:clr.opacity}),"stroke"==att&&o._.arrows&&("startString"in o._.arrows&&addArrow(o,o._.arrows.startString),"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1));break;case"gradient":"circle"!=o.type&&"ellipse"!=o.type&&"r"==Str(value).charAt()||addGradientFill(o,value);break;case"opacity":
attrs.gradient&&!attrs[has]("stroke-opacity")&&$(node,{"stroke-opacity":1<value?value/100:value});case"fill-opacity":if(attrs.gradient){(gradient=R._g.doc.getElementById(node.getAttribute("fill").replace(/^url\(#|\)$/g,E)))&&(stops=gradient.getElementsByTagName("stop"),$(stops[stops.length-1],{"stop-opacity":value}));break}default:"font-size"==att&&(value=toInt(value,10)+"px");var cssrule=att.replace(/(\-.)/g,function(w){return w.substring(1).toUpperCase()});node.style[cssrule]=value,o._.dirty=1,node.setAttribute(att,value)}}tuneText(o,params),node.style.visibility=vis}function getRealNode(node){
return node.parentNode&&"a"===node.parentNode.tagName.toLowerCase()?node.parentNode:node}function Element(node,svg){(this[0]=this.node=node).raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),node.raphaelid=this.id,this.matrix=R.matrix(),this.realPath=null,this.paper=svg,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},svg.bottom||(svg.bottom=this),this.prev=svg.top,svg.top&&(svg.top.next=this),(svg.top=this).next=null}var $=function(el,attr){if(attr)for(var key in"string"==typeof el&&(el=$(el)),attr)attr[has](key)&&("xlink:"==key.substring(0,6)?el.setAttributeNS(xlink,key.substring(6),Str(
attr[key])):el.setAttribute(key,Str(attr[key])));else(el=R._g.doc.createElementNS("http://www.w3.org/2000/svg",el)).style&&(el.style.webkitTapHighlightColor="rgba(0,0,0,0)");return el},fillurl=function(id){if((location=document.documentMode)&&(9===location||10===location))return"url('#"+id+"')";var location=document.location;return"url('"+(location.protocol+"//"+location.host+location.pathname+location.search)+"#"+id+"')"},dasharray={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},tuneText=function(dif,params){if("text"==dif.type&&(params[has]("text")||params[has](
"font")||params[has]("font-size")||params[has]("x")||params[has]("y"))){var a=dif.attrs,node=dif.node,fontSize=node.firstChild?toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild,E).getPropertyValue("font-size"),10):10;if(params[has]("text")){for(a.text=params.text;node.firstChild;)node.removeChild(node.firstChild);for(var tspan,texts=Str(params.text).split("\n"),tspans=[],i=0,ii=texts.length;i<ii;i++)tspan=$("tspan"),i&&$(tspan,{dy:1.2*fontSize,x:a.x}),tspan.appendChild(R._g.doc.createTextNode(texts[i])),node.appendChild(tspan),tspans[i]=tspan}else for(i=0,ii=(tspans=node.getElementsByTagName("tspan")).length;i<ii;i++)i?$(tspans[i],{dy:1.2*fontSize,
x:a.x}):$(tspans[0],{dy:0});$(node,{x:a.x,y:a.y}),dif._.dirty=1;dif=dif._getBBox(),dif=a.y-(dif.y+dif.height/2);dif&&R.is(dif,"finite")&&$(tspans[0],{dy:dif})}},elproto=R.el;(Element.prototype=elproto).constructor=Element,R._engine.path=function(pathString,p){var el=$("path");p.canvas&&p.canvas.appendChild(el);p=new Element(el,p);return p.type="path",setFillAndStroke(p,{fill:"none",stroke:"#000",path:pathString}),p},elproto.rotate=function(deg,cx,cy){return this.removed||((deg=Str(deg).split(separator)).length-1&&(cx=toFloat(deg[1]),cy=toFloat(deg[2])),deg=toFloat(deg[0]),null==cy&&(cx=cy),null!=cx&&null!=cy||(cx=(bbox=this.getBBox(1)).x+bbox.width/2,
cy=bbox.y+bbox.height/2),this.transform(this._.transform.concat([["r",deg,cx,cy]]))),this;var bbox},elproto.scale=function(sx,sy,cx,cy){return this.removed||((sx=Str(sx).split(separator)).length-1&&(sy=toFloat(sx[1]),cx=toFloat(sx[2]),cy=toFloat(sx[3])),sx=toFloat(sx[0]),null==sy&&(sy=sx),null==cy&&(cx=cy),null!=cx&&null!=cy||(bbox=this.getBBox(1)),cx=null==cx?bbox.x+bbox.width/2:cx,cy=null==cy?bbox.y+bbox.height/2:cy,this.transform(this._.transform.concat([["s",sx,sy,cx,cy]]))),this;var bbox},elproto.translate=function(dx,dy){return this.removed||((dx=Str(dx).split(separator)).length-1&&(dy=toFloat(dx[1])),dx=toFloat(dx[0])||0,dy=+dy||0,this.transform(
this._.transform.concat([["t",dx,dy]]))),this},elproto.transform=function(tstr){var sw=this._;return null==tstr?sw.transform:(R._extractTransform(this,tstr),this.clip&&$(this.clip,{transform:this.matrix.invert()}),this.pattern&&updatePosition(this),this.node&&$(this.node,{transform:this.matrix}),1==sw.sx&&1==sw.sy||(sw=this.attrs[has]("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":sw})),this)},elproto.hide=function(){return this.removed||(this.node.style.display="none"),this},elproto.show=function(){return this.removed||(this.node.style.display=""),this},elproto.remove=function(){var node=getRealNode(this.node);if(
!this.removed&&node.parentNode){var i,paper=this.paper;for(i in paper.__set__&&paper.__set__.exclude(this),eve.unbind("raphael.*.*."+this.id),this.gradient&&paper.defs.removeChild(this.gradient),R._tear(this,paper),node.parentNode.removeChild(node),this.removeData(),this)this[i]="function"==typeof this[i]?R._removedFactory(i):null;this.removed=!0}},elproto._getBBox=function(){var hide;"none"==this.node.style.display&&(this.show(),hide=!0);var containerStyle,canvasHidden=!1;this.paper.canvas.parentElement?containerStyle=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(containerStyle=this.paper.canvas.parentNode.style),
containerStyle&&"none"==containerStyle.display&&(canvasHidden=!0,containerStyle.display="");var bbox={};try{bbox=this.node.getBBox()}catch(e){bbox={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{bbox=bbox||{},canvasHidden&&(containerStyle.display="none")}return hide&&this.hide(),bbox},elproto.attr=function(name,value){if(this.removed)return this;if(null==name){var a,res={};for(a in this.attrs)this.attrs[has](a)&&(res[a]=this.attrs[a]);return res.gradient&&"none"==res.fill&&(res.fill=res.gradient)&&delete res.gradient,res.transform=this._.transform,res}if(null==value&&R.is(name,"string")){if(
"fill"==name&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==name)return this._.transform;for(var names=name.split(separator),out={},i=0,ii=names.length;i<ii;i++)(name=names[i])in this.attrs?out[name]=this.attrs[name]:R.is(this.paper.customAttributes[name],"function")?out[name]=this.paper.customAttributes[name].def:out[name]=R._availableAttrs[name];return ii-1?out:out[names[0]]}if(null==value&&R.is(name,"array")){for(out={},i=0,ii=name.length;i<ii;i++)out[name[i]]=this.attr(name[i]);return out}var params,key;for(key in null!=value?(params={})[name]=value:null!=name&&R.is(name,"object")&&(params=name),params)eve(
"raphael.attr."+key+"."+this.id,this,params[key]);for(key in this.paper.customAttributes)if(this.paper.customAttributes[has](key)&&params[has](key)&&R.is(this.paper.customAttributes[key],"function")){var subkey,par=this.paper.customAttributes[key].apply(this,[].concat(params[key]));for(subkey in this.attrs[key]=params[key],par)par[has](subkey)&&(params[subkey]=par[subkey])}return setFillAndStroke(this,params),this},elproto.toFront=function(){if(this.removed)return this;var svg=getRealNode(this.node);svg.parentNode.appendChild(svg);svg=this.paper;return svg.top!=this&&R._tofront(this,svg),this},elproto.toBack=function(){if(this.removed)return this
;var node=getRealNode(this.node),parentNode=node.parentNode;parentNode.insertBefore(node,parentNode.firstChild),R._toback(this,this.paper);this.paper;return this},elproto.insertAfter=function(element){if(this.removed||!element)return this;var node=getRealNode(this.node),afterNode=getRealNode(element.node||element[element.length-1].node);return afterNode.nextSibling?afterNode.parentNode.insertBefore(node,afterNode.nextSibling):afterNode.parentNode.appendChild(node),R._insertafter(this,element,this.paper),this},elproto.insertBefore=function(element){if(this.removed||!element)return this;var node=getRealNode(this.node),beforeNode=getRealNode(
element.node||element[0].node);return beforeNode.parentNode.insertBefore(node,beforeNode),R._insertbefore(this,element,this.paper),this},elproto.blur=function(size){var fltr,blur,t=this;return 0!=+size?(fltr=$("filter"),blur=$("feGaussianBlur"),t.attrs.blur=size,fltr.id=R.createUUID(),$(blur,{stdDeviation:+size||1.5}),fltr.appendChild(blur),t.paper.defs.appendChild(fltr),t._blur=fltr,$(t.node,{filter:"url(#"+fltr.id+")"})):(t._blur&&(t._blur.parentNode.removeChild(t._blur),delete t._blur,delete t.attrs.blur),t.node.removeAttribute("filter")),t},R._engine.circle=function(res,x,y,r){var el=$("circle");res.canvas&&res.canvas.appendChild(el);res=new Element(el,
res);return res.attrs={cx:x,cy:y,r:r,fill:"none",stroke:"#000"},res.type="circle",$(el,res.attrs),res},R._engine.rect=function(res,x,y,w,h,r){var el=$("rect");res.canvas&&res.canvas.appendChild(el);res=new Element(el,res);return res.attrs={x:x,y:y,width:w,height:h,rx:r||0,ry:r||0,fill:"none",stroke:"#000"},res.type="rect",$(el,res.attrs),res},R._engine.ellipse=function(res,x,y,rx,ry){var el=$("ellipse");res.canvas&&res.canvas.appendChild(el);res=new Element(el,res);return res.attrs={cx:x,cy:y,rx:rx,ry:ry,fill:"none",stroke:"#000"},res.type="ellipse",$(el,res.attrs),res},R._engine.image=function(res,src,x,y,w,h){var el=$("image");$(el,{x:x,y:y,width:w,
height:h,preserveAspectRatio:"none"}),el.setAttributeNS(xlink,"href",src),res.canvas&&res.canvas.appendChild(el);res=new Element(el,res);return res.attrs={x:x,y:y,width:w,height:h,src:src},res.type="image",res},R._engine.text=function(res,x,y,text){var el=$("text");res.canvas&&res.canvas.appendChild(el);res=new Element(el,res);return res.attrs={x:x,y:y,"text-anchor":"middle",text:text,"font-family":R._availableAttrs["font-family"],"font-size":R._availableAttrs["font-size"],stroke:"none",fill:"#000"},res.type="text",setFillAndStroke(res,res.attrs),res},R._engine.setSize=function(width,height){return this.width=width||this.width,this.height=height||this.height
,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},R._engine.create=function(){var css=R._getContainer.apply(0,arguments),container=css&&css.container,x=css.x,y=css.y,width=css.width,height=css.height;if(!container)throw new Error("SVG container not found.");var isFloating,cnvs=$("svg"),css="overflow:hidden;",x=x||0,y=y||0;return $(cnvs,{height:height=height||342,version:1.1,width:width=width||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==container?(
cnvs.style.cssText=css+"position:absolute;left:"+x+"px;top:"+y+"px",R._g.doc.body.appendChild(cnvs),isFloating=1):(cnvs.style.cssText=css+"position:relative",container.firstChild?container.insertBefore(cnvs,container.firstChild):container.appendChild(cnvs)),(container=new R._Paper).width=width,container.height=height,container.canvas=cnvs,container.clear(),container._left=container._top=0,isFloating&&(container.renderfix=function(){}),container.renderfix(),container},R._engine.setViewBox=function(x,y,w,h,fit){eve("raphael.setViewBox",this,this._viewBox,[x,y,w,h,fit]);var sw,vb=this.getSize(),size=mmax(w/vb.width,h/vb.height),top=this.top,
aspectRatio=fit?"xMidYMid meet":"xMinYMin",vb=null==x?(this._vbSize&&(size=1),delete this._vbSize,"0 0 "+this.width+S+this.height):(this._vbSize=size,x+S+y+S+w+S+h);for($(this.canvas,{viewBox:vb,preserveAspectRatio:aspectRatio});size&&top;)sw="stroke-width"in top.attrs?top.attrs["stroke-width"]:1,top.attr({"stroke-width":sw}),top._.dirty=1,top._.dirtyT=1,top=top.prev;return this._viewBox=[x,y,w,h,!!fit],this},R.prototype.renderfix=function(){var pos,cnvs=this.canvas,s=cnvs.style;try{pos=cnvs.getScreenCTM()||cnvs.createSVGMatrix()}catch(e){pos=cnvs.createSVGMatrix()}var left=-pos.e%1,top=-pos.f%1;(left||top)&&(left&&(this._left=(this._left+left)%1,
s.left=this._left+"px"),top&&(this._top=(this._top+top)%1,s.top=this._top+"px"))},R.prototype.clear=function(){R.eve("raphael.clear",this);for(var c=this.canvas;c.firstChild;)c.removeChild(c.firstChild);this.bottom=this.top=null,(this.desc=$("desc")).appendChild(R._g.doc.createTextNode("Created with Raphaël "+R.version)),c.appendChild(this.desc),c.appendChild(this.defs=$("defs"))},R.prototype.remove=function(){for(var i in eve("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[i]="function"==typeof this[i]?R._removedFactory(i):null};var method,setproto=R.st;for(method in elproto)elproto[has](method
)&&!setproto[has](method)&&(setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname].apply(el,arg)})}}(method))}}.apply(exports,__WEBPACK_AMD_DEFINE_RESULT__);void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,exports,__WEBPACK_AMD_DEFINE_RESULT__){var __WEBPACK_AMD_DEFINE_RESULT__=[__WEBPACK_AMD_DEFINE_RESULT__(1)],__WEBPACK_AMD_DEFINE_RESULT__=function(R){if(!R||R.vml){function compensation(deg,dx,dy){var m=R.matrix();return m.rotate(-deg,.5,.5),{dx:m.x(dx,dy),dy:m.y(dx,dy)}}function setCoords(fill,sx,sy,dx,dy,deg){var c,_=fill._,
m=fill.matrix,fillpos=_.fillpos,o=fill.node,s=o.style,y=1,flip="",kx=zoom/sx,fill=zoom/sy;s.visibility="hidden",sx&&sy&&(o.coordsize=abs(kx)+S+abs(fill),s.rotation=deg*(sx*sy<0?-1:1),deg&&(dx=(c=compensation(deg,dx,dy)).dx,dy=c.dy),sx<0&&(flip+="x"),sy<0&&(flip+=" y")&&(y=-1),s.flip=flip,o.coordorigin=dx*-kx+S+dy*-fill,(fillpos||_.fillsize)&&(fill=(fill=o.getElementsByTagName("fill"))&&fill[0],o.removeChild(fill),fillpos&&(c=compensation(deg,m.x(fillpos[0],fillpos[1]),m.y(fillpos[0],fillpos[1])),fill.position=c.dx*y+S+c.dy*y),_.fillsize&&(fill.size=_.fillsize[0]*abs(sx)+S+_.fillsize[1]*abs(sy)),o.appendChild(fill)),s.visibility="visible")}
var has="hasOwnProperty",Str=String,toFloat=parseFloat,math=Math,round=math.round,mmax=math.max,mmin=math.min,abs=math.abs,separator=/[, ]+/,eve=R.eve,S=" ",E="",map={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},bites=/([clmz]),?([^clmz]*)/gi,blurregexp=/ progid:\S+Blur\([^\)]+\)/g,val=/-?[^,\s-]+/g,cssDot="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",zoom=21600,pathTypes={path:1,rect:1,image:1},ovalTypes={circle:1,ellipse:1};R.toString=function(){return"Your browser doesnt support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};function addArrow(stroke,value,se){for(var values=Str(value
).toLowerCase().split("-"),se=se?"end":"start",i=values.length,type="classic",w="medium",h="medium";i--;)switch(values[i]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":type=values[i];break;case"wide":case"narrow":h=values[i];break;case"long":case"short":w=values[i]}stroke=stroke.node.getElementsByTagName("stroke")[0];stroke[se+"arrow"]=type,stroke[se+"arrowlength"]=w,stroke[se+"arrowwidth"]=h}function setFillAndStroke(o,params){o.attrs=o.attrs||{};var par,rect,div,dstyle,newstroke,width,dasharray,brect=o.node,a=o.attrs,s=brect.style,newpath=pathTypes[o.type]&&(
params.x!=a.x||params.y!=a.y||params.width!=a.width||params.height!=a.height||params.cx!=a.cx||params.cy!=a.cy||params.rx!=a.rx||params.ry!=a.ry||params.r!=a.r),rx=ovalTypes[o.type]&&(a.cx!=params.cx||a.cy!=params.cy||a.r!=params.r||a.rx!=params.rx||a.ry!=params.ry),res=o;for(par in params)params[has](par)&&(a[par]=params[par]);if(newpath&&(a.path=R._getPath[o.type](o),o._.dirty=1),params.href&&(brect.href=params.href),params.title&&(brect.title=params.title),params.target&&(brect.target=params.target),params.cursor&&(s.cursor=params.cursor),"blur"in params&&o.blur(params.blur),(params.path&&"path"==o.type||newpath)&&(brect.path=function(path){
var total=/[ahqstv]/gi,command=R._pathToAbsolute;if(Str(path).match(total)&&(command=R._path2curve),total=/[clmz]/g,command==R._pathToAbsolute&&!Str(path).match(total)){var res=Str(path).replace(bites,function(all,command,args){var vals=[],isMove="m"==command.toLowerCase(),res=map[command];return args.replace(val,function(value){isMove&&2==vals.length&&(res+=vals+map["m"==command?"l":"L"],vals=[]),vals.push(round(value*zoom))}),res+vals});return res}for(var p,r,pa=command(path),res=[],i=0,ii=pa.length;i<ii;i++){p=pa[i],"z"==(r=pa[i][0].toLowerCase())&&(r="x");for(var j=1,jj=p.length;j<jj;j++)r+=round(p[j]*zoom)+(j!=jj-1?",":E);res.push(r)}return res.join(S)
}(~Str(a.path).toLowerCase().indexOf("r")?R._pathToAbsolute(a.path):a.path),o._.dirty=1,"image"==o.type&&(o._.fillpos=[a.x,a.y],o._.fillsize=[a.width,a.height],setCoords(o,1,1,0,0,0))),"transform"in params&&o.transform(params.transform),rx&&(dstyle=+a.cx,rect=+a.cy,rx=+a.rx||+a.r||0,div=+a.ry||+a.r||0,brect.path=R.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",round((dstyle-rx)*zoom),round((rect-div)*zoom),round((dstyle+rx)*zoom),round((rect+div)*zoom),round(dstyle*zoom)),o._.dirty=1),"clip-rect"in params&&(4==(rect=Str(params["clip-rect"]).split(separator)).length&&(rect[2]=+rect[2]+ +rect[0],rect[3]=+rect[3]+ +rect[1],(dstyle=(
div=brect.clipRect||R._g.doc.createElement("div")).style).clip=R.format("rect({1}px {2}px {3}px {0}px)",rect),brect.clipRect||(dstyle.position="absolute",dstyle.top=0,dstyle.left=0,dstyle.width=o.paper.width+"px",dstyle.height=o.paper.height+"px",brect.parentNode.insertBefore(div,brect),div.appendChild(brect),brect.clipRect=div)),params["clip-rect"]||brect.clipRect&&(brect.clipRect.style.clip="auto")),o.textpath&&(width=o.textpath.style,params.font&&(width.font=params.font),params["font-family"]&&(width.fontFamily='"'+params["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,E)+'"'),params["font-size"]&&(width.fontSize=params["font-size"]),
params["font-weight"]&&(width.fontWeight=params["font-weight"]),params["font-style"]&&(width.fontStyle=params["font-style"])),"arrow-start"in params&&addArrow(res,params["arrow-start"]),"arrow-end"in params&&addArrow(res,params["arrow-end"],1),null==params.opacity&&null==params.fill&&null==params.src&&null==params.stroke&&null==params["stroke-width"]&&null==params["stroke-opacity"]&&null==params["fill-opacity"]&&null==params["stroke-dasharray"]&&null==params["stroke-miterlimit"]&&null==params["stroke-linejoin"]&&null==params["stroke-linecap"]||((width=(width=brect.getElementsByTagName("fill"))&&width[0])||(width=createNode("fill")),
"image"==o.type&&params.src&&(width.src=params.src),params.fill&&(width.on=!0),null!=width.on&&"none"!=params.fill&&null!==params.fill||(width.on=!1),width.on&&params.fill&&((fontSize=Str(params.fill).match(R._ISURL))?(width.parentNode==brect&&brect.removeChild(width),width.rotate=!0,width.src=fontSize[1],width.type="tile",newstroke=o.getBBox(1),width.position=newstroke.x+S+newstroke.y,o._.fillpos=[newstroke.x,newstroke.y],R._preload(fontSize[1],function(){o._.fillsize=[this.offsetWidth,this.offsetHeight]})):(width.color=R.getRGB(params.fill).hex,width.src=E,width.type="solid",R.getRGB(params.fill).error&&(res.type in{circle:1,ellipse:1}||"r"!=Str(
params.fill).charAt())&&addGradientFill(res,params.fill,width)&&(a.fill="none",a.gradient=params.fill,width.rotate=!1))),("fill-opacity"in params||"opacity"in params)&&(dasharray=((+a["fill-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+R.getRGB(params.fill).o+1||2)-1),dasharray=mmin(mmax(dasharray,0),1),width.opacity=dasharray,width.src&&(width.color="none")),brect.appendChild(width),newstroke=!1,(fontSize=brect.getElementsByTagName("stroke")&&brect.getElementsByTagName("stroke")[0])||(newstroke=fontSize=createNode("stroke")),(
params.stroke&&"none"!=params.stroke||params["stroke-width"]||null!=params["stroke-opacity"]||params["stroke-dasharray"]||params["stroke-miterlimit"]||params["stroke-linejoin"]||params["stroke-linecap"])&&(fontSize.on=!0),"none"!=params.stroke&&null!==params.stroke&&null!=fontSize.on&&0!=params.stroke&&0!=params["stroke-width"]||(fontSize.on=!1),width=R.getRGB(params.stroke),fontSize.on&&params.stroke&&(fontSize.color=width.hex),dasharray=((+a["stroke-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+width.o+1||2)-1),width=.75*(toFloat(params["stroke-width"])||1),dasharray=mmin(mmax(dasharray,0),1),null==params["stroke-width"]&&(width=a["stroke-width"]),
params["stroke-width"]&&(fontSize.weight=width),width&&width<1&&(dasharray*=width)&&(fontSize.weight=1),fontSize.opacity=dasharray,params["stroke-linejoin"]&&(fontSize.joinstyle=params["stroke-linejoin"]||"miter"),fontSize.miterlimit=params["stroke-miterlimit"]||8,params["stroke-linecap"]&&(fontSize.endcap="butt"==params["stroke-linecap"]?"flat":"square"==params["stroke-linecap"]?"square":"round"),"stroke-dasharray"in params&&(dasharray={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},fontSize.dashstyle=dasharray[has](
params["stroke-dasharray"])?dasharray[params["stroke-dasharray"]]:E),newstroke&&brect.appendChild(fontSize)),"text"==res.type){res.paper.canvas.style.display=E;var brect=res.paper.span,fontSize=a.font&&a.font.match(/\d+(?:\.\d*)?(?=px)/),s=brect.style;a.font&&(s.font=a.font),a["font-family"]&&(s.fontFamily=a["font-family"]),a["font-weight"]&&(s.fontWeight=a["font-weight"]),a["font-style"]&&(s.fontStyle=a["font-style"]),fontSize=toFloat(a["font-size"]||fontSize&&fontSize[0])||10,s.fontSize=100*fontSize+"px",res.textpath.string&&(brect.innerHTML=Str(res.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"))
;brect=brect.getBoundingClientRect();res.W=a.w=(brect.right-brect.left)/100,res.H=a.h=(brect.bottom-brect.top)/100,res.X=a.x,res.Y=a.y+res.H/2,("x"in params||"y"in params)&&(res.path.v=R.format("m{0},{1}l{2},{1}",round(a.x*zoom),round(a.y*zoom),round(a.x*zoom)+1));for(var dirtyattrs=["x","y","text","font","font-family","font-weight","font-style","font-size"],d=0,dd=dirtyattrs.length;d<dd;d++)if(dirtyattrs[d]in params){res._.dirty=1;break}switch(a["text-anchor"]){case"start":res.textpath.style["v-text-align"]="left",res.bbx=res.W/2;break;case"end":res.textpath.style["v-text-align"]="right",res.bbx=-res.W/2;break;default:
res.textpath.style["v-text-align"]="center",res.bbx=0}res.textpath.style["v-text-kern"]=!0}}function Element(node,vml){(this[0]=this.node=node).raphael=!0,this.id=R._oid++,node.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=vml,this.matrix=R.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},vml.bottom||(vml.bottom=this),this.prev=vml.top,vml.top&&(vml.top.next=this),(vml.top=this).next=null}var createNode,addGradientFill=function(o,gradient,fill){o.attrs=o.attrs||{};o.attrs;var pow=Math.pow,type="linear",fxfy=".5 .5";if(o.attrs.gradient=gradient,gradient=(gradient=Str(gradient).replace(R._radial_gradient,function(all,fx,
fy){return type="radial",fx&&fy&&(fx=toFloat(fx),fy=toFloat(fy),.25<pow(fx-.5,2)+pow(fy-.5,2)&&(fy=math.sqrt(.25-pow(fx-.5,2))*(2*(.5<fy)-1)+.5),fxfy=fx+S+fy),E})).split(/\s*\-\s*/),"linear"==type){var angle=gradient.shift(),angle=-toFloat(angle);if(isNaN(angle))return null}var dots=R._parseDots(gradient);if(!dots)return null;if(o=o.shape||o.node,dots.length){o.removeChild(fill),fill.on=!0,fill.method="none",fill.color=dots[0].color,fill.color2=dots[dots.length-1].color;for(var clrs=[],i=0,ii=dots.length;i<ii;i++)dots[i].offset&&clrs.push(dots[i].offset+S+dots[i].color);fill.colors=clrs.length?clrs.join():"0% "+fill.color,"radial"==type?(
fill.type="gradientTitle",fill.focus="100%",fill.focussize="0 0",fill.focusposition=fxfy,fill.angle=0):(fill.type="gradient",fill.angle=(270-angle)%360),o.appendChild(fill)}return 1},elproto=R.el;(Element.prototype=elproto).constructor=Element,elproto.transform=function(bb){if(null==bb)return this._.transform;var oldt,dy=this.paper._viewBoxShift,split=dy?"s"+[dy.scale,dy.scale]+"-1-1t"+[dy.dx,dy.dy]:E;dy&&(oldt=bb=Str(bb).replace(/\.{3}|\u2026/g,this._.transform||E)),R._extractTransform(this,split+bb);var matrix=this.matrix.clone(),skew=this.skew,o=this.node,dx=~Str(this.attrs.fill).indexOf("-"),dy=!Str(this.attrs.fill).indexOf("url(")
;return matrix.translate(1,1),dy||dx||"image"==this.type?(skew.matrix="1 0 0 1",skew.offset="0 0",split=matrix.split(),dx&&split.noRotation||!split.isSimple?(o.style.filter=matrix.toFilter(),bb=this.getBBox(),dy=this.getBBox(1),dx=bb.x-dy.x,dy=bb.y-dy.y,o.coordorigin=dx*-zoom+S+dy*-zoom,setCoords(this,1,1,dx,dy,0)):(o.style.filter=E,setCoords(this,split.scalex,split.scaley,split.dx,split.dy,split.rotate))):(o.style.filter=E,skew.matrix=Str(matrix),skew.offset=matrix.offset()),null!==oldt&&(this._.transform=oldt,R._extractTransform(this,oldt)),this},elproto.rotate=function(deg,cx,cy){return this.removed?this:null!=deg?((deg=Str(deg).split(separator)
).length-1&&(cx=toFloat(deg[1]),cy=toFloat(deg[2])),deg=toFloat(deg[0]),null==cy&&(cx=cy),null!=cx&&null!=cy||(cx=(bbox=this.getBBox(1)).x+bbox.width/2,cy=bbox.y+bbox.height/2),this._.dirtyT=1,this.transform(this._.transform.concat([["r",deg,cx,cy]])),this):void 0;var bbox},elproto.translate=function(dx,dy){return this.removed||((dx=Str(dx).split(separator)).length-1&&(dy=toFloat(dx[1])),dx=toFloat(dx[0])||0,dy=+dy||0,this._.bbox&&(this._.bbox.x+=dx,this._.bbox.y+=dy),this.transform(this._.transform.concat([["t",dx,dy]]))),this},elproto.scale=function(sx,sy,cx,cy){return this.removed||((sx=Str(sx).split(separator)).length-1&&(sy=toFloat(sx[1]),cx=toFloat(
sx[2]),cy=toFloat(sx[3]),isNaN(cx)&&(cx=null),isNaN(cy)&&(cy=null)),sx=toFloat(sx[0]),null==sy&&(sy=sx),null==cy&&(cx=cy),null!=cx&&null!=cy||(bbox=this.getBBox(1)),cx=null==cx?bbox.x+bbox.width/2:cx,cy=null==cy?bbox.y+bbox.height/2:cy,this.transform(this._.transform.concat([["s",sx,sy,cx,cy]])),this._.dirtyT=1),this;var bbox},elproto.hide=function(){return this.removed||(this.node.style.display="none"),this},elproto.show=function(){return this.removed||(this.node.style.display=E),this},elproto.auxGetBBox=R.el.getBBox,elproto.getBBox=function(){var b=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var c={},z=1/this.paper._viewBoxShift.scale
;return c.x=b.x-this.paper._viewBoxShift.dx,c.x*=z,c.y=b.y-this.paper._viewBoxShift.dy,c.y*=z,c.width=b.width*z,c.height=b.height*z,c.x2=c.x+c.width,c.y2=c.y+c.height,c}return b},elproto._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},elproto.remove=function(){if(!this.removed&&this.node.parentNode){for(var i in this.paper.__set__&&this.paper.__set__.exclude(this),R.eve.unbind("raphael.*.*."+this.id),R._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[i]="function"==typeof this[i]?R._removedFactory(i
):null;this.removed=!0}},elproto.attr=function(name,value){if(this.removed)return this;if(null==name){var a,res={};for(a in this.attrs)this.attrs[has](a)&&(res[a]=this.attrs[a]);return res.gradient&&"none"==res.fill&&(res.fill=res.gradient)&&delete res.gradient,res.transform=this._.transform,res}if(null==value&&R.is(name,"string")){if("fill"==name&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var names=name.split(separator),out={},i=0,ii=names.length;i<ii;i++)(name=names[i])in this.attrs?out[name]=this.attrs[name]:R.is(this.paper.customAttributes[name],"function"
)?out[name]=this.paper.customAttributes[name].def:out[name]=R._availableAttrs[name];return ii-1?out:out[names[0]]}if(this.attrs&&null==value&&R.is(name,"array")){for(out={},i=0,ii=name.length;i<ii;i++)out[name[i]]=this.attr(name[i]);return out}var params,key;for(key in null!=value&&((params={})[name]=value),null==value&&R.is(name,"object")&&(params=name),params)eve("raphael.attr."+key+"."+this.id,this,params[key]);if(params){for(key in this.paper.customAttributes)if(this.paper.customAttributes[has](key)&&params[has](key)&&R.is(this.paper.customAttributes[key],"function")){var subkey,par=this.paper.customAttributes[key].apply(this,[].concat(params[key]));for(
subkey in this.attrs[key]=params[key],par)par[has](subkey)&&(params[subkey]=par[subkey])}params.text&&"text"==this.type&&(this.textpath.string=params.text),setFillAndStroke(this,params)}return this},elproto.toFront=function(){return this.removed||this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&R._tofront(this,this.paper),this},elproto.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),R._toback(this,this.paper)),this},elproto.insertAfter=function(element){return this.removed||(element.constructor==R.st.constructor&&(
element=element[element.length-1]),element.node.nextSibling?element.node.parentNode.insertBefore(this.node,element.node.nextSibling):element.node.parentNode.appendChild(this.node),R._insertafter(this,element,this.paper)),this},elproto.insertBefore=function(element){return this.removed||(element.constructor==R.st.constructor&&(element=element[0]),element.node.parentNode.insertBefore(this.node,element.node),R._insertbefore(this,element,this.paper)),this},elproto.blur=function(size){var s=this.node.runtimeStyle,f=(f=s.filter).replace(blurregexp,E);return 0!=+size?(this.attrs.blur=size,s.filter=f+S+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(
+size||1.5)+")",s.margin=R.format("-{0}px 0 0 -{0}px",round(+size||1.5))):(s.filter=f,s.margin=0,delete this.attrs.blur),this},R._engine.path=function(pathString,skew){var el=createNode("shape");el.style.cssText=cssDot,el.coordsize=zoom+S+zoom,el.coordorigin=skew.coordorigin;var p=new Element(el,skew),attr={fill:"none",stroke:"#000"};pathString&&(attr.path=pathString),p.type="path",p.path=[],p.Path=E,setFillAndStroke(p,attr),skew.canvas&&skew.canvas.appendChild(el);skew=createNode("skew");return skew.on=!0,el.appendChild(skew),p.skew=skew,p.transform(E),p},R._engine.rect=function(a,x,y,w,h,r){var path=R._rectPath(x,y,w,h,r),res=a.path(path),a=res.attrs
;return res.X=a.x=x,res.Y=a.y=y,res.W=a.width=w,res.H=a.height=h,a.r=r,a.path=path,res.type="rect",res},R._engine.ellipse=function(res,x,y,rx,ry){res=res.path(),res.attrs;return res.X=x-rx,res.Y=y-ry,res.W=2*rx,res.H=2*ry,res.type="ellipse",setFillAndStroke(res,{cx:x,cy:y,rx:rx,ry:ry}),res},R._engine.circle=function(res,x,y,r){res=res.path(),res.attrs;return res.X=x-r,res.Y=y-r,res.W=res.H=2*r,res.type="circle",setFillAndStroke(res,{cx:x,cy:y,r:r}),res},R._engine.image=function(fill,src,x,y,w,h){var path=R._rectPath(x,y,w,h),res=fill.path(path).attr({stroke:"none"}),a=res.attrs,node=res.node,fill=node.getElementsByTagName("fill")[0];return a.src=src,
res.X=a.x=x,res.Y=a.y=y,res.W=a.width=w,res.H=a.height=h,a.path=path,res.type="image",fill.parentNode==node&&node.removeChild(fill),fill.rotate=!0,fill.src=src,fill.type="tile",res._.fillpos=[x,y],res._.fillsize=[w,h],node.appendChild(fill),setCoords(res,1,1,0,0,0),res},R._engine.text=function(skew,x,y,text){var el=createNode("shape"),path=createNode("path"),o=createNode("textpath");x=x||0,y=y||0,text=text||"",path.v=R.format("m{0},{1}l{2},{1}",round(x*zoom),round(y*zoom),round(x*zoom)+1),path.textpathok=!0,o.string=Str(text),o.on=!0,el.style.cssText=cssDot,el.coordsize=zoom+S+zoom,el.coordorigin="0 0";var p=new Element(el,skew),attr={fill:"#000",
stroke:"none",font:R._availableAttrs.font,text:text};p.shape=el,p.path=path,p.textpath=o,p.type="text",p.attrs.text=Str(text),p.attrs.x=x,p.attrs.y=y,p.attrs.w=1,p.attrs.h=1,setFillAndStroke(p,attr),el.appendChild(o),el.appendChild(path),skew.canvas.appendChild(el);skew=createNode("skew");return skew.on=!0,el.appendChild(skew),p.skew=skew,p.transform(E),p},R._engine.setSize=function(width,height){var cs=this.canvas.style;return(this.width=width)==+width&&(width+="px"),(this.height=height)==+height&&(height+="px"),cs.width=width,cs.height=height,cs.clip="rect(0 "+width+" "+height+" 0)",this._viewBox&&R._engine.setViewBox.apply(this,this._viewBox),this},
R._engine.setViewBox=function(x,y,w,h,fit){R.eve("raphael.setViewBox",this,this._viewBox,[x,y,w,h,fit]);var H,paperSize=this.getSize(),W=paperSize.width,height=paperSize.height;return fit&&(w*(H=height/h)<W&&(x-=(W-w*H)/2/H),h*(W=W/w)<height&&(y-=(height-h*W)/2/W)),this._viewBox=[x,y,w,h,!!fit],this._viewBoxShift={dx:-x,dy:-y,scale:paperSize},this.forEach(function(el){el.transform("...")}),this},R._engine.initWin=function(win){var doc=win.document;(doc.styleSheets.length<31?doc.createStyleSheet():doc.styleSheets[0]).addRule(".rvml","behavior:url(#default#VML)");try{doc.namespaces.rvml||doc.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),
createNode=function(tagName){return doc.createElement("<rvml:"+tagName+' class="rvml">')}}catch(e){createNode=function(tagName){return doc.createElement("<"+tagName+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},R._engine.initWin(R._g.win),R._engine.create=function(){var cs=R._getContainer.apply(0,arguments),container=cs.container,height=cs.height,width=cs.width,x=cs.x,y=cs.y;if(!container)throw new Error("VML container not found.");var res=new R._Paper,c=res.canvas=R._g.doc.createElement("div"),cs=c.style,x=x||0,y=y||0,width=width||512,height=height||342;return(res.width=width)==+width&&(width+="px"),(res.height=height)==+height&&(height+="px"),
res.coordsize=216e5+S+216e5,res.coordorigin="0 0",res.span=R._g.doc.createElement("span"),res.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",c.appendChild(res.span),cs.cssText=R.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",width,height),1==container?(R._g.doc.body.appendChild(c),cs.left=x+"px",cs.top=y+"px",cs.position="absolute"):container.firstChild?container.insertBefore(c,container.firstChild):container.appendChild(c),res.renderfix=function(){},res},R.prototype.clear=function(){R.eve("raphael.clear",this),this.canvas.innerHTML=E,
this.span=R._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},R.prototype.remove=function(){for(var i in R.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[i]="function"==typeof this[i]?R._removedFactory(i):null;return!0};var method,setproto=R.st;for(method in elproto)elproto[has](method)&&!setproto[has](method)&&(setproto[method]=function(methodname){return function(){var arg=arguments;return this.forEach(function(el){el[methodname].apply(el,arg)})}}(method))}
}.apply(exports,__WEBPACK_AMD_DEFINE_RESULT__);void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}],__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0);function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var modules,installedModules}),define("scale.raphael",["jquery","raphael"],function($,Raphael){return function(container,width,height){
var nestedWrapper,wrapper=container.style?container:document.getElementById(container);wrapper.style.position||(wrapper.style.position="relative"),wrapper.style.width=width+"px",wrapper.style.height=height+"px",nestedWrapper="VML"===Raphael.type?(wrapper.innerHTML="<rvml:group style='position : absolute; width: 1000px; height: 1000px; top: 0px; left: 0px' coordsize='1000,1000' class='rvml'></rvml:group>",$(".rvml",$(wrapper))[0]):(wrapper.innerHTML="<div class='svggroup'></div>",$(".svggroup",$(wrapper))[0]);var vmlDiv,paper=new Raphael(nestedWrapper,width,height);return"SVG"===Raphael.type?paper.canvas.setAttribute("viewBox","0 0 "+width+" "+height
):vmlDiv=wrapper.getElementsByTagName("div")[0],paper.changeSize=function(w,h,center,clipping){clipping=!clipping;var newWidth=w/width,newSize=h/height,scale=newWidth<newSize?newWidth:newSize,newHeight=parseInt(height*scale),newWidth=parseInt(width*scale);if("VML"===Raphael.type){var i,txt=document.getElementsByTagName("textpath");for(i in txt){var mod,curr=txt[i];curr.style&&(curr._fontSize||(mod=curr.style.font.split("px"),curr._fontSize=parseInt(mod[0]),curr._font=mod[1]),curr.style.font=curr._fontSize*scale+"px"+curr._font)}newSize=newWidth<newHeight?1e3*newWidth/width:1e3*newHeight/height,newSize=parseInt(newSize),nestedWrapper.style.width=newSize+"px",
nestedWrapper.style.height=newSize+"px",clipping&&(nestedWrapper.style.left=parseInt((w-newWidth)/2)+"px",nestedWrapper.style.top=parseInt((h-newHeight)/2)+"px"),vmlDiv.style.overflow="visible"}clipping&&(newWidth=w,newHeight=h),wrapper.style.width=newWidth+"px",wrapper.style.height=newHeight+"px",paper.setSize(newWidth,newHeight),center&&(wrapper.style.position="absolute",wrapper.style.left=parseInt((w-newWidth)/2)+"px",wrapper.style.top=parseInt((h-newHeight)/2)+"px")},paper.scaleAll=function(amount){paper.changeSize(width*amount,height*amount)},paper.changeSize(width,height),paper.w=width,paper.h=height,paper}}),function(f){
"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define("interact",[],f):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).interact=f()}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!u&&l)return l(o,!0);if(i)return i(o,!0);l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,
o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";"undefined"==typeof window?module.exports=function(window){return require("./src/utils/window").init(window),require("./src/index")}:module.exports=require("./src/index")},{"./src/index":19,"./src/utils/window":52}],2:[function(Eventable,module,exports){"use strict";var extend=Eventable("./utils/extend.js");function fireUntilImmediateStopped(event,listeners){for(var _i=0;_i<listeners.length;_i++){var listener=listeners[_i];if(event.immediatePropagationStopped)break;listener(event)}}Eventable=function(){function Eventable(options){!function(instance,Constructor){if(!(
instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Eventable),this.options=extend({},options||{})}return Eventable.prototype.fire=function(event){var listeners=void 0,onEvent="on"+event.type,global=this.global;(listeners=this[event.type])&&fireUntilImmediateStopped(event,listeners),this[onEvent]&&this[onEvent](event),!event.propagationStopped&&global&&(listeners=global[event.type])&&fireUntilImmediateStopped(event,listeners)},Eventable.prototype.on=function(eventType,listener){this[eventType]?this[eventType].push(listener):this[eventType]=[listener]},Eventable.prototype.off=function(eventType,listener){
var eventList=this[eventType],index=eventList?eventList.indexOf(listener):-1;-1!==index&&eventList.splice(index,1),(eventList&&0===eventList.length||!listener)&&(this[eventType]=void 0)},Eventable}();module.exports=Eventable},{"./utils/extend.js":41}],3:[function(InteractEvent,module,exports){"use strict";var extend=InteractEvent("./utils/extend"),getOriginXY=InteractEvent("./utils/getOriginXY"),defaults=InteractEvent("./defaultOptions"),signals=InteractEvent("./utils/Signals").new(),InteractEvent=function(){function InteractEvent(interaction,event,action,phase,element,related){var preEnd=6<arguments.length&&void 0!==arguments[6]&&arguments[6];!function(
instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,InteractEvent);var target=interaction.target,deltaSource=(target&&target.options||defaults).deltaSource,origin=getOriginXY(target,element,action),signalArg="start"===phase,ending="end"===phase,coords=signalArg?interaction.startCoords:interaction.curCoords,prevEvent=interaction.prevEvent;element=element||interaction.element;var page=extend({},coords.page),client=extend({},coords.client);page.x-=origin.x,page.y-=origin.y,client.x-=origin.x,client.y-=origin.y,this.ctrlKey=event.ctrlKey,this.altKey=event.altKey,this.shiftKey=event.shiftKey,
this.metaKey=event.metaKey,this.button=event.button,this.buttons=event.buttons,this.target=element,this.currentTarget=element,this.relatedTarget=related||null,this.preEnd=preEnd,this.type=action+(phase||""),this.interaction=interaction,this.interactable=target,this.t0=signalArg?interaction.downTimes[interaction.downTimes.length-1]:prevEvent.t0;signalArg={interaction:interaction,event:event,action:action,phase:phase,element:element,related:related,page:page,client:client,coords:coords,starting:signalArg,ending:ending,deltaSource:deltaSource,iEvent:this};signals.fire("set-xy",signalArg),ending?(this.pageX=prevEvent.pageX,this.pageY=prevEvent.pageY,
this.clientX=prevEvent.clientX,this.clientY=prevEvent.clientY):(this.pageX=page.x,this.pageY=page.y,this.clientX=client.x,this.clientY=client.y),this.x0=interaction.startCoords.page.x-origin.x,this.y0=interaction.startCoords.page.y-origin.y,this.clientX0=interaction.startCoords.client.x-origin.x,this.clientY0=interaction.startCoords.client.y-origin.y,signals.fire("set-delta",signalArg),this.timeStamp=coords.timeStamp,this.dt=interaction.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=interaction.pointerDelta[deltaSource].speed,this.velocityX=interaction.pointerDelta[deltaSource].vx,
this.velocityY=interaction.pointerDelta[deltaSource].vy,this.swipe=ending||"inertiastart"===phase?this.getSwipe():null,signals.fire("new",signalArg)}return InteractEvent.prototype.getSwipe=function(){var interaction=this.interaction;if(interaction.prevEvent.speed<600||150<this.timeStamp-interaction.prevEvent.timeStamp)return null;var angle=180*Math.atan2(interaction.prevEvent.velocityY,interaction.prevEvent.velocityX)/Math.PI;angle<0&&(angle+=360);var left=112.5<=angle&&angle<247.5,up=202.5<=angle&&angle<337.5;return{up:up,down:!up&&22.5<=angle&&angle<157.5,left:left,right:!left&&(292.5<=angle||angle<67.5),angle:angle,speed:interaction.prevEvent.speed,
velocity:{x:interaction.prevEvent.velocityX,y:interaction.prevEvent.velocityY}}},InteractEvent.prototype.preventDefault=function(){},InteractEvent.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},InteractEvent.prototype.stopPropagation=function(){this.propagationStopped=!0},InteractEvent}();signals.on("set-delta",function(deltaSource){var iEvent=deltaSource.iEvent,prevEvent=deltaSource.interaction,starting=deltaSource.starting,deltaSource=deltaSource.deltaSource,prevEvent=starting?iEvent:prevEvent.prevEvent;"client"===deltaSource?(iEvent.dx=iEvent.clientX-prevEvent.clientX,
iEvent.dy=iEvent.clientY-prevEvent.clientY):(iEvent.dx=iEvent.pageX-prevEvent.pageX,iEvent.dy=iEvent.pageY-prevEvent.pageY)}),InteractEvent.signals=signals,module.exports=InteractEvent},{"./defaultOptions":18,"./utils/Signals":34,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(Interactable,module,exports){"use strict";var clone=Interactable("./utils/clone"),is=Interactable("./utils/is"),events=Interactable("./utils/events"),extend=Interactable("./utils/extend"),actions=Interactable("./actions/base"),scope=Interactable("./scope"),Eventable=Interactable("./Eventable"),defaults=Interactable("./defaultOptions"),signals=Interactable("./utils/Signals"
).new(),_require=Interactable("./utils/domUtils"),getElementRect=_require.getElementRect,nodeContains=_require.nodeContains,trySelector=_require.trySelector,matchesSelector=_require.matchesSelector,getWindow=Interactable("./utils/window").getWindow,contains=Interactable("./utils/arr").contains,wheelEvent=Interactable("./utils/browser").wheelEvent;scope.interactables=[];Interactable=function(){function Interactable(target,options){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Interactable),options=options||{},this.target=target,this.events=new Eventable,
this._context=options.context||scope.document,this._win=getWindow(trySelector(target)?this._context:target),this._doc=this._win.document,signals.fire("new",{target:target,options:options,interactable:this,win:this._win}),scope.addDocument(this._doc,this._win),scope.interactables.push(this),this.set(options)}return Interactable.prototype.setOnEvents=function(onAction,phases){onAction="on"+onAction;return is.function(phases.onstart)&&(this.events[onAction+"start"]=phases.onstart),is.function(phases.onmove)&&(this.events[onAction+"move"]=phases.onmove),is.function(phases.onend)&&(this.events[onAction+"end"]=phases.onend),is.function(phases.oninertiastart)&&(
this.events[onAction+"inertiastart"]=phases.oninertiastart),this},Interactable.prototype.setPerAction=function(action,options){for(var option in options)option in defaults[action]&&(is.object(options[option])?(this.options[action][option]=clone(this.options[action][option]||{}),extend(this.options[action][option],options[option]),is.object(defaults.perAction[option])&&"enabled"in defaults.perAction[option]&&(this.options[action][option].enabled=!1!==options[option].enabled)):is.bool(options[option])&&is.object(defaults.perAction[option])?this.options[action][option].enabled=options[option]:void 0!==options[option]&&(
this.options[action][option]=options[option]))},Interactable.prototype.getRect=function(element){return element=element||this.target,is.string(this.target)&&!is.element(element)&&(element=this._context.querySelector(this.target)),getElementRect(element)},Interactable.prototype.rectChecker=function(checker){return is.function(checker)?(this.getRect=checker,this):null===checker?(delete this.options.getRect,this):this.getRect},Interactable.prototype._backCompatOption=function(optionName,newValue){if(trySelector(newValue)||is.object(newValue)){this.options[optionName]=newValue;for(var _i=0;_i<actions.names.length;_i++){var _ref=actions.names[_i]
;this.options[_ref][optionName]=newValue}return this}return this.options[optionName]},Interactable.prototype.origin=function(newValue){return this._backCompatOption("origin",newValue)},Interactable.prototype.deltaSource=function(newValue){return"page"===newValue||"client"===newValue?(this.options.deltaSource=newValue,this):this.options.deltaSource},Interactable.prototype.context=function(){return this._context},Interactable.prototype.inContext=function(element){return this._context===element.ownerDocument||nodeContains(this._context,element)},Interactable.prototype.fire=function(iEvent){return this.events.fire(iEvent),this},
Interactable.prototype._onOffMultiple=function(method,eventType,listener,options){if(is.string(eventType)&&-1!==eventType.search(" ")&&(eventType=eventType.trim().split(/ +/)),is.array(eventType)){for(var _i2=0;_i2<eventType.length;_i2++){var _ref2=eventType[_i2];this[method](_ref2,listener,options)}return!0}if(is.object(eventType)){for(var prop in eventType)this[method](prop,eventType[prop],listener);return!0}},Interactable.prototype.on=function(eventType,listener,options){return this._onOffMultiple("on",eventType,listener,options)||("wheel"===eventType&&(eventType=wheelEvent),contains(Interactable.eventTypes,eventType)?this.events.on(eventType,listener
):is.string(this.target)?events.addDelegate(this.target,this._context,eventType,listener,options):events.add(this.target,eventType,listener,options)),this},Interactable.prototype.off=function(eventType,listener,options){return this._onOffMultiple("off",eventType,listener,options)||("wheel"===eventType&&(eventType=wheelEvent),contains(Interactable.eventTypes,eventType)?this.events.off(eventType,listener):is.string(this.target)?events.removeDelegate(this.target,this._context,eventType,listener,options):events.remove(this.target,eventType,listener,options)),this},Interactable.prototype.set=function(options){is.object(options)||(options={}),this.options=clone(
defaults.base);var actionName,perActions=clone(defaults.perAction);for(actionName in actions.methodDict){var methodName=actions.methodDict[actionName];this.options[actionName]=clone(defaults[actionName]),this.setPerAction(actionName,perActions),this[methodName](options[actionName])}for(var _i3=0;_i3<Interactable.settingsMethods.length;_i3++){var setting=Interactable.settingsMethods[_i3];this.options[setting]=defaults.base[setting],setting in options&&this[setting](options[setting])}return signals.fire("set",{options:options,interactable:this}),this},Interactable.prototype.unset=function(){if(events.remove(this.target,"all"),is.string(this.target))for(
var type in events.delegatedEvents){var delegated=events.delegatedEvents[type];delegated.selectors[0]===this.target&&delegated.contexts[0]===this._context&&(delegated.selectors.splice(0,1),delegated.contexts.splice(0,1),delegated.listeners.splice(0,1),delegated.selectors.length||(delegated[type]=null)),events.remove(this._context,type,events.delegateListener),events.remove(this._context,type,events.delegateUseCapture,!0)}else events.remove(this,"all");signals.fire("unset",{interactable:this}),scope.interactables.splice(scope.interactables.indexOf(this),1);for(var _i4=0;_i4<(scope.interactions||[]).length;_i4++){var interaction=(scope.interactions||[])[_i4]
;interaction.target===this&&interaction.interacting()&&!interaction._ending&&interaction.stop()}return scope.interact},Interactable}();scope.interactables.indexOfElement=function(target,context){context=context||scope.document;for(var i=0;i<this.length;i++){var interactable=this[i];if(interactable.target===target&&interactable._context===context)return i}return-1},scope.interactables.get=function(element,ret,dontCheckInContext){ret=this[this.indexOfElement(element,ret&&ret.context)];return ret&&(is.string(element)||dontCheckInContext||ret.inContext(element))?ret:null},scope.interactables.forEachMatch=function(element,callback){for(
var _i5=0;_i5<this.length;_i5++){var interactable=this[_i5],ret=void 0;if((is.string(interactable.target)?is.element(element)&&matchesSelector(element,interactable.target):element===interactable.target)&&interactable.inContext(element)&&(ret=callback(interactable)),void 0!==ret)return ret}},Interactable.eventTypes=scope.eventTypes=[],Interactable.signals=signals,Interactable.settingsMethods=["deltaSource","origin","preventDefault","rectChecker"],module.exports=Interactable},{"./Eventable":2,"./actions/base":6,"./defaultOptions":18,"./scope":33,"./utils/Signals":34,"./utils/arr":35,"./utils/browser":36,"./utils/clone":37,"./utils/domUtils":39,
"./utils/events":40,"./utils/extend":41,"./utils/is":46,"./utils/window":52}],5:[function(pEventTypes,module,exports){"use strict";var scope=pEventTypes("./scope"),utils=pEventTypes("./utils"),events=pEventTypes("./utils/events"),browser=pEventTypes("./utils/browser"),domObjects=pEventTypes("./utils/domObjects"),finder=pEventTypes("./utils/interactionFinder"),signals=pEventTypes("./utils/Signals").new(),listeners={},methodNames=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer"],prevTouchTime=0;scope.interactions=[];for(var Interaction=function(){function Interaction(pointerType){pointerType=pointerType.pointerType;!function(instance,
Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Interaction),this.target=null,this.element=null,this.prepared={name:null,axis:null,edges:null},this.pointers=[],this.pointerIds=[],this.downTargets=[],this.downTimes=[],this.prevCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.curCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.startCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.pointerDelta={page:{x:0,y:0,vx:0,vy:0,speed:0},client:{x:0,y:0,vx:0,vy:0,speed:0},timeStamp:0},this.downEvent=null,this.downPointer={},this._eventTarget=null,this._curEventTarget=null,
this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this.pointerType=pointerType,signals.fire("new",this),scope.interactions.push(this)}return Interaction.prototype.pointerDown=function(pointer,event,eventTarget){var pointerIndex=this.updatePointer(pointer,event,!0);signals.fire("down",{pointer:pointer,event:event,eventTarget:eventTarget,pointerIndex:pointerIndex,interaction:this})},Interaction.prototype.start=function(action,target,element){this.interacting()||!this.pointerIsDown||this.pointerIds.length<("gesture"===action.name?2:1)||(-1===scope.interactions.indexOf(this)&&scope.interactions.push(this),
utils.copyAction(this.prepared,action),this.target=target,this.element=element,signals.fire("action-start",{interaction:this,event:this.downEvent}))},Interaction.prototype.pointerMove=function(pointer,event,eventTarget){this.simulation||(this.updatePointer(pointer),utils.setCoords(this.curCoords,this.pointers));var duplicateMove=this.curCoords.page.x===this.prevCoords.page.x&&this.curCoords.page.y===this.prevCoords.page.y&&this.curCoords.client.x===this.prevCoords.client.x&&this.curCoords.client.y===this.prevCoords.client.y,dx=void 0,signalArg=void 0;this.pointerIsDown&&!this.pointerWasMoved&&(dx=this.curCoords.client.x-this.startCoords.client.x,
signalArg=this.curCoords.client.y-this.startCoords.client.y,this.pointerWasMoved=utils.hypot(dx,signalArg)>Interaction.pointerMoveTolerance);signalArg={pointer:pointer,pointerIndex:this.getPointerIndex(pointer),event:event,eventTarget:eventTarget,dx:dx,dy:signalArg,duplicate:duplicateMove,interaction:this,interactingBeforeMove:this.interacting()};duplicateMove||utils.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),signals.fire("move",signalArg),duplicateMove||(this.interacting()&&this.doMove(signalArg),this.pointerWasMoved&&utils.copyCoords(this.prevCoords,this.curCoords))},Interaction.prototype.doMove=function(signalArg){
signalArg=utils.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},signalArg||{}),signals.fire("before-action-move",signalArg),this._dontFireMove||signals.fire("action-move",signalArg),this._dontFireMove=!1},Interaction.prototype.pointerUp=function(pointer,event,eventTarget,curEventTarget){var pointerIndex=this.getPointerIndex(pointer);signals.fire(/cancel$/i.test(event.type)?"cancel":"up",{pointer:pointer,pointerIndex:pointerIndex,event:event,eventTarget:eventTarget,curEventTarget:curEventTarget,interaction:this}),this.simulation||this.end(event),this.pointerIsDown=!1,this.removePointer(pointer,event)},
Interaction.prototype.end=function(event){this._ending=!0,event=event||this.prevEvent,this.interacting()&&signals.fire("action-end",{event:event,interaction:this}),this.stop(),this._ending=!1},Interaction.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},Interaction.prototype.interacting=function(){return this._interacting},Interaction.prototype.stop=function(){signals.fire("stop",{interaction:this}),this._interacting&&(signals.fire("stop-active",{interaction:this}),signals.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},
Interaction.prototype.getPointerIndex=function(pointer){return"mouse"===this.pointerType||"pen"===this.pointerType?0:this.pointerIds.indexOf(utils.getPointerId(pointer))},Interaction.prototype.updatePointer=function(pointer,event,index){var down=2<arguments.length&&void 0!==index?index:event&&/(down|start)$/i.test(event.type),id=utils.getPointerId(pointer),index=this.getPointerIndex(pointer);return-1===index&&(index=this.pointerIds.length,this.pointerIds[index]=id),down&&signals.fire("update-pointer-down",{pointer:pointer,event:event,down:down,pointerId:id,pointerIndex:index,interaction:this}),this.pointers[index]=pointer,index},
Interaction.prototype.removePointer=function(pointer,event){var index=this.getPointerIndex(pointer);-1!==index&&(signals.fire("remove-pointer",{pointer:pointer,event:event,pointerIndex:index,interaction:this}),this.pointers.splice(index,1),this.pointerIds.splice(index,1),this.downTargets.splice(index,1),this.downTimes.splice(index,1))},Interaction.prototype._updateEventTargets=function(target,currentTarget){this._eventTarget=target,this._curEventTarget=currentTarget},Interaction}(),_i=0;_i<methodNames.length;_i++){var method=methodNames[_i];listeners[method]=doOnInteractions(method)}function doOnInteractions(method){return function(event){
var pointerType=utils.getPointerType(event),_interaction=utils.getEventTargets(event),eventTarget=_interaction[0],curEventTarget=_interaction[1],matches=[];if(browser.supportsTouch&&/touch/.test(event.type)){prevTouchTime=(new Date).getTime();for(var _i2=0;_i2<event.changedTouches.length;_i2++){var pointer=event.changedTouches[_i2],interaction=finder.search(pointer,event.type,eventTarget);matches.push([pointer,interaction||new Interaction({pointerType:pointerType})])}}else{var invalidPointer=!1;if(!browser.supportsPointerEvent&&/mouse/.test(event.type)){for(var i=0;i<scope.interactions.length&&!invalidPointer;i++
)invalidPointer="mouse"!==scope.interactions[i].pointerType&&scope.interactions[i].pointerIsDown;invalidPointer=invalidPointer||(new Date).getTime()-prevTouchTime<500||0===event.timeStamp}invalidPointer||(_interaction=(_interaction=finder.search(event,event.type,eventTarget))||new Interaction({pointerType:pointerType}),matches.push([event,_interaction]))}for(var _i3=0;_i3<matches.length;_i3++){var _interaction2=matches[_i3],_pointer=_interaction2[0],_interaction2=_interaction2[1];_interaction2._updateEventTargets(eventTarget,curEventTarget),_interaction2[method](_pointer,event,eventTarget,curEventTarget)}}}function endAll(event){for(
var _i4=0;_i4<scope.interactions.length;_i4++){var interaction=scope.interactions[_i4];interaction.end(event),signals.fire("endall",{event:event,interaction:interaction})}}var docEvents={},pEventTypes=browser.pEventTypes;function onDocSignal(_ref5,signalName){var eventType,_eventType,doc=_ref5.doc,eventMethod=0===signalName.indexOf("add")?events.add:events.remove;for(eventType in scope.delegatedEvents)eventMethod(doc,eventType,events.delegateListener),eventMethod(doc,eventType,events.delegateUseCapture,!0);for(_eventType in docEvents)eventMethod(doc,_eventType,docEvents[_eventType],browser.isIOS?{passive:!1}:void 0)}domObjects.PointerEvent?(
docEvents[pEventTypes.down]=listeners.pointerDown,docEvents[pEventTypes.move]=listeners.pointerMove,docEvents[pEventTypes.up]=listeners.pointerUp,docEvents[pEventTypes.cancel]=listeners.pointerUp):(docEvents.mousedown=listeners.pointerDown,docEvents.mousemove=listeners.pointerMove,docEvents.mouseup=listeners.pointerUp,docEvents.touchstart=listeners.pointerDown,docEvents.touchmove=listeners.pointerMove,docEvents.touchend=listeners.pointerUp,docEvents.touchcancel=listeners.pointerUp),docEvents.blur=endAll,signals.on("update-pointer-down",function(down){var interaction=down.interaction,pointer=down.pointer,pointerId=down.pointerId,pointerIndex=down.pointerIndex
,event=down.event,eventTarget=down.eventTarget,down=down.down;interaction.pointerIds[pointerIndex]=pointerId,interaction.pointers[pointerIndex]=pointer,down&&(interaction.pointerIsDown=!0),interaction.interacting()||(utils.setCoords(interaction.startCoords,interaction.pointers),utils.copyCoords(interaction.curCoords,interaction.startCoords),utils.copyCoords(interaction.prevCoords,interaction.startCoords),interaction.downEvent=event,interaction.downTimes[pointerIndex]=interaction.curCoords.timeStamp,interaction.downTargets[pointerIndex]=eventTarget||event&&utils.getEventTargets(event)[0],interaction.pointerWasMoved=!1,utils.pointerExtend(
interaction.downPointer,pointer))}),scope.signals.on("add-document",onDocSignal),scope.signals.on("remove-document",onDocSignal),Interaction.pointerMoveTolerance=1,Interaction.doOnInteractions=doOnInteractions,Interaction.endAll=endAll,Interaction.signals=signals,Interaction.docEvents=docEvents,scope.endAllInteractions=endAll,module.exports=Interaction},{"./scope":33,"./utils":44,"./utils/Signals":34,"./utils/browser":36,"./utils/domObjects":38,"./utils/events":40,"./utils/interactionFinder":45}],6:[function(actions,module,exports){"use strict";var Interaction=actions("../Interaction"),InteractEvent=actions("../InteractEvent"),actions={
firePrepared:firePrepared,names:[],methodDict:{}};function firePrepared(interaction,event,phase,newEvent){var actionName=interaction.prepared.name,newEvent=new InteractEvent(interaction,event,actionName,phase,interaction.element,null,newEvent);interaction.target.fire(newEvent),interaction.prevEvent=newEvent}Interaction.signals.on("action-start",function(event){var interaction=event.interaction,event=event.event;interaction._interacting=!0,firePrepared(interaction,event,"start")}),Interaction.signals.on("action-move",function(_ref2){var interaction=_ref2.interaction;if(firePrepared(interaction,_ref2.event,"move",_ref2.preEnd),!interaction.interacting()
)return!1}),Interaction.signals.on("action-end",function(_ref3){firePrepared(_ref3.interaction,_ref3.event,"end")}),module.exports=actions},{"../InteractEvent":3,"../Interaction":5}],7:[function(drag,module,exports){"use strict";var actions=drag("./base"),utils=drag("../utils"),InteractEvent=drag("../InteractEvent"),Interactable=drag("../Interactable"),Interaction=drag("../Interaction"),defaultOptions=drag("../defaultOptions"),drag={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,startAxis:"xy",lockAxis:"xy"},checker:function(pointer,event,dragOptions){dragOptions=dragOptions.options.drag
;return dragOptions.enabled?{name:"drag",axis:"start"===dragOptions.lockAxis?dragOptions.startAxis:dragOptions.lockAxis}:null},getCursor:function(){return"move"}};Interaction.signals.on("before-action-move",function(axis){var interaction=axis.interaction;"drag"===interaction.prepared.name&&("x"===(axis=interaction.prepared.axis)?(interaction.curCoords.page.y=interaction.startCoords.page.y,interaction.curCoords.client.y=interaction.startCoords.client.y,interaction.pointerDelta.page.speed=Math.abs(interaction.pointerDelta.page.vx),interaction.pointerDelta.client.speed=Math.abs(interaction.pointerDelta.client.vx),interaction.pointerDelta.client.vy=0,
interaction.pointerDelta.page.vy=0):"y"===axis&&(interaction.curCoords.page.x=interaction.startCoords.page.x,interaction.curCoords.client.x=interaction.startCoords.client.x,interaction.pointerDelta.page.speed=Math.abs(interaction.pointerDelta.page.vy),interaction.pointerDelta.client.speed=Math.abs(interaction.pointerDelta.client.vy),interaction.pointerDelta.client.vx=0,interaction.pointerDelta.page.vx=0))}),InteractEvent.signals.on("new",function(axis){var iEvent=axis.iEvent,interaction=axis.interaction;"dragmove"===iEvent.type&&("x"===(axis=interaction.prepared.axis)?(iEvent.pageY=interaction.startCoords.page.y,
iEvent.clientY=interaction.startCoords.client.y,iEvent.dy=0):"y"===axis&&(iEvent.pageX=interaction.startCoords.page.x,iEvent.clientX=interaction.startCoords.client.x,iEvent.dx=0))}),Interactable.prototype.draggable=function(options){return utils.is.object(options)?(this.options.drag.enabled=!1!==options.enabled,this.setPerAction("drag",options),this.setOnEvents("drag",options),/^(xy|x|y|start)$/.test(options.lockAxis)&&(this.options.drag.lockAxis=options.lockAxis),/^(xy|x|y)$/.test(options.startAxis)&&(this.options.drag.startAxis=options.startAxis),this):utils.is.bool(options)?((this.options.drag.enabled=options)||(
this.ondragstart=this.ondragstart=this.ondragend=null),this):this.options.drag},actions.drag=drag,actions.names.push("drag"),utils.merge(Interactable.eventTypes,["dragstart","dragmove","draginertiastart","draginertiaresume","dragend"]),actions.methodDict.drag="draggable",defaultOptions.drag=drag.defaults,module.exports=drag},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],8:[function(drop,module,exports){"use strict";var actions=drop("./base"),utils=drop("../utils"),scope=drop("../scope"),interact=drop("../interact"),InteractEvent=drop("../InteractEvent"),Interactable=drop("../Interactable"),
Interaction=drop("../Interaction"),defaultOptions=drop("../defaultOptions"),drop={defaults:{enabled:!1,accept:null,overlap:"pointer"}},dynamicDrop=!1;function fireActiveDrops(activeDrops,event){for(var prevElement=void 0,i=0;i<activeDrops.dropzones.length;i++){var current=activeDrops.dropzones[i],currentElement=activeDrops.elements[i];currentElement!==prevElement&&(event.target=currentElement,current.fire(event)),prevElement=currentElement}}function setActiveDrops(activeDrops,possibleDrops){possibleDrops=function(element){for(var drops=[],elements=[],_i=0;_i<scope.interactables.length;_i++){var current=scope.interactables[_i];if(current.options.drop.enabled
){var accept=current.options.drop.accept;if(!(utils.is.element(accept)&&accept!==element||utils.is.string(accept)&&!utils.matchesSelector(element,accept)))for(var dropElements=utils.is.string(current.target)?current._context.querySelectorAll(current.target):[current.target],_i2=0;_i2<dropElements.length;_i2++){var currentElement=dropElements[_i2];currentElement!==element&&(drops.push(current),elements.push(currentElement))}}}return{elements:elements,dropzones:drops}}(possibleDrops);activeDrops.dropzones=possibleDrops.dropzones,activeDrops.elements=possibleDrops.elements,activeDrops.rects=[];for(var i=0;i<activeDrops.dropzones.length;i++
)activeDrops.rects[i]=activeDrops.dropzones[i].getRect(activeDrops.elements[i])}function getDropEvents(interaction,pointerEvent,dragEvent){var dropEvents={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null},tmpl={dragEvent:dragEvent,interaction:interaction,target:interaction.dropElement,dropzone:interaction.dropTarget,relatedTarget:dragEvent.target,draggable:dragEvent.interactable,timeStamp:dragEvent.timeStamp};return interaction.dropElement!==interaction.prevDropElement&&(interaction.prevDropTarget&&(dropEvents.leave=utils.extend({type:"dragleave"},tmpl),dragEvent.dragLeave=dropEvents.leave.target=interaction.prevDropElement,
dragEvent.prevDropzone=dropEvents.leave.dropzone=interaction.prevDropTarget),interaction.dropTarget&&(dropEvents.enter={dragEvent:dragEvent,interaction:interaction,target:interaction.dropElement,dropzone:interaction.dropTarget,relatedTarget:dragEvent.target,draggable:dragEvent.interactable,timeStamp:dragEvent.timeStamp,type:"dragenter"},dragEvent.dragEnter=interaction.dropElement,dragEvent.dropzone=interaction.dropTarget)),"dragend"===dragEvent.type&&interaction.dropTarget&&(dropEvents.drop=utils.extend({type:"drop"},tmpl),dragEvent.dropzone=interaction.dropTarget,dragEvent.relatedTarget=interaction.dropElement),"dragstart"===dragEvent.type&&(
dropEvents.activate=utils.extend({type:"dropactivate"},tmpl),dropEvents.activate.target=null,dropEvents.activate.dropzone=null),"dragend"===dragEvent.type&&(dropEvents.deactivate=utils.extend({type:"dropdeactivate"},tmpl),dropEvents.deactivate.target=null,dropEvents.deactivate.dropzone=null),"dragmove"===dragEvent.type&&interaction.dropTarget&&(dropEvents.move=utils.extend({dragmove:dragEvent,type:"dropmove"},tmpl),dragEvent.dropzone=interaction.dropTarget),dropEvents}function fireDropEvents(interaction,dropEvents){var activeDrops=interaction.activeDrops,prevDropTarget=interaction.prevDropTarget,dropTarget=interaction.dropTarget,
dropElement=interaction.dropElement;dropEvents.leave&&prevDropTarget.fire(dropEvents.leave),dropEvents.move&&dropTarget.fire(dropEvents.move),dropEvents.enter&&dropTarget.fire(dropEvents.enter),dropEvents.drop&&dropTarget.fire(dropEvents.drop),dropEvents.deactivate&&fireActiveDrops(activeDrops,dropEvents.deactivate),interaction.prevDropTarget=dropTarget,interaction.prevDropElement=dropElement}Interaction.signals.on("action-start",function(dropEvents){var interaction=dropEvents.interaction,dropEvents=dropEvents.event;"drag"===interaction.prepared.name&&(interaction.activeDrops.dropzones=[],interaction.activeDrops.elements=[],interaction.activeDrops.rects=[],
interaction.dropEvents=null,interaction.dynamicDrop||setActiveDrops(interaction.activeDrops,interaction.element),(dropEvents=getDropEvents(interaction,0,interaction.prevEvent)).activate&&fireActiveDrops(interaction.activeDrops,dropEvents.activate))}),InteractEvent.signals.on("new",function(dragEvent){var interaction=dragEvent.interaction,dropResult=dragEvent.iEvent,event=dragEvent.event;"dragmove"!==dropResult.type&&"dragend"!==dropResult.type||(dropResult=function(dragEvent,event,dragElement){var interaction=dragEvent.interaction,validDrops=[];dynamicDrop&&setActiveDrops(interaction.activeDrops,dragElement);for(
var j=0;j<interaction.activeDrops.dropzones.length;j++){var current=interaction.activeDrops.dropzones[j],currentElement=interaction.activeDrops.elements[j],rect=interaction.activeDrops.rects[j];validDrops.push(current.dropCheck(dragEvent,event,interaction.target,dragElement,currentElement,rect)?currentElement:null)}var dropIndex=utils.indexOfDeepestElement(validDrops);return{dropzone:interaction.activeDrops.dropzones[dropIndex]||null,element:interaction.activeDrops.elements[dropIndex]||null}}(dragEvent=dropResult,event,interaction.element),interaction.dropTarget=dropResult.dropzone,interaction.dropElement=dropResult.element,
interaction.dropEvents=getDropEvents(interaction,0,dragEvent))}),Interaction.signals.on("action-move",function(interaction){interaction=interaction.interaction;"drag"===interaction.prepared.name&&fireDropEvents(interaction,interaction.dropEvents)}),Interaction.signals.on("action-end",function(interaction){interaction=interaction.interaction;"drag"===interaction.prepared.name&&fireDropEvents(interaction,interaction.dropEvents)}),Interaction.signals.on("stop-drag",function(interaction){interaction=interaction.interaction;interaction.activeDrops={dropzones:null,elements:null,rects:null},interaction.dropEvents=null}),Interactable.prototype.dropzone=function(
options){return utils.is.object(options)?(this.options.drop.enabled=!1!==options.enabled,utils.is.function(options.ondrop)&&(this.events.ondrop=options.ondrop),utils.is.function(options.ondropactivate)&&(this.events.ondropactivate=options.ondropactivate),utils.is.function(options.ondropdeactivate)&&(this.events.ondropdeactivate=options.ondropdeactivate),utils.is.function(options.ondragenter)&&(this.events.ondragenter=options.ondragenter),utils.is.function(options.ondragleave)&&(this.events.ondragleave=options.ondragleave),utils.is.function(options.ondropmove)&&(this.events.ondropmove=options.ondropmove),/^(pointer|center)$/.test(options.overlap
)?this.options.drop.overlap=options.overlap:utils.is.number(options.overlap)&&(this.options.drop.overlap=Math.max(Math.min(1,options.overlap),0)),"accept"in options&&(this.options.drop.accept=options.accept),"checker"in options&&(this.options.drop.checker=options.checker),this):utils.is.bool(options)?((this.options.drop.enabled=options)||(this.ondragenter=this.ondragleave=this.ondrop=this.ondropactivate=this.ondropdeactivate=null),this):this.options.drop},Interactable.prototype.dropCheck=function(dragEvent,event,draggable,draggableElement,dropElement,rect){var dropped=!1;if(!(rect=rect||this.getRect(dropElement))
)return!!this.options.drop.checker&&this.options.drop.checker(dragEvent,event,dropped,this,dropElement,draggable,draggableElement);var dropOverlap=this.options.drop.overlap;"pointer"===dropOverlap&&(cy=utils.getOriginXY(draggable,draggableElement,"drag"),(dragRect=utils.getPageXY(dragEvent)).x+=cy.x,dragRect.y+=cy.y,cx=dragRect.x>rect.left&&dragRect.x<rect.right,cy=dragRect.y>rect.top&&dragRect.y<rect.bottom,dropped=cx&&cy);var cx,cy,dragRect=draggable.getRect(draggableElement);return dragRect&&"center"===dropOverlap&&(cx=dragRect.left+dragRect.width/2,cy=dragRect.top+dragRect.height/2,dropped=cx>=rect.left&&cx<=rect.right&&cy>=rect.top&&cy<=rect.bottom),
dragRect&&utils.is.number(dropOverlap)&&(dropped=dropOverlap<=Math.max(0,Math.min(rect.right,dragRect.right)-Math.max(rect.left,dragRect.left))*Math.max(0,Math.min(rect.bottom,dragRect.bottom)-Math.max(rect.top,dragRect.top))/(dragRect.width*dragRect.height)),this.options.drop.checker&&(dropped=this.options.drop.checker(dragEvent,event,dropped,this,dropElement,draggable,draggableElement)),dropped},Interactable.signals.on("unset",function(_ref8){_ref8.interactable.dropzone(!1)}),Interactable.settingsMethods.push("dropChecker"),Interaction.signals.on("new",function(interaction){interaction.dropTarget=null,interaction.dropElement=null,
interaction.prevDropTarget=null,interaction.prevDropElement=null,interaction.dropEvents=null,interaction.activeDrops={dropzones:[],elements:[],rects:[]}}),Interaction.signals.on("stop",function(interaction){interaction=interaction.interaction;interaction.dropTarget=interaction.dropElement=interaction.prevDropTarget=interaction.prevDropElement=null}),interact.dynamicDrop=function(newValue){return utils.is.bool(newValue)?(dynamicDrop=newValue,interact):dynamicDrop},utils.merge(Interactable.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),actions.methodDict.drop="dropzone",defaultOptions.drop=drop.defaults,
module.exports=drop},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"./base":6}],9:[function(gesture,module,exports){"use strict";var actions=gesture("./base"),utils=gesture("../utils"),InteractEvent=gesture("../InteractEvent"),Interactable=gesture("../Interactable"),Interaction=gesture("../Interaction"),defaultOptions=gesture("../defaultOptions"),gesture={defaults:{enabled:!1,origin:null,restrict:null},checker:function(pointer,event,interactable,element,interaction){return 2<=interaction.pointerIds.length?{name:"gesture"}:null},getCursor:function(){return""}}
;InteractEvent.signals.on("new",function(interaction){var iEvent=interaction.iEvent,interaction=interaction.interaction;"gesturestart"===iEvent.type&&(iEvent.ds=0,interaction.gesture.startDistance=interaction.gesture.prevDistance=iEvent.distance,interaction.gesture.startAngle=interaction.gesture.prevAngle=iEvent.angle,interaction.gesture.scale=1)}),InteractEvent.signals.on("new",function(interaction){var iEvent=interaction.iEvent,interaction=interaction.interaction;"gesturemove"===iEvent.type&&(iEvent.ds=iEvent.scale-interaction.gesture.scale,interaction.target.fire(iEvent),interaction.gesture.prevAngle=iEvent.angle,
interaction.gesture.prevDistance=iEvent.distance,iEvent.scale===1/0||null===iEvent.scale||void 0===iEvent.scale||isNaN(iEvent.scale)||(interaction.gesture.scale=iEvent.scale))}),Interactable.prototype.gesturable=function(options){return utils.is.object(options)?(this.options.gesture.enabled=!1!==options.enabled,this.setPerAction("gesture",options),this.setOnEvents("gesture",options),this):utils.is.bool(options)?((this.options.gesture.enabled=options)||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},InteractEvent.signals.on("set-delta",function(deltaSource){var interaction=deltaSource.interaction,
iEvent=deltaSource.iEvent,pointers=deltaSource.action,event=deltaSource.event,starting=deltaSource.starting,ending=deltaSource.ending,deltaSource=deltaSource.deltaSource;"gesture"===pointers&&(pointers=interaction.pointers,iEvent.touches=[pointers[0],pointers[1]],starting?(iEvent.distance=utils.touchDistance(pointers,deltaSource),iEvent.box=utils.touchBBox(pointers),iEvent.scale=1,iEvent.ds=0,iEvent.angle=utils.touchAngle(pointers,void 0,deltaSource),iEvent.da=0):ending||event instanceof InteractEvent?(iEvent.distance=interaction.prevEvent.distance,iEvent.box=interaction.prevEvent.box,iEvent.scale=interaction.prevEvent.scale,iEvent.ds=iEvent.scale-1,
iEvent.angle=interaction.prevEvent.angle,iEvent.da=iEvent.angle-interaction.gesture.startAngle):(iEvent.distance=utils.touchDistance(pointers,deltaSource),iEvent.box=utils.touchBBox(pointers),iEvent.scale=iEvent.distance/interaction.gesture.startDistance,iEvent.angle=utils.touchAngle(pointers,interaction.gesture.prevAngle,deltaSource),iEvent.ds=iEvent.scale-interaction.gesture.prevScale,iEvent.da=iEvent.angle-interaction.gesture.prevAngle))}),Interaction.signals.on("new",function(interaction){interaction.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),actions.gesture=gesture,actions.names.push("gesture")
,utils.merge(Interactable.eventTypes,["gesturestart","gesturemove","gestureend"]),actions.methodDict.gesture="gesturable",defaultOptions.gesture=gesture.defaults,module.exports=gesture},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(require,module,exports){"use strict";var actions=require("./base"),utils=require("../utils"),browser=require("../utils/browser"),InteractEvent=require("../InteractEvent"),Interactable=require("../Interactable"),Interaction=require("../Interaction"),defaultOptions=require("../defaultOptions"),
defaultMargin=browser.supportsTouch||browser.supportsPointerEvent?20:10,resize={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(pointer,event,right,element,interaction,rect){if(!rect)return null;var page=utils.extend({},interaction.curCoords.page),bottom=right.options;if(bottom.resize.enabled){var resizeOptions=bottom.resize,resizeEdges={left:!1,right:!1,top:!1,bottom:!1};if(utils.is.object(resizeOptions.edges)){for(var edge in resizeEdges)resizeEdges[edge]=function(name,value,page,element,
interactableElement,rect,margin){if(!value)return!1;if(!0===value){var width=utils.is.number(rect.width)?rect.width:rect.right-rect.left,height=utils.is.number(rect.height)?rect.height:rect.bottom-rect.top;if(width<0&&("left"===name?name="right":"right"===name&&(name="left")),height<0&&("top"===name?name="bottom":"bottom"===name&&(name="top")),"left"===name)return page.x<(0<=width?rect.left:rect.right)+margin;if("top"===name)return page.y<(0<=height?rect.top:rect.bottom)+margin;if("right"===name)return page.x>(0<=width?rect.right:rect.left)-margin;if("bottom"===name)return page.y>(0<=height?rect.bottom:rect.top)-margin}return!!utils.is.element(element)&&(
utils.is.element(value)?value===element:utils.matchesUpTo(element,value,interactableElement))}(edge,resizeOptions.edges[edge],page,interaction._eventTarget,element,rect,resizeOptions.margin||defaultMargin);if(resizeEdges.left=resizeEdges.left&&!resizeEdges.right,resizeEdges.top=resizeEdges.top&&!resizeEdges.bottom,resizeEdges.left||resizeEdges.right||resizeEdges.top||resizeEdges.bottom)return{name:"resize",edges:resizeEdges}}else{right="y"!==bottom.resize.axis&&page.x>rect.right-defaultMargin,bottom="x"!==bottom.resize.axis&&page.y>rect.bottom-defaultMargin;if(right||bottom)return{name:"resize",axes:(right?"x":"")+(bottom?"y":"")}}}return null},
cursors:browser.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(action){if(action.axis)return resize.cursors[action.name+action.axis];if(action.edges){for(var cursorKey="",edgeNames=["top","bottom","left","right"],i=0;i<4;i++)action.edges[edgeNames[i]]&&(cursorKey+=edgeNames[i])
;return resize.cursors[cursorKey]}}};InteractEvent.signals.on("new",function(linkedEdges){var startRect,resizeOptions,iEvent=linkedEdges.iEvent,interaction=linkedEdges.interaction;"resizestart"===iEvent.type&&interaction.prepared.edges&&(startRect=interaction.target.getRect(interaction.element),(resizeOptions=interaction.target.options.resize).square||resizeOptions.preserveAspectRatio?((linkedEdges=utils.extend({},interaction.prepared.edges)).top=linkedEdges.top||linkedEdges.left&&!linkedEdges.bottom,linkedEdges.left=linkedEdges.left||linkedEdges.top&&!linkedEdges.right,linkedEdges.bottom=linkedEdges.bottom||linkedEdges.right&&!linkedEdges.top,
linkedEdges.right=linkedEdges.right||linkedEdges.bottom&&!linkedEdges.left,interaction.prepared._linkedEdges=linkedEdges):interaction.prepared._linkedEdges=null,resizeOptions.preserveAspectRatio&&(interaction.resizeStartAspectRatio=startRect.width/startRect.height),interaction.resizeRects={start:startRect,current:utils.extend({},startRect),inverted:utils.extend({},startRect),previous:utils.extend({},startRect),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},iEvent.rect=interaction.resizeRects.inverted,iEvent.deltaRect=interaction.resizeRects.delta)}),InteractEvent.signals.on("new",function(dx){var iEvent=dx.iEvent,dy=dx.phase,
interaction=dx.interaction;if("move"===dy&&interaction.prepared.edges){var edge,startAspectRatio=interaction.target.options.resize,swap=startAspectRatio.invert,invertible="reposition"===swap||"negate"===swap,edges=interaction.prepared.edges,start=interaction.resizeRects.start,current=interaction.resizeRects.current,inverted=interaction.resizeRects.inverted,delta=interaction.resizeRects.delta,previous=utils.extend(interaction.resizeRects.previous,inverted),originalEdges=edges,dx=iEvent.dx,dy=iEvent.dy;for(edge in(startAspectRatio.preserveAspectRatio||startAspectRatio.square)&&(
startAspectRatio=startAspectRatio.preserveAspectRatio?interaction.resizeStartAspectRatio:1,edges=interaction.prepared._linkedEdges,originalEdges.left&&originalEdges.bottom||originalEdges.right&&originalEdges.top?dy=-dx/startAspectRatio:originalEdges.left||originalEdges.right?dy=dx/startAspectRatio:(originalEdges.top||originalEdges.bottom)&&(dx=dy*startAspectRatio)),edges.top&&(current.top+=dy),edges.bottom&&(current.bottom+=dy),edges.left&&(current.left+=dx),edges.right&&(current.right+=dx),invertible?(utils.extend(inverted,current),"reposition"===swap&&(swap=void 0,inverted.top>inverted.bottom&&(swap=inverted.top,inverted.top=inverted.bottom,
inverted.bottom=swap),inverted.left>inverted.right&&(swap=inverted.left,inverted.left=inverted.right,inverted.right=swap))):(inverted.top=Math.min(current.top,start.bottom),inverted.bottom=Math.max(current.bottom,start.top),inverted.left=Math.min(current.left,start.right),inverted.right=Math.max(current.right,start.left)),inverted.width=inverted.right-inverted.left,inverted.height=inverted.bottom-inverted.top,inverted)delta[edge]=inverted[edge]-previous[edge];iEvent.edges=interaction.prepared.edges,iEvent.rect=inverted,iEvent.deltaRect=delta}}),Interactable.prototype.resizable=function(options){return utils.is.object(options)?(
this.options.resize.enabled=!1!==options.enabled,this.setPerAction("resize",options),this.setOnEvents("resize",options),/^x$|^y$|^xy$/.test(options.axis)?this.options.resize.axis=options.axis:null===options.axis&&(this.options.resize.axis=defaultOptions.resize.axis),utils.is.bool(options.preserveAspectRatio)?this.options.resize.preserveAspectRatio=options.preserveAspectRatio:utils.is.bool(options.square)&&(this.options.resize.square=options.square),this):utils.is.bool(options)?((this.options.resize.enabled=options)||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},Interaction.signals.on("new",function(interaction){
interaction.resizeAxes="xy"}),InteractEvent.signals.on("set-delta",function(_ref3){var interaction=_ref3.interaction,iEvent=_ref3.iEvent;"resize"===_ref3.action&&interaction.resizeAxes&&(interaction.target.options.resize.square?("y"===interaction.resizeAxes?iEvent.dx=iEvent.dy:iEvent.dy=iEvent.dx,iEvent.axes="xy"):(iEvent.axes=interaction.resizeAxes,"x"===interaction.resizeAxes?iEvent.dy=0:"y"===interaction.resizeAxes&&(iEvent.dx=0)))}),actions.resize=resize,actions.names.push("resize"),utils.merge(Interactable.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),actions.methodDict.resize="resizable",
defaultOptions.resize=resize.defaults,module.exports=resize},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":36,"./base":6}],11:[function(defaultOptions,module,exports){"use strict";var raf=defaultOptions("./utils/raf"),getWindow=defaultOptions("./utils/window").getWindow,is=defaultOptions("./utils/is"),domUtils=defaultOptions("./utils/domUtils"),Interaction=defaultOptions("./Interaction"),defaultOptions=defaultOptions("./defaultOptions"),autoScroll={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(interaction
){autoScroll.isScrolling=!0,raf.cancel(autoScroll.i),autoScroll.interaction=interaction,autoScroll.prevTime=(new Date).getTime(),autoScroll.i=raf.request(autoScroll.scroll)},stop:function(){autoScroll.isScrolling=!1,raf.cancel(autoScroll.i)},scroll:function(){var options=autoScroll.interaction.target.options[autoScroll.interaction.prepared.name].autoScroll,container=options.container||getWindow(autoScroll.interaction.element),now=(new Date).getTime(),s=(now-autoScroll.prevTime)/1e3,s=options.speed*s;1<=s&&(is.window(container)?container.scrollBy(autoScroll.x*s,autoScroll.y*s):container&&(container.scrollLeft+=autoScroll.x*s,
container.scrollTop+=autoScroll.y*s),autoScroll.prevTime=now),autoScroll.isScrolling&&(raf.cancel(autoScroll.i),autoScroll.i=raf.request(autoScroll.scroll))},check:function(options,actionName){options=options.options;return options[actionName].autoScroll&&options[actionName].autoScroll.enabled},onInteractionMove:function(rect){var options,left,top,right,bottom,interaction=rect.interaction,pointer=rect.pointer;interaction.interacting()&&autoScroll.check(interaction.target,interaction.prepared.name)&&(interaction.simulation?autoScroll.x=autoScroll.y=0:(left=bottom=right=top=void 0,rect=(options=interaction.target.options[interaction.prepared.name].autoScroll
).container||getWindow(interaction.element),bottom=is.window(rect)?(left=pointer.clientX<autoScroll.margin,top=pointer.clientY<autoScroll.margin,right=pointer.clientX>rect.innerWidth-autoScroll.margin,pointer.clientY>rect.innerHeight-autoScroll.margin):(rect=domUtils.getElementClientRect(rect),left=pointer.clientX<rect.left+autoScroll.margin,top=pointer.clientY<rect.top+autoScroll.margin,right=pointer.clientX>rect.right-autoScroll.margin,pointer.clientY>rect.bottom-autoScroll.margin),autoScroll.x=right?1:left?-1:0,autoScroll.y=bottom?1:top?-1:0,autoScroll.isScrolling||(autoScroll.margin=options.margin,autoScroll.speed=options.speed,autoScroll.start(
interaction))))}};Interaction.signals.on("stop-active",function(){autoScroll.stop()}),Interaction.signals.on("action-move",autoScroll.onInteractionMove),defaultOptions.perAction.autoScroll=autoScroll.defaults,module.exports=autoScroll},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(warnOnce,module,exports){"use strict";var Interactable=warnOnce("../Interactable"),actions=warnOnce("../actions/base"),is=warnOnce("../utils/is"),domUtils=warnOnce("../utils/domUtils"),warnOnce=warnOnce("../utils").warnOnce;Interactable.prototype.getAction=function(pointer,event,interaction,element
){var action=this.defaultActionChecker(pointer,event,interaction,element);return this.options.actionChecker?this.options.actionChecker(pointer,event,action,this,element,interaction):action},Interactable.prototype.ignoreFrom=warnOnce(function(newValue){return this._backCompatOption("ignoreFrom",newValue)},"Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),Interactable.prototype.allowFrom=warnOnce(function(newValue){return this._backCompatOption("allowFrom",newValue)},"Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),Interactable.prototype.testIgnore=function(
ignoreFrom,interactableElement,element){return!(!ignoreFrom||!is.element(element))&&(is.string(ignoreFrom)?domUtils.matchesUpTo(element,ignoreFrom,interactableElement):!!is.element(ignoreFrom)&&domUtils.nodeContains(ignoreFrom,element))},Interactable.prototype.testAllow=function(allowFrom,interactableElement,element){return!allowFrom||!!is.element(element)&&(is.string(allowFrom)?domUtils.matchesUpTo(element,allowFrom,interactableElement):!!is.element(allowFrom)&&domUtils.nodeContains(allowFrom,element))},Interactable.prototype.testIgnoreAllow=function(options,interactableElement,eventTarget){return!this.testIgnore(options.ignoreFrom,interactableElement,
eventTarget)&&this.testAllow(options.allowFrom,interactableElement,eventTarget)},Interactable.prototype.actionChecker=function(checker){return is.function(checker)?(this.options.actionChecker=checker,this):null===checker?(delete this.options.actionChecker,this):this.options.actionChecker},Interactable.prototype.styleCursor=function(newValue){return is.bool(newValue)?(this.options.styleCursor=newValue,this):null===newValue?(delete this.options.styleCursor,this):this.options.styleCursor},Interactable.prototype.defaultActionChecker=function(pointer,event,interaction,element){for(var action,rect=this.getRect(element),buttons=event.buttons||{0:1,1:4,3:8,4:16
}[event.button],_i=0;_i<actions.names.length;_i++){var actionName=actions.names[_i];if((!interaction.pointerIsDown||!/mouse|pointer/.test(interaction.pointerType)||0!=(buttons&this.options[actionName].mouseButtons))&&(action=actions[actionName].checker(pointer,event,this,element,interaction,rect)))return action}}},{"../Interactable":4,"../actions/base":6,"../utils":44,"../utils/domUtils":39,"../utils/is":46}],13:[function(require,module,exports){"use strict";var interact=require("../interact"),Interactable=require("../Interactable"),Interaction=require("../Interaction"),actions=require("../actions/base"),defaultOptions=require("../defaultOptions"),
scope=require("../scope"),utils=require("../utils"),signals=require("../utils/Signals").new();require("./InteractableMethods");var autoStart={signals:signals,withinInteractionLimit:withinInteractionLimit,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}},setActionDefaults:function(action){utils.extend(action.defaults,autoStart.defaults.perAction)},validateAction:validateAction};function validateAction(action,interactable,element,eventTarget){return utils.is.object(action)&&interactable.testIgnoreAllow(interactable.options[action.name],element,eventTarget
)&&interactable.options[action.name].enabled&&withinInteractionLimit(interactable,element,action)?action:null}function getActionInfo(interaction,pointer,event,eventTarget){var matches=[],matchElements=[],element=eventTarget;function pushMatches(interactable){matches.push(interactable),matchElements.push(element)}for(;utils.is.element(element);){matches=[],matchElements=[],scope.interactables.forEachMatch(element,pushMatches);var actionInfo=function(interaction,pointer,event,matches,matchElements,eventTarget){for(var i=0,len=matches.length;i<len;i++){var match=matches[i],matchElement=matchElements[i],action=validateAction(match.getAction(pointer,event,
interaction,matchElement),match,matchElement,eventTarget);if(action)return{action:action,target:match,element:matchElement}}return{}}(interaction,pointer,event,matches,matchElements,eventTarget);if(actionInfo.action&&!actionInfo.target.options[actionInfo.action.name].manualStart)return actionInfo;element=utils.parentNode(element)}return{}}function prepare(interaction,element){var cursor=element.action,target=element.target,element=element.element,cursor=cursor||{};interaction.target&&interaction.target.options.styleCursor&&(interaction.target._doc.documentElement.style.cursor=""),interaction.target=target,interaction.element=element,utils.copyAction(
interaction.prepared,cursor),target&&target.options.styleCursor&&(cursor=cursor?actions[cursor.name].getCursor(cursor):"",interaction.target._doc.documentElement.style.cursor=cursor),signals.fire("prepared",{interaction:interaction})}function withinInteractionLimit(interactable,element,action){var options=interactable.options,maxActions=options[action.name].max,maxPerElement=options[action.name].maxPerElement,activeInteractions=0,targetCount=0,targetElementCount=0;if(maxActions&&maxPerElement&&autoStart.maxInteractions){for(var _i=0;_i<scope.interactions.length;_i++){var interaction=scope.interactions[_i],otherAction=interaction.prepared.name;if(
interaction.interacting()){if(++activeInteractions>=autoStart.maxInteractions)return!1;if(interaction.target===interactable){if(maxActions<=(targetCount+=otherAction===action.name|0))return!1;if(interaction.element===element&&(targetElementCount++,otherAction!==action.name||maxPerElement<=targetElementCount))return!1}}}return 0<autoStart.maxInteractions}}Interaction.signals.on("down",function(eventTarget){var interaction=eventTarget.interaction,pointer=eventTarget.pointer,event=eventTarget.event,eventTarget=eventTarget.eventTarget;interaction.interacting()||prepare(interaction,getActionInfo(interaction,pointer,event,eventTarget))}),Interaction.signals.on(
"move",function(eventTarget){var interaction=eventTarget.interaction,pointer=eventTarget.pointer,event=eventTarget.event,eventTarget=eventTarget.eventTarget;"mouse"!==interaction.pointerType||interaction.pointerIsDown||interaction.interacting()||prepare(interaction,getActionInfo(interaction,pointer,event,eventTarget))}),Interaction.signals.on("move",function(target){var interaction=target.interaction,event=target.event;interaction.pointerIsDown&&!interaction.interacting()&&interaction.pointerWasMoved&&interaction.prepared.name&&(signals.fire("before-start",target),target=interaction.target,interaction.prepared.name&&target&&(
target.options[interaction.prepared.name].manualStart||!withinInteractionLimit(target,interaction.element,interaction.prepared)?interaction.stop(event):interaction.start(interaction.prepared,target,interaction.element)))}),Interaction.signals.on("stop",function(target){target=target.interaction.target;target&&target.options.styleCursor&&(target._doc.documentElement.style.cursor="")}),interact.maxInteractions=function(newValue){return utils.is.number(newValue)?(autoStart.maxInteractions=newValue,interact):autoStart.maxInteractions},Interactable.settingsMethods.push("styleCursor"),Interactable.settingsMethods.push("actionChecker"),
Interactable.settingsMethods.push("ignoreFrom"),Interactable.settingsMethods.push("allowFrom"),defaultOptions.base.actionChecker=null,defaultOptions.base.styleCursor=!0,utils.extend(defaultOptions.perAction,autoStart.defaults.perAction),module.exports=autoStart},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"../utils/Signals":34,"./InteractableMethods":12}],14:[function(require,module,exports){"use strict";var autoStart=require("./base"),scope=require("../scope"),is=require("../utils/is"),parentNode=require("../utils/domUtils").parentNode;autoStart.setActionDefaults(require(
"../actions/drag")),autoStart.signals.on("before-start",function(absY){var interaction=absY.interaction,eventTarget=absY.eventTarget,targetOptions=absY.dx,startAxis=absY.dy;if("drag"===interaction.prepared.name){var absX=Math.abs(targetOptions),absY=Math.abs(startAxis),targetOptions=interaction.target.options.drag,startAxis=targetOptions.startAxis,currentAxis=absY<absX?"x":absX<absY?"y":"xy";if(interaction.prepared.axis="start"===targetOptions.lockAxis?currentAxis[0]:targetOptions.lockAxis,"xy"!=currentAxis&&"xy"!==startAxis&&startAxis!==currentAxis){interaction.prepared.name=null;for(var element=eventTarget,getDraggable=function(interactable){if(
interactable!==interaction.target){var action=interaction.target.options.drag;if(!action.manualStart&&interactable.testIgnoreAllow(action,element,eventTarget)){action=interactable.getAction(interaction.downPointer,interaction.downEvent,interaction,element);if(action&&"drag"===action.name&&function(startAxis,thisAxis){if(!thisAxis)return!1;thisAxis=thisAxis.options.drag.startAxis;return"xy"===startAxis||"xy"===thisAxis||thisAxis===startAxis}(currentAxis,interactable)&&autoStart.validateAction(action,interactable,element,eventTarget))return interactable}}};is.element(element);){var interactable=scope.interactables.forEachMatch(element,getDraggable);if(
interactable){interaction.prepared.name="drag",interaction.target=interactable,interaction.element=element;break}element=parentNode(element)}}}})},{"../actions/drag":7,"../scope":33,"../utils/domUtils":39,"../utils/is":46,"./base":13}],15:[function(require,module,exports){"use strict";require("./base").setActionDefaults(require("../actions/gesture"))},{"../actions/gesture":9,"./base":13}],16:[function(Interaction,module,exports){"use strict";var autoStart=Interaction("./base"),Interaction=Interaction("../Interaction");function getHoldDuration(options){var actionName=options.prepared&&options.prepared.name;if(!actionName)return null
;options=options.target.options;return options[actionName].hold||options[actionName].delay}autoStart.defaults.perAction.hold=0,autoStart.defaults.perAction.delay=0,Interaction.signals.on("new",function(interaction){interaction.autoStartHoldTimer=null}),autoStart.signals.on("prepared",function(hold){var interaction=hold.interaction,hold=getHoldDuration(interaction);0<hold&&(interaction.autoStartHoldTimer=setTimeout(function(){interaction.start(interaction.prepared,interaction.target,interaction.element)},hold))}),Interaction.signals.on("move",function(duplicate){var interaction=duplicate.interaction,duplicate=duplicate.duplicate
;interaction.pointerWasMoved&&!duplicate&&clearTimeout(interaction.autoStartHoldTimer)}),autoStart.signals.on("before-start",function(interaction){interaction=interaction.interaction;0<getHoldDuration(interaction)&&(interaction.prepared.name=null)}),module.exports={getHoldDuration:getHoldDuration}},{"../Interaction":5,"./base":13}],17:[function(require,module,exports){"use strict";require("./base").setActionDefaults(require("../actions/resize"))},{"../actions/resize":10,"./base":13}],18:[function(require,module,exports){"use strict";module.exports={base:{accept:null,preventDefault:"auto",deltaSource:"page"},perAction:{origin:{x:0,y:0},inertia:{enabled:!1,
resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}}}},{}],19:[function(require,module,exports){"use strict";require("./inertia"),require("./modifiers/snap"),require("./modifiers/restrict"),require("./pointerEvents/base"),require("./pointerEvents/holdRepeat"),require("./pointerEvents/interactableTargets"),require("./autoStart/hold"),require("./actions/gesture"),require("./actions/resize"),require("./actions/drag"),require("./actions/drop"),require("./modifiers/snapSize"),require("./modifiers/restrictEdges"),require("./modifiers/restrictSize"),require("./autoStart/gesture"),require("./autoStart/resize"),require("./autoStart/drag"),
require("./interactablePreventDefault.js"),require("./autoScroll"),module.exports=require("./interact")},{"./actions/drag":7,"./actions/drop":8,"./actions/gesture":9,"./actions/resize":10,"./autoScroll":11,"./autoStart/drag":14,"./autoStart/gesture":15,"./autoStart/hold":16,"./autoStart/resize":17,"./inertia":20,"./interact":21,"./interactablePreventDefault.js":22,"./modifiers/restrict":24,"./modifiers/restrictEdges":25,"./modifiers/restrictSize":26,"./modifiers/snap":27,"./modifiers/snapSize":28,"./pointerEvents/base":30,"./pointerEvents/holdRepeat":31,"./pointerEvents/interactableTargets":32}],20:[function(require,module,exports){"use strict"
;var InteractEvent=require("./InteractEvent"),Interaction=require("./Interaction"),modifiers=require("./modifiers/base"),utils=require("./utils"),animationFrame=require("./utils/raf");function updateInertiaCoords(interaction){var pageUp,clientUp,status=interaction.inertiaStatus;status.active&&(pageUp=status.upCoords.page,clientUp=status.upCoords.client,utils.setCoords(interaction.curCoords,[{pageX:pageUp.x+status.sx,pageY:pageUp.y+status.sy,clientX:clientUp.x+status.sx,clientY:clientUp.y+status.sy}]))}Interaction.signals.on("new",function(interaction){interaction.inertiaStatus={active:!1,smoothEnd:!1,allowResume:!1,startEvent:null,upCoords:{},xe:0,ye:0,sx:0,
sy:0,t0:0,vx0:0,vys:0,duration:0,lambda_v0:0,one_ve_v0:0,i:null},interaction.boundInertiaFrame=function(){return function(){updateInertiaCoords(this),utils.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords);var status=this.inertiaStatus,lambda=this.target.options[this.prepared.name].inertia.resistance,quadPoint=(new Date).getTime()/1e3-status.t0;{quadPoint<status.te?(quadPoint=1-(Math.exp(-lambda*quadPoint)-status.lambda_v0)/status.one_ve_v0,status.modifiedXe===status.xe&&status.modifiedYe===status.ye?(status.sx=status.xe*quadPoint,status.sy=status.ye*quadPoint):(quadPoint=utils.getQuadraticCurvePoint(0,0,status.xe,status.ye,status.modifiedXe,
status.modifiedYe,quadPoint),status.sx=quadPoint.x,status.sy=quadPoint.y),this.doMove(),status.i=animationFrame.request(this.boundInertiaFrame)):(status.sx=status.modifiedXe,status.sy=status.modifiedYe,this.doMove(),this.end(status.startEvent),status.active=!1,this.simulation=null)}utils.copyCoords(this.prevCoords,this.curCoords)}.apply(interaction)},interaction.boundSmoothEndFrame=function(){return function(){updateInertiaCoords(this);var status=this.inertiaStatus,t=(new Date).getTime()-status.t0,duration=this.target.options[this.prepared.name].inertia.smoothEndDuration;t<duration?(status.sx=utils.easeOutQuad(t,0,status.xe,duration),
status.sy=utils.easeOutQuad(t,0,status.ye,duration),this.pointerMove(status.startEvent,status.startEvent),status.i=animationFrame.request(this.boundSmoothEndFrame)):(status.sx=status.xe,status.sy=status.ye,this.pointerMove(status.startEvent,status.startEvent),this.end(status.startEvent),status.smoothEnd=status.active=!1,this.simulation=null)}.apply(interaction)}}),Interaction.signals.on("down",function(eventTarget){var interaction=eventTarget.interaction,event=eventTarget.event,pointer=eventTarget.pointer,eventTarget=eventTarget.eventTarget,status=interaction.inertiaStatus;if(status.active)for(var element=eventTarget;utils.is.element(element);){if(
element===interaction.element){animationFrame.cancel(status.i),status.active=!1,interaction.simulation=null,interaction.updatePointer(pointer),utils.setCoords(interaction.curCoords,interaction.pointers);var resumeEvent={interaction:interaction};Interaction.signals.fire("before-action-move",resumeEvent),Interaction.signals.fire("action-resume",resumeEvent);resumeEvent=new InteractEvent(interaction,event,interaction.prepared.name,"inertiaresume",interaction.element);interaction.target.fire(resumeEvent),interaction.prevEvent=resumeEvent,modifiers.resetStatuses(interaction.modifierStatuses),utils.copyCoords(interaction.prevCoords,interaction.curCoords);break}
element=utils.parentNode(element)}}),Interaction.signals.on("up",function(inertia){var target,inertiaOptions,now,statuses,page,pointerSpeed,smoothEnd,modifierResult,inertiaPossible,modifierArg,interaction=inertia.interaction,event=inertia.event,status=interaction.inertiaStatus;interaction.interacting()&&!status.active&&(inertiaOptions=(modifierArg=(target=interaction.target)&&target.options)&&interaction.prepared.name&&modifierArg[interaction.prepared.name].inertia,now=(new Date).getTime(),statuses={},page=utils.extend({},interaction.curCoords.page),pointerSpeed=interaction.pointerDelta.client.speed,smoothEnd=!1,modifierResult=void 0,inertia=(
inertiaPossible=inertiaOptions&&inertiaOptions.enabled&&"gesture"!==interaction.prepared.name&&event!==status.startEvent)&&now-interaction.curCoords.timeStamp<50&&pointerSpeed>inertiaOptions.minSpeed&&pointerSpeed>inertiaOptions.endSpeed,modifierArg={interaction:interaction,pageCoords:page,statuses:statuses,preEnd:!0,requireEndOnly:!0},inertiaPossible&&!inertia&&(modifiers.resetStatuses(statuses),(modifierResult=modifiers.setAll(modifierArg)).shouldMove&&modifierResult.locked&&(smoothEnd=!0)),(inertia||smoothEnd)&&(utils.copyCoords(status.upCoords,interaction.curCoords),interaction.pointers[0]=status.startEvent=new InteractEvent(interaction,event,
interaction.prepared.name,"inertiastart",interaction.element),status.t0=now,status.active=!0,status.allowResume=inertiaOptions.allowResume,interaction.simulation=status,target.fire(status.startEvent),inertia?(status.vx0=interaction.pointerDelta.client.vx,status.vy0=interaction.pointerDelta.client.vy,status.v0=pointerSpeed,function(interaction,status){var inertiaOptions=interaction.target.options[interaction.prepared.name].inertia,lambda=inertiaOptions.resistance,inertiaDur=-Math.log(inertiaOptions.endSpeed/status.v0)/lambda;status.x0=interaction.prevEvent.pageX,status.y0=interaction.prevEvent.pageY,status.t0=status.startEvent.timeStamp/1e3,
status.sx=status.sy=0,status.modifiedXe=status.xe=(status.vx0-inertiaDur)/lambda,status.modifiedYe=status.ye=(status.vy0-inertiaDur)/lambda,status.te=inertiaDur,status.lambda_v0=lambda/status.v0,status.one_ve_v0=1-inertiaOptions.endSpeed/status.v0}(interaction,status),utils.extend(page,interaction.curCoords.page),page.x+=status.xe,page.y+=status.ye,modifiers.resetStatuses(statuses),modifierResult=modifiers.setAll(modifierArg),status.modifiedXe+=modifierResult.dx,status.modifiedYe+=modifierResult.dy,status.i=animationFrame.request(interaction.boundInertiaFrame)):(status.smoothEnd=!0,status.xe=modifierResult.dx,status.ye=modifierResult.dy,status.sx=status.sy=0
,status.i=animationFrame.request(interaction.boundSmoothEndFrame))))}),Interaction.signals.on("stop-active",function(status){var interaction=status.interaction,status=interaction.inertiaStatus;status.active&&(animationFrame.cancel(status.i),status.active=!1,interaction.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers/base":23,"./utils":44,"./utils/raf":50}],21:[function(require,module,exports){"use strict";var browser=require("./utils/browser"),events=require("./utils/events"),utils=require("./utils"),scope=require("./scope"),Interactable=require("./Interactable"),Interaction=require("./Interaction"),globalEvents={};function interact(
element,options){var interactable=scope.interactables.get(element,options);return interactable||((interactable=new Interactable(element,options)).events.global=globalEvents),interactable}interact.isSet=function(element,options){return-1!==scope.interactables.indexOfElement(element,options&&options.context)},interact.on=function(type,listener,options){if(utils.is.string(type)&&-1!==type.search(" ")&&(type=type.trim().split(/ +/)),utils.is.array(type)){for(var _i=0;_i<type.length;_i++){var _ref=type[_i];interact.on(_ref,listener,options)}return interact}if(utils.is.object(type)){for(var prop in type)interact.on(prop,type[prop],listener);return interact}
return utils.contains(Interactable.eventTypes,type)?globalEvents[type]?globalEvents[type].push(listener):globalEvents[type]=[listener]:events.add(scope.document,type,listener,{options:options}),interact},interact.off=function(type,listener,options){if(utils.is.string(type)&&-1!==type.search(" ")&&(type=type.trim().split(/ +/)),utils.is.array(type)){for(var _i2=0;_i2<type.length;_i2++){var _ref2=type[_i2];interact.off(_ref2,listener,options)}return interact}if(utils.is.object(type)){for(var prop in type)interact.off(prop,type[prop],listener);return interact}var index;return utils.contains(Interactable.eventTypes,type)?(index=void 0,
type in globalEvents&&-1!==(index=globalEvents[type].indexOf(listener))&&globalEvents[type].splice(index,1)):events.remove(scope.document,type,listener,options),interact},interact.debug=function(){return scope},interact.getPointerAverage=utils.pointerAverage,interact.getTouchBBox=utils.touchBBox,interact.getTouchDistance=utils.touchDistance,interact.getTouchAngle=utils.touchAngle,interact.getElementRect=utils.getElementRect,interact.getElementClientRect=utils.getElementClientRect,interact.matchesSelector=utils.matchesSelector,interact.closest=utils.closest,interact.supportsTouch=function(){return browser.supportsTouch},interact.supportsPointerEvent=function(
){return browser.supportsPointerEvent},interact.stop=function(event){for(var i=scope.interactions.length-1;0<=i;i--)scope.interactions[i].stop(event);return interact},interact.pointerMoveTolerance=function(newValue){return utils.is.number(newValue)?(Interaction.pointerMoveTolerance=newValue,interact):Interaction.pointerMoveTolerance},interact.addDocument=scope.addDocument,interact.removeDocument=scope.removeDocument,scope.interact=interact,module.exports=interact},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils":44,"./utils/browser":36,"./utils/events":40}],22:[function(_require,module,exports){"use strict";var Interactable=_require(
"./Interactable"),Interaction=_require("./Interaction"),scope=_require("./scope"),is=_require("./utils/is"),events=_require("./utils/events"),browser=_require("./utils/browser"),_require=_require("./utils/domUtils"),nodeContains=_require.nodeContains,matchesSelector=_require.matchesSelector;function onInteractionEvent(event){var interaction=event.interaction,event=event.event;interaction.target&&interaction.target.checkAndPreventDefault(event)}Interactable.prototype.preventDefault=function(newValue){return/^(always|never|auto)$/.test(newValue)?(this.options.preventDefault=newValue,this):is.bool(newValue)?(this.options.preventDefault=newValue?"always":"never"
,this):this.options.preventDefault},Interactable.prototype.checkAndPreventDefault=function(event){var setting=this.options.preventDefault;"never"!==setting&&("always"!==setting&&(events.supportsPassive&&/^touch(start|move)$/.test(event.type)&&!browser.isIOS||/^(mouse|pointer|touch)*(down|start)/i.test(event.type)||is.element(event.target)&&matchesSelector(event.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *"))||event.preventDefault())};for(var _arr=["down","move","up","cancel"],_i=0;_i<_arr.length;_i++){var eventSignal=_arr[_i];Interaction.signals.on(eventSignal,onInteractionEvent)}Interaction.docEvents.dragstart=function(event
){for(var _i2=0;_i2<scope.interactions.length;_i2++){var interaction=scope.interactions[_i2];if(interaction.element&&(interaction.element===event.target||nodeContains(interaction.element,event.target)))return void interaction.target.checkAndPreventDefault(event)}}},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils/browser":36,"./utils/domUtils":39,"./utils/events":40,"./utils/is":46}],23:[function(require,module,exports){"use strict";var InteractEvent=require("../InteractEvent"),Interaction=require("../Interaction"),extend=require("../utils/extend"),modifiers={names:[],setOffsets:function(arg){var interaction=arg.interaction,page=arg.pageCoords,
target=interaction.target,element=interaction.element,startOffset=interaction.startOffset,rect=target.getRect(element);rect?(startOffset.left=page.x-rect.left,startOffset.top=page.y-rect.top,startOffset.right=rect.right-page.x,startOffset.bottom=rect.bottom-page.y,"width"in rect||(rect.width=rect.right-rect.left),"height"in rect||(rect.height=rect.bottom-rect.top)):startOffset.left=startOffset.top=startOffset.right=startOffset.bottom=0,arg.rect=rect,arg.interactable=target,arg.element=element;for(var _i=0;_i<modifiers.names.length;_i++){var modifierName=modifiers.names[_i];arg.options=target.options[interaction.prepared.name][modifierName],arg.options&&(
interaction.modifierOffsets[modifierName]=modifiers[modifierName].setOffset(arg))}},setAll:function(arg){var interaction=arg.interaction,statuses=arg.statuses,preEnd=arg.preEnd,requireEndOnly=arg.requireEndOnly,result={dx:0,dy:0,changed:!1,locked:!1,shouldMove:!0};arg.modifiedCoords=extend({},arg.pageCoords);for(var _i2=0;_i2<modifiers.names.length;_i2++){var modifierName=modifiers.names[_i2],modifier=modifiers[modifierName],options=interaction.target.options[interaction.prepared.name][modifierName];shouldDo(options,preEnd,requireEndOnly)&&(arg.status=arg.status=statuses[modifierName],arg.options=options,
arg.offset=arg.interaction.modifierOffsets[modifierName],modifier.set(arg),arg.status.locked&&(arg.modifiedCoords.x+=arg.status.dx,arg.modifiedCoords.y+=arg.status.dy,result.dx+=arg.status.dx,result.dy+=arg.status.dy,result.locked=!0))}return result.shouldMove=!arg.status||!result.locked||arg.status.changed,result},resetStatuses:function(statuses){for(var _i3=0;_i3<modifiers.names.length;_i3++){var modifierName=modifiers.names[_i3],status=statuses[modifierName]||{};status.dx=status.dy=0,status.modifiedX=status.modifiedY=NaN,status.locked=!1,status.changed=!0,statuses[modifierName]=status}return statuses},start:function(interaction,arg){
interaction=interaction.interaction,arg={interaction:interaction,pageCoords:("action-resume"===arg?interaction.curCoords:interaction.startCoords).page,startOffset:interaction.startOffset,statuses:interaction.modifierStatuses,preEnd:!1,requireEndOnly:!1};modifiers.setOffsets(arg),modifiers.resetStatuses(arg.statuses),arg.pageCoords=extend({},interaction.startCoords.page),interaction.modifierResult=modifiers.setAll(arg)},beforeMove:function(interactingBeforeMove){var interaction=interactingBeforeMove.interaction,modifierResult=interactingBeforeMove.preEnd,interactingBeforeMove=interactingBeforeMove.interactingBeforeMove,modifierResult=modifiers.setAll({
interaction:interaction,preEnd:modifierResult,pageCoords:interaction.curCoords.page,statuses:interaction.modifierStatuses,requireEndOnly:!1});!modifierResult.shouldMove&&interactingBeforeMove&&(interaction._dontFireMove=!0),interaction.modifierResult=modifierResult},end:function(_ref6){for(var interaction=_ref6.interaction,event=_ref6.event,_i4=0;_i4<modifiers.names.length;_i4++){var _ref7=modifiers.names[_i4];if(shouldDo(interaction.target.options[interaction.prepared.name][_ref7],!0,!0)){interaction.doMove({event:event,preEnd:!0});break}}},setXY:function(arg){for(var iEvent=arg.iEvent,interaction=arg.interaction,modifierArg=extend({},arg),
i=0;i<modifiers.names.length;i++){var modifier,modifierName=modifiers.names[i];modifierArg.options=interaction.target.options[interaction.prepared.name][modifierName],modifierArg.options&&(modifier=modifiers[modifierName],modifierArg.status=interaction.modifierStatuses[modifierName],iEvent[modifierName]=modifier.modifyCoords(modifierArg))}}};function shouldDo(options,preEnd,requireEndOnly){return options&&options.enabled&&(preEnd||!options.endOnly)&&(!requireEndOnly||options.endOnly)}Interaction.signals.on("new",function(interaction){interaction.startOffset={left:0,right:0,top:0,bottom:0},interaction.modifierOffsets={},
interaction.modifierStatuses=modifiers.resetStatuses({}),interaction.modifierResult=null}),Interaction.signals.on("action-start",modifiers.start),Interaction.signals.on("action-resume",modifiers.start),Interaction.signals.on("before-action-move",modifiers.beforeMove),Interaction.signals.on("action-end",modifiers.end),InteractEvent.signals.on("set-xy",modifiers.setXY),module.exports=modifiers},{"../InteractEvent":3,"../Interaction":5,"../utils/extend":41}],24:[function(restrict,module,exports){"use strict";var modifiers=restrict("./base"),utils=restrict("../utils"),defaultOptions=restrict("../defaultOptions"),restrict={defaults:{enabled:!1,endOnly:!1,
restriction:null,elementRect:null},setOffset:function(elementRect){var rect=elementRect.rect,startOffset=elementRect.startOffset,offset=elementRect.options,elementRect=offset&&offset.elementRect,offset={};return rect&&elementRect?(offset.left=startOffset.left-rect.width*elementRect.left,offset.top=startOffset.top-rect.height*elementRect.top,offset.right=startOffset.right-rect.width*(1-elementRect.right),offset.bottom=startOffset.bottom-rect.height*(1-elementRect.bottom)):offset.left=offset.top=offset.right=offset.bottom=0,offset},set:function(rect){var modifiedX=rect.modifiedCoords,offset=rect.interaction,status=rect.status,modifiedY=rect.options;if(
!modifiedY)return status;var page=status.useStatusXY?{x:status.x,y:status.y}:utils.extend({},modifiedX),restriction=getRestrictionRect(modifiedY.restriction,offset,page);if(!restriction)return status;status.dx=0,status.dy=0,status.locked=!1;rect=restriction,modifiedX=page.x,modifiedY=page.y,offset=offset.modifierOffsets.restrict,modifiedY="x"in restriction&&"y"in restriction?(modifiedX=Math.max(Math.min(rect.x+rect.width-offset.right,page.x),rect.x+offset.left),Math.max(Math.min(rect.y+rect.height-offset.bottom,page.y),rect.y+offset.top)):(modifiedX=Math.max(Math.min(rect.right-offset.right,page.x),rect.left+offset.left),Math.max(Math.min(
rect.bottom-offset.bottom,page.y),rect.top+offset.top));status.dx=modifiedX-page.x,status.dy=modifiedY-page.y,status.changed=status.modifiedX!==modifiedX||status.modifiedY!==modifiedY,status.locked=!(!status.dx&&!status.dy),status.modifiedX=modifiedX,status.modifiedY=modifiedY},modifyCoords:function(elementRect){var page=elementRect.page,client=elementRect.client,status=elementRect.status,phase=elementRect.phase,options=elementRect.options,elementRect=options&&options.elementRect;if(options&&options.enabled&&("start"!==phase||!elementRect||!status.locked)&&status.locked)return page.x+=status.dx,page.y+=status.dy,client.x+=status.dx,client.y+=status.dy,{
dx:status.dx,dy:status.dy}},getRestrictionRect:getRestrictionRect};function getRestrictionRect(value,interaction,page){return utils.is.function(value)?utils.resolveRectLike(value,interaction.target,interaction.element,[page.x,page.y,interaction]):utils.resolveRectLike(value,interaction.target,interaction.element)}modifiers.restrict=restrict,modifiers.names.push("restrict"),defaultOptions.perAction.restrict=restrict.defaults,module.exports=restrict},{"../defaultOptions":18,"../utils":44,"./base":23}],25:[function(restrictEdges,module,exports){"use strict";var modifiers=restrictEdges("./base"),utils=restrictEdges("../utils"),rectUtils=restrictEdges(
"../utils/rect"),defaultOptions=restrictEdges("../defaultOptions"),resize=restrictEdges("../actions/resize"),getRestrictionRect=restrictEdges("./restrict").getRestrictionRect,noInner={top:1/0,left:1/0,bottom:-1/0,right:-1/0},noOuter={top:-1/0,left:-1/0,bottom:1/0,right:1/0},restrictEdges={defaults:{enabled:!1,endOnly:!1,min:null,max:null,offset:null},setOffset:function(options){var offset=options.interaction,startOffset=options.startOffset,options=options.options;if(!options)return utils.extend({},startOffset);offset=getRestrictionRect(options.offset,offset,offset.startCoords.page);return offset?{top:startOffset.top+offset.y,left:startOffset.left+offset.x,
bottom:startOffset.bottom+offset.y,right:startOffset.right+offset.x}:startOffset},set:function(inner){var page,outer=inner.modifiedCoords,modifiedY=inner.interaction,status=inner.status,offset=inner.offset,modifiedX=inner.options,edges=modifiedY.prepared.linkedEdges||modifiedY.prepared.edges;modifiedY.interacting()&&edges&&(page=status.useStatusXY?{x:status.x,y:status.y}:utils.extend({},outer),inner=rectUtils.xywhToTlbr(getRestrictionRect(modifiedX.inner,modifiedY,page))||noInner,outer=rectUtils.xywhToTlbr(getRestrictionRect(modifiedX.outer,modifiedY,page))||noOuter,modifiedX=page.x,modifiedY=page.y,status.dx=0,status.dy=0,status.locked=!1,
edges.top?modifiedY=Math.min(Math.max(outer.top+offset.top,page.y),inner.top+offset.top):edges.bottom&&(modifiedY=Math.max(Math.min(outer.bottom-offset.bottom,page.y),inner.bottom-offset.bottom)),edges.left?modifiedX=Math.min(Math.max(outer.left+offset.left,page.x),inner.left+offset.left):edges.right&&(modifiedX=Math.max(Math.min(outer.right-offset.right,page.x),inner.right-offset.right)),status.dx=modifiedX-page.x,status.dy=modifiedY-page.y,status.changed=status.modifiedX!==modifiedX||status.modifiedY!==modifiedY,status.locked=!(!status.dx&&!status.dy),status.modifiedX=modifiedX,status.modifiedY=modifiedY)},modifyCoords:function(options){
var page=options.page,client=options.client,status=options.status,phase=options.phase,options=options.options;if(options&&options.enabled&&("start"!==phase||!status.locked)&&status.locked)return page.x+=status.dx,page.y+=status.dy,client.x+=status.dx,client.y+=status.dy,{dx:status.dx,dy:status.dy}},noInner:noInner,noOuter:noOuter,getRestrictionRect:getRestrictionRect};modifiers.restrictEdges=restrictEdges,modifiers.names.push("restrictEdges"),defaultOptions.perAction.restrictEdges=restrictEdges.defaults,resize.defaults.restrictEdges=restrictEdges.defaults,module.exports=restrictEdges},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,
"../utils/rect":51,"./base":23,"./restrict":24}],26:[function(restrictSize,module,exports){"use strict";var modifiers=restrictSize("./base"),restrictEdges=restrictSize("./restrictEdges"),utils=restrictSize("../utils"),rectUtils=restrictSize("../utils/rect"),defaultOptions=restrictSize("../defaultOptions"),resize=restrictSize("../actions/resize"),noMin={width:-1/0,height:-1/0},noMax={width:1/0,height:1/0},restrictSize={defaults:{enabled:!1,endOnly:!1,min:null,max:null},setOffset:function(_ref){return _ref.interaction.startOffset},set:function(arg){var rect,minSize,maxSize=arg.interaction,options=arg.options,
edges=maxSize.prepared.linkedEdges||maxSize.prepared.edges;maxSize.interacting()&&edges&&(rect=rectUtils.xywhToTlbr(maxSize.resizeRects.inverted),minSize=rectUtils.tlbrToXywh(restrictEdges.getRestrictionRect(options.min,maxSize))||noMin,maxSize=rectUtils.tlbrToXywh(restrictEdges.getRestrictionRect(options.max,maxSize))||noMax,arg.options={enabled:options.enabled,endOnly:options.endOnly,inner:utils.extend({},restrictEdges.noInner),outer:utils.extend({},restrictEdges.noOuter)},edges.top?(arg.options.inner.top=rect.bottom-minSize.height,arg.options.outer.top=rect.bottom-maxSize.height):edges.bottom&&(arg.options.inner.bottom=rect.top+minSize.height,
arg.options.outer.bottom=rect.top+maxSize.height),edges.left?(arg.options.inner.left=rect.right-minSize.width,arg.options.outer.left=rect.right-maxSize.width):edges.right&&(arg.options.inner.right=rect.left+minSize.width,arg.options.outer.right=rect.left+maxSize.width),restrictEdges.set(arg))},modifyCoords:restrictEdges.modifyCoords};modifiers.restrictSize=restrictSize,modifiers.names.push("restrictSize"),defaultOptions.perAction.restrictSize=restrictSize.defaults,resize.defaults.restrictSize=restrictSize.defaults,module.exports=restrictSize},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrictEdges":25}],
27:[function(snap,module,exports){"use strict";var modifiers=snap("./base"),interact=snap("../interact"),utils=snap("../utils"),defaultOptions=snap("../defaultOptions"),snap={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null,relativePoints:null},setOffset:function(origin){var offsetRect=origin.interaction,interactable=origin.interactable,element=origin.element,rect=origin.rect,startOffset=origin.startOffset,options=origin.options,offsets=[],origin=utils.rectToXY(utils.resolveRectLike(options.origin))||utils.getOriginXY(interactable,element,offsetRect.prepared.name),snapOffset=void 0;if(snapOffset="startCoords"===(
options=options||interactable.options[offsetRect.prepared.name].snap||{}).offset?{x:offsetRect.startCoords.page.x-origin.x,y:offsetRect.startCoords.page.y-origin.y}:(offsetRect=utils.resolveRectLike(options.offset,interactable,element,[offsetRect]),utils.rectToXY(offsetRect)||{x:0,y:0}),rect&&options.relativePoints&&options.relativePoints.length)for(var _i=0;_i<options.relativePoints.length;_i++){var relativeY=options.relativePoints[_i],relativeX=relativeY.x,relativeY=relativeY.y;offsets.push({x:startOffset.left-rect.width*relativeX+snapOffset.x,y:startOffset.top-rect.height*relativeY+snapOffset.y})}else offsets.push(snapOffset);return offsets},set:function(
_ref4){var interaction=_ref4.interaction,modifiedCoords=_ref4.modifiedCoords,status=_ref4.status,options=_ref4.options,offsets=_ref4.offset,targets=[],target=void 0,page=void 0,i=void 0;status.useStatusXY?page={x:status.x,y:status.y}:(snapChanged=utils.getOriginXY(interaction.target,interaction.element,interaction.prepared.name),(page=utils.extend({},modifiedCoords)).x-=snapChanged.x,page.y-=snapChanged.y),status.realX=page.x,status.realY=page.y;for(var len=(options.targets&&options.targets.length,0),_i2=0;_i2<offsets.length;_i2++)for(var _ref6=offsets[_i2],offsetX=_ref6.x,offsetY=_ref6.y,relativeX=page.x-offsetX,relativeY=page.y-offsetY,_i3=0;_i3<(
options.targets||[]).length;_i3++){var snapTarget=(options.targets||[])[_i3];(target=utils.is.function(snapTarget)?snapTarget(relativeX,relativeY,interaction):snapTarget)&&targets.push({x:utils.is.number(target.x)?target.x+offsetX:relativeX,y:utils.is.number(target.y)?target.y+offsetY:relativeY,range:(utils.is.number(target.range)?target:options).range})}for(var closest={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0},i=0,len=targets.length;i<len;i++){var range=(target=targets[i]).range,dx=target.x-page.x,dy=target.y-page.y,distance=utils.hypot(dx,dy),inRange=distance<=range;range===1/0&&closest.inRange&&closest.range!==1/0&&(inRange=!1),
closest.target&&!(inRange?closest.inRange&&range!==1/0?distance/range<closest.distance/closest.range:range===1/0&&closest.range!==1/0||distance<closest.distance:!closest.inRange&&distance<closest.distance)||(closest.target=target,closest.distance=distance,closest.range=range,closest.inRange=inRange,closest.dx=dx,closest.dy=dy,status.range=range)}var snapChanged=void 0;closest.target?(snapChanged=status.modifiedX!==closest.target.x||status.modifiedY!==closest.target.y,status.modifiedX=closest.target.x,status.modifiedY=closest.target.y):(snapChanged=!0,status.modifiedX=NaN,status.modifiedY=NaN),status.dx=closest.dx,status.dy=closest.dy,
status.changed=snapChanged||closest.inRange&&!status.locked,status.locked=closest.inRange},modifyCoords:function(relativePoints){var page=relativePoints.page,client=relativePoints.client,status=relativePoints.status,phase=relativePoints.phase,options=relativePoints.options,relativePoints=options&&options.relativePoints;if(options&&options.enabled&&("start"!==phase||!relativePoints||!relativePoints.length))return status.locked&&(page.x+=status.dx,page.y+=status.dy,client.x+=status.dx,client.y+=status.dy),{range:status.range,locked:status.locked,x:status.modifiedX,y:status.modifiedY,realX:status.realX,realY:status.realY,dx:status.dx,dy:status.dy}}}
;interact.createSnapGrid=function(grid){return function(gridx,gridy){var limits=grid.limits||{left:-1/0,right:1/0,top:-1/0,bottom:1/0},offsetX=0,offsetY=0;utils.is.object(grid.offset)&&(offsetX=grid.offset.x,offsetY=grid.offset.y);gridx=Math.round((gridx-offsetX)/grid.x),gridy=Math.round((gridy-offsetY)/grid.y);return{x:Math.max(limits.left,Math.min(limits.right,gridx*grid.x+offsetX)),y:Math.max(limits.top,Math.min(limits.bottom,gridy*grid.y+offsetY)),range:grid.range}}},modifiers.snap=snap,modifiers.names.push("snap"),defaultOptions.perAction.snap=snap.defaults,module.exports=snap},{"../defaultOptions":18,"../interact":21,"../utils":44,"./base":23}],28:[
function(snapSize,module,exports){"use strict";var modifiers=snapSize("./base"),snap=snapSize("./snap"),defaultOptions=snapSize("../defaultOptions"),resize=snapSize("../actions/resize"),utils=snapSize("../utils/"),snapSize={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null},setOffset:function(arg){var offsets=arg.interaction,options=arg.options,offsets=offsets.prepared.edges;if(offsets){arg.options={relativePoints:[{x:offsets.left?0:1,y:offsets.top?0:1}],origin:{x:0,y:0},offset:"self",range:options.range};offsets=snap.setOffset(arg);return arg.options=options,offsets}},set:function(arg){var interaction=arg.interaction,options=arg.options,
offset=arg.offset,page=arg.modifiedCoords,page=utils.extend({},page),relativeX=page.x-offset[0].x,relativeY=page.y-offset[0].y;arg.options=utils.extend({},options),arg.options.targets=[];for(var _i=0;_i<(options.targets||[]).length;_i++){var snapTarget=(options.targets||[])[_i],target=void 0;(target=utils.is.function(snapTarget)?snapTarget(relativeX,relativeY,interaction):snapTarget)&&("width"in target&&"height"in target&&(target.x=target.width,target.y=target.height),arg.options.targets.push(target))}snap.set(arg)},modifyCoords:function(arg){var options=arg.options;arg.options=utils.extend({},options),arg.options.enabled=options.enabled,
arg.options.relativePoints=[null],snap.modifyCoords(arg)}};modifiers.snapSize=snapSize,modifiers.names.push("snapSize"),defaultOptions.perAction.snapSize=snapSize.defaults,resize.defaults.snapSize=snapSize.defaults,module.exports=snapSize},{"../actions/resize":10,"../defaultOptions":18,"../utils/":44,"./base":23,"./snap":27}],29:[function(require,module,exports){"use strict";var pointerUtils=require("../utils/pointerUtils");function PointerEvent(type,pointer,event,interval,interaction){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,PointerEvent),pointerUtils.pointerExtend(
this,event),event!==pointer&&pointerUtils.pointerExtend(this,pointer),this.interaction=interaction,this.timeStamp=(new Date).getTime(),this.originalEvent=event,this.type=type,this.pointerId=pointerUtils.getPointerId(pointer),this.pointerType=pointerUtils.getPointerType(pointer),this.target=interval,this.currentTarget=null,"tap"===type?(interval=interaction.getPointerIndex(pointer),this.dt=this.timeStamp-interaction.downTimes[interval],interval=this.timeStamp-interaction.tapTime,this.double=!!(interaction.prevTap&&"doubletap"!==interaction.prevTap.type&&interaction.prevTap.target===this.target&&interval<500)):"doubletap"===type&&(
this.dt=pointer.timeStamp-interaction.tapTime)}module.exports=(PointerEvent.prototype.subtractOrigin=function(originY){var originX=originY.x,originY=originY.y;return this.pageX-=originX,this.pageY-=originY,this.clientX-=originX,this.clientY-=originY,this},PointerEvent.prototype.addOrigin=function(originY){var originX=originY.x,originY=originY.y;return this.pageX+=originX,this.pageY+=originY,this.clientX+=originX,this.clientY+=originY,this},PointerEvent.prototype.preventDefault=function(){this.originalEvent.preventDefault()},PointerEvent.prototype.stopPropagation=function(){this.propagationStopped=!0},PointerEvent.prototype.stopImmediatePropagation=function(
){this.immediatePropagationStopped=this.propagationStopped=!0},PointerEvent)},{"../utils/pointerUtils":49}],30:[function(pointerEvents,module,exports){"use strict";var PointerEvent=pointerEvents("./PointerEvent"),Interaction=pointerEvents("../Interaction"),utils=pointerEvents("../utils"),defaults=pointerEvents("../defaultOptions"),signals=pointerEvents("../utils/Signals").new(),simpleSignals=["down","up","cancel"],simpleEvents=["down","up","cancel"],pointerEvents={PointerEvent:PointerEvent,fire:fire,collectEventTargets:collectEventTargets,signals:signals,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up",
"cancel","tap","doubletap","hold"]};function fire(signalArg){for(var interaction=signalArg.interaction,pointer=signalArg.pointer,event=signalArg.event,prevTap=signalArg.eventTarget,_arg$targets=signalArg.type,type=void 0===_arg$targets?signalArg.pointerEvent.type:_arg$targets,_arg$targets=signalArg.targets,targets=void 0===_arg$targets?collectEventTargets(signalArg):_arg$targets,signalArg=signalArg.pointerEvent,pointerEvent=void 0===signalArg?new PointerEvent(type,pointer,event,prevTap,interaction):signalArg,signalArg={interaction:interaction,pointer:pointer,event:event,eventTarget:prevTap,targets:targets,type:type,pointerEvent:pointerEvent},
i=0;i<targets.length;i++){var prop,target=targets[i];for(prop in target.props||{})pointerEvent[prop]=target.props[prop];var origin=utils.getOriginXY(target.eventable,target.element);if(pointerEvent.subtractOrigin(origin),pointerEvent.eventable=target.eventable,pointerEvent.currentTarget=target.element,target.eventable.fire(pointerEvent),pointerEvent.addOrigin(origin),pointerEvent.immediatePropagationStopped||pointerEvent.propagationStopped&&i+1<targets.length&&targets[i+1].element!==pointerEvent.currentTarget)break}return signals.fire("fired",signalArg),"tap"===type&&(prevTap=pointerEvent.double?fire({interaction:interaction,pointer:pointer,event:event,
eventTarget:prevTap,type:"doubletap"}):pointerEvent,interaction.prevTap=prevTap,interaction.tapTime=prevTap.timeStamp),pointerEvent}function collectEventTargets(type){var interaction=type.interaction,pointer=type.pointer,event=type.event,eventTarget=type.eventTarget,type=type.type,pointerIndex=interaction.getPointerIndex(pointer);if("tap"===type&&(interaction.pointerWasMoved||!interaction.downTargets[pointerIndex]||interaction.downTargets[pointerIndex]!==eventTarget))return[];for(var path=utils.getPath(eventTarget),signalArg={interaction:interaction,pointer:pointer,event:event,eventTarget:eventTarget,type:type,path:path,targets:[],element:null},
_i=0;_i<path.length;_i++){var _ref2=path[_i];signalArg.element=_ref2,signals.fire("collect-targets",signalArg)}return"hold"===type&&(signalArg.targets=signalArg.targets.filter(function(target){return target.eventable.options.holdDuration===interaction.holdTimers[pointerIndex].duration})),signalArg.targets}Interaction.signals.on("update-pointer-down",function(pointerIndex){var interaction=pointerIndex.interaction,pointerIndex=pointerIndex.pointerIndex;interaction.holdTimers[pointerIndex]={duration:1/0,timeout:null}}),Interaction.signals.on("remove-pointer",function(pointerIndex){var interaction=pointerIndex.interaction,pointerIndex=pointerIndex.pointerIndex
;interaction.holdTimers.splice(pointerIndex,1)}),Interaction.signals.on("move",function(pointerIndex){var interaction=pointerIndex.interaction,pointer=pointerIndex.pointer,event=pointerIndex.event,eventTarget=pointerIndex.eventTarget,duplicateMove=pointerIndex.duplicateMove,pointerIndex=interaction.getPointerIndex(pointer);duplicateMove||interaction.pointerIsDown&&!interaction.pointerWasMoved||(interaction.pointerIsDown&&clearTimeout(interaction.holdTimers[pointerIndex].timeout),fire({interaction:interaction,pointer:pointer,event:event,eventTarget:eventTarget,type:"move"}))}),Interaction.signals.on("down",function(timer){for(var interaction=timer.interaction
,pointer=timer.pointer,event=timer.event,eventTarget=timer.eventTarget,timer=timer.pointerIndex,timer=interaction.holdTimers[timer],path=utils.getPath(eventTarget),signalArg={interaction:interaction,pointer:pointer,event:event,eventTarget:eventTarget,type:"hold",targets:[],path:path,element:null},_i2=0;_i2<path.length;_i2++){var _ref7=path[_i2];signalArg.element=_ref7,signals.fire("collect-targets",signalArg)}if(signalArg.targets.length){for(var minDuration=1/0,_i3=0;_i3<signalArg.targets.length;_i3++){var holdDuration=signalArg.targets[_i3].eventable.options.holdDuration;holdDuration<minDuration&&(minDuration=holdDuration)}timer.duration=minDuration,
timer.timeout=setTimeout(function(){fire({interaction:interaction,eventTarget:eventTarget,pointer:pointer,event:event,type:"hold"})},minDuration)}}),Interaction.signals.on("up",function(eventTarget){var interaction=eventTarget.interaction,pointer=eventTarget.pointer,event=eventTarget.event,eventTarget=eventTarget.eventTarget;interaction.pointerWasMoved||fire({interaction:interaction,eventTarget:eventTarget,pointer:pointer,event:event,type:"tap"})});for(var _arr=["up","cancel"],_i4=0;_i4<_arr.length;_i4++){var signalName=_arr[_i4];Interaction.signals.on(signalName,function(pointerIndex){var interaction=pointerIndex.interaction,
pointerIndex=pointerIndex.pointerIndex;interaction.holdTimers[pointerIndex]&&clearTimeout(interaction.holdTimers[pointerIndex].timeout)})}for(var i=0;i<simpleSignals.length;i++)Interaction.signals.on(simpleSignals[i],function(type){return function(_ref10){var interaction=_ref10.interaction,pointer=_ref10.pointer,event=_ref10.event;fire({interaction:interaction,eventTarget:_ref10.eventTarget,pointer:pointer,event:event,type:type})}}(simpleEvents[i]));Interaction.signals.on("new",function(interaction){interaction.prevTap=null,interaction.tapTime=0,interaction.holdTimers=[]}),defaults.pointerEvents=pointerEvents.defaults,module.exports=pointerEvents},{
"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/Signals":34,"./PointerEvent":29}],31:[function(require,module,exports){"use strict";var pointerEvents=require("./base"),Interaction=require("../Interaction");pointerEvents.signals.on("new",onNew),pointerEvents.signals.on("fired",onFired);for(var _arr=["move","up","cancel","endall"],_i=0;_i<_arr.length;_i++){var signal=_arr[_i];Interaction.signals.on(signal,endHoldRepeat)}function onNew(pointerEvent){pointerEvent=pointerEvent.pointerEvent;"hold"===pointerEvent.type&&(pointerEvent.count=(pointerEvent.count||0)+1)}function onFired(interval){var interaction=interval.interaction,
pointerEvent=interval.pointerEvent,eventTarget=interval.eventTarget,interval=interval.targets;"hold"===pointerEvent.type&&interval.length&&((interval=interval[0].eventable.options.holdRepeatInterval)<=0||(interaction.holdIntervalHandle=setTimeout(function(){pointerEvents.fire({interaction:interaction,eventTarget:eventTarget,type:"hold",pointer:pointerEvent,event:pointerEvent})},interval)))}function endHoldRepeat(interaction){interaction=interaction.interaction;interaction.holdIntervalHandle&&(clearInterval(interaction.holdIntervalHandle),interaction.holdIntervalHandle=null)}pointerEvents.defaults.holdRepeatInterval=0,pointerEvents.types.push("holdrepeat"),
module.exports={onNew:onNew,onFired:onFired,endHoldRepeat:endHoldRepeat}},{"../Interaction":5,"./base":30}],32:[function(merge,module,exports){"use strict";var pointerEvents=merge("./base"),Interactable=merge("../Interactable"),is=merge("../utils/is"),scope=merge("../scope"),extend=merge("../utils/extend"),merge=merge("../utils/arr").merge;pointerEvents.signals.on("collect-targets",function(_ref){var targets=_ref.targets,element=_ref.element,type=_ref.type,eventTarget=_ref.eventTarget;scope.interactables.forEachMatch(element,function(interactable){var eventable=interactable.events,options=eventable.options;eventable[type]&&is.element(element
)&&interactable.testIgnoreAllow(options,element,eventTarget)&&targets.push({element:element,eventable:eventable,props:{interactable:interactable}})})}),Interactable.signals.on("new",function(_ref2){var interactable=_ref2.interactable;interactable.events.getRect=function(element){return interactable.getRect(element)}}),Interactable.signals.on("set",function(options){var interactable=options.interactable,options=options.options;extend(interactable.events.options,pointerEvents.defaults),extend(interactable.events.options,options)}),merge(Interactable.eventTypes,pointerEvents.types),Interactable.prototype.pointerEvents=function(options){return extend(
this.events.options,options),this};var __backCompatOption=Interactable.prototype._backCompatOption;Interactable.prototype._backCompatOption=function(optionName,newValue){var ret=__backCompatOption.call(this,optionName,newValue);return ret===this&&(this.events.options[optionName]=newValue),ret},Interactable.settingsMethods.push("pointerEvents")},{"../Interactable":4,"../scope":33,"../utils/arr":35,"../utils/extend":41,"../utils/is":46,"./base":30}],33:[function(require,module,exports){"use strict";var utils=require("./utils"),events=require("./utils/events"),signals=require("./utils/Signals").new(),getWindow=require("./utils/window").getWindow,scope={
signals:signals,events:events,utils:utils,document:require("./utils/domObjects").document,documents:[],addDocument:function(doc,win){if(utils.contains(scope.documents,doc))return!1;win=win||getWindow(doc),scope.documents.push(doc),events.documents.push(doc),doc!==scope.document&&events.add(win,"unload",scope.onWindowUnload),signals.fire("add-document",{doc:doc,win:win})},removeDocument:function(doc,win){var index=scope.documents.indexOf(doc);win=win||getWindow(doc),events.remove(win,"unload",scope.onWindowUnload),scope.documents.splice(index,1),events.documents.splice(index,1),signals.fire("remove-document",{win:win,doc:doc})},onWindowUnload:function(){
scope.removeDocument(this.document,this)}};module.exports=scope},{"./utils":44,"./utils/Signals":34,"./utils/domObjects":38,"./utils/events":40,"./utils/window":52}],34:[function(require,module,exports){"use strict";var Signals=function(){function Signals(){!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Signals),this.listeners={}}return Signals.prototype.on=function(name,listener){this.listeners[name]?this.listeners[name].push(listener):this.listeners[name]=[listener]},Signals.prototype.off=function(name,index){!this.listeners[name]||-1!==(
index=this.listeners[name].indexOf(index))&&this.listeners[name].splice(index,1)},Signals.prototype.fire=function(name,arg){var targetListeners=this.listeners[name];if(targetListeners)for(var _i=0;_i<targetListeners.length;_i++){if(!1===(0,targetListeners[_i])(arg,name))return}},Signals}();Signals.new=function(){return new Signals},module.exports=Signals},{}],35:[function(require,module,exports){"use strict";module.exports={contains:function(array,target){return-1!==array.indexOf(target)},merge:function(target,source){for(var _i=0;_i<source.length;_i++){var _ref=source[_i];target.push(_ref)}return target}}},{}],36:[function(navigator,module,exports){
"use strict";var window=navigator("./window").window,is=navigator("./is"),browser=navigator("./domObjects"),Element=browser.Element,navigator=window.navigator,browser={supportsTouch:!!("ontouchstart"in window||is.function(window.DocumentTouch)&&browser.document instanceof window.DocumentTouch),supportsPointerEvent:!!browser.PointerEvent,isIOS:/iP(hone|od|ad)/.test(navigator.platform),isIOS7:/iP(hone|od|ad)/.test(navigator.platform)&&/OS 7[^\d]/.test(navigator.appVersion),isIe9:/MSIE 9/.test(navigator.userAgent),
prefixedMatchesSelector:"matches"in Element.prototype?"matches":"webkitMatchesSelector"in Element.prototype?"webkitMatchesSelector":"mozMatchesSelector"in Element.prototype?"mozMatchesSelector":"oMatchesSelector"in Element.prototype?"oMatchesSelector":"msMatchesSelector",pEventTypes:browser.PointerEvent?browser.PointerEvent===window.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,wheelEvent:"onmousewheel"in browser.document?"mousewheel":"wheel"}
;browser.isOperaMobile="Opera"===navigator.appName&&browser.supportsTouch&&navigator.userAgent.match("Presto"),module.exports=browser},{"./domObjects":38,"./is":46,"./window":52}],37:[function(require,module,exports){"use strict";var is=require("./is");module.exports=function clone(source){var prop,dest={};for(prop in source)is.plainObject(source[prop])?dest[prop]=clone(source[prop]):dest[prop]=source[prop];return dest}},{"./is":46}],38:[function(win,module,exports){"use strict";var domObjects={},win=win("./window").window;function blank(){}domObjects.document=win.document,domObjects.DocumentFragment=win.DocumentFragment||blank,
domObjects.SVGElement=win.SVGElement||blank,domObjects.SVGSVGElement=win.SVGSVGElement||blank,domObjects.SVGElementInstance=win.SVGElementInstance||blank,domObjects.Element=win.Element||blank,domObjects.HTMLElement=win.HTMLElement||domObjects.Element,domObjects.Event=win.Event,domObjects.Touch=win.Touch||blank,domObjects.PointerEvent=win.PointerEvent||win.MSPointerEvent,module.exports=domObjects},{"./window":52}],39:[function(require,module,exports){"use strict";var win=require("./window"),browser=require("./browser"),is=require("./is"),domObjects=require("./domObjects"),domUtils={nodeContains:function(parent,child){for(;child;){if(child===parent)return!0
;child=child.parentNode}return!1},closest:function(element,selector){for(;is.element(element);){if(domUtils.matchesSelector(element,selector))return element;element=domUtils.parentNode(element)}return null},parentNode:function(node){var parent=node.parentNode;if(is.docFrag(parent)){for(;(parent=parent.host)&&is.docFrag(parent););return parent}return parent},matchesSelector:function(element,selector){return win.window!==win.realWindow&&(selector=selector.replace(/\/deep\//g," ")),element[browser.prefixedMatchesSelector](selector)},indexOfDeepestElement:function(elements){for(var dropzone,deepestZoneParents=[],dropzoneParents=[],deepestZone=elements[0],
index=deepestZone?0:-1,parent=void 0,child=void 0,i=void 0,n=void 0,i=1;i<elements.length;i++)if((dropzone=elements[i])&&dropzone!==deepestZone)if(deepestZone){if(dropzone.parentNode!==dropzone.ownerDocument)if(deepestZone.parentNode!==dropzone.ownerDocument){if(!deepestZoneParents.length)for(parent=deepestZone;parent.parentNode&&parent.parentNode!==parent.ownerDocument;)deepestZoneParents.unshift(parent),parent=parent.parentNode;if(deepestZone instanceof domObjects.HTMLElement&&dropzone instanceof domObjects.SVGElement&&!(dropzone instanceof domObjects.SVGSVGElement)){if(dropzone===deepestZone.parentNode)continue;parent=dropzone.ownerSVGElement
}else parent=dropzone;for(dropzoneParents=[];parent.parentNode!==parent.ownerDocument;)dropzoneParents.unshift(parent),parent=parent.parentNode;for(n=0;dropzoneParents[n]&&dropzoneParents[n]===deepestZoneParents[n];)n++;for(var parents=[dropzoneParents[n-1],dropzoneParents[n],deepestZoneParents[n]],child=parents[0].lastChild;child;){if(child===parents[1]){deepestZone=dropzone,index=i,deepestZoneParents=[];break}if(child===parents[2])break;child=child.previousSibling}}else deepestZone=dropzone,index=i}else deepestZone=dropzone,index=i;return index},matchesUpTo:function(element,selector,limit){for(;is.element(element);){if(domUtils.matchesSelector(element,
selector))return!0;if((element=domUtils.parentNode(element))===limit)return domUtils.matchesSelector(element,selector)}return!1},getActualElement:function(element){return element instanceof domObjects.SVGElementInstance?element.correspondingUseElement:element},getScrollXY:function(relevantWindow){return{x:(relevantWindow=relevantWindow||win.window).scrollX||relevantWindow.document.documentElement.scrollLeft,y:relevantWindow.scrollY||relevantWindow.document.documentElement.scrollTop}},getElementClientRect:function(clientRect){clientRect=clientRect instanceof domObjects.SVGElement?clientRect.getBoundingClientRect():clientRect.getClientRects()[0]
;return clientRect&&{left:clientRect.left,right:clientRect.right,top:clientRect.top,bottom:clientRect.bottom,width:clientRect.width||clientRect.right-clientRect.left,height:clientRect.height||clientRect.bottom-clientRect.top}},getElementRect:function(scroll){var clientRect=domUtils.getElementClientRect(scroll);return!browser.isIOS7&&clientRect&&(scroll=domUtils.getScrollXY(win.getWindow(scroll)),clientRect.left+=scroll.x,clientRect.right+=scroll.x,clientRect.top+=scroll.y,clientRect.bottom+=scroll.y),clientRect},getPath:function(element){for(var path=[];element;)path.push(element),element=domUtils.parentNode(element);return path},trySelector:function(value){
return!!is.string(value)&&(domObjects.document.querySelector(value),!0)}};module.exports=domUtils},{"./browser":36,"./domObjects":38,"./is":46,"./window":52}],40:[function(require,module,exports){"use strict";var supported,is=require("./is"),domUtils=require("./domUtils"),pointerUtils=require("./pointerUtils"),pExtend=require("./pointerExtend"),window=require("./window").window,contains=require("./arr").contains,elements=[],targets=[],delegatedEvents={},documents=[],supportsOptions=(supported=!1,window.document.createElement("div").addEventListener("test",null,{get capture(){supported=!0}}),supported);function add(element,type,listener,target){
var options=getOptions(target),elementIndex=elements.indexOf(element),target=targets[elementIndex];target||(target={events:{},typeCount:0},elements.push(element),targets.push(target)),target.events[type]||(target.events[type]=[],target.typeCount++),contains(target.events[type],listener)||(element.addEventListener(type,listener,supportsOptions?options:!!options.capture),target.events[type].push(listener))}function remove(element,type,listener,elementIndex){var options=getOptions(elementIndex),elementIndex=elements.indexOf(element),target=targets[elementIndex];if(target&&target.events)if("all"!==type){if(target.events[type]){var len=target.events[type].length
;if("all"===listener){for(var i=0;i<len;i++)remove(element,type,target.events[type][i],options);return}for(var _i=0;_i<len;_i++)if(target.events[type][_i]===listener){element.removeEventListener("on"+type,listener,supportsOptions?options:!!options.capture),target.events[type].splice(_i,1);break}target.events[type]&&0===target.events[type].length&&(target.events[type]=null,target.typeCount--)}target.typeCount||(targets.splice(elementIndex,1),elements.splice(elementIndex,1))}else for(type in target.events)target.events.hasOwnProperty(type)&&remove(element,type,"all")}function delegateListener(event,optionalArg){var options=getOptions(optionalArg),fakeEvent={},
delegated=delegatedEvents[event.type],eventTarget=pointerUtils.getEventTargets(event)[0],element=eventTarget;for(pExtend(fakeEvent,event),fakeEvent.originalEvent=event,fakeEvent.preventDefault=preventOriginalDefault;is.element(element);){for(var i=0;i<delegated.selectors.length;i++){var selector=delegated.selectors[i],context=delegated.contexts[i];if(domUtils.matchesSelector(element,selector)&&domUtils.nodeContains(context,eventTarget)&&domUtils.nodeContains(context,element)){var listeners=delegated.listeners[i];fakeEvent.currentTarget=element;for(var j=0;j<listeners.length;j++){var passive=listeners[j],fn=passive[0],capture=passive[1],passive=passive[2]
;capture===!!options.capture&&passive===options.passive&&fn(fakeEvent)}}}element=domUtils.parentNode(element)}}function delegateUseCapture(event){return delegateListener.call(this,event,!0)}function preventOriginalDefault(){this.originalEvent.preventDefault()}function getOptions(param){return is.object(param)?param:{capture:param}}module.exports={add:add,remove:remove,addDelegate:function(selector,context,type,listener,options){if(options=getOptions(options),!delegatedEvents[type]){delegatedEvents[type]={selectors:[],contexts:[],listeners:[]};for(var _i2=0;_i2<documents.length;_i2++){var doc=documents[_i2];add(doc,type,delegateListener),add(doc,type,
delegateUseCapture,!0)}}for(var delegated=delegatedEvents[type],index=void 0,index=delegated.selectors.length-1;0<=index&&(delegated.selectors[index]!==selector||delegated.contexts[index]!==context);index--);-1===index&&(index=delegated.selectors.length,delegated.selectors.push(selector),delegated.contexts.push(context),delegated.listeners.push([])),delegated.listeners[index].push([listener,!!options.capture,options.passive])},removeDelegate:function(selector,context,type,listener,optionalArg){var options=getOptions(optionalArg),delegated=delegatedEvents[type],matchFound=!1,index=void 0;if(delegated)for(index=delegated.selectors.length-1;0<=index;index--)if(
delegated.selectors[index]===selector&&delegated.contexts[index]===context){for(var listeners=delegated.listeners[index],i=listeners.length-1;0<=i;i--){var passive=listeners[i],fn=passive[0],capture=passive[1],passive=passive[2];if(fn===listener&&capture===!!options.capture&&passive===options.passive){listeners.splice(i,1),listeners.length||(delegated.selectors.splice(index,1),delegated.contexts.splice(index,1),delegated.listeners.splice(index,1),remove(context,type,delegateListener),remove(context,type,delegateUseCapture,!0),delegated.selectors.length||(delegatedEvents[type]=null)),matchFound=!0;break}}if(matchFound)break}},
delegateListener:delegateListener,delegateUseCapture:delegateUseCapture,delegatedEvents:delegatedEvents,documents:documents,supportsOptions:supportsOptions,_elements:elements,_targets:targets}},{"./arr":35,"./domUtils":39,"./is":46,"./pointerExtend":48,"./pointerUtils":49,"./window":52}],41:[function(require,module,exports){"use strict";module.exports=function(dest,source){for(var prop in source)dest[prop]=source[prop];return dest}},{}],42:[function(_require,module,exports){"use strict";var _require=_require("./rect"),resolveRectLike=_require.resolveRectLike,rectToXY=_require.rectToXY;module.exports=function(target,originRect,origin){
origin=target.options[origin],origin=origin&&origin.origin||target.options.origin,originRect=resolveRectLike(origin,target,originRect,[target&&originRect]);return rectToXY(originRect)||{x:0,y:0}}},{"./rect":51}],43:[function(require,module,exports){"use strict";module.exports=function(x,y){return Math.sqrt(x*x+y*y)}},{}],44:[function(require,module,exports){"use strict";var extend=require("./extend"),win=require("./window"),utils={warnOnce:function(method,message){var warned=!1;return function(){return warned||(win.window.console.warn(message),warned=!0),method.apply(this,arguments)}},_getQBezierValue:function(t,p1,p2,p3){var iT=1-t
;return iT*iT*p1+2*iT*t*p2+t*t*p3},getQuadraticCurvePoint:function(startX,startY,cpX,cpY,endX,endY,position){return{x:utils._getQBezierValue(position,startX,cpX,endX),y:utils._getQBezierValue(position,startY,cpY,endY)}},easeOutQuad:function(t,b,c,d){return-c*(t/=d)*(t-2)+b},copyAction:function(dest,src){return dest.name=src.name,dest.axis=src.axis,dest.edges=src.edges,dest},is:require("./is"),extend:extend,hypot:require("./hypot"),getOriginXY:require("./getOriginXY")};extend(utils,require("./arr")),extend(utils,require("./domUtils")),extend(utils,require("./pointerUtils")),extend(utils,require("./rect")),module.exports=utils},{"./arr":35,"./domUtils":39,
"./extend":41,"./getOriginXY":42,"./hypot":43,"./is":46,"./pointerUtils":49,"./rect":51,"./window":52}],45:[function(require,module,exports){"use strict";var scope=require("../scope"),utils=require("./index"),finder={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(pointer,eventType,eventTarget){for(var pointerType=utils.getPointerType(pointer),details={pointer:pointer,pointerId:utils.getPointerId(pointer),pointerType:pointerType,eventType:eventType,eventTarget:eventTarget},_i=0;_i<finder.methodOrder.length;_i++){var interaction=finder.methodOrder[_i],interaction=finder[interaction](details);if(interaction)return interaction}
},simulationResume:function(_ref2){var pointerType=_ref2.pointerType,eventType=_ref2.eventType,eventTarget=_ref2.eventTarget;if(!/down|start/i.test(eventType))return null;for(var _i2=0;_i2<scope.interactions.length;_i2++){var interaction=scope.interactions[_i2],element=eventTarget;if(interaction.simulation&&interaction.simulation.allowResume&&interaction.pointerType===pointerType)for(;element;){if(element===interaction.element)return interaction;element=utils.parentNode(element)}}return null},mouseOrPen:function(_ref4){var pointerId=_ref4.pointerId,pointerType=_ref4.pointerType,eventType=_ref4.eventType;if("mouse"!==pointerType&&"pen"!==pointerType
)return null;for(var firstNonActive=void 0,_i3=0;_i3<scope.interactions.length;_i3++){var interaction=scope.interactions[_i3];if(interaction.pointerType===pointerType&&(!interaction.simulation||utils.contains(interaction.pointerIds,pointerId))){if(interaction.interacting())return interaction;firstNonActive=firstNonActive||interaction}}if(firstNonActive)return firstNonActive;for(var _i4=0;_i4<scope.interactions.length;_i4++){var _interaction=scope.interactions[_i4];if(!(_interaction.pointerType!==pointerType||/down/i.test(eventType)&&_interaction.simulation))return _interaction}return null},hasPointer:function(_ref7){for(var pointerId=_ref7.pointerId,
_i5=0;_i5<scope.interactions.length;_i5++){var interaction=scope.interactions[_i5];if(utils.contains(interaction.pointerIds,pointerId))return interaction}},idle:function(_ref9){for(var pointerType=_ref9.pointerType,_i6=0;_i6<scope.interactions.length;_i6++){var interaction=scope.interactions[_i6];if(1===interaction.pointerIds.length){var target=interaction.target;if(target&&!target.options.gesture.enabled)continue}else if(2<=interaction.pointerIds.length)continue;if(!interaction.interacting()&&pointerType===interaction.pointerType)return interaction}return null}};module.exports=finder},{"../scope":33,"./index":44}],46:[function(require,module,exports){
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},win=require("./window"),isWindow=require("./isWindow"),is={array:function(){},window:function(thing){return thing===win.window||isWindow(thing)},docFrag:function(thing){return is.object(thing)&&11===thing.nodeType},object:function(thing){return!!thing&&"object"===(void 0===thing?"undefined":_typeof(thing))},function:function(thing){return"function"==typeof thing},number:function(thing){return"number"==typeof thing},
bool:function(thing){return"boolean"==typeof thing},string:function(thing){return"string"==typeof thing},element:function(thing){if(!thing||"object"!==(void 0===thing?"undefined":_typeof(thing)))return!1;var _window=win.getWindow(thing)||win.window;return/object|function/.test(_typeof(_window.Element))?thing instanceof _window.Element:1===thing.nodeType&&"string"==typeof thing.nodeName},plainObject:function(thing){return is.object(thing)&&"Object"===thing.constructor.name}};is.array=function(thing){return is.object(thing)&&void 0!==thing.length&&is.function(thing.splice)},module.exports=is},{"./isWindow":47,"./window":52}],47:[function(require,module,exports
){"use strict";module.exports=function(thing){return!(!thing||!thing.Window)&&thing instanceof thing.Window}},{}],48:[function(require,module,exports){"use strict";function pointerExtend(dest,source){for(var prop in source){var vendor,prefixedPropREs=module.exports.prefixedPropREs,deprecated=!1;for(vendor in prefixedPropREs)if(0===prop.indexOf(vendor)&&prefixedPropREs[vendor].test(prop)){deprecated=!0;break}deprecated||"function"==typeof source[prop]||(dest[prop]=source[prop])}return dest}pointerExtend.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},module.exports=pointerExtend},{}],49:[function(require,module,exports){"use strict"
;var hypot=require("./hypot"),browser=require("./browser"),dom=require("./domObjects"),domUtils=require("./domUtils"),domObjects=require("./domObjects"),is=require("./is"),pointerUtils={copyCoords:function(dest,src){dest.page=dest.page||{},dest.page.x=src.page.x,dest.page.y=src.page.y,dest.client=dest.client||{},dest.client.x=src.client.x,dest.client.y=src.client.y,dest.timeStamp=src.timeStamp},setCoordDeltas:function(targetObj,dt,cur){targetObj.page.x=cur.page.x-dt.page.x,targetObj.page.y=cur.page.y-dt.page.y,targetObj.client.x=cur.client.x-dt.client.x,targetObj.client.y=cur.client.y-dt.client.y,targetObj.timeStamp=cur.timeStamp-dt.timeStamp;dt=Math.max(
targetObj.timeStamp/1e3,.001);targetObj.page.speed=hypot(targetObj.page.x,targetObj.page.y)/dt,targetObj.page.vx=targetObj.page.x/dt,targetObj.page.vy=targetObj.page.y/dt,targetObj.client.speed=hypot(targetObj.client.x,targetObj.page.y)/dt,targetObj.client.vx=targetObj.client.x/dt,targetObj.client.vy=targetObj.client.y/dt},isNativePointer:function(pointer){return pointer instanceof dom.Event||pointer instanceof dom.Touch},getXY:function(type,pointer,xy){return(xy=xy||{}).x=pointer[(type=type||"page")+"X"],xy.y=pointer[type+"Y"],xy},getPageXY:function(pointer,page){return page=page||{},browser.isOperaMobile&&pointerUtils.isNativePointer(pointer)?(
pointerUtils.getXY("screen",pointer,page),page.x+=window.scrollX,page.y+=window.scrollY):pointerUtils.getXY("page",pointer,page),page},getClientXY:function(pointer,client){return client=client||{},browser.isOperaMobile&&pointerUtils.isNativePointer(pointer)?pointerUtils.getXY("screen",pointer,client):pointerUtils.getXY("client",pointer,client),client},getPointerId:function(pointer){return is.number(pointer.pointerId)?pointer.pointerId:pointer.identifier},setCoords:function(targetObj,tmpXY,timeStamp){var pointer=1<tmpXY.length?pointerUtils.pointerAverage(tmpXY):tmpXY[0],tmpXY={};pointerUtils.getPageXY(pointer,tmpXY),targetObj.page.x=tmpXY.x,
targetObj.page.y=tmpXY.y,pointerUtils.getClientXY(pointer,tmpXY),targetObj.client.x=tmpXY.x,targetObj.client.y=tmpXY.y,targetObj.timeStamp=is.number(timeStamp)?timeStamp:(new Date).getTime()},pointerExtend:require("./pointerExtend"),getTouchPair:function(event){var touches=[];return is.array(event)?(touches[0]=event[0],touches[1]=event[1]):"touchend"===event.type?1===event.touches.length?(touches[0]=event.touches[0],touches[1]=event.changedTouches[0]):0===event.touches.length&&(touches[0]=event.changedTouches[0],touches[1]=event.changedTouches[1]):(touches[0]=event.touches[0],touches[1]=event.touches[1]),touches},pointerAverage:function(pointers){for(
var prop,average={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},_i=0;_i<pointers.length;_i++){var _prop,pointer=pointers[_i];for(_prop in average)average[_prop]+=pointer[_prop]}for(prop in average)average[prop]/=pointers.length;return average},touchBBox:function(minY){if(minY.length||minY.touches&&1<minY.touches.length){var touches=pointerUtils.getTouchPair(minY),minX=Math.min(touches[0].pageX,touches[1].pageX),minY=Math.min(touches[0].pageY,touches[1].pageY);return{x:minX,y:minY,left:minX,top:minY,width:Math.max(touches[0].pageX,touches[1].pageX)-minX,height:Math.max(touches[0].pageY,touches[1].pageY)-minY}}},touchDistance:function(touches,dy){
var dx=dy+"X",dy=dy+"Y",touches=pointerUtils.getTouchPair(touches),dx=touches[0][dx]-touches[1][dx],dy=touches[0][dy]-touches[1][dy];return hypot(dx,dy)},touchAngle:function(touches,prevAngle,dy){var dx=dy+"X",dy=dy+"Y",touches=pointerUtils.getTouchPair(touches),dx=touches[1][dx]-touches[0][dx],dy=touches[1][dy]-touches[0][dy];return 180*Math.atan2(dy,dx)/Math.PI},getPointerType:function(pointer){return is.string(pointer.pointerType)?pointer.pointerType:is.number(pointer.pointerType)?[void 0,void 0,"touch","pen","mouse"][pointer.pointerType]:/touch/.test(pointer.type)||pointer instanceof domObjects.Touch?"touch":"mouse"},getEventTargets:function(event){
var path=is.function(event.composedPath)?event.composedPath():event.path;return[domUtils.getActualElement(path?path[0]:event.target),domUtils.getActualElement(event.currentTarget)]}};module.exports=pointerUtils},{"./browser":36,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(require,module,exports){"use strict";for(var window=require("./window").window,vendors=["ms","moz","webkit","o"],lastTime=0,request=void 0,cancel=void 0,x=0;x<vendors.length&&!window.requestAnimationFrame;x++)request=window[vendors[x]+"RequestAnimationFrame"],
cancel=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"];request=request||function(callback){var currTime=(new Date).getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=setTimeout(function(){callback(currTime+timeToCall)},timeToCall);return lastTime=currTime+timeToCall,id},cancel=cancel||function(id){clearTimeout(id)},module.exports={request:request,cancel:cancel}},{"./window":52}],51:[function(_require,module,exports){"use strict";var extend=_require("./extend"),is=_require("./is"),_require=_require("./domUtils"),closest=_require.closest,parentNode=_require.parentNode,getElementRect=_require.getElementRect,
rectUtils={getStringOptionResult:function(value,interactable,element){return is.string(value)?value="parent"===value?parentNode(element):"self"===value?interactable.getRect(element):closest(element,value):null},resolveRectLike:function(value,interactable,element,functionArgs){return value=rectUtils.getStringOptionResult(value,interactable,element)||value,is.function(value)&&(value=value.apply(null,functionArgs)),is.element(value)&&(value=getElementRect(value)),value},rectToXY:function(rect){return rect&&{x:"x"in rect?rect.x:rect.left,y:"y"in rect?rect.y:rect.top}},xywhToTlbr:function(rect){return!rect||"left"in rect&&"top"in rect||((rect=extend({},rect)
).left=rect.x||0,rect.top=rect.y||0,rect.right=rect.right||rect.left+rect.width,rect.bottom=rect.bottom||rect.top+rect.height),rect},tlbrToXywh:function(rect){return!rect||"x"in rect&&"y"in rect||((rect=extend({},rect)).x=rect.left||0,rect.top=rect.top||0,rect.width=rect.width||rect.right-rect.x,rect.height=rect.height||rect.bottom-rect.y),rect}};module.exports=rectUtils},{"./domUtils":39,"./extend":41,"./is":46}],52:[function(require,module,exports){"use strict";var win=module.exports,isWindow=require("./isWindow");function init(window){var el=(win.realWindow=window).document.createTextNode("")
;el.ownerDocument!==window.document&&"function"==typeof window.wrap&&window.wrap(el)===el&&(window=window.wrap(window)),win.window=window}"undefined"==typeof window?(win.window=void 0,win.realWindow=void 0):init(window),win.getWindow=function(rootNode){if(isWindow(rootNode))return rootNode;rootNode=rootNode.ownerDocument||rootNode;return rootNode.defaultView||rootNode.parentWindow||win.window},win.init=init},{"./isWindow":47}]},{},[1])(1)}),define("core/promise",[],function(){"use strict";return Promise}),define("lib/uuid",[],function(){"use strict";var CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");return function(len,radix
){var i,r,chars=CHARS,uuid=[];if(radix=radix||chars.length,len)for(i=0;i<len;i++)uuid[i]=chars[0|Math.random()*radix];else for(uuid[8]=uuid[13]=uuid[18]=uuid[23]="-",uuid[14]="4",i=0;i<36;i++)uuid[i]||(r=0|16*Math.random(),uuid[i]=chars[19===i?3&r|8:r]);return uuid.join("")}}),define("core/moduleLoader",["require","lodash","core/promise"],function(require,_,Promise){"use strict";function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o
)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}
return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,function(requiredModules,validate,specs){var loaded={},modules={},excludes=[],bundles=[],loader={addList:function(moduleList){return _.forEach(moduleList,this.add,this),this},add:function(identifyProvider){if(!_.isPlainObject(identifyProvider))throw new TypeError("The module definition module must be an object");if(_.isEmpty(identifyProvider.module)||!_.isString(identifyProvider.module))throw new TypeError("An AMD module must be defined");if(!_.isEmpty(identifyProvider.category
)&&_.isString(identifyProvider.category))return modules[identifyProvider.category]=modules[identifyProvider.category]||[],_.isNumber(identifyProvider.position)?modules[identifyProvider.category][identifyProvider.position]=identifyProvider.module:"prepend"===identifyProvider.position||"before"===identifyProvider.position?modules[identifyProvider.category].unshift(identifyProvider.module):modules[identifyProvider.category].push(identifyProvider.module),identifyProvider.bundle&&!_.contains(bundles,identifyProvider.bundle)&&bundles.push(identifyProvider.bundle),this;identifyProvider=identifyProvider.id||identifyProvider.name||identifyProvider.module
;throw new TypeError("The provider '".concat(identifyProvider,"' must belong to a category"))},append:function(def){return this.add(_.merge({position:"append"},def))},prepend:function(def){return this.add(_.merge({position:"prepend"},def))},remove:function(module){return excludes.push(module),this},load:function(loadBundles){function loadModules(){var amdModules=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return _.isArray(amdModules)&&amdModules.length?"function"==typeof define&&define.amd?new Promise(function(resolve,reject){window.require(amdModules,function(){for(var _len=arguments.length,loadedModules=new Array(_len),_key=0;_key<_len;_key++
)loadedModules[_key]=arguments[_key];return resolve(loadedModules)},function(err){reject(err)})}):Promise.all(amdModules.map(function(module){return new Promise(function(resolve,reject){require(["".concat(module)],function(m){resolve(function(e){if(e&&e.__esModule)return e;var n={};return e&&Object.keys(e).forEach(function(k){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:!0,get:function(){return e[k]}})}),n.default=e,n}(m))},reject)})})).then(function(loadedModules){return Promise.resolve.apply(Promise,_toConsumableArray(loadModules))}):Promise.resolve()}var self=this,dependencies=_(modules).values().flatten().uniq(
).difference(excludes).value();return loadModules(loadBundles?bundles:[]).then(function(){return loadModules(dependencies)}).then(function(loadedModules){return _.forEach(dependencies,function(dependency,category){var module=loadedModules[category],category=_.findKey(modules,function(val){return _.contains(val,dependency)});if("function"==typeof validate&&!validate(module))throw new TypeError("The module '".concat(dependency,"' is not valid"));_.isString(category)&&(loaded[category]=loaded[category]||[],loaded[category].push(module))}),self.getModules()})},getModules:function(category){return _.isString(category)?loaded[category]||[]:_(loaded).values(
).flatten().uniq().value()},getCategories:function(){return _.keys(loaded)}};return validate=_.isFunction(validate)?validate:_.isPlainObject,_.forEach(requiredModules,function(moduleList,category){if(_.isEmpty(category)||!_.isString(category))throw new TypeError("Modules must belong to a category");if(!_.isArray(moduleList))throw new TypeError("A list of modules must be an array");if(!_.all(moduleList,validate))throw new TypeError("The list does not contain valid modules");loaded[category]?loaded[category]=loaded[category].concat(moduleList):loaded[category]=moduleList}),specs&&_(specs).functions().forEach(function(method){loader[method]=function(){
return specs[method].apply(loader,[].slice.call(arguments))}}),loader}}),define("core/logger/api",["lodash","core/format","core/moduleLoader"],function(_,format,moduleLoader){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,format=format&&Object.prototype.hasOwnProperty.call(format,"default")?format.default:format,moduleLoader=moduleLoader&&Object.prototype.hasOwnProperty.call(moduleLoader,"default")?moduleLoader.default:moduleLoader;function loggerFactory(name,minLevel,fields){var baseRecord,logger;if(!_.isString(name)||_.isEmpty(name))throw new TypeError("A logger needs a name");return _.isPlainObject(minLevel
)&&"undefined"==typeof field&&(fields=minLevel,minLevel=defaultLevel),baseRecord=_.defaults(fields||{},{name:name,pid:1,hostname:navigator.userAgent}),logger={log:function(err,recordFields,message){var rest=[],record=(new Date).toISOString();if(!1!==loggerFactory.providers&&checkMinLevel(minLevel||defaultLevel,err))return rest=_.isString(recordFields)||recordFields instanceof Error?(message=recordFields,recordFields={},[].slice.call(arguments,2)):[].slice.call(arguments,3),record={level:getLevel(err),v:0,time:record},checkMinLevel(levels.error,err)||message instanceof Error?(err=message instanceof Error?message:(message=_.isObject(message)?JSON.stringify(
message):message,new Error(message)),record.msg=err.message,record.err=err):record.msg=format.apply(null,[message].concat(rest)),_.merge(record,baseRecord,recordFields),logQueue.push(record),loggerFactory.flush(),this},level:function(value){return void 0!==value?(minLevel=getLevelNum(value),this):getLevel(minLevel)},child:function(childFields){return loggerFactory(name,minLevel,_.defaults(childFields,baseRecord))}},_.reduce(levels,function(target,level,levelName){return target[levelName]=_.partial(logger.log,level),target},logger)}var defaultLevel="info",levels={fatal:60,error:50,warn:40,info:30,debug:20,trace:10},logQueue=[],getLevel=function(level){
return void 0===level||_.isString(level)&&!_.has(levels,level)?defaultLevel:_.isNumber(level)?_.findKey(levels,function(l){return l===level})||defaultLevel:level},getLevelNum=function(level){return _.isString(level)&&_.has(levels,level)?levels[level]:_.isNumber(level)&&_.contains(levels,level)?level:levels[defaultLevel]},checkMinLevel=function(minLevel,level){return getLevelNum(level)>=getLevelNum(minLevel)};return loggerFactory.levels=levels,loggerFactory.providers=!1,loggerFactory.load=function(providerConfigs){var _this=this;this.providers=[];var modules=Object.keys(providerConfigs||{}).map(function(module){return{module:module,category:"logger"}})
;return moduleLoader().addList(modules).load().then(function(loadedProviders){loadedProviders.forEach(function(provider,providerConfig){providerConfig=modules[providerConfig]&&modules[providerConfig].module&&providerConfigs[modules[providerConfig].module];_this.register(provider,providerConfig)})}).then(function(){return _this.flush()})},loggerFactory.register=function(provider,providerConfig){if(!_.isPlainObject(provider)||!_.isFunction(provider.log))throw new TypeError("A log provider is an object with a log method");provider.checkMinLevel=checkMinLevel,_.isFunction(provider.setConfig)&&provider.setConfig(providerConfig),this.providers=this.providers||[],
this.providers.push(provider)},loggerFactory.flush=function(){_.isArray(this.providers)&&0<this.providers.length&&(_.forEach(logQueue,function(message){_.forEach(loggerFactory.providers,function(provider){provider.log(message)})}),logQueue=[])},loggerFactory.setDefaultLevel=function(level){return defaultLevel=getLevel(level)},loggerFactory}),define("core/logger",["lodash","module","core/logger/api"],function(_,module,loggerFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,module=module&&Object.prototype.hasOwnProperty.call(module,"default")?module.default:module;var config={level:(
loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory).levels.warn,loggers:{"core/logger/console":{level:"warn"}}},config=_.defaults(module.config()||{},config),logger=loggerFactory("core/logger");return loggerFactory.setDefaultLevel(config.level),loggerFactory.load(config.loggers),window.onerror=function(msg,url,line,col,error){logger.error("Caught[via window.onerror]: '"+msg+"' from "+url+":"+line+":"+col)},window.setTaoLogLevel=function(level){return loggerFactory.setDefaultLevel(level)},loggerFactory}),define("core/eventifier",["lodash","core/promise","lib/uuid","core/logger"],
function(_,Promise,uuid,loggerFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid,loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory;var defaultNs="@",eventifierLogger=loggerFactory("core/eventifier");function getEventNames(eventNames){return!_.isString(eventNames)||_.isEmpty(eventNames)?[]:_(eventNames.split(/\s/g)).compact().uniq().value()}function getName(eventName){
return-1<eventName.indexOf(".")?eventName.substr(0,eventName.indexOf(".")):eventName}function getNamespace(eventName){return-1<eventName.indexOf(".")?eventName.substr(eventName.indexOf(".")+1):defaultNs}function getHandlerObject(){return{before:[],between:[],after:[]}}return function(target){var stoppedEvents,eventHandlers={},getHandlers=function(ns,type){var name=getName(ns),ns=getNamespace(ns);return type=type||"between",eventHandlers[ns]=eventHandlers[ns]||{},eventHandlers[ns][name]=eventHandlers[ns][name]||getHandlerObject(),eventHandlers[ns][name][type]},eventApi={on:function(eventNames,handler){return _.isFunction(handler)&&_.forEach(getEventNames(
eventNames),function(eventName){getHandlers(eventName).push(handler)}),this},off:function(eventNames){return _.forEach(getEventNames(eventNames),function(offNamespaces){var name=getName(offNamespaces),ns=getNamespace(offNamespaces);ns&&!name?"*"===ns?((offNamespaces={})[defaultNs]=eventHandlers[defaultNs],eventHandlers=offNamespaces):eventHandlers[ns]={}:_.forEach(eventHandlers,function(nsHandlers,namespace){!nsHandlers[name]||ns!==defaultNs&&ns!==namespace||(nsHandlers[name]=getHandlerObject())})}),this},removeAllListeners:function(){return eventHandlers={},this},trigger:function(eventNames){var self=this,args=[].slice.call(arguments,1)
;function triggerBetween(allHandlers,event){shouldStop(event.name)?logHandlerStop("before",event):triggerHandlers(allHandlers.between,event).then(function(){!function(handlers,event){shouldStop(event.name)?logHandlerStop("on",event):triggerHandlers(handlers,event).then(function(){shouldStop(event.name)&&logHandlerStop("after",event)}).catch(function(err){logHandlerStop("after",event,err)})}(allHandlers.after,event)}).catch(function(err){logHandlerStop("on",event,err)})}function triggerHandlers(pHandlers,event){pHandlers=pHandlers.map(function(handler){return shouldStop(event.name)?Promise.reject():handler.apply(self,args)});return Promise.all(pHandlers)}
function logHandlerStop(stoppedIn,event,err){err instanceof Error&&logger.error(err),logger.trace({err:err,event:event.name,stoppedIn:stoppedIn},event.name+" handlers stopped")}function shouldStop(name){return stoppedEvents[name]}return stoppedEvents={},_.forEach(getEventNames(eventNames),function(eventName){var ns=getNamespace(eventName),name=getName(eventName),mergedHandlers=_(eventHandlers).filter(function(nsHandlers,namespace){return nsHandlers[name]&&(ns===defaultNs||ns===namespace||"*"===namespace)}).reduce(function(acc,nsHandlers){return acc.before=acc.before.concat(nsHandlers[name].before),acc.between=acc.between.concat(nsHandlers[name].between),
acc.after=acc.after.concat(nsHandlers[name].after),acc},getHandlerObject());logger.trace({event:eventName,args:args},"trigger %s",eventName),mergedHandlers&&function(allHandlers,name,ns){var event={name:name,namespace:ns};allHandlers.before.length?function(pHandlers,event){var beforeArgs=args.slice();return beforeArgs.unshift(event),pHandlers=pHandlers.map(function(value){value=!shouldStop(event.name)&&value.apply(self,beforeArgs);return!1===value?Promise.reject():value}),Promise.all(pHandlers)}(allHandlers.before,event).then(function(){triggerBetween(allHandlers,event)}).catch(function(err){logHandlerStop("before",event,err)}):triggerBetween(allHandlers,
event)}(mergedHandlers,name,ns)}),this},before:function(eventNames,handler){return _.isFunction(handler)&&_.forEach(getEventNames(eventNames),function(eventName){getHandlers(eventName,"before").push(handler)}),this},after:function(eventNames,handler){return _.isFunction(handler)&&_.forEach(getEventNames(eventNames),function(eventName){getHandlers(eventName,"after").push(handler)}),this},stopEvent:function(name){_.isString(name)&&!_.isEmpty(name.trim())&&(stoppedEvents[name.trim()]=!0)},spread:function(destination,eventNames){var self=this;return destination&&_.isFunction(destination.trigger)&&(_.isString(eventNames)&&(eventNames=getEventNames(eventNames)),
_.forEach(eventNames,function(eventName){self.on(eventName,function(){var args=[eventName].concat([].slice.call(arguments));destination.trigger.apply(destination,args)})})),this}},targetName=(target=target||{}).name||target.id||target.serial||uuid(6),logger=eventifierLogger.child({target:targetName});return _(eventApi).functions().forEach(function(method){_.isFunction(target[method])&&eventifierLogger.warn("The target object has already a method named "+method,target),target[method]=function(){var args=[].slice.call(arguments);return eventApi[method].apply(target,args)}}),target}}),define("css!ui/component/css/components",[],function(){}),define(
"ui/component",["jquery","lodash","core/eventifier","handlebars","i18n","lib/dompurify/purify","css!ui/component/css/components.css"],function($$1,_,eventifier,Handlebars,__,DOMPurify,components_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",
function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret=""
;startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),
'<div class="component"></div>'});function defaultTpl(data,html,asString){html=Template(data,html);return html}var _slice=[].slice;function delegatedResize(){var width=this.config.width,height=this.config.height,$container=this.getContainer(),$element=this.getElement();$container&&("auto"===width&&(width=$container.width()),"auto"===height&&(height=$container.height())),$element&&(_.isNumber(width)&&$element.css({width:"".concat(width,"px")}),_.isNumber(height)&&$element.css({height:"".concat(height,"px")})),this._width=width,this._height=height}return function(specs,defaults){var $container,componentTpl=defaultTpl,componentState={},componentApi={
init:function(config){return this.config=_(config||{}).omit(function(value){return null==value}).defaults(defaults||{}).value(),componentState={},this.trigger("init"),this.config.renderTo&&($container=$$1(this.config.renderTo),this.render()),this},destroy:function(){return this.trigger("destroy"),this.$component&&this.$component.remove(),this.$component=null,componentState={},this},render:function(container){return container&&($container=$$1(container)),this.$component=$$1(componentTpl(this.config)),$container&&(this.config.replace&&$container.empty(),$container.append(this.$component)),this.setState("rendered",!0),delegatedResize.call(this),this.trigger(
"render",this.$component),this},setSize:function(width,height){return this.config.width=width,this.config.height=height,this.is("rendered")&&delegatedResize.call(this),this.trigger("setsize",width,height),this},getSize:function(){if(this.is("rendered"))return{width:this._width||0,height:this._height||0}},getOuterSize:function(includeMargin){var $component;if(this.is("rendered"))return $component=this.getElement(),includeMargin=includeMargin||!1,{width:Math.round($component.outerWidth(includeMargin)),height:Math.round($component.outerHeight(includeMargin))}},show:function(){return this.trigger("show",this),this.setState("hidden",!1)},hide:function(){
return this.trigger("hide",this),this.setState("hidden",!0)},enable:function(){return this.trigger("enable",this),this.setState("disabled",!1)},disable:function(){return this.trigger("disable",this),this.setState("disabled",!0)},is:function(state){return!!componentState[state]},setState:function(state,flag){return flag=!!flag,componentState[state]=flag,this.$component&&this.$component.toggleClass(state,flag),this.trigger("state",state,flag,this),this},getContainer:function(){return $container},getElement:function(){return this.$component},getTemplate:function(){return componentTpl},setTemplate:function(template){var tpl=template||defaultTpl
;return componentTpl=tpl,_.isFunction(componentTpl)||(componentTpl=function(){return tpl}),this.trigger("template",componentTpl),this},getConfig:function(){return this.config||defaults||{}}};return specs&&_(specs).functions().forEach(function(method){componentApi[method]=function(){return specs[method].apply(componentApi,_slice.call(arguments))}}),eventifier(componentApi)}}),define("util/regexEscape",[],function(){"use strict";return function(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}}),define("util/wrapLongWords",["util/regexEscape"],function(regexEscape){"use strict";regexEscape=regexEscape&&Object.prototype.hasOwnProperty.call(regexEscape,
"default")?regexEscape.default:regexEscape;return function(str,threshold){str=str.toString().replace(/([\w])</g,"$1 <");for(var cut,chunkExp=new RegExp(".{1,"+threshold+"}","g"),longWords=str.match(new RegExp("[\\S]{"+threshold+",}","g"))||[],i=longWords.length;i--;)cut=function(longWord,chunkExp){for(var newFirst,cutTerms=longWord.match(chunkExp),i=cutTerms.length,oldFirst="",offenders=[".",":",";"];i--;)newFirst=cutTerms[i].charAt(0),-1<offenders.indexOf(newFirst)&&(cutTerms[i]=cutTerms[i].substr(1)),-1<offenders.indexOf(oldFirst)&&(cutTerms[i]=cutTerms[i]+oldFirst),oldFirst=newFirst;return cutTerms.join(" ")}(longWords[i],chunkExp),str=str.replace(
new RegExp(regexEscape(longWords[i]),"g"),cut);return str}}),define("util/encode",[],function(){"use strict";var _reQuot=/"/g,_reApos=/'/g,encodeHTML=function(html){return document.createElement("a").appendChild(document.createTextNode(html)).parentNode.innerHTML};return{html:encodeHTML,attribute:function(html){return encodeHTML(html).replace(_reQuot,"&quot;").replace(_reApos,"&apos;")},encodeBase64:function(str){return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,function(match,p1){return String.fromCharCode("0x"+p1)}))},decodeBase64:function(str){return decodeURIComponent(Array.prototype.map.call(atob(str),function(c){return"%"+(
"00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""))}}}),define("ui/feedback",["jquery","lodash","core/format","ui/component","util/wrapLongWords","util/encode","handlebars","i18n","lib/dompurify/purify"],function($$1,_,format,component,wrapLongWords,encode,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",
function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),
hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,format=format&&Object.prototype.hasOwnProperty.call(format,"default")?format.default:format,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,wrapLongWords=wrapLongWords&&Object.prototype.hasOwnProperty.call(wrapLongWords,"default")?wrapLongWords.default:wrapLongWords,encode=encode&&Object.prototype.hasOwnProperty.call(encode,"default")?encode.default:encode,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default"
)?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var stack1,helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div id="',buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper
)+'" class="feedback feedback-',buffer+=escapeExpression(stack1=(helper=helpers.level)||"function"==typeof(helper=depth0&&depth0.level)?helper.call(depth0,{hash:{},data:data}):helper)+" ",!(stack1=helpers.if.call(depth0,depth0&&depth0.popup,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"popup"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" role="alert" >\n <span class="icon-',buffer+=escapeExpression(stack1=(helper=helpers.level)||"function"==typeof(helper=depth0&&depth0.level)?helper.call(depth0,{hash:{},data:data}):helper)+'"></span>\n <div>\n ',options={hash:{},data:data},!(stack1=(
helper=helpers.dompurify||depth0&&depth0.dompurify)?helper.call(depth0,depth0&&depth0.msg,options):helperMissing.call(depth0,"dompurify",depth0&&depth0.msg,options))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <span title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Close message",options):helperMissing.call(depth0,"__","Close message",options)))+'" class="icon-close" data-close=":parent .feedback" role="button" tabindex="0"></span>\n</div>\n'});function tpl(data,html,asString){html=Template(data,html);return html}var currents=[],levels=["info","success","warning","danger","error"],
defaultOptions={timeout:{info:2e3,success:2e3,warning:4e3,danger:4e3,error:8e3},wrapLongWordsAfter:40,encodeHtml:!0,popup:!0};return function($container,config){var codeEnter=13,codeSpace=32;if($container&&$container.length||($container=$$1("#feedback-box")),!$container.length)throw new TypeError("The feedback needs to belong to an existing container");return component({message:function(level,displayedMessage,params,options){return level&&_.contains(levels,level)||(level="info"),_.isPlainObject(params)&&(options=params,params=[]),this.config=_.defaults(options||{},this.config),this.config.level=level,this.config.encodeHtml&&(displayedMessage=encode.html(
displayedMessage)),this.config.wrapLongWordsAfter&&(displayedMessage=wrapLongWords(displayedMessage,this.config.wrapLongWordsAfter)),_.isArray(params)&&params.length&&(displayedMessage=format.apply(format,[displayedMessage].concat(params))),this.config.msg=displayedMessage,this},info:function(msg,params,options){return this.message("info",msg,params,options).open()},success:function(msg,params,options){return this.message("success",msg,params,options).open()},warning:function(msg,params,options){return this.message("warning",msg,params,options).open()},danger:function(msg,params,options){return this.message("danger",msg,params,options).open()},
error:function(msg,params,options){return this.message("error",msg,params,options).open()},open:function(){return _(currents).reject(this).invoke("close"),this.display()},close:function(){this.is("rendered")&&this.destroy()},display:function(){return this.is("rendered")?this.show():this.render($container),this}},defaultOptions).setTemplate(tpl).on("init",function(){this.config.id="feedback-"+(currents.length+1),currents.push(this),$container.trigger("create.feedback")}).on("render",function(){var _this=this,self=this,timeout=this.getElement(),$closer=$$1(".icon-close",timeout),timeout=_.isPlainObject(this.config.timeout
)?this.config.timeout[this.config.level]:this.config.timeout;$closer.off("click").on("click",function(e){e.preventDefault(),_this.destroy()}).off("keyup").on("keyup",function(e){-1!==[codeEnter,codeSpace].indexOf(e.which)&&_this.destroy()}),_.isNumber(timeout)&&0<timeout&&_.delay(function(){self.close()},timeout),$container.trigger("display.feedback")}).on("destroy",function(){$container.trigger("close.feedback"),_.remove(currents,this)}).init(config)}}),define("jquery.fileDownload",["jquery","ui/feedback"],function($,feedback){$.extend({fileDownload:function(fileUrl,isOtherMobileBrowser){function defaultFailCallback(responseHtml,url){feedback().error(
"A file download error has occurred, please try again.")}var settings=$.extend({preparingMessageHtml:null,failMessageHtml:null,androidPostUnsupportedMessageHtml:"Unfortunately your Android browser doesn't support this type of file download. Please try again with a different browser.",dialogOptions:{modal:!0},successCallback:function(url){},failCallback:defaultFailCallback,httpMethod:"GET",data:null,checkInterval:100,cookieName:"fileDownload",cookieValue:"true",cookiePath:"/",popupWindowTitle:"Initiating file download...",encodeHTMLEntities:!0},isOtherMobileBrowser),httpMethodUpper=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),isIos=!1,
isAndroid=!1,isOtherMobileBrowser=!1;/ip(ad|hone|od)/.test(httpMethodUpper)?isIos=!0:-1!=httpMethodUpper.indexOf("android")?isAndroid=!0:isOtherMobileBrowser=/avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|playbook|silk|iemobile|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(httpMethodUpper
)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(
httpMethodUpper.substr(0,4));var preparingDialog,internalCallbacks,$iframe,downloadWindow,formDoc,$form,formInnerHtml,httpMethodUpper=settings.httpMethod.toUpperCase();function getiframeDocument(iframeDoc){iframeDoc=iframeDoc[0].contentWindow||iframeDoc[0].contentDocument;return iframeDoc.document&&(iframeDoc=iframeDoc.document),iframeDoc}function cleanUp(isFailure){setTimeout(function(){downloadWindow&&(isAndroid&&downloadWindow.close(),isIos&&(isFailure?(downloadWindow.focus(),downloadWindow.close()):downloadWindow.focus()))},0)}function htmlSpecialCharsEntityEncode(str){return str.replace(/&/gm,"&amp;").replace(/\n/gm,"&#10;").replace(/\r/gm,"&#13;"
).replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/'/gm,"&apos;")}isAndroid&&"GET"!=httpMethodUpper?feedback().error(settings.androidPostUnsupportedMessageHtml,[],{encodeHtml:!1}):(preparingDialog=null,settings.preparingMessageHtml&&(preparingDialog=feedback().info(settings.preparingMessageHtml,[],{encodeHtml:!1})),internalCallbacks={onSuccess:function(url){preparingDialog&&setTimeout(function(){preparingDialog.close()},300),settings.successCallback(url)},onFail:function(responseHtml,url){preparingDialog&&setTimeout(function(){preparingDialog.close()},300),settings.failMessageHtml?(feedback().error(settings.failMessageHtml,[],{
encodeHtml:!1}),settings.failCallback!=defaultFailCallback&&settings.failCallback(responseHtml,url)):settings.failCallback(responseHtml,url)}},null!==settings.data&&"string"!=typeof settings.data&&(settings.data=$.param(settings.data)),"GET"===httpMethodUpper?(null!==settings.data&&(-1!=fileUrl.indexOf("?")?"&"!==fileUrl.substring(fileUrl.length-1)&&(fileUrl+="&"):fileUrl+="?",fileUrl+=settings.data),isIos||isAndroid?((downloadWindow=window.open(fileUrl)).document.title=settings.popupWindowTitle,window.focus()):isOtherMobileBrowser?window.location(fileUrl):$iframe=$("<iframe>").hide().attr("src",fileUrl).appendTo("body")):(formInnerHtml="",
null!==settings.data&&$.each(settings.data.replace(/\+/g," ").split("&"),function(){var value,kvp=this.split("="),key=settings.encodeHTMLEntities?htmlSpecialCharsEntityEncode(decodeURIComponent(kvp[0])):decodeURIComponent(kvp[0]);key&&(value=kvp[1]||"",value=settings.encodeHTMLEntities?htmlSpecialCharsEntityEncode(decodeURIComponent(kvp[1])):decodeURIComponent(kvp[1]),formInnerHtml+='<input type="hidden" name="'+key+'" value="'+value+'" />')}),isOtherMobileBrowser?($form=$("<form>").appendTo("body")).hide().attr("method",settings.httpMethod).attr("action",fileUrl).html(formInnerHtml):(isIos?((downloadWindow=window.open("about:blank")
).document.title=settings.popupWindowTitle,formDoc=downloadWindow.document,window.focus()):formDoc=getiframeDocument($iframe=$("<iframe style='display: none' src='about:blank'></iframe>").appendTo("body")),formDoc.write("<html><head></head><body><form method='"+settings.httpMethod+"' action='"+fileUrl+"'>"+formInnerHtml+"</form>"+settings.popupWindowTitle+"</body></html>"),$form=$(formDoc).find("form")),$form.submit()),setTimeout(function checkFileDownloadComplete(){if(-1!=document.cookie.indexOf(settings.cookieName+"="+settings.cookieValue)){internalCallbacks.onSuccess(fileUrl);var date=new Date(1e3)
;return document.cookie=settings.cookieName+"=; expires="+date.toUTCString()+"; path="+settings.cookiePath,void cleanUp(!1)}if(downloadWindow||$iframe)try{var formDoc;if((formDoc=downloadWindow?downloadWindow.document:getiframeDocument($iframe))&&null!=formDoc.body&&0<formDoc.body.innerHTML.length){var $contents,isFailure=!0;if($form&&0<$form.length&&(0<($contents=$(formDoc.body).contents().first()).length&&$contents[0]===$form[0]&&(isFailure=!1)),isFailure)return internalCallbacks.onFail(formDoc.body.innerHTML,fileUrl),void cleanUp(!0)}}catch(err){return internalCallbacks.onFail("",fileUrl),void cleanUp(!0)}setTimeout(checkFileDownloadComplete,
settings.checkInterval)},settings.checkInterval))}})}),function(factory){"use strict";"function"==typeof define&&define.amd?define("jquery.autocomplete",["jquery"],factory):"object"==typeof exports&&"function"==typeof require?factory(require("jquery")):factory(jQuery)}(function($){"use strict";var utils={escapeRegExChars:function(value){return value.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(containerClass){var div=document.createElement("div");return div.className=containerClass,div.style.position="absolute",div.style.display="none",div}},keys_ESC=27,keys_TAB=9,keys_RETURN=13,keys_UP=38,keys_RIGHT=39,keys_DOWN=40,noop=$.noop
;function Autocomplete(el,options){this.element=el,this.el=$(el),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=$.extend(!0,{},Autocomplete.defaults,options),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(options)}Autocomplete.utils=utils,($.Autocomplete=Autocomplete).defaults={ajaxSettings:{},
autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(suggestion,pattern){if(!pattern)return suggestion.value;pattern="("+utils.escapeRegExChars(pattern)+")";return suggestion.value.replace(new RegExp(pattern,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(suggestion,category){return'<div class="autocomplete-group">'+category+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:noop,
onSearchComplete:noop,onSearchError:noop,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(suggestion,originalQuery,queryLowerCase){return-1!==suggestion.value.toLowerCase().indexOf(queryLowerCase)},paramName:"query",transformResult:function(response){return"string"==typeof response?$.parseJSON(response):response},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},Autocomplete.prototype={initialize:function(){var container,that=this,suggestionSelector="."+that.classes.suggestion,
selected=that.classes.selected,options=that.options;that.element.setAttribute("autocomplete","off"),that.noSuggestionsContainer=$('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),that.suggestionsContainer=Autocomplete.utils.createNode(options.containerClass),(container=$(that.suggestionsContainer)).appendTo(options.appendTo||"body"),"auto"!==options.width&&container.css("width",options.width),container.on("mouseover.autocomplete",suggestionSelector,function(){that.activate($(this).data("index"))}),container.on("mouseout.autocomplete",function(){that.selectedIndex=-1,container.children("."+selected).removeClass(
selected)}),container.on("click.autocomplete",suggestionSelector,function(){that.select($(this).data("index"))}),container.on("click.autocomplete",function(){clearTimeout(that.blurTimeoutId)}),that.fixPositionCapture=function(){that.visible&&that.fixPosition()},$(window).on("resize.autocomplete",that.fixPositionCapture),that.el.on("keydown.autocomplete",function(e){that.onKeyPress(e)}),that.el.on("keyup.autocomplete",function(e){that.onKeyUp(e)}),that.el.on("blur.autocomplete",function(){that.onBlur()}),that.el.on("focus.autocomplete",function(){that.onFocus()}),that.el.on("change.autocomplete",function(e){that.onKeyUp(e)}),that.el.on("input.autocomplete",
function(e){that.onKeyUp(e)})},onFocus:function(){this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var that=this,options=that.options,value=that.el.val(),query=that.getQuery(value);that.blurTimeoutId=setTimeout(function(){that.hide(),that.selection&&that.currentValue!==query&&(options.onInvalidateSelection||$.noop).call(that.element)},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(options){options=$.extend({},this.options,options);this.isLocal=Array.isArray(options.lookup),this.isLocal&&(
options.lookup=this.verifySuggestionsFormat(options.lookup)),options.orientation=this.validateOrientation(options.orientation,"bottom"),$(this.suggestionsContainer).css({"max-height":options.maxHeight+"px",width:options.width+"px","z-index":options.zIndex}),this.options=options},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var styles,viewPortHeight,scrollTop,topOverflow,bottomOverflow,orientation,opacity,
parentOffsetDiff,$container=$(this.suggestionsContainer),containerParent=$container.parent().get(0);containerParent!==document.body&&!this.options.forceFixPosition||(orientation=this.options.orientation,opacity=$container.outerHeight(),parentOffsetDiff=this.el.outerHeight(),styles={top:(bottomOverflow=this.el.offset()).top,left:bottomOverflow.left},"auto"===orientation&&(viewPortHeight=$(window).height(),topOverflow=-(scrollTop=$(window).scrollTop())+bottomOverflow.top-opacity,bottomOverflow=scrollTop+viewPortHeight-(bottomOverflow.top+parentOffsetDiff+opacity),orientation=Math.max(topOverflow,bottomOverflow)===topOverflow?"top":"bottom"),
styles.top+="top"===orientation?-opacity:parentOffsetDiff,containerParent!==document.body&&(opacity=$container.css("opacity"),this.visible||$container.css("opacity",0).show(),parentOffsetDiff=$container.offsetParent().offset(),styles.top-=parentOffsetDiff.top,styles.top+=containerParent.scrollTop,styles.left-=parentOffsetDiff.left,this.visible||$container.css("opacity",opacity).hide()),"auto"===this.options.width&&(styles.width=this.el.outerWidth()+"px"),$container.css(styles))},isCursorAtEnd:function(){var valLength=this.el.val().length,range=this.element.selectionStart;return"number"==typeof range?range===valLength:!document.selection||((
range=document.selection.createRange()).moveStart("character",-valLength),valLength===range.text.length)},onKeyPress:function(e){if(this.disabled||this.visible||e.which!==keys_DOWN||!this.currentValue){if(!this.disabled&&this.visible){switch(e.which){case keys_ESC:this.el.val(this.currentValue),this.hide();break;case keys_RIGHT:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case keys_TAB:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case keys_RETURN:if(
-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case keys_UP:this.moveUp();break;case keys_DOWN:this.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else this.suggest()},onKeyUp:function(e){var that=this;if(!that.disabled){switch(e.which){case keys_UP:case keys_DOWN:return}clearTimeout(that.onChangeTimeout),that.currentValue!==that.el.val()&&(that.findBestHint(),0<that.options.deferRequestBy?that.onChangeTimeout=setTimeout(function(){that.onValueChange()},that.options.deferRequestBy):that.onValueChange())}},onValueChange:function(){var options,value,query
;this.ignoreValueChange?this.ignoreValueChange=!1:(options=this.options,value=this.el.val(),query=this.getQuery(value),this.selection&&this.currentValue!==query&&(this.selection=null,(options.onInvalidateSelection||$.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=value,this.selectedIndex=-1,options.triggerSelectOnValidInput&&this.isExactMatch(query)?this.select(0):query.length<options.minChars?this.hide():this.getSuggestions(query))},isExactMatch:function(query){var suggestions=this.suggestions;return 1===suggestions.length&&suggestions[0].value.toLowerCase()===query.toLowerCase()},getQuery:function(value){
var parts=this.options.delimiter;return parts?(parts=value.split(parts),$.trim(parts[parts.length-1])):value},getSuggestionsLocal:function(query){var data=this.options,queryLowerCase=query.toLowerCase(),filter=data.lookupFilter,limit=parseInt(data.lookupLimit,10),data={suggestions:$.grep(data.lookup,function(suggestion){return filter(suggestion,query,queryLowerCase)})};return limit&&data.suggestions.length>limit&&(data.suggestions=data.suggestions.slice(0,limit)),data},getSuggestions:function(q){var response,cacheKey,ajaxSettings,that=this,options=that.options,serviceUrl=options.serviceUrl;options.params[options.paramName]=q,!1!==options.onSearchStart.call(
that.element,options.params)&&(ajaxSettings=options.ignoreParams?null:options.params,$.isFunction(options.lookup)?options.lookup(q,function(data){that.suggestions=data.suggestions,that.suggest(),options.onSearchComplete.call(that.element,q,data.suggestions)}):(response=that.isLocal?that.getSuggestionsLocal(q):($.isFunction(serviceUrl)&&(serviceUrl=serviceUrl.call(that.element,q)),cacheKey=serviceUrl+"?"+$.param(ajaxSettings||{}),that.cachedResponse[cacheKey]))&&Array.isArray(response.suggestions)?(that.suggestions=response.suggestions,that.suggest(),options.onSearchComplete.call(that.element,q,response.suggestions)):that.isBadQuery(q
)?options.onSearchComplete.call(that.element,q,[]):(that.abortAjax(),ajaxSettings={url:serviceUrl,data:ajaxSettings,type:options.type,dataType:options.dataType},$.extend(ajaxSettings,options.ajaxSettings),that.currentRequest=$.ajax(ajaxSettings).done(function(result){that.currentRequest=null,result=options.transformResult(result,q),that.processResponse(result,q,cacheKey),options.onSearchComplete.call(that.element,q,result.suggestions)}).fail(function(jqXHR,textStatus,errorThrown){options.onSearchError.call(that.element,q,jqXHR,textStatus,errorThrown)})))},isBadQuery:function(q){if(!this.options.preventBadQueries)return!1;for(var badQueries=this.badQueries,
i=badQueries.length;i--;)if(0===q.indexOf(badQueries[i]))return!0;return!1},hide:function(){var container=$(this.suggestionsContainer);$.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,container),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),$(this.suggestionsContainer).hide(),this.signalHint(null)},suggest:function(){var options,groupBy,formatResult,value,className,classSelected,container,noSuggestionsContainer,beforeRender,html,category;this.suggestions.length?(options=this.options,groupBy=options.groupBy,formatResult=options.formatResult,value=this.getQuery(this.currentValue),
className=this.classes.suggestion,classSelected=this.classes.selected,container=$(this.suggestionsContainer),noSuggestionsContainer=$(this.noSuggestionsContainer),beforeRender=options.beforeRender,html="",options.triggerSelectOnValidInput&&this.isExactMatch(value)?this.select(0):($.each(this.suggestions,function(i,suggestion){groupBy&&(html+=function(suggestion){var currentCategory=suggestion.data[groupBy];return category===currentCategory?"":(category=currentCategory,options.formatGroup(suggestion,category))}(suggestion)),html+='<div class="'+className+'" data-index="'+i+'">'+formatResult(suggestion,value,i)+"</div>"}),this.adjustContainerWidth(),
noSuggestionsContainer.detach(),container.html(html),$.isFunction(beforeRender)&&beforeRender.call(this.element,container,this.suggestions),this.fixPosition(),container.show(),options.autoSelectFirst&&(this.selectedIndex=0,container.scrollTop(0),container.children("."+className).first().addClass(classSelected)),this.visible=!0,this.findBestHint())):this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var beforeRender=this.options.beforeRender,container=$(this.suggestionsContainer),noSuggestionsContainer=$(this.noSuggestionsContainer);this.adjustContainerWidth(),noSuggestionsContainer.detach(),container.empty(),
container.append(noSuggestionsContainer),$.isFunction(beforeRender)&&beforeRender.call(this.element,container,this.suggestions),this.fixPosition(),container.show(),this.visible=!0},adjustContainerWidth:function(){var width,options=this.options,container=$(this.suggestionsContainer);"auto"===options.width?(width=this.el.outerWidth(),container.css("width",0<width?width:300)):"flex"===options.width&&container.css("width","")},findBestHint:function(){var value=this.el.val().toLowerCase(),bestMatch=null;value&&($.each(this.suggestions,function(i,suggestion){var foundMatch=0===suggestion.value.toLowerCase().indexOf(value);return foundMatch&&(bestMatch=suggestion),
!foundMatch}),this.signalHint(bestMatch))},signalHint:function(suggestion){var hintValue="";suggestion&&(hintValue=this.currentValue+suggestion.value.substr(this.currentValue.length)),this.hintValue!==hintValue&&(this.hintValue=hintValue,this.hint=suggestion,(this.options.onHint||$.noop)(hintValue))},verifySuggestionsFormat:function(suggestions){return suggestions.length&&"string"==typeof suggestions[0]?$.map(suggestions,function(value){return{value:value,data:null}}):suggestions},validateOrientation:function(orientation,fallback){return orientation=$.trim(orientation||"").toLowerCase(),-1===$.inArray(orientation,["auto","bottom","top"])&&(
orientation=fallback),orientation},processResponse:function(result,originalQuery,cacheKey){var options=this.options;result.suggestions=this.verifySuggestionsFormat(result.suggestions),options.noCache||(this.cachedResponse[cacheKey]=result,options.preventBadQueries&&!result.suggestions.length&&this.badQueries.push(originalQuery)),originalQuery===this.getQuery(this.currentValue)&&(this.suggestions=result.suggestions,this.suggest())},activate:function(index){var selected=this.classes.selected,container=$(this.suggestionsContainer),activeItem=container.find("."+this.classes.suggestion);return container.find("."+selected).removeClass(selected),
this.selectedIndex=index,-1!==this.selectedIndex&&activeItem.length>this.selectedIndex?(activeItem=activeItem.get(this.selectedIndex),$(activeItem).addClass(selected),activeItem):null},selectHint:function(){var i=$.inArray(this.hint,this.suggestions);this.select(i)},select:function(i){this.hide(),this.onSelect(i)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?($(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},
moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(index){var heightDelta,offsetTop,upperBound,lowerBound=this.activate(index);lowerBound&&(heightDelta=$(lowerBound).outerHeight(),offsetTop=lowerBound.offsetTop,lowerBound=(upperBound=$(this.suggestionsContainer).scrollTop())+this.options.maxHeight-heightDelta,offsetTop<upperBound?$(this.suggestionsContainer).scrollTop(offsetTop):lowerBound<offsetTop&&$(this.suggestionsContainer).scrollTop(offsetTop-this.options.maxHeight+heightDelta),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(
this.suggestions[index].value))),this.signalHint(null))},onSelect:function(suggestion){var onSelectCallback=this.options.onSelect,suggestion=this.suggestions[suggestion];this.currentValue=this.getValue(suggestion.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.signalHint(null),this.suggestions=[],this.selection=suggestion,$.isFunction(onSelectCallback)&&onSelectCallback.call(this.element,suggestion)},getValue:function(value){var currentValue,parts=this.options.delimiter;return!parts||1===(parts=(currentValue=this.currentValue).split(parts)).length?value:currentValue.substr(0,
currentValue.length-parts[parts.length-1].length)+value},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),$(window).off("resize.autocomplete",this.fixPositionCapture),$(this.suggestionsContainer).remove()}},$.fn.devbridgeAutocomplete=function(options,args){return arguments.length?this.each(function(){var inputElement=$(this),instance=inputElement.data("autocomplete");"string"==typeof options?instance&&"function"==typeof instance[options]&&instance[options](args):(instance&&instance.dispose&&instance.dispose(),instance=new Autocomplete(this,options),inputElement.data("autocomplete",instance))}):this.first().data("autocomplete")},
$.fn.autocomplete||($.fn.autocomplete=$.fn.devbridgeAutocomplete)}),define("lib/farbtastic/farbtastic",["jquery"],function(jQuery){var $=jQuery;jQuery.fn.farbtastic=function(callback){return $.farbtastic(this,callback),this},jQuery.farbtastic=function(container,callback){if(container.length)return(container=$(container).get(0)).farbtastic||(container.farbtastic=new jQuery._farbtastic(container,callback))},jQuery._farbtastic=function(container,callback){var fb=this,e=$("<div>",{class:"farbtastic"}),colorObj=$("<div>",{class:"color"}),wheelObj=$("<div>",{class:"wheel"}),overlayObj=$("<div>",{class:"overlay"}),hMarkerObj=$("<div>",{class:"h-marker marker"}),
slMarkerObj=$("<div>",{class:"sl-marker marker"});container=$(container),$(e).append(colorObj),$(e).append(wheelObj),$(e).append(overlayObj),$(e).append(hMarkerObj),$(e).append(slMarkerObj),container.append(e),fb.wheel=wheelObj.get(0),fb.radius=70,fb.square=overlayObj.width(),fb.width=e.width(),fb.linkTo=function(callback){return"object"==typeof fb.callback&&$(fb.callback).unbind("keyup",fb.updateValue),fb.color=null,"function"==typeof callback?fb.callback=callback:"object"!=typeof callback&&"string"!=typeof callback||(fb.callback=$(callback),fb.callback.bind("keyup",fb.updateValue),fb.callback.get(0).value&&fb.setColor(fb.callback.get(0).value)),this},
fb.updateValue=function(event){this.value&&this.value!=fb.color&&fb.setColor(this.value)},fb.setColor=function(color){var unpack=fb.unpack(color);return fb.color!=color&&unpack&&(fb.color=color,fb.rgb=unpack,fb.hsl=fb.RGBToHSL(fb.rgb),fb.updateDisplay()),this},fb.setHSL=function(hsl){return fb.hsl=hsl,fb.rgb=fb.HSLToRGB(hsl),fb.color=fb.pack(fb.rgb),fb.updateDisplay(),this},fb.widgetCoords=function(event){var el=event.target||event.srcElement,reference=fb.wheel;if(void 0!==event.offsetX){for(var pos={x:event.offsetX,y:event.offsetY},e=el;e;)e.mouseX=pos.x,e.mouseY=pos.y,pos.x+=e.offsetLeft,pos.y+=e.offsetTop,e=e.offsetParent;for(var e=reference,offset={x:0,
y:0};e;){if(void 0!==e.mouseX){x=e.mouseX-offset.x,y=e.mouseY-offset.y;break}offset.x+=e.offsetLeft,offset.y+=e.offsetTop,e=e.offsetParent}for(e=el;e;)e.mouseX=void 0,e.mouseY=void 0,e=e.offsetParent}else var pos=fb.absolutePosition(reference),x=(event.pageX||0*(event.clientX+$("html").get(0).scrollLeft))-pos.x,y=(event.pageY||0*(event.clientY+$("html").get(0).scrollTop))-pos.y;return{x:x-fb.width/2,y:y-fb.width/2}},fb.mousedown=function(event){document.dragging||($(document).bind("mousemove",fb.mousemove).bind("mouseup",fb.mouseup),document.dragging=!0);var pos=fb.widgetCoords(event);return fb.circleDrag=2*Math.max(Math.abs(pos.x),Math.abs(pos.y))>fb.square
,fb.mousemove(event),!1},fb.mousemove=function(lum){var sat,lum=fb.widgetCoords(lum);return fb.circleDrag?((sat=Math.atan2(lum.x,-lum.y)/6.28)<0&&(sat+=1),fb.setHSL([sat,fb.hsl[1],fb.hsl[2]])):(sat=Math.max(0,Math.min(1,.5-lum.x/fb.square)),lum=Math.max(0,Math.min(1,.5-lum.y/fb.square)),fb.setHSL([fb.hsl[0],sat,lum])),!1},fb.mouseup=function(){$(document).unbind("mousemove",fb.mousemove),$(document).unbind("mouseup",fb.mouseup),document.dragging=!1},fb.updateDisplay=function(){var angle=6.28*fb.hsl[0];$(".h-marker",e).css({left:Math.round(Math.sin(angle)*fb.radius+fb.width/2)+"px",top:Math.round(-Math.cos(angle)*fb.radius+fb.width/2)+"px"}),$(".sl-marker",e
).css({left:Math.round(fb.square*(.5-fb.hsl[1])+fb.width/2)+"px",top:Math.round(fb.square*(.5-fb.hsl[2])+fb.width/2)+"px"}),$(".color",e).css("backgroundColor",fb.pack(fb.HSLToRGB([fb.hsl[0],1,.5]))),"object"==typeof fb.callback?($(fb.callback).css({backgroundColor:fb.color,color:.5<fb.hsl[2]?"#000":"#fff"}),$(fb.callback).each(function(){this.value&&this.value!=fb.color&&(this.value=fb.color)})):"function"==typeof fb.callback&&fb.callback.call(fb,fb.color),container.trigger("colorchange.farbtastic",[fb.color])},fb.absolutePosition=function(tmp){var r={x:tmp.offsetLeft,y:tmp.offsetTop};return tmp.offsetParent&&(tmp=fb.absolutePosition(tmp.offsetParent),
r.x+=tmp.x,r.y+=tmp.y),r},fb.pack=function(b){var r=Math.round(255*b[0]),g=Math.round(255*b[1]),b=Math.round(255*b[2]);return"#"+(r<16?"0":"")+r.toString(16)+(g<16?"0":"")+g.toString(16)+(b<16?"0":"")+b.toString(16)},fb.unpack=function(color){return 7==color.length?[parseInt("0x"+color.substring(1,3))/255,parseInt("0x"+color.substring(3,5))/255,parseInt("0x"+color.substring(5,7))/255]:4==color.length?[parseInt("0x"+color.substring(1,2))/15,parseInt("0x"+color.substring(2,3))/15,parseInt("0x"+color.substring(3,4))/15]:void 0},fb.HSLToRGB=function(m1){var h=m1[0],m2=m1[1],m1=m1[2],m2=m1<=.5?m1*(m2+1):m1+m2-m1*m2,m1=2*m1-m2;return[this.hueToRGB(m1,m2,h+.33333),
this.hueToRGB(m1,m2,h),this.hueToRGB(m1,m2,h-.33333)]},fb.hueToRGB=function(m1,m2,h){return 6*(h=h<0?h+1:1<h?h-1:h)<1?m1+(m2-m1)*h*6:2*h<1?m2:3*h<2?m1+(m2-m1)*(.66666-h)*6:m1},fb.RGBToHSL=function(l){var r=l[0],g=l[1],b=l[2],h=Math.min(r,Math.min(g,b)),max=Math.max(r,Math.max(g,b)),delta=max-h,l=(h+max)/2,h=0;return 0<delta&&(max==r&&max!=g&&(h+=(g-b)/delta),max==g&&max!=b&&(h+=2+(b-r)/delta),max==b&&max!=r&&(h+=4+(r-g)/delta),h/=6),[h,0<l&&l<1?delta/(l<.5?2*l:2-2*l):0,l]},$("*",e).mousedown(fb.mousedown),fb.setColor("#123456"),callback&&fb.linkTo(callback)}}),define("jquery.tree",["jquery"],function($){function tree_component(){return{
cntr:++tree_component.cntr,settings:$.extend({},$.tree.defaults),init:function(elem,conf){var _this=this;if(this.container=$(elem),0==this.container.size)return!1;if((tree_component.inst[this.cntr]=this).container.attr("id")||this.container.attr("id","jstree_"+this.cntr),tree_component.inst[this.container.attr("id")]=tree_component.inst[this.cntr],tree_component.focused=this.cntr,this.settings=$.extend(!0,{},this.settings,conf),this.settings.languages&&this.settings.languages.length){this.current_lang=this.settings.languages[0];for(var st=!1,id="#"+this.container.attr("id"),ln=0;ln<this.settings.languages.length;ln++)!1!==(st=tree_component.add_css(
id+" ."+this.settings.languages[ln]))&&(st.style.display=this.settings.languages[ln]==this.current_lang?"":"none")}else this.current_lang=!1;this.container.addClass("tree"),!1!==this.settings.ui.theme_name&&(!1===this.settings.ui.theme_path&&$("script").each(function(){if(this.src.toString().match(/jquery\.tree.*?js$/))return _this.settings.ui.theme_path=this.src.toString().replace(/jquery\.tree.*?js$/,"")+"themes/"+_this.settings.ui.theme_name+"/style.css",!1}),""!=this.settings.ui.theme_path&&-1==$.inArray(this.settings.ui.theme_path,tree_component.themes)&&(tree_component.add_sheet({url:this.settings.ui.theme_path}),tree_component.themes.push(
this.settings.ui.theme_path)),this.container.addClass("tree-"+this.settings.ui.theme_name));var t,type_icons="";for(t in this.settings.types)this.settings.types.hasOwnProperty(t)&&this.settings.types[t].icon&&(this.settings.types[t].icon.image||this.settings.types[t].icon.position)&&(type_icons+="default"==t?"#"+this.container.attr("id")+" li > a ins { ":"#"+this.container.attr("id")+" li[rel="+t+"] > a ins { ",this.settings.types[t].icon.image&&(type_icons+=" background-image:url("+this.settings.types[t].icon.image+"); "),this.settings.types[t].icon.position&&(type_icons+=" background-position:"+this.settings.types[t].icon.position+"; "),type_icons+="} ")
;""!=type_icons&&tree_component.add_sheet({str:type_icons}),this.settings.rules.multiple&&(this.selected_arr=[]),this.offset=!1,this.hovered=!1,(this.locked=!1)===tree_component.drag_drop.marker&&(tree_component.drag_drop.marker=$("<div>").attr({id:"jstree-marker"}).hide().appendTo("body")),this.callback("oninit",[this]),this.refresh(),this.attach_events(),this.focus()},refresh:function(obj){if(this.locked)return this.error("LOCKED");var tmp,_this=this;if(obj&&!this.settings.data.async&&(obj=!1),this.is_partial_refresh=!!obj,this.opened=Array(),0!=this.settings.opened?($.each(this.settings.opened,function(i,item){0<this.replace(/^#/,""
).length&&_this.opened.push("#"+this.replace(/^#/,""))}),this.settings.opened=!1):this.container.find("li.open").each(function(i){this.id&&_this.opened.push("#"+this.id)}),this.selected?(this.settings.selected=Array(),obj?$(obj).find("li:has(a.clicked)").each(function(){this.id&&_this.settings.selected.push("#"+this.id)}):this.selected_arr?$.each(this.selected_arr,function(){this.attr("id")&&_this.settings.selected.push("#"+this.attr("id"))}):this.selected.attr("id")&&this.settings.selected.push("#"+this.selected.attr("id"))):!1!==this.settings.selected&&(tmp=Array(),"object"==(typeof this.settings.selected).toLowerCase()?$.each(this.settings.selected,
function(){0<this.replace(/^#/,"").length&&tmp.push("#"+this.replace(/^#/,""))}):0<this.settings.selected.replace(/^#/,"").length&&tmp.push("#"+this.settings.selected.replace(/^#/,"")),this.settings.selected=tmp),obj&&this.settings.data.async)return this.opened=Array(),(obj=this.get_node(obj)).find("li.open").each(function(i){_this.opened.push("#"+this.id)}),obj.hasClass("open")&&obj.removeClass("open").addClass("closed"),obj.hasClass("leaf")&&obj.removeClass("leaf"),obj.children("ul:eq(0)").html(""),this.open_branch(obj,!0,function(){_this.reselect.apply(_this)});var _this=this,_datastore=new $.tree.datastores[this.settings.data.type]
;0==this.container.children("ul").size()&&this.container.html("<ul class='ltr' style='direction:ltr;'><li class='last'><a class='loading' href='#'><ins>&nbsp;</ins>"+(this.settings.lang.loading||"Loading ...")+"</a></li></ul>"),_datastore.load(this.callback("beforedata",[!1,this]),this,this.settings.data.opts,function(data){data=_this.callback("ondata",[data,_this]),_datastore.parse(data,_this,_this.settings.data.opts,function(str){str=_this.callback("onparse",[str,_this]),_this.container.empty().append($("<ul class='ltr'>").html(str)),_this.container.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"),
_this.container.find("li").not(".open").not(".closed").addClass("leaf"),_this.reselect()})})},reselect:function(is_callback){var _this=this;if(is_callback?this.cl_count--:this.cl_count=0,this.opened&&this.opened.length){for(var tmp,opn=!1,j=0;this.opened&&j<this.opened.length;j++){this.settings.data.async?(tmp=this.get_node(this.opened[j])).size()&&0<tmp.hasClass("closed")&&(opn=!0,tmp=this.opened[j].toString().replace("/","\\/"),delete this.opened[j],this.open_branch(tmp,!0,function(){_this.reselect.apply(_this,[!0])}),this.cl_count++):this.open_branch(this.opened[j],!0)}if(this.settings.data.async&&opn)return;if(0<this.cl_count)return;delete this.opened}
0<this.cl_count||(this.container.css("direction","ltr").children("ul:eq(0)").addClass("ltr"),0==this.settings.ui.dots&&this.container.children("ul:eq(0)").addClass("no_dots"),this.scrtop&&(this.container.scrollTop(_this.scrtop),delete this.scrtop),!1!==this.settings.selected&&($.each(this.settings.selected,function(i){_this.is_partial_refresh?_this.select_branch($(_this.settings.selected[i].toString().replace("/","\\/"),_this.container),!1!==_this.settings.rules.multiple):_this.select_branch($(_this.settings.selected[i].toString().replace("/","\\/"),_this.container),!1!==_this.settings.rules.multiple&&0<i)}),this.settings.selected=!1),this.callback("onload",
[_this]))},get:function(obj,format,opts){return format=format||this.settings.data.type,opts=opts||this.settings.data.opts,(new $.tree.datastores[format]).get(obj,this,opts)},attach_events:function(){var _this=this;this.container.on("mousedown.jstree",function(event){if(tree_component.drag_drop.isdown)return tree_component.drag_drop.move_type=!1,event.preventDefault(),event.stopPropagation(),event.stopImmediatePropagation(),!1}).on("mouseup.jstree",function(event){setTimeout(function(){_this.focus.apply(_this)},5)}).on("click.jstree",function(event){return!0}),this.container.on("click","li",function(event){return"LI"!=event.target.tagName||(_this.off_height()
,event.pageY-$(event.target).offset().top>_this.li_height||(_this.toggle_branch.apply(_this,[event.target]),event.stopPropagation(),!1))}),this.container.on("click","a",function(event){return!(!event.which||3!=event.which)||(_this.locked?(event.preventDefault(),event.target.blur(),_this.error("LOCKED")):(_this.select_branch.apply(_this,[event.target,event.ctrlKey||"on"==_this.settings.rules.multiple]),_this.inp&&_this.inp.blur(),event.preventDefault(),event.target.blur(),!1))}).on("dblclick","a",function(event){return _this.locked?(event.preventDefault(),event.stopPropagation(),event.target.blur(),_this.error("LOCKED")):(_this.callback("ondblclk",[
_this.get_node(event.target).get(0),_this]),event.preventDefault(),event.stopPropagation(),void event.target.blur())}).on("contextmenu","a",function(event){return _this.locked?(event.target.blur(),_this.error("LOCKED")):_this.callback("onrgtclk",[_this.get_node(event.target).get(0),_this,event])}).on("mouseover","a",function(event){return _this.locked?(event.preventDefault(),event.stopPropagation(),_this.error("LOCKED")):(!1===_this.hovered||"A"!=event.target.tagName&&"INS"!=event.target.tagName||(_this.hovered.children("a").removeClass("hover"),_this.hovered=!1),void _this.callback("onhover",[_this.get_node(event.target).get(0),_this]))}).on("mousedown","a"
,function(event){if("left"==_this.settings.rules.drag_button&&event.which&&1!=event.which)return!0;if("right"==_this.settings.rules.drag_button&&event.which&&3!=event.which)return!0;if(_this.focus.apply(_this),_this.locked)return _this.error("LOCKED");var obj=_this.get_node(event.target);if(0!=_this.settings.rules.multiple&&1<_this.selected_arr.length&&obj.children("a:eq(0)").hasClass("clicked")){var i,tmp,counter=0;for(i in _this.selected_arr)_this.selected_arr.hasOwnProperty(i)&&_this.check("draggable",_this.selected_arr[i])&&(_this.selected_arr[i].addClass("dragged"),tree_component.drag_drop.origin_tree=_this,counter++);0<counter&&(_this.check("draggable"
,obj)?tree_component.drag_drop.drag_node=obj:tree_component.drag_drop.drag_node=_this.container.find("li.dragged:eq(0)"),tree_component.drag_drop.isdown=!0,tree_component.drag_drop.drag_help=$("<div id='jstree-dragged' class='tree "+(""!=_this.settings.ui.theme_name?" tree-"+_this.settings.ui.theme_name:"")+"' />").append("<ul class='"+_this.container.children("ul:eq(0)").get(0).className+"' />"),tmp=tree_component.drag_drop.drag_node.clone(),0<_this.settings.languages.length&&tmp.find("a").not("."+_this.current_lang).hide(),tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp),tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass(
"last").addClass("last").children("a").html("<ins>&nbsp;</ins>Multiple selection").end().children("ul").remove(),tree_component.drag_drop.dragged=_this.container.find("li.dragged"))}else{_this.check("draggable",obj)&&(tree_component.drag_drop.drag_node=obj,tree_component.drag_drop.drag_help=$("<div id='jstree-dragged' class='tree "+(""!=_this.settings.ui.theme_name?" tree-"+_this.settings.ui.theme_name:"")+"' />").append("<ul class='"+_this.container.children("ul:eq(0)").get(0).className+"' />"),tmp=obj.clone(),0<_this.settings.languages.length&&tmp.find("a").not("."+_this.current_lang).hide(),tree_component.drag_drop.drag_help.children("ul:eq(0)").append(
tmp),tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last"),tree_component.drag_drop.isdown=!0,tree_component.drag_drop.foreign=!1,tree_component.drag_drop.origin_tree=_this,obj.addClass("dragged"),tree_component.drag_drop.dragged=_this.container.find("li.dragged"))}return tree_component.drag_drop.init_x=event.pageX,tree_component.drag_drop.init_y=event.pageY,obj.blur(),event.preventDefault(),event.stopPropagation(),!1})},focus:function(){if(this.locked)return!1;tree_component.focused!=this.cntr&&(tree_component.focused=this.cntr,this.callback("onfocus",[this]))},off_height:function(){var tmp;!1===this.offset&&(
this.container.css({position:"relative"}),this.offset=this.container.offset(),tmp=0,(tmp=parseInt($.css(this.container.get(0),"paddingTop",!0),10))&&(this.offset.top+=tmp),(tmp=parseInt($.css(this.container.get(0),"borderTopWidth",!0),10))&&(this.offset.top+=tmp),this.container.css({position:""})),this.li_height||(tmp=this.container.find("ul li.closed, ul li.leaf").eq(0),this.li_height=tmp.height(),tmp.children("ul:eq(0)").size()&&(this.li_height-=tmp.children("ul:eq(0)").height()),this.li_height||(this.li_height=18))},scroll_check:function(x,y){var _this=this,cnt=_this.container,off=_this.container.offset(),st=cnt.scrollTop(),sl=cnt.scrollLeft(),
h_cor=cnt.get(0).scrollWidth>cnt.width()?40:20;y-off.top<20&&cnt.scrollTop(Math.max(st-_this.settings.ui.scroll_spd,0)),cnt.height()-(y-off.top)<h_cor&&cnt.scrollTop(st+_this.settings.ui.scroll_spd),x-off.left<20&&cnt.scrollLeft(Math.max(sl-_this.settings.ui.scroll_spd,0)),cnt.width()-(x-off.left)<40&&cnt.scrollLeft(sl+_this.settings.ui.scroll_spd),cnt.scrollLeft()==sl&&cnt.scrollTop()==st||(tree_component.drag_drop.move_type=!1,tree_component.drag_drop.ref_node=!1,tree_component.drag_drop.marker.hide()),tree_component.drag_drop.scroll_time=setTimeout(function(){_this.scroll_check(x,y)},50)},scroll_into_view:function(h_cor){if(!(h_cor=h_cor?this.get_node(
h_cor):this.selected))return!1;var off_t=h_cor.offset().top,beg_t=this.container.offset().top,end_t=beg_t+this.container.height(),h_cor=this.container.get(0).scrollWidth>this.container.width()?40:20;off_t+5<beg_t&&this.container.scrollTop(this.container.scrollTop()-(beg_t-off_t+5)),end_t<off_t+h_cor&&this.container.scrollTop(this.container.scrollTop()+(off_t+h_cor-end_t))},get_node:function(obj){return $(obj).closest("li")},get_type:function(obj){if(obj=obj?this.get_node(obj):this.selected)return obj.attr(this.settings.rules.type_attr)||"default"},set_type:function(str,obj){(obj=obj?this.get_node(obj):this.selected)&&str&&obj.attr(
this.settings.rules.type_attr,str)},get_text:function(obj,lang){if(!(obj=this.get_node(obj))||0==obj.size())return"";obj=this.settings.languages&&this.settings.languages.length?(lang=lang||this.current_lang,obj.children("a."+lang)):obj.children("a:visible");var val="";return obj.contents().each(function(){if(3==this.nodeType)return val=this.data,!1}),val},check:function(rule,obj){if(this.locked)return!1;var v=!1;if(-1===obj)void 0!==this.settings.rules[rule]&&(v=this.settings.rules[rule]);else{if(!(obj=obj?this.get_node(obj):this.selected))return;var t=this.get_type(obj)
;void 0!==this.settings.types[t]&&void 0!==this.settings.types[t][rule]?v=this.settings.types[t][rule]:void 0!==this.settings.types.default&&void 0!==this.settings.types.default[rule]&&(v=this.settings.types.default[rule])}return"function"==typeof v&&(v=v.call(null,obj,this)),v=this.callback("check",[rule,obj,v,this])},check_move:function(nod,ref_node,how){if(this.locked)return!1;if($(ref_node).closest("li.dragged").size())return!1;var c_count=nod.parents(".tree:eq(0)").get(0),r=ref_node.parents(".tree:eq(0)").get(0);if(c_count&&c_count!=r&&("none"==(m=$.tree.reference(r.id).settings.rules.multitree)||$.isArray(m)&&-1==$.inArray(c_count.id,m)))return!1
;var p="inside"!=how?this.parent(ref_node):this.get_node(ref_node);if(nod=this.get_node(nod),0==p)return!1;r={max_depth:this.settings.rules.use_max_depth?this.check("max_depth",p):-1,max_children:this.settings.rules.use_max_children?this.check("max_children",p):-1,valid_children:this.check("valid_children",p)},c_count="string"==typeof nod?nod:this.get_type(nod);if(void 0!==r.valid_children&&("none"==r.valid_children||"object"==typeof r.valid_children&&-1==$.inArray(c_count,$.makeArray(r.valid_children))))return!1;if(this.settings.rules.use_max_children&&void 0!==r.max_children&&-1!=r.max_children){if(0==r.max_children)return!1;c_count=1;if(
1==tree_component.drag_drop.moving&&0==tree_component.drag_drop.foreign&&(c_count=tree_component.drag_drop.dragged.size(),c_count-=p.find("> ul > li.dragged").size()),r.max_children<p.find("> ul > li").size()+c_count)return!1}if(this.settings.rules.use_max_depth){if(void 0!==r.max_depth&&0===r.max_depth)return this.error("MOVE: MAX-DEPTH REACHED");for(var m,mx=0<r.max_depth&&r.max_depth,i=0,t=p;-1!==t;){if(t=this.parent(t),i++,0<=(m=this.check("max_depth",t))&&(mx=!1===mx?m-i:Math.min(mx,m-i)),!1!==mx&&mx<=0)return this.error("MOVE: MAX-DEPTH REACHED")}if(!1!==mx&&mx<=0)return this.error("MOVE: MAX-DEPTH REACHED");if(!1!==mx){var incr=1;if(
"string"!=typeof nod)for(t=nod;0<t.size();){if(mx-incr<0)return this.error("MOVE: MAX-DEPTH REACHED");t=t.children("ul").children("li"),incr++}}}return 0!=this.callback("check_move",[nod,ref_node,how,this])},hover_branch:function(obj){if(this.locked)return this.error("LOCKED");return(obj=this.get_node(obj)).size()?this.check("clickable",obj)?(this.hovered&&this.hovered.children("A").removeClass("hover"),this.hovered=obj,this.hovered.children("a").addClass("hover"),void this.scroll_into_view(this.hovered)):this.error("SELECT: NODE NOT SELECTABLE"):this.error("HOVER: NOT A VALID NODE")},select_branch:function(obj,multiple){if(this.locked)return this.error(
"LOCKED");obj||!1===this.hovered||(obj=this.hovered);var _this=this;if(!(obj=_this.get_node(obj)).size())return this.error("SELECT: NOT A VALID NODE");if(obj.children("a").removeClass("hover"),!_this.check("clickable",obj))return this.error("SELECT: NODE NOT SELECTABLE");if(!1===_this.callback("beforechange",[obj.get(0),_this]))return this.error("SELECT: STOPPED BY USER");if(0!=this.settings.rules.multiple&&multiple&&0<obj.children("a.clicked").size())return this.deselect_branch(obj);if(0!=this.settings.rules.multiple&&multiple&&this.selected_arr.push(obj),0!=this.settings.rules.multiple&&!multiple){for(var i in this.selected_arr
)this.selected_arr.hasOwnProperty(i)&&(this.selected_arr[i].children("A").removeClass("clicked"),this.callback("ondeselect",[this.selected_arr[i].get(0),_this]));this.selected_arr=[],this.selected_arr.push(obj),this.selected&&this.selected.children("A").hasClass("clicked")&&(this.selected.children("A").removeClass("clicked"),this.callback("ondeselect",[this.selected.get(0),_this]))}this.settings.rules.multiple||this.selected&&(this.selected.children("A").removeClass("clicked"),this.callback("ondeselect",[this.selected.get(0),_this])),this.selected=obj,!1!==this.hovered&&(this.hovered.children("A").removeClass("hover"),this.hovered=obj),
this.selected.children("a").addClass("clicked").end().parents("li.closed").each(function(){_this.open_branch(this,!0)}),this.scroll_into_view(this.selected),this.callback("onselect",[this.selected.get(0),_this]),this.callback("onchange",[this.selected.get(0),_this])},deselect_branch:function(obj){if(this.locked)return this.error("LOCKED");var _this=this;if(0==(obj=this.get_node(obj)).children("a.clicked").size())return this.error("DESELECT: NODE NOT SELECTED");obj.children("a").removeClass("clicked"),this.callback("ondeselect",[obj.get(0),_this]),0!=this.settings.rules.multiple&&1<this.selected_arr.length?(this.selected_arr=[],this.container.find("a.clicked"
).filter(":first-child").parent().each(function(){_this.selected_arr.push($(this))}),obj.get(0)==this.selected.get(0)&&(this.selected=this.selected_arr[0])):(0!=this.settings.rules.multiple&&(this.selected_arr=[]),this.selected=!1),this.callback("onchange",[obj.get(0),_this])},toggle_branch:function(obj){return this.locked?this.error("LOCKED"):(obj=this.get_node(obj)).hasClass("closed")?this.open_branch(obj):obj.hasClass("open")?this.close_branch(obj):void 0},open_branch:function(obj,disable_animation,callback){var _this=this;if(this.locked)return this.error("LOCKED");if(!(obj=this.get_node(obj)).size())return this.error("OPEN: NO SUCH NODE");if(
obj.hasClass("leaf"))return this.error("OPEN: OPENING LEAF NODE");if(this.settings.data.async&&0==obj.find("li").size()){if(!1===this.callback("beforeopen",[obj.get(0),this]))return this.error("OPEN: STOPPED BY USER");obj.children("ul:eq(0)").remove().end().append("<ul><li class='last'><a class='loading' href='#'><ins>&nbsp;</ins>"+(_this.settings.lang.loading||"Loading ...")+"</a></li></ul>"),obj.removeClass("closed").addClass("open");var _datastore=new $.tree.datastores[this.settings.data.type];return _datastore.load(this.callback("beforedata",[obj,this]),this,this.settings.data.opts,function(data){return(data=_this.callback("ondata",[data,_this])
)&&0!=data.length?void _datastore.parse(data,_this,_this.settings.data.opts,function(str){str=_this.callback("onparse",[str,_this]),obj.children("ul:eq(0)").replaceWith($("<ul>").html(str)),obj.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"),obj.find("li").not(".open").not(".closed").addClass("leaf"),_this.open_branch.apply(_this,[obj]),callback&&callback.call()}):(obj.removeClass("closed").removeClass("open").addClass("leaf").children("ul").remove(),void(callback&&callback.call()))}),!0}return this.settings.data.async||!1!==this.callback("beforeopen",[obj.get(0),this])?(0<parseInt(this.settings.ui.animation
)&&!disable_animation?(obj.children("ul:eq(0)").css("display","none"),obj.removeClass("closed").addClass("open"),obj.children("ul:eq(0)").slideDown(parseInt(this.settings.ui.animation),function(){$(this).css("display",""),callback&&callback.call()})):(obj.removeClass("closed").addClass("open"),callback&&callback.call()),this.callback("onopen",[obj.get(0),this]),!0):this.error("OPEN: STOPPED BY USER")},close_branch:function(obj,disable_animation){if(this.locked)return this.error("LOCKED");var _this=this;return(obj=this.get_node(obj)).size()?!1===_this.callback("beforeclose",[obj.get(0),_this])?this.error("CLOSE: STOPPED BY USER"):(0<parseInt(
this.settings.ui.animation)&&!disable_animation&&1==obj.children("ul:eq(0)").size()?obj.children("ul:eq(0)").slideUp(parseInt(this.settings.ui.animation),function(){obj.hasClass("open")&&obj.removeClass("open").addClass("closed"),$(this).css("display","")}):obj.hasClass("open")&&obj.removeClass("open").addClass("closed"),this.selected&&!1!==this.settings.ui.selected_parent_close&&0<obj.children("ul:eq(0)").find("a.clicked").size()&&(obj.find("li:has(a.clicked)").each(function(){_this.deselect_branch(this)}),"select_parent"==this.settings.ui.selected_parent_close&&0==obj.children("a.clicked").size()&&this.select_branch(obj,
0!=this.settings.rules.multiple&&0<this.selected_arr.length)),void this.callback("onclose",[obj.get(0),this])):this.error("CLOSE: NO SUCH NODE")},open_all:function(obj,callback){if(this.locked)return this.error("LOCKED");var _this=this,s=(obj=obj?this.get_node(obj):this.container).find("li.closed").size();callback?this.cl_count--:this.cl_count=0,0<s?(this.cl_count+=s,obj.find("li.closed").each(function(){var __this=this;_this.open_branch.apply(_this,[this,!0,function(){_this.open_all.apply(_this,[__this,!0])}])})):0==this.cl_count&&this.callback("onopen_all",[this])},close_all:function(obj){if(this.locked)return this.error("LOCKED");var _this=this;(
obj=obj?this.get_node(obj):this.container).find("li.open").each(function(){_this.close_branch(this,!0)}),this.callback("onclose_all",[this])},set_lang:function(i){if(!$.isArray(this.settings.languages)||0==this.settings.languages.length)return!1;if(this.locked)return this.error("LOCKED");if($.inArray(i,this.settings.languages)||void 0===this.settings.languages[i]||(i=this.settings.languages[i]),void 0===i)return!1;if(i==this.current_lang)return!0;var st=!1,id="#"+this.container.attr("id");return!1!==(st=tree_component.get_css(id+" ."+this.current_lang))&&(st.style.display="none"),!1!==(st=tree_component.get_css(id+" ."+i))&&(st.style.display=""),
this.current_lang=i,!0},get_lang:function(){return!(!$.isArray(this.settings.languages)||0==this.settings.languages.length)&&this.current_lang},create:function(obj,ref_node,position){if(this.locked)return this.error("LOCKED");var root=!1;if(ref_node=-1==ref_node?(root=!0,this.container):ref_node?this.get_node(ref_node):this.selected,!(root||ref_node&&ref_node.size()))return this.error("CREATE: NO NODE SELECTED");var pos=position,r=ref_node;if("before"==position&&(position=ref_node.parent().children().index(ref_node),ref_node=ref_node.parents("li:eq(0)")),"after"==position&&(position=ref_node.parent().children().index(ref_node)+1,ref_node=ref_node.parents(
"li:eq(0)")),root||0!=ref_node.size()||(root=!0,ref_node=this.container),!root){if(!this.check("creatable",ref_node))return this.error("CREATE: CANNOT CREATE IN NODE");ref_node.hasClass("closed")&&this.open_branch(ref_node,!0)}var torename=!1;if((obj=obj?$.extend(!0,{},obj):{}).attributes||(obj.attributes={}),obj.attributes[this.settings.rules.type_attr]||(obj.attributes[this.settings.rules.type_attr]=this.get_type(r)||"default"),this.settings.languages.length){obj.data||(obj.data={},torename=!0);for(var i=0;i<this.settings.languages.length;i++)obj.data[this.settings.languages[i]]||(obj.data[this.settings.languages[i]]="string"!=(
typeof this.settings.lang.new_node).toLowerCase()&&this.settings.lang.new_node[i]?this.settings.lang.new_node[i]:this.settings.lang.new_node)}else obj.data||(obj.data=this.settings.lang.new_node,torename=!0);obj=this.callback("ondata",[obj,this]);var nod_type=$.tree.datastores.json().parse(obj,this),nod_type=this.callback("onparse",[nod_type,this]),$li=$(nod_type);$li.children("ul").size()?$li.is(".open")||$li.addClass("closed"):$li.addClass("leaf"),$li.find("li:last-child").addClass("last").end().find("li:has(ul)").not(".open").addClass("closed"),$li.find("li").not(".open").not(".closed").addClass("leaf");r={
max_depth:this.settings.rules.use_max_depth?this.check("max_depth",root?-1:ref_node):-1,max_children:this.settings.rules.use_max_children?this.check("max_children",root?-1:ref_node):-1,valid_children:this.check("valid_children",root?-1:ref_node)},nod_type=this.get_type($li);if(void 0!==r.valid_children&&("none"==r.valid_children||$.isArray(r.valid_children)&&-1==$.inArray(nod_type,r.valid_children)))return this.error("CREATE: NODE NOT A VALID CHILD");if(this.settings.rules.use_max_children&&void 0!==r.max_children&&-1!=r.max_children&&r.max_children>=this.children(ref_node).size())return this.error("CREATE: MAX_CHILDREN REACHED");if(
this.settings.rules.use_max_depth){if(void 0!==r.max_depth&&0===r.max_depth)return this.error("CREATE: MAX-DEPTH REACHED");for(var mx=0<r.max_depth&&r.max_depth,i=0,t=ref_node;-1!==t&&!root;){t=this.parent(t),i++;var m=this.check("max_depth",t);if(0<=m&&(mx=!1===mx?m-i:Math.min(mx,m-i)),!1!==mx&&mx<=0)return this.error("CREATE: MAX-DEPTH REACHED")}if(!1!==mx&&mx<=0)return this.error("CREATE: MAX-DEPTH REACHED");if(!1!==mx)for(var incr=1,t=$li;0<t.size();){if(mx-incr<0)return this.error("CREATE: MAX-DEPTH REACHED");t=t.children("ul").children("li"),incr++}}return"undefined"!=(typeof position).toLowerCase()&&"inside"!=position||(
position="top"==this.settings.rules.createat?0:ref_node.children("ul:eq(0)").children("li").size()),!1===(0==ref_node.children("ul").size()||1==root&&0==ref_node.children("ul").children("li").size()?root?this.moved($li,this.container.children("ul:eq(0)"),"inside",!0):this.moved($li,ref_node.children("a:eq(0)"),"inside",!0):"before"==pos&&ref_node.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved($li,ref_node.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before",!0):"after"==pos&&ref_node.children("ul:eq(0)").children("li:nth-child("+position+")").size()?this.moved($li,ref_node.children(
"ul:eq(0)").children("li:nth-child("+position+")").children("a:eq(0)"),"after",!0):ref_node.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved($li,ref_node.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before",!0):this.moved($li,ref_node.children("ul:eq(0)").children("li:last").children("a:eq(0)"),"after",!0))?this.error("CREATE: ABORTED"):(torename&&(this.select_branch($li.children("a:eq(0)")),this.rename()),$li)},rename:function(obj,spn){if(this.locked)return this.error("LOCKED");obj=obj?this.get_node(obj):this.selected;var _this=this;if(!obj||!obj.size())return this.error(
"RENAME: NO NODE SELECTED");if(!this.check("renameable",obj))return this.error("RENAME: NODE NOT RENAMABLE");if(!this.callback("beforerename",[obj.get(0),_this.current_lang,_this]))return this.error("RENAME: STOPPED BY USER");obj.parents("li.closed").each(function(){_this.open_branch(this)}),obj=this.current_lang?obj.find("a."+this.current_lang):obj.find("a:first");var rb={};rb[this.container.attr("id")]=this.get_rollback();var last_value,icn=obj.children("ins").clone();"string"==(typeof spn).toLowerCase()?(obj.text(spn).prepend(icn),_this.callback("onrename",[_this.get_node(obj).get(0),_this,rb])):(last_value="",obj.contents().each(function(){if(
3==this.nodeType)return last_value=this.data,!1}),_this.inp=$("<input type='text' autocomplete='off' />"),_this.inp.val(last_value.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")).on("mousedown",function(event){event.stopPropagation()}).on("mouseup",function(event){event.stopPropagation()}).on("click",function(event){event.stopPropagation()}).on("keyup",function(key){key=key.keyCode||key.which;if(27==key)return this.value=last_value,void this.blur();13==key&&this.blur()}),_this.inp.blur(function(event){""==this.value&&(this.value=last_value),obj.text(this.value).prepend(icn),obj.get(0).style.display="",obj.prevAll("span").remove(),
_this.inp=!1,_this.callback("onrename",[_this.get_node(obj).get(0),_this,rb])}),spn=$("<span />").addClass(obj.attr("class")).append(icn).append(_this.inp),obj.get(0).style.display="none",obj.parent().prepend(spn),_this.inp.get(0).focus(),_this.inp.get(0).select())},remove:function(obj){if(this.locked)return this.error("LOCKED");var reset_selected,_this=this,rb={};if(rb[this.container.attr("id")]=this.get_rollback(),!obj||this.selected&&this.get_node(obj).get(0)==this.selected.get(0)){if(!this.selected)return this.error("DELETE: NO NODE SELECTED");if(!this.check("deletable",this.selected))return this.error("DELETE: NODE NOT DELETABLE");if(!this.callback(
"beforedelete",[this.selected.get(0),_this]))return this.error("DELETE: STOPPED BY USER");$parent=this.selected.parent();var stop,tmp,obj=this.selected;0!=this.settings.rules.multiple&&1!=this.selected_arr.length||(stop=!0,tmp="select_previous"==this.settings.ui.selected_delete&&this.prev(this.selected)),obj=obj.remove(),$parent.children("li:last").addClass("last"),0==$parent.children("li").size()&&($li=$parent.parents("li:eq(0)"),$li.removeClass("open").removeClass("closed").addClass("leaf").children("ul").remove()),stop||0==this.settings.rules.multiple||((_this=this).selected_arr=[],this.container.find("a.clicked").filter(":first-child").parent().each(
function(){_this.selected_arr.push($(this))}),0<this.selected_arr.length&&(this.selected=this.selected_arr[0],this.remove())),stop&&tmp&&this.select_branch(tmp),this.callback("ondelete",[obj.get(0),this,rb])}else{if((obj=this.get_node(obj)).size())return this.check("deletable",obj)?this.callback("beforedelete",[obj.get(0),_this])?($parent=obj.parent(),obj.find("a.clicked").size()&&(reset_selected=!1,_this.selected_arr=[],this.container.find("a.clicked").filter(":first-child").parent().each(function(){return reset_selected||this!=_this.selected.get(0)||(reset_selected=!0),-1!=$(this).parents().index(obj)||void _this.selected_arr.push($(this))}),
reset_selected&&(this.selected=this.selected_arr[0]||!1)),obj=obj.remove(),$parent.children("li:last").addClass("last"),0==$parent.children("li").size()&&($li=$parent.parents("li:eq(0)"),$li.removeClass("open").removeClass("closed").addClass("leaf").children("ul").remove()),void this.callback("ondelete",[obj.get(0),this,rb])):this.error("DELETE: STOPPED BY USER"):this.error("DELETE: NODE NOT DELETABLE")}},next:function(obj,strict){return!!(obj=this.get_node(obj)).size()&&(strict?0<obj.nextAll("li").size()&&obj.nextAll("li:eq(0)"):obj.hasClass("open")?obj.find("li:eq(0)"):0<obj.nextAll("li").size()?obj.nextAll("li:eq(0)"):obj.parents("li").next("li").eq(0))},
prev:function(obj,strict){if(!(obj=this.get_node(obj)).size())return!1;if(strict)return 0<obj.prevAll("li").size()&&obj.prevAll("li:eq(0)");if(obj.prev("li").size()){for(obj=obj.prev("li").eq(0);obj.hasClass("open");)obj=obj.children("ul:eq(0)").children("li:last");return obj}return!!obj.parents("li:eq(0)").size()&&obj.parents("li:eq(0)")},parent:function(obj){return!!(obj=this.get_node(obj)).size()&&(obj.parents("li:eq(0)").size()?obj.parents("li:eq(0)"):-1)},children:function(obj){return-1===obj?this.container.children("ul:eq(0)").children("li"):!!(obj=this.get_node(obj)).size()&&obj.children("ul:eq(0)").children("li")},toggle_dots:function(){
this.settings.ui.dots?(this.settings.ui.dots=!1,this.container.children("ul:eq(0)").addClass("no_dots")):(this.settings.ui.dots=!0,this.container.children("ul:eq(0)").removeClass("no_dots"))},callback:function(cb,args){var i,p=!1,r=null;for(i in this.settings.plugins)if("object"==typeof $.tree.plugins[i]&&((p=$.tree.plugins[i]).callbacks&&"function"==typeof p.callbacks[cb]&&(r=p.callbacks[cb].apply(this,args)),null!=r)){if("ondata"!=cb&&"onparse"!=cb)return r;args[0]=r}if("function"==typeof(p=this.settings.callback[cb]))return p.apply(null,args)},get_rollback:function(){var rb={};return rb.html=this.container.html(),
rb.selected=!!this.selected&&this.selected.attr("id"),rb},moved:function(what,where,how,is_new,is_copy,rb){var $li,what=$(what),$parent=$(what).parents("ul:eq(0)"),$where=$(where);if($where.is("ins")&&($where=$where.parent()),rb||((rb={})[this.container.attr("id")]=this.get_rollback(),is_new||((tmp=(1<what.size()?what.eq(0):what).parents(".tree:eq(0)")).get(0)!=this.container.get(0)&&(tmp=tree_component.inst[tmp.attr("id")],rb[tmp.container.attr("id")]=tmp.get_rollback()),delete tmp)),"inside"==how&&this.settings.data.async){var _this=this;if(this.get_node($where).hasClass("closed"))return this.open_branch(this.get_node($where),!0,function(){
_this.moved.apply(_this,[what,where,how,is_new,is_copy,rb])});if(1==this.get_node($where).find("> ul > li > a.loading").size())return void setTimeout(function(){_this.moved.apply(_this,[what,where,how,is_new,is_copy])},200)}if(1<what.size()){var _this=this,tmp=this.moved(what.eq(0),where,how,!1,is_copy,rb);return what.each(function(i){0!=i&&(tmp=tmp&&_this.moved(this,tmp.children("a:eq(0)"),"after",!1,is_copy,rb))}),what}if(is_copy?(_what=what.clone(),_what.each(function(i){this.id=this.id+"_copy",$(this).find("li").each(function(){this.id=this.id+"_copy"}),$(this).removeClass("dragged").find("a.clicked").removeClass("clicked").end().find("li.dragged"
).removeClass("dragged")})):_what=what,is_new){if(!this.callback("beforecreate",[this.get_node(what).get(0),this.get_node(where).get(0),how,this]))return!1}else if(!this.callback("beforemove",[this.get_node(what).get(0),this.get_node(where).get(0),how,this]))return!1;if(!is_new&&(tmp=what.parents(".tree:eq(0)")).get(0)!=this.container.get(0)){if((tmp=tree_component.inst[tmp.attr("id")]).settings.languages.length){var res=[];if(0==this.settings.languages.length)res.push("."+tmp.current_lang);else for(var i in this.settings.languages)if(this.settings.languages.hasOwnProperty(i))for(var j in tmp.settings.languages)tmp.settings.languages.hasOwnProperty(j
)&&this.settings.languages[i]==tmp.settings.languages[j]&&res.push("."+this.settings.languages[i]);if(0==res.length)return this.error("MOVE: NO COMMON LANGUAGES");_what.find("a").not(res.join(",")).remove()}_what.find("a.clicked").removeClass("clicked")}switch(what=_what,how){case"before":$where.parents("ul:eq(0)").children("li.last").removeClass("last"),$where.parent().before(what.removeClass("last")),$where.parents("ul:eq(0)").children("li:last").addClass("last");break;case"after":$where.parents("ul:eq(0)").children("li.last").removeClass("last"),$where.parent().after(what.removeClass("last")),$where.parents("ul:eq(0)").children("li:last").addClass("last")
;break;case"inside":$where.parent().children("ul:first").size()?"top"==this.settings.rules.createat?($where.parent().children("ul:first").prepend(what.removeClass("last")).children("li:last").addClass("last"),($li=$where.parent().children("ul:first").children("li:first")).size()&&(how="before",where=$li)):(($li=$where.parent().children("ul:first").children(".last")).size()&&(how="after",where=$li),$where.parent().children("ul:first").children(".last").removeClass("last").end().append(what.removeClass("last")).children("li:last").addClass("last")):(what.addClass("last"),$where.parent().removeClass("leaf").append("<ul/>"),$where.parent().hasClass("open"
)||$where.parent().addClass("closed"),$where.parent().children("ul:first").prepend(what)),$where.parent().hasClass("closed")&&this.open_branch($where)}return 0==$parent.find("li").size()?(($li=$parent.parent()).removeClass("open").removeClass("closed").addClass("leaf"),$li.is(".tree")||$li.children("ul").remove(),$li.parents("ul:eq(0)").children("li.last").removeClass("last").end().children("li:last").addClass("last")):($parent.children("li.last").removeClass("last"),$parent.children("li:last").addClass("last")),is_copy?this.callback("oncopy",[this.get_node(what).get(0),this.get_node(where).get(0),how,this,rb]):is_new?this.callback("oncreate",[this.get_node(
what).get(0),$where.is("ul")?-1:this.get_node(where).get(0),how,this,rb]):this.callback("onmove",[this.get_node(what).get(0),this.get_node(where).get(0),how,this,rb]),what},error:function(code){return this.callback("error",[code,this]),!1},lock:function(state){this.locked=state,this.locked?this.container.children("ul:eq(0)").addClass("locked"):this.container.children("ul:eq(0)").removeClass("locked")},cut:function(obj){return this.locked?this.error("LOCKED"):(obj=obj?this.get_node(obj):this.container.find("a.clicked").filter(":first-child").parent())&&obj.size()?(tree_component.cut_copy.copy_nodes=!1,void(tree_component.cut_copy.cut_nodes=obj)):this.error(
"CUT: NO NODE SELECTED")},copy:function(obj){return this.locked?this.error("LOCKED"):(obj=obj?this.get_node(obj):this.container.find("a.clicked").filter(":first-child").parent())&&obj.size()?(tree_component.cut_copy.copy_nodes=obj,void(tree_component.cut_copy.cut_nodes=!1)):this.error("COPY: NO NODE SELECTED")},paste:function(obj,position){if(this.locked)return this.error("LOCKED");var root=!1;if(obj=-1==obj?(root=!0,this.container):obj?this.get_node(obj):this.selected,!(root||obj&&obj.size()))return this.error("PASTE: NO NODE SELECTED");if(!tree_component.cut_copy.copy_nodes&&!tree_component.cut_copy.cut_nodes)return this.error("PASTE: NOTHING TO DO")
;var pos=position;if("before"==position?(position=obj.parent().children().index(obj),obj=obj.parents("li:eq(0)")):"after"==position?(position=obj.parent().children().index(obj)+1,obj=obj.parents("li:eq(0)")):"undefined"!=(typeof position).toLowerCase()&&"inside"!=position||(position="top"==this.settings.rules.createat?0:obj.children("ul:eq(0)").children("li").size()),root||0!=obj.size()||(root=!0,obj=this.container),tree_component.cut_copy.copy_nodes&&tree_component.cut_copy.copy_nodes.size()){var ok=!0;if(!root&&!this.check_move(tree_component.cut_copy.copy_nodes,obj.children("a:eq(0)"),"inside"))return!1;0==obj.children("ul").size(
)||1==root&&0==obj.children("ul").children("li").size()?root?this.moved(tree_component.cut_copy.copy_nodes,this.container.children("ul:eq(0)"),"inside",!1,!0):this.moved(tree_component.cut_copy.copy_nodes,obj.children("a:eq(0)"),"inside",!1,!0):"before"==pos&&obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before",!1,!0):"after"==pos&&obj.children("ul:eq(0)").children("li:nth-child("+position+")").size()?this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children(
"li:nth-child("+position+")").children("a:eq(0)"),"after",!1,!0):obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before",!1,!0):this.moved(tree_component.cut_copy.copy_nodes,obj.children("ul:eq(0)").children("li:last").children("a:eq(0)"),"after",!1,!0),tree_component.cut_copy.copy_nodes=!1}if(tree_component.cut_copy.cut_nodes&&tree_component.cut_copy.cut_nodes.size()){ok=!0;return(obj.parents().addBack().each(function(){if(-1!=tree_component.cut_copy.cut_nodes.index(this))return ok=!1}),ok)?!(
!root&&!this.check_move(tree_component.cut_copy.cut_nodes,obj.children("a:eq(0)"),"inside"))&&(0==obj.children("ul").size()||1==root&&0==obj.children("ul").children("li").size()?root?this.moved(tree_component.cut_copy.cut_nodes,this.container.children("ul:eq(0)"),"inside"):this.moved(tree_component.cut_copy.cut_nodes,obj.children("a:eq(0)"),"inside"):"before"==pos&&obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved(tree_component.cut_copy.cut_nodes,obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before"):"after"==pos&&obj.children("ul:eq(0)").children("li:nth-child("+position+")"
).size()?this.moved(tree_component.cut_copy.cut_nodes,obj.children("ul:eq(0)").children("li:nth-child("+position+")").children("a:eq(0)"),"after"):obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").size()?this.moved(tree_component.cut_copy.cut_nodes,obj.children("ul:eq(0)").children("li:nth-child("+(position+1)+")").children("a:eq(0)"),"before"):this.moved(tree_component.cut_copy.cut_nodes,obj.children("ul:eq(0)").children("li:last").children("a:eq(0)"),"after"),void(tree_component.cut_copy.cut_nodes=!1)):this.error("Invalid paste")}},search:function(str,func){var _this=this;if((!str||this.srch&&str!=this.srch)&&(this.srch="",
this.srch_opn=!1,this.container.find("a.search").removeClass("search")),this.srch=str)if(func=func||"contains",this.settings.data.async)if(this.srch_opn)if(this.srch_opn.length){if(this.srch_opn&&this.srch_opn.length){for(var tmp,opn=!1,j=0;j<this.srch_opn.length;j++){0<this.get_node("#"+this.srch_opn[j]).size()&&(opn=!0,tmp="#"+this.srch_opn[j],delete this.srch_opn[j],this.open_branch(tmp,!0,function(){_this.search.apply(_this,[str,func])}))}opn||(this.srch_opn=[],_this.search.apply(_this,[str,func]))}}else{this.srch_opn=!1;var nn="a";this.settings.languages.length&&(nn+="."+this.current_lang),this.callback("onsearch",[this.container.find(
nn+":"+func+"('"+str+"')"),this])}else{var dd=$.extend({search:str},this.callback("beforedata",[!1,this]));$.ajax({type:this.settings.data.opts.method,url:this.settings.data.opts.url,data:dd,dataType:"text",success:function(data){_this.srch_opn=$.unique(data.split(",")),_this.search.apply(_this,[str,func])}})}else{nn="a";this.settings.languages.length&&(nn+="."+this.current_lang);nn=this.container.find(nn+":"+func+"('"+str+"')");nn.parents("li.closed").each(function(){_this.open_branch(this,!0)}),this.callback("onsearch",[nn,this])}},add_sheet:tree_component.add_sheet,destroy:function(){if(this.callback("ondestroy",[this]),this.container.off(".jstree"),$(
"#"+this.container.attr("id")).off("*.jstree"),this.container.removeClass("tree ui-widget ui-widget-content tree-default tree-"+this.settings.ui.theme_name).children("ul").removeClass("no_dots ltr locked").find("li").removeClass("leaf").removeClass("open").removeClass("closed").removeClass("last").children("a").removeClass("clicked hover search"),this.cntr==tree_component.focused)for(var i in tree_component.inst)if(i!=this.cntr&&i!=this.container.attr("id")){tree_component.inst[i].focus();break}tree_component.inst[this.cntr]=!1,tree_component.inst[this.container.attr("id")]=!1,delete tree_component.inst[this.cntr],
delete tree_component.inst[this.container.attr("id")],tree_component.cntr--}}}$.tree={datastores:{},plugins:{},defaults:{data:{async:!1,type:"html",opts:{method:"GET",url:!1}},selected:!1,opened:[],languages:[],ui:{dots:!0,animation:0,scroll_spd:4,theme_path:!1,theme_name:"default",selected_parent_close:"select_parent",selected_delete:"select_previous"},types:{default:{clickable:!0,renameable:!0,deletable:!0,creatable:!0,draggable:!0,max_children:-1,max_depth:-1,valid_children:"all",icon:{image:!1,position:!1}}},rules:{multiple:!1,multitree:"none",type_attr:"rel",createat:"bottom",drag_copy:"ctrl",drag_button:"left",use_max_children:!0,use_max_depth:!0,
max_children:-1,max_depth:-1,valid_children:"all"},lang:{new_node:"New folder",loading:"Loading ..."},callback:{beforechange:function(NODE,TREE_OBJ){return!0},beforeopen:function(NODE,TREE_OBJ){return!0},beforeclose:function(NODE,TREE_OBJ){return!0},beforemove:function(NODE,REF_NODE,TYPE,TREE_OBJ){return!0},beforecreate:function(NODE,REF_NODE,TYPE,TREE_OBJ){return!0},beforerename:function(NODE,LANG,TREE_OBJ){return!0},beforedelete:function(NODE,TREE_OBJ){return!0},beforedata:function(NODE,TREE_OBJ){return{id:$(NODE).attr("id")||0}},ondata:function(DATA,TREE_OBJ){return DATA},onparse:function(STR,TREE_OBJ){return STR},onhover:function(NODE,TREE_OBJ){},
onselect:function(NODE,TREE_OBJ){},ondeselect:function(NODE,TREE_OBJ){},onchange:function(NODE,TREE_OBJ){},onrename:function(NODE,TREE_OBJ,RB){},onmove:function(NODE,REF_NODE,TYPE,TREE_OBJ,RB){},oncopy:function(NODE,REF_NODE,TYPE,TREE_OBJ,RB){},oncreate:function(NODE,REF_NODE,TYPE,TREE_OBJ,RB){},ondelete:function(NODE,TREE_OBJ,RB){},onopen:function(NODE,TREE_OBJ){},onopen_all:function(TREE_OBJ){},onclose_all:function(TREE_OBJ){},onclose:function(NODE,TREE_OBJ){},error:function(TEXT,TREE_OBJ){},ondblclk:function(NODE,TREE_OBJ){TREE_OBJ.toggle_branch.call(TREE_OBJ,NODE),TREE_OBJ.select_branch.call(TREE_OBJ,NODE)},onrgtclk:function(NODE,TREE_OBJ,EV){},
onload:function(TREE_OBJ){},oninit:function(TREE_OBJ){},onfocus:function(TREE_OBJ){},ondestroy:function(TREE_OBJ){},onsearch:function(NODES,TREE_OBJ){NODES.addClass("search")},ondrop:function(NODE,REF_NODE,TYPE,TREE_OBJ){},check:function(RULE,NODE,VALUE,TREE_OBJ){return VALUE},check_move:function(NODE,REF_NODE,TYPE,TREE_OBJ){return!0}},plugins:{}},create:function(){return new tree_component},focused:function(){return tree_component.inst[tree_component.focused]},reference:function(obj){var o=$(obj);return o.size()||(o=$("#"+obj)),o.size()?(o=(o.is(".tree")?o:o.parents(".tree:eq(0)")).attr("id"),tree_component.inst[o]||null):null},rollback:function(data){for(
var i in data){var tmp,lock;data.hasOwnProperty(i)&&((lock=!(tmp=tree_component.inst[i]).locked)&&tmp.lock(!0),tmp.inp=!1,tmp.container.html(data[i].html).find(".dragged").removeClass("dragged").end().find(".hover").removeClass("hover"),data[i].selected&&(tmp.selected=$("#"+data[i].selected),tmp.selected_arr=[],tmp.container.find("a.clicked").each(function(){tmp.selected_arr.push(tmp.get_node(this))})),lock&&tmp.lock(!1),delete lock,delete tmp)}},drop_mode:function(opts){opts=$.extend(opts,{show:!1,type:"default",str:"Foreign node"}),tree_component.drag_drop.foreign=!0,tree_component.drag_drop.isdown=!0,tree_component.drag_drop.moving=!0,
tree_component.drag_drop.appended=!1,tree_component.drag_drop.f_type=opts.type,(tree_component.drag_drop.f_data=opts).show?(tree_component.drag_drop.drag_help=$("<div id='jstree-dragged' class='tree tree-default'><ul><li class='last dragged foreign'><a href='#'><ins>&nbsp;</ins>"+opts.str+"</a></li></ul></div>"),tree_component.drag_drop.drag_node=tree_component.drag_drop.drag_help.find("li:eq(0)")):(tree_component.drag_drop.drag_help=!1,tree_component.drag_drop.drag_node=!1),!1!==$.tree.drag_start&&$.tree.drag_start.call(null,!1)},drag_start:!1,drag:!1,drag_end:!1},$.fn.tree=function(opts){return this.each(function(){var conf=$.extend({},opts)
;tree_component.inst&&tree_component.inst[$(this).attr("id")]&&tree_component.inst[$(this).attr("id")].destroy(),!1!==conf&&(new tree_component).init(this,conf)})},tree_component.cntr=0,tree_component.inst={},tree_component.themes=[],tree_component.drag_drop={isdown:!1,drag_node:!1,drag_help:!1,dragged:!1,init_x:!1,init_y:!1,moving:!1,origin_tree:!1,marker:!1,move_type:!1,ref_node:!1,appended:!1,foreign:!1,droppable:[],open_time:!1,scroll_time:!1},tree_component.mouseup=function(event){var tree1,tmp=tree_component.drag_drop;if(tmp.open_time&&clearTimeout(tmp.open_time),tmp.scroll_time&&clearTimeout(tmp.scroll_time),
tmp.moving&&!1!==$.tree.drag_end&&$.tree.drag_end.call(null,event,tmp),!1===tmp.foreign&&tmp.drag_node&&tmp.drag_node.size()&&(tmp.drag_help.remove(),tmp.move_type&&(tree1=tree_component.inst[tmp.ref_node.parents(".tree:eq(0)").attr("id")])&&tree1.moved(tmp.dragged,tmp.ref_node,tmp.move_type,!1,"on"==tmp.origin_tree.settings.rules.drag_copy||"ctrl"==tmp.origin_tree.settings.rules.drag_copy&&event.ctrlKey),tmp.move_type=!1,tmp.ref_node=!1),!1!==tmp.foreign&&(tmp.drag_help&&tmp.drag_help.remove(),tmp.move_type&&(tree1=tree_component.inst[tmp.ref_node.parents(".tree:eq(0)").attr("id")])&&tree1.callback("ondrop",[tmp.f_data,tree1.get_node(tmp.ref_node).get(0),
tmp.move_type,tree1]),tmp.foreign=!1,tmp.move_type=!1,tmp.ref_node=!1),tree_component.drag_drop.marker&&tree_component.drag_drop.marker.hide(),tmp.dragged&&tmp.dragged.size()&&tmp.dragged.removeClass("dragged"),tmp.dragged=!1,tmp.drag_help=!1,tmp.drag_node=!1,tmp.f_type=!1,tmp.f_data=!1,tmp.init_x=!1,tmp.init_y=!1,tmp.moving=!1,tmp.appended=!1,tmp.origin_tree=!1,tmp.isdown)return tmp.isdown=!1,event.preventDefault(),event.stopPropagation(),!1},tree_component.mousemove=function(event){var tmp=tree_component.drag_drop,arr=!1;if(tmp.isdown){if(!tmp.moving&&Math.abs(tmp.init_x-event.pageX)<5&&Math.abs(tmp.init_y-event.pageY)<5)return event.preventDefault(),
event.stopPropagation(),!1;if(tmp.moving||(arr=tree_component.drag_drop.moving=!0),tmp.open_time&&clearTimeout(tmp.open_time),!1!==tmp.drag_help&&(tmp.appended||(!1!==tmp.foreign&&(tmp.origin_tree=$.tree.focused()),$("body").append(tmp.drag_help),tmp.w=tmp.drag_help.width(),tmp.appended=!0),tmp.drag_help.css({left:event.pageX+5,top:event.pageY+15})),arr&&!1!==$.tree.drag_start&&$.tree.drag_start.call(null,event,tmp),!1!==$.tree.drag&&$.tree.drag.call(null,event,tmp),"DIV"==event.target.tagName&&"jstree-marker"==event.target.id)return!1;var et=$(event.target);et.is("ins")&&(et=et.parent());var cnt=et.is(".tree")?et:et.parents(".tree:eq(0)");if(0==cnt.size(
)||!tree_component.inst[cnt.attr("id")])return tmp.scroll_time&&clearTimeout(tmp.scroll_time),!1!==tmp.drag_help&&tmp.drag_help.find("li:eq(0) ins").addClass("forbidden"),tmp.move_type=!1,tmp.ref_node=!1,tree_component.drag_drop.marker.hide(),!1;var tree2=tree_component.inst[cnt.attr("id")];tree2.off_height(),tmp.scroll_time&&clearTimeout(tmp.scroll_time),tmp.scroll_time=setTimeout(function(){tree2.scroll_check(event.pageX,event.pageY)},50);var mov=!1;cnt.scrollTop();if("A"==event.target.tagName||"INS"==event.target.tagName){if(et.is("#jstree-dragged"))return!1;tree2.get_node(event.target).hasClass("closed")&&(tmp.open_time=setTimeout(function(){
tree2.open_branch(et)},500));var et_off,goTo={x:(et_off=et.offset()).left-1,y:event.pageY-et_off.top},arr=[],arr=goTo.y<tree2.li_height/3+1?["before","inside","after"]:goTo.y>2*tree2.li_height/3-1?["after","inside","before"]:goTo.y<tree2.li_height/2?["inside","before","after"]:["inside","after","before"],ok=!1,nn=0==tmp.foreign?tmp.origin_tree.container.find("li.dragged"):tmp.f_type;if($.each(arr,function(i,val){if(tree2.check_move(nn,et,val))return mov=val,!(ok=!0)}),ok){switch(mov){case"before":goTo.y=et_off.top-2,tree_component.drag_drop.marker.attr("class","marker");break;case"after":goTo.y=et_off.top-2+tree2.li_height,
tree_component.drag_drop.marker.attr("class","marker");break;case"inside":goTo.x-=2,goTo.y=et_off.top-2+tree2.li_height/2,tree_component.drag_drop.marker.attr("class","marker_plus")}tmp.move_type=mov,tmp.ref_node=$(event.target),!1!==tmp.drag_help&&tmp.drag_help.find(".forbidden").removeClass("forbidden"),tree_component.drag_drop.marker.css({left:goTo.x,top:goTo.y}).show()}}return(et.is(".tree")||et.is("ul"))&&0==et.find("li:eq(0)").size()?(et_off=et.offset(),tmp.move_type="inside",tmp.ref_node=cnt.children("ul:eq(0)"),!1!==tmp.drag_help&&tmp.drag_help.find(".forbidden").removeClass("forbidden"),tree_component.drag_drop.marker.attr("class","marker_plus"),
tree_component.drag_drop.marker.css({left:et_off.left+10,top:et_off.top+15}).show()):("A"==event.target.tagName||"INS"==event.target.tagName)&&ok||(!1!==tmp.drag_help&&tmp.drag_help.find("li:eq(0) ins").addClass("forbidden"),tmp.move_type=!1,tmp.ref_node=!1,tree_component.drag_drop.marker.hide()),event.preventDefault(),event.stopPropagation(),!1}return!0},$(function(){$(document).on("mousemove.jstree",tree_component.mousemove),$(document).on("mouseup.jstree",tree_component.mouseup)}),tree_component.cut_copy={copy_nodes:!1,cut_nodes:!1},tree_component.css=!1,tree_component.get_css=function(rule_name,delete_flag){rule_name=rule_name.toLowerCase()
;var css_rules=tree_component.css.cssRules||tree_component.css.rules,j=0;do{if(css_rules.length&&j>css_rules.length+5)return!1;if(css_rules[j].selectorText&&css_rules[j].selectorText.toLowerCase()==rule_name)return 1==delete_flag?(tree_component.css.removeRule&&document.styleSheets[i].removeRule(j),tree_component.css.deleteRule&&document.styleSheets[i].deleteRule(j),!0):css_rules[j]}while(css_rules[++j]);return!1},tree_component.add_css=function(rule_name){return!tree_component.get_css(rule_name)&&(tree_component.css.insertRule?tree_component.css.insertRule(rule_name+" { }",0):tree_component.css.addRule(rule_name,null,0),tree_component.get_css(rule_name))},
tree_component.remove_css=function(rule_name){return tree_component.get_css(rule_name,!0)},tree_component.add_sheet=function(opts){if(opts.str){var newSS=document.createElement("style");return newSS.setAttribute("type","text/css"),newSS.styleSheet?(document.getElementsByTagName("head")[0].appendChild(newSS),newSS.styleSheet.cssText=opts.str):(newSS.appendChild(document.createTextNode(opts.str)),document.getElementsByTagName("head")[0].appendChild(newSS)),newSS.sheet||newSS.styleSheet}if(opts.url){if(!document.createStyleSheet){newSS=document.createElement("link");return newSS.rel="stylesheet",newSS.type="text/css",newSS.media="all",newSS.href=opts.url,
document.getElementsByTagName("head")[0].appendChild(newSS),newSS.styleSheet}try{document.createStyleSheet(opts.url)}catch(e){}}},$.extend($.tree.datastores,{html:function(){return{get:function(obj,tree,opts){return(obj&&$(obj).size()?$("<div>").append(tree.get_node(obj).clone()):tree.container.children("ul:eq(0)")).html()},parse:function(data,tree,opts,callback){return callback&&callback.call(null,data),data},load:function(data,tree,opts,callback){opts.url?$.ajax({type:opts.method,url:opts.url,data:data,dataType:"html",success:function(d,textStatus){callback.call(null,d)},error:function(xhttp,textStatus,errorThrown){callback.call(null,!1),tree.error(
errorThrown+" "+textStatus)}}):callback.call(null,opts.static||tree.container.children("ul:eq(0)").html())}}},json:function(){return{get:function(obj,tree,opts){var _this=this;if(obj=obj&&0!=$(obj).size()?$(obj):tree.container.children("ul").children("li"),(opts=opts||{}).outer_attrib||(opts.outer_attrib=["id","rel","class"]),opts.inner_attrib||(opts.inner_attrib=[]),1<obj.size()){var arr=[];return obj.each(function(){arr.push(_this.get(this,tree,opts))}),arr}if(0==obj.size())return[];var json={attributes:{},data:{}};for(i in obj.hasClass("open")&&(json.data.state="open"),obj.hasClass("closed")&&(json.data.state="closed"),opts.outer_attrib){
opts.outer_attrib.hasOwnProperty(i)&&(void 0!==(val="class"==opts.outer_attrib[i]?obj.attr(opts.outer_attrib[i]).replace(/(^| )last( |$)/gi," ").replace(/(^| )(leaf|closed|open)( |$)/gi," "):obj.attr(opts.outer_attrib[i]))&&0<val.toString().replace(" ","").length&&(json.attributes[opts.outer_attrib[i]]=val),delete val)}if(tree.settings.languages.length){for(var i in tree.settings.languages)if(tree.settings.languages.hasOwnProperty(i)){var a=obj.children("a."+tree.settings.languages[i]);if(opts.force||opts.inner_attrib.length||a.children("ins").get(0).style.backgroundImage.toString().length||a.children("ins").get(0).className.length){if(
json.data[tree.settings.languages[i]]={},json.data[tree.settings.languages[i]].title=tree.get_text(obj,tree.settings.languages[i]),a.children("ins").get(0).style.className.length&&(json.data[tree.settings.languages[i]].icon=a.children("ins").get(0).style.className),a.children("ins").get(0).style.backgroundImage.length&&(json.data[tree.settings.languages[i]].icon=a.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","")),opts.inner_attrib.length)for(var j in json.data[tree.settings.languages[i]].attributes={},opts.inner_attrib){opts.inner_attrib.hasOwnProperty(j)&&(void 0!==(val=a.attr(opts.inner_attrib[j]))&&0<val.toString().replace(
" ","").length&&(json.data[tree.settings.languages[i]].attributes[opts.inner_attrib[j]]=val),delete val)}}else json.data[tree.settings.languages[i]]=tree.get_text(obj,tree.settings.languages[i])}}else{var val,a=obj.children("a");if(json.data.title=tree.get_text(obj),a.children("ins").size()&&a.children("ins").get(0).className.length&&(json.data.icon=a.children("ins").get(0).className),a.children("ins").size()&&a.children("ins").get(0).style.backgroundImage.length&&(json.data.icon=a.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","")),opts.inner_attrib.length)for(var j in json.data.attributes={},opts.inner_attrib){
opts.inner_attrib.hasOwnProperty(j)&&(void 0!==(val=a.attr(opts.inner_attrib[j]))&&0<val.toString().replace(" ","").length&&(json.data.attributes[opts.inner_attrib[j]]=val),delete val)}}return 0<obj.children("ul").size()&&(json.children=[],obj.children("ul").children("li").each(function(){json.children.push(_this.get(this,tree,opts))})),json},parse:function(data,tree,opts,callback){if("[object Array]"===Object.prototype.toString.apply(data)){for(var str="",i=0;i<data.length;i++)"function"!=typeof data[i]&&(str+=this.parse(data[i],tree,opts));return callback&&callback.call(null,str),str}if(!data||!data.data)return callback&&callback.call(null,!1),"";str=""
;str+="<li ";var cls=!1;if(data.attributes)for(var i in data.attributes)data.attributes.hasOwnProperty(i)&&("class"==i?(str+=" class='"+data.attributes[i]+" ","closed"!=data.state&&"open"!=data.state||(str+=" "+data.state+" "),str+="' ",cls=!0):str+=" "+i+"='"+data.attributes[i]+"' ");if(cls||"closed"!=data.state&&"open"!=data.state||(str+=" class='"+data.state+"' "),str+=">",tree.settings.languages.length)for(i=0;i<tree.settings.languages.length;i++){if((attr={href:"",style:""}).class=tree.settings.languages[i],data.data[tree.settings.languages[i]]&&"undefined"!=(typeof data.data[tree.settings.languages[i]].attributes).toLowerCase())for(
var j in data.data[tree.settings.languages[i]].attributes)data.data[tree.settings.languages[i]].attributes.hasOwnProperty(j)&&("style"==j||"class"==j?attr[j]+=" "+data.data[tree.settings.languages[i]].attributes[j]:attr[j]=data.data[tree.settings.languages[i]].attributes[j]);for(j in str+="<a",attr)attr.hasOwnProperty(j)&&(str+=" "+j+'="'+attr[j]+'" ');str+=">",data.data[tree.settings.languages[i]]&&data.data[tree.settings.languages[i]].icon?str+="<ins "+(-1==data.data[tree.settings.languages[i]].icon.indexOf("/")?" class='"+data.data[tree.settings.languages[i]].icon+"' ":" style='background-image:url(\""+data.data[tree.settings.languages[i]].icon+"\");' "
)+">&nbsp;</ins>":str+="<ins>&nbsp;</ins>",str+=("undefined"!=(typeof data.data[tree.settings.languages[i]].title).toLowerCase()?data.data[tree.settings.languages[i]].title:data.data[tree.settings.languages[i]])+"</a>"}else{var attr={href:"",style:"",class:""};if("undefined"!=(typeof data.data.attributes).toLowerCase())for(var i in data.data.attributes)data.data.attributes.hasOwnProperty(i)&&("style"==i||"class"==i?attr[i]+=" "+data.data.attributes[i]:attr[i]=data.data.attributes[i]);for(i in str+="<a",attr)attr.hasOwnProperty(i)&&(str+=" "+i+'="'+attr[i]+'" ');str+=">",data.data.icon?str+="<ins "+(-1==data.data.icon.indexOf("/"
)?" class='"+data.data.icon+"' ":" style='background-image:url(\""+data.data.icon+"\");' ")+">&nbsp;</ins>":str+="<ins>&nbsp;</ins>",str+=("undefined"!=(typeof data.data.title).toLowerCase()?data.data.title:data.data)+"</a>"}if(data.children&&data.children.length){str+="<ul>";for(i=0;i<data.children.length;i++)str+=this.parse(data.children[i],tree,opts);str+="</ul>"}return str+="</li>",callback&&callback.call(null,str),str},load:function(data,tree,opts,callback){opts.static?callback.call(null,opts.static):$.ajax({type:opts.method,url:opts.url,data:data,dataType:"json",success:function(d,textStatus){callback.call(null,d)},error:function(xhttp,textStatus,
errorThrown){callback.call(null,!1),tree.error(errorThrown+" "+textStatus)}})}}}})}),define("lib/jsTree/plugins/jquery.tree.checkbox",["jquery","jquery.tree"],function($){$.extend($.tree.plugins,{checkbox:{defaults:{three_state:!0},get_checked:function(t){return(t=t||$.tree.focused()).container.find("a.checked").parent()},get_undeterminded:function(t){return(t=t||$.tree.focused()).container.find("a.undetermined").parent()},get_unchecked:function(t){return(t=t||$.tree.focused()).container.find("a:not(.checked, .undetermined)").parent()},check:function(n){if(!n)return!1;var t=$.tree.reference(n);return!1!==t.callback("beforecheck",[n,t])&&((n=t.get_node(n)
).hasClass("node-class")&&n.hasClass("closed")?(t.open_branch(n),!1):(n.children("a").hasClass("checked")||($.extend(!0,{},$.tree.plugins.checkbox.defaults,t.settings.plugins.checkbox).three_state?(n.find("li").addBack().children("a").removeClass("unchecked undetermined").addClass("checked"),n.parents("li").each(function(){return 0<$(this).children("ul").find("a:not(.checked):eq(0)").size()?($(this).parents("li").addBack().children("a").removeClass("unchecked checked").addClass("undetermined"),!1):void $(this).children("a").removeClass("unchecked undetermined").addClass("checked")})):n.hasClass("node-class")||n.children("a").removeClass("unchecked"
).addClass("checked")),!0))},uncheck:function(n){if(!n)return!1;var t=$.tree.reference(n);return!1!==t.callback("beforeuncheck",[n,t])&&((n=t.get_node(n)).children("a").hasClass("unchecked")||($.extend(!0,{},$.tree.plugins.checkbox.defaults,t.settings.plugins.checkbox).three_state?(n.find("li").addBack().children("a").removeClass("checked undetermined").addClass("unchecked"),n.parents("li").each(function(){return 0<$(this).find("a.checked, a.undetermined").size()-1?($(this).parents("li").addBack().children("a").removeClass("unchecked checked").addClass("undetermined"),!1):void $(this).children("a").removeClass("checked undetermined").addClass("unchecked")})
):n.children("a").removeClass("checked").addClass("unchecked")),!0)},toggle:function(n){if(!n)return!1;(n=$.tree.reference(n).get_node(n)).children("a").hasClass("checked")?$.tree.plugins.checkbox.uncheck(n):$.tree.plugins.checkbox.check(n)},callbacks:{onchange:function(n,t){$.tree.plugins.checkbox.toggle(n)}}}})}),function(){var d3={version:"3.5.16"},d3_arraySlice=[].slice,d3_array=function(list){return d3_arraySlice.call(list)},d3_document=this.document;function d3_documentElement(node){return node&&(node.ownerDocument||node.document||node).documentElement}function d3_window(node){return node&&(
node.ownerDocument&&node.ownerDocument.defaultView||node.document&&node||node.defaultView)}if(d3_document)try{d3_array(d3_document.documentElement.childNodes)[0].nodeType}catch(e){d3_array=function(list){for(var i=list.length,array=new Array(i);i--;)array[i]=list[i];return array}}if(Date.now||(Date.now=function(){return+new Date}),d3_document)try{d3_document.createElement("DIV").style.setProperty("opacity",0,"")}catch(error){var d3_time_formatUtc=this.Element.prototype,d3_element_setAttribute=d3_time_formatUtc.setAttribute,d3_element_setAttributeNS=d3_time_formatUtc.setAttributeNS,d3_time_formatIso=this.CSSStyleDeclaration.prototype,
d3_style_setProperty=d3_time_formatIso.setProperty;d3_time_formatUtc.setAttribute=function(name,value){d3_element_setAttribute.call(this,name,value+"")},d3_time_formatUtc.setAttributeNS=function(space,local,value){d3_element_setAttributeNS.call(this,space,local,value+"")},d3_time_formatIso.setProperty=function(name,value,priority){d3_style_setProperty.call(this,name,value+"",priority)}}function d3_ascending(a,b){return a<b?-1:b<a?1:b<=a?0:NaN}function d3_number(x){return null===x?NaN:+x}function d3_numeric(x){return!isNaN(x)}function d3_bisector(compare){return{left:function(a,x,lo,hi){for(arguments.length<3&&(lo=0),arguments.length<4&&(hi=a.length);lo<hi;){
var mid=lo+hi>>>1;compare(a[mid],x)<0?lo=1+mid:hi=mid}return lo},right:function(a,x,lo,hi){for(arguments.length<3&&(lo=0),arguments.length<4&&(hi=a.length);lo<hi;){var mid=lo+hi>>>1;0<compare(a[mid],x)?hi=mid:lo=1+mid}return lo}}}d3.ascending=d3_ascending,d3.descending=function(a,b){return b<a?-1:a<b?1:a<=b?0:NaN},d3.min=function(array,f){var a,b,i=-1,n=array.length;if(1===arguments.length){for(;++i<n;)if(null!=(b=array[i])&&b<=b){a=b;break}for(;++i<n;)null!=(b=array[i])&&b<a&&(a=b)}else{for(;++i<n;)if(null!=(b=f.call(array,array[i],i))&&b<=b){a=b;break}for(;++i<n;)null!=(b=f.call(array,array[i],i))&&b<a&&(a=b)}return a},d3.max=function(array,f){var a,b,i=-1
,n=array.length;if(1===arguments.length){for(;++i<n;)if(null!=(b=array[i])&&b<=b){a=b;break}for(;++i<n;)null!=(b=array[i])&&a<b&&(a=b)}else{for(;++i<n;)if(null!=(b=f.call(array,array[i],i))&&b<=b){a=b;break}for(;++i<n;)null!=(b=f.call(array,array[i],i))&&a<b&&(a=b)}return a},d3.extent=function(array,f){var a,b,c,i=-1,n=array.length;if(1===arguments.length){for(;++i<n;)if(null!=(b=array[i])&&b<=b){a=c=b;break}for(;++i<n;)null!=(b=array[i])&&(b<a&&(a=b),c<b&&(c=b))}else{for(;++i<n;)if(null!=(b=f.call(array,array[i],i))&&b<=b){a=c=b;break}for(;++i<n;)null!=(b=f.call(array,array[i],i))&&(b<a&&(a=b),c<b&&(c=b))}return[a,c]},d3.sum=function(array,f){var a,s=0,
n=array.length,i=-1;if(1===arguments.length)for(;++i<n;)d3_numeric(a=+array[i])&&(s+=a);else for(;++i<n;)d3_numeric(a=+f.call(array,array[i],i))&&(s+=a);return s},d3.mean=function(array,f){var a,s=0,n=array.length,i=-1,j=n;if(1===arguments.length)for(;++i<n;)d3_numeric(a=d3_number(array[i]))?s+=a:--j;else for(;++i<n;)d3_numeric(a=d3_number(f.call(array,array[i],i)))?s+=a:--j;if(j)return s/j},d3.quantile=function(values,v){var e=(values.length-1)*v+1,h=Math.floor(e),v=+values[h-1],e=e-h;return e?v+e*(values[h]-v):v},d3.median=function(array,f){var a,numbers=[],n=array.length,i=-1;if(1===arguments.length)for(;++i<n;)d3_numeric(a=d3_number(array[i])
)&&numbers.push(a);else for(;++i<n;)d3_numeric(a=d3_number(f.call(array,array[i],i)))&&numbers.push(a);if(numbers.length)return d3.quantile(numbers.sort(d3_ascending),.5)},d3.variance=function(array,f){var a,d,n=array.length,m=0,s=0,i=-1,j=0;if(1===arguments.length)for(;++i<n;)d3_numeric(a=d3_number(array[i]))&&(s+=(d=a-m)*(a-(m+=d/++j)));else for(;++i<n;)d3_numeric(a=d3_number(f.call(array,array[i],i)))&&(s+=(d=a-m)*(a-(m+=d/++j)));if(1<j)return s/(j-1)},d3.deviation=function(){var v=d3.variance.apply(this,arguments);return v&&Math.sqrt(v)};var d3_time_format=d3_bisector(d3_ascending);function d3_transposeLength(d){return d.length}
d3.bisectLeft=d3_time_format.left,d3.bisect=d3.bisectRight=d3_time_format.right,d3.bisector=function(f){return d3_bisector(1===f.length?function(d,x){return d3_ascending(f(d),x)}:f)},d3.shuffle=function(array,i0,i1){(m=arguments.length)<3&&(i1=array.length,m<2&&(i0=0));for(var t,i,m=i1-i0;m;)i=Math.random()*m--|0,t=array[m+i0],array[m+i0]=array[i+i0],array[i+i0]=t;return array},d3.permute=function(array,indexes){for(var i=indexes.length,permutes=new Array(i);i--;)permutes[i]=array[indexes[i]];return permutes},d3.pairs=function(array){for(var i=0,n=array.length-1,p1=array[0],pairs=new Array(n<0?0:n);i<n;)pairs[i]=[p1,p1=array[++i]];return pairs},
d3.transpose=function(matrix){if(!(n=matrix.length))return[];for(var i=-1,m=d3.min(matrix,d3_transposeLength),transpose=new Array(m);++i<m;)for(var n,j=-1,row=transpose[i]=new Array(n);++j<n;)row[j]=matrix[j][i];return transpose},d3.zip=function(){return d3.transpose(arguments)},d3.keys=function(map){var key,keys=[];for(key in map)keys.push(key);return keys},d3.values=function(map){var key,values=[];for(key in map)values.push(map[key]);return values},d3.entries=function(map){var key,entries=[];for(key in map)entries.push({key:key,value:map[key]});return entries},d3.merge=function(arrays){for(var m,merged,array,n=arrays.length,i=-1,j=0;++i<n;
)j+=arrays[i].length;for(merged=new Array(j);0<=--n;)for(m=(array=arrays[n]).length;0<=--m;)merged[--j]=array[m];return merged};var abs=Math.abs;function d3_class(ctor,properties){for(var key in properties)Object.defineProperty(ctor.prototype,key,{value:properties[key],enumerable:!1})}function d3_Map(){this._=Object.create(null)}d3.range=function(start,stop,step){if(arguments.length<3&&(step=1,arguments.length<2&&(stop=start,start=0)),(stop-start)/step==1/0)throw new Error("infinite range");var j,range=[],k=function(x){var k=1;for(;x*k%1;)k*=10;return k}(abs(step)),i=-1;if(start*=k,stop*=k,(step*=k)<0)for(;(j=start+step*++i)>stop;)range.push(j/k);else for(;(
j=start+step*++i)<stop;)range.push(j/k);return range},d3.map=function(object,f){var map=new d3_Map;if(object instanceof d3_Map)object.forEach(function(key,value){map.set(key,value)});else if(Array.isArray(object)){var o,i=-1,n=object.length;if(1===arguments.length)for(;++i<n;)map.set(i,object[i]);else for(;++i<n;)map.set(f.call(object,o=object[i],i),o)}else for(var key in object)map.set(key,object[key]);return map};var d3_map_proto="__proto__",d3_map_zero="\0";function d3_map_escape(key){return(key+="")===d3_map_proto||key[0]===d3_map_zero?d3_map_zero+key:key}function d3_map_unescape(key){return(key+="")[0]===d3_map_zero?key.slice(1):key}function d3_map_has(
key){return d3_map_escape(key)in this._}function d3_map_remove(key){return(key=d3_map_escape(key))in this._&&delete this._[key]}function d3_map_keys(){var key,keys=[];for(key in this._)keys.push(d3_map_unescape(key));return keys}function d3_map_size(){var key,size=0;for(key in this._)++size;return size}function d3_map_empty(){for(var key in this._)return!1;return!0}function d3_Set(){this._=Object.create(null)}function d3_identity(d){return d}function d3_vendorSymbol(object,name){if(name in object)return name;name=name.charAt(0).toUpperCase()+name.slice(1);for(var i=0,n=d3_vendorPrefixes.length;i<n;++i){var prefixName=d3_vendorPrefixes[i]+name;if(
prefixName in object)return prefixName}}d3_class(d3_Map,{has:d3_map_has,get:function(key){return this._[d3_map_escape(key)]},set:function(key,value){return this._[d3_map_escape(key)]=value},remove:d3_map_remove,keys:d3_map_keys,values:function(){var key,values=[];for(key in this._)values.push(this._[key]);return values},entries:function(){var key,entries=[];for(key in this._)entries.push({key:d3_map_unescape(key),value:this._[key]});return entries},size:d3_map_size,empty:d3_map_empty,forEach:function(f){for(var key in this._)f.call(this,d3_map_unescape(key),this._[key])}}),d3.nest=function(){var sortValues,rollup,nest={},keys=[],sortKeys=[];function map(
mapType,array,depth){if(depth>=keys.length)return rollup?rollup.call(nest,array):sortValues?array.sort(sortValues):array;for(var keyValue,object,setter,values,i=-1,n=array.length,key=keys[depth++],valuesByKey=new d3_Map;++i<n;)(values=valuesByKey.get(keyValue=key(object=array[i])))?values.push(object):valuesByKey.set(keyValue,[object]);return setter=mapType?(object=mapType(),function(keyValue,values){object.set(keyValue,map(mapType,values,depth))}):(object={},function(keyValue,values){object[keyValue]=map(mapType,values,depth)}),valuesByKey.forEach(setter),object}return nest.map=function(array,mapType){return map(mapType,array,0)},nest.entries=function(array
){return function entries(map,depth){if(depth>=keys.length)return map;var array=[],sortKey=sortKeys[depth++];return map.forEach(function(key,keyMap){array.push({key:key,values:entries(keyMap,depth)})}),sortKey?array.sort(function(a,b){return sortKey(a.key,b.key)}):array}(map(d3.map,array,0),0)},nest.key=function(d){return keys.push(d),nest},nest.sortKeys=function(order){return sortKeys[keys.length-1]=order,nest},nest.sortValues=function(order){return sortValues=order,nest},nest.rollup=function(f){return rollup=f,nest},nest},d3.set=function(array){var set=new d3_Set;if(array)for(var i=0,n=array.length;i<n;++i)set.add(array[i]);return set},d3_class(d3_Set,{
has:d3_map_has,add:function(key){return this._[d3_map_escape(key+="")]=!0,key},remove:d3_map_remove,values:d3_map_keys,size:d3_map_size,empty:d3_map_empty,forEach:function(f){for(var key in this._)f.call(this,d3_map_unescape(key))}}),d3.behavior={},d3.rebind=function(target,source){for(var method,i=1,n=arguments.length;++i<n;)target[method=arguments[i]]=function(target,source,method){return function(){var value=method.apply(source,arguments);return value===source?target:value}}(target,source,source[method]);return target};var d3_vendorPrefixes=["webkit","ms","moz","Moz","o","O"];function d3_noop(){}function d3_dispatch(){}function d3_dispatch_event(dispatch
){var listeners=[],listenerByName=new d3_Map;function event(){for(var l,z=listeners,i=-1,n=z.length;++i<n;)(l=z[i].on)&&l.apply(this,arguments);return dispatch}return event.on=function(name,listener){var i=listenerByName.get(name);return arguments.length<2?i&&i.on:(i&&(i.on=null,listeners=listeners.slice(0,i=listeners.indexOf(i)).concat(listeners.slice(i+1)),listenerByName.remove(name)),listener&&listeners.push(listenerByName.set(name,{on:listener})),dispatch)},event}function d3_eventPreventDefault(){d3.event.preventDefault()}function d3_eventSource(){for(var s,e=d3.event;s=e.sourceEvent;)e=s;return e}function d3_eventDispatch(target){for(
var dispatch=new d3_dispatch,i=0,n=arguments.length;++i<n;)dispatch[arguments[i]]=d3_dispatch_event(dispatch);return dispatch.of=function(thiz,argumentz){return function(e1){try{var e0=e1.sourceEvent=d3.event;e1.target=target,d3.event=e1,dispatch[e1.type].apply(thiz,argumentz)}finally{d3.event=e0}}},dispatch}d3.dispatch=function(){for(var dispatch=new d3_dispatch,i=-1,n=arguments.length;++i<n;)dispatch[arguments[i]]=d3_dispatch_event(dispatch);return dispatch},d3_dispatch.prototype.on=function(type,listener){var i=type.indexOf("."),name="";if(0<=i&&(name=type.slice(i+1),type=type.slice(0,i)),type)return arguments.length<2?this[type].on(name):this[type].on(
name,listener);if(2===arguments.length){if(null==listener)for(type in this)this.hasOwnProperty(type)&&this[type].on(name,null);return this}},d3.event=null,d3.requote=function(s){return s.replace(d3_requote_re,"\\$&")};var d3_requote_re=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,d3_subclass={}.__proto__?function(object,prototype){object.__proto__=prototype}:function(object,prototype){for(var property in prototype)object[property]=prototype[property]};function d3_selection(groups){return d3_subclass(groups,d3_selectionPrototype),groups}var d3_select=function(s,n){return n.querySelector(s)},d3_selectAll=function(s,n){return n.querySelectorAll(s)},
d3_selectMatches=function(n,s){var d3_selectMatcher=n.matches||n[d3_vendorSymbol(n,"matchesSelector")];return(d3_selectMatches=function(n,s){return d3_selectMatcher.call(n,s)})(n,s)};"function"==typeof Sizzle&&(d3_select=function(s,n){return Sizzle(s,n)[0]||null},d3_selectMatches=(d3_selectAll=Sizzle).matchesSelector),d3.selection=function(){return d3.select(d3_document.documentElement)};var d3_selectionPrototype=d3.selection.prototype=[];function d3_selection_selector(selector){return"function"==typeof selector?selector:function(){return d3_select(selector,this)}}function d3_selection_selectorAll(selector){
return"function"==typeof selector?selector:function(){return d3_selectAll(selector,this)}}d3_selectionPrototype.select=function(selector){var subgroup,subnode,group,node,subgroups=[];selector=d3_selection_selector(selector);for(var j=-1,m=this.length;++j<m;){subgroups.push(subgroup=[]),subgroup.parentNode=(group=this[j]).parentNode;for(var i=-1,n=group.length;++i<n;)(node=group[i])?(subgroup.push(subnode=selector.call(node,node.__data__,i,j)),subnode&&"__data__"in node&&(subnode.__data__=node.__data__)):subgroup.push(null)}return d3_selection(subgroups)},d3_selectionPrototype.selectAll=function(selector){var subgroup,node,subgroups=[]
;selector=d3_selection_selectorAll(selector);for(var j=-1,m=this.length;++j<m;)for(var group=this[j],i=-1,n=group.length;++i<n;)(node=group[i])&&(subgroups.push(subgroup=d3_array(selector.call(node,node.__data__,i,j))),subgroup.parentNode=node);return d3_selection(subgroups)};var d3_nsXhtml="http://www.w3.org/1999/xhtml",d3_nsPrefix={svg:"http://www.w3.org/2000/svg",xhtml:d3_nsXhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function d3_selection_attr(name,value){return name=d3.ns.qualify(name),null==value?name.local?function(){this.removeAttributeNS(name.space,name.local)}:function(
){this.removeAttribute(name)}:"function"==typeof value?name.local?function(){var x=value.apply(this,arguments);null==x?this.removeAttributeNS(name.space,name.local):this.setAttributeNS(name.space,name.local,x)}:function(){var x=value.apply(this,arguments);null==x?this.removeAttribute(name):this.setAttribute(name,x)}:name.local?function(){this.setAttributeNS(name.space,name.local,value)}:function(){this.setAttribute(name,value)}}function d3_collapse(s){return s.trim().replace(/\s+/g," ")}function d3_selection_classedRe(name){return new RegExp("(?:^|\\s+)"+d3.requote(name)+"(?:\\s+|$)","g")}function d3_selection_classes(name){return(name+"").trim().split(
/^|\s+/)}function d3_selection_classed(name,value){var n=(name=d3_selection_classes(name).map(d3_selection_classedName)).length;return"function"==typeof value?function(){for(var i=-1,x=value.apply(this,arguments);++i<n;)name[i](this,x)}:function(){for(var i=-1;++i<n;)name[i](this,value)}}function d3_selection_classedName(name){var re=d3_selection_classedRe(name);return function(node,value){if(c=node.classList)return value?c.add(name):c.remove(name);var c=node.getAttribute("class")||"";value?(re.lastIndex=0,re.test(c)||node.setAttribute("class",d3_collapse(c+" "+name))):node.setAttribute("class",d3_collapse(c.replace(re," ")))}}function d3_selection_style(
name,value,priority){return null==value?function(){this.style.removeProperty(name)}:"function"==typeof value?function(){var x=value.apply(this,arguments);null==x?this.style.removeProperty(name):this.style.setProperty(name,x,priority)}:function(){this.style.setProperty(name,value,priority)}}function d3_selection_property(name,value){return null==value?function(){delete this[name]}:"function"==typeof value?function(){var x=value.apply(this,arguments);null==x?delete this[name]:this[name]=x}:function(){this[name]=value}}function d3_selection_creator(name){return"function"==typeof name?name:(name=d3.ns.qualify(name)).local?function(){
return this.ownerDocument.createElementNS(name.space,name.local)}:function(){var document=this.ownerDocument,namespace=this.namespaceURI;return namespace===d3_nsXhtml&&document.documentElement.namespaceURI===d3_nsXhtml?document.createElement(name):document.createElementNS(namespace,name)}}function d3_selectionRemove(){var parent=this.parentNode;parent&&parent.removeChild(this)}function d3_selection_filter(selector){return function(){return d3_selectMatches(this,selector)}}function d3_selection_each(groups,callback){for(var j=0,m=groups.length;j<m;j++)for(var node,group=groups[j],i=0,n=group.length;i<n;i++)(node=group[i])&&callback(node,i,j);return groups}
function d3_selection_enter(selection){return d3_subclass(selection,d3_selection_enterPrototype),selection}d3.ns={prefix:d3_nsPrefix,qualify:function(name){var i=name.indexOf(":"),prefix=name;return 0<=i&&"xmlns"!==(prefix=name.slice(0,i))&&(name=name.slice(i+1)),d3_nsPrefix.hasOwnProperty(prefix)?{space:d3_nsPrefix[prefix],local:name}:name}},d3_selectionPrototype.attr=function(name,value){if(arguments.length<2){if("string"==typeof name){var node=this.node();return(name=d3.ns.qualify(name)).local?node.getAttributeNS(name.space,name.local):node.getAttribute(name)}for(value in name)this.each(d3_selection_attr(value,name[value]));return this}return this.each(
d3_selection_attr(name,value))},d3_selectionPrototype.classed=function(name,value){if(arguments.length<2){if("string"==typeof name){var node=this.node(),n=(name=d3_selection_classes(name)).length,i=-1;if(value=node.classList){for(;++i<n;)if(!value.contains(name[i]))return!1}else for(value=node.getAttribute("class");++i<n;)if(!d3_selection_classedRe(name[i]).test(value))return!1;return!0}for(value in name)this.each(d3_selection_classed(value,name[value]));return this}return this.each(d3_selection_classed(name,value))},d3_selectionPrototype.style=function(name,value,priority){var node=arguments.length;if(node<3){if("string"!=typeof name){for(
priority in node<2&&(value=""),name)this.each(d3_selection_style(priority,name[priority],value));return this}if(node<2){node=this.node();return d3_window(node).getComputedStyle(node,null).getPropertyValue(name)}priority=""}return this.each(d3_selection_style(name,value,priority))},d3_selectionPrototype.property=function(name,value){if(arguments.length<2){if("string"==typeof name)return this.node()[name];for(value in name)this.each(d3_selection_property(value,name[value]));return this}return this.each(d3_selection_property(name,value))},d3_selectionPrototype.text=function(value){return arguments.length?this.each("function"==typeof value?function(){
var v=value.apply(this,arguments);this.textContent=null==v?"":v}:null==value?function(){this.textContent=""}:function(){this.textContent=value}):this.node().textContent},d3_selectionPrototype.html=function(value){return arguments.length?this.each("function"==typeof value?function(){var v=value.apply(this,arguments);this.innerHTML=null==v?"":v}:null==value?function(){this.innerHTML=""}:function(){this.innerHTML=value}):this.node().innerHTML},d3_selectionPrototype.append=function(name){return name=d3_selection_creator(name),this.select(function(){return this.appendChild(name.apply(this,arguments))})},d3_selectionPrototype.insert=function(name,before){
return name=d3_selection_creator(name),before=d3_selection_selector(before),this.select(function(){return this.insertBefore(name.apply(this,arguments),before.apply(this,arguments)||null)})},d3_selectionPrototype.remove=function(){return this.each(d3_selectionRemove)},d3_selectionPrototype.data=function(value,key){var group,node,i=-1,n=this.length;if(!arguments.length){for(value=new Array(n=(group=this[0]).length);++i<n;)(node=group[i])&&(value[i]=node.__data__);return value}function bind(group,groupData){var node,nodeData,n=group.length,m=groupData.length,n0=Math.min(n,m),updateNodes=new Array(m),enterNodes=new Array(m),exitNodes=new Array(n);if(key){for(
var keyValue,nodeByKeyValue=new d3_Map,keyValues=new Array(n),i=-1;++i<n;)(node=group[i])&&(nodeByKeyValue.has(keyValue=key.call(node,node.__data__,i))?exitNodes[i]=node:nodeByKeyValue.set(keyValue,node),keyValues[i]=keyValue);for(i=-1;++i<m;)(node=nodeByKeyValue.get(keyValue=key.call(groupData,nodeData=groupData[i],i)))?!0!==node&&((updateNodes[i]=node).__data__=nodeData):enterNodes[i]={__data__:nodeData},nodeByKeyValue.set(keyValue,!0);for(i=-1;++i<n;)i in keyValues&&!0!==nodeByKeyValue.get(keyValues[i])&&(exitNodes[i]=group[i])}else{for(i=-1;++i<n0;)node=group[i],nodeData=groupData[i],node?(node.__data__=nodeData,updateNodes[i]=node):enterNodes[i]={
__data__:nodeData};for(;i<m;++i)enterNodes[i]={__data__:groupData[i]};for(;i<n;++i)exitNodes[i]=group[i]}enterNodes.update=updateNodes,enterNodes.parentNode=updateNodes.parentNode=exitNodes.parentNode=group.parentNode,enter.push(enterNodes),update.push(updateNodes),exit.push(exitNodes)}var enter=d3_selection_enter([]),update=d3_selection([]),exit=d3_selection([]);if("function"==typeof value)for(;++i<n;)bind(group=this[i],value.call(group,group.parentNode.__data__,i));else for(;++i<n;)bind(group=this[i],value);return update.enter=function(){return enter},update.exit=function(){return exit},update},d3_selectionPrototype.datum=function(value){
return arguments.length?this.property("__data__",value):this.property("__data__")},d3_selectionPrototype.filter=function(filter){var subgroup,group,node,subgroups=[];"function"!=typeof filter&&(filter=d3_selection_filter(filter));for(var j=0,m=this.length;j<m;j++){subgroups.push(subgroup=[]),subgroup.parentNode=(group=this[j]).parentNode;for(var i=0,n=group.length;i<n;i++)(node=group[i])&&filter.call(node,node.__data__,i,j)&&subgroup.push(node)}return d3_selection(subgroups)},d3_selectionPrototype.order=function(){for(var j=-1,m=this.length;++j<m;)for(var node,group=this[j],i=group.length-1,next=group[i];0<=--i;)(node=group[i])&&(
next&&next!==node.nextSibling&&next.parentNode.insertBefore(node,next),next=node);return this},d3_selectionPrototype.sort=function(comparator){comparator=function(comparator){arguments.length||(comparator=d3_ascending);return function(a,b){return a&&b?comparator(a.__data__,b.__data__):!a-!b}}.apply(this,arguments);for(var j=-1,m=this.length;++j<m;)this[j].sort(comparator);return this.order()},d3_selectionPrototype.each=function(callback){return d3_selection_each(this,function(node,i,j){callback.call(node,node.__data__,i,j)})},d3_selectionPrototype.call=function(callback){var args=d3_array(arguments);return callback.apply(args[0]=this,args),this},
d3_selectionPrototype.empty=function(){return!this.node()},d3_selectionPrototype.node=function(){for(var j=0,m=this.length;j<m;j++)for(var group=this[j],i=0,n=group.length;i<n;i++){var node=group[i];if(node)return node}return null},d3_selectionPrototype.size=function(){var n=0;return d3_selection_each(this,function(){++n}),n};var d3_selection_enterPrototype=[];function d3_selection_on(type,listener,capture){var name="__on"+type,i=type.indexOf("."),wrap=d3_selection_onListener;0<i&&(type=type.slice(0,i));var filter=d3_selection_onFilters.get(type);function onRemove(){var l=this[name];l&&(this.removeEventListener(type,l,l.$),delete this[name])}return filter&&(
type=filter,wrap=d3_selection_onFilter),i?listener?function(){var l=wrap(listener,d3_array(arguments));onRemove.call(this),this.addEventListener(type,this[name]=l,l.$=capture),l._=listener}:onRemove:listener?d3_noop:function(){var match,name,l,re=new RegExp("^__on([^.]+)"+d3.requote(type)+"$");for(name in this){(match=name.match(re))&&(l=this[name],this.removeEventListener(match[1],l,l.$),delete this[name])}}}d3.selection.enter=d3_selection_enter,(d3.selection.enter.prototype=d3_selection_enterPrototype).append=d3_selectionPrototype.append,d3_selection_enterPrototype.empty=d3_selectionPrototype.empty,
d3_selection_enterPrototype.node=d3_selectionPrototype.node,d3_selection_enterPrototype.call=d3_selectionPrototype.call,d3_selection_enterPrototype.size=d3_selectionPrototype.size,d3_selection_enterPrototype.select=function(selector){for(var subgroup,subnode,upgroup,group,node,subgroups=[],j=-1,m=this.length;++j<m;){upgroup=(group=this[j]).update,subgroups.push(subgroup=[]),subgroup.parentNode=group.parentNode;for(var i=-1,n=group.length;++i<n;)(node=group[i])?(subgroup.push(upgroup[i]=subnode=selector.call(group.parentNode,node.__data__,i,j)),subnode.__data__=node.__data__):subgroup.push(null)}return d3_selection(subgroups)},
d3_selection_enterPrototype.insert=function(name,before){var enter,i0,j0;return arguments.length<2&&(enter=this,before=function(d,i,j){var node,group=enter[j].update,n=group.length;for(j!=j0&&(j0=j,i0=0),i0<=i&&(i0=i+1);!(node=group[i0])&&++i0<n;);return node}),d3_selectionPrototype.insert.call(this,name,before)},d3.select=function(node){var group;return"string"==typeof node?(group=[d3_select(node,d3_document)]).parentNode=d3_document.documentElement:(group=[node]).parentNode=d3_documentElement(node),d3_selection([group])},d3.selectAll=function(nodes){var group;return"string"==typeof nodes?(group=d3_array(d3_selectAll(nodes,d3_document))
).parentNode=d3_document.documentElement:(group=d3_array(nodes)).parentNode=null,d3_selection([group])},d3_selectionPrototype.on=function(type,listener,capture){var n=arguments.length;if(n<3){if("string"!=typeof type){for(capture in n<2&&(listener=!1),type)this.each(d3_selection_on(capture,type[capture],listener));return this}if(n<2)return(n=this.node()["__on"+type])&&n._;capture=!1}return this.each(d3_selection_on(type,listener,capture))};var d3_selection_onFilters=d3.map({mouseenter:"mouseover",mouseleave:"mouseout"});function d3_selection_onListener(listener,argumentz){return function(e){var o=d3.event;d3.event=e,argumentz[0]=this.__data__;try{
listener.apply(this,argumentz)}finally{d3.event=o}}}function d3_selection_onFilter(listener,argumentz){var l=d3_selection_onListener(listener,argumentz);return function(e){var related=e.relatedTarget;related&&(related===this||8&related.compareDocumentPosition(this))||l.call(this,e)}}d3_document&&d3_selection_onFilters.forEach(function(k){"on"+k in d3_document&&d3_selection_onFilters.remove(k)});var d3_event_dragSelect,d3_event_dragId=0;function d3_event_dragSuppress(node){var style,select,name=".dragsuppress-"+ ++d3_event_dragId,click="click"+name,w=d3.select(d3_window(node)).on("touchmove"+name,d3_eventPreventDefault).on("dragstart"+name,
d3_eventPreventDefault).on("selectstart"+name,d3_eventPreventDefault);return null==d3_event_dragSelect&&(d3_event_dragSelect=!("onselectstart"in node)&&d3_vendorSymbol(node.style,"userSelect")),d3_event_dragSelect&&(style=d3_documentElement(node).style,select=style[d3_event_dragSelect],style[d3_event_dragSelect]="none"),function(suppressClick){var off;w.on(name,null),d3_event_dragSelect&&(style[d3_event_dragSelect]=select),suppressClick&&(off=function(){w.on(click,null)},w.on(click,function(){d3_eventPreventDefault(),off()},!0),setTimeout(off,0))}}d3.mouse=function(container){return d3_mousePoint(container,d3_eventSource())}
;var d3_mouse_bug44083=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function d3_mousePoint(container,e){e.changedTouches&&(e=e.changedTouches[0]);var svg=container.ownerSVGElement||container;if(svg.createSVGPoint){var ctm,rect=svg.createSVGPoint();return d3_mouse_bug44083<0&&(((ctm=d3_window(container)).scrollX||ctm.scrollY)&&(ctm=(svg=d3.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM(),d3_mouse_bug44083=!(ctm.f||ctm.e),svg.remove())),d3_mouse_bug44083?(rect.x=e.pageX,rect.y=e.pageY):(rect.x=e.clientX,rect.y=e.clientY),[(rect=rect.matrixTransform(
container.getScreenCTM().inverse())).x,rect.y]}rect=container.getBoundingClientRect();return[e.clientX-rect.left-container.clientLeft,e.clientY-rect.top-container.clientTop]}function d3_behavior_dragTouchId(){return d3.event.changedTouches[0].identifier}d3.touch=function(container,touches,identifier){if(arguments.length<3&&(identifier=touches,touches=d3_eventSource().changedTouches),touches)for(var touch,i=0,n=touches.length;i<n;++i)if((touch=touches[i]).identifier===identifier)return d3_mousePoint(container,touch)},d3.behavior.drag=function(){var event=d3_eventDispatch(drag,"drag","dragstart","dragend"),origin=null,mousedown=dragstart(d3_noop,d3.mouse,
d3_window,"mousemove","mouseup"),touchstart=dragstart(d3_behavior_dragTouchId,d3.touch,d3_identity,"touchmove","touchend");function drag(){this.on("mousedown.drag",mousedown).on("touchstart.drag",touchstart)}function dragstart(id,position,subject,move,end){return function(){var dragOffset,target=d3.event.target.correspondingElement||d3.event.target,parent=this.parentNode,dispatch=event.of(this,arguments),dragged=0,dragId=id(),dragName=".drag"+(null==dragId?"":"-"+dragId),dragSubject=d3.select(subject(target)).on(move+dragName,function(){var dx,dy,position1=position(parent,dragId);if(!position1)return;dx=position1[0]-position0[0],dy=position1[1]-position0[1],
dragged|=dx|dy,dispatch({type:"drag",x:(position0=position1)[0]+dragOffset[0],y:position1[1]+dragOffset[1],dx:dx,dy:dy})}).on(end+dragName,function(){if(!position(parent,dragId))return;dragSubject.on(move+dragName,null).on(end+dragName,null),dragRestore(dragged),dispatch({type:"dragend"})}),dragRestore=d3_event_dragSuppress(target),position0=position(parent,dragId);dragOffset=origin?[(dragOffset=origin.apply(this,arguments)).x-position0[0],dragOffset.y-position0[1]]:[0,0],dispatch({type:"dragstart"})}}return drag.origin=function(x){return arguments.length?(origin=x,drag):origin},d3.rebind(drag,event,"on")},d3.touches=function(container,touches){
return arguments.length<2&&(touches=d3_eventSource().touches),touches?d3_array(touches).map(function(touch){var point=d3_mousePoint(container,touch);return point.identifier=touch.identifier,point}):[]};var ε=1e-6,ε2=ε*ε,π=Math.PI,τ=2*π,τε=τ-ε,halfπ=π/2,d3_radians=π/180,d3_degrees=180/π;function d3_sgn(x){return 0<x?1:x<0?-1:0}function d3_cross2d(a,b,c){return(b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])}function d3_acos(x){return 1<x?0:x<-1?π:Math.acos(x)}function d3_asin(x){return 1<x?halfπ:x<-1?-halfπ:Math.asin(x)}function d3_cosh(x){return((x=Math.exp(x))+1/x)/2}function d3_haversin(x){return(x=Math.sin(x/2))*x}var ρ=Math.SQRT2
;d3.interpolateZoom=function(b0,w1){var d1,r0,S,i,ux0=b0[0],uy0=b0[1],w0=b0[2],d2=w1[0],b0=w1[1],w1=w1[2],dx=d2-ux0,dy=b0-uy0,d2=dx*dx+dy*dy;return(i=d2<ε2?(S=Math.log(w1/w0)/ρ,function(t){return[ux0+t*dx,uy0+t*dy,w0*Math.exp(ρ*t*S)]}):(d1=Math.sqrt(d2),b0=(w1*w1-w0*w0+4*d2)/(2*w0*2*d1),i=(w1*w1-w0*w0-4*d2)/(2*w1*2*d1),r0=Math.log(Math.sqrt(b0*b0+1)-b0),S=(Math.log(Math.sqrt(i*i+1)-i)-r0)/ρ,function(u){var s=u*S,coshr0=d3_cosh(r0),u=w0/(2*d1)*(coshr0*(u=ρ*s+r0,((u=Math.exp(2*u))-1)/(u+1))-function(x){return((x=Math.exp(x))-1/x)/2}(r0));return[ux0+u*dx,uy0+u*dy,w0*coshr0/d3_cosh(ρ*s+r0)]})).duration=1e3*S,i},d3.behavior.zoom=function(){var translate0,center0,
center,mousewheelTimer,touchtime,x0,x1,y0,y1,view={x:0,y:0,k:1},size=[960,500],scaleExtent=d3_behavior_zoomInfinity,duration=250,zooming=0,mousedown="mousedown.zoom",mousemove="mousemove.zoom",mouseup="mouseup.zoom",touchstart="touchstart.zoom",event=d3_eventDispatch(zoom,"zoomstart","zoom","zoomend");function zoom(g){g.on(mousedown,mousedowned).on(d3_behavior_zoomWheel+".zoom",mousewheeled).on("dblclick.zoom",dblclicked).on(touchstart,touchstarted)}function location(p){return[(p[0]-view.x)/view.k,(p[1]-view.y)/view.k]}function scaleTo(s){view.k=Math.max(scaleExtent[0],Math.min(scaleExtent[1],s))}function translateTo(p,l){l=function(l){return[
l[0]*view.k+view.x,l[1]*view.k+view.y]}(l),view.x+=p[0]-l[0],view.y+=p[1]-l[1]}function zoomTo(that,p,l,k){that.__chart__={x:view.x,y:view.y,k:view.k},scaleTo(Math.pow(2,k)),translateTo(center0=p,l),that=d3.select(that),0<duration&&(that=that.transition().duration(duration)),that.call(zoom.event)}function rescale(){x1&&x1.domain(x0.range().map(function(x){return(x-view.x)/view.k}).map(x0.invert)),y1&&y1.domain(y0.range().map(function(y){return(y-view.y)/view.k}).map(y0.invert))}function zoomstarted(dispatch){zooming++||dispatch({type:"zoomstart"})}function zoomed(dispatch){rescale(),dispatch({type:"zoom",scale:view.k,translate:[view.x,view.y]})}
function zoomended(dispatch){--zooming||(dispatch({type:"zoomend"}),center0=null)}function mousedowned(){var that=this,dispatch=event.of(that,arguments),dragged=0,subject=d3.select(d3_window(that)).on(mousemove,function(){dragged=1,translateTo(d3.mouse(that),location0),zoomed(dispatch)}).on(mouseup,function(){subject.on(mousemove,null).on(mouseup,null),dragRestore(dragged),zoomended(dispatch)}),location0=location(d3.mouse(that)),dragRestore=d3_event_dragSuppress(that);d3_selection_interrupt.call(that),zoomstarted(dispatch)}function touchstarted(){var scale0,that=this,dispatch=event.of(that,arguments),locations0={},distance0=0,
zoomName=".zoom-"+d3.event.changedTouches[0].identifier,touchmove="touchmove"+zoomName,touchend="touchend"+zoomName,targets=[],subject=d3.select(that),dragRestore=d3_event_dragSuppress(that);function relocate(){var touches=d3.touches(that);return scale0=view.k,touches.forEach(function(t){t.identifier in locations0&&(locations0[t.identifier]=location(t))}),touches}function started(){var dy=d3.event.target;d3.select(dy).on(touchmove,moved).on(touchend,ended),targets.push(dy);for(var changed=d3.event.changedTouches,i=0,n=changed.length;i<n;++i)locations0[changed[i].identifier]=null;var p,dx=relocate(),dy=Date.now();1===dx.length?(dy-touchtime<500&&(p=dx[0],
zoomTo(that,p,locations0[p.identifier],Math.floor(Math.log(view.k)/Math.LN2)+1),d3_eventPreventDefault()),touchtime=dy):1<dx.length&&(p=dx[0],dy=dx[1],dx=p[0]-dy[0],dy=p[1]-dy[1],distance0=dx*dx+dy*dy)}function moved(){var p1,l1,touches=d3.touches(that);d3_selection_interrupt.call(that);for(var scale1,p0,l0,i=0,n=touches.length;i<n;++i,l1=null)if(p1=touches[i],l1=locations0[p1.identifier]){if(l0)break;p0=p1,l0=l1}l1&&(scale1=(scale1=p1[0]-p0[0])*scale1+(scale1=p1[1]-p0[1])*scale1,scale1=distance0&&Math.sqrt(scale1/distance0),p0=[(p0[0]+p1[0])/2,(p0[1]+p1[1])/2],l0=[(l0[0]+l1[0])/2,(l0[1]+l1[1])/2],scaleTo(scale1*scale0)),touchtime=null,translateTo(p0,l0),
zoomed(dispatch)}function ended(){if(d3.event.touches.length){for(var identifier,changed=d3.event.changedTouches,i=0,n=changed.length;i<n;++i)delete locations0[changed[i].identifier];for(identifier in locations0)return void relocate()}d3.selectAll(targets).on(zoomName,null),subject.on(mousedown,mousedowned).on(touchstart,touchstarted),dragRestore(),zoomended(dispatch)}started(),zoomstarted(dispatch),subject.on(mousedown,null).on(touchstart,started)}function mousewheeled(){var dispatch=event.of(this,arguments);mousewheelTimer?clearTimeout(mousewheelTimer):(d3_selection_interrupt.call(this),translate0=location(center0=center||d3.mouse(this)),zoomstarted(
dispatch)),mousewheelTimer=setTimeout(function(){mousewheelTimer=null,zoomended(dispatch)},50),d3_eventPreventDefault(),scaleTo(Math.pow(2,.002*d3_behavior_zoomDelta())*view.k),translateTo(center0,translate0),zoomed(dispatch)}function dblclicked(){var p=d3.mouse(this),k=Math.log(view.k)/Math.LN2;zoomTo(this,p,location(p),d3.event.shiftKey?Math.ceil(k)-1:Math.floor(k)+1)}return d3_behavior_zoomWheel=d3_behavior_zoomWheel||("onwheel"in d3_document?(d3_behavior_zoomDelta=function(){return-d3.event.deltaY*(d3.event.deltaMode?120:1)},"wheel"):"onmousewheel"in d3_document?(d3_behavior_zoomDelta=function(){return d3.event.wheelDelta},"mousewheel"):(
d3_behavior_zoomDelta=function(){return-d3.event.detail},"MozMousePixelScroll")),zoom.event=function(g){g.each(function(){var dispatch=event.of(this,arguments),view1=view;d3_transitionInheritId?d3.select(this).transition().each("start.zoom",function(){view=this.__chart__||{x:0,y:0,k:1},zoomstarted(dispatch)}).tween("zoom:zoom",function(){var dx=size[0],dy=size[1],cx=center0?center0[0]:dx/2,cy=center0?center0[1]:dy/2,i=d3.interpolateZoom([(cx-view.x)/view.k,(cy-view.y)/view.k,dx/view.k],[(cx-view1.x)/view1.k,(cy-view1.y)/view1.k,dx/view1.k]);return function(k){var l=i(k),k=dx/l[2];this.__chart__=view={x:cx-l[0]*k,y:cy-l[1]*k,k:k},zoomed(dispatch)}}).each(
"interrupt.zoom",function(){zoomended(dispatch)}).each("end.zoom",function(){zoomended(dispatch)}):(this.__chart__=view,zoomstarted(dispatch),zoomed(dispatch),zoomended(dispatch))})},zoom.translate=function(_){return arguments.length?(view={x:+_[0],y:+_[1],k:view.k},rescale(),zoom):[view.x,view.y]},zoom.scale=function(_){return arguments.length?(view={x:view.x,y:view.y,k:null},scaleTo(+_),rescale(),zoom):view.k},zoom.scaleExtent=function(_){return arguments.length?(scaleExtent=null==_?d3_behavior_zoomInfinity:[+_[0],+_[1]],zoom):scaleExtent},zoom.center=function(_){return arguments.length?(center=_&&[+_[0],+_[1]],zoom):center},zoom.size=function(_){
return arguments.length?(size=_&&[+_[0],+_[1]],zoom):size},zoom.duration=function(_){return arguments.length?(duration=+_,zoom):duration},zoom.x=function(z){return arguments.length?(x0=(x1=z).copy(),view={x:0,y:0,k:1},zoom):x1},zoom.y=function(z){return arguments.length?(y0=(y1=z).copy(),view={x:0,y:0,k:1},zoom):y1},d3.rebind(zoom,event,"on")};var d3_behavior_zoomDelta,d3_behavior_zoomWheel,d3_behavior_zoomInfinity=[0,1/0];function d3_color(){}function d3_hsl(h,s,l){return this instanceof d3_hsl?(this.h=+h,this.s=+s,void(this.l=+l)):arguments.length<2?h instanceof d3_hsl?new d3_hsl(h.h,h.s,h.l):d3_rgb_parse(""+h,d3_rgb_hsl,d3_hsl):new d3_hsl(h,s,l)}(
d3.color=d3_color).prototype.toString=function(){return this.rgb()+""};d3_time_formatUtc=(d3.hsl=d3_hsl).prototype=new d3_color;function d3_hsl_rgb(h,s,l){var m1,m2;function vv(h){return Math.round(255*function(h){return 360<h?h-=360:h<0&&(h+=360),h<60?m1+(m2-m1)*h/60:h<180?m2:h<240?m1+(m2-m1)*(240-h)/60:m1}(h))}return h=isNaN(h)?0:(h%=360)<0?h+360:h,s=isNaN(s)||s<0?0:1<s?1:s,m1=2*(l=l<0?0:1<l?1:l)-(m2=l<=.5?l*(1+s):l+s-l*s),new d3_rgb(vv(h+120),vv(h),vv(h-120))}function d3_hcl(h,c,l){return this instanceof d3_hcl?(this.h=+h,this.c=+c,void(this.l=+l)):arguments.length<2?h instanceof d3_hcl?new d3_hcl(h.h,h.c,h.l):d3_lab_hcl((
h instanceof d3_lab?h:h=d3_rgb_lab((h=d3.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new d3_hcl(h,c,l)}d3_time_formatUtc.brighter=function(k){return k=Math.pow(.7,arguments.length?k:1),new d3_hsl(this.h,this.s,this.l/k)},d3_time_formatUtc.darker=function(k){return k=Math.pow(.7,arguments.length?k:1),new d3_hsl(this.h,this.s,k*this.l)},d3_time_formatUtc.rgb=function(){return d3_hsl_rgb(this.h,this.s,this.l)};d3_time_formatIso=(d3.hcl=d3_hcl).prototype=new d3_color;function d3_hcl_lab(h,c,l){return isNaN(h)&&(h=0),isNaN(c)&&(c=0),new d3_lab(l,Math.cos(h*=d3_radians)*c,Math.sin(h)*c)}function d3_lab(l,a,b){return this instanceof d3_lab?(this.l=+l,this.a=+a,void(this.b=+b)
):arguments.length<2?l instanceof d3_lab?new d3_lab(l.l,l.a,l.b):l instanceof d3_hcl?d3_hcl_lab(l.h,l.c,l.l):d3_rgb_lab((l=d3_rgb(l)).r,l.g,l.b):new d3_lab(l,a,b)}d3_time_formatIso.brighter=function(k){return new d3_hcl(this.h,this.c,Math.min(100,this.l+d3_lab_K*(arguments.length?k:1)))},d3_time_formatIso.darker=function(k){return new d3_hcl(this.h,this.c,Math.max(0,this.l-d3_lab_K*(arguments.length?k:1)))},d3_time_formatIso.rgb=function(){return d3_hcl_lab(this.h,this.c,this.l).rgb()},d3.lab=d3_lab;var d3_lab_K=18,d3_lab_X=.95047,d3_lab_Y=1,d3_lab_Z=1.08883,d3_time_format=d3_lab.prototype=new d3_color;function d3_lab_rgb(y,x,z){y=(y+16)/116,x=y+x/500,
z=y-z/200;return new d3_rgb(d3_xyz_rgb(3.2404542*(x=d3_lab_xyz(x)*d3_lab_X)-1.5371385*(y=d3_lab_xyz(y)*d3_lab_Y)-.4985314*(z=d3_lab_xyz(z)*d3_lab_Z)),d3_xyz_rgb(-.969266*x+1.8760108*y+.041556*z),d3_xyz_rgb(.0556434*x-.2040259*y+1.0572252*z))}function d3_lab_hcl(l,a,b){return 0<l?new d3_hcl(Math.atan2(b,a)*d3_degrees,Math.sqrt(a*a+b*b),l):new d3_hcl(NaN,NaN,l)}function d3_lab_xyz(x){return.206893034<x?x*x*x:(x-4/29)/7.787037}function d3_xyz_lab(x){return.008856<x?Math.pow(x,1/3):7.787037*x+4/29}function d3_xyz_rgb(r){return Math.round(255*(r<=.00304?12.92*r:1.055*Math.pow(r,1/2.4)-.055))}function d3_rgb(r,g,b){return this instanceof d3_rgb?(this.r=~~r,
this.g=~~g,void(this.b=~~b)):arguments.length<2?r instanceof d3_rgb?new d3_rgb(r.r,r.g,r.b):d3_rgb_parse(""+r,d3_rgb,d3_hsl_rgb):new d3_rgb(r,g,b)}function d3_rgbNumber(value){return new d3_rgb(value>>16,value>>8&255,255&value)}function d3_rgbString(value){return d3_rgbNumber(value)+""}d3_time_format.brighter=function(k){return new d3_lab(Math.min(100,this.l+d3_lab_K*(arguments.length?k:1)),this.a,this.b)},d3_time_format.darker=function(k){return new d3_lab(Math.max(0,this.l-d3_lab_K*(arguments.length?k:1)),this.a,this.b)},d3_time_format.rgb=function(){return d3_lab_rgb(this.l,this.a,this.b)};d3_time_formatUtc=(d3.rgb=d3_rgb).prototype=new d3_color
;function d3_rgb_hex(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function d3_rgb_parse(format,rgb,hsl){var color,r=0,g=0,b=0,m1=/([a-z]+)\((.*)\)/.exec(format=format.toLowerCase());if(m1)switch(color=m1[2].split(","),m1[1]){case"hsl":return hsl(parseFloat(color[0]),parseFloat(color[1])/100,parseFloat(color[2])/100);case"rgb":return rgb(d3_rgb_parseNumber(color[0]),d3_rgb_parseNumber(color[1]),d3_rgb_parseNumber(color[2]))}return(color=d3_rgb_names.get(format))?rgb(color.r,color.g,color.b):(null==format||"#"!==format.charAt(0)||isNaN(color=parseInt(format.slice(1),16))||(4===format.length?(r=(3840&color)>>4,r|=r>>4,g=240&color,
g|=g>>4,b=15&color,b|=b<<4):7===format.length&&(r=(16711680&color)>>16,g=(65280&color)>>8,b=255&color)),rgb(r,g,b))}function d3_rgb_hsl(r,g,b){var h,s,min=Math.min(r/=255,g/=255,b/=255),max=Math.max(r,g,b),d=max-min,l=(max+min)/2;return d?(s=l<.5?d/(max+min):d/(2-max-min),h=r==max?(g-b)/d+(g<b?6:0):g==max?(b-r)/d+2:(r-g)/d+4,h*=60):(h=NaN,s=0<l&&l<1?0:h),new d3_hsl(h,s,l)}function d3_rgb_lab(r,g,b){var x=d3_xyz_lab((.4124564*(r=d3_rgb_xyz(r))+.3575761*(g=d3_rgb_xyz(g))+.1804375*(b=d3_rgb_xyz(b)))/d3_lab_X),y=d3_xyz_lab((.2126729*r+.7151522*g+.072175*b)/d3_lab_Y);return d3_lab(116*y-16,500*(x-y),200*(y-d3_xyz_lab((.0193339*r+.119192*g+.9503041*b)/d3_lab_Z)))}
function d3_rgb_xyz(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function d3_rgb_parseNumber(c){var f=parseFloat(c);return"%"===c.charAt(c.length-1)?Math.round(2.55*f):f}d3_time_formatUtc.brighter=function(k){k=Math.pow(.7,arguments.length?k:1);var r=this.r,g=this.g,b=this.b,i=30;return r||g||b?(r&&r<i&&(r=i),g&&g<i&&(g=i),b&&b<i&&(b=i),new d3_rgb(Math.min(255,r/k),Math.min(255,g/k),Math.min(255,b/k))):new d3_rgb(i,i,i)},d3_time_formatUtc.darker=function(k){return new d3_rgb((k=Math.pow(.7,arguments.length?k:1))*this.r,k*this.g,k*this.b)},d3_time_formatUtc.hsl=function(){return d3_rgb_hsl(this.r,this.g,this.b)},
d3_time_formatUtc.toString=function(){return"#"+d3_rgb_hex(this.r)+d3_rgb_hex(this.g)+d3_rgb_hex(this.b)};var d3_rgb_names=d3.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,
darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,
lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,
mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,
springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function d3_functor(v){return"function"==typeof v?v:function(){return v}}function d3_xhrType(response){return function(url,mimeType,callback){return 2===arguments.length&&"function"==typeof mimeType&&(callback=mimeType,mimeType=null),d3_xhr(url,mimeType,response,callback)}}function d3_xhr(url,mimeType,response,callback){var xhr={},dispatch=d3.dispatch("beforesend","progress","load","error"),headers={},request=new XMLHttpRequest,responseType=null
;function respond(){var result,status=request.status;if(!status&&function(request){var type=request.responseType;return type&&"text"!==type?request.response:request.responseText}(request)||200<=status&&status<300||304===status){try{result=response.call(xhr,request)}catch(e){return void dispatch.error.call(xhr,e)}dispatch.load.call(xhr,result)}else dispatch.error.call(xhr,request)}return!this.XDomainRequest||"withCredentials"in request||!/^(http(s)?:)?\/\//.test(url)||(request=new XDomainRequest),"onload"in request?request.onload=request.onerror=respond:request.onreadystatechange=function(){3<request.readyState&&respond()},request.onprogress=function(event){
var o=d3.event;d3.event=event;try{dispatch.progress.call(xhr,request)}finally{d3.event=o}},xhr.header=function(name,value){return name=(name+"").toLowerCase(),arguments.length<2?headers[name]:(null==value?delete headers[name]:headers[name]=value+"",xhr)},xhr.mimeType=function(value){return arguments.length?(mimeType=null==value?null:value+"",xhr):mimeType},xhr.responseType=function(value){return arguments.length?(responseType=value,xhr):responseType},xhr.response=function(value){return response=value,xhr},["get","post"].forEach(function(method){xhr[method]=function(){return xhr.send.apply(xhr,[method].concat(d3_array(arguments)))}}),xhr.send=function(method,
data,callback){if(2===arguments.length&&"function"==typeof data&&(callback=data,data=null),request.open(method,url,!0),null==mimeType||"accept"in headers||(headers.accept=mimeType+",*/*"),request.setRequestHeader)for(var name in headers)request.setRequestHeader(name,headers[name]);return null!=mimeType&&request.overrideMimeType&&request.overrideMimeType(mimeType),null!=responseType&&(request.responseType=responseType),null!=callback&&xhr.on("error",callback).on("load",function(request){callback(null,request)}),dispatch.beforesend.call(xhr,request),request.send(null==data?null:data),xhr},xhr.abort=function(){return request.abort(),xhr},d3.rebind(xhr,dispatch,
"on"),null==callback?xhr:xhr.get(function(callback){return 1===callback.length?function(error,request){callback(null==error?request:null)}:callback}(callback))}d3_rgb_names.forEach(function(key,value){d3_rgb_names.set(key,d3_rgbNumber(value))}),d3.functor=d3_functor,d3.xhr=d3_xhrType(d3_identity),d3.dsv=function(delimiter,mimeType){var reFormat=new RegExp('["'+delimiter+"\n]"),delimiterCode=delimiter.charCodeAt(0);function dsv(url,row,callback){arguments.length<3&&(callback=row,row=null);var xhr=d3_xhr(url,mimeType,null==row?response:typedResponse(row),callback);return xhr.row=function(_){return arguments.length?xhr.response(null==(row=_
)?response:typedResponse(_)):row},xhr}function response(request){return dsv.parse(request.responseText)}function typedResponse(f){return function(request){return dsv.parse(request.responseText,f)}}function formatRow(row){return row.map(formatValue).join(delimiter)}function formatValue(text){return reFormat.test(text)?'"'+text.replace(/\"/g,'""')+'"':text}return dsv.parse=function(text,f){var o;return dsv.parseRows(text,function(row,i){if(o)return o(row,i-1);var a=new Function("d","return {"+row.map(function(name,i){return JSON.stringify(name)+": d["+i+"]"}).join(",")+"}");o=f?function(row,i){return f(a(row),i)}:a})},dsv.parseRows=function(text,f){var t,eol,
EOL={},EOF={},rows=[],N=text.length,I=0,n=0;function token(){if(N<=I)return EOF;if(eol)return eol=!1,EOL;var j=I;if(34===text.charCodeAt(j)){for(var i=j;i++<N;)if(34===text.charCodeAt(i)){if(34!==text.charCodeAt(i+1))break;++i}return I=i+2,13===(c=text.charCodeAt(i+1))?(eol=!0,10===text.charCodeAt(i+2)&&++I):10===c&&(eol=!0),text.slice(j+1,i).replace(/""/g,'"')}for(;I<N;){var c,k=1;if(10===(c=text.charCodeAt(I++)))eol=!0;else if(13===c)eol=!0,10===text.charCodeAt(I)&&(++I,++k);else if(c!==delimiterCode)continue;return text.slice(j,I-k)}return text.slice(j)}for(;(t=token())!==EOF;){for(var a=[];t!==EOL&&t!==EOF;)a.push(t),t=token();f&&null==(a=f(a,n++)
)||rows.push(a)}return rows},dsv.format=function(rows){if(Array.isArray(rows[0]))return dsv.formatRows(rows);var fieldSet=new d3_Set,fields=[];return rows.forEach(function(row){for(var field in row)fieldSet.has(field)||fields.push(fieldSet.add(field))}),[fields.map(formatValue).join(delimiter)].concat(rows.map(function(row){return fields.map(function(field){return formatValue(row[field])}).join(delimiter)})).join("\n")},dsv.formatRows=function(rows){return rows.map(formatRow).join("\n")},dsv},d3.csv=d3.dsv(",","text/csv"),d3.tsv=d3.dsv("\t","text/tab-separated-values");var d3_timer_queueHead,d3_timer_queueTail,d3_timer_interval,d3_timer_timeout,
d3_timer_frame=this[d3_vendorSymbol(this,"requestAnimationFrame")]||function(callback){setTimeout(callback,17)};function d3_timer(callback,delay,then){var timer=arguments.length;timer<2&&(delay=0),timer<3&&(then=Date.now());timer={c:callback,t:then+delay,n:null};return d3_timer_queueTail?d3_timer_queueTail.n=timer:d3_timer_queueHead=timer,d3_timer_queueTail=timer,d3_timer_interval||(d3_timer_timeout=clearTimeout(d3_timer_timeout),d3_timer_interval=1,d3_timer_frame(d3_timer_step)),timer}function d3_timer_step(){var delay=d3_timer_mark(),delay=d3_timer_sweep()-delay;24<delay?(isFinite(delay)&&(clearTimeout(d3_timer_timeout),d3_timer_timeout=setTimeout(
d3_timer_step,delay)),d3_timer_interval=0):(d3_timer_interval=1,d3_timer_frame(d3_timer_step))}function d3_timer_mark(){for(var now=Date.now(),timer=d3_timer_queueHead;timer;)now>=timer.t&&timer.c(now-timer.t)&&(timer.c=null),timer=timer.n;return now}function d3_timer_sweep(){for(var t0,t1=d3_timer_queueHead,time=1/0;t1;)t1=t1.c?(t1.t<time&&(time=t1.t),(t0=t1).n):t0?t0.n=t1.n:d3_timer_queueHead=t1.n;return d3_timer_queueTail=t0,time}function d3_format_precision(x,p){return p-(x?Math.ceil(Math.log(x)/Math.LN10):1)}d3.timer=function(){d3_timer.apply(this,arguments)},d3.timer.flush=function(){d3_timer_mark(),d3_timer_sweep()},d3.round=function(x,n){
return n?Math.round(x*(n=Math.pow(10,n)))/n:Math.round(x)};var d3_formatPrefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(d,i){var k=Math.pow(10,3*abs(8-i));return{scale:8<i?function(d){return d/k}:function(d){return d*k},symbol:d}});d3.formatPrefix=function(value,precision){var i=0;return(value=+value)&&(value<0&&(value*=-1),precision&&(value=d3.round(value,d3_format_precision(value,precision))),i=1+Math.floor(1e-12+Math.log(value)/Math.LN10),i=Math.max(-24,Math.min(24,3*Math.floor((i-1)/3)))),d3_formatPrefixes[8+i/3]};var d3_format_re=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,
d3_format_types=d3.map({b:function(x){return x.toString(2)},c:function(x){return String.fromCharCode(x)},o:function(x){return x.toString(8)},x:function(x){return x.toString(16)},X:function(x){return x.toString(16).toUpperCase()},g:function(x,p){return x.toPrecision(p)},e:function(x,p){return x.toExponential(p)},f:function(x,p){return x.toFixed(p)},r:function(x,p){return(x=d3.round(x,d3_format_precision(x,p))).toFixed(Math.max(0,Math.min(20,d3_format_precision(x*(1+1e-15),p))))}});function d3_format_typeDefault(x){return x+""}var d3_time=d3.time={},d3_date=Date;function d3_date_utc(){this._=new Date(1<arguments.length?Date.UTC.apply(this,arguments
):arguments[0])}d3_date_utc.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){d3_time_prototype.setUTCDate.apply(this._,arguments)},
setDay:function(){d3_time_prototype.setUTCDay.apply(this._,arguments)},setFullYear:function(){d3_time_prototype.setUTCFullYear.apply(this._,arguments)},setHours:function(){d3_time_prototype.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){d3_time_prototype.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){d3_time_prototype.setUTCMinutes.apply(this._,arguments)},setMonth:function(){d3_time_prototype.setUTCMonth.apply(this._,arguments)},setSeconds:function(){d3_time_prototype.setUTCSeconds.apply(this._,arguments)},setTime:function(){d3_time_prototype.setTime.apply(this._,arguments)}};var d3_time_prototype=Date.prototype
;function d3_time_interval(local,step,number){function round(date){var d0=local(date),d1=offset(d0,1);return date-d0<d1-date?d0:d1}function ceil(date){return step(date=local(new d3_date(date-1)),1),date}function offset(date,k){return step(date=new d3_date(+date),k),date}function range(t0,t1,dt){var time=ceil(t0),times=[];if(1<dt)for(;time<t1;)number(time)%dt||times.push(new Date(+time)),step(time,1);else for(;time<t1;)times.push(new Date(+time)),step(time,1);return times}(local.floor=local).round=round,local.ceil=ceil,local.offset=offset,local.range=range;var utc=local.utc=d3_time_interval_utc(local);return(utc.floor=utc).round=d3_time_interval_utc(round),
utc.ceil=d3_time_interval_utc(ceil),utc.offset=d3_time_interval_utc(offset),utc.range=function(t0,t1,dt){try{var utc=new(d3_date=d3_date_utc);return utc._=t0,range(utc,t1,dt)}finally{d3_date=Date}},local}function d3_time_interval_utc(method){return function(date,k){try{var utc=new(d3_date=d3_date_utc);return utc._=date,method(utc,k)._}finally{d3_date=Date}}}function d3_locale_timeFormat(locale){var locale_dateTime=locale.dateTime,locale_date=locale.date,locale_time=locale.time,locale_periods=locale.periods,locale_days=locale.days,locale_shortDays=locale.shortDays,locale_months=locale.months,locale_shortMonths=locale.shortMonths;function d3_time_format(
template){var n=template.length;function format(date){for(var c,p,f,string=[],i=-1,j=0;++i<n;)37===template.charCodeAt(i)&&(string.push(template.slice(j,i)),null!=(p=d3_time_formatPads[c=template.charAt(++i)])&&(c=template.charAt(++i)),(f=d3_time_formats[c])&&(c=f(date,null==p?"e"===c?" ":"0":p)),string.push(c),j=i+1);return string.push(template.slice(j,i)),string.join("")}return format.parse=function(date){var d={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(d3_time_parse(d,template,date,0)!=date.length)return null;"p"in d&&(d.H=d.H%12+12*d.p);var localZ=null!=d.Z&&d3_date!==d3_date_utc,date=new(localZ?d3_date_utc:d3_date);return"j"in d?date.setFullYear(d.y,0,
d.j):"W"in d||"U"in d?("w"in d||(d.w="W"in d?1:0),date.setFullYear(d.y,0,1),date.setFullYear(d.y,0,"W"in d?(d.w+6)%7+7*d.W-(date.getDay()+5)%7:d.w+7*d.U-(date.getDay()+6)%7)):date.setFullYear(d.y,d.m,d.d),date.setHours(d.H+(d.Z/100|0),d.M+d.Z%100,d.S,d.L),localZ?date._:date},format.toString=function(){return template},format}function d3_time_parse(date,template,string,j){for(var c,p,i=0,n=template.length,m=string.length;i<n;){if(m<=j)return-1;if(37===(c=template.charCodeAt(i++))){if(p=template.charAt(i++),!(p=d3_time_parsers[p in d3_time_formatPads?template.charAt(i++):p])||(j=p(date,string,j))<0)return-1}else if(c!=string.charCodeAt(j++))return-1}return j}
d3_time_format.multi=(d3_time_format.utc=function(template){var local=d3_time_format(template);function format(date){try{var utc=new(d3_date=d3_date_utc);return utc._=date,local(utc)}finally{d3_date=Date}}return format.parse=function(string){try{d3_date=d3_date_utc;var date=local.parse(string);return date&&date._}finally{d3_date=Date}},format.toString=local.toString,format}).multi=d3_time_formatMulti;var d3_time_periodLookup=d3.map(),d3_time_dayRe=d3_time_formatRe(locale_days),d3_time_dayLookup=d3_time_formatLookup(locale_days),d3_time_dayAbbrevRe=d3_time_formatRe(locale_shortDays),d3_time_dayAbbrevLookup=d3_time_formatLookup(locale_shortDays),
d3_time_monthRe=d3_time_formatRe(locale_months),d3_time_monthLookup=d3_time_formatLookup(locale_months),d3_time_monthAbbrevRe=d3_time_formatRe(locale_shortMonths),d3_time_monthAbbrevLookup=d3_time_formatLookup(locale_shortMonths);locale_periods.forEach(function(p,i){d3_time_periodLookup.set(p.toLowerCase(),i)});var d3_time_formats={a:function(d){return locale_shortDays[d.getDay()]},A:function(d){return locale_days[d.getDay()]},b:function(d){return locale_shortMonths[d.getMonth()]},B:function(d){return locale_months[d.getMonth()]},c:d3_time_format(locale_dateTime),d:function(d,p){return d3_time_formatPad(d.getDate(),p,2)},e:function(d,p){
return d3_time_formatPad(d.getDate(),p,2)},H:function(d,p){return d3_time_formatPad(d.getHours(),p,2)},I:function(d,p){return d3_time_formatPad(d.getHours()%12||12,p,2)},j:function(d,p){return d3_time_formatPad(1+d3_time.dayOfYear(d),p,3)},L:function(d,p){return d3_time_formatPad(d.getMilliseconds(),p,3)},m:function(d,p){return d3_time_formatPad(d.getMonth()+1,p,2)},M:function(d,p){return d3_time_formatPad(d.getMinutes(),p,2)},p:function(d){return locale_periods[+(12<=d.getHours())]},S:function(d,p){return d3_time_formatPad(d.getSeconds(),p,2)},U:function(d,p){return d3_time_formatPad(d3_time.sundayOfYear(d),p,2)},w:function(d){return d.getDay()},W:function(
d,p){return d3_time_formatPad(d3_time.mondayOfYear(d),p,2)},x:d3_time_format(locale_date),X:d3_time_format(locale_time),y:function(d,p){return d3_time_formatPad(d.getFullYear()%100,p,2)},Y:function(d,p){return d3_time_formatPad(d.getFullYear()%1e4,p,4)},Z:d3_time_zone,"%":function(){return"%"}},d3_time_parsers={a:function(date,n,i){d3_time_dayAbbrevRe.lastIndex=0;n=d3_time_dayAbbrevRe.exec(n.slice(i));return n?(date.w=d3_time_dayAbbrevLookup.get(n[0].toLowerCase()),i+n[0].length):-1},A:function(date,n,i){d3_time_dayRe.lastIndex=0;n=d3_time_dayRe.exec(n.slice(i));return n?(date.w=d3_time_dayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},b:function(date,n,i
){d3_time_monthAbbrevRe.lastIndex=0;n=d3_time_monthAbbrevRe.exec(n.slice(i));return n?(date.m=d3_time_monthAbbrevLookup.get(n[0].toLowerCase()),i+n[0].length):-1},B:function(date,n,i){d3_time_monthRe.lastIndex=0;n=d3_time_monthRe.exec(n.slice(i));return n?(date.m=d3_time_monthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},c:function(date,string,i){return d3_time_parse(date,d3_time_formats.c.toString(),string,i)},d:d3_time_parseDay,e:d3_time_parseDay,H:d3_time_parseHour24,I:d3_time_parseHour24,j:d3_time_parseDayOfYear,L:d3_time_parseMilliseconds,m:d3_time_parseMonthNumber,M:d3_time_parseMinutes,p:function(date,n,i){n=d3_time_periodLookup.get(n.slice(i,i+=2
).toLowerCase());return null==n?-1:(date.p=n,i)},S:d3_time_parseSeconds,U:d3_time_parseWeekNumberSunday,w:d3_time_parseWeekdayNumber,W:d3_time_parseWeekNumberMonday,x:function(date,string,i){return d3_time_parse(date,d3_time_formats.x.toString(),string,i)},X:function(date,string,i){return d3_time_parse(date,d3_time_formats.X.toString(),string,i)},y:d3_time_parseYear,Y:d3_time_parseFullYear,Z:d3_time_parseZone,"%":d3_time_parseLiteralPercent};return d3_time_format}d3_time.year=d3_time_interval(function(date){return(date=d3_time.day(date)).setMonth(0,1),date},function(date,offset){date.setFullYear(date.getFullYear()+offset)},function(date){
return date.getFullYear()}),d3_time.years=d3_time.year.range,d3_time.years.utc=d3_time.year.utc.range,d3_time.day=d3_time_interval(function(date){var day=new d3_date(2e3,0);return day.setFullYear(date.getFullYear(),date.getMonth(),date.getDate()),day},function(date,offset){date.setDate(date.getDate()+offset)},function(date){return date.getDate()-1}),d3_time.days=d3_time.day.range,d3_time.days.utc=d3_time.day.utc.range,d3_time.dayOfYear=function(date){var year=d3_time.year(date);return Math.floor((date-year-6e4*(date.getTimezoneOffset()-year.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(
function(day,i){i=7-i;var interval=d3_time[day]=d3_time_interval(function(date){return(date=d3_time.day(date)).setDate(date.getDate()-(date.getDay()+i)%7),date},function(date,offset){date.setDate(date.getDate()+7*Math.floor(offset))},function(date){var day=d3_time.year(date).getDay();return Math.floor((d3_time.dayOfYear(date)+(day+i)%7)/7)-(day!==i)});d3_time[day+"s"]=interval.range,d3_time[day+"s"].utc=interval.utc.range,d3_time[day+"OfYear"]=function(date){var day=d3_time.year(date).getDay();return Math.floor((d3_time.dayOfYear(date)+(day+i)%7)/7)}}),d3_time.week=d3_time.sunday,d3_time.weeks=d3_time.sunday.range,d3_time.weeks.utc=d3_time.sunday.utc.range,
d3_time.weekOfYear=d3_time.sundayOfYear;var d3_time_formatPads={"-":"",_:" ",0:"0"},d3_time_numberRe=/^\s*\d+/,d3_time_percentRe=/^%/;function d3_time_formatPad(length,fill,width){var sign=length<0?"-":"",string=(sign?-length:length)+"",length=string.length;return sign+(length<width?new Array(width-length+1).join(fill)+string:string)}function d3_time_formatRe(names){return new RegExp("^(?:"+names.map(d3.requote).join("|")+")","i")}function d3_time_formatLookup(names){for(var map=new d3_Map,i=-1,n=names.length;++i<n;)map.set(names[i].toLowerCase(),i);return map}function d3_time_parseWeekdayNumber(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(
n.slice(i,i+1));return n?(date.w=+n[0],i+n[0].length):-1}function d3_time_parseWeekNumberSunday(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i));return n?(date.U=+n[0],i+n[0].length):-1}function d3_time_parseWeekNumberMonday(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i));return n?(date.W=+n[0],i+n[0].length):-1}function d3_time_parseFullYear(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+4));return n?(date.y=+n[0],i+n[0].length):-1}function d3_time_parseYear(d,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(d.y=(d=+n[0])+(68<d?1900:2e3),
i+n[0].length):-1}function d3_time_parseZone(date,string,i){return/^[+-]\d{4}$/.test(string=string.slice(i,i+5))?(date.Z=-string,i+5):-1}function d3_time_parseMonthNumber(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(date.m=n[0]-1,i+n[0].length):-1}function d3_time_parseDay(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(date.d=+n[0],i+n[0].length):-1}function d3_time_parseDayOfYear(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+3));return n?(date.j=+n[0],i+n[0].length):-1}function d3_time_parseHour24(date,n,i){d3_time_numberRe.lastIndex=0
;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(date.H=+n[0],i+n[0].length):-1}function d3_time_parseMinutes(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(date.M=+n[0],i+n[0].length):-1}function d3_time_parseSeconds(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+2));return n?(date.S=+n[0],i+n[0].length):-1}function d3_time_parseMilliseconds(date,n,i){d3_time_numberRe.lastIndex=0;n=d3_time_numberRe.exec(n.slice(i,i+3));return n?(date.L=+n[0],i+n[0].length):-1}function d3_time_zone(zh){var zm=zh.getTimezoneOffset(),zs=0<zm?"-":"+",zh=abs(zm)/60|0,zm=abs(zm)%60
;return zs+d3_time_formatPad(zh,"0",2)+d3_time_formatPad(zm,"0",2)}function d3_time_parseLiteralPercent(date,n,i){d3_time_percentRe.lastIndex=0;n=d3_time_percentRe.exec(n.slice(i,i+1));return n?i+n[0].length:-1}function d3_time_formatMulti(formats){for(var n=formats.length,i=-1;++i<n;)formats[i][0]=this(formats[i][0]);return function(date){for(var i=0,f=formats[i];!f[1](date);)f=formats[++i];return f[0](date)}}d3.locale=function(locale){return{numberFormat:function(locale){var locale_decimal=locale.decimal,locale_thousands=locale.thousands,locale_grouping=locale.grouping,locale_currency=locale.currency,formatGroup=locale_grouping&&locale_thousands?function(
value,width){for(var i=value.length,t=[],j=0,g=locale_grouping[0],length=0;0<i&&0<g&&(width<length+g+1&&(g=Math.max(1,width-length)),t.push(value.substring(i-=g,i+g)),!((length+=g+1)>width));)g=locale_grouping[j=(j+1)%locale_grouping.length];return t.reverse().join(locale_thousands)}:d3_identity;return function(symbol){var match=d3_format_re.exec(symbol),fill=match[1]||" ",align=match[2]||">",sign=match[3]||"-",symbol=match[4]||"",zfill=match[5],width=+match[6],comma=match[7],precision=match[8],type=match[9],scale=1,prefix="",suffix="",integer=!1,exponent=!0,precision=precision&&+precision.substring(1);switch((zfill||"0"===fill&&"="===align)&&(zfill=fill="0"
,align="="),type){case"n":comma=!0,type="g";break;case"%":scale=100,suffix="%",type="f";break;case"p":scale=100,suffix="%",type="r";break;case"b":case"o":case"x":case"X":"#"===symbol&&(prefix="0"+type.toLowerCase());case"c":exponent=!1;case"d":integer=!0,precision=0;break;case"s":scale=-1,type="r"}"$"===symbol&&(prefix=locale_currency[0],suffix=locale_currency[1]),"r"!=type||precision||(type="g"),null!=precision&&("g"==type?precision=Math.max(1,Math.min(21,precision)):"e"!=type&&"f"!=type||(precision=Math.max(0,Math.min(20,precision)))),type=d3_format_types.get(type)||d3_format_typeDefault;var zcomma=zfill&&comma;return function(value){var fullSuffix=suffix
;if(integer&&value%1)return"";var negative=value<0||0===value&&1/value<0?(value=-value,"-"):"-"===sign?"":sign;scale<0?(value=(after=d3.formatPrefix(value,precision)).scale(value),fullSuffix=after.symbol+suffix):value*=scale;var before,after,padding=(value=type(value,precision)).lastIndexOf(".");after=padding<0?(length=exponent?value.lastIndexOf("e"):-1)<0?(before=value,""):(before=value.substring(0,length),value.substring(length)):(before=value.substring(0,padding),locale_decimal+value.substring(padding+1)),!zfill&&comma&&(before=formatGroup(before,1/0));var length=prefix.length+before.length+after.length+(zcomma?0:negative.length),
padding=length<width?new Array(length=width-length+1).join(fill):"";return zcomma&&(before=formatGroup(padding+before,padding.length?width-after.length:1/0)),negative+=prefix,value=before+after,("<"===align?negative+value+padding:">"===align?padding+negative+value:"^"===align?padding.substring(0,length>>=1)+negative+value+padding.substring(length):negative+(zcomma?value:padding+value))+fullSuffix}}}(locale),timeFormat:d3_locale_timeFormat(locale)}};d3_time_formatIso=d3.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday",
"Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function d3_adder(){}d3.format=d3_time_formatIso.numberFormat,d3.geo={},d3_adder.prototype={s:0,t:0,add:function(y){d3_adderSum(y,this.t,d3_adderTemp),d3_adderSum(d3_adderTemp.s,this.s,this),this.s?this.t+=d3_adderTemp.t:this.s=d3_adderTemp.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var d3_adderTemp=new d3_adder;function d3_adderSum(a,b,o){
var av=o.s=a+b,bv=av-a,av=av-bv;o.t=a-av+(b-bv)}function d3_geo_streamGeometry(geometry,listener){geometry&&d3_geo_streamGeometryType.hasOwnProperty(geometry.type)&&d3_geo_streamGeometryType[geometry.type](geometry,listener)}d3.geo.stream=function(object,listener){object&&d3_geo_streamObjectType.hasOwnProperty(object.type)?d3_geo_streamObjectType[object.type](object,listener):d3_geo_streamGeometry(object,listener)};var d3_geo_streamObjectType={Feature:function(feature,listener){d3_geo_streamGeometry(feature.geometry,listener)},FeatureCollection:function(object,listener){for(var features=object.features,i=-1,n=features.length;++i<n;)d3_geo_streamGeometry(
features[i].geometry,listener)}},d3_geo_streamGeometryType={Sphere:function(object,listener){listener.sphere()},Point:function(object,listener){object=object.coordinates,listener.point(object[0],object[1],object[2])},MultiPoint:function(object,listener){for(var coordinates=object.coordinates,i=-1,n=coordinates.length;++i<n;)object=coordinates[i],listener.point(object[0],object[1],object[2])},LineString:function(object,listener){d3_geo_streamLine(object.coordinates,listener,0)},MultiLineString:function(object,listener){for(var coordinates=object.coordinates,i=-1,n=coordinates.length;++i<n;)d3_geo_streamLine(coordinates[i],listener,0)},Polygon:function(object,
listener){d3_geo_streamPolygon(object.coordinates,listener)},MultiPolygon:function(object,listener){for(var coordinates=object.coordinates,i=-1,n=coordinates.length;++i<n;)d3_geo_streamPolygon(coordinates[i],listener)},GeometryCollection:function(object,listener){for(var geometries=object.geometries,i=-1,n=geometries.length;++i<n;)d3_geo_streamGeometry(geometries[i],listener)}};function d3_geo_streamLine(coordinates,listener,closed){var coordinate,i=-1,n=coordinates.length-closed;for(listener.lineStart();++i<n;)coordinate=coordinates[i],listener.point(coordinate[0],coordinate[1],coordinate[2]);listener.lineEnd()}function d3_geo_streamPolygon(coordinates,
listener){var i=-1,n=coordinates.length;for(listener.polygonStart();++i<n;)d3_geo_streamLine(coordinates[i],listener,1);listener.polygonEnd()}d3.geo.area=function(object){return d3_geo_areaSum=0,d3.geo.stream(object,d3_geo_area),d3_geo_areaSum};var d3_geo_areaSum,λ0,φ0,λ1,φ1,λ_,λ__,φ__,p0,dλSum,ranges,range,bound,d3_geo_centroidW0,d3_geo_centroidW1,d3_geo_centroidX0,d3_geo_centroidY0,d3_geo_centroidZ0,d3_geo_centroidX1,d3_geo_centroidY1,d3_geo_centroidZ1,d3_geo_centroidX2,d3_geo_centroidY2,d3_geo_centroidZ2,d3_geo_areaRingSum=new d3_adder,d3_geo_area={sphere:function(){d3_geo_areaSum+=4*π},point:d3_noop,lineStart:d3_noop,lineEnd:d3_noop,
polygonStart:function(){d3_geo_areaRingSum.reset(),d3_geo_area.lineStart=d3_geo_areaRingStart},polygonEnd:function(){var area=2*d3_geo_areaRingSum;d3_geo_areaSum+=area<0?4*π+area:area,d3_geo_area.lineStart=d3_geo_area.lineEnd=d3_geo_area.point=d3_noop}};function d3_geo_areaRingStart(){var λ00,φ00,λ0,cosφ0,sinφ0;function nextPoint(λ,u){u=u*d3_radians/2+π/4;var k=(λ*=d3_radians)-λ0,sdλ=0<=k?1:-1,v=sdλ*k,cosφ=Math.cos(u),sinφ=Math.sin(u),k=sinφ0*sinφ,u=cosφ0*cosφ+k*Math.cos(v),v=k*sdλ*Math.sin(v);d3_geo_areaRingSum.add(Math.atan2(v,u)),λ0=λ,cosφ0=cosφ,sinφ0=sinφ}d3_geo_area.point=function(λ,φ){d3_geo_area.point=nextPoint,λ0=(λ00=λ)*d3_radians,cosφ0=Math.cos(φ=(
φ00=φ)*d3_radians/2+π/4),sinφ0=Math.sin(φ)},d3_geo_area.lineEnd=function(){nextPoint(λ00,φ00)}}function d3_geo_cartesian(cosφ){var λ=cosφ[0],φ=cosφ[1],cosφ=Math.cos(φ);return[cosφ*Math.cos(λ),cosφ*Math.sin(λ),Math.sin(φ)]}function d3_geo_cartesianDot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function d3_geo_cartesianCross(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function d3_geo_cartesianAdd(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function d3_geo_cartesianScale(vector,k){return[vector[0]*k,vector[1]*k,vector[2]*k]}function d3_geo_cartesianNormalize(d){var l=Math.sqrt(d[0]*d[0]+d[1]*d[1]+d[2]*d[2]);d[0]/=l,d[1]/=l,d[2]/=l}
function d3_geo_spherical(cartesian){return[Math.atan2(cartesian[1],cartesian[0]),d3_asin(cartesian[2])]}function d3_geo_sphericalEqual(a,b){return abs(a[0]-b[0])<ε&&abs(a[1]-b[1])<ε}function point(λ,φ){ranges.push(range=[λ0=λ,λ1=λ]),φ<φ0&&(φ0=φ),φ1<φ&&(φ1=φ)}function linePoint(λ,φ){var inflection,s,λi,antimeridian,φi,p=d3_geo_cartesian([λ*d3_radians,φ*d3_radians]);p0?(λi=d3_geo_cartesianCross(p0,p),d3_geo_cartesianNormalize(inflection=d3_geo_cartesianCross([λi[1],-λi[0],0],λi)),inflection=d3_geo_spherical(inflection),s=0<(antimeridian=λ-λ_)?1:-1,λi=inflection[0]*d3_degrees*s,(antimeridian=180<abs(antimeridian))^(s*λ_<λi&&λi<s*λ)?(φi=inflection[1]*d3_degrees
,φ1<φi&&(φ1=φi)):antimeridian^(s*λ_<(λi=(λi+360)%360-180)&&λi<s*λ)?(φi=-inflection[1]*d3_degrees)<φ0&&(φ0=φi):(φ<φ0&&(φ0=φ),φ1<φ&&(φ1=φ)),antimeridian?λ<λ_?angle(λ0,λ)>angle(λ0,λ1)&&(λ1=λ):angle(λ,λ1)>angle(λ0,λ1)&&(λ0=λ):λ0<=λ1?(λ<λ0&&(λ0=λ),λ1<λ&&(λ1=λ)):λ_<λ?angle(λ0,λ)>angle(λ0,λ1)&&(λ1=λ):angle(λ,λ1)>angle(λ0,λ1)&&(λ0=λ)):point(λ,φ),p0=p,λ_=λ}function lineStart(){bound.point=linePoint}function lineEnd(){range[0]=λ0,range[1]=λ1,bound.point=point,p0=null}function ringPoint(λ,φ){var dλ;p0?dλSum+=180<abs(dλ=λ-λ_)?dλ+(0<dλ?360:-360):dλ:(λ__=λ,φ__=φ),d3_geo_area.point(λ,φ),linePoint(λ,φ)}function ringStart(){d3_geo_area.lineStart()}function ringEnd(){
ringPoint(λ__,φ__),d3_geo_area.lineEnd(),abs(dλSum)>ε&&(λ0=-(λ1=180)),range[0]=λ0,range[1]=λ1,p0=null}function angle(λ0,λ1){return(λ1-=λ0)<0?λ1+360:λ1}function compareRanges(a,b){return a[0]-b[0]}function withinRange(x,range){return range[0]<=range[1]?range[0]<=x&&x<=range[1]:x<range[0]||range[1]<x}d3.geo.bounds=(bound={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){bound.point=ringPoint,bound.lineStart=ringStart,bound.lineEnd=ringEnd,dλSum=0,d3_geo_area.polygonStart()},polygonEnd:function(){d3_geo_area.polygonEnd(),bound.point=point,bound.lineStart=lineStart,bound.lineEnd=lineEnd,d3_geo_areaRingSum<0?(λ0=-(λ1=180),φ0=-(φ1=90)
):ε<dλSum?φ1=90:dλSum<-ε&&(φ0=-90),range[0]=λ0,range[1]=λ1}},function(feature){if(φ1=λ1=-(λ0=φ0=1/0),ranges=[],d3.geo.stream(feature,bound),n=ranges.length){ranges.sort(compareRanges);for(var i=1,merged=[a=ranges[0]];i<n;++i)withinRange((b=ranges[i])[0],a)||withinRange(b[1],a)?(angle(a[0],b[1])>angle(a[0],a[1])&&(a[1]=b[1]),angle(b[0],a[1])>angle(a[0],a[1])&&(a[0]=b[0])):merged.push(a=b);for(var dλ,n,b,best=-1/0,i=0,a=merged[n=merged.length-1];i<=n;a=b,++i)b=merged[i],(dλ=angle(a[1],b[0]))>best&&(best=dλ,λ0=b[0],λ1=a[1])}return ranges=range=null,λ0===1/0||φ0===1/0?[[NaN,NaN],[NaN,NaN]]:[[λ0,φ0],[λ1,φ1]]}),d3.geo.centroid=function(m){
d3_geo_centroidW0=d3_geo_centroidW1=d3_geo_centroidX0=d3_geo_centroidY0=d3_geo_centroidZ0=d3_geo_centroidX1=d3_geo_centroidY1=d3_geo_centroidZ1=d3_geo_centroidX2=d3_geo_centroidY2=d3_geo_centroidZ2=0,d3.geo.stream(m,d3_geo_centroid);var x=d3_geo_centroidX2,y=d3_geo_centroidY2,z=d3_geo_centroidZ2,m=x*x+y*y+z*z;return m<ε2&&(x=d3_geo_centroidX1,y=d3_geo_centroidY1,z=d3_geo_centroidZ1,d3_geo_centroidW1<ε&&(x=d3_geo_centroidX0,y=d3_geo_centroidY0,z=d3_geo_centroidZ0),(m=x*x+y*y+z*z)<ε2)?[NaN,NaN]:[Math.atan2(y,x)*d3_degrees,d3_asin(z/Math.sqrt(m))*d3_degrees]};var d3_geo_centroid={sphere:d3_noop,point:d3_geo_centroidPoint,lineStart:d3_geo_centroidLineStart,
lineEnd:d3_geo_centroidLineEnd,polygonStart:function(){d3_geo_centroid.lineStart=d3_geo_centroidRingStart},polygonEnd:function(){d3_geo_centroid.lineStart=d3_geo_centroidLineStart}};function d3_geo_centroidPoint(λ,φ){λ*=d3_radians;var cosφ=Math.cos(φ*=d3_radians);d3_geo_centroidPointXYZ(cosφ*Math.cos(λ),cosφ*Math.sin(λ),Math.sin(φ))}function d3_geo_centroidPointXYZ(x,y,z){d3_geo_centroidX0+=(x-d3_geo_centroidX0)/++d3_geo_centroidW0,d3_geo_centroidY0+=(y-d3_geo_centroidY0)/d3_geo_centroidW0,d3_geo_centroidZ0+=(z-d3_geo_centroidZ0)/d3_geo_centroidW0}function d3_geo_centroidLineStart(){var x0,y0,z0;function nextPoint(z,w){z*=d3_radians;var y=Math.cos(
w*=d3_radians),x=y*Math.cos(z),y=y*Math.sin(z),z=Math.sin(w),w=Math.atan2(Math.sqrt((w=y0*z-z0*y)*w+(w=z0*x-x0*z)*w+(w=x0*y-y0*x)*w),x0*x+y0*y+z0*z);d3_geo_centroidW1+=w,d3_geo_centroidX1+=w*(x0+(x0=x)),d3_geo_centroidY1+=w*(y0+(y0=y)),d3_geo_centroidZ1+=w*(z0+(z0=z)),d3_geo_centroidPointXYZ(x0,y0,z0)}d3_geo_centroid.point=function(λ,φ){λ*=d3_radians;var cosφ=Math.cos(φ*=d3_radians);x0=cosφ*Math.cos(λ),y0=cosφ*Math.sin(λ),z0=Math.sin(φ),d3_geo_centroid.point=nextPoint,d3_geo_centroidPointXYZ(x0,y0,z0)}}function d3_geo_centroidLineEnd(){d3_geo_centroid.point=d3_geo_centroidPoint}function d3_geo_centroidRingStart(){var λ00,φ00,x0,y0,z0;function nextPoint(w,v){
w*=d3_radians;var m=Math.cos(v*=d3_radians),x=m*Math.cos(w),y=m*Math.sin(w),z=Math.sin(v),cx=y0*z-z0*y,cy=z0*x-x0*z,cz=x0*y-y0*x,m=Math.sqrt(cx*cx+cy*cy+cz*cz),w=x0*x+y0*y+z0*z,v=m&&-d3_acos(w)/m,w=Math.atan2(m,w);d3_geo_centroidX2+=v*cx,d3_geo_centroidY2+=v*cy,d3_geo_centroidZ2+=v*cz,d3_geo_centroidW1+=w,d3_geo_centroidX1+=w*(x0+(x0=x)),d3_geo_centroidY1+=w*(y0+(y0=y)),d3_geo_centroidZ1+=w*(z0+(z0=z)),d3_geo_centroidPointXYZ(x0,y0,z0)}d3_geo_centroid.point=function(λ,φ){λ00=λ,φ00=φ,d3_geo_centroid.point=nextPoint,λ*=d3_radians;var cosφ=Math.cos(φ*=d3_radians);x0=cosφ*Math.cos(λ),y0=cosφ*Math.sin(λ),z0=Math.sin(φ),d3_geo_centroidPointXYZ(x0,y0,z0)},
d3_geo_centroid.lineEnd=function(){nextPoint(λ00,φ00),d3_geo_centroid.lineEnd=d3_geo_centroidLineEnd,d3_geo_centroid.point=d3_geo_centroidPoint}}function d3_geo_compose(a,b){function compose(x,y){return x=a(x,y),b(x[0],x[1])}return a.invert&&b.invert&&(compose.invert=function(x,y){return(x=b.invert(x,y))&&a.invert(x[0],x[1])}),compose}function d3_true(){return!0}function d3_geo_clipPolygon(segments,compare,clipStartInside,interpolate,listener){var subject=[],clip=[];if(segments.forEach(function(segment){if(!((n=segment.length-1)<=0)){var n,p0=segment[0],p1=segment[n];if(d3_geo_sphericalEqual(p0,p1)){listener.lineStart();for(var i=0;i<n;++i)listener.point((
p0=segment[i])[0],p0[1]);listener.lineEnd()}else{var a=new d3_geo_clipPolygonIntersection(p0,segment,null,!0),b=new d3_geo_clipPolygonIntersection(p0,null,a,!1);a.o=b,subject.push(a),clip.push(b),a=new d3_geo_clipPolygonIntersection(p1,segment,null,!1),b=new d3_geo_clipPolygonIntersection(p1,null,a,!0),a.o=b,subject.push(a),clip.push(b)}}}),clip.sort(compare),d3_geo_clipPolygonLinkCircular(subject),d3_geo_clipPolygonLinkCircular(clip),subject.length){for(var i=0,entry=clipStartInside,n=clip.length;i<n;++i)clip[i].e=entry=!entry;for(var points,point,start=subject[0];;){for(var current=start,isSubject=!0;current.v;)if((current=current.n)===start)return
;points=current.z,listener.lineStart();do{if(current.v=current.o.v=!0,current.e){if(isSubject)for(i=0,n=points.length;i<n;++i)listener.point((point=points[i])[0],point[1]);else interpolate(current.x,current.n.x,1,listener);current=current.n}else{if(isSubject)for(i=(points=current.p.z).length-1;0<=i;--i)listener.point((point=points[i])[0],point[1]);else interpolate(current.x,current.p.x,-1,listener);current=current.p}}while(points=(current=current.o).z,isSubject=!isSubject,!current.v);listener.lineEnd()}}}function d3_geo_clipPolygonLinkCircular(array){if(n=array.length){for(var n,b,i=0,a=array[0];++i<n;)a.n=b=array[i],b.p=a,a=b;a.n=b=array[0],b.p=a}}
function d3_geo_clipPolygonIntersection(point,points,other,entry){this.x=point,this.z=points,this.o=other,this.e=entry,this.v=!1,this.n=this.p=null}function d3_geo_clip(pointVisible,clipLine,interpolate,clipStart){return function(rotate,listener){var segments,line=clipLine(listener),rotatedClipStart=rotate.invert(clipStart[0],clipStart[1]),clip={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){clip.point=pointRing,clip.lineStart=ringStart,clip.lineEnd=ringEnd,segments=[],polygon=[]},polygonEnd:function(){clip.point=point,clip.lineStart=lineStart,clip.lineEnd=lineEnd,segments=d3.merge(segments);var clipStartInside=function(point,polygon
){var meridian=point[0],parallel=point[1],meridianNormal=[Math.sin(meridian),-Math.cos(meridian),0],polarAngle=0,winding=0;d3_geo_areaRingSum.reset();for(var i=0,n=polygon.length;i<n;++i){var ring=polygon[i],m=ring.length;if(m)for(var point0=ring[0],λ0=point0[0],φ0=point0[1]/2+π/4,sinφ0=Math.sin(φ0),cosφ0=Math.cos(φ0),j=1;;){j===m&&(j=0);var λ=(point=ring[j])[0],k=point[1]/2+π/4,sinφ=Math.sin(k),cosφ=Math.cos(k),dλ=λ-λ0,φarc=0<=dλ?1:-1,arc=φarc*dλ,antimeridian=π<arc,k=sinφ0*sinφ;if(d3_geo_areaRingSum.add(Math.atan2(k*φarc*Math.sin(arc),cosφ0*cosφ+k*Math.cos(arc))),polarAngle+=antimeridian?dλ+φarc*τ:dλ,antimeridian^meridian<=λ0^meridian<=λ&&(
d3_geo_cartesianNormalize(arc=d3_geo_cartesianCross(d3_geo_cartesian(point0),d3_geo_cartesian(point))),d3_geo_cartesianNormalize(φarc=d3_geo_cartesianCross(meridianNormal,arc)),((φarc=(antimeridian^0<=dλ?-1:1)*d3_asin(φarc[2]))<parallel||parallel===φarc&&(arc[0]||arc[1]))&&(winding+=antimeridian^0<=dλ?1:-1)),!j++)break;λ0=λ,sinφ0=sinφ,cosφ0=cosφ,point0=point}}return(polarAngle<-ε||polarAngle<ε&&d3_geo_areaRingSum<0)^1&winding}(rotatedClipStart,polygon);segments.length?(polygonStarted||(listener.polygonStart(),polygonStarted=!0),d3_geo_clipPolygon(segments,d3_geo_clipSort,clipStartInside,interpolate,listener)):clipStartInside&&(polygonStarted||(
listener.polygonStart(),polygonStarted=!0),listener.lineStart(),interpolate(null,null,1,listener),listener.lineEnd()),polygonStarted&&(listener.polygonEnd(),polygonStarted=!1),segments=polygon=null},sphere:function(){listener.polygonStart(),listener.lineStart(),interpolate(null,null,1,listener),listener.lineEnd(),listener.polygonEnd()}};function point(λ,φ){var point=rotate(λ,φ);pointVisible(λ=point[0],φ=point[1])&&listener.point(λ,φ)}function pointLine(λ,point){point=rotate(λ,point);line.point(point[0],point[1])}function lineStart(){clip.point=pointLine,line.lineStart()}function lineEnd(){clip.point=point,line.lineEnd()}var polygon,ring,
buffer=d3_geo_clipBufferListener(),ringListener=clipLine(buffer),polygonStarted=!1;function pointRing(λ,point){ring.push([λ,point]);point=rotate(λ,point);ringListener.point(point[0],point[1])}function ringStart(){ringListener.lineStart(),ring=[]}function ringEnd(){pointRing(ring[0][0],ring[0][1]),ringListener.lineEnd();var segment,clean=ringListener.clean(),ringSegments=buffer.buffer(),n=ringSegments.length;if(ring.pop(),polygon.push(ring),ring=null,n)if(1&clean){var point,i=-1;if(0<(n=(segment=ringSegments[0]).length-1)){for(polygonStarted||(listener.polygonStart(),polygonStarted=!0),listener.lineStart();++i<n;)listener.point((point=segment[i])[0],point[1])
;listener.lineEnd()}}else 1<n&&2&clean&&ringSegments.push(ringSegments.pop().concat(ringSegments.shift())),segments.push(ringSegments.filter(d3_geo_clipSegmentLength1))}return clip}}function d3_geo_clipSegmentLength1(segment){return 1<segment.length}function d3_geo_clipBufferListener(){var line,lines=[];return{lineStart:function(){lines.push(line=[])},point:function(λ,φ){line.push([λ,φ])},lineEnd:d3_noop,buffer:function(){var buffer=lines;return lines=[],line=null,buffer},rejoin:function(){1<lines.length&&lines.push(lines.pop().concat(lines.shift()))}}}function d3_geo_clipSort(a,b){return((a=a.x)[0]<0?a[1]-halfπ-ε:halfπ-a[1])-((b=b.x
)[0]<0?b[1]-halfπ-ε:halfπ-b[1])}var d3_geo_clipAntimeridian=d3_geo_clip(d3_true,function(listener){var clean,λ0=NaN,φ0=NaN,sλ0=NaN;return{lineStart:function(){listener.lineStart(),clean=1},point:function(λ1,φ1){var sλ1=0<λ1?π:-π,dλ=abs(λ1-λ0);abs(dλ-π)<ε?(listener.point(λ0,φ0=0<(φ0+φ1)/2?halfπ:-halfπ),listener.point(sλ0,φ0),listener.lineEnd(),listener.lineStart(),listener.point(sλ1,φ0),listener.point(λ1,φ0),clean=0):sλ0!==sλ1&&π<=dλ&&(abs(λ0-sλ0)<ε&&(λ0-=sλ0*ε),abs(λ1-sλ1)<ε&&(λ1-=sλ1*ε),φ0=function(λ0,φ0,cosφ0,φ1){var cosφ1,sinλ0_λ1=Math.sin(λ0-cosφ0);return abs(sinλ0_λ1)>ε?Math.atan((Math.sin(φ0)*(cosφ1=Math.cos(φ1))*Math.sin(cosφ0)-Math.sin(φ1)*(
cosφ0=Math.cos(φ0))*Math.sin(λ0))/(cosφ0*cosφ1*sinλ0_λ1)):(φ0+φ1)/2}(λ0,φ0,λ1,φ1),listener.point(sλ0,φ0),listener.lineEnd(),listener.lineStart(),listener.point(sλ1,φ0),clean=0),listener.point(λ0=λ1,φ0=φ1),sλ0=sλ1},lineEnd:function(){listener.lineEnd(),λ0=φ0=NaN},clean:function(){return 2-clean}}},function(s,to,direction,listener){var φ;{null==s?(φ=direction*halfπ,listener.point(-π,φ),listener.point(0,φ),listener.point(π,φ),listener.point(π,0),listener.point(π,-φ),listener.point(0,-φ),listener.point(-π,-φ),listener.point(-π,0),listener.point(-π,φ)):abs(s[0]-to[0])>ε?(s=s[0]<to[0]?π:-π,φ=direction*s/2,listener.point(-s,φ),listener.point(0,φ),listener.point(s,φ
)):listener.point(to[0],to[1])}},[-π,-π/2]);function d3_geo_clipCircle(radius){var cr=Math.cos(radius),smallRadius=0<cr,notHemisphere=abs(cr)>ε;return d3_geo_clip(visible,function(listener){var point0,c0,v0,v00,clean;return{lineStart:function(){v00=v0=!1,clean=1},point:function(λ,c){var point2,t,point1=[λ,c],v=visible(λ,c),c=smallRadius?v?0:code(λ,c):v?code(λ+(λ<0?π:-π),c):0;!point0&&(v00=v0=v)&&listener.lineStart(),v!==v0&&(point2=intersect(point0,point1),(d3_geo_sphericalEqual(point0,point2)||d3_geo_sphericalEqual(point1,point2))&&(point1[0]+=ε,point1[1]+=ε,v=visible(point1[0],point1[1]))),v!==v0?(clean=0,v?(listener.lineStart(),point2=intersect(point1,
point0),listener.point(point2[0],point2[1])):(point2=intersect(point0,point1),listener.point(point2[0],point2[1]),listener.lineEnd()),point0=point2):notHemisphere&&point0&&smallRadius^v&&(c&c0||!(t=intersect(point1,point0,!0))||(clean=0,smallRadius?(listener.lineStart(),listener.point(t[0][0],t[0][1]),listener.point(t[1][0],t[1][1]),listener.lineEnd()):(listener.point(t[1][0],t[1][1]),listener.lineEnd(),listener.lineStart(),listener.point(t[0][0],t[0][1])))),!v||point0&&d3_geo_sphericalEqual(point0,point1)||listener.point(point1[0],point1[1]),point0=point1,v0=v,c0=c},lineEnd:function(){v0&&listener.lineEnd(),point0=null},clean:function(){return clean|(
v00&&v0)<<1}}},d3_geo_circleInterpolate(radius,6*d3_radians),smallRadius?[0,-radius]:[-π,radius-π]);function visible(λ,φ){return Math.cos(λ)*Math.cos(φ)>cr}function intersect(δλ,polar,φ1){var φ0=[1,0,0],q=d3_geo_cartesianCross(d3_geo_cartesian(δλ),d3_geo_cartesian(polar)),u=d3_geo_cartesianDot(q,q),w=q[0],q1=u-w*w;if(!q1)return!φ1&&δλ;var t=cr*u/q1,λ0=-cr*w/q1,λ1=d3_geo_cartesianCross(φ0,q),A=d3_geo_cartesianScale(φ0,t);d3_geo_cartesianAdd(A,d3_geo_cartesianScale(q,λ0));u=λ1,w=d3_geo_cartesianDot(A,u),q1=d3_geo_cartesianDot(u,u),φ0=w*w-q1*(d3_geo_cartesianDot(A,A)-1);if(!(φ0<0)){t=Math.sqrt(φ0),q=d3_geo_cartesianScale(u,(-w-t)/q1);if(d3_geo_cartesianAdd(q,A)
,q=d3_geo_spherical(q),!φ1)return q;var z,λ0=δλ[0],λ1=polar[0],φ0=δλ[1],φ1=polar[1];λ1<λ0&&(z=λ0,λ0=λ1,λ1=z);δλ=λ1-λ0,polar=abs(δλ-π)<ε;if(!polar&&φ1<φ0&&(z=φ0,φ0=φ1,φ1=z),polar||δλ<ε?polar?0<φ0+φ1^q[1]<(abs(q[0]-λ0)<ε?φ0:φ1):φ0<=q[1]&&q[1]<=φ1:π<δλ^(λ0<=q[0]&&q[0]<=λ1)){q1=d3_geo_cartesianScale(u,(-w+t)/q1);return d3_geo_cartesianAdd(q1,A),[q,d3_geo_spherical(q1)]}}}function code(λ,φ){var r=smallRadius?radius:π-radius,code=0;return λ<-r?code|=1:r<λ&&(code|=2),φ<-r?code|=4:r<φ&&(code|=8),code}}function d3_geom_clipLine(x0,y0,x1,y1){return function(line){var dy=line.a,r=line.b,ax=dy.x,ay=dy.y,t0=0,t1=1,dx=r.x-ax,dy=r.y-ay,r=x0-ax;if(dx||!(0<r)){if(r/=dx,dx<0
){if(r<t0)return;r<t1&&(t1=r)}else if(0<dx){if(t1<r)return;t0<r&&(t0=r)}if(r=x1-ax,dx||!(r<0)){if(r/=dx,dx<0){if(t1<r)return;t0<r&&(t0=r)}else if(0<dx){if(r<t0)return;r<t1&&(t1=r)}if(r=y0-ay,dy||!(0<r)){if(r/=dy,dy<0){if(r<t0)return;r<t1&&(t1=r)}else if(0<dy){if(t1<r)return;t0<r&&(t0=r)}if(r=y1-ay,dy||!(r<0)){if(r/=dy,dy<0){if(t1<r)return;t0<r&&(t0=r)}else if(0<dy){if(r<t0)return;r<t1&&(t1=r)}return 0<t0&&(line.a={x:ax+t0*dx,y:ay+t0*dy}),t1<1&&(line.b={x:ax+t1*dx,y:ay+t1*dy}),line}}}}}}var d3_geo_clipExtentMAX=1e9;function d3_geo_clipExtent(x0,y0,x1,y1){return function(listener){var segments,polygon,ring,x__,y__,v__,x_,y_,v_,first,clean,listener_=listener,
bufferListener=d3_geo_clipBufferListener(),clipLine=d3_geom_clipLine(x0,y0,x1,y1),clip={point:point,lineStart:function(){clip.point=linePoint,polygon&&polygon.push(ring=[]);first=!0,v_=!1,x_=y_=NaN},lineEnd:function(){segments&&(linePoint(x__,y__),v__&&v_&&bufferListener.rejoin(),segments.push(bufferListener.buffer()));clip.point=point,v_&&listener.lineEnd()},polygonStart:function(){listener=bufferListener,segments=[],polygon=[],clean=!0},polygonEnd:function(){listener=listener_,segments=d3.merge(segments);var clipStartInside=function(p){for(var wn=0,n=polygon.length,y=p[1],i=0;i<n;++i)for(var b,j=1,v=polygon[i],m=v.length,a=v[0];j<m;++j)b=v[j],
a[1]<=y?b[1]>y&&0<d3_cross2d(a,b,p)&&++wn:b[1]<=y&&d3_cross2d(a,b,p)<0&&--wn,a=b;return 0!==wn}([x0,y1]),inside=clean&&clipStartInside,visible=segments.length;(inside||visible)&&(listener.polygonStart(),inside&&(listener.lineStart(),interpolate(null,null,1,listener),listener.lineEnd()),visible&&d3_geo_clipPolygon(segments,compare,clipStartInside,interpolate,listener),listener.polygonEnd()),segments=polygon=ring=null}};function interpolate(from,to,direction,listener){var a=0,a1=0;if(null==from||(a=corner(from,direction))!==(a1=corner(to,direction))||comparePoints(from,to)<0^0<direction)for(;listener.point(0===a||3===a?x0:x1,1<a?y1:y0),(a=(a+direction+4)%4
)!==a1;);else listener.point(to[0],to[1])}function pointVisible(x,y){return x0<=x&&x<=x1&&y0<=y&&y<=y1}function point(x,y){pointVisible(x,y)&&listener.point(x,y)}function linePoint(x,y){var l,v=pointVisible(x=Math.max(-d3_geo_clipExtentMAX,Math.min(d3_geo_clipExtentMAX,x)),y=Math.max(-d3_geo_clipExtentMAX,Math.min(d3_geo_clipExtentMAX,y)));polygon&&ring.push([x,y]),first?(x__=x,y__=y,first=!1,(v__=v)&&(listener.lineStart(),listener.point(x,y))):v&&v_?listener.point(x,y):clipLine(l={a:{x:x_,y:y_},b:{x:x,y:y}})?(v_||(listener.lineStart(),listener.point(l.a.x,l.a.y)),listener.point(l.b.x,l.b.y),v||listener.lineEnd(),clean=!1):v&&(listener.lineStart(),
listener.point(x,y),clean=!1),x_=x,y_=y,v_=v}return clip};function corner(p,direction){return abs(p[0]-x0)<ε?0<direction?0:3:abs(p[0]-x1)<ε?0<direction?2:1:abs(p[1]-y0)<ε?0<direction?1:0:0<direction?3:2}function compare(a,b){return comparePoints(a.x,b.x)}function comparePoints(a,b){var ca=corner(a,1),cb=corner(b,1);return ca!==cb?ca-cb:0===ca?b[1]-a[1]:1===ca?a[0]-b[0]:2===ca?a[1]-b[1]:b[0]-a[0]}}function d3_geo_conic(p){var φ0=0,φ1=π/3,m=d3_geo_projectionMutator(p),p=m(φ0,φ1);return p.parallels=function(_){return arguments.length?m(φ0=_[0]*π/180,φ1=_[1]*π/180):[φ0/π*180,φ1/π*180]},p}function d3_geo_conicEqualArea(sinφ0,φ1){var sinφ0=Math.sin(sinφ0),n=(
sinφ0+Math.sin(φ1))/2,C=1+sinφ0*(2*n-sinφ0),ρ0=Math.sqrt(C)/n;function forward(λ,ρ){ρ=Math.sqrt(C-2*n*Math.sin(ρ))/n;return[ρ*Math.sin(λ*=n),ρ0-ρ*Math.cos(λ)]}return forward.invert=function(x,ρ0_y){ρ0_y=ρ0-ρ0_y;return[Math.atan2(x,ρ0_y)/n,d3_asin((C-(x*x+ρ0_y*ρ0_y)*n*n)/(2*n))]},forward}d3.geo.clipExtent=function(){var x0,y0,x1,y1,stream,clip,clipExtent={stream:function(output){return stream&&(stream.valid=!1),(stream=clip(output)).valid=!0,stream},extent:function(_){return arguments.length?(clip=d3_geo_clipExtent(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1]),stream&&(stream.valid=!1,stream=null),clipExtent):[[x0,y0],[x1,y1]]}};return clipExtent.extent([[
0,0],[960,500]])},(d3.geo.conicEqualArea=function(){return d3_geo_conic(d3_geo_conicEqualArea)}).raw=d3_geo_conicEqualArea,d3.geo.albers=function(){return d3.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},d3.geo.albersUsa=function(){var point,lower48Point,alaskaPoint,hawaiiPoint,lower48=d3.geo.albers(),alaska=d3.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),hawaii=d3.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),pointStream={point:function(x,y){point=[x,y]}};function albersUsa(y){var x=y[0],y=y[1];return point=null,lower48Point(x,y),point||(alaskaPoint(x,y),
point)||hawaiiPoint(x,y),point}return albersUsa.invert=function(coordinates){var y=lower48.scale(),t=lower48.translate(),x=(coordinates[0]-t[0])/y,y=(coordinates[1]-t[1])/y;return(.12<=y&&y<.234&&-.425<=x&&x<-.214?alaska:.166<=y&&y<.234&&-.214<=x&&x<-.115?hawaii:lower48).invert(coordinates)},albersUsa.stream=function(stream){var lower48Stream=lower48.stream(stream),alaskaStream=alaska.stream(stream),hawaiiStream=hawaii.stream(stream);return{point:function(x,y){lower48Stream.point(x,y),alaskaStream.point(x,y),hawaiiStream.point(x,y)},sphere:function(){lower48Stream.sphere(),alaskaStream.sphere(),hawaiiStream.sphere()},lineStart:function(){
lower48Stream.lineStart(),alaskaStream.lineStart(),hawaiiStream.lineStart()},lineEnd:function(){lower48Stream.lineEnd(),alaskaStream.lineEnd(),hawaiiStream.lineEnd()},polygonStart:function(){lower48Stream.polygonStart(),alaskaStream.polygonStart(),hawaiiStream.polygonStart()},polygonEnd:function(){lower48Stream.polygonEnd(),alaskaStream.polygonEnd(),hawaiiStream.polygonEnd()}}},albersUsa.precision=function(_){return arguments.length?(lower48.precision(_),alaska.precision(_),hawaii.precision(_),albersUsa):lower48.precision()},albersUsa.scale=function(_){return arguments.length?(lower48.scale(_),alaska.scale(.35*_),hawaii.scale(_),albersUsa.translate(
lower48.translate())):lower48.scale()},albersUsa.translate=function(_){if(!arguments.length)return lower48.translate();var k=lower48.scale(),x=+_[0],y=+_[1];return lower48Point=lower48.translate(_).clipExtent([[x-.455*k,y-.238*k],[x+.455*k,y+.238*k]]).stream(pointStream).point,alaskaPoint=alaska.translate([x-.307*k,y+.201*k]).clipExtent([[x-.425*k+ε,y+.12*k+ε],[x-.214*k-ε,y+.234*k-ε]]).stream(pointStream).point,hawaiiPoint=hawaii.translate([x-.205*k,y+.212*k]).clipExtent([[x-.214*k+ε,y+.166*k+ε],[x-.115*k-ε,y+.234*k-ε]]).stream(pointStream).point,albersUsa},albersUsa.scale(1070)};var d3_geo_pathAreaSum,d3_geo_pathAreaPolygon,d3_geo_pathBoundsX0,
d3_geo_pathBoundsY0,d3_geo_pathBoundsX1,d3_geo_pathBoundsY1,d3_geo_pathArea={point:d3_noop,lineStart:d3_noop,lineEnd:d3_noop,polygonStart:function(){d3_geo_pathAreaPolygon=0,d3_geo_pathArea.lineStart=d3_geo_pathAreaRingStart},polygonEnd:function(){d3_geo_pathArea.lineStart=d3_geo_pathArea.lineEnd=d3_geo_pathArea.point=d3_noop,d3_geo_pathAreaSum+=abs(d3_geo_pathAreaPolygon/2)}};function d3_geo_pathAreaRingStart(){var x00,y00,x0,y0;function nextPoint(x,y){d3_geo_pathAreaPolygon+=y0*x-x0*y,x0=x,y0=y}d3_geo_pathArea.point=function(x,y){d3_geo_pathArea.point=nextPoint,x00=x0=x,y00=y0=y},d3_geo_pathArea.lineEnd=function(){nextPoint(x00,y00)}}
var d3_geo_pathBounds={point:function(x,y){x<d3_geo_pathBoundsX0&&(d3_geo_pathBoundsX0=x);d3_geo_pathBoundsX1<x&&(d3_geo_pathBoundsX1=x);y<d3_geo_pathBoundsY0&&(d3_geo_pathBoundsY0=y);d3_geo_pathBoundsY1<y&&(d3_geo_pathBoundsY1=y)},lineStart:d3_noop,lineEnd:d3_noop,polygonStart:d3_noop,polygonEnd:d3_noop};function d3_geo_pathBuffer(){var pointCircle=d3_geo_pathBufferCircle(4.5),buffer=[],stream={point:point,lineStart:function(){stream.point=pointLineStart},lineEnd:lineEnd,polygonStart:function(){stream.lineEnd=lineEndPolygon},polygonEnd:function(){stream.lineEnd=lineEnd,stream.point=point},pointRadius:function(_){return pointCircle=d3_geo_pathBufferCircle(_)
,stream},result:function(){if(buffer.length){var result=buffer.join("");return buffer=[],result}}};function point(x,y){buffer.push("M",x,",",y,pointCircle)}function pointLineStart(x,y){buffer.push("M",x,",",y),stream.point=pointLine}function pointLine(x,y){buffer.push("L",x,",",y)}function lineEnd(){stream.point=point}function lineEndPolygon(){buffer.push("Z")}return stream}function d3_geo_pathBufferCircle(radius){return"m0,"+radius+"a"+radius+","+radius+" 0 1,1 0,"+-2*radius+"a"+radius+","+radius+" 0 1,1 0,"+2*radius+"z"}var d3_geo_lengthSum,d3_geo_pathCentroid={point:d3_geo_pathCentroidPoint,lineStart:d3_geo_pathCentroidLineStart,
lineEnd:d3_geo_pathCentroidLineEnd,polygonStart:function(){d3_geo_pathCentroid.lineStart=d3_geo_pathCentroidRingStart},polygonEnd:function(){d3_geo_pathCentroid.point=d3_geo_pathCentroidPoint,d3_geo_pathCentroid.lineStart=d3_geo_pathCentroidLineStart,d3_geo_pathCentroid.lineEnd=d3_geo_pathCentroidLineEnd}};function d3_geo_pathCentroidPoint(x,y){d3_geo_centroidX0+=x,d3_geo_centroidY0+=y,++d3_geo_centroidZ0}function d3_geo_pathCentroidLineStart(){var x0,y0;function nextPoint(x,y){var dx=x-x0,z=y-y0,z=Math.sqrt(dx*dx+z*z);d3_geo_centroidX1+=z*(x0+x)/2,d3_geo_centroidY1+=z*(y0+y)/2,d3_geo_centroidZ1+=z,d3_geo_pathCentroidPoint(x0=x,y0=y)}
d3_geo_pathCentroid.point=function(x,y){d3_geo_pathCentroid.point=nextPoint,d3_geo_pathCentroidPoint(x0=x,y0=y)}}function d3_geo_pathCentroidLineEnd(){d3_geo_pathCentroid.point=d3_geo_pathCentroidPoint}function d3_geo_pathCentroidRingStart(){var x00,y00,x0,y0;function nextPoint(x,y){var dx=x-x0,z=y-y0,z=Math.sqrt(dx*dx+z*z);d3_geo_centroidX1+=z*(x0+x)/2,d3_geo_centroidY1+=z*(y0+y)/2,d3_geo_centroidZ1+=z,d3_geo_centroidX2+=(z=y0*x-x0*y)*(x0+x),d3_geo_centroidY2+=z*(y0+y),d3_geo_centroidZ2+=3*z,d3_geo_pathCentroidPoint(x0=x,y0=y)}d3_geo_pathCentroid.point=function(x,y){d3_geo_pathCentroid.point=nextPoint,d3_geo_pathCentroidPoint(x00=x0=x,y00=y0=y)},
d3_geo_pathCentroid.lineEnd=function(){nextPoint(x00,y00)}}function d3_geo_pathContext(context){var pointRadius=4.5,stream={point:point,lineStart:function(){stream.point=pointLineStart},lineEnd:lineEnd,polygonStart:function(){stream.lineEnd=lineEndPolygon},polygonEnd:function(){stream.lineEnd=lineEnd,stream.point=point},pointRadius:function(_){return pointRadius=_,stream},result:d3_noop};function point(x,y){context.moveTo(x+pointRadius,y),context.arc(x,y,pointRadius,0,τ)}function pointLineStart(x,y){context.moveTo(x,y),stream.point=pointLine}function pointLine(x,y){context.lineTo(x,y)}function lineEnd(){stream.point=point}function lineEndPolygon(){
context.closePath()}return stream}function d3_geo_resample(project){var δ2=.5,cosMinDistance=Math.cos(30*d3_radians),maxDepth=16;function resample(stream){return(maxDepth?function(stream){var λ00,x00,y00,a00,b00,c00,λ0,x0,y0,a0,b0,c0,resample={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){stream.polygonStart(),resample.lineStart=ringStart},polygonEnd:function(){stream.polygonEnd(),resample.lineStart=lineStart}};function point(x,y){x=project(x,y),stream.point(x[0],x[1])}function lineStart(){x0=NaN,resample.point=linePoint,stream.lineStart()}function linePoint(λ,p){var c=d3_geo_cartesian([λ,p]),p=project(λ,p);resampleLineTo(x0,y0,λ0,
a0,b0,c0,x0=p[0],y0=p[1],λ0=λ,a0=c[0],b0=c[1],c0=c[2],maxDepth,stream),stream.point(x0,y0)}function lineEnd(){resample.point=point,stream.lineEnd()}function ringStart(){lineStart(),resample.point=ringPoint,resample.lineEnd=ringEnd}function ringPoint(λ,φ){linePoint(λ00=λ,φ),x00=x0,y00=y0,a00=a0,b00=b0,c00=c0,resample.point=linePoint}function ringEnd(){resampleLineTo(x0,y0,λ0,a0,b0,c0,x00,y00,λ00,a00,b00,c00,maxDepth,stream),resample.lineEnd=lineEnd,lineEnd()}return resample}:function(stream){return d3_geo_transformPoint(stream,function(x,y){x=project(x,y),stream.point(x[0],x[1])})})(stream)}function resampleLineTo(x0,y0,λ0,a0,b0,c0,x1,y1,λ1,a1,b1,c1,depth,
stream){var a,b,c,m,λ2,x2,y2,dx2,dy2,dz,dx=x1-x0,dy=y1-y0,d2=dx*dx+dy*dy;4*δ2<d2&&depth--&&(a=a0+a1,b=b0+b1,c=c0+c1,m=Math.sqrt(a*a+b*b+c*c),dy2=Math.asin(c/=m),λ2=abs(abs(c)-1)<ε||abs(λ0-λ1)<ε?(λ0+λ1)/2:Math.atan2(b,a),x2=(dz=project(λ2,dy2))[0],y2=dz[1],(δ2<(dz=dy*(dx2=x2-x0)-dx*(dy2=y2-y0))*dz/d2||.3<abs((dx*dx2+dy*dy2)/d2-.5)||a0*a1+b0*b1+c0*c1<cosMinDistance)&&(resampleLineTo(x0,y0,λ0,a0,b0,c0,x2,y2,λ2,a/=m,b/=m,c,depth,stream),stream.point(x2,y2),resampleLineTo(x2,y2,λ2,a,b,c,x1,y1,λ1,a1,b1,c1,depth,stream)))}return resample.precision=function(_){return arguments.length?(maxDepth=0<(δ2=_*_)&&16,resample):Math.sqrt(δ2)},resample}
function d3_geo_transform(stream){this.stream=stream}function d3_geo_transformPoint(stream,point){return{point:point,sphere:function(){stream.sphere()},lineStart:function(){stream.lineStart()},lineEnd:function(){stream.lineEnd()},polygonStart:function(){stream.polygonStart()},polygonEnd:function(){stream.polygonEnd()}}}function d3_geo_projection(project){return d3_geo_projectionMutator(function(){return project})()}function d3_geo_projectionMutator(projectAt){var project,rotate,projectRotate,δx,δy,stream,projectResample=d3_geo_resample(function(x,y){return[(x=project(x,y))[0]*k+δx,δy-x[1]*k]}),k=150,x=480,y=250,λ=0,φ=0,δλ=0,δφ=0,δγ=0,
preclip=d3_geo_clipAntimeridian,postclip=d3_identity,clipAngle=null,clipExtent=null;function projection(point){return[(point=projectRotate(point[0]*d3_radians,point[1]*d3_radians))[0]*k+δx,δy-point[1]*k]}function invert(point){return(point=projectRotate.invert((point[0]-δx)/k,(δy-point[1])/k))&&[point[0]*d3_degrees,point[1]*d3_degrees]}function reset(){projectRotate=d3_geo_compose(rotate=d3_geo_rotation(δλ,δφ,δγ),project);var center=project(λ,φ);return δx=x-center[0]*k,δy=y+center[1]*k,invalidate()}function invalidate(){return stream&&(stream.valid=!1,stream=null),projection}return projection.stream=function(output){return stream&&(stream.valid=!1),(
stream=d3_geo_projectionRadians(preclip(rotate,projectResample(postclip(output))))).valid=!0,stream},projection.clipAngle=function(_){return arguments.length?(preclip=null==_?(clipAngle=_,d3_geo_clipAntimeridian):d3_geo_clipCircle((clipAngle=+_)*d3_radians),invalidate()):clipAngle},projection.clipExtent=function(_){return arguments.length?(postclip=(clipExtent=_)?d3_geo_clipExtent(_[0][0],_[0][1],_[1][0],_[1][1]):d3_identity,invalidate()):clipExtent},projection.scale=function(_){return arguments.length?(k=+_,reset()):k},projection.translate=function(_){return arguments.length?(x=+_[0],y=+_[1],reset()):[x,y]},projection.center=function(_){
return arguments.length?(λ=_[0]%360*d3_radians,φ=_[1]%360*d3_radians,reset()):[λ*d3_degrees,φ*d3_degrees]},projection.rotate=function(_){return arguments.length?(δλ=_[0]%360*d3_radians,δφ=_[1]%360*d3_radians,δγ=2<_.length?_[2]%360*d3_radians:0,reset()):[δλ*d3_degrees,δφ*d3_degrees,δγ*d3_degrees]},d3.rebind(projection,projectResample,"precision"),function(){return project=projectAt.apply(this,arguments),projection.invert=project.invert&&invert,reset()}}function d3_geo_projectionRadians(stream){return d3_geo_transformPoint(stream,function(x,y){stream.point(x*d3_radians,y*d3_radians)})}function d3_geo_equirectangular(λ,φ){return[λ,φ]}
function d3_geo_identityRotation(λ,φ){return[π<λ?λ-τ:λ<-π?λ+τ:λ,φ]}function d3_geo_rotation(δλ,δφ,δγ){return δλ?δφ||δγ?d3_geo_compose(d3_geo_rotationλ(δλ),d3_geo_rotationφγ(δφ,δγ)):d3_geo_rotationλ(δλ):δφ||δγ?d3_geo_rotationφγ(δφ,δγ):d3_geo_identityRotation}function d3_geo_forwardRotationλ(δλ){return function(λ,φ){return[π<(λ+=δλ)?λ-τ:λ<-π?λ+τ:λ,φ]}}function d3_geo_rotationλ(δλ){var rotation=d3_geo_forwardRotationλ(δλ);return rotation.invert=d3_geo_forwardRotationλ(-δλ),rotation}function d3_geo_rotationφγ(δφ,δγ){var cosδφ=Math.cos(δφ),sinδφ=Math.sin(δφ),cosδγ=Math.cos(δγ),sinδγ=Math.sin(δγ);function rotation(y,k){var z=Math.cos(k),x=Math.cos(y)*z,y=Math.sin(
y)*z,z=Math.sin(k),k=z*cosδφ+x*sinδφ;return[Math.atan2(y*cosδγ-k*sinδγ,x*cosδφ-z*sinδφ),d3_asin(k*cosδγ+y*sinδγ)]}return rotation.invert=function(y,k){var z=Math.cos(k),x=Math.cos(y)*z,y=Math.sin(y)*z,z=Math.sin(k),k=z*cosδγ-y*sinδγ;return[Math.atan2(y*cosδγ+z*sinδγ,x*cosδφ+k*sinδφ),d3_asin(k*cosδφ-x*sinδφ)]},rotation}function d3_geo_circleInterpolate(radius,precision){var cr=Math.cos(radius),sr=Math.sin(radius);return function(from,to,direction,listener){var step=direction*precision;null!=from?(from=d3_geo_circleAngle(cr,from),to=d3_geo_circleAngle(cr,to),(0<direction?from<to:to<from)&&(from+=direction*τ)):(from=radius+direction*τ,to=radius-.5*step);for(
var point,t=from;0<direction?to<t:t<to;t-=step)listener.point((point=d3_geo_spherical([cr,-sr*Math.cos(t),-sr*Math.sin(t)]))[0],point[1])}}function d3_geo_circleAngle(angle,a){a=d3_geo_cartesian(a);a[0]-=angle,d3_geo_cartesianNormalize(a);angle=d3_acos(-a[1]);return((-a[2]<0?-angle:angle)+2*Math.PI-ε)%(2*Math.PI)}function d3_geo_graticuleX(y0,y1,dy){var y=d3.range(y0,y1-ε,dy).concat(y1);return function(x){return y.map(function(y){return[x,y]})}}function d3_geo_graticuleY(x0,x1,dx){var x=d3.range(x0,x1-ε,dx).concat(x1);return function(y){return x.map(function(x){return[x,y]})}}function d3_source(d){return d.source}function d3_target(d){return d.target}
d3.geo.path=function(){var projection,context,projectStream,contextStream,cacheStream,pointRadius=4.5;function path(object){return object&&("function"==typeof pointRadius&&contextStream.pointRadius(+pointRadius.apply(this,arguments)),cacheStream&&cacheStream.valid||(cacheStream=projectStream(contextStream)),d3.geo.stream(object,cacheStream)),contextStream.result()}function reset(){return cacheStream=null,path}return path.area=function(object){return d3_geo_pathAreaSum=0,d3.geo.stream(object,projectStream(d3_geo_pathArea)),d3_geo_pathAreaSum},path.centroid=function(object){
return d3_geo_centroidX0=d3_geo_centroidY0=d3_geo_centroidZ0=d3_geo_centroidX1=d3_geo_centroidY1=d3_geo_centroidZ1=d3_geo_centroidX2=d3_geo_centroidY2=d3_geo_centroidZ2=0,d3.geo.stream(object,projectStream(d3_geo_pathCentroid)),d3_geo_centroidZ2?[d3_geo_centroidX2/d3_geo_centroidZ2,d3_geo_centroidY2/d3_geo_centroidZ2]:d3_geo_centroidZ1?[d3_geo_centroidX1/d3_geo_centroidZ1,d3_geo_centroidY1/d3_geo_centroidZ1]:d3_geo_centroidZ0?[d3_geo_centroidX0/d3_geo_centroidZ0,d3_geo_centroidY0/d3_geo_centroidZ0]:[NaN,NaN]},path.bounds=function(object){return d3_geo_pathBoundsX1=d3_geo_pathBoundsY1=-(d3_geo_pathBoundsX0=d3_geo_pathBoundsY0=1/0),d3.geo.stream(object,
projectStream(d3_geo_pathBounds)),[[d3_geo_pathBoundsX0,d3_geo_pathBoundsY0],[d3_geo_pathBoundsX1,d3_geo_pathBoundsY1]]},path.projection=function(_){return arguments.length?(projectStream=(projection=_)?_.stream||(project=_,resample=d3_geo_resample(function(x,y){return project([x*d3_degrees,y*d3_degrees])}),function(stream){return d3_geo_projectionRadians(resample(stream))}):d3_identity,reset()):projection;var project,resample},path.context=function(_){return arguments.length?(contextStream=null==(context=_)?new d3_geo_pathBuffer:new d3_geo_pathContext(_),"function"!=typeof pointRadius&&contextStream.pointRadius(pointRadius),reset()):context},
path.pointRadius=function(_){return arguments.length?(pointRadius="function"==typeof _?_:(contextStream.pointRadius(+_),+_),path):pointRadius},path.projection(d3.geo.albersUsa()).context(null)},d3.geo.transform=function(methods){return{stream:function(stream){var k,transform=new d3_geo_transform(stream);for(k in methods)transform[k]=methods[k];return transform}}},d3_geo_transform.prototype={point:function(x,y){this.stream.point(x,y)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}
,d3.geo.projection=d3_geo_projection,d3.geo.projectionMutator=d3_geo_projectionMutator,(d3.geo.equirectangular=function(){return d3_geo_projection(d3_geo_equirectangular)}).raw=d3_geo_equirectangular.invert=d3_geo_equirectangular,d3.geo.rotation=function(rotate){function forward(coordinates){return(coordinates=rotate(coordinates[0]*d3_radians,coordinates[1]*d3_radians))[0]*=d3_degrees,coordinates[1]*=d3_degrees,coordinates}return rotate=d3_geo_rotation(rotate[0]%360*d3_radians,rotate[1]*d3_radians,2<rotate.length?rotate[2]*d3_radians:0),forward.invert=function(coordinates){return(coordinates=rotate.invert(coordinates[0]*d3_radians,coordinates[1]*d3_radians)
)[0]*=d3_degrees,coordinates[1]*=d3_degrees,coordinates},forward},d3_geo_identityRotation.invert=d3_geo_equirectangular,d3.geo.circle=function(){var angle,interpolate,origin=[0,0],precision=6;function circle(){var center="function"==typeof origin?origin.apply(this,arguments):origin,rotate=d3_geo_rotation(-center[0]*d3_radians,-center[1]*d3_radians,0).invert,ring=[];return interpolate(null,null,1,{point:function(x,y){ring.push(x=rotate(x,y)),x[0]*=d3_degrees,x[1]*=d3_degrees}}),{type:"Polygon",coordinates:[ring]}}return circle.origin=function(x){return arguments.length?(origin=x,circle):origin},circle.angle=function(x){return arguments.length?(
interpolate=d3_geo_circleInterpolate((angle=+x)*d3_radians,precision*d3_radians),circle):angle},circle.precision=function(_){return arguments.length?(interpolate=d3_geo_circleInterpolate(angle*d3_radians,(precision=+_)*d3_radians),circle):precision},circle.angle(90)},d3.geo.distance=function(cosΔλ,sinφ0){var cosφ0=(sinφ0[0]-cosΔλ[0])*d3_radians,sinφ1=cosΔλ[1]*d3_radians,cosφ1=sinφ0[1]*d3_radians,t=Math.sin(cosφ0),cosΔλ=Math.cos(cosφ0),sinφ0=Math.sin(sinφ1),cosφ0=Math.cos(sinφ1),sinφ1=Math.sin(cosφ1),cosφ1=Math.cos(cosφ1);return Math.atan2(Math.sqrt((t=cosφ1*t)*t+(t=cosφ0*sinφ1-sinφ0*cosφ1*cosΔλ)*t),sinφ0*sinφ1+cosφ0*cosφ1*cosΔλ)},d3.geo.graticule=function(){
var x1,x0,X1,X0,y1,y0,Y1,Y0,x,y,X,Y,dx=10,dy=dx,DX=90,DY=360,precision=2.5;function graticule(){return{type:"MultiLineString",coordinates:lines()}}function lines(){return d3.range(Math.ceil(X0/DX)*DX,X1,DX).map(X).concat(d3.range(Math.ceil(Y0/DY)*DY,Y1,DY).map(Y)).concat(d3.range(Math.ceil(x0/dx)*dx,x1,dx).filter(function(x){return abs(x%DX)>ε}).map(x)).concat(d3.range(Math.ceil(y0/dy)*dy,y1,dy).filter(function(y){return abs(y%DY)>ε}).map(y))}return graticule.lines=function(){return lines().map(function(coordinates){return{type:"LineString",coordinates:coordinates}})},graticule.outline=function(){return{type:"Polygon",coordinates:[X(X0).concat(Y(Y1).slice(1)
,X(X1).reverse().slice(1),Y(Y0).reverse().slice(1))]}},graticule.extent=function(_){return arguments.length?graticule.majorExtent(_).minorExtent(_):graticule.minorExtent()},graticule.majorExtent=function(_){return arguments.length?(X0=+_[0][0],X1=+_[1][0],Y0=+_[0][1],Y1=+_[1][1],X1<X0&&(_=X0,X0=X1,X1=_),Y1<Y0&&(_=Y0,Y0=Y1,Y1=_),graticule.precision(precision)):[[X0,Y0],[X1,Y1]]},graticule.minorExtent=function(_){return arguments.length?(x0=+_[0][0],x1=+_[1][0],y0=+_[0][1],y1=+_[1][1],x1<x0&&(_=x0,x0=x1,x1=_),y1<y0&&(_=y0,y0=y1,y1=_),graticule.precision(precision)):[[x0,y0],[x1,y1]]},graticule.step=function(_){return arguments.length?graticule.majorStep(_
).minorStep(_):graticule.minorStep()},graticule.majorStep=function(_){return arguments.length?(DX=+_[0],DY=+_[1],graticule):[DX,DY]},graticule.minorStep=function(_){return arguments.length?(dx=+_[0],dy=+_[1],graticule):[dx,dy]},graticule.precision=function(_){return arguments.length?(precision=+_,x=d3_geo_graticuleX(y0,y1,90),y=d3_geo_graticuleY(x0,x1,precision),X=d3_geo_graticuleX(Y0,Y1,90),Y=d3_geo_graticuleY(X0,X1,precision),graticule):precision},graticule.majorExtent([[-180,-90+ε],[180,90-ε]]).minorExtent([[-180,-80-ε],[180,80+ε]])},d3.geo.greatArc=function(){var source_,target_,source=d3_source,target=d3_target;function greatArc(){return{
type:"LineString",coordinates:[source_||source.apply(this,arguments),target_||target.apply(this,arguments)]}}return greatArc.distance=function(){return d3.geo.distance(source_||source.apply(this,arguments),target_||target.apply(this,arguments))},greatArc.source=function(_){return arguments.length?(source_="function"==typeof(source=_)?null:_,greatArc):source},greatArc.target=function(_){return arguments.length?(target_="function"==typeof(target=_)?null:_,greatArc):target},greatArc.precision=function(){return arguments.length?greatArc:0},greatArc},d3.geo.interpolate=function(cy0,cy1){return x0=cy0[0]*d3_radians,y0=cy0[1]*d3_radians,
interpolate=cy1[0]*d3_radians,y1=cy1[1]*d3_radians,cy0=Math.cos(y0),sy0=Math.sin(y0),cy1=Math.cos(y1),sy1=Math.sin(y1),kx0=cy0*Math.cos(x0),ky0=cy0*Math.sin(x0),kx1=cy1*Math.cos(interpolate),ky1=cy1*Math.sin(interpolate),d=2*Math.asin(Math.sqrt(d3_haversin(y1-y0)+cy0*cy1*d3_haversin(interpolate-x0))),k=1/Math.sin(d),(interpolate=d?function(y){var z=Math.sin(y*=d)*k,A=Math.sin(d-y)*k,x=A*kx0+z*kx1,y=A*ky0+z*ky1,z=A*sy0+z*sy1;return[Math.atan2(y,x)*d3_degrees,Math.atan2(z,Math.sqrt(x*x+y*y))*d3_degrees]}:function(){return[x0*d3_degrees,y0*d3_degrees]}).distance=d,interpolate;var x0,y0,interpolate,y1,sy0,sy1,kx0,ky0,kx1,ky1,d,k},d3.geo.length=function(object){
return d3_geo_lengthSum=0,d3.geo.stream(object,d3_geo_length),d3_geo_lengthSum};var d3_geo_length={sphere:d3_noop,point:d3_noop,lineStart:function(){var λ0,sinφ0,cosφ0;function nextPoint(λ,cosΔλ){var sinφ=Math.sin(cosΔλ*=d3_radians),cosφ=Math.cos(cosΔλ),t=abs((λ*=d3_radians)-λ0),cosΔλ=Math.cos(t);d3_geo_lengthSum+=Math.atan2(Math.sqrt((t=cosφ*Math.sin(t))*t+(t=cosφ0*sinφ-sinφ0*cosφ*cosΔλ)*t),sinφ0*sinφ+cosφ0*cosφ*cosΔλ),λ0=λ,sinφ0=sinφ,cosφ0=cosφ}d3_geo_length.point=function(λ,φ){λ0=λ*d3_radians,sinφ0=Math.sin(φ*=d3_radians),cosφ0=Math.cos(φ),d3_geo_length.point=nextPoint},d3_geo_length.lineEnd=function(){d3_geo_length.point=d3_geo_length.lineEnd=d3_noop}},
lineEnd:d3_noop,polygonStart:d3_noop,polygonEnd:d3_noop};function d3_geo_azimuthal(scale,angle){function azimuthal(λ,φ){var k=Math.cos(λ),cosφ=Math.cos(φ),k=scale(k*cosφ);return[k*cosφ*Math.sin(λ),k*Math.sin(φ)]}return azimuthal.invert=function(x,y){var ρ=Math.sqrt(x*x+y*y),cosc=angle(ρ),sinc=Math.sin(cosc),cosc=Math.cos(cosc);return[Math.atan2(x*sinc,ρ*cosc),Math.asin(ρ&&y*sinc/ρ)]},azimuthal}var d3_geo_azimuthalEqualArea=d3_geo_azimuthal(function(cosλcosφ){return Math.sqrt(2/(1+cosλcosφ))},function(ρ){return 2*Math.asin(ρ/2)});(d3.geo.azimuthalEqualArea=function(){return d3_geo_projection(d3_geo_azimuthalEqualArea)}).raw=d3_geo_azimuthalEqualArea
;var d3_geo_azimuthalEquidistant=d3_geo_azimuthal(function(c){c=Math.acos(c);return c&&c/Math.sin(c)},d3_identity);function d3_geo_conicConformal(φ0,φ1){function t(φ){return Math.tan(π/4+φ/2)}var cosφ0=Math.cos(φ0),n=φ0===φ1?Math.sin(φ0):Math.log(cosφ0/Math.cos(φ1))/Math.log(t(φ1)/t(φ0)),F=cosφ0*Math.pow(t(φ0),n)/n;return n?(forward.invert=function(x,ρ){var ρ0_y=F-ρ,ρ=d3_sgn(n)*Math.sqrt(x*x+ρ0_y*ρ0_y);return[Math.atan2(x,ρ0_y)/n,2*Math.atan(Math.pow(F/ρ,1/n))-halfπ]},forward):d3_geo_mercator;function forward(λ,ρ){0<F?ρ<-halfπ+ε&&(ρ=-halfπ+ε):halfπ-ε<ρ&&(ρ=halfπ-ε);ρ=F/Math.pow(t(ρ),n);return[ρ*Math.sin(n*λ),F-ρ*Math.cos(n*λ)]}}
function d3_geo_conicEquidistant(φ0,φ1){var cosφ0=Math.cos(φ0),n=φ0===φ1?Math.sin(φ0):(cosφ0-Math.cos(φ1))/(φ1-φ0),G=cosφ0/n+φ0;return abs(n)<ε?d3_geo_equirectangular:(forward.invert=function(x,ρ0_y){ρ0_y=G-ρ0_y;return[Math.atan2(x,ρ0_y)/n,G-d3_sgn(n)*Math.sqrt(x*x+ρ0_y*ρ0_y)]},forward);function forward(λ,ρ){ρ=G-ρ;return[ρ*Math.sin(n*λ),G-ρ*Math.cos(n*λ)]}}(d3.geo.azimuthalEquidistant=function(){return d3_geo_projection(d3_geo_azimuthalEquidistant)}).raw=d3_geo_azimuthalEquidistant,(d3.geo.conicConformal=function(){return d3_geo_conic(d3_geo_conicConformal)}).raw=d3_geo_conicConformal,(d3.geo.conicEquidistant=function(){return d3_geo_conic(
d3_geo_conicEquidistant)}).raw=d3_geo_conicEquidistant;var d3_geo_gnomonic=d3_geo_azimuthal(function(cosλcosφ){return 1/cosλcosφ},Math.atan);function d3_geo_mercator(λ,φ){return[λ,Math.log(Math.tan(π/4+φ/2))]}function d3_geo_mercatorProjection(project){var clipAuto,m=d3_geo_projection(project),scale=m.scale,translate=m.translate,clipExtent=m.clipExtent;return m.scale=function(){var v=scale.apply(m,arguments);return v===m?clipAuto?m.clipExtent(null):m:v},m.translate=function(){var v=translate.apply(m,arguments);return v===m?clipAuto?m.clipExtent(null):m:v},m.clipExtent=function(_){var k,t,v=clipExtent.apply(m,arguments);return v===m?(clipAuto=null==_)&&(
k=π*scale(),t=translate(),clipExtent([[t[0]-k,t[1]-k],[t[0]+k,t[1]+k]])):clipAuto&&(v=null),v},m.clipExtent(null)}(d3.geo.gnomonic=function(){return d3_geo_projection(d3_geo_gnomonic)}).raw=d3_geo_gnomonic,d3_geo_mercator.invert=function(x,y){return[x,2*Math.atan(Math.exp(y))-halfπ]},(d3.geo.mercator=function(){return d3_geo_mercatorProjection(d3_geo_mercator)}).raw=d3_geo_mercator;var d3_geo_orthographic=d3_geo_azimuthal(function(){return 1},Math.asin);(d3.geo.orthographic=function(){return d3_geo_projection(d3_geo_orthographic)}).raw=d3_geo_orthographic;var d3_geo_stereographic=d3_geo_azimuthal(function(cosλcosφ){return 1/(1+cosλcosφ)},function(ρ){
return 2*Math.atan(ρ)});function d3_geo_transverseMercator(λ,φ){return[Math.log(Math.tan(π/4+φ/2)),-λ]}function d3_geom_pointX(d){return d[0]}function d3_geom_pointY(d){return d[1]}function d3_geom_hullUpper(points){for(var n=points.length,hull=[0,1],hs=2,i=2;i<n;i++){for(;1<hs&&d3_cross2d(points[hull[hs-2]],points[hull[hs-1]],points[i])<=0;)--hs;hull[hs++]=i}return hull.slice(0,hs)}function d3_geom_hullOrder(a,b){return a[0]-b[0]||a[1]-b[1]}(d3.geo.stereographic=function(){return d3_geo_projection(d3_geo_stereographic)}).raw=d3_geo_stereographic,d3_geo_transverseMercator.invert=function(x,y){return[-y,2*Math.atan(Math.exp(x))-halfπ]},(
d3.geo.transverseMercator=function(){var projection=d3_geo_mercatorProjection(d3_geo_transverseMercator),center=projection.center,rotate=projection.rotate;return projection.center=function(_){return _?center([-_[1],_[0]]):[(_=center())[1],-_[0]]},projection.rotate=function(_){return _?rotate([_[0],_[1],2<_.length?_[2]+90:90]):[(_=rotate())[0],_[1],_[2]-90]},rotate([0,0,90])}).raw=d3_geo_transverseMercator,d3.geom={},d3.geom.hull=function(vertices){var x=d3_geom_pointX,y=d3_geom_pointY;return arguments.length?hull(vertices):(hull.x=function(_){return arguments.length?(x=_,hull):x},hull.y=function(_){return arguments.length?(y=_,hull):y},hull);function hull(
data){if(data.length<3)return[];for(var fx=d3_functor(x),fy=d3_functor(y),n=data.length,points=[],flippedPoints=[],i=0;i<n;i++)points.push([+fx.call(this,data[i],i),+fy.call(this,data[i],i),i]);for(points.sort(d3_geom_hullOrder),i=0;i<n;i++)flippedPoints.push([points[i][0],-points[i][1]]);var upper=d3_geom_hullUpper(points),lower=d3_geom_hullUpper(flippedPoints),skipLeft=lower[0]===upper[0],skipRight=lower[lower.length-1]===upper[upper.length-1],polygon=[];for(i=upper.length-1;0<=i;--i)polygon.push(data[points[upper[i]][2]]);for(i=+skipLeft;i<lower.length-skipRight;++i)polygon.push(data[points[lower[i]][2]]);return polygon}},d3.geom.polygon=function(
coordinates){return d3_subclass(coordinates,d3_geom_polygonPrototype),coordinates};var d3_geom_polygonPrototype=d3.geom.polygon.prototype=[];function d3_geom_polygonInside(p,a,b){return(b[0]-a[0])*(p[1]-a[1])<(b[1]-a[1])*(p[0]-a[0])}function d3_geom_polygonIntersect(y1,y21,y3,y43){var x1=y1[0],x3=y3[0],x21=y21[0]-x1,ua=y43[0]-x3,y1=y1[1],y3=y3[1],y21=y21[1]-y1,y43=y43[1]-y3,ua=(ua*(y1-y3)-y43*(x1-x3))/(y43*x21-ua*y21);return[x1+ua*x21,y1+ua*y21]}function d3_geom_polygonClosed(b){var a=b[0],b=b[b.length-1];return!(a[0]-b[0]||a[1]-b[1])}d3_geom_polygonPrototype.area=function(){for(var a,i=-1,n=this.length,b=this[n-1],area=0;++i<n;)a=b,b=this[i],
area+=a[1]*b[0]-a[0]*b[1];return.5*area},d3_geom_polygonPrototype.centroid=function(k){var a,c,i=-1,n=this.length,x=0,y=0,b=this[n-1];for(arguments.length||(k=-1/(6*this.area()));++i<n;)a=b,b=this[i],c=a[0]*b[1]-b[0]*a[1],x+=(a[0]+b[0])*c,y+=(a[1]+b[1])*c;return[x*k,y*k]},d3_geom_polygonPrototype.clip=function(subject){for(var input,j,m,b,c,d,closed=d3_geom_polygonClosed(subject),i=-1,n=this.length-d3_geom_polygonClosed(this),a=this[n-1];++i<n;){for(input=subject.slice(),subject.length=0,b=this[i],c=input[(m=input.length-closed)-1],j=-1;++j<m;)d3_geom_polygonInside(d=input[j],a,b)?(d3_geom_polygonInside(c,a,b)||subject.push(d3_geom_polygonIntersect(c,d,a,b))
,subject.push(d)):d3_geom_polygonInside(c,a,b)&&subject.push(d3_geom_polygonIntersect(c,d,a,b)),c=d;closed&&subject.push(subject[0]),a=b}return subject};var d3_geom_voronoiEdges,d3_geom_voronoiCells,d3_geom_voronoiBeaches,d3_geom_voronoiFirstCircle,d3_geom_voronoiCircles,d3_geom_voronoiBeachPool=[],d3_geom_voronoiCirclePool=[];function d3_geom_voronoiBeach(){d3_geom_voronoiRedBlackNode(this),this.edge=this.site=this.circle=null}function d3_geom_voronoiCreateBeach(site){var beach=d3_geom_voronoiBeachPool.pop()||new d3_geom_voronoiBeach;return beach.site=site,beach}function d3_geom_voronoiDetachBeach(beach){d3_geom_voronoiDetachCircle(beach),
d3_geom_voronoiBeaches.remove(beach),d3_geom_voronoiBeachPool.push(beach),d3_geom_voronoiRedBlackNode(beach)}function d3_geom_voronoiAddBeach(site){for(var lArc,rArc,dxl,dxr,x=site.x,directrix=site.y,node=d3_geom_voronoiBeaches._;node;)if(dxl=d3_geom_voronoiLeftBreakPoint(node,directrix)-x,ε<dxl)node=node.L;else{if(dxr=x-function(site,directrix){var rArc=site.N;if(rArc)return d3_geom_voronoiLeftBreakPoint(rArc,directrix);site=site.site;return site.y===directrix?site.x:1/0}(node,directrix),!(ε<dxr)){-ε<dxl?(lArc=node.P,rArc=node):-ε<dxr?rArc=(lArc=node).N:lArc=rArc=node;break}if(!node.R){lArc=node;break}node=node.R}var lSite,ax,bx,rSite,cx,cy,d,hb,hc,vertex,
newArc=d3_geom_voronoiCreateBeach(site);if(d3_geom_voronoiBeaches.insert(lArc,newArc),lArc||rArc){if(lArc===rArc)return d3_geom_voronoiDetachCircle(lArc),rArc=d3_geom_voronoiCreateBeach(lArc.site),d3_geom_voronoiBeaches.insert(newArc,rArc),newArc.edge=rArc.edge=d3_geom_voronoiCreateEdge(lArc.site,newArc.site),d3_geom_voronoiAttachCircle(lArc),void d3_geom_voronoiAttachCircle(rArc);rArc?(d3_geom_voronoiDetachCircle(lArc),d3_geom_voronoiDetachCircle(rArc),ax=(lSite=lArc.site).x,vertex=lSite.y,bx=site.x-ax,d=site.y-vertex,cx=(rSite=rArc.site).x-ax,vertex={x:((cy=rSite.y-vertex)*(hb=bx*bx+d*d)-d*(hc=cx*cx+cy*cy))/(d=2*(bx*cy-d*cx))+ax,y:(bx*hc-cx*hb)/d+vertex},
d3_geom_voronoiSetEdgeEnd(rArc.edge,lSite,rSite,vertex),newArc.edge=d3_geom_voronoiCreateEdge(lSite,site,null,vertex),rArc.edge=d3_geom_voronoiCreateEdge(site,rSite,null,vertex),d3_geom_voronoiAttachCircle(lArc),d3_geom_voronoiAttachCircle(rArc)):newArc.edge=d3_geom_voronoiCreateEdge(lArc.site,newArc.site)}}function d3_geom_voronoiLeftBreakPoint(plby2,b){var aby2=plby2.site,rfocx=aby2.x,rfocy=aby2.y,pby2=rfocy-b;if(!pby2)return rfocx;var hl=plby2.P;if(!hl)return-1/0;var lfocx=(aby2=hl.site).x,lfocy=aby2.y,plby2=lfocy-b;if(!plby2)return lfocx;hl=lfocx-rfocx,aby2=1/pby2-1/plby2,b=hl/plby2;return aby2?(-b+Math.sqrt(b*b-2*aby2*(hl*hl/(-2*plby2
)-lfocy+plby2/2+rfocy-pby2/2)))/aby2+rfocx:(rfocx+lfocx)/2}function d3_geom_voronoiCell(site){this.site=site,this.edges=[]}function d3_geom_voronoiCloseCells(extent){for(var x2,x3,y3,cell,iHalfEdge,halfEdges,nHalfEdges,y2,end,x0=extent[0][0],x1=extent[1][0],y0=extent[0][1],y1=extent[1][1],cells=d3_geom_voronoiCells,iCell=cells.length;iCell--;)if((cell=cells[iCell])&&cell.prepare())for(nHalfEdges=(halfEdges=cell.edges).length,iHalfEdge=0;iHalfEdge<nHalfEdges;)x3=(end=halfEdges[iHalfEdge].end()).x,y3=end.y,x2=(y2=halfEdges[++iHalfEdge%nHalfEdges].start()).x,y2=y2.y,(abs(x3-x2)>ε||abs(y3-y2)>ε)&&(halfEdges.splice(iHalfEdge,0,new d3_geom_voronoiHalfEdge(
function(edge,va,vb){edge=new d3_geom_voronoiEdge(edge,null);return edge.a=va,edge.b=vb,d3_geom_voronoiEdges.push(edge),edge}(cell.site,end,abs(x3-x0)<ε&&ε<y1-y3?{x:x0,y:abs(x2-x0)<ε?y2:y1}:abs(y3-y1)<ε&&ε<x1-x3?{x:abs(y2-y1)<ε?x2:x1,y:y1}:abs(x3-x1)<ε&&ε<y3-y0?{x:x1,y:abs(x2-x1)<ε?y2:y0}:abs(y3-y0)<ε&&ε<x3-x0?{x:abs(y2-y0)<ε?x2:x0,y:y0}:null),cell.site,null)),++nHalfEdges)}function d3_geom_voronoiHalfEdgeOrder(a,b){return b.angle-a.angle}function d3_geom_voronoiCircle(){d3_geom_voronoiRedBlackNode(this),this.x=this.y=this.arc=this.site=this.cy=null}function d3_geom_voronoiAttachCircle(arc){var cy=arc.P,y=arc.N;if(cy&&y){var ha=cy.site,cSite=arc.site,
hc=y.site;if(ha!==hc){var bx=cSite.x,by=cSite.y,ax=ha.x-bx,x=ha.y-by,cx=hc.x-bx,y=2*(ax*(cy=hc.y-by)-x*cx);if(!(-ε2<=y)){var ha=ax*ax+x*x,hc=cx*cx+cy*cy,x=(cy*ha-x*hc)/y,y=(ax*hc-cx*ha)/y,cy=y+by,circle=d3_geom_voronoiCirclePool.pop()||new d3_geom_voronoiCircle;circle.arc=arc,circle.site=cSite,circle.x=x+bx,circle.y=cy+Math.sqrt(x*x+y*y),circle.cy=cy,arc.circle=circle;for(var before=null,node=d3_geom_voronoiCircles._;node;)if(circle.y<node.y||circle.y===node.y&&circle.x<=node.x){if(!node.L){before=node.P;break}node=node.L}else{if(!node.R){before=node;break}node=node.R}d3_geom_voronoiCircles.insert(before,circle),before||(d3_geom_voronoiFirstCircle=circle)}}}
}function d3_geom_voronoiDetachCircle(arc){var circle=arc.circle;circle&&(circle.P||(d3_geom_voronoiFirstCircle=circle.N),d3_geom_voronoiCircles.remove(circle),d3_geom_voronoiCirclePool.push(circle),d3_geom_voronoiRedBlackNode(circle),arc.circle=null)}function d3_geom_voronoiClipEdges(extent){for(var e,edges=d3_geom_voronoiEdges,clip=d3_geom_clipLine(extent[0][0],extent[0][1],extent[1][0],extent[1][1]),i=edges.length;i--;)(function(edge,ry){var vb=edge.b;if(vb)return!0;var va=edge.a,x0=ry[0][0],x1=ry[1][0],y0=ry[0][1],y1=ry[1][1],fb=edge.l,fm=edge.r,lx=fb.x,ly=fb.y,rx=fm.x,ry=fm.y,fb=(lx+rx)/2,fm=(ly+ry)/2;if(ry===ly){if(fb<x0||x1<=fb)return;if(rx<lx){if(va
){if(va.y>=y1)return}else va={x:fb,y:y0};vb={x:fb,y:y1}}else{if(va){if(va.y<y0)return}else va={x:fb,y:y1};vb={x:fb,y:y0}}}else if(fb=fm-(fm=(lx-rx)/(ry-ly))*fb,fm<-1||1<fm)if(rx<lx){if(va){if(va.y>=y1)return}else va={x:(y0-fb)/fm,y:y0};vb={x:(y1-fb)/fm,y:y1}}else{if(va){if(va.y<y0)return}else va={x:(y1-fb)/fm,y:y1};vb={x:(y0-fb)/fm,y:y0}}else if(ly<ry){if(va){if(va.x>=x1)return}else va={x:x0,y:fm*x0+fb};vb={x:x1,y:fm*x1+fb}}else{if(va){if(va.x<x0)return}else va={x:x1,y:fm*x1+fb};vb={x:x0,y:fm*x0+fb}}return edge.a=va,edge.b=vb,!0})(e=edges[i],extent)&&clip(e)&&!(abs(e.a.x-e.b.x)<ε&&abs(e.a.y-e.b.y)<ε)||(e.a=e.b=null,edges.splice(i,1))}
function d3_geom_voronoiEdge(lSite,rSite){this.l=lSite,this.r=rSite,this.a=this.b=null}function d3_geom_voronoiCreateEdge(lSite,rSite,va,vb){var edge=new d3_geom_voronoiEdge(lSite,rSite);return d3_geom_voronoiEdges.push(edge),va&&d3_geom_voronoiSetEdgeEnd(edge,lSite,rSite,va),vb&&d3_geom_voronoiSetEdgeEnd(edge,rSite,lSite,vb),d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge,lSite,rSite)),d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge,rSite,lSite)),edge}function d3_geom_voronoiSetEdgeEnd(edge,lSite,rSite,vertex){edge.a||edge.b?edge.l===rSite?edge.b=vertex:edge.a=vertex:(edge.a=vertex,edge.l=lSite,
edge.r=rSite)}function d3_geom_voronoiHalfEdge(edge,lSite,rSite){var va=edge.a,vb=edge.b;this.edge=edge,this.site=lSite,this.angle=rSite?Math.atan2(rSite.y-lSite.y,rSite.x-lSite.x):edge.l===lSite?Math.atan2(vb.x-va.x,va.y-vb.y):Math.atan2(va.x-vb.x,vb.y-va.y)}function d3_geom_voronoiRedBlackTree(){this._=null}function d3_geom_voronoiRedBlackNode(node){node.U=node.C=node.L=node.R=node.P=node.N=null}function d3_geom_voronoiRedBlackRotateLeft(tree,parent){var p=parent,q=parent.R,parent=p.U;parent?parent.L===p?parent.L=q:parent.R=q:tree._=q,q.U=parent,p.U=q,p.R=q.L,p.R&&(p.R.U=p),q.L=p}function d3_geom_voronoiRedBlackRotateRight(tree,parent){var p=parent,
q=parent.L,parent=p.U;parent?parent.L===p?parent.L=q:parent.R=q:tree._=q,q.U=parent,p.U=q,p.L=q.R,p.L&&(p.L.U=p),q.R=p}function d3_geom_voronoiRedBlackFirst(node){for(;node.L;)node=node.L;return node}function d3_geom_voronoi(sites,diagram){var x0,y0,circle,site=sites.sort(d3_geom_voronoiVertexOrder).pop();for(d3_geom_voronoiEdges=[],d3_geom_voronoiCells=new Array(sites.length),d3_geom_voronoiBeaches=new d3_geom_voronoiRedBlackTree,d3_geom_voronoiCircles=new d3_geom_voronoiRedBlackTree;;)if(circle=d3_geom_voronoiFirstCircle,site&&(!circle||site.y<circle.y||site.y===circle.y&&site.x<circle.x))site.x===x0&&site.y===y0||(
d3_geom_voronoiCells[site.i]=new d3_geom_voronoiCell(site),d3_geom_voronoiAddBeach(site),x0=site.x,y0=site.y),site=sites.pop();else{if(!circle)break;!function(beach){var circle=beach.circle,x=circle.x,y=circle.cy,vertex={x:x,y:y},previous=beach.P,next=beach.N,disappearing=[beach];d3_geom_voronoiDetachBeach(beach);for(var lArc=previous;lArc.circle&&abs(x-lArc.circle.x)<ε&&abs(y-lArc.circle.cy)<ε;)previous=lArc.P,disappearing.unshift(lArc),d3_geom_voronoiDetachBeach(lArc),lArc=previous;disappearing.unshift(lArc),d3_geom_voronoiDetachCircle(lArc);for(var rArc=next;rArc.circle&&abs(x-rArc.circle.x)<ε&&abs(y-rArc.circle.cy)<ε;)next=rArc.N,disappearing.push(rArc),
d3_geom_voronoiDetachBeach(rArc),rArc=next;disappearing.push(rArc),d3_geom_voronoiDetachCircle(rArc);for(var nArcs=disappearing.length,iArc=1;iArc<nArcs;++iArc)rArc=disappearing[iArc],lArc=disappearing[iArc-1],d3_geom_voronoiSetEdgeEnd(rArc.edge,lArc.site,rArc.site,vertex);lArc=disappearing[0],(rArc=disappearing[nArcs-1]).edge=d3_geom_voronoiCreateEdge(lArc.site,rArc.site,null,vertex),d3_geom_voronoiAttachCircle(lArc),d3_geom_voronoiAttachCircle(rArc)}(circle.arc)}diagram&&(d3_geom_voronoiClipEdges(diagram),d3_geom_voronoiCloseCells(diagram));diagram={cells:d3_geom_voronoiCells,edges:d3_geom_voronoiEdges}
;return d3_geom_voronoiBeaches=d3_geom_voronoiCircles=d3_geom_voronoiEdges=d3_geom_voronoiCells=null,diagram}function d3_geom_voronoiVertexOrder(a,b){return b.y-a.y||b.x-a.x}d3_geom_voronoiCell.prototype.prepare=function(){for(var edge,halfEdges=this.edges,iHalfEdge=halfEdges.length;iHalfEdge--;)(edge=halfEdges[iHalfEdge].edge).b&&edge.a||halfEdges.splice(iHalfEdge,1);return halfEdges.sort(d3_geom_voronoiHalfEdgeOrder),halfEdges.length},d3_geom_voronoiHalfEdge.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},d3_geom_voronoiRedBlackTree.prototype={
insert:function(after,node){var parent,grandpa,uncle;if(after){if(node.P=after,node.N=after.N,after.N&&(after.N.P=node),after.N=node,after.R){for(after=after.R;after.L;)after=after.L;after.L=node}else after.R=node;parent=after}else parent=this._?(after=d3_geom_voronoiRedBlackFirst(this._),node.P=null,(node.N=after).P=after.L=node,after):(node.P=node.N=null,this._=node,null);for(node.L=node.R=null,node.U=parent,node.C=!0,after=node;parent&&parent.C;)parent===(grandpa=parent.U).L?(uncle=grandpa.R)&&uncle.C?(parent.C=uncle.C=!1,grandpa.C=!0,after=grandpa):(after===parent.R&&(d3_geom_voronoiRedBlackRotateLeft(this,parent),parent=(after=parent).U),parent.C=!1,
grandpa.C=!0,d3_geom_voronoiRedBlackRotateRight(this,grandpa)):(uncle=grandpa.L)&&uncle.C?(parent.C=uncle.C=!1,grandpa.C=!0,after=grandpa):(after===parent.L&&(d3_geom_voronoiRedBlackRotateRight(this,parent),parent=(after=parent).U),parent.C=!1,grandpa.C=!0,d3_geom_voronoiRedBlackRotateLeft(this,grandpa)),parent=after.U;this._.C=!1},remove:function(node){node.N&&(node.N.P=node.P),node.P&&(node.P.N=node.N),node.N=node.P=null;var sibling,red,parent=node.U,left=node.L,right=node.R,next=left?right?d3_geom_voronoiRedBlackFirst(right):left:right;if(parent?parent.L===node?parent.L=next:parent.R=next:this._=next,left&&right?(red=next.C,next.C=node.C,((next.L=left
).U=next)!==right?(parent=next.U,next.U=node.U,node=next.R,parent.L=node,(next.R=right).U=next):(next.U=parent,node=(parent=next).R)):(red=node.C,node=next),node&&(node.U=parent),!red)if(node&&node.C)node.C=!1;else{do{if(node===this._)break;if(node===parent.L){if((sibling=parent.R).C&&(sibling.C=!1,parent.C=!0,d3_geom_voronoiRedBlackRotateLeft(this,parent),sibling=parent.R),sibling.L&&sibling.L.C||sibling.R&&sibling.R.C){sibling.R&&sibling.R.C||(sibling.L.C=!1,sibling.C=!0,d3_geom_voronoiRedBlackRotateRight(this,sibling),sibling=parent.R),sibling.C=parent.C,parent.C=sibling.R.C=!1,d3_geom_voronoiRedBlackRotateLeft(this,parent),node=this._;break}}else if((
sibling=parent.L).C&&(sibling.C=!1,parent.C=!0,d3_geom_voronoiRedBlackRotateRight(this,parent),sibling=parent.L),sibling.L&&sibling.L.C||sibling.R&&sibling.R.C){sibling.L&&sibling.L.C||(sibling.R.C=!1,sibling.C=!0,d3_geom_voronoiRedBlackRotateLeft(this,sibling),sibling=parent.L),sibling.C=parent.C,parent.C=sibling.L.C=!1,d3_geom_voronoiRedBlackRotateRight(this,parent),node=this._;break}}while(sibling.C=!0,parent=(node=parent).U,!node.C);node&&(node.C=!1)}}},d3.geom.voronoi=function(points){var x=d3_geom_pointX,y=d3_geom_pointY,fx=x,fy=y,clipExtent=d3_geom_voronoiClipExtent;return points?voronoi(points):(voronoi.links=function(data){return d3_geom_voronoi(
sites(data)).edges.filter(function(edge){return edge.l&&edge.r}).map(function(edge){return{source:data[edge.l.i],target:data[edge.r.i]}})},voronoi.triangles=function(data){var triangles=[];return d3_geom_voronoi(sites(data)).cells.forEach(function(cell,i){for(var s0,a,b,c,site=cell.site,edges=cell.edges.sort(d3_geom_voronoiHalfEdgeOrder),j=-1,m=edges.length,e1=edges[m-1].edge,s1=e1.l===site?e1.r:e1.l;++j<m;)s0=s1,s1=(e1=edges[j].edge).l===site?e1.r:e1.l,i<s0.i&&i<s1.i&&(b=s0,c=s1,((a=site).x-c.x)*(b.y-a.y)-(a.x-b.x)*(c.y-a.y)<0)&&triangles.push([data[i],data[s0.i],data[s1.i]])}),triangles},voronoi.x=function(_){return arguments.length?(fx=d3_functor(x=_),
voronoi):x},voronoi.y=function(_){return arguments.length?(fy=d3_functor(y=_),voronoi):y},voronoi.clipExtent=function(_){return arguments.length?(clipExtent=null==_?d3_geom_voronoiClipExtent:_,voronoi):clipExtent===d3_geom_voronoiClipExtent?null:clipExtent},voronoi.size=function(_){return arguments.length?voronoi.clipExtent(_&&[[0,0],_]):clipExtent===d3_geom_voronoiClipExtent?null:clipExtent&&clipExtent[1]},voronoi);function voronoi(data){var polygons=new Array(data.length),x0=clipExtent[0][0],y0=clipExtent[0][1],x1=clipExtent[1][0],y1=clipExtent[1][1];return d3_geom_voronoi(sites(data),clipExtent).cells.forEach(function(site,i){var edges=site.edges,
site=site.site;(polygons[i]=edges.length?edges.map(function(s){s=s.start();return[s.x,s.y]}):site.x>=x0&&site.x<=x1&&site.y>=y0&&site.y<=y1?[[x0,y1],[x1,y1],[x1,y0],[x0,y0]]:[]).point=data[i]}),polygons}function sites(data){return data.map(function(d,i){return{x:Math.round(fx(d,i)/ε)*ε,y:Math.round(fy(d,i)/ε)*ε,i:i}})}};var d3_geom_voronoiClipExtent=[[-1e6,-1e6],[1e6,1e6]];function d3_geom_quadtreeCompatX(d){return d.x}function d3_geom_quadtreeCompatY(d){return d.y}function d3_geom_quadtreeNode(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function d3_interpolateRgb(a,b){a=d3.rgb(a),b=d3.rgb(b);var ar=a.r,ag=a.g,ab=a.b,br=b.r-ar,bg=b.g-ag,bb=b.b-ab
;return function(t){return"#"+d3_rgb_hex(Math.round(ar+br*t))+d3_rgb_hex(Math.round(ag+bg*t))+d3_rgb_hex(Math.round(ab+bb*t))}}function d3_interpolateObject(a,b){var k,i={},c={};for(k in a)k in b?i[k]=d3_interpolate(a[k],b[k]):c[k]=a[k];for(k in b)k in a||(c[k]=b[k]);return function(t){for(k in i)c[k]=i[k](t);return c}}function d3_interpolateNumber(a,b){return a=+a,b=+b,function(t){return a*(1-t)+b*t}}function d3_interpolateString(a,b){var am,bm,bs,bi=d3_interpolate_numberA.lastIndex=d3_interpolate_numberB.lastIndex=0,i=-1,s=[],q=[];for(a+="",b+="";(am=d3_interpolate_numberA.exec(a))&&(bm=d3_interpolate_numberB.exec(b));)(bs=bm.index)>bi&&(bs=b.slice(bi,bs),
s[i]?s[i]+=bs:s[++i]=bs),(am=am[0])===(bm=bm[0])?s[i]?s[i]+=bm:s[++i]=bm:(s[++i]=null,q.push({i:i,x:d3_interpolateNumber(am,bm)})),bi=d3_interpolate_numberB.lastIndex;return bi<b.length&&(bs=b.slice(bi),s[i]?s[i]+=bs:s[++i]=bs),s.length<2?q[0]?(b=q[0].x,function(t){return b(t)+""}):function(){return b}:(b=q.length,function(t){for(var o,i=0;i<b;++i)s[(o=q[i]).i]=o.x(t);return s.join("")})}d3.geom.delaunay=function(vertices){return d3.geom.voronoi().triangles(vertices)},d3.geom.quadtree=function(points,x1,y1,x2,y2){var compat,x=d3_geom_pointX,y=d3_geom_pointY;return(compat=arguments.length)?(x=d3_geom_quadtreeCompatX,y=d3_geom_quadtreeCompatY,3===compat&&(
y2=y1,x2=x1,y1=x1=0),quadtree(points)):(quadtree.x=function(_){return arguments.length?(x=_,quadtree):x},quadtree.y=function(_){return arguments.length?(y=_,quadtree):y},quadtree.extent=function(_){return arguments.length?(null==_?x1=y1=x2=y2=null:(x1=+_[0][0],y1=+_[0][1],x2=+_[1][0],y2=+_[1][1]),quadtree):null==x1?null:[[x1,y1],[x2,y2]]},quadtree.size=function(_){return arguments.length?(null==_?x1=y1=x2=y2=null:(x1=y1=0,x2=+_[0],y2=+_[1]),quadtree):null==x1?null:[x2-x1,y2-y1]},quadtree);function quadtree(data){var d,xs,ys,i,n,x1_,y1_,x2_,y2_,fx=d3_functor(x),fy=d3_functor(y);if(null!=x1)x1_=x1,y1_=y1,x2_=x2,y2_=y2;else if(x2_=y2_=-(x1_=y1_=1/0),xs=[],ys=[]
,n=data.length,compat)for(i=0;i<n;++i)(d=data[i]).x<x1_&&(x1_=d.x),d.y<y1_&&(y1_=d.y),d.x>x2_&&(x2_=d.x),d.y>y2_&&(y2_=d.y),xs.push(d.x),ys.push(d.y);else for(i=0;i<n;++i){var x_=+fx(d=data[i],i),y_=+fy(d,i);x_<x1_&&(x1_=x_),y_<y1_&&(y1_=y_),x2_<x_&&(x2_=x_),y2_<y_&&(y2_=y_),xs.push(x_),ys.push(y_)}var dx=x2_-x1_,dy=y2_-y1_;function insert(n,d,x,y,x1,y1,x2,y2){var nx,ny,nPoint;isNaN(x)||isNaN(y)||(n.leaf?(nx=n.x,ny=n.y,null!=nx?(abs(nx-x)+abs(ny-y)<.01||(nPoint=n.point,n.x=n.y=n.point=null,insertChild(n,nPoint,nx,ny,x1,y1,x2,y2)),insertChild(n,d,x,y,x1,y1,x2,y2)):(n.x=x,n.y=y,n.point=d)):insertChild(n,d,x,y,x1,y1,x2,y2))}function insertChild(n,d,x,y,x1,y1,x2
,y2){var xm=.5*(x1+x2),ym=.5*(y1+y2),right=xm<=x,below=ym<=y,i=below<<1|right;n.leaf=!1,right?x1=xm:x2=xm,below?y1=ym:y2=ym,insert(n=n.nodes[i]||(n.nodes[i]=d3_geom_quadtreeNode()),d,x,y,x1,y1,x2,y2)}dy<dx?y2_=y1_+dx:x2_=x1_+dy;var root=d3_geom_quadtreeNode();if(root.add=function(d){insert(root,d,+fx(d,++i),+fy(d,i),x1_,y1_,x2_,y2_)},root.visit=function(f){!function d3_geom_quadtreeVisit(f,children,x1,y1,x2,y2){{var sx,sy;f(children,x1,y1,x2,y2)||(sx=.5*(x1+x2),sy=.5*(y1+y2),(children=children.nodes)[0]&&d3_geom_quadtreeVisit(f,children[0],x1,y1,sx,sy),children[1]&&d3_geom_quadtreeVisit(f,children[1],sx,y1,x2,sy),children[2]&&d3_geom_quadtreeVisit(f,
children[2],x1,sy,sx,y2),children[3]&&d3_geom_quadtreeVisit(f,children[3],sx,sy,x2,y2))}}(f,root,x1_,y1_,x2_,y2_)},root.find=function(point){return function(root,x,y,x0,y0,x3,y3){var closestPoint,minDistance2=1/0;return function find(node,x1,y1,x2,y2){if(!(x3<x1||y3<y1||x2<x0||y2<y0)){var point,distance;!(point=node.point)||(distance=(distance=x-node.x)*distance+(distance=y-node.y)*distance)<minDistance2&&(distance=Math.sqrt(minDistance2=distance),x0=x-distance,y0=y-distance,x3=x+distance,y3=y+distance,closestPoint=point);for(var children=node.nodes,xm=.5*(x1+x2),ym=.5*(y1+y2),i=(ym<=y)<<1|xm<=x,j=i+4;i<j;++i)if(node=children[3&i])switch(3&i){case 0:find(
node,x1,y1,xm,ym);break;case 1:find(node,xm,y1,x2,ym);break;case 2:find(node,x1,ym,xm,y2);break;case 3:find(node,xm,ym,x2,y2)}}}(root,x0,y0,x3,y3),closestPoint}(root,point[0],point[1],x1_,y1_,x2_,y2_)},i=-1,null==x1){for(;++i<n;)insert(root,data[i],xs[i],ys[i],x1_,y1_,x2_,y2_);--i}else data.forEach(root.add);return xs=ys=data=d=null,root}},d3.interpolateRgb=d3_interpolateRgb,d3.interpolateObject=d3_interpolateObject,d3.interpolateNumber=d3_interpolateNumber,d3.interpolateString=d3_interpolateString;var d3_interpolate_numberA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d3_interpolate_numberB=new RegExp(d3_interpolate_numberA.source,"g")
;function d3_interpolate(a,b){for(var f,i=d3.interpolators.length;0<=--i&&!(f=d3.interpolators[i](a,b)););return f}function d3_interpolateArray(a,b){for(var x=[],c=[],na=a.length,nb=b.length,n0=Math.min(a.length,b.length),i=0;i<n0;++i)x.push(d3_interpolate(a[i],b[i]));for(;i<na;++i)c[i]=a[i];for(;i<nb;++i)c[i]=b[i];return function(t){for(i=0;i<n0;++i)c[i]=x[i](t);return c}}d3.interpolate=d3_interpolate,d3.interpolators=[function(a,b){var t=typeof b;return("string"==t?d3_rgb_names.has(b.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(b)?d3_interpolateRgb:d3_interpolateString:b instanceof d3_color?d3_interpolateRgb:Array.isArray(b
)?d3_interpolateArray:"object"==t&&isNaN(b)?d3_interpolateObject:d3_interpolateNumber)(a,b)}],d3.interpolateArray=d3_interpolateArray;function d3_ease_default(){return d3_identity}var d3_ease=d3.map({linear:d3_ease_default,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return d3_ease_quad},cubic:function(){return d3_ease_cubic},sin:function(){return d3_ease_sin},exp:function(){return d3_ease_exp},circle:function(){return d3_ease_circle},elastic:function(a,p){var s;arguments.length<2&&(p=.45);s=arguments.length?p/τ*Math.asin(1/a):(a=1,p/4);return function(t){return 1+a*Math.pow(2,-10*t)*Math.sin((t-s)*τ/p)}},back:function(s){
s=s||1.70158;return function(t){return t*t*((s+1)*t-s)}},bounce:function(){return d3_ease_bounce}}),d3_ease_mode=d3.map({in:d3_identity,out:d3_ease_reverse,"in-out":d3_ease_reflect,"out-in":function(f){return d3_ease_reflect(d3_ease_reverse(f))}});function d3_ease_reverse(f){return function(t){return 1-f(1-t)}}function d3_ease_reflect(f){return function(t){return.5*(t<.5?f(2*t):2-f(2-2*t))}}function d3_ease_quad(t){return t*t}function d3_ease_cubic(t){return t*t*t}function d3_ease_cubicInOut(t){if(t<=0)return 0;if(1<=t)return 1;var t2=t*t,t3=t2*t;return 4*(t<.5?t3:3*(t-t2)+t3-.75)}function d3_ease_sin(t){return 1-Math.cos(t*halfπ)}function d3_ease_exp(t){
return Math.pow(2,10*(t-1))}function d3_ease_circle(t){return 1-Math.sqrt(1-t*t)}function d3_ease_bounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function d3_interpolateRound(a,b){return b-=a,function(t){return Math.round(a+b*t)}}function d3_transform(m){var ky,b,k,r0=[m.a,m.b],r1=[m.c,m.d],kx=d3_transformNormalize(r0),kz=d3_transformDot(r0,r1),ky=d3_transformNormalize(((ky=r1)[0]+=(k=-kz)*(b=r0)[0],ky[1]+=k*b[1],ky))||0;r0[0]*r1[1]<r1[0]*r0[1]&&(r0[0]*=-1,r0[1]*=-1,kx*=-1,kz*=-1),this.rotate=(kx?Math.atan2(r0[1],r0[0]):Math.atan2(-r1[0],r1[1]))*d3_degrees,
this.translate=[m.e,m.f],this.scale=[kx,ky],this.skew=ky?Math.atan2(kz,ky)*d3_degrees:0}function d3_transformDot(a,b){return a[0]*b[0]+a[1]*b[1]}function d3_transformNormalize(a){var k=Math.sqrt(d3_transformDot(a,a));return k&&(a[0]/=k,a[1]/=k),k}d3.ease=function(name){var f,m=name.indexOf("-"),t=0<=m?name.slice(0,m):name,m=0<=m?name.slice(m+1):"in",t=d3_ease.get(t)||d3_ease_default,m=d3_ease_mode.get(m)||d3_identity;return f=m(t.apply(null,d3_arraySlice.call(arguments,1))),function(t){return t<=0?0:1<=t?1:f(t)}},d3.interpolateHcl=function(a,b){a=d3.hcl(a),b=d3.hcl(b);var ah=a.h,ac=a.c,al=a.l,bh=b.h-ah,bc=b.c-ac,bl=b.l-al;isNaN(bc)&&(bc=0,ac=isNaN(ac)?b.c:ac
);isNaN(bh)?(bh=0,ah=isNaN(ah)?b.h:ah):180<bh?bh-=360:bh<-180&&(bh+=360);return function(t){return d3_hcl_lab(ah+bh*t,ac+bc*t,al+bl*t)+""}},d3.interpolateHsl=function(a,b){a=d3.hsl(a),b=d3.hsl(b);var ah=a.h,as=a.s,al=a.l,bh=b.h-ah,bs=b.s-as,bl=b.l-al;isNaN(bs)&&(bs=0,as=isNaN(as)?b.s:as);isNaN(bh)?(bh=0,ah=isNaN(ah)?b.h:ah):180<bh?bh-=360:bh<-180&&(bh+=360);return function(t){return d3_hsl_rgb(ah+bh*t,as+bs*t,al+bl*t)+""}},d3.interpolateLab=function(a,b){a=d3.lab(a),b=d3.lab(b);var al=a.l,aa=a.a,ab=a.b,bl=b.l-al,ba=b.a-aa,bb=b.b-ab;return function(t){return d3_lab_rgb(al+bl*t,aa+ba*t,ab+bb*t)+""}},d3.interpolateRound=d3_interpolateRound,
d3.transform=function(string){var g=d3_document.createElementNS(d3.ns.prefix.svg,"g");return(d3.transform=function(string){var t;return null!=string&&(g.setAttribute("transform",string),t=g.transform.baseVal.consolidate()),new d3_transform(t?t.matrix:d3_transformIdentity)})(string)},d3_transform.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var d3_transformIdentity={a:1,b:0,c:0,d:1,e:0,f:0};function d3_interpolateTransformPop(s){return s.length?s.pop()+",":""}function d3_interpolateTransform(a,b){var s=[],q=[];return a=d3.transform(a),b=d3.transform(b),function(ta,tb,s,q){
var i;ta[0]!==tb[0]||ta[1]!==tb[1]?(i=s.push("translate(",null,",",null,")"),q.push({i:i-4,x:d3_interpolateNumber(ta[0],tb[0])},{i:i-2,x:d3_interpolateNumber(ta[1],tb[1])})):(tb[0]||tb[1])&&s.push("translate("+tb+")")}(a.translate,b.translate,s,q),function(ra,rb,s,q){ra!==rb?(180<ra-rb?rb+=360:180<rb-ra&&(ra+=360),q.push({i:s.push(d3_interpolateTransformPop(s)+"rotate(",null,")")-2,x:d3_interpolateNumber(ra,rb)})):rb&&s.push(d3_interpolateTransformPop(s)+"rotate("+rb+")")}(a.rotate,b.rotate,s,q),function(wa,wb,s,q){wa!==wb?q.push({i:s.push(d3_interpolateTransformPop(s)+"skewX(",null,")")-2,x:d3_interpolateNumber(wa,wb)}):wb&&s.push(
d3_interpolateTransformPop(s)+"skewX("+wb+")")}(a.skew,b.skew,s,q),function(ka,kb,s,q){var i;ka[0]!==kb[0]||ka[1]!==kb[1]?(i=s.push(d3_interpolateTransformPop(s)+"scale(",null,",",null,")"),q.push({i:i-4,x:d3_interpolateNumber(ka[0],kb[0])},{i:i-2,x:d3_interpolateNumber(ka[1],kb[1])})):1===kb[0]&&1===kb[1]||s.push(d3_interpolateTransformPop(s)+"scale("+kb+")")}(a.scale,b.scale,s,q),a=b=null,function(t){for(var o,i=-1,n=q.length;++i<n;)s[(o=q[i]).i]=o.x(t);return s.join("")}}function d3_uninterpolateNumber(a,b){return b=(b-=a=+a)||1/b,function(x){return(x-a)/b}}function d3_uninterpolateClamp(a,b){return b=(b-=a=+a)||1/b,function(x){return Math.max(0,Math.min(
1,(x-a)/b))}}function d3_layout_bundleAncestors(node){for(var ancestors=[],parent=node.parent;null!=parent;)ancestors.push(node),parent=(node=parent).parent;return ancestors.push(node),ancestors}function d3_layout_forceDragstart(d){d.fixed|=2}function d3_layout_forceDragend(d){d.fixed&=-7}function d3_layout_forceMouseover(d){d.fixed|=4,d.px=d.x,d.py=d.y}function d3_layout_forceMouseout(d){d.fixed&=-5}d3.interpolateTransform=d3_interpolateTransform,d3.layout={},d3.layout.bundle=function(){return function(links){for(var paths=[],i=-1,n=links.length;++i<n;)paths.push(function(link){var start=link.source,end=link.target,lca=function(a,b){if(a===b)return a
;var aNodes=d3_layout_bundleAncestors(a),bNodes=d3_layout_bundleAncestors(b),aNode=aNodes.pop(),bNode=bNodes.pop(),sharedNode=null;for(;aNode===bNode;)sharedNode=aNode,aNode=aNodes.pop(),bNode=bNodes.pop();return sharedNode}(start,end),points=[start];for(;start!==lca;)start=start.parent,points.push(start);var k=points.length;for(;end!==lca;)points.splice(k,0,end),end=end.parent;return points}(links[i]));return paths}},d3.layout.chord=function(){var chords,groups,matrix,n,sortGroups,sortSubgroups,sortChords,chord={},padding=0;function relayout(){var k,x,x0,i,j,subgroups={},groupSums=[],groupIndex=d3.range(n),subgroupIndex=[];for(chords=[],groups=[],k=0,
i=-1;++i<n;){for(x=0,j=-1;++j<n;)x+=matrix[i][j];groupSums.push(x),subgroupIndex.push(d3.range(n)),k+=x}for(sortGroups&&groupIndex.sort(function(a,b){return sortGroups(groupSums[a],groupSums[b])}),sortSubgroups&&subgroupIndex.forEach(function(d,i){d.sort(function(a,b){return sortSubgroups(matrix[i][a],matrix[i][b])})}),k=(τ-padding*n)/k,x=0,i=-1;++i<n;){for(x0=x,j=-1;++j<n;){var di=groupIndex[i],dj=subgroupIndex[di][j],v=matrix[di][dj],a0=x,a1=x+=v*k;subgroups[di+"-"+dj]={index:di,subindex:dj,startAngle:a0,endAngle:a1,value:v}}groups[di]={index:di,startAngle:x0,endAngle:x,value:groupSums[di]},x+=padding}for(i=-1;++i<n;)for(j=i-1;++j<n;){
var source=subgroups[i+"-"+j],target=subgroups[j+"-"+i];(source.value||target.value)&&chords.push(source.value<target.value?{source:target,target:source}:{source:source,target:target})}sortChords&&resort()}function resort(){chords.sort(function(a,b){return sortChords((a.source.value+a.target.value)/2,(b.source.value+b.target.value)/2)})}return chord.matrix=function(x){return arguments.length?(n=(matrix=x)&&matrix.length,chords=groups=null,chord):matrix},chord.padding=function(x){return arguments.length?(padding=x,chords=groups=null,chord):padding},chord.sortGroups=function(x){return arguments.length?(sortGroups=x,chords=groups=null,chord):sortGroups},
chord.sortSubgroups=function(x){return arguments.length?(sortSubgroups=x,chords=null,chord):sortSubgroups},chord.sortChords=function(x){return arguments.length?(sortChords=x,chords&&resort(),chord):sortChords},chord.chords=function(){return chords||relayout(),chords},chord.groups=function(){return groups||relayout(),groups},chord},d3.layout.force=function(){var timer,drag,alpha,distances,strengths,charges,force={},event=d3.dispatch("start","tick","end"),size=[1,1],friction=.9,linkDistance=d3_layout_forceLinkDistance,linkStrength=d3_layout_forceLinkStrength,charge=-30,chargeDistance2=d3_layout_forceChargeDistance2,gravity=.1,theta2=.64,nodes=[],links=[]
;function dragmove(d){d.px=d3.event.x,d.py=d3.event.y,force.resume()}return force.tick=function(){if((alpha*=.99)<.005)return timer=null,event.end({type:"end",alpha:alpha=0}),!0;for(var q,o,s,t,l,k,x,y,n=nodes.length,m=links.length,i=0;i<m;++i)s=(o=links[i]).source,(l=(x=(t=o.target).x-s.x)*x+(y=t.y-s.y)*y)&&(x*=l=alpha*strengths[i]*((l=Math.sqrt(l))-distances[i])/l,y*=l,t.x-=x*(k=s.weight+t.weight?s.weight/(s.weight+t.weight):.5),t.y-=y*k,s.x+=x*(k=1-k),s.y+=y*k);if((k=alpha*gravity)&&(x=size[0]/2,y=size[1]/2,i=-1,k))for(;++i<n;)(o=nodes[i]).x+=(x-o.x)*k,o.y+=(y-o.y)*k;if(charge)for(!function d3_layout_forceAccumulate(quad,alpha,charges){var cx=0,cy=0
;quad.charge=0;if(!quad.leaf)for(var c,nodes=quad.nodes,n=nodes.length,i=-1;++i<n;)null!=(c=nodes[i])&&(d3_layout_forceAccumulate(c,alpha,charges),quad.charge+=c.charge,cx+=c.charge*c.cx,cy+=c.charge*c.cy);{var k;quad.point&&(quad.leaf||(quad.point.x+=Math.random()-.5,quad.point.y+=Math.random()-.5),k=alpha*charges[quad.point.index],quad.charge+=quad.pointCharge=k,cx+=k*quad.point.x,cy+=k*quad.point.y)}quad.cx=cx/quad.charge;quad.cy=cy/quad.charge}(q=d3.geom.quadtree(nodes),alpha,charges),i=-1;++i<n;)(o=nodes[i]).fixed||q.visit(function(node){return function(quad,dn,_,dw){if(quad.point!==node){var k,dx=quad.cx-node.x,dy=quad.cy-node.y,dw=dw-dn,dn=dx*dx+dy*dy
;if(dw*dw/theta2<dn)return dn<chargeDistance2&&(k=quad.charge/dn,node.px-=dx*k,node.py-=dy*k),!0;quad.point&&dn&&dn<chargeDistance2&&(k=quad.pointCharge/dn,node.px-=dx*k,node.py-=dy*k)}return!quad.charge}}(o));for(i=-1;++i<n;)(o=nodes[i]).fixed?(o.x=o.px,o.y=o.py):(o.x-=(o.px-(o.px=o.x))*friction,o.y-=(o.py-(o.py=o.y))*friction);event.tick({type:"tick",alpha:alpha})},force.nodes=function(x){return arguments.length?(nodes=x,force):nodes},force.links=function(x){return arguments.length?(links=x,force):links},force.size=function(x){return arguments.length?(size=x,force):size},force.linkDistance=function(x){return arguments.length?(
linkDistance="function"==typeof x?x:+x,force):linkDistance},force.distance=force.linkDistance,force.linkStrength=function(x){return arguments.length?(linkStrength="function"==typeof x?x:+x,force):linkStrength},force.friction=function(x){return arguments.length?(friction=+x,force):friction},force.charge=function(x){return arguments.length?(charge="function"==typeof x?x:+x,force):charge},force.chargeDistance=function(x){return arguments.length?(chargeDistance2=x*x,force):Math.sqrt(chargeDistance2)},force.gravity=function(x){return arguments.length?(gravity=+x,force):gravity},force.theta=function(x){return arguments.length?(theta2=x*x,force):Math.sqrt(theta2)},
force.alpha=function(x){return arguments.length?(x=+x,alpha?0<x?alpha=x:(timer.c=null,timer.t=NaN,timer=null,event.end({type:"end",alpha:alpha=0})):0<x&&(event.start({type:"start",alpha:alpha=x}),timer=d3_timer(force.tick)),force):alpha},force.start=function(){for(var neighbors,o,n=nodes.length,m=links.length,w=size[0],h=size[1],i=0;i<n;++i)(o=nodes[i]).index=i,o.weight=0;for(i=0;i<m;++i)"number"==typeof(o=links[i]).source&&(o.source=nodes[o.source]),"number"==typeof o.target&&(o.target=nodes[o.target]),++o.source.weight,++o.target.weight;for(i=0;i<n;++i)o=nodes[i],isNaN(o.x)&&(o.x=position("x",w)),isNaN(o.y)&&(o.y=position("y",h)),isNaN(o.px)&&(o.px=o.x),
isNaN(o.py)&&(o.py=o.y);if(distances=[],"function"==typeof linkDistance)for(i=0;i<m;++i)distances[i]=+linkDistance.call(this,links[i],i);else for(i=0;i<m;++i)distances[i]=linkDistance;if(strengths=[],"function"==typeof linkStrength)for(i=0;i<m;++i)strengths[i]=+linkStrength.call(this,links[i],i);else for(i=0;i<m;++i)strengths[i]=linkStrength;if(charges=[],"function"==typeof charge)for(i=0;i<n;++i)charges[i]=+charge.call(this,nodes[i],i);else for(i=0;i<n;++i)charges[i]=charge;function position(dimension,size){if(!neighbors){for(neighbors=new Array(n),j=0;j<n;++j)neighbors[j]=[];for(j=0;j<m;++j){var o=links[j];neighbors[o.source.index].push(o.target),
neighbors[o.target.index].push(o.source)}}for(var x,candidates=neighbors[i],j=-1,l=candidates.length;++j<l;)if(!isNaN(x=candidates[j][dimension]))return x;return Math.random()*size}return force.resume()},force.resume=function(){return force.alpha(.1)},force.stop=function(){return force.alpha(0)},force.drag=function(){if(drag=drag||d3.behavior.drag().origin(d3_identity).on("dragstart.force",d3_layout_forceDragstart).on("drag.force",dragmove).on("dragend.force",d3_layout_forceDragend),!arguments.length)return drag;this.on("mouseover.force",d3_layout_forceMouseover).on("mouseout.force",d3_layout_forceMouseout).call(drag)},d3.rebind(force,event,"on")}
;var d3_layout_forceLinkDistance=20,d3_layout_forceLinkStrength=1,d3_layout_forceChargeDistance2=1/0;function d3_layout_hierarchyRebind(object,hierarchy){return d3.rebind(object,hierarchy,"sort","children","value"),(object.nodes=object).links=d3_layout_hierarchyLinks,object}function d3_layout_hierarchyVisitBefore(node,callback){for(var n,children,nodes=[node];null!=(node=nodes.pop());)if(callback(node),(children=node.children)&&(n=children.length))for(;0<=--n;)nodes.push(children[n])}function d3_layout_hierarchyVisitAfter(node,callback){for(var nodes=[node],nodes2=[];null!=(node=nodes.pop());)if(nodes2.push(node),(children=node.children)&&(n=children.length)
)for(var n,children,i=-1;++i<n;)nodes.push(children[i]);for(;null!=(node=nodes2.pop());)callback(node)}function d3_layout_hierarchyChildren(d){return d.children}function d3_layout_hierarchyValue(d){return d.value}function d3_layout_hierarchySort(a,b){return b.value-a.value}function d3_layout_hierarchyLinks(nodes){return d3.merge(nodes.map(function(parent){return(parent.children||[]).map(function(child){return{source:parent,target:child}})}))}d3.layout.hierarchy=function(){var sort=d3_layout_hierarchySort,children=d3_layout_hierarchyChildren,value=d3_layout_hierarchyValue;function hierarchy(root){var node,n,childs,child,stack=[root],nodes=[];for(
root.depth=0;null!=(node=stack.pop());)if(nodes.push(node),(childs=children.call(hierarchy,node,node.depth))&&(n=childs.length)){for(;0<=--n;)stack.push(child=childs[n]),child.parent=node,child.depth=node.depth+1;value&&(node.value=0),node.children=childs}else value&&(node.value=+value.call(hierarchy,node,node.depth)||0),delete node.children;return d3_layout_hierarchyVisitAfter(root,function(node){var childs,parent;sort&&(childs=node.children)&&childs.sort(sort),value&&(parent=node.parent)&&(parent.value+=node.value)}),nodes}return hierarchy.sort=function(x){return arguments.length?(sort=x,hierarchy):sort},hierarchy.children=function(x){
return arguments.length?(children=x,hierarchy):children},hierarchy.value=function(x){return arguments.length?(value=x,hierarchy):value},hierarchy.revalue=function(root){return value&&(d3_layout_hierarchyVisitBefore(root,function(node){node.children&&(node.value=0)}),d3_layout_hierarchyVisitAfter(root,function(node){var parent;node.children||(node.value=+value.call(hierarchy,node,node.depth)||0),(parent=node.parent)&&(parent.value+=node.value)})),root},hierarchy},d3.layout.partition=function(){var hierarchy=d3.layout.hierarchy(),size=[1,1];function partition(d,nodes){nodes=hierarchy.call(this,d,nodes);return function position(node,x,dx,dy){
var children=node.children;if(node.x=x,node.y=node.depth*dy,node.dx=dx,node.dy=dy,children&&(n=children.length)){var n,d,i=-1;for(dx=node.value?dx/node.value:0;++i<n;)position(d=children[i],x,d=d.value*dx,dy),x+=d}}(nodes[0],0,size[0],size[1]/function depth(node){var children=node.children,d=0;if(children&&(n=children.length))for(var n,i=-1;++i<n;)d=Math.max(d,depth(children[i]));return 1+d}(nodes[0])),nodes}return partition.size=function(x){return arguments.length?(size=x,partition):size},d3_layout_hierarchyRebind(partition,hierarchy)},d3.layout.pie=function(){var value=Number,sort=d3_layout_pieSortByValue,startAngle=0,endAngle=τ,padAngle=0;function pie(
data){var v,index=data.length,values=data.map(function(d,i){return+value.call(pie,d,i)}),a=+("function"==typeof startAngle?startAngle.apply(this,arguments):startAngle),da=("function"==typeof endAngle?endAngle.apply(this,arguments):endAngle)-a,p=Math.min(Math.abs(da)/index,+("function"==typeof padAngle?padAngle.apply(this,arguments):padAngle)),pa=p*(da<0?-1:1),sum=d3.sum(values),k=sum?(da-index*pa)/sum:0,index=d3.range(index),arcs=[];return null!=sort&&index.sort(sort===d3_layout_pieSortByValue?function(i,j){return values[j]-values[i]}:function(i,j){return sort(data[i],data[j])}),index.forEach(function(i){arcs[i]={data:data[i],value:v=values[i],startAngle:a,
endAngle:a+=v*k+pa,padAngle:p}}),arcs}return pie.value=function(_){return arguments.length?(value=_,pie):value},pie.sort=function(_){return arguments.length?(sort=_,pie):sort},pie.startAngle=function(_){return arguments.length?(startAngle=_,pie):startAngle},pie.endAngle=function(_){return arguments.length?(endAngle=_,pie):endAngle},pie.padAngle=function(_){return arguments.length?(padAngle=_,pie):padAngle},pie};var d3_layout_pieSortByValue={};function d3_layout_stackX(d){return d.x}function d3_layout_stackY(d){return d.y}function d3_layout_stackOut(d,y0,y){d.y0=y0,d.y=y}d3.layout.stack=function(){var values=d3_identity,order=d3_layout_stackOrderDefault,
offset=d3_layout_stackOffsetZero,out=d3_layout_stackOut,x=d3_layout_stackX,y=d3_layout_stackY;function stack(data,index){if(!(n=data.length))return data;for(var n,i,o,points=(series=data.map(function(d,i){return values.call(stack,d,i)})).map(function(d){return d.map(function(v,i){return[x.call(stack,v,i),y.call(stack,v,i)]})}),orders=order.call(stack,points,index),series=d3.permute(series,orders),points=d3.permute(points,orders),offsets=offset.call(stack,points,index),m=series[0].length,j=0;j<m;++j)for(out.call(stack,series[0][j],o=offsets[j],points[0][j][1]),i=1;i<n;++i)out.call(stack,series[i][j],o+=points[i-1][j][1],points[i][j][1]);return data}
return stack.values=function(x){return arguments.length?(values=x,stack):values},stack.order=function(x){return arguments.length?(order="function"==typeof x?x:d3_layout_stackOrders.get(x)||d3_layout_stackOrderDefault,stack):order},stack.offset=function(x){return arguments.length?(offset="function"==typeof x?x:d3_layout_stackOffsets.get(x)||d3_layout_stackOffsetZero,stack):offset},stack.x=function(z){return arguments.length?(x=z,stack):x},stack.y=function(z){return arguments.length?(y=z,stack):y},stack.out=function(z){return arguments.length?(out=z,stack):out},stack};var d3_layout_stackOrders=d3.map({"inside-out":function(data){for(var j,n=data.length,
max=data.map(d3_layout_stackMaxIndex),sums=data.map(d3_layout_stackReduceSum),index=d3.range(n).sort(function(a,b){return max[a]-max[b]}),top=0,bottom=0,tops=[],bottoms=[],i=0;i<n;++i)j=index[i],top<bottom?(top+=sums[j],tops.push(j)):(bottom+=sums[j],bottoms.push(j));return bottoms.reverse().concat(tops)},reverse:function(data){return d3.range(data.length).reverse()},default:d3_layout_stackOrderDefault}),d3_layout_stackOffsets=d3.map({silhouette:function(data){for(var i,o,n=data.length,m=data[0].length,sums=[],max=0,y0=[],j=0;j<m;++j){for(o=i=0;i<n;i++)o+=data[i][j][1];max<o&&(max=o),sums.push(o)}for(j=0;j<m;++j)y0[j]=(max-sums[j])/2;return y0},
wiggle:function(data){var i,j,k,s1,s2,s3,dx,o,o0,n=data.length,x=data[0],m=x.length,y0=[];for(y0[0]=o=o0=0,j=1;j<m;++j){for(s1=i=0;i<n;++i)s1+=data[i][j][1];for(s2=i=0,dx=x[j][0]-x[j-1][0];i<n;++i){for(k=0,s3=(data[i][j][1]-data[i][j-1][1])/(2*dx);k<i;++k)s3+=(data[k][j][1]-data[k][j-1][1])/dx;s2+=s3*data[i][j][1]}y0[j]=o-=s1?s2/s1*dx:0,o<o0&&(o0=o)}for(j=0;j<m;++j)y0[j]-=o0;return y0},expand:function(data){for(var i,o,n=data.length,m=data[0].length,k=1/n,y0=[],j=0;j<m;++j){for(o=i=0;i<n;i++)o+=data[i][j][1];if(o)for(i=0;i<n;i++)data[i][j][1]/=o;else for(i=0;i<n;i++)data[i][j][1]=k}for(j=0;j<m;++j)y0[j]=0;return y0},zero:d3_layout_stackOffsetZero})
;function d3_layout_stackOrderDefault(data){return d3.range(data.length)}function d3_layout_stackOffsetZero(data){for(var j=-1,m=data[0].length,y0=[];++j<m;)y0[j]=0;return y0}function d3_layout_stackMaxIndex(array){for(var k,i=1,j=0,v=array[0][1],n=array.length;i<n;++i)(k=array[i][1])>v&&(j=i,v=k);return j}function d3_layout_stackReduceSum(d){return d.reduce(d3_layout_stackSum,0)}function d3_layout_stackSum(p,d){return p+d[1]}function d3_layout_histogramBinSturges(range,values){return d3_layout_histogramBinFixed(range,Math.ceil(Math.log(values.length)/Math.LN2+1))}function d3_layout_histogramBinFixed(range,n){for(var x=-1,b=+range[0],m=(range[1]-b)/n,f=[
];++x<=n;)f[x]=m*x+b;return f}function d3_layout_histogramRange(values){return[d3.min(values),d3.max(values)]}function d3_layout_packSort(a,b){return a.value-b.value}function d3_layout_packInsert(a,b){var c=a._pack_next;(a._pack_next=b)._pack_prev=a,(b._pack_next=c)._pack_prev=b}function d3_layout_packSplice(a,b){(a._pack_next=b)._pack_prev=a}function d3_layout_packIntersects(a,dr){var dx=dr.x-a.x,dy=dr.y-a.y,dr=a.r+dr.r;return dx*dx+dy*dy<.999*dr*dr}function d3_layout_packSiblings(node){if((nodes=node.children)&&(n=nodes.length)){var nodes,a,b,c,k,n,xMin=1/0,xMax=-1/0,yMin=1/0,yMax=-1/0;if(nodes.forEach(d3_layout_packLink),(a=nodes[0]).x=-a.r,a.y=0,bound(a)
,1<n&&((b=nodes[1]).x=b.r,b.y=0,bound(b),2<n))for(d3_layout_packPlace(a,b,c=nodes[2]),bound(c),d3_layout_packInsert(a,c),a._pack_prev=c,d3_layout_packInsert(c,b),b=a._pack_next,i=3;i<n;i++){d3_layout_packPlace(a,b,c=nodes[i]);for(var isect=0,s1=1,s2=1,j=b._pack_next;j!==b;j=j._pack_next,s1++)if(d3_layout_packIntersects(j,c)){isect=1;break}if(1==isect)for(k=a._pack_prev;k!==j._pack_prev&&!d3_layout_packIntersects(k,c);k=k._pack_prev,s2++);isect?(s1<s2||s1==s2&&b.r<a.r?d3_layout_packSplice(a,b=j):d3_layout_packSplice(a=k,b),i--):(d3_layout_packInsert(a,c),bound(b=c))}for(var cx=(xMin+xMax)/2,cy=(yMin+yMax)/2,cr=0,i=0;i<n;i++)(c=nodes[i]).x-=cx,c.y-=cy,
cr=Math.max(cr,c.r+Math.sqrt(c.x*c.x+c.y*c.y));node.r=cr,nodes.forEach(d3_layout_packUnlink)}function bound(node){xMin=Math.min(node.x-node.r,xMin),xMax=Math.max(node.x+node.r,xMax),yMin=Math.min(node.y-node.r,yMin),yMax=Math.max(node.y+node.r,yMax)}}function d3_layout_packLink(node){node._pack_next=node._pack_prev=node}function d3_layout_packUnlink(node){delete node._pack_next,delete node._pack_prev}function d3_layout_packPlace(a,x,c){var da,y,db=a.r+c.r,dx=x.x-a.x,dy=x.y-a.y;db&&(dx||dy)?(da=x.r+c.r,x=.5+((db*=db)-(da*=da))/(2*(y=dx*dx+dy*dy)),y=Math.sqrt(Math.max(0,2*da*(db+y)-(db-=y)*db-da*da))/(2*y),c.x=a.x+x*dx+y*dy,c.y=a.y+x*dy-y*dx):(c.x=a.x+db,
c.y=a.y)}function d3_layout_treeSeparation(a,b){return a.parent==b.parent?1:2}function d3_layout_treeLeft(v){var children=v.children;return children.length?children[0]:v.t}function d3_layout_treeRight(v){var n,children=v.children;return(n=children.length)?children[n-1]:v.t}function d3_layout_treemapPadNull(node){return{x:node.x,y:node.y,dx:node.dx,dy:node.dy}}function d3_layout_treemapPad(node,dy){var x=node.x+dy[3],y=node.y+dy[0],dx=node.dx-dy[1]-dy[3],dy=node.dy-dy[0]-dy[2];return dx<0&&(x+=dx/2,dx=0),dy<0&&(y+=dy/2,dy=0),{x:x,y:y,dx:dx,dy:dy}}function d3_scaleExtent(stop){var start=stop[0],stop=stop[stop.length-1];return start<stop?[start,stop]:[stop,
start]}function d3_scaleRange(scale){return scale.rangeExtent?scale.rangeExtent():d3_scaleExtent(scale.range())}function d3_scale_bilinear(domain,range,uninterpolate,interpolate){var u=uninterpolate(domain[0],domain[1]),i=interpolate(range[0],range[1]);return function(x){return i(u(x))}}function d3_scale_nice(domain,nice){var dx,i0=0,i1=domain.length-1,x0=domain[i0],x1=domain[i1];return x1<x0&&(dx=i0,i0=i1,i1=dx,dx=x0,x0=x1,x1=dx),domain[i0]=nice.floor(x0),domain[i1]=nice.ceil(x1),domain}function d3_scale_niceStep(step){return step?{floor:function(x){return Math.floor(x/step)*step},ceil:function(x){return Math.ceil(x/step)*step}}:d3_scale_niceIdentity}
d3.layout.histogram=function(){var frequency=!0,valuer=Number,ranger=d3_layout_histogramRange,binner=d3_layout_histogramBinSturges;function histogram(data,i){for(var bin,x,bins=[],values=data.map(valuer,this),range=ranger.call(this,values,i),thresholds=binner.call(this,range,values,i),i=-1,n=values.length,m=thresholds.length-1,k=frequency?1:1/n;++i<m;)(bin=bins[i]=[]).dx=thresholds[i+1]-(bin.x=thresholds[i]),bin.y=0;if(0<m)for(i=-1;++i<n;)(x=values[i])>=range[0]&&x<=range[1]&&((bin=bins[d3.bisect(thresholds,x,1,m)-1]).y+=k,bin.push(data[i]));return bins}return histogram.value=function(x){return arguments.length?(valuer=x,histogram):valuer},
histogram.range=function(x){return arguments.length?(ranger=d3_functor(x),histogram):ranger},histogram.bins=function(x){return arguments.length?(binner="number"==typeof x?function(range){return d3_layout_histogramBinFixed(range,x)}:d3_functor(x),histogram):binner},histogram.frequency=function(x){return arguments.length?(frequency=!!x,histogram):frequency},histogram},d3.layout.pack=function(){var radius,hierarchy=d3.layout.hierarchy().sort(d3_layout_packSort),padding=0,size=[1,1];function pack(w,h){var dr,nodes=hierarchy.call(this,w,h),root=nodes[0],w=size[0],h=size[1],r=null==radius?Math.sqrt:"function"==typeof radius?radius:function(){return radius}
;return root.x=root.y=0,d3_layout_hierarchyVisitAfter(root,function(d){d.r=+r(d.value)}),d3_layout_hierarchyVisitAfter(root,d3_layout_packSiblings),padding&&(dr=padding*(radius?1:Math.max(2*root.r/w,2*root.r/h))/2,d3_layout_hierarchyVisitAfter(root,function(d){d.r+=dr}),d3_layout_hierarchyVisitAfter(root,d3_layout_packSiblings),d3_layout_hierarchyVisitAfter(root,function(d){d.r-=dr})),function d3_layout_packTransform(node,x,y,k){var children=node.children;node.x=x+=k*node.x;node.y=y+=k*node.y;node.r*=k;if(children)for(var i=-1,n=children.length;++i<n;)d3_layout_packTransform(children[i],x,y,k)}(root,w/2,h/2,radius?1:1/Math.max(2*root.r/w,2*root.r/h)),nodes}
return pack.size=function(_){return arguments.length?(size=_,pack):size},pack.radius=function(_){return arguments.length?(radius=null==_||"function"==typeof _?_:+_,pack):radius},pack.padding=function(_){return arguments.length?(padding=+_,pack):padding},d3_layout_hierarchyRebind(pack,hierarchy)},d3.layout.tree=function(){var hierarchy=d3.layout.hierarchy().sort(null).value(null),separation=d3_layout_treeSeparation,size=[1,1],nodeSize=null;function tree(root0,root1){var left,right,bottom,tx,kx,ky,nodes=hierarchy.call(this,root0,root1),root0=nodes[0],root1=function(root1){var node1,root1={A:null,children:[root1]},queue=[root1];for(;null!=(node1=queue.pop());
)for(var child,children=node1.children,i=0,n=children.length;i<n;++i)queue.push((children[i]=child={_:children[i],parent:node1,children:(child=children[i].children)&&child.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:i}).a=child);return root1.children[0]}(root0);return d3_layout_hierarchyVisitAfter(root1,firstWalk),root1.parent.m=-root1.z,d3_layout_hierarchyVisitBefore(root1,secondWalk),nodeSize?d3_layout_hierarchyVisitBefore(root0,sizeNode):(d3_layout_hierarchyVisitBefore(bottom=right=left=root0,function(node){node.x<left.x&&(left=node),node.x>right.x&&(right=node),node.depth>bottom.depth&&(bottom=node)}),tx=separation(left,right)/2-left.x,
kx=size[0]/(right.x+separation(right,left)/2+tx),ky=size[1]/(bottom.depth||1),d3_layout_hierarchyVisitBefore(root0,function(node){node.x=(node.x+tx)*kx,node.y=node.depth*ky})),nodes}function firstWalk(v){var midpoint=v.children,siblings=v.parent.children,w=v.i?siblings[v.i-1]:null;midpoint.length?(function(v){var w,shift=0,change=0,children=v.children,i=children.length;for(;0<=--i;)(w=children[i]).z+=shift,w.m+=shift,shift+=w.s+(change+=w.c)}(v),midpoint=(midpoint[0].z+midpoint[midpoint.length-1].z)/2,w?(v.z=w.z+separation(v._,w._),v.m=v.z-midpoint):v.z=midpoint):w&&(v.z=w.z+separation(v._,w._)),v.parent.A=function(v,w,ancestor){if(w){for(var shift,vip=v,
vop=v,vim=w,vom=vip.parent.children[0],sip=vip.m,sop=vop.m,sim=vim.m,som=vom.m;vim=d3_layout_treeRight(vim),vip=d3_layout_treeLeft(vip),vim&&vip;)vom=d3_layout_treeLeft(vom),(vop=d3_layout_treeRight(vop)).a=v,0<(shift=vim.z+sim-vip.z-sip+separation(vim._,vip._))&&(function(wm,wp,shift){var change=shift/(wp.i-wm.i);wp.c-=change,wp.s+=shift,wm.c+=change,wp.z+=shift,wp.m+=shift}(function(vim,v,ancestor){return vim.a.parent===v.parent?vim.a:ancestor}(vim,v,ancestor),v,shift),sip+=shift,sop+=shift),sim+=vim.m,sip+=vip.m,som+=vom.m,sop+=vop.m;vim&&!d3_layout_treeRight(vop)&&(vop.t=vim,vop.m+=sim-sop),vip&&!d3_layout_treeLeft(vom)&&(vom.t=vip,vom.m+=sip-som,
ancestor=v)}return ancestor}(v,w,v.parent.A||siblings[0])}function secondWalk(v){v._.x=v.z+v.parent.m,v.m+=v.parent.m}function sizeNode(node){node.x*=size[0],node.y=node.depth*size[1]}return tree.separation=function(x){return arguments.length?(separation=x,tree):separation},tree.size=function(x){return arguments.length?(nodeSize=null==(size=x)?sizeNode:null,tree):nodeSize?null:size},tree.nodeSize=function(x){return arguments.length?(nodeSize=null==(size=x)?null:sizeNode,tree):nodeSize?size:null},d3_layout_hierarchyRebind(tree,hierarchy)},d3.layout.cluster=function(){var hierarchy=d3.layout.hierarchy().sort(null).value(null),
separation=d3_layout_treeSeparation,size=[1,1],nodeSize=!1;function cluster(left,right){var previousNode,nodes=hierarchy.call(this,left,right),root=nodes[0],x=0;d3_layout_hierarchyVisitAfter(root,function(node){var children=node.children;children&&children.length?(node.x=function(children){return children.reduce(function(x,child){return x+child.x},0)/children.length}(children),node.y=function(children){return 1+d3.max(children,function(child){return child.y})}(children)):(node.x=previousNode?x+=separation(node,previousNode):0,node.y=0,previousNode=node)});var left=function d3_layout_clusterLeft(node){var children=node.children
;return children&&children.length?d3_layout_clusterLeft(children[0]):node}(root),right=function d3_layout_clusterRight(node){var n,children=node.children;return children&&(n=children.length)?d3_layout_clusterRight(children[n-1]):node}(root),x0=left.x-separation(left,right)/2,x1=right.x+separation(right,left)/2;return d3_layout_hierarchyVisitAfter(root,nodeSize?function(node){node.x=(node.x-root.x)*size[0],node.y=(root.y-node.y)*size[1]}:function(node){node.x=(node.x-x0)/(x1-x0)*size[0],node.y=(1-(root.y?node.y/root.y:1))*size[1]}),nodes}return cluster.separation=function(x){return arguments.length?(separation=x,cluster):separation},cluster.size=function(x){
return arguments.length?(nodeSize=null==(size=x),cluster):nodeSize?null:size},cluster.nodeSize=function(x){return arguments.length?(nodeSize=null!=(size=x),cluster):nodeSize?size:null},d3_layout_hierarchyRebind(cluster,hierarchy)},d3.layout.treemap=function(){var stickies,hierarchy=d3.layout.hierarchy(),round=Math.round,size=[1,1],padding=null,pad=d3_layout_treemapPadNull,sticky=!1,mode="squarify",ratio=.5*(1+Math.sqrt(5));function scale(children,k){for(var child,area,i=-1,n=children.length;++i<n;)area=(child=children[i]).value*(k<0?0:k),child.area=isNaN(area)||area<=0?0:area}function squarify(node){var children=node.children;if(children&&children.length){
var score,child,rect=pad(node),row=[],remaining=children.slice(),best=1/0,u="slice"===mode?rect.dx:"dice"===mode?rect.dy:"slice-dice"===mode?1&node.depth?rect.dy:rect.dx:Math.min(rect.dx,rect.dy);for(scale(remaining,rect.dx*rect.dy/node.value),row.area=0;0<(child=remaining.length);)row.push(child=remaining[child-1]),row.area+=child.area,best="squarify"!==mode||(score=function(row,u){var r,s=row.area,rmax=0,rmin=1/0,i=-1,n=row.length;for(;++i<n;)(r=row[i].area)&&(r<rmin&&(rmin=r),rmax<r&&(rmax=r));return u*=u,(s*=s)?Math.max(u*rmax*ratio/s,s/(u*rmin*ratio)):1/0}(row,u))<=best?(remaining.pop(),score):(row.area-=row.pop().area,position(row,u,rect,!1),
u=Math.min(rect.dx,rect.dy),1/(row.length=row.area=0));row.length&&(position(row,u,rect,!0),row.length=row.area=0),children.forEach(squarify)}}function stickify(node){var children=node.children;if(children&&children.length){var child,rect=pad(node),remaining=children.slice(),row=[];for(scale(remaining,rect.dx*rect.dy/node.value),row.area=0;child=remaining.pop();)row.push(child),row.area+=child.area,null!=child.z&&(position(row,child.z?rect.dx:rect.dy,rect,!remaining.length),row.length=row.area=0);children.forEach(stickify)}}function position(row,u,rect,flush){var o,i=-1,n=row.length,x=rect.x,y=rect.y,v=u?round(row.area/u):0;if(u==rect.dx){for((
flush||v>rect.dy)&&(v=rect.dy);++i<n;)(o=row[i]).x=x,o.y=y,o.dy=v,x+=o.dx=Math.min(rect.x+rect.dx-x,v?round(o.area/v):0);o.z=!0,o.dx+=rect.x+rect.dx-x,rect.y+=v,rect.dy-=v}else{for((flush||v>rect.dx)&&(v=rect.dx);++i<n;)(o=row[i]).x=x,o.y=y,o.dx=v,y+=o.dy=Math.min(rect.y+rect.dy-y,v?round(o.area/v):0);o.z=!1,o.dy+=rect.y+rect.dy-y,rect.x+=v,rect.dx-=v}}function treemap(root){var nodes=stickies||hierarchy(root),root=nodes[0];return root.x=root.y=0,root.value?(root.dx=size[0],root.dy=size[1]):root.dx=root.dy=0,stickies&&hierarchy.revalue(root),scale([root],root.dx*root.dy/root.value),(stickies?stickify:squarify)(root),sticky&&(stickies=nodes),nodes}
return treemap.size=function(x){return arguments.length?(size=x,treemap):size},treemap.padding=function(x){return arguments.length?(pad=null==(padding=x)?d3_layout_treemapPadNull:"function"==(type=typeof x)?function(node){var p=x.call(treemap,node,node.depth);return null==p?d3_layout_treemapPadNull(node):d3_layout_treemapPad(node,"number"==typeof p?[p,p,p,p]:p)}:("number"==type&&(x=[x,x,x,x]),padConstant),treemap):padding;function padConstant(node){return d3_layout_treemapPad(node,x)}var type},treemap.round=function(x){return arguments.length?(round=x?Math.round:Number,treemap):round!=Number},treemap.sticky=function(x){return arguments.length?(sticky=x,
stickies=null,treemap):sticky},treemap.ratio=function(x){return arguments.length?(ratio=x,treemap):ratio},treemap.mode=function(x){return arguments.length?(mode=x+"",treemap):mode},d3_layout_hierarchyRebind(treemap,hierarchy)},d3.random={normal:function(µ,σ){var n=arguments.length;return n<2&&(σ=1),n<1&&(µ=0),function(){for(var x,y,r;!(r=(x=2*Math.random()-1)*x+(y=2*Math.random()-1)*y)||1<r;);return µ+σ*x*Math.sqrt(-2*Math.log(r)/r)}},logNormal:function(){var random=d3.random.normal.apply(d3,arguments);return function(){return Math.exp(random())}},bates:function(m){var random=d3.random.irwinHall(m);return function(){return random()/m}},irwinHall:function(m){
return function(){for(var s=0,j=0;j<m;j++)s+=Math.random();return s}}},d3.scale={};var d3_scale_niceIdentity={floor:d3_identity,ceil:d3_identity};function d3_scale_polylinear(domain,range,uninterpolate,interpolate){var u=[],i=[],j=0,k=Math.min(domain.length,range.length)-1;for(domain[k]<domain[0]&&(domain=domain.slice().reverse(),range=range.slice().reverse());++j<=k;)u.push(uninterpolate(domain[j-1],domain[j])),i.push(interpolate(range[j-1],range[j]));return function(x){var j=d3.bisect(domain,x,1,k)-1;return i[j](u[j](x))}}function d3_scale_linearRebind(scale,linear){return d3.rebind(scale,linear,"range","rangeRound","interpolate","clamp")}
function d3_scale_linearNice(domain,m){return d3_scale_nice(domain,d3_scale_niceStep(d3_scale_linearTickRange(domain,m)[2])),d3_scale_nice(domain,d3_scale_niceStep(d3_scale_linearTickRange(domain,m)[2])),domain}function d3_scale_linearTickRange(step,m){null==m&&(m=10);var extent=d3_scaleExtent(step),err=extent[1]-extent[0],step=Math.pow(10,Math.floor(Math.log(err/m)/Math.LN10)),err=m/err*step;return err<=.15?step*=10:err<=.35?step*=5:err<=.75&&(step*=2),extent[0]=Math.ceil(extent[0]/step)*step,extent[1]=Math.floor(extent[1]/step)*step+.5*step,extent[2]=step,extent}function d3_scale_linearTicks(domain,m){return d3.range.apply(d3,d3_scale_linearTickRange(
domain,m))}function d3_scale_linearTickFormat(range,match,format){range=d3_scale_linearTickRange(range,match);if(format){match=d3_format_re.exec(format);if(match.shift(),"s"===match[8]){var prefix=d3.formatPrefix(Math.max(abs(range[0]),abs(range[1])));return match[7]||(match[7]="."+d3_scale_linearPrecision(prefix.scale(range[2]))),match[8]="f",format=d3.format(match.join("")),function(d){return format(prefix.scale(d))+prefix.symbol}}match[7]||(match[7]="."+function(type,range){var p=d3_scale_linearPrecision(range[2]);return type in d3_scale_linearFormatSignificant?Math.abs(p-d3_scale_linearPrecision(Math.max(abs(range[0]),abs(range[1]))))+ +("e"!==type
):p-2*("%"===type)}(match[8],range)),format=match.join("")}else format=",."+d3_scale_linearPrecision(range[2])+"f";return d3.format(format)}d3.scale.linear=function(){return function d3_scale_linear(domain,range,interpolate,clamp){var output,input;function rescale(){var linear=2<Math.min(domain.length,range.length)?d3_scale_polylinear:d3_scale_bilinear,uninterpolate=clamp?d3_uninterpolateClamp:d3_uninterpolateNumber;return output=linear(domain,range,uninterpolate,interpolate),input=linear(range,domain,uninterpolate,d3_interpolate),scale}function scale(x){return output(x)}scale.invert=function(y){return input(y)};scale.domain=function(x){
return arguments.length?(domain=x.map(Number),rescale()):domain};scale.range=function(x){return arguments.length?(range=x,rescale()):range};scale.rangeRound=function(x){return scale.range(x).interpolate(d3_interpolateRound)};scale.clamp=function(x){return arguments.length?(clamp=x,rescale()):clamp};scale.interpolate=function(x){return arguments.length?(interpolate=x,rescale()):interpolate};scale.ticks=function(m){return d3_scale_linearTicks(domain,m)};scale.tickFormat=function(m,format){return d3_scale_linearTickFormat(domain,m,format)};scale.nice=function(m){return d3_scale_linearNice(domain,m),rescale()};scale.copy=function(){return d3_scale_linear(domain,
range,interpolate,clamp)};return rescale()}([0,1],[0,1],d3_interpolate,!1)};var d3_scale_linearFormatSignificant={s:1,g:1,p:1,r:1,e:1};function d3_scale_linearPrecision(value){return-Math.floor(Math.log(value)/Math.LN10+.01)}d3.scale.log=function(){return function d3_scale_log(linear,base,positive,domain){function log(x){return(positive?Math.log(x<0?0:x):-Math.log(0<x?0:-x))/Math.log(base)}function pow(x){return positive?Math.pow(base,x):-Math.pow(base,-x)}function scale(x){return linear(log(x))}scale.invert=function(x){return pow(linear.invert(x))};scale.domain=function(x){return arguments.length?(positive=0<=x[0],linear.domain((domain=x.map(Number)).map(
log)),scale):domain};scale.base=function(_){return arguments.length?(base=+_,linear.domain(domain.map(log)),scale):base};scale.nice=function(){var niced=d3_scale_nice(domain.map(log),positive?Math:d3_scale_logNiceNegative);return linear.domain(niced),domain=niced.map(pow),scale};scale.ticks=function(){var extent=d3_scaleExtent(domain),ticks=[],u=extent[0],v=extent[1],i=Math.floor(log(u)),j=Math.ceil(log(v)),n=base%1?2:base;if(isFinite(j-i)){if(positive){for(;i<j;i++)for(var k=1;k<n;k++)ticks.push(pow(i)*k);ticks.push(pow(i))}else for(ticks.push(pow(i));i++<j;)for(var k=n-1;0<k;k--)ticks.push(pow(i)*k);for(i=0;ticks[i]<u;i++);for(
j=ticks.length;ticks[j-1]>v;j--);ticks=ticks.slice(i,j)}return ticks};scale.tickFormat=function(n,format){if(!arguments.length)return d3_scale_logFormat;arguments.length<2?format=d3_scale_logFormat:"function"!=typeof format&&(format=d3.format(format));var k=Math.max(1,base*n/scale.ticks().length);return function(d){var i=d/pow(Math.round(log(d)));return i*base<base-.5&&(i*=base),i<=k?format(d):""}};scale.copy=function(){return d3_scale_log(linear.copy(),base,positive,domain)};return d3_scale_linearRebind(scale,linear)}(d3.scale.linear().domain([0,1]),10,!0,[1,10])};var d3_scale_logFormat=d3.format(".0e"),d3_scale_logNiceNegative={floor:function(x){
return-Math.ceil(-x)},ceil:function(x){return-Math.floor(-x)}};function d3_scale_powPow(e){return function(x){return x<0?-Math.pow(-x,e):Math.pow(x,e)}}d3.scale.pow=function(){return function d3_scale_pow(linear,exponent,domain){var powp=d3_scale_powPow(exponent),powb=d3_scale_powPow(1/exponent);function scale(x){return linear(powp(x))}scale.invert=function(x){return powb(linear.invert(x))};scale.domain=function(x){return arguments.length?(linear.domain((domain=x.map(Number)).map(powp)),scale):domain};scale.ticks=function(m){return d3_scale_linearTicks(domain,m)};scale.tickFormat=function(m,format){return d3_scale_linearTickFormat(domain,m,format)}
;scale.nice=function(m){return scale.domain(d3_scale_linearNice(domain,m))};scale.exponent=function(x){return arguments.length?(powp=d3_scale_powPow(exponent=x),powb=d3_scale_powPow(1/exponent),linear.domain(domain.map(powp)),scale):exponent};scale.copy=function(){return d3_scale_pow(linear.copy(),exponent,domain)};return d3_scale_linearRebind(scale,linear)}(d3.scale.linear(),1,[0,1])},d3.scale.sqrt=function(){return d3.scale.pow().exponent(.5)},d3.scale.ordinal=function(){return function d3_scale_ordinal(domain,ranger){var index,range,rangeBand;function scale(x){return range[((index.get(x)||("range"===ranger.t?index.set(x,domain.push(x)):NaN))-1
)%range.length]}function steps(start,step){return d3.range(domain.length).map(function(i){return start+step*i})}scale.domain=function(x){if(!arguments.length)return domain;domain=[],index=new d3_Map;for(var xi,i=-1,n=x.length;++i<n;)index.has(xi=x[i])||index.set(xi,domain.push(xi));return scale[ranger.t].apply(scale,ranger.a)};scale.range=function(x){return arguments.length?(range=x,rangeBand=0,ranger={t:"range",a:arguments},scale):range};scale.rangePoints=function(x,padding){arguments.length<2&&(padding=0);var start=x[0],step=x[1],step=domain.length<2?(start=(start+step)/2,0):(step-start)/(domain.length-1+padding);return range=steps(start+step*padding/2,
step),rangeBand=0,ranger={t:"rangePoints",a:arguments},scale};scale.rangeRoundPoints=function(x,padding){arguments.length<2&&(padding=0);var start=x[0],stop=x[1],step=domain.length<2?(start=stop=Math.round((start+stop)/2),0):(stop-start)/(domain.length-1+padding)|0;return range=steps(start+Math.round(step*padding/2+(stop-start-(domain.length-1+padding)*step)/2),step),rangeBand=0,ranger={t:"rangeRoundPoints",a:arguments},scale};scale.rangeBands=function(x,padding,outerPadding){arguments.length<2&&(padding=0),arguments.length<3&&(outerPadding=padding);var reverse=x[1]<x[0],start=x[+reverse],step=x[1-reverse],step=(step-start)/(
domain.length-padding+2*outerPadding);return range=steps(start+step*outerPadding,step),reverse&&range.reverse(),rangeBand=step*(1-padding),ranger={t:"rangeBands",a:arguments},scale};scale.rangeRoundBands=function(x,padding,outerPadding){arguments.length<2&&(padding=0),arguments.length<3&&(outerPadding=padding);var reverse=x[1]<x[0],start=x[+reverse],stop=x[1-reverse],step=Math.floor((stop-start)/(domain.length-padding+2*outerPadding));return range=steps(start+Math.round((stop-start-(domain.length-padding)*step)/2),step),reverse&&range.reverse(),rangeBand=Math.round(step*(1-padding)),ranger={t:"rangeRoundBands",a:arguments},scale};scale.rangeBand=function(){
return rangeBand};scale.rangeExtent=function(){return d3_scaleExtent(ranger.a[0])};scale.copy=function(){return d3_scale_ordinal(domain,ranger)};return scale.domain(domain)}([],{t:"range",a:[[]]})},d3.scale.category10=function(){return d3.scale.ordinal().range(d3_category10)},d3.scale.category20=function(){return d3.scale.ordinal().range(d3_category20)},d3.scale.category20b=function(){return d3.scale.ordinal().range(d3_category20b)},d3.scale.category20c=function(){return d3.scale.ordinal().range(d3_category20c)};var d3_category10=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(d3_rgbString),d3_category20=[2062260,
11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(d3_rgbString),d3_category20b=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(d3_rgbString),d3_category20c=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(d3_rgbString);function d3_zero(){return 0}d3.scale.quantile=function(){
return function d3_scale_quantile(domain,range){var thresholds;function rescale(){var k=0,q=range.length;for(thresholds=[];++k<q;)thresholds[k-1]=d3.quantile(domain,k/q);return scale}function scale(x){if(!isNaN(x=+x))return range[d3.bisect(thresholds,x)]}scale.domain=function(x){return arguments.length?(domain=x.map(d3_number).filter(d3_numeric).sort(d3_ascending),rescale()):domain};scale.range=function(x){return arguments.length?(range=x,rescale()):range};scale.quantiles=function(){return thresholds};scale.invertExtent=function(y){return(y=range.indexOf(y))<0?[NaN,NaN]:[0<y?thresholds[y-1]:domain[0],y<thresholds.length?thresholds[y]:domain[domain.length-1]]
};scale.copy=function(){return d3_scale_quantile(domain,range)};return rescale()}([],[])},d3.scale.quantize=function(){return function d3_scale_quantize(x0,x1,range){var kx,i;function scale(x){return range[Math.max(0,Math.min(i,Math.floor(kx*(x-x0))))]}function rescale(){return kx=range.length/(x1-x0),i=range.length-1,scale}scale.domain=function(x){return arguments.length?(x0=+x[0],x1=+x[x.length-1],rescale()):[x0,x1]};scale.range=function(x){return arguments.length?(range=x,rescale()):range};scale.invertExtent=function(y){return[y=(y=range.indexOf(y))<0?NaN:y/kx+x0,y+1/kx]};scale.copy=function(){return d3_scale_quantize(x0,x1,range)};return rescale()}(0,1,[
0,1])},d3.scale.threshold=function(){return function d3_scale_threshold(domain,range){function scale(x){if(x<=x)return range[d3.bisect(domain,x)]}scale.domain=function(_){return arguments.length?(domain=_,scale):domain};scale.range=function(_){return arguments.length?(range=_,scale):range};scale.invertExtent=function(y){return y=range.indexOf(y),[domain[y-1],domain[y]]};scale.copy=function(){return d3_scale_threshold(domain,range)};return scale}([.5],[0,1])},d3.scale.identity=function(){return function d3_scale_identity(domain){function identity(x){return+x}identity.invert=identity;identity.domain=identity.range=function(x){return arguments.length?(
domain=x.map(identity),identity):domain};identity.ticks=function(m){return d3_scale_linearTicks(domain,m)};identity.tickFormat=function(m,format){return d3_scale_linearTickFormat(domain,m,format)};identity.copy=function(){return d3_scale_identity(domain)};return identity}([0,1])},d3.svg={},d3.svg.arc=function(){var innerRadius=d3_svg_arcInnerRadius,outerRadius=d3_svg_arcOuterRadius,cornerRadius=d3_zero,padRadius=d3_svg_arcAuto,startAngle=d3_svg_arcStartAngle,endAngle=d3_svg_arcEndAngle,padAngle=d3_svg_arcPadAngle;function arc(){var r0=Math.max(0,+innerRadius.apply(this,arguments)),r1=Math.max(0,+outerRadius.apply(this,arguments)),lc=startAngle.apply(this,
arguments)-halfπ,ax=endAngle.apply(this,arguments)-halfπ,bx=Math.abs(ax-lc),cw=ax<lc?0:1;if(r1<r0&&(rc=r1,r1=r0,r0=rc),τε<=bx)return circleSegment(r1,cw)+(r0?circleSegment(r0,1-cw):"")+"Z";var rc,rp,ap,y1,y3,l1,x0,y0,x1,l0,x2,y2,x3,ay,t30,t03,t21,rc0=0,cr=0,path=[];return(ap=(+padAngle.apply(this,arguments)||0)/2)&&(rp=padRadius===d3_svg_arcAuto?Math.sqrt(r0*r0+r1*r1):+padRadius.apply(this,arguments),cw||(cr*=-1),r1&&(cr=d3_asin(rp/r1*Math.sin(ap))),r0&&(rc0=d3_asin(rp/r0*Math.sin(ap)))),r1?(x0=r1*Math.cos(lc+cr),y0=r1*Math.sin(lc+cr),x1=r1*Math.cos(ax-cr),y1=r1*Math.sin(ax-cr),l1=Math.abs(ax-lc-2*cr)<=π?0:1,cr&&d3_svg_arcSweep(x0,y0,x1,y1)===cw^l1&&(t03=(
lc+ax)/2,x0=r1*Math.cos(t03),y0=r1*Math.sin(t03),x1=y1=null)):x0=y0=0,r0?(x2=r0*Math.cos(ax-rc0),y2=r0*Math.sin(ax-rc0),x3=r0*Math.cos(lc+rc0),y3=r0*Math.sin(lc+rc0),l0=Math.abs(lc-ax+2*rc0)<=π?0:1,rc0&&d3_svg_arcSweep(x2,y2,x3,y3)===1-cw^l0&&(ay=(lc+ax)/2,x2=r0*Math.cos(ay),y2=r0*Math.sin(ay),x3=y3=null)):x2=y2=0,ε<bx&&.001<(rc=Math.min(Math.abs(r1-r0)/2,+cornerRadius.apply(this,arguments)))?(cr=r0<r1^cw?0:1,rc0=t03=rc,bx<π&&(ax=x0-(lc=null==x3?[x2,y2]:null==x1?[x0,y0]:d3_geom_polygonIntersect([x0,y0],[x3,y3],[x1,y1],[x2,y2]))[0],ay=y0-lc[1],bx=x1-lc[0],t30=y1-lc[1],t30=1/Math.sin(Math.acos((ax*bx+ay*t30)/(Math.sqrt(ax*ax+ay*ay)*Math.sqrt(bx*bx+t30*t30)))/2
),lc=Math.sqrt(lc[0]*lc[0]+lc[1]*lc[1]),rc0=Math.min(rc,(r0-lc)/(t30-1)),t03=Math.min(rc,(r1-lc)/(1+t30))),null!=x1?(t30=d3_svg_arcCornerTangents(null==x3?[x2,y2]:[x3,y3],[x0,y0],r1,t03,cw),t21=d3_svg_arcCornerTangents([x1,y1],[x2,y2],r1,t03,cw),rc===t03?path.push("M",t30[0],"A",t03,",",t03," 0 0,",cr," ",t30[1],"A",r1,",",r1," 0 ",1-cw^d3_svg_arcSweep(t30[1][0],t30[1][1],t21[1][0],t21[1][1]),",",cw," ",t21[1],"A",t03,",",t03," 0 0,",cr," ",t21[0]):path.push("M",t30[0],"A",t03,",",t03," 0 1,",cr," ",t21[0])):path.push("M",x0,",",y0),null!=x3?(t03=d3_svg_arcCornerTangents([x0,y0],[x3,y3],r0,-rc0,cw),t21=d3_svg_arcCornerTangents([x2,y2],null==x1?[x0,y0]:[x1,y1
],r0,-rc0,cw),rc===rc0?path.push("L",t21[0],"A",rc0,",",rc0," 0 0,",cr," ",t21[1],"A",r0,",",r0," 0 ",cw^d3_svg_arcSweep(t21[1][0],t21[1][1],t03[1][0],t03[1][1]),",",1-cw," ",t03[1],"A",rc0,",",rc0," 0 0,",cr," ",t03[0]):path.push("L",t21[0],"A",rc0,",",rc0," 0 0,",cr," ",t03[0])):path.push("L",x2,",",y2)):(path.push("M",x0,",",y0),null!=x1&&path.push("A",r1,",",r1," 0 ",l1,",",cw," ",x1,",",y1),path.push("L",x2,",",y2),null!=x3&&path.push("A",r0,",",r0," 0 ",l0,",",1-cw," ",x3,",",y3)),path.push("Z"),path.join("")}function circleSegment(r1,cw){return"M0,"+r1+"A"+r1+","+r1+" 0 1,"+cw+" 0,"+-r1+"A"+r1+","+r1+" 0 1,"+cw+" 0,"+r1}
return arc.innerRadius=function(v){return arguments.length?(innerRadius=d3_functor(v),arc):innerRadius},arc.outerRadius=function(v){return arguments.length?(outerRadius=d3_functor(v),arc):outerRadius},arc.cornerRadius=function(v){return arguments.length?(cornerRadius=d3_functor(v),arc):cornerRadius},arc.padRadius=function(v){return arguments.length?(padRadius=v==d3_svg_arcAuto?d3_svg_arcAuto:d3_functor(v),arc):padRadius},arc.startAngle=function(v){return arguments.length?(startAngle=d3_functor(v),arc):startAngle},arc.endAngle=function(v){return arguments.length?(endAngle=d3_functor(v),arc):endAngle},arc.padAngle=function(v){return arguments.length?(
padAngle=d3_functor(v),arc):padAngle},arc.centroid=function(){var r=(+innerRadius.apply(this,arguments)+ +outerRadius.apply(this,arguments))/2,a=(+startAngle.apply(this,arguments)+ +endAngle.apply(this,arguments))/2-halfπ;return[Math.cos(a)*r,Math.sin(a)*r]},arc};var d3_svg_arcAuto="auto";function d3_svg_arcInnerRadius(d){return d.innerRadius}function d3_svg_arcOuterRadius(d){return d.outerRadius}function d3_svg_arcStartAngle(d){return d.startAngle}function d3_svg_arcEndAngle(d){return d.endAngle}function d3_svg_arcPadAngle(d){return d&&d.padAngle}function d3_svg_arcSweep(x0,y0,x1,y1){return 0<(x0-x1)*y0-(y0-y1)*x0?0:1}function d3_svg_arcCornerTangents(dy0,r
,r1,D,dx1){var cy1=dy0[0]-r[0],dy1=dy0[1]-r[1],dx=(dx1?D:-D)/Math.sqrt(cy1*cy1+dy1*dy1),ox=dx*dy1,oy=-dx*cy1,dx0=dy0[0]+ox,cx1=dy0[1]+oy,cy0=r[0]+ox,cx0=r[1]+oy,dx1=(dx0+cy0)/2,dy1=(cx1+cx0)/2,dx=cy0-dx0,cy1=cx0-cx1,dy0=dx*dx+cy1*cy1,r=r1-D,D=dx0*cx0-cy0*cx1,dx0=(cy1<0?-1:1)*Math.sqrt(Math.max(0,r*r*dy0-D*D)),cx0=(D*cy1-dx*dx0)/dy0,cy0=(-D*dx-cy1*dx0)/dy0,cx1=(D*cy1+dx*dx0)/dy0,cy1=(-D*dx+cy1*dx0)/dy0,dx0=cx0-dx1,dy0=cy0-dy1,dx1=cx1-dx1,dy1=cy1-dy1;return dx1*dx1+dy1*dy1<dx0*dx0+dy0*dy0&&(cx0=cx1,cy0=cy1),[[cx0-ox,cy0-oy],[cx0*r1/r,cy0*r1/r]]}function d3_svg_line(projection){var x=d3_geom_pointX,y=d3_geom_pointY,defined=d3_true,interpolate=d3_svg_lineLinear,
interpolateKey=interpolate.key,tension=.7;function line(data){var d,segments=[],points=[],i=-1,n=data.length,fx=d3_functor(x),fy=d3_functor(y);function segment(){segments.push("M",interpolate(projection(points),tension))}for(;++i<n;)defined.call(this,d=data[i],i)?points.push([+fx.call(this,d,i),+fy.call(this,d,i)]):points.length&&(segment(),points=[]);return points.length&&segment(),segments.length?segments.join(""):null}return line.x=function(_){return arguments.length?(x=_,line):x},line.y=function(_){return arguments.length?(y=_,line):y},line.defined=function(_){return arguments.length?(defined=_,line):defined},line.interpolate=function(_){
return arguments.length?(interpolateKey="function"==typeof _?interpolate=_:(interpolate=d3_svg_lineInterpolators.get(_)||d3_svg_lineLinear).key,line):interpolateKey},line.tension=function(_){return arguments.length?(tension=_,line):tension},line}d3.svg.line=function(){return d3_svg_line(d3_identity)};var d3_svg_lineInterpolators=d3.map({linear:d3_svg_lineLinear,"linear-closed":d3_svg_lineLinearClosed,step:function(points){var i=0,n=points.length,p=points[0],path=[p[0],",",p[1]];for(;++i<n;)path.push("H",(p[0]+(p=points[i])[0])/2,"V",p[1]);1<n&&path.push("H",p[0]);return path.join("")},"step-before":d3_svg_lineStepBefore,"step-after":d3_svg_lineStepAfter,
basis:d3_svg_lineBasis,"basis-open":function(points){if(points.length<4)return d3_svg_lineLinear(points);var pi,path=[],i=-1,n=points.length,px=[0],py=[0];for(;++i<3;)pi=points[i],px.push(pi[0]),py.push(pi[1]);path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3,px)+","+d3_svg_lineDot4(d3_svg_lineBasisBezier3,py)),--i;for(;++i<n;)pi=points[i],px.shift(),px.push(pi[0]),py.shift(),py.push(pi[1]),d3_svg_lineBasisBezier(path,px,py);return path.join("")},"basis-closed":function(points){var path,pi,i=-1,n=points.length,m=n+4,px=[],py=[];for(;++i<4;)pi=points[i%n],px.push(pi[0]),py.push(pi[1]);path=[d3_svg_lineDot4(d3_svg_lineBasisBezier3,px),",",d3_svg_lineDot4(
d3_svg_lineBasisBezier3,py)],--i;for(;++i<m;)pi=points[i%n],px.shift(),px.push(pi[0]),py.shift(),py.push(pi[1]),d3_svg_lineBasisBezier(path,px,py);return path.join("")},bundle:function(points,tension){var n=points.length-1;if(n)for(var p,t,x0=points[0][0],y0=points[0][1],dx=points[n][0]-x0,dy=points[n][1]-y0,i=-1;++i<=n;)p=points[i],t=i/n,p[0]=tension*p[0]+(1-tension)*(x0+t*dx),p[1]=tension*p[1]+(1-tension)*(y0+t*dy);return d3_svg_lineBasis(points)},cardinal:function(points,tension){return points.length<3?d3_svg_lineLinear(points):points[0]+d3_svg_lineHermite(points,d3_svg_lineCardinalTangents(points,tension))},"cardinal-open":function(points,tension){
return points.length<4?d3_svg_lineLinear(points):points[1]+d3_svg_lineHermite(points.slice(1,-1),d3_svg_lineCardinalTangents(points,tension))},"cardinal-closed":function(points,tension){return points.length<3?points.join("L")+"Z":points[0]+d3_svg_lineHermite((points.push(points[0]),points),d3_svg_lineCardinalTangents([points[points.length-2]].concat(points,[points[1]]),tension))},monotone:function(points){return points.length<3?d3_svg_lineLinear(points):points[0]+d3_svg_lineHermite(points,function(points){var d,a,b,s,tangents=[],m=function(points){var i=0,j=points.length-1,m=[],p0=points[0],p1=points[1],d=m[0]=d3_svg_lineSlope(p0,p1);for(;++i<j;)m[i]=(d+(
d=d3_svg_lineSlope(p0=p1,p1=points[i+1])))/2;return m[i]=d,m}(points),i=-1,j=points.length-1;for(;++i<j;)d=d3_svg_lineSlope(points[i],points[i+1]),abs(d)<ε?m[i]=m[i+1]=0:(a=m[i]/d,b=m[i+1]/d,9<(s=a*a+b*b)&&(s=3*d/Math.sqrt(s),m[i]=s*a,m[i+1]=s*b));i=-1;for(;++i<=j;)s=(points[Math.min(j,i+1)][0]-points[Math.max(0,i-1)][0])/(6*(1+m[i]*m[i])),tangents.push([s||0,m[i]*s||0]);return tangents}(points))}});function d3_svg_lineLinear(points){return 1<points.length?points.join("L"):points+"Z"}function d3_svg_lineLinearClosed(points){return points.join("L")+"Z"}function d3_svg_lineStepBefore(points){for(var i=0,n=points.length,p=points[0],path=[p[0],",",p[1]];++i<n;
)path.push("V",(p=points[i])[1],"H",p[0]);return path.join("")}function d3_svg_lineStepAfter(points){for(var i=0,n=points.length,p=points[0],path=[p[0],",",p[1]];++i<n;)path.push("H",(p=points[i])[0],"V",p[1]);return path.join("")}function d3_svg_lineHermite(points,tangents){if(tangents.length<1||points.length!=tangents.length&&points.length!=tangents.length+2)return d3_svg_lineLinear(points);var lp=points.length!=tangents.length,path="",p0=points[0],p=points[1],t0=tangents[0],t=t0,pi=1;if(lp&&(path+="Q"+(p[0]-2*t0[0]/3)+","+(p[1]-2*t0[1]/3)+","+p[0]+","+p[1],p0=points[1],pi=2),1<tangents.length){t=tangents[1],p=points[pi],pi++,path+="C"+(p0[0]+t0[0])+","+(
p0[1]+t0[1])+","+(p[0]-t[0])+","+(p[1]-t[1])+","+p[0]+","+p[1];for(var i=2;i<tangents.length;i++,pi++)p=points[pi],t=tangents[i],path+="S"+(p[0]-t[0])+","+(p[1]-t[1])+","+p[0]+","+p[1]}return lp&&(lp=points[pi],path+="Q"+(p[0]+2*t[0]/3)+","+(p[1]+2*t[1]/3)+","+lp[0]+","+lp[1]),path}function d3_svg_lineCardinalTangents(points,tension){for(var p0,tangents=[],a=(1-tension)/2,p1=points[0],p2=points[1],i=1,n=points.length;++i<n;)p0=p1,p1=p2,p2=points[i],tangents.push([a*(p2[0]-p0[0]),a*(p2[1]-p0[1])]);return tangents}function d3_svg_lineBasis(points){if(points.length<3)return d3_svg_lineLinear(points);var i=1,n=points.length,pi=points[0],x0=pi[0],y0=pi[1],px=[x0,
x0,x0,(pi=points[1])[0]],py=[y0,y0,y0,pi[1]],path=[x0,",",y0,"L",d3_svg_lineDot4(d3_svg_lineBasisBezier3,px),",",d3_svg_lineDot4(d3_svg_lineBasisBezier3,py)];for(points.push(points[n-1]);++i<=n;)pi=points[i],px.shift(),px.push(pi[0]),py.shift(),py.push(pi[1]),d3_svg_lineBasisBezier(path,px,py);return points.pop(),path.push("L",pi),path.join("")}function d3_svg_lineDot4(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]}d3_svg_lineInterpolators.forEach(function(key,value){value.key=key,value.closed=/-closed$/.test(key)});var d3_svg_lineBasisBezier1=[0,2/3,1/3,0],d3_svg_lineBasisBezier2=[0,1/3,2/3,0],d3_svg_lineBasisBezier3=[0,1/6,2/3,1/6]
;function d3_svg_lineBasisBezier(path,x,y){path.push("C",d3_svg_lineDot4(d3_svg_lineBasisBezier1,x),",",d3_svg_lineDot4(d3_svg_lineBasisBezier1,y),",",d3_svg_lineDot4(d3_svg_lineBasisBezier2,x),",",d3_svg_lineDot4(d3_svg_lineBasisBezier2,y),",",d3_svg_lineDot4(d3_svg_lineBasisBezier3,x),",",d3_svg_lineDot4(d3_svg_lineBasisBezier3,y))}function d3_svg_lineSlope(p0,p1){return(p1[1]-p0[1])/(p1[0]-p0[0])}function d3_svg_lineRadial(points){for(var point,r,a,i=-1,n=points.length;++i<n;)r=(point=points[i])[0],a=point[1]-halfπ,point[0]=r*Math.cos(a),point[1]=r*Math.sin(a);return points}function d3_svg_area(projection){var x0=d3_geom_pointX,x1=d3_geom_pointX,y0=0,
y1=d3_geom_pointY,defined=d3_true,interpolate=d3_svg_lineLinear,interpolateKey=interpolate.key,interpolateReverse=interpolate,L="L",tension=.7;function area(data){var d,x,y,segments=[],points0=[],points1=[],i=-1,n=data.length,fx0=d3_functor(x0),fy0=d3_functor(y0),fx1=x0===x1?function(){return x}:d3_functor(x1),fy1=y0===y1?function(){return y}:d3_functor(y1);function segment(){segments.push("M",interpolate(projection(points1),tension),L,interpolateReverse(projection(points0.reverse()),tension),"Z")}for(;++i<n;)defined.call(this,d=data[i],i)?(points0.push([x=+fx0.call(this,d,i),y=+fy0.call(this,d,i)]),points1.push([+fx1.call(this,d,i),+fy1.call(this,d,i)])
):points0.length&&(segment(),points0=[],points1=[]);return points0.length&&segment(),segments.length?segments.join(""):null}return area.x=function(_){return arguments.length?(x0=x1=_,area):x1},area.x0=function(_){return arguments.length?(x0=_,area):x0},area.x1=function(_){return arguments.length?(x1=_,area):x1},area.y=function(_){return arguments.length?(y0=y1=_,area):y1},area.y0=function(_){return arguments.length?(y0=_,area):y0},area.y1=function(_){return arguments.length?(y1=_,area):y1},area.defined=function(_){return arguments.length?(defined=_,area):defined},area.interpolate=function(_){return arguments.length?(
interpolateKey="function"==typeof _?interpolate=_:(interpolate=d3_svg_lineInterpolators.get(_)||d3_svg_lineLinear).key,interpolateReverse=interpolate.reverse||interpolate,L=interpolate.closed?"M":"L",area):interpolateKey},area.tension=function(_){return arguments.length?(tension=_,area):tension},area}function d3_svg_chordRadius(d){return d.radius}function d3_svg_diagonalProjection(d){return[d.x,d.y]}function d3_svg_symbolSize(){return 64}function d3_svg_symbolType(){return"circle"}function d3_svg_symbolCircle(r){r=Math.sqrt(r/π);return"M0,"+r+"A"+r+","+r+" 0 1,1 0,"+-r+"A"+r+","+r+" 0 1,1 0,"+r+"Z"}d3.svg.line.radial=function(){var line=d3_svg_line(
d3_svg_lineRadial);return line.radius=line.x,delete line.x,line.angle=line.y,delete line.y,line},(d3_svg_lineStepBefore.reverse=d3_svg_lineStepAfter).reverse=d3_svg_lineStepBefore,d3.svg.area=function(){return d3_svg_area(d3_identity)},d3.svg.area.radial=function(){var area=d3_svg_area(d3_svg_lineRadial);return area.radius=area.x,delete area.x,area.innerRadius=area.x0,delete area.x0,area.outerRadius=area.x1,delete area.x1,area.angle=area.y,delete area.y,area.startAngle=area.y0,delete area.y0,area.endAngle=area.y1,delete area.y1,area},d3.svg.chord=function(){var source=d3_source,target=d3_target,radius=d3_svg_chordRadius,startAngle=d3_svg_arcStartAngle,
endAngle=d3_svg_arcEndAngle;function chord(b,a){var s=subgroup(this,source,b,a),t=subgroup(this,target,b,a);return"M"+s.p0+arc(s.r,s.p1,s.a1-s.a0)+(b=t,(a=s).a0==b.a0&&a.a1==b.a1?curve(s.r,s.p1,s.r,s.p0):curve(s.r,s.p1,t.r,t.p0)+arc(t.r,t.p1,t.a1-t.a0)+curve(t.r,t.p1,s.r,s.p0))+"Z"}function subgroup(self,r,a0,a1){var subgroup=r.call(self,a0,a1),r=radius.call(self,subgroup,a1),a0=startAngle.call(self,subgroup,a1)-halfπ,a1=endAngle.call(self,subgroup,a1)-halfπ;return{r:r,a0:a0,a1:a1,p0:[r*Math.cos(a0),r*Math.sin(a0)],p1:[r*Math.cos(a1),r*Math.sin(a1)]}}function arc(r,p,a){return"A"+r+","+r+" 0 "+ +(π<a)+",1 "+p}function curve(r0,p0,r1,p1){return"Q 0,0 "+p1}
return chord.radius=function(v){return arguments.length?(radius=d3_functor(v),chord):radius},chord.source=function(v){return arguments.length?(source=d3_functor(v),chord):source},chord.target=function(v){return arguments.length?(target=d3_functor(v),chord):target},chord.startAngle=function(v){return arguments.length?(startAngle=d3_functor(v),chord):startAngle},chord.endAngle=function(v){return arguments.length?(endAngle=d3_functor(v),chord):endAngle},chord},d3.svg.diagonal=function(){var source=d3_source,target=d3_target,projection=d3_svg_diagonalProjection;function diagonal(p,m){var p0=source.call(this,p,m),p=target.call(this,p,m),m=(p0.y+p.y)/2,p=[p0,{
x:p0.x,y:m},{x:p.x,y:m},p];return"M"+(p=p.map(projection))[0]+"C"+p[1]+" "+p[2]+" "+p[3]}return diagonal.source=function(x){return arguments.length?(source=d3_functor(x),diagonal):source},diagonal.target=function(x){return arguments.length?(target=d3_functor(x),diagonal):target},diagonal.projection=function(x){return arguments.length?(projection=x,diagonal):projection},diagonal},d3.svg.diagonal.radial=function(){var diagonal=d3.svg.diagonal(),projection=d3_svg_diagonalProjection,projection_=diagonal.projection;return diagonal.projection=function(x){return arguments.length?projection_(function(projection){return function(){var a=projection.apply(this,
arguments),r=a[0],a=a[1]-halfπ;return[r*Math.cos(a),r*Math.sin(a)]}}(projection=x)):projection},diagonal},d3.svg.symbol=function(){var type=d3_svg_symbolType,size=d3_svg_symbolSize;function symbol(d,i){return(d3_svg_symbols.get(type.call(this,d,i))||d3_svg_symbolCircle)(size.call(this,d,i))}return symbol.type=function(x){return arguments.length?(type=d3_functor(x),symbol):type},symbol.size=function(x){return arguments.length?(size=d3_functor(x),symbol):size},symbol};var d3_svg_symbols=d3.map({circle:d3_svg_symbolCircle,cross:function(r){r=Math.sqrt(r/5)/2;return"M"+-3*r+","+-r+"H"+-r+"V"+-3*r+"H"+r+"V"+-r+"H"+3*r+"V"+r+"H"+r+"V"+3*r+"H"+-r+"V"+r+"H"+-3*r+"Z"
},diamond:function(rx){var ry=Math.sqrt(rx/(2*d3_svg_symbolTan30)),rx=ry*d3_svg_symbolTan30;return"M0,"+-ry+"L"+rx+",0 0,"+ry+" "+-rx+",0Z"},square:function(r){r=Math.sqrt(r)/2;return"M"+-r+","+-r+"L"+r+","+-r+" "+r+","+r+" "+-r+","+r+"Z"},"triangle-down":function(ry){var rx=Math.sqrt(ry/d3_svg_symbolSqrt3),ry=rx*d3_svg_symbolSqrt3/2;return"M0,"+ry+"L"+rx+","+-ry+" "+-rx+","+-ry+"Z"},"triangle-up":function(ry){var rx=Math.sqrt(ry/d3_svg_symbolSqrt3),ry=rx*d3_svg_symbolSqrt3/2;return"M0,"+-ry+"L"+rx+","+ry+" "+-rx+","+ry+"Z"}});d3.svg.symbolTypes=d3_svg_symbols.keys();var d3_svg_symbolSqrt3=Math.sqrt(3),d3_svg_symbolTan30=Math.tan(30*d3_radians)
;d3_selectionPrototype.transition=function(name){for(var subgroup,node,id=d3_transitionInheritId||++d3_transitionId,ns=d3_transitionNamespace(name),subgroups=[],transition=d3_transitionInherit||{time:Date.now(),ease:d3_ease_cubicInOut,delay:0,duration:250},j=-1,m=this.length;++j<m;){subgroups.push(subgroup=[]);for(var group=this[j],i=-1,n=group.length;++i<n;)(node=group[i])&&d3_transitionNode(node,i,ns,id,transition),subgroup.push(node)}return d3_transition(subgroups,ns,id)},d3_selectionPrototype.interrupt=function(name){return this.each(null==name?d3_selection_interrupt:d3_selection_interruptNS(d3_transitionNamespace(name)))}
;var d3_selection_interrupt=d3_selection_interruptNS("__transition__");function d3_selection_interruptNS(ns){return function(){var lock,activeId,active;(lock=this[ns])&&(active=lock[activeId=lock.active])&&(active.timer.c=null,active.timer.t=NaN,--lock.count?delete lock[activeId]:delete this[ns],lock.active+=.5,active.event&&active.event.interrupt.call(this,this.__data__,active.index))}}function d3_transition(groups,ns,id){return d3_subclass(groups,d3_transitionPrototype),groups.namespace=ns,groups.id=id,groups}var d3_transitionInheritId,d3_transitionInherit,d3_transitionPrototype=[],d3_transitionId=0;function d3_transition_tween(groups,name,value,tween){
var id=groups.id,ns=groups.namespace;return d3_selection_each(groups,"function"==typeof value?function(node,i,j){node[ns][id].tween.set(name,tween(value.call(node,node.__data__,i,j)))}:(value=tween(value),function(node){node[ns][id].tween.set(name,value)}))}function d3_transition_text(b){return null==b&&(b=""),function(){this.textContent=b}}function d3_transitionNamespace(name){return null==name?"__transition__":"__transition_"+name+"__"}function d3_transitionNode(node,i,ns,id,inherit){var time,timer,duration,ease,tweens,lock=node[ns]||(node[ns]={active:0,count:0}),transition=lock[id];function start(elapsed){var cancelId,cancel,activeId=lock.active,
active=lock[activeId];for(cancelId in active&&(active.timer.c=null,active.timer.t=NaN,--lock.count,delete lock[activeId],active.event&&active.event.interrupt.call(node,node.__data__,active.index)),lock){+cancelId<id&&((cancel=lock[cancelId]).timer.c=null,cancel.timer.t=NaN,--lock.count,delete lock[cancelId])}timer.c=tick,d3_timer(function(){return timer.c&&tick(elapsed||1)&&(timer.c=null,timer.t=NaN),1},0,time),lock.active=id,transition.event&&transition.event.start.call(node,node.__data__,i),tweens=[],transition.tween.forEach(function(key,value){(value=value.call(node,node.__data__,i))&&tweens.push(value)}),ease=transition.ease,duration=transition.duration}
function tick(t){for(var t=t/duration,e=ease(t),n=tweens.length;0<n;)tweens[--n].call(node,e);if(1<=t)return transition.event&&transition.event.end.call(node,node.__data__,i),--lock.count?delete lock[id]:delete node[ns],1}transition||(time=inherit.time,timer=d3_timer(function(elapsed){var delay=transition.delay;if(timer.t=delay+time,delay<=elapsed)return start(elapsed-delay);timer.c=start},0,time),transition=lock[id]={tween:new d3_Map,time:time,timer:timer,delay:inherit.delay,duration:inherit.duration,ease:inherit.ease,index:i},inherit=null,++lock.count)}d3_transitionPrototype.call=d3_selectionPrototype.call,
d3_transitionPrototype.empty=d3_selectionPrototype.empty,d3_transitionPrototype.node=d3_selectionPrototype.node,d3_transitionPrototype.size=d3_selectionPrototype.size,d3.transition=function(selection,name){return selection&&selection.transition?d3_transitionInheritId?selection.transition(name):selection:d3.selection().transition(selection)},(d3.transition.prototype=d3_transitionPrototype).select=function(selector){var subgroup,subnode,node,id=this.id,ns=this.namespace,subgroups=[];selector=d3_selection_selector(selector);for(var j=-1,m=this.length;++j<m;){subgroups.push(subgroup=[]);for(var group=this[j],i=-1,n=group.length;++i<n;)(node=group[i])&&(
subnode=selector.call(node,node.__data__,i,j))?("__data__"in node&&(subnode.__data__=node.__data__),d3_transitionNode(subnode,i,ns,id,node[ns][id]),subgroup.push(subnode)):subgroup.push(null)}return d3_transition(subgroups,ns,id)},d3_transitionPrototype.selectAll=function(selector){var subgroup,subnodes,node,subnode,transition,id=this.id,ns=this.namespace,subgroups=[];selector=d3_selection_selectorAll(selector);for(var j=-1,m=this.length;++j<m;)for(var group=this[j],i=-1,n=group.length;++i<n;)if(node=group[i]){transition=node[ns][id],subnodes=selector.call(node,node.__data__,i,j),subgroups.push(subgroup=[]);for(var k=-1,o=subnodes.length;++k<o;)(
subnode=subnodes[k])&&d3_transitionNode(subnode,k,ns,id,transition),subgroup.push(subnode)}return d3_transition(subgroups,ns,id)},d3_transitionPrototype.filter=function(filter){var subgroup,node,subgroups=[];"function"!=typeof filter&&(filter=d3_selection_filter(filter));for(var j=0,m=this.length;j<m;j++){subgroups.push(subgroup=[]);for(var group,i=0,n=(group=this[j]).length;i<n;i++)(node=group[i])&&filter.call(node,node.__data__,i,j)&&subgroup.push(node)}return d3_transition(subgroups,this.namespace,this.id)},d3_transitionPrototype.tween=function(name,tween){var id=this.id,ns=this.namespace;return arguments.length<2?this.node()[ns][id].tween.get(name
):d3_selection_each(this,null==tween?function(node){node[ns][id].tween.remove(name)}:function(node){node[ns][id].tween.set(name,tween)})},d3_transitionPrototype.attr=function(nameNS,value){if(arguments.length<2){for(value in nameNS)this.attr(value,nameNS[value]);return this}var interpolate="transform"==nameNS?d3_interpolateTransform:d3_interpolate,name=d3.ns.qualify(nameNS);function attrNull(){this.removeAttribute(name)}function attrNullNS(){this.removeAttributeNS(name.space,name.local)}return d3_transition_tween(this,"attr."+nameNS,value,name.local?function(b){return null==b?attrNullNS:(b+="",function(){var i,a=this.getAttributeNS(name.space,name.local)
;return a!==b&&(i=interpolate(a,b),function(t){this.setAttributeNS(name.space,name.local,i(t))})})}:function(b){return null==b?attrNull:(b+="",function(){var i,a=this.getAttribute(name);return a!==b&&(i=interpolate(a,b),function(t){this.setAttribute(name,i(t))})})})},d3_transitionPrototype.attrTween=function(nameNS,tween){var name=d3.ns.qualify(nameNS);return this.tween("attr."+nameNS,name.local?function(d,i){var f=tween.call(this,d,i,this.getAttributeNS(name.space,name.local));return f&&function(t){this.setAttributeNS(name.space,name.local,f(t))}}:function(d,i){var f=tween.call(this,d,i,this.getAttribute(name));return f&&function(t){this.setAttribute(name,
f(t))}})},d3_transitionPrototype.style=function(name,value,priority){var n=arguments.length;if(n<3){if("string"!=typeof name){for(priority in n<2&&(value=""),name)this.style(priority,name[priority],value);return this}priority=""}function styleNull(){this.style.removeProperty(name)}return d3_transition_tween(this,"style."+name,value,function(b){return null==b?styleNull:(b+="",function(){var i,a=d3_window(this).getComputedStyle(this,null).getPropertyValue(name);return a!==b&&(i=d3_interpolate(a,b),function(t){this.style.setProperty(name,i(t),priority)})})})},d3_transitionPrototype.styleTween=function(name,tween,priority){return arguments.length<3&&(priority=""
),this.tween("style."+name,function(d,i){var f=tween.call(this,d,i,d3_window(this).getComputedStyle(this,null).getPropertyValue(name));return f&&function(t){this.style.setProperty(name,f(t),priority)}})},d3_transitionPrototype.text=function(value){return d3_transition_tween(this,"text",value,d3_transition_text)},d3_transitionPrototype.remove=function(){var ns=this.namespace;return this.each("end.transition",function(){var p;this[ns].count<2&&(p=this.parentNode)&&p.removeChild(this)})},d3_transitionPrototype.ease=function(value){var id=this.id,ns=this.namespace;return arguments.length<1?this.node()[ns][id].ease:("function"!=typeof value&&(value=d3.ease.apply(
d3,arguments)),d3_selection_each(this,function(node){node[ns][id].ease=value}))},d3_transitionPrototype.delay=function(value){var id=this.id,ns=this.namespace;return arguments.length<1?this.node()[ns][id].delay:d3_selection_each(this,"function"==typeof value?function(node,i,j){node[ns][id].delay=+value.call(node,node.__data__,i,j)}:(value=+value,function(node){node[ns][id].delay=value}))},d3_transitionPrototype.duration=function(value){var id=this.id,ns=this.namespace;return arguments.length<1?this.node()[ns][id].duration:d3_selection_each(this,"function"==typeof value?function(node,i,j){node[ns][id].duration=Math.max(1,value.call(node,node.__data__,i,j))}:(
value=Math.max(1,value),function(node){node[ns][id].duration=value}))},d3_transitionPrototype.each=function(type,listener){var id=this.id,ns=this.namespace;if(arguments.length<2){var inherit=d3_transitionInherit,inheritId=d3_transitionInheritId;try{d3_transitionInheritId=id,d3_selection_each(this,function(node,i,j){d3_transitionInherit=node[ns][id],type.call(node,node.__data__,i,j)})}finally{d3_transitionInherit=inherit,d3_transitionInheritId=inheritId}}else d3_selection_each(this,function(transition){transition=transition[ns][id];(transition.event||(transition.event=d3.dispatch("start","end","interrupt"))).on(type,listener)});return this},
d3_transitionPrototype.transition=function(){for(var subgroup,node,transition,id0=this.id,id1=++d3_transitionId,ns=this.namespace,subgroups=[],j=0,m=this.length;j<m;j++){subgroups.push(subgroup=[]);for(var group,i=0,n=(group=this[j]).length;i<n;i++)(node=group[i])&&d3_transitionNode(node,i,ns,id1,{time:(transition=node[ns][id0]).time,ease:transition.ease,delay:transition.delay+transition.duration,duration:transition.duration}),subgroup.push(node)}return d3_transition(subgroups,ns,id1)},d3.svg.axis=function(){var tickFormat_,scale=d3.scale.linear(),orient=d3_svg_axisDefaultOrient,innerTickSize=6,outerTickSize=6,tickPadding=3,tickArguments_=[10],
tickValues=null;function axis(g){g.each(function(){var tickTransform,text=d3.select(this),scale0=this.__chart__||scale,scale1=this.__chart__=scale.copy(),lineUpdate=null==tickValues?scale1.ticks?scale1.ticks.apply(scale1,tickArguments_):scale1.domain():tickValues,sign=null==tickFormat_?scale1.tickFormat?scale1.tickFormat.apply(scale1,tickArguments_):d3_identity:tickFormat_,textUpdate=text.selectAll(".tick").data(lineUpdate,scale1),tickEnter=textUpdate.enter().insert("g",".domain").attr("class","tick").style("opacity",ε),tickExit=d3.transition(textUpdate.exit()).style("opacity",ε).remove(),tickUpdate=d3.transition(textUpdate.order()).style("opacity",1),
tickSpacing=Math.max(innerTickSize,0)+tickPadding,range=d3_scaleRange(scale1),textEnter=text.selectAll(".domain").data([0]),pathUpdate=(textEnter.enter().append("path").attr("class","domain"),d3.transition(textEnter));tickEnter.append("line"),tickEnter.append("text");var x1,x2,y1,y2,x,dx,lineEnter=tickEnter.select("line"),lineUpdate=tickUpdate.select("line"),text=textUpdate.select("text").text(sign),textEnter=tickEnter.select("text"),textUpdate=tickUpdate.select("text"),sign="top"===orient||"left"===orient?-1:1;"bottom"===orient||"top"===orient?(tickTransform=d3_svg_axisX,x1="x",y1="y",x2="x2",y2="y2",text.attr("dy",sign<0?"0em":".71em").style("text-anchor",
"middle"),pathUpdate.attr("d","M"+range[0]+","+sign*outerTickSize+"V0H"+range[1]+"V"+sign*outerTickSize)):(tickTransform=d3_svg_axisY,x1="y",y1="x",x2="y2",y2="x2",text.attr("dy",".32em").style("text-anchor",sign<0?"end":"start"),pathUpdate.attr("d","M"+sign*outerTickSize+","+range[0]+"H0V"+range[1]+"H"+sign*outerTickSize)),lineEnter.attr(y2,sign*innerTickSize),textEnter.attr(y1,sign*tickSpacing),lineUpdate.attr(x2,0).attr(y2,sign*innerTickSize),textUpdate.attr(x1,0).attr(y1,sign*tickSpacing),scale1.rangeBand?(dx=(x=scale1).rangeBand()/2,scale0=scale1=function(d){return x(d)+dx}):scale0.rangeBand?scale0=scale1:tickExit.call(tickTransform,scale1,scale0),
tickEnter.call(tickTransform,scale0,scale1),tickUpdate.call(tickTransform,scale1,scale1)})}return axis.scale=function(x){return arguments.length?(scale=x,axis):scale},axis.orient=function(x){return arguments.length?(orient=x in d3_svg_axisOrients?x+"":d3_svg_axisDefaultOrient,axis):orient},axis.ticks=function(){return arguments.length?(tickArguments_=d3_array(arguments),axis):tickArguments_},axis.tickValues=function(x){return arguments.length?(tickValues=x,axis):tickValues},axis.tickFormat=function(x){return arguments.length?(tickFormat_=x,axis):tickFormat_},axis.tickSize=function(x){var n=arguments.length;return n?(innerTickSize=+x,
outerTickSize=+arguments[n-1],axis):innerTickSize},axis.innerTickSize=function(x){return arguments.length?(innerTickSize=+x,axis):innerTickSize},axis.outerTickSize=function(x){return arguments.length?(outerTickSize=+x,axis):outerTickSize},axis.tickPadding=function(x){return arguments.length?(tickPadding=+x,axis):tickPadding},axis.tickSubdivide=function(){return arguments.length&&axis},axis};var d3_svg_axisDefaultOrient="bottom",d3_svg_axisOrients={top:1,right:1,bottom:1,left:1};function d3_svg_axisX(selection,x0,x1){selection.attr("transform",function(d){var v0=x0(d);return"translate("+(isFinite(v0)?v0:x1(d))+",0)"})}function d3_svg_axisY(selection,y0,y1){
selection.attr("transform",function(d){var v0=y0(d);return"translate(0,"+(isFinite(v0)?v0:y1(d))+")"})}d3.svg.brush=function(){var xExtentDomain,yExtentDomain,event=d3_eventDispatch(brush,"brushstart","brush","brushend"),x=null,y=null,xExtent=[0,0],yExtent=[0,0],xClamp=!0,yClamp=!0,resizes=d3_svg_brushResizes[0];function brush(g){g.each(function(){var gUpdate=d3.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",brushstart).on("touchstart.brush",brushstart),backgroundUpdate=gUpdate.selectAll(".background").data([0]);backgroundUpdate.enter().append("rect").attr("class","background").style(
"visibility","hidden").style("cursor","crosshair"),gUpdate.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var resize=gUpdate.selectAll(".resize").data(resizes,d3_identity);resize.exit().remove(),resize.enter().append("g").attr("class",function(d){return"resize "+d}).style("cursor",function(d){return d3_svg_brushCursor[d]}).append("rect").attr("x",function(d){return/[ew]$/.test(d)?-3:null}).attr("y",function(d){return/^[ns]/.test(d)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),resize.style("display",brush.empty()?"none":null);var range,gUpdate=d3.transition(gUpdate),
backgroundUpdate=d3.transition(backgroundUpdate);x&&(range=d3_scaleRange(x),backgroundUpdate.attr("x",range[0]).attr("width",range[1]-range[0]),redrawX(gUpdate)),y&&(range=d3_scaleRange(y),backgroundUpdate.attr("y",range[0]).attr("height",range[1]-range[0]),redrawY(gUpdate)),redraw(gUpdate)})}function redraw(g){g.selectAll(".resize").attr("transform",function(d){return"translate("+xExtent[+/e$/.test(d)]+","+yExtent[+/^s/.test(d)]+")"})}function redrawX(g){g.select(".extent").attr("x",xExtent[0]),g.selectAll(".extent,.n>rect,.s>rect").attr("width",xExtent[1]-xExtent[0])}function redrawY(g){g.select(".extent").attr("y",yExtent[0]),g.selectAll(
".extent,.e>rect,.w>rect").attr("height",yExtent[1]-yExtent[0])}function brushstart(){var center,ex,offset,target=this,eventTarget=d3.select(d3.event.target),event_=event.of(target,arguments),g=d3.select(target),ey=eventTarget.datum(),resizingX=!/^(n|s)$/.test(ey)&&x,resizingY=!/^(e|w)$/.test(ey)&&y,dragging=eventTarget.classed("extent"),dragRestore=d3_event_dragSuppress(target),origin=d3.mouse(target),w=d3.select(d3_window(target)).on("keydown.brush",function(){32==d3.event.keyCode&&(dragging||(center=null,origin[0]-=xExtent[1],origin[1]-=yExtent[1],dragging=2),d3_eventPreventDefault())}).on("keyup.brush",function(){32==d3.event.keyCode&&2==dragging&&(
origin[0]+=xExtent[1],origin[1]+=yExtent[1],dragging=0,d3_eventPreventDefault())});function brushmove(){var point=d3.mouse(target),moved=!1;offset&&(point[0]+=offset[0],point[1]+=offset[1]),dragging||(d3.event.altKey?(center=center||[(xExtent[0]+xExtent[1])/2,(yExtent[0]+yExtent[1])/2],origin[0]=xExtent[+(point[0]<center[0])],origin[1]=yExtent[+(point[1]<center[1])]):center=null),resizingX&&move1(point,x,0)&&(redrawX(g),moved=!0),resizingY&&move1(point,y,1)&&(redrawY(g),moved=!0),moved&&(redraw(g),event_({type:"brush",mode:dragging?"move":"resize"}))}function move1(min,extent,i){var max,size=d3_scaleRange(extent),r0=size[0],r1=size[1],position=origin[i],
extent=i?yExtent:xExtent,size=extent[1]-extent[0];return dragging&&(r0-=position,r1-=size+position),min=(i?yClamp:xClamp)?Math.max(r0,Math.min(r1,min[i])):min[i],dragging?max=(min+=position)+size:(center&&(position=Math.max(r0,Math.min(r1,2*center[i]-min))),position<min?(max=min,min=position):max=position),extent[0]!=min||extent[1]!=max?(i?yExtentDomain=null:xExtentDomain=null,extent[0]=min,extent[1]=max,1):void 0}function brushend(){brushmove(),g.style("pointer-events","all").selectAll(".resize").style("display",brush.empty()?"none":null),d3.select("body").style("cursor",null),w.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null
).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),dragRestore(),event_({type:"brushend"})}d3.event.changedTouches?w.on("touchmove.brush",brushmove).on("touchend.brush",brushend):w.on("mousemove.brush",brushmove).on("mouseup.brush",brushend),g.interrupt().selectAll("*").interrupt(),dragging?(origin[0]=xExtent[0]-origin[0],origin[1]=yExtent[0]-origin[1]):ey?(ex=+/w$/.test(ey),ey=+/^n/.test(ey),offset=[xExtent[1-ex]-origin[0],yExtent[1-ey]-origin[1]],origin[0]=xExtent[ex],origin[1]=yExtent[ey]):d3.event.altKey&&(center=origin.slice()),g.style("pointer-events","none").selectAll(".resize").style("display",null),d3.select("body").style(
"cursor",eventTarget.style("cursor")),event_({type:"brushstart"}),brushmove()}return brush.event=function(g){g.each(function(){var event_=event.of(this,arguments),extent1={x:xExtent,y:yExtent,i:xExtentDomain,j:yExtentDomain},extent0=this.__chart__||extent1;this.__chart__=extent1,d3_transitionInheritId?d3.select(this).transition().each("start.brush",function(){xExtentDomain=extent0.i,yExtentDomain=extent0.j,xExtent=extent0.x,yExtent=extent0.y,event_({type:"brushstart"})}).tween("brush:brush",function(){var xi=d3_interpolateArray(xExtent,extent1.x),yi=d3_interpolateArray(yExtent,extent1.y);return xExtentDomain=yExtentDomain=null,function(t){
xExtent=extent1.x=xi(t),yExtent=extent1.y=yi(t),event_({type:"brush",mode:"resize"})}}).each("end.brush",function(){xExtentDomain=extent1.i,yExtentDomain=extent1.j,event_({type:"brush",mode:"resize"}),event_({type:"brushend"})}):(event_({type:"brushstart"}),event_({type:"brush",mode:"resize"}),event_({type:"brushend"}))})},brush.x=function(z){return arguments.length?(resizes=d3_svg_brushResizes[!(x=z)<<1|!y],brush):x},brush.y=function(z){return arguments.length?(resizes=d3_svg_brushResizes[!x<<1|!(y=z)],brush):y},brush.clamp=function(z){return arguments.length?(x&&y?(xClamp=!!z[0],yClamp=!!z[1]):x?xClamp=!!z:y&&(yClamp=!!z),brush):x&&y?[xClamp,yClamp
]:x?xClamp:y?yClamp:null},brush.extent=function(z){var x0,x1,y0,y1,t;return arguments.length?(x&&(x0=z[0],x1=z[1],y&&(x0=x0[0],x1=x1[0]),xExtentDomain=[x0,x1],x.invert&&(x0=x(x0),x1=x(x1)),x1<x0&&(t=x0,x0=x1,x1=t),x0==xExtent[0]&&x1==xExtent[1]||(xExtent=[x0,x1])),y&&(y0=z[0],y1=z[1],x&&(y0=y0[1],y1=y1[1]),yExtentDomain=[y0,y1],y.invert&&(y0=y(y0),y1=y(y1)),y1<y0&&(t=y0,y0=y1,y1=t),y0==yExtent[0]&&y1==yExtent[1]||(yExtent=[y0,y1])),brush):(x&&(xExtentDomain?(x0=xExtentDomain[0],x1=xExtentDomain[1]):(x0=xExtent[0],x1=xExtent[1],x.invert&&(x0=x.invert(x0),x1=x.invert(x1)),x1<x0&&(t=x0,x0=x1,x1=t))),y&&(yExtentDomain?(y0=yExtentDomain[0],y1=yExtentDomain[1]):(
y0=yExtent[0],y1=yExtent[1],y.invert&&(y0=y.invert(y0),y1=y.invert(y1)),y1<y0&&(t=y0,y0=y1,y1=t))),x&&y?[[x0,y0],[x1,y1]]:x?[x0,x1]:y&&[y0,y1])},brush.clear=function(){return brush.empty()||(xExtent=[0,0],yExtent=[0,0],xExtentDomain=yExtentDomain=null),brush},brush.empty=function(){return!!x&&xExtent[0]==xExtent[1]||!!y&&yExtent[0]==yExtent[1]},d3.rebind(brush,event,"on")};var d3_svg_brushCursor={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},d3_svg_brushResizes=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],d3_time_format=d3_time.format=d3_time_formatIso.timeFormat
,d3_time_formatUtc=d3_time_format.utc,d3_time_formatIso=d3_time_formatUtc("%Y-%m-%dT%H:%M:%S.%LZ");function d3_time_formatIsoNative(date){return date.toISOString()}function d3_time_scale(linear,methods,format){function scale(x){return linear(x)}function tickMethod(extent,count){var target=(extent[1]-extent[0])/count,i=d3.bisect(d3_time_scaleSteps,target);return i==d3_time_scaleSteps.length?[methods.year,d3_scale_linearTickRange(extent.map(function(d){return d/31536e6}),count)[2]]:i?methods[target/d3_time_scaleSteps[i-1]<d3_time_scaleSteps[i]/target?i-1:i]:[d3_time_scaleMilliseconds,d3_scale_linearTickRange(extent,count)[2]]}return scale.invert=function(x){
return d3_time_scaleDate(linear.invert(x))},scale.domain=function(x){return arguments.length?(linear.domain(x),scale):linear.domain().map(d3_time_scaleDate)},scale.nice=function(interval,skip){var domain=scale.domain(),method=d3_scaleExtent(domain),method=null==interval?tickMethod(method,10):"number"==typeof interval&&tickMethod(method,interval);function skipped(date){return!isNaN(date)&&!interval.range(date,d3_time_scaleDate(+date+1),skip).length}return method&&(interval=method[0],skip=method[1]),scale.domain(d3_scale_nice(domain,1<skip?{floor:function(date){for(;skipped(date=interval.floor(date));)date=d3_time_scaleDate(date-1);return date},ceil:function(
date){for(;skipped(date=interval.ceil(date));)date=d3_time_scaleDate(+date+1);return date}}:interval))},scale.ticks=function(interval,skip){var extent=d3_scaleExtent(scale.domain()),method=null==interval?tickMethod(extent,10):"number"==typeof interval?tickMethod(extent,interval):!interval.range&&[{range:interval},skip];return method&&(interval=method[0],skip=method[1]),interval.range(extent[0],d3_time_scaleDate(+extent[1]+1),skip<1?1:skip)},scale.tickFormat=function(){return format},scale.copy=function(){return d3_time_scale(linear.copy(),methods,format)},d3_scale_linearRebind(scale,linear)}function d3_time_scaleDate(t){return new Date(t)}
d3_time_format.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?d3_time_formatIsoNative:d3_time_formatIso,d3_time_formatIsoNative.parse=function(date){date=new Date(date);return isNaN(date)?null:date},d3_time_formatIsoNative.toString=d3_time_formatIso.toString,d3_time.second=d3_time_interval(function(date){return new d3_date(1e3*Math.floor(date/1e3))},function(date,offset){date.setTime(date.getTime()+1e3*Math.floor(offset))},function(date){return date.getSeconds()}),d3_time.seconds=d3_time.second.range,d3_time.seconds.utc=d3_time.second.utc.range,d3_time.minute=d3_time_interval(function(date){return new d3_date(6e4*Math.floor(date/6e4))}
,function(date,offset){date.setTime(date.getTime()+6e4*Math.floor(offset))},function(date){return date.getMinutes()}),d3_time.minutes=d3_time.minute.range,d3_time.minutes.utc=d3_time.minute.utc.range,d3_time.hour=d3_time_interval(function(date){var timezone=date.getTimezoneOffset()/60;return new d3_date(36e5*(Math.floor(date/36e5-timezone)+timezone))},function(date,offset){date.setTime(date.getTime()+36e5*Math.floor(offset))},function(date){return date.getHours()}),d3_time.hours=d3_time.hour.range,d3_time.hours.utc=d3_time.hour.utc.range,d3_time.month=d3_time_interval(function(date){return(date=d3_time.day(date)).setDate(1),date},function(date,offset){
date.setMonth(date.getMonth()+offset)},function(date){return date.getMonth()}),d3_time.months=d3_time.month.range,d3_time.months.utc=d3_time.month.utc.range;var d3_time_scaleSteps=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],d3_time_scaleLocalMethods=[[d3_time.second,1],[d3_time.second,5],[d3_time.second,15],[d3_time.second,30],[d3_time.minute,1],[d3_time.minute,5],[d3_time.minute,15],[d3_time.minute,30],[d3_time.hour,1],[d3_time.hour,3],[d3_time.hour,6],[d3_time.hour,12],[d3_time.day,1],[d3_time.day,2],[d3_time.week,1],[d3_time.month,1],[d3_time.month,3],[d3_time.year,1]],
d3_time_scaleLocalFormat=d3_time_format.multi([[".%L",function(d){return d.getMilliseconds()}],[":%S",function(d){return d.getSeconds()}],["%I:%M",function(d){return d.getMinutes()}],["%I %p",function(d){return d.getHours()}],["%a %d",function(d){return d.getDay()&&1!=d.getDate()}],["%b %d",function(d){return 1!=d.getDate()}],["%B",function(d){return d.getMonth()}],["%Y",d3_true]]),d3_time_scaleMilliseconds={range:function(start,stop,step){return d3.range(Math.ceil(start/step)*step,+stop,step).map(d3_time_scaleDate)},floor:d3_identity,ceil:d3_identity};d3_time_scaleLocalMethods.year=d3_time.year,d3_time.scale=function(){return d3_time_scale(d3.scale.linear()
,d3_time_scaleLocalMethods,d3_time_scaleLocalFormat)};var d3_time_scaleUtcMethods=d3_time_scaleLocalMethods.map(function(m){return[m[0].utc,m[1]]}),d3_time_scaleUtcFormat=d3_time_formatUtc.multi([[".%L",function(d){return d.getUTCMilliseconds()}],[":%S",function(d){return d.getUTCSeconds()}],["%I:%M",function(d){return d.getUTCMinutes()}],["%I %p",function(d){return d.getUTCHours()}],["%a %d",function(d){return d.getUTCDay()&&1!=d.getUTCDate()}],["%b %d",function(d){return 1!=d.getUTCDate()}],["%B",function(d){return d.getUTCMonth()}],["%Y",d3_true]]);function d3_json(request){return JSON.parse(request.responseText)}function d3_html(request){
var range=d3_document.createRange();return range.selectNode(d3_document.body),range.createContextualFragment(request.responseText)}d3_time_scaleUtcMethods.year=d3_time.year.utc,d3_time.scale.utc=function(){return d3_time_scale(d3.scale.linear(),d3_time_scaleUtcMethods,d3_time_scaleUtcFormat)},d3.text=d3_xhrType(function(request){return request.responseText}),d3.json=function(url,callback){return d3_xhr(url,"application/json",d3_json,callback)},d3.html=function(url,callback){return d3_xhr(url,"text/html",d3_html,callback)},d3.xml=d3_xhrType(function(request){return request.responseXML}),"function"==typeof define&&define.amd?(this.d3=d3,define("d3",d3)
):"object"==typeof module&&module.exports?module.exports=d3:this.d3=d3}(),define("css!lib/c3js/c3",[],function(){}),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("c3",factory):global.c3=factory()}(this,function(){"use strict";var c3_axis_internal_fn,CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",
chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",
line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",
axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)
)throw new TypeError("Cannot call a class as a function")},possibleConstructorReturn=function(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call},isValue=function(v){return v||0===v},isFunction=function(o){return"function"==typeof o},isArray=function(o){return Array.isArray(o)},isString=function(o){return"string"==typeof o},isUndefined=function(v){return void 0===v},isDefined=function(v){return void 0!==v},ceil10=function(v){return 10*Math.ceil(v/10)},asHalfPixel=function(n){return Math.ceil(n)+.5},diffDomain=function(d){
return d[1]-d[0]},isEmpty=function(o){return null==o||isString(o)&&0===o.length||"object"===(void 0===o?"undefined":_typeof(o))&&0===Object.keys(o).length},notEmpty=function(o){return!c3_chart_internal_fn.isEmpty(o)},getOption=function(options,key,defaultValue){return isDefined(options[key])?options[key]:defaultValue},hasValue=function(dict,value){var found=!1;return Object.keys(dict).forEach(function(key){dict[key]===value&&(found=!0)}),found},sanitise=function(str){return"string"==typeof str?str.replace(/</g,"&lt;").replace(/>/g,"&gt;"):str},getPathBox=function(items){var box=items.getBoundingClientRect(),items=[items.pathSegList.getItem(0),
items.pathSegList.getItem(1)];return{x:items[0].x,y:Math.min(items[0].y,items[1].y),width:box.width,height:box.height}};function AxisInternal(component,params){this.component=component,this.params=params||{},this.d3=component.d3,this.scale=this.d3.scale.linear(),this.range,this.orient="bottom",this.innerTickSize=6,this.outerTickSize=this.params.withOuterTick?6:0,this.tickPadding=3,this.tickValues=null,this.tickFormat,this.tickArguments,this.tickOffset=0,this.tickCulling=!0,this.tickCentered,this.tickTextCharSize,this.tickTextRotate=this.params.tickTextRotate,this.tickLength,this.axis=this.generateAxis()}(c3_axis_internal_fn=AxisInternal.prototype
).axisX=function(selection,x,tickOffset){selection.attr("transform",function(d){return"translate("+Math.ceil(x(d)+tickOffset)+", 0)"})},c3_axis_internal_fn.axisY=function(selection,y){selection.attr("transform",function(d){return"translate(0,"+Math.ceil(y(d))+")"})},c3_axis_internal_fn.scaleExtent=function(stop){var start=stop[0],stop=stop[stop.length-1];return start<stop?[start,stop]:[stop,start]},c3_axis_internal_fn.generateTicks=function(scale){var i,domain,ticks=[];if(scale.ticks)return scale.ticks.apply(scale,this.tickArguments);for(domain=scale.domain(),i=Math.ceil(domain[0]);i<domain[1];i++)ticks.push(i)
;return 0<ticks.length&&0<ticks[0]&&ticks.unshift(ticks[0]-(ticks[1]-ticks[0])),ticks},c3_axis_internal_fn.copyScale=function(){var domain,newScale=this.scale.copy();return this.params.isCategory&&(domain=this.scale.domain(),newScale.domain([domain[0],domain[1]-1])),newScale},c3_axis_internal_fn.textFormatted=function(formatted){formatted=this.tickFormat?this.tickFormat(formatted):formatted;return void 0!==formatted?formatted:""},c3_axis_internal_fn.updateRange=function(){return this.range=this.scale.rangeExtent?this.scale.rangeExtent():this.scaleExtent(this.scale.range()),this.range},c3_axis_internal_fn.updateTickTextCharSize=function(tick){
var internal=this;if(internal.tickTextCharSize)return internal.tickTextCharSize;var size={h:11.5,w:5.5};return tick.select("text").text(function(d){return internal.textFormatted(d)}).each(function(h){var box=this.getBoundingClientRect(),w=internal.textFormatted(h),h=box.height,w=w?box.width/w.length:void 0;h&&w&&(size.h=h,size.w=w)}).text(""),internal.tickTextCharSize=size},c3_axis_internal_fn.transitionise=function(selection){return this.params.withoutTransition?selection:this.d3.transition(selection)},c3_axis_internal_fn.isVertical=function(){return"left"===this.orient||"right"===this.orient},c3_axis_internal_fn.tspanData=function(d,i,ticks,scale){
var splitted=this.params.tickMultiline?this.splitTickText(d,ticks,scale):[].concat(this.textFormatted(d));return this.params.tickMultiline&&0<this.params.tickMultilineMax&&(splitted=this.ellipsify(splitted,this.params.tickMultilineMax)),splitted.map(function(s){return{index:i,splitted:s,length:splitted.length}})},c3_axis_internal_fn.splitTickText=function(tickText,ticks,scale){var subtext,spaceIndex,textWidth,internal=this,tickText=internal.textFormatted(tickText),maxWidth=internal.params.tickWidth;return"[object Array]"===Object.prototype.toString.call(tickText)?tickText:((!maxWidth||maxWidth<=0)&&(maxWidth=internal.isVertical(
)?95:internal.params.isCategory?Math.ceil(scale(ticks[1])-scale(ticks[0]))-12:110),function split(splitted,text){spaceIndex=void 0;for(var i=1;i<text.length;i++)if(" "===text.charAt(i)&&(spaceIndex=i),subtext=text.substr(0,i+1),textWidth=internal.tickTextCharSize.w*subtext.length,maxWidth<textWidth)return split(splitted.concat(text.substr(0,spaceIndex||i)),text.slice(spaceIndex?spaceIndex+1:i));return splitted.concat(text)}([],tickText+""))},c3_axis_internal_fn.ellipsify=function(splitted,max){if(splitted.length<=max)return splitted;for(var ellipsified=splitted.slice(0,max),remaining=3,i=max-1;0<=i;i--){var available=ellipsified[i].length;if(
ellipsified[i]=ellipsified[i].substr(0,available-remaining).padEnd(available,"."),(remaining-=available)<=0)break}return ellipsified},c3_axis_internal_fn.updateTickLength=function(){this.tickLength=Math.max(this.innerTickSize,0)+this.tickPadding},c3_axis_internal_fn.lineY2=function(tickPosition){tickPosition=this.scale(tickPosition)+(this.tickCentered?0:this.tickOffset);return this.range[0]<tickPosition&&tickPosition<this.range[1]?this.innerTickSize:0},c3_axis_internal_fn.textY=function(){var rotate=this.tickTextRotate;return rotate?11.5-rotate/15*2.5*(0<rotate?1:-1):this.tickLength},c3_axis_internal_fn.textTransform=function(){var rotate=this.tickTextRotate
;return rotate?"rotate("+rotate+")":""},c3_axis_internal_fn.textTextAnchor=function(){var rotate=this.tickTextRotate;return rotate?0<rotate?"start":"end":"middle"},c3_axis_internal_fn.tspanDx=function(){var rotate=this.tickTextRotate;return rotate?8*Math.sin(Math.PI*(rotate/180)):0},c3_axis_internal_fn.tspanDy=function(d,i){var dy=this.tickTextCharSize.h;return 0===i&&(dy=this.isVertical()?-((d.length-1)*(this.tickTextCharSize.h/2)-3):".71em"),dy},c3_axis_internal_fn.generateAxis=function(){var internal=this,d3=internal.d3,params=internal.params;function axis(g){g.each(function(){var tickTransform,tickX,tickY,pathUpdate=axis.g=d3.select(this),
scale0=this.__chart__||internal.scale,scale1=this.__chart__=internal.copyScale(),ticks=internal.tickValues||internal.generateTicks(scale1),tspanUpdate=pathUpdate.selectAll(".tick").data(ticks,scale1),tickEnter=tspanUpdate.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),tickExit=tspanUpdate.exit().remove(),tickUpdate=internal.transitionise(tspanUpdate).style("opacity",1);params.isCategory?(internal.tickOffset=Math.ceil((scale1(1)-scale1(0))/2),tickX=internal.tickCentered?0:internal.tickOffset,tickY=internal.tickCentered?internal.tickOffset:0):internal.tickOffset=tickX=0,tickEnter.append("line"),tickEnter.append("text"),
internal.updateRange(),internal.updateTickLength(),internal.updateTickTextCharSize(pathUpdate.select(".tick"));var lineUpdate=tickUpdate.select("line"),textUpdate=tickUpdate.select("text"),tspanUpdate=tspanUpdate.select("text").selectAll("tspan").data(function(d,i){return internal.tspanData(d,i,ticks,scale1)});tspanUpdate.enter().append("tspan"),tspanUpdate.exit().remove(),tspanUpdate.text(function(d){return d.splitted});var x,dx,pathUpdate=pathUpdate.selectAll(".domain").data([0]),pathUpdate=(pathUpdate.enter().append("path").attr("class","domain"),internal.transitionise(pathUpdate));switch(internal.orient){case"bottom":tickTransform=internal.axisX,
lineUpdate.attr("x1",tickX).attr("x2",tickX).attr("y2",function(d,i){return internal.lineY2(d,i)}),textUpdate.attr("x",0).attr("y",function(d,i){return internal.textY(d,i)}).attr("transform",function(d,i){return internal.textTransform(d,i)}).style("text-anchor",function(d,i){return internal.textTextAnchor(d,i)}),tspanUpdate.attr("x",0).attr("dy",function(d,i){return internal.tspanDy(d,i)}).attr("dx",function(d,i){return internal.tspanDx(d,i)}),pathUpdate.attr("d","M"+internal.range[0]+","+internal.outerTickSize+"V0H"+internal.range[1]+"V"+internal.outerTickSize);break;case"top":tickTransform=internal.axisX,lineUpdate.attr("x1",tickX).attr("x2",tickX).attr(
"y2",function(d,i){return-1*internal.lineY2(d,i)}),textUpdate.attr("x",0).attr("y",function(d,i){return-1*internal.textY(d,i)-(params.isCategory?2:internal.tickLength-2)}).attr("transform",function(d,i){return internal.textTransform(d,i)}).style("text-anchor",function(d,i){return internal.textTextAnchor(d,i)}),tspanUpdate.attr("x",0).attr("dy",function(d,i){return internal.tspanDy(d,i)}).attr("dx",function(d,i){return internal.tspanDx(d,i)}),pathUpdate.attr("d","M"+internal.range[0]+","+-internal.outerTickSize+"V0H"+internal.range[1]+"V"+-internal.outerTickSize);break;case"left":tickTransform=internal.axisY,lineUpdate.attr("x2",-internal.innerTickSize).attr(
"y1",tickY).attr("y2",tickY),textUpdate.attr("x",-internal.tickLength).attr("y",internal.tickOffset).style("text-anchor","end"),tspanUpdate.attr("x",-internal.tickLength).attr("dy",function(d,i){return internal.tspanDy(d,i)}),pathUpdate.attr("d","M"+-internal.outerTickSize+","+internal.range[0]+"H0V"+internal.range[1]+"H"+-internal.outerTickSize);break;case"right":tickTransform=internal.axisY,lineUpdate.attr("x2",internal.innerTickSize).attr("y1",tickY).attr("y2",tickY),textUpdate.attr("x",internal.tickLength).attr("y",internal.tickOffset).style("text-anchor","start"),tspanUpdate.attr("x",internal.tickLength).attr("dy",function(d,i){return internal.tspanDy(d
,i)}),pathUpdate.attr("d","M"+internal.outerTickSize+","+internal.range[0]+"H0V"+internal.range[1]+"H"+internal.outerTickSize)}scale1.rangeBand?(dx=(x=scale1).rangeBand()/2,scale0=scale1=function(d){return x(d)+dx}):scale0.rangeBand?scale0=scale1:tickExit.call(tickTransform,scale1,internal.tickOffset),tickEnter.call(tickTransform,scale0,internal.tickOffset),tickUpdate.call(tickTransform,scale1,internal.tickOffset)})}return axis.scale=function(x){return arguments.length?(internal.scale=x,axis):internal.scale},axis.orient=function(x){return arguments.length?(internal.orient=x in{top:1,right:1,bottom:1,left:1}?x+"":"bottom",axis):internal.orient},
axis.tickFormat=function(format){return arguments.length?(internal.tickFormat=format,axis):internal.tickFormat},axis.tickCentered=function(isCentered){return arguments.length?(internal.tickCentered=isCentered,axis):internal.tickCentered},axis.tickOffset=function(){return internal.tickOffset},axis.tickInterval=function(){var interval=params.isCategory?2*internal.tickOffset:(axis.g.select("path.domain").node().getTotalLength()-2*internal.outerTickSize)/axis.g.selectAll("line").size();return interval===1/0?0:interval},axis.ticks=function(){return arguments.length?(internal.tickArguments=arguments,axis):internal.tickArguments},axis.tickCulling=function(culling){
return arguments.length?(internal.tickCulling=culling,axis):internal.tickCulling},axis.tickValues=function(x){if("function"==typeof x)internal.tickValues=function(){return x(internal.scale.domain())};else{if(!arguments.length)return internal.tickValues;internal.tickValues=x}return axis},axis};var c3_axis_fn,Axis=function(){function Axis(owner){classCallCheck(this,Axis);var _this={fn:c3_axis_fn,internal:{fn:c3_axis_internal_fn}},_this=possibleConstructorReturn(this,(Axis.__proto__||Object.getPrototypeOf(Axis)).call(this,owner,"axis",_this));return _this.d3=owner.d3,_this.internal=AxisInternal,_this}return function(subClass,superClass){if(
"function"!=typeof superClass&&null!==superClass)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:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Axis,Component),Axis}();(c3_axis_fn=Axis.prototype).init=function(){var $$=this.owner,config=$$.config,main=$$.main;$$.axes.x=main.append("g").attr("class",CLASS.axis+" "+CLASS.axisX).attr("clip-path",config.axis_x_inner?"":$$.clipPathForXAxis).attr("transform",
$$.getTranslate("x")).style("visibility",config.axis_x_show?"visible":"hidden"),$$.axes.x.append("text").attr("class",CLASS.axisXLabel).attr("transform",config.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),$$.axes.y=main.append("g").attr("class",CLASS.axis+" "+CLASS.axisY).attr("clip-path",config.axis_y_inner?"":$$.clipPathForYAxis).attr("transform",$$.getTranslate("y")).style("visibility",config.axis_y_show?"visible":"hidden"),$$.axes.y.append("text").attr("class",CLASS.axisYLabel).attr("transform",config.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),
$$.axes.y2=main.append("g").attr("class",CLASS.axis+" "+CLASS.axisY2).attr("transform",$$.getTranslate("y2")).style("visibility",config.axis_y2_show?"visible":"hidden"),$$.axes.y2.append("text").attr("class",CLASS.axisY2Label).attr("transform",config.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},c3_axis_fn.getXAxis=function(scale,axis,tickFormat,tickValues,withOuterTick,axisParams,withoutRotateTickText){var $$=this.owner,config=$$.config,axisParams={isCategory:$$.isCategorized(),withOuterTick:withOuterTick,tickMultiline:config.axis_x_tick_multiline,tickMultilineMax:config.axis_x_tick_multiline?Number(
config.axis_x_tick_multilineMax):0,tickWidth:config.axis_x_tick_width,tickTextRotate:withoutRotateTickText?0:config.axis_x_tick_rotate,withoutTransition:axisParams},axis=new this.internal(this,axisParams).axis.scale(scale).orient(axis);return $$.isTimeSeries()&&tickValues&&"function"!=typeof tickValues&&(tickValues=tickValues.map(function(v){return $$.parseDate(v)})),axis.tickFormat(tickFormat).tickValues(tickValues),$$.isCategorized()&&(axis.tickCentered(config.axis_x_tick_centered),isEmpty(config.axis_x_tick_culling)&&(config.axis_x_tick_culling=!1)),axis},c3_axis_fn.updateXAxisTickValues=function(targets,axis){var tickValues,$$=this.owner,config=$$.config
;return(config.axis_x_tick_fit||config.axis_x_tick_count)&&(tickValues=this.generateTickValues($$.mapTargetsToUniqueXs(targets),config.axis_x_tick_count,$$.isTimeSeries())),axis?axis.tickValues(tickValues):($$.xAxis.tickValues(tickValues),$$.subXAxis.tickValues(tickValues)),tickValues},c3_axis_fn.getYAxis=function(scale,orient,axis,tickValues,withOuterTick,withoutTransition,axisParams){var $$=this.owner,config=$$.config,axisParams={withOuterTick:withOuterTick,withoutTransition:withoutTransition,tickTextRotate:axisParams?0:config.axis_y_tick_rotate},axis=new this.internal(this,axisParams).axis.scale(scale).orient(orient).tickFormat(axis)
;return $$.isTimeSeriesY()?axis.ticks($$.d3.time[config.axis_y_tick_time_value],config.axis_y_tick_time_interval):axis.tickValues(tickValues),axis},c3_axis_fn.getId=function(id){var config=this.owner.config;return id in config.data_axes?config.data_axes[id]:"y"},c3_axis_fn.getXAxisTickFormat=function(){var $$=this.owner,config=$$.config,format=$$.isTimeSeries()?$$.defaultAxisTimeFormat:$$.isCategorized()?$$.categoryName:function(v){return v<0?v.toFixed(0):v};return config.axis_x_tick_format&&(isFunction(config.axis_x_tick_format)?format=config.axis_x_tick_format:$$.isTimeSeries()&&(format=function(date){return date?$$.axisTimeFormat(config.axis_x_tick_format
)(date):""})),isFunction(format)?function(v){return format.call($$,v)}:format},c3_axis_fn.getTickValues=function(tickValues,axis){return tickValues||(axis?axis.tickValues():void 0)},c3_axis_fn.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},c3_axis_fn.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},c3_axis_fn.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},c3_axis_fn.getLabelOptionByAxisId=function(axisId){var option,config=this.owner.config
;return"y"===axisId?option=config.axis_y_label:"y2"===axisId?option=config.axis_y2_label:"x"===axisId&&(option=config.axis_x_label),option},c3_axis_fn.getLabelText=function(option){option=this.getLabelOptionByAxisId(option);return isString(option)?option:option?option.text:null},c3_axis_fn.setLabelText=function(axisId,text){var config=this.owner.config,option=this.getLabelOptionByAxisId(axisId);isString(option)?"y"===axisId?config.axis_y_label=text:"y2"===axisId?config.axis_y2_label=text:"x"===axisId&&(config.axis_x_label=text):option&&(option.text=text)},c3_axis_fn.getLabelPosition=function(option,position){option=this.getLabelOptionByAxisId(option),
position=option&&"object"===(void 0===option?"undefined":_typeof(option))&&option.position?option.position:position;return{isInner:0<=position.indexOf("inner"),isOuter:0<=position.indexOf("outer"),isLeft:0<=position.indexOf("left"),isCenter:0<=position.indexOf("center"),isRight:0<=position.indexOf("right"),isTop:0<=position.indexOf("top"),isMiddle:0<=position.indexOf("middle"),isBottom:0<=position.indexOf("bottom")}},c3_axis_fn.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},c3_axis_fn.getYAxisLabelPosition=function(){return this.getLabelPosition("y",
this.owner.config.axis_rotated?"inner-right":"inner-top")},c3_axis_fn.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},c3_axis_fn.getLabelPositionById=function(id){return"y2"===id?this.getY2AxisLabelPosition():"y"===id?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},c3_axis_fn.textForXAxisLabel=function(){return this.getLabelText("x")},c3_axis_fn.textForYAxisLabel=function(){return this.getLabelText("y")},c3_axis_fn.textForY2AxisLabel=function(){return this.getLabelText("y2")},c3_axis_fn.xForAxisLabel=function(forHorizontal,position){var $$=this.owner
;return forHorizontal?position.isLeft?0:position.isCenter?$$.width/2:$$.width:position.isBottom?-$$.height:position.isMiddle?-$$.height/2:0},c3_axis_fn.dxForAxisLabel=function(forHorizontal,position){return forHorizontal?position.isLeft?"0.5em":position.isRight?"-0.5em":"0":position.isTop?"-0.5em":position.isBottom?"0.5em":"0"},c3_axis_fn.textAnchorForAxisLabel=function(forHorizontal,position){return forHorizontal?position.isLeft?"start":position.isCenter?"middle":"end":position.isBottom?"start":position.isMiddle?"middle":"end"},c3_axis_fn.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},
c3_axis_fn.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c3_axis_fn.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c3_axis_fn.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c3_axis_fn.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c3_axis_fn.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},
c3_axis_fn.dyForXAxisLabel=function(){var $$=this.owner,config=$$.config,position=this.getXAxisLabelPosition();return config.axis_rotated?position.isInner?"1.2em":-25-($$.config.axis_x_inner?0:this.getMaxTickWidth("x")):position.isInner?"-0.5em":config.axis_x_height?config.axis_x_height-10:"3em"},c3_axis_fn.dyForYAxisLabel=function(){var $$=this.owner,position=this.getYAxisLabelPosition();return $$.config.axis_rotated?position.isInner?"-0.5em":"3em":position.isInner?"1.2em":-10-($$.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},c3_axis_fn.dyForY2AxisLabel=function(){var $$=this.owner,position=this.getY2AxisLabelPosition()
;return $$.config.axis_rotated?position.isInner?"1.2em":"-2.2em":position.isInner?"-0.5em":15+($$.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},c3_axis_fn.textAnchorForXAxisLabel=function(){var $$=this.owner;return this.textAnchorForAxisLabel(!$$.config.axis_rotated,this.getXAxisLabelPosition())},c3_axis_fn.textAnchorForYAxisLabel=function(){var $$=this.owner;return this.textAnchorForAxisLabel($$.config.axis_rotated,this.getYAxisLabelPosition())},c3_axis_fn.textAnchorForY2AxisLabel=function(){var $$=this.owner;return this.textAnchorForAxisLabel($$.config.axis_rotated,this.getY2AxisLabelPosition())},c3_axis_fn.getMaxTickWidth=function(id,
targetsToShow){var scale,axis,dummy,$$=this.owner,config=$$.config,maxWidth=0;return targetsToShow&&$$.currentMaxTickWidths[id]||($$.svg&&(targetsToShow=$$.filterTargetsToShow($$.data.targets),"y"===id?(scale=$$.y.copy().domain($$.getYDomain(targetsToShow,"y")),axis=this.getYAxis(scale,$$.yOrient,config.axis_y_tick_format,$$.yAxisTickValues,!1,!0,!0)):"y2"===id?(scale=$$.y2.copy().domain($$.getYDomain(targetsToShow,"y2")),axis=this.getYAxis(scale,$$.y2Orient,config.axis_y2_tick_format,$$.y2AxisTickValues,!1,!0,!0)):(scale=$$.x.copy().domain($$.getXDomain(targetsToShow)),axis=this.getXAxis(scale,$$.xOrient,$$.xAxisTickFormat,$$.xAxisTickValues,!1,!0,!0),
this.updateXAxisTickValues(targetsToShow,axis)),(dummy=$$.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(axis).each(function(){$$.d3.select(this).selectAll("text").each(function(){var box=this.getBoundingClientRect();maxWidth<box.width&&(maxWidth=box.width)}),dummy.remove()})),$$.currentMaxTickWidths[id]=maxWidth<=0?$$.currentMaxTickWidths[id]:maxWidth),$$.currentMaxTickWidths[id]},c3_axis_fn.updateLabels=function(withTransition){var axisY2Label=this.owner,axisXLabel=axisY2Label.main.select("."+CLASS.axisX+" ."+CLASS.axisXLabel),
axisYLabel=axisY2Label.main.select("."+CLASS.axisY+" ."+CLASS.axisYLabel),axisY2Label=axisY2Label.main.select("."+CLASS.axisY2+" ."+CLASS.axisY2Label);(withTransition?axisXLabel.transition():axisXLabel).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(withTransition?axisYLabel.transition():axisYLabel).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(withTransition?axisY2Label.transition():axisY2Label).attr("x",
this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},c3_axis_fn.getPadding=function(padding,key,defaultValue,domainLength){var p="number"==typeof padding?padding:padding[key];return isValue(p)?"ratio"===padding.unit?padding[key]*domainLength:this.convertPixelsToAxisPadding(p,domainLength):defaultValue},c3_axis_fn.convertPixelsToAxisPadding=function(pixels,domainLength){var $$=this.owner;return domainLength*(pixels/($$.config.axis_rotated?$$.width:$$.height))},c3_axis_fn.generateTickValues=function(end,targetCount,forTimeSeries){var start,count,
interval,i,tickValue,tickValues=end;if(targetCount)if(1===(targetCount=isFunction(targetCount)?targetCount():targetCount))tickValues=[end[0]];else if(2===targetCount)tickValues=[end[0],end[end.length-1]];else if(2<targetCount){for(count=targetCount-2,start=end[0],interval=((end=end[end.length-1])-start)/(1+count),tickValues=[start],i=0;i<count;i++)tickValue=+start+interval*(i+1),tickValues.push(forTimeSeries?new Date(tickValue):tickValue);tickValues.push(end)}return forTimeSeries||(tickValues=tickValues.sort(function(a,b){return a-b})),tickValues},c3_axis_fn.generateTransitions=function(duration){var axes=this.owner.axes;return{
axisX:duration?axes.x.transition().duration(duration):axes.x,axisY:duration?axes.y.transition().duration(duration):axes.y,axisY2:duration?axes.y2.transition().duration(duration):axes.y2,axisSubX:duration?axes.subx.transition().duration(duration):axes.subx}},c3_axis_fn.redraw=function(transitions,isHidden){var $$=this.owner;$$.axes.x.style("opacity",isHidden?0:1),$$.axes.y.style("opacity",isHidden?0:1),$$.axes.y2.style("opacity",isHidden?0:1),$$.axes.subx.style("opacity",isHidden?0:1),transitions.axisX.call($$.xAxis),transitions.axisY.call($$.yAxis),transitions.axisY2.call($$.y2Axis),transitions.axisSubX.call($$.subXAxis)};var c3_chart_fn,c3_chart_internal_fn
,c3={version:"0.4.23"};function Component(owner,componentKey,fn){this.owner=owner,c3.chart.internal[componentKey]=fn}function Chart(config){var $$=this.internal=new ChartInternal(this);$$.loadConfig(config),$$.beforeInit(config),$$.init(),$$.afterInit(config),function bindThis(fn,target,argThis){Object.keys(fn).forEach(function(key){target[key]=fn[key].bind(argThis),0<Object.keys(fn[key]).length&&bindThis(fn[key],target[key],argThis)})}(c3_chart_fn,this,this)}function ChartInternal(api){var $$=this;$$.d3=window.d3||(void 0!==require?require("d3"):void 0),$$.api=api,$$.config=$$.getDefaultConfig(),$$.data={},$$.cache={},$$.axes={}}return c3.generate=function(
config){return new Chart(config)},c3.chart={fn:Chart.prototype,internal:{fn:ChartInternal.prototype}},c3_chart_fn=c3.chart.fn,(c3_chart_internal_fn=c3.chart.internal.fn).beforeInit=function(){},c3_chart_internal_fn.afterInit=function(){},c3_chart_internal_fn.init=function(){var $$=this,config=$$.config;if($$.initParams(),config.data_url)$$.convertUrlToData(config.data_url,config.data_mimeType,config.data_headers,config.data_keys,$$.initWithData);else if(config.data_json)$$.initWithData($$.convertJsonToData(config.data_json,config.data_keys));else if(config.data_rows)$$.initWithData($$.convertRowsToData(config.data_rows));else{if(!config.data_columns
)throw Error("url or json or rows or columns is required.");$$.initWithData($$.convertColumnsToData(config.data_columns))}},c3_chart_internal_fn.initParams=function(){var $$=this,d3=$$.d3,config=$$.config;$$.clipId="c3-"+ +new Date+"-clip",$$.clipIdForXAxis=$$.clipId+"-xaxis",$$.clipIdForYAxis=$$.clipId+"-yaxis",$$.clipIdForGrid=$$.clipId+"-grid",$$.clipIdForSubchart=$$.clipId+"-subchart",$$.clipPath=$$.getClipPath($$.clipId),$$.clipPathForXAxis=$$.getClipPath($$.clipIdForXAxis),$$.clipPathForYAxis=$$.getClipPath($$.clipIdForYAxis),$$.clipPathForGrid=$$.getClipPath($$.clipIdForGrid),$$.clipPathForSubchart=$$.getClipPath($$.clipIdForSubchart),
$$.dragStart=null,$$.dragging=!1,$$.flowing=!1,$$.cancelClick=!1,$$.mouseover=!1,$$.transiting=!1,$$.color=$$.generateColor(),$$.levelColor=$$.generateLevelColor(),$$.dataTimeFormat=config.data_xLocaltime?d3.time.format:d3.time.format.utc,$$.axisTimeFormat=config.axis_x_localtime?d3.time.format:d3.time.format.utc,$$.defaultAxisTimeFormat=$$.axisTimeFormat.multi([[".%L",function(d){return d.getMilliseconds()}],[":%S",function(d){return d.getSeconds()}],["%I:%M",function(d){return d.getMinutes()}],["%I %p",function(d){return d.getHours()}],["%-m/%-d",function(d){return d.getDay()&&1!==d.getDate()}],["%-m/%-d",function(d){return 1!==d.getDate()}],["%-m/%-d",
function(d){return d.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),$$.hiddenTargetIds=[],$$.hiddenLegendIds=[],$$.focusedTargetIds=[],$$.defocusedTargetIds=[],$$.xOrient=config.axis_rotated?config.axis_x_inner?"right":"left":config.axis_x_inner?"top":"bottom",$$.yOrient=config.axis_rotated?config.axis_y_inner?"top":"bottom":config.axis_y_inner?"right":"left",$$.y2Orient=config.axis_rotated?config.axis_y2_inner?"bottom":"top":config.axis_y2_inner?"left":"right",$$.subXOrient=config.axis_rotated?"left":"bottom",$$.isLegendRight="right"===config.legend_position,$$.isLegendInset="inset"===config.legend_position,
$$.isLegendTop="top-left"===config.legend_inset_anchor||"top-right"===config.legend_inset_anchor,$$.isLegendLeft="top-left"===config.legend_inset_anchor||"bottom-left"===config.legend_inset_anchor,$$.legendStep=0,$$.legendItemWidth=0,$$.legendItemHeight=0,$$.currentMaxTickWidths={x:0,y:0,y2:0},$$.rotated_padding_left=30,$$.rotated_padding_right=config.axis_rotated&&!config.axis_x_show?0:30,$$.rotated_padding_top=5,$$.withoutFadeIn={},$$.intervalForObserveInserted=void 0,$$.axes.subx=d3.selectAll([])},c3_chart_internal_fn.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),
this.initGauge&&this.initGauge(),this.initText&&this.initText()},c3_chart_internal_fn.initWithData=function(data){var $$=this,main=$$.d3,config=$$.config,binding=!0;$$.axis=new Axis($$),$$.initPie&&$$.initPie(),$$.initBrush&&$$.initBrush(),$$.initZoom&&$$.initZoom(),config.bindto?"function"==typeof config.bindto.node?$$.selectChart=config.bindto:$$.selectChart=main.select(config.bindto):$$.selectChart=main.selectAll([]),$$.selectChart.empty()&&($$.selectChart=main.select(document.createElement("div")).style("opacity",0),$$.observeInserted($$.selectChart),binding=!1),$$.selectChart.html("").classed("c3",!0),$$.data.xs={},
$$.data.targets=$$.convertDataToTargets(data),config.data_filter&&($$.data.targets=$$.data.targets.filter(config.data_filter)),config.data_hide&&$$.addHiddenTargetIds(!0===config.data_hide?$$.mapToIds($$.data.targets):config.data_hide),config.legend_hide&&$$.addHiddenLegendIds(!0===config.legend_hide?$$.mapToIds($$.data.targets):config.legend_hide),$$.updateSizes(),$$.updateScales(),$$.x.domain(main.extent($$.getXDomain($$.data.targets))),$$.y.domain($$.getYDomain($$.data.targets,"y")),$$.y2.domain($$.getYDomain($$.data.targets,"y2")),$$.subX.domain($$.x.domain()),$$.subY.domain($$.y.domain()),$$.subY2.domain($$.y2.domain()),$$.orgXDomain=$$.x.domain(),
$$.brush&&$$.brush.scale($$.subX),config.zoom_enabled&&$$.zoom.scale($$.x),$$.svg=$$.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return config.onmouseover.call($$)}).on("mouseleave",function(){return config.onmouseout.call($$)}),$$.config.svg_classname&&$$.svg.attr("class",$$.config.svg_classname),main=$$.svg.append("defs"),$$.clipChart=$$.appendClip(main,$$.clipId),$$.clipXAxis=$$.appendClip(main,$$.clipIdForXAxis),$$.clipYAxis=$$.appendClip(main,$$.clipIdForYAxis),$$.clipGrid=$$.appendClip(main,$$.clipIdForGrid),$$.clipSubchart=$$.appendClip(main,$$.clipIdForSubchart),$$.updateSvgSize(),main=$$.main=$$.svg.append("g"
).attr("transform",$$.getTranslate("main")),$$.initSubchart&&$$.initSubchart(),$$.initTooltip&&$$.initTooltip(),$$.initLegend&&$$.initLegend(),$$.initTitle&&$$.initTitle(),main.append("text").attr("class",CLASS.text+" "+CLASS.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),$$.initRegion(),$$.initGrid(),main.append("g").attr("clip-path",$$.clipPath).attr("class",CLASS.chart),config.grid_lines_front&&$$.initGridLines(),$$.initEventRect(),$$.initChartElements(),main.insert("rect",config.zoom_privileged?null:"g."+CLASS.regions).attr("class",CLASS.zoomRect).attr("width",$$.width).attr("height",$$.height).style("opacity",0).on(
"dblclick.zoom",null),config.axis_x_extent&&$$.brush.extent($$.getDefaultExtent()),$$.axis.init(),$$.updateTargets($$.data.targets),binding&&($$.updateDimension(),$$.config.oninit.call($$),$$.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),$$.bindResize(),$$.api.element=$$.selectChart.node()},c3_chart_internal_fn.smoothLines=function(el,type){var $$=this;"grid"===type&&el.each(function(){var g=$$.d3.select(this),x1=g.attr("x1"),x2=g.attr("x2"),y1=g.attr("y1"),y2=g.attr("y2");g.attr({x1:Math.ceil(x1),x2:Math.ceil(x2),y1:Math.ceil(y1),y2:Math.ceil(y2)})})},
c3_chart_internal_fn.updateSizes=function(){var $$=this,config=$$.config,legendHeight=$$.legend?$$.getLegendHeight():0,legendWidth=$$.legend?$$.getLegendWidth():0,legendHeightForBottom=$$.isLegendRight||$$.isLegendInset?0:legendHeight,hasArc=$$.hasArcType(),xAxisHeight=config.axis_rotated||hasArc?0:$$.getHorizontalAxisHeight("x"),subchartHeight=config.subchart_show&&!hasArc?config.subchart_size_height+xAxisHeight:0;$$.currentWidth=$$.getCurrentWidth(),$$.currentHeight=$$.getCurrentHeight(),$$.margin=config.axis_rotated?{top:$$.getHorizontalAxisHeight("y2")+$$.getCurrentPaddingTop(),right:hasArc?0:$$.getCurrentPaddingRight(),bottom:$$.getHorizontalAxisHeight(
"y")+legendHeightForBottom+$$.getCurrentPaddingBottom(),left:subchartHeight+(hasArc?0:$$.getCurrentPaddingLeft())}:{top:4+$$.getCurrentPaddingTop(),right:hasArc?0:$$.getCurrentPaddingRight(),bottom:xAxisHeight+subchartHeight+legendHeightForBottom+$$.getCurrentPaddingBottom(),left:hasArc?0:$$.getCurrentPaddingLeft()},$$.margin2=config.axis_rotated?{top:$$.margin.top,right:NaN,bottom:20+legendHeightForBottom,left:$$.rotated_padding_left}:{top:$$.currentHeight-subchartHeight-legendHeightForBottom,right:NaN,bottom:xAxisHeight+legendHeightForBottom,left:$$.margin.left},$$.margin3={top:0,right:NaN,bottom:0,left:0},$$.updateSizeForLegend&&$$.updateSizeForLegend(
legendHeight,legendWidth),$$.width=$$.currentWidth-$$.margin.left-$$.margin.right,$$.height=$$.currentHeight-$$.margin.top-$$.margin.bottom,$$.width<0&&($$.width=0),$$.height<0&&($$.height=0),$$.width2=config.axis_rotated?$$.margin.left-$$.rotated_padding_left-$$.rotated_padding_right:$$.width,$$.height2=config.axis_rotated?$$.height:$$.currentHeight-$$.margin2.top-$$.margin2.bottom,$$.width2<0&&($$.width2=0),$$.height2<0&&($$.height2=0),$$.arcWidth=$$.width-($$.isLegendRight?legendWidth+10:0),$$.arcHeight=$$.height-($$.isLegendRight?0:10),$$.hasType("gauge")&&!config.gauge_fullCircle&&($$.arcHeight+=$$.height-$$.getGaugeLabelHeight()),
$$.updateRadius&&$$.updateRadius(),$$.isLegendRight&&hasArc&&($$.margin3.left=$$.arcWidth/2+1.1*$$.radiusExpanded)},c3_chart_internal_fn.updateTargets=function(targets){var $$=this;$$.updateTargetsForText(targets),$$.updateTargetsForBar(targets),$$.updateTargetsForLine(targets),$$.hasArcType()&&$$.updateTargetsForArc&&$$.updateTargetsForArc(targets),$$.updateTargetsForSubchart&&$$.updateTargetsForSubchart(targets),$$.showTargets()},c3_chart_internal_fn.showTargets=function(){var $$=this;$$.svg.selectAll("."+CLASS.target).filter(function(d){return $$.isTargetToShow(d.id)}).transition().duration($$.config.transition_duration).style("opacity",1)},
c3_chart_internal_fn.redraw=function(options,transitions){var drawArea,drawBar,drawLine,xForText,yForText,waitForDraw,flow,tickValues,i,intervalForCulling,xDomainForZoom,cx,cy,$$=this,main=$$.main,d3=$$.d3,config=$$.config,areaIndices=$$.getShapeIndices($$.isAreaType),barIndices=$$.getShapeIndices($$.isBarType),lineIndices=$$.getShapeIndices($$.isLineType),hideAxis=$$.hasArcType(),targetsToShow=$$.filterTargetsToShow($$.data.targets),xv=$$.xv.bind($$),withY=getOption(options=options||{},"withY",!0),withSubchart=getOption(options,"withSubchart",!0),withTransition=getOption(options,"withTransition",!0),withTransform=getOption(options,"withTransform",!1),
withUpdateXDomain=getOption(options,"withUpdateXDomain",!1),withUpdateOrgXDomain=getOption(options,"withUpdateOrgXDomain",!1),withTrimXDomain=getOption(options,"withTrimXDomain",!0),withUpdateXAxis=getOption(options,"withUpdateXAxis",withUpdateXDomain),withLegend=getOption(options,"withLegend",!1),withEventRect=getOption(options,"withEventRect",!0),withDimension=getOption(options,"withDimension",!0),durationForExit=getOption(options,"withTransitionForExit",withTransition),durationForAxis=getOption(options,"withTransitionForAxis",withTransition),duration=withTransition?config.transition_duration:0,durationForExit=durationForExit?duration:0,
durationForAxis=durationForAxis?duration:0;if(transitions=transitions||$$.axis.generateTransitions(durationForAxis),withLegend&&config.legend_show?$$.updateLegend($$.mapToIds($$.data.targets),options,transitions):withDimension&&$$.updateDimension(!0),$$.isCategorized()&&0===targetsToShow.length&&$$.x.domain([0,$$.axes.x.selectAll(".tick").size()]),targetsToShow.length?($$.updateXDomain(targetsToShow,withUpdateXDomain,withUpdateOrgXDomain,withTrimXDomain),config.axis_x_tick_values||(tickValues=$$.axis.updateXAxisTickValues(targetsToShow))):($$.xAxis.tickValues([]),$$.subXAxis.tickValues([])),config.zoom_rescale&&!options.flow&&(xDomainForZoom=$$.x.orgDomain()
),$$.y.domain($$.getYDomain(targetsToShow,"y",xDomainForZoom)),$$.y2.domain($$.getYDomain(targetsToShow,"y2",xDomainForZoom)),!config.axis_y_tick_values&&config.axis_y_tick_count&&$$.yAxis.tickValues($$.axis.generateTickValues($$.y.domain(),config.axis_y_tick_count)),!config.axis_y2_tick_values&&config.axis_y2_tick_count&&$$.y2Axis.tickValues($$.axis.generateTickValues($$.y2.domain(),config.axis_y2_tick_count)),$$.axis.redraw(transitions,hideAxis),$$.axis.updateLabels(withTransition),(withUpdateXDomain||withUpdateXAxis)&&targetsToShow.length)if(config.axis_x_tick_culling&&tickValues){for(i=1;i<tickValues.length;i++)if(
tickValues.length/i<config.axis_x_tick_culling_max){intervalForCulling=i;break}$$.svg.selectAll("."+CLASS.axisX+" .tick text").each(function(index){index=tickValues.indexOf(index);0<=index&&d3.select(this).style("display",index%intervalForCulling?"none":"block")})}else $$.svg.selectAll("."+CLASS.axisX+" .tick text").style("display","block");drawArea=$$.generateDrawArea?$$.generateDrawArea(areaIndices,!1):void 0,drawBar=$$.generateDrawBar?$$.generateDrawBar(barIndices):void 0,drawLine=$$.generateDrawLine?$$.generateDrawLine(lineIndices,!1):void 0,xForText=$$.generateXYForText(areaIndices,barIndices,lineIndices,!0),yForText=$$.generateXYForText(areaIndices,
barIndices,lineIndices,!1),withY&&($$.subY.domain($$.getYDomain(targetsToShow,"y")),$$.subY2.domain($$.getYDomain(targetsToShow,"y2"))),$$.updateXgridFocus(),main.select("text."+CLASS.text+"."+CLASS.empty).attr("x",$$.width/2).attr("y",$$.height/2).text(config.data_empty_label_text).transition().style("opacity",targetsToShow.length?0:1),$$.updateGrid(duration),$$.updateRegion(duration),$$.updateBar(durationForExit),$$.updateLine(durationForExit),$$.updateArea(durationForExit),$$.updateCircle(),$$.hasDataLabel()&&$$.updateText(durationForExit),$$.redrawTitle&&$$.redrawTitle(),$$.redrawArc&&$$.redrawArc(duration,durationForExit,withTransform),
$$.redrawSubchart&&$$.redrawSubchart(withSubchart,transitions,duration,durationForExit,areaIndices,barIndices,lineIndices),main.selectAll("."+CLASS.selectedCircles).filter($$.isBarType.bind($$)).selectAll("circle").remove(),config.interaction_enabled&&!options.flow&&withEventRect&&($$.redrawEventRect(),$$.updateZoom&&$$.updateZoom()),$$.updateCircleY(),cx=($$.config.axis_rotated?$$.circleY:$$.circleX).bind($$),cy=($$.config.axis_rotated?$$.circleX:$$.circleY).bind($$),options.flow&&(flow=$$.generateFlow({targets:targetsToShow,flow:options.flow,duration:options.flow.duration,drawBar:drawBar,drawLine:drawLine,drawArea:drawArea,cx:cx,cy:cy,xv:xv,
xForText:xForText,yForText:yForText})),(duration||flow)&&$$.isTabVisible()?d3.transition().duration(duration).each(function(){var transitionsToWait=[];[$$.redrawBar(drawBar,!0),$$.redrawLine(drawLine,!0),$$.redrawArea(drawArea,!0),$$.redrawCircle(cx,cy,!0),$$.redrawText(xForText,yForText,options.flow,!0),$$.redrawRegion(!0),$$.redrawGrid(!0)].forEach(function(transitions){transitions.forEach(function(transition){transitionsToWait.push(transition)})}),waitForDraw=$$.generateWait(),transitionsToWait.forEach(function(t){waitForDraw.add(t)})}).call(waitForDraw,function(){flow&&flow(),config.onrendered&&config.onrendered.call($$)}):($$.redrawBar(drawBar),
$$.redrawLine(drawLine),$$.redrawArea(drawArea),$$.redrawCircle(cx,cy),$$.redrawText(xForText,yForText,options.flow),$$.redrawRegion(),$$.redrawGrid(),config.onrendered&&config.onrendered.call($$)),$$.mapToIds($$.data.targets).forEach(function(id){$$.withoutFadeIn[id]=!0})},c3_chart_internal_fn.updateAndRedraw=function(options){var transitions,$$=this,config=$$.config;(options=options||{}).withTransition=getOption(options,"withTransition",!0),options.withTransform=getOption(options,"withTransform",!1),options.withLegend=getOption(options,"withLegend",!1),options.withUpdateXDomain=!0,options.withUpdateOrgXDomain=!0,options.withTransitionForExit=!1,
options.withTransitionForTransform=getOption(options,"withTransitionForTransform",options.withTransition),$$.updateSizes(),options.withLegend&&config.legend_show||(transitions=$$.axis.generateTransitions(options.withTransitionForAxis?config.transition_duration:0),$$.updateScales(),$$.updateSvgSize(),$$.transformAll(options.withTransitionForTransform,transitions)),$$.redraw(options,transitions)},c3_chart_internal_fn.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},c3_chart_internal_fn.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},
c3_chart_internal_fn.isCategorized=function(){return 0<=this.config.axis_x_type.indexOf("categor")},c3_chart_internal_fn.isCustomX=function(){var config=this.config;return!this.isTimeSeries()&&(config.data_x||notEmpty(config.data_xs))},c3_chart_internal_fn.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},c3_chart_internal_fn.getTranslate=function(target){var x,y,$$=this,config=$$.config;return"main"===target?(x=asHalfPixel($$.margin.left),y=asHalfPixel($$.margin.top)):"context"===target?(x=asHalfPixel($$.margin2.left),y=asHalfPixel($$.margin2.top)):"legend"===target?(x=$$.margin3.left,y=$$.margin3.top):"x"===target?(x=0,
y=config.axis_rotated?0:$$.height):"y"===target?(x=0,y=config.axis_rotated?$$.height:0):"y2"===target?(x=config.axis_rotated?0:$$.width,y=config.axis_rotated?1:0):"subx"===target?(x=0,y=config.axis_rotated?0:$$.height2):"arc"===target&&(x=$$.arcWidth/2,y=$$.arcHeight/2-($$.hasType("gauge")?6:0)),"translate("+x+","+y+")"},c3_chart_internal_fn.initialOpacity=function(d){return null!==d.value&&this.withoutFadeIn[d.id]?1:0},c3_chart_internal_fn.initialOpacityForCircle=function(d){return null!==d.value&&this.withoutFadeIn[d.id]?this.opacityForCircle(d):0},c3_chart_internal_fn.opacityForCircle=function(d){var opacity=(isFunction(this.config.point_show
)?this.config.point_show(d):this.config.point_show)?1:0;return isValue(d.value)?this.isScatterType(d)?.5:opacity:0},c3_chart_internal_fn.opacityForText=function(){return this.hasDataLabel()?1:0},c3_chart_internal_fn.xx=function(d){return d?this.x(d.x):null},c3_chart_internal_fn.xv=function(d){var $$=this,value=d.value;return $$.isTimeSeries()?value=$$.parseDate(d.value):$$.isCategorized()&&"string"==typeof d.value&&(value=$$.config.axis_x_categories.indexOf(d.value)),Math.ceil($$.x(value))},c3_chart_internal_fn.yv=function(d){var yScale=d.axis&&"y2"===d.axis?this.y2:this.y;return Math.ceil(yScale(d.value))},c3_chart_internal_fn.subxx=function(d){
return d?this.subX(d.x):null},c3_chart_internal_fn.transformMain=function(withTransition,transitions){var xAxis,yAxis,y2Axis,$$=this;transitions&&transitions.axisX?xAxis=transitions.axisX:(xAxis=$$.main.select("."+CLASS.axisX),withTransition&&(xAxis=xAxis.transition())),transitions&&transitions.axisY?yAxis=transitions.axisY:(yAxis=$$.main.select("."+CLASS.axisY),withTransition&&(yAxis=yAxis.transition())),transitions&&transitions.axisY2?y2Axis=transitions.axisY2:(y2Axis=$$.main.select("."+CLASS.axisY2),withTransition&&(y2Axis=y2Axis.transition())),(withTransition?$$.main.transition():$$.main).attr("transform",$$.getTranslate("main")),xAxis.attr("transform",
$$.getTranslate("x")),yAxis.attr("transform",$$.getTranslate("y")),y2Axis.attr("transform",$$.getTranslate("y2")),$$.main.select("."+CLASS.chartArcs).attr("transform",$$.getTranslate("arc"))},c3_chart_internal_fn.transformAll=function(withTransition,transitions){var $$=this;$$.transformMain(withTransition,transitions),$$.config.subchart_show&&$$.transformContext(withTransition,transitions),$$.legend&&$$.transformLegend(withTransition)},c3_chart_internal_fn.updateSvgSize=function(){var $$=this,brush=$$.svg.select(".c3-brush .background");$$.svg.attr("width",$$.currentWidth).attr("height",$$.currentHeight),$$.svg.selectAll(["#"+$$.clipId,"#"+$$.clipIdForGrid]
).select("rect").attr("width",$$.width).attr("height",$$.height),$$.svg.select("#"+$$.clipIdForXAxis).select("rect").attr("x",$$.getXAxisClipX.bind($$)).attr("y",$$.getXAxisClipY.bind($$)).attr("width",$$.getXAxisClipWidth.bind($$)).attr("height",$$.getXAxisClipHeight.bind($$)),$$.svg.select("#"+$$.clipIdForYAxis).select("rect").attr("x",$$.getYAxisClipX.bind($$)).attr("y",$$.getYAxisClipY.bind($$)).attr("width",$$.getYAxisClipWidth.bind($$)).attr("height",$$.getYAxisClipHeight.bind($$)),$$.svg.select("#"+$$.clipIdForSubchart).select("rect").attr("width",$$.width).attr("height",brush.size()?brush.attr("height"):0),$$.svg.select("."+CLASS.zoomRect).attr(
"width",$$.width).attr("height",$$.height),$$.selectChart.style("max-height",$$.currentHeight+"px")},c3_chart_internal_fn.updateDimension=function(withoutAxis){var $$=this;withoutAxis||($$.config.axis_rotated?($$.axes.x.call($$.xAxis),$$.axes.subx.call($$.subXAxis)):($$.axes.y.call($$.yAxis),$$.axes.y2.call($$.y2Axis))),$$.updateSizes(),$$.updateScales(),$$.updateSvgSize(),$$.transformAll(!1)},c3_chart_internal_fn.observeInserted=function(selection){var observer,$$=this;"undefined"!=typeof MutationObserver?(observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){"childList"===mutation.type&&mutation.previousSibling&&(
observer.disconnect(),$$.intervalForObserveInserted=window.setInterval(function(){selection.node().parentNode&&(window.clearInterval($$.intervalForObserveInserted),$$.updateDimension(),$$.brush&&$$.brush.update(),$$.config.oninit.call($$),$$.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),selection.transition().style("opacity",1))},10))})})).observe(selection.node(),{attributes:!0,childList:!0,characterData:!0}):window.console.error("MutationObserver not defined.")},c3_chart_internal_fn.bindResize=function(){var wrapper,$$=this,config=$$.config
;$$.resizeFunction=$$.generateResize(),$$.resizeFunction.add(function(){config.onresize.call($$)}),config.resize_auto&&$$.resizeFunction.add(function(){void 0!==$$.resizeTimeout&&window.clearTimeout($$.resizeTimeout),$$.resizeTimeout=window.setTimeout(function(){delete $$.resizeTimeout,$$.api.flush()},100)}),$$.resizeFunction.add(function(){config.onresized.call($$)}),$$.resizeIfElementDisplayed=function(){null!=$$.api&&$$.api.element.offsetParent&&$$.resizeFunction()},window.attachEvent?window.attachEvent("onresize",$$.resizeIfElementDisplayed):window.addEventListener?window.addEventListener("resize",$$.resizeIfElementDisplayed,!1):((wrapper=window.onresize
)?wrapper.add&&wrapper.remove||(wrapper=$$.generateResize()).add(window.onresize):wrapper=$$.generateResize(),wrapper.add($$.resizeFunction),window.onresize=function(){$$.api.element.offsetParent&&wrapper()})},c3_chart_internal_fn.generateResize=function(){var resizeFunctions=[];function callResizeFunctions(){resizeFunctions.forEach(function(f){f()})}return callResizeFunctions.add=function(f){resizeFunctions.push(f)},callResizeFunctions.remove=function(f){for(var i=0;i<resizeFunctions.length;i++)if(resizeFunctions[i]===f){resizeFunctions.splice(i,1);break}},callResizeFunctions},c3_chart_internal_fn.endall=function(transition,callback){var n=0
;transition.each(function(){++n}).each("end",function(){--n||callback.apply(this,arguments)})},c3_chart_internal_fn.generateWait=function(){var transitionsToWait=[],f=function(transition,callback){var timer=setInterval(function(){var done=0;transitionsToWait.forEach(function(t){if(t.empty())done+=1;else try{t.transition()}catch(e){done+=1}}),done===transitionsToWait.length&&(clearInterval(timer),callback&&callback())},10)};return f.add=function(transition){transitionsToWait.push(transition)},f},c3_chart_internal_fn.parseDate=function(date){var parsedDate;return date instanceof Date?parsedDate=date:"string"==typeof date?parsedDate=this.dataTimeFormat(
this.config.data_xFormat).parse(date):"object"!==(void 0===date?"undefined":_typeof(date))&&("number"!=typeof date||isNaN(date))||(parsedDate=new Date(+date)),parsedDate&&!isNaN(+parsedDate)||window.console.error("Failed to parse x '"+date+"' to Date object"),parsedDate},c3_chart_internal_fn.isTabVisible=function(){var hidden;return void 0!==document.hidden?hidden="hidden":void 0!==document.mozHidden?hidden="mozHidden":void 0!==document.msHidden?hidden="msHidden":void 0!==document.webkitHidden&&(hidden="webkitHidden"),!document[hidden]},c3_chart_internal_fn.isValue=isValue,c3_chart_internal_fn.isFunction=isFunction,c3_chart_internal_fn.isString=isString,
c3_chart_internal_fn.isUndefined=isUndefined,c3_chart_internal_fn.isDefined=isDefined,c3_chart_internal_fn.ceil10=ceil10,c3_chart_internal_fn.asHalfPixel=asHalfPixel,c3_chart_internal_fn.diffDomain=diffDomain,c3_chart_internal_fn.isEmpty=isEmpty,c3_chart_internal_fn.notEmpty=notEmpty,c3_chart_internal_fn.notEmpty=notEmpty,c3_chart_internal_fn.getOption=getOption,c3_chart_internal_fn.hasValue=hasValue,c3_chart_internal_fn.sanitise=sanitise,c3_chart_internal_fn.getPathBox=getPathBox,c3_chart_internal_fn.CLASS=CLASS,Function.prototype.bind||(Function.prototype.bind=function(oThis){if("function"!=typeof this)throw new TypeError(
"Function.prototype.bind - what is trying to be bound is not callable");var aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this instanceof fNOP?this:oThis,aArgs.concat(Array.prototype.slice.call(arguments)))};return fNOP.prototype=this.prototype,fBound.prototype=new fNOP,fBound}),"SVGPathSeg"in window||(window.SVGPathSeg=function(type,typeAsLetter,owningPathSegList){this.pathSegType=type,this.pathSegTypeAsLetter=typeAsLetter,this._owningPathSegList=owningPathSegList},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,
window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,
window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(owningPathSegList){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",owningPathSegList)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"
},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},
window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegMovetoRel.prototype=Object.create(
window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},
enumerable:!0}),window.SVGPathSegLinetoAbs=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{
get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){
return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(owningPathSegList,x,y,x1,y1,x2,y2){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",owningPathSegList
),this._x=x,this._y=y,this._x1=x1,this._y1=y1,this._x2=x2,this._y2=y2},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(
window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(x1){this._x1=x1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(y1){this._y1=y1,this._segmentChanged()},enumerable:!0}),
Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(x2){this._x2=x2,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(y2){this._y2=y2,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(owningPathSegList,x,y,x1,y1,x2,y2){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",owningPathSegList),this._x=x,this._y=y,this._x1=x1,this._y1=y1,this._x2=x2,this._y2=y2},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(
window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),
Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(x1){this._x1=x1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(y1){this._y1=y1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(x2){this._x2=x2,this._segmentChanged()
},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(y2){this._y2=y2,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(owningPathSegList,x,y,x1,y1){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",owningPathSegList),this._x=x,this._y=y,this._x1=x1,this._y1=y1},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},
window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),
Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(x1){this._x1=x1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(y1){this._y1=y1,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(owningPathSegList,x,y,x1,y1){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",owningPathSegList),this._x=x,this._y=y,this._x1=x1,this._y1=y1},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),
window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,
"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(x1){this._x1=x1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(y1){this._y1=y1,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(owningPathSegList,x,y,r1,r2,angle,largeArcFlag,sweepFlag){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",owningPathSegList),this._x=x,this._y=y,this._r1=r1,
this._r2=r2,this._angle=angle,this._largeArcFlag=largeArcFlag,this._sweepFlag=sweepFlag},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},
Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(r1){this._r1=r1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(r2){this._r2=r2,this._segmentChanged()},enumerable:!0}),Object.defineProperty(
window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(angle){this._angle=angle,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(largeArcFlag){this._largeArcFlag=largeArcFlag,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(sweepFlag){this._sweepFlag=sweepFlag,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(owningPathSegList,x,y,r1,r2,angle,largeArcFlag,sweepFlag){
window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",owningPathSegList),this._x=x,this._y=y,this._r1=r1,this._r2=r2,this._angle=angle,this._largeArcFlag=largeArcFlag,this._sweepFlag=sweepFlag},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){
return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(r1){this._r1=r1,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{
get:function(){return this._r2},set:function(r2){this._r2=r2,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(angle){this._angle=angle,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(largeArcFlag){this._largeArcFlag=largeArcFlag,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(sweepFlag){this._sweepFlag=sweepFlag,
this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(owningPathSegList,x){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",owningPathSegList),this._x=x},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)
},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(owningPathSegList,x){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",owningPathSegList),this._x=x},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){
return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(owningPathSegList,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",owningPathSegList),this._y=y},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),
window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(owningPathSegList,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",
owningPathSegList),this._y=y},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),
window.SVGPathSegCurvetoCubicSmoothAbs=function(owningPathSegList,x,y,x2,y2){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",owningPathSegList),this._x=x,this._y=y,this._x2=x2,this._y2=y2},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){
return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(x2){this._x2=x2,this._segmentChanged()},enumerable:!0}),Object.defineProperty(
window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(y2){this._y2=y2,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(owningPathSegList,x,y,x2,y2){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",owningPathSegList),this._x=x,this._y=y,this._x2=x2,this._y2=y2},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){
return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{
get:function(){return this._x2},set:function(x2){this._x2=x2,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(y2){this._y2=y2,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){
return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,
this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(owningPathSegList,x,y){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",owningPathSegList),this._x=x,this._y=y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},
window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(x){this._x=x,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(y){this._y=y,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},
window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(x,y){return new window.SVGPathSegMovetoAbs(void 0,x,y)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(x,y){return new window.SVGPathSegMovetoRel(void 0,x,y)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(x,y){return new window.SVGPathSegLinetoAbs(void 0,x,y)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(x,y){return new window.SVGPathSegLinetoRel(void 0,x,y)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(x,y,x1,y1,x2,y2){return new window.SVGPathSegCurvetoCubicAbs(void 0,x,y,x1,y1,x2,y2)},
window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(x,y,x1,y1,x2,y2){return new window.SVGPathSegCurvetoCubicRel(void 0,x,y,x1,y1,x2,y2)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(x,y,x1,y1){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,x,y,x1,y1)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(x,y,x1,y1){return new window.SVGPathSegCurvetoQuadraticRel(void 0,x,y,x1,y1)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(x,y,r1,r2,angle,largeArcFlag,sweepFlag){return new window.SVGPathSegArcAbs(void 0,x,y,r1,r2,angle,largeArcFlag,sweepFlag)},
window.SVGPathElement.prototype.createSVGPathSegArcRel=function(x,y,r1,r2,angle,largeArcFlag,sweepFlag){return new window.SVGPathSegArcRel(void 0,x,y,r1,r2,angle,largeArcFlag,sweepFlag)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(x){return new window.SVGPathSegLinetoHorizontalAbs(void 0,x)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(x){return new window.SVGPathSegLinetoHorizontalRel(void 0,x)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(y){return new window.SVGPathSegLinetoVerticalAbs(void 0,y)},
window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(y){return new window.SVGPathSegLinetoVerticalRel(void 0,y)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(x,y,x2,y2){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,x,y,x2,y2)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(x,y,x2,y2){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,x,y,x2,y2)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(x,y){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,x,y)},
window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(x,y){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,x,y)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(distance){if(void 0===distance||!isFinite(distance))throw"Invalid arguments.";var measurementElement=document.createElementNS("http://www.w3.org/2000/svg","path");measurementElement.setAttribute("d",this.getAttribute("d"));var lastPathSegment=measurementElement.pathSegList.numberOfItems-1;if(lastPathSegment<=0)return 0;for(;measurementElement.pathSegList.removeItem(lastPathSegment),!(
distance>measurementElement.getTotalLength())&&0<--lastPathSegment;);return lastPathSegment})),"SVGPathSegList"in window||(window.SVGPathSegList=function(pathElement){this._pathElement=pathElement,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){
return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){
return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(mutationRecords){var hasPathMutations;this._pathElement&&(hasPathMutations=!1,mutationRecords.forEach(function(record){"d"==record.attributeName&&(hasPathMutations=!0)}),hasPathMutations&&(this._list=this._parsePath(this._pathElement.getAttribute("d"))))},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",
window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(pathSeg){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(pathSeg){pathSeg._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(newItem){return this._checkPathSynchronizedToList(),this._list=[newItem],(newItem._owningPathSegList=this)._writeListToPath(),newItem},
window.SVGPathSegList.prototype._checkValidIndex=function(index){if(isNaN(index)||index<0||index>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(index){return this._checkPathSynchronizedToList(),this._checkValidIndex(index),this._list[index]},window.SVGPathSegList.prototype.insertItemBefore=function(newItem,index){return this._checkPathSynchronizedToList(),index>this.numberOfItems&&(index=this.numberOfItems),newItem._owningPathSegList&&(newItem=newItem.clone()),this._list.splice(index,0,newItem),(newItem._owningPathSegList=this)._writeListToPath(),newItem},window.SVGPathSegList.prototype.replaceItem=function(
newItem,index){return this._checkPathSynchronizedToList(),newItem._owningPathSegList&&(newItem=newItem.clone()),this._checkValidIndex(index),((this._list[index]=newItem)._owningPathSegList=this)._writeListToPath(),newItem},window.SVGPathSegList.prototype.removeItem=function(index){this._checkPathSynchronizedToList(),this._checkValidIndex(index);var item=this._list[index];return this._list.splice(index,1),this._writeListToPath(),item},window.SVGPathSegList.prototype.appendItem=function(newItem){return this._checkPathSynchronizedToList(),newItem._owningPathSegList&&(newItem=newItem.clone()),this._list.push(newItem),(newItem._owningPathSegList=this
)._writeListToPath(),newItem},window.SVGPathSegList._pathSegArrayAsString=function(pathSegArray){var string="",first=!0;return pathSegArray.forEach(function(pathSeg){first?(first=!1,string+=pathSeg._asPathString()):string+=" "+pathSeg._asPathString()}),string},window.SVGPathSegList.prototype._parsePath=function(string){if(!string||0==string.length)return[];var owningPathSegList=this,Builder=function(){this.pathSegList=[]};Builder.prototype.appendSegment=function(pathSeg){this.pathSegList.push(pathSeg)};var Source=function(string){this._string=string,this._currentIndex=0,this._endIndex=this._string.length,
this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};Source.prototype._isCurrentSpace=function(){var character=this._string[this._currentIndex];return character<=" "&&(" "==character||"\n"==character||"\t"==character||"\r"==character||"\f"==character)},Source.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},Source.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces(
)&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},Source.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},Source.prototype.peekSegmentType=function(){var lookahead=this._string[this._currentIndex];return this._pathSegTypeFromChar(lookahead)},Source.prototype._pathSegTypeFromChar=function(lookahead){switch(lookahead){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":
return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":
return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},Source.prototype._nextCommandHelper=function(lookahead,previousCommand){return("+"==lookahead||"-"==lookahead||"."==lookahead||"0"<=lookahead&&lookahead<="9"
)&&previousCommand!=window.SVGPathSeg.PATHSEG_CLOSEPATH?previousCommand==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:previousCommand==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:previousCommand:window.SVGPathSeg.PATHSEG_UNKNOWN},Source.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var command=this.peekSegmentType();return command==window.SVGPathSeg.PATHSEG_MOVETO_ABS||command==window.SVGPathSeg.PATHSEG_MOVETO_REL},Source.prototype._parseNumber=function(){var exponent=0,integer=0,frac=1,decimal=0,sign=1,expsign=1,startIndex=this._currentIndex;if(this._skipOptionalSpaces(
),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,sign=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))&&"."!=this._string.charAt(this._currentIndex))){for(var startIntPartIndex=this._currentIndex;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex)&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=startIntPartIndex)for(
var scanIntPartIndex=this._currentIndex-1,multiplier=1;startIntPartIndex<=scanIntPartIndex;)integer+=multiplier*(this._string.charAt(scanIntPartIndex--)-"0"),multiplier*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))return;for(;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex)&&this._string.charAt(this._currentIndex)<="9";)frac*=10,decimal+=(this._string.charAt(this._currentIndex)-"0")/frac,this._currentIndex+=1}if(
this._currentIndex!=startIndex&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,expsign=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))return;for(;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex
)&&this._string.charAt(this._currentIndex)<="9";)exponent*=10,exponent+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var number=integer+decimal;if(number*=sign,exponent&&(number*=Math.pow(10,expsign*exponent)),startIndex!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),number}},Source.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var flag=!1,flagChar=this._string.charAt(this._currentIndex++);if("0"==flagChar)flag=!1;else{if("1"!=flagChar)return;flag=!0}return this._skipOptionalSpacesOrDelimiter(),flag}},Source.prototype.parseSegment=function(){var lookahead=this._string[this._currentIndex],
command=this._pathSegTypeFromChar(lookahead);if(command==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((command=this._nextCommandHelper(lookahead,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=command){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:
return new window.SVGPathSegLinetoRel(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(owningPathSegList,this._parseNumber())
;case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(owningPathSegList);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var points={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(owningPathSegList,points.x,points.y,points.x1,points.y1,points.x2,points.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:points={x1:this._parseNumber(),
y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList,points.x,points.y,points.x1,points.y1,points.x2,points.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:points={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList,points.x,points.y,points.x2,points.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:points={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()}
;return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList,points.x,points.y,points.x2,points.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:points={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList,points.x,points.y,points.x1,points.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:points={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList,points.x,points.y,points.x1,points.y1)
;case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:points={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegArcRel(owningPathSegList,points.x,points.y,points.x1,points.y1,
points.arcAngle,points.arcLarge,points.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:points={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegArcAbs(owningPathSegList,points.x,points.y,points.x1,points.y1,points.arcAngle,points.arcLarge,points.arcSweep);default:throw"Unknown path seg type."}};var builder=new Builder,source=new Source(string);if(!source.initialCommandIsMoveTo())return[];for(;source.hasMoreData();){var pathSeg=source.parseSegment();if(!pathSeg)return[];builder.appendSegment(pathSeg)}
return builder.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(targetLength,padString){return targetLength>>=0,padString=String(void 0!==padString?padString:" "),this.length>targetLength?String(this):((targetLength-=this.length)>padString.length&&(padString+=padString.repeat(targetLength/padString.length)),String(this)+padString.slice(0,targetLength))}),c3_chart_fn.axis=function(){},c3_chart_fn.axis.labels=function(labels){var $$=this.internal;arguments.length&&(Object.keys(labels).forEach(function(axisId){$$.axis.setLabelText(axisId,labels[axisId])}),$$.axis.updateLabels())},c3_chart_fn.axis.max=function(max){var $$=this.internal,
config=$$.config;if(!arguments.length)return{x:config.axis_x_max,y:config.axis_y_max,y2:config.axis_y2_max};"object"===(void 0===max?"undefined":_typeof(max))?(isValue(max.x)&&(config.axis_x_max=max.x),isValue(max.y)&&(config.axis_y_max=max.y),isValue(max.y2)&&(config.axis_y2_max=max.y2)):config.axis_y_max=config.axis_y2_max=max,$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},c3_chart_fn.axis.min=function(min){var $$=this.internal,config=$$.config;if(!arguments.length)return{x:config.axis_x_min,y:config.axis_y_min,y2:config.axis_y2_min};"object"===(void 0===min?"undefined":_typeof(min))?(isValue(min.x)&&(config.axis_x_min=min.x),isValue(min.y)&&(
config.axis_y_min=min.y),isValue(min.y2)&&(config.axis_y2_min=min.y2)):config.axis_y_min=config.axis_y2_min=min,$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},c3_chart_fn.axis.range=function(range){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};isDefined(range.max)&&this.axis.max(range.max),isDefined(range.min)&&this.axis.min(range.min)},c3_chart_fn.category=function(i,category){var $$=this.internal,config=$$.config;return 1<arguments.length&&(config.axis_x_categories[i]=category,$$.redraw()),config.axis_x_categories[i]},c3_chart_fn.categories=function(categories){var $$=this.internal,config=$$.config
;return arguments.length&&(config.axis_x_categories=categories,$$.redraw()),config.axis_x_categories},c3_chart_fn.resize=function(size){var config=this.internal.config;config.size_width=size?size.width:null,config.size_height=size?size.height:null,this.flush()},c3_chart_fn.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},c3_chart_fn.destroy=function(){var wrapper,$$=this.internal;return window.clearInterval($$.intervalForObserveInserted),void 0!==$$.resizeTimeout&&window.clearTimeout($$.resizeTimeout),window.detachEvent?window.detachEvent("onresize",$$.resizeIfElementDisplayed
):window.removeEventListener?window.removeEventListener("resize",$$.resizeIfElementDisplayed):(wrapper=window.onresize)&&wrapper.add&&wrapper.remove&&wrapper.remove($$.resizeFunction),$$.resizeFunction.remove(),$$.selectChart.classed("c3",!1).html(""),Object.keys($$).forEach(function(key){$$[key]=null}),null},c3_chart_fn.color=function(id){return this.internal.color(id)},c3_chart_fn.data=function(targetIds){var targets=this.internal.data.targets;return void 0===targetIds?targets:targets.filter(function(t){return 0<=[].concat(targetIds).indexOf(t.id)})},c3_chart_fn.data.shown=function(targetIds){return this.internal.filterTargetsToShow(this.data(targetIds))},
c3_chart_fn.data.values=function(targets){var values=null;return targets&&(values=(targets=this.data(targets))[0]?targets[0].values.map(function(d){return d.value}):null),values},c3_chart_fn.data.names=function(names){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",names)},c3_chart_fn.data.colors=function(colors){return this.internal.updateDataAttributes("colors",colors)},c3_chart_fn.data.axes=function(axes){return this.internal.updateDataAttributes("axes",axes)},c3_chart_fn.flow=function(args){var targets,domain,baseTarget,baseValue,diff,to,$$=this.internal,notfoundIds=[],orgDataCount=$$.getMaxDataCount(),
length=0,tail=0;if(args.json)baseValue=$$.convertJsonToData(args.json,args.keys);else if(args.rows)baseValue=$$.convertRowsToData(args.rows);else{if(!args.columns)return;baseValue=$$.convertColumnsToData(args.columns)}targets=$$.convertDataToTargets(baseValue,!0),$$.data.targets.forEach(function(t){for(var j,found=!1,i=0;i<targets.length;i++)if(t.id===targets[i].id){for(found=!0,t.values[t.values.length-1]&&(tail=t.values[t.values.length-1].index+1),length=targets[i].values.length,j=0;j<length;j++)targets[i].values[j].index=tail+j,$$.isTimeSeries()||(targets[i].values[j].x=tail+j);t.values=t.values.concat(targets[i].values),targets.splice(i,1);break}
found||notfoundIds.push(t.id)}),$$.data.targets.forEach(function(t){for(var j,i=0;i<notfoundIds.length;i++)if(t.id===notfoundIds[i])for(tail=t.values[t.values.length-1].index+1,j=0;j<length;j++)t.values.push({id:t.id,index:tail+j,x:$$.isTimeSeries()?$$.getOtherTargetX(tail+j):tail+j,value:null})}),$$.data.targets.length&&targets.forEach(function(t){for(var missing=[],i=$$.data.targets[0].values[0].index;i<tail;i++)missing.push({id:t.id,index:i,x:$$.isTimeSeries()?$$.getOtherTargetX(i):i,value:null});t.values.forEach(function(v){v.index+=tail,$$.isTimeSeries()||(v.x+=tail)}),t.values=missing.concat(t.values)}),$$.data.targets=$$.data.targets.concat(targets),
$$.getMaxDataCount(),baseValue=(baseTarget=$$.data.targets[0]).values[0],isDefined(args.to)?(length=0,to=$$.isTimeSeries()?$$.parseDate(args.to):args.to,baseTarget.values.forEach(function(v){v.x<to&&length++})):isDefined(args.length)&&(length=args.length),orgDataCount?1===orgDataCount&&$$.isTimeSeries()&&(diff=(baseTarget.values[baseTarget.values.length-1].x-baseValue.x)/2,domain=[new Date(+baseValue.x-diff),new Date(+baseValue.x+diff)],$$.updateXDomain(null,!0,!0,!1,domain)):(diff=$$.isTimeSeries()?1<baseTarget.values.length?baseTarget.values[baseTarget.values.length-1].x-baseValue.x:baseValue.x-$$.getXDomain($$.data.targets)[0]:1,domain=[baseValue.x-diff,
baseValue.x],$$.updateXDomain(null,!0,!0,!1,domain)),$$.updateTargets($$.data.targets),$$.redraw({flow:{index:baseValue.index,length:length,duration:isValue(args.duration)?args.duration:$$.config.transition_duration,done:args.done,orgDataCount:orgDataCount},withLegend:!0,withTransition:1<orgDataCount,withTrimXDomain:!1,withUpdateXAxis:!0})},c3_chart_internal_fn.generateFlow=function(args){var $$=this,config=$$.config,d3=$$.d3;return function(){var scaleX,transform,domain=args.targets,flow=args.flow,drawBar=args.drawBar,drawLine=args.drawLine,drawArea=args.drawArea,cx=args.cx,cy=args.cy,xv=args.xv,xForText=args.xForText,yForText=args.yForText,
durationForFlow=args.duration,flowIndex=flow.index,flowLength=flow.length,flowStart=$$.getValueOnIndex($$.data.targets[0].values,flowIndex),translateX=$$.getValueOnIndex($$.data.targets[0].values,flowIndex+flowLength),orgDomain=$$.x.domain(),durationForFlow=flow.duration||durationForFlow,done=flow.done||function(){},wait=$$.generateWait(),xgrid=$$.xgrid||d3.selectAll([]),xgridLines=$$.xgridLines||d3.selectAll([]),mainRegion=$$.mainRegion||d3.selectAll([]),mainText=$$.mainText||d3.selectAll([]),mainBar=$$.mainBar||d3.selectAll([]),mainLine=$$.mainLine||d3.selectAll([]),mainArea=$$.mainArea||d3.selectAll([]),mainCircle=$$.mainCircle||d3.selectAll([])
;$$.flowing=!0,$$.data.targets.forEach(function(d){d.values.splice(0,flowLength)}),domain=$$.updateXDomain(domain,!0,!0),$$.updateXGrid&&$$.updateXGrid(!0),translateX=flow.orgDataCount?1===flow.orgDataCount||(flowStart&&flowStart.x)===(translateX&&translateX.x)||$$.isTimeSeries()?$$.x(orgDomain[0])-$$.x(domain[0]):$$.x(flowStart.x)-$$.x(translateX.x):1!==$$.data.targets[0].values.length?$$.x(orgDomain[0])-$$.x(domain[0]):$$.isTimeSeries()?(flowStart=$$.getValueOnIndex($$.data.targets[0].values,0),translateX=$$.getValueOnIndex($$.data.targets[0].values,$$.data.targets[0].values.length-1),$$.x(flowStart.x)-$$.x(translateX.x)):diffDomain(domain)/2,
scaleX=diffDomain(orgDomain)/diffDomain(domain),transform="translate("+translateX+",0) scale("+scaleX+",1)",$$.hideXGridFocus(),d3.transition().ease("linear").duration(durationForFlow).each(function(){wait.add($$.axes.x.transition().call($$.xAxis)),wait.add(mainBar.transition().attr("transform",transform)),wait.add(mainLine.transition().attr("transform",transform)),wait.add(mainArea.transition().attr("transform",transform)),wait.add(mainCircle.transition().attr("transform",transform)),wait.add(mainText.transition().attr("transform",transform)),wait.add(mainRegion.filter($$.isRegionOnX).transition().attr("transform",transform)),wait.add(xgrid.transition(
).attr("transform",transform)),wait.add(xgridLines.transition().attr("transform",transform))}).call(wait,function(){var i,shapes=[],texts=[],eventRects=[];if(flowLength){for(i=0;i<flowLength;i++)shapes.push("."+CLASS.shape+"-"+(flowIndex+i)),texts.push("."+CLASS.text+"-"+(flowIndex+i)),eventRects.push("."+CLASS.eventRect+"-"+(flowIndex+i));$$.svg.selectAll("."+CLASS.shapes).selectAll(shapes).remove(),$$.svg.selectAll("."+CLASS.texts).selectAll(texts).remove(),$$.svg.selectAll("."+CLASS.eventRects).selectAll(eventRects).remove(),$$.svg.select("."+CLASS.xgrid).remove()}xgrid.attr("transform",null).attr($$.xgridAttr),xgridLines.attr("transform",null),
xgridLines.select("line").attr("x1",config.axis_rotated?0:xv).attr("x2",config.axis_rotated?$$.width:xv),xgridLines.select("text").attr("x",config.axis_rotated?$$.width:0).attr("y",xv),mainBar.attr("transform",null).attr("d",drawBar),mainLine.attr("transform",null).attr("d",drawLine),mainArea.attr("transform",null).attr("d",drawArea),mainCircle.attr("transform",null).attr("cx",cx).attr("cy",cy),mainText.attr("transform",null).attr("x",xForText).attr("y",yForText).style("fill-opacity",$$.opacityForText.bind($$)),mainRegion.attr("transform",null),mainRegion.select("rect").filter($$.isRegionOnX).attr("x",$$.regionX.bind($$)).attr("width",$$.regionWidth.bind($$)
),config.interaction_enabled&&$$.redrawEventRect(),done(),$$.flowing=!1})}},c3_chart_fn.focus=function(targetIds){var candidates,$$=this.internal;targetIds=$$.mapToTargetIds(targetIds),candidates=$$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow,$$))),this.revert(),this.defocus(),candidates.classed(CLASS.focused,!0).classed(CLASS.defocused,!1),$$.hasArcType()&&$$.expandArc(targetIds),$$.toggleFocusLegend(targetIds,!0),$$.focusedTargetIds=targetIds,$$.defocusedTargetIds=$$.defocusedTargetIds.filter(function(id){return targetIds.indexOf(id)<0})},c3_chart_fn.defocus=function(targetIds){var $$=this.internal;targetIds=$$.mapToTargetIds(
targetIds),$$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow,$$))).classed(CLASS.focused,!1).classed(CLASS.defocused,!0),$$.hasArcType()&&$$.unexpandArc(targetIds),$$.toggleFocusLegend(targetIds,!1),$$.focusedTargetIds=$$.focusedTargetIds.filter(function(id){return targetIds.indexOf(id)<0}),$$.defocusedTargetIds=targetIds},c3_chart_fn.revert=function(targetIds){var $$=this.internal;targetIds=$$.mapToTargetIds(targetIds),$$.svg.selectAll($$.selectorTargets(targetIds)).classed(CLASS.focused,!1).classed(CLASS.defocused,!1),$$.hasArcType()&&$$.unexpandArc(targetIds),$$.config.legend_show&&($$.showLegend(targetIds.filter(
$$.isLegendToShow.bind($$))),$$.legend.selectAll($$.selectorLegends(targetIds)).filter(function(){return $$.d3.select(this).classed(CLASS.legendItemFocused)}).classed(CLASS.legendItemFocused,!1)),$$.focusedTargetIds=[],$$.defocusedTargetIds=[]},c3_chart_fn.xgrids=function(grids){var $$=this.internal,config=$$.config;return grids&&(config.grid_x_lines=grids,$$.redrawWithoutRescale()),config.grid_x_lines},c3_chart_fn.xgrids.add=function(grids){var $$=this.internal;return this.xgrids($$.config.grid_x_lines.concat(grids||[]))},c3_chart_fn.xgrids.remove=function(params){this.internal.removeGridLines(params,!0)},c3_chart_fn.ygrids=function(grids){
var $$=this.internal,config=$$.config;return grids&&(config.grid_y_lines=grids,$$.redrawWithoutRescale()),config.grid_y_lines},c3_chart_fn.ygrids.add=function(grids){var $$=this.internal;return this.ygrids($$.config.grid_y_lines.concat(grids||[]))},c3_chart_fn.ygrids.remove=function(params){this.internal.removeGridLines(params,!1)},c3_chart_fn.groups=function(groups){var $$=this.internal,config=$$.config;return isUndefined(groups)||(config.data_groups=groups,$$.redraw()),config.data_groups},c3_chart_fn.legend=function(){},c3_chart_fn.legend.show=function(targetIds){var $$=this.internal;$$.showLegend($$.mapToTargetIds(targetIds)),$$.updateAndRedraw({
withLegend:!0})},c3_chart_fn.legend.hide=function(targetIds){var $$=this.internal;$$.hideLegend($$.mapToTargetIds(targetIds)),$$.updateAndRedraw({withLegend:!0})},c3_chart_fn.load=function(args){var $$=this.internal,config=$$.config;args.xs&&$$.addXs(args.xs),"names"in args&&c3_chart_fn.data.names.bind(this)(args.names),"classes"in args&&Object.keys(args.classes).forEach(function(id){config.data_classes[id]=args.classes[id]}),"categories"in args&&$$.isCategorized()&&(config.axis_x_categories=args.categories),"axes"in args&&Object.keys(args.axes).forEach(function(id){config.data_axes[id]=args.axes[id]}),"colors"in args&&Object.keys(args.colors).forEach(
function(id){config.data_colors[id]=args.colors[id]}),"cacheIds"in args&&$$.hasCaches(args.cacheIds)?$$.load($$.getCaches(args.cacheIds),args.done):"unload"in args?$$.unload($$.mapToTargetIds("boolean"==typeof args.unload&&args.unload?null:args.unload),function(){$$.loadFromArgs(args)}):$$.loadFromArgs(args)},c3_chart_fn.unload=function(args){var $$=this.internal;(args=args||{})instanceof Array?args={ids:args}:"string"==typeof args&&(args={ids:[args]}),$$.unload($$.mapToTargetIds(args.ids),function(){$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),args.done&&args.done()})},c3_chart_fn.regions=function(regions){var $$=this.internal,
config=$$.config;return regions&&(config.regions=regions,$$.redrawWithoutRescale()),config.regions},c3_chart_fn.regions.add=function(regions){var $$=this.internal,config=$$.config;return regions&&(config.regions=config.regions.concat(regions),$$.redrawWithoutRescale()),config.regions},c3_chart_fn.regions.remove=function(options){var duration,classes,regions=this.internal,config=regions.config;return options=options||{},duration=regions.getOption(options,"duration",config.transition_duration),classes=regions.getOption(options,"classes",[CLASS.region]),regions=regions.main.select("."+CLASS.regions).selectAll(classes.map(function(c){return"."+c})),(
duration?regions.transition().duration(duration):regions).style("opacity",0).remove(),config.regions=config.regions.filter(function(region){var found=!1;return!region.class||(region.class.split(" ").forEach(function(c){0<=classes.indexOf(c)&&(found=!0)}),!found)}),config.regions},c3_chart_fn.selected=function(targetId){var $$=this.internal,d3=$$.d3;return d3.merge($$.main.selectAll("."+CLASS.shapes+$$.getTargetSelectorSuffix(targetId)).selectAll("."+CLASS.shape).filter(function(){return d3.select(this).classed(CLASS.SELECTED)}).map(function(d){return d.map(function(data){data=data.__data__;return data.data||data})}))},c3_chart_fn.select=function(ids,indices,
resetOther){var $$=this.internal,d3=$$.d3,config=$$.config;config.data_selection_enabled&&$$.main.selectAll("."+CLASS.shapes).selectAll("."+CLASS.shape).each(function(d,i){var shape=d3.select(this),isSelected=(d.data||d).id,toggle=$$.getToggle(this,d).bind($$),isTargetId=config.data_selection_grouped||!ids||0<=ids.indexOf(isSelected),isTargetIndex=!indices||0<=indices.indexOf(i),isSelected=shape.classed(CLASS.SELECTED);shape.classed(CLASS.line)||shape.classed(CLASS.area)||(isTargetId&&isTargetIndex?config.data_selection_isselectable(d)&&!isSelected&&toggle(!0,shape.classed(CLASS.SELECTED,!0),d,i):isDefined(resetOther)&&resetOther&&isSelected&&toggle(!1,
shape.classed(CLASS.SELECTED,!1),d,i))})},c3_chart_fn.unselect=function(ids,indices){var $$=this.internal,d3=$$.d3,config=$$.config;config.data_selection_enabled&&$$.main.selectAll("."+CLASS.shapes).selectAll("."+CLASS.shape).each(function(d,i){var shape=d3.select(this),isSelected=(d.data||d).id,toggle=$$.getToggle(this,d).bind($$),isTargetId=config.data_selection_grouped||!ids||0<=ids.indexOf(isSelected),isTargetIndex=!indices||0<=indices.indexOf(i),isSelected=shape.classed(CLASS.SELECTED);shape.classed(CLASS.line)||shape.classed(CLASS.area)||isTargetId&&isTargetIndex&&config.data_selection_isselectable(d)&&isSelected&&toggle(!1,shape.classed(CLASS.SELECTED
,!1),d,i)})},c3_chart_fn.show=function(targetIds,options){var targets,$$=this.internal;targetIds=$$.mapToTargetIds(targetIds),options=options||{},$$.removeHiddenTargetIds(targetIds),(targets=$$.svg.selectAll($$.selectorTargets(targetIds))).transition().style("opacity",1,"important").call($$.endall,function(){targets.style("opacity",null).style("opacity",1)}),options.withLegend&&$$.showLegend(targetIds),$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},c3_chart_fn.hide=function(targetIds,options){var targets,$$=this.internal;targetIds=$$.mapToTargetIds(targetIds),options=options||{},$$.addHiddenTargetIds(targetIds),(
targets=$$.svg.selectAll($$.selectorTargets(targetIds))).transition().style("opacity",0,"important").call($$.endall,function(){targets.style("opacity",null).style("opacity",0)}),options.withLegend&&$$.hideLegend(targetIds),$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},c3_chart_fn.toggle=function(targetIds,options){var that=this,$$=this.internal;$$.mapToTargetIds(targetIds).forEach(function(targetId){$$.isTargetToShow(targetId)?that.hide(targetId,options):that.show(targetId,options)})},c3_chart_fn.tooltip=function(){},c3_chart_fn.tooltip.show=function(args){var index,mouse,$$=this.internal;args.mouse&&(mouse=args.mouse),
args.data?index=$$.isMultipleX()?(mouse=[$$.x(args.data.x),$$.getYScale(args.data.id)(args.data.value)],null):isValue(args.data.index)?args.data.index:$$.getIndexByX(args.data.x):void 0!==args.x?index=$$.getIndexByX(args.x):void 0!==args.index&&(index=args.index),$$.dispatchEvent("mouseover",index,mouse),$$.dispatchEvent("mousemove",index,mouse),$$.config.tooltip_onshow.call($$,args.data)},c3_chart_fn.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},c3_chart_fn.transform=function(type,targetIds){var $$=this.internal,options=0<=["pie","donut"].indexOf(type)?{withTransform:!0}:null
;$$.transformTo(targetIds,type,options)},c3_chart_internal_fn.transformTo=function(targetIds,type,optionsForRedraw){var $$=this,options=!$$.hasArcType(),options=optionsForRedraw||{withTransitionForAxis:options};options.withTransitionForTransform=!1,$$.transiting=!1,$$.setTargetType(targetIds,type),$$.updateTargets($$.data.targets),$$.updateAndRedraw(options)},c3_chart_fn.x=function(x){var $$=this.internal;return arguments.length&&($$.updateTargetX($$.data.targets,x),$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),$$.data.xs},c3_chart_fn.xs=function(xs){var $$=this.internal;return arguments.length&&($$.updateTargetXs($$.data.targets,xs),$$.redraw({
withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),$$.data.xs},c3_chart_fn.zoom=function(domain){var $$=this.internal;return domain&&($$.isTimeSeries()&&(domain=domain.map(function(x){return $$.parseDate(x)})),$$.brush.extent(domain),$$.redraw({withUpdateXDomain:!0,withY:$$.config.zoom_rescale}),$$.config.zoom_onzoom.call(this,$$.x.orgDomain())),$$.brush.extent()},c3_chart_fn.zoom.enable=function(enabled){var $$=this.internal;$$.config.zoom_enabled=enabled,$$.updateAndRedraw()},c3_chart_fn.unzoom=function(){var $$=this.internal;$$.brush.clear().update(),$$.redraw({withUpdateXDomain:!0})},c3_chart_fn.zoom.max=function(max){var $$=this.internal,config=$$.config,
d3=$$.d3;if(0!==max&&!max)return config.zoom_x_max;config.zoom_x_max=d3.max([$$.orgXDomain[1],max])},c3_chart_fn.zoom.min=function(min){var $$=this.internal,config=$$.config,d3=$$.d3;if(0!==min&&!min)return config.zoom_x_min;config.zoom_x_min=d3.min([$$.orgXDomain[0],min])},c3_chart_fn.zoom.range=function(range){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};isDefined(range.max)&&this.domain.max(range.max),isDefined(range.min)&&this.domain.min(range.min)},c3_chart_internal_fn.initPie=function(){var d3=this.d3;this.pie=d3.layout.pie().value(function(d){return d.values.reduce(function(a,b){return a+b.value},0)}),this.pie.sort(
this.getOrderFunction()||null)},c3_chart_internal_fn.updateRadius=function(){var $$=this,gaugeArcWidth=$$.config,w=gaugeArcWidth.gauge_width||gaugeArcWidth.donut_width,gaugeArcWidth=$$.filterTargetsToShow($$.data.targets).length*$$.config.gauge_arcs_minWidth;$$.radiusExpanded=Math.min($$.arcWidth,$$.arcHeight)/2*($$.hasType("gauge")?.85:1),$$.radius=.95*$$.radiusExpanded,$$.innerRadiusRatio=w?($$.radius-w)/$$.radius:.6,$$.innerRadius=$$.hasType("donut")||$$.hasType("gauge")?$$.radius*$$.innerRadiusRatio:0,$$.gaugeArcWidth=w||(gaugeArcWidth<=$$.radius-$$.innerRadius?$$.radius-$$.innerRadius:gaugeArcWidth<=$$.radius?gaugeArcWidth:$$.radius)},
c3_chart_internal_fn.updateArc=function(){var $$=this;$$.svgArc=$$.getSvgArc(),$$.svgArcExpanded=$$.getSvgArcExpanded(),$$.svgArcExpandedSub=$$.getSvgArcExpanded(.98)},c3_chart_internal_fn.updateAngle=function(d){var gMax,gValue,gTic=this,config=gTic.config,found=!1,index=0;return config?(gTic.pie(gTic.filterTargetsToShow(gTic.data.targets)).forEach(function(t){found||t.data.id!==d.data.id||(found=!0,(d=t).index=index),index++}),isNaN(d.startAngle)&&(d.startAngle=0),isNaN(d.endAngle)&&(d.endAngle=d.startAngle),gTic.isGaugeType(d.data)&&(gValue=config.gauge_min,gMax=config.gauge_max,gTic=Math.PI*(config.gauge_fullCircle?2:1)/(gMax-gValue),
gValue=d.value<gValue?0:d.value<gMax?d.value-gValue:gMax-gValue,d.startAngle=config.gauge_startingAngle,d.endAngle=d.startAngle+gTic*gValue),found?d:null):null},c3_chart_internal_fn.getSvgArc=function(){var $$=this,hasGaugeType=$$.hasType("gauge"),singleArcWidth=$$.gaugeArcWidth/$$.filterTargetsToShow($$.data.targets).length,arc=$$.d3.svg.arc().outerRadius(function(d){return hasGaugeType?$$.radius-singleArcWidth*d.index:$$.radius}).innerRadius(function(d){return hasGaugeType?$$.radius-singleArcWidth*(d.index+1):$$.innerRadius}),newArc=function(updated,withoutUpdate){return withoutUpdate||(updated=$$.updateAngle(updated))?arc(updated):"M 0 0"}
;return newArc.centroid=arc.centroid,newArc},c3_chart_internal_fn.getSvgArcExpanded=function(rate){rate=rate||1;var $$=this,hasGaugeType=$$.hasType("gauge"),singleArcWidth=$$.gaugeArcWidth/$$.filterTargetsToShow($$.data.targets).length,expandWidth=Math.min($$.radiusExpanded*rate-$$.radius,.8*singleArcWidth-100*(1-rate)),arc=$$.d3.svg.arc().outerRadius(function(d){return hasGaugeType?$$.radius-singleArcWidth*d.index+expandWidth:$$.radiusExpanded*rate}).innerRadius(function(d){return hasGaugeType?$$.radius-singleArcWidth*(d.index+1):$$.innerRadius});return function(updated){updated=$$.updateAngle(updated);return updated?arc(updated):"M 0 0"}},
c3_chart_internal_fn.getArc=function(d,withoutUpdate,force){return force||this.isArcType(d.data)?this.svgArc(d,withoutUpdate):"M 0 0"},c3_chart_internal_fn.transformForArcLabel=function(d){var ratio,x,y,$$=this,config=$$.config,updated=$$.updateAngle(d),translate="",y1=$$.hasType("gauge");return updated&&!y1?(ratio=this.svgArc.centroid(updated),x=isNaN(ratio[0])?0:ratio[0],y=isNaN(ratio[1])?0:ratio[1],ratio=Math.sqrt(x*x+y*y),translate="translate("+x*(ratio=$$.hasType("donut")&&config.donut_label_ratio?isFunction(config.donut_label_ratio)?config.donut_label_ratio(d,$$.radius,ratio):config.donut_label_ratio:$$.hasType("pie"
)&&config.pie_label_ratio?isFunction(config.pie_label_ratio)?config.pie_label_ratio(d,$$.radius,ratio):config.pie_label_ratio:$$.radius&&ratio?(.375<36/$$.radius?1.175-36/$$.radius:.8)*$$.radius/ratio:0)+","+y*ratio+")"):updated&&y1&&1<$$.filterTargetsToShow($$.data.targets).length&&(y1=Math.sin(updated.endAngle-Math.PI/2),translate="translate("+(x=Math.cos(updated.endAngle-Math.PI/2)*($$.radiusExpanded+25))+","+(y=y1*($$.radiusExpanded+15-Math.abs(10*y1))+3)+")"),translate},c3_chart_internal_fn.getArcRatio=function(d){var whole=this.config,whole=Math.PI*(this.hasType("gauge")&&!whole.gauge_fullCircle?1:2);return d?(d.endAngle-d.startAngle)/whole:null},
c3_chart_internal_fn.convertToArcData=function(d){return this.addName({id:d.data.id,value:d.value,ratio:this.getArcRatio(d),index:d.index})},c3_chart_internal_fn.textForArcLabel=function(format){var value,ratio,id,$$=this;return $$.shouldShowArcLabel()?(value=(id=$$.updateAngle(format))?id.value:null,ratio=$$.getArcRatio(id),id=format.data.id,$$.hasType("gauge")||$$.meetsArcLabelThreshold(ratio)?(format=$$.getArcLabelFormat())?format(value,ratio,id):$$.defaultArcValueFormat(value,ratio):""):""},c3_chart_internal_fn.textForGaugeMinMax=function(value,isMax){var format=this.getGaugeLabelExtents();return format?format(value,isMax):value},
c3_chart_internal_fn.expandArc=function(targetIds){var interval,$$=this;$$.transiting?interval=window.setInterval(function(){$$.transiting||(window.clearInterval(interval),0<$$.legend.selectAll(".c3-legend-item-focused").size()&&$$.expandArc(targetIds))},10):(targetIds=$$.mapToTargetIds(targetIds),$$.svg.selectAll($$.selectorTargets(targetIds,"."+CLASS.chartArc)).each(function(d){$$.shouldExpand(d.data.id)&&$$.d3.select(this).selectAll("path").transition().duration($$.expandDuration(d.data.id)).attr("d",$$.svgArcExpanded).transition().duration(2*$$.expandDuration(d.data.id)).attr("d",$$.svgArcExpandedSub).each(function(d){$$.isDonutType(d.data)})}))},
c3_chart_internal_fn.unexpandArc=function(targetIds){var $$=this;$$.transiting||(targetIds=$$.mapToTargetIds(targetIds),$$.svg.selectAll($$.selectorTargets(targetIds,"."+CLASS.chartArc)).selectAll("path").transition().duration(function(d){return $$.expandDuration(d.data.id)}).attr("d",$$.svgArc),$$.svg.selectAll("."+CLASS.arc))},c3_chart_internal_fn.expandDuration=function(id){var config=this.config;return this.isDonutType(id)?config.donut_expand_duration:this.isGaugeType(id)?config.gauge_expand_duration:this.isPieType(id)?config.pie_expand_duration:50},c3_chart_internal_fn.shouldExpand=function(id){var config=this.config;return this.isDonutType(id
)&&config.donut_expand||this.isGaugeType(id)&&config.gauge_expand||this.isPieType(id)&&config.pie_expand},c3_chart_internal_fn.shouldShowArcLabel=function(){var config=this.config,shouldShow=!0;return this.hasType("donut")?shouldShow=config.donut_label_show:this.hasType("pie")&&(shouldShow=config.pie_label_show),shouldShow},c3_chart_internal_fn.meetsArcLabelThreshold=function(ratio){var config=this.config;return(this.hasType("donut")?config.donut_label_threshold:config.pie_label_threshold)<=ratio},c3_chart_internal_fn.getArcLabelFormat=function(){var config=this.config,format=config.pie_label_format;return this.hasType("gauge"
)?format=config.gauge_label_format:this.hasType("donut")&&(format=config.donut_label_format),format},c3_chart_internal_fn.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},c3_chart_internal_fn.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},c3_chart_internal_fn.updateTargetsForArc=function(mainPieEnter){var $$=this,main=$$.main,classChartArc=$$.classChartArc.bind($$),classArcs=$$.classArcs.bind($$),classFocus=$$.classFocus.bind($$),mainPieEnter=main.select("."+CLASS.chartArcs).selectAll("."+CLASS.chartArc).data($$.pie(mainPieEnter)).attr("class",function(d){return classChartArc(d)+classFocus(d.data)}
).enter().append("g").attr("class",classChartArc);mainPieEnter.append("g").attr("class",classArcs),mainPieEnter.append("text").attr("dy",$$.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},c3_chart_internal_fn.initArc=function(){var $$=this;$$.arcs=$$.main.select("."+CLASS.chart).append("g").attr("class",CLASS.chartArcs).attr("transform",$$.getTranslate("arc")),$$.arcs.append("text").attr("class",CLASS.chartArcsTitle).style("text-anchor","middle").text($$.getArcTitle())},c3_chart_internal_fn.redrawArc=function(duration,durationForExit,withTransform){var mainArcLabelLine,index,$$=this,d3=$$.d3,
config=$$.config,main=$$.main,backgroundArc=$$.hasType("gauge"),mainArc=main.selectAll("."+CLASS.arcs).selectAll("."+CLASS.arc).data($$.arcData.bind($$));mainArc.enter().append("path").attr("class",$$.classArc.bind($$)).style("fill",function(d){return $$.color(d.data)}).style("cursor",function(d){return config.interaction_enabled&&config.data_selection_isselectable(d)?"pointer":null}).each(function(d){$$.isGaugeType(d.data)&&(d.startAngle=d.endAngle=config.gauge_startingAngle),this._current=d}),backgroundArc&&((mainArcLabelLine=main.selectAll("."+CLASS.arcs).selectAll("."+CLASS.arcLabelLine).data($$.arcData.bind($$))).enter().append("rect").attr("class",
function(d){return CLASS.arcLabelLine+" "+CLASS.target+" "+CLASS.target+"-"+d.data.id}),1===$$.filterTargetsToShow($$.data.targets).length?mainArcLabelLine.style("display","none"):mainArcLabelLine.style("fill",function(d){return 0<config.color_pattern.length?$$.levelColor(d.data.values[0].value):$$.color(d.data)}).style("display",config.gauge_labelLine_show?"":"none").each(function(arcInnerRadius){var innerLineLength,lineAngle,linePositioningAngle,lineLength=0,x=0,y=0,transform="";$$.hiddenTargetIds.indexOf(arcInnerRadius.data.id)<0&&(linePositioningAngle=$$.updateAngle(arcInnerRadius),innerLineLength=$$.gaugeArcWidth/$$.filterTargetsToShow($$.data.targets
).length*(linePositioningAngle.index+1),linePositioningAngle=(lineAngle=linePositioningAngle.endAngle-Math.PI/2)-(0==(arcInnerRadius=$$.radius-innerLineLength)?0:1/arcInnerRadius),lineLength=$$.radiusExpanded-$$.radius+innerLineLength,x=Math.cos(linePositioningAngle)*arcInnerRadius,y=Math.sin(linePositioningAngle)*arcInnerRadius,transform="rotate("+180*lineAngle/Math.PI+", "+x+", "+y+")"),d3.select(this).attr({x:x,y:y,width:lineLength,height:2,transform:transform}).style("stroke-dasharray","0, "+(lineLength+2)+", 0")})),mainArc.attr("transform",function(d){return!$$.isGaugeType(d.data)&&withTransform?"scale(0)":""}).on("mouseover",
config.interaction_enabled?function(arcData){var updated;$$.transiting||(updated=$$.updateAngle(arcData))&&(arcData=$$.convertToArcData(updated),$$.expandArc(updated.data.id),$$.api.focus(updated.data.id),$$.toggleFocusLegend(updated.data.id,!0),$$.config.data_onmouseover(arcData,this))}:null).on("mousemove",config.interaction_enabled?function(selectedData){selectedData=$$.updateAngle(selectedData);selectedData&&(selectedData=[$$.convertToArcData(selectedData)],$$.showTooltip(selectedData,this))}:null).on("mouseout",config.interaction_enabled?function(arcData){var updated;$$.transiting||(updated=$$.updateAngle(arcData))&&(arcData=$$.convertToArcData(updated)
,$$.unexpandArc(updated.data.id),$$.api.revert(),$$.revertLegend(),$$.hideTooltip(),$$.config.data_onmouseout(arcData,this))}:null).on("click",config.interaction_enabled?function(arcData,i){arcData=$$.updateAngle(arcData);arcData&&(arcData=$$.convertToArcData(arcData),$$.toggleShape&&$$.toggleShape(this,arcData,i),$$.config.data_onclick.call($$.api,arcData,this))}:null).each(function(){$$.transiting=!0}).transition().duration(duration).attrTween("d",function(d){var interpolate,updated=$$.updateAngle(d);return updated?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle)
,interpolate=d3.interpolate(this._current,updated),this._current=interpolate(0),function(interpolated){interpolated=interpolate(interpolated);return interpolated.data=d.data,$$.getArc(interpolated,!0)}):function(){return"M 0 0"}}).attr("transform",withTransform?"scale(1)":"").style("fill",function(d){return $$.levelColor?$$.levelColor(d.data.values[0].value):$$.color(d.data.id)}).call($$.endall,function(){$$.transiting=!1}),mainArc.exit().transition().duration(durationForExit).style("opacity",0).remove(),main.selectAll("."+CLASS.chartArc).select("text").style("opacity",0).attr("class",function(d){return $$.isGaugeType(d.data)?CLASS.gaugeValue:""}).text(
$$.textForArcLabel.bind($$)).attr("transform",$$.transformForArcLabel.bind($$)).style("font-size",function(d){return $$.isGaugeType(d.data)&&1===$$.filterTargetsToShow($$.data.targets).length?Math.round($$.radius/5)+"px":""}).transition().duration(duration).style("opacity",function(d){return $$.isTargetToShow(d.data.id)&&$$.isArcType(d.data)?1:0}),main.select("."+CLASS.chartArcsTitle).style("opacity",$$.hasType("donut")||backgroundArc?1:0),backgroundArc&&(index=0,(backgroundArc=$$.arcs.select("g."+CLASS.chartArcsBackground).selectAll("path."+CLASS.chartArcsBackground).data($$.data.targets)).enter().append("path"),backgroundArc.attr("class",function(d,i){
return CLASS.chartArcsBackground+" "+CLASS.chartArcsBackground+"-"+i}).attr("d",function(d){if(0<=$$.hiddenTargetIds.indexOf(d.id))return"M 0 0";d={data:[{value:config.gauge_max}],startAngle:config.gauge_startingAngle,endAngle:-1*config.gauge_startingAngle*(config.gauge_fullCircle?Math.PI:1),index:index++};return $$.getArc(d,!0,!0)}),backgroundArc.exit().remove(),$$.arcs.select("."+CLASS.chartArcsGaugeUnit).attr("dy",".75em").text(config.gauge_label_show?config.gauge_units:""),$$.arcs.select("."+CLASS.chartArcsGaugeMin).attr("dx",-1*($$.innerRadius+($$.radius-$$.innerRadius)/(config.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(
config.gauge_label_show?$$.textForGaugeMinMax(config.gauge_min,!1):""),$$.arcs.select("."+CLASS.chartArcsGaugeMax).attr("dx",$$.innerRadius+($$.radius-$$.innerRadius)/(config.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(config.gauge_label_show?$$.textForGaugeMinMax(config.gauge_max,!0):""))},c3_chart_internal_fn.initGauge=function(){var arcs=this.arcs;this.hasType("gauge")&&(arcs.append("g").attr("class",CLASS.chartArcsBackground),arcs.append("text").attr("class",CLASS.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),arcs.append("text").attr("class",CLASS.chartArcsGaugeMin).style("text-anchor","middle").style(
"pointer-events","none"),arcs.append("text").attr("class",CLASS.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},c3_chart_internal_fn.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},c3_chart_internal_fn.hasCaches=function(ids){for(var i=0;i<ids.length;i++)if(!(ids[i]in this.cache))return!1;return!0},c3_chart_internal_fn.addCache=function(id,target){this.cache[id]=this.cloneTarget(target)},c3_chart_internal_fn.getCaches=function(ids){for(var targets=[],i=0;i<ids.length;i++)ids[i]in this.cache&&targets.push(this.cloneTarget(this.cache[ids[i]]));return targets},c3_chart_internal_fn.categoryName=function(
i){var config=this.config;return i<config.axis_x_categories.length?config.axis_x_categories[i]:i},c3_chart_internal_fn.generateClass=function(prefix,targetId){return" "+prefix+" "+prefix+this.getTargetSelectorSuffix(targetId)},c3_chart_internal_fn.classText=function(d){return this.generateClass(CLASS.text,d.index)},c3_chart_internal_fn.classTexts=function(d){return this.generateClass(CLASS.texts,d.id)},c3_chart_internal_fn.classShape=function(d){return this.generateClass(CLASS.shape,d.index)},c3_chart_internal_fn.classShapes=function(d){return this.generateClass(CLASS.shapes,d.id)},c3_chart_internal_fn.classLine=function(d){return this.classShape(d
)+this.generateClass(CLASS.line,d.id)},c3_chart_internal_fn.classLines=function(d){return this.classShapes(d)+this.generateClass(CLASS.lines,d.id)},c3_chart_internal_fn.classCircle=function(d){return this.classShape(d)+this.generateClass(CLASS.circle,d.index)},c3_chart_internal_fn.classCircles=function(d){return this.classShapes(d)+this.generateClass(CLASS.circles,d.id)},c3_chart_internal_fn.classBar=function(d){return this.classShape(d)+this.generateClass(CLASS.bar,d.index)},c3_chart_internal_fn.classBars=function(d){return this.classShapes(d)+this.generateClass(CLASS.bars,d.id)},c3_chart_internal_fn.classArc=function(d){return this.classShape(d.data
)+this.generateClass(CLASS.arc,d.data.id)},c3_chart_internal_fn.classArcs=function(d){return this.classShapes(d.data)+this.generateClass(CLASS.arcs,d.data.id)},c3_chart_internal_fn.classArea=function(d){return this.classShape(d)+this.generateClass(CLASS.area,d.id)},c3_chart_internal_fn.classAreas=function(d){return this.classShapes(d)+this.generateClass(CLASS.areas,d.id)},c3_chart_internal_fn.classRegion=function(d,i){return this.generateClass(CLASS.region,i)+" "+("class"in d?d.class:"")},c3_chart_internal_fn.classEvent=function(d){return this.generateClass(CLASS.eventRect,d.index)},c3_chart_internal_fn.classTarget=function(id){
var additionalClass=this.config.data_classes[id],additionalClass=additionalClass?" "+CLASS.target+"-"+additionalClass:"";return this.generateClass(CLASS.target,id)+additionalClass},c3_chart_internal_fn.classFocus=function(d){return this.classFocused(d)+this.classDefocused(d)},c3_chart_internal_fn.classFocused=function(d){return" "+(0<=this.focusedTargetIds.indexOf(d.id)?CLASS.focused:"")},c3_chart_internal_fn.classDefocused=function(d){return" "+(0<=this.defocusedTargetIds.indexOf(d.id)?CLASS.defocused:"")},c3_chart_internal_fn.classChartText=function(d){return CLASS.chartText+this.classTarget(d.id)},c3_chart_internal_fn.classChartLine=function(d){
return CLASS.chartLine+this.classTarget(d.id)},c3_chart_internal_fn.classChartBar=function(d){return CLASS.chartBar+this.classTarget(d.id)},c3_chart_internal_fn.classChartArc=function(d){return CLASS.chartArc+this.classTarget(d.data.id)},c3_chart_internal_fn.getTargetSelectorSuffix=function(targetId){return targetId||0===targetId?("-"+targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},c3_chart_internal_fn.selectorTarget=function(id,prefix){return(prefix||"")+"."+CLASS.target+this.getTargetSelectorSuffix(id)},c3_chart_internal_fn.selectorTargets=function(ids,prefix){var $$=this;return(ids=ids||[]).length?ids.map(function(id){
return $$.selectorTarget(id,prefix)}):null},c3_chart_internal_fn.selectorLegend=function(id){return"."+CLASS.legendItem+this.getTargetSelectorSuffix(id)},c3_chart_internal_fn.selectorLegends=function(ids){var $$=this;return ids&&ids.length?ids.map(function(id){return $$.selectorLegend(id)}):null},c3_chart_internal_fn.getClipPath=function(id){return"url("+(0<=window.navigator.appVersion.toLowerCase().indexOf("msie 9.")?"":document.URL.split("#")[0])+"#"+id+")"},c3_chart_internal_fn.appendClip=function(parent,id){return parent.append("clipPath").attr("id",id).append("rect")},c3_chart_internal_fn.getAxisClipX=function(forHorizontal){var left=Math.max(30,
this.margin.left);return forHorizontal?-(1+left):-(left-1)},c3_chart_internal_fn.getAxisClipY=function(forHorizontal){return forHorizontal?-20:-this.margin.top},c3_chart_internal_fn.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},c3_chart_internal_fn.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},c3_chart_internal_fn.getYAxisClipX=function(){return this.config.axis_y_inner?-1:this.getAxisClipX(this.config.axis_rotated)},c3_chart_internal_fn.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},c3_chart_internal_fn.getAxisClipWidth=function(forHorizontal){var left=Math.max(30,
this.margin.left),right=Math.max(30,this.margin.right);return forHorizontal?this.width+2+left+right:this.margin.left+20},c3_chart_internal_fn.getAxisClipHeight=function(forHorizontal){return(forHorizontal?this.margin.bottom:this.margin.top+this.height)+20},c3_chart_internal_fn.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},c3_chart_internal_fn.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},c3_chart_internal_fn.getYAxisClipWidth=function(){return this.getAxisClipWidth(this.config.axis_rotated)+(this.config.axis_y_inner?20:0)},c3_chart_internal_fn.getYAxisClipHeight=function(){
return this.getAxisClipHeight(this.config.axis_rotated)},c3_chart_internal_fn.generateColor=function(){var config=this.config,d3=this.d3,colors=config.data_colors,pattern=notEmpty(config.color_pattern)?config.color_pattern:d3.scale.category10().range(),callback=config.data_color,ids=[];return function(d){var color,id=d.id||d.data&&d.data.id||d;return colors[id]instanceof Function?color=colors[id](d):colors[id]?color=colors[id]:(ids.indexOf(id)<0&&ids.push(id),color=pattern[ids.indexOf(id)%pattern.length],colors[id]=color),callback instanceof Function?callback(color,d):color}},c3_chart_internal_fn.generateLevelColor=function(){var config=this.config,
colors=config.color_pattern,threshold=config.color_threshold,asValue="value"===threshold.unit,values=threshold.values&&threshold.values.length?threshold.values:[],max=threshold.max||100;return notEmpty(config.color_threshold)?function(value){for(var color=colors[colors.length-1],i=0;i<values.length;i++)if((asValue?value:100*value/max)<values[i]){color=colors[i];break}return color}:null},c3_chart_internal_fn.getDefaultConfig=function(){var config={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,
zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(id){return id},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},
data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,
legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_multilineMax:0,
axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_inner:void 0,axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},
axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,
pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_labelLine_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,
tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(d,defaultTitleFormat,defaultValueFormat,color){return this.getTooltipContent?this.getTooltipContent(d,defaultTitleFormat,defaultValueFormat,color):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(key){config[key]=this.additionalConfig[key]},this),config},c3_chart_internal_fn.additionalConfig={},c3_chart_internal_fn.loadConfig=function(
config){var target,keys,read,this_config=this.config;Object.keys(this_config).forEach(function(key){target=config,keys=key.split("_"),read=function find(){var key=keys.shift();return key&&target&&"object"===(void 0===target?"undefined":_typeof(target))&&key in target?(target=target[key],find()):key?void 0:target}(),isDefined(read)&&(this_config[key]=read)})},c3_chart_internal_fn.convertUrlToData=function(url,mimeType,headers,keys,done){var $$=this,type=mimeType||"csv",req=$$.d3.xhr(url);headers&&Object.keys(headers).forEach(function(header){req.header(header,headers[header])}),req.get(function(error,data){var d=data.response||data.responseText;if(!data
)throw new Error(error.responseURL+" "+error.status+" ("+error.statusText+")");d="json"===type?$$.convertJsonToData(JSON.parse(d),keys):"tsv"===type?$$.convertTsvToData(d):$$.convertCsvToData(d),done.call($$,d)})},c3_chart_internal_fn.convertXsvToData=function(xsv,parser){var d,rows=parser.parseRows(xsv);return 1===rows.length?(d=[{}],rows[0].forEach(function(id){d[0][id]=null})):d=parser.parse(xsv),d},c3_chart_internal_fn.convertCsvToData=function(csv){return this.convertXsvToData(csv,this.d3.csv)},c3_chart_internal_fn.convertTsvToData=function(tsv){return this.convertXsvToData(tsv,this.d3.tsv)},c3_chart_internal_fn.convertJsonToData=function(json,data){
var targetKeys,$$=this,new_rows=[],data=data?(data.x?(targetKeys=data.value.concat(data.x),$$.config.data_x=data.x):targetKeys=data.value,new_rows.push(targetKeys),json.forEach(function(o){var new_row=[];targetKeys.forEach(function(v){v=$$.findValueInJson(o,v);isUndefined(v)&&(v=null),new_row.push(v)}),new_rows.push(new_row)}),$$.convertRowsToData(new_rows)):(Object.keys(json).forEach(function(key){new_rows.push([key].concat(json[key]))}),$$.convertColumnsToData(new_rows));return data},c3_chart_internal_fn.findValueInJson=function(object,path){for(var pathArray=(path=(path=path.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),
i=0;i<pathArray.length;++i){var k=pathArray[i];if(!(k in object))return;object=object[k]}return object},c3_chart_internal_fn.convertRowsToData=function(rows){for(var newRows=[],keys=rows[0],i=1;i<rows.length;i++){for(var newRow={},j=0;j<rows[i].length;j++){if(isUndefined(rows[i][j]))throw new Error("Source data is missing a component at ("+i+","+j+")!");newRow[keys[j]]=rows[i][j]}newRows.push(newRow)}return newRows},c3_chart_internal_fn.convertColumnsToData=function(columns){for(var newRows=[],i=0;i<columns.length;i++)for(var key=columns[i][0],j=1;j<columns[i].length;j++){if(isUndefined(newRows[j-1])&&(newRows[j-1]={}),isUndefined(columns[i][j])
)throw new Error("Source data is missing a component at ("+i+","+j+")!");newRows[j-1][key]=columns[i][j]}return newRows},c3_chart_internal_fn.convertDataToTargets=function(data,appendXs){var $$=this,config=$$.config,targets=$$.d3.keys(data[0]).filter($$.isNotX,$$),xs=$$.d3.keys(data[0]).filter($$.isX,$$);return targets.forEach(function(id){var xKey=$$.getXKey(id);$$.isCustomX()||$$.isTimeSeries()?0<=xs.indexOf(xKey)?$$.data.xs[id]=(appendXs&&$$.data.xs[id]?$$.data.xs[id]:[]).concat(data.map(function(d){return d[xKey]}).filter(isValue).map(function(rawX,i){return $$.generateTargetX(rawX,id,i)})):config.data_x?$$.data.xs[id]=$$.getOtherTargetXs():notEmpty(
config.data_xs)&&($$.data.xs[id]=$$.getXValuesOfXKey(xKey,$$.data.targets)):$$.data.xs[id]=data.map(function(d,i){return i})}),targets.forEach(function(id){if(!$$.data.xs[id])throw new Error('x is not defined for id = "'+id+'".')}),(targets=targets.map(function(id,index){var convertedId=config.data_idConverter(id);return{id:convertedId,id_org:id,values:data.map(function(d,i){var x,rawX=d[$$.getXKey(id)],value=null===d[id]||isNaN(d[id])?null:+d[id];return $$.isCustomX()&&$$.isCategorized()&&!isUndefined(rawX)?(0===index&&0===i&&(config.axis_x_categories=[]),-1===(x=config.axis_x_categories.indexOf(rawX))&&(x=config.axis_x_categories.length,
config.axis_x_categories.push(rawX))):x=$$.generateTargetX(rawX,id,i),(isUndefined(d[id])||$$.data.xs[id].length<=i)&&(x=void 0),{x:x,value:value,id:convertedId}}).filter(function(v){return isDefined(v.x)})}})).forEach(function(t){var i;config.data_xSort&&(t.values=t.values.sort(function(v1,v2){return(v1.x||0===v1.x?v1.x:1/0)-(v2.x||0===v2.x?v2.x:1/0)})),i=0,t.values.forEach(function(v){v.index=i++}),$$.data.xs[t.id].sort(function(v1,v2){return v1-v2})}),$$.hasNegativeValue=$$.hasNegativeValueInTargets(targets),$$.hasPositiveValue=$$.hasPositiveValueInTargets(targets),config.data_type&&$$.setTargetType($$.mapToIds(targets).filter(function(id){return!(
id in config.data_types)}),config.data_type),targets.forEach(function(d){$$.addCache(d.id_org,d)}),targets},c3_chart_internal_fn.isX=function(key){var config=this.config;return config.data_x&&key===config.data_x||notEmpty(config.data_xs)&&hasValue(config.data_xs,key)},c3_chart_internal_fn.isNotX=function(key){return!this.isX(key)},c3_chart_internal_fn.getXKey=function(id){var config=this.config;return config.data_x||(notEmpty(config.data_xs)?config.data_xs[id]:null)},c3_chart_internal_fn.getXValuesOfXKey=function(key,targets){var xValues,$$=this;return(targets&&notEmpty(targets)?$$.mapToIds(targets):[]).forEach(function(id){$$.getXKey(id)===key&&(
xValues=$$.data.xs[id])}),xValues},c3_chart_internal_fn.getIndexByX=function(data){data=this.filterByX(this.data.targets,data);return data.length?data[0].index:null},c3_chart_internal_fn.getXValue=function(id,i){return id in this.data.xs&&this.data.xs[id]&&isValue(this.data.xs[id][i])?this.data.xs[id][i]:i},c3_chart_internal_fn.getOtherTargetXs=function(){var idsForX=Object.keys(this.data.xs);return idsForX.length?this.data.xs[idsForX[0]]:null},c3_chart_internal_fn.getOtherTargetX=function(index){var xs=this.getOtherTargetXs();return xs&&index<xs.length?xs[index]:null},c3_chart_internal_fn.addXs=function(xs){var $$=this;Object.keys(xs).forEach(function(id){
$$.config.data_xs[id]=xs[id]})},c3_chart_internal_fn.hasMultipleX=function(xs){return 1<this.d3.set(Object.keys(xs).map(function(id){return xs[id]})).size()},c3_chart_internal_fn.isMultipleX=function(){return notEmpty(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},c3_chart_internal_fn.addName=function(data){var name;return data&&(name=this.config.data_names[data.id],data.name=void 0!==name?name:data.id),data},c3_chart_internal_fn.getValueOnIndex=function(valueOnIndex,index){valueOnIndex=valueOnIndex.filter(function(v){return v.index===index});return valueOnIndex.length?valueOnIndex[0]:null},
c3_chart_internal_fn.updateTargetX=function(targets,x){var $$=this;targets.forEach(function(t){t.values.forEach(function(v,i){v.x=$$.generateTargetX(x[i],t.id,i)}),$$.data.xs[t.id]=x})},c3_chart_internal_fn.updateTargetXs=function(targets,xs){var $$=this;targets.forEach(function(t){xs[t.id]&&$$.updateTargetX([t],xs[t.id])})},c3_chart_internal_fn.generateTargetX=function(rawX,id,x){var $$=this,x=$$.isTimeSeries()?rawX?$$.parseDate(rawX):$$.parseDate($$.getXValue(id,x)):$$.isCustomX()&&!$$.isCategorized()?isValue(rawX)?+rawX:$$.getXValue(id,x):x;return x},c3_chart_internal_fn.cloneTarget=function(target){return{id:target.id,id_org:target.id_org,
values:target.values.map(function(d){return{x:d.x,value:d.value,id:d.id}})}},c3_chart_internal_fn.updateXs=function(){var $$=this;$$.data.targets.length&&($$.xs=[],$$.data.targets[0].values.forEach(function(v){$$.xs[v.index]=v.x}))},c3_chart_internal_fn.getPrevX=function(x){x=this.xs[x-1];return void 0!==x?x:null},c3_chart_internal_fn.getNextX=function(x){x=this.xs[x+1];return void 0!==x?x:null},c3_chart_internal_fn.getMaxDataCount=function(){return this.d3.max(this.data.targets,function(t){return t.values.length})},c3_chart_internal_fn.getMaxDataCountTarget=function(targets){var maxTarget,length=targets.length,max=0;return 1<length?targets.forEach(function(
t){t.values.length>max&&(max=(maxTarget=t).values.length)}):maxTarget=length?targets[0]:null,maxTarget},c3_chart_internal_fn.getEdgeX=function(targets){return targets.length?[this.d3.min(targets,function(t){return t.values[0].x}),this.d3.max(targets,function(t){return t.values[t.values.length-1].x})]:[0,0]},c3_chart_internal_fn.mapToIds=function(targets){return targets.map(function(d){return d.id})},c3_chart_internal_fn.mapToTargetIds=function(ids){return ids?[].concat(ids):this.mapToIds(this.data.targets)},c3_chart_internal_fn.hasTarget=function(targets,id){for(var ids=this.mapToIds(targets),i=0;i<ids.length;i++)if(ids[i]===id)return!0;return!1},
c3_chart_internal_fn.isTargetToShow=function(targetId){return this.hiddenTargetIds.indexOf(targetId)<0},c3_chart_internal_fn.isLegendToShow=function(targetId){return this.hiddenLegendIds.indexOf(targetId)<0},c3_chart_internal_fn.filterTargetsToShow=function(targets){var $$=this;return targets.filter(function(t){return $$.isTargetToShow(t.id)})},c3_chart_internal_fn.mapTargetsToUniqueXs=function(xs){xs=this.d3.set(this.d3.merge(xs.map(function(t){return t.values.map(function(v){return+v.x})}))).values();return(xs=this.isTimeSeries()?xs.map(function(x){return new Date(+x)}):xs.map(function(x){return+x})).sort(function(a,b){return a<b?-1:b<a?1:b<=a?0:NaN})},
c3_chart_internal_fn.addHiddenTargetIds=function(targetIds){targetIds=targetIds instanceof Array?targetIds:new Array(targetIds);for(var i=0;i<targetIds.length;i++)this.hiddenTargetIds.indexOf(targetIds[i])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(targetIds[i]))},c3_chart_internal_fn.removeHiddenTargetIds=function(targetIds){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(id){return targetIds.indexOf(id)<0})},c3_chart_internal_fn.addHiddenLegendIds=function(targetIds){targetIds=targetIds instanceof Array?targetIds:new Array(targetIds);for(var i=0;i<targetIds.length;i++)this.hiddenLegendIds.indexOf(targetIds[i])<0&&(
this.hiddenLegendIds=this.hiddenLegendIds.concat(targetIds[i]))},c3_chart_internal_fn.removeHiddenLegendIds=function(targetIds){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(id){return targetIds.indexOf(id)<0})},c3_chart_internal_fn.getValuesAsIdKeyed=function(targets){var ys={};return targets.forEach(function(t){ys[t.id]=[],t.values.forEach(function(v){ys[t.id].push(v.value)})}),ys},c3_chart_internal_fn.checkValueInTargets=function(targets,checker){for(var j,values,ids=Object.keys(targets),i=0;i<ids.length;i++)for(values=targets[ids[i]].values,j=0;j<values.length;j++)if(checker(values[j].value))return!0;return!1},
c3_chart_internal_fn.hasNegativeValueInTargets=function(targets){return this.checkValueInTargets(targets,function(v){return v<0})},c3_chart_internal_fn.hasPositiveValueInTargets=function(targets){return this.checkValueInTargets(targets,function(v){return 0<v})},c3_chart_internal_fn.isOrderDesc=function(){var config=this.config;return"string"==typeof config.data_order&&"desc"===config.data_order.toLowerCase()},c3_chart_internal_fn.isOrderAsc=function(){var config=this.config;return"string"==typeof config.data_order&&"asc"===config.data_order.toLowerCase()},c3_chart_internal_fn.getOrderFunction=function(){var config=this.config,orderAsc=this.isOrderAsc(),
orderDesc=this.isOrderDesc();if(orderAsc||orderDesc)return function(t1Sum,t2){var t2Sum=function(p,c){return p+Math.abs(c.value)},t1Sum=t1Sum.values.reduce(t2Sum,0),t2Sum=t2.values.reduce(t2Sum,0);return orderDesc?t2Sum-t1Sum:t1Sum-t2Sum};if(isFunction(config.data_order))return config.data_order;if(isArray(config.data_order)){var order=config.data_order;return function(t1,t2){return order.indexOf(t1.id)-order.indexOf(t2.id)}}},c3_chart_internal_fn.orderTargets=function(targets){var fct=this.getOrderFunction();return fct&&(targets.sort(fct),(this.isOrderAsc()||this.isOrderDesc())&&targets.reverse()),targets},c3_chart_internal_fn.filterByX=function(targets,x){
return this.d3.merge(targets.map(function(t){return t.values})).filter(function(v){return v.x-x==0})},c3_chart_internal_fn.filterRemoveNull=function(data){return data.filter(function(d){return isValue(d.value)})},c3_chart_internal_fn.filterByXDomain=function(targets,xDomain){return targets.map(function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter(function(v){return xDomain[0]<=v.x&&v.x<=xDomain[1]})}})},c3_chart_internal_fn.hasDataLabel=function(){var config=this.config;return!("boolean"!=typeof config.data_labels||!config.data_labels)||!("object"!==_typeof(config.data_labels)||!notEmpty(config.data_labels))},
c3_chart_internal_fn.getDataLabelLength=function(min,max,key){var $$=this,lengths=[0,0];return $$.selectChart.select("svg").selectAll(".dummy").data([min,max]).enter().append("text").text(function(d){return $$.dataLabelFormat(d.id)(d)}).each(function(d,i){lengths[i]=1.3*this.getBoundingClientRect()[key]}).remove(),lengths},c3_chart_internal_fn.isNoneArc=function(d){return this.hasTarget(this.data.targets,d.id)},c3_chart_internal_fn.isArc=function(d){return"data"in d&&this.hasTarget(this.data.targets,d.data.id)},c3_chart_internal_fn.findSameXOfValues=function(values,index){for(var targetX=values[index].x,sames=[],i=index-1;0<=i&&targetX===values[i].x;i--
)sames.push(values[i]);for(i=index;i<values.length&&targetX===values[i].x;i++)sames.push(values[i]);return sames},c3_chart_internal_fn.findClosestFromTargets=function(candidates,pos){var $$=this,candidates=candidates.map(function(target){return $$.findClosest(target.values,pos)});return $$.findClosest(candidates,pos)},c3_chart_internal_fn.findClosest=function(values,pos){var closest,$$=this,minDist=$$.config.point_sensitivity;return values.filter(function(v){return v&&$$.isBarType(v.id)}).forEach(function(v){var shape=$$.main.select("."+CLASS.bars+$$.getTargetSelectorSuffix(v.id)+" ."+CLASS.bar+"-"+v.index).node();!closest&&$$.isWithinBar(shape)&&(closest=v)
}),values.filter(function(v){return v&&!$$.isBarType(v.id)}).forEach(function(v){var d=$$.dist(v,pos);d<minDist&&(minDist=d,closest=v)}),closest},c3_chart_internal_fn.dist=function(x,pos){var y=this.config,xIndex=y.axis_rotated?1:0,yIndex=y.axis_rotated?0:1,y=this.circleY(x,x.index),x=this.x(x.x);return Math.sqrt(Math.pow(x-pos[xIndex],2)+Math.pow(y-pos[yIndex],2))},c3_chart_internal_fn.convertValuesToStep=function(values){var i,converted=[].concat(values);if(!this.isCategorized())return values;for(i=values.length+1;0<i;i--)converted[i]=converted[i-1];return converted[0]={x:converted[0].x-1,value:converted[0].value,id:converted[0].id},
converted[values.length+1]={x:converted[values.length].x+1,value:converted[values.length].value,id:converted[values.length].id},converted},c3_chart_internal_fn.updateDataAttributes=function(name,attrs){var current=this.config["data_"+name];return void 0===attrs||(Object.keys(attrs).forEach(function(id){current[id]=attrs[id]}),this.redraw({withLegend:!0})),current},c3_chart_internal_fn.load=function(targets,args){var $$=this;targets&&(args.filter&&(targets=targets.filter(args.filter)),(args.type||args.types)&&targets.forEach(function(t){var type=args.types&&args.types[t.id]?args.types[t.id]:args.type;$$.setTargetType(t.id,type)}),$$.data.targets.forEach(
function(d){for(var i=0;i<targets.length;i++)if(d.id===targets[i].id){d.values=targets[i].values,targets.splice(i,1);break}}),$$.data.targets=$$.data.targets.concat(targets)),$$.updateTargets($$.data.targets),$$.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),args.done&&args.done()},c3_chart_internal_fn.loadFromArgs=function(args){var $$=this;args.data?$$.load($$.convertDataToTargets(args.data),args):args.url?$$.convertUrlToData(args.url,args.mimeType,args.headers,args.keys,function(data){$$.load($$.convertDataToTargets(data),args)}):args.json?$$.load($$.convertDataToTargets($$.convertJsonToData(args.json,args.keys)),args
):args.rows?$$.load($$.convertDataToTargets($$.convertRowsToData(args.rows)),args):args.columns?$$.load($$.convertDataToTargets($$.convertColumnsToData(args.columns)),args):$$.load(null,args)},c3_chart_internal_fn.unload=function(targetIds,done){var $$=this;done=done||function(){},(targetIds=targetIds.filter(function(id){return $$.hasTarget($$.data.targets,id)}))&&0!==targetIds.length?($$.svg.selectAll(targetIds.map(function(id){return $$.selectorTarget(id)})).transition().style("opacity",0).remove().call($$.endall,done),targetIds.forEach(function(id){$$.withoutFadeIn[id]=!1,$$.legend&&$$.legend.selectAll("."+CLASS.legendItem+$$.getTargetSelectorSuffix(id)
).remove(),$$.data.targets=$$.data.targets.filter(function(t){return t.id!==id})})):done()},c3_chart_internal_fn.getYDomainMin=function(targets){var j,k,baseId,idsInGroup,id,hasNegativeValue,$$=this,config=$$.config,ids=$$.mapToIds(targets),ys=$$.getValuesAsIdKeyed(targets);if(0<config.data_groups.length)for(hasNegativeValue=$$.hasNegativeValueInTargets(targets),j=0;j<config.data_groups.length;j++)if(0!==(idsInGroup=config.data_groups[j].filter(function(id){return 0<=ids.indexOf(id)})).length)for(baseId=idsInGroup[0],hasNegativeValue&&ys[baseId]&&ys[baseId].forEach(function(v,i){ys[baseId][i]=v<0?v:0}),k=1;k<idsInGroup.length;k++)id=idsInGroup[k],
ys[id]&&ys[id].forEach(function(v,i){$$.axis.getId(id)!==$$.axis.getId(baseId)||!ys[baseId]||hasNegativeValue&&0<+v||(ys[baseId][i]+=+v)});return $$.d3.min(Object.keys(ys).map(function(key){return $$.d3.min(ys[key])}))},c3_chart_internal_fn.getYDomainMax=function(targets){var j,k,baseId,idsInGroup,id,hasPositiveValue,$$=this,config=$$.config,ids=$$.mapToIds(targets),ys=$$.getValuesAsIdKeyed(targets);if(0<config.data_groups.length)for(hasPositiveValue=$$.hasPositiveValueInTargets(targets),j=0;j<config.data_groups.length;j++)if(0!==(idsInGroup=config.data_groups[j].filter(function(id){return 0<=ids.indexOf(id)})).length)for(baseId=idsInGroup[0],
hasPositiveValue&&ys[baseId]&&ys[baseId].forEach(function(v,i){ys[baseId][i]=0<v?v:0}),k=1;k<idsInGroup.length;k++)id=idsInGroup[k],ys[id]&&ys[id].forEach(function(v,i){$$.axis.getId(id)!==$$.axis.getId(baseId)||!ys[baseId]||hasPositiveValue&&+v<0||(ys[baseId][i]+=+v)});return $$.d3.max(Object.keys(ys).map(function(key){return $$.d3.max(ys[key])}))},c3_chart_internal_fn.getYDomain=function(isAllPositive,axisId,isAllNegative){var lengths,$$=this,config=$$.config,domainLength=isAllPositive.filter(function(t){return $$.axis.getId(t.id)===axisId}),padding_bottom=isAllNegative?$$.filterByXDomain(domainLength,isAllNegative):domainLength,
domain="y2"===axisId?config.axis_y2_min:config.axis_y_min,yDomainAbs="y2"===axisId?config.axis_y2_max:config.axis_y_max,yDomainMin=$$.getYDomainMin(padding_bottom),yDomainMax=$$.getYDomainMax(padding_bottom),center="y2"===axisId?config.axis_y2_center:config.axis_y_center,isZeroBased=$$.hasType("bar",padding_bottom)&&config.bar_zerobased||$$.hasType("area",padding_bottom)&&config.area_zerobased,isInverted="y2"===axisId?config.axis_y2_inverted:config.axis_y_inverted,ratio=$$.hasDataLabel()&&config.axis_rotated,showVerticalDataLabel=$$.hasDataLabel()&&!config.axis_rotated,yDomainMin=isValue(domain)?domain:!isValue(yDomainAbs
)||yDomainMin<yDomainAbs?yDomainMin:yDomainAbs-10,yDomainMax=isValue(yDomainAbs)?yDomainAbs:!isValue(domain)||domain<yDomainMax?yDomainMax:domain+10;return 0===padding_bottom.length?("y2"===axisId?$$.y2:$$.y).domain():(isNaN(yDomainMin)&&(yDomainMin=0),isNaN(yDomainMax)&&(yDomainMax=yDomainMin),yDomainMin===yDomainMax&&(yDomainMin<0?yDomainMax=0:yDomainMin=0),isAllPositive=0<=yDomainMin&&0<=yDomainMax,isAllNegative=yDomainMin<=0&&yDomainMax<=0,(isValue(domain)&&isAllPositive||isValue(yDomainAbs)&&isAllNegative)&&(isZeroBased=!1),isZeroBased&&(isAllPositive&&(yDomainMin=0),isAllNegative&&(yDomainMax=0)),domain=padding_bottom=.1*(domainLength=Math.abs(
yDomainMax-yDomainMin)),void 0!==center&&(yDomainMax=center+(yDomainAbs=Math.max(Math.abs(yDomainMin),Math.abs(yDomainMax))),yDomainMin=center-yDomainAbs),ratio?(lengths=$$.getDataLabelLength(yDomainMin,yDomainMax,"width"),ratio=diffDomain($$.y.range()),domain+=domainLength*((ratio=[lengths[0]/ratio,lengths[1]/ratio])[1]/(1-ratio[0]-ratio[1])),padding_bottom+=domainLength*(ratio[0]/(1-ratio[0]-ratio[1]))):showVerticalDataLabel&&(lengths=$$.getDataLabelLength(yDomainMin,yDomainMax,"height"),domain+=$$.axis.convertPixelsToAxisPadding(lengths[1],domainLength),padding_bottom+=$$.axis.convertPixelsToAxisPadding(lengths[0],domainLength)),"y"===axisId&&notEmpty(
config.axis_y_padding)&&(domain=$$.axis.getPadding(config.axis_y_padding,"top",domain,domainLength),padding_bottom=$$.axis.getPadding(config.axis_y_padding,"bottom",padding_bottom,domainLength)),"y2"===axisId&&notEmpty(config.axis_y2_padding)&&(domain=$$.axis.getPadding(config.axis_y2_padding,"top",domain,domainLength),padding_bottom=$$.axis.getPadding(config.axis_y2_padding,"bottom",padding_bottom,domainLength)),isZeroBased&&(isAllPositive&&(padding_bottom=yDomainMin),isAllNegative&&(domain=-yDomainMax)),domain=[yDomainMin-padding_bottom,yDomainMax+domain],isInverted?domain.reverse():domain)},c3_chart_internal_fn.getXDomainMin=function(targets){var $$=this,
config=$$.config;return isDefined(config.axis_x_min)?$$.isTimeSeries()?this.parseDate(config.axis_x_min):config.axis_x_min:$$.d3.min(targets,function(t){return $$.d3.min(t.values,function(v){return v.x})})},c3_chart_internal_fn.getXDomainMax=function(targets){var $$=this,config=$$.config;return isDefined(config.axis_x_max)?$$.isTimeSeries()?this.parseDate(config.axis_x_max):config.axis_x_max:$$.d3.max(targets,function(t){return $$.d3.max(t.values,function(v){return v.x})})},c3_chart_internal_fn.getXDomainPadding=function(maxDataCount){var paddingLeft,paddingRight,config=this.config,padding=maxDataCount[1]-maxDataCount[0],padding=this.isCategorized(
)?0:this.hasType("bar")?1<(maxDataCount=this.getMaxDataCount())?padding/(maxDataCount-1)/2:.5:.01*padding;return"object"===_typeof(config.axis_x_padding)&&notEmpty(config.axis_x_padding)?(paddingLeft=isValue(config.axis_x_padding.left)?config.axis_x_padding.left:padding,paddingRight=isValue(config.axis_x_padding.right)?config.axis_x_padding.right:padding):paddingLeft=paddingRight="number"==typeof config.axis_x_padding?config.axis_x_padding:padding,{left:paddingLeft,right:paddingRight}},c3_chart_internal_fn.getXDomain=function(min){var $$=this,max=[$$.getXDomainMin(min),$$.getXDomainMax(min)],firstX=max[0],lastX=max[1],padding=$$.getXDomainPadding(max),min=0,
max=0;return firstX-lastX!=0||$$.isCategorized()||(lastX=$$.isTimeSeries()?(firstX=new Date(.5*firstX.getTime()),new Date(1.5*lastX.getTime())):(firstX=0===firstX?1:.5*firstX,0===lastX?-1:1.5*lastX)),!firstX&&0!==firstX||(min=$$.isTimeSeries()?new Date(firstX.getTime()-padding.left):firstX-padding.left),!lastX&&0!==lastX||(max=$$.isTimeSeries()?new Date(lastX.getTime()+padding.right):lastX+padding.right),[min,max]},c3_chart_internal_fn.updateXDomain=function(targets,withUpdateXDomain,withUpdateOrgXDomain,withTrim,domain){var $$=this,config=$$.config;return withUpdateOrgXDomain&&($$.x.domain(domain||$$.d3.extent($$.getXDomain(targets))),
$$.orgXDomain=$$.x.domain(),config.zoom_enabled&&$$.zoom.scale($$.x).updateScaleExtent(),$$.subX.domain($$.x.domain()),$$.brush&&$$.brush.scale($$.subX)),withUpdateXDomain&&($$.x.domain(domain||(!$$.brush||$$.brush.empty()?$$.orgXDomain:$$.brush.extent())),config.zoom_enabled&&$$.zoom.scale($$.x).updateScaleExtent()),withTrim&&$$.x.domain($$.trimXDomain($$.x.orgDomain())),$$.x.domain()},c3_chart_internal_fn.trimXDomain=function(domain){var max=this.getZoomDomain(),min=max[0],max=max[1];return domain[0]<=min&&(domain[1]=+domain[1]+(min-domain[0]),domain[0]=min),max<=domain[1]&&(domain[0]=+domain[0]-(domain[1]-max),domain[1]=max),domain},
c3_chart_internal_fn.drag=function(my){var sx,sy,mx,minX,maxX,minY,maxY,$$=this,config=$$.config,main=$$.main,d3=$$.d3;$$.hasArcType()||config.data_selection_enabled&&(config.zoom_enabled&&!$$.zoom.altDomain||config.data_selection_multiple&&(sx=$$.dragStart[0],sy=$$.dragStart[1],mx=my[0],my=my[1],minX=Math.min(sx,mx),maxX=Math.max(sx,mx),minY=config.data_selection_grouped?$$.margin.top:Math.min(sy,my),maxY=config.data_selection_grouped?$$.height:Math.max(sy,my),main.select("."+CLASS.dragarea).attr("x",minX).attr("y",minY).attr("width",maxX-minX).attr("height",maxY-minY),main.selectAll("."+CLASS.shapes).selectAll("."+CLASS.shape).filter(function(d){
return config.data_selection_isselectable(d)}).each(function(d,i){var _x,_y,_w,toggle,_h,shape=d3.select(this),isSelected=shape.classed(CLASS.SELECTED),isIncluded=shape.classed(CLASS.INCLUDED),isWithin=!1;if(shape.classed(CLASS.circle))_x=+shape.attr("cx"),_y=+shape.attr("cy"),toggle=$$.togglePoint,isWithin=minX<_x&&_x<maxX&&minY<_y&&_y<maxY;else{if(!shape.classed(CLASS.bar))return;_x=(_h=getPathBox(this)).x,_y=_h.y,_w=_h.width,_h=_h.height,toggle=$$.togglePath,isWithin=!(maxX<_x||_x+_w<minX||maxY<_y||_y+_h<minY)}isWithin^isIncluded&&(shape.classed(CLASS.INCLUDED,!isIncluded),shape.classed(CLASS.SELECTED,!isSelected),toggle.call($$,!isSelected,shape,d,i))}))
)},c3_chart_internal_fn.dragstart=function(mouse){var $$=this,config=$$.config;$$.hasArcType()||config.data_selection_enabled&&($$.dragStart=mouse,$$.main.select("."+CLASS.chart).append("rect").attr("class",CLASS.dragarea).style("opacity",.1),$$.dragging=!0)},c3_chart_internal_fn.dragend=function(){var $$=this,config=$$.config;$$.hasArcType()||config.data_selection_enabled&&($$.main.select("."+CLASS.dragarea).transition().duration(100).style("opacity",0).remove(),$$.main.selectAll("."+CLASS.shape).classed(CLASS.INCLUDED,!1),$$.dragging=!1)},c3_chart_internal_fn.getYFormat=function(forArc){var $$=this,formatForY=forArc&&!$$.hasType("gauge"
)?$$.defaultArcValueFormat:$$.yFormat,formatForY2=forArc&&!$$.hasType("gauge")?$$.defaultArcValueFormat:$$.y2Format;return function(v,ratio,id){return("y2"===$$.axis.getId(id)?formatForY2:formatForY).call($$,v,ratio)}},c3_chart_internal_fn.yFormat=function(v){var config=this.config;return(config.axis_y_tick_format||this.defaultValueFormat)(v)},c3_chart_internal_fn.y2Format=function(v){var config=this.config;return(config.axis_y2_tick_format||this.defaultValueFormat)(v)},c3_chart_internal_fn.defaultValueFormat=function(v){return isValue(v)?+v:""},c3_chart_internal_fn.defaultArcValueFormat=function(v,ratio){return(100*ratio).toFixed(1)+"%"},
c3_chart_internal_fn.dataLabelFormat=function(targetId){var data_labels=this.config.data_labels,format=function(v){return isValue(v)?+v:""},format="function"==typeof data_labels.format?data_labels.format:"object"===_typeof(data_labels.format)?data_labels.format[targetId]?!0===data_labels.format[targetId]?format:data_labels.format[targetId]:function(){return""}:format;return format},c3_chart_internal_fn.initGrid=function(){var $$=this,config=$$.config,d3=$$.d3;$$.grid=$$.main.append("g").attr("clip-path",$$.clipPathForGrid).attr("class",CLASS.grid),config.grid_x_show&&$$.grid.append("g").attr("class",CLASS.xgrids),config.grid_y_show&&$$.grid.append("g").attr(
"class",CLASS.ygrids),config.grid_focus_show&&$$.grid.append("g").attr("class",CLASS.xgridFocus).append("line").attr("class",CLASS.xgridFocus),$$.xgrid=d3.selectAll([]),config.grid_lines_front||$$.initGridLines()},c3_chart_internal_fn.initGridLines=function(){var $$=this,d3=$$.d3;$$.gridLines=$$.main.append("g").attr("clip-path",$$.clipPathForGrid).attr("class",CLASS.grid+" "+CLASS.gridLines),$$.gridLines.append("g").attr("class",CLASS.xgridLines),$$.gridLines.append("g").attr("class",CLASS.ygridLines),$$.xgridLines=d3.selectAll([])},c3_chart_internal_fn.updateXGrid=function(withoutUpdate){var $$=this,config=$$.config,d3=$$.d3,xgridData=$$.generateGridData(
config.grid_x_type,$$.x),tickOffset=$$.isCategorized()?$$.xAxis.tickOffset():0;$$.xgridAttr=config.axis_rotated?{x1:0,x2:$$.width,y1:function(d){return $$.x(d)-tickOffset},y2:function(d){return $$.x(d)-tickOffset}}:{x1:function(d){return $$.x(d)+tickOffset},x2:function(d){return $$.x(d)+tickOffset},y1:0,y2:$$.height},$$.xgrid=$$.main.select("."+CLASS.xgrids).selectAll("."+CLASS.xgrid).data(xgridData),$$.xgrid.enter().append("line").attr("class",CLASS.xgrid),withoutUpdate||$$.xgrid.attr($$.xgridAttr).style("opacity",function(){return+d3.select(this).attr(config.axis_rotated?"y1":"x1")===(config.axis_rotated?$$.height:0)?0:1}),$$.xgrid.exit().remove()},
c3_chart_internal_fn.updateYGrid=function(){var $$=this,config=$$.config,gridValues=$$.yAxis.tickValues()||$$.y.ticks(config.grid_y_ticks);$$.ygrid=$$.main.select("."+CLASS.ygrids).selectAll("."+CLASS.ygrid).data(gridValues),$$.ygrid.enter().append("line").attr("class",CLASS.ygrid),$$.ygrid.attr("x1",config.axis_rotated?$$.y:0).attr("x2",config.axis_rotated?$$.y:$$.width).attr("y1",config.axis_rotated?0:$$.y).attr("y2",config.axis_rotated?$$.height:$$.y),$$.ygrid.exit().remove(),$$.smoothLines($$.ygrid,"grid")},c3_chart_internal_fn.gridTextAnchor=function(d){return d.position||"end"},c3_chart_internal_fn.gridTextDx=function(d){
return"start"===d.position?4:"middle"===d.position?0:-4},c3_chart_internal_fn.xGridTextX=function(d){return"start"===d.position?-this.height:"middle"===d.position?-this.height/2:0},c3_chart_internal_fn.yGridTextX=function(d){return"start"===d.position?0:"middle"===d.position?this.width/2:this.width},c3_chart_internal_fn.updateGrid=function(duration){var xgridLine,$$=this,yv=$$.main,config=$$.config;$$.grid.style("visibility",$$.hasArcType()?"hidden":"visible"),yv.select("line."+CLASS.xgridFocus).style("visibility","hidden"),config.grid_x_show&&$$.updateXGrid(),$$.xgridLines=yv.select("."+CLASS.xgridLines).selectAll("."+CLASS.xgridLine).data(
config.grid_x_lines),(xgridLine=$$.xgridLines.enter().append("g").attr("class",function(d){return CLASS.xgridLine+(d.class?" "+d.class:"")})).append("line").style("opacity",0),xgridLine.append("text").attr("text-anchor",$$.gridTextAnchor).attr("transform",config.axis_rotated?"":"rotate(-90)").attr("dx",$$.gridTextDx).attr("dy",-5).style("opacity",0),$$.xgridLines.exit().transition().duration(duration).style("opacity",0).remove(),config.grid_y_show&&$$.updateYGrid(),$$.ygridLines=yv.select("."+CLASS.ygridLines).selectAll("."+CLASS.ygridLine).data(config.grid_y_lines),(yv=$$.ygridLines.enter().append("g").attr("class",function(d){return CLASS.ygridLine+(
d.class?" "+d.class:"")})).append("line").style("opacity",0),yv.append("text").attr("text-anchor",$$.gridTextAnchor).attr("transform",config.axis_rotated?"rotate(-90)":"").attr("dx",$$.gridTextDx).attr("dy",-5).style("opacity",0),yv=$$.yv.bind($$),$$.ygridLines.select("line").transition().duration(duration).attr("x1",config.axis_rotated?yv:0).attr("x2",config.axis_rotated?yv:$$.width).attr("y1",config.axis_rotated?0:yv).attr("y2",config.axis_rotated?$$.height:yv).style("opacity",1),$$.ygridLines.select("text").transition().duration(duration).attr("x",(config.axis_rotated?$$.xGridTextX:$$.yGridTextX).bind($$)).attr("y",yv).text(function(d){return d.text}
).style("opacity",1),$$.ygridLines.exit().transition().duration(duration).style("opacity",0).remove()},c3_chart_internal_fn.redrawGrid=function(withTransition){var $$=this,config=$$.config,xv=$$.xv.bind($$),lines=$$.xgridLines.select("line"),texts=$$.xgridLines.select("text");return[(withTransition?lines.transition():lines).attr("x1",config.axis_rotated?0:xv).attr("x2",config.axis_rotated?$$.width:xv).attr("y1",config.axis_rotated?xv:0).attr("y2",config.axis_rotated?xv:$$.height).style("opacity",1),(withTransition?texts.transition():texts).attr("x",(config.axis_rotated?$$.yGridTextX:$$.xGridTextX).bind($$)).attr("y",xv).text(function(d){return d.text}
).style("opacity",1)]},c3_chart_internal_fn.showXGridFocus=function(xx){var $$=this,config=$$.config,dataToShow=xx.filter(function(d){return d&&isValue(d.value)}),focusEl=$$.main.selectAll("line."+CLASS.xgridFocus),xx=$$.xx.bind($$);config.tooltip_show&&($$.hasType("scatter")||$$.hasArcType()||(focusEl.style("visibility","visible").data([dataToShow[0]]).attr(config.axis_rotated?"y1":"x1",xx).attr(config.axis_rotated?"y2":"x2",xx),$$.smoothLines(focusEl,"grid")))},c3_chart_internal_fn.hideXGridFocus=function(){this.main.select("line."+CLASS.xgridFocus).style("visibility","hidden")},c3_chart_internal_fn.updateXgridFocus=function(){var config=this.config
;this.main.select("line."+CLASS.xgridFocus).attr("x1",config.axis_rotated?0:-10).attr("x2",config.axis_rotated?this.width:-10).attr("y1",config.axis_rotated?-10:0).attr("y2",config.axis_rotated?-10:this.height)},c3_chart_internal_fn.generateGridData=function(firstYear,scale){var xDomain,lastYear,i,gridData=[],tickNum=this.main.select("."+CLASS.axisX).selectAll(".tick").size();if("year"===firstYear)for(firstYear=(xDomain=this.getXDomain())[0].getFullYear(),lastYear=xDomain[1].getFullYear(),i=firstYear;i<=lastYear;i++)gridData.push(new Date(i+"-01-01 00:00:00"));else(gridData=scale.ticks(10)).length>tickNum&&(gridData=gridData.filter(function(d){return(""+d
).indexOf(".")<0}));return gridData},c3_chart_internal_fn.getGridFilterToRemove=function(params){return params?function(line){var found=!1;return[].concat(params).forEach(function(param){("value"in param&&line.value===param.value||"class"in param&&line.class===param.class)&&(found=!0)}),found}:function(){return!0}},c3_chart_internal_fn.removeGridLines=function(classLine,forX){var config=this.config,toRemove=this.getGridFilterToRemove(classLine),toShow=function(line){return!toRemove(line)},classLines=forX?CLASS.xgridLines:CLASS.ygridLines,classLine=forX?CLASS.xgridLine:CLASS.ygridLine;this.main.select("."+classLines).selectAll("."+classLine).filter(toRemove
).transition().duration(config.transition_duration).style("opacity",0).remove(),forX?config.grid_x_lines=config.grid_x_lines.filter(toShow):config.grid_y_lines=config.grid_y_lines.filter(toShow)},c3_chart_internal_fn.initEventRect=function(){this.main.select("."+CLASS.chart).append("g").attr("class",CLASS.eventRects).style("fill-opacity",0)},c3_chart_internal_fn.redrawEventRect=function(){var eventRectUpdate,$$=this,eventRects=$$.config,maxDataCountTarget=$$.isMultipleX(),eventRects=$$.main.select("."+CLASS.eventRects).style("cursor",eventRects.zoom_enabled?eventRects.axis_rotated?"ns-resize":"ew-resize":null).classed(CLASS.eventRectsMultiple,
maxDataCountTarget).classed(CLASS.eventRectsSingle,!maxDataCountTarget);eventRects.selectAll("."+CLASS.eventRect).remove(),$$.eventRect=eventRects.selectAll("."+CLASS.eventRect),maxDataCountTarget?(eventRectUpdate=$$.eventRect.data([0]),$$.generateEventRectsForMultipleXs(eventRectUpdate.enter()),$$.updateEventRect(eventRectUpdate)):(maxDataCountTarget=$$.getMaxDataCountTarget($$.data.targets),eventRects.datum(maxDataCountTarget?maxDataCountTarget.values:[]),$$.eventRect=eventRects.selectAll("."+CLASS.eventRect),eventRectUpdate=$$.eventRect.data(function(d){return d}),$$.generateEventRectsForSingleX(eventRectUpdate.enter()),$$.updateEventRect(eventRectUpdate)
,eventRectUpdate.exit().remove())},c3_chart_internal_fn.updateEventRect=function(eventRectUpdate){var x,y,w,rectW,h,$$=this,config=$$.config;eventRectUpdate=eventRectUpdate||$$.eventRect.data(function(d){return d}),h=$$.isMultipleX()?(y=x=0,w=$$.width,$$.height):(h=!$$.isCustomX()&&!$$.isTimeSeries()||$$.isCategorized()?(rectW=$$.getEventRectWidth(),function(d){return $$.x(d.x)-rectW/2}):($$.updateXs(),rectW=function(nextX){var prevX=$$.getPrevX(nextX.index),nextX=$$.getNextX(nextX.index);return null===prevX&&null===nextX?config.axis_rotated?$$.height:$$.width:(null===prevX&&(prevX=$$.x.domain()[0]),null===nextX&&(nextX=$$.x.domain()[1]),Math.max(0,($$.x(
nextX)-$$.x(prevX))/2))},function(thisX){var prevX=$$.getPrevX(thisX.index),nextX=$$.getNextX(thisX.index),thisX=$$.data.xs[thisX.id][thisX.index];return null===prevX&&null===nextX?0:(null===prevX&&(prevX=$$.x.domain()[0]),($$.x(thisX)+$$.x(prevX))/2)}),x=config.axis_rotated?0:h,y=config.axis_rotated?h:0,w=config.axis_rotated?$$.width:rectW,config.axis_rotated?rectW:$$.height),eventRectUpdate.attr("class",$$.classEvent.bind($$)).attr("x",x).attr("y",y).attr("width",w).attr("height",h)},c3_chart_internal_fn.generateEventRectsForSingleX=function(eventRectEnter){var $$=this,d3=$$.d3,config=$$.config;eventRectEnter.append("rect").attr("class",$$.classEvent.bind(
$$)).style("cursor",config.data_selection_enabled&&config.data_selection_grouped?"pointer":null).on("mouseover",function(index){index=index.index;$$.dragging||$$.flowing||$$.hasArcType()||(config.point_focus_expand_enabled&&$$.expandCircles(index,null,!0),$$.expandBars(index,null,!0),$$.main.selectAll("."+CLASS.shape+"-"+index).each(function(d){config.data_onmouseover.call($$.api,d)}))}).on("mouseout",function(index){index=index.index;$$.config&&($$.hasArcType()||($$.hideXGridFocus(),$$.hideTooltip(),$$.unexpandCircles(),$$.unexpandBars(),$$.main.selectAll("."+CLASS.shape+"-"+index).each(function(d){config.data_onmouseout.call($$.api,d)})))}).on("mousemove",
function(selectedData){var index=selectedData.index,eventRect=$$.svg.select("."+CLASS.eventRect+"-"+index);$$.dragging||$$.flowing||$$.hasArcType()||($$.isStepType(selectedData)&&"step-after"===$$.config.line_step_type&&d3.mouse(this)[0]<$$.x($$.getXValue(selectedData.id,index))&&--index,selectedData=$$.filterTargetsToShow($$.data.targets).map(function(t){return $$.addName($$.getValueOnIndex(t.values,index))}),config.tooltip_grouped&&($$.showTooltip(selectedData,this),$$.showXGridFocus(selectedData)),config.tooltip_grouped&&(!config.data_selection_enabled||config.data_selection_grouped)||$$.main.selectAll("."+CLASS.shape+"-"+index).each(function(){d3.select(
this).classed(CLASS.EXPANDED,!0),config.data_selection_enabled&&eventRect.style("cursor",config.data_selection_grouped?"pointer":null),config.tooltip_grouped||($$.hideXGridFocus(),$$.hideTooltip(),config.data_selection_grouped||($$.unexpandCircles(index),$$.unexpandBars(index)))}).filter(function(d){return $$.isWithinShape(this,d)}).each(function(d){config.data_selection_enabled&&(config.data_selection_grouped||config.data_selection_isselectable(d))&&eventRect.style("cursor","pointer"),config.tooltip_grouped||($$.showTooltip([d],this),$$.showXGridFocus([d]),config.point_focus_expand_enabled&&$$.expandCircles(index,d.id,!0),$$.expandBars(index,d.id,!0))}))}
).on("click",function(d){var index=d.index;!$$.hasArcType()&&$$.toggleShape&&($$.cancelClick?$$.cancelClick=!1:($$.isStepType(d)&&"step-after"===config.line_step_type&&d3.mouse(this)[0]<$$.x($$.getXValue(d.id,index))&&--index,$$.main.selectAll("."+CLASS.shape+"-"+index).each(function(d){(config.data_selection_grouped||$$.isWithinShape(this,d))&&($$.toggleShape(this,d,index),$$.config.data_onclick.call($$.api,d,this))})))}).call(config.data_selection_draggable&&$$.drag?d3.behavior.drag().origin(Object).on("drag",function(){$$.drag(d3.mouse(this))}).on("dragstart",function(){$$.dragstart(d3.mouse(this))}).on("dragend",function(){$$.dragend()}):function(){})},
c3_chart_internal_fn.generateEventRectsForMultipleXs=function(eventRectEnter){var $$=this,d3=$$.d3,config=$$.config;function mouseout(){$$.svg.select("."+CLASS.eventRect).style("cursor",null),$$.hideXGridFocus(),$$.hideTooltip(),$$.unexpandCircles(),$$.unexpandBars()}eventRectEnter.append("rect").attr("x",0).attr("y",0).attr("width",$$.width).attr("height",$$.height).attr("class",CLASS.eventRect).on("mouseout",function(){$$.config&&($$.hasArcType()||mouseout())}).on("mousemove",function(){var mouse,closest,selectedData=$$.filterTargetsToShow($$.data.targets);$$.dragging||$$.hasArcType(selectedData)||(mouse=d3.mouse(this),closest=$$.findClosestFromTargets(
selectedData,mouse),!$$.mouseover||closest&&closest.id===$$.mouseover.id||(config.data_onmouseout.call($$.api,$$.mouseover),$$.mouseover=void 0),closest?(selectedData=($$.isScatterType(closest)||!config.tooltip_grouped?[closest]:$$.filterByX(selectedData,closest.x)).map(function(d){return $$.addName(d)}),$$.showTooltip(selectedData,this),config.point_focus_expand_enabled&&$$.expandCircles(closest.index,closest.id,!0),$$.expandBars(closest.index,closest.id,!0),$$.showXGridFocus(selectedData),($$.isBarType(closest.id)||$$.dist(closest,mouse)<config.point_sensitivity)&&($$.svg.select("."+CLASS.eventRect).style("cursor","pointer"),$$.mouseover||(
config.data_onmouseover.call($$.api,closest),$$.mouseover=closest))):mouseout())}).on("click",function(){var mouse,closest,targetsToShow=$$.filterTargetsToShow($$.data.targets);$$.hasArcType(targetsToShow)||(mouse=d3.mouse(this),(closest=$$.findClosestFromTargets(targetsToShow,mouse))&&($$.isBarType(closest.id)||$$.dist(closest,mouse)<config.point_sensitivity)&&$$.main.selectAll("."+CLASS.shapes+$$.getTargetSelectorSuffix(closest.id)).selectAll("."+CLASS.shape+"-"+closest.index).each(function(){(config.data_selection_grouped||$$.isWithinShape(this,closest))&&($$.toggleShape(this,closest,closest.index),$$.config.data_onclick.call($$.api,closest,this))}))}
).call(config.data_selection_draggable&&$$.drag?d3.behavior.drag().origin(Object).on("drag",function(){$$.drag(d3.mouse(this))}).on("dragstart",function(){$$.dragstart(d3.mouse(this))}).on("dragend",function(){$$.dragend()}):function(){})},c3_chart_internal_fn.dispatchEvent=function(type,y,event){var x="."+CLASS.eventRect+(this.isMultipleX()?"":"-"+y),eventRect=this.main.select(x).node(),y=eventRect.getBoundingClientRect(),x=y.left+(event?event[0]:0),y=y.top+(event?event[1]:0),event=document.createEvent("MouseEvents");event.initMouseEvent(type,!0,!0,window,0,x,y,x,y,!1,!1,!1,!1,0,null),eventRect.dispatchEvent(event)},c3_chart_internal_fn.initLegend=function(
){var $$=this;if($$.legendItemTextBox={},$$.legendHasRendered=!1,$$.legend=$$.svg.append("g").attr("transform",$$.getTranslate("legend")),!$$.config.legend_show)return $$.legend.style("visibility","hidden"),void($$.hiddenLegendIds=$$.mapToIds($$.data.targets));$$.updateLegendWithDefaults()},c3_chart_internal_fn.updateLegendWithDefaults=function(){this.updateLegend(this.mapToIds(this.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},c3_chart_internal_fn.updateSizeForLegend=function(legendHeight,legendWidth){var $$=this,insetLegendPosition=$$.config,insetLegendPosition={top:$$.isLegendTop?$$.getCurrentPaddingTop(
)+insetLegendPosition.legend_inset_y+5.5:$$.currentHeight-legendHeight-$$.getCurrentPaddingBottom()-insetLegendPosition.legend_inset_y,left:$$.isLegendLeft?$$.getCurrentPaddingLeft()+insetLegendPosition.legend_inset_x+.5:$$.currentWidth-legendWidth-$$.getCurrentPaddingRight()-insetLegendPosition.legend_inset_x+.5};$$.margin3={top:$$.isLegendRight?0:$$.isLegendInset?insetLegendPosition.top:$$.currentHeight-legendHeight,right:NaN,bottom:0,left:$$.isLegendRight?$$.currentWidth-legendWidth:$$.isLegendInset?insetLegendPosition.left:0}},c3_chart_internal_fn.transformLegend=function(withTransition){(withTransition?this.legend.transition():this.legend).attr(
"transform",this.getTranslate("legend"))},c3_chart_internal_fn.updateLegendStep=function(step){this.legendStep=step},c3_chart_internal_fn.updateLegendItemWidth=function(w){this.legendItemWidth=w},c3_chart_internal_fn.updateLegendItemHeight=function(h){this.legendItemHeight=h},c3_chart_internal_fn.getLegendWidth=function(){var $$=this;return $$.config.legend_show?$$.isLegendRight||$$.isLegendInset?$$.legendItemWidth*($$.legendStep+1):$$.currentWidth:0},c3_chart_internal_fn.getLegendHeight=function(){var $$=this,h=0;return $$.config.legend_show&&(h=$$.isLegendRight?$$.currentHeight:Math.max(20,$$.legendItemHeight)*($$.legendStep+1)),h},
c3_chart_internal_fn.opacityForLegend=function(legendItem){return legendItem.classed(CLASS.legendItemHidden)?null:1},c3_chart_internal_fn.opacityForUnfocusedLegend=function(legendItem){return legendItem.classed(CLASS.legendItemHidden)?null:.3},c3_chart_internal_fn.toggleFocusLegend=function(targetIds,focus){var $$=this;targetIds=$$.mapToTargetIds(targetIds),$$.legend.selectAll("."+CLASS.legendItem).filter(function(id){return 0<=targetIds.indexOf(id)}).classed(CLASS.legendItemFocused,focus).transition().duration(100).style("opacity",function(){return(focus?$$.opacityForLegend:$$.opacityForUnfocusedLegend).call($$,$$.d3.select(this))})},
c3_chart_internal_fn.revertLegend=function(){var $$=this,d3=$$.d3;$$.legend.selectAll("."+CLASS.legendItem).classed(CLASS.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return $$.opacityForLegend(d3.select(this))})},c3_chart_internal_fn.showLegend=function(targetIds){var $$=this,config=$$.config;config.legend_show||(config.legend_show=!0,$$.legend.style("visibility","visible"),$$.legendHasRendered||$$.updateLegendWithDefaults()),$$.removeHiddenLegendIds(targetIds),$$.legend.selectAll($$.selectorLegends(targetIds)).style("visibility","visible").transition().style("opacity",function(){return $$.opacityForLegend($$.d3.select(this))}
)},c3_chart_internal_fn.hideLegend=function(targetIds){var $$=this,config=$$.config;config.legend_show&&isEmpty(targetIds)&&(config.legend_show=!1,$$.legend.style("visibility","hidden")),$$.addHiddenLegendIds(targetIds),$$.legend.selectAll($$.selectorLegends(targetIds)).style("opacity",0).style("visibility","hidden")},c3_chart_internal_fn.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},c3_chart_internal_fn.updateLegend=function(targetIds,background,transitions){var xForLegend,xForLegendText,xForLegendRect,yForLegend,x1ForLegendTile,x2ForLegendTile,yForLegendTile,withTransition,withTransitionForTransform,texts,rects,tiles,$$=this,
config=$$.config,paddingTop=4,paddingRight=10,maxWidth=0,maxHeight=0,posMin=10,tileWidth=config.legend_item_tile_width+5,totalLength=0,offsets={},widths={},heights={},margins=[0],steps={},step=0;function updatePositions(maxLength,id,itemWidth){var margin,reset=0===itemWidth,itemWidth=itemWidth===targetIds.length-1,maxLength=function(textElement,id){return $$.legendItemTextBox[id]||($$.legendItemTextBox[id]=$$.getTextRect(textElement.textContent,CLASS.legendItem,textElement)),$$.legendItemTextBox[id]}(maxLength,id),itemWidth=maxLength.width+tileWidth+(!itemWidth||$$.isLegendRight||$$.isLegendInset?paddingRight:0)+config.legend_padding,
maxLength=maxLength.height+paddingTop,itemLength=$$.isLegendRight||$$.isLegendInset?maxLength:itemWidth,areaLength=$$.isLegendRight||$$.isLegendInset?$$.getLegendHeight():$$.getLegendWidth();function updateValues(id,withoutStep){withoutStep||(margin=(areaLength-totalLength-itemLength)/2)<posMin&&(margin=(areaLength-itemLength)/2,totalLength=0,step++),steps[id]=step,margins[step]=$$.isLegendInset?10:margin,offsets[id]=totalLength,totalLength+=itemLength}reset&&(maxHeight=maxWidth=step=totalLength=0),!config.legend_show||$$.isLegendToShow(id)?(widths[id]=itemWidth,heights[id]=maxLength,(!maxWidth||maxWidth<=itemWidth)&&(maxWidth=itemWidth),(
!maxHeight||maxHeight<=maxLength)&&(maxHeight=maxLength),maxLength=$$.isLegendRight||$$.isLegendInset?maxHeight:maxWidth,config.legend_equally?(Object.keys(widths).forEach(function(id){widths[id]=maxWidth}),Object.keys(heights).forEach(function(id){heights[id]=maxHeight}),(margin=(areaLength-maxLength*targetIds.length)/2)<posMin?(step=totalLength=0,targetIds.forEach(function(id){updateValues(id)})):updateValues(id,!0)):updateValues(id)):widths[id]=heights[id]=steps[id]=offsets[id]=0}targetIds=targetIds.filter(function(id){return!isDefined(config.data_names[id])||null!==config.data_names[id]}),withTransition=getOption(background=background||{},
"withTransition",!0),withTransitionForTransform=getOption(background,"withTransitionForTransform",!0),$$.isLegendInset&&(step=config.legend_inset_step||targetIds.length,$$.updateLegendStep(step)),yForLegend=$$.isLegendRight?(xForLegend=function(id){return maxWidth*steps[id]},function(id){return margins[steps[id]]+offsets[id]}):$$.isLegendInset?(xForLegend=function(id){return maxWidth*steps[id]+10},function(id){return margins[steps[id]]+offsets[id]}):(xForLegend=function(id){return margins[steps[id]]+offsets[id]},function(id){return maxHeight*steps[id]}),xForLegendText=function(id,i){return xForLegend(id,i)+4+config.legend_item_tile_width},rects=function(id,i
){return yForLegend(id,i)+9},xForLegendRect=function(id,i){return xForLegend(id,i)},tiles=function(id,i){return yForLegend(id,i)-5},x1ForLegendTile=function(id,i){return xForLegend(id,i)-2},x2ForLegendTile=function(id,i){return xForLegend(id,i)-2+config.legend_item_tile_width},yForLegendTile=function(id,i){return yForLegend(id,i)+4},(texts=$$.legend.selectAll("."+CLASS.legendItem).data(targetIds).enter().append("g").attr("class",function(id){return $$.generateClass(CLASS.legendItem,id)}).style("visibility",function(id){return $$.isLegendToShow(id)?"visible":"hidden"}).style("cursor","pointer").on("click",function(id){
config.legend_item_onclick?config.legend_item_onclick.call($$,id):$$.d3.event.altKey?($$.api.hide(),$$.api.show(id)):($$.api.toggle(id),$$.isTargetToShow(id)?$$.api.focus(id):$$.api.revert())}).on("mouseover",function(id){config.legend_item_onmouseover?config.legend_item_onmouseover.call($$,id):($$.d3.select(this).classed(CLASS.legendItemFocused,!0),!$$.transiting&&$$.isTargetToShow(id)&&$$.api.focus(id))}).on("mouseout",function(id){config.legend_item_onmouseout?config.legend_item_onmouseout.call($$,id):($$.d3.select(this).classed(CLASS.legendItemFocused,!1),$$.api.revert())})).append("text").text(function(id){return isDefined(config.data_names[id]
)?config.data_names[id]:id}).each(function(id,i){updatePositions(this,id,i)}).style("pointer-events","none").attr("x",$$.isLegendRight||$$.isLegendInset?xForLegendText:-200).attr("y",$$.isLegendRight||$$.isLegendInset?-200:rects),texts.append("rect").attr("class",CLASS.legendItemEvent).style("fill-opacity",0).attr("x",$$.isLegendRight||$$.isLegendInset?xForLegendRect:-200).attr("y",$$.isLegendRight||$$.isLegendInset?-200:tiles),texts.append("line").attr("class",CLASS.legendItemTile).style("stroke",$$.color).style("pointer-events","none").attr("x1",$$.isLegendRight||$$.isLegendInset?x1ForLegendTile:-200).attr("y1",
$$.isLegendRight||$$.isLegendInset?-200:yForLegendTile).attr("x2",$$.isLegendRight||$$.isLegendInset?x2ForLegendTile:-200).attr("y2",$$.isLegendRight||$$.isLegendInset?-200:yForLegendTile).attr("stroke-width",config.legend_item_tile_height),background=$$.legend.select("."+CLASS.legendBackground+" rect"),$$.isLegendInset&&0<maxWidth&&0===background.size()&&(background=$$.legend.insert("g","."+CLASS.legendItem).attr("class",CLASS.legendBackground).append("rect")),texts=$$.legend.selectAll("text").data(targetIds).text(function(id){return isDefined(config.data_names[id])?config.data_names[id]:id}).each(function(id,i){updatePositions(this,id,i)}),(
withTransition?texts.transition():texts).attr("x",xForLegendText).attr("y",rects),rects=$$.legend.selectAll("rect."+CLASS.legendItemEvent).data(targetIds),(withTransition?rects.transition():rects).attr("width",function(id){return widths[id]}).attr("height",function(id){return heights[id]}).attr("x",xForLegendRect).attr("y",tiles),tiles=$$.legend.selectAll("line."+CLASS.legendItemTile).data(targetIds),(withTransition?tiles.transition():tiles).style("stroke",$$.levelColor?function(id){return $$.levelColor($$.cache[id].values[0].value)}:$$.color).attr("x1",x1ForLegendTile).attr("y1",yForLegendTile).attr("x2",x2ForLegendTile).attr("y2",yForLegendTile),
background&&(withTransition?background.transition():background).attr("height",$$.getLegendHeight()-12).attr("width",maxWidth*(step+1)+10),$$.legend.selectAll("."+CLASS.legendItem).classed(CLASS.legendItemHidden,function(id){return!$$.isTargetToShow(id)}),$$.updateLegendItemWidth(maxWidth),$$.updateLegendItemHeight(maxHeight),$$.updateLegendStep(step),$$.updateSizes(),$$.updateScales(),$$.updateSvgSize(),$$.transformAll(withTransitionForTransform,transitions),$$.legendHasRendered=!0},c3_chart_internal_fn.initRegion=function(){this.region=this.main.append("g").attr("clip-path",this.clipPath).attr("class",CLASS.regions)},
c3_chart_internal_fn.updateRegion=function(duration){var $$=this,config=$$.config;$$.region.style("visibility",$$.hasArcType()?"hidden":"visible"),$$.mainRegion=$$.main.select("."+CLASS.regions).selectAll("."+CLASS.region).data(config.regions),$$.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),$$.mainRegion.attr("class",$$.classRegion.bind($$)),$$.mainRegion.exit().transition().duration(duration).style("opacity",0).remove()},c3_chart_internal_fn.redrawRegion=function(withTransition){var $$=this,regions=$$.mainRegion.selectAll("rect").each(function(){var parentData=$$.d3.select(this.parentNode).datum();$$.d3.select(this).datum(parentData
)}),x=$$.regionX.bind($$),y=$$.regionY.bind($$),w=$$.regionWidth.bind($$),h=$$.regionHeight.bind($$);return[(withTransition?regions.transition():regions).attr("x",x).attr("y",y).attr("width",w).attr("height",h).style("fill-opacity",function(d){return isValue(d.opacity)?d.opacity:.1})]},c3_chart_internal_fn.regionX=function(xPos){var $$=this,config=$$.config,yScale="y"===xPos.axis?$$.y:$$.y2,xPos="y"===xPos.axis||"y2"===xPos.axis?config.axis_rotated&&"start"in xPos?yScale(xPos.start):0:!config.axis_rotated&&"start"in xPos?$$.x($$.isTimeSeries()?$$.parseDate(xPos.start):xPos.start):0;return xPos},c3_chart_internal_fn.regionY=function(yPos){var $$=this,
config=$$.config,yScale="y"===yPos.axis?$$.y:$$.y2,yPos="y"===yPos.axis||"y2"===yPos.axis?!config.axis_rotated&&"end"in yPos?yScale(yPos.end):0:config.axis_rotated&&"start"in yPos?$$.x($$.isTimeSeries()?$$.parseDate(yPos.start):yPos.start):0;return yPos},c3_chart_internal_fn.regionWidth=function(d){var end=this,config=end.config,start=end.regionX(d),yScale="y"===d.axis?end.y:end.y2,end="y"===d.axis||"y2"===d.axis?config.axis_rotated&&"end"in d?yScale(d.end):end.width:!config.axis_rotated&&"end"in d?end.x(end.isTimeSeries()?end.parseDate(d.end):d.end):end.width;return end<start?0:end-start},c3_chart_internal_fn.regionHeight=function(d){var end=this,
config=end.config,start=this.regionY(d),yScale="y"===d.axis?end.y:end.y2,end="y"===d.axis||"y2"===d.axis?!config.axis_rotated&&"start"in d?yScale(d.start):end.height:config.axis_rotated&&"end"in d?end.x(end.isTimeSeries()?end.parseDate(d.end):d.end):end.height;return end<start?0:end-start},c3_chart_internal_fn.isRegionOnX=function(d){return!d.axis||"x"===d.axis},c3_chart_internal_fn.getScale=function(min,max,forTimeseries){return(forTimeseries?this.d3.time.scale():this.d3.scale.linear()).range([min,max])},c3_chart_internal_fn.getX=function(min,max,domain,offset){var key,scale=this.getScale(min,max,this.isTimeSeries()),_scale=domain?scale.domain(domain):scale
,scale=this.isCategorized()?(offset=offset||function(){return 0},function(v,raw){v=_scale(v)+offset(v);return raw?v:Math.ceil(v)}):function(v,raw){v=_scale(v);return raw?v:Math.ceil(v)};for(key in _scale)scale[key]=_scale[key];return scale.orgDomain=function(){return _scale.domain()},this.isCategorized()&&(scale.domain=function(domain){return arguments.length?(_scale.domain(domain),scale):[(domain=this.orgDomain())[0],domain[1]+1]}),scale},c3_chart_internal_fn.getY=function(min,scale,domain){scale=this.getScale(min,scale,this.isTimeSeriesY());return domain&&scale.domain(domain),scale},c3_chart_internal_fn.getYScale=function(id){return"y2"===this.axis.getId(
id)?this.y2:this.y},c3_chart_internal_fn.getSubYScale=function(id){return"y2"===this.axis.getId(id)?this.subY2:this.subY},c3_chart_internal_fn.updateScales=function(){var $$=this,config=$$.config,forInit=!$$.x;$$.xMin=config.axis_rotated?1:0,$$.xMax=config.axis_rotated?$$.height:$$.width,$$.yMin=config.axis_rotated?0:$$.height,$$.yMax=config.axis_rotated?$$.width:1,$$.subXMin=$$.xMin,$$.subXMax=$$.xMax,$$.subYMin=config.axis_rotated?0:$$.height2,$$.subYMax=config.axis_rotated?$$.width2:1,$$.x=$$.getX($$.xMin,$$.xMax,forInit?void 0:$$.x.orgDomain(),function(){return $$.xAxis.tickOffset()}),$$.y=$$.getY($$.yMin,$$.yMax,
forInit?config.axis_y_default:$$.y.domain()),$$.y2=$$.getY($$.yMin,$$.yMax,forInit?config.axis_y2_default:$$.y2.domain()),$$.subX=$$.getX($$.xMin,$$.xMax,$$.orgXDomain,function(d){return d%1?0:$$.subXAxis.tickOffset()}),$$.subY=$$.getY($$.subYMin,$$.subYMax,forInit?config.axis_y_default:$$.subY.domain()),$$.subY2=$$.getY($$.subYMin,$$.subYMax,forInit?config.axis_y2_default:$$.subY2.domain()),$$.xAxisTickFormat=$$.axis.getXAxisTickFormat(),$$.xAxisTickValues=$$.axis.getXAxisTickValues(),$$.yAxisTickValues=$$.axis.getYAxisTickValues(),$$.y2AxisTickValues=$$.axis.getY2AxisTickValues(),$$.xAxis=$$.axis.getXAxis($$.x,$$.xOrient,$$.xAxisTickFormat,
$$.xAxisTickValues,config.axis_x_tick_outer),$$.subXAxis=$$.axis.getXAxis($$.subX,$$.subXOrient,$$.xAxisTickFormat,$$.xAxisTickValues,config.axis_x_tick_outer),$$.yAxis=$$.axis.getYAxis($$.y,$$.yOrient,config.axis_y_tick_format,$$.yAxisTickValues,config.axis_y_tick_outer),$$.y2Axis=$$.axis.getYAxis($$.y2,$$.y2Orient,config.axis_y2_tick_format,$$.y2AxisTickValues,config.axis_y2_tick_outer),forInit||($$.brush&&$$.brush.scale($$.subX),config.zoom_enabled&&$$.zoom.scale($$.x)),$$.updateArc&&$$.updateArc()},c3_chart_internal_fn.selectPoint=function(target,d,i){var $$=this,config=$$.config,cx=(config.axis_rotated?$$.circleY:$$.circleX).bind($$),cy=(
config.axis_rotated?$$.circleX:$$.circleY).bind($$),r=$$.pointSelectR.bind($$);config.data_onselected.call($$.api,d,target.node()),$$.main.select("."+CLASS.selectedCircles+$$.getTargetSelectorSuffix(d.id)).selectAll("."+CLASS.selectedCircle+"-"+i).data([d]).enter().append("circle").attr("class",function(){return $$.generateClass(CLASS.selectedCircle,i)}).attr("cx",cx).attr("cy",cy).attr("stroke",function(){return $$.color(d)}).attr("r",function(d){return 1.4*$$.pointSelectR(d)}).transition().duration(100).attr("r",r)},c3_chart_internal_fn.unselectPoint=function(target,d,i){this.config.data_onunselected.call(this.api,d,target.node()),this.main.select(
"."+CLASS.selectedCircles+this.getTargetSelectorSuffix(d.id)).selectAll("."+CLASS.selectedCircle+"-"+i).transition().duration(100).attr("r",0).remove()},c3_chart_internal_fn.togglePoint=function(selected,target,d,i){selected?this.selectPoint(target,d,i):this.unselectPoint(target,d,i)},c3_chart_internal_fn.selectPath=function(target,d){var $$=this;$$.config.data_onselected.call($$,d,target.node()),$$.config.interaction_brighten&&target.transition().duration(100).style("fill",function(){return $$.d3.rgb($$.color(d)).brighter(.75)})},c3_chart_internal_fn.unselectPath=function(target,d){var $$=this;$$.config.data_onunselected.call($$,d,target.node()),
$$.config.interaction_brighten&&target.transition().duration(100).style("fill",function(){return $$.color(d)})},c3_chart_internal_fn.togglePath=function(selected,target,d,i){selected?this.selectPath(target,d,i):this.unselectPath(target,d,i)},c3_chart_internal_fn.getToggle=function(that,d){var toggle;return"circle"===that.nodeName?toggle=this.isStepType(d)?function(){}:this.togglePoint:"path"===that.nodeName&&(toggle=this.togglePath),toggle},c3_chart_internal_fn.toggleShape=function(that,d,i){var $$=this,d3=$$.d3,config=$$.config,shape=d3.select(that),isSelected=shape.classed(CLASS.SELECTED),toggle=$$.getToggle(that,d).bind($$)
;config.data_selection_enabled&&config.data_selection_isselectable(d)&&(config.data_selection_multiple||$$.main.selectAll("."+CLASS.shapes+(config.data_selection_grouped?$$.getTargetSelectorSuffix(d.id):"")).selectAll("."+CLASS.shape).each(function(d,i){var shape=d3.select(this);shape.classed(CLASS.SELECTED)&&toggle(!1,shape.classed(CLASS.SELECTED,!1),d,i)}),shape.classed(CLASS.SELECTED,!isSelected),toggle(!isSelected,shape,d,i))},c3_chart_internal_fn.initBar=function(){this.main.select("."+CLASS.chart).append("g").attr("class",CLASS.chartBars)},c3_chart_internal_fn.updateTargetsForBar=function(targets){var $$=this,config=$$.config,
classChartBar=$$.classChartBar.bind($$),classBars=$$.classBars.bind($$),classFocus=$$.classFocus.bind($$);$$.main.select("."+CLASS.chartBars).selectAll("."+CLASS.chartBar).data(targets).attr("class",function(d){return classChartBar(d)+classFocus(d)}).enter().append("g").attr("class",classChartBar).style("pointer-events","none").append("g").attr("class",classBars).style("cursor",function(d){return config.data_selection_isselectable(d)?"pointer":null})},c3_chart_internal_fn.updateBar=function(durationForExit){var $$=this,barData=$$.barData.bind($$),classBar=$$.classBar.bind($$),initialOpacity=$$.initialOpacity.bind($$),color=function(d){return $$.color(d.id)}
;$$.mainBar=$$.main.selectAll("."+CLASS.bars).selectAll("."+CLASS.bar).data(barData),$$.mainBar.enter().append("path").attr("class",classBar).style("stroke",color).style("fill",color),$$.mainBar.style("opacity",initialOpacity),$$.mainBar.exit().transition().duration(durationForExit).remove()},c3_chart_internal_fn.redrawBar=function(drawBar,withTransition){return[(withTransition?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",drawBar).style("stroke",this.color).style("fill",this.color).style("opacity",1)]},c3_chart_internal_fn.getBarW=function(axis,w){var config=this.config,
w="number"==typeof config.bar_width?config.bar_width:w?axis.tickInterval()*config.bar_width_ratio/w:0;return config.bar_width_max&&w>config.bar_width_max?config.bar_width_max:w},c3_chart_internal_fn.getBars=function(i,id){return(id?this.main.selectAll("."+CLASS.bars+this.getTargetSelectorSuffix(id)):this.main).selectAll("."+CLASS.bar+(isValue(i)?"-"+i:""))},c3_chart_internal_fn.expandBars=function(i,id,reset){reset&&this.unexpandBars(),this.getBars(i,id).classed(CLASS.EXPANDED,!0)},c3_chart_internal_fn.unexpandBars=function(i){this.getBars(i).classed(CLASS.EXPANDED,!1)},c3_chart_internal_fn.generateDrawBar=function(barIndices,isSub){var config=this.config,
getPoints=this.generateGetBarPoints(barIndices,isSub);return function(indexX,indexY){var points=getPoints(indexX,indexY),indexX=config.axis_rotated?1:0,indexY=config.axis_rotated?0:1;return"M "+points[0][indexX]+","+points[0][indexY]+" L"+points[1][indexX]+","+points[1][indexY]+" L"+points[2][indexX]+","+points[2][indexY]+" L"+points[3][indexX]+","+points[3][indexY]+" z"}},c3_chart_internal_fn.generateGetBarPoints=function(barIndices,isSub){var $$=this,axis=isSub?$$.subXAxis:$$.xAxis,barTargetsNum=barIndices.__max__+1,barW=$$.getBarW(axis,barTargetsNum),barX=$$.getShapeX(barW,barTargetsNum,barIndices,!!isSub),barY=$$.getShapeY(!!isSub),
barOffset=$$.getShapeOffset($$.isBarType,barIndices,!!isSub),barSpaceOffset=barW*($$.config.bar_space/2),yScale=isSub?$$.getSubYScale:$$.getYScale;return function(d,posY){var y0=yScale.call($$,d.id)(0),offset=barOffset(d,posY)||y0,posX=barX(d),posY=barY(d);return $$.config.axis_rotated&&(0<d.value&&posY<y0||d.value<0&&y0<posY)&&(posY=y0),[[posX+barSpaceOffset,offset],[posX+barSpaceOffset,posY-(y0-offset)],[posX+barW-barSpaceOffset,posY-(y0-offset)],[posX+barW-barSpaceOffset,offset]]}},c3_chart_internal_fn.isWithinBar=function(x){var mouse=this.d3.mouse(x),sy=x.getBoundingClientRect(),ey=x.pathSegList.getItem(0),ex=x.pathSegList.getItem(1),x=Math.min(ey.x,
ex.x),ey=Math.min(ey.y,ex.y),ex=x+sy.width+2,sy=ey+sy.height+2,ey=ey-2;return x-2<mouse[0]&&mouse[0]<ex&&ey<mouse[1]&&mouse[1]<sy},c3_chart_internal_fn.getShapeIndices=function(typeFilter){var j,k,config=this.config,indices={},i=0;return this.filterTargetsToShow(this.data.targets.filter(typeFilter,this)).forEach(function(d){for(j=0;j<config.data_groups.length;j++)if(!(config.data_groups[j].indexOf(d.id)<0))for(k=0;k<config.data_groups[j].length;k++)if(config.data_groups[j][k]in indices){indices[d.id]=indices[config.data_groups[j][k]];break}isUndefined(indices[d.id])&&(indices[d.id]=i++)}),indices.__max__=i-1,indices},c3_chart_internal_fn.getShapeX=function(
offset,targetsNum,indices,isSub){var scale=isSub?this.subX:this.x;return function(d){var index=d.id in indices?indices[d.id]:0;return d.x||0===d.x?scale(d.x)-offset*(targetsNum/2-index):0}},c3_chart_internal_fn.getShapeY=function(isSub){var $$=this;return function(d){return(isSub?$$.getSubYScale(d.id):$$.getYScale(d.id))(d.value)}},c3_chart_internal_fn.getShapeOffset=function(typeFilter,indices,isSub){var $$=this,targets=$$.orderTargets($$.filterTargetsToShow($$.data.targets.filter(typeFilter,$$))),targetIds=targets.map(function(t){return t.id});return function(d,i){var scale=isSub?$$.getSubYScale(d.id):$$.getYScale(d.id),y0=scale(0),offset=y0
;return targets.forEach(function(t){var values=$$.isStepType(d)?$$.convertValuesToStep(t.values):t.values;t.id!==d.id&&indices[t.id]===indices[d.id]&&targetIds.indexOf(t.id)<targetIds.indexOf(d.id)&&(void 0!==values[i]&&+values[i].x==+d.x||(i=-1,values.forEach(function(v,j){v.x===d.x&&(i=j)})),i in values&&0<=values[i].value*d.value&&(offset+=scale(values[i].value)-y0))}),offset}},c3_chart_internal_fn.isWithinShape=function(that,d){var isWithin,$$=this,shape=$$.d3.select(that);return $$.isTargetToShow(d.id)?"circle"===that.nodeName?isWithin=$$.isStepType(d)?$$.isWithinStep(that,$$.getYScale(d.id)(d.value)):$$.isWithinCircle(that,1.5*$$.pointSelectR(d)
):"path"===that.nodeName&&(isWithin=!shape.classed(CLASS.bar)||$$.isWithinBar(that)):isWithin=!1,isWithin},c3_chart_internal_fn.getInterpolate=function(d){var $$=this,interpolation=$$.isInterpolationType($$.config.spline_interpolation_type)?$$.config.spline_interpolation_type:"cardinal";return $$.isSplineType(d)?interpolation:$$.isStepType(d)?$$.config.line_step_type:"linear"},c3_chart_internal_fn.initLine=function(){this.main.select("."+CLASS.chart).append("g").attr("class",CLASS.chartLines)},c3_chart_internal_fn.updateTargetsForLine=function(targets){var $$=this,config=$$.config,classChartLine=$$.classChartLine.bind($$),classLines=$$.classLines.bind($$),
classAreas=$$.classAreas.bind($$),classCircles=$$.classCircles.bind($$),classFocus=$$.classFocus.bind($$),mainLineEnter=$$.main.select("."+CLASS.chartLines).selectAll("."+CLASS.chartLine).data(targets).attr("class",function(d){return classChartLine(d)+classFocus(d)}).enter().append("g").attr("class",classChartLine).style("opacity",0).style("pointer-events","none");mainLineEnter.append("g").attr("class",classLines),mainLineEnter.append("g").attr("class",classAreas),mainLineEnter.append("g").attr("class",function(d){return $$.generateClass(CLASS.selectedCircles,d.id)}),mainLineEnter.append("g").attr("class",classCircles).style("cursor",function(d){
return config.data_selection_isselectable(d)?"pointer":null}),targets.forEach(function(t){$$.main.selectAll("."+CLASS.selectedCircles+$$.getTargetSelectorSuffix(t.id)).selectAll("."+CLASS.selectedCircle).each(function(d){d.value=t.values[d.index].value})})},c3_chart_internal_fn.updateLine=function(durationForExit){var $$=this;$$.mainLine=$$.main.selectAll("."+CLASS.lines).selectAll("."+CLASS.line).data($$.lineData.bind($$)),$$.mainLine.enter().append("path").attr("class",$$.classLine.bind($$)).style("stroke",$$.color),$$.mainLine.style("opacity",$$.initialOpacity.bind($$)).style("shape-rendering",function(d){return $$.isStepType(d)?"crispEdges":""}).attr(
"transform",null),$$.mainLine.exit().transition().duration(durationForExit).style("opacity",0).remove()},c3_chart_internal_fn.redrawLine=function(drawLine,withTransition){return[(withTransition?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",drawLine).style("stroke",this.color).style("opacity",1)]},c3_chart_internal_fn.generateDrawLine=function(yValue,isSub){var $$=this,config=$$.config,line=$$.d3.svg.line(),getPoints=$$.generateGetLinePoints(yValue,isSub),yScaleGetter=isSub?$$.getSubYScale:$$.getYScale,xValue=function(d){return(isSub?$$.subxx:$$.xx).call($$,d)},yValue=function(d,i){return 0<config.data_groups.length?getPoints(d,i
)[0][1]:yScaleGetter.call($$,d.id)(d.value)},line=config.axis_rotated?line.x(yValue).y(xValue):line.x(xValue).y(yValue);return config.line_connectNull||(line=line.defined(function(d){return null!=d.value})),function(d){var values=config.line_connectNull?$$.filterRemoveNull(d.values):d.values,x=isSub?$$.x:$$.subX,y=yScaleGetter.call($$,d.id),x0=0,path=0,path=$$.isLineType(d)?config.data_regions[d.id]?$$.lineWithRegions(values,x,y,config.data_regions[d.id]):($$.isStepType(d)&&(values=$$.convertValuesToStep(values)),line.interpolate($$.getInterpolate(d))(values)):(values[0]&&(x0=x(values[0].x),path=y(values[0].value)),
config.axis_rotated?"M "+path+" "+x0:"M "+x0+" "+path);return path||"M 0 0"}},c3_chart_internal_fn.generateGetLinePoints=function(lineIndices,isSub){var $$=this,config=$$.config,lineTargetsNum=lineIndices.__max__+1,x=$$.getShapeX(0,lineTargetsNum,lineIndices,!!isSub),y=$$.getShapeY(!!isSub),lineOffset=$$.getShapeOffset($$.isLineType,lineIndices,!!isSub),yScale=isSub?$$.getSubYScale:$$.getYScale;return function(d,posY){var y0=yScale.call($$,d.id)(0),offset=lineOffset(d,posY)||y0,posX=x(d),posY=y(d);return config.axis_rotated&&(0<d.value&&posY<y0||d.value<0&&y0<posY)&&(posY=y0),[[posX,posY-(y0-offset)],[posX,posY-(y0-offset)],[posX,posY-(y0-offset)],[posX,
posY-(y0-offset)]]}},c3_chart_internal_fn.lineWithRegions=function(d,x,y,_regions){var i,j,sWithRegion,xp,yp,dx,dy,diff,diffx2,xValue,yValue,$$=this,config=$$.config,s="M",xOffset=$$.isCategorized()?.5:0,regions=[];if(isDefined(_regions))for(i=0;i<_regions.length;i++)regions[i]={},isUndefined(_regions[i].start)?regions[i].start=d[0].x:regions[i].start=$$.isTimeSeries()?$$.parseDate(_regions[i].start):_regions[i].start,isUndefined(_regions[i].end)?regions[i].end=d[d.length-1].x:regions[i].end=$$.isTimeSeries()?$$.parseDate(_regions[i].end):_regions[i].end;function generateM(points){return"M"+points[0][0]+" "+points[0][1]+" "+points[1][0]+" "+points[1][1]}for(
xValue=config.axis_rotated?function(d){return y(d.value)}:function(d){return x(d.x)},yValue=config.axis_rotated?function(d){return x(d.x)}:function(d){return y(d.value)},sWithRegion=$$.isTimeSeries()?function(xv0,xv1,j,points){var x0=xv0.x.getTime(),xv1=xv1.x-xv0.x,xv0=new Date(x0+xv1*j),xv1=new Date(x0+xv1*(j+points)),points=config.axis_rotated?[[y(yp(j)),x(xv0)],[y(yp(j+points)),x(xv1)]]:[[x(xv0),y(yp(j))],[x(xv1),y(yp(j+points))]];return generateM(points)}:function(d0,d1,j,points){points=config.axis_rotated?[[y(yp(j),!0),x(xp(j))],[y(yp(j+points),!0),x(xp(j+points))]]:[[x(xp(j),!0),y(yp(j))],[x(xp(j+points),!0),y(yp(j+points))]];return generateM(points)},
i=0;i<d.length;i++){if(isUndefined(regions)||!function(x,regions){for(var i=0;i<regions.length;i++)if(regions[i].start<x&&x<=regions[i].end)return 1}(d[i].x,regions))s+=" "+xValue(d[i])+" "+yValue(d[i]);else for(xp=$$.getScale(d[i-1].x+xOffset,d[i].x+xOffset,$$.isTimeSeries()),yp=$$.getScale(d[i-1].value,d[i].value),dx=x(d[i].x)-x(d[i-1].x),dy=y(d[i].value)-y(d[i-1].value),diffx2=2*(diff=2/Math.sqrt(Math.pow(dx,2)+Math.pow(dy,2))),j=diff;j<=1;j+=diffx2)s+=sWithRegion(d[i-1],d[i],j,diff);d[i].x}return s},c3_chart_internal_fn.updateArea=function(durationForExit){var $$=this,d3=$$.d3;$$.mainArea=$$.main.selectAll("."+CLASS.areas).selectAll("."+CLASS.area).data(
$$.lineData.bind($$)),$$.mainArea.enter().append("path").attr("class",$$.classArea.bind($$)).style("fill",$$.color).style("opacity",function(){return $$.orgAreaOpacity=+d3.select(this).style("opacity"),0}),$$.mainArea.style("opacity",$$.orgAreaOpacity),$$.mainArea.exit().transition().duration(durationForExit).style("opacity",0).remove()},c3_chart_internal_fn.redrawArea=function(drawArea,withTransition){return[(withTransition?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",drawArea).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},c3_chart_internal_fn.generateDrawArea=function(value1,isSub){var $$=this,
config=$$.config,area=$$.d3.svg.area(),getPoints=$$.generateGetAreaPoints(value1,isSub),yScaleGetter=isSub?$$.getSubYScale:$$.getYScale,xValue=function(d){return(isSub?$$.subxx:$$.xx).call($$,d)},value0=function(d,i){return 0<config.data_groups.length?getPoints(d,i)[0][1]:yScaleGetter.call($$,d.id)($$.getAreaBaseValue(d.id))},value1=function(d,i){return 0<config.data_groups.length?getPoints(d,i)[1][1]:yScaleGetter.call($$,d.id)(d.value)},area=config.axis_rotated?area.x0(value0).x1(value1).y(xValue):area.x(xValue).y0(config.area_above?0:value0).y1(value1);return config.line_connectNull||(area=area.defined(function(d){return null!==d.value})),function(d){
var values=config.line_connectNull?$$.filterRemoveNull(d.values):d.values,x0=0,path=0,path=$$.isAreaType(d)?($$.isStepType(d)&&(values=$$.convertValuesToStep(values)),area.interpolate($$.getInterpolate(d))(values)):(values[0]&&(x0=$$.x(values[0].x),path=$$.getYScale(d.id)(values[0].value)),config.axis_rotated?"M "+path+" "+x0:"M "+x0+" "+path);return path||"M 0 0"}},c3_chart_internal_fn.getAreaBaseValue=function(){return 0},c3_chart_internal_fn.generateGetAreaPoints=function(areaIndices,isSub){var $$=this,config=$$.config,areaTargetsNum=areaIndices.__max__+1,x=$$.getShapeX(0,areaTargetsNum,areaIndices,!!isSub),y=$$.getShapeY(!!isSub),
areaOffset=$$.getShapeOffset($$.isAreaType,areaIndices,!!isSub),yScale=isSub?$$.getSubYScale:$$.getYScale;return function(d,posY){var y0=yScale.call($$,d.id)(0),offset=areaOffset(d,posY)||y0,posX=x(d),posY=y(d);return config.axis_rotated&&(0<d.value&&posY<y0||d.value<0&&y0<posY)&&(posY=y0),[[posX,offset],[posX,posY-(y0-offset)],[posX,posY-(y0-offset)],[posX,offset]]}},c3_chart_internal_fn.updateCircle=function(){var $$=this;$$.mainCircle=$$.main.selectAll("."+CLASS.circles).selectAll("."+CLASS.circle).data($$.lineOrScatterData.bind($$)),$$.mainCircle.enter().append("circle").attr("class",$$.classCircle.bind($$)).attr("r",$$.pointR.bind($$)).style("fill",
$$.color),$$.mainCircle.style("opacity",$$.initialOpacityForCircle.bind($$)),$$.mainCircle.exit().remove()},c3_chart_internal_fn.redrawCircle=function(cx,cy,withTransition){var selectedCircles=this.main.selectAll("."+CLASS.selectedCircle);return[(withTransition?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",cx).attr("cy",cy),(withTransition?selectedCircles.transition(Math.random().toString()):selectedCircles).attr("cx",cx).attr("cy",cy)]},c3_chart_internal_fn.circleX=function(d){return d.x||0===d.x?this.x(d.x):null},
c3_chart_internal_fn.updateCircleY=function(){var lineIndices,getPoints,$$=this;0<$$.config.data_groups.length?(lineIndices=$$.getShapeIndices($$.isLineType),getPoints=$$.generateGetLinePoints(lineIndices),$$.circleY=function(d,i){return getPoints(d,i)[0][1]}):$$.circleY=function(d){return $$.getYScale(d.id)(d.value)}},c3_chart_internal_fn.getCircles=function(i,id){return(id?this.main.selectAll("."+CLASS.circles+this.getTargetSelectorSuffix(id)):this.main).selectAll("."+CLASS.circle+(isValue(i)?"-"+i:""))},c3_chart_internal_fn.expandCircles=function(i,id,reset){var r=this.pointExpandedR.bind(this);reset&&this.unexpandCircles(),this.getCircles(i,id).classed(
CLASS.EXPANDED,!0).attr("r",r)},c3_chart_internal_fn.unexpandCircles=function(i){var $$=this,r=$$.pointR.bind($$);$$.getCircles(i).filter(function(){return $$.d3.select(this).classed(CLASS.EXPANDED)}).classed(CLASS.EXPANDED,!1).attr("r",r)},c3_chart_internal_fn.pointR=function(d){var config=this.config;return this.isStepType(d)?0:isFunction(config.point_r)?config.point_r(d):config.point_r},c3_chart_internal_fn.pointExpandedR=function(d){var config=this.config;return config.point_focus_expand_enabled?isFunction(config.point_focus_expand_r)?config.point_focus_expand_r(d):config.point_focus_expand_r||1.75*this.pointR(d):this.pointR(d)},
c3_chart_internal_fn.pointSelectR=function(d){var config=this.config;return isFunction(config.point_select_r)?config.point_select_r(d):config.point_select_r||4*this.pointR(d)},c3_chart_internal_fn.isWithinCircle=function(cx,r){var cy=this.d3,mouse=cy.mouse(cx),cy=cy.select(cx),cx=+cy.attr("cx"),cy=+cy.attr("cy");return Math.sqrt(Math.pow(cx-mouse[0],2)+Math.pow(cy-mouse[1],2))<r},c3_chart_internal_fn.isWithinStep=function(that,y){return Math.abs(y-this.d3.mouse(that)[1])<30},c3_chart_internal_fn.getCurrentWidth=function(){var config=this.config;return config.size_width||this.getParentWidth()},c3_chart_internal_fn.getCurrentHeight=function(){
var config=this.config,h=config.size_height||this.getParentHeight();return 0<h?h:320/(this.hasType("gauge")&&!config.gauge_fullCircle?2:1)},c3_chart_internal_fn.getCurrentPaddingTop=function(){var padding=this.config,padding=isValue(padding.padding_top)?padding.padding_top:0;return this.title&&this.title.node()&&(padding+=this.getTitlePadding()),padding},c3_chart_internal_fn.getCurrentPaddingBottom=function(){var config=this.config;return isValue(config.padding_bottom)?config.padding_bottom:0},c3_chart_internal_fn.getCurrentPaddingLeft=function(withoutRecompute){var config=this.config;return isValue(config.padding_left
)?config.padding_left:config.axis_rotated?!config.axis_x_show||config.axis_x_inner?1:Math.max(ceil10(this.getAxisWidthByAxisId("x",withoutRecompute)),40):!config.axis_y_show||config.axis_y_inner?this.axis.getYAxisLabelPosition().isOuter?30:1:ceil10(this.getAxisWidthByAxisId("y",withoutRecompute))},c3_chart_internal_fn.getCurrentPaddingRight=function(){var $$=this,config=$$.config,legendWidthOnRight=$$.isLegendRight?$$.getLegendWidth()+20:0;return isValue(config.padding_right)?config.padding_right+1:config.axis_rotated?10+legendWidthOnRight:!config.axis_y2_show||config.axis_y2_inner?2+legendWidthOnRight+($$.axis.getY2AxisLabelPosition().isOuter?20:0):ceil10(
$$.getAxisWidthByAxisId("y2"))+legendWidthOnRight},c3_chart_internal_fn.getParentRectValue=function(key){for(var v,parent=this.selectChart.node();parent&&"BODY"!==parent.tagName;){try{v=parent.getBoundingClientRect()[key]}catch(e){"width"===key&&(v=parent.offsetWidth)}if(v)break;parent=parent.parentNode}return v},c3_chart_internal_fn.getParentWidth=function(){return this.getParentRectValue("width")},c3_chart_internal_fn.getParentHeight=function(){var h=this.selectChart.style("height");return 0<h.indexOf("px")?+h.replace("px",""):0},c3_chart_internal_fn.getSvgLeft=function(svgLeft){var $$=this,hasArc=$$.config,
chartRect=hasArc.axis_rotated||!hasArc.axis_rotated&&!hasArc.axis_y_inner,svgRect=hasArc.axis_rotated?CLASS.axisX:CLASS.axisY,hasArc=$$.main.select("."+svgRect).node(),svgRect=hasArc&&chartRect?hasArc.getBoundingClientRect():{right:0},chartRect=$$.selectChart.node().getBoundingClientRect(),hasArc=$$.hasArcType(),svgLeft=svgRect.right-chartRect.left-(hasArc?0:$$.getCurrentPaddingLeft(svgLeft));return 0<svgLeft?svgLeft:0},c3_chart_internal_fn.getAxisWidthByAxisId=function(id,withoutRecompute){var position=this.axis.getLabelPositionById(id);return this.axis.getMaxTickWidth(id,withoutRecompute)+(position.isInner?20:40)},
c3_chart_internal_fn.getHorizontalAxisHeight=function(axisId){var $$=this,config=$$.config,h=30;return"x"!==axisId||config.axis_x_show?"x"===axisId&&config.axis_x_height?config.axis_x_height:"y"!==axisId||config.axis_y_show?"y2"!==axisId||config.axis_y2_show?("x"===axisId&&!config.axis_rotated&&config.axis_x_tick_rotate&&(h=30+$$.axis.getMaxTickWidth(axisId)*Math.cos(Math.PI*(90-config.axis_x_tick_rotate)/180)),"y"===axisId&&config.axis_rotated&&config.axis_y_tick_rotate&&(h=30+$$.axis.getMaxTickWidth(axisId)*Math.cos(Math.PI*(90-config.axis_y_tick_rotate)/180)),h+($$.axis.getLabelPositionById(axisId).isInner?0:10)+("y2"===axisId?-10:0)
):$$.rotated_padding_top:!config.legend_show||$$.isLegendRight||$$.isLegendInset?1:10:8},c3_chart_internal_fn.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},c3_chart_internal_fn.initBrush=function(){var $$=this,d3=$$.d3;$$.brush=d3.svg.brush().on("brush",function(){$$.redrawForBrush()}),$$.brush.update=function(){return $$.context&&$$.context.select("."+CLASS.brush).call(this),this},$$.brush.scale=function(scale){return $$.config.axis_rotated?this.y(scale):this.x(scale)}},c3_chart_internal_fn.initSubchart=function(){var $$=this,config=$$.config,context=$$.context=$$.svg.append("g").attr("transform",$$.getTranslate("context")),
visibility=config.subchart_show?"visible":"hidden";context.style("visibility",visibility),context.append("g").attr("clip-path",$$.clipPathForSubchart).attr("class",CLASS.chart),context.select("."+CLASS.chart).append("g").attr("class",CLASS.chartBars),context.select("."+CLASS.chart).append("g").attr("class",CLASS.chartLines),context.append("g").attr("clip-path",$$.clipPath).attr("class",CLASS.brush).call($$.brush),$$.axes.subx=context.append("g").attr("class",CLASS.axisX).attr("transform",$$.getTranslate("subx")).attr("clip-path",config.axis_rotated?"":$$.clipPathForXAxis).style("visibility",config.subchart_axis_x_show?visibility:"hidden")},
c3_chart_internal_fn.updateTargetsForSubchart=function(targets){var $$=this,context=$$.context,config=$$.config,classChartBar=$$.classChartBar.bind($$),classBars=$$.classBars.bind($$),contextLineEnter=$$.classChartLine.bind($$),classLines=$$.classLines.bind($$),classAreas=$$.classAreas.bind($$);config.subchart_show&&(context.select("."+CLASS.chartBars).selectAll("."+CLASS.chartBar).data(targets).attr("class",classChartBar).enter().append("g").style("opacity",0).attr("class",classChartBar).append("g").attr("class",classBars),(contextLineEnter=context.select("."+CLASS.chartLines).selectAll("."+CLASS.chartLine).data(targets).attr("class",contextLineEnter
).enter().append("g").style("opacity",0).attr("class",contextLineEnter)).append("g").attr("class",classLines),contextLineEnter.append("g").attr("class",classAreas),context.selectAll("."+CLASS.brush+" rect").attr(config.axis_rotated?"width":"height",config.axis_rotated?$$.width2:$$.height2))},c3_chart_internal_fn.updateBarForSubchart=function(durationForExit){var $$=this;$$.contextBar=$$.context.selectAll("."+CLASS.bars).selectAll("."+CLASS.bar).data($$.barData.bind($$)),$$.contextBar.enter().append("path").attr("class",$$.classBar.bind($$)).style("stroke","none").style("fill",$$.color),$$.contextBar.style("opacity",$$.initialOpacity.bind($$)),
$$.contextBar.exit().transition().duration(durationForExit).style("opacity",0).remove()},c3_chart_internal_fn.redrawBarForSubchart=function(drawBarOnSub,withTransition,duration){(withTransition?this.contextBar.transition(Math.random().toString()).duration(duration):this.contextBar).attr("d",drawBarOnSub).style("opacity",1)},c3_chart_internal_fn.updateLineForSubchart=function(durationForExit){var $$=this;$$.contextLine=$$.context.selectAll("."+CLASS.lines).selectAll("."+CLASS.line).data($$.lineData.bind($$)),$$.contextLine.enter().append("path").attr("class",$$.classLine.bind($$)).style("stroke",$$.color),$$.contextLine.style("opacity",$$.initialOpacity.bind(
$$)),$$.contextLine.exit().transition().duration(durationForExit).style("opacity",0).remove()},c3_chart_internal_fn.redrawLineForSubchart=function(drawLineOnSub,withTransition,duration){(withTransition?this.contextLine.transition(Math.random().toString()).duration(duration):this.contextLine).attr("d",drawLineOnSub).style("opacity",1)},c3_chart_internal_fn.updateAreaForSubchart=function(durationForExit){var $$=this,d3=$$.d3;$$.contextArea=$$.context.selectAll("."+CLASS.areas).selectAll("."+CLASS.area).data($$.lineData.bind($$)),$$.contextArea.enter().append("path").attr("class",$$.classArea.bind($$)).style("fill",$$.color).style("opacity",function(){
return $$.orgAreaOpacity=+d3.select(this).style("opacity"),0}),$$.contextArea.style("opacity",0),$$.contextArea.exit().transition().duration(durationForExit).style("opacity",0).remove()},c3_chart_internal_fn.redrawAreaForSubchart=function(drawAreaOnSub,withTransition,duration){(withTransition?this.contextArea.transition(Math.random().toString()).duration(duration):this.contextArea).attr("d",drawAreaOnSub).style("fill",this.color).style("opacity",this.orgAreaOpacity)},c3_chart_internal_fn.redrawSubchart=function(withSubchart,transitions,duration,durationForExit,drawAreaOnSub,drawBarOnSub,drawLineOnSub){var $$=this,d3=$$.d3,config=$$.config;$$.context.style(
"visibility",config.subchart_show?"visible":"hidden"),config.subchart_show&&(d3.event&&"zoom"===d3.event.type&&$$.brush.extent($$.x.orgDomain()).update(),withSubchart&&($$.brush.empty()||$$.brush.extent($$.x.orgDomain()).update(),drawAreaOnSub=$$.generateDrawArea(drawAreaOnSub,!0),drawBarOnSub=$$.generateDrawBar(drawBarOnSub,!0),drawLineOnSub=$$.generateDrawLine(drawLineOnSub,!0),$$.updateBarForSubchart(duration),$$.updateLineForSubchart(duration),$$.updateAreaForSubchart(duration),$$.redrawBarForSubchart(drawBarOnSub,duration,duration),$$.redrawLineForSubchart(drawLineOnSub,duration,duration),$$.redrawAreaForSubchart(drawAreaOnSub,duration,duration)))},
c3_chart_internal_fn.redrawForBrush=function(){var $$=this,x=$$.x;$$.redraw({withTransition:!1,withY:$$.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),$$.config.subchart_onbrush.call($$.api,x.orgDomain())},c3_chart_internal_fn.transformContext=function(withTransition,transitions){var subXAxis;transitions&&transitions.axisSubX?subXAxis=transitions.axisSubX:(subXAxis=this.context.select("."+CLASS.axisX),withTransition&&(subXAxis=subXAxis.transition())),this.context.attr("transform",this.getTranslate("context")),subXAxis.attr("transform",this.getTranslate("subx"))},c3_chart_internal_fn.getDefaultExtent=function(){var $$=this,
extent=$$.config,extent=isFunction(extent.axis_x_extent)?extent.axis_x_extent($$.getXDomain($$.data.targets)):extent.axis_x_extent;return $$.isTimeSeries()&&(extent=[$$.parseDate(extent[0]),$$.parseDate(extent[1])]),extent},c3_chart_internal_fn.initText=function(){this.main.select("."+CLASS.chart).append("g").attr("class",CLASS.chartTexts),this.mainText=this.d3.selectAll([])},c3_chart_internal_fn.updateTargetsForText=function(targets){var $$=this,classChartText=$$.classChartText.bind($$),classTexts=$$.classTexts.bind($$),classFocus=$$.classFocus.bind($$);$$.main.select("."+CLASS.chartTexts).selectAll("."+CLASS.chartText).data(targets).attr("class",function(d
){return classChartText(d)+classFocus(d)}).enter().append("g").attr("class",classChartText).style("opacity",0).style("pointer-events","none").append("g").attr("class",classTexts)},c3_chart_internal_fn.updateText=function(durationForExit){var $$=this,config=$$.config,barOrLineData=$$.barOrLineData.bind($$),classText=$$.classText.bind($$);$$.mainText=$$.main.selectAll("."+CLASS.texts).selectAll("."+CLASS.text).data(barOrLineData),$$.mainText.enter().append("text").attr("class",classText).attr("text-anchor",function(d){return config.axis_rotated?d.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(d){return $$.color(d)}).style(
"fill-opacity",0),$$.mainText.text(function(d,i,j){return $$.dataLabelFormat(d.id)(d.value,d.id,i,j)}),$$.mainText.exit().transition().duration(durationForExit).style("fill-opacity",0).remove()},c3_chart_internal_fn.redrawText=function(xForText,yForText,forFlow,withTransition){return[(withTransition?this.mainText.transition():this.mainText).attr("x",xForText).attr("y",yForText).style("fill",this.color).style("fill-opacity",forFlow?0:this.opacityForText.bind(this))]},c3_chart_internal_fn.getTextRect=function(text,cls,font){var rect,dummy=this.d3.select("body").append("div").classed("c3",!0),svg=dummy.append("svg").style("visibility","hidden").style("position"
,"fixed").style("top",0).style("left",0),font=this.d3.select(font).style("font");return svg.selectAll(".dummy").data([text]).enter().append("text").classed(cls||"",!0).style("font",font).text(text).each(function(){rect=this.getBoundingClientRect()}),dummy.remove(),rect},c3_chart_internal_fn.generateXYForText=function(areaIndices,barIndices,lineIndices,forX){var $$=this,getAreaPoints=$$.generateGetAreaPoints(areaIndices,!1),getBarPoints=$$.generateGetBarPoints(barIndices,!1),getLinePoints=$$.generateGetLinePoints(lineIndices,!1),getter=forX?$$.getXForText:$$.getYForText;return function(d,i){var getPoints=$$.isAreaType(d)?getAreaPoints:$$.isBarType(d
)?getBarPoints:getLinePoints;return getter.call($$,getPoints(d,i),d,this)}},c3_chart_internal_fn.getXForText=function(xPos,d,padding){var $$=this,box=padding.getBoundingClientRect(),xPos=$$.config.axis_rotated?(padding=$$.isBarType(d)?4:6,xPos[2][1]+padding*(d.value<0?-1:1)):$$.hasType("bar")?(xPos[2][0]+xPos[0][0])/2:xPos[0][0];return null===d.value&&(xPos>$$.width?xPos=$$.width-box.width:xPos<0&&(xPos=4)),xPos},c3_chart_internal_fn.getYForText=function(points,d,box){var yPos,$$=this,box=box.getBoundingClientRect();return $$.config.axis_rotated?yPos=(points[0][0]+points[2][0]+.6*box.height)/2:(yPos=points[2][1],d.value<0||0===d.value&&!$$.hasPositiveValue?(
yPos+=box.height,$$.isBarType(d)&&$$.isSafari()?yPos-=3:!$$.isBarType(d)&&$$.isChrome()&&(yPos+=3)):yPos+=$$.isBarType(d)?-3:-6),null!==d.value||$$.config.axis_rotated||(yPos<box.height?yPos=box.height:yPos>this.height&&(yPos=this.height-4)),yPos},c3_chart_internal_fn.initTitle=function(){this.title=this.svg.append("text").text(this.config.title_text).attr("class",this.CLASS.title)},c3_chart_internal_fn.redrawTitle=function(){var $$=this;$$.title.attr("x",$$.xForTitle.bind($$)).attr("y",$$.yForTitle.bind($$))},c3_chart_internal_fn.xForTitle=function(){var $$=this,x=$$.config,position=x.title_position||"left",x=0<=position.indexOf("right"
)?$$.currentWidth-$$.getTextRect($$.title.node().textContent,$$.CLASS.title,$$.title.node()).width-x.title_padding.right:0<=position.indexOf("center")?($$.currentWidth-$$.getTextRect($$.title.node().textContent,$$.CLASS.title,$$.title.node()).width)/2:x.title_padding.left;return x},c3_chart_internal_fn.yForTitle=function(){var $$=this;return $$.config.title_padding.top+$$.getTextRect($$.title.node().textContent,$$.CLASS.title,$$.title.node()).height},c3_chart_internal_fn.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},c3_chart_internal_fn.initTooltip=function(){var i,$$=this,config=$$.config;if(
$$.tooltip=$$.selectChart.style("position","relative").append("div").attr("class",CLASS.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),config.tooltip_init_show){if($$.isTimeSeries()&&isString(config.tooltip_init_x)){for(config.tooltip_init_x=$$.parseDate(config.tooltip_init_x),i=0;i<$$.data.targets[0].values.length&&$$.data.targets[0].values[i].x-config.tooltip_init_x!=0;i++);config.tooltip_init_x=i}$$.tooltip.html(config.tooltip_contents.call($$,$$.data.targets.map(function(d){return $$.addName(d.values[config.tooltip_init_x])}),$$.axis.getXAxisTickFormat(),$$.getYFormat($$.hasArcType()),$$.color)),
$$.tooltip.style("top",config.tooltip_init_position.top).style("left",config.tooltip_init_position.left).style("display","block")}},c3_chart_internal_fn.getTooltipSortFunction=function(){var $$=this,config=$$.config;if(0===config.data_groups.length||void 0!==config.tooltip_order){var order=config.tooltip_order;void 0===order&&(order=config.data_order);var valueOf=function(obj){return obj?obj.value:null};if(isString(order)&&"asc"===order.toLowerCase())return function(a,b){return valueOf(a)-valueOf(b)};if(isString(order)&&"desc"===order.toLowerCase())return function(a,b){return valueOf(b)-valueOf(a)};if(isFunction(order)){var sortFunction=order
;return void 0===config.tooltip_order&&(sortFunction=function(a,b){return order(a?{id:a.id,values:[a]}:null,b?{id:b.id,values:[b]}:null)}),sortFunction}return isArray(order)?function(a,b){return order.indexOf(a.id)-order.indexOf(b.id)}:void 0}var ids=$$.orderTargets($$.data.targets).map(function(i){return i.id});return($$.isOrderAsc()||$$.isOrderDesc())&&(ids=ids.reverse()),function(a,b){return ids.indexOf(a.id)-ids.indexOf(b.id)}},c3_chart_internal_fn.getTooltipContent=function(d,defaultTitleFormat,tooltipSortFunction,color){var text,i,value,name,bgcolor,$$=this,config=$$.config,titleFormat=config.tooltip_format_title||defaultTitleFormat,
nameFormat=config.tooltip_format_name||function(name){return name},valueFormat=config.tooltip_format_value||tooltipSortFunction,tooltipSortFunction=this.getTooltipSortFunction();for(tooltipSortFunction&&d.sort(tooltipSortFunction),i=0;i<d.length;i++)d[i]&&(d[i].value||0===d[i].value)&&(text||(bgcolor=sanitise(titleFormat?titleFormat(d[i].x):d[i].x),text="<table class='"+$$.CLASS.tooltip+"'>"+(bgcolor||0===bgcolor?"<tr><th colspan='2'>"+bgcolor+"</th></tr>":"")),void 0!==(value=sanitise(valueFormat(d[i].value,d[i].ratio,d[i].id,d[i].index,d)))&&null!==d[i].name&&(name=sanitise(nameFormat(d[i].name,d[i].ratio,d[i].id,d[i].index)),
bgcolor=$$.levelColor?$$.levelColor(d[i].value):color(d[i].id),text+="<tr class='"+$$.CLASS.tooltipName+"-"+$$.getTargetSelectorSuffix(d[i].id)+"'>",text+="<td class='name'><span style='background-color:"+bgcolor+"'></span>"+name+"</td>",text+="<td class='value'>"+value+"</td>",text+="</tr>"));return text+"</table>"},c3_chart_internal_fn.tooltipPosition=function(dataToShow,tWidth,tHeight,mouse){var tooltipLeft,tooltipRight,tooltipTop,chartRight,$$=this,config=$$.config,d3=$$.d3,svgLeft=$$.hasArcType(),mouse=d3.mouse(mouse);return svgLeft?(tooltipLeft=($$.width-($$.isLegendRight?$$.getLegendWidth():0))/2+mouse[0],tooltipTop=($$.hasType("gauge"
)?$$.height:$$.height/2)+mouse[1]+20):(svgLeft=$$.getSvgLeft(!0),tooltipTop=config.axis_rotated?(tooltipRight=(tooltipLeft=svgLeft+mouse[0]+100)+tWidth,chartRight=$$.currentWidth-$$.getCurrentPaddingRight(),$$.x(dataToShow[0].x)+20):(tooltipRight=(tooltipLeft=svgLeft+$$.getCurrentPaddingLeft(!0)+$$.x(dataToShow[0].x)+20)+tWidth,chartRight=svgLeft+$$.currentWidth-$$.getCurrentPaddingRight(),mouse[1]+15),chartRight<tooltipRight&&(tooltipLeft-=tooltipRight-chartRight+20),tooltipTop+tHeight>$$.currentHeight&&(tooltipTop-=tHeight+30)),tooltipTop<0&&(tooltipTop=0),{top:tooltipTop,left:tooltipLeft}},c3_chart_internal_fn.showTooltip=function(tWidth,position){
var $$=this,config=$$.config,tHeight=$$.hasArcType(),dataToShow=tWidth.filter(function(d){return d&&isValue(d.value)}),positionFunction=config.tooltip_position||c3_chart_internal_fn.tooltipPosition;0!==dataToShow.length&&config.tooltip_show&&($$.tooltip.html(config.tooltip_contents.call($$,tWidth,$$.axis.getXAxisTickFormat(),$$.getYFormat(tHeight),$$.color)).style("display","block"),tWidth=$$.tooltip.property("offsetWidth"),tHeight=$$.tooltip.property("offsetHeight"),position=positionFunction.call(this,dataToShow,tWidth,tHeight,position),$$.tooltip.style("top",position.top+"px").style("left",position.left+"px"))},c3_chart_internal_fn.hideTooltip=function(){
this.tooltip.style("display","none")},c3_chart_internal_fn.setTargetType=function(targetIds,type){var $$=this,config=$$.config;$$.mapToTargetIds(targetIds).forEach(function(id){$$.withoutFadeIn[id]=type===config.data_types[id],config.data_types[id]=type}),targetIds||(config.data_type=type)},c3_chart_internal_fn.hasType=function(type,targets){var types=this.config.data_types,has=!1;return(targets=targets||this.data.targets)&&targets.length?targets.forEach(function(t){t=types[t.id];(t&&0<=t.indexOf(type)||!t&&"line"===type)&&(has=!0)}):Object.keys(types).length?Object.keys(types).forEach(function(id){types[id]===type&&(has=!0)}
):has=this.config.data_type===type,has},c3_chart_internal_fn.hasArcType=function(targets){return this.hasType("pie",targets)||this.hasType("donut",targets)||this.hasType("gauge",targets)},c3_chart_internal_fn.isLineType=function(id){var config=this.config,id=isString(id)?id:id.id;return!config.data_types[id]||0<=["line","spline","area","area-spline","step","area-step"].indexOf(config.data_types[id])},c3_chart_internal_fn.isStepType=function(id){id=isString(id)?id:id.id;return 0<=["step","area-step"].indexOf(this.config.data_types[id])},c3_chart_internal_fn.isSplineType=function(id){id=isString(id)?id:id.id;return 0<=["spline","area-spline"].indexOf(
this.config.data_types[id])},c3_chart_internal_fn.isAreaType=function(id){id=isString(id)?id:id.id;return 0<=["area","area-spline","area-step"].indexOf(this.config.data_types[id])},c3_chart_internal_fn.isBarType=function(id){id=isString(id)?id:id.id;return"bar"===this.config.data_types[id]},c3_chart_internal_fn.isScatterType=function(id){id=isString(id)?id:id.id;return"scatter"===this.config.data_types[id]},c3_chart_internal_fn.isPieType=function(id){id=isString(id)?id:id.id;return"pie"===this.config.data_types[id]},c3_chart_internal_fn.isGaugeType=function(id){id=isString(id)?id:id.id;return"gauge"===this.config.data_types[id]},
c3_chart_internal_fn.isDonutType=function(id){id=isString(id)?id:id.id;return"donut"===this.config.data_types[id]},c3_chart_internal_fn.isArcType=function(d){return this.isPieType(d)||this.isDonutType(d)||this.isGaugeType(d)},c3_chart_internal_fn.lineData=function(d){return this.isLineType(d)?[d]:[]},c3_chart_internal_fn.arcData=function(d){return this.isArcType(d.data)?[d]:[]},c3_chart_internal_fn.barData=function(d){return this.isBarType(d)?d.values:[]},c3_chart_internal_fn.lineOrScatterData=function(d){return this.isLineType(d)||this.isScatterType(d)?d.values:[]},c3_chart_internal_fn.barOrLineData=function(d){return this.isBarType(d)||this.isLineType(d
)?d.values:[]},c3_chart_internal_fn.isInterpolationType=function(type){return 0<=["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(type)},c3_chart_internal_fn.isSafari=function(){var ua=window.navigator.userAgent;return 0<=ua.indexOf("Safari")&&ua.indexOf("Chrome")<0},c3_chart_internal_fn.isChrome=function(){return 0<=window.navigator.userAgent.indexOf("Chrome")},c3_chart_internal_fn.initZoom=function(){var startEvent,$$=this,d3=$$.d3,config=$$.config;$$.zoom=d3.behavior.zoom().on("zoomstart",function(){startEvent=d3.event.sourceEvent,
$$.zoom.altDomain=d3.event.sourceEvent.altKey?$$.x.orgDomain():null,config.zoom_onzoomstart.call($$.api,d3.event.sourceEvent)}).on("zoom",function(){$$.redrawForZoom.call($$)}).on("zoomend",function(){var event=d3.event.sourceEvent;event&&startEvent.clientX===event.clientX&&startEvent.clientY===event.clientY||($$.redrawEventRect(),$$.updateZoom(),config.zoom_onzoomend.call($$.api,$$.x.orgDomain()))}),$$.zoom.scale=function(scale){return config.axis_rotated?this.y(scale):this.x(scale)},$$.zoom.orgScaleExtent=function(){var extent=config.zoom_extent||[1,10];return[extent[0],Math.max($$.getMaxDataCount()/extent[1],extent[1])]},
$$.zoom.updateScaleExtent=function(){var ratio=diffDomain($$.x.orgDomain())/diffDomain($$.getZoomDomain()),extent=this.orgScaleExtent();return this.scaleExtent([extent[0]*ratio,extent[1]*ratio]),this}},c3_chart_internal_fn.getZoomDomain=function(){var config=this.config,d3=this.d3;return[d3.min([this.orgXDomain[0],config.zoom_x_min]),d3.max([this.orgXDomain[1],config.zoom_x_max])]},c3_chart_internal_fn.updateZoom=function(){var z=this.config.zoom_enabled?this.zoom:function(){};this.main.select("."+CLASS.zoomRect).call(z).on("dblclick.zoom",null),this.main.selectAll("."+CLASS.eventRect).call(z).on("dblclick.zoom",null)},
c3_chart_internal_fn.redrawForZoom=function(){var $$=this,d3=$$.d3,config=$$.config,zoom=$$.zoom,x=$$.x;if(config.zoom_enabled&&0!==$$.filterTargetsToShow($$.data.targets).length){if("mousemove"===d3.event.sourceEvent.type&&zoom.altDomain)return x.domain(zoom.altDomain),void zoom.scale(x).updateScaleExtent();$$.isCategorized()&&x.orgDomain()[0]===$$.orgXDomain[0]&&x.domain([$$.orgXDomain[0]-1e-10,x.orgDomain()[1]]),$$.redraw({withTransition:!1,withY:config.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===d3.event.sourceEvent.type&&($$.cancelClick=!0),config.zoom_onzoom.call($$.api,x.orgDomain())}},c3}),define("core/asyncProcess"
,["lodash","core/promise","core/eventifier"],function(_,Promise,eventifier){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,function(){var running=!1,steps=[];return eventifier({isRunning:function(){return running},start:function(cb){var started=!1;return running||(steps=[],started=running=!0,_.isFunction(cb)&&cb(),this.trigger("start")),started},addStep:function(step){return steps.push(step),this.trigger("step",
step),this},done:function(cb){var self=this,finish=Promise.all(steps);return finish.then(function(data){running=!1,_.isFunction(cb)&&cb(null,data),self.trigger("resolve",data)}).catch(function(error){running=!1,_.isFunction(cb)&&cb(error||!0),self.trigger("reject",error)}),finish}})}}),define("core/promiseQueue",["lodash","core/promise","core/eventifier","lib/uuid"],function(_,Promise,eventifier,uuid){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,
"default")?eventifier.default:eventifier,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid,function(){function getId(){var id="promise-"+uuid(6);return void 0===queue[id]?id:getId()}var queue={};return{add:function(promise){return queue[getId()]=promise,this},getValues:function(){return _.values(queue)},clear:function(){return queue={},this},serie:function(promiseFn){var id=getId(),currentQueue=this.getValues(),emitter=eventifier();return queue[id]=new Promise(function(resolve){emitter.on("fulfilled",resolve)}),Promise.all(currentQueue).then(function(){if(_.isFunction(promiseFn))return promiseFn()}).then(function(data){
return emitter.trigger("fulfilled"),delete queue[id],data}).catch(function(err){throw queue={},err})}}}}),define("core/store/webstorage",["lodash","core/promiseQueue","lib/uuid"],function(_,promiseQueue,uuid){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,promiseQueue=promiseQueue&&Object.prototype.hasOwnProperty.call(promiseQueue,"default")?promiseQueue.default:promiseQueue,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid;return function(storage){var writingQueue=promiseQueue(),setEntry=function(storeName,key,value){return new Promise(function(resolve,reject){try{storage.setItem("".concat(
"tao-store-"+storeName,".").concat(key),JSON.stringify(value)),resolve(!0)}catch(ex){reject(ex)}})},getEntry=function(storeName,key){return new Promise(function(resolve,reject){var value;try{null===(value=storage.getItem("".concat("tao-store-"+storeName,".").concat(key)))?resolve():resolve(JSON.parse(value))}catch(ex){reject(ex)}})},getKnownStores=function(){return getEntry("index","stores")},webStorageBackend=function(storeName){var name,registered=!1,openStore=function(){return registered?Promise.resolve():function(storeName){return getKnownStores().then(function(stores){return(stores=stores||{})[storeName]={name:storeName,lastOpen:Date.now()},setEntry(
"index","stores",stores)})}(storeName).then(function(){registered=!0})};if(_.isEmpty(storeName)||!_.isString(storeName))throw new TypeError("The store name is required");return name="".concat("tao-store-"+storeName,"."),{getItem:function(key){return writingQueue.serie(function(){return openStore().then(function(){return getEntry(storeName,key)})})},setItem:function(key,value){return writingQueue.serie(function(){return openStore().then(function(){return setEntry(storeName,key,value)})})},removeItem:function(key){return writingQueue.serie(function(){return openStore().then(function(){return storage.removeItem(name+key),!0})})},getItems:function(){
var keyPattern=new RegExp("^".concat(name));return writingQueue.serie(function(){return openStore().then(function(){return _(storage).map(function(entry,index){return storage.key(index)}).filter(function(key){return keyPattern.test(key)}).reduce(function(acc,key){var value,exposedKey=key.replace(name,"");try{null!==(value=storage.getItem(key))&&(acc[exposedKey]=JSON.parse(value))}catch(ex){acc[exposedKey]=null}return acc},{})})})},clear:function(){var keyPattern=new RegExp("^".concat(name));return writingQueue.serie(function(){return openStore().then(function(){return _(storage).map(function(entry,index){return storage.key(index)}).filter(function(key){
return keyPattern.test(key)}).forEach(function(key){storage.removeItem(key)}),!0})})},removeStore:function(){return this.clear().then(function(){return function(storeName){return getKnownStores().then(function(stores){return delete(stores=stores||{})[storeName],setEntry("index","stores",stores)})}(storeName)})}}};return webStorageBackend.removeAll=function(validate){return _.isFunction(validate)||(validate=null),getKnownStores().then(function(removing){removing=_(removing).filter(function(store,storeName){return!validate||validate(storeName,store)}).map(function(store){return store&&store.name?webStorageBackend(store.name).removeStore():Promise.resolve()}
).value();return Promise.all(removing)})},webStorageBackend.getAll=function(validate){return getKnownStores().then(function(stores){return _(stores).filter(function(store,storeName){return!validate||validate(storeName,store)}).map(function(store){return store.name}).value()})},webStorageBackend.getStoreIdentifier=function(){var idStore=webStorageBackend("id");return idStore.getItem("id").then(function(id){return _.isEmpty(id)?(id=uuid(),idStore.setItem("id",id).then(function(){return id})):id})},webStorageBackend}}),define("core/store/localstorage",["core/store/webstorage"],function(webstorageFactory){"use strict";return(
webstorageFactory=webstorageFactory&&Object.prototype.hasOwnProperty.call(webstorageFactory,"default")?webstorageFactory.default:webstorageFactory)(window.localStorage)}),define("core/store/sessionstorage",["core/store/webstorage"],function(webstorageFactory){"use strict";return(webstorageFactory=webstorageFactory&&Object.prototype.hasOwnProperty.call(webstorageFactory,"default")?webstorageFactory.default:webstorageFactory)(window.sessionStorage)}),define("core/store/indexeddb",["lodash","core/promise","lib/uuid"],function(_,Promise,uuid){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(
obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var module,knownStores,idbstore=(function(module){var definition,global;definition=function(){
var defaultErrorHandler=function(error){throw error},defaultSuccessHandler=function(){},defaults={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:defaultErrorHandler,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},IDBStore=function(kwArgs,availableImplementations){for(var key in void 0===availableImplementations&&"function"==typeof kwArgs&&(availableImplementations=kwArgs),"[object Object]"!=Object.prototype.toString.call(kwArgs)&&(kwArgs={}),defaults)this[key]=(void 0!==kwArgs[key]?kwArgs:defaults)[key]
;this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,availableImplementations&&(this.onStoreReady=availableImplementations);var env="object"==("undefined"==typeof window?"undefined":_typeof(window))?window:self,availableImplementations=this.implementationPreference.filter(function(implName){return implName in env});this.implementation=availableImplementations[0],this.idb=env[this.implementation],this.keyRange=env.IDBKeyRange||env.webkitIDBKeyRange||env.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",
PREV_NO_DUPLICATE:"prevunique"},this.openDB()},proto={constructor:IDBStore,version:"1.7.0",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var openRequest=this.idb.open(this.dbName,this.dbVersion),preventSuccessCallback=!1;openRequest.onerror=function(error){var gotVersionErr=!1;"error"in error.target?gotVersionErr="VersionError"==error.target.error.name:"errorCode"in error.target&&(gotVersionErr=12==error.target.errorCode),gotVersionErr?this.onError(new Error(
"The version number provided is lower than the existing one.")):this.onError(error)}.bind(this),openRequest.onsuccess=function(emptyTransaction){var existingIndexes;preventSuccessCallback||(this.db?this.onStoreReady():(this.db=emptyTransaction.target.result,"string"!=typeof this.db.version?this.db.objectStoreNames.contains(this.storeName)?(emptyTransaction=this.db.transaction([this.storeName],this.consts.READ_ONLY),this.store=emptyTransaction.objectStore(this.storeName),existingIndexes=Array.prototype.slice.call(this.getIndexList()),this.indexes.forEach(function(indexData){var actualIndex,indexName=indexData.name;if(!indexName
)return preventSuccessCallback=!0,void this.onError(new Error("Cannot create index: No index name given."));this.normalizeIndexData(indexData),this.hasIndex(indexName)?(actualIndex=this.store.index(indexName),this.indexComplies(actualIndex,indexData)||(preventSuccessCallback=!0,this.onError(new Error('Cannot modify index "'+indexName+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),existingIndexes.splice(existingIndexes.indexOf(indexName),1)):(preventSuccessCallback=!0,this.onError(new Error('Cannot create new index "'+indexName+'" for current version. Please bump version number to '+(this.dbVersion+1)+".")))},this),
existingIndexes.length&&(preventSuccessCallback=!0,this.onError(new Error('Cannot delete index(es) "'+existingIndexes.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),preventSuccessCallback||this.onStoreReady()):this.onError(new Error("Object store couldn't be created.")):this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))))}.bind(this),openRequest.onupgradeneeded=function(optionalParameters){this.db=optionalParameters.target.result,this.db.objectStoreNames.contains(this.storeName)?this.store=optionalParameters.target.transaction.objectStore(
this.storeName):(optionalParameters={autoIncrement:this.autoIncrement},null!==this.keyPath&&(optionalParameters.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,optionalParameters));var existingIndexes=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(indexData){var actualIndex,indexName=indexData.name;indexName||(preventSuccessCallback=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(indexData),this.hasIndex(indexName)?(actualIndex=this.store.index(indexName),this.indexComplies(actualIndex,indexData)||(this.store.deleteIndex(indexName),
this.store.createIndex(indexName,indexData.keyPath,{unique:indexData.unique,multiEntry:indexData.multiEntry})),existingIndexes.splice(existingIndexes.indexOf(indexName),1)):this.store.createIndex(indexName,indexData.keyPath,{unique:indexData.unique,multiEntry:indexData.multiEntry})},this),existingIndexes.length&&existingIndexes.forEach(function(_indexName){this.store.deleteIndex(_indexName)},this)}.bind(this)},deleteDatabase:function(onSuccess,onError){var deleteRequest;this.idb.deleteDatabase?(this.db.close(),(deleteRequest=this.idb.deleteDatabase(this.dbName)).onsuccess=onSuccess,deleteRequest.onerror=onError):onError(new Error(
"Browser does not support IndexedDB deleteDatabase!"))},put:function(putRequest,value,onSuccess,onError){null!==this.keyPath&&(onError=onSuccess,onSuccess=value,value=putRequest),onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler;var hasSuccess=!1,result=null,putTransaction=this.db.transaction([this.storeName],this.consts.READ_WRITE);return putTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},putTransaction.onabort=onError,putTransaction.onerror=onError,(putRequest=null!==this.keyPath?(this._addIdPropertyIfNeeded(value),putTransaction.objectStore(this.storeName).put(value)):putTransaction.objectStore(
this.storeName).put(value,putRequest)).onsuccess=function(event){hasSuccess=!0,result=event.target.result},putRequest.onerror=onError,putTransaction},get:function(getRequest,onSuccess,onError){onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler;var hasSuccess=!1,result=null,getTransaction=this.db.transaction([this.storeName],this.consts.READ_ONLY);getTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},getTransaction.onabort=onError,getTransaction.onerror=onError;getRequest=getTransaction.objectStore(this.storeName).get(getRequest);return getRequest.onsuccess=function(event){hasSuccess=!0,
result=event.target.result},getRequest.onerror=onError,getTransaction},remove:function(deleteRequest,onSuccess,onError){onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler;var hasSuccess=!1,result=null,removeTransaction=this.db.transaction([this.storeName],this.consts.READ_WRITE);removeTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},removeTransaction.onabort=onError,removeTransaction.onerror=onError;deleteRequest=removeTransaction.objectStore(this.storeName).delete(deleteRequest);return deleteRequest.onsuccess=function(event){hasSuccess=!0,result=event.target.result},deleteRequest.onerror=onError,
removeTransaction},batch:function(dataArray,onSuccess,onError){if(onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler,"[object Array]"!=Object.prototype.toString.call(dataArray))onError(new Error("dataArray argument must be of type Array."));else if(0===dataArray.length)return onSuccess(!0);var count=dataArray.length,called=!1,hasSuccess=!1,batchTransaction=this.db.transaction([this.storeName],this.consts.READ_WRITE);batchTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(hasSuccess)},batchTransaction.onabort=onError,batchTransaction.onerror=onError;var onItemSuccess=function(){0!==--count||called||(
hasSuccess=called=!0)};return dataArray.forEach(function(deleteRequest){var type=deleteRequest.type,key=deleteRequest.key,putRequest=deleteRequest.value,onItemError=function(err){batchTransaction.abort(),called||(called=!0,onError(err,type,key))};"remove"==type?((deleteRequest=batchTransaction.objectStore(this.storeName).delete(key)).onsuccess=onItemSuccess,deleteRequest.onerror=onItemError):"put"==type&&((putRequest=null!==this.keyPath?(this._addIdPropertyIfNeeded(putRequest),batchTransaction.objectStore(this.storeName).put(putRequest)):batchTransaction.objectStore(this.storeName).put(putRequest,key)).onsuccess=onItemSuccess,putRequest.onerror=onItemError)}
,this),batchTransaction},putBatch:function(batchData,onSuccess,onError){batchData=batchData.map(function(item){return{type:"put",value:item}});return this.batch(batchData,onSuccess,onError)},upsertBatch:function(dataArray,options,onSuccess,onError){"function"==typeof options&&(onError=onSuccess=options,options={}),onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler,options=options||{},"[object Array]"!=Object.prototype.toString.call(dataArray)&&onError(new Error("dataArray argument must be of type Array."));var keyField=options.keyField||this.keyPath,count=dataArray.length,called=!1,hasSuccess=!1,index=0,
batchTransaction=this.db.transaction([this.storeName],this.consts.READ_WRITE);batchTransaction.oncomplete=function(){hasSuccess?onSuccess(dataArray):onError(!1)},batchTransaction.onabort=onError,batchTransaction.onerror=onError;var onItemSuccess=function(event){dataArray[index++][keyField]=event.target.result,0!==--count||called||(hasSuccess=called=!0)};return dataArray.forEach(function(record){var putRequest=record.key,putRequest=null!==this.keyPath?(this._addIdPropertyIfNeeded(record),batchTransaction.objectStore(this.storeName).put(record)):batchTransaction.objectStore(this.storeName).put(record,putRequest);putRequest.onsuccess=onItemSuccess,
putRequest.onerror=function(err){batchTransaction.abort(),called||(called=!0,onError(err))}},this),batchTransaction},removeBatch:function(batchData,onSuccess,onError){batchData=batchData.map(function(key){return{type:"remove",key:key}});return this.batch(batchData,onSuccess,onError)},getBatch:function(keyArray,onSuccess,onError,arrayType){if(onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler,arrayType=arrayType||"sparse","[object Array]"!=Object.prototype.toString.call(keyArray))onError(new Error("keyArray argument must be of type Array."));else if(0===keyArray.length)return onSuccess([]);var data=[],count=keyArray.length,
hasSuccess=!1,result=null,batchTransaction=this.db.transaction([this.storeName],this.consts.READ_ONLY);batchTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},batchTransaction.onabort=onError,batchTransaction.onerror=onError;var onItemSuccess=function(event){event.target.result||"dense"==arrayType?data.push(event.target.result):"sparse"==arrayType&&data.length++,0===--count&&(hasSuccess=!0,result=data)};return keyArray.forEach(function(getRequest){getRequest=batchTransaction.objectStore(this.storeName).get(getRequest);getRequest.onsuccess=onItemSuccess,getRequest.onerror=function(err){onError(result=err),batchTransaction.abort()}},this
),batchTransaction},getAll:function(onSuccess,onError){onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler;var getAllTransaction=this.db.transaction([this.storeName],this.consts.READ_ONLY),store=getAllTransaction.objectStore(this.storeName);return store.getAll?this._getAllNative(getAllTransaction,store,onSuccess,onError):this._getAllCursor(getAllTransaction,store,onSuccess,onError),getAllTransaction},_getAllNative:function(getAllTransaction,getAllRequest,onSuccess,onError){var hasSuccess=!1,result=null;getAllTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},getAllTransaction.onabort=onError,
getAllTransaction.onerror=onError;getAllRequest=getAllRequest.getAll();getAllRequest.onsuccess=function(event){hasSuccess=!0,result=event.target.result},getAllRequest.onerror=onError},_getAllCursor:function(getAllTransaction,cursorRequest,onSuccess,onError){var all=[],hasSuccess=!1,result=null;getAllTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},getAllTransaction.onabort=onError,getAllTransaction.onerror=onError;cursorRequest=cursorRequest.openCursor();cursorRequest.onsuccess=function(cursor){cursor=cursor.target.result;cursor?(all.push(cursor.value),cursor.continue()):(hasSuccess=!0,result=all)},cursorRequest.onError=onError},
clear:function(onSuccess,onError){onError=onError||defaultErrorHandler,onSuccess=onSuccess||defaultSuccessHandler;var hasSuccess=!1,result=null,clearTransaction=this.db.transaction([this.storeName],this.consts.READ_WRITE);clearTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},clearTransaction.onabort=onError,clearTransaction.onerror=onError;var clearRequest=clearTransaction.objectStore(this.storeName).clear();return clearRequest.onsuccess=function(event){hasSuccess=!0,result=event.target.result},clearRequest.onerror=onError,clearTransaction},_addIdPropertyIfNeeded:function(dataObj){void 0===dataObj[this.keyPath]&&(
dataObj[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(indexName){return this.store.indexNames.contains(indexName)},normalizeIndexData:function(indexData){indexData.keyPath=indexData.keyPath||indexData.name,indexData.unique=!!indexData.unique,indexData.multiEntry=!!indexData.multiEntry},indexComplies:function(actual,expected){return["keyPath","unique","multiEntry"].every(function(key){if("multiEntry"==key&&void 0===actual[key]&&!1===expected[key])return!0;if("keyPath"!=key||"[object Array]"!=Object.prototype.toString.call(expected[key]))return expected[key]==actual[key]
;var exp=expected.keyPath,act=actual.keyPath;if("string"==typeof act)return exp.toString()==act;if("function"!=typeof act.contains&&"function"!=typeof act.indexOf)return!1;if(act.length!==exp.length)return!1;for(var i=0,m=exp.length;i<m;i++)if(!(act.contains&&act.contains(exp[i])||act.indexOf(-1!==exp[i])))return!1;return!0})},iterate:function(onItem,options){var cursorRequest="desc"==(options=mixin({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:defaultErrorHandler,limit:1/0,offset:0,allowItemRejection:!1},options||{})).order.toLowerCase()?"PREV":"NEXT";options.filterDuplicates&&(
cursorRequest+="_NO_DUPLICATE");var hasSuccess=!1,cursorTransaction=this.db.transaction([this.storeName],this.consts[options.writeAccess?"READ_WRITE":"READ_ONLY"]),cursorTarget=cursorTransaction.objectStore(this.storeName);options.index&&(cursorTarget=cursorTarget.index(options.index));var recordCount=0;cursorTransaction.oncomplete=function(){hasSuccess?options.onEnd?options.onEnd():onItem(null):options.onError(null)},cursorTransaction.onabort=options.onError,cursorTransaction.onerror=options.onError;cursorRequest=cursorTarget.openCursor(options.keyRange,this.consts[cursorRequest]);return cursorRequest.onerror=options.onError,
cursorRequest.onsuccess=function(onItemReturn){var cursor=onItemReturn.target.result;cursor?options.offset?(cursor.advance(options.offset),options.offset=0):(onItemReturn=onItem(cursor.value,cursor,cursorTransaction),options.allowItemRejection&&!1===onItemReturn||recordCount++,options.autoContinue&&(recordCount+options.offset<options.limit?cursor.continue():hasSuccess=!0)):hasSuccess=!0},cursorTransaction},query:function(onSuccess,options){var result=[],processedItems=0;return(options=options||{}).autoContinue=!0,options.writeAccess=!1,options.allowItemRejection=!!options.filter,options.onEnd=function(){onSuccess(result,processedItems)},this.iterate(
function(item){processedItems++;var accept=!options.filter||options.filter(item);return!1!==accept&&result.push(item),accept},options)},count:function(onSuccess,countRequest){var onError=(countRequest=mixin({index:null,keyRange:null},countRequest||{})).onError||defaultErrorHandler,hasSuccess=!1,result=null,cursorTransaction=this.db.transaction([this.storeName],this.consts.READ_ONLY);cursorTransaction.oncomplete=function(){(hasSuccess?onSuccess:onError)(result)},cursorTransaction.onabort=onError,cursorTransaction.onerror=onError;var cursorTarget=cursorTransaction.objectStore(this.storeName);countRequest.index&&(cursorTarget=cursorTarget.index(
countRequest.index));countRequest=cursorTarget.count(countRequest.keyRange);return countRequest.onsuccess=function(evt){hasSuccess=!0,result=evt.target.result},countRequest.onError=onError,cursorTransaction},makeKeyRange:function(options){var keyRange,hasLower=void 0!==options.lower,hasUpper=void 0!==options.upper;switch(!0){case void 0!==options.only:keyRange=this.keyRange.only(options.only);break;case hasLower&&hasUpper:keyRange=this.keyRange.bound(options.lower,options.upper,options.excludeLower,options.excludeUpper);break;case hasLower:keyRange=this.keyRange.lowerBound(options.lower,options.excludeLower);break;case hasUpper:
keyRange=this.keyRange.upperBound(options.upper,options.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return keyRange}},empty={};function mixin(target,source){var name,s;for(name in source)(s=source[name])!==empty[name]&&s!==target[name]&&(target[name]=s);return target}return IDBStore.prototype=proto,IDBStore.version=proto.version,IDBStore},global=commonjsGlobal,module.exports?module.exports=definition():global.IDBStore=definition()}(module={exports:{}}),module.exports),isIndexedDB2="undefined"!=typeof IDBObjectStore&&"getAll"in IDBObjectStore.prototype,
openStore=function(storeName){return new Promise(function(resolve,reject){var store=new idbstore({dbVersion:1,storeName:storeName,storePrefix:"tao-store-",keyPath:"key",autoIncrement:!0,onStoreReady:function(){store.db.onversionchange=function(e){e&&e.newVersion||store.db.close()},resolve(store)},onError:reject})})},setEntry=function(store,key,value){return new Promise(function(resolve,reject){var entry={key:key,value:value};store.put(entry,function(returnKey){resolve(returnKey===key)},reject)})},getEntry=function(store,key){return new Promise(function(resolve,reject){store.get(key,function(entry){if(!entry||void 0===entry.value)return resolve(entry)
;resolve(entry.value)},reject)})},removeEntry=function(store,key){return new Promise(function(resolve,reject){store.remove(key,function(result){resolve(!1!==result)},reject)})},getKnownStores=function(){return knownStores=knownStores||openStore("index")},deleteStore=function(store,storeName){return new Promise(function(resolve,reject){var success=function(){(function(storeName){return getKnownStores().then(function(store){return removeEntry(store,storeName)})})(storeName).then(function(){resolve(!0)}).catch(reject)};isIndexedDB2?store.deleteDatabase(success,reject):store.clear(success,reject)})},indexDbBackend=function(storeName){var innerStore,writePromise,
getStore=function(){return innerStore=innerStore||openStore(storeName).then(function(store){return function(storeName){return getKnownStores().then(function(store){return setEntry(store,storeName,{name:storeName,lastOpen:Date.now()})})}(storeName).then(function(){return Promise.resolve(store)})})},ensureSerie=function(getWritingPromise){return writePromise?new Promise(function(resolve,reject){var runWrite=function(){var p=getWritingPromise();(writePromise=p).then(resolve).catch(reject)};writePromise.then(runWrite).catch(runWrite)}):writePromise=getWritingPromise()};if(_.isEmpty(storeName)||!_.isString(storeName))throw new TypeError(
"The store name is required");return{getItem:function(key){return ensureSerie(function(){return getStore().then(function(store){return getEntry(store,key)})})},setItem:function(key,value){return ensureSerie(function(){return getStore().then(function(store){return setEntry(store,key,value)})})},removeItem:function(key){return ensureSerie(function(){return getStore().then(function(store){return removeEntry(store,key)})})},getItems:function(){return ensureSerie(function(){return getStore().then(function(store){return new Promise(function(resolve,reject){store.getAll(function(entries){if(!_.isArray(entries))return resolve({});resolve(_.reduce(entries,function(
acc,entry){return entry.key&&entry.value&&(acc[entry.key]=entry.value),acc},{}))},reject)})})})},clear:function(){return ensureSerie(function(){return getStore().then(function(store){return new Promise(function(resolve,reject){store.clear(function(){resolve(!0)},reject)})})})},removeStore:function(){return ensureSerie(function(){return getStore().then(function(store){return deleteStore(store,storeName)})})}}};return indexDbBackend.removeAll=function(validate){return _.isFunction(validate)||(validate=null),getKnownStores().then(function(store){return new Promise(function(resolve,reject){store.getAll(function(entries){var all=[];_.forEach(entries,function(
entry){var storeName=entry&&entry.key;storeName&&all.push(openStore(storeName).then(function(storeToRemove){if(!validate||validate(storeName,entry.value))return deleteStore(storeToRemove,storeName)}))}),Promise.all(all).then(resolve).catch(reject)},reject)})})},indexDbBackend.getAll=function(validate){return _.isFunction(validate)||(validate=function(){return!0}),getKnownStores().then(function(store){return new Promise(function(resolve,reject){store.getAll(function(storeNames){storeNames=_(storeNames).filter(function(entry){return entry&&entry.key&&validate(entry.key,entry.value)}).map(function(entry){return entry.key}).value();return resolve(storeNames)},
reject)})})},indexDbBackend.getStoreIdentifier=function(){return openStore("id").then(function(store){return getEntry(store,"id").then(function(id){return _.isEmpty(id)?(id=uuid(),setEntry(store,"id",id).then(function(){return id})):id})})},indexDbBackend}),define("core/store/memory",["lodash","core/promise","lib/uuid"],function(_,Promise,uuid){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid;var idStore,memoryStore={},memoryStorageBackend=function(
storeName){if(_.isEmpty(storeName)||!_.isString(storeName))throw new TypeError("The store name is required");return memoryStore[storeName]=memoryStore[storeName]||{},{getItem:function(key){return _.isPlainObject(memoryStore[storeName])?Promise.resolve(memoryStore[storeName][key]):Promise.resolve()},setItem:function(key,value){return _.isPlainObject(memoryStore[storeName])||(memoryStore[storeName]={}),memoryStore[storeName][key]=value,Promise.resolve(!0)},removeItem:function(key){return memoryStore[storeName]=_.omit(memoryStore[storeName],key),Promise.resolve(void 0===memoryStore[storeName][key])},getItems:function(){return Promise.resolve(
memoryStore[storeName])},clear:function(){return memoryStore[storeName]={},Promise.resolve(!0)},removeStore:function(){return memoryStore=_.omit(memoryStore,storeName),Promise.resolve(void 0===memoryStore[storeName])}}};return memoryStorageBackend.removeAll=function(validate){return _.isFunction(validate)||(validate=null),memoryStore=_.omit(memoryStore,function(store,storeName){return!validate||validate(storeName)}),Promise.resolve(!0)},memoryStorageBackend.getAll=function(validate){var storeNames;return _.isFunction(validate)||(validate=null),storeNames=_(memoryStore).map(function(store,storeName){return storeName}).filter(function(storeName){
return!validate||validate(storeName)}).value(),Promise.resolve(storeNames)},memoryStorageBackend.getStoreIdentifier=function(){return _.isEmpty(idStore)&&(idStore=uuid()),Promise.resolve(idStore)},memoryStorageBackend}),define("core/store",["lodash","moment","module","core/logger","core/promise","core/store/localstorage","core/store/sessionstorage","core/store/indexeddb","core/store/memory"],function(_,moment,module,loggerFactory,Promise,localStorageBackend,sessionStorageBackend,indexedDBBackend,memoryBackend){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default"
)?moment.default:moment,module=module&&Object.prototype.hasOwnProperty.call(module,"default")?module.default:module,loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,localStorageBackend=localStorageBackend&&Object.prototype.hasOwnProperty.call(localStorageBackend,"default")?localStorageBackend.default:localStorageBackend,sessionStorageBackend=sessionStorageBackend&&Object.prototype.hasOwnProperty.call(sessionStorageBackend,"default")?sessionStorageBackend.default:sessionStorageBackend,
indexedDBBackend=indexedDBBackend&&Object.prototype.hasOwnProperty.call(indexedDBBackend,"default")?indexedDBBackend.default:indexedDBBackend,memoryBackend=memoryBackend&&Object.prototype.hasOwnProperty.call(memoryBackend,"default")?memoryBackend.default:memoryBackend;var supportsIndexedDB=!1,dectectionDone=!1,quotaChecked=!1,backendApi=["removeAll","getAll","getStoreIdentifier"],storeApi=["getItem","setItem","removeItem","getItems","clear","removeStore"],logger=loggerFactory("core/store"),config=_.defaults(module.config()||{},{lowSpaceRatio:80,invalidation:{staled:"P2W",oldster:"P2M"}}),isIndexDBSupported=function(){return dectectionDone?Promise.resolve(
supportsIndexedDB):new Promise(function(resolve){var test,indexedDB,done=function(result){return dectectionDone=!0,resolve(supportsIndexedDB=!!result)};try{if(!(indexedDB=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB))return done(!1);(test=indexedDB.open("__feature_test",1)).onsuccess=function(){if(test.result)return test.result.close(),done(!0)},test.onerror=function(e){return e.preventDefault(),done(!1),!1}}catch(err){done(!1)}})},loadBackend=function(preselectedBackend){return isIndexDBSupported().then(function(){var backend=preselectedBackend||(supportsIndexedDB?indexedDBBackend:localStorageBackend)
;return _.isFunction(backend)?function(backend){return _.all(backendApi,function(method){return _.isFunction(backend[method])})}(backend)?(backend!==memoryBackend&&(!quotaChecked&&"storage"in window.navigator&&window.navigator.storage.estimate&&window.navigator.storage.estimate().then(function(estimate){var usedRatio=0;_.isNumber(estimate.usage)&&_.isNumber(estimate.quota)&&0<estimate.quota&&((usedRatio=estimate.usage/estimate.quota)>config.lowSpaceRatio?(logger.warn("The browser storage is getting low ".concat(usedRatio.toFixed(2),"% used"),estimate),logger.warn("We will attempt to clean oldster databases in persistent backends"),store.cleanUpSpace(
config.invalidation.oldster,[],localStorageBackend),store.cleanUpSpace(config.invalidation.oldster,[],sessionStorageBackend),store.cleanUpSpace(config.invalidation.oldster,[],indexedDBBackend)):logger.debug("Browser storage estimate : ".concat(usedRatio.toFixed(2),"% used"),estimate))}).catch(function(err){logger.warn("Unable to retrieve quotas : ".concat(err.message))}),quotaChecked=!0),backend):Promise.reject(new TypeError("This backend doesn't comply with the store backend API")):Promise.reject(new TypeError("No backend, no storage!"))})},store=function(storeName,preselectedBackend){return loadBackend(preselectedBackend).then(function(storeInstance){
var storage,storeInstance=storeInstance(storeName);return storage=storeInstance,_.all(storeApi,function(method){return _.isFunction(storage[method])})?storeInstance:Promise.reject(new TypeError("The store doesn't comply with the Storage interface"))})};return store.backends={localStorage:localStorageBackend,sessionStorage:sessionStorageBackend,indexedDB:indexedDBBackend,memory:memoryBackend},store.removeAll=function(validate,preselectedBackend){return loadBackend(preselectedBackend).then(function(backend){return backend.removeAll(validate)})},store.cleanUpSpace=function(since,storeNamePattern,preselectedBackend){var tsThreshold=_.isNumber(since
)&&0<since?since:(_.isString(since)||(since=config.invalidation.oldster),moment().subtract(moment.duration(since)).valueOf());return logger.info("Trying to remove stores lastly opened before ".concat(tsThreshold,"(").concat(since,")")),store.removeAll(function(storeName,storeEntry){return!(!storeName||!storeEntry)&&(!(storeNamePattern instanceof RegExp&&!storeNamePattern.test(storeName))&&(_.isNumber(storeEntry.lastOpen)&&_.isNumber(tsThreshold)&&storeEntry.lastOpen<=tsThreshold))},preselectedBackend)},store.getAll=function(validate,preselectedBackend){return loadBackend(preselectedBackend).then(function(backend){return backend.getAll(validate)})},
store.getIdentifier=function(preselectedBackend){return loadBackend(preselectedBackend).then(function(backend){return backend.getStoreIdentifier()})},store}),define("core/cachedStore",["core/store"],function(store){"use strict";store=store&&Object.prototype.hasOwnProperty.call(store,"default")?store.default:store;return function(storageName,storageKey){return storageKey=storageKey||"cachedData",store(storageName).then(function(storage){return storage.getItem(storageKey).then(function(data){return data=data||{},{getItem:function(name){return data[name]},setItem:function(name,value){return data[name]=value,storage.setItem(storageKey,data)},removeItem:function(
name){return data[name]=void 0,storage.setItem(storageKey,data)},clear:function(){return data={},storage.removeItem(storageKey)},removeStore:function(){return data={},storage.removeStore()}}})})}}),define("core/collections",[],function(){"use strict";return{Map:window.Map,Set:window.Set,WeakMap:window.WeakMap,WeakSet:window.WeakSet}}),define("core/providerRegistry",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(target,validator){var _providers={};return(target=target||{}).registerProvider=function(name,provider){var valid=!0;if(!_.isString(name)||name.length<=0)throw new TypeError(
"It is required to give a name to your provider.");if(!_.isPlainObject(provider)||!_.isFunction(provider.init))throw new TypeError("A provider is an object that contains at least an init function.");return(valid=validator&&_.isFunction(validator)?validator(provider):valid)&&(_providers[name]=provider),this},target.getProvider=function(providerName){var provider;if(!_providers||0===_.size(_providers))throw new Error("No provider registered");if(_.isString(providerName)&&0<providerName.length?provider=_providers[providerName]:1===_.size(_providers)&&(providerName=_.keys(_providers)[0],provider=_providers[providerName]),!provider)throw new Error(
"No candidate found for the provider");return provider},target.getAvailableProviders=function(){return _.keys(_providers)},target.clearProviders=function(){return _providers={},this},target}}),define("core/delegator",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var defaults={name:"provided",eventifier:!0},_slice=[].slice;return function(api,provider,extendedConfig){var eventifier=!!((extendedConfig=_.defaults(extendedConfig||{},defaults)).eventifier&&api&&api.trigger),context=extendedConfig.forward?provider:api,defaultProvider=_.isFunction(extendedConfig.defaultProvider
)?extendedConfig.defaultProvider:_.noop,wrapper=_.isFunction(extendedConfig.wrapper)?extendedConfig.wrapper:null,name=extendedConfig.name;return extendedConfig.required&&(defaultProvider=null),function(fnName){var response,args;if(!provider)throw new Error("There is no "+name+" provider!");if(!_.isFunction(provider[fnName])&&!defaultProvider)throw new Error("There is no method called "+fnName+" in the "+name+" provider!");return args=_slice.call(arguments,1),response=(provider[fnName]||defaultProvider).apply(context,args),wrapper&&(response=wrapper(response)),eventifier&&api.trigger.apply(api,[fnName,response].concat(args)),response}}}),define(
"core/communicator",["lodash","core/promise","core/providerRegistry","core/delegator","core/eventifier"],function(_,Promise,providerRegistry,delegator,eventifier){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,providerRegistry=providerRegistry&&Object.prototype.hasOwnProperty.call(providerRegistry,"default")?providerRegistry.default:providerRegistry,delegator=delegator&&Object.prototype.hasOwnProperty.call(delegator,"default")?delegator.default:delegator,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,
"default")?eventifier.default:eventifier;var defaults={timeout:3e4};function communicatorFactory(communicator,provider){var delegate,extendedConfig=_(provider||{}).defaults(defaults).value(),states={},provider=communicatorFactory.getProvider(communicator),communicator=eventifier({init:function(){var self=this;return this.getState("ready")?Promise.resolve():delegate("init").then(function(){self.setState("ready").trigger("ready")})},destroy:function(){var self=this,stepPromise=self.getState("open")?self.close():Promise.resolve();return stepPromise.then(function(){return delegate("destroy").then(function(){self.trigger("destroyed"),states={}})})},open:function(
){var self=this;return this.getState("open")?Promise.resolve():delegate("open").then(function(){self.setState("open").trigger("opened")})},close:function(){var self=this;return delegate("close").then(function(){self.setState("open",!1).trigger("closed")})},send:function(channel,message){var self=this;return this.getState("open")?delegate("send",channel,message).then(function(response){return self.trigger("sent",channel,message,response),Promise.resolve(response)}):Promise.reject()},channel:function(name,handler){if(!_.isString(name)||name.length<=0)throw new TypeError("A channel must have a name");if(!_.isFunction(handler))throw new TypeError(
"A handler must be attached to a channel");return this.on("channel-"+name,handler),this},getConfig:function(){return extendedConfig},setState:function(name,state){return _.isUndefined(state)&&(state=!0),states[name]=!!state,this},getState:function(name){return!!states[name]}});return communicator.on("message",function(channel,message){this.trigger("channel-"+channel,message)}),delegate=delegator(communicator,provider,{name:"communicator"}),communicator}return providerRegistry(communicatorFactory)}),define("core/polling",["lodash","core/promise","core/eventifier"],function(_,Promise,eventifier){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,
"default")?_.default:_,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier;return function(config,argument_1){var timer,promise,interval,max,iter,action,context,autoStart,state={},startTimer=function(){timer=setTimeout(iteration,interval),state.stopped=!1,state.pending=!0},stopTimer=function(){clearTimeout(timer),timer=null,state.stopped=!0,state.pending=!1},iteration=function(){max&&max<=iter?polling.stop():(iter=(iter||0)+1,state.processing=!0,state.pending=!1,polling.trigger("call"),action.call(
context,polling),promise||state.stopped||(state.processing=!1,startTimer()))},polling={async:function(){var resolver={};return(promise=new Promise(function(resolve,reject){resolver.resolve=resolve,resolver.reject=reject})).then(function(){promise=null,state.processing=!1,state.stopped||startTimer(),polling.trigger("resolved")}).catch(function(){promise=null,state.processing=!1,polling.stop(),polling.trigger("rejected")}),polling.trigger("async",resolver),resolver},next:function(){var _next;return state.stopped&&(iter=0),stopTimer(),max&&max<=iter||(state.stopped=!1,promise?(_next=this.next.bind(this),promise.then(_next).catch(_next)):(this.trigger("next"),
iteration())),this},start:function(){return timer||(iter=0,startTimer(),this.trigger("start")),this},stop:function(){return stopTimer(),this.trigger("stop"),this},setInterval:function(value){return interval=Math.abs(parseInt(value,10)||6e4),this.trigger("setinterval",interval),this},getInterval:function(){return interval},setAction:function(fn){return action=fn,this.trigger("setaction",action),this},getAction:function(){return action},setContext:function(ctx){return context=ctx||this,this.trigger("setcontext",ctx),this},getContext:function(){return context},setMax:function(value){return max=Math.abs(parseInt(value,10)||0),this},getMax:function(){return max},
getIteration:function(){return iter||0},is:function(stateName){return!!state[stateName]}};return eventifier(polling),interval=6e4,context=polling,action=null,autoStart=!(state.stopped=!0),iter=0,_.isFunction(config)&&(polling.setAction(config),config=null),_.isObject(config)&&(polling.setAction(config.action),polling.setInterval(config.interval||argument_1),polling.setContext(config.context),polling.setMax(config.max),autoStart=!!config.autoStart),autoStart&&polling.start(),polling}}),define("context",["module"],function(module){return module.config()}),define("core/tokenStore",["lodash","core/store"],function(_,store){"use strict"
;_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,store=store&&Object.prototype.hasOwnProperty.call(store,"default")?store.default:store;var defaultConfig={maxSize:6,tokenTimeLimit:144e4,store:"memory"};return function(options){var config=_.defaults(options||{},defaultConfig),getStore=function(){return store("tokenStore.tokens",store.backends[config.store]||store.backends[defaultConfig.store])};return{dequeue:function(){var _this=this;return this.getIndex().then(function(latestIndex){var key=_.first(latestIndex);return key?getStore().then(function(storage){return storage.getItem(key)}).then(function(token){return _this.remove(key).then(
function(){return token})}):Promise.resolve()})},enqueue:function(token){var _this2=this;return _.isString(token)&&(token={value:token,receivedAt:Date.now()}),getStore().then(function(storage){return storage.setItem(token.value,token)}).then(function(updated){return!!updated&&_this2.enforceMaxSize().then(function(){return!0})})},getIndex:function(){return this.getTokens().then(function(tokens){return Object.values(tokens).sort(function(t1,t2){return t1.receivedAt-t2.receivedAt}).map(function(token){return token.value})})},has:function(key){return this.getIndex().then(function(latestIndex){return latestIndex.includes(key)})},remove:function(key){
return this.has(key).then(function(result){return!!result&&getStore().then(function(storage){return storage.removeItem(key)})})},clear:function(){return getStore().then(function(storage){return storage.clear()})},getTokens:function(){return getStore().then(function(storage){return storage.getItems()})},getSize:function(){return this.getIndex().then(function(latestIndex){return latestIndex.length})},setMaxSize:function(size){_.isNumber(size)&&0<size&&size!==config.maxSize&&(config.maxSize=size,this.enforceMaxSize())},enforceMaxSize:function(){var _this3=this;return this.getIndex().then(function(latestIndex){var keysToRemove=latestIndex.length-config.maxSize
;if(0<keysToRemove){keysToRemove=latestIndex.slice(0,keysToRemove);return Promise.all(keysToRemove.map(function(key){return _this3.remove(key)}))}return!0})},checkExpiry:function(token){var tokenTimeLimit=config.tokenTimeLimit;return 0<tokenTimeLimit&&Date.now()-token.receivedAt>tokenTimeLimit?this.remove(token.value):Promise.resolve(!0)},expireOldTokens:function(){var _this4=this;return this.getTokens().then(function(tokens){return Object.values(tokens).reduce(function(previousPromise,nextToken){return previousPromise.then(function(){return _this4.checkExpiry(nextToken)})},Promise.resolve())}).then(function(){return!0})}}}}),define("core/tokenHandler",[
"lodash","module","core/tokenStore","core/promiseQueue"],function(_,module,tokenStoreFactory,promiseQueue){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,module=module&&Object.prototype.hasOwnProperty.call(module,"default")?module.default:module,tokenStoreFactory=tokenStoreFactory&&Object.prototype.hasOwnProperty.call(tokenStoreFactory,"default")?tokenStoreFactory.default:tokenStoreFactory,promiseQueue=promiseQueue&&Object.prototype.hasOwnProperty.call(promiseQueue,"default")?promiseQueue.default:promiseQueue;var validateTokensOpt=!0,clientConfigFetched=!1,defaults={maxSize:6,tokenTimeLimit:144e4};return function(options){
_.isString(options)&&(options={initialToken:options}),options=_.defaults({},options,_.omit(module.config(),"tokens"),defaults);var tokenStore=tokenStoreFactory(options);return{getToken:function(){var _this=this,initialToken=options.initialToken,getFirstTokenValue=function(){return tokenStore.dequeue().then(function(currentToken){return currentToken?currentToken.value:null})};return initialToken?(options.initialToken=null,Promise.resolve(initialToken)):tokenStore.expireOldTokens().then(function(){return clientConfigFetched?tokenStore.getSize().then(function(queueSize){return 0<queueSize?getFirstTokenValue():validateTokensOpt?Promise.reject(new Error(
"No tokens available. Please refresh the page.")):_this.getClientConfigTokens().then(getFirstTokenValue)}):_this.getClientConfigTokens().then(getFirstTokenValue)})},setToken:function(newToken){return tokenStore.enqueue(newToken)},getClientConfigTokens:function(){var _this2=this,validateTokens=module.config(),clientTokens=validateTokens.tokens,validateTokens=validateTokens.validateTokens,clientTokens=(clientTokens||[]).map(function(serverToken){return{value:serverToken,receivedAt:Date.now()}});return validateTokensOpt=validateTokens,clientConfigFetched=!0,Promise.resolve(clientTokens).then(function(newTokens){var setTokenQueue=promiseQueue()
;return newTokens.forEach(function(token){return setTokenQueue.serie(function(){return _this2.setToken(token)})}),setTokenQueue.serie(function(){return!0})})},clearStore:function(){return tokenStore.clear()},getQueueLength:function(){return tokenStore.getSize()},setMaxSize:function(size){tokenStore.setMaxSize(size)}}}}),define("core/request",["jquery","lodash","i18n","module","context","core/promiseQueue","core/tokenHandler","core/logger"],function($,_,__,module,context,promiseQueue,tokenHandlerFactory,loggerFactory){"use strict";function _slicedToArray(arr,i){return function(arr){if(Array.isArray(arr))return arr}(arr)||function(arr,i){if(
"undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
)return _arrayLikeToArray(o,minLen)}(arr,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,module=module&&Object.prototype.hasOwnProperty.call(module,"default"
)?module.default:module,context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,promiseQueue=promiseQueue&&Object.prototype.hasOwnProperty.call(promiseQueue,"default")?promiseQueue.default:promiseQueue,tokenHandlerFactory=tokenHandlerFactory&&Object.prototype.hasOwnProperty.call(tokenHandlerFactory,"default")?tokenHandlerFactory.default:tokenHandlerFactory,loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory;var tokenHandler=tokenHandlerFactory(),queue=promiseQueue(),logger=loggerFactory("core/request"),createError=function(response,err,httpCode
,httpSent){err=response&&response.errorCode?new Error("".concat(response.errorCode," : ").concat(response.errorMsg||response.errorMessage||response.error)):new Error(err);return err.response=response,err.sent=httpSent,err.source=response.source||"request",_.isNumber(httpCode)&&(err.code=httpCode),err};return function(options){var _this=this;if(module.config().noToken&&(options.noToken=!0),_.isEmpty(options.url))throw new TypeError("At least give a URL...");var requestLogger=logger.child({url:options.url}),logLevel=options.logLevel;logLevel&&requestLogger.level(logLevel);var runRequest=function(){var tempToken,computeCSRFTokenHeader=function(){
return options.noToken?Promise.resolve({}):tokenHandler.getToken().then(function(obj){return value=(tempToken=obj)||"none",(key="X-CSRF-Token")in(obj={})?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj;var key,value})},computeJWTTokenHeader=function(){var jwtTokenHandler=options.jwtTokenHandler;return jwtTokenHandler?jwtTokenHandler.getToken().then(function(token){return{Authorization:"Bearer ".concat(token)}}):Promise.resolve({})},setTokenFromXhr=function(token){if(_.isFunction(token.getResponseHeader)){token=token.getResponseHeader("X-CSRF-Token");if(requestLogger.debug("received %s header %s",
"X-CSRF-Token",token),token)return tokenHandler.setToken(token)}return Promise.resolve()},isAccessTokenRefreshTried=!1;return Promise.all([computeCSRFTokenHeader(),computeJWTTokenHeader()]).then(function(csrfTokenHeader){var jwtTokenHeader=_slicedToArray(csrfTokenHeader,2),csrfTokenHeader=jwtTokenHeader[0],jwtTokenHeader=jwtTokenHeader[1];return Object.assign({},options.headers,csrfTokenHeader,jwtTokenHeader)}).then(function(customHeaders){return new Promise(function(resolve,reject){function onFail(xhr,textStatus,errorThrown){var response,tokenHandlerPromise=options.jwtTokenHandler;if(401===xhr.status&&!isAccessTokenRefreshTried&&tokenHandlerPromise
)return isAccessTokenRefreshTried=!0,void tokenHandlerPromise.refreshToken().then(computeJWTTokenHeader).then(function(jwtTokenHeaders){Object.assign(ajaxParameters.headers,jwtTokenHeaders),$.ajax(ajaxParameters).done(onDone).fail(onFail)}).catch(function(){onFail(xhr,textStatus,errorThrown)});try{response=JSON.parse(xhr.responseText)}catch(parseErr){response={}}var tokenHandlerPromise={success:!1,source:"network",cause:options.url,purpose:"proxy",context:_this,code:xhr.status,sent:0<xhr.readyState,type:"error",textStatus:textStatus,message:errorThrown||__("An error occurred!")},enhancedResponse=Object.assign({},tokenHandlerPromise,response);(
tokenHandlerPromise=0===enhancedResponse.code?tempToken?(requestLogger.debug("re-enqueueing %s token %s","X-CSRF-Token",tempToken),tokenHandler.setToken(tempToken).then(function(){tempToken=null})):Promise.resolve():setTokenFromXhr(xhr)).then(function(){reject(createError(enhancedResponse,"".concat(xhr.status," : ").concat(xhr.statusText),xhr.status,0<xhr.readyState))}).catch(function(error){requestLogger.error(error),reject(createError(enhancedResponse,error,xhr.status,0<xhr.readyState))})}var ajaxParameters={url:options.url,method:options.method||"GET",headers:customHeaders,data:options.data,contentType:options.contentType||void 0,
dataType:options.dataType||"json",async:!0,timeout:1e3*options.timeout||1e3*context.timeout||0,beforeSend:function(){_.isEmpty(customHeaders)||requestLogger.debug("sending %s header %s","X-CSRF-Token",customHeaders&&customHeaders["X-CSRF-Token"])},global:!options.background},onDone=function(response,status,xhr){setTokenFromXhr(xhr).then(function(){return 204===xhr.status||response&&204===response.errorCode||"nocontent"===status?resolve():403===xhr.status||response&&403===response.errorCode?reject(createError(response,"".concat(xhr.status," : ").concat(xhr.statusText),xhr.status,0<xhr.readyState)):200===xhr.status||response&&!0===response.success?resolve(
response):void reject(createError(response,__("The server has sent an empty response"),xhr.status,0<xhr.readyState))}).catch(function(error){requestLogger.error(error),reject(createError(response,error,xhr.status,0<xhr.readyState))})};$.ajax(ajaxParameters).done(onDone).fail(onFail)})})};return tokenHandler.getQueueLength().then(function(queueLength){return!0!==options.noToken&&(options.sequential||1===queueLength)?queue.serie(runRequest):runRequest()})}}),define("core/communicator/poll",["lodash","core/polling","core/promise","core/request"],function(_,pollingFactory,Promise,coreRequest){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,pollingFactory=pollingFactory&&Object.prototype.hasOwnProperty.call(pollingFactory,"default")?pollingFactory.default:pollingFactory,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,coreRequest=coreRequest&&Object.prototype.hasOwnProperty.call(coreRequest,"default")?coreRequest.default:coreRequest;var defaults={timeout:3e4,interval:3e4,throttle:1e3};return{name:"poll",init:function(){var self=this,config=_.defaults(this.getConfig(),defaults);return config.service?(this.messagesQueue=[],this.request=function(){return new Promise(function(resolve){var promises=[],extendedRequestParams=_.map(
self.messagesQueue,function(msg){return promises.push(msg.promise),{channel:msg.channel,message:msg.message}}),extendedRequestParams={url:config.service,method:"POST",headers:{},data:JSON.stringify(extendedRequestParams),dataType:"json",contentType:"application/json",sequential:!0,noToken:!1,timeout:config.timeout},extendedRequestParams=Object.assign({},extendedRequestParams,config.requestParams);self.messagesQueue=[],coreRequest(extendedRequestParams).then(function(response){_.forEach(promises,function(promise,idx){promise.resolve(response.responses&&response.responses[idx])}),self.polling.is("stopped")||_.forEach(response.messages,function(msg){
msg.channel?self.trigger("message",msg.channel,msg.message):self.trigger("message","malformed",msg)}),self.trigger("receive",response),resolve()}).catch(function(error){error.source="network",error.purpose="communicator",_.forEach(promises,function(promise){promise.reject(error)}),self.trigger("error",error),resolve()})})},this.polling=pollingFactory({interval:config.interval,autoStart:!1,action:function(){var async=this.async();self.request().then(function(){async.resolve()})}}),this.throttledSend=_.throttle(function(){self.polling.next()},config.throttle),Promise.resolve()):Promise.reject(new Error("You must provide a service URL"))},destroy:function(){
var self=this,stopped=this.polling?new Promise(function(resolve){self.polling.off("stop.api").on("stop.api",resolve).stop()}):Promise.resolve();return stopped.then(function(){self.polling=self.throttledSend=self.messagesQueue=null})},open:function(){var self=this,started=this.polling?new Promise(function(resolve){self.polling.off("next.api").on("next.api",resolve).start().next()}):Promise.reject(new Error("The communicator has not been properly initialized"));return started},close:function(){var self=this,stopped=this.polling?new Promise(function(resolve){self.polling.off("stop.api").on("stop.api",resolve).stop()}):Promise.reject(new Error(
"The communicator has not been properly initialized"));return stopped},send:function(channel,promise){var pending={channel:channel,message:promise},promise=new Promise(function(resolve,reject){pending.promise={resolve:resolve,reject:reject}});return this.messagesQueue.push(pending),this.throttledSend(),promise}}}),define("core/communicator/request",["lodash","core/communicator/poll"],function(_,pollProvider){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,pollProvider=pollProvider&&Object.prototype.hasOwnProperty.call(pollProvider,"default")?pollProvider.default:pollProvider,_.defaults({name:"request",destroy:function(
){return this.throttledSend=null,this.messagesQueue=null,Promise.resolve()},open:function(){return Promise.resolve()},close:function(){return Promise.resolve()},send:function(channel,promise){var pending={channel:channel,message:promise},promise=new Promise(function(resolve,reject){pending.promise={resolve:resolve,reject:reject}});return this.messagesQueue.push(pending),this.request(),promise}},pollProvider)}),define("core/connectivity",["core/eventifier"],function(eventifier){"use strict";eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier;var status=navigator.onLine,connectivity=eventifier({
setOnline:function(){return this.isOffline()&&(status=!0,this.trigger("online").trigger("change",status)),this},setOffline:function(){return this.isOnline()&&(status=!1,this.trigger("offline").trigger("change",status)),this},isOnline:function(){return status},isOffline:function(){return!status}});return window.addEventListener("online",function(){connectivity.setOnline()}),window.addEventListener("offline",function(){connectivity.setOffline()}),connectivity}),define("core/customEvent",[],function(){"use strict";var createEvent=window.CustomEvent?function(eventName,data){var event;try{event=new CustomEvent(eventName,{detail:data,bubbles:!0,cancelable:!0})
}catch(e){(event=document.createEvent("CustomEvent")).initCustomEvent(eventName,!0,!0,data)}return event}:document.createEvent?function(eventName,data){var event=document.createEvent("Event");return event.initEvent(eventName,!0,!0),event.detail=data,event}:document.createEventObject?function(eventName,data){var event=document.createEventObject();return event.detail=data,event}:function(){},dispatchEvent=document.dispatchEvent?function(element,eventName,event){return!!element&&(element.dispatchEvent(event),!0)}:document.fireEvent?function(element,eventName,event){return!!element&&(element.fireEvent("on"+eventName,event),!0)}:function(){return!1}
;return function(element,eventName,event){event=createEvent(eventName,event);return dispatchEvent(element,eventName,event)}}),define("core/dataattrhandler",["jquery","lodash"],function($,_){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var defaults={container:!1,listenerEvent:"click",useTarget:!0,bubbled:!1},letDefaultOn=[":radio",":checkbox"],shouldPreventDefault=function($elt){return!$elt.is(letDefaultOn.join(","))},DataAttrHandler=function(attrName,options){var self=this;this.options=_.defaults(options,defaults);var selector="[data-"+attrName+"]";if(
!_.has(this.options,"namespace")||!_.isString(this.options.namespace))return $.error("The plugin data namespace option is required");this.options.container&&this.options.container.selector&&(selector=this.options.container.selector+" "+selector),this.options.inner&&(selector+=" "+this.options.inner),$(document).off(this.options.listenerEvent,selector).on(this.options.listenerEvent,selector,function(e){var $target,$outer,$elt=$(e.target);!0!==self.options.bubbled&&!$elt.is(selector)||(void 0===$elt.data(attrName)&&(self.options.inner||self.options.bubbled)&&($elt=($outer=$elt).parents("[data-"+attrName+"]")),
$target=!0===self.options.useTarget?DataAttrHandler.getTarget(attrName,$elt):self.options.inner?$outer:void 0,$elt.data(self.options.namespace)||("function"==typeof self.createPlugin&&self.createPlugin($elt,$target),$elt.is(":radio")&&$elt.attr("name")&&$(':radio[name="'+$elt.attr("name")+'"]').not($elt).on(self.options.listenerEvent,function(e){"function"==typeof self.callPluginMethod&&self.callPluginMethod($elt,$target),shouldPreventDefault($elt)&&e.preventDefault()})),"function"==typeof self.callPluginMethod&&self.callPluginMethod($elt,$target),shouldPreventDefault($elt)&&e.preventDefault())})};return DataAttrHandler.prototype.init=function(cb){
return this.createPlugin=cb,this},DataAttrHandler.prototype.trigger=function(cb){return this.callPluginMethod=cb,this},DataAttrHandler.getTarget=function(matches,$elt){var selector=/^(\+|>|~|:parent|<)/,$target=[],targetSelector=$elt.attr("data-"+matches)||$elt.attr("href")||$elt.attr("attrName");return _.isEmpty(targetSelector)||($target=null!==(matches=selector.exec(targetSelector))?(selector=targetSelector.replace(selector,""),":parent"===matches[0]||"<"===matches[0]?$elt.parents(selector):"~"===matches[0]?$elt.siblings(selector):"+"===matches[0]?$elt.next(selector):$(selector,$elt)):$(targetSelector)),$target},DataAttrHandler}),define(
"core/encoder/boolean",[],function(){"use strict";return{encode:function(modelValue){return!0===modelValue?"true":"false"},decode:function(nodeValue){return"true"===nodeValue}}}),define("core/encoder/number",[],function(){"use strict";return{encode:function(modelValue){return modelValue+""},decode:function(nodeValue){return parseInt(nodeValue,10)}}}),define("core/encoder/float",[],function(){"use strict";return{encode:function(modelValue){return modelValue+""},decode:function(nodeValue){return parseFloat(nodeValue.replace(",","."))}}}),define("core/encoder/time",["moment"],function(moment){"use strict";moment=moment&&Object.prototype.hasOwnProperty.call(
moment,"default")?moment.default:moment;return{encode:function(time){time=parseInt(time,10);isNaN(time)&&(time=0);time=moment.duration(time,"seconds");return(10<=time.get("hours")?time.get("hours"):"0"+time.get("hours"))+":"+(10<=time.get("minutes")?time.get("minutes"):"0"+time.get("minutes"))+":"+(10<=time.get("seconds")?time.get("seconds"):"0"+time.get("seconds"))},decode:function(time){time=moment(time,"HH:mm:ss");return time.seconds()+60*time.minutes()+3600*time.hours()}}}),define("core/encoder/array2str",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{encode:function(modelValue,glue){
return glue=glue||",",modelValue.split(glue)},decode:function(nodeValue,glue){return glue=glue||",",_.isArray(nodeValue)?nodeValue.join(glue):nodeValue}}}),define("core/encoder/str2array",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{encode:function(modelValue,glue){return glue=glue||",",_.isArray(modelValue)?modelValue.join(glue):modelValue},decode:function(input,glue){glue=glue||",";input=_.isString(input)?input.trim():input;return _.isEmpty(input)?[]:input.split(glue)}}}),define("core/encoder/entity",[],function(){"use strict";var guiltyChars=["&","<",">",'"'];return{encode:function(input){
return(input+="").split("").map(function(character){return-1<guiltyChars.indexOf(character)?"&#"+character.charCodeAt()+";":character}).join("")},decode:function(input){return(input+="").replace(/&#(\d+);/g,function(matches,code){return String.fromCharCode(code)})}}}),define("core/encoder/encoders",["lodash","core/encoder/boolean","core/encoder/number","core/encoder/float","core/encoder/time","core/encoder/array2str","core/encoder/str2array","core/encoder/entity"],function(_,boolean,number,float,time,array2str,str2array,entity){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
boolean=boolean&&Object.prototype.hasOwnProperty.call(boolean,"default")?boolean.default:boolean,number=number&&Object.prototype.hasOwnProperty.call(number,"default")?number.default:number,float=float&&Object.prototype.hasOwnProperty.call(float,"default")?float.default:float,time=time&&Object.prototype.hasOwnProperty.call(time,"default")?time.default:time,array2str=array2str&&Object.prototype.hasOwnProperty.call(array2str,"default")?array2str.default:array2str,str2array=str2array&&Object.prototype.hasOwnProperty.call(str2array,"default")?str2array.default:str2array,entity=entity&&Object.prototype.hasOwnProperty.call(entity,"default")?entity.default:entity
;var extractArgs=function(name){var args=[],matches=[];return-1<name.indexOf("(")&&(matches=/\((.+?)\)/.exec(name))&&1<=matches.length&&(args=matches[1].split(",")),args},extractName=function(name){return-1<name.indexOf("(")?name.substr(0,name.indexOf("(")):name};return{number:number,float:float,time:time,boolean:boolean,array2str:array2str,str2array:str2array,entity:entity,register:function(name,encode,decode){if(!_.isString(name))throw new Error("An encoder must have a valid name");if(!_.isFunction(encode))throw new Error("Encode must be a function");if(!_.isFunction(decode))throw new Error("Decode must be a function");this[name]={encode:encode,
decode:decode}},encode:function(name,value){var encoder,args;return this[name=extractName(name)]?(args=[value],(encoder=this[name]).encode.apply(encoder,args.concat(extractArgs(name)))):value},decode:function(name,value){var decoder,args;return this[name=extractName(name)]?(args=[value],(decoder=this[name]).decode.apply(decoder,args.concat(extractArgs(name)))):value}}}),define("core/filter/filters",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{register:function(name,filter){if(!_.isString(name))throw new Error("An filter must have a valid name");if(!_.isFunction(filter))throw new Error(
"Filter must be a function");this[name]=filter},filter:function(name,value){return this[name]&&_.isArray(value)?_.filter(value,this[name]):value}}}),define("core/databinder",["jquery","lodash","handlebars","core/encoder/encoders","core/filter/filters"],function($,_,Handlebars,Encoders,Filters){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,Encoders=Encoders&&Object.prototype.hasOwnProperty.call(Encoders,"default")?Encoders.default:Encoders,
Filters=Filters&&Object.prototype.hasOwnProperty.call(Filters,"default")?Filters.default:Filters;function order(obj,path,$node,retry){var values=locate(obj,path),changed=!1;_.isArray(values)&&($node.children("[data-bind-index]").each(function(position){var index=$(this),index=parseInt(index.data("bind-index"),10);if(!values[index])return retry||_.delay(function(){order(obj,path,$node,!0)},100),!1;values[index].index=position,changed=changed||position!==index}),!0===changed&&values.sort(function(a,b){return a.index-b.index}))}var locate=function(obj,path){var result,nodes=path.split("."),size=nodes.length,i=1;if(1<=size&&void 0!==(result=obj[nodes[0]]))for(
i=1;i<size&&void 0!==(result=result[nodes[i]]);i++);return result},update=function(obj,path,value){for(var nodes=path.split("."),size=nodes.length,i=0;i<size;i++){if(i===size-1)return void(obj[nodes[i]]=value);obj[nodes[i]]||(i+1<size&&/^\d$/.test(nodes[i+1])?obj[nodes[i]]=[]:obj[nodes[i]]={}),obj=obj[nodes[i]]}},remove=function(obj,path){for(var nodes=path.split("."),size=nodes.length,i=0;i<size;i++){if(i===size-1)return void(_.isArray(obj)?obj.splice(parseInt(nodes[i],10),1):delete obj[nodes[i]]);obj=obj[nodes[i]]}},resyncIndexes=function(obj,path,$node){var values=locate(obj,path);_.isArray(values)&&_.forEach(values,function(value,position){
values[position].index=position,$node&&$node.children("[data-bind-index]").eq(position).attr("data-bind-index",position+"").data("bind-index",position+"")})},toBind=function($node,$container){if($node[0].type&&$node[0].name){if("radio"===$node[0].type)return $("[name='"+$node[0].name+"']",$container);if("checkbox"===$node[0].type)return $("[name='"+$node[0].name+"']",$container)}return $node},_bindOnce=function($node,$container,eventName,cb){var bounds;!function($node,$container,eventName){var bounds;0<$node.length&&(bounds=$._data($node[0],"events"))&&0<_(bounds[eventName]).where({namespace:"internalbinder"}).size()&&toBind($node,$container).off(
eventName+".internalbinder")}($node,$container,eventName),0<$node.length&&(!(bounds=$._data($node[0],"events"))||_(bounds[eventName]).where({namespace:"internalbinder"}).size()<1)&&toBind($node,$container).on(eventName+".internalbinder",function(e){$(this).is(e.target)&&cb.apply(null,Array.prototype.splice.call(arguments,1))})},DataBinder=function($container,model,options){var self=this;this.$container=$container,this.model=model||{},this.encoders=_.clone(Encoders),this.filters=_.clone(Filters),options&&(_.isPlainObject(options.encoders)&&_.forEach(options.encoders,function(encoder,name){self.encoders.register(name,encoder.encode,encoder.decode)}),
_.isPlainObject(options.filters)&&_.forEach(options.filters,function(filter,name){self.filters.register(name,filter)}),this.templates=options.templates||{})};return DataBinder.prototype._bindNode=function($node,path,model,domFirst){$node.data("bound")||(!0!==domFirst&&void 0!==locate(model,path)||update(model,path,this._getNodeValue($node)),this._setNodeValue($node,locate(model,path)),this._listenUpdates($node,path,model),this._listenRemoves($node,path,model),$node.data("bound",path))},DataBinder.prototype._bindArrayNode=function($node,path,model,domFirst){var template,values,self=this;$node.data("bound")||(values=locate(model,path),$node.data("bind-tmpl"
)?"function"!=typeof(template=self.templates[$node.data("bind-tmpl")])&&0<$($node.data("bind-tmpl")).length&&(template=Handlebars.compile($($node.data("bind-tmpl")).html())):template=Handlebars.compile($node.html()),values&&_.isArray(values)?$node.data("bind-filter")&&(values=this.filters.filter($node.data("bind-filter"),values)):update(model,path,[]),$node.empty(),_.forEach(values,function($newNode,index){$newNode.index=index,($newNode=$(template($newNode).trim())).appendTo($node).filter(":first").attr("data-bind-index",index),self.bind($newNode,self.model,path+"."+index+".",domFirst),self._listenRemoves($newNode,path+"."+index,self.model)}),
self._listenUpdates($node,path,model),self._listenAdds($node,path,model),$node.data("bound",path))},DataBinder.prototype._bindRmNode=function($node,path,model,domFirst){$node.data("bound")||(this._listenUpdates($node,path,model),!0===domFirst&&$node.trigger("change"),$node.data("bound",path))},DataBinder.prototype._listenUpdates=function($node,path,model){var self=this;_bindOnce($node,this.$container,"change",function(){$node.is("[data-bind-each]")?(order(model,path,$node),resyncIndexes(model,path,$node),$node.data("bind-each",path),self._rebind($node),self.$container.trigger("order.binder",[self.model])):$node.is("[data-bind-rm]")?(!0===self._getNodeValue(
$node)&&remove(model,path),self.$container.trigger("delete.binder",[self.model])):(update(model,path,self._getNodeValue($node)),self._resyncIndexOnceRm($node,path),self.$container.trigger("update.binder",[self.model])),self.$container.trigger("change.binder",[self.model])})},DataBinder.prototype._listenRemoves=function($node,path,model){var self=this;_bindOnce($node,this.$container,"delete",function(undoable){function doRemoval(){remove(model,path),self.$container.trigger("delete.binder",[self.model]).trigger("change.binder",[self.model])}!0===undoable?(self._resyncIndexOnceRm($node,path),$node.parent().one("deleted.deleter",function(){doRemoval()}),
$node.is("[data-bind-index]")&&$node.one("undo.deleter",function(){var $parentNode=$node.parent().closest("[data-bind-each]"),parentPath=path.replace(/\.[0-9]+$/,"");resyncIndexes(self.model,parentPath,$parentNode)})):(doRemoval(),self._resyncIndexOnceRm($node,path))})},DataBinder.prototype._listenAdds=function($node,path){var self=this;_bindOnce($node,this.$container,"add",function(content,data){var size=$node.children("[data-bind-index]").length;$node.children().not("[data-bind-index]").each(function(){var $newNode=$(this),realPath=path+"."+size;$newNode.attr("data-bind-index",size),data&&update(self.model,realPath,data),self.bind($newNode,self.model,
realPath+".",!0),self._listenRemoves($newNode,realPath,self.model)}),self.$container.trigger("add.binder",[self.model]).trigger("change.binder",[self.model]),$node.trigger("add.binder",[content,data])})},DataBinder.prototype._resyncIndexOnceRm=function($parentNode,parentPath){var removedIndex;$parentNode.is("[data-bind-index]")&&(removedIndex=parseInt($parentNode.data("bind-index"),10),$parentNode=$parentNode.parent().closest("[data-bind-each]"),parentPath=parentPath.replace(/\.[0-9]+$/,""),resyncIndexes(this.model,parentPath),$parentNode.children("[data-bind-index]").length-1!==removedIndex&&$parentNode.children("[data-bind-index]").filter(
":gt("+removedIndex+")").each(function(){var $item=$(this),newIndex=parseInt($item.data("bind-index"),10)-1;$item.attr("data-bind-index",newIndex).data("bind-index",newIndex+"")}),this._rebind($parentNode,parentPath.replace($parentNode.data("bind-each"),"")))},DataBinder.prototype._setNodeValue=function($node,value){void 0!==value&&($node.data("bind-encoder")&&(value=this.encoders.encode($node.data("bind-encoder"),value)),_.contains(["INPUT","SELECT","TEXTAREA"],$node[0].nodeName)?$node.is(":text, input[type='hidden'], textarea, select")?$node.val(value).trigger("change"):$node.is(":radio, :checkbox")&&toBind($node,this.$container).each(function(){
var $elt=$(this);$elt.prop("checked",$elt.val()===value)}):$node.hasClass("button-group")?$node.find("[data-bind-value]").each(function(){var $elt=$(this);$elt.data("bind-value")+""===value?$elt.addClass("active"):$elt.removeClass("active")}):!0===$node.data("bind-html")?$node.html(value):$node.text(value))},DataBinder.prototype._getNodeValue=function($node){var value;return _.contains(["INPUT","SELECT","TEXTAREA"],$node[0].nodeName)?$node.is(":text, input[type='hidden'], textarea, select")?value=$node.val():$node.is(":radio, :checkbox")?value=toBind($node,this.$container).filter(":checked").val():$node.hasClass("button-group")&&$node.find(
"[data-bind-value]").each(function(){var $elt=$(this);$elt.hasClass("active")&&(value=$elt.data("bind-value")+"")}):value=!0===$node.data("bind-html")?$node.html():$node.text(),$node.data("bind-encoder")&&(value=this.encoders.decode($node.data("bind-encoder"),value)),value},DataBinder.prototype.bind=function($elt,model,prefix,domFirst){var self=this,bindElements=function($boundElt,dataAttrName,binding){var selector="[data-"+dataAttrName+"]";$boundElt.find(selector).addBack().filter(selector).each(function(){var $node=$(this),path=prefix+$node.data(dataAttrName);self[binding]($node,path,model,domFirst)})};$elt=$elt||this.$container,model=model||this.model,
prefix=prefix||"",domFirst=domFirst||!1,bindElements($elt,"bind-each","_bindArrayNode"),bindElements($elt,"bind-rm","_bindRmNode"),bindElements($elt,"bind","_bindNode")},DataBinder.prototype._rebind=function($elt,prefix){var path,values,self=this;prefix=prefix||"",$elt.is("[data-bind-each]")?(path=prefix+$elt.data("bind-each"),values=locate(self.model,path),_.forEach(values,function(value,index){var $childNode=$elt.children('[data-bind-index="'+index+'"]');self._rebind($childNode,path+"."+index+"."),self._listenRemoves($childNode,path+"."+index,self.model)}),void 0!==values&&(self._listenUpdates($elt,path,self.model),self._listenAdds($elt,path,self.model))
):($elt.find("[data-bind]").each(function(){var $node=$(this),boundPath=prefix+$node.data("bind");self._listenUpdates($node,boundPath,self.model),self._listenRemoves($node,boundPath,self.model)}),$elt.find("[data-bind-each]").each(function(){self._rebind($(this),prefix)}))},DataBinder}),define("core/databindcontroller",["jquery","lodash","core/databinder"],function($,_,DataBinder){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DataBinder=DataBinder&&Object.prototype.hasOwnProperty.call(DataBinder,"default")?DataBinder.default:DataBinder,{
takeControl:function($container,options){var control={},model={},binderOpts=_.pick(options,function(value,key){return"encoders"===key||"filters"===key||"templates"===key});return options.get&&(control.get=function(cb){return $.getJSON(options.get).done(function(data){data&&(new DataBinder($container,model=data,binderOpts).bind(),"function"==typeof cb&&cb(model))}),this}),options.save&&(control.save=function(cb,errBack){var allowSave=!0;return"function"==typeof options.beforeSave&&(allowSave=!!options.beforeSave(model)),!0===allowSave&&$.post(options.save,{model:JSON.stringify(model)},function(data){data&&"function"==typeof cb&&cb(data)},"json").fail(
function(){"function"==typeof errBack&&errBack()}),this}),control}}}),define("core/dataProvider/proxy",["lodash","core/delegator","core/eventifier","core/promise","core/providerRegistry","core/tokenHandler"],function(_,delegator,eventifier,Promise,providerRegistry,tokenHandlerFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,delegator=delegator&&Object.prototype.hasOwnProperty.call(delegator,"default")?delegator.default:delegator,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default"
)?Promise.default:Promise,providerRegistry=providerRegistry&&Object.prototype.hasOwnProperty.call(providerRegistry,"default")?providerRegistry.default:providerRegistry,tokenHandlerFactory=tokenHandlerFactory&&Object.prototype.hasOwnProperty.call(tokenHandlerFactory,"default")?tokenHandlerFactory.default:tokenHandlerFactory;var _defaults={};function crudProxyFactory(proxyAdapter,middlewares){var initConfig,proxyAdapter=crudProxyFactory.getProvider(proxyAdapter),tokenHandler=tokenHandlerFactory(),extraParams={},initialized=!1,proxy=eventifier({init:function(config){return delegate("init",initConfig=_.defaults({},config,_defaults)).then(function(){
return initialized=!0,proxy})},destroy:function(){return delegate("destroy").then(function(){initialized=!1,initConfig=null,extraParams={}})},create:function(params){return delegate("create",getParams(params))},read:function(params){return delegate("read",getParams(params))},write:function(params){return delegate("write",getParams(params))},remove:function(params){return delegate("remove",getParams(params))},action:function(name,params){return delegate("action",name,getParams(params))},addExtraParams:function(params){return _.isPlainObject(params)&&_.merge(extraParams,params),this},getTokenHandler:function(){return tokenHandler},getConfig:function(){
return initConfig},getMiddlewares:function(){return middlewares},setMiddlewares:function(handler){return middlewares=handler,this}}),delegateProxy=delegator(proxy,proxyAdapter,{name:"proxy",wrapper:function(response){return Promise.resolve(response)}});function getParams(mergedParams){mergedParams=_.merge({},mergedParams,extraParams);return extraParams={},mergedParams}function delegate(fnName){var request={command:fnName,params:Array.prototype.slice.call(arguments,1)};return initialized||"init"===fnName?delegateProxy.apply(null,arguments).then(function(data){return middlewares?middlewares.apply(request,data):data}).catch(function(err){return proxy.trigger(
"error",err),Promise.reject(err)}):Promise.reject(new Error("Proxy is not properly initialized or has been destroyed!"))}return proxy}return providerRegistry(crudProxyFactory)}),define("core/dataProvider/request",["lodash","core/request"],function(_,coreRequest){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,coreRequest=coreRequest&&Object.prototype.hasOwnProperty.call(coreRequest,"default")?coreRequest.default:coreRequest,function(url,data,method,headers,background,noToken){return coreRequest({url:url,data:data,method:method,headers:headers,background:background,noToken:!1!==noToken}).then(function(response){
return _.isUndefined(response)?Promise.resolve():response.success?Promise.resolve(response.data):Promise.reject(response)}).catch(function(error){return Promise.reject(error)})}}),define("core/dataProvider/proxy/ajax",["lodash","core/dataProvider/request","core/promise"],function(_,request,Promise){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise;var _defaults={noCache:!0,noToken:!1,actions:{}};function rejectAction(type,action,params){
return Promise.reject({success:!1,type:type,action:action,params:params})}return{name:"ajax",init:function(config){this.processRequest=function(action,params,method){var token,descriptor=config.actions[action],headers={},tokenHandler=this.getTokenHandler();return _.isString(descriptor)&&(descriptor={url:descriptor}),descriptor&&descriptor.url?_.isFunction(descriptor.validate)&&!1===descriptor.validate(params)?rejectAction("invalid",action,params):(config.noCache&&(params=_.merge({_:(new Date).getTime()},params)),config.noToken||(token=tokenHandler.getToken())&&(headers["X-Auth-Token"]=token),request(descriptor.url,params,descriptor.method||method,headers
).then(function(data){return data&&data.token&&tokenHandler.setToken(data.token),data}).catch(function(err){var t=err.response&&(err.response.token||err.response.data&&err.response.data.token);return t?tokenHandler.setToken(t):config.noToken||tokenHandler.setToken(token),Promise.reject(err)})):rejectAction("notimplemented",action,params)},_.defaults(config,_defaults)},destroy:function(){this.processRequest=null},create:function(params){return this.processRequest("create",params,"POST")},read:function(params){return this.processRequest("read",params,"GET")},write:function(params){return this.processRequest("write",params,"POST")},remove:function(params){
return this.processRequest("remove",params,"GET")},action:function(actionName,params){return this.processRequest(actionName,params,"POST")}}}),define("core/digest",[],function(){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(
arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i]
;return arr2}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}createCommonjsModule(function(module){var global,factory;global="undefined"!=typeof self?self:commonjsGlobal,factory=function(global){if("function"!=typeof Promise)throw"Promise support required";var _subtle,_Crypto,_SubtleCrypto,isEdge,isIE,isWebkit,oid2str,str2oid,_digest,_crypto=global.crypto||global.msCrypto;function s2a(s){return btoa(s).replace(/\=+$/,"").replace(/\+/g,"-"
).replace(/\//g,"_")}function a2s(s){return s=(s+="===").slice(0,-s.length%4),atob(s.replace(/-/g,"+").replace(/_/g,"/"))}function s2b(s){for(var b=new Uint8Array(s.length),i=0;i<s.length;i++)b[i]=s.charCodeAt(i);return b}function b2s(b){return b instanceof ArrayBuffer&&(b=new Uint8Array(b)),String.fromCharCode.apply(String,b)}function alg(a){var r={name:(a.name||a||"").toUpperCase().replace("V","v")};switch(r.name){case"SHA-1":case"SHA-256":case"SHA-384":case"SHA-512":break;case"AES-CBC":case"AES-GCM":case"AES-KW":a.length&&(r.length=a.length);break;case"HMAC":a.hash&&(r.hash=alg(a.hash)),a.length&&(r.length=a.length);break;case"RSAES-PKCS1-v1_5":
a.publicExponent&&(r.publicExponent=new Uint8Array(a.publicExponent)),a.modulusLength&&(r.modulusLength=a.modulusLength);break;case"RSASSA-PKCS1-v1_5":case"RSA-OAEP":a.hash&&(r.hash=alg(a.hash)),a.publicExponent&&(r.publicExponent=new Uint8Array(a.publicExponent)),a.modulusLength&&(r.modulusLength=a.modulusLength);break;default:throw new SyntaxError("Bad algorithm name")}return r}function jwkAlg(a){return{HMAC:{"SHA-1":"HS1","SHA-256":"HS256","SHA-384":"HS384","SHA-512":"HS512"},"RSASSA-PKCS1-v1_5":{"SHA-1":"RS1","SHA-256":"RS256","SHA-384":"RS384","SHA-512":"RS512"},"RSAES-PKCS1-v1_5":{"":"RSA1_5"},"RSA-OAEP":{"SHA-1":"RSA-OAEP","SHA-256":"RSA-OAEP-256"},
"AES-KW":{128:"A128KW",192:"A192KW",256:"A256KW"},"AES-GCM":{128:"A128GCM",192:"A192GCM",256:"A256GCM"},"AES-CBC":{128:"A128CBC",192:"A192CBC",256:"A256CBC"}}[a.name][(a.hash||{}).name||a.length||""]}function b2jwk(k){(k instanceof ArrayBuffer||k instanceof Uint8Array)&&(k=JSON.parse(decodeURIComponent(escape(b2s(k)))));var jwk={kty:k.kty,alg:k.alg,ext:k.ext||k.extractable};switch(jwk.kty){case"oct":jwk.k=k.k;case"RSA":["n","e","d","p","q","dp","dq","qi","oth"].forEach(function(x){x in k&&(jwk[x]=k[x])});break;default:throw new TypeError("Unsupported key type")}return jwk}function b2der(buf,ctx){if(buf instanceof ArrayBuffer&&(buf=new Uint8Array(buf)),(
ctx=ctx||{pos:0,end:buf.length}).end-ctx.pos<2||ctx.end>buf.length)throw new RangeError("Malformed DER");var rv,tag=buf[ctx.pos++],len=buf[ctx.pos++];if(128<=len){if(len&=127,ctx.end-ctx.pos<len)throw new RangeError("Malformed DER");for(var xlen=0;len--;)xlen<<=8,xlen|=buf[ctx.pos++];len=xlen}if(ctx.end-ctx.pos<len)throw new RangeError("Malformed DER");switch(tag){case 2:rv=buf.subarray(ctx.pos,ctx.pos+=len);break;case 3:if(buf[ctx.pos++])throw new Error("Unsupported bit string");len--;case 4:rv=new Uint8Array(buf.subarray(ctx.pos,ctx.pos+=len)).buffer;break;case 5:rv=null;break;case 6:var oid=btoa(b2s(buf.subarray(ctx.pos,ctx.pos+=len)));if(!(oid in oid2str
))throw new Error("Unsupported OBJECT ID "+oid);rv=oid2str[oid];break;case 48:rv=[];for(var end=ctx.pos+len;ctx.pos<end;)rv.push(b2der(buf,ctx));break;default:throw new Error("Unsupported DER tag 0x"+tag.toString(16))}return rv}function der2b(val,buf){var tag=0,len=0,pos=(buf=buf||[]).length+2;if(buf.push(0,0),val instanceof Uint8Array){tag=2,len=val.length;for(var i=0;i<len;i++)buf.push(val[i])}else if(val instanceof ArrayBuffer){tag=4,len=val.byteLength,val=new Uint8Array(val);for(i=0;i<len;i++)buf.push(val[i])}else if(null===val)tag=5,len=0;else if("string"==typeof val&&val in str2oid){var oid=s2b(atob(str2oid[val])),tag=6;len=oid.length;for(i=0;i<len;i++
)buf.push(oid[i])}else if(val instanceof Array){for(i=0;i<val.length;i++)der2b(val[i],buf);tag=48,len=buf.length-pos}else{if(!("object"===_typeof(val)&&3===val.tag&&val.value instanceof ArrayBuffer))throw new Error("Unsupported DER value "+val);tag=3,len=(val=new Uint8Array(val.value)).byteLength,buf.push(0);for(i=0;i<len;i++)buf.push(val[i]);len++}if(128<=len){var xlen=len,len=4;for(buf.splice(pos,0,xlen>>24&255,xlen>>16&255,xlen>>8&255,255&xlen);1<len&&!(xlen>>24);)xlen<<=8,len--;len<4&&buf.splice(pos,4-len),len|=128}return buf.splice(pos-2,2,tag,len),buf}function CryptoKey(key,alg,ext,use){Object.defineProperties(this,{_key:{value:key},type:{
value:key.type,enumerable:!0},extractable:{value:void 0===ext?key.extractable:ext,enumerable:!0},algorithm:{value:void 0===alg?key.algorithm:alg,enumerable:!0},usages:{value:void 0===use?key.usages:use,enumerable:!0}})}function isPubKeyUse(u){return"verify"===u||"encrypt"===u||"wrapKey"===u}function isPrvKeyUse(u){return"sign"===u||"decrypt"===u||"unwrapKey"===u}!_crypto||(_subtle=_crypto.subtle||_crypto.webkitSubtle)&&(_Crypto=global.Crypto||_crypto.constructor||Object,_SubtleCrypto=global.SubtleCrypto||_subtle.constructor||Object,global.CryptoKey||global.Key||Object,isEdge=-1<global.navigator.userAgent.indexOf("Edge/"),isIE=!!global.msCrypto&&!isEdge,
isWebkit=!_crypto.subtle&&!!_crypto.webkitSubtle,(isIE||isWebkit)&&(oid2str={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},str2oid={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"},["generateKey","importKey","unwrapKey"].forEach(function(m){var _fn=_subtle[m];_subtle[m]=function(a,b,c){var ka,kx,ku,jwk,op,args=[].slice.call(arguments);switch(m){case"generateKey":ka=alg(a),kx=b,ku=c;break;case"importKey":ka=alg(c),kx=args[3],ku=args[4],"jwk"===a&&((b=b2jwk(b)).alg||(b.alg=jwkAlg(ka)),b.key_ops||(b.key_ops="oct"!==b.kty?"d"in b?ku.filter(isPrvKeyUse):ku.filter(isPubKeyUse):ku.slice()),args[1]=(jwk=b2jwk(jwk=b),isIE&&(jwk.extractable=jwk.ext,delete jwk.ext),s2b(unescape(
encodeURIComponent(JSON.stringify(jwk)))).buffer));break;case"unwrapKey":ka=args[4],kx=args[5],ku=args[6],args[2]=c._key}if("generateKey"===m&&"HMAC"===ka.name&&ka.hash)return ka.length=ka.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[ka.hash.name],_subtle.importKey("raw",_crypto.getRandomValues(new Uint8Array(ka.length+7>>3)),ka,kx,ku);if(isWebkit&&"generateKey"===m&&"RSASSA-PKCS1-v1_5"===ka.name&&(!ka.modulusLength||2048<=ka.modulusLength))return(a=alg(a)).name="RSAES-PKCS1-v1_5",delete a.hash,_subtle.generateKey(a,!0,["encrypt","decrypt"]).then(function(k){return Promise.all([_subtle.exportKey("jwk",k.publicKey),_subtle.exportKey("jwk"
,k.privateKey)])}).then(function(keys){return keys[0].alg=keys[1].alg=jwkAlg(ka),keys[0].key_ops=ku.filter(isPubKeyUse),keys[1].key_ops=ku.filter(isPrvKeyUse),Promise.all([_subtle.importKey("jwk",keys[0],ka,!0,keys[0].key_ops),_subtle.importKey("jwk",keys[1],ka,kx,keys[1].key_ops)])}).then(function(keys){return{publicKey:keys[0],privateKey:keys[1]}});if((isWebkit||isIE&&"SHA-1"===(ka.hash||{}).name)&&"importKey"===m&&"jwk"===a&&"HMAC"===ka.name&&"oct"===b.kty)return _subtle.importKey("raw",s2b(a2s(b.k)),c,args[3],args[4]);if(isWebkit&&"importKey"===m&&("spki"===a||"pkcs8"===a))return _subtle.importKey("jwk",function(prv){var info=b2der(prv),prv=!1
;2<info.length&&(prv=!0,info.shift());var jwk={ext:!0};if("1.2.840.113549.1.1.1"!==info[0][0])throw new TypeError("Unsupported key type");var rsaComp=["n","e","d","p","q","dp","dq","qi"],rsaKey=b2der(info[1]);prv&&rsaKey.shift();for(var i=0;i<rsaKey.length;i++)rsaKey[i][0]||(rsaKey[i]=rsaKey[i].subarray(1)),jwk[rsaComp[i]]=s2a(b2s(rsaKey[i]));return jwk.kty="RSA",jwk}(b),c,args[3],args[4]);if(isIE&&"unwrapKey"===m)return _subtle.decrypt(args[3],c,b).then(function(k){return _subtle.importKey(a,k,args[4],args[5],args[6])});try{op=_fn.apply(_subtle,args)}catch(e){return Promise.reject(e)}return isIE&&(op=new Promise(function(res,rej){
op.onabort=op.onerror=function(e){rej(e)},op.oncomplete=function(r){res(r.target.result)}})),op=op.then(function(k){return"HMAC"===ka.name&&(ka.length||(ka.length=8*k.algorithm.length)),0==ka.name.search("RSA")&&(ka.modulusLength||(ka.modulusLength=(k.publicKey||k).algorithm.modulusLength),ka.publicExponent||(ka.publicExponent=(k.publicKey||k).algorithm.publicExponent)),k=k.publicKey&&k.privateKey?{publicKey:new CryptoKey(k.publicKey,ka,kx,ku.filter(isPubKeyUse)),privateKey:new CryptoKey(k.privateKey,ka,kx,ku.filter(isPrvKeyUse))}:new CryptoKey(k,ka,kx,ku)})}}),["exportKey","wrapKey"].forEach(function(m){var _fn=_subtle[m];_subtle[m]=function(a,b,c){var op,
args=[].slice.call(arguments);switch(m){case"exportKey":args[1]=b._key;break;case"wrapKey":args[1]=b._key,args[2]=c._key}if((isWebkit||isIE&&"SHA-1"===(b.algorithm.hash||{}).name)&&"exportKey"===m&&"jwk"===a&&"HMAC"===b.algorithm.name&&(args[0]="raw"),!isWebkit||"exportKey"!==m||"spki"!==a&&"pkcs8"!==a||(args[0]="jwk"),isIE&&"wrapKey"===m)return _subtle.exportKey(a,b).then(function(k){return"jwk"===a&&(k=s2b(unescape(encodeURIComponent(JSON.stringify(b2jwk(k)))))),_subtle.encrypt(args[3],c,k)});try{op=_fn.apply(_subtle,args)}catch(e){return Promise.reject(e)}return isIE&&(op=new Promise(function(res,rej){op.onabort=op.onerror=function(e){rej(e)},
op.oncomplete=function(r){res(r.target.result)}})),"exportKey"===m&&"jwk"===a&&(op=op.then(function(k){return(isWebkit||isIE&&"SHA-1"===(b.algorithm.hash||{}).name)&&"HMAC"===b.algorithm.name?{kty:"oct",alg:jwkAlg(b.algorithm),key_ops:b.usages.slice(),ext:!0,k:s2a(b2s(k))}:((k=b2jwk(k)).alg||(k.alg=jwkAlg(b.algorithm)),k.key_ops||(k.key_ops="public"===b.type?b.usages.filter(isPubKeyUse):"private"===b.type?b.usages.filter(isPrvKeyUse):b.usages.slice()),k)})),!isWebkit||"exportKey"!==m||"spki"!==a&&"pkcs8"!==a||(op=op.then(function(k){return k=function(k){var info=[["",null]],prv=!1;if("RSA"!==k.kty)throw new TypeError("Unsupported key type");for(var rsaComp=[
"n","e","d","p","q","dp","dq","qi"],rsaKey=[],i=0;i<rsaComp.length&&rsaComp[i]in k;i++){var b=rsaKey[i]=s2b(a2s(k[rsaComp[i]]));128&b[0]&&(rsaKey[i]=new Uint8Array(b.length+1),rsaKey[i].set(b,1))}return 2<rsaKey.length&&(prv=!0,rsaKey.unshift(new Uint8Array([0]))),info[0][0]="1.2.840.113549.1.1.1",info.push(new Uint8Array(der2b(rsaKey)).buffer),prv?info.unshift(new Uint8Array([0])):info[1]={tag:3,value:info[1]},new Uint8Array(der2b(info)).buffer}(b2jwk(k))})),op}}),["encrypt","decrypt","sign","verify"].forEach(function(m){var _fn=_subtle[m];_subtle[m]=function(a,b,c,tl){if(isIE&&(!c.byteLength||tl&&!tl.byteLength))throw new Error("Empy input is not allowed")
;var op,args=[].slice.call(arguments),tl=alg(a);isIE&&"decrypt"===m&&"AES-GCM"===tl.name&&(tl=a.tagLength>>3,args[2]=(c.buffer||c).slice(0,c.byteLength-tl),a.tag=(c.buffer||c).slice(c.byteLength-tl)),args[1]=b._key;try{op=_fn.apply(_subtle,args)}catch(e){return Promise.reject(e)}return isIE&&(op=new Promise(function(res,rej){op.onabort=op.onerror=function(e){rej(e)},op.oncomplete=function(r){var c,t,r=r.target.result;"encrypt"===m&&r instanceof AesGcmEncryptResult&&(c=r.ciphertext,t=r.tag,(r=new Uint8Array(c.byteLength+t.byteLength)).set(new Uint8Array(c),0),r.set(new Uint8Array(t),c.byteLength),r=r.buffer),res(r)}})),op}}),isIE&&(_digest=_subtle.digest,
_subtle.digest=function(a,b){if(!b.byteLength)throw new Error("Empy input is not allowed");var op;try{op=_digest.call(_subtle,a,b)}catch(e){return Promise.reject(e)}return op=new Promise(function(res,rej){op.onabort=op.onerror=function(e){rej(e)},op.oncomplete=function(r){res(r.target.result)}})},global.crypto=Object.create(_crypto,{getRandomValues:{value:function(a){return _crypto.getRandomValues(a)}},subtle:{value:_subtle}}),global.CryptoKey=CryptoKey),isWebkit&&(_crypto.subtle=_subtle,global.Crypto=_Crypto,global.SubtleCrypto=_SubtleCrypto,global.CryptoKey=CryptoKey)))},module.exports?module.exports=factory(global):factory(global)})
;var EncoderAndDecoderNodeJS_min_1=createCommonjsModule(function(module,exports){!function(f){var y=Math.log,z=Math.LN2,A=Math.clz32||function(b){return 31-y(b>>>0)/z|0},g=String.fromCharCode,k={}.toString,n=f.SharedArrayBuffer,B=n?k.call(n):"",h=f.Uint8Array,C=h?k.call(ArrayBuffer.prototype):"",e=f.Buffer;try{!e&&f.require&&(e=f.require("Buffer"));var p=e.prototype,D=e?k.call(p):""}catch(b){}var m,w,u,E,v,t,F,q=!!h&&!e,r=!e||!!h&&h.prototype.isPrototypeOf(p);(q||e)&&(m=function(b){return b.TextDecoder||(b.TextDecoder=t),b.TextEncoder||(b.TextEncoder=u),b!==f&&(b.decode=v,b.encode=w),b},w=function(b){for(var a=0|(b=void 0===b?"":(""+b).replace(
/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,E)).length,c=q?new h(a):e.alloc?e.alloc(a):new e(a),d=0;d<a;d=d+1|0)c[d]=0|b.charCodeAt(d);return c},u=function(){},E=function(b){var a=0|b.charCodeAt(0);if(55296<=a&&a<=56319){var c=0|b.charCodeAt(1);if(!(c==c&&56320<=c&&c<=57343))return g(239,191,189);if(65535<(a=(a-55296<<10)+c-56320+65536|0))return g(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)}return a<=127?b:a<=2047?g(192|a>>>6,128|63&a):g(224|a>>>12,128|a>>>6&63,128|63&a)},v=function(b){b=b&&b.buffer||b;var a=k.call(b);if(a!==C&&a!==D&&a!==B&&"[object ArrayBuffer]"!==a)throw Error(
"Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");a="";for(var c=0,d=0|(b=r?new h(b):b).length;c<d;c=c+32768|0)a+=g.apply(0,b[r?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,F)},F=function(b){var a=b.charCodeAt(0)<<24,c=0|A(~a),d=0,x=0|b.length,l="";if(c<5&&c<=x){for(a=a<<c>>>24+c,d=1;d<c;d=d+1|0)a=a<<6|63&b.charCodeAt(d);a<=65535?l+=g(a):a<=1114111?l+=g(55296+((a=a-65536|0)>>10)|0,56320+(1023&a)|0):d=0}for(;d<x;d=d+1|0)l+="<22>";return l},(t=function(){}).prototype.decode=v,u.prototype.encode=w,"undefined"==_typeof(m)&&(void 0).amd?(void 0)(function(){return m({}
)}):m(exports))}(1?commonjsGlobal:self)}).TextEncoder,subtle=window.crypto.subtle||window.crypto.webkitSubtle,supportedAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512"];return function(data){var dataPromise,algorithm=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"SHA-256").toUpperCase();if(!supportedAlgorithms.includes(algorithm))throw new TypeError("Unsupported digest algorithm : ".concat(algorithm));if(data instanceof Uint8Array)dataPromise=Promise.resolve(data);else if(data instanceof ArrayBuffer)dataPromise=Promise.resolve(new Uint8Array([data]));else if(data instanceof Blob)dataPromise=new Promise(function(resolve,reject){
var reader=new FileReader;reader.addEventListener("loadend",function(){return resolve(reader.result)}),reader.addEventListener("abort",reject),reader.addEventListener("error",reject),reader.readAsArrayBuffer(data)});else{if("string"!=typeof data)throw new TypeError("Unsupported data type to digest with ".concat(algorithm));dataPromise=Promise.resolve(new EncoderAndDecoderNodeJS_min_1("utf-8").encode(data))}return dataPromise.then(function(rawData){return subtle.digest(algorithm,rawData)}).then(function(buffer){return _toConsumableArray(new Uint8Array(buffer)).map(function(val){return"00".concat(val.toString(16)).slice(-2)}).join("")})}}),define(
"core/encoder/array",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{encode:function(modelValue,glue){return glue=glue||",",_.isArray(modelValue)?modelValue.join(glue):modelValue},decode:function(nodeValue,glue){return glue=glue||",",nodeValue.split(glue)}}}),define("core/error/types",[],function(){"use strict";return Object.freeze({api:"api",network:"network",timeout:"timeout",auth:"auth",user:"user",rendering:"rendering"})}),define("core/error/ApiError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(
_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null]
;instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(
this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived);return call=hasNativeReflectConstruct?(call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call
)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(ApiError,_wrapNativeSuper(Error));var _super=_createSuper(ApiError);function ApiError(message,errorCode,response){
var _this,recoverable=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,ApiError);for(var _len=arguments.length,params=new Array(4<_len?_len-4:0),_key=4;_key<_len;_key++)params[_key-4]=arguments[_key];return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),ApiError),_this.name="ApiError",_this.message=message,_this.errorCode=errorCode,_this.response=response,_this.recoverable=!!recoverable,_this.type=errorTypes.api,_this}
return ApiError}()}),define("core/error/AuthError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}
function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null];instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(
void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived)
;return call=hasNativeReflectConstruct?(call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),
superClass&&_setPrototypeOf(subClass,superClass)}(AuthError,_wrapNativeSuper(Error));var _super=_createSuper(AuthError);function AuthError(message){var _this,recoverable=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,AuthError);for(var _len=arguments.length,params=new Array(2<_len?_len-2:0),_key=2;_key<_len;_key++)params[_key-2]=arguments[_key];return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),AuthError),
_this.name="AuthError",_this.message=message,_this.recoverable=!!recoverable,_this.type=errorTypes.auth,_this}return AuthError}()}),define("core/error/NetworkError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0
;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null];instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if(
"function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){
var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived);return call=hasNativeReflectConstruct?(call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function")
;subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(NetworkError,_wrapNativeSuper(Error));var _super=_createSuper(NetworkError);function NetworkError(message,errorCode,response){var _this,recoverable=!(3<arguments.length&&void 0!==arguments[3])||arguments[3];!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NetworkError);for(var _len=arguments.length,params=new Array(4<_len?_len-4:0),_key=4;_key<_len;_key++)params[_key-4]=arguments[_key]
;return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),NetworkError),_this.name="NetworkError",_this.message=message,_this.errorCode=errorCode,_this.response=response,_this.recoverable=!!recoverable,_this.type=errorTypes.network,_this}return NetworkError}()}),define("core/error/RenderingError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(
_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null];instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(
null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),
_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived);return call=hasNativeReflectConstruct?(call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(
errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(RenderingError,_wrapNativeSuper(Error));var _super=_createSuper(RenderingError);function RenderingError(message){var _this,recoverable=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];!function(instance,Constructor){if(!(instance instanceof Constructor)
)throw new TypeError("Cannot call a class as a function")}(this,RenderingError);for(var _len=arguments.length,params=new Array(2<_len?_len-2:0),_key=2;_key<_len;_key++)params[_key-2]=arguments[_key];return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),RenderingError),_this.name="RenderingError",_this.message=message,_this.recoverable=!!recoverable,_this.type=errorTypes.rendering,_this}return RenderingError}()}),define("core/error/TimeoutError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(
_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null]
;instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(
this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived);return call=hasNativeReflectConstruct?(call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call
)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(TimeoutError,_wrapNativeSuper(Error));var _super=_createSuper(TimeoutError);function TimeoutError(message,timeout){
var _this,recoverable=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TimeoutError);for(var _len=arguments.length,params=new Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)params[_key-3]=arguments[_key];return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),TimeoutError),_this.name="TimeoutError",_this.message=message,_this.timeout=timeout,_this.recoverable=!!recoverable,_this.type=errorTypes.timeout,_this}return TimeoutError
}()}),define("core/error/UserError",["core/error/types"],function(errorTypes){"use strict";function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _construct(Parent
,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(Parent,args,Class){var instance=[null];instance.push.apply(instance,args);instance=new(Function.bind.apply(Parent,instance));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(Class){if(null===Class||(fn=Class,-1===Function.toString.call(fn).indexOf("[native code]")))return Class;var fn;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(
Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var call,self=_getPrototypeOf(Derived);return call=hasNativeReflectConstruct?(
call=_getPrototypeOf(this).constructor,Reflect.construct(self,arguments,call)):self.apply(this,arguments),self=this,!(call=call)||"object"!=typeof call&&"function"!=typeof call?_assertThisInitialized(self):call}}return errorTypes=errorTypes&&Object.prototype.hasOwnProperty.call(errorTypes,"default")?errorTypes.default:errorTypes,function(){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,
superClass)}(UserError,_wrapNativeSuper(Error));var _super=_createSuper(UserError);function UserError(message){var _this,recoverable=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,UserError);for(var _len=arguments.length,params=new Array(2<_len?_len-2:0),_key=2;_key<_len;_key++)params[_key-2]=arguments[_key];return _this=_super.call.apply(_super,[this,message].concat(params)),Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),UserError),_this.name="UserError",_this.message=message,
_this.recoverable=!!recoverable,_this.type=errorTypes.user,_this}return UserError}()}),define("core/errorHandler",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{_contexts:{},getContext:function(name){if(_.isString(name)&&name.length)return this._contexts[name]=this._contexts[name]||{typedHandlers:{},globalHandler:null},this._contexts[name]},listen:function(context,type,handler){context=this.getContext(context);context&&(_.isFunction(type)&&!handler&&(handler=type),_.isFunction(handler)&&(_.isString(type)&&!_.isEmpty(type)?context.typedHandlers[type]=handler:context.globalHandler=handler))},
throw:function(context,err){context=this.getContext(context);if(context)return _.isString(err)&&(err=new Error(err)),_.isFunction(context.typedHandlers[err.name])&&context.typedHandlers[err.name](err),_.isFunction(context.globalHandler)&&context.globalHandler(err),!1},reset:function(name){this._contexts[name]&&(this._contexts=_.omit(this._contexts,name))}}}),define("core/fetchRequest",["core/error/ApiError","core/error/NetworkError","core/error/TimeoutError"],function(ApiError,NetworkError,TimeoutError){"use strict";ApiError=ApiError&&Object.prototype.hasOwnProperty.call(ApiError,"default")?ApiError.default:ApiError,
NetworkError=NetworkError&&Object.prototype.hasOwnProperty.call(NetworkError,"default")?NetworkError.default:NetworkError,TimeoutError=TimeoutError&&Object.prototype.hasOwnProperty.call(TimeoutError,"default")?TimeoutError.default:TimeoutError;return function(url,options){options=Object.assign({timeout:5e3},options);var originalResponse,responseCode,flow=Promise.resolve();return options.jwtTokenHandler&&(flow=flow.then(options.jwtTokenHandler.getToken).then(function(token){return{Authorization:"Bearer ".concat(token)}}).then(function(headers){options.headers=Object.assign({},options.headers,headers)})),flow=flow.then(function(){return Promise.race([fetch(url
,options),new Promise(function(resolve,reject){setTimeout(function(){reject(new TimeoutError("Timeout",options.timeout))},options.timeout)})])}),options.jwtTokenHandler&&(flow=flow.then(function(response){return 401===response.status?options.jwtTokenHandler.refreshToken().then(options.jwtTokenHandler.getToken).then(function(token){return options.headers.Authorization="Bearer ".concat(token),fetch(url,options)}):Promise.resolve(response)})),flow=flow.then(function(response){return originalResponse=response.clone(),responseCode=response.status,response.json().catch(function(){return{}})}).then(function(err){if(204===responseCode)return null;if(
200<=responseCode&&responseCode<300||err&&!0===err.success)return err;err=err.errorCode?new ApiError("".concat(err.errorCode," : ").concat(err.errorMsg||err.errorMessage||err.error),err.errorCode,originalResponse):new NetworkError("".concat(responseCode," : Request error"),responseCode||0,originalResponse);throw err}).catch(function(err){return err.type?Promise.reject(err):Promise.reject(new NetworkError(err.message,0))})}}),define("core/history",["jquery"],function($){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var ns="history";return{fixBrokenBrowsers:function(){var enabledSelector=["input","textarea",
"[contenteditable=true]"].join(","),preventBackSpace=function(e){return 8!==e.keyCode},preventBackSpacePropag=function(e){return 8!==e.keyCode||e.target.readonly||e.target.disbaled||e.stopPropagation(),!0};$(document).off("."+ns),$(document).off("."+ns,enabledSelector),$(document).on("keydown."+ns,preventBackSpace),$(document).on("keypress."+ns,preventBackSpace),$(document).on("keydown."+ns,enabledSelector,preventBackSpacePropag),$(document).on("keypress."+ns,enabledSelector,preventBackSpacePropag)}}}),define("util/urlParser",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var urlParts=["hash","host",
"hostname","pathname","port","protocol","search"];function UrlParser(url){var detachedAnchor;this.url=url,(detachedAnchor=document.createElement("a")).href=url,this.data=_.pick(detachedAnchor,urlParts),this.params=UrlParser.extractParams(this.data.search)}return UrlParser.extractParams=function(search){var params={};return search.replace(/^\?/,"").replace(/([^=&]+)=([^&]*)/g,function(m,key,value){params[decodeURIComponent(key)]=decodeURIComponent(value)}),params},UrlParser.prototype.get=function(what){return!!_.contains(urlParts,what)&&this.data[what]},UrlParser.prototype.getParams=function(){return this.params},UrlParser.prototype.setParams=function(params
){_.isObject(params)&&(this.params=params)},UrlParser.prototype.addParam=function(key,value){key&&(this.params[key]=value)},UrlParser.prototype.getPaths=function(){return this.data.pathname.replace(/^\/|\/$/g,"").split("/")},UrlParser.prototype.getUrl=function(exclude){var url="";return exclude=exclude||[],this.data&&(this.data.hostname&&!_.contains(exclude,"host")&&(url+=(this.data.protocol||"http:")+"//"+this.data.hostname.replace(/\/$/,""),this.data.port&&80!==this.data.port&&"80"!==this.data.port&&"0"!==this.data.port&&(url+=":"+this.data.port)),/\/$/.test(url)||/^\//.test(this.data.pathname)||(url+="/"),url+=this.data.pathname,this.params&&!_.contains(
exclude,"params")&&(url+="?",_.forEach(this.params,function(value,key){url+=encodeURIComponent(key)+"="+encodeURIComponent(value)+"&"}),url=url.substring(0,url.length-1)),this.data.hash&&!_.contains(exclude,"hash")&&(url+=this.data.hash)),url},UrlParser.prototype.getBaseUrl=function(){var baseUrl=this.getUrl(["params","hash"]),paths=this.getPaths(),lastPart=paths[paths.length-1];return 0<paths.length&&/\.[a-z]+$/.test(lastPart)&&(baseUrl=baseUrl.replace(lastPart,"").replace(/\/\/$/,"/")),baseUrl},UrlParser.prototype.sameDomain=function(url){var parsedUrl;if(void 0===url&&(parsedUrl=new UrlParser(window.location)),"string"==typeof url&&(
parsedUrl=new UrlParser(url)),url instanceof UrlParser&&(parsedUrl=url),!(parsedUrl instanceof UrlParser))throw new TypeError("Invalid url format");return"data:"===this.get("protocol")||"data:"===parsedUrl.get("protocol")||this.get("protocol")===parsedUrl.get("protocol")&&this.get("hostname")===parsedUrl.get("hostname")&&this.get("port")===parsedUrl.get("port")},UrlParser.prototype.checkCORS=UrlParser.prototype.sameDomain,UrlParser}),define("core/router",["lodash","context","util/urlParser","core/logger","core/promise"],function(_,context,UrlParser,loggerFactory,Promise){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,UrlParser=UrlParser&&Object.prototype.hasOwnProperty.call(UrlParser,"default")?UrlParser.default:UrlParser,loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise;var logger=loggerFactory("router");return{dispatch:function(urls,cb){var self=this;return _.isArray(urls)||(urls=[urls]),Promise.all(urls.map(function(url){return self.dispatchUrl(url)})).then(function(){_.isFunction(cb)&&cb()}).catch(
function(err){logger.error(err)})},parseMvcUrl:function(url){var parser,paths,route=null;return _.isString(url)&&!_.isEmpty(url)&&3<=(paths=(parser=new UrlParser(url)).getPaths()).length&&(route={action:paths[paths.length-1],module:paths[paths.length-2],extension:paths[paths.length-3],params:parser.getParams()}),route},loadRouteBundle:function(route){return route&&route.extension&&context.bundle&&"tao"!==route.extension?new Promise(function(resolve){var routeBundle=route.extension+"/loader/"+route.extension+".min";window.require([routeBundle],resolve,function(err){logger.warn("Unable to load "+routeBundle+" : "+err.message),resolve()})}):Promise.resolve()},
loadRoute:function(route){return route&&route.extension?new Promise(function(resolve,reject){var routeModule="tao"===route.extension?"controller/routes":route.extension+"/controller/routes";window.require([routeModule],resolve,reject)}):Promise.resolve()},dispatchUrl:function(url){var self=this,route=this.parseMvcUrl(url);return logger.debug("Dispatch URL "+url),this.loadRouteBundle(route).then(function(){return self.loadRoute(route)}).then(function(action){var dependencies=[],styles=[],moduleConfig={},mapStyle=function(style){return"css!"+route.extension+"Css/"+style};return action&&action[route.module]&&((action=action[route.module]).deps&&(
dependencies=dependencies.concat(action.deps)),action.css&&(styles=_.isArray(action.css)?action.css:[action.css],dependencies=dependencies.concat(_.map(styles,mapStyle))),(action.actions&&action.actions[route.action]||action[route.action])&&(action=action.actions[route.action]||action[route.action],(_.isString(action)||_.isArray(action))&&(dependencies=dependencies.concat(action)),action.deps&&(dependencies=dependencies.concat(action.deps)),action.css&&(styles=_.isArray(action.css)?action.css:[action.css],dependencies=dependencies.concat(_.map(styles,mapStyle)))),dependencies=_.map(dependencies,function(dep){return/^controller/.test(dep
)&&"tao"!==route.extension?route.extension+"/"+dep:dep}),_.isEmpty(route.params)||(_.forEach(dependencies,function(dependency){moduleConfig[dependency]=_.merge(_.clone(window.requirejs.s.contexts._.config.config[dependency]||{}),route.params)}),window.requirejs.config({config:moduleConfig}))),dependencies}).then(function(dependencies){if(dependencies&&dependencies.length)return logger.debug("Load controllers : "+dependencies.join(", ")),new Promise(function(resolve,reject){window.require(dependencies,function(){_.forEach(arguments,function(dependency){dependency&&_.isFunction(dependency.start)&&dependency.start()}),logger.debug(
arguments.length+" controllers started"),resolve()},reject)})})}}}),define("core/statifier",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(target){var states={},statesApi={getState:function(name){return!!states[name]},setState:function(name,value){return void 0===value&&(value=!0),states[name]=!!value,this},clearStates:function(){return states={},this},getStates:function(){return _.reduce(states,function(result,state,key){return state&&result.push(key),result},[])}};return target=target||{},_(statesApi).functions().forEach(function(method){target[method]=function(){var args=[
].slice.call(arguments);return statesApi[method].apply(target,args)}}),target}}),define("core/historyRouter",["jquery","lodash","core/router","core/eventifier","core/statifier","core/promise"],function($,_,router,eventifier,statifier,Promise){"use strict";var historyRouter;$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,router=router&&Object.prototype.hasOwnProperty.call(router,"default")?router.default:router,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,
statifier=statifier&&Object.prototype.hasOwnProperty.call(statifier,"default")?statifier.default:statifier,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise;var location=(window.history.location||window.location)+"";return function(){var pendingPromise;return historyRouter||(historyRouter=eventifier(statifier({redirect:function(url){return this.pushState(url)},forward:function(state){state=_.isString(state)?{url:state}:state;return window.history.replaceState(state,"",window.location+""),this.dispatch(state,!1)},replace:function(url){return this.dispatch(url,!0)},dispatch:function(state,replace){var self=this
;function doDispatch(){return _.isString(state)&&(state={url:state}),state&&state.url?(self.setState("dispatching").trigger("dispatching",state.url),!0===replace&&window.history.replaceState(state,"",state.url),router.dispatch(state.url).then(function(){return self.trigger("dispatched",state.url).setState("dispatching",!1),state.url})):Promise.reject(new TypeError("The state should contain an URL!"))}return pendingPromise=pendingPromise?pendingPromise.then(doDispatch).catch(doDispatch):doDispatch()},pushState:function(state){return _.isString(state)&&(state={url:state}),window.history.pushState(state,"",state.url),this.dispatch(state)}})),
window.history.replaceState({url:location},"",location),$(window).on("popstate",function(){historyRouter.dispatch(window.history.state)}),historyRouter.on("dispatch",function(state){state&&this.pushState(state)}),historyRouter)}}),define("core/jwt/jwtToken",["exports"],function(exports){"use strict";exports.getJwtTTL=function(payload){return payload&&payload.exp&&payload.iat?1e3*(payload.exp-payload.iat):null},exports.parseJwtPayload=function(token){try{return JSON.parse(atob(token.split(".")[1]))}catch(e){return null}},Object.defineProperty(exports,"__esModule",{value:!0})}),define("core/jwt/jwtTokenStore",["core/store","core/jwt/jwtToken"],function(store,
jwtToken){"use strict";store=store&&Object.prototype.hasOwnProperty.call(store,"default")?store.default:store;return function(namespace){var _ref$usePerTokenTTL=0<arguments.length&&void 0!==namespace?namespace:{},accessTokenTTLParam=_ref$usePerTokenTTL.namespace,namespace=void 0===accessTokenTTLParam?"global":accessTokenTTLParam,accessTokenTTLParam=_ref$usePerTokenTTL.accessTokenTTL,accessTokenTTLParam=void 0===accessTokenTTLParam?0:accessTokenTTLParam,_ref$usePerTokenTTL=_ref$usePerTokenTTL.usePerTokenTTL,usePerTokenTTL=void 0!==_ref$usePerTokenTTL&&_ref$usePerTokenTTL,storeName="jwt.".concat(namespace),defaultAccessTokenTTL=accessTokenTTLParam,
accessTokenStoredAt=0,currentAccessTokenTTL=0,getAccessTokenStore=function(){return store(storeName,store.backends.memory)},getRefreshTokenStore=function(){return store(storeName,store.backends.sessionStorage)};return{setAccessToken:function(token){var tokenPayload;return usePerTokenTTL&&(tokenPayload=jwtToken.parseJwtPayload(token),currentAccessTokenTTL=jwtToken.getJwtTTL(tokenPayload)||defaultAccessTokenTTL),accessTokenStoredAt=Date.now(),getAccessTokenStore().then(function(storage){return storage.setItem("accessToken",token)})},getAccessToken:function(){var expiryTime=0
;return usePerTokenTTL&&currentAccessTokenTTL?expiryTime=accessTokenStoredAt+currentAccessTokenTTL:defaultAccessTokenTTL&&(expiryTime=accessTokenStoredAt+defaultAccessTokenTTL),expiryTime&&expiryTime<Date.now()?Promise.resolve(null):getAccessTokenStore().then(function(storage){return storage.getItem("accessToken")})},setRefreshToken:function(token){return getRefreshTokenStore().then(function(storage){return storage.setItem("refreshToken",token)})},getRefreshToken:function(){return getRefreshTokenStore().then(function(storage){return storage.getItem("refreshToken")})},setTokens:function(accessToken,refreshToken){return Promise.all([this.setAccessToken(
accessToken),this.setRefreshToken(refreshToken)]).then(function(){return!0})},clearAccessToken:function(){return getAccessTokenStore().then(function(storage){return storage.clear()})},clearRefreshToken:function(){return getRefreshTokenStore().then(function(storage){return storage.clear()})},clear:function(){return Promise.all([this.clearAccessToken(),this.clearRefreshToken()]).then(function(){return!0})},setAccessTokenTTL:function(newAccessTokenTTL){defaultAccessTokenTTL=newAccessTokenTTL}}}}),define("core/jwt/jwtTokenHandler",["core/jwt/jwtTokenStore","core/promiseQueue"],function(jwtTokenStoreFactory,promiseQueue){"use strict"
;jwtTokenStoreFactory=jwtTokenStoreFactory&&Object.prototype.hasOwnProperty.call(jwtTokenStoreFactory,"default")?jwtTokenStoreFactory.default:jwtTokenStoreFactory,promiseQueue=promiseQueue&&Object.prototype.hasOwnProperty.call(promiseQueue,"default")?promiseQueue.default:promiseQueue;return function(accessTokenTTL){var _ref$useCredentials=0<arguments.length&&void 0!==accessTokenTTL?accessTokenTTL:{},usePerTokenTTL=_ref$useCredentials.serviceName,serviceName=void 0===usePerTokenTTL?"tao":usePerTokenTTL,refreshTokenUrl=_ref$useCredentials.refreshTokenUrl,accessTokenTTL=_ref$useCredentials.accessTokenTTL,usePerTokenTTL=_ref$useCredentials.usePerTokenTTL,
usePerTokenTTL=void 0!==usePerTokenTTL&&usePerTokenTTL,refreshTokenParameters=_ref$useCredentials.refreshTokenParameters,_ref$useCredentials=_ref$useCredentials.useCredentials,useCredentials=void 0!==_ref$useCredentials&&_ref$useCredentials,tokenStorage=jwtTokenStoreFactory({namespace:serviceName,accessTokenTTL:accessTokenTTL,usePerTokenTTL:usePerTokenTTL}),actionQueue=promiseQueue(),unQueuedRefreshToken=function(){var body,credentials;return refreshTokenParameters&&(body=Object.assign({},refreshTokenParameters)),(useCredentials?(credentials="include",Promise.resolve()):tokenStorage.getRefreshToken().then(function(refreshToken){if(!refreshToken
)throw new Error("Refresh token is not available");body=Object.assign({},body,{refreshToken:refreshToken})})).then(function(){return body=body&&JSON.stringify(body),fetch(refreshTokenUrl,{method:"POST",credentials:credentials,headers:{"Content-Type":"application/json"},body:body})}).then(function(response){if(200===response.status)return response.json();var error=new Error("Unsuccessful token refresh");return error.response=response,Promise.reject(error)}).then(function(_ref2){var accessToken=_ref2.accessToken;return tokenStorage.setAccessToken(accessToken).then(function(){return accessToken})})};return{serviceName:serviceName,getToken:function(){
return actionQueue.serie(function(){return tokenStorage.getAccessToken().then(function(accessToken){return accessToken||(useCredentials?unQueuedRefreshToken():tokenStorage.getRefreshToken().then(function(refreshToken){if(refreshToken)return unQueuedRefreshToken();throw new Error("Token not available and cannot be refreshed")}))})})},storeRefreshToken:function(refreshToken){return useCredentials?Promise.resolve(!1):actionQueue.serie(function(){return tokenStorage.setRefreshToken(refreshToken)})},storeAccessToken:function(accessToken){return actionQueue.serie(function(){return tokenStorage.setAccessToken(accessToken)})},clearStore:function(){
return actionQueue.serie(function(){return tokenStorage.clear()})},refreshToken:function(){return actionQueue.serie(unQueuedRefreshToken)},setAccessTokenTTL:function(newAccessTokenTTL){tokenStorage.setAccessTokenTTL(newAccessTokenTTL)}}}}),define("core/jwt/jwtTokenRegistry",[],function(){"use strict";var registry=new Map;return{register:function(tokenHandler){registry.set(tokenHandler.serviceName,tokenHandler)},get:function(serviceName){serviceName=0<arguments.length&&void 0!==serviceName?serviceName:"tao";return registry.get(serviceName)},unregister:function(serviceName){serviceName=0<arguments.length&&void 0!==serviceName?serviceName:"tao";registry.delete(
serviceName)},has:function(serviceName){serviceName=0<arguments.length&&void 0!==serviceName?serviceName:"tao";return registry.has(serviceName)}}}),define("core/logger/console",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var config={level:"info"},mapping={trace:"debug",debug:"debug",info:"info",warn:"warn",error:"error",fatal:"error"};return{setConfig:function(newConfig){config=_.defaults(newConfig||{},config)},log:function(record){var level=record.level;this.checkMinLevel(config.level,level)&&(_.isFunction(window.console[mapping[level]])?record.err?window.console[mapping[level]].call(window.console,
record.name,record.msg,record.err,record):window.console[mapping[level]].call(window.console,record.name,record.msg,record):window.console.log("["+level.toUpperCase()+"]",record.name,record.msg,record))}}}),define("util/url",["lodash","context"],function(_,context){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,context=context&&Object.prototype.hasOwnProperty.call(context
,"default")?context.default:context;var parsers={absolute:/^(?:[a-z]+:)?\/\//i,base64:/^data:[^\/]+\/[^;]+(;charset=[\w]+)?;base64,/,query:/(?:^|&)([^&=]*)=?([^&]*)/g,url:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/};return{parse:function(url){var matches,keys=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","queryString","hash"],i=keys.length,parsed=Object.create({toString:function(){return this.source}});if(parsed.base64=parsers.base64.test(url),parsed.base64)parsed.source=url;else{for(
matches=parsers.url.exec(url);i--;)parsed[keys[i]]=matches[i]||"";parsed.query={},parsed.queryString.replace(parsers.query,function($0,$1,$2){$1&&(parsed.query[$1]=$2)})}return parsed},isAbsolute:function(url){return"object"===_typeof(url)&&url.hasOwnProperty("source")?url.source!==url.relative:"string"==typeof url?parsers.absolute.test(url):void 0},isRelative:function(absolute){absolute=this.isAbsolute(absolute);if("boolean"==typeof absolute)return!absolute},isBase64:function(url){return"object"===_typeof(url)&&url.hasOwnProperty("source")?url.base64:"string"==typeof url?parsers.base64.test(url):void 0},encodeAsXmlAttr:function(uri){return/[<>&']+/.test(uri
)?encodeURIComponent(uri):uri},build:function(path,params){var url,queryString,hasQueryString;return path&&(_.isString(path)&&(url=path),_.isArray(path)&&(url="",_.forEach(path,function(chunk){/\/$/.test(url)&&/^\//.test(chunk)?url+=chunk.substr(1):""===url||/\/$/.test(url)||/^\//.test(chunk)?url+=chunk:url+="/"+chunk})),_.isPlainObject(params)&&(hasQueryString=-1<url.indexOf("?"),queryString=_.reduce(params,function(acc,value,key){return _.isEmpty(acc)&&!hasQueryString||(acc+="&"),"object"!==_typeof(value)||_.isArray(value)?acc+=encodeURIComponent(key)+"="+encodeURIComponent(value):_.forOwn(value,function(parameterValue,parameterName){
acc+=encodeURIComponent(key)+"["+encodeURIComponent(parameterName)+"]="+encodeURIComponent(parameterValue)+"&"}),acc},""),_.isEmpty(queryString)||(hasQueryString||(url+="?"),url+=queryString))),url},route:function(routeParts,controller,extension,params,rootUrl){routeParts=[extension,controller,routeParts];if(_.some(routeParts,function(value){return _.isEmpty(value)||!_.isString(value)}))throw new TypeError("All parts are required to build an URL");return rootUrl=rootUrl||context&&context.root_url,this.build([rootUrl].concat(routeParts),params)}}}),define("core/logger/http",["lodash","jquery","util/url"],function(_,$,url){"use strict"
;_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var config,debouncedFlush,defaultConfig={url:(url=url&&Object.prototype.hasOwnProperty.call(url,"default")?url.default:url).route("log","Log","tao"),level:"warning",delay:500},logQueue=[];function push(message){logQueue.push(message)}function flush(){var messages=logQueue;logQueue=[],function(messages){$.ajax({url:config.url,type:"POST",cache:!1,data:{messages:JSON.stringify(messages)},dataType:"json",global:!1,error:function(){_.forEach(flush,function(message){push(message)})}})}(messages)}return debouncedFlush=_.debounce(
flush,defaultConfig.delay),{setConfig:function(newConfig){config=_.defaults(newConfig||{},defaultConfig),_.isArray(config.url)&&(config.url=url.route.apply(url,config.url)),debouncedFlush=_.debounce(flush,config.delay)},log:function(message){this.checkMinLevel(config.level,message.level)&&(push(message),debouncedFlush())}}}),define("core/middleware",["lodash","core/eventifier","core/promise"],function(_,eventifier,Promise){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,
Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,function(){var middlewares={},middlewareHandler=eventifier({use:function(command){var queue=command&&_.isString(command)?command:"all",list=middlewares[queue]||[];return middlewares[queue]=list,_.forEach(arguments,function(cb){_.isFunction(cb)&&(list.push(cb),middlewareHandler.trigger("add",command,cb))}),this},apply:function(request,response,context){var stack=function(list){list=middlewares[list]||[];middlewares.all&&(list=list.concat(middlewares.all));return list}(request.command),pointer=0;return new Promise(function(resolve,reject){!function next(){
var middleware=stack[pointer++];middleware?Promise.resolve(middleware.call(context,request,response)).then(function(res){(!1!==res?next:resolve)()}).catch(reject):resolve()}()}).then(function(){return!1===response.success?Promise.reject(response):(middlewareHandler.trigger("applied",request,response,context),response)}).catch(function(err){return middlewareHandler.trigger("failed",request,response,context),Promise.reject(err)})}});return middlewareHandler}}),define("core/mimetype",["jquery","lodash"],function($,_){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_
;var categories={video:{category:"media",mimes:["application/ogg","video/*"],extensions:["avi","mp4","ogg","mpeg","flv"]},audio:{category:"media",mimes:["audio/*"],extensions:["mp3","wav","aac"]},image:{category:"media",mimes:["image/*","application/x-gzip"],extensions:["png","jpg","jpeg","gif","svg","svgz","ico"]},flash:{category:"media",mimes:["application/x-shockwave-flash"],extensions:["flv","swf"]},geogebra:{category:"media",mimes:["application/vnd.geogebra.file","application/vnd.geogebra.tool"],extensions:["ggb","ggt"]},rdf:{category:"sources",mimes:["application/rdf+xml"],extensions:["rdf"]},xml:{category:"sources",mimes:["application/xml",
"application/xml-dtd","text/xml"],extensions:["xml","dtd","qti"]},html:{category:"sources",mimes:["text/html","text/xhtml","application/xhtml+xml","application/qti+xml"],extensions:["html","htm","html5","xhtml"]},font:{category:"sources",mimes:["application/font-woff"],extensions:["woff","eot","ttf"]},js:{category:"sources",mimes:["application/javascript","application/json","text/javascript"],extensions:["js","json"]},css:{category:"sources",mimes:["text/css"],extensions:["css","sass","scss","less"]},shell:{category:"sources",mimes:["application/x-sh"],extensions:["sh"]},mathml:{category:"sources",mimes:["application/mathml+xml"],extensions:["mathml"]},pdf:{
category:"document",mimes:["application/pdf"],extensions:["pdf"]},office:{category:"document",mimes:["application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/msword"],extensions:["doc","odt","docx","xls","xlsx","ods","ppt","pptx","odp"]},text:{category:["document"],mimes:["text/*"],
extensions:["txt","csv"]},archive:{category:"archive",mimes:["application/zip","application/gzip","application/rar","application/x-7z-compressed","application/x-bzip","application/x-bzip2"],extensions:["zip","gz","bz","bz2","rar","p7z","7z"]},generic:{category:"generic",mimes:["application/octet-stream","application/force-download","application/x-force-download"]},cpp:{category:"sources",mimes:["text/x-c"],extensions:["cpp"]},pas:{category:"sources",mimes:["text/pascal"],extensions:["pas"]}},extensions={txt:"text/plain",htm:"text/html",html:"text/html",xhtml:"application/xhtml+xml",php:"text/html",css:"text/css",js:"application/javascript",
json:"application/json",xml:"text/xml",rdf:"text/xml",swf:"application/x-shockwave-flash",flv:"video/x-flv",csv:"text/csv",rtx:"text/richtext",png:"image/png",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",ico:"image/vnd.microsoft.icon",tiff:"image/tiff",tif:"image/tiff",svg:"image/svg+xml",svgz:"image/svg+xml",zip:"application/zip",rar:"application/x-rar-compressed",exe:"application/x-msdownload",msi:"application/x-msdownload",cab:"application/vnd.ms-cab-compressed",mp3:"audio/mpeg",oga:"audio/ogg",ogg:"audio/ogg",aac:"audio/aac",qt:"video/quicktime",mov:"video/quicktime",mp4:"video/mp4",webm:"video/webm",
ogv:"video/ogg",pdf:"application/pdf",psd:"image/vnd.adobe.photoshop",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",doc:"application/msword",rtf:"application/rtf",xls:"application/vnd.ms-excel",ppt:"application/vnd.ms-powerpoint",odt:"application/vnd.oasis.opendocument.text",ods:"application/vnd.oasis.opendocument.spreadsheet",woff:"application/x-font-woff",eot:"application/vnd.ms-fontobject",ttf:"application/x-font-ttf",cpp:"text/x-c",pas:"text/pascal",c:"text/x-csrc",h:"text/x-h","7z":"application/x-7z-compressed",docm:"application/vnd.ms-word.document.macroEnabled.12",
docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroEnabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",ggb:"application/vnd.geogebra.file",hlp:"application/winhlp",mdb:"application/vnd.ms-access",mdi:"image/vnd.ms-modi",mm:"application/base64",movie:"video/x-sgi-movie",mpp:"application/vnd.ms-project",odb:"application/vnd.oasis.opendocument.database",odp:"application/vnd.oasis.opendocument.presentation",ott:"application/vnd.oasis.opendocument.text-template",ppsm:"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",pptm:"application/vnd.ms-powerpoint.presentation.macroEnabled.12",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rap:"application/octet-stream",rm:"application/vnd.rn-realmedia",sib:"application/x-sibelius-score",stw:"application/vnd.sun.xml.writer.template",sxc:"application/vnd.sun.xml.calc",sxw:"application/vnd.sun.xml.writer",tex:"application/x-tex",tii:"application/octet-stream",vsd:"application/vnd.visio",wks:"application/vnd.ms-works",wps:"application/vnd.ms-works",wri:"application/x-mswrite",
xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",zipx:"application/zip",xps:"application/vnd.ms-xpsdocument"},mimetypeHelper={getResourceType:function(url,callback){return $.ajax({type:"HEAD",async:!0,url:url,success:function(message,text,mime){mime=mime.getResponseHeader("Content-Type");callback&&callback(null,mime)},error:function(error){error=error.status||404;callback&&callback(error)}}),this},getFileType:function(ext){var type,mime=ext.mime;return mime&&(type=(type=_.findKey(categories,{mimes:[mime]}))||_.findKey(categories,{mimes:[mime.replace(/\/.*$/,"/*")]})),type||(
ext=getFileExtension(ext.name))&&(type=_.findKey(categories,{extensions:[ext]})),type},match:function(starType,validTypes){var checkType=starType.replace(/^["']+|['"]+$/g,""),starType=checkType.replace(/\/.*$/,"/*");return _.contains(validTypes,checkType)||_.contains(validTypes,starType)},getCategory:function(type){if(categories[type])return categories[type].category},getMimeType:function(ext){var type=ext.type,category=mimetypeHelper.getFileType({name:ext.name,mime:type});return(!type||type.match(/invalid/)||"generic"===category)&&(ext=getFileExtension(ext.name))&&extensions[ext]?extensions[ext]:type}};function getFileExtension(extMatch){
extMatch=extMatch.match(/\.([0-9a-z]+)(?:[\?#]|$)/i);if(extMatch&&1<extMatch.length)return extMatch[1]}return mimetypeHelper}),define("core/mimetype/definitions",[],function(){"use strict";return{getList:function(__){__=0<arguments.length&&void 0!==__?__:function(text){return text};if("function"!=typeof __)throw new TypeError("The parameter __ must be a function");return[{mime:"application/zip",label:__("ZIP archive"),equivalent:["application/x-zip-compressed",".zipx"],extensionsLabels:[".zip"]},{mime:"text/plain",label:__("Plain text"),extensionsLabels:[".txt"]},{mime:"application/pdf",label:__("PDF file"),extensionsLabels:[".pdf"]},{mime:"image/jpeg",
label:__("JPEG image"),equivalent:[".jpe"],extensionsLabels:[".jpg"]},{mime:"image/png",label:__("PNG image"),extensionsLabels:[".png"]},{mime:"image/gif",label:__("GIF image"),extensionsLabels:[".gif"]},{mime:"image/svg+xml",label:__("SVG image"),extensionsLabels:[".svg"]},{mime:"audio/mpeg",label:__("MPEG audio"),equivalent:["audio/mp3",".mp3",".mpga"],extensionsLabels:[".mp3"]},{mime:"audio/x-ms-wma",label:__("Windows Media audio"),extensionsLabels:[".wma"]},{mime:"audio/x-wav",label:__("WAV audio"),equivalent:["audio/wav","audio/vnd.wav"],extensionsLabels:[".wav"]},{mime:"video/mpeg",label:__("MPEG video"),extensionsLabels:[".mpg"]},{mime:"video/mp4",
label:__("MP4 video"),extensionsLabels:[".mp4"]},{mime:"video/quicktime",label:__("Quicktime video"),equivalent:[".qt"]},{mime:"video/x-ms-wmv",label:__("Windows Media video"),extensionsLabels:[".wmv"]},{mime:"video/x-flv",label:__("Flash video"),equivalent:[".flv"],extensionsLabels:[".flv"]},{mime:"text/csv",label:__("CSV file"),equivalent:[".csv"],extensionsLabels:[".csv"]},{mime:"application/msword",label:__("Microsoft Word"),equivalent:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",".doc",".docx",".dot",".docm",".dotm",".dotx"],extensionsLabels:[".doc",".docx"]},{mime:"application/vnd.ms-excel",label:__("Microsoft Excel"),equivalent:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/vnd.ms-excel.sheet.macroEnabled.12",".xlsb",".xlsm"],extensionsLabels:[".xls",".xlsx"]},{mime:"application/vnd.ms-powerpoint",label:__("Microsoft Powerpoint"),equivalent:["application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.openxmlformats-officedocument.presentationml.presentation",".ppt",".pptm",".pptx",".ppsm",".ppsx"],extensionsLabels:[".ppt",".pptx"]},{mime:"application/vnd.oasis.opendocument.text",label:__("OpenDocument text document"),equivalent:[".odt"],extensionsLabels:[".odt"]},{mime:"application/vnd.oasis.opendocument.spreadsheet",label:__("OpenDocument spreadsheet document"),equivalent:[".ods"],extensionsLabels:[".ods"]},{mime:"text/x-c",label:__("C++ file (.cpp)"),equivalent:[".cpp"],extensionsLabels:[".cpp"]},{
mime:"text/x-csrc",label:__("C file"),equivalent:[".c"],extensionsLabels:[".c"]},{mime:"text/pascal",label:__("Pascal file (.pas)"),equivalent:[".pas"],extensionsLabels:[".pas"]},{mime:"video/avi",label:__("Audio Video Interleave"),extensionsLabels:[".avi"]},{mime:"image/bmp",label:__("Bitmap image"),extensionsLabels:[".bmp"]},{mime:"text/css",label:__("Cascading Style Sheets"),extensionsLabels:[".css"]},{mime:"image/x-emf",label:__("Enhanced metafile"),equivalent:[".emf"],extensionsLabels:[".emf"]},{mime:"application/vnd.geogebra.file",label:__("Geogebra data file"),equivalent:[".ggb"],extensionsLabels:[".ggb"]},{mime:"text/x-h",label:__(
"Header file with extensionsLabels"),equivalent:[".x-h",".h"],extensionsLabels:[".h"]},{mime:"application/winhlp",label:__("Windows help file"),equivalent:[".hlp"],extensionsLabels:[".hlp"]},{mime:"text/html",label:__("Hypertext markup language"),extensionsLabels:[".html"]},{mime:"text/javascript",label:__("Javascript code"),equivalent:["application/javascript"],extensionsLabels:[".js",".mjs"]},{mime:"application/vnd.ms-access",label:__("Database file"),equivalent:[".mdb"],extensionsLabels:[".mdb"]},{mime:"image/vnd.ms-modi",label:__("Microsoft Office Document Imaging"),equivalent:[".mdi"],extensionsLabels:[".mdi"]},{mime:"multipart/related",label:__(
"MIME encapsulation of aggregate HTML documents")},{mime:"application/base64",label:__("Mind mapping software application (free mind open source)"),equivalent:["application/x-freemind",".mm"],extensionsLabels:[".mm"]},{mime:"audio/x-m4a",label:__("MPEG-4 audio file"),extensionsLabels:[".m4a"]},{mime:"video/x-sgi-movie",label:__("Storing digital video data on a computer game"),equivalent:[".movie"],extensionsLabels:[".movie"]},{mime:"application/vnd.ms-project",label:__("Microsoft Project file"),equivalent:[".mpp"],extensionsLabels:[".mpp"]},{mime:"application/vnd.oasis.opendocument.database",label:__("OpenDocument Database"),equivalent:[".odb"],
extensionsLabels:[".odb"]},{mime:"application/vnd.oasis.opendocument.presentation",label:__("OpenDocument Presentation"),equivalent:[".odp"],extensionsLabels:[".odp"]},{mime:"application/vnd.oasis.opendocument.text-template",label:__("OpenDocument Text Template"),equivalent:[".ott"],extensionsLabels:[".ott"]},{mime:"application/octet-stream",label:__("Flowchart-based programming environment & TI Interactive Workbook"),equivalent:[".rap",".tii"]},{mime:"application/vnd.rn-realmedia",label:__("RealMedia file"),equivalent:[".rm"],extensionsLabels:[".rm"]},{mime:"application/rtf",label:__("Rich Text Format file"),equivalent:["text/rtf",".rtf"],extensionsLabels:[
".rtf"]},{mime:"application/vnd.sun.xml.writer.template",label:__("Document templates (Staroffice)"),equivalent:[".stw"],extensionsLabels:[".stw"]},{mime:"application/x-shockwave-flash",label:__("Adobe Flash file"),extensionsLabels:[".swf"]},{mime:"application/x-sibelius-score",label:__("Sibelius music notation"),equivalent:[".sib"],extensionsLabels:[".sib"]},{mime:"application/x-tar",label:__("Compressed tar file"),extensionsLabels:[".tar"]},{mime:"application/vnd.sun.xml.calc",label:__("Calc speadsheet (Staroffice)"),equivalent:[".sxc"],extensionsLabels:[".sxc"]},{mime:"application/vnd.sun.xml.writer",label:__("Text document file format (Staroffice)"),
equivalent:[".sxw"],extensionsLabels:[".sxw"]},{mime:"application/x-tex",label:__("TeX file"),equivalent:["text/x-tex",".tex"],extensionsLabels:[".tex"]},{mime:"image/tiff",label:__("Tagged image file"),extensionsLabels:[".tiff"]},{mime:"application/vnd.visio",label:__("Microsoft Visio file"),equivalent:[".vsd"],extensionsLabels:[".vsd"]},{mime:"application/vnd.ms-works",label:__("Microsoft Works file"),equivalent:[".wks",".wps"],extensionsLabels:[".wks"]},{mime:"image/x-wmf",label:__("Windows Media file (metafile)"),extensionsLabels:[".wmf"]},{mime:"application/x-mswrite",label:__("Write Document"),equivalent:[".wri"],extensionsLabels:[".wri"]},{
mime:"text/xml",label:__("XML file"),equivalent:["application/xml"],extensionsLabels:[".xml"]},{mime:"application/vnd.ms-xpsdocument",label:__("Microsoft XPS file"),equivalent:[".xps"],extensionsLabels:[".xps"]},{mime:"application/x-7z-compressed",label:__("7-zip archive"),equivalent:[".7z"],extensionsLabels:[".7z"]},{mime:"application/x-gzip",label:__("GZip Compressed Archive"),equivalent:["application/gzip"],extensionsLabels:[".gz"]},{mime:"application/gzip",label:__("GZip Compressed Archive"),equivalent:["application/x-gzip"],extensionsLabels:[".gz"]},{mime:"application/x-rar-compressed",label:__("RAR archive"),equivalent:["application/x-rar",".rar"],
extensionsLabels:[".rar"]},{mime:"application/x-compress",label:__("UNIX Compressed Archive File"),equivalent:[".z"],extensionsLabels:[".z"]},{mime:"image/*",label:__("all images")},{mime:"video/*",label:__("all videos"),equivalent:[".flv",".mkv",".3gp"]},{mime:"audio/*",label:__("all audios")},{mime:"video/ogg",label:__("Ogg Vorbis video"),equivalent:["video/ogv","application/ogg"],extensionsLabels:[".ogv"]},{mime:"audio/ogg",label:__("Ogg Vorbis audio"),equivalent:["application/ogg",".oga"],extensionsLabels:[".ogg"]},{mime:"video/webm",label:__("WebM video"),extensionsLabels:[".webm"]},{mime:"audio/webm",label:__("WebM audio"),extensionsLabels:[".webm"]},{
mime:"audio/aac",label:__("AAC audio"),extensionsLabels:[".aac"]},{mime:"audio/m4a",label:__("M4A audio"),equivalent:["audio/mp4"],extensionsLabels:[".m4a"]},{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",label:__("Microsoft Word"),extensionsLabels:[".docx"]},{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",label:__("Microsoft Word template"),extensionsLabels:[".dotx"]},{mime:"application/vnd.ms-word.document.macroenabled.12",label:__("Microsoft Word"),extensionsLabels:[".docm"]},{mime:"application/vnd.ms-word.template.macroenabled.12",label:__("Microsoft Word template"),extensionsLabels:[
".dotm"]},{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",label:__("Microsoft Excel"),extensionsLabels:[".xlsx"]},{mime:"application/vnd.ms-excel.sheet.binary.macroenabled.12",label:__("Microsoft Excel binary format"),extensionsLabels:[".xlsb"]},{mime:"application/vnd.ms-excel.sheet.macroenabled.12",label:__("Microsoft Excel"),extensionsLabels:[".xlsm"]},{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",label:__("Microsoft Powerpoint"),extensionsLabels:[".pptx"]},{mime:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",label:__("Microsoft Powerpoint slideshow"),extensionsLabels:[
".ppsx"]},{mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12",label:__("Microsoft Powerpoint"),extensionsLabels:[".pptm"]},{mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12",label:__("Microsoft Powerpoint slideshow"),extensionsLabels:[".ppsm"]}]}}}),define("core/mouseEvent",[],function(){"use strict";var dispatchEvent,allowedEvents=["click","contextmenu","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","show"];return dispatchEvent=document.dispatchEvent?function(element,eventName,event){return!!element&&(element.dispatchEvent(event),!0)}:document.fireEvent?function(element,eventName,
event){return!!element&&(element.fireEvent("on"+eventName,event),!0)}:function(){return!1},function(element,eventName,event){return-1!==allowedEvents.indexOf(eventName)&&(event=function(eventName,eventOptions){var event;try{event=new MouseEvent(eventName,eventOptions)}catch(e){(event=document.createEvent("MouseEvents")).initMouseEvent(eventName,eventOptions.bubbles||!1,eventOptions.cancelable||!1,eventOptions.view||null,eventOptions.detail||0,eventOptions.screenX||0,eventOptions.screenY||0,eventOptions.clientX||0,eventOptions.clientY||0,eventOptions.ctrlKey||!1,eventOptions.altKey||!1,eventOptions.shiftKey||!1,eventOptions.metaKey||!1,eventOptions.button||0,
eventOptions.relatedTarget||null)}return event}(eventName,event),dispatchEvent(element,eventName,event))}}),define("core/plugin",["lodash","core/delegator","core/promise"],function(_,delegator,Promise){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,delegator=delegator&&Object.prototype.hasOwnProperty.call(delegator,"default")?delegator.default:delegator,Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,function(provider,defaults){var pluginName;if(!_.isPlainObject(provider)||!_.isString(provider.name)||_.isEmpty(provider.name)||!_.isFunction(provider.init)
)throw new TypeError("A plugin should be defined at least by a name property and an init method");return pluginName=provider.name,defaults=defaults||{},function(host,areaBroker,config){var plugin,delegate,states={},pluginContent={};if(!_.isObject(host)||!_.isFunction(host.on)||!_.isFunction(host.trigger))throw new TypeError("A plugin host should be a valid eventified object");return config=_.defaults(config||{},defaults),delegate=delegator(plugin={install:function(){var self=this;return delegate("install").then(function(){self.trigger("install")})},init:function(content){var self=this;return states={},content&&(pluginContent=content),delegate("init",content
).then(function(){self.setState("init",!0).trigger("init")})},render:function(){var self=this;return delegate("render").then(function(){self.setState("ready",!0).trigger("render").trigger("ready")})},finish:function(){var self=this;return delegate("finish").then(function(){self.setState("finish",!0).trigger("finish")})},destroy:function(){var self=this;return delegate("destroy").then(function(){config={},states={},self.setState("init",!1),self.trigger("destroy")})},trigger:function(name){var args=[].slice.call(arguments,1);return host.trigger.apply(host,["plugin-"+name+"."+pluginName,plugin].concat(args)),this},getHost:function(){return host},
getAreaBroker:function(){return areaBroker},getConfig:function(){return config},setConfig:function(name,value){return _.isPlainObject(name)?config=_.defaults(name,config):config[name]=value,this},getState:function(name){return!!states[name]},setState:function(name,active){if(!_.isString(name)||_.isEmpty(name))throw new TypeError("The state must have a name");return states[name]=!!active,this},getContent:function(){return pluginContent},setContent:function(content){return pluginContent=content,this},getName:function(){return pluginName},show:function(){var self=this;return delegate("show").then(function(){self.setState("visible",!0).trigger("show")})},
hide:function(){var self=this;return delegate("hide").then(function(){self.setState("visible",!1).trigger("hide")})},enable:function(){var self=this;return delegate("enable").then(function(){self.setState("enabled",!0).trigger("enable")})},disable:function(){var self=this;return delegate("disable").then(function(){self.setState("enabled",!1).trigger("disable")})}},provider,{eventifier:!1,wrapper:function(response){return Promise.resolve(response)}}),_.isString(defaults.hostName)&&!_.isEmpty(defaults.hostName)&&(plugin["get"+defaults.hostName.charAt(0).toUpperCase()+defaults.hostName.slice(1)]=plugin.getHost),plugin}}}),define("core/pluginifier",["jquery",
"lodash"],function($,_){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var basePlugin={options:function(dataNs,ns,_options){return this.each(function(){var $elt=$(this),currentOptions=$elt.data(dataNs);currentOptions&&$elt.data(dataNs,_.merge(currentOptions,_options))})},disable:function(dataNs,ns){
return this.each(function(){var $elt=$(this),options=$elt.data(dataNs);options&&$elt.addClass(options.disableClass||"disabled").trigger("disable."+ns)})},enable:function(dataNs,ns){return this.each(function(){var $elt=$(this),options=$elt.data(dataNs);options&&$elt.removeClass(options.disableClass||"disabled").trigger("enable."+ns)})}};return{register:function(pluginName,plugin,config){var ns=(config=config||{}).ns||pluginName.toLowerCase(),dataNs=config.dataNs||"ui."+ns,expose=config.expose||[];return _.isFunction($.fn[pluginName])?$.error("A plugin named "+pluginName+" is already registered"):_.isPlainObject(plugin)&&_.isFunction(plugin.init)?(_.assign(
plugin,_.transform(basePlugin,function(result,prop,key){_.isFunction(prop)&&(result[key]=_.partial(basePlugin[key],dataNs,ns))})),_.forEach(expose,function(publicMethod){var privateMethod=publicMethod,publicMethod=publicMethod;/^_/.test(expose)?publicMethod=publicMethod.replace(/^_/,""):privateMethod="_"+privateMethod,_.isFunction(plugin[privateMethod])&&!_.isFunction(plugin[publicMethod])&&(plugin[publicMethod]=function(){var returnValue,args=Array.prototype.slice.call(arguments,0);return this.each(function(){returnValue=plugin[privateMethod].apply(plugin,[$(this)].concat(args))}),returnValue||this})}),void($.fn[pluginName]=function(method){if(
plugin[method]){if(!/^_/.test(method))return plugin[method].apply(this,Array.prototype.slice.call(arguments,1));$.error("Trying to call a private method `"+method+"`")}else if("object"===_typeof(method)||!method)return plugin.init.apply(this,arguments);$.error("Method "+method+" does not exist on plugin")})):$.error("The object to register as a jQuery plugin must be a plain object with an `init` method.")}}}),define("core/pluginLoader",["lodash","core/moduleLoader"],function(_,moduleLoaderFactory){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
moduleLoaderFactory=moduleLoaderFactory&&Object.prototype.hasOwnProperty.call(moduleLoaderFactory,"default")?moduleLoaderFactory.default:moduleLoaderFactory,function(requiredPlugins){return moduleLoaderFactory(requiredPlugins,_.isFunction,{getPlugins:function(category){return this.getModules(category)}})}}),define("core/promiseTimeout",[],function(){"use strict";return function(promise){var _ref$message=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},_ref$timeout=_ref$message.timeout,timeout=void 0===_ref$timeout?3e4:_ref$timeout,message=void 0===(_ref$message=_ref$message.message)?"The process took too long!":_ref$message;return Promise.race([
promise,new Promise(function(resolve,reject){window.setTimeout(function(){var err=new Error(message);err.timeout=!0,reject(err)},timeout)})])}}),define("core/providerLoader",["lodash","core/moduleLoader"],function(_,moduleLoaderFactory){"use strict";function validateProvider(provider){return _.isPlainObject(provider)&&_.isFunction(provider.init)&&_.isString(provider.name)&&!_.isEmpty(provider.name)}return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,moduleLoaderFactory=moduleLoaderFactory&&Object.prototype.hasOwnProperty.call(moduleLoaderFactory,"default")?moduleLoaderFactory.default:moduleLoaderFactory,function(requiredProviders){
return moduleLoaderFactory(requiredProviders,validateProvider,{getProviders:function(category){return this.getModules(category)}})}}),define("core/requireIfExists",["core/promise"],function(Promise){"use strict";return Promise=Promise&&Object.prototype.hasOwnProperty.call(Promise,"default")?Promise.default:Promise,function(uri){return new Promise(function(resolve){window.require([uri],resolve,function(err){var failedId=err.requireModules&&err.requireModules[0];if(failedId!==uri)throw err;window.requirejs.undef(failedId),define(failedId,function(){return null}),window.require([failedId],resolve)})})}}),define("core/timer",[],function(){"use strict"
;return function(timer){var initConfig=timer||{},begin=now(),last=begin,duration=initConfig.startDuration||0,state={},timer={start:function(startDuration){return begin=now(),last=begin,duration=startDuration||0,state.running=!0,state.started=!0,this},tick:function(){var elapsed,timestamp=now();return state.running&&(elapsed=timestamp-last,last=timestamp),elapsed},pause:function(){return state.running&&(duration+=now()-begin,state.running=!1),this},resume:function(){return state.running||(begin=now(),last=begin,state.started=!0,state.running=!0),this},stop:function(){return state.running&&(duration+=now()-begin),state.running=!1,state.started=!1,this},
getDuration:function(){return state.running?duration+(now()-begin):duration},is:function(stateName){return!!state[stateName]},add:function(time){return time=parseFloat(time),duration+=time,last-=time,this},sub:function(time){return time=parseFloat(time),duration-=time,last+=time,this}};function now(){return window.performance.now()}return!1===initConfig.autoStart||timer.start(initConfig.startDuration),timer}}),define("ui/actionbar",["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify"],function($$1,_,component,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(
__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program6(depth0,data){return" conditional hidden"}function program8(depth0,data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title
)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program10(depth0,data){var stack1,buffer="";return buffer+='<span class="icon icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'}return buffer+='<aside class="action-bar ',!(stack1=helpers.if.call(depth0,depth0&&depth0.vertical,{hash:{},inverse:self.program(3,function(depth0,data){return"horizontal-action-bar"},data),fn:self.program(1,function(depth0,data){return"vertical-action-bar"},data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+=' clearfix">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.buttons,{hash:{},inverse:self.noop,fn:self.program(5,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <button class="btn-info small ',!(stack1=helpers.if.call(depth0,depth0&&depth0.conditional,{hash:{},inverse:self.noop,fn:self.program(6,program6,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" data-control="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},
inverse:self.noop,fn:self.program(8,program8,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(10,program10,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</aside>\n"});function mainTpl(data,html,asString){html=Template(data,html);return html}var actionbar={getButton:function(id
){if(this.is("rendered"))return this.buttons[id]},getButtonElement:function(id){if(this.is("rendered"))return this.controls.$buttons[id]},showButton:function($btn){$btn=this.getButtonElement($btn);return $btn&&$btn.removeClass("hidden"),this},hideButton:function($btn){$btn=this.getButtonElement($btn);return $btn&&$btn.addClass("hidden"),this},toggleButton:function($btn,condition){$btn=this.getButtonElement($btn);return $btn&&(void 0!==condition&&(condition=!condition),$btn.toggleClass("hidden",condition)),this},showConditionals:function(){return this.is("rendered")&&this.controls.$conditional.removeClass("hidden"),this},hideConditionals:function(){
return this.is("rendered")&&this.controls.$conditional.addClass("hidden"),this},toggleConditionals:function(condition){return this.is("rendered")&&(void 0!==condition&&(condition=!condition),this.controls.$conditional.toggleClass("hidden",condition)),this},showAll:function(){return this.is("rendered")&&this.controls.$all.removeClass("hidden"),this},hideAll:function(){return this.is("rendered")&&this.controls.$all.addClass("hidden"),this},toggleAll:function(condition){return this.is("rendered")&&(void 0!==condition&&(condition=!condition),this.controls.$all.toggleClass("hidden",condition)),this}};return function(config){return component(actionbar
).setTemplate(mainTpl).on("destroy",function(){this.buttons=null,this.controls=null}).on("render",function(){var self=this,$component=this.getElement();this.setState("horizontal",$component.hasClass("horizontal-action-bar")),this.setState("vertical",$component.hasClass("vertical-action-bar")),this.buttons={},this.controls={$buttons:{},$conditional:$component.find("button.conditional"),$all:$component.find("button")},_.forEach(this.config.buttons,function(button){self.buttons[button.id]=button,self.controls.$buttons[button.id]=$component.find('[data-control="'+button.id+'"]')}),this.$component.on("click","button",function(e){var buttonId=$$1(this).closest(
"button").data("control"),button=self.getButton(buttonId);e.preventDefault(),button&&button.action&&button.action.call(self,buttonId,button),self.trigger("button",buttonId,button)})}).init(config)}}),define("ui/adder",["jquery","lodash","handlebars","core/pluginifier","core/dataattrhandler"],function($,_,Handlebars,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler;var ns="adder",dataNs="ui."+ns,positions=["append","prepend"],defaults={bindEvent:"click",disableClass:"disabled",position:"append",templateData:function(dataCallback){dataCallback({})}},Adder={init:function(options){var $content;return"function"==typeof(options=_.defaults(options||{},defaults)).content?options._template=options.content:"SCRIPT"===($content=options.content).prop("tagName"
)&&"text/template"===$content.attr("type")?options._template=Handlebars.compile($content.html()):options._html=$content.html(),_.contains(positions,options.position)?this.each(function(){var $elt=$(this);$elt.data(dataNs)||($elt.data(dataNs,options),!1!==options.bindEvent&&$elt.on(options.bindEvent,function(e){e.preventDefault(),Adder._add($elt)}),$elt.trigger("create."+ns))}):$.error("Unsupported position option")},_add:function($elt){var options=$elt.data(dataNs),$target=options.target,position=options.position+"To",applyTemplate=function($content,position,$target,data){$content[position]($target),$target.trigger("add",[$content,data]),$elt.trigger(
"add."+ns,[$target,$content,data])};"function"==typeof options._template?options.templateData(function(data){applyTemplate($($.parseHTML(options._template(data))),position,$target,data)}):applyTemplate($($.parseHTML(options._html)),position,$target)},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);!1!==options.bindEvent&&$elt.off(options.bindEvent),$elt.removeData(dataNs),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,Adder,{expose:["add"]}),function($container){new DataAttrHandler("add",{container:$container,listenerEvent:"click",namespace:dataNs}).init(function($elt,$target){$elt.adder({target:$target,
bindEvent:!1,content:$($elt.attr("data-content"))})}).trigger(function($elt){$elt.adder("add")})}}),define("lib/unmatrix/unmatrix",[],function(){"use strict";function parse(scaleY){if("none"===scaleY)return{translateX:0,translateY:0,rotate:0,skew:0,scaleX:1,scaleY:1};var m=function(str){var m=[];if(window.WebKitCSSMatrix)return[(m=new window.WebKitCSSMatrix(str)).a,m.b,m.c,m.d,m.e,m.f];var n,rdigit=/[\d\.\-]+/g;for(;n=rdigit.exec(str);)m.push(+n);return m}(scaleY),A=m[0],B=m[1],C=m[2],D=m[3];if(A*D==B*C)throw new Error("transform#unmatrix: matrix is singular");var scaleX=Math.sqrt(A*A+B*B),skew=(A/=scaleX)*C+(B/=scaleX)*D;C-=A*skew,D-=B*skew
;scaleY=Math.sqrt(C*C+D*D);return skew/=scaleY,A*(D/=scaleY)<B*(C/=scaleY)&&(A=-A,B=-B,skew=-skew,scaleX=-scaleX),{translateX:m[4],translateY:m[5],rotate:rtod(Math.atan2(B,A)),skew:rtod(Math.atan(skew)),scaleX:round(scaleX),scaleY:round(scaleY)}}function rtod(radians){return round(180*radians/Math.PI)}function round(n){return Math.round(100*n)/100}return function(input){return parse("string"!=typeof input?function(_style){_style=window.getComputedStyle(_style);return _style.getPropertyValue("transform")||_style.getPropertyValue("-webkit-transform")||_style.getPropertyValue("-ms-transform")}(input):input)}}),define("ui/transformer",["jquery","lodash",
"lib/unmatrix/unmatrix"],function($,_,_unmatrix){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,_unmatrix=_unmatrix&&Object.prototype.hasOwnProperty.call(_unmatrix,"default")?_unmatrix.default:_unmatrix;var ns="transformer",vendorPrefixes=["webkit","ms"],prefix=function(){var i=vendorPrefixes.length,style=window.getComputedStyle(document.body,null);if(style.getPropertyValue("transform"))return"";for(;i--;)if(void 0!==style[vendorPrefixes[i]+"Transform"])return"-"+vendorPrefixes[i]+"-"}(),_getTransformation=function(matrix){matrix=window.getComputedStyle(matrix
,null),matrix=matrix.getPropertyValue("transform")||matrix.getPropertyValue("-webkit-transform")||matrix.getPropertyValue("-ms-transform")||"none";return{matrix:matrix,obj:_unmatrix(matrix)}};function _transform($elem,transforms){var oriTrans,cssObj={},defaults=_unmatrix("none"),classNames=[];transforms=function(transforms){for(var xy=["translate","scale"],i=xy.length;i--;)transforms[xy[i]]&&(_.isArray(transforms[xy[i]])&&2===transforms[xy[i]].length?(transforms[xy[i]+"X"]=transforms[xy[i]][0],transforms[xy[i]+"Y"]=transforms[xy[i]][1]):(transforms[xy[i]+"X"]=transforms[xy[i]],transforms[xy[i]+"Y"]=transforms[xy[i]]),delete transforms[xy[i]])
;return transforms}(transforms),$elem.data("oriTrans")||((oriTrans=_getTransformation($elem[0])).origin=function(_style){_style=window.getComputedStyle(_style,null);return _style.getPropertyValue("transform-origin")||_style.getPropertyValue("-webkit-transform-origin")||_style.getPropertyValue("-ms-transform-origin")||"50% 50% 0"}($elem[0]),$elem.data("oriTrans",oriTrans)),cssObj[prefix+"transform"]="",_.forIn(transforms,function(value,key){return!!_.isNaN(value)||(value=parseFloat(value),$elem.data("oriTrans").obj[key]!==defaults[key]&&(-1<key.indexOf("scale")?value*=$elem.data("oriTrans").obj[key]:value+=$elem.data("oriTrans").obj[key]),void(
void 0!==defaults[key]&&value!==defaults[key]&&(-1<key.indexOf("translate")?value+="px":("rotate"===key||-1<key.indexOf("skew"))&&(value+="deg"),cssObj[prefix+"transform"]+=key+"("+value+") ",classNames.push("transform-"+key.replace(/(X|Y)$/i,"")))))}),cssObj[prefix+"transform"]=$.trim(cssObj[prefix+"transform"]),$elem.css(cssObj),$elem.removeClass("transform-translate transform-rotate transform-skew transform-scale"),$elem.addClass(_.unique(classNames).join(" ")),$elem.trigger("transform."+ns,transforms)}return{translate:function($elem,valueX,valueY){_transform($elem,{translateX:valueX,translateY:valueY=valueY||valueX})},translateXY:function($elem,valueX,
valueY){_transform($elem,{translateX:valueX,translateY:valueY})},translateX:function($elem,value){_transform($elem,{translateX:value})},translateY:function($elem,value){_transform($elem,{translateY:value})},rotate:function($elem,value){_transform($elem,{rotate:value})},skew:function($elem,value){_transform($elem,{skew:value})},scale:function($elem,valueX,valueY){_transform($elem,{scaleX:valueX,scaleY:valueY=valueY||valueX})},scaleX:function($elem,value){_transform($elem,{scaleX:value})},scaleY:function($elem,value){_transform($elem,{scaleY:value})},reset:function($elem){var cssObj={};$elem.data("oriTrans")&&(cssObj[prefix+"transform"]=$elem.data("oriTrans"
).matrix,cssObj[prefix+"transform-origin"]=$elem.data("oriTrans").origin,$elem.css(cssObj),$elem.removeClass("transform-translate transform-rotate transform-skew transform-scale"),$elem.trigger("reset."+ns,$elem.data("oriTrans")))},getTransformation:function(elem){return elem instanceof $&&(elem=elem[0]),_getTransformation(elem)},setTransformOrigin:function($elem,valueX,valueY){var cssObj={};cssObj[prefix+"transform-origin"]=valueY||0===valueY?valueX+" "+valueY:valueX,$elem.css(cssObj)}}}),define("ui/component/placeable",["lodash","ui/transformer"],function(_,transformer){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
transformer=transformer&&Object.prototype.hasOwnProperty.call(transformer,"default")?transformer.default:transformer;var defaultConfig={initialX:0,initialY:0},placeableComponent={_translate:function(xOffsetAbsolute,yOffsetAbsolute){var $element=this.getElement();transformer.translateXY($element,xOffsetAbsolute,yOffsetAbsolute),this._translateX=xOffsetAbsolute,this._translateY=yOffsetAbsolute,this._x=xOffsetAbsolute+this.config.initialX,this._y=yOffsetAbsolute+this.config.initialY,this.trigger("move",this._x,this._y)},center:function(){var centerX,$container=this.getContainer(),centerY=this.getElement();return this.is("rendered")&&!this.is("disabled"
)&&$container.length&&(centerX=$container.width()/2-centerY.width()/2,centerY=$container.height()/2-centerY.height()/2,this.moveTo(centerX,centerY),this.trigger("center",centerX,centerY)),this},moveBy:function(xOffsetAbsolute,yOffsetAbsolute){return this.is("rendered")&&!this.is("disabled")&&(xOffsetAbsolute=this._translateX+xOffsetAbsolute,yOffsetAbsolute=this._translateY+yOffsetAbsolute,this._translate(xOffsetAbsolute,yOffsetAbsolute)),this},moveTo:function(xOffsetAbsolute,yOffsetAbsolute){return this.is("rendered")&&!this.is("disabled")&&(xOffsetAbsolute=xOffsetAbsolute-this.config.initialX,yOffsetAbsolute=yOffsetAbsolute-this.config.initialY,
this._translate(xOffsetAbsolute,yOffsetAbsolute)),this},moveToX:function(x){return this.moveTo(x,this._y)},moveToY:function(y){return this.moveTo(this._x,y)},resetPosition:function(){var $element=this.getElement();return this.is("rendered")&&($element.css({left:this.config.initialX,top:this.config.initialY}),this._translate(0,0)),this},getPosition:function(){var position;return this.is("rendered")&&(position={x:this._x||0,y:this._y||0}),position}};function makePlaceable(component,config){return _.assign(component,placeableComponent),component.off(".makePlaceable").on("init.makePlaceable",function(){_.defaults(this.config,config||{},defaultConfig)}).on(
"render.makePlaceable",function(){this.getElement().css({position:"absolute"}),this.resetPosition()})}return makePlaceable.isPlaceable=function(component){return Object.keys(placeableComponent).every(function(method){return"function"==typeof component[method]})},makePlaceable}),define("ui/component/alignable",["lodash","ui/component/placeable"],function(_,makePlaceable){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,makePlaceable=makePlaceable&&Object.prototype.hasOwnProperty.call(makePlaceable,"default")?makePlaceable.default:makePlaceable;var defaultConfig={},alignDefaults_hPos="center",alignDefaults_vPos="center",
alignableComponent={alignWith:function($element,alignedCoords){alignedCoords=this._getAlignedCoords($element,alignedCoords);return this.moveTo(alignedCoords.x,alignedCoords.y)},hAlignWith:function($element,hPos,hOrigin,alignedCoords){alignedCoords=this._getAlignedCoords($element,{hPos:hPos,hOrigin:hOrigin,hOffset:alignedCoords});return this.moveToX(alignedCoords.x)},vAlignWith:function($element,vPos,vOrigin,alignedCoords){alignedCoords=this._getAlignedCoords($element,{vPos:vPos,vOrigin:vOrigin,vOffset:alignedCoords});return this.moveToY(alignedCoords.y)},_getAlignedCoords:function(x,options){var componentOuterSize,elementOffset,elementWidth,elementHeight,y,
hPos,vPos,hOrigin,vOrigin=this.getContainer();switch(options=options||{},componentOuterSize=this.getOuterSize(),y=vOrigin.offset(),elementOffset=x.offset(),elementWidth=x.outerWidth(),elementHeight=x.outerHeight(),hPos=options.hPos||alignDefaults_hPos,vPos=options.vPos||alignDefaults_vPos,hOrigin=options.hOrigin||this._getDefaultHOrigin(options.hPos),vOrigin=options.vOrigin||this._getDefaultVOrigin(options.vPos),x=elementOffset.left-y.left,y=elementOffset.top-y.top,hPos){case"center":x+=elementWidth/2;break;case"right":x+=elementWidth}switch(hOrigin){case"center":x-=componentOuterSize.width/2;break;case"right":x-=componentOuterSize.width}switch(
x+=options.hOffset||0,vPos){case"center":y+=elementHeight/2;break;case"bottom":y+=elementHeight}switch(vOrigin){case"center":y-=componentOuterSize.height/2;break;case"bottom":y-=componentOuterSize.height}return{x:x,y:y+=options.vOffset||0}},_getDefaultHOrigin:function(hPos){var hOrigin;switch(hPos){default:case"center":hOrigin="center";break;case"left":hOrigin="right";break;case"right":hOrigin="left"}return hOrigin},_getDefaultVOrigin:function(vPos){var vOrigin;switch(vPos){default:case"center":vOrigin="center";break;case"top":vOrigin="bottom";break;case"bottom":vOrigin="top"}return vOrigin}};return function(component,config){return _.assign(component,
alignableComponent),makePlaceable.isPlaceable(component)||makePlaceable(component),component.off(".makeAlignable").on("init.makeAlignable",function(){_.defaults(this.config,config||{},defaultConfig)})}}),define("css!ui/animable/absorbable/css/absorb",[],function(){}),define("ui/animable/absorbable/absorbable",["lodash","ui/component","ui/component/alignable","handlebars","i18n","lib/dompurify/purify","css!ui/animable/absorbable/css/absorb.css"],function(_,componentFactory,makeAlignable,Handlebars,__,DOMPurify,absorb_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){
return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,makeAlignable=makeAlignable&&Object.prototype.hasOwnProperty.call(makeAlignable,"default")?makeAlignable.default:makeAlignable,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default"
)?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="absorbable"></div>'});function absorbTpl(data,html,asString){html=Template(data,html);return html}var defaultConfig={animationDuration:1},absorbableComponent={absorb:function($target){var self=this,
$component=this.getElement(),targetWidth=$target.width(),targetHeight=$target.height(),animationDuration=parseInt(this.config.animationDuration,10)||defaultConfig.animationDuration,animatedComponent=makeAlignable(componentFactory()).setTemplate(absorbTpl).init().render($component).setSize(targetWidth,targetHeight).alignWith($target,{hPos:"center",vPos:"center",hOrigin:"center",vOrigin:"center"});return"static"===$component.css("position")&&$component.css("position","relative"),new Promise(function(resolve){_.delay(function(){animatedComponent.getElement().addClass("animate").css({transitionDuration:animationDuration+"s"}),animatedComponent.setSize(10,10
).alignWith($component,{hPos:"center",vPos:"center",hOrigin:"center",vOrigin:"center",hOffset:targetWidth/2-5,vOffset:targetHeight/2-5}),_.delay(function(){animatedComponent.destroy(),resolve(self)},1e3*animationDuration+10)},10)})},absorbBurst:function($target,delayArray){var animations=[],self=this;return delayArray=_.isArray(delayArray)?delayArray:[0],_.forEach(delayArray,function(startTimeOffset){animations.push(new Promise(function(resolve){_.delay(function(){self.absorb($target).then(resolve)},startTimeOffset)}))}),Promise.all(animations)}};return function(component,config){return _.assign(component,absorbableComponent),component.off(".makeAbsorbable"
).on("init.makeAbsorbable",function(){_.defaults(this.config,config||{},defaultConfig)})}}),define("css!ui/animable/pulsable/css/pulse",[],function(){}),define("ui/animable/pulsable/pulsable",["lodash","ui/component","ui/component/alignable","handlebars","i18n","lib/dompurify/purify","css!ui/animable/pulsable/css/pulse.css"],function(_,componentFactory,makeAlignable,Handlebars,__,DOMPurify,pulse_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,makeAlignable=makeAlignable&&Object.prototype.hasOwnProperty.call(makeAlignable,"default")?makeAlignable.default:makeAlignable,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default"
)?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="pulsable animate"></div>'});function pulseTpl(data,html,asString){html=Template(data,html);return html}var defaultConfig={pulseCount:3},pulsableComponent={pulse:function(pulseCount){var $component,
pulseNb,animatedComponent,self=this;return this.config&&this.is("rendered")?("static"===($component=this.getElement()).css("position")&&$component.css("position","relative"),pulseNb=parseInt(pulseCount||this.config.pulseCount||defaultConfig.pulseCount,10),animatedComponent=makeAlignable(componentFactory()).setTemplate(pulseTpl).init().render($component).alignWith($component,{hPos:"center",vPos:"center",hOrigin:"center",vOrigin:"center"}),new Promise(function(resolve){_.delay(function(){animatedComponent.destroy(),resolve(self)},1e3*pulseNb)})):Promise.resolve(this)}};return function(component,config){return _.assign(component,pulsableComponent),
component.off(".makePulsable").on("init.makePulsable",function(){_.defaults(this.config,config||{},defaultConfig)})}}),define("ui/areaBroker",["jquery","lodash"],function($,_){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(requiredAreas,$container,mapping){var broker,areas,components={};if(("string"==typeof $container||$container instanceof HTMLElement)&&($container=$($container)),!$container||!$container.length)throw new TypeError("Please provide the areaBroker a container");return requiredAreas=requiredAreas||[],(broker={defineAreas:function(
areasMapping){var keys;if(!_.isPlainObject(areasMapping))throw new TypeError("A mapping has the form of a plain object");if(keys=_.keys(areasMapping),!_.all(requiredAreas,function(val){return _.contains(keys,val)}))throw new TypeError("You have to define a mapping for at least : "+requiredAreas.join(", "));areas=areasMapping},getContainer:function(){return $container},getArea:function(name){if(_.isEmpty(areas))throw new Error("Sorry areas have not been defined yet!");return areas[name]},setComponent:function(areaName,component){if(!areas[areaName])throw new TypeError("There is no areas defined or no area named "+areaName);if(!_.isObject(component)
)throw new TypeError("A component has to be an object");components[areaName]=component,this["get"+areaName[0].toUpperCase()+areaName.slice(1)]=this.getComponent.bind(this,areaName)},getComponent:function(areaName){return components[areaName]}}).defineAreas(mapping),_.forEach(requiredAreas,function(area){var areaIdentifier=area[0].toUpperCase()+area.slice(1);broker["get"+areaIdentifier+"Area"]=_.bind(_.partial(broker.getArea,area),broker)}),broker}}),define("util/capitalize",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;return function(input,allWords){var ucFirst=function(str){return str.charAt(0
).toUpperCase()+str.substr(1)};return _.isString(input)?!1!==allWords&&-1<input.indexOf(" ")?_.map(input.split(" "),ucFirst).join(" "):ucFirst(input):input}}),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/popper/popper",factory):global.Popper=factory()}(this,function(){"use strict";for(var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,longerTimeoutBrowsers=["Edge","Trident","Firefox"],timeoutDuration=0,i=0;i<longerTimeoutBrowsers.length;i+=1)if(isBrowser&&0<=navigator.userAgent.indexOf(longerTimeoutBrowsers[i])){timeoutDuration=1
;break}var debounce=isBrowser&&window.Promise?function(fn){var called=!1;return function(){called||(called=!0,window.Promise.resolve().then(function(){called=!1,fn()}))}}:function(fn){var scheduled=!1;return function(){scheduled||(scheduled=!0,setTimeout(function(){scheduled=!1,fn()},timeoutDuration))}};function isFunction(functionToCheck){return functionToCheck&&"[object Function]"==={}.toString.call(functionToCheck)}function getStyleComputedProperty(css,property){if(1!==css.nodeType)return[];css=css.ownerDocument.defaultView.getComputedStyle(css,null);return property?css[property]:css}function getParentNode(element){
return"HTML"===element.nodeName?element:element.parentNode||element.host}function getScrollParent(element){if(!element)return document.body;switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body}var overflowY=getStyleComputedProperty(element),overflow=overflowY.overflow,overflowX=overflowY.overflowX,overflowY=overflowY.overflowY;return/(auto|scroll|overlay)/.test(overflow+overflowY+overflowX)?element:getScrollParent(getParentNode(element))}var isIE11=isBrowser&&!(!window.MSInputMethodContext||!document.documentMode),isIE10=isBrowser&&/MSIE 10/.test(navigator.userAgent);function isIE(version){
return 11===version?isIE11:10!==version&&isIE11||isIE10}function getOffsetParent(element){if(!element)return document.documentElement;for(var noOffsetParent=isIE(10)?document.body:null,offsetParent=element.offsetParent||null;offsetParent===noOffsetParent&&element.nextElementSibling;)offsetParent=(element=element.nextElementSibling).offsetParent;var nodeName=offsetParent&&offsetParent.nodeName;return nodeName&&"BODY"!==nodeName&&"HTML"!==nodeName?-1!==["TH","TD","TABLE"].indexOf(offsetParent.nodeName)&&"static"===getStyleComputedProperty(offsetParent,"position")?getOffsetParent(offsetParent):offsetParent:(element?element.ownerDocument:document
).documentElement}function getRoot(node){return null!==node.parentNode?getRoot(node.parentNode):node}function findCommonOffsetParent(element1,element2){if(!(element1&&element1.nodeType&&element2&&element2.nodeType))return document.documentElement;var element1root=element1.compareDocumentPosition(element2)&Node.DOCUMENT_POSITION_FOLLOWING,element=element1root?element1:element2,nodeName=element1root?element2:element1,element1root=document.createRange();element1root.setStart(element,0),element1root.setEnd(nodeName,0);element1root=element1root.commonAncestorContainer;if(element1!==element1root&&element2!==element1root||element.contains(nodeName))return"BODY"===(
nodeName=(element=element1root).nodeName)||"HTML"!==nodeName&&getOffsetParent(element.firstElementChild)!==element?getOffsetParent(element1root):element1root;element1root=getRoot(element1);return element1root.host?findCommonOffsetParent(element1root.host,element2):findCommonOffsetParent(element1,getRoot(element2).host)}function getScroll(element,html){var upperSide="top"===(1<arguments.length&&void 0!==html?html:"top")?"scrollTop":"scrollLeft",html=element.nodeName;if("BODY"!==html&&"HTML"!==html)return element[upperSide];html=element.ownerDocument.documentElement;return(element.ownerDocument.scrollingElement||html)[upperSide]}function getBordersSize(styles,
sideB){var sideA="x"===sideB?"Left":"Top",sideB="Left"==sideA?"Right":"Bottom";return parseFloat(styles["border"+sideA+"Width"],10)+parseFloat(styles["border"+sideB+"Width"],10)}function getSize(axis,body,html,computedStyle){return Math.max(body["offset"+axis],body["scroll"+axis],html["client"+axis],html["offset"+axis],html["scroll"+axis],isIE(10)?parseInt(html["offset"+axis])+parseInt(computedStyle["margin"+("Height"===axis?"Top":"Left")])+parseInt(computedStyle["margin"+("Height"===axis?"Bottom":"Right")]):0)}function getWindowSizes(computedStyle){var body=computedStyle.body,html=computedStyle.documentElement,computedStyle=isIE(10)&&getComputedStyle(html)
;return{height:getSize("Height",body,html,computedStyle),width:getSize("Width",body,html,computedStyle)}}var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor};function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),
Object.defineProperty(target,descriptor.key,descriptor)}}function defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var key,source=arguments[i];for(key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};function getClientRect(offsets){return _extends({},offsets,{right:offsets.left+offsets.width,bottom:offsets.top+offsets.height})}function getBoundingClientRect(element){var scrollTop,scrollLeft,rect={};try{isIE(10)?(
rect=element.getBoundingClientRect(),scrollTop=getScroll(element,"top"),scrollLeft=getScroll(element,"left"),rect.top+=scrollTop,rect.left+=scrollLeft,rect.bottom+=scrollTop,rect.right+=scrollLeft):rect=element.getBoundingClientRect()}catch(e){}var result={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top},horizScrollbar="HTML"===element.nodeName?getWindowSizes(element.ownerDocument):{},vertScrollbar=horizScrollbar.width||element.clientWidth||result.right-result.left,styles=horizScrollbar.height||element.clientHeight||result.bottom-result.top,horizScrollbar=element.offsetWidth-vertScrollbar,
vertScrollbar=element.offsetHeight-styles;return(horizScrollbar||vertScrollbar)&&(horizScrollbar-=getBordersSize(styles=getStyleComputedProperty(element),"x"),vertScrollbar-=getBordersSize(styles,"y"),result.width-=horizScrollbar,result.height-=vertScrollbar),getClientRect(result)}function getOffsetRectRelativeToArbitraryNode(borderLeftWidth,parent,borderTopWidth){var fixedPosition=2<arguments.length&&void 0!==borderTopWidth&&borderTopWidth,isIE10=isIE(10),marginTop="HTML"===parent.nodeName,offsets=getBoundingClientRect(borderLeftWidth),parentRect=getBoundingClientRect(parent),scrollParent=getScrollParent(borderLeftWidth),marginLeft=getStyleComputedProperty(
parent),borderTopWidth=parseFloat(marginLeft.borderTopWidth,10),borderLeftWidth=parseFloat(marginLeft.borderLeftWidth,10);fixedPosition&&marginTop&&(parentRect.top=Math.max(parentRect.top,0),parentRect.left=Math.max(parentRect.left,0));offsets=getClientRect({top:offsets.top-parentRect.top-borderTopWidth,left:offsets.left-parentRect.left-borderLeftWidth,width:offsets.width,height:offsets.height});return offsets.marginTop=0,offsets.marginLeft=0,!isIE10&&marginTop&&(marginTop=parseFloat(marginLeft.marginTop,10),marginLeft=parseFloat(marginLeft.marginLeft,10),offsets.top-=borderTopWidth-marginTop,offsets.bottom-=borderTopWidth-marginTop,
offsets.left-=borderLeftWidth-marginLeft,offsets.right-=borderLeftWidth-marginLeft,offsets.marginTop=marginTop,offsets.marginLeft=marginLeft),(isIE10&&!fixedPosition?parent.contains(scrollParent):parent===scrollParent&&"BODY"!==scrollParent.nodeName)&&(offsets=function(rect,scrollLeft,scrollTop){var modifier=2<arguments.length&&void 0!==scrollTop&&scrollTop,scrollTop=getScroll(scrollLeft,"top"),scrollLeft=getScroll(scrollLeft,"left"),modifier=modifier?-1:1;return rect.top+=scrollTop*modifier,rect.bottom+=scrollTop*modifier,rect.left+=scrollLeft*modifier,rect.right+=scrollLeft*modifier,rect}(offsets,parent)),offsets}function getFixedPositionOffsetParent(
element){if(!element||!element.parentElement||isIE())return document.documentElement;for(var el=element.parentElement;el&&"none"===getStyleComputedProperty(el,"transform");)el=el.parentElement;return el||document.documentElement}function getBoundaries(height,reference,padding,boundariesElement,boundariesNode){var fixedPosition=4<arguments.length&&void 0!==boundariesNode&&boundariesNode,boundaries={top:0,left:0},width=fixedPosition?getFixedPositionOffsetParent(height):findCommonOffsetParent(height,reference);"viewport"===boundariesElement?boundaries=function(scrollTop,height){var excludeScroll=1<arguments.length&&void 0!==height&&height,
scrollLeft=scrollTop.ownerDocument.documentElement,relativeOffset=getOffsetRectRelativeToArbitraryNode(scrollTop,scrollLeft),width=Math.max(scrollLeft.clientWidth,window.innerWidth||0),height=Math.max(scrollLeft.clientHeight,window.innerHeight||0),scrollTop=excludeScroll?0:getScroll(scrollLeft),scrollLeft=excludeScroll?0:getScroll(scrollLeft,"left");return getClientRect({top:scrollTop-relativeOffset.top+relativeOffset.marginTop,left:scrollLeft-relativeOffset.left+relativeOffset.marginLeft,width:width,height:height})}(width,fixedPosition):(boundariesNode=void 0,"scrollParent"===boundariesElement?"BODY"===(boundariesNode=getScrollParent(getParentNode(reference
))).nodeName&&(boundariesNode=height.ownerDocument.documentElement):boundariesNode="window"===boundariesElement?height.ownerDocument.documentElement:boundariesElement,isPaddingNumber=getOffsetRectRelativeToArbitraryNode(boundariesNode,width,fixedPosition),"HTML"!==boundariesNode.nodeName||function isFixed(element){var nodeName=element.nodeName;return"BODY"!==nodeName&&"HTML"!==nodeName&&("fixed"===getStyleComputedProperty(element,"position")||isFixed(getParentNode(element)))}(width)?boundaries=isPaddingNumber:(height=(width=getWindowSizes(height.ownerDocument)).height,width=width.width,boundaries.top+=isPaddingNumber.top-isPaddingNumber.marginTop,
boundaries.bottom=height+isPaddingNumber.top,boundaries.left+=isPaddingNumber.left-isPaddingNumber.marginLeft,boundaries.right=width+isPaddingNumber.left));var isPaddingNumber="number"==typeof(padding=padding||0);return boundaries.left+=isPaddingNumber?padding:padding.left||0,boundaries.top+=isPaddingNumber?padding:padding.top||0,boundaries.right-=isPaddingNumber?padding:padding.right||0,boundaries.bottom-=isPaddingNumber?padding:padding.bottom||0,boundaries}function computeAutoPlacement(variation,computedPlacement,popper,reference,filteredAreas,padding){padding=5<arguments.length&&void 0!==padding?padding:0;if(-1===variation.indexOf("auto"))return variation
;var filteredAreas=getBoundaries(popper,reference,padding,filteredAreas),rects={top:{width:filteredAreas.width,height:computedPlacement.top-filteredAreas.top},right:{width:filteredAreas.right-computedPlacement.right,height:filteredAreas.height},bottom:{width:filteredAreas.width,height:filteredAreas.bottom-computedPlacement.bottom},left:{width:computedPlacement.left-filteredAreas.left,height:filteredAreas.height}},computedPlacement=Object.keys(rects).map(function(_ref){return _extends({key:_ref},rects[_ref],{area:(_ref=rects[_ref]).width*_ref.height})}).sort(function(a,b){return b.area-a.area}),filteredAreas=computedPlacement.filter(function(height){
var width=height.width,height=height.height;return width>=popper.clientWidth&&height>=popper.clientHeight}),computedPlacement=(0<filteredAreas.length?filteredAreas:computedPlacement)[0].key,variation=variation.split("-")[1];return computedPlacement+(variation?"-"+variation:"")}function getReferenceOffsets(state,popper,reference,fixedPosition){fixedPosition=3<arguments.length&&void 0!==fixedPosition?fixedPosition:null;return getOffsetRectRelativeToArbitraryNode(reference,fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,reference),fixedPosition)}function getOuterSizes(element){
var y=element.ownerDocument.defaultView.getComputedStyle(element),x=parseFloat(y.marginTop)+parseFloat(y.marginBottom),y=parseFloat(y.marginLeft)+parseFloat(y.marginRight);return{width:element.offsetWidth+y,height:element.offsetHeight+x}}function getOppositePlacement(placement){var hash={left:"right",right:"left",bottom:"top",top:"bottom"};return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}function getPopperOffsets(measurement,referenceOffsets,placement){placement=placement.split("-")[0];var popperRect=getOuterSizes(measurement),popperOffsets={width:popperRect.width,height:popperRect.height},secondaryMeasurement=-1!==[
"right","left"].indexOf(placement),mainSide=secondaryMeasurement?"top":"left",secondarySide=secondaryMeasurement?"left":"top",measurement=secondaryMeasurement?"height":"width",secondaryMeasurement=secondaryMeasurement?"width":"height";return popperOffsets[mainSide]=referenceOffsets[mainSide]+referenceOffsets[measurement]/2-popperRect[measurement]/2,popperOffsets[secondarySide]=placement===secondarySide?referenceOffsets[secondarySide]-popperRect[secondaryMeasurement]:referenceOffsets[getOppositePlacement(secondarySide)],popperOffsets}function find(arr,check){return Array.prototype.find?arr.find(check):arr.filter(check)[0]}function runModifiers(modifiers,data,
ends){return(void 0===ends?modifiers:modifiers.slice(0,function(arr,prop,value){if(Array.prototype.findIndex)return arr.findIndex(function(cur){return cur[prop]===value});var match=find(arr,function(obj){return obj[prop]===value});return arr.indexOf(match)}(modifiers,"name",ends))).forEach(function(modifier){modifier.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var fn=modifier.function||modifier.fn;modifier.enabled&&isFunction(fn)&&(data.offsets.popper=getClientRect(data.offsets.popper),data.offsets.reference=getClientRect(data.offsets.reference),data=fn(data,modifier))}),data}function isModifierEnabled(modifiers,
modifierName){return modifiers.some(function(_ref){var name=_ref.name;return _ref.enabled&&name===modifierName})}function getSupportedPropertyName(property){for(var prefixes=[!1,"ms","Webkit","Moz","O"],upperProp=property.charAt(0).toUpperCase()+property.slice(1),i=0;i<prefixes.length;i++){var toCheck=prefixes[i],toCheck=toCheck?""+toCheck+upperProp:property;if(void 0!==document.body.style[toCheck])return toCheck}return null}function getWindow(ownerDocument){ownerDocument=ownerDocument.ownerDocument;return ownerDocument?ownerDocument.defaultView:window}function setupEventListeners(scrollElement,options,state,updateBound){state.updateBound=updateBound,
getWindow(scrollElement).addEventListener("resize",state.updateBound,{passive:!0});scrollElement=getScrollParent(scrollElement);return function attachToScrollParents(target,event,callback,scrollParents){var isBody="BODY"===target.nodeName,target=isBody?target.ownerDocument.defaultView:target;target.addEventListener(event,callback,{passive:!0}),isBody||attachToScrollParents(getScrollParent(target.parentNode),event,callback,scrollParents),scrollParents.push(target)}(scrollElement,"scroll",state.updateBound,state.scrollParents),state.scrollElement=scrollElement,state.eventsEnabled=!0,state}function disableEventListeners(){var reference,state
;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(reference=this.reference,state=this.state,getWindow(reference).removeEventListener("resize",state.updateBound),state.scrollParents.forEach(function(target){target.removeEventListener("scroll",state.updateBound)}),state.updateBound=null,state.scrollParents=[],state.scrollElement=null,state.eventsEnabled=!1,state))}function isNumeric(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function setStyles(element,styles){Object.keys(styles).forEach(function(prop){var unit="";-1!==["width","height","top","right","bottom","left"].indexOf(prop)&&isNumeric(styles[prop])&&(unit="px"),
element.style[prop]=styles[prop]+unit})}function isModifierRequired(requested,requestingName,requestedName){var _requesting,requesting=find(requested,function(_ref){return _ref.name===requestingName}),isRequired=!!requesting&&requested.some(function(modifier){return modifier.name===requestedName&&modifier.enabled&&modifier.order<requesting.order});return isRequired||(_requesting="`"+requestingName+"`",requested="`"+requestedName+"`",console.warn(requested+" modifier is required by "+_requesting+" modifier in order to work, be sure to include it before "+_requesting+"!")),isRequired}var placements=["auto-start","auto","auto-end","top-start","top","top-end",
"right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(arr,counter){counter=1<arguments.length&&void 0!==counter&&counter,arr=validPlacements.indexOf(arr),arr=validPlacements.slice(arr+1).concat(validPlacements.slice(0,arr));return counter?arr.reverse():arr}var BEHAVIORS_FLIP="flip",BEHAVIORS_CLOCKWISE="clockwise",BEHAVIORS_COUNTERCLOCKWISE="counterclockwise";function parseOffset(splitRegex,popperOffsets,referenceOffsets,divider){var offsets=[0,0],useHeight=-1!==["right","left"].indexOf(divider),fragments=splitRegex.split(/(\+|\-)/).map(function(frag){
return frag.trim()}),divider=fragments.indexOf(find(fragments,function(frag){return-1!==frag.search(/,|\s/)}));fragments[divider]&&-1===fragments[divider].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");splitRegex=/\s*,\s*|\s+/;return(-1!==divider?[fragments.slice(0,divider).concat([fragments[divider].split(splitRegex)[0]]),[fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider+1))]:[fragments]).map(function(op,index){var measurement=(1===index?!useHeight:useHeight)?"height":"width",mergeWithPrevious=!1;return op.reduce(function(a,b){return""===a[a.length-1]&&-1!==["+","-"].indexOf(
b)?(a[a.length-1]=b,mergeWithPrevious=!0,a):mergeWithPrevious?(a[a.length-1]+=b,mergeWithPrevious=!1,a):a.concat(b)},[]).map(function(str){return function(element,measurement,popperOffsets,referenceOffsets){var value=+(unit=element.match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],unit=unit[2];if(!value)return element;if(0!==unit.indexOf("%"))return"vh"!==unit&&"vw"!==unit?value:("vh"===unit?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*value;switch(element=void 0,unit){case"%p":element=popperOffsets;break;case"%":case"%r":default:element=referenceOffsets}
return getClientRect(element)[measurement]/100*value}(str,measurement,popperOffsets,referenceOffsets)})}).forEach(function(op,index){op.forEach(function(frag,index2){isNumeric(frag)&&(offsets[index]+=frag*("-"===op[index2-1]?-1:1))})}),offsets}var Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(data){var reference,side,popper=data.placement,shiftOffsets=popper.split("-")[0],shiftvariation=popper.split("-")[1];return shiftvariation&&(reference=(side=data.offsets).reference,popper=side.popper,shiftOffsets=(side=-1!==["bottom","top"
].indexOf(shiftOffsets))?"width":"height",shiftOffsets={start:defineProperty({},side=side?"left":"top",reference[side]),end:defineProperty({},side,reference[side]+reference[shiftOffsets]-popper[shiftOffsets])},data.offsets.popper=_extends({},popper,shiftOffsets[shiftvariation])),data}},offset:{order:200,enabled:!0,fn:function(data,reference){var offset=reference.offset,offsets=data.placement,popper=(basePlacement=data.offsets).popper,reference=basePlacement.reference,basePlacement=offsets.split("-")[0],offsets=void 0,offsets=isNumeric(+offset)?[+offset,0]:parseOffset(offset,popper,reference,basePlacement);return"left"===basePlacement?(popper.top+=offsets[0],
popper.left-=offsets[1]):"right"===basePlacement?(popper.top+=offsets[0],popper.left+=offsets[1]):"top"===basePlacement?(popper.left+=offsets[0],popper.top-=offsets[1]):"bottom"===basePlacement&&(popper.left+=offsets[0],popper.top+=offsets[1]),data.popper=popper,data},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(data,options){var boundariesElement=options.boundariesElement||getOffsetParent(data.instance.popper);data.instance.reference===boundariesElement&&(boundariesElement=getOffsetParent(boundariesElement));var transformProp=getSupportedPropertyName("transform"),popperStyles=data.instance.popper.style,top=popperStyles.top,
left=popperStyles.left,order=popperStyles[transformProp];popperStyles.top="",popperStyles.left="",popperStyles[transformProp]="";var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,boundariesElement,data.positionFixed);popperStyles.top=top,popperStyles.left=left,popperStyles[transformProp]=order,options.boundaries=boundaries;var order=options.priority,popper=data.offsets.popper,check={primary:function(placement){var padding,value=popper[placement];return"left"===placement&&(padding=boundaries.width-(popper.left+popper.width),!options.escapeWithReference&&padding<0&&(padding=options.padding||0,
value=boundaries.width-popper.width-padding)),popper[placement]<boundaries[placement]&&!options.escapeWithReference&&(value=Math.max(popper[placement],boundaries[placement])),defineProperty({},placement,value)},secondary:function(placement){var mainSide="right"===placement?"left":"top",value=popper[mainSide];return popper[placement]>boundaries[placement]&&!options.escapeWithReference&&(value=Math.min(popper[mainSide],boundaries[placement]-("right"===placement?popper.width:popper.height))),defineProperty({},mainSide,value)}};return order.forEach(function(placement){var side=-1!==["left","top"].indexOf(placement)?"primary":"secondary";popper=_extends({},popper
,check[side](placement))}),data.offsets.popper=popper,data},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(data){var popper=(side=data.offsets).popper,reference=side.reference,opSide=data.placement.split("-")[0],floor=Math.floor,side=(measurement=-1!==["top","bottom"].indexOf(opSide))?"right":"bottom",opSide=measurement?"left":"top",measurement=measurement?"width":"height";return popper[side]<floor(reference[opSide])&&(data.offsets.popper[opSide]=floor(reference[opSide])-popper[measurement]),popper[opSide]>floor(reference[side])&&(data.offsets.popper[opSide]=floor(
reference[side])),data}},arrow:{order:500,enabled:!0,fn:function(data,altSide){if(!isModifierRequired(data.instance.modifiers,"arrow","keepTogether"))return data;var _data$offsets$arrow=altSide.element;if("string"==typeof _data$offsets$arrow){if(!(_data$offsets$arrow=data.instance.popper.querySelector(_data$offsets$arrow)))return data}else if(!data.instance.popper.contains(_data$offsets$arrow))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),data;var arrowElementSize=data.placement.split("-")[0],popper=(css=data.offsets).popper,popperMarginSide=css.reference,isVertical=-1!==["left","right"].indexOf(arrowElementSize),
len=isVertical?"height":"width",side=(sideValue=isVertical?"Top":"Left").toLowerCase(),altSide=isVertical?"left":"top",css=isVertical?"bottom":"right",arrowElementSize=getOuterSizes(_data$offsets$arrow)[len];popperMarginSide[css]-arrowElementSize<popper[side]&&(data.offsets.popper[side]-=popper[side]-(popperMarginSide[css]-arrowElementSize)),popperMarginSide[side]+arrowElementSize>popper[css]&&((center=Math.max(document.documentElement.clientWidth,document.documentElement.innerWidth||0))<popper[css]+arrowElementSize&&!isVertical?(data.offsets.popper[css]=center-2,data.offsets.popper[side]=data.offsets.popper[css]-data.popper.width
):data.offsets.popper[side]+=popperMarginSide[side]+arrowElementSize-popper[css]),data.offsets.popper=getClientRect(data.offsets.popper);var center=popperMarginSide[side]+popperMarginSide[len]/2-arrowElementSize/2,css=getStyleComputedProperty(data.instance.popper),popperMarginSide=parseFloat(css["margin"+sideValue],10),sideValue=parseFloat(css["border"+sideValue+"Width"],10),sideValue=center-data.offsets.popper[side]-popperMarginSide-sideValue,sideValue=Math.max(Math.min(popper[len]-arrowElementSize,sideValue),0);return data.arrowElement=_data$offsets$arrow,data.offsets.arrow=(defineProperty(_data$offsets$arrow={},side,Math.round(sideValue)),defineProperty(
_data$offsets$arrow,altSide,""),_data$offsets$arrow),data},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(data,options){if(isModifierEnabled(data.instance.modifiers,"inner"))return data;if(data.flipped&&data.placement===data.originalPlacement)return data;var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,options.boundariesElement,data.positionFixed),placement=data.placement.split("-")[0],placementOpposite=getOppositePlacement(placement),variation=data.placement.split("-")[1]||"",flipOrder=[];switch(options.behavior){case BEHAVIORS_FLIP:flipOrder=[placement,placementOpposite];break;case BEHAVIORS_CLOCKWISE:
flipOrder=clockwise(placement);break;case BEHAVIORS_COUNTERCLOCKWISE:flipOrder=clockwise(placement,!0);break;default:flipOrder=options.behavior}return flipOrder.forEach(function(overflowsTop,index){if(placement!==overflowsTop||flipOrder.length===index+1)return data;placement=data.placement.split("-")[0],placementOpposite=getOppositePlacement(placement);var overflowsBoundaries=data.offsets.popper,flippedVariation=data.offsets.reference,isVertical=Math.floor,overlapsRef="left"===placement&&isVertical(overflowsBoundaries.right)>isVertical(flippedVariation.left)||"right"===placement&&isVertical(overflowsBoundaries.left)<isVertical(flippedVariation.right
)||"top"===placement&&isVertical(overflowsBoundaries.bottom)>isVertical(flippedVariation.top)||"bottom"===placement&&isVertical(overflowsBoundaries.top)<isVertical(flippedVariation.bottom),overflowsLeft=isVertical(overflowsBoundaries.left)<isVertical(boundaries.left),overflowsRight=isVertical(overflowsBoundaries.right)>isVertical(boundaries.right),overflowsTop=isVertical(overflowsBoundaries.top)<isVertical(boundaries.top),flippedVariation=isVertical(overflowsBoundaries.bottom)>isVertical(boundaries.bottom),
overflowsBoundaries="left"===placement&&overflowsLeft||"right"===placement&&overflowsRight||"top"===placement&&overflowsTop||"bottom"===placement&&flippedVariation,isVertical=-1!==["top","bottom"].indexOf(placement),flippedVariation=!!options.flipVariations&&(isVertical&&"start"===variation&&overflowsLeft||isVertical&&"end"===variation&&overflowsRight||!isVertical&&"start"===variation&&overflowsTop||!isVertical&&"end"===variation&&flippedVariation);(overlapsRef||overflowsBoundaries||flippedVariation)&&(data.flipped=!0,(overlapsRef||overflowsBoundaries)&&(placement=flipOrder[index+1]),flippedVariation&&(variation=function(variation){
return"end"===variation?"start":"start"===variation?"end":variation}(variation)),data.placement=placement+(variation?"-"+variation:""),data.offsets.popper=_extends({},data.offsets.popper,getPopperOffsets(data.instance.popper,data.offsets.reference,data.placement)),data=runModifiers(data.instance.modifiers,data,"flip"))}),data},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(data){var placement=data.placement,basePlacement=placement.split("-")[0],popper=(subtractLength=data.offsets).popper,reference=subtractLength.reference,isHoriz=-1!==["left","right"].indexOf(basePlacement),subtractLength=-1===["top","left"
].indexOf(basePlacement);return popper[isHoriz?"left":"top"]=reference[basePlacement]-(subtractLength?popper[isHoriz?"width":"height"]:0),data.placement=getOppositePlacement(placement),data.offsets.popper=getClientRect(popper),data}},hide:{order:800,enabled:!0,fn:function(data){if(!isModifierRequired(data.instance.modifiers,"hide","preventOverflow"))return data;var refRect=data.offsets.reference,bound=find(data.instance.modifiers,function(modifier){return"preventOverflow"===modifier.name}).boundaries;if(refRect.bottom<bound.top||refRect.left>bound.right||refRect.top>bound.bottom||refRect.right<bound.left){if(!0===data.hide)return data;data.hide=!0,
data.attributes["x-out-of-boundaries"]=""}else{if(!1===data.hide)return data;data.hide=!1,data.attributes["x-out-of-boundaries"]=!1}return data}},computeStyle:{order:850,enabled:!0,fn:function(data,attributes){var left=attributes.x,top=attributes.y,invertLeft=data.offsets.popper;void 0!==(sideA=find(data.instance.modifiers,function(modifier){return"applyStyle"===modifier.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var invertTop=void 0!==sideA?sideA:attributes.gpuAcceleration,offsetParent=getOffsetParent(data.instance.popper),
offsetParentRect=getBoundingClientRect(offsetParent),styles={position:invertLeft.position},offsets={left:Math.floor(invertLeft.left),top:Math.round(invertLeft.top),bottom:Math.round(invertLeft.bottom),right:Math.floor(invertLeft.right)},sideA="bottom"===left?"top":"bottom",attributes="right"===top?"left":"right",invertLeft=getSupportedPropertyName("transform"),left=void 0,top=void 0,top="bottom"==sideA?"HTML"===offsetParent.nodeName?-offsetParent.clientHeight+offsets.bottom:-offsetParentRect.height+offsets.bottom:offsets.top,
left="right"==attributes?"HTML"===offsetParent.nodeName?-offsetParent.clientWidth+offsets.right:-offsetParentRect.width+offsets.right:offsets.left;return invertTop&&invertLeft?(styles[invertLeft]="translate3d("+left+"px, "+top+"px, 0)",styles[sideA]=0,styles[attributes]=0,styles.willChange="transform"):(invertTop="bottom"==sideA?-1:1,invertLeft="right"==attributes?-1:1,styles[sideA]=top*invertTop,styles[attributes]=left*invertLeft,styles.willChange=sideA+", "+attributes),attributes={"x-placement":data.placement},data.attributes=_extends({},attributes,data.attributes),data.styles=_extends({},styles,data.styles),data.arrowStyles=_extends({},data.offsets.arrow,
data.arrowStyles),data},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(data){var element,attributes;return setStyles(data.instance.popper,data.styles),element=data.instance.popper,attributes=data.attributes,Object.keys(attributes).forEach(function(prop){!1!==attributes[prop]?element.setAttribute(prop,attributes[prop]):element.removeAttribute(prop)}),data.arrowElement&&Object.keys(data.arrowStyles).length&&setStyles(data.arrowElement,data.arrowStyles),data},onLoad:function(placement,popper,options,modifierOptions,referenceOffsets){return referenceOffsets=getReferenceOffsets(referenceOffsets,popper,placement,
options.positionFixed),placement=computeAutoPlacement(options.placement,referenceOffsets,popper,placement,options.modifiers.flip.boundariesElement,options.modifiers.flip.padding),popper.setAttribute("x-placement",placement),setStyles(popper,{position:options.positionFixed?"fixed":"absolute"}),options},gpuAcceleration:void 0}}},Popper=function(){function Popper(reference,eventsEnabled){var _this=this,options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(_this.update)},this.update=debounce(this.update.bind(this)),this.options=_extends({},Popper.Defaults,options)
,this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=reference&&reference.jquery?reference[0]:reference,this.popper=eventsEnabled&&eventsEnabled.jquery?eventsEnabled[0]:eventsEnabled,this.options.modifiers={},Object.keys(_extends({},Popper.Defaults.modifiers,options.modifiers)).forEach(function(name){_this.options.modifiers[name]=_extends({},Popper.Defaults.modifiers[name]||{},options.modifiers?options.modifiers[name]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(name){return _extends({name:name},_this.options.modifiers[name])}).sort(function(a,b){return a.order-b.order}),this.modifiers.forEach(function(
modifierOptions){modifierOptions.enabled&&isFunction(modifierOptions.onLoad)&&modifierOptions.onLoad(_this.reference,_this.popper,_this.options,modifierOptions,_this.state)}),this.update();eventsEnabled=this.options.eventsEnabled;eventsEnabled&&this.enableEventListeners(),this.state.eventsEnabled=eventsEnabled}return createClass(Popper,[{key:"update",value:function(){return function(){var data;this.state.isDestroyed||((data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),data.placement=computeAutoPlacement(
this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),data.originalPlacement=data.placement,data.positionFixed=this.options.positionFixed,data.offsets.popper=getPopperOffsets(this.popper,data.offsets.reference,data.placement),data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",data=runModifiers(this.modifiers,data),this.state.isCreated?this.options.onUpdate(data):(this.state.isCreated=!0,this.options.onCreate(data)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,isModifierEnabled(
this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",
value:function(){return disableEventListeners.call(this)}}]),Popper}();return Popper.Utils=("undefined"!=typeof window?window:global).PopperUtils,Popper.placements=placements,Popper.Defaults=Defaults,Popper}),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("./popper")):"function"==typeof define&&define.amd?define("lib/popper/tooltip",["./popper"],factory):global.Tooltip=factory(global.Popper)}(this,function(Popper){"use strict";Popper=Popper&&Popper.hasOwnProperty("default")?Popper.default:Popper;var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)
)throw new TypeError("Cannot call a class as a function")},createClass=function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor};function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var key,source=arguments[i];for(key in source
)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},DEFAULT_OPTIONS={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},Tooltip=function(){function Tooltip(reference,options){classCallCheck(this,Tooltip),_initialiseProps.call(this),options=_extends({},DEFAULT_OPTIONS,options),reference.jquery&&(reference=reference[0]),this.reference=reference;var events="string"==typeof(
this.options=options).trigger?options.trigger.split(" ").filter(function(trigger){return-1!==["click","hover","focus"].indexOf(trigger)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(reference,events,options)}return createClass(Tooltip,[{key:"_create",value:function(reference,tooltipNode,title,allowHtml){var titleNode=window.document.createElement("div");titleNode.innerHTML=tooltipNode.trim();tooltipNode=titleNode.childNodes[0];tooltipNode.id="tooltip_"+Math.random().toString(36).substr(2,10),tooltipNode.setAttribute("aria-hidden","false");titleNode=titleNode.querySelector(this.options.innerSelector);return this._addTitleContent(
reference,title,allowHtml,titleNode),tooltipNode}},{key:"_addTitleContent",value:function(titleText,title,allowHtml,titleNode){var functionToCheck;1===title.nodeType||11===title.nodeType?allowHtml&&titleNode.appendChild(title):(functionToCheck=title)&&"[object Function]"==={}.toString.call(functionToCheck)?(titleText=title.call(titleText),allowHtml?titleNode.innerHTML=titleText:titleNode.textContent=titleText):allowHtml?titleNode.innerHTML=title:titleNode.textContent=title}},{key:"_show",value:function(reference,options){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",
this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var container=reference.getAttribute("title")||options.title;if(!container)return this;var tooltipNode=this._create(reference,options.template,container,options.html);reference.setAttribute("aria-describedby",tooltipNode.id);container=this._findContainer(options.container,reference);return this._append(tooltipNode,container),this._popperOptions=_extends({},options.popperOptions,{placement:options.placement}),this._popperOptions.modifiers=_extends({},this._popperOptions.modifiers,{arrow:{element:this.options.arrowSelector},offset:{offset:options.offset}}),
options.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:options.boundariesElement}),this.popperInstance=new Popper(reference,tooltipNode,this._popperOptions),this._tooltipNode=tooltipNode,this}},{key:"_hide",value:function(){return this._isOpen&&(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true")),this}},{key:"_dispose",value:function(){var _this=this;return this._events.forEach(function(event){var func=event.func,event=event.event;_this.reference.removeEventListener(event,func)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),
this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(container,reference){return"string"==typeof container?container=window.document.querySelector(container):!1===container&&(container=reference.parentNode),container}},{key:"_append",value:function(tooltipNode,container){var _this2=this;container.appendChild(tooltipNode),setTimeout(function(){_this2._isOpen&&_this2.hide(),_this2.show()})}},{key:"_setEventListeners",value:function(reference,events,options){var _this3=this,directEvents=[],oppositeEvents=[];events.forEach(function(event){
switch(event){case"hover":directEvents.push("mouseenter"),oppositeEvents.push("mouseleave");break;case"focus":directEvents.push("focus"),oppositeEvents.push("blur");break;case"click":directEvents.push("click"),oppositeEvents.push("click")}}),directEvents.forEach(function(event){var func=function(evt){!0!==_this3._isOpening&&(evt.usedByTooltip=!0,_this3._scheduleShow(reference,options.delay,options,evt))};_this3._events.push({event:event,func:func}),reference.addEventListener(event,func)}),oppositeEvents.forEach(function(event){var func=function(evt){!0!==evt.usedByTooltip&&_this3._scheduleHide(reference,options.delay,options,evt)};_this3._events.push({
event:event,func:func}),reference.addEventListener(event,func),"click"===event&&options.closeOnClickOutside&&document.addEventListener("mousedown",function(e){var popper;_this3._isOpening&&(popper=_this3.popperInstance.popper,reference.contains(e.target)||popper.contains(e.target)||func(e))},!0)})}},{key:"_scheduleShow",value:function(reference,computedDelay,options){var _this4=this;this._isOpening=!0;computedDelay=computedDelay&&computedDelay.show||computedDelay||0;this._showTimeout=window.setTimeout(function(){return _this4._show(reference,options)},computedDelay)}},{key:"_scheduleHide",value:function(reference,delay,options,evt){var _this5=this
;this._isOpening=!1;var computedDelay=delay&&delay.hide||delay||0;window.setTimeout(function(){if(window.clearTimeout(_this5._showTimeout),!1!==_this5._isOpen&&document.body.contains(_this5._tooltipNode)){if("mouseleave"===evt.type)if(_this5._setTooltipNodeEvent(evt,reference,delay,options))return;_this5._hide(reference,options)}},computedDelay)}},{key:"_updateTitleContent",value:function(title){var titleNode;void 0!==this._tooltipNode?(titleNode=this._tooltipNode.querySelector(this.options.innerSelector),this._clearTitleContent(titleNode,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,title,
this.options.html,titleNode),this.options.title=title,this.popperInstance.update()):void 0!==this.options.title&&(this.options.title=title)}},{key:"_clearTitleContent",value:function(titleNode,allowHtml,lastTitle){1===lastTitle.nodeType||11===lastTitle.nodeType?allowHtml&&titleNode.removeChild(lastTitle):allowHtml?titleNode.innerHTML="":titleNode.textContent=""}}]),Tooltip}(),_initialiseProps=function(){var _this6=this;this.show=function(){return _this6._show(_this6.reference,_this6.options)},this.hide=function(){return _this6._hide()},this.dispose=function(){return _this6._dispose()},this.toggle=function(){return _this6._isOpen?_this6.hide():_this6.show()},
this.updateTitleContent=function(title){return _this6._updateTitleContent(title)},this._events=[],this._setTooltipNodeEvent=function(evt,reference,delay,options){function callback(evt2){var relatedreference2=evt2.relatedreference||evt2.toElement||evt2.relatedTarget;_this6._tooltipNode.removeEventListener(evt.type,callback),reference.contains(relatedreference2)||_this6._scheduleHide(reference,options.delay,options,evt2)}var relatedreference=evt.relatedreference||evt.toElement||evt.relatedTarget;return!!_this6._tooltipNode.contains(relatedreference)&&(_this6._tooltipNode.addEventListener(evt.type,callback),!0)}};return Tooltip}),define("ui/tooltip",["jquery",
"lodash","core/dataattrhandler","lib/popper/tooltip","handlebars","i18n","lib/dompurify/purify"],function($$1,_,DataAttrHandler,Tooltip,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper
){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),
stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler,Tooltip=Tooltip&&Object.prototype.hasOwnProperty.call(Tooltip,"default")?Tooltip.default:Tooltip,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,
partials,data){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<div class="tooltip ',buffer+=(0,this.escapeExpression)((helper=helper.class)||"function"==typeof(helper=depth0&&depth0.class)?helper.call(depth0,{hash:{},data:data}):helper)+'" role="tooltip">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner tooltip-body"></div>\n</div>'});function defaultTpl(data,html){html=Template(data,html);return html}var themes=["dark","default","info","warning","error","success","danger"],themesMap={default:defaultTpl({class:"tooltip-plain"}),dark:defaultTpl({class:"tooltip-dark"}),
error:defaultTpl({class:"tooltip-red"}),success:defaultTpl({class:"tooltip-green"}),info:defaultTpl({class:"tooltip-blue"}),warning:defaultTpl({class:"tooltip-orange"}),danger:defaultTpl({class:"tooltip-danger"})},defaultOptions={template:themesMap.default,html:!0,trigger:"hover focus",popperOptions:{positionFixed:!0,placement:"auto",modifiers:{preventOverflow:{escapeWithReference:!1,enabled:!0,padding:6,boundariesElement:"viewport"}}}},checkHTMLInstance=function(el){return el instanceof Element||el instanceof HTMLDocument||el.jquery};return{lookup:function($container){var themeName;if(!$container||!checkHTMLInstance($container))throw new TypeError(
"Tooltip should be connected to DOM Element");$$1("[data-tooltip]",$container).each(function(){var inst,$content=DataAttrHandler.getTarget("tooltip",$$1(this)),el=_.cloneDeep(defaultOptions);themeName=_.contains(themes,$$1(this).data("tooltip-theme"))?$$1(this).data("tooltip-theme"):"default",inst={template:themesMap[themeName]},inst=$content.length?_.merge(el,inst,{title:$content[0].cloneNode(!0)}):_.merge(el,inst),inst=new Tooltip(el=this,inst),$$1(el).data("$tooltip")&&($$1(el).data("$tooltip").dispose(),$$1(el).removeData("$tooltip")),$$1(el).data("$tooltip",inst)})},create:function(el,message,calculatedOptions){var template=_.cloneDeep(defaultOptions),
calculatedOptions=calculatedOptions?_.merge(template,calculatedOptions):template,template=_.contains(themes,calculatedOptions.theme)?calculatedOptions.theme:"default",template={template:themesMap[template]};if(!el&&!checkHTMLInstance(el))throw new TypeError("Tooltip should be connected to DOM Element");if(!message&&!checkHTMLInstance(el)&&"string"!=typeof message)throw new TypeError("Tooltip should have messsage to show");return new Tooltip(el,_.merge(calculatedOptions,template,{title:message}))},error:function(element,message,options){var theme={theme:"error"};return this.create(element,message,options?_.merge(theme,options):theme)},success:function(element
,message,options){var theme={theme:"success"};return this.create(element,message,options?_.merge(theme,options):theme)},info:function(element,message,options){var theme={theme:"info"};return this.create(element,message,options?_.merge(theme,options):theme)},warning:function(element,message,options){var theme={theme:"warning"};return this.create(element,message,options?_.merge(theme,options):theme)},danger:function(element,message,options){var theme={theme:"danger"};return this.create(element,message,options?_.merge(theme,options):theme)}}}),define("css!ui/autocomplete/css/autocomplete",[],function(){}),define("ui/autocomplete",["jquery","lodash","i18n",
"util/capitalize","ui/tooltip","jquery.autocomplete","css!ui/autocomplete/css/autocomplete.css"],function($,_,__,capitalize,tooltip,jquery_autocomplete,autocomplete_css){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,capitalize=capitalize&&Object.prototype.hasOwnProperty.call(capitalize,"default")?capitalize.default:capitalize,tooltip=tooltip&&Object.prototype.hasOwnProperty.call(tooltip,"default")?tooltip.default:tooltip;var NS="autocompleter",tooltipConfigTooMany={container:$("body"
).get(0),trigger:"manual"},toolTipMessage=__("Too many suggestions match your query. Only a few are listed"),defaults={pluginName:"autocomplete",url:null,params:null,paramsRoot:null,ontologyParam:"rootNode",queryParam:"query",type:"GET",ontology:null,value:null,label:null,valueField:"id",labelField:"http://www.w3.org/2000/01/rdf-schema#label",isProvider:!1,preventSubmit:!1,delay:250,minChars:3,tooManySuggestions:!1,addWilcard:!1},autocompleter={init:function(element,options){return this.$element=$(element),this.$element.is(":input")||(this.$element=this.$element.find(":input")),this.tooltip=tooltip.info(this.$element,toolTipMessage,tooltipConfigTooMany),
options=_.assign(_.clone(options||{}),_.pick(this.$element.data(),["url","ontology","paramsRoot","ontologyParam","queryParam","type","valueField","labelField","isProvider","preventSubmit","delay","minChars"])),this.on("keyup keydown keypress",this._onKeyEvent.bind(this)),this.on("focus",this._onFocus.bind(this)),this.on("blur",this._onBlur.bind(this)),this.$element[this.pluginName](this.parseOptions(options)),this},destroy:function(){return this.applyPlugin("dispose"),this.$element&&(this.$element.off("."+NS),this.tooltip.dispose()),this.$element=null,this},parseOptions:function(options){var self=this,pluginOptions={};return _.forOwn(options,function(value,
name){var setterName="set"+capitalize(name);self[setterName]?self[setterName](value):"on"===name.substr(0,2)?self.on(name.substr(2),value):pluginOptions[name]=value}),_.assign(pluginOptions,{onSelect:this._onSelect.bind(this),onSearchStart:this._onSearchStart.bind(this),onSearchComplete:this._onSearchComplete.bind(this),onSearchError:this._onSearchError.bind(this),onInvalidateSelection:this._onInvalidateSelection.bind(this),beforeRender:this._onBeforeRender.bind(this),transformResult:this._transformResult.bind(this),deferRequestBy:this.delay||0,preventBadQueries:!1,triggerSelectOnValidInput:!1,autoSelectFirst:!0,minChars:this.minChars||1,serviceUrl:this.url,
type:this.getType(),params:this.getParams(),paramName:this.getQueryParam(),ajaxSettings:{dataType:"json"}}),pluginOptions},setOptions:function(options){return this.applyPlugin("setOptions",[this.parseOptions(options)]),this},applyElement:function(action,params){var $element=this.$element;if($element)return $element[action].apply($element,params)},applyPlugin:function(action,params){var $plugin=this.$element,$plugin=$plugin&&$plugin[this.pluginName]();if($plugin)return $plugin[action].apply($plugin,params)},showTooltipTooMany:function(){this.$element&&this.tooltip.show()},hideTooltipTooMany:function(){this.$element&&this.tooltip.hide()},trigger:function(
eventName,params){return this.applyElement("triggerHandler",[adjustEventName(eventName),params])},on:function(eventName,callback){return this.applyElement("on",[adjustEventName(eventName),callback]),this},off:function(eventName,callback){return this.applyElement("off",[adjustEventName(eventName),callback]),this},getElement:function(){return this.$element},hasTooManySuggestions:function(){return!!this.tooManySuggestions},getValue:function(){return this.value},setValue:function(value,label){return this.value=value,_.isUndefined(label)||this.setLabel(label),this},getLabel:function(){return this.label},setLabel:function(label){return this.label=label,
this.$element&&this.$element.val(label),this},getOntology:function(){return this.ontology},setOntology:function(ontology){return this.ontology=ontology,this},getValueField:function(){return this.valueField},setValueField:function(valueField){return this.valueField=valueField,this},getLabelField:function(){return this.labelField},setLabelField:function(labelField){return this.labelField=labelField,this},getIsProvider:function(){return this.isProvider},setIsProvider:function(isProvider){return this.isProvider=toBoolean(isProvider),this},getPreventSubmit:function(){return this.preventSubmit},setPreventSubmit:function(preventSubmit){
return this.preventSubmit=toBoolean(preventSubmit),this},getParamsRoot:function(){return this.paramsRoot},setParamsRoot:function(paramsRoot){return this.paramsRoot=paramsRoot,this},getParams:function(){var _this=this,params=_.merge({},this.params||{}),searchParams=params;return this.paramsRoot&&(searchParams=params[this.paramsRoot]||{},params[this.paramsRoot]=searchParams),this.ontology&&(Array.isArray(this.ontologyParam)?this.ontologyParam.forEach(function(p){searchParams[p]=_this.ontology}):searchParams[this.ontologyParam]=this.ontology),params},setParams:function(params){return this.params=params,this},getQueryParam:function(){return this.adjustParam(
this.queryParam)},setQueryParam:function(queryParam){return this.queryParam=queryParam,this},getOntologyParam:function(){var p=Array.isArray(this.ontologyParam)?this.ontologyParam[0]:this.ontologyParam;return this.adjustParam(p)},setOntologyParam:function(ontologyParam){return this.ontologyParam=ontologyParam,this},getUrl:function(){return this.url},setUrl:function(url){return this.url=url,this},getType:function(){return this.type||"GET"},setType:function(type){return this.type=type,this},getDelay:function(){return this.delay},setDelay:function(delay){return this.delay=Math.max(0,Number(delay)),this},getMinChars:function(){return this.minChars},
setMinChars:function(minChars){return this.minChars=Math.max(1,Number(minChars)),this},enable:function(){return this.applyPlugin("enable"),this},disable:function(){return this.applyPlugin("disable"),this},hide:function(){return this.applyPlugin("hide"),this},clear:function(){return this.tooManySuggestions=!1,this.applyPlugin("clear"),this},clearCache:function(){return this.applyPlugin("clearCache"),this},reset:function(){return this.setValue(null,""),this.clear(),this.applyPlugin("hide"),this},_onKeyEvent:function(event){this.preventSubmit&&13===event.which&&event.preventDefault()},_onSelect:function(label){var value=label&&label.data,
label=label&&label.value;if(!1===this.trigger("beforeSelectItem",[value,label,this]))return!1;this.value=value,this.label=label,this.isProvider&&(this.$element.val(""),this.clear()),this.trigger("selectItem",[value,label,this])},_onSearchStart:function(params){var query,queryParam=this.getQueryParam();if(!1===this.trigger("searchStart",[params,this]))return!1;this.addWilcard&&params&&params[queryParam]&&("*"!==(query=params[queryParam]||"").substr(-1)&&(query+="*"),params[queryParam]=query)},_onSearchComplete:function(query,suggestions){return suggestions&&suggestions.length||this.clear(),this.trigger("searchComplete",[query,suggestions,this])},
_onSearchError:function(query,jqXHR,textStatus,errorThrown){return this.trigger("searchError",[query,jqXHR,textStatus,errorThrown,this])},_onInvalidateSelection:function(){return this.trigger("invalidateSelection",[this])},_onBeforeRender:function($container){this.trigger("beforeRender",[$container,this])},_onFocus:function(){this.hasTooManySuggestions()&&this.showTooltipTooMany()},_onBlur:function(){this.hideTooltipTooMany()},_transformResult:function(response){var self=this,results={suggestions:[]};return _.isString(response)&&(response=JSON.parse(response)),response.records&&(results.suggestions=_.map(response.data,function(dataItem){return{
value:dataItem[self.labelField],data:dataItem[self.valueField]}})),this.tooManySuggestions=response.total&&1<response.total,this.hasTooManySuggestions()?this.showTooltipTooMany():this.hideTooltipTooMany(),results},adjustParam:function(param){return this.paramsRoot&&(param=this.paramsRoot+"["+param+"]"),param}},adjustEventName=function(eventName){return _(eventName.split(" ")).map(function(name){return-1===(name=name.toLowerCase()).indexOf(".")&&(name+="."+NS),name}).join(" ")},toBoolean=function(value){return _.isString(value)&&("false"!==value.toLowerCase()&&"0"!==value||(value=!1)),!!value};return function(element,options){var autocomplete=_.clone(
autocompleter,!0);return _.defaults(autocomplete,defaults),autocomplete.init(element,options)}}),define("ui/autoscroll",["jquery"],function($){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,function(element,container){return new Promise(function(resolve){var currentScrollTop,maxScrollTop,scrollTop=$(element),$container=$(container||scrollTop.parent());scrollTop.length&&$container.length?(currentScrollTop=$container.scrollTop(),scrollTop=(maxScrollTop=scrollTop.offset().top-$container.offset().top+currentScrollTop)-$container.height()+scrollTop.outerHeight(),(scrollTop=Math.max(Math.min(maxScrollTop,currentScrollTop),
scrollTop))!==currentScrollTop?$container.animate({scrollTop:scrollTop}).promise().done(resolve):resolve()):resolve()})}}),define("ui/hider",["jquery","core/eventifier"],function($,eventifier){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;function jqWrap(element){return element instanceof $?element:$(element)}return{show:function(element){return jqWrap(element).removeClass("hidden")},hide:function(element){return jqWrap(element).addClass("hidden")},toggle:function(element,state){return void 0!==state&&(state=!state),jqWrap(element).toggleClass("hidden",state)},isHidden:function($elt,real){$elt=jqWrap($elt)
;return real?$elt.hasClass("hidden")||"none"===$elt.css("display")||"hidden"===$elt.css("visibility"):$elt.hasClass("hidden")}}}),define("css!ui/badge/css/badge",[],function(){}),define("ui/badge/badge",["lodash","ui/hider","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/badge/css/badge.css"],function(_,hider,component,Handlebars,__,DOMPurify,badge_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb
){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),
fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle)
)return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default")?hider.default:hider,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="badge-component">\n <div class="loader"></div>\n <span class="badge-border"></span>\n <span class="badge"></span>\n</div>'});function badgeTpl(data,html,asString){html=Template(data,html);return html}var _defaults={loading:!1,type:"info",value:0},_allowedTypes=["success","warning","error","info"],badgeApi={update:function(displayValue){var $loader=this.getElement(),$border=$loader.find(".badge-border"),$badge=$loader.find(".badge").removeClass(
"badge-info badge-success badge-warning badge-error icon-result-ok"),$loader=$loader.find(".loader");if(_.assign(this.config,displayValue),this.config&&this.config.value){if(displayValue=99<(displayValue=parseInt(this.config.value,10))?"99+":displayValue,-1===_allowedTypes.indexOf(this.config.type))throw new Error("Invalid badge type : ".this.config.type);$badge.addClass("badge-"+this.config.type).html(displayValue),this.config.loading?(hider.show($loader),hider.hide($border)):(hider.hide($loader),hider.show($border))}else hider.hide($loader),hider.hide($border),$badge.addClass("icon-result-ok").empty();return this}};return function(initConfig){
return initConfig=_.defaults(initConfig||{},_defaults),component(badgeApi).setTemplate(badgeTpl).on("render",function(){this.update(this.config)}).init(initConfig)}}),define("css!ui/breadcrumbs/css/breadcrumbs",[],function(){}),define("ui/breadcrumbs",["lodash","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/breadcrumbs/css/breadcrumbs.css"],function(_,component,Handlebars,__,DOMPurify,breadcrumbs_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default"
)?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program4(depth0,data){var stack1,helper,buffer="";return buffer+='\n <a href="',stack1=(helper=helpers.url)||typeof(helper=depth0&&depth0.url)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.label)||typeof(
helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.data,{hash:{},inverse:self.noop,fn:self.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="</a>\n "}function program5(depth0,data){var stack1,buffer="";return buffer+=" - ",stack1=(stack1=helpers.data)||typeof(stack1=depth0&&depth0.data)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)}function program7(depth0,data){var stack1,buffer="";return buffer+='\n <span class="a">',stack1=(stack1=helpers.label
)||typeof(stack1=depth0&&depth0.label)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.data,{hash:{},inverse:self.noop,fn:self.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="</span>\n "}function program9(depth0,stack1){var buffer="";return buffer+='\n <ul class="entries plain">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.entries,{hash:{},inverse:self.noop,fn:self.program(10,program10,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n "}function program10(depth0,data){
var stack1,helper,buffer="";return buffer+='\n <li data-breadcrumb="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <a href="',stack1=(helper=helpers.url)||typeof(helper=depth0&&depth0.url)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.data,{hash:{},
inverse:self.noop,fn:self.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="</a>\n </li>\n "}return buffer+='<ul class="breadcrumbs plain',!(stack1=helpers.if.call(depth0,depth0&&depth0.cls,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,buffer="";return buffer+=" ",stack1=(stack1=helpers.cls)||typeof(stack1=depth0&&depth0.cls)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.breadcrumbs,{hash:{},inverse:self.noop,
fn:self.program(3,function(depth0,data){var stack1,buffer="";return buffer+='\n <li class="breadcrumb" data-breadcrumb="',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.url,{hash:{},inverse:self.program(7,program7,data),fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.entries,{hash:{},inverse:self.noop,fn:self.program(9,program9,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n </li>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</ul>\n"});function breadcrumbsTpl(data,html,asString){html=Template(data,html);return html}var breadcrumbs={update:function($component){var $oldComponent=this.getContainer();return this.config.breadcrumbs=$component,this.trigger("update",$component,this),$component=this.render(),$oldComponent&&(this.config.renderTo?this.config.replace||$oldComponent.remove():$oldComponent.replaceWith($component)),$component}},removeLastLink=function(){var breadcrumbs=this.config.breadcrumbs;breadcrumbs&&breadcrumbs.length&&((breadcrumbs=_.cloneDeep(this.config.breadcrumbs)
)[breadcrumbs.length-1].url=null,this.config.breadcrumbs=breadcrumbs)};return function(config){return component(breadcrumbs).on("init",removeLastLink).on("update",removeLastLink).setTemplate(breadcrumbsTpl).init(config)}}),define("ui/btngrouper",["jquery","lodash","core/pluginifier","core/dataattrhandler"],function($,_,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,
DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler;var ns="btngrouper",dataNs="ui."+ns,defaults={bindEvent:"click",activeClass:"active",disableClass:"disabled",innerElt:"li",action:"toggle"},availableActions=["toggle","switch"],BtnGrouper={init:function(options){return options=_.defaults(options||{},defaults),_.contains(availableActions,options.action)?this.each(function(){var $activeElt,$elt=$(this);$elt.data(dataNs)||($elt.data(dataNs,options),"toggle"===options.action&&(0===($activeElt=$elt.find(options.innerElt+"."+options.activeClass)).length?$elt.find(
options.innerElt+":first").addClass(options.activeClass):1<$activeElt.length&&$elt.find(options.innerElt+"."+options.activeClass).not(":first").removeClass(options.activeClass)),!1!==options.bindEvent&&$elt.on(options.bindEvent,options.innerElt,function(action){action.preventDefault();action="_"+options.action;"function"==typeof BtnGrouper[action]&&BtnGrouper[action]($elt,$(this))}),$elt.trigger("create."+ns))}):$.error("Action "+options.action+" not supported")},_toggle:function($elt){var options=$elt.data(dataNs);$elt.find(options.innerElt).toggleClass(options.activeClass),$elt.trigger("toggle."+ns).trigger("change")},_switch:function($elt,$target){
var options=$elt.data(dataNs);$target.toggleClass(options.activeClass),$elt.trigger("switch."+ns).trigger("change")},value:function(){var value=[];return this.each(function(){var $elt=$(this),eltValue=$elt.data(dataNs),eltValue=$elt.find(eltValue.innerElt).filter("."+eltValue.activeClass).text();$.isArray(eltValue)||value.push(eltValue)}),1===value.length?value[0]:value},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);!1!==options.bindEvent&&$elt.off(options.bindEvent,options.innerElt),$elt.removeData(dataNs),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,BtnGrouper,{expose:["toggle","switch"]}),function(
$container){new DataAttrHandler("button-group",{container:$container,inner:"li",bubbled:!0,listenerEvent:"click",namespace:dataNs,useTarget:!1}).init(function($elt,$target){$elt.on("create."+ns,function(e){e.namespace===ns&&$elt.btngrouper($elt.data("button-group"),$target)}),$elt.btngrouper({action:$elt.data("button-group")})})}}),define("util/namespace",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var reSplit=/\s/g,namespaceHelper={split:function(names,normalize){return!_.isString(names)||_.isEmpty(names)?[]:(normalize&&(names=names.toLowerCase()),_(names.trim().split(reSplit)).compact().uniq(
).value())},getName:function(namespaced){return!_.isString(namespaced)||_.isEmpty(namespaced)?"":-1<namespaced.indexOf(".")?namespaced.substr(0,namespaced.indexOf(".")):namespaced},getNamespace:function(namespaced,defaultNs){return!_.isString(namespaced)||_.isEmpty(namespaced)?"":-1<namespaced.indexOf(".")?namespaced.substr(namespaced.indexOf(".")+1):defaultNs||"@"},namespaceAll:function(names,namespace,normalize){var suffix;return _.isArray(names)||(names=namespaceHelper.split(names,normalize)),normalize&&(namespace=namespace.toLowerCase()),suffix=namespace?"."+namespace:"",_(names).map(function(sh){return sh.indexOf(".")<0?sh+suffix:sh}).compact().uniq(
).value().join(" ")}};return namespaceHelper}),define("util/shortcut/registry",["jquery","lodash","util/namespace"],function($,_,namespaceHelper){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,namespaceHelper=namespaceHelper&&Object.prototype.hasOwnProperty.call(namespaceHelper,"default")?namespaceHelper.default:namespaceHelper;var modifiers={ctrl:"ctrlKey",alt:"altKey",option:"altKey",shift:"shiftKey",meta:"metaKey",cmd:"metaKey",win:"metaKey"},translateKeys={escape:"esc",arrowdown:"down",arrowleft:"left",arrowright:"right",arrowup:"up"},specialKeys={
8:"backspace",9:"tab",13:"enter",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete",91:"meta",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",145:"scrolllock",144:"numlock"};function registerEvent(target,eventName,listener){target.addEventListener?target.addEventListener(eventName,listener,!1):target.attachEvent?target.attachEvent("on"+eventName,listener):target["on"+eventName]=listener}function unregisterEvent(target,eventName,listener){target.removeEventListener?target.removeEventListener(
eventName,listener,!1):target.detachEvent?target.detachEvent("on"+eventName,listener):target["on"+eventName]=null}function normalizeCommand(descriptor){var key=translateKeys[descriptor.key]||descriptor.key,parts=[];return descriptor.ctrlKey&&parts.push("control"),descriptor.altKey&&parts.push("alt"),descriptor.shiftKey&&parts.push("shift"),descriptor.metaKey&&parts.push("meta"),descriptor.scrollDown&&parts.push("scrollDown"),descriptor.scrollUp&&parts.push("scrollUp"),descriptor.clickLeft&&parts.push("clickLeft"),descriptor.clickRight&&parts.push("clickRight"),descriptor.clickMiddle&&parts.push("clickMiddle"),descriptor.clickBack&&parts.push("clickBack"),
descriptor.clickForward&&parts.push("clickForward"),key&&parts.indexOf(key)<0&&parts.push(key),parts.join("+")}function parseCommand(parts){var parts=namespaceHelper.getName(parts).split("+"),descriptor={keyboardInvolved:!1,mouseClickInvolved:!1,mouseWheelInvolved:!1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,key:null,scrollUp:null,scrollDown:null,clickLeft:null,clickRight:null,clickMiddle:null,clickBack:null,clickForward:null};return _.forEach(parts,function(part){if(modifiers[part])descriptor[modifiers[part]]=!0;else if(0<=part.indexOf("mouse")){if(descriptor.keyboardInvolved)throw new Error("A shortcut cannot involve both mouse and regular keys!")
;0<=part.indexOf("scroll")&&(descriptor.mouseWheelInvolved=!0,descriptor.scrollUp=0<=part.indexOf("up"),descriptor.scrollDown=0<=part.indexOf("down")),0<=part.indexOf("click")&&(descriptor.mouseClickInvolved=!0,descriptor.clickLeft=0<=part.indexOf("left"),descriptor.clickRight=0<=part.indexOf("right"),descriptor.clickMiddle=0<=part.indexOf("middle"),descriptor.clickBack=0<=part.indexOf("back"),descriptor.clickForward=0<=part.indexOf("forward"))}else{if(descriptor.mouseClickInvolved||descriptor.mouseWheelInvolved)throw new Error("A shortcut cannot involve both mouse and regular keys!");descriptor.keyboardInvolved=!0,descriptor.key=part}}),descriptor}
return function(root,defaultOptions){var keyboardIsRegistered=!1,mouseClickIsRegistered=!1,mouseWheelIsRegistered=!1,keyboardCount=0,mouseClickCount=0,mouseWheelCount=0,shortcuts={},handlers={},states={};function getHandlers(command,namespace){return handlers[namespace]=handlers[namespace]||{},handlers[namespace][command]=handlers[namespace][command]||[],handlers[namespace][command]}function getCommandHandlers(command){return _.reduce(handlers,function(acc,nsHandlers){return nsHandlers[command]&&(acc=acc.concat(nsHandlers[command])),acc},[])}function setOptions(descriptor,options){descriptor.options=_.defaults(_.merge(descriptor.options||{},options),
defaultOptions)}function unregisterKeyboard(){--keyboardCount<=0&&(keyboardCount=0,keyboardIsRegistered&&(unregisterEvent(root,"keydown",onKeyboard),keyboardIsRegistered=!1))}function unregisterMouseClick(){--mouseClickCount<=0&&(mouseClickCount=0,mouseClickIsRegistered&&(unregisterEvent(root,"click",onMouseClick),mouseClickIsRegistered=!1))}function unregisterMouseWheel(){--mouseWheelCount<=0&&(mouseWheelCount=0,mouseWheelIsRegistered&&(unregisterEvent(root,"wheel",onMouseWheel),mouseWheelIsRegistered=!1))}function registerCommand(command,descriptor){(shortcuts[command]=descriptor).keyboardInvolved&&(keyboardIsRegistered||(registerEvent(root,"keydown",
onKeyboard),keyboardIsRegistered=!0),keyboardCount++),descriptor.mouseClickInvolved&&(mouseClickIsRegistered||(registerEvent(root,"click",onMouseClick),mouseClickIsRegistered=!0),mouseClickCount++),descriptor.mouseWheelInvolved&&(mouseWheelIsRegistered||(registerEvent(root,"wheel",onMouseWheel),mouseWheelIsRegistered=!0),mouseWheelCount++)}function onKeyboard(key){var keyName,code,character;processShortcut(key,{keyboardInvolved:!0,ctrlKey:key.ctrlKey,altKey:key.altKey,shiftKey:key.shiftKey,metaKey:key.metaKey,key:(code=(keyName=key).which||keyName.keyCode,character=32<=code?String.fromCharCode(code).toLowerCase():"",key=keyName.key&&keyName.key.toLowerCase()
,(keyName=keyName.code&&keyName.code.toLowerCase())&&(0===keyName.indexOf("key")?(key<"a"||"z"<key)&&"a"<=character&&character<="z"&&(key=character):0===keyName.indexOf("digit")&&(key=keyName.substr(5))),specialKeys[code]||key||character)})}function onMouseClick(event){processShortcut(event,_.merge({mouseClickInvolved:!0,ctrlKey:event.ctrlKey,altKey:event.altKey,shiftKey:event.shiftKey,metaKey:event.metaKey},function(event){var buttons={clickLeft:!1,clickRight:!1,clickMiddle:!1,clickBack:!1,clickForward:!1};if(event.buttons)buttons.clickLeft=!!(1&event.buttons),buttons.clickRight=!!(2&event.buttons),buttons.clickMiddle=!!(4&event.buttons),
buttons.clickBack=!!(8&event.buttons),buttons.clickForward=!!(16&event.buttons);else switch(event.button){case 0:buttons.clickLeft=!0;break;case 1:buttons.clickMiddle=!0;break;case 2:buttons.clickRight=!0;break;case 3:buttons.clickBack=!0;break;case 4:buttons.clickForward=!0}return buttons}(event)))}function onMouseWheel(event){processShortcut(event,_.merge({mouseClickInvolved:!0,ctrlKey:event.ctrlKey,altKey:event.altKey,shiftKey:event.shiftKey,metaKey:event.metaKey},function(event){return{scrollUp:event.deltaY<0,scrollDown:0<event.deltaY}}(event)))}function processShortcut(event,shortcutHandlers){var $target,command=normalizeCommand(shortcutHandlers),
shortcutHandlers=shortcuts[command];shortcutHandlers&&!states.disabled&&(!0!==shortcutHandlers.options.avoidInput||!($target=$(event.target)).closest('[type="text"],textarea').length||shortcutHandlers.options.allowIn&&$target.closest(shortcutHandlers.options.allowIn).length)&&(!1===shortcutHandlers.options.propagate&&event.stopPropagation(),!0===shortcutHandlers.options.prevent&&event.preventDefault(),(shortcutHandlers=getCommandHandlers(command))&&_.forEach(shortcutHandlers,function(handler){handler(event,command)}))}return root.jquery&&(root=root.get(0)),{set:function(shortcut,options){return _.forEach(namespaceHelper.split(shortcut,!0),function(command){
var descriptor=parseCommand(command),command=normalizeCommand(descriptor);setOptions(descriptor,options),registerCommand(command,descriptor)}),this},add:function(shortcut,handler,options){return _.isFunction(handler)&&_.forEach(namespaceHelper.split(shortcut,!0),function(command){var namespace=namespaceHelper.getNamespace(command,"*"),descriptor=parseCommand(command),command=normalizeCommand(descriptor);setOptions(descriptor,options),registerCommand(command,descriptor),getHandlers(command,namespace).push(handler)}),this},remove:function(shortcut){return _.forEach(namespaceHelper.split(shortcut,!0),function(command){var namespace=namespaceHelper.getNamespace(
command,"*"),command=normalizeCommand(parseCommand(command));!function(command,namespace){namespace&&!command?handlers[namespace]={}:_.forEach(handlers,function(nsHandlers,ns){!nsHandlers[command]||"*"!==namespace&&namespace!==ns||(nsHandlers[command]=[])})}(command,namespace),getCommandHandlers(command).length||function(command){var descriptor=shortcuts[command];shortcuts[command]=null,descriptor&&(descriptor.keyboardInvolved&&unregisterKeyboard(),descriptor.mouseClickInvolved&&unregisterMouseClick(),descriptor.mouseWheelInvolved&&unregisterMouseWheel())}(command)}),this},exists:function(command){var shortcutExists=String(command).trim().toLowerCase(),
namespace=namespaceHelper.getNamespace(shortcutExists,"*"),command=normalizeCommand(parseCommand(shortcutExists)),shortcutExists=!1;return shortcuts[command]?shortcutExists="*"===namespace||!!getHandlers(command,namespace).length:command||(shortcutExists=!_.isEmpty(handlers[namespace])),shortcutExists},clear:function(){return shortcuts={},handlers={},mouseWheelCount=mouseClickCount=keyboardCount=0,unregisterKeyboard(),unregisterMouseClick(),unregisterMouseWheel(),this},getState:function(name){return!!states[name]},setState:function(name,state){return states[name]=!!state,this},enable:function(){return this.setState("disabled",!1),this},disable:function(){
return this.setState("disabled",!0),this}}}}),define("ui/keyNavigation/navigableDomElement",["jquery","lodash","core/eventifier","util/shortcut/registry"],function($,_,eventifier,shortcutRegistry){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,shortcutRegistry=shortcutRegistry&&Object.prototype.hasOwnProperty.call(shortcutRegistry,"default")?shortcutRegistry.default:shortcutRegistry;var eventNS=".ui-key-navigator",navigableApi=["init","destroy",
"getType","getElement","isVisible","isEnabled","isFocused","blur","focus"];function navigableDomElement(element){var $element=$(element),shortcuts=shortcutRegistry($element),initialTabIndex=null;return eventifier({init:function(propagateTab){var _this=this,propagateTab=(0<arguments.length&&void 0!==propagateTab?propagateTab:{}).propagateTab,propagateTab=void 0!==propagateTab&&propagateTab,keyboard=function(key,el){_this.trigger("key",key,el)},isInput=function($el){return $el.is(":text,textarea")};if(!$element.length)throw new TypeError("dom element does not exist");return initialTabIndex=$element.attr("tabindex"),$element.addClass("key-navigation-highlight"
).attr("tabindex",-1).on("focus".concat(eventNS),function(e){_this.trigger("focus",e.target)}).on("blur".concat(eventNS),function(e){_this.trigger("blur",e.target)}).on("keyup".concat(eventNS),function(e){32===(e.keyCode||e.charCode)&&(isInput($(e.target))?e.stopPropagation():(e.preventDefault(),keyboard("space",e.target)))}),shortcuts.clear().add("tab shift+tab",function(e,key){return keyboard(key,e.target)},{propagate:!!propagateTab,prevent:!0}).add("up down left right",function(e,key){var $target=$(e.target);isInput($target)||($target.is("img")||$target.hasClass("key-navigation-scrollable")||$target.hasClass("key-navigation-scrollable-up")&&(
"up"===key||"left"===key)||$target.hasClass("key-navigation-scrollable-down")&&("down"===key||"right"===key)||e.preventDefault(),keyboard(key,e.target))},{propagate:!1}).add("enter",function(e){isInput($(e.target))||(e.target.classList.contains("key-navigation-actionable")||e.preventDefault(),keyboard("enter",e.target))},{propagate:!1}),this},destroy:function(){return $element.removeClass("key-navigation-highlight").off(eventNS),initialTabIndex||0===initialTabIndex?$element.attr("tabindex",initialTabIndex):$element.removeAttr("tabindex"),shortcuts.clear(),this.isFocused()&&document.activeElement.blur(),this},getType:function(){return"element"},
getElement:function(){return $element},isVisible:function(){return $element.is(":visible")},isEnabled:function(){return!$element.is(":disabled")},isFocused:function(){var el=$element.get(0);return document.activeElement&&el===document.activeElement},blur:function(){return $element.blur(),this},focus:function(){return $element.focus(),this}})}return navigableDomElement.createFromDoms=function($elements){var list=[],addElement=function(element){return list.push(navigableDomElement(element))};return $elements&&($elements instanceof $?$elements.each(function(i,element){return addElement(element)}):_.forEach($elements,addElement)),list},
navigableDomElement.isNavigableElement=function(navigable){return!!navigable&&navigableApi.every(function(n){return"function"==typeof navigable[n]})},navigableDomElement}),define("ui/keyNavigation/navigator",["jquery","lodash","core/eventifier","ui/keyNavigation/navigableDomElement"],function($,_,eventifier,navigableDomElement){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,
navigableDomElement=navigableDomElement&&Object.prototype.hasOwnProperty.call(navigableDomElement,"default")?navigableDomElement.default:navigableDomElement;var defaults={defaultPosition:-1,keepState:!1,loop:!1,propagateTab:!0};return function(config){var navigatorConfig=Object.assign({},defaults,config||{}),id=navigatorConfig.id||_.uniqueId("navigator_"),$group=navigatorConfig.group&&$(navigatorConfig.group).addClass("key-navigation-group").attr("data-navigation-id",id);if(navigatorConfig.group&&(!$group.length||!$.contains(document.body,$group.get(0))))throw new TypeError("group element does not exist");var focusOutObserver,
navigableElements=navigatorConfig.elements||[],lastPosition=-1,isNavigableAvailable=function(navigable){return navigable&&navigable.isVisible()&&navigable.isEnabled()},isNavigableFocused=function(navigable){return isNavigableAvailable(navigable)&&navigable.isFocused()},getClosestPositionRight=function(fromPosition){for(var pos=fromPosition;pos<navigableElements.length;pos++)if(isNavigableAvailable(navigableElements[pos]))return pos;return-1},getClosestPositionLeft=function(fromPosition){for(var pos=fromPosition;0<=pos;pos--)if(isNavigableAvailable(navigableElements[pos]))return pos;return-1},keyNavigator=eventifier({init:function(){var _this=this
;return $group&&($group.on("focusin.".concat(this.getId()),function(){_this.isFocused()&&$group.addClass("focusin")}).on("focusout.".concat(this.getId()),function(){_this.isFocused()||$group.removeClass("focusin")}),focusOutObserver=new MutationObserver(function(){!_this.isVisible()&&$group.hasClass("focusin")&&$group.removeClass("focusin")}),$group.each(function(index){focusOutObserver.observe($group.get(index),{childList:!0,subtree:!0})})),navigableElements.forEach(function(navigable){if(!navigableDomElement.isNavigableElement(navigable))throw new TypeError("not a valid navigable element");"element"===navigable.getType()&&navigable.init({
propagateTab:navigatorConfig.propagateTab}),navigable.off(".".concat(_this.getId())).on("key.".concat(_this.getId()),function(key,el){return _this.trigger("key",key,el)}).on("focus.".concat(_this.getId()),function(){lastPosition=_this.getCurrentPosition()}).on("blur.".concat(_this.getId()),function(){var cursor=_this.getCursorAt(lastPosition);cursor.navigable&&_this.trigger("blur",cursor)})}),this},destroy:function(){var _this2=this;return $group&&$group.off(".".concat(this.getId())).removeClass("focusin"),focusOutObserver&&focusOutObserver.disconnect(),navigableElements.forEach(function(navigable){navigable.off(".".concat(_this2.getId)),
"element"===navigable.getType()&&navigable.destroy()}),lastPosition=-1,this},getId:function(){return id},getType:function(){return"navigator"},getElement:function(){return $group},getCursor:function(){return this.getCursorAt(this.getCurrentPosition())},getNavigableAt:function(position){return 0<=position&&navigableElements[position]?navigableElements[position]:null},getCursorAt:function(position){var navigable=this.getNavigableAt(position);return{position:navigable?position:-1,navigable:navigable}},setCursorAt:function(position){var direction;return navigableElements[position]&&((direction=this.getCursorAt(lastPosition)).navigable&&this.trigger("blur",
direction),direction=position-lastPosition,navigableElements[lastPosition=position].focus(direction),this.trigger("focus",this.getCursor())),this},getCurrentPosition:function(){return document.activeElement?_.findIndex(navigableElements,isNavigableFocused):-1},getCurrentNavigable:function(){var position=this.getCurrentPosition();return 0<=position?navigableElements[position]:null},getNavigableElements:function(){return navigableElements.slice()},isVisible:function(){return!($group&&!$group.is(":visible"))&&navigableElements.some(function(navigable){return navigable.isVisible()})},isEnabled:function(){return(!$group||!$group.is(":disabled")
)&&navigableElements.some(function(navigable){return navigable.isEnabled()})},isFocused:function(){return!!document.activeElement&&navigableElements.some(function(navigable){return navigable.isFocused()})},first:function(){return this.setCursorAt(getClosestPositionRight(0)),this},last:function(){return this.setCursorAt(getClosestPositionLeft(navigableElements.length-1)),this},next:function(){var cursor=this.getCurrentPosition();return 0<=cursor?(0<=(cursor=getClosestPositionRight(cursor+1))?this.setCursorAt(cursor):navigatorConfig.loop?this.first():this.trigger("upperbound"),cursor=this.getCursor(),this.trigger("next",cursor)):this.first(),this},
previous:function(){var cursor=this.getCurrentPosition();return 0<=cursor?(0<=(cursor=getClosestPositionLeft(cursor-1))?this.setCursorAt(cursor):navigatorConfig.loop?this.last():this.trigger("lowerbound"),cursor=this.getCursor(),this.trigger("previous",cursor)):this.first(),this},activate:function(target){var cursor=this.getCursor();return cursor.navigable&&this.trigger("activate",cursor,target),this},blur:function(){var cursor=this.getCursorAt(lastPosition);return cursor.navigable&&cursor.navigable.blur(),this},focus:function(position){var direction=0<arguments.length&&void 0!==position?position:1,position=-1
;return navigatorConfig.keepState&&this.getNavigableAt(lastPosition)?position=lastPosition:(lastPosition=-1,void 0!==navigatorConfig.defaultPosition&&(position=_.isFunction(navigatorConfig.defaultPosition)?navigatorConfig.defaultPosition(this.getNavigableElements(),direction):navigatorConfig.defaultPosition)),-1===position&&(position=direction<0?getClosestPositionLeft(navigableElements.length-1):0),this.setCursorAt(getClosestPositionRight(position)),this}});return keyNavigator.init().on("key",function(key,el){"space"===key||"enter"===key?keyNavigator.activate(el):keyNavigator.trigger(key,el)})}}),define("util/shortcut",["util/shortcut/registry"],function(
shortcutRegistry){"use strict";return(shortcutRegistry=shortcutRegistry&&Object.prototype.hasOwnProperty.call(shortcutRegistry,"default")?shortcutRegistry.default:shortcutRegistry)(window,{propagate:!1,prevent:!0})}),define("ui/modal",["jquery","i18n","core/pluginifier","core/dataattrhandler"],function($,__,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,
DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler;var dataNs="ui.modal",defaults={modalCloseClass:"modal-close",modalOverlayClass:"modal-bg",startClosed:!1,disableClosing:!1,width:"responsive",minWidth:0,minHeight:0,vCenter:!0,$context:null,animate:400},modal={init:function(options){return(options=$.extend(!0,{},defaults,options)).animate&&("number"!=typeof options.animate?options.animate=defaults.animate:options.animate=Math.max(100,options.animate)),$(this).each(function(){var $overlay,$modal=$(this);options.modalOverlay="__modal-bg-"+($modal.attr("id")||(new Date
).getTime()),$modal.data(dataNs,options),0===$("#"+options.modalOverlay).length&&($overlay=$("<div/>").attr({id:options.modalOverlay,class:options.modalOverlayClass}),options.$context instanceof $&&options.$context.length?($overlay.css("position","absolute"),options.$context.append($overlay)):$modal.after($overlay)),0!==$("."+options.modalCloseClass,$modal).length||options.disableClosing||$('<button\n id="modal-close-btn"\n class="'.concat(options.modalCloseClass,'"\n aria-label="').concat(__("Close dialog"),
'"\n data-control="close"\n >\n <span class="icon-close"></span>\n </button>')).appendTo($modal),options.startClosed||modal._open($modal),$modal.trigger("create.modal")})},_destroy:function($element){return $element.each(function(){var $modal=$(this),options=$modal.data(dataNs);$modal.removeData(dataNs),$("#"+options.modalOverlay).remove(),$modal.hide(),$element.trigger("destroyed.modal")})},_bindEvents:function($element){var options=$element.data(dataNs);options&&("responsive"===options.width&&$(window).on("resize.modal",function(e){e.preventDefault(),modal._resize($element)
}),options.disableClosing||($("."+options.modalCloseClass,$element).on("click.modal",function(e){e.preventDefault(),closeModal($element,"close")}),$("#"+options.modalOverlay).on("click.modal",function(e){e.preventDefault(),closeModal($element,"overlay")}),options.disableEscape||$(document).on("keydown.modal",function(e){27===e.keyCode&&(e.preventDefault(),closeModal($element,"escape"))})))},_unBindEvents:function($element){var options=$element.data(dataNs);options&&"responsive"===options.width&&$(window).off("resize.modal"),$element.off("click.modal"),options&&!options.disableClosing&&($("."+options.modalCloseClass,$element).off("click.modal"),$(
"#"+options.modalOverlay).off("click.modal"),$(document).off("keydown.modal"))},_open:function($element){var topOffset,onOpen,to,modalHeight=$element.outerHeight(),$overlay=$(window).height(),options=$element.data(dataNs);void 0!==options&&(onOpen=function(){$element.addClass("opened"),modal._bindEvents($element),$element.trigger("opened.modal")},topOffset=options.top||(options.vCenter||$overlay<modalHeight?40:($overlay-modalHeight)/2),options.top||$element.parent().hasClass("no-scroll-offset")||$element.parents().map(function(){"BODY"!==this.tagName&&"HTML"!==this.tagName&&(topOffset+=parseInt($(this).scrollTop(),10))}),to={opacity:"1",top:topOffset+"px"},
modal._resize($element),$overlay=$("#"+options.modalOverlay),$element.show(),options.animate&&$element.is(":visible")?($element.css({top:"-"+modalHeight+"px",display:"block"}),$overlay.fadeIn(options.animate-100),$element.animate(to,options.animate,onOpen)):($overlay.show(),$element.css(to),onOpen()))},_close:function($element){closeModal($element,"api")},_resize:function($element){var options=$element.data(dataNs),modalWidth=parseInt($(window).width(),10),css={},modalWidth="responsive"===options.width?.7*modalWidth:parseInt(options.width,10);css.width=Math.max(modalWidth,options.minWidth),options.minHeight&&(css.minHeight=parseInt(options.minHeight)+"px"),
$element.css(css)}};function closeModal($element,reason){var options=$element.data(dataNs),$overlay=$("#"+options.modalOverlay),onClose=function(){$element.removeClass("opened"),$element.css("display","none"),$element.trigger("closed.modal",reason)};modal._unBindEvents($element),options.animate&&$element.is(":visible")?($overlay.fadeOut(options.animate-100),$element.animate({opacity:"0",top:"-1000px"},options.animate,onClose)):($overlay.hide(),$element.hide(),onClose())}return Pluginifier.register("modal",modal,{expose:["open","close","destroy"]}),function($container){new DataAttrHandler("modal",{container:$container,listenerEvent:"click",namespace:dataNs}
).init(function($elt,$target){$target.modal()})}}),define("css!ui/bulkActionPopup/css/bulkActionPopup",[],function(){}),define("ui/bulkActionPopup",["jquery","lodash","i18n","handlebars","lib/dompurify/purify","ui/component","ui/keyNavigation/navigator","ui/keyNavigation/navigableDomElement","util/shortcut/registry","util/shortcut","util/namespace","ui/modal","select2","css!ui/bulkActionPopup/css/bulkActionPopup.css"],function($$1,_,__,Handlebars,DOMPurify,component,keyNavigator,navigableDomElement,shortcutRegistry,globalShortcut,namespaceHelper,modal,select2,bulkActionPopup_css){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default"
)?DOMPurify.default:DOMPurify,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,keyNavigator=keyNavigator&&Object.prototype.hasOwnProperty.call(keyNavigator,"default")?keyNavigator.default:keyNavigator,navigableDomElement=navigableDomElement&&Object.prototype.hasOwnProperty.call(navigableDomElement,"default")?navigableDomElement.default:navigableDomElement,shortcutRegistry=shortcutRegistry&&Object.prototype.hasOwnProperty.call(shortcutRegistry,"default")?shortcutRegistry.default:shortcutRegistry,globalShortcut=globalShortcut&&Object.prototype.hasOwnProperty.call(globalShortcut,"default"
)?globalShortcut.default:globalShortcut,namespaceHelper=namespaceHelper&&Object.prototype.hasOwnProperty.call(namespaceHelper,"default")?namespaceHelper.default:namespaceHelper,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,options,buffer="",functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing,self=this;function program2(depth0,data){var stack1,helper,options,buffer=""
;return buffer+='\n <div class="single" data-resource="'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.allowedResources)||!1===stack1?stack1:stack1[0])||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+'">\n <p>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"The action will be applied to",options):helperMissing.call(depth0,"__","The action will be applied to",options)))+" ",stack1=(helper=helpers.resourceType)||typeof(helper=depth0&&depth0.resourceType)===functionType?helper.call(depth0,{hash:{},data:data}):helper,
buffer+=escapeExpression(stack1)+' <span class="resource-label">'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.allowedResources)||!1===stack1?stack1:stack1[0])||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+"</span>\n </p>\n </div>\n "}function program4(depth0,data){var helper,stack1,buffer="";return buffer+='\n <div class="multiple">\n <p>\n '+escapeExpression((stack1={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"The action will be applied to the following",stack1):helperMissing.call(depth0,"__",
"The action will be applied to the following",stack1)))+' <span class="resource-count">',stack1=(helper=helpers.resourceCount)||typeof(helper=depth0&&depth0.resourceCount)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span> ",stack1=(helper=helpers.resourceTypes)||typeof(helper=depth0&&depth0.resourceTypes)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+':\n </p>\n <ul class="plain applicables">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.allowedResources,{hash:{},inverse:self.noop,fn:self.program(5,program5,data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n </div>\n "}function program5(depth0,data){var stack1,helper,buffer="";return buffer+='\n <li data-resource="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <span class="resource-label">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span>\n </li>\n "}function program8(depth0,data){var stack1,helper,options,
buffer="";return buffer+='\n <div class="single" data-resource="'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.deniedResources)||!1===stack1?stack1:stack1[0])||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+'">\n <p>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"The action will not be applied to ",options):helperMissing.call(depth0,"__","The action will not be applied to ",options)))+" ",stack1=(helper=helpers.resourceType)||typeof(helper=depth0&&depth0.resourceType)===functionType?helper.call(depth0,{hash:{},data:data}
):helper,buffer+=escapeExpression(stack1)+'\n <span class="resource-label">'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.deniedResources)||!1===stack1?stack1:stack1[0])||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+'</span>\n <span class="reason">('+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.deniedResources)||!1===stack1?stack1:stack1[0])||!1===stack1?stack1:stack1.reason)===functionType?stack1.apply(depth0):stack1)+")</span>\n </p>\n </div>\n "}function program10(depth0,data){var stack1,options,buffer=""
;return buffer+="\n <p>\n "+escapeExpression((options={hash:{},data:data},(stack1=helpers.__||depth0&&depth0.__)?stack1.call(depth0,"The action will not be applied to the following",options):helperMissing.call(depth0,"__","The action will not be applied to the following",options)))+" ",stack1=(stack1=helpers.resourceTypes)||typeof(stack1=depth0&&depth0.resourceTypes)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+':\n </p>\n <ul class="plain no-applicables">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.deniedResources,{hash:{},inverse:self.noop,fn:self.program(11,program11,
data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n "}function program11(depth0,data){var stack1,helper,buffer="";return buffer+='\n <li data-resource="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <span class="resource-label">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'</span>\n <span class="reason">(',stack1=(helper=helpers.reason)||typeof(
helper=depth0&&depth0.reason)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+")</span>\n </li>\n "}function program16(depth0,data){var stack1,buffer="";return buffer+='\n <span class="icon icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>\n '}return buffer+='<div class="bulk-action-popup">\n <h2 class="title">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Action",options
):helperMissing.call(depth0,"__","Action",options)))+": ",stack1=(helper=helpers.actionName)||typeof(helper=depth0&&depth0.actionName)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</h2>\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.resourceCount,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,stack1){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.single,{hash:{},inverse:self.program(4,program4,stack1),fn:self.program(2,program2,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "},data),data:data}))&&0!==stack1||(buffer+=stack1
),buffer+="\n\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.deniedResources)||!1===stack1?stack1:stack1.length,{hash:{},inverse:self.noop,fn:self.program(7,function(depth0,stack1){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.singleDenied,{hash:{},inverse:self.program(10,program10,stack1),fn:self.program(8,program8,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.reason,{hash:{},inverse:self.noop,fn:self.program(13,function(depth0,data){var helper,options,
buffer="";return buffer+='\n <div class="reason">\n <p>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Please provide a reason",options):helperMissing.call(depth0,"__","Please provide a reason",options)))+':\n </p>\n <div class="categories"></div>\n <div class="comment">\n <textarea placeholder="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"comment...",options):helperMissing.call(depth0,"__","comment...",options)))+'"></textarea>\n </div>\n </div>\n '},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.message,{hash:{},inverse:self.noop,fn:self.program(15,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <div class="message">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(16,program16,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",stack1=(helper=helpers.message)||typeof(helper=depth0&&depth0.message)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </div>\n "},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+='\n\n <div class="actions">\n <button class="btn btn-info small done">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"OK",options):helperMissing.call(depth0,"__","OK",options)))+'</button>\n <a href="#" class="btn cancel" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"cancel the action",options):helperMissing.call(depth0,"__","cancel the action",options)))+'">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"cancel",
options):helperMissing.call(depth0,"__","cancel",options)))+"</a>\n </div>\n\n</div>"});function layoutTpl(data,html,asString){html=Template(data,html);return html}var _ns="bulk-action-popup";return function(config){var state={reasons:null,comment:""},instance=component({validate:function(){var $element=this.getElement();if($element&&($$1(".feedback-error",$element).remove(),0!==$$1("select, textarea",$element).filter(function(){return 0===$$1.trim($$1(this).val()).length}).length)){var $error=$$1('<div class="feedback-error small"></div>').text(__("All fields are required"));return $element.find(".actions").prepend($error),!1}return this.trigger("ok",
state),this.destroy(),!0},cancel:function(){this.trigger("cancel"),this.destroy()}}).setTemplate(layoutTpl).on("destroy",function(){globalShortcut.enable(),this.dialogShortcut&&(this.dialogShortcut.disable(),this.dialogShortcut.clear(),this.dialogShortcut=null),this.navigator&&(this.navigator.destroy(),this.navigator=null),this.getElement().removeClass("modal").modal("destroy")}).on("action-ok",function(){this.validate()}).on("action-cancel",function(){this.cancel()}).on("render",function(){var $reason,_this=this,$element=this.getElement();$reason={disableEscape:!0,width:!this.config.single||this.config.deniedResources.length||this.config.reason?800:600},
instance.getElement().addClass("modal").on("closed.modal",function(){instance.destroy()}).modal($reason).focus(),_.isObject(this.config.categoriesSelector)&&($reason=$element.find(".reason").children(".categories"),this.config.categoriesSelector.render($reason)),$element.on(namespaceHelper.namespaceAll("selected.cascading-combobox",_ns),function(e,reasons){state.reasons=reasons,_this.config.allowShortcuts&&initNavigator(),_this.trigger("change",state)}).on(namespaceHelper.namespaceAll("change",_ns),"textarea",function(e){state.comment=$$1(e.currentTarget).val(),_this.trigger("change",state)}).on(namespaceHelper.namespaceAll("click",_ns),".actions .done",
function(e){e.preventDefault(),_this.trigger("action-ok")}).on(namespaceHelper.namespaceAll("click",_ns),".actions .cancel",function(e){e.preventDefault(),_this.trigger("action-cancel")}),this.config.allowShortcuts&&(initNavigator(),globalShortcut.disable(),this.dialogShortcut=shortcutRegistry($$1("body"),{avoidInput:!0,propagate:!1,prevent:!0}).add(namespaceHelper.namespaceAll("Tab",_ns,!0),function(){_this.navigator.next()},{avoidInput:!1}).add(namespaceHelper.namespaceAll("Shift+Tab",_ns,!0),function(){_this.navigator.previous()},{avoidInput:!1}).add(namespaceHelper.namespaceAll("esc",_ns,!0),function(e,shortcut){instance.trigger("action-cancel",shortcut)
}).add(namespaceHelper.namespaceAll("enter",_ns,!0),function(e,shortcut){instance.trigger("action-ok",shortcut)}))});function initNavigator(){var $element=instance.getElement();instance.navigator=keyNavigator({id:_ns,loop:!0,group:$element,defaultPosition:1,elements:navigableDomElement.createFromDoms($element.find(":input:not(button,select.select2-offscreen)").add($element))}).on("activate",function(cursor,target){$$1(target).is($element)&&instance.validate()}).focus()}return instance.init(_.defaults(config,{deniedResources:[],reason:!1,allowShortcuts:!0,reasonRequired:!1,resourceCount:config.allowedResources.length,single:1===config.allowedResources.length,
singleDenied:config.deniedResources&&1===config.deniedResources.length,resourceTypes:"".concat(config.resourceType,"s")}))}}),define("ui/button",["ui/component","handlebars","i18n","lodash","lib/dompurify/purify"],function(componentFactory,Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default"
)?componentFactory.default:componentFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",
functionType="function",escapeExpression=this.escapeExpression;return buffer+='<button class="',!(stack1=helpers.if.call(depth0,depth0&&depth0.type,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+="btn-",stack1=(stack1=helpers.type)||typeof(stack1=depth0&&depth0.type)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)},data),data:data}))&&0!==stack1||(buffer+=stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.small,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){return" small"},data),data:data}))&&0!==stack1||(buffer+=stack1),!(
stack1=helpers.if.call(depth0,depth0&&depth0.cls,{hash:{},inverse:this.noop,fn:this.program(5,function(depth0,data){var stack1,buffer="";return buffer+=" ",stack1=(stack1=helpers.cls)||typeof(stack1=depth0&&depth0.cls)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" data-control="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},inverse:this.noop,fn:this.program(7,function(depth0,
data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:this.noop,fn:this.program(9,function(depth0,data){var stack1,buffer="";return buffer+='<span class="icon icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+='\n <span class="label">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span>\n</button>\n"});function buttonTpl(data,html,asString){html=Template(data,html);return html}var defaults={small:!0};return function(config){return componentFactory({getId:function(){return this.getConfig().id}},defaults).setTemplate(buttonTpl).on("render",function(){var _this=this;this.getElement().on("click",function(e){e.preventDefault(),_this.trigger("click",_this.getId())}),this.trigger("ready")}).on("disable",
function(){this.getElement().prop("disabled",!0)}).on("enable",function(){this.getElement().prop("disabled",!1)}).init(config)}}),define("ui/stacker",["jquery"],function($){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var ns=".stacker",indexes={},increment=10,zIndexStart=1e3;function isElementValid($element){return $element instanceof $&&$element.length}return function(scope){return function(scope){indexes[scope]||(indexes[scope]=zIndexStart)}(scope=scope||"global"),{bringToFront:function($element){isElementValid($element)&&!function($element,scope){return parseInt($element.css("z-index"),10)>=indexes[scope]}($element,scope
)&&($element.get(0).style.zIndex=function(scope){return indexes[scope]+=increment,indexes[scope]}(scope))},autoBringToFront:function($element){var self=this;isElementValid($element)&&($element.off("mousedown"+ns),$element.on("mousedown"+ns,function(){self.bringToFront($element)}))},reset:function($element){isElementValid($element)&&($element.get(0).style.zIndex="auto")},getCurrent:function(){return indexes[scope]}}}}),define("ui/component/stackable",["lodash","ui/stacker"],function(_,stackerFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,stackerFactory=stackerFactory&&Object.prototype.hasOwnProperty.call(
stackerFactory,"default")?stackerFactory.default:stackerFactory;var defaultConfig={stackingScope:""},stackableComponent={bringToFront:function(){var $element=this.getElement();this._stacker.bringToFront($element)}};return function(component,config){return _.assign(component,stackableComponent),component.off(".makeStackable").on("init.makeStackable",function(){_.defaults(this.config,config||{},defaultConfig),this._stacker=stackerFactory(this.config.stackingScope)}).on("show.makeStackable",function(){this.bringToFront()}).on("render.makeStackable",function(){var $element=this.getElement();this._stacker.reset($element),this._stacker.autoBringToFront($element),
this.bringToFront()})}}),define("ui/interactUtils",["jquery","lodash","interact","core/mouseEvent"],function($,_,interact,mouseEvent){"use strict";var simulateDrop;function iFrameDragFixCb(){_.isFunction(simulateDrop)&&simulateDrop(),interact.stop()}return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,interact=interact&&Object.prototype.hasOwnProperty.call(interact,"default")?interact.default:interact,{iFrameDragFixOn:function(simulateDropCb){simulateDrop=simulateDropCb,window.addEventListener("mouseleave",iFrameDragFixCb)},iFrameDragFixOff:function(){
window.removeEventListener("mouseleave",iFrameDragFixCb)},calculateScale:function(e){return[e.getBoundingClientRect().width/e.offsetWidth,e.getBoundingClientRect().height/e.offsetHeight]},tapOn:function(domElement,cb,delay){var firstEvent,secondEvent,eventOptions={bubbles:!0,pointerId:1,cancelable:!0,pointerType:"touch",width:100,height:100,isPrimary:!0};domElement&&(domElement=domElement instanceof $?domElement.get(0):domElement,-1!==navigator.userAgent.indexOf("MSIE")||0<navigator.appVersion.indexOf("Trident/")?((firstEvent=document.createEvent("HTMLEvents")).initEvent("pointerdown",!1,!0),(secondEvent=document.createEvent("HTMLEvents")).initEvent(
"pointerup",!1,!0)):(firstEvent=new PointerEvent("pointerdown",eventOptions),secondEvent=new PointerEvent("pointerup",eventOptions)),domElement.dispatchEvent(firstEvent),domElement.dispatchEvent(secondEvent),cb&&_.delay(cb,delay||0))},moveElement:function(x,y,transform){var domElement=x instanceof $?x.get(0):x,x=(parseFloat(domElement.getAttribute("data-x"))||0)+y,y=(parseFloat(domElement.getAttribute("data-y"))||0)+transform,transform="translate("+x+"px, "+y+"px) translateZ(0px)";domElement.style.webkitTransform=transform,domElement.style.transform=transform,domElement.setAttribute("data-x",x),domElement.setAttribute("data-y",y)},
restoreOriginalPosition:function(domElement){domElement=domElement instanceof $?domElement.get(0):domElement;domElement.style.webkitTransform="translate(0px, 0px) translateZ(0px)",domElement.style.transform="translate(0px, 0px) translateZ(0px)",domElement.setAttribute("data-x",0),domElement.setAttribute("data-y",0)}}}),define("util/position",[],function(){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}return{isInside:function(container,
element){var containerCoords,elementCoords;if(container instanceof HTMLElement&&element instanceof HTMLElement&&(containerCoords=container.getBoundingClientRect(),elementCoords=element.getBoundingClientRect(),"object"===_typeof(containerCoords)&&"object"===_typeof(elementCoords)))return elementCoords.top>=containerCoords.top&&elementCoords.top<=containerCoords.bottom&&elementCoords.left>=containerCoords.left&&elementCoords.left<=containerCoords.right&&elementCoords.bottom<=containerCoords.bottom&&elementCoords.bottom>=containerCoords.top&&elementCoords.right<=containerCoords.right&&elementCoords.right>=containerCoords.left},isOver:function(container,element
){var containerCoords,elementCoords;if(container instanceof HTMLElement&&element instanceof HTMLElement&&(containerCoords=container.getBoundingClientRect(),elementCoords=element.getBoundingClientRect(),"object"===_typeof(containerCoords)&&"object"===_typeof(elementCoords)))return elementCoords.top>=containerCoords.top&&elementCoords.top<=containerCoords.bottom&&elementCoords.left>=containerCoords.left&&elementCoords.left<=containerCoords.right}}}),define("css!ui/dynamicComponent/css/dynamicComponent",[],function(){}),define("ui/dynamicComponent",["jquery","lodash","interact","ui/component","ui/component/stackable","ui/transformer","ui/interactUtils",
"util/position","lib/uuid","handlebars","i18n","lib/dompurify/purify","css!ui/dynamicComponent/css/dynamicComponent.css"],function($$1,_,interact,componentFactory,makeStackable,transformer,interactUtils,position,uuid,Handlebars,__,DOMPurify,dynamicComponent_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,interact=interact&&Object.prototype.hasOwnProperty.call(interact,"default")?interact.default:interact,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,makeStackable=makeStackable&&Object.prototype.hasOwnProperty.call(makeStackable,"default")?makeStackable.default:makeStackable,interactUtils=interactUtils&&Object.prototype.hasOwnProperty.call(interactUtils,"default")?interactUtils.default:interactUtils,position=position&&Object.prototype.hasOwnProperty.call(position,"default")?position.default:position
,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var stack1,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing
;return buffer+='<div class="dynamic-component-container">\n <div class="dynamic-component-title-bar">\n <i class="title-bar-icon"></i>\n <a title="'+(0,this.escapeExpression)((stack1={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Close",stack1):helperMissing.call(depth0,"__","Close",stack1)))+'" class="closer" href="#"></a>\n </div>\n <div class="dynamic-component-content">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.draggableContainer,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'\n <div class="dynamic-component-layer"></div>\n '},data),data:data}
))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.resizable,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){return'\n <div class="dynamic-component-resize-container">\n <div class="dynamic-component-resize-wrapper">\n <div class="dynamic-component-resize"></div>\n </div>\n </div>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>"});function layoutTpl(data,html,asString){html=Template(data,html);return html}var _defaults={resizable:!0,draggable:!0,width:240,height:360,minWidth:150,maxWidth:600,minHeight:100,maxHeight:900,
largeWidthThreshold:380,smallWidthThreshold:200,draggableContainer:"parent",preserveAspectRatio:!0,top:0,left:0,proportionalResize:!1},dynamicComponent={reset:function(){return this.is("rendered")&&!this.is("disabled")&&(this.resetPosition(),this.resetSize(),this.trigger("reset")),this},resetPosition:function(){var $element=this.getElement();return this.is("rendered")&&!this.is("disabled")&&(interactUtils.restoreOriginalPosition($element),this.setCoords(),$element.css({left:this.config.left,top:this.config.top}),this.trigger("move",this.position)),this},setCoords:function(){var $element=this.getElement();this.position.x=parseFloat($element.attr("data-x")
)+this.config.left,this.position.y=parseFloat($element.attr("data-y"))+this.config.top},setContentSize:function(width,height){var $element,$titleBar;return this.is("rendered")&&!this.is("disabled")&&($element=this.getElement(),$titleBar=$$1(".dynamic-component-title-bar",$element),this.config.width=width+$element.outerWidth()-$element.width(),this.config.height=height+$element.outerHeight()-$element.height()+$titleBar.outerHeight(),this.resetSize()),this},resetSize:function(){var $element,$content,$titleBar,self=this;return this.is("rendered")&&!this.is("disabled")&&($element=this.getElement(),$content=$$1(".dynamic-component-content",$element),
$titleBar=$$1(".dynamic-component-title-bar",$element),$element.css({width:this.config.width+"px",height:this.config.height+"px"}),_.defer(function(){self.position.width=self.config.width,self.position.height=self.config.height,self.position.contentWidth=$titleBar.width(),self.position.contentHeight=$element.height()-$titleBar.outerHeight(),$content.css({width:self.position.contentWidth+"px",height:self.position.contentHeight+"px"}),self.trigger("resize",self.position)})),this}};return function(component,defaults){return defaults=_.defaults(defaults||{},_defaults),component=_.defaults(component||{},dynamicComponent),component=componentFactory(component,
defaults).setTemplate(layoutTpl).on("init",function(){this.id=uuid()}).on("render",function(){var interactElement,_this=this,self=this,$element=this.getElement(),config=this.config,$content=$$1(".dynamic-component-content",$element),$titleBar=$$1(".dynamic-component-title-bar",$element),$contentOverlay=$$1(".dynamic-component-layer",$element),$resizeControll=$$1(".dynamic-component-resize-wrapper",$element),pixelRatio=window.devicePixelRatio;function getRestriction(){var draggableContainer=getDraggableContainer();return draggableContainer?{restriction:draggableContainer,endOnly:!1}:{restriction:"parent",endOnly:!1}}function getDraggableContainer(){
var draggableContainer=config.draggableContainer;return draggableContainer instanceof $$1&&draggableContainer.length&&(draggableContainer=draggableContainer[0]),draggableContainer}function getParent(){var draggableContainer=getDraggableContainer();return draggableContainer&&"parent"!==draggableContainer?$$1(draggableContainer):$element.parent()}function moveComponent(x,y){interactUtils.moveElement($element,x,y),self.setCoords(),self.trigger("move",self.position)}function resizeComponent(width,height,elementOffsetLeft,elementOffsetTop,parentOffset){var x=2<arguments.length&&void 0!==elementOffsetLeft?elementOffsetLeft:0,
y=3<arguments.length&&void 0!==elementOffsetTop?elementOffsetTop:0,updateElementOffset=4<arguments.length&&void 0!==parentOffset&&parentOffset,$parent=getParent(),dimensions=$element.offset(),elementOffsetLeft=dimensions.left,elementOffsetTop=dimensions.top,parentOffset=$parent.offset();updateElementOffset&&(elementOffsetLeft+=x,elementOffsetTop+=y);dimensions=function(width,height){var scaleRate;config.proportionalResize&&(scaleRate=Math.max(width/config.minWidth,height/config.minHeight),width=config.minWidth*scaleRate,height=config.minHeight*scaleRate);width<config.minWidth?width=config.minWidth:width>config.maxWidth&&(width=config.maxWidth)
;height<config.minHeight?height=config.minHeight:height>config.maxHeight&&(height=config.maxHeight);return{width:width,height:height}}(width,height);width=calculateOverlap(dimensions.width,elementOffsetLeft,parentOffset.left,$parent.width()),null!==(height=calculateOverlap(dimensions.height,elementOffsetTop,parentOffset.top,$parent.height()))&&null!==width&&(width<=config.smallWidthThreshold?$element.addClass("small").removeClass("large"):width>=config.largeWidthThreshold?$element.addClass("large").removeClass("small"):$element.removeClass("small").removeClass("large"),interactUtils.moveElement($element,
width>config.minWidth&&width<config.maxWidth||updateElementOffset?x:0,height>config.minHeight&&height<config.maxHeight||updateElementOffset?y:0),self.position.width=width,self.position.height=height,self.setCoords(),$element.css({width:width+"px",height:height+"px"}),_.defer(function(){self.position.contentWidth=$titleBar.width(),self.position.contentHeight=$element.height()-$titleBar.outerHeight(),$content.css({width:self.position.contentWidth+"px",height:self.position.contentHeight+"px"}),self.trigger("resize",self.position)}))}function calculateOverlap(fullSizeSide,elOffset,parentOffset,fullSizeParent){var result=fullSizeSide,
fullSizeSide=elOffset+fullSizeSide,fullSizeParent=parentOffset+fullSizeParent;return fullSizeParent<fullSizeSide&&(config.proportionalResize?result=null:result-=fullSizeSide-fullSizeParent),result}$element.css("touch-action","none"),self.position={x:this.config.left,y:this.config.top,width:this.config.width,height:this.config.height},this.resetPosition(),this.resetSize(),$titleBar.on("click touchstart",".closer",function(e){e.preventDefault(),self.hide()}).on("click touchstart",".reset",function(e){e.preventDefault(),self.resetSize()}),this.trigger("rendercontent",$content),interactElement=interact($element[0]),config.draggable&&(interactElement.draggable({
inertia:!1,autoScroll:!0,manualStart:!0,restrict:_.merge(getRestriction(),{elementRect:{left:0,right:1,top:0,bottom:1}}),onmove:function(event){return moveComponent(event.dx,event.dy)},onend:function(){return _this.setCoords()}}),interact($titleBar[0]).on("down",function(event){var interaction=event.interaction;event.currentTarget;interaction.start({name:"drag"},interactElement,$element[0])}),$$1(window).on("resize.dynamic-component-"+self.id,function(){var container;window.devicePixelRatio!==pixelRatio&&(pixelRatio=window.devicePixelRatio,container=getDraggableContainer(),!1===position.isInside(container,$element[0])&&self.resetPosition())})),
config.resizable&&interactElement.resizable({preserveAspectRatio:config.preserveAspectRatio,autoScroll:!0,restrict:getRestriction(),edges:{left:!1,right:".dynamic-component-resize-wrapper",bottom:".dynamic-component-resize-wrapper",top:!1},onmove:function(e){return resizeComponent(e.rect.width,e.rect.height,e.deltaRect.left,e.deltaRect.top)}}),interactElement.on("dragstart resizeinertiastart",function(){$contentOverlay.addClass("dragging-active"),$content.addClass("moving"),$titleBar.addClass("moving")}).on("dragend",function(){$contentOverlay.removeClass("dragging-active"),$content.removeClass("moving"),$titleBar.removeClass("moving")}).on("resizestart",
function(){$contentOverlay.addClass("dragging-active"),$resizeControll.addClass("resizing"),$content.addClass("sizing")}).on("resizeend",function(){$contentOverlay.removeClass("dragging-active"),$resizeControll.removeClass("resizing"),$content.removeClass("sizing")}),$element.on("mousedown",function(){/\-resize/.test($$1("html").css("cursor"))&&!$contentOverlay.hasClass("dragging-active")&&$contentOverlay.addClass("dragging-active")}),this.after("show",function(){var viewport=getParent()[0].getBoundingClientRect(),resize=_this.position,width=resize.width,height=resize.height,x=0,y=0,resize=!1;width>viewport.width?(
height=config.proportionalResize?config.minHeight*(viewport.width/config.minWidth):viewport.width*(_this.position.height/_this.position.width),width=viewport.width,resize=!0,_this.position.x&&(x=-_this.position.x)):_this.position.x+width>viewport.width&&(x=-_this.position.x),height>viewport.height?(height=viewport.height,width=config.proportionalResize?config.minWidth*(viewport.height/config.minHeight):viewport.height*(_this.position.width/_this.position.height),resize=!0,_this.position.y&&(y=-_this.position.y)):_this.position.y+height>viewport.height&&(y=-_this.position.y),resize?resizeComponent(width,height,x,y,!0):(x||y)&&moveComponent(x,y)})}).on(
"destroy",function(){$$1(window).off("resize.dynamic-component-"+this.id)}),makeStackable(component,{stackingScope:defaults.stackingScope})}}),define("tpl!lib/calculator/template",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),
'<div class="calcContainer">\n <form action="">\n <input type="text" class="calcDisplay" readonly="readonly"/>\n\n <button type="button" value="%" data-key="%" class="calcFunction calcFirst calcPercentage">&#37;</button>\n <button type="button" value="sqrt" data-key="sqrt" class="calcFunction calcSqrt">&radic;</button>\n <button type="button" value="pow" data-key="pow" class="calcFunction calcPower">x<sup class="letter">y</sup></button>\n <button type="button" value="1/x" data-key="1/x" class="calcFunction calcInverse"><sup class="digit">1</sup>&frasl;<sub>x</sub></button>\n\n <button type="button" value="C" data-key="C" class="calcClear calcFirst">C</button>\n <button type="button" value="CE" data-key="CE" class="calcClear">CE</button>\n <button type="button" value="DEL" data-key="DEL" class="calcClear">DEL</button>\n <button type="button" value="/" data-key="/" class="calcFunction calcDivision">&divide;</button>\n\n <button type="button" value="7" data-key="7" class="calcInput calcDigit calcFirst">7</button>\n <button type="button" value="8" data-key="8" class="calcInput calcDigit">8</button>\n <button type="button" value="9" data-key="9" class="calcInput calcDigit">9</button>\n <button type="button" value="*" data-key="*" class="calcFunction calcMultiplication">&times;</button>\n\n <button type="button" value="4" data-key="4" class="calcFirst calcDigit calcInput">4</button>\n <button type="button" value="5" data-key="5" class="calcInput calcDigit">5</button>\n <button type="button" value="6" data-key="6" class="calcInput calcDigit">6</button>\n <button type="button" value="-" data-key="-" class="calcFunction calcSubtraction">&minus;</button>\n\n <button type="button" value="1" data-key="1" class="calcFirst calcDigit calcInput">1</button>\n <button type="button" value="2" data-key="2" class="calcInput calcDigit">2</button>\n <button type="button" value="3" data-key="3" class="calcInput calcDigit">3</button>\n <button type="button" value="+" data-key="+" class="calcFunction calcSum">+</button>\n\n <button type="button" value="+/-" data-key="+/-" class="calcFirst calcInput calcPlusMinus">&plusmn;</button>\n <button type="button" value="0" data-key="0" class="calcInput calcDigit">0</button>\n <button type="button" value="." data-key="." class="calcInput calcDot">.</button>\n <input type="submit" value="=" data-key="=" class="calcFunction calcSubmit calcEqual"/>\n </form>\n</div>'
})}),define("lib/gamp/gamp",[],function(){"use strict";function gamp(){for(var point,digits,i=arguments.length-1,factor=-1/0;0<=i;)factor=Math.max(factor,(point=arguments[i--],digits=void 0,digits=String(point),(point=digits.indexOf("."))<0?1:Math.pow(10,digits.length-point-1)));return Math.abs(factor)}return gamp.normalize=function(val,factor){return Math.round(factor*Number(val))},gamp.round=function(val,digits){return Number(Number(val).toPrecision(void 0===digits?16:digits))},gamp.add=function(a,b){var factor=gamp(a,b);return gamp.round((gamp.normalize(a,factor)+gamp.normalize(b,factor))/factor)},gamp.sub=function(a,b){var factor=gamp(a,b)
;return gamp.round((gamp.normalize(a,factor)-gamp.normalize(b,factor))/factor)},gamp.mul=function(a,b){var factor=gamp(a,b);return gamp.round(gamp.normalize(a,factor)*gamp.normalize(b,factor)/(factor*factor),15)},gamp.div=function(a,b){var factor=gamp(a,b);return gamp.round(gamp.normalize(a,factor)/gamp.normalize(b,factor))},gamp.pow=function(res,fb){var factor=gamp(res),ta=gamp.normalize(res,factor),res=Math.floor(fb),fb=fb-res,res=res?Math.pow(ta,res)/Math.pow(factor,res):1;return fb&&(res=gamp.div(gamp.mul(res,Math.pow(ta,fb)),Math.pow(factor,fb))),gamp.round(res,15)},gamp}),define("lib/calculator/index",["jquery","lodash","tpl!lib/calculator/template",
"i18n","lib/gamp/gamp"],function($,_,templateTpl,__,gamp){"use strict";var isTouchScreen="ontouchstart"in window||navigator.maxTouchPoints,JSCALC={},calculators={},nextID=0,_defaults={template:templateTpl};function _initButtonHighlight(form,key){var $btn=$(form).find('[data-key="'+key+'"]');$btn.addClass("triggered"),setTimeout(function(){$btn.removeClass("triggered")},160)}return JSCALC.get=function(container){if(!container||1!==container.nodeType)return null;var id,calc,calcs=calculators;for(id in calcs)if(calcs.hasOwnProperty(id)&&container===calcs[id].container){calc=calcs[id];break}return calc||null},JSCALC.getCalcs=function(){var id,calcArray=[],
calcs=calculators;for(id in calcs)calcs.hasOwnProperty(id)&&(calcArray[calcArray.length]=calcs[id]);return calcArray},JSCALC.init=function(elem,config){var calcMod,len,i,calcMods=[],args=!1,newCalcs=[];if("string"==typeof elem&&(elem=document.getElementById(elem)),"object"==typeof elem&&1===elem.nodeType?(elem.className?-1===elem.className.indexOf("calc")&&(elem.className+=" calc"):elem.className="calc",calcMods[0]=elem,args=!0):(elem instanceof $?elem:$(".calc")).each(function(){calcMods.push(this),args=!0}),len=calcMods.length)for(i=0;i<len;i+=1)calcMod=calcMods[i],JSCALC.get(calcMod)||(newCalcs[newCalcs.length]=function(calcMod,forms){var form,display,
operation,lastKeyDown,total=0,clearNext=!0,dot=/\./,lastNum=null,getLastNum=!1,operationPressed=!1,calcObj={},id=nextID;if(forms=_.defaults(forms||{},_defaults),!_.isFunction(forms.template))throw new TypeError("invalid template in configuration");function setFocus(){isTouchScreen||display.focus()}function calculate(val){switch(total&&!isNaN(total)||(total=0),operation){case"+":total=gamp.add(total,val);break;case"-":total=gamp.sub(total,val);break;case"*":total=gamp.mul(total,val);break;case"/":total=gamp.div(total,val);break;case"pow":total=gamp.pow(total,val)}display.value=total}function handleInput(e){var key,code,val,isOperation=!1;switch((
e=e||window.event).type){case"keydown":switch(lastKeyDown=code=e.keyCode,code){case 27:key="C";break;case 8:key="DEL";break;case 46:key="CE";break;case 111:case 191:key="/";break;default:return!0}break;case"keypress":if(13===(code=e.charCode||e.keyCode)||9===code||37===lastKeyDown||39===lastKeyDown)return!0;if(27===code||8===code||46===lastKeyDown)return!1;key=188===lastKeyDown?".":String.fromCharCode(code).toLowerCase();break;case"click":if("INPUT"!==(val=e.target||e.srcElement).tagName&&"BUTTON"!==val.tagName||"button"!==val.type)return!0;key=val.value;break;case"calculatorPressMethod":key=e.calckey;break;default:return!0}switch(val=parseFloat(
display.value),key){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case".":clearNext?(display.value=key,clearNext=!1):"."===key&&dot.test(display.value)||(display.value+=key);break;case"*":case"+":case"-":case"/":case"pow":operationPressed||(0===total||null!==lastNum?total=val:calculate(val),clearNext=getLastNum=!(lastNum=null)),operation=key,isOperation=!0;break;case"C":display.blur(),total=0,lastNum=null,getLastNum=!(clearNext=!(operation="")),display.value="0";break;case"CE":display.value="0",clearNext=!0;break;case"DEL":display.value=display.value.slice(0,display.value.length-1);break;case"+/-":display.value=gamp.mul(val,
-1);break;case"%":val&&(display.value=gamp.div(gamp.mul(total,val),100));break;case"sqrt":display.value=0<=val?Math.sqrt(val):__("Invalid input for function");break;case"a":case"c":case"v":case"x":if(e.ctrlKey)return!0;break;case"1/x":case"r":display.value=val?gamp.div(1,val):__("Cannot divide by zero");break;case"=":form.onsubmit()}return operationPressed=isOperation,setFocus(),isOperation||$(display).trigger("change"),_initButtonHighlight(form,key),!1}return forms=forms.template.call(null),nextID+=1,calcMod.innerHTML+=forms,forms=calcMod.getElementsByTagName("form"),form=forms[forms.length-1],(display=form.getElementsByTagName("input")[0]).setAttribute(
"autocomplete","off"),display.value="0",display.onkeydown=display.onkeypress=form.onclick=handleInput,form.onsubmit=function(){return getLastNum&&(lastNum=parseFloat(display.value)||0,getLastNum=!1),calculate(lastNum),clearNext=!0,setFocus(),$(display).trigger("change"),_initButtonHighlight(form,"="),!1},calcObj.focus=function(){setFocus()},calcObj.press=function(button){var buttons,num,i;if("number"==typeof button)buttons=button.toString().split("");else{if("string"!=typeof button||!button)return this;buttons=[button]}for(num=buttons.length,i=0;i<num;i+=1)handleInput({type:"calculatorPressMethod",calckey:buttons[i]});return this},calcObj.remove=function(){
display.onkeydown=display.onkeypress=form.onclick=null,calcMod.removeChild(form.parentNode),delete calculators[id],calcObj=null},calcObj.container=calcMod,calculators[id]=calcObj}(calcMod,config));return args?newCalcs[0]||null:newCalcs},JSCALC.removeAll=function(){var id,calcs=calculators;for(id in calcs)calcs.hasOwnProperty(id)&&calcs[id].remove()},JSCALC}),define("css!ui/calculator/css/calculator",[],function(){}),define("ui/calculator",["jquery","lodash","i18n","ui/dynamicComponent","lib/calculator/index","css!ui/calculator/css/calculator.css"],function($,_,__,dynamicComponent,calculatorBuild,calculator_css){"use strict"
;$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,dynamicComponent=dynamicComponent&&Object.prototype.hasOwnProperty.call(dynamicComponent,"default")?dynamicComponent.default:dynamicComponent,calculatorBuild=calculatorBuild&&Object.prototype.hasOwnProperty.call(calculatorBuild,"default")?calculatorBuild.default:calculatorBuild;var _defaults={title:__("Calculator"),preserveAspectRatio:!1,width:240,height:360,minWidth:150,minHeight:220,alternativeTemplate:null},computeFontSize=function(width,height){
return(width*(10/240)+height*(10/340))/2},calculator={press:function(key){return this.calc.press(key),this}};function adjustFontSize($text,fontRatio,fontSize){var len,width=$text.width(),height=$text.height(),charWidth=fontSize/fontRatio;$text.is(":input")?width<=(len=$text.val().length)*charWidth&&(fontSize=Math.max(height/4,Math.min(width/len*(fontRatio||1.6),fontSize))):fontSize=computeFontSize(width,height),$text.css("fontSize",fontSize)}return function(config){var calculatorComponent;return config=_.defaults(config||{},_defaults),calculatorComponent=dynamicComponent(calculator).on("rendercontent",function($sample){var $input,self=this,fontRatio={}
;_.isFunction(config.alternativeTemplate)&&(fontRatio.template=config.alternativeTemplate),this.calc=calculatorBuild.init($sample,fontRatio),$input=$sample.find("input.calcDisplay").on("change",function(){adjustFontSize($input,self.fontRatio,self.fontSize)}),this.fontSize=parseFloat($input.css("font-size")),this.fontRatio=(fontRatio=$input,fontRatio=($sample=$("<div />").text("0").css({"font-family":fontRatio.css("font-family"),"font-size":"10px","line-height":"10px",position:"absolute",padding:"0",top:-1e3,left:-1e3}).appendTo("body")).height()/$sample.width(),$sample.remove(),fontRatio)}).after("show",function(){var self=this;_.defer(function(){
var $display=self.getElement().find(".calcDisplay"),strLength=$display.val().length+1;$display.focus(),$display[0].setSelectionRange(strLength,strLength)})}).on("reset",function(){this.calc.press("C")}).on("resize",function(){var $element=this.getElement();$element&&(adjustFontSize($element.find("form"),this.fontRatio,this.fontSize),adjustFontSize($element.find("input.calcDisplay"),this.fontRatio,this.fontSize))}).on("destroy",function(){this.calc&&this.calc.remove()}),_.defer(function(){calculatorComponent.init(config)}),calculatorComponent}}),define("ui/cascadingComboBox",["jquery","lodash","i18n","ui/component","handlebars","lib/dompurify/purify",
"select2"],function($$1,_,__,component,Handlebars,DOMPurify,select2){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default"
)?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<span class="cascading-combo-box">\n ',!(stack1=helpers.if.call(depth0,
depth0&&depth0.comboboxLabel,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+="<label>",stack1=(stack1=helpers.comboboxLabel)||typeof(stack1=depth0&&depth0.comboboxLabel)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</label>"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <select class="" data-id="',stack1=(helper=helpers.comboboxId)||typeof(helper=depth0&&depth0.comboboxId)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-has-search="false">\n <option></option>\n ',!(
stack1=helpers.each.call(depth0,depth0&&depth0.options,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <option value="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-categories="',stack1=(helper=helpers.categories)||typeof(helper=depth0&&depth0.categories)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},
data:data}):helper,buffer+=escapeExpression(stack1)+"</option>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </select>\n</span>"});var selectedValues={};function createCombobox(level,categoriesDefinitions,data){if(!categoriesDefinitions[level])throw"missing category definition on level : "+level;var $comboBox,html,categoryDef=categoriesDefinitions[level];if(categoryDef.id)return data=_.map(data,function(_cat){_cat=_.clone(_cat);return _cat.categories&&(_cat.categories=JSON.stringify(_cat.categories)),_cat}),$comboBox=$$1((data={comboboxId:categoryDef.id,comboboxLabel:categoryDef.label||"",options:data},html=Template(data,html)))
,(categoriesDefinitions[level].$comboBox=$comboBox).on("change",function(){var $subComboBox,subCategories=$comboBox.find(":selected");selectedValues={},_.forEach(categoriesDefinitions,function(category,key){category.$comboBox&&level<key&&(category.$comboBox.remove(),category.$comboBox=null)}),subCategories=subCategories.data("categories"),_.isArray(subCategories)&&subCategories.length&&($subComboBox=createCombobox(level+1,categoriesDefinitions,subCategories))&&(categoriesDefinitions[level+1].$comboBox=$subComboBox,$comboBox.after($subComboBox)),_.forEach(categoriesDefinitions,function(value){var $select;value.$comboBox&&($select=value.$comboBox.find("select"
),selectedValues[value.id]=$select.val())}),$comboBox.trigger("selected.cascading-combobox",[selectedValues])}),$comboBox.find("select").select2({dropdownAutoWidth:!0,placeholder:categoryDef.placeholder||__("select..."),minimumResultsForSearch:-1}),$comboBox}return function(options){return component().on("render",function($container){var $comboBox;_.isArray(options.categoriesDefinitions)&&_.isArray(options.categories)&&($comboBox=createCombobox(0,options.categoriesDefinitions,options.categories),$container.append($comboBox))}).init(options)}}),define("ui/ckeditor/dtdHandler",["lodash"],function(_){"use strict";var X,Y,P,dtd,FO,M,E,T,DFO,dtdMode,dtds,
html5Only,getParentsOf,getChildrenOf;function _normalizeElement(element){if(_.isObject(element)&&!_.isArray(element)){if("nodeName"in element)return element.nodeName.toLowerCase();if(0 in element&&"nodeName"in element[0])return element[0].nodeName.toLowerCase()}else if(_.isString(element))return element.toLowerCase();throw new Error("Unknown element "+element)}return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,dtdMode="html",html5Only=["article","aside","bdi","command","datalist","details","dialog","figcaption","figure","footer","header","keygen","main","mark","meter","nav","output","progress","rp","rt","ruby","section","summary",
"time","wbr","hgroup"],getParentsOf=function(child){var element,parents=[];for(element in child=_normalizeElement(child),dtds[dtdMode])dtds[dtdMode].hasOwnProperty(element)&&0!==element.indexOf("$")&&child in dtds[dtdMode][element]&&parents.push(element);return parents},getChildrenOf=function(parent){return(parent=_normalizeElement(parent))in dtds[dtdMode]?_.keys(dtds[dtdMode][parent]):[]},(dtds={}).html=(X=_.extend,Y=function(source){for(var name,substracted=_.cloneDeep(source),i=1;i<arguments.length;i++)for(name in arguments[i])delete substracted[name];return substracted},dtd={},FO={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,
figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},M={command:1,link:1,meta:1,noscript:1,script:1,style:1},E={},DFO={center:1,dir:1,noframes:1},X(P={},{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1},T={"#":1},{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,
style:1,tt:1}),X(dtd,FO,P,DFO),dtd={a:Y(P,{a:1,button:1}),abbr:P,address:dtd,area:E,article:X({style:1},dtd),aside:X({style:1},dtd),audio:X({source:1,track:1},dtd),b:P,base:E,bdi:P,bdo:P,blockquote:dtd,body:dtd,br:E,button:Y(P,{a:1,button:1}),canvas:P,caption:dtd,cite:P,code:P,col:E,colgroup:{col:1},command:E,datalist:X({option:1},P),dd:dtd,del:P,details:X({summary:1},dtd),dfn:P,div:X({style:1},dtd),dl:{dt:1,dd:1},dt:dtd,em:P,embed:E,fieldset:X({legend:1},dtd),figcaption:dtd,figure:X({figcaption:1},dtd),footer:dtd,form:dtd,h1:P,h2:P,h3:P,h4:P,h5:P,h6:P,head:X({title:1,base:1},M),header:dtd,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:E,html:X({head:1,body:1},
dtd,M),i:P,iframe:T,img:E,input:E,ins:P,kbd:P,keygen:E,label:P,legend:P,li:dtd,link:E,map:dtd,mark:P,menu:X({li:1},dtd),meta:E,meter:Y(P,{meter:1}),nav:dtd,noscript:X({link:1,meta:1,style:1},P),object:X({param:1},P),ol:{li:1},optgroup:{option:1},option:T,output:P,p:P,param:E,pre:P,progress:Y(P,{progress:1}),q:P,rp:P,rt:P,ruby:X({rp:1,rt:1},P),s:P,samp:P,script:T,section:X({style:1},dtd),select:{optgroup:1,option:1},small:P,source:E,span:P,strong:P,style:T,sub:P,summary:P,sup:P,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:dtd,textarea:T,tfoot:{tr:1},th:dtd,thead:{tr:1},time:Y(P,{time:1}),title:T,tr:{th:1,td:1},track:E,u:P,ul:{li:1
},var:P,video:X({source:1,track:1},dtd),wbr:E,acronym:P,applet:X({param:1},dtd),basefont:E,big:P,center:dtd,dialog:E,dir:{li:1},font:P,isindex:E,noframes:dtd,strike:P,tt:P},X(dtd,{$block:X({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},FO,DFO),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,
section:1,table:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:P,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:X({body:1,head:1,html:1},dtd.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,
samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,var:1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),dtd),dtds.qti=function(){for(var element,listCnt,child,actCnt,action,tmp,intersection,actions=["remove","add"],actLnt=actions.length,overrides={pre:{add:[],remove:["img","object","big","small","sub",
"sup"]},table:{remove:["col"]}},qtiDtd=_.cloneDeep(dtds.html),h5Len=html5Only.length;h5Len--;)delete qtiDtd[html5Only[h5Len]];for(element in qtiDtd)qtiDtd.hasOwnProperty(element)&&(intersection=_.intersection(_.keys(qtiDtd[element]),html5Only)).length&&(overrides[element]||(overrides[element]={remove:[]}),overrides[element].remove=overrides[element].remove.concat(intersection));for(element in overrides)if(overrides.hasOwnProperty(element)&&qtiDtd.hasOwnProperty(element))for(actCnt=0;actCnt<actLnt;actCnt++)if((action=actions[actCnt])in overrides[element])if(listCnt=overrides[element][action].length,"remove"!==action||"all"!==overrides[element][action])for(
;listCnt--;)child=overrides[element][action][listCnt],tmp=_.cloneDeep(qtiDtd[element]),"remove"===action?(delete tmp[child],qtiDtd[element]=tmp):"add"===action&&void 0!==qtiDtd[child]&&(tmp[child]=1,qtiDtd[element]=tmp[child]);else qtiDtd[element]={};return qtiDtd}(),{getDtd:function(){return dtds[dtdMode]},getChildrenOf:getChildrenOf,getParentsOf:getParentsOf,isChildOf:function(child,of){return _.contains(getChildrenOf(of),_normalizeElement(child))},isParentOf:function(parent,of){return _.contains(getParentsOf(of),_normalizeElement(parent))},getMode:function(){return dtdMode},setMode:function(mode){if("xhtml"===mode.toLowerCase()&&(mode="html"),!_.contains(
["html","qti"],mode))throw new Error("Unknown mode "+mode);return dtdMode=mode,this}}}),define("ui/ckeditor/ckConfigurator",["jquery","lodash","ui/ckeditor/dtdHandler","ckeditor"],function($,_,dtdHandler,ckeditor){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,dtdHandler=dtdHandler&&Object.prototype.hasOwnProperty.call(dtdHandler,"default")?dtdHandler.default:dtdHandler;var originalConfig=_.cloneDeep(window.CKEDITOR.config);var documentLang,toolbarPresets,ckConfig,_switchDtd,lang=(documentLang=window.document.documentElement.getAttribute("lang")
)&&documentLang.split("-")[0];return ckConfig={disableAutoInline:!0,entities:!(toolbarPresets={inline:[{name:"basicstyles",items:["Bold","Italic","Subscript","Superscript"]},{name:"insert",items:["SpecialChar","TaoQtiTable","TaoTooltip"]},{name:"links",items:["Link"]}],flow:[{name:"basicstyles",items:["Bold","Italic","Subscript","Superscript"]},{name:"insert",items:["SpecialChar","TaoQtiTable","TaoTooltip"]},{name:"links",items:["Link"]}],block:[{name:"basicstyles",items:["Bold","Italic","Subscript","Superscript"]},{name:"insert",items:["Image","SpecialChar","TaoQtiTable","TaoTooltip"]},{name:"links",items:["Link"]},{name:"styles",items:["Format"]},{
name:"paragraph",items:["NumberedList","BulletedList","-","Blockquote","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"]}],extendedText:[{name:"basicstyles",items:["Bold","Italic","Underline","Subscript","Superscript"]},{name:"insert",items:["SpecialChar","TaoTab","TaoUnTab"]},{name:"paragraph",items:["NumberedList","BulletedList"]},{name:"clipboard",items:["Cut","Copy","Paste"]},{name:"history",items:["Undo","Redo"]},{name:"textcolor",items:["TextColor"]},{name:"font",items:["Font"]},{name:"fontsize",items:["FontSize"]}],htmlField:[{name:"basicstyles",items:["Bold","Italic","Strike","Underline"]},{name:"exponent",items:["Subscript","Superscript"]
},{name:"fontstyles",items:["TextColor","Font","FontSize"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"]},{name:"indent",items:["TaoTab","TaoUnTab"]},{name:"history",items:["Undo","Redo"]},{name:"list",items:["NumberedList","BulletedList"]},{name:"insert",items:["Link","SpecialChar"]}]}),entities_processNumerical:!0,autoParagraph:!1,extraPlugins:"confighelper",floatSpaceDockedOffsetY:0,forcePasteAsPlainText:!0,skin:"tao",language:lang,removePlugins:"",linkShowAdvancedTab:!1,justifyClasses:["txt-lft","txt-ctr","txt-rgt","txt-jty"],linkShowTargetTab:!1,coreStyles_underline:{element:"span",attributes:{
class:"txt-underline"}},coreStyles_highlight:{element:"span",attributes:{class:"txt-highlight"}},specialChars:["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";",["&lt;","Less than"],["&le;","Less than or equal to"],"&asymp;","=","&ne;",["&ge;","Greater than or equal to"],["&gt;","Greater than"],"?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;",
"&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;",
"&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],disableNativeTableHandles:!0},(_switchDtd=function(dtdMode){dtdHandler.setMode(dtdMode),window.CKEDITOR.dtd=dtdHandler.getDtd()})("qti"),{getConfig:function(editor,toolbarType,config){var toolbar,
toolbars,dtdMode,positionedPlugins={};if("reset"===toolbarType)return originalConfig;for(toolbar in(config=config||{}).resourcemgr=config.resourcemgr||{},toolbars=_.clone(toolbarPresets,!0),"qti"!==(dtdMode=config.dtdMode||"html")&&0!==toolbarType.indexOf("qti")||(toolbarType=toolbarType.slice(3).toLowerCase(),ckConfig.allowedContent=!0,ckConfig.autoParagraph=!1,dtdMode="qti"),"qti"===dtdMode&&(config.qtiMedia&&(positionedPlugins.TaoQtiMedia={insertAfter:"SpecialChar"}),config.qtiImage&&(positionedPlugins.TaoQtiImage={insertAfter:"SpecialChar"}),config.qtiInclude&&(positionedPlugins.TaoQtiInclude={insertAfter:"SpecialChar"}),config.underline&&(
positionedPlugins.TaoUnderline={insertAfter:"Italic"}),config.highlight&&(config.underline?positionedPlugins.TaoHighlight={insertAfter:"TaoUnderline"}:positionedPlugins.TaoHighlight={insertAfter:"Italic"}),config.mathJax&&(positionedPlugins.TaoQtiMaths={insertAfter:"SpecialChar"})),config.toolbar&&(toolbars[toolbarType]=_.clone(config.toolbar)),toolbars)toolbars.hasOwnProperty(toolbar)&&(ckConfig["toolbar_"+toolbar]=toolbars[toolbar]);return void 0!==toolbars[toolbarType]&&(ckConfig.toolbar=toolbars[toolbarType]),void 0!==config.positionedPlugins&&(config.positionedPlugins={}),!1!==config.positionedPlugins&&(positionedPlugins=_.assign(positionedPlugins,
_.clone(config.positionedPlugins)),function(ckConfig,positionedPlugins){var itCnt,itLen,method,plugin,index,separator,idxItem,numToReplace,stringVal,i,tbCnt=ckConfig.toolbar.length,stringVals={};for(positionedPlugins=positionedPlugins||{},ckConfig.extraPlugins=function(positionedPluginArr,extraPluginArr){for(var pluginIndex=positionedPluginArr.length,extraPluginArr=extraPluginArr.split(",");pluginIndex--;)positionedPluginArr[pluginIndex]=positionedPluginArr[pluginIndex].toLowerCase();return(extraPluginArr=_.compact(_.union(extraPluginArr,positionedPluginArr))).join(",")}(_.keys(positionedPlugins),ckConfig.extraPlugins),i=0;i<tbCnt;i++)_.isString(
ckConfig.toolbar[i])&&(stringVals[i]=ckConfig.toolbar[i],ckConfig.toolbar[i]={items:[]});for(plugin in positionedPlugins){for(method=function(pluginProps){for(var propIndex=pluginProps.length;propIndex--;)if(0===pluginProps[propIndex].indexOf("insert")||"replace"===pluginProps[propIndex])return pluginProps[propIndex];throw new Error("Missing key insertBefore | insertAfter | replace in positionedPlugins")}(_.keys(positionedPlugins[plugin])),idxItem=positionedPlugins[plugin][method].toLowerCase(),separator=positionedPlugins[plugin].separator||!1,index=-1;tbCnt--;){for(itLen=ckConfig.toolbar[tbCnt].items.length,itCnt=0;itCnt<itLen;itCnt++)if(
ckConfig.toolbar[tbCnt].items[itCnt].toLowerCase()===idxItem){index=itCnt;break}if(-1<index){numToReplace="replace"===method?1:0,"insertAfter"===method&&index++,separator&&(ckConfig.toolbar[tbCnt].items.splice(index,numToReplace,"-"),index++),ckConfig.toolbar[tbCnt].items.splice(index,numToReplace,plugin);break}}tbCnt=ckConfig.toolbar.length}for(stringVal in stringVals)ckConfig.toolbar[stringVal]=stringVals[stringVal]}(ckConfig,positionedPlugins)),config=_.assign({},_.cloneDeep(originalConfig),ckConfig,_.omit(config,["qtiImage","qtiInclude","underline","highlight","mathJax","toolbar","positionedPlugins"])),editor.on("focus",function(){_switchDtd(dtdMode)}),
editor.on("instanceReady",function(e){$(e.editor.element.$).removeAttr("title")}),window.CKEDITOR.on("dialogDefinition",function(e){var linkTypes,wanted,linkIndex;if("link"===e.data.name){for(linkIndex=(linkTypes=e.data.definition.getContents("info").get("linkType").items).length;linkIndex--;)"anchor"===linkTypes[linkIndex][1]||(wanted=linkIndex);linkTypes.splice(wanted+1,1)}}),config}}}),define("css!ui/class/css/selector",[],function(){}),define("ui/class/selector",["jquery","lodash","i18n","ui/component","handlebars","lib/dompurify/purify","css!ui/class/css/selector.css"],function($$1,_,__,component,Handlebars,DOMPurify,selector_css){"use strict"
;function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",
wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),
hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="class-selector">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.classUri,{hash:{},
inverse:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+='\n <a href="#" class="selected truncate empty">',stack1=(stack1=helpers.placeholder)||typeof(stack1=depth0&&depth0.placeholder)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</a>\n "},data),fn:this.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <a href="#" class="selected truncate" data-uri="',stack1=(helper=helpers.classUri)||typeof(helper=depth0&&depth0.classUri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" title="',stack1=(
helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</a>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="options folded">\n <ul>',!(stack1=(helper=helpers.tree)||typeof(helper=depth0&&depth0.tree)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</ul>\n </div>\n</div>\n"});function selectorTpl(
data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<li>\n <a href="#" data-uri="',buffer+=escapeExpression(stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper)+'" title="',buffer+=escapeExpression(stack1=(helper=helpers.label)||typeof(
helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)+'">',buffer+=escapeExpression(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)+"</a>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.childList,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+="\n <ul>\n ",!(stack1=(stack1=helpers.childList)||typeof(stack1=depth0&&depth0.childList)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n "},data),
data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</li>\n\n"});var defaultConfig={classes:[],placeholder:__("Select a class")};return function($container,config){var $selected,$options,classList={},buildTree=function(classes){function nodeToListItem(acc,node){var item,html;return node.uri&&node.label&&(item=_.clone(node),classList[item.uri]=item,node.children&&node.children.length&&(item.childList=_.reduce(node.children,nodeToListItem,"")),acc+=html=Template$1(item,html)),acc}return _.reduce(classes,nodeToListItem,"")},isOutsideOfThisContainer=function(e){$options[0].contains(e.target)||$selected[0]===e.target||$options[0].classList.contains("folded")||(
$selected.toggleClass("open"),$options.toggleClass("folded"))},classSelector=component({setValue:function(uri){return this.config.classUri===uri||_.isUndefined(classList[uri])||(this.config.classUri=uri,this.is("rendered")&&$selected.length&&($selected.text(classList[uri].label).attr({title:classList[uri].label,"data-uri":uri}).data("uri",uri).removeClass("empty"),this.trigger("change",uri,classList[uri]))),this},getValue:function(){return this.config.classUri},getClassNode:function(){var node=null;return this.config.classUri&&classList[this.config.classUri]&&(node=classList[this.config.classUri]),node},empty:function(){return this.is("rendered"
)&&$selected.length&&this.config.classUri&&(this.config=_.omit(this.config,"classUri"),$selected.text(this.config.placeholder).removeAttr("title").data("uri",null).removeAttr("data-uri").addClass("empty"),this.trigger("change")),this},hasNode:function(uri){return!(!uri||!classList)&&(uri=_.isString(uri)?uri:uri.uri,_.has(classList,uri))},removeNode:function(node){var uri;return!!this.hasNode(node)&&((uri=_.isString(node)?node:node.uri)===this.config.classUri&&this.empty(),classList=_.omit(classList,uri),this.is("rendered")&&$$1('[data-uri="'+uri+'"]',this.getElement()).parent("li").remove(),!this.hasNode(node))},addNode:function(subTree,parentUri){
var $parentNode;return this.is("rendered")&&subTree&&!this.hasNode(subTree)&&(subTree=buildTree([subTree]),parentUri&&($parentNode=$$1('[data-uri="'+parentUri+'"]',$options)),$parentNode&&$parentNode.length||($parentNode=$$1("[data-uri]:first-child",$options)),$parentNode.parent("li").children("ul").length?$parentNode.parent("li").children("ul").append(subTree):$parentNode.parent("li").append("<ul>"+subTree+"</ul>")),this},updateNode:function(node){return node&&node.uri&&this.hasNode(node)&&classList[node.uri].label!==node.label&&(classList[node.uri].label=node.label,this.is("rendered")&&$$1('[data-uri="'+node.uri+'"]',this.getElement()).attr("title",
node.label).text(node.label)),this},updateNodes:function(nodes){var self=this;return _.forEach(nodes,function(node){node.children&&self.updateNodes(node.children),self.updateNode(node)}),this}},defaultConfig).setTemplate(selectorTpl).on("init",function(){this.config.tree=buildTree(this.config.classes),this.config.classUri&&classList[this.config.classUri]&&(this.config.label=classList[this.config.classUri].label),this.render($container)}).on("render",function(){var self=this,$component=this.getElement();$selected=$$1(".selected",$component),$options=$$1(".options",$component),window.addEventListener("click",isOutsideOfThisContainer),$selected.on("click",
function(e){e.preventDefault(),$selected.toggleClass("open"),$options.toggleClass("folded")}),$options.on("click","a",function(e){e.preventDefault(),self.setValue($$1(this).data("uri")),$selected.toggleClass("open"),$options.toggleClass("folded")})}).on("destroy",function(){classList={},window.removeEventListener("click",isOutsideOfThisContainer)});return _.defer(function(){classSelector.init(config)}),classSelector}}),define("ui/component/containable",["lodash","ui/component/placeable"],function(_,makePlaceable){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,makePlaceable=makePlaceable&&Object.prototype.hasOwnProperty.call(
makePlaceable,"default")?makePlaceable.default:makePlaceable;var ns=".makeContainable",defaultConfig={},containableComponent={containIn:function($container,options){var self=this;return self.off("move"+ns).on("move"+ns,function(){self.off("move"+ns),self._containComponent($container,options),self.containIn($container,options)}),self},_containComponent:function(paddingBottom,paddingRight){var paddingLeft=paddingRight||{},position=this.getPosition(),size=this.getOuterSize(),containerSize_width=paddingBottom.innerWidth(),containerSize_height=paddingBottom.innerHeight(),newX=position.x,newY=position.y,paddingTop=paddingLeft.paddingTop||paddingLeft.padding||0,
paddingRight=paddingLeft.paddingRight||paddingLeft.padding||0,paddingBottom=paddingLeft.paddingBottom||paddingLeft.padding||0,paddingLeft=paddingLeft.paddingLeft||paddingLeft.padding||0;position.x<paddingLeft?newX=0+paddingLeft:position.x+size.width>containerSize_width-paddingRight&&(newX=containerSize_width-size.width-paddingRight),position.y<paddingTop?newY=0+paddingTop:position.y+size.height>containerSize_height-paddingBottom&&(newY=containerSize_height-size.height-paddingBottom),newX===position.x&&newY===position.y||(this.moveTo(newX,newY),this.trigger("contained",newX,newY))}};return function(component,config){return _.assign(component,
containableComponent),makePlaceable.isPlaceable(component)||makePlaceable(component),component.off(ns).on("init"+ns,function(){_.defaults(this.config,config||{},defaultConfig)})}}),define("ui/component/draggable",["lodash","interact","ui/component/placeable"],function(_,interact,makePlaceable){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,interact=interact&&Object.prototype.hasOwnProperty.call(interact,"default")?interact.default:interact,makePlaceable=makePlaceable&&Object.prototype.hasOwnProperty.call(makePlaceable,"default")?makePlaceable.default:makePlaceable,function(component,config){
return makePlaceable.isPlaceable(component)||makePlaceable(component),component.off(".makeDraggable").on("init.makeDraggable",function(){_.defaults(this.config,config||{})}).on("render.makeDraggable",function(){var self=this,$element=this.getElement(),element=$element[0],rootNode=document.querySelector("html");$element.css("touch-action","none"),this.config.dragRestriction||(this.config.dragRestriction=this.getContainer()[0]),interact(element).draggable({autoScroll:!0,restrict:{restriction:this.config.dragRestriction,elementRect:{left:0,right:1,top:0,bottom:1}},onmove:function(yOffset){var xOffset=Math.round(yOffset.dx),yOffset=Math.round(yOffset.dy)
;self.moveBy(xOffset,yOffset),self.trigger("dragmove",xOffset,yOffset)}}).on("dragstart",function(){self.setState("moving",!0),self.trigger("dragstart")}).on("dragend",function(){self.setState("moving",!1),self.trigger("dragend")}),$element.off(".makeDraggable").on("click.makeDraggable",function(){_.delay(function(){self.is("sizing")||self.is("moving")||!rootNode||(rootNode.style.cursor="default")},25)})})}}),define("ui/component/resizable",["lodash","interact","ui/component/placeable"],function(_,interact,makePlaceable){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,interact=interact&&Object.prototype.hasOwnProperty.call(
interact,"default")?interact.default:interact,makePlaceable=makePlaceable&&Object.prototype.hasOwnProperty.call(makePlaceable,"default")?makePlaceable.default:makePlaceable;var defaultConfig={minWidth:50,minHeight:50,edges:{left:!0,right:!0,bottom:!0,top:!0}},resizableComponent={_getCappedValue:function(capped,min,max){return _.isUndefined(max)||_.isNull(max)||(capped=Math.min(capped,max)),_.isUndefined(min)||_.isNull(min)||(capped=Math.max(capped,min)),capped},resizeTo:function(newWidth,newHeight,resizeFromLeft,resizeFromTop){var currentSize,newX,newY,position,shouldMove=!1;return this.is("rendered")&&!this.is("disabled")&&(this.trigger("beforeresize",
newWidth,newHeight,resizeFromLeft,resizeFromTop),currentSize=this.getSize(),newWidth=this._getCappedValue(newWidth,this.config.minWidth,this.config.maxWidth),newHeight=this._getCappedValue(newHeight,this.config.minHeight,this.config.maxHeight),position=this.getPosition(),resizeFromLeft&&newWidth!==currentSize.width&&(newX=position.x+currentSize.width-newWidth,shouldMove=!0),resizeFromTop&&newHeight!==currentSize.height&&(newY=position.y+currentSize.height-newHeight,shouldMove=!0),shouldMove&&this.moveTo(newX||position.x,newY||position.y),this.setSize(newWidth,newHeight),position=this.getPosition(),this.trigger("resize",newWidth,newHeight,resizeFromLeft,
resizeFromTop,position.x,position.y)),this}};return function(component,config){return _.assign(component,resizableComponent),makePlaceable.isPlaceable(component)||makePlaceable(component),component.off(".makeResizable").on("init.makeResizable",function(){_.defaults(this.config,config||{},defaultConfig)}).on("render.makeResizable",function(){var self=this,$element=this.getElement(),element=$element[0];$element.css("touch-action","none"),this.config.resizeRestriction||(this.config.resizeRestriction=this.getContainer()[0]),interact(element).resizable({autoScroll:!0,restrict:{restriction:this.config.resizeRestriction},edges:this.config.edges}).on("resizemove",
function(event){self.resizeTo(event.rect.width,event.rect.height,event.edges.left,event.edges.top)}).on("resizestart",function(){self.setState("sizing",!0),self.trigger("resizestart")}).on("resizeend",function(){self.setState("sizing",!1),self.trigger("resizeend")})})}}),define("css!ui/component/css/windowComponent",[],function(){}),define("ui/component/windowed",["lodash","i18n","jquery","ui/component/placeable","handlebars","lib/dompurify/purify","css!ui/component/css/windowComponent.css"],function(_,__,$$1,makePlaceable,Handlebars,DOMPurify,windowComponent_css){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,makePlaceable=makePlaceable&&Object.prototype.hasOwnProperty.call(makePlaceable,"default")?makePlaceable.default:makePlaceable,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(
Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<div class="window-component">\n <div class="window-component-title-bar">\n <div class="window-component-title">',buffer+=(0,this.escapeExpression)((helper=helper.windowTitle)||"function"==typeof(helper=depth0&&depth0.windowTitle
)?helper.call(depth0,{hash:{},data:data}):helper)+'</div>\n <div class="window-component-controls"> </div>\n </div>\n <div class="window-component-body"></div>\n</div>\n'});function windowTpl(data,html,asString){html=Template(data,html);return html}var eventNs=".windowed",cssNs=".window-component",defaultConfig={hasCloser:!0,hasBin:!1},controlsPresets={bin:{id:"bin",order:100,icon:"bin",description:__("Delete"),event:"delete"},closer:{id:"closer",order:200,icon:"result-nok",description:__("Close"),event:"close",onclick:function(){this.hide()}}},windowedComponentAPI={getControls:function(){return this.getElement().find(cssNs+"-controls")},
getTitle:function(){return this.getElement().find(cssNs+"-title")},getBody:function(){return this.getElement().find(cssNs+"-body")},addControl:function(controlOptions){if(!_.isString(controlOptions.id)||_.isEmpty(controlOptions.id))throw new Error("control must have an id");if(!_.isString(controlOptions.icon)||_.isEmpty(controlOptions.icon))throw new Error("control must have an icon");if(!(_.isFunction(controlOptions.onclick)||_.isString(controlOptions.event)&&""!==controlOptions.event.trim()))throw new Error("control must have valid onclick or event parameter");return _.isArray(this._windowControls)||(this._windowControls=[]),this._windowControls.push(
controlOptions),this},addPresets:function(){return this.config.hasCloser&&this.addControl(controlsPresets.closer),this.config.hasBin&&this.addControl(controlsPresets.bin),this},_renderControls:function(){var self=this,$controlsArea=this.getControls(),controlsCallbacks={},controlsEvents={};return _.isArray(this._windowControls)&&($controlsArea.empty(),this._windowControls.sort(function(a,b){return(a.order||0)-(b.order||0)}),this._windowControls.forEach(function(control){var $control=$$1("<button>",{class:"icon-"+control.icon,"data-control":control.id,title:control.description});$controlsArea.append($control),controlsCallbacks[control.id]=control.onclick,
controlsEvents[control.id]=control.event}),$controlsArea.off("click"+eventNs).on("click"+eventNs,function(e){var controlId=$$1(e.target).data("control");e.stopPropagation(),_.isFunction(controlsCallbacks[controlId])&&controlsCallbacks[controlId].call(self),_.isString(controlsEvents[controlId])&&self.trigger(controlsEvents[controlId])})),this}};return function(component,config){return _.assign(component,windowedComponentAPI),makePlaceable.isPlaceable(component)||makePlaceable(component),component.setTemplate(windowTpl).off(eventNs).on("init"+eventNs,function(){_.defaults(this.config,config||{},defaultConfig),this.addPresets()}).on("render"+eventNs,function(){
this._renderControls()}).on("destroy"+eventNs,function(){this.getControls().off(eventNs)})}}),define("ui/container",["jquery","lodash"],function($,_){"use strict";function getCssClass(selector){var parts=[];return _.forEach(selector.split(" "),function(elem){elem&&"."===elem.charAt(0)&&parts.push(elem.substr(1))}),parts.join(" ")}return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(containerSelector){var $container,containerCls;return{init:function(cssScope){if(!cssScope||!_.isString(cssScope))throw new TypeError(
"You must provide a CSS scope for the container manager!");return containerCls=getCssClass(cssScope),$container=$(containerSelector=cssScope),this},destroy:function(){return $container=null,this},hasScope:function(scope){return!(!$container||!$container.is(scope))},changeScope:function(scope){return $container&&($container.removeClass().addClass(containerCls),scope&&$container.addClass(getCssClass(scope))),this},find:function(selector){return $container.find(selector)},write:function(content){return $container.html(content),this},getData:function(){return $container.data()},setData:function(data){return $container.removeData().data(data),this},
removeData:function(){return $container.removeData(),this},hasValue:function(name){var data=this.getData();return void 0!==(data&&data[name])},getValue:function(name){var data=this.getData();return data&&data[name]},setValue:function(name,value){return $container.data(name,value),this},getElement:function(){return $container},getSelector:function(){return containerSelector}}.init(containerSelector||".container")}}),define("css!ui/contextualPopup/css/contextualPopup",[],function(){}),define("ui/contextualPopup",["jquery","lodash","handlebars","i18n","lib/dompurify/purify","css!ui/contextualPopup/css/contextualPopup.css"],function($$1,_,Handlebars,__,DOMPurify
,contextualPopup_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var stack1,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){return'<button class="btn btn-info small done">done</button>'}function program4(depth0,helper){var options,
buffer="";return buffer+='<a href="#" class="btn cancel" title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"cancel",options):helperMissing.call(depth0,"__","cancel",options)))+'">cancel</a>'}return buffer+='<div class="contextual-popup" style="top:'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.popup)||!1===stack1?stack1:stack1.top)?stack1.apply(depth0):stack1)+"px; left:"+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.popup)||!1===stack1?stack1:stack1.left)?stack1.apply(depth0):stack1
)+'px">\n <div class="arrow" style="left:'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.arrow)||!1===stack1?stack1:stack1.left)?stack1.apply(depth0):stack1)+'px"></div>\n <div class="arrow-cover" style="left:'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.arrow)||!1===stack1?stack1:stack1.leftCover)?stack1.apply(depth0):stack1)+'px"></div>\n <div class="popup-content">',!(stack1=(helper=helpers.content)||"function"==typeof(helper=depth0&&depth0.content)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='</div>\n <div class="footer">\n ',!(
stack1=helpers.if.call(depth0,depth0&&depth0.controls,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.controls)||!1===stack1?stack1:stack1.done,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.controls)||!1===stack1?stack1:stack1.cancel,{hash:{},inverse:self.noop,fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n "},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n</div>"});var _ns=".contextual-popup",_defaults={controls:!1,style:{},position:"bottom",callbacks:{}};function _hide($element){$element.hide(),$element.trigger("hide"+_ns)}function _done($element){_hide($element),$element.trigger("done"+_ns)}function _cancel($element){_hide($element),$element.trigger("cancel"+_ns)}var _styleDefaults={popupWidth:500,arrowWidth:6,marginTop:15,marginLeft:15};function _computePosition(offset,_container_w){var $contextualPopup=offset.children(".contextual-popup"),options=offset.data("contextual-popup-options"),_anchor_h=_.defaults(options.style||{},_styleDefaults),
_popup=_anchor_h.popupWidth,popupHeight=$contextualPopup.outerHeight(),arrowWidth=_anchor_h.arrowWidth,marginTop=_anchor_h.marginTop,marginLeft=_anchor_h.marginLeft,_anchor_left=(offset.offset().top,offset.offset().left),_anchor_w=offset.innerWidth(),_anchor_h=offset.innerHeight(),offset=(_container_w.offset().top,_container_w.offset().left),_container_w=_container_w.innerWidth(),_popup={top:_anchor_h+marginTop,left:-_popup/2+_anchor_w/2,w:_popup};switch(options.position){case"top":_popup.top=-marginTop-popupHeight,$contextualPopup.removeClass("bottom").addClass("top");break;case"bottom":_popup.top=_anchor_h+marginTop,$contextualPopup.removeClass("top"
).addClass("bottom")}offset=_anchor_left-offset;return offset+marginLeft+_anchor_w/2<_popup.w/2?_popup.left=-offset+marginLeft:_container_w-(offset+_anchor_w/2+marginLeft)<_popup.w/2&&(_popup.left=-offset+_container_w-marginLeft-_popup.w),{popup:_popup,arrow:{left:-_popup.left+_anchor_w/2-arrowWidth,leftCover:-_popup.left+_anchor_w/2-arrowWidth-6}}}return function($anchor,$container,options){var destroyed=!1;options=_.defaults(options,_defaults),$anchor.data("contextual-popup-options",options);var data=_computePosition($anchor,$container),$element=$$1((data={popup:data.popup,arrow:data.arrow,controls:options.controls},popup=Template(data,popup)))
;function setContent(content){(content instanceof $$1||_.isString(content))&&$element.find(".popup-content").empty().append(content)}function runCallback(name){var result=!0;return options.callbacks[name]&&_.isFunction(options.callbacks[name])&&(result=options.callbacks[name]()),result}$anchor.find(".contextual-popup").remove(),$element.addClass(options.position),$element.css("width",options.style.popupWidth),$anchor.append($element),$element.off(_ns).on("click"+_ns,".done",function(){runCallback("beforeDone")&&_done($element)}).on("click"+_ns,".cancel",function(){runCallback("beforeCancel")&&_cancel($element)}),options.content&&setContent(options.content)
;var popup={getPopup:function(){return $element},setContent:setContent,reposition:function(){var pos=_computePosition($anchor,$container);$element.css({top:pos.popup.top,left:pos.popup.left}),$element.children(".arrow").css("left",pos.arrow.left),$element.children(".arrow-cover").css("left",pos.arrow.leftCover)},done:function(){_done($element)},cancel:function(){_cancel($element)},hide:function(){_hide($element)},show:function(){$element.show(),$element.trigger("show"+_ns)},destroy:function(){destroyed||(runCallback("beforeDestroy"),destroyed=!0,$element.remove(),$element.trigger("destroy"+_ns))},isVisible:function(){return $element.is(":visible")}}
;return popup.reposition(),popup}}),define("css!ui/dashboard/css/dashboard",[],function(){}),define("ui/dashboard",["i18n","lodash","ui/component","handlebars","lib/dompurify/purify","css!ui/dashboard/css/dashboard.css"],function(__,_,component,Handlebars,DOMPurify,dashboard_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",
function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),
hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",
escapeExpression=this.escapeExpression;return buffer+='<div class="readiness-dashboard-container">\n <h3 class="dashboard-header">',buffer+=escapeExpression((helper=helpers.headerText)||"function"==typeof(helper=depth0&&depth0.headerText)?helper.call(depth0,{hash:{},data:data}):helper)+'</h3>\n <section>\n <div class="dashboard-loading" style="display: none;">\n <p class="dashboard-text">\n ',buffer+=escapeExpression((helper=helpers.loadingText)||"function"==typeof(helper=depth0&&depth0.loadingText)?helper.call(depth0,{hash:{},data:data}):helper
)+'\n </p>\n </div>\n <div class="dashboard-metrics_container"></div>\n <div class="dashboard-warning" style="display: none;">\n <p class="dashboard-text">\n ',buffer+=escapeExpression((helper=helpers.warningText)||"function"==typeof(helper=depth0&&depth0.warningText)?helper.call(depth0,{hash:{},data:data}):helper)+"\n </p>\n </div>\n </section>\n</div>\n"});function dashboardTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials
,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){var stack1,buffer="";return buffer+='\n <li class="dashboard-metric_info-item">',stack1=(stack1=helpers.text)||typeof(stack1=depth0&&depth0.text)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</li>\n "}return buffer+='<ul class="dashboard-metrics_list ',stack1=(stack1=helpers.layoutType)||typeof(stack1=depth0&&depth0.layoutType)===functionType?stack1.call(depth0,{
hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.data,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <li class="dashboard-metric">\n <h4 class="dashboard-metric_title">',stack1=(helper=helpers.title)||typeof(helper=depth0&&depth0.title)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'</h4>\n <div class="dashboard-metric_score-container">\n <div class="dashboard-metric_score score-',stack1=(helper=helpers.state)||typeof(
helper=depth0&&depth0.state)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" style="width: ',stack1=(helper=helpers.score)||typeof(helper=depth0&&depth0.score)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'%;"></div>\n </div>\n <ul class="dashboard-metric_info">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.info,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n </li>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n</ul>\n"});var defaults={headerText:__("Outlook on the next Synchronization"),loadingText:__("Creating report ..."),warningText:__("Please contact your system administrator."),loading:!1,data:[],scoreState:{error:32,warn:65},layoutType:"tiles"};return function(config){return component({clearDashboard:function(){this.getElement().find(".dashboard-metrics_container").empty(),this.toggleWarningMessage(!1)},mapScoreToState:function(score){var scoreState=this.config.scoreState;return score>scoreState.warn?"success":score>scoreState.error?"warn":"error"},renderMetrics:function($metricsList){var $listContainer=this.getElement().find(
".dashboard-metrics_container"),self=this;$metricsList&&$metricsList.length&&(_.forEach($metricsList,function(item){item.state=self.mapScoreToState(item.score)}),this.toggleWarningMessage(_.some($metricsList,function(item){return item.score<=self.config.scoreState.warn})),$metricsList=$(function(data,html){return html=Template$1(data,html)}({data:$metricsList,layoutType:self.config.layoutType})),$listContainer.append($metricsList))},toggleLoadingBar:function(display){this.getElement().find(".dashboard-loading").toggle(display)},toggleWarningMessage:function(display){this.getElement().find(".dashboard-warning").toggle(display)}},defaults).setTemplate(
dashboardTpl).on("init",function(){this.setState("loading",this.config.loading)}).on("render",function(){this.is("loading")?this.toggleLoadingBar(!0):this.renderMetrics(this.config.data)}).init(config)}}),define("css!ui/datalist/css/datalist",[],function(){}),define("ui/datalist",["jquery","lodash","i18n","ui/component","handlebars","lib/dompurify/purify","css!ui/datalist/css/datalist.css"],function($$1,_,__,component,Handlebars,DOMPurify,datalist_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program3(depth0,data){return" hidden"}function program6(depth0,data){var stack1,helper,buffer="";return buffer+='\n <button class="btn-info small ',!(
stack1=helpers.if.call(depth0,depth0&&depth0.massAction,{hash:{},inverse:self.noop,fn:self.program(7,program7,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" data-control="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},inverse:self.noop,fn:self.program(9,program9,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(11,program11,data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n ",stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </button>\n "}function program7(depth0,data){return" mass-action hidden"}function program9(depth0,data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program11(depth0,data){var stack1,buffer="";return buffer+='<span class="icon icon-',
stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'}function program13(depth0,data){return"\n <col/>\n "}return buffer+='<div class="datalist">\n <h1 ',!(stack1=helpers.unless.call(depth0,depth0&&depth0.title,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){return'class="hidden"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">",stack1=(helper=helpers.title)||typeof(helper=depth0&&depth0.title)===functionType?helper.call(depth0,{hash:{},data:data}):helper,
buffer+=escapeExpression(stack1)+'</h1>\n <h2>\n <span class="empty-list',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textEmpty,{hash:{},inverse:self.noop,fn:self.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">',stack1=(helper=helpers.textEmpty)||typeof(helper=depth0&&depth0.textEmpty)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'</span>\n <span class="available-list',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textNumber,{hash:{},inverse:self.noop,fn:self.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+='"><span class="label">',stack1=(helper=helpers.textNumber)||typeof(helper=depth0&&depth0.textNumber)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'</span>: <span class="count"></span></span>\n <span class="loading',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textLoading,{hash:{},inverse:self.noop,fn:self.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='"><span>',stack1=(helper=helpers.textLoading)||typeof(helper=depth0&&depth0.textLoading)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'</span>...</span>\n </h2>\n <div class="list">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.tools,{hash:{},inverse:self.noop,fn:self.program(5,function(depth0,stack1){var buffer="";return buffer+='\n <aside class="action-bar clearfix">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.tools,{hash:{},inverse:self.noop,fn:self.program(6,program6,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </aside>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n\n <table class="matrix">\n <colgroup>\n ',!(stack1=helpers.if.call(depth0,
depth0&&depth0.selectable,{hash:{},inverse:self.noop,fn:self.program(13,program13,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n <col/>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.actions,{hash:{},inverse:self.noop,fn:self.program(13,program13,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </colgroup>\n <thead>\n <tr>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.selectable,{hash:{},inverse:self.noop,fn:self.program(15,function(depth0,data){
return'\n <th class="checkboxes"><input type="checkbox" name="checkall" value="1" /></th>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <th class="label">',stack1=(helper=helpers.labelText)||typeof(helper=depth0&&depth0.labelText)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</th>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.actions,{hash:{},inverse:self.noop,fn:self.program(17,function(depth0,helper){var options,buffer="";return buffer+='\n <th class="actions">'+escapeExpression((
options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Actions",options):helperMissing.call(depth0,"__","Actions",options)))+"</th>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n</div>\n"});function mainTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,
buffer.helpers),stack1=stack1||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){var stack1,buffer="";return buffer+='\n <td class="checkboxes"><input type="checkbox" name="cb[',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+']" value="1" /></td>\n '}function program4(depth0,stack1,depth1,depth2){var buffer="";return buffer+='\n <td class="actions">\n ',!(stack1=helpers.each.call(depth0,depth2&&depth2.actions,{hash:{},inverse:self.noop,fn:self.programWithDepth(5,
program5,stack1,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </td>\n "}function program5(depth0,stack1,depth2){var buffer="";return buffer+="\n ",!(stack1=helpers.with.call(depth0,depth2&&depth2.line,{hash:{},inverse:self.noop,fn:self.programWithDepth(6,program6,stack1,depth0),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program6(depth0,stack1,depth1){var buffer="";return buffer+="\n ",!(stack1=helpers.unless.call(depth0,depth1&&depth1.hidden,{hash:{},inverse:self.noop,fn:self.programWithDepth(7,program7,stack1,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),
buffer+="\n "}function program7(depth0,stack1,depth2){var buffer="";return buffer+="\n ",!(stack1=helpers.with.call(depth0,depth2,{hash:{},inverse:self.noop,fn:self.program(8,program8,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program8(depth0,data){var stack1,helper,buffer="";return buffer+='\n <button class="btn-info small" data-control="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},
inverse:self.noop,fn:self.program(9,program9,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(11,program11,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </button>\n "}function program9(depth0,data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title
)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program11(depth0,data){var stack1,buffer="";return buffer+='<span class="icon icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'}return!(stack1=helpers.each.call(depth0,depth0&&depth0.list,{hash:{},inverse:self.noop,fn:self.programWithDepth(1,function(depth0,data,depth1){var stack1,helper,buffer="";return buffer+='\n<tr data-id="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,
{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.if.call(depth0,depth1&&depth1.selectable,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <td class="label">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</td>\n ",!(stack1=helpers.if.call(depth0,depth1&&depth1.actions,{hash:{},inverse:self.noop,fn:self.programWithDepth(4,program4,data,depth0,depth1),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</tr>\n"},stack1,depth0),
data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n"});var _defaults={keyName:"id",labelName:"label",labelText:__("Label"),title:!1,textNumber:__("Available"),textEmpty:__("There is nothing to list!"),textLoading:__("Loading"),selectable:!1},datalist={update:function(data){var self=this,controls=this.controls||{},config=this.config||{},$list=controls.$list,$numberValue=controls.$numberValue,count={selectable:config.selectable,actions:config.actions,list:[]},list=count.list;return this.setLoading(!0),$list&&($list.empty(),data&&data.length?(_.forEach(data,function(line){var id=line[config.keyName],label=line[config.labelName];_.isFunction(
config.labelTransform)&&(label=config.labelTransform.call(self,label,line)),list.push({id:id,label:label,line:line})}),$list.append(function(data,html){return html=Template$1(data,html)}(count)),$numberValue&&(count=data.length,_.isFunction(config.countRenderer)&&(count=config.countRenderer.call(self,count)),$numberValue.text(count)),this.setState("empty",!1),this.setState("loaded",!0)):(this.setState("empty",!0),this.setState("loaded",!1)),controls.$checkboxes=this.controls.$list.find("td.checkboxes input"),controls.$massAction.toggleClass("hidden",!0),this.pendingSelection&&this.setSelection(this.pendingSelection)),self.trigger("update",data),
this.setLoading(!1),this},getSelection:function(){var $checkboxes=this.controls&&this.controls.$checkboxes,selection=[];return $checkboxes?$checkboxes.filter(":checked").each(function(){var id=$$1(this).closest("tr").data("id");id&&selection.push(id)}):this.pendingSelection&&(selection=this.pendingSelection),selection},setSelection:function(selection){var controls=this.controls||{},$list=controls.$list;return $list?(controls.$checkboxes.prop("checked",!1),selection&&_.forEach(selection,function(id){$list.find('[data-id="'+id+'"] input[type="checkbox"]').prop("checked",!0)}),this._onSelection(),this.pendingSelection=null):this.pendingSelection=selection,this
},_onSelection:function(){var controls=this.controls||{},$checkboxes=controls.$checkboxes,$checkAll=controls.$checkAll,$checked=$checkboxes.filter(":checked");$checked.length===$checkboxes.length?$checkAll.prop("checked",!0):$checkAll.prop("checked",!1),controls.$massAction.toggleClass("hidden",!$checked.length),this.trigger("select",this.getSelection())},setLoading:function(flag){return flag&&this.setState("loaded",!1),this.setState("loading",flag)},setTitle:function(title){var $title=this.controls&&this.controls.$title;return this.config.title=title,$title&&(!1===title?$title.addClass("hidden"):$title.html(title).removeClass("hidden")),this},
setTextNumber:function(text){var $numberLabel=this.controls&&this.controls.$numberLabel,$textAvailable=this.controls&&this.controls.$textAvailable;return this.config.textNumber=text,$numberLabel&&(!1!==text?$numberLabel.html(text).removeClass("hidden"):$textAvailable&&$textAvailable.addClass("hidden")),this},setTextEmpty:function(text){var $textEmpty=this.controls&&this.controls.$textEmpty;return this.config.textEmpty=text,$textEmpty&&(!1===text?$textEmpty.addClass("hidden"):$textEmpty.html(text).removeClass("hidden")),this},setTextLoading:function(text){var $textLoading=this.controls&&this.controls.$textLoading;return this.config.textLoading=text,
$textLoading&&(!1===text?$textLoading.addClass("hidden"):$textLoading.html(text).removeClass("hidden")),this}};return function(initConfig,data){var actions={},tools={};return(initConfig=initConfig||{}).tools&&_.forEach(initConfig.tools,function(tool){tools[tool.id]=tool}),initConfig.actions&&_.forEach(initConfig.actions,function(action){actions[action.id]=action}),component(datalist,_defaults).setTemplate(mainTpl).on("destroy",function(){this.controls=null,this.pendingSelection=null}).on("render",function(){var self=this;this.controls={$title:this.$component.find("h1"),$textEmpty:this.$component.find(".empty-list"),$textAvailable:this.$component.find(
".available-list"),$textLoading:this.$component.find(".loading span"),$numberLabel:this.$component.find(".available-list .label"),$numberValue:this.$component.find(".available-list .count"),$actionBar:this.$component.find(".list .action-bar"),$massAction:this.$component.find(".list .mass-action"),$checkAll:this.$component.find(".list th.checkboxes input"),$checkboxes:this.$component.find(".list td.checkboxes input"),$list:this.$component.find(".list tbody")},this.controls.$actionBar.on("click","button",function(e){var buttonId=$$1(this).closest("button").data("control"),button=tools[buttonId],selection=self.getSelection();e.preventDefault(),
button&&button.action&&button.action.call(self,selection,buttonId),self.trigger("tool",selection,buttonId)}),this.controls.$list.on("click","button",function(e){var button=$$1(this),lineId=button.closest("tr").data("id"),buttonId=button.closest("button").data("control"),button=actions[buttonId];e.preventDefault(),button&&button.action&&button.action.call(self,lineId,buttonId),self.trigger("action",lineId,buttonId)}),this.setState("selectable",this.config.selectable),this.controls.$list.on("click","td.label",function(){var $checkbox;self.config.selectable&&(($checkbox=$$1(this).closest("tr").find('input[type="checkbox"]')).prop("checked")?$checkbox.prop(
"checked",!1):$checkbox.prop("checked",!0),self._onSelection())}),this.controls.$list.on("click",'input[type="checkbox"]',function(){self._onSelection()}),this.controls.$checkAll.on("click",function(){var $checkboxes=self.controls.$checkboxes;this.checked?$checkboxes.prop("checked",!0):$checkboxes.prop("checked",!1),self._onSelection()}),data?this.update(data):(this.setState("empty",!0),this.setState("loaded",!1))}).init(initConfig)}}),define("ui/datatable/filterStrategy/multiple",["jquery","lodash"],function($,_){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,{init:function(){},getQueryData:function($table,$filterElement,options){var data={filtercolumns:{}};if(0!==$(".filter",$table).length)return _.forEach($(".filter",$table),function(filterValue){var name=$(filterValue),column=name.data("column"),model=options.filterSelector||"select, input",filterValue=$(model,name);0!==filterValue.length&&(model=_.find(options.model,function(o){return o.id===column}),name=filterValue.attr("name").replace(/^filter\[(.+)\]$/,"$1"),filterValue.val()&&(filterValue=filterValue.val(),model&&"function"==typeof model.filterTransform&&(filterValue=model.filterTransform(filterValue)),data.filtercolumns[name]=filterValue))
}),data},getFiltersData:function($table,$filterElement,options){var data={filtercolumns:{}};return _.forEach($(".filter",$table),function(filterValue){var name=$(filterValue),filterValue=options.filterSelector||"select, input",filterValue=$(filterValue,name);0!==filterValue.length&&(name=filterValue.attr("name").replace(/^filter\[(.+)\]$/,"$1"),filterValue.val()&&(filterValue=filterValue.val(),data.filtercolumns[name]=filterValue))}),data},render:function($table,options){_.forEach($(".filter",$table),function($filterInput){var name=$($filterInput),column=name.data("column"),model=options.filterSelector||"select, input",$filterInput=$(model,name)
;0!==$filterInput.length&&(model=_.find(options.model,function(o){return o.id===column}),name=$filterInput.attr("name").replace(/^filter\[(.+)\]$/,"$1"),options.filtercolumns&&options.filtercolumns[name]&&$filterInput.val(options.filtercolumns[name]),model&&model.customFilter&&"function"==typeof model.customFilter.callback&&model.customFilter.callback($filterInput))})}}}),define("ui/datatable/filterStrategy/single",["jquery","lodash"],function($,_){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{init:function(){},getQueryData:function($table,$filter,
options){var data={},column=$filter.data("column"),model=_.find(options.model,function(o){return o.id===column});if(0!==$filter.length)return data.filterquery=$filter.find(":input").filter(function(){return $(this).val()}).val(),model&&"function"==typeof model.filterTransform&&(data.filterquery=model.filterTransform(data.filterquery)),data.filtercolumns=column?column.split(","):options.filtercolumns,data},getFiltersData:function($table,$filter,options){var data={},column=$filter.data("column");if(0!==$filter.length)return data.filterquery=$filter.find(":input").filter(function(){return $(this).val()}).val(),data.filtercolumns=column?column.split(","
):options.filter.columns,data},render:function($table,options){var filterColumns=options.filtercolumns||[];_.forEach($(".filter",$table),function($filterInput){var model=$($filterInput),column=model.data("column"),$filterInput=options.filterSelector||"select, input",$filterInput=$($filterInput,model),model=_.find(options.model,function(o){return o.id===column});options.filterquery&&column===filterColumns.join()&&$filterInput.val(options.filterquery).addClass("focused"),model&&model.customFilter&&"function"==typeof model.customFilter.callback&&model.customFilter.callback($filterInput)})}}}),define("ui/datatable/filterStrategy/filterStrategy",[
"core/providerRegistry","ui/datatable/filterStrategy/multiple","ui/datatable/filterStrategy/single"],function(filter,multipleStrategy,singleStrategy){"use strict";function filterStrategy(datatableOptions){var strategy;return{init:function(){var strategyId=datatableOptions.filterStrategy||"single";return strategy=filterStrategy.getProvider(strategyId),this},getQueryData:function($table,$filter,options){return strategy.getQueryData($table,$filter,options)},getFiltersData:function($table,$filter,options){return strategy.getFiltersData($table,$filter,options)},render:function($table,options){return strategy.render($table,options)}}.init()}
return filter=filter&&Object.prototype.hasOwnProperty.call(filter,"default")?filter.default:filter,multipleStrategy=multipleStrategy&&Object.prototype.hasOwnProperty.call(multipleStrategy,"default")?multipleStrategy.default:multipleStrategy,singleStrategy=singleStrategy&&Object.prototype.hasOwnProperty.call(singleStrategy,"default")?singleStrategy.default:singleStrategy,(filter=filter(filterStrategy)).registerProvider("single",singleStrategy),filter.registerProvider("multiple",multipleStrategy),filter}),define("ui/pagination/providers/pages",["jquery","lodash","handlebars","i18n","lib/dompurify/purify"],function($$1,_,Handlebars,__,DOMPurify){"use strict"
;function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",
wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),
hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var options,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="grid-row clearfix pagination">\n <ul class="pages">\n <li class="first-page"><span class="icon-fast-backward" title="'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"First page",options):helperMissing.call(depth0,"__","First page",options)))+'"></span></li>\n <li class="previous"><span class="icon-backward" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Previous",options):helperMissing.call(depth0,"__","Previous",options)))+'"></span></li>\n <li class="next"><span class="icon-forward" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Next",options):helperMissing.call(depth0,"__","Next",options))
)+'"></span></li>\n <li class="last-page"><span class="icon-fast-forward" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Last page",options):helperMissing.call(depth0,"__","Last page",options)))+'"></span></li>\n </ul>\n</div>\n'});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<li class="page"><span>',buffer+=(0,this.escapeExpression)((helper=helper.page
)||"function"==typeof(helper=depth0&&depth0.page)?helper.call(depth0,{hash:{},data:data}):helper)+"</span></li>\n"});return{init:function(){var $paginationTpl,generatePage=function(page){return $$1(html=Template$1({page:page},html));var html},separator=function(){var $page=generatePage("...");return $page.addClass("separator"),$page},generatePart=function(from,to,activePage){for(var $page,pages=[],i=from;i<=to;i++)$page=generatePage(i),i===activePage&&$page.addClass("active"),pages.push($page);return pages},getForwardBtn=function(){return $$1(".next",$paginationTpl)};return{render:function($container){var data,html;$paginationTpl=$$1(html=Template(data,html)
),$container.append($paginationTpl)},forwardButton:getForwardBtn,backwardButton:function(){return $$1(".previous",$paginationTpl)},pageButtons:function(){return $$1(".page",$paginationTpl)},firstPageButton:function(){return $$1(".first-page",$paginationTpl)},lastPageButton:function(){return $$1(".last-page",$paginationTpl)},setPages:function(page,list){var $point,list=function(page,total){var pages=[];return pages=total<=7?pages.concat(generatePart(1,total,page)):page<5?(pages=(pages=pages.concat(generatePart(1,5,page))).concat(separator())).concat(generatePart(total,total,page)):total-3<=page?(pages=(pages=pages.concat(generatePart(1,1,page))).concat(
separator())).concat(generatePart(total-3,total,page)):(pages=(pages=(pages=(pages=pages.concat(generatePart(1,1,page))).concat(separator())).concat(generatePart(page-1,page+1,page))).concat(separator())).concat(generatePart(total,total,page))}(page,list);$$1(".page",$paginationTpl).remove(),list=list,$point=getForwardBtn(),_.each(list,function($page){$page.insertBefore($point)})},disableButton:function($btn){$btn.hasClass("disabled")||$btn.addClass("disabled")},enableButton:function($btn){$btn.hasClass("disabled")&&$btn.removeClass("disabled")},destroy:function(){$paginationTpl.remove()},disable:function(){var self=this;this.disableButton(
this.backwardButton()),this.disableButton(this.firstPageButton()),$$1(".page",$paginationTpl).each(function(){self.disableButton($$1(this))}),this.disableButton(this.lastPageButton()),this.disableButton(this.forwardButton())},enable:function(){var self=this;$$1(".page",$paginationTpl).each(function(){self.enableButton($$1(this))})}}}}}),define("ui/pagination/providers/simple",["jquery","handlebars","i18n","lodash","lib/dompurify/purify"],function($$1,Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,
Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var options,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="grid-row clearfix pagination">\n <div class="col-6">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Page",options):helperMissing.call(depth0,"__","Page",options)))+' <strong class="page">',buffer+=escapeExpression((helper=helpers.activePage
)||"function"==typeof(helper=depth0&&depth0.activePage)?helper.call(depth0,{hash:{},data:data}):helper)+"</strong> "+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"of",options):helperMissing.call(depth0,"__","of",options)))+' <span class="total">',buffer+=escapeExpression((helper=helpers.totalPages)||"function"==typeof(helper=depth0&&depth0.totalPages)?helper.call(depth0,{hash:{},data:data}):helper)+'</span></div>\n <div class="col-6 txt-rgt">\n <button class="btn-info small"><span class="icon-backward"></span>'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Previous",options):helperMissing.call(depth0,"__","Previous",options)))+'</button>\n <button class="btn-info small">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Next",options):helperMissing.call(depth0,"__","Next",options)))+'<span class="icon-forward r"></span></button>\n </div>\n</div>\n'});return{init:function(){var $paginationTpl;return{render:function($container){var data,html;$paginationTpl=$$1(html=Template(data,html)),$container.append($paginationTpl)},forwardButton:function(){return $$1(".icon-forward",$paginationTpl
).parents("button")},backwardButton:function(){return $$1(".icon-backward",$paginationTpl).parents("button")},setPages:function(page,total){$$1(".page",$paginationTpl).text(page),$$1(".total",$paginationTpl).text(total)},disableButton:function($btn){$btn.attr("disabled","disabled")},enableButton:function($btn){$btn.attr("disabled")&&$btn.removeAttr("disabled")},pageButtons:function(){return!1},firstPageButton:function(){return!1},lastPageButton:function(){return!1},destroy:function(){$paginationTpl.remove()},disable:function(){this.disableButton(this.backwardButton()),this.disableButton(this.forwardButton())},enable:function(){}}}}}),define(
"ui/pagination/paginationStrategy",["core/providerRegistry","ui/pagination/providers/pages","ui/pagination/providers/simple"],function(paginationProvider,pagesProvider,simpleProvider){"use strict";return paginationProvider=paginationProvider&&Object.prototype.hasOwnProperty.call(paginationProvider,"default")?paginationProvider.default:paginationProvider,pagesProvider=pagesProvider&&Object.prototype.hasOwnProperty.call(pagesProvider,"default")?pagesProvider.default:pagesProvider,simpleProvider=simpleProvider&&Object.prototype.hasOwnProperty.call(simpleProvider,"default")?simpleProvider.default:simpleProvider,(paginationProvider=paginationProvider(
function paginationStrategy(mode){return function(){return paginationStrategy.getProvider(mode||"simple")}()})).registerProvider("simple",simpleProvider),paginationProvider.registerProvider("pages",pagesProvider),paginationProvider}),define("css!ui/pagination/css/pagination",[],function(){}),define("ui/pagination",["jquery","lodash","i18n","ui/component","ui/pagination/paginationStrategy","css!ui/pagination/css/pagination.css"],function($,_,__,component,paginationStrategy,pagination_css){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,paginationStrategy=paginationStrategy&&Object.prototype.hasOwnProperty.call(paginationStrategy,"default")?paginationStrategy.default:paginationStrategy;var _defaults={mode:"simple",activePage:1,totalPages:1};function calculateActivePage(page,pages){return(page=parseInt(page))<1&&(page=1),pages<page&&(page=pages),page}return function(config){var paginationComponent,provider,totalPages,activePage;return config=_.defaults(config||{},_defaults),(paginationComponent=component({
setPage:function(page){!1===(page=calculateActivePage(page,this.getTotal()))?this.trigger("error",__("Undefined amount of the pages for pagination")):(activePage=page,provider.setPages(this.getActivePage(),this.getTotal()),this.trigger("change"))},nextPage:function(){this.setPage(this.getActivePage()+1),this.trigger("next")},previousPage:function(){this.setPage(this.getActivePage()-1),this.trigger("prev")},getActivePage:function(){return activePage},getTotal:function(){return totalPages},refresh:function(){this.getActivePage()===this.getTotal()?(provider.disableButton(provider.forwardButton()),!1!==provider.lastPageButton()&&provider.disableButton(
provider.lastPageButton())):(provider.enableButton(provider.forwardButton()),!1!==provider.lastPageButton()&&provider.enableButton(provider.lastPageButton())),1===this.getActivePage()?(provider.disableButton(provider.backwardButton()),!1!==provider.firstPageButton()&&provider.disableButton(provider.firstPageButton())):(provider.enableButton(provider.backwardButton()),!1!==provider.firstPageButton()&&provider.enableButton(provider.firstPageButton()))}})).on("change enable",function(){provider.enable(),this.refresh()}).on("render",function(){var self=this;_.isUndefined(config.totalPages)&&this.trigger("error",__(
"Undefined amount of the totalPages for pagination")),!1===(totalPages=function(totalPages){return!((totalPages=totalPages||1)<1)&&totalPages}(config.totalPages))&&this.trigger("error",__("Undefined amount of the pages for pagination")),activePage=calculateActivePage(config.activePage||1,totalPages),(provider=paginationStrategy(config.mode).init()).render(this.getContainer()),this.setPage(this.getActivePage()),provider.forwardButton().off("click").on("click",function(){self.getActivePage()>=self.getTotal()||self.nextPage()}),provider.backwardButton().off("click").on("click",function(){1!==self.getActivePage()&&self.previousPage()}),!1!==provider.pageButtons(
)&&provider.pageButtons().off("click").on("click",function(){var page=parseInt($(this).text());page&&self.setPage(page)}),!1!==provider.firstPageButton()&&provider.firstPageButton().off("click").on("click",function(){self.setPage(1)}),!1!==provider.lastPageButton()&&provider.lastPageButton().off("click").on("click",function(){self.setPage(self.getTotal())})}).on("disable",function(){provider.disable()}).on("destroy",function(){provider.destroy()}).init(config),paginationComponent}}),define("layout/loading-bar",["jquery"],function($contentWrap){"use strict";var $loadingBar=$contentWrap(".loading-bar"),originalHeight=$loadingBar.height(),$win=$contentWrap(
window),$doc=$contentWrap(document),$contentWrap=$contentWrap(".content-wrap"),headerElements={$versionWarning:$contentWrap.find(".version-warning"),$header:$contentWrap.find("header:first()")},headerHeight=getHeaderHeight(headerElements);function getHeaderHeight(headerElements){for(var $element in headerHeight=0,headerElements)headerElements[$element].length&&headerElements[$element].is(":visible")&&(headerHeight+=headerElements[$element].outerHeight());return headerHeight}function updateHeight(){var loadingBarHeight=$doc.height();$loadingBar.hasClass("loading")&&((headerHeight=getHeaderHeight(headerElements))<=$win.scrollTop()?$loadingBar.addClass("fixed"
):$loadingBar.removeClass("fixed"),$loadingBar.hasClass("loadingbar-covered")?(1!==window.devicePixelRatio&&loadingBarHeight--,$loadingBar.height(loadingBarHeight)):$loadingBar.height(""))}return $win.on("scroll.loadingbar",function(){updateHeight()}),{start:function(covered){void 0===covered&&(covered=!0),$loadingBar.hasClass("loading")&&$loadingBar.stop(),$loadingBar.addClass("loading"),$loadingBar.toggleClass("loadingbar-covered",covered),updateHeight()},stop:function(){$loadingBar.removeClass("loading fixed").height(originalHeight)}}}),define("util/httpErrorParser",[],function(){"use strict";return{parse:function(xhr,options,errorThrown){var msg,error
;try{msg=JSON.parse(xhr.responseText).message||errorThrown}catch(e){msg=errorThrown}return(error=new Error(msg)).response=xhr,error.code=xhr.status,error.errorThrown=errorThrown,error}}}),define("ui/pageSizeSelector",["jquery","lodash","i18n","ui/component","handlebars","lib/dompurify/purify","select2"],function($$1,_,__,component,Handlebars,DOMPurify,select2){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){
hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),
fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle)
)return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{};var buffer="",self=this,functionType="function",escapeExpression=this.escapeExpression;function program2(depth0,data){return"selected"}return buffer+='<div class="page-size-selector-container">\n <select class="select2">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.options,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+="\n <option ",!(stack1=helpers.if.call(depth0,depth0&&depth0.selected,{hash:{},
inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=' value="',stack1=(helper=helpers.value)||typeof(helper=depth0&&depth0.value)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n ',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </option>\n "},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </select>\n</div>\n"});function pageSizeSelectorTpl(data,html,asString){html=Template(data,html);return html}
var defaults={defaultSize:25,options:[{label:"25 "+__("items per page"),value:25},{label:"50 "+__("items per page"),value:50},{label:"75 "+__("items per page"),value:75},{label:"100 "+__("items per page"),value:100},{label:"200 "+__("items per page"),value:200}]};return function(config){return component({setSelectedOption:function(){var selectedOption,options=this.config.options,defaultSize=this.config.defaultSize;options.forEach(function(option){option.value==defaultSize?(selectedOption=option).selected=!0:option.selected=!1}),selectedOption||(options[0].selected=!0)}},defaults).setTemplate(pageSizeSelectorTpl).on("init",function(){this.setSelectedOption()}
).on("render",function(){var self=this,$component=this.getElement();$$1(".select2",$component).select2({dropdownCssClass:"page-size-dropdown",minimumResultsForSearch:1/0}).on("change",function(e){self.trigger("change",e.val)})}).after("render",function(){var $component=this.getElement();this.trigger("change",$$1("select",$component).val())}).on("destroy",function(){var $component=this.getElement();$$1(".select2",$component).select2("destroy")}).init(config)}}),define("css!ui/datatable/css/datatable",[],function(){}),define("ui/datatable",["jquery","lodash","i18n","core/pluginifier","handlebars","lib/dompurify/purify",
"ui/datatable/filterStrategy/filterStrategy","ui/pagination","layout/loading-bar","core/logger","util/httpErrorParser","ui/pageSizeSelector","css!ui/datatable/css/datatable.css"],function($$1,_,__,Pluginifier,Handlebars,DOMPurify,filterStrategyFactory,paginationComponent,loadingBar,loggerFactory,httpErrorParser,pageSizeSelector,datatable_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",
function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,
fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,filterStrategyFactory=filterStrategyFactory&&Object.prototype.hasOwnProperty.call(filterStrategyFactory,"default"
)?filterStrategyFactory.default:filterStrategyFactory,paginationComponent=paginationComponent&&Object.prototype.hasOwnProperty.call(paginationComponent,"default")?paginationComponent.default:paginationComponent,loadingBar=loadingBar&&Object.prototype.hasOwnProperty.call(loadingBar,"default")?loadingBar.default:loadingBar,loggerFactory=loggerFactory&&Object.prototype.hasOwnProperty.call(loggerFactory,"default")?loggerFactory.default:loggerFactory,httpErrorParser=httpErrorParser&&Object.prototype.hasOwnProperty.call(httpErrorParser,"default")?httpErrorParser.default:httpErrorParser,pageSizeSelector=pageSizeSelector&&Object.prototype.hasOwnProperty.call(
pageSizeSelector,"default")?pageSizeSelector.default:pageSizeSelector,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program4(depth0,data){var stack1=(stack1=helpers.empty)||typeof(stack1=depth0&&depth0.empty)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program6(depth0,data,
stack1){return escapeExpression(typeof(stack1=null==(stack1=null==(stack1=stack1&&stack1.options)||!1===stack1?stack1:stack1.labels)||!1===stack1?stack1:stack1.empty)===functionType?stack1.apply(depth0):stack1)}function program8(depth0,data){var stack1=(stack1=helpers.available)||typeof(stack1=depth0&&depth0.available)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program10(depth0,data,stack1){return escapeExpression(typeof(stack1=null==(stack1=null==(stack1=stack1&&stack1.options)||!1===stack1?stack1:stack1.labels)||!1===stack1?stack1:stack1.available)===functionType?stack1.apply(depth0):stack1)}
function program12(depth0,data){var stack1=(stack1=helpers.loading)||typeof(stack1=depth0&&depth0.loading)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program14(depth0,data,stack1){return escapeExpression(typeof(stack1=null==(stack1=null==(stack1=stack1&&stack1.options)||!1===stack1?stack1:stack1.labels)||!1===stack1?stack1:stack1.loading)===functionType?stack1.apply(depth0):stack1)}function program19(depth0,data){var stack1,buffer="";return buffer+='\n <button class="btn-info small tool-',!(stack1=helpers.if.call(depth0,depth0&&depth0.id,{hash:{},inverse:self.program(22,program22,data),
fn:self.program(20,program20,data),data:data}))&&0!==stack1||(buffer+=stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.massAction,{hash:{},inverse:self.noop,fn:self.program(24,program24,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='"\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},inverse:self.noop,fn:self.program(26,program26,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='>\n <span class="icon-',!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.program(30,program30,data),fn:self.program(28,program28,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+='"></span>\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.label,{hash:{},inverse:self.program(35,program35,data),fn:self.program(33,program33,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </button>\n "}function program20(depth0,data){var stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program22(depth0,stack1){return escapeExpression(typeof(stack1=null==stack1||!1===stack1?stack1:stack1.index)===functionType?stack1.apply(depth0):stack1)}function program24(depth0,data){return" invisible"
}function program26(depth0,data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program28(depth0,data){var stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program30(depth0,stack1){stack1=helpers.if.call(depth0,depth0&&depth0.id,{hash:{},inverse:self.program(31,program31,stack1),fn:self.program(20,program20,stack1),data:stack1});return stack1||0===stack1?stack1:""}
function program31(depth0,stack1){return escapeExpression(typeof(stack1=null==stack1||!1===stack1?stack1:stack1.key)===functionType?stack1.apply(depth0):stack1)}function program33(depth0,data){var stack1=(stack1=helpers.label)||typeof(stack1=depth0&&depth0.label)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program35(depth0,stack1){stack1=helpers.unless.call(depth0,depth0&&depth0.id,{hash:{},inverse:self.noop,fn:self.program(31,program31,stack1),data:stack1});return stack1||0===stack1?stack1:""}function program37(depth0,data){return"\n <col/>\n "}function program44(depth0
,data){return' class="actions"'}function program46(depth0,data){var stack1,buffer="";return buffer+='\n class="sortable"\n data-sort-by="',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.sorttype,{hash:{},inverse:self.noop,fn:self.program(47,program47,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n tabindex="0"\n '}function program47(
depth0,data){var stack1,buffer="";return buffer+='data-sort-type="',stack1=(stack1=helpers.sorttype)||typeof(stack1=depth0&&depth0.sorttype)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program49(depth0,data){var stack1,buffer="";return buffer+='\n <aside data-column="',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'" class="filter column\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.customFilter,{hash:{},inverse:self.program(52,
program52,data),fn:self.program(50,program50,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </aside>\n "}function program50(depth0,data){var stack1,buffer="";return buffer+=' customInput" >\n ',!(stack1=typeof(stack1=null==(stack1=depth0&&depth0.customFilter)||!1===stack1?stack1:stack1.template)===functionType?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program52(depth0,data){var stack1,buffer="";return buffer+=' ">\n <input type="text" value="" name="filter[',stack1=(
stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+']" placeholder="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.filterable)||!1===stack1?stack1:stack1.placeholder)===functionType?stack1.apply(depth0):stack1)+'">\n <button class="icon-find" type="button"></button>\n '}function program57(depth0,data){var stack1,buffer="";return buffer+='\n <td class="checkboxes"><input type="checkbox" name="cb[',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id
)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+']" value="1" /></td>\n '}function program59(depth0,stack1,depth1){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.type,{hash:{},inverse:self.programWithDepth(74,program74,stack1,depth1),fn:self.programWithDepth(60,program60,stack1,depth0,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n "}function program60(depth0,data,depth1,depth2){var stack1,buffer="";return buffer+='\n <td class="actions ',stack1=(
stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.each.call(depth0,depth1&&depth1.actions,{hash:{},inverse:self.noop,fn:self.programWithDepth(61,program61,data,depth2),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </td>\n "}function program61(depth0,stack1,depth3){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.id,{hash:{},inverse:self.program(71,program71,stack1),
fn:self.programWithDepth(62,program62,stack1,depth3),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n "}function program62(depth0,stack1,depth4){var buffer="";return buffer+="\n ",!(stack1=helpers.with.call(depth0,depth4,{hash:{},inverse:self.noop,fn:self.programWithDepth(63,program63,stack1,depth0),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program63(depth0,stack1,depth1){var buffer="";return buffer+="\n ",!(stack1=helpers.unless.call(depth0,depth1&&depth1.hidden,{hash:{},
inverse:self.noop,fn:self.programWithDepth(64,program64,stack1,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program64(depth0,data,depth2){var stack1,buffer="";return buffer+='\n <button class="btn-info small '+escapeExpression(typeof(stack1=depth2&&depth2.id)===functionType?stack1.apply(depth0):stack1)+'"\n ',!(stack1=helpers.if.call(depth0,depth2&&depth2.title,{hash:{},inverse:self.noop,fn:self.programWithDepth(65,program65,data,depth2),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n ",!(stack1=helpers.if.call(depth0,depth2&&depth2.disabled,{hash:{},inverse:self.noop,fn:self.program(67,program67,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth2&&depth2.icon,{hash:{},inverse:self.noop,fn:self.programWithDepth(69,program69,data,depth2),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n "+escapeExpression(typeof(stack1=depth2&&depth2.label)===functionType?stack1.apply(depth0):stack1
)+"\n </button>\n "}function program65(depth0,data,stack1){var buffer="";return buffer+=' title="'+escapeExpression(typeof(stack1=stack1&&stack1.title)===functionType?stack1.apply(depth0):stack1)+'"'}function program67(depth0,data){return' disabled="disabled"'}function program69(depth0,data,stack1){var buffer="";return buffer+='<span class="icon-'+escapeExpression(typeof(stack1=stack1&&stack1.icon)===functionType?stack1.apply(depth0):stack1)+'"></span>'}function program71(depth0,data){var stack1,helper,buffer=""
;return buffer+='\n <button class="btn-info small '+escapeExpression(typeof(stack1=null==data||!1===data?data:data.key)===functionType?stack1.apply(depth0):stack1)+'"\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},inverse:self.noop,fn:self.program(26,program26,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(72,program72,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",stack1=(
helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </button>\n "}function program72(depth0,data){var stack1,buffer="";return buffer+='<span class="icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span> '}function program74(depth0,data,depth2){var stack1,helper,options,buffer="";return buffer+='\n <td class="',stack1=(helper=helpers.id
)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',options={hash:{},data:data},stack1=(helper=helpers.property||depth0&&depth0.property)?helper.call(depth0,depth0&&depth0.id,depth2,options):helperMissing.call(depth0,"property",depth0&&depth0.id,depth2,options),options={hash:{},data:data},!(stack1=(helper=helpers.dompurify||depth0&&depth0.dompurify)?helper.call(depth0,stack1,options):helperMissing.call(depth0,"dompurify",stack1,options))&&0!==stack1||(buffer+=stack1),buffer+="</td>\n "}function program76(depth0,stack1,depth1){var buffer=""
;return buffer+='\n <td class="actions">\n ',!(stack1=helpers.each.call(depth0,depth0,{hash:{},inverse:self.noop,fn:self.programWithDepth(77,program77,stack1,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </td>\n "}function program77(depth0,stack1,depth2){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.id,{hash:{},inverse:self.program(82,program82,stack1),fn:self.programWithDepth(78,program78,stack1,depth2),data:stack1}))&&0!==stack1||(buffer+=stack1),
buffer+="\n "}function program78(depth0,stack1,depth3){var buffer="";return buffer+="\n ",!(stack1=helpers.with.call(depth0,depth3,{hash:{},inverse:self.noop,fn:self.programWithDepth(79,program79,stack1,depth0),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n "}function program79(depth0,stack1,depth1){var buffer="";return buffer+="\n ",!(stack1=helpers.unless.call(depth0,depth1&&depth1.hidden,{hash:{},inverse:self.noop,fn:self.programWithDepth(80,program80,stack1,depth1),data:stack1}))&&0!==stack1||(buffer+=stack1),
buffer+="\n "}function program80(depth0,data,depth2){var stack1,buffer="";return buffer+='\n <button class="btn-info small '+escapeExpression(typeof(stack1=depth2&&depth2.id)===functionType?stack1.apply(depth0):stack1)+'"\n ',!(stack1=helpers.if.call(depth0,depth2&&depth2.title,{hash:{},inverse:self.noop,fn:self.programWithDepth(65,program65,data,depth2),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth2&&depth2.disabled,{hash:{},inverse:self.noop,fn:self.program(67,program67,data),data:data}
))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth2&&depth2.icon,{hash:{},inverse:self.noop,fn:self.programWithDepth(69,program69,data,depth2),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n "+escapeExpression(typeof(stack1=depth2&&depth2.label)===functionType?stack1.apply(depth0):stack1)+"\n </button>\n "}function program82(depth0,data){var stack1,buffer="";return buffer+='\n <button class="btn-info small '+escapeExpression(typeof(
stack1=null==data||!1===data?data:data.key)===functionType?stack1.apply(depth0):stack1)+'"><span class="icon-'+escapeExpression(typeof(stack1=null==data||!1===data?data:data.key)===functionType?stack1.apply(depth0):stack1)+'"></span> '+escapeExpression(typeof(stack1=null==data||!1===data?data:data.key)===functionType?stack1.apply(depth0):stack1)+"</button>\n "}function program85(depth0,data){var stack1,buffer="";return buffer+='\n <div class="empty">\n '+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.emptyText)===functionType?stack1.apply(depth0
):stack1)+"\n </div>\n "}return buffer+='<div class="datatable-wrapper">\n\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.filter,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <aside class="filter" data-column="'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.filter)||!1===stack1?stack1:stack1.columns)===functionType?stack1.apply(depth0):stack1)+'">\n <input type="text" value="" name="filter" placeholder="'+escapeExpression(typeof(stack1=null==(
stack1=null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.labels)||!1===stack1?stack1:stack1.filter)===functionType?stack1.apply(depth0):stack1)+'">\n <button class="icon-find" type="button"></button>\n </aside>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n\n <div class="datatable-header">\n ',!(stack1=helpers.with.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.status,{hash:{},inverse:self.noop,fn:self.programWithDepth(3,function(depth0,data,depth1){var stack1,helper,buffer="";return buffer+='\n <h2>\n <span class="empty-list hidden">',!(
stack1=helpers.if.call(depth0,depth0&&depth0.empty,{hash:{},inverse:self.programWithDepth(6,program6,data,depth1),fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='</span>\n <span class="available-list hidden">\n <span class="text">',!(stack1=helpers.if.call(depth0,depth0&&depth0.available,{hash:{},inverse:self.programWithDepth(10,program10,data,depth1),fn:self.program(8,program8,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='</span>:\n <span class="count">',stack1=(helper=helpers.count)||typeof(helper=depth0&&depth0.count)===functionType?helper.call(depth0,{hash:{},
data:data}):helper,buffer+=escapeExpression(stack1)+'</span>\n </span>\n <span class="loading">',!(stack1=helpers.if.call(depth0,depth0&&depth0.loading,{hash:{},inverse:self.programWithDepth(14,program14,data,depth1),fn:self.program(12,program12,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="...</span>\n </h2>\n "},data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.pageSizeSelector,{hash:{},inverse:self.noop,fn:self.program(16,function(depth0,data){
return'\n <div class="toolbox-container"></div>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.tools,{hash:{},inverse:self.noop,fn:self.program(18,function(stack1,data){var buffer="";return buffer+='\n <aside class="action-bar clearfix">\n ',!(stack1=helpers.each.call(stack1,null==(stack1=stack1&&stack1.options)||!1===stack1?stack1:stack1.tools,{hash:{},inverse:self.noop,fn:self.program(19,program19,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </aside>\n "},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+='\n\n <div class="datatable-pagination-top"></div>\n\n <div class="datatable-container">\n <table class="matrix datatable">\n <colgroup>\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.selectable,{hash:{},inverse:self.noop,fn:self.program(37,program37,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.each.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.model,{hash:{},inverse:self.noop,fn:self.program(37,program37,data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.actions,{hash:{},inverse:self.noop,fn:self.program(39,function(depth0,data){return"\n </col>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </colgroup>\n <thead>\n <tr>\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.selectable,{hash:{},inverse:self.noop,fn:self.program(41,function(depth0,data){
return'\n <th class="checkboxes"><input type="checkbox" name="checkall" value="1" /></th>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.each.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.model,{hash:{},inverse:self.noop,fn:self.program(43,function(depth0,data){var stack1,helper,buffer="";return buffer+="\n <th",!(stack1=helpers.if.call(depth0,depth0&&depth0.type,{hash:{},inverse:self.noop,fn:self.program(44,program44,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+=">\n <div\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.sortable,{hash:{},inverse:self.noop,fn:self.program(46,program46,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">",stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</div>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.filterable,{hash:{},inverse:self.noop,fn:self.program(49,program49,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </th>\n "},
data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.actions,{hash:{},inverse:self.noop,fn:self.program(54,function(depth0,data){var stack1,buffer="";return buffer+='\n <th class="actions">'+escapeExpression(typeof(stack1=null==(stack1=null==(stack1=depth0&&depth0.options)||!1===stack1?stack1:stack1.labels)||!1===stack1?stack1:stack1.actions)===functionType?stack1.apply(depth0):stack1)+"</th>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n </tr>\n </thead>\n <tbody>\n ",!(stack1=helpers.each.call(depth0,null==(stack1=depth0&&depth0.dataset)||!1===stack1?stack1:stack1.data,{hash:{},inverse:self.noop,fn:self.programWithDepth(56,function(depth0,data,depth1){var stack1,buffer="";return buffer+='\n <tr data-item-identifier="',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth1&&depth1.options)||!1===stack1?stack1:stack1.selectable,{
hash:{},inverse:self.noop,fn:self.program(57,program57,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.each.call(depth0,null==(stack1=depth1&&depth1.options)||!1===stack1?stack1:stack1.model,{hash:{},inverse:self.noop,fn:self.programWithDepth(59,program59,data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.with.call(depth0,null==(stack1=depth1&&depth1.options)||!1===stack1?stack1:stack1.actions,{hash:{},inverse:self.noop,fn:self.programWithDepth(76,program76,data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n </tr>\n "},data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </tbody>\n </table>\n ",!(stack1=helpers.unless.call(depth0,null==(stack1=depth0&&depth0.dataset)||!1===stack1?stack1:stack1.data,{hash:{},inverse:self.noop,fn:self.program(84,function(stack1,data){var buffer="";return buffer+="\n ",!(stack1=helpers.if.call(stack1,null==(stack1=stack1&&stack1.options)||!1===stack1?stack1:stack1.emptyText,{hash:{},inverse:self.noop,fn:self.program(85,program85,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n "},data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+='\n </div>\n <div class="datatable-pagination-bottom"></div>\n</div>\n'});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<button class="btn-info small ',stack1=(stack1=helpers.id)||typeof(stack1=depth0&&depth0.id)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"\n ',!(stack1=helpers.if.call(
depth0,depth0&&depth0.title,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+=' title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.disabled,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){return' disabled="disabled"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},
inverse:this.noop,fn:this.program(5,function(depth0,data){var stack1,buffer="";return buffer+='<span class="icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.label,{hash:{},inverse:this.noop,fn:this.program(7,function(depth0,data){var stack1=(stack1=helpers.label)||typeof(stack1=depth0&&depth0.label)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n</button>\n"});var ns="datatable",dataNs="ui."+ns,defaults={atomicUpdate:!1,start:0,rows:25,page:1,sortby:"id",sortorder:"asc",sorttype:"string",paginationStrategyTop:"none",paginationStrategyBottom:"simple",labels:{filter:__("Filter"),empty:__("Nothing to list!"),available:__("Available"),loading:__("Loading"),actions:__("Actions")},pageSizeSelector:!1},logger=loggerFactory("ui/datatable"),disablePagination=function(pagination){pagination&&pagination.length&&pagination.forEach(function(step){step.disable()})},enablePagination=function(pagination){pagination&&pagination.length&&pagination.forEach(function(step){
step.enable()})},getPropertyValue=function(value,action,context){value=action[value];return _.isFunction(value)?value.apply(context):value},updateHeaderStatus=function($statusCount,$container,amount){var $statusEmpty,$statusAvailable;$statusCount.status&&($statusEmpty=$container.find(".empty-list"),$statusCount=($statusAvailable=$container.find(".available-list")).find(".count"),$container.find(".loading").addClass("hidden"),(amount=amount.amount||amount.length)?($statusCount.text(amount),$statusAvailable.removeClass("hidden"),$statusEmpty.addClass("hidden")):($statusEmpty.removeClass("hidden"),$statusAvailable.addClass("hidden")))},dataTable={init:function(
options,data){return options=_.defaults(options,defaults),this.each(function(){var $elt=$$1(this),currentOptions=$elt.data(dataNs);options.atomicUpdate&&data&&$elt.data("".concat(dataNs,"state"),data.data),$elt.paginations=[],currentOptions?($elt.data(dataNs,_.merge(currentOptions,options)),dataTable._refresh($elt,data)):($elt.data(dataNs,options),$elt.one("load."+ns,function(){$elt.trigger("create."+ns)}),data?dataTable._render($elt,data):dataTable._query($elt))})},_refresh:function($elt,data){data?this._render($elt,data):this._query($elt)},_query:function($elt,ajaxConfig){var self=this,options=$elt.data(dataNs);loadingBar.start(),
ajaxConfig=ajaxConfig||$$1(".filter",$elt),options=_.assign({},options,this._getFilterStrategy($elt).getQueryData($elt,ajaxConfig,options));var parameters=_.merge({},_.pick(options,["rows","page","sortby","sortorder","sorttype","filterquery","filtercolumns"]),options.params||{}),ajaxConfig={url:options.url,data:parameters,dataType:"json",type:options.querytype||"GET"};disablePagination($elt.paginations),$elt.trigger("query."+ns,[ajaxConfig]),options.status&&$elt.find(".loading").removeClass("hidden"),"function"!=typeof options.requestInterceptor?$$1.ajax(ajaxConfig).done(function(response){return $elt&&"object"!==_typeof($elt.data(dataNs))?$elt.trigger(
"error.".concat(ns),[new Error("Unable to load data attached to the element")]):void self._render($elt,response)}).fail(function(response,option,requestErr){requestErr=httpErrorParser.parse(response,option,requestErr);logger.error(requestErr.message),requestErr.code=response.status,enablePagination(this.paginations),$elt.trigger("error."+ns,[requestErr]),self._render($elt,{})}):Promise.resolve(options.requestInterceptor(parameters)).then(function(data){self._render($elt,data)}).catch(function(error){$elt.trigger("error."+ns,[error]),self._render($elt,{})})},_render:function($elt,argument_1){var dataset=1<arguments.length&&void 0!==argument_1?argument_1:{},
self=this,options=_.cloneDeep($elt.data(dataNs));if(void 0===options)return $elt.trigger("error.".concat(ns),[new Error("Unable to load data attached to the element")]);var transforms,model=[],$massActionBtns=$$1();if(($elt.trigger("beforeload."+ns,[_.cloneDeep(dataset)]),_.forEach(options.model,function(field,key){options.filter||(field.filterable=!1),_.isUndefined(field.order)&&(field.order=key+1),field.filterable&&"object"!==_typeof(field.filterable)&&(field.filterable={placeholder:__("Filter")}),(void 0===field.visible||"function"==typeof field.visible&&field.visible()||!0===field.visible)&&model.push(field)}),model.sort(function(a,b){
return a.order-b.order}),options.sortby&&(options=this._sortOptions($elt,options.sortby,options.sortorder,options.sorttype)),_.some(model,"transform")&&(transforms=_.where(model,"transform"),_.forEach(dataset.data,function(row,index){_.forEach(transforms,function(field){_.isFunction(field.transform)&&(row[field.id]=field.transform(row[field.id],row,field,index,dataset.data))})})),options.model=model,options.atomicUpdate)&&this._shallowUpdate($elt,dataset,options))return updateHeaderStatus(options,$elt,dataset),loadingBar.stop(),void $elt.trigger("load.".concat(ns),[dataset]);var $rendering=$$1($sortBy=Template({options:options,dataset:dataset},$sortBy))
;_.forEach(dataset.readonly,function(values,id){if(!0===values)$$1('[data-item-identifier="'+id+'"] button',$rendering).addClass("disabled");else if(values&&"object"===_typeof(values))for(var action in values)values.hasOwnProperty(action)&&!0===values[action]&&$$1('[data-item-identifier="'.concat(id,'"] button.').concat(action),$rendering).addClass("disabled")});var attachActionListeners=function(actions){_.forEach(actions,function(action,css){_.isFunction(action)||(css=action.id||css,action=action.action||function(){});css=".".concat(css);$rendering.off("click",css).on("click",css,function(identifier){identifier.preventDefault();var $btn=$$1(this)
;$btn.hasClass("disabled")||(identifier=$btn.closest("[data-item-identifier]").data("item-identifier"),action.apply($btn,[identifier,_.first(_.where(dataset.data,{id:identifier}))]))})})};function renderPagination($container,mode){return paginationComponent({mode:mode,activePage:dataset.page,totalPages:dataset.total}).on("change",function(){self._setPage($elt,this.getActivePage())}).on("prev",function(){$elt.trigger("backward."+ns)}).on("next",function(){$elt.trigger("forward."+ns)}).render($container)}options.actions&&attachActionListeners(options.actions),_.some(options.model,"type")&&($sortElement=_.where(options.model,"type"),_.forEach($sortElement,
function(field){"actions"===field.type&&field.actions&&attachActionListeners(field.actions)})),_.forEach(options.tools,function(action,css){var isMassAction=!0;_.isFunction(action)||(css=action.id||css,isMassAction=action.massAction,action=action.action||function(){});css=".tool-".concat(css);isMassAction&&($massActionBtns=$massActionBtns.add($rendering.find(css))),$rendering.off("click",css).on("click",css,function($btn){$btn.preventDefault();$btn=$$1(this);$btn.hasClass("disabled")||action.apply($btn,[self._selection($elt)])})}),_.forEach(options.listeners,function(callback,ev){ev=[ev,ns].join(".");$elt.off(ev).on(ev,callback)}),$elt.paginations=[],
"none"!==options.paginationStrategyTop&&$elt.paginations.push(renderPagination($$1(".datatable-pagination-top",$rendering),options.paginationStrategyTop)),"none"!==options.paginationStrategyBottom&&$elt.paginations.push(renderPagination($$1(".datatable-pagination-bottom",$rendering),options.paginationStrategyBottom)),disablePagination($elt.paginations);var $rows=$rendering.find("tbody tr"),$sortBy=$rendering.find("th [data-sort-by]"),$sortElement=$rendering.find('[data-sort-by="'+options.sortby+'"]'),$checkAll=$rendering.find("th.checkboxes input"),$checkboxes=$rendering.find("td.checkboxes input");options.rowSelection&&($$1("table.datatable",$rendering
).addClass("hoverable"),$rendering.on("click","tbody td",function(currentRow){if($$1(currentRow.target).hasClass("checkboxes")||$$1(currentRow.target).hasClass("actions"))return!1;currentRow=$$1(this).parent();$rows.removeClass("selected"),currentRow.toggleClass("selected"),$elt.trigger("selected."+ns,_.where(dataset.data,{id:currentRow.data("item-identifier")}))})),$sortBy.on("click keyup",function(type){var column;"keyup"===type.type&&13!==type.keyCode||(type.preventDefault(),column=$$1(this).data("sort-by"),type=$$1(this).data("sort-type"),self._sort($elt,column,void 0,type))}),options.filter&&(self._getFilterStrategy($elt).render($rendering,options),
_.forEach($$1(".filter",$rendering),function($filterInput){var $filter=$$1($filterInput),$filterBtn=$$1("button",$filter),$filterInput=$$1("select, input",$filter);$filterInput.is("select")?$filterInput.on("change",function(){self._filter($elt,$filter)}):($filterBtn.off("click").on("click",function(e){e.preventDefault(),self._filter($elt,$filter)}),$filterInput.off("keypress").on("keypress",function(e){13===e.which&&(e.preventDefault(),self._filter($elt,$filter))}))})),$checkAll.click(function(){this.checked?($checkAll.prop("checked",!0),$checkboxes.prop("checked",!0)):($checkAll.prop("checked",!1),$checkboxes.prop("checked",!1)),
$massActionBtns.length&&$massActionBtns.toggleClass("invisible",!$checkboxes.filter(":checked").length),$elt.trigger("select."+ns)}),$checkboxes.click(function(){$checkboxes.filter(":checked").length===$checkboxes.length?$checkAll.prop("checked",!0):$checkAll.prop("checked",!1),$massActionBtns.length&&$massActionBtns.toggleClass("invisible",!$checkboxes.filter(":checked").length),$elt.trigger("select."+ns)}),$$1("th.sorted",$rendering).removeClass("sorted"),$sortElement.addClass("sorted").addClass("sorted_"+options.sortorder),updateHeaderStatus(options,$rendering,dataset),$elt.html($rendering),options.filter&&options.filterquery&&$rendering.find(
"[name=filter].focused").focus(),enablePagination($elt.paginations),options.pageSizeSelector&&pageSizeSelector({renderTo:$$1(".toolbox-container",$rendering),defaultSize:options.rows}).on("change",function(val){self._setRows($elt,val)}),loadingBar.stop(),$elt.trigger("load."+ns,[dataset])},_setPage:function($elt,page){var options=$elt.data(dataNs);options.page!==page&&(options.page=page,$elt.data(dataNs,options),$elt.trigger("setpage."+ns),this._query($elt))},_filter:function($elt,$filter){var options=$elt.data(dataNs),filtersData=this._getFilterStrategy($elt).getFiltersData($elt,$filter,options);options.page=1,$elt.data(dataNs,_.assign(options,filtersData))
,$elt.trigger("filter."+ns,[options]),this._query($elt,$filter)},_getFilterStrategy:function(options){options=options.data(dataNs);return filterStrategyFactory(options)},_sort:function($elt,sortBy,asc,options){options=this._sortOptions($elt,sortBy,asc,options);$elt.trigger("sort."+ns,[options.sortby,options.sortorder,options.sorttype]),this._query($elt)},_canApplyShallowUpdate:function(currentData,nextData){if(!(_.has(currentData,"data")&&_.has(nextData,"data")))return!1;currentData=currentData.data,nextData=nextData.data;return currentData.length===nextData.length&&_.isEqual(currentData.map(function(data){return data.id}),nextData.map(function(data){
return data.id}))},_shallowUpdate:function($container,nextState,options){var currentState=$container.data("".concat(dataNs,"state"));if($container.data("".concat(dataNs,"state"),nextState),this._canApplyShallowUpdate(currentState,nextState))return nextState.data.forEach(function(nextData,index){var $row=$container.find('tr[data-item-identifier="'.concat(nextData.id,'"]'));options.model.forEach(function(nextContent){var $actionCell,cellId=nextContent.id;nextContent.type?(($actionCell=$row.find("td.actions.".concat(cellId))).html(""),nextContent.actions.forEach(function(label){var $actionButton,id=label.id,hidden=getPropertyValue("hidden",label,nextData),
title=getPropertyValue("title",label,nextData),disabled=getPropertyValue("disabled",label,nextData),icon=getPropertyValue("icon",label,nextData),label=getPropertyValue("label",label,nextData),$actionButton=$$1($actionButton=Template$1({id:id,icon:icon,label:label,title:title,disabled:disabled},$actionButton));hidden||$actionCell.append("\n").append($actionButton)})):(nextContent=nextData[cellId],$row.find("td.".concat(cellId)).html(DOMPurify.sanitize(nextContent)))})}),!0},_sortOptions:function($elt,sortBy,asc,sortType){var options=$elt.data(dataNs);return void 0!==asc?("asc"!==asc&&"desc"!==asc&&(asc=asc?"asc":"desc"),options.sortorder=asc
):"asc"===options.sortorder&&options.sortby===sortBy?options.sortorder="desc":options.sortorder="asc",options.sortby=sortBy,options.sorttype=sortType,$elt.data(dataNs,options),_.cloneDeep(options)},_selection:function($selected){var $selected=$selected.find("[data-item-identifier]").has("td.checkboxes input:checked"),selection=[];return $selected.each(function(){selection.push($$1(this).data("item-identifier"))}),selection},_highlightRows:function($elt,rowIds){var _this=this;$elt.find("[data-item-identifier]").removeClass("highlight"),rowIds.forEach(function(rowId){_this._highlightRow($elt,rowId)})},_highlightRow:function($elt,rowId){this._addRowClass($elt,
rowId,"highlight")},_addRowClass:function($elt,$row,className){$row=$elt.find('[data-item-identifier="'+$row+'"]');$row.hasClass(className)||$row.addClass(className)},_removeRowClass:function($elt,$row,className){$row=$elt.find('[data-item-identifier="'+$row+'"]');$row.hasClass(className)&&$row.removeClass(className)},_setRows:function($elt,rows){var options=$elt.data(dataNs);options.rows!==rows&&(options.rows=rows,options.page=1,$elt.data(dataNs,options),$elt.trigger("setpage."+ns),this._query($elt))}};Pluginifier.register(ns,dataTable,{expose:["refresh","sort","filter","selection","render","highlightRow","highlightRows","addRowClass","removeRowClass"]})}),
function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/flatpickr/flatpickr",factory):(global=global||self).flatpickr=factory()}(this,function(){"use strict";var __assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},HOOKS=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],defaults={
_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(err){return"undefined"!=typeof console&&console.warn(err)},getWeek:function(week1){var date=new Date(week1.getTime());date.setHours(0,0,0,0),date.setDate(date.getDate()+3-(date.getDay()+6)%7);week1=new Date(date.getFullYear(),0,4);return 1+Math.round((
(date.getTime()-week1.getTime())/864e5-3+(week1.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,
prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September",
"October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(s){s%=100;if(3<s&&s<21)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},pad=function(number){return("0"+number).slice(-2)},int=function(bool){return!0===bool?1:0};function debounce(func,wait,immediate){var timeout;return void 0===immediate&&(immediate=!1),function(){var context=this,args=arguments;null!==timeout&&clearTimeout(timeout),
timeout=window.setTimeout(function(){timeout=null,immediate||func.apply(context,args)},wait),immediate&&!timeout&&func.apply(context,args)}}var arrayify=function(obj){return obj instanceof Array?obj:[obj]};function toggleClass(elem,className,bool){if(!0===bool)return elem.classList.add(className);elem.classList.remove(className)}function createElement(e,className,content){e=window.document.createElement(e);return className=className||"",content=content||"",e.className=className,void 0!==content&&(e.textContent=content),e}function clearNode(node){for(;node.firstChild;)node.removeChild(node.firstChild)}function createNumberInput(arrowDown,opts){
var wrapper=createElement("div","numInputWrapper"),numInput=createElement("input","numInput "+arrowDown),arrowUp=createElement("span","arrowUp"),arrowDown=createElement("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?numInput.type="number":(numInput.type="text",numInput.pattern="\\d*"),void 0!==opts)for(var key in opts)numInput.setAttribute(key,opts[key]);return wrapper.appendChild(numInput),wrapper.appendChild(arrowUp),wrapper.appendChild(arrowDown),wrapper}function do_nothing(){}var monthToStr=function(monthNumber,shorthand,locale){return locale.months[shorthand?"shorthand":"longhand"][monthNumber]},revFormat={D:do_nothing,F:function(
dateObj,monthName,locale){dateObj.setMonth(locale.months.longhand.indexOf(monthName))},G:function(dateObj,hour){dateObj.setHours(parseFloat(hour))},H:function(dateObj,hour){dateObj.setHours(parseFloat(hour))},J:function(dateObj,day){dateObj.setDate(parseFloat(day))},K:function(dateObj,amPM,locale){dateObj.setHours(dateObj.getHours()%12+12*int(new RegExp(locale.amPM[1],"i").test(amPM)))},M:function(dateObj,shortMonth,locale){dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth))},S:function(dateObj,seconds){dateObj.setSeconds(parseFloat(seconds))},U:function(_,unixSeconds){return new Date(1e3*parseFloat(unixSeconds))},W:function(dateObj,weekNumber){
weekNumber=parseInt(weekNumber);return new Date(dateObj.getFullYear(),0,2+7*(weekNumber-1),0,0,0,0)},Y:function(dateObj,year){dateObj.setFullYear(parseFloat(year))},Z:function(_,ISODate){return new Date(ISODate)},d:function(dateObj,day){dateObj.setDate(parseFloat(day))},h:function(dateObj,hour){dateObj.setHours(parseFloat(hour))},i:function(dateObj,minutes){dateObj.setMinutes(parseFloat(minutes))},j:function(dateObj,day){dateObj.setDate(parseFloat(day))},l:do_nothing,m:function(dateObj,month){dateObj.setMonth(parseFloat(month)-1)},n:function(dateObj,month){dateObj.setMonth(parseFloat(month)-1)},s:function(dateObj,seconds){dateObj.setSeconds(parseFloat(
seconds))},u:function(_,unixMillSeconds){return new Date(parseFloat(unixMillSeconds))},w:do_nothing,y:function(dateObj,year){dateObj.setFullYear(2e3+parseFloat(year))}},tokenRegex={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},formats={Z:function(date){return date.toISOString()},D:function(date,locale,options){return locale.weekdays.shorthand[formats.w(date,locale,options)]},
F:function(date,locale,options){return monthToStr(formats.n(date,locale,options)-1,!1,locale)},G:function(date,locale,options){return pad(formats.h(date,locale,options))},H:function(date){return pad(date.getHours())},J:function(date,locale){return void 0!==locale.ordinal?date.getDate()+locale.ordinal(date.getDate()):date.getDate()},K:function(date,locale){return locale.amPM[int(11<date.getHours())]},M:function(date,locale){return monthToStr(date.getMonth(),!0,locale)},S:function(date){return pad(date.getSeconds())},U:function(date){return date.getTime()/1e3},W:function(date,_,options){return options.getWeek(date)},Y:function(date){return date.getFullYear()},
d:function(date){return pad(date.getDate())},h:function(date){return date.getHours()%12?date.getHours()%12:12},i:function(date){return pad(date.getMinutes())},j:function(date){return date.getDate()},l:function(date,locale){return locale.weekdays.longhand[date.getDay()]},m:function(date){return pad(date.getMonth()+1)},n:function(date){return date.getMonth()+1},s:function(date){return date.getSeconds()},u:function(date){return date.getTime()},w:function(date){return date.getDay()},y:function(date){return String(date.getFullYear()).substring(2)}},createDateFormatter=function(_c){var _b=_c.config,config=void 0===_b?defaults:_b,_c=_c.l10n,
l10n=void 0===_c?english:_c;return function(dateObj,frmt,overrideLocale){var locale=overrideLocale||l10n;return void 0!==config.formatDate?config.formatDate(dateObj,frmt,locale):frmt.split("").map(function(c,i,arr){return formats[c]&&"\\"!==arr[i-1]?formats[c](dateObj,locale,config):"\\"!==c?c:""}).join("")}},createDateParser=function(_c){var _b=_c.config,config=void 0===_b?defaults:_b,_c=_c.l10n,l10n=void 0===_c?english:_c;return function(date,datestr,timeless,date_orig){if(0===date||date){var parsedDate,locale=date_orig||l10n,date_orig=date;if(date instanceof Date)parsedDate=new Date(date.getTime());else if("string"!=typeof date&&void 0!==date.toFixed
)parsedDate=new Date(date);else if("string"==typeof date){var format=datestr||(config||defaults).dateFormat,datestr=String(date).trim();if("today"===datestr)parsedDate=new Date,timeless=!0;else if(/Z$/.test(datestr)||/GMT$/.test(datestr))parsedDate=new Date(date);else if(config&&config.parseDate)parsedDate=config.parseDate(date,format);else{parsedDate=config&&config.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var matched=void 0,ops=[],i=0,matchIndex=0,regexStr="";i<format.length;i++){var token_1=format[i],isBackSlash="\\"===token_1,match="\\"===format[i-1]||isBackSlash;tokenRegex[token_1]&&!match?(
regexStr+=tokenRegex[token_1],(match=new RegExp(regexStr).exec(date))&&(matched=!0)&&ops["Y"!==token_1?"push":"unshift"]({fn:revFormat[token_1],val:match[++matchIndex]})):isBackSlash||(regexStr+="."),ops.forEach(function(val){var fn=val.fn,val=val.val;return parsedDate=fn(parsedDate,val,locale)||parsedDate})}parsedDate=matched?parsedDate:void 0}}if(parsedDate instanceof Date&&!isNaN(parsedDate.getTime()))return!0===timeless&&parsedDate.setHours(0,0,0,0),parsedDate;config.errorHandler(new Error("Invalid date provided: "+date_orig))}}};function compareDates(date1,date2,timeless){return void 0===timeless&&(timeless=!0),!1!==timeless?new Date(date1.getTime()
).setHours(0,0,0,0)-new Date(date2.getTime()).setHours(0,0,0,0):date1.getTime()-date2.getTime()}var isBetween=function(ts,ts1,ts2){return ts>Math.min(ts1,ts2)&&ts<Math.max(ts1,ts2)},duration={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(target){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];if(!target)throw TypeError("Cannot convert undefined or null to object");for(var _a=0,args_1=args;_a<args_1.length;_a++){!function(source){source&&Object.keys(source).forEach(function(key){return target[key]=source[key]})}(args_1[_a])}return target});var DEBOUNCED_CHANGE_MS=300;function FlatpickrInstance(element,
instanceConfig){var self={config:__assign({},flatpickr.defaultConfig),l10n:english};function bindToInstance(fn){return fn.bind(self)}function setCalendarWidth(){var config=self.config;!1===config.weekNumbers&&1===config.showMonths||!0!==config.noCalendar&&window.requestAnimationFrame(function(){var daysWidth;void 0!==self.calendarContainer&&(self.calendarContainer.style.visibility="hidden",self.calendarContainer.style.display="block"),void 0!==self.daysContainer&&(daysWidth=(self.days.offsetWidth+1)*config.showMonths,self.daysContainer.style.width=daysWidth+"px",self.calendarContainer.style.width=daysWidth+(
void 0!==self.weekWrapper?self.weekWrapper.offsetWidth:0)+"px",self.calendarContainer.style.removeProperty("visibility"),self.calendarContainer.style.removeProperty("display"))})}function updateTime(prevValue){0===self.selectedDates.length&&setDefaultTime(),void 0!==prevValue&&"blur"!==prevValue.type&&function(isHourElem){isHourElem.preventDefault();var newValue="keydown"===isHourElem.type,input=isHourElem.target;void 0!==self.amPM&&isHourElem.target===self.amPM&&(self.amPM.textContent=self.l10n.amPM[int(self.amPM.textContent===self.l10n.amPM[0])]);var min=parseFloat(input.getAttribute("min")),max=parseFloat(input.getAttribute("max")),step=parseFloat(
input.getAttribute("step")),curValue=parseInt(input.value,10),isMinuteElem=isHourElem.delta||(newValue?38===isHourElem.which?1:-1:0),newValue=curValue+step*isMinuteElem;{void 0!==input.value&&2===input.value.length&&(isHourElem=input===self.hourElement,isMinuteElem=input===self.minuteElement,newValue<min?(newValue=max+newValue+int(!isHourElem)+(int(isHourElem)&&int(!self.amPM)),isMinuteElem&&incrementNumInput(void 0,-1,self.hourElement)):max<newValue&&(newValue=input===self.hourElement?newValue-max-int(!self.amPM):min,isMinuteElem&&incrementNumInput(void 0,1,self.hourElement)),self.amPM&&isHourElem&&(1===step?newValue+curValue===23:Math.abs(newValue-curValue
)>step)&&(self.amPM.textContent=self.l10n.amPM[int(self.amPM.textContent===self.l10n.amPM[0])]),input.value=pad(newValue))}}(prevValue);prevValue=self._input.value;setHoursFromInputs(),updateValue(),self._input.value!==prevValue&&self._debouncedChange()}function setHoursFromInputs(){var minutes,seconds,maxTime,hours,minTime;void 0!==self.hourElement&&void 0!==self.minuteElement&&(hours=(parseInt(self.hourElement.value.slice(-2),10)||0)%24,minutes=(parseInt(self.minuteElement.value,10)||0)%60,seconds=void 0!==self.secondElement?(parseInt(self.secondElement.value,10)||0)%60:0,void 0!==self.amPM&&(minTime=hours,maxTime=self.amPM.textContent,
hours=minTime%12+12*int(maxTime===self.l10n.amPM[1])),minTime=void 0!==self.config.minTime||self.config.minDate&&self.minDateHasTime&&self.latestSelectedDateObj&&0===compareDates(self.latestSelectedDateObj,self.config.minDate,!0),(void 0!==self.config.maxTime||self.config.maxDate&&self.maxDateHasTime&&self.latestSelectedDateObj&&0===compareDates(self.latestSelectedDateObj,self.config.maxDate,!0))&&(maxTime=void 0!==self.config.maxTime?self.config.maxTime:self.config.maxDate,(hours=Math.min(hours,maxTime.getHours()))===maxTime.getHours()&&(minutes=Math.min(minutes,maxTime.getMinutes())),minutes===maxTime.getMinutes()&&(seconds=Math.min(seconds,
maxTime.getSeconds()))),minTime&&(minTime=void 0!==self.config.minTime?self.config.minTime:self.config.minDate,(hours=Math.max(hours,minTime.getHours()))===minTime.getHours()&&(minutes=Math.max(minutes,minTime.getMinutes())),minutes===minTime.getMinutes()&&(seconds=Math.max(seconds,minTime.getSeconds()))),setHours(hours,minutes,seconds))}function setHoursFromDate(date){date=date||self.latestSelectedDateObj;date&&setHours(date.getHours(),date.getMinutes(),date.getSeconds())}function setDefaultHours(){var max_hr,max_minutes,hours=self.config.defaultHour,minutes=self.config.defaultMinute,seconds=self.config.defaultSeconds;void 0!==self.config.minDate&&(
max_hr=self.config.minDate.getHours(),max_minutes=self.config.minDate.getMinutes(),(hours=Math.max(hours,max_hr))===max_hr&&(minutes=Math.max(max_minutes,minutes)),hours===max_hr&&minutes===max_minutes&&(seconds=self.config.minDate.getSeconds())),void 0!==self.config.maxDate&&(max_hr=self.config.maxDate.getHours(),max_minutes=self.config.maxDate.getMinutes(),(hours=Math.min(hours,max_hr))===max_hr&&(minutes=Math.min(max_minutes,minutes)),hours===max_hr&&minutes===max_minutes&&(seconds=self.config.maxDate.getSeconds())),setHours(hours,minutes,seconds)}function setHours(hours,minutes,seconds){
void 0!==self.latestSelectedDateObj&&self.latestSelectedDateObj.setHours(hours%24,minutes,seconds||0,0),self.hourElement&&self.minuteElement&&!self.isMobile&&(self.hourElement.value=pad(self.config.time_24hr?hours:(12+hours)%12+12*int(hours%12==0)),self.minuteElement.value=pad(minutes),void 0!==self.amPM&&(self.amPM.textContent=self.l10n.amPM[int(12<=hours)]),void 0!==self.secondElement&&(self.secondElement.value=pad(seconds)))}function onYearInput(event){var year=parseInt(event.target.value)+(event.delta||0);(1<year/1e3||"Enter"===event.key&&!/[^\d]/.test(year.toString()))&&changeYear(year)}function bind(element,event,handler,options){
return event instanceof Array?event.forEach(function(ev){return bind(element,ev,handler,options)}):element instanceof Array?element.forEach(function(el){return bind(el,event,handler,options)}):(element.addEventListener(event,handler,options),void self._handlers.push({element:element,event:event,handler:handler,options:options}))}function onClick(handler){return function(evt){1===evt.which&&handler(evt)}}function triggerChange(){triggerEvent("onChange")}function jumpToDate(jumpDate){var jumpTo=void 0!==jumpDate?self.parseDate(jumpDate):self.latestSelectedDateObj||(
self.config.minDate&&self.config.minDate>self.now?self.config.minDate:self.config.maxDate&&self.config.maxDate<self.now?self.config.maxDate:self.now);try{void 0!==jumpTo&&(self.currentYear=jumpTo.getFullYear(),self.currentMonth=jumpTo.getMonth())}catch(e){e.message="Invalid date supplied: "+jumpTo,self.config.errorHandler(e)}self.redraw()}function timeIncrement(e){~e.target.className.indexOf("arrow")&&incrementNumInput(e,e.target.classList.contains("arrowUp")?1:-1)}function incrementNumInput(event,delta,input){event=event&&event.target,input=input||event&&event.parentNode&&event.parentNode.firstChild,event=createEvent("increment");event.delta=delta,
input&&input.dispatchEvent(event)}function createDay(className,date,dayNumber,i){var dateIsEnabled=isEnabled(date,!0),dayElement=createElement("span","flatpickr-day "+className,date.getDate().toString());return dayElement.dateObj=date,dayElement.$i=i,dayElement.setAttribute("aria-label",self.formatDate(date,self.config.ariaDateFormat)),-1===className.indexOf("hidden")&&0===compareDates(date,self.now)&&((self.todayDateElem=dayElement).classList.add("today"),dayElement.setAttribute("aria-current","date")),dateIsEnabled?(dayElement.tabIndex=-1,isDateSelected(date)&&(dayElement.classList.add("selected"),self.selectedDateElem=dayElement,
"range"===self.config.mode&&(toggleClass(dayElement,"startRange",self.selectedDates[0]&&0===compareDates(date,self.selectedDates[0],!0)),toggleClass(dayElement,"endRange",self.selectedDates[1]&&0===compareDates(date,self.selectedDates[1],!0)),"nextMonthDay"===className&&dayElement.classList.add("inRange")))):dayElement.classList.add("disabled"),"range"===self.config.mode&&(!function(date){return!("range"!==self.config.mode||self.selectedDates.length<2)&&(0<=compareDates(date,self.selectedDates[0])&&compareDates(date,self.selectedDates[1])<=0)}(date)||isDateSelected(date)||dayElement.classList.add("inRange")),
self.weekNumbers&&1===self.config.showMonths&&"prevMonthDay"!==className&&dayNumber%7==1&&self.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+self.config.getWeek(date)+"</span>"),triggerEvent("onDayCreate",dayElement),dayElement}function focusOnDayElem(targetNode){targetNode.focus(),"range"===self.config.mode&&onMouseOver(targetNode)}function getFirstAvailableDay(delta){for(var startMonth=0<delta?0:self.config.showMonths-1,endMonth=0<delta?self.config.showMonths:-1,m=startMonth;m!=endMonth;m+=delta)for(var month=self.daysContainer.children[m],startIndex=0<delta?0:month.children.length-1,endIndex=0<delta?month.children.length:-1,
i=startIndex;i!=endIndex;i+=delta){var c=month.children[i];if(-1===c.className.indexOf("hidden")&&isEnabled(c.dateObj))return c}}function focusOnDay(startElem,offset){var dayFocused=isInView(document.activeElement||document.body),startElem=void 0!==startElem?startElem:dayFocused?document.activeElement:void 0!==self.selectedDateElem&&isInView(self.selectedDateElem)?self.selectedDateElem:void 0!==self.todayDateElem&&isInView(self.todayDateElem)?self.todayDateElem:getFirstAvailableDay(0<offset?1:-1);return void 0===startElem?self._input.focus():dayFocused?void function(current,delta){for(var givenMonth=-1===current.className.indexOf("Month"
)?current.dateObj.getMonth():self.currentMonth,endMonth=0<delta?self.config.showMonths:-1,loopDelta=0<delta?1:-1,m=givenMonth-self.currentMonth;m!=endMonth;m+=loopDelta)for(var month=self.daysContainer.children[m],startIndex=givenMonth-self.currentMonth===m?current.$i+delta:delta<0?month.children.length-1:0,numMonthDays=month.children.length,i=startIndex;0<=i&&i<numMonthDays&&i!=(0<delta?numMonthDays:-1);i+=loopDelta){var c=month.children[i];if(-1===c.className.indexOf("hidden")&&isEnabled(c.dateObj)&&Math.abs(current.$i-i)>=Math.abs(delta))return focusOnDayElem(c)}self.changeMonth(loopDelta),focusOnDay(getFirstAvailableDay(loopDelta),0)}(startElem,offset):(
focusOnDayElem(startElem),0)}function buildDays(){if(void 0!==self.daysContainer){clearNode(self.daysContainer),self.weekNumbers&&clearNode(self.weekNumbers);for(var frag=document.createDocumentFragment(),i=0;i<self.config.showMonths;i++){var d=new Date(self.currentYear,self.currentMonth,1);d.setMonth(self.currentMonth+i),frag.appendChild(function(year,month){for(var firstOfMonth=(new Date(year,month,1).getDay()-self.l10n.firstDayOfWeek+7)%7,prevMonthDays=self.utils.getDaysInMonth((month-1+12)%12),daysInMonth=self.utils.getDaysInMonth(month),days=window.document.createDocumentFragment(),dayContainer=1<self.config.showMonths,
prevMonthDayClass=dayContainer?"prevMonthDay hidden":"prevMonthDay",nextMonthDayClass=dayContainer?"nextMonthDay hidden":"nextMonthDay",dayNumber=prevMonthDays+1-firstOfMonth,dayIndex=0;dayNumber<=prevMonthDays;dayNumber++,dayIndex++)days.appendChild(createDay(prevMonthDayClass,new Date(year,month-1,dayNumber),dayNumber,dayIndex));for(dayNumber=1;dayNumber<=daysInMonth;dayNumber++,dayIndex++)days.appendChild(createDay("",new Date(year,month,dayNumber),dayNumber,dayIndex));for(var dayNum=daysInMonth+1;dayNum<=42-firstOfMonth&&(1===self.config.showMonths||dayIndex%7!=0);dayNum++,dayIndex++)days.appendChild(createDay(nextMonthDayClass,new Date(year,month+1,
dayNum%daysInMonth),dayNum,dayIndex));return(dayContainer=createElement("div","dayContainer")).appendChild(days),dayContainer}(d.getFullYear(),d.getMonth()))}self.daysContainer.appendChild(frag),self.days=self.daysContainer.firstChild,"range"===self.config.mode&&1===self.selectedDates.length&&onMouseOver()}}function buildMonths(){clearNode(self.monthNav),self.monthNav.appendChild(self.prevMonthNav),self.config.showMonths&&(self.yearElements=[],self.monthElements=[]);for(var m=self.config.showMonths;m--;){var month=function(){var container=createElement("div","flatpickr-month"),monthNavFragment=window.document.createDocumentFragment(),
monthElement=createElement("span","cur-month"),yearInput=createNumberInput("cur-year",{tabindex:"-1"}),yearElement=yearInput.getElementsByTagName("input")[0];yearElement.setAttribute("aria-label",self.l10n.yearAriaLabel),self.config.minDate&&yearElement.setAttribute("min",self.config.minDate.getFullYear().toString()),self.config.maxDate&&(yearElement.setAttribute("max",self.config.maxDate.getFullYear().toString()),yearElement.disabled=!!self.config.minDate&&self.config.minDate.getFullYear()===self.config.maxDate.getFullYear());var currentMonth=createElement("div","flatpickr-current-month");return currentMonth.appendChild(monthElement),
currentMonth.appendChild(yearInput),monthNavFragment.appendChild(currentMonth),container.appendChild(monthNavFragment),{container:container,yearElement:yearElement,monthElement:monthElement}}();self.yearElements.push(month.yearElement),self.monthElements.push(month.monthElement),self.monthNav.appendChild(month.container)}self.monthNav.appendChild(self.nextMonthNav)}function buildWeekdays(){self.weekdayContainer?clearNode(self.weekdayContainer):self.weekdayContainer=createElement("div","flatpickr-weekdays");for(var i=self.config.showMonths;i--;){var container=createElement("div","flatpickr-weekdaycontainer");self.weekdayContainer.appendChild(container)}
return updateWeekdays(),self.weekdayContainer}function updateWeekdays(){var firstDayOfWeek=self.l10n.firstDayOfWeek,weekdays=self.l10n.weekdays.shorthand.slice();0<firstDayOfWeek&&firstDayOfWeek<weekdays.length&&(weekdays=weekdays.splice(firstDayOfWeek,weekdays.length).concat(weekdays.splice(0,firstDayOfWeek)));for(var i=self.config.showMonths;i--;)self.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+weekdays.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}function changeMonth(delta,is_offset){void 0===is_offset&&(is_offset=!0);delta=is_offset?delta:delta-self.currentMonth
;delta<0&&!0===self._hidePrevMonthArrow||0<delta&&!0===self._hideNextMonthArrow||(self.currentMonth+=delta,(self.currentMonth<0||11<self.currentMonth)&&(self.currentYear+=11<self.currentMonth?1:-1,self.currentMonth=(self.currentMonth+12)%12,triggerEvent("onYearChange")),buildDays(),triggerEvent("onMonthChange"),updateNavigationCurrentMonth())}function isCalendarElem(elem){return!(!self.config.appendTo||!self.config.appendTo.contains(elem))||self.calendarContainer.contains(elem)}function documentClick(isIgnored){var eventTarget_1,lostFocus,isInput;self.isOpen&&!self.config.inline&&(lostFocus=isCalendarElem(eventTarget_1="function"!=typeof(isInput=isIgnored
).composedPath?isInput.target:isInput.composedPath()[0]),isInput=eventTarget_1===self.input||eventTarget_1===self.altInput||self.element.contains(eventTarget_1)||isIgnored.path&&isIgnored.path.indexOf&&(~isIgnored.path.indexOf(self.input)||~isIgnored.path.indexOf(self.altInput)),lostFocus="blur"===isIgnored.type?isInput&&isIgnored.relatedTarget&&!isCalendarElem(isIgnored.relatedTarget):!isInput&&!lostFocus&&!isCalendarElem(isIgnored.relatedTarget),isIgnored=!self.config.ignoredFocusElements.some(function(elem){return elem.contains(eventTarget_1)}),lostFocus&&isIgnored&&(self.close(),"range"===self.config.mode&&1===self.selectedDates.length&&(self.clear(!1),
self.redraw())))}function changeYear(newYear){var isNewYear;!newYear||self.config.minDate&&newYear<self.config.minDate.getFullYear()||self.config.maxDate&&newYear>self.config.maxDate.getFullYear()||(isNewYear=self.currentYear!==newYear,self.currentYear=newYear||self.currentYear,self.config.maxDate&&self.currentYear===self.config.maxDate.getFullYear()?self.currentMonth=Math.min(self.config.maxDate.getMonth(),self.currentMonth):self.config.minDate&&self.currentYear===self.config.minDate.getFullYear()&&(self.currentMonth=Math.max(self.config.minDate.getMonth(),self.currentMonth)),isNewYear&&(self.redraw(),triggerEvent("onYearChange")))}function isEnabled(date,
timeless){void 0===timeless&&(timeless=!0);var dateToCheck=self.parseDate(date,void 0,timeless);if(self.config.minDate&&dateToCheck&&compareDates(dateToCheck,self.config.minDate,void 0!==timeless?timeless:!self.minDateHasTime)<0||self.config.maxDate&&dateToCheck&&0<compareDates(dateToCheck,self.config.maxDate,void 0!==timeless?timeless:!self.maxDateHasTime))return!1;if(0===self.config.enable.length&&0===self.config.disable.length)return!0;if(void 0===dateToCheck)return!1;for(var bool=0<self.config.enable.length,array=bool?self.config.enable:self.config.disable,i=0,d=void 0;i<array.length;i++){if("function"==typeof(d=array[i])&&d(dateToCheck))return bool;if(
d instanceof Date&&void 0!==dateToCheck&&d.getTime()===dateToCheck.getTime())return bool;if("string"==typeof d&&void 0!==dateToCheck){var parsed=self.parseDate(d,void 0,!0);return parsed&&parsed.getTime()===dateToCheck.getTime()?bool:!bool}if("object"==typeof d&&void 0!==dateToCheck&&d.from&&d.to&&dateToCheck.getTime()>=d.from.getTime()&&dateToCheck.getTime()<=d.to.getTime())return bool}return!bool}function isInView(elem){return void 0!==self.daysContainer&&(-1===elem.className.indexOf("hidden")&&self.daysContainer.contains(elem))}function onKeyDown(e){var isInput=e.target===self._input,delta_1=self.config.allowInput,allowKeydown=self.isOpen&&(
!delta_1||!isInput),target=self.config.inline&&isInput&&!delta_1;if(13===e.keyCode&&isInput){if(delta_1)return self.setDate(self._input.value,!0,e.target===self.altInput?self.config.altFormat:self.config.dateFormat),e.target.blur();self.open()}else if(isCalendarElem(e.target)||allowKeydown||target){target=!!self.timeContainer&&self.timeContainer.contains(e.target);switch(e.keyCode){case 13:target?(updateTime(),focusAndClose()):selectDate(e);break;case 27:e.preventDefault(),focusAndClose();break;case 8:case 46:isInput&&!self.config.allowInput&&(e.preventDefault(),self.clear());break;case 37:case 39:target?self.hourElement&&self.hourElement.focus():(
e.preventDefault(),void 0!==self.daysContainer&&(!1===delta_1||document.activeElement&&isInView(document.activeElement))&&(delta_1=39===e.keyCode?1:-1,e.ctrlKey?(e.stopPropagation(),changeMonth(delta_1),focusOnDay(getFirstAvailableDay(1),0)):focusOnDay(void 0,delta_1)));break;case 38:case 40:e.preventDefault();var elems=40===e.keyCode?1:-1;self.daysContainer&&void 0!==e.target.$i||e.target===self.input?e.ctrlKey?(e.stopPropagation(),changeYear(self.currentYear-elems),focusOnDay(getFirstAvailableDay(1),0)):target||focusOnDay(void 0,7*elems):self.config.enableTime&&(!target&&self.hourElement&&self.hourElement.focus(),updateTime(e),self._debouncedChange())
;break;case 9:!target||-1!==(target=(elems=[self.hourElement,self.minuteElement,self.secondElement,self.amPM].filter(function(x){return x})).indexOf(e.target))&&(void 0!==(target=elems[target+(e.shiftKey?-1:1)])?(e.preventDefault(),target.focus()):e.shiftKey&&(e.preventDefault(),self._input.focus()))}}if(void 0!==self.amPM&&e.target===self.amPM)switch(e.key){case self.l10n.amPM[0].charAt(0):case self.l10n.amPM[0].charAt(0).toLowerCase():self.amPM.textContent=self.l10n.amPM[0],setHoursFromInputs(),updateValue();break;case self.l10n.amPM[1].charAt(0):case self.l10n.amPM[1].charAt(0).toLowerCase():self.amPM.textContent=self.l10n.amPM[1],setHoursFromInputs(),
updateValue()}triggerEvent("onKeyDown",e)}function onMouseOver(elem){if(1===self.selectedDates.length&&(!elem||elem.classList.contains("flatpickr-day")&&!elem.classList.contains("disabled"))){for(var hoverDate=(elem||self.days.firstElementChild).dateObj.getTime(),initialDate=self.parseDate(self.selectedDates[0],void 0,!0).getTime(),rangeStartDate=Math.min(hoverDate,self.selectedDates[0].getTime()),rangeEndDate=Math.max(hoverDate,self.selectedDates[0].getTime()),lastDate=self.daysContainer.lastChild.lastChild.dateObj.getTime(),containsDisabled=!1,minRange=0,maxRange=0,t=rangeStartDate;t<lastDate;t+=duration.DAY)isEnabled(new Date(t),!0)||(
containsDisabled=containsDisabled||rangeStartDate<t&&t<rangeEndDate,t<initialDate&&(!minRange||minRange<t)?minRange=t:initialDate<t&&(!maxRange||t<maxRange)&&(maxRange=t));for(var m=0;m<self.config.showMonths;m++)for(var month=self.daysContainer.children[m],prevMonth=self.daysContainer.children[m-1],i=0,l=month.children.length;i<l;i++)!function(outOfRange){var dayElem=month.children[outOfRange],timestamp=dayElem.dateObj.getTime(),outOfRange=0<minRange&&timestamp<minRange||0<maxRange&&maxRange<timestamp;outOfRange?(dayElem.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(c){dayElem.classList.remove(c)})
):containsDisabled&&!outOfRange||(["startRange","inRange","endRange","notAllowed"].forEach(function(c){dayElem.classList.remove(c)}),void 0!==elem&&(elem.classList.add(hoverDate<self.selectedDates[0].getTime()?"startRange":"endRange"),!month.contains(elem)&&0<m&&prevMonth&&prevMonth.lastChild.dateObj.getTime()>=timestamp||(initialDate<hoverDate&&timestamp===initialDate?dayElem.classList.add("startRange"):hoverDate<initialDate&&timestamp===initialDate&&dayElem.classList.add("endRange"),minRange<=timestamp&&(0===maxRange||timestamp<=maxRange)&&isBetween(timestamp,initialDate,hoverDate)&&dayElem.classList.add("inRange"))))}(i)}}function onResize(){
!self.isOpen||self.config.static||self.config.inline||positionCalendar()}function setDefaultTime(){self.setDate(void 0!==self.config.minDate?new Date(self.config.minDate.getTime()):new Date,!1),setDefaultHours(),updateValue()}function minMaxDateSetter(type){return function(inverseDateObj){var dateObj=self.config["_"+type+"Date"]=self.parseDate(inverseDateObj,self.config.dateFormat),inverseDateObj=self.config["_"+("min"===type?"max":"min")+"Date"];void 0!==dateObj&&(self["min"===type?"minDateHasTime":"maxDateHasTime"]=0<dateObj.getHours()||0<dateObj.getMinutes()||0<dateObj.getSeconds()),self.selectedDates&&(self.selectedDates=self.selectedDates.filter(
function(d){return isEnabled(d)}),self.selectedDates.length||"min"!==type||setHoursFromDate(dateObj),updateValue()),self.daysContainer&&(redraw(),void 0!==dateObj?self.currentYearElement[type]=dateObj.getFullYear().toString():self.currentYearElement.removeAttribute(type),self.currentYearElement.disabled=!!inverseDateObj&&void 0!==dateObj&&inverseDateObj.getFullYear()===dateObj.getFullYear())}}function setupLocale(){"object"!=typeof self.config.locale&&void 0===flatpickr.l10ns[self.config.locale]&&self.config.errorHandler(new Error("flatpickr: invalid locale "+self.config.locale)),self.l10n=__assign({},flatpickr.l10ns.default,
"object"==typeof self.config.locale?self.config.locale:"default"!==self.config.locale?flatpickr.l10ns[self.config.locale]:void 0),tokenRegex.K="("+self.l10n.amPM[0]+"|"+self.l10n.amPM[1]+"|"+self.l10n.amPM[0].toLowerCase()+"|"+self.l10n.amPM[1].toLowerCase()+")",self.formatDate=createDateFormatter(self),self.parseDate=createDateParser({config:self.config,l10n:self.l10n})}function positionCalendar(centerStyle){var top,left,right,doc,centerLeft,centerIndex;void 0!==self.calendarContainer&&(triggerEvent("onPreCalendarPosition"),right=centerStyle||self._positionElement,left=Array.prototype.reduce.call(self.calendarContainer.children,function(acc,child){
return acc+child.offsetHeight},0),centerIndex=self.calendarContainer.offsetWidth,doc=(top=self.config.position.split(" "))[0],centerLeft=1<top.length?top[1]:null,centerStyle=right.getBoundingClientRect(),top=window.innerHeight-centerStyle.bottom,doc="above"===doc||"below"!==doc&&top<left&&centerStyle.top>left,top=window.pageYOffset+centerStyle.top+(doc?-left-2:right.offsetHeight+2),toggleClass(self.calendarContainer,"arrowTop",!doc),toggleClass(self.calendarContainer,"arrowBottom",doc),self.config.inline||(left=window.pageXOffset+centerStyle.left-(null!=centerLeft&&"center"===centerLeft?(centerIndex-centerStyle.width)/2:0),
right=window.document.body.offsetWidth-centerStyle.right,doc=left+centerIndex>window.document.body.offsetWidth,centerLeft=right+centerIndex>window.document.body.offsetWidth,toggleClass(self.calendarContainer,"rightMost",doc),self.config.static||(self.calendarContainer.style.top=top+"px",doc?centerLeft?void 0!==(doc=document.styleSheets[0])&&(centerLeft=window.document.body.offsetWidth,centerLeft=Math.max(0,centerLeft/2-centerIndex/2),centerIndex=doc.cssRules.length,centerStyle="{left:"+centerStyle.left+"px;right:auto;}",toggleClass(self.calendarContainer,"rightMost",!1),toggleClass(self.calendarContainer,"centerMost",!0),doc.insertRule(
".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+centerStyle,centerIndex),self.calendarContainer.style.left=centerLeft+"px",self.calendarContainer.style.right="auto"):(self.calendarContainer.style.left="auto",self.calendarContainer.style.right=right+"px"):(self.calendarContainer.style.left=left+"px",self.calendarContainer.style.right="auto"))))}function redraw(){self.config.noCalendar||self.isMobile||(updateNavigationCurrentMonth(),buildDays())}function focusAndClose(){self._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(self.close,0):self.close()}function selectDate(
selectedDate){selectedDate.preventDefault(),selectedDate.stopPropagation();var isNewYear,range,single=function findParent(node,condition){return condition(node)?node:node.parentNode?findParent(node.parentNode,condition):void 0}(selectedDate.target,function(day){return day.classList&&day.classList.contains("flatpickr-day")&&!day.classList.contains("disabled")&&!day.classList.contains("notAllowed")});void 0!==single&&(range=single,single=((selectedDate=self.latestSelectedDateObj=new Date(range.dateObj.getTime())).getMonth()<self.currentMonth||selectedDate.getMonth()>self.currentMonth+self.config.showMonths-1)&&"range"!==self.config.mode,
self.selectedDateElem=range,"single"===self.config.mode?self.selectedDates=[selectedDate]:"multiple"===self.config.mode?(isNewYear=isDateSelected(selectedDate))?self.selectedDates.splice(parseInt(isNewYear),1):self.selectedDates.push(selectedDate):"range"===self.config.mode&&(2===self.selectedDates.length&&self.clear(!1,!1),self.latestSelectedDateObj=selectedDate,self.selectedDates.push(selectedDate),0!==compareDates(selectedDate,self.selectedDates[0],!0)&&self.selectedDates.sort(function(a,b){return a.getTime()-b.getTime()})),setHoursFromInputs(),single&&(isNewYear=self.currentYear!==selectedDate.getFullYear(),self.currentYear=selectedDate.getFullYear(),
self.currentMonth=selectedDate.getMonth(),isNewYear&&triggerEvent("onYearChange"),triggerEvent("onMonthChange")),updateNavigationCurrentMonth(),buildDays(),updateValue(),self.config.enableTime&&setTimeout(function(){return self.showTimeInput=!0},50),single||"range"===self.config.mode||1!==self.config.showMonths?void 0!==self.selectedDateElem&&void 0===self.hourElement&&self.selectedDateElem&&self.selectedDateElem.focus():focusOnDayElem(range),void 0!==self.hourElement&&void 0!==self.hourElement&&self.hourElement.focus(),self.config.closeOnSelect&&(single="single"===self.config.mode&&!self.config.enableTime,
range="range"===self.config.mode&&2===self.selectedDates.length&&!self.config.enableTime,(single||range)&&focusAndClose()),triggerChange())}self.parseDate=createDateParser({config:self.config,l10n:self.l10n}),self._handlers=[],self._bind=bind,self._setHoursFromDate=setHoursFromDate,self._positionCalendar=positionCalendar,self.changeMonth=changeMonth,self.changeYear=changeYear,self.clear=function(triggerChangeEvent,toInitial){void 0===triggerChangeEvent&&(triggerChangeEvent=!0);void 0===toInitial&&(toInitial=!0);self.input.value="",void 0!==self.altInput&&(self.altInput.value="");void 0!==self.mobileInput&&(self.mobileInput.value="");self.selectedDates=[],!(
self.latestSelectedDateObj=void 0)===toInitial&&(self.currentYear=self._initialDate.getFullYear(),self.currentMonth=self._initialDate.getMonth());!(self.showTimeInput=!1)===self.config.enableTime&&setDefaultHours();self.redraw(),triggerChangeEvent&&triggerEvent("onChange")},self.close=function(){self.isOpen=!1,self.isMobile||(void 0!==self.calendarContainer&&self.calendarContainer.classList.remove("open"),void 0!==self._input&&self._input.classList.remove("active"));triggerEvent("onClose")},self._createElement=createElement,self.destroy=function(){void 0!==self.config&&triggerEvent("onDestroy");for(var i=self._handlers.length;i--;){var h=self._handlers[i]
;h.element.removeEventListener(h.event,h.handler,h.options)}if(self._handlers=[],self.mobileInput)self.mobileInput.parentNode&&self.mobileInput.parentNode.removeChild(self.mobileInput),self.mobileInput=void 0;else if(self.calendarContainer&&self.calendarContainer.parentNode)if(self.config.static&&self.calendarContainer.parentNode){var wrapper=self.calendarContainer.parentNode;if(wrapper.lastChild&&wrapper.removeChild(wrapper.lastChild),wrapper.parentNode){for(;wrapper.firstChild;)wrapper.parentNode.insertBefore(wrapper.firstChild,wrapper);wrapper.parentNode.removeChild(wrapper)}}else self.calendarContainer.parentNode.removeChild(self.calendarContainer)
;self.altInput&&(self.input.type="text",self.altInput.parentNode&&self.altInput.parentNode.removeChild(self.altInput),delete self.altInput);self.input&&(self.input.type=self.input._type,self.input.classList.remove("flatpickr-input"),self.input.removeAttribute("readonly"),self.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav",
"nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(k){try{delete self[k]}catch(_){}})},self.isEnabled=isEnabled,self.jumpToDate=jumpToDate,self.open=function(e,positionElement){void 0===positionElement&&(positionElement=self._positionElement);if(!0===self.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==self.mobileInput&&(self.mobileInput.focus(),self.mobileInput.click()),void triggerEvent("onOpen");if(self._input.disabled||self.config.inline)return;var wasOpen=self.isOpen;self.isOpen=!0,wasOpen||(self.calendarContainer.classList.add("open"),
self._input.classList.add("active"),triggerEvent("onOpen"),positionCalendar(positionElement));!0===self.config.enableTime&&!0===self.config.noCalendar&&(0===self.selectedDates.length&&setDefaultTime(),!1!==self.config.allowInput||void 0!==e&&self.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return self.hourElement.select()},50))},self.redraw=redraw,self.set=function(option,value){null!==option&&"object"==typeof option?Object.assign(self.config,option):(self.config[option]=value,void 0!==CALLBACKS[option]?CALLBACKS[option].forEach(function(x){return x()}):-1<HOOKS.indexOf(option)&&(self.config[option]=arrayify(value)));self.redraw(),
updateValue(!1)},self.setDate=function(date,triggerChange,format){void 0===triggerChange&&(triggerChange=!1);void 0===format&&(format=self.config.dateFormat);if(0!==date&&!date||date instanceof Array&&0===date.length)return self.clear(triggerChange);setSelectedDate(date,format),self.showTimeInput=0<self.selectedDates.length,self.latestSelectedDateObj=self.selectedDates[0],self.redraw(),jumpToDate(),setHoursFromDate(),updateValue(triggerChange),triggerChange&&triggerEvent("onChange")},self.toggle=function(e){if(!0===self.isOpen)return self.close();self.open(e)};var CALLBACKS={locale:[setupLocale,updateWeekdays],showMonths:[buildMonths,setCalendarWidth,
buildWeekdays]};function setSelectedDate(inputDate,format){var dates=[];if(inputDate instanceof Array)dates=inputDate.map(function(d){return self.parseDate(d,format)});else if(inputDate instanceof Date||"number"==typeof inputDate)dates=[self.parseDate(inputDate,format)];else if("string"==typeof inputDate)switch(self.config.mode){case"single":case"time":dates=[self.parseDate(inputDate,format)];break;case"multiple":dates=inputDate.split(self.config.conjunction).map(function(date){return self.parseDate(date,format)});break;case"range":dates=inputDate.split(self.l10n.rangeSeparator).map(function(date){return self.parseDate(date,format)})
}else self.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(inputDate)));self.selectedDates=dates.filter(function(d){return d instanceof Date&&isEnabled(d,!1)}),"range"===self.config.mode&&self.selectedDates.sort(function(a,b){return a.getTime()-b.getTime()})}function parseDateRules(arr){return arr.slice().map(function(rule){return"string"==typeof rule||"number"==typeof rule||rule instanceof Date?self.parseDate(rule,void 0,!0):rule&&"object"==typeof rule&&rule.from&&rule.to?{from:self.parseDate(rule.from,void 0),to:self.parseDate(rule.to,void 0)}:rule}).filter(function(x){return x})}function triggerEvent(event,data){if(
void 0!==self.config){var hooks=self.config[event];if(void 0!==hooks&&0<hooks.length)for(var i=0;hooks[i]&&i<hooks.length;i++)hooks[i](self.selectedDates,self.input.value,self,data);"onChange"===event&&(self.input.dispatchEvent(createEvent("change")),self.input.dispatchEvent(createEvent("input")))}}function createEvent(name){var e=document.createEvent("Event");return e.initEvent(name,!0,!0),e}function isDateSelected(date){for(var i=0;i<self.selectedDates.length;i++)if(0===compareDates(self.selectedDates[i],date))return""+i;return!1}function updateNavigationCurrentMonth(){self.config.noCalendar||self.isMobile||!self.monthNav||(self.yearElements.forEach(
function(yearElement,i){var d=new Date(self.currentYear,self.currentMonth,1);d.setMonth(self.currentMonth+i),self.monthElements[i].textContent=monthToStr(d.getMonth(),self.config.shorthandCurrentMonth,self.l10n)+" ",yearElement.value=d.getFullYear().toString()}),self._hidePrevMonthArrow=void 0!==self.config.minDate&&(self.currentYear===self.config.minDate.getFullYear()?self.currentMonth<=self.config.minDate.getMonth():self.currentYear<self.config.minDate.getFullYear()),self._hideNextMonthArrow=void 0!==self.config.maxDate&&(self.currentYear===self.config.maxDate.getFullYear()?self.currentMonth+1>self.config.maxDate.getMonth(
):self.currentYear>self.config.maxDate.getFullYear()))}function getDateStr(format){return self.selectedDates.map(function(dObj){return self.formatDate(dObj,format)}).filter(function(d,i,arr){return"range"!==self.config.mode||self.config.enableTime||arr.indexOf(d)===i}).join("range"!==self.config.mode?self.config.conjunction:self.l10n.rangeSeparator)}function updateValue(triggerChange){if(void 0===triggerChange&&(triggerChange=!0),0===self.selectedDates.length)return self.clear(triggerChange);void 0!==self.mobileInput&&self.mobileFormatStr&&(self.mobileInput.value=void 0!==self.latestSelectedDateObj?self.formatDate(self.latestSelectedDateObj,
self.mobileFormatStr):""),self.input.value=getDateStr(self.config.dateFormat),void 0!==self.altInput&&(self.altInput.value=getDateStr(self.config.altFormat)),!1!==triggerChange&&triggerEvent("onValueUpdate")}function onMonthNavClick(e){e.preventDefault();var isPrevMonth=self.prevMonthNav.contains(e.target),isNextMonth=self.nextMonthNav.contains(e.target);isPrevMonth||isNextMonth?changeMonth(isPrevMonth?-1:1):0<=self.yearElements.indexOf(e.target)?e.target.select():e.target.classList.contains("arrowUp")?self.changeYear(self.currentYear+1):e.target.classList.contains("arrowDown")&&self.changeYear(self.currentYear-1)}return function(){
self.element=self.input=element,self.isOpen=!1,function(){var boolOpts=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],userConfig=__assign({},instanceConfig,JSON.parse(JSON.stringify(element.dataset||{}))),formats={};self.config.parseDate=userConfig.parseDate,self.config.formatDate=userConfig.formatDate,Object.defineProperty(self.config,"enable",{get:function(){return self.config._enable},set:function(dates){self.config._enable=parseDateRules(dates)}}),Object.defineProperty(self.config,"disable",{get:function(){
return self.config._disable},set:function(dates){self.config._disable=parseDateRules(dates)}});var minMaxTimeSetter="time"===userConfig.mode;userConfig.dateFormat||!userConfig.enableTime&&!minMaxTimeSetter||(formats.dateFormat=userConfig.noCalendar||minMaxTimeSetter?"H:i"+(userConfig.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(userConfig.enableSeconds?":S":""));userConfig.altInput&&(userConfig.enableTime||minMaxTimeSetter)&&!userConfig.altFormat&&(formats.altFormat=userConfig.noCalendar||minMaxTimeSetter?"h:i"+(userConfig.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+(" h:i"+(userConfig.enableSeconds?":S":""))+" K")
;Object.defineProperty(self.config,"minDate",{get:function(){return self.config._minDate},set:minMaxDateSetter("min")}),Object.defineProperty(self.config,"maxDate",{get:function(){return self.config._maxDate},set:minMaxDateSetter("max")});minMaxTimeSetter=function(type){return function(val){self.config["min"===type?"_minTime":"_maxTime"]=self.parseDate(val,"H:i")}};Object.defineProperty(self.config,"minTime",{get:function(){return self.config._minTime},set:minMaxTimeSetter("min")}),Object.defineProperty(self.config,"maxTime",{get:function(){return self.config._maxTime},set:minMaxTimeSetter("max")}),"time"===userConfig.mode&&(self.config.noCalendar=!0,
self.config.enableTime=!0);Object.assign(self.config,formats,userConfig);for(var i=0;i<boolOpts.length;i++)self.config[boolOpts[i]]=!0===self.config[boolOpts[i]]||"true"===self.config[boolOpts[i]];HOOKS.filter(function(hook){return void 0!==self.config[hook]}).forEach(function(hook){self.config[hook]=arrayify(self.config[hook]||[]).map(bindToInstance)}),self.isMobile=!self.config.disableMobile&&!self.config.inline&&"single"===self.config.mode&&!self.config.disable.length&&!self.config.enable.length&&!self.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(i=0;i<self.config.plugins.length;i++){
var key,pluginConf=self.config.plugins[i](self)||{};for(key in pluginConf)-1<HOOKS.indexOf(key)?self.config[key]=arrayify(pluginConf[key]).map(bindToInstance).concat(self.config[key]):void 0===userConfig[key]&&(self.config[key]=pluginConf[key])}triggerEvent("onParseConfig")}(),setupLocale(),function(){if(self.input=self.config.wrap?element.querySelector("[data-input]"):element,!self.input)return self.config.errorHandler(new Error("Invalid input element specified"));self.input._type=self.input.type,self.input.type="text",self.input.classList.add("flatpickr-input"),self._input=self.input,self.config.altInput&&(self.altInput=createElement(self.input.nodeName,
self.input.className+" "+self.config.altInputClass),self._input=self.altInput,self.altInput.placeholder=self.input.placeholder,self.altInput.disabled=self.input.disabled,self.altInput.required=self.input.required,self.altInput.tabIndex=self.input.tabIndex,self.altInput.type="text",self.input.setAttribute("type","hidden"),!self.config.static&&self.input.parentNode&&self.input.parentNode.insertBefore(self.altInput,self.input.nextSibling));self.config.allowInput||self._input.setAttribute("readonly","readonly");self._positionElement=self.config.positionElement||self._input}(),function(){self.selectedDates=[],self.now=self.parseDate(self.config.now)||new Date
;var preloadedDate=self.config.defaultDate||("INPUT"!==self.input.nodeName&&"TEXTAREA"!==self.input.nodeName||!self.input.placeholder||self.input.value!==self.input.placeholder?self.input.value:null);preloadedDate&&setSelectedDate(preloadedDate,self.config.dateFormat);self._initialDate=0<self.selectedDates.length?self.selectedDates[0]:self.config.minDate&&self.config.minDate.getTime()>self.now.getTime()?self.config.minDate:self.config.maxDate&&self.config.maxDate.getTime()<self.now.getTime()?self.config.maxDate:self.now,self.currentYear=self._initialDate.getFullYear(),self.currentMonth=self._initialDate.getMonth(),0<self.selectedDates.length&&(
self.latestSelectedDateObj=self.selectedDates[0]);void 0!==self.config.minTime&&(self.config.minTime=self.parseDate(self.config.minTime,"H:i"));void 0!==self.config.maxTime&&(self.config.maxTime=self.parseDate(self.config.maxTime,"H:i"));self.minDateHasTime=!!self.config.minDate&&(0<self.config.minDate.getHours()||0<self.config.minDate.getMinutes()||0<self.config.minDate.getSeconds()),self.maxDateHasTime=!!self.config.maxDate&&(0<self.config.maxDate.getHours()||0<self.config.maxDate.getMinutes()||0<self.config.maxDate.getSeconds()),Object.defineProperty(self,"showTimeInput",{get:function(){return self._showTimeInput},set:function(bool){
self._showTimeInput=bool,self.calendarContainer&&toggleClass(self.calendarContainer,"showTimeInput",bool),self.isOpen&&positionCalendar()}})}(),self.utils={getDaysInMonth:function(month,yr){return void 0===month&&(month=self.currentMonth),void 0===yr&&(yr=self.currentYear),1===month&&(yr%4==0&&yr%100!=0||yr%400==0)?29:self.l10n.daysInMonth[month]}},self.isMobile||function(){var wrapper=window.document.createDocumentFragment();{var weekWrapper,weekNumbers;self.calendarContainer=createElement("div","flatpickr-calendar"),self.calendarContainer.tabIndex=-1,self.config.noCalendar||(wrapper.appendChild((self.monthNav=createElement("div","flatpickr-months"),
self.yearElements=[],self.monthElements=[],self.prevMonthNav=createElement("span","flatpickr-prev-month"),self.prevMonthNav.innerHTML=self.config.prevArrow,self.nextMonthNav=createElement("span","flatpickr-next-month"),self.nextMonthNav.innerHTML=self.config.nextArrow,buildMonths(),Object.defineProperty(self,"_hidePrevMonthArrow",{get:function(){return self.__hidePrevMonthArrow},set:function(bool){self.__hidePrevMonthArrow!==bool&&(toggleClass(self.prevMonthNav,"disabled",bool),self.__hidePrevMonthArrow=bool)}}),Object.defineProperty(self,"_hideNextMonthArrow",{get:function(){return self.__hideNextMonthArrow},set:function(bool){
self.__hideNextMonthArrow!==bool&&(toggleClass(self.nextMonthNav,"disabled",bool),self.__hideNextMonthArrow=bool)}}),self.currentYearElement=self.yearElements[0],updateNavigationCurrentMonth(),self.monthNav)),self.innerContainer=createElement("div","flatpickr-innerContainer"),self.config.weekNumbers&&(weekWrapper=(weekNumbers=function(){self.calendarContainer.classList.add("hasWeeks");var weekWrapper=createElement("div","flatpickr-weekwrapper");weekWrapper.appendChild(createElement("span","flatpickr-weekday",self.l10n.weekAbbreviation));var weekNumbers=createElement("div","flatpickr-weeks");return weekWrapper.appendChild(weekNumbers),{
weekWrapper:weekWrapper,weekNumbers:weekNumbers}}()).weekWrapper,weekNumbers=weekNumbers.weekNumbers,self.innerContainer.appendChild(weekWrapper),self.weekNumbers=weekNumbers,self.weekWrapper=weekWrapper),self.rContainer=createElement("div","flatpickr-rContainer"),self.rContainer.appendChild(buildWeekdays()),self.daysContainer||(self.daysContainer=createElement("div","flatpickr-days"),self.daysContainer.tabIndex=-1),buildDays(),self.rContainer.appendChild(self.daysContainer),self.innerContainer.appendChild(self.rContainer),wrapper.appendChild(self.innerContainer))}self.config.enableTime&&wrapper.appendChild(function(){self.calendarContainer.classList.add(
"hasTime"),self.config.noCalendar&&self.calendarContainer.classList.add("noCalendar");self.timeContainer=createElement("div","flatpickr-time"),self.timeContainer.tabIndex=-1;var separator=createElement("span","flatpickr-time-separator",":"),hourInput=createNumberInput("flatpickr-hour");self.hourElement=hourInput.getElementsByTagName("input")[0];var secondInput=createNumberInput("flatpickr-minute");self.minuteElement=secondInput.getElementsByTagName("input")[0],self.hourElement.tabIndex=self.minuteElement.tabIndex=-1,self.hourElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getHours(
):self.config.time_24hr?self.config.defaultHour:function(hour){switch(hour%24){case 0:case 12:return 12;default:return hour%12}}(self.config.defaultHour)),self.minuteElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getMinutes():self.config.defaultMinute),self.hourElement.setAttribute("step",self.config.hourIncrement.toString()),self.minuteElement.setAttribute("step",self.config.minuteIncrement.toString()),self.hourElement.setAttribute("min",self.config.time_24hr?"0":"1"),self.hourElement.setAttribute("max",self.config.time_24hr?"23":"12"),self.minuteElement.setAttribute("min","0"),self.minuteElement.setAttribute("max","59"),
self.timeContainer.appendChild(hourInput),self.timeContainer.appendChild(separator),self.timeContainer.appendChild(secondInput),self.config.time_24hr&&self.timeContainer.classList.add("time24hr");{self.config.enableSeconds&&(self.timeContainer.classList.add("hasSeconds"),secondInput=createNumberInput("flatpickr-second"),self.secondElement=secondInput.getElementsByTagName("input")[0],self.secondElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getSeconds():self.config.defaultSeconds),self.secondElement.setAttribute("step",self.minuteElement.getAttribute("step")),self.secondElement.setAttribute("min","0"),self.secondElement.setAttribute(
"max","59"),self.timeContainer.appendChild(createElement("span","flatpickr-time-separator",":")),self.timeContainer.appendChild(secondInput))}self.config.time_24hr||(self.amPM=createElement("span","flatpickr-am-pm",self.l10n.amPM[int(11<(self.latestSelectedDateObj?self.hourElement.value:self.config.defaultHour))]),self.amPM.title=self.l10n.toggleTitle,self.amPM.tabIndex=-1,self.timeContainer.appendChild(self.amPM));return self.timeContainer}());toggleClass(self.calendarContainer,"rangeMode","range"===self.config.mode),toggleClass(self.calendarContainer,"animate",!0===self.config.animate),toggleClass(self.calendarContainer,"multiMonth",
1<self.config.showMonths),self.calendarContainer.appendChild(wrapper);wrapper=void 0!==self.config.appendTo&&void 0!==self.config.appendTo.nodeType;{(self.config.inline||self.config.static)&&(self.calendarContainer.classList.add(self.config.inline?"inline":"static"),self.config.inline&&(!wrapper&&self.element.parentNode?self.element.parentNode.insertBefore(self.calendarContainer,self._input.nextSibling):void 0!==self.config.appendTo&&self.config.appendTo.appendChild(self.calendarContainer)),self.config.static&&(wrapper=createElement("div","flatpickr-wrapper"),self.element.parentNode&&self.element.parentNode.insertBefore(wrapper,self.element),
wrapper.appendChild(self.element),self.altInput&&wrapper.appendChild(self.altInput),wrapper.appendChild(self.calendarContainer)))}self.config.static||self.config.inline||(void 0!==self.config.appendTo?self.config.appendTo:window.document.body).appendChild(self.calendarContainer)}(),function(){self.config.wrap&&["open","close","toggle","clear"].forEach(function(evt){Array.prototype.forEach.call(self.element.querySelectorAll("[data-"+evt+"]"),function(el){return bind(el,"click",self[evt])})});if(self.isMobile)return function(){var inputType=self.config.enableTime?self.config.noCalendar?"time":"datetime-local":"date";self.mobileInput=createElement("input",
self.input.className+" flatpickr-mobile"),self.mobileInput.step=self.input.getAttribute("step")||"any",self.mobileInput.tabIndex=1,self.mobileInput.type=inputType,self.mobileInput.disabled=self.input.disabled,self.mobileInput.required=self.input.required,self.mobileInput.placeholder=self.input.placeholder,self.mobileFormatStr="datetime-local"==inputType?"Y-m-d\\TH:i:S":"date"==inputType?"Y-m-d":"H:i:S",0<self.selectedDates.length&&(self.mobileInput.defaultValue=self.mobileInput.value=self.formatDate(self.selectedDates[0],self.mobileFormatStr));self.config.minDate&&(self.mobileInput.min=self.formatDate(self.config.minDate,"Y-m-d"));self.config.maxDate&&(
self.mobileInput.max=self.formatDate(self.config.maxDate,"Y-m-d"));self.input.type="hidden",void 0!==self.altInput&&(self.altInput.type="hidden");try{self.input.parentNode&&self.input.parentNode.insertBefore(self.mobileInput,self.input.nextSibling)}catch(_a){}bind(self.mobileInput,"change",function(e){self.setDate(e.target.value,!1,self.mobileFormatStr),triggerEvent("onChange"),triggerEvent("onClose")})}();var debouncedResize=debounce(onResize,50);self._debouncedChange=debounce(triggerChange,DEBOUNCED_CHANGE_MS),self.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&bind(self.daysContainer,"mouseover",function(e){
"range"===self.config.mode&&onMouseOver(e.target)});bind(window.document.body,"keydown",onKeyDown),self.config.static||bind(self._input,"keydown",onKeyDown);self.config.inline||self.config.static||bind(window,"resize",debouncedResize);void 0!==window.ontouchstart?bind(window.document,"click",documentClick):bind(window.document,"mousedown",onClick(documentClick));bind(window.document,"focus",documentClick,{capture:!0}),!0===self.config.clickOpens&&(bind(self._input,"focus",self.open),bind(self._input,"mousedown",onClick(self.open)));void 0!==self.daysContainer&&(bind(self.monthNav,"mousedown",onClick(onMonthNavClick)),bind(self.monthNav,["keyup","increment"],
onYearInput),bind(self.daysContainer,"mousedown",onClick(selectDate)));{void 0!==self.timeContainer&&void 0!==self.minuteElement&&void 0!==self.hourElement&&(bind(self.timeContainer,["increment"],updateTime),bind(self.timeContainer,"blur",updateTime,{capture:!0}),bind(self.timeContainer,"mousedown",onClick(timeIncrement)),bind([self.hourElement,self.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==self.secondElement&&bind(self.secondElement,"focus",function(){return self.secondElement&&self.secondElement.select()}),void 0!==self.amPM&&bind(self.amPM,"mousedown",onClick(function(e){updateTime(e),triggerChange()})))}}(),(
self.selectedDates.length||self.config.noCalendar)&&(self.config.enableTime&&setHoursFromDate(self.config.noCalendar?self.latestSelectedDateObj||self.config.minDate:void 0),updateValue(!1)),setCalendarWidth(),self.showTimeInput=0<self.selectedDates.length||self.config.noCalendar;var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!self.isMobile&&isSafari&&positionCalendar(),triggerEvent("onReady")}(),self}function _flatpickr(nodeList,config){for(var nodes=Array.prototype.slice.call(nodeList).filter(function(x){return x instanceof HTMLElement}),instances=[],i=0;i<nodes.length;i++){var node=nodes[i];try{if(null!==node.getAttribute(
"data-fp-omit"))continue;void 0!==node._flatpickr&&(node._flatpickr.destroy(),node._flatpickr=void 0),node._flatpickr=FlatpickrInstance(node,config||{}),instances.push(node._flatpickr)}catch(e){console.error(e)}}return 1===instances.length?instances[0]:instances}"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(config){return _flatpickr(this,config)},HTMLElement.prototype.flatpickr=function(config){return _flatpickr([this],config)});var flatpickr=function(selector,config){return"string"==typeof selector?_flatpickr(window.document.querySelectorAll(selector),config):selector instanceof Node?_flatpickr([
selector],config):_flatpickr(selector,config)};return flatpickr.defaultConfig=defaults,flatpickr.l10ns={en:__assign({},english),default:__assign({},english)},flatpickr.localize=function(l10n){flatpickr.l10ns.default=__assign({},flatpickr.l10ns.default,l10n)},flatpickr.setDefaults=function(config){flatpickr.defaultConfig=__assign({},flatpickr.defaultConfig,config)},flatpickr.parseDate=createDateParser({}),flatpickr.formatDate=createDateFormatter({}),flatpickr.compareDates=compareDates,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(config){return _flatpickr(this,config)}),Date.prototype.fp_incr=function(days){return new Date(this.getFullYear(),
this.getMonth(),this.getDate()+("string"==typeof days?parseInt(days,10):days))},"undefined"!=typeof window&&(window.flatpickr=flatpickr),flatpickr}),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define("lib/flatpickr/l10n/index",["exports"],factory):factory((global=global||self).index={})}(this,function(exports){"use strict";var __assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)},
Korean="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Arabic={weekdays:{shorthand:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],longhand:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]}};Korean.l10ns.ar=Arabic,Korean.l10ns;var Russian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Austria={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag",
"Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken"};Russian.l10ns.at=Austria,Russian.l10ns;var Khmer="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Azerbaijan={weekdays:{shorthand:["Baz","BzE","ÇAx","Çər","CAx","Cüm","Şən"],longhand:["Bazar","Bazar ertəsi","Çərşənbə axşamı",
"Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","İyn","İyl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmaq üçün sürüşdürün",toggleTitle:"Aç / Bağla",amPM:["GƏ","GS"]};Khmer.l10ns.az=Azerbaijan,Khmer.l10ns;var Thai="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Belarusian={weekdays:{shorthand:["Нд","Пн","Аў","Ср","Чц","Пт","Сб"],longhand:["Нядзеля","Панядзелак","Аўторак",
"Серада","Чацвер","Пятніца","Субота"]},months:{shorthand:["Сту","Лют","Сак","Кра","Тра","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сне"],longhand:["Студзень","Люты","Сакавік","Красавік","Травень","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Тыд.",scrollTitle:"Пракруціце для павелічэння",toggleTitle:"Націсніце для пераключэння",amPM:["ДП","ПП"],yearAriaLabel:"Год"};Thai.l10ns.be=Belarusian,Thai.l10ns;var Kazakh="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Bulgarian={weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт",
"Пт","Сб"],longhand:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},months:{shorthand:["Яну","Фев","Март","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],longhand:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"]}};Kazakh.l10ns.bg=Bulgarian,Kazakh.l10ns;var Sinhala="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Bangla={weekdays:{shorthand:["রবি","সোম","মঙ্গল","বুধ","বৃহস্পতি","শুক্র","শনি"],longhand:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"]},months:{shorthand:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন",
"জুলাই","আগ","সেপ্টে","অক্টো","নভে","ডিসে"],longhand:["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]}};Sinhala.l10ns.bn=Bangla,Sinhala.l10ns;var Lithuanian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Catalan={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Març","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre",
"Desembre"]},ordinal:function(s){s%=100;if(3<s&&s<21)return"è";switch(s%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"è"}},firstDayOfWeek:1};Lithuanian.l10ns.cat=Catalan,Lithuanian.l10ns;var l10n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Czech={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]
},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok"};l10n.l10ns.cs=Czech,l10n.l10ns;var Latvian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Welsh={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai",
"Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function(nth){return 1===nth?"af":2===nth?"ail":3===nth||4===nth?"ydd":5===nth||6===nth?"ed":7<=nth&&nth<=10||12==nth||15==nth||18==nth||20==nth?"fed":11==nth||13==nth||14==nth||16==nth||17==nth||19==nth?"eg":21<=nth&&nth<=39?"ain":""}};Latvian.l10ns.cy=Welsh,Latvian.l10ns;var Slovak="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Danish={weekdays:{shorthand:["søn","man","tir","ons","tors","fre","lør"],longhand:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun",
"jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge"};Slovak.l10ns.da=Danish,Slovak.l10ns;var Macedonian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},German={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März",
"April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken"};Macedonian.l10ns.de=German,Macedonian.l10ns;var english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,
31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(s){s%=100;if(3<s&&s<21)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},Turkish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Esperanto={firstDayOfWeek:1,rangeSeparator:" ĝis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por ŝalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],longhand:["dimanĉo","lundo","mardo",
"merkredo","ĵaŭdo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},ordinal:function(){return"-a"}};Turkish.l10ns.eo=Esperanto,Turkish.l10ns;var Mongolian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Spanish={weekdays:{shorthand:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],longhand:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov",
"Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"º"},firstDayOfWeek:1,rangeSeparator:" a "};Mongolian.l10ns.es=Spanish,Mongolian.l10ns;var Slovenian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Estonian={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},months:{shorthand:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli",
"August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"Näd",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Klõpsa, et vahetada"};Slovenian.l10ns.et=Estonian,Slovenian.l10ns;var Burmese="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Persian={weekdays:{shorthand:["یک","دو","سه","چهار","پنج","جمعه","شنبه"],longhand:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنچ‌شنبه","جمعه","شنبه"]},months:{shorthand:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],longhand:["ژانویه","فوریه","مارس","آوریل",
"مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"]},firstDayOfWeek:6,ordinal:function(){return""}};Burmese.l10ns.fa=Persian,Burmese.l10ns;var Mandarin="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Finnish={firstDayOfWeek:1,weekdays:{shorthand:["Su","Ma","Ti","Ke","To","Pe","La"],longhand:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"]},months:{shorthand:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],longhand:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu",
"Joulukuu"]},ordinal:function(){return"."}};Mandarin.l10ns.fi=Finnish,Mandarin.l10ns;var Dutch="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Faroese={weekdays:{shorthand:["Sun","Mán","Týs","Mik","Hós","Frí","Ley"],longhand:["Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","Fríggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apríl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",
scrollTitle:"Rulla fyri at broyta",toggleTitle:"Trýst fyri at skifta",yearAriaLabel:"Ár"};Dutch.l10ns.fo=Faroese,Dutch.l10ns;var Albanian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},French={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(nth){return 1<nth?"":"er"},
rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer"};Albanian.l10ns.fr=French,Albanian.l10ns;var Norwegian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Greek={weekdays:{shorthand:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],longhand:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},months:{shorthand:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιού","Ιού","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],longhand:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},
firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"Εβδ",rangeSeparator:" έως ",scrollTitle:"Μετακυλήστε για προσαύξηση",toggleTitle:"Κάντε κλικ για αλλαγή",amPM:["ΠΜ","ΜΜ"]};Norwegian.l10ns.gr=Greek,Norwegian.l10ns;var Ukrainian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Hebrew={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],longhand:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},
rangeSeparator:" אל "};Ukrainian.l10ns.he=Hebrew,Ukrainian.l10ns;var Punjabi="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Hindi={weekdays:{shorthand:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],longhand:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},months:{shorthand:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],longhand:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"]}};Punjabi.l10ns.hi=Hindi,Punjabi.l10ns;var Serbian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Croatian={
firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]}};Serbian.l10ns.hr=Croatian,Serbian.l10ns;var Polish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Hungarian={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök",
"Péntek","Szombat"]},months:{shorthand:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],longhand:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"]},ordinal:function(){return"."},weekAbbreviation:"Hét",scrollTitle:"Görgessen",toggleTitle:"Kattintson a váltáshoz",rangeSeparator:" - "};Polish.l10ns.hu=Hungarian,Polish.l10ns;var fp$S="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Indonesian={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},
months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""}};fp$S.l10ns.id=Indonesian,fp$S.l10ns;var Portuguese="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Icelandic={weekdays:{shorthand:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],longhand:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv",
"Des"],longhand:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"Ár"};Portuguese.l10ns.is=Icelandic,Portuguese.l10ns;var Swedish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Italian={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo"
,"Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"°"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare"};Swedish.l10ns.it=Italian,Swedish.l10ns;var Romanian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Japanese={weekdays:{shorthand:["日","月","火","水","木","金","土"],longhand:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},months:{shorthand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],longhand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}}
;Romanian.l10ns.ja=Japanese,Romanian.l10ns;var Vietnamese="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Korean={weekdays:{shorthand:["일","월","화","수","목","금","토"],longhand:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},months:{shorthand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],longhand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},ordinal:function(){return"일"}};Vietnamese.l10ns.ko=Korean,Vietnamese.l10ns;Russian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Khmer={weekdays:{shorthand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស.","សុក្រ","សៅរ៍"],
longhand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},months:{shorthand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],longhand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},ordinal:function(){return""},firstDayOfWeek:1,rangeSeparator:" ដល់ ",weekAbbreviation:"សប្តាហ៍",scrollTitle:"រំកិលដើម្បីបង្កើន",toggleTitle:"ចុចដើម្បីផ្លាស់ប្ដូរ",yearAriaLabel:"ឆ្នាំ"};Russian.l10ns.km=Khmer,Russian.l10ns;Thai="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Kazakh={weekdays:{shorthand:["Жс","Дс","Сc","Ср","Бс","Жм",
"Сб"],longhand:["Жексенбi","Дүйсенбi","Сейсенбi","Сәрсенбi","Бейсенбi","Жұма","Сенбi"]},months:{shorthand:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шiл","Там","Қыр","Қаз","Қар","Жел"],longhand:["Қаңтар","Ақпан","Наурыз","Сәуiр","Мамыр","Маусым","Шiлде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Апта",scrollTitle:"Үлкейту үшін айналдырыңыз",toggleTitle:"Ауыстыру үшін басыңыз",amPM:["ТД","ТК"],yearAriaLabel:"Жыл"};Thai.l10ns.kz=Kazakh,Thai.l10ns;Sinhala="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Lithuanian={weekdays:{shorthand:["S",
"Pr","A","T","K","Pn","Š"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},weekAbbreviation:"Sav",scrollTitle:"Keisti laiką pelės rateliu",toggleTitle:"Perjungti laiko formatą"};Sinhala.l10ns.lt=Lithuanian,Sinhala.l10ns;l10n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Latvian={
firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" līdz "};l10n.l10ns.lv=Latvian,l10n.l10ns;Slovak="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Macedonian={weekdays:{shorthand:["Не","По","Вт","Ср","Че","Пе","Са"],longhand:["Недела","Понеделник","Вторник","Среда"
,"Четврток","Петок","Сабота"]},months:{shorthand:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],longhand:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"]},firstDayOfWeek:1,weekAbbreviation:"Нед.",rangeSeparator:" до "};Slovak.l10ns.mk=Macedonian,Slovak.l10ns;Turkish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Mongolian={firstDayOfWeek:1,weekdays:{shorthand:["Да","Мя","Лх","Пү","Ба","Бя","Ня"],longhand:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},months:{shorthand:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар",
"6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],longhand:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долдугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арванхоёрдугаар сар"]},rangeSeparator:"-с "};Turkish.l10ns.mn=Mongolian,Turkish.l10ns;("undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}}).l10ns;Slovenian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Burmese={weekdays:{shorthand:["နွေ","လာ","ဂါ","ဟူး","ကြာ","သော","နေ"],longhand:["တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး",
"ကြာသပတေး","သောကြာ","စနေ"]},months:{shorthand:["ဇန်","ဖေ","မတ်","ပြီ","မေ","ဇွန်","လိုင်","သြ","စက်","အောက်","နို","ဒီ"],longhand:["ဇန်နဝါရီ","ဖေဖော်ဝါရီ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူလိုင်","သြဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"]},firstDayOfWeek:1,ordinal:function(){return""}};Slovenian.l10ns.my=Burmese,Slovenian.l10ns;Mandarin="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Dutch={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov",
"dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" tot ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",ordinal:function(nth){return 1===nth||8===nth||20<=nth?"ste":"de"}};Mandarin.l10ns.nl=Dutch,Mandarin.l10ns;Albanian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Norwegian={weekdays:{shorthand:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],longhand:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},months:{shorthand:["Jan","Feb","Mar","Apr",
"Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for å endre",toggleTitle:"Klikk for å veksle",ordinal:function(){return"."}};Albanian.l10ns.no=Norwegian,Albanian.l10ns;Ukrainian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Punjabi={weekdays:{shorthand:["ਐਤ","ਸੋਮ","ਮੰਗਲ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕਰ","ਸ਼ਨਿੱਚਰ"],longhand:["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"]},months:{shorthand:["ਜਨ","ਫ਼ਰ","ਮਾਰ",
"ਅਪ੍ਰੈ","ਮਈ","ਜੂਨ","ਜੁਲਾ","ਅਗ","ਸਤੰ","ਅਕ","ਨਵੰ","ਦਸੰ"],longhand:["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ"]}};Ukrainian.l10ns.pa=Punjabi,Ukrainian.l10ns;Serbian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Polish={weekdays:{shorthand:["Nd","Pn","Wt","Śr","Cz","Pt","So"],longhand:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],longhand:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"]
},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przwiń aby zwiększyć",toggleTitle:"Kliknij aby przełączyć",firstDayOfWeek:1,ordinal:function(){return"."}};Serbian.l10ns.pl=Polish,Serbian.l10ns;fp$S="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Portuguese={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro",
"Outubro","Novembro","Dezembro"]},rangeSeparator:" até "};fp$S.l10ns.pt=Portuguese,fp$S.l10ns;Swedish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Romanian={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","Sam"],longhand:["Duminică","Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,ordinal:function(){return""}};Swedish.l10ns.ro=Romanian,Swedish.l10ns
;Vietnamese="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Russian={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год"}
;Vietnamese.l10ns.ru=Russian,Vietnamese.l10ns;Thai="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Sinhala={weekdays:{shorthand:["ඉ","ස","අ","බ","බ්‍ර","සි","සෙ"],longhand:["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"]},months:{shorthand:["ජන","පෙබ","මාර්","අප්‍රේ","මැයි","ජුනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],longhand:["ජනවාරි","පෙබරවාරි","මාර්තු","අප්‍රේල්","මැයි","ජුනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]}};Thai.l10ns.si=Sinhala,Thai.l10ns;l10n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Slovak={weekdays:{
shorthand:["Ned","Pon","Ut","Str","Štv","Pia","Sob"],longhand:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],longhand:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",ordinal:function(){return"."}};l10n.l10ns.sk=Slovak,l10n.l10ns;Turkish="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Slovenian={weekdays:{shorthand:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek"
,"Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",ordinal:function(){return"."}};Turkish.l10ns.sl=Slovenian,Turkish.l10ns;Mandarin="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Albanian={weekdays:{shorthand:["Di","Hë","Ma","Më","En","Pr","Sh"],longhand:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtunë"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet",
"Nën","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]}};Mandarin.l10ns.sq=Albanian,Mandarin.l10ns;Ukrainian="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Serbian={weekdays:{shorthand:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",
rangeSeparator:" do "};Ukrainian.l10ns.sr=Serbian,Ukrainian.l10ns;fp$S="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Swedish={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],longhand:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],longhand:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"]},ordinal:function(){return"."}};fp$S.l10ns.sv=Swedish,fp$S.l10ns
;Vietnamese="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Thai={weekdays:{shorthand:["อา","จ","อ","พ","พฤ","ศ","ส"],longhand:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},months:{shorthand:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],longhand:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},firstDayOfWeek:1,rangeSeparator:" ถึง ",scrollTitle:"เลื่อนเพื่อเพิ่มหรือลด",toggleTitle:"คลิกเพื่อเปลี่ยน",ordinal:function(){return""}};Vietnamese.l10ns.th=Thai,Vietnamese.l10ns
;l10n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Turkish={weekdays:{shorthand:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmak için kaydırın",toggleTitle:"Aç/Kapa",amPM:["ÖÖ","ÖS"]};l10n.l10ns.tr=Turkish,l10n.l10ns
;Mandarin="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ukrainian={firstDayOfWeek:1,weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},months:{shorthand:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],longhand:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"]}};Mandarin.l10ns.uk=Ukrainian,Mandarin.l10ns;fp$S="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Vietnamese={weekdays:{shorthand:["CN","T2","T3","T4",
"T5","T6","T7"],longhand:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Tháng một","Tháng hai","Tháng ba","Tháng tư","Tháng năm","Tháng sáu","Tháng bảy","Tháng tám","Tháng chín","Tháng mười","Tháng 11","Tháng 12"]},firstDayOfWeek:1};fp$S.l10ns.vn=Vietnamese,fp$S.l10ns;l10n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Mandarin={weekdays:{shorthand:["周日","周一","周二","周三","周四","周五","周六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月"
,"九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"周",scrollTitle:"滚动切换",toggleTitle:"点击切换 12/24 小时时制"};l10n.l10ns.zh=Mandarin,l10n.l10ns;fp$S="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},l10n={weekdays:{shorthand:["週日","週一","週二","週三","週四","週五","週六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"週",scrollTitle:"滾動切換",
toggleTitle:"點擊切換 12/24 小時時制"};fp$S.l10ns.zh_tw=l10n,fp$S.l10ns;l10n={ar:Arabic,at:Austria,az:Azerbaijan,be:Belarusian,bg:Bulgarian,bn:Bangla,cat:Catalan,cs:Czech,cy:Welsh,da:Danish,de:German,default:__assign({},english),en:english,eo:Esperanto,es:Spanish,et:Estonian,fa:Persian,fi:Finnish,fo:Faroese,fr:French,gr:Greek,he:Hebrew,hi:Hindi,hr:Croatian,hu:Hungarian,id:Indonesian,is:Icelandic,it:Italian,ja:Japanese,ko:Korean,km:Khmer,kz:Kazakh,lt:Lithuanian,lv:Latvian,mk:Macedonian,mn:Mongolian,ms:{weekdays:{shorthand:["Min","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Minggu","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb",
"Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function(){return""}},my:Burmese,nl:Dutch,no:Norwegian,pa:Punjabi,pl:Polish,pt:Portuguese,ro:Romanian,ru:Russian,si:Sinhala,sk:Slovak,sl:Slovenian,sq:Albanian,sr:Serbian,sv:Swedish,th:Thai,tr:Turkish,uk:Ukrainian,vn:Vietnamese,zh:Mandarin,zh_tw:l10n};exports.default=l10n,Object.defineProperty(exports,"__esModule",{value:!0})}),define("css!lib/flatpickr/flatpickr",[],function(){}),define("css!ui/datetime/css/picker",[],function(){}),define(
"ui/datetime/picker",["lodash","i18n","moment","ui/component","lib/flatpickr/flatpickr","lib/flatpickr/l10n/index","handlebars","lib/dompurify/purify","css!lib/flatpickr/flatpickr.css","css!ui/datetime/css/picker.css"],function(_,__,moment,component,flatpickr,flatpickrLocalization,formats,DOMPurify,flatpickr_css,picker_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){
return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(
fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,flatpickr=flatpickr&&Object.prototype.hasOwnProperty.call(flatpickr,"default")?flatpickr.default:flatpickr,flatpickrLocalization=flatpickrLocalization&&Object.prototype.hasOwnProperty.call(flatpickrLocalization,"default")?flatpickrLocalization.default:flatpickrLocalization,formats=formats&&Object.prototype.hasOwnProperty.call(
formats,"default")?formats.default:formats,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(formats),Helpers0.__initialized=!0);var Template=formats.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="datetime-picker ',stack1=(stack1=helpers.setup)||typeof(stack1=depth0&&depth0.setup)===functionType?stack1.call(depth0,{hash:{},data:data}
):stack1,buffer+=escapeExpression(stack1)+" ",!(stack1=helpers.if.call(depth0,depth0&&depth0.controlButtons,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"control-buttons"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <input type="text" disabled\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.id,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+='id="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+'"'},data),
data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.name,{hash:{},inverse:this.noop,fn:this.program(5,function(depth0,data){var stack1,buffer="";return buffer+='name="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.name)===functionType?stack1.apply(depth0):stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.value,{hash:{},inverse:this.noop,fn:this.program(7,function(depth0,data){
var stack1,buffer="";return buffer+='value="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.value)===functionType?stack1.apply(depth0):stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.placeholder,{hash:{},inverse:this.noop,fn:this.program(9,function(depth0,data){var stack1,buffer="";return buffer+='placeholder="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.placeholder)===functionType?stack1.apply(depth0):stack1)+'"'},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.pattern,{hash:{},inverse:this.noop,fn:this.program(11,function(depth0,data){var stack1,buffer="";return buffer+='pattern="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.pattern)===functionType?stack1.apply(depth0):stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.label,{hash:{},inverse:this.noop,fn:this.program(13,function(depth0,data){
var stack1,buffer="";return buffer+='aria-label="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.field)||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n />\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.controlButtons,{hash:{},inverse:this.noop,fn:this.program(15,function(depth0,data){var helper,options,buffer="";return buffer+='\n <button type="button" disabled class="picker-toggle" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Toggle the date time picker",options
):helperMissing.call(depth0,"__","Toggle the date time picker",options)))+'" aria-label="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Toggle the date time picker",options):helperMissing.call(depth0,"__","Toggle the date time picker",options)))+'" >\n <span class="icon-calendar" role="img"></span>\n </button>\n <button type="button" disabled class="picker-clear" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Clear the date time picker",options):helperMissing.call(depth0,"__","Clear the date time picker",options))
)+'" aria-label="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Clear the date time picker",options):helperMissing.call(depth0,"__","Clear the date time picker",options)))+'">\n <span class="icon-reset" role="img"></span>\n </button>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>\n"});function dateTimePickerTpl(data,html,asString){html=Template(data,html);return html}var formats={date:{default:"YYYY-MM-DD",localized:"L"},time:{default:"HH:mm",localized:"LT"},datetime:{default:"YYYY-MM-DD HH:mm",localized:"L LT"}},setups={"date-range":{mode:"range",label:__(
"date range"),format:formats.date},"datetime-range":{mode:"range",label:__("date time range"),enableTime:!0,format:formats.datetime},date:{mode:"single",format:formats.date},time:{mode:"single",enableTime:!0,label:__("time"),noCalendar:!0,format:formats.time},datetime:{mode:"single",enableTime:!0,label:__("date time"),format:formats.datetime}},supportedConstraints=["minDate","maxDate","enable","disable"],hasTranslationsForLocale=function(locale){return _.isObject(flatpickrLocalization[locale])},defaultConfig={setup:"date",controlButtons:!1,locale:function(){var documentLocale=window.document.documentElement.getAttribute("lang"),
documentLocale=documentLocale&&documentLocale.split("-")[0];if(documentLocale&&hasTranslationsForLocale(documentLocale))return documentLocale}(),useLocalizedFormat:!1,constraints:{}};return function(container,options){var format="",value="",dateTimePicker=component({getValue:function(){return this.is("rendered")?this.controls.input.value:null},setValue:function(newValue){return this.is("ready")&&(value=newValue,_.isString(value)&&(this.controls.input.value=value),this.picker.setDate(value,!0)),null},getSelectedDates:function(){var selection;return!(!this.is("ready")||!this.picker)&&((selection=this.picker.selectedDates)&&!_.isArray(selection)?[selection
]:selection)},getFormat:function(){return format},open:function(){return this.is("ready")&&this.picker.open(),this},close:function(){return this.is("ready")&&this.picker.close(),this},clear:function(){return this.is("ready")&&(value="",this.picker.close(),this.picker.clear(),this.trigger("clear")),this},toggle:function(){return this.is("ready")&&this.picker.toggle(),this},updateConstraints:function(constraint,constraintValue){return this.is("ready")&&_.contains(supportedConstraints,constraint)&&this.picker.set(constraint,constraintValue),this}},defaultConfig);return dateTimePicker.setTemplate(dateTimePickerTpl).on("init",function(){var locale,self=this,
setup=setups[this.config.setup]||setups.datetime;this.config.locale&&hasTranslationsForLocale(this.config.locale)&&(locale=this.config.locale),format=locale&&this.config.useLocalizedFormat?function(locale,localizedFormat){return!(!/[LT]+/.test(localizedFormat)||!locale)&&localizedFormat.split(" ").map(function(format){return moment(new Date).locale(locale).localeData().longDateFormat(format)}).join(" ")}(locale,setup.format.localized):this.config.format||setup.format.default,this.config.field=this.config.field||{},this.config.replaceField&&this.config.replaceField instanceof HTMLInputElement&&(this.config.field.id=this.config.replaceField.id,
this.config.field.name=this.config.replaceField.name,this.config.field.placeholder=this.config.replaceField.placeholder,this.config.field.value=this.config.replaceField.value,this.config.field.pattern=this.config.replaceField.pattern,this.config.replaceField.parentNode.removeChild(this.config.replaceField)),!this.config.field.placeholder&&format&&"single"===setup.mode&&(this.config.field.placeholder=format.toLowerCase()),this.config.field.label||(this.config.field.label=setup.label),this.pickerConfig={mode:setup.mode,enableTime:!!setup.enableTime,noCalendar:!!setup.noCalendar,time_24hr:!function(format){return format&&/a$/i.test(format)}(format),
enableSeconds:setup.enableTime&&function(format){return format&&/(:ss)+/i.test(format)}(format),allowInput:!0,clickOpens:!this.config.controlButtons,disableMobile:!0,formatDate:function(date){return moment(date).format(format)},parseDate:function(dateString){return moment(dateString,format).toDate()},onOpen:function(){self.trigger("open")},onClose:function(){self.trigger("close")},errorHandler:function(err){err instanceof Error&&(/^Invalid date/.test(err.message)?(self.controls.input.classList.add("error"),_.delay(function(){self.controls.input.classList.remove("error")},1e3)):self.trigger("error",err))}},locale&&(this.pickerConfig.locale=locale),_.forEach(
this.config.constraints,function(constraintValue,constraint){_.contains(supportedConstraints,constraint)&&constraintValue&&(self.pickerConfig[constraint]=constraintValue)}),container&&setTimeout(function(){self.render(container)},0)}).on("render",function(){var self=this,element=this.getElement()[0];this.controls={input:element.querySelector("input")},this.pickerConfig.appendTo=element,this.config.controlButtons&&(this.controls.toggleButton=element.querySelector(".picker-toggle"),this.controls.clearButton=element.querySelector(".picker-clear"),this.controls.toggleButton.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),self.toggle()
}),this.controls.clearButton.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),self.clear()})),this.controls.input.addEventListener("change",function(){var newValue=self.controls.input.value;value&&_.isString(newValue)&&_.isEmpty(newValue)?self.clear():value!==newValue&&(value=newValue,self.trigger("change",value))}),value=this.controls.input.value,_.defer(function(){self.picker=flatpickr(self.controls.input,self.pickerConfig),self.enable().setState("ready",!0).trigger("ready")})}).on("enable",function(){this.controls&&(this.controls.input.disabled=!1,this.config.controlButtons&&(this.controls.toggleButton.disabled=!1,
this.controls.clearButton.disabled=!1))}).on("disable",function(){this.controls&&(this.controls.input.disabled=!0,this.config.controlButtons&&(this.controls.toggleButton.disabled=!0,this.controls.clearButton.disabled=!0))}),setTimeout(function(){dateTimePicker.init(options)},0),dateTimePicker}}),define("css!ui/dateRange/css/dateRange",[],function(){}),define("ui/dateRange/dateRange",["lodash","i18n","moment","ui/component","ui/datetime/picker","handlebars","lib/dompurify/purify","css!ui/dateRange/css/dateRange.css"],function(_,__,moment,component,dateTimePicker,Handlebars,DOMPurify,dateRange_css){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,dateTimePicker=dateTimePicker&&Object.prototype.hasOwnProperty.call(
dateTimePicker,"default")?dateTimePicker.default:dateTimePicker,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing
;return buffer+='<div class="daterange">\n <span class="start">\n <label for="periodStart">'+escapeExpression((stack1={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"From",stack1):helperMissing.call(depth0,"__","From",stack1)))+'</label>\n </span>\n <span class="end">\n <label for="periodEnd">'+escapeExpression((stack1={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"to",stack1):helperMissing.call(depth0,"__","to",stack1)))+"</label>\n </span>\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.applyButton)||!1===stack1?stack1:stack1.enable,{hash:{},
inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <button class="small btn-info" data-control="filter" title="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.applyButton)||!1===stack1?stack1:stack1.title)===functionType?stack1.apply(depth0):stack1)+'">\n <span class="icon icon-'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.applyButton)||!1===stack1?stack1:stack1.icon)===functionType?stack1.apply(depth0):stack1)+'"></span> '+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.applyButton)||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1
)+"\n </button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.resetButton)||!1===stack1?stack1:stack1.enable,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+='\n <button class="small btn-info btn-secondary" data-control="reset" title="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.resetButton)||!1===stack1?stack1:stack1.title)===functionType?stack1.apply(depth0):stack1)+'">\n <span class="icon icon-'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.resetButton
)||!1===stack1?stack1:stack1.icon)===functionType?stack1.apply(depth0):stack1)+'"></span> '+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.resetButton)||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+"\n </button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>\n"});function formTpl(data,html,asString){html=Template(data,html);return html}var defaults={maxRangeDays:!1,resetButton:{enable:!0,label:__("Reset"),title:__("Reset the range values"),icon:"reset"},applyButton:{enable:!0,label:__("Apply"),title:__("Apply date range"),icon:"filter"},startPicker:{setup:"datetime",
format:"YYYY-MM-DD HH:mm:SS",field:{name:"periodStart"}},endPicker:{setup:"datetime",format:"YYYY-MM-DD HH:mm:SS",field:{name:"periodEnd"}}},setupDateTimePicker=function(element,config){return new Promise(function(resolve){dateTimePicker(element,config).on("ready",function(){resolve(this)})})};return function(container,config){var preConfig=_.defaults(config||{},defaults),useTemplate=preConfig.startPicker&&!preConfig.startPicker.replaceField&&preConfig.endPicker&&!preConfig.endPicker.replaceField,dateRange=component({getStart:function(){if(this.is("ready"))return this.startPicker.getValue()},getEnd:function(){if(this.is("ready")
)return this.endPicker.getValue()},reset:function(){return this.is("ready")&&(this.startPicker.updateConstraints("maxDate",null).clear(),this.endPicker.updateConstraints("minDate",null).clear(),this.trigger("reset")),this},submit:function(){this.is("ready")&&this.trigger("submit",this.getStart(),this.getEnd())}},defaults);return useTemplate&&dateRange.setTemplate(formTpl),dateRange.on("init",function(){container&&this.render(container)}).on("render",function(){var startElement,self=this,endElement=this.getElement()[0],endElement=useTemplate?(this.controls={filter:endElement.querySelector('[data-control="filter"]'),reset:endElement.querySelector(
'[data-control="reset"]'),start:endElement.querySelector(".start"),end:endElement.querySelector(".end")},startElement=this.controls.start,this.controls.end):startElement=endElement;Promise.all([setupDateTimePicker(startElement,this.config.startPicker),setupDateTimePicker(endElement,this.config.endPicker)]).then(function(pickers){self.startPicker=pickers[0],self.endPicker=pickers[1],self.startPicker.on("change",function(value){value&&self.endPicker&&self.endPicker.is("ready")&&(self.endPicker.updateConstraints("minDate",value),0<self.config.maxRangeDays&&self.endPicker.updateConstraints("maxDate",moment(value).add(self.config.maxRangeDays,"d").toDate())),
self.trigger("change","start",value)}).on("clear",function(){self.endPicker&&self.endPicker.is("ready")&&(self.endPicker.updateConstraints("minDate",""),self.endPicker.updateConstraints("maxDate",""))}).on("close",function(){self.trigger("close","start",this.getValue())}).spread("error",self),self.endPicker.on("change",function(value){value&&self.startPicker&&self.startPicker.is("ready")&&self.startPicker.updateConstraints("maxDate",value),self.trigger("change","end",value)}).on("clear",function(){self.startPicker&&self.startPicker.is("ready")&&(self.startPicker.updateConstraints("minDate",""),self.startPicker.updateConstraints("maxDate",""))}).on("close",
function(){self.trigger("close","end",this.getValue())}).spread("error",self)}).then(function(){self.setState("ready",!0),self.trigger("ready")}).catch(function(err){self.trigger("error",err)}),useTemplate&&this.controls.filter&&this.controls.filter.addEventListener("click",function(e){e.preventDefault(),self.submit()}),useTemplate&&this.controls.reset&&this.controls.reset.addEventListener("click",function(e){e.preventDefault(),self.reset()})}).on("destroy",function(){this.startPicker&&this.startPicker.destroy(),this.endPicker&&this.endPicker.destroy()}),_.defer(function(){dateRange.init(config)}),dateRange}}),define("ui/deleter",["jquery","lodash","i18n",
"core/pluginifier","core/dataattrhandler","handlebars","lib/dompurify/purify"],function($$1,_,__,Pluginifier,DataAttrHandler,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){
var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),
stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,
"default")?__.default:__,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){
this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="undobox">\n <span class="icon-info"></span>\n ',buffer+=escapeExpression((helper=helpers.undoMessage)||"function"==typeof(helper=depth0&&depth0.undoMessage)?helper.call(depth0,{hash:{},data:data}):helper)+'\n <a class="undo" href="#">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Undo",options):helperMissing.call(depth0,"__","Undo",options))
)+'</a>\n <span title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Remove Message",options):helperMissing.call(depth0,"__","Remove Message",options)))+'" class="icon-close" data-close=":parent .undobox"></span>\n</div>\n'});var ns="deleter",dataNs="ui."+ns,defaults={bindEvent:"click",undo:!1,undoTimeout:5e3,undoMessage:__("Element deleted."),undoContainer:!1,confirm:!1,confirmMessage:__("Are you sure you want to delete it?"),disableClass:"disabled"},deleter={init:function(options){return options=_.defaults(options,defaults),this.each(function(){var $elt=$$1(this);$elt.data(dataNs)||($elt.data(
dataNs,options),!1!==options.bindEvent&&$elt.on(options.bindEvent,function(e){e.preventDefault(),deleter._delete($elt)}),$elt.trigger("create."+ns))})},_delete:function($elt){var $target,$parent,$evtTrigger,$placeholder,$undoBox,undoRemove,timeout,self=deleter,performDelete=!0,options=$elt.data(dataNs),realRemove=function(){performDelete&&$target&&($target.remove(),$evtTrigger.trigger("deleted."+ns,[$target]))};options&&!$elt.hasClass(options.disableClass)&&($target=options.target,!0===options.confirm&&(performDelete=window.confirm(options.confirmMessage)),performDelete&&($parent=$target.parent(),$evtTrigger=0<$target.has($elt).length?$parent:$elt,
$elt.trigger("delete."+ns,[$target]),$target.trigger("delete",[options.undo]),$placeholder=$$1('<span style="display:none;" />').insertAfter($target),$target.detach(),options.undo?($$1(document).off(".unundo."+ns),($undoBox=self._createUndoBox(options)).find(".undo").click(function(e){e.preventDefault(),"number"==typeof timeout&&clearTimeout(timeout),performDelete=!1,$undoBox.remove(),$target.insertBefore($placeholder),$placeholder.remove(),$elt.trigger("undo."+ns,[$target]),$target.trigger("undo."+ns)}),undoRemove=function(){$undoBox&&$undoBox.length&&($undoBox.remove(),$placeholder.remove()),realRemove(),$$1(document).off(".unundo."+ns)},$$1(document).one(
"mousedown.unundo."+ns,function(e){return e.preventDefault(),e.stopImmediatePropagation(),0!==$undoBox.find(e.target).length&&$$1(e.target).hasClass("undo")||"number"!=typeof timeout||(clearTimeout(timeout),undoRemove()),_.delay(function(){$$1(e.target).trigger("mousedown")},10),!1}),timeout=setTimeout(function(){undoRemove()},options.undoTimeout)):realRemove()))},_createUndoBox:function(options){var html,$undoContainer=options.undoContainer||$$1("#feedback-messages-main");return $undoContainer.length||($undoContainer=$$1('<div id="feedback-messages-main" class="tao-scope"></div>').appendTo("body")),$$1(html=Template(options,html)).appendTo($undoContainer)},
destroy:function(){this.each(function(){var $elt=$$1(this),options=$elt.data(dataNs);!1!==options.bindEvent&&$elt.off(options.bindEvent),$elt.removeData(dataNs),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,deleter,{expose:["delete"]}),function($container){new DataAttrHandler("delete",{container:$container,listenerEvent:"click",namespace:dataNs,bubbled:!0}).init(function($elt,undo){var options={target:undo,bindEvent:!1,undo:!0},confirm=$elt.data("delete-confirm"),undo=$elt.data("delete-undo");confirm&&(options.confirm=!0,options.undo=!1,0<confirm.length&&(options.confirmMessage=confirm)),null!=undo&&(!1===undo?options.undo=!1:(
options.confirm=!1,options.undo=!0,0<undo.length&&(options.undoMessage=undo))),$elt.deleter(options)}).trigger(function($elt){$elt.deleter("delete")})}}),define("ui/dialog",["jquery","lodash","i18n","handlebars","lib/dompurify/purify","ui/keyNavigation/navigator","ui/keyNavigation/navigableDomElement","util/shortcut/registry","ui/modal"],function($$1,_,__,Handlebars,DOMPurify,keyNavigator,navigableDomElement,shortcutRegistry,modal){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,
keyNavigator=keyNavigator&&Object.prototype.hasOwnProperty.call(keyNavigator,"default")?keyNavigator.default:keyNavigator,navigableDomElement=navigableDomElement&&Object.prototype.hasOwnProperty.call(navigableDomElement,"default")?navigableDomElement.default:navigableDomElement,shortcutRegistry=shortcutRegistry&&Object.prototype.hasOwnProperty.call(shortcutRegistry,"default")?shortcutRegistry.default:shortcutRegistry,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{}
;var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div\n class="preview-modal-feedback modal ',stack1=(helper=helpers.class)||typeof(helper=depth0&&depth0.class)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n role="dialog"\n aria-modal="true"\n data-control="navigable-modal-body"\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.heading,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n aria-labelledby="core/ui-dialog-heading-',stack1=(stack1=helpers.dialogId)||typeof(
stack1=depth0&&depth0.dialogId)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n aria-describedby="core/ui-dialog-message-',stack1=(helper=helpers.dialogId)||typeof(helper=depth0&&depth0.dialogId)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n>\n <div class="modal-body clearfix">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.heading,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,helper,buffer=""
;return buffer+='\n <h4 id="core/ui-dialog-heading-',stack1=(helper=helpers.dialogId)||typeof(helper=depth0&&depth0.dialogId)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" class="strong">',stack1=(helper=helpers.heading)||typeof(helper=depth0&&depth0.heading)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</h4>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n\n <p id="core/ui-dialog-message-',stack1=(helper=helpers.dialogId)||typeof(helper=depth0&&depth0.dialogId)===functionType?helper.call(depth0,{hash:{},data:data}
):helper,buffer+=escapeExpression(stack1)+'" class="message">',!(stack1=(helper=helpers.message)||typeof(helper=depth0&&depth0.message)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</p>\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.content,{hash:{},inverse:this.noop,fn:this.program(5,function(depth0,data){var stack1,buffer="";return buffer+='\n <div class="content">',!(stack1=(stack1=helpers.content)||typeof(stack1=depth0&&depth0.content)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</div>\n "},data),data:data})
)&&0!==stack1||(buffer+=stack1),buffer+='\n\n <div class="buttons rgt"></div>\n </div>\n</div>\n'});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){var stack1,buffer="";return buffer+='<span class="icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,
buffer+=escapeExpression(stack1)+'"></span> '}return!(stack1=helpers.each.call(depth0,depth0&&depth0.buttons,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <button class="btn-',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+" small ",stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-control="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id
)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" type="button">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <span class="label">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span>\n </button>\n"},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n"});var _scope=".modal",_definedButtons={ok:{id:"ok",type:"info",label:__("Ok"),close:!0},
cancel:{id:"cancel",type:"regular",label:__("Cancel"),close:!0},yes:{id:"yes",type:"info",label:__("Yes"),close:!0},no:{id:"no",type:"regular",label:__("No"),close:!0}},_defaults={message:"",content:"",width:500,animate:!1,autoRender:!1,autoDestroy:!1,renderTo:"body",buttons:"cancel,ok"},dialog={init:function(initOptions){var html,_this=this,events={},initOptions=_.omit(initOptions||{},function(value,key){return 2<key.length&&"on"===key.substr(0,2)&&(events[key.substr(2)]=value,!0)});return _.defaults(this,initOptions,_defaults),this.dialogId=_.uniqueId("dlg-"),this.$html=$$1(html=Template(this,html)),this.$buttons=this.$html.find(".buttons"),
this.rendered=!1,this.destroyed=!1,this.$buttons.on("click.modal","button",this._onButtonClick.bind(this)),this.setButtons(this.buttons),_.forEach(events,function(callback,eventName){eventName.indexOf(".")<0&&(eventName+=_scope),_this.on(eventName.toLowerCase(),callback)}),this.autoRender&&this.render(),this},destroy:function(){return this.destroyed||(this._destroy(),this.rendered=!1,this.destroyed=!0,this.trigger("destroy.modal"),this.$buttons.off(_scope),this.$html.off(_scope).remove(),this.$html=null,this.$buttons=null),this},setButtons:function(buttons){var html,_this2=this;return this.destroyed||(buttons=buttons||_defaults.buttons,_.isArray(buttons
)||_.isString(buttons)&&(buttons=buttons.split(",")),this.buttons={},_.forEach(buttons,function(btn){_.isString(btn)&&(btn=btn.trim(),btn=_definedButtons[btn]||{id:btn,type:"info",label:btn}),btn.type||(btn.type="regular"),_this2.buttons[btn.id]=btn}),this.$buttons.html(html=Template$1(this,html))),this},render:function(to){return this.destroyed||($$1(to||this.renderTo).append(this.$html),this._install(),this.rendered=!0),this},show:function(){return this.destroyed||(this.rendered?this._open():this.render()),this},hide:function(){return!this.destroyed&&this.rendered&&(this._close(),this.autoDestroy&&this.destroy()),this},on:function(){
return this.$html&&this.$html.on.apply(this.$html,arguments),this},off:function(){return this.$html&&this.$html.off.apply(this.$html,arguments),this},trigger:function(eventName,extraParameters){return this.$html&&(void 0===extraParameters&&(extraParameters=[]),_.isArray(extraParameters)||(extraParameters=[extraParameters]),(extraParameters=Array.prototype.slice.call(extraParameters)).push(this),this.$html.trigger(eventName,extraParameters)),this},getDom:function(){return this.$html},_onButtonClick:function(btn){btn=$$1(btn.target).closest("button").data("control"),btn=this.buttons[btn];btn&&this._execute(btn)},_execute:function(btn){
btn.action&&btn.action.apply(this,[btn,this]),this.trigger(btn.id+"btn"+_scope,[btn]),btn.close&&this.hide()},focus:function(button){var position=-1;button&&(position=_.findIndex(this.navigator.getNavigableElements(),function(navigable){return navigable.getElement().is('[data-control="'+button+'"]')})),0<=position?this.navigator.setCursorAt(position):this.navigator.focus()},_install:function(){var $items,closeButton,_this3=this;this.destroyed||(this.$html.modal({width:this.width,animate:this.animate,disableClosing:this.disableClosing,disableEscape:this.disableEscape}).on("closed.modal",function(){_this3.autoDestroy&&_this3.destroy()}),$items=this.getDom(
).add($$1(_scope).find("input")).add(this.$buttons.find("button")),(closeButton=$$1(_scope).find("#modal-close-btn")[0])&&$items.push(closeButton),this.navigator=keyNavigator({elements:navigableDomElement.createFromDoms($items),propagateTab:!1}).on("right down",function(){this.getCursor().position===$items.length-1?this.setCursorAt(1):this.next()}).on("left up",function(){1===this.getCursor().position?this.last():this.previous()}).on("tab",function(){this.getCursor().position===$items.length-1?this.setCursorAt(1):this.next()}).on("shift+tab",function(){1===this.getCursor().position?this.last():this.previous()}).on("activate",_.debounce(function($elt){
$elt=$elt.navigable.getElement();$elt.is(":radio,:checkbox")?$elt.prop("checked",!$elt.prop("checked")).change():$elt.click()},10)),this.navigator.first(),this.globalShortcut=shortcutRegistry($$1("body")).add("tab shift+tab",function(){_this3.navigator.isFocused()||_this3.navigator.focus()}),this.trigger("create.dialog"))},_open:function(){this.$html.modal("open")},_close:function(){this.$html.modal("close")},_destroy:function(){this.$html.modal("destroy"),this.navigator&&this.navigator.destroy(),this.globalShortcut&&this.globalShortcut.clear()}};return function(options){var instance=Object.assign({},dialog);return instance.init(options),instance}}),define(
"ui/dialog/confirm",["lodash","i18n","ui/dialog"],function(_,__,dialog){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,dialog=dialog&&Object.prototype.hasOwnProperty.call(dialog,"default")?dialog.default:dialog,function(message,accept,refuse,dlg){var accepted=!1,_options={buttons:{labels:{ok:__("Ok"),cancel:__("Cancel")}}},dlg={message:message,autoRender:!0,autoDestroy:!0,onOkBtn:function(){accepted=!0,_.isFunction(accept)&&accept.call(this)},buttons:{ok:{id:"ok",type:"info",label:(dlg=_.defaults(dlg||{},_options)).buttons.labels.ok||__("Ok"),
close:!0},cancel:{id:"cancel",type:"regular",label:dlg.buttons.labels.cancel||__("Cancel"),close:!0}}},dlg=dialog(dlg);return _.isFunction(refuse)&&dlg.on("closed.modal",function(){accepted||refuse.call(this)}),dlg}}),define("ui/resource/selectable",["jquery","lodash"],function($,_){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;return function(component,config){var selection={},nodes={},isAComponent=_.all(["on","trigger","init","render","is","getElement"],function(method){return _.isFunction(component[method])});if(!_.isObject(component)||!isAComponent
)throw new TypeError("Selectable expects a component");return _.assign(component,{getNodes:function(){return nodes},getNode:function(uri){return!(!uri||!_.isPlainObject(nodes[uri]))&&nodes[uri]},setNodes:function(newNodes){_.isArray(newNodes)?nodes=_.reduce(newNodes,function(acc,node){return node.uri&&(acc[node.uri]=node),acc},{}):_.isObject(newNodes)&&(nodes=newNodes)},addNode:function(uri,node){return!!_.isPlainObject(node)&&(nodes[uri]=node,this.trigger("add",uri,node),!0)},removeNode:function(uri){return!!this.hasNode(uri)&&(selection[uri]&&this.unselect(uri),nodes=_.omit(nodes,uri),this.trigger("remove",uri),!0)},hasNode:function(uri){
return void 0!==nodes[uri]},getSelection:function(){return selection},clearSelection:function(){return 0<_.size(selection)&&(selection={}),this.is("rendered")&&($(".selected",this.getElement()).removeClass("selected"),this.trigger("change",selection)),this},select:function(uris,only,onlyVisible,withChildren){var $component,self=this,currentConfig=_.defaults(component.getConfig()||{},config||{});return this.is("rendered")&&($component=this.getElement(),only&&(selection={},$(".selected",this.getElement()).removeClass("selected")),_.isArray(uris)||(uris=[uris]),_(uris).reject(function(uri){return void 0!==selection[uri]||!nodes[uri]}).forEach(function(uri){
var $node=$('[data-uri="'+uri+'"]',$component),selectNode=$node.length;selectNode&&currentConfig&&_.isFunction(currentConfig.preventSelection)&&currentConfig.preventSelection(uri,nodes[uri],$node)&&(selectNode=!1),selectNode&&($node.addClass("selected"),selection[uri]=nodes[uri]),withChildren&&self.is("multiple")&&$node.find("[data-uri]").each(function(i,child){$(child).addClass("selected")}).map(function(){return $(this).data("uri")}).each(function(i,childUri){selection[childUri]=nodes[childUri]})}),this.trigger("change",selection,onlyVisible)),this},selectVisible:function(){var $elements=this.getElement().find("[data-uri]").filter(function(){return 0===$(
this).parents(".closed").length});this.select(_.map($elements,function(element){return $(element).data("uri")}),!1,!0)},unselect:function(uris){var $component;return this.is("rendered")&&($component=this.getElement(),_.isArray(uris)||(uris=[uris]),_(uris).filter(function(uri){return void 0!==selection[uri]||!nodes[uri]}).forEach(function(uri){var $node=$('[data-uri="'+uri+'"]',$component);$node.length&&($node.removeClass("selected"),selection=_.omit(selection,uri)),$node.find("[data-uri]").each(function(i,child){$(child).removeClass("selected")}).map(function(){return $(this).data("uri")}).each(function(i,childUri){selection=_.omit(selection,childUri)})}),
this.trigger("change",selection)),this},selectAll:function(){return this.select(_.keys(nodes))}})}}),define("ui/resource/tree",["jquery","lodash","ui/component","ui/resource/selectable","ui/hider","handlebars","i18n","lib/dompurify/purify"],function($$1,_,component,selectable,hider,seal,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),
hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),
fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call(
$$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,selectable=selectable&&Object.prototype.hasOwnProperty.call(selectable,"default")?selectable.default:selectable,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default")?hider.default:hider,seal=seal&&Object.prototype.hasOwnProperty.call(seal,"default")?seal.default:seal,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,
Helpers0.__initialized||(Helpers0(seal),Helpers0.__initialized=!0);var Template=seal.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{};buffer="";return buffer+='<div class="resource-tree ',!(stack1=helpers.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"multiple"},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <ul></ul>\n</div>\n\n'});function treeTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(seal),Helpers0.__initialized=!0)
;var Template$1=seal.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,options,buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program2(depth0,data){return" selectable"}function program4(depth0,data){var stack1,buffer="";return buffer+='data-access="',stack1=(stack1=helpers.accessMode)||typeof(stack1=depth0&&depth0.accessMode)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program6(depth0,data){var stack1,buffer=""
;return buffer+="\n ",!(stack1=(stack1=helpers.childList)||typeof(stack1=depth0&&depth0.childList)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="\n "}return helper=helpers.equal||depth0&&depth0.equal,options={hash:{},inverse:self.noop,fn:self.program(1,function(depth0,options){var stack1,helper,buffer="";return buffer+='\n<li data-uri="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'" class="class',!(stack1=helpers.if.call(depth0,depth0&&depth0.selectable,{hash:{},
inverse:self.noop,fn:self.program(2,program2,options),data:options}))&&0!==stack1||(buffer+=stack1),buffer+=" ",stack1=(helper=helpers.state)||typeof(helper=depth0&&depth0.state)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'" data-count="',stack1=(helper=helpers.count)||typeof(helper=depth0&&depth0.count)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.accessMode,{hash:{},inverse:self.noop,fn:self.program(4,program4,options),data:options}))&&0!==stack1||(buffer+=stack1),
buffer+='>\n <a href="#" title="',!(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:options}):helper)&&0!==stack1||(buffer+=stack1),buffer+='">\n <span class="class-toggler clickable" tabindex="0"></span>\n <span class="icon-folder"></span>\n ',!(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:options}):helper)&&0!==stack1||(buffer+=stack1),buffer+='\n <span class="selector clickable" tabindex="0"></span>\n </a>\n <ul>\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.childList,{
hash:{},inverse:self.noop,fn:self.program(6,program6,options),data:options}))&&0!==stack1||(buffer+=stack1),buffer+='\n </ul>\n <div class="more hidden">\n <a href="#" class="btn-info small"><span class="icon-download"></span> '+escapeExpression((options={hash:{},data:options},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Load more",options):helperMissing.call(depth0,"__","Load more",options)))+"</a>\n </div>\n</li>\n"},data),data:data},!(stack1=helper?helper.call(depth0,depth0&&depth0.type,"class",options):helperMissing.call(depth0,"equal",depth0&&depth0.type,"class",options))&&0!==stack1||(buffer+=stack1),buffer+="\n\n",
helper=helpers.equal||depth0&&depth0.equal,options={hash:{},inverse:self.noop,fn:self.program(8,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n<li data-uri="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" class="instance',!(stack1=helpers.if.call(depth0,depth0&&depth0.selectable,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=" ",stack1=(helper=helpers.state)||typeof(helper=depth0&&depth0.state)===functionType?helper.call(depth0,{hash:{},data:data}):helper,
buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.accessMode,{hash:{},inverse:self.noop,fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='>\n <a href="#" title="',!(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='">\n <span class="icon-',stack1=(helper=helpers.icon)||typeof(helper=depth0&&depth0.icon)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"></span>\n ',!(stack1=(helper=helpers.label)||typeof(
helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='\n <span class="selector clickable" tabindex="0"></span>\n </a>\n</li>\n'},data),data:data},!(stack1=helper?helper.call(depth0,depth0&&depth0.type,"instance",options):helperMissing.call(depth0,"equal",depth0&&depth0.type,"instance",options))&&0!==stack1||(buffer+=stack1),buffer+="\n\n\n"});var seal=Object.freeze||function(x){return x},html=seal(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col",
"colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video"
,"wbr"]),svg=seal(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),svgFilters=seal(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR",
"feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mathMl=seal(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),text=seal(["#text"]),seal=Object.freeze||function(x){return x},html$1=seal(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords"
,"crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),svg$1=seal(["accent-height",
"accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform",
"height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx",
"refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector",
"x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl$1=seal(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),
xml=seal(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,apply$1=("undefined"!=typeof Reflect&&Reflect).apply;function addToSet(set,array){setPrototypeOf&&setPrototypeOf(set,null);for(var l=array.length;l--;){var lcElement,element=array[l];"string"!=typeof element||(lcElement=element.toLowerCase())!==element&&(Object.isFrozen(array)||(array[l]=lcElement),element=lcElement),set[element]=!0}return set}function clone(object){var newObject={},property=void 0;for(property in object)apply$1(hasOwnProperty,object,[property])&&(newObject[property]=object[property])
;return newObject}apply$1=apply$1||function(fun,thisValue,args){return fun.apply(thisValue,args)};var seal=Object.seal||function(x){return x},MUSTACHE_EXPR=seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ERB_EXPR=seal(/<%[\s\S]*|[\s\S]*%>/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_typeof$1="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(obj){return _typeof(obj)}:function(
obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof(obj)};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}var apply=("undefined"!=typeof Reflect&&Reflect).apply,arraySlice=Array.prototype.slice,freeze=Object.freeze,getGlobal=function(){return"undefined"==typeof window?null:window},apply=apply||function(fun,thisValue,args){return fun.apply(thisValue,args)},_createTrustedTypesPolicy=function(trustedTypes,document){if("object"!==(void 0===trustedTypes?"undefined":_typeof$1(trustedTypes)
)||"function"!=typeof trustedTypes.createPolicy)return null;var suffix=null;document.currentScript&&document.currentScript.hasAttribute("data-tt-policy-suffix")&&(suffix=document.currentScript.getAttribute("data-tt-policy-suffix"));var policyName="dompurify"+(suffix?"#"+suffix:"");try{return trustedTypes.createPolicy(policyName,{createHTML:function(html$$1){return html$$1}})}catch(error){return console.warn("TrustedTypes policy "+policyName+" could not be created."),null}};function indentChildren($list,level){var indent;$list.length&&(indent=15*level,level++,$list.children("li").each(function(){var $target=$$1(this);$target.children("a").css("padding-left",
indent+"px"),indentChildren($target.children("ul"),level)}),$list.siblings(".more").css("padding-left",indent+"px"))}function needMore($node){var $more=$node.children(".more"),totalCount=$node.data("count"),instancesCount=$node.children("ul").children(".instance").length;0<totalCount&&0<instancesCount&&instancesCount<totalCount?hider.show($more):hider.hide($more),$node.children("ul").find(".class").each(function(){needMore($$1(this))})}var purify=function createDOMPurify(TrustedTypes){var window=0<arguments.length&&void 0!==TrustedTypes?TrustedTypes:getGlobal(),DOMPurify=function(root){return createDOMPurify(root)};if(DOMPurify.version="1.0.11",
DOMPurify.removed=[],!window||!window.document||9!==window.document.nodeType)return DOMPurify.isSupported=!1,DOMPurify;var originalDocument=window.document,useDOMParser=!1,removeTitle=!1,document=window.document,DocumentFragment=window.DocumentFragment,template=window.HTMLTemplateElement,Node=window.Node,NodeFilter=window.NodeFilter,TrustedTypes=window.NamedNodeMap,NamedNodeMap=void 0===TrustedTypes?window.NamedNodeMap||window.MozNamedAttrMap:TrustedTypes,Text=window.Text,Comment=window.Comment,DOMParser=window.DOMParser,TrustedTypes=window.TrustedTypes;"function"!=typeof template||(template=document.createElement("template")
).content&&template.content.ownerDocument&&(document=template.content.ownerDocument);var trustedTypesPolicy=_createTrustedTypesPolicy(TrustedTypes,originalDocument),emptyHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(""):"",implementation=document.implementation,createNodeIterator=document.createNodeIterator,getElementsByTagName=document.getElementsByTagName,createDocumentFragment=document.createDocumentFragment,importNode=originalDocument.importNode,hooks={};DOMPurify.isSupported=implementation&&void 0!==implementation.createHTMLDocument&&9!==document.documentMode;var USE_PROFILES,MUSTACHE_EXPR$$1=MUSTACHE_EXPR,ERB_EXPR$$1=ERB_EXPR,
DATA_ATTR$$1=DATA_ATTR,ARIA_ATTR$$1=ARIA_ATTR,IS_SCRIPT_OR_DATA$$1=IS_SCRIPT_OR_DATA,ATTR_WHITESPACE$$1=ATTR_WHITESPACE,IS_ALLOWED_URI$$1=IS_ALLOWED_URI,ALLOWED_TAGS=null,DEFAULT_ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(svgFilters),_toConsumableArray(mathMl),_toConsumableArray(text))),ALLOWED_ATTR=null,DEFAULT_ALLOWED_ATTR=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(mathMl$1),_toConsumableArray(xml))),FORBID_TAGS=null,FORBID_ATTR=null,ALLOW_ARIA_ATTR=!0,ALLOW_DATA_ATTR=!0,ALLOW_UNKNOWN_PROTOCOLS=!1,SAFE_FOR_JQUERY=!1,SAFE_FOR_TEMPLATES=!1,
WHOLE_DOCUMENT=!1,SET_CONFIG=!1,FORCE_BODY=!1,RETURN_DOM=!1,RETURN_DOM_FRAGMENT=!1,RETURN_DOM_IMPORT=!1,SANITIZE_DOM=!0,KEEP_CONTENT=!0,IN_PLACE=!1,FORBID_CONTENTS=addToSet({},["audio","head","math","script","style","template","svg","video"]),DATA_URI_TAGS=addToSet({},["audio","video","img","source","image"]),URI_SAFE_ATTRIBUTES=null,DEFAULT_URI_SAFE_ATTRIBUTES=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),CONFIG=null,formElement=document.createElement("form"),_parseConfig=function(cfg){CONFIG&&CONFIG===cfg||(cfg&&"object"===(void 0===cfg?"undefined":_typeof$1(cfg))||(cfg={}),
ALLOWED_TAGS="ALLOWED_TAGS"in cfg?addToSet({},cfg.ALLOWED_TAGS):DEFAULT_ALLOWED_TAGS,ALLOWED_ATTR="ALLOWED_ATTR"in cfg?addToSet({},cfg.ALLOWED_ATTR):DEFAULT_ALLOWED_ATTR,URI_SAFE_ATTRIBUTES="ADD_URI_SAFE_ATTR"in cfg?addToSet({},cfg.ADD_URI_SAFE_ATTR):DEFAULT_URI_SAFE_ATTRIBUTES,FORBID_TAGS="FORBID_TAGS"in cfg?addToSet({},cfg.FORBID_TAGS):{},FORBID_ATTR="FORBID_ATTR"in cfg?addToSet({},cfg.FORBID_ATTR):{},USE_PROFILES="USE_PROFILES"in cfg&&cfg.USE_PROFILES,ALLOW_ARIA_ATTR=!1!==cfg.ALLOW_ARIA_ATTR,ALLOW_DATA_ATTR=!1!==cfg.ALLOW_DATA_ATTR,ALLOW_UNKNOWN_PROTOCOLS=cfg.ALLOW_UNKNOWN_PROTOCOLS||!1,SAFE_FOR_JQUERY=cfg.SAFE_FOR_JQUERY||!1,
SAFE_FOR_TEMPLATES=cfg.SAFE_FOR_TEMPLATES||!1,WHOLE_DOCUMENT=cfg.WHOLE_DOCUMENT||!1,RETURN_DOM=cfg.RETURN_DOM||!1,RETURN_DOM_FRAGMENT=cfg.RETURN_DOM_FRAGMENT||!1,RETURN_DOM_IMPORT=cfg.RETURN_DOM_IMPORT||!1,FORCE_BODY=cfg.FORCE_BODY||!1,SANITIZE_DOM=!1!==cfg.SANITIZE_DOM,KEEP_CONTENT=!1!==cfg.KEEP_CONTENT,IN_PLACE=cfg.IN_PLACE||!1,IS_ALLOWED_URI$$1=cfg.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$$1,SAFE_FOR_TEMPLATES&&(ALLOW_DATA_ATTR=!1),RETURN_DOM_FRAGMENT&&(RETURN_DOM=!0),USE_PROFILES&&(ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(text))),ALLOWED_ATTR=[],!0===USE_PROFILES.html&&(addToSet(ALLOWED_TAGS,html),addToSet(ALLOWED_ATTR,html$1)),
!0===USE_PROFILES.svg&&(addToSet(ALLOWED_TAGS,svg),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.svgFilters&&(addToSet(ALLOWED_TAGS,svgFilters),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.mathMl&&(addToSet(ALLOWED_TAGS,mathMl),addToSet(ALLOWED_ATTR,mathMl$1),addToSet(ALLOWED_ATTR,xml))),cfg.ADD_TAGS&&(ALLOWED_TAGS===DEFAULT_ALLOWED_TAGS&&(ALLOWED_TAGS=clone(ALLOWED_TAGS)),addToSet(ALLOWED_TAGS,cfg.ADD_TAGS)),cfg.ADD_ATTR&&(ALLOWED_ATTR===DEFAULT_ALLOWED_ATTR&&(ALLOWED_ATTR=clone(ALLOWED_ATTR)),addToSet(ALLOWED_ATTR,cfg.ADD_ATTR)),cfg.ADD_URI_SAFE_ATTR&&addToSet(URI_SAFE_ATTRIBUTES,
cfg.ADD_URI_SAFE_ATTR),KEEP_CONTENT&&(ALLOWED_TAGS["#text"]=!0),WHOLE_DOCUMENT&&addToSet(ALLOWED_TAGS,["html","head","body"]),ALLOWED_TAGS.table&&addToSet(ALLOWED_TAGS,["tbody"]),freeze&&freeze(cfg),CONFIG=cfg)},_forceRemove=function(node){DOMPurify.removed.push({element:node});try{node.parentNode.removeChild(node)}catch(error){node.outerHTML=emptyHTML}},_removeAttribute=function(name,node){try{DOMPurify.removed.push({attribute:node.getAttributeNode(name),from:node})}catch(error){DOMPurify.removed.push({attribute:null,from:node})}node.removeAttribute(name)},_initDocument=function(dirty){var body,doc=void 0,leadingWhitespace=void 0;if(
FORCE_BODY?dirty="<remove></remove>"+dirty:(leadingWhitespace=(body=dirty.match(/^[\s]+/))&&body[0])&&(dirty=dirty.slice(leadingWhitespace.length)),useDOMParser)try{doc=(new DOMParser).parseFromString(dirty,"text/html")}catch(error){}return removeTitle&&addToSet(FORBID_TAGS,["title"]),doc&&doc.documentElement||((body=(doc=implementation.createHTMLDocument("")).body).parentNode.removeChild(body.parentNode.firstElementChild),body.outerHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(dirty):dirty),leadingWhitespace&&doc.body.insertBefore(document.createTextNode(leadingWhitespace),doc.body.childNodes[0]||null),getElementsByTagName.call(doc,
WHOLE_DOCUMENT?"html":"body")[0]};DOMPurify.isSupported&&(function(){try{_initDocument('<svg><p><style><img src="</style><img src=x onerror=1//">').querySelector("svg img")&&(useDOMParser=!0)}catch(error){}}(),function(){try{_initDocument("<x/><title>&lt;/title&gt;&lt;img&gt;").querySelector("title").innerHTML.match(/<\/title/)&&(removeTitle=!0)}catch(error){}}());function _sanitizeShadowDOM(fragment){var shadowNode,shadowIterator=_createIterator(fragment);for(_executeHook("beforeSanitizeShadowDOM",fragment,null);shadowNode=shadowIterator.nextNode();)_executeHook("uponSanitizeShadowNode",shadowNode,null),_sanitizeElements(shadowNode)||(
shadowNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(shadowNode.content),_sanitizeAttributes(shadowNode));_executeHook("afterSanitizeShadowDOM",fragment,null)}var _createIterator=function(root){return createNodeIterator.call(root.ownerDocument||root,root,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1)},_isNode=function(obj){return"object"===(void 0===Node?"undefined":_typeof$1(Node))?obj instanceof Node:obj&&"object"===(void 0===obj?"undefined":_typeof$1(obj))&&"number"==typeof obj.nodeType&&"string"==typeof obj.nodeName},_executeHook=function(entryPoint,currentNode,data){
hooks[entryPoint]&&hooks[entryPoint].forEach(function(hook){hook.call(DOMPurify,currentNode,data,CONFIG)})},_sanitizeElements=function(currentNode){var content=void 0;if(_executeHook("beforeSanitizeElements",currentNode,null),!((tagName=currentNode)instanceof Text||tagName instanceof Comment||"string"==typeof tagName.nodeName&&"string"==typeof tagName.textContent&&"function"==typeof tagName.removeChild&&tagName.attributes instanceof NamedNodeMap&&"function"==typeof tagName.removeAttribute&&"function"==typeof tagName.setAttribute))return _forceRemove(currentNode),!0;var tagName=currentNode.nodeName.toLowerCase();if(_executeHook("uponSanitizeElement",
currentNode,{tagName:tagName,allowedTags:ALLOWED_TAGS}),ALLOWED_TAGS[tagName]&&!FORBID_TAGS[tagName])return"noscript"===tagName&&currentNode.innerHTML.match(/<\/noscript/i)||"noembed"===tagName&&currentNode.innerHTML.match(/<\/noembed/i)?(_forceRemove(currentNode),!0):(!SAFE_FOR_JQUERY||currentNode.firstElementChild||currentNode.content&&currentNode.content.firstElementChild||!/</g.test(currentNode.textContent)||(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.innerHTML?currentNode.innerHTML=currentNode.innerHTML.replace(/</g,"&lt;"):currentNode.innerHTML=currentNode.textContent.replace(/</g,"&lt;")),
SAFE_FOR_TEMPLATES&&3===currentNode.nodeType&&(content=(content=(content=currentNode.textContent).replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," "),currentNode.textContent!==content&&(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.textContent=content)),_executeHook("afterSanitizeElements",currentNode,null),!1);if(KEEP_CONTENT&&!FORBID_CONTENTS[tagName]&&"function"==typeof currentNode.insertAdjacentHTML)try{var htmlToInsert=currentNode.innerHTML;currentNode.insertAdjacentHTML("AfterEnd",trustedTypesPolicy?trustedTypesPolicy.createHTML(htmlToInsert):htmlToInsert)}catch(error){}return _forceRemove(currentNode),!0},
_isValidAttribute=function(lcTag,lcName,value){if(SANITIZE_DOM&&("id"===lcName||"name"===lcName)&&(value in document||value in formElement))return!1;if(!(ALLOW_DATA_ATTR&&DATA_ATTR$$1.test(lcName)||ALLOW_ARIA_ATTR&&ARIA_ATTR$$1.test(lcName))){if(!ALLOWED_ATTR[lcName]||FORBID_ATTR[lcName])return!1;if(!URI_SAFE_ATTRIBUTES[lcName]&&!IS_ALLOWED_URI$$1.test(value.replace(ATTR_WHITESPACE$$1,""))&&("src"!==lcName&&"xlink:href"!==lcName||"script"===lcTag||0!==value.indexOf("data:")||!DATA_URI_TAGS[lcTag])&&(!ALLOW_UNKNOWN_PROTOCOLS||IS_SCRIPT_OR_DATA$$1.test(value.replace(ATTR_WHITESPACE$$1,"")))&&value)return!1}return!0},_sanitizeAttributes=function(currentNode){
var attr=void 0,value=void 0,l=void 0;_executeHook("beforeSanitizeAttributes",currentNode,null);var attributes=currentNode.attributes;if(attributes){for(var hookEvent={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ALLOWED_ATTR},l=attributes.length;l--;){var name=(attr=attributes[l]).name,namespaceURI=attr.namespaceURI,value=attr.value.trim(),lcName=name.toLowerCase();if(hookEvent.attrName=lcName,hookEvent.attrValue=value,hookEvent.keepAttr=!0,_executeHook("uponSanitizeAttribute",currentNode,hookEvent),value=hookEvent.attrValue,"name"===lcName&&"IMG"===currentNode.nodeName&&attributes.id)lcTag=attributes.id,attributes=apply(arraySlice,attributes,[]),
_removeAttribute("id",currentNode),_removeAttribute(name,currentNode),attributes.indexOf(lcTag)>l&&currentNode.setAttribute("id",lcTag.value);else{if("INPUT"===currentNode.nodeName&&"type"===lcName&&"file"===value&&hookEvent.keepAttr&&(ALLOWED_ATTR[lcName]||!FORBID_ATTR[lcName]))continue;"id"===name&&currentNode.setAttribute(name,""),_removeAttribute(name,currentNode)}if(hookEvent.keepAttr){SAFE_FOR_TEMPLATES&&(value=(value=value.replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," "));var lcTag=currentNode.nodeName.toLowerCase();if(_isValidAttribute(lcTag,lcName,value))try{namespaceURI?currentNode.setAttributeNS(namespaceURI,name,value
):currentNode.setAttribute(name,value),DOMPurify.removed.pop()}catch(error){}}}_executeHook("afterSanitizeAttributes",currentNode,null)}};return DOMPurify.sanitize=function(serializedHTML,importedNode){var currentNode,body=void 0,oldNode=void 0,returnNode=void 0;if("string"!=typeof(serializedHTML=serializedHTML||"\x3c!--\x3e")&&!_isNode(serializedHTML)){if("function"!=typeof serializedHTML.toString)throw new TypeError("toString is not a function");if("string"!=typeof(serializedHTML=serializedHTML.toString()))throw new TypeError("dirty is not a string, aborting")}if(!DOMPurify.isSupported){if("object"===_typeof$1(window.toStaticHTML
)||"function"==typeof window.toStaticHTML){if("string"==typeof serializedHTML)return window.toStaticHTML(serializedHTML);if(_isNode(serializedHTML))return window.toStaticHTML(serializedHTML.outerHTML)}return serializedHTML}if(SET_CONFIG||_parseConfig(importedNode),DOMPurify.removed=[],!IN_PLACE)if(serializedHTML instanceof Node)1===(importedNode=(body=_initDocument("\x3c!--\x3e")).ownerDocument.importNode(serializedHTML,!0)).nodeType&&"BODY"===importedNode.nodeName||"HTML"===importedNode.nodeName?body=importedNode:body.appendChild(importedNode);else{if(!RETURN_DOM&&!SAFE_FOR_TEMPLATES&&!WHOLE_DOCUMENT&&-1===serializedHTML.indexOf("<")
)return trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML;if(!(body=_initDocument(serializedHTML)))return RETURN_DOM?null:emptyHTML}body&&FORCE_BODY&&_forceRemove(body.firstChild);for(var nodeIterator=_createIterator(IN_PLACE?serializedHTML:body);currentNode=nodeIterator.nextNode();)3===currentNode.nodeType&&currentNode===oldNode||_sanitizeElements(currentNode)||(currentNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(currentNode.content),_sanitizeAttributes(currentNode),oldNode=currentNode);if(oldNode=null,IN_PLACE)return serializedHTML;if(RETURN_DOM){if(RETURN_DOM_FRAGMENT)for(
returnNode=createDocumentFragment.call(body.ownerDocument);body.firstChild;)returnNode.appendChild(body.firstChild);else returnNode=body;return RETURN_DOM_IMPORT&&(returnNode=importNode.call(originalDocument,returnNode,!0)),returnNode}return serializedHTML=WHOLE_DOCUMENT?body.outerHTML:body.innerHTML,SAFE_FOR_TEMPLATES&&(serializedHTML=(serializedHTML=serializedHTML.replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," ")),trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML},DOMPurify.setConfig=function(cfg){_parseConfig(cfg),SET_CONFIG=!0},DOMPurify.clearConfig=function(){CONFIG=null,SET_CONFIG=!1},
DOMPurify.isValidAttribute=function(lcTag,lcName,value){return CONFIG||_parseConfig({}),lcTag=lcTag.toLowerCase(),lcName=lcName.toLowerCase(),_isValidAttribute(lcTag,lcName,value)},DOMPurify.addHook=function(entryPoint,hookFunction){"function"==typeof hookFunction&&(hooks[entryPoint]=hooks[entryPoint]||[],hooks[entryPoint].push(hookFunction))},DOMPurify.removeHook=function(entryPoint){hooks[entryPoint]&&hooks[entryPoint].pop()},DOMPurify.removeHooks=function(entryPoint){hooks[entryPoint]&&(hooks[entryPoint]=[])},DOMPurify.removeAllHooks=function(){hooks={}},DOMPurify}(),defaultConfig={multiple:!0},updateCount=function($classNode,update){var count=0
;$classNode&&$classNode.length&&$classNode.hasClass("class")&&(count=$classNode.data("count"),(count+=update)<0&&(count=0),$classNode.attr("data-count",count).data("count",count))};return function($container,config){var resourceTree=selectable(component({query:function(params){return this.is("loading")||this.trigger("query",_.defaults(params||{},{classUri:this.classUri})),this},update:function(nodes,params){var $root,$component,self=this;function reduceNode(acc,node){return node.selectable=!1,node.label=purify.sanitize(node.label),self.hasNode(node.uri
)||params&&0<params.offset&&"class"===node.type||"class"===node.type&&!node.state&&!self.config.selectClass?acc:("class"===node.type&&self.config.selectClass&&(node.classUri=node.uri,node.selectable=!0,node.state||(node.state="empty"),self.addNode(node.uri,_.omit(node,["count","children"]))),"instance"===node.type&&(node.selectable=!0,self.addNode(node.uri,_.omit(node,["count","children"])),node.icon=config.icon),node.children&&node.children.length&&(node.childList=reduceNodes(node.children)),acc+=html=Template$1(node,html));var html}function reduceNodes(nodeList){return _.sortBy(nodeList,function(a,b){return b.label-a.label}).reduce(reduceNode,"")}
return this.is("rendered")&&($component=this.getElement(),params&&params.classUri&&($root=$$1('.class[data-uri="'+params.classUri+'"]',$component)),$root&&$root.length||($root=$component),nodes[0].uri===$root.data("uri")&&(nodes=nodes[0].children||[]),$root.children("ul").append(reduceNodes(nodes)),params&&_.isNumber(params.updateCount)&&updateCount($root,params.updateCount),needMore($root),indentChildren($component.children("ul"),0),$root.removeClass("closed").toggleClass("empty",!$root.children("ul").children("li").length),this.trigger("update")),this}},defaultConfig));return resourceTree.setTemplate(treeTpl).on("init",function(){
this.classUri=this.config.classUri,this.setState("multiple",!!this.config.multiple),this.render($container)}).on("render",function(){var self=this,$component=this.getElement(),toggleClass=function($class){($class.hasClass("closed")?function($class){var node=self.getNode($class.data("uri"));$class.children("ul").children("li").length||self.query({classUri:$class.data("uri")}),node&&(node.state="open"),$class.addClass("open").removeClass("closed")}:function($class){var node=self.getNode($class.data("uri"));node&&(node.state="closed"),$class.removeClass("open").addClass("closed")})($class)};self.config.selectClass?$component.on("click",".class",function(e){
var $class=$$1(e.currentTarget);e.preventDefault(),e.stopPropagation(),$$1(e.target).hasClass("class-toggler")?$class.hasClass("empty")||toggleClass($class):$class.hasClass("selected")?self.unselect($class.data("uri")):"denied"!==$class.data("access")&&self.select($class.data("uri"),!self.is("multiple"),!1,!0)}):$component.on("click",".class",function(e){var $class=$$1(e.currentTarget);e.preventDefault(),e.stopPropagation(),$class.hasClass("empty")||toggleClass($class)}),$component.on("click",".instance",function(e){var $instance=$$1(e.currentTarget);e.preventDefault(),e.stopPropagation(),"denied"!==$instance.data("access")&&($instance.hasClass("selected"
)?self.unselect($instance.data("uri")):self.select($instance.data("uri"),!self.is("multiple")))}),$component.on("click",".more",function(e){var $root=$$1(e.currentTarget).parent(".class");e.preventDefault(),e.stopPropagation(),self.query({classUri:$root.data("uri"),offset:$root.children("ul").children(".instance").length})}),this.config.nodes?this.update(this.config.nodes):this.query()}).on("query",function(){this.setState("loading",!0)}).on("update",function(){this.setState("loading",!1)}).on("remove",function($parent){var $node;this.is("rendered")&&$parent&&($parent=($node=$$1('[data-uri="'+$parent+'"]',this.getElement())).parents(".class"),$node.hasClass(
"instance")&&updateCount($parent,-1),1===($parent=$parent.first()).children("ul").children("li").length&&$parent.removeClass("closed").addClass("empty"),$node.remove())}),_.defer(function(){resourceTree.init(config)}),resourceTree}}),define("ui/resource/list",["jquery","lodash","ui/component","ui/resource/selectable","ui/hider","handlebars","i18n","lib/dompurify/purify"],function($$1,_,component,selectable,hider,seal,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,selectable=selectable&&Object.prototype.hasOwnProperty.call(selectable,"default")?selectable.default:selectable,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default"
)?hider.default:hider,seal=seal&&Object.prototype.hasOwnProperty.call(seal,"default")?seal.default:seal,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(seal),Helpers0.__initialized=!0);var Template=seal.template(function(stack1,depth0,helper,partials,options){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,stack1.helpers),options=options||{};var buffer="",helperMissing=helper.helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="resource-list ',!(
stack1=helper.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"multiple"},options),data:options}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <ul></ul>\n <div class="more hidden">\n <a href="#" class="btn-info small"><span class="icon-download"></span> '+escapeExpression((options={hash:{},data:options},(helper=helper.__||depth0&&depth0.__)?helper.call(depth0,"Load more",options):helperMissing.call(depth0,"__","Load more",options)))+"</a>\n </div>\n</div>\n\n"});function listTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(seal),
Helpers0.__initialized=!0);var Template$1=seal.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<li data-uri="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.selected,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'class="selected"'},data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+=' class="',stack1=(helper=helpers.state)||typeof(helper=depth0&&depth0.state)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.accessMode,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+='data-access="',stack1=(stack1=helpers.accessMode)||typeof(stack1=depth0&&depth0.accessMode)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='>\n <a href="#" title="',!(stack1=(
helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='"><span class="icon-',stack1=(helper=helpers.icon)||typeof(helper=depth0&&depth0.icon)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"></span>',!(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</a>\n</li>\n\n"});var seal=Object.freeze||function(x){return x},html=seal(["a","abbr","acronym","address","area","article","aside","audio",
"b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup"
,"table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg=seal(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),svgFilters=seal(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix",
"feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mathMl=seal(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),text=seal(["#text"]),seal=Object.freeze||function(x){return x},html$1=seal(["accept","action","align","alt","autocomplete","background","bgcolor",
"border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style"
,"summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),svg$1=seal(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style",
"font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform",
"patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y",
"vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl$1=seal(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection",
"separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=seal(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,apply$1=("undefined"!=typeof Reflect&&Reflect).apply;function addToSet(set,array){setPrototypeOf&&setPrototypeOf(set,null);for(var l=array.length;l--;){var lcElement,element=array[l];"string"!=typeof element||(lcElement=element.toLowerCase())!==element&&(Object.isFrozen(array)||(array[l]=lcElement),element=lcElement),set[element]=!0}return set}function clone(object){var newObject={},property=void 0;for(
property in object)apply$1(hasOwnProperty,object,[property])&&(newObject[property]=object[property]);return newObject}apply$1=apply$1||function(fun,thisValue,args){return fun.apply(thisValue,args)};var seal=Object.seal||function(x){return x},MUSTACHE_EXPR=seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ERB_EXPR=seal(/<%[\s\S]*|[\s\S]*%>/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),
_typeof$1="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(obj){return _typeof(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof(obj)};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}var apply=("undefined"!=typeof Reflect&&Reflect).apply,arraySlice=Array.prototype.slice,freeze=Object.freeze,getGlobal=function(){return"undefined"==typeof window?null:window},apply=apply||function(fun,thisValue,args){return fun.apply(thisValue,args)},
_createTrustedTypesPolicy=function(trustedTypes,document){if("object"!==(void 0===trustedTypes?"undefined":_typeof$1(trustedTypes))||"function"!=typeof trustedTypes.createPolicy)return null;var suffix=null;document.currentScript&&document.currentScript.hasAttribute("data-tt-policy-suffix")&&(suffix=document.currentScript.getAttribute("data-tt-policy-suffix"));var policyName="dompurify"+(suffix?"#"+suffix:"");try{return trustedTypes.createPolicy(policyName,{createHTML:function(html$$1){return html$$1}})}catch(error){return console.warn("TrustedTypes policy "+policyName+" could not be created."),null}};var purify=function createDOMPurify(TrustedTypes){
var window=0<arguments.length&&void 0!==TrustedTypes?TrustedTypes:getGlobal(),DOMPurify=function(root){return createDOMPurify(root)};if(DOMPurify.version="1.0.11",DOMPurify.removed=[],!window||!window.document||9!==window.document.nodeType)return DOMPurify.isSupported=!1,DOMPurify;var originalDocument=window.document,useDOMParser=!1,removeTitle=!1,document=window.document,DocumentFragment=window.DocumentFragment,template=window.HTMLTemplateElement,Node=window.Node,NodeFilter=window.NodeFilter,TrustedTypes=window.NamedNodeMap,NamedNodeMap=void 0===TrustedTypes?window.NamedNodeMap||window.MozNamedAttrMap:TrustedTypes,Text=window.Text,Comment=window.Comment,
DOMParser=window.DOMParser,TrustedTypes=window.TrustedTypes;"function"!=typeof template||(template=document.createElement("template")).content&&template.content.ownerDocument&&(document=template.content.ownerDocument);var trustedTypesPolicy=_createTrustedTypesPolicy(TrustedTypes,originalDocument),emptyHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(""):"",implementation=document.implementation,createNodeIterator=document.createNodeIterator,getElementsByTagName=document.getElementsByTagName,createDocumentFragment=document.createDocumentFragment,importNode=originalDocument.importNode,hooks={}
;DOMPurify.isSupported=implementation&&void 0!==implementation.createHTMLDocument&&9!==document.documentMode;var USE_PROFILES,MUSTACHE_EXPR$$1=MUSTACHE_EXPR,ERB_EXPR$$1=ERB_EXPR,DATA_ATTR$$1=DATA_ATTR,ARIA_ATTR$$1=ARIA_ATTR,IS_SCRIPT_OR_DATA$$1=IS_SCRIPT_OR_DATA,ATTR_WHITESPACE$$1=ATTR_WHITESPACE,IS_ALLOWED_URI$$1=IS_ALLOWED_URI,ALLOWED_TAGS=null,DEFAULT_ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(svgFilters),_toConsumableArray(mathMl),_toConsumableArray(text))),ALLOWED_ATTR=null,DEFAULT_ALLOWED_ATTR=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(
mathMl$1),_toConsumableArray(xml))),FORBID_TAGS=null,FORBID_ATTR=null,ALLOW_ARIA_ATTR=!0,ALLOW_DATA_ATTR=!0,ALLOW_UNKNOWN_PROTOCOLS=!1,SAFE_FOR_JQUERY=!1,SAFE_FOR_TEMPLATES=!1,WHOLE_DOCUMENT=!1,SET_CONFIG=!1,FORCE_BODY=!1,RETURN_DOM=!1,RETURN_DOM_FRAGMENT=!1,RETURN_DOM_IMPORT=!1,SANITIZE_DOM=!0,KEEP_CONTENT=!0,IN_PLACE=!1,FORBID_CONTENTS=addToSet({},["audio","head","math","script","style","template","svg","video"]),DATA_URI_TAGS=addToSet({},["audio","video","img","source","image"]),URI_SAFE_ATTRIBUTES=null,DEFAULT_URI_SAFE_ATTRIBUTES=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),
CONFIG=null,formElement=document.createElement("form"),_parseConfig=function(cfg){CONFIG&&CONFIG===cfg||(cfg&&"object"===(void 0===cfg?"undefined":_typeof$1(cfg))||(cfg={}),ALLOWED_TAGS="ALLOWED_TAGS"in cfg?addToSet({},cfg.ALLOWED_TAGS):DEFAULT_ALLOWED_TAGS,ALLOWED_ATTR="ALLOWED_ATTR"in cfg?addToSet({},cfg.ALLOWED_ATTR):DEFAULT_ALLOWED_ATTR,URI_SAFE_ATTRIBUTES="ADD_URI_SAFE_ATTR"in cfg?addToSet({},cfg.ADD_URI_SAFE_ATTR):DEFAULT_URI_SAFE_ATTRIBUTES,FORBID_TAGS="FORBID_TAGS"in cfg?addToSet({},cfg.FORBID_TAGS):{},FORBID_ATTR="FORBID_ATTR"in cfg?addToSet({},cfg.FORBID_ATTR):{},USE_PROFILES="USE_PROFILES"in cfg&&cfg.USE_PROFILES,
ALLOW_ARIA_ATTR=!1!==cfg.ALLOW_ARIA_ATTR,ALLOW_DATA_ATTR=!1!==cfg.ALLOW_DATA_ATTR,ALLOW_UNKNOWN_PROTOCOLS=cfg.ALLOW_UNKNOWN_PROTOCOLS||!1,SAFE_FOR_JQUERY=cfg.SAFE_FOR_JQUERY||!1,SAFE_FOR_TEMPLATES=cfg.SAFE_FOR_TEMPLATES||!1,WHOLE_DOCUMENT=cfg.WHOLE_DOCUMENT||!1,RETURN_DOM=cfg.RETURN_DOM||!1,RETURN_DOM_FRAGMENT=cfg.RETURN_DOM_FRAGMENT||!1,RETURN_DOM_IMPORT=cfg.RETURN_DOM_IMPORT||!1,FORCE_BODY=cfg.FORCE_BODY||!1,SANITIZE_DOM=!1!==cfg.SANITIZE_DOM,KEEP_CONTENT=!1!==cfg.KEEP_CONTENT,IN_PLACE=cfg.IN_PLACE||!1,IS_ALLOWED_URI$$1=cfg.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$$1,SAFE_FOR_TEMPLATES&&(ALLOW_DATA_ATTR=!1),RETURN_DOM_FRAGMENT&&(RETURN_DOM=!0),USE_PROFILES&&(
ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(text))),ALLOWED_ATTR=[],!0===USE_PROFILES.html&&(addToSet(ALLOWED_TAGS,html),addToSet(ALLOWED_ATTR,html$1)),!0===USE_PROFILES.svg&&(addToSet(ALLOWED_TAGS,svg),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.svgFilters&&(addToSet(ALLOWED_TAGS,svgFilters),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.mathMl&&(addToSet(ALLOWED_TAGS,mathMl),addToSet(ALLOWED_ATTR,mathMl$1),addToSet(ALLOWED_ATTR,xml))),cfg.ADD_TAGS&&(ALLOWED_TAGS===DEFAULT_ALLOWED_TAGS&&(ALLOWED_TAGS=clone(ALLOWED_TAGS)),addToSet(ALLOWED_TAGS,cfg.ADD_TAGS)),cfg.ADD_ATTR&&(
ALLOWED_ATTR===DEFAULT_ALLOWED_ATTR&&(ALLOWED_ATTR=clone(ALLOWED_ATTR)),addToSet(ALLOWED_ATTR,cfg.ADD_ATTR)),cfg.ADD_URI_SAFE_ATTR&&addToSet(URI_SAFE_ATTRIBUTES,cfg.ADD_URI_SAFE_ATTR),KEEP_CONTENT&&(ALLOWED_TAGS["#text"]=!0),WHOLE_DOCUMENT&&addToSet(ALLOWED_TAGS,["html","head","body"]),ALLOWED_TAGS.table&&addToSet(ALLOWED_TAGS,["tbody"]),freeze&&freeze(cfg),CONFIG=cfg)},_forceRemove=function(node){DOMPurify.removed.push({element:node});try{node.parentNode.removeChild(node)}catch(error){node.outerHTML=emptyHTML}},_removeAttribute=function(name,node){try{DOMPurify.removed.push({attribute:node.getAttributeNode(name),from:node})}catch(error){
DOMPurify.removed.push({attribute:null,from:node})}node.removeAttribute(name)},_initDocument=function(dirty){var body,doc=void 0,leadingWhitespace=void 0;if(FORCE_BODY?dirty="<remove></remove>"+dirty:(leadingWhitespace=(body=dirty.match(/^[\s]+/))&&body[0])&&(dirty=dirty.slice(leadingWhitespace.length)),useDOMParser)try{doc=(new DOMParser).parseFromString(dirty,"text/html")}catch(error){}return removeTitle&&addToSet(FORBID_TAGS,["title"]),doc&&doc.documentElement||((body=(doc=implementation.createHTMLDocument("")).body).parentNode.removeChild(body.parentNode.firstElementChild),body.outerHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(dirty):dirty),
leadingWhitespace&&doc.body.insertBefore(document.createTextNode(leadingWhitespace),doc.body.childNodes[0]||null),getElementsByTagName.call(doc,WHOLE_DOCUMENT?"html":"body")[0]};DOMPurify.isSupported&&(function(){try{_initDocument('<svg><p><style><img src="</style><img src=x onerror=1//">').querySelector("svg img")&&(useDOMParser=!0)}catch(error){}}(),function(){try{_initDocument("<x/><title>&lt;/title&gt;&lt;img&gt;").querySelector("title").innerHTML.match(/<\/title/)&&(removeTitle=!0)}catch(error){}}());function _sanitizeShadowDOM(fragment){var shadowNode,shadowIterator=_createIterator(fragment);for(_executeHook("beforeSanitizeShadowDOM",fragment,null
);shadowNode=shadowIterator.nextNode();)_executeHook("uponSanitizeShadowNode",shadowNode,null),_sanitizeElements(shadowNode)||(shadowNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(shadowNode.content),_sanitizeAttributes(shadowNode));_executeHook("afterSanitizeShadowDOM",fragment,null)}var _createIterator=function(root){return createNodeIterator.call(root.ownerDocument||root,root,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1)},_isNode=function(obj){return"object"===(void 0===Node?"undefined":_typeof$1(Node))?obj instanceof Node:obj&&"object"===(
void 0===obj?"undefined":_typeof$1(obj))&&"number"==typeof obj.nodeType&&"string"==typeof obj.nodeName},_executeHook=function(entryPoint,currentNode,data){hooks[entryPoint]&&hooks[entryPoint].forEach(function(hook){hook.call(DOMPurify,currentNode,data,CONFIG)})},_sanitizeElements=function(currentNode){var content=void 0;if(_executeHook("beforeSanitizeElements",currentNode,null),!((tagName=currentNode
)instanceof Text||tagName instanceof Comment||"string"==typeof tagName.nodeName&&"string"==typeof tagName.textContent&&"function"==typeof tagName.removeChild&&tagName.attributes instanceof NamedNodeMap&&"function"==typeof tagName.removeAttribute&&"function"==typeof tagName.setAttribute))return _forceRemove(currentNode),!0;var tagName=currentNode.nodeName.toLowerCase();if(_executeHook("uponSanitizeElement",currentNode,{tagName:tagName,allowedTags:ALLOWED_TAGS}),ALLOWED_TAGS[tagName]&&!FORBID_TAGS[tagName])return"noscript"===tagName&&currentNode.innerHTML.match(/<\/noscript/i)||"noembed"===tagName&&currentNode.innerHTML.match(/<\/noembed/i)?(_forceRemove(
currentNode),!0):(!SAFE_FOR_JQUERY||currentNode.firstElementChild||currentNode.content&&currentNode.content.firstElementChild||!/</g.test(currentNode.textContent)||(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.innerHTML?currentNode.innerHTML=currentNode.innerHTML.replace(/</g,"&lt;"):currentNode.innerHTML=currentNode.textContent.replace(/</g,"&lt;")),SAFE_FOR_TEMPLATES&&3===currentNode.nodeType&&(content=(content=(content=currentNode.textContent).replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," "),currentNode.textContent!==content&&(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.textContent=content)),
_executeHook("afterSanitizeElements",currentNode,null),!1);if(KEEP_CONTENT&&!FORBID_CONTENTS[tagName]&&"function"==typeof currentNode.insertAdjacentHTML)try{var htmlToInsert=currentNode.innerHTML;currentNode.insertAdjacentHTML("AfterEnd",trustedTypesPolicy?trustedTypesPolicy.createHTML(htmlToInsert):htmlToInsert)}catch(error){}return _forceRemove(currentNode),!0},_isValidAttribute=function(lcTag,lcName,value){if(SANITIZE_DOM&&("id"===lcName||"name"===lcName)&&(value in document||value in formElement))return!1;if(!(ALLOW_DATA_ATTR&&DATA_ATTR$$1.test(lcName)||ALLOW_ARIA_ATTR&&ARIA_ATTR$$1.test(lcName))){if(!ALLOWED_ATTR[lcName]||FORBID_ATTR[lcName])return!1
;if(!URI_SAFE_ATTRIBUTES[lcName]&&!IS_ALLOWED_URI$$1.test(value.replace(ATTR_WHITESPACE$$1,""))&&("src"!==lcName&&"xlink:href"!==lcName||"script"===lcTag||0!==value.indexOf("data:")||!DATA_URI_TAGS[lcTag])&&(!ALLOW_UNKNOWN_PROTOCOLS||IS_SCRIPT_OR_DATA$$1.test(value.replace(ATTR_WHITESPACE$$1,"")))&&value)return!1}return!0},_sanitizeAttributes=function(currentNode){var attr=void 0,value=void 0,l=void 0;_executeHook("beforeSanitizeAttributes",currentNode,null);var attributes=currentNode.attributes;if(attributes){for(var hookEvent={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ALLOWED_ATTR},l=attributes.length;l--;){var name=(attr=attributes[l]).name,
namespaceURI=attr.namespaceURI,value=attr.value.trim(),lcName=name.toLowerCase();if(hookEvent.attrName=lcName,hookEvent.attrValue=value,hookEvent.keepAttr=!0,_executeHook("uponSanitizeAttribute",currentNode,hookEvent),value=hookEvent.attrValue,"name"===lcName&&"IMG"===currentNode.nodeName&&attributes.id)lcTag=attributes.id,attributes=apply(arraySlice,attributes,[]),_removeAttribute("id",currentNode),_removeAttribute(name,currentNode),attributes.indexOf(lcTag)>l&&currentNode.setAttribute("id",lcTag.value);else{if("INPUT"===currentNode.nodeName&&"type"===lcName&&"file"===value&&hookEvent.keepAttr&&(ALLOWED_ATTR[lcName]||!FORBID_ATTR[lcName]))continue
;"id"===name&&currentNode.setAttribute(name,""),_removeAttribute(name,currentNode)}if(hookEvent.keepAttr){SAFE_FOR_TEMPLATES&&(value=(value=value.replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," "));var lcTag=currentNode.nodeName.toLowerCase();if(_isValidAttribute(lcTag,lcName,value))try{namespaceURI?currentNode.setAttributeNS(namespaceURI,name,value):currentNode.setAttribute(name,value),DOMPurify.removed.pop()}catch(error){}}}_executeHook("afterSanitizeAttributes",currentNode,null)}};return DOMPurify.sanitize=function(serializedHTML,importedNode){var currentNode,body=void 0,oldNode=void 0,returnNode=void 0;if("string"!=typeof(
serializedHTML=serializedHTML||"\x3c!--\x3e")&&!_isNode(serializedHTML)){if("function"!=typeof serializedHTML.toString)throw new TypeError("toString is not a function");if("string"!=typeof(serializedHTML=serializedHTML.toString()))throw new TypeError("dirty is not a string, aborting")}if(!DOMPurify.isSupported){if("object"===_typeof$1(window.toStaticHTML)||"function"==typeof window.toStaticHTML){if("string"==typeof serializedHTML)return window.toStaticHTML(serializedHTML);if(_isNode(serializedHTML))return window.toStaticHTML(serializedHTML.outerHTML)}return serializedHTML}if(SET_CONFIG||_parseConfig(importedNode),DOMPurify.removed=[],!IN_PLACE)if(
serializedHTML instanceof Node)1===(importedNode=(body=_initDocument("\x3c!--\x3e")).ownerDocument.importNode(serializedHTML,!0)).nodeType&&"BODY"===importedNode.nodeName||"HTML"===importedNode.nodeName?body=importedNode:body.appendChild(importedNode);else{if(!RETURN_DOM&&!SAFE_FOR_TEMPLATES&&!WHOLE_DOCUMENT&&-1===serializedHTML.indexOf("<"))return trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML;if(!(body=_initDocument(serializedHTML)))return RETURN_DOM?null:emptyHTML}body&&FORCE_BODY&&_forceRemove(body.firstChild);for(var nodeIterator=_createIterator(IN_PLACE?serializedHTML:body);currentNode=nodeIterator.nextNode();
)3===currentNode.nodeType&&currentNode===oldNode||_sanitizeElements(currentNode)||(currentNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(currentNode.content),_sanitizeAttributes(currentNode),oldNode=currentNode);if(oldNode=null,IN_PLACE)return serializedHTML;if(RETURN_DOM){if(RETURN_DOM_FRAGMENT)for(returnNode=createDocumentFragment.call(body.ownerDocument);body.firstChild;)returnNode.appendChild(body.firstChild);else returnNode=body;return RETURN_DOM_IMPORT&&(returnNode=importNode.call(originalDocument,returnNode,!0)),returnNode}return serializedHTML=WHOLE_DOCUMENT?body.outerHTML:body.innerHTML,SAFE_FOR_TEMPLATES&&(serializedHTML=(
serializedHTML=serializedHTML.replace(MUSTACHE_EXPR$$1," ")).replace(ERB_EXPR$$1," ")),trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML},DOMPurify.setConfig=function(cfg){_parseConfig(cfg),SET_CONFIG=!0},DOMPurify.clearConfig=function(){CONFIG=null,SET_CONFIG=!1},DOMPurify.isValidAttribute=function(lcTag,lcName,value){return CONFIG||_parseConfig({}),lcTag=lcTag.toLowerCase(),lcName=lcName.toLowerCase(),_isValidAttribute(lcTag,lcName,value)},DOMPurify.addHook=function(entryPoint,hookFunction){"function"==typeof hookFunction&&(hooks[entryPoint]=hooks[entryPoint]||[],hooks[entryPoint].push(hookFunction))},
DOMPurify.removeHook=function(entryPoint){hooks[entryPoint]&&hooks[entryPoint].pop()},DOMPurify.removeHooks=function(entryPoint){hooks[entryPoint]&&(hooks[entryPoint]=[])},DOMPurify.removeAllHooks=function(){hooks={}},DOMPurify}(),defaultConfig={multiple:!0};return function($container,config){var $list,$loadMore,resourceList=selectable(component({query:function(params){this.is("loading")||this.trigger("query",_.defaults(params||{},{classUri:this.classUri}))},update:function(resources){var self=this;this.is("rendered")&&($list.html(_.reduce(resources.nodes,function(acc,node){var html;return node.icon=self.config.icon,node.label=purify.sanitize(node.label),
acc+=html=Template$1(node,html)},"")),_.forEach(resources.nodes,function(node){self.addNode(node.uri,node)}),resources.total>_.size(self.getNodes())?hider.show($loadMore):hider.hide($loadMore),this.trigger("update"))}},defaultConfig));return resourceList.setTemplate(listTpl).on("init",function(){this.classUri=this.config.classUri,this.setState("multiple",!!this.config.multiple),this.render($container)}).on("render",function(){var self=this,$component=this.getElement();$list=$component.children("ul"),$loadMore=$$1(".more",$component),$component.on("click","li",function(e){var $instance=$$1(e.currentTarget);e.preventDefault(),e.stopPropagation(),
$instance.hasClass("selected")?self.unselect($instance.data("uri")):self.select($instance.data("uri"),!self.is("multiple"))}),$loadMore.on("click",function(e){e.preventDefault(),self.query({offset:_.size(self.getNodes())})}),this.config.nodes?this.update(this.config.nodes):this.query()}).on("query",function(){this.setState("loading",!0)}).on("update",function(){this.setState("loading",!1)}).on("remove",function(uri){this.is("rendered")&&$$1('[data-uri="'+uri+'"]',this.getElement()).remove()}),_.defer(function(){resourceList.init(config)}),resourceList}}),define("css!ui/generis/validator/css/validator",[],function(){}),define("ui/generis/validator/validator",
["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/generis/validator/css/validator.css"],function($$1,_,componentFactory,Handlebars,__,DOMPurify,validator_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,
keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret=""
;startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,
Handlebars.helpers),'<div class="ui-generis-validator"></div>'});function tpl(data,html,asString){html=Template(data,html);return html}return function(options){var validator;return options=options||{},(validator=componentFactory({run:function(value){return this.errors=_(this.validations).reject(function(validation){return validation.predicate instanceof RegExp?validation.predicate.test(value):"function"==typeof validation.predicate?validation.predicate(value):void 0},this).sortBy("precedence").map(function(validation){return validation.message}).value(),this},clear:function(){return this.errors=[],this.is("rendered")&&this.getElement().empty(),this},
display:function(){var $this=this.getElement();return this.is("rendered")&&($this.empty(),_.each(this.errors,function(error){$this.append($$1("<div>",{class:"validation-error"}).text(error))})),this},addValidation:function(validation){return this.validations.push(validation),this},removeValidations:function(){return this.validations=[],this}}).setTemplate(tpl).init()).errors=[],validator.validations=options.validations||[],validator}}),define("css!ui/generis/widget/css/widget",[],function(){}),define("ui/generis/widget/widget",["lodash","i18n","ui/component","ui/generis/validator/validator","handlebars","lib/dompurify/purify",
"css!ui/generis/widget/css/widget.css"],function(_,__,componentFactory,generisValidatorFactory,Handlebars,DOMPurify,widget_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(
componentFactory,"default")?componentFactory.default:componentFactory,generisValidatorFactory=generisValidatorFactory&&Object.prototype.hasOwnProperty.call(generisValidatorFactory,"default")?generisValidatorFactory.default:generisValidatorFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{}
;var helper,buffer="",helperMissing=(helpers=this.merge(helpers,stack1.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<label for="',stack1=(helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n ',stack1=(helper=helpers.label)||"function"==typeof(helper=depth0&&depth0.label)?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.required,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,helper){var options,buffer=""
;return buffer+='\n <abbr title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"This field is required",options):helperMissing.call(depth0,"__","This field is required",options)))+'">*</abbr>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</label>"});return Handlebars.registerPartial("ui-generis-widget-label",function(data,html,asString){return html=Template(data,html)}),function(options,widget){return options=options||{},(widget=componentFactory(_.assign({get:function(){var ret=this.config.value||"";return this.is("rendered")&&(ret=this.getElement().find(
'[name="'+this.config.uri+'"]').val()),ret},set:function(value){return this.config.value=value,this.is("rendered")&&this.getElement().find('[name="'+this.config.uri+'"]').val(value),this.config.value},setValidator:function(validator){return"function"==typeof(validator=validator||[]).is?this.validator=validator:this.validator=generisValidatorFactory({validations:validator}),this.is("rendered")?this.validator.render(this.getElement()):this.on("render.setValidator",function(){this.validator.render(this.getElement()),this.off("render.setValidator")}),this},validate:function(){var input;return this.validator&&(this.validator.run(this.get()),
this.validator.display(),this.is("rendered")&&(input=this.getElement().find(".right > :input, .right > .check-box-input"),this.validator.errors.length?input.addClass("error"):input.removeClass("error"))),this},serialize:function(){return{name:this.config.uri,value:this.get()}}},widget),{label:__("Label"),required:!1}).on("render",function(){var $input=this.getElement().find(".right :input"),self=this;$input.on("change blur",function(){self.trigger("change",self.serialize())})})).setValidator(options.validator),widget}}),define("ui/generis/widget/checkBox/checkBox",["jquery","lodash","i18n","ui/generis/widget/widget","handlebars","lib/dompurify/purify"],
function($$1,_,__,widgetFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,
"default")?widgetFactory.default:widgetFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helpers,stack1,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=this.merge(stack1,buffer.partials),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,
helperMissing=helpers.helperMissing;function program2(depth0,data){return'\n checked="true" '}return buffer+='<div class="ui-generis-widget check-box">\n <div class="left">\n ',!(stack1=self.invokePartial(stack1["ui-generis-widget-label"],"ui-generis-widget-label",depth0,helpers,stack1,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="right">\n <div class="check-box-input">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.range,{hash:{},inverse:self.noop,fn:self.programWithDepth(1,function(depth0,options,depth1){var stack1,helper,buffer=""
;return buffer+='\n <div class="option">\n <label>\n <input type="checkbox" name="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'" value="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'" ',helper=helpers.includes||depth1&&depth1.includes,options={hash:{},inverse:self.noop,fn:self.program(2,program2,options),data:options},!(stack1=helper?helper.call(depth0,depth1&&depth1.values,depth0&&depth0.uri,options):helperMissing.call(depth0,"includes",depth1&&depth1.values,depth0&&depth0.uri,options))&&0!==stack1||(
buffer+=stack1),buffer+='>\n <span class="icon-checkbox"></span>\n '+escapeExpression(typeof(stack1=depth0&&depth0.label)===functionType?stack1.apply(depth0):stack1)+"\n </label>\n </div>\n "},data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n </div>\n</div>"});function tpl(data,html,asString){html=Template(data,html);return html}return function(validator,widget){return validator=validator.validator||[],(widget=widgetFactory({validator:validator},{get:function(){var ret=this.config.values||[];return this.is("rendered")&&(ret=[],this.getElement(
).find(".option input:checked").map(function(){ret.push($$1(this).val())})),ret},set:function(values){return Array.isArray(values)?this.config.values=values:this.config.values.push(values),this.is("rendered")&&_.each(this.config.values,function(value){this.getElement().find("input[name="+value+"]").prop("checked",!0)}),this.config.values}}).setTemplate(tpl).init({label:widget.label,range:widget.range||[],required:widget.required||!1,uri:widget.uri,values:widget.values||[]})).config.required&&widget.validator.addValidation({message:__("This field is required"),predicate:function(value){return 0<value.length},precedence:1}),widget}}),define(
"ui/generis/widget/comboBox/comboBox",["lodash","i18n","ui/generis/widget/widget","handlebars","lib/dompurify/purify"],function(_,__,widgetFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,
wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),
stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,"default")?widgetFactory.default:widgetFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,options,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),options=this.merge(options,helper.partials),data=data||{};var stack1,buffer="",
functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="ui-generis-widget combo-box">\n <div class="left">\n ',!(stack1=this.invokePartial(options["ui-generis-widget-label"],"ui-generis-widget-label",depth0,helpers,options,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="right">\n <select name="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <option value="">'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Choose a value...",options):helperMissing.call(depth0,"__","Choose a value...",options)))+"</option>\n ",!(stack1=helpers.each.call(depth0,depth0&&depth0.range,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <option value="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'">'+escapeExpression(typeof(stack1=depth0&&depth0.label)===functionType?stack1.apply(depth0):stack1)+"</option>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n </select>\n </div>\n</div>"});function tpl(data,html,asString){html=Template(data,html);return html}return function(validator,widget){return validator=validator.validator||[],(widget=widgetFactory({validator:validator},{}).setTemplate(tpl).init({label:widget.label,range:widget.range||[],required:widget.required||!1,uri:widget.uri,value:widget.value||""})).config.required&&widget.validator.addValidation({message:__("This field is required"),predicate:/\S+/,precedence:1}),widget}}),define("ui/generis/widget/hiddenBox/hiddenBox",["lodash","i18n","ui/generis/widget/widget","handlebars","lib/dompurify/purify"],function(_,__,widgetFactory,
Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,"default")?widgetFactory.default:widgetFactory,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),partials=this.merge(partials,helper.partials),data=data||{};var stack1,buffer="",escapeExpression=this.escapeExpression;return buffer+='<div class="ui-generis-widget hidden-box">\n <div class="left">\n ',!(
stack1=this.invokePartial(partials["ui-generis-widget-label"],"ui-generis-widget-label",depth0,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="right">\n <input name="',buffer+=escapeExpression(stack1=(helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper)+'" type="password">\n </div>\n</div>\n\n<div class="ui-generis-widget hidden-box confirmation">\n <div class="left">\n ',!(stack1=this.invokePartial(partials["ui-generis-widget-label"],"ui-generis-widget-label",depth0&&depth0.confirmation,helpers,partials,data))&&0!==stack1||(
buffer+=stack1),buffer+='\n </div>\n <div class="right">\n <input name="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.confirmation)||!1===stack1?stack1:stack1.uri)?stack1.apply(depth0):stack1)+'" type="password">\n </div>\n</div>'});function tpl(data,html,asString){html=Template(data,html);return html}return function(validator,widget){return validator=validator.validator||[],(widget=widgetFactory({validator:validator},{get:function(){var $el,ret={value:this.config.value,confirmation:this.config.confirmation.value};return this.is("rendered")&&($el=this.getElement(),ret.value=$el.find('[name="'+this.config.uri+'"]'
).val(),ret.confirmation=$el.find('[name="'+this.config.confirmation.uri+'"]').val()),ret},set:function(value){var $el;return this.config.value=this.config.confirmation.value=value,this.is("rendered")&&(($el=this.getElement()).find('[name="'+this.config.uri+'"]').val(value),$el.find('[name="'+this.config.confirmation.uri+'"]').val(value)),{value:this.config.value,confirmation:this.config.confirmation.value}},serialize:function(){return{name:this.config.uri,value:this.get().value}}}).setTemplate(tpl).init({confirmation:{label:__("%s Confirmation",widget.label),uri:widget.uri+"_confirmation",value:widget.value||""},label:widget.label,
required:widget.required||!1,uri:widget.uri,value:widget.value||""})).config.required&&widget.validator.addValidation({message:__("This field is required"),predicate:function(value){return/\S+/.test(value.value)},precedence:1}),widget.validator.addValidation({message:__("Fields must match"),predicate:function(value){return value.value===value.confirmation},precedence:2}),widget}}),define("ui/generis/widget/textBox/textBox",["lodash","i18n","ui/generis/widget/widget","handlebars","lib/dompurify/purify"],function(_,__,widgetFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,"default")?widgetFactory.default:widgetFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,helper,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),helper=this.merge(helper,stack1.partials),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<div class="ui-generis-widget text-box">\n <div class="left">\n ',!(stack1=this.invokePartial(helper["ui-generis-widget-label"],"ui-generis-widget-label",depth0,helpers,helper,data))&&0!==stack1||(
buffer+=stack1),buffer+='\n </div>\n <div class="right">\n <input name="',buffer+=escapeExpression(stack1=(helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper)+'" value="',buffer+=escapeExpression(stack1=(helper=helpers.value)||"function"==typeof(helper=depth0&&depth0.value)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n </div>\n</div>'});function tpl(data,html,asString){html=Template(data,html);return html}return function(validator,widget){return validator=validator.validator||[],(widget=widgetFactory({validator:validator},{}).setTemplate(tpl).init({label:widget.label,
required:widget.required||!1,uri:widget.uri,value:widget.value||""})).config.required&&widget.validator.addValidation({message:__("This field is required"),predicate:/\S+/,precedence:1}),widget}}),define("ui/generis/widget/loader",["lodash","ui/generis/widget/checkBox/checkBox","ui/generis/widget/comboBox/comboBox","ui/generis/widget/hiddenBox/hiddenBox","ui/generis/widget/textBox/textBox"],function(_,checkBoxFactory,comboBoxFactory,hiddenBoxFactory,textBoxFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,checkBoxFactory=checkBoxFactory&&Object.prototype.hasOwnProperty.call(checkBoxFactory,"default"
)?checkBoxFactory.default:checkBoxFactory,comboBoxFactory=comboBoxFactory&&Object.prototype.hasOwnProperty.call(comboBoxFactory,"default")?comboBoxFactory.default:comboBoxFactory,hiddenBoxFactory=hiddenBoxFactory&&Object.prototype.hasOwnProperty.call(hiddenBoxFactory,"default")?hiddenBoxFactory.default:hiddenBoxFactory,textBoxFactory=textBoxFactory&&Object.prototype.hasOwnProperty.call(textBoxFactory,"default")?textBoxFactory.default:textBoxFactory;var _widgetFactories={"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#CheckBox":checkBoxFactory,"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#ComboBox":comboBoxFactory,
"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#StateWidget":comboBoxFactory,"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#HiddenBox":hiddenBoxFactory,"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextBox":textBoxFactory};return function(factory){return factory=factory&&_.contains(Object.keys(_widgetFactories),factory)?_widgetFactories[factory]:_widgetFactories["http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextBox"]}}),define("css!ui/generis/form/css/form",[],function(){}),define("ui/generis/form/form",["lodash","i18n","ui/component","ui/generis/widget/loader","ui/generis/widget/checkBox/checkBox","ui/generis/widget/comboBox/comboBox",
"ui/generis/widget/hiddenBox/hiddenBox","ui/generis/widget/textBox/textBox","handlebars","lib/dompurify/purify","css!ui/generis/form/css/form.css"],function(_,__,componentFactory,widgetLoader,checkBox,comboBox,hiddenBox,textBox,Handlebars,DOMPurify,form_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,widgetLoader=widgetLoader&&Object.prototype.hasOwnProperty.call(widgetLoader,"default")?widgetLoader.default:widgetLoader,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(
function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="ui-generis-form">\n <h2>',stack1=(helper=helpers.title)||typeof(helper=depth0&&depth0.title)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'</h2>\n <form action="',stack1=(helper=helpers.formAction)||typeof(helper=depth0&&depth0.formAction)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" method="',stack1=(
helper=helpers.formMethod)||typeof(helper=depth0&&depth0.formMethod)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <fieldset></fieldset>\n <div class="toolbar">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.reset,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <button type="reset" class="btn-neutral small">\n <span class="icon-reset"/> ',stack1=(stack1=helpers.resetText)||typeof(stack1=depth0&&depth0.resetText)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,
buffer+=escapeExpression(stack1)+"\n </button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <button type="submit" class="btn-info small">\n <span class="icon-save"/> ',stack1=(helper=helpers.submitText)||typeof(helper=depth0&&depth0.submitText)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n </button>\n </div>\n </form>\n</div>\n"});function tpl(data,html,asString){html=Template(data,html);return html}return function(options,config){var form;return options=options||{},(config=config||{}).form=config.form||{},
config.submit=config.submit||{},(form=componentFactory({addWidget:function(widgetOptions){var widget=widgetLoader(widgetOptions.widget)({},widgetOptions);return this.widgets.push(widget),this.is("rendered")?widget.render(this.getElement().find("form > fieldset")):this.on("render."+widget.config.uri,function(){widget.render(this.getElement().find("form > fieldset")),this.off("render."+this.config.uri)}),this},getWidget:function(uri){return _.find(this.widgets,function(widget){return widget.config.uri===uri})},removeWidget:function(uri){return _.remove(this.widgets,function(widget){if(widget.config.uri===uri)return widget.destroy(),!0}),this},
validate:function(){return this.errors=_(this.widgets).map(function(widget){return widget.validate(),{uri:widget.config.uri,errors:widget.validator.errors}}).reject(function(data){return!data.errors||0===data.errors.length}).value(),this},serializeArray:function(){return _.map(this.widgets,function(widget){return widget.serialize()})},getValues:function(){return _.reduce(this.serializeArray(),function(acc,field){return(_.isString(field.name)&&!_.isEmpty(field.name)&&_.isString(field.value)&&!_.isEmpty(field.value)||_.isArray(field.value)&&0<field.value.length)&&(acc[field.name]=field.value),acc},{})},toggleLoading:function(isLoading){
return void 0===isLoading&&(isLoading=!this.is("loading")),isLoading?(this.trigger("loading"),this.disable()):(this.trigger("loaded"),this.enable()),this.setState("loading",isLoading),this}},{formAction:"#",formMethod:"get",submitText:__("Save"),title:__("Generis Form"),reset:!0,resetText:__("Reset")}).setTemplate(tpl).init(config).on("render",function(){var $form=this.getElement().find("form"),self=this;$form.on("submit",function(e){return e.preventDefault(),self.trigger("submit",self.serializeArray()),!1}),$form.on("reset",function(){self.trigger("reset",self.serializeArray())})})).data=options,form.errors=[],form.widgets=[],_.each(options.properties||[],
function(property){property.range&&"string"==typeof property.range&&(property.range=options.values[property.range]),form.addWidget(property)}),form}}),define("ui/resource/filters",["lodash","i18n","ui/component","ui/generis/form/form","handlebars","lib/dompurify/purify"],function(_,__,component,generisFormFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key
){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(
fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,generisFormFactory=generisFormFactory&&Object.prototype.hasOwnProperty.call(generisFormFactory,"default")?generisFormFactory.default:generisFormFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="filters">\n</div>\n'});function filtersTpl(data,html,asString){html=Template(data,html);return html}var supportedWidgets=["http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextBox","http://www.tao.lu/datatypes/WidgetDefinitions.rdf#CheckBox","http://www.tao.lu/datatypes/WidgetDefinitions.rdf#ComboBox","http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextArea","http://www.tao.lu/datatypes/WidgetDefinitions.rdf#StateWidget"],defaultConfig={title:__(
"Search by properties"),applyLabel:__("Apply")};return function($container,config){var filters=component({getValues:function(){return this.is("rendered")&&this.form?this.form.getValues():null},setValue:function(uri,value){var widget;return this.is("rendered")&&this.form&&(widget=this.form.getWidget(uri))&&widget.set(value),this},reset:function(){return this.update(this.config.data)},update:function(data){var properties,self=this;return this.is("rendered")&&(this.getElement().empty(),properties=_.filter(data.properties,function(property){return _.contains(supportedWidgets,property.widget)}),this.form=generisFormFactory({properties:properties,
values:data.ranges},{submitText:this.config.applyLabel,title:this.config.title}).on("submit reset",function(){self.trigger("change",this.getValues())}).render(this.getElement())),this},getTextualQuery:function(){var result,self=this;return this.is("rendered")&&(result=_.reduce(this.form.getValues(),function(acc,displayValue,uri){var widget=self.form.getWidget(uri);return widget&&(_.isEmpty(acc)||(acc+=__(" AND ")),acc+=widget.config.label+__(" is "),displayValue=widget.config.range?_.map(_.isArray(displayValue)?displayValue:[displayValue],function(selectedValue){selectedValue=_.find(widget.config.range,{uri:selectedValue})
;return selectedValue&&selectedValue.label}):displayValue,_.isString(displayValue)&&(acc+=displayValue),_.isArray(displayValue)&&(acc+=displayValue.join(", "))),acc},"")),result}},defaultConfig);return filters.setTemplate(filtersTpl).on("init",function(){this.render($container)}).on("render",function(){this.config.data&&this.update(this.config.data)}),_.defer(function(){filters.init(config)}),filters}}),define("css!ui/resource/css/selector",[],function(){}),define("ui/resource/selector",["jquery","lodash","i18n","ui/component","ui/hider","ui/class/selector","ui/resource/tree","ui/resource/list","ui/resource/filters","handlebars","lib/dompurify/purify",
"css!ui/resource/css/selector.css"],function($$1,_,__,component,hider,classesSelectorFactory,resourceSelectorFactory,listFactory,filtersFactory,Handlebars,DOMPurify,selector_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,
fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(
startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default")?hider.default:hider,classesSelectorFactory=classesSelectorFactory&&Object.prototype.hasOwnProperty.call(classesSelectorFactory,"default")?classesSelectorFactory.default:classesSelectorFactory,resourceSelectorFactory=resourceSelectorFactory&&Object.prototype.hasOwnProperty.call(resourceSelectorFactory,"default")?resourceSelectorFactory.default:resourceSelectorFactory,
listFactory=listFactory&&Object.prototype.hasOwnProperty.call(listFactory,"default")?listFactory.default:listFactory,filtersFactory=filtersFactory&&Object.prototype.hasOwnProperty.call(filtersFactory,"default")?filtersFactory.default:filtersFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],
helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program4(depth0,data){var stack1,helper,buffer="";return buffer+='\n <a href="#" data-view-format="'+escapeExpression(typeof(stack1=null==data||!1===data?data:data.key)===functionType?stack1.apply(depth0):stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.active,{hash:{},inverse:self.noop,fn:self.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=" ",!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},
inverse:self.noop,fn:self.program(7,program7,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='><span class="',stack1=(helper=helpers.icon)||typeof(helper=depth0&&depth0.icon)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"></span></a>\n '}function program5(depth0,data){return'class="active"'}function program7(depth0,data){var stack1,buffer="";return buffer+='title="',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'}function program10(depth0,helper){var options,buffer=""
;return buffer+='\n <a href="#" class="filters-opener" title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Advanced search, add filters",options):helperMissing.call(depth0,"__","Advanced search, add filters",options)))+'"><span class="icon-add"></span></a>\n '}function program12(depth0,data){return"hidden"}function program14(depth0,data){return'\n <div class="filters-container folded"></div>\n '}return buffer+='<div class="resource-selector ',!(stack1=helpers.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,
data){return"multiple"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.showContext,{hash:{},inverse:self.noop,fn:self.program(3,function(depth0,stack1){var buffer="";return buffer+='\n <nav class="context">\n <div class="class-context"></div>\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.formats,{hash:{},inverse:self.noop,fn:self.program(4,program4,stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </nav>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.showSelection,{hash:{},
inverse:self.noop,fn:self.program(9,function(depth0,data){var stack1,helper,options,buffer="";return buffer+='\n <nav class="selection">\n <div class="search">\n <input type="text" placeholder="',stack1=(helper=helpers.searchPlaceholder)||typeof(helper=depth0&&depth0.searchPlaceholder)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" />\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.filters,{hash:{},inverse:self.noop,fn:self.program(10,program10,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+='\n </div>\n <div class="selection-control">\n <a href="#" class="selection-toggle ',!(stack1=helpers.unless.call(depth0,depth0&&depth0.switchMode,{hash:{},inverse:self.noop,fn:self.program(12,program12,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Toggle multiple/single selection",options):helperMissing.call(depth0,"__","Toggle multiple/single selection",options)))+'">\n <span class="icon-multi-select"></span>\n </a>\n <label class="selection-indicator ',!(
stack1=helpers.unless.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:self.noop,fn:self.program(12,program12,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <input type="checkbox">\n <span class="icon-checkbox"></span>\n </label>\n </div>\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.filters,{hash:{},inverse:self.noop,fn:self.program(14,program14,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </nav>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n\n <main>\n <span class="hidden no-results">',stack1=(helper=helpers.noResultsText
)||typeof(helper=depth0&&depth0.noResultsText)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span>\n </main>\n\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:self.noop,fn:self.program(16,function(depth0,data){var stack1,options,buffer="";return buffer+='\n <footer>\n <div class="get-selection">\n <span>'+escapeExpression((options={hash:{},data:data},(stack1=helpers.__||depth0&&depth0.__)?stack1.call(depth0,"Selected",options):helperMissing.call(depth0,"__","Selected",options)))+" ",stack1=(stack1=helpers.type)||typeof(stack1=depth0&&depth0.type
)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+' : </span><span class="selected-num">0</span>\n </div>\n </footer>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>\n"});function selectorTpl(data,html,asString){html=Template(data,html);return html}function filterClasses(resources){return _(resources).filter({type:nodeTypes.class}).map(function(resource){var classNode=_.pick(resource,["uri","label","state"]);return resource.children&&(classNode.children=filterClasses(resource.children)),classNode}).value()}var labelUri="http://www.w3.org/2000/01/rdf-schema#label",nodeTypes={
instance:"instance",class:"class"},selectionModes={single:"single",multiple:"multiple",both:"both"},selectAllPolicies={all:"all",loaded:"loaded",visible:"visible"},defaultConfig={type:__("resources"),noResultsText:_("No resources found"),searchPlaceholder:__("Search"),icon:"item",selectionMode:selectionModes.single,selectClass:!1,selectAllPolicy:selectAllPolicies.loaded,filters:!1,showContext:!0,showSelection:!0,formats:{list:{icon:"icon-ul",title:__("View resources as a list"),componentFactory:listFactory},tree:{icon:"icon-tree",title:__("View resources as a tree"),componentFactory:resourceSelectorFactory,active:!0}},limit:30},
resourceSelectorFactory=function($container,config){var $classContainer,$resultArea,$noResults,$searchField,$viewFormats,$selectNum,$selectCtrl,$selectCtrlLabel,$filterToggle,$filterContainer,$selectionToggle,resourceSelector=component({empty:function(){return this.is("rendered")&&this.selectionComponent&&(this.selectionComponent.destroy(),this.selectionComponent=null),this.trigger("empty")},reset:function(){return this.is("rendered")&&(this.empty(),this.searchQuery={},this.config.filters&&(this.filtersComponent&&this.filtersComponent.reset(),$searchField.val("").attr("title",null).attr("placeholder",this.config.searchPlaceholder))),this.trigger("reset")},
getSelection:function(){return this.selectionComponent?this.selectionComponent.getSelection():null},clearSelection:function(){return this.selectionComponent&&this.selectionComponent.clearSelection(),this},setSearchQuery:function(query){return this.searchQuery={},this.searchQuery[labelUri]="",_.isString(query)&&!_.isEmpty(query)&&(this.searchQuery[labelUri]=query),_.isPlainObject(query)&&(this.searchQuery=query),this},getSearchQuery:function(){return 0===_.size(this.searchQuery)&&(this.searchQuery[labelUri]=""),this.searchQuery},query:function(params){var defaultParams;return this.is("rendered")&&!this.is("loading")&&(this.setState("loading",!0),
params=params||{},defaultParams=this.getSearchQuery(),defaultParams={classUri:this.classUri,format:this.format,limit:this.config.limit,search:_.isObject(defaultParams)?JSON.stringify(defaultParams):""},this.trigger("query",_.defaults(params,defaultParams))),this},changeFormat:function(format){var $viewFormat;return this.is("rendered")&&this.format!==format&&(1!==($viewFormat=$viewFormats.filter('[data-view-format="'.concat(format,'"]'))).length||$viewFormat.hasClass("active")||($viewFormats.removeClass("active"),$viewFormat.addClass("active"),this.empty(),this.format=format,this.trigger("formatchange",format))),this},changeSelectionMode:function(newMode){
return this.is("rendered")&&this.config.selectionMode!==newMode&&selectionModes[newMode]&&(this.config.multiple&&this.clearSelection(),this.config.multiple=newMode===selectionModes.multiple,this.selectionComponent.setState("multiple",this.config.multiple),this.setState("multiple",this.config.multiple),this.config.multiple?hider.show($selectCtrlLabel):hider.hide($selectCtrlLabel),this.trigger("selectionmodechange",newMode)),this},update:function(resources,params){var componentFactory,self=this;if(this.is("rendered")&&this.format){if(componentFactory=this.config.formats[this.format]&&this.config.formats[this.format].componentFactory,!_.isFunction(
componentFactory))return this.trigger("error",new TypeError("Unable to load the component for the format ".concat(this.format)));hider.hide($noResults),params.updateClasses&&this.classSelector&&this.classSelector.updateNodes(filterClasses(resources)),this.selectionComponent?this.selectionComponent.update(resources,params):this.selectionComponent=componentFactory($resultArea,_.defaults({classUri:this.classUri,nodes:resources},this.config)).on("query",function(queryParams){self.query(queryParams)}).on("update",function(){0===_.size(this.getNodes())&&0===$$1("li",$resultArea).length&&hider.show($noResults),self.trigger("update")}).on("change",function(selected,
onlyVisible){self.trigger("change",selected,onlyVisible)}).on("error",function(err){self.trigger("error",err)}),this.setState("loading",!1)}return this},updateFilters:function(filterConfig){return this.is("rendered")&&!1!==filterConfig&&this.filtersComponent&&this.filtersComponent.update(filterConfig),this},removeNode:function(node){var uri=_.isString(node)?node:node.uri;return this.hasNode(uri)&&(this.getNodeType(node)===nodeTypes.class&&this.classSelector&&this.classSelector.removeNode(node),this.selectionComponent.removeNode(uri)),this},addNode:function(node,parentUri){return this.is("rendered")&&node&&node.uri&&this.selectionComponent&&(
this.selectionComponent.hasNode(node.uri)||(node.type||(node.type=nodeTypes.instance),this.selectionComponent.update([node],{classUri:parentUri||this.classUri,format:this.format,limit:this.config.limit,updateCount:node.type===nodeTypes.instance&&1}),this.getNodeType(node)===nodeTypes.class&&this.classSelector&&this.classSelector.addNode(node,parentUri))),this},addClassNode:function(node,parentUri){return this.is("rendered")&&node&&node.uri&&this.classSelector&&!this.classSelector.hasNode(node.uri)&&this.classSelector.hasNode(parentUri)&&this.classSelector.addNode(node,parentUri),this},hasNode:function(uri){return!!(uri&&this.is("rendered"
)&&this.selectionComponent)&&(uri=_.isString(uri)?uri:uri.uri,this.selectionComponent.hasNode(uri))},getNodeType:function(foundNode){return!!(foundNode&&this.is("rendered")&&this.selectionComponent)&&(foundNode=_.isString(foundNode)?foundNode:foundNode.uri,(foundNode=this.selectionComponent.getNode(foundNode))&&foundNode.type)},select:function(uri){uri=_.isString(uri)?uri:uri.uri;return this.hasNode(uri)&&(this.is("multiple")||this.selectionComponent.clearSelection(),this.selectionComponent.select(uri),$$1('[data-uri="'.concat(uri,'"]'),$resultArea)[0].scrollIntoView({behavior:"smooth"})),this},selectDefaultNode:function(node,$resource){return this.is(
"rendered")&&(this.hasNode(node)?this.select(node):!1!==$resource&&(($resource=this.getElement().find(".".concat(nodeTypes.instance))).length||($resource=this.getElement().find(".".concat(nodeTypes.class))),$resource.length&&this.select($resource.first().data("uri")))),this},refresh:function(node){var queryParams={updateClasses:!0};return this.is("rendered")&&(this.on("update.refresh",function(){this.off("update.refresh"),this.selectDefaultNode(node)}),node&&node.uri&&(queryParams.selectedUri=node.uri),this.reset().query(queryParams)),this}},defaultConfig).setTemplate(selectorTpl).on("init",function(){this.searchQuery={},this.classUri=this.config.classUri,
this.format=this.config.format||_.findKey(this.config.formats,{active:!0}),this.config.switchMode=this.config.selectionMode===selectionModes.both,this.config.multiple=this.config.selectionMode===selectionModes.multiple,this.setState("multiple",this.config.multiple),this.render($container)}).on("render",function(){var self=this;return new Promise(function(resolve){var $component=self.getElement();$classContainer=$$1(".class-context",$component),$resultArea=$$1("main",$component),$noResults=$$1(".no-results",$resultArea),$searchField=$$1(".search input",$component),$filterToggle=$$1(".filters-opener",$component),$filterContainer=$$1(".filters-container",
$component),$viewFormats=$$1(".context > a",$component),$selectNum=$$1(".selected-num",$component),$selectCtrl=$$1(".selection-control input",$component),$selectCtrlLabel=$$1(".selection-control label",$component),$selectionToggle=$$1(".selection-toggle",$component),$searchField.on("keyup",_.debounce(function(e){var value=$$1(this).val().trim();(2<value.length||0===value.length||13===e.which)&&(self.config.filters&&$$1(this).attr("title",null).attr("placeholder",self.config.searchPlaceholder),self.empty().changeFormat("list").setSearchQuery(value).query())},300)),$viewFormats.on("click",function(e){var format=$$1(this).data("view-format");e.preventDefault(),
self.reset().changeFormat(format).query()}),self.config.selectionMode===selectionModes.both&&($selectionToggle.on("click",function(e){e.preventDefault(),self.changeSelectionMode(self.config.multiple?selectionModes.single:selectionModes.multiple)}),$resultArea.on("mousedown",function(e){e.ctrlKey&&!self.config.multiple&&self.changeSelectionMode(selectionModes.multiple)}),$resultArea.on("click",function(){self.changeSelectionMode(selectionModes.single)})),$selectCtrl.on("change",function(){!1===$$1(this).prop("checked")?self.selectionComponent.clearSelection():self.config.selectAllPolicy===selectAllPolicies.visible?self.selectionComponent.selectVisible(
):self.config.selectAllPolicy===selectAllPolicies.loaded&&self.selectionComponent.selectAll()}),!1!==self.config.filters&&(self.filtersComponent=filtersFactory($filterContainer,{classUri:self.classUri,data:self.config.filters}).on("change",function(values){var textualQuery=this.getTextualQuery();$searchField.val("").attr("title",textualQuery).attr("placeholder",textualQuery),self.empty().changeFormat("list").setSearchQuery(values).query(),$filterContainer.addClass("folded")}),$filterToggle.on("click",function(searchVal){searchVal.preventDefault(),$filterContainer.hasClass("folded")?(searchVal=$searchField.val().trim(),_.isEmpty(searchVal
)||self.filtersComponent.setValue(labelUri,searchVal),$filterContainer.removeClass("folded")):$filterContainer.addClass("folded")})),self.classSelector=classesSelectorFactory($classContainer,self.config),self.classSelector.on("render",resolve).on("change",function(uri){uri&&uri!==self.classUri&&(self.classUri=uri,$filterContainer.length&&$filterContainer.addClass("folded"),self.trigger("classchange",uri),self.reset().query())}),self.query()})}).on("change",function(selectedCount,nodesCount){selectedCount=_.size(selectedCount),nodesCount=nodesCount?selectedCount:_.size(this.selectionComponent.getNodes());$selectNum.text(selectedCount),0===selectedCount?(
$selectCtrlLabel.attr("title",__("Select loaded %s",this.config.type)),$selectCtrl.prop("checked",!1).prop("indeterminate",!1)):nodesCount<=selectedCount?($selectCtrlLabel.attr("title",__("Clear selection")),$selectCtrl.prop("checked",!0).prop("indeterminate",!1)):($selectCtrlLabel.attr("title",__("Select loaded %s",this.config.type)),$selectCtrl.prop("checked",!1).prop("indeterminate",!0))});return _.defer(function(){resourceSelector.init(config)}),resourceSelector};return resourceSelectorFactory.selectionModes=selectionModes,resourceSelectorFactory.selectAllPolicies=selectAllPolicies,resourceSelectorFactory.nodeTypes=nodeTypes,resourceSelectorFactory}),
define("css!ui/loadingButton/css/button",[],function(){}),define("ui/loadingButton/loadingButton",["lodash","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/loadingButton/css/button.css"],function(_,component,Handlebars,__,DOMPurify,button_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",
escapeExpression=this.escapeExpression;return buffer+='<button class="loading-button btn-',buffer+=escapeExpression((helper=helpers.type)||"function"==typeof(helper=depth0&&depth0.type)?helper.call(depth0,{hash:{},data:data}):helper)+' small" type="button" title="',buffer+=escapeExpression((helper=helpers.title)||"function"==typeof(helper=depth0&&depth0.title)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <span class="spinner-icon icon-loop spinning"></span>\n <span class="start-icon icon-',buffer+=escapeExpression((helper=helpers.icon)||"function"==typeof(helper=depth0&&depth0.icon)?helper.call(depth0,{hash:{},data:data}):helper
)+'"></span>\n <span class="action-label">',buffer+=escapeExpression((helper=helpers.label)||"function"==typeof(helper=depth0&&depth0.label)?helper.call(depth0,{hash:{},data:data}):helper)+'</span>\n <span class="terminated-label">',buffer+=escapeExpression((helper=helpers.terminatedLabel)||"function"==typeof(helper=depth0&&depth0.terminatedLabel)?helper.call(depth0,{hash:{},data:data}):helper)+"</span>\n</button>"});function buttonTpl(data,html,asString){html=Template(data,html);return html}var _defaults={type:"info",icon:"property-advanced",title:"",label:"OK",terminatedLabel:"FINISHED"},buttonApi={start:function(){this.setState("started",!0),
this.trigger("started")},terminate:function(){return this.is("started")&&(this.setState("started",!1),this.setState("terminated",!0),this.disable(),this.trigger("terminated")),this},reset:function(){return this.is("terminated")&&(this.setState("terminated",!1),this.enable(),this.trigger("reset")),this}};return function(initConfig){return initConfig=_.defaults(initConfig||{},_defaults),component(buttonApi).setTemplate(buttonTpl).on("enable",function(){this.getElement().removeProp("disabled")}).on("disable",function(){this.getElement().prop("disabled",!0)}).on("render",function(){var self=this;this.getElement().on("click",function(e){e.preventDefault(),
self.is("disabled")||self.is("started")||self.is("terminated")||self.start()})}).init(initConfig)}}),define("ui/report",["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify"],function($$1,_,component,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{}
;var stack1,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="component-report',!(stack1=helpers.if.call(depth0,depth0&&depth0.noBorder,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return" no-border"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.detailsButtonVisible,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var helper,options,buffer=""
;return buffer+='\n <label class="fold pseudo-label-box">\n <span class="check-txt hide">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Hide detailed report",options):helperMissing.call(depth0,"__","Hide detailed report",options)))+'</span>\n <span class="check-txt show">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Show detailed report",options):helperMissing.call(depth0,"__","Show detailed report",options)))+'</span>\n <input type="checkbox"/>\n <span class="icon-checkbox"></span>\n </label>\n '},data
),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="content">',stack1=(helper=helpers.content)||"function"==typeof(helper=depth0&&depth0.content)?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</div>\n</div>"});function layoutTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var stack1,helper,buffer="",functionType="function",
escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="feedback-',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+" ",!(stack1=helpers.if.call(depth0,depth0&&depth0.hasChildren,{hash:{},inverse:this.program(3,function(depth0,data){return"leaf"},data),fn:this.program(1,function(depth0,data){return"hierarchical"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <span class="icon-',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(depth0,{
hash:{},data:data}):helper,buffer+=escapeExpression(stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.hasChildren,{hash:{},inverse:this.noop,fn:this.program(5,function(depth0,data){return" hierarchical-icon"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='"></span>\n <div class="message">',options={hash:{},data:data},!(stack1=(helper=helpers.dompurify||depth0&&depth0.dompurify)?helper.call(depth0,depth0&&depth0.message,options):helperMissing.call(depth0,"dompurify",depth0&&depth0.message,options))&&0!==stack1||(buffer+=stack1),buffer+="</div>\n ",!(stack1=helpers.each.call(depth0,depth0&&depth0.children,{hash:{},inverse:this.noop,
fn:this.program(7,function(stack1,data){var buffer="";return buffer+="\n ",!(stack1=typeof stack1===functionType?stack1.apply(stack1):stack1)&&0!==stack1||(buffer+=stack1),buffer+="\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="actions">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.actions,{hash:{},inverse:this.noop,fn:this.program(9,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <button data-trigger="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'" class="action btn-info" title="',stack1=(helper=helpers.title)||typeof(helper=depth0&&depth0.title)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"><span class="icon-',stack1=(helper=helpers.icon)||typeof(helper=depth0&&depth0.icon)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"></span>',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n</div>"})
;function _renderFeebacks(data,actions){var children=[];if(!data.type||-1===authorizedTypes.indexOf(data.type))throw new TypeError("Unkown report type: "+data.type);return _.isArray(data.children)&&data.children.length&&_.each(data.children,function(child){children.push(_renderFeebacks(child))}),data.hasChildren=0<children.length,data.children=children,data.actions=actions,function(data,html){return html=Template$1(data,html)}(data)}var _defaults={showDetailsButton:!0,actions:[]},authorizedTypes=["success","info","warning","error"],report={isDetailed:function(){return this.is("detailed")},showDetails:function(){return this.is("rendered")&&(this.setState(
"detailed",!0),this.getElement().find(".fold input").prop("checked",!0),this.trigger("showDetails")),this},hideDetails:function(){return this.is("rendered")&&(this.setState("detailed"),this.getElement().find(".fold input").prop("checked",!1),this.trigger("hideDetails")),this}};return function(initConfig,data){initConfig=_.defaults(initConfig||{},_defaults);return data&&_.isArray(data.children)&&data.children.length&&(initConfig.detailsButtonVisible=initConfig.showDetailsButton),component(report).setTemplate(layoutTpl).on("render",function(){var self=this,$content=this.getElement().find(".content"),$checkbox=this.getElement().find(".fold input")
;$content.append(_renderFeebacks(_.cloneDeep(data),this.config.actions)),$content.on("click",".action",function(){var actionId=$$1(this).data("trigger");self.trigger("action-"+actionId),self.trigger("action",actionId)}),$checkbox.on("change",_.throttle(function(){self.isDetailed()?self.hideDetails():self.showDetails()},100))}).init(initConfig)}}),define("css!ui/taskQueueButton/css/taskable",[],function(){}),define("ui/taskQueueButton/taskable",["jquery","lodash","i18n","ui/report","ui/feedback","layout/loading-bar","handlebars","lib/dompurify/purify","css!ui/taskQueueButton/css/taskable.css"],function($$1,_,__,reportFactory,feedback,loadingBar,Handlebars,
DOMPurify,taskable_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,reportFactory=reportFactory&&Object.prototype.hasOwnProperty.call(reportFactory,
"default")?reportFactory.default:reportFactory,feedback=feedback&&Object.prototype.hasOwnProperty.call(feedback,"default")?feedback.default:feedback,loadingBar=loadingBar&&Object.prototype.hasOwnProperty.call(loadingBar,"default")?loadingBar.default:loadingBar,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4,">= 1.0.0"],
helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<div class="task-report-container">\n <div class="section-header flex-container-full">\n <h2>',buffer+=(0,this.escapeExpression)((helper=helper.title)||"function"==typeof(helper=depth0&&depth0.title)?helper.call(depth0,{hash:{},data:data}):helper)+'</h2>\n </div>\n <div class="main-container flex-container-full report"></div>\n</div>'});var defaultConfig={},taskableComponent={setTaskConfig:function(config){return _.assign(this.config,config),this},createTask:function(){var taskQueue,requestUrl,self=this,requestData={};return _.isFunction(
this.config.taskCreationData)?requestData=this.config.taskCreationData.call(this):_.isPlainObject(this.config.taskCreationData)&&(requestData=this.config.taskCreationData),this.config.taskCreationUrl?(requestUrl=this.config.taskCreationUrl,this.config.taskQueue?(taskQueue=this.config.taskQueue,loadingBar.start(),taskQueue.pollAllStop(),void taskQueue.create(requestUrl,requestData).then(function(result){var infoBox,task=result.task;result.finished?(task.hasFile?taskQueue.download(task.id).then(function(){return taskQueue.archive(task.id)}):taskQueue.archive(task.id)).then(function(){self.trigger("finished",result),taskQueue.pollAll()}).catch(function(err){
self.trigger("error",err),taskQueue.pollAll()}):(infoBox=__("<strong> %s </strong> has been moved to the background.",task.taskLabel),infoBox=feedback(null,{encodeHtml:!1,timeout:{info:8e3}}).info(infoBox),taskQueue.trigger("taskcreated",{task:task,sourceDom:infoBox.getElement()}),self.trigger("enqueued",result)),loadingBar.stop()}).catch(function(err){taskQueue.pollAll(),loadingBar.stop(),self.trigger("error",err)})):this.trigger("error","the taskQueue model is required to create a task")):this.trigger("error","the request url is required to create a task")},displayReport:function(report,title,result){var $reportContainer,self=this;if(
this.config.taskReportContainer instanceof $$1)return $reportContainer=$$1($reportContainer=Template({title:title},$reportContainer)),this.config.taskReportContainer.html($reportContainer),reportFactory({actions:[{id:"continue",icon:"right",title:"continue",label:__("Continue")}]},report).on("action-continue",function(){self.trigger("continue",result)}).render($reportContainer.find(".report"))}};return function(component,config){return _.assign(component,taskableComponent),component.off(".taskable").on("init.taskable",function(){_.defaults(this.config,config||{},defaultConfig)})}}),define("ui/taskQueueButton/standardButton",["lodash",
"ui/loadingButton/loadingButton","ui/taskQueueButton/taskable"],function(_,loadingButton,makeTaskable){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,loadingButton=loadingButton&&Object.prototype.hasOwnProperty.call(loadingButton,"default")?loadingButton.default:loadingButton,makeTaskable=makeTaskable&&Object.prototype.hasOwnProperty.call(makeTaskable,"default")?makeTaskable.default:makeTaskable;var defaultConfig={};return function(config){return config=_.defaults(config||{},defaultConfig),makeTaskable(loadingButton(config)).on("started",function(){this.createTask()}).on("finished",function(){this.terminate().reset()}).on(
"enqueued",function(){this.terminate().reset()})}}),define("css!ui/destination/css/selector",[],function(){}),define("ui/destination/selector",["jquery","lodash","i18n","ui/component","ui/dialog/confirm","ui/resource/selector","ui/loadingButton/loadingButton","ui/taskQueueButton/standardButton","handlebars","lib/dompurify/purify","css!ui/destination/css/selector.css"],function($$1,_,__,component,confirmDialog,resourceSelectorFactory,loadingButtonFactory,taskCreationButtonFactory,Handlebars,DOMPurify,selector_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj
}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,confirmDialog=confirmDialog&&Object.prototype.hasOwnProperty.call(confirmDialog,"default"
)?confirmDialog.default:confirmDialog,resourceSelectorFactory=resourceSelectorFactory&&Object.prototype.hasOwnProperty.call(resourceSelectorFactory,"default")?resourceSelectorFactory.default:resourceSelectorFactory,loadingButtonFactory=loadingButtonFactory&&Object.prototype.hasOwnProperty.call(loadingButtonFactory,"default")?loadingButtonFactory.default:loadingButtonFactory,taskCreationButtonFactory=taskCreationButtonFactory&&Object.prototype.hasOwnProperty.call(taskCreationButtonFactory,"default")?taskCreationButtonFactory.default:taskCreationButtonFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default"
)?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="destination-selector">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.title,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer=""
;return buffer+="\n <h2>",stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</h2>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n <div>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.description,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+="\n <p>",stack1=(stack1=helpers.description)||typeof(stack1=depth0&&depth0.description)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</p>\n "},data),
data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="selector-container"></div>\n <div class="actions">\n </div>\n </div>\n</div>\n'});function selectorTpl(data,html,asString){html=Template(data,html);return html}var defaultConfig={title:__("Copy to"),description:__("Select a destination"),actionName:__("Copy"),icon:"copy"};return function($container,config){var destinationSelector=component({update:function(results,params){this.resourceSelector&&this.resourceSelector.update(results,params)},updateTaskCreationUrl:function(url){this.config&&this.taskCreationButton&&this.taskCreationButton.config&&(
this.taskCreationButton.config.taskCreationUrl=url,this.config.taskCreationUrl=url)}},defaultConfig).setTemplate(selectorTpl).on("init",function(){this.render($container)}).on("render",function(){var self=this,$component=this.getElement(),getSelectedUri=function(){var uris,select=self.resourceSelector.getSelection();if(_.isPlainObject(select)&&(uris=_.pluck(select,"uri")).length)return uris[0]};this.config.taskQueue?this.taskCreationButton=taskCreationButtonFactory({type:"info",icon:this.config.icon,label:this.config.actionName,terminatedLabel:"Interrupted",taskQueue:this.config.taskQueue,taskCreationData:this.config.taskCreationData||{},
taskCreationUrl:this.config.taskCreationUrl,taskReportContainer:$container}).on("finished",function(result){self.trigger("finished",result,self.taskCreationButton),this.reset()}).on("continue",function(){self.trigger("continue")}):this.taskCreationButton=loadingButtonFactory({type:"info",icon:this.config.icon,label:this.config.actionName,terminatedLabel:"Interrupted"}),this.taskCreationButton.on("started",function(){function triggerAction(){self.trigger("select",getSelectedUri())}self.config.confirm?confirmDialog(self.config.confirm,triggerAction,function(){self.taskCreationButton.terminate().reset()}):triggerAction()}).on("error",function(err){self.trigger(
"error",err)}).render($component.find(".actions")).disable(),this.resourceSelector=resourceSelectorFactory($$1(".selector-container",$component),{selectionMode:"single",selectClass:!0,classUri:this.config.classUri,showContext:!1,showSelection:!1,preventSelection:this.config.preventSelection}),this.resourceSelector.spread(this,["query","error","update"]),this.resourceSelector.on("change",function(selected){selected&&0<_.size(selected)?(self.taskCreationButton.enable(),_.isPlainObject(self.taskCreationButton.config.taskCreationData)&&(self.taskCreationButton.config.taskCreationData.classUri=getSelectedUri())):self.taskCreationButton.disable()})})
;return _.defer(function(){destinationSelector.init(config)}),destinationSelector}}),define("ui/dialog/alert",["lodash","i18n","ui/dialog"],function(_,__,dialog){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,dialog=dialog&&Object.prototype.hasOwnProperty.call(dialog,"default")?dialog.default:dialog,function(message,action,onCreateDialog,dlg){var _options={buttons:{labels:{ok:__("Ok")}}},dlg={message:message,autoRender:!0,autoDestroy:!0,buttons:{ok:{id:"ok",type:"info",label:(dlg=_.defaults(dlg||{},_options)).buttons.labels.ok||__("Ok"),close:!0}}}
,dlg=dialog(dlg).on("create.dialog",function(){onCreateDialog&&onCreateDialog()});return _.isFunction(action)&&dlg.on("closed.modal",action),dlg}}),define("ui/dialog/confirmDelete",["lodash","i18n","ui/dialog","handlebars","lib/dompurify/purify"],function(_,__,dialog,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper(
"dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(
fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,dialog=dialog&&Object.prototype.hasOwnProperty.call(dialog,"default")?dialog.default:dialog,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",
escapeExpression=this.escapeExpression;return buffer+='<label for="',buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <input type="checkbox" id="',buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'" name="',buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.checked,{hash:{},inverse:this.noop,fn:this.program(1,
function(depth0,data){return"checked"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=' />\n <span class="icon-checkbox"></span>\n ',buffer+=escapeExpression(stack1=(helper=helpers.text)||"function"==typeof(helper=depth0&&depth0.text)?helper.call(depth0,{hash:{},data:data}):helper)+"\n</label>\n"});var defaults={buttons:{labels:{delete:__("Delete"),cancel:__("Cancel")}},confirmationMessage:__("I understand that this action is permanent.")};return function(data,accept,refuse,dlg){var accepted=!1;dlg=_.defaults(dlg||{},defaults);var $html={message:data,content:(data={id:"confirm",checked:!1,text:dlg.confirmationMessage},$html=Template(data,
$html)),autoRender:!0,autoDestroy:!0,onDeleteBtn:function(){accepted=!0,_.isFunction(accept)&&accept.call(this)},buttons:{delete:{id:"delete",type:"info",label:dlg.buttons.labels.delete||defaults.buttons.labels.delete,close:!0},cancel:{id:"cancel",type:"regular",label:dlg.buttons.labels.cancel||defaults.buttons.labels.cancel,close:!0}}},dlg=dialog($html),$deleteButton=($html=dlg.getDom()).find('[data-control="delete"]');return $deleteButton.prop("disabled",!0),$html.find("#confirm").on("change",function(){$deleteButton.prop("disabled",!this.checked)}),_.isFunction(refuse)&&dlg.on("closed.modal",function(){accepted||refuse.call(this)}),dlg}}),define(
"ui/disabler",["jquery","core/pluginifier","core/dataattrhandler"],function($,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler;var ns="disabler",dataNs="ui."+ns,defaults={bindEvent:"click",disabledClass:"disabled"},Disabler={init:function(options){return options=$.extend(!0,{},defaults,options),this.each(function(){var $elt=$(this);$elt.data(dataNs
)||($elt.data(dataNs,options),!1!==options.bindEvent&&$elt.on(options.bindEvent,function(e){Disabler._toogle($elt),e.preventDefault()}),$elt.trigger("create."+ns))})},enable:function(){this.each(function(){Disabler._enable($(this))})},_enable:function($elt){var options=$elt.data(dataNs),$target=options.target;$target.removeClass(options.disabledClass).find(":input").prop("disabled",!1),$elt.trigger("enable."+ns,[$target]),$target.find(":input").addBack().trigger("enable")},disable:function(){this.each(function(){Disabler._disable($(this))})},_disable:function($elt){var options=$elt.data(dataNs),$target=options.target;$target.addClass(options.disabledClass
).find(":input").prop("disabled",!0),$elt.trigger("disable."+ns,[$target]),$target.find(":input").addBack().trigger("disable")},toggle:function(){this.each(function(){Disabler._toggle($(this))})},_toggle:function($elt){var options=$elt.data(dataNs);$elt.is(":radio,:checkbox")?$elt.prop("checked")?this._disable($elt):this._enable($elt):options.target.hasClass(options.disabledClass)?this._enable($elt):this._disable($elt)},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);!1!==options.bindEvent&&$elt.off(options.bindEvent),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,Disabler),function($container){
new DataAttrHandler("disable",{container:$container,listenerEvent:"click",namespace:dataNs}).init(function($elt,$target){$elt.disabler({target:$target,bindEvent:!1})}).trigger(function($elt){$elt.disabler("toggle")})}}),define("ui/documentViewer/viewerFactory",["lodash","core/providerRegistry","core/delegator","ui/component"],function(_,providerRegistry,delegator,component){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,providerRegistry=providerRegistry&&Object.prototype.hasOwnProperty.call(providerRegistry,"default")?providerRegistry.default:providerRegistry,delegator=delegator&&Object.prototype.hasOwnProperty.call(delegator
,"default")?delegator.default:delegator,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component;var defaults={width:"auto",height:"auto",fitToWidth:!1,allowSearch:!1,caseSensitiveSearch:!1,highlightAllMatches:!1},mandatory=["load"];function viewerFactory(documentType,config){var viewer=viewerFactory.getProvider(documentType),documentViewer=component({getType:function(){return this.config.type},getUrl:function(){return this.config.url}},defaults),delegate=delegator(documentViewer,viewer,{name:documentType+"Viewer",eventifier:!1,wrapper:function(response){return Promise.resolve(response)}})
;return _.isFunction(viewer.getTemplate)&&documentViewer.setTemplate(viewer.getTemplate()),documentViewer.on("init",function(){var self=this;delegate("init").then(function(){self.trigger("initialized")}).catch(function(err){self.trigger("error",err)})}).on("destroy",function(){var self=this;delegate("unload").then(function(){self.trigger("unloaded")}).catch(function(err){self.trigger("error",err)})}).on("render",function(){var self=this;delegate("load").then(function(){self.trigger("loaded")}).catch(function(err){self.trigger("error",err)})}).on("setsize",function(width,height){var self=this;delegate("setSize",width,height).then(function(){self.trigger(
"resized",width,height)}).catch(function(err){self.trigger("error",err)})}).init(config)}return providerRegistry(viewerFactory,function(provider){return _.each(mandatory,function(name){if(!_.isFunction(provider[name]))throw new TypeError("The viewer provider MUST implement the "+name+"() method!")}),!0})}),define("css!ui/documentViewer/css/documentViewer",[],function(){}),define("ui/documentViewer",["lodash","ui/component","ui/documentViewer/viewerFactory","handlebars","i18n","lib/dompurify/purify","css!ui/documentViewer/css/documentViewer.css"],function(_,component,viewerFactory,Handlebars,__,DOMPurify,documentViewer_css){"use strict";function _typeof(obj){
return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',
_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,
options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,viewerFactory=viewerFactory&&Object.prototype.hasOwnProperty.call(viewerFactory,"default")?viewerFactory.default:viewerFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default"
)?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="document-viewer"></div>'});function documentViewerTpl(data,html,asString){html=Template(data,html);return html}var defaults={width:"auto",height:"auto",fitToWidth:!1,allowSearch:!1,
caseSensitiveSearch:!1,highlightAllMatches:!1};function documentViewerFactory(config){var documentType,documentUrl,viewer;return component({getType:function(){return documentType||null},getUrl:function(){return documentUrl||null},getViewer:function(){return viewer||null},load:function(url,type){var self=this;if(_.isEmpty(url)||!_.isString(url))throw new TypeError("You must provide the URL of the document!");if(_.isEmpty(type)||!_.isString(type))throw new TypeError("You must provide a document type!");return viewer&&viewer.destroy(),documentUrl=url,viewer=viewerFactory(documentType=type,_.merge({type:documentType,url:documentUrl,replace:!0},_.pick(this.config
,_.keys(defaults)))).on("loaded",function(){self.trigger("loaded",documentUrl,documentType)}).on("unloaded",function(){self.trigger("unloaded",documentUrl,documentType)}).on("resized",function(width,height){self.trigger("resized",width,height)}).on("error",function(err){self.trigger("error",err)}),this.trigger("load",documentUrl,documentType),this.is("rendered")&&viewer.render(this.getElement()),this},unload:function(){return viewer&&viewer.destroy(),this.trigger("unload",documentUrl,documentType),documentUrl=documentType=viewer=null,this}},defaults).setTemplate(documentViewerTpl).on("init",function(){documentUrl=documentType=viewer=null}).on("destroy",
function(){this.unload()}).on("render",function(){viewer&&viewer.render(this.getElement())}).on("setsize",function(width,height){viewer&&viewer.setSize(width,height)}).init(config)}return documentViewerFactory.registerProvider=function(type,provider){return viewerFactory.registerProvider(type,provider),this},documentViewerFactory.clearProviders=function(){return viewerFactory.clearProviders(),this},documentViewerFactory}),define("ui/documentViewer/providers/pdfViewer/fallback/viewer",["handlebars","i18n","lodash","lib/dompurify/purify"],function(Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),"<iframe ></iframe>"});return function($container){var data,html,template=html=Template(data,html),$viewer=null;return{load:function(url){return new Promise(function(resolve){($viewer=$container.html(template).find("iframe")).one("load.provider",resolve).attr("src",url)})},unload:function(){$container.empty(),$viewer=null},setSize:function(width,height){$viewer&&$viewer.width(width).height(height)}}}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/areaBroker"
,["lodash","ui/areaBroker"],function(_,areaBroker$1){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,areaBroker$1=areaBroker$1&&Object.prototype.hasOwnProperty.call(areaBroker$1,"default")?areaBroker$1.default:areaBroker$1;return _.partial(areaBroker$1,["bar","actions","info","content"])}),define("ui/documentViewer/providers/pdfViewer/pdfjs/searchEngine",["lodash","handlebars","i18n","lib/dompurify/purify"],function(_,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<span class="highlight ',buffer+=escapeExpression((helper=helpers.cls)||"function"==typeof(helper=depth0&&depth0.cls)?helper.call(depth0,{hash:{},data:data}):helper)+'" data-match="',buffer+=escapeExpression((helper=helpers.index)||"function"==typeof(helper=depth0&&depth0.index)?helper.call(depth0,{hash:{},data:data}):helper)+'">',buffer+=escapeExpression((helper=helpers.text)||"function"==typeof(helper=depth0&&depth0.text
)?helper.call(depth0,{hash:{},data:data}):helper)+"</span>\n"});var charactersToNormalize={"":"'","":"'","":"'","":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},normalizationRegex=new RegExp("["+Object.keys(charactersToNormalize).join("")+"]","g");function normalizeSpecialChars(text){return text.replace(normalizationRegex,function(ch){return charactersToNormalize[ch]})}function findInDocument(query,contentText,config){var normalizedQuery=normalizeSpecialChars(query);return config.caseSensitive||(normalizedQuery=normalizedQuery.toLowerCase()),_.times(contentText.length,function(pageContent){pageContent=normalizeSpecialChars(
contentText[pageContent]);return config.caseSensitive||(pageContent=pageContent.toLowerCase()),function(query,text){var index,queryLen=query.length,end=0,matches=[];if(queryLen)for(;end=(index=text.indexOf(query,end))+queryLen,-1!==index&&matches.push([index,end]),-1!==index;);return matches}(normalizedQuery,pageContent)})}function highlight(text,index,cls){return(html=Template({text:text,index:index,cls:cls},html)).trim();var html}function highlightInText(text,start,end,index,cls){return text.substring(0,start)+highlight(text.substring(start,end),index,cls)+text.substring(end)}function renderMatches(nodes,pageContent,selectedMatch){var positions=function(
matches,pageContent){var refinedMatches=[],textItems=pageContent.content.items,count=textItems.length,cursor=0,strPos=0;return _.forEach(matches,function(match,position){for(var matchStart=match[0],matchEnd=match[1],position={index:position};cursor<count&&matchStart>=strPos+textItems[cursor].str.length;)strPos+=textItems[cursor].str.length,cursor++;for(position.begin={node:cursor,offset:matchStart-strPos};cursor<count&&matchEnd>strPos+textItems[cursor].str.length;)strPos+=textItems[cursor].str.length,cursor++;position.end={node:cursor,offset:matchEnd-strPos},refinedMatches.push(position)}),refinedMatches}(nodes,pageContent),matchIndex=positions.length-1,
nodes=pageContent.nodes,selected=matchIndex===selectedMatch;_.forEachRight(nodes,function(node,nodeIndex){for(var match,startInNode,endInNode,nodeInMatch,cls,nodeText=pageContent.content.items[nodeIndex].str;0<=matchIndex;){if(startInNode=(match=positions[matchIndex]).begin.node===nodeIndex,endInNode=match.end.node===nodeIndex,nodeInMatch=nodeIndex>match.begin.node&&nodeIndex<match.end.node,cls=selected?" selected":"",startInNode&&endInNode)nodeText=highlightInText(nodeText,match.begin.offset,match.end.offset,match.index,cls),matchIndex--;else{if(!startInNode){if(endInNode){nodeText=highlightInText(nodeText,0,match.end.offset,match.index,"end"+cls);break}if(
nodeInMatch){nodeText=highlight(nodeText,match.index,"middle"+cls);break}break}nodeText=highlightInText(nodeText,match.begin.offset,nodeText.length,match.index,"begin"+cls),matchIndex--}selected=matchIndex===selectedMatch}node.innerHTML=nodeText})}return function(config){var textManager=null,currentQuery=null,currentMatch=null,matches=[],pages=[],count=0,textManager=(config=config||{}).textManager;if(!_.isPlainObject(textManager))throw new TypeError("You must provide a textManager to give access to the PDF text content! [config.textManager is missing]");return{getPages:function(){return pages},getMatches:function(){return matches},getMatchCount:function(){
return count},clearMatches:function(){currentMatch=null,matches=[],pages=[],count=0},setTextManager:function(manager){textManager=manager},getTextManager:function(){return textManager},getQuery:function(){return currentQuery},getCurrentMatch:function(){return currentMatch},previousMatch:function(){var pageIndex,loop=!1;return currentMatch&&(currentMatch.index?currentMatch.index--:(loop=!(pageIndex=_.indexOf(pages,currentMatch.page)),currentMatch.page=pages[(pageIndex+pages.length-1)%pages.length],currentMatch.index=matches[currentMatch.page-1].length-1),currentMatch.overall=(currentMatch.overall+count-2)%count+1),loop},nextMatch:function(){var pageIndex,
loop=!1;return currentMatch&&(currentMatch.index+1<matches[currentMatch.page-1].length?currentMatch.index++:(loop=(pageIndex=_.indexOf(pages,currentMatch.page))===pages.length-1,currentMatch.page=pages[(pageIndex+1)%pages.length],currentMatch.index=0),currentMatch.overall=currentMatch.overall%count+1),loop},search:function(query,pageNum){return matches=null,textManager.getContents().then(function(contentText){var contentText=_.map(contentText,"text"),firstPage=0,firstMatch=0;return matches=findInDocument(query,contentText,config),currentQuery=query,currentMatch=null,pages=[],count=0,_.forEach(matches,function(pageMatches,page){page+=1;0<pageMatches.length&&(
pages.push(page),!firstPage&&pageNum<=page&&(firstPage=page,firstMatch=count)),count+=pageMatches.length}),(firstPage=firstPage||(pages[0]||0))&&(currentMatch={overall:firstMatch+1,page:firstPage,index:0}),firstPage})},updateMatches:function(pageNum){return textManager.getPageContent(pageNum).then(function(pageContent){var selectedMatch;return currentMatch&&currentMatch.page===pageNum&&(selectedMatch=currentMatch.index),pageContent&&renderMatches(matches[pageNum-1],pageContent,selectedMatch),pageNum})},destroy:function(){config=pages=matches=currentMatch=currentQuery=textManager=null}}}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/findBar",["jquery"
,"lodash","ui/autoscroll","ui/hider","ui/documentViewer/providers/pdfViewer/pdfjs/searchEngine","handlebars","i18n","lib/dompurify/purify"],function($$1,_,autoscroll,hider,searchEngineFactory,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),
hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,
increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,autoscroll=autoscroll&&Object.prototype.hasOwnProperty.call(autoscroll,"default")?autoscroll.default:autoscroll,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default")?hider.default:hider,searchEngineFactory=searchEngineFactory&&Object.prototype.hasOwnProperty.call(searchEngineFactory,"default")?searchEngineFactory.default:searchEngineFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,
Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,options,buffer="",helperMissing=(helpers=this.merge(helpers,stack1.helpers)).helperMissing,escapeExpression=this.escapeExpression;function program1(depth0,data){return"checked "}return buffer+='<button class="small search" data-control="pdf-search" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Search",options):helperMissing.call(depth0,"__","Search",options))
)+'"><span class="icon icon-find"></span></button>\n<div class="pdf-find-bar hidden">\n <label for="pdf-search-query">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Search",options):helperMissing.call(depth0,"__","Search",options)))+':</label>\n <input type="text" id="pdf-search-query" data-control="pdf-search-query" placeholder="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Type your search",options):helperMissing.call(depth0,"__","Type your search",options))
)+'"/>\n <button class="small search" data-control="pdf-search-prev" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Previous match",options):helperMissing.call(depth0,"__","Previous match",options)))+'"><span class="icon icon-left"></span></button>\n <button class="small search" data-control="pdf-search-next" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Next match",options):helperMissing.call(depth0,"__","Next match",options))
)+'"><span class="icon icon-right"></span></button>\n <input type="checkbox" id="highlight-all" data-control="highlight-all" value="1" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.highlightAll,{hash:{},inverse:this.noop,fn:this.program(1,program1,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='/><label for="highlight-all">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Highlight all",options):helperMissing.call(depth0,"__","Highlight all",options)))+'</label>\n <input type="checkbox" id="case-sensitive-search" data-control="case-sensitive-search" value="1" ',!(
stack1=helpers.if.call(depth0,depth0&&depth0.caseSensitive,{hash:{},inverse:this.noop,fn:this.program(1,program1,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='/><label for="case-sensitive-search">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Case sensitive",options):helperMissing.call(depth0,"__","Case sensitive",options))
)+'</label>\n <span class="pdf-search-info" data-control="pdf-search-info">\n <span class="pdf-search-position hidden" data-control="pdf-search-position">\n <span class="pdf-search-index" data-control="pdf-search-index"></span>/<span class="pdf-search-count" data-control="pdf-search-count"></span>\n </span>\n <span class="pdf-search-loop hidden" data-control="pdf-search-loop-begin">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"End of document reached. Continuing from the beginning.",options):helperMissing.call(depth0,"__",
"End of document reached. Continuing from the beginning.",options)))+'\n </span>\n <span class="pdf-search-loop hidden" data-control="pdf-search-loop-end">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Start of document reached. Continuing from the end.",options):helperMissing.call(depth0,"__","Start of document reached. Continuing from the end.",options)))+"\n </span>\n </span>\n</div>\n"});function toggleState($element,enabled){enabled?$element.removeAttr("disabled"):$element.attr("disabled",!0)}return function(config){var controls,$container,
throttledSearchStart=_.throttle(function(){var typedQuery=controls.$searchQuery.val();typedQuery!==query&&(query=typedQuery,navigating=!0,doSearch())},250),events=null,broker=null,searchEngine=null,query=null,pageNum=0,enabled=!0,loopBegin=!1,loopEnd=!1,navigating=!1;function doSearch(){loopEnd=loopBegin=!1,query?searchEngine&&(events.trigger("searching",query),searchEngine.search(query,pageNum).then(function(page){events.trigger("searchdone",query,page),page?jumpTo(page):refresh()}).catch(function(err){events.trigger("error",err)})):(searchEngine&&searchEngine.clearMatches(),refresh()),updateControls()}function jumpTo(page){events.trigger("setpage",page)}
function refresh(){events.trigger("refresh")}function matchUpdated(page){navigating&&(navigating=!1,broker&&searchEngine&&autoscroll(getSelectectMatchElement(),broker.getContentArea())),updateControls(),events.trigger("matchesupdated",page)}function jumpToMatch(){var match;searchEngine&&(match=searchEngine.getCurrentMatch())&&(navigating=!0,pageNum!==match.page?jumpTo(match.page):broker&&searchEngine&&(getSelectectMatchElement().removeClass("selected"),function(){var match=searchEngine.getCurrentMatch();return broker.getContentArea().find('[data-match="'+match.index+'"]')}().addClass("selected"),matchUpdated(pageNum)))}function moveBy(direction){
loopEnd=loopBegin=!1,searchEngine&&(direction<0?loopEnd=searchEngine.previousMatch():loopBegin=searchEngine.nextMatch(),jumpToMatch()),updateControls(),focusOnInput()}function getSelectectMatchElement(){return broker.getContentArea().find(".highlight.selected")}function focusOnInput(){controls.$searchQuery.focus()}function readCaseSensitiveOption(){config.caseSensitive=controls.$caseSensitive.is(":checked")}function applyHighlightAllOption(){broker&&broker.getContentArea().toggleClass("highlight-all",controls.$highlightAll.is(":checked"))}function updateControls(){var match,matchCount=0,matchIndex=0;searchEngine&&(matchCount=searchEngine.getMatchCount(),
matchIndex=(match=searchEngine.getCurrentMatch())&&match.overall),enabled||hider.isHidden(controls.$searchBar)||hider.hide(controls.$searchBar),toggleState(controls.$searchButton,enabled),toggleState(controls.$searchQuery,enabled),toggleState(controls.$caseSensitive,enabled),toggleState(controls.$highlightAll,enabled),toggleState(controls.$prevMatch,enabled&&1<matchCount),toggleState(controls.$nextMatch,enabled&&1<matchCount),controls.$matchIndex.text(matchIndex),controls.$matchCount.text(matchCount),hider.toggle(controls.$searchPosition,enabled&&0<matchCount),hider.toggle(controls.$searchLoopBegin,enabled&&loopBegin),hider.toggle(controls.$searchLoopEnd,
enabled&&loopEnd)}if(config=config||{},!_.isPlainObject(config.events))throw new TypeError("You must provide an events hub! [config.events is missing]");if(!_.isPlainObject(config.areaBroker))throw new TypeError("You must provide an areaBroker to give access to the UI! [config.areaBroker is missing]");if(!_.isPlainObject(config.textManager))throw new TypeError("You must provide a textManager to give access to the PDF text content! [config.textManager is missing]");return searchEngine=searchEngineFactory(config),broker=config.areaBroker,events=config.events,broker.getActionsArea().prepend($container=Template(config,$container)),$container=broker.getBarArea(),
controls={$searchBar:$$1(".pdf-find-bar",$container),$searchButton:$$1('[data-control="pdf-search"]',$container),$searchQuery:$$1('[data-control="pdf-search-query"]',$container),$prevMatch:$$1('[data-control="pdf-search-prev"]',$container),$nextMatch:$$1('[data-control="pdf-search-next"]',$container),$caseSensitive:$$1('[data-control="case-sensitive-search"]',$container),$highlightAll:$$1('[data-control="highlight-all"]',$container),$matchIndex:$$1('[data-control="pdf-search-index"]',$container),$matchCount:$$1('[data-control="pdf-search-count"]',$container),$searchPosition:$$1('[data-control="pdf-search-position"]',$container),$searchLoopBegin:$$1(
'[data-control="pdf-search-loop-begin"]',$container),$searchLoopEnd:$$1('[data-control="pdf-search-loop-end"]',$container)},readCaseSensitiveOption(),applyHighlightAllOption(),controls.$searchButton.on("click",function(){hider.toggle(controls.$searchBar),hider.isHidden(controls.$searchBar)||focusOnInput()}),controls.$prevMatch.on("click",function(){moveBy(-1)}),controls.$nextMatch.on("click",function(){moveBy(1)}),controls.$caseSensitive.on("change",function(){navigating=!0,readCaseSensitiveOption(),doSearch(),focusOnInput()}),controls.$highlightAll.on("change",function(){applyHighlightAllOption(),focusOnInput()}),controls.$searchQuery.on("keypress",
function(event){27===event.keyCode?hider.hide(controls.$searchBar):throttledSearchStart()}),events.on("enable.findbar",function(){enabled=!0,updateControls()}).on("disable.findbar",function(){enabled=!1,updateControls()}).on("pagechange.findbar",function(page){pageNum=page,updateControls()}).on("allrendered.findbar",function(page){(function(page){var textManager=searchEngine&&searchEngine.getTextManager();textManager&&textManager.getDocument()&&(events.trigger("matchesupdating",page),searchEngine.updateMatches(page).then(matchUpdated))})(pageNum=page),updateControls()}).trigger("init.findbar"),{getSearchEngine:function(){return searchEngine},
destroy:function(){searchEngine&&searchEngine.destroy(),controls.$searchButton&&controls.$searchButton.remove(),controls.$searchBar&&controls.$searchBar.remove(),controls={},broker=searchEngine=config=null,events.trigger("destroy.findbar"),events.off(".findbar"),events=null}}}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/pageView",["jquery","ui/hider","handlebars","i18n","lodash","lib/dompurify/purify"],function($$1,hider,Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default")?hider.default:hider,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<div class="pdf-page hidden" data-page="',buffer+=(0,this.escapeExpression)((helper=helper.page)||"function"==typeof(helper=depth0&&depth0.page)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <canvas class="pdf-content"></canvas>\n <div class="pdf-text"></div>\n</div>\n'})
;var DEFAULT_SCALE=1,MIN_SCALE=.25,MAX_SCALE=10;return function($container,config){var $pageView,$textLayer,$drawLayer,canvas,context,scale,pageNum,html,textManager=null,rendered=!1,view={get pageNum(){return pageNum},set pageNum(num){pageNum=parseInt(num,10),$pageView.attr("data-page",num)},isRendered:function(){return rendered},getContainer:function(){return $container},getElement:function(){return $pageView},getDrawLayerElement:function(){return $drawLayer},getTextLayerElement:function(){return $textLayer},getCanvas:function(){return canvas},getRenderingContext:function(){return context},setTextManager:function(manager){textManager=manager},
getTextManager:function(){return textManager},render:function(page,fitToWidth){var textViewport,renderContext,promises=[],renderScale=scale*(96/72);return rendered=!1,textViewport=page.getViewport(renderScale),renderContext={canvasContext:view.getRenderingContext(),viewport:textViewport},function(viewport,fitToWidth){var width,height,ratio=viewport.width/(viewport.height||1)||1,parentWidth=$container.width(),parentHeight=$container.height(),parentOffset=$container.offset();function setSize(w,h){$pageView.width(w).height(h).offset({left:parentOffset.left+Math.max(0,(parentWidth-w)/2)}),$drawLayer.width(w).height(h),$textLayer.width(w).height(h)}
fitToWidth?parentHeight<(height=(width=parentWidth)/ratio)&&(setSize(Math.max(1,parentWidth/2),height),parentWidth=$container.prop("scrollWidth"),height=(width=parentWidth)/ratio):1<=ratio?(height=Math.min(parentHeight,parentWidth/ratio),width=Math.min(parentWidth,height*ratio)):(width=Math.min(parentWidth,parentHeight*ratio),height=Math.min(parentHeight,width/ratio));setSize(width,height),canvas.width=viewport.width,canvas.height=viewport.height}(textViewport,fitToWidth),promises.push(page.render(renderContext).promise),textManager&&($textLayer.empty(),textViewport=textViewport.clone({scale:renderScale*$textLayer.width()/textViewport.width}),promises.push(
textManager.renderPage(page.pageIndex+1,textViewport).then(function(renderedContent){$textLayer&&$textLayer.append(renderedContent)}))),Promise.all(promises).then(function(){rendered=!0})},show:function(){hider.show($pageView)},hide:function(){hider.hide($pageView)},destroy:function(){$pageView.remove(),config=textManager=context=canvas=$drawLayer=$textLayer=$pageView=$container=null}};return textManager=(config=config||{}).textManager,pageNum=config.pageNum,$pageView=$$1(html=Template({page:pageNum},html)),$textLayer=$pageView.find(".pdf-text"),$drawLayer=$pageView.find("canvas"),canvas=$drawLayer.get(0),context=canvas.getContext("2d"),scale=function(scale
){return Math.min(Math.max(MIN_SCALE,parseInt(scale,10)||DEFAULT_SCALE),MAX_SCALE)}(function(context){return(window.devicePixelRatio||1)/(context.backingStorePixelRatio||context.webkitBackingStorePixelRatio||context.mozBackingStorePixelRatio||context.msBackingStorePixelRatio||context.oBackingStorePixelRatio||1)}(context)*DEFAULT_SCALE),$container.append($pageView),view}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/pagesManager",["lodash","ui/documentViewer/providers/pdfViewer/pdfjs/pageView"],function(_,pageViewFactory){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
pageViewFactory=pageViewFactory&&Object.prototype.hasOwnProperty.call(pageViewFactory,"default")?pageViewFactory.default:pageViewFactory,function($container,config){var activeView=null,textManager=null,views=null,pagesManager={get pageCount(){return pageCount},getContainer:function(){return $container},setTextManager:function(manager){textManager=manager,_.forEach(views,function(view){view&&view.setTextManager(manager)})},getTextManager:function(){return textManager},getView:function(pageNum){var index,view;return pageNum=Math.min(Math.max(1,parseInt(pageNum,10)||1),pageCount),(view=views[index=pageNum-1])||(views[index]=view=pageViewFactory($container,{
pageNum:pageNum,textManager:textManager})),view},getActiveView:function(){return activeView},setActiveView:function(page){var oldActiveView=activeView;activeView=pagesManager.getView(page),oldActiveView&&oldActiveView!==activeView&&oldActiveView.hide(),activeView&&(activeView.pageNum=page,activeView.show())},renderPage:function(page,fitToWidth){return activeView?activeView.render(page,fitToWidth):Promise.resolve()},destroy:function(){_.forEach(views,function(view){view&&view.destroy()}),config=views=textManager=activeView=$container=null}},textManager=(config=config||{}).textManager,pageCount=Math.max(1,parseInt(config.pageCount,10)||1),views=new Array(
pageCount);return pagesManager}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/textManager",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(config){var pdfDoc=null,PDFJS=null,pageContents=null,textRenderTasks=null;function cancelRenderingTask(pageIndex){textRenderTasks&&textRenderTasks[pageIndex]&&(textRenderTasks[pageIndex].cancel(),textRenderTasks[pageIndex]=null)}function cancelAllRenderingTasks(){var pageIndex;if(textRenderTasks)for(pageIndex=textRenderTasks.length;pageIndex--;)cancelRenderingTask(pageIndex)}function getTextContent(){var numPages=pdfDoc.numPages,promises=[]
;return _.times(numPages,function(pageNum){promises.push((pageNum=pageNum+1,pdfDoc.getPage(pageNum).then(function(page){return page.getTextContent({normalizeWhitespace:!0})}).then(function(textContent){var strings=_.map(textContent.items,"str");return{content:textContent,strings:strings,text:strings.join(""),nodes:[]}})))}),Promise.all(promises)}if(PDFJS=(config=config||{}).PDFJS,!_.isPlainObject(PDFJS))throw new TypeError("You must provide the entry point to the PDF.js library! [config.PDFJS is missing]");return{setDocument:function(doc){cancelAllRenderingTasks(),pdfDoc=doc,pageContents=null},getDocument:function(){return pdfDoc},getContents:function(){
return pdfDoc?(numPages=pdfDoc.numPages,pageContents?Promise.resolve(pageContents):getTextContent().then(function(content){return textRenderTasks=new Array(numPages),pageContents=content})):Promise.reject(new Error("You must assign a document to get the content from!"));var numPages},getText:function(){return this.getContents().then(function(content){return _.map(content,"text")})},getFullText:function(){return this.getContents().then(function(content){return _.map(content,"text").join(" ")})},getPageContent:function(pageNum){return this.getContents().then(function(content){return content[Math.min(Math.max(0,pageNum-1),content.length-1)]})},
getPageText:function(pageNum){return this.getContents().then(function(content){return content[Math.min(Math.max(0,pageNum-1),content.length-1)].text})},renderPage:function(pageNum,viewport,timeout){return this.getContents().then(function(pageContent){var pageIndex=Math.min(Math.max(0,pageNum-1),pageContent.length-1),pageContent=pageContent[pageIndex],textLayerFrag=document.createDocumentFragment();return cancelRenderingTask(pageIndex),pageContent.nodes=[],textRenderTasks[pageIndex]=PDFJS.renderTextLayer({textContent:pageContent.content,textDivs:pageContent.nodes,container:textLayerFrag,viewport:viewport,timeout:timeout}),
textRenderTasks[pageIndex].promise.then(function(){return textRenderTasks[pageIndex]=null,textLayerFrag},function(){textRenderTasks[pageIndex]=null})})},destroy:function(){cancelAllRenderingTasks(),config=pageContents=PDFJS=pdfDoc=null}}}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/wrapper",["lodash","ui/documentViewer/providers/pdfViewer/pdfjs/pagesManager","ui/documentViewer/providers/pdfViewer/pdfjs/textManager"],function(_,pagesManagerFactory,textManagerFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,pagesManagerFactory=pagesManagerFactory&&Object.prototype.hasOwnProperty.call(pagesManagerFactory,
"default")?pagesManagerFactory.default:pagesManagerFactory,textManagerFactory=textManagerFactory&&Object.prototype.hasOwnProperty.call(textManagerFactory,"default")?textManagerFactory.default:textManagerFactory;var BASE64_MARKER=";base64,";function processUri(uri){var base64Index;return 0<=(base64Index=(uri=String(uri)).indexOf(BASE64_MARKER))?function(data){for(var raw=window.atob(data),rawLength=raw.length,array=new Uint8Array(new ArrayBuffer(rawLength));rawLength--;)array[rawLength]=raw.charCodeAt(rawLength);return array}(uri.substring(base64Index+BASE64_MARKER.length)):uri}return function($container,config){var pdfDoc=null,pageNum=1,pageCount=1,
pageNumPending=null,pageRendering=null,pagesManager=null,textManager=null,states={},PDFJS=null,events=null,wrapper={get wrapped(){return PDFJS},load:function(url){return pdfDoc=null,states={},events.trigger("loading",url),PDFJS.getDocument(processUri(url)).then(function(doc){states.destroyed||(pageNum=1,pageCount=(pdfDoc=doc).numPages,textManager.setDocument(pdfDoc),states.loaded=!0,events.trigger("loaded",url))})},renderPage:function(num){return pdfDoc?(pageRendering?pageNumPending=num:(events.trigger("rendering",num),states.rendered=!1,states.rendering=!0,pageRendering=pdfDoc.getPage(num).then(function(page){if(pagesManager)return pagesManager.renderPage(
page,config.fitToWidth).then(function(){var nextPage=pageNumPending;if(pageRendering=pageNumPending=null,!states.destroyed){if(states.rendered=!0,states.rendering=!1,events.trigger("rendered",num),null!==nextPage)return wrapper.renderPage(nextPage);events.trigger("allrendered",num)}})})),pageRendering):Promise.resolve(num)},getState:function(name){return!!states[name]},getDocument:function(){return pdfDoc},getPageCount:function(){return pageCount},getPage:function(){return pageNum},setPage:function(page){return pageNum=Math.min(Math.max(1,page||0),pageCount),pagesManager.setActiveView(pageNum),events.trigger("pagechange",pageNum),wrapper.renderPage(pageNum)
},getTextManager:function(){return textManager},getPagesManager:function(){return pagesManager},refresh:function(){return events.trigger("refreshing",pageNum),pagesManager.setActiveView(pageNum),wrapper.renderPage(pageNum)},destroy:function(){pagesManager&&pagesManager.destroy(),textManager&&textManager.destroy(),pdfDoc&&pdfDoc.destroy(),states={destroyed:!0},config=PDFJS=$container=pagesManager=pageRendering=pageNumPending=pdfDoc=null,events.trigger("destroy.wrapper"),events=null}},PDFJS=(config=config||{}).PDFJS,events=config.events;if(!_.isPlainObject(PDFJS))throw new TypeError(
"You must provide the entry point to the PDF.js library! [config.PDFJS is missing]");if(!_.isPlainObject(events))throw new TypeError("You must provide an events hub! [config.events is missing]");return textManager=textManagerFactory({PDFJS:PDFJS}),pagesManager=pagesManagerFactory($container,{pageCount:1,textManager:textManager}),events.on("setpage.wrapper",function(page){wrapper.setPage(page)}).on("refresh.wrapper",function(){wrapper.refresh()}).trigger("init.wrapper"),wrapper}}),define("ui/documentViewer/providers/pdfViewer/pdfjs/viewer",["jquery","lodash","core/eventifier","ui/documentViewer/providers/pdfViewer/pdfjs/areaBroker",
"ui/documentViewer/providers/pdfViewer/pdfjs/findBar","ui/documentViewer/providers/pdfViewer/pdfjs/wrapper","handlebars","i18n","lib/dompurify/purify"],function($$1,_,eventifier,areaBroker,findBarFactory,wrapperFactory,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(
context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,
stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,
"default")?_.default:_,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,areaBroker=areaBroker&&Object.prototype.hasOwnProperty.call(areaBroker,"default")?areaBroker.default:areaBroker,findBarFactory=findBarFactory&&Object.prototype.hasOwnProperty.call(findBarFactory,"default")?findBarFactory.default:findBarFactory,wrapperFactory=wrapperFactory&&Object.prototype.hasOwnProperty.call(wrapperFactory,"default")?wrapperFactory.default:wrapperFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,options,buffer="",helperMissing=(helpers=this.merge(helpers,stack1.helpers)).helperMissing,escapeExpression=this.escapeExpression
;return buffer+='<div class="pdf-bar">\n <div class="pdf-actions">\n <button class="small navigation" data-control="pdf-page-prev" data-direction="-1" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Previous page",options):helperMissing.call(depth0,"__","Previous page",options)))+'"><span class="icon icon-step-backward"></span><span class="text">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Previous",options):helperMissing.call(depth0,"__","Previous",options))
)+'</span></button>\n <button class="small navigation" data-control="pdf-page-next" data-direction="1" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Next page",options):helperMissing.call(depth0,"__","Next page",options)))+'"><span class="icon icon-step-forward"></span><span class="text">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Next",options):helperMissing.call(depth0,"__","Next",options)))+"</span></button>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.fitToWidth,{hash:{},inverse:this.noop,fn:this.program(1
,function(depth0,helper){var options,buffer="";return buffer+='\n <input type="checkbox" id="fit-to-width" data-control="fit-to-width" value="1" checked /> <label for="fit-to-width">'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Fit to width",options):helperMissing.call(depth0,"__","Fit to width",options)))+"</label>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="pdf-info">\n <label for="pdf-page-num">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Page",options
):helperMissing.call(depth0,"__","Page",options)))+':</label>\n <input class="info" id="pdf-page-num" data-control="pdf-page-num" value="1" />\n <label>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"of",options):helperMissing.call(depth0,"__","of",options)))+'</label>\n <span class="info" data-control="pdf-page-count">1</span>\n </div>\n</div>\n<div class="pdf-container"></div>\n'});function toggleState($element,enabled){enabled?$element.removeAttr("disabled"):$element.attr("disabled",!0)}return function($container,config){var html,template=html=Template(config,html),
events=eventifier(),controls={},broker=null,findBar=null,pdfConfig=null,pdf=null,PDFJS=null,enabled=!0;function updateControls(){var page=pdf.getPage(),pageCount=pdf.getPageCount();page!==parseInt(controls.$pageNum.val(),10)&&controls.$pageNum.val(page),toggleState(controls.$pagePrev,enabled&&1<page),toggleState(controls.$pageNext,enabled&&page<pageCount),toggleState(controls.$pageNum,enabled&&1<pageCount)}function disable(){events.trigger("disable")}function jumpPage(page){events.trigger("setpage",page)}function movePage(step){jumpPage(pdf.getPage()+step)}if(PDFJS=(config=config||{}).PDFJS,pdfConfig=_.merge({events:events},_.pick(config,["PDFJS",
"fitToWidth"])),!_.isPlainObject(PDFJS))throw new TypeError("You must provide the entry point to the PDF.js library! [config.PDFJS is missing]");return{load:function(url){return $container.html(template),PDFJS.PDFJS.disableRange=!0,events.on("enable",function(){enabled=!0,updateControls()}).on("disable",function(){enabled=!1,updateControls()}).on("loaded",function(){controls.$pageCount.html(pdf.getPageCount()),events.trigger("enable")}).on("pagechange rendered",function(){updateControls()}),broker=areaBroker($container,{bar:$$1(".pdf-bar",$container),actions:$$1(".pdf-actions",$container),info:$$1(".pdf-info",$container),content:$$1(".pdf-container",
$container)}),controls={$navigation:$container.find(".navigation"),$pagePrev:$container.find('[data-control="pdf-page-prev"]'),$pageNext:$container.find('[data-control="pdf-page-next"]'),$pageNum:$container.find('[data-control="pdf-page-num"]'),$pageCount:$container.find('[data-control="pdf-page-count"]'),$fitToWidth:$container.find('[data-control="fit-to-width"]')},pdf=wrapperFactory(broker.getContentArea(),pdfConfig),config.allowSearch&&(findBar=findBarFactory({events:events,areaBroker:broker,textManager:pdf.getTextManager(),caseSensitive:config.caseSensitiveSearch,highlightAll:config.highlightAllMatches})),this.setSize($container.width(),
$container.height()),controls.$fitToWidth.on("change",function(){pdfConfig.fitToWidth=controls.$fitToWidth.is(":checked"),events.trigger("refresh")}),controls.$navigation.on("click",function(){movePage(parseInt($$1(this).data("direction"),10)||1)}),controls.$pageNum.on("change",function(){jumpPage(parseInt(controls.$pageNum.val(),10)||pdf.getPage())}).on("keydown",function(event){switch(event.keyCode){case 38:movePage(1),event.stopPropagation(),event.preventDefault();break;case 40:movePage(-1),event.stopPropagation(),event.preventDefault()}}),disable(),pdf.load(url)},unload:function(){disable(),findBar&&findBar.destroy(),pdf&&pdf.destroy(),
events.removeAllListeners(),$container.empty(),controls={},broker=findBar=pdf=pdfConfig=null},setSize:function(width,height){var contentHeight,$bar,$content;if(pdf)return $bar=broker.getBarArea(),$content=broker.getContentArea(),contentHeight=height-$bar.outerHeight(),$bar.width(width),$content.width(width).height(contentHeight),events.trigger("resized",width,height,contentHeight),pdf.refresh()}}}}),define("ui/documentViewer/providers/pdfViewer",["lodash","core/requireIfExists","ui/documentViewer/providers/pdfViewer/fallback/viewer","ui/documentViewer/providers/pdfViewer/pdfjs/viewer","handlebars","i18n","lib/dompurify/purify"],function(_,requireIfExists,
fallbackFactory,pdfjsFactory,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,requireIfExists=requireIfExists&&Object.prototype.hasOwnProperty.call(requireIfExists,"default")?requireIfExists.default:requireIfExists,fallbackFactory=fallbackFactory&&Object.prototype.hasOwnProperty.call(fallbackFactory,"default"
)?fallbackFactory.default:fallbackFactory,pdfjsFactory=pdfjsFactory&&Object.prototype.hasOwnProperty.call(pdfjsFactory,"default")?pdfjsFactory.default:pdfjsFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],
helpers=this.merge(helpers,Handlebars.helpers),'<div class="pdf-viewer"></div>'});function viewerTpl(data,html,asString){html=Template(data,html);return html}return{getTemplate:function(){return viewerTpl},init:function(){this.pdf=null},load:function(){var self=this,$element=this.getElement();return requireIfExists("pdfjs-dist/build/pdf").then(function(pdfjs){var config=_.clone(self.config);return pdfjs?(config.PDFJS=pdfjs,self.pdf=pdfjsFactory($element,config)):self.pdf=fallbackFactory($element,config),self.pdf.load(self.getUrl())}).then(function(){self.setSize($element.width(),$element.height())})},unload:function(){this.pdf&&this.pdf.unload(),this.is(
"rendered")&&this.getElement().empty(),this.pdf=null},setSize:function(width,height){this.pdf&&this.pdf.setSize(width,height)}}}),define("css!ui/dropdown/css/dropdown",[],function(){}),define("ui/dropdown",["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/dropdown/css/dropdown.css"],function($$1,_,component,Handlebars,__,DOMPurify,dropdown_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}
function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(
fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(
haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression;return buffer+='<div class="dropdown-container">\n <div class="dropdown ',buffer+=escapeExpression(stack1=(helper=helpers.cls)||"function"==typeof(helper=depth0&&depth0.cls)?helper.call(depth0,{hash:{},data:data}):helper),!(stack1=helpers.if.call(depth0,depth0&&depth0.isOpen,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return" open"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" id="',
buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'" data-control="',buffer+=escapeExpression(stack1=(helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'" role="navigation">\n <div class="dropdown-header a toggler" aria-haspopup="true" tabindex="0">\n </div>\n <ul class="dropdown-submenu plain" aria-label="submenu">\n </ul>\n </div>\n</div>\n'});function dropdownTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<li class="dropdown-item ',stack1=(helper=helpers.cls)||typeof(helper=depth0&&depth0.cls)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" id="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-control="'
,stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='<span class="icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=(helper=helpers.content)||typeof(helper=depth0&&depth0.content
)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="\n</li>\n"});function itemTpl(data,html){html=Template$1(data,html);return html}var defaults={isOpen:!1,activatedBy:"hover"};return function(config,data){var dropdownSpecs={getId:function(){return this.config.id},open:function(){return this.is("open")||(this.controls.$dropdown.addClass("open"),this.setState("open",!0)),this},close:function(){return this.is("open")&&(this.controls.$dropdown.removeClass("open"),this.setState("open",!1)),this},toggle:function(){return this.is("open")?this.close():this.open(),this},setHeader:function(html){
return"string"==typeof html&&(data.header=html,this.is("rendered")&&this.controls.$headerItem.html(html)),this},setItems:function(items){var self=this;return Array.isArray(items)&&(data.items=items,this.is("rendered")&&(this.controls.$listContainer.empty(),_.forEach(items,function(item){self.controls.$listContainer.append(itemTpl(item))}))),this},addItem:function(item){return item.content&&"string"==typeof item.content&&item.content.length&&(data.items.push(item),this.is("rendered")&&this.controls.$listContainer.append(itemTpl(item))),this},removeItem:function(index){return 0<=index&&index<data.items.length&&(data.items.splice(index,1),this.is("rendered"
)&&this.controls.$listContainer.children().get(index).remove()),this},clearItems:function(){return data.items=[],this.is("rendered")&&this.controls.$listContainer.empty(),this}};return data=_.defaults({},data,{header:"",items:[]}),component(dropdownSpecs,defaults).setTemplate(dropdownTpl).on("init",function(){this.setState("open",this.config.isOpen)}).on("render",function(){var $component=this.getElement();this.controls={$dropdown:$component.find(".dropdown"),$toggler:$component.find(".dropdown-header:after"),$headerItem:$component.find(".dropdown-header"),$listContainer:$component.find(".dropdown-submenu")},_.isEmpty(data)||(this.setHeader(data.header),
this.setItems(data.items)),this.trigger("wireup")}).on("wireup",function(){var self=this,$component=this.getElement();"hover"===this.config.activatedBy?($component.on("mouseenter",self.open).on("mouseleave",self.close),this.controls.$toggler.on("click",self.toggle).on("focus",self.open)):"click"===this.config.activatedBy&&this.controls.$headerItem.on("click",self.toggle),$component.on("focus",self.open).on("blur",self.close),this.controls.$listContainer.on("click","li",function(){var id=$$1(this).closest("li").attr("id");self.trigger("item-click",id),self.trigger("item-click-"+id)})}).on("item-click",function(){this.close()}).init(config)}}),define(
"ui/incrementer",["jquery","lodash","core/pluginifier","lib/gamp/gamp"],function($,_,Pluginifier,gamp){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,gamp=gamp&&Object.prototype.hasOwnProperty.call(gamp,"default")?gamp.default:gamp;var ns="incrementer",dataNs="ui."+ns,defaults={disableClass:"disabled",step:1,min:null,max:null,zero:!1,incrementerClass:"incrementer",incrementerCtrlClass:"incrementer-ctrl",
incrementerWrapperClass:"incrementer-ctrl-wrapper",decimal:0},Incrementer={init:function(options){var self=Incrementer;return options=_.defaults(options||{},defaults),this.each(function(){var $ctrl,currentValue,$elt=$(this),wrapper=$("<span>",{class:options.incrementerWrapperClass});$elt.data(dataNs)||($elt.is('input[type="text"]')?(currentValue=parseFloat($elt.val()).toFixed(options.decimal),$elt.wrap(wrapper),$elt.data(dataNs,options).addClass(options.incrementerClass).after(
'<span class="ctrl '+options.incrementerCtrlClass+'"><a href="#" class="inc" title="+'+options.step+'" tabindex="-1"></a><a href="#" class="dec" title="-'+options.step+'" tabindex="-1"></a></span>').on("keydown",function(e){38===e.which?(self._inc($elt),this.select()):40===e.which&&(self._dec($elt),this.select())}).on("keyup",_.debounce(function(){var negative="-"===(value=$elt.val()).charAt(0),options=$elt.data(dataNs),value=parseFloat(value.replace(/[^\d\.]/g,""));isNaN(value)?$elt.val(""):(value=negative?-value:value,null===options.min||_.isNumber(options.min)&&value>=options.min||!0===options.zero&&0===value?$elt.val(value):($elt.val(options.min),
value=options.min),null===options.max||_.isNumber(options.max)&&value<=options.max?$elt.val(value):$elt.val(options.max)),$elt.trigger("change")},600)).on("focus",function(){this.select()}).on("disable.incrementer",function(){$elt.prop("disabled",!0).addClass("disabled"),$ctrl.find(".inc,.dec").prop("disabled",!0).addClass("disabled")}).on("enable.incrementer",function(){$elt.prop("disabled",!1).removeClass("disabled"),$ctrl.find(".inc,.dec").removeProp("disabled").removeClass("disabled")}),(_.isNaN(currentValue)||null!==options.min&&currentValue<options.min||null!==options.max&&currentValue>options.max)&&$elt.val(options.min||0),($ctrl=$elt.next(
"."+options.incrementerCtrlClass)).find(".inc").click(function(e){e.preventDefault(),$(this).prop("disabled")||self._inc($elt)}),$ctrl.find(".dec").click(function(e){e.preventDefault(),$(this).prop("disabled")||self._dec($elt)}),$elt.trigger("create."+ns)):$.error("The incrementer plugin applies only on input element of the type text"))})},_toFixedDown:function(number,m){m=Math.pow(10,m||0);return Math.floor(number*m)/m},_decimalPlaces:function(match){match=(""+match).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0},_inc:function($elt){var options=$elt.data(dataNs),value=parseFloat(
$elt.val()||0),value=gamp.add(value,options.step);_.isNumber(options.min)&&value<options.min&&(value=options.min),(null===options.max||_.isNumber(options.max)&&value<=options.max)&&($elt.val(value),$elt.trigger("increment."+ns,[value]).trigger("change"))},_dec:function($elt){var options=$elt.data(dataNs),value=parseFloat($elt.val()||0),value=gamp.sub(value,options.step);!0===options.zero&&_.isNumber(options.min)&&value<options.min&&(value=0),(null===options.min||_.isNumber(options.min)&&value>=options.min||!0===options.zero&&0===value)&&($elt.val(value),$elt.trigger("decrement."+ns,[value]).trigger("change"))},destroy:function(){this.each(function(){
var $elt=$(this),options=$elt.data(dataNs);$elt.off("keyup keydown").siblings("."+options.incrementerCtrlClass).remove(),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,Incrementer),function($container){$container.find("[data-increment]").each(function(){var max,$elt=$(this),decimal=Incrementer._decimalPlaces($elt.attr("data-increment")),step=parseFloat($elt.attr("data-increment")),zero=!!$elt.data("zero"),options={};options.zero=zero,_.isNaN(step)||(options.step=step),_.isNaN(decimal)||(options.decimal=decimal),$elt.attr("data-min")&&(max=parseFloat($elt.attr("data-min")),_.isNaN(max)||(options.min=max)),$elt.attr("data-max")&&(
max=parseFloat($elt.attr("data-max")),_.isNaN(max)||(options.max=max)),$elt.incrementer(options)})}}),define("ui/durationer",["jquery","lodash","i18n","core/pluginifier","handlebars","moment","ui/incrementer"],function($,_,__,Pluginifier,Handlebars,moment,incrementer){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(
Handlebars,"default")?Handlebars.default:Handlebars,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment;var ns="durationer",dataNs="ui."+ns,defaults={format:"HH:mm:ss",separator:":",wrapperClass:"duration-ctrl-wrapper",ctrlClass:"duration-ctrl",disableClass:"disabled",title:{hours:__("hours"),minutes:__("minutes"),seconds:__("seconds")}},fieldTmpl=Handlebars.compile("<input type='text' id='{{id}}-{{type}}' data-duration-type='{{type}}' class='{{ctrlClass}}' value='{{value}}' title='{{title}}' />"),Durationer={init:function(options){var self=Durationer;return options=_.defaults(options||{},defaults),this.each(function(
){var duration,$elt=$(this);$elt.data(dataNs)||($elt.is('input[type="text"]')?(options.id=$elt.attr("id")||$elt.attr("name")||"durationer-"+(new Date).getTime(),duration=moment($elt.val(),options.format),$elt.hide(),self._insertField($elt,options,duration.hours(),"hours"),self._insertField($elt,options,duration.minutes(),"minutes"),self._insertField($elt,options,duration.seconds(),"seconds"),options.separator&&$elt.siblings("."+options.wrapperClass+":not(:last)").after('<span class="separator">:</span>'),options.$ctrls=$elt.siblings("."+options.wrapperClass).children("input"),options.$ctrls.on("change",function(){self._syncToField($elt)}),$elt.on("change",
function(e){e.namespace!==ns&&self._syncFromField($elt)}),$elt.data(dataNs,options),$elt.trigger("create."+ns)):$.error("The durationer plugin applies only on input element of type text"))})},_insertField:function($elt,options,value,type){var data=_.defaults({type:type,value:value,title:options.title[type]},options);$(fieldTmpl(data)).insertBefore($elt).val(value).incrementer({min:0,max:"hours"===type?23:59,incrementerWrapperClass:options.wrapperClass})},_syncFromField:function($elt){var options=$elt.data(dataNs),current=moment($elt.val(),options.format);options.$ctrls.each(function(){var $field=$(this);current[$field.data("duration-type")]&&$field.val(
current[$field.data("duration-type")]())})},_syncToField:function($elt){var options=$elt.data(dataNs),current=moment($elt.val(),options.format);options.$ctrls.each(function(){var $field=$(this);!isNaN($field.val())&&current[$field.data("duration-type")]&&current[$field.data("duration-type")]($field.val())}),$elt.val(current.format(options.format)),$elt.trigger("update."+ns).trigger("change")},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);$elt.siblings("."+options.wrapperClass).remove(),$elt.siblings(".separator").remove(),$elt.removeData(dataNs),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,Durationer),
function($container){$container.find("[data-duration]").each(function(){var $elt=$(this),options=$elt.data("duration"),options=0<$.trim(options).length?{format:options}:{};$elt.durationer(options)})}}),define("layout/logout-event",["jquery","lodash","i18n","util/url","ui/dialog/alert"],function($,_,__,url,alert){"use strict";var defaults={message:__("You have been logged out. Please login again"),redirectUrl:url.route("logout","Main","tao")};return function(options){options=_.defaults(options||{},defaults),alert(options.message,function(){window.location=options.redirectUrl})}}),define("ui/filesender",["jquery","lodash","layout/logout-event"],function($,_,
logoutEvent){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,logoutEvent=logoutEvent&&Object.prototype.hasOwnProperty.call(logoutEvent,"default")?logoutEvent.default:logoutEvent;var FileSender={_opts:{frame:"__postFrame_",loaded:function(){}},_init:function(options){var xhr,opts=_.defaults(options,FileSender._opts),fd="undefined"!=typeof XMLHttpRequest&&(new XMLHttpRequest).upload&&"undefined"!=typeof FormData,fileParamName=options.fileParamName||"content",fileNameParamName=options.fileNameParamName||"contentName";if(!(this.attr("action"
)||opts.url&&0!==opts.url.trim().length))throw new Error("An url is required in the options or at least an action ");if(0===this.find("input[type='file']").length)throw new Error("This plugin is used to post files, your form should include an input element of type file.");if(!this||!this.is("form"))throw new Error("This plugin can only be called on a FORM element");fd&&(xhr=new XMLHttpRequest,fd=new FormData(this[0]),options.file&&options.file instanceof File&&(fd.append(fileParamName,options.file),fd.append(fileNameParamName,encodeURIComponent(options.file.name))),xhr.open("POST",opts.url,!0),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),
xhr.onreadystatechange=function(){var result;4===xhr.readyState&&(200===xhr.status?(result=$.parseJSON(xhr.responseText)).error?"function"==typeof opts.failed&&opts.failed(result.error):"function"==typeof opts.loaded&&opts.loaded(result):(403===xhr.status&&logoutEvent(),"function"==typeof opts.failed&&opts.failed()))},xhr.send(fd))}};$.fn.sendfile=function(options){return FileSender._init.call(this,options)}}),define("ui/selecter",["jquery","select2"],function($,select2){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,function($container){$("select.select2",$container).each(function(){var $elt=$(this),hasSearch=!(
!1===$elt.data("has-search")),hasPlaceholder=!(!$elt.attr("placeholder")&&!$elt.data("placeholder")),settings=$elt.data("width")||"resolve",hasSelectedIndex=function(options){for(var i=options.length,selected=!1;i--;)if("string"==typeof options[i].getAttribute("selected")){selected=!0;break}return selected}(this.options),settings={width:settings};hasPlaceholder&&this.options[0]&&this.options[0].text&&($elt.prepend("<option>"),hasSelectedIndex||(this.selectedIndex=this.options[0])),hasSearch||(settings.minimumResultsForSearch=-1),$elt.select2(settings)})}}),define("ui/filter",["jquery","lodash","i18n","core/eventifier","handlebars","lib/dompurify/purify",
"ui/selecter"],function($$1,_,__,eventifier,Handlebars,DOMPurify,selecter){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression
;return buffer+="<div>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.label,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <label class="form_desc">',stack1=(stack1=helpers.label)||typeof(stack1=depth0&&depth0.label)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</label>\n "},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="item-filter"></div>\n</div>'});var defaults={placeholder:__("Filter by value"),width:300,minimumResultsForSearch:10,minimumInputLength:3,enable:!0,quietMillis:2e3,label:!1}
;return function($container,options){var selected={uri:"",code:"",name:""};return options=_.defaults(options||{},defaults),eventifier({render:function(format){var $component,self=this,$component=$$1($component=Template(options,$component)),$list=$$1(".item-filter",$component);return $list.select2({placeholder:options.placeholder,allowClear:!0,width:options.width,minimumResultsForSearch:options.minimumResultsForSearch,minimumInputLength:options.minimumInputLength,maximumInputLength:200,formatResult:_.isFunction(options.formatter)?options.formatter:function(data){return _.template(format)(data)},ajax:{quietMillis:options.quietMillis,data:function(term,page){
return{q:term,page:page}},transport:function(params){self.trigger("request",params)},results:function(data,more){more=25*more<data.total;return{results:data.items,more:more}},cache:!0}}),$list.select2("enable",options.enable),$list.on("change.select2",function(){selected=$list.select2("data"),self.trigger("change",selected&&selected.uri?selected.uri:"")}),$container.append($component),this},enable:function(){$$1(".item-filter",$container).select2("enable",!0)},disable:function(){$$1(".item-filter",$container).select2("enable",!1)},getSelected:function(){return selected},reset:function(){$$1(".item-filter",$container).select2("val","")},destroy:function(){
var $list=$$1(".item-filter",$container);return $list.select2("destroy"),$list.remove(),this.trigger("destroy"),this}})}}),define("ui/form",["jquery"],function($){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;return function(selector){(function(selector){$(document).on("click",selector+" .pseudo-label-box",function($radios){$radios.preventDefault();var $checkboxes=$(this),$radios=$checkboxes.find("input:radio").not("[disabled]").not(".disabled"),$checkboxes=$checkboxes.find("input:checkbox").not("[disabled]").not(".disabled");$radios.length&&($radios.not(":checked").prop("checked",!0),$radios.trigger("change")),
$checkboxes.length&&($checkboxes.prop("checked",!$checkboxes.prop("checked")),$checkboxes.trigger("change"))})})(selector=selector.selector||".tao-scope"),function(selector){$(document).on("click",selector+" .disabled, "+selector+" :disabled",function(e){return e.preventDefault(),!1})}(selector)}}),define("ui/form/widget/definitions",[],function(){"use strict";var widgetDefinitions={TEXTBOX:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextBox",TEXTAREA:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#TextArea",HIDDEN:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#Hidden",HIDDENBOX:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#HiddenBox",
RADIOBOX:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#RadioBox",COMBOBOX:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#ComboBox",CHECKBOX:"http://www.tao.lu/datatypes/WidgetDefinitions.rdf#CheckBox"};return widgetDefinitions.DEFAULT=widgetDefinitions.TEXTBOX,widgetDefinitions}),define("ui/form/validator/validator",["lodash","i18n"],function(_,__){"use strict";function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _createForOfIteratorHelper(o,F){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(
it=function(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}(o))||F&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:F}}throw new TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var defaults={defaultMessage:(__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__)("Invalid input")};function compareRule(a,b){return(a&&a.precedence||0)-(
b&&b.precedence||0)}return function(config){var validations=new Map,validator={validate:function(value){var rules=this.getValidations();return rules.sort(compareRule),Promise.all(rules.map(function(validation){return Promise.resolve(function(value,validation){return validation.predicate instanceof RegExp?validation.predicate.test(value):_.isFunction(validation.predicate)?validation.predicate(value):_.isArray(validation.predicate)?-1<_.indexOf(validation.predicate,value):validation.predicate===value}(value,validation))})).then(function(errors){errors=_.reduce(errors,function(list,result,index){return result||list.push(
rules[index].message||config.defaultMessage),list},[]);if(errors.length)return Promise.reject(errors)})},addValidation:function(validation){if(!_.isPlainObject(validation))throw new TypeError("The validation must be an object");if(!_.isString(validation.id)||!validation.id)throw new TypeError("The validation must contain an identifier");if(!(_.isFunction(validation.predicate)||_.isRegExp(validation.predicate)||_.isString(validation.predicate)||_.isArray(validation.predicate)))throw new TypeError("The validation must provide a predicate");return validations.set(validation.id,validation),this},getValidation:function(id){return validations.get(id)||null},
getValidations:function(){var list=[],_iterator=_createForOfIteratorHelper(validations.values());try{for(_iterator.s();!(validation=_iterator.n()).done;){var validation=validation.value;list.push(validation)}}catch(err){_iterator.e(err)}finally{_iterator.f()}return list},removeValidation:function(id){return validations.delete(id),this},removeValidations:function(){return validations.clear(),this}};return config=_.defaults(_.clone(config)||{},defaults),_.forEach(config.validations,validator.addValidation),validator}}),define("css!ui/form/validator/css/validator",[],function(){}),define("ui/form/validator/renderer",["lodash","ui/component","handlebars","i18n",
"lib/dompurify/purify","css!ui/form/validator/css/validator.css"],function(_,componentFactory,Handlebars,__,DOMPurify,validator_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<div class="validation-error">',buffer+=(0,this.escapeExpression)((helper=helper.message)||"function"==typeof(
helper=depth0&&depth0.message)?helper.call(depth0,{hash:{},data:data}):helper)+"</div>\n"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="form-validator"></div>\n'});function validatorTpl(data,html,asString){html=Template$1(data,html);return html}var defaults={};return function(container,config){var validatorRenderer=componentFactory({display:function(messages){var $element=this.getElement();return this.is("rendered")&&(this.clear(),
messages&&!_.isArray(messages)&&(messages=[messages]),_.forEach(messages,function(message){return $element.append(html=Template({message:message},html));var html})),this},clear:function(){return this.is("rendered")&&this.getElement().empty(),this}},defaults).setTemplate(validatorTpl).on("init",function(){var _this=this;_.defer(function(){return _this.render(container)})}).on("render",function(){this.getConfig().messages&&this.display(this.getConfig().messages),this.trigger("ready")});return _.defer(function(){return validatorRenderer.init(config)}),validatorRenderer}}),define("ui/form/widget/providers/default",["i18n"],function(__){"use strict"
;return __=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,{getValue:function(){return this.is("rendered")?this.getWidgetElement().val()||"":this.getConfig().value||""},getRawValue:function(){return this.getValue()},setValue:function(value){this.is("rendered")&&this.getWidgetElement().val(value)},setDefaultValidators:function(){this.getConfig().required&&this.getValidator().addValidation({id:"required",message:__("This field is required"),predicate:/\S+/,precedence:1})},reset:function(){this.setValue("")},getWidgetElement:function(){return this.getElement().find('[name="'.concat(this.getUri(),'"]'))}}}),define(
"css!ui/form/widget/css/widget",[],function(){}),define("ui/form/widget/widget",["lodash","i18n","handlebars","core/providerRegistry","ui/component","ui/form/validator/validator","ui/form/validator/renderer","ui/form/widget/providers/default","lib/dompurify/purify","css!ui/form/widget/css/widget.css"],function(_,__,Handlebars,providerRegistry,componentFactory,validatorFactory,validatorRendererFactory,defaultProvider,DOMPurify,widget_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,providerRegistry=providerRegistry&&Object.prototype.hasOwnProperty.call(providerRegistry,"default")?providerRegistry.default:providerRegistry,
componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,validatorFactory=validatorFactory&&Object.prototype.hasOwnProperty.call(validatorFactory,"default")?validatorFactory.default:validatorFactory,validatorRendererFactory=validatorRendererFactory&&Object.prototype.hasOwnProperty.call(validatorRendererFactory,"default")?validatorRendererFactory.default:validatorRendererFactory,defaultProvider=defaultProvider&&Object.prototype.hasOwnProperty.call(defaultProvider,"default")?defaultProvider.default:defaultProvider,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(
DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),partials=this.merge(partials,stack1.partials),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="form-widget ',stack1=(helper=helpers.widgetType)||typeof(helper=depth0&&depth0.widgetType)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'">\n <div class="widget-label">\n ',!(stack1=this.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <input class="widget-input-inline" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.type,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='type="',stack1=(stack1=helpers.type)||typeof(stack1=depth0&&depth0.type)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'" '},data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+='name="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" value="',stack1=(helper=helpers.value)||typeof(helper=depth0&&depth0.value)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" />\n </div>\n</div>\n'});function widgetTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],
data=data||{};var helper,buffer="",helperMissing=(helpers=this.merge(helpers,stack1.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<label for="',stack1=(helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n ',stack1=(helper=helpers.label)||"function"==typeof(helper=depth0&&depth0.label)?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.required,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,helper){var options,buffer=""
;return buffer+='\n <abbr title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"This field is required",options):helperMissing.call(depth0,"__","This field is required",options)))+'">*</abbr>\n '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</label>\n"});var defaults={widgetType:"input-box",required:!1,label:__("Label"),value:"",range:[]};function widgetFactory(container,config){var validator,validatorRenderer,value,provider=function(config){if(!_.isPlainObject(config))throw new TypeError("The config must be an object");if(!_.isString(config.uri)||!config.uri
)throw new TypeError("The config must contain an uri");if(!_.isString(config.widget)||!config.widget)throw new TypeError("The config must declare a type of widget");return widgetFactory.getProvider(config.widget)}(config),setInvalidState=function(invalid,messages){widget.setState("invalid",invalid),validatorRenderer&&(invalid?validatorRenderer.display(messages):validatorRenderer.clear())},delegate=function(method){for(var _len=arguments.length,args=new Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return(_.isFunction(provider[method])?provider:defaultProvider)[method].apply(widget,args)},notifyChange=function(){widget.trigger(
"change",widget.getValue(),widget.getUri())},widget=componentFactory({getUri:function(){return this.getConfig().uri},getValue:function(){return delegate("getValue")},getRawValue:function(){return delegate("getRawValue")},setValue:function(value){return this.getConfig().value=value,delegate("setValue",value),notifyChange(),this},getValidator:function(){return validator},setValidator:function(validation){return validator=validation&&_.isFunction(validation.validate)?validation:(validation&&!validation.validations&&(_.isArray(validation)||(validation=[validation]),validation={validations:validation}),validatorFactory(validation)),this},
setDefaultValidators:function(){return this.setValidator(this.getConfig().validator),delegate("setDefaultValidators"),this},reset:function(){return delegate("reset"),setInvalidState(!1),this},validate:function(){return this.getValidator().validate(this.getRawValue()).then(function(res){return setInvalidState(!1),res}).catch(function(err){return setInvalidState(!0,err),Promise.reject(err)})},getWidgetElement:function(){return this.is("rendered")?delegate("getWidgetElement"):null}},defaults).setTemplate(provider.template||widgetTpl).on("init",function(){var _this=this;this.setDefaultValidators(),_.defer(function(){return _this.render(container)})}).on("render"
,function(){var _this2=this;this.setState(this.getConfig().widgetType,!0),this.getWidgetElement().on("change blur",function(){var value=_this2.getValue();value!==_this2.getConfig().value&&(_this2.getConfig().value=value,notifyChange())}),validatorRenderer=validatorRendererFactory(this.getElement()).spread(this,"error ready")}).on("disable",function(){this.is("rendered")&&this.getWidgetElement().prop("disabled",!0)}).on("enable",function(){this.is("rendered")&&this.getWidgetElement().prop("disabled",!1)}).on("destroy",function(){validatorRenderer&&(validatorRenderer.destroy(),validatorRenderer=null)});return config&&(config.range=value=(value=config.range
)&&!_.isArray(value)?[value]:value||[]),_.defer(function(){return widget.init(provider.init.call(widget,config||{})||config)}),widget}return Handlebars.registerPartial("ui-form-widget-label",function(data,html,asString){return html=Template$1(data,html)}),providerRegistry(widgetFactory),widgetFactory}),define("ui/form/widget/providers/checkBox",["jquery","lodash","i18n","handlebars","lib/dompurify/purify"],function($$1,_,__,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,
Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),partials=this.merge(partials,stack1.partials),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program2(depth0,data){return'\n checked="true"\n '}return buffer+='<div class="form-widget ',stack1=(stack1=helpers.widgetType)||typeof(stack1=depth0&&depth0.widgetType)===functionType?stack1.call(
depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'">\n <div class="widget-label">\n ',!(stack1=self.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <div class="check-box-input">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.range,{hash:{},inverse:self.noop,fn:self.programWithDepth(1,function(depth0,options,depth1){var stack1,helper,buffer=""
;return buffer+='\n <div class="option">\n <label>\n <input\n class="widget-input-inline"\n type="checkbox"\n name="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'"\n value="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'"\n ',helper=helpers.includes||depth1&&depth1.includes,options={hash:{},inverse:self.noop,fn:self.program(2,program2,options),data:options},!(stack1=helper?helper.call(depth0,
depth1&&depth1.value,depth0&&depth0.uri,options):helperMissing.call(depth0,"includes",depth1&&depth1.value,depth0&&depth0.uri,options))&&0!==stack1||(buffer+=stack1),buffer+='>\n <span class="icon-checkbox"></span>\n '+escapeExpression(typeof(stack1=depth0&&depth0.label)===functionType?stack1.apply(depth0):stack1)+"\n </label>\n </div>\n "},data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n </div>\n</div>\n"});return{init:function(config){config.widgetType="check-box",config.value&&!_.isArray(config.value)?config.value=[config.value
]:config.value=config.value||[]},setDefaultValidators:function(){this.getConfig().required&&this.getValidator().addValidation({id:"required",message:__("This field is required"),predicate:function(value){return 0<value.length},precedence:1})},getValue:function(){var value=this.getConfig().value||[];return this.is("rendered")&&(value=[],this.getElement().find(".option input:checked").map(function(){value.push($$1(this).val())})),value},setValue:function(value){var _this=this;this.is("rendered")&&(this.getWidgetElement().prop("checked",!1),_.forEach(value,function(v){_this.getElement().find('input[name="'.concat(v,'"]')).prop("checked",!0)}))},reset:function(
){return this.setValue([]),this},getWidgetElement:function(){return this.getElement().find(".option input")},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/comboBox",["handlebars","i18n","lodash","lib/dompurify/purify"],function(Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),
hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),
fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,options,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),options=this.merge(options,stack1.partials),data=data||{};var helper,buffer="",
functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="form-widget ',stack1=(helper=helpers.widgetType)||typeof(helper=depth0&&depth0.widgetType)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <div class="widget-label">\n ',!(stack1=this.invokePartial(options["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,options,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <select class="widget-input-inline" name="',stack1=(helper=helpers.uri)||typeof(
helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <option value="">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Choose a value...",options):helperMissing.call(depth0,"__","Choose a value...",options)))+"</option>\n ",!(stack1=helpers.each.call(depth0,depth0&&depth0.range,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <option value="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1
)+'">'+escapeExpression(typeof(stack1=depth0&&depth0.label)===functionType?stack1.apply(depth0):stack1)+"</option>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </select>\n </div>\n</div>\n"});return{init:function(config){var _this=this;config.widgetType="combo-box",this.on("render",function(){return _this.getWidgetElement().val(_this.getConfig().value)})},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/hidden",["handlebars","i18n","lodash","lib/dompurify/purify"],function(Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<input type="hidden" name="',buffer+=escapeExpression((helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper)+'" value="',buffer+=escapeExpression((helper=helpers.value)||"function"==typeof(helper=depth0&&depth0.value)?helper.call(depth0,{hash:{},data:data}):helper)+'" />\n'});return{init:function(config){config.widgetType="hidden"},
getWidgetElement:function(){return this.getElement()},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/hiddenBox",["lodash","i18n","handlebars","lib/dompurify/purify"],function(_,__,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),partials=this.merge(partials,stack1.partials),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression
;return buffer+='<div class="form-widget ',buffer+=escapeExpression(stack1=(helper=helpers.widgetType)||"function"==typeof(helper=depth0&&depth0.widgetType)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <div class="widget-label">\n ',!(stack1=this.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <input class="widget-input-inline" type="password" name="',buffer+=escapeExpression(stack1=(helper=helpers.uri)||"function"==typeof(helper=depth0&&depth0.uri)?helper.call(depth0,{hash:{},data:data}):helper
)+'" />\n </div>\n</div>\n\n<div class="form-widget ',buffer+=escapeExpression(stack1=(helper=helpers.widgetType)||"function"==typeof(helper=depth0&&depth0.widgetType)?helper.call(depth0,{hash:{},data:data}):helper)+' confirmation">\n <div class="widget-label">\n ',!(stack1=this.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0&&depth0.confirmation,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <input class="widget-input-inline" type="password" name="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.confirmation
)||!1===stack1?stack1:stack1.uri)?stack1.apply(depth0):stack1)+'" />\n </div>\n</div>\n'});return{init:function(config){config.widgetType="hidden-box",config.confirmation=_.defaults(config.confirmation||{},{label:__("%s Confirmation",config.label),uri:config.uri+"_confirmation",value:config.value||""})},setDefaultValidators:function(){this.getConfig().required&&this.getValidator().addValidation({id:"required",message:__("This field is required"),predicate:function(value){return/\S+/.test(value.value)},precedence:1}),this.getValidator().addValidation({id:"confirmation",message:__("Fields must match"),predicate:function(value){
return value.value===value.confirmation},precedence:2})},getValue:function(){var value=this.getConfig().value;return this.is("rendered")&&(value=this.getElement().find('[name="'.concat(this.getUri(),'"]')).val()),value},getRawValue:function(){var value={value:this.getValue(),confirmation:this.getConfig().confirmation.value};return this.is("rendered")&&(value.confirmation=this.getElement().find('[name="'.concat(this.getConfig().confirmation.uri,'"]')).val()),value},setValue:function(value){var $input,$confirmation;this.is("rendered")?($input=this.getElement().find('[name="'.concat(this.getUri(),'"]')),$confirmation=this.getElement().find('[name="'.concat(
this.getConfig().confirmation.uri,'"]')),$input.val()===$confirmation.val()&&(this.getConfig().confirmation.value=value,$confirmation.val(value)),$input.val(value)):this.getConfig().confirmation.value=value},getWidgetElement:function(){return this.getElement().find("input")},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/radioBox",["handlebars","i18n","lodash","lib/dompurify/purify"],function(Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),partials=this.merge(partials,stack1.partials),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this,helperMissing=helpers.helperMissing;function program2(depth0,data){return'\n checked="true"\n '}return buffer+='<div class="form-widget ',stack1=(stack1=helpers.widgetType)||typeof(stack1=depth0&&depth0.widgetType)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1
)+'">\n <div class="widget-label">\n ',!(stack1=self.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <div class="radio-box-input">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.range,{hash:{},inverse:self.noop,fn:self.programWithDepth(1,function(depth0,options,depth1){var stack1,helper,buffer=""
;return buffer+='\n <div class="option">\n <label>\n <input\n class="widget-input-inline"\n type="radio"\n name="'+escapeExpression(typeof(stack1=depth1&&depth1.uri)===functionType?stack1.apply(depth0):stack1)+'"\n value="'+escapeExpression(typeof(stack1=depth0&&depth0.uri)===functionType?stack1.apply(depth0):stack1)+'"\n ',helper=helpers.includes||depth1&&depth1.includes,options={hash:{},inverse:self.noop,fn:self.program(2,program2,options),data:options},!(stack1=helper?helper.call(depth0,
depth1&&depth1.value,depth0&&depth0.uri,options):helperMissing.call(depth0,"includes",depth1&&depth1.value,depth0&&depth0.uri,options))&&0!==stack1||(buffer+=stack1),buffer+='>\n <span class="icon-radio"></span>\n '+escapeExpression(typeof(stack1=depth0&&depth0.label)===functionType?stack1.apply(depth0):stack1)+"\n </label>\n </div>\n "},data,depth0),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n </div>\n</div>\n"});return{init:function(config){config.widgetType="radio-box"},getValue:function(){var value=this.getConfig().value||"";return this.is("rendered"
)&&(value=this.getElement().find(".option input:checked").val()||""),value},setValue:function(value){this.is("rendered")&&(this.getWidgetElement().prop("checked",!1),this.getElement().find('.option input[value="'.concat(value,'"]')).prop("checked",!0))},getWidgetElement:function(){return this.getElement().find(".option input")},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/textArea",["handlebars","i18n","lodash","lib/dompurify/purify"],function(Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){
return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),partials=this.merge(partials,stack1.partials),data=data||{};var helper,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="form-widget ',stack1=(helper=helpers.widgetType)||typeof(helper=depth0&&depth0.widgetType)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <div class="widget-label">\n ',!(stack1=this.invokePartial(partials["ui-form-widget-label"],"ui-form-widget-label",depth0,helpers,
partials,data))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="widget-field">\n <textarea class="widget-input" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.rows,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='rows="',stack1=(stack1=helpers.rows)||typeof(stack1=depth0&&depth0.rows)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'" '},data),data:data}))&&0!==stack1||(buffer+=stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.cols,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer=""
;return buffer+='cols="',stack1=(stack1=helpers.cols)||typeof(stack1=depth0&&depth0.cols)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'" '},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='name="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.value)||typeof(helper=depth0&&depth0.value)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</textarea>\n </div>\n</div>\n"});return{init:function(config){
config.widgetType="text-area"},template:function(data,html,asString){return html=Template(data,html)}}}),define("ui/form/widget/providers/textBox",[],function(){"use strict";return{init:function(config){config.widgetType="text-box"}}}),define("ui/form/widget/loader",["ui/form/widget/widget","ui/form/widget/definitions","ui/form/widget/providers/checkBox","ui/form/widget/providers/comboBox","ui/form/widget/providers/hidden","ui/form/widget/providers/hiddenBox","ui/form/widget/providers/radioBox","ui/form/widget/providers/textArea","ui/form/widget/providers/textBox"],function(widgetFactory,widgetDefinitions,widgetCheckBoxProvider,widgetComboBoxProvider,
widgetHiddenProvider,widgetHiddenBoxProvider,widgetRadioBoxProvider,widgetTextAreaProvider,widgetTextBoxProvider){"use strict";return widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,"default")?widgetFactory.default:widgetFactory,widgetDefinitions=widgetDefinitions&&Object.prototype.hasOwnProperty.call(widgetDefinitions,"default")?widgetDefinitions.default:widgetDefinitions,widgetCheckBoxProvider=widgetCheckBoxProvider&&Object.prototype.hasOwnProperty.call(widgetCheckBoxProvider,"default")?widgetCheckBoxProvider.default:widgetCheckBoxProvider,widgetComboBoxProvider=widgetComboBoxProvider&&Object.prototype.hasOwnProperty.call(
widgetComboBoxProvider,"default")?widgetComboBoxProvider.default:widgetComboBoxProvider,widgetHiddenProvider=widgetHiddenProvider&&Object.prototype.hasOwnProperty.call(widgetHiddenProvider,"default")?widgetHiddenProvider.default:widgetHiddenProvider,widgetHiddenBoxProvider=widgetHiddenBoxProvider&&Object.prototype.hasOwnProperty.call(widgetHiddenBoxProvider,"default")?widgetHiddenBoxProvider.default:widgetHiddenBoxProvider,widgetRadioBoxProvider=widgetRadioBoxProvider&&Object.prototype.hasOwnProperty.call(widgetRadioBoxProvider,"default")?widgetRadioBoxProvider.default:widgetRadioBoxProvider,
widgetTextAreaProvider=widgetTextAreaProvider&&Object.prototype.hasOwnProperty.call(widgetTextAreaProvider,"default")?widgetTextAreaProvider.default:widgetTextAreaProvider,widgetTextBoxProvider=widgetTextBoxProvider&&Object.prototype.hasOwnProperty.call(widgetTextBoxProvider,"default")?widgetTextBoxProvider.default:widgetTextBoxProvider,widgetFactory.registerProvider(widgetDefinitions.CHECKBOX,widgetCheckBoxProvider),widgetFactory.registerProvider(widgetDefinitions.COMBOBOX,widgetComboBoxProvider),widgetFactory.registerProvider(widgetDefinitions.HIDDEN,widgetHiddenProvider),widgetFactory.registerProvider(widgetDefinitions.HIDDENBOX,widgetHiddenBoxProvider),
widgetFactory.registerProvider(widgetDefinitions.RADIOBOX,widgetRadioBoxProvider),widgetFactory.registerProvider(widgetDefinitions.TEXTAREA,widgetTextAreaProvider),widgetFactory.registerProvider(widgetDefinitions.TEXTBOX,widgetTextBoxProvider),widgetFactory}),define("css!ui/form/css/form",[],function(){}),define("ui/form/form",["lodash","ui/component","ui/button","ui/hider","ui/form/widget/definitions","ui/form/widget/loader","handlebars","i18n","lib/dompurify/purify","css!ui/form/css/form.css"],function(_,componentFactory,buttonFactory,hider,widgetDefinitions,widgetFactory,Handlebars,__,DOMPurify,form_css){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _slicedToArray(arr,i){return function(arr){if(Array.isArray(arr))return arr}(arr)||function(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d
)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length
)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _createForOfIteratorHelper(o,F){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||F&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o
)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){
var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,buttonFactory=buttonFactory&&Object.prototype.hasOwnProperty.call(buttonFactory,"default")?buttonFactory.default:buttonFactory,hider=hider&&Object.prototype.hasOwnProperty.call(hider,"default"
)?hider.default:hider,widgetDefinitions=widgetDefinitions&&Object.prototype.hasOwnProperty.call(widgetDefinitions,"default")?widgetDefinitions.default:widgetDefinitions,widgetFactory=widgetFactory&&Object.prototype.hasOwnProperty.call(widgetFactory,"default")?widgetFactory.default:widgetFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<div class="form-component">\n <h2 class="form-title">',stack1=(stack1=helpers.title)||typeof(stack1=depth0&&depth0.title)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</h2>\n <form",!(stack1=helpers.if.call(depth0,depth0&&depth0.formAction,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer=""
;return buffer+=' action="',stack1=(stack1=helpers.formAction)||typeof(stack1=depth0&&depth0.formAction)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.formMethod,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,buffer="";return buffer+=' method="',stack1=(stack1=helpers.formMethod)||typeof(stack1=depth0&&depth0.formMethod)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"'},data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+='>\n <fieldset class="fieldset"></fieldset>\n <div class="form-actions"></div>\n </form>\n</div>\n'});function formTpl(data,html,asString){html=Template(data,html);return html}var defaults={formAction:"",formMethod:""};function enableComponents(collection){var _step,_iterator=_createForOfIteratorHelper(collection.values());try{for(_iterator.s();!(_step=_iterator.n()).done;){_step.value.enable()}}catch(err){_iterator.e(err)}finally{_iterator.f()}}function disableComponents(collection){var _step2,_iterator2=_createForOfIteratorHelper(collection.values());try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){_step2.value.disable()}
}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}function removeComponent(collection,key){collection.get(key).off(".form").destroy(),collection.delete(key)}function getComponents(collection){var components={},_iterator3=_createForOfIteratorHelper(collection);try{for(_iterator3.s();!(id=_iterator3.n()).done;){var component=_slicedToArray(id.value,2),id=component[0],component=component[1];components[id]=component}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return components}function validateDefinition(component,definition,key){return _.isPlainObject(definition)?definition[key]&&_.isString(definition[key])?function(component){return new Promise(
function(resolve){var resolveRender=function(){return resolve(component)};component.is("rendered")?resolveRender():component.on("ready",resolveRender)})}(component):Promise.reject(new TypeError("The definition must contain an identifier")):Promise.reject(new TypeError("The definition must be an object"))}return function(container,config){var widgets=new Map,buttons=new Map,controls=null,form=componentFactory({getFormAction:function(){return this.getConfig().formAction},getFormMethod:function(){return this.getConfig().formMethod},getRanges:function(){return this.getConfig().ranges||{}},getTitle:function(){return this.getConfig().title},setTitle:function(title
){return this.getConfig().title=title,this.is("rendered")&&(controls.$title.text(title),hider.toggle(controls.$title,!!title)),this.trigger("titlechange",title),this},getWidget:function(uri){return widgets.get(uri)||null},addWidget:function(definition){var _this=this;return validateDefinition(this,definition,"uri").then(function(){var ranges=_this.getRanges();return definition.range&&"string"==typeof definition.range&&(definition.range=ranges[definition.range]),definition.widget||(definition.widget=widgetDefinitions.DEFAULT),new Promise(function(resolve){var widget=widgetFactory(controls.$widgets,definition);widgets.set(definition.uri,widget),widget.on(
"change.form",function(value){_this.trigger("change",definition.uri,value),_this.trigger("change-".concat(definition.uri),value)}).on("ready.form",function(){_this.trigger("widgetadd",definition.uri,widget),resolve(widget)})})})},removeWidget:function(uri){return widgets.has(uri)&&(removeComponent(widgets,uri),this.trigger("widgetremove",uri)),this},getWidgets:function(){return getComponents(widgets)},setWidgets:function(definitions){var _this2=this;return this.removeWidgets(),Promise.all(_.map(definitions,function(definition){return _this2.addWidget(definition)}))},removeWidgets:function(){var _iterator4=_createForOfIteratorHelper(widgets.keys());try{for(
_iterator4.s();!(uri=_iterator4.n()).done;){var uri=uri.value;this.removeWidget(uri)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return widgets.clear(),this},getButton:function(id){return buttons.get(id)||null},addButton:function(definition){var _this3=this;return validateDefinition(this,definition,"id").then(function(){return new Promise(function(resolve){var button=buttonFactory(definition);buttons.set(definition.id,button),button.on("click.form",function(){_this3.trigger("button",definition.id),_this3.trigger("button-".concat(definition.id))}).on("ready.form",function(){_this3.trigger("buttonadd",definition.id,button),resolve(button)}),
button.render(controls.$buttons)})})},removeButton:function(id){return buttons.has(id)&&(removeComponent(buttons,id),this.trigger("buttonremove",id)),this},getButtons:function(){return getComponents(buttons)},setButtons:function(definitions){var _this4=this;return this.removeButtons(),Promise.all(_.map(definitions,function(definition){return _this4.addButton(definition)}))},removeButtons:function(){var _iterator5=_createForOfIteratorHelper(buttons.keys());try{for(_iterator5.s();!(id=_iterator5.n()).done;){var id=id.value;this.removeButton(id)}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return buttons.clear(),this},getValue:function(uri){
return widgets.has(uri)?widgets.get(uri).getValue():""},setValue:function(uri,value){return widgets.has(uri)&&widgets.get(uri).setValue(value),this},getValues:function(){var values={},_iterator6=_createForOfIteratorHelper(widgets);try{for(_iterator6.s();!(uri=_iterator6.n()).done;){var widget=_slicedToArray(uri.value,2),uri=widget[0],widget=widget[1];values[uri]=widget.getValue()}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return values},setValues:function(values){return _.forEach(values,function(value,uri){widgets.has(uri)&&widgets.get(uri).setValue(value)}),this},serializeValues:function(){var values=[],_iterator7=_createForOfIteratorHelper(
widgets.values());try{for(_iterator7.s();!(widget=_iterator7.n()).done;){var widget=widget.value;values.push({name:widget.getUri(),value:widget.getValue()})}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}return values},validate:function(){var _step8,_this5=this,promises=[],_iterator8=_createForOfIteratorHelper(widgets);try{for(_iterator8.s();!(_step8=_iterator8.n()).done;)!function(){var widget=_slicedToArray(_step8.value,2),uri=widget[0],widget=widget[1];promises.push(widget.validate().catch(function(messages){return Promise.resolve({uri:uri,messages:messages})}))}()}catch(err){_iterator8.e(err)}finally{_iterator8.f()}return Promise.all(promises
).then(function(result){var invalid=!1;return(result=_.compact(result)).length&&(result=Promise.reject(result),invalid=!0),_this5.setState("invalid",invalid),result})},submit:function(){var _this6=this;return this.validate().then(function(){_this6.trigger("submit",_this6.serializeValues())}).catch(function(reason){_this6.trigger("invalid",reason),reason instanceof Error&&_this6.trigger("error",reason)}),this},reset:function(){var _step9,_iterator9=_createForOfIteratorHelper(widgets.values());try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){_step9.value.reset()}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}return this.trigger("reset"),this}},
defaults).setTemplate(formTpl).on("init",function(){var _this7=this;_.defer(function(){return _this7.render(container)})}).on("render",function(){var _this8=this,$element=this.getElement(),initConfig=this.getConfig(),initPromises=[];(controls={$title:$element.find(".form-title"),$form:$element.find("form"),$widgets:$element.find("fieldset"),$buttons:$element.find(".form-actions")}).$form.on("submit",function(e){e.preventDefault(),_this8.submit()}),controls.$form.on("reset",function(e){e.preventDefault(),_this8.reset()}),hider.toggle(controls.$title,!!initConfig.title),_.size(initConfig.widgets)&&initPromises.push(this.setWidgets(initConfig.widgets)),_.size(
initConfig.buttons)&&initPromises.push(this.setButtons(initConfig.buttons)),Promise.all(initPromises).then(function(){_.size(initConfig.values)&&_this8.setValues(initConfig.values)}).catch(function(err){_this8.trigger("error",err)}).then(function(){_this8.trigger("ready")})}).on("disable",function(){disableComponents(widgets),disableComponents(buttons)}).on("enable",function(){enableComponents(widgets),enableComponents(buttons)}).on("destroy",function(){this.removeButtons(),this.removeWidgets(),controls=null});return _.defer(function(){return form.init(config)}),form}}),define("ui/form/simpleForm",["lodash","i18n","ui/form/form"],function(_,__,formFactory){
"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,formFactory=formFactory&&Object.prototype.hasOwnProperty.call(formFactory,"default")?formFactory.default:formFactory;var defaultConfig={submitText:__("Save"),submitIcon:"save",resetText:__("Reset"),resetIcon:"reset",submit:!0,reset:!0};return function(container,config){return(config=_.merge({},defaultConfig,config)).buttons=config.buttons||[],config.reset&&config.buttons.push({type:"neutral",id:"reset",label:config.resetText,icon:config.resetIcon}),config.submit&&config.buttons.push({type:"info",id:"submit",
label:config.submitText,icon:config.submitIcon}),formFactory(container,config).on("button-submit",function(){this.submit()}).on("button-reset",function(){this.reset()})}}),define("css!ui/form/css/dropdownForm",[],function(){}),define("ui/form/dropdownForm",["lodash","i18n","ui/component","ui/button","ui/form/simpleForm","handlebars","lib/dompurify/purify","css!ui/form/css/dropdownForm.css"],function(_,__,componentFactory,buttonFactory,formFactory,Handlebars,DOMPurify,dropdownForm_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,buttonFactory=buttonFactory&&Object.prototype.hasOwnProperty.call(buttonFactory,"default")?buttonFactory.default:buttonFactory,
formFactory=formFactory&&Object.prototype.hasOwnProperty.call(formFactory,"default")?formFactory.default:formFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),
'<div class="dropdown-form">\n <div class="trigger-button"></div>\n <div class="form-panel"></div>\n</div>\n'});function dropdownFormTpl(data,html,asString){html=Template(data,html);return html}var defaults={triggerIcon:null,triggerText:__("Form"),submitIcon:null,submitText:__("Submit")};return function(container,config){var form=null,button=null,controls=null,dropdownForm=componentFactory({getForm:function(){return form},setFormWidgets:function(widgets){return this.is("rendered")&&form?form.setWidgets(widgets):Promise.reject(new Error("The form is not rendered"))},getFormValues:function(){return this.is("rendered")?form.getValues():{}},
setFormValues:function(values){return this.is("rendered")&&form.setValues(values),this},openForm:function(){return this.setState("open",!0),this.is("rendered")&&(this.getContainer().width()<this.getElement().position().left+controls.$form.width()?(this.setState("open-on-left",!1),this.setState("open-on-right",!0)):(this.setState("open-on-left",!0),this.setState("open-on-right",!1)),this.trigger("open")),this},closeForm:function(){return this.setState("open",!1),this.setState("open-on-left",!1),this.setState("open-on-right",!1),this.is("rendered")&&this.trigger("close"),this}},defaults).setTemplate(dropdownFormTpl).on("init",function(){var _this=this;_.defer(
function(){return _this.render(container)})}).on("render",function(){var _this2=this,buttonConfig=this.getConfig(),formConfig=_.defaults({reset:!1},buttonConfig),buttonConfig={id:"trigger",type:"info",label:buttonConfig.triggerText,icon:buttonConfig.triggerIcon};controls={$trigger:this.getElement().find(".trigger-button"),$form:this.getElement().find(".form-panel")},button=buttonFactory(buttonConfig).on("click",function(){_this2.is("open")?_this2.closeForm():_this2.openForm()}).render(controls.$trigger),form=formFactory(controls.$form,formConfig).spread(this,"ready change submit invalid error")}).on("ready",function(){this.is("open")&&this.openForm()}).on(
"submit",function(){this.closeForm()}).on("disable",function(){this.is("open")&&this.closeForm(),this.is("rendered")&&(button.disable(),form.disable())}).on("enable",function(){this.is("rendered")&&(button.enable(),form.enable())}).on("destroy",function(){button.destroy(),form.destroy(),controls=form=button=null});return _.defer(function(){return dropdownForm.init(config)}),dropdownForm}}),define("ui/formValidator/highlighters/message",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var defaultOptions={errorClass:"error",errorMessageClass:"validate-error"};return function(options){return options=_.merge(
defaultOptions,options),{highlight:function($field,message){this.unhighlight($field),$field.addClass(options.errorClass),$field.after("<span class='"+options.errorMessageClass+"'>"+message+"</span>")},unhighlight:function($field){$field.removeClass(options.errorClass),$field.next("."+options.errorMessageClass).remove()},destroy:function(){}}}}),define("ui/formValidator/highlighters/tooltip",["lodash","ui/tooltip"],function(_,tooltip){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,tooltip=tooltip&&Object.prototype.hasOwnProperty.call(tooltip,"default")?tooltip.default:tooltip;var defaultOptions={tooltip:{trigger:"manual"}}
;return function(options){return options=_.merge(defaultOptions,options),{highlight:function($field,fieldTooltip){fieldTooltip=tooltip.error($field,fieldTooltip,options.tooltip);fieldTooltip.show(),$field.data("$tooltip",fieldTooltip),$field.addClass(options.errorClass)},unhighlight:function($field){$field.removeClass(options.errorClass),$field.data("$tooltip").dispose(),$field.removeData("$tooltip")},destroy:function($field){$field.data("$tooltip")&&($field.data("$tooltip").dispose(),$field.removeData("$tooltip"))}}}}),define("ui/formValidator/highlighters/highlighter",["jquery","ui/formValidator/highlighters/message","ui/formValidator/highlighters/tooltip"
],function($,messageHighlighter,tooltipHighlighter){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,messageHighlighter=messageHighlighter&&Object.prototype.hasOwnProperty.call(messageHighlighter,"default")?messageHighlighter.default:messageHighlighter,tooltipHighlighter=tooltipHighlighter&&Object.prototype.hasOwnProperty.call(tooltipHighlighter,"default")?tooltipHighlighter.default:tooltipHighlighter;var defaultOptions={type:"message"};function highlighterFactory(options){var provider;return{init:function(){return options=$.extend(!0,defaultOptions,options),provider=function(options){if(
highlighterFactory.providers[options.type])return highlighterFactory.providers[options.type](options);throw new TypeError("Provider "+name+" is not registered.")}(options),this},highlight:function($field,message){provider.highlight($field,message)},unhighlight:function($field){provider.unhighlight($field)},destroy:function($field){provider.destroy($field)}}.init()}return highlighterFactory.providers={},highlighterFactory.register=function(name,provider){highlighterFactory.providers[name]=provider},highlighterFactory.register("message",messageHighlighter),highlighterFactory.register("tooltip",tooltipHighlighter),highlighterFactory}),define(
"ui/validator/Report",[],function(){"use strict";var Report=function(type,data){this.type=type,this.data=data};return Report.prototype.isError=function(){return"failure"===this.type||"error"===this.type},Report}),define("ui/validator/validators",["jquery","lodash","i18n","util/url","util/urlParser"],function($,_,__,urlUtil,UrlParser){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,urlUtil=urlUtil&&Object.prototype.hasOwnProperty.call(urlUtil,"default")?urlUtil.default:urlUtil,
UrlParser=UrlParser&&Object.prototype.hasOwnProperty.call(UrlParser,"default")?UrlParser.default:UrlParser;var validators={numeric:{name:"numeric",message:__("The value of this field must be numeric"),options:{},validate:function(value,callback){var r=parseFloat(value),r=r.toString()===value.toString()&&_.isNumber(r)&&!_.isNaN(r);"function"==typeof callback&&callback.call(null,r)}},notEmpty:{name:"notEmpty",message:__("this is required"),options:{},validate:function(r,callback){r=!!_.isNumber(r)||!_.isEmpty(r);"function"==typeof callback&&callback.call(null,r)}},pattern:{name:"pattern",message:__("does not match"),options:{pattern:"",modifier:"igm"},
validate:function(value,callback,r){r=new RegExp(r.pattern,r.modifier||""),r=null!==value.match(r);return"function"==typeof callback&&callback.call(null,r),r}},length:{name:"length",message:__("required length"),options:{min:0,max:0},validate:function(value,callback,options){var r=!1;value.length>=options.min&&(r=!options.max||value.length<=options.max),"function"==typeof callback&&callback.call(null,r)}},fileExists:{name:"fileExists",message:__("no file not found in this location"),options:{baseUrl:""},validate:function(value,callback,options){var isHttp;value?(isHttp="http:"===(isHttp=new UrlParser(value).get("protocol"))||"https:"===isHttp,
urlUtil.isAbsolute(value)&&isHttp||urlUtil.isBase64(value)?callback(!0):$.ajax({type:"HEAD",url:options.baseUrl+encodeURIComponent(value),success:function(){callback(!0)},error:function(){callback(!1)}})):callback(!1)}},validRegex:{name:"validRegex",message:__("invalid regular expression"),options:{},validate:function(value,callback){if("function"==typeof callback){var valid=!1;if(""!==value)try{new RegExp("^"+value+"$"),valid=!0}catch(e){valid=!1}else valid=!0;callback(valid)}}}};return{validators:validators,register:function(name,validator,force){if(_.isPlainObject(name)&&name.name&&!validator&&(name=(validator=name).name),!_.isString(name)||_.isEmpty(name
))throw new Error("Please name your validator");if(!_.isObject(validator)||!_.isString(validator.message)||!_.isFunction(validator.validate))throw new Error("A validator must be an object with a message and a validate method, but given : "+JSON.stringify(validator));validators[name]&&!force||(validators[name]=validator)}}}),define("ui/validator/Validator",["lodash","async","ui/validator/Report","ui/validator/validators"],function(_,async,Report,validators){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,async=async&&Object.prototype.hasOwnProperty.call(async,"default")?async.default:async,
Report=Report&&Object.prototype.hasOwnProperty.call(Report,"default")?Report.default:Report,validators=validators&&Object.prototype.hasOwnProperty.call(validators,"default")?validators.default:validators;var _defaultOptions={lazy:!1},Validator=function(rules,options){this.options=_.merge(_.cloneDeep(_defaultOptions),options),this.rules=[],this.addRules(rules)};return Validator.getDefaultOptions=function(){return _.clone(_defaultOptions)},Validator.prototype.validate=function(value,arg1,arg2){var callback,callstack=[],options=_.cloneDeep(this.options);return _.isFunction(arg1)?callback=arg1:_.isObject(arg1)&&(_.merge(options,arg1),_.isFunction(arg2)&&(
callback=arg2)),_.each(this.rules,function(rule){var message,validatorOptions={};callstack.push(function(cb){!function(value,rule,callback,options){options=_.merge(_.cloneDeep(rule.options),options),rule.validate(value,callback,options)}(value,rule,function(report){report?cb(null,new Report("success",{validator:rule.name})):(message=rule.options.message||rule.message,report=new Report("failure",{validator:rule.name,message:message}),options.lazy?cb(new Error("lazy mode"),report):cb(null,report))},validatorOptions)})}),async.series(callstack,function(err,results){_.isFunction(callback)&&callback(results)}),this},Validator.prototype.addRule=function(rule){
var _rules=validators.validators;return _.isString(rule)&&_rules[rule]?this.rules.push(_rules[rule]):(rule=function(rule){var ret=null,_rules=validators.validators;return _.isString(rule)&&_rules[rule]?ret=_rules[rule]:_.isObject(rule)&&rule.name&&(_rules[rule.name]?ret=_.merge(_.cloneDeep(_rules[rule.name]),rule):rule.message&&_.isFunction(rule.validate)&&(ret=rule)),ret}(rule))&&this.rules.push(rule),this},Validator.prototype.addRules=function(rules){var _this=this;return _.each(rules,function(rule){_this.addRule(rule)}),this},Validator}),define("ui/validator",["jquery","lodash","ui/validator/Report","ui/validator/Validator"],function($,_,Report,Validator
){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function isCreated($elt){return"object"===_typeof($elt.data("validator-config"))}$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Report=Report&&Object.prototype.hasOwnProperty.call(Report,"default")?Report.default:Report,Validator=Validator&&Object.prototype.hasOwnProperty.call(Validator,"default"
)?Validator.default:Validator,$.fn.validator=function(options,arg1,arg2){var ret,opts={},method="",args=[];return"object"===_typeof(options)?opts=$.extend({},$.fn.validator.defaults,options):void 0===options?opts=$.extend({},$.fn.validator.defaults):"string"==typeof options&&"function"==typeof methods[options]&&(method=options,args=Array.prototype.slice.call(arguments,1)),this.each(function(){var $this=$(this);isCreated($this)||create($this,opts),method&&(isCreated($this)?ret=methods[method].apply($(this),args):$.error("call of method of validator when it is not initialized"))}),void 0===ret?this:ret},$.fn.validator.defaults={allowEmpty:!1,validator:{lazy:!1
}};var methods={destroy:function(){_destroy($(this))},validate:function(arg1,arg2){var callback,options={};_.isFunction(arg1)?callback=arg1:_.isObject(arg1)&&(_.merge(options,arg1),_.isFunction(arg2)&&(callback=arg2)),_validate($(this),callback,options)},getValidator:function(){return $(this).data("validator-instance")}},tokenize=function(tokens){var ret=[],tokens=tokens.split(/;/);return _.each(tokens,function(rightStr){rightStr=$.trim(rightStr);var key,options={},rightStr=rightStr.replace(/\$(\w*)/,function($0,k){return key=k,""});key&&(rightStr.replace(/^\((.*)\)$/,"$1").replace(/(\w+)=((\"(\\.|[^\"])*\")|(\'(\\.|[^\'])*\')),?/g,function($0,optionName,
optionValue){return optionValue=optionValue.replace(/^["'](.*)["']$/g,"$1"),options[optionName]=optionValue,""}).replace(/(\w*)=([^\s]*)(,)?/g,function($0,optionName,optionValue){","===optionValue.charAt(optionValue.length-1)&&(optionValue=optionValue.substring(0,optionValue.length-1)),options[optionName]=optionValue}),ret.push({name:key,options:options}))}),ret},create=function($elt,options){var rules;isCreated($elt)||(rules=function(rulesStr){rulesStr=rulesStr.data("validate");return rulesStr?tokenize(rulesStr):{}}($elt),options.rules&&(rules=_.merge(rules,options.rules),delete options.rules),options=_.merge(options,function(optionsArray){
var optionsArray=optionsArray.data("validate-option"),optionsArray=optionsArray?tokenize(optionsArray):{},availableCoreValidatorOptions=_.keys(Validator.getDefaultOptions()),options=_.clone($.fn.validator.defaults);return _.each(optionsArray,function(optionArray){0<=_.indexOf(availableCoreValidatorOptions,optionArray.name)?options.validator[optionArray.name]=optionArray.options:options[optionArray.name]=optionArray.options}),options}($elt)||{}),$elt.data("validator-config",_.clone(options)),createValidator($elt,rules,options))},_destroy=function($elts){$elts.removeData("validator-instance validator-config"),$elts.off(".validator")},createValidator=function(
$elt,rules,options){$elt.data("validator-instance",new Validator(rules,options.validator||{})),options.event&&bindEvents($elt,options)},bindEvents=function($elt,options){var events=_.isArray(options.event)?options.event:[options.event];0<events.length&&_.isFunction(options.validated)&&_.forEach(events,function(event){switch(_.isString(event)&&(event={type:event}),event.type){case"keyup":case"keydown":$elt.on(event.type,function(){var v=$elt.val();(!event.length||v&&v.length>event.length)&&_validate($elt,options.validated,{})});break;case"change":case"blur":$elt.on(event.type,function(){_validate($elt,options.validated,{})});break;default:$.error(
"unknown event type to be bound to validation : "+event.type)}})},_validate=function($elt,callback,options){var value=$elt.val(),execCallback=function(results){var valid;$elt.trigger("validated",{elt:$elt[0],results:results}),_.isFunction(callback)&&(valid=0===_.where(results,{type:"failure"}).length,callback.call($elt[0],valid,results))};$elt.data("validator-config").allowEmpty&&""===value?execCallback([new Report("success",{validator:"allowEmpty"})]):$elt.data("validator-instance").validate(value,options||{},execCallback)}}),define("ui/formValidator/formValidator",["jquery","lodash","ui/formValidator/highlighters/highlighter","ui/validator"],function($,_,
highlighterFactory,validator){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,highlighterFactory=highlighterFactory&&Object.prototype.hasOwnProperty.call(highlighterFactory,"default")?highlighterFactory.default:highlighterFactory;var defaultOptions={highlighter:{type:"message",errorClass:"error"},container:$(document),selector:"[data-validate]",validateOnInit:!1,events:["change","blur"]};return function(options){var highlighter,$toValidate,validator,state={valid:!0,errors:[]};function afterFieldValidate($field,valid,firstErrorData){
state.valid=state.valid&&valid,valid?highlightField($field,!0):(highlightField($field,!1,(firstErrorData=_.pluck(_.filter(firstErrorData,{type:"failure"}),"data")[0]).message),state.errors.push($.extend(!0,{field:$field},firstErrorData)))}function highlightField($field,success,message){highlighter=function(){_.isUndefined(highlighter)&&(highlighter=highlighterFactory(validator.options.highlighter));return highlighter}(),success?highlighter.unhighlight($field):highlighter.highlight($field,message)}function getFieldsToValidate(){var $container;return _.isUndefined($toValidate)&&($container=validator.getContainer(),$toValidate=$container.find(
validator.options.selector)),$toValidate}return(validator={init:function(){return this.options=_.defaults(options||{},defaultOptions),($toValidate=getFieldsToValidate()).validator({event:this.options.events,validated:function(valid,report){afterFieldValidate($(this),valid,report)}}),options.validateOnInit&&this.validate(),this},validate:function(){return $toValidate=getFieldsToValidate(),state={valid:!0,errors:[]},$toValidate.validator("validate",function(valid,report){afterFieldValidate($(this),valid,report)}),state.valid},getState:function(){return state},destroy:function(){getFieldsToValidate().each(function(){highlighter&&highlighter.destroy($(this))})},
getContainer:function(){var $container=this.options.container&&this.options.container.length?this.options.container:$(document);return $container}}).init()}}),define("ui/groupedComboBox",["jquery","lodash","i18n","ui/component","handlebars","lib/dompurify/purify","select2"],function($$1,_,__,component,Handlebars,DOMPurify,select2){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){
return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(
fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,
depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",functionType="function",escapeExpression=this.escapeExpression;return buffer+='<span class="cascading-combo-box">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.comboboxLabel,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+="<label>",stack1=(stack1=helpers.comboboxLabel)||typeof(stack1=depth0&&depth0.comboboxLabel)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</label>"},data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+='\n <select class="" data-id="',stack1=(helper=helpers.comboboxId)||typeof(helper=depth0&&depth0.comboboxId)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-has-search="false">\n <option></option>\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.options,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <option value="',stack1=(helper=helpers.id)||typeof(helper=depth0&&depth0.id)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'" data-categories="',stack1=(helper=helpers.categories)||typeof(helper=depth0&&depth0.categories)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</option>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </select>\n</span>"});var selectedValues={};function createCombobox(level,categoriesDefinitions,data,selected){if(!categoriesDefinitions[level]||!data[level])throw"missing category definition on level : "+level
;selected=selected||[];var $comboBox,html,categoryDef=categoriesDefinitions[level];if(categoryDef.id)return($comboBox=$$1((data={comboboxId:categoryDef.id,comboboxLabel:categoryDef.label||"",options:data[level]},html=Template(data,html)))).find("select").val(selected[level]||""),$comboBox.on("change",function(){var $selected=$comboBox.find(":selected");selectedValues[categoryDef.id]=$selected.val(),$comboBox.trigger("selected.cascading-combobox",[selectedValues])}),$comboBox.find("select").select2({allowClear:!0,dropdownAutoWidth:!0,placeholder:categoryDef.placeholder||__("select..."),minimumResultsForSearch:-1}),$comboBox}return function(options){
return component().on("render",function($container){_.isArray(options.categoriesDefinitions)&&_.isArray(options.categories)&&options.categoriesDefinitions.forEach(function(k,$comboBox){$comboBox=createCombobox($comboBox,options.categoriesDefinitions,options.categories,options.selected);$container.append($comboBox)})}).init(options)}}),define("ui/groupvalidator",["jquery","lodash","ui/validator"],function($,_,validator){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,$.fn.groupValidator=function(options){return options=_.defaults(options||{},
$.fn.groupValidator.defaults),this.each(function(){var $container=options.$container=$(this),states=[],callback=function(valid,results){var $elt=$(this);states[$elt.attr("name")]=valid,options.callback.call(this,valid,results,options),$elt.trigger("validated.single",[valid]),$container.trigger("validated.group",[!1===_(states).values().contains(!1),this])},$toValidate=$("[data-validate]",$container).validator({event:options.events,validated:callback});options.validateOnInit&&$toValidate.validator("validate",{},callback)})},$.fn.groupValidator.defaults={validateOnInit:!1,errorClass:"error",errorMessageClass:"validate-error",events:["change","blur"],
callback:function(valid,rule,options){var $elt=$(this);$elt.siblings("."+options.errorMessageClass).remove(),!1===valid?(rule=_.where(rule,{type:"failure"})[0],$elt.addClass(options.errorClass),rule&&rule.data.message&&$elt.after("<span class='"+options.errorMessageClass+"'>"+rule.data.message+"</span>")):$elt.removeClass(options.errorClass)}}}),define("ui/highlighter",["lodash","jquery"],function(_,$){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var GROUP_ATTR="data-hl-group",defaultBlackList=["textarea","math","script",".select2-container"];return function(options){var className=options.className,containerSelector=options.containerSelector,keepEmptyNodes=options.keepEmptyNodes,highlightingClasses=[className];options.colors&&(highlightingClasses=Object.values(options.colors));var containersBlackList=_.union(defaultBlackList,options.containersBlackList),
containersBlackListSelector=containersBlackList.join(", "),containersWhiteListSelector=null,containersBlackAndWhiteListSelector=containersBlackListSelector;options.keepEmptyNodes&&options.containersWhiteList&&(containersWhiteListSelector=options.containersWhiteList.join(", "),containersBlackAndWhiteListSelector=_.union(containersBlackList,options.containersWhiteList).join(", "));var currentGroupId,textNodesIndex,isWrapping=!1,hasWrapped=!1;function getContainer(){return $(containerSelector).get(0)}function getHighlightedNodes(){return $(containerSelector).find(".".concat(highlightingClasses.join(",.")))}function addSplitData(node,beforeWasSplit,afterWasSplit
){node.dataset.beforeWasSplit=beforeWasSplit,node.dataset.afterWasSplit=afterWasSplit}function highlightContainerNodes(textNode,activeClass,selectedRange,currentGroupId){var container=textNode.parentNode,isSelectionCoversNodeEnd=new Range;isSelectionCoversNodeEnd.selectNodeContents(textNode);var isSelectionCoversNodeStart=0===isSelectionCoversNodeEnd.compareBoundaryPoints(Range.START_TO_START,selectedRange),isSelectionCoversNodeEnd=0===isSelectionCoversNodeEnd.compareBoundaryPoints(Range.END_TO_END,selectedRange);isSelectionCoversNodeStart&&isSelectionCoversNodeEnd?textNode.parentNode.className=activeClass:isSelectionCoversNodeStart?(textNode.splitText(
selectedRange.endOffset),wrapContainerChildNodes(container,0,activeClass,currentGroupId)):(isSelectionCoversNodeEnd?textNode.splitText(selectedRange.startOffset):textNode.splitText(selectedRange.startOffset).splitText(selectedRange.endOffset),wrapContainerChildNodes(container,1,activeClass,currentGroupId))}function wrapContainerChildNodes(container,indexToWrapNode,activeClass,currentGroupId){var containerClass=container.className,fragment=new DocumentFragment,childNodesLength=container.childNodes.length;container.childNodes.forEach(function(wrapperNode,index){wrapperNode=wrapNode(wrapperNode.cloneNode(),index===indexToWrapNode?activeClass:containerClass,
currentGroupId);fragment.appendChild(wrapperNode),keepEmptyNodes&&addSplitData(wrapperNode,0!==index||container.dataset.beforeWasSplit,index!==childNodesLength-1||container.dataset.afterWasSplit)}),container.replaceWith(fragment)}function wrapTextNode(node,groupId){return isWrapping&&!isWrappingNode(node.parentNode)&&isWrappable(node)?($(node).wrap(getWrapper(groupId)),node.parentNode):null}function willHighlightNotBeEmptyAfterMerge(nextNode){if(nextNode.textContent.length){if(nextNode.textContent.trim().length)return 1;var prevNode=nextNode.previousSibling;if(prevNode&&isWrappingNode(prevNode)&&prevNode.className===className)return 1
;nextNode=nextNode.nextSibling;return!!(nextNode&&isWrappingNode(nextNode)&&nextNode.className===className)}}function rangeSurroundContentsNoEmptyNodes(range,wrapperNode){var containerPreviousSibling=range.commonAncestorContainer.previousSibling,containerNextSibling=range.commonAncestorContainer.nextSibling;range.surroundContents(wrapperNode),removeEmptyTextNodeIfDifferent(wrapperNode.previousSibling,containerPreviousSibling),removeEmptyTextNodeIfDifferent(wrapperNode.nextSibling,containerNextSibling)}function removeEmptyTextNodeIfDifferent(node,nodeToCompare){node&&node!==nodeToCompare&&isText(node)&&0===node.textContent.length&&node.remove()}
function clearSingleHighlight(text){var nodeToRemoveText,beforeWasSplit,afterWasSplit,prevNode,nextNode,$wrapped;keepEmptyNodes?(nodeToRemoveText=($wrapped=text.target).textContent,beforeWasSplit="true"===$wrapped.dataset.beforeWasSplit,afterWasSplit="true"===$wrapped.dataset.afterWasSplit,prevNode=$wrapped.previousSibling,nextNode=$wrapped.nextSibling,beforeWasSplit&&prevNode&&isText(prevNode)&&prevNode.textContent?(prevNode.textContent+=nodeToRemoveText,$wrapped.remove(),afterWasSplit&&prevNode.nextSibling&&isText(prevNode.nextSibling)&&prevNode.nextSibling.textContent&&(prevNode.textContent+=prevNode.nextSibling.textContent,prevNode.nextSibling.remove())
):afterWasSplit&&nextNode&&isText(nextNode)&&nextNode.textContent?(nextNode.textContent=nodeToRemoveText+nextNode.textContent,$wrapped.remove()):nodeToRemoveText?$wrapped.replaceWith(document.createTextNode(nodeToRemoveText)):$wrapped.remove()):""===(text=($wrapped=$(text.target)).text())?$wrapped.remove():$wrapped.replaceWith(text)}var getColorByClassName=function(highlighterClassName){return options.colors?(object=options.colors,value=highlighterClassName,Object.keys(object).find(function(key){return object[key]===value})):className;var object,value},getClassNameByColor=function(color){
return options.colors&&options.colors[color]?options.colors[color]:className};function isWrappingNode(node){return isElement(node)&&"span"===node.tagName.toLowerCase()&&highlightingClasses.includes(node.className)}function isWrappable(node){return isText(node)&&!isBlacklisted(node)}function isBlacklisted(closest){closest=$(closest).closest(containersBlackAndWhiteListSelector);return closest.length&&(!containersWhiteListSelector||!closest.get(0).matches(containersWhiteListSelector))}function wrapNode(textNode,element,groupId){element=getWrapper(groupId,element);return element.appendChild(textNode),element}function getWrapper(groupId,wrapperClass){
var wrapper=document.createElement("span");return wrapper.className=wrapperClass||className,wrapper.setAttribute(GROUP_ATTR,"".concat(groupId)),wrapper}function isElement(node){return node&&"object"===_typeof(node)&&node.nodeType===window.Node.ELEMENT_NODE}function isText(node){return node&&"object"===_typeof(node)&&node.nodeType===window.Node.TEXT_NODE}function isHotNode(node){return isWrappingNode(node)||isWrappable(node)}return{highlightRanges:function(ranges){ranges.forEach(function(range){var rangeInfos;!function(range){try{return($.contains(getContainer(),range.commonAncestorContainer)||getContainer().isSameNode(range.commonAncestorContainer)
)&&!range.collapsed}catch(e){return!1}}(range)||(currentGroupId=function(){var id=currentGroupId||1;for(;0!==$(getContainer()).find("[data-hl-group="+id+"]").length;)id++;return id}(),isWrappable(range.commonAncestorContainer)&&!isWrappingNode(range.commonAncestorContainer.parentNode)?(rangeInfos=getWrapper(currentGroupId),keepEmptyNodes?(addSplitData(rangeInfos,0<range.startOffset,range.endOffset<range.commonAncestorContainer.length),rangeSurroundContentsNoEmptyNodes(range,rangeInfos)):range.surroundContents(rangeInfos)):isWrappable(range.commonAncestorContainer)&&isWrappingNode(range.commonAncestorContainer.parentNode
)&&range.commonAncestorContainer.parentNode!==className?highlightContainerNodes(range.commonAncestorContainer,className,range,currentGroupId):(rangeInfos={startNode:isElement(range.startContainer)?range.startContainer.childNodes[range.startOffset]:range.startContainer,startNodeContainer:range.startContainer,startOffset:range.startOffset,endNode:isElement(range.endContainer)&&0<range.endOffset?range.endContainer.childNodes[range.endOffset-1]:range.endContainer,endNodeContainer:range.endContainer,endOffset:range.endOffset,commonRange:range},hasWrapped=isWrapping=!1,function wrapTextNodesInRange(rootNode,rangeInfos){var childNodes=rootNode.childNodes
;var currentNode,i;var splitDatas=[];for(i=0;i<childNodes.length&&!hasWrapped;i++){var splitData,wrapperNode=isText(currentNode=childNodes[i])&&isWrappingNode(currentNode.parentNode)&&currentNode.parentNode.className!==className;if(wrapperNode?((splitData=new Range).selectNodeContents(currentNode),rangeInfos.startNode===currentNode&&splitData.setStart(currentNode,rangeInfos.startOffset),rangeInfos.endNode===currentNode&&splitData.setEnd(currentNode,rangeInfos.endOffset),rangeInfos.commonRange.isPointInRange(currentNode,splitData.endOffset)&&(isWrapping=!0,highlightContainerNodes(currentNode,className,splitData,currentGroupId))):(currentNode.isSameNode(
rangeInfos.startNode)&&(isText(rangeInfos.startNodeContainer)&&0!==rangeInfos.startOffset?(rangeInfos.startNode=currentNode.splitText(rangeInfos.startOffset),rangeInfos.startOffset=0,splitDatas.push({node:rangeInfos.startNode,beforeWasSplit:!0,afterWasSplit:!1})):(isWrapping=!0,splitDatas.push({node:currentNode,beforeWasSplit:!1,afterWasSplit:!1}))),currentNode.isSameNode(rangeInfos.endNode)&&isText(rangeInfos.endNodeContainer)&&(0!==rangeInfos.endOffset?rangeInfos.endOffset<currentNode.textContent.length?(currentNode.splitText(rangeInfos.endOffset),splitDatas.push({node:currentNode,beforeWasSplit:!1,afterWasSplit:!0})):splitDatas.push({node:currentNode,
beforeWasSplit:!1,afterWasSplit:!1}):isWrapping=!1),isText(currentNode)?keepEmptyNodes?!willHighlightNotBeEmptyAfterMerge(currentNode)||(wrapperNode=wrapTextNode(currentNode,currentGroupId))&&(splitData=splitDatas.find(function(d){return d.node===currentNode}),addSplitData(wrapperNode,!!splitData&&splitData.beforeWasSplit,!!splitData&&splitData.afterWasSplit)):wrapTextNode(currentNode,currentGroupId):isElement(currentNode)&&(!currentNode.isSameNode(rangeInfos.endNode)||0<rangeInfos.endOffset)&&wrapTextNodesInRange(currentNode,rangeInfos)),currentNode.isSameNode(rangeInfos.endNode)){hasWrapped=!(isWrapping=!1);break}}}(range.commonAncestorContainer,rangeInfos
))),keepEmptyNodes||range.commonAncestorContainer.normalize(),currentGroupId=0,isWrapping=!1,function reindexGroups(rootNode){if(!rootNode)return;var childNodes=rootNode.childNodes;var i,currentNode,parent;for(i=0;i<childNodes.length;i++)isWrappable(currentNode=childNodes[i])?isWrappingNode(parent=currentNode.parentNode)?(!1===isWrapping&&currentGroupId++,isWrapping=!0,parent.setAttribute(GROUP_ATTR,currentGroupId)):isWrapping=!1:isElement(currentNode)&&reindexGroups(currentNode)}(getContainer()),function mergeAdjacentWrappingNodes(rootNode){if(!rootNode)return;var childNodes=rootNode.childNodes;var i,currentNode;for(i=0;i<childNodes.length;i++)if(
isWrappingNode(currentNode=childNodes[i]))for(keepEmptyNodes&&currentNode.normalize();isWrappingNode(currentNode.nextSibling)&&currentNode.className===currentNode.nextSibling.className;)keepEmptyNodes&&currentNode.nextSibling.normalize(),currentNode.firstChild.textContent+=currentNode.nextSibling.firstChild.textContent,keepEmptyNodes&&addSplitData(currentNode,currentNode.dataset.beforeWasSplit,currentNode.nextSibling.dataset.afterWasSplit),currentNode.parentNode.removeChild(currentNode.nextSibling);else isElement(currentNode)&&mergeAdjacentWrappingNodes(currentNode)}(getContainer()),getHighlightedNodes().each(function(index,node){
var nodeContent=node.textContent;0===nodeContent.trim().length&&(0!==nodeContent.length&&!/\r|\n/.exec(nodeContent)||clearSingleHighlight({target:node}))})}),options.clearOnClick&&$(containerSelector+" ."+className).off("click").on("click",clearSingleHighlight)},highlightFromIndex:function(highlightIndex){var rootNode=getContainer();rootNode&&(keepEmptyNodes?function(rootNode,highlightModel){if(!highlightModel)return;for(var currentModel,k=0;k<highlightModel.length;k++){currentModel=highlightModel[k];var childNodes=void 0,indexInModel=void 0,currentParentNode=rootNode,pathNotFound=!1;if(currentModel.path&&currentModel.path.length){for(
var m=0;m<currentModel.path.length;m++)if(childNodes=Array.from(currentParentNode.childNodes).filter(function(node){return!(isText(node)&&!node.textContent.length)}),indexInModel=currentModel.path[m],!(currentParentNode=childNodes[indexInModel])&&m<currentModel.path.length-1){pathNotFound=!0;break}if(!pathNotFound){var nodeAtIndex=null;if(currentModel.offsetBefore){var range=childNodes[indexInModel-1];if(!range||!isText(range)||range.textContent.length<=currentModel.offsetBefore||isBlacklisted(range))continue;nodeAtIndex=range.splitText(currentModel.offsetBefore)}else if(!(nodeAtIndex=childNodes[indexInModel])||!isText(nodeAtIndex)||isBlacklisted(nodeAtIndex
))continue;nodeAtIndex.textContent.length>currentModel.textLength&&nodeAtIndex.splitText(currentModel.textLength);var wrapperNode=getWrapper(currentModel.groupId,getClassNameByColor(currentModel.c));addSplitData(wrapperNode,currentModel.beforeWasSplit,currentModel.afterWasSplit),(range=document.createRange()).selectNodeContents(nodeAtIndex),rangeSurroundContentsNoEmptyNodes(range,wrapperNode)}}}}(rootNode,highlightIndex):(rootNode.normalize(),textNodesIndex=0,function restoreHighlight(rootNode,highlightIndex){var childNodes=rootNode.childNodes;var i,currentNode,parent;var nodeInfos,range,nodesToSkip;for(i=0;i<childNodes.length;i++)isBlacklisted(
currentNode=childNodes[i])||(isWrappable(currentNode)?(parent=currentNode.parentNode,nodesToSkip=parent.childNodes.length,!0===(nodeInfos=highlightIndex[textNodesIndex]).highlighted&&(_.isArray(nodeInfos.inlineRanges)?(nodeInfos.inlineRanges.reverse(),nodeInfos.inlineRanges.forEach(function(inlineRange){(range=document.createRange()).setStart(currentNode,inlineRange.startOffset||0),range.setEnd(currentNode,inlineRange.endOffset||currentNode.textContent.length),range.surroundContents(getWrapper(inlineRange.groupId,getClassNameByColor(inlineRange.c)))})):((range=document.createRange()).selectNodeContents(currentNode),range.surroundContents(getWrapper(
nodeInfos.groupId,getClassNameByColor(nodeInfos.c)))),nodesToSkip=parent.childNodes.length-nodesToSkip,i+=nodesToSkip),textNodesIndex++):isElement(currentNode)&&restoreHighlight(currentNode,highlightIndex))}(rootNode,highlightIndex)))},getHighlightIndex:function(){var rootNode=getContainer();if(keepEmptyNodes)return rootNode?function(rootNode){var wrapperNodesSelector=(options.colors?Object.values(options.colors):[className]).map(function(cls){return containerSelector+" ."+cls}).join(", "),wrapperNodes=document.querySelectorAll(wrapperNodesSelector);if(!wrapperNodes.length)return null;for(var highlightModel=[],indexCache=new Map,k=0;k<wrapperNodes.length;k++
){var wrapperNode=wrapperNodes[k],offsetBefore=0,prevNode=wrapperNode.previousSibling;prevNode&&isText(prevNode)&&"true"===wrapperNode.dataset.beforeWasSplit&&(offsetBefore=prevNode.textContent.length);for(var highlightData={groupId:wrapperNode.getAttribute(GROUP_ATTR),c:getColorByClassName(wrapperNode.className),offsetBefore:offsetBefore,textLength:wrapperNode.textContent.length,beforeWasSplit:wrapperNode.dataset.beforeWasSplit,afterWasSplit:wrapperNode.dataset.afterWasSplit,path:[]},currentNode=wrapperNode;currentNode&&currentNode!==rootNode;){var childNodes,indexInModel=indexCache.get(currentNode);indexInModel||0===indexInModel||(childNodes=Array.from(
currentNode.parentNode.childNodes).filter(function(node){return!(isText(node)&&!node.textContent.length)}),indexInModel=childNodes.indexOf(currentNode),indexCache.set(currentNode,indexInModel)),highlightData.path.unshift(indexInModel),currentNode=currentNode.parentNode}highlightModel.push(highlightData)}return{highlightModel:highlightModel,wrapperNodes:wrapperNodes}}(rootNode):null;var highlightIndex=[];return rootNode&&(rootNode.normalize(),textNodesIndex=0,function buildHighlightIndex(rootNode,highlightIndex){var childNodes=rootNode.childNodes;var i,currentNode;var nodeInfos,inlineRange,inlineOffset,nodesToSkip;for(i=0;i<childNodes.length;i++)if(
!isBlacklisted(currentNode=childNodes[i]))if(isWrappable(currentNode)&&!isWrappingNode(currentNode.nextSibling))highlightIndex[textNodesIndex]={highlighted:!1},textNodesIndex++;else if(!isWrappingNode(currentNode)||isText(currentNode.nextSibling)||isWrappingNode(currentNode.nextSibling)&&currentNode.className!==currentNode.nextSibling.className)if(isHotNode(currentNode)){for(nodeInfos={highlighted:!0,inlineRanges:[]},nodesToSkip=-1,inlineOffset=0;currentNode;)isWrappingNode(currentNode)&&(inlineRange={groupId:currentNode.getAttribute(GROUP_ATTR),c:getColorByClassName(currentNode.className)},(isText(currentNode.previousSibling)||isWrappingNode(
currentNode.previousSibling))&&(inlineRange.startOffset=inlineOffset),(isText(currentNode.nextSibling)||isWrappingNode(currentNode.nextSibling))&&(inlineRange.endOffset=inlineOffset+currentNode.textContent.length),nodeInfos.inlineRanges.push(inlineRange)),inlineOffset+=currentNode.textContent.length,currentNode=isHotNode(currentNode.nextSibling)||isText(currentNode.nextSibling)?currentNode.nextSibling:null,nodesToSkip++;i+=nodesToSkip,highlightIndex[textNodesIndex]=nodeInfos,textNodesIndex++}else isElement(currentNode)&&buildHighlightIndex(currentNode,highlightIndex);else highlightIndex[textNodesIndex]={highlighted:!0,groupId:currentNode.getAttribute(
GROUP_ATTR),c:getColorByClassName(currentNode.className)},textNodesIndex++}(rootNode,highlightIndex)),highlightIndex},clearHighlights:function(){getHighlightedNodes().each(function(i,$wrapped){keepEmptyNodes?clearSingleHighlight({target:$wrapped}):($wrapped=$(this)).replaceWith($wrapped.text())})},clearSingleHighlight:clearSingleHighlight,setActiveColor:function(color){options.colors[color]&&(className=options.colors[color])}}}}),define("ui/resourcemgr/fileBrowser",["jquery","lodash","core/request","ui/pagination","handlebars","i18n","lib/dompurify/purify"],function($$1,_,request,paginationComponent,Handlebars,__,DOMPurify){"use strict";function _typeof(obj
){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',
_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,
options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,paginationComponent=paginationComponent&&Object.prototype.hasOwnProperty.call(paginationComponent,"default")?paginationComponent.default:paginationComponent,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,stack1,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression;return!(stack1=helpers.if.call(stack1,null==(
stack1=stack1&&stack1.permissions)||!1===stack1?stack1:stack1.read,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n\t<li class="root">\n\t\t<a\n\t\t\tclass="root-folder active"\n\t\t\thref="#"\n\t\t\tdata-path="',stack1=(helper=helpers.path)||typeof(helper=depth0&&depth0.path)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n\t\t\tdata-display="',stack1=(helper=helpers.relPath)||typeof(helper=depth0&&depth0.relPath)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n\t\t\tdata-children-limit="',
stack1=(helper=helpers.childrenLimit)||typeof(helper=depth0&&depth0.childrenLimit)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n\t\t\t',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n\t\t</a>\n\t\t<ul></ul>\n\t</li>\n"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(buffer,stack1,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(
helpers,buffer.helpers),data=data||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression;return!(stack1=helpers.if.call(stack1,null==(stack1=stack1&&stack1.permissions)||!1===stack1?stack1:stack1.read,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n\t<li>\n\t\t<a\n\t\t\tdata-path="',stack1=(helper=helpers.path)||typeof(helper=depth0&&depth0.path)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n\t\t\tdata-display="',stack1=(helper=helpers.relPath)||typeof(helper=depth0&&depth0.relPath)===functionType?helper.call(depth0,
{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n\t\t\tdata-children-limit="',stack1=(helper=helpers.childrenLimit)||typeof(helper=depth0&&depth0.childrenLimit)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'"\n\t\t\thref="#">\n\t\t\t',stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"\n\t\t</a>\n\t</li>\n"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n"});function updatePermissions(item){var isAssets=(item.uri||item.path||"").includes("mediamanager"),permissions={
read:!0,write:!0,preview:!0,download:!0,upload:!0,delete:!0};return item.permissions&&(item.permissions.includes("READ")||(permissions.read=!1),item.permissions.includes("WRITE")||(permissions.write=!1),isAssets?(item.permissions.includes("PREVIEW")||(permissions.preview=!1),item.permissions.includes("DOWNLOAD")||(permissions.download=!1),item.permissions.includes("UPLOAD")||(permissions.upload=!1),item.permissions.includes("DELETE")||(permissions.delete=!1)):(permissions.read||(permissions.preview=!1,permissions.download=!1),permissions.write||(permissions.delete=!1,permissions.upload=!1))),item.permissions=permissions,item}var ns="resourcemgr"
;return function(options){var root=options.root||"local",rootPath=options.path||"/",$container=options.$target,$fileBrowser=$$1(".file-browser .file-browser-wrapper",$container),$divContainer=$$1(".".concat(root),$fileBrowser),$folderContainer=$$1(".folders",$divContainer),fileTree={},selectedClass={path:rootPath,childrenLimit:10,total:0,page:1};function getPage(files){files=_.filter(files,function(item){return!!item.uri});return selectedClass.childrenLimit?files.slice((selectedClass.page-1)*selectedClass.childrenLimit,selectedClass.page*selectedClass.childrenLimit):files}function getFolderContent(tree,path,cb){var files,content=getByPath(tree,path)
;content&&(content.children||content.empty)?content.children&&(files=_.filter(content.children,function(item){return!!item.uri})).length<selectedClass.total&&files.length<selectedClass.page*selectedClass.childrenLimit?loadContent(path).then(function(loadedFiles){loadedFiles=_.filter(loadedFiles.children,function(item){return!!item.uri});setToPath(tree,path,{children:loadedFiles}),content=getByPath(tree,path),cb(content)}):cb(content):loadContent(path).then(function(data){tree.path?data.children?(_.find(data.children,"path")||(tree.empty=!0),setToPath(tree,path,data)):tree.empty=!0:tree=_.merge(tree,data),cb(data)})}function getByPath(tree,path){var match
;return tree&&(tree.path&&0===tree.path.indexOf(path)?match=tree:tree.children&&_.forEach(tree.children,function(child){if(match=getByPath(child,path))return!1})),match}function setToPath(tree,path,data){var done=!1;return tree&&(tree.path===path?(tree.children=tree.children?tree.children.concat(data.children):data.children,data.total&&(tree.total=data.total)):tree.children&&_.forEach(tree.children,function(child){if(done=setToPath(child,path,data))return!1})),done}function loadContent(path){var parameters={};return parameters[options.pathParam]=path,request({url:options.browseUrl,method:"GET",dataType:"json",data:_.merge(parameters,options.params,{
childrenOffset:(selectedClass.page-1)*selectedClass.childrenLimit}),noToken:!0}).then(function(response){return response.data}).then(function(response){return(response=updatePermissions(response)).children&&0<response.children.length&&response.children.map(updatePermissions),response})}function updateFolders(data,$parent,recurse){recurse&&data&&data.path&&(void 0===data.relPath&&(data.relPath=data.path),$parent.append(function(data,html){return html=Template$1(data,html)}(data))),data&&data.children&&_.isArray(data.children)&&!data.empty&&_.forEach(data.children,function(child){updateFolders(child,$parent,!0)})}function updateSelectedClass(path,total,
childrenLimit){selectedClass={path:path,total:total,childrenLimit:childrenLimit,page:1}}function renderPagination(){var $paginationContainer=$$1(".pagination-bottom",$container);$paginationContainer.empty();var totalPages=Math.ceil(selectedClass.total/selectedClass.childrenLimit);selectedClass.total&&1<totalPages&&paginationComponent({mode:"simple",activePage:selectedClass.page,totalPages:totalPages}).on("prev",function(){selectedClass.page--,loadPage()}).on("next",function(){selectedClass.page++,loadPage()}).render($paginationContainer)}function loadPage(){getFolderContent(getByPath(fileTree,selectedClass.path),selectedClass.path,function(content){
content&&$container.trigger("folderselect.".concat(ns),[content.label,getPage(content.children),content.path])})}getFolderContent(fileTree,rootPath,function(content){$folderContainer.append($innerList=Template(content,$innerList));var $rootNode=$$1(".root-folder",$folderContainer),$innerList=$$1(".root ul",$folderContainer);content.children&&$rootNode.addClass("opened"),updateFolders(content,$innerList),content.permissions.read&&!options.hasAlreadySelected&&($$1(".file-browser").find("li.active").removeClass("active"),updateSelectedClass(content.path,content.total,content.childrenLimit),$container.trigger("folderselect.".concat(ns),[content.label,getPage(
content.children),content.path,content]),renderPagination(),"local"!==root&&(options.hasAlreadySelected=!0))}),$divContainer.off("click",".folders a").on("click",".folders a",function(e){e.preventDefault();var $selected=$$1(this),$folders=$$1(".folders li",$fileBrowser),fullPath=$selected.data("path"),subTree=getByPath(fileTree,fullPath);getFolderContent(subTree,fullPath,function(content){var $innerList;content&&(!($innerList=$selected.siblings("ul")).length&&content.children&&_.find(content.children,"path")&&!content.empty?(updateFolders(content,$innerList=$$1("<ul></ul>").insertAfter($selected)),$selected.addClass("opened")):$innerList.length&&(
"none"===$innerList.css("display")?($innerList.show(),$selected.addClass("opened")):$selected.parent("li").hasClass("active")&&($innerList.hide(),$selected.removeClass("opened"))),$folders.removeClass("active"),$selected.parent("li").addClass("active"),updateSelectedClass(fullPath,subTree.total,$selected.data("children-limit")),$container.trigger("folderselect.".concat(ns),[content.label,getPage(content.children),content.path,content]),renderPagination())})}),$container.on("filenew.".concat(ns),function(e,file,path){var subTree=getByPath(fileTree,path);subTree&&(subTree.children||(subTree.children=[]),"local"===root&&_.find(subTree.children,{name:file.name}
)||(updatePermissions(file),subTree.children.push(file),subTree.total++,selectedClass.total++,$container.trigger("folderselect.".concat(ns),[subTree.label,getPage(subTree.children),path]),renderPagination()))}),$container.on("filedelete.".concat(ns),function(e,path){!function removeFromPath(tree,path){var done=!1;var removed=[];tree&&tree.children&&(removed=_.remove(tree.children,function(child){return child.path===path||child.name&&tree.path+child.name===path||child.uri===path}),done=0<removed.length,tree.total--,done||_.forEach(tree.children,function(child){if(done=removeFromPath(child,path))return!1}));return done}(fileTree,path)||(selectedClass.total--,
loadPage())})}}),define("util/bytes",[],function(){"use strict";return{hrSize:function(bytes){var unit=0;for(bytes=bytes||0;1024<=bytes;)bytes/=1024,unit++;return bytes.toFixed(2)+["B","kB","MB","GB","TB"][unit]}}}),define("ui/mediaplayer/support",[],function(){"use strict";var reAppleMobiles=/ip(hone|od)/i,supportedMimeTypes={"video/webm":'video/webm; codecs="vp8, vorbis"',"video/mp4":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"video/ogg":'video/ogg; codecs="theora, vorbis"',"audio/mpeg":"audio/mpeg;","audio/mp4":'audio/mp4; codecs="mp4a.40.5"',"audio/ogg":'audio/ogg; codecs="vorbis"',"audio/wav":'audio/wav; codecs="1"'};return{checkSupport:function(media
,mimeType){var support=!!media.canPlayType;return support&&mimeType?!!media.canPlayType(supportedMimeTypes[mimeType]||mimeType).replace(/no/,""):support},canPlay:function(type,mime){if(type)switch(type.toLowerCase()){case"audio":return this.canPlayAudio(mime);case"youtube":return this.canPlayVideo();case"video":return this.canPlayVideo(mime);default:return!1}return this.canPlayAudio()&&this.canPlayVideo()},canPlayAudio:function(mime){return this.checkSupport(document.createElement("audio"),mime)},canPlayVideo:function(mime){return this.checkSupport(document.createElement("video"),mime)},canControl:function(){return!reAppleMobiles.test(
window.navigator.userAgent)}}}),define("ui/mediaplayer/utils/reminder",[],function(){"use strict";return function(){var running=!1,last=0,reminders=new Map,stopReminder=function(state){state&&state.timeout&&(clearTimeout(state.timeout),state.timeout=null)},stopAllReminders=function(){return reminders.forEach(stopReminder)};return{get running(){return running},get elapsed(){return running?performance.now()-last:0},start:function(){return running=!0,last=performance.now(),reminders.forEach(function(state,reminder){stopReminder(state),state.timeout=setTimeout(reminder,state.delay)}),this},stop:function(){return running=!1,stopAllReminders(),this},
remind:function(cb,delay){return"function"==typeof cb&&delay&&(stopReminder(reminders.get(cb)),reminders.set(cb,{delay:delay})),this},forget:function(cb){return void 0!==cb?(stopReminder(reminders.get(cb)),reminders.delete(cb)):(stopAllReminders(),reminders.clear()),this}}}}),define("ui/mediaplayer/utils/timeObserver",["core/eventifier"],function(eventifier){"use strict";return eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,function(){var interval=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,position=0,duration=0,_seek=0;return eventifier({get position(){return position},
get duration(){return duration},init:function(initPosition,initDuration){return position=_seek=initPosition,duration=initDuration,this},update:function(newPosition){return _seek<newPosition&&interval<newPosition-position&&this.trigger("irregularity",position,newPosition),position=newPosition,this},seek:function(seekPosition){return position=_seek=seekPosition,this}})}}),define("ui/mediaplayer/players/html5",["jquery","util/urlParser","core/eventifier","ui/mediaplayer/support","handlebars","i18n","lodash","lib/dompurify/purify","ui/mediaplayer/utils/reminder","ui/mediaplayer/utils/timeObserver"],function($$1,UrlParser,eventifier,support,Handlebars,__,_,
DOMPurify,reminderManagerFactory,timeObserverFactory){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,UrlParser=UrlParser&&Object.prototype.hasOwnProperty.call(UrlParser,"default")?UrlParser.default:UrlParser,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,
support=support&&Object.prototype.hasOwnProperty.call(support,"default")?support.default:support,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,reminderManagerFactory=reminderManagerFactory&&Object.prototype.hasOwnProperty.call(reminderManagerFactory,"default")?reminderManagerFactory.default:reminderManagerFactory,
timeObserverFactory=timeObserverFactory&&Object.prototype.hasOwnProperty.call(timeObserverFactory,"default")?timeObserverFactory.default:timeObserverFactory,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var stack1,helper,buffer="",functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<audio class="media audio" preload="',stack1=(helper=helpers.preload)||typeof(helper=depth0&&depth0.preload
)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" controls ',!(stack1=helpers.if.call(depth0,depth0&&depth0.cors,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"crossorigin"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n "+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Your browser doesnt support the audio player.",options):helperMissing.call(depth0,"__","Your browser doesnt support the audio player.",options)))+"\n",!(stack1=helpers.if.call(depth0,depth0&&depth0.link,{hash:{},inverse:this.noop,
fn:this.program(3,function(depth0,options){var stack1,helper,buffer="";return buffer+='\n <a href="',stack1=(helper=helpers.link)||typeof(helper=depth0&&depth0.link)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'">'+escapeExpression((options={hash:{},data:options},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Please download the track and listen offline.",options):helperMissing.call(depth0,"__","Please download the track and listen offline.",options)))+"</a>\n"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</audio>\n"});function audioTpl(data,html,asString){html=Template(data
,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var stack1,helper,buffer="",functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<video class="media video" preload="',stack1=(helper=helpers.preload)||typeof(helper=depth0&&depth0.preload)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" poster="',stack1=(helper=helpers.poster)||typeof(
helper=depth0&&depth0.poster)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" controls ',!(stack1=helpers.if.call(depth0,depth0&&depth0.cors,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"crossorigin"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n "+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Your browser doesnt support the video player.",options):helperMissing.call(depth0,"__","Your browser doesnt support the video player.",options)))+"\n",!(stack1=helpers.if.call(depth0,depth0&&depth0.link,{hash:{},
inverse:this.noop,fn:this.program(3,function(depth0,options){var stack1,helper,buffer="";return buffer+='\n <a href="',stack1=(helper=helpers.link)||typeof(helper=depth0&&depth0.link)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'">'+escapeExpression((options={hash:{},data:options},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Please download the video and view offline.",options):helperMissing.call(depth0,"__","Please download the video and view offline.",options)))+"</a>\n"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</video>\n"});function videoTpl(data,html,asString){
html=Template$1(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$2=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<source src="',buffer+=escapeExpression((helper=helpers.src)||"function"==typeof(helper=depth0&&depth0.src)?helper.call(depth0,{hash:{},data:data}):helper)+'" type="',buffer+=escapeExpression((helper=helpers.type)||"function"==typeof(helper=depth0&&depth0.type)?helper.call(depth0,{hash:{},data:data}):helper
)+'">\n'});var ns=".mediaplayer",mediaEvents=["abort","canplay","canplaythrough","canshowcurrentframe","dataunavailable","durationchange","emptied","empty","ended","error","loadeddata","loadedfirstframe","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],playerEvents=["end","error","pause","play","playing","ready","resize","stalled","timeupdate"];return function($container){var $media,media,config=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},type=config.type||"video",sources=config.sources||[],updateObserver=reminderManagerFactory(),
timeObserver=timeObserverFactory();config.stalledDetectionDelay=config.stalledDetectionDelay||2e3;var state={},debug=function(action){for(var _window$console,_len=arguments.length,args=new Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return(!0===config.debug||config.debug===action)&&(_window$console=window.console).log.apply(_window$console,[function(action){var networkState=media&&media.networkState,readyState=media&&media.readyState;return"[html5-".concat(type,"(networkState=").concat(networkState,",readyState=").concat(readyState,"):").concat(action,"]")}(action)].concat(args))};return eventifier({init:function(){var result,
_this=this,tpl="audio"===type?audioTpl:videoTpl,page=new UrlParser(window.location),cors=!1,preload=config.preview?"metadata":"none",poster="",link="";return state={},sources.forEach(function(source){page.sameDomain(source.src)||(cors=!0),source.poster&&(poster=source.poster),source.link&&(link=source.link)}),$media=$$1(tpl({cors:cors,preload:preload,poster:poster,link:link})),$container.append($media),result=!(!(media=$media.get(0))||!support.checkSupport(media)),support.canControl()&&$media.removeAttr("controls"),timeObserver.removeAllListeners().on("irregularity",function(position){state.playback&&state.stallDetection&&_this.stalled(position)}),$media.on(
"play".concat(ns),function(){state.playback=!0,state.playedViaApi=!1,timeObserver.init(media.currentTime,media.duration),_this.trigger("play")}).on("pause".concat(ns),function(){state.stallDetection&&!state.pausedViaApi&&updateObserver.running&&updateObserver.elapsed<100&&_this.stalled(),state.pausedViaApi=!1,state.playing=!1,updateObserver.stop(),_this.trigger("pause")}).on("seeked".concat(ns),function(){state.seekedViaApi&&Math.floor(state.seekAt)!==Math.floor(media.currentTime)&&(state.stallDetection=!0),state.seekedViaApi=!1}).on("ended".concat(ns),function(){updateObserver.forget().stop(),timeObserver.update(media.currentTime),state.playback=!1,
state.playing=!1,_this.trigger("end")}).on("timeupdate".concat(ns),function(){state.playing=!0,updateObserver.start(),timeObserver.update(media.currentTime),_this.trigger("timeupdate")}).on("loadstart",function(){media.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&_this.trigger("error"),config.preview||media.networkState!==HTMLMediaElement.NETWORK_IDLE||_this.trigger("ready"),_this.detectStalledNetwork()}).on("waiting".concat(ns),function(){_this.detectStalledNetwork()}).on("error".concat(ns),function(){
media.networkState===HTMLMediaElement.NETWORK_NO_SOURCE||media.error instanceof MediaError&&media.error===MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED?_this.trigger("error"):_this.handleError(media.error)}).on("loadedmetadata",function(){timeObserver.init(media.currentTime,media.duration),_this.ready()}).on("canplay".concat(ns),function(){state.stalled||_this.ready()}).on("stalled".concat(ns),function(){state.playing&&!media.paused&&_this.handleError(media.error)}).on("playing".concat(ns),function(){state.stallDetection||(updateObserver.forget().start(),state.playing=!0,_this.trigger("playing"))}),config.debug&&(debug("installed",media),mediaEvents.forEach(
function(eventName){$media.on(eventName+ns,function(e){return debug("media event",eventName,media&&media.currentSrc,e)})}),playerEvents.forEach(function(eventName){_this.on(eventName,function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return debug.apply(void 0,["player event",eventName,media&&media.currentSrc].concat(args))})})),result&&sources.reduce(function(supported,source){return _this.addMedia(source.src,source.type)||supported},!1)},handleError:function(error){var _this2=this;switch(error&&error.name){case"NotAllowedError":return void debug("api call","handleError",
"the autoplay is not allowed without a user interaction",error);case"AbortError":return void debug("api call","handleError","the action has been aborted for some reason",error)}debug("api call","handleError",error);var canContinueTemporarily=media&&(media.readyState===HTMLMediaElement.HAVE_ENOUGH_DATA||media.readyState===HTMLMediaElement.HAVE_FUTURE_DATA||media.readyState===HTMLMediaElement.HAVE_CURRENT_DATA);!(error instanceof MediaError)||error.code!==MediaError.MEDIA_ERR_NETWORK&&error.code!==MediaError.MEDIA_ERR_DECODE||canContinueTemporarily?(state.stallDetection=!0,updateObserver.remind(function(){
updateObserver.elapsed>=config.stalledDetectionDelay&&_this2.stalled()},config.stalledDetectionDelay),updateObserver.start()):this.stalled()},ready:function(){state.ready||(state.ready=!0,this.trigger("ready"))},detectStalledNetwork:function(){var _this3=this;setTimeout(function(){media&&media.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&media.readyState===HTMLMediaElement.HAVE_NOTHING&&(state.ready||_this3.trigger("ready"),_this3.stalled())},config.stalledDetectionDelay)},stalled:function(position){debug("api call","stalled"),media&&(state.stalledAt=void 0!==position?position:timeObserver.position),state.stalled=!0,state.stallDetection=!1,
updateObserver.forget().stop(),this.pause(),this.trigger("stalled")},recover:function(){debug("api call","recover"),state.stalled=!1,state.stallDetection=!1,media&&("VIDEO"===media.tagName&&($media.width($media.width()),$media.height($media.height()),$media.on("loadedmetadata.recover",function(){$media.off("loadedmetadata.recover"),$media.css({width:"",height:""})})),media.load(),state.stalledAt&&this.seek(state.stalledAt),(state.playback&&!state.playing||state.playedViaApi)&&this.play())},destroy:function(){debug("api call","destroy"),this.stop(),this.removeAllListeners(),updateObserver.forget(),timeObserver.removeAllListeners(),$media&&$media.off(ns
).remove(),media=$media=void 0,state={}},getMedia:function(){return debug("api call","getMedia",media),media},getMediaSize:function(){var size={};return media&&(size={width:media.videoWidth,height:media.videoHeight}),debug("api call","getMediaSize",size),size},getPosition:function(){var position=0;return media&&(position=media.currentTime),debug("api call","getPosition",position),position},getDuration:function(){var duration=0;return media&&(duration=media.duration),debug("api call","getDuration",duration),duration},getVolume:function(){var volume=0;return media&&(volume=100*parseFloat(media.volume)),debug("api call","getVolume",volume),volume},
setVolume:function(volume){debug("api call","setVolume",volume),media&&(media.volume=parseFloat(volume)/100)},setSize:function(width,height){debug("api call","setSize",width,height),this.trigger("resize",width,height)},seek:function(time){debug("api call","seek",time),media&&(media.currentTime=parseFloat(time),state.seekedViaApi=!0,state.seekAt=media.currentTime,timeObserver.seek(media.currentTime),state.playback||this.play())},play:function(){var startPlayPromise,_this4=this;debug("api call","play"),media&&(state.playedViaApi=!0,void 0!==(startPlayPromise=media.play())&&startPlayPromise.catch(function(error){return _this4.handleError(error)}))},
pause:function(){debug("api call","pause"),media&&(media.paused||(state.pausedViaApi=!0),media.pause())},stop:function(){debug("api call","stop"),media&&state.playback&&(media.currentTime=media.duration)},mute:function(muted){debug("api call","mute",muted),media&&(media.muted=!!muted)},isMuted:function(){var mute=!1;return media&&(mute=!!media.muted),debug("api call","isMuted",mute),mute},addMedia:function(src,srcType){return debug("api call","addMedia",src,srcType),!(media&&!support.checkSupport(media,srcType))&&(!(!src||!$media)&&($media.append(html=Template$2({src:src,type:srcType},html)),!0));var html},setMedia:function(src,srcType){return debug(
"api call","setMedia",src,srcType),!!$media&&($media.empty(),this.addMedia(src,srcType))}})}}),define("ui/mediaplayer/youtubeManager",["jquery"],function($){"use strict";function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if(
"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var reYoutube=/([?&\/]v[=\/])([\w-]+)([&\/]?)/;function addYoutubePlayer($elem,player){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},$elem=$(
$elem);new window.YT.Player($elem.get(0),{height:"360",width:"640",videoId:$elem.data("videoId"),playerVars:{autoplay:0,controls:options&&options.controls?1:0,rel:0,showinfo:0,wmode:"transparent",modestbranding:1,disablekb:1,playsinline:1,enablejsapi:1,origin:location.hostname},events:{onReady:function(ev){return player.onReady(ev)},onStateChange:function(ev){return player.onStateChange(ev)}}})}return function(){var injected=!1,ready=!1,pending=[];function isApiReady(){var apiReady=void 0!==window.YT&&void 0!==window.YT.Player;return apiReady&&!ready&&(ready=!0,pending.forEach(function(args){args&&addYoutubePlayer.apply(void 0,_toConsumableArray(args))}),
pending=[]),apiReady}return{add:function(elem,player,options){ready?addYoutubePlayer(elem,player,options):(pending.push([elem,player,options]),injected||(isApiReady()||window.require(["https://www.youtube.com/iframe_api"],function(){(function check(){isApiReady()||setTimeout(check,100)})()}),injected=!0))},remove:function(elem,player){pending.forEach(function(args,idx){args&&elem===args[0]&&player===args[1]&&(pending[idx]=null)})},extractYoutubeId:function(url){var res=reYoutube.exec(url);return res&&res[2]||url}}}}),define("ui/mediaplayer/players/youtube",["jquery","core/eventifier","ui/mediaplayer/support","ui/mediaplayer/youtubeManager","handlebars",
"i18n","lodash","lib/dompurify/purify"],function($$1,eventifier,support,youtubeManagerFactory,Handlebars,__,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,
support=support&&Object.prototype.hasOwnProperty.call(support,"default")?support.default:support,youtubeManagerFactory=youtubeManagerFactory&&Object.prototype.hasOwnProperty.call(youtubeManagerFactory,"default")?youtubeManagerFactory.default:youtubeManagerFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars
),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<div class="media video youtube" data-video-src="',buffer+=escapeExpression((helper=helpers.src)||"function"==typeof(helper=depth0&&depth0.src)?helper.call(depth0,{hash:{},data:data}):helper)+'" data-video-id="',buffer+=escapeExpression((helper=helpers.id)||"function"==typeof(helper=depth0&&depth0.id)?helper.call(depth0,{hash:{},data:data}):helper)+'" data-type="youtube"></div>\n'})
;var youtubeEvents=["onApiChange","onError","onPlaybackQualityChange","onPlaybackRateChange","onStateChange"],playerEvents=["end","error","pause","play","ready","resize","timeupdate"],youtubeManager=youtubeManagerFactory();return function($container){var $media,media,interval,destroyed,initWidth,initHeight,config=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},sources=config.sources||[],source=sources[0]||{},otherSources=sources.slice(1);config.polling=config.polling||100;var callbacks=[],debug=function(action){for(var _window$console,_len=arguments.length,args=new Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key]
;return config.debug&&(_window$console=window.console).log.apply(_window$console,["[youtube:".concat(action,"]")].concat(args))},queueMedia=function(url,register){var id=youtubeManager.extractYoutubeId(url);return!!id&&(media?register(id):callbacks.push(function(){return register(id)}),!0)};return eventifier({init:function(){var data,html,_this=this;return $media=$$1((data={src:source.src,id:youtubeManager.extractYoutubeId(source.src)},html=Template(data,html))),$container.append($media),otherSources.forEach(function(source){return _this.addMedia(source.src)}),media=null,destroyed=!1,youtubeManager.add($media,this,{controls:!support.canControl()}),!0},
onReady:function(event){var _this2=this;media=event.target,$media=$$1(media.getIframe()),destroyed?this.destroy():(config.debug&&(debug("installed",media),youtubeEvents.forEach(function(eventName){return media.addEventListener(eventName,function(e){debug("media event",eventName,$media&&$media.data("videoSrc"),e)})}),playerEvents.forEach(function(eventName){_this2.on(eventName,function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];debug.apply(void 0,["player event",eventName,$media&&$media.data("videoSrc")].concat(args))})})),initWidth&&initHeight&&this.setSize(initWidth,initHeight),
callbacks.forEach(function(cb){return cb()}),callbacks=[],this.trigger("ready"))},onStateChange:function(event){if(this.stopPolling(),!destroyed)switch(event.data){case 0:this.trigger("end");break;case 1:this.trigger("play"),this.startPolling();break;case 2:this.trigger("pause")}},stopPolling:function(){interval&&(window.clearInterval(interval),interval=null)},startPolling:function(){var _this3=this;interval=window.setInterval(function(){return _this3.trigger("timeupdate")},config.polling)},destroy:function(){debug("api call","destroy"),destroyed=!0,this.stopPolling(),this.removeAllListeners(),media?(youtubeEvents.forEach(function(ev){
return media.removeEventListener(ev)}),media.destroy(),media=void 0):youtubeManager.remove($media,this),$media&&($media.remove(),$media=void 0)},getMedia:function(){return debug("api call","getMedia",media),media},getPosition:function(){var position=0;return media&&(position=media.getCurrentTime()),debug("api call","getPosition",position),position},getDuration:function(){var duration=0;return media&&(duration=media.getDuration()),debug("api call","getDuration",duration),duration},getVolume:function(){var volume=0;return media&&(volume=media.getVolume()),debug("api call","getVolume",volume),volume},setVolume:function(volume){debug("api call","setVolume",
volume),media&&media.setVolume(parseFloat(volume))},setSize:function(width,height){debug("api call","setSize",width,height),this.trigger("resize",width,height),media||(initWidth=width,initHeight=height)},seek:function(time){debug("api call","seek",time),media&&media.seekTo(parseFloat(time),!0)},play:function(){debug("api call","play"),media&&media.playVideo()},pause:function(){debug("api call","pause"),media&&media.pauseVideo()},stop:function(){debug("api call","stop"),media&&(media.stopVideo(),this.trigger("end"))},mute:function(state){debug("api call","mute",state),media&&media[state?"mute":"unMute"]()},isMuted:function(){var mute=!1;return media&&(
mute=media.isMuted()),debug("api call","isMuted",mute),mute},addMedia:function(url){return debug("api call","addMedia",url),queueMedia(url,function(id){return media&&media.cueVideoById(id)})},setMedia:function(url){return debug("api call","setMedia",url),callbacks=[],queueMedia(url,function(id){return media&&media.loadVideoById(id)})}})}}),define("ui/mediaplayer/players",["ui/mediaplayer/players/html5","ui/mediaplayer/players/youtube"],function(html5PlayerFactory,youtubePlayerFactory){"use strict";return{audio:html5PlayerFactory=html5PlayerFactory&&Object.prototype.hasOwnProperty.call(html5PlayerFactory,"default"
)?html5PlayerFactory.default:html5PlayerFactory,video:html5PlayerFactory,youtube:youtubePlayerFactory=youtubePlayerFactory&&Object.prototype.hasOwnProperty.call(youtubePlayerFactory,"default")?youtubePlayerFactory.default:youtubePlayerFactory}}),define("css!ui/mediaplayer/css/player",[],function(){}),define("ui/mediaplayer",["jquery","lodash","async","util/urlParser","core/eventifier","core/mimetype","core/store","ui/mediaplayer/support","ui/mediaplayer/players","handlebars","i18n","lib/dompurify/purify","css!ui/mediaplayer/css/player.css","nouislider"],function($$1,_,async,UrlParser,eventifier,mimetype,store,support,players,Handlebars,__,DOMPurify,
player_css,nouislider){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,
fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment
)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,async=async&&Object.prototype.hasOwnProperty.call(async,"default")?async.default:async,UrlParser=UrlParser&&Object.prototype.hasOwnProperty.call(UrlParser,
"default")?UrlParser.default:UrlParser,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,mimetype=mimetype&&Object.prototype.hasOwnProperty.call(mimetype,"default")?mimetype.default:mimetype,store=store&&Object.prototype.hasOwnProperty.call(store,"default")?store.default:store,support=support&&Object.prototype.hasOwnProperty.call(support,"default")?support.default:support,players=players&&Object.prototype.hasOwnProperty.call(players,"default")?players.default:players,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="mediaplayer ',buffer+=escapeExpression((helper=helpers.type)||"function"==typeof(helper=depth0&&depth0.type
)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <div class="player">\n <div class="player-overlay">\n <a class="action play" data-control="play"><span class="icon icon-play" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Play",options):helperMissing.call(depth0,"__","Play",options)))+'"></span></a>\n <a class="action play" data-control="pause"><span class="icon icon-pause" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Pause",options):helperMissing.call(depth0,"__","Pause",options))
)+'"></span></a>\n <a class="action reload" data-control="start">\n <span class="icon icon-play" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Start",options):helperMissing.call(depth0,"__","Start",options)))+'"></span>\n <div class="message">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Click to start",options):helperMissing.call(depth0,"__","Click to start",options))
)+'</div>\n </a>\n <a class="action reload" data-control="reload">\n <div class="icon icon-reload" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Reload",options):helperMissing.call(depth0,"__","Reload",options)))+'"></div>\n <div class="message">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"You are encountering a prolonged connectivity loss.",options):helperMissing.call(depth0,"__","You are encountering a prolonged connectivity loss.",options))
)+'</div>\n <div class="message">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Click to reload.",options):helperMissing.call(depth0,"__","Click to reload.",options)))+'</div>\n </a>\n </div>\n </div>\n <div class="controls">\n <div class="bar">\n <div class="control actions playback">\n <a class="action play" data-control="play" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Play",options):helperMissing.call(depth0,"__","Play",options))
)+'"><span class="icon icon-play"></span></a>\n <a class="action play" data-control="pause" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Pause",options):helperMissing.call(depth0,"__","Pause",options)))+'"><span class="icon icon-pause"></span></a>\n </div>\n <div class="control seek"><div class="slider"></div></div>\n <div class="control infos timer">\n <span class="info time" data-control="time-cur" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,
"Current playback position",options):helperMissing.call(depth0,"__","Current playback position",options)))+'">--:--</span>\n <span class="info time" data-control="time-end" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Total duration",options):helperMissing.call(depth0,"__","Total duration",options)))+'">--:--</span>\n </div>\n <div class="control actions sound">\n <div class="volume"><div class="slider"></div></div>\n <a class="action mute" data-control="mute" title="'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Mute",options):helperMissing.call(depth0,"__","Mute",options)))+'"><span class="icon icon-sound"></span></a>\n <a class="action mute" data-control="unmute" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Restore sound",options):helperMissing.call(depth0,"__","Restore sound",options)))+'"><span class="icon icon-mute"></span></a>\n </div>\n </div>\n </div>\n <div class="error">\n <div class="message">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__
)?helper.call(depth0,"This media cannot be played!",options):helperMissing.call(depth0,"__","This media cannot be played!",options)))+"</div>\n </div>\n</div>\n"});var ns=".mediaplayer",defaults={type:"video/mp4",video:{width:"100%",height:"auto"},audio:{width:"100%",height:"auto"},youtube:{width:640,height:360},options:{volume:80,startMuted:!1,maxPlays:0,replayTimeout:0,canPause:!0,canSeek:!0,loop:!1,autoStart:!1,preview:!0,debug:!1}},ensureNumber=function(floatValue){floatValue=parseFloat(floatValue);return isFinite(floatValue)?floatValue:0},leadingZero=function(n,len){for(var value=n.toString();value.length<len;)value="0".concat(value);return value},
timerFormat=function(parts){var seconds=Math.floor(parts%60),minutes=Math.floor(parts/60)%60,hours=Math.floor(parts/3600),parts=[];return hours&&parts.push(hours),parts.push(leadingZero(minutes,2)),parts.push(leadingZero(seconds,2)),parts.join(":")},isResponsiveSize=function(sizeProps){return/%/.test(sizeProps)||"auto"===sizeProps};function mediaplayerFactory(config){return{init:function(config){var _this=this;return this.config=_.omit(config||{},function(value){return null==value}),_.defaults(this.config,defaults.options),this._setType(this.config.type||defaults.type),this._reset(),this._updateVolumeFromStore(),this._initEvents(),this._initSources(function(
){_this.is("youtube")||_.forEach(_this.config.sources,function(source){if(source&&source.type&&0===source.type.indexOf("audio"))return _this._setType(source.type),_this._initType(),!1}),_this.config.renderTo&&_.defer(function(){return _this.render()})}),this},destroy:function(){return this.trigger("destroy"),this.player&&this.player.destroy(),this.$component&&(this._unbindEvents(),this._destroySlider(this.$seekSlider),this._destroySlider(this.$volumeSlider),this.$component.remove()),this._reset(),this},render:function(renderTo){renderTo=renderTo||this.config.renderTo||this.$container;return this.$component&&this.destroy(),this._initState(),this._buildDom(),
this.config.preview&&(this._updateDuration(0),this._updatePosition(0)),this._bindEvents(),this._playingState(!1,!0),this._initPlayer(),this._initSize(),this.config.height&&"auto"!==this.config.height?this.resize("100%","auto"):this.resize(this.config.width,this.config.height),this.config.is.rendered=!0,renderTo&&(this.$container=$$1(renderTo).append(this.$component)),this.is("stalled")&&this._setState("stalled",!0),this.trigger("render",this.$component),this},reload:function(){this.trigger("reload"),this.player&&this.player.recover(),this._setState("stalled",!1),this.setInitialStates()},setInitialStates:function(){this.is("stalled")||this._setState("ready",
!0),this._setState("canplay",!0),this._setState("canpause",this.config.canPause),this._setState("canseek",this.config.canSeek),this._setState("loading",!1)},seek:function(time,internal){return this._canPlay()&&(this._updatePosition(time,internal),this.execute("seek",this.position),this.is("ready")||(this.autoStartAt=this.position),this.loop=!!this.config.loop),this},play:function(time){return this._canPlay()&&(void 0!==time&&this.seek(time),this.execute("play"),this.is("ready")||(this.autoStart=!0),this.loop=!!this.config.loop,this.timerId&&cancelAnimationFrame(this.timerId)),this},pause:function(time){return this._canPause()&&(void 0!==time&&this.seek(time)
,this.execute("pause"),this.is("ready")||(this.autoStart=!1)),this},resume:function(){return this._canResume()&&this.play(),this},stop:function(){return this.loop=!1,this.execute("stop"),this.is("ready")||(this.autoStart=!1),this},start:function(){this._setState("preview",!0),this._setState("loading",!0),this.play()},restart:function(){return this.play(0),this},rewind:function(){return this.seek(0),this},mute:function(state){return void 0===state&&(state=!0),this.execute("mute",state),this._setState("muted",state),this.is("ready")||(this.startMuted=state),this},unmute:function(){return this.mute(!1),this},setVolume:function(value,internal){
return this._updateVolume(value,internal),this.execute("setVolume",this.volume),this},getVolume:function(){return this.volume},getPosition:function(){return this.position},getDuration:function(){return this.duration},getTimesPlayed:function(){return this.timesPlayed},getType:function(){return this.type},getContainer:function(){var $container;return this.$container||!this.$component||($container=this.$component.parent()).length&&(this.$container=$container),this.$container},getElement:function(){return this.$component},getSources:function(){return this.config.sources.slice()},setSource:function(src,callback){var _this2=this;return this._getSource(src,
function(source){_this2.config.sources=[source],_this2.is("rendered")&&_this2.player.setMedia(source.src,source.type),callback&&callback.call(_this2,source)}),this},addSource:function(src,callback){var _this3=this;return this._getSource(src,function(source){_this3.config.sources.push(source),_this3.is("rendered")&&_this3.player.addMedia(source.src,source.type),callback&&callback.call(_this3,source)}),this},is:function(state){return!!this.config.is[state]},resize:function(width,height){return(isResponsiveSize(width)&&!isResponsiveSize(height)||this.is("youtube"))&&(height="auto"),this.execute("setSize",width,height),this},enable:function(){
return this._fromState("disabled"),this},disable:function(){return this._toState("disabled"),this.trigger("disabled"),this},show:function(){return this._fromState("hidden"),this},hide:function(){return this._toState("hidden"),this},getMediaOriginalSize:function(){return this.is("youtube")?defaults.youtube:this.is("video")&&this.player?this.player.getMediaSize():{}},_setType:function(type){-1!==type.indexOf("youtube")?this.type="youtube":0===type.indexOf("audio")?this.type="audio":this.type="video"},_initType:function(){var is=this.config.is;is.youtube="youtube"===this.type,is.video="video"===this.type||"youtube"===this.type,is.audio="audio"===this.type},
_getSource:function(src,callback){var _this4=this,done=function(){var type;"string"==typeof(type=source.type)&&0===type.indexOf("application")&&(source.type=function(ext){var type="video/ogg",ext=ext&&ext.src||ext,ext=ext&&ext.substr(-4);return".ogg"!==ext&&".oga"!==ext||(type="audio/ogg"),type}(source)),callback.call(_this4,source)},source=_.isString(src)?{src:src}:_.clone(src);this.is("youtube")&&!source.type&&(source.type=defaults.type),source.type?done():mimetype.getResourceType(source.src,function(err,type){err&&(type=defaults.type),source.type=type,done()})},_initSources:function(callback){var _this5=this,sources=function(config){
var sources=config.sources||[],url=config.url;return _.isArray(sources)||(sources=[sources]),url&&(_.isArray(config.url)||(url=[url]),sources=sources.concat(url)),sources}(this.config);this.config.sources=[],async.each(sources,function(source,cb){_this5.addSource(source,function(src){return cb(null,src)})},callback)},_initEvents:function(){eventifier(this);var triggerEvent=this.trigger;this.trigger=function(eventName){for(var _this$$component,_len=arguments.length,args=new Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return this.$component&&(_this$$component=this.$component).trigger.apply(_this$$component,[eventName+ns].concat(
args)),triggerEvent.call.apply(triggerEvent,[this,eventName].concat(args))}},_initSize:function(){var mediaConfig=this.is("video")?"video":"audio",mediaConfig=defaults[mediaConfig]||defaults.video;this.config.width=this.config.width||mediaConfig.width,this.config.height=this.config.height||mediaConfig.height,(isResponsiveSize(this.config.width)&&!isResponsiveSize(this.config.height)||this.is("youtube"))&&(this.config.height="auto")},_initPlayer:function(){var _this6=this,playerFactory=players[this.type],error=!support.canPlay(this.type)||(_.isFunction(playerFactory)&&(error={type:this.getType(),sources:this.getSources(),preview:this.config.preview,
debug:this.config.debug,stalledDetectionDelay:this.config.stalledDetectionDelay},this.player=playerFactory(this.$player,error).on("resize",function(width,height){_this6.$component&&_this6.$component.width(width).height(height)}).on("ready",function(){return _this6._onReady()}).on("play",function(){return _this6._onPlay()}).on("pause",function(){return _this6._onPause()}).on("timeupdate",function(){return _this6._onTimeUpdate()}).on("stalled",function(){return _this6._onStalled()}).on("playing",function(){return _this6._onPlaying()}).on("end",function(){return _this6._onEnd()}).on("error",function(){return _this6._onError()})),!this.player||!this.player.init(
));this._setState("error",error),this._setState("nogui",!support.canControl()),this._setState("preview",this.config.preview),this._setState("loading",!error),error&&(this._setState("ready",!0),this.trigger("ready"))},_initState:function(){var page,isCORS=!1;this.is("youtube")||(page=new UrlParser(window.location),isCORS=_.some(this.config.sources,function(source){return!page.sameDomain(source.src)})),this._setState("cors",isCORS),this._setState("ready",!1)},_reset:function(){this.config.is={},this._initType(),this.$component=null,this.$container=null,this.$player=null,this.$controls=null,this.$seek=null,this.$seekSlider=null,this.$sound=null,
this.$volume=null,this.$volumeControl=null,this.$volumeSlider=null,this.$position=null,this.$duration=null,this.player=null,this.duration=0,this.position=0,this.timesPlayed=0,this.volume=this.config.volume,this.autoStart=this.config.autoStart,this.autoStartAt=this.config.autoStartAt,this.startMuted=this.config.startMuted},_buildDom:function(){var html,configForTemplate=_.clone(this.config);configForTemplate.type=this.type,this.$component=$$1(html=Template(configForTemplate,html)),this.$player=this.$component.find(".player"),this.$controls=this.$component.find(".controls"),this.$seek=this.$controls.find(".seek .slider"),this.$sound=this.$controls.find(
".sound"),this.$volumeControl=this.$controls.find(".volume"),this.$volume=this.$controls.find(".volume .slider"),this.$position=this.$controls.find('[data-control="time-cur"]'),this.$duration=this.$controls.find('[data-control="time-end"]'),this.$volumeSlider=this._renderSlider(this.$volume,this.volume,0,100,!0)},_renderSlider:function($elt,value,min,max,direction){var orientation,direction=direction?(orientation="vertical","rtl"):(orientation="horizontal","ltr");return $elt.noUiSlider({start:ensureNumber(value)||0,step:1,connect:"lower",orientation:orientation,direction:direction,animate:!0,range:{min:ensureNumber(min)||0,max:ensureNumber(max)||0}})},
_destroySlider:function($elt){$elt&&$elt.get(0).destroy()},_bindEvents:function(){var _this7=this,overing=!1;this.$component.on("contextmenu".concat(ns),function(event){return event.preventDefault()}),this.$controls.on("click".concat(ns),".action",function(id){id=$$1(id.target).closest(".action").data("control");_.isFunction(_this7[id])&&_this7[id]()}),this.$player.on("click".concat(ns),function(id){id=$$1(id.target).closest(".action");id.length?(id=id.data("control"),_.isFunction(_this7[id])&&_this7[id]()):_this7.is("playing")?_this7.pause():_this7.play()}),this.$seek.on("change".concat(ns),function(event,value){_this7.seek(value,!0)}),$$1(document).on(
"updateVolume".concat(ns),function(event,value){_this7.setVolume(value)}),this.$volume.on("change".concat(ns),function(event,value){_this7.unmute(),$$1(document).trigger("updateVolume".concat(ns),value),_this7.setVolume(value,!0)}),this.$sound.on("mouseover".concat(ns),"a",function(){var position;overing||_this7.$volumeControl.hasClass("up")||_this7.$volumeControl.hasClass("down")||(overing=!0,(position=_this7.$controls[0].getBoundingClientRect())&&position.top&&position.top<200?_this7.$volumeControl.addClass("down"):_this7.$volumeControl.addClass("up"),_this7.overingTimer=_.delay(function(){_this7.$volumeControl&&_this7.$volumeControl.removeClass("up down")
,overing=!1},15e3),_this7.$volumeControl.one("mouseleave".concat(ns),function(){_this7.$volumeControl.removeClass("up down"),overing=!1}))})},_unbindEvents:function(){this.$component.off(ns),this.$player.off(ns),this.$controls.off(ns),this.$seek.off(ns),this.$volume.off(ns),this.overingTimer&&clearTimeout(this.overingTimer),$$1(document).off(ns)},_updateVolumeSlider:function(value){this.$volumeSlider&&this.$volumeSlider.val(value)},_updateVolume:function(value,internal){this.volume=Math.max(0,Math.min(100,parseFloat(value))),this._storeVolume(this.volume),internal||this._updateVolumeSlider(value)},_updatePositionSlider:function(value){
this.$seekSlider&&this.$seekSlider.val(value)},_updatePositionLabel:function(value){this.$position&&this.$position.text(timerFormat(value))},_updatePosition:function(value,internal){this.position=Math.max(0,Math.min(this.duration||1/0,parseFloat(value))),!internal&&this.duration&&this._updatePositionSlider(this.position),this._updatePositionLabel(this.position)},_updateDurationSlider:function(value){this.$seekSlider&&(this._destroySlider(this.$seekSlider),this.$seekSlider=null),value&&isFinite(value)&&(this.$seekSlider=this._renderSlider(this.$seek,0,0,value),this.$seekSlider.attr("disabled",!this.config.canSeek))},_updateDurationLabel:function(value){
this.$duration&&(value&&isFinite(value)?this.$duration.text(timerFormat(value)).show():this.$duration.hide())},_updateDuration:function(duration){duration=Math.abs(parseFloat(duration));duration!==this.duration&&(this.duration=duration,this._updateDurationSlider(this.duration),this._updateDurationLabel(this.duration))},_onReady:function(){this.is("error")&&this._setState("error",!1);var duration=this.player.getDuration();(this.config.preview||duration)&&this._updateDuration(duration),this.setInitialStates(),this.trigger("ready"),this.setVolume(this.volume),this.mute(!!this.startMuted),this.autoStartAt?this.seek(this.autoStartAt):this.autoStart&&this.play(),
this.config.preview&&this.$container&&this.config.height&&"auto"!==this.config.height&&this._setMaxHeight()},_setMaxHeight:function(){var $video=this.$container.find("video.video"),controlsHeight=parseInt(window.getComputedStyle(this.$controls[0]).height),videoWidth=$video.height()/this.config.height,playerWidth=this.$container.find(".player").width(),videoWidth=$video.width()/videoWidth;playerWidth<videoWidth?this.execute("setSize","100%","auto"):(this.$component.css({maxHeight:"".concat(this.config.height+controlsHeight,"px")}),this.execute("setSize",Math.floor(videoWidth),"auto"))},_storeVolume:function(volume){return store("mediaVolume").then(function(
volumeStore){return volumeStore.setItem("volume",volume)})},_updateVolumeFromStore:function(){var _this8=this;return store("mediaVolume").then(function(volumeStore){return volumeStore.getItem("volume")}).then(function(volume){_.isNumber(volume)&&(_this8.volume=Math.max(0,Math.min(100,parseFloat(volume))),_this8.setVolume(_this8.volume))})},_onError:function(){this._setState("error",!0),this._setState("loading",!1),this.trigger("error")},_onPlay:function(){this._playingState(!0),this._setState("preview",!0),this.trigger("play",this.player&&this.player.getMedia())},_onPause:function(){this._playingState(!1),this.trigger("pause")},_onEnd:function(){
this.timesPlayed++,this._playingState(!1,!0),this._updatePosition(0),this._playLimitReached()?(this._disableGUI(),this.trigger("limitreached")):this.loop?this.restart():0<parseInt(this.config.replayTimeout,10)&&(this.replayTimeoutStartMs=(new window.Date).getTime(),this._replayTimeout()),this.trigger("ended")},_onPlaying:function(){this._setState("preview",!0),this._setState("stalled",!1),this._setState("ready",!0)},_onStalled:function(){this._setState("stalled",!0),this._setState("ready",!1)},_onTimeUpdate:function(){this._updatePosition(this.player.getPosition()),this.trigger("update")},_replayTimeout:function(){var elapsedSeconds=(new window.Date
).getTime(),elapsedSeconds=Math.floor((elapsedSeconds-this.replayTimeoutStartMs)/1e3);this.timerId=requestAnimationFrame(this._replayTimeout.bind(this)),elapsedSeconds>=parseInt(this.config.replayTimeout,10)&&(this._disableGUI(),this.disable(),cancelAnimationFrame(this.timerId))},_disableGUI:function(){this._setState("ready",!1),this._setState("canplay",!1)},_playLimitReached:function(){return this.config.maxPlays&&this.timesPlayed>=this.config.maxPlays},_canPlay:function(){return(this.is("ready")||this.is("stalled"))&&!this.is("disabled")&&!this.is("hidden")&&!this._playLimitReached()},_canPause:function(){return!!this.config.canPause},_canSeek:function(){
return!!this.config.canSeek},_canResume:function(){return this.is("paused")&&this._canPlay()},_setState:function(name,value){return value=!!value,this.config.is[name]=value,this.$component&&this.$component.toggleClass(name,value),this},_fromState:function(stateName){return this._setState(stateName,!1),this.resume(),this},_toState:function(stateName){return this.pause(),this._setState(stateName,!0),this},_playingState:function(state,ended){return this._setState("playing",!!state),this._setState("paused",!state),this._setState("ended",!!ended),this},execute:function(command){if(this.player&&"function"==typeof this.player[command]){for(var _this$player,
_len2=arguments.length,args=new Array(1<_len2?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return(_this$player=this.player)[command].apply(_this$player,args)}}}.init(config)}return mediaplayerFactory.canPlay=function(type,mime){return support.canPlay(type,mime)},mediaplayerFactory.canPlayAudio=function(mime){return support.canPlayAudio(mime)},mediaplayerFactory.canPlayVideo=function(mime){return support.canPlayVideo(mime)},mediaplayerFactory.canControl=function(){return support.canControl()},mediaplayerFactory}),define("iframeNotifier",["jquery","lodash"],function($,_){function hasAccess(windowElt){
return window.__knownParent__&&windowElt&&windowElt!==window}return{parent:function(eventName,args){_.defer(function(){hasAccess(window.parent)&&window.parent.$&&(0,window.parent.$)(window.parent.document).trigger(eventName,args||[])})},top:function(eventName,args){_.defer(function(){hasAccess(window.top)&&window.top.$&&(0,window.top.$)(window.top.document).trigger(eventName,args||[])})}}}),define("ui/previewer",["jquery","lodash","core/mimetype","core/pluginifier","ui/mediaplayer","iframeNotifier","ui/documentViewer","ui/documentViewer/providers/pdfViewer"],function($,_,mimeType,Pluginifier,mediaplayer,iframeNotifier,documentViewer,pdfViewer){"use strict"
;$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,mimeType=mimeType&&Object.prototype.hasOwnProperty.call(mimeType,"default")?mimeType.default:mimeType,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,mediaplayer=mediaplayer&&Object.prototype.hasOwnProperty.call(mediaplayer,"default")?mediaplayer.default:mediaplayer,iframeNotifier=iframeNotifier&&Object.prototype.hasOwnProperty.call(iframeNotifier,"default")?iframeNotifier.default:iframeNotifier,
documentViewer=documentViewer&&Object.prototype.hasOwnProperty.call(documentViewer,"default")?documentViewer.default:documentViewer,pdfViewer=pdfViewer&&Object.prototype.hasOwnProperty.call(pdfViewer,"default")?pdfViewer.default:pdfViewer;var ns="previewer",dataNs="ui.".concat(ns),defaults={containerClass:"previewer"},_defaultSize={video:{width:480,height:300},audio:{width:290,height:36},pdf:{width:340,height:500}},previewGenerator={placeHolder:_.template("<p class='nopreview' data-type='${type}'>${desc}</p>"),youtubeTemplate:_.template("<div data-src=${jsonurl} data-type='video/youtube'></div>"),videoTemplate:_.template(
"<div data-src=${jsonurl} data-type='${mime}'></div>"),audioTemplate:_.template("<div data-src=${jsonurl} data-type='${mime}'></div>"),imageTemplate:_.template("<img src=${jsonurl} alt='${name}' />"),pdfTemplate:_.template("<div class='pdfpreview'></div>"),flashTemplate:_.template("<object data=${jsonurl} type='application/x-shockwave-flash'><param name='movie' value=${jsonurl}></param></object>"),mathmlTemplate:_.template("<iframe src=${jsonurl}></iframe>"),xmlTemplate:_.template("<pre>${xml}</pre>"),htmlTemplate:_.template("<iframe src=${jsonurl}></iframe>"),generate:function(tmpl,data){tmpl=this["".concat(tmpl,"Template")];if(data.jsonurl=JSON.stringify(
data.url),_.isFunction(tmpl))return tmpl(data)}};documentViewer.registerProvider("pdf",pdfViewer);var previewer={init:function(options){return options=_.defaults(options||{},defaults),this.each(function(){var $elt=$(this);$elt.data(dataNs)?$elt.previewer("update",options):($elt.hasClass(options.containerClass)||$elt.addClass(options.containerClass),$elt.data(dataNs,options),previewer._update($elt),$elt.trigger("create.".concat(ns)))})},update:function(data){return this.each(function(){var $elt=$(this),options=$elt.data(dataNs);$elt.data(dataNs,_.merge(options,data)),previewer._update($elt)})},_setPlayer:function($elt,player){$elt.data("player",player)},
_clearPlayer:function($elt){$elt&&$elt.data("player")&&($elt.data("player").destroy(),$elt.removeData("player"))},_update:function($elt){var $content,$controls,width,player,type,options=$elt.data(dataNs);previewer._clearPlayer($elt),options&&(type=options.type||mimeType.getFileType({mime:options.mime,name:options.url}),options.url&&(options.name||(options.name=options.url.substring(options.url.lastIndexOf("/")+1,options.url.lastIndexOf("."))),width=previewGenerator.generate(type,options)),width=width||previewGenerator.placeHolder({desc:"",type:options.type||options.mime||""}),($content=$(width)).on("load",function(){iframeNotifier.parent("imageloaded")}),
options.width&&$content.attr("width",options.width),options.height&&$content.attr("height",options.height),$elt.empty().html($content),options.url&&("audio"===type||"video"===type?(player=_defaultSize[type]||_defaultSize.video,width=options.width||player.width,player=options.height||player.height,player=mediaplayer({url:options.url,type:options.mime,renderTo:$content,width:width,height:player}).on("ready",function(){$elt.trigger("playerready")}),previewer._setPlayer($elt,player),$("body").off("keydown.mediaelement").on("keydown.mediaelement",function(event){27===event.keyCode&&previewer._clearPlayer($elt)}),($controls=$(
".actions a:nth-child(1), .actions a:nth-child(3), .icon-close, .upload-switcher, .select-action, .files li>span","#mediaManager")).off("mousedown.mediaelement").on("mousedown.mediaelement",function(event){event.stopPropagation(),$(this).closest(".mediaplayer").length||($controls.off("mousedown.mediaelement"),previewer._clearPlayer($elt))})):"pdf"===type&&(documentViewer({renderTo:$content,replace:!0,width:options.width||_defaultSize.pdf.width,height:options.height||_defaultSize.pdf.height}).load(options.url,"pdf"),_.defer(function(){iframeNotifier.parent("imageloaded")}))),$elt.trigger("update.".concat(ns)))},destroy:function(){this.each(function(){
var $elt=$(this);previewer._clearPlayer($elt),$elt.trigger("destroy.".concat(ns))})}};return Pluginifier.register(ns,previewer),function($container){$container.find("[data-preview]").each(function(){var $elt=$(this);$elt.previewer({url:$elt.data("preview"),type:$elt.data("preview-type"),mime:$elt.data("preview-mime"),width:$elt.width(),height:$elt.height()})})}}),define("ui/resourcemgr/filePreview",["jquery","lodash","util/bytes","context","ui/previewer"],function($,_,bytes,context,previewer){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
bytes=bytes&&Object.prototype.hasOwnProperty.call(bytes,"default")?bytes.default:bytes,context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context;var ns="resourcemgr";return function($filePreview){var $container=$filePreview.$target,$filePreview=$(".file-preview",$container),$previewer=$(".previewer",$container),$propType=$(".prop-type",$filePreview),$propSize=$(".prop-size",$filePreview),$propUrl=$(".prop-url",$filePreview),$link=$("a",$propUrl),$selectButton=$(".select-action",$filePreview),currentSelection=[];function stopPreview(){$previewer.previewer("update",{url:!1}),$propType.empty(),$propSize.empty(),$("a",
$propUrl).addClass("hidden"),$selectButton.attr("disabled","disabled")}$container.on("fileselect.".concat(ns),function(e,file){var $listItem=$container[0].querySelector("[data-file='".concat(file.file,"']"));file&&file.file&&$listItem&&$listItem.dataset?(function(file,preview,download,select){preview&&($previewer.previewer(file),$propType.text("".concat(file.type," (").concat(file.mime,")")),$propSize.text(bytes.hrSize(file.size)));download?($link.attr("href",file.download).attr("download",file.file),$link.hasClass("hidden")&&$link.removeClass("hidden")):($link.attr("href","#").attr("download","#"),$link.addClass("hidden"));select&&$selectButton.removeAttr(
"disabled")}(file,"true"===$listItem.dataset.preview,"true"===$listItem.dataset.download,"true"===$listItem.dataset.select),currentSelection=file):stopPreview()}),$container.on("filedelete.".concat(ns),function(e,path){currentSelection.file===path&&stopPreview()}),$selectButton.on("click",function(data){data.preventDefault();data=_.pick(currentSelection,["file","type","mime","size","alt"]);context.mediaSources&&0===context.mediaSources.length&&-1<data.file.indexOf("local/")&&(data.file=data.file.substring(6)),$container.trigger("select.".concat(ns),[[data]])})}}),define("ui/progressbar",["jquery","lodash","core/pluginifier"],function($,_,Pluginifier){
"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier;var ns="progressbar",dataNs="ui."+ns,defaults={disableClass:"disabled",style:"info",value:0,showProgress:!1},progressBar={init:function(options){return options=_.defaults(options||{},defaults),this.each(function(){var $pgElt,percent,$elt=$(this);$elt.data(dataNs)||(options.value=parseInt(options.value,10),$elt.data(dataNs,options),percent=options.value+"%",$pgElt=$("<span></span>").width(percent
).attr("title",percent),options.showProgress&&$pgElt.text(percent),$elt.addClass("progressbar").addClass(options.style).empty().append($pgElt),$elt.trigger("create."+ns))})},_update:function($elt,value){var $pgElt,percent,options=$elt.data(dataNs);0<=(value=parseInt(value,10))&&value<=100&&(percent=value+"%",($pgElt=$elt.children("span")).width(value+"%").attr("title",percent),options.showProgress&&$pgElt.text(percent),options.value=value,$elt.data(dataNs,options),$elt.trigger("update."+ns,value))},_value:function($elt,value){var options=$elt.data(dataNs);return void 0!==value?progressBar._update($elt,value):options.value},destroy:function(){
return this.each(function(){var $elt=$(this);$elt.data(dataNs)&&($elt.removeClass("progressbar").empty().removeData(dataNs),$elt.trigger("destroy."+ns))})}};Pluginifier.register(ns,progressBar,{expose:["update","value"]})}),define("ui/uploader",["jquery","lodash","i18n","async","core/pluginifier","util/bytes","handlebars","lib/dompurify/purify","ui/filesender","ui/progressbar"],function($$1,_,__,async,Pluginifier,bytes,Handlebars,DOMPurify,filesender,progressbar){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,async=async&&Object.prototype.hasOwnProperty.call(async,"default")?async.default:async,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,
bytes=bytes&&Object.prototype.hasOwnProperty.call(bytes,"default")?bytes.default:bytes,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,options,buffer="",helperMissing=(helpers=this.merge(helpers,stack1.helpers)).helperMissing,escapeExpression=this.escapeExpression,
functionType="function";return buffer+='<div class="file-upload grid-row">\n <span class="btn-info btn-browse small col-5"><span class="icon-folder-open"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Browse...",options):helperMissing.call(depth0,"__","Browse...",options)))+'</span>\n <span class="file-name col-7 truncate placeholder">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"No file selected",options):helperMissing.call(depth0,"__","No file selected",options)))+'</span>\n <input type="file" name="',stack1=(
helper=helpers.inputName)||typeof(helper=depth0&&depth0.inputName)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"multiple"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='>\n</div>\n\x3c!--<div class="grid-row" style="display:none;">--\x3e\n\x3c!--<ul class="file-list"></ul>--\x3e\n\x3c!--</div>--\x3e\n<div class="grid-row">\n <div class="file-drop col-12" data-drop-msg="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__
)?helper.call(depth0,"Drop the files to upload",options):helperMissing.call(depth0,"__","Drop the files to upload",options)))+'">\n <div class="dragholder">\n ~ '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"or",options):helperMissing.call(depth0,"__","or",options)))+" ~\n <br/>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.multiple,{hash:{},inverse:this.program(5,function(depth0,helper){var options,buffer="";return buffer+="\n "+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,
"Drag file here",options):helperMissing.call(depth0,"__","Drag file here",options)))+"\n "},data),fn:this.program(3,function(depth0,helper){var options,buffer="";return buffer+="\n "+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Drag files here",options):helperMissing.call(depth0,"__","Drag files here",options)))+"\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n </div>\n</div>\n<div class="grid-row">\n <div class="progressbar col-12"></div>\n <br/>\n</div>\n<div class="grid-row">\n ',!(stack1=helpers.if.call(depth0,
depth0&&depth0.showResetButton,{hash:{},inverse:this.noop,fn:this.program(7,function(depth0,helper){var options,buffer="";return buffer+='\n <button type="button" class="btn-info btn-reset small"><span class="icon-eraser"></span>'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Reset",options):helperMissing.call(depth0,"__","Reset",options)))+"</button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.showUploadButton,{hash:{},inverse:this.noop,fn:this.program(9,function(depth0,data){var stack1,buffer=""
;return buffer+='\n <button class="btn-success btn-upload small"><span class="icon-upload"></span>',stack1=(stack1=helpers.uploadBtnText)||typeof(stack1=depth0&&depth0.uploadBtnText)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</button>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression
;return buffer+='<li data-file-name="',buffer+=escapeExpression((helper=helpers.name)||"function"==typeof(helper=depth0&&depth0.name)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n ',buffer+=escapeExpression((helper=helpers.name)||"function"==typeof(helper=depth0&&depth0.name)?helper.call(depth0,{hash:{},data:data}):helper)+'\n <span class="size">',buffer+=escapeExpression((helper=helpers.size)||"function"==typeof(helper=depth0&&depth0.size)?helper.call(depth0,{hash:{},data:data}):helper)+'</span>\n <span class="status"></span>\n <a href="#" data-role="delete"><span class="icon-close"></span></a>\n</li>\n'});var ns="uploader",
dataNs="ui."+ns,defaults={upload:!0,read:!1,multiple:!1,uploadQueueSize:3,inputName:"content",showResetButton:!0,showUploadButton:!0,browseBtnClass:"btn-browse",uploadBtnClass:"btn-upload",resetBtnClass:"btn-reset",fileNameClass:"file-name",dropZoneClass:"file-drop",progressBarClass:"progressbar",dragOverClass:"drag-hover",formAttributes:{class:"uploader uploaderContainer"},defaultErrMsg:__("Unable to upload file"),uploadBtnText:__("Upload"),fileSelect:function(files,done){return _.isFunction(done)?done(files):files}},tests={filereader:"undefined"!=typeof FileReader,dnd:"draggable"in document.createElement("span")},uploader={init:function(options){
var self=uploader;return options=_.defaults(options||{},defaults),this.each(function(){var $builtInForm,$elt=$$1(this);if(!$elt.data(dataNs)){$elt.html($builtInForm=Template(options,$builtInForm)),($builtInForm=options.$form&&options.$form.length?options.$form:$elt.find("form")).length||($builtInForm=$elt.closest("form")),$builtInForm.length||($elt.wrap($$1("<form>",options.formAttributes)),$builtInForm=$elt.parent()),options.$input=$$1("input[type=file]",$elt),options.$browseBtn=$$1("."+options.browseBtnClass,$elt),options.$fileName=$$1("."+options.fileNameClass,$elt),options.$dropZone=$$1("."+options.dropZoneClass,$elt),options.$progressBar=$$1(
"."+options.progressBarClass,$elt),options.$form=$builtInForm,options.$uploadBtn=$$1("."+options.uploadBtnClass,$elt),options.$resetBtn=$$1("."+options.resetBtnClass,$elt),options.useDropZone=tests.dnd,options.dropZonePlaceholder=options.$dropZone.html(),options.fileNamePlaceholder=options.$fileName.text(),options.files=[],$elt.data(dataNs,options),self._reset($elt);var dragOutHandler=function(e){e.preventDefault(),e.stopPropagation(),options.$dropZone.removeClass(options.dragOverClass)};if(!tests.filereader)throw new Error("FileReader API not supported! Please use a compliant browser!");options.$input.on("change",function(e){var finalFiles=[];_.forEach(
e.target.files,function(file){finalFiles.push(file)}),self._selectFiles($elt,finalFiles)}),options.$input.on("mousedown",function(e){return e.preventDefault(),$$1(this).blur(),!1}),options.useDropZone?($$1(document).off("drop."+ns).on("drop."+ns,function(e){return e.stopImmediatePropagation(),e.preventDefault(),!1}),$$1(document).off("dragover."+ns).on("dragover."+ns,function(e){return e.stopImmediatePropagation(),e.preventDefault(),!1}),options.$dropZone.on("dragover",function(e){e.preventDefault(),e.stopPropagation(),options.$dropZone.addClass(options.dragOverClass)}).on("dragend",dragOutHandler).on("dragleave",dragOutHandler).on("drop",function(append){
var files=[];return dragOutHandler(append),append.target.files?files=_.values(append.target.files):append.originalEvent.files?files=_.values(append.originalEvent.files):append.originalEvent.dataTransfer&&append.originalEvent.dataTransfer.files&&(files=_.values(append.originalEvent.dataTransfer.files)),files&&files.length&&(append=0<options.$dropZone.children("ul").length,options.multiple||(append=!(files=[files[0]])),self._selectFiles($elt,files,append)),!1})):options.$dropZone.hide(),$elt.on("fileselect."+ns,function(){0===options.files.length&&self._reset($elt),options.upload&&options.$uploadBtn.off("click").on("click",function(e){e.preventDefault(),
self._upload($elt,options.files)}).removeProp("disabled"),options.read&&self._read($elt,options.files),options.$resetBtn.off("click").on("click",function(e){e.preventDefault(),self._reset($elt)}).removeProp("disabled")}),$elt.trigger("create."+ns)}})},_selectFiles:function($elt,files,append){var listContent,self=this,options=$elt.data(dataNs),updateFileName=function(){var length=options.files.length;options.$fileName.text(length+" "+__(1<length?"files selected":"file selected")).removeClass("placeholder")};files.length<=0&&!append&&self._reset($elt),0<files.length&&options.fileSelect.call($elt,files,function(filteredFiles){
options.files=append?options.files.concat(filteredFiles):filteredFiles,options.useDropZone?(updateFileName(),listContent=_.reduce(filteredFiles,function(acc,data){return acc+(data={name:data.name,size:bytes.hrSize(data.size)},html=Template$1(data,html));var html},""),append?options.$dropZone.children("ul").append(listContent):options.$dropZone.html("<ul>"+listContent+"</ul>"),options.$dropZone.off("click."+ns).on("click."+ns,"[data-role=delete]",function(e){var $fileEntry=$$1(this).parent(),name=$fileEntry.data("file-name");e.preventDefault(),e.stopPropagation(),name&&(options.files=_.reject(options.files,{name:name}),0===options.files.length?self._reset(
$elt):updateFileName(),$fileEntry.remove())})):(options.files=options.files.slice(0,1),options.$fileName.text(files[0].name).removeClass("placeholder")),$elt.trigger("fileselect."+ns)})},_files:function(options){var files=[],options=options.data(dataNs);return options&&(files=options.files),files},_reset:function($elt){var options=$elt.data(dataNs);options.$fileName.text(options.fileNamePlaceholder).addClass("placeholder"),options.$dropZone.empty().html(options.dropZonePlaceholder),options.$uploadBtn.prop("disabled",!0),options.$resetBtn.prop("disabled",!0);var importButton=options.$form[0].querySelector("button");importButton&&importButton.setAttribute(
"disabled",!0),options.$progressBar&&options.$progressBar.removeClass("success").progressbar("destroy").progressbar({value:0}),$elt.trigger("reset."+ns)},_upload:function($elt){var length,$fileEntries,entryHeight,q,errors=[],options=$elt.data(dataNs);options&&options.files.length&&(length=options.files.length,$fileEntries=$$1("ul",options.$dropZone),entryHeight=$$1("li:first",$fileEntries).outerHeight(),q=async.queue(function(file,done){var index=$$1('li[data-file-name="'+file.name+'"]',$fileEntries),$status=$$1(".status",index),index=$fileEntries.children().index(index);options.$dropZone.stop(!0,!0).animate({scrollTop:index*entryHeight},25),
$status.removeClass("success").removeClass("error").addClass("sending"),options.$form.sendfile({url:options.uploadUrl,file:file,loaded:function(result){$status.removeClass("sending").removeClass("error").addClass("success"),done(null,result)},failed:function(message){message=message||options.defaultErrMsg,$status.removeClass("sending").removeClass("success").addClass("error").attr("title",message),done(new Error(message))}})},options.uploadQueueSize||1),options.$uploadBtn.prop("disabled",!0),options.$resetBtn.prop("disabled",!0),options.$progressBar.progressbar("value",0),_.forEach(options.files,function(file,index){_.delay(function(){q.push(file,function(
err,result){var complete=(index+1)/length*100;err?(errors.push(err),$elt.trigger("fail."+ns,[file,err])):$elt.trigger("upload."+ns,[file,result]),options.$progressBar.progressbar("value",complete),100<=complete&&(errors.length===length?options.$progressBar.addClass("error"):0<errors.length?options.$progressBar.addClass("warning"):options.$progressBar.addClass("success"),$elt.trigger("end."+ns))})},50)}))},_read:function($elt){var options=$elt.data(dataNs);options&&options.files.length&&_.forEach(options.files,function(file){file.name,file.size,file.type;var reader=new FileReader;reader.onload=function(e){options.$progressBar.progressbar("value",100),
$elt.trigger("readend."+ns,[file,e.target.result])},reader.onloadstart=function(e){options.$progressBar.progressbar("value",0),$elt.trigger("readstart."+ns,[file])},options.$progressBar.length&&(reader.onprogress=function(percentProgress){percentProgress=Math.ceil(Math.round(percentProgress.loaded)/Math.round(percentProgress.total)*100);options.$progressBar.progressbar("value",percentProgress)}),reader.readAsDataURL(file)})},destroy:function(){this.each(function(){var $elt=$$1(this);$$1(document).off("drop."+ns).off("dragover."+ns),$elt.empty(),$elt.trigger("destroy."+ns)})}};Pluginifier.register(ns,uploader,{expose:["reset","selectFiles","upload","read"]})}
),define("ui/resourcemgr/fileSelector",["jquery","lodash","async","i18n","core/mimetype","handlebars","lib/dompurify/purify","ui/feedback","context","ui/uploader"],function($$1,_,async,__,mimeType,Handlebars,DOMPurify,feedback,context,uploader){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,
_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,async=async&&Object.prototype.hasOwnProperty.call(async,"default")?async.default:async,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,mimeType=mimeType&&Object.prototype.hasOwnProperty.call(mimeType,"default")?mimeType.default:mimeType,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,feedback=feedback&&Object.prototype.hasOwnProperty.call(feedback,"default")?feedback.default:feedback,
context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],stack1=stack1||{};var buffer="",helperMissing=(helpers=this.merge(helpers,Handlebars.helpers)).helperMissing,escapeExpression=this.escapeExpression,functionType="function",self=this;function program2(depth0,data){return' data-download="true" '}function program4(depth0,data){return' data-preview="true" '}function program6(depth0,data){return' data-select="true" '}
function program8(depth0,data){var stack1,buffer="";return buffer+='\n <span class="tlb-group">\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.read,{hash:{},inverse:self.noop,fn:self.program(9,program9,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.download,{hash:{},inverse:self.noop,fn:self.program(11,program11,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.delete,{hash:{},inverse:self.noop,fn:self.program(13,program13,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </span>\n "}function program9(depth0,helper){var options,buffer="";return buffer+='\n <a href="#" class="tlb-button-off select" title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Select this file",options):helperMissing.call(
depth0,"__","Select this file",options)))+'"><span class="icon-move-item"></span></a>\n '}function program11(depth0,options){var stack1,helper,buffer="";return buffer+='\n <a href="',stack1=(helper=helpers.downloadUrl)||typeof(helper=depth0&&depth0.downloadUrl)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1)+'" download="',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:options}):helper,buffer+=escapeExpression(stack1
)+'" target="_blank" class="tlb-button-off download" title="'+escapeExpression((options={hash:{},data:options},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Download this file",options):helperMissing.call(depth0,"__","Download this file",options)))+'"><span class="icon-download"></span></a>\n '}function program13(depth0,helper){var options,buffer="";return buffer+='\n <a href="#" class="tlb-button-off" title="'+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Remove this file",options):helperMissing.call(depth0,"__"
,"Remove this file",options)))+'" data-delete=":parent li"><span class="icon-bin"></span></a>\n '}return!(stack1=helpers.each.call(depth0,depth0&&depth0.files,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <li data-type="',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" \n data-file="',stack1=(helper=helpers.uri)||typeof(helper=depth0&&depth0.uri)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(
stack1)+'" \n data-display="',stack1=(helper=helpers.display)||typeof(helper=depth0&&depth0.display)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" \n data-mime="',stack1=(helper=helpers.mime)||typeof(helper=depth0&&depth0.mime)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" \n data-size="',stack1=(helper=helpers.size)||typeof(helper=depth0&&depth0.size)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" \n data-url="',stack1=(helper=helpers.viewUrl)||typeof(
helper=depth0&&depth0.viewUrl)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" \n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.download,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.preview,{hash:{},inverse:self.noop,fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(
stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.read,{hash:{},inverse:self.noop,fn:self.program(6,program6,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n data-alt="',stack1=(helper=helpers.alt)||typeof(helper=depth0&&depth0.alt)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <span class="desc truncate">',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'</span>\n <div class="actions">\n <div class="tlb">\n <div class="tlb-top">\n <span class="tlb-box">\n <span class="tlb-bar">\n <span class="tlb-start"></span>\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.permissions)||!1===stack1?stack1:stack1.read,{hash:{},inverse:self.noop,fn:self.program(8,program8,data),data:data}))&&0!==stack1||(buffer+=stack1),
buffer+='\n <span class="tlb-end"></span>\n </span>\n </span>\n </div>\n </div>\n </div>\n </li>\n'},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n"});var ns="resourcemgr";return function(options){var root=options.root||"/",disableUpload=options.disableUpload||!1,$container=options.$target,$fileSelector=$$1(".file-selector",$container),$fileContainer=$$1(".files",$fileSelector),$placeholder=$$1(".empty",$fileSelector),$uploader=$$1(".file-upload-container",$fileSelector),parentSelector="#".concat($container.attr("id")," .file-selector"),
$pathTitle=$fileSelector.find("h1 > .title"),$browserTitle=$$1(".file-browser > h1",$container);disableUpload?$$1(".upload-switcher",$fileSelector).remove():function(currentPath){var errors=[],$switcher=$$1(".upload-switcher a",$fileSelector);$uploader.on("upload.uploader",function(e,file,result){var path=(path=$$1('[data-display="'.concat(currentPath,'"]')).data("path")||$$1('[data-display="/'.concat(currentPath,'"]')).data("path"))||currentPath;$container.trigger("filenew.".concat(ns),[result,path])}),$uploader.on("fail.uploader",function(e,file,err){errors.push(__("Unable to upload file %s : %s",file.name,err.message))}),$uploader.on("end.uploader",
function(){0===errors.length?_.delay(switchUpload,500):feedback().error("<ul><li>".concat(errors.join("</li><li>"),"</li></ul>"),{encodeHtml:!1}),errors=[]}),$uploader.uploader({upload:!0,multiple:!0,uploadUrl:"".concat(options.uploadUrl,"?").concat($$1.param(options.params),"&").concat(options.pathParam,"=").concat(currentPath),fileSelect:function(files,done){var givenLength=files.length,fileNames=[];if($fileContainer.find("li > .desc").each(function(){fileNames.push($$1(this).text().toLowerCase())}),options.params.filters){var i,filters=[];if(_.isString(options.params.filters))filters=options.params.filters.split(",");else for(i in options.params.filters
)filters.push(options.params.filters[i].mime);(files=_.filter(files,function(checkType){checkType=checkType.type.replace(/^["']+|['"]+$/g,"");return _.contains(filters,checkType)})).length!==givenLength&&feedback().error("Unauthorized files have been removed")}async.filter(files,function(file,cb){var pathParam,result=!0;options.fileExistsUrl?((pathParam="".concat(currentPath,"/").concat(file.name)).replace("//","/"),$$1.getJSON("".concat(options.fileExistsUrl,"?").concat($$1.param(options.params),"&").concat(options.pathParam,"=").concat(pathParam),function(response){response&&!0===response.exists&&(result=window.confirm("Do you want to override ".concat(
file.name,"?"))),cb(result)})):(_.contains(fileNames,file.name.toLowerCase())&&(result=window.confirm("Do you want to override ".concat(file.name,"?"))),cb(result))},done)}}),$container.on("folderselect.".concat(ns),function(e,fullPath,data,uri){currentPath=uri,$uploader.uploader("options",{uploadUrl:"".concat(options.uploadUrl,"?").concat($$1.param(options.params),"&").concat(options.pathParam,"=").concat(currentPath,"&relPath=").concat(currentPath)})});var switchUpload=function(){"none"===$fileContainer.css("display")?($uploader.hide(),$fileContainer.show(),$switcher.filter(".upload").css({display:"inline-block"}),$switcher.filter(".listing").hide(),
$browserTitle.text(__("Browse folders:"))):($fileContainer.hide(),$placeholder.hide(),$uploader.show(),$switcher.filter(".upload").hide(),$switcher.filter(".listing").css({display:"inline-block"}),$browserTitle.text(__("Upload into:")),$uploader.uploader("reset"))};$switcher.click(function(e){e.preventDefault(),switchUpload()})}(root),$container.on("folderselect.".concat(ns),function(e,fullPath,data,activePath,$dummy){var start,end,tokens,textSize;data=data.map(function(dataItem){var item,isAssets,permissions;return Array.isArray(dataItem.permissions)&&(isAssets=((item=dataItem).uri||item.path||"").includes("mediamanager"),permissions={read:!0,write:!0,
preview:!0,download:!0,upload:!0,delete:!0},item.permissions&&(item.permissions.includes("READ")||(permissions.read=!1),item.permissions.includes("WRITE")||(permissions.write=!1),isAssets?(item.permissions.includes("PREVIEW")||(permissions.preview=!1),item.permissions.includes("DOWNLOAD")||(permissions.download=!1),item.permissions.includes("UPLOAD")||(permissions.upload=!1),item.permissions.includes("DELETE")||(permissions.delete=!1)):(permissions.read||(permissions.preview=!1,permissions.download=!1),permissions.write||(permissions.delete=!1,permissions.upload=!1))),item.permissions=permissions),dataItem}),$container[0].querySelector(".upload")&&(
$dummy&&$dummy.permissions&&$dummy.permissions.upload?$container[0].querySelector(".upload").classList.remove("hidden"):$container[0].querySelector(".upload").classList.add("hidden")),$pathTitle.text((textSize=fullPath,$dummy=(tokens=$pathTitle).clone().detach().css({position:"absolute",visibility:"hidden","text-overflow":"clip",width:"auto"}).text(textSize).insertAfter(tokens),textSize=$dummy.width(),$dummy.remove(),textSize>tokens.width()?(start=(tokens=(tokens=fullPath).replace(/\/$/,"").split("/")).length-3,end=tokens.length-1,_.map(tokens,function(token,index){return start<index&&token?index<end?token[0]:token:void 0}).filter(Boolean).join("/")
):fullPath)),_.isArray(data)&&(function(files){$fileContainer.empty(),files.length?($placeholder.hide(),$fileContainer.append(function(data,html){return html=Template(data,html)}({files:files}))):"none"!==$fileContainer.css("display")&&$placeholder.show()}(_.filter(data,function(item){return!!item.uri}).map(function(file){return file.type=mimeType.getFileType(file),void 0===file.identifier?file.display="".concat(fullPath,"/").concat(file.name).replace("//","/"):file.display=file.identifier+file.name,file.viewUrl="".concat(options.downloadUrl,"?").concat($$1.param(options.params),"&").concat(options.pathParam,"=").concat(encodeURIComponent(file.uri)),
file.downloadUrl="".concat(file.viewUrl,"&svgzsupport=true"),file})),activePath&&$$1('li[data-file="'.concat(activePath,'"]')).trigger("click"))}),$$1(parentSelector).off("click",".files li").on("click",".files li",function($files){var $selected,data=$files.target;data.hasAttribute("data-delete")||$$1(data).hasClass("icon-bin")||($selected=$$1(this),$files=$$1(".files > li",$fileSelector),data=_.clone($selected.data()),$files.removeClass("active"),$selected.addClass("active"),$container.trigger("fileselect.".concat(ns),[data]))}),$$1(parentSelector).off("click",".files li a.select").on("click",".files li a.select",function(data){data.preventDefault()
;data=_.pick($$1(this).parents("li").data(),["file","type","mime","size","alt"]);context.mediaSources&&0===context.mediaSources.length&&-1<data.file.indexOf("local/")&&(data.file=data.file.substring(6)),$container.trigger("select.".concat(ns),[[data]])}),$fileContainer.on("delete.deleter",function(e,$target){var path,params={};"deleter"===e.namespace&&$target.length&&(path=$target.data("file"),params[options.pathParam]=path,$$1.getJSON(options.deleteUrl,_.merge(params,options.params),function(response){response.deleted&&$container.trigger("filedelete.".concat(ns),[path])}))})}}),define("css!ui/resourcemgr/css/resourcemgr",[],function(){}),define(
"ui/resourcemgr",["jquery","lodash","core/pluginifier","ui/resourcemgr/fileBrowser","ui/resourcemgr/filePreview","ui/resourcemgr/fileSelector","handlebars","i18n","lib/dompurify/purify","ui/modal","css!ui/resourcemgr/css/resourcemgr.css"],function($$1,_,Pluginifier,fileBrowser,filePreview,fileSelector,Handlebars,__,DOMPurify,modal,resourcemgr_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__"
,function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,
fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}
$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,fileBrowser=fileBrowser&&Object.prototype.hasOwnProperty.call(fileBrowser,"default")?fileBrowser.default:fileBrowser,filePreview=filePreview&&Object.prototype.hasOwnProperty.call(filePreview,"default")?filePreview.default:filePreview,fileSelector=fileSelector&&Object.prototype.hasOwnProperty.call(fileSelector,"default")?fileSelector.default:fileSelector,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing
;return buffer+='<div class="resourcemgr modal">\n\n <h2>',buffer+=escapeExpression((helper=helpers.title)||"function"==typeof(helper=depth0&&depth0.title)?helper.call(depth0,{hash:{},data:data}):helper)+'</h2>\n\n <div class="file-wrapper">\n\n \x3c!-- left section: items selection --\x3e\n <section class="file-browser">\n <h1>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Browse resources",options):helperMissing.call(depth0,"__","Browse resources",options))
)+'</h1>\n <div class="file-browser-wrapper"></div>\n </section>\n\n \x3c!-- test editor --\x3e\n <section class="file-selector">\n\n <h1>\n <div class="title lft"></div>\n <div class="upload-switcher rgt">\n <a href="#" class="btn-info small upload hidden"><span class="icon-add"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Add file(s)",options):helperMissing.call(depth0,"__","Add file(s)",options))
)+'</a>\n <a href="#" class="btn-info small listing"><span class="icon-undo"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Back to listing",options):helperMissing.call(depth0,"__","Back to listing",options)))+'</a>\n </div>\n </h1>\n\n <div class="empty">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"No files",options):helperMissing.call(depth0,"__","No files",options))
)+'\n </div>\n\n <ul class="files"></ul>\n\n <div class="file-upload-container"></div>\n\n <div class="pagination-bottom"></div>\n\n </section>\n\n <section class="file-preview">\n\n <h1>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Preview",options):helperMissing.call(depth0,"__","Preview",options)))+'</h1>\n\n <div class="previewer">\n <p class="nopreview"></p>\n </div>\n\n <h2 class="toggler" data-toggle="~ .file-properties">'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"File Properties",options):helperMissing.call(depth0,"__","File Properties",options)))+'</h2>\n\n <div class="file-properties">\n\n <div class="grid-row">\n <div class="col-2">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Type",options):helperMissing.call(depth0,"__","Type",options))
)+'\n </div>\n <div class="col-10 prop-type"></div>\n </div>\n\n <div class="grid-row">\n <div class="col-2">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Size",options):helperMissing.call(depth0,"__","Size",options))
)+'\n </div>\n <div class="col-10 prop-size"></div>\n </div>\n\n <div class="grid-row prop-url">\n <div class="actions">\n <a href="#" download="" target="_blank" class="tlb-button-off download hidden" title="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Download this file",options):helperMissing.call(depth0,"__","Download this file",options))
)+'">\n <button class="btn-info small">\n <span class="icon-download"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Download this file",options):helperMissing.call(depth0,"__","Download this file",options)))+'\n </button>\n </a>\n </div>\n </div>\n </div>\n\n <h2 class="toggler" data-toggle="~ .actions">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Actions",options
):helperMissing.call(depth0,"__","Actions",options)))+'</h2>\n\n <div class="actions">\n <button class="btn-success select-action small" disabled>\n <span class="icon-move-item"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Select",options):helperMissing.call(depth0,"__","Select",options)))+"\n </button>\n </div>\n\n </section>\n\n </div>\n</div>\n"});var ns="resourcemgr",dataNs="ui."+ns,defaults={mediaSources:[{root:"local",path:"/"}],open:!0,appendContainer:".tao-scope:first",title:""},resourceMgr={
init:function(options){var self=resourceMgr;return options=_.defaults(options,defaults),this.each(function(){var $target,$fileBrowser,$elt=$$1(this);$elt.data(dataNs)?(options=$elt.data(dataNs)).open&&self._open($elt):($elt.data(dataNs,options),_.functions(options).forEach(function(eventName){$elt.on(eventName+"."+ns,function(){options[eventName].apply($elt,arguments)})}),($target=options.$target||self._createTarget($elt)).modal({startClosed:!0,minWidth:"responsive"}),$target.on("select."+ns,function(e,files){self._close($elt),$elt.trigger(e,[files])}),$target.on("closed.modal",function(){$elt.trigger("close."+ns)}),$fileBrowser=$$1(
".file-browser .file-browser-wrapper",$target),options.mediaSourcesUrl?$$1.getJSON(options.mediaSourcesUrl).done(function(data){for(var mediaSources=data||defaults.mediaSources,i=0;i<mediaSources.length;i++)options.root=mediaSources[i].root,options.path=mediaSources[i].path,$fileBrowser.append('<div class="'+options.root+'"><ul class="folders"></ul></div>'),fileBrowser(options)}).fail(function(){for(var i=0;i<defaults.mediaSources.length;i++)options.root=defaults.mediaSources[i].root,options.path=defaults.mediaSources[i].path,$fileBrowser.append('<div class="'+options.root+'"><ul class="folders"></ul></div>'),fileBrowser(options)}
):options.path&&options.root&&($fileBrowser.append('<div class="'+options.root+'"><ul class="folders"></ul></div>'),fileBrowser(options)),$fileBrowser.find("li.root:last").addClass("active"),fileSelector(options),filePreview(options),$elt.trigger("create."+ns,[$target[0]]),options.open&&self._open($elt))})},_createTarget:function($elt){var data,html,options=$elt.data(dataNs);return options&&(options.targetId="resourcemgr-"+$$1(document).find(".resourcemgr").length,options.$target=$$1((data={title:options.title||""},html=Template(data,html))),options.$target.attr("id",options.targetId).css("display","none").appendTo(options.appendContainer),$elt.data(dataNs,
options)),options.$target},_open:function($elt){var options=$elt.data(dataNs);options&&options.$target&&(options.$target.modal("open"),$elt.trigger("open."+ns))},_close:function(options){options=options.data(dataNs);options&&options.$target&&options.$target.modal("close")},destroy:function(){this.each(function(){var $elt=$$1(this),options=$elt.data(dataNs);$elt.data(dataNs,null),void 0!==options.bindEvent&&!1!==options.bindEvent&&$elt.off(options.bindEvent),options.targetId?options.$target.on("closed.modal",function(){$$1("#"+options.targetId).remove(),$$1(window).off("resize.resourcemgr"),$elt.trigger("destroy."+ns)}).modal("close"):($$1(window).off(
"resize.resourcemgr"),$elt.trigger("destroy."+ns))})}};Pluginifier.register(ns,resourceMgr)}),define("ui/mediaEditor/plugins/mediaAlignment/helper",["exports"],function(exports){"use strict";var positionFloat=function(widget,position){if(position){var className;switch(widget.$container.removeClass("".concat("wrap-left"," ").concat("wrap-right")),widget.$original.removeClass("".concat("wrap-left"," ").concat("wrap-right")),position){case"right":className="wrap-right";break;case"left":className="wrap-left";break;case"default":className=""}widget.$container.addClass(className),widget.element.attr("class",className),widget.$original.trigger(
"contentChange.qti-widget")}};exports.FLOAT_LEFT_CLASS="wrap-left",exports.FLOAT_RIGHT_CLASS="wrap-right",exports.initAlignment=function(widget){return widget.element.hasClass("wrap-left")?positionFloat(widget,"left"):widget.element.hasClass("wrap-right")?positionFloat(widget,"right"):void 0},exports.positionFloat=positionFloat,Object.defineProperty(exports,"__esModule",{value:!0})}),define("ui/mediaEditor/plugins/mediaDimension/helper",["lib/gamp/gamp"],function(gamp){"use strict";gamp=gamp&&Object.prototype.hasOwnProperty.call(gamp,"default")?gamp.default:gamp;var parseVal=function(val,precision){return"string"==typeof val&&(val=parseFloat(val)),val=val||0
,gamp.round(val,precision)},getActualRatio=function(conf){return 0<conf.sizeProps.px.current.width&&0<conf.sizeProps.px.current.height&&(conf.sizeProps.ratio.current=gamp.round(conf.sizeProps.px.current.width/conf.sizeProps.px.current.height,conf.precision)),(conf.denyCustomRatio?conf.sizeProps.ratio.natural:conf.sizeProps.ratio.current)||1},applyNewPercent=function(val,conf){return conf.sizeProps["%"].current.width=val,100<conf.sizeProps["%"].current.width&&(conf.sizeProps["%"].current.width=100),conf.sizeProps["%"].current.width<1&&(conf.sizeProps["%"].current.width=1),conf};return{applyDimensions:function(conf,dimensions){
return conf.precision=conf&&conf.hasOwnProperty("precision")?parseInt(conf.precision,10):5,dimensions&&(dimensions.hasOwnProperty("width")&&(conf=function(conf,val,maxWidth){var ratio=getActualRatio(conf),val=parseVal(val,conf.precision);return conf.sizeProps.px.current.width=val,(conf=applyNewPercent(gamp.round(100*val/maxWidth,conf.precision),conf)).syncDimensions?conf.sizeProps.px.current.height=gamp.round(val/ratio,conf.precision):getActualRatio(conf),conf}(conf,dimensions.width,dimensions.maxWidth)),dimensions.hasOwnProperty("height")&&(conf=function(conf,val,maxWidth){var ratio=getActualRatio(conf),val=parseVal(val,conf.precision)
;return conf.sizeProps.px.current.height=val,conf.syncDimensions?(conf.sizeProps.px.current.width=gamp.round(val*ratio,conf.precision),conf=applyNewPercent(gamp.round(100*val/maxWidth,conf.precision),conf)):getActualRatio(conf),conf}(conf,dimensions.height,dimensions.maxWidth)),dimensions.hasOwnProperty("percent")&&(conf=function(conf,percent,maxWidth){return(percent=parseVal(percent,conf.precision))<0?percent=0:100<percent&&(percent=100),(conf=applyNewPercent(gamp.round(percent,conf.precision),conf)).sizeProps.ratio.current=conf.sizeProps.ratio.natural,conf.sizeProps.px.current.width=gamp.round(maxWidth*conf.sizeProps["%"].current.width/100,conf.precision),
conf.sizeProps.px.current.height=gamp.round(conf.sizeProps.px.current.width/conf.sizeProps.ratio.natural,conf.precision),conf}(conf,dimensions.percent,dimensions.maxWidth))),conf},round:function(val,precision){return gamp.round(val,0<precision&&precision<100?precision:5)},getMediaContainerWidth:function(media){return media.$container.innerWidth()}}}),define("css!ui/mediaEditor/plugins/mediaDimension/style",[],function(){}),define("ui/mediaEditor/plugins/mediaDimension/mediaDimensionComponent",["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify","ui/mediaEditor/plugins/mediaDimension/helper","nouislider","ui/tooltip",
"css!ui/mediaEditor/plugins/mediaDimension/style.css"],function($$1,_,component,Handlebars,__,DOMPurify,helper,nouislider,tooltip,style_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default"
)?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,helper=helper&&Object.prototype.hasOwnProperty.call(helper,"default")?helper.default:helper,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{}
;var helper,buffer="",helperMissing=helpers.helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="media-sizer media-sizer-synced">\n\n <div class="media-sizer-responsive-toggle">\n <label>\n <input type="checkbox" ',!(helper=helpers.if.call(depth0,depth0&&depth0.responsive,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'checked="checked"'},data),data:data}))&&0!==helper||(buffer+=helper),buffer+=' class="media-mode-switch"/>\n <span class="icon-checkbox"></span>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,
"Responsive mode",options):helperMissing.call(depth0,"__","Responsive mode",options)))+'\n </label>\n <span class="icon-help tooltipstered" data-tooltip="~ .tooltip-content:first" data-tooltip-theme="warning"></span>\n\n <div class="tooltip-content">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Media resize along with their container, e.g. 50% means half of the container size not half of the media size.",options):helperMissing.call(depth0,"__","Media resize along with their container, e.g. 50% means half of the container size not half of the media size.",options))
)+'\n </div>\n </div>\n\n\n <div class="media-sizer-percent">\n <label for="media-sizer-percent-width">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Size",options):helperMissing.call(depth0,"__","Size",options))
)+'</label>\n <span class="item-editor-unit-input-box" style="display:-moz-box;">\n <input type="text" name="width" id="media-sizer-percent-width" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n <span class="unit-indicator">%</span>\n </span>\n\n <div class="media-sizer-reset media-sizer-reset-percent" data-unit="percent">\n <span class="icon-reset"></span>\n </div>\n\n <div class="media-sizer-slider-box">\n <div class="media-sizer-slider"></div>\n </div>\n </div>\n\n <div class="media-sizer-pixel">\n <div class="media-sizer-sync">\n <span class="icon-link"></span>\n </div>\n <div>\n <label for="media-sizer-pixel-width">'+escapeExpression(
(options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Width",options):helperMissing.call(depth0,"__","Width",options)))+'</label>\n <span class="item-editor-unit-input-box" style="display:-moz-box;">\n <input type="text" name="width" id="media-sizer-pixel-width" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n <span class="unit-indicator">px</span>\n </span>\n </div>\n <div>\n <label for="media-sizer-pixel-height">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Height",
options):helperMissing.call(depth0,"__","Height",options)))+'</label>\n <span class="item-editor-unit-input-box" style="display:-moz-box;">\n <input type="text" name="height" id="media-sizer-pixel-height" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n <span class="unit-indicator">px</span>\n </span>\n </div>\n <div class="media-sizer-reset media-sizer-reset-pixel" data-unit="pixel">\n <span class="icon-reset"></span>\n </div>\n </div>\n</div>\n'});var defaultConfig={showResponsiveToggle:!0,showSync:!0,showReset:!0,sizeProps:{px:{current:{width:0,height:0}
},"%":{current:{width:0,height:null}},ratio:{natural:1,current:1},currentUtil:"%",slider:{min:1,max:100,start:100}},denyCustomRatio:!1,syncDimensions:!0,width:0,height:0,minWidth:0,maxWidth:0,precision:5};return function($container,media,config){var $blocks,$slider,$fields,$template,initialConfig,calculateCurrentSizes=function(conf){var mediaContainerWidth=helper.getMediaContainerWidth(media);return helper.applyDimensions(conf,{width:mediaContainerWidth<conf.sizeProps.px.natural.width?mediaContainerWidth:conf.sizeProps.px.natural.width,maxWidth:helper.getMediaContainerWidth(media)})};function getOriginalSize(){return{
width:media.$node[0].naturalWidth||media.$node[0].videoWidth||media.$node[0].width,height:media.$node[0].naturalHeight||media.$node[0].videoHeight||media.$node[0].height}}var mediaDimensionComponent=component({reset:function(){var originalSize,syncDim=initialConfig.syncDimensions;return this.is("rendered")&&(originalSize=getOriginalSize(),initialConfig.sizeProps.px.current.width=originalSize.width,initialConfig.sizeProps.px.current.height=originalSize.height,initialConfig.sizeProps.ratio.current=initialConfig.sizeProps.ratio.natural,initialConfig.syncDimensions=!0,initialConfig=calculateCurrentSizes(initialConfig),mediaDimensionComponent.update(),
initialConfig.syncDimensions=syncDim,this.trigger("reset",initialConfig)),this},update:function(){$slider.val(initialConfig.sizeProps["%"].current.width),$fields["%"].width.val(Math.round(initialConfig.sizeProps["%"].current.width)),$fields.px.width.val(Math.round(initialConfig.sizeProps.px.current.width)),$fields.px.height.val(Math.round(initialConfig.sizeProps.px.current.height)),this.trigger("change",initialConfig)}},defaultConfig),initFields=function(){var field,dimensions=["width","height"],_fields={};return _($blocks).forOwn(function($block,unit){_fields[unit]={},$blocks[unit].find("input").each(function(){_(dimensions).forEach(function(dim){
field=$blocks[unit].find('[name="'.concat(dim,'"]')),_fields[unit][dim]=field.length?field:$$1("<input>"),_fields[unit][dim].prop({unit:unit,dimension:dim}),_fields[unit][dim].val(initialConfig.sizeProps[unit].current[dim]),_fields[unit][dim].on("keydown",function(e){var specChars,$field=$$1(this),allowed=e.keyCode,specChars=(specChars=[8,37,39,46],-1===$field.val().indexOf(".")&&(specChars.push(190),specChars.push(110)),specChars),allowed=_.contains(specChars,allowed)||48<=allowed&&allowed<=57||96<=allowed&&allowed<=105;return allowed||e.preventDefault(),allowed}),_fields[unit][dim].on("keyup blur sliderchange",function(){var val,$field=$$1(this),
newDimensions=$field.val().replace(/,/g,".");$field.val(newDimensions),"string"!=typeof(val=newDimensions)&&(val="".concat(val)),val.match(/\.[0]*$/)||(newDimensions>$field.data("max")?($field.val($field.data("max")),newDimensions="".concat($field.data("max"))):newDimensions<$field.data("min")&&($field.val($field.data("min")),newDimensions="".concat($field.data("min"))),(newDimensions="%"===$field.prop("unit")?{percent:initialConfig.sizeProps["%"].current.width=newDimensions}:"height"===$field.prop("dimension")?{height:newDimensions}:{width:newDimensions}).maxWidth=helper.getMediaContainerWidth(media),initialConfig=helper.applyDimensions(initialConfig,
newDimensions),mediaDimensionComponent.update())})})})}),_fields};return mediaDimensionComponent.on("init",function(){var mediaProps=getOriginalSize(),naturalWidth=mediaProps.width,mediaProps=mediaProps.height,mediaProps={px:{current:{width:media.width,height:media.height},natural:{width:naturalWidth||media.width,height:mediaProps||media.height}},"%":{current:{width:100}}};(initialConfig=this.getConfig()).sizeProps=_.defaults(mediaProps,initialConfig.sizeProps,defaultConfig.sizeProps),initialConfig.sizeProps.ratio.natural=helper.round(initialConfig.sizeProps.px.natural.width/initialConfig.sizeProps.px.natural.height,initialConfig.precision),
initialConfig.responsive=void 0===initialConfig.responsive||initialConfig.responsive,initialConfig.sizeProps.currentUtil=initialConfig.responsive?"%":"px",this.render($container)}).on("render",function(){var data,$mediaSizer,$elt,_blocks,$responsiveToggleField,checkMode;initialConfig=this.getConfig(),($template=$$1((data={responsive:initialConfig.responsive},$mediaSizer=Template(data,$mediaSizer)))).appendTo(this.getContainer()),$mediaSizer=$template.find(".media-sizer"),!0!==initialConfig.syncDimensions||$mediaSizer.hasClass("media-sizer-synced")||$mediaSizer.addClass("media-sizer-synced"),_blocks={},$responsiveToggleField=($elt=$template).find(
".media-mode-switch"),checkMode=function(){$responsiveToggleField.is(":checked")?(initialConfig.responsive=!0,_blocks.px.hide(),_blocks["%"].show(),initialConfig.sizeProps.currentUtil="%"):(initialConfig.responsive=!1,_blocks["%"].hide(),_blocks.px.show(),initialConfig.sizeProps.currentUtil="px"),$fields&&($fields["%"].width.val()>$slider.max&&$fields["%"].width.val($slider.max),initialConfig=helper.applyDimensions(initialConfig,{percent:$fields["%"].width.val(),maxWidth:helper.getMediaContainerWidth(media)}),mediaDimensionComponent.update())},initialConfig.showResponsiveToggle||$elt.addClass("media-sizer-responsivetoggle-off"),_(["px","%"]).forEach(
function(unit){_blocks[unit]=$elt.find(".media-sizer-".concat("px"===unit?"pixel":"percent")),_blocks[unit].prop("unit",unit),_blocks[unit].find("input").data("unit",unit)}),$responsiveToggleField.on("click",function(){checkMode()}),$responsiveToggleField.prop("checked",initialConfig.responsive),checkMode(),$blocks=_blocks,$slider=function(slider){slider=slider.find(".media-sizer-slider");return slider.prop("unit","%"),slider.noUiSlider({start:initialConfig.sizeProps.slider.start,range:{min:initialConfig.sizeProps.slider.min,max:initialConfig.sizeProps.slider.max}}).on("slide",function(){var percent=parseFloat("".concat($$1(this).val()))
;helper.applyDimensions(initialConfig,{percent:percent,maxWidth:helper.getMediaContainerWidth(media)}),mediaDimensionComponent.update()}),slider}($template),$fields=initFields(),function($btn){var $mediaSizer=$btn.find(".media-sizer"),$btn=$btn.find(".media-sizer-sync");initialConfig.showSync||($btn.hide(),$mediaSizer.addClass("media-sizer-sync-off")),$btn.on("click",function(){var $sizerEl=$$1(this).parents(".media-sizer");$sizerEl.toggleClass("media-sizer-synced"),initialConfig.syncDimensions=$sizerEl.hasClass("media-sizer-synced")})}($template),function($elt){var $btn=$elt.find(".media-sizer-reset");initialConfig.showReset||$elt.find(".media-sizer"
).addClass("media-sizer-reset-off"),$btn.on("click",function(e){return e.preventDefault(),mediaDimensionComponent.reset(),!1})}($template),void 0===media.width?initialConfig=calculateCurrentSizes(initialConfig):initialConfig.responsive?initialConfig=helper.applyDimensions(initialConfig,{percent:media.width,maxWidth:helper.getMediaContainerWidth(media)}):(initialConfig.sizeProps.px.current={width:media.width,height:media.height},initialConfig.sizeProps["%"].current.width=helper.round(100*media.width/helper.getMediaContainerWidth(media),initialConfig.precision)),mediaDimensionComponent.update()}).on("destroy",function(){$template.remove()}),_.defer(function(){
mediaDimensionComponent.init(config)}),mediaDimensionComponent}}),define("css!ui/mediaEditor/plugins/mediaAlignment/style",[],function(){}),define("ui/mediaEditor/plugins/mediaAlignment/mediaAlignmentComponent",["jquery","lodash","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/mediaEditor/plugins/mediaAlignment/style.css"],function($$1,_,component,Handlebars,__,DOMPurify,style_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var options,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="media-alignment">\n <fieldset>\n <legend class="media-sizer-panel-label">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,
"Position",options):helperMissing.call(depth0,"__","Position",options)))+'</legend>\n <label class="smaller-prompt">\n <input type="radio" name="wrap-inline"/>\n <span class="icon-radio"></span>\n <span class="icon-wrap-inline"></span>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Inline",options):helperMissing.call(depth0,"__","Inline",options))
)+'\n </label>\n <br>\n <label class="smaller-prompt">\n <input type="radio" name="wrap-left"/>\n <span class="icon-radio"></span>\n <span class="icon-wrap-left"></span>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Wrap image left",options):helperMissing.call(depth0,"__","Wrap image left",options))
)+'\n </label>\n <br>\n <label class="smaller-prompt">\n <input type="radio" name="wrap-right"/>\n <span class="icon-radio"></span>\n <span class="icon-wrap-right"></span>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Wrap image right",options):helperMissing.call(depth0,"__","Wrap image right",options)))+"\n </label>\n </fieldset>\n</div>\n"});return function($container,media){var $template,mediaAlignmentComponent=component({update:function(conf){switch($template.find("input:checked").prop("checked",!1),conf){
case"wrap-right":conf="right",$template.find('input[name="wrap-right"]').prop("checked",!0);break;case"wrap-left":conf="left",$template.find('input[name="wrap-left"]').prop("checked",!0);break;default:conf="default",$template.find('input[name="wrap-inline"]').prop("checked",!0)}media.align=conf,this.trigger("change",media)}});return mediaAlignmentComponent.on("init",function(){this.render($container)}).on("render",function(){var data,_this=this;($template=$$1(classListTag=Template(data,classListTag))).appendTo($container);var classListTag=media.$node[0].parentNode.classList;classListTag.contains("wrap-right")?this.update("wrap-right"):classListTag.contains(
"wrap-left")?this.update("wrap-left"):this.update("wrap-inline"),$template.on("click",function(event){event.target.name&&_this.update(event.target.name)})}).on("destroy",function(){$template.remove()}),_.defer(function(){return mediaAlignmentComponent.init()}),mediaAlignmentComponent}}),define("ui/mediaEditor/mediaEditorComponent",["jquery","lodash","ui/component","ui/mediaEditor/plugins/mediaDimension/mediaDimensionComponent","ui/mediaEditor/plugins/mediaAlignment/mediaAlignmentComponent","handlebars","i18n","lib/dompurify/purify"],function($$1,_,component,mediaDimensionComponent,mediaAlignmentComponent,Handlebars,__,DOMPurify){"use strict"
;function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",
wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),
hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,mediaDimensionComponent=mediaDimensionComponent&&Object.prototype.hasOwnProperty.call(
mediaDimensionComponent,"default")?mediaDimensionComponent.default:mediaDimensionComponent,mediaAlignmentComponent=mediaAlignmentComponent&&Object.prototype.hasOwnProperty.call(mediaAlignmentComponent,"default")?mediaAlignmentComponent.default:mediaAlignmentComponent,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(
function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,stack1.helpers),data=data||{};var buffer="";return buffer+='<div class="media-editor">\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.mediaDimension)||!1===stack1?stack1:stack1.active,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'<div class="media-dimension"></div>'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.mediaAlignment)||!1===stack1?stack1:stack1.active,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data
){return'<div class="media-align"></div>'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n</div>\n"});function tpl(data,html,asString){html=Template(data,html);return html}var defaultConfig={mediaDimension:{active:!1},mediaAlignment:{active:!1}};return function($container,media,config){var plugins=[],mediaEditorComponent=component({},defaultConfig);return mediaEditorComponent.setTemplate(tpl).on("init",function(){if(!media||!media.$node||!media.$node.length)throw new Error("mediaEditorComponent requires media.$node");if(!media||!media.$container||!media.$container.length)throw new Error("mediaEditorComponent requires media.$container")
;this.render($container)}).on("render",function(){var _this=this,dimensionPlugin=$$1(".media-dimension",this.getTemplate()),alignmentPlugin=$$1(".media-align",this.getTemplate());this.getConfig().mediaDimension.active&&(dimensionPlugin=mediaDimensionComponent(dimensionPlugin,media,{responsive:media.responsive,showResponsiveToggle:this.getConfig().mediaDimension.showResponsiveToggle}).on("change",function(conf){media.responsive=conf.responsive,conf.responsive?(media.width=conf.sizeProps["%"].current.width,media.height=null):(media.width=conf.sizeProps.px.current.width,media.height=conf.sizeProps.px.current.height),_this.trigger("change",media)}),plugins.push(
dimensionPlugin)),this.getConfig().mediaAlignment.active&&(alignmentPlugin=mediaAlignmentComponent(alignmentPlugin,media).spread(this,"change"),plugins.push(alignmentPlugin))}).on("destroy",function(){_.forEach(plugins,function(plugin){plugin.destroy()})}),_.defer(function(){mediaEditorComponent.init(config)}),mediaEditorComponent}}),define("ui/image/ImgStateActive",["jquery","nouislider","ui/resourcemgr","ui/tooltip","lodash","module","i18n","core/mimetype","ui/mediaEditor/plugins/mediaAlignment/helper","ui/mediaEditor/mediaEditorComponent"],function($,nouislider,resourcemgr,tooltip,_,config,__,mimeType,alignmentHelper,mediaEditorComponent){"use strict"
;$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,config=config&&Object.prototype.hasOwnProperty.call(config,"default")?config.default:config,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,mimeType=mimeType&&Object.prototype.hasOwnProperty.call(mimeType,"default")?mimeType.default:mimeType,alignmentHelper=alignmentHelper&&Object.prototype.hasOwnProperty.call(alignmentHelper,"default")?alignmentHelper.default:alignmentHelper,mediaEditorComponent=mediaEditorComponent&&Object.prototype.hasOwnProperty.call(mediaEditorComponent,"default"
)?mediaEditorComponent.default:mediaEditorComponent;var getMedia=function(imgQtiElement,$imgNode,cb){void 0===imgQtiElement.data("responsive")&&(imgQtiElement.attr("width")&&!/[0-9]+%/.test(imgQtiElement.attr("width"))?imgQtiElement.data("responsive",!1):imgQtiElement.data("responsive",!0)),void 0!==imgQtiElement.attr("original-width")&&void 0!==imgQtiElement.attr("original-height")&&void 0!==imgQtiElement.attr("type")&&void 0!==imgQtiElement.attr("src")&&void 0!==imgQtiElement.attr("width")&&void 0!==imgQtiElement.attr("height")?cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),
height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")}):mimeType.getResourceType($imgNode.attr("src"),function(err,type){imgQtiElement.attr("type",type),cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")})})},getMediaCb=function(media,widget,mediaEditor,options){var $mediaResizer=widget.$form.find(".img-resizer");media.$container=widget.$container.parents(".widget-box"),media.$container.length&&mediaEditorComponent($mediaResizer,media,options).on("change",function(nMedia){media=nMedia,
widget.$original.prop("style",null),widget.$original.removeAttr("style"),alignmentHelper.positionFloat(widget,media.align),function(media,widget){var img=widget.element,$mediaSpan=widget.$container,$img=widget.$original;img.data("responsive")!==media.responsive&&img.data("responsive",media.responsive),_(["width","height"]).each(function(sizeAttr){var val;""===media[sizeAttr]||void 0===media[sizeAttr]||null===media[sizeAttr]?(img.removeAttr(sizeAttr),$mediaSpan.css(sizeAttr,"")):(val=Math.round(media[sizeAttr]),media.responsive?(val+="%",img.attr(sizeAttr,val),$img.attr(sizeAttr,"100%")):img.attr(sizeAttr,val),$mediaSpan.css(sizeAttr,val)),
widget.$container.trigger("contentChange.qti-widget")})}(media,widget),widget.$original.removeClass("hidden")})};function initMediaEditor(widget,mediaEditor,options){mediaEditor&&mediaEditor.destroy(),widget.$form.find("input[name=src]").val()&&getMedia(widget.element,widget.$original,function(m){return getMediaCb(m,widget,mediaEditor,options)})}var initAdvanced=function(widget){var $form=widget.$form;widget.element.attr("src")?$form.find("[data-role=advanced]").show():$form.find("[data-role=advanced]").hide()};function initAll(widget,mediaEditor,options){initAdvanced(widget),initMediaEditor(widget,mediaEditor,options),function(_openResourceMgr){
var $form=_openResourceMgr.$form,options=_openResourceMgr.options,img=_openResourceMgr.element,$uploadTrigger=$form.find('[data-role="upload-trigger"]'),$src=$form.find("input[name=src]"),$alt=$form.find("input[name=alt]"),_openResourceMgr=function(){$uploadTrigger.resourcemgr({title:__('Please select an image file from the resource manager. You can add files from your computer with the button "Add file(s)".'),appendContainer:options.mediaManager.appendContainer,mediaSourcesUrl:options.mediaManager.mediaSourcesUrl,browseUrl:options.mediaManager.browseUrl,uploadUrl:options.mediaManager.uploadUrl,deleteUrl:options.mediaManager.deleteUrl,
downloadUrl:options.mediaManager.downloadUrl,fileExistsUrl:options.mediaManager.fileExistsUrl,params:{uri:options.uri,lang:options.lang,filters:[{mime:"image/jpeg"},{mime:"image/png"},{mime:"image/gif"},{mime:"image/svg+xml"},{mime:"application/x-gzip",extension:"svgz"}]},pathParam:"path",path:options.mediaManager.path,root:options.mediaManager.root,select:function(e,cancel){var alt,confirmBox,save;cancel&&cancel.length&&(save=cancel[0].file,alt=cancel[0].alt,$src.val(save),""===$.trim($alt.val())?(""===alt&&(alt=save.replace(/\.[^.]+$/,"").replace(/^(.*)\//,"").replace(/\W/," ").substr(0,255)),img.attr("alt",alt),$alt.val(alt).trigger("change")):(cancel=(
confirmBox=$(".change-alt-modal-feedback",$form)).find(".cancel"),save=confirmBox.find(".save"),$(".alt-text",confirmBox).html('"'.concat($alt.val(),'"<br>with<br>"').concat(alt,'" ?')),confirmBox.modal({width:500}),save.off("click").on("click",function(){img.attr("alt",alt),$alt.val(alt).trigger("change"),confirmBox.modal("close")}),cancel.off("click").on("click",function(){confirmBox.modal("close")})),_.defer(function(){img.attr("off-media-editor",1),$src.trigger("change")}))},open:function(){$src.data("$tooltip")&&$src.blur().data("$tooltip").hide()},close:function(){$src.blur()}})};$uploadTrigger.on("click",_openResourceMgr),$src.val()||_openResourceMgr(
)}(widget)}var config=config.config()||{},options={mediaDimension:{active:!0},mediaAlignment:{active:void 0!==config.mediaAlignment&&config.mediaAlignment}},initForm=function(togglePlaceholder){var widget=togglePlaceholder.widget,formElement=togglePlaceholder.formElement,formTpl=togglePlaceholder.formTpl,mediaEditor=togglePlaceholder.mediaEditor,togglePlaceholder=togglePlaceholder.togglePlaceholder;widget.$form.html(formTpl({baseUrl:widget.options.baseUrl||"",src:widget.element.attr("src"),alt:widget.element.attr("alt")})),initAll(widget,mediaEditor,options),formElement.initWidget(widget.$form),formElement.setChangeCallbacks(widget.$form,widget.element,
function(_ref){var widget=_ref.widget,formElement=_ref.formElement,mediaEditor=_ref.mediaEditor,togglePlaceholder=_ref.togglePlaceholder,$img=widget.$original;return{src:_.throttle(function(img,value){img.attr("src",value),$img.hasClass("hidden")||$img.addClass("hidden"),$img.attr("src",widget.getAssetManager().resolve(value)),$img.trigger("contentChange.qti-widget").change(),togglePlaceholder(widget),initAdvanced(widget),1===img.attr("off-media-editor")?img.removeAttr("off-media-editor"):initMediaEditor(widget,mediaEditor,options)},1e3),alt:function(img,value){img.attr("alt",value)},longdesc:formElement.getAttributeChangeCallback()}}({widget:widget,
formElement:formElement,mediaEditor:mediaEditor,togglePlaceholder:togglePlaceholder}))};return function(stateFactory,ImgStateActive,formTpl,formElement,inlineHelper){var mediaEditor=null;return(ImgStateActive=stateFactory.extend(ImgStateActive,function(){this.initForm()},function(){this.widget.$form.empty()})).prototype.initForm=function(){initForm({widget:this.widget,formElement:formElement,formTpl:formTpl,mediaEditor:mediaEditor,togglePlaceholder:inlineHelper.togglePlaceholder})},ImgStateActive}}),define("ui/image/ImgStateActive/extractLabel",[],function(){"use strict";return function(fileName){return fileName.replace(/\.[^.]+$/,"").replace(/^(.*)\//,""
).replace(/\W/," ").substr(0,255)}}),define("ui/image/ImgStateActive/initHelper",["exports","jquery","lodash","i18n","core/mimetype","ui/mediaEditor/plugins/mediaAlignment/helper","ui/mediaEditor/mediaEditorComponent"],function(exports,$,_,__,mimeType,alignmentHelper,mediaEditorComponent){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,mimeType=mimeType&&Object.prototype.hasOwnProperty.call(mimeType,"default")?mimeType.default:mimeType,
alignmentHelper=alignmentHelper&&Object.prototype.hasOwnProperty.call(alignmentHelper,"default")?alignmentHelper.default:alignmentHelper,mediaEditorComponent=mediaEditorComponent&&Object.prototype.hasOwnProperty.call(mediaEditorComponent,"default")?mediaEditorComponent.default:mediaEditorComponent;var getMedia=function(imgQtiElement,$imgNode,cb){void 0===imgQtiElement.data("responsive")&&(imgQtiElement.attr("width")&&!/[0-9]+%/.test(imgQtiElement.attr("width"))?imgQtiElement.data("responsive",!1):imgQtiElement.data("responsive",!0)),void 0!==imgQtiElement.attr("original-width")&&void 0!==imgQtiElement.attr("original-height")&&void 0!==imgQtiElement.attr(
"type")&&void 0!==imgQtiElement.attr("src")&&void 0!==imgQtiElement.attr("width")&&void 0!==imgQtiElement.attr("height")?cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")}):mimeType.getResourceType($imgNode.attr("src"),function(err,type){imgQtiElement.attr("type",type),cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")})})},getMediaCb=function(media,widget,mediaEditor,
options){var $mediaResizer=widget.$form.find(".img-resizer");media.$container=widget.$container.parents(".widget-box"),media.$container.length&&mediaEditorComponent($mediaResizer,media,options).on("change",function(nMedia){media=nMedia,widget.$original.prop("style",null),widget.$original.removeAttr("style"),alignmentHelper.positionFloat(widget,media.align),function(media,widget){var img=widget.element,$mediaSpan=widget.$container,$img=widget.$original;img.data("responsive")!==media.responsive&&img.data("responsive",media.responsive),_(["width","height"]).each(function(sizeAttr){var val;""===media[sizeAttr]||void 0===media[sizeAttr]||null===media[sizeAttr]?(
img.removeAttr(sizeAttr),$mediaSpan.css(sizeAttr,"")):(val=Math.round(media[sizeAttr]),media.responsive?(val+="%",img.attr(sizeAttr,val),$img.attr(sizeAttr,"100%")):img.attr(sizeAttr,val),$mediaSpan.css(sizeAttr,val)),widget.$container.trigger("contentChange.qti-widget")})}(media,widget),widget.$original.removeClass("hidden")})};var initAdvanced=function(widget){var $form=widget.$form;widget.element.attr("src")?$form.find("[data-role=advanced]").show():$form.find("[data-role=advanced]").hide()},initUpload=function(_openResourceMgr){var $form=_openResourceMgr.$form,options=_openResourceMgr.options,img=_openResourceMgr.element,$uploadTrigger=$form.find(
'[data-role="upload-trigger"]'),$src=$form.find("input[name=src]"),$alt=$form.find("input[name=alt]"),_openResourceMgr=function(){$uploadTrigger.resourcemgr({title:__('Please select an image file from the resource manager. You can add files from your computer with the button "Add file(s)".'),appendContainer:options.mediaManager.appendContainer,mediaSourcesUrl:options.mediaManager.mediaSourcesUrl,browseUrl:options.mediaManager.browseUrl,uploadUrl:options.mediaManager.uploadUrl,deleteUrl:options.mediaManager.deleteUrl,downloadUrl:options.mediaManager.downloadUrl,fileExistsUrl:options.mediaManager.fileExistsUrl,params:{uri:options.uri,lang:options.lang,
filters:[{mime:"image/jpeg"},{mime:"image/png"},{mime:"image/gif"},{mime:"image/svg+xml"},{mime:"application/x-gzip",extension:"svgz"}]},pathParam:"path",path:options.mediaManager.path,root:options.mediaManager.root,select:function(e,cancel){var alt,confirmBox,save;cancel&&cancel.length&&(save=cancel[0].file,alt=cancel[0].alt,$src.val(save),""===$.trim($alt.val())?(""===alt&&(alt=save.replace(/\.[^.]+$/,"").replace(/^(.*)\//,"").replace(/\W/," ").substr(0,255)),img.attr("alt",alt),$alt.val(alt).trigger("change")):(cancel=(confirmBox=$(".change-alt-modal-feedback",$form)).find(".cancel"),save=confirmBox.find(".save"),$(".alt-text",confirmBox).html('"'.concat(
$alt.val(),'"<br>with<br>"').concat(alt,'" ?')),confirmBox.modal({width:500}),save.off("click").on("click",function(){img.attr("alt",alt),$alt.val(alt).trigger("change"),confirmBox.modal("close")}),cancel.off("click").on("click",function(){confirmBox.modal("close")})),_.defer(function(){img.attr("off-media-editor",1),$src.trigger("change")}))},open:function(){$src.data("$tooltip")&&$src.blur().data("$tooltip").hide()},close:function(){$src.blur()}})};$uploadTrigger.on("click",_openResourceMgr),$src.val()||_openResourceMgr()};exports.default=function(widget,mediaEditor,options){initAdvanced(widget),function(widget,mediaEditor,options){
mediaEditor&&mediaEditor.destroy(),widget.$form.find("input[name=src]").val()&&getMedia(widget.element,widget.$original,function(m){return getMediaCb(m,widget,mediaEditor,options)})}(widget,mediaEditor,options),initUpload(widget)},exports.initAdvanced=initAdvanced,exports.initUpload=initUpload,Object.defineProperty(exports,"__esModule",{value:!0})}),define("ui/image/ImgStateActive/initMediaEditor",["jquery","core/mimetype","ui/mediaEditor/plugins/mediaAlignment/helper","ui/mediaEditor/mediaEditorComponent","lodash"],function(jquery,mimeType,alignmentHelper,mediaEditorComponent,_){"use strict";mimeType=mimeType&&Object.prototype.hasOwnProperty.call(mimeType,
"default")?mimeType.default:mimeType,alignmentHelper=alignmentHelper&&Object.prototype.hasOwnProperty.call(alignmentHelper,"default")?alignmentHelper.default:alignmentHelper,mediaEditorComponent=mediaEditorComponent&&Object.prototype.hasOwnProperty.call(mediaEditorComponent,"default")?mediaEditorComponent.default:mediaEditorComponent,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var getMediaCb=function(media,widget,mediaEditor,options){var $mediaResizer=widget.$form.find(".img-resizer");media.$container=widget.$container.parents(".widget-box"),media.$container.length&&mediaEditorComponent($mediaResizer,media,options).on("change",
function(nMedia){media=nMedia,widget.$original.prop("style",null),widget.$original.removeAttr("style"),alignmentHelper.positionFloat(widget,media.align),function(media,widget){var img=widget.element,$mediaSpan=widget.$container,$img=widget.$original;img.data("responsive")!==media.responsive&&img.data("responsive",media.responsive),_(["width","height"]).each(function(sizeAttr){var val;""===media[sizeAttr]||void 0===media[sizeAttr]||null===media[sizeAttr]?(img.removeAttr(sizeAttr),$mediaSpan.css(sizeAttr,"")):(val=Math.round(media[sizeAttr]),media.responsive?(val+="%",img.attr(sizeAttr,val),$img.attr(sizeAttr,"100%")):img.attr(sizeAttr,val),$mediaSpan.css(
sizeAttr,val)),widget.$container.trigger("contentChange.qti-widget")})}(media,widget),widget.$original.removeClass("hidden")})};return function(widget,mediaEditor,options){var imgQtiElement,$imgNode,cb;mediaEditor&&mediaEditor.destroy(),widget.$form.find("input[name=src]").val()&&(imgQtiElement=widget.element,$imgNode=widget.$original,cb=function(m){return getMediaCb(m,widget,0,options),0},void 0===imgQtiElement.data("responsive")&&(imgQtiElement.attr("width")&&!/[0-9]+%/.test(imgQtiElement.attr("width"))?imgQtiElement.data("responsive",!1):imgQtiElement.data("responsive",!0)),void 0!==imgQtiElement.attr("original-width")&&void 0!==imgQtiElement.attr(
"original-height")&&void 0!==imgQtiElement.attr("type")&&void 0!==imgQtiElement.attr("src")&&void 0!==imgQtiElement.attr("width")&&void 0!==imgQtiElement.attr("height")?cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")}):mimeType.getResourceType($imgNode.attr("src"),function(err,type){imgQtiElement.attr("type",type),cb({$node:$imgNode,type:imgQtiElement.attr("type"),src:imgQtiElement.attr("src"),width:imgQtiElement.attr("width"),height:imgQtiElement.attr("height"),responsive:imgQtiElement.data("responsive")})}))}}),
define("ui/image/ImgStateActive/mediaSizer",["exports","jquery","lodash"],function(exports,jquery,_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;exports.mediaSizer=function(media,widget){var img=widget.element,$mediaSpan=widget.$container,$img=widget.$original;img.data("responsive")!==media.responsive&&img.data("responsive",media.responsive),_(["width","height"]).each(function(sizeAttr){var val;""===media[sizeAttr]||void 0===media[sizeAttr]||null===media[sizeAttr]?(img.removeAttr(sizeAttr),$mediaSpan.css(sizeAttr,"")):(val=Math.round(media[sizeAttr]),media.responsive?(val+="%",img.attr(sizeAttr,val),$img.attr(sizeAttr,
"100%")):img.attr(sizeAttr,val),$mediaSpan.css(sizeAttr,val)),widget.$container.trigger("contentChange.qti-widget")})},Object.defineProperty(exports,"__esModule",{value:!0})}),define("ui/inplacer",["jquery","lodash","core/pluginifier","core/dataattrhandler"],function($,_,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default"
)?DataAttrHandler.default:DataAttrHandler;var ns="inplacer",dataNs="ui."+ns,defaults={disableClass:"disabled",bindEvent:"click",inplaceClass:"inplace",mapping:{textarea:["p","div"]}};function getText($elt){var text="";return $elt.contents().filter(function(){this.nodeType===Node.TEXT_NODE&&""!==$.trim(this.nodeValue)&&(text+=$.trim(this.nodeValue))}),text}var InPlacer={init:function(options){return options=$.extend(!0,{},defaults,options),this.each(function(){var $target,$elt=$(this);$elt.data(dataNs)||($target=options.target,/^#/.test($target.selector)||$.error("The target selector must referr to the of an element id or to the element to create."),
0===$target.length?($elt.after("<input id='"+$target.selector.replace("#","")+"' type='hidden' />"),options.target=$($target.selector)):"INPUT"!==$target.prop("tagName")&&$.error("The target must be an input element."),$elt.data(dataNs,options),$elt.addClass(options.inplaceClass),InPlacer._sync($elt,$target),!1!==options.bindEvent&&$elt.on(options.bindEvent,function(e){0===$elt.children(":text").length&&(e.preventDefault(),InPlacer._edit($elt))}),$elt.trigger("create."+ns))})},_toggle:function($elt){0<$elt.children(":text").length?this._leave($elt):this._edit($elt)},_edit:function($elt){var self=this,height=$elt.data(dataNs),$target=height.target,
text=getText($elt),width=height.width||$elt.width()+"px";!function($elt){$elt.contents().filter(function(){this.nodeType===Node.TEXT_NODE&&(this.nodeValue="")})}($elt),(_.contains(height.mapping.textarea,$elt.prop("tagName").toLowerCase())?(height=height.height||$elt.height()+"px",$elt.append("<textarea>"+text+"</textarea>").children(":input").width(width).height(height)):$elt.prepend($("<input>",{type:"text"})).children(":input").width(width).focus().val(text)).off("click").change(function(e){e.stopPropagation()}).keyup(function(e){13===e.which&&self._leave($elt)}).blur(function(){self._leave($elt)}).focus(),self._sync($elt,$target),$elt.trigger("edit."+ns,
[$target.val()])},_leave:function($elt){var $target=$elt.data(dataNs).target,$input=$elt.children(":input"),content=$input.val();$input.remove(),function($elt,text){var set=!1;$elt.contents().filter(function(){this.nodeType===Node.TEXT_NODE&&!1===set&&(set=!0,this.nodeValue=text)}),!1===set&&$elt.prepend(text)}($elt,content),this._sync($elt,$target),$elt.trigger("leave."+ns,[$target.val()]),$elt.trigger("change")},_sync:function($elt,$target){0<$elt.children(":text").length?$target.val($elt.children(":text").val()):$target.val(getText($elt))},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);$elt.removeClass(
options.inplaceClass),!1!==options.bindEvent&&$elt.off(options.bindEvent),$elt.removeData(dataNs),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,InPlacer,{expose:["toggle","leave","edit"]}),function($container){new DataAttrHandler("in-place",{container:$container,listenerEvent:"click",namespace:dataNs}).init(function($elt,options){options={target:options,bindEvent:!1};$elt.data("width")&&(options.width=$elt.data("width")),$elt.inplacer(options)}).trigger(function($elt){$elt.inplacer("toggle")})}}),define("css!ui/listbox/css/listbox",[],function(){}),define("ui/listbox",["lodash","i18n","ui/component","handlebars","lib/dompurify/purify",
"css!ui/listbox/css/listbox.css"],function(_,__,component,Handlebars,DOMPurify,listbox_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default"
)?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",escapeExpression=this.escapeExpression;function program3(depth0,data){return" hidden"}return buffer+='<div class="listbox">\n <h1 ',!(
stack1=helpers.unless.call(depth0,depth0&&depth0.title,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'class="hidden"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">",buffer+=escapeExpression(stack1=(helper=helpers.title)||"function"==typeof(helper=depth0&&depth0.title)?helper.call(depth0,{hash:{},data:data}):helper)+'</h1>\n <h2>\n <span class="empty-list',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textEmpty,{hash:{},inverse:this.noop,fn:this.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">',buffer+=escapeExpression(stack1=(helper=helpers.textEmpty)||"function"==typeof(
helper=depth0&&depth0.textEmpty)?helper.call(depth0,{hash:{},data:data}):helper)+'</span>\n <span class="available-list',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textNumber,{hash:{},inverse:this.noop,fn:this.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='"><span class="label">',buffer+=escapeExpression(stack1=(helper=helpers.textNumber)||"function"==typeof(helper=depth0&&depth0.textNumber)?helper.call(depth0,{hash:{},data:data}):helper)+'</span>: <span class="count"></span></span>\n <span class="loading',!(stack1=helpers.unless.call(depth0,depth0&&depth0.textLoading,{hash:{},inverse:this.noop,
fn:this.program(3,program3,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='"><span>',buffer+=escapeExpression(stack1=(helper=helpers.textLoading)||"function"==typeof(helper=depth0&&depth0.textLoading)?helper.call(depth0,{hash:{},data:data}):helper)+'</span>...</span>\n </h2>\n <div class="list"></div>\n</div>\n'});function mainTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{}
;var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){var stack1=(stack1=helpers.width)||typeof(stack1=depth0&&depth0.width)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1;return escapeExpression(stack1)}function program4(depth0,stack1,depth2){stack1=helpers.if.call(depth0,depth2&&depth2.width,{hash:{},inverse:self.program(7,program7,stack1),fn:self.programWithDepth(5,program5,stack1,depth2),data:stack1});return stack1||0===stack1?stack1:""}function program5(depth0,data,stack1){return escapeExpression(typeof(stack1=stack1&&stack1.width)===functionType?stack1.apply(depth0):stack1)
}function program7(depth0,data){return"12"}function program9(depth0,data){var stack1,buffer="";return buffer+=" ",stack1=(stack1=helpers.cls)||typeof(stack1=depth0&&depth0.cls)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)}function program11(depth0,data){var stack1,buffer="";return buffer+='<div class="content clearfix">',!(stack1=(stack1=helpers.content)||typeof(stack1=depth0&&depth0.content)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</div>"}function program13(depth0,data){var stack1,buffer="";return buffer+='<span class="text-html">',!(stack1=(
stack1=helpers.html)||typeof(stack1=depth0&&depth0.html)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</span>"}function program15(depth0,data){var stack1,buffer="";return buffer+='<span class="text-link"><span class="icon-play"></span>',stack1=(stack1=helpers.text)||typeof(stack1=depth0&&depth0.text)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</span>"}return buffer+='<ul class="list-box flex-grid plain">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.list,{hash:{},inverse:self.noop,fn:self.programWithDepth(1,function(depth0,data,helper){
var stack1,buffer="";return buffer+='\n <li class="entry flex-col-',!(stack1=helpers.if.call(depth0,depth0&&depth0.width,{hash:{},inverse:self.programWithDepth(4,program4,data,helper),fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.cls,{hash:{},inverse:self.noop,fn:self.program(9,program9,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">\n <a class="block box" href="',stack1=(helper=helpers.url)||typeof(helper=depth0&&depth0.url)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <h3 class="title">',
stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</h3>\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.content,{hash:{},inverse:self.noop,fn:self.program(11,program11,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div class="bottom clearfix">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.html,{hash:{},inverse:self.noop,fn:self.program(13,program13,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.text,{hash:{},
inverse:self.noop,fn:self.program(15,program15,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </div>\n </a>\n </li>\n "},stack1,depth0),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n</ul>\n"});var _defaults={title:!1,textNumber:__("Available"),textEmpty:__("There is nothing to list!"),textLoading:__("Loading"),flex:12},listBox={update:function(count){var html,data=this.controls&&this.controls.$list,$numberValue=this.controls&&this.controls.$numberValue;return this.setLoading(!0),data&&(data.empty(),count&&count.length?(data.append((data={list:count,width:this.config.flex},html=Template$1(data,html))),
$numberValue&&(count=count.length,_.isFunction(this.config.countRenderer)&&(count=this.config.countRenderer(count)),$numberValue.text(count)),this.setState("empty",!1),this.setState("loaded",!0)):(this.setState("empty",!0),this.setState("loaded",!1))),this.setLoading(!1),this},setLoading:function(flag){return flag&&this.setState("loaded",!1),this.setState("loading",flag)},setTitle:function(title){var $title=this.controls&&this.controls.$title;return this.config.title=title,$title&&(!1===title?$title.addClass("hidden"):$title.html(title).removeClass("hidden")),this},setTextNumber:function(text){var $numberLabel=this.controls&&this.controls.$numberLabel,
$textAvailable=this.controls&&this.controls.$textAvailable;return this.config.textNumber=text,$numberLabel&&(!1!==text?$numberLabel.html(text).removeClass("hidden"):$textAvailable&&$textAvailable.addClass("hidden")),this},setTextEmpty:function(text){var $textEmpty=this.controls&&this.controls.$textEmpty;return this.config.textEmpty=text,$textEmpty&&(!1===text?$textEmpty.addClass("hidden"):$textEmpty.html(text).removeClass("hidden")),this},setTextLoading:function(text){var $textLoading=this.controls&&this.controls.$textLoading;return this.config.textLoading=text,$textLoading&&(!1===text?$textLoading.addClass("hidden"):$textLoading.html(text).removeClass(
"hidden")),this},setSize:function(){return console.warn("The setSize() method has been disabled in the listbox component as its size is handled by CSS flex box"),this}};return function(initConfig){initConfig=initConfig||{};return initConfig.flex=initConfig.width,component(listBox,_defaults).setTemplate(mainTpl).on("destroy",function(){this.controls=null}).on("render",function(){this.controls={$title:this.$component.find("h1"),$textEmpty:this.$component.find(".empty-list"),$textAvailable:this.$component.find(".available-list"),$textLoading:this.$component.find(".loading span"),$numberLabel:this.$component.find(".available-list .label"),
$numberValue:this.$component.find(".available-list .count"),$list:this.$component.find(".list")},this.config.list?this.update(this.config.list):(this.setState("empty",!0),this.setState("loaded",!1))}).init(_.omit(initConfig,"width"))}}),define("ui/liststyler",["jquery","lodash","core/pluginifier","util/capitalize"],function($,_,Pluginifier,capitalize){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,
capitalize=capitalize&&Object.prototype.hasOwnProperty.call(capitalize,"default")?capitalize.default:capitalize;var ns="liststyler",currStyle="",defaults={selected:null},listStyles={none:"",disc:"●",circle:"○",square:"◽",decimal:"1","decimal-leading-zero":"01","lower-alpha":"a","upper-alpha":"A","lower-roman":"i","upper-roman":"I","lower-greek":"α",armenian:"Ա",georgian:"ა"};function formatState(state){var symbol=listStyles[state.id];return $("<span/>",{text:state.text,"data-symbol":symbol})}var ListStyler={init:function(options){return this.each(function(){var selectBox,selectedStyle,$elt=$(this);options=$.extend(!0,{},defaults,options),selectBox=this,
selectedStyle=options.selected,_.forOwn(listStyles,function(symbol,style){selectBox.options.add(new Option(capitalize(style.replace(/-/g," ")),style,!1,style===selectedStyle))}),currStyle=options.selected,$elt.on("change",function(){$elt.trigger("stylechange."+ns,{newStyle:this.value,oldStyle:currStyle}),currStyle=this.value}),$elt.select2({formatResult:formatState,width:"element",minimumResultsForSearch:1/0}),$elt.trigger("create."+ns)})},destroy:function(){this.each(function(){$(this).trigger("destroy."+ns)})}};Pluginifier.register(ns,ListStyler)}),define("helpers",["lodash","jquery","context","layout/loading-bar"],function(_,$,context,loadingBar){
"use strict";return{init:function(){$.postJson=function(url,data,callback){$.post(url,data,callback,"json")}},getMainContainer:function(){var sectionIndex;return console.warn("deprecated, use section instead"),context.section||(sectionIndex=$(".section-container").tabs("options","selected"),$(".content-panel").eq(sectionIndex).find(".content-block")),$("#panel-"+context.section+" .content-block")},getMainContainerSelector:function($tabs){console.warn("deprecated, use section instead");var $container=this.getMainContainer();return!!($container&&0<$container.length)&&$container.selector},loading:function(){console.warn("deprecated, this should be automated"),
$(window).on("click",function(e){return e.stopPropagation(),e.preventDefault(),!1}),loadingBar.start()},loaded:function(){console.warn("deprecated, this should be automated"),$(window).off("click"),loadingBar.stop()},_load:function(selector,url,data){url=url||"",data?data.nc=(new Date).getTime():data={nc:(new Date).getTime()},$(selector).hide().empty().show(),-1===url.indexOf("?")?$(selector).load(url,data):(url+="&"+$.param(data),$(selector).load(url))},_url:function(url,controller,extension,params){if("string"!=typeof url||"string"!=typeof controller||"string"!=typeof extension)throw new TypeError("All parts are required to build an URL")
;return url=context.root_url+extension+"/"+controller+"/"+url,_.isString(params)?url+="?"+params:_.isPlainObject(params)&&(url+="?"+$.param(params)),url}}}),define("ui/lock",["jquery","lodash","i18n","handlebars","lib/dompurify/purify","helpers","ui/feedback"],function($$1,_,__,Handlebars,DOMPurify,helpers,feedback){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),
hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),
fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call(
$$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,helpers=helpers&&Object.prototype.hasOwnProperty.call(helpers,"default")?helpers.default:helpers,feedback=feedback&&Object.prototype.hasOwnProperty.call(feedback,"default")?feedback.default:feedback,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="feedback-',buffer+=escapeExpression((helper=helpers.level)||"function"==typeof(helper=depth0&&depth0.level)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n<span class="icon-lock ',buffer+=escapeExpression((helper=helpers.level)||"function"==typeof(helper=depth0&&depth0.level)?helper.call(depth0,{hash:{},data:data}):helper)+"-color ",buffer+=escapeExpression((
helper=helpers.level)||"function"==typeof(helper=depth0&&depth0.level)?helper.call(depth0,{hash:{},data:data}):helper)+'"></span>\n ',buffer+=escapeExpression((helper=helpers.msg)||"function"==typeof(helper=depth0&&depth0.msg)?helper.call(depth0,{hash:{},data:data}):helper)+'\n <div class="txt-rgt button-container">\n <button class="btn btn-info small check-in"><span class="icon-unlock info"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Check-in",options):helperMissing.call(depth0,"__","Check-in",options))
)+'</button>\n <button class="btn btn-info small release"><span class="icon-result-nok info"></span>'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Release",options):helperMissing.call(depth0,"__","Release",options)))+'</button>\n </div>\n\n <div class="message-container button-container" style="display: none;">\n <label>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Message",options):helperMissing.call(depth0,"__","Message",options))
)+'\n </label>\n <input type="text" name="message" class="message">\n <button class="btn-info small commit">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Commit",options):helperMissing.call(depth0,"__","Commit",options)))+"</button>\n </div>\n</div>\n"});var $lockBox,currents=[],categories={hasLock:"info",locked:"error"},states={created:"created",displayed:"displayed",closed:"closed"},defaultOptions={msg:__("This resource is locked"),releaseUrl:helpers._url("release","Lock","tao"),commitUrl:helpers._url("commitResource","History","taoRevision")};var lockApi={
level:null,category:null,message:function(category,data,options){var html;return category&&_.contains(_.keys(categories),category)||(category="hasLock"),this.setState(states.created),this.category=category,this.level=_.result(categories,this.category),this.options=_.defaults(options||{},defaultOptions),this.content=(data={level:this.level,msg:data},html=Template(data,html)),this._trigger("create"),this},hasLock:function(msg,options){return this.message("hasLock",msg,options).open()},locked:function(msg,options){return this.message("locked",msg,options).open()},open:function(){return this._trigger("open"),this.display(),this},close:function(){this.isInState(
states.displayed)&&(this.setState(states.closed),$$1("#"+this.id).remove(),this._trigger("close"),_.remove(currents,{_state:states.closed}))},display:function(){var self=this;return self.content&&(self.setState(states.displayed),$$1(self.content).attr("id",self.id).appendTo(self._container),self._trigger("display"),void 0===this.options.uri?($$1(".release",self._container).hide(),$$1(".check-in",self._container).hide()):($$1(".release",self._container).on("click",function(){self.release()}),$$1(".check-in",self._container).on("click",function(){self.commit()}))),self},release:function(){var self=this;return""!==self.options.releaseUrl?$$1.ajax({
url:self.options.releaseUrl,type:"POST",data:{uri:self.options.uri},dataType:"json",success:function(response){response.success?self._trigger("released",response):self._trigger("failed",response)},error:function(){self._trigger("failed")}}):self._trigger("failed"),this},commit:function(){var self=this;return""!==self.options.commitUrl?($$1(".message-container",self._container).slideToggle(),$$1(".commit",self._container).off("click").on("click",function(){var message=$$1(".message",self._container).val();""!==message?$$1.ajax({url:self.options.commitUrl,type:"POST",data:{id:self.options.uri,message:message},dataType:"json",success:function(response){
response.success?self._trigger("committed",response):self._trigger("failed",response)},error:function(){self._trigger("failed")}}):self._trigger("failed",{message:__("Please give a message to your commit")})})):self._trigger("failed"),this},register:function(){var msg=this._container.data("msg")||defaultOptions.msg,id=this._container.data("id");return this.message("hasLock",msg,{uri:id,released:function(response){feedback().success(response.message),this.close()},committed:function(response){feedback().success(response.commitMessage),this.close()},failed:function(response){void 0!==response&&void 0!==response.message?feedback().error(response.message
):feedback().error("Unknown Error")}}).open()},_trigger:function(eventName,data){this._container.trigger(eventName+".lock",[this]),_.isFunction(this.options[eventName])&&this.options[eventName].call(this,data)}},lockState={_state:null,isInState:function(verify){return _.isString(verify)&&(verify=[verify]),_.contains(verify,this._state)},setState:function(state){if(!_.contains(states,state))throw new Error("Unkown state "+state);this._state=state}};return function(lk){var _container;if(lk||($lockBox=$$1("#lock-box")),!(_container=lk||$lockBox)||!_container.length)throw new Error("The lock needs to belong to an existing container");_.forEach(currents,function(
lockRef){null!==lockRef&&lockRef._container.get(0)===_container.get(0)&&lockRef.close()});var receiver,provider,lk=_.extend({id:"lock-"+(currents.length+1),_container:_container},lockState);return currents.push(lk),receiver=lk,_(provider=lockApi).functions().forEach(function(methodName){receiver[methodName]=function(){return provider[methodName].apply(receiver,arguments)}}),receiver}}),define("ui/login/login",["jquery","lodash","i18n","ui/component","ui/feedback","util/url","handlebars","lib/dompurify/purify"],function($$1,_,__,component,feedback,urlUtil,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,feedback=feedback&&Object.prototype.hasOwnProperty.call(feedback,"default"
)?feedback.default:feedback,urlUtil=urlUtil&&Object.prototype.hasOwnProperty.call(urlUtil,"default")?urlUtil.default:urlUtil,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var stack1,helper,buffer="",functionType="function",
escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;function program5(depth0,data){return' autocomplete="off"'}function program7(depth0,data){var stack1,buffer="";return buffer+='\n <div class="form-error">\n '+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.fieldMessages)||!1===stack1?stack1:stack1.login)===functionType?stack1.apply(depth0):stack1)+"\n </div>\n "}return buffer+='<div class="xhtml_form login-component">\n <form action="',stack1=(helper=helpers.url)||typeof(helper=depth0&&depth0.url)===functionType?helper.call(depth0,{hash:{},data:data}):helper,
buffer+=escapeExpression(stack1)+'" method="post" id="',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" name="',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">\n <input type="hidden" class="global" name="',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'_sent" value="1">\n ',!(stack1=helpers.if.call(depth0,
null==(stack1=depth0&&depth0.message)||!1===stack1?stack1:stack1.error,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var stack1,buffer="";return buffer+='\n <div class="xhtml_form_error">'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.message)||!1===stack1?stack1:stack1.error)===functionType?stack1.apply(depth0):stack1)+"</div>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n <div>\n <label class="form_desc" for="login">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Login",options
):helperMissing.call(depth0,"__","Login",options)))+'\n </label><input type="text" name="login" id="login" ',!(stack1=helpers.unless.call(depth0,depth0&&depth0.disableAutofocus,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data){return'autofocus="autofocus"'},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=" ",!(stack1=helpers.if.call(depth0,depth0&&depth0.disableAutocomplete,{hash:{},inverse:this.noop,fn:this.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=' aria-required="true">\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.fieldMessages
)||!1===stack1?stack1:stack1.login,{hash:{},inverse:this.noop,fn:this.program(7,program7,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div>\n <label class="form_desc" for="password">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Password",options):helperMissing.call(depth0,"__","Password",options)))+'\n </label><input type="password" name="password" id="password"',!(stack1=helpers.if.call(depth0,depth0&&depth0.disableAutocomplete,{hash:{},inverse:this.noop,fn:this.program(5,program5,data),data:data}))&&0!==stack1||(
buffer+=stack1),buffer+=' aria-required="true">\n ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.fieldMessages)||!1===stack1?stack1:stack1.password,{hash:{},inverse:this.noop,fn:this.program(7,program7,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n </div>\n <div class="form-toolbar"><input type="submit" id="connect" name="connect" disabled="disabled" class="disabled" value="Log in"></div>\n </form>\n</div>\n'});function loginTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(
Handlebars,depth0,stack1,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var buffer="";return buffer+='<div class="form loginForm fakeForm">',!(stack1=(stack1=(stack1=this.merge(stack1,Handlebars.helpers)).form)||"function"==typeof(stack1=depth0&&depth0.form)?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</div>"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$2=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,buffer="",helperMissing=(helpers=this.merge(helpers,options.helpers)
).helperMissing,escapeExpression=this.escapeExpression;return buffer+='<span class="viewable-hiddenbox">\n ',!(options=(helper=helpers.elements)||"function"==typeof(helper=depth0&&depth0.elements)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==options||(buffer+=options),buffer+='\n <span class="viewable-hiddenbox-toggle">\n <span aria-label="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Show password",options):helperMissing.call(depth0,"__","Show password",options)))+'" class="icon-preview" role="button" tabindex="0"></span>\n <span aria-label="'+escapeExpression((
options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Hide password",options):helperMissing.call(depth0,"__","Hide password",options)))+'" class="icon-eye-slash" style="display: none;" role="button" tabindex="0"></span>\n </span>\n</span>\n'});var _defaultConfig={disableAutocomplete:!1,enablePasswordReveal:!1,disableAutofocus:!1,message:{error:"",info:null},fieldMessages:{},name:"loginForm",url:urlUtil.route("login","Main","tao")};return function($container,config){var loginComponent=component({isAutocompleteDisabled:function(){return this.config.disableAutocomplete},isPasswordRevealEnabled:function(){
return this.config.enablePasswordReveal},getMessages:function(){return this.config.message},getFieldMessages:function(){return this.config.fieldMessages},createFakeForm:function(){var html,$element=this.getElement(),data=$element.clone();return $element.find("label").remove(),data.html((data={form:data.find("form").html()},html=Template$1(data,html)))},getRealForm:function(){return this.getElement().find("form")},getFakeForm:function(){return this.getContainer().find("div.fakeForm")},getForm:function(){return this.isAutocompleteDisabled()?this.getFakeForm():this.getRealForm()},manipulateFormDom:function(){var html,$pwdLabel=this.getForm(),
data=$pwdLabel.find("input[type=password]"),$pwdLabel=$pwdLabel.find("label[for="+data.attr("name")+"]");data.replaceWith((data={elements:$pwdLabel[0].outerHTML+data[0].outerHTML},html=Template$2(data,html))),$pwdLabel.remove()},attachPasswordRevealEvents:function(){var self=this,autoHide=function(event){event.target.isSameNode($pwdInput)||event.target.isSameNode($hideIcon[0])||event.target.isSameNode($inputToggle[0])||hide()},hide=function(moveFocus){$hideIcon.hide(),$viewIcon.show(),$pwdInput.type="password",$pwdInput.autocomplete=self.isAutocompleteDisabled()?"off":"on",window.removeEventListener("mousedown",autoHide),moveFocus&&$pwdInput.focus()},
togglePassword=function(){"password"===$pwdInput.type?($viewIcon.hide(),$hideIcon.show(),$pwdInput.type="text",$pwdInput.autocomplete="off",window.addEventListener("mousedown",autoHide),$pwdInput.focus()):hide(!0)},$form=this.getForm(),$pwdInput=$form.find("input[type=password]")[0],$inputToggle=$form.find(".viewable-hiddenbox-toggle"),$viewIcon=$form.find("span.icon-preview"),$hideIcon=$form.find("span.icon-eye-slash");hide(),$inputToggle.on("keyup",function(e){" "===e.key&&togglePassword()}),$inputToggle.on("keypress",function(e){"Enter"===e.key&&(togglePassword(),e.stopPropagation())}),$inputToggle.on("click",togglePassword)},displayMessages:function(
messages){var $fields=this.getForm().find(":input");!messages.error&&this.getForm().find(".form-error").length&&(messages.error=__("All fields are required")),_.forEach(messages,function(message,level){message&&(feedback().message(level,message).open(),$fields.addClass(level))})}},_defaultConfig).setTemplate(loginTpl).on("init",function(){this.render($container)}).on("render",function(){var $fakeForm,$loginForm=this.getRealForm(),self=this,submitForm=function(){$fakeForm.find(":input").each(function(){var $field=$$1(this);$loginForm.find('input[name="'+$field.attr("name")+'"]').val($field.val())}),self.trigger("submit"),$loginForm.submit()}
;this.isAutocompleteDisabled()&&($fakeForm=this.createFakeForm(),this.hide(),this.getElement().find("form").attr("id","loginForm").attr("aria-hidden","true"),this.getContainer().prepend($fakeForm),$fakeForm.find('input[type="submit"], button[type="submit"]').off("click").on("click",function(e){e.preventDefault(),submitForm()}),$fakeForm.on("keypress",function(e){"Enter"===e.key&&(e.preventDefault(),submitForm())})),this.isPasswordRevealEnabled()&&(this.manipulateFormDom(),this.attachPasswordRevealEvents()),this.getForm().find("[name=connect]").removeAttr("disabled").removeClass("disabled"),this.displayMessages(this.getMessages())});return _.defer(function(){
loginComponent.init(config)}),loginComponent}}),define("ui/maths/calculator/core/areaBroker",["lodash","ui/areaBroker"],function(_,areaBroker$1){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,areaBroker$1=areaBroker$1&&Object.prototype.hasOwnProperty.call(areaBroker$1,"default")?areaBroker$1.default:areaBroker$1,_.partial(areaBroker$1,["screen","input","keyboard"])}),define("ui/maths/calculator/core/labels",["i18n","handlebars","lodash","lib/dompurify/purify"],function(__,Handlebars,_,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){
return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<svg class="arrow-up" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32"><path d="M16 1l-15 15h9v16h12v-16h9z"></path></svg>'});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),
'<svg class="arrow-down" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32"><path d="M16 31l15-15h-9v-16h-12v16h-9z"></path></svg>'});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var data,html,Template$2=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),
'<svg class="backspace-outline" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M19 21H9c-1.436 0-3.145-.88-3.977-2.046l-2.619-3.667c-.629-.881-1.157-1.621-1.188-1.661-.246-.344-.249-.894-.008-1.241.018-.025.561-.783 1.204-1.686L5.02 7.046C5.855 5.879 7.566 5 9 5h10c1.654 0 3 1.346 3 3v10c0 1.654-1.346 3-3 3zM3.229 12.999l.806 1.125 2.618 3.667C7.104 18.424 8.223 19 9.001 19h10c.552 0 1-.45 1-1.001V8c0-.551-.448-1-1-1h-10c-.776 0-1.897.576-2.351 1.209l-2.608 3.652-.813 1.138z"/><path d="M13.707 13l2.646-2.646a.502.502 0 0 0 0-.707.502.502 0 0 0-.707 0L13 12.293l-2.646-2.646a.5.5 0 0 0-.707.707L12.293 13l-2.646 2.646a.5.5 0 0 0 .707.708L13 13.707l2.646 2.646a.5.5 0 1 0 .708-.706L13.707 13z"/></svg>'
});return{NUM0:"0",NUM1:"1",NUM2:"2",NUM3:"3",NUM4:"4",NUM5:"5",NUM6:"6",NUM7:"7",NUM8:"8",NUM9:"9",DOT:".",EXP10:"×10",POW10:"10<sup>x</sup>",LPAR:"(",RPAR:")",COMMA:",",ELLIPSIS:"…",SPACER:"",SUB:"-",ADD:"+",POS:"⁺",NEG:"⁻",MUL:"×",DIV:"÷",MOD:__("modulo"),POW:"^",POW2:"x<sup>2</sup>",POW3:"x<sup>3</sup>",POWY:"x<sup>y</sup>",POWMINUSONE:"x<sup>⁻1</sup>",FAC:"!",ASSIGN:"=",ANS:__("Ans"),PI:"π",E:"e",NAN:__("Error"),INFINITY:__("Infinity"),ERROR:__("Syntax error"),EXP:__("exp"),EXPX:"e<sup>x</sup>",SQRT:"√",CBRT:"<sup>3</sup>√",NTHRT:"<sup>y</sup>√x",FLOOR:__("floor"),CEIL:__("ceil"),ROUND:__("round"),TRUNC:__("trunc"),SIN:__("sin"),COS:__("cos"),TAN:__(
"tan"),ASIN:__("sin")+"<sup>⁻1</sup>",ACOS:__("cos")+"<sup>⁻1</sup>",ATAN:__("tan")+"<sup>⁻1</sup>",SINH:__("sinh"),COSH:__("cosh"),TANH:__("tanh"),ASINH:__("sinh")+"<sup>⁻1</sup>",ACOSH:__("cosh")+"<sup>⁻1</sup>",ATANH:__("tanh")+"<sup>⁻1</sup>",LN:__("ln"),LOG:__("log")+"<sub>10</sub>",ABS:__("abs"),RAND:__("random"),CLEAR:__("C"),CLEARALL:__("AC"),EXECUTE:"=",HISTORYUP:html=Template(data,html),HISTORYDOWN:function(data,html){return html=Template$1(data,html)}(),BACKSPACE:function(data,html){return html=Template$2(data,html)}(),DEGREE:__("Deg"),RADIAN:__("Rad"),SIGN:"&plusmn;"}}),define("ui/maths/calculator/core/terms",["i18n",
"ui/maths/calculator/core/labels"],function(__,labels){"use strict";return __=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,{NUM0:{label:(labels=labels&&Object.prototype.hasOwnProperty.call(labels,"default")?labels.default:labels).NUM0,value:"0",type:"digit",description:__("Digit 0"),exponent:null},NUM1:{label:labels.NUM1,value:"1",type:"digit",description:__("Digit 1"),exponent:null},NUM2:{label:labels.NUM2,value:"2",type:"digit",description:__("Digit 2"),exponent:null},NUM3:{label:labels.NUM3,value:"3",type:"digit",description:__("Digit 3"),exponent:null},NUM4:{label:labels.NUM4,value:"4",type:"digit",description:__("Digit 4"),
exponent:null},NUM5:{label:labels.NUM5,value:"5",type:"digit",description:__("Digit 5"),exponent:null},NUM6:{label:labels.NUM6,value:"6",type:"digit",description:__("Digit 6"),exponent:null},NUM7:{label:labels.NUM7,value:"7",type:"digit",description:__("Digit 7"),exponent:null},NUM8:{label:labels.NUM8,value:"8",type:"digit",description:__("Digit 8"),exponent:null},NUM9:{label:labels.NUM9,value:"9",type:"digit",description:__("Digit 9"),exponent:null},DOT:{label:labels.DOT,value:".",type:"digit",description:__("Dot"),exponent:null},EXP10:{label:labels.EXP10,value:"e",type:"digit",description:__("Power of 10"),exponent:"right"},LPAR:{label:labels.LPAR,
value:"(",type:"aggregator",description:__("Left parenthesis"),exponent:null},RPAR:{label:labels.RPAR,value:")",type:"aggregator",description:__("Right parenthesis"),exponent:null},COMMA:{label:labels.COMMA,value:",",type:"separator",description:__("Arguments separator"),exponent:null},ELLIPSIS:{label:labels.ELLIPSIS,value:"~",type:"separator",description:__("Value ellipsis"),exponent:null},SUB:{label:labels.SUB,value:"-",type:"operator",description:__("Binary operator -"),exponent:null},NEG:{label:labels.NEG,value:labels.NEG,type:"operator",description:__("Unary operator -"),exponent:null},ADD:{label:labels.ADD,value:"+",type:"operator",description:__(
"Binary operator +"),exponent:null},POS:{label:labels.POS,value:labels.POS,type:"operator",description:__("Unary operator +"),exponent:null},MUL:{label:labels.MUL,value:"*",type:"operator",description:__("Binary operator *"),exponent:null},DIV:{label:labels.DIV,value:"/",type:"operator",description:__("Binary operator /"),exponent:null},MOD:{label:labels.MOD,value:"%",type:"operator",description:__("Binary operator modulo"),exponent:null},POW:{label:labels.POW,value:"^",type:"operator",description:__("Power of"),exponent:"right"},FAC:{label:labels.FAC,value:"!",type:"operator",description:__("Factorial"),exponent:null},ASSIGN:{label:labels.ASSIGN,value:"=",
type:"operator",description:__("Assign"),exponent:null},ANS:{label:labels.ANS,value:"ans",type:"variable",description:__("Last result"),exponent:null},PI:{label:labels.PI,value:"PI",type:"constant",description:__("Value of PI"),exponent:null},E:{label:labels.E,value:"E",type:"constant",description:__("Value of E"),exponent:null},NAN:{label:labels.NAN,value:"NaN",type:"error",description:__("Error in value"),exponent:null},INFINITY:{label:labels.INFINITY,value:"Infinity",type:"error",description:__("Error in result"),exponent:null},ERROR:{label:labels.ERROR,value:"#",type:"error",description:__("Error in syntax"),exponent:null},EXP:{label:labels.EXP,
value:"exp",type:"function",description:__("Exponent"),exponent:"right"},SQRT:{label:labels.SQRT,value:"sqrt",type:"function",description:__("Square root"),exponent:null},CBRT:{label:labels.CBRT,value:"cbrt",type:"function",description:__("Cube root"),exponent:null},NTHRT:{label:labels.SQRT,value:"nthrt",type:"function",description:__("Nth root"),exponent:"left"},FLOOR:{label:labels.FLOOR,value:"floor",type:"function",description:__("Round to lower whole number"),exponent:null},CEIL:{label:labels.CEIL,value:"ceil",type:"function",description:__("Round to upper whole number"),exponent:null},ROUND:{label:labels.ROUND,value:"round",type:"function",
description:__("Round to closest whole number"),exponent:null},TRUNC:{label:labels.TRUNC,value:"trunc",type:"function",description:__("Whole number part"),exponent:null},SIN:{label:labels.SIN,value:"sin",type:"function",description:__("Sine"),exponent:null},COS:{label:labels.COS,value:"cos",type:"function",description:__("Cosine"),exponent:null},TAN:{label:labels.TAN,value:"tan",type:"function",description:__("Tangent"),exponent:null},ASIN:{label:labels.ASIN,value:"asin",type:"function",description:__("Arc sine"),exponent:null},ACOS:{label:labels.ACOS,value:"acos",type:"function",description:__("Arc cosine"),exponent:null},ATAN:{label:labels.ATAN,
value:"atan",type:"function",description:__("Arc tangent"),exponent:null},SINH:{label:labels.SINH,value:"sinh",type:"function",description:__("Hyperbolic sine"),exponent:null},COSH:{label:labels.COSH,value:"cosh",type:"function",description:__("Hyperbolic cosine"),exponent:null},TANH:{label:labels.TANH,value:"tanh",type:"function",description:__("Hyperbolic tangent"),exponent:null},ASINH:{label:labels.ASINH,value:"asinh",type:"function",description:__("Hyperbolic arc sine"),exponent:null},ACOSH:{label:labels.ACOSH,value:"acosh",type:"function",description:__("Hyperbolic arc cosine"),exponent:null},ATANH:{label:labels.ATANH,value:"atanh",type:"function",
description:__("Hyperbolic arc tangent"),exponent:null},LN:{label:labels.LN,value:"ln",type:"function",description:__("Natural logarithm"),exponent:null},LOG:{label:labels.LN,value:"log",type:"function",description:__("Natural logarithm"),exponent:null},LG:{label:labels.LOG,value:"lg",type:"function",description:__("Base-10 logarithm"),exponent:null},LOG10:{label:labels.LOG,value:"log10",type:"function",description:__("Base-10 logarithm"),exponent:null},ABS:{label:labels.ABS,value:"abs",type:"function",description:__("Absolute value"),exponent:null},RAND:{label:labels.RAND,value:"random",type:"function",description:__("Random value"),exponent:null}}}),
define("ui/maths/calculator/core/tokens",["ui/maths/calculator/core/terms"],function(registeredTerms){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms;var tokensHelper={getType:function(token){var type,term;return"string"!=typeof token?(type=token&&token.type||null,(term=registeredTerms[type]
)&&term.type||type):token},isDigit:function(type){return"digit"===tokensHelper.getType(type)},isOperator:function(type){return"operator"===tokensHelper.getType(type)},isOperand:function(type){return"operator"!==(type=tokensHelper.getType(type))&&"aggregator"!==type&&"separator"!==type},isValue:function(type){return"digit"===(type=tokensHelper.getType(type))||"constant"===type||"variable"===type||"term"===type||"error"===type},isAggregator:function(type){return"aggregator"===tokensHelper.getType(type)},isError:function(type){return"error"===tokensHelper.getType(type)},isConstant:function(type){return"constant"===tokensHelper.getType(type)},
isVariable:function(type){return"variable"===(type=tokensHelper.getType(type))||"term"===type},isFunction:function(type){return"function"===tokensHelper.getType(type)},isIdentifier:function(type){return"constant"===(type=tokensHelper.getType(type))||"variable"===type||"term"===type||"function"===type||"error"===type},isSeparator:function(type){return"operator"===(type=tokensHelper.getType(type))||"aggregator"===type||"separator"===type},isModifier:function(type){return"operator"===(type=tokensHelper.getType(type))||"function"===type},stringValue:function(expression){var type=_typeof(expression);return"string"!==type&&(
expression&&void 0!==expression.value?expression=expression.value:expression&&void 0!==expression.result?expression=expression.result:"object"!==type&&"undefined"!==type&&null!==expression||(expression=""),expression=String(expression)),expression}};return tokensHelper}),function(root,factory){"function"==typeof define&&define.amd?define("lib/moo/moo",[],factory):"object"==typeof module&&module.exports?module.exports=factory():root.moo=factory()}(this,function(){"use strict";var hasOwnProperty=Object.prototype.hasOwnProperty,toString=Object.prototype.toString,hasSticky="boolean"==typeof(new RegExp).sticky;function isRegExp(o){
return o&&"[object RegExp]"===toString.call(o)}function isObject(o){return o&&"object"==typeof o&&!isRegExp(o)&&!Array.isArray(o)}function reUnion(regexps){return regexps.length?"(?:"+regexps.map(function(s){return"(?:"+s+")"}).join("|")+")":"(?!)"}function regexpOrLiteral(obj){if("string"==typeof obj)return"(?:"+obj.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(isRegExp(obj)){if(obj.ignoreCase)throw new Error("RegExp /i flag not allowed");if(obj.global)throw new Error("RegExp /g flag is implied");if(obj.sticky)throw new Error("RegExp /y flag is implied");if(obj.multiline)throw new Error("RegExp /m flag is implied");if(obj.unicode)throw new Error(
"RegExp /u flag is not allowed");return obj.source}throw new Error("Not a pattern: "+obj)}function ruleOptions(match,obj){if(isObject(obj)||(obj={match:obj}),obj.include)throw new Error("Matching rules cannot also include states");var key,options={defaultType:match,lineBreaks:!!obj.error||!!obj.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(key in obj)hasOwnProperty.call(obj,key)&&(options[key]=obj[key]);if("string"==typeof options.type&&match!==options.type)throw new Error("Type transform cannot be a string (type '"+options.type+"' for token '"+match+"')");match=options.match
;return options.match=Array.isArray(match)?match:match?[match]:[],options.match.sort(function(a,b){return isRegExp(a)&&isRegExp(b)?0:isRegExp(b)?-1:isRegExp(a)?1:b.length-a.length}),options}function toRules(spec){return(Array.isArray(spec)?function(array){for(var result=[],i=0;i<array.length;i++){var obj=array[i];if(obj.include)for(var include=[].concat(obj.include),j=0;j<include.length;j++)result.push({include:include[j]});else{if(!obj.type)throw new Error("Rule has no type: "+JSON.stringify(obj));result.push(ruleOptions(obj.type,obj))}}return result}:function(object){for(var keys=Object.getOwnPropertyNames(object),result=[],i=0;i<keys.length;i++){
var key=keys[i],thing=object[key],rules=[].concat(thing);if("include"!==key){var match=[];rules.forEach(function(rule){isObject(rule)?(match.length&&result.push(ruleOptions(key,match)),result.push(ruleOptions(key,rule)),match=[]):match.push(rule)}),match.length&&result.push(ruleOptions(key,match))}else for(var j=0;j<rules.length;j++)result.push({include:rules[j]})}return result})(spec)}var defaultErrorRule=ruleOptions("error",{lineBreaks:!0,shouldThrow:!0});function compileRules(rules,hasStates){for(var errorRule=null,fast=Object.create(null),fastAllowed=!0,groups=[],parts=[],i=0;i<rules.length;i++)rules[i].fallback&&(fastAllowed=!1);for(
i=0;i<rules.length;i++){var options=rules[i];if(options.include)throw new Error("Inheritance is not allowed in stateless lexers");if(options.error||options.fallback){if(errorRule)throw!options.fallback==!errorRule.fallback?new Error("Multiple "+(options.fallback?"fallback":"error")+" rules not allowed (for token '"+options.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+options.defaultType+"')");errorRule=options}var match=options.match;if(fastAllowed)for(;match.length&&"string"==typeof match[0]&&1===match[0].length;){fast[match.shift().charCodeAt(0)]=options}if(options.pop||options.push||options.next){if(!hasStates
)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+options.defaultType+"')");if(options.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+options.defaultType+"')")}if(0!==match.length){fastAllowed=!1,groups.push(options);var pat=reUnion(match.map(regexpOrLiteral)),regexp=new RegExp(pat);if(regexp.test(""))throw new Error("RegExp matches empty string: "+regexp);if(0<new RegExp("|"+pat).exec("").length-1)throw new Error("RegExp has capture groups: "+regexp+"\nUse (?: … ) instead");if(!options.lineBreaks&&regexp.test("\n"))throw new Error(
"Rule should declare lineBreaks: "+regexp);parts.push("("+pat+")")}}var suffix=errorRule&&errorRule.fallback,flags=hasSticky&&!suffix?"ym":"gm",suffix=hasSticky||suffix?"":"|";return{regexp:new RegExp(reUnion(parts)+suffix,flags),groups:groups,fast:fast,error:errorRule||defaultErrorRule}}function checkStateGroup(g,name,map){var state=g&&(g.push||g.next);if(state&&!map[state])throw new Error("Missing state '"+state+"' (in token '"+g.defaultType+"' of state '"+name+"')");if(g&&g.pop&&1!=+g.pop)throw new Error("pop must be 1 (in token '"+g.defaultType+"' of state '"+name+"')")}function Lexer(states,state){this.startState=state,this.states=states,this.buffer="",
this.stack=[],this.reset()}Lexer.prototype.reset=function(data,info){return this.buffer=data||"",this.index=0,this.line=info?info.line:1,this.col=info?info.col:1,this.queuedToken=info?info.queuedToken:null,this.queuedThrow=info?info.queuedThrow:null,this.setState(info?info.state:this.startState),this.stack=info&&info.stack?info.stack.slice():[],this},Lexer.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},Lexer.prototype.setState=function(info){info&&this.state!==info&&(this.state=info,info=this.states[info],this.groups=info.groups,
this.error=info.error,this.re=info.regexp,this.fast=info.fast)},Lexer.prototype.popState=function(){this.setState(this.stack.pop())},Lexer.prototype.pushState=function(state){this.stack.push(this.state),this.setState(state)};var LexerIterator,eat=hasSticky?function(re,buffer){return re.exec(buffer)}:function(re,match){match=re.exec(match);return 0===match[0].length?null:match};function tokenToString(){return this.value}return Lexer.prototype._getGroup=function(match){for(var groupCount=this.groups.length,i=0;i<groupCount;i++)if(void 0!==match[i+1])return this.groups[i];throw new Error("Cannot find token type for matched text")},Lexer.prototype.next=function(
){var index=this.index;if(this.queuedGroup){var error=this._token(this.queuedGroup,this.queuedText,index);return this.queuedGroup=null,this.queuedText="",error}var buffer=this.buffer;if(index!==buffer.length){if(group=this.fast[buffer.charCodeAt(index)])return this._token(group,buffer.charAt(index),index);var text=this.re;text.lastIndex=index;var match=eat(text,buffer),error=this.error;if(null==match)return this._token(error,buffer.slice(index,buffer.length),index);var group=this._getGroup(match),text=match[0];return error.fallback&&match.index!==index?(this.queuedGroup=group,this.queuedText=text,this._token(error,buffer.slice(index,match.index),index)
):this._token(group,text,index)}},Lexer.prototype._token=function(group,text,size){var lineBreaks=0;if(group.lineBreaks){var matchNL=/\n/g,nl=1;if("\n"===text)lineBreaks=1;else for(;matchNL.exec(text);)lineBreaks++,nl=matchNL.lastIndex}var token={type:"function"==typeof group.type&&group.type(text)||group.defaultType,value:"function"==typeof group.value?group.value(text):text,text:text,toString:tokenToString,offset:size,lineBreaks:lineBreaks,line:this.line,col:this.col},size=text.length;if(this.index+=size,this.line+=lineBreaks,0!==lineBreaks?this.col=size-nl+1:this.col+=size,group.shouldThrow)throw new Error(this.formatError(token,"invalid syntax"))
;return group.pop?this.popState():group.push?this.pushState(group.push):group.next&&this.setState(group.next),token},"undefined"!=typeof Symbol&&Symbol.iterator&&((LexerIterator=function(lexer){this.lexer=lexer}).prototype.next=function(){var token=this.lexer.next();return{value:token,done:!token}},LexerIterator.prototype[Symbol.iterator]=function(){return this},Lexer.prototype[Symbol.iterator]=function(){return new LexerIterator(this)}),Lexer.prototype.formatError=function(token,message){var start=token.text,index=token.offset,firstLine=token.lineBreaks?start.indexOf("\n"):start.length,start=Math.max(0,index-token.col+1),firstLine=this.buffer.substring(
start,index+firstLine);return message+=" at line "+token.line+" col "+token.col+":\n\n",message+=" "+firstLine+"\n",message+=" "+Array(token.col).join(" ")+"^"},Lexer.prototype.clone=function(){return new Lexer(this.states,this.state)},Lexer.prototype.has=function(tokenType){return!0},{compile:function(result){return result=compileRules(toRules(result)),new Lexer({start:result},"start")},states:function(states,start){var all=states.$all?toRules(states.$all):[];delete states.$all;var keys=Object.getOwnPropertyNames(states);start=start||keys[0];for(var ruleMap=Object.create(null),i=0;i<keys.length;i++){ruleMap[key=keys[i]]=toRules(states[key]).concat(all)}
for(i=0;i<keys.length;i++)for(var rules=ruleMap[key=keys[i]],included=Object.create(null),j=0;j<rules.length;j++){var rule=rules[j];if(rule.include){var splice=[j,1];if(rule.include!==key&&!included[rule.include]){included[rule.include]=!0;var newRules=ruleMap[rule.include];if(!newRules)throw new Error("Cannot include nonexistent state '"+rule.include+"' (in state '"+key+"')");for(var k=0;k<newRules.length;k++){var newRule=newRules[k];-1===rules.indexOf(newRule)&&splice.push(newRule)}}rules.splice.apply(rules,splice),j--}}for(var key,map=Object.create(null),i=0;i<keys.length;i++){map[key=keys[i]]=compileRules(ruleMap[key],!0)}for(i=0;i<keys.length;i++){for(
var name=keys[i],state=map[name],groups=state.groups,j=0;j<groups.length;j++)checkStateGroup(groups[j],name,map);for(var fastKeys=Object.getOwnPropertyNames(state.fast),j=0;j<fastKeys.length;j++)checkStateGroup(state.fast[fastKeys[j]],name,map)}return new Lexer(map,start)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(map){for(var reverseMap=Object.create(null),byLength=Object.create(null),types=Object.getOwnPropertyNames(map),i=0;i<types.length;i++){var tokenType=types[i],item=map[tokenType];(Array.isArray(item)?item:[item]).forEach(function(keyword){if((byLength[keyword.length]=byLength[keyword.length]||[]).push(
keyword),"string"!=typeof keyword)throw new Error("keyword must be string (in keyword '"+tokenType+"')");reverseMap[keyword]=tokenType})}function str(x){return JSON.stringify(x)}var length,source="";for(length in source+="switch (value.length) {\n",byLength){var keywords=byLength[length];source+="case "+length+":\n",source+="switch (value) {\n",keywords.forEach(function(keyword){var tokenType=reverseMap[keyword];source+="case "+str(keyword)+": return "+str(tokenType)+"\n"}),source+="}\n"}return source+="}\n",Function("value",source)}}}),define("ui/maths/calculator/core/tokenizer",["lodash","ui/maths/calculator/core/terms","ui/maths/calculator/core/tokens",
"lib/moo/moo"],function(_,registeredTerms,tokensHelper,moo){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms,tokensHelper=tokensHelper&&Object.prototype.hasOwnProperty.call(tokensHelper,"default")?tokensHelper.default:tokensHelper,moo=moo&&Object.prototype.hasOwnProperty.call(moo,"default")?moo.default:moo;var ignoredTokens={SPACE:{match:/\s+/,lineBreaks:!0}},reKeyword=/[a-zA-Z_]\w*/,reNumber=/[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?/,rePrefixedKeyword=new RegExp("@"+reKeyword.source),
reKeywordOnly=new RegExp("^"+reKeyword.source+"$"),keywords=_.pick(registeredTerms,filterKeyword),symbols=_.omit(registeredTerms,filterKeyword),digits=_.pick(registeredTerms,function(term){return tokensHelper.isDigit(term.type)||"-"===term.value||"+"===term.value});function filterKeyword(term){return term.value.match(reKeywordOnly)}return function(config){function next(){var term;if(digitContext&&(term=digitLexer.next())&&(term.offset+=digitContext.offset),!term){for(digitContext=null;(term=lexer.next())&&ignoredTokens[term.type];);term&&"number"===term.type&&(digitContext=term,digitLexer.reset(term.value),term=next())}return term}var keywordsTransform,lexer
,digitLexer,digitContext,tokenizer={iterator:function(expression){return lexer.reset(tokensHelper.stringValue(expression)),next},tokenize:function(expression){for(var term,iterator=tokenizer.iterator(expression),terms=[];(term=iterator())&&terms.push(term),term;);return terms}};return(config=config||{}).keywords=_.defaults(_.mapValues(keywords,"value"),config.keywords),config.symbols=_.defaults(_.mapValues(symbols,"value"),config.symbols),keywordsTransform=moo.keywords(config.keywords),lexer=moo.compile(_.defaults({},ignoredTokens,{number:reNumber,prefixed:{match:rePrefixedKeyword,type:function(token){return keywordsTransform(token.substring(1))}},term:{
match:reKeyword,type:keywordsTransform},syntaxError:moo.error},config.symbols)),digitLexer=moo.compile(_.mapValues(digits,"value")),tokenizer}}),define("ui/maths/calculator/core/expression",["lodash","ui/maths/calculator/core/terms","ui/maths/calculator/core/tokens","ui/maths/calculator/core/tokenizer","handlebars","i18n","lib/dompurify/purify"],function(_,registeredTerms,tokensHelper,tokenizerFactory,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms,tokensHelper=tokensHelper&&Object.prototype.hasOwnProperty.call(tokensHelper,"default")?tokensHelper.default:tokensHelper,tokenizerFactory=tokenizerFactory&&Object.prototype.hasOwnProperty.call(tokenizerFactory,"default"
)?tokenizerFactory.default:tokenizerFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),stack1=stack1||{};var self=this,functionType="function",
escapeExpression=this.escapeExpression;function program2(depth0,data){return"<sup>"}function program4(depth0,data){return" term-elide"}function program6(depth0,data){return"</sup>"}return(stack1=helpers.each.call(depth0,depth0,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var helper,buffer="",stack1=helpers.each.call(depth0,depth0&&depth0.startExponent,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data});return!stack1&&0!==stack1||(buffer+=stack1),buffer+='<span class="term term-',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(depth0,{hash:{},data:data}):helper,
buffer+=escapeExpression(stack1),!(stack1=helpers.if.call(depth0,depth0&&depth0.elide,{hash:{},inverse:self.noop,fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" data-value="',stack1=(helper=helpers.value)||typeof(helper=depth0&&depth0.value)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-token="',stack1=(helper=helpers.token)||typeof(helper=depth0&&depth0.token)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-type="',stack1=(helper=helpers.type)||typeof(helper=depth0&&depth0.type)===functionType?helper.call(
depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'">',!(stack1=(helper=helpers.label)||typeof(helper=depth0&&depth0.label)===functionType?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</span>",!(stack1=helpers.each.call(depth0,depth0&&depth0.endExponent,{hash:{},inverse:self.noop,fn:self.program(6,program6,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer},stack1),data:stack1}))||0===stack1?stack1:""});var lastResultVariableName=registeredTerms.ANS.value,rePrefixedTerm=/^@[a-zA-Z_]\w*$/,reErrorValue=/(NaN|[+-]?Infinity)/,reAnsVar=new RegExp("\\b"+lastResultVariableName+"\\b","g"),
signOperators=["NEG","POS","SUB","ADD"],continueExponent=["POW","NTHRT"],expressionHelper={containsError:function(expression){return reErrorValue.test(tokensHelper.stringValue(expression))},replaceLastResult:function(expression,value){return tokensHelper.stringValue(expression).replace(reAnsVar,tokensHelper.stringValue(value||"0"))},roundVariable:function(value,decimalDigits){var resultString=tokensHelper.stringValue(value),fullString=resultString,value=value&&value.result;return decimalDigits=decimalDigits||5,void 0!==value&&(value.toExponential&&0<resultString.indexOf(registeredTerms.EXP10.value)?resultString=value.toExponential(decimalDigits).toString(
):value.toDecimalPlaces&&0<resultString.indexOf(registeredTerms.DOT.value)&&(resultString=value.toDecimalPlaces(decimalDigits).toString()),resultString.length<fullString.length?resultString+=registeredTerms.ELLIPSIS.value:resultString=fullString),resultString},roundLastResultVariable:function(variables,decimalDigits){return variables&&void 0!==variables[lastResultVariableName]&&(variables[lastResultVariableName]=expressionHelper.roundVariable(variables[lastResultVariableName],decimalDigits)),variables},renderSign:function(expression){return tokensHelper.stringValue(expression).replace(registeredTerms.SUB.value,registeredTerms.NEG.label).replace(
registeredTerms.ADD.value,registeredTerms.POS.label)},render:function(expression,variables,tokenizer){var previous,html,tokens=expression,exponents=[],terms=[];function toSignOperator(term,token){previous&&!tokensHelper.isModifier(previous.type)&&"LPAR"!==previous.token&&"EXP10"!==previous.token||(term.label=registeredTerms[token].label,term.token=token)}return _.isArray(expression)||(tokenizer&&tokenizer.tokenize||(tokenizer=tokenizerFactory()),tokens=tokenizer.tokenize(expression)),variables=variables||{},_.forEach(tokens,function(term,index){var registeredTerm=registeredTerms[term.type],term={type:term.type,token:term.type,value:term.value,
label:term.value,description:term.value,exponent:null,startExponent:[],endExponent:[],prefixed:rePrefixedTerm.test(term.value),elide:!1};registeredTerm?(_.merge(term,registeredTerm),term.value===lastResultVariableName&&void 0!==variables[term.value]&&(term.label=expressionHelper.render(variables[term.value],variables,tokenizer))):"term"===term.token&&(void 0!==variables[term.value]?term.type="variable":term.type="unknown"),"SUB"===term.token?toSignOperator(term,"NEG"):"ADD"===term.token&&toSignOperator(term,"POS"),terms.push(term),term.exponent&&exponents.push(index),previous=term}),_.forEach(exponents,function(index){var term=terms[index]
;"left"===term.exponent&&0<index?function(index,terms){var parenthesis=0,next=terms[index],term=terms[--index];function nextTerm(){next=term,term=terms[--index]}if(term&&(tokensHelper.isOperand(term.type)||"RPAR"===term.token)){if(term.endExponent.push(term.endExponent.length),"RPAR"===term.token){for(parenthesis++;0<index&&0<parenthesis;)nextTerm(),"RPAR"===term.token?parenthesis++:"LPAR"===term.token&&parenthesis--;0<index&&tokensHelper.isFunction(terms[index-1])&&!terms[index-1].prefixed&&nextTerm()}else if(tokensHelper.isDigit(term.type)){for(;index&&tokensHelper.isDigit(term.type);)nextTerm();tokensHelper.isDigit(term.type)||(term=next)}
term.startExponent.push(term.startExponent.length)}}(index,terms):"right"===term.exponent&&index<terms.length-1&&function(index,terms){var shouldContinue,last=terms.length-1,parenthesis=0,startAt=index,previous=terms[index],term=terms[++index];function nextTerm(){previous=term,term=terms[++index]}function previousTerm(){term=previous,previous=terms[--index]}if(term&&(tokensHelper.isOperand(term.type)||"LPAR"===term.token||0<=signOperators.indexOf(term.token))){term.startExponent.push(term.startExponent.length);do{for(shouldContinue=!1;index<last&&(tokensHelper.isFunction(term.type)||0<=signOperators.indexOf(term.token));)nextTerm();if(term||previousTerm(),
"LPAR"===term.token)for(parenthesis++;index<last&&0<parenthesis;)nextTerm(),"LPAR"===term.token?parenthesis++:"RPAR"===term.token&&parenthesis--;else if(tokensHelper.isDigit(term.type)){for(;index<last&&tokensHelper.isDigit(term.type);)nextTerm();term&&tokensHelper.isDigit(term.type)||previousTerm()}for(;index<last&&"FAC"===terms[index+1].token;)nextTerm()}while(index<last&&0<=continueExponent.indexOf(terms[index+1].token)&&(nextTerm(),nextTerm(),shouldContinue=!0),shouldContinue);term.endExponent.push(term.endExponent.length),0<startAt&&startAt<last&&"POW"===terms[startAt].token&&terms[startAt+1].startExponent.length&&(terms[startAt].elide=!0)}}(index,terms
)}),html=Template(terms,html)}};return expressionHelper}),function(globalScope){"use strict";var Decimal,inexact,noConflict,quadrant,EXP_LIMIT=9e15,MAX_DIGITS=1e9,NUMERALS="0123456789abcdef",
LN10="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058"
,
PI="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789"
,DEFAULTS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-EXP_LIMIT,maxE:EXP_LIMIT,crypto:!1},external=!0,decimalError="[DecimalError] ",invalidArgument=decimalError+"Invalid argument: ",precisionLimitExceeded=decimalError+"Precision limit exceeded",cryptoUnavailable=decimalError+"crypto unavailable",mathfloor=Math.floor,mathpow=Math.pow,isBinary=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,isHex=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,isOctal=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,isDecimal=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,BASE=1e7,LOG_BASE=7,LN10_PRECISION=LN10.length-1,PI_PRECISION=PI.length-1,P={
name:"[object Decimal]"};function digitsToString(d){var i,k,ws,indexOfLastWord=d.length-1,str="",w=d[0];if(0<indexOfLastWord){for(str+=w,i=1;i<indexOfLastWord;i++)ws=d[i]+"",(k=LOG_BASE-ws.length)&&(str+=getZeroString(k)),str+=ws;w=d[i],(k=LOG_BASE-(ws=w+"").length)&&(str+=getZeroString(k))}else if(0===w)return"0";for(;w%10==0;)w/=10;return str+w}function checkInt32(i,min,max){if(i!==~~i||i<min||max<i)throw Error(invalidArgument+i)}function checkRoundingDigits(d,i,rm,repeating){for(var di,rd,k=d[0];10<=k;k/=10)--i;return--i<0?(i+=LOG_BASE,di=0):(di=Math.ceil((i+1)/LOG_BASE),i%=LOG_BASE),k=mathpow(10,LOG_BASE-i),rd=d[di]%k|0,null==repeating?i<3?(
0==i?rd=rd/100|0:1==i&&(rd=rd/10|0),rm<4&&99999==rd||3<rm&&49999==rd||5e4==rd||0==rd):(rm<4&&rd+1==k||3<rm&&rd+1==k/2)&&(d[di+1]/k/100|0)==mathpow(10,i-2)-1||(rd==k/2||0==rd)&&0==(d[di+1]/k/100|0):i<4?(0==i?rd=rd/1e3|0:1==i?rd=rd/100|0:2==i&&(rd=rd/10|0),(repeating||rm<4)&&9999==rd||!repeating&&3<rm&&4999==rd):((repeating||rm<4)&&rd+1==k||!repeating&&3<rm&&rd+1==k/2)&&(d[di+1]/k/1e3|0)==mathpow(10,i-3)-1}function convertBase(str,baseIn,baseOut){for(var j,arrL,arr=[0],i=0,strL=str.length;i<strL;){for(arrL=arr.length;arrL--;)arr[arrL]*=baseIn;for(arr[0]+=NUMERALS.indexOf(str.charAt(i++)),j=0;j<arr.length;j++)arr[j]>baseOut-1&&(void 0===arr[j+1]&&(arr[j+1]=0),
arr[j+1]+=arr[j]/baseOut|0,arr[j]%=baseOut)}return arr.reverse()}P.absoluteValue=P.abs=function(){var x=new this.constructor(this);return x.s<0&&(x.s=1),finalise(x)},P.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},P.comparedTo=P.cmp=function(ydL){var i,j,xdL=this,xd=xdL.d,yd=(ydL=new xdL.constructor(ydL)).d,xs=xdL.s,ys=ydL.s;if(!xd||!yd)return xs&&ys?xs!==ys?xs:xd===yd?0:!xd^xs<0?1:-1:NaN;if(!xd[0]||!yd[0])return xd[0]?xs:yd[0]?-ys:0;if(xs!==ys)return xs;if(xdL.e!==ydL.e)return xdL.e>ydL.e^xs<0?1:-1;for(i=0,j=(xdL=xd.length)<(ydL=yd.length)?xdL:ydL;i<j;++i)if(xd[i]!==yd[i])return xd[i]>yd[i]^xs<0?1:-1
;return xdL===ydL?0:ydL<xdL^xs<0?1:-1},P.cosine=P.cos=function(){var pr,rm,x=this,Ctor=x.constructor;return x.d?x.d[0]?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function(Ctor,x){var k,y=x.d.length;y=y<32?(k=Math.ceil(y/3),(1/tinyPow(4,k)).toString()):(k=16,"2.3283064365386962890625e-10");Ctor.precision+=k,x=taylorSeries(Ctor,1,x.times(y),new Ctor(1));for(var i=k;i--;){var cos2x=x.times(x);x=cos2x.times(cos2x).minus(cos2x).times(8).plus(1)}return Ctor.precision-=k,x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||3==quadrant?x.neg():x,pr,rm,!0)):new Ctor(1
):new Ctor(NaN)},P.cubeRoot=P.cbrt=function(){var e,m,n,r,rep,s,sd,t,t3,t3plusx,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);for(external=!1,(s=x.s*mathpow(x.s*x,1/3))&&Math.abs(s)!=1/0?r=new Ctor(s.toString()):(n=digitsToString(x.d),(s=((e=x.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=mathpow(n,1/3),e=mathfloor((e+1)/3)-(e%3==(e<0?-1:2)),(r=new Ctor(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=x.s),sd=(e=Ctor.precision)+3;;)if(t3plusx=(t3=(t=r).times(t).times(t)).plus(x),r=divide(t3plusx.plus(x).times(t),t3plusx.plus(t3),sd+2,1),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){
if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).times(r).eq(x));break}if(!rep&&(finalise(t,e+1,0),t.times(t).times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.decimalPlaces=P.dp=function(){var w,d=this.d,n=NaN;if(d){if(n=((w=d.length-1)-mathfloor(this.e/LOG_BASE))*LOG_BASE,w=d[w])for(;w%10==0;w/=10)n--;n<0&&(n=0)}return n},P.dividedBy=P.div=function(y){return divide(this,new this.constructor(y))},P.dividedToIntegerBy=P.divToInt=function(y){var Ctor=this.constructor;return finalise(divide(this,new Ctor(y),0,1,1),Ctor.precision,Ctor.rounding)},
P.equals=P.eq=function(y){return 0===this.cmp(y)},P.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(y){return 0<this.cmp(y)},P.greaterThanOrEqualTo=P.gte=function(k){k=this.cmp(k);return 1==k||0===k},P.hyperbolicCosine=P.cosh=function(){var k,pr,rm,n,x=this,Ctor=x.constructor,one=new Ctor(1);if(!x.isFinite())return new Ctor(x.s?1/0:NaN);if(x.isZero())return one;pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,n=(n=x.d.length)<32?(1/tinyPow(4,k=Math.ceil(n/3))).toString():(k=16,"2.3283064365386962890625e-10"),x=taylorSeries(Ctor,1,x.times(n),new Ctor(1),!0);for(
var cosh2_x,i=k,d8=new Ctor(8);i--;)cosh2_x=x.times(x),x=one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));return finalise(x,Ctor.precision=pr,Ctor.rounding=rm,!0)},P.hyperbolicSine=P.sinh=function(){var k,pr,rm,len,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);if(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,(len=x.d.length)<3)x=taylorSeries(Ctor,2,x,x,!0);else{k=16<(k=1.4*Math.sqrt(len))?16:0|k,x=taylorSeries(Ctor,2,x=x.times(1/tinyPow(5,k)),x,!0);for(var sinh2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sinh2_x=x.times(x),x=x.times(d5.plus(sinh2_x.times(d16.times(
sinh2_x).plus(d20))))}return finalise(x,Ctor.precision=pr,Ctor.rounding=rm,!0)},P.hyperbolicTangent=P.tanh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+7,Ctor.rounding=1,divide(x.sinh(),x.cosh(),Ctor.precision=pr,Ctor.rounding=rm)):new Ctor(x.s)},P.inverseCosine=P.acos=function(){var x=this,Ctor=x.constructor,halfPi=x.abs().cmp(1),pr=Ctor.precision,rm=Ctor.rounding;return-1!==halfPi?0===halfPi?x.isNeg()?getPi(Ctor,pr,rm):new Ctor(0):new Ctor(NaN):x.isZero()?getPi(Ctor,pr+4,rm).times(.5):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.asin(),halfPi=getPi(Ctor,pr+4,rm
).times(.5),Ctor.precision=pr,Ctor.rounding=rm,halfPi.minus(x))},P.inverseHyperbolicCosine=P.acosh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.lte(1)?new Ctor(x.eq(1)?0:NaN):x.isFinite()?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(Math.abs(x.e),x.sd())+4,Ctor.rounding=1,external=!1,x=x.times(x).minus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln()):new Ctor(x)},P.inverseHyperbolicSine=P.asinh=function(){var pr,rm,x=this,Ctor=x.constructor;return!x.isFinite()||x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+2*Math.max(Math.abs(x.e),x.sd())+6,Ctor.rounding=1,external=!1,
x=x.times(x).plus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var pr,rm,wpr,x=this,Ctor=x.constructor;return x.isFinite()?0<=x.e?new Ctor(x.abs().eq(1)?x.s/0:x.isZero()?x:NaN):(pr=Ctor.precision,rm=Ctor.rounding,wpr=x.sd(),Math.max(wpr,pr)<2*-x.e-1?finalise(new Ctor(x),pr,rm,!0):(Ctor.precision=wpr=wpr-x.e,x=divide(x.plus(1),new Ctor(1).minus(x),wpr+pr,1),Ctor.precision=pr+4,Ctor.rounding=1,x=x.ln(),Ctor.precision=pr,Ctor.rounding=rm,x.times(.5))):new Ctor(NaN)},P.inverseSine=P.asin=function(){var halfPi,pr,rm,x=this,Ctor=x.constructor;return x.isZero()?new Ctor(x):(halfPi=x.abs(
).cmp(1),pr=Ctor.precision,rm=Ctor.rounding,-1!==halfPi?0===halfPi?((halfPi=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,halfPi):new Ctor(NaN):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan(),Ctor.precision=pr,Ctor.rounding=rm,x.times(2)))},P.inverseTangent=P.atan=function(){var i,j,k,n,px,t,r,wpr,x2,x=this,Ctor=x.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(x.isFinite()){if(x.isZero())return new Ctor(x);if(x.abs().eq(1)&&pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.25)).s=x.s,r}else{if(!x.s)return new Ctor(NaN);if(pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,r}for(
Ctor.precision=wpr=pr+10,Ctor.rounding=1,i=k=Math.min(28,wpr/LOG_BASE+2|0);i;--i)x=x.div(x.times(x).plus(1).sqrt().plus(1));for(external=!1,j=Math.ceil(wpr/LOG_BASE),n=1,x2=x.times(x),r=new Ctor(x),px=x;-1!==i;)if(px=px.times(x2),t=r.minus(px.div(n+=2)),px=px.times(x2),void 0!==(r=t.plus(px.div(n+=2))).d[j])for(i=j;r.d[i]===t.d[i]&&i--;);return k&&(r=r.times(2<<k-1)),external=!0,finalise(r,Ctor.precision=pr,Ctor.rounding=rm,!0)},P.isFinite=function(){return!!this.d},P.isInteger=P.isInt=function(){return!!this.d&&mathfloor(this.e/LOG_BASE)>this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},
P.isPositive=P.isPos=function(){return 0<this.s},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(y){return this.cmp(y)<0},P.lessThanOrEqualTo=P.lte=function(y){return this.cmp(y)<1},P.logarithm=P.log=function(base){var isBase10,d,denominator,k,inf,num,sd,r,Ctor=this.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(null==base)base=new Ctor(10),isBase10=!0;else{if(d=(base=new Ctor(base)).d,base.s<0||!d||!d[0]||base.eq(1))return new Ctor(NaN);isBase10=base.eq(10)}if(d=this.d,this.s<0||!d||!d[0]||this.eq(1))return new Ctor(d&&!d[0]?-1/0:1!=this.s?NaN:d?0:1/0);if(isBase10)if(1<d.length)inf=!0;else{for(k=d[0];k%10==0;)k/=10;inf=1!==k}
if(external=!1,num=naturalLogarithm(this,sd=pr+5),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),checkRoundingDigits((r=divide(num,denominator,sd,1)).d,k=pr,rm))do{if(num=naturalLogarithm(this,sd+=10),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),r=divide(num,denominator,sd,1),!inf){+digitsToString(r.d).slice(k+1,k+15)+1==1e14&&(r=finalise(r,pr+1,0));break}}while(checkRoundingDigits(r.d,k+=10,rm));return external=!0,finalise(r,pr,rm)},P.minus=P.sub=function(y){var d,e,i,j,k,len,pr,rm,xd,xLTy,yd,xe=this,Ctor=xe.constructor;if(y=new Ctor(y),!xe.d||!y.d)return xe.s&&y.s?xe.d?y.s=-y.s:y=new Ctor(y.d||xe.s!==y.s?xe:NaN
):y=new Ctor(NaN),y;if(xe.s!=y.s)return y.s=-y.s,xe.plus(y);if(xd=xe.d,yd=y.d,pr=Ctor.precision,rm=Ctor.rounding,!xd[0]||!yd[0]){if(yd[0])y.s=-y.s;else{if(!xd[0])return new Ctor(3===rm?-0:0);y=new Ctor(xe)}return external?finalise(y,pr,rm):y}if(e=mathfloor(y.e/LOG_BASE),xe=mathfloor(xe.e/LOG_BASE),xd=xd.slice(),k=xe-e){for(len=(xLTy=k<0)?(d=xd,k=-k,yd.length):(d=yd,e=xe,xd.length),(i=Math.max(Math.ceil(pr/LOG_BASE),len)+2)<k&&(k=i,d.length=1),d.reverse(),i=k;i--;)d.push(0);d.reverse()}else{for((xLTy=(i=xd.length)<(len=yd.length))&&(len=i),i=0;i<len;i++)if(xd[i]!=yd[i]){xLTy=xd[i]<yd[i];break}k=0}for(xLTy&&(d=xd,xd=yd,yd=d,y.s=-y.s),len=xd.length,
i=yd.length-len;0<i;--i)xd[len++]=0;for(i=yd.length;k<i;){if(xd[--i]<yd[i]){for(j=i;j&&0===xd[--j];)xd[j]=BASE-1;--xd[j],xd[i]+=BASE}xd[i]-=yd[i]}for(;0===xd[--len];)xd.pop();for(;0===xd[0];xd.shift())--e;return xd[0]?(y.d=xd,y.e=getBase10Exponent(xd,e),external?finalise(y,pr,rm):y):new Ctor(3===rm?-0:0)},P.modulo=P.mod=function(y){var q,x=this,Ctor=x.constructor;return y=new Ctor(y),!x.d||!y.s||y.d&&!y.d[0]?new Ctor(NaN):!y.d||x.d&&!x.d[0]?finalise(new Ctor(x),Ctor.precision,Ctor.rounding):(external=!1,9==Ctor.modulo?(q=divide(x,y.abs(),0,3,1)).s*=y.s:q=divide(x,y,0,Ctor.modulo,1),q=q.times(y),external=!0,x.minus(q))},P.naturalExponential=P.exp=function(){
return naturalExponential(this)},P.naturalLogarithm=P.ln=function(){return naturalLogarithm(this)},P.negated=P.neg=function(){var x=new this.constructor(this);return x.s=-x.s,finalise(x)},P.plus=P.add=function(y){var carry,d,i,len,pr,rm,xd,yd,e=this,k=e.constructor;if(y=new k(y),!e.d||!y.d)return e.s&&y.s?e.d||(y=new k(y.d||e.s===y.s?e:NaN)):y=new k(NaN),y;if(e.s!=y.s)return y.s=-y.s,e.minus(y);if(xd=e.d,yd=y.d,pr=k.precision,rm=k.rounding,!xd[0]||!yd[0])return yd[0]||(y=new k(e)),external?finalise(y,pr,rm):y;if(k=mathfloor(e.e/LOG_BASE),e=mathfloor(y.e/LOG_BASE),xd=xd.slice(),i=k-e){for((len=(len=i<0?(d=xd,i=-i,yd.length):(d=yd,e=k,xd.length))<(k=Math.ceil(
pr/LOG_BASE))?k+1:len+1)<i&&(i=len,d.length=1),d.reverse();i--;)d.push(0);d.reverse()}for((len=xd.length)-(i=yd.length)<0&&(i=len,d=yd,yd=xd,xd=d),carry=0;i;)carry=(xd[--i]=xd[i]+yd[i]+carry)/BASE|0,xd[i]%=BASE;for(carry&&(xd.unshift(carry),++e),len=xd.length;0==xd[--len];)xd.pop();return y.d=xd,y.e=getBase10Exponent(xd,e),external?finalise(y,pr,rm):y},P.precision=P.sd=function(z){var k,x=this;if(void 0!==z&&z!==!!z&&1!==z&&0!==z)throw Error(invalidArgument+z);return x.d?(k=getPrecision(x.d),z&&x.e+1>k&&(k=x.e+1)):k=NaN,k},P.round=function(){var x=this,Ctor=x.constructor;return finalise(new Ctor(x),x.e+1,Ctor.rounding)},P.sine=P.sin=function(){var pr,rm,
x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function(Ctor,x){var k,len=x.d.length;if(len<3)return taylorSeries(Ctor,2,x,x);k=16<(k=1.4*Math.sqrt(len))?16:0|k,x=x.times(1/tinyPow(5,k)),x=taylorSeries(Ctor,2,x,x);for(var sin2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sin2_x=x.times(x),x=x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));return x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(2<quadrant?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.squareRoot=P.sqrt=function(){var m,n,sd,r,
rep,t,x=this,d=x.d,e=x.e,s=x.s,Ctor=x.constructor;if(1!==s||!d||!d[0])return new Ctor(!s||s<0&&(!d||d[0])?NaN:d?x:1/0);for(external=!1,r=0==(s=Math.sqrt(+x))||s==1/0?(((n=digitsToString(d)).length+e)%2==0&&(n+="0"),s=Math.sqrt(n),e=mathfloor((e+1)/2)-(e<0||e%2),new Ctor(n=s==1/0?"1e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)):new Ctor(s.toString()),sd=(e=Ctor.precision)+3;;)if(r=(t=r).plus(divide(x,t,sd+2,1)).times(.5),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).eq(x));break}if(!rep&&(finalise(t,e+1,
0),t.times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.tangent=P.tan=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+10,Ctor.rounding=1,(x=x.sin()).s=1,x=divide(x,new Ctor(1).minus(x.times(x)).sqrt(),pr+10,0),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||4==quadrant?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.times=P.mul=function(y){var carry,e,i,k,r,rL,t,xdL,ydL=this,Ctor=ydL.constructor,xd=ydL.d,yd=(y=new Ctor(y)).d;if(y.s*=ydL.s,!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(
!y.s||xd&&!xd[0]&&!yd||yd&&!yd[0]&&!xd?NaN:xd&&yd?0*y.s:y.s/0);for(e=mathfloor(ydL.e/LOG_BASE)+mathfloor(y.e/LOG_BASE),(xdL=xd.length)<(ydL=yd.length)&&(r=xd,xd=yd,yd=r,rL=xdL,xdL=ydL,ydL=rL),r=[],i=rL=xdL+ydL;i--;)r.push(0);for(i=ydL;0<=--i;){for(carry=0,k=xdL+i;i<k;)t=r[k]+yd[i]*xd[k-i-1]+carry,r[k--]=t%BASE|0,carry=t/BASE|0;r[k]=(r[k]+carry)%BASE|0}for(;!r[--rL];)r.pop();return carry?++e:r.shift(),y.d=r,y.e=getBase10Exponent(r,e),external?finalise(y,Ctor.precision,Ctor.rounding):y},P.toBinary=function(sd,rm){return toStringBinary(this,2,sd,rm)},P.toDecimalPlaces=P.toDP=function(dp,rm){var Ctor=this.constructor,x=new Ctor(this);return void 0===dp?x:(
checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finalise(x,dp+x.e+1,rm))},P.toExponential=function(str,rm){var x=this,Ctor=x.constructor,str=void 0===str?finiteToString(x,!0):(checkInt32(str,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finiteToString(x=finalise(new Ctor(x),str+1,rm),!0,str+1));return x.isNeg()&&!x.isZero()?"-"+str:str},P.toFixed=function(dp,rm){var x=this,Ctor=x.constructor,str=void 0===dp?finiteToString(x):(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finiteToString(str=finalise(new Ctor(x),dp+x.e+1,rm),!1,dp+str.e+1));return x.isNeg()&&!x.isZero()?"-"+str:str},
P.toFraction=function(maxD){var d,d0,d1,d2,e,n,n0,n1,pr,q,r=this,xd=r.d,Ctor=r.constructor;if(!xd)return new Ctor(r);if(n1=d0=new Ctor(1),d1=n0=new Ctor(0),pr=(e=(d=new Ctor(d1)).e=getPrecision(xd)-r.e-1)%LOG_BASE,d.d[0]=mathpow(10,pr<0?LOG_BASE+pr:pr),null==maxD)maxD=0<e?d:n1;else{if(!(n=new Ctor(maxD)).isInt()||n.lt(n1))throw Error(invalidArgument+n);maxD=n.gt(d)?0<e?d:n1:n}for(external=!1,n=new Ctor(digitsToString(xd)),pr=Ctor.precision,Ctor.precision=e=xd.length*LOG_BASE*2;q=divide(n,d,0,1,1),1!=(d2=d0.plus(q.times(d1))).cmp(maxD);)d0=d1,d1=d2,d2=n1,n1=n0.plus(q.times(d2)),n0=d2,d2=d,d=n.minus(q.times(d2)),n=d2;return d2=divide(maxD.minus(d0),d1,0,1,1),
n0=n0.plus(d2.times(n1)),d0=d0.plus(d2.times(d1)),n0.s=n1.s=r.s,r=divide(n1,d1,e,1).minus(r).abs().cmp(divide(n0,d0,e,1).minus(r).abs())<1?[n1,d1]:[n0,d0],Ctor.precision=pr,external=!0,r},P.toHexadecimal=P.toHex=function(sd,rm){return toStringBinary(this,16,sd,rm)},P.toNearest=function(y,rm){var Ctor=(x=this).constructor,x=new Ctor(x);if(null==y){if(!x.d)return x;y=new Ctor(1),rm=Ctor.rounding}else{if(y=new Ctor(y),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),!x.d)return y.s?x:y;if(!y.d)return y.s&&(y.s=x.s),y}return y.d[0]?(external=!1,x=divide(x,y,0,rm,1).times(y),external=!0,finalise(x)):(y.s=x.s,x=y),x},P.toNumber=function(){return+this},
P.toOctal=function(sd,rm){return toStringBinary(this,8,sd,rm)},P.toPower=P.pow=function(y){var e,k,pr,r,rm,s,x=this,Ctor=x.constructor,yn=+(y=new Ctor(y));if(!(x.d&&y.d&&x.d[0]&&y.d[0]))return new Ctor(mathpow(+x,yn));if((x=new Ctor(x)).eq(1))return x;if(pr=Ctor.precision,rm=Ctor.rounding,y.eq(1))return finalise(x,pr,rm);if((e=mathfloor(y.e/LOG_BASE))>=y.d.length-1&&(k=yn<0?-yn:yn)<=9007199254740991)return r=intPow(Ctor,x,k,pr),y.s<0?new Ctor(1).div(r):finalise(r,pr,rm);if((s=x.s)<0){if(e<y.d.length-1)return new Ctor(NaN);if(0==(1&y.d[e])&&(s=1),0==x.e&&1==x.d[0]&&1==x.d.length)return x.s=s,x}return(e=0!=(k=mathpow(+x,yn))&&isFinite(k)?new Ctor(k+""
).e:mathfloor(yn*(Math.log("0."+digitsToString(x.d))/Math.LN10+x.e+1)))>Ctor.maxE+1||e<Ctor.minE-1?new Ctor(0<e?s/0:0):(external=!1,Ctor.rounding=x.s=1,k=Math.min(12,(e+"").length),(r=naturalExponential(y.times(naturalLogarithm(x,pr+k)),pr)).d&&checkRoundingDigits((r=finalise(r,pr+5,1)).d,pr,rm)&&(e=pr+10,+digitsToString((r=finalise(naturalExponential(y.times(naturalLogarithm(x,e+k)),e),e+5,1)).d).slice(pr+1,pr+15)+1==1e14&&(r=finalise(r,pr+1,0))),r.s=s,external=!0,finalise(r,pr,Ctor.rounding=rm))},P.toPrecision=function(str,rm){var x=this,Ctor=x.constructor,str=void 0===str?finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos):(checkInt32(str,1,
MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finiteToString(x=finalise(new Ctor(x),str,rm),str<=x.e||x.e<=Ctor.toExpNeg,str));return x.isNeg()&&!x.isZero()?"-"+str:str},P.toSignificantDigits=P.toSD=function(sd,rm){var Ctor=this.constructor;return void 0===sd?(sd=Ctor.precision,rm=Ctor.rounding):(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)),finalise(new Ctor(this),sd,rm)},P.toString=function(){var x=this,str=x.constructor,str=finiteToString(x,x.e<=str.toExpNeg||x.e>=str.toExpPos);return x.isNeg()&&!x.isZero()?"-"+str:str},P.truncated=P.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},
P.valueOf=P.toJSON=function(){var x=this,str=x.constructor,str=finiteToString(x,x.e<=str.toExpNeg||x.e>=str.toExpPos);return x.isNeg()?"-"+str:str};var divide=function(x,y,pr,rm,dp,base){var cmp,e,i,k,logBase,more,prod,prodL,qd,rem,remL,rem0,sd,t,xi,xL,yd0,yL,yz,Ctor=x.constructor,q=x.s==y.s?1:-1,xd=x.d,yd=y.d;if(!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(x.s&&y.s&&(xd?!yd||xd[0]!=yd[0]:yd)?xd&&0==xd[0]||!yd?0*q:q/0:NaN);for(e=base?(logBase=1,x.e-y.e):(base=BASE,logBase=LOG_BASE,mathfloor(x.e/logBase)-mathfloor(y.e/logBase)),yL=yd.length,xL=xd.length,qd=(q=new Ctor(q)).d=[],i=0;yd[i]==(xd[i]||0);i++);if(yd[i]>(xd[i]||0)&&e--,null==pr?(sd=pr=Ctor.precision,
rm=Ctor.rounding):sd=dp?pr+(x.e-y.e)+1:pr,sd<0)qd.push(1),more=!0;else{if(sd=sd/logBase+2|0,i=0,1==yL){for(yd=yd[k=0],sd++;(i<xL||k)&&sd--;i++)t=k*base+(xd[i]||0),qd[i]=t/yd|0,k=t%yd|0;more=k||i<xL}else{for(1<(k=base/(yd[0]+1)|0)&&(yd=multiplyInteger(yd,k,base),xd=multiplyInteger(xd,k,base),yL=yd.length,xL=xd.length),xi=yL,remL=(rem=xd.slice(0,yL)).length;remL<yL;)rem[remL++]=0;for((yz=yd.slice()).unshift(0),yd0=yd[0],yd[1]>=base/2&&++yd0;k=0,(cmp=compare(yd,rem,yL,remL))<0?(rem0=rem[0],yL!=remL&&(rem0=rem0*base+(rem[1]||0)),1<(k=rem0/yd0|0)?(base<=k&&(k=base-1),1==(cmp=compare(prod=multiplyInteger(yd,k,base),rem,prodL=prod.length,remL=rem.length))&&(k--,
subtract(prod,yL<prodL?yz:yd,prodL,base))):(0==k&&(cmp=k=1),prod=yd.slice()),(prodL=prod.length)<remL&&prod.unshift(0),subtract(rem,prod,remL,base),-1==cmp&&(cmp=compare(yd,rem,yL,remL=rem.length))<1&&(k++,subtract(rem,yL<remL?yz:yd,remL,base)),remL=rem.length):0===cmp&&(k++,rem=[0]),qd[i++]=k,cmp&&rem[0]?rem[remL++]=xd[xi]||0:(rem=[xd[xi]],remL=1),(xi++<xL||void 0!==rem[0])&&sd--;);more=void 0!==rem[0]}qd[0]||qd.shift()}if(1==logBase)q.e=e,inexact=more;else{for(i=1,k=qd[0];10<=k;k/=10)i++;q.e=i+e*logBase-1,finalise(q,dp?pr+q.e+1:pr,rm,more)}return q};function multiplyInteger(x,k,base){var temp,carry=0,i=x.length;for(x=x.slice();i--;)temp=x[i]*k+carry,
x[i]=temp%base|0,carry=temp/base|0;return carry&&x.unshift(carry),x}function compare(a,b,aL,bL){var i,r;if(aL!=bL)r=bL<aL?1:-1;else for(i=r=0;i<aL;i++)if(a[i]!=b[i]){r=a[i]>b[i]?1:-1;break}return r}function subtract(a,b,aL,base){for(var i=0;aL--;)a[aL]-=i,i=a[aL]<b[aL]?1:0,a[aL]=i*base+a[aL]-b[aL];for(;!a[0]&&1<a.length;)a.shift()}function finalise(x,sd,rm,isTruncated){var digits,i,j,k,roundUp,w,xd,xdi,Ctor=x.constructor;out:if(null!=sd){if(!(xd=x.d))return x;for(digits=1,k=xd[0];10<=k;k/=10)digits++;if((i=sd-digits)<0)i+=LOG_BASE,j=sd,roundUp=(w=xd[xdi=0])/mathpow(10,digits-j-1)%10|0;else if(xdi=Math.ceil((i+1)/LOG_BASE),(k=xd.length)<=xdi){if(!isTruncated
)break out;for(;k++<=xdi;)xd.push(0);w=roundUp=0,j=(i%=LOG_BASE)-LOG_BASE+(digits=1)}else{for(w=k=xd[xdi],digits=1;10<=k;k/=10)digits++;roundUp=(j=(i%=LOG_BASE)-LOG_BASE+digits)<0?0:w/mathpow(10,digits-j-1)%10|0}if(isTruncated=isTruncated||sd<0||void 0!==xd[xdi+1]||(j<0?w:w%mathpow(10,digits-j-1)),roundUp=rm<4?(roundUp||isTruncated)&&(0==rm||rm==(x.s<0?3:2)):5<roundUp||5==roundUp&&(4==rm||isTruncated||6==rm&&(0<i?0<j?w/mathpow(10,digits-j):0:xd[xdi-1])%10&1||rm==(x.s<0?8:7)),sd<1||!xd[0])return xd.length=0,roundUp?(sd-=x.e+1,xd[0]=mathpow(10,(LOG_BASE-sd%LOG_BASE)%LOG_BASE),x.e=-sd||0):xd[0]=x.e=0,x;if(0==i?(xd.length=xdi,k=1,xdi--):(xd.length=xdi+1,
k=mathpow(10,LOG_BASE-i),xd[xdi]=0<j?(w/mathpow(10,digits-j)%mathpow(10,j)|0)*k:0),roundUp)for(;;){if(0==xdi){for(i=1,j=xd[0];10<=j;j/=10)i++;for(j=xd[0]+=k,k=1;10<=j;j/=10)k++;i!=k&&(x.e++,xd[0]==BASE&&(xd[0]=1));break}if(xd[xdi]+=k,xd[xdi]!=BASE)break;xd[xdi--]=0,k=1}for(i=xd.length;0===xd[--i];)xd.pop()}return external&&(x.e>Ctor.maxE?(x.d=null,x.e=NaN):x.e<Ctor.minE&&(x.e=0,x.d=[0])),x}function finiteToString(x,isExp,sd){if(!x.isFinite())return nonFiniteToString(x);var k,e=x.e,str=digitsToString(x.d),len=str.length;return isExp?(sd&&0<(k=sd-len)?str=str.charAt(0)+"."+str.slice(1)+getZeroString(k):1<len&&(str=str.charAt(0)+"."+str.slice(1)),str=str+(
x.e<0?"e":"e+")+x.e):e<0?(str="0."+getZeroString(-e-1)+str,sd&&0<(k=sd-len)&&(str+=getZeroString(k))):len<=e?(str+=getZeroString(e+1-len),sd&&0<(k=sd-e-1)&&(str=str+"."+getZeroString(k))):((k=e+1)<len&&(str=str.slice(0,k)+"."+str.slice(k)),sd&&0<(k=sd-len)&&(e+1===len&&(str+="."),str+=getZeroString(k))),str}function getBase10Exponent(digits,e){var w=digits[0];for(e*=LOG_BASE;10<=w;w/=10)e++;return e}function getLn10(Ctor,sd,pr){if(LN10_PRECISION<sd)throw external=!0,pr&&(Ctor.precision=pr),Error(precisionLimitExceeded);return finalise(new Ctor(LN10),sd,1,!0)}function getPi(Ctor,sd,rm){if(PI_PRECISION<sd)throw Error(precisionLimitExceeded);return finalise(
new Ctor(PI),sd,rm,!0)}function getPrecision(digits){var w=digits.length-1,len=w*LOG_BASE+1;if(w=digits[w]){for(;w%10==0;w/=10)len--;for(w=digits[0];10<=w;w/=10)len++}return len}function getZeroString(k){for(var zs="";k--;)zs+="0";return zs}function intPow(Ctor,x,n,pr){var isTruncated,r=new Ctor(1),k=Math.ceil(pr/LOG_BASE+4);for(external=!1;;){if(n%2&&truncate((r=r.times(x)).d,k)&&(isTruncated=!0),0===(n=mathfloor(n/2))){n=r.d.length-1,isTruncated&&0===r.d[n]&&++r.d[n];break}truncate((x=x.times(x)).d,k)}return external=!0,r}function isOdd(n){return 1&n.d[n.d.length-1]}function maxOrMin(Ctor,args,ltgt){for(var y,x=new Ctor(args[0]),i=0;++i<args.length;){if(!(
y=new Ctor(args[i])).s){x=y;break}x[ltgt](y)&&(x=y)}return x}function naturalExponential(x,sd){var denominator,guard,j,pow,sum,t,wpr,rep=0,i=0,k=0,Ctor=x.constructor,rm=Ctor.rounding,pr=Ctor.precision;if(!x.d||!x.d[0]||17<x.e)return new Ctor(x.d?x.d[0]?x.s<0?0:1/0:1:x.s?x.s<0?0:x:NaN);for(wpr=null==sd?(external=!1,pr):sd,t=new Ctor(.03125);-2<x.e;)x=x.times(t),k+=5;for(wpr+=guard=Math.log(mathpow(2,k))/Math.LN10*2+5|0,denominator=pow=sum=new Ctor(1),Ctor.precision=wpr;;){if(pow=finalise(pow.times(x),wpr,1),denominator=denominator.times(++i),digitsToString((t=sum.plus(divide(pow,denominator,wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){for(
j=k;j--;)sum=finalise(sum.times(sum),wpr,1);if(null!=sd)return Ctor.precision=pr,sum;if(!(rep<3&&checkRoundingDigits(sum.d,wpr-guard,rm,rep)))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,denominator=pow=t=new Ctor(1),i=0,rep++}sum=t}}function naturalLogarithm(y,sd){var c,c0,denominator,e,numerator,rep,sum,t,wpr,x1,x2,n=1,x=y,xd=x.d,Ctor=x.constructor,rm=Ctor.rounding,pr=Ctor.precision;if(x.s<0||!xd||!xd[0]||!x.e&&1==xd[0]&&1==xd.length)return new Ctor(xd&&!xd[0]?-1/0:1!=x.s?NaN:xd?0:x);if(wpr=null==sd?(external=!1,pr):sd,Ctor.precision=wpr+=10,c0=(c=digitsToString(xd)).charAt(0),!(Math.abs(e=x.e)<15e14))return t=getLn10(Ctor,
wpr+2,pr).times(e+""),x=naturalLogarithm(new Ctor(c0+"."+c.slice(1)),wpr-10).plus(t),Ctor.precision=pr,null==sd?finalise(x,pr,rm,external=!0):x;for(;c0<7&&1!=c0||1==c0&&3<c.charAt(1);)c0=(c=digitsToString((x=x.times(y)).d)).charAt(0),n++;for(e=x.e,1<c0?(x=new Ctor("0."+c),e++):x=new Ctor(c0+"."+c.slice(1)),sum=numerator=x=divide((x1=x).minus(1),x.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=3;;){if(numerator=finalise(numerator.times(x2),wpr,1),digitsToString((t=sum.plus(divide(numerator,new Ctor(denominator),wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){if(sum=sum.times(2),0!==e&&(sum=sum.plus(getLn10(Ctor,wpr+2,pr).times(e+"")))
,sum=divide(sum,new Ctor(n),wpr,1),null!=sd)return Ctor.precision=pr,sum;if(!checkRoundingDigits(sum.d,wpr-10,rm,rep))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,t=numerator=x=divide(x1.minus(1),x1.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=rep=1}sum=t,denominator+=2}}function nonFiniteToString(x){return String(x.s*x.s/0)}function parseDecimal(x,str){var e,i,len;for(-1<(e=str.indexOf("."))&&(str=str.replace(".","")),0<(i=str.search(/e/i))?(e<0&&(e=i),e+=+str.slice(i+1),str=str.substring(0,i)):e<0&&(e=str.length),i=0;48===str.charCodeAt(i);i++);for(len=str.length;48===str.charCodeAt(len-1);--len);if(
str=str.slice(i,len)){if(len-=i,x.e=e=e-i-1,x.d=[],i=(e+1)%LOG_BASE,e<0&&(i+=LOG_BASE),i<len){for(i&&x.d.push(+str.slice(0,i)),len-=LOG_BASE;i<len;)x.d.push(+str.slice(i,i+=LOG_BASE));str=str.slice(i),i=LOG_BASE-str.length}else i-=len;for(;i--;)str+="0";x.d.push(+str),external&&(x.e>x.constructor.maxE?(x.d=null,x.e=NaN):x.e<x.constructor.minE&&(x.e=0,x.d=[0]))}else x.e=0,x.d=[0];return x}function parseOther(x,str){var Ctor,divisor,i,isFloat,len,p,xd,xe;if("Infinity"===str||"NaN"===str)return+str||(x.s=NaN),x.e=NaN,x.d=null,x;if(isHex.test(str))xe=16,str=str.toLowerCase();else if(isBinary.test(str))xe=2;else{if(!isOctal.test(str))throw Error(
invalidArgument+str);xe=8}for(isFloat=0<=(i=(str=0<(i=str.search(/p/i))?(p=+str.slice(i+1),str.substring(2,i)):str.slice(2)).indexOf(".")),Ctor=x.constructor,isFloat&&(i=(len=(str=str.replace(".","")).length)-i,divisor=intPow(Ctor,new Ctor(xe),i,2*i)),i=xe=(xd=convertBase(str,xe,BASE)).length-1;0===xd[i];--i)xd.pop();return i<0?new Ctor(0*x.s):(x.e=getBase10Exponent(xd,xe),x.d=xd,external=!1,isFloat&&(x=divide(x,divisor,4*len)),p&&(x=x.times(Math.abs(p)<54?mathpow(2,p):Decimal.pow(2,p))),external=!0,x)}function taylorSeries(Ctor,n,x,y,isHyperbolic){var j,t,u,x2,pr=Ctor.precision,k=Math.ceil(pr/LOG_BASE);for(external=!1,x2=x.times(x),u=new Ctor(y);;){if(
t=divide(u.times(x2),new Ctor(n++*n++),pr,1),u=isHyperbolic?y.plus(t):y.minus(t),y=divide(t.times(x2),new Ctor(n++*n++),pr,1),void 0!==(t=u.plus(y)).d[k]){for(j=k;t.d[j]===u.d[j]&&j--;);if(-1==j)break}j=u,u=y,y=t,t=j,0}return external=!0,t.d.length=k+1,t}function tinyPow(b,e){for(var n=b;--e;)n*=b;return n}function toLessThanHalfPi(t,x){var isNeg=x.s<0,pi=getPi(t,t.precision,1),halfPi=pi.times(.5);if((x=x.abs()).lte(halfPi))return quadrant=isNeg?4:1,x;if((t=x.divToInt(pi)).isZero())quadrant=isNeg?3:2;else{if((x=x.minus(t.times(pi))).lte(halfPi))return quadrant=isOdd(t)?isNeg?2:3:isNeg?4:1,x;quadrant=isOdd(t)?isNeg?1:4:isNeg?3:2}return x.minus(pi).abs()}
function toStringBinary(x,baseOut,sd,rm){var base,e,i,len,roundUp,str,xd,k,Ctor=x.constructor,isExp=void 0!==sd;if(isExp?(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)):(sd=Ctor.precision,rm=Ctor.rounding),x.isFinite()){for(isExp?(base=2,16==baseOut?sd=4*sd-3:8==baseOut&&(sd=3*sd-2)):base=baseOut,0<=(i=(str=finiteToString(x)).indexOf("."))&&(str=str.replace(".",""),(k=new Ctor(1)).e=str.length-i,k.d=convertBase(finiteToString(k),10,base),k.e=k.d.length),e=len=(xd=convertBase(str,10,base)).length;0==xd[--len];)xd.pop();if(xd[0]){if(i<0?e--:((x=new Ctor(x)).d=xd,x.e=e,xd=(x=divide(x,k,sd,rm,0,base)).d,e=x.e,roundUp=inexact),
i=xd[sd],k=base/2,roundUp=roundUp||void 0!==xd[sd+1],roundUp=rm<4?(void 0!==i||roundUp)&&(0===rm||rm===(x.s<0?3:2)):k<i||i===k&&(4===rm||roundUp||6===rm&&1&xd[sd-1]||rm===(x.s<0?8:7)),xd.length=sd,roundUp)for(;++xd[--sd]>base-1;)xd[sd]=0,sd||(++e,xd.unshift(1));for(len=xd.length;!xd[len-1];--len);for(i=0,str="";i<len;i++)str+=NUMERALS.charAt(xd[i]);if(isExp){if(1<len)if(16==baseOut||8==baseOut){for(i=16==baseOut?4:3,--len;len%i;len++)str+="0";for(len=(xd=convertBase(str,base,baseOut)).length;!xd[len-1];--len);for(i=1,str="1.";i<len;i++)str+=NUMERALS.charAt(xd[i])}else str=str.charAt(0)+"."+str.slice(1);str=str+(e<0?"p":"p+")+e}else if(e<0){for(;++e;
)str="0"+str;str="0."+str}else if(++e>len)for(e-=len;e--;)str+="0";else e<len&&(str=str.slice(0,e)+"."+str.slice(e))}else str=isExp?"0p+0":"0";str=(16==baseOut?"0x":2==baseOut?"0b":8==baseOut?"0o":"")+str}else str=nonFiniteToString(x);return x.s<0?"-"+str:str}function truncate(arr,len){return arr.length>len&&(arr.length=len,1)}function abs(x){return new this(x).abs()}function acos(x){return new this(x).acos()}function acosh(x){return new this(x).acosh()}function add(x,y){return new this(x).plus(y)}function asin(x){return new this(x).asin()}function asinh(x){return new this(x).asinh()}function atan(x){return new this(x).atan()}function atanh(x){
return new this(x).atanh()}function atan2(y,x){y=new this(y),x=new this(x);var r,pr=this.precision,rm=this.rounding,wpr=pr+4;return y.s&&x.s?y.d||x.d?!x.d||y.isZero()?(r=x.s<0?getPi(this,pr,rm):new this(0)).s=y.s:!y.d||x.isZero()?(r=getPi(this,wpr,1).times(.5)).s=y.s:r=x.s<0?(this.precision=wpr,this.rounding=1,r=this.atan(divide(y,x,wpr,1)),x=getPi(this,wpr,1),this.precision=pr,this.rounding=rm,y.s<0?r.minus(x):r.plus(x)):this.atan(divide(y,x,wpr,1)):(r=getPi(this,wpr,1).times(0<x.s?.25:.75)).s=y.s:r=new this(NaN),r}function cbrt(x){return new this(x).cbrt()}function ceil(x){return finalise(x=new this(x),x.e+1,2)}function config(obj){if(
!obj||"object"!=typeof obj)throw Error(decimalError+"Object expected");for(var p,v,useDefaults=!0===obj.defaults,ps=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-EXP_LIMIT,0,"toExpPos",0,EXP_LIMIT,"maxE",0,EXP_LIMIT,"minE",-EXP_LIMIT,0,"modulo",0,9],i=0;i<ps.length;i+=3)if(p=ps[i],useDefaults&&(this[p]=DEFAULTS[p]),void 0!==(v=obj[p])){if(!(mathfloor(v)===v&&ps[i+1]<=v&&v<=ps[i+2]))throw Error(invalidArgument+p+": "+v);this[p]=v}if(p="crypto",useDefaults&&(this[p]=DEFAULTS[p]),void 0!==(v=obj[p])){if(!0!==v&&!1!==v&&0!==v&&1!==v)throw Error(invalidArgument+p+": "+v);if(v){if(
"undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(cryptoUnavailable);this[p]=!0}else this[p]=!1}return this}function cos(x){return new this(x).cos()}function cosh(x){return new this(x).cosh()}function div(x,y){return new this(x).div(y)}function exp(x){return new this(x).exp()}function floor(x){return finalise(x=new this(x),x.e+1,3)}function hypot(){var i,n,t=new this(0);for(external=!1,i=0;i<arguments.length;)if((n=new this(arguments[i++])).d)t.d&&(t=t.plus(n.times(n)));else{if(n.s)return external=!0,new this(1/0);t=n}return external=!0,t.sqrt()}function isDecimalInstance(obj){
return obj instanceof Decimal||obj&&"[object Decimal]"===obj.name||!1}function ln(x){return new this(x).ln()}function log(x,y){return new this(x).log(y)}function log2(x){return new this(x).log(2)}function log10(x){return new this(x).log(10)}function max(){return maxOrMin(this,arguments,"lt")}function min(){return maxOrMin(this,arguments,"gt")}function mod(x,y){return new this(x).mod(y)}function mul(x,y){return new this(x).mul(y)}function pow(x,y){return new this(x).pow(y)}function random(sd){var d,e,k,n,i=0,r=new this(1),rd=[];if(void 0===sd?sd=this.precision:checkInt32(sd,1,MAX_DIGITS),k=Math.ceil(sd/LOG_BASE),this.crypto)if(crypto.getRandomValues)for(
d=crypto.getRandomValues(new Uint32Array(k));i<k;)429e7<=(n=d[i])?d[i]=crypto.getRandomValues(new Uint32Array(1))[0]:rd[i++]=n%1e7;else{if(!crypto.randomBytes)throw Error(cryptoUnavailable);for(d=crypto.randomBytes(k*=4);i<k;)214e7<=(n=d[i]+(d[i+1]<<8)+(d[i+2]<<16)+((127&d[i+3])<<24))?crypto.randomBytes(4).copy(d,i):(rd.push(n%1e7),i+=4);i=k/4}else for(;i<k;)rd[i++]=1e7*Math.random()|0;for(k=rd[--i],sd%=LOG_BASE,k&&sd&&(n=mathpow(10,LOG_BASE-sd),rd[i]=(k/n|0)*n);0===rd[i];i--)rd.pop();if(i<0)rd=[e=0];else{for(e=-1;0===rd[0];e-=LOG_BASE)rd.shift();for(k=1,n=rd[0];10<=n;n/=10)k++;k<LOG_BASE&&(e-=LOG_BASE-k)}return r.e=e,r.d=rd,r}function round(x){
return finalise(x=new this(x),x.e+1,this.rounding)}function sign(x){return(x=new this(x)).d?x.d[0]?x.s:0*x.s:x.s||NaN}function sin(x){return new this(x).sin()}function sinh(x){return new this(x).sinh()}function sqrt(x){return new this(x).sqrt()}function sub(x,y){return new this(x).sub(y)}function tan(x){return new this(x).tan()}function tanh(x){return new this(x).tanh()}function trunc(x){return finalise(x=new this(x),x.e+1,1)}(Decimal=function clone(obj){var i,p,ps;function Decimal(v){var e,i,t,x=this;if(!(x instanceof Decimal))return new Decimal(v);if(v instanceof(x.constructor=Decimal))return x.s=v.s,void(external?!v.d||v.e>Decimal.maxE?(x.e=NaN,x.d=null
):v.e<Decimal.minE?(x.e=0,x.d=[0]):(x.e=v.e,x.d=v.d.slice()):(x.e=v.e,x.d=v.d&&v.d.slice()));if("number"==(t=typeof v)){if(0===v)return x.s=1/v<0?-1:1,x.e=0,void(x.d=[0]);if(v<0?(v=-v,x.s=-1):x.s=1,v===~~v&&v<1e7){for(e=0,i=v;10<=i;i/=10)e++;return void(external?Decimal.maxE<e?(x.e=NaN,x.d=null):e<Decimal.minE?(x.e=0,x.d=[0]):(x.e=e,x.d=[v]):(x.e=e,x.d=[v]))}return 0*v!=0?(v||(x.s=NaN),x.e=NaN,void(x.d=null)):parseDecimal(x,v.toString())}if("string"!=t)throw Error(invalidArgument+v);return 45===(i=v.charCodeAt(0))?(v=v.slice(1),x.s=-1):(43===i&&(v=v.slice(1)),x.s=1),(isDecimal.test(v)?parseDecimal:parseOther)(x,v)}if(Decimal.prototype=P,Decimal.ROUND_UP=0,
Decimal.ROUND_DOWN=1,Decimal.ROUND_CEIL=2,Decimal.ROUND_FLOOR=3,Decimal.ROUND_HALF_UP=4,Decimal.ROUND_HALF_DOWN=5,Decimal.ROUND_HALF_EVEN=6,Decimal.ROUND_HALF_CEIL=7,Decimal.ROUND_HALF_FLOOR=8,Decimal.EUCLID=9,Decimal.config=Decimal.set=config,Decimal.clone=clone,Decimal.isDecimal=isDecimalInstance,Decimal.abs=abs,Decimal.acos=acos,Decimal.acosh=acosh,Decimal.add=add,Decimal.asin=asin,Decimal.asinh=asinh,Decimal.atan=atan,Decimal.atanh=atanh,Decimal.atan2=atan2,Decimal.cbrt=cbrt,Decimal.ceil=ceil,Decimal.cos=cos,Decimal.cosh=cosh,Decimal.div=div,Decimal.exp=exp,Decimal.floor=floor,Decimal.hypot=hypot,Decimal.ln=ln,Decimal.log=log,Decimal.log10=log10,
Decimal.log2=log2,Decimal.max=max,Decimal.min=min,Decimal.mod=mod,Decimal.mul=mul,Decimal.pow=pow,Decimal.random=random,Decimal.round=round,Decimal.sign=sign,Decimal.sin=sin,Decimal.sinh=sinh,Decimal.sqrt=sqrt,Decimal.sub=sub,Decimal.tan=tan,Decimal.tanh=tanh,Decimal.trunc=trunc,void 0===obj&&(obj={}),obj&&!0!==obj.defaults)for(ps=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<ps.length;)obj.hasOwnProperty(p=ps[i++])||(obj[p]=this[p]);return Decimal.config(obj),Decimal}(DEFAULTS)).default=Decimal.Decimal=Decimal,LN10=new Decimal(LN10),PI=new Decimal(PI),"function"==typeof define&&define.amd?define("lib/decimal/decimal",[
],function(){return Decimal}):"undefined"!=typeof module&&module.exports?("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(P[Symbol.for("nodejs.util.inspect.custom")]=P.toString,P[Symbol.toStringTag]="Decimal"),module.exports=Decimal):(globalScope=globalScope||("undefined"!=typeof self&&self&&self.self==self?self:window),noConflict=globalScope.Decimal,Decimal.noConflict=function(){return globalScope.Decimal=noConflict,Decimal},globalScope.Decimal=Decimal)}(this),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/expr-eval/expr-eval",factory
):global.exprEval=factory()}(this,function(){"use strict";var INUMBER="INUMBER",IOP1="IOP1",IOP2="IOP2",IOP3="IOP3",IVAR="IVAR",IFUNCOP="IFUNCOP",IFUNCALL="IFUNCALL",IEXPR="IEXPR",IMEMBER="IMEMBER";function Instruction(type,value){this.type=type,this.value=null!=value?value:0}function unaryInstruction(value){return new Instruction(IOP1,value)}function binaryInstruction(value){return new Instruction(IOP2,value)}function ternaryInstruction(value){return new Instruction(IOP3,value)}function expressionToString(tokens,toJS){for(var n1,n2,f,n3,nstack=[],i=0;i<tokens.length;i++){var item=tokens[i],type=item.type;if(type===INUMBER
)"number"==typeof item.value&&item.value<0?nstack.push("("+item.value+")"):nstack.push("string"!=typeof(n3=item.value)?n3:JSON.stringify(n3).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"));else if(type===IOP2)n2=nstack.pop(),n1=nstack.pop(),f=item.value,toJS?"^"===f?nstack.push("Math.pow("+n1+", "+n2+")"):"and"===f?nstack.push("(!!"+n1+" && !!"+n2+")"):"or"===f?nstack.push("(!!"+n1+" || !!"+n2+")"):"||"===f?nstack.push("(String("+n1+") + String("+n2+"))"):"=="===f?nstack.push("("+n1+" === "+n2+")"):"!="===f?nstack.push("("+n1+" !== "+n2+")"):nstack.push("("+n1+" "+f+" "+n2+")"):nstack.push("("+n1+" "+f+" "+n2+")");else if(type===IOP3){if(
n3=nstack.pop(),n2=nstack.pop(),n1=nstack.pop(),"?"!==(f=item.value))throw new Error("invalid Expression");nstack.push("("+n1+" ? "+n2+" : "+n3+")")}else if(type===IVAR)nstack.push(item.value);else if(type===IOP1)n1=nstack.pop(),"-"===(f=item.value)||"+"===f?nstack.push("("+f+n1+")"):toJS?"not"===f?nstack.push("(!"+n1+")"):"!"===f?nstack.push("fac("+n1+")"):nstack.push(f+"("+n1+")"):"!"===f?nstack.push("("+n1+"!)"):nstack.push("("+f+" "+n1+")");else if(type===IFUNCALL){for(var argCount=item.value,args=[];0<argCount--;)args.unshift(nstack.pop());f=nstack.pop(),nstack.push(f+"("+args.join(", ")+")")}else if(type===IMEMBER)n1=nstack.pop(),nstack.push(
n1+"."+item.value);else{if(type!==IEXPR)throw new Error("invalid Expression");nstack.push("("+expressionToString(item.value,toJS)+")")}}if(1<nstack.length)throw new Error("invalid Expression (parity)");return String(nstack[0])}function contains(array,obj){for(var i=0;i<array.length;i++)if(array[i]===obj)return!0;return!1}function getSymbols(tokens,symbols,options){for(var withMembers=!!(options=options||{}).withMembers,prevVar=null,i=0;i<tokens.length;i++){var item=tokens[i];item.type!==IVAR||contains(symbols,item.value)?item.type===IMEMBER&&withMembers&&null!==prevVar?prevVar+="."+item.value:item.type===IEXPR?getSymbols(item.value,symbols,options
):null!==prevVar&&(contains(symbols,prevVar)||symbols.push(prevVar),prevVar=null):withMembers?prevVar=(null!==prevVar&&(contains(symbols,prevVar)||symbols.push(prevVar)),item.value):symbols.push(item.value)}null===prevVar||contains(symbols,prevVar)||symbols.push(prevVar)}function Expression(tokens,parser){this.tokens=tokens,this.parser=parser,this.unaryOps=parser.unaryOps,this.binaryOps=parser.binaryOps,this.ternaryOps=parser.ternaryOps,this.functions=parser.functions}Instruction.prototype.toString=function(){switch(this.type){case INUMBER:case IOP1:case IOP2:case IOP3:case IVAR:case IFUNCOP:return this.value;case IFUNCALL:return"CALL "+this.value
;case IMEMBER:return"."+this.value;default:return"Invalid Instruction"}},Expression.prototype.simplify=function(values){return values=values||{},new Expression(function simplify(tokens,unaryOps,binaryOps,ternaryOps,values){for(var n1,n2,n3,f,nstack=[],newexpression=[],i=0;i<tokens.length;i++){var item=tokens[i],type=item.type;if(type===INUMBER)nstack.push(item);else if(type===IVAR&&values.hasOwnProperty(item.value))item=new Instruction(INUMBER,values[item.value]),nstack.push(item);else if(type===IOP2&&1<nstack.length)n2=nstack.pop(),n1=nstack.pop(),f=binaryOps[item.value],item=new Instruction(INUMBER,f(n1.value,n2.value)),nstack.push(item);else if(
type===IOP3&&2<nstack.length)n3=nstack.pop(),n2=nstack.pop(),n1=nstack.pop(),"?"===item.value?nstack.push((n1.value?n2:n3).value):(f=ternaryOps[item.value],item=new Instruction(INUMBER,f(n1.value,n2.value,n3.value)),nstack.push(item));else if(type===IOP1&&0<nstack.length)n1=nstack.pop(),f=unaryOps[item.value],item=new Instruction(INUMBER,f(n1.value)),nstack.push(item);else if(type===IEXPR){for(;0<nstack.length;)newexpression.push(nstack.shift());newexpression.push(new Instruction(IEXPR,simplify(item.value,unaryOps,binaryOps,ternaryOps,values)))}else if(type===IMEMBER&&0<nstack.length)n1=nstack.pop(),nstack.push(new Instruction(INUMBER,n1.value[item.value])
);else{for(;0<nstack.length;)newexpression.push(nstack.shift());newexpression.push(item)}}for(;0<nstack.length;)newexpression.push(nstack.shift());return newexpression}(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,values),this.parser)},Expression.prototype.substitute=function(variable,expr){return expr instanceof Expression||(expr=this.parser.parse(String(expr))),new Expression(function substitute(tokens,variable,expr){for(var newexpression=[],i=0;i<tokens.length;i++){var item=tokens[i],type=item.type;if(type===IVAR&&item.value===variable)for(var j=0;j<expr.tokens.length;j++){var replitem=expr.tokens[j],
replitem=replitem.type===IOP1?unaryInstruction(replitem.value):replitem.type===IOP2?binaryInstruction(replitem.value):replitem.type===IOP3?ternaryInstruction(replitem.value):new Instruction(replitem.type,replitem.value);newexpression.push(replitem)}else type===IEXPR?newexpression.push(new Instruction(IEXPR,substitute(item.value,variable,expr))):newexpression.push(item)}return newexpression}(this.tokens,variable,expr),this.parser)},Expression.prototype.evaluate=function(values){return values=values||{},function evaluate(tokens,expr,values){for(var n1,n2,f,nstack=[],i=0;i<tokens.length;i++){var item=tokens[i],type=item.type;if(type===INUMBER)nstack.push(
item.value);else if(type===IOP2)n2=nstack.pop(),n1=nstack.pop(),"and"===item.value?nstack.push(!!n1&&!!evaluate(n2,expr,values)):"or"===item.value?nstack.push(!!n1||!!evaluate(n2,expr,values)):(f=expr.binaryOps[item.value],nstack.push(f(n1,n2)));else if(type===IOP3)v=nstack.pop(),n2=nstack.pop(),n1=nstack.pop(),"?"===item.value?nstack.push(evaluate(n1?n2:v,expr,values)):(f=expr.ternaryOps[item.value],nstack.push(f(n1,n2,v)));else if(type===IVAR)if(item.value in expr.functions)nstack.push(expr.functions[item.value]);else{var v=values[item.value];if(void 0===v)throw new Error("undefined variable: "+item.value);nstack.push(v)}else if(type===IOP1)n1=nstack.pop()
,f=expr.unaryOps[item.value],nstack.push(f(n1));else if(type===IFUNCOP){if(n2=nstack.pop(),n1=nstack.pop(),!(f=expr.functions[item.value]).apply||!f.call)throw new Error(f+" is not a function");nstack.push(f.apply(void 0,[n1,n2]))}else if(type===IFUNCALL){for(var argCount=item.value,args=[];0<argCount--;)args.unshift(nstack.pop());if(!(f=nstack.pop()).apply||!f.call)throw new Error(f+" is not a function");nstack.push(f.apply(void 0,args))}else if(type===IEXPR)nstack.push(item.value);else{if(type!==IMEMBER)throw new Error("invalid Expression");n1=nstack.pop(),nstack.push(n1[item.value])}}if(1<nstack.length)throw new Error("invalid Expression (parity)")
;return nstack[0]}(this.tokens,this,values)},Expression.prototype.toString=function(){return expressionToString(this.tokens,!1)},Expression.prototype.symbols=function(options){options=options||{};var vars=[];return getSymbols(this.tokens,vars,options),vars},Expression.prototype.variables=function(options){options=options||{};var vars=[];getSymbols(this.tokens,vars,options);var functions=this.functions;return vars.filter(function(name){return!(name in functions)})},Expression.prototype.toJSFunction=function(param,variables){var expr=this,f=new Function(param,
"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+expressionToString(this.simplify(variables).tokens,!0)+"; }");return function(){return f.apply(expr,arguments)}};var TOP="TOP";function Token(type,value,index){this.type=type,this.value=value,this.index=index}function TokenStream(parser,expression){this.pos=0,this.current=null,this.unaryOps=parser.unaryOps,this.binaryOps=parser.binaryOps,this.ternaryOps=parser.ternaryOps,this.functions=parser.functions,this.consts=parser.consts,this.expression=expression,this.savedPosition=0,this.savedCurrent=null,this.options=parser.options}Token.prototype.toString=function(){
return this.type+": "+this.value},TokenStream.prototype.newToken=function(type,value,pos){return new Token(type,value,null!=pos?pos:this.pos)},TokenStream.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},TokenStream.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},TokenStream.prototype.next=function(){return this.pos>=this.expression.length?this.newToken("TEOF","EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isComma()||this.isNamedOp()||this.isFuncOp()||this.isConst(
)||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},TokenStream.prototype.isString=function(){var r=!1,startPos=this.pos,quote=this.expression.charAt(startPos);if("'"===quote||'"'===quote)for(var index=this.expression.indexOf(quote,startPos+1);0<=index&&this.pos<this.expression.length;){if(this.pos=index+1,"\\"!==this.expression.charAt(index-1)){var rawString=this.expression.substring(startPos+1,index);this.current=this.newToken("TSTRING",this.unescape(rawString),startPos),r=!0;break}index=this.expression.indexOf(quote,index+1)}return r},TokenStream.prototype.isParen=function(){
var c=this.expression.charAt(this.pos);return("("===c||")"===c)&&(this.current=this.newToken("TPAREN",c),this.pos++,!0)},TokenStream.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},TokenStream.prototype.isConst=function(){for(var str=this.pos,i=str;i<this.expression.length;i++){var c=this.expression.charAt(i);if(c.toUpperCase()===c.toLowerCase()&&(i===this.pos||"_"!==c&&"."!==c&&(c<"0"||"9"<c)))break}if(str<i){str=this.expression.substring(str,i);if(str in this.consts)return this.current=this.newToken("TNUMBER",this.consts[str]),this.pos+=str.length,!0}return!1},
TokenStream.prototype.isNamedOp=function(){for(var str=this.pos,i=str;i<this.expression.length;i++){var c=this.expression.charAt(i);if(c.toUpperCase()===c.toLowerCase()&&(i===this.pos||"_"!==c&&(c<"0"||"9"<c)))break}if(str<i){str=this.expression.substring(str,i);if(this.isOperatorEnabled(str)&&(str in this.binaryOps||str in this.unaryOps||str in this.ternaryOps))return this.current=this.newToken(TOP,str),this.pos+=str.length,!0}return!1},TokenStream.prototype.isFuncOp=function(){var str,c=this.expression.charAt(this.pos),startPos=this.pos+1,i=startPos;if("@"===c){for(;i<this.expression.length&&((c=this.expression.charAt(i)).toUpperCase()!==c.toLowerCase(
)||!(i===startPos||"_"!==c&&(c<"0"||"9"<c)));i++);if(startPos<i&&(str=this.expression.substring(startPos,i))in this.functions)return this.current=this.newToken("TFUNCOP",str),this.pos=startPos+str.length,!0}return!1},TokenStream.prototype.isName=function(){for(var str=this.pos,i=str,hasLetter=!1;i<this.expression.length;i++){var c=this.expression.charAt(i);if(c.toUpperCase()===c.toLowerCase())if(i!==this.pos||"$"!==c&&"_"!==c){if(i===this.pos||!hasLetter||"_"!==c&&(c<"0"||"9"<c))break}else"_"===c&&(hasLetter=!0);else hasLetter=!0}if(hasLetter){str=this.expression.substring(str,i);return this.current=this.newToken("TNAME",str),this.pos+=str.length,!0}return!1
},TokenStream.prototype.isWhitespace=function(){for(var r=!1,c=this.expression.charAt(this.pos);!(" "!==c&&"\t"!==c&&"\n"!==c&&"\r"!==c||(r=!0,this.pos++,this.pos>=this.expression.length));)c=this.expression.charAt(this.pos);return r};var codePointPattern=/^[0-9a-f]{4}$/i;TokenStream.prototype.unescape=function(v){var index=v.indexOf("\\");if(index<0)return v;for(var buffer=v.substring(0,index);0<=index;){var backslash=v.charAt(++index);switch(backslash){case"'":buffer+="'";break;case'"':buffer+='"';break;case"\\":buffer+="\\";break;case"/":buffer+="/";break;case"b":buffer+="\b";break;case"f":buffer+="\f";break;case"n":buffer+="\n";break;case"r":buffer+="\r"
;break;case"t":buffer+="\t";break;case"u":var codePoint=v.substring(index+1,index+5);codePointPattern.test(codePoint)||this.parseError("Illegal escape sequence: \\u"+codePoint),buffer+=String.fromCharCode(parseInt(codePoint,16)),index+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+backslash+'"')}++index;backslash=v.indexOf("\\",index);buffer+=v.substring(index,backslash<0?v.length:backslash),index=backslash}return buffer},TokenStream.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(
this.pos=this.expression.length),!0)},TokenStream.prototype.isRadixInteger=function(){var radix,validDigit,pos=this.pos;if(pos>=this.expression.length-2||"0"!==this.expression.charAt(pos))return!1;if(++pos,"x"===this.expression.charAt(pos))radix=16,validDigit=/^[0-9a-f]$/i,++pos;else{if("b"!==this.expression.charAt(pos))return!1;radix=2,validDigit=/^[01]$/i,++pos}for(var valid=!1,startPos=pos;pos<this.expression.length;){var c=this.expression.charAt(pos);if(!validDigit.test(c))break;pos++,valid=!0}return valid&&(this.current=this.newToken("TNUMBER",parseInt(this.expression.substring(startPos,pos),radix)),this.pos=pos),valid},
TokenStream.prototype.isNumber=function(){for(var c,valid=!1,pos=this.pos,startPos=pos,resetPos=pos,foundDot=!1,foundDigits=!1;pos<this.expression.length&&("0"<=(c=this.expression.charAt(pos))&&c<="9"||!foundDot&&"."===c);)"."===c?foundDot=!0:foundDigits=!0,pos++,valid=foundDigits;if(valid&&(resetPos=pos),"e"===c||"E"===c){pos++;for(var acceptSign=!0,validExponent=!1;pos<this.expression.length;){if(c=this.expression.charAt(pos),!acceptSign||"+"!==c&&"-"!==c){if(!("0"<=c&&c<="9"))break;acceptSign=!(validExponent=!0)}else acceptSign=!1;pos++}validExponent||(pos=resetPos)}return valid?(this.current=this.newToken("TNUMBER",parseFloat(this.expression.substring(
startPos,pos))),this.pos=pos):this.pos=resetPos,valid},TokenStream.prototype.isOperator=function(){var startPos=this.pos,c=this.expression.charAt(this.pos);if("+"===c||"-"===c||"*"===c||"/"===c||"%"===c||"^"===c||"?"===c||":"===c||"."===c)this.current=this.newToken(TOP,c);else if("∙"===c||"•"===c)this.current=this.newToken(TOP,"*");else if(">"===c)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,">="),this.pos++):this.current=this.newToken(TOP,">");else if("<"===c)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"<="),this.pos++):this.current=this.newToken(TOP,"<");else if("|"===c){if(
"|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(TOP,"||"),this.pos++}else if("="===c){if("="!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(TOP,"=="),this.pos++}else{if("!"!==c)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"!="),this.pos++):this.current=this.newToken(TOP,c)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=startPos,!1)};var optionNameMap={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison",
"!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional"};function ParserState(parser,tokenStream,options){this.parser=parser,this.tokens=tokenStream,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==options.allowMemberAccess}TokenStream.prototype.isOperatorEnabled=function(operators){var optionName=function(op){return optionNameMap.hasOwnProperty(op)?optionNameMap[op]:op}(operators),operators=this.options.operators||{};return"in"===optionName?!!operators.in:!(optionName in operators&&!operators[optionName])},
TokenStream.prototype.getCoordinates=function(){for(var column,line=0,newline=-1;line++,column=this.pos-newline,0<=(newline=this.expression.indexOf("\n",newline+1))&&newline<this.pos;);return{line:line,column:column}},TokenStream.prototype.parseError=function(msg){var coords=this.getCoordinates();throw new Error("parse error ["+coords.line+":"+coords.column+"]: "+msg)},ParserState.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},ParserState.prototype.tokenMatches=function(token,value){return void 0===value||(Array.isArray(value)?contains(value,token.value):"function"==typeof value?value(token
):token.value===value)},ParserState.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},ParserState.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},ParserState.prototype.accept=function(type,value){return!(this.nextToken.type!==type||!this.tokenMatches(this.nextToken,value))&&(this.next(),!0)},ParserState.prototype.expect=function(type,value){if(!this.accept(type,value)){var coords=this.tokens.getCoordinates();throw new Error("parse error ["+coords.line+":"+coords.column+"]: Expected "+(value||type))}},
ParserState.prototype.parseAtom=function(instr){if(this.accept("TNAME"))instr.push(new Instruction(IVAR,this.current.value));else if(this.accept("TNUMBER"))instr.push(new Instruction(INUMBER,this.current.value));else if(this.accept("TSTRING"))instr.push(new Instruction(INUMBER,this.current.value));else{if(!this.accept("TPAREN","("))throw new Error("unexpected "+this.nextToken);this.parseExpression(instr),this.expect("TPAREN",")")}},ParserState.prototype.parseExpression=function(instr){this.parseConditionalExpression(instr)},ParserState.prototype.parseConditionalExpression=function(instr){for(this.parseOrExpression(instr);this.accept(TOP,"?");){
var trueBranch=[],falseBranch=[];this.parseConditionalExpression(trueBranch),this.expect(TOP,":"),this.parseConditionalExpression(falseBranch),instr.push(new Instruction(IEXPR,trueBranch)),instr.push(new Instruction(IEXPR,falseBranch)),instr.push(ternaryInstruction("?"))}},ParserState.prototype.parseOrExpression=function(instr){for(this.parseAndExpression(instr);this.accept(TOP,"or");){var falseBranch=[];this.parseAndExpression(falseBranch),instr.push(new Instruction(IEXPR,falseBranch)),instr.push(binaryInstruction("or"))}},ParserState.prototype.parseAndExpression=function(instr){for(this.parseComparison(instr);this.accept(TOP,"and");){var trueBranch=[]
;this.parseComparison(trueBranch),instr.push(new Instruction(IEXPR,trueBranch)),instr.push(binaryInstruction("and"))}};var COMPARISON_OPERATORS=["==","!=","<","<=",">=",">","in"];ParserState.prototype.parseComparison=function(instr){for(this.parseAddSub(instr);this.accept(TOP,COMPARISON_OPERATORS);){var op=this.current;this.parseAddSub(instr),instr.push(binaryInstruction(op.value))}};var ADD_SUB_OPERATORS=["+","-","||"];ParserState.prototype.parseAddSub=function(instr){for(this.parseTerm(instr);this.accept(TOP,ADD_SUB_OPERATORS);){var op=this.current;this.parseTerm(instr),instr.push(binaryInstruction(op.value))}};var TERM_OPERATORS=["*","/","%"]
;function add(a,b){return Number(a)+Number(b)}function sub(a,b){return a-b}function mul(a,b){return a*b}function div(a,b){return a/b}function mod(a,b){return a%b}function concat(a,b){return""+a+b}function equal(a,b){return a===b}function notEqual(a,b){return a!==b}function greaterThan(a,b){return b<a}function lessThan(a,b){return a<b}function greaterThanEqual(a,b){return b<=a}function lessThanEqual(a,b){return a<=b}function andOperator(a,b){return Boolean(a&&b)}function orOperator(a,b){return Boolean(a||b)}function inOperator(a,b){return contains(b,a)}function sinh(a){return(Math.exp(a)-Math.exp(-a))/2}function cosh(a){return(Math.exp(a)+Math.exp(-a))/2}
function tanh(a){return a===1/0?1:a===-1/0?-1:(Math.exp(a)-Math.exp(-a))/(Math.exp(a)+Math.exp(-a))}function asinh(a){return a===-1/0?a:Math.log(a+Math.sqrt(a*a+1))}function acosh(a){return Math.log(a+Math.sqrt(a*a-1))}function atanh(a){return Math.log((1+a)/(1-a))/2}function log10(a){return Math.log(a)*Math.LOG10E}function neg(a){return-a}function not(a){return!a}function trunc(a){return a<0?Math.ceil(a):Math.floor(a)}function random(a){return Math.random()*(a||1)}function factorial(a){return gamma(a+1)}ParserState.prototype.parseTerm=function(instr){for(this.parseFactor(instr);this.accept(TOP,TERM_OPERATORS);){var op=this.current;this.parseFactor(instr),
instr.push(binaryInstruction(op.value))}},ParserState.prototype.parseFactor=function(instr){var op,unaryOps=this.tokens.unaryOps;this.save(),this.accept(TOP,function(token){return token.value in unaryOps})?"-"!==this.current.value&&"+"!==this.current.value&&"TPAREN"===this.nextToken.type&&"("===this.nextToken.value?(this.restore(),this.parseExponential(instr)):(op=this.current,this.parseFactor(instr),instr.push(unaryInstruction(op.value))):this.parseExponential(instr)},ParserState.prototype.parseExponential=function(instr){for(this.parsePostfixExpression(instr);this.accept(TOP,"^");)this.parseFactor(instr),instr.push(binaryInstruction("^"))},
ParserState.prototype.parsePostfixExpression=function(instr){for(this.parseFunctionOperator(instr);this.accept(TOP,"!");)instr.push(unaryInstruction("!"))},ParserState.prototype.parseFunctionOperator=function(instr){var op,functions=this.tokens.functions;function isCustomOperator(token){return token.value in functions}for(this.parseFunctionCall(instr);this.accept("TFUNCOP",isCustomOperator);)op=this.current,this.parseFactor(instr),instr.push(new Instruction(IFUNCOP,op.value))},ParserState.prototype.parseFunctionCall=function(instr){var argCount,unaryOps=this.tokens.unaryOps;if(this.accept(TOP,function(token){return token.value in unaryOps})){
var op=this.current;this.parseAtom(instr),instr.push(unaryInstruction(op.value))}else for(this.parseMemberExpression(instr);this.accept("TPAREN","(");){this.accept("TPAREN",")")?instr.push(new Instruction(IFUNCALL,0)):(argCount=this.parseArgumentList(instr),instr.push(new Instruction(IFUNCALL,argCount)))}},ParserState.prototype.parseArgumentList=function(instr){for(var argCount=0;!this.accept("TPAREN",")");)for(this.parseExpression(instr),++argCount;this.accept("TCOMMA");)this.parseExpression(instr),++argCount;return argCount},ParserState.prototype.parseMemberExpression=function(instr){for(this.parseAtom(instr);this.accept(TOP,".");){if(
!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect("TNAME"),instr.push(new Instruction(IMEMBER,this.current.value))}};var GAMMA_G=4.7421875,GAMMA_P=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function gamma(n){var x;if(function(value){return isFinite(value)&&value===Math.round(value)}(n)){if(n<=0)return isFinite(n)?1/0:NaN;if(171<n)return 1/0
;for(var value=n-2,res=n-1;1<value;)res*=value,value--;return 0===res&&(res=1),res}if(n<.5)return Math.PI/(Math.sin(Math.PI*n)*gamma(1-n));if(171.35<=n)return 1/0;if(85<n){var twoN=n*n,threeN=twoN*n,fourN=threeN*n,t=fourN*n;return Math.sqrt(2*Math.PI/n)*Math.pow(n/Math.E,n)*(1+1/(12*n)+1/(288*twoN)-139/(51840*threeN)-571/(2488320*fourN)+163879/(209018880*t)+5246819/(75246796800*t*n))}--n,x=GAMMA_P[0];for(var i=1;i<GAMMA_P.length;++i)x+=GAMMA_P[i]/(n+i);return t=n+GAMMA_G+.5,Math.sqrt(2*Math.PI)*Math.pow(t,n+.5)*Math.exp(-t)*x}function stringLength(s){return String(s).length}function hypot(){for(var sum=0,larg=0,i=0;i<arguments.length;i++){var div,
arg=Math.abs(arguments[i]);larg<arg?(sum=sum*(div=larg/arg)*div+1,larg=arg):sum+=0<arg?(div=arg/larg)*div:arg}return larg===1/0?1/0:larg*Math.sqrt(sum)}function condition(cond,yep,nope){return cond?yep:nope}function roundTo(value,exp){return void 0===exp||0==+exp?Math.round(value):(value=+value,exp=-+exp,isNaN(value)||"number"!=typeof exp||exp%1!=0?NaN:(value=value.toString().split("e"),+((value=(value=Math.round(+(value[0]+"e"+(value[1]?+value[1]-exp:-exp)))).toString().split("e"))[0]+"e"+(value[1]?+value[1]+exp:exp))))}function Parser(options){this.options=options||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,
atan:Math.atan,sinh:Math.sinh||sinh,cosh:Math.cosh||cosh,tanh:Math.tanh||tanh,asinh:Math.asinh||asinh,acosh:Math.acosh||acosh,atanh:Math.atanh||atanh,sqrt:Math.sqrt,log:Math.log,ln:Math.log,lg:Math.log10||log10,log10:Math.log10||log10,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||trunc,"-":neg,"+":Number,exp:Math.exp,not:not,length:stringLength,"!":factorial},this.binaryOps={"+":add,"-":sub,"*":mul,"/":div,"%":mod,"^":Math.pow,"||":concat,"==":equal,"!=":notEqual,">":greaterThan,"<":lessThan,">=":greaterThanEqual,"<=":lessThanEqual,and:andOperator,or:orOperator,in:inOperator},this.ternaryOps={"?":condition},this.functions={
random:random,fac:factorial,min:Math.min,max:Math.max,hypot:Math.hypot||hypot,pyt:Math.hypot||hypot,pow:Math.pow,atan2:Math.atan2,if:condition,gamma:gamma,roundTo:roundTo},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Parser.prototype.parse=function(parserState){var instr=[],parserState=new ParserState(this,new TokenStream(this,parserState),{allowMemberAccess:this.options.allowMemberAccess});return parserState.parseExpression(instr),parserState.expect("TEOF","EOF"),new Expression(instr,this)},Parser.prototype.evaluate=function(expr,variables){return this.parse(expr).evaluate(variables)};var sharedParser=new Parser;return Parser.parse=function(expr){
return sharedParser.parse(expr)},Parser.evaluate=function(expr,variables){return sharedParser.parse(expr).evaluate(variables)},{Parser:Parser,Expression:Expression}}),define("util/mathsEvaluator",["lodash","lib/decimal/decimal","lib/expr-eval/expr-eval"],function(_,Decimal,exprEval){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,Decimal=Decimal&&Object.prototype.hasOwnProperty.call(Decimal,"default")?Decimal.default:Decimal;var Parser=(exprEval=exprEval&&Object.prototype.hasOwnProperty.call(exprEval,"default")?exprEval.default:exprEval).Parser,defaultConfig={internalPrecision:100,degree:!1},defaultDecimalConfig={defaults:!0},
decimalConfigEntries=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],parserConfigEntries=["operators"];function toPrecisionNumber(number,precision){var dot=number.indexOf(".");return 0<dot&&(number=number.substr(0,dot+precision+1)),number}return function(parserConfig){var localConfig=_.defaults({},parserConfig,defaultConfig),mapAPI=_.pick(localConfig,decimalConfigEntries),parserConfig=_.pick(localConfig,parserConfigEntries),parser=new Parser(parserConfig),ConfiguredDecimal=Decimal.set(_.isEmpty(mapAPI)?defaultDecimalConfig:mapAPI),EPSILON=new ConfiguredDecimal(2).pow(-52),PI=new ConfiguredDecimal(toPrecisionNumber(
"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989"
,localConfig.internalPrecision)),mapAPI=new ConfiguredDecimal(toPrecisionNumber(
"2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161403970198376793206832823764648042953118023287825098194558153017567173613320698112509961818815930416903515988885193458072738667385894228792284998920868058257492796104841984443634632449684875602336248270419786232090021609902353043699418491463140934317381436405462531520961836908887070167683964243781405927145635490613031072085103837505101157477041718986106873969655212671546889570350354"
,localConfig.internalPrecision)),mapAPI={unary:[{entry:"sin",action:function(a){return trigoOperator("sin",a)}},{entry:"cos",action:function(a){return trigoOperator("cos",a)}},{entry:"tan",action:function(a){return trigoOperator("tan",a)}},{entry:"asin",action:function(a){return inverseTrigoOperator("asin",a)}},{entry:"acos",action:function(a){return inverseTrigoOperator("acos",a)}},{entry:"atan",action:function(a){return inverseTrigoOperator("atan",a)}},{entry:"sinh",mapTo:"sinh"},{entry:"cosh",mapTo:"cosh"},{entry:"tanh",mapTo:"tanh"},{entry:"asinh",mapTo:"asinh"},{entry:"acosh",mapTo:"acosh"},{entry:"atanh",mapTo:"atanh"},{entry:"sqrt",mapTo:"sqrt"},{
entry:"cbrt",mapTo:"cbrt"},{entry:"log",mapTo:"log"},{entry:"ln",mapTo:"ln"},{entry:"lg",mapTo:"log"},{entry:"log10",mapTo:"log"},{entry:"abs",mapTo:"abs"},{entry:"ceil",mapTo:"ceil"},{entry:"floor",mapTo:"floor"},{entry:"round",mapTo:"round"},{entry:"trunc",mapTo:"trunc"},{entry:"-",mapTo:"neg"},{entry:"+",action:decimalNumber},{entry:"exp",mapTo:"exp"},{entry:"not",action:function(a){return!native(a)}},{entry:"!",action:useOrigin}],binary:[{entry:"+",mapTo:"add"},{entry:"-",mapTo:"sub"},{entry:"*",mapTo:"mul"},{entry:"/",mapTo:"div"},{entry:"%",mapTo:"mod"},{entry:"^",mapTo:"pow"},{entry:"==",mapTo:"equals"},{entry:"!=",action:function(a,b){
return!binaryOperator("equals",a,b)}},{entry:">",mapTo:"gt"},{entry:"<",mapTo:"lt"},{entry:">=",mapTo:"gte"},{entry:"<=",mapTo:"lte"},{entry:"and",action:function(a,b){return Boolean(native(a)&&native(b))}},{entry:"or",action:function(a,b){return Boolean(native(a)||native(b))}},{entry:"in",action:function(array,obj){return obj=native(obj),void 0!==_.find(array,function(el){return native(el)===obj})}}],ternaryOps:[{entry:"?",action:useOrigin}],functions:[{entry:"random",action:function(dp){return ConfiguredDecimal.random(dp)}},{entry:"fac",action:useOrigin},{entry:"min",mapTo:"min"},{entry:"max",mapTo:"max"},{entry:"hypot",action:useOrigin},{entry:"pyt",
action:useOrigin},{entry:"pow",mapTo:"pow"},{entry:"atan2",action:function(y,result){result=functionOperator("atan2",y,result);return localConfig.degree?radianToDegree(result):result}},{entry:"if",action:useOrigin},{entry:"gamma",action:useOrigin},{entry:"roundTo",action:useOrigin},{entry:"nthrt",action:function(n,x){return x=decimalNumber(x),n=parseInt(n,10),x.isNeg()&&n%2!=1?decimalNumber(NaN):x.abs().pow(decimalNumber(1).div(n)).mul(Decimal.sign(x))}}],consts:[{entry:"PI",value:PI},{entry:"E",value:mapAPI},{entry:"EPSILON",value:EPSILON}]};function checkZero(number){return number.absoluteValue().lessThan(EPSILON)?new ConfiguredDecimal(0):number}
function native(number){return Decimal.isDecimal(number)?number.toNumber():"true"===number||!0===number||"false"!==number&&!1!==number&&number}function useOrigin(){var args=[].slice.call(arguments);return args.pop().apply(this,args.map(native))}function decimalNumber(number){return Decimal.isDecimal(number)||(number=new ConfiguredDecimal(number)),number}function radianToDegree(value){return decimalNumber(value).mul(180).div(PI)}function unaryOperator(operator,operand){if(operand=decimalNumber(operand),!_.isFunction(operand[operator]))throw new TypeError(operator+" is not a valid operator!");return operand[operator]()}function binaryOperator(operator,left,
right){if(left=decimalNumber(left),!_.isFunction(left[operator]))throw new TypeError(operator+" is not a valid operator!");return left[operator](decimalNumber(right))}function functionOperator(operator){var operands=[].slice.call(arguments,1);if(!_.isFunction(ConfiguredDecimal[operator]))throw new TypeError(operator+" is not a valid function!");return ConfiguredDecimal[operator].apply(ConfiguredDecimal,operands.map(decimalNumber))}function trigoOperator(operator,operand){if(!_.isFunction(Decimal[operator]))throw new TypeError(operator+" is not a valid operator!");return operand=localConfig.degree?decimalNumber(operand).mul(PI).div(180):decimalNumber(operand)
,"tan"===operator&&operand.equals(PI.div(2))?new ConfiguredDecimal(NaN):checkZero(ConfiguredDecimal[operator](operand))}function inverseTrigoOperator(operator,result){result=checkZero(unaryOperator(operator,result));return localConfig.degree?radianToDegree(result):result}function mapping(fn,origin,api){fn=api.value||(api.action?_.partialRight(api.action,origin[api.entry]):_.partial(fn,api.mapTo));origin[api.entry]=fn}return _.forEach(mapAPI.unary,_.partial(mapping,unaryOperator,parser.unaryOps)),_.forEach(mapAPI.binary,_.partial(mapping,binaryOperator,parser.binaryOps)),_.forEach(mapAPI.ternaryOps,_.partial(mapping,functionOperator,parser.ternaryOps)),
_.forEach(mapAPI.functions,_.partial(mapping,functionOperator,parser.functions)),_.forEach(mapAPI.consts,_.partial(mapping,null,parser.consts)),function(expression,result){return _.isPlainObject(expression)&&(result=result||expression.variables,expression=expression.expression),{expression:expression,variables:result,result:result=parser.parse(expression).evaluate(result),value:native(result)}}}}),define("ui/maths/calculator/core/board",["lodash","i18n","core/collections","ui/component","ui/maths/calculator/core/areaBroker","ui/maths/calculator/core/terms","ui/maths/calculator/core/tokens","ui/maths/calculator/core/expression",
"ui/maths/calculator/core/tokenizer","util/mathsEvaluator","handlebars","lib/dompurify/purify"],function(_,__,collections,componentFactory,areaBrokerFactory,registeredTerms,tokensHelper,expressionHelper,tokenizerFactory,mathsEvaluatorFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,collections=collections&&Object.prototype.hasOwnProperty.call(collections,"default")?collections.default:collections,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,areaBrokerFactory=areaBrokerFactory&&Object.prototype.hasOwnProperty.call(areaBrokerFactory,"default")?areaBrokerFactory.default:areaBrokerFactory,registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms,
tokensHelper=tokensHelper&&Object.prototype.hasOwnProperty.call(tokensHelper,"default")?tokensHelper.default:tokensHelper,expressionHelper=expressionHelper&&Object.prototype.hasOwnProperty.call(expressionHelper,"default")?expressionHelper.default:expressionHelper,tokenizerFactory=tokenizerFactory&&Object.prototype.hasOwnProperty.call(tokenizerFactory,"default")?tokenizerFactory.default:tokenizerFactory,mathsEvaluatorFactory=mathsEvaluatorFactory&&Object.prototype.hasOwnProperty.call(mathsEvaluatorFactory,"default")?mathsEvaluatorFactory.default:mathsEvaluatorFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default"
)?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="calculator">\n <div class="screen"></div>\n <div class="input"></div>\n <div class="keyboard"></div>\n</div>'});function boardTpl(data,html,asString){html=Template(data,html);return html}var defaultConfig={expression:"",position:0},
lastResultVariableName=registeredTerms.ANS.value,rePrefixedTerm=/^@[a-zA-Z_]\w*$/;return function($container,pluginFactories,config){var mathsEvaluator,areaBroker,plugins={},expression="",variables=new collections.Map,commands=new collections.Map,position=0,tokenizer=tokenizerFactory(),tokens=null,calculator=componentFactory({getExpression:function(){return expression},setExpression:function(expr){return expression=String(expr||""),tokens=null,this.trigger("expressionchange",expression),this},getPosition:function(){return position},setPosition:function(pos){return position=Math.max(0,Math.min(parseInt(pos,10)||0,expression.length)),this.trigger(
"positionchange",position),this},getTokens:function(){return null===tokens&&(tokens=tokenizer.tokenize(expression)),tokens},getToken:function(){return this.getTokens()[this.getTokenIndex()]||null},getTokenIndex:function(){var index=0;return _.forEach(this.getTokens(),function(token,idx){position>=token.offset&&(index=idx)}),index},getTokenizer:function(){return tokenizer},getVariable:function(name){return variables.get(name)},hasVariable:function(name){return variables.has(name)},setVariable:function(name,value){var errValue;try{value=mathsEvaluator(value)}catch(err){errValue=value&&value.expression||value,(value=mathsEvaluator("0")).expression=errValue}
return variables.set(name,value),this.trigger("variableadd",name,value),this},deleteVariable:function(name){return variables.delete(name),this.trigger("variabledelete",name),this},getVariables:function(){var defs={};return variables.forEach(function(value,name){defs[name]=value}),defs},setVariables:function(defs){var self=this;return _.forEach(defs,function(value,name){self.setVariable(name,value)}),this},deleteVariables:function(){return variables.clear(),this.trigger("variabledelete",null),this.setLastResult("0"),this},setLastResult:function(result){return result&&!expressionHelper.containsError(result)||(result="0"),this.setVariable(lastResultVariableName
,result),this},getLastResult:function(){return this.getVariable(lastResultVariableName)},setCommand:function(name,label,description){return commands.set(name,{name:name,label:label,description:description}),this.trigger("commandadd",name),this},getCommand:function(name){return commands.get(name)},getCommands:function(){var defs={};return commands.forEach(function(value,name){defs[name]=value}),defs},hasCommand:function(name){return commands.has(name)},deleteCommand:function(name){return commands.delete(name),this.trigger("commanddelete",name),this},addTerm:function(name,term){var isIdentifier,tokensList=this.getTokens(),value=this.getTokenIndex(),
needsSpace=tokensList[value],nextToken=tokensList[value+1];function tokenNeedsSpace(token){return tokensHelper.isIdentifier(token)||isIdentifier&&!tokensHelper.isSeparator(token)}return _.isPlainObject(term)&&void 0!==term.value?(value=term.value,tokensHelper.isOperator(term.type)||rePrefixedTerm.test(term.value)||1!==tokensList.length||("NUM0"!==needsSpace.type||"DOT"===name)&&"ANS"!==needsSpace.type?(expression&&!tokensHelper.isSeparator(term.type)&&(isIdentifier=tokensHelper.isIdentifier(term.type),needsSpace=tokenNeedsSpace(needsSpace),position&&needsSpace&&(value=" "+value),(!position&&needsSpace||position<expression.length&&tokenNeedsSpace(nextToken)
)&&(value+=" ")),this.insert(value)):this.replace(value),this.trigger("termadd",name,term),this.trigger("termadd-"+name,term),this):this.trigger("termerror",new TypeError("Invalid term: "+name))},useTerm:function(name){var term;return rePrefixedTerm.test(name)?(name=name.substring(1),(term=_.clone(registeredTerms[name])).value="@"+term.value):term=registeredTerms[name],void 0===term?this.trigger("termerror",new TypeError("Invalid term: "+name)):this.addTerm(name,term)},useTerms:function(names){return"string"==typeof names&&(names=names.split(/\s+/)),_.forEach(names,this.useTerm.bind(this)),this},useVariable:function(name){return variables.has(name
)?this.addTerm("VAR_"+name.toUpperCase(),{label:name,value:name,type:"variable",description:__("Variable %s",name)}):this.trigger("termerror",new TypeError("Invalid variable: "+name))},useCommand:function(name){return commands.has(name)?(this.trigger.apply(this,["command"].concat([].slice.call(arguments))),this.trigger.apply(this,["command-"+name].concat([].slice.call(arguments,1))),this):this.trigger("commanderror",new TypeError("Invalid command: "+name))},replace:function(newExpression,newPosition){var oldExpression=expression,oldPosition=position;return this.setExpression(newExpression).setPosition(void 0!==newPosition?newPosition:expression.length),
this.trigger("replace",oldExpression,oldPosition),this},insert:function(subExpression){var oldExpression=expression,oldPosition=position;return this.setExpression(expression.substr(0,position)+subExpression+expression.substr(position)).setPosition(position+subExpression.length),this.trigger("insert",oldExpression,oldPosition),this},clear:function(){return this.setExpression("").setPosition(0),this.trigger("clear"),this},evaluate:function(){var result=null;try{result=expression.trim()?mathsEvaluator(expression,_.mapValues(this.getVariables(),"result")):mathsEvaluator("0"),this.trigger("evaluate",result)}catch(e){this.trigger("syntaxerror",e)}return result},
runPlugins:function(method){var execStack=[];return _.forEach(plugins,function(plugin){_.isFunction(plugin[method])&&execStack.push(plugin[method]())}),Promise.all(execStack)},getPlugins:function(){return _.toArray(plugins)},getPlugin:function(name){return plugins[name]},getAreaBroker:function(){return areaBroker},setupMathsEvaluator:function(){return mathsEvaluator=mathsEvaluatorFactory(this.getConfig().maths),this},getMathsEvaluator:function(){return mathsEvaluator}},defaultConfig).setTemplate(boardTpl).before("init",function(){this.setupMathsEvaluator(),this.setLastResult("0"),this.config.expression&&this.setExpression(this.config.expression),
this.config.position&&this.setPosition(this.config.position),this.setCommand("clear",__("Clear"),__("Clear expression")).setCommand("clearAll",__("Clear All"),__("Clear all data")).setCommand("execute",__("Execute"),__("Compute the expression")).setCommand("var",__("Variable"),__("Use a variable")).setCommand("term",__("Term"),__("Use a term")).on("command-term",this.useTerms.bind(this)).on("command-var",this.useVariable.bind(this)).on("command-execute",this.evaluate.bind(this)).on("command-clearAll",this.deleteVariables.bind(this)).on("command-clear command-clearAll",this.clear.bind(this))}).after("evaluate",function(result){this.setLastResult(result)}
).after("init",function(){this.render($container)}).before("render",function(){var self=this,pluginsConfig=this.getConfig().plugins||{},$element=this.getElement();return areaBroker=areaBrokerFactory($element,{screen:$element.find(".screen"),input:$element.find(".input"),keyboard:$element.find(".keyboard")}),_.forEach(pluginFactories,function(pluginName){var plugin=pluginName(self,self.getAreaBroker()),pluginName=plugin.getName();pluginsConfig[pluginName]&&plugin.setConfig(pluginsConfig[pluginName]),plugins[plugin.getName()]=plugin}),this.runPlugins("install").then(function(){return self.runPlugins("init")}).then(function(){return self.runPlugins("render")}
).then(function(){self.trigger("ready")}).catch(function(err){self.trigger("error",err)})}).on("destroy",function(){var self=this;return this.runPlugins("destroy").then(function(){self.off(".calculator"),mathsEvaluator=areaBroker=tokenizer=null,variables.clear(),plugins={}})});return _.defer(function(){calculator.init(config)}),calculator}}),define("ui/maths/calculator/core/plugin",["lodash","core/plugin"],function(_,pluginFactory){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory,function(
provider,defaultConfig){return pluginFactory(provider,_.defaults({hostName:"calculator"},defaultConfig))}}),define("ui/maths/calculator/plugins/core/degrad",["i18n","util/namespace","ui/maths/calculator/core/plugin"],function(__,nsHelper,pluginFactory){"use strict";__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory;return pluginFactory({name:"degrad",install:function(){this.getCalculator().setCommand("degree",__(
"Degree"),__("Set the trigonometric function to work in degrees")).setCommand("radian",__("Radian"),__("Set the trigonometric function to work in radians"))},init:function(){var calculator=this.getCalculator();function getMathsConfig(){var config=calculator.getConfig();return config.maths||(config.maths={}),config.maths}function setupMathsEvaluator(){var degree=calculator.getConfig(),degree=degree.maths&&degree.maths.degree;calculator.setState("degree",degree).setState("radian",!degree).setupMathsEvaluator()}setupMathsEvaluator(),calculator.on(nsHelper.namespaceAll("command-degree","degrad"),function(){getMathsConfig().degree=!0,setupMathsEvaluator()}).on(
nsHelper.namespaceAll("command-radian","degrad"),function(){getMathsConfig().degree=!1,setupMathsEvaluator()})},destroy:function(){this.getCalculator().deleteCommand("degree").deleteCommand("radian").setState("degree",!1).setState("radian",!1).off(".degrad")}})}),define("ui/maths/calculator/plugins/core/history",["lodash","i18n","util/namespace","ui/maths/calculator/core/plugin"],function(_,__,nsHelper,pluginFactory){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default"
)?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory;return pluginFactory({name:"history",install:function(){this.getCalculator().setCommand("historyClear",__("Clear History"),__("Clear history")).setCommand("historyGet",__("Get History"),__("Get the history list")).setCommand("historyUp",__("Previous"),__("Remind the previous expression in the history")).setCommand("historyDown",__("Next"),__("Remind the next expression in the history"))},init:function(){var history,cursor,current,calculator=this.getCalculator();function getCurrentState(){return{
expression:calculator.getExpression(),variables:calculator.getVariables(),current:null}}function reset(){current=getCurrentState(),history=[],cursor=0}function getMemoryAt(position){return 0<=position&&position<history.length?history[position]:position===history.length?current:null}function remind(position){var memory=getMemoryAt(position);cursor===history.length&&position!==cursor?current=getCurrentState():history[cursor].current=calculator.getExpression(),memory&&(cursor=position,memory.variables&&calculator.setVariables(memory.variables),calculator.replace(memory.current||memory.expression),memory.current=null)}reset(),calculator.on(nsHelper.namespaceAll(
"evaluate","history"),function(){var last=getMemoryAt(history.length-1),memory=getMemoryAt(cursor);last&&calculator.getExpression()===last.expression||history.push(getCurrentState()),memory&&(memory.current=null),cursor=history.length}).on(nsHelper.namespaceAll("command-historyClear command-clearAll destroy","history"),reset).on(nsHelper.namespaceAll("command-historyUp","history"),function(){remind(cursor-1)}).on(nsHelper.namespaceAll("command-historyDown","history"),function(){remind(cursor+1)}).on(nsHelper.namespaceAll("command-historyGet","history"),function(){calculator.trigger("history",_.map(history,"expression"))})},destroy:function(){
this.getCalculator().deleteCommand("historyClear").deleteCommand("historyUp").deleteCommand("historyDown").deleteCommand("historyGet").off(".history")}})}),define("ui/maths/calculator/plugins/core/remind",["i18n","util/namespace","ui/maths/calculator/core/plugin"],function(__,nsHelper,pluginFactory){"use strict";__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory;return pluginFactory({name:"remind",
install:function(){this.getCalculator().setCommand("remind",__("Remind"),__("Remind the recorded value")).setCommand("remindLast",__("Remind Last"),__("Remind the last value")).setCommand("remindStore",__("Store"),__("Store the value a variable")).setCommand("remindClear",__("Clear"),__("Clear the stored variables"))},init:function(){var calculator=this.getCalculator();calculator.on(nsHelper.namespaceAll("evaluate","remind"),function(result){calculator.setVariable("last",result)}).on(nsHelper.namespaceAll("command-remind","remind"),function(){calculator.hasVariable("mem")&&calculator.useVariable("mem")}).on(nsHelper.namespaceAll("command-remindLast","remind"
),function(){calculator.hasVariable("last")&&calculator.useVariable("last")}).on(nsHelper.namespaceAll("command-remindStore","remind"),function(){calculator.hasVariable("last")&&calculator.setVariable("mem",calculator.getVariable("last"))}).on(nsHelper.namespaceAll("command-remindClear command-clearAll destroy","remind"),function(){calculator.hasVariable("mem")&&calculator.deleteVariable("mem")}).on(nsHelper.namespaceAll("destroy","remind"),function(){calculator.hasVariable("last")&&calculator.deleteVariable("last")})},destroy:function(){this.getCalculator().deleteCommand("remind").deleteCommand("remindLast").deleteCommand("remindStore").deleteCommand(
"remindClear").off(".remind")}})}),define("ui/maths/calculator/plugins/core/stepNavigation",["i18n","util/namespace","ui/maths/calculator/core/plugin"],function(__,nsHelper,pluginFactory){"use strict";__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory;var pluginName="stepNavigation";return pluginFactory({name:pluginName,install:function(){this.getCalculator().setCommand("stepMoveLeft",__("Move Left"),__(
"Move the cursor one step on the left")).setCommand("stepMoveRight",__("Move Right"),__("Move the cursor one step on the right")).setCommand("stepDeleteLeft",__("Delete Left"),__("Delete the term on the left side of the cursor")).setCommand("stepDeleteRight",__("Delete Right"),__("Delete the term on the right side of the cursor"))},init:function(){var calculator=this.getCalculator();function remove(expression,position,length){length&&(expression=calculator.getExpression(),calculator.setExpression(expression.substr(0,position)+expression.substr(position+length)).setPosition(position))}function removeToken(expression,token){var from,length;if(token){for(
expression=calculator.getExpression(),from=token.offset,length=token.value.length;from+length<expression.length&&" "===expression.charAt(from+length);)length++;remove(expression,from,length)}}calculator.on(nsHelper.namespaceAll("command-stepMoveLeft",pluginName),function(){var position=calculator.getPosition(),tokens=calculator.getTokens(),index=calculator.getTokenIndex(),token=calculator.getToken(),offset=position;token&&0<position?position===token.offset&&(token=0<index?tokens[index-1]:null):token=null,(offset=token?token.offset:0)!==position&&calculator.setPosition(offset)}).on(nsHelper.namespaceAll("command-stepMoveRight",pluginName),function(){
var offset=calculator.getExpression(),position=calculator.getPosition(),tokens=calculator.getTokens(),index=calculator.getTokenIndex(),token=calculator.getToken(),offset=offset.length;token&&index<tokens.length-1&&(token=tokens[index+1])&&(offset=token.offset),offset!==position&&calculator.setPosition(offset)}).on(nsHelper.namespaceAll("command-stepDeleteLeft",pluginName),function(){var expression=calculator.getExpression(),position=calculator.getPosition(),tokens=calculator.getTokens(),index=calculator.getTokenIndex(),token=calculator.getToken();token&&(position>token.offset?removeToken(expression,token):0<index?removeToken(expression,tokens[index-1]
):0<position&&remove(expression,0,token.offset))}).on(nsHelper.namespaceAll("command-stepDeleteRight",pluginName),function(){var expression=calculator.getExpression(),position=calculator.getPosition(),token=calculator.getToken();token&&position>=token.offset&&position<token.offset+token.value.length&&removeToken(expression,token)})},destroy:function(){this.getCalculator().deleteCommand("stepMoveLeft").deleteCommand("stepMoveRight").deleteCommand("stepDeleteLeft").deleteCommand("stepDeleteRight").off("."+pluginName)}})}),define("ui/maths/calculator/pluginsLoader",["context","core/pluginLoader","ui/maths/calculator/plugins/core/degrad",
"ui/maths/calculator/plugins/core/history","ui/maths/calculator/plugins/core/remind","ui/maths/calculator/plugins/core/stepNavigation","lodash"],function(context,pluginLoaderFactory,pluginDegradFactory,pluginHistoryFactory,pluginRemindFactory,pluginStepNavigationFactory,_){"use strict";return context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,pluginLoaderFactory=pluginLoaderFactory&&Object.prototype.hasOwnProperty.call(pluginLoaderFactory,"default")?pluginLoaderFactory.default:pluginLoaderFactory,pluginDegradFactory=pluginDegradFactory&&Object.prototype.hasOwnProperty.call(pluginDegradFactory,"default"
)?pluginDegradFactory.default:pluginDegradFactory,pluginHistoryFactory=pluginHistoryFactory&&Object.prototype.hasOwnProperty.call(pluginHistoryFactory,"default")?pluginHistoryFactory.default:pluginHistoryFactory,pluginRemindFactory=pluginRemindFactory&&Object.prototype.hasOwnProperty.call(pluginRemindFactory,"default")?pluginRemindFactory.default:pluginRemindFactory,pluginStepNavigationFactory=pluginStepNavigationFactory&&Object.prototype.hasOwnProperty.call(pluginStepNavigationFactory,"default")?pluginStepNavigationFactory.default:pluginStepNavigationFactory,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,function(loadedPlugins,
dynamicPlugins){var defaultPlugins={core:[pluginDegradFactory,pluginHistoryFactory,pluginRemindFactory,pluginStepNavigationFactory]};return pluginLoaderFactory(_.merge({},defaultPlugins,loadedPlugins)).addList(dynamicPlugins).load(context.bundle)}}),define("css!ui/maths/calculator/css/calculator",[],function(){}),define("ui/maths/calculator/calculatorComponent",["lodash","ui/dynamicComponent","ui/maths/calculator/core/board","ui/maths/calculator/pluginsLoader","css!ui/maths/calculator/css/calculator.css"],function(_,dynamicComponent,calculatorBoardFactory,pluginsLoader,calculator_css){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,dynamicComponent=dynamicComponent&&Object.prototype.hasOwnProperty.call(dynamicComponent,"default")?dynamicComponent.default:dynamicComponent,calculatorBoardFactory=calculatorBoardFactory&&Object.prototype.hasOwnProperty.call(calculatorBoardFactory,"default")?calculatorBoardFactory.default:calculatorBoardFactory,pluginsLoader=pluginsLoader&&Object.prototype.hasOwnProperty.call(pluginsLoader,"default")?pluginsLoader.default:pluginsLoader;var defaultConfig={preserveAspectRatio:!1,width:240,height:360,minWidth:190,minHeight:240,alternativeTemplate:null};return function(config){var calculator,calculatorComponent=dynamicComponent({
getCalculator:function(){return calculator}},defaultConfig).on("rendercontent",function($content){var self=this,initialWidth=self.getElement().width(),initialHeight=self.getElement().height();return pluginsLoader(this.getConfig().loadedPlugins,this.getConfig().dynamicPlugins).then(function(loadedPlugins){return new Promise(function(resolve){calculator=calculatorBoardFactory($content,loadedPlugins,self.getConfig().calculator).on("ready",function(){var initialFontSize=parseInt(self.getCalculator().getElement().css("fontSize"),10)||10;self.on("resize",function(){self.getElement()&&self.getCalculator().getElement().css("fontSize",initialFontSize*Math.min(
self.getElement().width()/initialWidth,self.getElement().height()/initialHeight))}).setContentSize(calculator.getElement().outerWidth(),calculator.getElement().outerHeight()).setState("ready").trigger("ready"),resolve()})})})}).on("destroy",function(){return new Promise(function(resolve){calculator?calculator.after("destroy",function(){calculator=null,resolve()}).destroy():resolve()})});return _.defer(function(){calculatorComponent.init(config)}),calculatorComponent}}),define("ui/maths/calculator/plugins/keyboard/templateKeyboard/templateKeyboard",["jquery","lodash","util/namespace","ui/maths/calculator/core/plugin","ui/maths/calculator/core/labels",
"handlebars","i18n","lib/dompurify/purify"],function($$1,_,nsHelper,pluginFactory,labels,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default"
)?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory,labels=labels&&Object.prototype.hasOwnProperty.call(labels,"default")?labels.default:labels,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0
,stack1,partials,data){this.compilerInfo=[4,">= 1.0.0"],stack1=this.merge(stack1,buffer.helpers);buffer="";return buffer+='<div class="calculator-keyboard">\n <div class="row">\n <button class="key operator" data-command="term" data-param="SQRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SQRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="LPAR"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.LPAR)?stack1.apply(depth0
):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="RPAR"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.RPAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="clear"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.CLEAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="clearAll"><span>',
!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.CLEARALL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="CBRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.CBRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM7"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.NUM7)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM8"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM8)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM9"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM9)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="DIV"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DIV)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="POW NUM2"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POW2)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM4"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM4)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM5"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM5)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM6"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM6)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="MUL"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.MUL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="POW NUM3"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.POW3)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM1"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM1)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM2"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM2)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM3"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM3)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="SUB"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SUB)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="POW"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POWY)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM0"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM0)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="DOT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DOT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key execute" data-command="execute"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.EXECUTE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="ADD"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SUB)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</span></button>\n </div>\n</div>"});var pluginName="templateKeyboard";return pluginFactory({name:pluginName,init:function(){},render:function(){var calculator=this.getCalculator(),areaBroker=calculator.getAreaBroker(),pluginConfig=this.getConfig(),templateConfig=_.merge({labels:labels},pluginConfig);if(!_.isFunction(pluginConfig.layout))throw new TypeError("The keyboard plugin requires a template to render!");this.$layout=$$1(pluginConfig.layout(templateConfig)).on(nsHelper.namespaceAll(
"click",pluginName),".key",function(){var param=$$1(this).closest(".key"),command=param.data("command"),param=param.data("param");command&&calculator.useCommand(command,param)}),areaBroker.getKeyboardArea().append(this.$layout)},destroy:function(){var calculator=this.getCalculator();this.$layout&&(this.$layout.off("."+pluginName).remove(),this.$layout=null),calculator.off("."+pluginName)}},{layout:function(data,html,asString){return html=Template(data,html)}})}),define("ui/scroller",["jquery","util/shortcut"],function($,shortcuts){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,
shortcuts=shortcuts&&Object.prototype.hasOwnProperty.call(shortcuts,"default")?shortcuts.default:shortcuts;var ns=".scroller";return{scrollTo:function(element,container,scrollSpeed){return new Promise(function(resolve){var currentScrollTop,scrollTop=$(element),$container=$(container||scrollTop.parent());scrollTop.length&&$container.length?(currentScrollTop=$container.scrollTop(),(scrollTop=scrollTop.offset().top-$container.offset().top+currentScrollTop)!==currentScrollTop?$container.animate({scrollTop:scrollTop},scrollSpeed).promise().done(resolve):resolve()):resolve()})},disableScrolling:function(){["MouseScrollUp","MouseScrollDown","ArrowUp","ArrowDown"
].forEach(function(shortcutName){shortcuts.add(shortcutName+ns,function(e){e.preventDefault()},{prevent:!1})})},enableScrolling:function(){shortcuts.remove(ns)}}}),define("ui/maths/calculator/plugins/screen/simpleScreen/simpleScreen",["jquery","lodash","i18n","util/namespace","ui/scroller","ui/maths/calculator/core/terms","ui/maths/calculator/core/expression","ui/maths/calculator/core/plugin","handlebars","lib/dompurify/purify"],function($$1,_,__,nsHelper,scrollHelper,registeredTerms,expressionHelper,pluginFactory,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){
return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,scrollHelper=scrollHelper&&Object.prototype.hasOwnProperty.call(scrollHelper,"default")?scrollHelper.default:scrollHelper,
registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms,expressionHelper=expressionHelper&&Object.prototype.hasOwnProperty.call(expressionHelper,"default")?expressionHelper.default:expressionHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(
Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,buffer="";return buffer+='<div class="history-line">\n <div class="history-expression">',!(stack1=(helper=(helpers=this.merge(helpers,stack1.helpers)).expression)||"function"==typeof(helper=depth0&&depth0.expression)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='</div>\n <div class="history-result">',!(stack1=(helper=helpers.result)||"function"==typeof(helper=depth0&&depth0.result)?helper.call(depth0,{hash:{},data:data}):helper
)&&0!==stack1||(buffer+=stack1),buffer+="</div>\n</div>"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,buffer="";return buffer+='<div class="calculator-screen simple-screen">\n <div class="screen-panel history">',!(stack1=(helper=(helpers=this.merge(helpers,stack1.helpers)).history)||"function"==typeof(helper=depth0&&depth0.history)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+='</div>\n <div class="screen-panel expression">',!(stack1=(
helper=helpers.expression)||"function"==typeof(helper=depth0&&depth0.expression)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</div>\n</div>"});var pluginName="simpleScreen";return pluginFactory({name:pluginName,init:function(){var calculator=this.getCalculator();function reset(){calculator.replace(calculator.getConfig().expression||"0")}reset(),calculator.after(nsHelper.namespaceAll("expressionchange",pluginName),function(expression){expression.trim()||_.defer(reset)}).after(nsHelper.namespaceAll("evaluate",pluginName),function(){calculator.replace(registeredTerms.ANS.value)}).on(nsHelper.namespaceAll("clear",
pluginName),reset)},render:function(){var self=this,calculator=this.getCalculator(),areaBroker=calculator.getAreaBroker(),pluginConfig=this.getConfig(),tokenizer=calculator.getTokenizer();function autoScroll($container,sel){scrollHelper.scrollTo($container.find(":last-child "+(sel||"")),$container)}function renderExpression(expression){var variables=expressionHelper.roundLastResultVariable(calculator.getVariables(),pluginConfig.decimalDigits);return expressionHelper.render(expression,variables,tokenizer)}function showExpression(tokens){self.controls.$expression.html(renderExpression(tokens)),autoScroll(self.controls.$expression)}if(!_.isFunction(
pluginConfig.layout))throw new TypeError("The screen plugin requires a template to render!");this.$layout=$$1(pluginConfig.layout(_.defaults({expression:renderExpression(calculator.getTokens())},pluginConfig))),this.controls={$history:this.$layout.find(".history"),$expression:this.$layout.find(".expression")},calculator.on(nsHelper.namespaceAll("command-clearAll",pluginName),function(){self.controls.$history.empty()}).on(nsHelper.namespaceAll("expressionchange",pluginName),function(){calculator.setState("error",!1),showExpression(calculator.getTokens())}).on(nsHelper.namespaceAll("evaluate",pluginName),function(data){var html;self.controls.$history.html((
data={expression:renderExpression(calculator.getTokens()),result:renderExpression(data)},html=Template(data,html))),autoScroll(self.controls.$history,".history-result")}).after(nsHelper.namespaceAll("evaluate",pluginName),function(result){expressionHelper.containsError(result.value)&&showExpression(result)}).on(nsHelper.namespaceAll("syntaxerror",pluginName),function(){calculator.setState("error",!0),showExpression(calculator.getExpression()+registeredTerms.ERROR.value)}),areaBroker.getScreenArea().append(this.$layout)},destroy:function(){var calculator=this.getCalculator();this.$layout&&(this.$layout.off("."+pluginName).remove(),this.$layout=null),
this.controls=null,calculator.off("."+pluginName)}},{layout:function(data,html,asString){return html=Template$1(data,html)},decimalDigits:5})}),define("ui/maths/calculator/defaultCalculator",["lodash","ui/maths/calculator/calculatorComponent","ui/maths/calculator/plugins/keyboard/templateKeyboard/templateKeyboard","ui/maths/calculator/plugins/screen/simpleScreen/simpleScreen"],function(_,calculatorComponent,pluginKeyboardFactory,pluginScreenFactory){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,calculatorComponent=calculatorComponent&&Object.prototype.hasOwnProperty.call(calculatorComponent,"default"
)?calculatorComponent.default:calculatorComponent,pluginKeyboardFactory=pluginKeyboardFactory&&Object.prototype.hasOwnProperty.call(pluginKeyboardFactory,"default")?pluginKeyboardFactory.default:pluginKeyboardFactory,pluginScreenFactory=pluginScreenFactory&&Object.prototype.hasOwnProperty.call(pluginScreenFactory,"default")?pluginScreenFactory.default:pluginScreenFactory,function(config){var defaultPluginsConfig={};return config&&config.keyboardLayout&&(defaultPluginsConfig.templateKeyboard={layout:config.keyboardLayout}),config&&config.screenLayout&&(defaultPluginsConfig.simpleScreen={layout:config.screenLayout}),config=_.merge({loadedPlugins:{keyboard:[
pluginKeyboardFactory],screen:[pluginScreenFactory]},calculator:{plugins:defaultPluginsConfig}},_.omit(config,["keyboardLayout","screenLayout"])),calculatorComponent(config)}}),define("ui/maths/calculator/basicCalculator",["lodash","ui/maths/calculator/defaultCalculator","handlebars","i18n","lib/dompurify/purify"],function(_,defaultCalculatorFactory,Handlebars,__,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}
function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(
fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(
haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,defaultCalculatorFactory=defaultCalculatorFactory&&Object.prototype.hasOwnProperty.call(defaultCalculatorFactory,"default")?defaultCalculatorFactory.default:defaultCalculatorFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0)
;var Template=Handlebars.template(function(buffer,depth0,stack1,partials,data){this.compilerInfo=[4,">= 1.0.0"],stack1=this.merge(stack1,buffer.helpers);buffer="";return buffer+='<div class="calculator-keyboard">\n <div class="row">\n <button class="key command" data-command="historyUp"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.HISTORYUP)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="historyDown"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.HISTORYDOWN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="stepDeleteLeft"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.BACKSPACE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="clear"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.CLEARALL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="LPAR"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.LPAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="RPAR"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.RPAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="POW"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POWY)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="SQRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SQRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operand" data-command="term" data-param="NUM7"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM7)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM8"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM8)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM9"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM9)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="DIV"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DIV)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operand" data-command="term" data-param="NUM4"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM4)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM5"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM5)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM6"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM6)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="MUL"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.MUL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operand" data-command="term" data-param="NUM1"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM1)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM2"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM2)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM3"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM3)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="SUB"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SUB)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operand" data-command="term" data-param="NUM0"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM0)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="DOT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DOT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key execute" data-command="execute"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.EXECUTE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="ADD"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ADD)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</span></button>\n </div>\n</div>"});function keyboardTpl(data,html,asString){html=Template(data,html);return html}
Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(Handlebars,depth0,stack1,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var buffer="";return buffer+='<div class="calculator-screen simple-screen">\n <div class="screen-panel expression">',!(stack1=(stack1=(stack1=this.merge(stack1,Handlebars.helpers)).expression)||"function"==typeof(stack1=depth0&&depth0.expression)?stack1.call(depth0,{hash:{},data:data}):stack1)&&0!==stack1||(buffer+=stack1),buffer+="</div>\n</div>"});function screenTpl(data,html,asString){html=Template$1(data,html);return html}return function(config){
return defaultCalculatorFactory(_.merge({calculator:{plugins:{templateKeyboard:{layout:keyboardTpl},simpleScreen:{layout:screenTpl}}}},config))}}),define("ui/maths/calculator/plugins/modifiers/pow10",["i18n","util/namespace","ui/maths/calculator/core/plugin","ui/maths/calculator/core/tokens"],function(__,nsHelper,pluginFactory,tokensHelper){"use strict";__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default")?pluginFactory.default:pluginFactory,
tokensHelper=tokensHelper&&Object.prototype.hasOwnProperty.call(tokensHelper,"default")?tokensHelper.default:tokensHelper;return pluginFactory({name:"pow10",install:function(){this.getCalculator().setCommand("pow10",__("Power of 10"),__("Multiply the value by 10^x"))},init:function(){var calculator=this.getCalculator();function isSeparator(token){return tokensHelper.isFunction(token)||tokensHelper.isSeparator(token)&&"RPAR"!==token.type}calculator.on(nsHelper.namespaceAll("command-pow10","pow10"),function(){var position=calculator.getPosition(),tokens=calculator.getTokens(),index=calculator.getTokenIndex(),token=tokens[index]||null,
prevToken=tokens[index-1]||null,nextToken=tokens[index+1]||null,aligned=!1,expr="*10^";token&&(aligned=token.offset===position,"MUL"===token.type?aligned&&(calculator.setPosition(position+token.value.length),aligned=!1):aligned||(nextToken||position<token.offset+token.value.length)&&(calculator.setPosition(token.offset),aligned=!0)),tokens.length<=1&&!token||"NUM0"===token.type?calculator.replace("10^"):(aligned?0!==index&&!isSeparator(prevToken)||(expr="10^"):isSeparator(token)&&(expr="10^",tokensHelper.isFunction(token)&&" "!==calculator.getExpression().charAt(calculator.getPosition()-1)&&(expr=" "+expr)),calculator.insert(expr))})},destroy:function(){
this.getCalculator().deleteCommand("pow10").off(".pow10")}})}),define("ui/maths/calculator/plugins/modifiers/sign",["lodash","i18n","util/namespace","ui/maths/calculator/core/plugin","ui/maths/calculator/core/tokens","ui/maths/calculator/core/terms"],function(_,__,nsHelper,pluginFactory,tokensHelper,registeredTerms){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,nsHelper=nsHelper&&Object.prototype.hasOwnProperty.call(nsHelper,"default")?nsHelper.default:nsHelper,pluginFactory=pluginFactory&&Object.prototype.hasOwnProperty.call(pluginFactory,"default"
)?pluginFactory.default:pluginFactory,tokensHelper=tokensHelper&&Object.prototype.hasOwnProperty.call(tokensHelper,"default")?tokensHelper.default:tokensHelper,registeredTerms=registeredTerms&&Object.prototype.hasOwnProperty.call(registeredTerms,"default")?registeredTerms.default:registeredTerms;var refuseExplicitPositive=["LPAR","SUB","ADD","MUL","DIV","MOD","POW","ASSIGN"],strategies=[function(index,tokens){var token=tokens[index]||null,type=tokensHelper.getType(token),result=null;if(tokensHelper.isDigit(type)&&0<=index){for(;index&&tokensHelper.isDigit(type);)token=tokens[--index]||null,type=tokensHelper.getType(token);result=tokensHelper.isDigit(type
)&&0===index?insertNegativeSign(token):applySignChange(index,tokens)}return result},function(index,tokens){var token=tokens[index]||null,type=tokensHelper.getType(token),result=null;return tokensHelper.isOperator(type)&&0<=index&&("SUB"===token.type?result=replaceByPositiveSign(token,index,tokens):"ADD"===token.type?result=replaceByNegativeSign(token):"FAC"===token.type&&0<index&&(result=applyStrategies(index-1,tokens))),result},function(index,tokens){var token=tokens[index]||null,type=tokensHelper.getType(token),result=null;return tokensHelper.isIdentifier(type)&&0<=index&&(result=0===index?insertNegativeSign(token):applySignChange(index-1,tokens)),result},
function(index,tokens){var token=tokens[index]||null,type=tokensHelper.getType(token),result=null,count=0;if(tokensHelper.isAggregator(type)&&0<=index){for("RPAR"===token.type&&count++;index&&("LPAR"!==token.type||count);)"RPAR"===(token=tokens[--index]||null).type&&count++,"LPAR"===token.type&&count--;count||"LPAR"!==token.type||(result=0===index?insertNegativeSign(token):applySignChange(index-1,tokens))}return result}];function applyStrategies(index,tokens){var result=null;return _.forEach(strategies,function(strategy){return!(result=strategy(index,tokens))}),result}function applySignChange(index,tokens){var token=tokens[index]||null,
nextToken=tokens[index+1]||null,type=tokensHelper.getType(token),result=null;return token&&(tokensHelper.isOperator(type)?"SUB"===token.type?result=replaceByPositiveSign(token,index,tokens):"ADD"===token.type?result=replaceByNegativeSign(token):nextToken&&(result=insertNegativeSign(nextToken)):nextToken&&(tokensHelper.isFunction(type)||"LPAR"===token.type)&&(result=insertNegativeSign(nextToken))),result}function insertNegativeSign(token){return{offset:token.offset,length:0,sign:registeredTerms.SUB.value,move:registeredTerms.SUB.value.length}}function replaceByNegativeSign(token){return{offset:token.offset,length:token.value.length,
sign:registeredTerms.SUB.value,move:registeredTerms.SUB.value.length-token.value.length}}function replaceByPositiveSign(token,allowExplicit,tokens){allowExplicit=allowExplicit&&function(token){return!token||-1===refuseExplicitPositive.indexOf(token.type)&&!tokensHelper.isFunction(tokensHelper.getType(token))}(tokens[allowExplicit-1]);return{offset:token.offset,length:token.value.length,sign:allowExplicit?registeredTerms.ADD.value:"",move:(allowExplicit?registeredTerms.ADD.value.length:0)-token.value.length}}return pluginFactory({name:"sign",install:function(){this.getCalculator().setCommand("sign",__("Sign change"),__("Change the sign of the current operand"
))},init:function(){var calculator=this.getCalculator();calculator.on(nsHelper.namespaceAll("command-sign","sign"),function(){var result,tokens=calculator.getTokens(),index=calculator.getTokenIndex(),expression=calculator.getExpression();"0"!==expression&&(result=applyStrategies(index,tokens))&&(expression=function(str,index,length,sub){return str.substring(0,index)+sub+str.substring(index+length)}(expression,result.offset,result.length,result.sign),calculator.replace(expression,calculator.getPosition()+result.move))})},destroy:function(){this.getCalculator().deleteCommand("sign").off(".sign")}})}),define("ui/maths/calculator/scientificCalculator",["lodash",
"i18n","ui/maths/calculator/defaultCalculator","ui/maths/calculator/plugins/modifiers/sign","ui/maths/calculator/plugins/modifiers/pow10","handlebars","lib/dompurify/purify"],function(_,__,defaultCalculatorFactory,pluginSign,pluginPow10,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){
return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",
function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,defaultCalculatorFactory=defaultCalculatorFactory&&Object.prototype.hasOwnProperty.call(defaultCalculatorFactory,"default")?defaultCalculatorFactory.default:defaultCalculatorFactory,pluginSign=pluginSign&&Object.prototype.hasOwnProperty.call(pluginSign,"default")?pluginSign.default:pluginSign,pluginPow10=pluginPow10&&Object.prototype.hasOwnProperty.call(pluginPow10,"default")?pluginPow10.default:pluginPow10,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,
"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,stack1,partials,data){this.compilerInfo=[4,">= 1.0.0"],stack1=this.merge(stack1,buffer.helpers);buffer="";return buffer+='<div class="calculator-keyboard">\n <div class="row">\n <button class="key switch first" data-command="degree"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DEGREE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key switch last" data-command="radian"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.RADIAN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <span class="spacer">',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SPACER)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span>\n <span class="spacer">',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SPACER)?stack1.apply(depth0
):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span>\n <button class="key command" data-command="historyUp"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.HISTORYUP)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="historyDown"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.HISTORYDOWN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="stepDeleteLeft"><span>',
!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.BACKSPACE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key command" data-command="clear"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.CLEARALL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="SIN"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.SIN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="COS"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.COS)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="TAN"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.TAN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key constant" data-command="term" data-param="PI"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.PI)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="LPAR"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.LPAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="RPAR"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.RPAR)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key variable" data-command="var" data-param="ans"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ANS)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="DIV"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DIV)?stack1.apply(depth0
):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="ASIN"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ASIN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="ACOS"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ACOS)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="ATAN"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ATAN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="FAC"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.FAC)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM7"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM7)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM8"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM8)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM9"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM9)?stack1.apply(
depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="MUL"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.MUL)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="POW NUM2"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POW2)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="POW NUM3"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POW3)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="POW"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POWY)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="POW SUB NUM1"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POWMINUSONE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM4"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM4)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM5"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM5)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM6"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM6)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="SUB"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SUB)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="SQRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SQRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="CBRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.CBRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="@NTHRT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NTHRT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="pow10"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.POW10)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM1"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM1)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM2"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM2)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM3"><span>',!(
stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM3)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="ADD"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.ADD)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n </div>\n <div class="row">\n <button class="key operator" data-command="term" data-param="LOG10"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels
)||!1===stack1?stack1:stack1.LOG)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="LN"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.LN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="term" data-param="EXP"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.EXPX)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),
buffer+='</span></button>\n <button class="key constant" data-command="term" data-param="E"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.E)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operator" data-command="sign"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.SIGN)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="NUM0"><span>',!(stack1="function"==typeof(
stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.NUM0)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key operand" data-command="term" data-param="DOT"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.DOT)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1),buffer+='</span></button>\n <button class="key execute" data-command="execute"><span>',!(stack1="function"==typeof(stack1=null==(stack1=depth0&&depth0.labels)||!1===stack1?stack1:stack1.EXECUTE)?stack1.apply(depth0):stack1)&&0!==stack1||(buffer+=stack1
),buffer+="</span></button>\n </div>\n</div>"});function keyboardTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var helper,buffer="";return buffer+='<div class="calculator-screen simple-screen">\n <div class="screen-panel history">',!(stack1=(helper=(helpers=this.merge(helpers,stack1.helpers)).history)||"function"==typeof(helper=depth0&&depth0.history)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),
buffer+='</div>\n <div class="screen-panel expression">',!(stack1=(helper=helpers.expression)||"function"==typeof(helper=depth0&&depth0.expression)?helper.call(depth0,{hash:{},data:data}):helper)&&0!==stack1||(buffer+=stack1),buffer+="</div>\n</div>"});function screenTpl(data,html,asString){html=Template$1(data,html);return html}var defaultConfig={title:__("Scientific Calculator"),width:450,height:400,minWidth:250,minHeight:220};return function(config){return defaultCalculatorFactory(_.merge({loadedPlugins:{modifiers:[pluginSign,pluginPow10]},calculator:{plugins:{templateKeyboard:{layout:keyboardTpl},simpleScreen:{layout:screenTpl}}}},defaultConfig,config
))}}),define("ui/mediasizer",["jquery","lodash","core/pluginifier","handlebars","i18n","lib/dompurify/purify","nouislider","ui/tooltip"],function($$1,_,Pluginifier,Handlebars,__,DOMPurify,nouislider,tooltip){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",
function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret=""
;startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,
buffer="",helperMissing=helpers.helperMissing,escapeExpression=this.escapeExpression;return buffer+='<div class="media-sizer media-sizer-synced">\n\n <div class="media-sizer-responsive-toggle">\n <label>\n <input type="checkbox" ',!(helper=helpers.if.call(depth0,depth0&&depth0.responsive,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return'checked="checked"'},data),data:data}))&&0!==helper||(buffer+=helper),buffer+=' class="media-mode-switch"/>\n <span class="icon-checkbox"></span>\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Responsive mode",
options):helperMissing.call(depth0,"__","Responsive mode",options)))+'\n </label>\n <span class="icon-help tooltipstered" data-tooltip="~ .tooltip-content:first" data-tooltip-theme="warning"></span>\n\n <div class="tooltip-content">\n '+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Media resize along with their container, e.g. 50% means half of the container size not half of the media size.",options):helperMissing.call(depth0,"__","Media resize along with their container, e.g. 50% means half of the container size not half of the media size.",options))
)+'\n </div>\n </div>\n\n\n <div class="media-sizer-percent">\n <label for="media-sizer-percent-width">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Size",options):helperMissing.call(depth0,"__","Size",options))
)+'</label>\n <span class="item-editor-unit-input-box">\n <input type="text" name="width" id="media-sizer-percent-width" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n </span>\n\n <div class="media-sizer-reset media-sizer-reset-percent" data-unit="percent">\n <span class="icon-reset"></span>\n </div>\n\n <div class="media-sizer-slider-box">\n <div class="media-sizer-slider"></div>\n </div>\n </div>\n\n <div class="media-sizer-pixel">\n <label for="media-sizer-pixel-width">'+escapeExpression((options={hash:{},data:data},(
helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Width",options):helperMissing.call(depth0,"__","Width",options)))+'</label>\n <span class="item-editor-unit-input-box">\n <input type="text" name="width" id="media-sizer-pixel-width" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n </span>\n\n <label for="media-sizer-pixel-height">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Height",options):helperMissing.call(depth0,"__","Height",options))
)+'</label>\n <span class="item-editor-unit-input-box">\n <input type="text" name="height" id="media-sizer-pixel-height" data-validate="$numeric" data-validate-option="$allowEmpty;"/>\n </span>\n\n <div class="media-sizer-sync">\n <span class="icon-link"></span>\n </div>\n\n <div class="media-sizer-reset media-sizer-reset-pixel" data-unit="pixel">\n <span class="icon-reset"></span>\n </div>\n\n <div class="media-sizer-slider-box">\n <div class="media-sizer-slider"></div>\n <div class="media-sizer-cover"></div>\n </div>\n </div>\n</div>'})
;var MediaSizer,ns="mediasizer",dataNs="ui."+ns,defaults={disableClass:"disabled",applyToMedium:!0,denyCustomRatio:!0,responsive:!0,showResponsiveToggle:!0,showReset:!0,showSync:!0,size:100};function _round(value,factor){factor=Math.pow(10,factor);return Math.round(value*factor)/factor}MediaSizer={_publicArgs:function(params,options){params=this._getValues(params);return params.$target=options.target||$$1(),params.$resetBtn=options.$resetBtn,params},_getSizeProps:function(minWidth){var naturalWidth,naturalHeight,options=minWidth.data(dataNs),minWidth=_.isNumber(options.minWidth)?options.minWidth:0,containerWidth=options.hasTarget?(naturalHeight=(
maxWidth=options.target)[0].getBoundingClientRect(),options.width=naturalHeight.width,options.height=naturalHeight.height,naturalWidth=maxWidth[0].naturalWidth||options.width,naturalHeight=maxWidth[0].naturalHeight||options.height,maxWidth=options.parentSelector?maxWidth.parents(options.parentSelector):maxWidth.parent().parent(),options.maxWidth||("none"!==(containerWidth=maxWidth.css("max-width"))?parseInt(containerWidth):maxWidth.innerWidth())):(naturalWidth=options.width,naturalHeight=options.height,options.maxWidth||options.width),maxWidth=Math.max(containerWidth,naturalWidth);return{px:{natural:{width:naturalWidth,height:naturalHeight},current:{
width:options.width,height:options.height}},"%":{natural:{width:100,height:null},current:{width:100*options.width/containerWidth,height:null}},ratio:{natural:naturalWidth/naturalHeight,current:options.width/options.height},containerWidth:containerWidth,sliders:{"%":{min:100*minWidth/maxWidth,max:100,start:100*options.width/containerWidth},px:{min:minWidth,max:maxWidth,start:+options.width}},currentUnit:"%"}},_initSyncBtn:function($elt){var options=$elt.data(dataNs),$mediaSizer=$elt.find(".media-sizer"),self=this,$syncBtn=$elt.find(".media-sizer-sync");return options.showSync||($syncBtn.hide(),$mediaSizer.addClass("media-sizer-sync-off")),$syncBtn.on("click",
function(){$mediaSizer.toggleClass("media-sizer-synced"),options.syncDimensions=$mediaSizer.hasClass("media-sizer-synced"),options.syncDimensions&&self._sync($elt,options.$fields.px.width,"blur")}),$syncBtn},_initResetBtn:function($elt){var options=$elt.data(dataNs),$resetBtn=$elt.find(".media-sizer-reset");return options.showReset||$elt.find(".media-sizer").addClass("media-sizer-reset-off"),$resetBtn.on("click",function(){options.$fields.px.width.val(options.originalSizeProps.px.current.width).trigger("sliderchange")}),$resetBtn},_initBlocks:function($elt){var options=$elt.data(dataNs),_blocks={},$responsiveToggleField=$elt.find(".media-mode-switch"),
self=this,_checkMode=function(){$responsiveToggleField.is(":checked")?(_blocks.px.hide(),_blocks["%"].show(),options.sizeProps.currentUnit="%",options.$fields&&options.$fields["%"].width.val()>options.sizeProps.sliders["%"].max&&(options.$fields["%"].width.val(options.sizeProps.sliders["%"].max),self._sync($elt,options.$fields["%"].width,"blur"))):(_blocks["%"].hide(),_blocks.px.show(),options.sizeProps.currentUnit="px")};return options.showResponsiveToggle||$elt.find(".media-sizer").addClass("media-sizer-responsivetoggle-off"),_(["px","%"]).forEach(function(unit){_blocks[unit]=$elt.find(".media-sizer-"+("px"===unit?"pixel":"percent")),_blocks[unit].prop(
"unit",unit),_blocks[unit].find("input").data("unit",unit).after($$1("<span>",{class:"unit-indicator",text:unit}))}),$responsiveToggleField.on("click",function(){_checkMode(),$elt.trigger("responsiveswitch."+ns,[$responsiveToggleField.is(":checked")]),$elt.trigger("sizechange."+ns,self._publicArgs($elt,options))}),_checkMode(),_blocks},_initSliders:function($elt){var options=$elt.data(dataNs),_sliders={};return _(options.$blocks).forOwn(function($block,unit){_sliders[unit]=$block.find(".media-sizer-slider"),_sliders[unit].prop("unit",unit),_sliders[unit].noUiSlider({start:options.sizeProps.sliders[unit].start,range:{min:options.sizeProps.sliders[unit].min,
max:options.sizeProps.sliders[unit].max}}).on("slide",function(){var $slider=$$1(this),_unit=$slider.prop("unit");options.$fields[_unit].width.val(_round($slider.val(),0)).trigger("sliderchange")})}),_sliders},_sync:function($elt,otherBlockWidthValue,eventType){var otherBlockUnit,otherBlockHeightValue,currentValues,options=$elt.data(dataNs),unit=otherBlockWidthValue.prop("unit"),heightValue=otherBlockWidthValue.prop("dimension"),value=parseFloat(otherBlockWidthValue.val());if(eventType="sliderchange"===eventType?"sliderEvent":"fieldEvent",!isNaN(value)){if(0<options.sizeProps.px.current.width&&0<options.sizeProps.px.current.height&&(
options.sizeProps.ratio.current=options.sizeProps.px.current.width/options.sizeProps.px.current.height),otherBlockHeightValue=(otherBlockHeightValue=options.denyCustomRatio?options.sizeProps.ratio.natural:options.sizeProps.ratio.current)||1,"height"===heightValue&&"px"===unit){if(options.sizeProps.px.current.height=value,!options.syncDimensions)return options.sizeProps["%"].current.height=null,options.applyToMedium&&(currentValues=this._getValues($elt),options.target.attr("width",currentValues.width),options.target.attr("height",currentValues.height)),void $elt.trigger("sizechange."+ns,this._publicArgs($elt,options))
;options.sizeProps.px.current.width=value*otherBlockHeightValue,options.sizeProps.ratio.current=options.sizeProps.px.current.width/options.sizeProps.px.current.height,options.$fields.px.width.val(_round(options.sizeProps.px.current.width,0)),value=parseFloat(options.$fields.px.width.val())}otherBlockWidthValue="px"===unit?(otherBlockUnit="%",100*value/options.sizeProps.containerWidth):(otherBlockUnit="px",value*options.sizeProps.containerWidth/100),options.sizeProps[unit].current.width=value,options.sizeProps[otherBlockUnit].current.width=otherBlockWidthValue,options.syncDimensions&&(heightValue=value/otherBlockHeightValue,
otherBlockHeightValue=otherBlockWidthValue/otherBlockHeightValue,options.sizeProps[unit].current.height=heightValue,options.$fields[unit].height.val(_round(heightValue,0)),options.sizeProps[otherBlockUnit].current.height=otherBlockHeightValue,options.$fields[otherBlockUnit].height.val(_round(otherBlockHeightValue,0))),"sliderEvent"!==eventType&&options.$sliders[unit].val(value),options.$sliders[otherBlockUnit].val(otherBlockWidthValue),options.$fields[otherBlockUnit].width.val(_round(otherBlockWidthValue,0)),options.sizeProps["%"].current.height=null,options.applyToMedium&&(currentValues=this._getValues($elt),options.target.attr("width",currentValues.width),
options.target.attr("height",currentValues.height||"auto")),$elt.trigger("sizechange."+ns,this._publicArgs($elt,options))}},_initFields:function($elt){var field,options=$elt.data(dataNs),dimensions=["width","height"],_fields={},self=this;return _(options.$blocks).forOwn(function($block,unit){_fields[unit]={},options.$blocks[unit].find("input").each(function(){_(dimensions).forEach(function(dim){field=options.$blocks[unit].find('[name="'+dim+'"]'),_fields[unit][dim]=field.length?field:$$1("<input>"),_fields[unit][dim].prop({unit:unit,dimension:dim}),_fields[unit][dim].val(_round(options.sizeProps[unit].current[dim],0)),_fields[unit][dim].data({min:0,
max:options.sizeProps.sliders[unit].max}),_fields[unit][dim].on("keydown",function(specChars){var $field=$$1(this),c=specChars.keyCode,specChars=(specChars=[8,37,39,46],-1===$field.val().indexOf(".")&&(specChars.push(190),specChars.push(110)),specChars);return _.contains(specChars,c)||48<=c&&c<=57||96<=c&&c<=105}),_fields[unit][dim].on("keyup blur sliderchange",function(e){var $field=$$1(this),value=$field.val().replace(/,/g,".");$field.val(value),value>$field.data("max")?$field.val($field.data("max")):value<$field.data("min")&&$field.val($field.data("min")),self._sync($elt,$$1(this),e.type)})})})}),_fields},_getValues:function($elt){var options=$elt.data(
dataNs),attr={};return _.forOwn(options.sizeProps[options.sizeProps.currentUnit].current,function(value,dimension){value=_.isNull(value)?"":_round(value,0).toString(),"%"===options.sizeProps.currentUnit&&""!==value&&(value+=options.sizeProps.currentUnit),attr[dimension]=value}),attr},init:function(options){return options=$$1.extend(!0,{},defaults,options),this.each(function(){var data,html,$elt=$$1(this);if(options.hasTarget=options.target&&options.target.length,options.width=options.width||options.naturalWidth||options.maxWidth||defaults.size,options.height=options.height||options.naturalHeight||defaults.size,
options.naturalWidth=options.naturalWidth||options.width||defaults.size,options.naturalHeight=options.naturalHeight||options.height||defaults.size,options.hasSize=_.isFinite(+options.width)&&_.isFinite(+options.height),!options.hasTarget&&!options.hasSize)throw new Error("MediaSizer::init() You must either set width and height or a target element");if(!options.hasTarget&&options.applyToMedium)throw new Error("MediaSizer::init() options.applyToMedium can only be true if a target element is provided");options.hasTarget&&options.hasSize&&(delete options.width,delete options.height,options.hasSize=!1),$elt.data(dataNs)||($elt.html((data={
responsive:void 0===options.responsive||!!options.responsive},html=Template(data,html))),$elt.data(dataNs,options),options.sizeProps=MediaSizer._getSizeProps($elt),options.originalSizeProps=_.cloneDeep(options.sizeProps),options.syncDimensions=$elt.find(".media-sizer").hasClass("media-sizer-synced"),options.$blocks=MediaSizer._initBlocks($elt),options.$fields=MediaSizer._initFields($elt),options.$sliders=MediaSizer._initSliders($elt),options.$syncBtn=MediaSizer._initSyncBtn($elt),options.$resetBtn=MediaSizer._initResetBtn($elt),$elt.trigger("create."+ns,MediaSizer._publicArgs($elt,options)))})},destroy:function(){this.each(function(){$$1(this).trigger(
"destroy."+ns)})}},Pluginifier.register(ns,MediaSizer)}),define("ui/movableComponent",["lodash","ui/component","ui/component/draggable","ui/component/resizable","ui/component/stackable"],function(_,componentFactory,makeDraggable,makeResizable,makeStackable){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,makeDraggable=makeDraggable&&Object.prototype.hasOwnProperty.call(makeDraggable,"default")?makeDraggable.default:makeDraggable,
makeResizable=makeResizable&&Object.prototype.hasOwnProperty.call(makeResizable,"default")?makeResizable.default:makeResizable,makeStackable=makeStackable&&Object.prototype.hasOwnProperty.call(makeStackable,"default")?makeStackable.default:makeStackable;var defaultConfig={initialX:0,initialY:0,width:250,height:100,minWidth:75,minHeight:25};return function(specs,component){return component=_.defaults(component||{},defaultConfig),component=componentFactory(specs,component),makeDraggable(component),makeResizable(component),makeStackable(component),component.on("render",function(){this.setSize(this.config.width,this.config.height).center()}),component}}),define(
"ui/pageStatus",["lodash","core/eventifier"],function(_,eventifier){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier;var hiddenProp,visibilityChangeEvent,defaults={track:["load","visibility","focus"]};return void 0!==document.hidden?(hiddenProp="hidden",visibilityChangeEvent="visibilitychange"):void 0!==document.mozHidden?(hiddenProp="mozHidden",visibilityChangeEvent="mozvisibilitychange"):void 0!==document.msHidden?(hiddenProp="msHidden",visibilityChangeEvent="msvisibilitychange"):void 0!==document.webkitHidden&&(
hiddenProp="webkitHidden",visibilityChangeEvent="webkitvisibilitychange"),function(options){var win,pageStatus;return options=_.defaults(options||{},defaults),win=options.window||window,pageStatus=eventifier({}),_.contains(options.track,"load")&&(win.addEventListener("load",function(){pageStatus.trigger("statuschange","load")}),win.addEventListener("unload",function(){pageStatus.trigger("statuschange","unload")})),_.contains(options.track,"visibility")&&win.addEventListener(visibilityChangeEvent,function(e){_.defer(function(){!0===win.document[hiddenProp]?pageStatus.trigger("statuschange","hide",e.timeStamp):pageStatus.trigger("statuschange","show",
e.timeStamp)})}),_.contains(options.track,"focus")&&(win.addEventListener("blur",_.debounce(function(e){e.target===win&&pageStatus.trigger("statuschange","blur",e.timeStamp)},200,{leading:!0,trailing:!1})),win.addEventListener("focus",_.debounce(function(e){e.target===win&&pageStatus.trigger("statuschange","focus",e.timeStamp)},200,{leading:!0,trailing:!1}))),pageStatus.on("statuschange",function(args){args=[args].concat([].slice.call(arguments,1));pageStatus.trigger.apply(pageStatus,args)}),pageStatus}}),define("ui/resourcemgr/util/updatePermissions",[],function(){"use strict";return function(item){var isAssets=(item.uri||item.path||"").includes(
"mediamanager"),permissions={read:!0,write:!0,preview:!0,download:!0,upload:!0,delete:!0};return item.permissions&&(item.permissions.includes("READ")||(permissions.read=!1),item.permissions.includes("WRITE")||(permissions.write=!1),isAssets?(item.permissions.includes("PREVIEW")||(permissions.preview=!1),item.permissions.includes("DOWNLOAD")||(permissions.download=!1),item.permissions.includes("UPLOAD")||(permissions.upload=!1),item.permissions.includes("DELETE")||(permissions.delete=!1)):(permissions.read||(permissions.preview=!1,permissions.download=!1),permissions.write||(permissions.delete=!1,permissions.upload=!1))),item.permissions=permissions,item}}),
define("css!ui/searchModal/css/searchModal",[],function(){}),define("css!ui/searchModal/css/advancedSearch",[],function(){}),define("ui/searchModal/advancedSearch",["jquery","lodash","i18n","context","handlebars","lib/dompurify/purify","css!ui/searchModal/css/advancedSearch.css","ui/component","ui/modal","ui/datatable","select2","util/url","core/dataProvider/request"],function($$1,_,__,context,Handlebars,DOMPurify,advancedSearch_css,component,modal,datatable,select2,urlUtil,request){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n
))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[]
;return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),
increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,
context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,urlUtil=urlUtil&&Object.prototype.hasOwnProperty.call(urlUtil,"default")?urlUtil.default:urlUtil,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template=Handlebars.template(function(helperMissing,depth0,helper,partials,options){this.compilerInfo=[4,">= 1.0.0"],options=options||{};var buffer="",helperMissing=(helper=this.merge(helper,helperMissing.helpers)).helperMissing;return buffer+='<div class="advanced-search-container">\n <div class="advanced-criteria-container"></div>\n <div class="add-criteria-container">\n <a><span class="icon-add"></span>'+(0,this.escapeExpression)((options={hash:{},data:options},(helper=helper.__||depth0&&depth0.__)?helper.call(depth0,"add criteria",options):helperMissing.call(depth0,"__","add criteria",options))
)+'</a>\n <select name="criteria-select">\n <option></option>\n </select>\n </div>\n</div>\n'});function advancedSearchTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(stack1,depth0,helper,partials,options){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,stack1.helpers),options=options||{};var buffer="",escapeExpression=this.escapeExpression,helperMissing=helper.helperMissing;return buffer+='<div class="filter-container '+escapeExpression("function"==typeof(stack1=null==(
stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)?stack1.apply(depth0):stack1)+'-filter" data-criteria="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+'" data-type="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.type)?stack1.apply(depth0):stack1)+'">\n <button class="icon-result-nok" aria-label="'+escapeExpression((options={hash:{},data:options},(helper=helper.__||depth0&&depth0.__)?helper.call(depth0,"Remove criteria",options):helperMissing.call(depth0,"__","Remove criteria",
options)))+'"></button>\n <label>\n <span class="filter-label-text">'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+'</span>\n <input type="text">\n </label>\n</div>'});function textCriterionTpl(data,html,asString){html=Template$1(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$2=Handlebars.template(function(helper,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),stack1=stack1||{};var options,buffer="",
functionType="function",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="filter-container invalid-criteria-warning-container">\n<span class="select2-search-choice-close"></span>\n <p>\n '+escapeExpression((options={hash:{},data:stack1},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"The following criteria are not applicable to the selected class and have been removed from the search",options):helperMissing.call(depth0,"__","The following criteria are not applicable to the selected class and have been removed from the search",options)))+":\n </p>\n <ul>\n ",!(
stack1=helpers.each.call(depth0,depth0&&depth0.invalidCriteria,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){var buffer="";return buffer+="\n <li>"+escapeExpression(typeof depth0===functionType?depth0.apply(depth0):depth0)+"</li>\n "},stack1),data:stack1}))&&0!==stack1||(buffer+=stack1),buffer+="\n </ul>\n</div>"});Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$3=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,options,buffer="",functionType="function",
escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+='<div class="filter-container '+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+'-filter" data-criteria="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+'"\n data-type="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.type)===functionType?stack1.apply(depth0):stack1
)+'">\n <button class="icon-result-nok" aria-label="'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0," Remove criteria",options):helperMissing.call(depth0,"__"," Remove criteria",options)))+'"></button>\n <fieldset class="filter-bool-group">\n <legend>'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)===functionType?stack1.apply(depth0):stack1)+"</legend>\n ",!(stack1=helpers.each.call(depth0,null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.values,{hash:{},inverse:this.noop,fn:this.program(1,function(depth0,
data){var stack1,buffer="";return buffer+='\n <div>\n <input type="checkbox" value="'+escapeExpression(typeof depth0===functionType?depth0.apply(depth0):depth0)+'" id="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+"-"+escapeExpression(typeof depth0===functionType?depth0.apply(depth0):depth0)+'">\n <label class="filter-label-text" for="'+escapeExpression(typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)===functionType?stack1.apply(depth0):stack1)+"-"+escapeExpression(
typeof depth0===functionType?depth0.apply(depth0):depth0)+'">'+escapeExpression(typeof depth0===functionType?depth0.apply(depth0):depth0)+"</label>\n </div>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </fieldset>\n</div>"});function listCheckboxCriterionTpl(data,html,asString){html=Template$3(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$4=Handlebars.template(function(stack1,depth0,helper,partials,options){this.compilerInfo=[4,">= 1.0.0"],helper=this.merge(helper,stack1.helpers),options=options||{};var buffer="",escapeExpression=this.escapeExpression,
helperMissing=helper.helperMissing;return buffer+='<div class="filter-container '+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)?stack1.apply(depth0):stack1)+'-filter" data-criteria="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+'" data-type="'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.type)?stack1.apply(depth0):stack1)+'">\n <button class="icon-result-nok" aria-label="'+escapeExpression((options={hash:{},data:options},(
helper=helper.__||depth0&&depth0.__)?helper.call(depth0,"Remove criteria",options):helperMissing.call(depth0,"__","Remove criteria",options)))+'"></button> <label> \n <span class="filter-label-text">'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+"</span>\n <input type='text' name=\""+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.criterion)||!1===stack1?stack1:stack1.id)?stack1.apply(depth0):stack1)+'-select">\n </label>\n</div>\n'});function listSelectCriterionTpl(data,html,asString){html=Template$4(data,html)
;return html}return function(config){var isAdvancedSearchStatusEnabled,$container=null,$addCriteria=null,$addCriteriaInput=null,$criteriaSelect=null,$advancedCriteriaContainer=null,criteriaState=null,criteriaMapping={},criteriaTypes={text:"text",list:"list"},isCriteriaListUpdated=!1,instance=component({updateCriteria:function(route){if(!isAdvancedSearchStatusEnabled)return Promise.resolve();var $criteriaIcon=$$1(".add-criteria-container a span").eq(0);return $criteriaIcon.toggleClass("icon-add").toggleClass("icon-loop"),request(route).then(function(response){criteriaMapping=response.criteriaMapping||{},function(criteria){$$1(
".invalid-criteria-warning-container").remove(),$criteriaSelect.find("option:not(:first-child)").remove();var invalidCriteria=function(criteria){var invalidCriteria=[];return _.forEach(criteriaState,function(oldCriterion){criteria.find(function(newCriterion){return newCriterion.label===oldCriterion.label})||(criteriaState[oldCriterion.label].rendered&&($advancedCriteriaContainer.find(".".concat(oldCriterion.id,"-filter")).remove(),invalidCriteria.push(oldCriterion.label)),delete criteriaState[oldCriterion.label])}),invalidCriteria}(criteria);(function(criteria){criteria.forEach(function(newOption){var createOption=!0
;criteriaState[newOption.label]&&!0===criteriaState[newOption.label].rendered?(createOption=!1,0===$advancedCriteriaContainer.find(".".concat(newOption.id,"-filter")).length&&addNewCriterion(newOption.label)):(criteriaState[newOption.label]=newOption,criteriaState[newOption.label].rendered=!1,criteriaState[newOption.label].value=void 0),createOption&&(newOption=new Option(newOption.label,newOption.label,!1,!1),$criteriaSelect.append(newOption))})})(criteria),function(invalidCriteriaWarning){{0<invalidCriteriaWarning.length&&(invalidCriteriaWarning=function(data,html){return html=Template$2(data,html)}({invalidCriteria:invalidCriteriaWarning}),
$advancedCriteriaContainer.prepend(invalidCriteriaWarning),$$1(".invalid-criteria-warning-container .select2-search-choice-close",$advancedCriteriaContainer).on("click",function(){$$1(this).parent().remove()}))}}(invalidCriteria)}(function(classTree){var criteria=[];return _.forEach(classTree,function(classInstance){criteria.push.apply(criteria,_toConsumableArray(classInstance.metadata))}),criteria=_.uniq(criteria,"label"),_.forEach(criteria,function(criterion){return criterion.id=criterion.label.replace(/^[^a-zA-Z]*|[^a-zA-Z0-9]*/g,"")}),criteria}(response.classDefinition||response)),isCriteriaListUpdated=!0,$criteriaIcon.toggleClass("icon-add"
).toggleClass("icon-loop")}).catch(function(e){return instance.trigger("error",e)})},getState:function(){return criteriaState},clear:function(){$advancedCriteriaContainer.removeClass(["scrollable","scroll-separator-top","scroll-separator-bottom"]),$advancedCriteriaContainer.empty(),_.forEach(criteriaState,function(criterion){criterion.rendered=!1,criterion.value=void 0})},getAdvancedCriteriaQuery:function(hasSearchInput){var advancedSearchCriteria=_.filter(criteriaState,function(criterion){return!0===criterion.rendered}),query="";return advancedSearchCriteria.forEach(function(renderedCriterion){var queryParam=renderedCriterion.propertyUri;(
hasSearchInput||0!==query.trim().length)&&renderedCriterion.value&&(query+=" AND "),renderedCriterion.type===criteriaTypes.text?renderedCriterion.value&&""!==renderedCriterion.value.trim()&&(query+="".concat(queryParam,":").concat(renderedCriterion.value.trim())):renderedCriterion.type===criteriaTypes.list&&renderedCriterion.value&&0<renderedCriterion.value.length&&(query+="".concat(queryParam,":").concat(renderedCriterion.value.join(" AND ")))}),query}}).setTemplate(advancedSearchTpl).on("render",function(){var route;$container=instance.getElement(),($addCriteria=$$1(".add-criteria-container",$container)).addClass("disabled"),$addCriteriaInput=$$1(
".add-criteria-container a",$container),$criteriaSelect=$$1(".add-criteria-container select",$container),($advancedCriteriaContainer=$$1(".advanced-criteria-container",$container)).on("scroll",_.throttle(animateScroll,100)),route=urlUtil.route("status","AdvancedSearch","tao"),request(route).then(function(response){response.enabled&&"results"!==context.shownStructure?(isAdvancedSearchStatusEnabled=!0,$addCriteria.removeClass("disabled"),$criteriaSelect.select2({containerCssClass:"criteria-select2",dropdownCssClass:"criteria-dropdown-select2",sortResults:function(results){return _.sortBy(results,["text"])}}),$addCriteriaInput.on("click",function(){
isCriteriaListUpdated&&($criteriaSelect.select2("open"),$$1(".criteria-dropdown-select2").hasClass("select2-drop-above")&&$$1(".criteria-dropdown-select2").css("top",$$1(".criteria-dropdown-select2").css("top").split("px")[0]-10+"px"))}),$criteriaSelect.on("change",function(){addNewCriterion($criteriaSelect.children("option:selected").val()),$criteriaSelect.children("option:selected").remove(),$criteriaSelect.select2("val","")})):isAdvancedSearchStatusEnabled=!1}).catch(function(e){return instance.trigger("error",e)}).then(function(){!function(){instance.config.advancedCriteria&&_.forEach(instance.config.advancedCriteria,function(criterion){
!0===criterion.rendered&&void 0===criterion.value&&(criterion.rendered=!1)});criteriaState=instance.config.advancedCriteria||{}}(),instance.trigger("ready")}).catch(function(e){return instance.trigger("error",e)})});function animateScroll(){var scrollPercentage=$advancedCriteriaContainer.get(0).scrollTop/($advancedCriteriaContainer.get(0).scrollHeight-$advancedCriteriaContainer.get(0).clientHeight);.1<scrollPercentage?$advancedCriteriaContainer.addClass("scroll-separator-top"):$advancedCriteriaContainer.removeClass("scroll-separator-top"),scrollPercentage<.9?$advancedCriteriaContainer.addClass("scroll-separator-bottom"
):$advancedCriteriaContainer.removeClass("scroll-separator-bottom")}function addNewCriterion($criterionContainer){$$1(".invalid-criteria-warning-container").remove();var criterion=criteriaState[$criterionContainer],$criterionContainer=function(criterion){var $criterionContainer=null;$criterionContainer=criterion.type===criteriaTypes.text?textCriterionTpl:criterion.type===criteriaTypes.list&&criterion.uri?listSelectCriterionTpl:listCheckboxCriterionTpl;$advancedCriteriaContainer.append($criterionContainer({criterion:criterion}));var $criterionContainer=$$1(".".concat(criterion.id,"-filter"),$container),valueMapping=criteriaMapping[criterion.type]
;criterion.type===criteriaTypes.list&&criterion.uri&&$$1("input[name=".concat(criterion.id,"-select]"),$criterionContainer).select2({multiple:!0,ajax:{url:criterion.uri,dataType:"json",data:function(term){return{subject:term}},results:function(response){return{results:response.data.map(function(option){return{id:"uri"===valueMapping?option.uri:option.label,text:option.label}})}}},initSelection:function(element,callback){var data=[];$$1(element.val().split(",")).each(function(){data.push({id:this,text:this})}),callback(data)}});return $criterionContainer}(criterion);$$1(".icon-result-nok",$criterionContainer).on("click",{criterion:criterion},removeCriterion),
function(criterion,$criterionContainer){(function(criterion){return"uri"===criteriaMapping[criterion.type]&&criterion.value?$$1.ajax({type:"GET",url:criterion.uri,dataType:"json"}).then(function(_ref){var data=_ref.data;return Array.isArray(criterion.value)?criterion.value.map(function(v){return{id:v,text:(data.find(function(d){return d.uri===v})||{}).label}}):{text:(data.find(function(d){return d.uri===criterion.value})||{}).label,id:criterion.value}}):Promise.resolve({id:criterion.value,text:criterion.value})})(criterion).then(function(initialCriterion){criterion.type===criteriaTypes.text?($$1("input",$criterionContainer).val(criterion.value),$$1("input",
$criterionContainer).on("change",function(){criterion.value=$$1(this).val()||void 0})):criterion.type===criteriaTypes.list&&criterion.uri?(criterion.value&&$$1("input[name=".concat(criterion.id,"-select]"),$criterionContainer).select2("data",initialCriterion),$$1("input[name=".concat(criterion.id,"-select]"),$criterionContainer).on("change",function(event){criterion.value=event.val})):(criterion.value&&criterion.value.forEach(function(selectedValue){$$1("input[value=".concat(selectedValue,"]"),$criterionContainer).prop("checked",!0)}),$$1('input[type="checkbox"]',$criterionContainer).on("change",function(){criterion.value=$$1(this).closest(
".filter-container").find("input[type=checkbox]:checked").get().map(function(element){return element.value})}))})}(criterion,$criterionContainer),$advancedCriteriaContainer.get(0).scrollHeight>$advancedCriteriaContainer.outerHeight()&&$advancedCriteriaContainer.addClass("scrollable"),criterion.rendered=!0}function removeCriterion(newOption){var criterion=newOption.data.criterion,newOption=new Option(criterion.label,criterion.label,!1,!1);$$1(this).parent().remove(),$criteriaSelect.append(newOption),criteriaState[criterion.label].rendered=!1,criteriaState[criterion.label].value=void 0,$advancedCriteriaContainer.get(0
).scrollHeight<=$advancedCriteriaContainer.outerHeight()&&$advancedCriteriaContainer.removeClass("scrollable")}return instance.init(config)}}),define("ui/searchModal",["jquery","lodash","i18n","context","handlebars","lib/dompurify/purify","css!ui/searchModal/css/searchModal.css","ui/component","ui/modal","ui/datatable","core/store","ui/resource/selector","ui/searchModal/advancedSearch","core/dataProvider/request","util/url","select2","util/shortcut/registry"],function($$1,_,__,context,Handlebars,DOMPurify,searchModal_css,component,modal,datatable,store,resourceSelectorFactory,advancedSearchFactory,request,urlUtil,select2,shortcutRegistry){"use strict"
;function ownKeys(object,enumerableOnly){var symbols,keys=Object.keys(object);return Object.getOwnPropertySymbols&&(symbols=Object.getOwnPropertySymbols(object),enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)),keys}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){!function(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value}(target,key,source[key])}
):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}
),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,
increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,context=context&&Object.prototype.hasOwnProperty.call(context,"default")?context.default:context,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,store=store&&Object.prototype.hasOwnProperty.call(store,"default")?store.default:store,
resourceSelectorFactory=resourceSelectorFactory&&Object.prototype.hasOwnProperty.call(resourceSelectorFactory,"default")?resourceSelectorFactory.default:resourceSelectorFactory,advancedSearchFactory=advancedSearchFactory&&Object.prototype.hasOwnProperty.call(advancedSearchFactory,"default")?advancedSearchFactory.default:advancedSearchFactory,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,urlUtil=urlUtil&&Object.prototype.hasOwnProperty.call(urlUtil,"default")?urlUtil.default:urlUtil,shortcutRegistry=shortcutRegistry&&Object.prototype.hasOwnProperty.call(shortcutRegistry,"default"
)?shortcutRegistry.default:shortcutRegistry,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(options,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,options.helpers),data=data||{};var helper,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing
;return buffer+='<div class="search-modal section-container">\n <div class="clear content-wrapper content-panel">\n <div class="ui-container">\n <div class="filters-container">\n <div class="basic-search-container">\n <div class="filter-container">\n <span class="icon-find"></span>\n <input class="generic-search-input" type="text" placeholder="',buffer+=escapeExpression((helper=helpers.placeholder)||"function"==typeof(helper=depth0&&depth0.placeholder)?helper.call(depth0,{hash:{},data:data}):helper
)+'">\n </div>\n <div class="filter-container class-filter-container">\n <span class="icon-folder"></span>\n <span class="icon-down"></span>\n <textarea class="class-filter" cols="40" rows="1" readonly></textarea>\n <div class="class-tree"></div>\n </div>\n </div>\n </div>\n <div class="buttons-container">\n <button class="btn-clear btn-transparent small">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,
"Clear",options):helperMissing.call(depth0,"__","Clear",options)))+'</button>\n <button class="btn-search btn-info small">'+escapeExpression((options={hash:{},data:data},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Search",options):helperMissing.call(depth0,"__","Search",options)))+'</button>\n </div>\n </div>\n <div class="content-container" style="padding:40px 20px">\n </div>\n </div>\n</div>'});function layoutTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(helper,
depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+="<div class='no-datatable-container'>\n <span class=\"no-datatable-icon ",buffer+=escapeExpression((helper=helpers.icon)||"function"==typeof(helper=depth0&&depth0.icon)?helper.call(depth0,{hash:{},data:data}):helper)+'"></span>\n <p class="no-datatable-message">',buffer+=escapeExpression((helper=helpers.message)||"function"==typeof(helper=depth0&&depth0.message)?helper.call(depth0,{hash:{},data:data}):helper)+"</p>\n</div>"});return function(config){
var $container=null,$searchInput=null,$searchButton=null,$clearButton=null,running=!1,searchStore=null,resourceSelector=null,$classFilterContainer=null,$classFilterInput=null,$classTreeContainer=null,advancedSearch=null,isResourceSelector=!config.hideResourceSelector,rootClassUri=config.rootClassUri,instance=component({},{renderTo:"body",criterias:{},searchOnInit:!0,maxListSize:5}).setTemplate(layoutTpl).on("render",function(){var promises=[];($container=instance.getElement()).addClass("modal").on("closed.modal",function(){return instance.destroy()}).modal({disableEscape:!1,width:$$1(window).width(),modalCloseClass:"modal-close-left"}).focus(),
$searchButton=$$1(".btn-search",$container),$clearButton=$$1(".btn-clear",$container),$searchInput=$$1(".generic-search-input",$container),$classFilterInput=$$1(".class-filter",$container),$classTreeContainer=$$1(".class-tree",$container),$classFilterContainer=$$1(".class-filter-container",$container),$searchButton.on("click",search),$clearButton.on("click",clear),shortcutRegistry($searchInput).clear().add("enter",search),$searchInput.val(instance.config.criterias&&instance.config.criterias.search?instance.config.criterias.search:""),advancedSearch=advancedSearchFactory({renderTo:$$1(".filters-container",$container),
advancedCriteria:instance.config.criterias.advancedCriteria}),promises.push(new Promise(function(resolve){if(!isResourceSelector)return $classFilterContainer.hide(),resolve();var initialClassUri=instance.config.criterias&&instance.config.criterias.class?instance.config.criterias.class:rootClassUri;(resourceSelector=resourceSelectorFactory($$1(".class-tree",$container),{selectionMode:"single",selectClass:!0,classUri:rootClassUri,showContext:!1,showSelection:!1})).on("query",function(route){var classOnlyParams=_objectSpread2(_objectSpread2({},route),{},{classOnly:!0}),route=urlUtil.route("getAll","RestResource","tao");request(route,classOnlyParams).then(
function(response){var classTree;response.permissions&&response.permissions.data&&response.permissions.supportedRights&&0<response.permissions.supportedRights.length&&function disableBlockedClasses(resources){_.forEach(resources,function(resource,index,array){classTree.permissions.data[resource.uri]&&classTree.permissions.data[resource.uri].find(function(permission){return"READ"===permission})?resource.children&&disableBlockedClasses(resource.children):array[index].accessMode="denied"})}((classTree=response).resources),resourceSelector.update(response.resources,classOnlyParams)}).catch(function(e){return instance.trigger("error",e)})}),resourceSelector.on(
"update",function(){resourceSelector.off("update"),resourceSelector.select(initialClassUri),resolve()}),resourceSelector.on("change",function(uri){var label,route;_.isEmpty(uri)||(route=_.map(uri,"classUri")[0],label=_.map(uri,"label")[0],uri=_.map(uri,"uri")[0],route=urlUtil.route("getWithMapping","ClassMetadata","tao",{classUri:route,maxListSize:instance.config.maxListSize}),$classFilterInput.html(label),$classFilterInput.data("uri",uri),$classTreeContainer.hide(),advancedSearch.updateCriteria(route).then(function(){return instance.trigger("criteriaListUpdated")}).catch(function(e){return instance.trigger("error",e)}))}),function(){$container.on(
"mousedown",function(){$classTreeContainer.hide()});var shortcuts=shortcutRegistry($classFilterInput);shortcuts.add("enter",function(){return $classTreeContainer.show()}),shortcuts.add("space",function(){return $classTreeContainer.show()}),shortcuts.add("backspace",function(){return $classTreeContainer.hide()}),shortcuts.add("escape",function(){return $classTreeContainer.hide()},{propagate:!1}),$classFilterContainer.on("click",function(e){$classTreeContainer.toggle()}),$classFilterContainer.on("mousedown",function(e){e.stopPropagation()}),$classTreeContainer.on("mousedown",function(e){e.stopPropagation()})}()})),promises.push(store("search").then(function(
store){searchStore=store}).catch(function(e){return instance.trigger("error",e)})),Promise.all(promises).then(function(){instance.trigger("ready"),$searchButton.trigger("click")}).catch(function(e){return instance.trigger("error",e)})}).on("destroy",function(){$container.removeClass("modal").modal("destroy"),$$1(".modal-bg").remove()});function search(){var query=function(){var query=$searchInput.val().trim();return query+=advancedSearch.getAdvancedCriteriaQuery(""!==query)}(),classFilterUri=isResourceSelector?$classFilterInput.data("uri").trim():rootClassUri;_.throttle(function(query){!1===running&&(running=!0,$$1.ajax({url:instance.config.url,type:"POST",
data:{query:query,parentNode:classFilterUri,structure:context.shownStructure},dataType:"json"}).done(function(data){(function(data){return new Promise(function(resolve,reject){!1===instance.config.searchOnInit?searchStore.getItem("results").then(function(storedSearchResults){instance.config.searchOnInit=!0,data.storedSearchResults=storedSearchResults,resolve()}).catch(function(e){instance.trigger("error",e),reject(new Error("Error appending default dataset from searchStore to datatable"))}):resolve()})})(data.data).then(function(){return function(data){var $tableContainer=$$1('<div class="flex-container-full"></div>'),section=$$1(".content-container",
$container);section.empty(),section.append($tableContainer),$tableContainer.on("load.datatable",searchResultsLoaded),$tableContainer.datatable({url:data.url,model:_.values(data.model),labels:{actions:""},actions:[{id:"go-to-item",label:__("View"),action:function(uri,data){instance.trigger("refresh",uri,data),instance.destroy()}}],params:{params:data.params,filters:data.filters,rows:20}},data.storedSearchResults)}(data.data)}).catch(function(e){return instance.trigger("error",e)})}).always(function(){return running=!1}))},100)(query)}function searchResultsLoaded(e,dataset){0===dataset.records&&replaceSearchResultsDatatableWithMessage("no-matches"),
instance.trigger("datatable-loaded"),updateSearchStore({action:"update",dataset:dataset,context:context.shownStructure,criterias:{search:$searchInput.val(),class:isResourceSelector?_.map(resourceSelector.getSelection(),"uri")[0]:rootClassUri,advancedCriteria:advancedSearch.getState()}})}function updateSearchStore(data){var promises=[];"clear"===data.action?promises.push(searchStore.clear()):"update"===data.action&&(promises.push(searchStore.setItem("criterias",data.criterias)),promises.push(searchStore.setItem("context",data.context)),promises.push(0===data.dataset.records?searchStore.removeItem("results"):searchStore.setItem("results",data.dataset))),
Promise.all(promises).then(function(){return instance.trigger("store-updated")}).catch(function(e){return instance.trigger("error",e)})}function clear(){$searchInput.val(""),advancedSearch.clear(),isResourceSelector&&resourceSelector.select(rootClassUri),replaceSearchResultsDatatableWithMessage("no-query"),updateSearchStore({action:"clear"})}function replaceSearchResultsDatatableWithMessage(reason){var section=$$1(".content-container",$container);section.empty();var message="",icon="";"no-query"===reason?(message=__("Please define your search in the search panel."),icon="icon-find"):"no-matches"===reason&&(message=__(
"No item found. Please try other search criteria."),icon="icon-info");var infoMessage,infoMessage=infoMessage=Template$1({message:message,icon:icon},infoMessage);section.append(infoMessage)}return instance.init(config)}}),define("css!ui/switch/css/switch",[],function(){}),define("ui/switch/switch",["jquery","lodash","i18n","ui/component","lib/uuid","handlebars","lib/dompurify/purify","css!ui/switch/css/switch.css"],function($$1,_,__,component,uuid,Handlebars,DOMPurify,switch_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,uuid=uuid&&Object.prototype.hasOwnProperty.call(uuid,"default")?uuid.default:uuid,
Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var stack1,buffer="",escapeExpression=this.escapeExpression;function program5(depth0,data){return"active"}return buffer+='<div class="switch ',!(stack1=helpers.if.call(depth0,depth0&&depth0.monoStyle,{
hash:{},inverse:this.noop,fn:this.program(1,function(depth0,data){return"monostyle"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='" title="',buffer+=escapeExpression(stack1=(helper=helpers.title)||"function"==typeof(helper=depth0&&depth0.title)?helper.call(depth0,{hash:{},data:data}):helper)+'">\n <input type="checkbox" name="',buffer+=escapeExpression(stack1=(helper=helpers.name)||"function"==typeof(helper=depth0&&depth0.name)?helper.call(depth0,{hash:{},data:data}):helper)+'" ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.on)||!1===stack1?stack1:stack1.active,{hash:{},inverse:this.noop,fn:this.program(3,function(depth0,data
){return"checked"},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='>\n <label>\n <span class="off ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.off)||!1===stack1?stack1:stack1.active,{hash:{},inverse:this.noop,fn:this.program(5,program5,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.off)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+'</span>\n <span class="on ',!(stack1=helpers.if.call(depth0,null==(stack1=depth0&&depth0.on)||!1===stack1?stack1:stack1.active,{hash:{},inverse:this.noop,fn:this.program(5,program5,
data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='">'+escapeExpression("function"==typeof(stack1=null==(stack1=depth0&&depth0.on)||!1===stack1?stack1:stack1.label)?stack1.apply(depth0):stack1)+"</span>\n </label>\n</div>\n"});function switchTpl(data,html,asString){html=Template(data,html);return html}var states_on="on",states_off="off",defaultConfig={on:{label:__("On")},off:{label:__("Off"),active:!0},title:""};return function($container,config){var onElt,offElt,switchComponent=component({getName:function(){return this.config.name},isOn:function(){return this.is(states_on)},isOff:function(){return!this.is(states_on)},setOn:function(){
return this.isOn()||this.setState(states_on,!0),this.is("rendered")&&(offElt.removeClass("active"),onElt.addClass("active"),this.trigger("change",states_on).trigger(states_on)),this},setOff:function(){return this.isOff()||this.setState(states_on,!1),this.is("rendered")&&(onElt.removeClass("active"),offElt.addClass("active"),this.trigger("change",states_off).trigger(states_off)),this},toggle:function(){return this.isOn()?this.setOff():this.setOn()},getValue:function(){return this.is(states_on)?states_on:states_off}},defaultConfig).setTemplate(switchTpl).on("init",function(){this.config.name||(this.config.name="switch-"+uuid()),this.config.on=_.defaults(
this.config.on,defaultConfig.on),this.config.off=_.defaults(this.config.off,defaultConfig.off),!0===this.config.on.active?(this.config.off.active=!1,this.setOn()):this.setOff(),this.render($container)}).on("render",function(){var self=this,$component=this.getElement();onElt=$$1("."+states_on,$component),offElt=$$1("."+states_off,$component),$$1(":checkbox",$component).on("change",function(e){e.preventDefault(),self.toggle()})});return _.defer(function(){switchComponent.init(config)}),switchComponent}}),define("ui/tableModel",["lodash","jquery"],function(_,$){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,function($table){var cellsByRow;function update(){var rowsInOrder=[].concat($table.find("thead tr").toArray()).concat($table.find("tbody tr").toArray()).concat($table.find("tfoot tr").toArray());cellsByRow=[],rowsInOrder.forEach(function($rowCells){$rowCells=$($rowCells).find("th,td");cellsByRow.push($rowCells)})}if(!$table||!$table.is("table"))throw new TypeError("$table should contain a reference to a table element");return update(),{getRowCount:function(){return cellsByRow.length},getRowCells:function(index){return index<0&&(index+=cellsByRow.length),cellsByRow[index]||$()},
getColCount:function(){return cellsByRow[0].length},getColCells:function(index){var columnCells=[];return _.isFinite(index)&&cellsByRow.forEach(function(cell){cell=cell.get(index);cell&&columnCells.push(cell)}),columnCells.length?$(columnCells):$()},update:update}}}),define("css!ui/tabs/css/tabs",[],function(){}),define("ui/tabs",["jquery","lodash","ui/hider","ui/component","handlebars","i18n","lib/dompurify/purify","css!ui/tabs/css/tabs.css"],function($$1,_,hider,componentFactory,Handlebars,__,DOMPurify,tabs_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj
}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if(
"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){
var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),
stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,hider=hider&&Object.prototype.hasOwnProperty.call(
hider,"default")?hider.default:hider,componentFactory=componentFactory&&Object.prototype.hasOwnProperty.call(componentFactory,"default")?componentFactory.default:componentFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helpers,partials,stack1){this.compilerInfo=[4,">= 1.0.0"],
helpers=this.merge(helpers,buffer.helpers),stack1=stack1||{};var buffer="",functionType="function",escapeExpression=this.escapeExpression,self=this;function program2(depth0,data){return"disabled"}function program4(depth0,data){var stack1,buffer="";return buffer+='<span class="icon icon-',stack1=(stack1=helpers.icon)||typeof(stack1=depth0&&depth0.icon)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+'"></span>'}function program6(depth0,data){var stack1,buffer="";return buffer+='<span class="label">',stack1=(stack1=helpers.label)||typeof(stack1=depth0&&depth0.label)===functionType?stack1.call(depth0,{hash:{},
data:data}):stack1,buffer+=escapeExpression(stack1)+"</span>"}return buffer+='<ul class="tab-group">\n ',!(stack1=helpers.each.call(depth0,depth0&&depth0.tabs,{hash:{},inverse:self.noop,fn:self.program(1,function(depth0,data){var stack1,helper,buffer="";return buffer+='\n <li class="tab ',stack1=(helper=helpers.cls)||typeof(helper=depth0&&depth0.cls)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+'" data-tab-name="',stack1=(helper=helpers.name)||typeof(helper=depth0&&depth0.name)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1
)+'">\n <button class="action" tabindex="0" ',!(stack1=helpers.if.call(depth0,depth0&&depth0.disabled,{hash:{},inverse:self.noop,fn:self.program(2,program2,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+=">\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.icon,{hash:{},inverse:self.noop,fn:self.program(4,program4,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n ",!(stack1=helpers.if.call(depth0,depth0&&depth0.label,{hash:{},inverse:self.noop,fn:self.program(6,program6,data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+="\n </button>\n </li>\n "},stack1),data:stack1}))&&0!==stack1||(
buffer+=stack1),buffer+="\n</ul>\n"});function tabsTpl(data,html,asString){html=Template(data,html);return html}return function(container,config){var tabs=[],activeTabName=null,disableElement=function($el){return $el.prop("disabled",!0)},findTabByName=function(name){return tabs.find(function(tab){return tab.name===name})},findTabByNameOrThrow=function(name){var tab=findTabByName(name);if(!tab)throw new TypeError("No tab exists with the name: ".concat(name));return tab},initTabs=function(component){var activeTab;activeTabName&&(activeTab=activeTabName,activeTabName=null,component.setActiveTab(activeTab)),component.getConfig(
).hideLoneTab&&1===tabs.length&&hider.hide(component.getElement().find(".tab"))},tabsBarComponent=componentFactory({setTabs:function(newTabs){if(!Array.isArray(newTabs))throw new TypeError("The provided tabs are not a valid array");var template;return tabs=_toConsumableArray(newTabs),activeTabName&&findTabByName(activeTabName)||(activeTabName=this.getDefaultActiveTab()),this.is("rendered")&&(template=this.getTemplate(),this.getElement().html($$1(template({tabs:tabs})).html()),initTabs(this)),this.trigger("tabsupdate",newTabs),this},getTabs:function(){return _toConsumableArray(tabs)},getActiveTab:function(){return activeTabName},getActiveTabIndex:function(){
return tabs.findIndex(function(tab){return tab.name===activeTabName})},getDefaultActiveTab:function(){var activeTabIndex=this.getConfig(),activeTab=activeTabIndex.activeTab,activeTabIndex=activeTabIndex.activeTabIndex;return activeTab&&findTabByName(activeTab)?activeTab:"number"==typeof activeTabIndex&&tabs[activeTabIndex]?tabs[activeTabIndex].name:tabs.length&&tabs[0].name||null},setActiveTab:function(tab){tab=findTabByNameOrThrow(tab);return tab.disabled||this.trigger("tabactivate",tab.name),this},setActiveTabIndex:function(tab){if("number"!=typeof tab||tab<0||tab>=tabs.length)throw new TypeError("No tab exists at index: ".concat(tab));tab=tabs[tab]
;return tab.disabled||this.trigger("tabactivate",tab.name),this},enableTab:function(name){return findTabByNameOrThrow(name).disabled=!1,this.is("rendered")&&this.getElement().find("[".concat("data-tab-name",'="').concat(name,'"] ').concat(".action")).prop("disabled",!1),this.trigger("tabenable",name),this},disableTab:function(name){findTabByNameOrThrow(name).disabled=!0,this.is("rendered")&&disableElement(this.getElement().find("[".concat("data-tab-name",'="').concat(name,'"] ').concat(".action"))),this.trigger("tabdisable",name)},showTabContent:function(name){findTabByNameOrThrow(name);var showHideTarget=this.getConfig().showHideTarget;showHideTarget&&(
!0===showHideTarget?this.getContainer():$$1(showHideTarget)).find("[".concat("data-tab-content","]")).addClass("hidden").filter("[".concat("data-tab-content",'="').concat(name,'"]')).removeClass("hidden"),this.trigger("tabshowcontent",name)}}).setTemplate(tabsTpl).on("init",function(){var _this=this;try{this.config&&this.config.tabs&&this.setTabs(this.config.tabs),_.defer(function(){return _this.render(container)})}catch(err){this.trigger("error",err)}}).on("render",function(){var _this2=this;try{initTabs(this)}catch(err){this.trigger("error",err)}this.getElement().on("click",".tab",function(e){try{_this2.setActiveTab(e.currentTarget.getAttribute(
"data-tab-name"))}catch(err){_this2.trigger("error",err)}}),this.trigger("ready")}).on("disable",function(){this.is("rendered")&&disableElement(this.getElement().find("[".concat("data-tab-name","] ").concat(".action")))}).on("enable",function(){this.is("rendered")&&this.getElement().find("[".concat("data-tab-name","] ").concat(".action")).each(function(index,el){var tab=findTabByName(el.parentNode.getAttribute("data-tab-name"));tab&&tab.disabled||(el.disabled=!1)})}).on("tabactivate",function(name){var tab=findTabByName(name);tab&&!tab.disabled&&name!==activeTabName&&(activeTabName=name,this.is("rendered")&&this.getElement().find(".tab").removeClass("active"
).filter("[".concat("data-tab-name",'="').concat(name,'"]')).addClass("active"),this.trigger("tabchange",name))}).on("tabchange",function(name){this.getConfig().showHideTarget&&this.showTabContent(name),this.trigger("tabchange-".concat(name))});return _.defer(function(){return tabsBarComponent.init(config)}),tabsBarComponent}}),define("css!ui/taskQueue/css/taskQueue",[],function(){}),define("ui/taskQueue",["lodash","core/eventifier","core/dataProvider/request","core/polling","css!ui/taskQueue/css/taskQueue.css"],function(_,eventifier,request,polling,taskQueue_css){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,polling=polling&&Object.prototype.hasOwnProperty.call(polling,"default")?polling.default:polling;var _defaults={url:{}};return function(config){config=_.defaults(config||{},_defaults);var poll,pollingIntervals=[{iteration:10,interval:1e3},{iteration:10,interval:1e4},{iteration:10,interval:3e4},{iteration:0,interval:6e4}],api=eventifier({getStatus:function(status){if(!config.url||!config.url.status)throw new TypeError(
"config.url.status is not configured while getStatus() is being called");return(status=request(config.url.status,{taskId:status}).then(function(taskData){return taskData&&taskData.status?Promise.resolve(taskData):Promise.reject(new Error("failed to get task data"))})).catch(function(err){api.trigger("error",err)}),status},pollStatus:function(taskId){var loop=0;if(!config.url||!config.url.status)throw new TypeError("config.url.status is not configured while getStatus() is being called");var _updateInterval=function(pollingInstance){var pollingInterval;loop?loop--:(pollingInterval=pollingIntervals.shift()
)&&pollingInterval.iteration&&pollingInterval.interval&&(loop=pollingInterval.iteration,pollingInstance.setInterval(pollingInterval.interval))};return api.pollStop(),poll=polling({action:function(){var done=this.async();api.getStatus(taskId).then(function(taskData){"finished"===taskData.status?(api.trigger("finished",taskData),poll.stop()):(api.trigger("running",taskData),_updateInterval(poll),done.resolve())}).catch(function(){done.reject()})}}),_updateInterval(poll),poll.start(),api.trigger("pollStart"),api},pollStop:function(){return poll&&(poll.stop(),api.trigger("pollStop")),api},remove:function(status){if(!config.url||!config.url.remove
)throw new TypeError("config.url.remove is not configured while remove is being called");return(status=request(config.url.remove,{taskId:status}).then(function(taskData){return taskData&&"archived"===taskData.status?Promise.resolve(taskData):Promise.reject(new Error("removed task status should be archived"))})).catch(function(res){api.trigger("error",res)}),status}});return api}}),define("ui/taskQueue/status",["lodash","i18n","ui/taskQueue","ui/component","ui/report","handlebars","lib/dompurify/purify"],function(_,__,taskQueue,component,report,Handlebars,DOMPurify){"use strict";function _typeof(obj){return(
_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(
arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){
return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,taskQueue=taskQueue&&Object.prototype.hasOwnProperty.call(taskQueue,"default")?taskQueue.default:taskQueue,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,report=report&&Object.prototype.hasOwnProperty.call(
report,"default")?report.default:report,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="task-queue-status"></div>'});function statusTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),
Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],data=data||{};var stack1,buffer="",helperMissing=(helpers=this.merge(helpers,helper.helpers)).helperMissing,escapeExpression=this.escapeExpression,functionType="function";return buffer+='<div class="message">\n ',!(stack1=helpers.if.call(depth0,depth0&&depth0.name,{hash:{},inverse:this.program(3,function(depth0,helper){var options,buffer="";return buffer+="\n "+escapeExpression((options={hash:{},data:helper},(helper=helpers.__||depth0&&depth0.__)?helper.call(depth0,"Status",options):helperMissing.call(depth0,
"__","Status",options)))+"\n "},data),fn:this.program(1,function(depth0,data){var stack1,options,buffer="";return buffer+="\n "+escapeExpression((options={hash:{},data:data},(stack1=helpers.__||depth0&&depth0.__)?stack1.call(depth0,"Status of",options):helperMissing.call(depth0,"__","Status of",options)))+' <span class="task-name">',stack1=(stack1=helpers.name)||typeof(stack1=depth0&&depth0.name)===functionType?stack1.call(depth0,{hash:{},data:data}):stack1,buffer+=escapeExpression(stack1)+"</span>\n "},data),data:data}))&&0!==stack1||(buffer+=stack1),buffer+='\n : <span class="task-status">',stack1=(helper=helpers.status)||typeof(
helper=depth0&&depth0.status)===functionType?helper.call(depth0,{hash:{},data:data}):helper,buffer+=escapeExpression(stack1)+"</span>\n</div>"});function messageTpl(data,html){html=Template$1(data,html);return html}var _status={loading:__("Loading status"),created:__("Not started"),running:__("In progress"),finished:__("Completed")},_defaults={serviceUrl:"",taskId:"",taskStatus:_status.loading,showDetailsButton:!0,actions:[]},statusComponent={start:function(){return this.taskQueueApi&&this.taskQueueApi.pollStatus(this.config.taskId),this},stop:function(){return this.taskQueueApi&&this.taskQueueApi.pollStop(),this}};return function(config){if(
config=_.defaults(config||{},_defaults),_.isEmpty(config.serviceUrl))throw new TypeError("The task queue status needs to be configured with a service url");var taskQueueStatus,createReport=function(reportData,innerTaskReport,taskReport){reportData={type:reportData,message:innerTaskReport};return _.isPlainObject(taskReport)&&taskReport.type&&_.isArray(taskReport.children)&&taskReport.children.length&&(innerTaskReport=taskReport.children[0],reportData.type=innerTaskReport.type,reportData.children=taskReport.children),report({replace:!0,noBorder:!0,showDetailsButton:config.showDetailsButton,actions:config.actions},reportData).on("action",function(actionId){
taskQueueStatus.trigger("action-"+actionId),taskQueueStatus.trigger("action",actionId)}).on("showDetails",function(){taskQueueStatus.trigger("showDetails")}).on("hideDetails",function(){taskQueueStatus.trigger("hideDetails")}).render(taskQueueStatus.getElement()).showDetails()};return taskQueueStatus=component(statusComponent).setTemplate(statusTpl).on("destroy",function(){this.taskQueueApi&&this.taskQueueApi.pollStop()}).on("render",function(){var self=this;config.data&&"finished"===config.data.status?self.report=createReport(config.data.report.type||"info",messageTpl({name:config.data.label,status:_status.finished}),config.data.report||{}):(
self.report=createReport("info",__("Loading task status ...")),this.taskQueueApi=taskQueue({url:{status:config.serviceUrl}}).on("running",function(taskData){"running"!==self.status&&(self.report=createReport("info",messageTpl({name:taskData.label,status:_status.running})),self.status="running",self.trigger("statechange",self.status)),self.trigger("running",taskData)}).on("finished",function(taskData){"finished"!==self.status&&(self.report=createReport(taskData.report.type||"info",messageTpl({name:taskData.label,status:_status.finished}),taskData.report||{}),self.status="finished",self.trigger("finished",taskData),self.trigger("statechange",self.status))}
).on("error",function(err){self.trigger("error",err)}))}).init(config)}}),define("ui/taskQueue/table",["jquery","lodash","i18n","moment","ui/taskQueue","ui/component","ui/taskQueue/status","handlebars","lib/dompurify/purify","ui/datatable","ui/modal","jquery.fileDownload"],function($$1,_,__,moment,taskQueueApi,component,taskQueueStatusFactory,Handlebars,DOMPurify,datatable,modal,jquery_fileDownload){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){
return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment=""
;null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this
):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment,taskQueueApi=taskQueueApi&&Object.prototype.hasOwnProperty.call(taskQueueApi,"default")?taskQueueApi.default:taskQueueApi,
component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,taskQueueStatusFactory=taskQueueStatusFactory&&Object.prototype.hasOwnProperty.call(taskQueueStatusFactory,"default")?taskQueueStatusFactory.default:taskQueueStatusFactory,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(Handlebars,depth0,helpers,partials,data){
return this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),'<div class="report-container"></div>'});var _defaults={context:"",urls:{listing:"",remove:"",download:""},status:{loading:__("Loading status"),created:__("Not started"),running:__("In progress"),finished:__("Completed"),finishedSuccess:__("Completed"),finishedError:__("Completed - Error")},statusFilter:["loading","created","running","finished","finishedSuccess","finishedError"]},isReport=function(report){return _.isPlainObject(report)&&report.type&&report.message};return function(config){var tasks,errorRows;if(config=_.defaults(config,_defaults),_.isEmpty(config.context)
)throw new TypeError("The task queue provider needs to be initalized with a context");return component({showReport:function(taskId){var status,data,$report=this.$component.find(".report-container"),$dataTable=this.$component.find(".datatable-wrapper");$report.length||($report=$$1(function(data,html){return html=Template(data,html)}()),this.$component.append($report)),$dataTable.hide();var task=_.find(tasks,{id:taskId});return task&&"finished"===task.status&&task.report&&(data=task),status=taskQueueStatusFactory({replace:!0,taskId:taskId,serviceUrl:this.config.statusUrl,showDetailsButton:!1,actions:[{id:"back",icon:"backward",title:__("Back to listing"),
label:__("Back")}],data:data}).on("action-back",function(){status.destroy(),$dataTable.show()}).render($report).start(),this},remove:function(taskId){var self=this;return this.taskQueueApi.remove(taskId).then(function(){self.$component.datatable("refresh"),self.trigger("removed",taskId)}).catch(function(err){self.trigger("error",err)}),this},download:function(taskId){var self=this;return $$1.fileDownload(this.config.downloadUrl,{data:{taskId:taskId},failCallback:function(){self.trigger("error",__("File download failed"))}}),this}},config).on("init",function(){this.taskQueueApi=taskQueueApi({url:{status:this.config.serviceUrl,remove:this.config.removeUrl}})}
).on("render",function(){var self=this,$component=this.getElement(),actions=[{id:"delete",icon:"bin",title:__("Remove"),disabled:function(){return this.status!==config.status.finished&&this.status!==config.status.finishedError&&this.status!==config.status.finishedSuccess},action:function(id){self.remove(id)}},{id:"report",icon:"templates",title:__("View report"),disabled:function(){return this.status===config.status.created},action:function(id){self.showReport(id)}}];void 0!==this.config.downloadUrl&&""!==this.config.downloadUrl&&actions.push({id:"download",icon:"download",title:__("Download"),disabled:function(){
return this.status!==config.status.finished&&this.status!==config.status.finishedSuccess},action:function(id){self.download(id)}}),$component.addClass("task-queue-table").on("beforeload.datatable",function(e,dataSet){dataSet&&dataSet.data&&(tasks=dataSet.data)}).on("query.datatable",function(){errorRows=[],self.trigger("loading")}).on("load.datatable",function(){_.isArray(errorRows)&&errorRows.length&&_.forEach(errorRows,function(id){$component.datatable("addRowClass",id,"error")}),self.trigger("loaded")}).datatable({url:this.config.dataUrl,rows:this.config.rows,sortorder:"desc",filtercolumns:{type:this.config.context,status:this.config.statusFilter},
status:{empty:__("No Task yet"),available:__("Task Listing"),loading:__("Loading")},tools:[{id:"refresh",icon:"reset",title:__("Refresh"),label:__("Refresh"),action:function(){self.$component.datatable("refresh"),self.trigger("refresh")}}],model:[{id:"label",label:__("Task Name")},{id:"creationDate",label:__("Created"),transform:function(date){return date=date,self.config,moment.unix(date).fromNow()}},{id:"status",label:__("Status"),transform:function(value,row){return"finished"===row.status?function(report){if(isReport(report)&&_.isArray(report.children)&&isReport(report.children[0]))return"error"===report.children[0].type}(row.report)?(errorRows.push(
row.id),config.status.finishedError):config.status.finishedSuccess:config.status[row.status]||""}},{id:"actions",label:__("Actions"),type:"actions",actions:actions}],selectable:!1})}).on("reload",function(){this.$component&&this.$component.datatable("refresh")})}}),define("ui/taskQueue/taskQueueModel",["jquery","lodash","i18n","core/eventifier","core/polling","core/dataProvider/request","ui/feedback","jquery.fileDownload"],function($,_,__,eventifier,polling,request,feedback,jquery_fileDownload){"use strict";function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if(
"undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,
len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier,polling=polling&&Object.prototype.hasOwnProperty.call(polling,"default")?polling.default:polling,request=request&&Object.prototype.hasOwnProperty.call(request,"default")?request.default:request,
feedback=feedback&&Object.prototype.hasOwnProperty.call(feedback,"default")?feedback.default:feedback;var _defaults={url:{get:"",archive:"",all:"",download:""},pollSingleIntervals:[{iteration:4,interval:1e3}],pollAllIntervals:[{iteration:10,interval:5e3},{iteration:0,interval:1e4}]};function hasSameState(task1,task2){return task1.status===task2.status||("created"===task1.status||"in_progress"===task1.status)&&("created"===task2.status||"in_progress"===task2.status)}return function(config){var model,_cache,singlePollings={};return config=_.defaults(config||{},_defaults),model=eventifier({setEndpoints:function(urls){return _.assign(config.url,urls||{}),this},
get:function(status){if(!config.url||!config.url.get)throw new TypeError("config.url.get is not configured while get() is being called");return(status=request(config.url.get,{taskId:status},"GET",{},!0).then(function(taskData){return void 0!==taskData.report&&void 0!==taskData.report.children&&(taskData.report.children=function translateReportMessages(taskData){return taskData.map(function(item){return item.interpolationMessage&&(item.message=__.apply(void 0,[item.interpolationMessage].concat(_toConsumableArray(item.interpolationData)))),0<item.children.length&&translateReportMessages(item.children),item})}(taskData.report.children)),
taskData&&taskData.status?(_cache?_cache[taskData.id]?hasSameState(_cache[taskData.id],taskData)||model.trigger("singletaskstatuschange",taskData):model.trigger("singletaskadded",taskData):_cache={},_cache[taskData.id]=taskData):Promise.reject(new Error("failed to get task data"))})).catch(function(err){model.trigger("error",err)}),status},getCached:function(taskId){return _cache&&_cache[taskId]?Promise.resolve(_cache[taskId]):this.get(taskId)},getAll:function(){var status;if(!config.url||!config.url.all)throw new TypeError("config.url.all is not configured while getAll() is being called");return(status=request(config.url.all,{limit:100},"GET",{},!0).then(
function(taskData){var newCache={};return taskData?(_cache?(_.forEach(taskData,function(task){var id=task.id;_cache[id]?hasSameState(_cache[id],task)||model.trigger("multitaskstatuschange",task):model.trigger("multitaskadded",task),newCache[id]=task}),_.forEach(_.difference(_.keys(_cache),_.keys(newCache)),function(id){model.trigger("taskremoved",_cache[id])})):_.forEach(taskData,function(task){newCache[task.id]=task}),_cache=newCache,taskData):Promise.reject(new Error("failed to get all task data"))})).catch(function(err){model.trigger("error",err)}),status},archive:function(status){if(!config.url||!config.url.archive)throw new TypeError(
"config.url.archive is not configured while archive() is being called");return(status=request(config.url.archive,{taskId:status},"GET",{},!0)).catch(function(res){model.trigger("error",res)}),status},pollAll:function(immediate){var self=this,loop=0,pollingIntervals=function(){if(config.pollAllIntervals&&_.isArray(config.pollAllIntervals))return _.cloneDeep(config.pollAllIntervals)}(),_updateInterval=function(pollingInstance){var pollingInterval;loop?loop--:(pollingInterval=pollingIntervals.shift())&&void 0!==pollingInterval.iteration&&pollingInterval.interval&&(loop=pollingInterval.iteration,pollingInstance.setInterval(pollingInterval.interval))};if(
!config.url||!config.url.all)throw new TypeError("config.url.all is not configured while pollAll() is being called");return this.globalPolling||(this.globalPolling=polling({action:function(){var statusArr,done=this.async();model.getAll().then(function(taskDataArray){return model.trigger("pollAll",taskDataArray),-1===(statusArr=_.map(taskDataArray,"status")).indexOf("in_progress")&&-1===statusArr.indexOf("created")?done.reject():(_updateInterval(self.globalPolling),void done.resolve())}).catch(function(){done.reject()})}}),_updateInterval(this.globalPolling)),this.globalPolling.start(),this.trigger("pollAllStart"),immediate&&this.globalPolling.next(),model},
pollAllStop:function(){return this.globalPolling&&(this.globalPolling.stop(),this.trigger("pollAllStop")),this},pollSingle:function(taskId){var self=this,loop=0,pollingIntervals=function(){if(config.pollSingleIntervals&&_.isArray(config.pollSingleIntervals))return _.cloneDeep(config.pollSingleIntervals)}(),_updateInterval=function(pollingInstance){var pollingInterval;return loop?(loop--,!0):!!((pollingInterval=pollingIntervals.shift())&&pollingInterval.iteration&&pollingInterval.interval)&&(loop=pollingInterval.iteration,pollingInstance.setInterval(pollingInterval.interval),!0)};if(!config.url||!config.url.get)throw new TypeError(
"config.url.get is not configured while pollSingle() is being called");return singlePollings[taskId]&&singlePollings[taskId].stop(),new Promise(function(resolve){var poll=polling({action:function(){var done=this.async();self.get(taskId).then(function(taskData){"completed"===taskData.status||"failed"===taskData.status?(poll.stop(),self.trigger("pollSingleFinished",taskId,taskData),resolve({finished:!0,task:taskData})):_updateInterval(poll)?(self.trigger("pollSingle",taskId,taskData),done.resolve()):(self.trigger("pollSingleFinished",taskId,taskData),resolve({finished:!1,task:taskData}))}).catch(function(){done.reject()})}});_updateInterval(poll),
singlePollings[taskId]=poll.start(),self.trigger("pollSingleStart",taskId)})},pollSingleStop:function(taskId){return singlePollings&&singlePollings[taskId]&&(singlePollings[taskId].stop(),this.trigger("pollSingleStop",taskId)),this},create:function(url,taskCreate){var self=this,taskCreate=request(url,taskCreate,"POST",{},!0).then(function(creationResult){return creationResult&&creationResult.task&&creationResult.task.id?(self.trigger("created",creationResult),self.pollSingle(creationResult.task.id).then(function(result){return creationResult.extra&&(result.extra=creationResult.extra),result.finished?self.trigger("fastFinished",result):self.trigger("enqueued"
,result),result})):Promise.reject(new Error("failed to get task data"))});return taskCreate.catch(function(err){model.trigger("error",err)}),taskCreate},download:function(taskId){if(!config.url||!config.url.download)throw new TypeError("config.url.download is not configured while download() is being called");return new Promise(function(resolve,reject){$.fileDownload(config.url.download,{httpMethod:"POST",data:{taskId:taskId},successCallback:function(result){resolve(result)},failCallback:function(err){reject(err)}})})},redirect:function(taskId){return this.getCached(taskId).then(function(taskData){var redirectUrl=(taskData||{}).redirectUrl;if(!redirectUrl
)throw new TypeError("config.redirectUrl is not configured while redirect() is being called");if(0!==redirectUrl.indexOf("http"))throw new TypeError("redirectUrl does not look like a proper url: "+redirectUrl);return request(taskData.redirectUrl)}).then(function(response){_.isEmpty(response)||(window.location.href=response)}).catch(function(err){throw err&&202===err.code&&err.response&&err.response.errorMessage&&feedback().error(err.response.errorMessage),err})}})}}),define("ui/taskQueue/taskQueue",["util/url","ui/taskQueue/taskQueueModel"],function(urlHelper,taskQueueModelFactory){"use strict"
;return urlHelper=urlHelper&&Object.prototype.hasOwnProperty.call(urlHelper,"default")?urlHelper.default:urlHelper,(taskQueueModelFactory=taskQueueModelFactory&&Object.prototype.hasOwnProperty.call(taskQueueModelFactory,"default")?taskQueueModelFactory.default:taskQueueModelFactory)({url:{get:urlHelper.route("get","TaskQueueWebApi","tao"),archive:urlHelper.route("archive","TaskQueueWebApi","tao"),all:urlHelper.route("getAll","TaskQueueWebApi","tao"),download:urlHelper.route("download","TaskQueueWebApi","tao")},pollSingleIntervals:[{iteration:3,interval:1e3}],pollAllIntervals:[{iteration:1,interval:8e3},{iteration:0,interval:5e3}]})}),define(
"css!ui/taskQueueButton/css/treeButton",[],function(){}),define("ui/taskQueueButton/treeButton",["lodash","i18n","ui/component","ui/taskQueueButton/taskable","handlebars","lib/dompurify/purify","css!ui/taskQueueButton/css/treeButton.css"],function(_,__,component,makeTaskable,Handlebars,DOMPurify,treeButton_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),
hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),
fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret="";startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}_=_&&Object.prototype.hasOwnProperty.call(_,
"default")?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,makeTaskable=makeTaskable&&Object.prototype.hasOwnProperty.call(makeTaskable,"default")?makeTaskable.default:makeTaskable,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(helper,
depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",escapeExpression=this.escapeExpression;return buffer+='<div class="tree-button-component">\n <a class="li-inner">\n <span class="spinner-icon icon-loop spinning"></span>\n <span class="glyph start-icon icon-',buffer+=escapeExpression((helper=helpers.icon)||"function"==typeof(helper=depth0&&depth0.icon)?helper.call(depth0,{hash:{},data:data}):helper)+'"></span>\n ',buffer+=escapeExpression((helper=helpers.label)||"function"==typeof(helper=depth0&&depth0.label)?helper.call(depth0,{hash:{},data:data}
):helper)+"\n </a>\n</div>"});function buttonTpl(data,html,asString){html=Template(data,html);return html}var _defaults={icon:"property-advanced",label:"OK"},buttonApi={start:function(){return this.createTask(),this.setState("started",!0),this.trigger("start"),this},stop:function(){return this.is("started")&&(this.setState("started",!1),this.trigger("stop")),this}};return function(initConfig){return initConfig=_.defaults(initConfig||{},_defaults),makeTaskable(component(buttonApi)).on("finished",function(){this.stop()}).on("enqueued",function(){this.stop()}).setTemplate(buttonTpl).init(initConfig)}}),define("ui/themeLoader",["jquery","lodash"],function($,_
){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var prefix="custom-theme-",$container=$("head").length?$("head"):$("body"),ns="themeloader";function triggerThemeChange(themeId){_.delay(function(){$(document).trigger("themechange.".concat(ns),[themeId]).trigger("themeapplied",[themeId])},200)}function getLink(id){return $('link[data-id="'.concat(id,'"][data-type^="').concat(prefix,'"]'),$container)}function isAttached(id){return 0<getLink(id).length}function enable($nodes){$nodes.prop("disabled",!1).removeProp("disabled").removeAttr("disabled")}
function disable($nodes){return $nodes.prop("disabled",!0).attr("disabled",!0)}return function(config){if(!_.isPlainObject(config))throw new TypeError("Theme loader configuration is required");if(!_.isString(config.base))throw new TypeError("Theme loader configuration is an object with a base property configuration");if(!_.isArray(config.available)||!config.available.length)throw new TypeError("No theme declared in the configuration");for(var i in config.available)if(!_.isPlainObject(config.available[i])||_.isEmpty(config.available[i].id)||_.isEmpty(config.available[i].path))throw new TypeError("There is a theme that does not contain an id or a path")
;var defaultTheme=config.default||_.first(_.pluck(config.available,"id")),activeTheme=defaultTheme,themes=[{id:"base",path:config.base,name:"TAO"}].concat(config.available),styles={};return _.forEach(themes,function(theme){isAttached(theme.id)?styles[theme.id]=getLink(theme.id):styles[theme.id]=function(theme){var type="base"===theme.id?"base":"theme",type="".concat(prefix).concat(type);return $("<link>").attr({rel:"stylesheet",type:"text/css",href:theme.path,"data-type":type,"data-name":theme.name||theme.id,"data-id":theme.id})}(theme)}),{load:function(preload){return _.forEach(styles,function($link,id){isAttached(id)||(preload||id!==activeTheme||$link.on(
"load",function(){return triggerThemeChange(id)}),disable($link),$container.append($link)),preload||("base"!==id&&id!==defaultTheme?disable($link):(enable($link),triggerThemeChange(activeTheme=id)))}),this},unload:function(){return disable($('link[data-type^="'.concat(prefix,'"]'),$container)),this},change:function(id){return _.contains(["base","default"],id)&&!isAttached(id)&&(id=defaultTheme),isAttached(id)&&(disable($('link[data-type="'.concat(prefix,'theme"]'),$container)),enable(getLink(id)),triggerThemeChange(activeTheme=id)),this},getActiveTheme:function(){return activeTheme}}}}),define("ui/themes",["lodash","module"],function(_,module){"use strict"
;var themesConfig;_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,module=module&&Object.prototype.hasOwnProperty.call(module,"default")?module.default:module;return{getConfig:function(){return themesConfig||this.setConfig(module.config()),themesConfig},setConfig:function(config){themesConfig=_.cloneDeep(config)},getDefaultNamespacePrefix:function(){return"items"},get:function(what,ns){var config=this.getConfig();if(ns?what+="_"+ns:config.activeNamespace&&config[what+"_"+config.activeNamespace]&&(what+="_"+config.activeNamespace),_.isPlainObject(config[what]))return config[what]},getAvailable:function(what,themes){var available=[],
themes=this.get(what,themes);return themes&&_.isArray(themes.available)&&(available=themes.available),available},getActiveNamespace:function(){return this.getConfig().activeNamespace},setActiveNamespace:function(ns){this.getConfig().activeNamespace=ns},getCurrentThemeData:function(what){var themeNamespace=this.getActiveNamespace();return what=what||this.getDefaultNamespacePrefix(),this.get(what,themeNamespace)}}}),define("ui/toggler",["jquery","core/pluginifier","core/dataattrhandler"],function($,Pluginifier,DataAttrHandler){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,
Pluginifier=Pluginifier&&Object.prototype.hasOwnProperty.call(Pluginifier,"default")?Pluginifier.default:Pluginifier,DataAttrHandler=DataAttrHandler&&Object.prototype.hasOwnProperty.call(DataAttrHandler,"default")?DataAttrHandler.default:DataAttrHandler;var ns="toggler",dataNs="ui."+ns,defaults={disableClass:"disabled",bindEvent:"click",openedClass:"opened",closedClass:"closed"},Toggler={init:function(options){return options=$.extend(!0,{},defaults,options),this.each(function(){var $elt=$(this),$target=options.target,openedClass=options.openedClass,closedClass=options.closedClass;$elt.data(dataNs)||(options.hideText&&(options.showText=$elt.text()),$elt.data(
dataNs,options),$elt.hasClass(closedClass)||$elt.hasClass(openedClass)||$elt.addClass("none"===$target.css("display")?closedClass:openedClass),$target.on("toggle."+ns,function(e,$toggler){e.stopPropagation(),$toggler.is($elt)||("none"===$target.css("display")?$elt.addClass(closedClass).removeClass(openedClass):$elt.removeClass(closedClass).addClass(openedClass))}),!1!==options.bindEvent&&$elt.on(options.bindEvent,function(e){e.preventDefault(),Toggler._toggle($(this))}),$elt.trigger("create."+ns))})},_toggle:function($elt){var action,options=$elt.data(dataNs),$target=options.target,triggerEvents=function(){$elt.trigger("toggle."+ns,[$target]).trigger(
action+"."+ns,[$target]),$target.trigger("toggle."+ns,[$elt])};$elt.is(":radio,:checkbox")?action=$elt.prop("checked")?"open":"close":(action=$elt.hasClass(options.closedClass)?"open":"close",$elt.toggleClass(options.closedClass).toggleClass(options.openedClass)),"open"===action?($target.fadeIn(200,triggerEvents),options.hideText&&$elt.text(options.hideText)):($target.fadeOut(300,triggerEvents),options.showText&&$elt.text(options.showText))},destroy:function(){this.each(function(){var $elt=$(this),options=$elt.data(dataNs);!1!==options.bindEvent&&$elt.off(options.bindEvent),$elt.trigger("destroy."+ns)})}};return Pluginifier.register(ns,Toggler,{expose:[
"toggle"]}),function($container){new DataAttrHandler("toggle",{container:$container,listenerEvent:"click",bubbled:!0,namespace:dataNs}).init(function($elt,opts){opts={target:opts,bindEvent:!1};$elt.data("hide-text")&&(opts.hideText=$elt.data("hide-text")),$elt.toggler(opts)}).trigger(function($elt){$elt.toggler("toggle")})}}),define("ui/tooltipster",["ui/tooltip"],function(tooltip){"use strict";return tooltip=tooltip&&Object.prototype.hasOwnProperty.call(tooltip,"default")?tooltip.default:tooltip}),define("css!ui/tristateCheckboxGroup/css/tristateCheckboxGroup",[],function(){}),define("ui/tristateCheckboxGroup",["jquery","lodash","i18n","ui/component",
"handlebars","lib/dompurify/purify","ui/tooltip","css!ui/tristateCheckboxGroup/css/tristateCheckboxGroup.css"],function($$1,_,__,component,Handlebars,DOMPurify,tooltip,tristateCheckboxGroup_css){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function Helpers0(hb){hb.registerHelper("__",function(key){return __(key)}),hb.registerHelper("dompurify",function(context){return DOMPurify.sanitize(context)}),hb.registerHelper("join",function(arr,
keyValueGlue,fragmentGlue,wrapper){var fragments=[];return keyValueGlue="string"==typeof keyValueGlue?keyValueGlue:void 0,fragmentGlue="string"==typeof fragmentGlue?fragmentGlue:" ",wrapper="string"==typeof wrapper?wrapper:'"',_.forIn(arr,function(value,key){var fragment="";null!==value||void 0!==value?"boolean"==typeof value?value=value?"true":"false":"object"===_typeof(value)&&(value=_.values(value).join(" ")):value="",void 0!==keyValueGlue&&(fragment+=key+keyValueGlue),fragment+=wrapper+value+wrapper,fragments.push(fragment)}),fragments.join(fragmentGlue)}),hb.registerHelper("for",function(startIndex,stopIndex,increment,options){var ret=""
;startIndex=parseInt(startIndex),stopIndex=parseInt(stopIndex),increment=parseInt(increment);for(var i=startIndex;i<stopIndex;i+=increment)ret+=options.fn(_.extend({},this,{i:i}));return ret}),hb.registerHelper("equal",function(var1,var2,options){return var1==var2?options.fn(this):options.inverse(this)}),hb.registerHelper("property",function(name,context){return context[name]||""}),hb.registerHelper("includes",function(haystack,needle,options){if(_.contains(haystack,needle))return options.fn(this)})}$$1=$$1&&Object.prototype.hasOwnProperty.call($$1,"default")?$$1.default:$$1,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,
__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,Handlebars=Handlebars&&Object.prototype.hasOwnProperty.call(Handlebars,"default")?Handlebars.default:Handlebars,DOMPurify=DOMPurify&&Object.prototype.hasOwnProperty.call(DOMPurify,"default")?DOMPurify.default:DOMPurify,tooltip=tooltip&&Object.prototype.hasOwnProperty.call(tooltip,"default")?tooltip.default:tooltip,Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template=Handlebars.template(function(buffer,depth0,helper,partials,data){this.compilerInfo=[4
,">= 1.0.0"],helper=this.merge(helper,buffer.helpers),data=data||{};buffer="";return buffer+='<ul class="tristate-checkbox-group plain" data-serial="',buffer+=(0,this.escapeExpression)((helper=helper.serial)||"function"==typeof(helper=depth0&&depth0.serial)?helper.call(depth0,{hash:{},data:data}):helper)+'"></ul>'});function layoutTpl(data,html,asString){html=Template(data,html);return html}Helpers0.__initialized||(Helpers0(Handlebars),Helpers0.__initialized=!0);var Template$1=Handlebars.template(function(helper,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,helper.helpers),data=data||{};var buffer="",
escapeExpression=this.escapeExpression;return buffer+='<li>\n <label>\n <input type="checkbox" value="',buffer+=escapeExpression((helper=helpers.value)||"function"==typeof(helper=depth0&&depth0.value)?helper.call(depth0,{hash:{},data:data}):helper)+'" name="tristate-checkbox-',buffer+=escapeExpression((helper=helpers.serial)||"function"==typeof(helper=depth0&&depth0.serial)?helper.call(depth0,{hash:{},data:data}):helper)+'"/>\n <span class="icon icon-checkbox"></span>\n <span class="label">',buffer+=escapeExpression((helper=helpers.label)||"function"==typeof(helper=depth0&&depth0.label)?helper.call(depth0,{hash:{},data:data}):helper
)+"</span>\n </label>\n</li>"});var tristateCheckboxGroup={getValues:function(){var values={checked:[],indeterminate:[]},$list=this.getElement();return $list.find("input:checked").each(function(){values.checked.push($$1(this).val())}),$list.find("input:indeterminate").each(function(){values.indeterminate.push($$1(this).val())}),values},setValues:function(values){var $list=this.getElement();return $list.find("input").prop("checked",!1).prop("indeterminate",!1),_.isArray(values.checked)&&_.each(values.checked,function(v){$list.find('input[value="'+v+'"]').prop("checked",!0)}),_.isArray(values.indeterminate)&&_.each(values.indeterminate,function(v){
$list.find('input[value="'+v+'"]:not(:checked)').prop("indeterminate",!0)}),this},setElements:function(elements){var $cbox,$list=this.getElement(),self=this;return _.each(elements,function(data){data&&(($cbox=$list.find('input[value="'+data.value+'"]')).length?(data.label&&$cbox.siblings(".label").text(data.label),$cbox.find("input").prop("checked",!1).prop("indeterminate",!1)):(data.serial=self.config.serial,$cbox=$$1(function(data,html){return html=Template$1(data,html)}(data)).appendTo($list).find("input")),data.checked?$cbox.prop("checked",!0):data.indeterminate&&$cbox.prop("indeterminate",!0))}),this},tooltip:null};return function(config){
return config=_.defaults(config||{},{serial:_.uniqueId("tscb"),list:[],maxSelection:0,maxMessage:__("Maximum selection reached")}),component(tristateCheckboxGroup).setTemplate(layoutTpl).on("render",function(){var self=this,$list=this.getElement();$list.on("change",function(e){var $input,$icon,maxSelection=self.config.maxSelection;maxSelection&&$list.find("input:checked,input:indeterminate").length>maxSelection?($input=$$1(e.target)).is(":checked")&&(($icon=$input.siblings(".icon").addClass("cross").each(function(){self.tooltip=tooltip.warning(this,self.config.maxMessage),self.tooltip.show()})).parent("label").on("mouseleave",function(){
self.tooltip&&self.tooltip.dispose()}),_.delay(function(){$input.prop("checked",!1),$icon.removeClass("cross")},150)):self.trigger("change",self.getValues())}),this.setElements(this.config.list)}).init(config)}}),define("ui/waitForMedia",["jquery"],function($){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$;var _ns=".wait";$.fn.waitForMedia=function(allLoadedCallback){function allLoaded($container){$container.trigger("all-loaded"+_ns),"function"==typeof allLoadedCallback&&allLoadedCallback.call($container[0])}return this.each(function(){var $container=$(this),$img=$container.find("img[src]"),count=$img.length,loaded=0,
imageLoaded=function(){$(this).trigger("loaded"+_ns).off("load"+_ns).off("error"+_ns),++loaded===count&&allLoaded($container)};0!==count?$img.each(function(){this.complete?imageLoaded.call(this):$(this).on("load.wait error"+_ns,imageLoaded)}):allLoaded($container)})}}),define("css!ui/waitingDialog/css/waitingDialog",[],function(){}),define("ui/waitingDialog/waitingDialog",["jquery","lodash","i18n","ui/component","ui/dialog","css!ui/waitingDialog/css/waitingDialog.css"],function($,_,__,component,dialog,waitingDialog_css){"use strict";$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,_=_&&Object.prototype.hasOwnProperty.call(_,"default"
)?_.default:_,__=__&&Object.prototype.hasOwnProperty.call(__,"default")?__.default:__,component=component&&Object.prototype.hasOwnProperty.call(component,"default")?component.default:component,dialog=dialog&&Object.prototype.hasOwnProperty.call(dialog,"default")?dialog.default:dialog;var defaultConfig={message:__("Waiting"),waitContent:__("Please wait while ..."),waitButtonText:__("Please wait"),waitButtonIcon:"clock",proceedContent:__("Wait is over"),proceedButtonText:__("Proceed"),showSecondary:!1};return function(config){var $button,$secondaryButton,$betweenButtonsText,$content,waitingDialog=component({beginWait:function(){return this.is("waiting")||(
this.setState("waiting",!0),$content.html(this.config.waitContent),$button.prop("disabled",!0).find(".label").text(this.config.waitButtonText).end().find("[class^='icon-']").removeClass("hidden"),config.showSecondary&&($secondaryButton.removeProp("disabled"),$secondaryButton.removeClass("hidden"),this.config.buttonSeparatorText&&$betweenButtonsText.removeClass("hidden")),this.trigger("wait")),this},endWait:function(){return this.is("waiting")&&(this.setState("waiting",!1),$content.html(this.config.proceedContent),$button.removeProp("disabled").find(".label").text(this.config.proceedButtonText).end().find("[class^='icon-']").addClass("hidden"),
config.showSecondary&&($secondaryButton.prop("disabled",!0),$secondaryButton.addClass("hidden"),this.config.buttonSeparatorText&&$betweenButtonsText.addClass("hidden")),this.trigger("unwait")),this},destroy:function(){return this.dialog&&this.dialog.destroy(),this.trigger("destroy")}},defaultConfig).on("init",function(){var self=this,buttons=[{id:"waiting",type:"info",icon:this.config.waitButtonIcon,label:this.config.waitButtonText,close:!0}];this.config.showSecondary&&this.config.secondaryButtonText&&buttons.push({id:"secondary",type:"info",icon:this.config.secondaryButtonIcon,label:this.config.secondaryButtonText,close:!1}),this.dialog=dialog({
message:this.config.message,content:this.config.waitContent||"",width:this.config.width,autoRender:!1,disableClosing:!0,disableEscape:!0,buttons:buttons}),$content=$(".content",this.dialog.getDom()),$button=$('[data-control="waiting"]',this.dialog.getDom()),this.config.showSecondary&&(this.dialog.getDom().addClass("has-secondary"),($secondaryButton=$('[data-control="secondary"]',this.dialog.getDom())).on("click",function(){self.trigger("secondaryaction")}),this.config.buttonSeparatorText&&($betweenButtonsText=$("<span>").text(__("or")).addClass("between-buttons-text").insertBefore($secondaryButton))),this.beginWait(),this.render()}).on("render",function(){
var self=this;this.dialog.on("closed.modal",function(){self.is("waiting")||self.trigger("proceed")}).render(this.config.container||"body")});return _.defer(function(){waitingDialog.init(config||{})}),waitingDialog}}),define("util/adaptSize",["jquery","util/capitalize"],function($,capitalize){"use strict";var _resize;return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,capitalize=capitalize&&Object.prototype.hasOwnProperty.call(capitalize,"default")?capitalize.default:capitalize,_resize=function($elements,dimensions){$elements.each(function(){for(var dimension in dimensions)dimensions.hasOwnProperty(dimension)&&$(this)[dimension]("auto")}
),$elements.each(function(){for(var dimension in dimensions)dimensions.hasOwnProperty(dimension)&&(dimensions[dimension]=Math.max(Math.floor(dimensions[dimension]||0),$(this)["outer"+capitalize(dimension)]()))}),$elements.css(dimensions)},{width:function($elements,minWidth){_resize($elements,{width:minWidth})},height:function($elements,minHeight){_resize($elements,{height:minHeight})},both:function($elements,minWidth,minHeight){_resize($elements,{height:minHeight,width:minWidth})}}}),define("util/clipboard",["jquery","core/eventifier"],function($,eventifier){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,(
eventifier=eventifier&&Object.prototype.hasOwnProperty.call(eventifier,"default")?eventifier.default:eventifier)({clean:function(){this.copy(" ")},copy:function(text){var textAreaToSelContent=document.createElement("textarea");textAreaToSelContent.setAttribute("id","clipboardCleanerPlugin"),textAreaToSelContent.value=text,textAreaToSelContent.setAttribute("readonly",""),textAreaToSelContent.style.position="absolute",textAreaToSelContent.style.left="-9999px",document.body.appendChild(textAreaToSelContent),this.copyFromEl(textAreaToSelContent),document.body.removeChild(textAreaToSelContent)},copyFromEl:function(elem){var editable,readOnly,range,sel,
el=elem instanceof $?elem.get(0):elem;document.body.createTextRange?((sel=document.body.createTextRange()).moveToElementText(el),sel.select(),sel.execCommand("Copy"),this.trigger("copied",{srcEl:el})):window.getSelection&&document.createRange&&(el.hasOwnProperty("contentEditable")&&(editable=el.contentEditable,el.contentEditable=!0),el.hasOwnProperty("readOnly")&&(readOnly=el.readOnly,el.readOnly=!1),(range=document.createRange()).selectNodeContents(el),(sel=window.getSelection()).removeAllRanges(),sel.addRange(range),"TEXTAREA"!==el.nodeName&&"INPUT"!==el.nodeName||el.select(),el.setSelectionRange&&navigator.userAgent.match(/ipad|ipod|iphone/i
)&&el.setSelectionRange(0,999999),el.hasOwnProperty("contentEditable")&&(el.contentEditable=editable),el.hasOwnProperty("readOnly")&&(el.readOnly=readOnly),document.queryCommandSupported("copy")?document.execCommand("copy")?this.trigger("copied",{srcEl:elem}):this.trigger("copyError",{srcEl:elem,reason:"Not Success"}):navigator.userAgent.match(/ipad|ipod|iphone|android|silk/i)||this.trigger("copyError",{srcEl:elem,reason:"Copy command not supported"}))},paste:function(elem){var editable,readOnly,range,sel,el=elem instanceof $?elem.get(0):elem;window.clipboardData?(el.value=window.clipboardData.getData("Text"),el.innerHTML=window.clipboardData.getData("Text")
):window.getSelection&&document.createRange&&(el.tagName.match(/textarea|input/i)&&el.value.length<1?el.value=" ":el.innerHTML.length<1&&(el.innerHTML="&nbsp;"),editable=el.contentEditable,readOnly=el.readOnly,el.contentEditable=!0,el.readOnly=!1,(range=document.createRange()).selectNodeContents(el),(sel=window.getSelection()).removeAllRanges(),sel.addRange(range),"TEXTAREA"!==el.nodeName&&"INPUT"!==el.nodeName||el.select(),el.setSelectionRange&&navigator.userAgent.match(/ipad|ipod|iphone/i)&&el.setSelectionRange(0,999999),document.queryCommandSupported("paste")?document.execCommand("Paste")?this.trigger("pasted",{srcEl:elem}):navigator.userAgent.match(
/android/i)&&navigator.userAgent.match(/chrome/i)?(this.trigger("pasteError",{srcEl:elem,reason:"Extra action required"}),el.tagName.match(/textarea|input/i)?(el.value=" ",el.focus(),el.setSelectionRange(0,0)):el.innerHTML=""):this.trigger("pasteError",{srcEl:elem,reason:"Press CTRL-V to paste"}):this.trigger("pasteError",{srcEl:elem,reason:"Command paste not supported"}),el.contentEditable=editable,el.readOnly=readOnly)}})}),define("util/config",["lodash"],function(_){"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{build:function(config,defaults){return _.defaults(config||{},defaults)},from:function(source,entries,
defaults){var config={};return _.forEach(entries,function(value,name){if(void 0!==source[name])config[name]=source[name];else if(value)throw new Error('The config entry "'+name+'" is required!')}),_.defaults(config,defaults)}}}),define("util/dom",["jquery"],function($){"use strict";return $=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,{contains:function(elt){return elt instanceof $&&(elt=elt[0]),$.contains(document,elt)}}}),define("util/download",["lodash"],function(_){"use strict";_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_;var iOS=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),
type=iOS?"data:application/octet-stream":"data:text/plain";return function(filename,content){var element;if(_.isEmpty(filename)||!_.isString(filename))throw new TypeError("Invalid filename");if(_.isUndefined(content))throw new TypeError("Invalid content");return _.isString(content)||(content=JSON.stringify(content)),navigator.msSaveBlob?navigator.msSaveBlob(new Blob([content],{type:type}),filename):(element=document.createElement("a"),iOS&&element.setAttribute("target","_blank"),element.setAttribute("href",type+";charset=utf-8,"+encodeURIComponent(content)),element.setAttribute("download",filename),element.style.display="none",document.body.appendChild(
element),element.click(),document.body.removeChild(element)),!0}}),define("util/image",[],function(){"use strict";return{getSize:function(src,timeout,cb){var timeoutId,img=document.createElement("img");"function"==typeof timeout&&(cb=timeout,timeout=2),img.onload=function(){timeoutId&&(clearTimeout(timeoutId),cb({width:img.naturalWidth||img.width,height:img.naturalHeight||img.height}))},img.onerror=function(){timeoutId&&(clearTimeout(timeoutId),cb(null))},timeoutId=setTimeout(function(){cb(null)},1e3*timeout),img.src=src}}}),define("util/locale",["module","moment"],function(module,moment){"use strict";module=module&&Object.prototype.hasOwnProperty.call(
module,"default")?module.default:module,moment=moment&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment;var configuration=module.config();return{getConfig:function(){return configuration},setConfig:function(config){configuration=config||{}},getDecimalSeparator:function(){return this.getConfig()&&this.getConfig().decimalSeparator?this.getConfig().decimalSeparator:"."},getThousandsSeparator:function(){return this.getConfig()&&this.getConfig().thousandsSeparator?this.getConfig().thousandsSeparator:""},getDateTimeFormat:function(){return this.getConfig()&&this.getConfig().dateTimeFormat?this.getConfig(
).dateTimeFormat:"DD/MM/YYYY HH:mm:ss"},parseFloat:function(_parseFloat){function parseFloat(_x){return _parseFloat.apply(this,arguments)}return parseFloat.toString=function(){return _parseFloat.toString()},parseFloat}(function(numStr){var thousandsSeparator=this.getThousandsSeparator(),decimalSeparator=this.getDecimalSeparator();return thousandsSeparator.length&&(numStr=numStr.replace(new RegExp("\\"+thousandsSeparator,"g"),"")),"."!==decimalSeparator&&(numStr=numStr.replace(new RegExp("\\.","g"),"_").replace(new RegExp("\\"+decimalSeparator,"g"),".")),parseFloat(numStr)}),parseInt:function(_parseInt){function parseInt(_x2,_x3){return _parseInt.apply(this,
arguments)}return parseInt.toString=function(){return _parseInt.toString()},parseInt}(function(number,numericBase){var thousandsSeparator=this.getThousandsSeparator();return thousandsSeparator.length&&(number=number.replace(new RegExp("\\"+thousandsSeparator,"g"),"")),parseInt(number,numericBase)}),formatDateTime:function(timestamp,argument_1){return(1<arguments.length&&void 0!==argument_1&&argument_1?moment.utc(timestamp,"X"):moment(timestamp,"X")).format(this.getDateTimeFormat())},isLanguageRTL:function(lang){return 0<=(this.getConfig().rtl||[]).map(function(lng){return String(lng).toLowerCase()}).indexOf(lang.toLowerCase())},getLanguageDirection:function(
lang){return this.isLanguageRTL(lang)?"rtl":"ltr"}}}),define("util/strLimiter",[],function(){"use strict";return{limitByWordCount:function(str,maxWordCount){for(var textArr=str.match(/(([\S]+)|([\s]+))/g),newText=/\s+/.test(textArr[0])?textArr.shift():"";maxWordCount&&textArr.length;)newText+=textArr.shift(),textArr.length&&(newText+=textArr.shift()),maxWordCount--;return newText=newText.replace(/\s+$/,"")},limitByCharCount:function(str,maxCharCount){return str.substr(0,maxCharCount)}}}),define("util/strPad",[],function(){"use strict";return function(input,pad_length,pad_string,pad_type){var half,pad_to_go,str_pad_repeater=function(s,len){for(
var collect="";collect.length<len;)collect+=s;return collect=collect.substr(0,len)};return input=input.toString(),pad_string=void 0!==pad_string?pad_string:" ","STR_PAD_LEFT"!==pad_type&&"STR_PAD_RIGHT"!==pad_type&&"STR_PAD_BOTH"!==pad_type&&(pad_type="STR_PAD_RIGHT"),0<(pad_to_go=pad_length-(input+="").length)&&("STR_PAD_LEFT"===pad_type?input=str_pad_repeater(pad_string,pad_to_go)+input:"STR_PAD_RIGHT"===pad_type?input+=str_pad_repeater(pad_string,pad_to_go):"STR_PAD_BOTH"===pad_type&&(input=(input=(half=str_pad_repeater(pad_string,Math.ceil(pad_to_go/2)))+input+half).substr(0,pad_length))),input}}),define("util/typeCaster",["lodash"],function(_){
"use strict";return _=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,{strToBool:function(value,defaultValue){return _.isBoolean(value)?value:_.isString(value)?"true"===value.toLowerCase():defaultValue||!1}}}),define("uri",[],function(){return{encode:function(uri){var encoded=uri;return/^http/.test(uri)&&(encoded=encoded.replace(/:\/\//g,"_2_").replace(/#/g,"_3_").replace(/:/g,"_4_").replace(/\//g,"_1_").replace(/\./g,"_0_")),encoded},decode:function(uri){var encoded=uri;return/^http/.test(uri)&&(encoded=encoded.replace(/_0_/g,".").replace(/_1_/g,"/").replace(/_2_/g,"://").replace(/_3_/g,"#").replace(/_4_/g,":")),encoded}}}),define(
"jquery.sizechange",["jquery","lodash"],function($,_){"use strict";$.fn.sizeChange=function(cb){var $this=this,running=!1;if(cb=cb||$.noop(),0===$this.length)return $this;var execCb=_.throttle(function(done){cb(),_.delay(done,1),done(),$this.find("img").one("load",function(){cb()})},10);if(window.MutationObserver||window.WebKitMutationObserver){var MutationObserver=window.MutationObserver||window.WebKitMutationObserver,mutationOptions={childList:"IFRAME"!==this[0].nodeName,subtree:!0,attributes:!0,attributeFilter:["style","width","height"]},observer=new MutationObserver(function(mutations){for(var i in mutations)if(
null!==mutations[i].addedNodes||null!==mutations[i].attributeName)return stop(),void execCb(start)}),start=function(){$this.each(function(){observer.observe(this,mutationOptions)})},stop=function(){observer.disconnect()};start()}else{if(!function(){var p=document.createElement("p"),flag=!1;if(p.addEventListener)p.addEventListener("DOMAttrModified",function(){flag=!0},!1);else{if(!p.attachEvent)return;p.attachEvent("onDOMAttrModified",function(){flag=!0})}return p.setAttribute("id","__dummy_domtest_target"),flag}())throw new Error("Event listening not supported");var runs=function(){running=!1};$this.on("DOMAttrModified",function(event){
"style"!==event.attrName||running||(running=!0,execCb(runs))}),$this.on("DOMNodeRemoved DOMNodeInserted DOMNodeInsertedIntoDocument DOMNodeRemovedFromDocument",function(event){1!==event.target.nodeType||running||(running=!0,execCb(runs))})}return this}}),define("iframeResizer",["jquery","iframeNotifier","jquery.sizechange"],function($,iframeNotifier){"use strict";return{autoHeight:function($frame,restrict,plus){var self=this;return restrict=restrict||"body",plus=plus||0,$frame.on("load",function(){var $frameContent=$frame.contents(),height=$frameContent.height(),sizing=!1,resizePop=function(){!1===sizing&&(sizing=!0,setTimeout(function(){self._adaptHeight(
$frame,height,plus),sizing=!1},1))};self._adaptHeight($frame,height);try{var onSizeChange=function(){var newHeight=$frameContent.height();height<newHeight&&(height=newHeight,resizePop()),height<newHeight&&(height=newHeight,resizePop())};$frameContent.find(restrict).sizeChange(onSizeChange),$frameContent.on("resize",onSizeChange)}catch(e){console.warning("Fallback to set interval"),setInterval(function(){var newHeight=$frameContent.height();height<newHeight&&(height=newHeight,resizePop())},10)}}),$frame},eventHeight:function($frame,diff){var self=this;$frame.on("load.eventHeight",function(){var newdiff=parseInt($frame.contents().height(),10)-parseInt(
$frame.height(),10);diff<newdiff&&(diff=newdiff),self._adaptHeight($frame,$frame.contents().height()+diff)}),$(document).on("heightchange",function(e,height,plus){plus=plus||0,self._adaptHeight($frame,height+plus+diff)})},_notifyParent:function(height,plus){iframeNotifier.parent("heightchange",[height,plus||0])},_adaptHeight:function($frame,height,plus){$frame.height(height),this._notifyParent(height,plus)}}}),function r(c,a,f){function o(n,t){if(!a[n]){if(!c[n]){var u="function"==typeof require&&require;if(!t&&u)return u(n,!0);if(s)return s(n,!0);u=new Error("Cannot find module '"+n+"'");throw u.code="MODULE_NOT_FOUND",u}u=a[n]={exports:{}};c[n][0].call(
u.exports,function(t){return o(c[n][1][t]||t)},u,u.exports,r,c,a,f)}return a[n].exports}for(var s="function"==typeof require&&require,t=0;t<f.length;t++)o(f[t]);return o}({1:[function(t,n,r){t(276),t(212),t(214),t(213),t(216),t(218),t(223),t(217),t(215),t(225),t(224),t(220),t(221),t(219),t(211),t(222),t(226),t(227),t(178),t(180),t(179),t(229),t(228),t(199),t(209),t(210),t(200),t(201),t(202),t(203),t(204),t(205),t(206),t(207),t(208),t(182),t(183),t(184),t(185),t(186),t(187),t(188),t(189),t(190),t(191),t(192),t(193),t(194),t(195),t(196),t(197),t(198),t(263),t(268),t(275),t(266),t(258),t(259),t(264),t(269),t(271),t(254),t(255),t(256),t(257),t(260),t(261),t(262)
,t(265),t(267),t(270),t(272),t(273),t(274),t(173),t(175),t(174),t(177),t(176),t(161),t(159),t(166),t(163),t(169),t(171),t(158),t(165),t(155),t(170),t(153),t(168),t(167),t(160),t(164),t(152),t(154),t(157),t(156),t(172),t(162),t(245),t(246),t(252),t(247),t(248),t(249),t(250),t(251),t(230),t(181),t(253),t(288),t(289),t(277),t(278),t(283),t(286),t(287),t(281),t(284),t(282),t(285),t(279),t(280),t(231),t(232),t(233),t(234),t(235),t(238),t(236),t(237),t(239),t(240),t(241),t(242),t(244),t(243),n.exports=t(50)},{152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,
171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,
254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288,289:289,50:50}],2:[function(t,n,r){t(290),n.exports=t(50).Array.flatMap},{290:290,50:50}],3:[function(t,n,r){t(291),n.exports=t(50).Array.includes},{291:291,50:50}],4:[function(t,n,r){t(292),n.exports=t(50).Object.entries},{292:292,50:50}],5:[function(t,n,r){t(293),n.exports=t(50).Object.getOwnPropertyDescriptors},{293:293,50:50}],6:[function(t,n,r){t(294),n.exports=t(50
).Object.values},{294:294,50:50}],7:[function(t,n,r){"use strict";t(230),t(295),n.exports=t(50).Promise.finally},{230:230,295:295,50:50}],8:[function(t,n,r){t(296),n.exports=t(50).String.padEnd},{296:296,50:50}],9:[function(t,n,r){t(297),n.exports=t(50).String.padStart},{297:297,50:50}],10:[function(t,n,r){t(299),n.exports=t(50).String.trimRight},{299:299,50:50}],11:[function(t,n,r){t(298),n.exports=t(50).String.trimLeft},{298:298,50:50}],12:[function(t,n,r){t(300),n.exports=t(149).f("asyncIterator")},{149:149,300:300}],13:[function(t,n,r){t(30),n.exports=t(16).global},{16:16,30:30}],14:[function(t,n,r){n.exports=function(t){if("function"!=typeof t
)throw TypeError(t+" is not a function!");return t}},{}],15:[function(t,n,r){var e=t(26);n.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},{26:26}],16:[function(t,e,r){e=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},{}],17:[function(t,n,r){var o=t(14);n.exports=function(e,i,t){if(o(e),void 0===i)return e;switch(t){case 1:return function(t){return e.call(i,t)};case 2:return function(t,n){return e.call(i,t,n)};case 3:return function(t,n,r){return e.call(i,t,n,r)}}return function(){return e.apply(i,arguments)}}},{14:14}],18:[function(t,n,r){n.exports=!t(21)(function(){return 7!=Object.defineProperty({},"a",{
get:function(){return 7}}).a})},{21:21}],19:[function(t,n,r){var e=t(26),i=t(22).document,o=e(i)&&e(i.createElement);n.exports=function(t){return o?i.createElement(t):{}}},{22:22,26:26}],20:[function(t,n,r){var g=t(22),y=t(16),d=t(17),x=t(24),m=t(23),S="prototype",b=function(t,n,r){var e,i,o,u=t&b.F,c=t&b.G,a=t&b.S,f=t&b.P,s=t&b.B,l=t&b.W,h=c?y:y[n]||(y[n]={}),p=h[S],v=c?g:a?g[n]:(g[n]||{})[S];for(e in c&&(r=n),r)(i=!u&&v&&void 0!==v[e])&&m(h,e)||(o=(i?v:r)[e],h[e]=c&&"function"!=typeof v[e]?r[e]:s&&i?d(o,g):l&&v[e]==o?function(e){function ib(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(
t,n)}return new e(t,n,r)}return e.apply(this,arguments)}return ib[S]=e[S],ib}(o):f&&"function"==typeof o?d(Function.call,o):o,f&&((h.virtual||(h.virtual={}))[e]=o,t&b.R&&p&&!p[e]&&x(p,e,o)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,n.exports=b},{16:16,17:17,22:22,23:23,24:24}],21:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],22:[function(t,e,r){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},{}],23:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],24:[
function(t,n,r){var e=t(27),i=t(28);n.exports=t(18)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},{18:18,27:27,28:28}],25:[function(t,n,r){n.exports=!t(18)&&!t(21)(function(){return 7!=Object.defineProperty(t(19)("div"),"a",{get:function(){return 7}}).a})},{18:18,19:19,21:21}],26:[function(t,n,r){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],27:[function(t,n,r){var e=t(15),i=t(25),o=t(29),u=Object.defineProperty;r.f=t(18)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!")
;return"value"in r&&(t[n]=r.value),t}},{15:15,18:18,25:25,29:29}],28:[function(t,n,r){n.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},{}],29:[function(t,n,r){var i=t(26);n.exports=function(t,n){if(!i(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!i(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!i(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!i(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")}},{26:26}],30:[function(t,n,r){var e=t(20);e(e.G,{global:t(22)})},{20:20,22:22}],31:[function(t,n,r){arguments[4][14][0].apply(r,arguments)},{14:14
}],32:[function(t,n,r){var e=t(46);n.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},{46:46}],33:[function(t,n,r){var e=t(150)("unscopables"),i=Array.prototype;null==i[e]&&t(70)(i,e,{}),n.exports=function(t){i[e][t]=!0}},{150:150,70:70}],34:[function(t,n,r){"use strict";var e=t(127)(!0);n.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},{127:127}],35:[function(t,n,r){n.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},{}],36:[function(t,n,r){arguments[4][15][0].apply(r,arguments)},{15:15,79:79}],37:[function(t,n,r){"use strict";var f=t(140
),s=t(135),l=t(139);n.exports=[].copyWithin||function(t,n,u){var r=f(this),e=l(r.length),i=s(t,e),o=s(n,e),u=2<arguments.length?u:void 0,c=Math.min((void 0===u?e:s(u,e))-o,e-i),a=1;for(o<i&&i<o+c&&(a=-1,o+=c-1,i+=c-1);0<c--;)o in r?r[i]=r[o]:delete r[i],i+=a,o+=a;return r}},{135:135,139:139,140:140}],38:[function(t,n,r){"use strict";var c=t(140),a=t(135),f=t(139);n.exports=function(t,argument_1,o){for(var n=c(this),r=f(n.length),e=arguments.length,i=a(1<e?argument_1:void 0,r),o=2<e?o:void 0,u=void 0===o?r:a(o,r);i<u;)n[i++]=t;return n}},{135:135,139:139,140:140}],39:[function(t,n,r){var a=t(138),f=t(139),s=t(135);n.exports=function(c){return function(t,n,r){
var e,i=a(t),o=f(i.length),u=s(r,o);if(c&&n!=n){for(;u<o;)if((e=i[u++])!=e)return!0}else for(;u<o;u++)if((c||u in i)&&i[u]===n)return c||u||0;return!c&&-1}}},{135:135,138:138,139:139}],40:[function(t,n,r){var m=t(52),S=t(75),b=t(140),w=t(139),e=t(43);n.exports=function(l,t){var h=1==l,p=2==l,v=3==l,g=4==l,y=6==l,d=5==l||y,x=t||e;return function(t,n,r){for(var e,i,o=b(t),u=S(o),c=m(n,r,3),a=w(u.length),f=0,s=h?x(t,a):p?x(t,0):void 0;f<a;f++)if((d||f in u)&&(i=c(e=u[f],f,o),l))if(h)s[f]=i;else if(i)switch(l){case 3:return!0;case 5:return e;case 6:return f;case 2:s.push(e)}else if(g)return!1;return y?-1:v||g?g:s}}},{139:139,140:140,43:43,52:52,75:75}],41:[
function(t,n,r){var s=t(31),l=t(140),h=t(75),p=t(139);n.exports=function(t,n,r,e,i){s(n);var o=l(t),u=h(o),c=p(o.length),a=i?c-1:0,f=i?-1:1;if(r<2)for(;;){if(a in u){e=u[a],a+=f;break}if(a+=f,i?a<0:c<=a)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=a:a<c;a+=f)a in u&&(e=n(e,u[a],a,o));return e}},{139:139,140:140,31:31,75:75}],42:[function(t,n,r){var e=t(79),i=t(77),o=t(150)("species");n.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},{150:150,77:77,79:79}],43:[function(t,n,r){var e=t(42);n.exports=function(t,n
){return new(e(t))(n)}},{42:42}],44:[function(t,n,r){"use strict";var o=t(31),u=t(79),c=t(74),a=[].slice,f={};n.exports=Function.bind||function(n){var r=o(this),e=a.call(arguments,1),i=function(){var t=e.concat(a.call(arguments));return this instanceof i?function(t,n,r){if(!(n in f)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";f[n]=Function("F,a","return new F("+e.join(",")+")")}return f[n](t,r)}(r,t.length,t):c(r,t,n)};return u(r.prototype)&&(i.prototype=r.prototype),i}},{31:31,74:74,79:79}],45:[function(t,n,r){var i=t(46),o=t(150)("toStringTag"),u="Arguments"==i(function(){return arguments}());n.exports=function(e){var n
;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(e),o))?e:u?i(n):"Object"==(e=i(n))&&"function"==typeof n.callee?"Arguments":e}},{150:150,46:46}],46:[function(t,n,r){var e={}.toString;n.exports=function(t){return e.call(t).slice(8,-1)}},{}],47:[function(t,n,r){"use strict";function Uf(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r}var u=t(97).f,c=t(96),a=t(115),f=t(52),s=t(35),l=t(66),e=t(83),i=t(85),o=t(121),h=t(56),p=t(92).fastKey,v=t(147),g=h?"_s":"size";n.exports={getConstructor:function(t,o,r,e){var i=t(function(t,n){s(t,i,o,"_i"),t._t=o,t._i=c(null),
t._f=void 0,t._l=void 0,t[g]=0,null!=n&&l(n,r,t[e],t)});return a(i.prototype,{clear:function(){for(var t=v(this,o),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(i){var e,n=v(this,o),r=Uf(n,i);return r&&(e=r.n,i=r.p,delete n._i[r.i],r.r=!0,i&&(i.n=e),e&&(e.p=i),n._f==r&&(n._f=e),n._l==r&&(n._l=i),n[g]--),!!r},forEach:function(t,argument_1){v(this,o);for(var n,r=f(t,1<arguments.length?argument_1:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!Uf(v(this,o),t)}}),h&&u(i.prototype,"size",{get:function(){return v(this,o)[g]}}),i},def:function(t,n,e){var i,o=Uf(t,n)
;return o?o.v=e:(t._l=o={i:i=p(n,!0),k:n,v:e,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:Uf,setStrong:function(t,r,n){e(t,r,function(t,n){this._t=v(t,r),this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?i(0,"keys"==n?r.k:"values"==n?r.v:[r.k,r.v]):(t._t=void 0,i(1))},n?"entries":"values",!n,!0),o(r)}}},{115:115,121:121,147:147,35:35,52:52,56:56,66:66,83:83,85:85,92:92,96:96,97:97}],48:[function(t,n,r){"use strict";function Tg(t){return t._l||(t._l=new g)}function Vg(t,n){return o(t.a,function(t){return t[0]===n})}function g(){this.a=[]}var u=t(115
),c=t(92).getWeak,i=t(36),a=t(79),f=t(35),s=t(66),e=t(40),l=t(69),h=t(147),o=e(5),p=e(6),v=0;g.prototype={get:function(n){n=Vg(this,n);if(n)return n[1]},has:function(t){return!!Vg(this,t)},set:function(t,n){var r=Vg(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(n){var t=p(this.a,function(t){return t[0]===n});return~t&&this.a.splice(t,1),!!~t}},n.exports={getConstructor:function(t,r,e,i){var o=t(function(t,n){f(t,o,r,"_i"),t._t=r,t._i=v++,t._l=void 0,null!=n&&s(n,e,t[i],t)});return u(o.prototype,{delete:function(t){if(!a(t))return!1;var n=c(t);return!0===n?Tg(h(this,r)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1
;var n=c(t);return!0===n?Tg(h(this,r)).has(t):n&&l(n,this._i)}}),o},def:function(t,n,r){var e=c(i(n),!0);return!0===e?Tg(t).set(n,r):e[t._i]=r,t},ufstore:Tg}},{115:115,147:147,35:35,36:36,40:40,66:66,69:69,79:79,92:92}],49:[function(t,n,r){"use strict";var y=t(68),d=t(60),x=t(116),m=t(115),S=t(92),b=t(66),w=t(35),_=t(79),E=t(62),O=t(84),I=t(122),F=t(73);n.exports=function(e,t,n,r,i,o){function Wh(t){var r=f[t];x(f,t,"delete"==t||"has"==t?function(t){return!(o&&!_(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!_(t)?void 0:r.call(this,0===t?0:t)}:"add"==t?function(t){return r.call(this,0===t?0:t),this}:function(t,n){return r.call(this,0===t?0:t,n
),this})}var l,h,p,v,g,u=y[e],c=u,a=i?"set":"add",f=c&&c.prototype,s={};return"function"==typeof c&&(o||f.forEach&&!E(function(){(new c).entries().next()}))?(h=(l=new c)[a](o?{}:-0,1)!=l,p=E(function(){l.has(1)}),v=O(function(t){new c(t)}),g=!o&&E(function(){for(var t=new c,n=5;n--;)t[a](n,n);return!t.has(-0)}),v||(((c=t(function(r,n){w(r,c,e);r=F(new u,r,c);return null!=n&&b(n,i,r[a],r),r})).prototype=f).constructor=c),(p||g)&&(Wh("delete"),Wh("has"),i&&Wh("get")),(g||h)&&Wh(a),o&&f.clear&&delete f.clear):(c=r.getConstructor(t,e,i,a),m(c.prototype,n),S.NEED=!0),I(c,e),s[e]=c,d(d.G+d.W+d.F*(c!=u),s),o||r.setStrong(c,e,i),c}},{115:115,116:116,122:122,35:35,
60:60,62:62,66:66,68:68,73:73,79:79,84:84,92:92}],50:[function(t,n,r){arguments[4][16][0].apply(r,arguments)},{16:16}],51:[function(t,n,r){"use strict";var e=t(97),i=t(114);n.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},{114:114,97:97}],52:[function(t,n,r){arguments[4][17][0].apply(r,arguments)},{17:17,31:31}],53:[function(e,n,r){"use strict";function Ii(t){return 9<t?t:"0"+t}var e=e(62),i=Date.prototype.getTime,o=Date.prototype.toISOString;n.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value")
;var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":9999<n?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+Ii(t.getUTCMonth()+1)+"-"+Ii(t.getUTCDate())+"T"+Ii(t.getUTCHours())+":"+Ii(t.getUTCMinutes())+":"+Ii(t.getUTCSeconds())+"."+(99<r?r:"0"+Ii(r))+"Z"}:o},{62:62}],54:[function(t,n,r){"use strict";var e=t(36),i=t(141);n.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},{141:141,36:36}],55:[function(t,n,r){n.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],56:[function(t,n,r){arguments[4][18][0].apply(r,arguments
)},{18:18,62:62}],57:[function(t,n,r){arguments[4][19][0].apply(r,arguments)},{19:19,68:68,79:79}],58:[function(t,n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],59:[function(t,n,r){var c=t(105),a=t(102),f=t(106);n.exports=function(t){var n=c(t),r=a.f;if(r)for(var e,i=r(t),o=f.f,u=0;i.length>u;)o.call(t,e=i[u++])&&n.push(e);return n}},{102:102,105:105,106:106}],60:[function(t,n,r){var g=t(68),y=t(50),d=t(70),x=t(116),m=t(52),S="prototype",b=function(t,n,r){var e,o,u,c=t&b.F,a=t&b.G,f=t&b.S,s=t&b.P,l=t&b.B,h=a?g:f?g[n]||(g[n]={}):(g[n]||{})[S],p=a?y:y[n]||(y[n]={}),v=p[S]||(p[S]={}
);for(e in a&&(r=n),r)o=((u=!c&&h&&void 0!==h[e])?h:r)[e],u=l&&u?m(o,g):s&&"function"==typeof o?m(Function.call,o):o,h&&x(h,e,o,t&b.U),p[e]!=o&&d(p,e,u),s&&v[e]!=o&&(v[e]=o)};g.core=y,b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,n.exports=b},{116:116,50:50,52:52,68:68,70:70}],61:[function(t,n,r){var e=t(150)("match");n.exports=function(n){var r=/./;try{"/./"[n](r)}catch(t){try{return r[e]=!1,!"/./"[n](r)}catch(t){}}return!0}},{150:150}],62:[function(t,n,r){arguments[4][21][0].apply(r,arguments)},{21:21}],63:[function(t,n,r){"use strict";t(246);var s=t(116),l=t(70),h=t(62),p=t(55),v=t(150),g=t(118),y=v("species"),d=!h(function(){var t=/./
;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),x=function(){var r=/(?:)/,n=r.exec;r.exec=function(){return n.apply(this,arguments)};r="ab".split(r);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();n.exports=function(r,t,a){var u,f,e=v(r),o=!h(function(){var t={};return t[e]=function(){return 7},7!=""[r](t)}),c=o?!h(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===r&&(n.constructor={},n.constructor[y]=function(){return n}),n[e](""),!t}):void 0;o&&c&&("replace"!==r||d)&&("split"!==r||x)||(u=/./[e],a=(c=a(p,e,""[r],function(t,n,r,e,i){return n.exec===g?o&&!i?{done:!0,value:u.call(n,r,e)}:{
done:!0,value:t.call(r,n,e)}:{done:!1}}))[0],f=c[1],s(String.prototype,r,a),l(RegExp.prototype,e,2==t?function(t,n){return f.call(t,this,n)}:function(t){return f.call(t,this)}))}},{116:116,118:118,150:150,246:246,55:55,62:62,70:70}],64:[function(t,n,r){"use strict";var e=t(36);n.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{36:36}],65:[function(t,n,r){"use strict";var p=t(77),v=t(79),g=t(139),y=t(52),d=t(150)("isConcatSpreadable");n.exports=function flattenIntoArray(t,n,r,e,i,o,u,c){for(var a,f,s=i,l=0,h=!!u&&y(u,c,3);l<e;){if(l in r){if(a=h?h(r[l],l,n
):r[l],f=!1,v(a)&&(f=void 0!==(f=a[d])?!!f:p(a)),f&&0<o)s=flattenIntoArray(t,n,a,g(a.length),s,o-1)-1;else{if(9007199254740991<=s)throw TypeError();t[s]=a}s++}l++}return s}},{139:139,150:150,52:52,77:77,79:79}],66:[function(t,n,r){var h=t(52),p=t(81),v=t(76),g=t(36),y=t(139),d=t(151),x={},m={};(r=n.exports=function(t,n,r,e,f){var o,u,c,a,f=f?function(){return t}:d(t),s=h(r,e,n?2:1),l=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(v(f)){for(o=y(t.length);l<o;l++)if((a=n?s(g(u=t[l])[0],u[1]):s(t[l]))===x||a===m)return a}else for(c=f.call(t);!(u=c.next()).done;)if((a=p(c,s,u.value,n))===x||a===m)return a}).BREAK=x,r.RETURN=m},{139:139,
151:151,36:36,52:52,76:76,81:81}],67:[function(t,n,r){n.exports=t(124)("native-function-to-string",Function.toString)},{124:124}],68:[function(t,n,r){arguments[4][22][0].apply(r,arguments)},{22:22}],69:[function(t,n,r){arguments[4][23][0].apply(r,arguments)},{23:23}],70:[function(t,n,r){arguments[4][24][0].apply(r,arguments)},{114:114,24:24,56:56,97:97}],71:[function(e,n,r){e=e(68).document;n.exports=e&&e.documentElement},{68:68}],72:[function(t,n,r){arguments[4][25][0].apply(r,arguments)},{25:25,56:56,57:57,62:62}],73:[function(t,n,r){var o=t(79),u=t(120).set;n.exports=function(t,i,r){var e,i=i.constructor;return i!==r&&"function"==typeof i&&(e=i.prototype
)!==r.prototype&&o(e)&&u&&u(t,e),t}},{120:120,79:79}],74:[function(t,n,r){n.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},{}],75:[function(t,n,r){var e=t(46);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},{46:46}],76:[function(t,n,r){var e=t(86),i=t(150)("iterator"),o=Array.prototype;n.exports=function(t){
return void 0!==t&&(e.Array===t||o[i]===t)}},{150:150,86:86}],77:[function(t,n,r){var e=t(46);n.exports=Array.isArray||function(t){return"Array"==e(t)}},{46:46}],78:[function(t,n,r){var e=t(79),i=Math.floor;n.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},{79:79}],79:[function(t,n,r){arguments[4][26][0].apply(r,arguments)},{26:26}],80:[function(t,n,r){var e=t(79),i=t(46),o=t(150)("match");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},{150:150,46:46,79:79}],81:[function(t,n,r){var o=t(36);n.exports=function(n,t,r,e){try{return e?t(o(r)[0],r[1]):t(r)}catch(t){var i=n.return;throw void 0!==i&&o(i.call(n)),t}}},{
36:36}],82:[function(t,n,r){"use strict";var e=t(96),i=t(114),o=t(122),u={};t(70)(u,t(150)("iterator"),function(){return this}),n.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},{114:114,122:122,150:150,70:70,96:96}],83:[function(t,n,r){"use strict";function In(){return this}var x=t(87),m=t(60),S=t(116),b=t(70),w=t(86),_=t(82),E=t(122),O=t(103),I=t(150)("iterator"),F=!([].keys&&"next"in[].keys()),P="values";n.exports=function(t,n,r,d,i,o,u){function Qn(t){if(!F&&t in p)return p[t];switch(t){case"keys":case P:return function(){return new r(this,t)}}return function(){return new r(this,t)}}_(r,n,d);var c,a,f,s=n+" Iterator",l=i==P,
h=!1,p=t.prototype,v=p[I]||p["@@iterator"]||i&&p[i],g=v||Qn(i),y=i?l?Qn("entries"):g:void 0,d="Array"==n&&p.entries||v;if(d&&(f=O(d.call(new t)))!==Object.prototype&&f.next&&(E(f,s,!0),x||"function"==typeof f[I]||b(f,I,In)),l&&v&&v.name!==P&&(h=!0,g=function(){return v.call(this)}),x&&!u||!F&&!h&&p[I]||b(p,I,g),w[n]=g,w[s]=In,i)if(c={values:l?g:Qn(P),keys:o?g:Qn("keys"),entries:y},u)for(a in c)a in p||S(p,a,c[a]);else m(m.P+m.F*(F||h),n,c);return c}},{103:103,116:116,122:122,150:150,60:60,70:70,82:82,86:86,87:87}],84:[function(t,n,r){var o=t(150)("iterator"),u=!1;try{var e=[7][o]();e.return=function(){u=!0},Array.from(e,function(){throw 2})}catch(t){}
n.exports=function(t,n){if(!n&&!u)return!1;var r=!1;try{var e=[7],i=e[o]();i.next=function(){return{done:r=!0}},e[o]=function(){return i},t(e)}catch(t){}return r}},{150:150}],85:[function(t,n,r){n.exports=function(t,n){return{value:n,done:!!t}}},{}],86:[function(t,n,r){n.exports={}},{}],87:[function(t,n,r){n.exports=!1},{}],88:[function(t,n,r){var e=Math.expm1;n.exports=!e||22025.465794806718<e(10)||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},{}],89:[function(e,n,r){var o=e(91),e=Math.pow,u=e(2,-52),c=e(2,-23),a=e(2,127)*(2-c),f=e(2,-126);n.exports=Math.fround||function(n){
var r=Math.abs(n),i=o(n);return r<f?i*(r/f/c+1/u-1/u)*f*c:a<(r=(n=(1+c/u)*r)-(n-r))||r!=r?i*(1/0):i*r}},{91:91}],90:[function(t,n,r){n.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],91:[function(t,n,r){n.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],92:[function(t,n,r){function lp(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})}var e=t(145)("meta"),i=t(79),o=t(69),u=t(97).f,c=0,a=Object.isExtensible||function(){return!0},f=!t(62)(function(){return a(Object.preventExtensions({}))}),s=n.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)
){if(!a(t))return"F";if(!n)return"E";lp(t)}return t[e].i},getWeak:function(t,n){if(!o(t,e)){if(!a(t))return!0;if(!n)return!1;lp(t)}return t[e].w},onFreeze:function(t){return f&&s.NEED&&a(t)&&!o(t,e)&&lp(t),t}}},{145:145,62:62,69:69,79:79,97:97}],93:[function(t,n,r){var u=t(68),c=t(134).set,a=u.MutationObserver||u.WebKitMutationObserver,f=u.process,s=u.Promise,l="process"==t(46)(f);n.exports=function(){function Ip(){var t,n;for(l&&(t=f.domain)&&t.exit();r;){n=r.fn,r=r.next;try{n()}catch(t){throw r?i():e=void 0,t}}e=void 0,t&&t.enter()}var r,e,t,i,n,o;return i=l?function(){f.nextTick(Ip)}:!a||u.navigator&&u.navigator.standalone?s&&s.resolve?(t=s.resolve(void 0
),function(){t.then(Ip)}):function(){c.call(u,Ip)}:(n=!0,o=document.createTextNode(""),new a(Ip).observe(o,{characterData:!0}),function(){o.data=n=!n}),function(n){n={fn:n,next:void 0};e&&(e.next=n),r||(r=n,i()),e=n}}},{134:134,46:46,68:68}],94:[function(t,n,r){"use strict";var i=t(31);function PromiseCapability(t){var r,e;this.promise=new t(function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n}),this.resolve=i(r),this.reject=i(e)}n.exports.f=function(t){return new PromiseCapability(t)}},{31:31}],95:[function(t,n,r){"use strict";var h=t(56),p=t(105),v=t(102),g=t(106),y=t(140),d=t(75),i=Object.assign;n.exports=!i||t(62)(
function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=i({},t)[r]||Object.keys(i({},n)).join("")!=e})?function(t){for(var r=y(t),e=arguments.length,i=1,o=v.f,u=g.f;i<e;)for(var c,a=d(arguments[i++]),f=o?p(a).concat(o(a)):p(a),s=f.length,l=0;l<s;)c=f[l++],h&&!u.call(a,c)||(r[c]=a[c]);return r}:i},{102:102,105:105,106:106,140:140,56:56,62:62,75:75}],96:[function(e,t,n){function Hq(){}var i=e(36),o=e(98),u=e(58),c=e(123)("IE_PROTO"),a="prototype",f=function(){var t=e(57)("iframe"),r=u.length;for(t.style.display="none",e(71).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),
t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f[a][u[r]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(Hq[a]=i(t),r=new Hq,Hq[a]=null,r[c]=t):r=f(),void 0===n?r:o(r,n)}},{123:123,36:36,57:57,58:58,71:71,98:98}],97:[function(t,n,r){arguments[4][27][0].apply(r,arguments)},{141:141,27:27,36:36,56:56,72:72}],98:[function(t,n,r){var u=t(97),c=t(36),a=t(105);n.exports=t(56)?Object.defineProperties:function(t,n){c(t);for(var r,e=a(n),i=e.length,o=0;o<i;)u.f(t,r=e[o++],n[r]);return t}},{105:105,36:36,56:56,97:97}],99:[function(t,n,r){var e=t(106),i=t(114),o=t(138),u=t(141),c=t(69),a=t(72),
f=Object.getOwnPropertyDescriptor;r.f=t(56)?f:function(t,n){if(t=o(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},{106:106,114:114,138:138,141:141,56:56,69:69,72:72}],100:[function(t,n,r){var e=t(138),i=t(101).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},{101:101,138:138}],101:[function(t,n,r){var e=t(104),i=t(58).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},{104:104,58:58}],
102:[function(t,n,r){r.f=Object.getOwnPropertySymbols},{}],103:[function(t,n,r){var e=t(69),i=t(140),o=t(123)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},{123:123,140:140,69:69}],104:[function(t,n,r){var u=t(69),c=t(138),a=t(39)(!1),f=t(123)("IE_PROTO");n.exports=function(t,n){var r,e=c(t),i=0,o=[];for(r in e)r!=f&&u(e,r)&&o.push(r);for(;n.length>i;)u(e,r=n[i++])&&(~a(o,r)||o.push(r));return o}},{123:123,138:138,39:39,69:69}],105:[function(t,n,r){var e=t(104),i=t(58)
;n.exports=Object.keys||function(t){return e(t,i)}},{104:104,58:58}],106:[function(t,n,r){r.f={}.propertyIsEnumerable},{}],107:[function(t,n,r){var i=t(60),o=t(50),u=t(62);n.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],e={};e[t]=n(r),i(i.S+i.F*u(function(){r(1)}),"Object",e)}},{50:50,60:60,62:62}],108:[function(t,n,r){var a=t(56),f=t(105),s=t(138),l=t(106).f;n.exports=function(c){return function(t){for(var n,r=s(t),e=f(r),i=e.length,o=0,u=[];o<i;)n=e[o++],a&&!l.call(r,n)||u.push(c?[n,r[n]]:r[n]);return u}}},{105:105,106:106,138:138,56:56}],109:[function(u,n,r){var e=u(101),i=u(102),o=u(36),u=u(68).Reflect;n.exports=u&&u.ownKeys||function(t){
var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},{101:101,102:102,36:36,68:68}],110:[function(t,n,r){var e=t(68).parseFloat,i=t(132).trim;n.exports=1/e(t(133)+"-0")!=-1/0?function(r){var n=i(String(r),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},{132:132,133:133,68:68}],111:[function(o,n,r){var e=o(68).parseInt,i=o(132).trim,o=o(133),u=/^[-+]?0[xX]/;n.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(r,n){r=i(String(r),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},{132:132,133:133,68:68}],112:[function(t,n,r){n.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],113:[function(t,n,r){var e=t(36),i=t(79),o=t(94);n.exports=function(r,
n){if(e(r),i(n)&&n.constructor===r)return n;r=o.f(r);return(0,r.resolve)(n),r.promise}},{36:36,79:79,94:94}],114:[function(t,n,r){arguments[4][28][0].apply(r,arguments)},{28:28}],115:[function(t,n,r){var i=t(116);n.exports=function(t,n,r){for(var e in n)i(t,e,n[e],r);return t}},{116:116}],116:[function(t,n,r){var o=t(68),u=t(70),c=t(69),a=t(145)("src"),e=t(67),i="toString",f=(""+e).split(i);t(50).inspectSource=function(t){return e.call(t)},(n.exports=function(t,n,r,e){var i="function"==typeof r;i&&(c(r,"name")||u(r,"name",n)),t[n]!==r&&(i&&(c(r,a)||u(r,a,t[n]?""+t[n]:f.join(String(n)))),t===o?t[n]=r:e?t[n]?t[n]=r:u(t,n,r):(delete t[n],u(t,n,r)))})(
Function.prototype,i,function(){return"function"==typeof this&&this[a]||e.call(this)})},{145:145,50:50,67:67,68:68,69:69,70:70}],117:[function(t,n,r){"use strict";var i=t(45),o=RegExp.prototype.exec;n.exports=function(t,n){var e=t.exec;if("function"==typeof e){e=e.call(t,n);if("object"!=typeof e)throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},{45:45}],118:[function(i,n,r){"use strict";var e,u=i(64),c=RegExp.prototype.exec,a=String.prototype.replace,o=c,f="lastIndex",s=(e=/a/,i=/b*/g,c.call(e,"a"),
c.call(i,"a"),0!==e[f]||0!==i[f]),l=void 0!==/()??/.exec("")[1];(s||l)&&(o=function(t){var n,r,e,i,o=this;return l&&(r=new RegExp("^"+o.source+"$(?!\\s)",u.call(o))),s&&(n=o[f]),e=c.call(o,t),s&&e&&(o[f]=o.global?e.index+e[0].length:n),l&&e&&1<e.length&&a.call(e[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(e[i]=void 0)}),e}),n.exports=o},{64:64}],119:[function(t,n,r){n.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},{}],120:[function(n,t,r){function Ou(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")}var e=n(79),i=n(36);t.exports={set:Object.setPrototypeOf||(
"__proto__"in{}?function(t,r,e){try{(e=n(52)(Function.call,n(99).f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(t){r=!0}return function(t,n){return Ou(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:Ou}},{36:36,52:52,79:79,99:99}],121:[function(t,n,r){"use strict";var e=t(68),i=t(97),o=t(56),u=t(150)("species");n.exports=function(n){n=e[n];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},{150:150,56:56,68:68,97:97}],122:[function(t,n,r){var e=t(97).f,i=t(69),o=t(150)("toStringTag");n.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},{150:150,69:69,97:97}],123:[
function(t,n,r){var e=t(124)("keys"),i=t(145);n.exports=function(t){return e[t]||(e[t]=i(t))}},{124:124,145:145}],124:[function(t,n,r){var e=t(50),i=t(68),o="__core-js_shared__",u=i[o]||(i[o]={});(n.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:t(87)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{50:50,68:68,87:87}],125:[function(t,n,r){var i=t(36),o=t(31),u=t(150)("species");n.exports=function(e,n){var r,e=i(e).constructor;return void 0===e||null==(r=i(e)[u])?n:o(r)}},{150:150,31:31,36:36}],126:[function(t,n,r){"use strict";var e=t(62);n.exports=function(t,n){return!!t&&e(
function(){n?t.call(null,function(){},1):t.call(null)})}},{62:62}],127:[function(t,n,r){var a=t(137),f=t(55);n.exports=function(c){return function(u,r){var e,i=String(f(u)),o=a(r),u=i.length;return o<0||u<=o?c?"":void 0:(r=i.charCodeAt(o))<55296||56319<r||o+1===u||(e=i.charCodeAt(o+1))<56320||57343<e?c?i.charAt(o):r:c?i.slice(o,o+2):e-56320+(r-55296<<10)+65536}}},{137:137,55:55}],128:[function(t,n,r){var e=t(80),i=t(55);n.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},{55:55,80:80}],129:[function(t,n,r){function sw(o,n,r,e){var i=String(u(o)),o="<"+n;return""!==r&&(o+=" "+r+'="'+String(e).replace(c
,"&quot;")+'"'),o+">"+i+"</"+n+">"}var e=t(60),i=t(62),u=t(55),c=/"/g;n.exports=function(n,t){var r={};r[n]=t(sw),e(e.P+e.F*i(function(){var t=""[n]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",r)}},{55:55,60:60,62:62}],130:[function(t,n,r){var s=t(139),l=t(131),h=t(55);n.exports=function(a,c,f,e){var i=String(h(a)),a=i.length,f=void 0===f?" ":String(f),c=s(c);if(c<=a||""==f)return i;a=c-a,f=l.call(f,Math.ceil(a/f.length));return f.length>a&&(f=f.slice(0,a)),e?f+i:i+f}},{131:131,139:139,55:55}],131:[function(t,n,r){"use strict";var i=t(137),o=t(55);n.exports=function(t){var n=String(o(this)),r="",e=i(t);if(e<0||e==1/0)throw RangeError(
"Count can't be negative");for(;0<e;(e>>>=1)&&(n+=n))1&e&&(r+=n);return r}},{137:137,55:55}],132:[function(i,n,r){function lx(t,o,r){var e={},i=c(function(){return!!a[t]()||"…"!="…"[t]()}),o=e[t]=i?o(s):a[t];r&&(e[r]=o),u(u.P+u.F*i,"String",e)}var u=i(60),e=i(55),c=i(62),a=i(133),i="["+a+"]",o=RegExp("^"+i+i+"*"),f=RegExp(i+i+"*$"),s=lx.trim=function(t,n){return t=String(e(t)),1&n&&(t=t.replace(o,"")),2&n&&(t=t.replace(f,"")),t};n.exports=lx},{133:133,55:55,60:60,62:62}],133:[function(t,n,r){n.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},{}],134:[function(i,n,r){function Rx(){var n,t=+this;d.hasOwnProperty(t)&&(n=d[t],delete d[t],n())}
function Sx(t){Rx.call(t.data)}var e,u=i(52),c=i(74),a=i(71),f=i(57),s=i(68),l=s.process,h=s.setImmediate,p=s.clearImmediate,o=s.MessageChannel,g=s.Dispatch,y=0,d={},x="onreadystatechange";h&&p||(h=function(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);return d[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},p=function(t){delete d[t]},"process"==i(46)(l)?e=function(t){l.nextTick(u(Rx,t,1))}:g&&g.now?e=function(t){g.now(u(Rx,t,1))}:o?(o=(i=new o).port2,i.port1.onmessage=Sx,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener(
"message",Sx,!1)):e=x in f("script")?function(t){a.appendChild(f("script"))[x]=function(){a.removeChild(this),Rx.call(t)}}:function(t){setTimeout(u(Rx,t,1),0)}),n.exports={set:h,clear:p}},{46:46,52:52,57:57,68:68,71:71,74:74}],135:[function(t,n,r){var e=t(137),i=Math.max,o=Math.min;n.exports=function(t,n){return(t=e(t))<0?i(t+n,0):o(t,n)}},{137:137}],136:[function(t,n,r){var e=t(137),i=t(139);n.exports=function(r){if(void 0===r)return 0;var n=e(r),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},{137:137,139:139}],137:[function(t,n,r){var e=Math.ceil,i=Math.floor;n.exports=function(t){return isNaN(t=+t)?0:(0<t?i:e)(t)}},{}],138:[function(t,n,r){
var e=t(75),i=t(55);n.exports=function(t){return e(i(t))}},{55:55,75:75}],139:[function(t,n,r){var e=t(137),i=Math.min;n.exports=function(t){return 0<t?i(e(t),9007199254740991):0}},{137:137}],140:[function(t,n,r){var e=t(55);n.exports=function(t){return Object(e(t))}},{55:55}],141:[function(t,n,r){arguments[4][29][0].apply(r,arguments)},{29:29,79:79}],142:[function(wt,n,r){"use strict";var y,d,x,m,S,e,h,b,i,w,o,u,_,E,c,a,f,O,I,p,v,F,P,A,g,k,R,N,j,T,L,C,G,U,D,W,V,B,q,z,$,Y,J,H,K,Z,X,tt,nt,rt,et,it,ot,ut,ct,at,ft,st,lt,ht,pt,vt,gt,yt,dt,xt,mt,St,bt,_t,Et,Ot,It,Ft,Pt,At,Mt,kt,Rt,Nt,jt,Tt,Lt,Ct,Gt,Ut,Dt,Wt,Vt,Bt,qt,zt,$t;wt(56)?(y=wt(87),d=wt(68),x=wt(62),m=wt(
60),S=wt(144),e=wt(143),h=wt(52),b=wt(35),i=wt(114),w=wt(70),o=wt(115),u=wt(137),_=wt(139),E=wt(136),c=wt(135),a=wt(141),f=wt(69),O=wt(45),I=wt(79),p=wt(140),v=wt(76),F=wt(96),P=wt(103),A=wt(101).f,g=wt(151),qt=wt(145),jt=wt(150),zt=wt(40),k=wt(39),R=wt(125),N=wt(162),j=wt(86),T=wt(84),L=wt(121),C=wt(38),G=wt(37),U=wt(97),D=wt(99),W=U.f,V=D.f,B=d.RangeError,q=d.TypeError,z=d.Uint8Array,Y="Shared"+($="ArrayBuffer"),J="BYTES_PER_ELEMENT",H="prototype",wt=Array[H],K=e.ArrayBuffer,Z=e.DataView,X=zt(0),tt=zt(2),nt=zt(3),rt=zt(4),et=zt(5),it=zt(6),ot=k(!0),ut=k(!1),ct=N.values,at=N.keys,ft=N.entries,st=wt.lastIndexOf,lt=wt.reduce,ht=wt.reduceRight,pt=wt.join,
vt=wt.sort,gt=wt.slice,yt=wt.toString,dt=wt.toLocaleString,xt=jt("iterator"),mt=jt("toStringTag"),St=qt("typed_constructor"),bt=qt("def_constructor"),wt=S.CONSTR,_t=S.TYPED,Et=S.VIEW,Ot="Wrong length!",It=zt(1,function(t,n){return kt(R(t,t[bt]),n)}),Ft=x(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),Pt=!!z&&!!z[H].set&&x(function(){new z(1).set({})}),At=function(r,n){r=u(r);if(r<0||r%n)throw B("Wrong offset!");return r},Mt=function(t){if(I(t)&&_t in t)return t;throw q(t+" is not a typed array!")},kt=function(t,n){if(!(I(t)&&St in t))throw q("It is not a typed array constructor!");return new t(n)},Rt=function(t,n){return Nt(R(t,t[bt]),n)},
Nt=function(t,n){for(var r=0,e=n.length,i=kt(t,e);r<e;)i[r]=n[r++];return i},jt=function(t,n,r){W(t,n,{get:function(){return this._d[r]}})},Tt=function(a,l,argument_2){var n,r,e,i,o,u,c=p(a),a=arguments.length,f=1<a?l:void 0,s=void 0!==f,l=g(c);if(null!=l&&!v(l)){for(u=l.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(s&&2<a&&(f=h(f,argument_2,2)),n=0,r=_(c.length),i=kt(this,r);n<r;n++)i[n]=s?f(c[n],n):c[n];return i},Lt=function(){for(var t=0,n=arguments.length,r=kt(this,n);t<n;)r[t]=arguments[t++];return r},Ct=!!z&&x(function(){dt.call(new z(1))}),Gt=function(){return dt.apply(Ct?gt.call(Mt(this)):Mt(this),arguments)},Ut={
copyWithin:function(t,n,argument_2){return G.call(Mt(this),t,n,2<arguments.length?argument_2:void 0)},every:function(t,argument_1){return rt(Mt(this),t,1<arguments.length?argument_1:void 0)},fill:function(){return C.apply(Mt(this),arguments)},filter:function(t,argument_1){return Rt(this,tt(Mt(this),t,1<arguments.length?argument_1:void 0))},find:function(t,argument_1){return et(Mt(this),t,1<arguments.length?argument_1:void 0)},findIndex:function(t,argument_1){return it(Mt(this),t,1<arguments.length?argument_1:void 0)},forEach:function(t,argument_1){X(Mt(this),t,1<arguments.length?argument_1:void 0)},indexOf:function(t,argument_1){return ut(Mt(this),t,
1<arguments.length?argument_1:void 0)},includes:function(t,argument_1){return ot(Mt(this),t,1<arguments.length?argument_1:void 0)},join:function(){return pt.apply(Mt(this),arguments)},lastIndexOf:function(){return st.apply(Mt(this),arguments)},map:function(t,argument_1){return It(Mt(this),t,1<arguments.length?argument_1:void 0)},reduce:function(){return lt.apply(Mt(this),arguments)},reduceRight:function(){return ht.apply(Mt(this),arguments)},reverse:function(){for(var t,n=this,r=Mt(n).length,e=Math.floor(r/2),i=0;i<e;)t=n[i],n[i++]=n[--r],n[r]=t;return n},some:function(t,argument_1){return nt(Mt(this),t,1<arguments.length?argument_1:void 0)},sort:function(t
){return vt.call(Mt(this),t)},subarray:function(i,n){var r=Mt(this),e=r.length,i=c(i,e);return new(R(r,r[bt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,_((void 0===n?e:c(n,e))-i))}},Dt=function(t,n){return Rt(this,gt.call(Mt(this),t,n))},Wt=function(t,r){Mt(this);var n=At(r,1),r=this.length,e=p(t),i=_(e.length),o=0;if(r<i+n)throw B(Ot);for(;o<i;)this[n+o]=e[o++]},Vt={entries:function(){return ft.call(Mt(this))},keys:function(){return at.call(Mt(this))},values:function(){return ct.call(Mt(this))}},Bt=function(t,n){return I(t)&&t[_t]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},qt=function(t,n){return Bt(t,n=a(n,!0))?i(2,t[n]):V(t,n)},zt=function(t,n
,r){return!(Bt(t,n=a(n,!0))&&I(r)&&f(r,"value"))||f(r,"get")||f(r,"set")||r.configurable||f(r,"writable")&&!r.writable||f(r,"enumerable")&&!r.enumerable?W(t,n,r):(t[n]=r.value,t)},wt||(D.f=qt,U.f=zt),m(m.S+m.F*!wt,"Object",{getOwnPropertyDescriptor:qt,defineProperty:zt}),x(function(){yt.call({})})&&(yt=dt=function(){return pt.call(this)}),$t=o({},Ut),o($t,Vt),w($t,xt,Vt.values),o($t,{slice:Dt,set:Wt,constructor:function(){},toString:yt,toLocaleString:Gt}),jt($t,"buffer","b"),jt($t,"byteOffset","o"),jt($t,"byteLength","l"),jt($t,"length","e"),W($t,mt,{get:function(){return this[_t]}}),n.exports=function(a,l,v,o){function uC(t,i){W(t,i,{get:function(){return(
n=this._d).v[r](i*l+n.o,Ft);var n},set:function(e){return n=i,r=e,e=this._d,o&&(r=(r=Math.round(r))<0?0:255<r?255:255&r),void e.v[u](n*l+e.o,r,Ft);var n,r},enumerable:!0})}var h=a+((o=!!o)?"Clamped":"")+"Array",r="get"+a,u="set"+a,p=d[h],c=p||{},g=p&&P(p),s=!p||!S.ABV,a={},f=p&&p[H];s?(f=(p=v(function(t,n,s,e){b(t,p,h,"_d");var o,u,i,a=0,f=0;if(I(n)){if(!(n instanceof K||(i=O(n))==$||i==Y))return _t in n?Nt(p,n):Tt.call(p,n);i=n,f=At(s,l);s=n.byteLength;if(void 0===e){if(s%l)throw B(Ot);if((o=s-f)<0)throw B(Ot)}else if(s<(o=_(e)*l)+f)throw B(Ot);u=o/l}else u=E(n),i=new K(o=u*l);for(w(t,"_d",{b:i,o:f,l:o,e:u,v:new Z(i)});a<u;)uC(t,a++)}))[H]=F($t),w(f,
"constructor",p)):x(function(){p(1)})&&x(function(){new p(-1)})&&T(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=v(function(t,n,r,e){var i;return b(t,p,h),I(n)?n instanceof K||(i=O(n))==$||i==Y?void 0!==e?new c(n,At(r,l),e):void 0!==r?new c(n,At(r,l)):new c(n):_t in n?Nt(p,n):Tt.call(p,n):new c(E(n))}),X(g!==Function.prototype?A(c).concat(A(g)):A(c),function(t){t in p||w(p,t,c[t])}),p[H]=f,y||(f.constructor=p));s=f[xt],v=!!s&&("values"==s.name||null==s.name),g=Vt.values;w(p,St,!0),w(f,_t,h),w(f,Et,!0),w(f,bt,p),(o?new p(1)[mt]==h:mt in f)||W(f,mt,{get:function(){return h}}),a[h]=p,m(m.G+m.W+m.F*(p!=c),a),m(m.S,h,{BYTES_PER_ELEMENT:l}),m(
m.S+m.F*x(function(){c.of.call(p,1)}),h,{from:Tt,of:Lt}),J in f||w(f,J,l),m(m.P,h,Ut),L(h),m(m.P+m.F*Pt,h,{set:Wt}),m(m.P+m.F*!v,h,Vt),y||f.toString==yt||(f.toString=yt),m(m.P+m.F*x(function(){new p(1).slice()}),h,{slice:Dt}),m(m.P+m.F*(x(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!x(function(){f.toLocaleString.call([1,2])})),h,{toLocaleString:Gt}),j[h]=v?s:g,y||v||w(f,xt,g)}):n.exports=function(){}},{101:101,103:103,114:114,115:115,121:121,125:125,135:135,136:136,137:137,139:139,140:140,141:141,143:143,144:144,145:145,150:150,151:151,162:162,35:35,37:37,38:38,39:39,40:40,45:45,52:52,56:56,60:60,62:62,68:68,69:69,70:70,76:76,
79:79,84:84,86:86,87:87,96:96,97:97,99:99}],143:[function(j,n,r){"use strict";var N=j(68),i=j(56),o=j(87),u=j(144),c=j(70),a=j(115),f=j(62),s=j(35),l=j(137),h=j(139),p=j(136),v=j(101).f,g=j(97).f,y=j(38),d=j(122),x="ArrayBuffer",m="DataView",S="prototype",b="Wrong index!",w=N[x],_=N[m],j=N.Math,O=N.RangeError,I=N.Infinity,F=w,P=j.abs,A=j.pow,M=j.floor,k=j.log,R=j.LN2,N="byteLength",j="byteOffset",T=i?"_b":"buffer",L=i?"_l":N,C=i?"_o":j;function packIEEE754(t,n,o){var e,i,u=new Array(o),c=8*o-n-1,a=(1<<c)-1,f=a>>1,s=23===n?A(2,-24)-A(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=P(t))!=t||t===I?(i=t!=t?1:0,e=a):(e=M(k(t)/R),t*(o=A(2,-e))<1&&(e--,o*=2),2<=(
t+=1<=e+f?s/o:s*A(2,1-f))*o&&(e++,o/=2),a<=e+f?(i=0,e=a):1<=e+f?(i=(t*o-1)*A(2,n),e+=f):(i=t*A(2,f-1)*A(2,n),e=0));8<=n;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;0<c;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function unpackIEEE754(t,n,f){var e,i=8*f-n-1,o=(1<<i)-1,u=o>>1,c=i-7,a=f-1,f=t[a--],s=127&f;for(f>>=7;0<c;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;0<c;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:f?-I:I;e+=A(2,n),s-=u}return(f?-1:1)*e*A(2,s-n)}function unpackI32(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function packI8(t){return[255&t]}function packI16(t){return[255&t,t>>8&255]}function packI32(t){return[255&t,
t>>8&255,t>>16&255,t>>24&255]}function packF64(t){return packIEEE754(t,52,8)}function packF32(t){return packIEEE754(t,23,4)}function addGetter(t,n,r){g(t[S],n,{get:function(){return this[r]}})}function get(u,c,o,e){var i=p(+o);if(i+c>u[L])throw O(b);o=u[T]._b,u=i+u[C],c=o.slice(u,u+c);return e?c:c.reverse()}function set(t,n,u,e,i,o){u=p(+u);if(u+n>t[L])throw O(b);for(var c=t[T]._b,a=u+t[C],f=e(+i),s=0;s<n;s++)c[a+s]=f[o?s:n-s-1]}if(u.ABV){if(!f(function(){w(1)})||!f(function(){new w(-1)})||f(function(){return new w,new w(1.5),new w(NaN),w.name!=x})){for(var G,V=(w=function(t){return s(this,w),new F(p(t))})[S]=F[S],D=v(F),W=0;D.length>W;)(G=D[W++])in w||c(w,G
,F[G]);o||(V.constructor=w)}var V=new _(new w(2)),B=_[S].setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||a(_[S],{setInt8:function(t,n){B.call(this,t,n<<24>>24)},setUint8:function(t,n){B.call(this,t,n<<24>>24)}},!0)}else w=function(n){s(this,w,x);n=p(n);this._b=y.call(new Array(n),0),this[L]=n},_=function(t,i,r){s(this,_,m),s(t,w,m);var e=t[L],i=l(i);if(i<0||e<i)throw O("Wrong offset!");if(e<i+(r=void 0===r?e-i:h(r)))throw O("Wrong length!");this[T]=t,this[C]=i,this[L]=r},i&&(addGetter(w,N,"_l"),addGetter(_,"buffer","_b"),addGetter(_,N,"_l"),addGetter(_,j,"_o")),a(_[S],{getInt8:function(t){return get(this,1,t)[0]<<24>>24},
getUint8:function(t){return get(this,1,t)[0]},getInt16:function(t,n){n=get(this,2,t,n);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t,n){n=get(this,2,t,n);return n[1]<<8|n[0]},getInt32:function(t,argument_1){return unpackI32(get(this,4,t,argument_1))},getUint32:function(t,argument_1){return unpackI32(get(this,4,t,argument_1))>>>0},getFloat32:function(t,argument_1){return unpackIEEE754(get(this,4,t,argument_1),23,4)},getFloat64:function(t,argument_1){return unpackIEEE754(get(this,8,t,argument_1),52,8)},setInt8:function(t,n){set(this,1,t,packI8,n)},setUint8:function(t,n){set(this,1,t,packI8,n)},setInt16:function(t,n,argument_2){set(this,2,t,packI16,n,
argument_2)},setUint16:function(t,n,argument_2){set(this,2,t,packI16,n,argument_2)},setInt32:function(t,n,argument_2){set(this,4,t,packI32,n,argument_2)},setUint32:function(t,n,argument_2){set(this,4,t,packI32,n,argument_2)},setFloat32:function(t,n,argument_2){set(this,4,t,packF32,n,argument_2)},setFloat64:function(t,n,argument_2){set(this,8,t,packF64,n,argument_2)}});d(w,x),d(_,m),c(_[S],u.VIEW,!0),r[x]=w,r[m]=_},{101:101,115:115,122:122,136:136,137:137,139:139,144:144,35:35,38:38,56:56,62:62,68:68,70:70,87:87,97:97}],144:[function(f,n,r){for(var e,i=f(68),o=f(70),f=f(145),c=f("typed_array"),a=f("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,
h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,a,!0)):s=!1;n.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},{145:145,68:68,70:70}],145:[function(t,n,r){var e=0,i=Math.random();n.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},{}],146:[function(e,n,r){e=e(68).navigator;n.exports=e&&e.userAgent||""},{68:68}],147:[function(t,n,r){var e=t(79);n.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},{79:79}],148:[function(t,n,r){var e=t(68),i=t(
50),o=t(87),u=t(149),c=t(97).f;n.exports=function(t){var n=i.Symbol||(i.Symbol=!o&&e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},{149:149,50:50,68:68,87:87,97:97}],149:[function(t,n,r){r.f=t(150)},{150:150}],150:[function(t,n,r){var e=t(124)("wks"),i=t(145),o=t(68).Symbol,u="function"==typeof o;(n.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},{124:124,145:145,68:68}],151:[function(t,n,r){var e=t(45),i=t(150)("iterator"),o=t(86);n.exports=t(50).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},{150:150,45:45,50:50,86:86}],152:[function(t,n,r){var e=t(60);e(e.P,"Array",{
copyWithin:t(37)}),t(33)("copyWithin")},{33:33,37:37,60:60}],153:[function(t,n,r){"use strict";var e=t(60),i=t(40)(4);e(e.P+e.F*!t(126)([].every,!0),"Array",{every:function(t,argument_1){return i(this,t,argument_1)}})},{126:126,40:40,60:60}],154:[function(t,n,r){var e=t(60);e(e.P,"Array",{fill:t(38)}),t(33)("fill")},{33:33,38:38,60:60}],155:[function(t,n,r){"use strict";var e=t(60),i=t(40)(2);e(e.P+e.F*!t(126)([].filter,!0),"Array",{filter:function(t,argument_1){return i(this,t,argument_1)}})},{126:126,40:40,60:60}],156:[function(t,n,r){"use strict";var e=t(60),i=t(40)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{
findIndex:function(t,argument_1){return i(this,t,1<arguments.length?argument_1:void 0)}}),t(33)(o)},{33:33,40:40,60:60}],157:[function(t,n,r){"use strict";var e=t(60),i=t(40)(5),o="find",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{find:function(t,argument_1){return i(this,t,1<arguments.length?argument_1:void 0)}}),t(33)(o)},{33:33,40:40,60:60}],158:[function(o,n,r){"use strict";var e=o(60),i=o(40)(0),o=o(126)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t,argument_1){return i(this,t,argument_1)}})},{126:126,40:40,60:60}],159:[function(t,n,r){"use strict";var h=t(52),e=t(60),p=t(140),v=t(81),g=t(76),y=t(139),d=t(51),x=t(151);e(
e.S+e.F*!t(84)(function(t){Array.from(t)}),"Array",{from:function(c,l,argument_2){var n,r,e,i,o=p(c),u="function"==typeof this?this:Array,c=arguments.length,a=1<c?l:void 0,f=void 0!==a,s=0,l=x(o);if(f&&(a=h(a,2<c?argument_2:void 0,2)),null==l||u==Array&&g(l))for(r=new u(n=y(o.length));s<n;s++)d(r,s,f?a(o[s],s):o[s]);else for(i=l.call(o),r=new u;!(e=i.next()).done;s++)d(r,s,f?v(i,a,[e.value,s],!0):e.value);return r.length=s,r}})},{139:139,140:140,151:151,51:51,52:52,60:60,76:76,81:81,84:84}],160:[function(t,n,r){"use strict";var e=t(60),i=t(39)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!t(126)(o)),"Array",{indexOf:function(t,argument_1){
return u?o.apply(this,arguments)||0:i(this,t,argument_1)}})},{126:126,39:39,60:60}],161:[function(t,n,r){var e=t(60);e(e.S,"Array",{isArray:t(77)})},{60:60,77:77}],162:[function(t,n,r){"use strict";var e=t(33),i=t(85),o=t(86),u=t(138);n.exports=t(83)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},{138:138,33:33,83:83,85:85,86:86}],163:[function(t,n,r){"use strict";var e=t(60),i=t(138),o=[].join;e(e.P+e.F*(t(75)!=Object||!t(126)(o)),"Array",{
join:function(t){return o.call(i(this),void 0===t?",":t)}})},{126:126,138:138,60:60,75:75}],164:[function(t,n,r){"use strict";var e=t(60),i=t(138),o=t(137),u=t(139),c=[].lastIndexOf,a=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(a||!t(126)(c)),"Array",{lastIndexOf:function(t,argument_1){if(a)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(1<arguments.length&&(e=Math.min(e,o(argument_1))),e<0&&(e=r+e);0<=e;e--)if(e in n&&n[e]===t)return e||0;return-1}})},{126:126,137:137,138:138,139:139,60:60}],165:[function(t,n,r){"use strict";var e=t(60),i=t(40)(1);e(e.P+e.F*!t(126)([].map,!0),"Array",{map:function(t,argument_1){return i(this,t,
argument_1)}})},{126:126,40:40,60:60}],166:[function(t,n,r){"use strict";var e=t(60),i=t(51);e(e.S+e.F*t(62)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);t<n;)i(r,t,arguments[t++]);return r.length=n,r}})},{51:51,60:60,62:62}],167:[function(t,n,r){"use strict";var e=t(60),i=t(41);e(e.P+e.F*!t(126)([].reduceRight,!0),"Array",{reduceRight:function(t,argument_1){return i(this,t,arguments.length,argument_1,!0)}})},{126:126,41:41,60:60}],168:[function(t,n,r){"use strict";var e=t(60),i=t(41);e(e.P+e.F*!t(126)([].reduce,!0),"Array",{reduce:function(
t,argument_1){return i(this,t,arguments.length,argument_1,!1)}})},{126:126,41:41,60:60}],169:[function(t,n,r){"use strict";var e=t(60),i=t(71),f=t(46),s=t(135),l=t(139),h=[].slice;e(e.P+e.F*t(62)(function(){i&&h.call(i)}),"Array",{slice:function(t,n){var o=l(this.length),e=f(this);if(n=void 0===n?o:n,"Array"==e)return h.call(this,t,n);for(var i=s(t,o),o=s(n,o),u=l(o-i),c=new Array(u),a=0;a<u;a++)c[a]="String"==e?this.charAt(i+a):this[i+a];return c}})},{135:135,139:139,46:46,60:60,62:62,71:71}],170:[function(t,n,r){"use strict";var e=t(60),i=t(40)(3);e(e.P+e.F*!t(126)([].some,!0),"Array",{some:function(t,argument_1){return i(this,t,argument_1)}})},{126:126,
40:40,60:60}],171:[function(t,n,r){"use strict";var e=t(60),i=t(31),o=t(140),u=t(62),c=[].sort,a=[1,2,3];e(e.P+e.F*(u(function(){a.sort(void 0)})||!u(function(){a.sort(null)})||!t(126)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},{126:126,140:140,31:31,60:60,62:62}],172:[function(t,n,r){t(121)("Array")},{121:121}],173:[function(e,n,r){e=e(60);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},{60:60}],174:[function(i,n,r){var e=i(60),i=i(53);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},{53:53,60:60}],175:[function(t,n,r){"use strict";var e=t(60),i=t(140),o=t(141);e(e.P+e.F*t(62)(
function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},{140:140,141:141,60:60,62:62}],176:[function(t,n,r){var e=t(150)("toPrimitive"),i=Date.prototype;e in i||t(70)(i,e,t(54))},{150:150,54:54,70:70}],177:[function(t,n,r){var e=Date.prototype,i="Invalid Date",o="toString",u=e[o],c=e.getTime;new Date(NaN)+""!=i&&t(116)(e,o,function(){var t=c.call(this);return t==t?u.call(this):i})},{116:116}],178:[function(t,n,r){var e=t(60);e(e.P,"Function",{bind:t(44)})},{44:44,60:60}],179:[function(t,n,
r){"use strict";var e=t(79),i=t(103),o=t(150)("hasInstance"),u=Function.prototype;o in u||t(97).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},{103:103,150:150,79:79,97:97}],180:[function(t,n,r){var e=t(97).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||t(56)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},{56:56,97:97}],181:[function(t,n,r){"use strict";var e=t(47),i=t(147);n.exports=t(49)("Map",function(t){return function(argument_0){return t(this,
0<arguments.length?argument_0:void 0)}},{get:function(n){n=e.getEntry(i(this,"Map"),n);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},{147:147,47:47,49:49}],182:[function(u,n,r){var e=u(60),i=u(90),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},{60:60,90:90}],183:[function(i,n,r){var e=i(60),i=Math.asinh;e(e.S+e.F*!(i&&0<1/i(0)),"Math",{asinh:function asinh(t){return isFinite(t=+t)&&0!=t?t<0?-asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},{60:60}],184:[function(i,n,r){
var e=i(60),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{60:60}],185:[function(t,n,r){var e=t(60),i=t(91);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},{60:60,91:91}],186:[function(e,n,r){e=e(60);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{60:60}],187:[function(e,n,r){var e=e(60),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},{60:60}],188:[function(i,n,r){var e=i(60),i=i(88);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},{60:60,88:88}],189:[function(t,n,r){var e=t(60);e(e.S,"Math",{
fround:t(89)})},{60:60,89:89}],190:[function(e,n,r){var e=e(60),a=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,i=0,o=0,u=arguments.length,c=0;o<u;)c<(r=a(arguments[o++]))?(i=i*(e=c/r)*e+1,c=r):i+=0<r?(e=r/c)*e:r;return c===1/0?1/0:c*Math.sqrt(i)}})},{60:60}],191:[function(t,n,r){var e=t(60),i=Math.imul;e(e.S+e.F*t(62)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(o,u){var r=65535,e=+o,i=+u,o=r&e,u=r&i;return 0|o*u+((r&e>>>16)*u+o*(r&i>>>16)<<16>>>0)}})},{60:60,62:62}],192:[function(e,n,r){e=e(60);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{60:60}],193:[function(t,n,r){var e=t(60);e(e.S,"Math",{
log1p:t(90)})},{60:60,90:90}],194:[function(e,n,r){e=e(60);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{60:60}],195:[function(t,n,r){var e=t(60);e(e.S,"Math",{sign:t(91)})},{60:60,91:91}],196:[function(t,n,r){var e=t(60),i=t(88),o=Math.exp;e(e.S+e.F*t(62)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{60:60,62:62,88:88}],197:[function(t,n,r){var e=t(60),i=t(88),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},{60:60,88:88}],198:[function(e,n,r){e=e(60);e(e.S,"Math",{trunc:function(t
){return(0<t?Math.floor:Math.ceil)(t)}})},{60:60}],199:[function(t,n,r){"use strict";function wN(r){var n=s(r,!1);if("string"==typeof n&&2<n.length){var e,i,o=(n=x?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,c=n.slice(2),a=0,f=c.length;a<f;a++)if((u=c.charCodeAt(a))<48||i<u)return NaN;return parseInt(c,e)}}return+n}var e=t(68),i=t(69),o=t(46),u=t(73),s=t(141),c=t(62),a=t(101).f,f=t(99).f,l=t(97).f,h=t(132).trim,p="Number",v=e[p],g=v,y=v.prototype,d=o(t(96)(y))==p,
x="trim"in String.prototype;if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(n){var n=arguments.length<1?0:n,r=this;return r instanceof v&&(d?c(function(){y.valueOf.call(r)}):o(r)!=p)?u(new g(wN(n)),r,v):wN(n)};for(var m,S=t(56)?a(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),b=0;S.length>b;b++)i(g,m=S[b])&&!i(v,m)&&l(v,m,f(g,m));(v.prototype=y).constructor=v,t(116)(e,p,v)}},{101:101,116:116,132:132,141:141,46:46,56:56,62:62,68:68,69:69,73:73,96:96,97:97,99:99}],200:[function(e,n,r){e=e(60);e(e.S,"Number",{
EPSILON:Math.pow(2,-52)})},{60:60}],201:[function(t,n,r){var e=t(60),i=t(68).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},{60:60,68:68}],202:[function(t,n,r){var e=t(60);e(e.S,"Number",{isInteger:t(78)})},{60:60,78:78}],203:[function(e,n,r){e=e(60);e(e.S,"Number",{isNaN:function(t){return t!=t}})},{60:60}],204:[function(t,n,r){var e=t(60),i=t(78),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},{60:60,78:78}],205:[function(e,n,r){e=e(60);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{60:60}],206:[function(e,n,r){e=e(60);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})}
,{60:60}],207:[function(i,n,r){var e=i(60),i=i(110);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{110:110,60:60}],208:[function(i,n,r){var e=i(60),i=i(111);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},{111:111,60:60}],209:[function(t,n,r){"use strict";function PO(t,n){for(var r=-1,e=n;++r<6;)e+=t*u[r],u[r]=e%1e7,e=o(e/1e7)}function QO(t){for(var n=6,r=0;0<=--n;)r+=u[n],u[n]=o(r/t),r=r%t*1e7}function RO(){for(var r,t=6,n="";0<=--t;){""===n&&0!==t&&0===u[t]||(r=String(u[t]),n=""===n?r:n+l.call("0",7-r.length)+r)}return n}var e=t(60),f=t(137),s=t(32),l=t(131),i=1..toFixed,o=Math.floor,u=[0,0,0,0,0,0],
h="Number.toFixed: incorrect invocation!",p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)};e(e.P+e.F*(!!i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(62)(function(){i.call({})})),"Number",{toFixed:function(r){var e,i,o=s(this,h),u=f(r),c="",a="0";if(u<0||20<u)throw RangeError(h);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(c="-",o=-o),1e-21<o)if(r=(i=function(){for(var n=0,r=o*p(2,69,1);4096<=r;)n+=12,r/=4096;for(;2<=r;)n+=1,r/=2;return n}()-69)<0?o*p(2,-i,1):o/p(2,i,1),r*=4503599627370496,0<(i=52-i)){for(PO(0,r),e=u;7<=e;)PO(
1e7,0),e-=7;for(PO(p(10,e,1),0),e=i-1;23<=e;)QO(1<<23),e-=23;QO(1<<e),PO(1,1),QO(2),a=RO()}else PO(0,r),PO(1<<-i,0),a=RO()+l.call("0",u);return 0<u?c+((i=a.length)<=u?"0."+l.call("0",u-i)+a:a.slice(0,i-u)+"."+a.slice(i-u)):c+a}})},{131:131,137:137,32:32,60:60,62:62}],210:[function(t,n,r){"use strict";var e=t(60),i=t(62),o=t(32),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},{32:32,60:60,62:62}],211:[function(t,n,r){var e=t(60);e(e.S+e.F,"Object",{assign:t(95)})},{60:60,
95:95}],212:[function(t,n,r){var e=t(60);e(e.S,"Object",{create:t(96)})},{60:60,96:96}],213:[function(t,n,r){var e=t(60);e(e.S+e.F*!t(56),"Object",{defineProperties:t(98)})},{56:56,60:60,98:98}],214:[function(t,n,r){var e=t(60);e(e.S+e.F*!t(56),"Object",{defineProperty:t(97).f})},{56:56,60:60,97:97}],215:[function(t,n,r){var e=t(79),i=t(92).onFreeze;t(107)("freeze",function(n){return function(t){return n&&e(t)?n(i(t)):t}})},{107:107,79:79,92:92}],216:[function(t,n,r){var e=t(138),i=t(99).f;t(107)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},{107:107,138:138,99:99}],217:[function(t,n,r){t(107)("getOwnPropertyNames",function(
){return t(100).f})},{100:100,107:107}],218:[function(t,n,r){var e=t(140),i=t(103);t(107)("getPrototypeOf",function(){return function(t){return i(e(t))}})},{103:103,107:107,140:140}],219:[function(t,n,r){var e=t(79);t(107)("isExtensible",function(n){return function(t){return!!e(t)&&(!n||n(t))}})},{107:107,79:79}],220:[function(t,n,r){var e=t(79);t(107)("isFrozen",function(n){return function(t){return!e(t)||!!n&&n(t)}})},{107:107,79:79}],221:[function(t,n,r){var e=t(79);t(107)("isSealed",function(n){return function(t){return!e(t)||!!n&&n(t)}})},{107:107,79:79}],222:[function(t,n,r){var e=t(60);e(e.S,"Object",{is:t(119)})},{119:119,60:60}],223:[function(t,n,r
){var e=t(140),i=t(105);t(107)("keys",function(){return function(t){return i(e(t))}})},{105:105,107:107,140:140}],224:[function(t,n,r){var e=t(79),i=t(92).onFreeze;t(107)("preventExtensions",function(n){return function(t){return n&&e(t)?n(i(t)):t}})},{107:107,79:79,92:92}],225:[function(t,n,r){var e=t(79),i=t(92).onFreeze;t(107)("seal",function(n){return function(t){return n&&e(t)?n(i(t)):t}})},{107:107,79:79,92:92}],226:[function(t,n,r){var e=t(60);e(e.S,"Object",{setPrototypeOf:t(120).set})},{120:120,60:60}],227:[function(t,n,r){"use strict";var e=t(45),i={};i[t(150)("toStringTag")]="z",i+""!="[object z]"&&t(116)(Object.prototype,"toString",function(){
return"[object "+e(this)+"]"},!0)},{116:116,150:150,45:45}],228:[function(i,n,r){var e=i(60),i=i(110);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},{110:110,60:60}],229:[function(i,n,r){var e=i(60),i=i(111);e(e.G+e.F*(parseInt!=i),{parseInt:i})},{111:111,60:60}],230:[function(r,t,n){"use strict";function SR(){}function ZR(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n}function $R(s,r){var e;s._n||(s._n=!0,e=s._c,x(function(){for(var a=s._v,f=1==s._s,t=0;e.length>t;)!function(t){var n,r,e,i=f?t.ok:t.fail,o=t.resolve,u=t.reject,c=t.domain;try{i?(f||(2==s._h&&j(s),s._h=1),!0===i?n=a:(c&&c.enter(),n=i(a),c&&(c.exit(),e=!0)),n===t.promise?u(E(
"Promise-chain cycle")):(r=ZR(n))?r.call(n,o,u):o(n)):u(a)}catch(t){c&&!e&&c.exit(),u(t)}}(e[t++]);s._c=[],s._n=!1,r&&!s._h&&R(s)}))}function cS(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),$R(n,!0))}var e,i,o,u,c=r(87),a=r(68),f=r(52),k=r(45),l=r(60),h=r(79),p=r(31),v=r(35),g=r(66),y=r(125),d=r(134).set,x=r(93)(),m=r(94),S=r(112),b=r(146),w=r(113),_="Promise",E=a.TypeError,O=a.process,I=O&&O.versions,F=I&&I.v8||"",P=a[_],A="process"==k(O),M=i=m.f,k=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(150)("species")]=function(t){t(SR,SR)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(SR
)instanceof n&&0!==F.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),R=function(o){d.call(a,function(){var t,r,e=o._v,i=N(o);if(i&&(t=S(function(){A?O.emit("unhandledRejection",e,o):(r=a.onunhandledrejection)?r({promise:o,reason:e}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",e)}),o._h=A||N(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(n){d.call(a,function(){var t;A?O.emit("rejectionHandled",n):(t=a.onrejectionhandled)&&t({promise:n,reason:n._v})})},T=function(t){var r,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw E("Promise can't be resolved itself");(r=ZR(t)
)?x(function(){var n={_w:e,_d:!1};try{r.call(t,f(T,n,1),f(cS,n,1))}catch(t){cS.call(n,t)}}):(e._v=t,e._s=1,$R(e,!1))}catch(t){cS.call({_w:e,_d:!1},t)}}};k||(P=function(t){v(this,P,_,"_h"),p(t),e.call(this);try{t(f(T,this,1),f(cS,this,1))}catch(t){cS.call(this,t)}},(e=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(115)(P.prototype,{then:function(t,n){var r=M(y(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=A?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&$R(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){
var t=new e;this.promise=t,this.resolve=f(T,t,1),this.reject=f(cS,t,1)},m.f=M=function(t){return t===P||t===u?new o:i(t)}),l(l.G+l.W+l.F*!k,{Promise:P}),r(122)(P,_),r(121)(_),u=r(50)[_],l(l.S+l.F*!k,_,{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!k),_,{resolve:function(t){return w(c&&this===u?P:this,t)}}),l(l.S+l.F*!(k&&r(84)(function(t){P.all(t).catch(SR)})),_,{all:function(t){var u=this,n=M(u),c=n.resolve,a=n.reject,r=S(function(){var e=[],i=0,o=1;g(t,!1,function(t){var n=i++,r=!1;e.push(void 0),o++,u.resolve(t).then(function(t){r||(r=!0,e[n]=t,--o||c(e))},a)}),--o||c(e)});return r.e&&a(r.v),n.promise},race:function(t
){var n=this,r=M(n),e=r.reject,i=S(function(){g(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},{112:112,113:113,115:115,121:121,122:122,125:125,134:134,146:146,150:150,31:31,35:35,45:45,50:50,52:52,60:60,66:66,68:68,79:79,84:84,87:87,93:93,94:94}],231:[function(t,n,r){var e=t(60),o=t(31),u=t(36),c=(t(68).Reflect||{}).apply,a=Function.apply;e(e.S+e.F*!t(62)(function(){c(function(){})}),"Reflect",{apply:function(e,n,i){e=o(e),i=u(i);return c?c(e,n,i):a.call(e,n,i)}})},{31:31,36:36,60:60,62:62,68:68}],232:[function(t,n,r){var e=t(60),c=t(96),a=t(31),f=t(36),s=t(79),i=t(62),l=t(44),h=(t(68).Reflect||{}).construct,p=i(
function(){function F(){}return!(h(function(){},[],F)instanceof F)}),v=!i(function(){h(function(){})});e(e.S+e.F*(p||v),"Reflect",{construct:function(t,n,argument_2){a(t),f(n);var o=arguments.length<3?t:a(argument_2);if(v&&!p)return h(t,n,o);if(t==o){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var u=[null];return u.push.apply(u,n),new(l.apply(t,u))}u=o.prototype,o=c(s(u)?u:Object.prototype),u=Function.apply.call(t,o,n);return s(u)?u:o}})},{31:31,36:36,44:44,60:60,62:62,68:68,79:79,96:96}],233:[function(t,n,r){var e=t(97),i=t(60),o=t(
36),u=t(141);i(i.S+i.F*t(62)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},{141:141,36:36,60:60,62:62,97:97}],234:[function(t,n,r){var e=t(60),i=t(99).f,o=t(36);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},{36:36,60:60,99:99}],235:[function(t,n,r){"use strict";function AU(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)}var e=t(60),i=t(36);t(82)(AU,"Object",function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((
t=n[this._i++])in this._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new AU(t)}})},{36:36,60:60,82:82}],236:[function(t,n,r){var e=t(99),i=t(60),o=t(36);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},{36:36,60:60,99:99}],237:[function(t,n,r){var e=t(60),i=t(103),o=t(36);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},{103:103,36:36,60:60}],238:[function(t,n,r){var o=t(99),u=t(103),c=t(69),e=t(60),a=t(79),f=t(36);e(e.S,"Reflect",{get:function get(t,n,argument_2){var e,i=arguments.length<3?t:argument_2;return f(t)===i?t[n]:(e=o.f(t,n))?c(e,"value")?e.value:void 0!==e.get?e.get.call(i
):void 0:a(e=u(t))?get(e,n,i):void 0}})},{103:103,36:36,60:60,69:69,79:79,99:99}],239:[function(e,n,r){e=e(60);e(e.S,"Reflect",{has:function(t,n){return n in t}})},{60:60}],240:[function(t,n,r){var e=t(60),i=t(36),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},{36:36,60:60}],241:[function(t,n,r){var e=t(60);e(e.S,"Reflect",{ownKeys:t(109)})},{109:109,60:60}],242:[function(t,n,r){var e=t(60),i=t(36),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},{36:36,60:60}],243:[function(t,n,r){var e=t(60),i=t(120);i&&e(e.S,"Reflect",{
setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},{120:120,60:60}],244:[function(t,n,r){var c=t(97),a=t(99),f=t(103),s=t(69),e=t(60),l=t(114),h=t(36),p=t(79);e(e.S,"Reflect",{set:function set(t,n,r,argument_3){var e,o=arguments.length<4?t:argument_3,u=a.f(h(t),n);if(!u){if(p(e=f(t)))return set(e,n,r,o);u=l(0)}if(s(u,"value")){if(!1===u.writable||!p(o))return!1;if(e=a.f(o,n)){if(e.get||e.set||!1===e.writable)return!1;e.value=r,c.f(o,n,e)}else c.f(o,n,l(0,r));return!0}return void 0!==u.set&&(u.set.call(o,r),!0)}})},{103:103,114:114,36:36,60:60,69:69,79:79,97:97,99:99}],245:[function(t,n,r){var e=t(68),o=t(73),i=t(97).f,
u=t(101).f,c=t(80),a=t(64),f=e.RegExp,s=f,l=f.prototype,h=/a/g,p=/a/g,v=new f(h)!==h;if(t(56)&&(!v||t(62)(function(){return p[t(150)("match")]=!1,f(h)!=h||f(p)==p||"/a/i"!=f(h,"i")}))){f=function(t,n){var r=this instanceof f,e=c(t),i=void 0===n;return!r&&e&&t.constructor===f&&i?t:o(v?new s(e&&!i?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&i?a.call(t):n),r?this:l,f)};for(var g=u(s),y=0;g.length>y;)!function(n){n in f||i(f,n,{configurable:!0,get:function(){return s[n]},set:function(t){s[n]=t}})}(g[y++]);(l.constructor=f).prototype=l,t(116)(e,"RegExp",f)}t(121)("RegExp")},{101:101,116:116,121:121,150:150,56:56,62:62,64:64,68:68,73:73,80:80,97:97}],246:[
function(t,n,r){"use strict";var e=t(118);t(60)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},{118:118,60:60}],247:[function(t,n,r){t(56)&&"g"!=/./g.flags&&t(97).f(RegExp.prototype,"flags",{configurable:!0,get:t(64)})},{56:56,64:64,97:97}],248:[function(t,n,r){"use strict";var l=t(36),h=t(139),p=t(34),v=t(117);t(63)("match",1,function(e,i,f,s){return[function(t){var n=e(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,n):new RegExp(t)[i](String(n))},function(t){var n=s(f,t,this);if(n.done)return n.value;var r=l(t),e=String(this);if(!r.global)return v(r,e);for(var o=r.unicode,u=[],c=r.lastIndex=0;null!==(a=v(r,e));){var a=String(a[0]);""===(
u[c]=a)&&(r.lastIndex=p(e,h(r.lastIndex),o)),c++}return 0===c?null:u}]})},{117:117,139:139,34:34,36:36,63:63}],249:[function(t,n,r){"use strict";var _=t(36),e=t(140),E=t(139),O=t(137),I=t(34),F=t(117),P=Math.max,A=Math.min,h=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g;t(63)("replace",2,function(i,o,b,w){return[function(t,n){var r=i(this),e=null==t?void 0:t[o];return void 0!==e?e.call(t,r,n):b.call(String(r),t,n)},function(t,n){var r=w(b,t,this,n);if(r.done)return r.value;var e=_(t),i=String(this),o="function"==typeof n;o||(n=String(n));var c,u=e.global;u&&(c=e.unicode,e.lastIndex=0);for(var a=[];;){var f=F(e,i);if(null===f)break;if(a.push(
f),!u)break;""===String(f[0])&&(e.lastIndex=I(i,E(e.lastIndex),c))}for(var s,l="",h=0,p=0;p<a.length;p++){f=a[p];for(var v=String(f[0]),g=P(A(O(f.index),i.length),0),y=[],d=1;d<f.length;d++)y.push(void 0===(s=f[d])?s:String(s));var m,S=f.groups,S=o?(m=[v].concat(y,g,i),void 0!==S&&m.push(S),String(n.apply(void 0,m))):getSubstitution(v,i,g,y,S,n);h<=g&&(l+=i.slice(h,g)+S,h=g+v.length)}return l+i.slice(h)}];function getSubstitution(o,u,c,a,f,t){var s=c+o.length,l=a.length,n=v;return void 0!==f&&(f=e(f),n=p),b.call(t,n,function(t,n){var r;switch(n.charAt(0)){case"$":return"$";case"&":return o;case"`":return u.slice(0,c);case"'":return u.slice(s);case"<":
r=f[n.slice(1,-1)];break;default:var e=+n;if(0==e)return t;if(l<e){var i=h(e/10);return 0!==i&&i<=l?void 0===a[i-1]?n.charAt(1):a[i-1]+n.charAt(1):t}r=a[e-1]}return void 0===r?"":r})}})},{117:117,137:137,139:139,140:140,34:34,36:36,63:63}],250:[function(t,n,r){"use strict";var a=t(36),f=t(119),s=t(117);t(63)("search",1,function(e,i,u,c){return[function(t){var n=e(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,n):new RegExp(t)[i](String(n))},function(i){var o=c(u,i,this);if(o.done)return o.value;var r=a(i),o=String(this),i=r.lastIndex;f(i,0)||(r.lastIndex=0);o=s(r,o);return f(r.lastIndex,i)||(r.lastIndex=i),null===o?-1:o.index}]})},{117:117,119:119,
36:36,63:63}],251:[function(t,n,r){"use strict";var l=t(80),m=t(36),S=t(125),b=t(34),w=t(139),_=t(117),h=t(118),e=t(62),E=Math.min,p=[].push,u="split",v="length",g="lastIndex",O=4294967295,I=!e(function(){RegExp(O,"y")});t(63)("split",2,function(i,o,y,d){var x="c"=="abbc"[u](/(b)*/)[1]||4!="test"[u](/(?:)/,-1)[v]||2!="ab"[u](/(?:ab)*/)[v]||4!="."[u](/(.?)(.?)/)[v]||1<"."[u](/()()/)[v]||""[u](/.?/)[v]?function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!l(t))return y.call(r,t,n);for(var e,i,o,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),a=0,f=void 0===n?O:n>>>0,s=new RegExp(t.source,c+"g");(e=h.call(s,r)
)&&!(a<(i=s[g])&&(u.push(r.slice(a,e.index)),1<e[v]&&e.index<r[v]&&p.apply(u,e.slice(1)),o=e[0][v],a=i,u[v]>=f));)s[g]===e.index&&s[g]++;return a===r[v]?!o&&s.test("")||u.push(""):u.push(r.slice(a)),u[v]>f?u.slice(0,f):u}:"0"[u](void 0,0)[v]?function(t,n){return void 0===t&&0===n?[]:y.call(this,t,n)}:y;return[function(t,n){var r=i(this),e=null==t?void 0:t[o];return void 0!==e?e.call(t,r,n):x.call(String(r),t,n)},function(c,n){var o=d(x,c,this,n,x!==y);if(o.done)return o.value;var e=m(c),i=String(this),o=S(e,RegExp),u=e.unicode,c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(I?"y":"g"),a=new o(I?e:"^(?:"+e.source+")",c),f=void 0===n?O:n>>>0
;if(0==f)return[];if(0===i.length)return null===_(a,i)?[i]:[];for(var s=0,l=0,h=[];l<i.length;){a.lastIndex=I?l:0;var p,v=_(a,I?i:i.slice(l));if(null===v||(p=E(w(a.lastIndex+(I?0:l)),i.length))===s)l=b(i,l,u);else{if(h.push(i.slice(s,l)),h.length===f)return h;for(var g=1;g<=v.length-1;g++)if(h.push(v[g]),h.length===f)return h;l=s=p}}return h.push(i.slice(s)),h}]})},{117:117,118:118,125:125,139:139,34:34,36:36,62:62,63:63,80:80}],252:[function(n,t,r){"use strict";function PZ(t){n(116)(RegExp.prototype,u,t,!0)}n(247);var e=n(36),i=n(64),o=n(56),u="toString",c=/./[u];n(62)(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?PZ(function(){var t=e(this)
;return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):c.name!=u&&PZ(function(){return c.call(this)})},{116:116,247:247,36:36,56:56,62:62,64:64}],253:[function(t,n,r){"use strict";var e=t(47),i=t(147);n.exports=t(49)("Set",function(t){return function(argument_0){return t(this,0<arguments.length?argument_0:void 0)}},{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},{147:147,47:47,49:49}],254:[function(t,n,r){"use strict";t(129)("anchor",function(n){return function(t){return n(this,"a","name",t)}})},{129:129}],255:[function(t,n,r){"use strict";t(129)("big",function(t){return function(){return t(this,"big",
"","")}})},{129:129}],256:[function(t,n,r){"use strict";t(129)("blink",function(t){return function(){return t(this,"blink","","")}})},{129:129}],257:[function(t,n,r){"use strict";t(129)("bold",function(t){return function(){return t(this,"b","","")}})},{129:129}],258:[function(t,n,r){"use strict";var e=t(60),i=t(127)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},{127:127,60:60}],259:[function(t,n,r){"use strict";var e=t(60),u=t(139),c=t(128),a="endsWith",f=""[a];e(e.P+e.F*t(61)(a),"String",{endsWith:function(o,i){var n=c(this,o,a),r=1<arguments.length?i:void 0,i=u(n.length),i=void 0===r?i:Math.min(u(r),i),o=String(o);return f?f.call(n,o,i
):n.slice(i-o.length,i)===o}})},{128:128,139:139,60:60,61:61}],260:[function(t,n,r){"use strict";t(129)("fixed",function(t){return function(){return t(this,"tt","","")}})},{129:129}],261:[function(t,n,r){"use strict";t(129)("fontcolor",function(n){return function(t){return n(this,"font","color",t)}})},{129:129}],262:[function(t,n,r){"use strict";t(129)("fontsize",function(n){return function(t){return n(this,"font","size",t)}})},{129:129}],263:[function(i,n,r){var e=i(60),o=i(135),u=String.fromCharCode,i=String.fromCodePoint;e(e.S+e.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,i=0;i<e;){if(n=+arguments[i++],o(n,
1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?u(n):u(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},{135:135,60:60}],264:[function(t,n,r){"use strict";var e=t(60),i=t(128),o="includes";e(e.P+e.F*t(61)(o),"String",{includes:function(t,argument_1){return!!~i(this,t,o).indexOf(t,1<arguments.length?argument_1:void 0)}})},{128:128,60:60,61:61}],265:[function(t,n,r){"use strict";t(129)("italics",function(t){return function(){return t(this,"i","","")}})},{129:129}],266:[function(t,n,r){"use strict";var e=t(127)(!0);t(83)(String,"String",function(t){this._t=String(t),this._i=0},function(){var n=this._t,t=this._i
;return t>=n.length?{value:void 0,done:!0}:(t=e(n,t),this._i+=t.length,{value:t,done:!1})})},{127:127,83:83}],267:[function(t,n,r){"use strict";t(129)("link",function(n){return function(t){return n(this,"a","href",t)}})},{129:129}],268:[function(t,n,r){var e=t(60),u=t(138),c=t(139);e(e.S,"String",{raw:function(t){for(var n=u(t.raw),r=c(n.length),e=arguments.length,i=[],o=0;o<r;)i.push(String(n[o++])),o<e&&i.push(String(arguments[o]));return i.join("")}})},{138:138,139:139,60:60}],269:[function(t,n,r){var e=t(60);e(e.P,"String",{repeat:t(131)})},{131:131,60:60}],270:[function(t,n,r){"use strict";t(129)("small",function(t){return function(){return t(this,
"small","","")}})},{129:129}],271:[function(t,n,r){"use strict";var e=t(60),i=t(139),o=t(128),u="startsWith",c=""[u];e(e.P+e.F*t(61)(u),"String",{startsWith:function(e,r){var n=o(this,e,u),r=i(Math.min(1<arguments.length?r:void 0,n.length)),e=String(e);return c?c.call(n,e,r):n.slice(r,r+e.length)===e}})},{128:128,139:139,60:60,61:61}],272:[function(t,n,r){"use strict";t(129)("strike",function(t){return function(){return t(this,"strike","","")}})},{129:129}],273:[function(t,n,r){"use strict";t(129)("sub",function(t){return function(){return t(this,"sub","","")}})},{129:129}],274:[function(t,n,r){"use strict";t(129)("sup",function(t){return function(){
return t(this,"sup","","")}})},{129:129}],275:[function(t,n,r){"use strict";t(132)("trim",function(t){return function(){return t(this,3)}})},{132:132}],276:[function(t,n,r){"use strict";function t1(t){var n=W[t]=E(N[L]);return n._k=t,n}function w1(t,n){x(t);for(var r,e=y(n=b(n)),i=0,o=e.length;i<o;)H(t,r=e[i++],n[r]);return t}function y1(t){var n=U.call(this,t=w(t,!0));return!(this===B&&u(W,t)&&!u(V,t))&&(!(n||!u(this,t)||!u(W,t)||u(this,C)&&this[C][t])||n)}function z1(t,n){if(t=b(t),n=w(n,!0),t!==B||!u(W,n)||u(V,n)){var r=M(t,n);return!r||!u(W,n)||u(t,C)&&t[C][n]||(r.enumerable=!0),r}}function A1(t){for(var n,r=R(b(t)),e=[],i=0;r.length>i;)u(W,n=r[i++]
)||n==C||n==a||e.push(n);return e}function B1(t){for(var n,r=t===B,e=R(r?V:b(t)),i=[],o=0;e.length>o;)!u(W,n=e[o++])||r&&!u(B,n)||i.push(W[n]);return i}var e=t(68),u=t(69),i=t(56),o=t(60),c=t(116),a=t(92).KEY,f=t(62),z=t(124),l=t(122),h=t(145),p=t(150),v=t(149),g=t(148),y=t(59),d=t(77),x=t(36),m=t(79),S=t(140),b=t(138),w=t(141),_=t(114),E=t(96),O=t(100),I=t(99),F=t(102),P=t(97),tt=t(105),M=I.f,k=P.f,R=O.f,N=e.Symbol,j=e.JSON,T=j&&j.stringify,L="prototype",C=p("_hidden"),G=p("toPrimitive"),U={}.propertyIsEnumerable,D=z("symbol-registry"),W=z("symbols"),V=z("op-symbols"),B=Object[L],q="function"==typeof N&&!!F.f,z=e.QObject,$=!z||!z[L]||!z[L].findChild,Y=i&&f(
function(){return 7!=E(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(B,n);e&&delete B[n],k(t,n,r),e&&t!==B&&k(B,n,e)}:k,J=q&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},H=function(t,n,r){return t===B&&H(V,n,r),x(t),n=w(n,!0),x(r),u(W,n)?(r.enumerable?(u(t,C)&&t[C][n]&&(t[C][n]=!1),r=E(r,{enumerable:_(0,!1)})):(u(t,C)||k(t,C,_(1,{})),t[C][n]=!0),Y(t,n,r)):k(t,n,r)};q||(c((N=function(argument_0){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var n=h(0<arguments.length?argument_0:void 0),r=function(t){this===B&&r.call(V,t),u(this,C)&&u(
this[C],n)&&(this[C][n]=!1),Y(this,n,_(1,t))};return i&&$&&Y(B,n,{configurable:!0,set:r}),t1(n)})[L],"toString",function(){return this._k}),I.f=z1,P.f=H,t(101).f=O.f=A1,t(106).f=y1,F.f=B1,i&&!t(87)&&c(B,"propertyIsEnumerable",y1,!0),v.f=function(t){return t1(p(t))}),o(o.G+o.W+o.F*!q,{Symbol:N});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),K=0;Q.length>K;)p(Q[K++]);for(var Z=tt(p.store),X=0;Z.length>X;)g(Z[X++]);o(o.S+o.F*!q,"Symbol",{for:function(t){return u(D,t+="")?D[t]:D[t]=N(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in D)if(
D[n]===t)return n},useSetter:function(){$=!0},useSimple:function(){$=!1}}),o(o.S+o.F*!q,"Object",{create:function(t,n){return void 0===n?E(t):w1(E(t),n)},defineProperty:H,defineProperties:w1,getOwnPropertyDescriptor:z1,getOwnPropertyNames:A1,getOwnPropertySymbols:B1});tt=f(function(){F.f(1)});o(o.S+o.F*tt,"Object",{getOwnPropertySymbols:function(t){return F.f(S(t))}}),j&&o(o.S+o.F*(!q||f(function(){var t=N();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;i<arguments.length;)e.push(arguments[i++]);if(r=n=e[1],(m(n)||void 0!==t)&&!J(t))return d(n)||(n=function(t,n){if("function"==typeof r&&(
n=r.call(this,t,n)),!J(n))return n}),e[1]=n,T.apply(j,e)}}),N[L][G]||t(70)(N[L],G,N[L].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},{100:100,101:101,102:102,105:105,106:106,114:114,116:116,122:122,124:124,138:138,140:140,141:141,145:145,148:148,149:149,150:150,36:36,56:56,59:59,60:60,62:62,68:68,69:69,70:70,77:77,79:79,87:87,92:92,96:96,97:97,99:99}],277:[function(t,n,r){"use strict";var e=t(60),i=t(144),d=t(143),f=t(36),s=t(135),l=t(139),u=t(79),c=t(68).ArrayBuffer,h=t(125),p=d.ArrayBuffer,v=d.DataView,a=i.ABV&&c.isView,g=p.prototype.slice,y=i.VIEW,d="ArrayBuffer";e(e.G+e.W+e.F*(c!==p),{ArrayBuffer:p}),e(e.S+e.F*!i.CONSTR,d,{
isView:function(t){return a&&a(t)||u(t)&&y in t}}),e(e.P+e.U+e.F*t(62)(function(){return!new p(2).slice(1,void 0).byteLength}),d,{slice:function(t,n){if(void 0!==g&&void 0===n)return g.call(f(this),t);for(var o=f(this).byteLength,e=s(t,o),i=s(void 0===n?o:n,o),o=new(h(this,p))(l(i-e)),u=new v(this),c=new v(o),a=0;e<i;)c.setUint8(a++,u.getUint8(e++));return o}}),t(121)(d)},{121:121,125:125,135:135,139:139,143:143,144:144,36:36,60:60,62:62,68:68,79:79}],278:[function(t,n,r){var e=t(60);e(e.G+e.W+e.F*!t(144).ABV,{DataView:t(143).DataView})},{143:143,144:144,60:60}],279:[function(t,n,r){t(142)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}}
)},{142:142}],280:[function(t,n,r){t(142)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],281:[function(t,n,r){t(142)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],282:[function(t,n,r){t(142)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],283:[function(t,n,r){t(142)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],284:[function(t,n,r){t(142)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],285:[function(t,n,r){t(142)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},{
142:142}],286:[function(t,n,r){t(142)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},{142:142}],287:[function(t,n,r){t(142)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},{142:142}],288:[function(t,n,r){"use strict";function J4(t){return function(argument_0){return t(this,0<arguments.length?argument_0:void 0)}}var o,x=t(68),i=t(40)(0),u=t(116),c=t(92),a=t(95),f=t(48),s=t(79),l=t(147),h=t(147),p=!x.ActiveXObject&&"ActiveXObject"in x,v="WeakMap",g=c.getWeak,y=Object.isExtensible,d=f.ufstore,x={get:function(t){if(s(t)){var n=g(t);return!0===n?d(l(this,v)).get(t):n?n[this._i]:void 0}},set:function(t,n){
return f.def(l(this,v),t,n)}},m=n.exports=t(49)(v,J4,x,f,!0,!0);h&&p&&(a((o=f.getConstructor(J4,v)).prototype,x),c.NEED=!0,i(["delete","has","get","set"],function(e){var t=m.prototype,i=t[e];u(t,e,function(t,r){if(!s(t)||y(t))return i.call(this,t,r);this._f||(this._f=new o);r=this._f[e](t,r);return"set"==e?this:r})}))},{116:116,147:147,40:40,48:48,49:49,68:68,79:79,92:92,95:95}],289:[function(t,n,r){"use strict";var e=t(48),i=t(147),o="WeakSet";t(49)(o,function(t){return function(argument_0){return t(this,0<arguments.length?argument_0:void 0)}},{add:function(t){return e.def(i(this,o),t,!0)}},e,!1,!0)},{147:147,48:48,49:49}],290:[function(t,n,r){"use strict"
;var e=t(60),i=t(65),o=t(140),u=t(139),c=t(31),a=t(43);e(e.P,"Array",{flatMap:function(t,argument_1){var n,r,e=o(this);return c(t),n=u(e.length),r=a(e,0),i(r,e,e,n,0,1,t,argument_1),r}}),t(33)("flatMap")},{139:139,140:140,31:31,33:33,43:43,60:60,65:65}],291:[function(t,n,r){"use strict";var e=t(60),i=t(39)(!0);e(e.P,"Array",{includes:function(t,argument_1){return i(this,t,1<arguments.length?argument_1:void 0)}}),t(33)("includes")},{33:33,39:39,60:60}],292:[function(t,n,r){var e=t(60),i=t(108)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},{108:108,60:60}],293:[function(t,n,r){var e=t(60),a=t(109),f=t(138),s=t(99),l=t(51);e(e.S,"Object",{
getOwnPropertyDescriptors:function(t){for(var n,r,e=f(t),i=s.f,o=a(e),u={},c=0;o.length>c;)void 0!==(r=i(e,n=o[c++]))&&l(u,n,r);return u}})},{109:109,138:138,51:51,60:60,99:99}],294:[function(t,n,r){var e=t(60),i=t(108)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},{108:108,60:60}],295:[function(t,n,r){"use strict";var e=t(60),i=t(50),o=t(68),u=t(125),c=t(113);e(e.P+e.R,"Promise",{finally:function(n){var r=u(this,i.Promise||o.Promise),t="function"==typeof n;return this.then(t?function(t){return c(r,n()).then(function(){return t})}:n,t?function(t){return c(r,n()).then(function(){throw t})}:n)}})},{113:113,125:125,50:50,60:60,68:68}],296:[function(u,n
,r){"use strict";var e=u(60),i=u(130),u=u(146),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(u);e(e.P+e.F*u,"String",{padEnd:function(t,argument_1){return i(this,t,1<arguments.length?argument_1:void 0,!1)}})},{130:130,146:146,60:60}],297:[function(u,n,r){"use strict";var e=u(60),i=u(130),u=u(146),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(u);e(e.P+e.F*u,"String",{padStart:function(t,argument_1){return i(this,t,1<arguments.length?argument_1:void 0,!0)}})},{130:130,146:146,60:60}],298:[function(t,n,r){"use strict";t(132)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},{132:132}],299:[function(t,n,r){
"use strict";t(132)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},{132:132}],300:[function(t,n,r){t(148)("asyncIterator")},{148:148}],301:[function(f,n,r){for(var e=f(162),i=f(105),o=f(116),u=f(68),c=f(70),a=f(86),f=f(150),s=f("iterator"),l=f("toStringTag"),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,
SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),g=0;g<v.length;g++){var y,d=v[g],x=p[d],m=u[d],S=m&&m.prototype;if(S&&(S[s]||c(S,s,h),S[l]||c(S,l,d),a[d]=h,x))for(y in e)S[y]||o(S,y,e[y],!0)}},{105:105,116:116,150:150,162:162,68:68,70:70,86:86}],302:[function(i,n,r){var e=i(60),i=i(134);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},{134:134,60:60}],303:[function(c,n,r){function q7(i){return function(t,n){var r=2<arguments.length,e=r&&u.call(arguments,2);return i(r?function(){("function"==typeof t?t:Function(t)
).apply(this,e)}:t,n)}}var e=c(68),i=c(60),c=c(146),u=[].slice,c=/MSIE .\./.test(c);i(i.G+i.B+i.F*c,{setTimeout:q7(e.setTimeout),setInterval:q7(e.setInterval)})},{146:146,60:60,68:68}],304:[function(t,n,r){t(303),t(302),t(301),n.exports=t(50)},{301:301,302:302,303:303,50:50}],305:[function(t,n,r){var e=function(u){"use strict";var c,t=Object.prototype,f=t.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},i=g.iterator||"@@iterator",r=g.asyncIterator||"@@asyncIterator",e=g.toStringTag||"@@toStringTag";function wrap(t,o,r,u){o=o&&o.prototype instanceof Generator?o:Generator,o=Object.create(o.prototype),u=new Context(u||[]);return o._invoke=function(o,u,c){
var a=s;return function(t,n){if(a===h)throw new Error("Generator is already running");if(a===p){if("throw"===t)throw n;return doneResult()}for(c.method=t,c.arg=n;;){var r=c.delegate;if(r){var i=maybeInvokeDelegate(r,c);if(i){if(i===v)continue;return i}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(a===s)throw a=p,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);a=h;i=tryCatch(o,u,c);if("normal"===i.type){if(a=c.done?p:l,i.arg===v)continue;return{value:i.arg,done:c.done}}"throw"===i.type&&(a=p,c.method="throw",c.arg=i.arg)}}}(t,r,u),o}function tryCatch(t,n,r){try{return{type:"normal",arg:t.call(n,r)
}}catch(t){return{type:"throw",arg:t}}}u.wrap=wrap;var s="suspendedStart",l="suspendedYield",h="executing",p="completed",v={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var o={};o[i]=function(){return this};g=Object.getPrototypeOf,g=g&&g(g(values([])));g&&g!==t&&f.call(g,i)&&(o=g);var y=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(o);function defineIteratorMethods(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function AsyncIterator(c,a){var t;this._invoke=function(r,e){function callInvokeWithMethodAndArg(){return new a(function(t,n){
!function invoke(i,u,r,e){i=tryCatch(c[i],c,u);if("throw"!==i.type){var o=i.arg,u=o.value;return u&&"object"==typeof u&&f.call(u,"__await")?a.resolve(u.__await).then(function(t){invoke("next",t,r,e)},function(t){invoke("throw",t,r,e)}):a.resolve(u).then(function(t){o.value=t,r(o)},function(t){return invoke("throw",t,r,e)})}e(i.arg)}(r,e,t,n)})}return t=t?t.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,n){var i=t.iterator[n.method];if(i===c){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=c,maybeInvokeDelegate(t,n),"throw"===n.method))return v
;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}i=tryCatch(i,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;i=i.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function pushTryEntry(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function resetTryEntry(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}
function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function next(){for(;++r<t.length;)if(f.call(t,r))return next.value=t[r],next.done=!1,next;return next.value=c,next.done=!0,next};return e.next=e}}return{next:doneResult}}function doneResult(){return{value:c,done:!0}}return(GeneratorFunction.prototype=y.constructor=GeneratorFunctionPrototype).constructor=GeneratorFunction,GeneratorFunctionPrototype[e]=GeneratorFunction.displayName="GeneratorFunction",u.isGeneratorFunction=function(n){
n="function"==typeof n&&n.constructor;return!!n&&(n===GeneratorFunction||"GeneratorFunction"===(n.displayName||n.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,e in t||(t[e]="GeneratorFunction")),t.prototype=Object.create(y),t},u.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[r]=function(){return this},u.AsyncIterator=AsyncIterator,u.async=function(t,n,r,e,i){void 0===i&&(i=Promise);var o=new AsyncIterator(wrap(t,n,r,e),i);return u.isGeneratorFunction(n)?o:o.next().then(function(t){
return t.done?t.value:o.next()})},defineIteratorMethods(y),y[e]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in n)return next.value=t,next.done=!1,next}return next.done=!0,next}},u.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)"t"===n.charAt(0)&&f.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=c)},
stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function handle(t,n){return i.type="throw",i.arg=r,e.next=t,n&&(e.method="next",e.arg=c),!!n}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],i=n.completion;if("root"===n.tryLoc)return handle("end");if(n.tryLoc<=this.prev){var o=f.call(n,"catchLoc"),u=f.call(n,"finallyLoc");if(o&&u){if(this.prev<n.catchLoc)return handle(n.catchLoc,!0);if(this.prev<n.finallyLoc)return handle(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return handle(n.catchLoc,!0)}else{if(!u
)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return handle(n.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;0<=r;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&f.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var i=e;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=n,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",
this.next="end"):"normal"===t.type&&n&&(this.next=n),v},finish:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),v}},catch:function(t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var i,e=r.completion;return"throw"===e.type&&(i=e.arg,resetTryEntry(r)),i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=c),v}},u}("object"==typeof n?n.exports:{});try{regeneratorRuntime=e}catch(t){
Function("r","regeneratorRuntime = r")(e)}},{}],306:[function(e,n,r){"use strict";e(307);e=function(t){return t&&t.__esModule?t:{default:t}}(e(13));e.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),e.default._babelPolyfill=!0},{13:13,307:307}],307:[function(t,n,r){"use strict";t(1),t(3),t(2),t(9),t(8),t(11),t(10),t(12),t(5),t(6),
t(4),t(7),t(304),t(305)},{1:1,10:10,11:11,12:12,2:2,3:3,304:304,305:305,4:4,5:5,6:6,7:7,8:8,9:9}]},{},[306]),define("babel-polyfill",function(){}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("lib/moment-timezone.min",["moment"],b):"object"==typeof module&&module.exports?module.exports=b(require("moment")):b(a.moment)}(this,function(a){"use strict";function b(a){return 96<a?a-87:64<a?a-29:a-48}function c(a){var d=0,j=a.split("."),f=j[0],g=j[1]||"",h=1,i=0,j=1;for(45===a.charCodeAt(0)&&(j=-(d=1));d<f.length;d++)i=60*i+b(f.charCodeAt(d));for(d=0;d<g.length;d++)h/=60,i+=b(g.charCodeAt(d))*h;return i*j}function d(a){for(
var b=0;b<a.length;b++)a[b]=c(a[b])}function f(a,b){for(var d=[],c=0;c<b.length;c++)d[c]=a[b[c]];return d}function g(h){var b=h.split("|"),c=b[2].split(" "),g=b[3].split(""),h=b[4].split(" ");return d(c),d(g),d(h),function(a,b){for(var c=0;c<b;c++)a[c]=Math.round((a[c-1]||0)+6e4*a[c]);a[b-1]=1/0}(h,g.length),{name:b[0],abbrs:f(b[1].split(" "),g),offsets:f(c,g),untils:h,population:0|b[5]}}function h(a){a&&this._set(g(a))}function i(a){var b=a.toTimeString(),c=b.match(/\([a-z ]+\)/i);"GMT"===(c=c&&c[0]?(c=c[0].match(/[A-Z]/g))?c.join(""):void 0:(c=b.match(/[A-Z]{3,5}/g))?c[0]:void 0)&&(c=void 0),this.at=+a,this.abbr=c,this.offset=a.getTimezoneOffset()}
function j(a){this.zone=a,this.offsetScore=0,this.abbrScore=0}function l(){for(var a,b,d=(new Date).getFullYear()-2,e=new i(new Date(d,0,1)),f=[e],c=1;c<48;c++)(b=new i(new Date(d,c,1))).offset!==e.offset&&(a=function(a,b){for(var c;c=6e4*((b.at-a.at)/12e4|0);)(c=new i(new Date(a.at+c))).offset===a.offset?a=c:b=c;return a}(e,b),f.push(a),f.push(new i(new Date(a.at+6e4)))),e=b;for(c=0;c<4;c++)f.push(new i(new Date(d+c,0,1))),f.push(new i(new Date(d+c,6,1)));return f}function m(a,b){return a.offsetScore!==b.offsetScore?a.offsetScore-b.offsetScore:a.abbrScore!==b.abbrScore?a.abbrScore-b.abbrScore:b.zone.population-a.zone.population}function n(a,b){var c,e;for(
d(b),c=0;c<b.length;c++)e=b[c],I[e]=I[e]||{},I[e][a]=!0}function p(){try{var a=Intl.DateTimeFormat().resolvedOptions().timeZone;if(a){var b=H[r(a)];if(b)return b;z("Moment Timezone found "+a+" from the Intl api, but did not have that data loaded.")}}catch(c){}for(var d,f,g=l(),h=g.length,i=function(a){for(var c,d,e=a.length,f={},g=[],b=0;b<e;b++)for(c in d=I[a[b].offset]||{})d.hasOwnProperty(c)&&(f[c]=!0);for(b in f)f.hasOwnProperty(b)&&g.push(H[b]);return g}(g),k=[],e=0;e<i.length;e++){for(d=new j(t(i[e])),f=0;f<h;f++)d.scoreOffsetAt(g[f]);k.push(d)}return k.sort(m),0<k.length?k[0].zone.name:void 0}function r(a){return(a||"").toLowerCase().replace(/\//g,"_"
)}function s(a){var b,c,d,e;for("string"==typeof a&&(a=[a]),b=0;b<a.length;b++)e=r(c=(d=a[b].split("|"))[0]),F[e]=a[b],H[e]=c,d[5]&&n(e,d[2].split(" "))}function t(a,b){a=r(a);var c,d=F[a];return d instanceof h?d:"string"==typeof d?(d=new h(d),F[a]=d):G[a]&&b!==t&&(c=t(G[a],t))?((d=F[a]=new h)._set(c),d.name=H[a],d):null}function v(a){var b,c,d,e;for("string"==typeof a&&(a=[a]),b=0;b<a.length;b++)d=r((c=a[b].split("|"))[0]),e=r(c[1]),G[d]=e,H[d]=c[0],G[e]=d,H[e]=c[1]}function w(a){s(a.zones),v(a.links),A.dataVersion=a.version}function x(a){return x.didShowError||(x.didShowError=!0,z(
"moment.tz.zoneExists('"+a+"') has been deprecated in favor of !moment.tz.zone('"+a+"')")),!!t(a)}function y(a){return!(!a._a||void 0!==a._tzm)}function z(a){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(a)}function A(b){var f=Array.prototype.slice.call(arguments,0,-1),d=arguments[arguments.length-1],e=t(d),f=a.utc.apply(null,f);return e&&!a.isMoment(b)&&y(f)&&f.add(e.parse(f),"minutes"),f.tz(d),f}function B(a){return function(){return this._z?this._z.abbr(this):a.call(this)}}if(void 0!==a.tz)return z("Moment Timezone "+a.tz.version+" was already loaded "+(a.tz.dataVersion?"with data from ":"without any data")+a.tz.dataVersion)
,a;var D,F={},G={},H={},I={},N=a.version.split("."),K=+N[0],L=+N[1];(K<2||2==K&&L<6)&&z("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+a.version+". See momentjs.com"),h.prototype={_set:function(a){this.name=a.name,this.abbrs=a.abbrs,this.untils=a.untils,this.offsets=a.offsets,this.population=a.population},_index:function(a){for(var c=+a,d=this.untils,b=0;b<d.length;b++)if(c<d[b])return b},parse:function(a){for(var b,c,d,f=+a,g=this.offsets,h=this.untils,i=h.length-1,e=0;e<i;e++)if(b=g[e],c=g[e+1],d=g[e&&e-1],b<c&&A.moveAmbiguousForward?b=c:d<b&&A.moveInvalidForward&&(b=d),f<h[e]-6e4*b)return g[e];return g[i]},abbr:function(a){
return this.abbrs[this._index(a)]},offset:function(a){return this.offsets[this._index(a)]}},j.prototype.scoreOffsetAt=function(a){this.offsetScore+=Math.abs(this.zone.offset(a.at)-a.offset),this.zone.abbr(a.at).replace(/[^A-Z]/g,"")!==a.abbr&&this.abbrScore++},A.version="0.5.10",A.dataVersion="",A._zones=F,A._links=G,A._names=H,A.add=s,A.link=v,A.load=w,A.zone=t,A.zoneExists=x,A.guess=function(a){return D&&!a||(D=p()),D},A.names=function(){var a,b=[];for(a in H)H.hasOwnProperty(a)&&(F[a]||F[G[a]])&&H[a]&&b.push(H[a]);return b.sort()},A.Zone=h,A.unpack=g,A.unpackBase60=c,A.needsOffset=y,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1;N=a.fn;a.tz=A,
a.defaultZone=null,a.updateOffset=function(b,c){var d=a.defaultZone;void 0===b._z&&(d&&y(b)&&!b._isUTC&&(b._d=a.utc(b._a)._d,b.utc().add(d.parse(b),"minutes")),b._z=d),b._z&&(d=b._z.offset(b),Math.abs(d)<16&&(d/=60),void 0!==b.utcOffset?b.utcOffset(-d,c):b.zone(d,c))},N.tz=function(b){return b?(this._z=t(b),this._z?a.updateOffset(this):z("Moment Timezone has no data for "+b+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},N.zoneName=B(N.zoneName),N.zoneAbbr=B(N.zoneAbbr),N.utc=function(a){return function(){return this._z=null,a.apply(this,arguments)}}(N.utc),a.tz.setDefault=function(b){return(K<2||2==K&&L<9)&&z(
"Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+a.version+"."),a.defaultZone=b?t(b):null,a};N=a.momentProperties;return"[object Array]"===Object.prototype.toString.call(N)?(N.push("_z"),N.push("_a")):N&&(N._z=null),w({version:"2016j",zones:["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT GHST|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5",
"Africa/Nairobi|LMT EAT BEAT BEAUT|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT WAT GMT|12.k 10 0|012|-2ldWV.E 2xonV.E|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5",
"Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6"
,"Africa/Casablanca|LMT WET WEST CET|u.k 0 -10 -10|0121212121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|32e5",
"Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1y7p0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3"
,"Africa/El_Aaiun|LMT WAT WET WEST|Q.M 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5",
"Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|01212121212121212121212121212121213|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0|51e5","Africa/Monrovia|MMT LRT GMT|H.8 I.u 0|012|-23Lzg.Q 29s01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5",
"Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5",
"Africa/Windhoek|SWAT SAST SAST CAT WAT WAST|-1u -20 -30 -20 -10 -20|012134545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2GJdu 1Ajdu 1cL0 1SqL0 9NA0 11D0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0|32e4",
"America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326"
,
"America/Anchorage|CAT CAWT CAPT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4"
,"America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT BRT BRST|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4",
"America/Argentina/Buenos_Aires|CMT ART ARST ART ARST|4g.M 40 30 30 20|0121212121212121212121212121212121212121213434343434343234343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 g0p0 10M0 j3c0 uL0 1qN0 WL0",
"America/Argentina/Catamarca|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|0121212121212121212121212121212121212121213434343454343235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 g0p0 10M0 ako0 7B0 8zb0 uL0",
"America/Argentina/Cordoba|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|0121212121212121212121212121212121212121213434343454343234343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 g0p0 10M0 j3c0 uL0 1qN0 WL0",
"America/Argentina/Jujuy|CMT ART ARST ART ARST WART WARST|4g.M 40 30 30 20 40 30|01212121212121212121212121212121212121212134343456543432343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 g0p0 10M0 j3c0 uL0",
"America/Argentina/La_Rioja|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|01212121212121212121212121212121212121212134343434534343235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 g0p0 10M0 ako0 7B0 8zb0 uL0",
"America/Argentina/Mendoza|CMT ART ARST ART ARST WART WARST|4g.M 40 30 30 20 40 30|0121212121212121212121212121212121212121213434345656543235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 g0p0 10M0 agM0 Op0 7TX0 uL0",
"America/Argentina/Rio_Gallegos|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|0121212121212121212121212121212121212121213434343434343235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 g0p0 10M0 ako0 7B0 8zb0 uL0",
"America/Argentina/Salta|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|01212121212121212121212121212121212121212134343434543432343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 g0p0 10M0 j3c0 uL0",
"America/Argentina/San_Juan|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|01212121212121212121212121212121212121212134343434534343235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 g0p0 10M0 ak00 m10 8lb0 uL0",
"America/Argentina/San_Luis|CMT ART ARST ART ARST WART WARST|4g.M 40 30 30 20 40 30|01212121212121212121212121212121212121212134343456536353465653|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 kin0 10M0 ak00 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0",
"America/Argentina/Tucuman|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|012121212121212121212121212121212121212121343434345434323534343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 g0p0 10M0 ako0 4N0 8BX0 uL0 1qN0 WL0",
"America/Argentina/Ushuaia|CMT ART ARST ART ARST WART|4g.M 40 30 30 20 40|0121212121212121212121212121212121212121213434343434343235343|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 g0p0 10M0 ajA0 8p0 8zb0 uL0","America/Curacao|LMT ANT AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4",
"America/Asuncion|AMT PYT PYT PYST|3O.E 40 30 30|012131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5"
,"America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia|LMT BRT BRST|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5",
"America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3",
"America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT BRT BRST|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5",
"America/Belize|LMT CST CHDT CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2",
"America/Boa_Vista|LMT AMT AMST|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT COT COST|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5",
"America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4"
,
"America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2"
,
"America/Campo_Grande|LMT AMT AMST|3C.s 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|77e4"
,"America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT VET VET|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT GFT GFT|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5",
"America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5"
,"America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4",
"America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2",
"America/Cuiaba|LMT AMT AMST|3I.k 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|54e4"
,"America/Danmarkshavn|LMT WGT WGST GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8",
"America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2"
,"America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3",
"America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5"
,
"America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|01234252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 Jy10 SL0 dnB0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5"
,
"America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|01212121212121341212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 LFB0 1cL0 3Cp0 1cL0 66N0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5"
,"America/Eirunepe|LMT ACT ACST AMT|4D.s 50 40 40|0121212121212121212121212121212131|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5",
"America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5"
,
"America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2"
,"America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0",
"America/Fortaleza|LMT BRT BRST|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5",
"America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3"
,
"America/Godthab|LMT WGT WGST|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3"
,
"America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2"
,"America/Grand_Turk|KMT EST EDT AST|57.b 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212123|-2l1uQ.N 2HHBQ.N 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT ECT|5e 50|01|-1yVSK|27e5",
"America/Guyana|LMT GBGT GYT GYT GYT|3Q.E 3J 3J 30 40|01234|-2dvU7.k 24JzQ.k mlc0 Bxbf|80e4",
"America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4"
,
"America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5"
,"America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4",
"America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,"America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0",
"America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,"America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0",
"America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0",
"America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0",
"America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2"
,
"America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2"
,"America/Jamaica|KMT EST EDT|57.b 50 40|0121212121212121212121|-2l1uQ.N 2uM1Q.N 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4",
"America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3"
,
"America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 Bb0 10N0 2bB0 8in0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,"America/La_Paz|CMT BOST BOT|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT PET PEST|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6",
"America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6"
,"America/Maceio|LMT BRT BRST|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT AMT AMST|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5",
"America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4",
"America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4",
"America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2"
,"America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5",
"America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|0120303030303030303030303030303030454545454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2",
"America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6",
"America/Miquelon|LMT AST PMST PMDT|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2",
"America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3"
,"America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5",
"America/Montevideo|MMT UYT UYHST UYST UYT UYHST|3I.I 3u 30 20 30 2u|012121212121212121212121213434343434345454543453434343434343434343434343434343434343434|-20UIf.g 8jzJ.g 1cLu 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1qMu WLu 1qMu 11zu 1o0u 11zu NAu 11bu 2iMu zWu Dq10 19X0 pd0 jz0 cm10 19X0 1fB0 1on0 11d0 1oL0 1nB0 1fzu 1aou 1fzu 1aou 1fzu 3nAu Jb0 3MN0 1SLu 4jzu 2PB0 Lb0 3Dd0 1pb0 ixd0 An0 1MN0 An0 1wp0 On0 1wp0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5",
"America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5"
,
"America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4"
,
"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6"
,
"America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2"
,
"America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2"
,"America/Noronha|LMT FNT FNST|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2",
"America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,"America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3",
"America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2"
,"America/Paramaribo|LMT PMT PMT NEGT SRT SRT|3E.E 3E.Q 3E.A 3u 3u 30|012345|-2nDUj.k Wqo0.c qanX.I 1dmLN.o lzc0|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5",
"America/Rio_Branco|LMT ACT ACST AMT|4v.c 50 40 40|01212121212121212121212121212131|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT AMT AMST|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5",
"America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842"
,
"America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2"
,"America/Recife|LMT BRT BRST|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4",
"America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229"
,"America/Santarem|LMT AMT AMST BRT|3C.M 40 30 30|0121212121212121212121212121213|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4",
"America/Santiago|SMT CLT CLT CLST CLST|4G.K 50 40 40 30|010203131313131212421242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|62e5"
,"America/Santo_Domingo|SDMT EST EDT EHDT AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5",
"America/Sao_Paulo|LMT BRT BRST|36.s 30 20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|20e6"
,
"America/Scoresbysund|LMT CGT CGST EGST EGT|1r.Q 20 10 0 10|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452"
,
"America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2"
,
"America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4"
,"America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5",
"America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656",
"America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4"
,
"America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5"
,
"America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3"
,
"America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4"
,
"America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642"
,
"America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3"
,"Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212|-2q00 1DjS0 T90 40P0 KL0 blz0|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80",
"Antarctica/Macquarie|AEST AEDT -00 MIST|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60",
"Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5"
,
"Antarctica/Palmer|-00 ARST ART ART ARST CLT CLST|0 30 40 30 20 40 30|0121212121234356565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|40"
,"Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25",
"Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4"
,"Asia/Riyadh|LMT AST|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5",
"Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5"
,"Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3",
"Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4",
"Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4",
"Asia/Atyrau|LMT +04 +05 +06|-3r.I -40 -50 -60|01232323232323232323212323232323232321212121212|-1Pc3r.I eUnr.I 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0",
"Asia/Baghdad|BMT AST ADT|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT GST AST|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4",
"Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT ICT|-6G.4 -70|01|-218SG.4|15e6",
"Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0",
"Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5"
,"Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT BNT BNT|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|HMT BURT IST IST|-5R.k -6u -5u -6u|01232|-18LFR.k 1unn.k HB0 7zX0|15e6",
"Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4",
"Asia/Choibalsan|LMT ULAT ULAT CHOST CHOT CHOT CHOST|-7C -70 -80 -a0 -90 -80 -90|0123434343434343434343434343434343434343434343456565656565656565656565656565656565656565656565|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|38e3",
"Asia/Shanghai|CST CDT|-80 -90|01010101010101010|-1c1I0 LX0 16p0 1jz0 1Myp0 Rb0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT BURT IST DACT BDT BDST|-5R.k -6u -5u -60 -60 -70|01213454|-18LFR.k 1unn.k HB0 m6n0 LqMu 1x6n0 1i00|16e6",
"Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5"
,"Asia/Dili|LMT TLT JST TLT WITA|-8m.k -80 -90 -90 -80|012343|-2le8m.k 1dnXm.k 8HA0 1ew00 Xld0|19e4","Asia/Dubai|LMT GST|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4",
"Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0",
"Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|18e5"
,
"Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|25e4"
,"Asia/Ho_Chi_Minh|LMT PLMT ICT IDT JST|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST JST|-7A.G -80 -90 -90|0121312121212121212121212121212121212121212121212121212121212121212121|-2CFHA.G 1sEP6.G 1cL0 ylu 93X0 1qQu 1tX0 Rd0 1In0 NB0 1cL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1kL0 14N0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5",
"Asia/Hovd|LMT HOVT HOVT HOVST|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|81e3",
"Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4",
"Europe/Istanbul|IMT EET EEST +04 +03|-1U.U -20 -30 -40 -30|012121212121212121212121212121212121212121212121212121234343434342121212121212121212121212121212121212121212121212121212121212124|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSp0 CL0 mN0 1Vz0 1gN0 1pz0 5Rd0 1fz0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1jB0 18L0 1ip0 17z0 qdd0 xX0 3S10 Tz0 dA10 11z0 1o10 11z0 1qN0 11z0 1ze0 11B0 WM0 1qO0 WI0 1nX0 1rB0 10L0 11B0 1in0 17d0 1in0 2pX0 19E0 1fU0 16Q0 1iI0 16Q0 1iI0 1Vd0 pb0 3Kp0 14o0 1de0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6"
,"Asia/Jakarta|BMT JAVT WIB JST WIB WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT WIT ACST|-9m.M -90 -9u|0121|-1uu9m.M sMMm.M L4nu|26e4",
"Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4"
,"Asia/Kabul|AFT AFT|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT IST IST KART PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6",
"Asia/Urumqi|LMT XJT|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT IST NPT|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2",
"Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT MALT MALST MALT MALT JST MYT|-6T.p -70 -7k -7k -7u -90 -80|01234546|-2Bg6T.p 17anT.p 7hXE dM00 17bO 8Fyu 1so1u|71e5",
"Asia/Kuching|LMT BORT BORT BORTST JST MYT|-7l.k -7u -80 -8k -90 -80|01232323232323232425|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0 1so10|13e4","Asia/Macau|LMT MOT MOST CST|-7y.k -80 -90 -80|0121212121212121212121212121212121212121213|-2le7y.k 1XO34.k 1wn0 Rd0 1wn0 R9u 1wqu U10 1tz0 TVu 1tz0 17gu 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cOu 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cL0 KEp0|57e4",
"Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT WITA JST|-7V.A -7V.A -80 -90|01232|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PHT PHST JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6",
"Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4"
,"Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4",
"Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5",
"Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5",
"Asia/Oral|LMT +04 +05 +06|-3p.o -40 -50 -60|01232323232323232121212121212121212121212121212|-1Pc3p.o eUnp.o 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT WIB JST WIB WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JCST JST KST|-8n -8u -90 -90 -90|012341|-2um8n 97XR 12FXu jdA0 2Onc0|29e5",
"Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|0123232323232323232323232323232323232323232323|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|73e4","Asia/Rangoon|RMT BURT JST MMT|-6o.E -6u -90 -6u|0123|-21Jio.E SmnS.E 7j9u|48e5",
"Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4",
"Asia/Seoul|LMT KST JCST JST KST KDT KDT|-8r.Q -8u -90 -90 -90 -9u -a0|01234151515151515146464|-2um8r.Q 97XV.Q 12FXu jjA0 kKo0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Singapore|SMT MALT MALST MALT MALT JST SGT SGT|-6T.p -70 -7k -7k -7u -90 -7u -80|012345467|-2Bg6T.p 17anT.p 7hXE dM00 17bO 8Fyu Mspu DTA0|56e5",
"Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2",
"Asia/Taipei|JWST JST CST CDT|-80 -90 -80 -90|01232323232323232323232323232323232323232|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5",
"Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5",
"Asia/Tehran|LMT TMT IRST IRST IRDT IRDT|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6"
,"Asia/Thimphu|LMT IST BTT|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JCST JST JDT|-90 -90 -a0|0121212121|-1iw90 pKq0 QL0 1lB0 13X0 1zB0 NX0 1zB0 NX0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5",
"Asia/Ulaanbaatar|LMT ULAT ULAT ULAST|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1fx0 1cP0 1cJ0 1cP0 1cJ0 1cP0 1cJ0|12e5",
"Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2",
"Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4",
"Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4",
"Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5",
"Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5",
"Atlantic/Azores|HMT AZOT AZOST AZOMT AZOT AZOST WET|1S.w 20 10 0 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545456545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldW5.s aPX5.s Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4"
,
"Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3"
,
"Atlantic/Canary|LMT CANT WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4"
,"Atlantic/Cape_Verde|LMT CVT CVST CVT|1y.4 20 10 10|01213|-2xomp.U 1qOMp.U 7zX0 1djf0|50e4",
"Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3"
,
"Atlantic/Madeira|FMT MADT MADST MADMT WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldWQ.o aPWQ.o Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4"
,"Atlantic/Reykjavik|LMT IST ISST GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|GST|20|0||30",
"Atlantic/Stanley|SMT FKT FKST FKT FKST|3P.o 40 30 30 20|0121212121212134343212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 U10 1qM0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2",
"Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5"
,
"Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5"
,"Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5",
"Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3"
,
"Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746"
,"Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|ACWST ACWDT|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368",
"Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4"
,
"Australia/Lord_Howe|AEST LHST LHDT LHDT|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347"
,"Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10",
"Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5"
,"Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5",
"CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"
,
"CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"Pacific/Easter|EMT EAST EASST EAST EASST|7h.s 70 60 60 50|0121212121212121212121212121234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|30e2"
,
"EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"
,"EST|EST|50|0|",
"EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g5X0 14p0 1wn0 17d0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5"
,"Etc/GMT+0|GMT|0|0|","Etc/GMT+1|-01|10|0|","Etc/GMT+10|-10|a0|0|","Etc/GMT+11|-11|b0|0|","Etc/GMT+12|-12|c0|0|","Etc/GMT+2|-02|20|0|","Etc/GMT+3|-03|30|0|","Etc/GMT+4|-04|40|0|","Etc/GMT+5|-05|50|0|","Etc/GMT+6|-06|60|0|","Etc/GMT+7|-07|70|0|","Etc/GMT+8|-08|80|0|","Etc/GMT+9|-09|90|0|","Etc/GMT-1|+01|-10|0|","Etc/GMT-10|+10|-a0|0|","Etc/GMT-11|+11|-b0|0|","Etc/GMT-12|+12|-c0|0|","Etc/GMT-13|+13|-d0|0|","Etc/GMT-14|+14|-e0|0|","Etc/GMT-2|+02|-20|0|","Etc/GMT-3|+03|-30|0|","Etc/GMT-4|+04|-40|0|","Etc/GMT-5|+05|-50|0|","Etc/GMT-6|+06|-60|0|","Etc/GMT-7|+07|-70|0|","Etc/GMT-8|+08|-80|0|","Etc/GMT-9|+09|-90|0|","Etc/UCT|UCT|0|0|","Etc/UTC|UTC|0|0|",
"Europe/Amsterdam|AMT NST NEST NET CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5"
,
"Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3"
,"Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0",
"Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5"
,
"Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6"
,
"Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5"
,
"Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5"
,
"Europe/Prague|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 16M0 1lc0 1tA0 17A0 11c0 1io0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5"
,
"Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5"
,
"Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5"
,
"Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5"
,
"Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4"
,
"Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4"
,
"Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5"
,
"Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3"
,
"Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5"
,"Europe/Kaliningrad|CET CEST CET CEST MSK MSD EEST EET +03|-10 -20 -20 -30 -30 -40 -30 -20 -30|0101010101010232454545454545454546767676767676767676767676767676767676767676787|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 Am0 Lb0 1en0 op0 1pNz0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4",
"Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5"
,"Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4",
"Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ldXn.f aPWn.f Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5"
,
"Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4"
,
"Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|01010101010101010101010121212121234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-28dd0 11A0 1go0 19A0 1co0 1dA0 b1A0 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 iyo0 Rc0 18o0 1hc0 1io0 1a00 14o0 5aL0 MM0 1vc0 17A0 1i00 1bc0 1eo0 17d0 1in0 17A0 6hA0 10N0 XIL0 1a10 1in0 17d0 19X0 1cN0 1fz0 1a10 1fX0 1cp0 1cO0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5"
,
"Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4"
,"Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5",
"Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3"
,"Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6",
"Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6"
,
"Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4"
,
"Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5"
,"Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5",
"Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810",
"Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4",
"Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5"
,
"Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5"
,
"Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4"
,
"Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4"
,"Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0",
"Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4"
,
"Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1a00 1cM0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5"
,
"Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4"
,"Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|01232323232323232121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5",
"Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5"
,
"Europe/Zaporozhye|CUT EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4"
,"HST|HST|a0|0|","Indian/Chagos|LMT IOT IOT|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Christmas|CXT|-70|0||21e2","Indian/Cocos|CCT|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT SCT|-3F.M -40|01|-2yO3F.M|79e3","Indian/Maldives|MMT MVT|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT MUT MUST|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT RET|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|MHT KWAT MHT|-b0 c0 -c0|012|-AX0 W9X0|14e3",
"MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"
,"MST|MST|70|0|",
"MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,
"Pacific/Chatham|CHAST CHAST CHADT|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600"
,
"PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0"
,"Pacific/Apia|LMT WSST SST SDT WSDT WSST|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|PGT JST BST|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|CHUT|-a0|0||49e3",
"Pacific/Efate|LMT VUT VUST|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|PHOT PHOT PHOT|c0 b0 -d0|012|nIc0 B8n0|1","Pacific/Fakaofo|TKT TKT|b0 -d0|01|1Gfn0|483",
"Pacific/Fiji|LMT FJT FJST|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0|88e4","Pacific/Funafuti|TVT|-c0|0||45e2","Pacific/Galapagos|LMT ECT GALT|5W.o 50 60|012|-1yVS1.A 2dTz1.A|25e3","Pacific/Gambier|LMT GAMT|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT SBT|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST ChST|-a0 -a0|01|1fpq0|17e4",
"Pacific/Honolulu|HST HDT HST|au 9u a0|010102|-1thLu 8x0 lef0 8Pz0 46p0|37e4","Pacific/Kiritimati|LINT LINT LINT|aE a0 -e0|012|nIaE B8nk|51e2","Pacific/Kosrae|KOST KOST|-b0 -c0|010|-AX0 1bdz0|66e2","Pacific/Majuro|MHT MHT|-b0 -c0|01|-AX0|28e3","Pacific/Marquesas|LMT MART|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT NST BST SST|bm.M b0 b0 b0|0123|-2nDMB.c 2gVzB.c EyM0|37e2","Pacific/Nauru|LMT NRT JST NRT|-b7.E -bu -90 -c0|01213|-1Xdn7.E PvzB.E 5RCu 1ouJu|10e3","Pacific/Niue|NUT NUT NUT|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|NMT NFT NFST NFT|-bc -bu -cu -b0|01213|-Kgbc W01G On0 1COp0|25e4",
"Pacific/Noumea|LMT NCT NCST|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Palau|PWT|-90|0||21e3","Pacific/Pitcairn|PNT PST|8u 80|01|18Vku|56","Pacific/Pohnpei|PONT|-b0|0||34e3","Pacific/Port_Moresby|PGT|-a0|0||25e4","Pacific/Rarotonga|CKT CKHST CKT|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT TAHT|9W.g a0|01|-2joe1.I|18e4","Pacific/Tarawa|GILT|-c0|0||29e3",
"Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121212121212121212121212121212121212121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1SM0 uM0|75e3","Pacific/Wake|WAKT|-c0|0||16e3","Pacific/Wallis|WFT|-c0|0||94",
"WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"
],links:["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Sao_Tome","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Khartoum|Africa/Juba","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville",
"Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro",
"Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes",
"America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General",
"America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola"
,"America/Port_of_Spain|America/Virgin","America/Regina|Canada/East-Saskatchewan","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh",
"Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Singapore|Singapore","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu",
"Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT+0|Etc/GMT","Etc/GMT+0|Etc/GMT-0","Etc/GMT+0|Etc/GMT0","Etc/GMT+0|Etc/Greenwich","Etc/GMT+0|GMT",
"Etc/GMT+0|GMT+0","Etc/GMT+0|GMT-0","Etc/GMT+0|GMT0","Etc/GMT+0|Greenwich","Etc/UCT|UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey",
"Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein",
"Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Pohnpei|Pacific/Ponape"]}),a}),function(global){function createIterator(items){var iterator={next:function(){var value=items.shift();return{done:void 0===value,value:value}}};return iteratorSupported&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function serializeParam(value){return encodeURIComponent(value).replace(/%20/g,"+")}function deserializeParam(value){return decodeURIComponent(String(value).replace(/\+/g," "))}var iteratorSupported=function(){try{return!!Symbol.iterator}catch(error){return!1}}();!function(){try{
var URLSearchParams=global.URLSearchParams;return"a=1"===new URLSearchParams("?a=1").toString()&&"function"==typeof URLSearchParams.prototype.set&&"function"==typeof URLSearchParams.prototype.entries}catch(e){return!1}}()&&function(){var URLSearchParams=function(searchString){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var typeofSearchString=typeof searchString;if("undefined"!=typeofSearchString)if("string"==typeofSearchString)""!==searchString&&this._fromString(searchString);else if(searchString instanceof URLSearchParams){var _this=this;searchString.forEach(function(value,name){_this.append(name,value)})}else{if(
null===searchString||"object"!=typeofSearchString)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(searchString))for(var i=0;i<searchString.length;i++){var entry=searchString[i];if("[object Array]"!==Object.prototype.toString.call(entry)&&2===entry.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(entry[0],entry[1])}else for(var key in searchString)searchString.hasOwnProperty(key)&&this.append(key,searchString[key])}},proto=URLSearchParams.prototype;proto.append=function(name,value){
name in this._entries?this._entries[name].push(String(value)):this._entries[name]=[String(value)]},proto.delete=function(name){delete this._entries[name]},proto.get=function(name){return name in this._entries?this._entries[name][0]:null},proto.getAll=function(name){return name in this._entries?this._entries[name].slice(0):[]},proto.has=function(name){return name in this._entries},proto.set=function(name,value){this._entries[name]=[String(value)]},proto.forEach=function(callback,thisArg){var entries,name;for(name in this._entries)if(this._entries.hasOwnProperty(name)){entries=this._entries[name];for(var i=0;i<entries.length;i++)callback.call(thisArg,
entries[i],name,this)}},proto.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),createIterator(items)},proto.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),createIterator(items)},proto.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),createIterator(items)},iteratorSupported&&(proto[Symbol.iterator]=proto.entries),proto.toString=function(){var searchArray=[];return this.forEach(function(value,name){searchArray.push(serializeParam(name)+"="+serializeParam(value))}),searchArray.join("&")},global.URLSearchParams=URLSearchParams}()
;var proto=global.URLSearchParams.prototype;"function"!=typeof proto.sort&&(proto.sort=function(){var _this=this,items=[];this.forEach(function(value,name){items.push([name,value]),_this._entries||_this.delete(name)}),items.sort(function(a,b){return a[0]<b[0]?-1:a[0]>b[0]?1:0}),_this._entries&&(_this._entries={});for(var i=0;i<items.length;i++)this.append(items[i][0],items[i][1])}),"function"!=typeof proto._fromString&&Object.defineProperty(proto,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(searchString){if(this._entries)this._entries={};else{var keys=[];this.forEach(function(value,name){keys.push(name)});for(
var i=0;i<keys.length;i++)this.delete(keys[i])}for(var attribute,attributes=(searchString=searchString.replace(/^\?/,"")).split("&"),i=0;i<attributes.length;i++)attribute=attributes[i].split("="),this.append(deserializeParam(attribute[0]),1<attribute.length?deserializeParam(attribute[1]):"")}})}("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(global){var _URL,proto;function URL(url,base){"string"!=typeof url&&(url=String(url)),base&&"string"!=typeof base&&(base=String(base));var baseElement,inputElement=document;if(base&&(void 0===global.location||base!==global.location.href)){
base=base.toLowerCase(),(baseElement=(inputElement=document.implementation.createHTMLDocument("")).createElement("base")).href=base,inputElement.head.appendChild(baseElement);try{if(0!==baseElement.href.indexOf(base))throw new Error(baseElement.href)}catch(err){throw new Error("URL unable to set base "+base+" due to "+err)}}var anchorElement=inputElement.createElement("a");if(anchorElement.href=url,baseElement&&(inputElement.body.appendChild(anchorElement),anchorElement.href=anchorElement.href),(inputElement=inputElement.createElement("input")).type="url",inputElement.value=url,":"===anchorElement.protocol||!/:/.test(anchorElement.href
)||!inputElement.checkValidity()&&!base)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:anchorElement});var searchParams=new global.URLSearchParams(this.search),enableSearchUpdate=!0,enableSearchParamsUpdate=!0,_this=this;["append","delete","set"].forEach(function(methodName){var method=searchParams[methodName];searchParams[methodName]=function(){method.apply(searchParams,arguments),enableSearchUpdate&&(enableSearchParamsUpdate=!1,_this.search=searchParams.toString(),enableSearchParamsUpdate=!0)}}),Object.defineProperty(this,"searchParams",{value:searchParams,enumerable:!0});var search=void 0;Object.defineProperty(this,
"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==search&&(search=this.search,enableSearchParamsUpdate&&(enableSearchUpdate=!1,this.searchParams._fromString(this.search),enableSearchUpdate=!0))}})}if(!function(){try{var u=new global.URL("b","http://a");return u.pathname="c d","http://a/c%20d"===u.href&&u.searchParams}catch(e){return!1}}()&&(_URL=global.URL,proto=URL.prototype,["hash","host","hostname","port","protocol"].forEach(function(attributeName){!function(attributeName){Object.defineProperty(proto,attributeName,{get:function(){return this._anchorElement[attributeName]},set:function(value){
this._anchorElement[attributeName]=value},enumerable:!0})}(attributeName)}),Object.defineProperty(proto,"search",{get:function(){return this._anchorElement.search},set:function(value){this._anchorElement.search=value,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(proto,{toString:{get:function(){var _this=this;return function(){return _this.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(value){this._anchorElement.href=value,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(value){
this._anchorElement.pathname=value},enumerable:!0},origin:{get:function(){var addPortToOrigin={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],addPortToOrigin=this._anchorElement.port!=addPortToOrigin&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(addPortToOrigin?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(value){},enumerable:!0},username:{get:function(){return""},set:function(value){},enumerable:!0}}),URL.createObjectURL=function(blob){return _URL.createObjectURL.apply(_URL,arguments)},URL.revokeObjectURL=function(url){
return _URL.revokeObjectURL.apply(_URL,arguments)},global.URL=URL),void 0!==global.location&&!("origin"in global.location)){function getOrigin(){return global.location.protocol+"//"+global.location.hostname+(global.location.port?":"+global.location.port:"")}try{Object.defineProperty(global.location,"origin",{get:getOrigin,enumerable:!0})}catch(e){setInterval(function(){global.location.origin=getOrigin()},100)}}}("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),define("url-polyfill",function(){}),function(c){var d=document,a="appendChild",i="styleSheet",s=d.createElement("style");s.type="text/css",
d.getElementsByTagName("head")[0][a](s),s[i]?s[i].cssText=c:s[a](d.createTextNode(c))}(
'/*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n/* Style of advanced components */\n/* toggler */\n.toggler:after {\n margin-left: 3px;\n position: relative;\n top: 2px;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n}\n\n.toggler.opened:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e610";\n}\n\n.toggled {\n display: none;\n}\n\n/* Adder */\n.adder:before {\n margin-right: 5px;\n font-size: 10.5px;\n font-size: 1.05rem;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e636";\n}\n\n/* Closer / Deleter */\n.closer:before, .deleter:before {\n margin-right: 5px;\n font-size: 10.5px;\n font-size: 1.05rem;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e637";\n}\n\n.undobox {\n border: 1px #266d9c solid;\n display: block;\n position: fixed;\n top: 50px;\n left: 50%;\n margin-left: -200px;\n width: 400px;\n z-index: 100005;\n background-color: #cfdfe9;\n padding: 20px 20px 20px 45px;\n border-radius: 3px;\n color: #222 !important;\n}\n\n.undobox > .icon-close {\n right: 7px;\n font-size: 1.5rem;\n color: #999;\n left: auto;\n top: 5px;\n cursor: pointer;\n position: absolute;\n}\n\n.undobox .icon-info {\n color: #0e5d91;\n font-size: 2rem;\n position: absolute;\n top: 20px;\n left: 15px;\n}\n\n/* Incrementer and duration */\ninput[data-increment], input.duration-ctrl {\n width: 40px !important;\n min-width: 40px !important;\n text-align: right;\n}\n\n.duration-ctrl-wrapper, .incrementer-ctrl-wrapper {\n position: relative;\n display: inline-block;\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 2px;\n}\n\n.duration-ctrl-wrapper .incrementer, .incrementer-ctrl-wrapper .incrementer {\n text-align: right;\n border: none;\n padding-right: 18px;\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl {\n border-left: 1px #ddd solid;\n display: inline-block;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a {\n outline: 0 !important;\n cursor: pointer;\n display: inline-block;\n line-height: 13px;\n color: #222;\n background: #f3f1ef;\n padding: 0 4px 0 4px;\n font-size: 10.5px;\n font-size: 1.05rem;\n position: absolute;\n right: 0;\n height: 50%;\n text-align: center;\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.inc, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.inc {\n top: 0;\n border-top-right-radius: 2px;\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.dec, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.dec {\n top: 50%;\n border-bottom-right-radius: 2px;\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.inc:before, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.inc:before {\n position: relative;\n bottom: 0px;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e610";\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.dec:before, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a.dec:before {\n position: relative;\n top: 0px;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n}\n\n.duration-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a:hover, .incrementer-ctrl-wrapper .incrementer ~ .incrementer-ctrl > a:hover {\n background-color: #3e7da7;\n color: white;\n}\n\n.duration-ctrl-wrapper ~ .separator {\n padding: 0 3px;\n text-align: center;\n opacity: .7;\n}\n\n/* InPlacer */\n[data-in-place], .inplace {\n cursor: pointer;\n min-height: 1em;\n}\n\n[data-in-place] input, .inplace input {\n cursor: auto;\n}\n\n[data-in-place]:hover, .inplace:hover {\n border: dotted 1px #3e7da7;\n}\n\n/* ListBox */\nul.listbox {\n margin: .1em 0;\n padding: 0;\n list-style-type: none;\n display: block;\n}\n\nul.listbox > li {\n white-space: no-wrap;\n position: relative;\n min-width: 75%;\n border: solid 1px #ddd;\n border-bottom-width: 0;\n vertical-align: top;\n margin: 0;\n padding: .3em 2em .3em .2em;\n background-color: #f3f1ef;\n min-height: 1.5em;\n}\n\nul.listbox > li > .closer, ul.listbox > li > .deleter {\n position: absolute;\n right: 5px;\n top: 0;\n}\n\nul.listbox > li:first-child {\n border-radius: 2px 2px 0 0;\n}\n\nul.listbox > li:last-child {\n border-radius: 0 0 2px 2px;\n border-bottom-width: 1px;\n}\n\nul.listbox > li.placeholder {\n background: none;\n margin: .5em;\n opacity: 0.6;\n}\n\n/* Modal styles */\n.modal {\n background-color: white;\n border: 1px solid #ddd;\n box-shadow: 3px 3px 5px #666666;\n height: auto;\n opacity: 0;\n top: -1000px;\n padding: 40px;\n position: fixed;\n z-index: 105002;\n margin: auto;\n left: 0;\n right: 0;\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 100vw;\n max-height: calc(100vh - 40px);\n}\n\n.modal:focus {\n outline: none;\n}\n\n.modal .modal-close {\n position: absolute;\n right: 12px;\n top: 10px;\n cursor: pointer;\n font-weight: bold;\n color: #222;\n}\n\n[dir="rtl"] .modal .modal-close {\n right: auto;\n left: 12px;\n}\n\n.modal .modal-close:hover {\n opacity: 0.6;\n}\n\n.modal .modal-close .icon-close {\n font-size: 20px;\n font-size: 2rem;\n}\n\n.modal button.modal-close {\n color: #222 !important;\n background-color: transparent;\n padding: 0;\n height: 20px;\n}\n\n.modal button.modal-close .icon-close {\n padding: 0;\n}\n\n.modal .modal-close:focus {\n outline: 3px solid #276D9B;\n outline-offset: 3px;\n}\n\n.modal .modal-body h4 {\n font-size: 16px;\n font-size: 1.6rem;\n margin-top: 0;\n margin-bottom: 8px;\n}\n\n.modal .modal-body .content, .modal .modal-body .message {\n margin-bottom: 8px;\n}\n\n.modal .modal-body .buttons {\n top: 16px;\n position: relative;\n}\n\n[dir="rtl"] .modal .modal-body .buttons {\n float: left;\n display: flex;\n flex-direction: row-reverse;\n}\n\n.modal .modal-body .buttons button {\n border-radius: 2px;\n margin-left: 8px;\n height: 36px;\n text-shadow: none;\n text-transform: uppercase;\n color: #0e5d91 !important;\n background: none;\n}\n\n.modal .modal-body .buttons button:focus, .modal .modal-body .buttons button:hover {\n background: #dbe7ef;\n outline: 3px solid #276D9B;\n outline-offset: 3px;\n}\n\n.modal .modal-body input[type="checkbox"]:focus ~ [class^="icon-"],\n.modal .modal-body input[type="checkbox"]:focus ~ [class*=" icon-"] {\n outline: 3px solid #276D9B;\n}\n\n.modal[class^="icon-"]:before, .modal[class*=" icon-"]:before {\n font-size: 44px;\n font-size: 4.4rem;\n color: #0e5d91;\n position: absolute;\n}\n\n.modal[class^="icon-"].icon-result-nok:before, .modal[class*=" icon-"].icon-result-nok:before {\n color: #ba122b;\n}\n\n.modal[class^="icon-"].icon-warning:before, .modal[class*=" icon-"].icon-warning:before {\n color: #c96043;\n}\n\n.modal[class^="icon-"].icon-result-ok:before, .modal[class*=" icon-"].icon-result-ok:before {\n color: #0e914b;\n}\n\n.modal[class^="icon-"].error:before, .modal[class*=" icon-"].error:before {\n color: #ba122b;\n}\n\n.modal[class^="icon-"].danger:before, .modal[class*=" icon-"].danger:before {\n color: #c96043;\n}\n\n.modal[class^="icon-"].warning:before, .modal[class*=" icon-"].warning:before {\n color: #d8ae5b;\n}\n\n.modal[class^="icon-"].info:before, .modal[class*=" icon-"].info:before {\n color: #0e5d91;\n}\n\n.modal[class^="icon-"].success:before, .modal[class*=" icon-"].success:before {\n color: #0e914b;\n}\n\n.modal[class^="icon-"] .modal-body, .modal[class*=" icon-"] .modal-body {\n font-family: "Source Sans Pro", sans-serif !important;\n line-height: 1.4;\n margin-left: 8.5rem;\n}\n\n.modal-bg {\n background: none repeat scroll 0 0 black;\n opacity: 0.45;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=45)";\n filter: alpha(opacity=45);\n display: none;\n position: fixed;\n height: 100%;\n width: 100%;\n left: 0;\n top: 0;\n z-index: 100001;\n overflow: hidden;\n}\n\n/* Button groups */\nul[data-button-group], ul.button-group {\n list-style-type: none;\n padding: 0;\n background-color: white;\n border: 1px solid #ddd;\n border-radius: 1px;\n margin: 0 2px 2px 0;\n display: inline-block;\n border-radius: 2px;\n font-size: 12px;\n font-size: 1.2rem;\n}\n\nul[data-button-group] > li, ul.button-group > li {\n border: 0 none;\n color: #222;\n cursor: pointer;\n display: inline-block;\n float: left;\n min-width: 26px;\n padding: 4px 6px;\n text-align: center;\n text-decoration: none !important;\n}\n\nul[data-button-group] > li.active, ul.button-group > li.active {\n color: white;\n background-color: #0e5d91;\n transition: all 0.4s ease;\n}\n\nul[data-button-group] > li:hover, ul.button-group > li:hover {\n color: white;\n background-color: #3e7da7;\n transition: all 0.4s ease;\n}\n\nul[data-button-group] > li.separator, ul.button-group > li.separator {\n background-color: #ddd;\n float: left;\n height: 18px;\n margin: 5px 2px 0 2px;\n width: 1px;\n min-width: 1px;\n padding: 0;\n}\n\nul[data-button-group] > li[class^="icon-"], ul[data-button-group] > li[class*=" icon-"], ul.button-group > li[class^="icon-"], ul.button-group > li[class*=" icon-"] {\n height: 16px;\n margin-top: 1px;\n width: 16px;\n padding-top: 2px;\n}\n\n/* Media Preview */\n.previewer {\n background-color: white;\n margin: 5px;\n min-width: 280px;\n min-height: 200px;\n display: -webkit-flexbox;\n display: flex;\n -webkit-flex-align: center;\n align-items: center;\n justify-content: center;\n}\n\n.previewer .nopreview {\n color: #ddd;\n font-size: 20px;\n font-size: 2rem;\n}\n\n.previewer .nopreview:before {\n font-size: 60px;\n font-size: 6rem;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e670";\n}\n\n/* Progress bar */\n.progressbar {\n height: 2em;\n text-align: left;\n border: none;\n height: 0.8em;\n background-color: white;\n border: 1px solid #ddd;\n}\n\n.progressbar > span {\n height: 100%;\n border: none;\n background-color: #3e7da7;\n display: block;\n color: white;\n transition: width 0.4s ease 0s;\n}\n\n.progressbar.info > span {\n background-color: #0e5d91;\n}\n\n.progressbar.success > span {\n background-color: #0e914b;\n}\n\n.progressbar.warning > span {\n background-color: #d8ae5b;\n}\n\n.progressbar.error > span {\n background-color: #ba122b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/component/css/components.css.map *//*-- Chart --*/\n.c3 svg {\n font: 10px sans-serif;\n -webkit-tap-highlight-color: transparent; }\n\n.c3 path, .c3 line {\n fill: none;\n stroke: #000; }\n\n.c3 text {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none; }\n\n.c3-legend-item-tile,\n.c3-xgrid-focus,\n.c3-ygrid,\n.c3-event-rect,\n.c3-bars path {\n shape-rendering: crispEdges; }\n\n.c3-chart-arc path {\n stroke: #fff; }\n\n.c3-chart-arc rect {\n stroke: white;\n stroke-width: 1; }\n\n.c3-chart-arc text {\n fill: #fff;\n font-size: 13px; }\n\n/*-- Axis --*/\n/*-- Grid --*/\n.c3-grid line {\n stroke: #aaa; }\n\n.c3-grid text {\n fill: #aaa; }\n\n.c3-xgrid, .c3-ygrid {\n stroke-dasharray: 3 3; }\n\n/*-- Text on Chart --*/\n.c3-text.c3-empty {\n fill: #808080;\n font-size: 2em; }\n\n/*-- Line --*/\n.c3-line {\n stroke-width: 1px; }\n\n/*-- Point --*/\n.c3-circle._expanded_ {\n stroke-width: 1px;\n stroke: white; }\n\n.c3-selected-circle {\n fill: white;\n stroke-width: 2px; }\n\n/*-- Bar --*/\n.c3-bar {\n stroke-width: 0; }\n\n.c3-bar._expanded_ {\n fill-opacity: 1;\n fill-opacity: 0.75; }\n\n/*-- Focus --*/\n.c3-target.c3-focused {\n opacity: 1; }\n\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\n stroke-width: 2px; }\n\n.c3-target.c3-defocused {\n opacity: 0.3 !important; }\n\n/*-- Region --*/\n.c3-region {\n fill: steelblue;\n fill-opacity: .1; }\n\n/*-- Brush --*/\n.c3-brush .extent {\n fill-opacity: .1; }\n\n/*-- Select - Drag --*/\n/*-- Legend --*/\n.c3-legend-item {\n font-size: 12px; }\n\n.c3-legend-item-hidden {\n opacity: 0.15; }\n\n.c3-legend-background {\n opacity: 0.75;\n fill: white;\n stroke: lightgray;\n stroke-width: 1; }\n\n/*-- Title --*/\n.c3-title {\n font: 14px sans-serif; }\n\n/*-- Tooltip --*/\n.c3-tooltip-container {\n z-index: 10; }\n\n.c3-tooltip {\n border-collapse: collapse;\n border-spacing: 0;\n background-color: #fff;\n empty-cells: show;\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\n -moz-box-shadow: 7px 7px 12px -9px #777777;\n box-shadow: 7px 7px 12px -9px #777777;\n opacity: 0.9; }\n\n.c3-tooltip tr {\n border: 1px solid #CCC; }\n\n.c3-tooltip th {\n background-color: #aaa;\n font-size: 14px;\n padding: 2px 5px;\n text-align: left;\n color: #FFF; }\n\n.c3-tooltip td {\n font-size: 13px;\n padding: 3px 6px;\n background-color: #fff;\n border-left: 1px dotted #999; }\n\n.c3-tooltip td > span {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin-right: 6px; }\n\n.c3-tooltip td.value {\n text-align: right; }\n\n/*-- Area --*/\n.c3-area {\n stroke-width: 0;\n opacity: 0.2; }\n\n/*-- Arc --*/\n.c3-chart-arcs-title {\n dominant-baseline: middle;\n font-size: 1.3em; }\n\n.c3-chart-arcs .c3-chart-arcs-background {\n fill: #e0e0e0;\n stroke: #FFF; }\n\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\n fill: #000;\n font-size: 16px; }\n\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\n fill: #777; }\n\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\n fill: #777; }\n\n.c3-chart-arc .c3-gauge-value {\n fill: #000;\n /* font-size: 28px !important;*/ }\n\n.c3-chart-arc.c3-target g path {\n opacity: 1; }\n\n.c3-chart-arc.c3-target.c3-focused g path {\n opacity: 1; }\n/*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.absorbable {\n z-index: 1;\n border-radius: 0%;\n background: #e6e6e6;\n opacity: 0;\n}\n\n.absorbable.animate {\n transform: translateZ(0);\n transition-timing-function: cubic-bezier(0.2, 0.6, 1, 0.4);\n animation: absorbable-opacity 2s cubic-bezier(0.2, 0.6, 1, 0.4) 1;\n}\n\n@keyframes absorbable-opacity {\n 0% {\n opacity: 0;\n }\n 20% {\n opacity: 0.3;\n border-radius: 20%;\n }\n 60% {\n opacity: 0.9;\n }\n 100% {\n border-radius: 50%;\n }\n}\n\n.absorbable .example {\n display: grid;\n transition: all 0.5s;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background: linear-gradient(to bottom, white, black);\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/animable/absorbable/css/absorb.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.pulsable {\n z-index: 1;\n display: block;\n border-radius: 50%;\n position: absolute;\n background: #e6e6e6;\n width: 1px;\n height: 1px;\n top: 0px;\n left: 0px;\n box-shadow: 0 0 0 rgba(230, 230, 230, 0.6);\n}\n\n@keyframes pulsable-pulse {\n 0% {\n box-shadow: 0 0 0 0 rgba(230, 230, 230, 0.6);\n }\n 50% {\n box-shadow: 0 0 0 200px rgba(230, 230, 230, 0);\n }\n 100% {\n box-shadow: 0 0 0 0 rgba(230, 230, 230, 0);\n }\n}\n\n.pulsable.animate {\n animation: pulsable-pulse 1s ease-out infinite;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/animable/pulsable/css/pulse.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.autocomplete-suggestions {\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 1px;\n color: #222;\n background: white;\n overflow: auto;\n cursor: default;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.autocomplete-suggestion {\n padding: 2px 5px;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.autocomplete-selected {\n background-color: #3e7da7;\n color: white;\n}\n\n.autocomplete-suggestions strong {\n font-weight: normal;\n -webkit-text-decoration: dashed underline;\n text-decoration: dashed underline;\n}\n\n.autocomplete-group {\n padding: 2px 5px;\n}\n\n.autocomplete-group strong {\n display: block;\n border-bottom: 1px solid #222;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/autocomplete/css/autocomplete.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.badge-component {\n position: relative;\n}\n\n.badge-component .loader:not(.hidden) {\n position: relative;\n top: -1px;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n animation: badge-component-rotate 1.4s infinite linear;\n background: linear-gradient(left, #e6e6e6 10%, rgba(230, 230, 230, 0) 42%);\n transform: translateZ(0);\n}\n\n@keyframes badge-component-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.badge-component .loader:not(.hidden):before {\n width: 50%;\n height: 50%;\n background: #e6e6e6;\n border-radius: 100% 0 0 0;\n position: absolute;\n top: 0;\n left: 0;\n content: \'\';\n}\n\n.badge-component .loader:not(.hidden):after {\n background: #333333;\n width: 75%;\n height: 75%;\n border-radius: 50%;\n content: \'\';\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n}\n\n.badge-component .badge {\n background: #e6e6e6;\n -webkit-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n font-size: 12px;\n font-size: 1.2rem;\n width: 19px;\n height: 19px;\n border-radius: 50%;\n position: absolute;\n top: 2px;\n left: 3px;\n padding-top: 1px;\n text-align: center;\n display: inline-block;\n}\n\n.badge-component .badge.badge-info {\n color: #e7eff4;\n background: #3e7da7;\n}\n\n.badge-component .badge.badge-success {\n color: #e7f4ed;\n background: #3ea76f;\n}\n\n.badge-component .badge.badge-warning {\n color: #faf0ee;\n background: #d16c55;\n}\n\n.badge-component .badge.badge-error {\n color: #f8e7ea;\n background: #ba122b;\n}\n\n.badge-component .badge.icon-result-ok::before {\n top: 3px;\n position: relative;\n color: blue;\n}\n\n.badge-component .badge-border {\n background: #e6e6e6;\n width: 21px;\n height: 21px;\n border-radius: 50%;\n position: absolute;\n top: 1px;\n left: 2px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/badge/css/badge.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.breadcrumbs {\n background-color: #f3f1ef;\n font-style: italic;\n font-weight: normal;\n font-family: "Source Sans Pro", sans-serif;\n font-size: 11px;\n font-size: 1.1rem;\n padding: 8px !important;\n margin: 0;\n list-style: none;\n}\n\n.breadcrumbs li.breadcrumb {\n display: inline-block;\n position: relative;\n text-align: left;\n float: none;\n}\n\n.breadcrumbs li.breadcrumb:not(:first-child):before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e60f";\n padding: 0 4px 0 9px;\n}\n\n.breadcrumbs li.breadcrumb ul {\n background-color: #f3f1ef;\n display: none;\n position: absolute;\n z-index: 1;\n left: 0;\n padding: 0 1rem 1rem 0;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n border-top: none;\n}\n\n.breadcrumbs li.breadcrumb ul li {\n white-space: nowrap;\n padding: 2px 0;\n text-align: left;\n float: none;\n}\n\n.breadcrumbs li.breadcrumb ul li:before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e60f";\n padding: 0 4px 0 8px;\n}\n\n.breadcrumbs li.breadcrumb:hover ul {\n display: block;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/breadcrumbs/css/breadcrumbs.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.bulk-action-popup {\n padding-bottom: 20px;\n}\n\n.bulk-action-popup h2.title {\n margin-top: 0;\n margin-bottom: 20px;\n}\n\n.bulk-action-popup .applicables, .bulk-action-popup .no-applicables {\n max-height: 100px;\n overflow-y: auto;\n background: #DDD;\n padding-top: 5px;\n margin-bottom: 20px;\n}\n\n.bulk-action-popup .applicables .resource-label, .bulk-action-popup .no-applicables .resource-label {\n padding: 6px 18px 0;\n}\n\n.bulk-action-popup .applicables li:last-child .resource-label, .bulk-action-popup .no-applicables li:last-child .resource-label {\n padding-bottom: 6px;\n}\n\n.bulk-action-popup .categories {\n margin-bottom: 10px;\n}\n\n.bulk-action-popup .comment textarea {\n height: 80px;\n width: 100%;\n max-width: none;\n}\n\n.bulk-action-popup .cascading-combo-box .select2-container {\n margin-right: 10px;\n}\n\n.bulk-action-popup .actions {\n margin-top: 20px;\n}\n\n.bulk-action-popup .actions .btn {\n float: right;\n margin-left: 20px;\n}\n\n.bulk-action-popup .actions .btn.cancel {\n position: relative;\n top: 3px;\n}\n\n.bulk-action-popup .single .resource-label {\n font-weight: bold;\n}\n\n.bulk-action-popup .multiple .resource-count {\n font-weight: bold;\n}\n\n.bulk-action-popup .message {\n display: flex;\n align-items: center;\n}\n\n.bulk-action-popup .message .icon {\n float: left;\n font-size: 40px;\n margin-right: 10px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/bulkActionPopup/css/bulkActionPopup.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.dynamic-component-container {\n display: inline-block;\n background: #f3f1ef;\n border: 1px solid #8d949e;\n border-radius: 5px;\n cursor: auto;\n padding: 0;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 15000;\n}\n\n.dynamic-component-container .dynamic-component-title-bar {\n position: relative;\n background: #f3f1ef;\n border-bottom: 1px solid #8d949e;\n cursor: move;\n text-shadow: none;\n line-height: 1.4;\n min-height: 30px;\n text-align: center;\n border-top-right-radius: 5px;\n border-top-left-radius: 5px;\n font-size: 14px;\n font-size: 1.4rem;\n}\n\n.dynamic-component-container .dynamic-component-title-bar .closer {\n color: #222;\n position: absolute;\n top: 2px;\n right: 0;\n text-decoration: none;\n padding: 2px 2px 2px 4px;\n}\n\n.dynamic-component-container .dynamic-component-title-bar .closer:before {\n margin: 0;\n padding-right: 1px;\n top: 0;\n position: relative;\n content: "\\e69e";\n font-size: 22px;\n font-size: 2.2rem;\n}\n\n.dynamic-component-container .dynamic-component-title-bar .title-bar-icon:before {\n margin: 0;\n padding-right: 1px;\n top: 6px;\n position: relative;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e626";\n font-size: 16px;\n font-size: 1.6rem;\n}\n\n.dynamic-component-container .dynamic-component-content {\n position: relative;\n}\n\n.dynamic-component-container .dynamic-component-content .dynamic-component-layer {\n position: absolute;\n opacity: 0;\n top: 0;\n left: 0;\n}\n\n.dynamic-component-container .dynamic-component-content .dynamic-component-layer.dragging-active {\n width: 100%;\n height: 100%;\n}\n\n.dynamic-component-container .dynamic-component-resize-container {\n height: 0;\n text-align: right;\n}\n\n.dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper {\n cursor: nwse-resize;\n display: inline-block;\n position: relative;\n bottom: 30px;\n z-index: 15001;\n}\n\n.dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper .dynamic-component-resize {\n width: 20px;\n height: 20px;\n margin-bottom: 10px;\n margin-right: 10px;\n border-right: 1px solid #222;\n border-bottom: 1px solid #222;\n}\n\n.dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper:hover, .dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper.resizing {\n bottom: 50px;\n}\n\n.dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper:hover .dynamic-component-resize, .dynamic-component-container .dynamic-component-resize-container .dynamic-component-resize-wrapper.resizing .dynamic-component-resize {\n border-right: 2px solid #222;\n border-bottom: 2px solid #222;\n width: 40px;\n height: 40px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/dynamicComponent/css/dynamicComponent.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n/* Style for the calculator component */\n/* font size mixin specific to calculator to use em instead of rem unit */\n.dynamic-component-container .calcContainer {\n width: 100%;\n height: 100%;\n background: none;\n border: none;\n bottom: auto;\n clear: none;\n color: #222;\n display: block;\n float: none;\n font-family: sans-serif;\n left: auto;\n line-height: normal;\n margin: 0;\n max-height: none;\n max-width: none;\n min-height: 0;\n min-width: 0;\n overflow: visible;\n padding: 0;\n position: static;\n right: auto;\n text-align: left;\n text-decoration: none;\n top: auto;\n visibility: visible;\n}\n\n.dynamic-component-container .calcContainer:after {\n clear: both;\n content: ".";\n display: block;\n height: 0;\n visibility: hidden;\n}\n\n.dynamic-component-container .calcContainer form {\n height: 100%;\n padding: 0 20px 20px;\n width: 100%;\n /*\n * the font-size of the parent element of the calculator will serve as the reference for the children.\n * the children must use em unit for font-sizing to ensure proportional increase when resized.\n */\n font-size: 10px;\n}\n\n.dynamic-component-container .calcContainer form input, .dynamic-component-container .calcContainer form button {\n background-color: #f3f1ef;\n border-radius: 0;\n padding: 0;\n border: none;\n color: #222 !important;\n float: left;\n height: 14%;\n text-align: center;\n text-shadow: none;\n width: 25%;\n min-width: 0;\n cursor: pointer;\n}\n\n.dynamic-component-container .calcContainer form input.div-1, .dynamic-component-container .calcContainer form button.div-1 {\n width: 100%;\n}\n\n.dynamic-component-container .calcContainer form input.div-2, .dynamic-component-container .calcContainer form button.div-2 {\n width: 50%;\n}\n\n.dynamic-component-container .calcContainer form input.div-3, .dynamic-component-container .calcContainer form button.div-3 {\n width: 33.33%;\n}\n\n.dynamic-component-container .calcContainer form input.div-4, .dynamic-component-container .calcContainer form button.div-4 {\n width: 25%;\n}\n\n.dynamic-component-container .calcContainer form input.div-5, .dynamic-component-container .calcContainer form button.div-5 {\n width: 20%;\n}\n\n.dynamic-component-container .calcContainer form input.calcFirst, .dynamic-component-container .calcContainer form button.calcFirst {\n clear: left;\n}\n\n.dynamic-component-container .calcContainer form input.calcClear, .dynamic-component-container .calcContainer form button.calcClear {\n color: #0e5d91 !important;\n font-size: 1.8em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcFunction, .dynamic-component-container .calcContainer form button.calcFunction {\n font-size: 1.8em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcFunction sup, .dynamic-component-container .calcContainer form button.calcFunction sup {\n top: -0.5em;\n padding-right: 1px;\n font-size: 0.8em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcFunction sub, .dynamic-component-container .calcContainer form button.calcFunction sub {\n padding-left: 1px;\n font-size: 1em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcFunction.calcDivision, .dynamic-component-container .calcContainer form input.calcFunction.calcMultiplication, .dynamic-component-container .calcContainer form input.calcFunction.calcSubtraction, .dynamic-component-container .calcContainer form input.calcFunction.calcSum, .dynamic-component-container .calcContainer form button.calcFunction.calcDivision, .dynamic-component-container .calcContainer form button.calcFunction.calcMultiplication, .dynamic-component-container .calcContainer form button.calcFunction.calcSubtraction, .dynamic-component-container .calcContainer form button.calcFunction.calcSum {\n font-size: 2.2em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcDisplay, .dynamic-component-container .calcContainer form button.calcDisplay {\n cursor: text;\n opacity: 1 !important;\n background: #fbfbfa;\n font-family: monospace;\n text-align: right;\n width: calc(100% + 40px);\n max-width: none;\n padding: 0 0.2em;\n height: 16%;\n font-size: 2.8em;\n position: relative;\n left: -20px;\n}\n\n.dynamic-component-container .calcContainer form input.calcDisplay:hover, .dynamic-component-container .calcContainer form button.calcDisplay:hover {\n background: #fefefd;\n}\n\n.dynamic-component-container .calcContainer form input.calcInput, .dynamic-component-container .calcContainer form button.calcInput {\n font-weight: bold;\n font-size: 1.8em !important;\n}\n\n.dynamic-component-container .calcContainer form input.calcSubmit, .dynamic-component-container .calcContainer form button.calcSubmit {\n font-weight: bold;\n color: #222 !important;\n background-color: #ddd;\n text-shadow: none;\n line-height: normal;\n}\n\n.dynamic-component-container .calcContainer form input:hover, .dynamic-component-container .calcContainer form button:hover {\n background: #a4a9b1;\n}\n\n.dynamic-component-container .calcContainer form input.triggered, .dynamic-component-container .calcContainer form button.triggered {\n background: #6597b9;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/calculator/css/calculator.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.class-selector {\n padding: 5px;\n position: relative;\n opacity: 0;\n}\n\n.class-selector.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.class-selector a.selected {\n display: inline-block;\n position: relative;\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 3px;\n padding: 3px 20px 3px 10px;\n text-decoration: none;\n width: 100%;\n background-color: white;\n}\n\n.class-selector a.selected.empty {\n color: #a4a9b1;\n}\n\n.class-selector a.selected:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n position: absolute;\n right: 10px;\n top: 7px;\n}\n\n.class-selector a.open:after {\n content: "\\e610";\n}\n\n.class-selector .options {\n position: absolute;\n width: 100%;\n background-color: #f3f1ef;\n border: solid 1px #ddd;\n -webkit-border-bottom-right-radius: 3px;\n -webkit-border-bottom-left-radius: 3px;\n -moz-border-radius-bottomright: 3px;\n -moz-border-radius-bottomleft: 3px;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n -ms-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n -o-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n left: 0;\n margin-top: 7px;\n overflow-y: auto;\n z-index: 100;\n min-height: 100px;\n max-height: 450px;\n transition: max-height, 300ms, ease, 0s;\n}\n\n.class-selector .options.folded {\n overflow: hidden;\n min-height: 0;\n max-height: 0;\n border-width: 0;\n transition: max-height, 300ms, ease, 0s;\n}\n\n.class-selector .options ul {\n list-style-type: none;\n padding: 0;\n margin: 0 0 0 15px;\n}\n\n.class-selector .options ul li {\n padding-top: 3px;\n}\n\n.class-selector .options ul li a {\n text-decoration: none;\n color: #222;\n}\n\n.class-selector .options ul li a:hover {\n color: #0e5d91;\n transition: color, 200ms, linear, 0s;\n}\n\n.class-selector .options ul li:before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e60c";\n color: #d8ae5b;\n top: 2px;\n -webkit-text-shadow: 1px 1px 0 #ad8b49;\n -moz-text-shadow: 1px 1px 0 #ad8b49;\n text-shadow: 1px 1px 0 #ad8b49;\n margin-right: 4px;\n}\n\n.class-selector .options > ul {\n margin: 5px 0 0 7px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/class/css/selector.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.window-component {\n display: flex;\n flex-direction: column;\n}\n\n.window-component .window-component-title-bar {\n display: flex;\n padding: 3px 8px;\n}\n\n.window-component .window-component-title-bar .window-component-title {\n flex: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.window-component .window-component-title-bar .window-component-controls {\n flex: 0 1 auto;\n}\n\n.window-component .window-component-title-bar .window-component-controls button {\n padding: 0;\n height: auto;\n margin-left: 8px;\n}\n\n.window-component .window-component-body {\n flex: 1;\n padding: 8px;\n}\n\n.window-component {\n border: 1px solid #333333;\n}\n\n.window-component .window-component-title-bar {\n background-color: #333333;\n color: white;\n}\n\n.window-component .window-component-title-bar .window-component-controls button {\n background-color: transparent;\n}\n\n.window-component .window-component-body {\n background-color: #f3f1ef;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/component/css/windowComponent.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.contextual-popup {\n position: absolute;\n left: 15px;\n top: 0px;\n width: 500px;\n color: #222;\n background: #f3f1ef;\n padding: 15px;\n z-index: 300;\n box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);\n}\n\n.contextual-popup h2 {\n font-size: 15px;\n font-size: 1.5rem;\n margin-bottom: 0;\n}\n\n.contextual-popup .heading {\n font-weight: bold;\n}\n\n.contextual-popup .arrow {\n position: absolute;\n z-index: 301;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n border: 1px #f3f1ef solid;\n border-left: none;\n border-top: none;\n width: 12px;\n height: 12px;\n background: #f3f1ef;\n box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);\n}\n\n.contextual-popup .arrow-cover {\n background: #f3f1ef;\n position: absolute;\n z-index: 302;\n left: 6px;\n width: 30px;\n height: 15px;\n}\n\n.contextual-popup.bottom .arrow {\n top: -6px;\n}\n\n.contextual-popup.bottom .arrow-cover {\n top: 0px;\n}\n\n.contextual-popup.top .arrow {\n bottom: -6px;\n}\n\n.contextual-popup.top .arrow-cover {\n bottom: 0px;\n}\n\n.contextual-popup .tooltipstered {\n text-align: right;\n}\n\n.contextual-popup .footer {\n margin-top: 10px;\n}\n\n.contextual-popup .footer .btn {\n float: right;\n margin-left: 20px;\n}\n\n.contextual-popup .footer .btn.cancel {\n position: relative;\n top: 3px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/contextualPopup/css/contextualPopup.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.readiness-dashboard-container .dashboard-header {\n margin-bottom: 25px;\n}\n\n.readiness-dashboard-container .dashboard-warning {\n font-weight: bold;\n text-align: center;\n}\n\n.readiness-dashboard-container .dashboard-metrics_list {\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n justify-content: space-between;\n list-style: none;\n padding-left: 0;\n}\n\n.readiness-dashboard-container .dashboard-metrics_list.list .dashboard-metric {\n height: auto;\n width: 100%;\n}\n\n.readiness-dashboard-container .dashboard-metric {\n background-color: white;\n border: 1px solid #8d949e;\n height: 190px;\n margin-bottom: 15px;\n padding: 0 15px;\n width: 205px;\n}\n\n.readiness-dashboard-container .dashboard-metric_title {\n margin-bottom: 5px;\n}\n\n.readiness-dashboard-container .dashboard-metric_score-container {\n background-color: #e6e6e6;\n border: 1px solid #8d949e;\n height: 10px;\n margin-bottom: 15px;\n width: 100%;\n}\n\n.readiness-dashboard-container .dashboard-metric_score {\n height: 100%;\n border-right: 2px solid #8d949e;\n}\n\n.readiness-dashboard-container .dashboard-metric_score.score-error {\n background-color: #ba122b;\n}\n\n.readiness-dashboard-container .dashboard-metric_score.score-warn {\n background-color: #d8ae5b;\n}\n\n.readiness-dashboard-container .dashboard-metric_score.score-success {\n background-color: #0e914b;\n border-right: none;\n}\n\n.readiness-dashboard-container .dashboard-metric_info {\n list-style: none;\n padding-left: 0;\n}\n\n.readiness-dashboard-container .dashboard-metric_info-item {\n padding-left: 15px;\n position: relative;\n}\n\n.readiness-dashboard-container .dashboard-metric_info-item:before {\n content: "-";\n left: 0;\n position: absolute;\n}\n\n@media (max-width: 900px) {\n .readiness-dashboard-container .dashboard-metrics_list {\n justify-content: space-around;\n }\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/dashboard/css/dashboard.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.datalist {\n max-width: 1024px;\n margin: auto;\n}\n\n.datalist h1 {\n font-family: "Source Sans Pro", sans-serif;\n font-size: 22px;\n font-size: 2.2rem;\n font-weight: normal;\n}\n\n.datalist h2 {\n font-family: "Source Sans Pro", sans-serif;\n font-size: 18px;\n font-size: 1.8rem;\n margin: 30px 0 10px;\n}\n\n.datalist .list {\n width: 100%;\n}\n\n.datalist .list .action-bar {\n margin: 10px 0;\n}\n\n.datalist .list .action-bar .btn-info {\n overflow: hidden;\n background: transparent;\n border: 1px rgba(255, 255, 255, 0.3) solid;\n}\n\n.datalist .list table.matrix th {\n vertical-align: top;\n}\n\n.datalist .list table.matrix tr.selected {\n background: #a4bbc5;\n}\n\n.datalist .list table.hoverable tr:hover {\n background: #e4ecef;\n cursor: pointer;\n}\n\n.datalist .list table th {\n cursor: not-allowed;\n}\n\n.datalist .list table th [data-sort-by] {\n cursor: pointer;\n}\n\n.datalist .list table th .sorted:after {\n float: right;\n}\n\n.datalist .list table th .sorted.sorted_asc::after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n}\n\n.datalist .list table th .sorted.sorted_desc::after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e610";\n}\n\n.datalist .list table tr.selected {\n background: #a4bbc5;\n}\n\n.datalist .list table th.checkboxes,\n.datalist .list table td.checkboxes {\n width: 20px;\n text-align: center;\n}\n\n.datalist .list table th.actions,\n.datalist .list table td.actions {\n text-align: center;\n width: 20px;\n overflow: visible;\n padding: 2px 10px;\n}\n\n.datalist .list table th button,\n.datalist .list table td button {\n text-transform: capitalize;\n}\n\n.datalist.loading .loading {\n display: inline-block;\n}\n\n.datalist.loading .list, .datalist.loading .empty-list, .datalist.loading .available-list {\n display: none;\n}\n\n.datalist.loaded .list, .datalist.loaded .available-list {\n display: inline-block;\n}\n\n.datalist.loaded .loading, .datalist.loaded .empty-list {\n display: none;\n}\n\n.datalist.empty .empty-list {\n display: inline-block;\n}\n\n.datalist.empty .loading, .datalist.empty .list, .datalist.empty .available-list {\n display: none;\n}\n\n.datalist.selectable td.label {\n cursor: default;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/datalist/css/datalist.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.pagination .pages {\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n justify-content: center;\n padding-left: 0;\n margin: 15px 0;\n font-weight: bold;\n}\n\n.pagination .pages > li {\n display: inline;\n}\n\n.pagination .pages > li > a,\n.pagination .pages > li > span {\n cursor: pointer;\n position: relative;\n float: left;\n padding: 5px 15px;\n line-height: 1.4;\n text-decoration: none;\n margin-left: -1px;\n color: #222;\n}\n\n.pagination .pages > li:first-child > a,\n.pagination .pages > li:first-child > span {\n margin-left: 0;\n}\n\n.pagination .pages > li > a:hover, .pagination .pages > li > a:focus {\n color: #222;\n}\n\n.pagination .pages > .active > a, .pagination .pages > .active > a:hover, .pagination .pages > .active > a:focus,\n.pagination .pages > .active > span,\n.pagination .pages > .active > span:hover,\n.pagination .pages > .active > span:focus {\n z-index: 2;\n color: #ada194;\n cursor: default;\n}\n\n.pagination .pages > .disabled > span,\n.pagination .pages > .disabled > span:hover,\n.pagination .pages > .disabled > span:focus,\n.pagination .pages > .disabled > a,\n.pagination .pages > .disabled > a:hover,\n.pagination .pages > .disabled > a:focus {\n color: #ada194;\n cursor: not-allowed;\n background-color: white;\n}\n\n.pagination-lg .pages > li {\n display: inline;\n}\n\n.pagination-lg .pages > li > a,\n.pagination-lg .pages > li > span {\n padding: 10px 25px;\n font-size: 20px;\n font-size: 2rem;\n}\n\n.pagination-lg .pages > li:first-child > a,\n.pagination-lg .pages > li:first-child > span {\n margin-left: 0;\n}\n\n.pagination-sm .pages > li {\n display: inline;\n}\n\n.pagination-sm .pages > li > a,\n.pagination-sm .pages > li > span {\n padding: 5px 18px;\n font-size: 12px;\n font-size: 1.2rem;\n}\n\n.pagination-sm .pages > li:first-child > a,\n.pagination-sm .pages > li:first-child > span {\n margin-left: 0;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/pagination/css/pagination.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.datatable-wrapper .datatable-header {\n display: -ms-flex;\n display: flex;\n -ms-align-items: center;\n align-items: center;\n -ms-justify-content: space-between;\n justify-content: space-between;\n}\n\n.datatable-wrapper h2 {\n font-family: "Source Sans Pro", sans-serif;\n font-size: 18px;\n font-size: 1.8rem;\n margin: 30px 0 10px;\n}\n\n.datatable-wrapper .action-bar {\n margin: 10px 0;\n}\n\n.datatable-wrapper .action-bar .btn-info {\n overflow: hidden;\n background: transparent;\n border: 1px rgba(255, 255, 255, 0.3) solid;\n}\n\n.datatable-wrapper .filter {\n display: inline-block;\n position: relative;\n text-align: right;\n width: 100%;\n margin-bottom: 10px;\n}\n\n.datatable-wrapper .filter input {\n padding-right: 30px;\n min-width: 250px;\n}\n\n.datatable-wrapper .filter button {\n position: absolute;\n right: 1px;\n top: -1px;\n cursor: default;\n opacity: .5;\n background: transparent;\n width: 25px;\n height: 25px;\n}\n\n.datatable-wrapper .filter button:before {\n color: #666;\n}\n\n.datatable-wrapper .filter.column {\n float: none;\n width: auto;\n text-align: left;\n margin-bottom: 0;\n}\n\n.datatable-wrapper .filter.column input {\n min-width: inherit;\n}\n\n.datatable-wrapper .datatable-pagination-bottom,\n.datatable-wrapper .datatable-pagination-top {\n overflow-x: hidden;\n}\n\n.datatable-container {\n overflow-y: auto;\n}\n\n.datatable-container .empty {\n text-align: center;\n margin: 2rem 0;\n}\n\ntable.datatable.matrix th {\n vertical-align: top;\n padding: 2px 2px;\n}\n\ntable.datatable.matrix tr.selected {\n background: #a4bbc5;\n}\n\ntable.datatable.hoverable tr:hover {\n background: #e4ecef;\n cursor: pointer;\n}\n\ntable.datatable th {\n cursor: not-allowed;\n}\n\ntable.datatable th .sortable, table.datatable th .sorted {\n cursor: pointer;\n position: relative;\n padding-right: 20px;\n}\n\ntable.datatable th .sortable:after, table.datatable th .sorted:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n right: 5px;\n color: #a4a9b1;\n}\n\ntable.datatable th .sortable:hover:after, table.datatable th .sortable:active:after, table.datatable th .sortable:focus:after, table.datatable th .sorted:hover:after, table.datatable th .sorted:active:after, table.datatable th .sorted:focus:after {\n color: #3e7da7;\n}\n\ntable.datatable th .sortable:after {\n content: "\\e630";\n top: 3px;\n}\n\ntable.datatable th .sorted.sorted_asc:after {\n content: "\\e611";\n}\n\ntable.datatable th .sorted.sorted_desc:after {\n content: "\\e610";\n}\n\ntable.datatable tr.selected {\n background: #a4bbc5;\n}\n\ntable.datatable tr.highlight {\n background-color: #f7efde !important;\n}\n\ntable.datatable th.checkboxes,\ntable.datatable td.checkboxes {\n width: 20px;\n text-align: center;\n box-sizing: content-box;\n padding: 4px;\n}\n\ntable.datatable th.checkboxes > input[type="checkbox"],\ntable.datatable td.checkboxes > input[type="checkbox"] {\n margin: 0;\n}\n\ntable.datatable th.actions,\ntable.datatable td.actions {\n text-align: center;\n}\n\ntable.datatable th button,\ntable.datatable td button {\n text-transform: capitalize;\n}\n\ntable.datatable th [class^="icon-"],\ntable.datatable th [class*=" icon-"],\ntable.datatable td [class^="icon-"],\ntable.datatable td [class*=" icon-"] {\n width: 14px;\n display: inline-block;\n text-align: center;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/datatable/css/datatable.css.map */.flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: \'\';\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0,0,0,0.9);\n fill: rgba(0,0,0,0.9);\n height: 28px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0px;\n line-height: 16px;\n height: 28px;\n padding: 10px;\n z-index: 3;\n color: rgba(0,0,0,0.9);\n fill: rgba(0,0,0,0.9);\n}\n.flatpickr-months .flatpickr-prev-month.disabled,\n.flatpickr-months .flatpickr-next-month.disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n/*\n /*rtl:begin:ignore*/\n/*\n */\n left: 0;\n/*\n /*rtl:end:ignore*/\n/*\n */\n}\n/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n/*\n /*rtl:begin:ignore*/\n/*\n */\n right: 0;\n/*\n /*rtl:end:ignore*/\n/*\n */\n}\n/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57,57,57,0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0,0,0,0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0,0,0,0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: "";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57,57,57,0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57,57,57,0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0,0,0,0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0,0,0,0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 6.16px 0 0 0;\n line-height: 1;\n height: 28px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0,0,0,0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0,0,0,0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0,0,0,0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0,0,0,0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0,0,0,0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.disabled,\n.flatpickr-day.disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57,57,57,0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.disabled,\n.flatpickr-day.disabled:hover {\n cursor: not-allowed;\n color: rgba(57,57,57,0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n display: inline-block;\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57,57,57,0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: "";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n display: inline-block;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n/*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.datetime-picker {\n /* flatpickr theme */\n}\n\n.datetime-picker.control-buttons {\n position: static;\n display: flex;\n flex-flow: row nowrap;\n align-items: stretch;\n}\n\n.datetime-picker.control-buttons > input {\n flex: 1 0 auto;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-right-width: 0;\n}\n\n.datetime-picker.control-buttons > button {\n flex: 0 0 30px;\n background: #e1e2e3;\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 0;\n cursor: pointer;\n text-align: center;\n padding: 4px 5px;\n display: block;\n height: inherit;\n}\n\n.datetime-picker.control-buttons > button:last-of-type {\n margin-left: -1px;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n\n.datetime-picker.control-buttons > button:hover, .datetime-picker.control-buttons > button:focus {\n background: #e7e8e9;\n z-index: 100;\n}\n\n.datetime-picker.control-buttons > button:focus {\n border: 1px solid #0e5d91;\n outline: none;\n}\n\n.datetime-picker.control-buttons > button span {\n color: #222;\n text-shadow: none;\n padding: 0;\n}\n\n.datetime-picker .flatpickr-calendar .numInput {\n min-width: inherit;\n max-width: inherit;\n width: inherit;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-weekday {\n text-transform: capitalize;\n}\n\n.datetime-picker .flatpickr-calendar .numInputWrapper {\n height: 37px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-month {\n height: 37px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-month .flatpickr-current-month {\n padding: 0;\n height: 37px;\n line-height: 37px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-month .flatpickr-current-month .cur-month {\n text-transform: capitalize;\n margin: 0 0.5ch;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-month .flatpickr-current-month .cur-month :hover {\n background: inherit;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-month .flatpickr-current-month .cur-year {\n padding: 0 0 0 0.5ch;\n height: 37px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-months .flatpickr-next-month :hover svg,\n.datetime-picker .flatpickr-calendar .flatpickr-months .flatpickr-prev-month :hover svg {\n fill: #0e5d91;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.prevMonthDay.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.nextMonthDay.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.today.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.prevMonthDay.today.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.nextMonthDay.today.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.prevMonthDay:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.nextMonthDay:hover, .datetime-picker .flatpickr-calendar .flatpickr-day:focus, .datetime-picker .flatpickr-calendar .flatpickr-day.prevMonthDay:focus, .datetime-picker .flatpickr-calendar .flatpickr-day.nextMonthDay:focus {\n background: #e7e8e9;\n border-color: #e7e8e9;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.today {\n border-color: #0e5d91;\n color: #222;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.today:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.today:focus {\n background: #e7e8e9;\n border-color: #0e5d91;\n color: #222;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.selected, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange, .datetime-picker .flatpickr-calendar .flatpickr-day.selected.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.inRange, .datetime-picker .flatpickr-calendar .flatpickr-day.selected:focus, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange:focus, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange:focus, .datetime-picker .flatpickr-calendar .flatpickr-day.selected:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.selected.prevMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.prevMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.prevMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.selected.nextMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.nextMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.nextMonthDay {\n background: #3e7da7;\n border-color: #3e7da7;\n color: white;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.selected.startRange, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.startRange, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.startRange {\n background: #3e7da7;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.selected.endRange, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.endRange, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.endRange {\n background: #3e7da7;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),\n.datetime-picker .flatpickr-calendar .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),\n.datetime-picker .flatpickr-calendar .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {\n box-shadow: -10px 0 0 #3e7da7;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.selected.startRange.endRange, .datetime-picker .flatpickr-calendar .flatpickr-day.startRange.startRange.endRange, .datetime-picker .flatpickr-calendar .flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-day.disabled, .datetime-picker .flatpickr-calendar .flatpickr-day.disabled:hover, .datetime-picker .flatpickr-calendar .flatpickr-day.prevMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.nextMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.notAllowed, .datetime-picker .flatpickr-calendar .flatpickr-day.notAllowed.prevMonthDay, .datetime-picker .flatpickr-calendar .flatpickr-day.notAllowed.nextMonthDay {\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n\n.datetime-picker .flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 38px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-time {\n line-height: 37px;\n height: 37px;\n}\n\n.datetime-picker .flatpickr-calendar .flatpickr-time .numInput {\n width: 100%;\n line-height: 37px;\n height: 37px;\n}\n\n.datetime-picker > input.flatpickr-input.flatpickr-input.flatpickr-input {\n padding: 4px;\n min-width: 130px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/datetime/css/picker.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.daterange .datetime-picker {\n display: inline-block;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/dateRange/css/dateRange.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.ui-generis-validator {\n color: #ba122b;\n text-align: right;\n width: 99%;\n}\n\n.ui-generis-validator input.error,\n.ui-generis-validator select.error,\n.ui-generis-validator textarea.error {\n border-color: #ba122b;\n color: #ba122b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/validator/css/validator.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.ui-generis-widget {\n margin: 10px 0px;\n}\n\n.ui-generis-widget > .left {\n display: inline-block;\n margin-top: 8px;\n width: 34%;\n vertical-align: top;\n}\n\n.ui-generis-widget > .right {\n display: inline-block;\n min-width: 150px;\n width: 65%;\n}\n\n.ui-generis-widget > .right > input,\n.ui-generis-widget > .right > select,\n.ui-generis-widget > .right > textarea {\n background-color: white;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n color: #222;\n font-family: "Source Sans Pro", sans-serif;\n padding: 8px;\n width: 100%;\n}\n\n.ui-generis-widget > .right > input,\n.ui-generis-widget > .right > select {\n font: inherit;\n height: 36px;\n}\n\n.ui-generis-widget > .right > .check-box-input {\n color: #222;\n display: inline-block;\n font-family: "Source Sans Pro", sans-serif;\n padding: 4px;\n width: 100%;\n}\n\n.ui-generis-widget > .right > .check-box-input > .option {\n padding-top: 4px;\n}\n\n.ui-generis-widget > .right input.error,\n.ui-generis-widget > .right select.error,\n.ui-generis-widget > .right textarea.error,\n.ui-generis-widget > .right .check-box-input.error {\n border-color: #ba122b;\n color: #ba122b;\n}\n\n.ui-generis-widget .validation-container {\n color: #ba122b;\n text-align: right;\n width: 99%;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/widget/css/widget.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.ui-generis-form {\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n background-color: #f3f1ef;\n padding: 20px;\n position: relative;\n margin: 20px;\n width: 500px;\n}\n\n.ui-generis-form h2 {\n margin-top: 0;\n}\n\n.ui-generis-form .toolbar {\n margin-top: 30px;\n text-align: right;\n}\n\n@keyframes spinner {\n to {\n transform: rotate(360deg);\n }\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/form/css/form.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.resource-selector {\n position: relative;\n height: 100%;\n display: -ms-flex;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n opacity: 0;\n background-color: #f3f1ef;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n}\n\n.resource-selector.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.resource-selector .resource-list {\n position: relative;\n height: 100%;\n opacity: 0;\n}\n\n.resource-selector .resource-list.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.resource-selector .resource-list.multiple ul li a:after {\n display: block;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-list.multiple ul li[data-access="denied"] a:after {\n display: none;\n}\n\n.resource-selector .resource-list ul {\n list-style-type: none;\n padding: 0;\n margin: 0;\n}\n\n.resource-selector .resource-list ul li {\n position: relative;\n height: 40px;\n padding: 10px;\n border-bottom: solid 1px #ddd;\n transition: background-color, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-list ul li a {\n transition: color, 200ms, linear, 0s;\n color: #222;\n display: inline-block;\n width: 100%;\n padding-right: 25px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.resource-selector .resource-list ul li a:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e69b";\n color: #0e5d91;\n position: absolute;\n right: 17px;\n top: 12px;\n display: none;\n}\n\n.resource-selector .resource-list ul li a:hover {\n text-decoration: none;\n}\n\n.resource-selector .resource-list ul li a > span {\n color: #0e5d91;\n margin-right: 4px;\n font-size: 16px;\n font-size: 1.6rem;\n vertical-align: top;\n}\n\n.resource-selector .resource-list ul li.selected, .resource-selector .resource-list ul li:hover {\n background-color: #3e7da7;\n cursor: pointer;\n transition: background-color, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-list ul li.selected a, .resource-selector .resource-list ul li:hover a {\n color: white;\n transition: color, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-list ul li.selected a:after, .resource-selector .resource-list ul li:hover a:after {\n color: white;\n}\n\n.resource-selector .resource-list ul li.selected a > span, .resource-selector .resource-list ul li:hover a > span {\n color: white;\n}\n\n.resource-selector .resource-list ul li.selected a:after {\n content: "\\e69d";\n}\n\n.resource-selector .resource-list ul li[data-access=denied] > a [class^="icon-"], .resource-selector .resource-list ul li[data-access=denied] > a [class*=" icon-"], .resource-selector .resource-list ul li[data-access=partial] > a [class^="icon-"], .resource-selector .resource-list ul li[data-access=partial] > a [class*=" icon-"] {\n position: relative;\n}\n\n.resource-selector .resource-list ul li[data-access=denied] > a [class^="icon-"]:after, .resource-selector .resource-list ul li[data-access=denied] > a [class*=" icon-"]:after, .resource-selector .resource-list ul li[data-access=partial] > a [class^="icon-"]:after, .resource-selector .resource-list ul li[data-access=partial] > a [class*=" icon-"]:after {\n content: "\\e629";\n color: #555;\n position: absolute;\n left: 7px;\n top: 6px;\n}\n\n.resource-selector .resource-list ul li[data-access=denied] {\n color: #a4a9b1;\n background-color: white;\n}\n\n.resource-selector .resource-list ul li[data-access=denied]:hover, .resource-selector .resource-list ul li[data-access=denied]:hover > a, .resource-selector .resource-list ul li[data-access=denied] > a, .resource-selector .resource-list ul li[data-access=denied] [class^="icon-"]:before, .resource-selector .resource-list ul li[data-access=denied] [class*=" icon-"]:before {\n cursor: auto;\n background-color: white;\n color: #a4a9b1 !important;\n}\n\n.resource-selector .resource-tree {\n position: relative;\n height: 100%;\n opacity: 0;\n}\n\n.resource-selector .resource-tree.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.resource-selector .resource-tree.multiple ul li.selectable > a > .selector {\n display: inline-block;\n}\n\n.resource-selector .resource-tree.multiple ul li.instance[data-access="denied"] a .selector {\n display: none;\n}\n\n.resource-selector .resource-tree .clickable:hover:before {\n content: " ";\n display: inline-block;\n position: absolute;\n width: 25px;\n height: 25px;\n top: 7.5px;\n left: 0;\n border-radius: 50%;\n background-color: #b9bfc3;\n opacity: .5;\n}\n\n.resource-selector .resource-tree .clickable:focus {\n outline: 0 none;\n}\n\n.resource-selector .resource-tree ul {\n list-style-type: none;\n padding: 0;\n margin: 0;\n}\n\n.resource-selector .resource-tree ul li {\n position: relative;\n cursor: pointer;\n}\n\n.resource-selector .resource-tree ul li > a {\n height: 40px;\n line-height: 40px;\n display: block;\n width: 100%;\n padding-right: 30px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n border-bottom: solid 1px #ddd;\n color: #222;\n}\n\n.resource-selector .resource-tree ul li.class .class-toggler {\n display: inline-block;\n position: relative;\n width: 25px;\n height: 40px;\n text-align: center;\n}\n\n.resource-selector .resource-tree ul li.class .class-toggler:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n font-size: 15px;\n font-size: 1.5rem;\n position: relative;\n}\n\n.resource-selector .resource-tree ul li.class.empty .class-toggler {\n visibility: hidden;\n}\n\n.resource-selector .resource-tree ul li.class > a > .icon-folder:before {\n content: "\\e60d";\n color: #d8ae5b;\n margin-right: 4px;\n}\n\n.resource-selector .resource-tree ul li.class > a:hover {\n background-color: #e7eff4;\n color: #222;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.class.selected > a {\n background-color: #3e7da7;\n color: white;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.class.selected > a:before, .resource-selector .resource-tree ul li.class.selected > a:after {\n color: white;\n}\n\n.resource-selector .resource-tree ul li.class.selected > a:hover {\n background-color: #266d9c;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.class.selected > a .clickable:hover:before {\n background-color: #518ab0;\n}\n\n.resource-selector .resource-tree ul li.class.closed > a > .class-toggler:after {\n content: "\\e60f";\n}\n\n.resource-selector .resource-tree ul li.class.closed > a > .icon-folder:before {\n content: "\\e60c";\n}\n\n.resource-selector .resource-tree ul li.class.closed > ul {\n display: none;\n}\n\n.resource-selector .resource-tree ul li.instance > a > [class^="icon-"], .resource-selector .resource-tree ul li.instance > a > [class*=" icon-"] {\n color: #0e5d91;\n margin-right: 4px;\n margin-left: 25px;\n font-size: 16px;\n font-size: 1.6rem;\n}\n\n.resource-selector .resource-tree ul li.instance:hover {\n background-color: #e7eff4;\n color: #222;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.instance.selected {\n background-color: #3e7da7;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.instance.selected > a, .resource-selector .resource-tree ul li.instance.selected > a > [class^="icon-"], .resource-selector .resource-tree ul li.instance.selected > a > [class*=" icon-"] {\n color: white;\n}\n\n.resource-selector .resource-tree ul li.instance.selected:hover {\n background-color: #266d9c;\n transition: all, 200ms, linear, 0s;\n}\n\n.resource-selector .resource-tree ul li.instance.selected .clickable:hover:before {\n background-color: #518ab0;\n}\n\n.resource-selector .resource-tree ul li > a > .selector {\n display: none;\n position: absolute;\n top: 0;\n right: 8px;\n line-height: 40px;\n height: 40px;\n width: 25px;\n text-align: center;\n}\n\n.resource-selector .resource-tree ul li > a > .selector:after {\n transition: all, 200ms, linear, 0s;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e69b";\n font-size: 15px;\n font-size: 1.5rem;\n color: #0e5d91;\n line-height: 40px;\n position: relative;\n}\n\n.resource-selector .resource-tree ul li.selected > a > .selector:after {\n content: "\\e69d";\n}\n\n.resource-selector .resource-tree ul li.selected > a > .selector:after, .resource-selector .resource-tree ul li.selected > a:hover > .selector:after {\n color: white;\n}\n\n.resource-selector .resource-tree ul li[data-access=denied] > a [class^="icon-"], .resource-selector .resource-tree ul li[data-access=denied] > a [class*=" icon-"], .resource-selector .resource-tree ul li[data-access=partial] > a [class^="icon-"], .resource-selector .resource-tree ul li[data-access=partial] > a [class*=" icon-"] {\n position: relative;\n}\n\n.resource-selector .resource-tree ul li[data-access=denied] > a [class^="icon-"]:after, .resource-selector .resource-tree ul li[data-access=denied] > a [class*=" icon-"]:after, .resource-selector .resource-tree ul li[data-access=partial] > a [class^="icon-"]:after, .resource-selector .resource-tree ul li[data-access=partial] > a [class*=" icon-"]:after {\n content: "\\e629";\n color: #555;\n position: absolute;\n left: 7px;\n top: 6px;\n}\n\n.resource-selector .resource-tree ul li[data-access=denied] {\n color: #a4a9b1;\n background-color: white;\n}\n\n.resource-selector .resource-tree ul li[data-access=denied]:hover, .resource-selector .resource-tree ul li[data-access=denied]:hover > a, .resource-selector .resource-tree ul li[data-access=denied] > a, .resource-selector .resource-tree ul li[data-access=denied] [class^="icon-"]:before, .resource-selector .resource-tree ul li[data-access=denied] [class*=" icon-"]:before {\n cursor: auto;\n background-color: white;\n color: #a4a9b1 !important;\n}\n\n.resource-selector .resource-tree ul li a:hover {\n text-decoration: none;\n}\n\n.resource-selector .filters {\n position: relative;\n height: 100%;\n opacity: 0;\n}\n\n.resource-selector .filters.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.resource-selector .filters .ui-generis-form {\n margin: 0;\n padding: 10px;\n width: 100%;\n background-color: #f3f1ef;\n border: none;\n}\n\n.resource-selector .filters .ui-generis-form h2 {\n margin: 0;\n}\n\n.resource-selector .filters .ui-generis-form .left {\n width: 100%;\n}\n\n.resource-selector .filters .ui-generis-form .toolbar {\n margin: 0;\n}\n\n.resource-selector nav {\n height: 40px;\n flex: 0 1 40px;\n border-top: solid 1px #ddd;\n}\n\n.resource-selector .context {\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n padding-right: 16px;\n}\n\n.resource-selector .context .class-context {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 auto;\n flex: 1 1;\n overflow: hidden;\n}\n\n.resource-selector .context .class-context .class-selector {\n position: static;\n}\n\n.resource-selector .context .class-context .class-selector .options {\n max-height: calc(100% - 120px);\n}\n\n.resource-selector .context .class-context .class-selector .options.folded {\n max-height: 0;\n}\n\n.resource-selector .context > a {\n display: inline-block;\n width: 40px;\n height: 40px;\n padding: 10px 0 0 12px;\n color: #222;\n border-left: solid 1px white;\n text-shadow: 0 0 0 transparent;\n text-decoration: none;\n}\n\n.resource-selector .context > a:hover, .resource-selector .context > a.active {\n color: #3e7da7;\n transition: color, 200ms, linear, 0s;\n}\n\n.resource-selector .selection {\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n padding-right: 16px;\n}\n\n.resource-selector .selection .selection-control {\n flex: 0 0 80px;\n}\n\n.resource-selector .selection .selection-control > label {\n display: inline-block;\n width: 40px;\n height: 40px;\n padding: 10px 0 0 12px;\n color: #222;\n border-left: solid 1px white;\n text-shadow: 0 0 0 transparent;\n text-decoration: none;\n width: 36px;\n padding: 10px 0 0 8px;\n margin: 0;\n}\n\n.resource-selector .selection .selection-control > label:hover, .resource-selector .selection .selection-control > label.active {\n color: #3e7da7;\n transition: color, 200ms, linear, 0s;\n}\n\n.resource-selector .selection .selection-control > a {\n display: inline-block;\n width: 40px;\n height: 40px;\n padding: 10px 0 0 12px;\n color: #222;\n border-left: solid 1px white;\n text-shadow: 0 0 0 transparent;\n text-decoration: none;\n width: 38px;\n}\n\n.resource-selector .selection .selection-control > a:hover, .resource-selector .selection .selection-control > a.active {\n color: #3e7da7;\n transition: color, 200ms, linear, 0s;\n}\n\n.resource-selector .selection .selection-control .selection-toggle .icon-multi-select:before {\n font-size: 16px;\n font-size: 1.6rem;\n}\n\n.resource-selector .selection .selection-control .selection-toggle.hidden {\n display: inline-block !important;\n visibility: hidden;\n}\n\n.resource-selector .selection .search {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 auto;\n flex: 1 1;\n position: relative;\n padding: 6px 6px 6px 5px;\n}\n\n.resource-selector .selection .search:before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e61f";\n position: absolute;\n left: 12px;\n top: 12px;\n opacity: .4;\n}\n\n.resource-selector .selection .search input {\n border-radius: 2px;\n max-width: inherit;\n width: 100%;\n padding: 4px 25px;\n}\n\n.resource-selector .selection .search > a.filters-opener {\n position: absolute;\n right: 12px;\n top: 10px;\n font-size: 16px;\n font-size: 1.6rem;\n text-decoration: none;\n}\n\n.resource-selector .selection .filters-container {\n position: absolute;\n width: 100%;\n background-color: #f3f1ef;\n border: solid 1px #ddd;\n -webkit-border-bottom-right-radius: 3px;\n -webkit-border-bottom-left-radius: 3px;\n -moz-border-radius-bottomright: 3px;\n -moz-border-radius-bottomleft: 3px;\n border-bottom-right-radius: 3px;\n border-bottom-left-radius: 3px;\n -ms-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n -o-box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);\n left: 0;\n top: 80px;\n overflow-y: auto;\n z-index: 100;\n max-height: calc(100% - 110px);\n transition: max-height, 300ms, ease, 0s;\n}\n\n.resource-selector .selection .filters-container.folded {\n overflow: hidden;\n max-height: 0;\n border-width: 0;\n transition: max-height, 300ms, ease, 0s;\n}\n\n.resource-selector main {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 auto;\n flex: 1 1;\n min-height: 150px;\n border-top: solid 1px #ddd;\n background-color: white;\n height: 100%;\n overflow-y: scroll;\n}\n\n.resource-selector main .no-results {\n display: inline-block;\n width: 100%;\n text-align: center;\n margin: 10px auto;\n opacity: .75;\n}\n\n.resource-selector main .more {\n height: 45px;\n padding: 10px;\n}\n\n.resource-selector main.loading .more {\n opacity: 0.65;\n cursor: inherit;\n}\n\n.resource-selector footer {\n height: 30px;\n flex: 0 1 30px;\n border-top: solid 1px #ddd;\n background-color: #f3f1ef;\n text-align: center;\n padding: 5px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/class/css/selector.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.loading-button [class^="icon-"], .loading-button [class*=" icon-"] {\n padding: 0;\n}\n\n.loading-button .action-label, .loading-button .terminated-label {\n margin-left: 9px;\n}\n\n.loading-button .spinner-icon, .loading-button .terminated-label {\n display: none;\n}\n\n.loading-button.started {\n cursor: default;\n opacity: 0.5;\n}\n\n.loading-button.started .spinner-icon {\n display: inline-block;\n transform: translateZ(0);\n transform-origin: 50% 50%;\n animation: loading-button-rotate 1.4s infinite linear;\n}\n\n@keyframes loading-button-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.loading-button.started .start-icon {\n display: none;\n}\n\n.loading-button.terminated .action-label {\n display: none;\n}\n\n.loading-button.terminated .terminated-label {\n display: inline-block;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/loadingButton/css/button.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\ndiv.task-report-container {\n width: 100%;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/taskQueueButton/css/taskable.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.destination-selector {\n position: relative;\n width: 400px;\n opacity: 0;\n}\n\n.destination-selector.rendered {\n opacity: 1;\n transition: opacity, 300ms, linear, 0s;\n}\n\n.destination-selector > div {\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n background-color: #f3f1ef;\n padding: 20px;\n height: 500px;\n position: relative;\n}\n\n.destination-selector > div > p {\n font-weight: bold;\n}\n\n.destination-selector .selector-container {\n position: relative;\n height: calc(100% - 90px);\n}\n\n.destination-selector .actions {\n margin-top: 30px;\n text-align: right;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/class/css/selector.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.document-viewer .pdf-viewer {\n position: relative;\n background-color: #f9f8f7;\n}\n\n.document-viewer .pdf-viewer .pdf-bar {\n position: relative;\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n -moz-flex-direction: row;\n -o-flex-direction: row;\n flex-direction: row;\n justify-content: space-between;\n align-items: baseline;\n background-color: #f3f1ef;\n color: #222;\n padding: 2px;\n}\n\n.document-viewer .pdf-viewer .pdf-bar label {\n font-size: 12px;\n font-size: 1.2rem;\n padding: 0;\n margin: 0;\n}\n\n.document-viewer .pdf-viewer .pdf-info {\n padding: 0 2px;\n margin-right: 2px;\n}\n\n.document-viewer .pdf-viewer .pdf-info .info {\n display: inline-block;\n}\n\n.document-viewer .pdf-viewer .pdf-info .info[data-control="pdf-page-num"] {\n width: 3rem;\n margin: 0 2px;\n text-align: right;\n font-size: 12px;\n font-size: 1.2rem;\n background-color: #f9f8f7;\n border: 1px solid #c2c1bf;\n}\n\n.document-viewer .pdf-viewer .pdf-info .info[data-control="pdf-page-count"] {\n font-weight: bold;\n}\n\n.document-viewer .pdf-viewer [data-control="pdf-search"] .icon, .document-viewer .pdf-viewer .pdf-find-bar .icon {\n padding: 0;\n margin: 0;\n}\n\n.document-viewer .pdf-viewer .pdf-find-bar {\n position: absolute;\n z-index: 1;\n top: 35px;\n left: 8px;\n padding: 4px 8px;\n background-color: #f9f8f7;\n border: 1px solid #c2c1bf;\n border-radius: 4px;\n -ms-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);\n -o-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);\n}\n\n.document-viewer .pdf-viewer .pdf-find-bar::before, .document-viewer .pdf-viewer .pdf-find-bar::after {\n bottom: 100%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.document-viewer .pdf-viewer .pdf-find-bar::before {\n left: 13px;\n margin-left: -9px;\n border-bottom-color: #c2c1bf;\n border-width: 9px;\n}\n\n.document-viewer .pdf-viewer .pdf-find-bar::after {\n left: 13px;\n margin-left: -8px;\n border-bottom-color: #f9f8f7;\n border-width: 8px;\n}\n\n.document-viewer .pdf-viewer .pdf-search-info .pdf-search-position {\n padding: 4px 8px;\n font-family: "Source Sans Pro", sans-serif;\n font-size: 12px;\n font-size: 1.2rem;\n border-radius: 4px;\n background-color: #cfdfe9;\n color: #0e5d91;\n}\n\n.document-viewer .pdf-viewer .pdf-search-info .pdf-search-loop {\n padding-left: 10px;\n font-size: 10px;\n font-size: 1rem;\n font-style: italic;\n color: #4e4e4e;\n}\n\n.document-viewer .pdf-viewer .pdf-container {\n position: relative;\n overflow-y: auto;\n}\n\n.document-viewer .pdf-viewer .pdf-container.highlight-all .highlight {\n background-color: #0e5d91;\n}\n\n.document-viewer .pdf-viewer .pdf-page {\n position: relative;\n margin: 0 auto;\n}\n\n.document-viewer .pdf-viewer .pdf-content {\n margin: 0;\n padding: 0;\n display: block;\n}\n\n.document-viewer .pdf-viewer .pdf-text {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n overflow: hidden;\n opacity: 0.2;\n line-height: 1.0;\n}\n\n.document-viewer .pdf-viewer .pdf-text > div {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n\n.document-viewer .pdf-viewer .pdf-text .highlight {\n margin: -1px;\n padding: 1px;\n border-radius: 4px;\n}\n\n.document-viewer .pdf-viewer .pdf-text .highlight.begin {\n -webkit-border-top-right-radius: 0px;\n -webkit-border-bottom-right-radius: 0px;\n -moz-border-radius-topright: 0px;\n -moz-border-radius-bottomright: 0px;\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n -webkit-border-bottom-right-radius: 0px;\n -webkit-border-bottom-left-radius: 0px;\n -moz-border-radius-bottomright: 0px;\n -moz-border-radius-bottomleft: 0px;\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n}\n\n.document-viewer .pdf-viewer .pdf-text .highlight.end {\n -webkit-border-top-left-radius: 0px;\n -webkit-border-top-right-radius: 0px;\n -moz-border-radius-topleft: 0px;\n -moz-border-radius-topright: 0px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n -webkit-border-top-left-radius: 0px;\n -webkit-border-bottom-left-radius: 0px;\n -moz-border-radius-topleft: 0px;\n -moz-border-radius-bottomleft: 0px;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n}\n\n.document-viewer .pdf-viewer .pdf-text .highlight.middle {\n border-radius: 0px;\n}\n\n.document-viewer .pdf-viewer .pdf-text .highlight.selected {\n background-color: #0e914b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/documentViewer/css/documentViewer.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.dropdown-container {\n position: relative;\n}\n\n.dropdown-container .dropdown {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n padding: 0.4rem;\n margin: 0 0.5rem;\n background: transparent;\n box-shadow: 0 2px 3px transparent;\n border: 1px solid transparent;\n}\n\n.dropdown-container .dropdown.open {\n height: auto;\n background: white;\n box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);\n border: 1px solid #ccc;\n}\n\n.dropdown-container .dropdown.open .dropdown-header .a {\n display: inline-block;\n width: 160px;\n vertical-align: -50%;\n word-wrap: break-word;\n}\n\n.dropdown-container .dropdown.open .dropdown-header.toggler:after {\n display: none;\n}\n\n.dropdown-container .dropdown:not(.open) .dropdown-header .a {\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: 140px;\n}\n\n.dropdown-container .dropdown:not(.open) .dropdown-header.toggler:after {\n top: 20px;\n position: fixed;\n}\n\n.dropdown-container .dropdown > .dropdown-submenu {\n display: none;\n left: -10000px;\n}\n\n.dropdown-container .dropdown.open > .dropdown-submenu {\n display: block;\n left: 0;\n}\n\n.dropdown-container .dropdown .dropdown-header, .dropdown-container .dropdown .dropdown-submenu li {\n display: block;\n font-size: 1.4rem;\n padding: 0;\n margin: 0;\n height: auto;\n float: none;\n}\n\n.dropdown-container .dropdown .dropdown-header:hover, .dropdown-container .dropdown .dropdown-submenu li:hover {\n background: #e4ecef;\n}\n\n.dropdown-container .dropdown .dropdown-header a, .dropdown-container .dropdown .dropdown-header .a, .dropdown-container .dropdown .dropdown-submenu li a, .dropdown-container .dropdown .dropdown-submenu li .a {\n cursor: pointer;\n height: auto;\n text-align: left;\n border-top: none !important;\n padding: 1.2rem;\n}\n\n.dropdown-container .dropdown .dropdown-header a:hover, .dropdown-container .dropdown .dropdown-header a:focus, .dropdown-container .dropdown .dropdown-header .a:hover, .dropdown-container .dropdown .dropdown-header .a:focus, .dropdown-container .dropdown .dropdown-submenu li a:hover, .dropdown-container .dropdown .dropdown-submenu li a:focus, .dropdown-container .dropdown .dropdown-submenu li .a:hover, .dropdown-container .dropdown .dropdown-submenu li .a:focus {\n background: none;\n}\n\n.dropdown-container .dropdown .dropdown-header .icon, .dropdown-container .dropdown .dropdown-submenu li .icon {\n font-size: 1.25em;\n}\n\n.dropdown-container .dropdown .dropdown-header {\n min-height: 43px;\n}\n\n.dropdown-container .dropdown .dropdown-submenu li {\n padding: 0 0.3rem;\n}\n\n.dropdown-container .dropdown .sep-before:before {\n content: "";\n display: block;\n height: 1px;\n width: 90%;\n margin: 0 auto 1px;\n background: #a4bbc5;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/dropdown/css/dropdown.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.form-validator {\n color: #ba122b;\n text-align: right;\n width: 99%;\n}\n\n.form-validator input.error,\n.form-validator select.error,\n.form-validator textarea.error {\n border-color: #ba122b;\n color: #ba122b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/validator/css/validator.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.form-widget {\n margin: 10px 0;\n}\n\n.form-widget .widget-label {\n display: inline-block;\n margin-top: 8px;\n width: 34%;\n vertical-align: top;\n}\n\n.form-widget .widget-field {\n display: inline-block;\n min-width: 150px;\n width: 65%;\n}\n\n.form-widget .widget-field .widget-input, .form-widget .widget-field .widget-input-inline {\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n background-color: white;\n color: #222;\n font-family: "Source Sans Pro", sans-serif;\n padding: 8px;\n width: 100%;\n}\n\n.form-widget .widget-field .widget-input-inline {\n font: inherit;\n height: 36px;\n}\n\n.form-widget .widget-field .check-box-input, .form-widget .widget-field .radio-box-input {\n color: #222;\n display: inline-block;\n font-family: "Source Sans Pro", sans-serif;\n padding: 4px;\n width: 100%;\n}\n\n.form-widget .widget-field .check-box-input .option, .form-widget .widget-field .radio-box-input .option {\n padding-top: 4px;\n}\n\n.form-widget.error .widget-field .widget-input,\n.form-widget.error .widget-field .widget-input-inline,\n.form-widget.error .widget-field .check-box-input, .form-widget.invalid .widget-field .widget-input,\n.form-widget.invalid .widget-field .widget-input-inline,\n.form-widget.invalid .widget-field .check-box-input {\n border-color: #ba122b;\n color: #ba122b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/widget/css/widget.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.form-component {\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n background-color: #f3f1ef;\n padding: 20px;\n position: relative;\n margin: 20px;\n width: 500px;\n}\n\n.form-component .form-title {\n margin-top: 0;\n}\n\n.form-component .form-actions {\n margin-top: 30px;\n text-align: right;\n}\n\n.form-component .form-actions [data-control]:not(:first-child) {\n margin-left: 10px;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/generis/form/css/form.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.dropdown-form {\n position: relative;\n}\n\n.dropdown-form .trigger-button [data-control="trigger"] .label:after {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e611";\n padding-left: 1rem;\n}\n\n.dropdown-form .form-panel {\n display: none;\n position: absolute;\n z-index: 1;\n padding: 0;\n background: #f3f1ef;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n border-top: 2px solid #ddd;\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n\n.dropdown-form .form-panel .form-component {\n border: none;\n margin: 0;\n}\n\n.dropdown-form .form-panel .form-component .fieldset {\n max-height: calc(100vh - 40px);\n overflow-y: auto;\n}\n\n.dropdown-form.open-on-left .form-panel {\n left: 0;\n}\n\n.dropdown-form.open-on-right .form-panel {\n right: 0;\n}\n\n.dropdown-form.open .trigger-button [data-control="trigger"] .label:after {\n content: "\\e610";\n}\n\n.dropdown-form.open .form-panel {\n display: block;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/form/css/dropdownForm.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.mediaplayer {\n position: relative;\n border: 1px solid #333333;\n border-radius: 2px;\n border-radius: 2px;\n background: black;\n max-width: 100%;\n min-height: 36px;\n min-width: 200px;\n}\n\n.mediaplayer.youtube .player {\n width: 100%;\n height: 0px;\n padding-bottom: 56.25%;\n}\n\n.mediaplayer .icon-sound:before {\n content: "\\e6af";\n}\n\n.mediaplayer .icon-mute:before {\n content: "\\e69e";\n}\n\n.mediaplayer .error {\n display: none;\n}\n\n.mediaplayer .player {\n position: relative;\n height: calc(100% - 36px);\n width: 100%;\n}\n\n.mediaplayer .player iframe {\n pointer-events: none;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.mediaplayer .player .media:not(.youtube) {\n display: block;\n width: 100%;\n height: auto;\n max-height: 100%;\n}\n\n.mediaplayer .player .player-overlay {\n position: absolute;\n z-index: 1;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 1;\n background: transparent none;\n}\n\n.mediaplayer .player .action {\n position: absolute;\n z-index: 2;\n top: 50%;\n left: 50%;\n transform: translate(-50%);\n margin-top: -32px;\n text-align: center;\n text-decoration: none;\n display: none;\n font-size: 64px;\n font-size: 6.4rem;\n color: white;\n}\n\n.mediaplayer .player .action .icon {\n border-radius: 10px;\n padding: 6px 12px;\n background-color: black;\n opacity: 0.2;\n}\n\n.mediaplayer .player .action .icon:hover {\n opacity: 0.6;\n}\n\n.mediaplayer .player .action.reload {\n width: 100%;\n font-size: 50px;\n line-height: 30px;\n}\n\n.mediaplayer .player .action.reload:hover .icon {\n opacity: 1;\n}\n\n.mediaplayer .player .action.reload .icon {\n opacity: 0.6;\n background: none;\n}\n\n.mediaplayer .player .action.reload .message {\n font-size: 20px;\n}\n\n.mediaplayer .player .action.reload .icon, .mediaplayer .player .action.reload .message {\n text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;\n}\n\n.mediaplayer .controls {\n visibility: hidden;\n position: relative;\n padding: 5px;\n display: table;\n table-layout: fixed;\n width: 100%;\n border-top: 1px solid #333333;\n height: 36px;\n}\n\n.mediaplayer .controls .bar {\n display: table-row;\n}\n\n.mediaplayer .controls .control {\n display: table-cell;\n}\n\n.mediaplayer .controls .actions {\n position: relative;\n transition: all, 0.1, ease-in-out, 0s;\n}\n\n.mediaplayer .controls .actions .action {\n text-align: center;\n line-height: 2.2rem;\n width: 2.2rem;\n height: 2.2rem;\n text-decoration: none;\n color: gainsboro;\n transition: all, 0.2, ease-in-out, 0s;\n}\n\n.mediaplayer .controls .actions .action:hover {\n opacity: 1;\n}\n\n.mediaplayer .controls .actions .action .icon {\n line-height: 2.2rem;\n}\n\n.mediaplayer .controls .actions .play {\n opacity: 0.7;\n border-right: 1px solid #333333;\n}\n\n.mediaplayer .controls .actions .mute {\n opacity: 0.8;\n border-left: 1px solid #333333;\n}\n\n.mediaplayer .controls .slider {\n cursor: pointer;\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 10px;\n transition: all, 0.1, ease-in-out, 0s;\n background: white;\n}\n\n.mediaplayer .controls .slider .noUi-background {\n border-radius: 10px;\n background: white;\n}\n\n.mediaplayer .controls .slider.noUi-connect, .mediaplayer .controls .slider .noUi-connect {\n border-radius: 10px;\n background: #333333;\n}\n\n.mediaplayer .controls .slider .noUi-handle {\n width: 11px;\n height: 11px;\n border: 1px solid #ddd;\n border-radius: 2px;\n border-radius: 10px;\n background: #858585;\n}\n\n.mediaplayer .controls .slider .noUi-handle:hover {\n background: #5c5c5c;\n}\n\n.mediaplayer .controls .slider .noUi-handle:after {\n display: none;\n}\n\n.mediaplayer .controls .slider.noUi-horizontal {\n height: 9px;\n}\n\n.mediaplayer .controls .slider.noUi-horizontal .noUi-handle {\n top: -2px;\n}\n\n.mediaplayer .controls .slider.noUi-vertical {\n width: 9px;\n}\n\n.mediaplayer .controls .slider.noUi-vertical .noUi-handle {\n left: -2px;\n}\n\n.mediaplayer .controls .infos {\n cursor: default;\n margin: 0 1rem;\n line-height: 2.2rem;\n color: #999;\n font-size: 10px;\n font-size: 1rem;\n font-weight: bold;\n}\n\n.mediaplayer .controls .infos [data-control="time-end"]:before {\n content: \' / \';\n}\n\n.mediaplayer .controls .timer {\n width: 8rem;\n text-align: center;\n}\n\n.mediaplayer .controls .seek {\n position: relative;\n height: 1rem;\n margin-top: 5px;\n padding-left: 1rem;\n}\n\n.mediaplayer .controls .playback {\n margin-right: 1rem;\n width: 2.2rem;\n}\n\n.mediaplayer .controls .sound {\n width: 2.2rem;\n height: 2.2rem;\n}\n\n.mediaplayer .controls .sound .volume {\n cursor: default;\n position: absolute;\n z-index: 3;\n background-color: black;\n padding: 0 10px 0 10px;\n height: 0;\n top: 0;\n left: -1px;\n opacity: 0;\n border: solid 1px #333333;\n transition: height 300ms ease-out, top 300ms ease-out, opacity 50ms linear 250ms;\n}\n\n.mediaplayer .controls .sound .volume.up, .mediaplayer .controls .sound .volume.down {\n height: 120px;\n padding: 10px 10px 5px 10px;\n opacity: 1;\n}\n\n.mediaplayer .controls .sound .volume.up .slider, .mediaplayer .controls .sound .volume.down .slider {\n opacity: 1;\n transition: opacity 50ms linear 200ms;\n transition: opacity 50ms linear 200ms;\n}\n\n.mediaplayer .controls .sound .volume.up {\n top: -125px;\n transition: height 300ms ease-out 50ms, top 300ms ease-out 50ms, opacity 50ms linear;\n}\n\n.mediaplayer .controls .sound .volume.down {\n top: 29px;\n transition: height 300ms ease-out 50ms, opacity 50ms linear;\n}\n\n.mediaplayer .controls .sound .slider {\n opacity: 0;\n}\n\n.mediaplayer .controls .sound .slider .noUi-handle {\n cursor: pointer;\n width: 9px;\n height: 9px;\n}\n\n.mediaplayer .controls .sound .slider.noUi-horizontal {\n width: 50px;\n height: 7px;\n}\n\n.mediaplayer .controls .sound .slider.noUi-vertical {\n width: 7px;\n height: 100px;\n}\n\n.mediaplayer .controls [data-control="play"] {\n display: none;\n}\n\n.mediaplayer .controls [data-control="pause"] {\n display: none;\n}\n\n.mediaplayer .controls [data-control="mute"] {\n display: inline-block;\n}\n\n.mediaplayer .controls [data-control="unmute"] {\n display: none;\n}\n\n.mediaplayer.video .sound .volume, .mediaplayer.youtube .sound .volume {\n width: 2.2rem;\n bottom: 2.2rem;\n right: 0;\n}\n\n.mediaplayer.audio .sound .volume {\n height: 2.2rem;\n right: 2.2rem;\n bottom: 0;\n}\n\n.mediaplayer.ready .controls {\n visibility: visible;\n}\n\n.mediaplayer.ready.paused.canplay .player-overlay {\n cursor: pointer;\n}\n\n.mediaplayer.ready.paused.canplay .player:hover [data-control="play"] {\n display: inline-block;\n}\n\n.mediaplayer.ready.paused.canplay.youtube.ended .player:hover [data-control="play"], .mediaplayer.ready.paused.canplay:not(.preview) .player:hover [data-control="play"] {\n display: none;\n}\n\n.mediaplayer.ready.playing.canpause .player-overlay {\n cursor: pointer;\n}\n\n.mediaplayer.ready.playing.canpause .player:hover [data-control="pause"] {\n display: inline-block;\n}\n\n.mediaplayer.playing.canpause .controls [data-control="pause"] {\n display: inline-block;\n}\n\n.mediaplayer.paused.canplay .controls [data-control="play"] {\n display: inline-block;\n}\n\n.mediaplayer.paused.canplay .controls [data-control="pause"] {\n display: none;\n}\n\n.mediaplayer.muted .controls [data-control="mute"] {\n display: none;\n}\n\n.mediaplayer.muted .controls [data-control="unmute"] {\n display: inline-block;\n}\n\n.mediaplayer.nogui .player iframe {\n pointer-events: inherit;\n}\n\n.mediaplayer.nogui .player-overlay {\n display: none !important;\n}\n\n.mediaplayer.nogui .controls {\n display: none !important;\n}\n\n.mediaplayer.error:not(.stalled) .media, .mediaplayer.error:not(.stalled) .controls {\n display: none;\n}\n\n.mediaplayer.error:not(.stalled) .error {\n display: table;\n text-align: center;\n width: 100%;\n height: 100%;\n}\n\n.mediaplayer.error:not(.stalled) .error .message {\n color: #ba122b;\n display: table-cell;\n vertical-align: middle;\n}\n\n.mediaplayer.loading:not(.stalled)::before {\n content: \'\';\n box-sizing: border-box;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 30px;\n height: 30px;\n margin-top: -15px;\n margin-left: -15px;\n border-radius: 50%;\n border: 1px solid #ccc;\n border-top-color: #07d;\n animation: spinner .6s linear infinite;\n}\n\n@keyframes spinner {\n to {\n transform: rotate(360deg);\n }\n}\n\n.mediaplayer.stalled .video {\n filter: blur(4px);\n opacity: 0.4;\n}\n\n.mediaplayer.stalled .player-overlay [data-control="reload"] {\n display: inline-block;\n}\n\n.mediaplayer.video:not(.preview):not(.error) .player-overlay [data-control="start"] {\n display: inline-block;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/mediaplayer/css/player.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n/* tooltip */\n.resourcemgr {\n width: 90%;\n height: 100%;\n max-width: 1400px;\n}\n\n#mediaManager .resourcemgr.modal {\n max-height: 700px;\n top: 40px !important;\n bottom: 40px;\n padding: 0;\n}\n\n.resourcemgr > h2 {\n font-size: 15px;\n font-size: 1.5rem;\n margin: 20px 40px 10px;\n height: 40px;\n}\n\n.resourcemgr .file-wrapper {\n overflow-y: auto;\n margin: 0 40px;\n height: calc(100% - 40px - 40px - 40px);\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n}\n\n.resourcemgr .file-browser {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 260px;\n}\n\n.resourcemgr .file-preview {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 300px;\n}\n\n.resourcemgr .file-selector {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 auto;\n flex: 1 1;\n max-width: calc(100% - 560px);\n}\n\n.resourcemgr .file-browser, .resourcemgr .file-selector, .resourcemgr .file-preview {\n position: relative;\n vertical-align: top;\n height: 100% !important;\n color: #222;\n}\n\n.resourcemgr .file-browser h1, .resourcemgr .file-selector h1, .resourcemgr .file-preview h1 {\n font-size: 16px;\n font-size: 1.6rem;\n line-height: 1.6;\n color: #222;\n margin-top: 1px;\n padding: 5px;\n}\n\n.resourcemgr .file-browser h2, .resourcemgr .file-selector h2, .resourcemgr .file-preview h2 {\n font-size: 13px;\n font-size: 1.3rem;\n line-height: 1.3;\n background-color: #D4D5D7;\n color: #222;\n margin-top: 1px;\n padding: 6px;\n position: relative;\n clear: both;\n}\n\n.resourcemgr .file-browser h2.toggler, .resourcemgr .file-selector h2.toggler, .resourcemgr .file-preview h2.toggler {\n cursor: pointer;\n}\n\n.resourcemgr .file-browser h2.toggler:after, .resourcemgr .file-selector h2.toggler:after, .resourcemgr .file-preview h2.toggler:after {\n position: absolute;\n right: 15px;\n top: 3px;\n}\n\n.resourcemgr .file-browser {\n background-color: #f3f1ef;\n}\n\n.resourcemgr .file-browser > h1 {\n background-color: #D4D5D7;\n}\n\n.resourcemgr .file-browser .file-browser-wrapper {\n overflow: auto;\n height: calc(100% - 50px);\n}\n\n.resourcemgr .file-browser ul {\n list-style-type: none;\n padding-left: 5px;\n}\n\n.resourcemgr .file-browser ul ul {\n padding-left: 18px;\n}\n\n.resourcemgr .file-browser ul li a {\n color: #222;\n white-space: nowrap;\n}\n\n.resourcemgr .file-browser ul li a:before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e60c";\n margin: 0 3px;\n}\n\n.resourcemgr .file-browser ul li a.opened:before {\n font-style: italic;\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e60d";\n}\n\n.resourcemgr .file-browser ul li.active > a {\n background-color: #ecf2f6;\n}\n\n.resourcemgr .file-preview {\n background-color: #f3f1ef;\n}\n\n.resourcemgr .file-preview > h1 {\n background-color: #D4D5D7;\n}\n\n.resourcemgr .file-preview .file-properties {\n padding: 0 5px;\n}\n\n.resourcemgr .file-preview .previewer {\n height: 300px;\n overflow: hidden;\n}\n\n.resourcemgr .file-preview .actions {\n text-align: center;\n margin-bottom: 10px;\n}\n\n.resourcemgr .file-selector {\n position: relative;\n border: solid 1px #fff;\n border-top: none;\n border-bottom: none;\n display: flex;\n flex-direction: column;\n background-color: white;\n}\n\n.resourcemgr .file-selector > h1 {\n position: relative;\n background-color: #f3f1ef;\n}\n\n.resourcemgr .file-selector > h1 .title {\n margin-right: 10px;\n}\n\n.resourcemgr .file-selector > h1 .upload-switcher a {\n display: inline-block;\n}\n\n.resourcemgr .file-selector > h1 .upload-switcher .listing {\n display: none;\n}\n\n.resourcemgr .file-selector .empty {\n color: #666;\n font-style: italic;\n font-size: 18px;\n font-size: 1.8rem;\n text-align: center;\n}\n\n.resourcemgr .file-selector ul.files {\n position: relative;\n margin-bottom: 0;\n padding: 0;\n list-style-type: none;\n flex-grow: 1;\n overflow-y: auto;\n}\n\n.resourcemgr .file-selector ul.files li {\n height: 35px;\n line-height: 35px;\n margin-bottom: 0;\n padding: 0 0 0 5px;\n position: relative;\n}\n\n.resourcemgr .file-selector ul.files li:before {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'tao\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n content: "\\e622";\n font-size: 16px;\n font-size: 1.6rem;\n vertical-align: top;\n line-height: 2.2;\n position: absolute;\n left: 8px;\n}\n\n.resourcemgr .file-selector ul.files li[data-type=\'image\']:before {\n content: "\\e620";\n}\n\n.resourcemgr .file-selector ul.files li[data-type=\'audio\']:before {\n content: "\\e670";\n}\n\n.resourcemgr .file-selector ul.files li[data-type=\'video\']:before {\n content: "\\e61e";\n}\n\n.resourcemgr .file-selector ul.files li.active, .resourcemgr .file-selector ul.files li:hover {\n background-color: #ecf2f6;\n cursor: pointer;\n}\n\n.resourcemgr .file-selector ul.files li .desc {\n display: inline-block;\n max-width: calc(100% - 130px);\n margin-left: 25px;\n}\n\n.resourcemgr .file-selector ul.files li .actions {\n top: 0;\n right: 0;\n position: absolute;\n height: 35px;\n width: 100px;\n}\n\n.resourcemgr .file-selector ul.files li .actions .tlb {\n display: inline-block;\n background: none;\n font-size: 14px;\n font-size: 1.4rem;\n}\n\n.resourcemgr .file-selector ul.files li .actions .tlb .tlb-top {\n background: none !important;\n border-width: 0 !important;\n -ms-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);\n -o-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);\n}\n\n.resourcemgr .file-selector .file-upload-container {\n display: none;\n padding: 0 5px;\n}\n\n.resourcemgr .file-selector .pagination-bottom {\n align-self: flex-end;\n width: 100%;\n padding: 5px 10px 0;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/resourcemgr/css/resourcemgr.css.map */.media-sizer {\n max-width: 300px;\n}\n\n.media-sizer label {\n min-width: 80px;\n line-height: 22px;\n}\n\n.media-sizer input[type="text"] {\n width: 68px !important;\n min-width: 68px !important;\n text-align: right;\n padding-right: 24px;\n}\n\n.media-sizer .media-sizer-pixel-width,\n.media-sizer .media-sizer-pixel-height\n{\n width: 80px;\n}\n\n.media-sizer.media-sizer-reset-off .item-editor-unit-input-box {\n right: -22px;\n}\n\n.media-sizer.media-sizer-reset-off .media-sizer-sync {\n right: 69px;\n}\n\n.media-sizer.media-sizer-responsivetoggle-off .media-sizer-responsive-toggle,\n.media-sizer.media-sizer-sync-off .media-sizer-sync,\n.media-sizer.media-sizer-reset-off .media-sizer-reset\n{\n display:none;\n}\n\n.media-sizer .item-editor-unit-input-box {\n position: relative;\n display:-moz-box; /* fix for FF */\n right: -3px;\n}\n\n.media-sizer .media-sizer-reset,\n.media-sizer .media-sizer-sync {\n border: 2px solid transparent;\n border-radius: 2px;\n position: absolute;\n top: 10px;\n height: 38px;\n width: 12px;\n z-index: 1000;\n opacity: .85;\n cursor: pointer;\n}\n\n.media-sizer .media-sizer-reset:hover,\n.media-sizer .media-sizer-sync:hover {\n color: #3e7da7;\n}\n\n.media-sizer .media-sizer-reset span,\n.media-sizer .media-sizer-sync span\n{\n position: absolute;\n top: 8px;\n background: #f3f1ef;\n padding: 3px;\n border-radius: 8px\n}\n\n.media-sizer .media-sizer-sync {\n border-right: none;\n left: 70px;\n}\n\n.media-sizer .media-sizer-sync span {\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n left: -11px;\n}\n\n.media-sizer .media-sizer-reset {\n border-left: none;\n border-color: #ccc;\n left: 160px;\n}\n\n.media-sizer .media-sizer-reset span {\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n right: -11px;\n}\n\n.media-sizer .media-sizer-reset.media-sizer-reset-percent {\n border: none;\n height: 12px;\n top: -4px;\n}\n\n.media-sizer .unit-indicator {\n margin: -24px;\n}\n\n.media-sizer .media-sizer-slider-box {\n padding-top: 10px;\n position: relative;\n}\n\n.media-sizer .media-sizer-cover {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 30px;\n background: #f3f1ef;\n opacity: .55;\n display: block;\n z-index: 15;\n}\n\n.media-sizer .media-sizer-pixel {\n display: none;\n position: relative;\n}\n\n.media-sizer .media-sizer-percent {\n display: block;\n position: relative;\n}\n\n.media-sizer.media-sizer-synced .media-sizer-cover {\n display:none;\n}\n\n.media-sizer.media-sizer-synced .media-sizer-sync {\n border-color: #ccc;\n opacity: 1;\n}\n.media-alignment {\n margin-top: 15px;\n}\n\n.media-alignment .media-sizer-panel-label {\n margin-bottom: 12px;\n}\n/*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.listbox {\n max-width: 1024px;\n margin: auto;\n}\n\n.listbox h1 {\n font-family: "Source Sans Pro", sans-serif;\n font-size: 22px;\n font-size: 2.2rem;\n font-weight: normal;\n}\n\n.listbox h2 {\n font-family: "Source Sans Pro", sans-serif;\n font-size: 18px;\n font-size: 1.8rem;\n margin: 30px 0 10px;\n}\n\n.listbox .list {\n width: 100%;\n}\n\n.listbox .box {\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n background: #f3f1ef;\n margin-bottom: 20px;\n padding: 20px;\n position: relative;\n}\n\n.listbox .list-box h1, .listbox .list-box h3 {\n font-size: 20px;\n font-size: 2rem;\n margin-bottom: 7px;\n color: #0e5d91;\n text-shadow: 1px 1px 1px #fff;\n}\n\n.listbox .list-box .text-link {\n position: absolute;\n right: -1px;\n bottom: -1px;\n padding: 20px 20px 8px 20px;\n text-align: right;\n min-width: 100px;\n border-bottom: 3px solid;\n color: #3e7da7;\n outline: 0;\n}\n\n.listbox .list-box .text-link:hover {\n color: #0e5d91;\n}\n\n.listbox .list-box .text-link [class*=" icon-"], .listbox .list-box .text-link [class^="icon-"] {\n margin-right: 10px;\n}\n\n.listbox .list-box a {\n min-height: 150px;\n}\n\n.listbox .list-box .box {\n padding-left: 40px;\n}\n\n.listbox .list-box .box:before, .listbox .list-box .box:after {\n content: \'\';\n height: 37.5px;\n border: solid transparent;\n border-top-width: 18.75px;\n border-bottom-width: 18.75px;\n position: absolute;\n left: -1px;\n top: 54px;\n z-index: 2;\n}\n\n.listbox .list-box .box:before {\n border-left-color: #ddd;\n width: 20px;\n border-right-width: 10px;\n border-left-width: 10px;\n left: 0px;\n}\n\n.listbox .list-box .box:after {\n border-left-color: white;\n width: 20px;\n border-right-width: 10px;\n border-left-width: 10px;\n}\n\n.listbox.loading .loading {\n display: inline-block;\n}\n\n.listbox.loading .list, .listbox.loading .empty-list, .listbox.loading .available-list {\n display: none;\n}\n\n.listbox.loaded .list, .listbox.loaded .available-list {\n display: inline-block;\n}\n\n.listbox.loaded .loading, .listbox.loaded .empty-list {\n display: none;\n}\n\n.listbox.empty .empty-list {\n display: inline-block;\n}\n\n.listbox.empty .loading, .listbox.empty .list, .listbox.empty .available-list {\n display: none;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/listbox/css/listbox.css.map *//* Style for the calculator component */\n/*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n/* font size mixin specific to calculator to use em instead of rem unit */\n.calculator {\n position: relative;\n font-family: monospace, sans-serif;\n font-size: 12px;\n width: 100%;\n height: 100%;\n display: -ms-flex;\n display: flex;\n flex-direction: column;\n -ms-align-content: stretch;\n align-content: stretch;\n}\n\n.calculator sup,\n.calculator sub {\n font-size: 0.75em;\n}\n\n.calculator sup {\n top: -0.5em;\n}\n\n.calculator sub {\n bottom: -0.5em;\n}\n\n.calculator .screen,\n.calculator .input {\n position: relative;\n flex: 0 0 auto;\n}\n\n.calculator .focus {\n outline: 2px solid #0e5d91;\n}\n\n.calculator .keyboard {\n padding: 0 20px 20px;\n position: relative;\n display: -ms-flex;\n display: flex;\n flex: 1 1;\n}\n\n.calculator .calculator-keyboard {\n position: relative;\n display: -ms-flex;\n display: flex;\n flex-direction: column;\n -ms-align-content: stretch;\n align-content: stretch;\n background: #f3f1ef;\n color: #222;\n width: 100%;\n height: auto;\n padding-top: 8px;\n}\n\n.calculator .calculator-keyboard .row {\n position: relative;\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n -ms-align-content: stretch;\n align-content: stretch;\n flex: 1 1 auto;\n width: 100%;\n height: 100%;\n}\n\n.calculator .calculator-keyboard .spacer {\n flex: 1 1 auto;\n width: 3.2em;\n height: 100%;\n}\n\n.calculator .calculator-keyboard span {\n position: relative;\n display: inline-block;\n z-index: 1;\n font-size: 1.3em !important;\n}\n\n.calculator .calculator-keyboard button {\n position: relative;\n background-color: #f3f1ef;\n color: #222 !important;\n display: inline-block;\n border-radius: 0;\n border: none;\n padding: 0;\n text-align: center;\n text-shadow: none;\n cursor: pointer;\n flex: 1 1 auto;\n width: 3.2em;\n height: 100%;\n font-size: 1em !important;\n}\n\n.calculator .calculator-keyboard button:not(.switch):before {\n content: \' \';\n border-radius: 50%;\n display: inline-block;\n position: absolute;\n z-index: 0;\n top: calc(50% - 1.6em + 2px);\n left: calc(50% - 1.6em + 2px);\n width: calc(3.2em - 4px);\n height: calc(3.2em - 4px);\n}\n\n.calculator .calculator-keyboard button:hover:before {\n background: #a4a9b1;\n}\n\n.calculator .calculator-keyboard button.disabled {\n visibility: hidden;\n}\n\n.calculator .calculator-keyboard button.switch span {\n color: #222 !important;\n border-color: #919191 !important;\n border-top: 1px solid;\n border-bottom: 1px solid;\n height: auto;\n width: 100%;\n padding: 4px 0.5em;\n font-size: 1em !important;\n}\n\n.calculator .calculator-keyboard button.switch.first span {\n border-left: 1px solid;\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n\n.calculator .calculator-keyboard button.switch.last span {\n border-right: 1px solid;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n\n.calculator .calculator-keyboard button.switch:before {\n content: \' \';\n border-radius: 2px;\n display: inline-block;\n position: absolute;\n z-index: 0;\n top: calc(50% - 0.5em - 4px);\n bottom: calc(50% - 0.5em - 4px);\n left: 3px;\n right: 3px;\n}\n\n.calculator .calculator-keyboard button.operand span {\n font-weight: bold;\n font-size: 1.7em !important;\n}\n\n.calculator .calculator-keyboard button.command span {\n color: #0e5d91 !important;\n}\n\n.calculator .calculator-keyboard button.execute:before {\n background: #3e7da7;\n}\n\n.calculator .calculator-keyboard button.execute span {\n font-weight: bold;\n color: white !important;\n font-size: 1.7em !important;\n}\n\n.calculator .calculator-keyboard button svg {\n display: inline-block;\n width: 1em;\n height: 1em;\n stroke-width: 0;\n stroke: currentColor;\n fill: currentColor;\n}\n\n.calculator .calculator-keyboard button svg.backspace-outline {\n width: 1.2em;\n height: 1.2em;\n}\n\n.calculator.degree .calculator-keyboard button.switch[data-command=\'degree\']:before {\n background: #3e7da7;\n}\n\n.calculator.degree .calculator-keyboard button.switch[data-command=\'degree\'] span {\n color: white !important;\n}\n\n.calculator.radian .calculator-keyboard button.switch[data-command=\'radian\']:before {\n background: #3e7da7;\n}\n\n.calculator.radian .calculator-keyboard button.switch[data-command=\'radian\'] span {\n color: white !important;\n}\n\n.calculator .simple-screen {\n position: relative;\n width: 100%;\n font-size: 1.3em !important;\n color: #222;\n font-family: monospace;\n}\n\n.calculator .simple-screen .screen-panel {\n position: relative;\n width: 100%;\n overflow: auto;\n word-break: break-all;\n text-align: left;\n padding: 8px 8px;\n}\n\n.calculator .simple-screen .history {\n font-size: 1em !important;\n border: 1px solid #ddd;\n color: #4e4e4e;\n height: calc(16px + 3.9em);\n line-height: 1.3em;\n}\n\n.calculator .simple-screen .history .history-line .history-expression {\n text-align: left;\n}\n\n.calculator .simple-screen .history .history-line .history-expression,\n.calculator .simple-screen .history .history-line .history-expression .term {\n font-weight: lighter;\n}\n\n.calculator .simple-screen .history .history-line .history-result {\n text-align: right;\n font-weight: bolder;\n}\n\n.calculator .simple-screen .history .history-line .history-result:before {\n content: \'=\';\n display: inline-block;\n font-weight: lighter;\n padding-right: 0.2em;\n}\n\n.calculator .simple-screen .expression {\n font-size: 1.3em !important;\n background: white;\n color: #222;\n height: calc(16px + 3.2em);\n line-height: 1.6em;\n}\n\n.calculator .simple-screen .term {\n padding: 0;\n}\n\n.calculator .simple-screen .term.term-operator:not([data-token=\'POW\']):not([data-token=\'FAC\']):not([data-token=\'NEG\']) {\n padding: 0 0.2em;\n}\n\n.calculator .simple-screen .term.term-operator[data-token=\'FAC\'], .calculator .simple-screen .term.term-operator[data-token=\'NEG\'] {\n margin-left: -0.1em;\n margin-right: -0.1em;\n}\n\n.calculator .simple-screen .term.term-operator[data-token=\'POS\'] {\n display: none;\n}\n\n.calculator .simple-screen .term.term-function:not([data-token=\'SQRT\']):not([data-token=\'CBRT\']) {\n padding-right: 0.2em;\n}\n\n.calculator .simple-screen .term.term-operand {\n font-weight: bold;\n}\n\n.calculator .simple-screen .term.term-modificator {\n font-weight: lighter;\n}\n\n.calculator .simple-screen .term.term-constant {\n font-style: italic;\n font-weight: bold;\n}\n\n.calculator .simple-screen .term.term-variable {\n font-weight: bold;\n color: #3e7da7;\n}\n\n.calculator .simple-screen .term.term-variable[data-token=\'ANS\'] {\n background: #ecf2f6;\n padding: 0;\n margin: 0 0.4em;\n position: relative;\n}\n\n.calculator .simple-screen .term.term-variable[data-token=\'ANS\']::before, .calculator .simple-screen .term.term-variable[data-token=\'ANS\']::after {\n background: #ecf2f6;\n content: \'\';\n border-radius: 50%;\n border: 2px none;\n position: absolute;\n z-index: 0;\n top: 0;\n bottom: 0;\n width: 0.4em;\n}\n\n.calculator .simple-screen .term.term-variable[data-token=\'ANS\']::before {\n border-left-style: solid;\n border-left-color: #3e7da7;\n left: -0.2em;\n}\n\n.calculator .simple-screen .term.term-variable[data-token=\'ANS\']::after {\n border-right-style: solid;\n border-right-color: #3e7da7;\n right: -0.2em;\n}\n\n.calculator .simple-screen .term.term-variable[data-token=\'ANS\'] * {\n position: relative;\n z-index: 1;\n}\n\n.calculator .simple-screen .term.term-unknown {\n color: #d8ae5b;\n -webkit-text-decoration: underline wavy #ba122b;\n text-decoration: underline wavy #ba122b;\n}\n\n.calculator .simple-screen .term.term-elide {\n display: none;\n}\n\n.calculator .simple-screen .term.term-error {\n color: #ba122b;\n}\n\n.calculator .simple-screen .term.term-syntaxError {\n color: #ba122b;\n -webkit-text-decoration: underline wavy #ba122b;\n text-decoration: underline wavy #ba122b;\n}\n\n.calculator.error .screen .expression {\n background: #f1d0d5;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/calculator/css/calculator.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.section-container {\n top: 0 !important;\n}\n\n.section-container .flex-container-full {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 100%;\n}\n\n.section-container .flex-container-half {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 50%;\n}\n\n.section-container .flex-container-third {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 33.33333%;\n}\n\n.section-container .flex-container-quarter {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 25%;\n}\n\n.section-container .flex-container-remaining {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 480px;\n}\n\n.section-container .flex-container-main-form {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 500px;\n margin: 0 20px 20px 0;\n width: 100%;\n}\n\n.section-container .flex-container-main-form .form-content {\n max-width: 100%;\n}\n\n.section-container .flex-container-navi {\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 280px;\n}\n\n.section-container .section-header {\n border: none;\n}\n\n.section-container .content-panel {\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n border: none !important;\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n}\n\n.section-container .tab-container {\n border: none;\n display: none;\n list-style-type: none;\n padding: 0;\n margin: 0;\n}\n\n.section-container .tab-container li {\n float: left;\n position: relative;\n top: 0;\n padding: 0;\n margin: 0 1px 0px 0;\n border-top: 1px solid #f3f1ef !important;\n border-bottom: 1px solid #f3f1ef !important;\n background: #f3f1ef !important;\n}\n\n.section-container .tab-container li a {\n top: 0 !important;\n margin-bottom: 0 !important;\n padding: 6px 16px;\n text-decoration: none;\n min-height: 32px;\n color: #222;\n float: left;\n}\n\n.section-container .tab-container li.active, .section-container .tab-container li:hover {\n border-bottom-color: #4a86ad !important;\n border-top-color: #6e9ebd !important;\n background: #266d9c !important;\n}\n\n.section-container .tab-container li.active a, .section-container .tab-container li:hover a {\n background: transparent !important;\n border-color: transparent !important;\n color: white !important;\n text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);\n}\n\n.section-container .tab-container li.disabled:hover {\n background: #f3f1ef !important;\n}\n\n.section-container .tab-container li.disabled:hover a {\n cursor: not-allowed !important;\n color: #222 !important;\n}\n\n.section-container .ui-container {\n display: none;\n background: #f3f1ef;\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 0 0 280px;\n border-right: 1px #ddd solid;\n}\n\n.section-container .ui-container .block-title {\n font-size: 14px;\n font-size: 1.4rem;\n padding: 2px 8px;\n margin: 0;\n}\n\n.section-container .ui-container .tree-action-bar-box {\n margin: 10px 0;\n opacity: 0;\n}\n\n.section-container .ui-container .tree-action-bar-box.active {\n opacity: 1;\n -webkit-opacity: 0.25s ease-in-out;\n -moz-opacity: 0.25s ease-in-out;\n opacity: 0.25s ease-in-out;\n}\n\n.section-container .content-container {\n border: none;\n -ms-order: 0;\n order: 0;\n flex-item-align: stretch;\n align-self: stretch;\n flex: 1 1 auto;\n flex: 1 1;\n overflow: auto;\n}\n\n.section-container .content-block {\n padding: 20px;\n overflow-y: auto;\n display: -ms-flex;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: stretch;\n}\n\n.section-container .content-block > .grid-container {\n width: 100%;\n}\n\n.section-container .content-block .data-container-wrapper {\n padding: 0px 20px 0 0;\n}\n\n.section-container .content-block .data-container-wrapper:before, .section-container .content-block .data-container-wrapper:after {\n content: \' \';\n display: table;\n}\n\n.section-container .content-block .data-container-wrapper:after {\n clear: both;\n}\n\n.section-container .content-block .data-container-wrapper > section,\n.section-container .content-block .data-container-wrapper .data-container {\n width: 260px;\n margin: 0 20px 20px 0;\n float: left;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n}\n\n.section-container .content-block .data-container-wrapper > section.double,\n.section-container .content-block .data-container-wrapper .data-container.double {\n width: 540px;\n}\n\n.section-container .content-block .data-container-wrapper > section .emptyContentFooter,\n.section-container .content-block .data-container-wrapper .data-container .emptyContentFooter {\n display: none;\n}\n\n.section-container .content-block .data-container-wrapper > section .tree,\n.section-container .content-block .data-container-wrapper .data-container .tree {\n border: none;\n max-width: none;\n max-height: none;\n}\n\n.section-container .content-block .data-container-wrapper > section form,\n.section-container .content-block .data-container-wrapper .data-container form {\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.section-container .content-block .data-container-wrapper > section > header,\n.section-container .content-block .data-container-wrapper > section .ui-widget-header,\n.section-container .content-block .data-container-wrapper .data-container > header,\n.section-container .content-block .data-container-wrapper .data-container .ui-widget-header {\n background: #f3f1ef;\n border-width: 0px !important;\n border-bottom: 1px #ddd solid !important;\n}\n\n.section-container .content-block .data-container-wrapper > section > header h1,\n.section-container .content-block .data-container-wrapper > section > header h6,\n.section-container .content-block .data-container-wrapper > section .ui-widget-header h1,\n.section-container .content-block .data-container-wrapper > section .ui-widget-header h6,\n.section-container .content-block .data-container-wrapper .data-container > header h1,\n.section-container .content-block .data-container-wrapper .data-container > header h6,\n.section-container .content-block .data-container-wrapper .data-container .ui-widget-header h1,\n.section-container .content-block .data-container-wrapper .data-container .ui-widget-header h6 {\n padding: 4px;\n margin: 0;\n font-size: 14px;\n font-size: 1.4rem;\n}\n\n.section-container .content-block .data-container-wrapper > section > div,\n.section-container .content-block .data-container-wrapper > section .ui-widget-content,\n.section-container .content-block .data-container-wrapper > section .container-content,\n.section-container .content-block .data-container-wrapper .data-container > div,\n.section-container .content-block .data-container-wrapper .data-container .ui-widget-content,\n.section-container .content-block .data-container-wrapper .data-container .container-content {\n border-width: 0px !important;\n overflow-y: auto;\n min-height: 250px;\n padding: 5px;\n}\n\n.section-container .content-block .data-container-wrapper > section > div .icon-grip,\n.section-container .content-block .data-container-wrapper > section .ui-widget-content .icon-grip,\n.section-container .content-block .data-container-wrapper > section .container-content .icon-grip,\n.section-container .content-block .data-container-wrapper .data-container > div .icon-grip,\n.section-container .content-block .data-container-wrapper .data-container .ui-widget-content .icon-grip,\n.section-container .content-block .data-container-wrapper .data-container .container-content .icon-grip {\n cursor: move;\n}\n\n.section-container .content-block .data-container-wrapper > section > footer,\n.section-container .content-block .data-container-wrapper .data-container > footer {\n min-height: 33px;\n}\n\n.section-container .content-block .data-container-wrapper > section > footer,\n.section-container .content-block .data-container-wrapper > section .data-container-footer,\n.section-container .content-block .data-container-wrapper .data-container > footer,\n.section-container .content-block .data-container-wrapper .data-container .data-container-footer {\n background: #f3f1ef;\n text-align: right !important;\n padding: 4px;\n border-width: 0px !important;\n border-top: 1px #ddd solid !important;\n}\n\n.section-container .content-block .data-container-wrapper > section > footer .square,\n.section-container .content-block .data-container-wrapper > section .data-container-footer .square,\n.section-container .content-block .data-container-wrapper .data-container > footer .square,\n.section-container .content-block .data-container-wrapper .data-container .data-container-footer .square {\n width: 28px;\n}\n\n.section-container .content-block .data-container-wrapper > section > footer .square span,\n.section-container .content-block .data-container-wrapper > section .data-container-footer .square span,\n.section-container .content-block .data-container-wrapper .data-container > footer .square span,\n.section-container .content-block .data-container-wrapper .data-container .data-container-footer .square span {\n padding: 0;\n left: 0;\n}\n\n.section-container .content-block .data-container-wrapper > section ol,\n.section-container .content-block .data-container-wrapper .data-container ol {\n margin: 0 0 0 15px;\n padding: 10px;\n}\n\n.section-container .content-block #form-container.ui-widget-content {\n border: none !important;\n}\n\n.section-container .content-block form:not(.list-container) {\n border: 1px #ddd solid;\n background: #f3f1ef;\n padding: 30px;\n border: 1px solid #ddd;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n}\n\n.section-container .content-block [class^=\'btn-\'],\n.section-container .content-block [class*=\' btn-\'] {\n margin: 0 2px;\n}\n\n.search-modal {\n width: 100% !important;\n}\n\n.search-modal.search-modal {\n max-height: 100%;\n min-height: 320px;\n height: 100%;\n padding: 0px;\n}\n\n.search-modal .ui-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 64px 0px 20px 20px;\n}\n\n.search-modal .ui-container .filters-container {\n flex: 1 1 auto;\n height: 100%;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.search-modal .ui-container .basic-search-container {\n padding-right: 20px;\n flex: 0 0 auto;\n}\n\n.search-modal .ui-container .basic-search-container .class-filter-container {\n cursor: pointer;\n z-index: 2;\n}\n\n.search-modal .ui-container .filter-container {\n position: relative;\n margin-bottom: 8px;\n}\n\n.search-modal .ui-container .filter-container:last-child {\n padding-bottom: 16px;\n}\n\n.search-modal .ui-container .filter-container > .icon-find,\n.search-modal .ui-container .filter-container > .icon-folder {\n position: absolute;\n top: 7px;\n left: 8px;\n color: #666;\n}\n\n.search-modal .ui-container .filter-container .icon-down {\n position: absolute;\n top: 1px;\n right: 1px;\n padding: 5px;\n background: white;\n}\n\n.search-modal .ui-container .filter-container > input,\n.search-modal .ui-container .filter-container > textarea {\n width: 100%;\n padding-left: 28px;\n}\n\n.search-modal .ui-container .filter-container .class-filter {\n cursor: pointer;\n resize: none;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.search-modal .ui-container .filter-container .class-filter[readonly] {\n opacity: 1 !important;\n}\n\n.search-modal .ui-container .filter-container .class-tree {\n display: none;\n position: absolute;\n top: 27px;\n left: 0px;\n width: 275px;\n font-size: 1.2rem;\n}\n\n.search-modal .ui-container .filter-container .class-tree main {\n overflow-y: auto;\n border: 1px solid black;\n}\n\n.search-modal .ui-container .buttons-container {\n flex: 0 0 auto;\n padding-right: 4px;\n display: flex;\n justify-content: space-between;\n}\n\n.search-modal .ui-container .buttons-container button {\n flex: 1 1 auto;\n margin-right: 16px;\n vertical-align: top;\n}\n\n.search-modal .ui-container .buttons-container .btn-transparent {\n background-color: transparent;\n border: 1px solid black;\n color: black;\n text-shadow: none;\n}\n\n@media screen and (min-width: 840px) {\n .search-modal .content-container {\n padding: 64px !important;\n }\n}\n\n.search-modal .content-container .no-datatable-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.search-modal .content-container .no-datatable-container .no-datatable-icon {\n color: #e4ecef;\n font-size: 3.5em;\n margin-bottom: 30px;\n}\n\n.search-modal .go-to-item {\n background-color: transparent !important;\n border: 1px solid black !important;\n color: black !important;\n text-shadow: none !important;\n}\n\n.search-modal .actions {\n width: 12%;\n}\n\n.search-modal .modal-close-left {\n position: absolute;\n left: 20px;\n top: 20px;\n cursor: pointer;\n font-weight: bold;\n color: #222 !important;\n background-color: transparent;\n padding: 0;\n height: 24px;\n}\n\n.search-modal .modal-close-left .icon-close {\n font-size: 2.4rem;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/searchModal/css/searchModal.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.advanced-search-container {\n flex: 1 1 auto;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.advanced-search-container:not(:empty) {\n padding: 0 0 32px 0;\n}\n\n.advanced-search-container .add-criteria-container {\n padding-top: 16px;\n padding-right: 20px;\n position: relative;\n}\n\n.advanced-search-container .add-criteria-container .icon-add {\n font-size: 1.6rem;\n position: relative;\n top: 2px;\n margin-right: 8px;\n}\n\n.advanced-search-container .add-criteria-container .icon-loop {\n font-size: 1.6rem;\n position: relative;\n top: 2px;\n margin-right: 8px;\n animation: rotating 2s linear infinite;\n display: inline-block;\n}\n\n.advanced-search-container .add-criteria-container a {\n text-decoration: none;\n}\n\n.advanced-search-container .add-criteria-container .criteria-select2 {\n visibility: hidden;\n position: absolute;\n left: 0;\n width: 70%;\n}\n\n.advanced-search-container .add-criteria-container.disabled {\n display: none;\n}\n\n.advanced-search-container .advanced-criteria-container {\n overflow-y: auto;\n padding-right: 20px;\n max-height: 100%;\n min-height: 0;\n display: flex;\n flex-direction: column;\n}\n\n.advanced-search-container .advanced-criteria-container:not(:empty) {\n padding-top: 16px;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container {\n margin-bottom: 32px;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container:last-child {\n margin-bottom: 16px;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container .icon-result-nok {\n right: 0;\n top: 2px;\n cursor: pointer;\n position: absolute;\n font-size: 1.6rem !important;\n font-weight: 400;\n padding: 0;\n background: transparent;\n box-shadow: none;\n border: 0;\n color: inherit;\n height: 1.8rem;\n z-index: 1;\n border: 1px dashed transparent;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container .icon-result-nok:focus {\n border-color: #333333;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container .filter-bool-group legend {\n padding-bottom: 4px;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container .filter-bool-group input[type="checkbox"] {\n margin-left: 0;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container label {\n width: 100%;\n padding: 0;\n margin: 0;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container .filter-label-text {\n padding-bottom: 4px;\n display: inline-block;\n width: auto;\n vertical-align: middle;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container[data-type=\'text\'] input {\n padding-left: 4px;\n width: 100%;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container[data-type=\'list\'] .select2-container {\n width: 100%;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container[data-type=\'list\'] ul {\n list-style: none;\n padding-left: 0;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container[data-type=\'list\'] input[type=\'checkbox\'] {\n width: initial;\n vertical-align: top;\n}\n\n.advanced-search-container .advanced-criteria-container .filter-container[data-type=\'list\'] input[type=\'text\'] {\n width: 100%;\n}\n\n.advanced-search-container .advanced-criteria-container .invalid-criteria-warning-container {\n background-color: #cfdfe9;\n border: 1px solid #266d9c;\n padding: 10px;\n}\n\n.advanced-search-container .advanced-criteria-container .invalid-criteria-warning-container p {\n margin-bottom: 0;\n}\n\n.advanced-search-container .advanced-criteria-container .invalid-criteria-warning-container ul {\n list-style: none;\n font-weight: bolder;\n padding-left: 0;\n}\n\n.advanced-search-container .advanced-criteria-container.scrollable {\n padding-right: 10px;\n}\n\n.advanced-search-container .advanced-criteria-container.scroll-separator-top {\n border-top: 1px solid #ddd;\n}\n\n.advanced-search-container .advanced-criteria-container.scroll-separator-bottom {\n border-bottom: 1px solid #ddd;\n}\n\n.criteria-dropdown-select2 {\n border: 1px solid #ddd;\n box-shadow: #ddd 1px 1px 1px;\n}\n\n.criteria-dropdown-select2 input {\n min-width: initial;\n background-image: initial;\n}\n\n@keyframes rotating {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/searchModal/css/advancedSearch.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.switch {\n display: inline-block;\n position: relative;\n}\n\n.switch input {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 100;\n opacity: 0;\n cursor: pointer;\n}\n\n.switch label {\n border: solid 1px #a4a9b1;\n background-color: #f3f1ef;\n border-radius: 2px;\n padding: 1px;\n}\n\n.switch label span {\n display: inline-block;\n position: relative;\n min-width: 50px;\n border-radius: 2px;\n text-align: center;\n}\n\n.switch input ~ label .on {\n color: #222;\n background-color: #f3f1ef;\n transition: background-color .4s ease-out;\n}\n\n.switch input ~ label .off {\n color: white;\n background-color: #a4a9b1;\n transition: background-color .4s ease-out;\n}\n\n.switch input:checked ~ label .on {\n color: white;\n background-color: #0e5d91;\n transition: background-color .4s ease-out;\n}\n\n.switch input:checked ~ label .off {\n color: #222;\n background-color: #f3f1ef;\n transition: background-color .4s ease-out;\n}\n\n.switch input:focus ~ label {\n border: solid 1px #0e5d91;\n}\n\n.switch.monostyle input ~ label .off {\n color: white;\n background-color: #0e5d91;\n transition: background-color .4s ease-out;\n}\n\n.switch.monostyle input:checked ~ label .off {\n color: #222;\n background-color: #f3f1ef;\n transition: background-color .4s ease-out;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/switch/css/switch.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n/** Styles for a group of buttons to be glued together into a tabs-like bar\n * Intended use:\n * <ul class="tab-group">\n * <li class="tab">\n * <button>\n */\n.tab-group {\n list-style: none;\n border: 1px solid #8d949e;\n border-radius: 2px;\n border-radius: 4px;\n padding: 1px;\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n\n.tab-group .tab button {\n border-radius: 0px;\n padding: 0 15px;\n background-color: white;\n color: #222;\n text-shadow: none;\n}\n\n.tab-group .tab button:hover {\n background-color: #e7eff4;\n}\n\n.tab-group .tab button:focus {\n outline: 1px dotted #0e5d91;\n outline-offset: -2px;\n}\n\n.tab-group .tab:first-of-type button {\n -webkit-border-top-left-radius: 4px;\n -webkit-border-bottom-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n -moz-border-radius-bottomleft: 4px;\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.tab-group .tab:last-of-type button {\n -webkit-border-top-right-radius: 4px;\n -webkit-border-bottom-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n -moz-border-radius-bottomright: 4px;\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n.tab-group .tab.active button {\n background-color: #0e5d91;\n transition: background-color .4s ease-out;\n color: white;\n}\n\n.tab-group .tab.active button:hover {\n background-color: #3e7da7;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/tabs/css/tabs.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.task-queue-status {\n height: 100%;\n}\n\n.task-queue-status .task-name {\n font-weight: bold;\n}\n\n.task-queue-status .task-status {\n font-weight: bold;\n}\n\n.task-queue-status .component-report {\n height: 100%;\n}\n\n.task-queue-status .component-report .content {\n height: 100%;\n}\n\n.task-queue-status .component-report .content > .hierarchical {\n height: 100%;\n}\n\n.task-queue-status .component-report .content > .hierarchical > .hierarchical {\n height: 100%;\n padding-right: 30px;\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n.task-queue-status .component-report .content > .hierarchical > .hierarchical > .hierarchical-icon {\n display: none;\n}\n\n.task-queue-status .component-report .content > .hierarchical > .hierarchical > .message {\n font-weight: bold;\n position: relative;\n left: -10px;\n}\n\n.task-queue-table .datatable-container .matrix tr.error {\n background: #f1d0d5;\n}\n\n.task-queue-table .datatable-container .matrix tr button [class^="icon-"], .task-queue-table .datatable-container .matrix tr button [class*=" icon-"] {\n padding: 0;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/taskQueue/css/taskQueue.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.tree-button-component .spinner-icon {\n font-size: 17px;\n font-size: 1.7rem;\n width: 17px;\n height: 17px;\n display: none;\n margin: 12px auto 4px;\n}\n\n.tree-button-component.started {\n background: #ddd;\n color: #666;\n}\n\n.tree-button-component.started .li-inner {\n cursor: progress;\n}\n\n.tree-button-component.started .spinner-icon {\n display: block;\n transform: translateZ(0);\n transform-origin: 50% 50%;\n animation: tree-button-rotate 1.4s infinite linear;\n}\n\n@keyframes tree-button-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.tree-button-component.started .start-icon {\n display: none !important;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/taskQueueButton/css/treeButton.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.tristate-checkbox-group li label input:indeterminate[type="checkbox"] ~ .icon-checkbox::before {\n content: "\\e901";\n}\n\n.tristate-checkbox-group li label .icon.cross {\n color: #ba122b;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/tristateCheckboxGroup/css/tristateCheckboxGroup.css.map *//*\nUsage:\n- linear-gradient((color1, color2, color3)) - returns linear-gradient with evenly distributed colors,\n if 3 colors used then the position of each will be 33,33%\n- linear-gradient((color1 0%, color2 30%, color3 80%)) - returns linear-gradient with manually distributed colors,\n first param - color, second - position. Also you can use px or other valid units for set position.\n*/\n/* Do not edit */\n.modal.has-secondary .message {\n font-weight: bold;\n}\n\n.modal.has-secondary .buttons {\n width: 100%;\n text-align: center;\n}\n\n.modal.has-secondary .buttons button.waiting:disabled {\n background-color: transparent !important;\n color: #222 !important;\n opacity: 1 !important;\n font-size: 1.6rem !important;\n text-shadow: none !important;\n text-transform: none;\n}\n\n.modal.has-secondary .buttons .between-buttons-text {\n color: #7a7a7a;\n padding: 0 1rem;\n font-size: 12px;\n font-size: 1.2rem;\n}\n\n.modal.has-secondary .button-subtext {\n font-size: 11px;\n font-size: 1.1rem;\n color: #7a7a7a;\n text-align: center;\n margin-top: 1.5rem;\n}\n\n/*# sourceMappingURL=../../../tao/views/node_modules/@oat-sa/tao-core-ui/dist/waitingDialog/css/waitingDialog.css.map */'
),define("loader/vendor.bundle",function(){});
//# sourceMappingURL=vendor.min.js.map