/*! This minified app bundle contains open source software from several third party developers. Please review CREDITS.md in the root directory or LICENSE.md in the current directory for complete licensing, copyright and patent information. This file and the included code may not be redistributed without the attributions listed in LICENSE.md, including associate copyright notices and licensing information. */!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="http://0.0.0.0:31499/",n(n.s=215)}([function(e,t){e.exports=React},function(e,t,n){"use strict";n.r(t),n.d(t,"props",(function(){return Y})),n.d(t,"path",(function(){return $})),n.d(t,"state",(function(){return K})),n.d(t,"string",(function(){return G})),n.d(t,"sequences",(function(){return Z})),n.d(t,"computed",(function(){return J})),n.d(t,"moduleState",(function(){return Q})),n.d(t,"moduleSequences",(function(){return X})),n.d(t,"moduleComputed",(function(){return ee})),n.d(t,"ModuleClass",(function(){return h})),n.d(t,"ControllerClass",(function(){return j})),n.d(t,"ProviderClass",(function(){return g.a})),n.d(t,"BaseControllerClass",(function(){return k})),n.d(t,"ChainSequenceFactory",(function(){return z})),n.d(t,"ChainSequenceWithPropsFactory",(function(){return F})),n.d(t,"sequence",(function(){return s.j})),n.d(t,"parallel",(function(){return s.h})),n.d(t,"createTemplateTag",(function(){return s.e})),n.d(t,"extractValueWithPath",(function(){return s.g})),n.d(t,"resolveObject",(function(){return s.i})),n.d(t,"ResolveValue",(function(){return s.c})),n.d(t,"Tag",(function(){return s.d})),n.d(t,"Controller",(function(){return te})),n.d(t,"UniversalController",(function(){return ne})),n.d(t,"UniversalApp",(function(){return re})),n.d(t,"Module",(function(){return oe})),n.d(t,"CerebralError",(function(){return U})),n.d(t,"Provider",(function(){return g.a})),n.d(t,"Compute",(function(){return u.c})),n.d(t,"Reaction",(function(){return d})),n.d(t,"View",(function(){return q})),n.d(t,"createDummyController",(function(){return o.d})),n.d(t,"throwError",(function(){return o.y})),n.d(t,"default",(function(){return ae}));var r=n(46),o=n(4),i=function(){function e(e,t){for(var n=0;nt.rawId?1:-1}))}},{key:"getUniqueEntities",value:function(e){return Object(o.g)(e,this.map).reduce((function(e,t){return(t.entities||[]).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),e)}),[]).sort((function(e,t){return e.rawId>t.rawId?1:-1}))}}]),e}(),s=n(9),u=n(20),l=n(54),c=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];n=Object(o.h)(n),Object(o.a)("module.*","use the new STORE provider, store.set(state.isAwesome, true)");for(var r=this.context.execution.name.split("."),i=r.splice(0,r.length-1),a=arguments.length,s=Array(a>1?a-1:0),u=1;u2&&void 0!==arguments[2]?arguments[2]:{};!this.devtools||Object(o.v)(r)&&Object(o.w)(r)||(console.warn('You passed an invalid payload to sequence "'+e+'". Only serializable payloads can be passed to a sequence. The payload has been ignored. This is the object:',r),r={}),this.devtools&&(r=Object.keys(r).reduce((function(t,i){return Object(o.w)(r[i],n.devtools.allowedTypes)?(t[i]=Object(o.k)(r[i]),t):(console.warn('You passed an invalid payload to sequence "'+e+'", on key "'+i+'". Only serializable values like Object, Array, String, Number and Boolean can be passed in. Also these special value types:',n.devtools.allowedTypes),t)}),{}));var i=function(e){if(e){var t=Object(o.h)(e.execution.name).reduce((function(e,t,n){return e.currentModule.catch&&(e.catchingModule=e.currentModule),e.currentModule=e.currentModule.modules[t],e}),{currentModule:n.module,catchingModule:null});if(t.catchingModule){var r=!0,i=!1,a=void 0;try{for(var s,u=t.catchingModule.catch[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=_(s.value,2),c=l[0],f=l[1];if(e instanceof c)return n.runSequence("catch",f,e.payload),void(n.throwToConsole&&setTimeout((function(){console.log('Cerebral is handling error "'+e.name+": "+e.message+'" thrown by sequence "'+e.execution.name+'". Check debugger for more information.')})))}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}}if(!n.noRethrow){if(!e.execution.isAsync)throw e;setTimeout((function(){throw e}))}}};if(this.returnSequencePromise)return this.run(e,t,r).catch(i);this.run(e,t,r,i)}},{key:"getSequence",value:function(e){var t=Object(o.h)(e),n=t.pop(),r=t.reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),i=r&&r.sequences[n];if(i)return i&&i.run}},{key:"getSequences",value:function(e){var t=Object(o.h)(e).reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),n=t&&t.sequences;if(n){var r={};for(var i in n)r[i]=n[i].run;return r}}},{key:"addModule",value:function(e,t){var n=Object(o.h)(e),r=n.pop(),i=Object(o.m)(n,this.module),a=t instanceof h?t.create(this,Object(o.h)(e)):new h(t).create(this,Object(o.h)(e));i.modules[r]=a,a.providers&&Object.assign(this.contextProviders,a.providers),this.emit("moduleAdded",e.split("."),a),this.flush()}},{key:"removeModule",value:function(e){var t=this;if(!e)return console.warn("Controller.removeModule requires a Module Path"),null;var n=Object(o.h)(e),r=n.pop(),i=Object(o.m)(n,this.module),a=i.modules[r];a.providers&&Object.keys(a.providers).forEach((function(e){delete t.contextProviders[e]})),delete i.modules[r],this.emit("moduleRemoved",Object(o.h)(e),a),this.flush()}}]),t}(s.f),O=n(88),C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];e.length?e.reduce((function(i,a,s){if(s===e.length-1){Array.isArray(i)||Object(o.v)(i)||Object(o.y)('The path "'+e.join(".")+'" is invalid. Path: "'+e.slice(0,e.length-1).join(".")+'" is type of "'+(null===i?"null":void 0===i?"undefined":C(i))+'"');var u=i[a];t(i[a],i,a),(i[a]!==u||Object(o.s)(i[a])&&Object(o.s)(u))&&n.changedPaths.push({path:e,forceChildPathUpdates:r})}else i[a]||(i[a]={});return i[a]}),this.state):t(this.state,this,"state")}},{key:"checkForComputed",value:function(e){var t=e.reduce((function(e,t){return e[t]}),this.state);if(t instanceof u.a&&Object(o.y)('You are trying to replace a computed value on path "'+e.join(".")+'", but that is not allowed'),Object(o.v)(t)){!function e(t,n){Object.keys(t).forEach((function(r){t[r]instanceof u.a?Object(o.y)('You are trying to replace a computed value on path "'+n.join(".")+'", but that is not allowed'):Object(o.v)(t[r])&&e(t[r],n.concat(r))}))}(t,e)}}},{key:"verifyValue",value:function(e,t){this.devtools&&(this.checkForComputed(t),Object(o.w)(e,this.devtools.allowedTypes)||Object(o.y)('You are passing a non serializable value into the state tree on path "'+t.join(".")+'"'),Object(o.k)(e),this.devtools.warnStateProps&&Object(o.b)(e))}},{key:"verifyValues",value:function(e,t){var n=this;this.devtools&&e.forEach((function(e){n.verifyValue(e,t)}))}},{key:"emitMutationEvent",value:function(e,t,n){for(var r=arguments.length,o=Array(r>3?r-3:0),i=3;i0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n,r){return t instanceof u.b?t:t instanceof u.a?new u.b(t,e.slice(r)):t?t[n]:void 0}),this.state)}},{key:"set",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e,n,r){n[r]=t}),!0),this.emitMutationEvent("set",e,!0,t)}},{key:"toggle",value:function(e){this.updateIn(e,(function(e,t,n){t[n]=!e})),this.emitMutationEvent("toggle",e,!1)}},{key:"push",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e){e.push(t)})),this.emitMutationEvent("push",e,t,!1)}},{key:"merge",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1;if(!Number.isInteger(t))throw new Error("Cerebral state.increment: you must increment with integer values.");this.updateIn(e,(function(e,n,r){if(!Number.isInteger(e))throw new Error("Cerebral state.increment: you must increment integer values.");n[r]=e+t})),this.emitMutationEvent("increment",e,!1,t)}}]),t}(O.a),T=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=this.createContext(t),r=e.getValue(n);return Object(o.t)(r)?r.getValue(t):r}},{key:"createContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length?t.join(".")+".":"";return{props:e,controller:this,execution:{name:n}}}},{key:"createDependencyMap",value:function(e,t,n){var r=this,i=this.createContext(t,n);return e.reduce((function(e,n){return n instanceof s.d?n.getTags(i).reduce((function(e,n){if("state"===n.type||"moduleState"===n.type){var a=n.getValue(i);if(Object(o.t)(a))return a.getValue(t),Object.assign(e,a.getDependencyMap());var s=n.getPath(i);e[Object(o.i)(s,r.getState(s))]=!0}return e}),e):e}),{})}}]),t}(k),M=function(){function e(e,t){for(var n=0;nwindow.CEREBRAL_STATE = "+e+"<\/script>"}},{key:"runSequence",value:function(e,t){var n=void 0;if(Array.isArray(e))n=this.run("UniversalController.run",e,t);else if("string"==typeof e){var r=Object(o.h)(e),i=r.pop(),a=Object(o.m)(r,this.module),s=a&&a.sequences[i];n=this.run(e,s.sequence,t)}else Object(o.y)("Sequence must be a sequence-path or an array of action.");return n}},{key:"setState",value:function(e,t){this.model.set(Object(o.h)(e),t),this.flush(!0)}}]),t}(j),P=n(49),R=(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(){function e(e){this.sequenceArray=e}return e.prototype.action=function(){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:"";B(this,t);var n=W(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),W(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error))),H=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Object.keys(this.dependencies).reduce((function(r,i){var a=t.dependencies[i],s=a.getValue(e);if(Object(o.t)(s)){var u=a.getPath(e);t.computedWithProps[u]?r[i]=t.computedWithProps[u].getValue(n):r[i]=s.getValue(n)}else r[i]=s;return r}),{});return this.controller.devtools&&this.controller.devtools.bigComponentsWarning&&!this._hasWarnedBigComponent&&Object.keys(this.dependencies).length>=this.controller.devtools.bigComponentsWarning&&(console.warn("Component named "+this._displayName+" has a lot of dependencies, consider refactoring or adjust this option in devtools"),this._hasWarnedBigComponent=!0),this.mergeProps?this.mergeProps(i,n,(function(t){t instanceof s.d||Object(o.y)("You are not passing a tag to the mergeProp get function");var r=t.getValue(e);return Object(o.t)(r)?r.getValue(n):r})):(i.get=this.createDynamicGetter(n,e),i.reaction=this.createReaction,Object.assign({},r?n:{},i))}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments[2],r=this.controller.createContext(e),o=this.getProps(r,e,n);this.executedCount++,this.controller.devtools&&this.controller.devtools.sendWatchMap([],[],0,0);var i=t(o);return this.dynamicDependencies.length&&this.update(e),i}}]),t}(l.a),V=r;var Y=V.props,$=V.path,K=V.state,G=V.string,Z=V.sequences,J=V.computed,Q=V.moduleState,X=V.moduleSequences,ee=V.moduleComputed;function te(e,t){return Object(o.a)("Controller","Use App default import instead"),new j(e,t)}function ne(e,t){return Object(o.a)("UniversalController","Use UniversalApp import instead"),new A(e,t)}function re(e,t){return new A(e,t)}function oe(e){return Object(o.a)("Module","Use plain object/function. Type with ModuleDefinition export"),new h(e)}var ie=void 0;function ae(e,t){return t&&!0===t.hotReloading&&ie?(ie.reconfigure(e),ie):ie=new j(e,t)}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(262)()},function(e,t,n){"use strict";n.d(t,"l",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"v",(function(){return l})),n.d(t,"s",(function(){return c})),n.d(t,"w",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"y",(function(){return p})),n.d(t,"u",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"n",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"r",(function(){return w})),n.d(t,"i",(function(){return _})),n.d(t,"e",(function(){return x})),n.d(t,"x",(function(){return k})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return C})),n.d(t,"q",(function(){return S})),n.d(t,"m",(function(){return E})),n.d(t,"j",(function(){return T})),n.d(t,"a",(function(){return M})),n.d(t,"o",(function(){return L})),n.d(t,"t",(function(){return A})),n.d(t,"p",(function(){return P}));var r=n(46),o=n(20),i=n(9),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function s(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),r=Object.keys(t),o=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:[],n=t.reduce((function(t,n){return!!(t||e instanceof n)||t}),!1);return!(void 0===e||!(n||l(e)&&"[object Object]"===Object.prototype.toString.call(e)&&(e.constructor===Object||null===Object.getPrototypeOf(e))||"number"==typeof e||"string"==typeof e||"boolean"==typeof e||null===e||Array.isArray(e)))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:"string"==typeof e?e.split("."):[]}function p(e){throw new Error("Cerebral - "+e)}function h(){return!1}function v(e,t,n){var r=void 0;return function(){var o=this,i=arguments,a=function(){r=null,n||e.apply(o,i)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(o,i)}}function g(e){if(e&&!f(e)){var t=e.constructor.name;try{Object.defineProperty(e,"toJSON",{value:function(){return"["+t+"]"}})}catch(e){}}return e}function m(e){return Object.assign(Object.keys(e.providers||{}).reduce((function(t,n){return t[n]=e.providers[n]instanceof i.b?e.providers[n]:new i.b(e.providers[n]),t}),{}),Object.keys(e.modules||{}).reduce((function(t,n){return Object.assign(t,m(e.modules[n]))}),{}))}function y(e){return Object.keys(e).reduce((function(t,n){return e[n].children?t.concat(e[n]).concat(y(e[n].children)):t.concat(e[n])}),[])}function b(e,t){for(var n=[],r=0;r0&&void 0===e&&p('You are extracting with path "'+t+'", but it is not valid for this object'),e[n]}),e)}}function _(e,t){return c(t)&&-1===e.indexOf("*")?e+".**":e}function x(e){return{isTag:function(e){if(!(e instanceof r.Tag))return!1;for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return d(t).reduce((function(e,t){return e?e[t]:void 0}),e)};return{options:{},on:function(){},getState:n,model:{get:n},getSequence:function(e){return t[e]||function(){}},dependencyStore:{addEntity:k,removeEntity:k}}}function C(e){if(c(e)&&!(e instanceof o.a)){for(var t in e)C(e[t]);!e.__CerebralState&&Object.defineProperty(e,"__CerebralState",{value:!0})}return e}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return!t&&c(e[n])&&"__CerebralState"in e[n]?n:t}),null)}function E(e,t){var n=Array.isArray(e)?e:d(e);return n.reduce((function(t,r){return t.modules[r]||p('The path "'+n.join(".")+'" is invalid, can not find module. Does the path "'+n.splice(0,e.length-1).join(".")+'" exist?'),t.modules[r]}),t)}function T(e,t,n){var r=Object.keys(e.modules||{}).reduce((function(r,o){return r[o]=T(e.modules[o],t,n),r}),{});if(e[t]){var o=Object.keys(e[t]).reduce((function(n,r){var o=Object.getOwnPropertyDescriptor(e[t],r);return o&&"get"in o?Object.defineProperty(n,r,o):n[r]=e[t][r],n}),r);return n?n(o,e):o}return r}var j=[];function M(e,t){-1===j.indexOf(e)&&(j.push(e),console.warn(e+" is DEPRECATED - "+t))}function L(e,t){var n=t.execution.name.split(".");return n.splice(0,n.length-1).concat(e).join(".")}function A(e){return e instanceof o.a||e instanceof o.b}function P(e,t,n){var r=[];return function e(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(A(n)||A(o))return o;if(l(n)&&l(o)){var a=Object.keys(n).concat(Object.keys(o)).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),[]),s=!0,u=!1,c=void 0;try{for(var f,d=a[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var p=f.value;e(t[p],n[p],o[p],i.concat(p))}}catch(e){u=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(u)throw c}}}else"function"!=typeof o&&(Array.isArray(n)&&Array.isArray(o)||o===t&&n!==t?r.push({path:i.slice(),value:n}):o!==t&&r.push({path:i.slice(),value:o}))}(e,t,n),r}},function(e,t,n){(function(e,n){(function(){var r="Expected a function",o="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object GeneratorFunction]",p="[object Map]",h="[object Number]",v="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",M="[object Uint32Array]",L=/\b__p \+= '';/g,A=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,V=RegExp(q.source),Y=/^\s+/,$=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,le=/['\n\r\u2028\u2029\\]/g,ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="[\\ud800-\\udfff]",pe="["+fe+"]",he="["+ce+"]",ve="\\d+",ge="[\\u2700-\\u27bf]",me="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+me+"|"+ye+")",Ce="(?:"+ke+"|"+ye+")",Se="(?:"+he+"|"+be+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[we,_e,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ge,_e,xe].join("|")+")"+Ee,je="(?:"+[we+he+"?",he,_e,xe,de].join("|")+")",Me=RegExp("['\u2019]","g"),Le=RegExp(he,"g"),Ae=RegExp(be+"(?="+be+")|"+je+Ee,"g"),Pe=RegExp([ke+"?"+me+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pe,ke,"$"].join("|")+")",Ce+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pe,ke+Oe,"$"].join("|")+")",ke+"?"+Oe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+ce+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[k]=ze[O]=ze[C]=ze[S]=ze[E]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[j]=ze[M]=!0,ze[a]=ze[s]=ze[_]=ze[u]=ze[x]=ze[l]=ze[c]=ze[f]=ze[p]=ze[h]=ze[v]=ze[g]=ze[m]=ze[y]=ze[w]=!1;var Fe={};Fe[a]=Fe[s]=Fe[_]=Fe[x]=Fe[u]=Fe[l]=Fe[k]=Fe[O]=Fe[C]=Fe[S]=Fe[E]=Fe[p]=Fe[h]=Fe[v]=Fe[g]=Fe[m]=Fe[y]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[M]=!0,Fe[c]=Fe[f]=Fe[w]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ve=He||qe||Function("return this")(),Ye=t&&!t.nodeType&&t,$e=Ye&&"object"==typeof n&&n&&!n.nodeType&&n,Ke=$e&&$e.exports===Ye,Ge=Ke&&He.process,Ze=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Ge&&Ge.binding&&Ge.binding("util")}catch(e){}}(),Je=Ze&&Ze.isArrayBuffer,Qe=Ze&&Ze.isDate,Xe=Ze&&Ze.isMap,et=Ze&&Ze.isRegExp,tt=Ze&&Ze.isSet,nt=Ze&&Ze.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Pt(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=Ot({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Kt=function e(t){var n,$=(t=null==t?Ve:Kt.defaults(Ve.Object(),t,Kt.pick(Ve,De))).Array,ce=t.Date,fe=t.Error,de=t.Function,pe=t.Math,he=t.Object,ve=t.RegExp,ge=t.String,me=t.TypeError,ye=$.prototype,be=de.prototype,we=he.prototype,_e=t["__core-js_shared__"],xe=be.toString,ke=we.hasOwnProperty,Oe=0,Ce=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=we.toString,Ee=xe.call(he),Te=Ve._,je=ve("^"+xe.call(ke).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=Ke?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=Ae?Ae.allocUnsafe:void 0,qe=Bt(he.getPrototypeOf,he),Ye=he.create,$e=we.propertyIsEnumerable,Ge=ye.splice,Ze=Re?Re.isConcatSpreadable:void 0,gt=Re?Re.iterator:void 0,Ot=Re?Re.toStringTag:void 0,Gt=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Zt=t.clearTimeout!==Ve.clearTimeout&&t.clearTimeout,Jt=ce&&ce.now!==Ve.Date.now&&ce.now,Qt=t.setTimeout!==Ve.setTimeout&&t.setTimeout,Xt=pe.ceil,en=pe.floor,tn=he.getOwnPropertySymbols,nn=Ae?Ae.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Bt(he.keys,he),sn=pe.max,un=pe.min,ln=ce.now,cn=t.parseInt,fn=pe.random,dn=ye.reverse,pn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),gn=ti(t,"Set"),mn=ti(t,"WeakMap"),yn=ti(he,"create"),bn=mn&&new mn,wn={},_n=Ti(pn),xn=Ti(hn),kn=Ti(vn),On=Ti(gn),Cn=Ti(mn),Sn=Re?Re.prototype:void 0,En=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function jn(e){if(Va(e)&&!Ra(e)&&!(e instanceof Pn)){if(e instanceof An)return e;if(ke.call(e,"__wrapped__"))return ji(e)}return new An(e)}var Mn=function(){function e(){}return function(t){if(!qa(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var s,c=1&t,w=2&t,L=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),void 0!==s)return s;if(!qa(e))return e;var A=Ra(e);if(A){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return bo(e,s)}else{var P=oi(e),R=P==f||P==d;if(za(e))return po(e,c);if(P==v||P==a||R&&!o){if(s=w||R?{}:ai(e),!c)return w?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,xs(t),e)}(s,e)):function(e,t){return wo(e,ni(e),t)}(e,$n(s,e))}else{if(!Fe[P])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case _:return ho(e);case u:case l:return new r(+e);case x:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case O:case C:case S:case E:case T:case"[object Uint8ClampedArray]":case j:case M:return vo(e,n);case p:return new r;case h:case y:return new r(e);case g:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return new r;case b:return o=e,En?he(En.call(o)):{}}var o}(e,P,c)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,s),Za(e)?e.forEach((function(r){s.add(Jn(r,t,n,r,e,i))})):Ya(e)&&e.forEach((function(r,o){s.set(o,Jn(r,t,n,o,e,i))}));var D=A?void 0:(L?w?Ko:$o:w?xs:_s)(e);return it(D||e,(function(r,o){D&&(r=e[o=r]),qn(s,o,Jn(r,t,n,o,e,i))})),s}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new me(r);return _i((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=ft(t,jt(n))),r?(i=ct,a=!1):t.length>=200&&(i=Lt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Dn.prototype.delete=function(e){var t=Xo(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Xo(this,e).get(e)},Dn.prototype.has=function(e){return Xo(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Xo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var tr=ko(lr),nr=ko(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,o):dt(o,s):r||(o[o.length]=s)}return o}var sr=Oo(),ur=Oo(!0);function lr(e,t){return e&&sr(e,t,_s)}function cr(e,t){return e&&ur(e,t,_s)}function fr(e,t){return ut(t,(function(t){return Wa(e[t])}))}function dr(e,t){for(var n=0,r=(t=uo(t,e)).length;null!=e&&nt}function gr(e,t){return null!=e&&ke.call(e,t)}function mr(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var r=n?ct:lt,o=e[0].length,i=e.length,a=i,s=$(i),u=1/0,l=[];a--;){var c=e[a];a&&t&&(c=ft(c,jt(t))),u=un(c.length,u),s[a]=!n&&(t||o>=120&&c.length>=120)?new Nn(a&&c):void 0}c=e[0];var f=-1,d=s[0];e:for(;++f=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ui(o)?Ge.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return xi(gi(e,t,$s),e+"")}function Br(e){return Bn(Ms(e))}function Wr(e,t){var n=Ms(e);return Ci(n,Zn(t,0,n.length))}function Ur(e,t,n,r){if(!qa(e))return e;for(var o=-1,i=(t=uo(t,e)).length,a=i-1,s=e;null!=s&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=$(o);++r>>1,a=e[i];null!==a&&!Qa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Ut(l);a=!1,o=Lt,u=new Nn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var fo=Zt||function(e){return Ve.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function go(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Qa(e),a=void 0!==t,s=null===t,u=t==t,l=Qa(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function jo(e){return Yo((function(t){var n=t.length,o=n,i=An.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new me(r);if(i&&!s&&"wrapper"==Zo(a))var s=new An([],!0)}for(o=s?o:n;++o1&&y.reverse(),c&&us))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,p=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(G);return t?t[1].split(Z):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ci(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gi(e,n)}));function na(e){var t=jn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Yo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ui(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new An(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=_o((function(e,t,n){ke.call(e,n)?++e[n]:Kn(e,n,1)}));var aa=To(Pi),sa=To(Ri);function ua(e,t){return(Ra(e)?it:tr)(e,Qo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Qo(t,3))}var ca=_o((function(e,t,n){ke.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=Da(e)?$(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),da=_o((function(e,t,n){Kn(e,n,t)}));function pa(e,t){return(Ra(e)?ft:Tr)(e,Qo(t,3))}var ha=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,ar(t,1),[])})),ga=Jt||function(){return Ve.Date.now()};function ma(e,t,n){return t=n?void 0:t,Wo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new me(r);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Wt(n,Jo(ba));r|=32}return Wo(e,r,t,n,o)})),wa=Fr((function(e,t,n){var r=3;if(n.length){var o=Wt(n,Jo(wa));r|=32}return Wo(t,r,e,n,o)}));function _a(e,t,n){var o,i,a,s,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new me(r);function h(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function v(e){return c=e,u=_i(m,t),f?h(e):s}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function m(){var e=ga();if(g(e))return y(e);u=_i(m,function(e){var n=t-(e-l);return d?un(n,a-(e-c)):n}(e))}function y(e){return u=void 0,p&&o?h(e):(o=i=void 0,s)}function b(){var e=ga(),n=g(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return v(l);if(d)return fo(u),u=_i(m,t),h(l)}return void 0===u&&(u=_i(m,t)),s}return t=as(t)||0,qa(n)&&(f=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==u&&fo(u),c=0,o=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var xa=Fr((function(e,t){return Xn(e,1,t)})),ka=Fr((function(e,t,n){return Xn(e,as(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Dn),n}function Ca(e){if("function"!=typeof e)throw new me(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Dn;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qo())):ft(ar(t,1),jt(Qo()))).length;return Fr((function(r){for(var o=-1,i=un(r.length,n);++o=t})),Pa=wr(function(){return arguments}())?wr:function(e){return Va(e)&&ke.call(e,"callee")&&!$e.call(e,"callee")},Ra=$.isArray,Ia=Je?jt(Je):function(e){return Va(e)&&hr(e)==_};function Da(e){return null!=e&&Ha(e.length)&&!Wa(e)}function Na(e){return Va(e)&&Da(e)}var za=nn||au,Fa=Qe?jt(Qe):function(e){return Va(e)&&hr(e)==l};function Ba(e){if(!Va(e))return!1;var t=hr(e);return t==c||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Wa(e){if(!qa(e))return!1;var t=hr(e);return t==f||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==os(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ya=Xe?jt(Xe):function(e){return Va(e)&&oi(e)==p};function $a(e){return"number"==typeof e||Va(e)&&hr(e)==h}function Ka(e){if(!Va(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ee}var Ga=et?jt(et):function(e){return Va(e)&&hr(e)==g};var Za=tt?jt(tt):function(e){return Va(e)&&oi(e)==m};function Ja(e){return"string"==typeof e||!Ra(e)&&Va(e)&&hr(e)==y}function Qa(e){return"symbol"==typeof e||Va(e)&&hr(e)==b}var Xa=nt?jt(nt):function(e){return Va(e)&&Ha(e.length)&&!!ze[hr(e)]};var es=Do(Er),ts=Do((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Da(e))return Ja(e)?Vt(e):bo(e);if(gt&&e[gt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[gt]());var t=oi(e);return(t==p?Ft:t==m?Ut:Ms)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Zn(os(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qa(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ue(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function ss(e){return wo(e,xs(e))}function us(e){return null==e?"":Qr(e)}var ls=xo((function(e,t){if(pi(t)||Da(t))wo(t,_s(t),e);else for(var n in t)ke.call(t,n)&&qn(e,n,t[n])})),cs=xo((function(e,t){wo(t,xs(t),e)})),fs=xo((function(e,t,n,r){wo(t,xs(t),e,r)})),ds=xo((function(e,t,n,r){wo(t,_s(t),e,r)})),ps=Yo(Gn);var hs=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),wo(e,Ko(e),n),r&&(n=Jn(n,7,qo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Ss=Yo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return ms(e,n)}))}(e,t)}));function Es(e,t){if(null==e)return{};var n=ft(Ko(e),(function(e){return[e]}));return t=Qo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Ts=Bo(_s),js=Bo(xs);function Ms(e){return null==e?[]:Mt(e,_s(e))}var Ls=So((function(e,t,n){return t=t.toLowerCase(),e+(n?As(t):t)}));function As(e){return Bs(us(e).toLowerCase())}function Ps(e){return(e=us(e))&&e.replace(se,It).replace(Le,"")}var Rs=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=Co("toLowerCase");var Ns=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=So((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Fs=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Co("toUpperCase");function Ws(e,t,n){return e=us(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Us=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hs=Yo((function(e,t){return it(t,(function(t){t=Ei(t),Kn(e,t,ba(e[t],e))})),e}));function qs(e){return function(){return e}}var Vs=jo(),Ys=jo(!0);function $s(e){return e}function Ks(e){return Or("function"==typeof e?e:Jn(e,1))}var Gs=Fr((function(e,t){return function(n){return br(n,e,t)}})),Zs=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Js(e,t,n){var r=_s(t),o=fr(t,r);null!=n||qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,_s(t)));var i=!(qa(n)&&"chain"in n&&!n.chain),a=Wa(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,dt([this.value()],arguments))})})),e}function Qs(){}var Xs=Po(ft),eu=Po(st),tu=Po(vt);function nu(e){return ci(e)?kt(Ei(e)):function(e){return function(t){return dr(t,e)}}(e)}var ru=Io(),ou=Io(!0);function iu(){return[]}function au(){return!1}var su=Ao((function(e,t){return e+t}),0),uu=zo("ceil"),lu=Ao((function(e,t){return e/t}),1),cu=zo("floor");var fu,du=Ao((function(e,t){return e*t}),1),pu=zo("round"),hu=Ao((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new me(r);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=ma,jn.assign=ls,jn.assignIn=cs,jn.assignInWith=fs,jn.assignWith=ds,jn.at=ps,jn.before=ya,jn.bind=ba,jn.bindAll=Hs,jn.bindKey=wa,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},jn.chain=na,jn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:sn(os(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=$(Xt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:os(r))<0&&(r+=o),r=n>r?0:is(r);n>>0)?(e=us(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Qr(t))&&zt(e)?co(Vt(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new me(r);return t=null==t?0:sn(os(t),0),Fr((function(n){var r=n[t],o=co(n,0,t);return r&&dt(o,r),rt(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:os(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?no(e,Qo(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?no(e,Qo(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new me(r);return qa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:o,maxWait:t,trailing:i})},jn.thru=ra,jn.toArray=ns,jn.toPairs=Ts,jn.toPairsIn=js,jn.toPath=function(e){return Ra(e)?ft(e,Ei):Qa(e)?[e]:bo(Si(us(e)))},jn.toPlainObject=ss,jn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Xa(e);if(t=Qo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:qa(e)&&Wa(i)?Mn(qe(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},jn.unary=function(e){return ma(e,1)},jn.union=Vi,jn.unionBy=Yi,jn.unionWith=$i,jn.uniq=function(e){return e&&e.length?Xr(e):[]},jn.uniqBy=function(e,t){return e&&e.length?Xr(e,Qo(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},jn.unset=function(e,t){return null==e||eo(e,t)},jn.unzip=Ki,jn.unzipWith=Gi,jn.update=function(e,t,n){return null==e?e:to(e,t,so(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,so(n),r)},jn.values=Ms,jn.valuesIn=function(e){return null==e?[]:Mt(e,xs(e))},jn.without=Zi,jn.words=Ws,jn.wrap=function(e,t){return Ea(so(t),e)},jn.xor=Ji,jn.xorBy=Qi,jn.xorWith=Xi,jn.zip=ea,jn.zipObject=function(e,t){return io(e||[],t||[],qn)},jn.zipObjectDeep=function(e,t){return io(e||[],t||[],Ur)},jn.zipWith=ta,jn.entries=Ts,jn.entriesIn=js,jn.extend=cs,jn.extendWith=fs,Js(jn,jn),jn.add=su,jn.attempt=Us,jn.camelCase=Ls,jn.capitalize=As,jn.ceil=uu,jn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},jn.clone=function(e){return Jn(e,4)},jn.cloneDeep=function(e){return Jn(e,5)},jn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},jn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},jn.conformsTo=function(e,t){return null==t||Qn(e,t,_s(t))},jn.deburr=Ps,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=lu,jn.endsWith=function(e,t,n){e=us(e),t=Qr(t);var r=e.length,o=n=void 0===n?r:Zn(os(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},jn.eq=Ma,jn.escape=function(e){return(e=us(e))&&N.test(e)?e.replace(I,Dt):e},jn.escapeRegExp=function(e){return(e=us(e))&&V.test(e)?e.replace(q,"\\$&"):e},jn.every=function(e,t,n){var r=Ra(e)?st:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Qo(t,3))},jn.find=aa,jn.findIndex=Pi,jn.findKey=function(e,t){return mt(e,Qo(t,3),lr)},jn.findLast=sa,jn.findLastIndex=Ri,jn.findLastKey=function(e,t){return mt(e,Qo(t,3),cr)},jn.floor=cu,jn.forEach=ua,jn.forEachRight=la,jn.forIn=function(e,t){return null==e?e:sr(e,Qo(t,3),xs)},jn.forInRight=function(e,t){return null==e?e:ur(e,Qo(t,3),xs)},jn.forOwn=function(e,t){return e&&lr(e,Qo(t,3))},jn.forOwnRight=function(e,t){return e&&cr(e,Qo(t,3))},jn.get=gs,jn.gt=La,jn.gte=Aa,jn.has=function(e,t){return null!=e&&ii(e,t,gr)},jn.hasIn=ms,jn.head=Di,jn.identity=$s,jn.includes=function(e,t,n,r){e=Da(e)?e:Ms(e),n=n&&!r?os(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:os(n);return o<0&&(o=sn(r+o,0)),bt(e,t,o)},jn.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=un(t,n)&&e=-9007199254740991&&e<=9007199254740991},jn.isSet=Za,jn.isString=Ja,jn.isSymbol=Qa,jn.isTypedArray=Xa,jn.isUndefined=function(e){return void 0===e},jn.isWeakMap=function(e){return Va(e)&&oi(e)==w},jn.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==hr(e)},jn.join=function(e,t){return null==e?"":on.call(e,t)},jn.kebabCase=Rs,jn.last=Bi,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=os(n))<0?sn(r+o,0):un(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yt(e,_t,o,!0)},jn.lowerCase=Is,jn.lowerFirst=Ds,jn.lt=es,jn.lte=ts,jn.max=function(e){return e&&e.length?or(e,$s,vr):void 0},jn.maxBy=function(e,t){return e&&e.length?or(e,Qo(t,2),vr):void 0},jn.mean=function(e){return xt(e,$s)},jn.meanBy=function(e,t){return xt(e,Qo(t,2))},jn.min=function(e){return e&&e.length?or(e,$s,Er):void 0},jn.minBy=function(e,t){return e&&e.length?or(e,Qo(t,2),Er):void 0},jn.stubArray=iu,jn.stubFalse=au,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=du,jn.nth=function(e,t){return e&&e.length?Ar(e,os(t)):void 0},jn.noConflict=function(){return Ve._===this&&(Ve._=Te),this},jn.noop=Qs,jn.now=ga,jn.pad=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Xt(o),n)},jn.padEnd=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return un(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Nr(e,t)},jn.reduce=function(e,t,n){var r=Ra(e)?pt:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,tr)},jn.reduceRight=function(e,t,n){var r=Ra(e)?ht:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,nr)},jn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:os(t),zr(us(e),t)},jn.replace=function(){var e=arguments,t=us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,o=(t=uo(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=un(e,4294967295);e-=4294967295;for(var o=Et(r,t=Qo(t));++n=i)return e;var s=n-qt(r);if(s<1)return r;var u=a?co(a,0,s).join(""):e.slice(0,s);if(void 0===o)return u+r;if(a&&(s+=u.length-s),Ga(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=ve(o.source,us(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Qr(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},jn.unescape=function(e){return(e=us(e))&&D.test(e)?e.replace(R,$t):e},jn.uniqueId=function(e){var t=++Oe;return us(e)+t},jn.upperCase=Fs,jn.upperFirst=Bs,jn.each=ua,jn.eachRight=la,jn.first=Di,Js(jn,(fu={},lr(jn,(function(e,t){ke.call(jn.prototype,t)||(fu[t]=e)})),fu),{chain:!1}),jn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),it(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:sn(os(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter($s)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Ca(Qo(e)))},Pn.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Pn,u=a[0],l=s||Ra(t),c=function(e){var t=o.apply(jn,dt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=s&&!d;if(!i&&l){t=h?t:new Pn(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[c],thisArg:void 0}),new An(v,f)}return p&&h?e.apply(this,a):(v=this.thru(c),p?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(Pn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";ke.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Mo(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=ji(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[qi],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(qi)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,gt&&(jn.prototype[gt]=function(){return this}),jn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ve._=Kt,define((function(){return Kt}))):$e?(($e.exports=Kt)._=Kt,Ye._=Kt):Ve._=Kt}).call(this)}).call(this,n(31),n(58)(e))},function(e,t,n){(function(e,n){(function(){var r="Expected a function",o="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object GeneratorFunction]",p="[object Map]",h="[object Number]",v="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",M="[object Uint32Array]",L=/\b__p \+= '';/g,A=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,V=RegExp(q.source),Y=/^\s+/,$=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,le=/['\n\r\u2028\u2029\\]/g,ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="[\\ud800-\\udfff]",pe="["+fe+"]",he="["+ce+"]",ve="\\d+",ge="[\\u2700-\\u27bf]",me="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+me+"|"+ye+")",Ce="(?:"+ke+"|"+ye+")",Se="(?:"+he+"|"+be+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[we,_e,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ge,_e,xe].join("|")+")"+Ee,je="(?:"+[we+he+"?",he,_e,xe,de].join("|")+")",Me=RegExp("['\u2019]","g"),Le=RegExp(he,"g"),Ae=RegExp(be+"(?="+be+")|"+je+Ee,"g"),Pe=RegExp([ke+"?"+me+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pe,ke,"$"].join("|")+")",Ce+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pe,ke+Oe,"$"].join("|")+")",ke+"?"+Oe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+ce+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[k]=ze[O]=ze[C]=ze[S]=ze[E]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[j]=ze[M]=!0,ze[a]=ze[s]=ze[_]=ze[u]=ze[x]=ze[l]=ze[c]=ze[f]=ze[p]=ze[h]=ze[v]=ze[g]=ze[m]=ze[y]=ze[w]=!1;var Fe={};Fe[a]=Fe[s]=Fe[_]=Fe[x]=Fe[u]=Fe[l]=Fe[k]=Fe[O]=Fe[C]=Fe[S]=Fe[E]=Fe[p]=Fe[h]=Fe[v]=Fe[g]=Fe[m]=Fe[y]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[M]=!0,Fe[c]=Fe[f]=Fe[w]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ve=He||qe||Function("return this")(),Ye=t&&!t.nodeType&&t,$e=Ye&&"object"==typeof n&&n&&!n.nodeType&&n,Ke=$e&&$e.exports===Ye,Ge=Ke&&He.process,Ze=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Ge&&Ge.binding&&Ge.binding("util")}catch(e){}}(),Je=Ze&&Ze.isArrayBuffer,Qe=Ze&&Ze.isDate,Xe=Ze&&Ze.isMap,et=Ze&&Ze.isRegExp,tt=Ze&&Ze.isSet,nt=Ze&&Ze.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Pt(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=Ot({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Kt=function e(t){var n,$=(t=null==t?Ve:Kt.defaults(Ve.Object(),t,Kt.pick(Ve,De))).Array,ce=t.Date,fe=t.Error,de=t.Function,pe=t.Math,he=t.Object,ve=t.RegExp,ge=t.String,me=t.TypeError,ye=$.prototype,be=de.prototype,we=he.prototype,_e=t["__core-js_shared__"],xe=be.toString,ke=we.hasOwnProperty,Oe=0,Ce=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=we.toString,Ee=xe.call(he),Te=Ve._,je=ve("^"+xe.call(ke).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=Ke?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=Ae?Ae.allocUnsafe:void 0,qe=Bt(he.getPrototypeOf,he),Ye=he.create,$e=we.propertyIsEnumerable,Ge=ye.splice,Ze=Re?Re.isConcatSpreadable:void 0,gt=Re?Re.iterator:void 0,Ot=Re?Re.toStringTag:void 0,Gt=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Zt=t.clearTimeout!==Ve.clearTimeout&&t.clearTimeout,Jt=ce&&ce.now!==Ve.Date.now&&ce.now,Qt=t.setTimeout!==Ve.setTimeout&&t.setTimeout,Xt=pe.ceil,en=pe.floor,tn=he.getOwnPropertySymbols,nn=Ae?Ae.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Bt(he.keys,he),sn=pe.max,un=pe.min,ln=ce.now,cn=t.parseInt,fn=pe.random,dn=ye.reverse,pn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),gn=ti(t,"Set"),mn=ti(t,"WeakMap"),yn=ti(he,"create"),bn=mn&&new mn,wn={},_n=Ti(pn),xn=Ti(hn),kn=Ti(vn),On=Ti(gn),Cn=Ti(mn),Sn=Re?Re.prototype:void 0,En=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function jn(e){if(Va(e)&&!Ra(e)&&!(e instanceof Pn)){if(e instanceof An)return e;if(ke.call(e,"__wrapped__"))return ji(e)}return new An(e)}var Mn=function(){function e(){}return function(t){if(!qa(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var s,c=1&t,w=2&t,L=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),void 0!==s)return s;if(!qa(e))return e;var A=Ra(e);if(A){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return bo(e,s)}else{var P=oi(e),R=P==f||P==d;if(za(e))return po(e,c);if(P==v||P==a||R&&!o){if(s=w||R?{}:ai(e),!c)return w?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,xs(t),e)}(s,e)):function(e,t){return wo(e,ni(e),t)}(e,$n(s,e))}else{if(!Fe[P])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case _:return ho(e);case u:case l:return new r(+e);case x:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case O:case C:case S:case E:case T:case"[object Uint8ClampedArray]":case j:case M:return vo(e,n);case p:return new r;case h:case y:return new r(e);case g:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return new r;case b:return o=e,En?he(En.call(o)):{}}var o}(e,P,c)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,s),Za(e)?e.forEach((function(r){s.add(Jn(r,t,n,r,e,i))})):Ya(e)&&e.forEach((function(r,o){s.set(o,Jn(r,t,n,o,e,i))}));var D=A?void 0:(L?w?Ko:$o:w?xs:_s)(e);return it(D||e,(function(r,o){D&&(r=e[o=r]),qn(s,o,Jn(r,t,n,o,e,i))})),s}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new me(r);return _i((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=ft(t,jt(n))),r?(i=ct,a=!1):t.length>=200&&(i=Lt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Dn.prototype.delete=function(e){var t=Xo(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Xo(this,e).get(e)},Dn.prototype.has=function(e){return Xo(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Xo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var tr=ko(lr),nr=ko(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,o):dt(o,s):r||(o[o.length]=s)}return o}var sr=Oo(),ur=Oo(!0);function lr(e,t){return e&&sr(e,t,_s)}function cr(e,t){return e&&ur(e,t,_s)}function fr(e,t){return ut(t,(function(t){return Wa(e[t])}))}function dr(e,t){for(var n=0,r=(t=uo(t,e)).length;null!=e&&nt}function gr(e,t){return null!=e&&ke.call(e,t)}function mr(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var r=n?ct:lt,o=e[0].length,i=e.length,a=i,s=$(i),u=1/0,l=[];a--;){var c=e[a];a&&t&&(c=ft(c,jt(t))),u=un(c.length,u),s[a]=!n&&(t||o>=120&&c.length>=120)?new Nn(a&&c):void 0}c=e[0];var f=-1,d=s[0];e:for(;++f=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ui(o)?Ge.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return xi(gi(e,t,$s),e+"")}function Br(e){return Bn(Ms(e))}function Wr(e,t){var n=Ms(e);return Ci(n,Zn(t,0,n.length))}function Ur(e,t,n,r){if(!qa(e))return e;for(var o=-1,i=(t=uo(t,e)).length,a=i-1,s=e;null!=s&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=$(o);++r>>1,a=e[i];null!==a&&!Qa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Ut(l);a=!1,o=Lt,u=new Nn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var fo=Zt||function(e){return Ve.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function go(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Qa(e),a=void 0!==t,s=null===t,u=t==t,l=Qa(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function jo(e){return Yo((function(t){var n=t.length,o=n,i=An.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new me(r);if(i&&!s&&"wrapper"==Zo(a))var s=new An([],!0)}for(o=s?o:n;++o1&&y.reverse(),c&&us))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,p=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(G);return t?t[1].split(Z):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ci(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gi(e,n)}));function na(e){var t=jn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Yo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ui(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new An(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=_o((function(e,t,n){ke.call(e,n)?++e[n]:Kn(e,n,1)}));var aa=To(Pi),sa=To(Ri);function ua(e,t){return(Ra(e)?it:tr)(e,Qo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Qo(t,3))}var ca=_o((function(e,t,n){ke.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=Da(e)?$(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),da=_o((function(e,t,n){Kn(e,n,t)}));function pa(e,t){return(Ra(e)?ft:Tr)(e,Qo(t,3))}var ha=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,ar(t,1),[])})),ga=Jt||function(){return Ve.Date.now()};function ma(e,t,n){return t=n?void 0:t,Wo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new me(r);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Wt(n,Jo(ba));r|=32}return Wo(e,r,t,n,o)})),wa=Fr((function(e,t,n){var r=3;if(n.length){var o=Wt(n,Jo(wa));r|=32}return Wo(t,r,e,n,o)}));function _a(e,t,n){var o,i,a,s,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new me(r);function h(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function v(e){return c=e,u=_i(m,t),f?h(e):s}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function m(){var e=ga();if(g(e))return y(e);u=_i(m,function(e){var n=t-(e-l);return d?un(n,a-(e-c)):n}(e))}function y(e){return u=void 0,p&&o?h(e):(o=i=void 0,s)}function b(){var e=ga(),n=g(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return v(l);if(d)return fo(u),u=_i(m,t),h(l)}return void 0===u&&(u=_i(m,t)),s}return t=as(t)||0,qa(n)&&(f=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==u&&fo(u),c=0,o=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var xa=Fr((function(e,t){return Xn(e,1,t)})),ka=Fr((function(e,t,n){return Xn(e,as(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Dn),n}function Ca(e){if("function"!=typeof e)throw new me(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Dn;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qo())):ft(ar(t,1),jt(Qo()))).length;return Fr((function(r){for(var o=-1,i=un(r.length,n);++o=t})),Pa=wr(function(){return arguments}())?wr:function(e){return Va(e)&&ke.call(e,"callee")&&!$e.call(e,"callee")},Ra=$.isArray,Ia=Je?jt(Je):function(e){return Va(e)&&hr(e)==_};function Da(e){return null!=e&&Ha(e.length)&&!Wa(e)}function Na(e){return Va(e)&&Da(e)}var za=nn||au,Fa=Qe?jt(Qe):function(e){return Va(e)&&hr(e)==l};function Ba(e){if(!Va(e))return!1;var t=hr(e);return t==c||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Wa(e){if(!qa(e))return!1;var t=hr(e);return t==f||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==os(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ya=Xe?jt(Xe):function(e){return Va(e)&&oi(e)==p};function $a(e){return"number"==typeof e||Va(e)&&hr(e)==h}function Ka(e){if(!Va(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ee}var Ga=et?jt(et):function(e){return Va(e)&&hr(e)==g};var Za=tt?jt(tt):function(e){return Va(e)&&oi(e)==m};function Ja(e){return"string"==typeof e||!Ra(e)&&Va(e)&&hr(e)==y}function Qa(e){return"symbol"==typeof e||Va(e)&&hr(e)==b}var Xa=nt?jt(nt):function(e){return Va(e)&&Ha(e.length)&&!!ze[hr(e)]};var es=Do(Er),ts=Do((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Da(e))return Ja(e)?Vt(e):bo(e);if(gt&&e[gt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[gt]());var t=oi(e);return(t==p?Ft:t==m?Ut:Ms)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Zn(os(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qa(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ue(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function ss(e){return wo(e,xs(e))}function us(e){return null==e?"":Qr(e)}var ls=xo((function(e,t){if(pi(t)||Da(t))wo(t,_s(t),e);else for(var n in t)ke.call(t,n)&&qn(e,n,t[n])})),cs=xo((function(e,t){wo(t,xs(t),e)})),fs=xo((function(e,t,n,r){wo(t,xs(t),e,r)})),ds=xo((function(e,t,n,r){wo(t,_s(t),e,r)})),ps=Yo(Gn);var hs=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),wo(e,Ko(e),n),r&&(n=Jn(n,7,qo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Ss=Yo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return ms(e,n)}))}(e,t)}));function Es(e,t){if(null==e)return{};var n=ft(Ko(e),(function(e){return[e]}));return t=Qo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Ts=Bo(_s),js=Bo(xs);function Ms(e){return null==e?[]:Mt(e,_s(e))}var Ls=So((function(e,t,n){return t=t.toLowerCase(),e+(n?As(t):t)}));function As(e){return Bs(us(e).toLowerCase())}function Ps(e){return(e=us(e))&&e.replace(se,It).replace(Le,"")}var Rs=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=Co("toLowerCase");var Ns=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=So((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Fs=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Co("toUpperCase");function Ws(e,t,n){return e=us(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Us=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hs=Yo((function(e,t){return it(t,(function(t){t=Ei(t),Kn(e,t,ba(e[t],e))})),e}));function qs(e){return function(){return e}}var Vs=jo(),Ys=jo(!0);function $s(e){return e}function Ks(e){return Or("function"==typeof e?e:Jn(e,1))}var Gs=Fr((function(e,t){return function(n){return br(n,e,t)}})),Zs=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Js(e,t,n){var r=_s(t),o=fr(t,r);null!=n||qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,_s(t)));var i=!(qa(n)&&"chain"in n&&!n.chain),a=Wa(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,dt([this.value()],arguments))})})),e}function Qs(){}var Xs=Po(ft),eu=Po(st),tu=Po(vt);function nu(e){return ci(e)?kt(Ei(e)):function(e){return function(t){return dr(t,e)}}(e)}var ru=Io(),ou=Io(!0);function iu(){return[]}function au(){return!1}var su=Ao((function(e,t){return e+t}),0),uu=zo("ceil"),lu=Ao((function(e,t){return e/t}),1),cu=zo("floor");var fu,du=Ao((function(e,t){return e*t}),1),pu=zo("round"),hu=Ao((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new me(r);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=ma,jn.assign=ls,jn.assignIn=cs,jn.assignInWith=fs,jn.assignWith=ds,jn.at=ps,jn.before=ya,jn.bind=ba,jn.bindAll=Hs,jn.bindKey=wa,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},jn.chain=na,jn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:sn(os(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=$(Xt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:os(r))<0&&(r+=o),r=n>r?0:is(r);n>>0)?(e=us(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Qr(t))&&zt(e)?co(Vt(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new me(r);return t=null==t?0:sn(os(t),0),Fr((function(n){var r=n[t],o=co(n,0,t);return r&&dt(o,r),rt(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:os(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?no(e,Qo(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?no(e,Qo(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new me(r);return qa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:o,maxWait:t,trailing:i})},jn.thru=ra,jn.toArray=ns,jn.toPairs=Ts,jn.toPairsIn=js,jn.toPath=function(e){return Ra(e)?ft(e,Ei):Qa(e)?[e]:bo(Si(us(e)))},jn.toPlainObject=ss,jn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Xa(e);if(t=Qo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:qa(e)&&Wa(i)?Mn(qe(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},jn.unary=function(e){return ma(e,1)},jn.union=Vi,jn.unionBy=Yi,jn.unionWith=$i,jn.uniq=function(e){return e&&e.length?Xr(e):[]},jn.uniqBy=function(e,t){return e&&e.length?Xr(e,Qo(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},jn.unset=function(e,t){return null==e||eo(e,t)},jn.unzip=Ki,jn.unzipWith=Gi,jn.update=function(e,t,n){return null==e?e:to(e,t,so(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,so(n),r)},jn.values=Ms,jn.valuesIn=function(e){return null==e?[]:Mt(e,xs(e))},jn.without=Zi,jn.words=Ws,jn.wrap=function(e,t){return Ea(so(t),e)},jn.xor=Ji,jn.xorBy=Qi,jn.xorWith=Xi,jn.zip=ea,jn.zipObject=function(e,t){return io(e||[],t||[],qn)},jn.zipObjectDeep=function(e,t){return io(e||[],t||[],Ur)},jn.zipWith=ta,jn.entries=Ts,jn.entriesIn=js,jn.extend=cs,jn.extendWith=fs,Js(jn,jn),jn.add=su,jn.attempt=Us,jn.camelCase=Ls,jn.capitalize=As,jn.ceil=uu,jn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},jn.clone=function(e){return Jn(e,4)},jn.cloneDeep=function(e){return Jn(e,5)},jn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},jn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},jn.conformsTo=function(e,t){return null==t||Qn(e,t,_s(t))},jn.deburr=Ps,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=lu,jn.endsWith=function(e,t,n){e=us(e),t=Qr(t);var r=e.length,o=n=void 0===n?r:Zn(os(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},jn.eq=Ma,jn.escape=function(e){return(e=us(e))&&N.test(e)?e.replace(I,Dt):e},jn.escapeRegExp=function(e){return(e=us(e))&&V.test(e)?e.replace(q,"\\$&"):e},jn.every=function(e,t,n){var r=Ra(e)?st:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Qo(t,3))},jn.find=aa,jn.findIndex=Pi,jn.findKey=function(e,t){return mt(e,Qo(t,3),lr)},jn.findLast=sa,jn.findLastIndex=Ri,jn.findLastKey=function(e,t){return mt(e,Qo(t,3),cr)},jn.floor=cu,jn.forEach=ua,jn.forEachRight=la,jn.forIn=function(e,t){return null==e?e:sr(e,Qo(t,3),xs)},jn.forInRight=function(e,t){return null==e?e:ur(e,Qo(t,3),xs)},jn.forOwn=function(e,t){return e&&lr(e,Qo(t,3))},jn.forOwnRight=function(e,t){return e&&cr(e,Qo(t,3))},jn.get=gs,jn.gt=La,jn.gte=Aa,jn.has=function(e,t){return null!=e&&ii(e,t,gr)},jn.hasIn=ms,jn.head=Di,jn.identity=$s,jn.includes=function(e,t,n,r){e=Da(e)?e:Ms(e),n=n&&!r?os(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:os(n);return o<0&&(o=sn(r+o,0)),bt(e,t,o)},jn.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=un(t,n)&&e=-9007199254740991&&e<=9007199254740991},jn.isSet=Za,jn.isString=Ja,jn.isSymbol=Qa,jn.isTypedArray=Xa,jn.isUndefined=function(e){return void 0===e},jn.isWeakMap=function(e){return Va(e)&&oi(e)==w},jn.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==hr(e)},jn.join=function(e,t){return null==e?"":on.call(e,t)},jn.kebabCase=Rs,jn.last=Bi,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=os(n))<0?sn(r+o,0):un(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yt(e,_t,o,!0)},jn.lowerCase=Is,jn.lowerFirst=Ds,jn.lt=es,jn.lte=ts,jn.max=function(e){return e&&e.length?or(e,$s,vr):void 0},jn.maxBy=function(e,t){return e&&e.length?or(e,Qo(t,2),vr):void 0},jn.mean=function(e){return xt(e,$s)},jn.meanBy=function(e,t){return xt(e,Qo(t,2))},jn.min=function(e){return e&&e.length?or(e,$s,Er):void 0},jn.minBy=function(e,t){return e&&e.length?or(e,Qo(t,2),Er):void 0},jn.stubArray=iu,jn.stubFalse=au,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=du,jn.nth=function(e,t){return e&&e.length?Ar(e,os(t)):void 0},jn.noConflict=function(){return Ve._===this&&(Ve._=Te),this},jn.noop=Qs,jn.now=ga,jn.pad=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Xt(o),n)},jn.padEnd=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return un(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Nr(e,t)},jn.reduce=function(e,t,n){var r=Ra(e)?pt:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,tr)},jn.reduceRight=function(e,t,n){var r=Ra(e)?ht:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,nr)},jn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:os(t),zr(us(e),t)},jn.replace=function(){var e=arguments,t=us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,o=(t=uo(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=un(e,4294967295);e-=4294967295;for(var o=Et(r,t=Qo(t));++n=i)return e;var s=n-qt(r);if(s<1)return r;var u=a?co(a,0,s).join(""):e.slice(0,s);if(void 0===o)return u+r;if(a&&(s+=u.length-s),Ga(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=ve(o.source,us(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Qr(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},jn.unescape=function(e){return(e=us(e))&&D.test(e)?e.replace(R,$t):e},jn.uniqueId=function(e){var t=++Oe;return us(e)+t},jn.upperCase=Fs,jn.upperFirst=Bs,jn.each=ua,jn.eachRight=la,jn.first=Di,Js(jn,(fu={},lr(jn,(function(e,t){ke.call(jn.prototype,t)||(fu[t]=e)})),fu),{chain:!1}),jn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),it(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:sn(os(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter($s)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Ca(Qo(e)))},Pn.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Pn,u=a[0],l=s||Ra(t),c=function(e){var t=o.apply(jn,dt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=s&&!d;if(!i&&l){t=h?t:new Pn(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[c],thisArg:void 0}),new An(v,f)}return p&&h?e.apply(this,a):(v=this.thru(c),p?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(Pn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";ke.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Mo(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=ji(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[qi],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(qi)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,gt&&(jn.prototype[gt]=function(){return this}),jn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ve._=Kt,define((function(){return Kt}))):$e?(($e.exports=Kt)._=Kt,Ye._=Kt):Ve._=Kt}).call(this)}).call(this,n(31),n(58)(e))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"j",(function(){return Y})),n.d(t,"h",(function(){return $})),n.d(t,"f",(function(){return V})),n.d(t,"b",(function(){return S.a})),n.d(t,"g",(function(){return M})),n.d(t,"i",(function(){return A})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return I})),n.d(t,"d",(function(){return R}));var r=function(){function e(e,t){for(var n=0;n0&&void 0===e)throw new Error('Cannot extract value at path "'+t+'" ("'+n+'" is not defined).');return e[n]}),e)}var L=function(e){function t(e){T(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.cvalue=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),E(t,[{key:"getValue",value:function(e){var t=e.resolve,n=this.cvalue;return t.isResolveValue(n)?t.value(n):Object.keys(n).reduce((function(e,r){return e[r]=t.value(n[r]),e}),{})}}]),t}(j),A=function(e){return new L(e)},P=function(){function e(e,t){for(var n=0;n1?r-1:0),i=1;i1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof j?e.getValue(t?Object.assign({},this.context,t):this.context):e},path:function(e){if(e instanceof R)return e.getPath(this.context);throw new Error("You are extracting a path from an argument that is not a Tag.")}},{wrap:!1}),N=n(57),z=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,t);var r=B(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(r.cachedTrees=[],r.cachedStaticTrees=[],r.executeBranchWrapper=n.executeBranchWrapper||function(e){e()},"object"!==(void 0===e?"undefined":F(e))||null===e||Array.isArray(e))throw new Error("You have to pass an object of context providers to FunctionTree");var o=Object.keys(e);if(o.indexOf("props")>=0||o.indexOf("path")>=0||o.indexOf("resolve")>=0||o.indexOf("execution")>=0||o.indexOf("debugger")>=0)throw new Error('You are trying to add a provider with protected key. "props", "path", "resolve", "execution" and "debugger" are protected');return r.contextProviders=Object.assign({},e,{resolve:D}),r.run=r.run.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"run",value:function(){var e=this,t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=[].slice.call(arguments);if(a.forEach((function(e){"string"==typeof e?t=e:Array.isArray(e)||e instanceof s?n=e:n||"function"!=typeof e?"function"==typeof e?o=e:r=e:n=e})),!n)throw new Error("function-tree - You did not pass in a function tree");var u=function(o,a){var s=e.cachedTrees.indexOf(n);-1===s?(i=w(t,n),e.cachedTrees.push(n),e.cachedStaticTrees.push(i)):i=e.cachedStaticTrees[s];var u=new q(t,i,e,(function(t,n,r,o){e.emit("error",t,n,r,o),a(t)}));e.emit("start",u,r),C(u,r,e.executeBranchWrapper,(function(t,n,r){e.emit("pathStart",n,u,t,r)}),(function(t){e.emit("pathEnd",u,t)}),(function(t,n){e.emit("parallelStart",u,t,n)}),(function(t,n){e.emit("parallelProgress",u,t,n)}),(function(t,n){e.emit("parallelEnd",u,t,n)}),(function(t){e.emit("end",u,t),o===a?o(null,t):o(t)}))};if(!o)return new Promise(u);u(o,o)}}]),t}(k.a);function Y(){for(var e=arguments.length,t=Array(e),n=0;n"']/g,D=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,V=RegExp(q.source),Y=/^\s+/,$=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,le=/['\n\r\u2028\u2029\\]/g,ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="[\\ud800-\\udfff]",pe="["+fe+"]",he="["+ce+"]",ve="\\d+",ge="[\\u2700-\\u27bf]",me="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+me+"|"+ye+")",Ce="(?:"+ke+"|"+ye+")",Se="(?:"+he+"|"+be+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[we,_e,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ge,_e,xe].join("|")+")"+Ee,je="(?:"+[we+he+"?",he,_e,xe,de].join("|")+")",Me=RegExp("['\u2019]","g"),Le=RegExp(he,"g"),Ae=RegExp(be+"(?="+be+")|"+je+Ee,"g"),Pe=RegExp([ke+"?"+me+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pe,ke,"$"].join("|")+")",Ce+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pe,ke+Oe,"$"].join("|")+")",ke+"?"+Oe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+ce+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[k]=ze[O]=ze[C]=ze[S]=ze[E]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[j]=ze[M]=!0,ze[a]=ze[s]=ze[_]=ze[u]=ze[x]=ze[l]=ze[c]=ze[f]=ze[p]=ze[h]=ze[v]=ze[g]=ze[m]=ze[y]=ze[w]=!1;var Fe={};Fe[a]=Fe[s]=Fe[_]=Fe[x]=Fe[u]=Fe[l]=Fe[k]=Fe[O]=Fe[C]=Fe[S]=Fe[E]=Fe[p]=Fe[h]=Fe[v]=Fe[g]=Fe[m]=Fe[y]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[M]=!0,Fe[c]=Fe[f]=Fe[w]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ve=He||qe||Function("return this")(),Ye=t&&!t.nodeType&&t,$e=Ye&&"object"==typeof n&&n&&!n.nodeType&&n,Ke=$e&&$e.exports===Ye,Ge=Ke&&He.process,Ze=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Ge&&Ge.binding&&Ge.binding("util")}catch(e){}}(),Je=Ze&&Ze.isArrayBuffer,Qe=Ze&&Ze.isDate,Xe=Ze&&Ze.isMap,et=Ze&&Ze.isRegExp,tt=Ze&&Ze.isSet,nt=Ze&&Ze.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Pt(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=Ot({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Kt=function e(t){var n,$=(t=null==t?Ve:Kt.defaults(Ve.Object(),t,Kt.pick(Ve,De))).Array,ce=t.Date,fe=t.Error,de=t.Function,pe=t.Math,he=t.Object,ve=t.RegExp,ge=t.String,me=t.TypeError,ye=$.prototype,be=de.prototype,we=he.prototype,_e=t["__core-js_shared__"],xe=be.toString,ke=we.hasOwnProperty,Oe=0,Ce=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=we.toString,Ee=xe.call(he),Te=Ve._,je=ve("^"+xe.call(ke).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=Ke?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=Ae?Ae.allocUnsafe:void 0,qe=Bt(he.getPrototypeOf,he),Ye=he.create,$e=we.propertyIsEnumerable,Ge=ye.splice,Ze=Re?Re.isConcatSpreadable:void 0,gt=Re?Re.iterator:void 0,Ot=Re?Re.toStringTag:void 0,Gt=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Zt=t.clearTimeout!==Ve.clearTimeout&&t.clearTimeout,Jt=ce&&ce.now!==Ve.Date.now&&ce.now,Qt=t.setTimeout!==Ve.setTimeout&&t.setTimeout,Xt=pe.ceil,en=pe.floor,tn=he.getOwnPropertySymbols,nn=Ae?Ae.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Bt(he.keys,he),sn=pe.max,un=pe.min,ln=ce.now,cn=t.parseInt,fn=pe.random,dn=ye.reverse,pn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),gn=ti(t,"Set"),mn=ti(t,"WeakMap"),yn=ti(he,"create"),bn=mn&&new mn,wn={},_n=Ti(pn),xn=Ti(hn),kn=Ti(vn),On=Ti(gn),Cn=Ti(mn),Sn=Re?Re.prototype:void 0,En=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function jn(e){if(Va(e)&&!Ra(e)&&!(e instanceof Pn)){if(e instanceof An)return e;if(ke.call(e,"__wrapped__"))return ji(e)}return new An(e)}var Mn=function(){function e(){}return function(t){if(!qa(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ln(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var s,c=1&t,w=2&t,L=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),void 0!==s)return s;if(!qa(e))return e;var A=Ra(e);if(A){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return bo(e,s)}else{var P=oi(e),R=P==f||P==d;if(za(e))return po(e,c);if(P==v||P==a||R&&!o){if(s=w||R?{}:ai(e),!c)return w?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,xs(t),e)}(s,e)):function(e,t){return wo(e,ni(e),t)}(e,$n(s,e))}else{if(!Fe[P])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case _:return ho(e);case u:case l:return new r(+e);case x:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case O:case C:case S:case E:case T:case"[object Uint8ClampedArray]":case j:case M:return vo(e,n);case p:return new r;case h:case y:return new r(e);case g:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return new r;case b:return o=e,En?he(En.call(o)):{}}var o}(e,P,c)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,s),Za(e)?e.forEach((function(r){s.add(Jn(r,t,n,r,e,i))})):Ya(e)&&e.forEach((function(r,o){s.set(o,Jn(r,t,n,o,e,i))}));var D=A?void 0:(L?w?Ko:$o:w?xs:_s)(e);return it(D||e,(function(r,o){D&&(r=e[o=r]),qn(s,o,Jn(r,t,n,o,e,i))})),s}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new me(r);return _i((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=ft(t,jt(n))),r?(i=ct,a=!1):t.length>=200&&(i=Lt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Dn.prototype.delete=function(e){var t=Xo(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Xo(this,e).get(e)},Dn.prototype.has=function(e){return Xo(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Xo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var tr=ko(lr),nr=ko(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,o):dt(o,s):r||(o[o.length]=s)}return o}var sr=Oo(),ur=Oo(!0);function lr(e,t){return e&&sr(e,t,_s)}function cr(e,t){return e&&ur(e,t,_s)}function fr(e,t){return ut(t,(function(t){return Wa(e[t])}))}function dr(e,t){for(var n=0,r=(t=uo(t,e)).length;null!=e&&nt}function gr(e,t){return null!=e&&ke.call(e,t)}function mr(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var r=n?ct:lt,o=e[0].length,i=e.length,a=i,s=$(i),u=1/0,l=[];a--;){var c=e[a];a&&t&&(c=ft(c,jt(t))),u=un(c.length,u),s[a]=!n&&(t||o>=120&&c.length>=120)?new Nn(a&&c):void 0}c=e[0];var f=-1,d=s[0];e:for(;++f=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Dr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ui(o)?Ge.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return xi(gi(e,t,$s),e+"")}function Br(e){return Bn(Ms(e))}function Wr(e,t){var n=Ms(e);return Ci(n,Zn(t,0,n.length))}function Ur(e,t,n,r){if(!qa(e))return e;for(var o=-1,i=(t=uo(t,e)).length,a=i-1,s=e;null!=s&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=$(o);++r>>1,a=e[i];null!==a&&!Qa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Ut(l);a=!1,o=Lt,u=new Nn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var fo=Zt||function(e){return Ve.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function go(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Qa(e),a=void 0!==t,s=null===t,u=t==t,l=Qa(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function jo(e){return Yo((function(t){var n=t.length,o=n,i=An.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new me(r);if(i&&!s&&"wrapper"==Zo(a))var s=new An([],!0)}for(o=s?o:n;++o1&&y.reverse(),c&&us))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,p=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(G);return t?t[1].split(Z):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ci(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gi(e,n)}));function na(e){var t=jn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Yo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ui(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new An(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=_o((function(e,t,n){ke.call(e,n)?++e[n]:Kn(e,n,1)}));var aa=To(Pi),sa=To(Ri);function ua(e,t){return(Ra(e)?it:tr)(e,Qo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Qo(t,3))}var ca=_o((function(e,t,n){ke.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=Da(e)?$(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),da=_o((function(e,t,n){Kn(e,n,t)}));function pa(e,t){return(Ra(e)?ft:Tr)(e,Qo(t,3))}var ha=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,ar(t,1),[])})),ga=Jt||function(){return Ve.Date.now()};function ma(e,t,n){return t=n?void 0:t,Wo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new me(r);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Wt(n,Jo(ba));r|=32}return Wo(e,r,t,n,o)})),wa=Fr((function(e,t,n){var r=3;if(n.length){var o=Wt(n,Jo(wa));r|=32}return Wo(t,r,e,n,o)}));function _a(e,t,n){var o,i,a,s,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new me(r);function h(t){var n=o,r=i;return o=i=void 0,c=t,s=e.apply(r,n)}function v(e){return c=e,u=_i(m,t),f?h(e):s}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function m(){var e=ga();if(g(e))return y(e);u=_i(m,function(e){var n=t-(e-l);return d?un(n,a-(e-c)):n}(e))}function y(e){return u=void 0,p&&o?h(e):(o=i=void 0,s)}function b(){var e=ga(),n=g(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return v(l);if(d)return fo(u),u=_i(m,t),h(l)}return void 0===u&&(u=_i(m,t)),s}return t=as(t)||0,qa(n)&&(f=!!n.leading,a=(d="maxWait"in n)?sn(as(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==u&&fo(u),c=0,o=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var xa=Fr((function(e,t){return Xn(e,1,t)})),ka=Fr((function(e,t,n){return Xn(e,as(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Dn),n}function Ca(e){if("function"!=typeof e)throw new me(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Dn;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qo())):ft(ar(t,1),jt(Qo()))).length;return Fr((function(r){for(var o=-1,i=un(r.length,n);++o=t})),Pa=wr(function(){return arguments}())?wr:function(e){return Va(e)&&ke.call(e,"callee")&&!$e.call(e,"callee")},Ra=$.isArray,Ia=Je?jt(Je):function(e){return Va(e)&&hr(e)==_};function Da(e){return null!=e&&Ha(e.length)&&!Wa(e)}function Na(e){return Va(e)&&Da(e)}var za=nn||au,Fa=Qe?jt(Qe):function(e){return Va(e)&&hr(e)==l};function Ba(e){if(!Va(e))return!1;var t=hr(e);return t==c||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Wa(e){if(!qa(e))return!1;var t=hr(e);return t==f||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==os(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ya=Xe?jt(Xe):function(e){return Va(e)&&oi(e)==p};function $a(e){return"number"==typeof e||Va(e)&&hr(e)==h}function Ka(e){if(!Va(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ee}var Ga=et?jt(et):function(e){return Va(e)&&hr(e)==g};var Za=tt?jt(tt):function(e){return Va(e)&&oi(e)==m};function Ja(e){return"string"==typeof e||!Ra(e)&&Va(e)&&hr(e)==y}function Qa(e){return"symbol"==typeof e||Va(e)&&hr(e)==b}var Xa=nt?jt(nt):function(e){return Va(e)&&Ha(e.length)&&!!ze[hr(e)]};var es=Do(Er),ts=Do((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Da(e))return Ja(e)?Vt(e):bo(e);if(gt&&e[gt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[gt]());var t=oi(e);return(t==p?Ft:t==m?Ut:Ms)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Zn(os(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qa(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ue(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function ss(e){return wo(e,xs(e))}function us(e){return null==e?"":Qr(e)}var ls=xo((function(e,t){if(pi(t)||Da(t))wo(t,_s(t),e);else for(var n in t)ke.call(t,n)&&qn(e,n,t[n])})),cs=xo((function(e,t){wo(t,xs(t),e)})),fs=xo((function(e,t,n,r){wo(t,xs(t),e,r)})),ds=xo((function(e,t,n,r){wo(t,_s(t),e,r)})),ps=Yo(Gn);var hs=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),wo(e,Ko(e),n),r&&(n=Jn(n,7,qo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Ss=Yo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return ms(e,n)}))}(e,t)}));function Es(e,t){if(null==e)return{};var n=ft(Ko(e),(function(e){return[e]}));return t=Qo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Ts=Bo(_s),js=Bo(xs);function Ms(e){return null==e?[]:Mt(e,_s(e))}var Ls=So((function(e,t,n){return t=t.toLowerCase(),e+(n?As(t):t)}));function As(e){return Bs(us(e).toLowerCase())}function Ps(e){return(e=us(e))&&e.replace(se,It).replace(Le,"")}var Rs=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ds=Co("toLowerCase");var Ns=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=So((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Fs=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Co("toUpperCase");function Ws(e,t,n){return e=us(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Us=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hs=Yo((function(e,t){return it(t,(function(t){t=Ei(t),Kn(e,t,ba(e[t],e))})),e}));function qs(e){return function(){return e}}var Vs=jo(),Ys=jo(!0);function $s(e){return e}function Ks(e){return Or("function"==typeof e?e:Jn(e,1))}var Gs=Fr((function(e,t){return function(n){return br(n,e,t)}})),Zs=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Js(e,t,n){var r=_s(t),o=fr(t,r);null!=n||qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,_s(t)));var i=!(qa(n)&&"chain"in n&&!n.chain),a=Wa(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,dt([this.value()],arguments))})})),e}function Qs(){}var Xs=Po(ft),eu=Po(st),tu=Po(vt);function nu(e){return ci(e)?kt(Ei(e)):function(e){return function(t){return dr(t,e)}}(e)}var ru=Io(),ou=Io(!0);function iu(){return[]}function au(){return!1}var su=Ao((function(e,t){return e+t}),0),uu=zo("ceil"),lu=Ao((function(e,t){return e/t}),1),cu=zo("floor");var fu,du=Ao((function(e,t){return e*t}),1),pu=zo("round"),hu=Ao((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new me(r);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=ma,jn.assign=ls,jn.assignIn=cs,jn.assignInWith=fs,jn.assignWith=ds,jn.at=ps,jn.before=ya,jn.bind=ba,jn.bindAll=Hs,jn.bindKey=wa,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},jn.chain=na,jn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:sn(os(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=$(Xt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:os(r))<0&&(r+=o),r=n>r?0:is(r);n>>0)?(e=us(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Qr(t))&&zt(e)?co(Vt(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new me(r);return t=null==t?0:sn(os(t),0),Fr((function(n){var r=n[t],o=co(n,0,t);return r&&dt(o,r),rt(e,this,o)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:os(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?no(e,Qo(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?no(e,Qo(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new me(r);return qa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:o,maxWait:t,trailing:i})},jn.thru=ra,jn.toArray=ns,jn.toPairs=Ts,jn.toPairsIn=js,jn.toPath=function(e){return Ra(e)?ft(e,Ei):Qa(e)?[e]:bo(Si(us(e)))},jn.toPlainObject=ss,jn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Xa(e);if(t=Qo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:qa(e)&&Wa(i)?Mn(qe(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},jn.unary=function(e){return ma(e,1)},jn.union=Vi,jn.unionBy=Yi,jn.unionWith=$i,jn.uniq=function(e){return e&&e.length?Xr(e):[]},jn.uniqBy=function(e,t){return e&&e.length?Xr(e,Qo(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},jn.unset=function(e,t){return null==e||eo(e,t)},jn.unzip=Ki,jn.unzipWith=Gi,jn.update=function(e,t,n){return null==e?e:to(e,t,so(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,so(n),r)},jn.values=Ms,jn.valuesIn=function(e){return null==e?[]:Mt(e,xs(e))},jn.without=Zi,jn.words=Ws,jn.wrap=function(e,t){return Ea(so(t),e)},jn.xor=Ji,jn.xorBy=Qi,jn.xorWith=Xi,jn.zip=ea,jn.zipObject=function(e,t){return io(e||[],t||[],qn)},jn.zipObjectDeep=function(e,t){return io(e||[],t||[],Ur)},jn.zipWith=ta,jn.entries=Ts,jn.entriesIn=js,jn.extend=cs,jn.extendWith=fs,Js(jn,jn),jn.add=su,jn.attempt=Us,jn.camelCase=Ls,jn.capitalize=As,jn.ceil=uu,jn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},jn.clone=function(e){return Jn(e,4)},jn.cloneDeep=function(e){return Jn(e,5)},jn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},jn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},jn.conformsTo=function(e,t){return null==t||Qn(e,t,_s(t))},jn.deburr=Ps,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=lu,jn.endsWith=function(e,t,n){e=us(e),t=Qr(t);var r=e.length,o=n=void 0===n?r:Zn(os(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},jn.eq=Ma,jn.escape=function(e){return(e=us(e))&&N.test(e)?e.replace(I,Dt):e},jn.escapeRegExp=function(e){return(e=us(e))&&V.test(e)?e.replace(q,"\\$&"):e},jn.every=function(e,t,n){var r=Ra(e)?st:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Qo(t,3))},jn.find=aa,jn.findIndex=Pi,jn.findKey=function(e,t){return mt(e,Qo(t,3),lr)},jn.findLast=sa,jn.findLastIndex=Ri,jn.findLastKey=function(e,t){return mt(e,Qo(t,3),cr)},jn.floor=cu,jn.forEach=ua,jn.forEachRight=la,jn.forIn=function(e,t){return null==e?e:sr(e,Qo(t,3),xs)},jn.forInRight=function(e,t){return null==e?e:ur(e,Qo(t,3),xs)},jn.forOwn=function(e,t){return e&&lr(e,Qo(t,3))},jn.forOwnRight=function(e,t){return e&&cr(e,Qo(t,3))},jn.get=gs,jn.gt=La,jn.gte=Aa,jn.has=function(e,t){return null!=e&&ii(e,t,gr)},jn.hasIn=ms,jn.head=Di,jn.identity=$s,jn.includes=function(e,t,n,r){e=Da(e)?e:Ms(e),n=n&&!r?os(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:os(n);return o<0&&(o=sn(r+o,0)),bt(e,t,o)},jn.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=un(t,n)&&e=-9007199254740991&&e<=9007199254740991},jn.isSet=Za,jn.isString=Ja,jn.isSymbol=Qa,jn.isTypedArray=Xa,jn.isUndefined=function(e){return void 0===e},jn.isWeakMap=function(e){return Va(e)&&oi(e)==w},jn.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==hr(e)},jn.join=function(e,t){return null==e?"":on.call(e,t)},jn.kebabCase=Rs,jn.last=Bi,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=os(n))<0?sn(r+o,0):un(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yt(e,_t,o,!0)},jn.lowerCase=Is,jn.lowerFirst=Ds,jn.lt=es,jn.lte=ts,jn.max=function(e){return e&&e.length?or(e,$s,vr):void 0},jn.maxBy=function(e,t){return e&&e.length?or(e,Qo(t,2),vr):void 0},jn.mean=function(e){return xt(e,$s)},jn.meanBy=function(e,t){return xt(e,Qo(t,2))},jn.min=function(e){return e&&e.length?or(e,$s,Er):void 0},jn.minBy=function(e,t){return e&&e.length?or(e,Qo(t,2),Er):void 0},jn.stubArray=iu,jn.stubFalse=au,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=du,jn.nth=function(e,t){return e&&e.length?Ar(e,os(t)):void 0},jn.noConflict=function(){return Ve._===this&&(Ve._=Te),this},jn.noop=Qs,jn.now=ga,jn.pad=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Xt(o),n)},jn.padEnd=function(e,t,n){e=us(e);var r=(t=os(t))?qt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return un(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Nr(e,t)},jn.reduce=function(e,t,n){var r=Ra(e)?pt:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,tr)},jn.reduceRight=function(e,t,n){var r=Ra(e)?ht:Ct,o=arguments.length<3;return r(e,Qo(t,4),n,o,nr)},jn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:os(t),zr(us(e),t)},jn.replace=function(){var e=arguments,t=us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,o=(t=uo(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=un(e,4294967295);e-=4294967295;for(var o=Et(r,t=Qo(t));++n=i)return e;var s=n-qt(r);if(s<1)return r;var u=a?co(a,0,s).join(""):e.slice(0,s);if(void 0===o)return u+r;if(a&&(s+=u.length-s),Ga(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=ve(o.source,us(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Qr(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},jn.unescape=function(e){return(e=us(e))&&D.test(e)?e.replace(R,$t):e},jn.uniqueId=function(e){var t=++Oe;return us(e)+t},jn.upperCase=Fs,jn.upperFirst=Bs,jn.each=ua,jn.eachRight=la,jn.first=Di,Js(jn,(fu={},lr(jn,(function(e,t){ke.call(jn.prototype,t)||(fu[t]=e)})),fu),{chain:!1}),jn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),it(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:sn(os(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter($s)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Ca(Qo(e)))},Pn.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=jn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Pn,u=a[0],l=s||Ra(t),c=function(e){var t=o.apply(jn,dt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=s&&!d;if(!i&&l){t=h?t:new Pn(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[c],thisArg:void 0}),new An(v,f)}return p&&h?e.apply(this,a):(v=this.thru(c),p?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(Pn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";ke.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Mo(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Ln;){var r=ji(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[qi],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(qi)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,gt&&(jn.prototype[gt]=function(){return this}),jn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ve._=Kt,define((function(){return Kt}))):$e?(($e.exports=Kt)._=Kt,Ye._=Kt):Ve._=Kt}).call(this)}).call(this,n(31),n(58)(e))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t2?i-2:0),s=2;s0){var u=o()(window,"wp.i18n.sprintf");return u?u.apply(void 0,[r].concat(a)):r.replace("%s",a[0])}return r};t.a=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2),y=/Android/.test(t),b=m||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),w=m||/Mac/.test(n),_=/\bCrOS\b/.test(t),x=/win/i.test(n),k=p&&t.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,l=!0);var O=w&&(c||p&&(null==k||k<12.11)),C=r||s&&u>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,T=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function M(e,t){return j(e).appendChild(t)}function L(t,n,r,o){var i=e.createElement(t);if(r&&(i.className=r),o&&(i.style.cssText=o),"string"==typeof n)i.appendChild(e.createTextNode(n));else if(n)for(var a=0;a=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}m?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(N=function(e){try{e.select()}catch(e){}});var W=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function U(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var K=[""];function G(e){for(;K.length<=e;)K.push(Z(K)+" ");return K[e]}function Z(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&oe.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var ue=null;function le(e,t,n){var r;ue=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ue=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ue=o)}return null!=r?r:ue}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,o=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var l,c=a.length,f=[],d=0;d-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ge(e,t){var n=he(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function _e(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){_e(e),xe(e)}function Ce(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),w&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Te,je=function(){if(s&&u<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function Me(t){if(null==Ee){var n=L("span","\u200b");M(t,L("span",[n,e.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Ee=n.offsetWidth<=1&&n.offsetHeight>2&&!(s&&u<8))}var r=Ee?L("span","\u200b"):L("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Le(t){if(null!=Te)return Te;var n=M(t,e.createTextNode("A\u062eA")),r=E(n,0,1).getBoundingClientRect(),o=E(n,1,2).getBoundingClientRect();return j(t),!(!r||r.left==r.right)&&(Te=o.right-r.right<3)}var Ae,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Re=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ae=L("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),De=null,Ne={},ze={};function Fe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function Be(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=Be(t);var n=Ne[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var o=Ue[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function He(e,t){F(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var $e=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ke(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?nt(n,Ke(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?nt(e.line,t):n<0?nt(e.line,0):e}(t,Ke(e,t.line).text.length)}function ct(e,t){for(var n=[],r=0;r=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.post},$e.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$e.prototype.backUp=function(e){this.pos-=e},$e.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ft=function(e,t){this.state=e,this.lookAhead=t},dt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var o=[e.state.modeGen],i={};xt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],u=1,l=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=u;le&&o.splice(u,1,e,o[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,r.state),i=pt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new dt(r,!0,t);var i=function(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=i.first)return i.first;var u=Ke(i,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof ft?l.lookAhead:0)<=i.modeFrontier))return s;var c=B(u.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}(e,t,n),a=i>r.first&&Ke(r,i-1).stateAfter,s=a?dt.fromSaved(r,a,i):new dt(r,Ye(r.mode),i);return r.iter(i,t,(function(n){gt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}dt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},dt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},dt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dt.fromSaved=function(e,t,n){return t instanceof ft?new dt(e,qe(e.mode,t.state),n,t.lookAhead):new dt(e,qe(e.mode,t),n)},dt.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function wt(e,t,n,r){var o,i,a=e.doc,s=a.mode,u=Ke(a,(t=lt(a,t)).line),l=vt(e,t.line,n),c=new $e(u.text,e.options.tabSize,l);for(r&&(i=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&>(e,t,r,f.pos),f.pos=t.length,u=null):u=_t(yt(n,f,r.state,d),i),d){var p=d[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!s||c!=u){for(;l=t:i.to>t);(r||(r=[])).push(new Ct(a,i.from,s?null:i.to))}}return r}(n,o,a),u=function(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var b=0;bt)&&(!n||Rt(n,i.marker)<0)&&(n=i.marker)}return n}function Ft(e,t,n,r,o){var i=Ke(e,t),a=Ot&&i.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?rt(l.to,n)>=0:rt(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?rt(l.from,r)<=0:rt(l.from,r)<0)))return!0}}}function Bt(e){for(var t;t=Dt(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Ke(e,t),r=Bt(n);return n==r?t:Qe(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Ke(e,t);if(!Ht(e,r))return t;for(;n=Nt(r);)r=n.find(1,!0).line;return Qe(r)+1}function Ht(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Kt=function(e,t,n){this.text=e,Lt(this,t),this.height=n?n(this):1};function Gt(e){e.parent=null,Mt(e)}Kt.prototype.lineNo=function(){return Qe(this)},we(Kt);var Zt={},Jt={};function Qt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=tn,Le(e.display.measure)&&(a=fe(i,e.doc.direction))&&(r.addToken=nn(r.addToken,a)),r.map=[],on(i,r,ht(e,i,t!=e.display.externalMeasured&&Qe(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=D(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=D(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Me(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function en(e){var t=L("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function tn(t,n,r,o,i,a,l){if(n){var c,f=t.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ol&&f.from<=l);d++);if(f.to>=c)return e(n,r,o,i,a,s,u);e(n,r.slice(0,f.to-l),o,i,null,s,u),i=null,r=r.slice(f.to-l),l=f.to}}}function rn(t,n,r,o){var i=!o&&r.widgetNode;i&&t.map.push(t.pos,t.pos+n,i),!o&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(e.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=n,t.trailingSpace=!1}function on(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,u,l,c,f,d,p=o.length,h=0,v=1,g="",m=0;;){if(m==h){u=l=c=s="",d=null,f=null,m=1/0;for(var y=[],b=void 0,w=0;wh||x.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&m>_.to&&(m=_.to,l=""),x.className&&(u+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==h&&(c+=" "+x.startStyle),x.endStyle&&_.to==m&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var k in x.attributes)(d||(d={}))[k]=x.attributes[k];x.collapsed&&(!f||Rt(f.marker,x)<0)&&(f=_)}else _.from>h&&m>_.from&&(m=_.from)}if(b)for(var O=0;O=p)break;for(var S=Math.min(p,m);;){if(g){var E=h+g.length;if(!f){var T=E>S?g.slice(0,S-h):g;t.addToken(t,T,a?a+u:u,c,h+T.length==m?l:"",s,d)}if(E>=S){g=g.slice(S-h),h=S;break}h=E,c=""}g=o.slice(i,i=n[v++]),a=Qt(n[v++],t.cm.options)}}else for(var j=1;jn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function An(e,t,n,r){return In(e,Rn(e,t),n,r)}function Pn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&i.push((u.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(i=function(e,t,n,r){var o,i=zn(t.map,n,r),a=i.node,l=i.start,c=i.end,f=i.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){for(;l&&ie(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,o))}else{var p;l>0&&(f=r="right"),o=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(s&&u<9&&!l&&(!o||!o.left&&!o.right)){var h=a.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+ar(e.display),top:h.top,bottom:h.bottom}:Nn}for(var v=o.top-t.rect.top,g=o.bottom-t.rect.top,m=(v+g)/2,y=t.view.measure.heights,b=0;bt)&&(o=(i=u-s)-1,t>=u&&(a="right")),null!=o){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&o==u-s)for(;l=0&&(n=e[o]).left==n.right;o--);return n}function Bn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(u=r.text.length,l="before"):u<=0&&(u=0,l="after"),!s)return a("before"==l?u-1:u,"before"==l);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=le(s,u,l),d=ue,p=c(u,f,"before"==l);return null!=d&&(p.other=c(u,d,"before"!=l)),p}function Zn(e,t){var n=0;t=lt(e.doc,t),e.options.lineWrapping||(n=ar(e.display)*t.ch);var r=Ke(e.doc,t.line),o=Vt(r)+Cn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Jn(e,t,n,r,o){var i=nt(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function Qn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var o=Xe(r,n),i=r.first+r.size-1;if(o>i)return Jn(r.first+r.size-1,Ke(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Ke(r,o);;){var s=nr(e,a,o,t,n),u=zt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==o)return l;a=Ke(r,o=l.line)}}function Xn(e,t,n,r){r-=Vn(t);var o=t.text.length,i=se((function(t){return In(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=se((function(t){return In(e,n,t).top>r}),i,o)}}function er(e,t,n,r){return n||(n=Rn(e,t)),Xn(e,t,n,Yn(e,t,In(e,n,r),"line").top)}function tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function nr(e,t,n,r,o){o-=Vt(t);var i=Rn(e,t),a=Vn(t),s=0,u=t.text.length,l=!0,c=fe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?or:rr)(e,t,n,i,c,r,o);s=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var d,p,h=null,v=null,g=se((function(t){var n=In(e,i,t);return n.top+=a,n.bottom+=a,!!tr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,v=n),!0)}),s,u),m=!1;if(v){var y=r-v.left=w.bottom?1:0}return Jn(n,g=ae(t.text,g,1),p,m,r-d)}function rr(e,t,n,r,o,i,a){var s=se((function(s){var u=o[s],l=1!=u.level;return tr(Gn(e,nt(n,l?u.to:u.from,l?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),u=o[s];if(s>0){var l=1!=u.level,c=Gn(e,nt(n,l?u.from:u.to,l?"after":"before"),"line",t,r);tr(c,i,a,!0)&&c.top>a&&(u=o[s-1])}return u}function or(e,t,n,r,o,i,a){var s=Xn(e,t,r,a),u=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,d=0;d=l||p.to<=u)){var h=In(e,r,1!=p.level?Math.min(l,p.to)-1:Math.max(u,p.from)).right,v=hv)&&(c=p,f=v)}}return c||(c=o[o.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function ir(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Dn){Dn=L("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Dn.appendChild(e.createTextNode("x")),Dn.appendChild(L("br"));Dn.appendChild(e.createTextNode("x"))}M(t.measure,Dn);var r=Dn.offsetHeight/50;return r>3&&(t.cachedTextHeight=r),j(t.measure),r||1}function ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t],"CodeMirror-line-like");M(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function sr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:ur(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ur(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lr(e){var t=ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ar(e.display)-3);return function(o){if(Ht(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(u=Ke(e.doc,l.line).text).length==l.ch){var c=B(u,u.length,e.options.tabSize)-u.length;l=nt(l.line,Math.max(0,Math.round((i-En(e.display).left)/ar(e.display))-c))}return l}function dr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Ot&&Wt(e.doc,t)o.viewFrom?vr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)vr(e);else if(t<=o.viewFrom){var i=gr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):vr(e)}else if(n>=o.viewTo){var a=gr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):vr(e)}else{var s=gr(e,t,t,-1),u=gr(e,n,n+r,1);s&&u?(o.view=o.view.slice(0,s.index).concat(sn(e,s.lineN,u.lineN)).concat(o.view.slice(u.index)),o.viewTo+=r):vr(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[dr(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==U(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function gr(e,t,n,r){var o,i=dr(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;Wt(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r=t.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(L("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function _r(e,t){return e.top-t.top||e.left-t.left}function xr(t,n,r){var o=t.display,i=t.doc,a=e.createDocumentFragment(),s=En(t.display),u=s.left,l=Math.max(o.sizerWidth,jn(t)-o.sizer.offsetLeft)-s.right,c="ltr"==i.direction;function f(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(e,n,r){var o,a,s=Ke(i,e),d=s.text.length;function p(n,r){return Kn(t,nt(e,n),"div",s,r)}function h(e,n,r){var o=er(t,s,null,e),i="ltr"==n==("after"==r)?"left":"right";return p("after"==r?o.begin:o.end-(/\s/.test(s.text.charAt(o.end-1))?2:1),i)[i]}var v=fe(s,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}(v,n||0,null==r?d:r,(function(e,t,i,s){var g="ltr"==i,m=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==d,_=0==s,x=!v||s==v.length-1;if(y.top-m.top<=3){var k=(c?w:b)&&x,O=(c?b:w)&&_?u:(g?m:y).left,C=k?l:(g?y:m).right;f(O,m.top,C-O,m.bottom)}else{var S,E,T,j;g?(S=c&&b&&_?u:m.left,E=c?l:h(e,i,"before"),T=c?u:h(t,i,"after"),j=c&&w&&x?l:y.right):(S=c?h(e,i,"before"):u,E=!c&&b&&_?l:m.right,T=!c&&w&&x?u:y.left,j=c?h(t,i,"after"):l),f(S,m.top,E-S,m.bottom),m.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Er(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Or(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Sr(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Er(e))}),100)}function Sr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),kr(e))}function Er(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Tr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,i=0,a=0;a.005||v<-.005)&&(oe.display.sizerWidth){var m=Math.ceil(d/ar(e.display));m>e.display.maxLineLength&&(e.display.maxLineLength=m,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function jr(e){if(e.widgets)for(var t=0;t=a&&(i=Xe(t,Vt(Ke(t,u))-e.wrapper.clientHeight),a=u)}return{from:i,to:Math.max(a,i+1)}}function Lr(e,t){var n=e.display,r=ir(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Mn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Sn(n),u=t.tops-r;if(t.topo+i){var c=Math.min(t.top,(l?s:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=jn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Ar(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Pr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Rr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Dr(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function Dr(e,t,n,r){var o=Lr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Rr(e,o.scrollLeft,o.scrollTop)}function Nr(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||co(e,{top:t}),zr(e,t,!0),r&&co(e),io(e,100))}function zr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,ho(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Br(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Wr=function(e,t,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wr.prototype.zeroWidthHack=function(){var e=w&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new W,this.disableVert=new W},Wr.prototype.enableZeroWidthBar=function(t,n,r){t.style.pointerEvents="auto",n.set(1e3,(function o(){var i=t.getBoundingClientRect();("vert"==r?e.elementFromPoint(i.right-1,(i.top+i.bottom)/2):e.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":n.set(1e3,o)}))},Wr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Hr(e,t){t||(t=Br(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Tr(e),qr(e,Br(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Vr={native:Wr,null:Ur};function Yr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Fr(e,t):Nr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var $r=0;function Kr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$r,markArrays:null},t=e.curOp,un?un.ops.push(t):t.ownsGroup=un={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new so(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&uo(e.cm,e.update)}function Qr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Tr(t),e.barMeasure=Br(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Tn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(r.innerHeight||e.documentElement.clientHeight)&&(a=!1),null!=a&&!g){var s=L("div","\u200b",null,"position: absolute;\n top: "+(n.top-o.viewOffset-Cn(t.display))+"px;\n height: "+(n.bottom-n.top+Tn(t)+o.barHeight)+"px;\n left: "+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");t.display.lineSpace.appendChild(s),s.scrollIntoView(a),t.display.lineSpace.removeChild(s)}}}(n,function(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?nt(t.line,t.ch+1,"before"):t,t=t.ch?nt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,s=Gn(e,t),u=n&&n!=t?Gn(e,n):s,l=Lr(e,o={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Nr(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Fr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}(n,lt(o,t.scrollToPos.from),lt(o,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(i)for(var s=0;s=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,u=pt(e,i,r,!0);s&&(r.state=s),i.styles=u.styles;var l=i.styleClasses,c=u.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!f&&dn)return io(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&to(e,(function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==mr(t))return!1;vo(t)&&(vr(t),n.dims=sr(t));var i=o.first+o.size,a=Math.max(n.visible.from-t.options.viewportMargin,o.first),s=Math.min(i,n.visible.to+t.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Ot&&(a=Wt(t.doc,a),s=Ut(t.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=sn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,dr(e,n)))),r.viewTo=n}(t,a,s),r.viewOffset=Vt(Ke(t.doc,r.viewFrom)),t.display.mover.style.top=r.viewOffset+"px";var c=mr(t);if(!u&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var f=function(e){if(e.hasFocus())return null;var t=R();if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&P(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return c>4&&(r.lineDiv.style.display="none"),function(t,n,r){var o=t.display,i=t.options.lineNumbers,a=o.lineDiv,s=a.firstChild;function u(e){var n=e.nextSibling;return l&&w&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=o.view,f=o.viewFrom,d=0;d-1&&(h=!1),dn(t,p,f,r)),h&&(j(p.lineNumber),p.lineNumber.appendChild(e.createTextNode(tt(t.options,f)))),s=p.node.nextSibling}else{var v=bn(t,p,f,r);a.insertBefore(v,s)}f+=p.size}for(;s;)s=u(s)}(t,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(t){if(t&&t.activeElt&&t.activeElt!=R()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&P(e.body,t.anchorNode)&&P(e.body,t.focusNode))){var n=window.getSelection(),r=e.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(t.focusNode,t.focusOffset)}}(f),j(r.cursorDiv),j(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,io(t,400)),r.updateLineNumbers=null,!0}function lo(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=jn(e))r&&(t.visible=Mr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-Mn(e),n.top)}),t.visible=Mr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!uo(e,t))break;Tr(e);var o=Br(e);yr(e),Hr(e,o),po(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function co(e,t){var n=new so(e,t);if(uo(e,n)){Tr(e),lo(e,n);var r=Br(e);yr(e),Hr(e,r),po(e,r),n.finish()}}function fo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",cn(e,"gutterChanged",e)}function po(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tn(e)+"px"}function ho(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ur(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a=102&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var n=xo(t),o=n.x,i=n.y,a=_o;0===t.deltaMode&&(o=t.deltaX,i=t.deltaY,a=1);var s=e.display,u=s.scroller,c=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(o&&c||i&&h){if(i&&w&&l)e:for(var v=t.target,g=s.view;v!=u;v=v.parentNode)for(var m=0;m=0&&rt(e,r.to())<=0)return n}return-1};var So=function(e,t){this.anchor=e,this.head=t};function Eo(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return rt(e.from(),t.from())})),n=U(t,o);for(var i=1;i0:u>=0){var l=st(s.from(),a.from()),c=at(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new So(f?c:l,f?l:c))}}return new Co(t,n)}function To(e,t){return new Co([new So(e,t||e)],0)}function jo(e){return e.text?nt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Mo(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return jo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=jo(t).ch-t.to.ch),nt(n,r)}function Lo(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,m)}cn(e,"change",e,t)}function No(e,t,n){!function e(r,o,i){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?(Uo(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(o,o.lastOp==r)))a=Z(i.changes),0==rt(t.from,t.to)&&0==rt(t.from,a.to)?a.to=jo(t):i.changes.push(Wo(e,t));else{var u=Z(o.done);for(u&&u.ranges||Vo(e.sel,o.done),i={changes:[Wo(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function qo(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||function(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,i,Z(o.done),t))?o.done[o.done.length-1]=t:Vo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Uo(o.undone)}function Vo(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Yo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function $o(e){if(!e)return null;for(var t,n=0;n-1&&(Z(s)[f]=l[f],delete l[f])}}}return r}function Zo(e,t,n,r){if(r){var o=e.anchor;if(n){var i=rt(t,o)<0;i!=rt(n,o)<0?(o=t,t=n):i!=rt(t,n)<0&&(t=n)}return new So(o,t)}return new So(n||t,t)}function Jo(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),ni(e,new Co([Zo(e.sel.primary(),t,n,o)],0),r)}function Qo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(ge(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),d=void 0;if((r<0?c:l)&&(f=li(e,f,-r,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=rt(f,n))&&(r<0?d<0:d>0))return si(e,f,t,r,o)}var p=u.find(r<0?-1:1);return(r<0?l:c)&&(p=li(e,p,r,p.line==t.line?i:null)),p?si(e,p,t,r,o):null}}return t}function ui(e,t,n,r,o){var i=r||1,a=si(e,t,n,i,o)||!o&&si(e,t,n,i,!0)||si(e,t,n,-i,o)||!o&&si(e,t,n,-i,!0);return a||(e.cantEdit=!0,nt(e.first,0))}function li(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?lt(e,nt(t.line-1)):null:n>0&&t.ch==(r||Ke(e,t.line)).text.length?t.line0)){var c=[u,1],f=rt(l.from,s.from),d=rt(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),o.splice.apply(o,c),u+=c.length-3}}return o}(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)pi(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else pi(e,t)}}function pi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=rt(t.from,t.to)){var n=Lo(e,t);Ho(e,t,n,e.cm?e.cm.curOp.id:NaN),gi(e,t,n,Tt(e,t));var r=[];No(e,(function(e,n){n||-1!=U(r,e.history)||(wi(e.history,t),r.push(e.history)),gi(e,t,null,Tt(e,t))}))}}function hi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,l=0;l=0;--p){var h=d(p);if(h)return h.v}}}}function vi(e,t){if(0!=t&&(e.first+=t,e.sel=new Co(J(e.sel.ranges,(function(e){return new So(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:nt(i,Ke(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ge(e,t.from,t.to),n||(n=Lo(e,t)),e.cm?function(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=Qe(Bt(Ke(r,i.line))),r.iter(u,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),Do(r,t,n,lr(e)),e.options.lineWrapping||(r.iter(u,i.line+t.text.length,(function(e){var t=Yt(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=Ke(e,r).stateAfter;if(o&&(!(o instanceof ft)||r+o.lookAhead1||!(this.children[0]instanceof xi))){var s=[];this.collapse(s),this.children=[new xi(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=A("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Ft(e,t.line,t,n,i)||t.line!=n.line&&Ft(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot=!0}i.addToHistory&&Ho(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,(function(r){l&&i.collapsed&&!l.options.lineWrapping&&Bt(r)==l.display.maxLine&&(s=!0),i.collapsed&&u!=t.line&&Je(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Ct(i,u==t.line?t.ch:null,u==n.line?n.ch:null),e.cm&&e.cm.curOp),++u})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){Ht(e,t)&&Je(t,0)})),i.clearOnEnter&&pe(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(kt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Si,i.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),i.collapsed)pr(l,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=n.line;c++)hr(l,c,"text");i.atomic&&ii(l.doc),cn(l,"markerAdded",l,i)}return i}Ei.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Kr(e),be(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&pr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ii(e.doc)),e&&cn(e,"markerCleared",e,this,r,o),t&&Gr(e),this.parent&&this.parent.clear()}},Ei.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;u--)di(this,r[u]);s?ti(this,s):this.cm&&Pr(this.cm)})),undo:oo((function(){hi(this,"undo")})),redo:oo((function(){hi(this,"redo")})),undoSelection:oo((function(){hi(this,"undo",!0)})),redoSelection:oo((function(){hi(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=lt(this,e),t=lt(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&o!=e.line||null!=u.from&&o==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),lt(this,nt(n,t))},indexFromPos:function(e){var t=(e=lt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),ri(t.doc,To(n,n)),d)for(var p=0;p=0;t--)mi(e.doc,"",r[t].from,r[t].to,"+delete");Pr(e)}))}function ea(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new nt(t.line,r,n<0?"after":"before")}function na(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=fe(n,t.doc.direction);if(i){var a,s=o<0?Z(i):i[0],u=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=Rn(t,n);a=o<0?n.text.length-1:0;var c=In(t,l,a).top;a=se((function(e){return In(t,l,e).top==c}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=ea(n,a,1))}else a=o<0?s.to:s.from;return new nt(r,a,u)}}return new nt(r,o<0?n.text.length:0,o<0?"before":"after")}Vi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vi.default=w?Vi.macDefault:Vi.pcDefault;var ra={selectAll:ci,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Xi(e,(function(t){if(t.empty()){var n=Ke(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new nt(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),nt(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Ke(e.doc,o.line-1).text;a&&(o=new nt(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),nt(o.line-1,a.length-1),o,"+transpose"))}n.push(new So(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return to(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(rt((o=a.ranges[o]).from(),t)<0||t.xRel>0)&&(rt(o.to(),t)>0||t.xRel<0)?function(e,t,n,r){var o=e.display,i=!1,a=no(e,(function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Cr(e)),ve(o.wrapper.ownerDocument,"mouseup",a),ve(o.wrapper.ownerDocument,"mousemove",c),ve(o.scroller,"dragstart",f),ve(o.scroller,"drop",a),i||(_e(t),r.addNew||Jo(e.doc,n,null,null,r.extend),l&&!h||s&&9==u?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,pe(o.wrapper.ownerDocument,"mouseup",a),pe(o.wrapper.ownerDocument,"mousemove",c),pe(o.scroller,"dragstart",f),pe(o.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}(e,r,t,i):function(e,t,n,r){s&&Cr(e);var o=e.display,i=e.doc;_e(t);var a,u,l=i.sel,c=l.ranges;if(r.addNew&&!r.extend?(u=i.sel.contains(n),a=u>-1?c[u]:new So(n,n)):(a=i.sel.primary(),u=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new So(n,n)),n=fr(e,t,!0,!0),u=-1;else{var f=ba(e,n,r.unit);a=r.extend?Zo(a,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=c.length,ni(i,Eo(e,c.concat([a]),u),{scroll:!1,origin:"*mouse"})):c.length>1&&c[u].empty()&&"char"==r.unit&&!r.extend?(ni(i,Eo(e,c.slice(0,u).concat(c.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),l=i.sel):Xo(i,u,a,V):(u=0,ni(i,new Co([a],0),V),l=i.sel);var d=n;function p(t){if(0!=rt(d,t))if(d=t,"rectangle"==r.unit){for(var o=[],s=e.options.tabSize,c=B(Ke(i,n.line).text,n.ch,s),f=B(Ke(i,t.line).text,t.ch,s),p=Math.min(c,f),h=Math.max(c,f),v=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=g;v++){var m=Ke(i,v).text,y=$(m,p,s);p==h?o.push(new So(nt(v,y),nt(v,y))):m.length>y&&o.push(new So(nt(v,y),nt(v,$(m,h,s))))}o.length||o.push(new So(n,n)),ni(i,Eo(e,l.ranges.slice(0,u).concat(o),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,_=ba(e,t,r.unit),x=w.anchor;rt(_.anchor,x)>0?(b=_.head,x=st(w.from(),_.anchor)):(b=_.anchor,x=at(w.to(),_.head));var k=l.ranges.slice(0);k[u]=function(e,t){var n=t.anchor,r=t.head,o=Ke(e.doc,n.line);if(0==rt(n,r)&&n.sticky==r.sticky)return t;var i=fe(o);if(!i)return t;var a=le(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==i.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=le(i,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);u=c==l-1||c==l?f<0:f>0}var d=i[l+(u?-1:0)],p=u==(1==d.level),h=p?d.from:d.to,v=p?"after":"before";return n.ch==h&&n.sticky==v?t:new So(new nt(n.line,h,v),r)}(e,new So(lt(i,x),b)),ni(i,Eo(e,k,u),V)}}var h=o.wrapper.getBoundingClientRect(),v=0;function g(t){e.state.selectingText=!1,v=1/0,t&&(_e(t),o.input.focus()),ve(o.wrapper.ownerDocument,"mousemove",m),ve(o.wrapper.ownerDocument,"mouseup",y),i.history.lastSelOrigin=null}var m=no(e,(function(t){0!==t.buttons&&Se(t)?function t(n){var a=++v,s=fr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=rt(s,d)){e.curOp.focus=R(),p(s);var u=Mr(o,i);(s.line>=u.to||s.lineh.bottom?20:0;l&&setTimeout(no(e,(function(){v==a&&(o.scroller.scrollTop+=l,t(n))})),50)}}(t):g(t)})),y=no(e,g);e.state.selectingText=y,pe(o.wrapper.ownerDocument,"mousemove",m),pe(o.wrapper.ownerDocument,"mouseup",y)}(e,r,t,i)}(t,r,i,e):Ce(e)==n.scroller&&_e(e):2==o?(r&&Jo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==o&&(C?t.display.input.onContextMenu(e):Cr(t)))}}function ba(e,t,n){if("char"==n)return new So(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new So(nt(t.line,0),lt(e.doc,nt(t.line+1,0)));var r=n(e,t);return new So(r.from,r.to)}function wa(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&_e(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!be(e,n))return ke(t);i-=s.top-a.viewOffset;for(var u=0;u=o)return ge(e,n,e,Xe(e.doc,i),e.display.gutterSpecs[u].className,t),ke(t)}}function _a(e,t){return wa(e,t,"gutterClick",!0)}function xa(e,t){On(e.display,t)||function(e,t){return!!be(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==rt(t,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},Ca={},Sa={};function Ea(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,o=t?pe:ve;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Ta(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),$t(e)),cr(e),pr(e),Un(e),setTimeout((function(){return Hr(e)}),100)}function ja(t,n){var r=this;if(!(this instanceof ja))return new ja(t,n);this.options=n=n?F(n):{},F(Ca,n,!1);var o=n.value;"string"==typeof o?o=new Pi(o,n.mode,null,n.lineSeparator,n.direction):n.mode&&(o.modeOption=n.mode),this.doc=o;var i=new ja.inputStyles[n.inputStyle](this),a=this.display=new bo(t,o,i,n);for(var c in a.wrapper.CodeMirror=this,ka(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new W,keySeq:null,specialChars:null},n.autofocus&&!b&&a.input.focus(),s&&u<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),function(t){var n=t.display;pe(n.scroller,"mousedown",no(t,ya)),pe(n.scroller,"dblclick",s&&u<11?no(t,(function(e){if(!me(t,e)){var n=fr(t,e);if(n&&!_a(t,e)&&!On(t.display,e)){_e(e);var r=t.findWordAt(n);Jo(t.doc,r.anchor,r.head)}}})):function(e){return me(t,e)||_e(e)}),pe(n.scroller,"contextmenu",(function(e){return xa(t,e)})),pe(n.input.getField(),"contextmenu",(function(e){n.scroller.contains(e.target)||xa(t,e)}));var r,o={end:0};function i(){n.activeTouch&&(r=setTimeout((function(){return n.activeTouch=null}),1e3),(o=n.activeTouch).end=+new Date)}function a(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(n.scroller,"touchstart",(function(e){if(!me(t,e)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(e)&&!_a(t,e)){n.input.ensurePolled(),clearTimeout(r);var i=+new Date;n.activeTouch={start:i,moved:!1,prev:i-o.end<=300?o:null},1==e.touches.length&&(n.activeTouch.left=e.touches[0].pageX,n.activeTouch.top=e.touches[0].pageY)}})),pe(n.scroller,"touchmove",(function(){n.activeTouch&&(n.activeTouch.moved=!0)})),pe(n.scroller,"touchend",(function(e){var r=n.activeTouch;if(r&&!On(n,e)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,s=t.coordsChar(n.activeTouch,"page");o=!r.prev||a(r,r.prev)?new So(s,s):!r.prev.prev||a(r,r.prev.prev)?t.findWordAt(s):new So(nt(s.line,0),lt(t.doc,nt(s.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),_e(e)}i()})),pe(n.scroller,"touchcancel",i),pe(n.scroller,"scroll",(function(){n.scroller.clientHeight&&(Nr(t,n.scroller.scrollTop),Fr(t,n.scroller.scrollLeft,!0),ge(t,"scroll",t))})),pe(n.scroller,"mousewheel",(function(e){return Oo(t,e)})),pe(n.scroller,"DOMMouseScroll",(function(e){return Oo(t,e)})),pe(n.wrapper,"scroll",(function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0})),n.dragFunctions={enter:function(e){me(t,e)||Oe(e)},over:function(n){me(t,n)||(function(t,n){var r=fr(t,n);if(r){var o=e.createDocumentFragment();wr(t,r,o),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),M(t.display.dragCursor,o)}}(t,n),Oe(n))},start:function(e){return function(e,t){if(s&&(!e.state.draggingText||+new Date-Ri<100))Oe(t);else if(!me(e,t)&&!On(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=L("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(t,e)},drop:no(t,Ii),leave:function(e){me(t,e)||Di(t)}};var l=n.input.getField();pe(l,"keyup",(function(e){return pa.call(t,e)})),pe(l,"keydown",no(t,da)),pe(l,"keypress",no(t,ha)),pe(l,"focus",(function(e){return Sr(t,e)})),pe(l,"blur",(function(e){return Er(t,e)}))}(this),Fi(),Kr(this),this.curOp.forceUpdate=!0,zo(this,o),n.autofocus&&!b||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Sr(r)}),20):Er(this),Sa)Sa.hasOwnProperty(c)&&Sa[c](this,n[c],Oa);vo(this),n.finishInit&&n.finishInit(this);for(var f=0;f150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?B(Ke(i,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/a);p;--p)d+=a,f+="\t";if(da,u=Pe(t),l=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join("\n")==t){if(r.ranges.length%Aa.text.length==0){l=[];for(var c=0;c=0;d--){var p=r.ranges[d],h=p.from(),v=p.to();p.empty()&&(n&&n>0?h=nt(h.line,h.ch-n):e.state.overwrite&&!s?v=nt(v.line,Math.min(Ke(i,v.line).text.length,v.ch+Z(u).length)):s&&Aa&&Aa.lineWise&&Aa.text.join("\n")==u.join("\n")&&(h=v=nt(h.line,0)));var g={from:h,to:v,text:l?l[d%l.length]:u,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};di(e.doc,g),cn(e,"inputRead",e,g)}t&&!s&&Da(e,t),Pr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||to(t,(function(){return Ra(t,n,0,null,"paste")})),!0}function Da(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=La(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ke(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=La(e,o.head.line,"smart"));a&&cn(e,"electricInput",e,o.head.line)}}}function Na(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new nt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=o?function(e,t,n,r){var o=fe(t,e.doc.direction);if(!o)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=le(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var p=f?"before":"after";return new nt(n.line,d,p)}}var h=function(e,t,r){for(var i=function(e,t){return t?new nt(n.line,u(e,1),"before"):new nt(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==g||r>0&&g==t.text.length||!(v=h(r>0?0:o.length-1,r,l(g)))?null:v}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(i||(l=t.line+u)=e.first+e.size||(t=new nt(l,t.ch,t.sticky),!(s=Ke(e,l))))return!1;t=na(o,e.cm,s,t.line,u)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",v=ne(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||v||(v="s"),c&&c!=v){n<0&&(n=1,l(),t.sticky="after");break}if(v&&(c=v),n>0&&!l(!p))break}var g=ui(e,t,i,a,!0);return ot(i,g)&&(g.hitSide=!0),g}function Wa(t,n,r,o){var i,a,s=t.doc,u=n.left;if("page"==o){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||e.documentElement.clientHeight),c=Math.max(l-.5*ir(t.display),3);i=(r>0?n.bottom:n.top)+r*c}else"line"==o&&(i=r>0?n.bottom+3:n.top-3);for(;(a=Qn(t,u,i)).outside;){if(r<0?i<=0:i>=s.height){a.hitSide=!0;break}i+=5*r}return a}var Ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ha(e,t){var n=Pn(e,t.line);if(!n||n.hidden)return null;var r=Ke(e.doc,t.line),o=Ln(n,r,t.line),i=fe(r,e.doc.direction),a="left";i&&(a=le(i,t.ch)%2?"right":"left");var s=zn(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qa(e,t){return t&&(e.bad=!0),e}function Va(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return qa(e.clipPos(nt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o=t.display.viewTo||i.line=t.display.viewFrom&&Ha(t,o)||{node:u[0].measure.map[2],offset:0},c=i.liner.firstLine()&&(a=nt(a.line-1,Ke(r.doc,a.line-1).length)),s.ch==Ke(r.doc,s.line).text.length&&s.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=dr(r,a.line))?(t=Qe(o.view[0].line),n=o.view[0].node):(t=Qe(o.view[e].line),n=o.view[e-1].node.nextSibling);var u,l,c=dr(r,s.line);if(c==o.view.length-1?(u=o.viewTo-1,l=o.lineDiv.lastChild):(u=Qe(o.view[c+1].line)-1,l=o.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator(),u=!1;function l(){a&&(i+=s,u&&(i+=s),a=u=!1)}function c(e){e&&(l(),i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var i,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(nt(r,0),nt(o+1,0),(g=+d,function(e){return e.id==g}));return void(p.length&&(i=p[0].find(0))&&c(Ge(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var v=0;v1&&d.length>1;)if(Z(f)==Z(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,v=f[0],g=d[0],m=Math.min(v.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var _=nt(t,p),x=nt(u,d.length?Z(d).length-h:0);return f.length>1||f[0]||rt(_,x)?(mi(r.doc,f,_,x,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||to(this.cm,(function(){return pr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||no(this.cm,Ra)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var $a=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null};$a.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!me(r,e)){if(r.somethingSelected())Pa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Na(r);Pa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",o.value=t.text.join("\n"),N(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),pe(o,"input",(function(){s&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(o,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(o,"cut",i),pe(o,"copy",i),pe(e.scroller,"paste",(function(t){if(!On(e,t)&&!me(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),pe(e.lineSpace,"selectstart",(function(t){On(e,t)||_e(t)})),pe(o,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},$a.prototype.createField=function(e){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},$a.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=br(e);if(e.options.moveInputWithCursor){var o=Gn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},$a.prototype.showSelection=function(e){var t=this.cm.display;M(t.cursorDiv,e.cursors),M(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$a.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),s&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&u>=9&&(this.hasSelection=null))}},$a.prototype.getField=function(){return this.textarea},$a.prototype.supportsTouch=function(){return!1},$a.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||R()!=this.textarea))try{this.textarea.focus()}catch(e){}},$a.prototype.blur=function(){this.textarea.blur()},$a.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$a.prototype.receivedFocus=function(){this.slowPoll()},$a.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},$a.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},$a.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Re(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(s&&u>=9&&this.hasSelection===o||w&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,o.length);a1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},$a.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$a.prototype.onKeyPress=function(){s&&u>=9&&(this.hasSelection=null),this.fastPoll()},$a.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=fr(n,e),a=r.scroller.scrollTop;if(i&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&no(n,ni)(n.doc,To(i),q);var c,f=o.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&u>=9&&g(),C){Oe(e);var v=function(){ve(window,"mouseup",v),setTimeout(m,20)};pe(window,"mouseup",v)}else setTimeout(m,50)}function g(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,o.style.cssText=f,s&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),null!=o.selectionStart)){(!s||s&&u<9)&&g();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?no(n,ci)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},$a.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},$a.prototype.setUneditable=function(){},$a.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Oa&&o(e,t,n)}:o)}e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Po(e)}),!0),n("indentUnit",2,Po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ro(e),Un(e),pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(nt(r,i))}r++}));for(var o=n.length-1;o>=0;o--)mi(e.doc,t,n[o],nt(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",en,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){ka(e),yo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Qi(t),o=n!=Oa&&Qi(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ta,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=go(t,e.options.lineNumbers),yo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ur(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Yr(e),Hr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=go(e.options.gutters,t),yo(e)}),!0),n("firstLineNumber",1,yo,!0),n("lineNumberFormatter",(function(e){return e}),yo,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Er(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ea),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ro,!0),n("addModeClass",!1,Ro,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ro,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(ja),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&no(this,t[e])(this,n,o),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(La(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Pr(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u0&&Xo(this.doc,r,new So(i,l[r].to()),q)}}})),getTokenAt:function(e,t){return wt(this,e,t)},getLineTokens:function(e,t){return wt(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=lt(this.doc,e);var t,n=ht(this,Ke(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=Ke(this.doc,e)}else r=e;return Yn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Vt(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i,a,s,u=this.display,l=(e=Gn(this,lt(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var f=Math.max(u.wrapper.clientHeight,this.doc.height),d=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(l=e.bottom),c+t.offsetWidth>d&&(c=d-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==o?(c=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?c=0:"middle"==o&&(c=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(i=this,a={left:c,top:l,right:c+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Lr(i,a)).scrollTop&&Nr(i,s.scrollTop),null!=s.scrollLeft&&Fr(i,s.scrollLeft))},triggerOnKeyDown:ro(da),triggerOnKeyPress:ro(ha),triggerOnKeyUp:pa,triggerOnMouseDown:ro(ya),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:ro((function(e){Da(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=lt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&cr(this),ge(this,"refresh",this)})),swapDoc:ro((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),zo(this,e),Un(this),this.display.input.reset(),Rr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(ja);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Ga in Pi.prototype)Pi.prototype.hasOwnProperty(Ga)&&U(Ka,Ga)<0&&(ja.prototype[Ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pi.prototype[Ga]));return we(Pi),ja.inputStyles={textarea:$a,contenteditable:Ua},ja.defineMode=function(e){ja.defaults.mode||"null"==e||(ja.defaults.mode=e),Fe.apply(this,arguments)},ja.defineMIME=function(e,t){ze[e]=t},ja.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),ja.defineMIME("text/plain","null"),ja.defineExtension=function(e,t){ja.prototype[e]=t},ja.defineDocExtension=function(e,t){Pi.prototype[e]=t},ja.fromTextArea=function(t,n){if((n=n?F(n):{}).value=t.value,!n.tabindex&&t.tabIndex&&(n.tabindex=t.tabIndex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),null==n.autofocus){var r=R();n.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==e.body}function o(){t.value=u.getValue()}var i;if(t.form&&(pe(t.form,"submit",o),!n.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var s=a.submit=function(){o(),a.submit=i,a.submit(),a.submit=s}}catch(e){}}n.finishInit=function(e){e.save=o,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,o(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ve(t.form,"submit",o),n.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var u=ja((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),n);return u},function(e){e.off=ve,e.on=pe,e.wheelEventPixels=ko,e.Doc=Pi,e.splitLines=Pe,e.countColumn=B,e.findColumn=$,e.isWordChar=te,e.Pass=H,e.signal=ge,e.Line=Kt,e.changeEnd=jo,e.scrollbarModel=Vr,e.Pos=nt,e.cmpPos=rt,e.modes=Ne,e.mimeModes=ze,e.resolveMode=Be,e.getMode=We,e.modeExtensions=Ue,e.extendMode=He,e.copyState=qe,e.startState=Ye,e.innerMode=Ve,e.commands=ra,e.keyMap=Vi,e.keyName=Ji,e.isModifierKey=Gi,e.lookupKey=Ki,e.normalizeKeyMap=$i,e.StringStream=$e,e.SharedTextMarker=ji,e.TextMarker=Ei,e.LineWidget=Oi,e.e_preventDefault=_e,e.e_stopPropagation=xe,e.e_stop=Oe,e.addClass=I,e.contains=P,e.rmClass=T,e.keyNames=Wi}(ja),ja.version="5.65.5",ja}()},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;rg.EOF;){try{switch(n){case g.MEDIA_SYM:this._media(),this._skipCruft();break;case g.PAGE_SYM:this._page(),this._skipCruft();break;case g.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case g.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case g.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case g.DOCUMENT_SYM:this._document(),this._skipCruft();break;case g.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case g.UNKNOWN_SYM:if(r.get(),this.options.strict)throw new o("Unknown @ rule.",r.LT(0).startLine,r.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+r.LT(0).value+".",line:r.LT(0).startLine,col:r.LT(0).startCol}),e=0;r.advance([g.LBRACE,g.RBRACE])===g.LBRACE;)e++;for(;e;)r.advance([g.RBRACE]),e--;break;case g.S:this._readWhitespace();break;default:if(!this._ruleset())switch(n){case g.CHARSET_SYM:throw t=r.LT(1),this._charset(!1),new o("@charset not allowed here.",t.startLine,t.startCol);case g.IMPORT_SYM:throw t=r.LT(1),this._import(!1),new o("@import not allowed here.",t.startLine,t.startCol);case g.NAMESPACE_SYM:throw t=r.LT(1),this._namespace(!1),new o("@namespace not allowed here.",t.startLine,t.startCol);default:r.get(),this._unexpectedToken(r.token())}}}catch(e){if(!(e instanceof o)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}n=r.peek()}n!==g.EOF&&this._unexpectedToken(r.token()),this.fire("endstylesheet")},_charset:function(e){var t,n,r,o=this._tokenStream;o.match(g.CHARSET_SYM)&&(n=o.token().startLine,r=o.token().startCol,this._readWhitespace(),o.mustMatch(g.STRING),t=o.token().value,this._readWhitespace(),o.mustMatch(g.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:n,col:r}))},_import:function(e){var t,n,r,o=this._tokenStream;o.mustMatch(g.IMPORT_SYM),n=o.token(),this._readWhitespace(),o.mustMatch([g.STRING,g.URI]),t=o.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),r=this._media_query_list(),o.mustMatch(g.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:r,line:n.startLine,col:n.startCol})},_namespace:function(e){var t,n,r,o,i=this._tokenStream;i.mustMatch(g.NAMESPACE_SYM),t=i.token().startLine,n=i.token().startCol,this._readWhitespace(),i.match(g.IDENT)&&(r=i.token().value,this._readWhitespace()),i.mustMatch([g.STRING,g.URI]),o=i.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),i.mustMatch(g.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:r,uri:o,line:t,col:n})},_supports:function(e){var t,n,r=this._tokenStream;if(r.match(g.SUPPORTS_SYM)){for(t=r.token().startLine,n=r.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),r.mustMatch(g.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:n});this._ruleset(););r.mustMatch(g.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:n})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(g.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(g.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===g.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(g.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(g.LPAREN)?(this._readWhitespace(),e.match(g.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(g.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(g.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(g.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(g.RPAREN)},_media:function(){var e,t,n,r=this._tokenStream;for(r.mustMatch(g.MEDIA_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),n=this._media_query_list(),r.mustMatch(g.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:n,line:e,col:t});;)if(r.peek()===g.PAGE_SYM)this._page();else if(r.peek()===g.FONT_FACE_SYM)this._font_face();else if(r.peek()===g.VIEWPORT_SYM)this._viewport();else if(r.peek()===g.DOCUMENT_SYM)this._document();else if(r.peek()===g.SUPPORTS_SYM)this._supports();else if(r.peek()===g.MEDIA_SYM)this._media();else if(!this._ruleset())break;r.mustMatch(g.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:n,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==g.IDENT&&e.peek()!==g.LPAREN||t.push(this._media_query());e.match(g.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,r=null,o=[];if(e.match(g.IDENT)&&("only"!==(n=e.token().value.toLowerCase())&&"not"!==n?(e.unget(),n=null):r=e.token()),this._readWhitespace(),e.peek()===g.IDENT?(t=this._media_type(),null===r&&(r=e.token())):e.peek()===g.LPAREN&&(null===r&&(r=e.LT(1)),o.push(this._media_expression())),null===t&&0===o.length)return null;for(this._readWhitespace();e.match(g.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),o.push(this._media_expression());return new u(n,t,o,r.startLine,r.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,n=this._tokenStream,r=null;return n.mustMatch(g.LPAREN),e=this._media_feature(),this._readWhitespace(),n.match(g.COLON)&&(this._readWhitespace(),t=n.LT(1),r=this._expression()),n.mustMatch(g.RPAREN),this._readWhitespace(),new s(e,r?new i(r,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(g.IDENT),i.fromToken(e.token())},_page:function(){var e,t,n=this._tokenStream,r=null,o=null;n.mustMatch(g.PAGE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),n.match(g.IDENT)&&"auto"===(r=n.token().value).toLowerCase()&&this._unexpectedToken(n.token()),n.peek()===g.COLON&&(o=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:r,pseudo:o,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:r,pseudo:o,line:e,col:t})},_margin:function(){var e,t,n=this._tokenStream,r=this._margin_sym();return!!r&&(e=n.token().startLine,t=n.token().startCol,this.fire({type:"startpagemargin",margin:r,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:r,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([g.TOPLEFTCORNER_SYM,g.TOPLEFT_SYM,g.TOPCENTER_SYM,g.TOPRIGHT_SYM,g.TOPRIGHTCORNER_SYM,g.BOTTOMLEFTCORNER_SYM,g.BOTTOMLEFT_SYM,g.BOTTOMCENTER_SYM,g.BOTTOMRIGHT_SYM,g.BOTTOMRIGHTCORNER_SYM,g.LEFTTOP_SYM,g.LEFTMIDDLE_SYM,g.LEFTBOTTOM_SYM,g.RIGHTTOP_SYM,g.RIGHTMIDDLE_SYM,g.RIGHTBOTTOM_SYM])?i.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(g.COLON),e.mustMatch(g.IDENT),e.token().value},_font_face:function(){var e,t,n=this._tokenStream;n.mustMatch(g.FONT_FACE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,n=this._tokenStream;n.mustMatch(g.VIEWPORT_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,n=[],r="";for(t.mustMatch(g.DOCUMENT_SYM),e=t.token(),/^@\-([^\-]+)\-/.test(e.value)&&(r=RegExp.$1),this._readWhitespace(),n.push(this._document_function());t.match(g.COMMA);)this._readWhitespace(),n.push(this._document_function());t.mustMatch(g.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:n,prefix:r,line:e.startLine,col:e.startCol});for(var o=!0;o;)switch(t.peek()){case g.PAGE_SYM:this._page();break;case g.FONT_FACE_SYM:this._font_face();break;case g.VIEWPORT_SYM:this._viewport();break;case g.MEDIA_SYM:this._media();break;case g.KEYFRAMES_SYM:this._keyframes();break;case g.DOCUMENT_SYM:this._document();break;default:o=Boolean(this._ruleset())}t.mustMatch(g.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:n,prefix:r,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(g.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,n=null;return(t.match([g.SLASH,g.COMMA])||e&&t.match([g.PLUS,g.STAR,g.MINUS]))&&(n=t.token(),this._readWhitespace()),n?f.fromToken(n):null},_combinator:function(){var e,t=this._tokenStream,n=null;return t.match([g.PLUS,g.GREATER,g.TILDE])&&(e=t.token(),n=new a(e.value,e.startLine,e.startCol),this._readWhitespace()),n},_unary_operator:function(){var e=this._tokenStream;return e.match([g.MINUS,g.PLUS])?e.token().value:null},_property:function(){var e,t,n,r,o=this._tokenStream,i=null,a=null;return o.peek()===g.STAR&&this.options.starHack&&(o.get(),a=(t=o.token()).value,n=t.startLine,r=t.startCol),o.match(g.IDENT)&&("_"===(e=(t=o.token()).value).charAt(0)&&this.options.underscoreHack&&(a="_",e=e.substring(1)),i=new l(e,a,n||t.startLine,r||t.startCol),this._readWhitespace()),i},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([g.RBRACE])!==g.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,n=[];if(null!==(e=this._selector()))for(n.push(e);t.match(g.COMMA);)this._readWhitespace(),null!==(e=this._selector())?n.push(e):this._unexpectedToken(t.LT(1));return n.length?n:null},_selector:function(){var e=this._tokenStream,t=[],n=null,r=null,o=null;if(null===(n=this._simple_selector_sequence()))return null;for(t.push(n);;)if(null!==(r=this._combinator()))t.push(r),null===(n=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;o=new a(e.token().value,e.token().startLine,e.token().startCol),r=this._combinator(),null===(n=this._simple_selector_sequence())?null!==r&&this._unexpectedToken(e.LT(1)):(null!==r?t.push(r):t.push(o),t.push(n))}return new d(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,n=this._tokenStream,r=null,o=[],i="",a=[function(){return n.match(g.HASH)?new h(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],s=0,u=a.length,l=null;for(e=n.LT(1).startLine,t=n.LT(1).startCol,(r=this._type_selector())||(r=this._universal()),null!==r&&(i+=r);n.peek()!==g.S;){for(;s1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(g.DOT)?(t.mustMatch(g.IDENT),e=t.token(),new h("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(g.IDENT)?(e=t.token(),new h(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==g.PIPE&&e.LA(2)!==g.PIPE||(e.match([g.IDENT,g.STAR])&&(t+=e.token().value),e.mustMatch(g.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,n="";return(e=this._namespace_prefix())&&(n+=e),t.match(g.STAR)&&(n+="*"),n.length?n:null},_attrib:function(){var e,t,n=this._tokenStream,r=null;return n.match(g.LBRACKET)?(r=(t=n.token()).value,r+=this._readWhitespace(),(e=this._namespace_prefix())&&(r+=e),n.mustMatch(g.IDENT),r+=n.token().value,r+=this._readWhitespace(),n.match([g.PREFIXMATCH,g.SUFFIXMATCH,g.SUBSTRINGMATCH,g.EQUALS,g.INCLUDES,g.DASHMATCH])&&(r+=n.token().value,r+=this._readWhitespace(),n.mustMatch([g.IDENT,g.STRING]),r+=n.token().value,r+=this._readWhitespace()),n.mustMatch(g.RBRACKET),new h(r+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,n=this._tokenStream,r=null,i=":";if(n.match(g.COLON)){if(n.match(g.COLON)&&(i+=":"),n.match(g.IDENT)?(r=n.token().value,e=n.token().startLine,t=n.token().startCol-i.length):n.peek()===g.FUNCTION&&(e=n.LT(1).startLine,t=n.LT(1).startCol-i.length,r=this._functional_pseudo()),!r){var a=n.LT(1).startLine,s=n.LT(0).startCol;throw new o("Expected a `FUNCTION` or `IDENT` after colon at line "+a+", col "+s+".",a,s)}r=new h(i+r,"pseudo",e,t)}return r},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(g.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(g.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([g.PLUS,g.MINUS,g.DIMENSION,g.NUMBER,g.STRING,g.IDENT,g.LENGTH,g.FREQ,g.ANGLE,g.TIME,g.RESOLUTION,g.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,n,r=this._tokenStream,o="",i=null;return r.match(g.NOT)&&(o=r.token().value,e=r.token().startLine,t=r.token().startCol,o+=this._readWhitespace(),o+=n=this._negation_arg(),o+=this._readWhitespace(),r.match(g.RPAREN),o+=r.token().value,(i=new h(o,"not",e,t)).args.push(n)),i},_negation_arg:function(){var e,t,n=this._tokenStream,r=[this._type_selector,this._universal,function(){return n.match(g.HASH)?new h(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo],o=null,i=0,a=r.length;for(e=n.LT(1).startLine,t=n.LT(1).startCol;i0?new c(t,t[0].line,t[0].col):null},_term:function(e){var t,n,r,o,i=this._tokenStream,a=null,s=null,u=null;return null!==(t=this._unary_operator())&&(r=i.token().startLine,o=i.token().startCol),i.peek()===g.IE_FUNCTION&&this.options.ieFilters?(a=this._ie_function(),null===t&&(r=i.token().startLine,o=i.token().startCol)):e&&i.match([g.LPAREN,g.LBRACE,g.LBRACKET])?(s=(n=i.token()).endChar,a=n.value+this._expr(e).text,null===t&&(r=i.token().startLine,o=i.token().startCol),i.mustMatch(g.type(s)),a+=s,this._readWhitespace()):i.match([g.NUMBER,g.PERCENTAGE,g.LENGTH,g.ANGLE,g.TIME,g.FREQ,g.STRING,g.IDENT,g.URI,g.UNICODE_RANGE])?(a=i.token().value,null===t&&(r=i.token().startLine,o=i.token().startCol,u=f.fromToken(i.token())),this._readWhitespace()):null===(n=this._hexcolor())?(null===t&&(r=i.LT(1).startLine,o=i.LT(1).startCol),null===a&&(a=i.LA(3)===g.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(a=n.value,null===t&&(r=n.startLine,o=n.startCol)),null!==u?u:null!==a?new f(null!==t?t+a:a,r,o):null},_function:function(){var e,t=this._tokenStream,n=null;if(t.match(g.FUNCTION)){if(n=t.token().value,this._readWhitespace(),n+=this._expr(!0),this.options.ieFilters&&t.peek()===g.EQUALS)do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===g.COMMA&&(n+=t.token().value),t.match(g.IDENT),n+=t.token().value,t.match(g.EQUALS),n+=t.token().value,e=t.peek();e!==g.COMMA&&e!==g.S&&e!==g.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([g.COMMA,g.S]));t.match(g.RPAREN),n+=")",this._readWhitespace()}return n},_ie_function:function(){var e,t=this._tokenStream,n=null;if(t.match([g.IE_FUNCTION,g.FUNCTION])){n=t.token().value;do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===g.COMMA&&(n+=t.token().value),t.match(g.IDENT),n+=t.token().value,t.match(g.EQUALS),n+=t.token().value,e=t.peek();e!==g.COMMA&&e!==g.S&&e!==g.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([g.COMMA,g.S]));t.match(g.RPAREN),n+=")",this._readWhitespace()}return n},_hexcolor:function(){var e,t=this._tokenStream,n=null;if(t.match(g.HASH)){if(e=(n=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new o("Expected a hex color but found '"+e+"' at line "+n.startLine+", col "+n.startCol+".",n.startLine,n.startCol);this._readWhitespace()}return n},_keyframes:function(){var e,t,n,r=this._tokenStream,o="";for(r.mustMatch(g.KEYFRAMES_SYM),e=r.token(),/^@\-([^\-]+)\-/.test(e.value)&&(o=RegExp.$1),this._readWhitespace(),n=this._keyframe_name(),this._readWhitespace(),r.mustMatch(g.LBRACE),this.fire({type:"startkeyframes",name:n,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=r.peek();t===g.IDENT||t===g.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=r.peek();this.fire({type:"endkeyframes",name:n,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),r.mustMatch(g.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([g.IDENT,g.STRING]),i.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(g.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(g.PERCENTAGE))return i.fromToken(t.token());if(t.match(g.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return i.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([g.S,g.CDO,g.CDC]););},_readDeclarations:function(e,t){var n,r=this._tokenStream;this._readWhitespace(),e&&r.mustMatch(g.LBRACE),this._readWhitespace();try{for(;;){if(r.match(g.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!r.match(g.SEMICOLON))break}this._readWhitespace()}r.mustMatch(g.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(n=r.advance([g.SEMICOLON,g.RBRACE]))===g.SEMICOLON)this._readDeclarations(!1,t);else if(n!==g.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(g.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new o("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==g.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){m.validate(e,t)},parse:function(e){this._tokenStream=new v(e,g),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new v(e,g);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new v(e,g),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new v(e,g),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new v(e,g),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new v(e,g),this._readDeclarations()}};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}()},function(e,t,n){var r=n(274);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=n.wrap,i=void 0===o||o,s=n.ignoreDefinition,u=void 0!==s&&s;a(this,e),this.definition=t,"function"!=typeof t&&(u||this.verifyDefinition(t),this.wrap=i,this.ProviderConstructor=function(e){this.context=e},this.ProviderConstructor.prototype=t,this.WrappedProviderConstructor=function(e,t){this.context=t,this.providerName=e},this.WrappedProviderConstructor.prototype=Object.keys(u?{}:t).reduce((function(e,n){var o=t[n];return e[n]=function(){for(var e=this,t=arguments.length,i=Array(t),a=0;a-1&&e%1==0&&e=200){var v=t?null:s(e);if(v)return u(v);d=!1,c=a,h=new r}else h=t?[]:p;e:for(;++l=0;g--)if(c.canDragSource(n[g])){v=n[g];break}if(null!==v){var m=null;u&&(i("function"==typeof l,"When clientOffset is provided, getSourceClientOffset must be a function."),m=l(v));var y=f.getSource(v).beginDrag(c,v);i(a(y),"Item must be an object."),f.pinSource(v);var b=f.getSourceType(v);return{type:t.BEGIN_DRAG,payload:{itemType:b,item:y,sourceId:v,clientOffset:u||null,sourceClientOffset:m||null,isSourcePublic:!!s}}}},publishDragSource:function(){if(e.getMonitor().isDragging())return{type:t.PUBLISH_DRAG_SOURCE}},hover:function(n,r){var a=(void 0===r?{}:r).clientOffset;i(Array.isArray(n),"Expected targetIds to be an array.");var s=n.slice(0),u=e.getMonitor(),l=e.getRegistry();i(u.isDragging(),"Cannot call hover while not dragging."),i(!u.didDrop(),"Cannot call hover after drop.");for(var c=0;c=0;c--){f=s[c];var h=l.getTargetType(f);o.default(h,p)||s.splice(c,1)}for(var v=0,g=s;v"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],t=Object.create(null);r.UNKNOWN=-1,r.unshift({name:"EOF"});for(var n=0,o=r.length;n=43)}})).catch((function(){return!1}))}(e).then((function(e){return f=e}))}function v(e){var t=d[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function g(e){var t=d[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function m(e,t){var n=d[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function y(e,t){return new a((function(n,r){if(d[e.name]=d[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);v(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),g(e)}}))}function b(e){return y(e,!1)}function w(e){return y(e,!0)}function _(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function x(e){return i([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e)})).then((function(){return function(e){v(e);for(var t=d[e.name],n=t.forages,r=0;r>4,c[u++]=(15&r)<<4|o>>2,c[u++]=(3&o)<<6|63&i;return l}function P(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=E[(3&n[t])<<4|n[t+1]>>4],r+=E[(15&n[t+1])<<2|n[t+2]>>6],r+=E[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var R={serialize:function(e,t){var n="";if(e&&(n=L.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===L.call(e.buffer))){var r,o="__lfsc__:";e instanceof ArrayBuffer?(r=e,o+="arbf"):(r=e.buffer,"[object Int8Array]"===n?o+="si08":"[object Uint8Array]"===n?o+="ui08":"[object Uint8ClampedArray]"===n?o+="uic8":"[object Int16Array]"===n?o+="si16":"[object Uint16Array]"===n?o+="ur16":"[object Int32Array]"===n?o+="si32":"[object Uint32Array]"===n?o+="ui32":"[object Float32Array]"===n?o+="fl32":"[object Float64Array]"===n?o+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(o+P(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+P(this.result);t("__lfsc__:blob"+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,j))return JSON.parse(e);var t,n=e.substring(M),r=e.substring(j,M);if("blob"===r&&T.test(n)){var o=n.match(T);t=o[1],n=n.substring(o[0].length)}var a=A(n);switch(r){case"arbf":return a;case"blob":return i([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:A,bufferToString:P}; /* * Includes code from: * * base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer * * Copyright (c) 2012 Niklas von Hertzen * Licensed under the MIT license. */function I(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function D(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):I(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function N(e,t,n,r){var o=this;e=l(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,u=o._dbInfo;u.serializer.serialize(t,(function(t,l){l?a(l):u.db.transaction((function(n){D(n,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(N.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(i,n),i}function z(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i0}var U={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=B(e,this._defaultConfig),W()?(this._dbInfo=t,t.serializer=R,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,o=e.length,i=0;i1)for(var n=1;n-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(32),o=n(284),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(this,n(58)(e))},function(e,t,n){var r=n(285),o=n(107),i=n(286),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(291),o=n(313),i=n(75),a=n(24),s=n(316);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(298),o=n(33);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){"use strict"; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,c=l&&l(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(c){var d=l(n);d&&d!==c&&e(t,d,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var h=0;hc);f++){var d=e.getLine(l++);s=null==s?d:s+"\n"+d}u*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),v=p[0].split("\n"),g=n.line+h.length-1,m=h[h.length-1].length;return{from:r(g,m),to:r(g+v.length-1,1==v.length?m+v[0].length:v[v.length-1].length),match:p}}}}function u(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function l(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),c=u(l,t,a<0?0:l.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function c(e,t,n){if(!i(t))return l(e,t,n);t=o(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,f=n.line,d=e.firstLine();f>=d;){for(var p=0;p=d;p++){var h=e.getLine(f--);a=null==a?h:h+"\n"+a}s*=2;var v=u(a,t,c);if(v){var g=a.slice(0,v.index).split("\n"),m=v[0].split("\n"),y=f+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+m.length-1,1==m.length?b+m[0].length:m[m.length-1].length),match:v}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var a=o+i>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?i=a:o=a+1}}function d(e,o,i,a){if(!o.length)return null;var s=a?t:n,u=s(o).split(/\r|\n\r?/);e:for(var l=i.line,c=i.ch,d=e.lastLine()+1-u.length;l<=d;l++,c=0){var p=e.getLine(l).slice(c),h=s(p);if(1==u.length){var v=h.indexOf(u[0]);if(-1==v)continue e;return i=f(p,h,v,s)+c,{from:r(l,f(p,h,v,s)+c),to:r(l,f(p,h,v+u[0].length,s)+c)}}var g=h.length-u[0].length;if(h.slice(g)==u[0]){for(var m=1;m=d;l--,c=-1){var p=e.getLine(l);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==u.length){var v=h.lastIndexOf(u[0]);if(-1==v)continue e;return{from:r(l,f(p,h,v,s)),to:r(l,f(p,h,v+u[0].length,s))}}var g=u[u.length-1];if(h.slice(0,g.length)==g){var m=1;for(i=l-u.length+1;m(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(n(21))},function(e,t,n){ // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE !function(e){"use strict";function t(e){for(var t={},n=0;n*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=C),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function O(e){return function(t,n){for(var r,o=!1;null!=(r=t.next());){if(r==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==r}return(r==e||!o&&")"!=e)&&(n.tokenize=null),x("string","string")}}function C(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=O(")"),x(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function E(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function j(e,t,n){return A[n.context.type](e,t,n)}function M(e,t,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return j(e,t,n)}function L(e){var t=e.current().toLowerCase();i=m.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var A={top:function(e,t,n){if("{"==e)return E(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(w&&/@component/i.test(e))return E(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return E(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return E(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return E(n,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return E(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return E(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return d.hasOwnProperty(r)?(i="property","maybeprop"):p.hasOwnProperty(r)?(i=_?"string-2":"property","maybeprop"):y?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?A.top(e,t,n):(i="error","block")},maybeprop:function(e,t,n){return":"==e?E(n,t,"prop"):j(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return E(n,t,"propBlock");if("}"==e||"{"==e)return M(e,t,n);if("("==e)return E(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)L(t);else if("interpolation"==e)return E(n,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(i="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?M(e,t,n):")"==e?T(n):"("==e?E(n,t,"parens"):"interpolation"==e?E(n,t,"interpolation"):("word"==e&&L(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(i="variable-3",n.context.type):j(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&u.hasOwnProperty(t.current())?(i="tag",n.context.type):A.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return E(n,t,"atBlock_parens");if("}"==e||";"==e)return M(e,t,n);if("{"==e)return T(n)&&E(n,t,y?"block":"top");if("interpolation"==e)return E(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==r?"keyword":l.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?_?"string-2":"property":m.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?M(e,t,n):"{"==e?T(n)&&E(n,t,y?"block":"top",!1):("word"==e&&(i="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?M(e,t,n,2):A.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?E(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):j(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(i="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!v.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(i="variable","keyframes"):"{"==e?E(n,t,"top"):j(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?M(e,t,n):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?M(e,t,n):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||k)(e,t);return n&&"object"==typeof n&&(o=n[1],n=n[0]),i=n,"comment"!=o&&(t.state=A[t.state](o,e,t)),i},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),o=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(o=Math.max(0,n.indent-a)):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],l=t(u),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(c),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(d),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),v=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],m=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=n.concat(o).concat(a).concat(u).concat(c).concat(d).concat(g).concat(y);function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:v,colorKeywords:m,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:m,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:m,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:v,colorKeywords:m,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css",helperType:"gss"})}(n(21))},function(e,t,n){"use strict";e.exports=s;var r=n(29),o=n(183),i=n(35),a=n(86);function s(e,t,n,a){var u,l=a||{};if(r.call(this,e,t,n,i.PROPERTY_VALUE_PART_TYPE),this.type="unknown",/^([+\-]?[\d\.]+)([a-z]+)$/i.test(e))switch(this.type="dimension",this.value=+RegExp.$1,this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+\-]?[\d\.]+)%$/i.test(e)?(this.type="percentage",this.value=+RegExp.$1):/^([+\-]?\d+)$/i.test(e)?(this.type="integer",this.value=+RegExp.$1):/^([+\-]?[\d\.]+)$/i.test(e)?(this.type="number",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(e)?(this.type="color",3===(u=RegExp.$1).length?(this.red=parseInt(u.charAt(0)+u.charAt(0),16),this.green=parseInt(u.charAt(1)+u.charAt(1),16),this.blue=parseInt(u.charAt(2)+u.charAt(2),16)):(this.red=parseInt(u.substring(0,2),16),this.green=parseInt(u.substring(2,4),16),this.blue=parseInt(u.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100,this.alpha=+RegExp.$4):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\(("([^\\"]|\\.)*")\)/i.test(e)?(this.type="uri",this.uri=s.parseString(RegExp.$1)):/^([^\(]+)\(/i.test(e)?(this.type="function",this.name=RegExp.$1,this.value=e):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(e)||/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(e)?(this.type="string",this.value=s.parseString(e)):o[e.toLowerCase()]?(this.type="color",u=o[e.toLowerCase()].substring(1),this.red=parseInt(u.substring(0,2),16),this.green=parseInt(u.substring(2,4),16),this.blue=parseInt(u.substring(4,6),16)):/^[,\/]$/.test(e)?(this.type="operator",this.value=e):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(e)&&(this.type="identifier",this.value=e);this.wasIdent=Boolean(l.ident)}s.prototype=new r,s.prototype.constructor=s,s.parseString=function(e){return(e=e.slice(1,-1)).replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/gi,(function(e,t){if(/^(\n|\r\n|\r|\f)$/.test(t))return"";var n=/^[0-9a-f]{1,6}/i.exec(t);if(n){var r=parseInt(n[0],16);return String.fromCodePoint?String.fromCodePoint(r):String.fromCharCode(r)}return t}))},s.serializeString=function(e){return'"'+e.replace(/["\r\n\f]/g,(function(e,t){return'"'===t?"\\"+t:"\\"+(String.codePointAt?String.codePointAt(0):String.charCodeAt(0)).toString(16)+" "}))+'"'},s.fromToken=function(e){return new s(e.value,e.startLine,e.startCol,{ident:e.type===a.IDENT})}},function(e,t,n){"use strict";e.exports=i;var r=n(29),o=n(35);function i(e,t,n,i,a){r.call(this,n,i,a,o.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}i.prototype=new r,i.prototype.constructor=i},function(e,t,n){"use strict";function r(e){this._input=e.replace(/(\r\n?|\n)/g,"\n"),this._line=1,this._col=1,this._cursor=0}e.exports=r,r.prototype={constructor:r,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(e){var t=null;return e=void 0===e?1:e,this._cursorn&&(r="[ "+r+" ]"),r}))},i.alt=function(){var e=Array.prototype.slice.call(arguments).map(i.cast);return 1===e.length?e[0]:new i((function(t){var n,r=!1;for(n=0;!r&&nn&&(r="[ "+r+" ]"),r}))},i.many=function(e){var t=Array.prototype.slice.call(arguments,1).reduce((function(e,t){if(t.expand){var r=n(130);e.push.apply(e,r.complex[t.expand].options)}else e.push(i.cast(t));return e}),[]);!0===e&&(e=t.map((function(){return!0})));var r=new i((function(n){var r=[],o=0,i=0,a=function(s){for(var u=0;u0;for(var s=0;sr&&(o="[ "+o+" ]"),o}));return r.options=t,r},i.andand=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!0),i.many.apply(i,e)},i.oror=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!1),i.many.apply(i,e)},i.prototype={constructor:i,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(e){return i.seq(this,e)},or:function(e){return i.alt(this,e)},andand:function(e){return i.many(!0,this,e)},oror:function(e){return i.many(!1,this,e)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",i.cast(","))},braces:function(e,t,n,r){var o=this,a=r?r.then(this):this;return n||(n="{"+e+","+t+"}"),new i((function(n){var i;for(i=0;i0&&r?a.match(n):o.match(n));i++);return i>=e}),(function(){return o.toString(i.prec.MOD)+n}))}}},function(e,t,n){"use strict";var r,o,i=e.exports,a=n(129);r=i,o={isLiteral:function(e,t){var n,r,o=e.text.toString().toLowerCase(),i=t.split(" | "),a=!1;for(n=0,r=i.length;n":"xx-small | x-small | small | medium | large | x-large | xx-large","":"scroll-position | contents | ","":function(e){return this[""](e)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(e)},"":function(e){return"angle"===e.type},"":"scroll | fixed | local","":"attr()","":"inset() | circle() | ellipse() | polygon()","":" | | none","":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","":" | thin | medium | thick","":"padding-box | border-box | content-box","":"","":function(e){return"color"===e.type||"transparent"===String(e)||"currentColor"===String(e)},"":function(e){return"color"===e.type},"":"content()","":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","":function(e){return"function"===e.type&&/^[A-Z0-9]{4}$/i.test(e)},"":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","":"","":"row | row-reverse | column | column-reverse","":"","":"","":"nowrap | wrap | wrap-reverse","":" | | | ","":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","":"normal | italic | oblique","":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","":"normal | small-caps","":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","":"serif | sans-serif | cursive | fantasy | monospace","":" | fill-box | stroke-box | view-box","":function(e){return"angle"===e.type&&"deg"===e.units},"":function(e){return"function"===e.type&&/^(?:\-(?:ms|moz|o|webkit)\-)?(?:repeating\-)?(?:radial\-|linear\-)?gradient/i.test(e)},"":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","":function(e){return"identifier"===e.type||e.wasIdent},"":function(e){return this[""](e)&&!this[""](e)},"":"","":function(e){return"integer"===e.type},"":function(e){return!("function"!==e.type||!/^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(e))||"length"===e.type||"number"===e.type||"integer"===e.type||"0"===String(e)},"":function(e){return"integer"===e.type},"":" | | | normal","":" | | auto","":function(e){return this[""](e)&&e.value>=1},"":function(e){return(this[""](e)||this[""](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"":function(e){return(this[""](e)||this[""](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"":function(e){return"number"===e.type||this[""](e)},"":function(e){return this[""](e)&&e.value>=0&&e.value<=1},"":"","":function(e){return"percentage"===e.type||"0"===String(e)},"":"smaller | larger","":"rect() | inset-rect()","":" | margin-box","":"normal | reverse | alternate | alternate-reverse","":function(e){return this[""](e)&&/^-?[a-z_][-a-z0-9_]+$/i.test(e)&&!/^(none|unset|initial|inherit)$/i.test(e)},"":function(e){return"string"===e.type},"