diff --git a/docker/Dockerfile b/docker/Dockerfile index 0d3bd6a63..e6983ffc9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ # 基础镜像 -# https://hub.docker.com/_/python/tags?page=1&name=3.11.9-slim-bullseye -FROM docker.io/python:3.11.9-slim-bullseye +# https://hub.docker.com/_/python/tags?page=1&name=3.11.10-slim-bullseye +FROM docker.io/python:3.11.10-slim-bullseye MAINTAINER myh #增加语言utf-8 diff --git a/instock/web/static/css/gc.spread.sheets.excel2013white.css b/instock/web/static/css/gc.spread.sheets.excel2013white.css index f3a3bd30a..2184e9bbf 100644 --- a/instock/web/static/css/gc.spread.sheets.excel2013white.css +++ b/instock/web/static/css/gc.spread.sheets.excel2013white.css @@ -546,10 +546,6 @@ .gc-filter-disable-item i:hover { color: #c4bec2; } -.gc-filter-disable-item.gc-filter-hover { - background-color: transparent; - border: 1px solid #c5c5c5; -} .gc-search-outer-div { border: none; @@ -5562,6 +5558,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div { display: flex; width: fit-content; } +.gc-defined-column-container .gc-defined-column-checkbox-container .gc-defined-column-checkbox-item-container:focus { + outline: none; +} .gc-defined-column-container .gc-defined-column-checkbox-container .gc-defined-column-check-container { align-self: center; } @@ -5607,6 +5606,10 @@ div[gcUIElement=gcSpread] .gc-base-spread-div { .gc-defined-column-container sjs-select.gc-define-column-invalid { --sjs-theme-border-color: var(--sjs-dc-invalid-color); } +.gc-defined-column-container sjs-select::part(container) { + --sjs-dp-root-height: 32px; + --sjs-dp-value-root-height: 30px; +} .gc-defined-column-container sjs-color-picker.gc-defined-column-field-input-container-input { display: block; } @@ -5647,6 +5650,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div { .gc-defined-column-container .gc-defined-column-list-container .gc-defined-column-list-item-container.gc-defined-column-list-item-selected { background-color: var(--sjs-dc-hover-background-color); } +.gc-defined-column-container .gc-defined-column-list-container .gc-defined-column-list-item-container:focus { + outline: none; +} .gc-defined-column-container .gc-defined-column-list-container .gc-defined-column-list-item-container .gc-defined-column-list-item-text, .gc-defined-column-container .gc-defined-column-list-container .gc-defined-column-list-item-container .gc-defined-column-list-item-value { height: 17px; @@ -5901,6 +5907,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div { } .gc-defined-column-container .gc-defined-column-barcode-options-container .gc-defined-column-field-item-small-container { grid-column: span 2; + display: flex; + flex-direction: column; + justify-content: space-between; } .gc-defined-column-container .gc-defined-column-attachment-margins-container { display: grid; @@ -5921,6 +5930,9 @@ div[gcUIElement=gcSpread] .gc-base-spread-div { cursor: pointer; opacity: 0.75; } +.gc-defined-column-container .gc-defined-column-tab-item-container:focus { + outline: none; +} .gc-defined-column-container .gc-defined-column-tab-item-container:hover { opacity: 1; } diff --git a/instock/web/static/js/bokeh-3.5.1.min.js b/instock/web/static/js/bokeh-3.6.0.min.js similarity index 63% rename from instock/web/static/js/bokeh-3.5.1.min.js rename to instock/web/static/js/bokeh-3.6.0.min.js index c94abc7ee..f45548e3c 100644 --- a/instock/web/static/js/bokeh-3.5.1.min.js +++ b/instock/web/static/js/bokeh-3.6.0.min.js @@ -158,110 +158,110 @@ }) ([ function _(t,_,n,o,r){o();t(1).__exportStar(t(2),n),t(76)}, -function _(e,t,r,n,o){n();var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}r.__extends=i;function c(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function u(e,t){return function(r,n){t(r,n,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function h(){for(var e=[],t=0;t1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof w?Promise.resolve(r.value.v).then(s,u):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}r.__assign=function(){return r.__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;y--){var _={};for(var d in n)_[d]="access"===d?{}:n[d];for(var d in n.access)_.access[d]=n.access[d];_.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var h=(0,r[y])("accessor"===s?{get:l.get,set:l.set}:l[u],_);if("accessor"===s){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=i(h.get))&&(l.get=c),(c=i(h.set))&&(l.set=c),(c=i(h.init))&&o.unshift(c)}else(c=i(h))&&("field"===s?o.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),p=!0},r.__runInitializers=function(e,t,r){for(var n=arguments.length>2,o=0;o=0;y--){var _={};for(var d in n)_[d]="access"===d?{}:n[d];for(var d in n.access)_.access[d]=n.access[d];_.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var h=(0,r[y])("accessor"===s?{get:l.get,set:l.set}:l[u],_);if("accessor"===s){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=i(h.get))&&(l.get=c),(c=i(h.set))&&(l.set=c),(c=i(h.init))&&o.unshift(c)}else(c=i(h))&&("field"===s?o.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l);p=!0},r.__runInitializers=function(e,t,r){for(var n=arguments.length>2,o=0;o=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function u(e,t){return function(r,n){t(r,n,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function h(){for(var e=[],t=0;t1||c(e,t)}))},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof w?Promise.resolve(r.value.v).then(s,u):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}r.__assign=function(){return r.__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{(0,b.assert)(e instanceof z.ModelEvent),this.event_manager.trigger(e)}))}[f.equals](e,t){return this==e}get all_models(){return new Set(this._all_models.values())}get is_idle(){for(const e of this._roots)if(!this._idle_roots.has(e))return!1;return!0}notify_idle(e){this._idle_roots.add(e),this.is_idle&&(r.logger.info(`document idle at ${Date.now()-this._init_timestamp} ms`),this.event_manager.send_event(new S.DocumentReady),this.idle.emit())}clear(){this._push_all_models_freeze();try{for(;this._roots.length>0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}}interactive_start(e,t=null){null==this._interactive_plot&&(this._interactive_plot=e,this._interactive_plot.trigger_event(new S.LODStart)),this._interactive_finalize=t,this._interactive_timestamp=Date.now()}interactive_stop(){null!=this._interactive_plot&&(this._interactive_plot.trigger_event(new S.LODEnd),null!=this._interactive_finalize&&this._interactive_finalize()),this._interactive_plot=null,this._interactive_timestamp=null,this._interactive_finalize=null}interactive_duration(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp}destructively_move(e){if(e===this)throw new Error("Attempted to overwrite a document with itself");e.clear();const t=(0,g.copy)(this._roots);this.clear();for(const e of t)if(null!=e.document)throw new Error(`Somehow we didn't detach ${e}`);if(0!=this._all_models.size)throw new Error(`this._all_models still had stuff in it: ${this._all_models}`);for(const s of t)e.add_root(s);e.set_title(this._title)}_push_all_models_freeze(){this._all_models_freeze_count+=1}_pop_all_models_freeze(){this._all_models_freeze_count-=1,0===this._all_models_freeze_count&&this._recompute_all_models()}_invalidate_all_models(){r.logger.debug("invalidating document models"),0===this._all_models_freeze_count&&this._recompute_all_models()}_recompute_all_models(){let e=new Set;for(const t of this._roots)e=p.union(e,t.references());const t=new Set(this._all_models.values()),s=p.difference(t,e),o=p.difference(e,t),n=new Map;for(const t of e)n.set(t.id,t);for(const e of s)e.detach_document();for(const e of o)e.attach_document(this),this._new_models.add(e);this._all_models=n}roots(){return this._roots}_add_roots(...e){if(0==(e=e.filter((e=>!this._roots.includes(e)))).length)return!1;this._push_all_models_freeze();try{this._roots.push(...e)}finally{this._pop_all_models_freeze()}return!0}_remove_root(e){const t=this._roots.indexOf(e);if(t<0)return!1;this._push_all_models_freeze();try{this._roots.splice(t,1)}finally{this._pop_all_models_freeze()}return!0}_set_title(e){const t=e!=this._title;return t&&(this._title=e),t}add_root(e,{sync:t}={}){if(this._add_roots(e)){const s=new E.RootAddedEvent(this,e);s.sync=t??!0,this._trigger_on_change(s)}}remove_root(e,{sync:t}={}){if(this._remove_root(e)){const s=new E.RootRemovedEvent(this,e);s.sync=t??!0,this._trigger_on_change(s)}}set_title(e,{sync:t}={}){if(this._set_title(e)){const s=new E.TitleChangedEvent(this,e);s.sync=t??!0,this._trigger_on_change(s)}}title(){return this._title}get_model_by_id(e){return this._all_models.get(e)??null}get_model_by_name(e){const t=[];for(const s of this._all_models.values())s instanceof k.Model&&s.name==e&&t.push(s);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error(`Multiple models are named '${e}'`)}}on_message(e,t){const s=this._message_callbacks.get(e);null==s?this._message_callbacks.set(e,new Set([t])):s.add(t)}remove_on_message(e,t){this._message_callbacks.get(e)?.delete(t)}_trigger_on_message(e,t){const s=this._message_callbacks.get(e);if(null!=s)for(const e of s)e(t)}on_change(e,t=!1){this._callbacks.has(e)||this._callbacks.set(e,t)}remove_on_change(e){this._callbacks.delete(e)}_trigger_on_change(e){for(const[t,s]of this._callbacks)if(!s&&e instanceof E.DocumentEventBatch)for(const s of e.events)t(s);else t(e)}_trigger_on_event(e){const t=this._document_callbacks.get(e.event_name);if(null!=t)for(const s of t)(0,w.execute)(s,this,e)}on_event(e,...t){const s=(0,u.isString)(e)?e:e.prototype.event_name,o=this._document_callbacks.get(s)??[],n=t;this._document_callbacks.set(s,[...o,...n])}to_json_string(e=!0){return JSON.stringify(this.to_json(e))}to_json(e=!0){const t=new c.Serializer({include_defaults:e}).encode(this._roots);return{version:l.version,title:this._title,roots:t}}static from_json_string(e,t){const s=JSON.parse(e);return M.from_json(s,t)}static _handle_version(e){null==e.version&&r.logger.warn("'version' field is missing");const t=e.version??"0.0.0",s=d.Version.from(t),o=d.Version.from(l.version),n=`new document using Bokeh ${t} and BokehJS ${l.version}`;(0,f.is_equal)(s,o)?r.logger.debug(n):r.logger.warn(`Bokeh/BokehJS version mismatch: ${n}`)}static from_json(e,t){r.logger.debug("Creating Document from JSON"),M._handle_version(e);const s=new a.ModelResolver(_.default_resolver);if(null!=e.defs){new h.Deserializer(s).decode(e.defs)}const o=new M({resolver:s});o._push_all_models_freeze();const n=e=>t?.push(e);o.on_change(n,!0);const i=new h.Deserializer(s,o._all_models,(e=>e.attach_document(o))),l=i.decode(e.roots),c=null!=e.callbacks?i.decode(e.callbacks):{};o.remove_on_change(n);for(const[e,t]of(0,v.entries)(c))o.on_event(e,...t);for(const e of l)o.add_root(e);return null!=e.title&&o.set_title(e.title),o._pop_all_models_freeze(),o}replace_with_json(e){M.from_json(e).destructively_move(this)}create_json_patch(e){for(const t of e)if(t.document!=this)throw new Error("Cannot create a patch using events from a different document");const t=new Map;for(const e of this._all_models.values())this._new_models.has(e)||t.set(e,e.ref());const s={events:new c.Serializer({references:t,binary:!0}).encode(e)};return this._new_models.clear(),s}apply_json_patch(e,t=new Map){this._push_all_models_freeze();const s=new h.Deserializer(this._resolver,this._all_models,(e=>e.attach_document(this))).decode(e.events,t);for(const e of s)switch(e.kind){case"MessageSent":{const{msg_type:t,msg_data:s}=e;this._trigger_on_message(t,s);break}case"ModelChanged":{const{model:t,attr:s,new:o}=e;t.setv({[s]:o},{sync:!1});break}case"ColumnDataChanged":{const{model:t,attr:s,data:o,cols:n}=e;if(null!=n){const e=(0,v.dict)(o),n=(0,v.dict)(t.property(s).get_value());for(const[t,s]of n)e.has(t)||e.set(t,s)}t.setv({data:o},{sync:!1,check_eq:!1});break}case"ColumnsStreamed":{const{model:t,attr:s,data:o,rollover:n}=e,i=t.property(s);t.stream_to(i,o,n,{sync:!1});break}case"ColumnsPatched":{const{model:t,attr:s,patches:o}=e,n=t.property(s);t.patch_to(n,o,{sync:!1});break}case"RootAdded":this.add_root(e.model,{sync:!1});break;case"RootRemoved":this.remove_root(e.model,{sync:!1});break;case"TitleChanged":this.set_title(e.title,{sync:!1});break;default:throw new Error(`unknown patch event type '${e.kind}'`)}this._pop_all_models_freeze()}}s.Document=M,M.__name__="Document"}, -function _(e,r,t,n,s){n();const l=e(8),o=e(9),i=e(8),u=e(14),f=e(46);t.default_resolver=new f.ModelResolver(null),t.Models=new Proxy(t.default_resolver,{get(e,r,t){if((0,i.isString)(r)){const t=e.get(r);if(null!=t)return t}return Reflect.get(e,r,t)},has(e,r){if((0,i.isString)(r)){if(null!=e.get(r))return!0}return Reflect.has(e,r)},ownKeys:e=>e.names,getOwnPropertyDescriptor(e,r){if((0,i.isString)(r)){const t=e.get(r);if(null!=t)return{configurable:!0,enumerable:!0,writable:!1,value:t}}return Reflect.getOwnPropertyDescriptor(e,r)}}),t.register_models=function(e,r=!1){for(const s of(0,l.isArray)(e)?e:(0,o.values)(e))n=s,(0,l.isObject)(n)&&n.prototype instanceof u.HasProps&&t.default_resolver.register(s,r);var n}}, -function _(n,t,r,i,e){i(); +function _(e,r,t,n,s){n(),t.register_models=function(e,r=!1){for(const s of(0,l.isArray)(e)?e:(0,o.values)(e))n=s,(0,l.isObject)(n)&&n.prototype instanceof u.HasProps&&t.default_resolver.register(s,r);var n};const l=e(8),o=e(9),i=e(8),u=e(14),f=e(46);t.default_resolver=new f.ModelResolver(null),t.Models=new Proxy(t.default_resolver,{get(e,r,t){if((0,i.isString)(r)){const t=e.get(r);if(null!=t)return t}return Reflect.get(e,r,t)},has(e,r){if((0,i.isString)(r)){if(null!=e.get(r))return!0}return Reflect.has(e,r)},ownKeys:e=>e.names,getOwnPropertyDescriptor(e,r){if((0,i.isString)(r)){const t=e.get(r);if(null!=t)return{configurable:!0,enumerable:!0,writable:!1,value:t}}return Reflect.getOwnPropertyDescriptor(e,r)}})}, +function _(n,t,r,e,i){e(),r.is_undefined=function(n){return void 0===n},r.is_defined=function(n){return void 0!==n},r.is_nullish=c,r.isBoolean=u,r.isNumber=s,r.isInteger=function(n){return s(n)&&Number.isInteger(n)},r.isString=f,r.isSymbol=a,r.isPrimitive=function(n){return null===n||u(n)||s(n)||f(n)||a(n)},r.isFunction=function(n){switch(o.call(n)){case"[object Function]":case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":return!0;default:return!1}},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isArrayableOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isTypedArray=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},r.isObject=l,r.isBasicObject=function(n){return l(n)&&c(n.constructor)},r.isPlainObject=b,r.isDict=function(n){return n instanceof Map||b(n)},r.isIterable=y,r.isArrayable=function(n){return y(n)&&"length"in n}; // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. -const{toString:o}=Object.prototype;function u(n){return null==n}function c(n){return null!=n}function s(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)}function f(n){return"[object Number]"===o.call(n)}function l(n){return"[object String]"===o.call(n)}function a(n){return"symbol"==typeof n}function b(n){const t=typeof n;return"function"===t||"object"===t&&!!n}function y(n){return b(n)&&(u(n.constructor)||n.constructor===Object)}function j(n){return b(n)&&Symbol.iterator in n}r.is_undefined=function(n){return void 0===n},r.is_defined=function(n){return void 0!==n},r.is_nullish=u,r.isNull=function(n){return null==n},r.isNotNull=c,r.non_null=c,r.isBoolean=s,r.isNumber=f,r.isInteger=function(n){return f(n)&&Number.isInteger(n)},r.isString=l,r.isSymbol=a,r.isPrimitive=function(n){return null===n||s(n)||f(n)||l(n)||a(n)},r.isFunction=function(n){switch(o.call(n)){case"[object Function]":case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":return!0;default:return!1}},r.isArray=function(n){return Array.isArray(n)},r.isArrayOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isArrayableOf=function(n,t){for(const r of n)if(!t(r))return!1;return!0},r.isTypedArray=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},r.isObject=b,r.isBasicObject=function(n){return b(n)&&u(n.constructor)},r.isPlainObject=y,r.isDict=function(n){return n instanceof Map||y(n)},r.isIterable=j,r.isArrayable=function(n){return j(n)&&"length"in n}}, -function _(e,t,n,s,i){var o;s();const r=e(8),c=e(10);function a(e){return e instanceof Map?[...e.keys()]:Object.keys(e)}function u(e){return e instanceof Map?[...e.values()]:Object.values(e)}function b(e){return e instanceof Map?[...e.entries()]:Object.entries(e)}function l(e){return e instanceof Map?e.size:Object.keys(e).length}n.assign=Object.assign,n.extend=n.assign,n.to_object=function(e){return(0,r.isPlainObject)(e)?e:Object.fromEntries(e)},n.keys=a,n.values=u,n.entries=b,n.typed_keys=Object.keys,n.typed_values=Object.values,n.typed_entries=Object.entries,n.clone=function(e){return e instanceof Map?new Map(e):{...e}},n.merge=function(e,t){const n=new Map,s=[...e.keys(),...t.keys()];for(const i of s){const s=e.get(i),o=t.get(i),r=void 0===s?[]:s,a=void 0===o?[]:o;n.set(i,(0,c.union)(r,a))}return n},n.size=l,n.is_empty=function(e){return 0==l(e)};const{hasOwnProperty:j}=Object.prototype;class h{constructor(e){this[o]="PlainObjectProxy",this.obj=e}clear(){for(const e of this.keys())delete this.obj[e]}delete(e){const t=this.has(e);return t&&delete this.obj[e],t}has(e){return j.call(this.obj,e)}get(e){return this.has(e)?this.obj[e]:void 0}set(e,t){return this.obj[e]=t,this}get size(){return l(this.obj)}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){yield*a(this.obj)}*values(){yield*u(this.obj)}*entries(){yield*b(this.obj)}forEach(e,t){for(const[n,s]of this.entries())e.call(t,s,n,this)}}n.PlainObjectProxy=h,h.__name__="PlainObjectProxy",n.dict=function(e){return(0,r.isPlainObject)(e)?new h(e):e}}, -function _(n,t,e,r,o){r(); +const{toString:o}=Object.prototype;function c(n){return null==n}function u(n){return!0===n||!1===n||"[object Boolean]"===o.call(n)}function s(n){return"[object Number]"===o.call(n)}function f(n){return"[object String]"===o.call(n)}function a(n){return"symbol"==typeof n}function l(n){const t=typeof n;return"function"===t||"object"===t&&!!n}function b(n){return l(n)&&(c(n.constructor)||n.constructor===Object)}function y(n){return l(n)&&Symbol.iterator in n}}, +function _(e,t,n,s,i){var o;s(),n.to_object=function(e){return(0,r.isPlainObject)(e)?e:Object.fromEntries(e)},n.keys=a,n.values=u,n.entries=b,n.clone=function(e){return e instanceof Map?new Map(e):{...e}},n.merge=function(e,t){const n=new Map,s=[...e.keys(),...t.keys()];for(const i of s){const s=e.get(i),o=t.get(i),r=void 0===s?[]:s,a=void 0===o?[]:o;n.set(i,(0,c.union)(r,a))}return n},n.size=l,n.is_empty=function(e){return 0==l(e)},n.dict=function(e){return(0,r.isPlainObject)(e)?new h(e):e};const r=e(8),c=e(10);function a(e){return e instanceof Map?[...e.keys()]:Object.keys(e)}function u(e){return e instanceof Map?[...e.values()]:Object.values(e)}function b(e){return e instanceof Map?[...e.entries()]:Object.entries(e)}function l(e){return e instanceof Map?e.size:Object.keys(e).length}n.assign=Object.assign,n.extend=n.assign,n.typed_keys=Object.keys,n.typed_values=Object.values,n.typed_entries=Object.entries;const{hasOwnProperty:j}=Object.prototype;class h{constructor(e){this[o]="PlainObjectProxy",this.obj=e}clear(){for(const e of this.keys())delete this.obj[e]}delete(e){const t=this.has(e);return t&&delete this.obj[e],t}has(e){return j.call(this.obj,e)}get(e){return this.has(e)?this.obj[e]:void 0}set(e,t){return this.obj[e]=t,this}get size(){return l(this.obj)}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){yield*a(this.obj)}*values(){yield*u(this.obj)}*entries(){yield*b(this.obj)}forEach(e,t){for(const[n,s]of this.entries())e.call(t,s,n,this)}}n.PlainObjectProxy=h,h.__name__="PlainObjectProxy"}, +function _(n,t,e,r,o){r(),e.head=function(n){if(0!=n.length)return n[0];throw new Error("out of bounds access")},e.last=function(n){if(0!=n.length)return n[n.length-1];throw new Error("out of bounds access")},e.copy=a,e.concat=function(n){return[].concat(...n)},e.nth=function(n,t){return n[t>=0?t:n.length+t]},e.zip=function(...n){if(0==n.length)return[];const t=(0,u.min)(n.map((n=>n.length))),e=n.length,r=new Array(t);for(let o=0;on.length))),r=Array(e);for(let n=0;nn[t]))},e.argmax=function(n){return(0,u.max_by)(h(n.length),(t=>n[t]))},e.uniq=function(n){const t=new Set;for(const e of n)t.add(e);return[...t]},e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);(0,u.includes)(r,n)||(r.push(n),e.push(o))}return e},e._union=m,e.union=function(...n){return[...m(n)]},e.intersection=function(n,...t){const e=[];n:for(const r of n)if(!(0,u.includes)(e,r)){for(const n of t)if(!(0,u.includes)(n,r))continue n;e.push(r)}return e},e.difference=function(n,...t){const e=m(t);return(0,u.filter)(n,(n=>!e.has(n)))},e.symmetric_difference=function(n,t){const e=new Set(n),r=new Set(t),o=[];for(const n of e)r.has(n)||o.push(n);for(const n of r)e.has(n)||o.push(n);return o},e.remove_at=function(n,t){(0,c.assert)((0,s.isInteger)(t)&&t>=0);const e=a(n);return e.splice(t,1),e},e.remove=function(n,t){d(n,(n=>n==t))},e.remove_by=d,e.clear=function(n){n.splice(0,n.length)},e.split=function(n,t){const e=[],r=n.length;let o=0,i=0;for(;i=t)return n.slice(0,t);{const r=new Array(t-n.length);return void 0!==e&&r.fill(e),n.concat(r)}}; // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. -const i=n(11),c=n(12),s=n(8),u=n(13);var f=n(13);o("map",f.map),o("reduce",f.reduce),o("min",f.min),o("min_by",f.min_by),o("max",f.max),o("max_by",f.max_by),o("sum",f.sum),o("cumsum",f.cumsum),o("every",f.every),o("some",f.some),o("find",f.find),o("find_last",f.find_last),o("find_index",f.find_index),o("find_last_index",f.find_last_index),o("sorted_index",f.sorted_index),o("is_empty",f.is_empty),o("includes",f.includes),o("contains",f.contains),o("sort_by",f.sort_by);const{slice:l}=Array.prototype;function a(n){return l.call(n)}function h(n,t,e=1){(0,c.assert)(e>0,"'step' must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:o,abs:i}=Math,s=n<=t?e:-e,u=r(o(i(t-n)/e),0),f=new Array(u);for(let t=0;t=0?t:n.length+t]},e.zip=function(...n){if(0==n.length)return[];const t=(0,u.min)(n.map((n=>n.length))),e=n.length,r=new Array(t);for(let o=0;on.length))),r=Array(e);for(let n=0;nn[t]))},e.argmax=function(n){return(0,u.max_by)(h(n.length),(t=>n[t]))},e.uniq=function(n){const t=new Set;for(const e of n)t.add(e);return[...t]},e.uniq_by=function(n,t){const e=[],r=[];for(const o of n){const n=t(o);(0,u.includes)(r,n)||(r.push(n),e.push(o))}return e},e._union=m,e.union=function(...n){return[...m(n)]},e.intersection=function(n,...t){const e=[];n:for(const r of n)if(!(0,u.includes)(e,r)){for(const n of t)if(!(0,u.includes)(n,r))continue n;e.push(r)}return e},e.difference=function(n,...t){const e=m(t);return(0,u.filter)(n,(n=>!e.has(n)))},e.symmetric_difference=function(n,t){const e=new Set(n),r=new Set(t),o=[];for(const n of e)r.has(n)||o.push(n);for(const n of r)e.has(n)||o.push(n);return o},e.remove_at=function(n,t){(0,c.assert)((0,s.isInteger)(t)&&t>=0);const e=a(n);return e.splice(t,1),e},e.remove=function(n,t){d(n,(n=>n==t))},e.remove_by=d,e.clear=function(n){n.splice(0,n.length)},e.split=function(n,t){const e=[],r=n.length;let o=0,i=0;for(;i=t)return n.slice(0,t);{const r=new Array(t-n.length);return void 0!==e&&r.fill(e),n.concat(r)}}}, -function _(n,t,r,o,e){o();const a=n(8),c=n(12),{PI:u,abs:i,sign:f,sqrt:l}=Math;function s(n){if(0==n)return 0;for(;n<=0;)n+=2*u;for(;n>2*u;)n-=2*u;return n}function h(n,t){return s(n-t)}function g(n,t,r="anticlock"){return-("anticlock"==r?1:-1)*n*m(t)}function m(n){switch(n){case"deg":return u/180;case"rad":return 1;case"grad":return u/200;case"turn":return 2*u}}function _(n,t){for(n=Math.abs(n),t=Math.abs(t);0!=t;)[n,t]=[t,n%t];return n}r.PI=u,r.abs=i,r.sqrt=l,r.angle_norm=s,r.angle_dist=h,r.angle_between=function(n,t,r,o=!1){const e=h(t,r);if(0==e)return!1;if(e==2*u)return!0;const a=s(n),c=h(t,a)<=e&&h(a,r)<=e;return o?!c:c},r.randomIn=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},r.atan2=function(n,t){return Math.atan2(t[1]-n[1],t[0]-n[0])},r.radians=function(n){return n*(u/180)},r.degrees=function(n){return n/(u/180)},r.compute_angle=g,r.resolve_angle=g,r.invert_angle=function(n,t,r="anticlock"){return-("anticlock"==r?1:-1)*n/m(t)},r.to_radians_coeff=m,r.minmax=function(n,t){return n<=t?[n,t]:[t,n]},r.clamp=function(n,t,r){return nr?r:n},r.cycle=function(n,t,r){return n>r?t:n=0;e--)r+=o*n[e],o*=t;return r}}, -function _(r,e,n,o,s){o();class a extends Error{}n.AssertionError=a,a.__name__="AssertionError";class t extends Error{}function c(r,e){if(!(!0===r||!1!==r&&r()))throw new a(e??"Assertion failed")}n.UnreachableError=t,t.__name__="UnreachableError",n.assert=c,n.assert_debug=function(r,e){"undefined"!=typeof DEBUG&&DEBUG&&c(r,e)},n.unreachable=function(r){throw new t(`unreachable code${null!=r?`: ${r}`:""}`)}}, -function _(n,t,e,r,o){r();const i=n(11),c=n(12),{floor:u}=Math;function f(n){const t=n.length;if(0==t)return!0;let e=n[0];for(let r=1;ro&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const i=o-e+r.length,c=new n.constructor(i);let u=0;for(;u0?0:r-1;for(;o>=0&&of(n))),(0,c.assert)(0<=r&&o<=n.length);rf(n))),(0,c.assert)(0<=r&&o<=n.length);rn),e,r)}function p(n,t,e,r,o){const i=(o-e)/(r-t);let c=i*(n-t)+e;return isFinite(c)||(c=i*(n-r)+o,isFinite(c)||e!=o||(c=e)),c}function w(n,t){if(nt[t.length-1])return t.length;if(1==t.length)return 0;let e=0,r=t.length-1;for(;r-e!=1;){const o=e+Math.floor((r-e)/2);n>=t[o]?e=o:r=o}return e}e.is_empty=function(n){return 0==n.length},e.is_sorted=f,e.copy=l,e.splice=s,e.head=a,e.insert=function(n,t,e){return s(n,e,0,t)},e.append=function(n,t){return s(n,n.length,0,t)},e.prepend=function(n,t){return s(n,0,0,t)},e.index_of=function(n,t){return n.indexOf(t)},e.includes=h,e.contains=h,e.subselect=function(n,t){const e=t.length,r=new n.constructor(e);for(let o=0;o({index:e,key:t(n)})));return e.sort(((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r)return 1;if(en[e[r].index]))},e.min=function(n){let t=1/0;for(const e of n)!isNaN(e)&&et&&(t=e);return t},e.minmax=function(n){let t=1/0,e=-1/0;for(const r of n)isNaN(r)||(re&&(e=r));return[t,e]},e.minmax2=function(n,t){let e,r,o=1/0,i=-1/0,c=1/0,u=-1/0;const f=Math.min(n.length,t.length);for(let l=0;li&&(i=e),ru&&(u=r));return[o,i,c,u]},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e,0);for(let o=1,i=n.length;or&&(e=i,r=c)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;et[r]=n+e),0),t},e.every=function(n,t){for(const e of n)if(!t(e))return!1;return!0},e.some=function(n,t){for(const e of n)if(t(e))return!0;return!1},e.find_index=_(1),e.find_last_index=_(-1),e.find=function(n,t){const r=(0,e.find_index)(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=(0,e.find_last_index)(n,t);return-1==r?void 0:n[r]},e.bisect_left_by=y,e.bisect_right_by=m,e.bisect_left=x,e.bisect_right=function(n,t,e=0,r){return m(n,t,(n=>n),e,r)},e.binary_search=function(n,t){const e=x(n,t);return e!=n.length&&n[e]==t?e:null},e.sorted_index=x,e.bin_counts=function(n,t){const r=t.length-1,o=Array(r).fill(0);for(let c=0;c(n-t)/r))}}, +const i=n(11),c=n(12),s=n(8),u=n(13);var f=n(13);o("map",f.map),o("reduce",f.reduce),o("min",f.min),o("min_by",f.min_by),o("max",f.max),o("max_by",f.max_by),o("sum",f.sum),o("cumsum",f.cumsum),o("every",f.every),o("some",f.some),o("find",f.find),o("find_last",f.find_last),o("find_index",f.find_index),o("find_last_index",f.find_last_index),o("sorted_index",f.sorted_index),o("is_empty",f.is_empty),o("includes",f.includes),o("contains",f.contains),o("sort_by",f.sort_by);const{slice:l}=Array.prototype;function a(n){return l.call(n)}function h(n,t,e=1){(0,c.assert)(e>0,"'step' must be a positive number"),null==t&&(t=n,n=0);const{max:r,ceil:o,abs:i}=Math,s=n<=t?e:-e,u=r(o(i(t-n)/e),0),f=new Array(u);for(let t=0;tr?r:n},r.cycle=function(n,t,r){if(n>r)return t;if(n=0;a--)o+=e*n[a],e*=t;return o};const a=n(8),c=n(12),{PI:u,abs:i,sign:f,sqrt:l}=Math;function s(n){if(0==n)return 0;for(;n<=0;)n+=2*u;for(;n>2*u;)n-=2*u;return n}function h(n,t){return s(n-t)}function g(n,t,r="anticlock"){return-("anticlock"==r?1:-1)*n*m(t)}function m(n){switch(n){case"deg":return u/180;case"rad":return 1;case"grad":return u/200;case"turn":return 2*u}}function _(n,t){for(n=Math.abs(n),t=Math.abs(t);0!=t;)[n,t]=[t,n%t];return n}r.PI=u,r.abs=i,r.sqrt=l,r.resolve_angle=g,r.float=Symbol("float");class d{constructor(n,t){(0,c.assert)(0!=t,"Zero divisor");const r=_(n,t),o=f(n)*f(t);this.numer=o*i(n)/r,this.denom=i(t)/r}[r.float](){return this.numer/this.denom}toString(){return`${this.numer}/${this.denom}`}}function M(n){let t=1;for(let r=2;r<=n;r++)t*=r;return t}r.Fraction=d,d.__name__="Fraction",r.float32_epsilon=1.1920928955078125e-7}, +function _(r,e,n,o,s){o(),n.assert=c,n.assert_debug=function(r,e){"undefined"!=typeof DEBUG&&DEBUG&&c(r,e)},n.unreachable=function(r){throw new t("unreachable code"+(null!=r?`: ${r}`:""))};class a extends Error{}n.AssertionError=a,a.__name__="AssertionError";class t extends Error{}function c(r,e){if(!(!0===r||!1!==r&&r()))throw new a(e??"Assertion failed")}n.UnreachableError=t,t.__name__="UnreachableError"}, +function _(n,t,e,r,o){r(),e.is_empty=function(n){return 0==n.length},e.is_sorted=f,e.copy=l,e.splice=s,e.head=a,e.insert=function(n,t,e){return s(n,e,0,t)},e.append=function(n,t){return s(n,n.length,0,t)},e.prepend=function(n,t){return s(n,0,0,t)},e.index_of=function(n,t){return n.indexOf(t)},e.includes=h,e.subselect=function(n,t){const e=t.length,r=new n.constructor(e);for(let o=0;o({index:e,key:t(n)})));return e.sort(((n,t)=>{const e=n.key,r=t.key;if(e!==r){if(e>r)return 1;if(en[e[r].index]))},e.min=function(n){let t=1/0;for(const e of n)!isNaN(e)&&et&&(t=e);return t},e.minmax=function(n){let t=1/0,e=-1/0;for(const r of n)isNaN(r)||(re&&(e=r));return[t,e]},e.minmax2=function(n,t){let e,r,o=1/0,i=-1/0,c=1/0,u=-1/0;const f=Math.min(n.length,t.length);for(let l=0;li&&(i=e),ru&&(u=r));return[o,i,c,u]},e.min_by=function(n,t){if(0==n.length)throw new Error("min_by() called with an empty array");let e=n[0],r=t(e,0);for(let o=1,i=n.length;or&&(e=i,r=c)}return e},e.sum=function(n){let t=0;for(let e=0,r=n.length;et[r]=n+e),0),t},e.every=function(n,t){for(const e of n)if(!t(e))return!1;return!0},e.some=function(n,t){for(const e of n)if(t(e))return!0;return!1},e.find=function(n,t){const r=(0,e.find_index)(n,t);return-1==r?void 0:n[r]},e.find_last=function(n,t){const r=(0,e.find_last_index)(n,t);return-1==r?void 0:n[r]},e.bisect_left_by=y,e.bisect_right_by=m,e.bisect_left=x,e.bisect_right=function(n,t,e=0,r){return m(n,t,(n=>n),e,r)},e.binary_search=function(n,t){const e=x(n,t);return e!=n.length&&n[e]==t?e:null},e.bin_counts=function(n,t){const r=t.length-1,o=Array(r).fill(0);for(let c=0;c(n-t)/r))};const i=n(11),c=n(12),{floor:u}=Math;function f(n){const t=n.length;if(0==t)return!0;let e=n[0];for(let r=1;ro&&(t=o),null==e||e>o-t?e=o-t:e<0&&(e=0);const i=o-e+r.length,c=new n.constructor(i);let u=0;for(;u0?0:r-1;for(;o>=0&&of(n))),(0,c.assert)(0<=r&&o<=n.length);rf(n))),(0,c.assert)(0<=r&&o<=n.length);rn),e,r)}function p(n,t,e,r,o){const i=(o-e)/(r-t);let c=i*(n-t)+e;return isFinite(c)||(c=i*(n-r)+o,isFinite(c)||e!=o||(c=e)),c}function w(n,t){if(nt[t.length-1])return t.length;if(1==t.length)return 0;let e=0,r=t.length-1;for(;r-e!=1;){const o=e+Math.floor((r-e)/2);n>=t[o]?e=o:r=o}return e}e.contains=h,e.find_index=_(1),e.find_last_index=_(-1),e.sorted_index=x}, function _(t,e,s,n,i){var r;n();const o=t(1),c=t(15),a=t(17),h=o.__importStar(t(18)),_=o.__importStar(t(21)),u=t(12),l=t(40),f=t(9),p=t(8),d=t(32),g=t(41),y=t(26),m=t(42),v=t(31),w=o.__importStar(t(21)),b=t(28),S=t(43),$=new WeakMap;class x extends((0,c.Signalable)()){get is_syncable(){return!0}get type(){return this.constructor.__qualified__}static get __qualified__(){let t=$.get(this);if(null==t){const{__module__:e,__name__:s}=this;t=null!=e?`${e}.${s}`:s,$.set(this,t)}return t}static set __qualified__(t){$.set(this,t)}get[Symbol.toStringTag](){return this.constructor.__qualified__}static _fix_default(t,e){if(void 0===t||t===h.unset)return()=>h.unset;if((0,p.isFunction)(t))return t;if((0,p.isPrimitive)(t))return()=>t;{const e=new v.Cloner;return()=>e.clone(t)}}static define(t){for(const[e,s]of(0,f.entries)((0,p.isFunction)(t)?t(w):t)){if(e in this.prototype._props)throw new Error(`attempted to redefine property '${this.prototype.type}.${e}'`);if(e in this.prototype)throw new Error(`attempted to redefine attribute '${this.prototype.type}.${e}'`);Object.defineProperty(this.prototype,e,{get(){return this.properties[e].get_value()},set(t){return this.setv({[e]:t}),this},configurable:!1,enumerable:!0});const[t,n,i={}]=s,r={type:t,default_value:this._fix_default(n,e),options:i};this.prototype._props={...this.prototype._props,[e]:r}}}static internal(t){const e={};for(const[s,n]of(0,f.entries)((0,p.isFunction)(t)?t(w):t)){const[t,i,r={}]=n;e[s]=[t,i,{...r,internal:!0}]}this.define(e)}static mixins(t){function e(t,e){const s={};for(const[n,i]of(0,f.entries)(e))s[t+n]=i;return s}const s={},n=[];for(const i of(0,p.isArray)(t)?t:[t])if((0,p.isArray)(i)){const[t,r]=i;(0,f.extend)(s,e(t,r)),n.push([t,r])}else{const t=i;(0,f.extend)(s,t),n.push(["",t])}this.define(s),this.prototype._mixins=[...this.prototype._mixins,...n]}static override(t){for(const[e,s]of(0,f.entries)(t)){const t=this._fix_default(s,e);if(!(e in this.prototype._props))throw new Error(`attempted to override nonexistent '${this.prototype.type}.${e}'`);const n=this.prototype._props[e],i={...this.prototype._props};i[e]={...n,default_value:t},this.prototype._props=i}}static toString(){return this.__qualified__}toString(){return`${this.type}(${this.id})`}property(t){if(t in this.properties)return this.properties[t];throw new Error(`unknown property ${this.type}.${t}`)}get attributes(){const t={};for(const e of this)e.is_unset||(t[e.attr]=e.get_value());return t}[v.clone](t){const e=new Map;for(const s of this)s.dirty&&e.set(s.attr,t.clone(s.get_value()));return new this.constructor(e)}[y.equals](t,e){for(const s of this){const n=t.property(s.attr);if(!e.eq(s.get_value(),n.get_value()))return!1}return!0}[m.pretty](t){const e=t.token,s=[];for(const n of this)if(n.dirty){const i=n.get_value();s.push(`${n.attr}${e(":")} ${t.to_string(i)}`)}return`${this.constructor.__qualified__}${e("(")}${e("{")}${s.join(`${e(",")} `)}${e("}")}${e(")")}`}[d.serialize](t){const e=this.ref();t.add_ref(this,e);const s={};for(const e of this)if(e.syncable&&(t.include_defaults||e.dirty)&&(!e.readonly||!e.is_unset)){const n=e.get_value();s[e.attr]=t.encode(n)}const{type:n,id:i}=this,r={type:"object",name:n,id:i};return(0,f.is_empty)(s)?r:{...r,attributes:s}}constructor(t={}){super(),this.document=null,this.destroyed=new c.Signal0(this,"destroyed"),this.change=new c.Signal0(this,"change"),this.transformchange=new c.Signal0(this,"transformchange"),this.exprchange=new c.Signal0(this,"exprchange"),this.streaming=new c.Signal0(this,"streaming"),this.patching=new c.Signal(this,"patching"),this.properties={},this._watchers=new WeakMap,this._pending=!1,this._changing=!1;const e=(0,p.isPlainObject)(t)&&"id"in t;this.id=e?t.id:(0,l.unique_id)();for(const[t,{type:e,default_value:s,options:n}]of(0,f.entries)(this._props)){let i;if(e instanceof h.PropertyAlias){const s=this.properties[e.attr];if(void 0===s)throw new Error(`can't resolve ${e.attr} before ${t} to create an alias`);Object.defineProperty(this.properties,t,{get:()=>s,configurable:!1,enumerable:!1})}else i=e instanceof _.Kind?new h.PrimitiveProperty(this,t,e,s,n):new e(this,t,_.Any,s,n),this.properties[t]=i}e?(0,u.assert)(1==(0,f.keys)(t).length,"'id' cannot be used together with property initializers"):(this.initialize_props(t),this.finalize(),this.connect_signals())}initialize_props(t){const e=(0,f.dict)(t),s=new Set;for(const t of this){const n=e.get(t.attr);t.initialize(n),s.add(t.attr)}for(const[t,n]of e)s.has(t)||this.property(t).set_value(n)}finalize(){this.initialize()}initialize(){}assert_initialized(){for(const t of this)t.syncable&&!t.readonly&&t.get_value()}connect_signals(){for(const t of this){if(!(t instanceof h.VectorSpec||t instanceof h.ScalarSpec))continue;if(t.is_unset)continue;const e=t.get_value();null!=e.transform&&this.connect(e.transform.change,(()=>this.transformchange.emit())),(0,b.isExpr)(e)&&this.connect(e.expr.change,(()=>this.exprchange.emit()))}}disconnect_signals(){c.Signal.disconnect_receiver(this)}destroy(){this.disconnect_signals(),this.destroyed.emit()}clone(t){const e=(new v.Cloner).clone(this);return null!=t&&e.setv(t),e}_clear_watchers(){this._watchers=new WeakMap}changed_for(t){const e=this._watchers.get(t);return this._watchers.set(t,!1),e??!0}_setv(t,e){const s=e.check_eq,n=new Set,i=this._changing;this._changing=!0;for(const[e,i]of t)!1!==s&&!e.is_unset&&(0,y.is_equal)(e.get_value(),i)||(e.set_value(i),n.add(e));n.size>0&&(this._clear_watchers(),this._pending=!0);for(const t of n)t.change.emit();if(!i){if(!e.no_change)for(;this._pending;)this._pending=!1,this.change.emit();this._pending=!1,this._changing=!1}return n}setv(t,e={}){const s=(0,f.entries)(t);if(0==s.length)return;if(e.silent){this._clear_watchers();for(const[t,e]of s)this.properties[t].set_value(e);return}const n=new Map,i=new Map;for(const[t,e]of s){const s=this.properties[t];n.set(s,e),i.set(s,s.is_unset?void 0:s.get_value())}const r=this._setv(n,e),{document:o}=this;if(null!=o){const t=[];for(const[e,s]of i)r.has(e)&&t.push([e,s,e.get_value()]);for(const[e,s,n]of t)if(e.may_have_refs&&this._needs_invalidate(s,n)){o._invalidate_all_models();break}const s=e.sync??!0;this._push_changes(t,s)}}ref(){return{id:this.id}}*[Symbol.iterator](){yield*(0,f.values)(this.properties)}*syncable_properties(){for(const t of this)t.syncable&&(yield t)}*own_properties(){const t=Object.getPrototypeOf(this),e=Object.getPrototypeOf(t),s=new Set((0,f.keys)(e._props));for(const t of this)s.has(t.attr)||(yield t)}static _value_record_references(t,e,s){if(!(0,p.isObject)(t)||!(0,a.may_have_refs)(t))return;const{recursive:n}=s;if(t instanceof r){if(!e.has(t)&&(e.add(t),n))for(const s of t.syncable_properties())if(!s.is_unset&&s.may_have_refs){const t=s.get_value();r._value_record_references(t,e,{recursive:n})}}else if((0,p.isIterable)(t))for(const s of t)r._value_record_references(s,e,{recursive:n});else if((0,p.isPlainObject)(t))for(const s of(0,f.values)(t))r._value_record_references(s,e,{recursive:n})}static references(t,e){const s=new Set;return r._value_record_references(t,s,e),s}references(){return r.references(this,{recursive:!0})}_doc_attached(){}_doc_detached(){}attach_document(t){if(null!=this.document){if(this.document==t)return;throw new Error("models must be owned by only a single document")}this.document=t,this._doc_attached()}detach_document(){this._doc_detached(),this.document=null}_needs_invalidate(t,e){const s=new Set;r._value_record_references(e,s,{recursive:!1});const n=new Set;r._value_record_references(t,n,{recursive:!1});for(const t of s)if(!n.has(t))return!0;for(const t of n)if(!s.has(t))return!0;return!1}_push_changes(t,e){if(!this.is_syncable)return;const{document:s}=this;if(null==s)return;const n=[];for(const[i,,r]of t)if(i.syncable){const t=new g.ModelChangedEvent(s,this,i.attr,r);t.sync=e,n.push(t)}if(0!=n.length){let t;1==n.length?[t]=n:t=new g.DocumentEventBatch(s,n),s._trigger_on_change(t)}}on_change(t,e){for(const s of(0,p.isArray)(t)?t:[t])this.connect(s.change,e)}stream_to(t,e,s,{sync:n}={}){const i=t.get_value();if((0,S.stream_to_columns)(i,e,s),this._clear_watchers(),t.set_value(i),this.streaming.emit(),null!=this.document){const i=new g.ColumnsStreamedEvent(this.document,this,t.attr,e,s);i.sync=n??!0,this.document._trigger_on_change(i)}}patch_to(t,e,{sync:s}={}){const n=t.get_value(),i=(0,S.patch_to_columns)(n,e);if(this._clear_watchers(),t.set_value(n),this.patching.emit([...i]),null!=this.document){const n=new g.ColumnsPatchedEvent(this.document,this,t.attr,e);n.sync=s??!0,this.document._trigger_on_change(n)}}}s.HasProps=x,(r=x).prototype._props={},r.prototype._mixins=[]}, -function _(n,e,t,s,r){s();const l=n(16),i=n(10);class o{constructor(n,e){this.sender=n,this.name=e}connect(n,e=null){t.receivers_for_sender.has(this.sender)||t.receivers_for_sender.set(this.sender,[]);const s=t.receivers_for_sender.get(this.sender);if(null!=f(s,this,n,e))return!1;const r=e??n;u.has(r)||u.set(r,[]);const l=u.get(r),i={signal:this,slot:n,context:e};return s.push(i),l.push(i),!0}disconnect(n,e=null){const s=t.receivers_for_sender.get(this.sender);if(null==s||0===s.length)return!1;const r=f(s,this,n,e);if(null==r)return!1;const l=e??n,i=u.get(l);return r.signal=null,g(s),g(i),!0}emit(n){const e=t.receivers_for_sender.get(this.sender)??[];for(const{signal:t,slot:s,context:r}of e)t===this&&s.call(r,n,this.sender)}}t.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}t.Signal0=c,c.__name__="Signal0",function(n){n.disconnect_between=function(n,e){const s=t.receivers_for_sender.get(n);if(null==s||0===s.length)return;const r=u.get(e);if(null!=r&&0!==r.length){for(const e of r){if(null==e.signal)return;e.signal.sender===n&&(e.signal=null)}g(s),g(r)}},n.disconnect_sender=function(n){const e=t.receivers_for_sender.get(n);if(null!=e&&0!==e.length){for(const n of e){if(null==n.signal)return;const e=n.context??n.slot;n.signal=null,g(u.get(e))}g(e)}},n.disconnect_receiver=function(n,e,s){const r=u.get(n);if(null!=r&&0!==r.length){for(const n of r){if(null==n.signal)return;if(null!=e&&n.slot!=e)continue;const r=n.signal.sender;null!=s&&s.has(r)||(n.signal=null,g(t.receivers_for_sender.get(r)))}g(r)}},n.disconnect_all=function(n){const e=t.receivers_for_sender.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;g(e)}const s=u.get(n);if(null!=s&&0!==s.length){for(const n of s)n.signal=null;g(s)}}}(o||(t.Signal=o={})),t.Signalable=function(){return class{connect(n,e){return n.connect(e,this)}disconnect(n,e){return n.disconnect(e,this)}}},t.receivers_for_sender=new WeakMap;const u=new WeakMap;function f(n,e,t,s){return(0,i.find)(n,(n=>n.signal===e&&n.slot===t&&n.context===s))}const a=new Set;function g(n){0==a.size&&(async()=>{await(0,l.defer)(),function(){for(const n of a)(0,i.remove_by)(n,(n=>null==n.signal));a.clear()}()})(),a.add(n)}}, -function _(e,n,t,o,r){o();const s=new MessageChannel,i=new Map;s.port1.onmessage=e=>{const n=e.data,t=i.get(n);if(null!=t)try{t()}finally{i.delete(n)}};let a=1;function l(e){return new Promise((n=>setTimeout(n,e)))}t.defer=function(){return new Promise((e=>{const n=a++;i.set(n,e),s.port2.postMessage(n)}))},t.delay=l,t.poll=async function(e,n=50,t=500){for(;!e()&&t>=0;)await l(n),t-=n},t.paint=function(){return new Promise((e=>{requestAnimationFrame((()=>e()))}))},t.idle=function(){return new Promise((e=>{requestIdleCallback((()=>e()))}))}}, -function _(n,s,r,e,t){e();const i=n(8);function f(n){return r.has_refs in n}function c(n){return(0,i.isObject)(n)&&f(n)}r.is_ref=function(n){return(0,i.isPlainObject)(n)&&"id"in n&&!("type"in n)},r.has_refs=Symbol("has_refs"),r.is_HasRefs=c,r.may_have_refs=function(n){if(f(n))return n[r.has_refs];const s=n.constructor;return!c(s)||s[r.has_refs]}}, -function _(e,t,r,n,a){n(),r.TextBaselineSpec=r.TextAlignSpec=r.FontStyleSpec=r.FontSizeSpec=r.FontSpec=r.LineDashSpec=r.LineCapSpec=r.LineJoinSpec=r.MarkerSpec=r.ArraySpec=r.NullStringSpec=r.StringSpec=r.AnySpec=r.NDArraySpec=void 0;const s=e(1),i=e(15),l=e(19),_=s.__importStar(e(20)),o=e(24),c=e(10),u=e(13),d=e(11),S=e(22),p=e(27),h=e(8),m=e(28),f=e(29),v=e(30),y=e(38),x=e(12),g=e(32),A=e(39);function w(e){try{return JSON.stringify(e)}catch{return e.toString()}}function z(e){return(0,h.isPlainObject)(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}a("Uniform",A.Uniform),a("UniformScalar",A.UniformScalar),a("UniformVector",A.UniformVector),r.isSpec=z;let b=null;r.use_theme=function(e=null){b=e},r.unset=Symbol("unset");class C extends Error{}r.UnsetValueError=C,C.__name__="UnsetValueError";class F{get syncable(){return!this.internal}get is_unset(){return this._value===r.unset}get initialized(){return this._initialized}initialize(e=r.unset){if(this._initialized)throw new Error("already initialized");let t=r.unset;if(e!==r.unset)t=e,this._dirty=!0;else{const e=this._default_override();if(e!==r.unset)t=e;else{let e=!1;if(null!=b){const r=b.get(this.obj,this.attr);void 0!==r&&(t=r,e=!0)}e||(t=this.default_value(this.obj))}}t!==r.unset?(null!=this.kind.coerce&&(t=this.kind.coerce(t)),this._update(t)):this._value=r.unset,this._initialized=!0}get_value(){if(this._value!==r.unset)return this._value;throw new C(`${this.obj}.${this.attr} is unset`)}set_value(e){this._initialized?(this._update(e),this._dirty=!0):this.initialize(e),y.diagnostics.report(this)}_default_override(){return r.unset}get dirty(){return this._dirty}constructor(e,t,n,a,s={}){this._value=r.unset,this._initialized=!1,this._dirty=!1,this.obj=e,this.attr=t,this.kind=n,this.default_value=a,this.change=new i.Signal0(this.obj,"change"),this.internal=s.internal??!1,this.readonly=s.readonly??!1,this.convert=s.convert,this.on_update=s.on_update,this.may_have_refs=n.may_have_refs()}_update(e){if(this.validate(e),null!=this.convert){const t=this.convert(e,this.obj);void 0!==t&&(e=t)}this._value=e,this.on_update?.(e,this.obj)}toString(){return`Prop(${this.obj}.${this.attr}, value: ${w(this._value)})`}normalize(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj}.${this.attr} given invalid value: ${w(e)}`)}valid(e){return this.kind.valid(e)}}r.Property=F,F.__name__="Property";class q{constructor(e){this.attr=e}}r.PropertyAlias=q,q.__name__="PropertyAlias",r.Alias=function(e){return new q(e)};class N extends F{}r.PrimitiveProperty=N,N.__name__="PrimitiveProperty";class U extends N{_default_override(){return f.settings.dev?"Bokeh":r.unset}}r.Font=U,U.__name__="Font";class $ extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:"value",value:r,transform:s,units:i}:void 0!==n?{type:"field",field:n,transform:s,units:i}:{type:"expr",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}scalar(e,t){return new A.UniformScalar(e,t)}uniform(e){const t=this.get_value(),r=e.get_length()??1;if((0,m.isExpr)(t)){const{expr:n,transform:a}=t;let s=n.compute(e);return null!=a&&(s=a.compute(s)),s=this.materialize(s),this.scalar(s,r)}{const{value:e,transform:n}=t;let a=e;return null!=n&&(a=n.compute(a)),a=this.materialize(a),this.scalar(a,r)}}}r.ScalarSpec=$,$.__name__="ScalarSpec";class j extends ${}r.AnyScalar=j,j.__name__="AnyScalar";class D extends ${}r.DictScalar=D,D.__name__="DictScalar";class B extends ${}r.ColorScalar=B,B.__name__="ColorScalar";class E extends ${}r.NumberScalar=E,E.__name__="NumberScalar";class L extends ${}r.StringScalar=L,L.__name__="StringScalar";class P extends ${}r.NullStringScalar=P,P.__name__="NullStringScalar";class T extends ${}r.ArrayScalar=T,T.__name__="ArrayScalar";class V extends ${}r.LineJoinScalar=V,V.__name__="LineJoinScalar";class k extends ${}r.LineCapScalar=k,k.__name__="LineCapScalar";class J extends ${}r.LineDashScalar=J,J.__name__="LineDashScalar";class X extends ${_default_override(){return f.settings.dev?"Bokeh":r.unset}}r.FontScalar=X,X.__name__="FontScalar";class Y extends ${}r.FontSizeScalar=Y,Y.__name__="FontSizeScalar";class G extends ${}r.FontStyleScalar=G,G.__name__="FontStyleScalar";class I extends ${}r.TextAlignScalar=I,I.__name__="TextAlignScalar";class O extends ${}r.TextBaselineScalar=O,O.__name__="TextBaselineScalar";class R extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:"value",value:r,transform:s,units:i}:void 0!==n?{type:"field",field:n,transform:s,units:i}:{type:"expr",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}v_materialize(e){return e}scalar(e,t){return new A.UniformScalar(e,t)}vector(e){return new A.UniformVector(e)}uniform(e){const t=this.get_value(),r=e.get_length()??1;if((0,m.isField)(t)){const{field:n,transform:a}=t;let s=e.get_column(n);if(null!=s)return null!=a&&(s=a.v_compute(s)),s=this.v_materialize(s),this.vector(s);{const e=`attempted to retrieve property array for nonexistent field '${n}'`;if(f.settings.force_fields)throw new Error(e);return l.logger.warn(e),this.scalar(null,r)}}if((0,m.isExpr)(t)){const{expr:r,transform:n}=t;let a=r.v_compute(e);return null!=n&&(a=n.v_compute(a)),a=this.v_materialize(a),this.vector(a)}if((0,m.isValue)(t)){const{value:e,transform:n}=t;let a=e;return null!=n&&(a=n.compute(a)),a=this.materialize(a),this.scalar(a,r)}(0,x.unreachable)()}array(e){let t;const r=e.get_length()??1,n=this.get_value();if((0,m.isField)(n)){const{field:a}=n,s=e.get_column(a);if(null!=s)t=this.normalize(s);else{const e=`attempted to retrieve property array for nonexistent field '${a}'`;if(f.settings.force_fields)throw new Error(e);l.logger.warn(e);const n=new Float64Array(r);n.fill(NaN),t=n}}else if((0,m.isExpr)(n)){const{expr:r}=n;t=this.normalize(r.v_compute(e))}else{const e=this.normalize([n.value])[0];if((0,h.isNumber)(e)){const n=new Float64Array(r);n.fill(e),t=n}else t=(0,c.repeat)(e,r)}const{transform:a}=n;return null!=a&&(t=a.v_compute(t)),t}}r.VectorSpec=R,R.__name__="VectorSpec";class M extends R{}r.DataSpec=M,M.__name__="DataSpec";class H extends R{constructor(){super(...arguments),this._value=r.unset}_update(e){if(super._update(e),this._value!==r.unset){const{units:e}=this._value;if(null!=e&&!(0,c.includes)(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}}get units(){return this._value!==r.unset?this._value.units??this.default_units:this.default_units}set units(e){if(this._value===r.unset)throw new Error(`${this.obj}.${this.attr} is unset`);e!=this.default_units?this._value.units=e:delete this._value.units}}r.UnitsSpec=H,H.__name__="UnitsSpec";class K extends H{array(e){return new Float64Array(super.array(e))}}r.NumberUnitsSpec=K,K.__name__="NumberUnitsSpec";class Q extends M{}r.BaseCoordinateSpec=Q,Q.__name__="BaseCoordinateSpec";class W extends Q{}r.CoordinateSpec=W,W.__name__="CoordinateSpec";class Z extends Q{}r.CoordinateSeqSpec=Z,Z.__name__="CoordinateSeqSpec";class ee extends Q{}r.CoordinateSeqSeqSeqSpec=ee,ee.__name__="CoordinateSeqSeqSeqSpec";class te extends W{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSpec=te,te.__name__="XCoordinateSpec";class re extends W{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSpec=re,re.__name__="YCoordinateSpec";class ne extends Z{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSeqSpec=ne,ne.__name__="XCoordinateSeqSpec";class ae extends Z{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSeqSpec=ae,ae.__name__="YCoordinateSeqSpec";class se extends ee{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSeqSeqSeqSpec=se,se.__name__="XCoordinateSeqSeqSeqSpec";class ie extends ee{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSeqSeqSeqSpec=ie,ie.__name__="YCoordinateSeqSeqSeqSpec";class le extends K{get default_units(){return"rad"}get valid_units(){return[..._.AngleUnits]}materialize(e){return e*-(0,d.to_radians_coeff)(this.units)}v_materialize(e){const t=-(0,d.to_radians_coeff)(this.units),r=new Float32Array(e.length);return(0,u.mul)(e,t,r),r}array(e){throw new Error("not supported")}}r.AngleSpec=le,le.__name__="AngleSpec";class _e extends K{get default_units(){return"data"}get valid_units(){return[..._.SpatialUnits]}}r.DistanceSpec=_e,_e.__name__="DistanceSpec";class oe extends _e{materialize(e){return e??NaN}}r.NullDistanceSpec=oe,oe.__name__="NullDistanceSpec";class ce extends M{v_materialize(e){return new Uint8Array(e)}array(e){return new Uint8Array(super.array(e))}}r.BooleanSpec=ce,ce.__name__="BooleanSpec";class ue extends M{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Int32Array(e)}array(e){return new Int32Array(super.array(e))}}r.IntSpec=ue,ue.__name__="IntSpec";class de extends M{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Float64Array(e)}array(e){return new Float64Array(super.array(e))}}r.NumberSpec=de,de.__name__="NumberSpec";class Se extends de{valid(e){return(0,h.isNumber)(e)&&e>=0}}r.ScreenSizeSpec=Se,Se.__name__="ScreenSizeSpec";class pe extends M{materialize(e){return(0,S.encode_rgba)((0,S.color2rgba)(e))}v_materialize(e){if(!(0,v.is_NDArray)(e))return this._from_css_array(e);if("uint32"==e.dtype&&1==e.dimension)return(0,p.to_big_endian)(e);if("uint8"==e.dtype&&1==e.dimension){const[t]=e.shape,r=new o.RGBAArray(4*t);let n=0;for(const t of e)r[n++]=t,r[n++]=t,r[n++]=t,r[n++]=255;return new o.ColorArray(r.buffer)}if("uint8"==e.dtype&&2==e.dimension){const[t,r]=e.shape;if(4==r)return new o.ColorArray(e.buffer);if(3==r){const n=new o.RGBAArray(4*t);for(let a=0,s=0;a0)return e in i?i[e]:i[e]=new _(e,l);throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}constructor(e,l=_.INFO){this._name=e,this.set_level(l)}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof v)this._log_level=e;else{if(!_.log_levels.hasOwnProperty(e))throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=_.log_levels[e]}const l=`[${this._name}]`;for(const{level:e,method:o}of(0,r.values)(_.log_levels))e","*"),t.BuiltinFormatter=(0,a.Enum)("raw","basic","numeral","printf","datetime"),t.HTTPMethod=(0,a.Enum)("POST","GET"),t.HexTileOrientation=(0,a.Enum)("pointytop","flattop"),t.HoverMode=(0,a.Enum)("mouse","hline","vline"),t.ImageOrigin=(0,a.Enum)("bottom_left","top_left","bottom_right","top_right"),t.LatLon=(0,a.Enum)("lat","lon"),t.LegendClickPolicy=(0,a.Enum)("none","hide","mute"),t.LegendLocation=t.Anchor,t.LineCap=(0,a.Enum)("butt","round","square"),t.LineDash=(0,a.Enum)("solid","dashed","dotted","dotdash","dashdot"),t.LineJoin=(0,a.Enum)("miter","round","bevel"),t.LinePolicy=(0,a.Enum)("prev","next","nearest","interp","none"),t.Location=(0,a.Enum)("above","below","left","right"),t.Logo=(0,a.Enum)("normal","grey"),t.MapType=(0,a.Enum)("satellite","roadmap","terrain","hybrid"),t.MarkerType=(0,a.Enum)("asterisk","circle","circle_cross","circle_dot","circle_x","circle_y","cross","dash","diamond","diamond_cross","diamond_dot","dot","hex","hex_dot","inverted_triangle","plus","square","square_cross","square_dot","square_pin","square_x","star","star_dot","triangle","triangle_dot","triangle_pin","x","y"),t.MutedPolicy=(0,a.Enum)("show","ignore"),t.Orientation=(0,a.Enum)("vertical","horizontal"),t.OutlineShapeName=(0,a.Enum)("none","box","rectangle","square","circle","ellipse","trapezoid","parallelogram","diamond","triangle"),t.OutputBackend=(0,a.Enum)("canvas","svg","webgl"),t.PaddingUnits=(0,a.Enum)("percent","absolute"),t.Place=(0,a.Enum)("above","below","left","right","center"),t.PointPolicy=(0,a.Enum)("snap_to_data","follow_mouse","none"),t.RadiusDimension=(0,a.Enum)("x","y","max","min"),t.RenderLevel=(0,a.Enum)("image","underlay","glyph","guide","annotation","overlay"),t.ResetPolicy=(0,a.Enum)("standard","event_only"),t.ResolutionType=(0,a.Enum)("microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"),t.RoundingFunction=(0,a.Enum)("round","nearest","floor","rounddown","ceil","roundup"),t.ScrollbarPolicy=(0,a.Enum)("auto","visible","hidden"),t.RegionSelectionMode=(0,a.Enum)("replace","append","intersect","subtract","xor"),t.SelectionMode=(0,a.Enum)(...t.RegionSelectionMode,"toggle"),t.Side=(0,a.Enum)("above","below","left","right"),t.SizingMode=(0,a.Enum)("stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed","inherit"),t.Sort=(0,a.Enum)("ascending","descending"),t.SpatialUnits=(0,a.Enum)("screen","data"),t.StartEnd=(0,a.Enum)("start","end"),t.StepMode=(0,a.Enum)("after","before","center"),t.TapBehavior=(0,a.Enum)("select","inspect"),t.TapGesture=(0,a.Enum)("tap","doubletap"),t.TextAlign=(0,a.Enum)("left","right","center"),t.TextBaseline=(0,a.Enum)("top","middle","bottom","alphabetic","hanging","ideographic"),t.TextureRepetition=(0,a.Enum)("repeat","repeat_x","repeat_y","no_repeat"),t.LabelOrientation=(0,a.Enum)("vertical","horizontal","parallel","normal"),t.TooltipAttachment=(0,a.Enum)("horizontal","vertical","left","right","above","below"),t.UpdateMode=(0,a.Enum)("replace","append"),t.VerticalAlign=(0,a.Enum)("top","middle","bottom"),t.ToolIcon=(0,a.Enum)("append_mode","arrow_down_to_bar","arrow_up_from_bar","auto_box_zoom","bold","box_edit","box_select","box_zoom","caret_down","caret_left","caret_right","caret_up","check","chevron_down","chevron_left","chevron_right","chevron_up","clear_selection","copy","crosshair","delete","freehand_draw","fullscreen","help","hover","intersect_mode","invert_selection","italic","lasso_select","line_edit","maximize","minimize","pan","pin","point_draw","pointer","poly_draw","poly_edit","polygon_select","range","redo","replace_mode","reset","save","see_off","see_on","settings","square","square_check","subtract_mode","tap_select","text_align_center","text_align_left","text_align_right","undo","unknown","unpin","wheel_pan","wheel_zoom","x_box_select","x_box_zoom","x_grip","x_pan","xor_mode","y_box_select","y_box_zoom","y_grip","y_pan","zoom_in","zoom_out")}, +function _(n,e,t,s,r){s(),t.Signalable=function(){return class{connect(n,e){return n.connect(e,this)}disconnect(n,e){return n.disconnect(e,this)}}};const l=n(16),i=n(10);class o{constructor(n,e){this.sender=n,this.name=e}connect(n,e=null){t.receivers_for_sender.has(this.sender)||t.receivers_for_sender.set(this.sender,[]);const s=t.receivers_for_sender.get(this.sender);if(null!=f(s,this,n,e))return!1;const r=e??n;u.has(r)||u.set(r,[]);const l=u.get(r),i={signal:this,slot:n,context:e};return s.push(i),l.push(i),!0}disconnect(n,e=null){const s=t.receivers_for_sender.get(this.sender);if(null==s||0===s.length)return!1;const r=f(s,this,n,e);if(null==r)return!1;const l=e??n,i=u.get(l);return r.signal=null,g(s),g(i),!0}emit(n){const e=t.receivers_for_sender.get(this.sender)??[];for(const{signal:t,slot:s,context:r}of e)t===this&&s.call(r,n,this.sender)}}t.Signal=o,o.__name__="Signal";class c extends o{emit(){super.emit(void 0)}}t.Signal0=c,c.__name__="Signal0",function(n){n.disconnect_between=function(n,e){const s=t.receivers_for_sender.get(n);if(null==s||0===s.length)return;const r=u.get(e);if(null!=r&&0!==r.length){for(const e of r){if(null==e.signal)return;e.signal.sender===n&&(e.signal=null)}g(s),g(r)}},n.disconnect_sender=function(n){const e=t.receivers_for_sender.get(n);if(null!=e&&0!==e.length){for(const n of e){if(null==n.signal)return;const e=n.context??n.slot;n.signal=null,g(u.get(e))}g(e)}},n.disconnect_receiver=function(n,e,s){const r=u.get(n);if(null!=r&&0!==r.length){for(const n of r){if(null==n.signal)return;if(null!=e&&n.slot!=e)continue;const r=n.signal.sender;null!=s&&s.has(r)||(n.signal=null,g(t.receivers_for_sender.get(r)))}g(r)}},n.disconnect_all=function(n){const e=t.receivers_for_sender.get(n);if(null!=e&&0!==e.length){for(const n of e)n.signal=null;g(e)}const s=u.get(n);if(null!=s&&0!==s.length){for(const n of s)n.signal=null;g(s)}}}(o||(t.Signal=o={})),t.receivers_for_sender=new WeakMap;const u=new WeakMap;function f(n,e,t,s){return(0,i.find)(n,(n=>n.signal===e&&n.slot===t&&n.context===s))}const a=new Set;function g(n){0==a.size&&(async()=>{await(0,l.defer)(),function(){for(const n of a)(0,i.remove_by)(n,(n=>null==n.signal));a.clear()}()})(),a.add(n)}}, +function _(e,n,t,o,r){o(),t.defer=function(){return new Promise((e=>{const n=a++;i.set(n,e),s.port2.postMessage(n)}))},t.delay=l,t.poll=async function(e,n=50,t=500){for(;!e()&&t>=0;)await l(n),t-=n},t.paint=function(){return new Promise((e=>{requestAnimationFrame((()=>e()))}))},t.idle=function(){return new Promise((e=>{requestIdleCallback((()=>e()))}))};const s=new MessageChannel,i=new Map;s.port1.onmessage=e=>{const n=e.data,t=i.get(n);if(null!=t)try{t()}finally{i.delete(n)}};let a=1;function l(e){return new Promise((n=>setTimeout(n,e)))}}, +function _(n,r,s,e,t){e(),s.is_ref=function(n){return(0,i.isPlainObject)(n)&&"id"in n&&!("type"in n)},s.is_HasRefs=u,s.may_have_refs=function(n){if(f(n))return n[s.has_refs];const r=n.constructor;if(u(r))return r[s.has_refs];return!0};const i=n(8);function f(n){return s.has_refs in n}function u(n){return(0,i.isObject)(n)&&f(n)}s.has_refs=Symbol("has_refs")}, +function _(e,t,r,n,a){n(),r.TextBaselineSpec=r.TextAlignSpec=r.FontStyleSpec=r.FontSizeSpec=r.FontSpec=r.LineDashSpec=r.LineCapSpec=r.LineJoinSpec=r.MarkerSpec=r.ArraySpec=r.NullStringSpec=void 0,r.isSpec=z,r.use_theme=function(e=null){b=e},r.Alias=function(e){return new q(e)};const s=e(1),i=e(15),l=e(19),_=s.__importStar(e(20)),o=e(24),c=e(10),u=e(13),d=e(11),S=e(22),p=e(27),h=e(8),m=e(28),f=e(29),v=e(30),y=e(38),x=e(12),g=e(32),w=e(39);function A(e){try{return JSON.stringify(e)}catch{return e.toString()}}function z(e){return(0,h.isPlainObject)(e)&&(void 0===e.value?0:1)+(void 0===e.field?0:1)+(void 0===e.expr?0:1)==1}a("Uniform",w.Uniform),a("UniformScalar",w.UniformScalar),a("UniformVector",w.UniformVector);let b=null;r.unset=Symbol("unset");class C extends Error{}r.UnsetValueError=C,C.__name__="UnsetValueError";class F{get syncable(){return!this.internal}get is_unset(){return this._value===r.unset}get initialized(){return this._initialized}initialize(e=r.unset){if(this._initialized)throw new Error("already initialized");let t=r.unset;if(e!==r.unset)t=e,this._dirty=!0;else{const e=this._default_override();if(e!==r.unset)t=e;else{let e=!1;if(null!=b){const r=b.get(this.obj,this.attr);void 0!==r&&(t=r,e=!0)}e||(t=this.default_value(this.obj))}}t!==r.unset?(null!=this.kind.coerce&&(t=this.kind.coerce(t)),this._update(t)):this._value=r.unset,this._initialized=!0}get_value(){if(this._value!==r.unset)return this._value;throw new C(`${this.obj}.${this.attr} is unset`)}set_value(e){this._initialized?(this._update(e),this._dirty=!0):this.initialize(e),y.diagnostics.report(this)}_default_override(){return r.unset}get dirty(){return this._dirty}constructor(e,t,n,a,s={}){this._value=r.unset,this._initialized=!1,this._dirty=!1,this.obj=e,this.attr=t,this.kind=n,this.default_value=a,this.change=new i.Signal0(this.obj,"change"),this.internal=s.internal??!1,this.readonly=s.readonly??!1,this.convert=s.convert,this.on_update=s.on_update,this.may_have_refs=n.may_have_refs()}_update(e){if(this.validate(e),null!=this.convert){const t=this.convert(e,this.obj);void 0!==t&&(e=t)}this._value=e,this.on_update?.(e,this.obj)}toString(){return`Prop(${this.obj}.${this.attr}, value: ${A(this._value)})`}normalize(e){return e}validate(e){if(!this.valid(e))throw new Error(`${this.obj}.${this.attr} given invalid value: ${A(e)}`)}valid(e){return this.kind.valid(e)}}r.Property=F,F.__name__="Property";class q{constructor(e){this.attr=e}}r.PropertyAlias=q,q.__name__="PropertyAlias";class N extends F{}r.PrimitiveProperty=N,N.__name__="PrimitiveProperty";class U extends N{_default_override(){return f.settings.dev?"Bokeh":r.unset}}r.Font=U,U.__name__="Font";class $ extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:"value",value:r,transform:s,units:i}:void 0!==n?{type:"field",field:n,transform:s,units:i}:{type:"expr",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}scalar(e,t){return new w.UniformScalar(e,t)}uniform(e){const t=this.get_value(),r=e.get_length()??1;if((0,m.isExpr)(t)){const{expr:n,transform:a}=t;let s=n.compute(e);return null!=a&&(s=a.compute(s)),s=this.materialize(s),this.scalar(s,r)}{const{value:e,transform:n}=t;let a=e;return null!=n&&(a=n.compute(a)),a=this.materialize(a),this.scalar(a,r)}}}r.ScalarSpec=$,$.__name__="ScalarSpec";class j extends ${}r.AnyScalar=j,j.__name__="AnyScalar";class B extends ${}r.DictScalar=B,B.__name__="DictScalar";class D extends ${}r.ColorScalar=D,D.__name__="ColorScalar";class E extends ${}r.NumberScalar=E,E.__name__="NumberScalar";class L extends ${}r.StringScalar=L,L.__name__="StringScalar";class P extends ${}r.NullStringScalar=P,P.__name__="NullStringScalar";class T extends ${}r.ArrayScalar=T,T.__name__="ArrayScalar";class V extends ${}r.LineJoinScalar=V,V.__name__="LineJoinScalar";class k extends ${}r.LineCapScalar=k,k.__name__="LineCapScalar";class J extends ${}r.LineDashScalar=J,J.__name__="LineDashScalar";class X extends ${_default_override(){return f.settings.dev?"Bokeh":r.unset}}r.FontScalar=X,X.__name__="FontScalar";class Y extends ${}r.FontSizeScalar=Y,Y.__name__="FontSizeScalar";class G extends ${}r.FontStyleScalar=G,G.__name__="FontStyleScalar";class I extends ${}r.TextAlignScalar=I,I.__name__="TextAlignScalar";class O extends ${}r.TextBaselineScalar=O,O.__name__="TextBaselineScalar";class R extends F{constructor(){super(...arguments),this._value=r.unset}get_value(){if(this._value!==r.unset)return this._value;throw new Error(`${this.obj}.${this.attr} is unset`)}_update(e){if(z(e)?this._value=e:this._value={value:e},(0,h.isPlainObject)(this._value)){const{_value:e}=this;this._value[g.serialize]=t=>{const{value:r,field:n,expr:a,transform:s,units:i}=e;return t.encode_struct(void 0!==r?{type:"value",value:r,transform:s,units:i}:void 0!==n?{type:"field",field:n,transform:s,units:i}:{type:"expr",expr:a,transform:s,units:i})}}(0,m.isValue)(this._value)&&this.validate(this._value.value)}materialize(e){return e}v_materialize(e){return e}scalar(e,t){return new w.UniformScalar(e,t)}vector(e){return new w.UniformVector(e)}uniform(e){const t=this.get_value(),r=e.get_length()??1;if((0,m.isField)(t)){const{field:n,transform:a}=t;let s=e.get_column(n);if(null!=s)return null!=a&&(s=a.v_compute(s)),s=this.v_materialize(s),this.vector(s);{const e=`attempted to retrieve property array for nonexistent field '${n}'`;if(f.settings.force_fields)throw new Error(e);return l.logger.warn(e),this.scalar(null,r)}}if((0,m.isExpr)(t)){const{expr:r,transform:n}=t;let a=r.v_compute(e);return null!=n&&(a=n.v_compute(a)),a=this.v_materialize(a),this.vector(a)}if((0,m.isValue)(t)){const{value:e,transform:n}=t;let a=e;return null!=n&&(a=n.compute(a)),a=this.materialize(a),this.scalar(a,r)}(0,x.unreachable)()}array(e){let t;const r=e.get_length()??1,n=this.get_value();if((0,m.isField)(n)){const{field:a}=n,s=e.get_column(a);if(null!=s)t=this.normalize(s);else{const e=`attempted to retrieve property array for nonexistent field '${a}'`;if(f.settings.force_fields)throw new Error(e);l.logger.warn(e);const n=new Float64Array(r);n.fill(NaN),t=n}}else if((0,m.isExpr)(n)){const{expr:r}=n;t=this.normalize(r.v_compute(e))}else{const e=this.normalize([n.value])[0];if((0,h.isNumber)(e)){const n=new Float64Array(r);n.fill(e),t=n}else t=(0,c.repeat)(e,r)}const{transform:a}=n;return null!=a&&(t=a.v_compute(t)),t}}r.VectorSpec=R,R.__name__="VectorSpec";class M extends R{}r.DataSpec=M,M.__name__="DataSpec";class H extends R{constructor(){super(...arguments),this._value=r.unset}_update(e){if(super._update(e),this._value!==r.unset){const{units:e}=this._value;if(null!=e&&!(0,c.includes)(this.valid_units,e))throw new Error(`units must be one of ${this.valid_units.join(", ")}; got: ${e}`)}}get units(){return this._value!==r.unset?this._value.units??this.default_units:this.default_units}set units(e){if(this._value===r.unset)throw new Error(`${this.obj}.${this.attr} is unset`);e!=this.default_units?this._value.units=e:delete this._value.units}}r.UnitsSpec=H,H.__name__="UnitsSpec";class K extends H{array(e){return new Float64Array(super.array(e))}}r.NumberUnitsSpec=K,K.__name__="NumberUnitsSpec";class Q extends M{}r.BaseCoordinateSpec=Q,Q.__name__="BaseCoordinateSpec";class W extends Q{}r.CoordinateSpec=W,W.__name__="CoordinateSpec";class Z extends Q{}r.CoordinateSeqSpec=Z,Z.__name__="CoordinateSeqSpec";class ee extends Q{}r.CoordinateSeqSeqSeqSpec=ee,ee.__name__="CoordinateSeqSeqSeqSpec";class te extends W{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSpec=te,te.__name__="XCoordinateSpec";class re extends W{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSpec=re,re.__name__="YCoordinateSpec";class ne extends Z{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSeqSpec=ne,ne.__name__="XCoordinateSeqSpec";class ae extends Z{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSeqSpec=ae,ae.__name__="YCoordinateSeqSpec";class se extends ee{constructor(){super(...arguments),this.dimension="x"}}r.XCoordinateSeqSeqSeqSpec=se,se.__name__="XCoordinateSeqSeqSeqSpec";class ie extends ee{constructor(){super(...arguments),this.dimension="y"}}r.YCoordinateSeqSeqSeqSpec=ie,ie.__name__="YCoordinateSeqSeqSeqSpec";class le extends K{get default_units(){return"rad"}get valid_units(){return[..._.AngleUnits]}materialize(e){return e*-(0,d.to_radians_coeff)(this.units)}v_materialize(e){const t=-(0,d.to_radians_coeff)(this.units),r=new Float32Array(e.length);return(0,u.mul)(e,t,r),r}array(e){throw new Error("not supported")}}r.AngleSpec=le,le.__name__="AngleSpec";class _e extends K{get default_units(){return"data"}get valid_units(){return[..._.SpatialUnits]}}r.DistanceSpec=_e,_e.__name__="DistanceSpec";class oe extends _e{materialize(e){return e??NaN}}r.NullDistanceSpec=oe,oe.__name__="NullDistanceSpec";class ce extends M{v_materialize(e){return new Uint8Array(e)}array(e){return new Uint8Array(super.array(e))}}r.BooleanSpec=ce,ce.__name__="BooleanSpec";class ue extends M{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Int32Array(e)}array(e){return new Int32Array(super.array(e))}}r.IntSpec=ue,ue.__name__="IntSpec";class de extends M{v_materialize(e){return(0,h.isTypedArray)(e)?e:new Float64Array(e)}array(e){return new Float64Array(super.array(e))}}r.NumberSpec=de,de.__name__="NumberSpec";class Se extends de{valid(e){return(0,h.isNumber)(e)&&e>=0}}r.ScreenSizeSpec=Se,Se.__name__="ScreenSizeSpec";class pe extends M{materialize(e){return(0,S.encode_rgba)((0,S.color2rgba)(e))}v_materialize(e){if(!(0,v.is_NDArray)(e))return this._from_css_array(e);if("uint32"==e.dtype&&1==e.dimension)return(0,p.to_big_endian)(e);if("uint8"==e.dtype&&1==e.dimension){const[t]=e.shape,r=new o.RGBAArray(4*t);let n=0;for(const t of e)r[n++]=t,r[n++]=t,r[n++]=t,r[n++]=255;return new o.ColorArray(r.buffer)}if("uint8"==e.dtype&&2==e.dimension){const[t,r]=e.shape;if(4==r)return new o.ColorArray(e.buffer);if(3==r){const n=new o.RGBAArray(4*t);for(let a=0,s=0;a0)return e in i?i[e]:i[e]=new _(e,l);throw new TypeError("Logger.get() expects a non-empty string name and an optional log-level")}constructor(e,l=_.INFO){this._name=e,this.set_level(l)}get level(){return this.get_level()}get_level(){return this._log_level}set_level(e){if(e instanceof v)this._log_level=e;else{if(!_.log_levels.hasOwnProperty(e))throw new Error("Logger.set_level() expects a log-level object or a string name of a log-level");this._log_level=_.log_levels[e]}const l=`[${this._name}]`;for(const{level:e,method:o}of(0,r.values)(_.log_levels))e","*"),t.BuiltinFormatter=(0,a.Enum)("raw","basic","numeral","printf","datetime"),t.HTTPMethod=(0,a.Enum)("POST","GET"),t.HexTileOrientation=(0,a.Enum)("pointytop","flattop"),t.HoverMode=(0,a.Enum)("mouse","hline","vline"),t.ImageOrigin=(0,a.Enum)("bottom_left","top_left","bottom_right","top_right"),t.LatLon=(0,a.Enum)("lat","lon"),t.LegendClickPolicy=(0,a.Enum)("none","hide","mute"),t.LegendLocation=t.Anchor,t.LineCap=(0,a.Enum)("butt","round","square"),t.LineDash=(0,a.Enum)("solid","dashed","dotted","dotdash","dashdot"),t.LineJoin=(0,a.Enum)("miter","round","bevel"),t.LinePolicy=(0,a.Enum)("prev","next","nearest","interp","none"),t.Location=(0,a.Enum)("above","below","left","right"),t.Logo=(0,a.Enum)("normal","grey"),t.MapType=(0,a.Enum)("satellite","roadmap","terrain","hybrid"),t.MarkerType=(0,a.Enum)("asterisk","circle","circle_cross","circle_dot","circle_x","circle_y","cross","dash","diamond","diamond_cross","diamond_dot","dot","hex","hex_dot","inverted_triangle","plus","square","square_cross","square_dot","square_pin","square_x","star","star_dot","triangle","triangle_dot","triangle_pin","x","y"),t.MutedPolicy=(0,a.Enum)("show","ignore"),t.Orientation=(0,a.Enum)("vertical","horizontal"),t.OutlineShapeName=(0,a.Enum)("none","box","rectangle","square","circle","ellipse","trapezoid","parallelogram","diamond","triangle"),t.OutputBackend=(0,a.Enum)("canvas","svg","webgl"),t.PaddingUnits=(0,a.Enum)("percent","absolute"),t.PanDirection=(0,a.Enum)("left","right","up","down","west","east","north","south"),t.Place=(0,a.Enum)("above","below","left","right","center"),t.PointPolicy=(0,a.Enum)("snap_to_data","follow_mouse","none"),t.RadiusDimension=(0,a.Enum)("x","y","max","min"),t.RenderLevel=(0,a.Enum)("image","underlay","glyph","guide","annotation","overlay"),t.ResetPolicy=(0,a.Enum)("standard","event_only"),t.ResolutionType=(0,a.Enum)("microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"),t.RoundingFunction=(0,a.Enum)("round","nearest","floor","rounddown","ceil","roundup"),t.ScrollbarPolicy=(0,a.Enum)("auto","visible","hidden"),t.RegionSelectionMode=(0,a.Enum)("replace","append","intersect","subtract","xor"),t.SelectionMode=(0,a.Enum)(...t.RegionSelectionMode,"toggle"),t.Side=(0,a.Enum)("above","below","left","right"),t.SizingMode=(0,a.Enum)("stretch_width","stretch_height","stretch_both","scale_width","scale_height","scale_both","fixed","inherit"),t.Sort=(0,a.Enum)("ascending","descending"),t.SpatialUnits=(0,a.Enum)("screen","data"),t.StartEnd=(0,a.Enum)("start","end"),t.StepMode=(0,a.Enum)("after","before","center"),t.TapBehavior=(0,a.Enum)("select","inspect"),t.TapGesture=(0,a.Enum)("tap","doubletap"),t.TextAlign=(0,a.Enum)("left","right","center"),t.TextBaseline=(0,a.Enum)("top","middle","bottom","alphabetic","hanging","ideographic"),t.TextureRepetition=(0,a.Enum)("repeat","repeat_x","repeat_y","no_repeat"),t.LabelOrientation=(0,a.Enum)("vertical","horizontal","parallel","normal"),t.TooltipAttachment=(0,a.Enum)("horizontal","vertical","left","right","above","below"),t.UpdateMode=(0,a.Enum)("replace","append"),t.VerticalAlign=(0,a.Enum)("top","middle","bottom"),t.ToolIcon=(0,a.Enum)("append_mode","arrow_down_to_bar","arrow_up_from_bar","auto_box_zoom","bold","box_edit","box_select","box_zoom","caret_down","caret_left","caret_right","caret_up","check","chevron_down","chevron_left","chevron_right","chevron_up","clear_selection","copy","crosshair","delete","freehand_draw","fullscreen","help","hover","intersect_mode","invert_selection","italic","lasso_select","line_edit","maximize","minimize","pan","pin","point_draw","pointer","poly_draw","poly_edit","polygon_select","range","redo","replace_mode","reset","save","see_off","see_on","settings","square","square_check","subtract_mode","tap_select","text_align_center","text_align_left","text_align_right","undo","unknown","unpin","wheel_pan","wheel_zoom","x_box_select","x_box_zoom","x_grip","x_pan","xor_mode","y_box_select","y_box_zoom","y_grip","y_pan","zoom_in","zoom_out")}, function _(t,e,r,n,s){n();const i=t(1).__importStar(t(8)),a=t(22),_=t(9),o=t(17),u=globalThis.Map,l=globalThis.Set,y=globalThis.Node;class d{}r.Kind=d,d.__name__="Kind",function(t){class e extends d{may_have_refs(){return!1}}e.__name__="Primitive",t.Primitive=e;class r extends e{valid(t){return void 0!==t}toString(){return"Any"}may_have_refs(){return!0}}r.__name__="Any",t.Any=r;class n extends e{valid(t){return void 0!==t}toString(){return"Unknown"}may_have_refs(){return!0}}n.__name__="Unknown",t.Unknown=n;class s extends e{valid(t){return i.isBoolean(t)}toString(){return"Bool"}}s.__name__="Bool",t.Bool=s;class c extends d{constructor(t){super(),this.obj_type=t}valid(t){return t instanceof this.obj_type}toString(){const t=this.obj_type;return`Ref(${t.__name__??t.toString()})`}may_have_refs(){const{obj_type:t}=this;return!(o.has_refs in t)||t[o.has_refs]}}c.__name__="Ref",t.Ref=c;class p extends d{valid(t){return i.isObject(t)}toString(){return"AnyRef"}may_have_refs(){return!0}}p.__name__="AnyRef",t.AnyRef=p;class h extends e{valid(t){return i.isNumber(t)}toString(){return"Float"}}h.__name__="Float",t.Float=h;class m extends h{valid(t){return super.valid(t)&&i.isInteger(t)}toString(){return"Int"}}m.__name__="Int",t.Int=m;class v extends h{valid(t){return super.valid(t)&&0<=t&&t<=1}toString(){return"Percent"}}v.__name__="Percent",t.Percent=v;class S extends d{constructor(t){super(),this.types=t,this.types=t}valid(t){return this.types.some((e=>e.valid(t)))}toString(){return`Or(${this.types.map((t=>t.toString())).join(", ")})`}may_have_refs(){return this.types.some((t=>t.may_have_refs()))}}S.__name__="Or",t.Or=S;class f extends d{constructor(t,e){super(),this.types=[t,e]}valid(t){return this.types.some((e=>e.valid(t)))}toString(){return`And(${this.types.map((t=>t.toString())).join(", ")})`}may_have_refs(){return this.types.some((t=>t.may_have_refs()))}}f.__name__="And",t.And=f;class g extends d{constructor(t){super(),this.types=t,this.types=t}valid(t){if(!i.isArray(t))return!1;for(let e=0;et.toString())).join(", ")})`}may_have_refs(){return this.types.some((t=>t.may_have_refs()))}}g.__name__="Tuple",t.Tuple=g;class b extends d{constructor(t){super(),this.struct_type=t}valid(t){if(!i.isPlainObject(t))return!1;const e=new _.PlainObjectProxy(this.struct_type);for(const r of(0,_.keys)(t))if(!e.has(r))return!1;for(const[r,n]of e){const e=t[r];if(!n.valid(e))return!1}return!0}toString(){return`Struct({${(0,_.typed_entries)(this.struct_type).map((([t,e])=>`${t.toString()}: ${e}`)).join(", ")}})`}may_have_refs(){return(0,_.typed_values)(this.struct_type).some((t=>t.may_have_refs()))}}b.__name__="Struct",t.Struct=b;class x extends d{constructor(t){super(),this.struct_type=t}valid(t){if(!i.isPlainObject(t))return!1;const e=new _.PlainObjectProxy(t),r=new _.PlainObjectProxy(this.struct_type);for(const t of e.keys())if(!r.has(t))return!1;for(const[t,n]of r){const r=e.get(t);if(void 0!==r&&!n.valid(r))return!1}return!0}toString(){return`Struct({${(0,_.typed_entries)(this.struct_type).map((([t,e])=>`${t.toString()}?: ${e}`)).join(", ")}})`}may_have_refs(){return(0,_.typed_values)(this.struct_type).some((t=>t.may_have_refs()))}}x.__name__="PartialStruct",t.PartialStruct=x;class w extends d{constructor(t){super(),this.item_type=t}valid(t){return i.isIterable(t)}toString(){return`Iterable(${this.item_type.toString()})`}may_have_refs(){return this.item_type.may_have_refs()}}w.__name__="Iterable",t.Iterable=w;class K extends d{constructor(t){super(),this.item_type=t}valid(t){return i.isArray(t)||i.isTypedArray(t)}toString(){return`Arrayable(${this.item_type.toString()})`}may_have_refs(){return this.item_type.may_have_refs()}}K.__name__="Arrayable",t.Arrayable=K;class N extends d{constructor(t){super(),this.item_type=t}valid(t){return i.isArray(t)&&t.every((t=>this.item_type.valid(t)))}toString(){return`List(${this.item_type.toString()})`}may_have_refs(){return this.item_type.may_have_refs()}}N.__name__="List",t.List=N;class A extends N{valid(t){return super.valid(t)&&0!=t.length}toString(){return`NonEmptyList(${this.item_type.toString()})`}}A.__name__="NonEmptyList",t.NonEmptyList=A;class P extends e{valid(t){return null===t}toString(){return"Null"}}P.__name__="Null",t.Null=P;class $ extends d{constructor(t){super(),this.base_type=t}valid(t){return null===t||this.base_type.valid(t)}toString(){return`Nullable(${this.base_type.toString()})`}may_have_refs(){return this.base_type.may_have_refs()}}$.__name__="Nullable",t.Nullable=$;class j extends d{constructor(t){super(),this.base_type=t}valid(t){return void 0===t||this.base_type.valid(t)}toString(){return`Opt(${this.base_type.toString()})`}may_have_refs(){return this.base_type.may_have_refs()}}j.__name__="Opt",t.Opt=j;class O extends d{valid(t){return t instanceof ArrayBuffer}toString(){return"Bytes"}may_have_refs(){return!1}}O.__name__="Bytes",t.Bytes=O;class F extends e{valid(t){return i.isString(t)}toString(){return"Str"}}F.__name__="Str",t.Str=F;class L extends F{constructor(t){super(),this.regex=t}valid(t){return super.valid(t)&&this.regex.test(t)}toString(){return`Regex(${this.regex.toString()})`}}L.__name__="Regex",t.Regex=L;class R extends e{constructor(t){super(),this.values=new l(t)}valid(t){return this.values.has(t)}*[Symbol.iterator](){yield*this.values}toString(){return`Enum(${[...this.values].map((t=>t.toString())).join(", ")})`}}R.__name__="Enum",t.Enum=R;class B extends d{constructor(t){super(),this.item_type=t}valid(t){if(!(t instanceof u||i.isPlainObject(t)))return!1;for(const e of(0,_.values)(t))if(!this.item_type.valid(e))return!1;return!0}toString(){return`Dict(${this.item_type.toString()})`}may_have_refs(){return this.item_type.may_have_refs()}}B.__name__="Dict",t.Dict=B;class I extends d{constructor(t,e){super(),this.key_type=t,this.item_type=e}coerce(t){return i.isPlainObject(t)&&(0,_.is_empty)(t)?new u:t}valid(t){if(!(t instanceof u))return!1;for(const[e,r]of t.entries())if(!this.key_type.valid(e)||!this.item_type.valid(r))return!1;return!0}toString(){return`Mapping(${this.key_type.toString()}, ${this.item_type.toString()})`}may_have_refs(){return this.key_type.may_have_refs()||this.item_type.may_have_refs()}}I.__name__="Mapping",t.Mapping=I;class k extends d{constructor(t){super(),this.item_type=t}valid(t){if(!(t instanceof l))return!1;for(const e of t)if(!this.item_type.valid(e))return!1;return!0}toString(){return`Set(${this.item_type.toString()})`}may_have_refs(){return this.item_type.may_have_refs()}}k.__name__="Set",t.Set=k;class C extends d{valid(t){return(0,a.is_Color)(t)}toString(){return"Color"}may_have_refs(){return!1}}C.__name__="Color",t.Color=C;class E extends F{toString(){return"CSSLength"}}E.__name__="CSSLength",t.CSSLength=E;class T extends d{valid(t){return i.isFunction(t)}toString(){return"Func(...)"}may_have_refs(){return!1}}T.__name__="Func",t.Func=T;class M extends d{constructor(t){super(),this.base_type=t}valid(t){return this.base_type.valid(t)&&t>=0}toString(){return`NonNegative(${this.base_type.toString()})`}may_have_refs(){return this.base_type.may_have_refs()}}M.__name__="NonNegative",t.NonNegative=M;class D extends d{constructor(t){super(),this.base_type=t}valid(t){return this.base_type.valid(t)&&t>0}toString(){return`Positive(${this.base_type.toString()})`}may_have_refs(){return this.base_type.may_have_refs()}}D.__name__="Positive",t.Positive=D;class U extends d{valid(t){return t instanceof y}toString(){return"Node"}may_have_refs(){return!1}}U.__name__="Node",t.Node=U}(r.Kinds||(r.Kinds={})),r.Any=new r.Kinds.Any,r.Unknown=new r.Kinds.Unknown,r.Bool=new r.Kinds.Bool,r.Float=new r.Kinds.Float,r.Int=new r.Kinds.Int,r.Bytes=new r.Kinds.Bytes,r.Str=new r.Kinds.Str;r.Regex=t=>new r.Kinds.Regex(t),r.Null=new r.Kinds.Null;r.Nullable=t=>new r.Kinds.Nullable(t);r.Opt=t=>new r.Kinds.Opt(t);r.Or=(...t)=>new r.Kinds.Or(t);r.And=(t,e)=>new r.Kinds.And(t,e);r.Tuple=(...t)=>new r.Kinds.Tuple(t);r.Struct=t=>new r.Kinds.Struct(t);r.PartialStruct=t=>new r.Kinds.PartialStruct(t);r.Iterable=t=>new r.Kinds.Iterable(t);r.Arrayable=t=>new r.Kinds.Arrayable(t);r.List=t=>new r.Kinds.List(t);r.NonEmptyList=t=>new r.Kinds.NonEmptyList(t);r.Dict=t=>new r.Kinds.Dict(t);r.Mapping=(t,e)=>new r.Kinds.Mapping(t,e);r.Set=t=>new r.Kinds.Set(t);r.Enum=(...t)=>new r.Kinds.Enum(t);r.Ref=t=>new r.Kinds.Ref(t);r.AnyRef=()=>new r.Kinds.AnyRef;r.Func=()=>new r.Kinds.Func,r.Node=new r.Kinds.Node;r.NonNegative=t=>new r.Kinds.NonNegative(t);r.Positive=t=>new r.Kinds.Positive(t),r.Percent=new r.Kinds.Percent,r.Alpha=r.Percent,r.Color=new r.Kinds.Color,r.Auto=(0,r.Enum)("auto"),r.CSSLength=new r.Kinds.CSSLength,r.FontSize=r.Str,r.Font=r.Str,r.Angle=r.Float,r.Boolean=r.Bool,r.String=r.Str,r.Number=r.Float,r.Array=r.List,r.Map=r.Mapping,r.Function=r.Func}, -function _(n,r,t,e,s){e();const u=n(23),c=n(11),i=n(8),{round:o,sqrt:l}=Math;function a(n){return(0,c.clamp)(o(n),0,255)}function f(){return[0,0,0,0]}function g(n){return[n>>24&255,n>>16&255,n>>8&255,255&n]}function b(n,r=1){const[t,e,s,u]=(()=>{if(null==n)return[0,0,0,0];if((0,i.isInteger)(n))return g(n);if((0,i.isString)(n))return p(n)??[0,0,0,0];if(2==n.length){const[r,t]=n;return b(r,t)}{const[r,t,e,s=1]=n;return[r,t,e,a(255*s)]}})();return[t,e,s,a(r*u)]}t.byte=a,t.transparent=f,t.encode_rgba=function([n,r,t,e]){return n<<24|r<<16|t<<8|e},t.decode_rgba=g,t.color2rgba=b;const h={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"a",11:"b",12:"c",13:"d",14:"e",15:"f"};function d(n){return h[n>>4]+h[15&n]}function $([n,r,t,e]){return`rgba(${n}, ${r}, ${t}, ${e/255})`}t.rgba2css=$,t.color2css=function(n,r){const[t,e,s,u]=b(n,r);return $([t,e,s,u])},t.color2hex=function(n,r){const[t,e,s,u]=b(n,r),c=`#${d(t)}${d(e)}${d(s)}`;return 255==u?c:`${c}${d(u)}`},t.color2hexrgb=function(n){const[r,t,e]=b(n);return`#${d(r)}${d(t)}${d(e)}`};const m=/^rgba?\(\s*(?[^\s,]+?)\s+(?[^\s,]+?)\s+(?[^\s,]+?)(?:\s*\/\s*(?[^\s,]+?))?\s*\)$/,N=/^rgba?\(\s*(?[^\s,]+?)\s*,\s*(?[^\s,]+?)\s*,\s*(?[^\s,]+?)(?:\s*,\s*(?[^\s,]+?))?\s*\)$/,_=(()=>{const n=document.createElement("canvas");n.width=1,n.height=1;const r=n.getContext("2d"),t=r.createLinearGradient(0,0,1,1);return n=>{r.fillStyle=t,r.fillStyle=n;const e=r.fillStyle;return e!=t?e:null}})();function p(n){if(""==(n=n.trim().toLowerCase()))return null;if("transparent"==n)return[0,0,0,0];if((0,u.is_named_color)(n))return g(u.named_colors[n]);if("#"==n[0]){const r=Number(`0x${n.substring(1)}`);if(isNaN(r))return null;switch(n.length-1){case 3:{const n=r>>8&15,t=r>>4&15,e=15&r;return[n<<4|n,t<<4|t,e<<4|e,255]}case 4:{const n=r>>12&15,t=r>>8&15,e=r>>4&15,s=15&r;return[n<<4|n,t<<4|t,e<<4|e,s<<4|s]}case 6:return[r>>16&255,r>>8&255,255&r,255];case 8:return[r>>24&255,r>>16&255,r>>8&255,255&r]}}else if(n.startsWith("rgb")){const r=n.match(m)??n.match(N);if(null!=r?.groups){let{r:n,g:t,b:e,a:s="1"}=r.groups;const u=n.endsWith("%"),c=t.endsWith("%"),i=e.endsWith("%"),o=s.endsWith("%");if(!(u&&c&&i)&&(u||c||i))return null;u&&(n=n.slice(0,-1)),c&&(t=t.slice(0,-1)),i&&(e=e.slice(0,-1)),o&&(s=s.slice(0,-1));let l=Number(n),f=Number(t),g=Number(e),b=Number(s);return isNaN(l+f+g+b)?null:(u&&(l=l/100*255),c&&(f=f/100*255),i&&(g=g/100*255),b=255*(o?b/100:b),l=a(l),f=a(f),g=a(g),b=a(b),[l,f,g,b])}}else{const r=_(n);if(null!=r)return p(r)}return null}t.css4_parse=p,t.is_Color=function(n){return!!(0,i.isInteger)(n)||(!(!(0,i.isString)(n)||null==p(n))||!(!(0,i.isArray)(n)||3!=n.length&&4!=n.length))},t.is_dark=function([n,r,t]){return 1-(.299*n+.587*r+.114*t)/255>=.6},t.brightness=function(n){const[r,t,e]=b(n);return l(.299*r**2+.587*t**2+.114*e**2)/255},t.luminance=function(n){const[r,t,e]=b(n);return(.2126*r**2.2+.7152*t**2.2+.0722*e**2.2)/255**2.2}}, -function _(e,r,l,a,i){a();l.named_colors={aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},l.is_named_color=function(e){return e in l.named_colors}}, -function _(r,t,n,o,a){o(),n.GeneratorFunction=Object.getPrototypeOf((function*(){})).constructor,n.AsyncGeneratorFunction=Object.getPrototypeOf((async function*(){})).constructor,n.ColorArray=Uint32Array,n.RGBAArray=Uint8ClampedArray,n.infer_type=function(r,t){return r instanceof Float64Array||r instanceof Array||t instanceof Float64Array||t instanceof Array?Float64Array:Float32Array},n.ScreenArray=Float32Array,n.to_screen=function(r){return r instanceof Float32Array?r:Float32Array.from(r)},a("Indices",r(25).BitSet)}, +function _(n,r,t,e,s){e(),t.byte=a,t.transparent=f,t.encode_rgba=function([n,r,t,e]){return n<<24|r<<16|t<<8|e},t.decode_rgba=g,t.color2rgba=b,t.rgba2css=$,t.color2css=function(n,r){if(!(0,c.isString)(n)||null!=r&&1!=r){const[t,e,s,u]=b(n,r);return $([t,e,s,u])}return n},t.color2hex=function(n,r){const[t,e,s,u]=b(n,r),i=`#${d(t)}${d(e)}${d(s)}`;return 255==u?i:`${i}${d(u)}`},t.color2hexrgb=function(n){const[r,t,e]=b(n);return`#${d(r)}${d(t)}${d(e)}`},t.css4_parse=p,t.is_Color=function(n){if((0,c.isInteger)(n))return!0;if((0,c.isString)(n)&&null!=p(n))return!0;if((0,c.isArray)(n)&&(3==n.length||4==n.length))return!0;return!1},t.is_dark=function([n,r,t]){return 1-(.299*n+.587*r+.114*t)/255>=.6},t.brightness=function(n){const[r,t,e]=b(n);return l(.299*r**2+.587*t**2+.114*e**2)/255},t.luminance=function(n){const[r,t,e]=b(n);return(.2126*r**2.2+.7152*t**2.2+.0722*e**2.2)/255**2.2};const u=n(23),i=n(11),c=n(8),{round:o,sqrt:l}=Math;function a(n){return(0,i.clamp)(o(n),0,255)}function f(){return[0,0,0,0]}function g(n){return[n>>24&255,n>>16&255,n>>8&255,255&n]}function b(n,r=1){const[t,e,s,u]=(()=>{if(null==n)return[0,0,0,0];if((0,c.isInteger)(n))return g(n);if((0,c.isString)(n))return p(n)??[0,0,0,0];if(2==n.length){const[r,t]=n;return b(r,t)}{const[r,t,e,s=1]=n;return[r,t,e,a(255*s)]}})();return[t,e,s,a(r*u)]}const h={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"a",11:"b",12:"c",13:"d",14:"e",15:"f"};function d(n){return h[n>>4]+h[15&n]}function $([n,r,t,e]){return`rgb(${n} ${r} ${t}${255==e?"":" / "+e/255})`}const m=/^rgba?\(\s*(?[^\s,]+?)\s+(?[^\s,]+?)\s+(?[^\s,]+?)(?:\s*\/\s*(?[^\s,]+?))?\s*\)$/,N=/^rgba?\(\s*(?[^\s,]+?)\s*,\s*(?[^\s,]+?)\s*,\s*(?[^\s,]+?)(?:\s*,\s*(?[^\s,]+?))?\s*\)$/,_=(()=>{const n=document.createElement("canvas");n.width=1,n.height=1;const r=n.getContext("2d"),t=r.createLinearGradient(0,0,1,1);return n=>{r.fillStyle=t,r.fillStyle=n;const e=r.fillStyle;return e!=t?e:null}})();function p(n){if(""==(n=n.trim().toLowerCase()))return null;if("transparent"==n)return[0,0,0,0];if((0,u.is_named_color)(n))return g(u.named_colors[n]);if("#"==n[0]){const r=Number(`0x${n.substring(1)}`);if(isNaN(r))return null;switch(n.length-1){case 3:{const n=r>>8&15,t=r>>4&15,e=15&r;return[n<<4|n,t<<4|t,e<<4|e,255]}case 4:{const n=r>>12&15,t=r>>8&15,e=r>>4&15,s=15&r;return[n<<4|n,t<<4|t,e<<4|e,s<<4|s]}case 6:return[r>>16&255,r>>8&255,255&r,255];case 8:return[r>>24&255,r>>16&255,r>>8&255,255&r]}}else if(n.startsWith("rgb")){const r=n.match(m)??n.match(N);if(null!=r?.groups){let{r:n,g:t,b:e,a:s="1"}=r.groups;const u=n.endsWith("%"),i=t.endsWith("%"),c=e.endsWith("%"),o=s.endsWith("%");if(!(u&&i&&c)&&(u||i||c))return null;u&&(n=n.slice(0,-1)),i&&(t=t.slice(0,-1)),c&&(e=e.slice(0,-1)),o&&(s=s.slice(0,-1));let l=Number(n),f=Number(t),g=Number(e),b=Number(s);return isNaN(l+f+g+b)?null:(u&&(l=l/100*255),i&&(f=f/100*255),c&&(g=g/100*255),b=255*(o?b/100:b),l=a(l),f=a(f),g=a(g),b=a(b),[l,f,g,b])}}else{const r=_(n);if(null!=r)return p(r)}return null}}, +function _(e,r,l,a,i){a(),l.is_named_color=function(e){return e in l.named_colors};l.named_colors={aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}}, +function _(r,t,n,o,a){o(),n.infer_type=function(r,t){if(r instanceof Float64Array||r instanceof Array)return Float64Array;if(t instanceof Float64Array||t instanceof Array)return Float64Array;return Float32Array},n.to_screen=function(r){return r instanceof Float32Array?r:Float32Array.from(r)},n.GeneratorFunction=Object.getPrototypeOf((function*(){})).constructor,n.AsyncGeneratorFunction=Object.getPrototypeOf((async function*(){})).constructor,n.ColorArray=Uint32Array,n.RGBAArray=Uint8ClampedArray,n.ScreenArray=Float32Array,a("Indices",r(25).BitSet)}, function _(t,s,r,e,i){var n,o;e();const _=t(26),a=t(12),h=t(17);class c{constructor(t,s=0){this[n]="BitSet",this._count=null,this.size=t,this._nwords=Math.ceil(t/c._word_length),0==s||1==s?(this._array=new Uint32Array(this._nwords),1==s&&this._array.fill(4294967295)):((0,a.assert)(s.length==this._nwords,"Initializer size mismatch"),this._array=s)}clone(){return new c(this.size,new Uint32Array(this._array))}[(n=Symbol.toStringTag,o=h.has_refs,_.equals)](t,s){if(!s.eq(this.size,t.size))return!1;const{_nwords:r}=this,e=this.size%c._word_length,i=0==e?r:r-1;for(let s=0;s>>5,r=31&t;return 1==(this._array[s]>>r&1)}set(t,s=!0){this._check_bounds(t),this._count=null;const r=t>>>5,e=31&t;s?this._array[r]|=1<>>t&1)&&(e+=1)}return e}*ones(){const{_array:t,_nwords:s,size:r}=this;for(let e=0,i=0;i>>t&1)&&(yield e);else e+=c._word_length}}*zeros(){const{_array:t,_nwords:s,size:r}=this;for(let e=0,i=0;i>>t&1||(yield e);else e+=c._word_length}}_check_size(t){(0,a.assert)(this.size==t.size,`Size mismatch (${this.size} != ${t.size})`)}invert(){for(let t=0;t>>0}add(t){this._check_size(t);for(let s=0;s0;)if(n[c]===t)return o[c]===e;n.push(t),o.push(e);const l=(()=>{if(a(t)&&a(e))return t[r.equals](e,this);switch(s){case"[object Array]":case"[object Uint8Array]":case"[object Int8Array]":case"[object Uint16Array]":case"[object Int16Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":return this.arrays(t,e);case"[object Map]":return this.maps(t,e);case"[object Set]":return this.sets(t,e);case"[object Object]":if(t.constructor==e.constructor&&(null==t.constructor||t.constructor===Object))return this.objects(t,e);case"[object Function]":if(t.constructor==e.constructor&&t.constructor===Function)return this.eq(`${t}`,`${e}`)}if("undefined"!=typeof Node&&t instanceof Node)return this.nodes(t,e);throw new u(`can't compare objects of type ${s}`)})();return n.pop(),o.pop(),l}numbers(t,e){return Object.is(t,e)}arrays(t,e){const{length:r}=t;if(r!=e.length)return!1;for(let s=0;s0,i.is_little_endian=(()=>{const n=new ArrayBuffer(4),t=new Uint8Array(n);new Uint32Array(n)[1]=168496141;let i=!0;return 10==t[4]&&11==t[5]&&12==t[6]&&13==t[7]&&(i=!1),i})(),i.BYTE_ORDER=i.is_little_endian?"little":"big",i.to_big_endian=function(n){if(i.is_little_endian){const t=new Uint32Array(n.length),i=new DataView(t.buffer);let e=0;for(const t of n)i.setUint32(e,t),e+=4;return t}return n}}, -function _(n,i,r,t,e){t();const u=n(8),f=n(9);function c(n,i){if(!(0,u.isPlainObject)(n))return!1;if(!(i in n))return!1;let r=(0,f.size)(n)-1;return"transform"in n&&(r-=1),"units"in n&&(r-=1),0==r}function o(n){return c(n,"value")}function s(n){return c(n,"field")}function l(n){return c(n,"expr")}r.isValue=o,r.isField=s,r.isExpr=l,r.isVectorized=function(n){return o(n)||s(n)||l(n)}}, +function _(t,e,r,s,n){s(),r.is_equal=function(t,e){return(new l).eq(t,e)},r.is_structurally_equal=function(t,e){return new l({structural:!0}).eq(t,e)},r.is_similar=function(t,e,r){return new f(r).eq(t,e)};const o=t(8),{hasOwnProperty:c}=Object.prototype;function a(t){return(0,o.isObject)(t)&&r.equals in t}r.equals=Symbol("equals"),r.wildcard=Symbol("wildcard");const i=Object.prototype.toString;class u extends Error{}r.EqNotImplemented=u,u.__name__="EqNotImplemented";class l{constructor(t){this.a_stack=[],this.b_stack=[],this.structural=t?.structural??!1}eq(t,e){if(t===e||Object.is(t,e))return!0;if(t===r.wildcard||e===r.wildcard)return!0;if(null==t||null==e)return t===e;const s=i.call(t);if(s!=i.call(e))return!1;switch(s){case"[object Number]":return this.numbers(t,e);case"[object Symbol]":return t===e;case"[object RegExp]":case"[object String]":return`${t}`==`${e}`;case"[object Date]":case"[object Boolean]":return+t==+e}const{a_stack:n,b_stack:o}=this;let c=n.length;for(;c-- >0;)if(n[c]===t)return o[c]===e;n.push(t),o.push(e);const l=(()=>{if(a(t)&&a(e))return t[r.equals](e,this);switch(s){case"[object Array]":case"[object Uint8Array]":case"[object Int8Array]":case"[object Uint16Array]":case"[object Int16Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":return this.arrays(t,e);case"[object Map]":return this.maps(t,e);case"[object Set]":return this.sets(t,e);case"[object Object]":if(t.constructor==e.constructor&&(null==t.constructor||t.constructor===Object))return this.objects(t,e);case"[object Function]":if(t.constructor==e.constructor&&t.constructor===Function)return this.eq(`${t}`,`${e}`)}if("undefined"!=typeof Node&&t instanceof Node)return this.nodes(t,e);throw new u(`can't compare objects of type ${s}`)})();return n.pop(),o.pop(),l}numbers(t,e){return t===e||Object.is(t,e)}arrays(t,e){const{length:r}=t;if(r!=e.length)return!1;for(let s=0;s0,i.is_little_endian=(()=>{const n=new ArrayBuffer(4),t=new Uint8Array(n);new Uint32Array(n)[1]=168496141;let i=!0;return 10==t[4]&&11==t[5]&&12==t[6]&&13==t[7]&&(i=!1),i})(),i.BYTE_ORDER=i.is_little_endian?"little":"big"}, +function _(n,i,r,t,e){t(),r.isValue=o,r.isField=s,r.isExpr=l,r.isVectorized=function(n){return o(n)||s(n)||l(n)};const u=n(8),f=n(9);function c(n,i){if(!(0,u.isPlainObject)(n))return!1;if(!(i in n))return!1;let r=(0,f.size)(n)-1;return"transform"in n&&(r-=1),"units"in n&&(r-=1),0==r}function o(n){return c(n,"value")}function s(n){return c(n,"field")}function l(n){return c(n,"expr")}}, function _(e,t,r,s,_){s();class i{constructor(){this._dev=!1,this._wireframe=!1,this._force_webgl=!1,this._force_fields=!1}set dev(e){this._dev=e}get dev(){return this._dev}set wireframe(e){this._wireframe=e}get wireframe(){return this._wireframe}set force_webgl(e){this._force_webgl=e}get force_webgl(){return this._force_webgl}set force_fields(e){this._force_fields=e}get force_fields(){return this._force_fields}}r.Settings=i,i.__name__="Settings",r.settings=new i}, -function _(e,t,s,r,n){var a,i,h,u,o,l,c,p,y,_;r();const A=e(8),d=e(27),g=e(26),f=e(31),m=e(32),w=Symbol("__ndarray__");function N(e,t){return{type:"ndarray",array:t.encode("object"==e.dtype?Array.from(e):e.buffer),order:d.BYTE_ORDER,dtype:e.dtype,shape:e.shape}}class D extends Uint8Array{constructor(e,t){super(e),this[a]=!0,this.dtype="bool",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(a=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new D(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return 1==this[e]}}s.BoolNDArray=D,D.__name__="BoolNDArray";class q extends Uint8Array{constructor(e,t){super(e),this[i]=!0,this.dtype="uint8",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(i=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new q(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint8NDArray=q,q.__name__="Uint8NDArray";class b extends Int8Array{constructor(e,t){super(e),this[h]=!0,this.dtype="int8",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(h=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new b(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int8NDArray=b,b.__name__="Int8NDArray";class U extends Uint16Array{constructor(e,t){super(e),this[u]=!0,this.dtype="uint16",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(u=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new U(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint16NDArray=U,U.__name__="Uint16NDArray";class I extends Int16Array{constructor(e,t){super(e),this[o]=!0,this.dtype="int16",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(o=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new I(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int16NDArray=I,I.__name__="Int16NDArray";class x extends Uint32Array{constructor(e,t){super(e),this[l]=!0,this.dtype="uint32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(l=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new x(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint32NDArray=x,x.__name__="Uint32NDArray";class z extends Int32Array{constructor(e,t){super(e),this[c]=!0,this.dtype="int32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(c=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new z(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int32NDArray=z,z.__name__="Int32NDArray";class F extends Float32Array{constructor(e,t){super(e),this[p]=!0,this.dtype="float32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(p=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new F(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Float32NDArray=F,F.__name__="Float32NDArray";class j extends Float64Array{constructor(e,t){super(e),this[y]=!0,this.dtype="float64",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(y=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new j(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Float64NDArray=j,j.__name__="Float64NDArray";class B extends Array{get shape(){return this._shape??[this.length]}get dimension(){return this.shape.length}constructor(e,t){const s=e instanceof ArrayBuffer?new Float64Array(e):e;if(super((0,A.isNumber)(s)?s:s.length),this[_]=!0,this.dtype="object",!(0,A.isNumber)(s))for(let e=0;e{switch(!0){case e instanceof Uint8Array:return"uint8";case e instanceof Int8Array:return"int8";case e instanceof Uint16Array:return"uint16";case e instanceof Int16Array:return"int16";case e instanceof Uint32Array:return"uint32";case e instanceof Int32Array:return"int32";case e instanceof Float32Array:return"float32";case e instanceof ArrayBuffer:case e instanceof Float64Array:return"float64";default:return"object"}})()),t){case"bool":return new D(e,s);case"uint8":return new q(e,s);case"int8":return new b(e,s);case"uint16":return new U(e,s);case"int16":return new I(e,s);case"uint32":return new x(e,s);case"int32":return new z(e,s);case"float32":return new F(e,s);case"float64":return new j(e,s);case"object":return new B(e,s)}}}, -function _(n,e,t,o,r){o();const i=n(9),c=n(8);function l(n){return(0,c.isObject)(n)&&t.clone in n}t.clone=Symbol("clone"),t.is_Cloneable=l;class s extends Error{}t.CloningError=s,s.__name__="CloningError";class a{constructor(){}clone(n){if(l(n))return n[t.clone](this);if((0,c.isPrimitive)(n))return n;if((0,c.isArray)(n)){const e=n.length,t=new Array(e);for(let o=0;o[this.clone(n),this.clone(e)])));if(n instanceof Set)return new Set([...n].map((n=>this.clone(n))));throw new s(`${Object.prototype.toString.call(n)} is not cloneable`)}}t.Cloner=a,a.__name__="Cloner"}, +function _(e,t,s,r,n){var a,i,h,u,o,l,c,p,y,_;r(),s.is_NDArray=O,s.ndarray=function(e,{dtype:t,shape:s}={}){null==t&&(t=(()=>{switch(!0){case e instanceof Uint8Array:return"uint8";case e instanceof Int8Array:return"int8";case e instanceof Uint16Array:return"uint16";case e instanceof Int16Array:return"int16";case e instanceof Uint32Array:return"uint32";case e instanceof Int32Array:return"int32";case e instanceof Float32Array:return"float32";case e instanceof ArrayBuffer:case e instanceof Float64Array:return"float64";default:return"object"}})());switch(t){case"bool":return new D(e,s);case"uint8":return new q(e,s);case"int8":return new b(e,s);case"uint16":return new U(e,s);case"int16":return new I(e,s);case"uint32":return new x(e,s);case"int32":return new z(e,s);case"float32":return new F(e,s);case"float64":return new j(e,s);case"object":return new B(e,s)}};const A=e(8),d=e(27),g=e(26),f=e(31),m=e(32),w=Symbol("__ndarray__");function N(e,t){return{type:"ndarray",array:t.encode("object"==e.dtype?Array.from(e):e.buffer),order:d.BYTE_ORDER,dtype:e.dtype,shape:e.shape}}class D extends Uint8Array{constructor(e,t){super(e),this[a]=!0,this.dtype="bool",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(a=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new D(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return 1==this[e]}}s.BoolNDArray=D,D.__name__="BoolNDArray";class q extends Uint8Array{constructor(e,t){super(e),this[i]=!0,this.dtype="uint8",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(i=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new q(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint8NDArray=q,q.__name__="Uint8NDArray";class b extends Int8Array{constructor(e,t){super(e),this[h]=!0,this.dtype="int8",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(h=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new b(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int8NDArray=b,b.__name__="Int8NDArray";class U extends Uint16Array{constructor(e,t){super(e),this[u]=!0,this.dtype="uint16",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(u=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new U(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint16NDArray=U,U.__name__="Uint16NDArray";class I extends Int16Array{constructor(e,t){super(e),this[o]=!0,this.dtype="int16",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(o=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new I(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int16NDArray=I,I.__name__="Int16NDArray";class x extends Uint32Array{constructor(e,t){super(e),this[l]=!0,this.dtype="uint32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(l=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new x(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Uint32NDArray=x,x.__name__="Uint32NDArray";class z extends Int32Array{constructor(e,t){super(e),this[c]=!0,this.dtype="int32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(c=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new z(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Int32NDArray=z,z.__name__="Int32NDArray";class F extends Float32Array{constructor(e,t){super(e),this[p]=!0,this.dtype="float32",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(p=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new F(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Float32NDArray=F,F.__name__="Float32NDArray";class j extends Float64Array{constructor(e,t){super(e),this[y]=!0,this.dtype="float64",this.shape=t??(O(e)?e.shape:[this.length]),this.dimension=this.shape.length}[(y=w,g.equals)](e,t){return t.eq(this.shape,e.shape)&&t.arrays(this,e)}[f.clone](e){return new j(this,e.clone(this.shape))}[m.serialize](e){return N(this,e)}get(e){return this[e]}}s.Float64NDArray=j,j.__name__="Float64NDArray";class B extends Array{get shape(){return this._shape??[this.length]}get dimension(){return this.shape.length}constructor(e,t){const s=e instanceof ArrayBuffer?new Float64Array(e):e;if(super((0,A.isNumber)(s)?s:s.length),this[_]=!0,this.dtype="object",!(0,A.isNumber)(s))for(let e=0;e[this.clone(n),this.clone(e)])));if(n instanceof Set)return new Set([...n].map((n=>this.clone(n))));throw new s(`${Object.prototype.toString.call(n)} is not cloneable`)}}t.Cloner=a,a.__name__="Cloner"}, function _(r,e,i,a,f){a();const o=r(1);var l=r(33);f("Serializer",l.Serializer),f("SerializationError",l.SerializationError),f("serialize",l.serialize);var t=r(35);f("Buffer",t.Buffer),f("Base64Buffer",t.Base64Buffer),o.__exportStar(r(37),i)}, function _(e,r,t,n,i){n();const s=e(12),a=e(9),c=e(8),o=e(34),u=e(27),l=e(35);t.serialize=Symbol("serialize");class f extends Error{}t.SerializationError=f,f.__name__="SerializationError";class y{constructor(e){this.value=e}to_json(){return JSON.stringify(this.value)}}y.__name__="Serialized";class d{constructor(e){this._circular=new WeakSet,this.binary=e?.binary??!1,this.include_defaults=e?.include_defaults??!1;const r=e?.references;this._references=null!=r?new Map(r):new Map}get_ref(e){return this._references.get(e)}add_ref(e,r){(0,s.assert)(!this._references.has(e)),this._references.set(e,r)}to_serializable(e){return new y(this.encode(e))}encode(e){const r=this.get_ref(e);if(null!=r)return r;if(!(0,c.isObject)(e))return this._encode(e);this._circular.has(e)&&this.error("circular reference"),this._circular.add(e);try{return this._encode(e)}finally{this._circular.delete(e)}}_encode(e){if(function(e){return(0,c.isObject)(e)&&t.serialize in e}(e))return e[t.serialize](this);if((0,c.isArray)(e)){const r=e.length,t=new Array(r);for(let n=0;n[this.encode(e),this.encode(r)]))]}}if(null===e||(0,c.isBoolean)(e)||(0,c.isString)(e))return e;if((0,c.isNumber)(e))return isNaN(e)?{type:"number",value:"nan"}:isFinite(e)?e:{type:"number",value:(e<0?"-":"+")+"inf"};if(e instanceof Date){return{type:"date",iso:e.toISOString()}}if(e instanceof Set)return 0==e.size?{type:"set"}:{type:"set",entries:[...(0,o.map)(e.values(),(e=>this.encode(e)))]};if(e instanceof Map)return 0==e.size?{type:"map"}:{type:"map",entries:[...(0,o.map)(e.entries(),(([e,r])=>[this.encode(e),this.encode(r)]))]};if((0,c.isSymbol)(e)&&null!=e.description)return{type:"symbol",name:e.description};throw new f(`${Object.prototype.toString.call(e)} is not serializable`)}encode_struct(e){const r={};for(const[t,n]of(0,a.entries)(e))void 0!==n&&(r[t]=this.encode(n));return r}error(e){throw new f(e)}_encode_typed_array(e){const r=this.encode(e.buffer),t=(()=>{switch(e.constructor){case Uint8Array:return"uint8";case Int8Array:return"int8";case Uint16Array:return"uint16";case Int16Array:return"int16";case Uint32Array:return"uint32";case Int32Array:return"int32";case Float32Array:return"float32";case Float64Array:return"float64";default:this.error(`can't serialize typed array of type '${e[Symbol.toStringTag]}'`)}})();return{type:"typed_array",array:r,order:u.BYTE_ORDER,dtype:t}}}t.Serializer=d,d.__name__="Serializer"}, -function _(n,o,t,e,f){e();const i=n(10),r=n(12);var l=n(13);function*c(n){const o=n.length;for(let t=0;t=0);for(const t of n)0==o?yield t:o-=1}function*a(n,o){const t=n.length;if(o>t)return;const e=(0,i.range)(o);for(yield e.map((o=>n[o]));;){let f;for(const n of c((0,i.range)(o)))if(e[n]!=n+t-o){f=n;break}if(null==f)return;e[f]+=1;for(const n of(0,i.range)(f+1,o))e[n]=e[n-1]+1;yield e.map((o=>n[o]))}}f("min",l.min),f("max",l.max),t.range=function*(n,o,t=1){(0,r.assert)(t>0);const{abs:e,ceil:f,max:i}=Math;null==o&&(o=n,n=0);const l=n<=o?t:-t,c=i(f(e(o-n)/t),0);for(let o=0;o=0);let t=0;for(const e of n){if(!(t++0);const{abs:e,ceil:f,max:i}=Math;null==o&&(o=n,n=0);const l=n<=o?t:-t,c=i(f(e(o-n)/t),0);for(let o=0;o=0);let t=0;for(const e of n){if(!(t++=0);for(const t of n)0==o?yield t:o-=1}function*a(n,o){const t=n.length;if(o>t)return;const e=(0,i.range)(o);for(yield e.map((o=>n[o]));;){let f;for(const n of c((0,i.range)(o)))if(e[n]!=n+t-o){f=n;break}if(null==f)return;e[f]+=1;for(const n of(0,i.range)(f+1,o))e[n]=e[n-1]+1;yield e.map((o=>n[o]))}}f("min",l.min),f("max",l.max)}, function _(e,f,r,s,t){s();const u=e(36),_=e(26);class a{constructor(e){this.buffer=e}to_base64(){return(0,u.buffer_to_base64)(this.buffer)}[_.equals](e,f){return f.eq(this.buffer,e.buffer)}}r.Buffer=a,a.__name__="Buffer";class n extends a{toJSON(){return this.to_base64()}}r.Base64Buffer=n,n.__name__="Base64Buffer"}, function _(t,n,e,r,o){r(),e.buffer_to_base64=function(t){const n=new Uint8Array(t),e=Array.from(n).map((t=>String.fromCharCode(t)));return btoa(e.join(""))},e.base64_to_buffer=function(t){const n=atob(t),e=n.length,r=new Uint8Array(e);for(let t=0,o=e;t"'`])/g,(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"`":return"`";default:return e}}))},r.unescape=function(e){return e.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,((e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"#x27":return"'";case"#x60":return"`";default:return t}}))},r.use_strict=function(e){return`'use strict';\n${e}`},r.to_fixed=function(e,t){return e.toFixed(t).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"")},r.insert_text_on_position=function(e,t,r){const n=[];return n.push(e.slice(0,t)),n.push(r),n.push(e.slice(t)),n.join("")}}, +function _(t,r,e,a,s){a(),e.min=function(t){return t.is_Scalar()?t.value:l.min(t.array)},e.max=function(t){return t.is_Scalar()?t.value:l.max(t.array)};const n=t(1),i=t(26),l=n.__importStar(t(13));class o{is_Scalar(){return this.is_scalar}is_Vector(){return!this.is_scalar}}e.Uniform=o,o.__name__="Uniform";class h extends o{constructor(t,r){super(),this.is_scalar=!0,this.value=t,this.length=r}get(t){return this.value}*[Symbol.iterator](){const{length:t,value:r}=this;for(let e=0;e"'`])/g,(e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"`":return"`";default:return e}}))},r.unescape=function(e){return e.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,((e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"#x27":return"'";case"#x60":return"`";default:return t}}))},r.use_strict=function(e){return`'use strict';\n${e}`},r.to_fixed=function(e,t){return e.toFixed(t).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"")},r.insert_text_on_position=function(e,t,r){const n=[];return n.push(e.slice(0,t)),n.push(r),n.push(e.slice(t)),n.join("")};const c=e(29);function s(){const e=new Array(32),t="0123456789ABCDEF";for(let r=0;r<32;r++)e[r]=t[Math.floor(16*Math.random())];return e[12]="4",e[16]=t[3&e[16].charCodeAt(0)|8],e.join("")}let a=1e3}, function _(e,t,s,n,a){n();const i=e(26),r=e(32);class d{constructor(e){this.sync=!0,this.document=e}get[Symbol.toStringTag](){return this.constructor.__name__}[i.equals](e,t){return t.eq(this.document,e.document)}}s.DocumentEvent=d,d.__name__="DocumentEvent";class o extends d{constructor(e,t){super(e),this.events=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.events,e.events)}}s.DocumentEventBatch=o,o.__name__="DocumentEventBatch";class l extends d{}s.DocumentChangedEvent=l,l.__name__="DocumentChangedEvent";class h extends l{constructor(e,t,s){super(e),this.kind="MessageSent",this.msg_type=t,this.msg_data=s}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.msg_type,e.msg_type)&&t.eq(this.msg_data,e.msg_data)}[r.serialize](e){return{kind:this.kind,msg_type:this.msg_type,msg_data:e.encode(this.msg_data)}}}s.MessageSentEvent=h,h.__name__="MessageSentEvent";class u extends l{constructor(e,t,s,n){super(e),this.kind="ModelChanged",this.model=t,this.attr=s,this.value=n}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.value,e.value)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,new:e.encode(this.value)}}}s.ModelChangedEvent=u,u.__name__="ModelChangedEvent";class m extends l{constructor(e,t,s,n,a){super(e),this.kind="ColumnDataChanged",this.model=t,this.attr=s,this.data=n,this.cols=a}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.data,e.data)&&t.eq(this.cols,e.cols)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,data:e.encode(this.data),cols:this.cols}}}s.ColumnDataChangedEvent=m,m.__name__="ColumnDataChangedEvent";class c extends l{constructor(e,t,s,n,a){super(e),this.kind="ColumnsStreamed",this.model=t,this.attr=s,this.data=n,this.rollover=a}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.data,e.data)&&t.eq(this.rollover,e.rollover)}[r.serialize](e){return{kind:this.kind,model:this.model.ref(),attr:this.attr,data:e.encode(this.data),rollover:this.rollover}}}s.ColumnsStreamedEvent=c,c.__name__="ColumnsStreamedEvent";class _ extends l{constructor(e,t,s,n){super(e),this.kind="ColumnsPatched",this.model=t,this.attr=s,this.patches=n}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)&&t.eq(this.attr,e.attr)&&t.eq(this.patches,e.patches)}[r.serialize](e){return{kind:this.kind,attr:this.attr,model:this.model.ref(),patches:e.encode(this.patches)}}}s.ColumnsPatchedEvent=_,_.__name__="ColumnsPatchedEvent";class q extends l{constructor(e,t){super(e),this.kind="TitleChanged",this.title=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.title,e.title)}[r.serialize](e){return{kind:this.kind,title:this.title}}}s.TitleChangedEvent=q,q.__name__="TitleChangedEvent";class v extends l{constructor(e,t){super(e),this.kind="RootAdded",this.model=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)}[r.serialize](e){return{kind:this.kind,model:e.encode(this.model)}}}s.RootAddedEvent=v,v.__name__="RootAddedEvent";class p extends l{constructor(e,t){super(e),this.kind="RootRemoved",this.model=t}[i.equals](e,t){return super[i.equals](e,t)&&t.eq(this.model,e.model)}[r.serialize](e){return{kind:this.kind,model:this.model.ref()}}}s.RootRemovedEvent=p,p.__name__="RootRemovedEvent"}, -function _(t,r,i,e,n){e();const s=t(8),o=t(9);i.pretty=Symbol("pretty");class c{constructor(t){this.visited=new Set,this.precision=t?.precision}to_string(t){if((0,s.isObject)(t)){if(this.visited.has(t))return"";this.visited.add(t)}return function(t){return(0,s.isObject)(t)&&i.pretty in t}(t)?t[i.pretty](this):(0,s.isBoolean)(t)?this.boolean(t):(0,s.isNumber)(t)?this.number(t):(0,s.isString)(t)?this.string(t):(0,s.isArray)(t)?this.array(t):(0,s.isIterable)(t)?this.iterable(t):(0,s.isPlainObject)(t)?this.object(t):(0,s.isSymbol)(t)?this.symbol(t):t instanceof ArrayBuffer?this.array_buffer(t):`${t}`}token(t){return t}boolean(t){return`${t}`}number(t){return null!=this.precision?t.toFixed(this.precision):`${t}`}string(t){const r=t.includes("'"),i=t.includes('"');return r&&i?`\`${t.replace(/`/g,"\\`")}\``:i?`'${t}'`:`"${t}"`}symbol(t){return t.toString()}array(t){const r=this.token,i=[];for(const r of t)i.push(this.to_string(r));return`${r("[")}${i.join(`${r(",")} `)}${r("]")}`}iterable(t){const r=this.token,i=Object(t)[Symbol.toStringTag]??"Object",e=this.array(t);return`${i}${r("(")}${e}${r(")")}`}object(t){const r=this.token,i=[];for(const[e,n]of(0,o.entries)(t))i.push(`${e}${r(":")} ${this.to_string(n)}`);return`${r("{")}${i.join(`${r(",")} `)}${r("}")}`}array_buffer(t){return`ArrayBuffer(#${t.byteLength})`}}i.Printer=c,c.__name__="Printer",i.to_string=function(t,r){return new c(r).to_string(t)}}, -function _(t,r,n,e,o){e();const s=t(1),c=t(8),u=t(9),l=t(44),i=s.__importStar(t(45));function a(t,r,n){if((0,c.isArray)(t)&&(0,c.isArray)(r)){const e=t.concat(r);return null!=n&&e.length>n?e.slice(-n):e}const e=t.length+r.length;if(null!=n&&e>n){const o=e-n,s=t.length,u=(()=>{if(t.length{if((0,c.isTypedArray)(t))return t.constructor;if((0,c.isTypedArray)(r))return r.constructor;throw new Error("unsupported array types")})())(n);return e.set(t,0),e}return t})();for(let t=o,r=s;t{if((0,c.isTypedArray)(t))return t;if((0,c.isTypedArray)(r))return new r.constructor(t);throw new Error("unsupported array types")})();return i.concat(n,r)}}function f(t,r){let n,e,o;return(0,c.isNumber)(t)?(n=t,o=t+1,e=1):(n=null!=t.start?t.start:0,o=null!=t.stop?t.stop:r,e=null!=t.step?t.step:1),[n,o,e]}function p(t,r){const n=new Set;let e=!1;for(const[o,s]of r){let r,u,l,i;if((0,c.isArray)(o)){const[e]=o;n.add(e),r=t[e].shape,u=t[e],i=s,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else(0,c.isNumber)(o)?(i=[s],n.add(o)):(i=s,e=!0),l=[0,0,o],r=[1,t.length],u=t;let a=0;const[p,d,y]=f(l[1],r[0]),[h,_,g]=f(l[2],r[1]);for(let t=p;t";this.visited.add(t)}return function(t){return(0,s.isObject)(t)&&i.pretty in t}(t)?t[i.pretty](this):(0,s.isBoolean)(t)?this.boolean(t):(0,s.isNumber)(t)?this.number(t):(0,s.isString)(t)?this.string(t):(0,s.isArray)(t)?this.array(t):(0,s.isIterable)(t)?this.iterable(t):(0,s.isPlainObject)(t)?this.object(t):(0,s.isSymbol)(t)?this.symbol(t):t instanceof ArrayBuffer?this.array_buffer(t):`${t}`}token(t){return t}boolean(t){return`${t}`}number(t){return null!=this.precision?t.toFixed(this.precision):`${t}`}string(t){const r=t.includes("'"),i=t.includes('"');return r&&i?`\`${t.replace(/`/g,"\\`")}\``:i?`'${t}'`:`"${t}"`}symbol(t){return t.toString()}array(t){const r=this.token,i=[];for(const r of t)i.push(this.to_string(r));return`${r("[")}${i.join(`${r(",")} `)}${r("]")}`}iterable(t){const r=this.token,i=Object(t)[Symbol.toStringTag]??"Object",e=this.array(t);return`${i}${r("(")}${e}${r(")")}`}object(t){const r=this.token,i=[];for(const[e,n]of(0,o.entries)(t))i.push(`${e}${r(":")} ${this.to_string(n)}`);return`${r("{")}${i.join(`${r(",")} `)}${r("}")}`}array_buffer(t){return`ArrayBuffer(#${t.byteLength})`}}i.Printer=c,c.__name__="Printer"}, +function _(t,r,n,e,o){e(),n.stream_to_column=a,n.slice=f,n.patch_to_column=p,n.stream_to_columns=function(t,r,n){const e=(0,u.dict)(t);for(const[t,o]of(0,u.dict)(r)){const r=e.get(t)??[];e.set(t,a(r,o,n))}},n.patch_to_columns=function(t,r){const n=(0,u.dict)(t);let e=new Set;for(const[t,o]of(0,u.dict)(r)){const r=n.get(t)??[];e=(0,l.union)(e,p(r,o))}return e};const s=t(1),c=t(8),u=t(9),l=t(44),i=s.__importStar(t(45));function a(t,r,n){if((0,c.isArray)(t)&&(0,c.isArray)(r)){const e=t.concat(r);return null!=n&&e.length>n?e.slice(-n):e}const e=t.length+r.length;if(null!=n&&e>n){const o=e-n,s=t.length,u=(()=>{if(t.length{if((0,c.isTypedArray)(t))return t.constructor;if((0,c.isTypedArray)(r))return r.constructor;throw new Error("unsupported array types")})())(n);return e.set(t,0),e}return t})();for(let t=o,r=s;t{if((0,c.isTypedArray)(t))return t;if((0,c.isTypedArray)(r))return new r.constructor(t);throw new Error("unsupported array types")})();return i.concat(n,r)}}function f(t,r){let n,e,o;return(0,c.isNumber)(t)?(n=t,o=t+1,e=1):(n=null!=t.start?t.start:0,o=null!=t.stop?t.stop:r,e=null!=t.step?t.step:1),[n,o,e]}function p(t,r){const n=new Set;let e=!1;for(const[o,s]of r){let r,u,l,i;if((0,c.isArray)(o)){const[e]=o;n.add(e),r=t[e].shape,u=t[e],i=s,2===o.length?(r=[1,r[0]],l=[o[0],0,o[1]]):l=o}else(0,c.isNumber)(o)?(i=[s],n.add(o)):(i=s,e=!0),l=[0,0,o],r=[1,t.length],u=t;let a=0;const[p,d,y]=f(l[1],r[0]),[h,_,g]=f(l[2],r[1]);for(let t=p;t{try{return this._decode(e)}finally{t=new Set(this._finalizable),this._decoding=!1,this._buffers.clear(),this._finalizable.clear()}})();for(const e of t)this.finalize?.(e),e.finalize(),e.assert_initialized();for(const e of t)e.connect_signals();return s}_decode(e){if((0,l.isArray)(e))return this._decode_plain_array(e);if(!(0,l.isPlainObject)(e))return e;if(!(0,l.isString)(e.type))return(0,l.isString)(e.id)?this._decode_ref(e):this._decode_plain_object(e);{const r=h.get(e.type);if(null!=r)return r(e,this);switch(e.type){case"ref":return this._decode_ref(e);case"symbol":return this._decode_symbol(e);case"number":return this._decode_number(e);case"array":return this._decode_array(e);case"set":return this._decode_set(e);case"map":return this._decode_map(e);case"bytes":return this._decode_bytes(e);case"slice":return this._decode_slice(e);case"date":return this._decode_date(e);case"value":return this._decode_value(e);case"field":return this._decode_field(e);case"expr":return this._decode_expr(e);case"typed_array":return this._decode_typed_array(e);case"ndarray":return this._decode_ndarray(e);case"object":return(0,l.isString)(e.id)?this._decode_object_ref(e):this._decode_object(e);default:this.error(`unable to decode an object of type '${e.type}'`)}}}_decode_symbol(e){this.error(`can't resolve named symbol '${e.name}'`)}_decode_number(e){if("value"in e){const{value:r}=e;if((0,l.isString)(r))switch(r){case"nan":return NaN;case"+inf":return 1/0;case"-inf":return-1/0}else if((0,l.isNumber)(r))return r}this.error(`invalid number representation '${e}'`)}_decode_plain_array(e){return(0,c.map)(e,(e=>this._decode(e)))}_decode_plain_object(e){const r={};for(const[t,s]of(0,a.entries)(e))r[t]=this._decode(s);return r}_decode_array(e){const r=[];for(const t of e.entries??[])r.push(this._decode(t));return r}_decode_set(e){const r=new Set;for(const t of e.entries??[])r.add(this._decode(t));return r}_decode_map(e){const r=(0,c.map)(e.entries??[],(([e,r])=>[this._decode(e),this._decode(r)]));return r.every((([e,r])=>(0,l.isString)(e)))?Object.fromEntries(r):new Map(r)}_decode_bytes(e){const{data:r}=e;if(!(0,d.is_ref)(r))return(0,l.isString)(r)?(0,u.base64_to_buffer)(r):r.buffer;{const e=this._buffers.get(r.id);if(null!=e)return e;this.error(`buffer for id=${r.id} not found`)}}_decode_slice(e){const r=this._decode(e.start),t=this._decode(e.stop),s=this._decode(e.step);return new f.Slice({start:r,stop:t,step:s})}_decode_date(e){const r=this._decode(e.iso);return new Date(r)}_decode_value(e){return{value:this._decode(e.value),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_field(e){return{field:this._decode(e.field),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_expr(e){return{expr:this._decode(e.expr),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_typed_array(e){const{array:r,order:t,dtype:s}=e,n=this._decode(r);switch(t!=_.BYTE_ORDER&&(0,u.swap)(n,s),s){case"uint8":return new Uint8Array(n);case"int8":return new Int8Array(n);case"uint16":return new Uint16Array(n);case"int16":return new Int16Array(n);case"uint32":return new Uint32Array(n);case"int32":return new Int32Array(n);case"float32":return new Float32Array(n);case"float64":return new Float64Array(n);default:this.error(`unsupported dtype '${s}'`)}}_decode_ndarray(e){const{array:r,order:t,dtype:s,shape:n}=e,i=this._decode(r);return i instanceof ArrayBuffer&&t!=_.BYTE_ORDER&&(0,u.swap)(i,s),(0,o.ndarray)(i,{dtype:s,shape:n})}_decode_object(e){const{type:r,attributes:t}=e,s=this._resolve_type(r);return null!=t?new s(this._decode(t)):new s}_decode_ref(e){const r=this.references.get(e.id);if(null!=r)return r;this.error(`reference ${e.id} isn't known`)}_decode_object_ref(e){const{id:r,name:t,attributes:s}=e,n=this.references.get(r);if(null==n){const e=new(this._resolve_type(t))({id:r});this.references.set(r,e);const n=this._decode(s??{});return e.initialize_props(n),this._finalizable.add(e),e}if(n.type==t){const e=this._decode(s??{});return n.setv(e,{sync:!1}),n}this.error(`type mismatch for an existing reference '${n}', expected '${t}'`)}error(e){throw new y(e)}warning(e){i.logger.warn(e)}_resolve_type(e){const r=this.resolver.get(e);if(null!=r)return r;this.error(`could not resolve type '${e}', which could be due to a widget or a custom model not being registered before first usage`)}}t.Deserializer=p,p.__name__="Deserializer"}, +function _(e,r,t,s,n){s();const i=e(19),d=e(17),o=e(30),a=e(9),c=e(10),_=e(27),u=e(36),l=e(8),f=e(48),h=new Map;class y extends Error{}t.DeserializationError=y,y.__name__="DeserializationError";class p{static register(e,r){if(h.has(e))throw new Error(`'${e}' already registered for decoding`);h.set(e,r)}constructor(e,r=new Map,t){this._decoding=!1,this._buffers=new Map,this._finalizable=new Set,this.resolver=e,this.references=r,this.finalize=t}decode(e,r){if(null!=r)for(const[e,t]of r)this._buffers.set(e,t);if(this._decoding)return this._decode(e);let t;this._decoding=!0;const s=(()=>{try{return this._decode(e)}finally{t=new Set(this._finalizable),this._decoding=!1,this._buffers.clear(),this._finalizable.clear()}})();for(const e of t)this.finalize?.(e),e.finalize(),e.assert_initialized();for(const e of t)e.connect_signals();return s}_decode(e){if((0,l.isArray)(e))return this._decode_plain_array(e);if(!(0,l.isPlainObject)(e))return e;if(!(0,l.isString)(e.type))return(0,l.isString)(e.id)?this._decode_ref(e):this._decode_plain_object(e);{const r=h.get(e.type);if(null!=r)return r(e,this);switch(e.type){case"ref":return this._decode_ref(e);case"symbol":return this._decode_symbol(e);case"number":return this._decode_number(e);case"array":return this._decode_array(e);case"set":return this._decode_set(e);case"map":return this._decode_map(e);case"bytes":return this._decode_bytes(e);case"slice":return this._decode_slice(e);case"date":return this._decode_date(e);case"value":return this._decode_value(e);case"field":return this._decode_field(e);case"expr":return this._decode_expr(e);case"typed_array":return this._decode_typed_array(e);case"ndarray":return this._decode_ndarray(e);case"object":return(0,l.isString)(e.id)?this._decode_object_ref(e):this._decode_object(e);default:this.error(`unable to decode an object of type '${e.type}'`)}}}_decode_symbol(e){this.error(`can't resolve named symbol '${e.name}'`)}_decode_number(e){if("value"in e){const{value:r}=e;if((0,l.isString)(r))switch(r){case"nan":return NaN;case"+inf":return 1/0;case"-inf":return-1/0}else if((0,l.isNumber)(r))return r}this.error(`invalid number representation '${e}'`)}_decode_plain_array(e){return(0,c.map)(e,(e=>this._decode(e)))}_decode_plain_object(e){const r={};for(const[t,s]of(0,a.entries)(e))r[t]=this._decode(s);return r}_decode_array(e){const r=[];for(const t of e.entries??[])r.push(this._decode(t));return r}_decode_set(e){const r=new Set;for(const t of e.entries??[])r.add(this._decode(t));return r}_decode_map(e){const r=(0,c.map)(e.entries??[],(([e,r])=>[this._decode(e),this._decode(r)]));return r.every((([e,r])=>(0,l.isString)(e)))?Object.fromEntries(r):new Map(r)}_decode_bytes(e){const{data:r}=e;if(!(0,d.is_ref)(r))return(0,l.isString)(r)?(0,u.base64_to_buffer)(r):r.buffer;{const e=this._buffers.get(r.id);if(null!=e)return e;this.error(`buffer for id=${r.id} not found`)}}_decode_slice(e){const r=this._decode(e.start),t=this._decode(e.stop),s=this._decode(e.step);return new f.Slice({start:r,stop:t,step:s})}_decode_date(e){const r=this._decode(e.iso);return new Date(r)}_decode_value(e){return{value:this._decode(e.value),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_field(e){return{field:this._decode(e.field),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_expr(e){return{expr:this._decode(e.expr),transform:null!=e.transform?this._decode(e.transform):void 0,units:null!=e.units?this._decode(e.units):void 0}}_decode_typed_array(e){const{array:r,order:t,dtype:s}=e,n=this._decode(r);switch(t!=_.BYTE_ORDER&&(0,u.swap)(n,s),s){case"uint8":return new Uint8Array(n);case"int8":return new Int8Array(n);case"uint16":return new Uint16Array(n);case"int16":return new Int16Array(n);case"uint32":return new Uint32Array(n);case"int32":return new Int32Array(n);case"float32":return new Float32Array(n);case"float64":return new Float64Array(n);default:this.error(`unsupported dtype '${s}'`)}}_decode_ndarray(e){const{array:r,order:t,dtype:s,shape:n}=e,i=this._decode(r);return i instanceof ArrayBuffer&&t!=_.BYTE_ORDER&&(0,u.swap)(i,s),(0,o.ndarray)(i,{dtype:s,shape:n})}_decode_object(e){const{name:r,attributes:t}=e,s=this._resolve_type(r);return null!=t?new s(this._decode(t)):new s}_decode_ref(e){const r=this.references.get(e.id);if(null!=r)return r;this.error(`reference ${e.id} isn't known`)}_decode_object_ref(e){const{id:r,name:t,attributes:s}=e,n=this.references.get(r);if(null==n){const e=new(this._resolve_type(t))({id:r});this.references.set(r,e);const n=this._decode(s??{});return e.initialize_props(n),this._finalizable.add(e),e}if(n.type==t){const e=this._decode(s??{});return n.setv(e,{sync:!1}),n}this.error(`type mismatch for an existing reference '${n}', expected '${t}'`)}error(e){throw new y(e)}warning(e){i.logger.warn(e)}_resolve_type(e){const r=this.resolver.get(e);if(null!=r)return r;this.error(`could not resolve type '${e}', which could be due to a widget or a custom model not being registered before first usage`)}}t.Deserializer=p,p.__name__="Deserializer"}, function _(t,s,e,i,n){i();const c=t(32);class l{constructor({start:t,stop:s,step:e}={}){this.start=t??null,this.stop=s??null,this.step=e??null}[c.serialize](t){return{type:"slice",start:t.encode(this.start),stop:t.encode(this.stop),step:t.encode(this.step)}}}e.Slice=l,l.__name__="Slice"}, function _(e,r,s,t,i){t();const a=e(26),n=/^(?\d+)\.(?\d+)\.(?\d+)(?:(?-dev\.|-rc\.|.dev|rc)(?\d+))?(?:\+(?\d+)\..+)?$/;var o;(o=s.ReleaseType||(s.ReleaseType={}))[o.Dev=0]="Dev",o[o.Candidate=1]="Candidate",o[o.Release=2]="Release";class c{constructor(e,r,t,i=s.ReleaseType.Release,a=0,n=0){this.major=e,this.minor=r,this.patch=t,this.type=i,this.revision=a,this.build=n}static from(e){return function(e){const r=n.exec(e);if(null==r||null==r.groups)return null;const{groups:t}=r,i=Number(t.major),a=Number(t.minor),o=Number(t.patch),l=(()=>{switch(t.type){case"-dev.":case".dev":return s.ReleaseType.Dev;case"-rc.":case"rc":return s.ReleaseType.Candidate;default:return s.ReleaseType.Release}})(),u=void 0===t.revision?0:Number(t.revision),d=void 0===t.build?0:Number(t.build);return new c(i,a,o,l,u,d)}(e)}toString(){const{major:e,minor:r,patch:t,type:i,revision:a,build:n}=this;let o=`${e}.${r}.${t}`;switch(i){case s.ReleaseType.Dev:o+=`-dev.${a}`;case s.ReleaseType.Candidate:o+=`-rc.${a}`;case s.ReleaseType.Release:}return 0!=n&&(o+=`+${n}`),o}[a.equals](e){const{major:r,minor:s,patch:t,type:i,revision:a}=this;return r==e.major&&s==e.minor&&t==e.patch&&i==e.type&&a==e.revision}}s.Version=c,c.__name__="Version"}, -function _(n,e,t,c,u){c();const i=n(8);t.execute=function(n,e,...t){return(0,i.isFunction)(n)?n(e,...t):n.execute(e,...t)}}, +function _(n,e,t,c,u){c(),t.execute=function(n,e,...t){return(0,i.isFunction)(n)?n(e,...t):n.execute(e,...t)};const i=n(8)}, function _(e,t,s,n,c){var i;n();const r=e(14),a=e(8),l=e(9),o=e(26),_=e(19),h=e(50);class u extends r.HasProps{get is_syncable(){return this.syncable}[o.equals](e,t){return(!!t.structural||t.eq(this.id,e.id))&&super[o.equals](e,t)}constructor(e){super(e)}initialize(){super.initialize(),this._js_callbacks=new Map}connect_signals(){super.connect_signals(),this._update_property_callbacks(),this.connect(this.properties.js_property_callbacks.change,(()=>this._update_property_callbacks())),this.connect(this.properties.js_event_callbacks.change,(()=>this._update_event_callbacks())),this.connect(this.properties.subscribed_events.change,(()=>this._update_event_callbacks()))}_process_event(e){for(const t of(0,l.dict)(this.js_event_callbacks).get(e.event_name)??[])(0,h.execute)(t,e);null!=this.document&&this.subscribed_events.has(e.event_name)&&this.document.event_manager.send_event(e)}trigger_event(e){null!=this.document&&(e.origin=this,this.document.event_manager.trigger(e))}_update_event_callbacks(){null!=this.document?this.document.event_manager.subscribed_models.add(this):_.logger.warn("WARNING: Document not defined for updating event callbacks")}_update_property_callbacks(){const e=e=>{const[t,s=null]=e.split(":");return null!=s?this.properties[s][t]:this[t]};for(const[t,s]of this._js_callbacks){const n=e(t);for(const e of s)this.disconnect(n,e)}this._js_callbacks.clear();for(const[t,s]of(0,l.dict)(this.js_property_callbacks)){const n=s.map((e=>()=>(0,h.execute)(e,this)));this._js_callbacks.set(t,n);const c=e(t);for(const e of n)this.connect(c,e)}}_doc_attached(){0==this.js_event_callbacks.size&&0==this.subscribed_events.size||this._update_event_callbacks()}_doc_detached(){this.document.event_manager.subscribed_models.delete(this)}select(e){if((0,a.isString)(e))return[...this.references()].filter((t=>t instanceof i&&t.name===e));if((0,a.isPlainObject)(e)&&"type"in e)return[...this.references()].filter((t=>t.type==e.type));if(e.prototype instanceof r.HasProps)return[...this.references()].filter((t=>t instanceof e));throw new Error(`invalid selector ${e}`)}select_one(e){const t=this.select(e);switch(t.length){case 0:return null;case 1:return t[0];default:throw new Error(`found multiple objects matching the given selector ${e}`)}}get_one(e){const t=this.select_one(e);if(null!=t)return t;throw new Error(`could not find any objects matching the given selector ${e}`)}on_event(e,t){const s=(0,a.isString)(e)?e:e.prototype.event_name,n=(0,l.dict)(this.js_event_callbacks),c=n.get(s)??[];n.set(s,[...c,t])}}s.Model=u,i=u,u.__name__="Model",i.define((({Any:e,Unknown:t,Bool:s,Str:n,List:c,Set:i,Dict:r,Nullable:a})=>({tags:[c(t),[]],name:[a(n),null],js_property_callbacks:[r(c(e)),{}],js_event_callbacks:[r(c(e)),{}],subscribed_events:[i(n),new globalThis.Set],syncable:[s,!0]})))}, -function _(e,n,r,t,o){t();const s=e(1),c=e(51),u=s.__importStar(e(21)),a=e(8),i=e(9);r.decode_def=function(e,n){var r;function t(e){if((0,a.isString)(e))switch(e){case"Any":return u.Any;case"Unknown":return u.Unknown;case"Bool":return u.Bool;case"Float":return u.Float;case"Int":return u.Int;case"Bytes":return u.Bytes;case"Str":return u.Str;case"Null":return u.Null}else switch(e[0]){case"Regex":{const[,n,r]=e;return u.Regex(new RegExp(n,r))}case"Nullable":{const[,n]=e;return u.Nullable(t(n))}case"Or":{const[,n,...r]=e;return u.Or(t(n),...r.map(t))}case"Tuple":{const[,n,...r]=e;return u.Tuple(t(n),...r.map(t))}case"List":{const[,n]=e;return u.List(t(n))}case"Struct":{const[,...n]=e,r=n.map((([e,n])=>[e,t(n)]));return u.Struct((0,i.to_object)(r))}case"Dict":{const[,n]=e;return u.Dict(t(n))}case"Mapping":{const[,n,r]=e;return u.Mapping(t(n),t(r))}case"Enum":{const[,...n]=e;return u.Enum(...n)}case"Ref":{const[,r]=e,t=n.resolver.get(r.id);if(null!=t)return u.Ref(t);throw new Error(`${r.id} wasn't defined before referencing it`)}case"AnyRef":return u.AnyRef()}}const o=(()=>{const r=e.extends?.id??"Model";if("Model"==r)return c.Model;const t=n.resolver.get(r);if(null!=t)return t;throw new Error(`base model ${r} of ${e.name} is not defined`)})(),l=(r=class extends o{},s.__setFunctionName(r,"model"),r.__qualified__=e.name,r);function d(e){return void 0===e?e:n.decode(e)}for(const n of e.properties??[]){const e=t(n.kind);l.define({[n.name]:[e,d(n.default)]})}for(const n of e.overrides??[])l.override({[n.name]:d(n.default)});return n.resolver.register(l),l}}, -function _(e,t,s,n,a){var _,r,l,o,u,c,i,v,d,m,p,h,x,y,g,E,P,f,M,R,S,D,b,k,L,C,O,U,I;n();var w=this&&this.__decorate||function(e,t,s,n){var a,_=arguments.length,r=_<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(_<3?a(r):_>3?a(t,s,r):a(t,s))||r);return _>3&&r&&Object.defineProperty(t,s,r),r};const T=e(51),B=e(8),j=e(12),z=e(32),G=e(47),V=e(26);function W(e){return t=>{t.prototype.event_name=e}}G.Deserializer.register("event",((e,t)=>{const s=q.get(e.name);if(void 0!==s&&null!=s.from_values){const n=t.decode(e.values);return(0,j.assert)((0,B.isPlainObject)(n)),s.from_values(n)}t.error(`deserialization of '${e.name}' event is not supported`)}));const q=new Map;s.server_event=function(e){return t=>{if(q.has(e))throw new Error(`'${e}' event is already registered`);q.set(e,t),t.prototype.event_name=e,t.prototype.publish=!1}};class ${[z.serialize](e){const{event_name:t,event_values:s}=this;return{type:"event",name:t,values:e.encode(s)}}[V.equals](e,t){return this.event_name==e.event_name&&t.eq(this.event_values,e.event_values)}}s.BokehEvent=$,_=$,$.__name__="BokehEvent",_.prototype.publish=!0;class A extends ${constructor(){super(...arguments),this.origin=null}get event_values(){return{model:this.origin}}}s.ModelEvent=A,A.__name__="ModelEvent";class F extends A{constructor(e){super(),this.values=e}get event_values(){return{...super.event_values,...this.values}}static from_values(e){const t=(()=>{if("model"in e){const{model:t}=e;return(0,j.assert)(null===t||t instanceof T.Model),delete e.model,t}return null})(),s=new this(e);return s.origin=t,s}}s.UserEvent=F,F.__name__="UserEvent";class H extends ${}s.DocumentEvent=H,H.__name__="DocumentEvent";let J=((r=class extends H{get event_values(){return{}}}).__name__="DocumentReady",r);s.DocumentReady=J,s.DocumentReady=J=w([W("document_ready")],J);class K extends H{}s.ConnectionEvent=K,K.__name__="ConnectionEvent";class N extends K{constructor(){super(...arguments),this.timestamp=new Date}get event_values(){const{timestamp:e}=this;return{timestamp:e}}}s.ConnectionLost=N,l=N,N.__name__="ConnectionLost",l.prototype.event_name="connection_lost",l.prototype.publish=!1;let Q=((o=class extends A{}).__name__="ButtonClick",o);s.ButtonClick=Q,s.ButtonClick=Q=w([W("button_click")],Q);let X=((u=class extends A{constructor(e,t){super(),this.model=e,this.item=t}get event_values(){const{item:e}=this;return{...super.event_values,item:e}}}).__name__="LegendItemClick",u);s.LegendItemClick=X,s.LegendItemClick=X=w([W("legend_item_click")],X);let Y=((c=class extends A{constructor(e){super(),this.item=e}get event_values(){const{item:e}=this;return{...super.event_values,item:e}}}).__name__="MenuItemClick",c);s.MenuItemClick=Y,s.MenuItemClick=Y=w([W("menu_item_click")],Y);let Z=((i=class extends A{constructor(e){super(),this.value=e}get event_values(){const{value:e}=this;return{...super.event_values,value:e}}}).__name__="ValueSubmit",i);s.ValueSubmit=Z,s.ValueSubmit=Z=w([W("value_submit")],Z);class ee extends A{}s.UIEvent=ee,ee.__name__="UIEvent";let te=((v=class extends ee{}).__name__="LODStart",v);s.LODStart=te,s.LODStart=te=w([W("lodstart")],te);let se=((d=class extends ee{}).__name__="LODEnd",d);s.LODEnd=se,s.LODEnd=se=w([W("lodend")],se);let ne=((m=class extends ee{constructor(e,t,s,n){super(),this.x0=e,this.x1=t,this.y0=s,this.y1=n}get event_values(){const{x0:e,x1:t,y0:s,y1:n}=this;return{...super.event_values,x0:e,x1:t,y0:s,y1:n}}}).__name__="RangesUpdate",m);s.RangesUpdate=ne,s.RangesUpdate=ne=w([W("rangesupdate")],ne);let ae=((p=class extends ee{constructor(e,t){super(),this.geometry=e,this.final=t}get event_values(){const{geometry:e,final:t}=this;return{...super.event_values,geometry:e,final:t}}}).__name__="SelectionGeometry",p);s.SelectionGeometry=ae,s.SelectionGeometry=ae=w([W("selectiongeometry")],ae);let _e=((h=class extends ee{}).__name__="Reset",h);s.Reset=_e,s.Reset=_e=w([W("reset")],_e);class re extends ee{constructor(e,t,s,n,a){super(),this.sx=e,this.sy=t,this.x=s,this.y=n,this.modifiers=a}get event_values(){const{sx:e,sy:t,x:s,y:n,modifiers:a}=this;return{...super.event_values,sx:e,sy:t,x:s,y:n,modifiers:a}}}s.PointEvent=re,re.__name__="PointEvent";let le=((x=class extends re{constructor(e,t,s,n,a,_,r){super(e,t,s,n,r),this.delta_x=a,this.delta_y=_}get event_values(){const{delta_x:e,delta_y:t}=this;return{...super.event_values,delta_x:e,delta_y:t}}}).__name__="Pan",x);s.Pan=le,s.Pan=le=w([W("pan")],le);let oe=((y=class extends re{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.scale=a}get event_values(){const{scale:e}=this;return{...super.event_values,scale:e}}}).__name__="Pinch",y);s.Pinch=oe,s.Pinch=oe=w([W("pinch")],oe);let ue=((g=class extends re{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.rotation=a}get event_values(){const{rotation:e}=this;return{...super.event_values,rotation:e}}}).__name__="Rotate",g);s.Rotate=ue,s.Rotate=ue=w([W("rotate")],ue);let ce=((E=class extends re{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.delta=a}get event_values(){const{delta:e}=this;return{...super.event_values,delta:e}}}).__name__="MouseWheel",E);s.MouseWheel=ce,s.MouseWheel=ce=w([W("wheel")],ce);let ie=((P=class extends re{}).__name__="MouseMove",P);s.MouseMove=ie,s.MouseMove=ie=w([W("mousemove")],ie);let ve=((f=class extends re{}).__name__="MouseEnter",f);s.MouseEnter=ve,s.MouseEnter=ve=w([W("mouseenter")],ve);let de=((M=class extends re{}).__name__="MouseLeave",M);s.MouseLeave=de,s.MouseLeave=de=w([W("mouseleave")],de);let me=((R=class extends re{}).__name__="Tap",R);s.Tap=me,s.Tap=me=w([W("tap")],me);let pe=((S=class extends re{}).__name__="DoubleTap",S);s.DoubleTap=pe,s.DoubleTap=pe=w([W("doubletap")],pe);let he=((D=class extends re{}).__name__="Press",D);s.Press=he,s.Press=he=w([W("press")],he);let xe=((b=class extends re{}).__name__="PressUp",b);s.PressUp=xe,s.PressUp=xe=w([W("pressup")],xe);let ye=((k=class extends re{}).__name__="PanStart",k);s.PanStart=ye,s.PanStart=ye=w([W("panstart")],ye);let ge=((L=class extends re{}).__name__="PanEnd",L);s.PanEnd=ge,s.PanEnd=ge=w([W("panend")],ge);let Ee=((C=class extends re{}).__name__="PinchStart",C);s.PinchStart=Ee,s.PinchStart=Ee=w([W("pinchstart")],Ee);let Pe=((O=class extends re{}).__name__="PinchEnd",O);s.PinchEnd=Pe,s.PinchEnd=Pe=w([W("pinchend")],Pe);let fe=((U=class extends re{}).__name__="RotateStart",U);s.RotateStart=fe,s.RotateStart=fe=w([W("rotatestart")],fe);let Me=((I=class extends re{}).__name__="RotateEnd",I);s.RotateEnd=Me,s.RotateEnd=Me=w([W("rotateend")],Me)}, -function _(e,n,t,i,o){i();const r=e(5),a=e(55),s=e(57),c=e(8),d=e(12);t.index=new Proxy(new a.ViewManager,{get(e,n){if((0,c.isString)(n)){const t=e.get_by_id(n);if(null!=t)return t}return Reflect.get(e,n)},has(e,n){if((0,c.isString)(n)){if(null!=e.get_by_id(n))return!0}return Reflect.has(e,n)},ownKeys:e=>e.roots.map((e=>e.model.id)),getOwnPropertyDescriptor(e,n){if((0,c.isString)(n)){const t=e.get_by_id(n);if(null!=t)return{configurable:!0,enumerable:!0,writable:!1,value:t}}return Reflect.getOwnPropertyDescriptor(e,n)}}),t.add_document_standalone=async function(e,n,i=[],o=!1){(0,d.assert)(null==e.views_manager);const c=new a.ViewManager([],t.index);async function l(o){null!=o.default_view?await async function(o){const r=await c.build_view(o);if(r instanceof s.DOMView){const t=e.roots().indexOf(o),a=i[t]??n;r.build(a)}t.index.add(r)}(o):e.notify_idle(o)}e.views_manager=c;for(const n of e.roots())await l(n);return o&&(window.document.title=e.title()),e.on_change((e=>{e instanceof r.RootAddedEvent?l(e.model):e instanceof r.RootRemovedEvent?function(e){const n=c.get(e);n?.remove()}(e.model):o&&e instanceof r.TitleChangedEvent&&(window.document.title=e.title)})),c}}, +function _(e,n,r,t,o){t(),r.decode_def=function(e,n){var r;function t(e){if((0,a.isString)(e))switch(e){case"Any":return u.Any;case"Unknown":return u.Unknown;case"Bool":return u.Bool;case"Float":return u.Float;case"Int":return u.Int;case"Bytes":return u.Bytes;case"Str":return u.Str;case"Null":return u.Null}else switch(e[0]){case"Regex":{const[,n,r]=e;return u.Regex(new RegExp(n,r))}case"Nullable":{const[,n]=e;return u.Nullable(t(n))}case"Or":{const[,n,...r]=e;return u.Or(t(n),...r.map(t))}case"Tuple":{const[,n,...r]=e;return u.Tuple(t(n),...r.map(t))}case"List":{const[,n]=e;return u.List(t(n))}case"Struct":{const[,...n]=e,r=n.map((([e,n])=>[e,t(n)]));return u.Struct((0,i.to_object)(r))}case"Dict":{const[,n]=e;return u.Dict(t(n))}case"Mapping":{const[,n,r]=e;return u.Mapping(t(n),t(r))}case"Enum":{const[,...n]=e;return u.Enum(...n)}case"Ref":{const[,r]=e,t=n.resolver.get(r.id);if(null!=t)return u.Ref(t);throw new Error(`${r.id} wasn't defined before referencing it`)}case"AnyRef":return u.AnyRef()}}const o=(()=>{const r=e.extends?.id??"Model";if("Model"==r)return c.Model;const t=n.resolver.get(r);if(null!=t)return t;throw new Error(`base model ${r} of ${e.name} is not defined`)})(),l=(r=class extends o{},s.__setFunctionName(r,"model"),r.__qualified__=e.name,r);function d(e){return void 0===e?e:n.decode(e)}for(const n of e.properties??[]){const e=t(n.kind);l.define({[n.name]:[e,d(n.default)]})}for(const n of e.overrides??[])l.override({[n.name]:d(n.default)});return n.resolver.register(l),l};const s=e(1),c=e(51),u=s.__importStar(e(21)),a=e(8),i=e(9)}, +function _(e,t,s,n,a){var _,r,l,o,u,c,i,v,d,m,p,h,x,y,g,E,P,f,M,R,k,S,D,b,C,L,O,U,I,w;n(),s.server_event=function(e){return t=>{if(q.has(e))throw new Error(`'${e}' event is already registered`);q.set(e,t),t.prototype.event_name=e,t.prototype.publish=!1}};var T=this&&this.__decorate||function(e,t,s,n){var a,_=arguments.length,r=_<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(_<3?a(r):_>3?a(t,s,r):a(t,s))||r);return _>3&&r&&Object.defineProperty(t,s,r),r};const B=e(51),j=e(8),z=e(12),A=e(32),G=e(47),V=e(26);function W(e){return t=>{t.prototype.event_name=e}}G.Deserializer.register("event",((e,t)=>{const s=q.get(e.name);if(void 0!==s&&null!=s.from_values){const n=t.decode(e.values);return(0,z.assert)((0,j.isPlainObject)(n)),s.from_values(n)}t.error(`deserialization of '${e.name}' event is not supported`)}));const q=new Map;class ${[A.serialize](e){const{event_name:t,event_values:s}=this;return{type:"event",name:t,values:e.encode(s)}}[V.equals](e,t){return this.event_name==e.event_name&&t.eq(this.event_values,e.event_values)}}s.BokehEvent=$,_=$,$.__name__="BokehEvent",_.prototype.publish=!0;class F extends ${constructor(){super(...arguments),this.origin=null}get event_values(){return{model:this.origin}}}s.ModelEvent=F,F.__name__="ModelEvent";class H extends F{constructor(e){super(),this.values=e}get event_values(){return{...super.event_values,...this.values}}static from_values(e){const t=(()=>{if("model"in e){const{model:t}=e;return(0,z.assert)(null===t||t instanceof B.Model),delete e.model,t}return null})(),s=new this(e);return s.origin=t,s}}s.UserEvent=H,H.__name__="UserEvent";class J extends ${}s.DocumentEvent=J,J.__name__="DocumentEvent";let K=((r=class extends J{get event_values(){return{}}}).__name__="DocumentReady",r);s.DocumentReady=K,s.DocumentReady=K=T([W("document_ready")],K);class N extends J{}s.ConnectionEvent=N,N.__name__="ConnectionEvent";class Q extends N{constructor(){super(...arguments),this.timestamp=new Date}get event_values(){const{timestamp:e}=this;return{timestamp:e}}}s.ConnectionLost=Q,l=Q,Q.__name__="ConnectionLost",l.prototype.event_name="connection_lost",l.prototype.publish=!1;let X=((o=class extends F{constructor(e,t){super(),this.model=e,this.value=t}get event_values(){const{value:e}=this;return{...super.event_values,value:e}}}).__name__="AxisClick",o);s.AxisClick=X,s.AxisClick=X=T([W("axis_click")],X);let Y=((u=class extends F{}).__name__="ButtonClick",u);s.ButtonClick=Y,s.ButtonClick=Y=T([W("button_click")],Y);let Z=((c=class extends F{constructor(e,t){super(),this.model=e,this.item=t}get event_values(){const{item:e}=this;return{...super.event_values,item:e}}}).__name__="LegendItemClick",c);s.LegendItemClick=Z,s.LegendItemClick=Z=T([W("legend_item_click")],Z);let ee=((i=class extends F{constructor(e){super(),this.item=e}get event_values(){const{item:e}=this;return{...super.event_values,item:e}}}).__name__="MenuItemClick",i);s.MenuItemClick=ee,s.MenuItemClick=ee=T([W("menu_item_click")],ee);let te=((v=class extends F{constructor(e){super(),this.value=e}get event_values(){const{value:e}=this;return{...super.event_values,value:e}}}).__name__="ValueSubmit",v);s.ValueSubmit=te,s.ValueSubmit=te=T([W("value_submit")],te);class se extends F{}s.UIEvent=se,se.__name__="UIEvent";let ne=((d=class extends se{}).__name__="LODStart",d);s.LODStart=ne,s.LODStart=ne=T([W("lodstart")],ne);let ae=((m=class extends se{}).__name__="LODEnd",m);s.LODEnd=ae,s.LODEnd=ae=T([W("lodend")],ae);let _e=((p=class extends se{constructor(e,t,s,n){super(),this.x0=e,this.x1=t,this.y0=s,this.y1=n}get event_values(){const{x0:e,x1:t,y0:s,y1:n}=this;return{...super.event_values,x0:e,x1:t,y0:s,y1:n}}}).__name__="RangesUpdate",p);s.RangesUpdate=_e,s.RangesUpdate=_e=T([W("rangesupdate")],_e);let re=((h=class extends se{constructor(e,t){super(),this.geometry=e,this.final=t}get event_values(){const{geometry:e,final:t}=this;return{...super.event_values,geometry:e,final:t}}}).__name__="SelectionGeometry",h);s.SelectionGeometry=re,s.SelectionGeometry=re=T([W("selectiongeometry")],re);let le=((x=class extends se{}).__name__="Reset",x);s.Reset=le,s.Reset=le=T([W("reset")],le);class oe extends se{constructor(e,t,s,n,a){super(),this.sx=e,this.sy=t,this.x=s,this.y=n,this.modifiers=a}get event_values(){const{sx:e,sy:t,x:s,y:n,modifiers:a}=this;return{...super.event_values,sx:e,sy:t,x:s,y:n,modifiers:a}}}s.PointEvent=oe,oe.__name__="PointEvent";let ue=((y=class extends oe{constructor(e,t,s,n,a,_,r){super(e,t,s,n,r),this.delta_x=a,this.delta_y=_}get event_values(){const{delta_x:e,delta_y:t}=this;return{...super.event_values,delta_x:e,delta_y:t}}}).__name__="Pan",y);s.Pan=ue,s.Pan=ue=T([W("pan")],ue);let ce=((g=class extends oe{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.scale=a}get event_values(){const{scale:e}=this;return{...super.event_values,scale:e}}}).__name__="Pinch",g);s.Pinch=ce,s.Pinch=ce=T([W("pinch")],ce);let ie=((E=class extends oe{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.rotation=a}get event_values(){const{rotation:e}=this;return{...super.event_values,rotation:e}}}).__name__="Rotate",E);s.Rotate=ie,s.Rotate=ie=T([W("rotate")],ie);let ve=((P=class extends oe{constructor(e,t,s,n,a,_){super(e,t,s,n,_),this.delta=a}get event_values(){const{delta:e}=this;return{...super.event_values,delta:e}}}).__name__="MouseWheel",P);s.MouseWheel=ve,s.MouseWheel=ve=T([W("wheel")],ve);let de=((f=class extends oe{}).__name__="MouseMove",f);s.MouseMove=de,s.MouseMove=de=T([W("mousemove")],de);let me=((M=class extends oe{}).__name__="MouseEnter",M);s.MouseEnter=me,s.MouseEnter=me=T([W("mouseenter")],me);let pe=((R=class extends oe{}).__name__="MouseLeave",R);s.MouseLeave=pe,s.MouseLeave=pe=T([W("mouseleave")],pe);let he=((k=class extends oe{}).__name__="Tap",k);s.Tap=he,s.Tap=he=T([W("tap")],he);let xe=((S=class extends oe{}).__name__="DoubleTap",S);s.DoubleTap=xe,s.DoubleTap=xe=T([W("doubletap")],xe);let ye=((D=class extends oe{}).__name__="Press",D);s.Press=ye,s.Press=ye=T([W("press")],ye);let ge=((b=class extends oe{}).__name__="PressUp",b);s.PressUp=ge,s.PressUp=ge=T([W("pressup")],ge);let Ee=((C=class extends oe{}).__name__="PanStart",C);s.PanStart=Ee,s.PanStart=Ee=T([W("panstart")],Ee);let Pe=((L=class extends oe{}).__name__="PanEnd",L);s.PanEnd=Pe,s.PanEnd=Pe=T([W("panend")],Pe);let fe=((O=class extends oe{}).__name__="PinchStart",O);s.PinchStart=fe,s.PinchStart=fe=T([W("pinchstart")],fe);let Me=((U=class extends oe{}).__name__="PinchEnd",U);s.PinchEnd=Me,s.PinchEnd=Me=T([W("pinchend")],Me);let Re=((I=class extends oe{}).__name__="RotateStart",I);s.RotateStart=Re,s.RotateStart=Re=T([W("rotatestart")],Re);let ke=((w=class extends oe{}).__name__="RotateEnd",w);s.RotateEnd=ke,s.RotateEnd=ke=T([W("rotateend")],ke)}, +function _(e,n,t,i,o){i(),t.add_document_standalone=async function(e,n,i=[],o=!1){(0,d.assert)(null==e.views_manager);const c=new a.ViewManager([],t.index);async function l(o){null!=o.default_view?await async function(o){const r=await c.build_view(o);if(r instanceof s.DOMView){const t=e.roots().indexOf(o),a=i[t]??n;r.build(a)}t.index.add(r)}(o):e.notify_idle(o)}e.views_manager=c;for(const n of e.roots())await l(n);o&&(window.document.title=e.title());return e.on_change((e=>{e instanceof r.RootAddedEvent?l(e.model):e instanceof r.RootRemovedEvent?function(e){const n=c.get(e);n?.remove()}(e.model):o&&e instanceof r.TitleChangedEvent&&(window.document.title=e.title)})),c};const r=e(5),a=e(55),s=e(57),c=e(8),d=e(12);t.index=new Proxy(new a.ViewManager,{get(e,n){if((0,c.isString)(n)){const t=e.get_by_id(n);if(null!=t)return t}return Reflect.get(e,n)},has(e,n){if((0,c.isString)(n)){if(null!=e.get_by_id(n))return!0}return Reflect.has(e,n)},ownKeys:e=>e.roots.map((e=>e.model.id)),getOwnPropertyDescriptor(e,n){if((0,c.isString)(n)){const t=e.get_by_id(n);if(null!=t)return{configurable:!0,enumerable:!0,writable:!1,value:t}}return Reflect.getOwnPropertyDescriptor(e,n)}})}, function _(e,t,i,r,n){r();const o=e(56);class s{*all_views(){yield*this.query((()=>!0))}*query(e){const t=new Set;function*i(r){if(!t.has(r)){t.add(r),e(r)&&(yield r);for(const e of r.children())yield*i(e)}}for(const e of this)yield*i(e)}query_one(e){for(const t of this.query(e))return t;return null}*find(e){yield*this.query((t=>t.model==e))}*find_by_id(e){yield*this.query((t=>t.model.id==e))}find_one(e){for(const t of this.find(e))return t;return null}find_one_by_id(e){for(const t of this.find_by_id(e))return t;return null}get_one(e){const t=this.find_one(e);if(null!=t)return t;throw new Error(`cannot find a view for ${e}`)}get_one_by_id(e){const t=this.find_one_by_id(e);if(null!=t)return t;throw new Error(`cannot find a view for a model with '${e}' identity`)}find_all(e){return[...this.find(e)]}find_all_by_id(e){return[...this.find_by_id(e)]}}s.__name__="AbstractViewQuery";class d extends s{constructor(e){super(),this.view=e}*[Symbol.iterator](){yield this.view}toString(){return`ViewQuery(${this.view})`}}i.ViewQuery=d,d.__name__="ViewQuery";class l extends s{constructor(e=[],t){super(),this.global=t,this._roots=new Set(e)}toString(){return`ViewManager(${[...this._roots].map((e=>`${e}`)).join(", ")})`}async build_view(e,t=null){const i=await(0,o.build_view)(e,{owner:this,parent:t});return null==t&&this.add(i),i}get(e){for(const t of this._roots)if(t.model==e)return t;return null}get_by_id(e){for(const t of this._roots)if(t.model.id==e)return t;return null}add(e){this._roots.add(e),this.global?.add(e)}delete(e){this._roots.delete(e),this.global?.delete(e)}remove(e){this.delete(e)}clear(){for(const e of this)e.remove()}get roots(){return[...this._roots]}*[Symbol.iterator](){yield*this._roots}}i.ViewManager=l,l.__name__="ViewManager"}, -function _(e,n,t,o,i){o();const s=e(10),c=e(12);async function a(e,n,t){(0,c.assert)(null!=e,"model doesn't implement a view");const o=new e({...t,model:n});return o.initialize(),await o.lazy_initialize(),o}t.build_view=async function(e,n={parent:null},t=(e=>e.default_view)){const o=await a(t(e),e,n);return o.connect_signals(),o},t.build_views=async function(e,n,t={parent:null},o=(e=>e.default_view)){const i=(0,s.difference)([...e.keys()],n),c=[];for(const n of i){const t=e.get(n);null!=t&&(e.delete(n),c.push(t),t.remove())}const r=[],l=n.filter((n=>!e.has(n)));for(const n of l){const i=await a(o(n),n,t);e.set(n,i),r.push(i)}for(const e of r)e.connect_signals();return{created:r,removed:c}},t.remove_views=function(e){for(const[n,t]of e)t.remove(),e.delete(n)},t.traverse_views=function(e,n){const t=new Set,o=[...e];for(;;){const e=o.shift();if(void 0===e)break;t.has(e)||(t.add(e),o.push(...e.children()),n(e))}}}, +function _(e,n,t,o,i){o(),t.build_view=async function(e,n={parent:null},t=e=>e.default_view){const o=await a(t(e),e,n);return o.connect_signals(),o},t.build_views=async function(e,n,t={parent:null},o=e=>e.default_view){const i=(0,s.difference)([...e.keys()],n),c=[];for(const n of i){const t=e.get(n);null!=t&&(e.delete(n),c.push(t),t.remove())}const r=[],l=n.filter((n=>!e.has(n)));for(const n of l){const i=await a(o(n),n,t);e.set(n,i),r.push(i)}for(const e of r)e.connect_signals();return{created:r,removed:c}},t.remove_views=function(e){for(const[n,t]of e)t.remove(),e.delete(n)},t.traverse_views=function(e,n){const t=new Set,o=[...e];for(;;){const e=o.shift();if(void 0===e)break;t.has(e)||(t.add(e),o.push(...e.children()),n(e))}};const s=e(10),c=e(12);async function a(e,n,t){(0,c.assert)(null!=e,"model doesn't implement a view");const o=new e({...t,model:n});return o.initialize(),await o.lazy_initialize(),o}}, function _(s,e,t,i,_){i();const l=s(1),a=s(58),r=s(63),h=s(8),n=s(12),c=l.__importDefault(s(66));class p extends a.View{constructor(){super(...arguments),this._was_built=!1}get bbox(){}serializable_state(){const s=super.serializable_state(),{bbox:e}=this;return null!=e?{...s,bbox:e.round()}:s}get children_el(){return this.shadow_el??this.el}initialize(){super.initialize(),this.el=this._create_element()}remove(){this.el.remove(),super.remove()}stylesheets(){return[]}css_classes(){return[]}render_to(s){this.render(),s.appendChild(this.el)}after_render(){this.reposition()}r_after_render(){for(const s of this.children())s instanceof p&&s.r_after_render();this.after_render(),this._was_built=!0}_create_element(){return(0,r.create_element)(this.constructor.tag_name,{})}reposition(s){}build(s){(0,n.assert)(this.is_root),this.render_to(s),this.r_after_render(),this.notify_finished()}rendering_target(){return null}}t.DOMView=p,p.__name__="DOMView",p.tag_name="div";class o extends p{initialize(){super.initialize(),this.class_list=new r.ClassList(this.el.classList)}}t.DOMElementView=o,o.__name__="DOMElementView";class d extends o{constructor(){super(...arguments),this._applied_stylesheets=[],this._applied_css_classes=[]}initialize(){super.initialize(),this.shadow_el=this.el.attachShadow({mode:"open"})}stylesheets(){return[...super.stylesheets(),c.default]}empty(){(0,r.empty)(this.shadow_el),this.class_list.clear(),this._applied_css_classes=[],this._applied_stylesheets=[]}render(){this.empty(),this._update_stylesheets(),this._update_css_classes(),this._update_css_variables()}reposition(s){this._update_css_variables()}*_stylesheets(){for(const s of this.stylesheets())yield(0,h.isString)(s)?new r.InlineStyleSheet(s):s}*_css_classes(){yield`bk-${this.model.type.replace(/\./g,"-")}`,yield*this.css_classes()}*_css_variables(){}_apply_stylesheets(s){this._applied_stylesheets.push(...s),s.forEach((s=>s.install(this.shadow_el)))}_apply_css_classes(s){this._applied_css_classes.push(...s),this.class_list.add(...s)}_update_stylesheets(){this._applied_stylesheets.forEach((s=>s.uninstall())),this._applied_stylesheets=[],this._apply_stylesheets([...this._stylesheets()])}_update_css_classes(){this.class_list.remove(this._applied_css_classes),this._applied_css_classes=[],this._apply_css_classes([...this._css_classes()])}_update_css_variables(){for(const[s,e]of this._css_variables()){const t=s.startsWith("--")?s:`--${s}`;this.el.style.setProperty(t,e)}}}t.DOMComponentView=d,d.__name__="DOMComponentView"}, function _(e,t,s,i,n){i();const r=e(14),o=e(15),l=e(8),h=e(59),a=e(61),_=e(62),c=e(55),d=e(26);class u{get ready(){return this._ready}connect(e,t){let s=this._slots.get(t);return null==s&&(s=(e,s)=>{const i=Promise.resolve(t.call(this,e,s));this._ready=this._ready.then((()=>i)),this.root!=this&&(this.root._ready=this.root._ready.then((()=>this._ready)))},this._slots.set(t,s)),e.connect(s,this)}disconnect(e,t){return e.disconnect(t,this)}constructor(e){this.removed=new o.Signal0(this,"removed"),this.views=new c.ViewQuery(this),this._ready=Promise.resolve(void 0),this._slots=new WeakMap,this._destroyed=!1,this._has_finished=!1,this._idle_notified=!1;const{model:t,parent:s,owner:i}=e;this.model=t,this.parent=s,null==s?(this.root=this,this.owner=i??new c.ViewManager([this])):(this.root=s.root,this.owner=this.root.owner)}initialize(){}async lazy_initialize(){}remove(){this.disconnect_signals(),this.owner.remove(this),this.removed.emit(),this._destroyed=!0}get is_destroyed(){return this._destroyed}toString(){return`${this.model.type}View(${this.model.id})`}[d.equals](e,t){return Object.is(this,e)}*children(){}mark_finished(){this._has_finished=!0}force_finished(){this.mark_finished()}finish(){this.mark_finished(),this.notify_finished()}notify_finished(){if(this.is_root){if(!this._idle_notified&&this.has_finished()){const{document:e}=this.model;null!=e&&(this._idle_notified=!0,e.notify_idle(this.model))}}else this.root.notify_finished()}serializable_state(){const e=[...this.children()].filter((e=>e.model.is_syncable)).map((e=>e.serializable_state())).filter((e=>null!=e.bbox&&e.bbox.is_valid&&!e.bbox.is_empty));return{type:this.model.type,children:e}}get is_root(){return null==this.parent}has_finished(){return this._has_finished}get is_idle(){return this.has_finished()}connect_signals(){}disconnect_signals(){o.Signal.disconnect_receiver(this)}on_change(e,t){for(const s of(0,l.isArray)(e)?e:[e])this.connect(s.change,t)}on_transitive_change(e,t){const s=()=>{const t=e.is_unset?[]:e.get_value();return r.HasProps.references(t,{recursive:!1})},i=e=>{for(const s of e)this.connect(s.change,t)},n=e=>{for(const s of e)this.disconnect(s.change,t)};let o=s();i(o),this.on_change(e,(()=>{n(o),o=s(),i(o),t()}))}cursor(e,t){return null}resolve_frame(){return null}resolve_canvas(){return null}resolve_plot(){return null}resolve_target(e){if(!(0,l.isString)(e)){const t=[this.root];for(;;){const s=t.shift();if(null==s)break;if(s.model==e)return s;t.push(...s.children())}return null}{const t=e=>{let t=this;for(;null!=t;){const s=e(t);if(null!=s)return s;t=t.parent}return null};switch(e){case"parent":return this.parent;case"frame":return t((e=>e.resolve_frame()));case"canvas":return t((e=>e.resolve_canvas()));case"plot":return t((e=>e.resolve_plot()))}}}resolve_symbol(e){return{x:NaN,y:NaN}}resolve_node(e){const t=this.resolve_target(e.target);return null!=t?t.resolve_symbol(e):{x:NaN,y:NaN}}resolve_coordinate(e){if(e instanceof a.XY){let t=this;for(;null!=t&&null==t.resolve_xy;)t=t.parent;return t?.resolve_xy?.(e)??{x:NaN,y:NaN}}if(e instanceof _.Indexed){let t=this;for(;null!=t&&null==t.resolve_indexed;)t=t.parent;return t?.resolve_indexed?.(e)??{x:NaN,y:NaN}}return e instanceof h.Node?this.resolve_node(e):{x:NaN,y:NaN}}resolve_as_xy(e){const t=this.resolve_coordinate(e);return(0,l.isNumber)(t)?{x:NaN,y:NaN}:t}resolve_as_scalar(e,t){const s=this.resolve_coordinate(e);return(0,l.isNumber)(s)?s:s[t]}}s.View=u,u.__name__="View"}, function _(t,e,r,n,o){var s;n();const a=t(60),i=t(51),_=t(21);r.ImplicitTarget=(0,_.Enum)("canvas","plot","frame","parent"),r.NodeTarget=(0,_.Or)((0,_.Ref)(i.Model),r.ImplicitTarget);class h{constructor(t,e=!1){this._left=null,this._right=null,this._top=null,this._bottom=null,this.target=t,this.frozen=e}_node(t){const{target:e,frozen:r}=this,n=new l({target:e,symbol:t});return r&&(this[`_${t}`]=n),n}get left(){return this._left??this._node("left")}get right(){return this._right??this._node("right")}get top(){return this._top??this._node("top")}get bottom(){return this._bottom??this._node("bottom")}freeze(){return new h(this.target,!0)}}r.BoxNodes=h,h.__name__="BoxNodes";class l extends a.Coordinate{constructor(t){super(t)}static get frame(){return this._frame_nodes}static get canvas(){return this._canvas_nodes}}r.Node=l,s=l,l.__name__="Node",s.define((({Str:t,Int:e})=>({target:[r.NodeTarget],symbol:[t],offset:[e,0]}))),l._frame_nodes=new h("frame"),l._canvas_nodes=new h("canvas")}, function _(o,n,e,t,s){t();const c=o(51);class r extends c.Model{constructor(o){super(o)}}e.Coordinate=r,r.__name__="Coordinate"}, function _(n,e,o,t,s){var a;t();const c=n(60);class r extends c.Coordinate{constructor(n){super(n)}}o.XY=r,a=r,r.__name__="XY",a.define((({Float:n})=>({x:[n],y:[n]})))}, function _(e,n,d,r,t){var o;r();const s=e(60);class c extends s.Coordinate{constructor(e){super(e)}}d.Indexed=c,o=c,c.__name__="Indexed",o.define((({Int:e,AnyRef:n})=>({index:[e],renderer:[n()]})))}, -function _(t,e,n,o,i){o(),n.template=n.td=n.tbody=n.table=n.sup=n.summary=n.sub=n.style=n.strong=n.span=n.source=n.small=n.slot=n.select=n.section=n.search=n.script=n.samp=n.s=n.ruby=n.rt=n.rp=n.q=n.progress=n.pre=n.picture=n.p=n.output=n.option=n.optgroup=n.ol=n.object=n.noscript=n.nav=n.meter=n.meta=n.menu=n.mark=n.map=n.main=n.link=n.li=n.legend=n.label=n.kbd=n.ins=n.input=n.img=n.iframe=n.i=void 0,n.supports_adopted_stylesheets=n.px=n.dom_ready=n.GlobalImportedStyleSheet=n.ImportedStyleSheet=n.GlobalInlineStyleSheet=n.InlineStyleSheet=n.StyleSheet=n.MouseButton=n.toggle_attribute=n.classes=n.ClassList=n.position=n.box_size=n.bounding_box=n.content_size=n.outer_size=n.scroll_size=n.size=n.extents=n.parent=n.offset_bbox=n.hide=n.show=n.undisplay=n.display=n.contains=n.empty=n.prepend=n.nbsp=n.text=n.createSVGElement=n.wbr=n.video=n.ul=n.u=n.track=n.tr=n.title=n.time=n.thead=n.th=n.tfoot=n.textarea=void 0;const s=t(8),l=t(9),r=t(64),a=t(65),d=t(19),c=t=>(e={},...n)=>{const o=document.createElement(t);if((0,s.isPlainObject)(e)?e={...e}:(n=[e,...n],e={}),null!=e.class){const t=(0,s.isString)(e.class)?e.class.split(/\s+/):e.class;for(const e of t)null!=e&&o.classList.add(e);delete e.class}if(null!=e.style&&((0,s.isString)(e.style)?o.setAttribute("style",e.style):(0,a.apply_styles)(o.style,e.style),delete e.style),null!=e.data){for(const[t,n]of(0,l.entries)(e.data))null!=n&&(o.dataset[t]=n);delete e.data}for(const[t,n]of(0,l.entries)(e))null!=n&&((0,s.isBoolean)(n)?o.toggleAttribute(t,n):(0,s.isNumber)(n)?o.setAttribute(t,`${n}`):(0,s.isString)(n)?o.setAttribute(t,n):d.logger.warn(`unable to set attribute: ${t} = ${n}`));function i(t){if((0,s.isString)(t))o.append(document.createTextNode(t));else if(t instanceof Node)o.append(t);else if(t instanceof NodeList||t instanceof HTMLCollection)o.append(...t);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o};function u(t){return document.createTextNode(t)}function h(t){const e=parseFloat(t);return isFinite(e)?e:0}function p(t){const e=getComputedStyle(t);return{border:{top:h(e.borderTopWidth),bottom:h(e.borderBottomWidth),left:h(e.borderLeftWidth),right:h(e.borderRightWidth)},margin:{top:h(e.marginTop),bottom:h(e.marginBottom),left:h(e.marginLeft),right:h(e.marginRight)},padding:{top:h(e.paddingTop),bottom:h(e.paddingBottom),left:h(e.paddingLeft),right:h(e.paddingRight)}}}function f(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.create_element=function(t,e,...n){return c(t)(e,...n)},n.a=c("a"),n.abbr=c("abbr"),n.address=c("address"),n.area=c("area"),n.article=c("article"),n.aside=c("aside"),n.audio=c("audio"),n.b=c("b"),n.base=c("base"),n.bdi=c("bdi"),n.bdo=c("bdo"),n.blockquote=c("blockquote"),n.body=c("body"),n.br=c("br"),n.button=c("button"),n.canvas=c("canvas"),n.caption=c("caption"),n.cite=c("cite"),n.code=c("code"),n.col=c("col"),n.colgroup=c("colgroup"),n.data=c("data"),n.datalist=c("datalist"),n.dd=c("dd"),n.del=c("del"),n.details=c("details"),n.dfn=c("dfn"),n.dialog=c("dialog"),n.div=c("div"),n.dl=c("dl"),n.dt=c("dt"),n.em=c("em"),n.embed=c("embed"),n.fieldset=c("fieldset"),n.figcaption=c("figcaption"),n.figure=c("figure"),n.footer=c("footer"),n.form=c("form"),n.h1=c("h1"),n.h2=c("h2"),n.h3=c("h3"),n.h4=c("h4"),n.h5=c("h5"),n.h6=c("h6"),n.head=c("head"),n.header=c("header"),n.hgroup=c("hgroup"),n.hr=c("hr"),n.html=c("html"),n.i=c("i"),n.iframe=c("iframe"),n.img=c("img"),n.input=c("input"),n.ins=c("ins"),n.kbd=c("kbd"),n.label=c("label"),n.legend=c("legend"),n.li=c("li"),n.link=c("link"),n.main=c("main"),n.map=c("map"),n.mark=c("mark"),n.menu=c("menu"),n.meta=c("meta"),n.meter=c("meter"),n.nav=c("nav"),n.noscript=c("noscript"),n.object=c("object"),n.ol=c("ol"),n.optgroup=c("optgroup"),n.option=c("option"),n.output=c("output"),n.p=c("p"),n.picture=c("picture"),n.pre=c("pre"),n.progress=c("progress"),n.q=c("q"),n.rp=c("rp"),n.rt=c("rt"),n.ruby=c("ruby"),n.s=c("s"),n.samp=c("samp"),n.script=c("script"),n.search=c("search"),n.section=c("section"),n.select=c("select"),n.slot=c("slot"),n.small=c("small"),n.source=c("source"),n.span=c("span"),n.strong=c("strong"),n.style=c("style"),n.sub=c("sub"),n.summary=c("summary"),n.sup=c("sup"),n.table=c("table"),n.tbody=c("tbody"),n.td=c("td"),n.template=c("template"),n.textarea=c("textarea"),n.tfoot=c("tfoot"),n.th=c("th"),n.thead=c("thead"),n.time=c("time"),n.title=c("title"),n.tr=c("tr"),n.track=c("track"),n.u=c("u"),n.ul=c("ul"),n.video=c("video"),n.wbr=c("wbr"),n.createSVGElement=function(t,e=null,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);for(const[t,n]of(0,l.entries)(e??{}))null!=n&&!1!==n&&o.setAttribute(t,n);function i(t){if((0,s.isString)(t))o.appendChild(document.createTextNode(t));else if(t instanceof Node)o.appendChild(t);else if(t instanceof NodeList||t instanceof HTMLCollection)for(const e of t)o.appendChild(e);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o},n.text=u,n.nbsp=function(){return u("\xa0")},n.prepend=function(t,...e){const n=t.firstChild;for(const o of e)t.insertBefore(o,n)},n.empty=function(t,e=!1){let n;for(;null!=(n=t.firstChild);)t.removeChild(n);if(e&&t instanceof Element)for(const e of t.attributes)t.removeAttributeNode(e)},n.contains=function(t,e){let n=e;for(;null!=n.parentNode;){const e=n.parentNode;if(e==t)return!0;n=e instanceof ShadowRoot?e.host:e}return!1},n.display=function(t,e=!0){t.style.display=e?"":"none"},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset_bbox=function(t){const{top:e,left:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({left:n+scrollX-document.documentElement.clientLeft,top:e+scrollY-document.documentElement.clientTop,width:o,height:i})},n.parent=function(t,e){let n=t;for(;null!=(n=n.parentElement);)if(n.matches(e))return n;return null},n.extents=p,n.size=f,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:o,bottom:i}}=p(t),{width:s,height:l}=f(t);return{width:Math.ceil(s+e+n),height:Math.ceil(l+o+i)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:o}=p(t);let i=0,s=0;for(const l of(t.shadowRoot??t).children){const t=l.getBoundingClientRect();i=Math.max(i,Math.ceil(t.left-e-o.left+t.width)),s=Math.max(s,Math.ceil(t.top-n-o.top+t.height))}return{width:i,height:s}},n.bounding_box=function(t){const{x:e,y:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({x:e,y:n,width:o,height:i})},n.box_size=function(t){const{width:e,height:n}=t.getBoundingClientRect();return{width:e,height:n}},n.position=function(t,e,n){const{style:o}=t;if(o.left=`${e.x}px`,o.top=`${e.y}px`,o.width=`${e.width}px`,o.height=`${e.height}px`,null==n)o.margin="";else{const{top:t,right:e,bottom:i,left:s}=n;o.margin=`${t}px ${e}px ${i}px ${s}px`}};class m{constructor(t){this.class_list=t}get values(){const t=[];for(let e=0;ethis.class_list.remove(t))):this.class_list.remove(e);return this}clear(){for(const t of this.values)this.class_list.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var g;n.ClassList=m,m.__name__="ClassList",n.classes=function(t){return new m(t.classList)},n.toggle_attribute=function(t,e,n){null==n&&(n=!t.hasAttribute(e)),n?t.setAttribute(e,"true"):t.removeAttribute(e)},(g=n.MouseButton||(n.MouseButton={}))[g.None=0]="None",g[g.Primary=1]="Primary",g[g.Secondary=2]="Secondary",g[g.Auxiliary=4]="Auxiliary",g[g.Left=1]="Left",g[g.Right=2]="Right",g[g.Middle=4]="Middle";class b{install(t){t.append(this.el)}uninstall(){this.el.remove()}}n.StyleSheet=b,b.__name__="StyleSheet";class y extends b{constructor(t){super(),this.el=(0,n.style)(),(0,s.isString)(t)?this._update(t):null!=t&&this._update((0,a.compose_stylesheet)(t))}get css(){return this.el.textContent??""}_update(t){this.el.textContent=t}clear(){this.replace("")}_to_css(t,e){return null==e?t:(0,a.compose_stylesheet)({[t]:e})}replace(t,e){this._update(this._to_css(t,e))}prepend(t,e){this._update(`${this._to_css(t,e)}\n${this.css}`)}append(t,e){this._update(`${this.css}\n${this._to_css(t,e)}`)}remove(){this.el.remove()}}n.InlineStyleSheet=y,y.__name__="InlineStyleSheet";class _ extends y{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalInlineStyleSheet=_,_.__name__="GlobalInlineStyleSheet";class S extends b{constructor(t){super(),this.el=(0,n.link)({rel:"stylesheet",href:t})}replace(t){this.el.href=t}remove(){this.el.remove()}}n.ImportedStyleSheet=S,S.__name__="ImportedStyleSheet";class x extends S{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalImportedStyleSheet=x,x.__name__="GlobalImportedStyleSheet",n.dom_ready=async function(){if("loading"==document.readyState)return new Promise(((t,e)=>{document.addEventListener("DOMContentLoaded",(()=>t()),{once:!0})}))},n.px=function(t){return(0,s.isNumber)(t)?`${t}px`:t},n.supports_adopted_stylesheets="adoptedStyleSheets"in ShadowRoot.prototype}, -function _(t,e,r,i,n){i();const s=t(24),h=t(26),o=t(13),c=t(8),{min:u,max:x,round:y}=Math;function g(t,e){return isNaN(t)?e:isNaN(e)?t:u(t,e)}function a(t,e){return isNaN(t)?e:isNaN(e)?t:x(t,e)}r.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},r.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},r.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},r.union=function(t,e){return{x0:g(t.x0,e.x0),x1:a(t.x1,e.x1),y0:g(t.y0,e.y0),y1:a(t.y1,e.y1)}},r.isXY=function(t){return(0,c.isPlainObject)(t)&&"x"in t&&"y"in t};class _{constructor(t,e=!1){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:e,y0:r,x1:i,y1:n}=t;if(isFinite(e+r+i+n)){if(!(e<=i&&r<=n))throw new Error(`invalid bbox {x0: ${e}, y0: ${r}, x1: ${i}, y1: ${n}}`);this.x0=e,this.y0=r,this.x1=i,this.y1=n}else this.x0=NaN,this.y0=NaN,this.x1=NaN,this.y1=NaN}else if("x"in t){const{x:e,y:r,width:i,height:n,origin:s="top_left"}=t;if(!(i>=0&&n>=0))throw new Error(`invalid bbox {x: ${e}, y: ${r}, width: ${i}, height: ${n}}`);const h=(()=>{switch(s){case"left":return"center_left";case"right":return"center_right";case"top":return"top_center";case"bottom":return"bottom_center";case"center":return"center_center";default:return s}})(),[o,c]=h.split("_",2),u=(()=>{switch(o){case"top":return 0;case"center":return.5;case"bottom":return 1}})(),x=e-(()=>{switch(c){case"left":return 0;case"center":return.5;case"right":return 1}})()*i,y=r-u*n,g=x+i,a=y+n;this.x0=x,this.y0=y,this.x1=g,this.y1=a}else{let r,i,n,s;if("width"in t)if("left"in t)r=t.left,i=r+t.width;else if("right"in t)i=t.right,r=i-t.width;else{const e=t.width/2;r=t.hcenter-e,i=t.hcenter+e}else r=t.left,i=t.right;if("height"in t)if("top"in t)n=t.top,s=n+t.height;else if("bottom"in t)s=t.bottom,n=s-t.height;else{const e=t.height/2;n=t.vcenter-e,s=t.vcenter+e}else n=t.top,s=t.bottom;if(r>i||n>s){if(!e)throw new Error(`invalid bbox {left: ${r}, top: ${n}, right: ${i}, bottom: ${s}}`);r>i&&(r=i),n>s&&(n=s)}this.x0=r,this.y0=n,this.x1=i,this.y1=s}}static from_lrtb({left:t,right:e,top:r,bottom:i}){return new _({x0:u(t,e),y0:u(r,i),x1:x(t,e),y1:x(r,i)})}static from_rect({x0:t,y0:e,x1:r,y1:i}){return new _({x0:u(t,r),y0:u(e,i),x1:x(t,r),y1:x(e,i)})}static empty(){return new _({x0:0,y0:0,x1:0,y1:0})}static invalid(){return new _({x0:NaN,y0:NaN,x1:NaN,y1:NaN})}clone(){return new _(this)}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}[h.equals](t,e){return e.eq(this.x0,t.x0)&&e.eq(this.y0,t.y0)&&e.eq(this.x1,t.x1)&&e.eq(this.y1,t.y1)}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get is_valid(){const{x0:t,x1:e,y0:r,y1:i}=this;return isFinite(t+e+r+i)}get is_empty(){const{x0:t,x1:e,y0:r,y1:i}=this;return 0==t&&0==e&&0==r&&0==i}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return{x:this.x0,y:this.y0}}get p1(){return{x:this.x1,y:this.y1}}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get size(){return{width:this.width,height:this.height}}get rect(){const{x0:t,y0:e,x1:r,y1:i}=this;return{p0:{x:t,y:e},p1:{x:r,y:e},p2:{x:r,y:i},p3:{x:t,y:i}}}get box(){const{x:t,y:e,width:r,height:i}=this;return{x:t,y:e,width:r,height:i}}get lrtb(){const{left:t,right:e,top:r,bottom:i}=this;return{left:t,right:e,top:r,bottom:i}}get x_range(){return{start:this.x0,end:this.x1}}get y_range(){return{start:this.y0,end:this.y1}}get h_range(){return this.x_range}get v_range(){return this.y_range}get ranges(){return[this.x_range,this.y_range]}get aspect(){return this.width/this.height}get x_center(){return(this.left+this.right)/2}get y_center(){return(this.top+this.bottom)/2}get hcenter(){return this.x_center}get vcenter(){return this.y_center}get area(){return this.width*this.height}resolve(t){switch(t){case"top_left":return this.top_left;case"top_center":return this.top_center;case"top_right":return this.top_right;case"center_left":return this.center_left;case"center_center":return this.center_center;case"center_right":return this.center_right;case"bottom_left":return this.bottom_left;case"bottom_center":return this.bottom_center;case"bottom_right":return this.bottom_right;case"center":return this.center;case"top":return this.top;case"left":return this.left;case"right":return this.right;case"bottom":return this.bottom;case"width":return this.width;case"height":return this.height;default:return{x:NaN,y:NaN}}}get top_left(){return{x:this.left,y:this.top}}get top_center(){return{x:this.hcenter,y:this.top}}get top_right(){return{x:this.right,y:this.top}}get center_left(){return{x:this.left,y:this.vcenter}}get center_center(){return{x:this.hcenter,y:this.vcenter}}get center_right(){return{x:this.right,y:this.vcenter}}get bottom_left(){return{x:this.left,y:this.bottom}}get bottom_center(){return{x:this.hcenter,y:this.bottom}}get bottom_right(){return{x:this.right,y:this.bottom}}get center(){return{x:this.hcenter,y:this.vcenter}}round(){return new _({x0:y(this.x0),x1:y(this.x1),y0:y(this.y0),y1:y(this.y1)})}relative(){const{width:t,height:e}=this;return new _({x:0,y:0,width:t,height:e})}translate(t,e){const{x:r,y:i,width:n,height:s}=this;return new _({x:t+r,y:e+i,width:n,height:s})}scale(t){return new _({x0:this.x0*t,x1:this.x1*t,y0:this.y0*t,y1:this.y1*t})}relativize(t,e){return[t-this.x,e-this.y]}contains(t,e){return this.x0<=t&&t<=this.x1&&this.y0<=e&&e<=this.y1}clip(t,e){return tthis.x1&&(t=this.x1),ethis.y1&&(e=this.y1),[t,e]}grow_by(t){return new _({left:this.left-t,right:this.right+t,top:this.top-t,bottom:this.bottom+t})}shrink_by(t){return new _({left:this.left+t,right:this.right-t,top:this.top+t,bottom:this.bottom-t},!0)}union(t){return new _({x0:u(this.x0,t.x0),y0:u(this.y0,t.y0),x1:x(this.x1,t.x1),y1:x(this.y1,t.y1)})}intersection(t){return this.intersects(t)?new _({x0:x(this.x0,t.x0),y0:x(this.y0,t.y0),x1:u(this.x1,t.x1),y1:u(this.y1,t.y1)}):null}intersects(t){return!(t.x1this.x1||t.y1this.y1)}get x_screen(){const t=this;return this._x_screen??(this._x_screen={compute:e=>t.left+e,invert:e=>e-t.left,v_compute(e){const{left:r}=t;return new s.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{left:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.x_range},get target_range(){return t.x_range}})}get y_screen(){const t=this;return this._y_screen??(this._y_screen={compute:e=>t.top+e,invert:e=>e-t.top,v_compute(e){const{top:r}=t;return new s.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{top:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.y_range},get target_range(){return t.y_range}})}get x_view(){const t=this;return this._x_view??(this._x_view={compute:e=>t.left+e,invert:e=>e-t.left,v_compute(e){const{left:r}=t;return new s.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{left:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.x_range},get target_range(){return t.x_range}})}get y_view(){const t=this;return this._y_view??(this._y_view={compute:e=>t.bottom-e,invert:e=>t.bottom-e,v_compute(e){const{bottom:r}=t;return new s.ScreenArray((0,o.map)(e,(t=>r-t)))},v_invert(e){const{bottom:r}=t;return(0,o.map)(e,(t=>r-t))},get source_range(){return t.y_range},get target_range(){return{start:t.bottom,end:t.top}}})}get xview(){return this.x_view}get yview(){return this.y_view}}r.BBox=_,_.__name__="BBox"}, -function _(n,t,e,o,r){o();const s=n(19),i=n(9),c=n(8),l=document.createElement("div").style;function f(n){if(n.startsWith("--"))return n;const t=n.replaceAll(/_/g,"-").replaceAll(/[A-Z]/g,(n=>`-${n.toLowerCase()}`));if(t in l)return t;const e=`-webkit-${t}`;if(e in l)return e;const o=`-moz-${t}`;return o in l?o:(s.logger.warn(`unknown CSS property '${n}'`),null)}function*u(n){if((0,c.isPlainObject)(n)||n instanceof Map)for(const[t,e]of(0,i.entries)(n)){const n=f(t);null!=n&&(yield[n,e])}else for(const t of n.own_properties())if(t.dirty){const n=f(t.attr);null!=n&&(yield[n,t.get_value()])}}e.apply_styles=function(n,t){for(const[e,o]of u(t))(0,c.isString)(o)?n.setProperty(e,o):n.removeProperty(e)},e.compose_stylesheet=function(n){const t=[];for(const[e,o]of(0,i.entries)(n)){t.push(`${e} {`);for(const[n,e]of u(o))(0,c.isString)(e)&&0!=e.length&&t.push(` ${n}: ${e};`);t.push("}")}return t.join("\n")}}, +function _(t,e,n,o,i){o(),n.textarea=n.template=n.td=n.tbody=n.table=n.sup=n.summary=n.sub=n.style=n.strong=n.span=n.source=n.small=n.slot=n.select=n.section=n.search=n.script=n.samp=n.s=n.ruby=n.rt=n.rp=n.q=n.progress=n.pre=n.picture=n.p=n.output=n.option=n.optgroup=n.ol=n.object=n.noscript=n.nav=n.meter=n.meta=n.menu=n.mark=n.map=n.main=n.link=n.li=n.legend=n.label=n.kbd=n.ins=n.input=n.img=n.iframe=void 0,n.supports_adopted_stylesheets=n.GlobalImportedStyleSheet=n.ImportedStyleSheet=n.GlobalInlineStyleSheet=n.InlineStyleSheet=n.StyleSheet=n.MouseButton=n.ClassList=n.wbr=n.video=n.ul=n.u=n.track=n.tr=n.title=n.time=n.thead=n.th=n.tfoot=void 0,n.create_element=function(t,e,...n){return c(t)(e,...n)},n.createSVGElement=function(t,e=null,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);for(const[t,n]of(0,l.entries)(e??{}))null!=n&&!1!==n&&o.setAttribute(t,n);function i(t){if((0,s.isString)(t))o.appendChild(document.createTextNode(t));else if(t instanceof Node)o.appendChild(t);else if(t instanceof NodeList||t instanceof HTMLCollection)for(const e of t)o.appendChild(e);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o},n.text=u,n.nbsp=function(){return u("\xa0")},n.prepend=function(t,...e){const n=t.firstChild;for(const o of e)t.insertBefore(o,n)},n.empty=function(t,e=!1){let n;for(;null!=(n=t.firstChild);)t.removeChild(n);if(e&&t instanceof Element)for(const e of t.attributes)t.removeAttributeNode(e)},n.contains=function(t,e){let n=e;for(;null!=n.parentNode;){const e=n.parentNode;if(e==t)return!0;n=e instanceof ShadowRoot?e.host:e}return!1},n.display=function(t,e=!0){t.style.display=e?"":"none"},n.undisplay=function(t){t.style.display="none"},n.show=function(t){t.style.visibility=""},n.hide=function(t){t.style.visibility="hidden"},n.offset_bbox=function(t){const{top:e,left:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({left:n+scrollX-document.documentElement.clientLeft,top:e+scrollY-document.documentElement.clientTop,width:o,height:i})},n.parent=function(t,e){let n=t;for(;null!=(n=n.parentElement);)if(n.matches(e))return n;return null},n.extents=p,n.size=f,n.scroll_size=function(t){return{width:Math.ceil(t.scrollWidth),height:Math.ceil(t.scrollHeight)}},n.outer_size=function(t){const{margin:{left:e,right:n,top:o,bottom:i}}=p(t),{width:s,height:l}=f(t);return{width:Math.ceil(s+e+n),height:Math.ceil(l+o+i)}},n.content_size=function(t){const{left:e,top:n}=t.getBoundingClientRect(),{padding:o}=p(t);let i=0,s=0;for(const l of(t.shadowRoot??t).children){const t=l.getBoundingClientRect();i=Math.max(i,Math.ceil(t.left-e-o.left+t.width)),s=Math.max(s,Math.ceil(t.top-n-o.top+t.height))}return{width:i,height:s}},n.bounding_box=function(t){const{x:e,y:n,width:o,height:i}=t.getBoundingClientRect();return new r.BBox({x:e,y:n,width:o,height:i})},n.box_size=function(t){const{width:e,height:n}=t.getBoundingClientRect();return{width:e,height:n}},n.position=function(t,e,n){const{style:o}=t;if(o.left=`${e.x}px`,o.top=`${e.y}px`,o.width=`${e.width}px`,o.height=`${e.height}px`,null==n)o.margin="";else{const{top:t,right:e,bottom:i,left:s}=n;o.margin=`${t}px ${e}px ${i}px ${s}px`}},n.classes=function(t){return new m(t.classList)},n.toggle_attribute=function(t,e,n){null==n&&(n=!t.hasAttribute(e));n?t.setAttribute(e,"true"):t.removeAttribute(e)},n.dom_ready=async function(){if("loading"==document.readyState)return new Promise(((t,e)=>{document.addEventListener("DOMContentLoaded",(()=>t()),{once:!0})}))},n.px=function(t){return(0,s.isNumber)(t)?`${t}px`:t};const s=t(8),l=t(9),r=t(64),a=t(65),d=t(19),c=t=>(e={},...n)=>{const o=document.createElement(t);if((0,s.isPlainObject)(e)?e={...e}:(n=[e,...n],e={}),null!=e.class){const t=(0,s.isString)(e.class)?e.class.split(/\s+/):e.class;for(const e of t)null!=e&&o.classList.add(e);delete e.class}if(null!=e.style&&((0,s.isString)(e.style)?o.setAttribute("style",e.style):(0,a.apply_styles)(o.style,e.style),delete e.style),null!=e.data){for(const[t,n]of(0,l.entries)(e.data))null!=n&&(o.dataset[t]=n);delete e.data}for(const[t,n]of(0,l.entries)(e))null!=n&&((0,s.isBoolean)(n)?o.toggleAttribute(t,n):(0,s.isNumber)(n)?o.setAttribute(t,`${n}`):(0,s.isString)(n)?o.setAttribute(t,n):d.logger.warn(`unable to set attribute: ${t} = ${n}`));function i(t){if((0,s.isString)(t))o.append(document.createTextNode(t));else if(t instanceof Node)o.append(t);else if(t instanceof NodeList||t instanceof HTMLCollection)o.append(...t);else if(null!=t&&!1!==t)throw new Error(`expected a DOM element, string, false or null, got ${JSON.stringify(t)}`)}for(const t of n)if((0,s.isArray)(t))for(const e of t)i(e);else i(t);return o};function u(t){return document.createTextNode(t)}function h(t){const e=parseFloat(t);return isFinite(e)?e:0}function p(t){const e=getComputedStyle(t);return{border:{top:h(e.borderTopWidth),bottom:h(e.borderBottomWidth),left:h(e.borderLeftWidth),right:h(e.borderRightWidth)},margin:{top:h(e.marginTop),bottom:h(e.marginBottom),left:h(e.marginLeft),right:h(e.marginRight)},padding:{top:h(e.paddingTop),bottom:h(e.paddingBottom),left:h(e.paddingLeft),right:h(e.paddingRight)}}}function f(t){const e=t.getBoundingClientRect();return{width:Math.ceil(e.width),height:Math.ceil(e.height)}}n.a=c("a"),n.abbr=c("abbr"),n.address=c("address"),n.area=c("area"),n.article=c("article"),n.aside=c("aside"),n.audio=c("audio"),n.b=c("b"),n.base=c("base"),n.bdi=c("bdi"),n.bdo=c("bdo"),n.blockquote=c("blockquote"),n.body=c("body"),n.br=c("br"),n.button=c("button"),n.canvas=c("canvas"),n.caption=c("caption"),n.cite=c("cite"),n.code=c("code"),n.col=c("col"),n.colgroup=c("colgroup"),n.data=c("data"),n.datalist=c("datalist"),n.dd=c("dd"),n.del=c("del"),n.details=c("details"),n.dfn=c("dfn"),n.dialog=c("dialog"),n.div=c("div"),n.dl=c("dl"),n.dt=c("dt"),n.em=c("em"),n.embed=c("embed"),n.fieldset=c("fieldset"),n.figcaption=c("figcaption"),n.figure=c("figure"),n.footer=c("footer"),n.form=c("form"),n.h1=c("h1"),n.h2=c("h2"),n.h3=c("h3"),n.h4=c("h4"),n.h5=c("h5"),n.h6=c("h6"),n.head=c("head"),n.header=c("header"),n.hgroup=c("hgroup"),n.hr=c("hr"),n.html=c("html"),n.i=c("i"),n.iframe=c("iframe"),n.img=c("img"),n.input=c("input"),n.ins=c("ins"),n.kbd=c("kbd"),n.label=c("label"),n.legend=c("legend"),n.li=c("li"),n.link=c("link"),n.main=c("main"),n.map=c("map"),n.mark=c("mark"),n.menu=c("menu"),n.meta=c("meta"),n.meter=c("meter"),n.nav=c("nav"),n.noscript=c("noscript"),n.object=c("object"),n.ol=c("ol"),n.optgroup=c("optgroup"),n.option=c("option"),n.output=c("output"),n.p=c("p"),n.picture=c("picture"),n.pre=c("pre"),n.progress=c("progress"),n.q=c("q"),n.rp=c("rp"),n.rt=c("rt"),n.ruby=c("ruby"),n.s=c("s"),n.samp=c("samp"),n.script=c("script"),n.search=c("search"),n.section=c("section"),n.select=c("select"),n.slot=c("slot"),n.small=c("small"),n.source=c("source"),n.span=c("span"),n.strong=c("strong"),n.style=c("style"),n.sub=c("sub"),n.summary=c("summary"),n.sup=c("sup"),n.table=c("table"),n.tbody=c("tbody"),n.td=c("td"),n.template=c("template"),n.textarea=c("textarea"),n.tfoot=c("tfoot"),n.th=c("th"),n.thead=c("thead"),n.time=c("time"),n.title=c("title"),n.tr=c("tr"),n.track=c("track"),n.u=c("u"),n.ul=c("ul"),n.video=c("video"),n.wbr=c("wbr");class m{constructor(t){this.class_list=t}get values(){const t=[];for(let e=0;ethis.class_list.remove(t))):this.class_list.remove(e);return this}clear(){for(const t of this.values)this.class_list.remove(t);return this}toggle(t,e){return(null!=e?e:!this.has(t))?this.add(t):this.remove(t),this}}var g;n.ClassList=m,m.__name__="ClassList",(g=n.MouseButton||(n.MouseButton={}))[g.None=0]="None",g[g.Primary=1]="Primary",g[g.Secondary=2]="Secondary",g[g.Auxiliary=4]="Auxiliary",g[g.Left=1]="Left",g[g.Right=2]="Right",g[g.Middle=4]="Middle";class b{install(t){t.append(this.el)}uninstall(){this.el.remove()}}n.StyleSheet=b,b.__name__="StyleSheet";class y extends b{constructor(t){super(),this.el=(0,n.style)(),(0,s.isString)(t)?this._update(t):null!=t&&this._update((0,a.compose_stylesheet)(t))}get css(){return this.el.textContent??""}_update(t){this.el.textContent=t}clear(){this.replace("")}_to_css(t,e){return null==e?t:(0,a.compose_stylesheet)({[t]:e})}replace(t,e){this._update(this._to_css(t,e))}prepend(t,e){this._update(`${this._to_css(t,e)}\n${this.css}`)}append(t,e){this._update(`${this.css}\n${this._to_css(t,e)}`)}remove(){this.el.remove()}}n.InlineStyleSheet=y,y.__name__="InlineStyleSheet";class _ extends y{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalInlineStyleSheet=_,_.__name__="GlobalInlineStyleSheet";class S extends b{constructor(t){super(),this.el=(0,n.link)({rel:"stylesheet",href:t})}replace(t){this.el.href=t}remove(){this.el.remove()}}n.ImportedStyleSheet=S,S.__name__="ImportedStyleSheet";class x extends S{install(){this.el.isConnected||document.head.appendChild(this.el)}}n.GlobalImportedStyleSheet=x,x.__name__="GlobalImportedStyleSheet",n.supports_adopted_stylesheets="adoptedStyleSheets"in ShadowRoot.prototype}, +function _(t,e,r,i,n){i(),r.empty=function(){return{x0:1/0,y0:1/0,x1:-1/0,y1:-1/0}},r.positive_x=function(){return{x0:Number.MIN_VALUE,y0:-1/0,x1:1/0,y1:1/0}},r.positive_y=function(){return{x0:-1/0,y0:Number.MIN_VALUE,x1:1/0,y1:1/0}},r.union=function(t,e){return{x0:y(t.x0,e.x0),x1:_(t.x1,e.x1),y0:y(t.y0,e.y0),y1:_(t.y1,e.y1)}},r.isXY=function(t){return(0,c.isPlainObject)(t)&&"x"in t&&"y"in t};const h=t(24),s=t(26),o=t(13),c=t(8),{min:u,max:g,round:x}=Math;function y(t,e){return isNaN(t)?e:isNaN(e)?t:u(t,e)}function _(t,e){return isNaN(t)?e:isNaN(e)?t:g(t,e)}class a{constructor(t,e=!1){if(null==t)this.x0=0,this.y0=0,this.x1=0,this.y1=0;else if("x0"in t){const{x0:e,y0:r,x1:i,y1:n}=t;if(isFinite(e+r+i+n)){if(!(e<=i&&r<=n))throw new Error(`invalid bbox {x0: ${e}, y0: ${r}, x1: ${i}, y1: ${n}}`);this.x0=e,this.y0=r,this.x1=i,this.y1=n}else this.x0=NaN,this.y0=NaN,this.x1=NaN,this.y1=NaN}else if("x"in t){const{x:e,y:r,width:i,height:n,origin:h="top_left"}=t;if(!(i>=0&&n>=0))throw new Error(`invalid bbox {x: ${e}, y: ${r}, width: ${i}, height: ${n}}`);const s=(()=>{switch(h){case"left":return"center_left";case"right":return"center_right";case"top":return"top_center";case"bottom":return"bottom_center";case"center":return"center_center";default:return h}})(),[o,c]=s.split("_",2),u=(()=>{switch(o){case"top":return 0;case"center":return.5;case"bottom":return 1}})(),g=e-(()=>{switch(c){case"left":return 0;case"center":return.5;case"right":return 1}})()*i,x=r-u*n,y=g+i,_=x+n;this.x0=g,this.y0=x,this.x1=y,this.y1=_}else{let r,i,n,h;if("width"in t)if("left"in t)r=t.left,i=r+t.width;else if("right"in t)i=t.right,r=i-t.width;else{const e=t.width/2;r=t.hcenter-e,i=t.hcenter+e}else r=t.left,i=t.right;if("height"in t)if("top"in t)n=t.top,h=n+t.height;else if("bottom"in t)h=t.bottom,n=h-t.height;else{const e=t.height/2;n=t.vcenter-e,h=t.vcenter+e}else n=t.top,h=t.bottom;if(r>i||n>h){if(!e)throw new Error(`invalid bbox {left: ${r}, top: ${n}, right: ${i}, bottom: ${h}}`);r>i&&(r=i),n>h&&(n=h)}this.x0=r,this.y0=n,this.x1=i,this.y1=h}}static from_lrtb({left:t,right:e,top:r,bottom:i}){return new a({x0:u(t,e),y0:u(r,i),x1:g(t,e),y1:g(r,i)})}static from_rect({x0:t,y0:e,x1:r,y1:i}){return new a({x0:u(t,r),y0:u(e,i),x1:g(t,r),y1:g(e,i)})}static empty(){return new a({x0:0,y0:0,x1:0,y1:0})}static invalid(){return new a({x0:NaN,y0:NaN,x1:NaN,y1:NaN})}clone(){return new a(this)}equals(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1}[s.equals](t,e){return e.eq(this.x0,t.x0)&&e.eq(this.y0,t.y0)&&e.eq(this.x1,t.x1)&&e.eq(this.y1,t.y1)}toString(){return`BBox({left: ${this.left}, top: ${this.top}, width: ${this.width}, height: ${this.height}})`}get is_valid(){const{x0:t,x1:e,y0:r,y1:i}=this;return isFinite(t+e+r+i)}get is_empty(){const{x0:t,x1:e,y0:r,y1:i}=this;return 0==t&&0==e&&0==r&&0==i}get left(){return this.x0}get top(){return this.y0}get right(){return this.x1}get bottom(){return this.y1}get p0(){return{x:this.x0,y:this.y0}}get p1(){return{x:this.x1,y:this.y1}}get x(){return this.x0}get y(){return this.y0}get width(){return this.x1-this.x0}get height(){return this.y1-this.y0}get size(){return{width:this.width,height:this.height}}get rect(){const{x0:t,y0:e,x1:r,y1:i}=this;return{p0:{x:t,y:e},p1:{x:r,y:e},p2:{x:r,y:i},p3:{x:t,y:i}}}get box(){const{x:t,y:e,width:r,height:i}=this;return{x:t,y:e,width:r,height:i}}get lrtb(){const{left:t,right:e,top:r,bottom:i}=this;return{left:t,right:e,top:r,bottom:i}}get x_range(){return{start:this.x0,end:this.x1}}get y_range(){return{start:this.y0,end:this.y1}}get h_range(){return this.x_range}get v_range(){return this.y_range}get ranges(){return[this.x_range,this.y_range]}get aspect(){return this.width/this.height}get x_center(){return(this.left+this.right)/2}get y_center(){return(this.top+this.bottom)/2}get hcenter(){return this.x_center}get vcenter(){return this.y_center}get area(){return this.width*this.height}resolve(t){switch(t){case"top_left":return this.top_left;case"top_center":return this.top_center;case"top_right":return this.top_right;case"center_left":return this.center_left;case"center_center":return this.center_center;case"center_right":return this.center_right;case"bottom_left":return this.bottom_left;case"bottom_center":return this.bottom_center;case"bottom_right":return this.bottom_right;case"center":return this.center;case"top":return this.top;case"left":return this.left;case"right":return this.right;case"bottom":return this.bottom;case"width":return this.width;case"height":return this.height;default:return{x:NaN,y:NaN}}}get top_left(){return{x:this.left,y:this.top}}get top_center(){return{x:this.hcenter,y:this.top}}get top_right(){return{x:this.right,y:this.top}}get center_left(){return{x:this.left,y:this.vcenter}}get center_center(){return{x:this.hcenter,y:this.vcenter}}get center_right(){return{x:this.right,y:this.vcenter}}get bottom_left(){return{x:this.left,y:this.bottom}}get bottom_center(){return{x:this.hcenter,y:this.bottom}}get bottom_right(){return{x:this.right,y:this.bottom}}get center(){return{x:this.hcenter,y:this.vcenter}}round(){return new a({x0:x(this.x0),x1:x(this.x1),y0:x(this.y0),y1:x(this.y1)})}relative(){const{width:t,height:e}=this;return new a({x:0,y:0,width:t,height:e})}translate(t,e){const{x:r,y:i,width:n,height:h}=this;return new a({x:t+r,y:e+i,width:n,height:h})}scale(t){return new a({x0:this.x0*t,x1:this.x1*t,y0:this.y0*t,y1:this.y1*t})}relativize(t,e){return[t-this.x,e-this.y]}contains(t,e){return this.x0<=t&&t<=this.x1&&this.y0<=e&&e<=this.y1}clip(t,e){return tthis.x1&&(t=this.x1),ethis.y1&&(e=this.y1),[t,e]}grow_by(t){return new a({left:this.left-t,right:this.right+t,top:this.top-t,bottom:this.bottom+t})}shrink_by(t){return new a({left:this.left+t,right:this.right-t,top:this.top+t,bottom:this.bottom-t},!0)}union(t){return new a({x0:u(this.x0,t.x0),y0:u(this.y0,t.y0),x1:g(this.x1,t.x1),y1:g(this.y1,t.y1)})}intersection(t){return this.intersects(t)?new a({x0:g(this.x0,t.x0),y0:g(this.y0,t.y0),x1:u(this.x1,t.x1),y1:u(this.y1,t.y1)}):null}intersects(t){return!(t.x1this.x1||t.y1this.y1)}get x_percent(){const t=this;return this._x_percent??(this._x_percent={compute:e=>t.left+e*t.width,invert:e=>(e-t.left)/t.width,v_compute(e){const{left:r,width:i}=t;return new h.ScreenArray((0,o.map)(e,(t=>r+t*i)))},v_invert(e){const{left:r,width:i}=t;return(0,o.map)(e,(t=>(t-r)/i))},get source_range(){return t.x_range},get target_range(){return t.x_range}})}get y_percent(){const t=this;return this._y_percent??(this._y_percent={compute:e=>t.top+e*t.height,invert:e=>(e-t.top)/t.height,v_compute(e){const{top:r,height:i}=t;return new h.ScreenArray((0,o.map)(e,(t=>r+t*i)))},v_invert(e){const{top:r,height:i}=t;return(0,o.map)(e,(t=>(t-r)/i))},get source_range(){return t.y_range},get target_range(){return t.y_range}})}get x_screen(){const t=this;return this._x_screen??(this._x_screen={compute:e=>t.left+e,invert:e=>e-t.left,v_compute(e){const{left:r}=t;return new h.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{left:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.x_range},get target_range(){return t.x_range}})}get y_screen(){const t=this;return this._y_screen??(this._y_screen={compute:e=>t.top+e,invert:e=>e-t.top,v_compute(e){const{top:r}=t;return new h.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{top:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.y_range},get target_range(){return t.y_range}})}get x_view(){const t=this;return this._x_view??(this._x_view={compute:e=>t.left+e,invert:e=>e-t.left,v_compute(e){const{left:r}=t;return new h.ScreenArray((0,o.map)(e,(t=>r+t)))},v_invert(e){const{left:r}=t;return(0,o.map)(e,(t=>t-r))},get source_range(){return t.x_range},get target_range(){return t.x_range}})}get y_view(){const t=this;return this._y_view??(this._y_view={compute:e=>t.bottom-e,invert:e=>t.bottom-e,v_compute(e){const{bottom:r}=t;return new h.ScreenArray((0,o.map)(e,(t=>r-t)))},v_invert(e){const{bottom:r}=t;return(0,o.map)(e,(t=>r-t))},get source_range(){return t.y_range},get target_range(){return{start:t.bottom,end:t.top}}})}get xview(){return this.x_view}get yview(){return this.y_view}}r.BBox=a,a.__name__="BBox"}, +function _(n,t,e,o,r){o(),e.apply_styles=function(n,t){for(const[e,o]of u(t))(0,c.isString)(o)?n.setProperty(e,o):n.removeProperty(e)},e.compose_stylesheet=function(n){const t=[];for(const[e,o]of(0,i.entries)(n)){t.push(`${e} {`);for(const[n,e]of u(o))(0,c.isString)(e)&&0!=e.length&&t.push(` ${n}: ${e};`);t.push("}")}return t.join("\n")};const s=n(19),i=n(9),c=n(8),l=document.createElement("div").style;function f(n){if(n.startsWith("--"))return n;const t=n.replaceAll(/_/g,"-").replaceAll(/[A-Z]/g,(n=>`-${n.toLowerCase()}`));if(t in l)return t;const e=`-webkit-${t}`;if(e in l)return e;const o=`-moz-${t}`;return o in l?o:(s.logger.warn(`unknown CSS property '${n}'`),null)}function*u(n){if((0,c.isPlainObject)(n)||n instanceof Map)for(const[t,e]of(0,i.entries)(n)){const n=f(t);null!=n&&(yield[n,e])}else for(const t of n.own_properties())if(t.dirty){const n=f(t.attr);null!=n&&(yield[n,t.get_value()])}}}, function _(e,o,i,n,t){n(),i.default=":host{--base-font:var(--bokeh-base-font, Helvetica, Arial, sans-serif);--mono-font:var(--bokeh-mono-font, monospace);--font-size:var(--bokeh-font-size, 12px);--line-height:calc(20 / 14);--line-height-computed:calc(var(--font-size) * var(--line-height));--border-radius:4px;--padding-vertical:6px;--padding-horizontal:12px;--bokeh-top-level:10000;}:host{box-sizing:border-box;font-family:var(--base-font);font-size:var(--font-size);line-height:var(--line-height);}*,*:before,*:after{box-sizing:inherit;font-family:inherit;}pre,code{font-family:var(--mono-font);margin:0;}"}, -function _(n,t,o,e,s){e();const a=n(68),c=n(19),r=n(54);o._get_ws_url=function(n,t){let o,e="ws:";return"https:"==window.location.protocol&&(e="wss:"),null!=t?(o=document.createElement("a"),o.href=t):o=window.location,null!=n?"/"==n&&(n=""):n=o.pathname.replace(/\/+$/,""),`${e}//${o.host}${n}/ws`};const i=new Map;o.add_document_from_session=async function(n,t,o,e=[],s=!1){const l=window.location.search.substring(1);let d;try{d=await function(n,t,o){const e=(0,a.parse_token)(t).session_id;i.has(n)||i.set(n,new Map);const s=i.get(n);return s.has(e)||s.set(e,(0,a.pull_session)(n,t,o)),s.get(e)}(n,t,l)}catch(n){const o=(0,a.parse_token)(t).session_id;throw c.logger.error(`Failed to load Bokeh session ${o}: ${n}`),n}return(0,r.add_document_standalone)(d.document,o,e,s)}}, -function _(e,s,n,t,o){t();const r=e(19),i=e(5),l=e(69),c=e(70),_=e(71);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let h=0;function a(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}n.parse_token=a;class d{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,t=null){this._number=h++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new c.Receiver,this.url=e,this.token=s,this.args_string=t,this.id=a(s).session_id.split(".")[0],r.logger.debug(`Creating websocket ${this._number} to '${this.url}' session '${this.id}'`)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise(((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)}))}catch(e){throw r.logger.error(`websocket creation failed to url: ${this.url}`),r.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(r.logger.debug(`Permanently closing websocket connection ${this._number}`),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout((()=>{this.closed_permanently||(r.logger.info(`Websocket connection ${this._number} disconnected, will not attempt to reconnect`),this.session?.notify_connection_lost())}),e)}send(e){null!=this.socket?e.send(this.socket):r.logger.error("not connected so cannot send",e)}async send_with_reply(e){const s=await new Promise(((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)}));if("ERROR"==s.msgtype())throw new Error(`Error reply ${s.content.text}`);return s}async _pull_doc_json(){const e=l.Message.create("PULL-DOC-REQ",{},{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No 'doc' field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){r.logger.debug(null!=this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)r.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=[],t=i.Document.from_json(n,s);this.session=new _.ClientSession(this,t);for(const e of s)t._trigger_on_change(e);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],r.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),r.logger.debug("Updated existing session with new pulled doc")}catch(e){console.trace(e),r.logger.error(`Failed to repull session ${e}`),s(e instanceof Error?e:`${e}`)}}_on_open(e,s){r.logger.info(`Websocket connection ${this._number} is now open`),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&r.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(`${e}`)}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){r.logger.info(`Lost websocket ${this._number} connection, ${e.code} (${e.reason})`),this.socket=null,this._pending_replies.forEach((e=>e.reject("Disconnected"))),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(`Lost websocket connection, ${e.code} (${e.reason})`))}_on_error(e){r.logger.debug(`Websocket error on socket ${this._number}`);const s="Could not open websocket";r.logger.error(`Failed to connect to Bokeh server: ${s}`),e(new Error(s))}_close_bad_protocol(e){r.logger.error(`Closing connection: ${e}`),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);null!=n?(this._pending_replies.delete(s),n.resolve(e)):null!=this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=d,d.__name__="ClientConnection",n.pull_session=function(e,s,n){return new d(e,s,n).connect()}}, +function _(e,t,n,o,s){o(),n._get_ws_url=function(e,t){void 0===t&&function(e){if(null===e)return!1;if("IFRAME"===e.tagName.toUpperCase())return!0;return!1}(frameElement)&&void 0!==frameElement.dataset.absoluteUrl&&(t=frameElement.dataset.absoluteUrl);let n;null!=t?(n=document.createElement("a"),n.href=t):n=window.location;const o="https:"==n.protocol?"wss:":"ws:";null!=e?"/"==e&&(e=""):e=n.pathname.replace(/\/+$/,"");return`${o}//${n.host}${e}/ws`},n.add_document_from_session=async function(e,t,n,o=[],s=!1){const i=window.location.search.substring(1);let u;try{u=await function(e,t,n){const o=(0,a.parse_token)(t).session_id;c.has(e)||c.set(e,new Map);const s=c.get(e);s.has(o)||s.set(o,(0,a.pull_session)(e,t,n));return s.get(o)}(e,t,i)}catch(e){const n=(0,a.parse_token)(t).session_id;throw r.logger.error(`Failed to load Bokeh session ${n}: ${e}`),e}return(0,l.add_document_standalone)(u.document,n,o,s)};const a=e(68),r=e(19),l=e(54);const c=new Map}, +function _(e,s,n,t,o){t(),n.parse_token=a,n.pull_session=function(e,s,n){return new d(e,s,n).connect()};const r=e(19),i=e(5),l=e(69),c=e(70),_=e(71);n.DEFAULT_SERVER_WEBSOCKET_URL="ws://localhost:5006/ws",n.DEFAULT_TOKEN="eyJzZXNzaW9uX2lkIjogImRlZmF1bHQifQ";let h=0;function a(e){let s=e.split(".")[0];const n=s.length%4;return 0!=n&&(s+="=".repeat(4-n)),JSON.parse(atob(s.replace(/_/g,"/").replace(/-/g,"+")))}class d{constructor(e=n.DEFAULT_SERVER_WEBSOCKET_URL,s=n.DEFAULT_TOKEN,t=null){this._number=h++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_replies=new Map,this._pending_messages=[],this._receiver=new c.Receiver,this.url=e,this.token=s,this.args_string=t,this.id=a(s).session_id.split(".")[0],r.logger.debug(`Creating websocket ${this._number} to '${this.url}' session '${this.id}'`)}async connect(){if(this.closed_permanently)throw new Error("Cannot connect() a closed ClientConnection");if(null!=this.socket)throw new Error("Already connected");this._current_handler=null,this._pending_replies.clear(),this._pending_messages=[];try{let e=`${this.url}`;return null!=this.args_string&&this.args_string.length>0&&(e+=`?${this.args_string}`),this.socket=new WebSocket(e,["bokeh",this.token]),new Promise(((e,s)=>{this.socket.binaryType="arraybuffer",this.socket.onopen=()=>this._on_open(e,s),this.socket.onmessage=e=>this._on_message(e),this.socket.onclose=e=>this._on_close(e,s),this.socket.onerror=()=>this._on_error(s)}))}catch(e){throw r.logger.error(`websocket creation failed to url: ${this.url}`),r.logger.error(` - ${e}`),e}}close(){this.closed_permanently||(r.logger.debug(`Permanently closing websocket connection ${this._number}`),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,`close method called on ClientConnection ${this._number}`),this.session._connection_closed())}_schedule_reconnect(e){setTimeout((()=>{this.closed_permanently||(r.logger.info(`Websocket connection ${this._number} disconnected, will not attempt to reconnect`),this.session?.notify_connection_lost())}),e)}send(e){null!=this.socket?e.send(this.socket):r.logger.error("not connected so cannot send",e)}async send_with_reply(e){const s=await new Promise(((s,n)=>{this._pending_replies.set(e.msgid(),{resolve:s,reject:n}),this.send(e)}));if("ERROR"==s.msgtype())throw new Error(`Error reply ${s.content.text}`);return s}async _pull_doc_json(){const e=l.Message.create("PULL-DOC-REQ",{},{}),s=await this.send_with_reply(e);if(!("doc"in s.content))throw new Error("No 'doc' field in PULL-DOC-REPLY");return s.content.doc}async _repull_session_doc(e,s){r.logger.debug(null!=this.session?"Repulling session":"Pulling session for first time");try{const n=await this._pull_doc_json();if(null==this.session)if(this.closed_permanently)r.logger.debug("Got new document after connection was already closed"),s(new Error("The connection has been closed"));else{const s=[],t=i.Document.from_json(n,s);this.session=new _.ClientSession(this,t);for(const e of s)t._trigger_on_change(e);for(const e of this._pending_messages)this.session.handle(e);this._pending_messages=[],r.logger.debug("Created a new session from new pulled doc"),e(this.session)}else this.session.document.replace_with_json(n),r.logger.debug("Updated existing session with new pulled doc")}catch(e){console.trace(e),r.logger.error(`Failed to repull session ${e}`),s(e instanceof Error?e:`${e}`)}}_on_open(e,s){r.logger.info(`Websocket connection ${this._number} is now open`),this._current_handler=n=>{this._awaiting_ack_handler(n,e,s)}}_on_message(e){null==this._current_handler&&r.logger.error("Got a message with no current handler set");try{this._receiver.consume(e.data)}catch(e){this._close_bad_protocol(`${e}`)}const s=this._receiver.message;if(null!=s){const e=s.problem();null!=e&&this._close_bad_protocol(e),this._current_handler(s)}}_on_close(e,s){r.logger.info(`Lost websocket ${this._number} connection, ${e.code} (${e.reason})`),this.socket=null,this._pending_replies.forEach((e=>e.reject("Disconnected"))),this._pending_replies.clear(),this.closed_permanently||this._schedule_reconnect(2e3),s(new Error(`Lost websocket connection, ${e.code} (${e.reason})`))}_on_error(e){r.logger.debug(`Websocket error on socket ${this._number}`);const s="Could not open websocket";r.logger.error(`Failed to connect to Bokeh server: ${s}`),e(new Error(s))}_close_bad_protocol(e){r.logger.error(`Closing connection: ${e}`),null!=this.socket&&this.socket.close(1002,e)}_awaiting_ack_handler(e,s,n){"ACK"===e.msgtype()?(this._current_handler=e=>this._steady_state_handler(e),this._repull_session_doc(s,n)):this._close_bad_protocol("First message was not an ACK")}_steady_state_handler(e){const s=e.reqid(),n=this._pending_replies.get(s);null!=n?(this._pending_replies.delete(s),n.resolve(e)):null!=this.session?this.session.handle(e):"PATCH-DOC"!=e.msgtype()&&this._pending_messages.push(e)}}n.ClientConnection=d,d.__name__="ClientConnection"}, function _(e,s,t,r,n){r();const i=e(32),a=e(40),h=e(12);class f{get buffers(){return this._buffers}constructor(e,s,t){this._buffers=new Map,this.header=e,this.metadata=s,this.content=t}static assemble(e,s,t){const r=JSON.parse(e),n=JSON.parse(s),i=JSON.parse(t);return new f(r,n,i)}assemble_buffer(e,s){const t=this.header.num_buffers??0;if(t<=this._buffers.size)throw new Error(`too many buffers received, expecting ${t}`);const{id:r}=JSON.parse(e);this._buffers.set(r,s)}static create(e,s,t){const r=f.create_header(e);return new f(r,s,t)}static create_header(e){return{msgid:(0,a.unique_id)(),msgtype:e}}complete(){const{num_buffers:e}=this.header;return null==e||this._buffers.size==e}send(e){(0,h.assert)(null==this.header.num_buffers);const s=[],t=JSON.stringify(this.content,((e,t)=>{if(t instanceof i.Buffer){const e={id:`${s.length}`};return s.push([e,t.buffer]),e}return t})),r=s.length;r>0&&(this.header.num_buffers=r);const n=JSON.stringify(this.header),a=JSON.stringify(this.metadata);e.send(n),e.send(a),e.send(t);for(const[t,r]of s)e.send(JSON.stringify(t)),e.send(r)}msgid(){return this.header.msgid}msgtype(){return this.header.msgtype}reqid(){return this.header.reqid}problem(){return"msgid"in this.header?"msgtype"in this.header?null:"No msgtype in header":"No msgid in header"}}t.Message=f,f.__name__="Message"}, function _(t,e,s,_,r){_();const i=t(69),h=t(8),a=t(12);class n{constructor(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}consume(t){this._current_consumer(t)}_HEADER(t){this._assume_text(t),this.message=null,this._partial=null,this._fragments=[t],this._buf_header=null,this._current_consumer=this._METADATA}_METADATA(t){this._assume_text(t),this._fragments.push(t),this._current_consumer=this._CONTENT}_CONTENT(t){this._assume_text(t),this._fragments.push(t);const[e,s,_]=this._fragments;(0,a.assert)(null!=e&&null!=s&&null!=_),this._partial=i.Message.assemble(e,s,_),this._check_complete()}_BUFFER_HEADER(t){this._assume_text(t),this._buf_header=t,this._current_consumer=this._BUFFER_PAYLOAD}_BUFFER_PAYLOAD(t){this._assume_binary(t),(0,a.assert)(null!=this._partial&&null!=this._buf_header),this._partial.assemble_buffer(this._buf_header,t),this._check_complete()}_assume_text(t){if(!(0,h.isString)(t))throw new Error("Expected text fragment but received binary fragment")}_assume_binary(t){if(!(t instanceof ArrayBuffer))throw new Error("Expected binary fragment but received text fragment")}_check_complete(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER}}s.Receiver=n,n.__name__="Receiver"}, function _(e,n,t,o,s){o();const c=e(5),i=e(53),_=e(69),r=e(19);class a{constructor(e,n){this._document_listener=e=>{this._document_changed(e)},this._connection=e,this.document=n,this.document.on_change(this._document_listener,!0)}get id(){return this._connection.id}handle(e){const n=e.msgtype();switch(n){case"PATCH-DOC":this._handle_patch(e);break;case"OK":this._handle_ok(e);break;case"ERROR":this._handle_error(e);break;default:r.logger.debug(`Doing nothing with message '${n}'`)}}notify_connection_lost(){this.document.event_manager.send_event(new i.ConnectionLost)}close(){this._connection.close()}_connection_closed(){this.document.remove_on_change(this._document_listener)}async request_server_info(){const e=_.Message.create("SERVER-INFO-REQ",{},{});return(await this._connection.send_with_reply(e)).content}async force_roundtrip(){await this.request_server_info()}_document_changed(e){const n=(e instanceof c.DocumentEventBatch?e.sync?e.events:[]:[e]).filter((e=>e.sync));if(0==n.length)return;const t=this.document.create_json_patch(n),o=_.Message.create("PATCH-DOC",{},t);this._connection.send(o)}_handle_patch(e){this.document.apply_json_patch(e.content,e.buffers)}_handle_ok(e){r.logger.trace(`Unhandled OK reply to ${e.reqid()}`)}_handle_error(e){r.logger.error(`Unhandled ERROR reply to ${e.reqid()}: ${e.content.text}`)}}t.ClientSession=a,a.__name__="ClientSession"}, -function _(n,e,o,t,r){t();const i=n(63),l=n(8);function s(n){let e=(0,l.isString)(n)?document.getElementById(n):n;if(null==e)throw new Error(`Error rendering Bokeh model: could not find ${(0,l.isString)(n)?`#${n}`:n} HTML tag`);if(!(0,i.contains)(document.body,e))throw new Error(`Error rendering Bokeh model: element ${(0,l.isString)(n)?`#${n}`:n} must be under `);if(e instanceof HTMLElement&&"SCRIPT"==e.tagName){const n=(0,i.div)();e.replaceWith(n),e=n}return e}o._resolve_element=function(n){const{elementid:e}=n;return null!=e?s(e):document.body},o._resolve_root_elements=function(n){const e=[];if(null!=n.root_ids&&null!=n.roots)for(const o of n.root_ids)e.push(s(n.roots[o]));return e}}, -function _(e,o,t,n,r){n();const s=e(5),i=e(70),c=e(19),l=e(9),g=e(54),a=e(72);function f(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function m(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){c.logger.info(`Registering Jupyter comms for target ${e}`);const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,(t=>{c.logger.info(`Registering Jupyter comms for target ${e}`);const n=new i.Receiver;t.on_msg(f.bind(o,n))}))}catch(e){c.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if(o.roots()[0].id in t.kernels){c.logger.info(`Registering JupyterLab comms for target ${e}`);const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,(t=>{c.logger.info(`Registering JupyterLab comms for target ${e}`);const n=new i.Receiver;t.onMsg=f.bind(o,n)}))}catch(e){c.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if("undefined"!=typeof google&&null!=google.colab.kernel){c.logger.info(`Registering Google Colab comms for target ${e}`);const t=google.colab.kernel.comms;try{t.registerTarget(e,(async t=>{c.logger.info(`Registering Google Colab comms for target ${e}`);const n=new i.Receiver;for await(const e of t.messages){const t={data:e.data},r=[];for(const o of e.buffers??[])r.push(new DataView(o));const s={content:t,buffers:r};f.bind(o)(n,s)}}))}catch(e){c.logger.warn(`Google Colab comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}t.kernels={},t.embed_items_notebook=async function(e,o){if(1!=(0,l.size)(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=s.Document.from_json((0,l.values)(e)[0]);for(const e of o){null!=e.notebook_comms_target&&m(e.notebook_comms_target,t);const o=(0,a._resolve_element)(e),n=(0,a._resolve_root_elements)(e);await(0,g.add_document_standalone)(t,o,n);for(const e of n)e instanceof HTMLElement&&e.removeAttribute("id")}}}, +function _(n,e,o,t,r){t(),o._resolve_element=function(n){const{elementid:e}=n;return null!=e?s(e):document.body},o._resolve_root_elements=function(n){const e=[];if(null!=n.root_ids&&null!=n.roots)for(const o of n.root_ids)e.push(s(n.roots[o]));return e};const i=n(63),l=n(8);function s(n){let e=(0,l.isString)(n)?document.getElementById(n):n;if(null==e)throw new Error(`Error rendering Bokeh model: could not find ${(0,l.isString)(n)?`#${n}`:n} HTML tag`);if(!(0,i.contains)(document.body,e))throw new Error(`Error rendering Bokeh model: element ${(0,l.isString)(n)?`#${n}`:n} must be under `);if(e instanceof HTMLElement&&"SCRIPT"==e.tagName){const n=(0,i.div)();e.replaceWith(n),e=n}return e}}, +function _(e,o,t,n,r){n(),t.embed_items_notebook=async function(e,o){if(1!=(0,l.size)(e))throw new Error("embed_items_notebook expects exactly one document in docs_json");const t=s.Document.from_json((0,l.values)(e)[0]);for(const e of o){null!=e.notebook_comms_target&&m(e.notebook_comms_target,t);const o=(0,a._resolve_element)(e),n=(0,a._resolve_root_elements)(e);await(0,g.add_document_standalone)(t,o,n);for(const e of n)e instanceof HTMLElement&&e.removeAttribute("id")}};const s=e(5),i=e(70),c=e(19),l=e(9),g=e(54),a=e(72);function f(e,o){o.buffers.length>0?e.consume(o.buffers[0].buffer):e.consume(o.content.data);const t=e.message;null!=t&&this.apply_json_patch(t.content,t.buffers)}function m(e,o){if("undefined"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){c.logger.info(`Registering Jupyter comms for target ${e}`);const t=Jupyter.notebook.kernel.comm_manager;try{t.register_target(e,(t=>{c.logger.info(`Registering Jupyter comms for target ${e}`);const n=new i.Receiver;t.on_msg(f.bind(o,n))}))}catch(e){c.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if(o.roots()[0].id in t.kernels){c.logger.info(`Registering JupyterLab comms for target ${e}`);const n=t.kernels[o.roots()[0].id];try{n.registerCommTarget(e,(t=>{c.logger.info(`Registering JupyterLab comms for target ${e}`);const n=new i.Receiver;t.onMsg=f.bind(o,n)}))}catch(e){c.logger.warn(`Jupyter comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else if("undefined"!=typeof google&&null!=google.colab.kernel){c.logger.info(`Registering Google Colab comms for target ${e}`);const t=google.colab.kernel.comms;try{t.registerTarget(e,(async t=>{c.logger.info(`Registering Google Colab comms for target ${e}`);const n=new i.Receiver;for await(const e of t.messages){const t={data:e.data},r=[];for(const o of e.buffers??[])r.push(new DataView(o));const s={content:t,buffers:r};f.bind(o)(n,s)}}))}catch(e){c.logger.warn(`Google Colab comms failed to register. push_notebook() will not function. (exception reported: ${e})`)}}else console.warn("Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest @bokeh/jupyter_bokeh extension is installed. In an exported notebook this warning is expected.")}t.kernels={}}, function _(t,_,o,r,n){r();const a=t(1);a.__exportStar(t(69),o),a.__exportStar(t(70),o)}, function _(e,t,o,l,n){l(),o.safely=function(e,t=!1){try{return e()}catch(e){if(function(e){const t=document.createElement("div");t.style.backgroundColor="#f2dede",t.style.border="1px solid #a94442",t.style.borderRadius="4px",t.style.display="inline-block",t.style.fontFamily="sans-serif",t.style.marginTop="5px",t.style.minWidth="200px",t.style.padding="5px 5px 5px 10px",t.classList.add("bokeh-error-box-into-flames");const o=document.createElement("span");o.style.backgroundColor="#a94442",o.style.borderRadius="0px 4px 0px 0px",o.style.color="white",o.style.cursor="pointer",o.style.cssFloat="right",o.style.fontSize="0.8em",o.style.margin="-6px -6px 0px 0px",o.style.padding="2px 5px 4px 5px",o.title="close",o.setAttribute("aria-label","close"),o.appendChild(document.createTextNode("x")),o.addEventListener("click",(()=>s.removeChild(t)));const l=document.createElement("h3");l.style.color="#a94442",l.style.margin="8px 0px 0px 0px",l.style.padding="0px",l.appendChild(document.createTextNode("Bokeh Error"));const n=document.createElement("pre");n.style.whiteSpace="unset",n.style.overflowX="auto",n.appendChild(document.createTextNode(e)),t.appendChild(o),t.appendChild(l),t.appendChild(n);const s=document.getElementsByTagName("body")[0];s.insertBefore(t,s.firstChild)}(e instanceof Error&&null!=e.stack?e.stack:`${e}`),t)return;throw e}}}, -function _(t,r,o,_,e){_();const s=t(1),i=t(7),m=s.__importStar(t(77));(0,i.register_models)(m);const n=s.__importStar(t(532));(0,i.register_models)(n)}, -function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(78),r),e.__exportStar(t(265),r),e.__exportStar(t(313),r),e.__exportStar(t(323),r),e.__exportStar(t(328),r),e.__exportStar(t(329),r),e.__exportStar(t(338),r),e.__exportStar(t(241),r),e.__exportStar(t(347),r),e.__exportStar(t(389),r),e.__exportStar(t(390),r),e.__exportStar(t(394),r),e.__exportStar(t(396),r),e.__exportStar(t(270),r),e.__exportStar(t(419),r),e.__exportStar(t(421),r),e.__exportStar(t(422),r),e.__exportStar(t(431),r),e.__exportStar(t(447),r),e.__exportStar(t(448),r),e.__exportStar(t(255),r),e.__exportStar(t(450),r),e.__exportStar(t(253),r),e.__exportStar(t(453),r),e.__exportStar(t(454),r),e.__exportStar(t(459),r),e.__exportStar(t(200),r),e.__exportStar(t(464),r),e.__exportStar(t(473),r),e.__exportStar(t(477),r),e.__exportStar(t(487),r)}, -function _(e,a,o,n,r){n();const t=e(1);r("AreaVisuals",e(79).AreaVisuals),r("Annotation",e(81).Annotation),r("Arrow",e(126).Arrow),r("ArrowHead",e(168).ArrowHead),r("OpenHead",e(168).OpenHead),r("NormalHead",e(168).NormalHead),r("TeeHead",e(168).TeeHead),r("VeeHead",e(168).VeeHead),r("BaseColorBar",e(170).BaseColorBar),r("Band",e(260).Band);var l=e(262);r("BoxAnnotation",l.BoxAnnotation),r("BoxInteractionHandles",l.BoxInteractionHandles),r("ColorBar",e(264).ColorBar),r("ContourColorBar",e(280).ContourColorBar),r("Label",e(281).Label),r("LabelSet",e(282).LabelSet),r("Legend",e(283).Legend),r("LegendItem",e(284).LegendItem),r("PolyAnnotation",e(285).PolyAnnotation),r("ScaleBar",e(286).ScaleBar);var i=e(287);r("Metric",i.Metric),r("ReciprocalMetric",i.ReciprocalMetric),r("MetricLength",i.MetricLength),r("ReciprocalMetricLength",i.ReciprocalMetricLength),r("ImperialLength",i.ImperialLength),r("Angular",i.Angular),r("Slope",e(288).Slope),r("Span",e(289).Span),r("TextAnnotation",e(172).TextAnnotation),r("Title",e(171).Title),r("ToolbarPanel",e(290).ToolbarPanel),r("Whisker",e(307).Whisker),t.__exportStar(e(308),o)}, +function _(t,r,o,_,e){_();const s=t(1),i=t(7),m=s.__importStar(t(77));(0,i.register_models)(m);const n=s.__importStar(t(540));(0,i.register_models)(n)}, +function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(78),r),e.__exportStar(t(266),r),e.__exportStar(t(314),r),e.__exportStar(t(324),r),e.__exportStar(t(329),r),e.__exportStar(t(333),r),e.__exportStar(t(334),r),e.__exportStar(t(343),r),e.__exportStar(t(242),r),e.__exportStar(t(352),r),e.__exportStar(t(396),r),e.__exportStar(t(397),r),e.__exportStar(t(401),r),e.__exportStar(t(403),r),e.__exportStar(t(271),r),e.__exportStar(t(426),r),e.__exportStar(t(428),r),e.__exportStar(t(429),r),e.__exportStar(t(438),r),e.__exportStar(t(454),r),e.__exportStar(t(455),r),e.__exportStar(t(256),r),e.__exportStar(t(457),r),e.__exportStar(t(254),r),e.__exportStar(t(460),r),e.__exportStar(t(461),r),e.__exportStar(t(466),r),e.__exportStar(t(200),r),e.__exportStar(t(471),r),e.__exportStar(t(480),r),e.__exportStar(t(484),r),e.__exportStar(t(494),r)}, +function _(e,a,o,n,r){n();const t=e(1);r("AreaVisuals",e(79).AreaVisuals),r("Annotation",e(81).Annotation),r("Arrow",e(126).Arrow),r("ArrowHead",e(168).ArrowHead),r("OpenHead",e(168).OpenHead),r("NormalHead",e(168).NormalHead),r("TeeHead",e(168).TeeHead),r("VeeHead",e(168).VeeHead),r("BaseColorBar",e(170).BaseColorBar),r("Band",e(261).Band);var l=e(263);r("BoxAnnotation",l.BoxAnnotation),r("BoxInteractionHandles",l.BoxInteractionHandles),r("ColorBar",e(265).ColorBar),r("ContourColorBar",e(281).ContourColorBar),r("Label",e(282).Label),r("LabelSet",e(283).LabelSet),r("Legend",e(284).Legend),r("LegendItem",e(285).LegendItem),r("PolyAnnotation",e(286).PolyAnnotation),r("ScaleBar",e(287).ScaleBar);var i=e(288);r("Metric",i.Metric),r("ReciprocalMetric",i.ReciprocalMetric),r("MetricLength",i.MetricLength),r("ReciprocalMetricLength",i.ReciprocalMetricLength),r("ImperialLength",i.ImperialLength),r("Angular",i.Angular),r("Slope",e(289).Slope),r("Span",e(290).Span),r("TextAnnotation",e(172).TextAnnotation),r("Title",e(171).Title),r("ToolbarPanel",e(291).ToolbarPanel),r("Whisker",e(308).Whisker),t.__exportStar(e(309),o)}, function _(e,r,n,s,o){var a;s();const i=e(1),l=e(51),t=i.__importStar(e(80));class _ extends l.Model{constructor(e){super(e)}clone(e){return super.clone(e)}}n.AreaVisuals=_,a=_,_.__name__="AreaVisuals",a.mixins([t.Line,t.Fill,t.Hatch,["hover_",t.Line],["hover_",t.Fill],["hover_",t.Hatch]])}, -function _(l,e,a,t,o){t();const c=l(1),r=c.__importStar(l(18)),n=l(20),_=c.__importStar(l(21)),i=l(9),h=l(8);a.Line={line_color:[_.Nullable(_.Color),"black"],line_alpha:[_.Alpha,1],line_width:[_.Float,1],line_join:[n.LineJoin,"bevel"],line_cap:[n.LineCap,"butt"],line_dash:[_.Or(n.LineDash,_.Array(_.Float)),[]],line_dash_offset:[_.Float,0]},a.Fill={fill_color:[_.Nullable(_.Color),"gray"],fill_alpha:[_.Alpha,1]},a.Image={global_alpha:[_.Alpha,1]},a.Hatch={hatch_color:[_.Nullable(_.Color),"black"],hatch_alpha:[_.Alpha,1],hatch_scale:[_.Float,12],hatch_pattern:[_.Nullable(_.Or(n.HatchPatternType,_.Str)),null],hatch_weight:[_.Float,1],hatch_extra:[_.Dict(_.AnyRef()),{}]},a.Text={text_color:[_.Nullable(_.Color),"#444444"],text_outline_color:[_.Nullable(_.Color),null],text_alpha:[_.Alpha,1],text_font:[r.Font,"helvetica"],text_font_size:[_.FontSize,"16px"],text_font_style:[n.FontStyle,"normal"],text_align:[n.TextAlign,"left"],text_baseline:[n.TextBaseline,"bottom"],text_line_height:[_.Float,1.2]},a.LineScalar={line_color:[r.ColorScalar,"black"],line_alpha:[r.NumberScalar,1],line_width:[r.NumberScalar,1],line_join:[r.LineJoinScalar,"bevel"],line_cap:[r.LineCapScalar,"butt"],line_dash:[r.LineDashScalar,[]],line_dash_offset:[r.NumberScalar,0]},a.FillScalar={fill_color:[r.ColorScalar,"gray"],fill_alpha:[r.NumberScalar,1]},a.ImageScalar={global_alpha:[r.NumberScalar,1]},a.HatchScalar={hatch_color:[r.ColorScalar,"black"],hatch_alpha:[r.NumberScalar,1],hatch_scale:[r.NumberScalar,12],hatch_pattern:[r.NullStringScalar,null],hatch_weight:[r.NumberScalar,1],hatch_extra:[r.DictScalar,{}]},a.TextScalar={text_color:[r.ColorScalar,"#444444"],text_outline_color:[r.ColorScalar,null],text_alpha:[r.NumberScalar,1],text_font:[r.FontScalar,"helvetica"],text_font_size:[r.FontSizeScalar,"16px"],text_font_style:[r.FontStyleScalar,"normal"],text_align:[r.TextAlignScalar,"left"],text_baseline:[r.TextBaselineScalar,"bottom"],text_line_height:[r.NumberScalar,1.2]},a.LineVector={line_color:[r.ColorSpec,"black"],line_alpha:[r.NumberSpec,1],line_width:[r.NumberSpec,1],line_join:[r.LineJoinSpec,"bevel"],line_cap:[r.LineCapSpec,"butt"],line_dash:[r.LineDashSpec,[]],line_dash_offset:[r.NumberSpec,0]},a.FillVector={fill_color:[r.ColorSpec,"gray"],fill_alpha:[r.NumberSpec,1]},a.ImageVector={global_alpha:[r.NumberSpec,1]},a.HatchVector={hatch_color:[r.ColorSpec,"black"],hatch_alpha:[r.NumberSpec,1],hatch_scale:[r.NumberSpec,12],hatch_pattern:[r.NullStringSpec,null],hatch_weight:[r.NumberSpec,1],hatch_extra:[r.DictScalar,{}]},a.TextVector={text_color:[r.ColorSpec,"#444444"],text_outline_color:[r.ColorSpec,null],text_alpha:[r.NumberSpec,1],text_font:[r.FontSpec,"helvetica"],text_font_size:[r.FontSizeSpec,"16px"],text_font_style:[r.FontStyleSpec,"normal"],text_align:[r.TextAlignSpec,"left"],text_baseline:[r.TextBaselineSpec,"bottom"],text_line_height:[r.NumberSpec,1.2]},a.attrs_of=function(l,e,a,t=!1){const o={};for(const c of(0,i.keys)(a)){const a=`${e}${c}`,r=l[a];o[(0,h.isString)(t)?`${t}${c}`:t?a:c]=r}return o}}, +function _(l,e,a,t,o){t(),a.attrs_of=function(l,e,a,t=!1){const o={};for(const c of(0,i.keys)(a)){const a=`${e}${c}`,r=l[a];o[(0,h.isString)(t)?`${t}${c}`:t?a:c]=r}return o};const c=l(1),r=c.__importStar(l(18)),n=l(20),_=c.__importStar(l(21)),i=l(9),h=l(8);a.Line={line_color:[_.Nullable(_.Color),"black"],line_alpha:[_.Alpha,1],line_width:[_.Float,1],line_join:[n.LineJoin,"bevel"],line_cap:[n.LineCap,"butt"],line_dash:[_.Or(n.LineDash,_.Array(_.Float)),[]],line_dash_offset:[_.Float,0]},a.Fill={fill_color:[_.Nullable(_.Color),"gray"],fill_alpha:[_.Alpha,1]},a.Image={global_alpha:[_.Alpha,1]},a.Hatch={hatch_color:[_.Nullable(_.Color),"black"],hatch_alpha:[_.Alpha,1],hatch_scale:[_.Float,12],hatch_pattern:[_.Nullable(_.Or(n.HatchPatternType,_.Str)),null],hatch_weight:[_.Float,1],hatch_extra:[_.Dict(_.AnyRef()),{}]},a.Text={text_color:[_.Nullable(_.Color),"#444444"],text_outline_color:[_.Nullable(_.Color),null],text_alpha:[_.Alpha,1],text_font:[r.Font,"helvetica"],text_font_size:[_.FontSize,"16px"],text_font_style:[n.FontStyle,"normal"],text_align:[n.TextAlign,"left"],text_baseline:[n.TextBaseline,"bottom"],text_line_height:[_.Float,1.2]},a.LineScalar={line_color:[r.ColorScalar,"black"],line_alpha:[r.NumberScalar,1],line_width:[r.NumberScalar,1],line_join:[r.LineJoinScalar,"bevel"],line_cap:[r.LineCapScalar,"butt"],line_dash:[r.LineDashScalar,[]],line_dash_offset:[r.NumberScalar,0]},a.FillScalar={fill_color:[r.ColorScalar,"gray"],fill_alpha:[r.NumberScalar,1]},a.ImageScalar={global_alpha:[r.NumberScalar,1]},a.HatchScalar={hatch_color:[r.ColorScalar,"black"],hatch_alpha:[r.NumberScalar,1],hatch_scale:[r.NumberScalar,12],hatch_pattern:[r.NullStringScalar,null],hatch_weight:[r.NumberScalar,1],hatch_extra:[r.DictScalar,{}]},a.TextScalar={text_color:[r.ColorScalar,"#444444"],text_outline_color:[r.ColorScalar,null],text_alpha:[r.NumberScalar,1],text_font:[r.FontScalar,"helvetica"],text_font_size:[r.FontSizeScalar,"16px"],text_font_style:[r.FontStyleScalar,"normal"],text_align:[r.TextAlignScalar,"left"],text_baseline:[r.TextBaselineScalar,"bottom"],text_line_height:[r.NumberScalar,1.2]},a.LineVector={line_color:[r.ColorSpec,"black"],line_alpha:[r.NumberSpec,1],line_width:[r.NumberSpec,1],line_join:[r.LineJoinSpec,"bevel"],line_cap:[r.LineCapSpec,"butt"],line_dash:[r.LineDashSpec,[]],line_dash_offset:[r.NumberSpec,0]},a.FillVector={fill_color:[r.ColorSpec,"gray"],fill_alpha:[r.NumberSpec,1]},a.ImageVector={global_alpha:[r.NumberSpec,1]},a.HatchVector={hatch_color:[r.ColorSpec,"black"],hatch_alpha:[r.NumberSpec,1],hatch_scale:[r.NumberSpec,12],hatch_pattern:[r.NullStringSpec,null],hatch_weight:[r.NumberSpec,1],hatch_extra:[r.DictScalar,{}]},a.TextVector={text_color:[r.ColorSpec,"#444444"],text_outline_color:[r.ColorSpec,null],text_alpha:[r.NumberSpec,1],text_font:[r.FontSpec,"helvetica"],text_font_size:[r.FontSizeSpec,"16px"],text_font_style:[r.FontStyleSpec,"normal"],text_align:[r.TextAlignSpec,"left"],text_baseline:[r.TextBaselineSpec,"bottom"],text_line_height:[r.NumberSpec,1.2]}}, function _(t,e,n,i,o){var s;i();const r=t(82);class l extends r.CompositeRendererView{get bbox(){return super.bbox??this.layout?.bbox}get_size(){if(this.displayed){const{width:t,height:e}=this._get_size();return{width:Math.round(t),height:Math.round(e)}}return{width:0,height:0}}_get_size(){throw new Error("not implemented")}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.visible,(()=>{null!=this.layout&&(this.layout.visible=this.model.visible,this.plot_view.request_layout())}))}get needs_clip(){return null==this.layout}}n.AnnotationView=l,l.__name__="AnnotationView";class h extends r.CompositeRenderer{constructor(t){super(t)}}n.Annotation=h,s=h,h.__name__="Annotation",s.override({level:"annotation"})}, -function _(e,t,s,r,i){var n;r();const _=e(83),d=e(111),o=e(125),l=e(8),a=e(56),h=e(21),m=(0,h.Or)((0,h.Ref)(d.UIElement),(0,h.Ref)(o.DOMNode));class u extends _.RendererView{constructor(){super(...arguments),this._renderer_views=new Map,this._element_views=new Map,this._computed_renderers=[],this._computed_elements=[],this._has_rendered_elements=!1}get renderer_views(){return this.model.renderers.map((e=>this._renderer_views.get(e)))}get element_views(){return this.model.elements.map((e=>this._element_views.get(e)))}*children(){yield*super.children(),yield*this.renderer_views,yield*this.element_views}async lazy_initialize(){await super.lazy_initialize(),await this._build_renderers(),await this._build_elements()}get computed_renderers(){return[...this.model.renderers,...this._computed_renderers]}get computed_renderer_views(){return this.computed_renderers.map((e=>this._renderer_views.get(e))).filter(l.non_null)}async _build_renderers(){return await(0,a.build_views)(this._renderer_views,this.computed_renderers,{parent:this.plot_view})}get computed_elements(){return[...this.model.elements,...this._computed_elements]}get computed_element_views(){return this.computed_elements.map((e=>this._element_views.get(e))).filter(l.non_null)}async _build_elements(){return await(0,a.build_views)(this._element_views,this.computed_elements,{parent:this.plot_view})}async _update_renderers(){await this._build_renderers()}async _update_elements(){const{created:e}=await this._build_elements(),t=new Set(e);for(const e of this.element_views)e.el.remove();for(const e of this.element_views){const s=t.has(e),r=e.rendering_target()??this.shadow_el;s?e.render_to(r):r.append(e.el)}this.r_after_render()}remove(){(0,a.remove_views)(this._renderer_views),(0,a.remove_views)(this._element_views),super.remove()}connect_signals(){super.connect_signals();const{renderers:e,elements:t}=this.model.properties;this.on_change(e,(async()=>{await this._update_renderers()})),this.on_change(t,(async()=>{await this._update_elements()}))}paint(){if(!this._has_rendered_elements){for(const e of this.element_views){const t=e.rendering_target()??this.shadow_el;e.render_to(t)}this._has_rendered_elements=!0}if(super.paint(),this.displayed&&this.is_renderable)for(const e of this.computed_renderer_views)e.paint();const{displayed:e}=this;for(const t of this.element_views)t.reposition(e)}has_finished(){if(!super.has_finished())return!1;for(const e of this.renderer_views)if(!e.has_finished())return!1;for(const e of this.element_views)if(!e.has_finished())return!1;return!0}}s.CompositeRendererView=u,u.__name__="CompositeRendererView";class c extends _.Renderer{constructor(e){super(e)}}s.CompositeRenderer=c,n=c,c.__name__="CompositeRenderer",n.define((({List:e,Ref:t})=>({renderers:[e(t(_.Renderer)),[]],elements:[e(m),[]]})))}, +function _(e,t,s,r,i){var n;r();const _=e(83),d=e(111),o=e(125),l=e(56),a=e(21),h=(0,a.Or)((0,a.Ref)(d.UIElement),(0,a.Ref)(o.DOMNode));class m extends _.RendererView{constructor(){super(...arguments),this._renderer_views=new Map,this._element_views=new Map,this._computed_renderers=[],this._computed_elements=[],this._has_rendered_elements=!1}get renderer_views(){return this.model.renderers.map((e=>this._renderer_views.get(e)))}get element_views(){return this.model.elements.map((e=>this._element_views.get(e)))}*children(){yield*super.children(),yield*this.renderer_views,yield*this.element_views}async lazy_initialize(){await super.lazy_initialize(),await this._build_renderers(),await this._build_elements()}get computed_renderers(){return[...this.model.renderers,...this._computed_renderers]}get computed_renderer_views(){return this.computed_renderers.map((e=>this._renderer_views.get(e))).filter((e=>null!=e))}async _build_renderers(){return await(0,l.build_views)(this._renderer_views,this.computed_renderers,{parent:this.plot_view})}get computed_elements(){return[...this.model.elements,...this._computed_elements]}get computed_element_views(){return this.computed_elements.map((e=>this._element_views.get(e))).filter((e=>null!=e))}async _build_elements(){return await(0,l.build_views)(this._element_views,this.computed_elements,{parent:this.plot_view})}async _update_renderers(){await this._build_renderers()}async _update_elements(){const{created:e}=await this._build_elements(),t=new Set(e);for(const e of this.element_views)e.el.remove();for(const e of this.element_views){const s=t.has(e),r=e.rendering_target()??this.shadow_el;s?e.render_to(r):r.append(e.el)}this.r_after_render()}remove(){(0,l.remove_views)(this._renderer_views),(0,l.remove_views)(this._element_views),super.remove()}connect_signals(){super.connect_signals();const{renderers:e,elements:t}=this.model.properties;this.on_change(e,(async()=>{await this._update_renderers()})),this.on_change(t,(async()=>{await this._update_elements()}))}paint(){if(!this._has_rendered_elements){for(const e of this.element_views){const t=e.rendering_target()??this.shadow_el;e.render_to(t)}this._has_rendered_elements=!0}if(super.paint(),this.displayed&&this.is_renderable)for(const e of this.computed_renderer_views)e.paint();const{displayed:e}=this;for(const t of this.element_views)t.reposition(e)}has_finished(){if(!super.has_finished())return!1;for(const e of this.renderer_views)if(!e.has_finished())return!1;for(const e of this.element_views)if(!e.has_finished())return!1;return!0}}s.CompositeRendererView=m,m.__name__="CompositeRendererView";class u extends _.Renderer{constructor(e){super(e)}}s.CompositeRenderer=u,n=u,u.__name__="CompositeRenderer",n.define((({List:e,Ref:t})=>({renderers:[e(t(_.Renderer)),[]],elements:[e(h),[]]})))}, function _(e,t,i,n,s){var r;n();const o=e(1),l=e(84),a=e(56),_=o.__importStar(e(87)),u=e(20),h=e(8),p=e(12),c=e(95),d=e(110),m=e(124),v=e(63);class g extends l.StyledElementView{constructor(){super(...arguments),this.position=new v.InlineStyleSheet,this._context_menu=null,this._custom_coordinates=null}rendering_target(){return this.plot_view.canvas_view.underlays_el}get context_menu(){return this._context_menu}get coordinates(){const{_coordinates:e}=this;return null!=e?e:this._coordinates=this._initialize_coordinates()}set coordinates(e){this._custom_coordinates=e}stylesheets(){return[...super.stylesheets(),this.position]}initialize(){super.initialize(),this.visuals=new _.Visuals(this)}async lazy_initialize(){await super.lazy_initialize();const{context_menu:e}=this.model;null!=e&&(this._context_menu=await(0,a.build_view)(e,{parent:this.plot_view}))}remove(){this._context_menu?.remove(),super.remove()}connect_signals(){super.connect_signals();const{group:e}=this.model;null!=e&&this.on_change(e.properties.visible,(()=>{this.model.visible=e.visible}));const{x_range_name:t,y_range_name:i}=this.model.properties;this.on_change([t,i],(()=>delete this._coordinates)),this.connect(this.plot_view.frame.model.change,(()=>delete this._coordinates))}_initialize_coordinates(){if(null!=this._custom_coordinates)return this._custom_coordinates;const{coordinates:e}=this.model,{frame:t}=this.plot_view;if(null!=e)return e.get_transform(t);{const{x_range_name:e,y_range_name:i}=this.model,n=t.x_scales.get(e),s=t.y_scales.get(i);return(0,p.assert)(null!=n,`missing '${e}' range`),(0,p.assert)(null!=s,`missing '${i}' range`),new c.CoordinateTransform(n,s)}}get plot_view(){return this.parent}get plot_model(){return this.parent.model}get layer(){const{overlays:e,primary:t}=this.canvas;return"overlay"==this.model.level?e:t}get canvas(){return this.plot_view.canvas_view}request_paint(){this.plot_view.request_paint(this)}request_layout(){this.plot_view.request_layout()}notify_finished(){this.plot_view.notify_finished()}notify_finished_after_paint(){this.plot_view.notify_finished_after_paint()}get needs_clip(){return!1}get has_webgl(){return!1}get displayed(){return this.model.visible}get is_renderable(){return!0}paint(){this.update_geometry(),this.compute_geometry(),this.update_position(),this.displayed&&this.is_renderable&&this._paint(),this.mark_finished()}renderer_view(e){}update_geometry(){}compute_geometry(){}update_position(){const{bbox:e,position:t}=this;null!=e&&e.is_valid?t.replace(`\n :host {\n position: absolute;\n left: ${e.left}px;\n top: ${e.top}px;\n width: ${e.width}px;\n height: ${e.height}px;\n }\n `):t.replace("\n :host {\n display: none;\n }\n ")}resolve_frame(){return this.plot_view.frame}resolve_canvas(){return this.plot_view.canvas}resolve_plot(){return this.plot_view}resolve_symbol(e){const{bbox:t}=this;if(null==t)return{x:NaN,y:NaN};{const i=t.resolve(e.symbol),{offset:n}=e;if((0,h.isNumber)(i))return i+n;{const{x:e,y:t}=i;return{x:e+n,y:t+n}}}}get attribution(){return null}}i.RendererView=g,g.__name__="RendererView";class y extends l.StyledElement{constructor(e){super(e)}}i.Renderer=y,r=y,y.__name__="Renderer",r.define((({Bool:e,Str:t,Ref:i,Nullable:n})=>({group:[n(i(m.RendererGroup)),null],level:[u.RenderLevel,"image"],visible:[e,!0],x_range_name:[t,"default"],y_range_name:[t,"default"],coordinates:[n(i(c.CoordinateMapping)),null],propagate_hover:[e,!1],context_menu:[n(i(d.Menu)),null]})))}, function _(e,s,t,l,i){var _;l();const n=e(51),y=e(59),a=e(85),c=e(86),r=e(57),h=e(65),o=e(63),d=e(9),S=e(8),p=e(21);t.StylesLike=(0,p.Or)((0,p.Dict)((0,p.Nullable)(p.Str)),(0,p.Ref)(a.Styles)),t.StyleSheets=(0,p.List)((0,p.Or)((0,p.Ref)(c.StyleSheet),p.Str,(0,p.Dict)(t.StylesLike))),t.CSSVariables=(0,p.Dict)((0,p.Ref)(y.Node));class u extends r.DOMComponentView{constructor(){super(...arguments),this.style=new o.InlineStyleSheet}connect_signals(){super.connect_signals();const{styles:e,css_classes:s,css_variables:t,stylesheets:l}=this.model.properties;this.on_change(e,(()=>this._update_styles())),this.on_change(s,(()=>this._update_css_classes())),this.on_transitive_change(t,(()=>this._update_css_variables())),this.on_change(l,(()=>this._update_stylesheets()))}render(){super.render(),this._apply_styles()}*_css_classes(){yield*super._css_classes(),yield*this.model.css_classes}*_css_variables(){yield*super._css_variables();for(const[e,s]of(0,d.entries)(this.model.css_variables)){const t=this.resolve_coordinate(s);(0,S.isNumber)(t)&&(yield[e,`${t}px`])}}*_stylesheets(){yield*super._stylesheets(),yield this.style,yield*this._computed_stylesheets()}*_computed_stylesheets(){for(const e of this.model.stylesheets)e instanceof c.StyleSheet?yield e.underlying():yield new o.InlineStyleSheet(e)}_apply_styles(){(0,h.apply_styles)(this.el.style,this.model.styles)}_update_styles(){this.el.removeAttribute("style"),this._apply_styles()}}t.StyledElementView=u,u.__name__="StyledElementView";class m extends n.Model{constructor(e){super(e)}}t.StyledElement=m,_=m,m.__name__="StyledElement",_.define((({List:e,Str:s})=>({css_classes:[e(s),[]],css_variables:[t.CSSVariables,{}],styles:[t.StylesLike,{}],stylesheets:[t.StyleSheets,[]]})))}, function _(l,n,u,_,e){var t;_();const o=l(51);class r extends o.Model{constructor(l){super(l)}}u.Styles=r,t=r,r.__name__="Styles",t.define((({Str:l,Nullable:n})=>({align_content:[n(l),null],align_items:[n(l),null],align_self:[n(l),null],alignment_baseline:[n(l),null],all:[n(l),null],animation:[n(l),null],animation_delay:[n(l),null],animation_direction:[n(l),null],animation_duration:[n(l),null],animation_fill_mode:[n(l),null],animation_iteration_count:[n(l),null],animation_name:[n(l),null],animation_play_state:[n(l),null],animation_timing_function:[n(l),null],aspect_ratio:[n(l),null],backface_visibility:[n(l),null],background:[n(l),null],background_attachment:[n(l),null],background_clip:[n(l),null],background_color:[n(l),null],background_image:[n(l),null],background_origin:[n(l),null],background_position:[n(l),null],background_position_x:[n(l),null],background_position_y:[n(l),null],background_repeat:[n(l),null],background_size:[n(l),null],baseline_shift:[n(l),null],block_size:[n(l),null],border:[n(l),null],border_block_end:[n(l),null],border_block_end_color:[n(l),null],border_block_end_style:[n(l),null],border_block_end_width:[n(l),null],border_block_start:[n(l),null],border_block_start_color:[n(l),null],border_block_start_style:[n(l),null],border_block_start_width:[n(l),null],border_bottom:[n(l),null],border_bottom_color:[n(l),null],border_bottom_left_radius:[n(l),null],border_bottom_right_radius:[n(l),null],border_bottom_style:[n(l),null],border_bottom_width:[n(l),null],border_collapse:[n(l),null],border_color:[n(l),null],border_image:[n(l),null],border_image_outset:[n(l),null],border_image_repeat:[n(l),null],border_image_slice:[n(l),null],border_image_source:[n(l),null],border_image_width:[n(l),null],border_inline_end:[n(l),null],border_inline_end_color:[n(l),null],border_inline_end_style:[n(l),null],border_inline_end_width:[n(l),null],border_inline_start:[n(l),null],border_inline_start_color:[n(l),null],border_inline_start_style:[n(l),null],border_inline_start_width:[n(l),null],border_left:[n(l),null],border_left_color:[n(l),null],border_left_style:[n(l),null],border_left_width:[n(l),null],border_radius:[n(l),null],border_right:[n(l),null],border_right_color:[n(l),null],border_right_style:[n(l),null],border_right_width:[n(l),null],border_spacing:[n(l),null],border_style:[n(l),null],border_top:[n(l),null],border_top_color:[n(l),null],border_top_left_radius:[n(l),null],border_top_right_radius:[n(l),null],border_top_style:[n(l),null],border_top_width:[n(l),null],border_width:[n(l),null],bottom:[n(l),null],box_shadow:[n(l),null],box_sizing:[n(l),null],break_after:[n(l),null],break_before:[n(l),null],break_inside:[n(l),null],caption_side:[n(l),null],caret_color:[n(l),null],clear:[n(l),null],clip:[n(l),null],clip_path:[n(l),null],clip_rule:[n(l),null],color:[n(l),null],color_interpolation:[n(l),null],color_interpolation_filters:[n(l),null],column_count:[n(l),null],column_fill:[n(l),null],column_gap:[n(l),null],column_rule:[n(l),null],column_rule_color:[n(l),null],column_rule_style:[n(l),null],column_rule_width:[n(l),null],column_span:[n(l),null],column_width:[n(l),null],columns:[n(l),null],content:[n(l),null],counter_increment:[n(l),null],counter_reset:[n(l),null],cursor:[n(l),null],direction:[n(l),null],display:[n(l),null],dominant_baseline:[n(l),null],empty_cells:[n(l),null],fill:[n(l),null],fill_opacity:[n(l),null],fill_rule:[n(l),null],filter:[n(l),null],flex:[n(l),null],flex_basis:[n(l),null],flex_direction:[n(l),null],flex_flow:[n(l),null],flex_grow:[n(l),null],flex_shrink:[n(l),null],flex_wrap:[n(l),null],float:[n(l),null],flood_color:[n(l),null],flood_opacity:[n(l),null],font:[n(l),null],font_family:[n(l),null],font_feature_settings:[n(l),null],font_kerning:[n(l),null],font_size:[n(l),null],font_size_adjust:[n(l),null],font_stretch:[n(l),null],font_style:[n(l),null],font_synthesis:[n(l),null],font_variant:[n(l),null],font_variant_caps:[n(l),null],font_variant_east_asian:[n(l),null],font_variant_ligatures:[n(l),null],font_variant_numeric:[n(l),null],font_variant_position:[n(l),null],font_weight:[n(l),null],gap:[n(l),null],glyph_orientation_vertical:[n(l),null],grid:[n(l),null],grid_area:[n(l),null],grid_auto_columns:[n(l),null],grid_auto_flow:[n(l),null],grid_auto_rows:[n(l),null],grid_column:[n(l),null],grid_column_end:[n(l),null],grid_column_gap:[n(l),null],grid_column_start:[n(l),null],grid_gap:[n(l),null],grid_row:[n(l),null],grid_row_end:[n(l),null],grid_row_gap:[n(l),null],grid_row_start:[n(l),null],grid_template:[n(l),null],grid_template_areas:[n(l),null],grid_template_columns:[n(l),null],grid_template_rows:[n(l),null],height:[n(l),null],hyphens:[n(l),null],image_orientation:[n(l),null],image_rendering:[n(l),null],inline_size:[n(l),null],justify_content:[n(l),null],justify_items:[n(l),null],justify_self:[n(l),null],left:[n(l),null],letter_spacing:[n(l),null],lighting_color:[n(l),null],line_break:[n(l),null],line_height:[n(l),null],list_style:[n(l),null],list_style_image:[n(l),null],list_style_position:[n(l),null],list_style_type:[n(l),null],margin:[n(l),null],margin_block_end:[n(l),null],margin_block_start:[n(l),null],margin_bottom:[n(l),null],margin_inline_end:[n(l),null],margin_inline_start:[n(l),null],margin_left:[n(l),null],margin_right:[n(l),null],margin_top:[n(l),null],marker:[n(l),null],marker_end:[n(l),null],marker_mid:[n(l),null],marker_start:[n(l),null],mask:[n(l),null],mask_composite:[n(l),null],mask_image:[n(l),null],mask_position:[n(l),null],mask_repeat:[n(l),null],mask_size:[n(l),null],mask_type:[n(l),null],max_block_size:[n(l),null],max_height:[n(l),null],max_inline_size:[n(l),null],max_width:[n(l),null],min_block_size:[n(l),null],min_height:[n(l),null],min_inline_size:[n(l),null],min_width:[n(l),null],object_fit:[n(l),null],object_position:[n(l),null],opacity:[n(l),null],order:[n(l),null],orphans:[n(l),null],outline:[n(l),null],outline_color:[n(l),null],outline_offset:[n(l),null],outline_style:[n(l),null],outline_width:[n(l),null],overflow:[n(l),null],overflow_anchor:[n(l),null],overflow_wrap:[n(l),null],overflow_x:[n(l),null],overflow_y:[n(l),null],overscroll_behavior:[n(l),null],overscroll_behavior_block:[n(l),null],overscroll_behavior_inline:[n(l),null],overscroll_behavior_x:[n(l),null],overscroll_behavior_y:[n(l),null],padding:[n(l),null],padding_block_end:[n(l),null],padding_block_start:[n(l),null],padding_bottom:[n(l),null],padding_inline_end:[n(l),null],padding_inline_start:[n(l),null],padding_left:[n(l),null],padding_right:[n(l),null],padding_top:[n(l),null],page_break_after:[n(l),null],page_break_before:[n(l),null],page_break_inside:[n(l),null],paint_order:[n(l),null],perspective:[n(l),null],perspective_origin:[n(l),null],place_content:[n(l),null],place_items:[n(l),null],place_self:[n(l),null],pointer_events:[n(l),null],position:[n(l),null],quotes:[n(l),null],resize:[n(l),null],right:[n(l),null],rotate:[n(l),null],row_gap:[n(l),null],ruby_align:[n(l),null],ruby_position:[n(l),null],scale:[n(l),null],scroll_behavior:[n(l),null],shape_rendering:[n(l),null],stop_color:[n(l),null],stop_opacity:[n(l),null],stroke:[n(l),null],stroke_dasharray:[n(l),null],stroke_dashoffset:[n(l),null],stroke_linecap:[n(l),null],stroke_linejoin:[n(l),null],stroke_miterlimit:[n(l),null],stroke_opacity:[n(l),null],stroke_width:[n(l),null],tab_size:[n(l),null],table_layout:[n(l),null],text_align:[n(l),null],text_align_last:[n(l),null],text_anchor:[n(l),null],text_combine_upright:[n(l),null],text_decoration:[n(l),null],text_decoration_color:[n(l),null],text_decoration_line:[n(l),null],text_decoration_style:[n(l),null],text_emphasis:[n(l),null],text_emphasis_color:[n(l),null],text_emphasis_position:[n(l),null],text_emphasis_style:[n(l),null],text_indent:[n(l),null],text_justify:[n(l),null],text_orientation:[n(l),null],text_overflow:[n(l),null],text_rendering:[n(l),null],text_shadow:[n(l),null],text_transform:[n(l),null],text_underline_position:[n(l),null],top:[n(l),null],touch_action:[n(l),null],transform:[n(l),null],transform_box:[n(l),null],transform_origin:[n(l),null],transform_style:[n(l),null],transition:[n(l),null],transition_delay:[n(l),null],transition_duration:[n(l),null],transition_property:[n(l),null],transition_timing_function:[n(l),null],translate:[n(l),null],unicode_bidi:[n(l),null],user_select:[n(l),null],vertical_align:[n(l),null],visibility:[n(l),null],white_space:[n(l),null],widows:[n(l),null],width:[n(l),null],will_change:[n(l),null],word_break:[n(l),null],word_spacing:[n(l),null],word_wrap:[n(l),null],writing_mode:[n(l),null],z_index:[n(l),null]})))}, function _(e,t,n,l,r){var s,i;l();const u=e(1),S=e(51),_=u.__importStar(e(63));class d extends S.Model{constructor(e){super(e)}}n.StyleSheet=d,d.__name__="StyleSheet";class h extends d{constructor(e){super(e)}underlying(){return new _.InlineStyleSheet(this.css)}}n.InlineStyleSheet=h,s=h,h.__name__="InlineStyleSheet",s.define((({Str:e})=>({css:[e]})));class o extends d{constructor(e){super(e)}underlying(){return new _.ImportedStyleSheet(this.url)}}n.ImportedStyleSheet=o,i=o,o.__name__="ImportedStyleSheet",i.define((({Str:e})=>({url:[e]})));class y extends h{constructor(e){super(e),this._underlying=null}underlying(){return null==this._underlying&&(this._underlying=new _.GlobalInlineStyleSheet(this.css)),this._underlying}}n.GlobalInlineStyleSheet=y,y.__name__="GlobalInlineStyleSheet";class c extends o{constructor(e){super(e),this._underlying=null}underlying(){return null==this._underlying&&(this._underlying=new _.GlobalImportedStyleSheet(this.url)),this._underlying}}n.GlobalImportedStyleSheet=c,c.__name__="GlobalImportedStyleSheet"}, function _(e,a,r,t,c){t();const n=e(1),l=e(88);c("Line",l.Line),c("LineScalar",l.LineScalar),c("LineVector",l.LineVector);const s=e(90);c("Fill",s.Fill),c("FillScalar",s.FillScalar),c("FillVector",s.FillVector);const i=e(91);c("Text",i.Text),c("TextScalar",i.TextScalar),c("TextVector",i.TextVector);const o=e(92);c("Hatch",o.Hatch),c("HatchScalar",o.HatchScalar),c("HatchVector",o.HatchVector);const u=e(94);c("Image",u.Image),c("ImageScalar",u.ImageScalar),c("ImageVector",u.ImageVector);const V=n.__importStar(e(80)),S=e(89);c("VisualProperties",S.VisualProperties),c("VisualUniforms",S.VisualUniforms);class m{*[Symbol.iterator](){yield*this._visuals}constructor(e){this._visuals=[];for(const[a,r]of e.model._mixins){const t=(()=>{switch(r){case V.Line:return new l.Line(e,a);case V.LineScalar:return new l.LineScalar(e,a);case V.LineVector:return new l.LineVector(e,a);case V.Fill:return new s.Fill(e,a);case V.FillScalar:return new s.FillScalar(e,a);case V.FillVector:return new s.FillVector(e,a);case V.Text:return new i.Text(e,a);case V.TextScalar:return new i.TextScalar(e,a);case V.TextVector:return new i.TextVector(e,a);case V.Hatch:return new o.Hatch(e,a);case V.HatchScalar:return new o.HatchScalar(e,a);case V.HatchVector:return new o.HatchVector(e,a);case V.Image:return new u.Image(e,a);case V.ImageScalar:return new u.ImageScalar(e,a);case V.ImageVector:return new u.ImageVector(e,a);default:throw new Error("unknown visual")}})();t instanceof S.VisualProperties&&t.update(),this._visuals.push(t),Object.defineProperty(this,a+t.type,{get:()=>t,configurable:!1,enumerable:!0})}}}r.Visuals=m,m.__name__="Visuals"}, -function _(e,t,i,s,l){s();const n=e(1),a=e(89),_=n.__importStar(e(80)),h=e(20),o=e(22),r=e(8);function c(e){if((0,r.isArray)(e))return e;switch(e){case"solid":return[];case"dashed":return[6];case"dotted":return[2,4];case"dotdash":return[2,4,6,4];case"dashdot":return[6,4,2,4];default:return e.split(" ").map(Number).filter(r.isInteger)}}i.resolve_line_dash=c;class u extends a.VisualProperties{get doit(){const e=this.get_line_color(),t=this.get_line_alpha(),i=this.get_line_width();return!(null==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.get_line_color(),alpha:this.get_line_alpha(),width:this.get_line_width(),join:this.get_line_join(),cap:this.get_line_cap(),dash:this.get_line_dash(),offset:this.get_line_dash_offset()}}set_value(e){const t=this.get_line_color(),i=this.get_line_alpha();e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.get_line_width(),e.lineJoin=this.get_line_join(),e.lineCap=this.get_line_cap(),e.setLineDash(c(this.get_line_dash())),e.lineDashOffset=this.get_line_dash_offset()}get_line_color(){const e=this._get_css_value("line-color");return""!=e?e:this.line_color.get_value()}get_line_alpha(){const e=this._get_css_value("line-alpha");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_alpha.get_value()}get_line_width(){const e=this._get_css_value("line-width");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_width.get_value()}get_line_join(){const e=this._get_css_value("line-join");return h.LineJoin.valid(e)?e:this.line_join.get_value()}get_line_cap(){const e=this._get_css_value("line-cap");return h.LineCap.valid(e)?e:this.line_cap.get_value()}get_line_dash(){const e=this._get_css_value("line-dash");return h.LineDash.valid(e)?e:this.line_dash.get_value()}get_line_dash_offset(){const e=this._get_css_value("line-dash-offset");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_dash_offset.get_value()}}i.Line=u,u.__name__="Line";class d extends a.VisualUniforms{get doit(){const e=this.line_color.value,t=this.line_alpha.value,i=this.line_width.value;return!(0==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.line_color.value,alpha:this.line_alpha.value,width:this.line_width.value,join:this.line_join.value,cap:this.line_cap.value,dash:this.line_dash.value,offset:this.line_dash_offset.value}}set_value(e){const t=this.line_color.value,i=this.line_alpha.value;e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.line_width.value,e.lineJoin=this.line_join.value,e.lineCap=this.line_cap.value,e.setLineDash(c(this.line_dash.value)),e.lineDashOffset=this.line_dash_offset.value}}i.LineScalar=d,d.__name__="LineScalar";class g extends a.VisualUniforms{get doit(){const{line_color:e}=this;if(e.is_Scalar()&&0==e.value)return!1;const{line_alpha:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{line_width:i}=this;return!i.is_Scalar()||0!=i.value}v_doit(e){return 0!=this.line_color.get(e)&&(0!=this.line_alpha.get(e)&&0!=this.line_width.get(e))}apply(e,t){const i=this.v_doit(t);return i&&(this.set_vectorize(e,t),e.stroke()),i}values(e){return{color:this.line_color.get(e),alpha:this.line_alpha.get(e),width:this.line_width.get(e),join:this.line_join.get(e),cap:this.line_cap.get(e),dash:this.line_dash.get(e),offset:this.line_dash_offset.get(e)}}set_vectorize(e,t){const i=this.line_color.get(t),s=this.line_alpha.get(t),l=this.line_width.get(t),n=this.line_join.get(t),a=this.line_cap.get(t),_=this.line_dash.get(t),h=this.line_dash_offset.get(t);e.strokeStyle=(0,o.color2css)(i,s),e.lineWidth=l,e.lineJoin=n,e.lineCap=a,e.setLineDash(c(_)),e.lineDashOffset=h}}i.LineVector=g,g.__name__="LineVector",u.prototype.type="line",u.prototype.attrs=Object.keys(_.Line),d.prototype.type="line",d.prototype.attrs=Object.keys(_.LineScalar),g.prototype.type="line",g.prototype.attrs=Object.keys(_.LineVector)}, +function _(e,t,i,s,l){s(),i.resolve_line_dash=c;const n=e(1),a=e(89),_=n.__importStar(e(80)),h=e(20),o=e(22),r=e(8);function c(e){if((0,r.isArray)(e))return e;switch(e){case"solid":return[];case"dashed":return[6];case"dotted":return[2,4];case"dotdash":return[2,4,6,4];case"dashdot":return[6,4,2,4];default:return e.split(" ").map(Number).filter(r.isInteger)}}class u extends a.VisualProperties{get doit(){const e=this.get_line_color(),t=this.get_line_alpha(),i=this.get_line_width();return!(null==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.get_line_color(),alpha:this.get_line_alpha(),width:this.get_line_width(),join:this.get_line_join(),cap:this.get_line_cap(),dash:this.get_line_dash(),offset:this.get_line_dash_offset()}}set_value(e){const t=this.get_line_color(),i=this.get_line_alpha();e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.get_line_width(),e.lineJoin=this.get_line_join(),e.lineCap=this.get_line_cap(),e.setLineDash(c(this.get_line_dash())),e.lineDashOffset=this.get_line_dash_offset()}get_line_color(){const e=this._get_css_value("line-color");return""!=e?e:this.line_color.get_value()}get_line_alpha(){const e=this._get_css_value("line-alpha");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_alpha.get_value()}get_line_width(){const e=this._get_css_value("line-width");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_width.get_value()}get_line_join(){const e=this._get_css_value("line-join");return h.LineJoin.valid(e)?e:this.line_join.get_value()}get_line_cap(){const e=this._get_css_value("line-cap");return h.LineCap.valid(e)?e:this.line_cap.get_value()}get_line_dash(){const e=this._get_css_value("line-dash");return h.LineDash.valid(e)?e:this.line_dash.get_value()}get_line_dash_offset(){const e=this._get_css_value("line-dash-offset");if(""!=e){const t=Number(e);if(isFinite(t))return t}return this.line_dash_offset.get_value()}}i.Line=u,u.__name__="Line";class d extends a.VisualUniforms{get doit(){const e=this.line_color.value,t=this.line_alpha.value,i=this.line_width.value;return!(0==e||0==t||0==i)}apply(e){const{doit:t}=this;return t&&(this.set_value(e),e.stroke()),t}values(){return{color:this.line_color.value,alpha:this.line_alpha.value,width:this.line_width.value,join:this.line_join.value,cap:this.line_cap.value,dash:this.line_dash.value,offset:this.line_dash_offset.value}}set_value(e){const t=this.line_color.value,i=this.line_alpha.value;e.strokeStyle=(0,o.color2css)(t,i),e.lineWidth=this.line_width.value,e.lineJoin=this.line_join.value,e.lineCap=this.line_cap.value,e.setLineDash(c(this.line_dash.value)),e.lineDashOffset=this.line_dash_offset.value}}i.LineScalar=d,d.__name__="LineScalar";class g extends a.VisualUniforms{get doit(){const{line_color:e}=this;if(e.is_Scalar()&&0==e.value)return!1;const{line_alpha:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{line_width:i}=this;return!i.is_Scalar()||0!=i.value}v_doit(e){return 0!=this.line_color.get(e)&&(0!=this.line_alpha.get(e)&&0!=this.line_width.get(e))}apply(e,t){const i=this.v_doit(t);return i&&(this.set_vectorize(e,t),e.stroke()),i}values(e){return{color:this.line_color.get(e),alpha:this.line_alpha.get(e),width:this.line_width.get(e),join:this.line_join.get(e),cap:this.line_cap.get(e),dash:this.line_dash.get(e),offset:this.line_dash_offset.get(e)}}set_vectorize(e,t){const i=this.line_color.get(t),s=this.line_alpha.get(t),l=this.line_width.get(t),n=this.line_join.get(t),a=this.line_cap.get(t),_=this.line_dash.get(t),h=this.line_dash_offset.get(t);e.strokeStyle=(0,o.color2css)(i,s),e.lineWidth=l,e.lineJoin=n,e.lineCap=a,e.setLineDash(c(_)),e.lineDashOffset=h}}i.LineVector=g,g.__name__="LineVector",u.prototype.type="line",u.prototype.attrs=Object.keys(_.Line),d.prototype.type="line",d.prototype.attrs=Object.keys(_.LineScalar),g.prototype.type="line",g.prototype.attrs=Object.keys(_.LineVector)}, function _(t,s,e,i,o){i();class r{*[Symbol.iterator](){yield*this._props}constructor(t,s=""){this.obj=t,this.prefix=s,this.css_prefix=`--bk-${s.replaceAll("_","-")}`;const e=this;this._props=[];for(const i of this.attrs){const o=t.model.properties[s+i];o.change.connect((()=>this.update())),e[i]=o,this._props.push(o)}}update(){}_get_css_value(t){return getComputedStyle(this.obj.el).getPropertyValue(`${this.css_prefix}${t}`)}}e.VisualProperties=r,r.__name__="VisualProperties";class p{*[Symbol.iterator](){for(const t of this.attrs)yield this.obj.model.properties[this.prefix+t]}constructor(t,s=""){this.obj=t,this.prefix=s;for(const e of this.attrs)Object.defineProperty(this,e,{get:()=>t[s+e]})}update(){}}e.VisualUniforms=p,p.__name__="VisualUniforms"}, function _(l,t,i,e,s){e();const o=l(1),a=l(89),r=o.__importStar(l(80)),_=l(22);class c extends a.VisualProperties{get doit(){const l=this.get_fill_color(),t=this.get_fill_alpha();return!(null==l||0==t)}apply(l,t){const{doit:i}=this;return i&&(this.set_value(l),l.fill(t)),i}values(){return{color:this.get_fill_color(),alpha:this.get_fill_alpha()}}set_value(l){const t=this.get_fill_color(),i=this.get_fill_alpha();l.fillStyle=(0,_.color2css)(t,i)}get_fill_color(){const l=this._get_css_value("fill-color");return""!=l?l:this.fill_color.get_value()}get_fill_alpha(){const l=this._get_css_value("fill-alpha");if(""!=l){const t=Number(l);if(isFinite(t))return t}return this.fill_alpha.get_value()}}i.Fill=c,c.__name__="Fill";class h extends a.VisualUniforms{get doit(){const l=this.fill_color.value,t=this.fill_alpha.value;return!(0==l||0==t)}apply(l,t){const{doit:i}=this;return i&&(this.set_value(l),l.fill(t)),i}values(){return{color:this.fill_color.value,alpha:this.fill_alpha.value}}set_value(l){const t=this.fill_color.value,i=this.fill_alpha.value;l.fillStyle=(0,_.color2css)(t,i)}}i.FillScalar=h,h.__name__="FillScalar";class f extends a.VisualUniforms{get doit(){const{fill_color:l}=this;if(l.is_Scalar()&&0==l.value)return!1;const{fill_alpha:t}=this;return!t.is_Scalar()||0!=t.value}v_doit(l){return 0!=this.fill_color.get(l)&&0!=this.fill_alpha.get(l)}apply(l,t,i){const e=this.v_doit(t);return e&&(this.set_vectorize(l,t),l.fill(i)),e}values(l){return{color:this.fill_color.get(l),alpha:this.fill_alpha.get(l)}}set_vectorize(l,t){const i=this.fill_color.get(t),e=this.fill_alpha.get(t);l.fillStyle=(0,_.color2css)(i,e)}}i.FillVector=f,f.__name__="FillVector",c.prototype.type="fill",c.prototype.attrs=Object.keys(r.Fill),h.prototype.type="fill",h.prototype.attrs=Object.keys(r.FillScalar),f.prototype.type="fill",f.prototype.attrs=Object.keys(r.FillVector)}, function _(t,e,s,_,i){_();const l=t(1),o=t(89),n=l.__importStar(t(80)),a=t(20),h=t(22),r=new Map;function x(t,e){const s=r.get(t);if(null==s){const s=new WeakSet([e]);r.set(t,s)}else{if(s.has(e))return;s.add(e)}const{fonts:_}=document;_.check(t)||_.load(t).then((()=>e.request_paint()))}class u extends o.VisualProperties{get doit(){const t=this.get_text_color(),e=this.get_text_alpha();return!(null==t||0==e)}update(){if(!this.doit)return;x(this.font_value(),this.obj)}values(){return{color:this.get_text_color(),outline_color:this.get_text_outline_color(),alpha:this.get_text_alpha(),font:this.get_text_font(),font_size:this.get_text_font_size(),font_style:this.get_text_font_style(),align:this.get_text_align(),baseline:this.get_text_baseline(),line_height:this.get_text_line_height()}}set_value(t){const e=this.get_text_color(),s=this.get_text_outline_color(),_=this.get_text_alpha();t.fillStyle=(0,h.color2css)(e,_),t.strokeStyle=(0,h.color2css)(s,_),t.font=this.font_value(),t.textAlign=this.get_text_align(),t.textBaseline=this.get_text_baseline()}font_value(){return`${this.get_text_font_style()} ${this.get_text_font_size()} ${this.get_text_font()}`}get_text_color(){const t=this._get_css_value("text-color");return""!=t?t:this.text_color.get_value()}get_text_outline_color(){const t=this._get_css_value("text-outline-color");return""!=t?t:this.text_outline_color.get_value()}get_text_alpha(){const t=this._get_css_value("text-alpha");if(""!=t){const e=Number(t);if(isFinite(e))return e}return this.text_alpha.get_value()}get_text_font(){const t=this._get_css_value("text-font");return""!=t?t:this.text_font.get_value()}get_text_font_size(){const t=this._get_css_value("text-font-size");return""!=t?t:this.text_font_size.get_value()}get_text_font_style(){const t=this._get_css_value("text-font-style");return a.FontStyle.valid(t)?t:this.text_font_style.get_value()}get_text_align(){const t=this._get_css_value("text-align");return a.TextAlign.valid(t)?t:this.text_align.get_value()}get_text_baseline(){const t=this._get_css_value("text-baseline");return a.TextBaseline.valid(t)?t:this.text_baseline.get_value()}get_text_line_height(){const t=this._get_css_value("line-height");if(""!=t){const e=Number(t);if(isFinite(e))return e}return this.text_line_height.get_value()}}s.Text=u,u.__name__="Text";class g extends o.VisualUniforms{get doit(){const t=this.text_color.value,e=this.text_alpha.value;return!(0==t||0==e)}update(){if(!this.doit)return;x(this.font_value(),this.obj)}values(){return{color:this.text_color.value,outline_color:this.text_outline_color.value,alpha:this.text_alpha.value,font:this.text_font.value,font_size:this.text_font_size.value,font_style:this.text_font_style.value,align:this.text_align.value,baseline:this.text_baseline.value,line_height:this.text_line_height.value}}set_value(t){const e=this.text_color.value,s=this.text_alpha.value,_=this.text_outline_color.value,i=this.font_value(),l=this.text_align.value,o=this.text_baseline.value;t.fillStyle=(0,h.color2css)(e,s),t.strokeStyle=(0,h.color2css)(_,s),t.font=i,t.textAlign=l,t.textBaseline=o}font_value(){return`${this.text_font_style.value} ${this.text_font_size.value} ${this.text_font.value}`}}s.TextScalar=g,g.__name__="TextScalar";class c extends o.VisualUniforms{_assert_font(t){x(this.font_value(t),this.obj)}values(t){return this._assert_font(t),{color:this.text_color.get(t),outline_color:this.text_outline_color.get(t),alpha:this.text_alpha.get(t),font:this.text_font.get(t),font_size:this.text_font_size.get(t),font_style:this.text_font_style.get(t),align:this.text_align.get(t),baseline:this.text_baseline.get(t),line_height:this.text_line_height.get(t)}}get doit(){const{text_color:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{text_alpha:e}=this;return!e.is_Scalar()||0!=e.value}v_doit(t){return 0!=this.text_color.get(t)&&0!=this.text_alpha.get(t)}apply(t,e){const s=this.v_doit(e);return s&&this.set_vectorize(t,e),s}set_vectorize(t,e){this._assert_font(e);const s=this.text_color.get(e),_=this.text_outline_color.get(e),i=this.text_alpha.get(e),l=this.font_value(e),o=this.text_align.get(e),n=this.text_baseline.get(e);t.fillStyle=(0,h.color2css)(s,i),t.strokeStyle=(0,h.color2css)(_,i),t.font=l,t.textAlign=o,t.textBaseline=n}font_value(t){return`${this.text_font_style.get(t)} ${this.text_font_size.get(t)} ${this.text_font.get(t)}`}}s.TextVector=c,c.__name__="TextVector",u.prototype.type="text",u.prototype.attrs=Object.keys(n.Text),g.prototype.type="text",g.prototype.attrs=Object.keys(n.TextScalar),c.prototype.type="text",c.prototype.attrs=Object.keys(n.TextVector)}, function _(t,e,a,h,i){h();const r=t(1),s=t(89),c=t(93),n=r.__importStar(t(18)),_=r.__importStar(t(80)),o=t(9);class l extends s.VisualProperties{constructor(){super(...arguments),this._update_iteration=0}update(){if(this._update_iteration++,this._hatch_image=null,!this.doit)return;const t=this.get_hatch_color(),e=this.get_hatch_alpha(),a=this.get_hatch_scale(),h=this.get_hatch_pattern(),i=this.get_hatch_weight(),r=t=>{this._hatch_image=t},s=(0,o.dict)(this.get_hatch_extra()).get(h);if(null!=s){const h=s.get_pattern(t,e,a,i);if(h instanceof Promise){const{_update_iteration:t}=this;h.then((e=>{this._update_iteration==t&&(r(e),this.obj.request_paint())}))}else r(h)}else{const s=this.obj.canvas.create_layer(),n=(0,c.get_pattern)(s,h,t,e,a,i);r(n)}}get doit(){const t=this.get_hatch_color(),e=this.get_hatch_alpha(),a=this.get_hatch_pattern();return!(null==t||0==e||" "==a||"blank"==a||null==a)}apply(t,e){const{doit:a}=this;return a&&(this.set_value(t),t.layer.undo_transform((()=>t.fill(e)))),a}set_value(t){const e=this.pattern(t);t.fillStyle=e??"transparent"}pattern(t){const e=this._hatch_image;return null==e?null:t.createPattern(e,this.repetition())}repetition(){const t=this.get_hatch_pattern(),e=(0,o.dict)(this.get_hatch_extra()).get(t);if(null==e)return"repeat";switch(e.repetition){case"repeat":return"repeat";case"repeat_x":return"repeat-x";case"repeat_y":return"repeat-y";case"no_repeat":return"no-repeat"}}get_hatch_color(){const t=this._get_css_value("hatch-color");return""!=t?t:this.hatch_color.get_value()}get_hatch_alpha(){const t=this._get_css_value("hatch-alpha");if(""!=t){const e=Number(t);if(isFinite(e))return e}return this.hatch_alpha.get_value()}get_hatch_scale(){const t=this._get_css_value("hatch-scale");if(""!=t){const e=Number(t);if(isFinite(e))return e}return this.hatch_scale.get_value()}get_hatch_pattern(){const t=this._get_css_value("hatch-pattern");return""!=t?"none"==t?null:t:this.hatch_pattern.get_value()}get_hatch_weight(){const t=this._get_css_value("hatch-weight");if(""!=t){const e=Number(t);if(isFinite(e))return e}return this.hatch_weight.get_value()}get_hatch_extra(){return this.hatch_extra.get_value()}}a.Hatch=l,l.__name__="Hatch";class u extends s.VisualUniforms{constructor(){super(...arguments),this._static_doit=!1,this._update_iteration=0}_compute_static_doit(){const t=this.hatch_color.value,e=this.hatch_alpha.value,a=this.hatch_pattern.value;return!(0==t||0==e||" "==a||"blank"==a||null==a)}update(){this._update_iteration++;const t=this.hatch_color.length;if(this._hatch_image=new n.UniformScalar(null,t),this._static_doit=this._compute_static_doit(),!this._static_doit)return;const e=this.hatch_color.value,a=this.hatch_alpha.value,h=this.hatch_scale.value,i=this.hatch_pattern.value,r=this.hatch_weight.value,s=e=>{this._hatch_image=new n.UniformScalar(e,t)},_=(0,o.dict)(this.hatch_extra.value).get(i);if(null!=_){const t=_.get_pattern(e,a,h,r);if(t instanceof Promise){const{_update_iteration:e}=this;t.then((t=>{this._update_iteration==e&&(s(t),this.obj.request_paint())}))}else s(t)}else{const t=this.obj.canvas.create_layer(),n=(0,c.get_pattern)(t,i,e,a,h,r);s(n)}}get doit(){return this._static_doit}apply(t,e){const{doit:a}=this;return a&&(this.set_value(t),t.layer.undo_transform((()=>t.fill(e)))),a}set_value(t){t.fillStyle=this.pattern(t)??"transparent"}pattern(t){const e=this._hatch_image.value;return null==e?null:t.createPattern(e,this.repetition())}repetition(){const t=this.hatch_pattern.value;if(null!=t){const e=(0,o.dict)(this.hatch_extra.value).get(t);if(null!=e)switch(e.repetition){case"repeat":return"repeat";case"repeat_x":return"repeat-x";case"repeat_y":return"repeat-y";case"no_repeat":return"no-repeat"}}return"repeat"}}a.HatchScalar=u,u.__name__="HatchScalar";class p extends s.VisualUniforms{constructor(){super(...arguments),this._static_doit=!1,this._update_iteration=0}_compute_static_doit(){const{hatch_color:t}=this;if(t.is_Scalar()&&0==t.value)return!1;const{hatch_alpha:e}=this;if(e.is_Scalar()&&0==e.value)return!1;const{hatch_pattern:a}=this;if(a.is_Scalar()){const t=a.value;if(" "==t||"blank"==t||null==t)return!1}return!0}update(){this._update_iteration++;const t=this.hatch_color.length;if(this._hatch_image=new n.UniformScalar(null,t),this._static_doit=this._compute_static_doit(),!this._static_doit)return;const e=(t,e,a,h,i,r)=>{const s=(0,o.dict)(this.hatch_extra.value).get(t);if(null!=s){const t=s.get_pattern(e,a,h,i);if(t instanceof Promise){const{_update_iteration:e}=this;t.then((t=>{this._update_iteration==e&&(r(t),this.obj.request_paint())}))}else r(t)}else{const s=this.obj.canvas.create_layer(),n=(0,c.get_pattern)(s,t,e,a,h,i);r(n)}};if(this.hatch_color.is_Scalar()&&this.hatch_alpha.is_Scalar()&&this.hatch_scale.is_Scalar()&&this.hatch_pattern.is_Scalar()&&this.hatch_weight.is_Scalar()){const a=this.hatch_color.value,h=this.hatch_alpha.value,i=this.hatch_scale.value;e(this.hatch_pattern.value,a,h,i,this.hatch_weight.value,(e=>{this._hatch_image=new n.UniformScalar(e,t)}))}else{const a=new Array(t);a.fill(null),this._hatch_image=new n.UniformVector(a);for(let h=0;h{a[h]=t}))}}}get doit(){return this._static_doit}v_doit(t){if(!this.doit)return!1;if(0==this.hatch_color.get(t))return!1;if(0==this.hatch_alpha.get(t))return!1;const e=this.hatch_pattern.get(t);return" "!=e&&"blank"!=e&&null!=e}apply(t,e,a){const h=this.v_doit(e);return h&&(this.set_vectorize(t,e),t.layer.undo_transform((()=>t.fill(a)))),h}set_vectorize(t,e){t.fillStyle=this.pattern(t,e)??"transparent"}pattern(t,e){const a=this._hatch_image.get(e);return null==a?null:t.createPattern(a,this.repetition(e))}repetition(t){const e=this.hatch_pattern.get(t);if(null!=e){const t=(0,o.dict)(this.hatch_extra.value).get(e);if(null!=t)switch(t.repetition){case"repeat":return"repeat";case"repeat_x":return"repeat-x";case"repeat_y":return"repeat-y";case"no_repeat":return"no-repeat"}}return"repeat"}}a.HatchVector=p,p.__name__="HatchVector",l.prototype.type="hatch",l.prototype.attrs=Object.keys(_.Hatch),u.prototype.type="hatch",u.prototype.attrs=Object.keys(_.HatchScalar),p.prototype.type="hatch",p.prototype.attrs=Object.keys(_.HatchVector)}, -function _(e,o,a,r,s){r();const i=e(19),n=e(22);function l(e,o,a){e.moveTo(0,a+.5),e.lineTo(o,a+.5),e.stroke()}function t(e,o,a){e.moveTo(a+.5,0),e.lineTo(a+.5,o),e.stroke()}function c(e,o){e.moveTo(0,o),e.lineTo(o,0),e.stroke(),e.moveTo(0,0),e.lineTo(o,o),e.stroke()}a.hatch_aliases={" ":"blank",".":"dot",o:"ring","-":"horizontal_line","|":"vertical_line","+":"cross",'"':"horizontal_dash",":":"vertical_dash","@":"spiral","/":"right_diagonal_line","\\":"left_diagonal_line",x:"diagonal_cross",",":"right_diagonal_dash","`":"left_diagonal_dash",v:"horizontal_wave",">":"vertical_wave","*":"criss_cross"},a.get_pattern=function(e,o,r,s,k,_){return e.resize(k,k),e.prepare(),function(e,o,r,s,k,_){const T=k,h=T/2,v=h/2,d=(0,n.color2css)(r,s);switch(e.strokeStyle=d,e.fillStyle=d,e.lineCap="square",e.lineWidth=_,a.hatch_aliases[o]??o){case"blank":break;case"dot":e.arc(h,h,h/2,0,2*Math.PI,!0),e.fill();break;case"ring":e.arc(h,h,h/2,0,2*Math.PI,!0),e.stroke();break;case"horizontal_line":l(e,T,h);break;case"vertical_line":t(e,T,h);break;case"cross":l(e,T,h),t(e,T,h);break;case"horizontal_dash":l(e,h,h);break;case"vertical_dash":t(e,h,h);break;case"spiral":{const o=T/30;e.moveTo(h,h);for(let a=0;a<360;a++){const r=.1*a,s=h+o*r*Math.cos(r),i=h+o*r*Math.sin(r);e.lineTo(s,i)}e.stroke();break}case"right_diagonal_line":e.moveTo(.5-v,T),e.lineTo(v+.5,0),e.stroke(),e.moveTo(v+.5,T),e.lineTo(3*v+.5,0),e.stroke(),e.moveTo(3*v+.5,T),e.lineTo(5*v+.5,0),e.stroke();break;case"left_diagonal_line":e.moveTo(v+.5,T),e.lineTo(.5-v,0),e.stroke(),e.moveTo(3*v+.5,T),e.lineTo(v+.5,0),e.stroke(),e.moveTo(5*v+.5,T),e.lineTo(3*v+.5,0),e.stroke();break;case"diagonal_cross":c(e,T);break;case"right_diagonal_dash":e.moveTo(v+.5,3*v+.5),e.lineTo(3*v+.5,v+.5),e.stroke();break;case"left_diagonal_dash":e.moveTo(v+.5,v+.5),e.lineTo(3*v+.5,3*v+.5),e.stroke();break;case"horizontal_wave":e.moveTo(0,v),e.lineTo(h,3*v),e.lineTo(T,v),e.stroke();break;case"vertical_wave":e.moveTo(v,0),e.lineTo(3*v,h),e.lineTo(v,T),e.stroke();break;case"criss_cross":c(e,T),l(e,T,h),t(e,T,h);break;default:i.logger.warn(`unknown hatch pattern: ${o}`)}}(e.ctx,o,r,s,k,_),e.canvas}}, +function _(e,o,a,r,s){r(),a.get_pattern=function(e,o,r,s,k,_){return e.resize(k,k),e.prepare(),function(e,o,r,s,k,_){const T=k,h=T/2,v=h/2,d=(0,n.color2css)(r,s);switch(e.strokeStyle=d,e.fillStyle=d,e.lineCap="square",e.lineWidth=_,a.hatch_aliases[o]??o){case"blank":break;case"dot":e.arc(h,h,h/2,0,2*Math.PI,!0),e.fill();break;case"ring":e.arc(h,h,h/2,0,2*Math.PI,!0),e.stroke();break;case"horizontal_line":l(e,T,h);break;case"vertical_line":t(e,T,h);break;case"cross":l(e,T,h),t(e,T,h);break;case"horizontal_dash":l(e,h,h);break;case"vertical_dash":t(e,h,h);break;case"spiral":{const o=T/30;e.moveTo(h,h);for(let a=0;a<360;a++){const r=.1*a,s=h+o*r*Math.cos(r),i=h+o*r*Math.sin(r);e.lineTo(s,i)}e.stroke();break}case"right_diagonal_line":e.moveTo(.5-v,T),e.lineTo(v+.5,0),e.stroke(),e.moveTo(v+.5,T),e.lineTo(3*v+.5,0),e.stroke(),e.moveTo(3*v+.5,T),e.lineTo(5*v+.5,0),e.stroke();break;case"left_diagonal_line":e.moveTo(v+.5,T),e.lineTo(.5-v,0),e.stroke(),e.moveTo(3*v+.5,T),e.lineTo(v+.5,0),e.stroke(),e.moveTo(5*v+.5,T),e.lineTo(3*v+.5,0),e.stroke();break;case"diagonal_cross":c(e,T);break;case"right_diagonal_dash":e.moveTo(v+.5,3*v+.5),e.lineTo(3*v+.5,v+.5),e.stroke();break;case"left_diagonal_dash":e.moveTo(v+.5,v+.5),e.lineTo(3*v+.5,3*v+.5),e.stroke();break;case"horizontal_wave":e.moveTo(0,v),e.lineTo(h,3*v),e.lineTo(T,v),e.stroke();break;case"vertical_wave":e.moveTo(v,0),e.lineTo(3*v,h),e.lineTo(v,T),e.stroke();break;case"criss_cross":c(e,T),l(e,T,h),t(e,T,h);break;default:i.logger.warn(`unknown hatch pattern: ${o}`)}}(e.ctx,o,r,s,k,_),e.canvas};const i=e(19),n=e(22);function l(e,o,a){e.moveTo(0,a+.5),e.lineTo(o,a+.5),e.stroke()}function t(e,o,a){e.moveTo(a+.5,0),e.lineTo(a+.5,o),e.stroke()}function c(e,o){e.moveTo(0,o),e.lineTo(o,0),e.stroke(),e.moveTo(0,0),e.lineTo(o,o),e.stroke()}a.hatch_aliases={" ":"blank",".":"dot",o:"ring","-":"horizontal_line","|":"vertical_line","+":"cross",'"':"horizontal_dash",":":"vertical_dash","@":"spiral","/":"right_diagonal_line","\\":"left_diagonal_line",x:"diagonal_cross",",":"right_diagonal_dash","`":"left_diagonal_dash",v:"horizontal_wave",">":"vertical_wave","*":"criss_cross"}}, function _(a,t,e,l,s){l();const o=a(1),r=a(89),p=o.__importStar(a(80));class _ extends r.VisualProperties{get doit(){return!(0==this.global_alpha.get_value())}apply(a){const{doit:t}=this;return t&&this.set_value(a),t}values(){return{global_alpha:this.global_alpha.get_value()}}set_value(a){const t=this.global_alpha.get_value();a.globalAlpha=t}}e.Image=_,_.__name__="Image";class i extends r.VisualUniforms{get doit(){return!(0==this.global_alpha.value)}apply(a){const{doit:t}=this;return t&&this.set_value(a),t}values(){return{global_alpha:this.global_alpha.value}}set_value(a){const t=this.global_alpha.value;a.globalAlpha=t}}e.ImageScalar=i,i.__name__="ImageScalar";class g extends r.VisualUniforms{get doit(){const{global_alpha:a}=this;return!a.is_Scalar()||0!=a.value}v_doit(a){return 0!=this.global_alpha.get(a)}apply(a,t){const e=this.v_doit(t);return e&&this.set_vectorize(a,t),e}values(a){return{alpha:this.global_alpha.get(a)}}set_vectorize(a,t){const e=this.global_alpha.get(t);a.globalAlpha=e}}e.ImageVector=g,g.__name__="ImageVector",_.prototype.type="image",_.prototype.attrs=Object.keys(p.Image),i.prototype.type="image",i.prototype.attrs=Object.keys(p.ImageScalar),g.prototype.type="image",g.prototype.attrs=Object.keys(p.ImageVector)}, function _(e,a,s,t,r){var c;t();const n=e(51),_=e(96),o=e(101),i=e(103),g=e(104),l=e(105),u=e(98),h=e(106),y=e(109);class x{constructor(e,a){this.x_scale=e,this.y_scale=a,this.x_source=this.x_scale.source_range,this.y_source=this.y_scale.source_range,this.ranges=[this.x_source,this.y_source],this.scales=[this.x_scale,this.y_scale]}map_to_screen(e,a){return[this.x_scale.v_compute(e),this.y_scale.v_compute(a)]}map_from_screen(e,a){return[this.x_scale.v_invert(e),this.y_scale.v_invert(a)]}}s.CoordinateTransform=x,x.__name__="CoordinateTransform";class p extends n.Model{constructor(e){super(e)}get x_ranges(){return new Map([["default",this.x_source]])}get y_ranges(){return new Map([["default",this.y_source]])}_get_scale(e,a,s){if(e instanceof y.FactorRange!=a instanceof g.CategoricalScale)throw new Error(`Range ${e.type} is incompatible is Scale ${a.type}`);a instanceof i.LogScale&&e instanceof h.DataRange1d&&(e.scale_hint="log");const t=a.clone();return t.setv({source_range:e,target_range:s}),t}get_transform(e){const{x_source:a,x_scale:s,x_target:t}=this,r=this._get_scale(a,s,t),{y_source:c,y_scale:n,y_target:_}=this,o=this._get_scale(c,n,_),i=new l.CompositeScale({source_scale:r,source_range:r.source_range,target_scale:e.x_scale,target_range:e.x_target}),g=new l.CompositeScale({source_scale:o,source_range:o.source_range,target_scale:e.y_scale,target_range:e.y_target});return new x(i,g)}}s.CoordinateMapping=p,c=p,p.__name__="CoordinateMapping",c.define((({Ref:e})=>({x_source:[e(u.Range),()=>new h.DataRange1d],y_source:[e(u.Range),()=>new h.DataRange1d],x_scale:[e(_.Scale),()=>new o.LinearScale],y_scale:[e(_.Scale),()=>new o.LinearScale],x_target:[e(u.Range)],y_target:[e(u.Range)]})))}, function _(e,t,r,n,s){var _;n();const a=e(97),c=e(98),o=e(99),i=e(24);class u extends a.Transform{constructor(e){super(e)}compute(e){return this.s_compute(e)}v_compute(e){const t=new i.ScreenArray(e.length),{s_compute:r}=this;for(let n=0;n({source_range:[e(c.Range)],target_range:[e(o.Range1d)]})))}, function _(n,s,o,r,c){r();const e=n(51);class t extends e.Model{constructor(n){super(n)}}o.Transform=t,t.__name__="Transform"}, -function _(t,e,n,l,s){var a;l();const u=t(51),i=t(21),r=t(34),o=(0,i.Nullable)((0,i.Or)((0,i.Tuple)((0,i.Nullable)(i.Float),(0,i.Nullable)(i.Float)),i.Auto));class d extends u.Model{constructor(t){super(t),this.have_updated_interactively=!1,this.frames=new Set}get computed_bounds(){return this._computed_bounds}get is_reversed(){return this.start>this.end}get is_valid(){return isFinite(this.min)&&isFinite(this.max)}get span(){return Math.abs(this.end-this.start)}get linked_plots(){return new Set((0,r.map)(this.frames,(t=>t.parent)))}}n.Range=d,a=d,d.__name__="Range",a.define((({Float:t,Nullable:e})=>({bounds:[o,null,{on_update(t,e){const[n,l]="auto"==t||null==t?[null,null]:t;e._computed_bounds=[n??-1/0,l??1/0]}}],min_interval:[e(t),null],max_interval:[e(t),null]})))}, +function _(t,e,n,l,s){var a;l();const i=t(51),u=t(21),r=t(34),o=(0,u.Nullable)((0,u.Or)((0,u.Tuple)((0,u.Nullable)(u.Float),(0,u.Nullable)(u.Float)),u.Auto));class d extends i.Model{constructor(t){super(t),this.have_updated_interactively=!1,this.frames=new Set}get computed_bounds(){return this._computed_bounds}get is_reversed(){return this.start>this.end}get is_valid(){return isFinite(this.min)&&isFinite(this.max)}get interval(){return[this.start,this.end]}get span(){return Math.abs(this.end-this.start)}get linked_plots(){return new Set((0,r.map)(this.frames,(t=>t.parent)))}}n.Range=d,a=d,d.__name__="Range",a.define((({Float:t,Nullable:e})=>({bounds:[o,null,{on_update(t,e){const[n,l]="auto"==t||null==t?[null,null]:t;e._computed_bounds=[n??-1/0,l??1/0]}}],min_interval:[e(t),null],max_interval:[e(t),null]})))}, function _(t,e,s,n,r){var a;n();const i=t(100);class _ extends i.NumericalRange{constructor(t){super(t)}_set_auto_bounds(){if("auto"==this.bounds){const t=Math.min(this._reset_start,this._reset_end),e=Math.max(this._reset_start,this._reset_end);this._computed_bounds=[t,e]}}initialize(){super.initialize(),this._set_auto_bounds()}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}reset(){this._set_auto_bounds();const{_reset_start:t,_reset_end:e}=this;this.start!=t||this.end!=e?this.setv({start:t,end:e}):this.change.emit()}map(t){return new a({start:t(this.start),end:t(this.end)})}widen(t){let{start:e,end:s}=this;return this.is_reversed?(e+=t,s-=t):(e-=t,s+=t),new a({start:e,end:s})}}s.Range1d=_,a=_,_.__name__="Range1d",a.define((({Float:t,Nullable:e})=>({reset_start:[e(t),null,{on_update(t,e){e._reset_start=t??e.start}}],reset_end:[e(t),null,{on_update(t,e){e._reset_end=t??e.end}}]}))),a.override({start:0,end:1})}, function _(n,e,t,c,r){var o;c();const a=n(1),s=n(98),u=a.__importStar(n(18)),_=n(11);class m extends s.Range{constructor(n){super(n)}}t.NumericalRange=m,o=m,m.__name__="NumericalRange",o.define((({Float:n})=>({start:[n,u.unset,{convert(n,e){const[t,c]=e.computed_bounds;return(0,_.clamp)(n,t,c)}}],end:[n,u.unset,{convert(n,e){const[t,c]=e.computed_bounds;return(0,_.clamp)(n,t,c)}}]})))}, function _(t,e,n,r,s){r();const a=t(102);class _ extends a.ContinuousScale{constructor(t){super(t)}get s_compute(){const[t,e]=this._linear_compute_state();return n=>t*n+e}get s_invert(){const[t,e]=this._linear_compute_state();return n=>(n-e)/t}_linear_compute_state(){const t=this.source_range.start,e=this.source_range.end,n=this.target_range.start,r=(this.target_range.end-n)/(e-t);return[r,-r*t+n]}}n.LinearScale=_,_.__name__="LinearScale"}, @@ -269,15 +269,15 @@ function _(n,c,o,s,e){s();const t=n(96);class u extends t.Scale{constructor(n){s function _(t,e,s,a,r){a();const o=t(102);class n extends o.ContinuousScale{constructor(t){super(t)}get s_compute(){const[t,e,s,a]=this._compute_state();return r=>{if(0==s)return 0;{const o=(Math.log(r)-a)/s;return isFinite(o)?o*t+e:NaN}}}get s_invert(){const[t,e,s,a]=this._compute_state();return r=>{const o=(r-e)/t;return Math.exp(s*o+a)}}_get_safe_factor(t,e){let s=t<0?0:t,a=e<0?0:e;if(s==a)if(0==s)[s,a]=[1,10];else{const t=Math.log10(s);s=10**Math.floor(t),a=Math.ceil(t)!=Math.floor(t)?10**Math.ceil(t):10**(Math.ceil(t)+1)}return[s,a]}_compute_state(){const t=this.source_range.start,e=this.source_range.end,s=this.target_range.start,a=this.target_range.end-s,[r,o]=this._get_safe_factor(t,e);let n,c;0==r?(n=Math.log(o),c=0):(n=Math.log(o/r),c=Math.log(r));return[a,s,n,c]}}s.LogScale=n,n.__name__="LogScale"}, function _(t,e,c,a,s){a();const n=t(96),r=t(101),{_linear_compute_state:o}=r.LinearScale.prototype;class l extends n.Scale{constructor(t){super(t)}get s_compute(){const[t,e]=o.call(this),c=this.source_range;return a=>t*c.synthetic(a)+e}get s_invert(){const[t,e]=o.call(this);return c=>(c-e)/t}}c.CategoricalScale=l,l.__name__="CategoricalScale"}, function _(e,t,s,c,r){var n;c();const _=e(96),o=e(13);class a extends _.Scale{constructor(e){super(e)}get s_compute(){const e=this.source_scale.s_compute,t=this.target_scale.s_compute;return s=>t(e(s))}get s_invert(){const e=this.source_scale.s_invert,t=this.target_scale.s_invert;return s=>e(t(s))}compute(e){return this.s_compute(e)}v_compute(e){const{s_compute:t}=this;return(0,o.map)(e,t)}invert(e){return this.s_invert(e)}v_invert(e){const{s_invert:t}=this;return(0,o.map)(e,t)}}s.CompositeScale=a,n=a,a.__name__="CompositeScale",n.define((({Ref:e})=>({source_scale:[e(_.Scale)],target_scale:[e(_.Scale)]})))}, -function _(t,i,n,a,e){var s;a();const l=t(1),_=t(107),o=t(20),r=t(34),d=t(11),h=t(19),u=l.__importStar(t(64)),g=t(108);n.auto_ranged=Symbol("auto_ranged"),n.is_auto_ranged=function(t){return n.auto_ranged in t};class p extends _.DataRange{constructor(t){super(t),this.have_updated_interactively=!1}initialize(){super.initialize(),this._initial_start=isNaN(this.start)?null:this.start,this._initial_end=isNaN(this.end)?null:this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span,this._plot_bounds=new Map}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const{renderers:t}=this,i=(0,r.flat_map)(this.linked_plots,(t=>t.auto_ranged_renderers.map((t=>t.model))));return(0,g.compute_renderers)(0==t.length?"auto":t,[...i])}_compute_plot_bounds(t,i){let n=u.empty();for(const a of t){const t=i.get(a);null==t||!a.visible&&this.only_visible||(n=u.union(n,t))}return n}adjust_bounds_for_aspect(t,i){const n=u.empty();let a=t.x1-t.x0;a<=0&&(a=1);let e=t.y1-t.y0;e<=0&&(e=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return ao&&("start"==this.follow?l=s+_*o:"end"==this.follow&&(s=l-_*o)),[s,l]}update(t,i,n,a){if(this.have_updated_interactively)return;const e=this.computed_renderers();let s=this._compute_plot_bounds(e,t);null!=a&&(s=this.adjust_bounds_for_aspect(s,a)),this._plot_bounds.set(n,s);const[l,_]=this._compute_min_max(this._plot_bounds.entries(),i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);let d=!1;"auto"==this.bounds&&(this._computed_bounds=[o,r],d=!0);const[h,u]=[this.start,this.end];if(o!=h||r!=u){const t={};o!=h&&(t.start=o),r!=u&&(t.end=r),this.setv(t),d=!1}d&&this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=p,s=p,p.__name__="DataRange1d",s.define((({Bool:t,Float:i,Nullable:n})=>({range_padding:[i,.1],range_padding_units:[o.PaddingUnits,"percent"],flipped:[t,!1],follow:[n(o.StartEnd),null],follow_interval:[n(i),null],default_span:[i,2],only_visible:[t,!1]}))),s.internal((({Enum:t})=>({scale_hint:[t("log","auto"),"auto"]})))}, +function _(t,i,n,a,e){var s;a(),n.is_auto_ranged=function(t){return n.auto_ranged in t};const l=t(1),_=t(107),o=t(20),r=t(34),d=t(11),h=t(19),u=l.__importStar(t(64)),g=t(108);n.auto_ranged=Symbol("auto_ranged");class p extends _.DataRange{constructor(t){super(t),this.have_updated_interactively=!1}initialize(){super.initialize(),this._initial_start=isNaN(this.start)?null:this.start,this._initial_end=isNaN(this.end)?null:this.end,this._initial_range_padding=this.range_padding,this._initial_range_padding_units=this.range_padding_units,this._initial_follow=this.follow,this._initial_follow_interval=this.follow_interval,this._initial_default_span=this.default_span,this._plot_bounds=new Map}get min(){return Math.min(this.start,this.end)}get max(){return Math.max(this.start,this.end)}computed_renderers(){const{renderers:t}=this,i=(0,r.flat_map)(this.linked_plots,(t=>t.auto_ranged_renderers.map((t=>t.model))));return(0,g.compute_renderers)(0==t.length?"auto":t,[...i])}_compute_plot_bounds(t,i){let n=u.empty();for(const a of t){const t=i.get(a);null==t||!a.visible&&this.only_visible||(n=u.union(n,t))}return n}adjust_bounds_for_aspect(t,i){const n=u.empty();let a=t.x1-t.x0;a<=0&&(a=1);let e=t.y1-t.y0;e<=0&&(e=1);const s=.5*(t.x1+t.x0),l=.5*(t.y1+t.y0);return ao&&("start"==this.follow?l=s+_*o:"end"==this.follow&&(s=l-_*o)),[s,l]}update(t,i,n,a){if(this.have_updated_interactively)return;const e=this.computed_renderers();let s=this._compute_plot_bounds(e,t);null!=a&&(s=this.adjust_bounds_for_aspect(s,a)),this._plot_bounds.set(n,s);const[l,_]=this._compute_min_max(this._plot_bounds.entries(),i);let[o,r]=this._compute_range(l,_);null!=this._initial_start&&("log"==this.scale_hint?this._initial_start>0&&(o=this._initial_start):o=this._initial_start),null!=this._initial_end&&("log"==this.scale_hint?this._initial_end>0&&(r=this._initial_end):r=this._initial_end);let d=!1;"auto"==this.bounds&&(this._computed_bounds=[o,r],d=!0);const[h,u]=[this.start,this.end];if(o!=h||r!=u){const t={};o!=h&&(t.start=o),r!=u&&(t.end=r),this.setv(t),d=!1}d&&this.change.emit()}reset(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()}}n.DataRange1d=p,s=p,p.__name__="DataRange1d",s.define((({Bool:t,Float:i,Nullable:n})=>({range_padding:[i,.1],range_padding_units:[o.PaddingUnits,"percent"],flipped:[t,!1],follow:[n(o.StartEnd),null],follow_interval:[n(i),null],default_span:[i,2],only_visible:[t,!1]}))),s.internal((({Enum:t})=>({scale_hint:[t("log","auto"),"auto"]})))}, function _(e,a,n,r,t){var s;r();const c=e(100);class o extends c.NumericalRange{constructor(e){super(e)}}n.DataRange=o,s=o,o.__name__="DataRange",s.define((({List:e,AnyRef:a,Or:n,Auto:r})=>({renderers:[n(e(a()),r),[]]}))),s.override({start:NaN,end:NaN})}, function _(n,e,r,t,u){t(),r.compute_renderers=function(n,e){return"auto"==n?e:n??[]}}, -function _(t,n,e,s,i){var r;s();const a=t(1),o=t(98),p=t(20),c=a.__importStar(t(18)),g=t(21),l=t(24),h=t(15),u=t(10),d=t(8),_=t(12);function f(t,n,e=0){const s=new Map;for(let i=0;ip.get(t).value)));i.set(t,{value:g/r,mapping:p}),a+=r+n+c}return[i,(r.size-1)*n+o]}function v(t,n,e,s,i=0){const r=new Map,a=new Map;for(const[n,e,s]of t){const t=a.get(n)??[];a.set(n,[...t,[e,s]])}let o=i,p=0;for(const[t,i]of a){const a=i.length,[c,g]=m(i,e,s,o);p+=g;const l=(0,u.sum)(i.map((([t])=>c.get(t).value)));r.set(t,{value:l/a,mapping:c}),o+=a+n+g}return[r,(a.size-1)*n+p]}e.Factor=(0,g.Or)(g.Str,(0,g.Tuple)(g.Str,g.Str),(0,g.Tuple)(g.Str,g.Str,g.Str)),e.FactorSeq=(0,g.Or)((0,g.List)(g.Str),(0,g.List)((0,g.Tuple)(g.Str,g.Str)),(0,g.List)((0,g.Tuple)(g.Str,g.Str,g.Str))),e.map_one_level=f,e.map_two_levels=m,e.map_three_levels=v;class S extends o.Range{constructor(t){super(t),this.invalidate_synthetic=new h.Signal0(this,"invalidate_synthetic")}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this._init()}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,(()=>this.reset())),this.connect(this.properties.factor_padding.change,(()=>this.reset())),this.connect(this.properties.group_padding.change,(()=>this.reset())),this.connect(this.properties.subgroup_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding_units.change,(()=>this.reset()))}reset(){this._init(),this.invalidate_synthetic.emit()}_lookup(t){switch(t.length){case 1:{const[n]=t,e=this._mapping.get(n);return null!=e?e.value:NaN}case 2:{const[n,e]=t,s=this._mapping.get(n);if(null!=s){const t=s.mapping.get(e);if(null!=t)return t.value}return NaN}case 3:{const[n,e,s]=t,i=this._mapping.get(n);if(null!=i){const t=i.mapping.get(e);if(null!=t){const n=t.mapping.get(s);if(null!=n)return n.value}}return NaN}}}synthetic(t){if((0,d.isNumber)(t))return t;if((0,d.isString)(t))return this._lookup([t]);let n=0;const e=t[t.length-1];return(0,d.isNumber)(e)&&(n=e,t=t.slice(0,-1)),this._lookup(t)+n}v_synthetic(t){const n=t.length,e=new l.ScreenArray(n);for(let s=0;s{if((0,u.every)(this.factors,d.isString)){const t=this.factors,[n,e]=f(t,this.factor_padding);return{levels:1,mapping:n,tops:null,mids:null,inside_padding:e}}if((0,u.every)(this.factors,(t=>(0,d.isArray)(t)&&2==t.length&&(0,d.isString)(t[0])&&(0,d.isString)(t[1])))){const t=this.factors,[n,e]=m(t,this.group_padding,this.factor_padding),s=[...n.keys()];return{levels:2,mapping:n,tops:s,mids:null,inside_padding:e}}if((0,u.every)(this.factors,(t=>(0,d.isArray)(t)&&3==t.length&&(0,d.isString)(t[0])&&(0,d.isString)(t[1])&&(0,d.isString)(t[2])))){const t=this.factors,[n,e]=v(t,this.group_padding,this.subgroup_padding,this.factor_padding),s=[...n.keys()],i=[];for(const[t,e]of n)for(const n of e.mapping.keys())i.push([t,n]);return{levels:3,mapping:n,tops:s,mids:i,inside_padding:e}}(0,_.unreachable)()})();this._mapping=n,this.tops=e,this.mids=s;let r=0,a=this.factors.length+i;if("percent"==this.range_padding_units){const t=(a-r)*this.range_padding/2;r-=t,a+=t}else r-=this.range_padding,a+=this.range_padding;this.setv({start:r,end:a,levels:t},{silent:!0}),"auto"==this.bounds&&(this._computed_bounds=[r,a])}}e.FactorRange=S,r=S,S.__name__="FactorRange",r.define((({Float:t})=>({factors:[e.FactorSeq,[]],factor_padding:[t,0],subgroup_padding:[t,.8],group_padding:[t,1.4],range_padding:[t,0],range_padding_units:[p.PaddingUnits,"percent"],start:[t,c.unset,{readonly:!0}],end:[t,c.unset,{readonly:!0}]}))),r.internal((({Float:t,Str:n,List:e,Tuple:s,Nullable:i})=>({levels:[t],mids:[i(e(s(n,n))),null],tops:[i(e(n)),null]})))}, -function _(e,t,s,i,n){var o;i();const l=e(1),d=e(111),r=e(117),h=e(118),a=e(120),c=e(121),_=e(63),u=e(20),m=e(56),v=e(10),p=e(8),w=e(50),f=l.__importStar(e(122)),y=f,b=l.__importDefault(e(123));class k extends d.UIElementView{constructor(){super(...arguments),this._menu_views=new Map,this._open=!1,this._item_click=e=>{if(!e.disabled){const{action:t}=e;null!=t&&(0,w.execute)(t,this.model,{item:e}),this.hide()}},this._on_mousedown=e=>{e.composedPath().includes(this.el)||this.prevent_hide?.(e)||this.hide()},this._on_keydown=e=>{"Escape"==e.key&&this.hide()},this._on_blur=()=>{this.hide()}}*children(){yield*super.children(),yield*this._menu_views.values()}async lazy_initialize(){await super.lazy_initialize();const e=this.model.items.map((e=>e instanceof h.ActionItem?e.menu:null)).filter(p.isNotNull);await(0,m.build_views)(this._menu_views,e,{parent:this})}get is_open(){return this._open}remove(){this._unlisten(),(0,m.remove_views)(this._menu_views),super.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}stylesheets(){return[...super.stylesheets(),f.default,b.default]}render(){super.render();const e=(()=>{const{reversed:e,items:t}=this.model;return e?(0,v.reversed)(t):t})();for(const t of e)if(t instanceof c.DividerItem){const e=(0,_.div)({class:y.divider});this.shadow_el.append(e)}else if(t instanceof h.ActionItem){const e=(0,_.div)({class:y.check}),s=(0,_.div)({class:y.icon}),i=(0,_.div)({class:y.label},t.label),n=(0,_.div)({class:y.shortcut},t.shortcut),o=(0,_.div)({class:y.chevron}),{icon:l}=t;if(null!=l)if(l.startsWith("data:image")){const e=`url("${encodeURI(l)}")`;s.style.backgroundImage=e}else if(l.startsWith("--"))s.style.backgroundImage=`var(${l})`;else if(l.startsWith(".")){const e=l.substring(1);s.classList.add(e)}else if(u.ToolIcon.valid(l)){const e=`bk-tool-icon-${l.replace(/_/g,"-")}`;s.classList.add(e)}const d=(0,_.div)({class:y.item,title:t.tooltip,tabIndex:0},e,s,i,n,o);d.classList.toggle(y.menu,null!=t.menu),d.classList.toggle(y.disabled,t.disabled),t instanceof a.CheckableItem&&(d.classList.add(y.checkable),d.classList.toggle(y.checked,t.checked)),d.addEventListener("click",(()=>{this._item_click(t)})),d.addEventListener("keydown",(e=>{"Enter"==e.key&&this._item_click(t)}));const{menu:r}=t;null!=r&&(d.addEventListener("pointerenter",(()=>{this._menu_views.get(r)._show_submenu(d)})),d.addEventListener("pointerleave",(()=>{this._menu_views.get(r).hide()}))),this.shadow_el.append(d)}}_show_submenu(e){if(0==this.model.items.length)return void this.hide();this.render(),e.append(this.el);const{style:t}=this.el;t.left="100%",t.top="0",this._listen(),this._open=!0}show(e){if(0==this.model.items.length)return void this.hide();const{parent:t}=this;if(null==t)return void this.hide();this.render();(t.el.shadowRoot??t.el).append(this.el);const{style:s}=this.el;s.left=(0,_.px)(e.x),s.top=(0,_.px)(e.y),this._listen(),this._open=!0}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}}s.MenuView=k,k.__name__="MenuView";class g extends d.UIElement{constructor(e){super(e)}}s.Menu=g,o=g,g.__name__="Menu",o.prototype.default_view=k,o.define((({Bool:e,List:t,Ref:s})=>({items:[t(s(r.MenuItem)),[]],reversed:[e,!1]})))}, +function _(t,n,e,r,s){var i;r(),e.map_one_level=_,e.map_two_levels=m,e.map_three_levels=f;const a=t(1),o=t(98),p=t(20),c=t(21),g=a.__importStar(t(18)),u=t(15),l=t(24),h=t(10),d=t(8);function _(t,n,e=0){const r=new Map;for(let s=0;sp.mapping.get(t).value)));s.set(t,{value:c/i,mapping:p.mapping}),a+=i+n+p.inner_padding}const p=(i.size-1)*n+o;return{mapping:s,tops:[...s.keys()],inner_padding:p}}function f(t,n,e,r,s=0){const i=new Map,a=new Map;for(const[n,e,r]of t){const t=a.get(n)??[];a.set(n,[...t,[e,r]])}let o=s,p=0;for(const[t,s]of a){const a=s.length,c=m(s,e,r,o);p+=c.inner_padding;const g=(0,h.sum)(s.map((([t])=>c.mapping.get(t).value)));i.set(t,{value:g/a,mapping:c.mapping}),o+=a+n+c.inner_padding}const c=[];for(const[t,n]of i)for(const e of n.mapping.keys())c.push([t,e]);const g=(a.size-1)*n+p;return{mapping:i,tops:[...i.keys()],mids:c,inner_padding:g}}e.Factor=(0,c.Or)(c.Str,(0,c.Tuple)(c.Str,c.Str),(0,c.Tuple)(c.Str,c.Str,c.Str)),e.FactorSeq=(0,c.Or)((0,c.List)(c.Str),(0,c.List)((0,c.Tuple)(c.Str,c.Str)),(0,c.List)((0,c.Tuple)(c.Str,c.Str,c.Str)));const v=t=>(0,d.isString)(t),S=t=>(0,d.isArray)(t)&&2==t.length&&(0,d.isString)(t[0])&&(0,d.isString)(t[1]),y=t=>(0,d.isArray)(t)&&3==t.length&&(0,d.isString)(t[0])&&(0,d.isString)(t[1])&&(0,d.isString)(t[2]);class w{constructor({levels:t,mapping:n,tops:e=null,mids:r=null,inner_padding:s}){this.levels=t,this.mapping=n,this.tops=e,this.mids=r,this.inner_padding=s}static compute_levels(t){if((0,h.every)(t,v))return 1;if((0,h.every)(t,S))return 2;if((0,h.every)(t,y))return 3;throw TypeError("factor levels are inconsistent")}static for(t){switch(this.compute_levels(t.factors)){case 1:return new F(t);case 2:return new b(t);case 3:return new M(t)}}map(t){if((0,d.isNumber)(t))return t;const[n,e]=(()=>{if((0,d.isString)(t))return[[t],0];const n=t[t.length-1];return(0,d.isNumber)(n)?[t.slice(0,-1),n]:[t,0]})();if(n.length>this.levels)throw new Error(`Attempted to map ${n.length} levels of factors with an L${this.levels}FactorMap`);return this.lookup_value(n)+e}lookup_value(t){return this.lookup_entry(t)?.value??NaN}}e.FactorMapper=w,w.__name__="FactorMapper";class F extends w{constructor(t){const{factors:n,factor_padding:e}=t;super({levels:1,..._(n,e)})}lookup_entry(t){const[n]=t;return this.mapping.get(n)??null}}F.__name__="L1FactorMapper";class b extends w{constructor(t){const{factors:n,group_padding:e,factor_padding:r}=t;super({levels:2,...m(n,e,r)})}lookup_entry(t){if(1==t.length){const[n]=t;return this.mapping.get(n)??null}{const[n,e]=t;return this.mapping.get(n)?.mapping.get(e)??null}}}b.__name__="L2FactorMapper";class M extends w{constructor(t){const{factors:n,group_padding:e,subgroup_padding:r,factor_padding:s}=t;super({levels:3,...f(n,e,r,s)})}lookup_entry(t){if(1==t.length){const[n]=t;return this.mapping.get(n)??null}if(2==t.length){const[n,e]=t;return this.mapping.get(n)?.mapping.get(e)??null}{const[n,e,r]=t;return this.mapping.get(n)?.mapping.get(e)?.mapping.get(r)??null}}}M.__name__="L3FactorMapper";class k extends o.Range{constructor(t){super(t),this.invalidate_synthetic=new u.Signal0(this,"invalidate_synthetic")}get min(){return this.start}get max(){return this.end}initialize(){super.initialize(),this.configure()}connect_signals(){super.connect_signals(),this.connect(this.properties.factors.change,(()=>this.reset())),this.connect(this.properties.factor_padding.change,(()=>this.reset())),this.connect(this.properties.group_padding.change,(()=>this.reset())),this.connect(this.properties.subgroup_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding.change,(()=>this.reset())),this.connect(this.properties.range_padding_units.change,(()=>this.reset()))}reset(){this.configure(),this.invalidate_synthetic.emit()}synthetic(t){return this.mapper.map(t)}v_synthetic(t){return l.ScreenArray.from(t,(t=>this.synthetic(t)))}factor(t){for(const n of this.factors){const e=this.mapper.map(n);if(t>=e-.5&&t{switch(this.range_padding_units){case"percent":return n*this.range_padding/2;case"absolute":return this.range_padding}})();return[-e,n+e]}configure(){this.mapper=w.for(this);const[t,n]=this.compute_bounds(this.mapper.inner_padding);this.setv({start:t,end:n},{silent:!0}),"auto"==this.bounds&&(this._computed_bounds=[t,n])}}e.FactorRange=k,i=k,k.__name__="FactorRange",i.define((({Float:t})=>({factors:[e.FactorSeq,[]],factor_padding:[t,0],subgroup_padding:[t,.8],group_padding:[t,1.4],range_padding:[t,0],range_padding_units:[p.PaddingUnits,"percent"],start:[t,g.unset,{readonly:!0}],end:[t,g.unset,{readonly:!0}]})))}, +function _(e,t,s,i,n){var o;i();const l=e(1),d=e(111),r=e(117),h=e(118),a=e(120),c=e(121),_=e(63),u=e(20),m=e(56),v=e(10),p=e(50),w=l.__importStar(e(122)),f=w,y=l.__importDefault(e(123));class b extends d.UIElementView{constructor(){super(...arguments),this._menu_views=new Map,this._open=!1,this._item_click=e=>{if(!e.disabled){const{action:t}=e;null!=t&&(0,p.execute)(t,this.model,{item:e}),this.hide()}},this._on_mousedown=e=>{e.composedPath().includes(this.el)||this.prevent_hide?.(e)||this.hide()},this._on_keydown=e=>{"Escape"==e.key&&this.hide()},this._on_blur=()=>{this.hide()}}*children(){yield*super.children(),yield*this._menu_views.values()}async lazy_initialize(){await super.lazy_initialize();const e=this.model.items.map((e=>e instanceof h.ActionItem?e.menu:null)).filter((e=>null!=e));await(0,m.build_views)(this._menu_views,e,{parent:this})}get is_open(){return this._open}remove(){this._unlisten(),(0,m.remove_views)(this._menu_views),super.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}stylesheets(){return[...super.stylesheets(),w.default,y.default]}render(){super.render();const e=(()=>{const{reversed:e,items:t}=this.model;return e?(0,v.reversed)(t):t})();for(const t of e)if(t instanceof c.DividerItem){const e=(0,_.div)({class:f.divider});this.shadow_el.append(e)}else if(t instanceof h.ActionItem){const e=(0,_.div)({class:f.check}),s=(0,_.div)({class:f.icon}),i=(0,_.div)({class:f.label},t.label),n=(0,_.div)({class:f.shortcut},t.shortcut),o=(0,_.div)({class:f.chevron}),{icon:l}=t;if(null!=l)if(l.startsWith("data:image")){const e=`url("${encodeURI(l)}")`;s.style.backgroundImage=e}else if(l.startsWith("--"))s.style.backgroundImage=`var(${l})`;else if(l.startsWith(".")){const e=l.substring(1);s.classList.add(e)}else if(u.ToolIcon.valid(l)){const e=`bk-tool-icon-${l.replace(/_/g,"-")}`;s.classList.add(e)}const d=(0,_.div)({class:f.item,title:t.tooltip,tabIndex:0},e,s,i,n,o);d.classList.toggle(f.menu,null!=t.menu),d.classList.toggle(f.disabled,t.disabled),t instanceof a.CheckableItem&&(d.classList.add(f.checkable),d.classList.toggle(f.checked,t.checked)),d.addEventListener("click",(()=>{this._item_click(t)})),d.addEventListener("keydown",(e=>{"Enter"==e.key&&this._item_click(t)}));const{menu:r}=t;null!=r&&(d.addEventListener("pointerenter",(()=>{this._menu_views.get(r)._show_submenu(d)})),d.addEventListener("pointerleave",(()=>{this._menu_views.get(r).hide()}))),this.shadow_el.append(d)}}_show_submenu(e){if(0==this.model.items.length)return void this.hide();this.render(),e.append(this.el);const{style:t}=this.el;t.left="100%",t.top="0",this._listen(),this._open=!0}show(e){if(0==this.model.items.length)return void this.hide();const{parent:t}=this;if(null==t)return void this.hide();this.render();(t.el.shadowRoot??t.el).append(this.el);const{style:s}=this.el;s.left=(0,_.px)(e.x),s.top=(0,_.px)(e.y),this._listen(),this._open=!0}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}}s.MenuView=b,b.__name__="MenuView";class k extends d.UIElement{constructor(e){super(e)}}s.Menu=k,o=k,k.__name__="Menu",o.prototype.default_view=b,o.define((({Bool:e,List:t,Ref:s})=>({items:[t(s(r.MenuItem)),[]],reversed:[e,!1]})))}, function _(e,t,i,s,n){var r;s();const l=e(1),o=e(84),_=e(56),h=e(63),a=e(112),u=e(64),d=e(8),p=e(16),c=l.__importDefault(e(116)),{round:b,floor:y}=Math;class x extends o.StyledElementView{constructor(){super(...arguments),this._display=new h.InlineStyleSheet,this._bbox=new u.BBox,this._context_menu=null,this._resized=!1,this._is_displayed=!1}*_stylesheets(){yield*super._stylesheets(),yield this._display}stylesheets(){return[...super.stylesheets(),c.default]}update_style(){this.style.clear()}box_sizing(){return{width_policy:"auto",height_policy:"auto",width:null,height:null,aspect_ratio:null}}get bbox(){return this._bbox}update_bbox(){return this._update_bbox()}_update_bbox(){const e=(()=>{if(this.el.isConnected){if(null!=this.el.offsetParent)return!0;{const{position:e,display:t}=getComputedStyle(this.el);return"fixed"==e&&"none"!=t}}return!1})(),t=e?(()=>{const e=this.el.getBoundingClientRect(),{left:t,top:i}=(()=>{if(null!=this.parent){const t=this.parent.el.getBoundingClientRect();return{left:e.left-t.left,top:e.top-t.top}}return{left:0,top:0}})();return new u.BBox({left:b(t),top:b(i),width:y(e.width),height:y(e.height)})})():new u.BBox,i=!this._bbox.equals(t);return this._bbox=t,this._is_displayed=e,i}initialize(){super.initialize(),this._resize_observer=new ResizeObserver((e=>this.after_resize())),this._resize_observer.observe(this.el,{box:"border-box"})}async lazy_initialize(){await super.lazy_initialize();const{context_menu:e}=this.model;null!=e&&(this._context_menu=await(0,_.build_view)(e,{parent:this}))}connect_signals(){super.connect_signals();const{visible:e}=this.model.properties;this.on_change(e,(()=>this._update_visible())),this.el.addEventListener("contextmenu",(e=>this.show_context_menu(e)))}get_context_menu(e){return this._context_menu}show_context_menu(e){if(!e.shiftKey){const t=this.el.getBoundingClientRect(),i=e.x-t.x,s=e.y-t.y,n=this.get_context_menu({x:i,y:s});null!=n&&(e.stopPropagation(),e.preventDefault(),n.show({x:i,y:s}))}}remove(){this._resize_observer.disconnect(),this._context_menu?.remove(),super.remove()}_after_resize(){}after_resize(){this._resized=!0,this.update_bbox()&&this._after_resize(),this.finish()}render(){super.render(),this._apply_visible()}_after_render(){this.update_style(),this.update_bbox()}after_render(){super.after_render(),this._after_render(),this._has_finished||(this.is_displayed?(0,p.defer)().then((()=>{this._resized||this.finish()})):this.force_finished())}get is_displayed(){return this._is_displayed}_apply_visible(){this.model.visible?this._display.clear():this._display.replace(":host { display: none !important; }")}_update_visible(){this._apply_visible()}export(e="auto",t=!0){const i="auto"==e||"png"==e?"canvas":"svg",s=new a.CanvasLayer(i,t),{width:n,height:r}=this.bbox;return s.resize(n,r),s}resolve_symbol(e){const t=this.bbox.resolve(e.symbol),{offset:i}=e;if((0,d.isNumber)(t))return t+i;{const{x:e,y:s}=t;return{x:e+i,y:s+i}}}}i.UIElementView=x,x.__name__="UIElementView";class f extends o.StyledElement{constructor(e){super(e)}}i.UIElement=f,r=f,f.__name__="UIElement",r.define((({Bool:e,AnyRef:t,Nullable:i})=>({visible:[e,!0],context_menu:[i(t()),null]})))}, function _(t,e,s,i,a){i();const n=t(113),r=t(64),h=t(63);class o{get canvas(){return this._canvas}get ctx(){return this._ctx}get el(){return this._el}constructor(t,e){switch(this.pixel_ratio=1,this.bbox=new r.BBox,this.backend=t,this.hidpi=e,t){case"webgl":case"canvas":{this._el=this._canvas=(0,h.canvas)({class:"bk-layer"});const t=this.canvas.getContext("2d");if(null==t)throw new Error("unable to obtain 2D rendering context");this._ctx=t,e&&(this.pixel_ratio=devicePixelRatio);break}case"svg":{const t=new n.SVGRenderingContext2D;this._ctx=t,this._canvas=t.get_svg(),this._el=(0,h.div)({class:"bk-layer"});this._el.attachShadow({mode:"open"}).appendChild(this._canvas);break}}this._ctx.layer=this}resize(t,e){if(this.bbox.width==t&&this.bbox.height==e)return;this.bbox=new r.BBox({left:0,top:0,width:t,height:e});const{target:s}=this;s.width=t*this.pixel_ratio,s.height=e*this.pixel_ratio}get target(){return this._ctx instanceof n.SVGRenderingContext2D?this._ctx:this.canvas}undo_transform(t){const{ctx:e}=this,s=e.getTransform();e.resetTransform();try{t(e)}finally{e.setTransform(s)}}prepare(){const{ctx:t,hidpi:e,pixel_ratio:s}=this;t.save(),e&&(t.scale(s,s),t.translate(.5,.5)),this.clear()}clear(){const{x:t,y:e,width:s,height:i}=this.bbox;this.ctx.clearRect(t,e,s,i)}finish(){this.ctx.restore()}to_blob(){const{_canvas:t}=this;if(t instanceof HTMLCanvasElement)return new Promise(((e,s)=>{t.toBlob((t=>null!=t?e(t):s()),"image/png")}));{const t=this._ctx.get_serialized_svg(!0),e=new Blob([t],{type:"image/svg+xml"});return Promise.resolve(e)}}}s.CanvasLayer=o,o.__name__="CanvasLayer"}, -function _(t,e,i,s,r){s();const n=t(114),a=t(8),o=t(9),l=t(115),h=t(11),_=t(63);function c(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t in e?e[t]:e.start}function p(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t in e?e[t]:e.alphabetic}const u=function(t,e){const i=new Map,s=t.split(",");e=e??10;for(let t=0;t=0?Math.acos(e):-Math.acos(e)}const A=v(g),w=v(b);this.lineTo(m+g[0]*r,f+g[1]*r),this.arc(m,f,r,A,w)}stroke(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke"),null!=this._clip_path&&this.__currentElement.setAttribute("clip-path",this._clip_path)}fill(t,e){let i=null;if(t instanceof Path2D)i=t;else{if(null!=e)throw new Error("invalid arguments");e=t}if(null!=i)throw new Error("not implemented");"none"!=this.__currentElement.getAttribute("fill")&&this.__init_element(),"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill"),null!=e&&this.__currentElement.setAttribute("fill-rule",e),null!=this._clip_path&&this.__currentElement.setAttribute("clip-path",this._clip_path)}rect(t,e,i,s){isFinite(t+e+i+s)&&(this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+s),this.lineTo(t,e+s),this.lineTo(t,e),this.closePath())}fillRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.fill())}strokeRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.stroke())}__clearCanvas(){(0,_.empty)(this.__defs),(0,_.empty)(this.__root),this.__root.appendChild(this.__defs),this.__currentElement=this.__root}clearRect(t,e,i,s){if(!isFinite(t+e+i+s))return;if(0===t&&0===e&&i===this.width&&s===this.height)return void this.__clearCanvas();const r=this.__createElement("rect",{x:t,y:e,width:i,height:s,fill:"#FFFFFF"},!0);this._apply_transform(r),this.__root.appendChild(r)}roundRect(t,e,i,s,r){throw new Error("not implemented")}createLinearGradient(t,e,i,s){if(!isFinite(t+e+i+s))throw new Error("The provided double value is non-finite");const[r,n]=this._transform.apply(t,e),[a,o]=this._transform.apply(i,s),l=this.__createElement("linearGradient",{id:this._random_string(),x1:`${r}px`,x2:`${a}px`,y1:`${n}px`,y2:`${o}px`,gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(l),new f(l,this)}createRadialGradient(t,e,i,s,r,n){if(!isFinite(t+e+i+s+r+n))throw new Error("The provided double value is non-finite");const[a,o]=this._transform.apply(t,e),[l,h]=this._transform.apply(s,r),_=this.__createElement("radialGradient",{id:this._random_string(),cx:`${l}px`,cy:`${h}px`,r:`${n}px`,r0:`${i}px`,fx:`${a}px`,fy:`${o}px`,gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(_),new f(_,this)}createConicGradient(t,e,i){throw Error("not implemented")}__parseFont(){const[,t,e,i,s,,r]=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-z0-9]+?)\s*$/i.exec(this.font);return{style:t??"normal",size:s??"10px",family:r??"sans-serif",weight:i??"normal",decoration:e??"normal"}}__applyText(t,e,i,s){const r=this.__parseFont(),n=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:i,"text-anchor":c(this.textAlign),"dominant-baseline":p(this.textBaseline)},!0);n.appendChild(this.__document.createTextNode(t)),this._apply_transform(n),this.__currentElement=n,this.__applyStyleToCurrentElement(s);const a=(()=>{if(null!=this._clip_path){const t=this.__createElement("g");return t.setAttribute("clip-path",this._clip_path),t.appendChild(n),t}return n})();this.__root.appendChild(a)}fillText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,"fill")}strokeText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,i,s,r,n=!1){this.ellipse(t,e,i,i,0,s,r,n)}ellipse(t,e,i,s,r,a,o,l=!1){if(!isFinite(t+e+i+s+r+a+o))return;if(i<0||s<0)throw new DOMException("IndexSizeError, radius can't be negative");const _=l?o-a:a-o;a%=2*Math.PI,o%=2*Math.PI;const c=(new n.AffineTransform).translate(t,e).rotate(r),p=i*Math.cos(a),u=s*Math.sin(a),[d,m]=c.apply(p,u);this.lineTo(d,m);const f=180*r/Math.PI,g=l?0:1;if(Math.abs(a-o)<2*h.float32_epsilon&&!(Math.abs(_)<2*h.float32_epsilon&&_<0)){const[t,e]=this._transform.apply(d,m),r=i*Math.cos(a+Math.PI),n=s*Math.sin(a+Math.PI),[o,l]=c.apply(r,n),[h,_]=this._transform.apply(o,l);this.__addPathCommand(t,e,`A ${i} ${s} ${f} 0 ${g} ${h} ${_} A ${i} ${s} ${f} 0 ${g} ${t} ${e}`)}else{const t=i*Math.cos(o),e=s*Math.sin(o),[r,n]=c.apply(t,e);let h=o-a;h<0&&(h+=2*Math.PI);const _=l!==h>Math.PI?1:0,[p,u]=this._transform.apply(r,n);this.__addPathCommand(p,u,`A ${i} ${s} ${f} ${_} ${g} ${p} ${u}`)}}clip(t,e){let i=null;if(t instanceof Path2D)i=t;else{if(null!=e)throw new Error("invalid arguments");e=t}if(null!=i)throw new Error("not implemented");const s=this.__createElement("clipPath"),r=this._random_string();this.__applyCurrentDefaultPath(),null!=e&&this.__currentElement.setAttribute("clip-rule",e),s.setAttribute("id",r),s.appendChild(this.__currentElement),this.__defs.appendChild(s),this._clip_path=`url(#${r})`}drawImage(t,...e){let i,s,r,n,a,o,l,h;if(2==e.length){if([i,s]=e,!isFinite(i+s))return;a=0,o=0;const[_,c]=m(t);r=l=_,n=h=c}else if(4==e.length){if([i,s,r,n]=e,!isFinite(i+s+r+n))return;a=0,o=0;const[_,c]=m(t);l=_,h=c}else{if(8!==e.length)throw new Error(`Inavlid number of arguments passed to drawImage: ${arguments.length}`);if([a,o,l,h,i,s,r,n]=e,!isFinite(a+o+l+h+i+s+r+n))return}const _=this.__root,c=this._transform.clone().translate(i,s);if(t instanceof b||t instanceof SVGSVGElement){const e=(t instanceof SVGSVGElement?t:t.get_svg()).cloneNode(!0);let i;c.is_identity&&1==this.globalAlpha&&null==this._clip_path?i=_:(i=this.__createElement("g"),c.is_identity||this._apply_transform(i,c),1!=this.globalAlpha&&i.setAttribute("opacity",`${this.globalAlpha}`),null!=this._clip_path&&i.setAttribute("clip-path",this._clip_path),_.appendChild(i));for(const t of[...e.childNodes])if(t instanceof SVGDefsElement){for(const e of[...t.childNodes])if(e instanceof Element){const t=e.getAttribute("id");this.__ids.add(t),this.__defs.appendChild(e.cloneNode(!0))}}else i.appendChild(t.cloneNode(!0))}else if(t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__createElement("image");if(e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`),e.setAttribute("preserveAspectRatio","none"),1!=this.globalAlpha&&e.setAttribute("opacity",`${this.globalAlpha}`),0!=a||0!=o||l!==t.width||h!==t.height){const e=this.__document.createElement("canvas");e.width=r,e.height=n;e.getContext("2d").drawImage(t,a,o,l,h,0,0,r,n),t=e}this._apply_transform(e,c);const i=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute("src");if(e.setAttribute("href",i),null!=this._clip_path){const t=this.__createElement("g");t.setAttribute("clip-path",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}else if(t instanceof HTMLCanvasElement){const e=this.__createElement("image");e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`),e.setAttribute("preserveAspectRatio","none"),1!=this.globalAlpha&&e.setAttribute("opacity",`${this.globalAlpha}`);const i=this.__document.createElement("canvas");i.width=r,i.height=n;const s=i.getContext("2d");if(s.imageSmoothingEnabled=!1,s.drawImage(t,a,o,l,h,0,0,r,n),t=i,this._apply_transform(e,c),e.setAttribute("href",t.toDataURL()),null!=this._clip_path){const t=this.__createElement("g");t.setAttribute("clip-path",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}}createPattern(t,e){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=this._random_string(),[r,n]=m(t);if(i.setAttribute("id",s),i.setAttribute("width",`${r}`),i.setAttribute("height",`${n}`),i.setAttribute("patternUnits","userSpaceOnUse"),t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute("src");e.setAttribute("href",s),i.appendChild(e),this.__defs.appendChild(i)}else if(t instanceof b){for(const e of[...t.__root.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}else{if(!(t instanceof SVGSVGElement))throw new Error("unsupported");for(const e of[...t.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}return new g(i,this)}getLineDash(){const{lineDash:t}=this;return(0,a.isString)(t)?t.split(",").map((t=>parseInt(t))):t??[]}setLineDash(t){t.length>0?this.lineDash=t.join(","):this.lineDash=null}getTransform(){return this._transform.to_DOMMatrix()}setTransform(...t){let e;e=(0,a.isNumber)(t[0])?new DOMMatrix(t):t[0]instanceof DOMMatrix?t[0]:new DOMMatrix(Object.values(null==t[0])),this._transform=n.AffineTransform.from_DOMMatrix(e)}resetTransform(){this._transform=new n.AffineTransform}isPointInPath(...t){throw new Error("not implemented")}isPointInStroke(...t){throw new Error("not implemented")}createImageData(...t){throw new Error("not implemented")}getImageData(t,e,i,s){throw new Error("not implemented")}putImageData(...t){throw new Error("not implemented")}drawFocusIfNeeded(...t){throw new Error("not implemented")}scrollPathIntoView(...t){throw new Error("not implemented")}}i.SVGRenderingContext2D=b,b.__name__="SVGRenderingContext2D",b.__random=l.random}, -function _(t,r,s,e,i){e();const n=t(26),{sin:a,cos:h}=Math;class o{constructor(t=1,r=0,s=0,e=1,i=0,n=0){this.a=t,this.b=r,this.c=s,this.d=e,this.e=i,this.f=n}toString(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return`matrix(${t}, ${r}, ${s}, ${e}, ${i}, ${n})`}static from_DOMMatrix(t){const{a:r,b:s,c:e,d:i,e:n,f:a}=t;return new o(r,s,e,i,n,a)}to_DOMMatrix(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return new DOMMatrix([t,r,s,e,i,n])}clone(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return new o(t,r,s,e,i,n)}[n.equals](t,r){return r.eq(this.a,t.a)&&r.eq(this.b,t.b)&&r.eq(this.c,t.c)&&r.eq(this.d,t.d)&&r.eq(this.e,t.e)&&r.eq(this.f,t.f)}reset(){this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0}get is_identity(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return 1==t&&0==r&&0==s&&1==e&&0==i&&0==n}apply_point(t){const[r,s]=this.apply(t.x,t.y);return{x:r,y:s}}apply_rect(t){return{p0:this.apply_point(t.p0),p1:this.apply_point(t.p1),p2:this.apply_point(t.p2),p3:this.apply_point(t.p3)}}apply(t,r){const{a:s,b:e,c:i,d:n,e:a,f:h}=this;return[s*t+i*r+a,e*t+n*r+h]}iv_apply(t,r){const{a:s,b:e,c:i,d:n,e:a,f:h}=this,o=t.length;for(let c=0;c=0?Math.acos(e):-Math.acos(e)}const A=v(g),w=v(b);this.lineTo(m+g[0]*r,f+g[1]*r),this.arc(m,f,r,A,w)}stroke(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke"),null!=this._clip_path&&this.__currentElement.setAttribute("clip-path",this._clip_path)}fill(t,e){let i=null;if(t instanceof Path2D)i=t;else{if(null!=e)throw new Error("invalid arguments");e=t}if(null!=i)throw new Error("not implemented");"none"!=this.__currentElement.getAttribute("fill")&&this.__init_element(),"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill"),null!=e&&this.__currentElement.setAttribute("fill-rule",e),null!=this._clip_path&&this.__currentElement.setAttribute("clip-path",this._clip_path)}rect(t,e,i,s){isFinite(t+e+i+s)&&(this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+s),this.lineTo(t,e+s),this.lineTo(t,e),this.closePath())}fillRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.fill())}strokeRect(t,e,i,s){isFinite(t+e+i+s)&&(this.beginPath(),this.rect(t,e,i,s),this.stroke())}__clearCanvas(){(0,_.empty)(this.__defs),(0,_.empty)(this.__root),this.__root.appendChild(this.__defs),this.__currentElement=this.__root}clearRect(t,e,i,s){if(!isFinite(t+e+i+s))return;if(0===t&&0===e&&i===this.width&&s===this.height)return void this.__clearCanvas();const r=this.__createElement("rect",{x:t,y:e,width:i,height:s,fill:"#FFFFFF"},!0);this._apply_transform(r),this.__root.appendChild(r)}roundRect(t,e,i,s,r){throw new Error("not implemented")}createLinearGradient(t,e,i,s){if(!isFinite(t+e+i+s))throw new Error("The provided double value is non-finite");const[r,n]=this._transform.apply(t,e),[a,o]=this._transform.apply(i,s),l=this.__createElement("linearGradient",{id:this._random_string(),x1:`${r}px`,x2:`${a}px`,y1:`${n}px`,y2:`${o}px`,gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(l),new f(l,this)}createRadialGradient(t,e,i,s,r,n){if(!isFinite(t+e+i+s+r+n))throw new Error("The provided double value is non-finite");const[a,o]=this._transform.apply(t,e),[l,h]=this._transform.apply(s,r),_=this.__createElement("radialGradient",{id:this._random_string(),cx:`${l}px`,cy:`${h}px`,r:`${n}px`,r0:`${i}px`,fx:`${a}px`,fy:`${o}px`,gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(_),new f(_,this)}createConicGradient(t,e,i){throw Error("not implemented")}__parseFont(){const[,t,e,i,s,,r]=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-z0-9]+?)\s*$/i.exec(this.font);return{style:t??"normal",size:s??"10px",family:r??"sans-serif",weight:i??"normal",decoration:e??"normal"}}__applyText(t,e,i,s){const r=this.__parseFont(),n=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:i,"text-anchor":c(this.textAlign),"dominant-baseline":p(this.textBaseline)},!0);n.appendChild(this.__document.createTextNode(t)),this._apply_transform(n),this.__currentElement=n,this.__applyStyleToCurrentElement(s);const a=(()=>{if(null!=this._clip_path){const t=this.__createElement("g");return t.setAttribute("clip-path",this._clip_path),t.appendChild(n),t}return n})();this.__root.appendChild(a)}fillText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,"fill")}strokeText(t,e,i){isFinite(e+i)&&this.__applyText(t,e,i,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,i,s,r,n=!1){this.ellipse(t,e,i,i,0,s,r,n)}ellipse(t,e,i,s,r,a,o,l=!1){if(!isFinite(t+e+i+s+r+a+o))return;if(i<0||s<0)throw new DOMException("IndexSizeError, radius can't be negative");const _=l?o-a:a-o;a%=2*Math.PI,o%=2*Math.PI;const c=(new n.AffineTransform).translate(t,e).rotate(r),p=i*Math.cos(a),u=s*Math.sin(a),[d,m]=c.apply(p,u);this.lineTo(d,m);const f=180*r/Math.PI,g=l?0:1;if(Math.abs(a-o)<2*h.float32_epsilon&&!(Math.abs(_)<2*h.float32_epsilon&&_<0)){const[t,e]=this._transform.apply(d,m),r=i*Math.cos(a+Math.PI),n=s*Math.sin(a+Math.PI),[o,l]=c.apply(r,n),[h,_]=this._transform.apply(o,l);this.__addPathCommand(t,e,`A ${i} ${s} ${f} 0 ${g} ${h} ${_} A ${i} ${s} ${f} 0 ${g} ${t} ${e}`)}else{const t=i*Math.cos(o),e=s*Math.sin(o),[r,n]=c.apply(t,e);let h=o-a;h<0&&(h+=2*Math.PI);const _=l!==h>Math.PI?1:0,[p,u]=this._transform.apply(r,n);this.__addPathCommand(p,u,`A ${i} ${s} ${f} ${_} ${g} ${p} ${u}`)}}clip(t,e){let i=null;if(t instanceof Path2D)i=t;else{if(null!=e)throw new Error("invalid arguments");e=t}if(null!=i)throw new Error("not implemented");const s=this.__createElement("clipPath"),r=this._random_string();this.__applyCurrentDefaultPath(),null!=e&&this.__currentElement.setAttribute("clip-rule",e),s.setAttribute("id",r),s.appendChild(this.__currentElement),this.__defs.appendChild(s),this._clip_path=`url(#${r})`}drawImage(t,...e){let i,s,r,n,a,o,l,h;if(2==e.length){if([i,s]=e,!isFinite(i+s))return;a=0,o=0;const[_,c]=m(t);r=l=_,n=h=c}else if(4==e.length){if([i,s,r,n]=e,!isFinite(i+s+r+n))return;a=0,o=0;const[_,c]=m(t);l=_,h=c}else{if(8!==e.length)throw new Error(`Inavlid number of arguments passed to drawImage: ${arguments.length}`);if([a,o,l,h,i,s,r,n]=e,!isFinite(a+o+l+h+i+s+r+n))return}const _=this.__root,c=this._transform.clone().translate(i,s);if(t instanceof b||t instanceof SVGSVGElement){const e=(t instanceof SVGSVGElement?t:t.get_svg()).cloneNode(!0);let i;c.is_identity&&1==this.globalAlpha&&null==this._clip_path?i=_:(i=this.__createElement("g"),c.is_identity||this._apply_transform(i,c),1!=this.globalAlpha&&i.setAttribute("opacity",`${this.globalAlpha}`),null!=this._clip_path&&i.setAttribute("clip-path",this._clip_path),_.appendChild(i));for(const t of[...e.childNodes])if(t instanceof SVGDefsElement){for(const e of[...t.childNodes])if(e instanceof Element){const t=e.getAttribute("id");this.__ids.add(t),this.__defs.appendChild(e.cloneNode(!0))}}else i.appendChild(t.cloneNode(!0))}else if(t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__createElement("image");if(e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`),e.setAttribute("preserveAspectRatio","none"),1!=this.globalAlpha&&e.setAttribute("opacity",`${this.globalAlpha}`),0!=a||0!=o||l!==t.width||h!==t.height){const e=this.__document.createElement("canvas");e.width=r,e.height=n;e.getContext("2d").drawImage(t,a,o,l,h,0,0,r,n),t=e}this._apply_transform(e,c);const i=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute("src");if(e.setAttribute("href",i),null!=this._clip_path){const t=this.__createElement("g");t.setAttribute("clip-path",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}else if(t instanceof HTMLCanvasElement){const e=this.__createElement("image");e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`),e.setAttribute("preserveAspectRatio","none"),1!=this.globalAlpha&&e.setAttribute("opacity",`${this.globalAlpha}`);const i=this.__document.createElement("canvas");i.width=r,i.height=n;const s=i.getContext("2d");if(s.imageSmoothingEnabled=!1,s.drawImage(t,a,o,l,h,0,0,r,n),t=i,this._apply_transform(e,c),e.setAttribute("href",t.toDataURL()),null!=this._clip_path){const t=this.__createElement("g");t.setAttribute("clip-path",this._clip_path),t.appendChild(e),_.appendChild(t)}else _.appendChild(e)}}createPattern(t,e){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),s=this._random_string(),[r,n]=m(t);if(i.setAttribute("id",s),i.setAttribute("width",`${r}`),i.setAttribute("height",`${n}`),i.setAttribute("patternUnits","userSpaceOnUse"),t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof SVGImageElement){const e=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),s=t instanceof HTMLCanvasElement?t.toDataURL():t.getAttribute("src");e.setAttribute("href",s),i.appendChild(e),this.__defs.appendChild(i)}else if(t instanceof b){for(const e of[...t.__root.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}else{if(!(t instanceof SVGSVGElement))throw new Error("unsupported");for(const e of[...t.childNodes])e instanceof SVGDefsElement||i.appendChild(e.cloneNode(!0));this.__defs.appendChild(i)}return new g(i,this)}getLineDash(){const{lineDash:t}=this;return(0,a.isString)(t)?t.split(",").map((t=>parseInt(t))):t??[]}setLineDash(t){t.length>0?this.lineDash=t.join(","):this.lineDash=null}getTransform(){return this._transform.to_DOMMatrix()}setTransform(...t){let e;e=(0,a.isNumber)(t[0])?new DOMMatrix(t):t[0]instanceof DOMMatrix?t[0]:new DOMMatrix(Object.values(null==t[0])),this._transform=n.AffineTransform.from_DOMMatrix(e)}resetTransform(){this._transform=new n.AffineTransform}isPointInPath(...t){throw new Error("not implemented")}isPointInStroke(...t){throw new Error("not implemented")}createImageData(...t){throw new Error("not implemented")}getImageData(t,e,i,s){throw new Error("not implemented")}putImageData(...t){throw new Error("not implemented")}drawFocusIfNeeded(...t){throw new Error("not implemented")}scrollPathIntoView(...t){throw new Error("not implemented")}}i.SVGRenderingContext2D=b,b.__name__="SVGRenderingContext2D",b.__random=l.random}, +function _(t,r,s,e,i){e(),s.rotate_around=function(t,r,s){if(0==s)return t;{const e=new o;e.rotate_around(r.x,r.y,s);const[i,n]=e.apply(t.x,t.y);return{x:i,y:n}}};const n=t(26),{sin:a,cos:h}=Math;class o{constructor(t=1,r=0,s=0,e=1,i=0,n=0){this.a=t,this.b=r,this.c=s,this.d=e,this.e=i,this.f=n}toString(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return`matrix(${t}, ${r}, ${s}, ${e}, ${i}, ${n})`}static from_DOMMatrix(t){const{a:r,b:s,c:e,d:i,e:n,f:a}=t;return new o(r,s,e,i,n,a)}to_DOMMatrix(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return new DOMMatrix([t,r,s,e,i,n])}clone(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return new o(t,r,s,e,i,n)}[n.equals](t,r){return r.eq(this.a,t.a)&&r.eq(this.b,t.b)&&r.eq(this.c,t.c)&&r.eq(this.d,t.d)&&r.eq(this.e,t.e)&&r.eq(this.f,t.f)}reset(){this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0}get is_identity(){const{a:t,b:r,c:s,d:e,e:i,f:n}=this;return 1==t&&0==r&&0==s&&1==e&&0==i&&0==n}apply_point(t){const[r,s]=this.apply(t.x,t.y);return{x:r,y:s}}apply_rect(t){return{p0:this.apply_point(t.p0),p1:this.apply_point(t.p1),p2:this.apply_point(t.p2),p3:this.apply_point(t.p3)}}apply(t,r){const{a:s,b:e,c:i,d:n,e:a,f:h}=this;return[s*t+i*r+a,e*t+n*r+h]}iv_apply(t,r){const{a:s,b:e,c:i,d:n,e:a,f:h}=this,o=t.length;for(let c=0;cthis.uniform(t,e)))}normal(t,e){return this.normals(t,e,1)[0]}normals(t,e,n){const[s,r]=[t,e],l=new Float64Array(n);for(let t=0;t({checked:[e,!1]})))}, function _(e,t,n,s,c){s();const i=e(117);class r extends i.MenuItem{constructor(e){super(e)}}n.DividerItem=r,r.__name__="DividerItem"}, function _(e,o,r,i,t){i(),r.item="bk-item",r.divider="bk-divider",r.check="bk-check",r.icon="bk-icon",r.label="bk-label",r.shortcut="bk-shortcut",r.chevron="bk-chevron",r.disabled="bk-disabled",r.menu="bk-menu",r.checkable="bk-checkable",r.checked="bk-checked",r.default=":host{position:absolute;display:inline-grid;grid-template-columns:repeat(5, max-content);grid-template-rows:auto;user-select:none;-webkit-user-select:none;cursor:pointer;width:auto;height:auto;z-index:var(--bokeh-top-level);font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:2px 4px 8px rgba(0, 0, 0, 0.175);}.bk-item,.bk-divider{position:relative;display:grid;grid-template-columns:subgrid;grid-column:span 5;align-items:center;}.bk-check{grid-column:1;}.bk-icon{grid-column:2;}.bk-label{grid-column:3;}.bk-shortcut{grid-column:4;}.bk-chevron{grid-column:5;}.bk-divider{cursor:default;overflow:hidden;background-color:#e5e5e5;height:1px;margin:1px 5px;}.bk-item{padding:0.5em;}.bk-item:hover{background-color:#f9f9f9;}.bk-item:focus,.bk-item:focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}.bk-item::-moz-focus-inner{border:0;}.bk-item.bk-disabled{color:gray;}.bk-item.bk-disabled .bk-icon{color:var(--bokeh-icon-color-disabled);}.bk-item:first-of-type{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);}.bk-item:last-of-type{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}.bk-icon{position:relative;width:16px;height:16px;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;background-size:100% 100%;background-origin:border-box;background-position:center center;background-repeat:no-repeat;}.bk-label{padding:0 0.5em;}.bk-shortcut{text-align:right;font-size:90%;color:gray;}.bk-chevron{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-right);-webkit-mask-image:var(--bokeh-icon-caret-right);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;width:12px;height:12px;}.bk-item:not(.bk-menu) .bk-chevron{display:none;}.bk-item.bk-checkable .bk-check{width:16px;height:16px;}.bk-item.bk-checkable.bk-checked .bk-check{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-check);-webkit-mask-image:var(--bokeh-icon-check);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}"}, -function _(o,A,g,e,t){e(),g.tool_icon_square_check=g.tool_icon_square=g.tool_icon_check=g.tool_icon_text_align_right=g.tool_icon_text_align_center=g.tool_icon_text_align_left=g.tool_icon_italic=g.tool_icon_bold=g.tool_icon_delete=g.tool_icon_pointer=g.tool_icon_unpin=g.tool_icon_pin=g.tool_icon_maximize=g.tool_icon_minimize=g.tool_icon_arrow_up_from_bar=g.tool_icon_arrow_down_to_bar=g.tool_icon_y_grip=g.tool_icon_x_grip=g.tool_icon_see_off=g.tool_icon_see_on=g.tool_icon_caret_right=void 0,g.tool_icon_copy="bk-tool-icon-copy",g.tool_icon_replace_mode="bk-tool-icon-replace-mode",g.tool_icon_toggle_mode="bk-tool-icon-toggle-mode",g.tool_icon_append_mode="bk-tool-icon-append-mode",g.tool_icon_intersect_mode="bk-tool-icon-intersect-mode",g.tool_icon_subtract_mode="bk-tool-icon-subtract-mode",g.tool_icon_xor_mode="bk-tool-icon-xor-mode",g.tool_icon_invert_selection="bk-tool-icon-invert-selection",g.tool_icon_clear_selection="bk-tool-icon-clear-selection",g.tool_icon_box_select="bk-tool-icon-box-select",g.tool_icon_x_box_select="bk-tool-icon-x-box-select",g.tool_icon_y_box_select="bk-tool-icon-y-box-select",g.tool_icon_box_zoom="bk-tool-icon-box-zoom",g.tool_icon_x_box_zoom="bk-tool-icon-x-box-zoom",g.tool_icon_y_box_zoom="bk-tool-icon-y-box-zoom",g.tool_icon_auto_box_zoom="bk-tool-icon-auto-box-zoom",g.tool_icon_zoom_in="bk-tool-icon-zoom-in",g.tool_icon_zoom_out="bk-tool-icon-zoom-out",g.tool_icon_help="bk-tool-icon-help",g.tool_icon_hover="bk-tool-icon-hover",g.tool_icon_crosshair="bk-tool-icon-crosshair",g.tool_icon_lasso_select="bk-tool-icon-lasso-select",g.tool_icon_pan="bk-tool-icon-pan",g.tool_icon_x_pan="bk-tool-icon-x-pan",g.tool_icon_y_pan="bk-tool-icon-y-pan",g.tool_icon_range="bk-tool-icon-range",g.tool_icon_polygon_select="bk-tool-icon-polygon-select",g.tool_icon_redo="bk-tool-icon-redo",g.tool_icon_reset="bk-tool-icon-reset",g.tool_icon_save="bk-tool-icon-save",g.tool_icon_tap_select="bk-tool-icon-tap-select",g.tool_icon_undo="bk-tool-icon-undo",g.tool_icon_wheel_pan="bk-tool-icon-wheel-pan",g.tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",g.tool_icon_box_edit="bk-tool-icon-box-edit",g.tool_icon_freehand_draw="bk-tool-icon-freehand-draw",g.tool_icon_poly_draw="bk-tool-icon-poly-draw",g.tool_icon_point_draw="bk-tool-icon-point-draw",g.tool_icon_poly_edit="bk-tool-icon-poly-edit",g.tool_icon_line_edit="bk-tool-icon-line-edit",g.tool_icon_settings="bk-tool-icon-settings",g.tool_icon_unknown="bk-tool-icon-unknown",g.tool_icon_fullscreen="bk-tool-icon-fullscreen",g.tool_icon_chevron_up="bk-tool-icon-chevron-up",g.tool_icon_chevron_down="bk-tool-icon-chevron-down",g.tool_icon_chevron_left="bk-tool-icon-chevron-left",g.tool_icon_chevron_right="bk-tool-icon-chevron-right",g.tool_icon_caret_up="bk-tool-icon-caret-up",g.tool_icon_caret_down="bk-tool-icon-caret-down",g.tool_icon_caret_left="bk-tool-icon-caret-left",g.tool_icon_caret_right="bk-tool-icon-caret-right",g.tool_icon_see_on="bk-tool-icon-see-on",g.tool_icon_see_off="bk-tool-icon-see-off",g.tool_icon_x_grip="bk-tool-icon-x-grip",g.tool_icon_y_grip="bk-tool-icon-y-grip",g.tool_icon_arrow_down_to_bar="bk-tool-icon-arrow-down-to-bar",g.tool_icon_arrow_up_from_bar="bk-tool-icon-arrow-up-from-bar",g.tool_icon_minimize="bk-tool-icon-minimize",g.tool_icon_maximize="bk-tool-icon-maximize",g.tool_icon_pin="bk-tool-icon-pin",g.tool_icon_unpin="bk-tool-icon-unpin",g.tool_icon_pointer="bk-tool-icon-pointer",g.tool_icon_delete="bk-tool-icon-delete",g.tool_icon_bold="bk-tool-icon-bold",g.tool_icon_italic="bk-tool-icon-italic",g.tool_icon_text_align_left="bk-tool-icon-text-align-left",g.tool_icon_text_align_center="bk-tool-icon-text-align-center",g.tool_icon_text_align_right="bk-tool-icon-text-align-right",g.tool_icon_check="bk-tool-icon-check",g.tool_icon_square="bk-tool-icon-square",g.tool_icon_square_check="bk-tool-icon-square-check",g.default=':host{--bokeh-icon-color:#a1a6a9;--bokeh-icon-color-disabled:#d4d9db;}.bk-tool-icon-copy{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-copy);-webkit-mask-image:var(--bokeh-icon-copy);}.bk-tool-icon-replace-mode{background-image:var(--bokeh-icon-replace-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxokK3gniQAAAHpJREFUWMNjXLhsJcNAAiaGAQajDhhwB7DgEP+PxmeksvjgDwFcLmYkUh2hkBj8IcBIZXsYh1w2/I8v3sgAOM0bLYhGc8GgrwuICgldfQO88pcvXvg/aOuCUQeM5oLRuoCFCJcTbOMh5XOiW0JDNhdQS3y0IBp1ABwAAF8KGrhC1Eg6AAAAAElFTkSuQmCC"));}.bk-tool-icon-toggle-mode{background-image:var(--bokeh-icon-toggle-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADP3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja7ZZbsiMnDIbfWUWWgCRAYjlcq2YHWX5+6HYf2+OpiieepxyoRrRQC6EPsN34+8d0f6GwZ3YhqqWckkcJOWQu6Jg/Stkt+bDbXfgcwvuD3l0DDJVAyvFq6bS/6elycIiCXrxzZO0cqI8DOZz+7cnROZGsiFYU/XSUT0fCxwCdDsqxLJ+y6f0S6jhkv63EjsetRvRY+s3J83tQZK9HKIV5CIlHK3IGIOsJTgo6abfCh7rAVNEGuUWChLzK01UyIpor1PDS6IHK1aPXevdMK/BpIk9JTpd8qXcUX1PZqb+bOdjZ40d9tsOV80/ZX8+c3eZeM1ZRQkKq07mo21J2D3YVU6ypzcFf8oonwoXumlENu7qBWvfNV9RGmRi4JgXqVGjS2LJRQ4iBh2NdJ4Uby1aaKGduYEeLmgSarJKli4Fo29iD8BUL7Wmzb27PZpi5E0yZ4IzwydvVvfvBnOsoEHm7coW4cPoXB1pplNXCDERonkmNO8G3+lwWVwHBuLK8jkhGYuvhokb6uglkgxYYRsjjuJD20wFShKkjgiEBAVAjiZTIK7MSIZEGQAWh4wBxBQGKkTuC5CCSwMZ4TY1PlLYpR4baQY/LDCQiTpyCTZYCWCFE7B8Nhj1UosQQY0xRo8UcS5IUUkwpaVqXYlHR4DRqUlXTrMXEgkVLpmaWrWTOgksz5pQ1W865FMxZ4Lng6wKDUipXqaFGV1PVajXX0rB9WmixpabNWm6lc5eO+6Onrt167mXQwFYaYcSRhg4beZSJrTbFzTDjTFOnzTzLRe3E+lN9gxqd1HiTWoZ6UYNW9eaC1nUSFzMAw68IgbguBNjQvJh5oxB4kVvMfGacisgIMi5mnRYxEAyDOE66sXN8EF3k/hM3p+GBG/8uObfQvUnuZ26vqPX1M9Q2seMUrqR6wekbOVlhQ0T4sVsdfy/ds+J35bejb0ffjv5vjkYtqzdcSF8vL/o10x+NqJZRMNcSp9aVxL7srv+Spw0E/kL9O+/uI+EgGveRcCDdR8JBFO4j4dh29H44e3+sbXLXd78YWPvnrTW7D5yOb0fvOsL/kOz+AVNjw+bixfXWAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV9TtSIVRTuIOGSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi7OCk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXtGBIPoQRq/MLGNWkpLwHV/3CPD1Lsaz/M/9ObrVnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXb9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwBBp4M2ZRdKUhTyOeB9zP6pizQfwt0rXq9NfZx+gCkqavkDXBwCIwUKHvN592drb39e6bR3w/9qXJ4zBnVPwAADRppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6MjFjNTkwNzMtOTc1Zi00ZjAxLTljMDktYzY2NWY3NTBhMDA2IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjdhODY1NGM1LTZiYTktNDkwMi1iZWNmLTAyMGE3Y2I1MTI5NCIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmNmNDY3MmE2LTRjN2ItNDAwYi04N2U4LWExMjFjY2ZlZjI1YSIKICAgZGM6Rm9ybWF0PSJpbWFnZS9wbmciCiAgIEdJTVA6QVBJPSIyLjAiCiAgIEdJTVA6UGxhdGZvcm09IkxpbnV4IgogICBHSU1QOlRpbWVTdGFtcD0iMTcxNzQzODY2NDU5OTYwMiIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjMwIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjAyOTk4NWE4LThlMjItNGI2NS1hNTQwLTE3MWI2NjU3YTYxOCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChMaW51eCkiCiAgICAgIHN0RXZ0OndoZW49IjIwMjQtMDYtMDNUMjA6MTc6NDQrMDI6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+rdIyIAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+gGAxIRLNWVUewAAAB9SURBVFjDY2AYBaNggAEjNsGFy1b+R+bHR4UzUlMcGTANymBZuGzlf3TX08o8ptFUOJoGBtrxTNS2HFd+p7kDyLF80KYZkiyhieXEWkas5VTLBciVDLXinOREiGwhNRIcCzmaBiSlj9YFw7Y9wEJK8Uppm3C0RTQKRgE2AAByVIRiIg+g0AAAAABJRU5ErkJggg=="));}.bk-tool-icon-append-mode{background-image:var(--bokeh-icon-append-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkZWD04WwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAoUlEQVRYw+1WQQ6AIAwrhO8Y/bIXEz9jIMSDr8ETCUEPQzA4pMeFLKNbu4l5WR0CDOMEALBGIzMuQIBEZQjPgP9JLjwTfBjY9sO9lZsFA9IafZng3BlIyVefgd8XQFZBAWe8jfNxwsDhir6rzoCiPiy1K+J8/FRQemv2XfAdFcQ9znU4Viqg9ta1qYJ+D1BnAIBrkgGVOrXNqUA9rbyZm/AEzFh4jEeY/soAAAAASUVORK5CYII="));}.bk-tool-icon-intersect-mode{background-image:var(--bokeh-icon-intersect-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkrkOpp2wAAAPhJREFUWMPtV1EKwjAMTUavI3oawR/vtn5srJdREfzwMvHHQlcT2mpdMzFfWxiP5r2+JMN+mAiCOB72CABgR1cln4oOGocJnuMTSxWk8jMm7OggYkYXA9gPE3uyd8NXHONJ+eYMdE/NqCJmEZ5ZqlJJ4sUksKN7cYSaPoCZFWR1QI+Xm1fBACU63Cw22x0AAJxudwrffVwvZ+JmQdAHZkw0d4EpAMCw8k87pMdbnwtizQumJYv3nwV6XOA1qbUT/oQLUJgFRbsiNwFVucBIlyR3p0tdMp+XmFjfLKi1LatyAXtCRjPWBdL3Ke3VuACJKFfDr/xFN2fgAR/Go0qaLlmEAAAAAElFTkSuQmCC"));}.bk-tool-icon-subtract-mode{background-image:var(--bokeh-icon-subtract-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxgsF5XNOQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABFUlEQVRYw9VWUQqDMAxNpWfxQxD1MoP97G7zQ5mH2RTZYLtM9lWoMbXtxLXNX4OG9r28l4hrd0PQoqxqAACYpxH25C/nkwCHyCBwSPoS09k1T5Fo+4EiExcC4v584xGFmyIXHBLRISAVZyZufUPVa4rcrwmPDgr93ylo+2GliLRUYHK6th/o/6r7nfLpqaCsagEA8Hh9FmcNKeRmgeYDC+SCq0B6FFi8/BcV6BdR9cL3gCv3ijPKOacsn3rBEcjmaVxpfGcg4wHxzgJJnc6241Hn23DERFRAu1bNcWa3Q0uXi62XR6sCaWoSejbtdLYmU3kTEunNgj0bUbQqYG/IcMaqwPS9jftoVCAQ0ZVDJwf0zQdH4AsyW6fpQu4YegAAAABJRU5ErkJggg=="));}.bk-tool-icon-xor-mode{background-image:var(--bokeh-icon-xor-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAAmJLR0QA/4ePzL8AAACXSURBVEjH3VXBCcAwCDxLxgl0oM7nQEL3sa9ASLQIqS3UT4SIOfXOECsAADsAwb1/ECbbsGilvdKfli9OgmUEdGo8uKb0QIZ6PUvrwfcJzCn0zGtM9fx1BKzzFMTgvRf3jBZGs1TnxeVNwUIxxsqrWmBNYmJptewBBuZMwas3uiP+sA+8i8i2rpSlRg7+FaxZCHpFpu/EC1y3NtihGuwKAAAAAElFTkSuQmCC"));}.bk-tool-icon-invert-selection{background-image:var(--bokeh-icon-invert-selection, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAAmJLR0QA/4ePzL8AAAC2SURBVEjH7VVJEoQwCGysPMeqPCjv40FU+R/moCbMmEWNenFygUug6aYTmhRdZwBeX8ClVJboCRDN5SN4zc8gkBaCtaONKZ+vB0JEcT0HtmvtBALS+rnatAEAF/KcCroThXKZRAP0J3IUT25bpG33m1TwBCCqQOY9IKtCDsVkiOxQQdR6we2dlR+ws7FMYQObKsgJFUyB8Wtev2W+hYB1dtoxFa4mMaJQqb6PDRmPeIH+X1t/gQ8PhzjuVbw+wwAAAABJRU5ErkJggg=="));}.bk-tool-icon-clear-selection{background-image:var(--bokeh-icon-clear-selection, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUGEhcuan3d3wAAAoRJREFUWMPtlzFP3EAQhd+b3TNSzg0N5TWXLkJQUUaKhIQ4fgP/g5ArrriE/I3opEgRrZtIVJR0FJQ010SioUmEZHtnUpwN9gWHGA5BJCy58MraffvmfZ41v3z9hqe8BE98vQh4cgG+Ydzmnrng8efvQJNi/uN7dznx/B3ggtfhf4ehNdUttRzBDIm/2VTiiWCG1HK0nc+3UWtq8BQIiEEakEQOADBIA4QCQmBqoHBhFNR27ikQSmGdYCdTqCpEHMDZmEKRWUBEv1gBDg5SzRJnpopILWICgWuRYflLamuzxB2BmtYqSRIka5VWU8QduXO+1hRc5YZu5GAwmP2ZJzND0IBu5HCV2+NQcAhAVRsnC2IbPzPdSjzd6to6VtfWkXi6YLaVWr7xoAwkfpb8MnC3SH7rKSMBe4M0jA/OTicFIbtCGRIyNbURhcf3ErCd6YwA1m0HgAxhw1NGQnlXBHG4kylVlSJuH0RfIP2CkL2I/qS1gIAAQiBl1QwFggIHtyxgrxK5PgyfC0JWKoT0HLh8LwoietB4TYKaIl7yeNURxB05UtMxDOcVQlZIrlRKdK6m47gjR/fuBRQihyLArtNeJD50Izcx2Eczu7iFkIug4VM3cpOr3MKDekFED0fWUHv9Zq0kpLnridjhY3XDg7NTN0jDrhO3X7O9Wg7wwyANu4mnayNg3gmbu0tCNoUyBNGv2l4rB9EXynA7082FOxAQLhU6rQVO9T2AvWowFToNCJcPORGxIRcnpjZSKATSU9NxvOQnAPArDSaQoUKnNI4iufkGtD4P3EHIcWZhz4HLceSOyrR3Izf5memPAL2cX3yhAkonysZVaWLBkd9dw1Ivv2a/AYPkK+ty1U1DAAAAAElFTkSuQmCC"));}.bk-tool-icon-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-select);-webkit-mask-image:var(--bokeh-icon-box-select);}.bk-tool-icon-x-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-select);-webkit-mask-image:var(--bokeh-icon-x-box-select);}.bk-tool-icon-y-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-select);-webkit-mask-image:var(--bokeh-icon-y-box-select);}.bk-tool-icon-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-zoom);-webkit-mask-image:var(--bokeh-icon-box-zoom);}.bk-tool-icon-x-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-zoom);-webkit-mask-image:var(--bokeh-icon-x-box-zoom);}.bk-tool-icon-y-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-zoom);-webkit-mask-image:var(--bokeh-icon-y-box-zoom);}.bk-tool-icon-auto-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-auto-box-zoom);-webkit-mask-image:var(--bokeh-icon-auto-box-zoom);}.bk-tool-icon-zoom-in{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-in);-webkit-mask-image:var(--bokeh-icon-zoom-in);}.bk-tool-icon-zoom-out{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-out);-webkit-mask-image:var(--bokeh-icon-zoom-out);}.bk-tool-icon-help{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-help);-webkit-mask-image:var(--bokeh-icon-help);}.bk-tool-icon-hover{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-hover);-webkit-mask-image:var(--bokeh-icon-hover);}.bk-tool-icon-crosshair{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-crosshair);-webkit-mask-image:var(--bokeh-icon-crosshair);}.bk-tool-icon-lasso-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-lasso-select);-webkit-mask-image:var(--bokeh-icon-lasso-select);}.bk-tool-icon-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan);-webkit-mask-image:var(--bokeh-icon-pan);}.bk-tool-icon-x-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-pan);-webkit-mask-image:var(--bokeh-icon-x-pan);}.bk-tool-icon-y-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-pan);-webkit-mask-image:var(--bokeh-icon-y-pan);}.bk-tool-icon-range{background-image:var(--bokeh-icon-range, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg=="));}.bk-tool-icon-polygon-select{background-image:var(--bokeh-icon-polygon-select, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII="));}.bk-tool-icon-redo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-redo);-webkit-mask-image:var(--bokeh-icon-redo);}.bk-tool-icon-reset{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-reset);-webkit-mask-image:var(--bokeh-icon-reset);}.bk-tool-icon-save{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-save);-webkit-mask-image:var(--bokeh-icon-save);}.bk-tool-icon-tap-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-tap-select);-webkit-mask-image:var(--bokeh-icon-tap-select);}.bk-tool-icon-undo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-undo);-webkit-mask-image:var(--bokeh-icon-undo);}.bk-tool-icon-wheel-pan{background-image:var(--bokeh-icon-wheel-pan, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII="));}.bk-tool-icon-wheel-zoom{background-image:var(--bokeh-icon-wheel-zoom, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII="));}.bk-tool-icon-box-edit{background-image:var(--bokeh-icon-box-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII="));}.bk-tool-icon-freehand-draw{background-image:var(--bokeh-icon-freehand-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg=="));}.bk-tool-icon-poly-draw{background-image:var(--bokeh-icon-poly-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg=="));}.bk-tool-icon-point-draw{background-image:var(--bokeh-icon-point-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg=="));}.bk-tool-icon-poly-edit{background-image:var(--bokeh-icon-poly-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII="));}.bk-tool-icon-line-edit{background-image:var(--bokeh-icon-line-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG/3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdpknSpDfzPKXwEJBDLccQW4Rv4+E4BtXR198znCdeLLijgQUoppWg3//Pv5f6FDwefXJRcUk3J4xNrrKzoFH8+pyUf9/f+8J3C7y/j7jnBGApow/mZ5l2vGJfXCzne8fZ13OV+9yl3ozvx2DDYyXbauCDvRoHPON3frl5Imt7MuX8hH0seiz9/xwxnDMFgYMczUPD7m89J4fwp/iK+OVRbiMf6gm8K4bv/3NN1Pzjw2fvwn+93PLzccTZ6mJU+/HTHSX723/bSOyLi58n8jmiqz/798+a/tUZZax7rNCKOakzXqIcpu4eFDe483kh4Mv4E/byfiqd49R2OHzC1Od/woxLD44siDVJaNHfbqQNi5MkZLXPnsMdKyFy5gwwCHXhocXahhhEK+OhgLmCYn1hon1vtPBxWcPIgrGTCZrR5fHvc58A/fb5stJaFOZEvT18BF1t8AYYxZ99YBUJoXZ/K9i+50/jPjxEbwKBsNxcYqL6dLZrQK7bC5jl4cVga/Ql5yuNuABfhbAEYCmDAJwpCiXxmzkTwYwE/CuQcIjcwQOKEB1ByDCGBnMJ2Nt7JtNey8BmGvIAICSlkUFODgqwYJSbkW0EIqZMgUUSSZClSRVNIMUlKKSfTKc0hxyw55ZxLrllLKLFISSWXUmrRyjVAxsTVVHMttVZVHKpRsZdivWKgcQstNmmp5VZabdoRPj126annXnrtOniEAQlwI408yqhDJ02E0oxTZpp5llmnLsTaCisuWWnlVVZd+mTtsvqVtU/m/po1uqzxJsrW5RdrGM75sQWZnIhxBsY4EhjPxgACmo0zXyhGNuaMM185uBCEgVKMnEHGGBiMk1gWPbl7Mfcrbw7e/V9545+Yc0bd/4M5Z9S9Mfedtx9YG7rlNmyCLAvhUyhkQPrNhvO5AJFnrZIR0plaLL5liQYdDi5TubaIokFDkmoFEB8CzxZVxemssDqthPhUblPgW1iQU5g6XwNwyVI7bUFRm035iNziMkgWvEso2SXnsJfveR0Y4SlVF8YWC1pVQhJiQa8JwDvlMNIxAfq3F7GDObHU1LlhzlZaWwNp6BvACxAgInGXlllMGZCpEnZHrGA6GM2718xuFcz7YdUQxzEEfjdWz4GlkcwaonT0pgA6mB25grPILtnSMhuCpsGhmMU6uJbixJs4lbKHqh+wos1jW2rchyGRCIvN9MXu+KAmMSfAlIKVvi/tybhCPJZCu2Ow9pLdyo427+X2ovMBmKNu8PA0zgl3fS0PB1DWWkVYB47bkyiJHhkFPzTzCjzn4Dq1mqoIWzCmcDGsHQmQAQdEHsixK1IXESd5rLU7THVJNV8obHS8sZeN0G5Jdt5pQTVKCCbgK1hItTS8o92iEZpuWJ/oC2r/0+zTmhvFXoaMVKRe27altDtid6OvG1hENVwBnC61KKugNoemOiPCCNb3GoHAZOFuDxxPsD+07nbSPcr/o1Zmc4jARhotrA5F5ZcjP9rPk90vR8A+k028A+8+5wKlHVID542sMzMCuXktkRzUCpE+xCBZywjNcJITx0II9x5948CekBl4XaC5OCX2nCyObdwN3HwQh5DWL/BBEkhDYHn/vpXNgZkVTZs8rj+HO8JFC6qvDVhgAEQSYCDyC86rMhG1WPzAVB9ZldDWG6EzDcFiqJBDvFS8mXDv3SK2LPoguVB2kwUx7UL5KqZWiEzocsbvSjNnaYDNtcYJuA5cDcsrvHd6yCxGjqvl9+wh3Qh8Kc9py8sNW8ncU8qwxdPj1qIGfrPqlXeoS4/JLa/LwRLTCtxuSoZUT+2Su6kXW3QNacYQbId6NUKVbROpviybFSPQQL9lhB2MamEnFyB9Y+hrG1+xBg+L0QG2TZdTdlcsBdq9oHdt9Bu5/IM9+Nfh1AwrSqlboTA6Bgq568A7UfbaMrZjoQZhQphofvNw93+bN+5X7FYKBgLmRid+tSdV6c02A4R0cHwKobmoMt5+6WI9XNISFIywpf6RMd5/a91vE78FzVHIFmxud4woyJx76OMTCa4yhgN3iJO2VfRPFMv9sYTxFzU+1eWeYS52pwOoSJldZY6koib4P1O427rbeUrNZfu44hWjz5ZSuu/vKPpimoXbLkfxWSPetvxDWG5jQSaZCxA3ad+p6rlttDhK+YwwK1LHVe0drDtorc5vnQ1247g58vewDtU7L3DRwrG4dhCUDRKKOtYr2dXHtpt+33d1WZmfkAHdl7Q8ENF+CNgB+nOw29n5F7SeNo/ckbu4laLTCdqJLHjmhJbKzmrCEX7zULrhefuHmu0V/1nbP1pnb6FaT7sOxn4pvWkfrYhYtCeJ4Xv+kOXrroIs1eHWXN1/AfzaY94ms5vaAAABg2lDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TSkUqDnYQUchQnSyIijhqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaBzTdNtPJhJjNrYrhV4QwjAgGIMrMMuYkKQXf8XWPAF/v4jzL/9yfo1fNWwwIiMSzzDBt4g3i6U3b4LxPHGUlWSU+Jx4z6YLEj1xXPH7jXHRZ4JlRM5OeJ44Si8UOVjqYlUyNeIo4pmo65QtZj1XOW5y1So217slfGMnrK8tcpzmEJBaxBAkiFNRQRgU24rTqpFhI037Cxz/o+iVyKeQqg5FjAVVokF0/+B/87tYqTE54SZEE0PXiOB8jQHgXaNYd5/vYcZonQPAZuNLb/moDmPkkvd7WYkdA3zZwcd3WlD3gcgcYeDJkU3alIE2hUADez+ibckD/LdCz5vXW2sfpA5ChrlI3wMEhMFqk7HWfd3d39vbvmVZ/P2aecqIM1FFZAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AQdDBkQmV+argAABM5JREFUWMOtl9trHFUcxz9n9jYzm7Tb9JIWGtqUllLwVgRBQWl90S6lTaGmF6E2/4H+A4r+A0offdlWodL4kEZw9bG+iC9iKqLF0os0EBq02dtcdmdnfj7szGZ2M5vulv5g4JwzZ873+7ufUfMLi0RSa1TZNzVFrW511xBhzMxx79EyOwrbGSSzZ073zOcXFnlv5lTi3mvfzAPwwYVZ0tHiq6+/xu+/LlGtWYgEINL9oG657N41yfSRgxw9cHjDgfMLi8QVsR0X23E3gMXnkXQJ3L9zB99vI4EA0sVXqsPF93xW7y73ACVJBJwE1j8HUBIi3Sz/QNtrIzHN+yWdSdNue915IMKWXI4TJ050Adp+U+2bmkrV6tZeYAXwEJExMyf3Hi0rM5fvAvS4wPdBKRW6vZeEUiq0RIBCddddpymu0+rRbPvEzkPVmmWLBA1EdGAbYNctt7V712QwfeSgd/uXJQnPVVoEEAQBTxXpuEMELNtNNFW1WrsrQdBCRImQEeE/wBUh53v+7tW7y5n1+BZRIoJSioXvy3itdgclURSZTBrP87AdV57G1TT0d4GPgC+Bw8Ca7bifATsTgzBvjlH1qgNdICJM7tjB8soKw4jtuD+Gw3c229e1wF+P/uHPpT86rhBBRHActwAcAl4EjgIvAYcFJnlOoq5dv6EBU8AR4OUQ6AVgGjATwuC5YUdZ4A+z+1mBTUM/AKwqpZSIpPfu2VP7+/6DYEMMPE9N83lzq23ZWwxDd4GaQnmgUloqperSCpKC8HGCXz8G7NANU8CWUKPzsUDbyLPVyjYC39e0VMZx3Ccoha4b4lQqbUlnsBqNWCXpEMgKfA38DNSBcdPQr4zlMtTtFiqlulmQmJv9ks2idUZGZMjZmZMAfBUvxWHR0y5dmPV2FcbPG9ncFdPQS3nTuAJQLBZpBS1qjSqFwjipdGr9SWlsHTewm9ZmnngMKAaV9nBd+/bmdxSLRc6dnemm3+yZ06pcLvPGW2+yfWIn1ZpFEAQEvt95goCV1TXMXH4zAt4woaRF7RTAVylAUS6Xpdpsdjvk2VMnsSyHhuVEZTh+xgywBhwLfZIdKRfj7dWqPGFubq7T428ukslkaHttLNsZ9P3nwIfh+DhwS4EO9DA0zByBCE2n1fPxpQuznSCaX1js9nFp2pjbtqGhobQ0jUY9CbgALERah3IM+El1rNqTaqaph5W1uYGAFrfA5YvnyE9MoFBYtjMI/BXgQR/4pqVDZL3V9/cYrX+x7SnsXh/H5TLwW2iBQbVLNgn65CDsrSPOIJOXwmdQ4fRHrZilUqmXwNXrNzbbfxv4ArgFVBLeJ95oDEMHwHHcvvUcRqEwuBf0SSUEB9gfxsAgAkO1kcj/WvwKPaR8EhvPAUvRtdIMtR1FtBH37w8DEeChaehXw/xfAnzHcVOjEkhHrIe0Qlz7T8PuWLEd9+2w9KphgUUgQJ7JAgAPDT13NTrJyOYqIilrlEwQv/NPMTSByxfPIU37eCqtq2zWmPYDjbavaLYVdn2NuffPjqRJK2hRLBaHzoK+X7L1QE+nIFeYoFQqkTVMaTn2UOe1LWtwEJqGzqgRnS9M4Fb+3XBJGfSrFzW9dBw0icioJBzHzUXdMJM18APwWo6Kmy1O6X+V8UHDotBqogAAAABJRU5ErkJggg=="));}.bk-tool-icon-settings{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-settings);-webkit-mask-image:var(--bokeh-icon-settings);}.bk-tool-icon-unknown{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-unknown);-webkit-mask-image:var(--bokeh-icon-unknown);}.bk-tool-icon-fullscreen{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-fullscreen);-webkit-mask-image:var(--bokeh-icon-fullscreen);}.bk-tool-icon-chevron-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}.bk-tool-icon-chevron-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}.bk-tool-icon-chevron-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-left);-webkit-mask-image:var(--bokeh-icon-chevron-left);}.bk-tool-icon-chevron-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-right);-webkit-mask-image:var(--bokeh-icon-chevron-right);}.bk-tool-icon-caret-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-up);-webkit-mask-image:var(--bokeh-icon-caret-up);}.bk-tool-icon-caret-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-down);-webkit-mask-image:var(--bokeh-icon-caret-down);}.bk-tool-icon-caret-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-left);-webkit-mask-image:var(--bokeh-icon-caret-left);}.bk-tool-icon-caret-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-right);-webkit-mask-image:var(--bokeh-icon-caret-right);}.bk-tool-icon-see-on{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}.bk-tool-icon-see-off{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);}.bk-tool-icon-x-grip{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-grip);-webkit-mask-image:var(--bokeh-icon-y-grip);}.bk-tool-icon-y-grip{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-grip);-webkit-mask-image:var(--bokeh-icon-y-grip);}.bk-tool-icon-arrow-down-to-bar{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-arrow-down-to-bar);-webkit-mask-image:var(--bokeh-icon-arrow-down-to-bar);}.bk-tool-icon-arrow-up-from-bar{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-arrow-up-from-bar);-webkit-mask-image:var(--bokeh-icon-arrow-up-from-bar);}.bk-tool-icon-minimize{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-minimize);-webkit-mask-image:var(--bokeh-icon-minimize);}.bk-tool-icon-maximize{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-maximize);-webkit-mask-image:var(--bokeh-icon-maximize);}.bk-tool-icon-pin{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pin);-webkit-mask-image:var(--bokeh-icon-pin);}.bk-tool-icon-unpin{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-unpin);-webkit-mask-image:var(--bokeh-icon-unpin);}.bk-tool-icon-pointer{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-hand-pointing);-webkit-mask-image:var(--bokeh-icon-hand-pointing);}.bk-tool-icon-delete{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-trash);-webkit-mask-image:var(--bokeh-icon-trash);}.bk-tool-icon-bold{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-bold);-webkit-mask-image:var(--bokeh-icon-bold);}.bk-tool-icon-italic{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-italic);-webkit-mask-image:var(--bokeh-icon-italic);}.bk-tool-icon-text-align-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-left);-webkit-mask-image:var(--bokeh-icon-text-align-left);}.bk-tool-icon-text-align-center{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-center);-webkit-mask-image:var(--bokeh-icon-text-align-center);}.bk-tool-icon-text-align-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-right);-webkit-mask-image:var(--bokeh-icon-text-align-right);}.bk-tool-icon-check{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-check);-webkit-mask-image:var(--bokeh-icon-check);}.bk-tool-icon-square{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-square);-webkit-mask-image:var(--bokeh-icon-square);}.bk-tool-icon-square-check{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-square-check);-webkit-mask-image:var(--bokeh-icon-square-check);}:host{--bokeh-icon-question-mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2219%22%20x2%3D%2212%22%20y2%3D%2219.01%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-help:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2217%22%20x2%3D%2212%22%20y2%3D%2217.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2013.5a1.5%201.5%200%200%201%201%20-1.5a2.6%202.6%200%201%200%20-3%20-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%206l-12%2012%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%206l12%2012%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-settings:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M10.325%204.317c.426%20-1.756%202.924%20-1.756%203.35%200a1.724%201.724%200%200%200%202.573%201.066c1.543%20-.94%203.31%20.826%202.37%202.37a1.724%201.724%200%200%200%201.065%202.572c1.756%20.426%201.756%202.924%200%203.35a1.724%201.724%200%200%200%20-1.066%202.573c.94%201.543%20-.826%203.31%20-2.37%202.37a1.724%201.724%200%200%200%20-2.572%201.065c-.426%201.756%20-2.924%201.756%20-3.35%200a1.724%201.724%200%200%200%20-2.573%20-1.066c-1.543%20.94%20-3.31%20-.826%20-2.37%20-2.37a1.724%201.724%200%200%200%20-1.065%20-2.572c-1.756%20-.426%20-1.756%20-2.924%200%20-3.35a1.724%201.724%200%200%200%201.066%20-2.573c-.94%20-1.543%20.826%20-3.31%202.37%20-2.37c1%20.608%202.296%20.07%202.572%20-1.065z%22%3E%3C%2Fpath%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%3E%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-unknown:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M14%203v4a1%201%200%200%200%201%201h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M17%2021h-10a2%202%200%200%201%20-2%20-2v-14a2%202%200%200%201%202%20-2h7l5%205v11a2%202%200%200%201%20-2%202z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2017v.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2014a1.5%201.5%200%201%200%20-1.14%20-2.474%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-fullscreen:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%223%22%20y%3D%2216%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012v-6a2%202%200%200%201%202%20-2h12a2%202%200%200%201%202%202v12a2%202%200%200%201%20-2%202h-6%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%208h4v4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208l-5%205%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-save:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%2017v2a2%202%200%200%200%202%202h12a2%202%200%200%200%202%20-2v-2%22%20%2F%3E%0A%20%20%3Cpolyline%20points%3D%227%2011%2012%2016%2017%2011%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%224%22%20x2%3D%2212%22%20y2%3D%2216%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-copy:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208v-2a2%202%200%200%200%20-2%20-2h-8a2%202%200%200%200%20-2%202v8a2%202%200%200%200%202%202h2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-tap-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%2212%22%20x2%3D%226%22%20y2%3D%2212%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%223%22%20x2%3D%2212%22%20y2%3D%226%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%227.8%22%20x2%3D%225.6%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2216.2%22%20y1%3D%227.8%22%20x2%3D%2218.4%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%2216.2%22%20x2%3D%225.6%22%20y2%3D%2218.4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012l9%203l-4%202l-2%204l-3%20-9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-lasso-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4.028%2013.252c-.657%20-.972%20-1.028%20-2.078%20-1.028%20-3.252c0%20-3.866%204.03%20-7%209%20-7s9%203.134%209%207s-4.03%207%20-9%207c-1.913%200%20-3.686%20-.464%20-5.144%20-1.255%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%225%22%20cy%3D%2215%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M5%2017c0%201.42%20.316%202.805%201%204%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-auto-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-zoom-in:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2210%22%20y1%3D%227%22%20x2%3D%2210%22%20y2%3D%2213%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-zoom-out:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-undo:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2013l-4%20-4l4%20-4m-4%204h11a4%204%200%200%201%200%208h-1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-redo:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%2013l4%20-4l-4%20-4m4%204h-11a4%204%200%200%200%200%208h1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-reset:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M20%2011a8.1%208.1%200%200%200%20-15.5%20-2m-.5%20-4v4h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2013a8.1%208.1%200%200%200%2015.5%202m.5%204v-4h-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-hover:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M12%2020l-3%20-3h-2a3%203%200%200%201%20-3%20-3v-6a3%203%200%200%201%203%20-3h10a3%203%200%200%201%203%203v6a3%203%200%200%201%20-3%203h-2l-3%203%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%229%22%20x2%3D%2216%22%20y2%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%2213%22%20x2%3D%2214%22%20y2%3D%2213%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-crosshair:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M20%2012h-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2020v-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%204v4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-up:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%2015%2012%209%2018%2015%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%2215%206%209%2012%2015%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%229%206%2015%2012%209%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-up:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(180%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(270%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(90%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-see-on:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2012c-2.667%204.667%20-6%207%20-10%207s-7.333%20-2.333%20-10%20-7c2.667%20-4.667%206%20-7%2010%20-7s7.333%202.333%2010%207%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-see-off:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%223%22%20x2%3D%2221%22%20y2%3D%2221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10.584%2010.587a2%202%200%200%200%202.828%202.83%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9.363%205.365a9.466%209.466%200%200%201%202.637%20-.365c4%200%207.333%202.333%2010%207c-.778%201.361%20-1.612%202.524%20-2.503%203.488m-2.14%201.861c-1.631%201.1%20-3.415%201.651%20-5.357%201.651c-4%200%20-7.333%20-2.333%20-10%20-7c1.369%20-2.395%202.913%20-4.175%204.632%20-5.341%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-cursor-rotate:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cg%20stroke-width%3D%224%22%20stroke%3D%22white%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M9%204.55a8%208%200%200%201%206%2014.9m0%20-4.45v5h5%22%20%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3Cg%20stroke-width%3D%222%22%20stroke%3D%22black%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M9%204.55a8%208%200%200%201%206%2014.9m0%20-4.45v5h5%22%20%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A") 12 12, auto;--bokeh-icon-x-grip:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M5%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M19%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M19%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-grip:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%205m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%2012m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%2019m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%205m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%2012m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%2019m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-arrow-down-to-bar:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%2020l16%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l0%20-10%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l4%20-4%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l-4%20-4%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-arrow-up-from-bar:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M12%204l0%2010%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%204l4%204%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%204l-4%204%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M4%2020l16%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-minimize:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%2019v-2a2%202%200%200%201%202%20-2h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%205v2a2%202%200%200%200%202%202h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%2015h2a2%202%200%200%201%202%202v2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%209h2a2%202%200%200%200%202%20-2v-2%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-maximize:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%208v-2a2%202%200%200%201%202%20-2h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M4%2016v2a2%202%200%200%200%202%202h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M16%2020h2a2%202%200%200%200%202%20-2v-2%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pin:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%204.5l-4%204l-4%201.5l-1.5%201.5l7%207l1.5%20-1.5l1.5%20-4l4%20-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2015l-4.5%204.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14.5%204l5.5%205.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-unpin:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203l18%2018%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%204.5l-3.249%203.249m-2.57%201.433l-2.181%20.818l-1.5%201.5l7%207l1.5%20-1.5l.82%20-2.186m1.43%20-2.563l3.25%20-3.251%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2015l-4.5%204.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14.5%204l5.5%205.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-hand-pointing:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M8%2013v-8.5a1.5%201.5%200%200%201%203%200v7.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M11%2011.5v-2a1.5%201.5%200%201%201%203%200v2.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M14%2010.5a1.5%201.5%200%200%201%203%200v1.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M17%2011.5a1.5%201.5%200%200%201%203%200v4.5a6%206%200%200%201%20-6%206h-2h.208a6%206%200%200%201%20-5.012%20-2.7a69.74%2069.74%200%200%201%20-.196%20-.3c-.312%20-.479%20-1.407%20-2.388%20-3.286%20-5.728a1.5%201.5%200%200%201%20.536%20-2.022a1.867%201.867%200%200%201%202.28%20.28l1.47%201.47%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-trash:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%207l16%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M10%2011l0%206%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M14%2011l0%206%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%207l1%2012a2%202%200%200%200%202%202h8a2%202%200%200%200%202%20-2l1%20-12%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%207v-3a1%201%200%200%201%201%20-1h4a1%201%200%200%201%201%201v3%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-bold:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M7%205h6a3.5%203.5%200%200%201%200%207h-6z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2012h1a3.5%203.5%200%200%201%200%207h-7v-7%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-italic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M11%205l6%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M7%2019l6%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14%205l-4%2014%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012l10%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2018l14%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-center:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2012l8%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018l12%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%2012l10%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018l14%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M5%2012l5%205l10%20-10%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-square:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203m0%202a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-square-check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203m0%202a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2012l2%202l4%20-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");}'}, +function _(o,A,g,e,t){e(),g.tool_icon_square_check=g.tool_icon_square=g.tool_icon_check=g.tool_icon_text_align_right=g.tool_icon_text_align_center=g.tool_icon_text_align_left=g.tool_icon_italic=g.tool_icon_bold=g.tool_icon_delete=g.tool_icon_pointer=g.tool_icon_unpin=g.tool_icon_pin=g.tool_icon_maximize=g.tool_icon_minimize=g.tool_icon_arrow_up_from_bar=g.tool_icon_arrow_down_to_bar=g.tool_icon_y_grip=g.tool_icon_x_grip=g.tool_icon_see_off=g.tool_icon_see_on=g.tool_icon_caret_right=g.tool_icon_caret_left=g.tool_icon_caret_down=g.tool_icon_caret_up=g.tool_icon_chevron_right=g.tool_icon_chevron_left=void 0,g.tool_icon_copy="bk-tool-icon-copy",g.tool_icon_open="bk-tool-icon-open",g.tool_icon_replace_mode="bk-tool-icon-replace-mode",g.tool_icon_toggle_mode="bk-tool-icon-toggle-mode",g.tool_icon_append_mode="bk-tool-icon-append-mode",g.tool_icon_intersect_mode="bk-tool-icon-intersect-mode",g.tool_icon_subtract_mode="bk-tool-icon-subtract-mode",g.tool_icon_xor_mode="bk-tool-icon-xor-mode",g.tool_icon_invert_selection="bk-tool-icon-invert-selection",g.tool_icon_clear_selection="bk-tool-icon-clear-selection",g.tool_icon_box_select="bk-tool-icon-box-select",g.tool_icon_x_box_select="bk-tool-icon-x-box-select",g.tool_icon_y_box_select="bk-tool-icon-y-box-select",g.tool_icon_box_zoom="bk-tool-icon-box-zoom",g.tool_icon_x_box_zoom="bk-tool-icon-x-box-zoom",g.tool_icon_y_box_zoom="bk-tool-icon-y-box-zoom",g.tool_icon_auto_box_zoom="bk-tool-icon-auto-box-zoom",g.tool_icon_zoom_in="bk-tool-icon-zoom-in",g.tool_icon_zoom_out="bk-tool-icon-zoom-out",g.tool_icon_help="bk-tool-icon-help",g.tool_icon_hover="bk-tool-icon-hover",g.tool_icon_crosshair="bk-tool-icon-crosshair",g.tool_icon_lasso_select="bk-tool-icon-lasso-select",g.tool_icon_pan="bk-tool-icon-pan",g.tool_icon_x_pan="bk-tool-icon-x-pan",g.tool_icon_y_pan="bk-tool-icon-y-pan",g.tool_icon_pan_left="bk-tool-icon-pan-left",g.tool_icon_pan_right="bk-tool-icon-pan-right",g.tool_icon_pan_up="bk-tool-icon-pan-up",g.tool_icon_pan_down="bk-tool-icon-pan-down",g.tool_icon_range="bk-tool-icon-range",g.tool_icon_polygon_select="bk-tool-icon-polygon-select",g.tool_icon_redo="bk-tool-icon-redo",g.tool_icon_reset="bk-tool-icon-reset",g.tool_icon_save="bk-tool-icon-save",g.tool_icon_tap_select="bk-tool-icon-tap-select",g.tool_icon_undo="bk-tool-icon-undo",g.tool_icon_wheel_pan="bk-tool-icon-wheel-pan",g.tool_icon_wheel_zoom="bk-tool-icon-wheel-zoom",g.tool_icon_box_edit="bk-tool-icon-box-edit",g.tool_icon_freehand_draw="bk-tool-icon-freehand-draw",g.tool_icon_poly_draw="bk-tool-icon-poly-draw",g.tool_icon_point_draw="bk-tool-icon-point-draw",g.tool_icon_poly_edit="bk-tool-icon-poly-edit",g.tool_icon_line_edit="bk-tool-icon-line-edit",g.tool_icon_settings="bk-tool-icon-settings",g.tool_icon_unknown="bk-tool-icon-unknown",g.tool_icon_fullscreen="bk-tool-icon-fullscreen",g.tool_icon_chevron_up="bk-tool-icon-chevron-up",g.tool_icon_chevron_down="bk-tool-icon-chevron-down",g.tool_icon_chevron_left="bk-tool-icon-chevron-left",g.tool_icon_chevron_right="bk-tool-icon-chevron-right",g.tool_icon_caret_up="bk-tool-icon-caret-up",g.tool_icon_caret_down="bk-tool-icon-caret-down",g.tool_icon_caret_left="bk-tool-icon-caret-left",g.tool_icon_caret_right="bk-tool-icon-caret-right",g.tool_icon_see_on="bk-tool-icon-see-on",g.tool_icon_see_off="bk-tool-icon-see-off",g.tool_icon_x_grip="bk-tool-icon-x-grip",g.tool_icon_y_grip="bk-tool-icon-y-grip",g.tool_icon_arrow_down_to_bar="bk-tool-icon-arrow-down-to-bar",g.tool_icon_arrow_up_from_bar="bk-tool-icon-arrow-up-from-bar",g.tool_icon_minimize="bk-tool-icon-minimize",g.tool_icon_maximize="bk-tool-icon-maximize",g.tool_icon_pin="bk-tool-icon-pin",g.tool_icon_unpin="bk-tool-icon-unpin",g.tool_icon_pointer="bk-tool-icon-pointer",g.tool_icon_delete="bk-tool-icon-delete",g.tool_icon_bold="bk-tool-icon-bold",g.tool_icon_italic="bk-tool-icon-italic",g.tool_icon_text_align_left="bk-tool-icon-text-align-left",g.tool_icon_text_align_center="bk-tool-icon-text-align-center",g.tool_icon_text_align_right="bk-tool-icon-text-align-right",g.tool_icon_check="bk-tool-icon-check",g.tool_icon_square="bk-tool-icon-square",g.tool_icon_square_check="bk-tool-icon-square-check",g.default=':host{--bokeh-icon-color:#a1a6a9;--bokeh-icon-color-disabled:#d4d9db;}.bk-tool-icon-copy{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-copy);-webkit-mask-image:var(--bokeh-icon-copy);}.bk-tool-icon-open{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-open);-webkit-mask-image:var(--bokeh-icon-open);}.bk-tool-icon-replace-mode{background-image:var(--bokeh-icon-replace-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxokK3gniQAAAHpJREFUWMNjXLhsJcNAAiaGAQajDhhwB7DgEP+PxmeksvjgDwFcLmYkUh2hkBj8IcBIZXsYh1w2/I8v3sgAOM0bLYhGc8GgrwuICgldfQO88pcvXvg/aOuCUQeM5oLRuoCFCJcTbOMh5XOiW0JDNhdQS3y0IBp1ABwAAF8KGrhC1Eg6AAAAAElFTkSuQmCC"));}.bk-tool-icon-toggle-mode{background-image:var(--bokeh-icon-toggle-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADP3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja7ZZbsiMnDIbfWUWWgCRAYjlcq2YHWX5+6HYf2+OpiieepxyoRrRQC6EPsN34+8d0f6GwZ3YhqqWckkcJOWQu6Jg/Stkt+bDbXfgcwvuD3l0DDJVAyvFq6bS/6elycIiCXrxzZO0cqI8DOZz+7cnROZGsiFYU/XSUT0fCxwCdDsqxLJ+y6f0S6jhkv63EjsetRvRY+s3J83tQZK9HKIV5CIlHK3IGIOsJTgo6abfCh7rAVNEGuUWChLzK01UyIpor1PDS6IHK1aPXevdMK/BpIk9JTpd8qXcUX1PZqb+bOdjZ40d9tsOV80/ZX8+c3eZeM1ZRQkKq07mo21J2D3YVU6ypzcFf8oonwoXumlENu7qBWvfNV9RGmRi4JgXqVGjS2LJRQ4iBh2NdJ4Uby1aaKGduYEeLmgSarJKli4Fo29iD8BUL7Wmzb27PZpi5E0yZ4IzwydvVvfvBnOsoEHm7coW4cPoXB1pplNXCDERonkmNO8G3+lwWVwHBuLK8jkhGYuvhokb6uglkgxYYRsjjuJD20wFShKkjgiEBAVAjiZTIK7MSIZEGQAWh4wBxBQGKkTuC5CCSwMZ4TY1PlLYpR4baQY/LDCQiTpyCTZYCWCFE7B8Nhj1UosQQY0xRo8UcS5IUUkwpaVqXYlHR4DRqUlXTrMXEgkVLpmaWrWTOgksz5pQ1W865FMxZ4Lng6wKDUipXqaFGV1PVajXX0rB9WmixpabNWm6lc5eO+6Onrt167mXQwFYaYcSRhg4beZSJrTbFzTDjTFOnzTzLRe3E+lN9gxqd1HiTWoZ6UYNW9eaC1nUSFzMAw68IgbguBNjQvJh5oxB4kVvMfGacisgIMi5mnRYxEAyDOE66sXN8EF3k/hM3p+GBG/8uObfQvUnuZ26vqPX1M9Q2seMUrqR6wekbOVlhQ0T4sVsdfy/ds+J35bejb0ffjv5vjkYtqzdcSF8vL/o10x+NqJZRMNcSp9aVxL7srv+Spw0E/kL9O+/uI+EgGveRcCDdR8JBFO4j4dh29H44e3+sbXLXd78YWPvnrTW7D5yOb0fvOsL/kOz+AVNjw+bixfXWAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV9TtSIVRTuIOGSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi7OCk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXtGBIPoQRq/MLGNWkpLwHV/3CPD1Lsaz/M/9ObrVnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXb9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwBBp4M2ZRdKUhTyOeB9zP6pizQfwt0rXq9NfZx+gCkqavkDXBwCIwUKHvN592drb39e6bR3w/9qXJ4zBnVPwAADRppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6MjFjNTkwNzMtOTc1Zi00ZjAxLTljMDktYzY2NWY3NTBhMDA2IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjdhODY1NGM1LTZiYTktNDkwMi1iZWNmLTAyMGE3Y2I1MTI5NCIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmNmNDY3MmE2LTRjN2ItNDAwYi04N2U4LWExMjFjY2ZlZjI1YSIKICAgZGM6Rm9ybWF0PSJpbWFnZS9wbmciCiAgIEdJTVA6QVBJPSIyLjAiCiAgIEdJTVA6UGxhdGZvcm09IkxpbnV4IgogICBHSU1QOlRpbWVTdGFtcD0iMTcxNzQzODY2NDU5OTYwMiIKICAgR0lNUDpWZXJzaW9uPSIyLjEwLjMwIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjAyOTk4NWE4LThlMjItNGI2NS1hNTQwLTE3MWI2NjU3YTYxOCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChMaW51eCkiCiAgICAgIHN0RXZ0OndoZW49IjIwMjQtMDYtMDNUMjA6MTc6NDQrMDI6MDAiLz4KICAgIDwvcmRmOlNlcT4KICAgPC94bXBNTTpIaXN0b3J5PgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+rdIyIAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+gGAxIRLNWVUewAAAB9SURBVFjDY2AYBaNggAEjNsGFy1b+R+bHR4UzUlMcGTANymBZuGzlf3TX08o8ptFUOJoGBtrxTNS2HFd+p7kDyLF80KYZkiyhieXEWkas5VTLBciVDLXinOREiGwhNRIcCzmaBiSlj9YFw7Y9wEJK8Uppm3C0RTQKRgE2AAByVIRiIg+g0AAAAABJRU5ErkJggg=="));}.bk-tool-icon-append-mode{background-image:var(--bokeh-icon-append-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkZWD04WwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAoUlEQVRYw+1WQQ6AIAwrhO8Y/bIXEz9jIMSDr8ETCUEPQzA4pMeFLKNbu4l5WR0CDOMEALBGIzMuQIBEZQjPgP9JLjwTfBjY9sO9lZsFA9IafZng3BlIyVefgd8XQFZBAWe8jfNxwsDhir6rzoCiPiy1K+J8/FRQemv2XfAdFcQ9znU4Viqg9ta1qYJ+D1BnAIBrkgGVOrXNqUA9rbyZm/AEzFh4jEeY/soAAAAASUVORK5CYII="));}.bk-tool-icon-intersect-mode{background-image:var(--bokeh-icon-intersect-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxkrkOpp2wAAAPhJREFUWMPtV1EKwjAMTUavI3oawR/vtn5srJdREfzwMvHHQlcT2mpdMzFfWxiP5r2+JMN+mAiCOB72CABgR1cln4oOGocJnuMTSxWk8jMm7OggYkYXA9gPE3uyd8NXHONJ+eYMdE/NqCJmEZ5ZqlJJ4sUksKN7cYSaPoCZFWR1QI+Xm1fBACU63Cw22x0AAJxudwrffVwvZ+JmQdAHZkw0d4EpAMCw8k87pMdbnwtizQumJYv3nwV6XOA1qbUT/oQLUJgFRbsiNwFVucBIlyR3p0tdMp+XmFjfLKi1LatyAXtCRjPWBdL3Ke3VuACJKFfDr/xFN2fgAR/Go0qaLlmEAAAAAElFTkSuQmCC"));}.bk-tool-icon-subtract-mode{background-image:var(--bokeh-icon-subtract-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUFFxgsF5XNOQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABFUlEQVRYw9VWUQqDMAxNpWfxQxD1MoP97G7zQ5mH2RTZYLtM9lWoMbXtxLXNX4OG9r28l4hrd0PQoqxqAACYpxH25C/nkwCHyCBwSPoS09k1T5Fo+4EiExcC4v584xGFmyIXHBLRISAVZyZufUPVa4rcrwmPDgr93ylo+2GliLRUYHK6th/o/6r7nfLpqaCsagEA8Hh9FmcNKeRmgeYDC+SCq0B6FFi8/BcV6BdR9cL3gCv3ijPKOacsn3rBEcjmaVxpfGcg4wHxzgJJnc6241Hn23DERFRAu1bNcWa3Q0uXi62XR6sCaWoSejbtdLYmU3kTEunNgj0bUbQqYG/IcMaqwPS9jftoVCAQ0ZVDJwf0zQdH4AsyW6fpQu4YegAAAABJRU5ErkJggg=="));}.bk-tool-icon-xor-mode{background-image:var(--bokeh-icon-xor-mode, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAAmJLR0QA/4ePzL8AAACXSURBVEjH3VXBCcAwCDxLxgl0oM7nQEL3sa9ASLQIqS3UT4SIOfXOECsAADsAwb1/ECbbsGilvdKfli9OgmUEdGo8uKb0QIZ6PUvrwfcJzCn0zGtM9fx1BKzzFMTgvRf3jBZGs1TnxeVNwUIxxsqrWmBNYmJptewBBuZMwas3uiP+sA+8i8i2rpSlRg7+FaxZCHpFpu/EC1y3NtihGuwKAAAAAElFTkSuQmCC"));}.bk-tool-icon-invert-selection{background-image:var(--bokeh-icon-invert-selection, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAAmJLR0QA/4ePzL8AAAC2SURBVEjH7VVJEoQwCGysPMeqPCjv40FU+R/moCbMmEWNenFygUug6aYTmhRdZwBeX8ClVJboCRDN5SN4zc8gkBaCtaONKZ+vB0JEcT0HtmvtBALS+rnatAEAF/KcCroThXKZRAP0J3IUT25bpG33m1TwBCCqQOY9IKtCDsVkiOxQQdR6we2dlR+ws7FMYQObKsgJFUyB8Wtev2W+hYB1dtoxFa4mMaJQqb6PDRmPeIH+X1t/gQ8PhzjuVbw+wwAAAABJRU5ErkJggg=="));}.bk-tool-icon-clear-selection{background-image:var(--bokeh-icon-clear-selection, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AUGEhcuan3d3wAAAoRJREFUWMPtlzFP3EAQhd+b3TNSzg0N5TWXLkJQUUaKhIQ4fgP/g5ArrriE/I3opEgRrZtIVJR0FJQ010SioUmEZHtnUpwN9gWHGA5BJCy58MraffvmfZ41v3z9hqe8BE98vQh4cgG+Ydzmnrng8efvQJNi/uN7dznx/B3ggtfhf4ehNdUttRzBDIm/2VTiiWCG1HK0nc+3UWtq8BQIiEEakEQOADBIA4QCQmBqoHBhFNR27ikQSmGdYCdTqCpEHMDZmEKRWUBEv1gBDg5SzRJnpopILWICgWuRYflLamuzxB2BmtYqSRIka5VWU8QduXO+1hRc5YZu5GAwmP2ZJzND0IBu5HCV2+NQcAhAVRsnC2IbPzPdSjzd6to6VtfWkXi6YLaVWr7xoAwkfpb8MnC3SH7rKSMBe4M0jA/OTicFIbtCGRIyNbURhcf3ErCd6YwA1m0HgAxhw1NGQnlXBHG4kylVlSJuH0RfIP2CkL2I/qS1gIAAQiBl1QwFggIHtyxgrxK5PgyfC0JWKoT0HLh8LwoietB4TYKaIl7yeNURxB05UtMxDOcVQlZIrlRKdK6m47gjR/fuBRQihyLArtNeJD50Izcx2Eczu7iFkIug4VM3cpOr3MKDekFED0fWUHv9Zq0kpLnridjhY3XDg7NTN0jDrhO3X7O9Wg7wwyANu4mnayNg3gmbu0tCNoUyBNGv2l4rB9EXynA7082FOxAQLhU6rQVO9T2AvWowFToNCJcPORGxIRcnpjZSKATSU9NxvOQnAPArDSaQoUKnNI4iufkGtD4P3EHIcWZhz4HLceSOyrR3Izf5memPAL2cX3yhAkonysZVaWLBkd9dw1Ivv2a/AYPkK+ty1U1DAAAAAElFTkSuQmCC"));}.bk-tool-icon-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-select);-webkit-mask-image:var(--bokeh-icon-box-select);}.bk-tool-icon-x-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-select);-webkit-mask-image:var(--bokeh-icon-x-box-select);}.bk-tool-icon-y-box-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-select);-webkit-mask-image:var(--bokeh-icon-y-box-select);}.bk-tool-icon-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-box-zoom);-webkit-mask-image:var(--bokeh-icon-box-zoom);}.bk-tool-icon-x-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-box-zoom);-webkit-mask-image:var(--bokeh-icon-x-box-zoom);}.bk-tool-icon-y-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-box-zoom);-webkit-mask-image:var(--bokeh-icon-y-box-zoom);}.bk-tool-icon-auto-box-zoom{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-auto-box-zoom);-webkit-mask-image:var(--bokeh-icon-auto-box-zoom);}.bk-tool-icon-zoom-in{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-in);-webkit-mask-image:var(--bokeh-icon-zoom-in);}.bk-tool-icon-zoom-out{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-zoom-out);-webkit-mask-image:var(--bokeh-icon-zoom-out);}.bk-tool-icon-help{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-help);-webkit-mask-image:var(--bokeh-icon-help);}.bk-tool-icon-hover{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-hover);-webkit-mask-image:var(--bokeh-icon-hover);}.bk-tool-icon-crosshair{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-crosshair);-webkit-mask-image:var(--bokeh-icon-crosshair);}.bk-tool-icon-lasso-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-lasso-select);-webkit-mask-image:var(--bokeh-icon-lasso-select);}.bk-tool-icon-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan);-webkit-mask-image:var(--bokeh-icon-pan);}.bk-tool-icon-x-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-x-pan);-webkit-mask-image:var(--bokeh-icon-x-pan);}.bk-tool-icon-y-pan{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-pan);-webkit-mask-image:var(--bokeh-icon-y-pan);}.bk-tool-icon-pan-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan-left);-webkit-mask-image:var(--bokeh-icon-pan-left);}.bk-tool-icon-pan-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan-right);-webkit-mask-image:var(--bokeh-icon-pan-right);}.bk-tool-icon-pan-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan-up);-webkit-mask-image:var(--bokeh-icon-pan-up);}.bk-tool-icon-pan-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pan-down);-webkit-mask-image:var(--bokeh-icon-pan-down);}.bk-tool-icon-range{background-image:var(--bokeh-icon-range, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg=="));}.bk-tool-icon-polygon-select{background-image:var(--bokeh-icon-polygon-select, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII="));}.bk-tool-icon-redo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-redo);-webkit-mask-image:var(--bokeh-icon-redo);}.bk-tool-icon-reset{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-reset);-webkit-mask-image:var(--bokeh-icon-reset);}.bk-tool-icon-save{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-save);-webkit-mask-image:var(--bokeh-icon-save);}.bk-tool-icon-tap-select{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-tap-select);-webkit-mask-image:var(--bokeh-icon-tap-select);}.bk-tool-icon-undo{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-undo);-webkit-mask-image:var(--bokeh-icon-undo);}.bk-tool-icon-wheel-pan{background-image:var(--bokeh-icon-wheel-pan, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII="));}.bk-tool-icon-wheel-zoom{background-image:var(--bokeh-icon-wheel-zoom, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII="));}.bk-tool-icon-box-edit{background-image:var(--bokeh-icon-box-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII="));}.bk-tool-icon-freehand-draw{background-image:var(--bokeh-icon-freehand-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg=="));}.bk-tool-icon-poly-draw{background-image:var(--bokeh-icon-poly-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg=="));}.bk-tool-icon-point-draw{background-image:var(--bokeh-icon-point-draw, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg=="));}.bk-tool-icon-poly-edit{background-image:var(--bokeh-icon-poly-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII="));}.bk-tool-icon-line-edit{background-image:var(--bokeh-icon-line-edit, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG/3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVdpknSpDfzPKXwEJBDLccQW4Rv4+E4BtXR198znCdeLLijgQUoppWg3//Pv5f6FDwefXJRcUk3J4xNrrKzoFH8+pyUf9/f+8J3C7y/j7jnBGApow/mZ5l2vGJfXCzne8fZ13OV+9yl3ozvx2DDYyXbauCDvRoHPON3frl5Imt7MuX8hH0seiz9/xwxnDMFgYMczUPD7m89J4fwp/iK+OVRbiMf6gm8K4bv/3NN1Pzjw2fvwn+93PLzccTZ6mJU+/HTHSX723/bSOyLi58n8jmiqz/798+a/tUZZax7rNCKOakzXqIcpu4eFDe483kh4Mv4E/byfiqd49R2OHzC1Od/woxLD44siDVJaNHfbqQNi5MkZLXPnsMdKyFy5gwwCHXhocXahhhEK+OhgLmCYn1hon1vtPBxWcPIgrGTCZrR5fHvc58A/fb5stJaFOZEvT18BF1t8AYYxZ99YBUJoXZ/K9i+50/jPjxEbwKBsNxcYqL6dLZrQK7bC5jl4cVga/Ql5yuNuABfhbAEYCmDAJwpCiXxmzkTwYwE/CuQcIjcwQOKEB1ByDCGBnMJ2Nt7JtNey8BmGvIAICSlkUFODgqwYJSbkW0EIqZMgUUSSZClSRVNIMUlKKSfTKc0hxyw55ZxLrllLKLFISSWXUmrRyjVAxsTVVHMttVZVHKpRsZdivWKgcQstNmmp5VZabdoRPj126annXnrtOniEAQlwI408yqhDJ02E0oxTZpp5llmnLsTaCisuWWnlVVZd+mTtsvqVtU/m/po1uqzxJsrW5RdrGM75sQWZnIhxBsY4EhjPxgACmo0zXyhGNuaMM185uBCEgVKMnEHGGBiMk1gWPbl7Mfcrbw7e/V9545+Yc0bd/4M5Z9S9Mfedtx9YG7rlNmyCLAvhUyhkQPrNhvO5AJFnrZIR0plaLL5liQYdDi5TubaIokFDkmoFEB8CzxZVxemssDqthPhUblPgW1iQU5g6XwNwyVI7bUFRm035iNziMkgWvEso2SXnsJfveR0Y4SlVF8YWC1pVQhJiQa8JwDvlMNIxAfq3F7GDObHU1LlhzlZaWwNp6BvACxAgInGXlllMGZCpEnZHrGA6GM2718xuFcz7YdUQxzEEfjdWz4GlkcwaonT0pgA6mB25grPILtnSMhuCpsGhmMU6uJbixJs4lbKHqh+wos1jW2rchyGRCIvN9MXu+KAmMSfAlIKVvi/tybhCPJZCu2Ow9pLdyo427+X2ovMBmKNu8PA0zgl3fS0PB1DWWkVYB47bkyiJHhkFPzTzCjzn4Dq1mqoIWzCmcDGsHQmQAQdEHsixK1IXESd5rLU7THVJNV8obHS8sZeN0G5Jdt5pQTVKCCbgK1hItTS8o92iEZpuWJ/oC2r/0+zTmhvFXoaMVKRe27altDtid6OvG1hENVwBnC61KKugNoemOiPCCNb3GoHAZOFuDxxPsD+07nbSPcr/o1Zmc4jARhotrA5F5ZcjP9rPk90vR8A+k028A+8+5wKlHVID542sMzMCuXktkRzUCpE+xCBZywjNcJITx0II9x5948CekBl4XaC5OCX2nCyObdwN3HwQh5DWL/BBEkhDYHn/vpXNgZkVTZs8rj+HO8JFC6qvDVhgAEQSYCDyC86rMhG1WPzAVB9ZldDWG6EzDcFiqJBDvFS8mXDv3SK2LPoguVB2kwUx7UL5KqZWiEzocsbvSjNnaYDNtcYJuA5cDcsrvHd6yCxGjqvl9+wh3Qh8Kc9py8sNW8ncU8qwxdPj1qIGfrPqlXeoS4/JLa/LwRLTCtxuSoZUT+2Su6kXW3QNacYQbId6NUKVbROpviybFSPQQL9lhB2MamEnFyB9Y+hrG1+xBg+L0QG2TZdTdlcsBdq9oHdt9Bu5/IM9+Nfh1AwrSqlboTA6Bgq568A7UfbaMrZjoQZhQphofvNw93+bN+5X7FYKBgLmRid+tSdV6c02A4R0cHwKobmoMt5+6WI9XNISFIywpf6RMd5/a91vE78FzVHIFmxud4woyJx76OMTCa4yhgN3iJO2VfRPFMv9sYTxFzU+1eWeYS52pwOoSJldZY6koib4P1O427rbeUrNZfu44hWjz5ZSuu/vKPpimoXbLkfxWSPetvxDWG5jQSaZCxA3ad+p6rlttDhK+YwwK1LHVe0drDtorc5vnQ1247g58vewDtU7L3DRwrG4dhCUDRKKOtYr2dXHtpt+33d1WZmfkAHdl7Q8ENF+CNgB+nOw29n5F7SeNo/ckbu4laLTCdqJLHjmhJbKzmrCEX7zULrhefuHmu0V/1nbP1pnb6FaT7sOxn4pvWkfrYhYtCeJ4Xv+kOXrroIs1eHWXN1/AfzaY94ms5vaAAABg2lDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV/TSkUqDnYQUchQnSyIijhqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxcnRSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaBzTdNtPJhJjNrYrhV4QwjAgGIMrMMuYkKQXf8XWPAF/v4jzL/9yfo1fNWwwIiMSzzDBt4g3i6U3b4LxPHGUlWSU+Jx4z6YLEj1xXPH7jXHRZ4JlRM5OeJ44Si8UOVjqYlUyNeIo4pmo65QtZj1XOW5y1So217slfGMnrK8tcpzmEJBaxBAkiFNRQRgU24rTqpFhI037Cxz/o+iVyKeQqg5FjAVVokF0/+B/87tYqTE54SZEE0PXiOB8jQHgXaNYd5/vYcZonQPAZuNLb/moDmPkkvd7WYkdA3zZwcd3WlD3gcgcYeDJkU3alIE2hUADez+ibckD/LdCz5vXW2sfpA5ChrlI3wMEhMFqk7HWfd3d39vbvmVZ/P2aecqIM1FFZAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AQdDBkQmV+argAABM5JREFUWMOtl9trHFUcxz9n9jYzm7Tb9JIWGtqUllLwVgRBQWl90S6lTaGmF6E2/4H+A4r+A0offdlWodL4kEZw9bG+iC9iKqLF0os0EBq02dtcdmdnfj7szGZ2M5vulv5g4JwzZ873+7ufUfMLi0RSa1TZNzVFrW511xBhzMxx79EyOwrbGSSzZ073zOcXFnlv5lTi3mvfzAPwwYVZ0tHiq6+/xu+/LlGtWYgEINL9oG657N41yfSRgxw9cHjDgfMLi8QVsR0X23E3gMXnkXQJ3L9zB99vI4EA0sVXqsPF93xW7y73ACVJBJwE1j8HUBIi3Sz/QNtrIzHN+yWdSdNue915IMKWXI4TJ050Adp+U+2bmkrV6tZeYAXwEJExMyf3Hi0rM5fvAvS4wPdBKRW6vZeEUiq0RIBCddddpymu0+rRbPvEzkPVmmWLBA1EdGAbYNctt7V712QwfeSgd/uXJQnPVVoEEAQBTxXpuEMELNtNNFW1WrsrQdBCRImQEeE/wBUh53v+7tW7y5n1+BZRIoJSioXvy3itdgclURSZTBrP87AdV57G1TT0d4GPgC+Bw8Ca7bifATsTgzBvjlH1qgNdICJM7tjB8soKw4jtuD+Gw3c229e1wF+P/uHPpT86rhBBRHActwAcAl4EjgIvAYcFJnlOoq5dv6EBU8AR4OUQ6AVgGjATwuC5YUdZ4A+z+1mBTUM/AKwqpZSIpPfu2VP7+/6DYEMMPE9N83lzq23ZWwxDd4GaQnmgUloqperSCpKC8HGCXz8G7NANU8CWUKPzsUDbyLPVyjYC39e0VMZx3Ccoha4b4lQqbUlnsBqNWCXpEMgKfA38DNSBcdPQr4zlMtTtFiqlulmQmJv9ks2idUZGZMjZmZMAfBUvxWHR0y5dmPV2FcbPG9ncFdPQS3nTuAJQLBZpBS1qjSqFwjipdGr9SWlsHTewm9ZmnngMKAaV9nBd+/bmdxSLRc6dnemm3+yZ06pcLvPGW2+yfWIn1ZpFEAQEvt95goCV1TXMXH4zAt4woaRF7RTAVylAUS6Xpdpsdjvk2VMnsSyHhuVEZTh+xgywBhwLfZIdKRfj7dWqPGFubq7T428ukslkaHttLNsZ9P3nwIfh+DhwS4EO9DA0zByBCE2n1fPxpQuznSCaX1js9nFp2pjbtqGhobQ0jUY9CbgALERah3IM+El1rNqTaqaph5W1uYGAFrfA5YvnyE9MoFBYtjMI/BXgQR/4pqVDZL3V9/cYrX+x7SnsXh/H5TLwW2iBQbVLNgn65CDsrSPOIJOXwmdQ4fRHrZilUqmXwNXrNzbbfxv4ArgFVBLeJ95oDEMHwHHcvvUcRqEwuBf0SSUEB9gfxsAgAkO1kcj/WvwKPaR8EhvPAUvRtdIMtR1FtBH37w8DEeChaehXw/xfAnzHcVOjEkhHrIe0Qlz7T8PuWLEd9+2w9KphgUUgQJ7JAgAPDT13NTrJyOYqIilrlEwQv/NPMTSByxfPIU37eCqtq2zWmPYDjbavaLYVdn2NuffPjqRJK2hRLBaHzoK+X7L1QE+nIFeYoFQqkTVMaTn2UOe1LWtwEJqGzqgRnS9M4Fb+3XBJGfSrFzW9dBw0icioJBzHzUXdMJM18APwWo6Kmy1O6X+V8UHDotBqogAAAABJRU5ErkJggg=="));}.bk-tool-icon-settings{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-settings);-webkit-mask-image:var(--bokeh-icon-settings);}.bk-tool-icon-unknown{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-unknown);-webkit-mask-image:var(--bokeh-icon-unknown);}.bk-tool-icon-fullscreen{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-fullscreen);-webkit-mask-image:var(--bokeh-icon-fullscreen);}.bk-tool-icon-chevron-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}.bk-tool-icon-chevron-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}.bk-tool-icon-chevron-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-left);-webkit-mask-image:var(--bokeh-icon-chevron-left);}.bk-tool-icon-chevron-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-right);-webkit-mask-image:var(--bokeh-icon-chevron-right);}.bk-tool-icon-caret-up{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-up);-webkit-mask-image:var(--bokeh-icon-caret-up);}.bk-tool-icon-caret-down{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-down);-webkit-mask-image:var(--bokeh-icon-caret-down);}.bk-tool-icon-caret-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-left);-webkit-mask-image:var(--bokeh-icon-caret-left);}.bk-tool-icon-caret-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-caret-right);-webkit-mask-image:var(--bokeh-icon-caret-right);}.bk-tool-icon-see-on{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}.bk-tool-icon-see-off{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);}.bk-tool-icon-x-grip{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-grip);-webkit-mask-image:var(--bokeh-icon-y-grip);}.bk-tool-icon-y-grip{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-grip);-webkit-mask-image:var(--bokeh-icon-y-grip);}.bk-tool-icon-arrow-down-to-bar{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-arrow-down-to-bar);-webkit-mask-image:var(--bokeh-icon-arrow-down-to-bar);}.bk-tool-icon-arrow-up-from-bar{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-arrow-up-from-bar);-webkit-mask-image:var(--bokeh-icon-arrow-up-from-bar);}.bk-tool-icon-minimize{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-minimize);-webkit-mask-image:var(--bokeh-icon-minimize);}.bk-tool-icon-maximize{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-maximize);-webkit-mask-image:var(--bokeh-icon-maximize);}.bk-tool-icon-pin{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-pin);-webkit-mask-image:var(--bokeh-icon-pin);}.bk-tool-icon-unpin{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-unpin);-webkit-mask-image:var(--bokeh-icon-unpin);}.bk-tool-icon-pointer{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-hand-pointing);-webkit-mask-image:var(--bokeh-icon-hand-pointing);}.bk-tool-icon-delete{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-trash);-webkit-mask-image:var(--bokeh-icon-trash);}.bk-tool-icon-bold{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-bold);-webkit-mask-image:var(--bokeh-icon-bold);}.bk-tool-icon-italic{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-italic);-webkit-mask-image:var(--bokeh-icon-italic);}.bk-tool-icon-text-align-left{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-left);-webkit-mask-image:var(--bokeh-icon-text-align-left);}.bk-tool-icon-text-align-center{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-center);-webkit-mask-image:var(--bokeh-icon-text-align-center);}.bk-tool-icon-text-align-right{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-text-align-right);-webkit-mask-image:var(--bokeh-icon-text-align-right);}.bk-tool-icon-check{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-check);-webkit-mask-image:var(--bokeh-icon-check);}.bk-tool-icon-square{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-square);-webkit-mask-image:var(--bokeh-icon-square);}.bk-tool-icon-square-check{background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-square-check);-webkit-mask-image:var(--bokeh-icon-square-check);}:host{--bokeh-icon-question-mark:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M8%208a3.5%203%200%200%201%203.5%20-3h1a3.5%203%200%200%201%203.5%203a3%203%200%200%201%20-2%203a3%204%200%200%200%20-2%204%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2219%22%20x2%3D%2212%22%20y2%3D%2219.01%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-help:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%2217%22%20x2%3D%2212%22%20y2%3D%2217.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2013.5a1.5%201.5%200%200%201%201%20-1.5a2.6%202.6%200%201%200%20-3%20-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%206l-12%2012%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%206l12%2012%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-settings:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M10.325%204.317c.426%20-1.756%202.924%20-1.756%203.35%200a1.724%201.724%200%200%200%202.573%201.066c1.543%20-.94%203.31%20.826%202.37%202.37a1.724%201.724%200%200%200%201.065%202.572c1.756%20.426%201.756%202.924%200%203.35a1.724%201.724%200%200%200%20-1.066%202.573c.94%201.543%20-.826%203.31%20-2.37%202.37a1.724%201.724%200%200%200%20-2.572%201.065c-.426%201.756%20-2.924%201.756%20-3.35%200a1.724%201.724%200%200%200%20-2.573%20-1.066c-1.543%20.94%20-3.31%20-.826%20-2.37%20-2.37a1.724%201.724%200%200%200%20-1.065%20-2.572c-1.756%20-.426%20-1.756%20-2.924%200%20-3.35a1.724%201.724%200%200%200%201.066%20-2.573c-.94%20-1.543%20.826%20-3.31%202.37%20-2.37c1%20.608%202.296%20.07%202.572%20-1.065z%22%3E%3C%2Fpath%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%3E%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-unknown:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M14%203v4a1%201%200%200%200%201%201h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M17%2021h-10a2%202%200%200%201%20-2%20-2v-14a2%202%200%200%201%202%20-2h7l5%205v11a2%202%200%200%201%20-2%202z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2017v.01%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2014a1.5%201.5%200%201%200%20-1.14%20-2.474%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-fullscreen:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%223%22%20y%3D%2216%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012v-6a2%202%200%200%201%202%20-2h12a2%202%200%200%201%202%202v12a2%202%200%200%201%20-2%202h-6%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%208h4v4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208l-5%205%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-save:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%2017v2a2%202%200%200%200%202%202h12a2%202%200%200%200%202%20-2v-2%22%20%2F%3E%0A%20%20%3Cpolyline%20points%3D%227%2011%2012%2016%2017%2011%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%224%22%20x2%3D%2212%22%20y2%3D%2216%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-copy:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%208v-2a2%202%200%200%200%20-2%20-2h-8a2%202%200%200%200%20-2%202v8a2%202%200%200%200%202%202h2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-open:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%204h3l2%202h5a2%202%200%200%201%202%202v7a2%202%200%200%201%20-2%202h-10a2%202%200%200%201%20-2%20-2v-9a2%202%200%200%201%202%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M17%2017v2a2%202%200%200%201%20-2%202h-10a2%202%200%200%201%20-2%20-2v-9a2%202%200%200%201%202%20-2h2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-tap-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%2212%22%20x2%3D%226%22%20y2%3D%2212%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2212%22%20y1%3D%223%22%20x2%3D%2212%22%20y2%3D%226%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%227.8%22%20x2%3D%225.6%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2216.2%22%20y1%3D%227.8%22%20x2%3D%2218.4%22%20y2%3D%225.6%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227.8%22%20y1%3D%2216.2%22%20x2%3D%225.6%22%20y2%3D%2218.4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012l9%203l-4%202l-2%204l-3%20-9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-lasso-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4.028%2013.252c-.657%20-.972%20-1.028%20-2.078%20-1.028%20-3.252c0%20-3.866%204.03%20-7%209%20-7s9%203.134%209%207s-4.03%207%20-9%207c-1.913%200%20-3.686%20-.464%20-5.144%20-1.255%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%225%22%20cy%3D%2215%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M5%2017c0%201.42%20.316%202.805%201%204%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%209l3%203l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%209l-3%203l3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012h9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2012h9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-pan:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2018l3%203l3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%206l-3%20-3l-3%203%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2012v9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%203v9%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M20%2015h-8v3.586a1%201%200%200%201%20-1.707%20.707l-6.586%20-6.586a1%201%200%200%201%200%20-1.414l6.586%20-6.586a1%201%200%200%201%201.707%20.707v3.586h8a1%201%200%200%201%201%201v4a1%201%200%200%201%20-1%201z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%209h8v-3.586a1%201%200%200%201%201.707%20-.707l6.586%206.586a1%201%200%200%201%200%201.414l-6.586%206.586a1%201%200%200%201%20-1.707%20-.707v-3.586h-8a1%201%200%200%201%20-1%20-1v-4a1%201%200%200%201%201%20-1z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan-up:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2020v-8h-3.586a1%201%200%200%201%20-.707%20-1.707l6.586%20-6.586a1%201%200%200%201%201.414%200l6.586%206.586a1%201%200%200%201%20-.707%201.707h-3.586v8a1%201%200%200%201%20-1%201h-4a1%201%200%200%201%20-1%20-1z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pan-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%204v8h3.586a1%201%200%200%201%20.707%201.707l-6.586%206.586a1%201%200%200%201%20-1.414%200l-6.586%20-6.586a1%201%200%200%201%20.707%20-1.707h3.586v-8a1%201%200%200%201%201%20-1h4a1%201%200%200%201%201%201z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-box-select:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%206v-1a1%201%200%200%201%201%20-1h1m5%200h2m5%200h1a1%201%200%200%201%201%201v1m0%205v2m0%205v1a1%201%200%200%201%20-1%201h-1m-5%200h-2m-5%200h-1a1%201%200%200%201%20-1%20-1v-1m0%20-5v-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-x-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M17%2013l-4%204%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l4%204%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M13%2013l2%202l2%20-2%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%2015v2.5%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-auto-box-zoom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%225%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2022l-3%20-3%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018h-1a2%202%200%200%201%20-2%20-2v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%2011v-1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M3%206v-1a2%202%200%200%201%202%20-2h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%203h1%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%203h1a2%202%200%200%201%202%202v1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-zoom-in:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2210%22%20y1%3D%227%22%20x2%3D%2210%22%20y2%3D%2213%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-zoom-out:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%227%22%20y1%3D%2210%22%20x2%3D%2213%22%20y2%3D%2210%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2215%22%20y2%3D%2215%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-undo:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%2013l-4%20-4l4%20-4m-4%204h11a4%204%200%200%201%200%208h-1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-redo:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%2013l4%20-4l-4%20-4m4%204h-11a4%204%200%200%200%200%208h1%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-reset:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M20%2011a8.1%208.1%200%200%200%20-15.5%20-2m-.5%20-4v4h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2013a8.1%208.1%200%200%200%2015.5%202m.5%204v-4h-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-hover:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M12%2020l-3%20-3h-2a3%203%200%200%201%20-3%20-3v-6a3%203%200%200%201%203%20-3h10a3%203%200%200%201%203%203v6a3%203%200%200%201%20-3%203h-2l-3%203%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%229%22%20x2%3D%2216%22%20y2%3D%229%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%228%22%20y1%3D%2213%22%20x2%3D%2214%22%20y2%3D%2213%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-crosshair:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M20%2012h-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%2020v-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M12%204v4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-up:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%2015%2012%209%2018%2015%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%2215%206%209%2012%2015%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-chevron-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpolyline%20points%3D%229%206%2015%2012%209%2018%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-up:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(180%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(270%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-caret-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M18%2015l-6%20-6l-6%206h12%22%20transform%3D%22rotate(90%2012%2012)%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-see-on:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M22%2012c-2.667%204.667%20-6%207%20-10%207s-7.333%20-2.333%20-10%20-7c2.667%20-4.667%206%20-7%2010%20-7s7.333%202.333%2010%207%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-see-off:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cline%20x1%3D%223%22%20y1%3D%223%22%20x2%3D%2221%22%20y2%3D%2221%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10.584%2010.587a2%202%200%200%200%202.828%202.83%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9.363%205.365a9.466%209.466%200%200%201%202.637%20-.365c4%200%207.333%202.333%2010%207c-.778%201.361%20-1.612%202.524%20-2.503%203.488m-2.14%201.861c-1.631%201.1%20-3.415%201.651%20-5.357%201.651c-4%200%20-7.333%20-2.333%20-10%20-7c1.369%20-2.395%202.913%20-4.175%204.632%20-5.341%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-cursor-rotate:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cg%20stroke-width%3D%224%22%20stroke%3D%22white%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M9%204.55a8%208%200%200%201%206%2014.9m0%20-4.45v5h5%22%20%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3Cg%20stroke-width%3D%222%22%20stroke%3D%22black%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M9%204.55a8%208%200%200%201%206%2014.9m0%20-4.45v5h5%22%20%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A") 12 12, auto;--bokeh-icon-x-grip:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M5%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M19%209m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M19%2015m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-y-grip:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M9%205m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%2012m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%2019m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%205m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%2012m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%2019m-1%200a1%201%200%201%200%202%200a1%201%200%201%200%20-2%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-arrow-down-to-bar:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%2020l16%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l0%20-10%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l4%20-4%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%2014l-4%20-4%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-arrow-up-from-bar:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M12%204l0%2010%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%204l4%204%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M12%204l-4%204%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M4%2020l16%200%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-minimize:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%2019v-2a2%202%200%200%201%202%20-2h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M15%205v2a2%202%200%200%200%202%202h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%2015h2a2%202%200%200%201%202%202v2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%209h2a2%202%200%200%200%202%20-2v-2%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-maximize:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%208v-2a2%202%200%200%201%202%20-2h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M4%2016v2a2%202%200%200%200%202%202h2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v2%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M16%2020h2a2%202%200%200%200%202%20-2v-2%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-pin:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M15%204.5l-4%204l-4%201.5l-1.5%201.5l7%207l1.5%20-1.5l1.5%20-4l4%20-4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2015l-4.5%204.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14.5%204l5.5%205.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-unpin:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203l18%2018%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M15%204.5l-3.249%203.249m-2.57%201.433l-2.181%20.818l-1.5%201.5l7%207l1.5%20-1.5l.82%20-2.186m1.43%20-2.563l3.25%20-3.251%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2015l-4.5%204.5%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14.5%204l5.5%205.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-hand-pointing:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M8%2013v-8.5a1.5%201.5%200%200%201%203%200v7.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M11%2011.5v-2a1.5%201.5%200%201%201%203%200v2.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M14%2010.5a1.5%201.5%200%200%201%203%200v1.5%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M17%2011.5a1.5%201.5%200%200%201%203%200v4.5a6%206%200%200%201%20-6%206h-2h.208a6%206%200%200%201%20-5.012%20-2.7a69.74%2069.74%200%200%201%20-.196%20-.3c-.312%20-.479%20-1.407%20-2.388%20-3.286%20-5.728a1.5%201.5%200%200%201%20.536%20-2.022a1.867%201.867%200%200%201%202.28%20.28l1.47%201.47%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-trash:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%207l16%200%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M10%2011l0%206%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M14%2011l0%206%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M5%207l1%2012a2%202%200%200%200%202%202h8a2%202%200%200%200%202%20-2l1%20-12%22%3E%3C%2Fpath%3E%0A%20%20%3Cpath%20d%3D%22M9%207v-3a1%201%200%200%201%201%20-1h4a1%201%200%200%201%201%201v3%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-bold:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M7%205h6a3.5%203.5%200%200%201%200%207h-6z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M13%2012h1a3.5%203.5%200%200%201%200%207h-7v-7%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-italic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M11%205l6%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M7%2019l6%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14%205l-4%2014%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2012l10%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M4%2018l14%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-center:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M8%2012l8%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018l12%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-text-align-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M4%206l16%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%2012l10%200%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M6%2018l14%200%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M5%2012l5%205l10%20-10%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-square:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203m0%202a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");--bokeh-icon-square-check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%3Cpath%20d%3D%22M3%203m0%202a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2012l2%202l4%20-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");}'}, function _(e,r,n,o,s){var c;o();const d=e(51);class t extends d.Model{constructor(e){super(e)}}n.RendererGroup=t,c=t,t.__name__="RendererGroup",c.define((({Bool:e})=>({visible:[e,!0]})))}, function _(e,o,_,d,s){d();const n=e(57),c=e(51);class t extends n.DOMView{}_.DOMNodeView=t,t.__name__="DOMNodeView";class M extends c.Model{constructor(e){super(e)}}_.DOMNode=M,M.__name__="DOMNode",M.__module__="bokeh.models.dom"}, function _(t,e,s,a,n){var r;a();const i=t(1),_=t(127),o=t(168),l=t(80),d=t(20),c=t(24),h=t(56),u=t(24),p=i.__importStar(t(18)),v=t(11);class y extends _.DataAnnotationView{*children(){yield*super.children();const{start:t,end:e}=this;null!=t&&(yield t),null!=e&&(yield e)}async lazy_initialize(){await super.lazy_initialize();const{start:t,end:e}=this.model;null!=t&&(this.start=await(0,h.build_view)(t,{parent:this})),null!=e&&(this.end=await(0,h.build_view)(e,{parent:this}))}set_data(t){super.set_data(t);const e=u.Indices.all_set(this._x_start.length);this.start?.set_data(t,e),this.end?.set_data(t,e)}remove(){this.start?.remove(),this.end?.remove(),super.remove()}map_data(){const{frame:t}=this.plot_view,[e,s]=(()=>{switch(this.model.start_units){case"canvas":return[new c.ScreenArray(this._x_start),new c.ScreenArray(this._y_start)];case"screen":return[t.bbox.xview.v_compute(this._x_start),t.bbox.yview.v_compute(this._y_start)];case"data":return[this.coordinates.x_scale.v_compute(this._x_start),this.coordinates.y_scale.v_compute(this._y_start)]}})(),[a,n]=(()=>{switch(this.model.end_units){case"canvas":return[new c.ScreenArray(this._x_end),new c.ScreenArray(this._y_end)];case"screen":return[t.bbox.xview.v_compute(this._x_end),t.bbox.yview.v_compute(this._y_end)];case"data":return[this.coordinates.x_scale.v_compute(this._x_end),this.coordinates.y_scale.v_compute(this._y_end)]}})();this._sx_start=e,this._sy_start=s,this._sx_end=a,this._sy_end=n;const r=e.length,i=this._angles=new c.ScreenArray(r);for(let t=0;t({x_start:[p.XCoordinateSpec,{field:"x_start"}],y_start:[p.YCoordinateSpec,{field:"y_start"}],start_units:[d.CoordinateUnits,"data"],start:[e(t(o.ArrowHead)),null],x_end:[p.XCoordinateSpec,{field:"x_end"}],y_end:[p.YCoordinateSpec,{field:"y_end"}],end_units:[d.CoordinateUnits,"data"],end:[e(t(o.ArrowHead)),()=>new o.OpenHead]})))}, @@ -297,117 +297,118 @@ function _(i,e,s,n,t){var c;n();const d=i(51),h=i(10),l=i(9),_=i(21),u=i(13);s.O function _(e,t,n,s,o){s();const r=e(51);class c extends r.Model{do_selection(e,t,n,s){return null!=e&&(t.selected.update(e,n,s),t._select.emit(),!t.selected.is_empty())}}n.SelectionPolicy=c,c.__name__="SelectionPolicy";class l extends c{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!=t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_intersection(t);return e}return null}}n.IntersectRenderers=l,l.__name__="IntersectRenderers";class _ extends c{hit_test(e,t){const n=[];for(const s of t){const t=s.hit_test(e);null!=t&&n.push(t)}if(n.length>0){const e=n[0];for(const t of n)e.update_through_union(t);return e}return null}}n.UnionRenderers=_,_.__name__="UnionRenderers"}, function _(e,n,c,o,t){var a;o();const r=e(51),s=e(130);class l extends r.Model{constructor(e){super(e)}}c.DataSource=l,a=l,l.__name__="DataSource",a.define((({Ref:e})=>({selected:[e(s.Selection),()=>new s.Selection,{readonly:!0}]})))}, function _(a,n,o,e,r){var t;e();const c=a(128);class u extends c.ColumnarDataSource{constructor(a){super(a)}}o.ColumnDataSource=u,t=u,u.__name__="ColumnDataSource",t.define((({Unknown:a,Dict:n,Arrayable:o})=>({data:[n(o(a)),{}]})))}, -function _(n,t,e,o,r){o();const c=n(1),i=c.__importDefault(n(135)),l=c.__importDefault(n(136)),a=n(24),s=new l.default("GOOGLE"),u=new l.default("WGS84"),f=(0,i.default)(u,s);e.wgs84_mercator={compute:(n,t)=>isFinite(n)&&isFinite(t)?f.forward([n,t]):[NaN,NaN],invert:(n,t)=>isFinite(n)&&isFinite(t)?f.inverse([n,t]):[NaN,NaN]};const _={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},p={lon:[-180,180],lat:[-85.06,85.06]},{min:g,max:h}=Math;function m(n,t){const o=g(n.length,t.length),r=(0,a.infer_type)(n,t),c=new r(o),i=new r(o);return e.inplace.project_xy(n,t,c,i),[c,i]}e.clip_mercator=function(n,t,e){const[o,r]=_[e];return[h(n,o),g(t,r)]},e.in_bounds=function(n,t){const[e,o]=p[t];return eisFinite(n)&&isFinite(t)?f.forward([n,t]):[NaN,NaN],invert:(n,t)=>isFinite(n)&&isFinite(t)?f.inverse([n,t]):[NaN,NaN]};const _={lon:[-20026376.39,20026376.39],lat:[-20048966.1,20048966.1]},p={lon:[-180,180],lat:[-85.06,85.06]},{min:g,max:h}=Math;function m(n,t){const o=g(n.length,t.length),r=(0,a.infer_type)(n,t),c=new r(o),i=new r(o);return e.inplace.project_xy(n,t,c,i),[c,i]}!function(n){function t(n,t,o,r){const c=g(n.length,t.length);o=o??n,r=r??t;for(let i=0;i2?void 0!==e.name&&"geocent"===e.name||void 0!==n.name&&"geocent"===n.name?"number"==typeof o.z?[o.x,o.y,o.z].concat(t.splice(3)):[o.x,o.y,t[2]].concat(t.splice(3)):[o.x,o.y].concat(t.splice(2)):[o.x,o.y]):(a=(0,c.default)(e,n,t,r),2===(i=Object.keys(t)).length||i.forEach((function(r){if(void 0!==e.name&&"geocent"===e.name||void 0!==n.name&&"geocent"===n.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;a[r]=t[r]})),a)}function l(e){return e instanceof i.default?e:e.oProj?e.oProj:(0,i.default)(e)}t.default=function(e,n,t){e=l(e);var r,o=!1;return void 0===n?(n=e,e=u,o=!0):(void 0!==n.x||Array.isArray(n))&&(t=n,n=e,e=u,o=!0),n=l(n),t?f(e,n,t):(r={forward:function(t,r){return f(e,n,t,r)},inverse:function(t,r){return f(n,e,t,r)}},o&&(r.oProj=n),r)}}, function _(t,e,a,s,i){s();const l=t(1),u=l.__importDefault(t(137)),r=l.__importDefault(t(148)),d=l.__importDefault(t(149)),o=t(157),f=l.__importDefault(t(159)),p=l.__importDefault(t(160)),m=l.__importDefault(t(144)),n=t(161);function h(t,e){if(!(this instanceof h))return new h(t);e=e||function(t){if(t)throw t};var a=(0,u.default)(t);if("object"==typeof a){var s=h.projections.get(a.projName);if(s){if(a.datumCode&&"none"!==a.datumCode){var i=(0,m.default)(f.default,a.datumCode);i&&(a.datum_params=a.datum_params||(i.towgs84?i.towgs84.split(","):null),a.ellps=i.ellipse,a.datumName=i.datumName?i.datumName:a.datumCode)}a.k0=a.k0||1,a.axis=a.axis||"enu",a.ellps=a.ellps||"wgs84",a.lat1=a.lat1||a.lat0;var l=(0,o.sphere)(a.a,a.b,a.rf,a.ellps,a.sphere),d=(0,o.eccentricity)(l.a,l.b,l.rf,a.R_A),_=(0,n.getNadgrids)(a.nadgrids),c=a.datum||(0,p.default)(a.datumCode,a.datum_params,l.a,l.b,d.es,d.ep2,_);(0,r.default)(this,a),(0,r.default)(this,s),this.a=l.a,this.b=l.b,this.rf=l.rf,this.sphere=l.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=c,this.init(),e(null,this)}else e(t)}else e(t)}h.projections=d.default,h.projections.start(),a.default=h}, function _(t,r,n,u,e){u();const f=t(1),i=f.__importDefault(t(138)),a=f.__importDefault(t(145)),o=f.__importDefault(t(140)),l=f.__importDefault(t(144));var C=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var d=["3857","900913","3785","102113"];n.default=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in i.default}(t))return i.default[t];if(function(t){return C.some((function(r){return t.indexOf(r)>-1}))}(t)){var r=(0,a.default)(t);if(function(t){var r=(0,l.default)(t,"authority");if(r){var n=(0,l.default)(r,"epsg");return n&&d.indexOf(n)>-1}}(r))return i.default["EPSG:3857"];var n=function(t){var r=(0,l.default)(t,"extension");if(r)return(0,l.default)(r,"proj4")}(r);return n?(0,o.default)(n):r}return function(t){return"+"===t[0]}(t)?(0,o.default)(t):void 0}}, function _(t,r,i,e,n){e();const f=t(1),a=f.__importDefault(t(139)),l=f.__importDefault(t(140)),u=f.__importDefault(t(145));function o(t){var r=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?o[t]=(0,l.default)(arguments[1]):o[t]=(0,u.default)(arguments[1]):o[t]=i}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?o.apply(r,t):o(t)}));if("string"==typeof t){if(t in o)return o[t]}else"EPSG"in t?o["EPSG:"+t.EPSG]=t:"ESRI"in t?o["ESRI:"+t.ESRI]=t:"IAU2000"in t?o["IAU2000:"+t.IAU2000]=t:console.log(t);return}}(0,a.default)(o),i.default=o}, function _(t,l,G,S,e){S(),G.default=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}}, -function _(t,n,o,a,u){a();const e=t(1),r=t(141),i=e.__importDefault(t(142)),f=e.__importDefault(t(143)),l=e.__importDefault(t(144));o.default=function(t){var n,o,a,u={},e=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*r.D2R},lat_1:function(t){u.lat1=t*r.D2R},lat_2:function(t){u.lat2=t*r.D2R},lat_ts:function(t){u.lat_ts=t*r.D2R},lon_0:function(t){u.long0=t*r.D2R},lon_1:function(t){u.long1=t*r.D2R},lon_2:function(t){u.long2=t*r.D2R},alpha:function(t){u.alpha=parseFloat(t)*r.D2R},gamma:function(t){u.rectified_grid_angle=parseFloat(t)},lonc:function(t){u.longc=t*r.D2R},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r:function(t){u.a=u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var n=(0,l.default)(f.default,t);n&&(u.to_meter=n.to_meter)},from_greenwich:function(t){u.from_greenwich=t*r.D2R},pm:function(t){var n=(0,l.default)(i.default,t);u.from_greenwich=(n||parseFloat(t))*r.D2R},nadgrids:function(t){"@null"===t?u.datumCode="none":u.nadgrids=t},axis:function(t){var n="ewnsud";3===t.length&&-1!==n.indexOf(t.substr(0,1))&&-1!==n.indexOf(t.substr(1,1))&&-1!==n.indexOf(t.substr(2,1))&&(u.axis=t)},approx:function(){u.approx=!0}};for(n in e)o=e[n],n in c?"function"==typeof(a=c[n])?a(o):u[a]=o:u[n]=o;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}}, +function _(t,n,o,a,u){a(),o.default=function(t){var n,o,a,u={},e=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,n){var o=n.split("=");return o.push(!0),t[o[0].toLowerCase()]=o[1],t}),{}),c={proj:"projName",datum:"datumCode",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*r.D2R},lat_1:function(t){u.lat1=t*r.D2R},lat_2:function(t){u.lat2=t*r.D2R},lat_ts:function(t){u.lat_ts=t*r.D2R},lon_0:function(t){u.long0=t*r.D2R},lon_1:function(t){u.long1=t*r.D2R},lon_2:function(t){u.long2=t*r.D2R},alpha:function(t){u.alpha=parseFloat(t)*r.D2R},gamma:function(t){u.rectified_grid_angle=parseFloat(t)},lonc:function(t){u.longc=t*r.D2R},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r:function(t){u.a=u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var n=(0,l.default)(f.default,t);n&&(u.to_meter=n.to_meter)},from_greenwich:function(t){u.from_greenwich=t*r.D2R},pm:function(t){var n=(0,l.default)(i.default,t);u.from_greenwich=(n||parseFloat(t))*r.D2R},nadgrids:function(t){"@null"===t?u.datumCode="none":u.nadgrids=t},axis:function(t){var n="ewnsud";3===t.length&&-1!==n.indexOf(t.substr(0,1))&&-1!==n.indexOf(t.substr(1,1))&&-1!==n.indexOf(t.substr(2,1))&&(u.axis=t)},approx:function(){u.approx=!0}};for(n in e)o=e[n],n in c?"function"==typeof(a=c[n])?a(o):u[a]=o:u[n]=o;"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase());return u};const e=t(1),r=t(141),i=e.__importDefault(t(142)),f=e.__importDefault(t(143)),l=e.__importDefault(t(144))}, function _(S,_,P,R,I){R(),P.PJD_3PARAM=1,P.PJD_7PARAM=2,P.PJD_GRIDSHIFT=3,P.PJD_WGS84=4,P.PJD_NODATUM=5,P.SRS_WGS84_SEMIMAJOR=6378137,P.SRS_WGS84_SEMIMINOR=6356752.314,P.SRS_WGS84_ESQUARED=.0066943799901413165,P.SEC_TO_RAD=484813681109536e-20,P.HALF_PI=Math.PI/2,P.SIXTH=.16666666666666666,P.RA4=.04722222222222222,P.RA6=.022156084656084655,P.EPSLN=1e-10,P.D2R=.017453292519943295,P.R2D=57.29577951308232,P.FORTPI=Math.PI/4,P.TWO_PI=2*Math.PI,P.SPI=3.14159265359}, function _(o,r,a,e,s){e();var n={};a.default=n,n.greenwich=0,n.lisbon=-9.131906111111,n.paris=2.337229166667,n.bogota=-74.080916666667,n.madrid=-3.687938888889,n.rome=12.452333333333,n.bern=7.439583333333,n.jakarta=106.807719444444,n.ferro=-17.666666666667,n.brussels=4.367975,n.stockholm=18.058277777778,n.athens=23.7163375,n.oslo=10.722916666667}, function _(t,e,f,o,u){o(),f.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}}, -function _(e,r,t,a,n){a();var o=/[\s_\-\/\(\)]/g;t.default=function(e,r){if(e[r])return e[r];for(var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;++f0?90:-90)):(e.lat0=_(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(n),n}}, +function _(e,r,t,a,n){a(),t.default=function(e,r){if(e[r])return e[r];var t,a=Object.keys(e),n=r.toLowerCase().replace(o,""),f=-1;for(;++f0?90:-90)):(e.lat0=_(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(n),n};const r=e(1);var l=.017453292519943295;const d=r.__importDefault(e(146)),i=e(147);function _(e){return e*l}}, function _(t,e,r,i,s){i(),r.default=function(t){return new c(t).output()};var h=1,o=/\s/,n=/[A-Za-z]/,a=/[A-Za-z84_]/,u=/[,\]]/,d=/[\d\.E\-\+]/;function c(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=h}c.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;o.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case h:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},c.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},c.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=h)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=h,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},c.prototype.number=function(t){if(!d.test(t)){if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},c.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},c.prototype.keyword=function(t){if(a.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=h)}if(!u.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},c.prototype.neutral=function(t){if(n.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(d.test(t))return this.word=t,void(this.state=3);if(!u.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},c.prototype.output=function(){for(;this.place90&&a*o.R2D<-90&&h*o.R2D>180&&h*o.R2D<-180)return null;if(Math.abs(Math.abs(a)-o.HALF_PI)<=o.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(o.FORTPI+.5*a));else{var e=Math.sin(a),r=(0,l.default)(this.e,a,e);i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0-this.a*this.k0*Math.log(r)}return t.x=i,t.y=s,t}function M(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=o.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var e=Math.exp(-a/(this.a*this.k0));if(-9999===(s=(0,u.default)(this.e,e)))return null}return i=(0,n.default)(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.init=f,s.forward=_,s.inverse=M,s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:f,forward:_,inverse:M,names:s.names}}, +function _(t,o,a,e,n){e(),a.add=s,a.get=l,a.start=v;const r=t(1),f=r.__importDefault(t(150)),u=r.__importDefault(t(156));var i=[f.default,u.default],c={},d=[];function s(t,o){var a=d.length;return t.names?(d[a]=t,t.names.forEach((function(t){c[t.toLowerCase()]=a})),this):(console.log(o),!0)}function l(t){if(!t)return!1;var o=t.toLowerCase();return void 0!==c[o]&&d[c[o]]?d[c[o]]:void 0}function v(){i.forEach(s)}a.default={start:v,add:s,get:l}}, +function _(t,i,s,h,a){h(),s.init=f,s.forward=_,s.inverse=M;const e=t(1),r=e.__importDefault(t(151)),n=e.__importDefault(t(152)),l=e.__importDefault(t(154)),u=e.__importDefault(t(155)),o=t(141);function f(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=(0,r.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function _(t){var i,s,h=t.x,a=t.y;if(a*o.R2D>90&&a*o.R2D<-90&&h*o.R2D>180&&h*o.R2D<-180)return null;if(Math.abs(Math.abs(a)-o.HALF_PI)<=o.EPSLN)return null;if(this.sphere)i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(o.FORTPI+.5*a));else{var e=Math.sin(a),r=(0,l.default)(this.e,a,e);i=this.x0+this.a*this.k0*(0,n.default)(h-this.long0),s=this.y0-this.a*this.k0*Math.log(r)}return t.x=i,t.y=s,t}function M(t){var i,s,h=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=o.HALF_PI-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var e=Math.exp(-a/(this.a*this.k0));if(-9999===(s=(0,u.default)(this.e,e)))return null}return i=(0,n.default)(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t}s.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],s.default={init:f,forward:_,inverse:M,names:s.names}}, function _(t,n,r,u,a){u(),r.default=function(t,n,r){var u=t*n;return r/Math.sqrt(1-u*u)}}, -function _(t,n,u,a,f){a();const e=t(1),o=t(141),_=e.__importDefault(t(153));u.default=function(t){return Math.abs(t)<=o.SPI?t:t-(0,_.default)(t)*o.TWO_PI}}, +function _(t,n,u,a,f){a(),u.default=function(t){return Math.abs(t)<=o.SPI?t:t-(0,_.default)(t)*o.TWO_PI};const e=t(1),o=t(141),_=e.__importDefault(t(153))}, function _(n,t,u,f,c){f(),u.default=function(n){return n<0?-1:1}}, -function _(t,n,a,o,u){o();const c=t(141);a.default=function(t,n,a){var o=t*a,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(c.HALF_PI-n))/o}}, -function _(t,a,n,r,f){r();const h=t(141);n.default=function(t,a){for(var n,r,f=.5*t,o=h.HALF_PI-2*Math.atan(a),u=0;u<=15;u++)if(n=t*Math.sin(o),o+=r=h.HALF_PI-2*Math.atan(a*Math.pow((1-n)/(1+n),f))-o,Math.abs(r)<=1e-10)return o;return-9999}}, +function _(t,n,a,o,u){o(),a.default=function(t,n,a){var o=t*a,u=.5*t;return o=Math.pow((1-o)/(1+o),u),Math.tan(.5*(c.HALF_PI-n))/o};const c=t(141)}, +function _(t,a,n,r,f){r(),n.default=function(t,a){for(var n,r,f=.5*t,o=h.HALF_PI-2*Math.atan(a),u=0;u<=15;u++)if(n=t*Math.sin(o),o+=r=h.HALF_PI-2*Math.atan(a*Math.pow((1-n)/(1+n),f))-o,Math.abs(r)<=1e-10)return o;return-9999};const h=t(141)}, function _(n,i,e,t,r){function a(){}function f(n){return n}t(),e.init=a,e.forward=f,e.inverse=f,e.names=["longlat","identity"],e.default={init:a,forward:f,inverse:f,names:e.names}}, -function _(t,r,e,a,n){a();const f=t(1),i=t(141),u=f.__importStar(t(158)),c=f.__importDefault(t(144));e.eccentricity=function(t,r,e,a){var n=t*t,f=r*r,u=(n-f)/n,c=0;return a?(n=(t*=1-u*(i.SIXTH+u*(i.RA4+u*i.RA6)))*t,u=0):c=Math.sqrt(u),{es:u,e:c,ep2:(n-f)/f}},e.sphere=function(t,r,e,a,n){if(!t){var f=(0,c.default)(u.default,a);f||(f=u.WGS84),t=f.a,r=f.b,e=f.rf}return e&&!r&&(r=(1-1/e)*t),(0===e||Math.abs(t-r)3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=d.PJD_7PARAM,s.datum_params[3]*=d.SEC_TO_RAD,s.datum_params[4]*=d.SEC_TO_RAD,s.datum_params[5]*=d.SEC_TO_RAD,s.datum_params[6]=s.datum_params[6]/1e6+1))),r&&(s.datum_type=d.PJD_GRIDSHIFT,s.grids=r),s.a=_,s.b=t,s.es=u,s.ep2=p,s}}, -function _(t,e,n,r,i){r();var u={};function o(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:u[t]||null,isNull:!1}}function l(t){return t/3600*Math.PI/180}function a(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function d(t){return t.map((function(t){return[l(t.longitudeShift),l(t.latitudeShift)]}))}function g(t,e,n){return{name:a(t,e+8,e+16).trim(),parent:a(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function f(t,e,n,r){for(var i=e+176,u=[],o=0;oa.y||N>a.x||g1e-12&&Math.abs(n.y)>1e-12);if(d<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=(0,u.default)(l.x+t.ll[0]),a.y=l.y+t.ll[1]}else isNaN(l.x)||(a.x=r.x+l.x,a.y=r.y+l.y);return a}function f(r,e){var t,a={x:r.x/e.del[0],y:r.y/e.del[1]},i=Math.floor(a.x),l=Math.floor(a.y),n=a.x-1*i,o=a.y-1*l,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=e.lim[0])return u;if(l<0||l>=e.lim[1])return u;t=l*e.lim[0]+i;var d=e.cvs[t][0],s=e.cvs[t][1];t++;var y=e.cvs[t][0],f=e.cvs[t][1];t+=e.lim[0];var x=e.cvs[t][0],m=e.cvs[t][1];t--;var N=e.cvs[t][0],c=e.cvs[t][1],_=n*o,g=n*(1-o),v=(1-n)*(1-o),S=(1-n)*o;return u.x=v*d+g*y+S*N+_*x,u.y=v*s+g*f+S*c+_*m,u}t.default=function(r,e,t){if((0,o.compareDatums)(r,e))return t;if(r.datum_type===n.PJD_NODATUM||e.datum_type===n.PJD_NODATUM)return t;var a=r.a,i=r.es;if(r.datum_type===n.PJD_GRIDSHIFT){if(0!==s(r,!1,t))return;a=n.SRS_WGS84_SEMIMAJOR,i=n.SRS_WGS84_ESQUARED}var l=e.a,u=e.b,y=e.es;if(e.datum_type===n.PJD_GRIDSHIFT&&(l=n.SRS_WGS84_SEMIMAJOR,u=n.SRS_WGS84_SEMIMINOR,y=n.SRS_WGS84_ESQUARED),i===y&&a===l&&!d(r.datum_type)&&!d(e.datum_type))return t;if(t=(0,o.geodeticToGeocentric)(t,i,a),d(r.datum_type)&&(t=(0,o.geocentricToWgs84)(t,r.datum_type,r.datum_params)),d(e.datum_type)&&(t=(0,o.geocentricFromWgs84)(t,e.datum_type,e.datum_params)),t=(0,o.geocentricToGeodetic)(t,y,l,u),e.datum_type===n.PJD_GRIDSHIFT&&0!==s(e,!0,t))return;return t},t.applyGridShift=s}, -function _(a,t,r,m,s){m();const u=a(141);r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===u.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==u.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,s,_,e,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-u.HALF_PI&&d>-1.001*u.HALF_PI)d=-u.HALF_PI;else if(d>u.HALF_PI&&d<1.001*u.HALF_PI)d=u.HALF_PI;else{if(d<-u.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>u.HALF_PI)return{x:1/0,y:1/0,z:a.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(d),e=Math.cos(d),_=s*s,{x:((m=r/Math.sqrt(1-t*_))+i)*e*Math.cos(n),y:(m+i)*e*Math.sin(n),z:(m*(1-t)+i)*s}},r.geocentricToGeodetic=function(a,t,r,m){var s,_,e,n,d,i,p,P,y,z,M,o,A,c,x,h=1e-12,f=a.x,I=a.y,F=a.z?a.z:0;if(s=Math.sqrt(f*f+I*I),_=Math.sqrt(f*f+I*I+F*F),s/r1e-24&&A<30);return{x:c,y:Math.atan(M/Math.abs(z)),z:x}},r.geocentricToWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-e*a.z)+s,z:i*(-n*a.x+e*a.y+a.z)+_}}},r.geocentricFromWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-s)/i,y=(a.z-_)/i;return{x:p+d*P-n*y,y:-d*p+P+e*y,z:n*p-e*P+y}}}}, +function _(t,e,n,r,i){r(),n.default=function(t,e){var n=new DataView(e),r=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),i=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:a(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(n,r),o=function(t,e,n){for(var r=176,i=[],u=0;ua.y||N>a.x||g1e-12&&Math.abs(n.y)>1e-12);if(d<0)return console.log("Inverse grid shift iterator failed to converge."),a;a.x=(0,u.default)(l.x+t.ll[0]),a.y=l.y+t.ll[1]}else isNaN(l.x)||(a.x=r.x+l.x,a.y=r.y+l.y);return a}function f(r,e){var t,a={x:r.x/e.del[0],y:r.y/e.del[1]},i=Math.floor(a.x),l=Math.floor(a.y),n=a.x-1*i,o=a.y-1*l,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=e.lim[0])return u;if(l<0||l>=e.lim[1])return u;t=l*e.lim[0]+i;var d=e.cvs[t][0],s=e.cvs[t][1];t++;var y=e.cvs[t][0],f=e.cvs[t][1];t+=e.lim[0];var x=e.cvs[t][0],m=e.cvs[t][1];t--;var N=e.cvs[t][0],c=e.cvs[t][1],_=n*o,g=n*(1-o),v=(1-n)*(1-o),S=(1-n)*o;return u.x=v*d+g*y+S*N+_*x,u.y=v*s+g*f+S*c+_*m,u}}, +function _(a,t,r,m,s){m(),r.compareDatums=function(a,t){return a.datum_type===t.datum_type&&(!(a.a!==t.a||Math.abs(a.es-t.es)>5e-11)&&(a.datum_type===u.PJD_3PARAM?a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]:a.datum_type!==u.PJD_7PARAM||a.datum_params[0]===t.datum_params[0]&&a.datum_params[1]===t.datum_params[1]&&a.datum_params[2]===t.datum_params[2]&&a.datum_params[3]===t.datum_params[3]&&a.datum_params[4]===t.datum_params[4]&&a.datum_params[5]===t.datum_params[5]&&a.datum_params[6]===t.datum_params[6]))},r.geodeticToGeocentric=function(a,t,r){var m,s,_,e,n=a.x,d=a.y,i=a.z?a.z:0;if(d<-u.HALF_PI&&d>-1.001*u.HALF_PI)d=-u.HALF_PI;else if(d>u.HALF_PI&&d<1.001*u.HALF_PI)d=u.HALF_PI;else{if(d<-u.HALF_PI)return{x:-1/0,y:-1/0,z:a.z};if(d>u.HALF_PI)return{x:1/0,y:1/0,z:a.z}}n>Math.PI&&(n-=2*Math.PI);return s=Math.sin(d),e=Math.cos(d),_=s*s,{x:((m=r/Math.sqrt(1-t*_))+i)*e*Math.cos(n),y:(m+i)*e*Math.sin(n),z:(m*(1-t)+i)*s}},r.geocentricToGeodetic=function(a,t,r,m){var s,_,e,n,d,i,p,P,y,z,M,o,A,c,x,h,f=1e-12,I=a.x,F=a.y,H=a.z?a.z:0;if(s=Math.sqrt(I*I+F*F),_=Math.sqrt(I*I+F*F+H*H),s/r1e-24&&A<30);return x=Math.atan(M/Math.abs(z)),{x:c,y:x,z:h}},r.geocentricToWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x+r[0],y:a.y+r[1],z:a.z+r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6];return{x:i*(a.x-d*a.y+n*a.z)+m,y:i*(d*a.x+a.y-e*a.z)+s,z:i*(-n*a.x+e*a.y+a.z)+_}}},r.geocentricFromWgs84=function(a,t,r){if(t===u.PJD_3PARAM)return{x:a.x-r[0],y:a.y-r[1],z:a.z-r[2]};if(t===u.PJD_7PARAM){var m=r[0],s=r[1],_=r[2],e=r[3],n=r[4],d=r[5],i=r[6],p=(a.x-m)/i,P=(a.y-s)/i,y=(a.z-_)/i;return{x:p+d*P-n*y,y:-d*p+P+e*y,z:n*p-e*P+y}}};const u=a(141)}, function _(e,a,i,s,n){s(),i.default=function(e,a,i){var s,n,r,c=i.x,d=i.y,f=i.z||0,u={};for(r=0;r<3;r++)if(!a||2!==r||void 0!==i.z)switch(0===r?(s=c,n=-1!=="ew".indexOf(e.axis[r])?"x":"y"):1===r?(s=d,n=-1!=="ns".indexOf(e.axis[r])?"y":"x"):(s=f,n="z"),e.axis[r]){case"e":case"n":u[n]=s;break;case"w":case"s":u[n]=-s;break;case"u":void 0!==i[n]&&(u.z=s);break;case"d":void 0!==i[n]&&(u.z=-s);break;default:return null}return u}}, -function _(n,t,e,u,f){u(),e.default=function(n){var t={x:n[0],y:n[1]};return n.length>2&&(t.z=n[2]),n.length>3&&(t.m=n[3]),t}}, +function _(n,t,e,u,f){u(),e.default=function(n){var t={x:n[0],y:n[1]};n.length>2&&(t.z=n[2]);n.length>3&&(t.m=n[3]);return t}}, function _(e,i,n,t,r){function o(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}t(),n.default=function(e){o(e.x),o(e.y)}}, function _(e,i,s,o,t){var n,l,a,r,_;o();const c=e(1),p=e(169),d=e(80),T=c.__importStar(e(18));class m extends p.MarkingView{}s.ArrowHeadView=m,m.__name__="ArrowHeadView";class v extends p.Marking{constructor(e){super(e)}}s.ArrowHead=v,n=v,v.__name__="ArrowHead",n.define((()=>({size:[T.NumberSpec,25]})));class u extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(0,0),e.lineTo(.5*s,s)}paint(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),this.visuals.line.apply(e,i)}}s.OpenHeadView=u,u.__name__="OpenHeadView";class h extends v{constructor(e){super(e)}}s.OpenHead=h,l=h,h.__name__="OpenHead",l.prototype.default_view=u,l.mixins(d.LineVector);class V extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(.5*s,s)}paint(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),e.closePath(),this.visuals.fill.apply(e,i),this.visuals.line.apply(e,i)}}s.NormalHeadView=V,V.__name__="NormalHeadView";class H extends v{constructor(e){super(e)}}s.NormalHead=H,a=H,H.__name__="NormalHead",a.prototype.default_view=V,a.mixins([d.LineVector,d.FillVector]),a.override({fill_color:"black"});class w extends m{clip(e,i){this.visuals.line.set_vectorize(e,i);const s=this.size.get(i);e.moveTo(.5*s,s),e.lineTo(.5*s,-2),e.lineTo(-.5*s,-2),e.lineTo(-.5*s,s),e.lineTo(0,.5*s),e.lineTo(.5*s,s)}paint(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,s),e.lineTo(0,0),e.lineTo(-.5*s,s),e.lineTo(0,.5*s),e.closePath(),this.visuals.fill.apply(e,i),this.visuals.line.apply(e,i)}}s.VeeHeadView=w,w.__name__="VeeHeadView";class x extends v{constructor(e){super(e)}}s.VeeHead=x,r=x,x.__name__="VeeHead",r.prototype.default_view=w,r.mixins([d.LineVector,d.FillVector]),r.override({fill_color:"black"});class g extends m{paint(e,i){const s=this.size.get(i);e.beginPath(),e.moveTo(.5*s,0),e.lineTo(-.5*s,0),this.visuals.line.apply(e,i)}clip(e,i){}}s.TeeHeadView=g,g.__name__="TeeHeadView";class z extends v{constructor(e){super(e)}}s.TeeHead=z,_=z,z.__name__="TeeHead",_.prototype.default_view=g,_.mixins(d.LineVector)}, function _(t,e,n,i,s){var a;i();const r=t(1),o=t(51),c=t(57),_=r.__importStar(t(87)),p=r.__importStar(t(18));class u extends c.DOMComponentView{initialize(){super.initialize(),this.visuals=new _.Visuals(this)}request_paint(){this.parent.request_paint()}get canvas(){return this.parent.canvas}set_data(t,e){const n=this;for(const i of this.model){if(!(i instanceof p.VectorSpec||i instanceof p.ScalarSpec))continue;const s=i.uniform(t).select(e);n[`${i.attr}`]=s}}}n.MarkingView=u,u.__name__="MarkingView";class l extends o.Model{constructor(t){super(t)}}n.Marking=l,a=l,l.__name__="Marking",a.define((({})=>({})))}, -function _(t,e,i,o,a){var r;o();const n=t(1),_=t(81),s=t(171),l=t(188),h=t(189),c=t(194),u=t(191),p=t(200),d=t(192),m=t(241),f=t(193),g=t(253),w=t(255),b=t(176),y=t(20),x=n.__importStar(t(80)),v=t(256),k=t(257),j=t(259),z=t(173),B=t(56),S=t(64),L=t(8);class T extends _.AnnotationView{get orientation(){return this._orientation}*children(){yield*super.children(),yield this._axis_view,yield this._title_view}initialize(){super.initialize();const{ticker:t,formatter:e}=this.model;this._ticker="auto"!=t?t:this._create_ticker(),this._formatter="auto"!=e?e:this._create_formatter(),this._major_range=this._create_major_range(),this._major_scale=this._create_major_scale(),this._minor_range=new w.Range1d({start:0,end:1}),this._minor_scale=new g.LinearScale,this._frame=new l.CartesianFrame({x_scale:this._major_scale,y_scale:this._minor_scale,x_range:this._major_range,y_range:this._minor_range}),this._axis=this._create_axis(),this._apply_axis_properties(),this._title=new s.Title,this._apply_title_properties()}async lazy_initialize(){await super.lazy_initialize();const t=this,e={get parent(){return t.parent},get root(){return t.root},get frame(){return t._frame_view},get frame_view(){return t._frame_view},get canvas_view(){return t.parent.canvas_view},request_layout(){t.layout.dirty=!0,t.parent.request_layout()},request_paint(){t.parent.request_paint(t)},notify_finished_after_paint(){t.parent.notify_finished_after_paint()}};this._frame_view=await(0,B.build_view)(this._frame,{parent:e}),this._axis_view=await(0,B.build_view)(this._axis,{parent:e}),this._title_view=await(0,B.build_view)(this._title,{parent:e})}remove(){this._title_view.remove(),this._axis_view.remove(),super.remove()}_apply_axis_properties(){const t={ticker:this._ticker,formatter:this._formatter,major_label_standoff:this.model.label_standoff,axis_line_color:null,major_tick_in:this.model.major_tick_in,major_tick_out:this.model.major_tick_out,minor_tick_in:this.model.minor_tick_in,minor_tick_out:this.model.minor_tick_out,major_label_overrides:this.model.major_label_overrides,major_label_policy:this.model.major_label_policy,...x.attrs_of(this.model,"major_label_",x.Text,!0),...x.attrs_of(this.model,"major_tick_",x.Line,!0),...x.attrs_of(this.model,"minor_tick_",x.Line,!0)};this._axis.setv(t)}_apply_title_properties(){const t={text:this.model.title??"",standoff:this.model.title_standoff,...x.attrs_of(this.model,"title_",x.Text,!1)};this._title.setv(t)}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this._apply_title_properties(),this._apply_axis_properties()})),this.connect(this._ticker.change,(()=>this.request_paint())),this.connect(this._formatter.change,(()=>this.request_paint()))}_update_frame(){const[t,e,i,o]=(()=>"horizontal"==this.orientation?[this._major_scale,this._minor_scale,this._major_range,this._minor_range]:[this._minor_scale,this._major_scale,this._minor_range,this._major_range])();this._frame.setv({x_scale:t,y_scale:e,x_range:i,y_range:o})}update_layout(){const{location:t,width:e,height:i,padding:o,margin:a}=this.model,[r,n]=(()=>{if(!(0,L.isString)(t))return["end","start"];switch(t){case"top_left":return["start","start"];case"top":case"top_center":return["start","center"];case"top_right":return["start","end"];case"bottom_left":return["end","start"];case"bottom":case"bottom_center":return["end","center"];case"bottom_right":return["end","end"];case"left":case"center_left":return["center","start"];case"center":case"center_center":return["center","center"];case"right":case"center_right":return["center","end"]}})(),_=this._orientation=(()=>{const{orientation:t}=this.model;return"auto"==t?null!=this.panel?this.panel.is_horizontal?"horizontal":"vertical":"start"==n||"end"==n||"center"==r?"vertical":"horizontal":t})();this._update_frame();const s=new k.NodeLayout,l=new k.VStack,h=new k.VStack,c=new k.HStack,u=new k.HStack;s.absolute=!0,l.absolute=!0,h.absolute=!0,c.absolute=!0,u.absolute=!0,s.on_resize((t=>this._frame_view.set_geometry(t)));const p=new j.BorderLayout;this._inner_layout=p,p.absolute=!0,p.center_panel=s,p.top_panel=l,p.bottom_panel=h,p.left_panel=c,p.right_panel=u;const d={left:o,right:o,top:o,bottom:o},m=(()=>{if(null==this.panel){if((0,L.isString)(t))return{left:a,right:a,top:a,bottom:a};{const[e,i]=t;return{left:e,right:a,top:a,bottom:i}}}if(!(0,L.isString)(t)){const[e,i]=t;return p.fixup_geometry=(t,o)=>{const a=t,r=this.layout.bbox,{width:n,height:_}=t;if(t=new S.BBox({left:r.left+e,bottom:r.bottom-i,width:n,height:_}),null!=o){const e=t.left-a.left,i=t.top-a.top,{left:r,top:n,width:_,height:s}=o;o=new S.BBox({left:r+e,top:n+i,width:_,height:s})}return[t,o]},{left:e,right:0,top:0,bottom:i}}p.fixup_geometry=(t,e)=>{const i=t;if("horizontal"==_){const{top:e,width:i,height:o}=t;if("end"==n){const{right:a}=this.layout.bbox;t=new S.BBox({right:a,top:e,width:i,height:o})}else if("center"==n){const{hcenter:a}=this.layout.bbox;t=new S.BBox({hcenter:Math.round(a),top:e,width:i,height:o})}}else{const{left:e,width:i,height:o}=t;if("end"==r){const{bottom:a}=this.layout.bbox;t=new S.BBox({left:e,bottom:a,width:i,height:o})}else if("center"==r){const{vcenter:a}=this.layout.bbox;t=new S.BBox({left:e,vcenter:Math.round(a),width:i,height:o})}}if(null!=e){const o=t.left-i.left,a=t.top-i.top,{left:r,top:n,width:_,height:s}=e;e=new S.BBox({left:r+o,top:n+a,width:_,height:s})}return[t,e]}})();let f,g,w,b;if(p.padding=d,null!=this.panel)f="max",g=void 0,w=void 0,b=void 0;else if("auto"==("horizontal"==_?e:i)){f="fixed";const t=this._get_major_size_factor();null!=t&&(g=25*t),w={percent:.3},b={percent:.8}}else f="fit",g=void 0;if("horizontal"==_){const t="auto"==e?void 0:e,o="auto"==i?25:i;p.set_sizing({width_policy:f,height_policy:"min",width:g,min_width:w,max_width:b,halign:n,valign:r,margin:m}),p.center_panel.set_sizing({width_policy:"auto"==e?"fit":"fixed",height_policy:"fixed",width:t,height:o})}else{const t="auto"==e?25:e,o="auto"==i?void 0:i;p.set_sizing({width_policy:"min",height_policy:f,height:g,min_height:w,max_height:b,halign:n,valign:r,margin:m}),p.center_panel.set_sizing({width_policy:"fixed",height_policy:"auto"==i?"fit":"fixed",width:t,height:o})}l.set_sizing({width_policy:"fit",height_policy:"min"}),h.set_sizing({width_policy:"fit",height_policy:"min"}),c.set_sizing({width_policy:"min",height_policy:"fit"}),u.set_sizing({width_policy:"min",height_policy:"fit"});const{_title_view:y}=this;"horizontal"==_?(y.panel=new z.SidePanel("above"),y.update_layout(),l.children.push(y.layout)):(y.panel=new z.SidePanel("left"),y.update_layout(),c.children.push(y.layout));const{panel:x}=this,B=null!=x&&_==x.orientation?x.side:"horizontal"==_?"below":"right",T=(()=>{switch(B){case"above":return l;case"below":return h;case"left":return c;case"right":return u}})(),{_axis_view:q}=this;if(q.panel=new z.SidePanel(B),q.update_layout(),null!=q.layout&&T.children.push(q.layout),null!=this.panel){const t=new v.Grid([{layout:p,row:0,col:0}]);t.absolute=!0,"horizontal"==_?t.set_sizing({width_policy:"max",height_policy:"min"}):t.set_sizing({width_policy:"min",height_policy:"max"}),this.layout=t}else this.layout=this._inner_layout;const{visible:A}=this.model;this.layout.sizing.visible=A}_create_axis(){return new c.LinearAxis}_create_formatter(){return new m.BasicTickFormatter}_create_major_range(){return new w.Range1d({start:0,end:1})}_create_major_scale(){return new g.LinearScale}_create_ticker(){return new p.BasicTicker}_get_major_size_factor(){return null}_paint(){const{ctx:t}=this.layer;t.save(),this._paint_bbox(t,this._inner_layout.bbox),this._paint_colors(t,this._inner_layout.center_panel.bbox),this._title_view.paint(),this._axis_view.paint(),t.restore()}_paint_bbox(t,e){const{x:i,y:o}=e;let{width:a,height:r}=e;i+a>=this.parent.canvas_view.bbox.width&&(a-=1),o+r>=this.parent.canvas_view.bbox.height&&(r-=1),t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(i,o,a,r)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(i,o,a,r)),t.restore()}}i.BaseColorBarView=T,T.__name__="BaseColorBarView";class q extends _.Annotation{constructor(t){super(t)}}i.BaseColorBar=q,r=q,q.__name__="BaseColorBar",r.mixins([["major_label_",x.Text],["title_",x.Text],["major_tick_",x.Line],["minor_tick_",x.Line],["border_",x.Line],["bar_",x.Line],["background_",x.Fill]]),r.define((({Alpha:t,Float:e,Str:i,Tuple:o,Or:a,Ref:r,Auto:n,Nullable:_})=>({location:[a(y.Anchor,o(e,e)),"top_right"],orientation:[a(y.Orientation,n),"auto"],title:[_(a(i,r(b.BaseText))),null],title_standoff:[e,2],width:[a(e,n),"auto"],height:[a(e,n),"auto"],scale_alpha:[t,1],ticker:[a(r(u.Ticker),n),"auto"],formatter:[a(r(d.TickFormatter),n),"auto"],major_label_overrides:[h.LabelOverrides,new Map],major_label_policy:[r(f.LabelingPolicy),()=>new f.NoOverlap],label_standoff:[e,5],margin:[e,30],padding:[e,10],major_tick_in:[e,5],major_tick_out:[e,0],minor_tick_in:[e,0],minor_tick_out:[e,0]}))),r.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}, +function _(t,e,i,o,a){var r;o();const n=t(1),_=t(81),s=t(171),l=t(188),h=t(189),c=t(194),u=t(191),p=t(200),d=t(192),m=t(242),f=t(193),g=t(254),w=t(256),b=t(176),y=t(20),x=n.__importStar(t(80)),v=t(257),k=t(258),j=t(260),z=t(173),B=t(56),S=t(64),L=t(8);class T extends _.AnnotationView{get orientation(){return this._orientation}*children(){yield*super.children(),yield this._axis_view,yield this._title_view}initialize(){super.initialize();const{ticker:t,formatter:e}=this.model;this._ticker="auto"!=t?t:this._create_ticker(),this._formatter="auto"!=e?e:this._create_formatter(),this._major_range=this._create_major_range(),this._major_scale=this._create_major_scale(),this._minor_range=new w.Range1d({start:0,end:1}),this._minor_scale=new g.LinearScale,this._frame=new l.CartesianFrame({x_scale:this._major_scale,y_scale:this._minor_scale,x_range:this._major_range,y_range:this._minor_range}),this._axis=this._create_axis(),this._apply_axis_properties(),this._title=new s.Title,this._apply_title_properties()}async lazy_initialize(){await super.lazy_initialize();const t=this,e={get parent(){return t.parent},get root(){return t.root},get frame(){return t._frame_view},get frame_view(){return t._frame_view},get canvas_view(){return t.parent.canvas_view},request_layout(){t.layout.dirty=!0,t.parent.request_layout()},request_paint(){t.parent.request_paint(t)},notify_finished_after_paint(){t.parent.notify_finished_after_paint()}};this._frame_view=await(0,B.build_view)(this._frame,{parent:e}),this._axis_view=await(0,B.build_view)(this._axis,{parent:e}),this._title_view=await(0,B.build_view)(this._title,{parent:e})}remove(){this._title_view.remove(),this._axis_view.remove(),super.remove()}_apply_axis_properties(){const t={ticker:this._ticker,formatter:this._formatter,major_label_standoff:this.model.label_standoff,axis_line_color:null,major_tick_in:this.model.major_tick_in,major_tick_out:this.model.major_tick_out,minor_tick_in:this.model.minor_tick_in,minor_tick_out:this.model.minor_tick_out,major_label_overrides:this.model.major_label_overrides,major_label_policy:this.model.major_label_policy,...x.attrs_of(this.model,"major_label_",x.Text,!0),...x.attrs_of(this.model,"major_tick_",x.Line,!0),...x.attrs_of(this.model,"minor_tick_",x.Line,!0)};this._axis.setv(t)}_apply_title_properties(){const t={text:this.model.title??"",standoff:this.model.title_standoff,...x.attrs_of(this.model,"title_",x.Text,!1)};this._title.setv(t)}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this._apply_title_properties(),this._apply_axis_properties()})),this.connect(this._ticker.change,(()=>this.request_paint())),this.connect(this._formatter.change,(()=>this.request_paint()))}_update_frame(){const[t,e,i,o]=(()=>"horizontal"==this.orientation?[this._major_scale,this._minor_scale,this._major_range,this._minor_range]:[this._minor_scale,this._major_scale,this._minor_range,this._major_range])();this._frame.setv({x_scale:t,y_scale:e,x_range:i,y_range:o})}update_layout(){const{location:t,width:e,height:i,padding:o,margin:a}=this.model,[r,n]=(()=>{if(!(0,L.isString)(t))return["end","start"];switch(t){case"top_left":return["start","start"];case"top":case"top_center":return["start","center"];case"top_right":return["start","end"];case"bottom_left":return["end","start"];case"bottom":case"bottom_center":return["end","center"];case"bottom_right":return["end","end"];case"left":case"center_left":return["center","start"];case"center":case"center_center":return["center","center"];case"right":case"center_right":return["center","end"]}})(),_=this._orientation=(()=>{const{orientation:t}=this.model;return"auto"==t?null!=this.panel?this.panel.is_horizontal?"horizontal":"vertical":"start"==n||"end"==n||"center"==r?"vertical":"horizontal":t})();this._update_frame();const s=new k.NodeLayout,l=new k.VStack,h=new k.VStack,c=new k.HStack,u=new k.HStack;s.absolute=!0,l.absolute=!0,h.absolute=!0,c.absolute=!0,u.absolute=!0,s.on_resize((t=>this._frame_view.set_geometry(t)));const p=new j.BorderLayout;this._inner_layout=p,p.absolute=!0,p.center_panel=s,p.top_panel=l,p.bottom_panel=h,p.left_panel=c,p.right_panel=u;const d={left:o,right:o,top:o,bottom:o},m=(()=>{if(null==this.panel){if((0,L.isString)(t))return{left:a,right:a,top:a,bottom:a};{const[e,i]=t;return{left:e,right:a,top:a,bottom:i}}}if(!(0,L.isString)(t)){const[e,i]=t;return p.fixup_geometry=(t,o)=>{const a=t,r=this.layout.bbox,{width:n,height:_}=t;if(t=new S.BBox({left:r.left+e,bottom:r.bottom-i,width:n,height:_}),null!=o){const e=t.left-a.left,i=t.top-a.top,{left:r,top:n,width:_,height:s}=o;o=new S.BBox({left:r+e,top:n+i,width:_,height:s})}return[t,o]},{left:e,right:0,top:0,bottom:i}}p.fixup_geometry=(t,e)=>{const i=t;if("horizontal"==_){const{top:e,width:i,height:o}=t;if("end"==n){const{right:a}=this.layout.bbox;t=new S.BBox({right:a,top:e,width:i,height:o})}else if("center"==n){const{hcenter:a}=this.layout.bbox;t=new S.BBox({hcenter:Math.round(a),top:e,width:i,height:o})}}else{const{left:e,width:i,height:o}=t;if("end"==r){const{bottom:a}=this.layout.bbox;t=new S.BBox({left:e,bottom:a,width:i,height:o})}else if("center"==r){const{vcenter:a}=this.layout.bbox;t=new S.BBox({left:e,vcenter:Math.round(a),width:i,height:o})}}if(null!=e){const o=t.left-i.left,a=t.top-i.top,{left:r,top:n,width:_,height:s}=e;e=new S.BBox({left:r+o,top:n+a,width:_,height:s})}return[t,e]}})();let f,g,w,b;if(p.padding=d,null!=this.panel)f="max",g=void 0,w=void 0,b=void 0;else if("auto"==("horizontal"==_?e:i)){f="fixed";const t=this._get_major_size_factor();null!=t&&(g=25*t),w={percent:.3},b={percent:.8}}else f="fit",g=void 0;if("horizontal"==_){const t="auto"==e?void 0:e,o="auto"==i?25:i;p.set_sizing({width_policy:f,height_policy:"min",width:g,min_width:w,max_width:b,halign:n,valign:r,margin:m}),p.center_panel.set_sizing({width_policy:"auto"==e?"fit":"fixed",height_policy:"fixed",width:t,height:o})}else{const t="auto"==e?25:e,o="auto"==i?void 0:i;p.set_sizing({width_policy:"min",height_policy:f,height:g,min_height:w,max_height:b,halign:n,valign:r,margin:m}),p.center_panel.set_sizing({width_policy:"fixed",height_policy:"auto"==i?"fit":"fixed",width:t,height:o})}l.set_sizing({width_policy:"fit",height_policy:"min"}),h.set_sizing({width_policy:"fit",height_policy:"min"}),c.set_sizing({width_policy:"min",height_policy:"fit"}),u.set_sizing({width_policy:"min",height_policy:"fit"});const{_title_view:y}=this;"horizontal"==_?(y.panel=new z.SidePanel("above"),y.update_layout(),l.children.push(y.layout)):(y.panel=new z.SidePanel("left"),y.update_layout(),c.children.push(y.layout));const{panel:x}=this,B=null!=x&&_==x.orientation?x.side:"horizontal"==_?"below":"right",T=(()=>{switch(B){case"above":return l;case"below":return h;case"left":return c;case"right":return u}})(),{_axis_view:q}=this;if(q.panel=new z.SidePanel(B),q.update_layout(),null!=q.layout&&T.children.push(q.layout),null!=this.panel){const t=new v.Grid([{layout:p,row:0,col:0}]);t.absolute=!0,"horizontal"==_?t.set_sizing({width_policy:"max",height_policy:"min"}):t.set_sizing({width_policy:"min",height_policy:"max"}),this.layout=t}else this.layout=this._inner_layout;const{visible:A}=this.model;this.layout.sizing.visible=A}_create_axis(){return new c.LinearAxis}_create_formatter(){return new m.BasicTickFormatter}_create_major_range(){return new w.Range1d({start:0,end:1})}_create_major_scale(){return new g.LinearScale}_create_ticker(){return new p.BasicTicker}_get_major_size_factor(){return null}_paint(){const{ctx:t}=this.layer;t.save(),this._paint_bbox(t,this._inner_layout.bbox),this._paint_colors(t,this._inner_layout.center_panel.bbox),this._title_view.paint(),this._axis_view.paint(),t.restore()}_paint_bbox(t,e){const{x:i,y:o}=e;let{width:a,height:r}=e;i+a>=this.parent.canvas_view.bbox.width&&(a-=1),o+r>=this.parent.canvas_view.bbox.height&&(r-=1),t.save(),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),t.fillRect(i,o,a,r)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),t.strokeRect(i,o,a,r)),t.restore()}}i.BaseColorBarView=T,T.__name__="BaseColorBarView";class q extends _.Annotation{constructor(t){super(t)}}i.BaseColorBar=q,r=q,q.__name__="BaseColorBar",r.mixins([["major_label_",x.Text],["title_",x.Text],["major_tick_",x.Line],["minor_tick_",x.Line],["border_",x.Line],["bar_",x.Line],["background_",x.Fill]]),r.define((({Alpha:t,Float:e,Str:i,Tuple:o,Or:a,Ref:r,Auto:n,Nullable:_})=>({location:[a(y.Anchor,o(e,e)),"top_right"],orientation:[a(y.Orientation,n),"auto"],title:[_(a(i,r(b.BaseText))),null],title_standoff:[e,2],width:[a(e,n),"auto"],height:[a(e,n),"auto"],scale_alpha:[t,1],ticker:[a(r(u.Ticker),n),"auto"],formatter:[a(r(d.TickFormatter),n),"auto"],major_label_overrides:[h.LabelOverrides,new Map],major_label_policy:[r(f.LabelingPolicy),()=>new f.NoOverlap],label_standoff:[e,5],margin:[e,30],padding:[e,10],major_tick_in:[e,5],major_tick_out:[e,0],minor_tick_in:[e,0],minor_tick_out:[e,0]}))),r.override({background_fill_color:"#ffffff",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_font_size:"11px",major_tick_line_color:"#ffffff",minor_tick_line_color:null,title_text_font_size:"13px",title_text_font_style:"italic"})}, function _(e,t,i,a,s){var o;a();const r=e(1),n=e(172),c=e(20),l=r.__importStar(e(186));class h extends n.TextAnnotationView{_get_position(){const e=this.model.offset,t=this.model.standoff/2,{align:i,vertical_align:a}=this.model;let s,o;const{bbox:r}=this.layout;switch(this.panel.side){case"above":case"below":switch(a){case"top":o=r.top+t;break;case"middle":o=r.vcenter;break;case"bottom":o=r.bottom-t}switch(i){case"left":s=r.left+e;break;case"center":s=r.hcenter;break;case"right":s=r.right-e}break;case"left":switch(a){case"top":s=r.left+t;break;case"middle":s=r.hcenter;break;case"bottom":s=r.right-t}switch(i){case"left":o=r.bottom-e;break;case"center":o=r.vcenter;break;case"right":o=r.top+e}break;case"right":switch(a){case"top":s=r.right-t;break;case"middle":s=r.hcenter;break;case"bottom":s=r.left+t}switch(i){case"left":o=r.top+e;break;case"center":o=r.vcenter;break;case"right":o=r.bottom-e}}return{sx:s,sy:o}}get anchor(){const{align:e,vertical_align:t}=this.model;return l.text_anchor("auto",e,t)}get origin(){return this._get_position()}get angle(){return this.panel.get_label_angle_heuristic("parallel")}_get_size(){const e=e=>0==e?0:2+e+this.model.standoff,{width:t,height:i}=super._get_size();return this.panel.is_horizontal?{width:t,height:e(i)}:{width:e(t),height:i}}}i.TitleView=h,h.__name__="TitleView";class _ extends n.TextAnnotation{constructor(e){super(e)}}i.Title=_,o=_,_.__name__="Title",o.prototype.default_view=h,o.define((({Float:e})=>({vertical_align:[c.VerticalAlign,"bottom"],align:[c.TextAlign,"left"],offset:[e,0],standoff:[e,10]}))),o.override({text_font_size:"13px",text_font_style:"bold",text_line_height:1})}, function _(t,i,e,s,n){var a;s();const r=t(1),o=t(81),d=t(173),h=t(176),_=t(56),l=t(8),c=t(177),u=t(185),g=r.__importStar(t(186)),p=t(64),x=t(187),y=r.__importStar(t(80));class w extends o.AnnotationView{*children(){yield*super.children(),yield this._text_view}async lazy_initialize(){await super.lazy_initialize(),await this._init_text()}async _init_text(){const{text:t}=this.model,i=(0,l.isString)(t)?(0,c.parse_delimited_string)(t):t;this._text_view=await(0,_.build_view)(i,{parent:this})}update_layout(){const{panel:t}=this;this.layout=null!=t?new d.SideLayout(t,(()=>this.get_size()),!1):void 0}connect_signals(){super.connect_signals();const{text:t}=this.model.properties;this.on_change(t,(async()=>{this._text_view.remove(),await this._init_text()})),this.connect(this.model.change,(()=>this.request_paint()))}remove(){this._text_view.remove(),super.remove()}has_finished(){return!!super.has_finished()&&!!this._text_view.has_finished()}get displayed(){return super.displayed&&""!=this._text_view.model.text&&this.visuals.text.doit}get padding(){return g.padding(this.model.padding)}get border_radius(){return g.border_radius(this.model.border_radius)}_get_size(){if(!this.displayed)return{width:0,height:0};const t=this._text_view.graphics();t.angle=this.angle,t.align="auto",t.visuals=this.visuals.text.values();const i=t.size(),{padding:e}=this;return{width:i.width+e.left+e.right,height:i.height+e.top+e.bottom}}compute_geometry(){super.compute_geometry();const t=this._text_view.graphics();t.position={sx:0,sy:0,x_anchor:"left",y_anchor:"top"},t.angle=0,t.align="auto",t.visuals=this.visuals.text.values();const i=t.size(),{sx:e,sy:s}=this.origin,{anchor:n,padding:a,border_radius:r,angle:o}=this,d=i.width+a.left+a.right,h=i.height+a.top+a.bottom;this._text_box=t,this._rect={sx:e,sy:s,width:d,height:h,angle:o,anchor:n,padding:a,border_radius:r}}_paint(){const{ctx:t}=this.layer,{sx:i,sy:e,width:s,height:n,angle:a,anchor:r,padding:o,border_radius:d}=this._rect,h=this._text_box,_=r.x*s,l=r.y*n;t.translate(i,e),t.rotate(a),t.translate(-_,-l);const{background_fill:c,background_hatch:u,border_line:g,text:y}=this.visuals;if(c.doit||u.doit||g.doit){t.beginPath();const i=new p.BBox({x:0,y:0,width:s,height:n});(0,x.round_rect)(t,i,d),c.apply(t),u.apply(t),g.apply(t)}if(y.doit){const{left:i,top:e}=o;t.translate(i,e),h.paint(t),t.translate(-i,-e)}t.translate(_,l),t.rotate(-a),t.translate(-i,-e)}}e.TextAnnotationView=w,w.__name__="TextAnnotationView";class v extends o.Annotation{constructor(t){super(t)}}e.TextAnnotation=v,a=v,v.__name__="TextAnnotation",a.mixins([y.Text,["border_",y.Line],["background_",y.Fill],["background_",y.Hatch]]),a.define((({Str:t,Or:i,Ref:e})=>({text:[i(t,e(h.BaseText)),""],padding:[u.Padding,0],border_radius:[u.BorderRadius,0]}))),a.override({border_line_color:null,background_fill_color:null,background_hatch_color:null})}, function _(t,e,i,l,a){l();const r=t(174),o=t(175),n=t(8),s=Math.PI/2,h={above:{parallel:0,normal:-s,horizontal:0,vertical:-s},below:{parallel:0,normal:s,horizontal:0,vertical:s},left:{parallel:-s,normal:0,horizontal:0,vertical:-s},right:{parallel:s,normal:0,horizontal:0,vertical:s}},c={above:{parallel:"bottom",normal:"center",horizontal:"bottom",vertical:"center"},below:{parallel:"top",normal:"center",horizontal:"top",vertical:"center"},left:{parallel:"bottom",normal:"center",horizontal:"center",vertical:"bottom"},right:{parallel:"bottom",normal:"center",horizontal:"center",vertical:"bottom"}},_={above:{parallel:"center",normal:"left",horizontal:"center",vertical:"left"},below:{parallel:"center",normal:"left",horizontal:"center",vertical:"left"},left:{parallel:"center",normal:"right",horizontal:"right",vertical:"center"},right:{parallel:"center",normal:"left",horizontal:"left",vertical:"center"}},g={above:"right",below:"left",left:"right",right:"left"},b={above:"left",below:"right",left:"right",right:"left"};class d{constructor(t,e){this.side=t,this.face=(()=>{if(null!=e&&"auto"!=e)return e;switch(this.side){case"left":case"above":return"front";case"right":case"below":return"back"}})(),this.dimension="above"==this.side||"below"==this.side?0:1,this.orientation=0==this.dimension?"horizontal":"vertical",this.is_horizontal=0==this.dimension,this.is_vertical=1==this.dimension,this.normals=(()=>{const t="front"==this.face?-1:1;switch(this.side){case"left":case"right":return[t,0];case"above":case"below":return[0,t]}})()}get face_adjusted_side(){const{side:t,face:e}=this;switch(t){case"left":case"right":return"front"==e?"left":"right";case"above":case"below":return"front"==e?"above":"below"}}get_label_text_heuristics(t){const e=this.face_adjusted_side;return(0,n.isString)(t)?{vertical_align:c[e][t],align:_[e][t]}:{vertical_align:"center",align:(t<0?g:b)[e]}}get_label_angle_heuristic(t){if((0,n.isString)(t)){const e=this.face_adjusted_side;return h[e][t]}return-t}}i.SidePanel=d,d.__name__="SidePanel";class f extends o.ContentLayoutable{constructor(t,e,i=!1){super(),this.panel=t,this.get_size=e,this.rotate=i,this.panel.is_horizontal?this.set_sizing({width_policy:"max",height_policy:"fixed"}):this.set_sizing({width_policy:"fixed",height_policy:"max"})}_content_size(){const{width:t,height:e}=this.get_size();return!this.rotate||this.panel.is_horizontal?new r.Sizeable({width:t,height:e}):new r.Sizeable({width:e,height:t})}has_size_changed(){const{width:t,height:e}=this._content_size();return this.panel.is_horizontal?this.bbox.height!=e:this.bbox.width!=t}}i.SideLayout=f,f.__name__="SideLayout"}, function _(h,t,i,e,w){e();const n=h(21),{min:d,max:s}=Math;class g{constructor(h={}){this.width=null!=h.width?h.width:0,this.height=null!=h.height?h.height:0}bounded_to({width:h,height:t}){return new g({width:this.width==1/0&&null!=h?h:this.width,height:this.height==1/0&&null!=t?t:this.height})}expanded_to({width:h,height:t}){return new g({width:h!=1/0?s(this.width,h):this.width,height:t!=1/0?s(this.height,t):this.height})}expand_to({width:h,height:t}){this.width=s(this.width,h),this.height=s(this.height,t)}narrowed_to({width:h,height:t}){return new g({width:d(this.width,h),height:d(this.height,t)})}narrow_to({width:h,height:t}){this.width=d(this.width,h),this.height=d(this.height,t)}grow_by({left:h,right:t,top:i,bottom:e}){const w=this.width+h+t,n=this.height+i+e;return new g({width:w,height:n})}shrink_by({left:h,right:t,top:i,bottom:e}){const w=s(this.width-h-t,0),n=s(this.height-i-e,0);return new g({width:w,height:n})}map(h,t){return new g({width:h(this.width),height:(null!=t?t:h)(this.height)})}}i.Sizeable=g,g.__name__="Sizeable",i.SizingPolicy=(0,n.Enum)("fixed","fit","min","max")}, function _(i,t,e,h,s){h();const n=i(174),r=i(64),_=i(8),g=i(12),{abs:o,min:l,max:a,round:d}=Math;class u{constructor(){this.absolute=!1,this.position={left:0,top:0},this._bbox=new r.BBox,this._inner_bbox=new r.BBox,this._sizing=null,this._dirty=!1,this._handlers=[]}*[Symbol.iterator](){}get bbox(){return this._bbox}get inner_bbox(){return this._inner_bbox}get sizing(){return(0,g.assert)(null!=this._sizing),this._sizing}set dirty(i){this._dirty=i}get dirty(){return this._dirty}get visible(){return this.sizing.visible}set visible(i){this.sizing.visible!=i&&(this.sizing.visible=i,this._dirty=!0)}set_sizing(i={}){const t=i.width_policy??"fit",e=i.width,h=i.min_width,s=i.max_width,n=i.height_policy??"fit",r=i.height,_=i.min_height,g=i.max_height,o=i.aspect,l=i.margin??{top:0,right:0,bottom:0,left:0},a=i.visible??!0,d=i.halign??"start",u=i.valign??"start";this._sizing={width_policy:t,min_width:h,width:e,max_width:s,height_policy:n,min_height:_,height:r,max_height:g,aspect:o,margin:l,visible:a,halign:d,valign:u,size:{width:e,height:r}},this._init()}_init(){}_set_geometry(i,t){this._bbox=i,this._inner_bbox=t}set_geometry(i,t){const{fixup_geometry:e}=this;null!=e&&([i,t]=e(i,t)),this._set_geometry(i,t??i);for(const i of this._handlers)i(this._bbox,this._inner_bbox)}on_resize(i){this._handlers.push(i)}is_width_expanding(){return"max"==this.sizing.width_policy}is_height_expanding(){return"max"==this.sizing.height_policy}apply_aspect(i,{width:t,height:e}){const{aspect:h}=this.sizing;if(null!=h){const{width_policy:s,height_policy:n}=this.sizing,r=(i,t)=>{const e={max:4,fit:3,min:2,fixed:1};return e[i]>e[t]};if("fixed"!=s&&"fixed"!=n)if(s==n){const s=t,n=d(t/h),r=d(e*h),_=e;o(i.width-s)+o(i.height-n)<=o(i.width-r)+o(i.height-_)?(t=s,e=n):(t=r,e=_)}else r(s,n)?e=d(t/h):t=d(e*h);else"fixed"==s?e=d(t/h):"fixed"==n&&(t=d(e*h))}return{width:t,height:e}}measure(i){if(null==this._sizing&&this.set_sizing(),!this.sizing.visible)return{width:0,height:0};const t=i=>"fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:i,e=i=>"fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:i,h=new n.Sizeable(i).shrink_by(this.sizing.margin).map(t,e),s=this._measure(h),r=this.clip_size(s,h),_=t(r.width),g=e(r.height),o=this.apply_aspect(h,{width:_,height:g});return{...s,...o}}compute(i={}){const t=this.measure({width:null!=i.width&&this.is_width_expanding()?i.width:1/0,height:null!=i.height&&this.is_height_expanding()?i.height:1/0}),{width:e,height:h}=t,{left:s,top:n}=this.position,_=new r.BBox({left:s,top:n,width:e,height:h});let g;if(null!=t.inner){const{left:i,top:s,right:n,bottom:_}=t.inner;g=new r.BBox({left:i,top:s,right:e-n,bottom:h-_})}this.set_geometry(_,g)}get xview(){return this.bbox.xview}get yview(){return this.bbox.yview}clip_size(i,t){function e(i,t,e,h){return null==e?e=0:(0,_.isNumber)(e)||(e=d(e.percent*t)),null==h?h=1/0:(0,_.isNumber)(h)||(h=d(h.percent*t)),a(e,l(i,h))}return{width:e(i.width,t.width,this.sizing.min_width,this.sizing.max_width),height:e(i.height,t.height,this.sizing.min_height,this.sizing.max_height)}}has_size_changed(){const{_dirty:i}=this;return this._dirty=!1,i}}e.Layoutable=u,u.__name__="Layoutable";class c extends u{_measure(i){const t=this._content_size(),e=i.bounded_to(this.sizing.size).bounded_to(t);return{width:(()=>{switch(this.sizing.width_policy){case"fixed":return null!=this.sizing.width?this.sizing.width:t.width;case"min":return t.width;case"fit":return e.width;case"max":return a(t.width,e.width)}})(),height:(()=>{switch(this.sizing.height_policy){case"fixed":return null!=this.sizing.height?this.sizing.height:t.height;case"min":return t.height;case"fit":return e.height;case"max":return a(t.height,e.height)}})()}}}e.ContentLayoutable=c,c.__name__="ContentLayoutable";class w extends c{constructor(i){super(),this.text=i}_content_size(){return new n.Sizeable(this.text.size())}}e.TextLayout=w,w.__name__="TextLayout";class x extends c{constructor(i={}){super(),this.size=i}_content_size(){return new n.Sizeable(this.size)}}e.FixedLayout=x,x.__name__="FixedLayout"}, function _(e,s,t,a,n){var _;a();const x=e(51),c=e(58);class i extends c.View{}t.BaseTextView=i,i.__name__="BaseTextView";class o extends x.Model{constructor(e){super(e)}}t.BaseText=o,_=o,o.__name__="BaseText",_.define((({Str:e})=>({text:[e]})))}, -function _(n,e,t,i,r){i();const o=n(178),l=n(184),s=n(10),c=[{start:"$$",end:"$$",inline:!1},{start:"\\[",end:"\\]",inline:!1},{start:"\\(",end:"\\)",inline:!0}];function d(n){return n.split("").map((n=>`\\${n}`)).join("")}t.parse_delimited_string=function(n){const e=[];for(const t of c){const i=d(t.start),r=d(t.end),o=new RegExp(`${i}([^]*?)${r}`,"gm");for(const i of n.matchAll(o)){const{index:n}=i,[r,o]=i;e.push({index:n,outer:r,inner:o,delim:t})}}if(e.length>0){if(1==e.length){const[t]=e,i=t.index,r=t.outer.length;if(0==i&&r==n.length){const n=t.inner;return new o.TeX({text:n,inline:t.delim.inline})}}let t="",i=0;for(const r of(0,s.sort_by)(e,(n=>n.index))){const e=r.index;i<=e&&(t+=0!=e?`\\text{${n.slice(i,e)}}${r.inner}`:`${r.inner}`,i=e+r.outer.length)}return t+=i0){if(1==e.length){const[t]=e,i=t.index,r=t.outer.length;if(0==i&&r==n.length){const n=t.inner;return new o.TeX({text:n,inline:t.delim.inline})}}let t="",i=0;for(const r of(0,s.sort_by)(e,(n=>n.index))){const e=r.index;i<=e&&(t+=0!=e?`\\text{${n.slice(i,e)}}${r.inner}`:`${r.inner}`,i=e+r.outer.length)}return t+=i`\\${n}`)).join("")}}, function _(t,e,s,i,n){var h,o,r;i();const a=t(9),_=t(8),l=t(179),c=t(22),u=t(180),d=t(181),g=t(40),x=t(114),p=t(64),f=t(176),m=t(182);class y extends f.BaseTextView{constructor(){super(...arguments),this._position={sx:0,sy:0},this.align="left",this._x_anchor="left",this._y_anchor="center",this._base_font_size=13,this.font_size_scale=1,this.svg_image=null}graphics(){return this}infer_text_height(){return"ascent_descent"}set base_font_size(t){null!=t&&(this._base_font_size=t)}get base_font_size(){return this._base_font_size}_rect(){const{width:t,height:e}=this._size(),{x:s,y:i}=this._computed_position();return new p.BBox({x:s,y:i,width:t,height:e}).rect}set position(t){this._position=t}get position(){return this._position}get text(){return this.model.text}get provider(){return m.default_provider}async lazy_initialize(){await super.lazy_initialize(),"not_started"==this.provider.status&&await this.provider.fetch()}connect_signals(){super.connect_signals(),this.on_change(this.model.properties.text,(()=>this.load_image()))}set visuals(t){const e=t.color,s=t.alpha,i=t.font_style;let n=t.font_size;const h=t.font,{font_size_scale:o,_base_font_size:r}=this,a=(0,d.parse_css_font_size)(n);if(null!=a){let{value:t,unit:e}=a;t*=o,"em"==e&&0!=r&&(t*=r,e="px"),n=`${t}${e}`}const _=`${i} ${n} ${h}`;this.font=_,this.color=(0,c.color2css)(e,s);const l=t.align;this._x_anchor=l;const u=t.baseline;this._y_anchor=(()=>{switch(u){case"top":return"top";case"middle":return"center";case"bottom":return"bottom";default:return"baseline"}})()}_computed_position(){const{width:t,height:e}=this._size(),{sx:s,sy:i,x_anchor:n=this._x_anchor,y_anchor:h=this._y_anchor}=this.position,o=(0,d.font_metrics)(this.font);return{x:s-(()=>{if((0,_.isNumber)(n))return n*t;switch(n){case"left":return 0;case"center":return.5*t;case"right":return t}})(),y:i-(()=>{if((0,_.isNumber)(h))return h*e;switch(h){case"top":return o.height>e?e-(-this.valign-o.descent)-o.height:0;case"center":case"baseline":return.5*e;case"bottom":return o.height>e?e+o.descent+this.valign:e}})()}}size(){const{width:t,height:e}=this._size(),{angle:s}=this;if(null==s||0==s)return{width:t,height:e};{const i=Math.cos(Math.abs(s)),n=Math.sin(Math.abs(s));return{width:Math.abs(t*i+e*n),height:Math.abs(t*n+e*i)}}}get_image_dimensions(){const t=(0,d.font_metrics)(this.font),e=this.svg_element.getAttribute("style")?.split(";");if(null!=e){const s=new Map;e.forEach((t=>{const[e,i]=t.split(":");""!=e.trim()&&s.set(e.trim(),i.trim())}));const i=(0,d.parse_css_length)(s.get("vertical-align"));"ex"==i?.unit?this.valign=i.value*t.x_height:"px"==i?.unit&&(this.valign=i.value)}const s=(()=>{const t=this.svg_element.getAttribute("width"),e=this.svg_element.getAttribute("height");return{width:null!=t&&t.endsWith("ex")?parseFloat(t):1,height:null!=e&&e.endsWith("ex")?parseFloat(e):1}})();return{width:t.x_height*s.width,height:t.x_height*s.height}}get truncated_text(){return this.model.text.length>6?`${this.model.text.substring(0,6)}...`:this.model.text}_size(){if(null==this.svg_image)return"failed"==this.provider.status||"not_started"==this.provider.status?{width:(0,u.text_width)(this.truncated_text,this.font),height:(0,d.font_metrics)(this.font).height}:{width:this._base_font_size,height:this._base_font_size};const t=(0,d.font_metrics)(this.font);let{width:e,height:s}=this.get_image_dimensions();s=Math.max(s,t.height);return{width:e*("%"==this.width?.unit?this.width.value:1),height:s*("%"==this.height?.unit?this.height.value:1)}}bbox(){const{p0:t,p1:e,p2:s,p3:i}=this.rect(),n=Math.min(t.x,e.x,s.x,i.x),h=Math.min(t.y,e.y,s.y,i.y),o=Math.max(t.x,e.x,s.x,i.x),r=Math.max(t.y,e.y,s.y,i.y);return new p.BBox({left:n,right:o,top:h,bottom:r})}rect(){const t=this._rect(),{angle:e}=this;if(null==e||0==e)return t;{const{sx:s,sy:i}=this.position,n=new x.AffineTransform;return n.translate(s,i),n.rotate(e),n.translate(-s,-i),n.apply_rect(t)}}paint_rect(t){const{p0:e,p1:s,p2:i,p3:n}=this.rect();t.save(),t.strokeStyle="red",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e.x),h(e.y)),t.lineTo(h(s.x),h(s.y)),t.lineTo(h(i.x),h(i.y)),t.lineTo(h(n.x),h(n.y)),t.closePath(),t.stroke(),t.restore()}paint_bbox(t){const{x:e,y:s,width:i,height:n}=this.bbox();t.save(),t.strokeStyle="blue",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e),h(s)),t.lineTo(h(e),h(s+n)),t.lineTo(h(e+i),h(s+n)),t.lineTo(h(e+i),h(s)),t.closePath(),t.stroke(),t.restore()}async request_image(){if(null==this.provider.MathJax)return;const t=this._process_text();if(null==t)return void(this._has_finished=!0);const e=t.children[0];this.svg_element=e,e.setAttribute("font",this.font),e.setAttribute("stroke",this.color);const s=e.outerHTML,i=`data:image/svg+xml;utf-8,${encodeURIComponent(s)}`;this.svg_image=await(0,l.load_image)(i)}async load_image(){await this.request_image(),this.parent.request_layout()}paint(t){null==this.svg_image&&("not_started"!=this.provider.status&&"loading"!=this.provider.status||this.provider.ready.connect((()=>this.load_image())),"loaded"==this.provider.status&&this.load_image()),t.save();const{sx:e,sy:s}=this.position,{angle:i}=this;null!=i&&0!=i&&(t.translate(e,s),t.rotate(i),t.translate(-e,-s));const{x:n,y:h}=this._computed_position();if(null!=this.svg_image){const{width:e,height:s}=this.get_image_dimensions();t.drawImage(this.svg_image,n,h,e,s)}else"failed"!=this.provider.status&&"not_started"!=this.provider.status||(t.fillStyle=this.color,t.font=this.font,t.textAlign="left",t.textBaseline="alphabetic",t.fillText(this.truncated_text,n,h+(0,d.font_metrics)(this.font).ascent));t.restore(),this._has_finished||"failed"!=this.provider.status&&null==this.svg_image||(this._has_finished=!0,this.parent.notify_finished_after_paint())}}s.MathTextView=y,y.__name__="MathTextView";class v extends f.BaseText{constructor(t){super(t)}}s.MathText=v,v.__name__="MathText";class b extends y{get styled_text(){return this.text}_process_text(){}_size(){return{width:(0,u.text_width)(this.text,this.font),height:(0,d.font_metrics)(this.font).height}}paint(t){t.save();const{sx:e,sy:s}=this.position,{angle:i}=this;null!=i&&0!=i&&(t.translate(e,s),t.rotate(i),t.translate(-e,-s));const{x:n,y:h}=this._computed_position();t.fillStyle=this.color,t.font=this.font,t.textAlign="left",t.textBaseline="alphabetic",t.fillText(this.text,n,h+(0,d.font_metrics)(this.font).ascent),t.restore(),this._has_finished=!0,this.parent.notify_finished_after_paint()}}s.AsciiView=b,b.__name__="AsciiView";class w extends v{constructor(t){super(t)}}s.Ascii=w,h=w,w.__name__="Ascii",h.prototype.default_view=b;class M extends y{get styled_text(){let t=this.text.trim(),e=t.match(//s);return null==e?this.text.trim():(t=(0,g.insert_text_on_position)(t,t.indexOf(e[0])+e[0].length,``),e=t.match(/<\/[^>]*?math.*?>/s),null==e?this.text.trim():(0,g.insert_text_on_position)(t,t.indexOf(e[0]),""))}_process_text(){const t=(0,d.font_metrics)(this.font);return this.provider.MathJax?.mathml2svg(this.styled_text,{em:this.base_font_size,ex:t.x_height})}}s.MathMLView=M,M.__name__="MathMLView";class z extends v{constructor(t){super(t)}}s.MathML=z,o=z,z.__name__="MathML",o.prototype.default_view=M;class T extends y{get styled_text(){const[t,e,s]=(0,c.color2rgba)(this.color);return`\\color[RGB]{${t}, ${e}, ${s}} ${this.font.includes("bold")?`\\pmb{${this.text}}`:this.text}`}_process_text(){const t=(0,d.font_metrics)(this.font);return this.provider.MathJax?.tex2svg(this.styled_text,{display:!this.model.inline,em:this.base_font_size,ex:t.x_height},(0,a.to_object)(this.model.macros))}}s.TeXView=T,T.__name__="TeXView";class $ extends v{constructor(t){super(t)}}s.TeX=$,r=$,$.__name__="TeX",r.prototype.default_view=T,r.define((({Bool:t,Float:e,Str:s,Dict:i,Tuple:n,Or:h})=>({macros:[i(h(s,n(s,e))),{}],inline:[t,!1]})))}, -function _(i,e,t,s,n){s();const a=i(19);t.load_image=async function(i,e){return new o(i,e).promise};class o{constructor(i,e={}){this.image=new Image,this._finished=!1;const{attempts:t=1,timeout:s=1}=e,n=(()=>{if(i instanceof ArrayBuffer){const e=new Blob([i],{type:"image/png"});return URL.createObjectURL(e)}return i})();this.promise=new Promise(((i,o)=>{this.image.crossOrigin="anonymous";let r=0;this.image.onerror=()=>{if(++r==t){const i=`unable to load ${n} image after ${t} attempts`;if(a.logger.warn(i),null==this.image.crossOrigin)return void e.failed?.();a.logger.warn(`attempting to load ${n} without a cross origin policy`),this.image.crossOrigin=null,r=0}setTimeout((()=>this.image.src=n),s)},this.image.onload=()=>{this._finished=!0,e.loaded?.(this.image),i(this.image)},this.image.src=n}))}get finished(){return this._finished}}t.ImageLoader=o,o.__name__="ImageLoader"}, +function _(i,e,t,s,n){s(),t.load_image=async function(i,e){return new o(i,e).promise};const a=i(19);class o{constructor(i,e={}){this.image=new Image,this._finished=!1;const{attempts:t=1,timeout:s=1}=e,n=(()=>{if(i instanceof ArrayBuffer){const e=new Blob([i],{type:"image/png"});return URL.createObjectURL(e)}return i})();this.promise=new Promise(((i,o)=>{this.image.crossOrigin="anonymous";let r=0;this.image.onerror=()=>{if(++r==t){const i=`unable to load ${n} image after ${t} attempts`;if(a.logger.warn(i),null==this.image.crossOrigin)return void e.failed?.();a.logger.warn(`attempting to load ${n} without a cross origin policy`),this.image.crossOrigin=null,r=0}setTimeout((()=>this.image.src=n),s)},this.image.onload=()=>{this._finished=!0,e.loaded?.(this.image),i(this.image)},this.image.src=n}))}get finished(){return this._finished}}t.ImageLoader=o,o.__name__="ImageLoader"}, function _(t,e,s,i,n){i();const h=t(64),o=t(181),a=t(10),r=t(8),c=t(114),_=t(22);s.text_width=(()=>{const t=document.createElement("canvas").getContext("2d");let e="";return(s,i)=>(i!=e&&(e=i,t.font=i),t.measureText(s).width)})();class l{constructor(){this._position={sx:0,sy:0},this.font_size_scale=1,this.align="left",this._base_font_size=13,this._x_anchor="left",this._y_anchor="center"}set base_font_size(t){null!=t&&(this._base_font_size=t)}get base_font_size(){return this._base_font_size}set position(t){this._position=t}get position(){return this._position}infer_text_height(){return"ascent_descent"}bbox(){const{p0:t,p1:e,p2:s,p3:i}=this.rect(),n=Math.min(t.x,e.x,s.x,i.x),o=Math.min(t.y,e.y,s.y,i.y),a=Math.max(t.x,e.x,s.x,i.x),r=Math.max(t.y,e.y,s.y,i.y);return new h.BBox({left:n,right:a,top:o,bottom:r})}size(){const{width:t,height:e}=this._size(),{angle:s}=this;if(null==s||0==s)return{width:t,height:e};{const i=Math.cos(Math.abs(s)),n=Math.sin(Math.abs(s));return{width:Math.abs(t*i+e*n),height:Math.abs(t*n+e*i)}}}rect(){const t=this._rect(),{angle:e}=this;if(null==e||0==e)return t;{const{sx:s,sy:i}=this.position,n=new c.AffineTransform;return n.translate(s,i),n.rotate(e),n.translate(-s,-i),n.apply_rect(t)}}paint_rect(t){const{p0:e,p1:s,p2:i,p3:n}=this.rect();t.save(),t.strokeStyle="red",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e.x),h(e.y)),t.lineTo(h(s.x),h(s.y)),t.lineTo(h(i.x),h(i.y)),t.lineTo(h(n.x),h(n.y)),t.closePath(),t.stroke(),t.restore()}paint_bbox(t){const{x:e,y:s,width:i,height:n}=this.bbox();t.save(),t.strokeStyle="blue",t.lineWidth=1,t.beginPath();const{round:h}=Math;t.moveTo(h(e),h(s)),t.lineTo(h(e),h(s+n)),t.lineTo(h(e+i),h(s+n)),t.lineTo(h(e+i),h(s)),t.closePath(),t.stroke(),t.restore()}}s.GraphicsBox=l,l.__name__="GraphicsBox";class x extends l{set visuals(t){const e=t.color,s=t.alpha,i=t.outline_color,n=t.font_style;let h=t.font_size;const a=t.font,{font_size_scale:r,base_font_size:c}=this,l=(0,o.parse_css_font_size)(h);if(null!=l){let{value:t,unit:e}=l;t*=r,"em"==e&&0!=c&&(t*=c,e="px"),h=`${t}${e}`}const x=`${n} ${h} ${a}`;this.font=x,this.color=(0,_.color2css)(e,s),this.outline_color=(0,_.color2css)(i,s),this.line_height=t.line_height;const u=t.align;this._visual_align=u,this._x_anchor=u;const p=t.baseline;this._y_anchor=(()=>{switch(p){case"top":return"top";case"middle":return"center";case"bottom":return"bottom";default:return"baseline"}})()}constructor({text:t}){super(),this._visual_align="left",this.text=t}infer_text_height(){if(this.text.includes("\n"))return"ascent_descent";{function t(t){for(const e of new Set(t))if(!("0"<=e&&e<="9"))switch(e){case",":case".":case"+":case"-":case"\u2212":case"e":continue;default:return!1}return!0}return t(this.text)?"cap":"ascent_descent"}}_text_line(t){const e=this.text_height_metric??this.infer_text_height(),s=(()=>{switch(e){case"x":case"x_descent":return t.x_height;case"cap":case"cap_descent":return t.cap_height;case"ascent":case"ascent_descent":return t.ascent}})(),i=(()=>{switch(e){case"x":case"cap":case"ascent":return 0;case"x_descent":case"cap_descent":case"ascent_descent":return t.descent}})();return{height:s+i,ascent:s,descent:i}}get nlines(){return this.text.split("\n").length}_size(){const{font:t}=this,e=(0,o.font_metrics)(t),i=(this.line_height-1)*e.height,n=""==this.text,h=this.text.split("\n"),r=h.length,c=h.map((e=>(0,s.text_width)(e,t))),_=this._text_line(e).height*r,l="%"==this.width?.unit?this.width.value:1,x="%"==this.height?.unit?this.height.value:1;return{width:(0,a.max)(c)*l,height:n?0:(_+i*(r-1))*x,metrics:e}}_computed_position(t,e,s){const{width:i,height:n}=t,{sx:h,sy:o,x_anchor:a=this._x_anchor,y_anchor:c=this._y_anchor}=this.position;return{x:h-(()=>{if((0,r.isNumber)(a))return a*i;switch(a){case"left":return 0;case"center":return.5*i;case"right":return i}})(),y:o-(()=>{if((0,r.isNumber)(c))return c*n;switch(c){case"top":return 0;case"center":return.5*n;case"bottom":return n;case"baseline":if(1!=s)return.5*n;switch(this.text_height_metric??this.infer_text_height()){case"x":case"x_descent":return e.x_height;case"cap":case"cap_descent":return e.cap_height;case"ascent":case"ascent_descent":return e.ascent}}})()}}_rect(){const{width:t,height:e,metrics:s}=this._size(),i=this.text.split("\n").length,{x:n,y:o}=this._computed_position({width:t,height:e},s,i);return new h.BBox({x:n,y:o,width:t,height:e}).rect}paint(t){const{font:e}=this,i=(0,o.font_metrics)(e),n=(this.line_height-1)*i.height,h=this.text.split("\n"),r=h.length,c=h.map((t=>(0,s.text_width)(t,e))),_=this._text_line(i),l=_.height*r,x="%"==this.width?.unit?this.width.value:1,u="%"==this.height?.unit?this.height.value:1,p=(0,a.max)(c)*x,f=(l+n*(r-1))*u;t.save(),t.fillStyle=this.color,t.strokeStyle=this.outline_color,t.font=this.font,t.textAlign="left",t.textBaseline="alphabetic";const{sx:g,sy:d}=this.position,{align:b}=this,{angle:m}=this;null!=m&&0!=m&&(t.translate(g,d),t.rotate(m),t.translate(-g,-d));let{x:y,y:w}=this._computed_position({width:p,height:f},i,r);if("justify"==b)for(let i=0;i(0,s.text_width)(t,e))),x=(p-(0,a.sum)(l))/(c-1);for(let e=0;e{switch("auto"==b?this._visual_align:b){case"left":return 0;case"center":return.5*(p-c[e]);case"right":return p-c[e]}})(),i=h[e],o=w+_.ascent;t.fillText(i,s,o),t.strokeText(i,s,o),w+=_.height+n}t.restore()}}s.TextBox=x,x.__name__="TextBox";class u extends l{constructor(t,e){super(),this.base=t,this.expo=e}get children(){return[this.base,this.expo]}set base_font_size(t){super.base_font_size=t,this.base.base_font_size=t,this.expo.base_font_size=t}set position(t){this._position=t;const e=this.base.size(),s=this.expo.size(),i=this._shift_scale()*e.height,n=Math.max(e.height,i+s.height);this.base.position={sx:0,x_anchor:"left",sy:n,y_anchor:"bottom"},this.expo.position={sx:e.width,x_anchor:"left",sy:i,y_anchor:"bottom"}}get position(){return this._position}set visuals(t){this.expo.font_size_scale=.7,this.base.visuals=t,this.expo.visuals=t}_shift_scale(){if(this.base instanceof x&&1==this.base.nlines){const{x_height:t,cap_height:e}=(0,o.font_metrics)(this.base.font);return t/e}return 2/3}infer_text_height(){return this.base.infer_text_height()}_rect(){const t=this.base.bbox(),e=this.expo.bbox(),s=t.union(e),{x:i,y:n}=this._computed_position();return s.translate(i,n).rect}_size(){const t=this.base.size(),e=this.expo.size();return{width:t.width+e.width,height:Math.max(t.height,this._shift_scale()*t.height+e.height)}}paint(t){t.save();const{angle:e}=this;if(null!=e&&0!=e){const{sx:s,sy:i}=this.position;t.translate(s,i),t.rotate(e),t.translate(-s,-i)}const{x:s,y:i}=this._computed_position();t.translate(s,i),this.base.paint(t),this.expo.paint(t),t.restore()}paint_bbox(t){super.paint_bbox(t);const{x:e,y:s}=this._computed_position();t.save(),t.translate(e,s);for(const e of this.children)e.paint_bbox(t);t.restore()}_computed_position(){const{width:t,height:e}=this._size(),{sx:s,sy:i,x_anchor:n=this._x_anchor,y_anchor:h=this._y_anchor}=this.position;return{x:s-(()=>{if((0,r.isNumber)(n))return n*t;switch(n){case"left":return 0;case"center":return.5*t;case"right":return t}})(),y:i-(()=>{if((0,r.isNumber)(h))return h*e;switch(h){case"top":return 0;case"center":case"baseline":return.5*e;case"bottom":return e}})()}}}s.BaseExpo=u,u.__name__="BaseExpo";class p{constructor(t){this.items=t}set base_font_size(t){for(const e of this.items)e.base_font_size=t}get length(){return this.items.length}set visuals(t){for(const e of this.items)e.visuals=t;const e={x:0,cap:1,ascent:2,x_descent:3,cap_descent:4,ascent_descent:5},s=(0,a.max_by)(this.items.map((t=>t.infer_text_height())),(t=>e[t]));for(const t of this.items)t.text_height_metric=s}set angle(t){for(const e of this.items)e.angle=t}max_size(){let t=0,e=0;for(const s of this.items){const i=s.size();t=Math.max(t,i.width),e=Math.max(e,i.height)}return{width:t,height:e}}}s.GraphicsBoxes=p,p.__name__="GraphicsBoxes"}, -function _(n,t,e,o,s){o();const c=n(12),u=(()=>{const n=new OffscreenCanvas(0,0).getContext("2d");return(0,c.assert)(null!=n,"can't obtain 2d context"),n})();function i(n){const t=u;t.font=n;const e=t.measureText("M"),o=t.measureText("x"),s=t.measureText("\xc5\u015ag|"),c=void 0!==s.fontBoundingBoxAscent?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,i=void 0!==s.fontBoundingBoxDescent?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent;return{height:c+i,ascent:c,descent:i,cap_height:e.actualBoundingBoxAscent,x_height:o.actualBoundingBoxAscent}}const a=new Map;e.font_metrics=function(n){let t=a.get(n);if(null==t){const e=document.fonts.check(n);t={font:i(n)},e&&a.set(n,t)}return t.font},e.parse_css_font_size=function(n){const t=n.match(/^\s*(\d+(\.\d+)?)(\w+)\s*$/);if(null!=t){const[,n,,e]=t,o=Number(n);if(isFinite(o))return{value:o,unit:e}}return null},e.parse_css_length=function(n){const t=n.match(/^\s*(-?\d+(\.\d+)?)(\w+)\s*$/);if(null!=t){const[,n,,e]=t,o=Number(n);if(isFinite(o))return{value:o,unit:e}}return null}}, -function _(t,e,a,r,n){var s=this&&this.__createBinding||(Object.create?function(t,e,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(e,a);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,r,n)}:function(t,e,a,r){void 0===r&&(r=a),t[r]=e[a]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)"default"!==a&&Object.prototype.hasOwnProperty.call(t,a)&&s(e,t,a);return i(e,t),e};r();const d=t(15),l=t(183);class u{constructor(){this.ready=new d.Signal0(this,"ready"),this.status="not_started"}}a.MathJaxProvider=u,u.__name__="MathJaxProvider";class c extends u{get MathJax(){return null}async fetch(){this.status="failed"}}a.NoProvider=c,c.__name__="NoProvider";class h extends u{get MathJax(){return"undefined"!=typeof MathJax?MathJax:null}async fetch(){const t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js",t.onload=()=>{this.status="loaded",this.ready.emit()},t.onerror=()=>{this.status="failed"},this.status="loading",document.head.appendChild(t)}}a.CDNProvider=h,h.__name__="CDNProvider";class _ extends u{get MathJax(){return this._mathjax}async fetch(){this.status="loading";try{const e=await(0,l.load_module)(Promise.resolve().then((()=>o(t(704)))));this.status=null==e?"failed":"loaded",this._mathjax=e,this.ready.emit()}catch(t){this.status="failed"}}}a.BundleProvider=_,_.__name__="BundleProvider",a.default_provider=new _}, +function _(n,t,e,o,s){o(),e.font_metrics=function(n){let t=f.get(n);if(null==t){const e=document.fonts.check(n);t={font:a(n)},e&&f.set(n,t)}return t.font},e.parse_css_font_size=function(n){const t=n.match(/^\s*(\d+(\.\d+)?)(\w+)\s*$/);if(null!=t){const[,n,,e]=t,o=Number(n);if(isFinite(o))return{value:o,unit:e}}return null},e.parse_css_length=function(n){const t=n.match(/^\s*(-?\d+(\.\d+)?)(\w+)\s*$/);if(null!=t){const[,n,,e]=t,o=Number(n);if(isFinite(o))return{value:o,unit:e}}return null};const c=n(12),u=n(63),i=(()=>{const n=("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(0,0):(0,u.canvas)({width:0,height:0})).getContext("2d");return(0,c.assert)(null!=n,"can't obtain 2d context"),n})();function a(n){const t=i;t.font=n;const e=t.measureText("M"),o=t.measureText("x"),s=t.measureText("\xc5\u015ag|"),c=void 0!==s.fontBoundingBoxAscent?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,u=void 0!==s.fontBoundingBoxDescent?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent;return{height:c+u,ascent:c,descent:u,cap_height:e.actualBoundingBoxAscent,x_height:o.actualBoundingBoxAscent}}const f=new Map}, +function _(t,e,a,r,n){var s=this&&this.__createBinding||(Object.create?function(t,e,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(e,a);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,r,n)}:function(t,e,a,r){void 0===r&&(r=a),t[r]=e[a]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)"default"!==a&&Object.prototype.hasOwnProperty.call(t,a)&&s(e,t,a);return i(e,t),e};r();const d=t(15),l=t(183);class u{constructor(){this.ready=new d.Signal0(this,"ready"),this.status="not_started"}}a.MathJaxProvider=u,u.__name__="MathJaxProvider";class c extends u{get MathJax(){return null}async fetch(){this.status="failed"}}a.NoProvider=c,c.__name__="NoProvider";class h extends u{get MathJax(){return"undefined"!=typeof MathJax?MathJax:null}async fetch(){const t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js",t.onload=()=>{this.status="loaded",this.ready.emit()},t.onerror=()=>{this.status="failed"},this.status="loading",document.head.appendChild(t)}}a.CDNProvider=h,h.__name__="CDNProvider";class _ extends u{get MathJax(){return this._mathjax}async fetch(){this.status="loading";try{const e=await(0,l.load_module)(Promise.resolve().then((()=>o(t(714)))));this.status=null==e?"failed":"loaded",this._mathjax=e,this.ready.emit()}catch(t){this.status="failed"}}}a.BundleProvider=_,_.__name__="BundleProvider",a.default_provider=new _}, function _(n,r,o,t,c){t(),o.load_module=async function(n){try{return await n}catch(n){if((r=n)instanceof Error&&"code"in r&&"MODULE_NOT_FOUND"===n.code)return null;throw n}var r}}, function _(e,t,i,n,s){var a;n();const x=e(176),_=e(180);class l extends x.BaseTextView{initialize(){super.initialize(),this._has_finished=!0}graphics(){return new _.TextBox({text:this.model.text})}}i.PlainTextView=l,l.__name__="PlainTextView";class r extends x.BaseText{constructor(e){super(e)}}i.PlainText=r,a=r,r.__name__="PlainText",a.prototype.default_view=l}, -function _(t,n,e,i,r){i();const g=t(1),a=t(21),h=g.__importStar(t(20));e.Length=(0,a.NonNegative)(a.Int);var L;e.Anchor=(0,a.Or)(h.Anchor,(0,a.Tuple)((0,a.Or)(h.Align,h.HAlign,a.Percent),(0,a.Or)(h.Align,h.VAlign,a.Percent))),e.TextAnchor=(0,a.Or)(e.Anchor,a.Auto),e.Padding=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length),(L=e.Length,(0,a.PartialStruct)({x:L,y:L})),(0,a.Tuple)(e.Length,e.Length,e.Length,e.Length),(t=>(0,a.PartialStruct)({left:t,right:t,top:t,bottom:t}))(e.Length)),e.BorderRadius=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length,e.Length,e.Length),(0,a.PartialStruct)({top_left:e.Length,top_right:e.Length,bottom_right:e.Length,bottom_left:e.Length})),e.Index=(0,a.NonNegative)(a.Int),e.Span=(0,a.NonNegative)(a.Int);e.GridChild=t=>(0,a.Tuple)((0,a.Ref)(t),e.Index,e.Index,(0,a.Opt)(e.Span),(0,a.Opt)(e.Span)),e.GridSpacing=(0,a.Or)(e.Length,(0,a.Tuple)(e.Length,e.Length)),e.TrackAlign=(0,a.Enum)("start","center","end","auto"),e.TrackSize=a.Str,e.TrackSizing=(0,a.PartialStruct)({size:e.TrackSize,align:e.TrackAlign}),e.TrackSizingLike=(0,a.Or)(e.TrackSize,e.TrackSizing),e.TracksSizing=(0,a.Or)(e.TrackSizingLike,(0,a.List)(e.TrackSizingLike),(0,a.Mapping)(a.Int,e.TrackSizingLike))}, -function _(t,e,r,n,o){n();const c=t(8),i=t(12);function s(t){if(!(0,c.isString)(t)){return{x:(()=>{const[e]=t;switch(e){case"start":case"left":return 0;case"center":return.5;case"end":case"right":return 1;default:return e}})(),y:(()=>{const[,e]=t;switch(e){case"start":case"top":return 0;case"center":return.5;case"end":case"bottom":return 1;default:return e}})()}}switch(t){case"top_left":return{x:0,y:0};case"top":case"top_center":return{x:.5,y:0};case"top_right":return{x:1,y:0};case"right":case"center_right":return{x:1,y:.5};case"bottom_right":return{x:1,y:1};case"bottom":case"bottom_center":return{x:.5,y:1};case"bottom_left":return{x:0,y:1};case"left":case"center_left":return{x:0,y:.5};case"center":case"center_center":return{x:.5,y:.5}}}r.anchor=s,r.text_anchor=function(t,e,r){return s("auto"!=t?t:[(()=>{switch(e){case"left":return"start";case"center":return"center";case"right":return"end"}})(),(()=>{switch(r){case"alphabetic":case"ideographic":case"hanging":case"middle":return"center";case"top":return"start";case"bottom":return"end"}})()])},r.padding=function(t){if((0,c.isNumber)(t))return{left:t,right:t,top:t,bottom:t};if(!(0,c.isPlainObject)(t)){if(2==t.length){const[e=0,r=0]=t;return{left:e,right:e,top:r,bottom:r}}{const[e=0,r=0,n=0,o=0]=t;return{left:e,right:r,top:n,bottom:o}}}if("x"in t||"y"in t){const{x:e=0,y:r=0}=t;return{left:e,right:e,top:r,bottom:r}}if("left"in t||"right"in t||"top"in t||"bottom"in t){const{left:e=0,right:r=0,top:n=0,bottom:o=0}=t;return{left:e,right:r,top:n,bottom:o}}(0,i.unreachable)()},r.border_radius=function(t){if((0,c.isNumber)(t))return{top_left:t,top_right:t,bottom_right:t,bottom_left:t};if((0,c.isPlainObject)(t))return{top_left:t.top_left??0,top_right:t.top_right??0,bottom_right:t.bottom_right??0,bottom_left:t.bottom_left??0};{const[e=0,r=0,n=0,o=0]=t;return{top_left:e,top_right:r,bottom_right:n,bottom_left:o}}}}, +function _(t,n,e,r,i){r();const g=t(1),h=t(21),a=g.__importStar(t(20));e.Length=(0,h.NonNegative)(h.Int);var c;e.HAnchor=(0,h.Or)(a.Align,a.HAlign,h.Percent),e.VAnchor=(0,h.Or)(a.Align,a.VAlign,h.Percent),e.Anchor=(0,h.Or)(a.Anchor,(0,h.Tuple)(e.HAnchor,e.VAnchor)),e.AutoAnchor=(0,h.Or)(h.Auto,a.Anchor,(0,h.Tuple)((0,h.Or)(e.HAnchor,h.Auto),(0,h.Or)(e.VAnchor,h.Auto))),e.TextAnchor=(0,h.Or)(e.Anchor,h.Auto),e.Padding=(0,h.Or)(e.Length,(0,h.Tuple)(e.Length,e.Length),(c=e.Length,(0,h.PartialStruct)({x:c,y:c})),(0,h.Tuple)(e.Length,e.Length,e.Length,e.Length),(t=>(0,h.PartialStruct)({left:t,right:t,top:t,bottom:t}))(e.Length)),e.BorderRadius=(0,h.Or)(e.Length,(0,h.Tuple)(e.Length,e.Length,e.Length,e.Length),(0,h.PartialStruct)({top_left:e.Length,top_right:e.Length,bottom_right:e.Length,bottom_left:e.Length})),e.Index=(0,h.NonNegative)(h.Int),e.Span=(0,h.NonNegative)(h.Int);e.GridChild=t=>(0,h.Tuple)((0,h.Ref)(t),e.Index,e.Index,(0,h.Opt)(e.Span),(0,h.Opt)(e.Span)),e.GridSpacing=(0,h.Or)(e.Length,(0,h.Tuple)(e.Length,e.Length)),e.TrackAlign=(0,h.Enum)("start","center","end","auto"),e.TrackSize=h.Str,e.TrackSizing=(0,h.PartialStruct)({size:e.TrackSize,align:e.TrackAlign}),e.TrackSizingLike=(0,h.Or)(e.TrackSize,e.TrackSizing),e.TracksSizing=(0,h.Or)(e.TrackSizingLike,(0,h.List)(e.TrackSizingLike),(0,h.Mapping)(h.Int,e.TrackSizingLike))}, +function _(t,e,r,n,o){n(),r.normalized_anchor=u,r.anchor=s,r.text_anchor=function(t,e,r){if("auto"!=t)return s(t);return s([(()=>{switch(e){case"left":return"start";case"center":return"center";case"right":return"end"}})(),(()=>{switch(r){case"alphabetic":case"ideographic":case"hanging":case"middle":return"center";case"top":return"start";case"bottom":return"end"}})()])},r.padding=function(t){if((0,c.isNumber)(t))return{left:t,right:t,top:t,bottom:t};if(!(0,c.isPlainObject)(t)){if(2==t.length){const[e=0,r=0]=t;return{left:e,right:e,top:r,bottom:r}}{const[e=0,r=0,n=0,o=0]=t;return{left:e,right:r,top:n,bottom:o}}}if("x"in t||"y"in t){const{x:e=0,y:r=0}=t;return{left:e,right:e,top:r,bottom:r}}if("left"in t||"right"in t||"top"in t||"bottom"in t){const{left:e=0,right:r=0,top:n=0,bottom:o=0}=t;return{left:e,right:r,top:n,bottom:o}}(0,i.unreachable)()},r.border_radius=function(t){if((0,c.isNumber)(t))return{top_left:t,top_right:t,bottom_right:t,bottom_left:t};if((0,c.isPlainObject)(t))return{top_left:t.top_left??0,top_right:t.top_right??0,bottom_right:t.bottom_right??0,bottom_left:t.bottom_left??0};{const[e=0,r=0,n=0,o=0]=t;return{top_left:e,top_right:r,bottom_right:n,bottom_left:o}}};const c=t(8),i=t(12);function u(t){if("auto"==t)return{x:"auto",y:"auto"};const e=(()=>{switch(t){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"center":return"center_center";case"right":return"center_right";default:return t}})();if((0,c.isString)(e)){const[t,r]=e.split("_");return{x:r,y:t}}{const[t,r]=e;return{x:t,y:r}}}function s(t){const{x:e,y:r}=u(t);return{x:(()=>{switch(e){case"start":case"left":return 0;case"center":return.5;case"end":case"right":return 1;default:return e}})(),y:(()=>{switch(r){case"start":case"top":return 0;case"center":return.5;case"end":case"bottom":return 1;default:return r}})()}}}, function _(t,o,e,i,n){i(),e.round_rect=function(t,o,e){let{top_left:i,top_right:n,bottom_right:c,bottom_left:h}=e;if(0!=i||0!=n||0!=c||0!=h){const{left:e,right:l,top:r,bottom:T,width:f,height:a}=o,_=Math.min(f/(i+n),a/(n+c),f/(c+h),a/(i+h));_<1&&(i*=_,n*=_,c*=_,h*=_),t.moveTo(e+i,r),t.lineTo(l-n,r),0!=n&&t.arcTo(l,r,l,r+n,n),t.lineTo(l,T-c),0!=c&&t.arcTo(l,T,l-c,T,c),t.lineTo(e+h,T),0!=h&&t.arcTo(e,T,e,T-h,h),t.lineTo(e,r+i),0!=i&&t.arcTo(e,r,e+i,r,i),t.closePath()}else{const{left:e,top:i,width:n,height:c}=o;t.rect(e,i,n,c)}}}, function _(e,s,t,a,r){var _;a();const n=e(84),i=e(104),g=e(103),o=e(96),l=e(101),c=e(98),h=e(99),x=e(106),u=e(109),p=e(64),y=e(9),f=e(12),d=e(8),m=e(63);class w extends n.StyledElementView{constructor(){super(...arguments),this._bbox=new p.BBox,this._x_ranges=new Map,this._y_ranges=new Map,this._x_scales=new Map,this._y_scales=new Map,this.position=new m.InlineStyleSheet}get bbox(){return this._bbox}initialize(){super.initialize(),this._configure_scales()}remove(){this._unregister_frame(),super.remove()}connect_signals(){super.connect_signals();const{x_range:e,y_range:s,x_scale:t,y_scale:a,extra_x_ranges:r,extra_y_ranges:_,extra_x_scales:n,extra_y_scales:i}=this.model.properties;this.on_change([e,s,t,a,r,_,n,i],(()=>{this._configure_scales()}))}_get_ranges(e,s){return new Map([...(0,y.entries)(s),["default",e]])}_get_scales(e,s,t,a){const r=new Map([...(0,y.entries)(s),["default",e]]),_=new Map;for(const[s,n]of t){if(n instanceof u.FactorRange!=e instanceof i.CategoricalScale)throw new Error(`'${n.type}' is incompatible '${e.type}'`);e instanceof g.LogScale&&n instanceof x.DataRange1d&&(n.scale_hint="log");const t=(r.get(s)??e).clone();t.setv({source_range:n,target_range:a}),_.set(s,t)}return _}_configure_ranges(){const{bbox:e}=this;this._x_target=new h.Range1d({start:e.left,end:e.right}),this._y_target=new h.Range1d({start:e.bottom,end:e.top})}_configure_scales(){const{x_range:e,y_range:s,extra_x_ranges:t,extra_y_ranges:a}=this.model,{x_scale:r,y_scale:_,extra_x_scales:n,extra_y_scales:i}=this.model;(0,f.assert)(r.properties.source_range.is_unset&&r.properties.target_range.is_unset),(0,f.assert)(_.properties.source_range.is_unset&&_.properties.target_range.is_unset),this._configure_ranges(),this._unregister_frame(),this._x_ranges=this._get_ranges(e,t),this._y_ranges=this._get_ranges(s,a),this._register_frame(),this._x_scales=this._get_scales(r,n,this._x_ranges,this._x_target),this._y_scales=this._get_scales(_,i,this._y_ranges,this._y_target),this._x_scale=this._x_scales.get("default"),this._y_scale=this._y_scales.get("default"),this.mark_finished()}_update_scales(){this._configure_ranges();for(const[,e]of this._x_scales)e.target_range=this._x_target;for(const[,e]of this._y_scales)e.target_range=this._y_target}_register_frame(){for(const e of this.ranges.values())e.frames.add(this)}_unregister_frame(){for(const e of this.ranges.values())e.frames.delete(this)}set_geometry(e){this._bbox=e,this._update_scales(),this._update_position()}get x_range(){return this.model.x_range}get y_range(){return this.model.y_range}get x_target(){return this._x_target}get y_target(){return this._y_target}get x_ranges(){return this._x_ranges}get y_ranges(){return this._y_ranges}get ranges(){return new Set([...this.x_ranges.values(),...this.y_ranges.values()])}get x_scales(){return this._x_scales}get y_scales(){return this._y_scales}get scales(){return new Set([...this.x_scales.values(),...this.y_scales.values()])}get x_scale(){return this._x_scale}get y_scale(){return this._y_scale}resolve_symbol(e){const s=this.bbox.resolve(e.symbol),{offset:t}=e;if((0,d.isNumber)(s))return s+t;{const{x:e,y:a}=s;return{x:e+t,y:a+t}}}stylesheets(){return[...super.stylesheets(),this.position]}rendering_target(){return this.parent.canvas_view.underlays_el}_update_position(){const{bbox:e,position:s}=this;e.is_valid?s.replace(`\n :host {\n position: absolute;\n left: ${e.left}px;\n top: ${e.top}px;\n width: ${e.width}px;\n height: ${e.height}px;\n }\n `):s.replace("\n :host {\n display: none;\n }\n ")}}t.CartesianFrameView=w,w.__name__="CartesianFrameView";class b extends n.StyledElement{constructor(e){super(e)}}t.CartesianFrame=b,_=b,b.__name__="CartesianFrame",_.prototype.default_view=w,_.define((({Bool:e,Float:s,Dict:t,Ref:a})=>({x_range:[a(c.Range),()=>new x.DataRange1d],y_range:[a(c.Range),()=>new x.DataRange1d],x_scale:[a(o.Scale),()=>new l.LinearScale],y_scale:[a(o.Scale),()=>new l.LinearScale],extra_x_ranges:[t(a(c.Range)),{}],extra_y_ranges:[t(a(c.Range)),{}],extra_x_scales:[t(a(o.Scale)),{}],extra_y_scales:[t(a(o.Scale)),{}],match_aspect:[e,!1],aspect_scale:[s,1]})))}, -function _(t,e,i,s,a){var o;s();const n=t(1),l=t(190),r=t(191),_=t(192),h=t(193),c=n.__importStar(t(80)),d=t(20),u=t(24),m=t(173),b=t(10),f=t(9),x=t(8),g=t(180),p=t(109),v=t(176),w=t(56),k=t(12),j=t(8),y=t(64),z=t(177),M=t(21);i.LabelOverrides=(0,M.Or)((0,M.Dict)((0,M.Or)(M.Str,(0,M.Ref)(v.BaseText))),(0,M.Mapping)((0,M.Or)(M.Str,M.Float),(0,M.Or)(M.Str,(0,M.Ref)(v.BaseText))));const{abs:T}=Math;class A extends l.GuideRendererView{constructor(){super(...arguments),this._axis_label_view=null,this._major_label_views=new Map}get panel(){return this._panel}set panel(t){this._panel=new m.SidePanel(t.side,this.model.face)}get bbox(){if(null!=this.layout&&null==this.model.fixed_location)return this.layout.bbox;if(this.is_renderable){const{extents:t}=this,e=Math.round(t.tick+t.tick_label+t.axis_label);let{sx0:i,sy0:s,sx1:a,sy1:o}=this.rule_scoords;const{dimension:n,face:l}=this;return 0==n?"front"==l?s-=e:o+=e:"front"==l?i-=e:a+=e,y.BBox.from_lrtb({left:i,top:s,right:a,bottom:o})}return new y.BBox}*children(){yield*super.children(),null!=this._axis_label_view&&(yield this._axis_label_view),yield*this._major_label_views.values()}async lazy_initialize(){await super.lazy_initialize(),await this._init_axis_label(),await this._init_major_labels()}async _init_axis_label(){const{axis_label:t}=this.model;if(null!=t){const e=(0,j.isString)(t)?(0,z.parse_delimited_string)(t):t;this._axis_label_view=await(0,w.build_view)(e,{parent:this})}else this._axis_label_view=null}async _init_major_labels(){for(const[t,e]of(0,f.dict)(this.model.major_label_overrides)){const i=(0,j.isString)(e)?(0,z.parse_delimited_string)(e):e;this._major_label_views.set(t,await(0,w.build_view)(i,{parent:this}))}}update_layout(){this.layout=new m.SideLayout(this.panel,(()=>this.get_size()),!0),this.layout.on_resize((()=>{this._coordinates=void 0}))}get_size(){const{visible:t,fixed_location:e}=this.model;if(t&&null==e&&this.is_renderable){const{extents:t}=this;return{width:0,height:Math.round(t.tick+t.tick_label+t.axis_label)}}return{width:0,height:0}}get is_renderable(){const[t,e]=this.ranges;return super.is_renderable&&t.is_valid&&e.is_valid&&t.span>0&&e.span>0}_paint(){const{tick_coords:t,extents:e}=this,i=this.layer.ctx;this._draw_background(i,e),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t)}connect_signals(){super.connect_signals();const{axis_label:t,major_label_overrides:e}=this.model.properties;this.on_change(t,(async()=>{this._axis_label_view?.remove(),await this._init_axis_label()})),this.on_change(e,(async()=>{for(const t of this._major_label_views.values())t.remove();await this._init_major_labels()})),this.connect(this.model.change,(()=>this.plot_view.request_layout()))}get needs_clip(){return null!=this.model.fixed_location}_draw_background(t,e){if(!this.visuals.background_fill.doit)return;t.beginPath();const{x:i,y:s,width:a,height:o}=this.bbox;t.rect(i,s,a,o),this.visuals.background_fill.apply(t)}_draw_rule(t,e){if(!this.visuals.axis_line.doit)return;const{sx0:i,sy0:s,sx1:a,sy1:o}=this.rule_scoords;t.beginPath(),t.moveTo(i,s),t.lineTo(a,o),this.visuals.axis_line.apply(t)}_draw_major_ticks(t,e,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,o=this.visuals.major_tick_line;this._draw_ticks(t,i.major,s,a,o)}_draw_minor_ticks(t,e,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,o=this.visuals.minor_tick_line;this._draw_ticks(t,i.minor,s,a,o)}_draw_major_labels(t,e,i){const s=i.major,a=this.compute_labels(s[this.dimension]),o=this.model.major_label_orientation,n=e.tick+this.model.major_label_standoff,l=this.visuals.major_label_text;this._draw_oriented_labels(t,a,s,o,n,l)}_axis_label_extent(){if(null==this._axis_label_view)return 0;const t=this._axis_label_view.graphics(),e=this.model.axis_label_orientation;t.visuals=this.visuals.axis_label_text.values(),t.angle=this.panel.get_label_angle_heuristic(e),t.base_font_size=this.plot_view.base_font_size;const i=t.size(),s=0==this.dimension?i.height:i.width,a=this.model.axis_label_standoff;return s>0?a+s+3:0}_draw_axis_label(t,e,i){if(null==this._axis_label_view)return;const[s,a]=(()=>{const{bbox:t}=this,{side:e,face:i}=this.panel,[s]=this.ranges,{axis_label_align:a}=this.model;switch(e){case"above":case"below":{const[e,o]=(()=>{switch(a){case"start":return s.is_reversed?[t.right,"right"]:[t.left,"left"];case"center":return[t.hcenter,"center"];case"end":return s.is_reversed?[t.left,"left"]:[t.right,"right"]}})(),[n,l]="front"==i?[t.bottom,"bottom"]:[t.top,"top"];return[e,n,o,l]}case"left":case"right":{const[e,o]=(()=>{switch(a){case"start":return s.is_reversed?[t.top,"top"]:[t.bottom,"bottom"];case"center":return[t.vcenter,"center"];case"end":return s.is_reversed?[t.bottom,"bottom"]:[t.top,"top"]}})(),[n,l]="front"==i?[t.right,"right"]:[t.left,"left"];return[n,e,l,o]}}})(),[o,n]=this.normals,l=this.model.axis_label_orientation,r=e.tick+e.tick_label+this.model.axis_label_standoff,{vertical_align:_,align:h}=this.panel.get_label_text_heuristics(l),c={sx:s+o*r,sy:a+n*r,x_anchor:h,y_anchor:_},d=this._axis_label_view.graphics();d.visuals=this.visuals.axis_label_text.values(),d.angle=this.panel.get_label_angle_heuristic(l),d.base_font_size=this.plot_view.base_font_size,d.position=c,d.align=h,d.paint(t)}_draw_ticks(t,e,i,s,a){if(!a.doit)return;const[o,n]=this.scoords(e),[l,r]=this.normals,[_,h]=this.offsets,[c,d]=[l*(_-i),r*(h-i)],[u,m]=[l*(_+s),r*(h+s)];a.set_value(t),t.beginPath();for(let e=0;et.bbox())),j=(()=>{const[t]=this.ranges;return t.is_reversed?0==this.dimension?(t,e)=>k[t].left-k[e].right:(t,e)=>k[e].top-k[t].bottom:0==this.dimension?(t,e)=>k[e].left-k[t].right:(t,e)=>k[t].top-k[e].bottom})(),{major_label_policy:y}=this.model,z=y.filter(v,k,j),M=[...z.ones()];if(0!=M.length){const t=this.canvas.bbox,e=e=>{const i=k[e];if(i.left<0){const t=-i.left,{position:s}=w[e];w[e].position={...s,sx:s.sx+t}}else if(i.right>t.width){const s=i.right-t.width,{position:a}=w[e];w[e].position={...a,sx:a.sx-s}}},i=e=>{const i=k[e];if(i.top<0){const t=-i.top,{position:s}=w[e];w[e].position={...s,sy:s.sy+t}}else if(i.bottom>t.height){const s=i.bottom-t.height,{position:a}=w[e];w[e].position={...a,sy:a.sy-s}}},s=M[0],a=M[M.length-1];0==this.dimension?(e(s),e(a)):(i(s),i(a))}for(const e of z){w[e].paint(t)}}_tick_extent(){const{major:t,minor:e}=this.tick_coords,i=this.dimension;return Math.max(0==t[i].length?0:this.model.major_tick_out,0==e[i].length?0:this.model.minor_tick_out)}_tick_label_extents(){const t=this.tick_coords.major,e=this.compute_labels(t[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(e,i,s,a)]}get extents(){const t=this._tick_label_extents();return{tick:this._tick_extent(),tick_labels:t,tick_label:(0,b.sum)(t),axis_label:this._axis_label_extent()}}_oriented_labels_extent(t,e,i,s){if(0==t.length||!s.doit)return 0;const a=this.panel.get_label_angle_heuristic(e);t.visuals=s.values(),t.angle=a,t.base_font_size=this.plot_view.base_font_size;const o=t.max_size(),n=0==this.dimension?o.height:o.width;return n>0?i+n+3:0}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(t){const e=this.model.formatter.format_graphics(t,this),{_major_label_views:i}=this,s=new Set;for(let a=0;aT(n-l)?(t=_(r(a,o),n),s=r(_(a,o),l)):(t=r(a,o),s=_(a,o)),[t,s]}}get rule_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,o=[new Array(2),new Array(2)];return o[t][0]=Math.max(s,i.min),o[t][1]=Math.min(a,i.max),o[t][0]>o[t][1]&&(o[t][0]=o[t][1]=NaN),o[e][0]=this.loc,o[e][1]=this.loc,o}get rule_scoords(){const[[t,e],[i,s]]=this.scoords(this.rule_coords);return{sx0:Math.round(t),sy0:Math.round(i),sx1:Math.round(e),sy1:Math.round(s)}}get tick_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,o=this.model.ticker.get_ticks(s,a,i,this.loc),n=o.major,l=o.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;ic||(r[t].push(n[i]),r[e].push(this.loc));for(let i=0;ic||(_[t].push(l[i]),_[e].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:t}=this.model;if(null!=t){if((0,x.isNumber)(t))return t;const[,e]=this.ranges;if(e instanceof p.FactorRange)return e.synthetic(t);(0,k.unreachable)()}const[,e]=this.ranges;switch(this.panel.side){case"left":case"below":return e.start;case"right":case"above":return e.end}}get face(){return this.panel.face}remove(){this._axis_label_view?.remove();for(const t of this._major_label_views.values())t.remove();super.remove()}has_finished(){if(!super.has_finished())return!1;if(null!=this._axis_label_view&&!this._axis_label_view.has_finished())return!1;for(const t of this._major_label_views.values())if(!t.has_finished())return!1;return!0}}i.AxisView=A,A.__name__="AxisView";class L extends l.GuideRenderer{constructor(t){super(t)}}i.Axis=L,o=L,L.__name__="Axis",o.prototype.default_view=A,o.mixins([["axis_",c.Line],["major_tick_",c.Line],["minor_tick_",c.Line],["major_label_",c.Text],["axis_label_",c.Text],["background_",c.Fill]]),o.define((({Any:t,Int:e,Float:s,Str:a,Ref:o,Tuple:n,Or:l,Nullable:c,Auto:u,Enum:m})=>({dimension:[l(m(0,1),u),"auto"],face:[l(d.Face,u),"auto"],bounds:[l(n(s,s),u),"auto"],ticker:[o(r.Ticker)],formatter:[o(_.TickFormatter)],axis_label:[c(l(a,o(v.BaseText))),null],axis_label_standoff:[e,5],axis_label_orientation:[l(d.LabelOrientation,s),"parallel"],axis_label_align:[d.Align,"center"],major_label_standoff:[e,5],major_label_orientation:[l(d.LabelOrientation,s),"horizontal"],major_label_overrides:[i.LabelOverrides,new Map],major_label_policy:[o(h.LabelingPolicy),()=>new h.AllLabels],major_tick_in:[s,2],major_tick_out:[s,6],minor_tick_in:[s,0],minor_tick_out:[s,4],fixed_location:[c(l(s,t)),null]}))),o.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic",background_fill_color:null})}, +function _(t,e,i,s,a){var n;s();const o=t(1),l=t(190),r=t(191),_=t(192),h=t(193),c=t(53),d=o.__importStar(t(80)),u=t(20),m=t(24),b=t(173),x=t(10),f=t(9),g=t(8),p=t(180),v=t(109),w=t(176),k=t(56),j=t(12),y=t(8),z=t(64),M=t(177),T=t(21);i.LabelOverrides=(0,T.Or)((0,T.Dict)((0,T.Or)(T.Str,(0,T.Ref)(w.BaseText))),(0,T.Mapping)((0,T.Or)(T.Str,T.Float),(0,T.Or)(T.Str,(0,T.Ref)(w.BaseText))));const{abs:A}=Math;class L extends l.GuideRendererView{constructor(){super(...arguments),this._axis_label_view=null,this._major_label_views=new Map}get panel(){return this._panel}set panel(t){this._panel=new b.SidePanel(t.side,this.model.face)}get bbox(){if(null!=this.layout&&null==this.model.fixed_location)return this.layout.bbox;if(this.is_renderable){const{extents:t}=this,e=Math.round(t.tick+t.tick_label+t.axis_label);let{sx0:i,sy0:s,sx1:a,sy1:n}=this.rule_scoords;const{dimension:o,face:l}=this;return 0==o?"front"==l?s-=e:n+=e:"front"==l?i-=e:a+=e,z.BBox.from_lrtb({left:i,top:s,right:a,bottom:n})}return new z.BBox}*children(){yield*super.children(),null!=this._axis_label_view&&(yield this._axis_label_view),yield*this._major_label_views.values()}async lazy_initialize(){await super.lazy_initialize(),await this._init_axis_label(),await this._init_major_labels()}async _init_axis_label(){const{axis_label:t}=this.model;if(null!=t){const e=(0,y.isString)(t)?(0,M.parse_delimited_string)(t):t;this._axis_label_view=await(0,k.build_view)(e,{parent:this})}else this._axis_label_view=null}async _init_major_labels(){for(const[t,e]of(0,f.dict)(this.model.major_label_overrides)){const i=(0,y.isString)(e)?(0,M.parse_delimited_string)(e):e;this._major_label_views.set(t,await(0,k.build_view)(i,{parent:this}))}}update_layout(){this.layout=new b.SideLayout(this.panel,(()=>this.get_size()),!0),this.layout.on_resize((()=>{this._coordinates=void 0}))}get_size(){const{visible:t,fixed_location:e}=this.model;if(t&&null==e&&this.is_renderable){const{extents:t}=this;return{width:0,height:Math.round(t.tick+t.tick_label+t.axis_label)}}return{width:0,height:0}}get is_renderable(){const[t,e]=this.ranges;return super.is_renderable&&t.is_valid&&e.is_valid&&t.span>0&&e.span>0}interactive_hit(t,e){return this.bbox.contains(t,e)}on_hit(t,e){const i=this._hit_value(t,e);return null!=i&&(this.model.trigger_event(new c.AxisClick(this.model,i)),!0)}_paint(){const{tick_coords:t,extents:e}=this,i=this.layer.ctx;this._draw_background(i,e),this._draw_rule(i,e),this._draw_major_ticks(i,e,t),this._draw_minor_ticks(i,e,t),this._draw_major_labels(i,e,t),this._draw_axis_label(i,e,t)}connect_signals(){super.connect_signals();const{axis_label:t,major_label_overrides:e}=this.model.properties;this.on_change(t,(async()=>{this._axis_label_view?.remove(),await this._init_axis_label()})),this.on_change(e,(async()=>{for(const t of this._major_label_views.values())t.remove();await this._init_major_labels()})),this.connect(this.model.change,(()=>this.plot_view.request_layout()))}get needs_clip(){return null!=this.model.fixed_location}_draw_background(t,e){if(!this.visuals.background_fill.doit)return;t.beginPath();const{x:i,y:s,width:a,height:n}=this.bbox;t.rect(i,s,a,n),this.visuals.background_fill.apply(t)}_draw_rule(t,e){if(!this.visuals.axis_line.doit)return;const{sx0:i,sy0:s,sx1:a,sy1:n}=this.rule_scoords;t.beginPath(),t.moveTo(i,s),t.lineTo(a,n),this.visuals.axis_line.apply(t)}_draw_major_ticks(t,e,i){const s=this.model.major_tick_in,a=this.model.major_tick_out,n=this.visuals.major_tick_line;this._draw_ticks(t,i.major,s,a,n)}_draw_minor_ticks(t,e,i){const s=this.model.minor_tick_in,a=this.model.minor_tick_out,n=this.visuals.minor_tick_line;this._draw_ticks(t,i.minor,s,a,n)}_draw_major_labels(t,e,i){const s=i.major,a=this.compute_labels(s[this.dimension]),n=this.model.major_label_orientation,o=e.tick+this.model.major_label_standoff,l=this.visuals.major_label_text;this._draw_oriented_labels(t,a,s,n,o,l)}_axis_label_extent(){if(null==this._axis_label_view)return 0;const t=this._axis_label_view.graphics(),e=this.model.axis_label_orientation;t.visuals=this.visuals.axis_label_text.values(),t.angle=this.panel.get_label_angle_heuristic(e),t.base_font_size=this.plot_view.base_font_size;const i=t.size(),s=0==this.dimension?i.height:i.width,a=this.model.axis_label_standoff;return s>0?a+s+3:0}_draw_axis_label(t,e,i){if(null==this._axis_label_view)return;const[s,a]=(()=>{const{bbox:t}=this,{side:e,face:i}=this.panel,[s]=this.ranges,{axis_label_align:a}=this.model;switch(e){case"above":case"below":{const[e,n]=(()=>{switch(a){case"start":return s.is_reversed?[t.right,"right"]:[t.left,"left"];case"center":return[t.hcenter,"center"];case"end":return s.is_reversed?[t.left,"left"]:[t.right,"right"]}})(),[o,l]="front"==i?[t.bottom,"bottom"]:[t.top,"top"];return[e,o,n,l]}case"left":case"right":{const[e,n]=(()=>{switch(a){case"start":return s.is_reversed?[t.top,"top"]:[t.bottom,"bottom"];case"center":return[t.vcenter,"center"];case"end":return s.is_reversed?[t.bottom,"bottom"]:[t.top,"top"]}})(),[o,l]="front"==i?[t.right,"right"]:[t.left,"left"];return[o,e,l,n]}}})(),[n,o]=this.normals,l=this.model.axis_label_orientation,r=e.tick+e.tick_label+this.model.axis_label_standoff,{vertical_align:_,align:h}=this.panel.get_label_text_heuristics(l),c={sx:s+n*r,sy:a+o*r,x_anchor:h,y_anchor:_},d=this._axis_label_view.graphics();d.visuals=this.visuals.axis_label_text.values(),d.angle=this.panel.get_label_angle_heuristic(l),d.base_font_size=this.plot_view.base_font_size,d.position=c,d.align=h,d.paint(t)}_draw_ticks(t,e,i,s,a){if(!a.doit)return;const[n,o]=this.scoords(e),[l,r]=this.normals,[_,h]=[l*-i,r*-i],[c,d]=[l*s,r*s];a.set_value(t),t.beginPath();for(let e=0;et.bbox())),w=(()=>{const[t]=this.ranges;return t.is_reversed?0==this.dimension?(t,e)=>v[t].left-v[e].right:(t,e)=>v[e].top-v[t].bottom:0==this.dimension?(t,e)=>v[e].left-v[t].right:(t,e)=>v[t].top-v[e].bottom})(),{major_label_policy:k}=this.model,j=k.filter(f,v,w),y=[...j.ones()];if(0!=y.length){const t=this.canvas.bbox,e=e=>{const i=v[e];if(i.left<0){const t=-i.left,{position:s}=g[e];g[e].position={...s,sx:s.sx+t}}else if(i.right>t.width){const s=i.right-t.width,{position:a}=g[e];g[e].position={...a,sx:a.sx-s}}},i=e=>{const i=v[e];if(i.top<0){const t=-i.top,{position:s}=g[e];g[e].position={...s,sy:s.sy+t}}else if(i.bottom>t.height){const s=i.bottom-t.height,{position:a}=g[e];g[e].position={...a,sy:a.sy-s}}},s=y[0],a=y[y.length-1];0==this.dimension?(e(s),e(a)):(i(s),i(a))}for(const e of j){g[e].paint(t)}}_tick_extent(){const{major:t,minor:e}=this.tick_coords,i=this.dimension;return Math.max(0==t[i].length?0:this.model.major_tick_out,0==e[i].length?0:this.model.minor_tick_out)}_tick_label_extents(){const t=this.tick_coords.major,e=this.compute_labels(t[this.dimension]),i=this.model.major_label_orientation,s=this.model.major_label_standoff,a=this.visuals.major_label_text;return[this._oriented_labels_extent(e,i,s,a)]}get extents(){const t=this._tick_label_extents();return{tick:this._tick_extent(),tick_labels:t,tick_label:(0,x.sum)(t),axis_label:this._axis_label_extent()}}_oriented_labels_extent(t,e,i,s){if(0==t.length||!s.doit)return 0;const a=this.panel.get_label_angle_heuristic(e);t.visuals=s.values(),t.angle=a,t.base_font_size=this.plot_view.base_font_size;const n=t.max_size(),o=0==this.dimension?n.height:n.width;return o>0?i+o+3:0}get normals(){return this.panel.normals}get dimension(){return this.panel.dimension}compute_labels(t){const e=this.model.formatter.format_graphics(t,this),{_major_label_views:i}=this,s=new Set;for(let a=0;aA(o-l)?(t=_(r(a,n),o),s=r(_(a,n),l)):(t=r(a,n),s=_(a,n)),[t,s]}}get rule_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,n=[new Array(2),new Array(2)];return n[t][0]=Math.max(s,i.min),n[t][1]=Math.min(a,i.max),n[t][0]>n[t][1]&&(n[t][0]=n[t][1]=NaN),n[e][0]=this.loc,n[e][1]=this.loc,n}get rule_scoords(){const[[t,e],[i,s]]=this.scoords(this.rule_coords);return{sx0:Math.round(t),sy0:Math.round(i),sx1:Math.round(e),sy1:Math.round(s)}}get tick_coords(){const t=this.dimension,e=1-t,[i]=this.ranges,[s,a]=this.computed_bounds,n=this.model.ticker.get_ticks(s,a,i,this.loc),o=n.major,l=n.minor,r=[[],[]],_=[[],[]],[h,c]=[i.min,i.max];for(let i=0;ic||(r[t].push(o[i]),r[e].push(this.loc));for(let i=0;ic||(_[t].push(l[i]),_[e].push(this.loc));return{major:r,minor:_}}get loc(){const{fixed_location:t}=this.model;if(null!=t){if((0,g.isNumber)(t))return t;const[,e]=this.ranges;if(e instanceof v.FactorRange)return e.synthetic(t);(0,j.unreachable)()}const[,e]=this.ranges;switch(this.panel.side){case"left":case"below":return e.start;case"right":case"above":return e.end}}get face(){return this.panel.face}remove(){this._axis_label_view?.remove();for(const t of this._major_label_views.values())t.remove();super.remove()}has_finished(){if(!super.has_finished())return!1;if(null!=this._axis_label_view&&!this._axis_label_view.has_finished())return!1;for(const t of this._major_label_views.values())if(!t.has_finished())return!1;return!0}}i.AxisView=L,L.__name__="AxisView";class S extends l.GuideRenderer{constructor(t){super(t)}}i.Axis=S,n=S,S.__name__="Axis",n.mixins([["axis_",d.Line],["major_tick_",d.Line],["minor_tick_",d.Line],["major_label_",d.Text],["axis_label_",d.Text],["background_",d.Fill]]),n.define((({Any:t,Int:e,Float:s,Str:a,Ref:n,Tuple:o,Or:l,Nullable:c,Auto:d,Enum:m})=>({dimension:[l(m(0,1),d),"auto"],face:[l(u.Face,d),"auto"],bounds:[l(o(s,s),d),"auto"],ticker:[n(r.Ticker)],formatter:[n(_.TickFormatter)],axis_label:[c(l(a,n(w.BaseText))),null],axis_label_standoff:[e,5],axis_label_orientation:[l(u.LabelOrientation,s),"parallel"],axis_label_align:[u.Align,"center"],major_label_standoff:[e,5],major_label_orientation:[l(u.LabelOrientation,s),"horizontal"],major_label_overrides:[i.LabelOverrides,new Map],major_label_policy:[n(h.LabelingPolicy),()=>new h.AllLabels],major_tick_in:[s,2],major_tick_out:[s,6],minor_tick_in:[s,0],minor_tick_out:[s,4],fixed_location:[c(l(s,t)),null]}))),n.override({axis_line_color:"black",major_tick_line_color:"black",minor_tick_line_color:"black",major_label_text_font_size:"11px",major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label_text_font_size:"13px",axis_label_text_font_style:"italic",background_fill_color:null})}, function _(e,r,d,n,i){var s;n();const _=e(83);class u extends _.RendererView{}d.GuideRendererView=u,u.__name__="GuideRendererView";class c extends _.Renderer{constructor(e){super(e)}}d.GuideRenderer=c,s=c,c.__name__="GuideRenderer",s.override({level:"guide"})}, function _(c,e,n,s,o){s();const r=c(51);class t extends r.Model{constructor(c){super(c)}}n.Ticker=t,t.__name__="Ticker"}, function _(t,o,r,e,c){e();const a=t(51),m=t(180);class n extends a.Model{constructor(t){super(t)}format_graphics(t,o){return this.doFormat(t,o).map((t=>new m.TextBox({text:t})))}compute(t,o){return this.doFormat([t],o??{loc:0})[0]}v_compute(t,o){return this.doFormat(t,o??{loc:0})}}r.TickFormatter=n,n.__name__="TickFormatter"}, function _(e,n,s,t,i){var c,l;t();const r=e(51),o=e(9),a=e(40),u=e(8),d=e(24);class _ extends r.Model{constructor(e){super(e)}}s.LabelingPolicy=_,_.__name__="LabelingPolicy";class f extends _{constructor(e){super(e)}filter(e,n,s){return e}}s.AllLabels=f,f.__name__="AllLabels";class m extends _{constructor(e){super(e)}filter(e,n,s){const{min_distance:t}=this;let i=null;for(const n of e)null!=i&&s(i,n)({min_distance:[e,5]})));class v extends _{constructor(e){super(e)}get names(){return(0,o.keys)(this.args)}get values(){return(0,o.values)(this.args)}get func(){const e=(0,a.use_strict)(this.code);return new d.GeneratorFunction("indices","bboxes","distance",...this.names,e)}filter(e,n,s){const t=Object.create(null),i=this.func.call(t,e,n,s,...this.values);let c=i.next();if(c.done&&void 0!==c.value){const{value:n}=c;return n instanceof d.Indices?n:void 0===n?e:(0,u.isIterable)(n)?d.Indices.from_indices(e.size,n):d.Indices.all_unset(e.size)}{const n=[];do{n.push(c.value),c=i.next()}while(!c.done);return d.Indices.from_indices(e.size,n)}}}s.CustomLabelingPolicy=v,l=v,v.__name__="CustomLabelingPolicy",l.define((({Unknown:e,Str:n,Dict:s})=>({args:[s(e),{}],code:[n,""]})))}, function _(e,i,s,n,r){var t;n();const a=e(195),o=e(196),c=e(197);class _ extends a.ContinuousAxisView{}s.LinearAxisView=_,_.__name__="LinearAxisView";class u extends a.ContinuousAxis{constructor(e){super(e)}}s.LinearAxis=u,t=u,u.__name__="LinearAxis",t.prototype.default_view=_,t.override({ticker:()=>new c.BasicTicker,formatter:()=>new o.BasicTickFormatter})}, -function _(s,n,i,o,u){o();const e=s(189);class t extends e.AxisView{}i.ContinuousAxisView=t,t.__name__="ContinuousAxisView";class _ extends e.Axis{constructor(s){super(s)}}i.ContinuousAxis=_,_.__name__="ContinuousAxis"}, -function _(i,t,e,o,n){var r;o();const s=i(192),c=i(40);function _(i){let t="";for(const e of i)t+="-"==e?"\u2212":e;return t}e.unicode_replace=_;class a extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,o=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const n of i){const i=Math.abs(n);if(!(i<=o)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){return t?i.map((i=>_(i.toExponential(e)))):i.map((i=>_((0,c.to_fixed)(i,e))))}_auto_precision(i,t){const e=new Array(i.length),o=this.last_precision<=15;i:for(let n=this.last_precision;o?n<=15:n>=1;o?n++:n--){if(t){e[0]=i[0].toExponential(n);for(let t=1;t({precision:[o(t,e),"auto"],use_scientific:[i,!0],power_limit_high:[t,5],power_limit_low:[t,-3]})))}, +function _(s,n,t,i,e){i();const o=s(189);class u extends o.AxisView{_hit_value(s,n){const[t]=this.ranges,{start:i,end:e,span:o}=t;switch(this.dimension){case 0:{const{x0:n,width:t}=this.bbox;return o*(s-n)/t+i}case 1:{const{y0:s,height:t}=this.bbox;return e-o*(n-s)/t}}}}t.ContinuousAxisView=u,u.__name__="ContinuousAxisView";class c extends o.Axis{constructor(s){super(s)}}t.ContinuousAxis=c,c.__name__="ContinuousAxis"}, +function _(i,t,e,o,n){var r;o(),e.unicode_replace=_;const s=i(192),c=i(40);function _(i){let t="";for(const e of i)t+="-"==e?"\u2212":e;return t}class a extends s.TickFormatter{constructor(i){super(i),this.last_precision=3}get scientific_limit_low(){return 10**this.power_limit_low}get scientific_limit_high(){return 10**this.power_limit_high}_need_sci(i){if(!this.use_scientific)return!1;const{scientific_limit_high:t}=this,{scientific_limit_low:e}=this,o=i.length<2?0:Math.abs(i[1]-i[0])/1e4;for(const n of i){const i=Math.abs(n);if(!(i<=o)&&(i>=t||i<=e))return!0}return!1}_format_with_precision(i,t,e){return t?i.map((i=>_(i.toExponential(e)))):i.map((i=>_((0,c.to_fixed)(i,e))))}_auto_precision(i,t){const e=new Array(i.length),o=this.last_precision<=15;i:for(let n=this.last_precision;o?n<=15:n>=1;o?n++:n--){if(t){e[0]=i[0].toExponential(n);for(let t=1;t({precision:[o(t,e),"auto"],use_scientific:[i,!0],power_limit_high:[t,5],power_limit_low:[t,-3]})))}, function _(c,e,s,i,n){i();const r=c(198);class t extends r.AdaptiveTicker{constructor(c){super(c)}}s.BasicTicker=t,t.__name__="BasicTicker"}, function _(t,e,s,a,i){var n;a();const r=t(199),_=t(10),l=t(11);class h extends r.ContinuousTicker{constructor(t){super(t)}get_min_interval(){return this.min_interval}get_max_interval(){return this.max_interval??1/0}get extended_mantissas(){const t=(0,_.nth)(this.mantissas,-1)/this.base,e=(0,_.nth)(this.mantissas,0)*this.base;return[t,...this.mantissas,e]}get base_factor(){return 0==this.get_min_interval()?1:this.get_min_interval()}get_interval(t,e,s){const a=e-t,i=this.get_ideal_interval(t,e,s),n=Math.floor((0,l.log)(i/this.base_factor,this.base)),r=this.base**n*this.base_factor,h=this.extended_mantissas,m=h.map((t=>Math.abs(s-a/(t*r)))),o=h[(0,_.argmin)(m)]*r;return(0,l.clamp)(o,this.get_min_interval(),this.get_max_interval())}}s.AdaptiveTicker=h,n=h,h.__name__="AdaptiveTicker",n.define((({Float:t,List:e,Nullable:s})=>({base:[t,10],mantissas:[e(t),[1,2,5]],min_interval:[t,0],max_interval:[s(t),null]})))}, function _(t,n,i,s,e){var o;s();const r=t(191),c=t(10);class _ extends r.Ticker{constructor(t){super(t)}get_ticks(t,n,i,s){return this.get_ticks_no_defaults(t,n,s,this.desired_num_ticks)}get_ticks_no_defaults(t,n,i,s){const e=this.get_interval(t,n,s),o=Math.floor(t/e),r=Math.ceil(n/e);let _;_=isFinite(o)&&isFinite(r)?(0,c.range)(o,r+1):[];const u=_.map((t=>t*e)).filter((i=>t<=i&&i<=n)),a=this.num_minor_ticks,f=[];if(a>0&&u.length>0){const i=e/a,s=(0,c.range)(0,a).map((t=>t*i));for(const i of s.slice(1)){const s=u[0]-i;t<=s&&s<=n&&f.push(s)}for(const i of u)for(const e of s){const s=i+e;t<=s&&s<=n&&f.push(s)}}return{major:u,minor:f}}get_ideal_interval(t,n,i){return(n-t)/i}}i.ContinuousTicker=_,o=_,_.__name__="ContinuousTicker",o.define((({Int:t})=>({num_minor_ticks:[t,5],desired_num_ticks:[t,6]})))}, -function _(e,i,r,c,k){c(),k("AdaptiveTicker",e(198).AdaptiveTicker),k("BasicTicker",e(197).BasicTicker),k("CategoricalTicker",e(201).CategoricalTicker),k("CompositeTicker",e(202).CompositeTicker),k("ContinuousTicker",e(199).ContinuousTicker),k("DatetimeTicker",e(203).DatetimeTicker),k("DaysTicker",e(204).DaysTicker),k("FixedTicker",e(209).FixedTicker),k("LogTicker",e(210).LogTicker),k("MercatorTicker",e(211).MercatorTicker),k("MonthsTicker",e(207).MonthsTicker),k("SingleIntervalTicker",e(205).SingleIntervalTicker),k("Ticker",e(191).Ticker),k("YearsTicker",e(208).YearsTicker),k("BinnedTicker",e(212).BinnedTicker)}, -function _(t,c,o,s,e){s();const r=t(191);class i extends r.Ticker{constructor(t){super(t)}get_ticks(t,c,o,s){return{major:this._collect(o.factors,o,t,c),minor:[],tops:this._collect(o.tops??[],o,t,c),mids:this._collect(o.mids??[],o,t,c)}}_collect(t,c,o,s){const e=[];for(const r of t){const t=c.synthetic(r);t>o&&to&&tt.get_min_interval()))}get max_intervals(){return this.tickers.map((t=>t.get_max_interval()))}get_min_interval(){return this.min_intervals[0]}get_max_interval(){return this.max_intervals[0]}get_best_ticker(t,e,i){const s=e-t;if(0==s)return this.tickers[0];const r=this.get_ideal_interval(t,e,i),n=[(0,a.sorted_index)(this.min_intervals,r)-1,(0,a.sorted_index)(this.max_intervals,r)],_=[this.min_intervals[n[0]],this.max_intervals[n[1]]].map((t=>Math.abs(i-s/t)));let c;if((0,a.is_empty)(_.filter((t=>!isNaN(t)))))c=this.tickers[0];else{const t=n[(0,a.argmin)(_)];c=this.tickers[t]}return c}get_interval(t,e,i){return this.get_best_ticker(t,e,i).get_interval(t,e,i)}get_ticks_no_defaults(t,e,i,s){return this.get_best_ticker(t,e,s).get_ticks_no_defaults(t,e,i,s)}}i.CompositeTicker=c,n=c,c.__name__="CompositeTicker",n.define((({NonEmptyList:t,Ref:e})=>({tickers:[t(e(_.ContinuousTicker))]})))}, -function _(e,n,i,a,s){var r;a();const t=e(10),c=e(198),m=e(202),_=e(204),k=e(207),o=e(208),T=e(206);class w extends m.CompositeTicker{constructor(e){super(e)}}i.DatetimeTicker=w,r=w,w.__name__="DatetimeTicker",r.override({num_minor_ticks:0,tickers:()=>[new c.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*T.ONE_MILLI,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:T.ONE_SECOND,max_interval:30*T.ONE_MINUTE,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:T.ONE_HOUR,max_interval:12*T.ONE_HOUR,num_minor_ticks:0}),new _.DaysTicker({days:(0,t.range)(1,32)}),new _.DaysTicker({days:(0,t.range)(1,31,3)}),new _.DaysTicker({days:[1,8,15,22]}),new _.DaysTicker({days:[1,15]}),new k.MonthsTicker({months:(0,t.range)(0,12,1)}),new k.MonthsTicker({months:(0,t.range)(0,12,2)}),new k.MonthsTicker({months:(0,t.range)(0,12,4)}),new k.MonthsTicker({months:(0,t.range)(0,12,6)}),new o.YearsTicker({})]})}, -function _(t,e,n,s,o){var a;s();const i=t(205),r=t(206),c=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*r.ONE_DAY:this.interval=31*r.ONE_DAY}get_ticks_no_defaults(t,e,n,s){const o=function(t,e){const n=(0,r.last_month_no_later_than)(new Date(t)),s=(0,r.last_month_no_later_than)(new Date(e));s.setUTCMonth(s.getUTCMonth()+1);const o=[],a=n;for(;o.push((0,r.copy_date)(a)),a.setUTCMonth(a.getUTCMonth()+1),!(a>s););return o}(t,e),a=this.days;return{major:(0,c.concat)(o.map((t=>((t,e)=>{const n=t.getUTCMonth(),s=[];for(const o of a){const a=(0,r.copy_date)(t);a.setUTCDate(o),new Date(a.getTime()+e/2).getUTCMonth()==n&&s.push(a)}return s})(t,this.interval)))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.DaysTicker=_,a=_,_.__name__="DaysTicker",a.define((({Int:t,List:e})=>({days:[e(t),[]]}))),a.override({num_minor_ticks:0})}, +function _(t,s,r,n,e){var i;n();const o=t(191),c=t(109),a=t(9),m=t(40);class _ extends o.Ticker{constructor(t){super(t)}get names(){return(0,a.keys)(this.args)}get values(){return(0,a.values)(this.args)}get_ticks(t,s,r,n){const e={start:t,end:s,range:r,cross_loc:n},i=this.major_ticks(e);if(r instanceof c.FactorRange)return{major:i,minor:[],tops:[],mids:[]};const o={major_ticks:i,...e};return{major:i,minor:this.minor_ticks(o)}}major_ticks(t){if(""==this.major_code)return[];const s=(0,m.use_strict)(this.major_code);return new Function("cb_data",...this.names,s)(t,...this.values)}minor_ticks(t){if(""==this.minor_code)return[];const s=(0,m.use_strict)(this.minor_code);return new Function("cb_data",...this.names,s)(t,...this.values)}}r.CustomJSTicker=_,i=_,_.__name__="CustomJSTicker",i.define((({Unknown:t,Str:s,Dict:r})=>({args:[r(t),{}],major_code:[s,""],minor_code:[s,""]})))}, +function _(e,n,i,a,s){var r;a();const t=e(10),c=e(198),m=e(202),_=e(205),k=e(208),o=e(209),T=e(207);class w extends m.CompositeTicker{constructor(e){super(e)}}i.DatetimeTicker=w,r=w,w.__name__="DatetimeTicker",r.override({num_minor_ticks:0,tickers:()=>[new c.AdaptiveTicker({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*T.ONE_MILLI,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:T.ONE_SECOND,max_interval:30*T.ONE_MINUTE,num_minor_ticks:0}),new c.AdaptiveTicker({mantissas:[1,2,4,6,8,12],base:24,min_interval:T.ONE_HOUR,max_interval:12*T.ONE_HOUR,num_minor_ticks:0}),new _.DaysTicker({days:(0,t.range)(1,32)}),new _.DaysTicker({days:(0,t.range)(1,31,3)}),new _.DaysTicker({days:[1,8,15,22]}),new _.DaysTicker({days:[1,15]}),new k.MonthsTicker({months:(0,t.range)(0,12,1)}),new k.MonthsTicker({months:(0,t.range)(0,12,2)}),new k.MonthsTicker({months:(0,t.range)(0,12,4)}),new k.MonthsTicker({months:(0,t.range)(0,12,6)}),new o.YearsTicker({})]})}, +function _(t,e,n,s,o){var a;s();const i=t(206),r=t(207),c=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.days;t.length>1?this.interval=(t[1]-t[0])*r.ONE_DAY:this.interval=31*r.ONE_DAY}get_ticks_no_defaults(t,e,n,s){const o=function(t,e){const n=(0,r.last_month_no_later_than)(new Date(t)),s=(0,r.last_month_no_later_than)(new Date(e));s.setUTCMonth(s.getUTCMonth()+1);const o=[],a=n;for(;o.push((0,r.copy_date)(a)),a.setUTCMonth(a.getUTCMonth()+1),!(a>s););return o}(t,e),a=this.days;return{major:(0,c.concat)(o.map((t=>((t,e)=>{const n=t.getUTCMonth(),s=[];for(const o of a){const a=(0,r.copy_date)(t);a.setUTCDate(o),new Date(a.getTime()+e/2).getUTCMonth()==n&&s.push(a)}return s})(t,this.interval)))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.DaysTicker=_,a=_,_.__name__="DaysTicker",a.define((({Int:t,List:e})=>({days:[e(t),[]]}))),a.override({num_minor_ticks:0})}, function _(e,n,t,r,i){var a;r();const l=e(199);class s extends l.ContinuousTicker{constructor(e){super(e)}get_interval(e,n,t){return this.interval}get_min_interval(){return this.interval}get_max_interval(){return this.interval}}t.BaseSingleIntervalTicker=s,s.__name__="BaseSingleIntervalTicker";class _ extends s{constructor(e){super(e)}}t.SingleIntervalTicker=_,a=_,_.__name__="SingleIntervalTicker",a.define((({Float:e})=>({interval:[e]})))}, -function _(t,n,e,_,E){function N(t){return new Date(t.getTime())}function O(t){const n=N(t);return n.setUTCDate(1),n.setUTCHours(0),n.setUTCMinutes(0),n.setUTCSeconds(0),n.setUTCMilliseconds(0),n}_(),e.ONE_MILLI=1,e.ONE_SECOND=1e3,e.ONE_MINUTE=60*e.ONE_SECOND,e.ONE_HOUR=60*e.ONE_MINUTE,e.ONE_DAY=24*e.ONE_HOUR,e.ONE_MONTH=30*e.ONE_DAY,e.ONE_YEAR=365*e.ONE_DAY,e.copy_date=N,e.last_month_no_later_than=O,e.last_year_no_later_than=function(t){const n=O(t);return n.setUTCMonth(0),n}}, -function _(t,e,n,a,s){var r;a();const i=t(205),o=t(206),l=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*o.ONE_MONTH:this.interval=12*o.ONE_MONTH}get_ticks_no_defaults(t,e,n,a){const s=function(t,e){const n=(0,o.last_year_no_later_than)(new Date(t)),a=(0,o.last_year_no_later_than)(new Date(e));a.setUTCFullYear(a.getUTCFullYear()+1);const s=[],r=n;for(;s.push((0,o.copy_date)(r)),r.setUTCFullYear(r.getUTCFullYear()+1),!(r>a););return s}(t,e),r=this.months;return{major:(0,l.concat)(s.map((t=>r.map((e=>{const n=(0,o.copy_date)(t);return n.setUTCMonth(e),n}))))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.MonthsTicker=_,r=_,_.__name__="MonthsTicker",r.define((({Int:t,List:e})=>({months:[e(t),[]]})))}, -function _(e,t,a,r,_){r();const n=e(197),s=e(205),i=e(206);class c extends s.BaseSingleIntervalTicker{constructor(e){super(e),this.interval=i.ONE_YEAR,this.basic_ticker=new n.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,r){const _=(0,i.last_year_no_later_than)(new Date(e)).getUTCFullYear(),n=(0,i.last_year_no_later_than)(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(_,n,a,r).major.map((e=>Date.UTC(e,0,1))).filter((a=>e<=a&&a<=t)),minor:[]}}}a.YearsTicker=c,c.__name__="YearsTicker"}, +function _(t,n,e,_,E){function N(t){return new Date(t.getTime())}function O(t){const n=N(t);return n.setUTCDate(1),n.setUTCHours(0),n.setUTCMinutes(0),n.setUTCSeconds(0),n.setUTCMilliseconds(0),n}_(),e.copy_date=N,e.last_month_no_later_than=O,e.last_year_no_later_than=function(t){const n=O(t);return n.setUTCMonth(0),n},e.ONE_MILLI=1,e.ONE_SECOND=1e3,e.ONE_MINUTE=60*e.ONE_SECOND,e.ONE_HOUR=60*e.ONE_MINUTE,e.ONE_DAY=24*e.ONE_HOUR,e.ONE_MONTH=30*e.ONE_DAY,e.ONE_YEAR=365*e.ONE_DAY}, +function _(t,e,n,a,s){var r;a();const i=t(206),o=t(207),l=t(10);class _ extends i.BaseSingleIntervalTicker{constructor(t){super(t)}initialize(){super.initialize();const t=this.months;t.length>1?this.interval=(t[1]-t[0])*o.ONE_MONTH:this.interval=12*o.ONE_MONTH}get_ticks_no_defaults(t,e,n,a){const s=function(t,e){const n=(0,o.last_year_no_later_than)(new Date(t)),a=(0,o.last_year_no_later_than)(new Date(e));a.setUTCFullYear(a.getUTCFullYear()+1);const s=[],r=n;for(;s.push((0,o.copy_date)(r)),r.setUTCFullYear(r.getUTCFullYear()+1),!(r>a););return s}(t,e),r=this.months;return{major:(0,l.concat)(s.map((t=>r.map((e=>{const n=(0,o.copy_date)(t);return n.setUTCMonth(e),n}))))).map((t=>t.getTime())).filter((n=>t<=n&&n<=e)),minor:[]}}}n.MonthsTicker=_,r=_,_.__name__="MonthsTicker",r.define((({Int:t,List:e})=>({months:[e(t),[]]})))}, +function _(e,t,a,r,_){r();const n=e(197),s=e(206),i=e(207);class c extends s.BaseSingleIntervalTicker{constructor(e){super(e),this.interval=i.ONE_YEAR,this.basic_ticker=new n.BasicTicker({num_minor_ticks:0})}get_ticks_no_defaults(e,t,a,r){const _=(0,i.last_year_no_later_than)(new Date(e)).getUTCFullYear(),n=(0,i.last_year_no_later_than)(new Date(t)).getUTCFullYear();return{major:this.basic_ticker.get_ticks_no_defaults(_,n,a,r).major.map((e=>Date.UTC(e,0,1))).filter((a=>e<=a&&a<=t)),minor:[]}}}a.YearsTicker=c,c.__name__="YearsTicker"}, function _(t,e,r,i,n){var s;i();const _=t(199);class c extends _.ContinuousTicker{constructor(t){super(t)}get_ticks_no_defaults(t,e,r,i){return{major:[...this.ticks],minor:[...this.minor_ticks]}}get_interval(t,e,r){return 0}get_min_interval(){return 0}get_max_interval(){return 0}}r.FixedTicker=c,s=c,c.__name__="FixedTicker",s.define((({Float:t,Arrayable:e})=>({ticks:[e(t),[]],minor_ticks:[e(t),[]]})))}, function _(t,o,e,s,n){var r;s();const i=t(198),a=t(10);class c extends i.AdaptiveTicker{constructor(t){super(t)}get_ticks_no_defaults(t,o,e,s){const n=this.num_minor_ticks,r=[],i=this.base,c=Math.log(t)/Math.log(i),f=Math.log(o)/Math.log(i),l=f-c;let h;if(isFinite(l)&&0!=l)if(l<2){const e=this.get_interval(t,o,s),i=Math.floor(t/e),c=Math.ceil(o/e);if(h=(0,a.range)(i,c+1).filter((t=>0!=t)).map((t=>t*e)).filter((e=>t<=e&&e<=o)),n>0&&h.length>0){const t=e/n,o=(0,a.range)(0,n).map((o=>o*t));for(const t of o.slice(1))r.push(h[0]-t);for(const t of h)for(const e of o)r.push(t+e)}}else{const t=Math.ceil(.999999*c),o=Math.floor(1.000001*f),e=Math.ceil((o-t)/9);if(h=(0,a.range)(t-1,o+1,e).map((t=>i**t)),n>0&&h.length>0){const t=i**e/n,o=(0,a.range)(1,n+1).map((o=>o*t));for(const t of o)r.push(h[0]/t);r.push(h[0]);for(const t of h)for(const e of o)r.push(t*e)}}else h=[];return{major:h.filter((e=>t<=e&&e<=o)),minor:r.filter((e=>t<=e&&e<=o))}}}e.LogTicker=c,r=c,c.__name__="LogTicker",r.override({mantissas:[1,5]})}, function _(t,o,n,s,r){var e;s();const i=t(197),c=t(20),_=t(134);class a extends i.BasicTicker{constructor(t){super(t)}get_ticks_no_defaults(t,o,n,s){if(null==this.dimension)throw new Error(`${this}.dimension wasn't configured`);return[t,o]=(0,_.clip_mercator)(t,o,this.dimension),"lon"==this.dimension?this._get_ticks_lon(t,o,n,s):this._get_ticks_lat(t,o,n,s)}_get_ticks_lon(t,o,n,s){const[r]=_.wgs84_mercator.invert(t,n),[e,i]=_.wgs84_mercator.invert(o,n),c=super.get_ticks_no_defaults(r,e,n,s),a=[];for(const t of c.major)if((0,_.in_bounds)(t,"lon")){const[o]=_.wgs84_mercator.compute(t,i);a.push(o)}const m=[];for(const t of c.minor)if((0,_.in_bounds)(t,"lon")){const[o]=_.wgs84_mercator.compute(t,i);m.push(o)}return{major:a,minor:m}}_get_ticks_lat(t,o,n,s){const[,r]=_.wgs84_mercator.invert(n,t),[e,i]=_.wgs84_mercator.invert(n,o),c=super.get_ticks_no_defaults(r,i,n,s),a=[];for(const t of c.major)if((0,_.in_bounds)(t,"lat")){const[,o]=_.wgs84_mercator.compute(e,t);a.push(o)}const m=[];for(const t of c.minor)if((0,_.in_bounds)(t,"lat")){const[,o]=_.wgs84_mercator.compute(e,t);m.push(o)}return{major:a,minor:m}}}n.MercatorTicker=a,e=a,a.__name__="MercatorTicker",e.define((({Nullable:t})=>({dimension:[t(c.LatLon),null]})))}, -function _(e,n,t,r,i){var o;r();const a=e(191),s=e(213),c=e(13);class _ extends a.Ticker{constructor(e){super(e)}get_ticks(e,n,t,r){const{binning:i}=this.mapper.metrics,o=Math.max(0,(0,c.left_edge_index)(e,i)),a=Math.min((0,c.left_edge_index)(n,i)+1,i.length-1),s=[];for(let e=o;e<=a;e++)s.push(i[e]);const{num_major_ticks:_}=this,m=[],h="auto"==_?s.length:_,l=Math.max(1,Math.floor(s.length/h));for(let e=0;e({mapper:[n(s.ScanningColorMapper)],num_major_ticks:[t(e,r),8]})))}, -function _(n,i,e,t,a){t();const o=n(214),_=n(13);class r extends o.ContinuousColorMapper{constructor(n){super(n)}index_to_value(n){return this._scan_data.binning[n]}value_to_index(n,i){const e=this._scan_data;return ne.binning[e.binning.length-1]?i:(0,_.left_edge_index)(n,e.binning)}}e.ScanningColorMapper=r,r.__name__="ScanningColorMapper"}, -function _(t,o,e,n,l){var s;n();const i=t(215),c=t(217),a=t(10),h=t(8);class r extends i.ColorMapper{constructor(t){super(t),this._scan_data=null}connect_signals(){super.connect_signals();const t=()=>{for(const[t]of this.domain)this.connect(t.view.change,(()=>this.update_data())),this.connect(t.data_source.selected.change,(()=>this.update_data()))},{high:o,low:e,high_color:n,low_color:l,palette:s,nan_color:i}=this.properties;this.on_change([o,e,n,l,s,i],(()=>this.update_data())),this.connect(this.properties.domain.change,(()=>t())),t()}update_data(){const{domain:t,palette:o}=this,e=[...this._collect(t)];this._scan_data=this.scan(e,o.length),this.metrics_change.emit(),this.change.emit()}get metrics(){return null==this._scan_data&&this.update_data(),this._scan_data}*_collect(t){for(const[o,e]of t)for(const t of(0,h.isArray)(e)?e:[e]){if(o.view.properties.indices.is_unset)continue;const e=o.data_source.get_column(t);if(null==e)continue;let n=o.view.indices.select(e);const l=o.view.masked,s=o.data_source.selected.indices;let i;if(null!=l&&s.length>0?i=(0,a.intersection)([...l],s):null!=l?i=[...l]:s.length>0&&(i=s),null!=i&&(n=(0,a.map)(i,(t=>n[t]))),n.length>0&&!(0,h.isNumber)(n[0]))for(const t of n)yield*t;else yield*n}}_v_compute(t,o,e,n){const{nan_color:l}=n;let{low_color:s,high_color:i}=n;null==s&&(s=e[0]),null==i&&(i=e[e.length-1]);const{domain:c}=this,h=(0,a.is_empty)(c)?t:[...this._collect(c)];this._scan_data=this.scan(h,e.length),this.metrics_change.emit();for(let n=0,c=t.length;n=o.length?n:o[l]}}e.ContinuousColorMapper=r,s=r,r.__name__="ContinuousColorMapper",s.define((({Float:t,Str:o,Ref:e,Color:n,Or:l,Tuple:s,List:i,Nullable:a})=>({high:[a(t),null],low:[a(t),null],high_color:[a(n),null],low_color:[a(n),null],domain:[i(s(e(c.GlyphRenderer),l(o,i(o)))),[]]})))}, -function _(t,e,r,n,o){var i;n();const _=t(216),c=t(15),a=t(24),s=t(22),l=t(27),p=t(30);function u(t){return(0,s.encode_rgba)((0,s.color2rgba)(t))}function h(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;rt))),e}get rgba_mapper(){const t=this,e=h(this.palette),r=this._colors(u);return{v_compute(n){const o=(0,p.is_NDArray)(n)&&3==n.dimension?n.shape[2]:1,i=new a.ColorArray(n.length/o);return t._v_compute_uint32(n,i,e,r),new Uint8ClampedArray((0,l.to_big_endian)(i).buffer)}}}_colors(t){return{nan_color:t(this.nan_color)}}_v_compute_uint32(t,e,r,n){this._v_compute(t,e,r,n)}}r.ColorMapper=g,i=g,g.__name__="ColorMapper",i.define((({Color:t,List:e})=>({palette:[e(t)],nan_color:[t,"gray"]})))}, +function _(e,n,t,r,i){var o;r();const a=e(191),s=e(214),c=e(13);class _ extends a.Ticker{constructor(e){super(e)}get_ticks(e,n,t,r){const{binning:i}=this.mapper.metrics,o=Math.max(0,(0,c.left_edge_index)(e,i)),a=Math.min((0,c.left_edge_index)(n,i)+1,i.length-1),s=[];for(let e=o;e<=a;e++)s.push(i[e]);const{num_major_ticks:_}=this,m=[],h="auto"==_?s.length:_,l=Math.max(1,Math.floor(s.length/h));for(let e=0;e({mapper:[n(s.ScanningColorMapper)],num_major_ticks:[t(e,r),8]})))}, +function _(n,i,e,t,a){t();const o=n(215),_=n(13);class r extends o.ContinuousColorMapper{constructor(n){super(n)}index_to_value(n){return this._scan_data.binning[n]}value_to_index(n,i){const e=this._scan_data;return ne.binning[e.binning.length-1]?i:(0,_.left_edge_index)(n,e.binning)}}e.ScanningColorMapper=r,r.__name__="ScanningColorMapper"}, +function _(t,o,e,n,l){var s;n();const i=t(216),c=t(218),a=t(10),h=t(8);class r extends i.ColorMapper{constructor(t){super(t),this._scan_data=null}connect_signals(){super.connect_signals();const t=()=>{for(const[t]of this.domain)this.connect(t.view.change,(()=>this.update_data())),this.connect(t.data_source.selected.change,(()=>this.update_data()))},{high:o,low:e,high_color:n,low_color:l,palette:s,nan_color:i}=this.properties;this.on_change([o,e,n,l,s,i],(()=>this.update_data())),this.connect(this.properties.domain.change,(()=>t())),t()}update_data(){const{domain:t,palette:o}=this,e=[...this._collect(t)];this._scan_data=this.scan(e,o.length),this.metrics_change.emit(),this.change.emit()}get metrics(){return null==this._scan_data&&this.update_data(),this._scan_data}*_collect(t){for(const[o,e]of t)for(const t of(0,h.isArray)(e)?e:[e]){if(o.view.properties.indices.is_unset)continue;const e=o.data_source.get_column(t);if(null==e)continue;let n=o.view.indices.select(e);const l=o.view.masked,s=o.data_source.selected.indices;let i;if(null!=l&&s.length>0?i=(0,a.intersection)([...l],s):null!=l?i=[...l]:s.length>0&&(i=s),null!=i&&(n=(0,a.map)(i,(t=>n[t]))),n.length>0&&!(0,h.isNumber)(n[0]))for(const t of n)yield*t;else yield*n}}_v_compute(t,o,e,n){const{nan_color:l}=n;let{low_color:s,high_color:i}=n;null==s&&(s=e[0]),null==i&&(i=e[e.length-1]);const{domain:c}=this,h=(0,a.is_empty)(c)?t:[...this._collect(c)];this._scan_data=this.scan(h,e.length),this.metrics_change.emit();for(let n=0,c=t.length;n=o.length?n:o[l]}}e.ContinuousColorMapper=r,s=r,r.__name__="ContinuousColorMapper",s.define((({Float:t,Str:o,Ref:e,Color:n,Or:l,Tuple:s,List:i,Nullable:a})=>({high:[a(t),null],low:[a(t),null],high_color:[a(n),null],low_color:[a(n),null],domain:[i(s(e(c.GlyphRenderer),l(o,i(o)))),[]]})))}, +function _(t,e,r,n,o){var i;n(),r._convert_color=u,r._convert_palette=h;const _=t(217),c=t(15),a=t(24),s=t(22),l=t(27),p=t(30);function u(t){return(0,s.encode_rgba)((0,s.color2rgba)(t))}function h(t){const e=new Uint32Array(t.length);for(let r=0,n=t.length;rt))),e}get rgba_mapper(){const t=this,e=h(this.palette),r=this._colors(u);return{v_compute(n){const o=(0,p.is_NDArray)(n)&&3==n.dimension?n.shape[2]:1,i=new a.ColorArray(n.length/o);return t._v_compute_uint32(n,i,e,r),new Uint8ClampedArray((0,l.to_big_endian)(i).buffer)}}}_colors(t){return{nan_color:t(this.nan_color)}}_v_compute_uint32(t,e,r,n){this._v_compute(t,e,r,n)}}r.ColorMapper=g,i=g,g.__name__="ColorMapper",i.define((({Color:t,List:e})=>({palette:[e(t)],nan_color:[t,"gray"]})))}, function _(r,e,n,s,o){s();const p=r(97);class t extends p.Transform{constructor(r){super(r)}compute(r){throw new Error("mapping single values is not supported")}}n.Mapper=t,t.__name__="Mapper"}, -function _(e,t,i,s,l){var h;s();const n=e(218),a=e(219),o=e(229),_=e(230),c=e(233),d=e(234),p=e(235),r=e(221),g=e(128),y=e(236),u=e(24),m=e(13),v=e(9),w=e(56),f=e(26),b=e(109),V=e(226),x={fill:{},line:{}},z={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},G={fill:{fill_alpha:.2},line:{}},R={fill:{fill_alpha:.2},line:{}};class k extends n.DataRendererView{get glyph_view(){return this.glyph}*children(){yield*super.children(),yield this.cds_view,yield this.glyph,yield this.selection_glyph,yield this.nonselection_glyph,null!=this.hover_glyph&&(yield this.hover_glyph),yield this.muted_glyph,yield this.decimated_glyph}get data_source(){return this.model.properties.data_source}async lazy_initialize(){await super.lazy_initialize(),this.cds_view=await(0,w.build_view)(this.model.view,{parent:this});const e=this.model.glyph;this.glyph=await this.build_glyph_view(e);const t="fill"in this.glyph.visuals,i="line"in this.glyph.visuals,s={...e.attributes};function l(l){const h=(0,v.clone)(s);return t&&(0,v.extend)(h,l.fill),i&&(0,v.extend)(h,l.line),new e.constructor(h)}function h(e,t){return t instanceof r.Glyph?t:l("auto"==t?e:{fill:{},line:{}})}delete s.id;let{selection_glyph:n,nonselection_glyph:a,hover_glyph:o,muted_glyph:_}=this.model;n=h(x,n),this.selection_glyph=await this.build_glyph_view(n),a=h(G,a),this.nonselection_glyph=await this.build_glyph_view(a),null!=o&&(this.hover_glyph=await this.build_glyph_view(o)),_=h(R,_),this.muted_glyph=await this.build_glyph_view(_);const c=h(z,"auto");this.decimated_glyph=await this.build_glyph_view(c),this.selection_glyph.set_base(this.glyph),this.nonselection_glyph.set_base(this.glyph),this.hover_glyph?.set_base(this.glyph),this.muted_glyph.set_base(this.glyph),this.decimated_glyph.set_base(this.glyph),await this.set_data()}async build_glyph_view(e){return(0,w.build_view)(e,{parent:this})}remove(){this.cds_view.remove(),this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),this.hover_glyph?.remove(),this.muted_glyph.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals();const e=()=>this.request_paint(),t=()=>this.update_data();this.connect(this.model.change,e),this.connect(this.glyph.model.change,t),this.connect(this.selection_glyph.model.change,t),this.connect(this.nonselection_glyph.model.change,t),null!=this.hover_glyph&&this.connect(this.hover_glyph.model.change,t),this.connect(this.muted_glyph.model.change,t),this.connect(this.decimated_glyph.model.change,t),this.connect(this.model.data_source.change,t),this.connect(this.model.data_source.streaming,t),this.connect(this.model.data_source.patching,(e=>this.update_data(e))),this.connect(this.model.data_source.selected.change,e),this.connect(this.model.data_source._select,e),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,(()=>{const{inspected:t}=this.model.data_source,i={indices:t.indices,line_indices:t.line_indices,multiline_indices:t.multiline_indices,image_indices:t.image_indices,selected_glyphs:t.selected_glyphs};(0,f.is_equal)(this._previous_inspected,i)||(this._previous_inspected=i,e())})),this.connect(this.model.properties.view.change,(async()=>{this.cds_view.remove(),this.cds_view=await(0,w.build_view)(this.model.view,{parent:this}),await t()})),this.connect(this.model.view.properties.indices.change,t),this.connect(this.model.view.properties.masked.change,(async()=>await this.set_visuals())),this.connect(this.model.properties.visible.change,(()=>this.plot_view.invalidate_dataranges=!0));const{x_ranges:i,y_ranges:s}=this.plot_view.frame;for(const[,e]of i)e instanceof b.FactorRange&&this.connect(e.invalidate_synthetic,t);for(const[,e]of s)e instanceof b.FactorRange&&this.connect(e.invalidate_synthetic,t);const{transformchange:l,exprchange:h}=this.model.glyph;this.connect(l,t),this.connect(h,t)}_update_masked_indices(){const e=this.glyph.mask_data();return this.model.view.masked=e,e}async update_data(e){await this.set_data(e),this.request_paint()}async set_data(e){const t=this.model.data_source;this.all_indices=this.model.view.indices;const{all_indices:i}=this;await this.glyph.set_data(t,i,e),await this.decimated_glyph.set_data(t,i,e),await this.selection_glyph.set_data(t,i,e),await this.nonselection_glyph.set_data(t,i,e),await(this.hover_glyph?.set_data(t,i,e)),await this.muted_glyph.set_data(t,i,e),await this.set_visuals(),this._update_masked_indices();const{lod_factor:s}=this.plot_model,l=this.all_indices.count;this.decimated=new u.Indices(l);for(let e=0;el.is_empty()?[]:this.glyph instanceof a.LineView&&l.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(i):l.indices)(),{inspected:n}=this.model.data_source;this._previous_inspected={indices:n.indices,line_indices:n.line_indices,multiline_indices:n.multiline_indices,image_indices:n.image_indices,selected_glyphs:n.selected_glyphs};const r=new Set((()=>n.is_empty()?[]:null!=n.selected_glyph?this.model.view.convert_indices_from_subset(i):n.indices.length>0?n.indices:Object.keys(n.multiline_indices).map((e=>parseInt(e))))()),g=(0,m.filter)(i,(e=>r.has(t[e]))),{lod_threshold:y}=this.plot_model;let u,v,w;if(null!=this.model.document&&this.model.document.interactive_duration()>0&&!e&&null!=y&&t.length>y?(i=[...this.decimated],u=this.decimated_glyph,v=this.decimated_glyph,w=this.selection_glyph):(u=this.model.muted?this.muted_glyph:this.glyph,v=this.nonselection_glyph,w=this.selection_glyph),null!=this.hover_glyph&&0!=g.length){const e=new Set(i);for(const t of g)e.delete(t);i=[...e]}if(0==h.length)if(this.glyph instanceof a.LineView)null!=this.hover_glyph&&0!=g.length?this.hover_glyph.paint(s,this.model.view.convert_indices_from_subset(g)):u.paint(s,t);else if(this.glyph instanceof o.PatchView||this.glyph instanceof c.HAreaView||this.glyph instanceof p.VAreaView||this.glyph instanceof d.VAreaStepView||this.glyph instanceof _.HAreaStepView)if(0==n.selected_glyphs.length||null==this.hover_glyph)u.paint(s,t);else for(const e of n.selected_glyphs)e==this.glyph.model&&this.hover_glyph.paint(s,t);else u.paint(s,i),null!=this.hover_glyph&&0!=g.length&&this.hover_glyph.paint(s,g);else{const e=new Set(h),l=new Array,n=new Array;if(this.glyph instanceof a.LineView)for(const i of t)e.has(i)?l.push(i):n.push(i);else for(const s of i)e.has(t[s])?l.push(s):n.push(s);v.paint(s,n),w.paint(s,l),null!=this.hover_glyph&&(this.glyph instanceof a.LineView?this.hover_glyph.paint(s,this.model.view.convert_indices_from_subset(g)):this.hover_glyph.paint(s,g))}s.restore()}get_reference_point(e,t){if(null!=e){const i=this.model.data_source.get_column(e);if(null!=i)for(const[e,s]of this.model.view.indices_map)if(i[e]==t)return s}return 0}draw_legend(e,t,i,s,l,h,n,a){if(0==this.glyph.data_size)return;const o=(()=>{if(null==a)return this.get_reference_point(h,n);{const{indices_map:e}=this.model.view;return e.get(a)}})();null!=o&&this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=k,k.__name__="GlyphRendererView";class S extends n.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.data_source.selection_manager}add_decoration(e,t){const i=new V.Decoration({marking:e,node:t}),s=[this.glyph,this.selection_glyph,this.nonselection_glyph,this.hover_glyph,this.muted_glyph];for(const e of s)e instanceof r.Glyph&&(e.decorations=[...e.decorations,i]);return i}}i.GlyphRenderer=S,h=S,S.__name__="GlyphRenderer",h.prototype.default_view=k,h.define((({Bool:e,Auto:t,Or:i,Ref:s,Null:l,Nullable:h})=>({data_source:[s(g.ColumnarDataSource)],view:[s(y.CDSView),()=>new y.CDSView],glyph:[s(r.Glyph)],hover_glyph:[h(s(r.Glyph)),null],nonselection_glyph:[i(s(r.Glyph),t,l),"auto"],selection_glyph:[i(s(r.Glyph),t,l),"auto"],muted_glyph:[i(s(r.Glyph),t,l),"auto"],muted:[e,!1]})))}, +function _(e,t,i,s,l){var h;s();const n=e(219),a=e(220),o=e(230),_=e(231),c=e(234),d=e(235),p=e(236),r=e(222),g=e(128),y=e(237),u=e(24),m=e(13),v=e(9),w=e(56),f=e(26),b=e(109),V=e(227),x={fill:{},line:{}},z={fill:{fill_alpha:.3,fill_color:"grey"},line:{line_alpha:.3,line_color:"grey"}},G={fill:{fill_alpha:.2},line:{}},R={fill:{fill_alpha:.2},line:{}};class k extends n.DataRendererView{get glyph_view(){return this.glyph}*children(){yield*super.children(),yield this.cds_view,yield this.glyph,yield this.selection_glyph,yield this.nonselection_glyph,null!=this.hover_glyph&&(yield this.hover_glyph),yield this.muted_glyph,yield this.decimated_glyph}get data_source(){return this.model.properties.data_source}async lazy_initialize(){await super.lazy_initialize(),this.cds_view=await(0,w.build_view)(this.model.view,{parent:this});const e=this.model.glyph;this.glyph=await this.build_glyph_view(e);const t="fill"in this.glyph.visuals,i="line"in this.glyph.visuals,s={...e.attributes};function l(l){const h=(0,v.clone)(s);return t&&(0,v.extend)(h,l.fill),i&&(0,v.extend)(h,l.line),new e.constructor(h)}function h(e,t){return t instanceof r.Glyph?t:l("auto"==t?e:{fill:{},line:{}})}delete s.id;let{selection_glyph:n,nonselection_glyph:a,hover_glyph:o,muted_glyph:_}=this.model;n=h(x,n),this.selection_glyph=await this.build_glyph_view(n),a=h(G,a),this.nonselection_glyph=await this.build_glyph_view(a),null!=o&&(this.hover_glyph=await this.build_glyph_view(o)),_=h(R,_),this.muted_glyph=await this.build_glyph_view(_);const c=h(z,"auto");this.decimated_glyph=await this.build_glyph_view(c),this.selection_glyph.set_base(this.glyph),this.nonselection_glyph.set_base(this.glyph),this.hover_glyph?.set_base(this.glyph),this.muted_glyph.set_base(this.glyph),this.decimated_glyph.set_base(this.glyph),await this.set_data()}async build_glyph_view(e){return(0,w.build_view)(e,{parent:this})}remove(){this.cds_view.remove(),this.glyph.remove(),this.selection_glyph.remove(),this.nonselection_glyph.remove(),this.hover_glyph?.remove(),this.muted_glyph.remove(),this.decimated_glyph.remove(),super.remove()}connect_signals(){super.connect_signals();const e=()=>this.request_paint(),t=()=>this.update_data();this.connect(this.model.change,e),this.connect(this.glyph.model.change,t),this.connect(this.selection_glyph.model.change,t),this.connect(this.nonselection_glyph.model.change,t),null!=this.hover_glyph&&this.connect(this.hover_glyph.model.change,t),this.connect(this.muted_glyph.model.change,t),this.connect(this.decimated_glyph.model.change,t),this.connect(this.model.data_source.change,t),this.connect(this.model.data_source.streaming,t),this.connect(this.model.data_source.patching,(e=>this.update_data(e))),this.connect(this.model.data_source.selected.change,e),this.connect(this.model.data_source._select,e),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,(()=>{const{inspected:t}=this.model.data_source,i={indices:t.indices,line_indices:t.line_indices,multiline_indices:t.multiline_indices,image_indices:t.image_indices,selected_glyphs:t.selected_glyphs};(0,f.is_equal)(this._previous_inspected,i)||(this._previous_inspected=i,e())})),this.connect(this.model.properties.view.change,(async()=>{this.cds_view.remove(),this.cds_view=await(0,w.build_view)(this.model.view,{parent:this}),await t()})),this.connect(this.model.view.properties.indices.change,t),this.connect(this.model.view.properties.masked.change,(async()=>await this.set_visuals())),this.connect(this.model.properties.visible.change,(()=>this.plot_view.invalidate_dataranges=!0));const{x_ranges:i,y_ranges:s}=this.plot_view.frame;for(const[,e]of i)e instanceof b.FactorRange&&this.connect(e.invalidate_synthetic,t);for(const[,e]of s)e instanceof b.FactorRange&&this.connect(e.invalidate_synthetic,t);const{transformchange:l,exprchange:h}=this.model.glyph;this.connect(l,t),this.connect(h,t)}_update_masked_indices(){const e=this.glyph.mask_data();return this.model.view.masked=e,e}async update_data(e){await this.set_data(e),this.request_paint()}async set_data(e){const t=this.model.data_source;this.all_indices=this.model.view.indices;const{all_indices:i}=this;await this.glyph.set_data(t,i,e),await this.decimated_glyph.set_data(t,i,e),await this.selection_glyph.set_data(t,i,e),await this.nonselection_glyph.set_data(t,i,e),await(this.hover_glyph?.set_data(t,i,e)),await this.muted_glyph.set_data(t,i,e),await this.set_visuals(),this._update_masked_indices();const{lod_factor:s}=this.plot_model,l=this.all_indices.count;this.decimated=new u.Indices(l);for(let e=0;el.is_empty()?[]:this.glyph instanceof a.LineView&&l.selected_glyph===this.glyph.model?this.model.view.convert_indices_from_subset(i):l.indices)(),{inspected:n}=this.model.data_source;this._previous_inspected={indices:n.indices,line_indices:n.line_indices,multiline_indices:n.multiline_indices,image_indices:n.image_indices,selected_glyphs:n.selected_glyphs};const r=new Set((()=>n.is_empty()?[]:null!=n.selected_glyph?this.model.view.convert_indices_from_subset(i):n.indices.length>0?n.indices:Object.keys(n.multiline_indices).map((e=>parseInt(e))))()),g=(0,m.filter)(i,(e=>r.has(t[e]))),{lod_threshold:y}=this.plot_model;let u,v,w;if(null!=this.model.document&&this.model.document.interactive_duration()>0&&!e&&null!=y&&t.length>y?(i=[...this.decimated],u=this.decimated_glyph,v=this.decimated_glyph,w=this.selection_glyph):(u=this.model.muted?this.muted_glyph:this.glyph,v=this.nonselection_glyph,w=this.selection_glyph),null!=this.hover_glyph&&0!=g.length){const e=new Set(i);for(const t of g)e.delete(t);i=[...e]}if(0==h.length)if(this.glyph instanceof a.LineView)null!=this.hover_glyph&&0!=g.length?this.hover_glyph.paint(s,this.model.view.convert_indices_from_subset(g)):u.paint(s,t);else if(this.glyph instanceof o.PatchView||this.glyph instanceof c.HAreaView||this.glyph instanceof p.VAreaView||this.glyph instanceof d.VAreaStepView||this.glyph instanceof _.HAreaStepView)if(0==n.selected_glyphs.length||null==this.hover_glyph)u.paint(s,t);else for(const e of n.selected_glyphs)e==this.glyph.model&&this.hover_glyph.paint(s,t);else u.paint(s,i),null!=this.hover_glyph&&0!=g.length&&this.hover_glyph.paint(s,g);else{const e=new Set(h),l=new Array,n=new Array;if(this.glyph instanceof a.LineView)for(const i of t)e.has(i)?l.push(i):n.push(i);else for(const s of i)e.has(t[s])?l.push(s):n.push(s);v.paint(s,n),w.paint(s,l),null!=this.hover_glyph&&(this.glyph instanceof a.LineView?this.hover_glyph.paint(s,this.model.view.convert_indices_from_subset(g)):this.hover_glyph.paint(s,g))}s.restore()}get_reference_point(e,t){if(null!=e){const i=this.model.data_source.get_column(e);if(null!=i)for(const[e,s]of this.model.view.indices_map)if(i[e]==t)return s}return 0}draw_legend(e,t,i,s,l,h,n,a){if(0==this.glyph.data_size)return;const o=(()=>{if(null==a)return this.get_reference_point(h,n);{const{indices_map:e}=this.model.view;return e.get(a)}})();null!=o&&this.glyph.draw_legend_for_index(e,{x0:t,x1:i,y0:s,y1:l},o)}hit_test(e){if(!this.model.visible)return null;const t=this.glyph.hit_test(e);return null==t?null:this.model.view.convert_selection_from_subset(t)}}i.GlyphRendererView=k,k.__name__="GlyphRendererView";class S extends n.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.data_source.selection_manager}add_decoration(e,t){const i=new V.Decoration({marking:e,node:t}),s=[this.glyph,this.selection_glyph,this.nonselection_glyph,this.hover_glyph,this.muted_glyph];for(const e of s)e instanceof r.Glyph&&(e.decorations=[...e.decorations,i]);return i}}i.GlyphRenderer=S,h=S,S.__name__="GlyphRenderer",h.prototype.default_view=k,h.define((({Bool:e,Auto:t,Or:i,Ref:s,Null:l,Nullable:h})=>({data_source:[s(g.ColumnarDataSource)],view:[s(y.CDSView),()=>new y.CDSView],glyph:[s(r.Glyph)],hover_glyph:[h(s(r.Glyph)),null],nonselection_glyph:[i(s(r.Glyph),t,l),"auto"],selection_glyph:[i(s(r.Glyph),t,l),"auto"],muted_glyph:[i(s(r.Glyph),t,l),"auto"],muted:[e,!1]})))}, function _(e,r,t,n,s){var a,o;n();const _=e(83),i=e(106);class c extends _.RendererView{constructor(){super(...arguments),this[a]=!0}get xscale(){return this.coordinates.x_scale}get yscale(){return this.coordinates.y_scale}bounds(){return this.glyph_view.bounds()}log_bounds(){return this.glyph_view.log_bounds()}}t.DataRendererView=c,a=i.auto_ranged,c.__name__="DataRendererView";class d extends _.Renderer{constructor(e){super(e)}get selection_manager(){return this.get_selection_manager()}}t.DataRenderer=d,o=d,d.__name__="DataRenderer",o.override({level:"glyph"})}, -function _(e,t,i,n,s){var l;n();const o=e(1),r=e(220),_=e(227),h=o.__importStar(e(80)),a=o.__importStar(e(228)),c=e(130);class d extends r.XYGlyphView{async load_glglyph(){const{LineGL:t}=await Promise.resolve().then((()=>o.__importStar(e(564))));return t}_paint(e,t,i){const{sx:n,sy:s}={...this,...i},l=this.parent.nonselection_glyph==this;let o=null;const r=e=>null!=o&&e-o!=1;let _=!0;e.beginPath();for(const i of t){const t=n[i],h=s[i];l&&!_&&null!=o&&i-o>1&&isFinite(n[o+1]+s[o+1])&&e.lineTo(n[o+1],s[o+1]),isFinite(t+h)?(_||r(i)?(l&&i>0&&isFinite(n[i-1]+s[i-1])?(e.moveTo(n[i-1],s[i-1]),e.lineTo(t,h)):e.moveTo(t,h),_=!1):e.lineTo(t,h),o=i):_=!0}if(l&&!_&&null!=o){const t=n.length;o({x:[a.XCoordinateSpec,{field:"x"}],y:[a.YCoordinateSpec,{field:"y"}]})))}, -function _(t,e,i,s,n){var r;s();const a=t(1),_=a.__importStar(t(18)),o=a.__importStar(t(64)),h=a.__importStar(t(87)),l=a.__importStar(t(39)),c=t(29),d=t(57),u=t(51),f=t(56),p=t(19),y=t(24),g=t(8),m=t(222),x=t(13),b=t(134),w=t(26),S=t(223),v=t(12),z=t(64),q=t(109),$=t(130),j=t(226),{abs:C,ceil:V}=Math;i.inherit=Symbol("inherit");class A extends d.DOMComponentView{constructor(){super(...arguments),this._index=null,this._data_size=null,this._nohit_warned=new Set,this.decorations=new Map,this._base=null}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}get index(){const{_index:t}=this;if(null!=t)return t;throw new Error(`${this}.index_data() wasn't called`)}get data_size(){const{base:t}=this;if(null!=t)return t.data_size;{const{_data_size:t}=this;if(null!=t)return t;throw new Error(`${this}.set_data() wasn't called`)}}initialize(){super.initialize(),this.visuals=new h.Visuals(this)}*children(){yield*super.children(),yield*this.decorations.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,f.build_views)(this.decorations,this.model.decorations,{parent:this.parent});const{webgl:t}=this.canvas;if(null!=t&&null!=this.load_glglyph){const e=await this.load_glglyph();this.glglyph=new e(t.regl_wrapper,this)}}request_paint(){this.parent.request_paint()}get canvas(){return this.renderer.parent.canvas_view}paint(t,e,i){if(null!=this.glglyph)this.glglyph.render(t,e,this.base??this);else{if(null!=this.canvas.webgl&&c.settings.force_webgl)throw new Error(`${this} doesn't support webgl rendering`);this._paint(t,e,i)}}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const{x0:t,x1:e}=this.index.bounds(o.positive_x()),{y0:i,y1:s}=this.index.bounds(o.positive_y());return this._bounds({x0:t,y0:i,x1:e,y1:s})}get_anchor_point(t,e,[i,s]){switch(t){case"center":case"center_center":{const[t,n]=this.scenterxy(e,i,s);return{x:t,y:n}}default:return null}}sdist(t,e,i,s="edge",n=!1){const r=e.length,a=new y.ScreenArray(r),_=t.s_compute;if("center"==s)for(let t=0;tV(t))),a}draw_legend_for_index(t,e,i){}hit_test(t){const e=(()=>{switch(t.type){case"point":return this._hit_point?.(t);case"span":return this._hit_span?.(t);case"rect":return this._hit_rect?.(t);case"poly":return this._hit_poly?.(t)}})();return null!=e?e:(this._nohit_warned.has(t.type)||(p.logger.debug(`'${t.type}' selection not available for ${this.model.type}`),this._nohit_warned.add(t.type)),null)}_hit_rect_against_index(t){const{sx0:e,sx1:i,sy0:s,sy1:n}=t,[r,a]=this.renderer.coordinates.x_scale.r_invert(e,i),[_,o]=this.renderer.coordinates.y_scale.r_invert(s,n),h=[...this.index.indices({x0:r,x1:a,y0:_,y1:o})];return new $.Selection({indices:h})}_project_xy(t,e,i,s){const n=this._is_inherited(t),r=this._is_inherited(i);if(n||r){if(!n||!r){const[n,r]=(0,b.project_xy)(e,s);this._define_attr(t,n),this._define_attr(i,r)}}else b.inplace.project_xy(e,s)}_project_data(){}*_iter_visuals(){for(const t of this.visuals)for(const e of t)(e instanceof _.VectorSpec||e instanceof _.ScalarSpec)&&(yield e)}get base(){return this._base}set_base(t){t!=this&&t instanceof this.constructor?this._base=t:this._base=null}_define_or_inherit_attr(t,e){const s=e();s===i.inherit?this._inherit_attr(t):this._define_attr(t,s)}_define_attr(t,e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e}),this._define_inherited(t,!1)}_inherit_attr(t){const{base:e}=this;(0,v.assert)(null!=e),this._inherit_from(t,e)}_inherit_from(t,e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,get:()=>e[t]}),this._define_inherited(t,!0)}_define_inherited(t,e){Object.defineProperty(this,`inherited_${t}`,{configurable:!0,enumerable:!0,value:e})}_can_inherit_from(t,e){if(null==e)return!1;const i=e.model.property(t.attr),s=t.get_value(),n=i.get_value();try{return(0,w.is_equal)(s,n)}catch(t){if(t instanceof w.EqNotImplemented)return!1;throw t}}_is_inherited(t){return this[`inherited_${(0,g.isString)(t)?t:t.attr}`]}set_visuals(t,e){for(const i of this._iter_visuals()){const{base:s}=this;if(null!=s&&this._can_inherit_from(i,s))this._inherit_from(i.attr,s);else{const s=i.uniform(t).select(e);this._define_attr(i.attr,s)}}for(const t of this.visuals)t.update();this.glglyph?.set_visuals_changed()}_transform_array(t,e){const{x_source:i,y_source:s}=this.renderer.coordinates,n="x"==t.dimension?i:s;if(n instanceof q.FactorRange)if(t instanceof _.CoordinateSpec)e=n.v_synthetic(e);else if(t instanceof _.CoordinateSeqSpec)for(let t=0;t{const s="x"==i.dimension?t:e,n=this[i.attr];return n instanceof m.RaggedArray?new m.RaggedArray(n.offsets,s.v_compute(n.data)):s.v_compute(n)};for(const t of this.model)if(t instanceof _.BaseCoordinateSpec)if(null!=i&&this._is_inherited(t))this._inherit_from(`s${t.attr}`,i);else{const e=s(t);this._define_attr(`s${t.attr}`,e)}this._map_data(),this.glglyph?.set_data_mapped()}_map_data(){}get bbox(){if(null==this.base){const{x0:t,y0:e,x1:i,y1:s}=this.index.bbox,{x_scale:n,y_scale:r}=this.renderer.coordinates,[a,_]=n.r_compute(t,i),[o,h]=r.r_compute(e,s);return z.BBox.from_rect({x0:a,y0:o,x1:_,y1:h})}}}i.GlyphView=A,A.__name__="GlyphView";class R extends u.Model{constructor(t){super(t)}}i.Glyph=R,r=R,R.__name__="Glyph",r.define((({List:t,Ref:e})=>({decorations:[t(e(j.Decoration)),[]]})))}, +function _(e,t,i,n,s){var l;n();const o=e(1),r=e(221),_=e(228),h=o.__importStar(e(80)),a=o.__importStar(e(229)),c=e(130);class d extends r.XYGlyphView{async load_glglyph(){const{LineGL:t}=await Promise.resolve().then((()=>o.__importStar(e(573))));return t}_paint(e,t,i){const{sx:n,sy:s}={...this,...i},l=this.parent.nonselection_glyph==this;let o=null;const r=e=>null!=o&&e-o!=1;let _=!0;e.beginPath();for(const i of t){const t=n[i],h=s[i];l&&!_&&null!=o&&i-o>1&&isFinite(n[o+1]+s[o+1])&&e.lineTo(n[o+1],s[o+1]),isFinite(t+h)?(_||r(i)?(l&&i>0&&isFinite(n[i-1]+s[i-1])?(e.moveTo(n[i-1],s[i-1]),e.lineTo(t,h)):e.moveTo(t,h),_=!1):e.lineTo(t,h),o=i):_=!0}if(l&&!_&&null!=o){const t=n.length;o({x:[a.XCoordinateSpec,{field:"x"}],y:[a.YCoordinateSpec,{field:"y"}]})))}, +function _(t,e,i,s,n){var r;s();const a=t(1),_=a.__importStar(t(18)),o=a.__importStar(t(64)),h=a.__importStar(t(87)),l=a.__importStar(t(39)),c=t(29),d=t(57),u=t(51),f=t(56),p=t(19),y=t(24),g=t(8),m=t(223),x=t(13),b=t(134),w=t(26),S=t(224),v=t(12),z=t(64),q=t(109),$=t(130),j=t(227),{abs:C,ceil:V}=Math;i.inherit=Symbol("inherit");class A extends d.DOMComponentView{constructor(){super(...arguments),this._index=null,this._data_size=null,this._nohit_warned=new Set,this.decorations=new Map,this._base=null}get renderer(){return this.parent}get has_webgl(){return null!=this.glglyph}get index(){const{_index:t}=this;if(null!=t)return t;throw new Error(`${this}.index_data() wasn't called`)}get data_size(){const{base:t}=this;if(null!=t)return t.data_size;{const{_data_size:t}=this;if(null!=t)return t;throw new Error(`${this}.set_data() wasn't called`)}}initialize(){super.initialize(),this.visuals=new h.Visuals(this)}*children(){yield*super.children(),yield*this.decorations.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,f.build_views)(this.decorations,this.model.decorations,{parent:this.parent});const{webgl:t}=this.canvas;if(null!=t&&null!=this.load_glglyph){const e=await this.load_glglyph();this.glglyph=new e(t.regl_wrapper,this)}}request_paint(){this.parent.request_paint()}get canvas(){return this.renderer.parent.canvas_view}paint(t,e,i){if(null!=this.glglyph)this.glglyph.render(t,e,this.base??this);else{if(null!=this.canvas.webgl&&c.settings.force_webgl)throw new Error(`${this} doesn't support webgl rendering`);this._paint(t,e,i)}}has_finished(){return!0}notify_finished(){this.renderer.notify_finished()}_bounds(t){return t}bounds(){return this._bounds(this.index.bbox)}log_bounds(){const{x0:t,x1:e}=this.index.bounds(o.positive_x()),{y0:i,y1:s}=this.index.bounds(o.positive_y());return this._bounds({x0:t,y0:i,x1:e,y1:s})}get_anchor_point(t,e,[i,s]){switch(t){case"center":case"center_center":{const[t,n]=this.scenterxy(e,i,s);return{x:t,y:n}}default:return null}}sdist(t,e,i,s="edge",n=!1){const r=e.length,a=new y.ScreenArray(r),_=t.s_compute;if("center"==s)for(let t=0;tV(t))),a}draw_legend_for_index(t,e,i){}hit_test(t){const e=(()=>{switch(t.type){case"point":return this._hit_point?.(t);case"span":return this._hit_span?.(t);case"rect":return this._hit_rect?.(t);case"poly":return this._hit_poly?.(t)}})();return null!=e?e:(this._nohit_warned.has(t.type)||(p.logger.debug(`'${t.type}' selection not available for ${this.model.type}`),this._nohit_warned.add(t.type)),null)}_hit_rect_against_index(t){const{sx0:e,sx1:i,sy0:s,sy1:n}=t,[r,a]=this.renderer.coordinates.x_scale.r_invert(e,i),[_,o]=this.renderer.coordinates.y_scale.r_invert(s,n),h=[...this.index.indices({x0:r,x1:a,y0:_,y1:o})];return new $.Selection({indices:h})}_project_xy(t,e,i,s){const n=this._is_inherited(t),r=this._is_inherited(i);if(n||r){if(!n||!r){const[n,r]=(0,b.project_xy)(e,s);this._define_attr(t,n),this._define_attr(i,r)}}else b.inplace.project_xy(e,s)}_project_data(){}*_iter_visuals(){for(const t of this.visuals)for(const e of t)(e instanceof _.VectorSpec||e instanceof _.ScalarSpec)&&(yield e)}get base(){return this._base}set_base(t){t!=this&&t instanceof this.constructor?this._base=t:this._base=null}_define_or_inherit_attr(t,e){const s=e();s===i.inherit?this._inherit_attr(t):this._define_attr(t,s)}_define_attr(t,e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e}),this._define_inherited(t,!1)}_inherit_attr(t){const{base:e}=this;(0,v.assert)(null!=e),this._inherit_from(t,e)}_inherit_from(t,e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,get:()=>e[t]}),this._define_inherited(t,!0)}_define_inherited(t,e){Object.defineProperty(this,`inherited_${t}`,{configurable:!0,enumerable:!0,value:e})}_can_inherit_from(t,e){if(null==e)return!1;const i=e.model.property(t.attr),s=t.get_value(),n=i.get_value();try{return(0,w.is_equal)(s,n)}catch(t){if(t instanceof w.EqNotImplemented)return!1;throw t}}_is_inherited(t){return this[`inherited_${(0,g.isString)(t)?t:t.attr}`]}set_visuals(t,e){for(const i of this._iter_visuals()){const{base:s}=this;if(null!=s&&this._can_inherit_from(i,s))this._inherit_from(i.attr,s);else{const s=i.uniform(t).select(e);this._define_attr(i.attr,s)}}for(const t of this.visuals)t.update();this.glglyph?.set_visuals_changed()}_transform_array(t,e){const{x_source:i,y_source:s}=this.renderer.coordinates,n="x"==t.dimension?i:s;if(n instanceof q.FactorRange)if(t instanceof _.CoordinateSpec)e=n.v_synthetic(e);else if(t instanceof _.CoordinateSeqSpec)for(let t=0;t{const s="x"==i.dimension?t:e,n=this[i.attr];return n instanceof m.RaggedArray?new m.RaggedArray(n.offsets,s.v_compute(n.data)):s.v_compute(n)};for(const t of this.model)if(t instanceof _.BaseCoordinateSpec)if(null!=i&&this._is_inherited(t))this._inherit_from(`s${t.attr}`,i);else{const e=s(t);this._define_attr(`s${t.attr}`,e)}this._map_data(),this.glglyph?.set_data_mapped()}_map_data(){}get bbox(){if(null==this.base){const{x0:t,y0:e,x1:i,y1:s}=this.index.bbox,{x_scale:n,y_scale:r}=this.renderer.coordinates,[a,_]=n.r_compute(t,i),[o,h]=r.r_compute(e,s);return z.BBox.from_rect({x0:a,y0:o,x1:_,y1:h})}}}i.GlyphView=A,A.__name__="GlyphView";class R extends u.Model{constructor(t){super(t)}}i.Glyph=R,r=R,R.__name__="Glyph",r.define((({List:t,Ref:e})=>({decorations:[t(e(j.Decoration)),[]]})))}, function _(t,s,e,r,a){var n;r();const o=t(26),h=t(12);class i{constructor(t,s){this.offsets=t,this.data=s}[(n=Symbol.toStringTag,o.equals)](t,s){return s.arrays(this.offsets,t.offsets)&&s.arrays(this.data,t.data)}get length(){return this.offsets.length}clone(){return new i(this.offsets.slice(),this.data.slice())}static from(t,s){const e=t.length;let r=0;const a=(()=>{const s=new Uint32Array(e);for(let a=0;a>1;i[s]>t?n=s:e=s+1}return i[e]}class r extends d.default{get boxes(){return this._boxes}search_indices(t,i,e,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let s=this._boxes.length-4;const d=[],x=new o.Indices(this.numItems);for(;void 0!==s;){const o=Math.min(s+4*this.nodeSize,h(s,this._levelBounds));for(let h=s;h>2],r=this._boxes[h+0],_=this._boxes[h+1],a=this._boxes[h+2],c=this._boxes[h+3];ea||i>c||(s<4*this.numItems?x.set(o):d.push(o))}s=d.pop()}return x}}r.__name__="_FlatBush";class _{constructor(t){this.index=null,t>0&&(this.index=new r(t))}add_rect(t,i,e,n){isFinite(t+i+e+n)?this.index?.add(t,i,e,n):this.add_empty()}add_point(t,i){isFinite(t+i)?this.index?.add(t,i,t,i):this.add_empty()}add_empty(){this.index?.add(1/0,1/0,-1/0,-1/0)}finish(){this.index?.finish()}_normalize(t){let{x0:i,y0:e,x1:n,y1:s}=t;return i>n&&([i,n]=[n,i]),e>s&&([e,s]=[s,e]),{x0:i,y0:e,x1:n,y1:s}}get bbox(){if(null==this.index)return(0,x.empty)();{const{minX:t,minY:i,maxX:e,maxY:n}=this.index;return{x0:t,y0:i,x1:e,y1:n}}}indices(t){if(null==this.index)return new o.Indices(0);{const{x0:i,y0:e,x1:n,y1:s}=this._normalize(t);return this.index.search_indices(i,e,n,s)}}bounds(t){const i=(0,x.empty)();if(null==this.index)return i;const{boxes:e}=this.index;for(const n of this.indices(t)){const s=e[4*n+0],d=e[4*n+1],o=e[4*n+2],x=e[4*n+3];s>=t.x0&&si.x1&&(i.x1=o),d>=t.y0&&di.y1&&(i.y1=x)}return i}}e.SpatialIndex=_,_.__name__="SpatialIndex"}, -function _(t,i,s,e,n){e();const h=t(1).__importDefault(t(225)),r=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class o{static from(t,i=0){if(i%8!=0)throw new Error("byteOffset must be 8-byte aligned.");if(!t||void 0===t.byteLength||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[s,e]=new Uint8Array(t,i+0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");const n=e>>4;if(3!==n)throw new Error(`Got v${n} data when expected v3.`);const h=r[15&e];if(!h)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,i+2,1),[d]=new Uint32Array(t,i+4,1);return new o(d,a,h,void 0,t,i)}constructor(t,i=16,s=Float64Array,e=ArrayBuffer,n,o=0){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+i,2),65535),this.byteOffset=o;let a=t,d=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),d+=a,this._levelBounds.push(4*d)}while(1!==a);this.ArrayType=s,this.IndexArrayType=d<16384?Uint16Array:Uint32Array;const _=r.indexOf(this.ArrayType),f=4*d*this.ArrayType.BYTES_PER_ELEMENT;if(_<0)throw new Error(`Unexpected typed array class: ${s}.`);n&&void 0!==n.byteLength&&!n.buffer?(this.data=n,this._boxes=new this.ArrayType(this.data,o+8,4*d),this._indices=new this.IndexArrayType(this.data,o+8+f,d),this._pos=4*d,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new e(8+f+d*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*d),this._indices=new this.IndexArrayType(this.data,8+f,d),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+_]),new Uint16Array(this.data,2,1)[0]=i,new Uint32Array(this.data,4,1)[0]=t),this._queue=new h.default}add(t,i,s=t,e=i){const n=this._pos>>2,h=this._boxes;return this._indices[n]=n,h[this._pos++]=t,h[this._pos++]=i,h[this._pos++]=s,h[this._pos++]=e,tthis.maxX&&(this.maxX=s),e>this.maxY&&(this.maxY=e),n}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const t=this._boxes;if(this.numItems<=this.nodeSize)return t[this._pos++]=this.minX,t[this._pos++]=this.minY,t[this._pos++]=this.maxX,void(t[this._pos++]=this.maxY);const i=this.maxX-this.minX||1,s=this.maxY-this.minY||1,e=new Uint32Array(this.numItems);for(let n=0,h=0;n>2]=i,t[this._pos++]=n,t[this._pos++]=h,t[this._pos++]=r,t[this._pos++]=o}}}search(t,i,s,e,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let h=this._boxes.length-4;const r=[],o=[];for(;void 0!==h;){const a=Math.min(h+4*this.nodeSize,d(h,this._levelBounds));for(let d=h;dthis._boxes[d+2])continue;if(i>this._boxes[d+3])continue;const a=0|this._indices[d>>2];h>=4*this.numItems?r.push(a):(void 0===n||n(a))&&o.push(a)}h=r.pop()}return o}neighbors(t,i,s=1/0,e=1/0,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let h=this._boxes.length-4;const r=this._queue,o=[],_=e*e;t:for(;void 0!==h;){const e=Math.min(h+4*this.nodeSize,d(h,this._levelBounds));for(let s=h;s>2],o=a(t,this._boxes[s],this._boxes[s+2]),d=a(i,this._boxes[s+1],this._boxes[s+3]),f=o*o+d*d;f>_||(h>=4*this.numItems?r.push(e<<1,f):(void 0===n||n(e))&&r.push(1+(e<<1),f))}for(;r.length&&1&r.peek();){if(r.peekValue()>_)break t;if(o.push(r.pop()>>1),o.length===s)break t}h=r.length?r.pop()>>1:void 0}return r.clear(),o}}function a(t,i,s){return t>1;i[n]>t?e=n:s=n+1}return i[s]}function _(t,i,s,e,n,h){if(Math.floor(e/h)>=Math.floor(n/h))return;const r=t[e+n>>1];let o=e-1,a=n+1;for(;;){do{o++}while(t[o]r);if(o>=a)break;f(t,i,s,o,a)}_(t,i,s,e,a,h),_(t,i,s,a+1,n,h)}function f(t,i,s,e,n){const h=t[e];t[e]=t[n],t[n]=h;const r=4*e,o=4*n,a=i[r],d=i[r+1],_=i[r+2],f=i[r+3];i[r]=i[o],i[r+1]=i[o+1],i[r+2]=i[o+2],i[r+3]=i[o+3],i[o]=a,i[o+1]=d,i[o+2]=_,i[o+3]=f;const m=s[e];s[e]=s[n],s[n]=m}function m(t,i){let s=t^i,e=65535^s,n=65535^(t|i),h=t&(65535^i),r=s|e>>1,o=s>>1^s,a=n>>1^e&h>>1^n,d=s&n>>1^h>>1^h;s=r,e=o,n=a,h=d,r=s&s>>2^e&e>>2,o=s&e>>2^e&(s^e)>>2,a^=s&n>>2^e&h>>2,d^=e&n>>2^(s^e)&h>>2,s=r,e=o,n=a,h=d,r=s&s>>4^e&e>>4,o=s&e>>4^e&(s^e)>>4,a^=s&n>>4^e&h>>4,d^=e&n>>4^(s^e)&h>>4,s=r,e=o,n=a,h=d,a^=s&n>>8^e&h>>8,d^=e&n>>8^(s^e)&h>>8,s=a^a>>1,e=d^d>>1;let _=t^i,f=e|65535^(_|s);return _=16711935&(_|_<<8),_=252645135&(_|_<<4),_=858993459&(_|_<<2),_=1431655765&(_|_<<1),f=16711935&(f|f<<8),f=252645135&(f|f<<4),f=858993459&(f|f<<2),f=1431655765&(f|f<<1),(f<<1|_)>>>0}s.default=o}, +function _(t,i,e,n,s){n();const d=t(1).__importDefault(t(225)),o=t(24),x=t(64);function h(t,i){let e=0,n=i.length-1;for(;e>1;i[s]>t?n=s:e=s+1}return i[e]}class r extends d.default{get boxes(){return this._boxes}search_indices(t,i,e,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let s=this._boxes.length-4;const d=[],x=new o.Indices(this.numItems);for(;void 0!==s;){const o=Math.min(s+4*this.nodeSize,h(s,this._levelBounds));for(let h=s;h>2],r=this._boxes[h+0],_=this._boxes[h+1],a=this._boxes[h+2],c=this._boxes[h+3];ea||i>c||(s<4*this.numItems?x.set(o):d.push(o))}s=d.pop()}return x}}r.__name__="_FlatBush";class _{constructor(t){this.index=null,t>0&&(this.index=new r(t))}add_rect(t,i,e,n){isFinite(t+i+e+n)?this.index?.add(t,i,e,n):this.add_empty()}add_point(t,i){isFinite(t+i)?this.index?.add(t,i,t,i):this.add_empty()}add_empty(){this.index?.add(1/0,1/0,-1/0,-1/0)}finish(){this.index?.finish()}_normalize(t){let{x0:i,y0:e,x1:n,y1:s}=t;return i>n&&([i,n]=[n,i]),e>s&&([e,s]=[s,e]),{x0:i,y0:e,x1:n,y1:s}}get bbox(){if(null==this.index)return(0,x.empty)();{const{minX:t,minY:i,maxX:e,maxY:n}=this.index;return{x0:t,y0:i,x1:e,y1:n}}}indices(t){if(null==this.index)return new o.Indices(0);{const{x0:i,y0:e,x1:n,y1:s}=this._normalize(t);return this.index.search_indices(i,e,n,s)}}bounds(t){const i=(0,x.empty)();if(null==this.index)return i;const{boxes:e}=this.index;for(const n of this.indices(t)){const s=e[4*n+0],d=e[4*n+1],o=e[4*n+2],x=e[4*n+3];s>=t.x0&&si.x1&&(i.x1=o),d>=t.y0&&di.y1&&(i.y1=x)}return i}}e.SpatialIndex=_,_.__name__="SpatialIndex"}, +function _(t,i,s,e,n){e();const h=t(1).__importDefault(t(226)),r=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class o{static from(t,i=0){if(i%8!=0)throw new Error("byteOffset must be 8-byte aligned.");if(!t||void 0===t.byteLength||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[s,e]=new Uint8Array(t,i+0,2);if(251!==s)throw new Error("Data does not appear to be in a Flatbush format.");const n=e>>4;if(3!==n)throw new Error(`Got v${n} data when expected v3.`);const h=r[15&e];if(!h)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,i+2,1),[d]=new Uint32Array(t,i+4,1);return new o(d,a,h,void 0,t,i)}constructor(t,i=16,s=Float64Array,e=ArrayBuffer,n,o=0){if(void 0===t)throw new Error("Missing required argument: numItems.");if(isNaN(t)||t<=0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+i,2),65535),this.byteOffset=o;let a=t,d=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),d+=a,this._levelBounds.push(4*d)}while(1!==a);this.ArrayType=s,this.IndexArrayType=d<16384?Uint16Array:Uint32Array;const _=r.indexOf(this.ArrayType),f=4*d*this.ArrayType.BYTES_PER_ELEMENT;if(_<0)throw new Error(`Unexpected typed array class: ${s}.`);n&&void 0!==n.byteLength&&!n.buffer?(this.data=n,this._boxes=new this.ArrayType(this.data,o+8,4*d),this._indices=new this.IndexArrayType(this.data,o+8+f,d),this._pos=4*d,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new e(8+f+d*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*d),this._indices=new this.IndexArrayType(this.data,8+f,d),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+_]),new Uint16Array(this.data,2,1)[0]=i,new Uint32Array(this.data,4,1)[0]=t),this._queue=new h.default}add(t,i,s=t,e=i){const n=this._pos>>2,h=this._boxes;return this._indices[n]=n,h[this._pos++]=t,h[this._pos++]=i,h[this._pos++]=s,h[this._pos++]=e,tthis.maxX&&(this.maxX=s),e>this.maxY&&(this.maxY=e),n}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const t=this._boxes;if(this.numItems<=this.nodeSize)return t[this._pos++]=this.minX,t[this._pos++]=this.minY,t[this._pos++]=this.maxX,void(t[this._pos++]=this.maxY);const i=this.maxX-this.minX||1,s=this.maxY-this.minY||1,e=new Uint32Array(this.numItems);for(let n=0,h=0;n>2]=i,t[this._pos++]=n,t[this._pos++]=h,t[this._pos++]=r,t[this._pos++]=o}}}search(t,i,s,e,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let h=this._boxes.length-4;const r=[],o=[];for(;void 0!==h;){const a=Math.min(h+4*this.nodeSize,d(h,this._levelBounds));for(let d=h;dthis._boxes[d+2])continue;if(i>this._boxes[d+3])continue;const a=0|this._indices[d>>2];h>=4*this.numItems?r.push(a):(void 0===n||n(a))&&o.push(a)}h=r.pop()}return o}neighbors(t,i,s=1/0,e=1/0,n){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let h=this._boxes.length-4;const r=this._queue,o=[],_=e*e;t:for(;void 0!==h;){const e=Math.min(h+4*this.nodeSize,d(h,this._levelBounds));for(let s=h;s>2],o=a(t,this._boxes[s],this._boxes[s+2]),d=a(i,this._boxes[s+1],this._boxes[s+3]),f=o*o+d*d;f>_||(h>=4*this.numItems?r.push(e<<1,f):(void 0===n||n(e))&&r.push(1+(e<<1),f))}for(;r.length&&1&r.peek();){if(r.peekValue()>_)break t;if(o.push(r.pop()>>1),o.length===s)break t}h=r.length?r.pop()>>1:void 0}return r.clear(),o}}function a(t,i,s){return t>1;i[n]>t?e=n:s=n+1}return i[s]}function _(t,i,s,e,n,h){if(Math.floor(e/h)>=Math.floor(n/h))return;const r=t[e+n>>1];let o=e-1,a=n+1;for(;;){do{o++}while(t[o]r);if(o>=a)break;f(t,i,s,o,a)}_(t,i,s,e,a,h),_(t,i,s,a+1,n,h)}function f(t,i,s,e,n){const h=t[e];t[e]=t[n],t[n]=h;const r=4*e,o=4*n,a=i[r],d=i[r+1],_=i[r+2],f=i[r+3];i[r]=i[o],i[r+1]=i[o+1],i[r+2]=i[o+2],i[r+3]=i[o+3],i[o]=a,i[o+1]=d,i[o+2]=_,i[o+3]=f;const m=s[e];s[e]=s[n],s[n]=m}function m(t,i){let s=t^i,e=65535^s,n=65535^(t|i),h=t&(65535^i),r=s|e>>1,o=s>>1^s,a=n>>1^e&h>>1^n,d=s&n>>1^h>>1^h;s=r,e=o,n=a,h=d,r=s&s>>2^e&e>>2,o=s&e>>2^e&(s^e)>>2,a^=s&n>>2^e&h>>2,d^=e&n>>2^(s^e)&h>>2,s=r,e=o,n=a,h=d,r=s&s>>4^e&e>>4,o=s&e>>4^e&(s^e)>>4,a^=s&n>>4^e&h>>4,d^=e&n>>4^(s^e)&h>>4,s=r,e=o,n=a,h=d,a^=s&n>>8^e&h>>8,d^=e&n>>8^(s^e)&h>>8,s=a^a>>1,e=d^d>>1;let _=t^i,f=e|65535^(_|s);return _=16711935&(_|_<<8),_=252645135&(_|_<<4),_=858993459&(_|_<<2),_=1431655765&(_|_<<1),f=16711935&(f|f<<8),f=252645135&(f|f<<4),f=858993459&(f|f<<2),f=1431655765&(f|f<<1),(f<<1|_)>>>0}s.default=o}, function _(s,t,i,h,e){h();i.default=class{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(s,t){let i=this.length++;for(;i>0;){const s=i-1>>1,h=this.values[s];if(t>=h)break;this.ids[i]=this.ids[s],this.values[i]=h,i=s}this.ids[i]=s,this.values[i]=t}pop(){if(0===this.length)return;const s=this.ids[0];if(this.length--,this.length>0){const s=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],i=this.length>>1;let h=0;for(;h=t)break;this.ids[h]=e,this.values[h]=l,h=s}this.ids[h]=s,this.values[h]=t}return s}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}}, function _(e,i,n,a,t){var r;a();const o=e(169),s=e(51),d=e(58),l=e(56);class c extends d.View{*children(){yield*super.children(),yield this.marking}async lazy_initialize(){await super.lazy_initialize(),this.marking=await(0,l.build_view)(this.model.marking,{parent:this.parent})}}n.DecorationView=c,c.__name__="DecorationView";class _ extends s.Model{constructor(e){super(e)}}n.Decoration=_,r=_,_.__name__="Decoration",r.prototype.default_view=c,r.define((({Enum:e,Ref:i})=>({marking:[i(o.Marking)],node:[e("start","middle","end")]})))}, -function _(e,n,t,a,i){a();const l=e(1).__importStar(e(228));function r(e,n,{x0:t,x1:a,y0:i,y1:l},r){n.save(),n.beginPath(),n.moveTo(t,(i+l)/2),n.lineTo(a,(i+l)/2),e.line.apply(n,r),n.restore()}function c(e,n,{x0:t,x1:a,y0:i,y1:l},r){const c=.1*Math.abs(a-t),_=.1*Math.abs(l-i),o=t+c,s=a-c,y=i+_,p=l-_;n.beginPath(),n.rect(o,y,s-o,p-y),e.fill.apply(n,r),e.hatch?.apply(n,r),e.line?.apply(n,r)}t.generic_line_scalar_legend=function(e,n,{x0:t,x1:a,y0:i,y1:l}){n.save(),n.beginPath(),n.moveTo(t,(i+l)/2),n.lineTo(a,(i+l)/2),e.line.apply(n),n.restore()},t.generic_line_vector_legend=r,t.generic_line_legend=r,t.generic_area_scalar_legend=function(e,n,{x0:t,x1:a,y0:i,y1:l}){const r=.1*Math.abs(a-t),c=.1*Math.abs(l-i),_=t+r,o=a-r,s=i+c,y=l-c;n.beginPath(),n.rect(_,s,o-_,y-s),e.fill.apply(n),e.hatch?.apply(n),e.line?.apply(n)},t.generic_area_vector_legend=c,t.generic_area_legend=c,t.line_interpolation=function(e,n,t,a,i,r){const{sx:c,sy:_}=n;let o,s,y,p;"point"==n.type?([y,p]=e.yscale.r_invert(_-1,_+1),[o,s]=e.xscale.r_invert(c-1,c+1)):"v"==n.direction?([y,p]=e.yscale.r_invert(_,_),[o,s]=[Math.min(t-1,i-1),Math.max(t+1,i+1)]):([o,s]=e.xscale.r_invert(c,c),[y,p]=[Math.min(a-1,r-1),Math.max(a+1,r+1)]);const{x:g,y:h}=l.check_2_segments_intersect(o,y,s,p,t,a,i,r);return[g,h]}}, -function _(t,n,e,i,r){function s(t,n){return(t.x-n.x)**2+(t.y-n.y)**2}function o(t,n,e){const i=s(n,e);if(0==i)return s(t,n);const r=((t.x-n.x)*(e.x-n.x)+(t.y-n.y)*(e.y-n.y))/i;if(r<0)return s(t,n);if(r>1)return s(t,e);return s(t,{x:n.x+r*(e.x-n.x),y:n.y+r*(e.y-n.y)})}i(),e.point_in_poly=function(t,n,e,i){let r=!1,s=e[e.length-1],o=i[i.length-1];for(let u=0;u0&&_<1&&h>0&&h<1,x:t+_*(e-t),y:n+_*(i-n)}}}}, -function _(t,s,i,e,a){var l;e();const n=t(1),_=t(220),o=t(227),c=n.__importStar(t(228)),h=n.__importStar(t(80)),r=t(130);class p extends _.XYGlyphView{_paint(t,s,i){const{sx:e,sy:a}={...this,...i};let l=!0;t.beginPath();for(const i of s){const s=e[i],n=a[i];isFinite(s+n)?l?(t.moveTo(s,n),l=!1):t.lineTo(s,n):(t.closePath(),l=!0)}t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t),this.visuals.line.apply(t)}draw_legend_for_index(t,s,i){(0,o.generic_area_scalar_legend)(this.visuals,t,s)}_hit_point(t){const s=new r.Selection;return c.point_in_poly(t.sx,t.sy,this.sx,this.sy)&&(s.add_to_selected_glyphs(this.model),s.view=this),s}}i.PatchView=p,p.__name__="PatchView";class d extends _.XYGlyph{constructor(t){super(t)}}i.Patch=d,l=d,d.__name__="Patch",l.prototype.default_view=p,l.mixins([h.LineScalar,h.FillScalar,h.HatchScalar])}, -function _(e,t,i,s,n){var o;s();const _=e(1),r=e(231),a=_.__importStar(e(228)),l=_.__importStar(e(18)),h=e(20),c=e(232),p=e(130);class d extends r.AreaView{_index_data(e){const{min:t,max:i}=Math,{x1:s,x2:n,y:o}=this;for(let _=0;_0==n?[t[n],_,_,t[n]]:n==this.data_size-1?[o,t[n],t[n],o]:[o,_,_,o])();if(a.point_in_poly(e.sx,e.sy,r,l))return this._line_selection_for(n)}return new p.Selection}_hit_point(e){switch(this.model.step_mode){case"before":return this._hit_point_before(e);case"after":return this._hit_point_after(e);case"center":return this._hit_point_center(e)}}}i.HAreaStepView=d,d.__name__="HAreaStepView";class f extends r.Area{constructor(e){super(e)}}i.HAreaStep=f,o=f,f.__name__="HAreaStep",o.prototype.default_view=d,o.define((({})=>({x1:[l.XCoordinateSpec,{field:"x1"}],x2:[l.XCoordinateSpec,{field:"x2"}],y:[l.YCoordinateSpec,{field:"y"}],step_mode:[h.StepMode,"before"]})))}, -function _(e,a,r,_,s){var n;_();const i=e(1),l=e(221),c=e(227),t=i.__importStar(e(80));class d extends l.GlyphView{draw_legend_for_index(e,a,r){(0,c.generic_area_scalar_legend)(this.visuals,e,a)}}r.AreaView=d,d.__name__="AreaView";class o extends l.Glyph{constructor(e){super(e)}}r.Area=o,n=o,o.__name__="Area",n.mixins([t.FillScalar,t.HatchScalar])}, +function _(e,n,t,a,i){a(),t.generic_line_scalar_legend=function(e,n,{x0:t,x1:a,y0:i,y1:l}){n.save(),n.beginPath(),n.moveTo(t,(i+l)/2),n.lineTo(a,(i+l)/2),e.line.apply(n),n.restore()},t.generic_line_vector_legend=r,t.generic_line_legend=r,t.generic_area_scalar_legend=function(e,n,{x0:t,x1:a,y0:i,y1:l}){const r=.1*Math.abs(a-t),c=.1*Math.abs(l-i),_=t+r,o=a-r,s=i+c,y=l-c;n.beginPath(),n.rect(_,s,o-_,y-s),e.fill.apply(n),e.hatch?.apply(n),e.line?.apply(n)},t.generic_area_vector_legend=c,t.generic_area_legend=c,t.line_interpolation=function(e,n,t,a,i,r){const{sx:c,sy:_}=n;let o,s,y,p;"point"==n.type?([y,p]=e.yscale.r_invert(_-1,_+1),[o,s]=e.xscale.r_invert(c-1,c+1)):"v"==n.direction?([y,p]=e.yscale.r_invert(_,_),[o,s]=[Math.min(t-1,i-1),Math.max(t+1,i+1)]):([o,s]=e.xscale.r_invert(c,c),[y,p]=[Math.min(a-1,r-1),Math.max(a+1,r+1)]);const{x:g,y:h}=l.check_2_segments_intersect(o,y,s,p,t,a,i,r);return[g,h]};const l=e(1).__importStar(e(229));function r(e,n,{x0:t,x1:a,y0:i,y1:l},r){n.save(),n.beginPath(),n.moveTo(t,(i+l)/2),n.lineTo(a,(i+l)/2),e.line.apply(n,r),n.restore()}function c(e,n,{x0:t,x1:a,y0:i,y1:l},r){const c=.1*Math.abs(a-t),_=.1*Math.abs(l-i),o=t+c,s=a-c,y=i+_,p=l-_;n.beginPath(),n.rect(o,y,s-o,p-y),e.fill.apply(n,r),e.hatch?.apply(n,r),e.line?.apply(n,r)}}, +function _(t,n,e,r,i){function o(t,n,e,r){let i=!1,o=e[e.length-1],u=r[r.length-1];for(let l=0;l1)return u(t,e);return u(t,{x:n.x+i*(e.x-n.x),y:n.y+i*(e.y-n.y)})}function h(t,n,e,r,i,o,u,l){const h=(l-o)*(e-t)-(u-i)*(r-n);if(0==h)return{hit:!1,x:null,y:null};{let s=n-o,f=t-i;const c=(e-t)*s-(r-n)*f;s=((u-i)*s-(l-o)*f)/h,f=c/h;return{hit:s>0&&s<1&&f>0&&f<1,x:t+s*(e-t),y:n+s*(r-n)}}}r(),e.point_in_poly=o,e.point_in_ellipse=function(t,n,e,r,i,o,u){const l=(Math.cos(e)/i)**2+(Math.sin(e)/r)**2,h=2*Math.cos(e)*Math.sin(e)*((1/i)**2-(1/r)**2),s=(Math.cos(e)/r)**2+(Math.sin(e)/i)**2;return l*(t-o)**2+h*(t-o)*(n-u)+s*(n-u)**2<=1},e.dist_2_pts=u,e.dist_to_segment_squared=l,e.dist_to_segment=function(t,n,e){return Math.sqrt(l(t,n,e))},e.check_2_segments_intersect=h,e.vertex_overlap=function(t,n,e,r){for(let i=0;i0==n?[t[n],_,_,t[n]]:n==this.data_size-1?[o,t[n],t[n],o]:[o,_,_,o])();if(a.point_in_poly(e.sx,e.sy,r,l))return this._line_selection_for(n)}return new p.Selection}_hit_point(e){switch(this.model.step_mode){case"before":return this._hit_point_before(e);case"after":return this._hit_point_after(e);case"center":return this._hit_point_center(e)}}}i.HAreaStepView=d,d.__name__="HAreaStepView";class f extends r.Area{constructor(e){super(e)}}i.HAreaStep=f,o=f,f.__name__="HAreaStep",o.prototype.default_view=d,o.define((({})=>({x1:[l.XCoordinateSpec,{field:"x1"}],x2:[l.XCoordinateSpec,{field:"x2"}],y:[l.YCoordinateSpec,{field:"y"}],step_mode:[h.StepMode,"before"]})))}, +function _(e,a,r,_,s){var n;_();const i=e(1),l=e(222),c=e(228),t=i.__importStar(e(80));class d extends l.GlyphView{draw_legend_for_index(e,a,r){(0,c.generic_area_scalar_legend)(this.visuals,e,a)}}r.AreaView=d,d.__name__="AreaView";class o extends l.Glyph{constructor(e){super(e)}}r.Area=o,n=o,o.__name__="Area",n.mixins([t.FillScalar,t.HatchScalar])}, function _(e,r,t,n,c){n(),t.flip_step_mode=function(e){switch(e){case"before":return"after";case"after":return"before";case"center":return"center"}}}, -function _(t,s,e,i,n){var a;i();const o=t(1),h=t(231),r=o.__importStar(t(228)),l=o.__importStar(t(18)),_=t(130);class c extends h.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let n=0;n=0;s--)t.lineTo(n[s],a[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}_hit_point(t){const s=this.sy.length,e=new _.Selection;for(let i=0,n=s-1;i({x1:[l.XCoordinateSpec,{field:"x1"}],x2:[l.XCoordinateSpec,{field:"x2"}],y:[l.YCoordinateSpec,{field:"y"}]})))}, -function _(e,t,i,s,n){var o;s();const _=e(1),r=e(231),a=_.__importStar(e(228)),l=_.__importStar(e(18)),h=e(20),c=e(232),p=e(130);class d extends r.AreaView{_index_data(e){const{min:t,max:i}=Math,{x:s,y1:n,y2:o}=this;for(let _=0;_0==n?[t[n],_,_,t[n]]:n==this.data_size-1?[o,t[n],t[n],o]:[o,_,_,o])(),l=[i[n],i[n],s[n],s[n]];if(a.point_in_poly(e.sx,e.sy,r,l))return this._line_selection_for(n)}return new p.Selection}_hit_point(e){switch(this.model.step_mode){case"before":return this._hit_point_before(e);case"after":return this._hit_point_after(e);case"center":return this._hit_point_center(e)}}}i.VAreaStepView=d,d.__name__="VAreaStepView";class f extends r.Area{constructor(e){super(e)}}i.VAreaStep=f,o=f,f.__name__="VAreaStep",o.prototype.default_view=d,o.define((({})=>({x:[l.XCoordinateSpec,{field:"x"}],y1:[l.YCoordinateSpec,{field:"y1"}],y2:[l.YCoordinateSpec,{field:"y2"}],step_mode:[h.StepMode,"before"]})))}, -function _(t,s,e,i,n){var a;i();const o=t(1),h=t(231),r=o.__importStar(t(228)),l=o.__importStar(t(18)),_=t(130);class c extends h.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let n=0;n=0;s--)t.lineTo(i[s],a[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}scenterxy(t){return[this.sx[t],(this.sy1[t]+this.sy2[t])/2]}_hit_point(t){const s=this.sx.length,e=new _.Selection;for(let i=0,n=s-1;i({x:[l.XCoordinateSpec,{field:"x"}],y1:[l.YCoordinateSpec,{field:"y1"}],y2:[l.YCoordinateSpec,{field:"y2"}]})))}, -function _(e,t,i,n,s){var c;n();const a=e(51),o=e(58),r=e(24),l=e(237),_=e(238),d=e(239);class h extends o.View{initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals();const e=()=>{this.compute_indices()},t=t=>{this.connect(t.change,e)},i=t=>{this.disconnect(t.change,e)};let{filter:n}=this.model;t(n),this.on_change(this.model.properties.filter,(()=>{i(n),n=this.model.filter,t(n),e()}));const s=t=>{this.connect(t.change,e),this.connect(t.streaming,e),this.connect(t.patching,e),this.connect(t.properties.data.change,e)},c=t=>{this.disconnect(t.change,e),this.disconnect(t.streaming,e),this.disconnect(t.patching,e),this.disconnect(t.properties.data.change,e)};let a=this.parent.data_source.get_value();s(a),this.on_change(this.parent.data_source,(()=>{c(a),a=this.parent.data_source.get_value(),s(a),e()}))}compute_indices(){const e=this.parent.data_source.get_value(),t=e.get_length()??1,i=r.Indices.all_set(t),n=this.model.filter.compute_indices(e);i.intersect(n),this.model.indices=i,this.model._indices_map_to_subset()}}i.CDSViewView=h,h.__name__="CDSViewView";class p extends a.Model{constructor(e){super(e)}_indices_map_to_subset(){this._indices=[...this.indices],this.indices_map=new Map;const{_indices:e,indices_map:t}=this,i=e.length;for(let n=0;nthis._indices[e]))}convert_selection_to_subset(e){return e.map((e=>this.indices_map.get(e)))}convert_indices_from_subset(e){return e.map((e=>this._indices[e]))}get filters(){const{filter:e}=this;return e instanceof d.IntersectionFilter?e.operands:e instanceof _.AllIndices?[]:[e]}set filters(e){0==e.length?this.filter=new _.AllIndices:1==e.length?this.filter=e[0]:this.filter=new d.IntersectionFilter({operands:e})}}i.CDSView=p,c=p,p.__name__="CDSView",c.prototype.default_view=h,c.define((({Ref:e})=>({filter:[e(l.Filter),()=>new _.AllIndices]}))),c.internal((({Int:e,Mapping:t,Ref:i,Nullable:n})=>({indices:[i(r.Indices)],indices_map:[t(e,e),new Map],masked:[n(i(r.Indices)),null]})))}, +function _(t,s,e,i,n){var a;i();const o=t(1),h=t(232),r=o.__importStar(t(229)),l=o.__importStar(t(18)),_=t(130);class c extends h.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let n=0;n=0;s--)t.lineTo(n[s],a[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}_hit_point(t){const s=this.sy.length,e=new _.Selection;for(let i=0,n=s-1;i({x1:[l.XCoordinateSpec,{field:"x1"}],x2:[l.XCoordinateSpec,{field:"x2"}],y:[l.YCoordinateSpec,{field:"y"}]})))}, +function _(e,t,i,s,n){var o;s();const _=e(1),r=e(232),a=_.__importStar(e(229)),l=_.__importStar(e(18)),h=e(20),c=e(233),p=e(130);class d extends r.AreaView{_index_data(e){const{min:t,max:i}=Math,{x:s,y1:n,y2:o}=this;for(let _=0;_0==n?[t[n],_,_,t[n]]:n==this.data_size-1?[o,t[n],t[n],o]:[o,_,_,o])(),l=[i[n],i[n],s[n],s[n]];if(a.point_in_poly(e.sx,e.sy,r,l))return this._line_selection_for(n)}return new p.Selection}_hit_point(e){switch(this.model.step_mode){case"before":return this._hit_point_before(e);case"after":return this._hit_point_after(e);case"center":return this._hit_point_center(e)}}}i.VAreaStepView=d,d.__name__="VAreaStepView";class f extends r.Area{constructor(e){super(e)}}i.VAreaStep=f,o=f,f.__name__="VAreaStep",o.prototype.default_view=d,o.define((({})=>({x:[l.XCoordinateSpec,{field:"x"}],y1:[l.YCoordinateSpec,{field:"y1"}],y2:[l.YCoordinateSpec,{field:"y2"}],step_mode:[h.StepMode,"before"]})))}, +function _(t,s,e,i,n){var a;i();const o=t(1),h=t(232),r=o.__importStar(t(229)),l=o.__importStar(t(18)),_=t(130);class c extends h.AreaView{_index_data(t){const{min:s,max:e}=Math,{data_size:i}=this;for(let n=0;n=0;s--)t.lineTo(i[s],a[s]);t.closePath(),this.visuals.fill.apply(t),this.visuals.hatch.apply(t)}scenterxy(t){return[this.sx[t],(this.sy1[t]+this.sy2[t])/2]}_hit_point(t){const s=this.sx.length,e=new _.Selection;for(let i=0,n=s-1;i({x:[l.XCoordinateSpec,{field:"x"}],y1:[l.YCoordinateSpec,{field:"y1"}],y2:[l.YCoordinateSpec,{field:"y2"}]})))}, +function _(e,t,i,n,s){var c;n();const a=e(51),o=e(58),r=e(24),l=e(238),_=e(239),d=e(240);class h extends o.View{initialize(){super.initialize(),this.compute_indices()}connect_signals(){super.connect_signals();const e=()=>{this.compute_indices()},t=t=>{this.connect(t.change,e)},i=t=>{this.disconnect(t.change,e)};let{filter:n}=this.model;t(n),this.on_change(this.model.properties.filter,(()=>{i(n),n=this.model.filter,t(n),e()}));const s=t=>{this.connect(t.change,e),this.connect(t.streaming,e),this.connect(t.patching,e),this.connect(t.properties.data.change,e)},c=t=>{this.disconnect(t.change,e),this.disconnect(t.streaming,e),this.disconnect(t.patching,e),this.disconnect(t.properties.data.change,e)};let a=this.parent.data_source.get_value();s(a),this.on_change(this.parent.data_source,(()=>{c(a),a=this.parent.data_source.get_value(),s(a),e()}))}compute_indices(){const e=this.parent.data_source.get_value(),t=e.get_length()??1,i=r.Indices.all_set(t),n=this.model.filter.compute_indices(e);i.intersect(n),this.model.indices=i,this.model._indices_map_to_subset()}}i.CDSViewView=h,h.__name__="CDSViewView";class p extends a.Model{constructor(e){super(e)}_indices_map_to_subset(){this._indices=[...this.indices],this.indices_map=new Map;const{_indices:e,indices_map:t}=this,i=e.length;for(let n=0;nthis._indices[e]))}convert_selection_to_subset(e){return e.map((e=>this.indices_map.get(e)))}convert_indices_from_subset(e){return e.map((e=>this._indices[e]))}get filters(){const{filter:e}=this;return e instanceof d.IntersectionFilter?e.operands:e instanceof _.AllIndices?[]:[e]}set filters(e){0==e.length?this.filter=new _.AllIndices:1==e.length?this.filter=e[0]:this.filter=new d.IntersectionFilter({operands:e})}}i.CDSView=p,c=p,p.__name__="CDSView",c.prototype.default_view=h,c.define((({Ref:e})=>({filter:[e(l.Filter),()=>new _.AllIndices]}))),c.internal((({Int:e,Mapping:t,Ref:i,Nullable:n})=>({indices:[i(r.Indices)],indices_map:[t(e,e),new Map],masked:[n(i(r.Indices)),null]})))}, function _(e,t,n,s,c){s();const o=e(51);class r extends o.Model{constructor(e){super(e)}}n.Filter=r,r.__name__="Filter"}, -function _(e,n,s,t,c){t();const l=e(237),_=e(24);class i extends l.Filter{constructor(e){super(e)}compute_indices(e){const n=e.get_length()??1;return _.Indices.all_set(n)}}s.AllIndices=i,i.__name__="AllIndices"}, -function _(e,t,n,s,c){s();const i=e(240);class o extends i.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.intersect(t)}}n.IntersectionFilter=o,o.__name__="IntersectionFilter"}, -function _(e,t,n,s,o){var i;s();const c=e(237),r=e(24);class a extends c.Filter{constructor(e){super(e)}connect_signals(){super.connect_signals();const e=()=>{this.change.emit()},t=t=>{for(const n of t)this.connect(n.change,e)},n=t=>{for(const n of t)this.disconnect(n.change,e)};let s=(()=>{const{operands:e}=this.properties;return e.is_unset?[]:e.get_value()})();t(s),this.on_change(this.properties.operands,(()=>{n(s),s=this.operands,t(s)}))}compute_indices(e){const{operands:t}=this;if(0==t.length){const t=e.get_length()??1;return r.Indices.all_set(t)}{const[n,...s]=t.map((t=>t.compute_indices(e)));for(const e of s)this._inplace_op(n,e);return n}}}n.CompositeFilter=a,i=a,a.__name__="CompositeFilter",i.define((({List:e,Ref:t})=>({operands:[e(t(c.Filter))]})))}, -function _(t,r,a,e,i){e(),i("BasicTickFormatter",t(196).BasicTickFormatter),i("CategoricalTickFormatter",t(242).CategoricalTickFormatter),i("DatetimeTickFormatter",t(243).DatetimeTickFormatter),i("CustomJSTickFormatter",t(248).CustomJSTickFormatter),i("LogTickFormatter",t(249).LogTickFormatter),i("MercatorTickFormatter",t(250).MercatorTickFormatter),i("NumeralTickFormatter",t(251).NumeralTickFormatter),i("PrintfTickFormatter",t(252).PrintfTickFormatter),i("TickFormatter",t(192).TickFormatter)}, +function _(e,n,s,t,c){t();const l=e(238),_=e(24);class i extends l.Filter{constructor(e){super(e)}compute_indices(e){const n=e.get_length()??1;return _.Indices.all_set(n)}}s.AllIndices=i,i.__name__="AllIndices"}, +function _(e,t,n,s,c){s();const i=e(241);class o extends i.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.intersect(t)}}n.IntersectionFilter=o,o.__name__="IntersectionFilter"}, +function _(e,t,n,s,o){var i;s();const c=e(238),r=e(24);class a extends c.Filter{constructor(e){super(e)}connect_signals(){super.connect_signals();const e=()=>{this.change.emit()},t=t=>{for(const n of t)this.connect(n.change,e)},n=t=>{for(const n of t)this.disconnect(n.change,e)};let s=(()=>{const{operands:e}=this.properties;return e.is_unset?[]:e.get_value()})();t(s),this.on_change(this.properties.operands,(()=>{n(s),s=this.operands,t(s)}))}compute_indices(e){const{operands:t}=this;if(0==t.length){const t=e.get_length()??1;return r.Indices.all_set(t)}{const[n,...s]=t.map((t=>t.compute_indices(e)));for(const e of s)this._inplace_op(n,e);return n}}}n.CompositeFilter=a,i=a,a.__name__="CompositeFilter",i.define((({List:e,Ref:t})=>({operands:[e(t(c.Filter))]})))}, +function _(t,r,a,e,i){e(),i("BasicTickFormatter",t(196).BasicTickFormatter),i("CategoricalTickFormatter",t(243).CategoricalTickFormatter),i("DatetimeTickFormatter",t(244).DatetimeTickFormatter),i("CustomJSTickFormatter",t(249).CustomJSTickFormatter),i("LogTickFormatter",t(250).LogTickFormatter),i("MercatorTickFormatter",t(251).MercatorTickFormatter),i("NumeralTickFormatter",t(252).NumeralTickFormatter),i("PrintfTickFormatter",t(253).PrintfTickFormatter),i("TickFormatter",t(192).TickFormatter)}, function _(t,r,o,c,a){c();const e=t(192),n=t(10);class i extends e.TickFormatter{constructor(t){super(t)}doFormat(t,r){return(0,n.copy)(t)}}o.CategoricalTickFormatter=i,i.__name__="CategoricalTickFormatter"}, -function _(e,t,s,n,o){var r;n();const i=e(1),l=e(20),c=e(12),u=e(244),_=e(8),a=e(192),h=e(206),m=i.__importDefault(e(247));function d(e,t){const s=1.1*e*1e3,n=1e3*t;return s=h.ONE_MINUTE?"minsec":"seconds":s=h.ONE_HOUR?"hourmin":"minutes":sparseInt(e,10)))}function p(e,t){const s=(0,u.sprintf)("$1%06d",b(e));return-1==(t=t.replace(/((^|[^%])(%%)*)%f/,s)).indexOf("%")?t:(0,m.default)(e,t)}function b(e){let t=Math.round(e/1e3%1*1e6);return e<0&&(t=(1e6+t)%1e6),t}s.resolution_order=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"],s.tm_index_for_resolution={microseconds:0,milliseconds:0,seconds:5,minsec:4,minutes:4,hourmin:3,hours:3,days:0,months:0,years:0},s._get_resolution=d,s._mktime=f,s._strftime=p,s._us=b;class g extends a.TickFormatter{constructor(e){super(e)}doFormat(e,t,s){if(0==e.length)return[];const n=Math.abs(e[e.length-1]-e[0])/1e3,o=n/(e.length-1),r=(0,_.is_undefined)(s)?d(o,n):s;let i=[];for(const t of e){const e=this._compute_label(t,r);i.push(e)}if(this.hide_repeats&&(i=this._hide_repeating_labels(i)),null==this.context)return i;const l=this._compute_context_labels(e,r);return this._build_full_labels(i,l)}_compute_label(e,t){const n=p(e,this[t]),o=f(e),r=s.resolution_order.indexOf(t);let i=t,l=n;if(this.boundary_scaling){let n=!1,c=r,u=t;for(;0==o[s.tm_index_for_resolution[s.resolution_order[c]]]&&(c+=1,c!=s.resolution_order.length);){if(("minsec"==t||"hourmin"==t)&&!n){if("minsec"==t&&0==o[4]&&0!=o[5]||"hourmin"==t&&0==o[3]&&0!=o[4]){u=s.resolution_order[r-1],l=p(e,this[u]);break}n=!0}u=s.resolution_order[c],l=p(e,this[u])}i=u}const{strip_leading_zeros:c}=this;if((0,_.isBoolean)(c)&&c||(0,_.isArray)(c)&&c.includes(i)){const e=l.replace(/^0+/g,"");return e==l||Number.isInteger(Number(e[0]))?e:`0${e}`}return l}_compute_context_labels(e,t){const{context:s}=this;(0,c.assert)(null!=s);const n=[];if((0,_.isString)(s))for(const t of e)n.push(p(t,s));else n.push(...s.doFormat(e,{loc:0},t));const o=this.context_which,r=n.length;for(let e=0;e""===e)))return e;for(let o=0;o{switch(s){case"above":return`${i}\n${r}`;case"below":return`${r}\n${i}`;case"left":return""==i?r:`${i} ${r}`;case"right":return""==i?r:`${r} ${i}`}})();n.push(l)}return n}_hide_repeating_labels(e){if(e.length<=1)return e;const t=[e[0]];let s=0;for(let n=1;n({microseconds:[o,"%fus"],milliseconds:[o,"%3Nms"],seconds:[o,"%Ss"],minsec:[o,":%M:%S"],minutes:[o,":%M"],hourmin:[o,"%H:%M"],hours:[o,"%Hh"],days:[o,"%m/%d"],months:[o,"%m/%Y"],years:[o,"%Y"],strip_leading_zeros:[s(e,i(l.ResolutionType)),!1],boundary_scaling:[e,!0],hide_repeats:[e,!1],context:[t(s(o,n(r))),null],context_which:[l.ContextWhich,"start"],context_location:[l.Location,"below"]})))}, -function _(r,e,n,t,i){t();const u=r(1),l=u.__importStar(r(245)),a=r(246),s=u.__importDefault(r(247)),f=r(19),o=r(9),c=r(30),m=r(8),{abs:_}=Math;function p(r,...e){return(0,a.sprintf)(r,...e)}function N(r,e,n){if((0,m.isNumber)(r)){return p(Number.isInteger(r)?"%d":.1<_(r)&&_(r)<1e3?"%0.3f":"%0.3e",r)}return`${r}`}function S(r,e,t){if(null==e)return n.DEFAULT_FORMATTERS.basic;if(null!=t){const e=(0,o.dict)(t).get(r);if(null!=e){if((0,m.isString)(e)){if(e in n.DEFAULT_FORMATTERS)return n.DEFAULT_FORMATTERS[e];throw new Error(`Unknown tooltip field formatter type '${e}'`)}return function(r,n,t){return e.format(r,n,t)}}}return n.DEFAULT_FORMATTERS.numeral}function d(r,e,n){const t=e.get_column(r);if(null==t)return null;if(null==n)return null;if((0,m.isNumber)(n))return t[n];const i=t[n.index];if((0,m.isTypedArray)(i)||(0,m.isArray)(i)){if((0,m.isArray)(i[0])){return i[n.j][n.i]}return(0,c.is_NDArray)(i)&&3==i.dimension?i.slice(n.flat_index*i.shape[2],(n.flat_index+1)*i.shape[2]):i[n.flat_index]}return i}function T(r,e,t,i,u){switch(r){case"$":return function(r,e){return r in e?e[r]:(f.logger.warn(`unknown special variable '$${r}'`),n.MISSING)}(e,u);case"@":return d(e,t,i)}}n.DEFAULT_FORMATTERS={raw:(r,e,n)=>`${r}`,basic:(r,e,n)=>N(r,e,n),numeral:(r,e,n)=>l.format(r,e),datetime:(r,e,n)=>(0,s.default)(r,e),printf:(r,e,n)=>p(e,r)},n.sprintf=p,n.basic_formatter=N,n.get_formatter=S,n.MISSING="???",n._get_column_value=d,n.get_value=T,n.replace_placeholders=function(r,e,t,i,u={},l){let a,s;if((0,m.isString)(r)?(a=r,s=!1):(a=r.html,s=!0),a=a.replace(/@\$name/g,(r=>`@{${u.name}}`)),a=A(a,((r,a,f,o,c)=>{const _=T(r,a,e,t,u);if("safe"==f)return s=!0,null==_?n.MISSING:(0,m.isNumber)(_)&&isNaN(_)?"NaN":`${_}`;{const r=(()=>{if(null==_)return n.MISSING;if((0,m.isNumber)(_)&&isNaN(_))return"NaN";return`${S(c,f,i)(_,f??"",u)}`})();return null!=l?l(r):r}})),s){return[...(new DOMParser).parseFromString(a,"text/html").body.childNodes]}return a};const g=/((?:[$@][\p{Letter}\p{Number}_]+)|(?:[$@]\{(?:[^{}]+)\}))(?:\{([^{}]+)\})?/gu;function A(r,e){let t=0;return r.replace(g,((r,i,u)=>{const l=i[0],a=i.substring(1).replace(/^{/,"").replace(/}$/,"").trim();return e(l,a,u,t++,i)??n.MISSING}))}n.process_placeholders=A}, +function _(e,t,s,n,o){var r;n(),s._get_resolution=d,s._mktime=f,s._strftime=p,s._us=b;const i=e(1),l=e(20),c=e(12),u=e(245),_=e(8),a=e(192),h=e(207),m=i.__importDefault(e(248));function d(e,t){const s=1.1*e*1e3,n=1e3*t;return s=h.ONE_MINUTE?"minsec":"seconds":s=h.ONE_HOUR?"hourmin":"minutes":sparseInt(e,10)))}function p(e,t){const s=(0,u.sprintf)("$1%06d",b(e));return-1==(t=t.replace(/((^|[^%])(%%)*)%f/,s)).indexOf("%")?t:(0,m.default)(e,t)}function b(e){let t=Math.round(e/1e3%1*1e6);return e<0&&(t=(1e6+t)%1e6),t}s.resolution_order=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"],s.tm_index_for_resolution={microseconds:0,milliseconds:0,seconds:5,minsec:4,minutes:4,hourmin:3,hours:3,days:0,months:0,years:0};class g extends a.TickFormatter{constructor(e){super(e)}doFormat(e,t,s){if(0==e.length)return[];const n=Math.abs(e[e.length-1]-e[0])/1e3,o=n/(e.length-1),r=(0,_.is_undefined)(s)?d(o,n):s;let i=[];for(const t of e){const e=this._compute_label(t,r);i.push(e)}if(this.hide_repeats&&(i=this._hide_repeating_labels(i)),null==this.context)return i;const l=this._compute_context_labels(e,r);return this._build_full_labels(i,l)}_compute_label(e,t){const n=p(e,this[t]),o=f(e),r=s.resolution_order.indexOf(t);let i=t,l=n;if(this.boundary_scaling){let n=!1,c=r,u=t;for(;0==o[s.tm_index_for_resolution[s.resolution_order[c]]]&&(c+=1,c!=s.resolution_order.length);){if(("minsec"==t||"hourmin"==t)&&!n){if("minsec"==t&&0==o[4]&&0!=o[5]||"hourmin"==t&&0==o[3]&&0!=o[4]){u=s.resolution_order[r-1],l=p(e,this[u]);break}n=!0}u=s.resolution_order[c],l=p(e,this[u])}i=u}const{strip_leading_zeros:c}=this;if((0,_.isBoolean)(c)&&c||(0,_.isArray)(c)&&c.includes(i)){const e=l.replace(/^0+/g,"");return e==l||Number.isInteger(Number(e[0]))?e:`0${e}`}return l}_compute_context_labels(e,t){const{context:s}=this;(0,c.assert)(null!=s);const n=[];if((0,_.isString)(s))for(const t of e)n.push(p(t,s));else n.push(...s.doFormat(e,{loc:0},t));const o=this.context_which,r=n.length;for(let e=0;e""===e)))return e;for(let o=0;o{switch(s){case"above":return`${i}\n${r}`;case"below":return`${r}\n${i}`;case"left":return""==i?r:`${i} ${r}`;case"right":return""==i?r:`${r} ${i}`}})();n.push(l)}return n}_hide_repeating_labels(e){if(e.length<=1)return e;const t=[e[0]];let s=0;for(let n=1;n({microseconds:[o,"%fus"],milliseconds:[o,"%3Nms"],seconds:[o,"%Ss"],minsec:[o,":%M:%S"],minutes:[o,":%M"],hourmin:[o,"%H:%M"],hours:[o,"%Hh"],days:[o,"%m/%d"],months:[o,"%m/%Y"],years:[o,"%Y"],strip_leading_zeros:[s(e,i(l.ResolutionType)),!1],boundary_scaling:[e,!0],hide_repeats:[e,!1],context:[t(s(o,n(r))),null],context_which:[l.ContextWhich,"start"],context_location:[l.Location,"below"]})))}, +function _(r,e,n,t,i){t(),n.sprintf=p,n.basic_formatter=N,n.get_formatter=S,n._get_column_value=d,n.get_value=T,n.replace_placeholders=function(r,e,t,i,u={},l){let a,s;(0,m.isString)(r)?(a=r,s=!1):(a=r.html,s=!0);if(a=a.replace(/@\$name/g,(r=>`@{${u.name}}`)),a=A(a,((r,a,f,o,c)=>{const _=T(r,a,e,t,u);if("safe"==f)return s=!0,null==_?n.MISSING:(0,m.isNumber)(_)&&isNaN(_)?"NaN":`${_}`;{const r=(()=>{if(null==_)return n.MISSING;if((0,m.isNumber)(_)&&isNaN(_))return"NaN";return`${S(c,f,i)(_,f??"",u)}`})();return null!=l?l(r):r}})),s){return[...(new DOMParser).parseFromString(a,"text/html").body.childNodes]}return a},n.process_placeholders=A;const u=r(1),l=u.__importStar(r(246)),a=r(247),s=u.__importDefault(r(248)),f=r(19),o=r(9),c=r(30),m=r(8),{abs:_}=Math;function p(r,...e){return(0,a.sprintf)(r,...e)}function N(r,e,n){if((0,m.isNumber)(r)){return p(Number.isInteger(r)?"%d":.1<_(r)&&_(r)<1e3?"%0.3f":"%0.3e",r)}return`${r}`}function S(r,e,t){if(null==e)return n.DEFAULT_FORMATTERS.basic;if(null!=t){const e=(0,o.dict)(t).get(r);if(null!=e){if((0,m.isString)(e)){if(e in n.DEFAULT_FORMATTERS)return n.DEFAULT_FORMATTERS[e];throw new Error(`Unknown tooltip field formatter type '${e}'`)}return function(r,n,t){return e.format(r,n,t)}}}return n.DEFAULT_FORMATTERS.numeral}function d(r,e,n){const t=e.get_column(r);if(null==t)return null;if(null==n)return null;if((0,m.isNumber)(n))return t[n];const i=t[n.index];if((0,m.isTypedArray)(i)||(0,m.isArray)(i)){if((0,m.isArray)(i[0])){return i[n.j][n.i]}return(0,c.is_NDArray)(i)&&3==i.dimension?i.slice(n.flat_index*i.shape[2],(n.flat_index+1)*i.shape[2]):i[n.flat_index]}return i}function T(r,e,t,i,u){switch(r){case"$":return function(r,e){return r in e?e[r]:(f.logger.warn(`unknown special variable '$${r}'`),n.MISSING)}(e,u);case"@":return d(e,t,i)}}n.DEFAULT_FORMATTERS={raw:(r,e,n)=>`${r}`,basic:(r,e,n)=>N(r,e,n),numeral:(r,e,n)=>l.format(r,e),datetime:(r,e,n)=>(0,s.default)(r,e),printf:(r,e,n)=>p(e,r)},n.MISSING="???";const g=/((?:[$@][\p{Letter}\p{Number}_]+)|(?:[$@]\{(?:[^{}]+)\}))(?:\{([^{}]+)\})?/gu;function A(r,e){let t=0;return r.replace(g,((r,i,u)=>{const l=i[0],a=i.substring(1).replace(/^{/,"").replace(/}$/,"").trim();return e(l,a,u,t++,i)??n.MISSING}))}}, function _(e,n,t,r,i){ /*! * numbro.js @@ -420,83 +421,83 @@ var a,o={},l=o,c="en-US",u=null,s="0,0";void 0!==n&&n.exports;function f(e){this function _(e,n,t,r,i){!function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(t){return function(t,r){var i,s,a,o,p,c,l,u,f,d=1,g=t.length,y="";for(s=0;s=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}e.json.test(o.type)?y+=i:(!e.number.test(o.type)||u&&!o.sign?f="":(f=u?"+":"-",i=i.toString().replace(e.sign,"")),c=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",l=o.width-(f+i).length,p=o.width&&l>0?c.repeat(l):"",y+=o.align?f+i+p:"0"===c?f+p+i:p+f+i)}return y}(function(n){if(i[n])return i[n];var t,r=n,s=[],a=0;for(;r;){if(null!==(t=e.text.exec(r)))s.push(t[0]);else if(null!==(t=e.modulo.exec(r)))s.push("%");else{if(null===(t=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],p=t[2],c=[];if(null===(c=e.key.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(p=p.substring(c[0].length));)if(null!==(c=e.key_access.exec(p)))o.push(c[1]);else{if(null===(c=e.index_access.exec(p)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return i[n]=s}(t),arguments)}function r(e,t){return n.apply(null,[e].concat(t||[]))}var i=Object.create(null);void 0!==t&&(t.sprintf=n,t.vsprintf=r),"undefined"!=typeof window&&(window.sprintf=n,window.vsprintf=r,"function"==typeof define&&define.amd&&define((function(){return{sprintf:n,vsprintf:r}})))}()}, function _(e,t,n,r,o){!function(e){"object"==typeof t&&t.exports?t.exports=e():"function"==typeof define?define(e):this.tz=e()}((function(){function e(e,t,n){var r,o=t.day[1];do{r=new Date(Date.UTC(n,t.month,Math.abs(o++)))}while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return(r={clock:t.clock,sort:r.getTime(),rule:t,save:6e4*t.save,offset:e.offset})[r.clock]=r.sort+6e4*t.time,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var o,a,u,i,l,s,c,f=t[t.zone],h=[],T=new Date(r).getUTCFullYear(),g=1;for(o=1,a=f.length;o=T-g;--c)for(o=0,a=s.length;o=h[o][n]&&h[o][h[o].clock]>u[h[o].clock]&&(i=h[o])}return i&&((l=/^(.*)\/(.*)$/.exec(u.format))?i.abbrev=l[i.save?2:1]:i.abbrev=u.format.replace(/%s/,i.rule.letter)),i||u}function n(e,n){return"UTC"==e.zone?n:(e.entry=t(e,"posix",n),n+e.entry.offset+e.entry.save)}function r(e,n){return"UTC"==e.zone?n:(e.entry=r=t(e,"wallclock",n),0<(o=n-r.wallclock)&&o9)t+=s*l[c-10];else{if(a=new Date(n(e,t)),c<7)for(;s;)a.setUTCDate(a.getUTCDate()+i),a.getUTCDay()==c&&(s-=i);else 7==c?a.setUTCFullYear(a.getUTCFullYear()+s):8==c?a.setUTCMonth(a.getUTCMonth()+s):a.setUTCDate(a.getUTCDate()+s);null==(t=r(e,a.getTime()))&&(t=r(e,a.getTime()+864e5*i)-864e5*i)}return t}var a={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(e,t,n,r){var o,a,u=this.entry.offset+this.entry.save,i=Math.abs(u/1e3),l=[],s=3600;for(o=0;o<3;o++)l.push(("0"+Math.floor(i/s)).slice(-2)),i%=s,s/=60;return"^"!=n||u?("^"==n&&(r=3),3==r?(a=(a=l.join(":")).replace(/:00$/,""),"^"!=n&&(a=a.replace(/:00$/,""))):r?(a=l.slice(0,r+1).join(":"),"^"==n&&(a=a.replace(/:00$/,""))):a=l.slice(0,2).join(""),a=(a=(u<0?"-":"+")+a).replace(/([-+])(0)/,{_:" $1","-":"$1"}[n]||"$1$2")):"Z"},"%":function(e){return"%"},n:function(e){return"\n"},t:function(e){return"\t"},U:function(e){return s(e,0)},W:function(e){return s(e,1)},V:function(e){return c(e)[0]},G:function(e){return c(e)[1]},g:function(e){return c(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,"%H:%M"])},T:function(e,t){return this.convert([t,"%H:%M:%S"])},D:function(e,t){return this.convert([t,"%m/%d/%y"])},F:function(e,t){return this.convert([t,"%Y-%m-%d"])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||"%I:%M:%S"])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:function(e){if(!e.length)return"1.0.23";var t,a,u,l,s,c=Object.create(this),f=[];for(t=0;t=o?Math.floor((n-o)/7)+1:0}function c(e){var t,n,r;return n=e.getUTCFullYear(),t=new Date(Date.UTC(n,0)).getUTCDay(),(r=s(e,1)+(t>1&&t<=4?1:0))?53!=r||4==t||3==t&&29==new Date(n,1,29).getDate()?[r,e.getUTCFullYear()]:[1,e.getUTCFullYear()+1]:(n=e.getUTCFullYear()-1,[r=4==(t=new Date(Date.UTC(n,0)).getUTCDay())||3==t&&29==new Date(n,1,29).getDate()?53:52,e.getUTCFullYear()-1])}return u=u.toLowerCase().split("|"),"delmHMSUWVgCIky".replace(/./g,(function(e){a[e].pad=2})),a.N.pad=9,a.j.pad=3,a.k.style="_",a.l.style="_",a.e.style="_",function(){return a.convert(arguments)}}))}, function _(t,e,s,n,r){var c;n();const a=t(192),i=t(9),o=t(40);class u extends a.TickFormatter{constructor(t){super(t)}get names(){return(0,i.keys)(this.args)}get values(){return(0,i.values)(this.args)}_make_func(){const t=(0,o.use_strict)(this.code);return new Function("tick","index","ticks",...this.names,t)}doFormat(t,e){const s=this._make_func().bind({});return t.map(((t,e,n)=>`${s(t,e,n,...this.values)}`))}}s.CustomJSTickFormatter=u,c=u,u.__name__="CustomJSTickFormatter",c.define((({Unknown:t,Str:e,Dict:s})=>({args:[s(t),{}],code:[e,""]})))}, -function _(e,t,n,r,o){var i;r();const s=e(192),a=e(196),c=e(210),l=e(180),{abs:u,log:x,round:_}=Math;class p extends s.TickFormatter{constructor(e){super(e)}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}format_graphics(e,t){if(0==e.length)return[];const n=this.ticker?.base??10,r=this._exponents(e,n);return null==r?this.basic_formatter.format_graphics(e,t):r.map((e=>{if(u(e)u(e)({ticker:[n(t(c.LogTicker)),null],min_exponent:[e,0]})))}, +function _(e,t,n,r,o){var i;r();const s=e(192),a=e(196),c=e(211),l=e(180),{abs:u,log:x,round:_}=Math;class p extends s.TickFormatter{constructor(e){super(e)}initialize(){super.initialize(),this.basic_formatter=new a.BasicTickFormatter}format_graphics(e,t){if(0==e.length)return[];const n=this.ticker?.base??10,r=this._exponents(e,n);return null==r?this.basic_formatter.format_graphics(e,t):r.map((e=>{if(u(e)u(e)({ticker:[n(t(c.LogTicker)),null],min_exponent:[e,0]})))}, function _(r,t,e,o,n){var i;o();const c=r(196),s=r(20),a=r(134);class l extends c.BasicTickFormatter{constructor(r){super(r)}doFormat(r,t){if(null==this.dimension)throw new Error("MercatorTickFormatter.dimension not configured");if(0==r.length)return[];const e=r.length,o=new Array(e);if("lon"==this.dimension)for(let n=0;n({dimension:[r(s.LatLon),null]})))}, -function _(r,n,t,o,e){var a;o();const u=r(1).__importStar(r(245)),c=r(192),i=r(20);class s extends c.TickFormatter{constructor(r){super(r)}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,n){const{format:t,language:o,_rounding_fn:e}=this;return r.map((r=>u.format(r,t,o,e)))}}t.NumeralTickFormatter=s,a=s,s.__name__="NumeralTickFormatter",a.define((({Str:r})=>({format:[r,"0,0"],language:[r,"en"],rounding:[i.RoundingFunction,"round"]})))}, -function _(t,r,n,o,a){var e;o();const i=t(192),s=t(244);class c extends i.TickFormatter{constructor(t){super(t)}doFormat(t,r){return t.map((t=>(0,s.sprintf)(this.format,t)))}}n.PrintfTickFormatter=c,e=c,c.__name__="PrintfTickFormatter",e.define((({Str:t})=>({format:[t,"%s"]})))}, -function _(a,e,l,c,o){c(),o("CategoricalScale",a(104).CategoricalScale),o("CompositeScale",a(105).CompositeScale),o("ContinuousScale",a(102).ContinuousScale),o("LinearInterpolationScale",a(254).LinearInterpolationScale),o("LinearScale",a(101).LinearScale),o("LogScale",a(103).LogScale),o("Scale",a(96).Scale)}, +function _(r,n,t,o,e){var a;o();const u=r(1).__importStar(r(246)),c=r(192),i=r(20);class s extends c.TickFormatter{constructor(r){super(r)}get _rounding_fn(){switch(this.rounding){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}doFormat(r,n){const{format:t,language:o,_rounding_fn:e}=this;return r.map((r=>u.format(r,t,o,e)))}}t.NumeralTickFormatter=s,a=s,s.__name__="NumeralTickFormatter",a.define((({Str:r})=>({format:[r,"0,0"],language:[r,"en"],rounding:[i.RoundingFunction,"round"]})))}, +function _(t,r,n,o,a){var e;o();const i=t(192),s=t(245);class c extends i.TickFormatter{constructor(t){super(t)}doFormat(t,r){return t.map((t=>(0,s.sprintf)(this.format,t)))}}n.PrintfTickFormatter=c,e=c,c.__name__="PrintfTickFormatter",e.define((({Str:t})=>({format:[t,"%s"]})))}, +function _(a,e,l,c,o){c(),o("CategoricalScale",a(104).CategoricalScale),o("CompositeScale",a(105).CompositeScale),o("ContinuousScale",a(102).ContinuousScale),o("LinearInterpolationScale",a(255).LinearInterpolationScale),o("LinearScale",a(101).LinearScale),o("LogScale",a(103).LogScale),o("Scale",a(96).Scale)}, function _(e,n,r,t,a){var i;t();const s=e(96),o=e(101),c=e(13);class _ extends s.Scale{constructor(e){super(e)}initialize(){super.initialize();const{source_range:e,target_range:n}=this.properties;e.is_unset||n.is_unset||(this.linear_scale=new o.LinearScale({source_range:e.get_value(),target_range:n.get_value()}))}connect_signals(){super.connect_signals();const{source_range:e,target_range:n}=this.properties;this.on_change([e,n],(()=>{this.linear_scale=new o.LinearScale({source_range:this.source_range,target_range:this.target_range})}))}get s_compute(){throw new Error("not implemented")}get s_invert(){throw new Error("not implemented")}compute(e){return e}v_compute(e){const{binning:n}=this,{start:r,end:t}=this.source_range,a=r,i=t,s=n.length,o=(t-r)/(s-1),_=new Float64Array(s);for(let e=0;e{if(ei)return i;const r=(0,c.left_edge_index)(e,n);if(-1==r)return a;if(r>=s-1)return i;const t=n[r],o=(e-t)/(n[r+1]-t),l=_[r];return l+o*(_[r+1]-l)}));return this.linear_scale.v_compute(l)}invert(e){return e}v_invert(e){return new Float64Array(e)}}r.LinearInterpolationScale=_,i=_,_.__name__="LinearInterpolationScale",i.internal((({Float:e,Arrayable:n,Ref:r})=>({binning:[n(e)],linear_scale:[r(o.LinearScale)]})))}, function _(a,n,e,g,R){g(),R("DataRange",a(107).DataRange),R("DataRange1d",a(106).DataRange1d),R("FactorRange",a(109).FactorRange),R("Range",a(98).Range),R("Range1d",a(99).Range1d)}, -function _(a,t,o,e,i){e();var u=a(174);i("Sizeable",u.Sizeable),i("SizingPolicy",u.SizingPolicy);var l=a(175);i("Layoutable",l.Layoutable),i("ContentLayoutable",l.ContentLayoutable),i("TextLayout",l.TextLayout),i("FixedLayout",l.FixedLayout);var n=a(257);i("HStack",n.HStack),i("VStack",n.VStack);var y=a(258);i("Grid",y.Grid),i("Row",y.Row),i("Column",y.Column)}, +function _(a,t,o,e,i){e();var u=a(174);i("Sizeable",u.Sizeable),i("SizingPolicy",u.SizingPolicy);var l=a(175);i("Layoutable",l.Layoutable),i("ContentLayoutable",l.ContentLayoutable),i("TextLayout",l.TextLayout),i("FixedLayout",l.FixedLayout);var n=a(258);i("HStack",n.HStack),i("VStack",n.VStack);var y=a(259);i("Grid",y.Grid),i("Row",y.Row),i("Column",y.Column)}, function _(t,e,h,i,r){i();const s=t(175),o=t(64),{max:n,round:c}=Math;class a extends s.Layoutable{constructor(){super(...arguments),this.children=[]}*[Symbol.iterator](){yield*this.children}}h.Stack=a,a.__name__="Stack";class l extends a{_measure(t){let e=0,h=0;for(const t of this.children){const i=t.measure({width:0,height:0});e+=i.width,h=n(h,i.height)}return{width:e,height:h}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new o.BBox);else{const e=this.absolute?t.top:0;let h=this.absolute?t.left:0;const{height:i}=t;for(const t of this.children){const{width:r}=t.measure({width:0,height:0});t.set_geometry(new o.BBox({left:h,width:r,top:e,height:i})),h+=r}}}}h.HStack=l,l.__name__="HStack";class d extends a{_measure(t){let e=0,h=0;for(const t of this.children){const i=t.measure({width:0,height:0});e=n(e,i.width),h+=i.height}return{width:e,height:h}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new o.BBox);else{const e=this.absolute?t.left:0;let h=this.absolute?t.top:0;const{width:i}=t;for(const t of this.children){const{height:r}=t.measure({width:0,height:0});t.set_geometry(new o.BBox({top:h,height:r,left:e,width:i})),h+=r}}}}h.VStack=d,d.__name__="VStack";class g extends s.Layoutable{constructor(){super(...arguments),this.children=[]}*[Symbol.iterator](){yield*this.children}_measure(t){const{width_policy:e,height_policy:h}=this.sizing,{min:i,max:r}=Math;let s=0,o=0;for(const e of this.children){const{width:h,height:i}=e.measure(t);s=r(s,h),o=r(o,i)}return{width:(()=>{const{width:h}=this.sizing;if(t.width==1/0)return"fixed"==e?h??s:s;switch(e){case"fixed":return h??s;case"min":return s;case"fit":return null!=h?i(t.width,h):t.width;case"max":return null!=h?r(t.width,h):t.width}})(),height:(()=>{const{height:e}=this.sizing;if(t.height==1/0)return"fixed"==h?e??o:o;switch(h){case"fixed":return e??o;case"min":return o;case"fit":return null!=e?i(t.height,e):t.height;case"max":return null!=e?r(t.height,e):t.height}})()}}_set_geometry(t,e){if(super._set_geometry(t,e),t.is_empty)for(const t of this.children)t.set_geometry(new o.BBox);else{const e=this.absolute?t:t.relative(),{left:h,right:i,top:r,bottom:s}=e,n=c(e.vcenter),a=c(e.hcenter);for(const e of this.children){const{margin:c,halign:l="start",valign:d="start"}=e.sizing,{width:g,height:u,inner:_}=e.measure(t),w=(()=>{switch(`${d}_${l}`){case"start_start":return new o.BBox({left:h+c.left,top:r+c.top,width:g,height:u});case"start_center":return new o.BBox({hcenter:a,top:r+c.top,width:g,height:u});case"start_end":return new o.BBox({right:i-c.right,top:r+c.top,width:g,height:u});case"center_start":return new o.BBox({left:h+c.left,vcenter:n,width:g,height:u});case"center_center":return new o.BBox({hcenter:a,vcenter:n,width:g,height:u});case"center_end":return new o.BBox({right:i-c.right,vcenter:n,width:g,height:u});case"end_start":return new o.BBox({left:h+c.left,bottom:s-c.bottom,width:g,height:u});case"end_center":return new o.BBox({hcenter:a,bottom:s-c.bottom,width:g,height:u});case"end_end":return new o.BBox({right:i-c.right,bottom:s-c.bottom,width:g,height:u})}})(),m=null==_?w:new o.BBox({left:w.left+_.left,top:w.top+_.top,right:w.right-_.right,bottom:w.bottom-_.bottom});e.set_geometry(w,m)}}}}h.NodeLayout=g,g.__name__="NodeLayout"}, function _(t,i,s,e,o){e();const n=t(174),r=t(175),h=t(8),l=t(64),c=t(10),{max:a,round:p}=Math;class g{constructor(t){this._map=new Map,this.def=t}get(t){let i=this._map.get(t);return void 0===i&&(i=this.def(),this._map.set(t,i)),i}apply(t,i){const s=this.get(t);this._map.set(t,i(s))}}s.DefaultMap=g,g.__name__="DefaultMap";class _{constructor(){this._items=[],this._nrows=0,this._ncols=0}get size(){return this._items.length}get nrows(){return this._nrows}get ncols(){return this._ncols}add(t,i){const{r1:s,c1:e}=t;this._nrows=a(this._nrows,s+1),this._ncols=a(this._ncols,e+1),this._items.push({span:t,data:i})}at(t,i){return this._items.filter((({span:s})=>s.r0<=t&&t<=s.r1&&s.c0<=i&&i<=s.c1)).map((({data:t})=>t))}row(t){return this._items.filter((({span:i})=>i.r0<=t&&t<=i.r1)).map((({data:t})=>t))}col(t){return this._items.filter((({span:i})=>i.c0<=t&&t<=i.c1)).map((({data:t})=>t))}*[Symbol.iterator](){yield*this._items}foreach(t){for(const{span:i,data:s}of this._items)t(i,s)}map(t){const i=new _;for(const{span:s,data:e}of this._items)i.add(s,t(s,e));return i}}s.Container=_,_.__name__="Container";class f extends r.Layoutable{*[Symbol.iterator](){for(const{layout:t}of this.items)yield t}constructor(t=[]){super(),this.rows="auto",this.cols="auto",this.spacing=0,this.items=t}is_width_expanding(){if(super.is_width_expanding())return!0;if("fixed"==this.sizing.width_policy)return!1;const{cols:t}=this._state;return(0,c.some)(t,(t=>"max"==t.policy))}is_height_expanding(){if(super.is_height_expanding())return!0;if("fixed"==this.sizing.height_policy)return!1;const{rows:t}=this._state;return(0,c.some)(t,(t=>"max"==t.policy))}_init(){super._init();const t=new _;for(const{layout:i,row:s,col:e,row_span:o=1,col_span:n=1}of this.items)if(i.sizing.visible){const r=s,h=e,l=s+o-1,c=e+n-1;t.add({r0:r,c0:h,r1:l,c1:c},i)}const{nrows:i,ncols:s}=t,e=new Array(i);for(let s=0;s{const t=(0,h.isPlainObject)(this.rows)?this.rows[s]??this.rows["*"]:this.rows;return null==t?{policy:"auto"}:(0,h.isNumber)(t)?{policy:"fixed",height:t}:(0,h.isString)(t)?{policy:t}:t})(),o=i.align??"auto";"fixed"==i.policy?e[s]={policy:"fixed",height:i.height,align:o}:"min"==i.policy?e[s]={policy:"min",align:o}:"fit"==i.policy||"max"==i.policy?e[s]={policy:i.policy,flex:i.flex??1,align:o}:(0,c.some)(t.row(s),(t=>t.is_height_expanding()))?e[s]={policy:"max",flex:1,align:o}:e[s]={policy:"min",align:o}}const o=new Array(s);for(let i=0;i{const t=(0,h.isPlainObject)(this.cols)?this.cols[i]??this.cols["*"]:this.cols;return null==t?{policy:"auto"}:(0,h.isNumber)(t)?{policy:"fixed",width:t}:(0,h.isString)(t)?{policy:t}:t})(),e=s.align??"auto";"fixed"==s.policy?o[i]={policy:"fixed",width:s.width,align:e}:"min"==s.policy?o[i]={policy:"min",align:e}:"fit"==s.policy||"max"==s.policy?o[i]={policy:s.policy,flex:s.flex??1,align:e}:(0,c.some)(t.col(i),(t=>t.is_width_expanding()))?o[i]={policy:"max",flex:1,align:e}:o[i]={policy:"min",align:e}}const[n,r]=(0,h.isNumber)(this.spacing)?[this.spacing,this.spacing]:this.spacing;this._state={items:t,nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}}_measure_totals(t,i){const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state;return{height:(0,c.sum)(t)+(s-1)*o,width:(0,c.sum)(i)+(e-1)*n}}_measure_cells(t){const{items:i,nrows:s,ncols:e,rows:o,cols:r,rspacing:h,cspacing:l}=this._state,c=new Array(s);for(let t=0;t{const{r0:e,c0:_,r1:d,c1:w}=i,m=(d-e)*h,u=(w-_)*l;let y=0;for(let i=e;i<=d;i++)y+=t(i,_).height;y+=m;let x=0;for(let i=_;i<=w;i++)x+=t(e,i).width;x+=u;const z=s.measure({width:x,height:y});f.add(i,{layout:s,size_hint:z});const b=new n.Sizeable(z).grow_by(s.sizing.margin);b.height-=m,b.width-=u;const B=[];for(let t=e;t<=d;t++){const i=o[t];"fixed"==i.policy?b.height-=i.height:B.push(t)}if(b.height>0){const t=p(b.height/B.length);for(const i of B)c[i]=a(c[i],t)}const S=[];for(let t=_;t<=w;t++){const i=r[t];"fixed"==i.policy?b.width-=i.width:S.push(t)}if(b.width>0){const t=p(b.width/S.length);for(const i of S)g[i]=a(g[i],t)}}));return{size:this._measure_totals(c,g),row_heights:c,col_widths:g,size_hints:f}}_measure_grid(t){const{nrows:i,ncols:s,rows:e,cols:o,rspacing:n,cspacing:r}=this._state,h=this._measure_cells(((t,i)=>{const s=e[t],n=o[i];return{width:"fixed"==n.policy?n.width:1/0,height:"fixed"==s.policy?s.height:1/0}}));let l;l="fixed"==this.sizing.height_policy&&null!=this.sizing.height?this.sizing.height:t.height!=1/0&&this.is_height_expanding()?t.height:h.size.height;let c,g=0;for(let t=0;t0)for(let t=0;ti?i:e,t--}}}c="fixed"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:h.size.width;let _=0;for(let t=0;t0)for(let t=0;ts?s:o,t--}}}const{row_heights:f,col_widths:d,size_hints:w}=this._measure_cells(((t,i)=>({width:h.col_widths[i],height:h.row_heights[t]})));return{size:this._measure_totals(f,d),row_heights:f,col_widths:d,size_hints:w}}_measure(t){const{size:i}=this._measure_grid(t);return i}_set_geometry(t,i){super._set_geometry(t,i);const{nrows:s,ncols:e,rspacing:o,cspacing:n}=this._state,{row_heights:r,col_widths:h,size_hints:c}=this._measure_grid(t),_=this._state.rows.map(((t,i)=>({...t,top:0,height:r[i],get bottom(){return this.top+this.height}}))),f=this._state.cols.map(((t,i)=>({...t,left:0,width:h[i],get right(){return this.left+this.width}}))),d=c.map(((t,i)=>({...i,outer:new l.BBox,inner:new l.BBox})));for(let i=0,e=this.absolute?t.top:this.position.top;i{const{layout:h,size_hint:c}=r,{sizing:a}=h,{width:g,height:d}=c,w=function(t,i){let s=(i-t)*n;for(let e=t;e<=i;e++)s+=f[e].width;return s}(i,e),m=function(t,i){let s=(i-t)*o;for(let e=t;e<=i;e++)s+=_[e].height;return s}(t,s),u=i==e&&"auto"!=f[i].align?f[i].align:a.halign,y=t==s&&"auto"!=_[t].align?_[t].align:a.valign;let x=f[i].left;"start"==u?x+=a.margin.left:"center"==u?x+=p((w-g)/2):"end"==u&&(x+=w-a.margin.right-g);let z=_[t].top;"start"==y?z+=a.margin.top:"center"==y?z+=p((m-d)/2):"end"==y&&(z+=m-a.margin.bottom-d),r.outer=new l.BBox({left:x,top:z,width:g,height:d})}));const w=_.map((()=>({start:new g((()=>0)),end:new g((()=>0))}))),m=f.map((()=>({start:new g((()=>0)),end:new g((()=>0))})));d.foreach((({r0:t,c0:i,r1:s,c1:e},{size_hint:o,outer:n})=>{const{inner:r}=o;null!=r&&(w[t].start.apply(n.top,(t=>a(t,r.top))),w[s].end.apply(_[s].bottom-n.bottom,(t=>a(t,r.bottom))),m[i].start.apply(n.left,(t=>a(t,r.left))),m[e].end.apply(f[e].right-n.right,(t=>a(t,r.right))))})),d.foreach((({r0:t,c0:i,r1:s,c1:e},o)=>{const{size_hint:n,outer:r}=o,h=t=>{const i=this.absolute?r:r.relative(),s=i.left+t.left,e=i.top+t.top,o=i.right-t.right,n=i.bottom-t.bottom;return new l.BBox({left:s,top:e,right:o,bottom:n})};if(null!=n.inner){let l=h(n.inner);const c=w[t].start.get(r.top),a=w[s].end.get(_[s].bottom-r.bottom),p=m[i].start.get(r.left),g=m[e].end.get(f[e].right-r.right);try{l=h({top:c,bottom:a,left:p,right:g})}catch{}o.inner=l}else o.inner=r})),d.foreach(((t,{layout:i,outer:s,inner:e})=>{i.set_geometry(s,e)}))}}s.Grid=f,f.__name__="Grid";class d extends f{constructor(t){super(),this.items=t.map(((t,i)=>({layout:t,row:0,col:i}))),this.rows="fit"}}s.Row=d,d.__name__="Row";class w extends f{constructor(t){super(),this.items=t.map(((t,i)=>({layout:t,row:i,col:0}))),this.cols="fit"}}s.Column=w,w.__name__="Column"}, function _(t,e,i,h,o){h();const n=t(174),s=t(175),r=t(64);class _ extends s.Layoutable{constructor(){super(...arguments),this.aligns={left:!0,right:!0,top:!0,bottom:!0},this.min_border={left:0,top:0,right:0,bottom:0},this.padding={left:0,top:0,right:0,bottom:0},this.center_border_width=0}*[Symbol.iterator](){yield this.top_panel,yield this.bottom_panel,yield this.left_panel,yield this.right_panel,yield this.center_panel}_measure(t){t=new n.Sizeable({width:"fixed"==this.sizing.width_policy||t.width==1/0?this.sizing.width:t.width,height:"fixed"==this.sizing.height_policy||t.height==1/0?this.sizing.height:t.height});const e=this.left_panel.measure({width:0,height:t.height}),i=Math.max(e.width,this.min_border.left)+this.padding.left,h=this.right_panel.measure({width:0,height:t.height}),o=Math.max(h.width,this.min_border.right)+this.padding.right,s=this.top_panel.measure({width:t.width,height:0}),r=Math.max(s.height,this.min_border.top)+this.padding.top,_=this.bottom_panel.measure({width:t.width,height:0}),g=Math.max(_.height,this.min_border.bottom)+this.padding.bottom,l=new n.Sizeable(t).shrink_by({left:i,right:o,top:r,bottom:g}),a=this.center_panel.measure(l);return{width:i+a.width+o,height:r+a.height+g,inner:{left:i,right:o,top:r,bottom:g},align:(()=>{const{width_policy:t,height_policy:e}=this.center_panel.sizing;return{...this.aligns,fixed_width:"fixed"==t,fixed_height:"fixed"==e}})()}}_set_geometry(t,e){if(super._set_geometry(t,e),this.sizing.visible){this.center_panel.set_geometry(e);const i=this.left_panel.measure({width:0,height:t.height}),h=this.right_panel.measure({width:0,height:t.height}),o=this.top_panel.measure({width:t.width,height:0}),n=this.bottom_panel.measure({width:t.width,height:0}),{left:s,top:_,right:g,bottom:l}=e;this.top_panel.set_geometry(new r.BBox({left:s,right:g,bottom:_,height:o.height})),this.bottom_panel.set_geometry(new r.BBox({left:s,right:g,top:l,height:n.height})),this.left_panel.set_geometry(new r.BBox({top:_,bottom:l,right:s,width:i.width})),this.right_panel.set_geometry(new r.BBox({top:_,bottom:l,left:g,width:h.width}));const a=e.shrink_by(this.center_border_width);if(null!=this.inner_top_panel){const{left:t,right:e,top:i,width:h}=a,o=this.inner_top_panel.measure({width:h,height:0});this.inner_top_panel.set_geometry(new r.BBox({left:t,right:e,top:i,height:o.height}))}if(null!=this.inner_bottom_panel){const{left:t,right:e,bottom:i,width:h}=a,o=this.inner_bottom_panel.measure({width:h,height:0});this.inner_bottom_panel.set_geometry(new r.BBox({left:t,right:e,bottom:i,height:o.height}))}if(null!=this.inner_left_panel){const{top:t,bottom:e,left:i,height:h}=a,o=this.inner_left_panel.measure({width:0,height:h});this.inner_left_panel.set_geometry(new r.BBox({top:t,bottom:e,left:i,width:o.width}))}if(null!=this.inner_right_panel){const{top:t,bottom:e,right:i,height:h}=a,o=this.inner_right_panel.measure({width:0,height:h});this.inner_right_panel.set_geometry(new r.BBox({top:t,bottom:e,right:i,width:o.width}))}}else this.center_panel.set_geometry(new r.BBox),this.top_panel.set_geometry(new r.BBox),this.bottom_panel.set_geometry(new r.BBox),this.left_panel.set_geometry(new r.BBox),this.right_panel.set_geometry(new r.BBox),this.inner_top_panel?.set_geometry(new r.BBox),this.inner_bottom_panel?.set_geometry(new r.BBox),this.inner_left_panel?.set_geometry(new r.BBox),this.inner_right_panel?.set_geometry(new r.BBox)}}i.BorderLayout=_,_.__name__="BorderLayout"}, -function _(e,s,_,i,l){var t;i();const o=e(1),r=e(261),p=o.__importStar(e(80));class h extends r.UpperLowerView{_paint_data(e){e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);for(let s=this._upper_sx.length-1;s>=0;s--)e.lineTo(this._upper_sx[s],this._upper_sy[s]);e.closePath(),this.visuals.fill.apply(e),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);this.visuals.line.apply(e),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let s=0,_=this._upper_sx.length;s<_;s++)e.lineTo(this._upper_sx[s],this._upper_sy[s]);this.visuals.line.apply(e)}}_.BandView=h,h.__name__="BandView";class n extends r.UpperLower{constructor(e){super(e)}}_.Band=n,t=n,n.__name__="Band",t.prototype.default_view=h,t.mixins([p.Line,p.Fill]),t.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}, +function _(e,s,_,i,l){var t;i();const o=e(1),r=e(262),p=o.__importStar(e(80));class h extends r.UpperLowerView{_paint_data(e){e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);for(let s=this._upper_sx.length-1;s>=0;s--)e.lineTo(this._upper_sx[s],this._upper_sy[s]);e.closePath(),this.visuals.fill.apply(e),e.beginPath(),e.moveTo(this._lower_sx[0],this._lower_sy[0]);for(let s=0,_=this._lower_sx.length;s<_;s++)e.lineTo(this._lower_sx[s],this._lower_sy[s]);this.visuals.line.apply(e),e.beginPath(),e.moveTo(this._upper_sx[0],this._upper_sy[0]);for(let s=0,_=this._upper_sx.length;s<_;s++)e.lineTo(this._upper_sx[s],this._upper_sy[s]);this.visuals.line.apply(e)}}_.BandView=h,h.__name__="BandView";class n extends r.UpperLower{constructor(e){super(e)}}_.Band=n,t=n,n.__name__="Band",t.prototype.default_view=h,t.mixins([p.Line,p.Fill]),t.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3})}, function _(e,t,s,r,i){var n;r();const a=e(1),o=e(127),_=e(24),c=e(20),p=a.__importStar(e(18));class h extends o.DataAnnotationView{map_data(){const{frame:e}=this.plot_view,t=this.model.dimension,s=this.coordinates.x_scale,r=this.coordinates.y_scale,i="height"==t?r:s,n="height"==t?s:r,a="height"==t?e.bbox.yview:e.bbox.xview,o="height"==t?e.bbox.xview:e.bbox.yview,c=(()=>{switch(this.model.properties.lower.units){case"canvas":return new _.ScreenArray(this._lower);case"screen":return a.v_compute(this._lower);case"data":return i.v_compute(this._lower)}})(),p=(()=>{switch(this.model.properties.upper.units){case"canvas":return new _.ScreenArray(this._upper);case"screen":return a.v_compute(this._upper);case"data":return i.v_compute(this._upper)}})(),h=(()=>{switch(this.model.properties.base.units){case"canvas":return new _.ScreenArray(this._base);case"screen":return o.v_compute(this._base);case"data":return n.v_compute(this._base)}})(),[u,d]="height"==t?[1,0]:[0,1],w=[c,h],l=[p,h];this._lower_sx=w[u],this._lower_sy=w[d],this._upper_sx=l[u],this._upper_sy=l[d]}}s.UpperLowerView=h,h.__name__="UpperLowerView";class u extends p.CoordinateSpec{constructor(){super(...arguments),this._value=p.unset}get dimension(){return"width"==this.obj.dimension?"x":"y"}get units(){return this._value===p.unset?"data":this._value.units??"data"}}s.XOrYCoordinateSpec=u,u.__name__="XOrYCoordinateSpec";class d extends o.DataAnnotation{constructor(e){super(e)}}s.UpperLower=d,n=d,d.__name__="UpperLower",n.define((()=>({dimension:[c.Dimension,"height"],lower:[u,{field:"lower"}],upper:[u,{field:"upper"}],base:[u,{field:"base"}]})))}, -function _(t,e,o,i,r){var n,s,l;i();const a=t(1),h=t(81),_=t(51),u=t(79),c=t(106),m=a.__importStar(t(80)),b=t(20),d=t(10),p=t(64),g=t(15),f=t(11),v=t(12),w=t(9),x=t(8),y=t(185),B=a.__importStar(t(263)),N=t(187),z=a.__importStar(t(186)),C=t(59),A=t(60);o.EDGE_TOLERANCE=2.5;const{abs:V}=Math;class E extends _.Model{constructor(t){super(t)}}o.BoxInteractionHandles=E,n=E,E.__name__="BoxInteractionHandles",n.define((({Ref:t,Nullable:e})=>({all:[t(u.AreaVisuals)],move:[e(t(u.AreaVisuals)),null],resize:[e(t(u.AreaVisuals)),null],sides:[e(t(u.AreaVisuals)),null],corners:[e(t(u.AreaVisuals)),null],left:[e(t(u.AreaVisuals)),null],right:[e(t(u.AreaVisuals)),null],top:[e(t(u.AreaVisuals)),null],bottom:[e(t(u.AreaVisuals)),null],top_left:[e(t(u.AreaVisuals)),null],top_right:[e(t(u.AreaVisuals)),null],bottom_left:[e(t(u.AreaVisuals)),null],bottom_right:[e(t(u.AreaVisuals)),null]})));const L=()=>new E({all:new u.AreaVisuals({fill_color:"white",fill_alpha:1,line_color:"black",line_alpha:1,hover_fill_color:"lightgray",hover_fill_alpha:1})});class F extends h.AnnotationView{constructor(){super(...arguments),this._bbox=new p.BBox,this._handles_views={},this[s]=!0,this._pan_state=null,this._pinch_state=null,this._is_hovered=!1}get bbox(){return this._bbox}initialize(){super.initialize(),this._update_handles()}_update_handles(){const{editable:t,use_handles:e,handles:o}=this.model;if(t&&e){const{movable:i,resizable:r}=this,n={visible:!0,resizable:"none",left_units:"canvas",right_units:"canvas",top_units:"canvas",bottom_units:"canvas",level:this.model.level};function s(t){return{...m.attrs_of(t,"",m.Line,!0),...m.attrs_of(t,"",m.Fill,!0),...m.attrs_of(t,"",m.Hatch,!0),...m.attrs_of(t,"hover_",m.Line,!0),...m.attrs_of(t,"hover_",m.Fill,!0),...m.attrs_of(t,"hover_",m.Hatch,!0)}}const l=o,a={area:s(l.move??l.all),left:s(l.left??l.sides??l.resize??l.all),right:s(l.right??l.sides??l.resize??l.all),top:s(l.top??l.sides??l.resize??l.all),bottom:s(l.bottom??l.sides??l.resize??l.all),top_left:s(l.top_left??l.corners??l.resize??l.all),top_right:s(l.top_right??l.corners??l.resize??l.all),bottom_left:s(l.bottom_left??l.corners??l.resize??l.all),bottom_right:s(l.bottom_right??l.corners??l.resize??l.all)},{tl_cursor:h,tr_cursor:_,bl_cursor:u,br_cursor:c,ew_cursor:b,ns_cursor:d}=this.model;this._handles={area:i?new R({...n,...a.area,movable:this.model.movable}):null,left:r.left?new R({...n,...a.left,in_cursor:b}):null,right:r.right?new R({...n,...a.right,in_cursor:b}):null,top:r.top?new R({...n,...a.top,in_cursor:d}):null,bottom:r.bottom?new R({...n,...a.bottom,in_cursor:d}):null,top_left:r.top_left?new R({...n,...a.top_left,in_cursor:h}):null,top_right:r.top_right?new R({...n,...a.top_right,in_cursor:_}):null,bottom_left:r.bottom_left?new R({...n,...a.bottom_left,in_cursor:u}):null,bottom_right:r.bottom_right?new R({...n,...a.bottom_right,in_cursor:c}):null}}else this._handles={area:null,left:null,right:null,top:null,bottom:null,top_left:null,top_right:null,bottom_left:null,bottom_right:null}}get computed_renderers(){return[...super.computed_renderers,...(0,w.values)(this._handles).filter(x.non_null)]}connect_signals(){super.connect_signals();const{editable:t,use_handles:e,handles:o,resizable:i,movable:r}=this.model.properties;this.on_change([t,e,o,i,r],(async()=>{this._update_handles(),await this._update_renderers()})),this.connect(this.model.change,(()=>this.request_paint()))}async _build_renderers(){const t=await super._build_renderers(),e=t=>null!=t?this._renderer_views.get(t):void 0;return this._handles_views={area:e(this._handles.area),left:e(this._handles.left),right:e(this._handles.right),top:e(this._handles.top),bottom:e(this._handles.bottom),top_left:e(this._handles.top_left),top_right:e(this._handles.top_right),bottom_left:e(this._handles.bottom_left),bottom_right:e(this._handles.bottom_right)},t}bounds(){const{left:t,left_units:e,right:o,right_units:i,top:r,top_units:n,bottom:s,bottom_units:l}=this.model,a="data"==e&&!(t instanceof A.Coordinate),h="data"==i&&!(o instanceof A.Coordinate),_="data"==n&&!(r instanceof A.Coordinate),u="data"==l&&!(s instanceof A.Coordinate),[c,m]=a&&h?t<=o?[t,o]:[o,t]:a?[t,t]:h?[o,o]:[NaN,NaN],[b,d]=_&&u?r<=s?[r,s]:[s,r]:_?[r,r]:u?[s,s]:[NaN,NaN];return{x0:c,x1:m,y0:b,y1:d}}log_bounds(){return(0,p.empty)()}get mappers(){function t(t,e,o,i){switch(t){case"canvas":return i;case"screen":return o;case"data":return e}}const e=this.model,{x_scale:o,y_scale:i}=this.coordinates,{x_view:r,y_view:n}=this.plot_view.frame.bbox,{x_screen:s,y_screen:l}=this.plot_view.canvas.bbox;return{left:t(e.left_units,o,r,s),right:t(e.right_units,o,r,s),top:t(e.top_units,i,n,l),bottom:t(e.bottom_units,i,n,l)}}get border_radius(){return z.border_radius(this.model.border_radius)}compute_geometry(){super.compute_geometry();const t=(()=>{const t=(t,e,o)=>e instanceof A.Coordinate?this.resolve_as_scalar(e,t):o.compute(e),{left:e,right:o,top:i,bottom:r}=this.model,{mappers:n}=this;return p.BBox.from_lrtb({left:t("x",e,n.left),right:t("x",o,n.right),top:t("y",i,n.top),bottom:t("y",r,n.bottom)})})();this._bbox=t;const e=10,o=10;function i(t,e){const{left:o,right:i,top:r,bottom:n}=e;t?.setv({left:o,right:i,top:r,bottom:n},{silent:!0})}i(this._handles.area,new p.BBox({...t.center,width:e,height:o,origin:"center"})),i(this._handles.left,new p.BBox({...t.center_left,width:e,height:o,origin:"center"})),i(this._handles.right,new p.BBox({...t.center_right,width:e,height:o,origin:"center"})),i(this._handles.top,new p.BBox({...t.top_center,width:e,height:o,origin:"center"})),i(this._handles.bottom,new p.BBox({...t.bottom_center,width:e,height:o,origin:"center"})),i(this._handles.top_left,new p.BBox({...t.top_left,width:e,height:o,origin:"center"})),i(this._handles.top_right,new p.BBox({...t.top_right,width:e,height:o,origin:"center"})),i(this._handles.bottom_left,new p.BBox({...t.bottom_left,width:e,height:o,origin:"center"})),i(this._handles.bottom_right,new p.BBox({...t.bottom_right,width:e,height:o,origin:"center"}))}_paint(){if(!this.bbox.is_valid)return;const{_is_hovered:t,visuals:e}=this,o=t&&e.hover_fill.doit?e.hover_fill:e.fill,i=t&&e.hover_hatch.doit?e.hover_hatch:e.hatch,r=t&&e.hover_line.doit?e.hover_line:e.line,{ctx:n}=this.layer;n.save();const{inverted:s}=this.model;if(s){n.beginPath();const t=this.layout??this.plot_view.frame,{x:e,y:s,width:l,height:a}=t.bbox;n.rect(e,s,l,a),(0,N.round_rect)(n,this.bbox,this.border_radius),o.apply(n,"evenodd"),i.apply(n,"evenodd"),n.beginPath(),(0,N.round_rect)(n,this.bbox,this.border_radius),r.apply(n)}else n.beginPath(),(0,N.round_rect)(n,this.bbox,this.border_radius),o.apply(n),i.apply(n),r.apply(n);n.restore()}interactive_bbox(){const t=this.model.line_width+o.EDGE_TOLERANCE;return this.bbox.grow_by(t)}interactive_hit(t,e){if(!this.model.visible)return!1;return this.interactive_bbox().contains(t,e)}_hit_test(t,e){const{left:i,right:r,bottom:n,top:s}=this.bbox,l=Math.max(o.EDGE_TOLERANCE,this.model.line_width/2),a=V(i-t),h=V(r-t),_=V(s-e),u=V(n-e),c={left:a{if(!m[o])return!1;const r=this._handles_views[o];return null!=r?r.bbox.contains(t,e):i};return b("top_left",c.top&&c.left)?"top_left":b("top_right",c.top&&c.right)?"top_right":b("bottom_left",c.bottom&&c.left)?"bottom_left":b("bottom_right",c.bottom&&c.right)?"bottom_right":b("left",c.left)?"left":b("right",c.right)?"right":b("top",c.top)?"top":b("bottom",c.bottom)?"bottom":b("area",this.bbox.contains(t,e))?"area":null}get resizable(){const{resizable:t}=this.model,e="left"==t||"x"==t||"all"==t,o="right"==t||"x"==t||"all"==t,i="top"==t||"y"==t||"all"==t,r="bottom"==t||"y"==t||"all"==t;return{left:e,right:o,top:i,bottom:r,top_left:i&&e,top_right:i&&o,bottom_left:r&&e,bottom_right:r&&o}}get movable(){return"none"!=this.model.movable}_hittable(){const{left:t,right:e,top:o,bottom:i}=this.resizable;return{top_left:o&&t,top_right:o&&e,bottom_left:i&&t,bottom_right:i&&e,left:t,right:e,top:o,bottom:i,area:this.movable}}_can_hit(t){const{left:e,right:o,top:i,bottom:r}=this.resizable;switch(t){case"top_left":return i&&e;case"top_right":return i&&o;case"bottom_left":return r&&e;case"bottom_right":return r&&o;case"left":return e;case"right":return o;case"top":return i;case"bottom":return r;case"area":return this.movable}}on_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:o}=t,i=this._hit_test(e,o);if(null!=i&&this._can_hit(i))return this._pan_state={bbox:this.bbox.clone(),target:i},this.model.pan.emit(["pan:start",t.modifiers]),!0}return!1}on_pan(t){(0,v.assert)(null!=this._pan_state);const{mappers:e}=this,o=(t,e,o)=>e instanceof A.Coordinate?this.resolve_as_scalar(e,t):null==e?NaN:o.compute(e),i=p.BBox.from_lrtb({left:o("x",this.model.left_limit,e.left),right:o("x",this.model.right_limit,e.right),top:o("y",this.model.top_limit,e.top),bottom:o("y",this.model.bottom_limit,e.bottom)}),[r,n,s,l]=(()=>{const{dx:e,dy:o}=t,{target:i}=this._pan_state,{symmetric:r}=this.model,[n,s]=r?[-e,-o]:[0,0];switch(i){case"top_left":return[e,n,o,s];case"top_right":return[n,e,o,s];case"bottom_left":return[e,n,s,o];case"bottom_right":return[n,e,s,o];case"left":return[e,n,0,0];case"right":return[n,e,0,0];case"top":return[0,0,o,s];case"bottom":return[0,0,s,o];case"area":switch(this.model.movable){case"both":return[e,e,o,o];case"x":return[e,e,0,0];case"y":return[0,0,o,o];case"none":return[0,0,0,0]}}})(),a=(()=>{const t=(t,e)=>(0,d.min)([t,e]),e=t=>t<0?-1:t>0?1:0,{bbox:o}=this._pan_state;let{left:a,right:h,left_sign:_,right_sign:u}=(()=>{const t=o.left+r,i=o.right+n,s=e(r),l=e(n);return t<=i?{left:t,right:i,left_sign:s,right_sign:l}:{left:i,right:t,left_sign:l,right_sign:s}})(),{top:c,bottom:m,top_sign:b,bottom_sign:g}=(()=>{const t=o.top+s,i=o.bottom+l,r=e(s),n=e(l);return t<=i?{top:t,bottom:i,top_sign:r,bottom_sign:n}:{top:i,bottom:t,top_sign:n,bottom_sign:r}})();const f=a-i.left,v=i.right-h,w=t(f<0?f:NaN,v<0?v:NaN);isFinite(w)&&w<0&&(a+=-_*-w,h+=-u*-w);const x=c-i.top,y=i.bottom-m,B=t(x<0?x:NaN,y<0?y:NaN);return isFinite(B)&&B<0&&(c+=-b*-B,m+=-g*-B),p.BBox.from_lrtb({left:a,right:h,top:c,bottom:m})})(),{min_width:h,min_height:_,max_width:u,max_height:c}=this.model,{left:m,right:b,top:g,bottom:w}=this.model,x={left:e.left.invert(a.left),right:e.right.invert(a.right),top:e.top.invert(a.top),bottom:e.bottom.invert(a.bottom)};if(0{const{scale:e}=t,{bbox:o}=this._pinch_state,{left:i,top:r,right:n,bottom:s,width:l,height:a}=o,h=l*(e-1),_=a*(e-1),{resizable:u}=this,c=u.left?-h/2:0,m=u.right?h/2:0,b=u.top?-_/2:0,d=u.bottom?_/2:0;return p.BBox.from_lrtb({left:i+c,right:n+m,top:r+b,bottom:s+d})})(),o=(()=>{const{left:t,right:o,top:i,bottom:r}=this.model,{mappers:n}=this;return{left:t instanceof A.Coordinate?t:n.left.invert(e.left),right:o instanceof A.Coordinate?o:n.right.invert(e.right),top:i instanceof A.Coordinate?i:n.top.invert(e.top),bottom:r instanceof A.Coordinate?r:n.bottom.invert(e.bottom)}})();this.model.update(o),this.model.pan.emit(["pan",t.modifiers])}on_pinch_end(t){this._pinch_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:o}=this.visuals;return t.doit||e.doit||o.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const o=this._pan_state?.target??this._hit_test(t,e);if(null==o||!this._can_hit(o))return null;const{tl_cursor:i,tr_cursor:r,bl_cursor:n,br_cursor:s,ew_cursor:l,ns_cursor:a,in_cursor:h}=this.model;switch(o){case"top_left":return null==this._handles.top_left?i:null;case"top_right":return null==this._handles.top_right?r:null;case"bottom_left":return null==this._handles.bottom_left?n:null;case"bottom_right":return null==this._handles.bottom_right?s:null;case"left":return null==this._handles.left?l:null;case"right":return null==this._handles.right?l:null;case"top":return null==this._handles.top?a:null;case"bottom":return null==this._handles.bottom?a:null;case"area":if(null!=this._handles.area)return null;switch(this.model.movable){case"both":return h;case"x":return l;case"y":return a;case"none":return null}}}}o.BoxAnnotationView=F,s=c.auto_ranged,F.__name__="BoxAnnotationView";class R extends h.Annotation{constructor(t){super(t),this.pan=new g.Signal(this,"pan"),this.nodes=(()=>{const t=new Map,e=e=>{let o=t.get(e);return void 0===o&&t.set(e,o=new C.Node({target:this,symbol:e})),o};return{get left(){return e("left")},get right(){return e("right")},get top(){return e("top")},get bottom(){return e("bottom")},get top_left(){return e("top_left")},get top_center(){return e("top_center")},get top_right(){return e("top_right")},get center_left(){return e("center_left")},get center(){return e("center")},get center_right(){return e("center_right")},get bottom_left(){return e("bottom_left")},get bottom_center(){return e("bottom_center")},get bottom_right(){return e("bottom_right")},get width(){return e("width")},get height(){return e("height")}}})()}clone(t){return super.clone(t)}update({left:t,right:e,top:o,bottom:i}){this.setv({left:t,right:e,top:o,bottom:i,visible:!0})}clear(){this.visible=!1}}o.BoxAnnotation=R,l=R,R.__name__="BoxAnnotation",l.prototype.default_view=F,l.mixins([m.Line,m.Fill,m.Hatch,["hover_",m.Line],["hover_",m.Fill],["hover_",m.Hatch]]),l.define((({Bool:t,Float:e,Ref:o,Or:i,NonNegative:r,Positive:n})=>({top:[i(e,o(A.Coordinate)),()=>new C.Node({target:"frame",symbol:"top"})],bottom:[i(e,o(A.Coordinate)),()=>new C.Node({target:"frame",symbol:"bottom"})],left:[i(e,o(A.Coordinate)),()=>new C.Node({target:"frame",symbol:"left"})],right:[i(e,o(A.Coordinate)),()=>new C.Node({target:"frame",symbol:"right"})],top_units:[b.CoordinateUnits,"data"],bottom_units:[b.CoordinateUnits,"data"],left_units:[b.CoordinateUnits,"data"],right_units:[b.CoordinateUnits,"data"],top_limit:[B.Limit,null],bottom_limit:[B.Limit,null],left_limit:[B.Limit,null],right_limit:[B.Limit,null],min_width:[r(e),0],min_height:[r(e),0],max_width:[n(e),1/0],max_height:[n(e),1/0],border_radius:[y.BorderRadius,0],editable:[t,!1],resizable:[B.Resizable,"all"],movable:[B.Movable,"both"],symmetric:[t,!1],use_handles:[t,!1],handles:[o(E),L],inverted:[t,!1]}))),l.internal((({Str:t})=>({tl_cursor:[t,"nwse-resize"],tr_cursor:[t,"nesw-resize"],bl_cursor:[t,"nesw-resize"],br_cursor:[t,"nwse-resize"],ew_cursor:[t,"ew-resize"],ns_cursor:[t,"ns-resize"],in_cursor:[t,"move"]}))),l.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})}, +function _(t,e,o,i,r){var n,s,l;i();const a=t(1),h=t(81),_=t(51),u=t(79),c=t(106),m=a.__importStar(t(80)),b=t(20),d=t(10),p=t(64),g=t(15),f=t(11),v=t(12),w=t(9),x=t(185),y=a.__importStar(t(264)),B=t(187),N=a.__importStar(t(186)),z=t(59),C=t(60);o.EDGE_TOLERANCE=2.5;const{abs:A}=Math;class V extends _.Model{constructor(t){super(t)}}o.BoxInteractionHandles=V,n=V,V.__name__="BoxInteractionHandles",n.define((({Ref:t,Nullable:e})=>({all:[t(u.AreaVisuals)],move:[e(t(u.AreaVisuals)),null],resize:[e(t(u.AreaVisuals)),null],sides:[e(t(u.AreaVisuals)),null],corners:[e(t(u.AreaVisuals)),null],left:[e(t(u.AreaVisuals)),null],right:[e(t(u.AreaVisuals)),null],top:[e(t(u.AreaVisuals)),null],bottom:[e(t(u.AreaVisuals)),null],top_left:[e(t(u.AreaVisuals)),null],top_right:[e(t(u.AreaVisuals)),null],bottom_left:[e(t(u.AreaVisuals)),null],bottom_right:[e(t(u.AreaVisuals)),null]})));const E=()=>new V({all:new u.AreaVisuals({fill_color:"white",fill_alpha:1,line_color:"black",line_alpha:1,hover_fill_color:"lightgray",hover_fill_alpha:1})});class L extends h.AnnotationView{constructor(){super(...arguments),this._bbox=new p.BBox,this._handles_views={},this[s]=!0,this._pan_state=null,this._pinch_state=null,this._is_hovered=!1}get bbox(){return this._bbox}initialize(){super.initialize(),this._update_handles()}_update_handles(){const{editable:t,use_handles:e,handles:o}=this.model;if(t&&e){const{movable:i,resizable:r}=this,n={visible:!0,resizable:"none",left_units:"canvas",right_units:"canvas",top_units:"canvas",bottom_units:"canvas",level:this.model.level};function s(t){return{...m.attrs_of(t,"",m.Line,!0),...m.attrs_of(t,"",m.Fill,!0),...m.attrs_of(t,"",m.Hatch,!0),...m.attrs_of(t,"hover_",m.Line,!0),...m.attrs_of(t,"hover_",m.Fill,!0),...m.attrs_of(t,"hover_",m.Hatch,!0)}}const l=o,a={area:s(l.move??l.all),left:s(l.left??l.sides??l.resize??l.all),right:s(l.right??l.sides??l.resize??l.all),top:s(l.top??l.sides??l.resize??l.all),bottom:s(l.bottom??l.sides??l.resize??l.all),top_left:s(l.top_left??l.corners??l.resize??l.all),top_right:s(l.top_right??l.corners??l.resize??l.all),bottom_left:s(l.bottom_left??l.corners??l.resize??l.all),bottom_right:s(l.bottom_right??l.corners??l.resize??l.all)},{tl_cursor:h,tr_cursor:_,bl_cursor:u,br_cursor:c,ew_cursor:b,ns_cursor:d}=this.model;this._handles={area:i?new F({...n,...a.area,movable:this.model.movable}):null,left:r.left?new F({...n,...a.left,in_cursor:b}):null,right:r.right?new F({...n,...a.right,in_cursor:b}):null,top:r.top?new F({...n,...a.top,in_cursor:d}):null,bottom:r.bottom?new F({...n,...a.bottom,in_cursor:d}):null,top_left:r.top_left?new F({...n,...a.top_left,in_cursor:h}):null,top_right:r.top_right?new F({...n,...a.top_right,in_cursor:_}):null,bottom_left:r.bottom_left?new F({...n,...a.bottom_left,in_cursor:u}):null,bottom_right:r.bottom_right?new F({...n,...a.bottom_right,in_cursor:c}):null}}else this._handles={area:null,left:null,right:null,top:null,bottom:null,top_left:null,top_right:null,bottom_left:null,bottom_right:null}}get computed_renderers(){return[...super.computed_renderers,...(0,w.values)(this._handles).filter((t=>null!=t))]}connect_signals(){super.connect_signals();const{editable:t,use_handles:e,handles:o,resizable:i,movable:r}=this.model.properties;this.on_change([t,e,o,i,r],(async()=>{this._update_handles(),await this._update_renderers()})),this.connect(this.model.change,(()=>this.request_paint()))}async _build_renderers(){const t=await super._build_renderers(),e=t=>null!=t?this._renderer_views.get(t):void 0;return this._handles_views={area:e(this._handles.area),left:e(this._handles.left),right:e(this._handles.right),top:e(this._handles.top),bottom:e(this._handles.bottom),top_left:e(this._handles.top_left),top_right:e(this._handles.top_right),bottom_left:e(this._handles.bottom_left),bottom_right:e(this._handles.bottom_right)},t}bounds(){const{left:t,left_units:e,right:o,right_units:i,top:r,top_units:n,bottom:s,bottom_units:l}=this.model,a="data"==e&&!(t instanceof C.Coordinate),h="data"==i&&!(o instanceof C.Coordinate),_="data"==n&&!(r instanceof C.Coordinate),u="data"==l&&!(s instanceof C.Coordinate),[c,m]=a&&h?t<=o?[t,o]:[o,t]:a?[t,t]:h?[o,o]:[NaN,NaN],[b,d]=_&&u?r<=s?[r,s]:[s,r]:_?[r,r]:u?[s,s]:[NaN,NaN];return{x0:c,x1:m,y0:b,y1:d}}log_bounds(){return(0,p.empty)()}get mappers(){function t(t,e,o,i){switch(t){case"canvas":return i;case"screen":return o;case"data":return e}}const e=this.model,{x_scale:o,y_scale:i}=this.coordinates,{x_view:r,y_view:n}=this.plot_view.frame.bbox,{x_screen:s,y_screen:l}=this.plot_view.canvas.bbox;return{left:t(e.left_units,o,r,s),right:t(e.right_units,o,r,s),top:t(e.top_units,i,n,l),bottom:t(e.bottom_units,i,n,l)}}get border_radius(){return N.border_radius(this.model.border_radius)}compute_geometry(){super.compute_geometry();const t=(()=>{const t=(t,e,o)=>e instanceof C.Coordinate?this.resolve_as_scalar(e,t):o.compute(e),{left:e,right:o,top:i,bottom:r}=this.model,{mappers:n}=this;return p.BBox.from_lrtb({left:t("x",e,n.left),right:t("x",o,n.right),top:t("y",i,n.top),bottom:t("y",r,n.bottom)})})();this._bbox=t;const e=10,o=10;function i(t,e){const{left:o,right:i,top:r,bottom:n}=e;t?.setv({left:o,right:i,top:r,bottom:n},{silent:!0})}i(this._handles.area,new p.BBox({...t.center,width:e,height:o,origin:"center"})),i(this._handles.left,new p.BBox({...t.center_left,width:e,height:o,origin:"center"})),i(this._handles.right,new p.BBox({...t.center_right,width:e,height:o,origin:"center"})),i(this._handles.top,new p.BBox({...t.top_center,width:e,height:o,origin:"center"})),i(this._handles.bottom,new p.BBox({...t.bottom_center,width:e,height:o,origin:"center"})),i(this._handles.top_left,new p.BBox({...t.top_left,width:e,height:o,origin:"center"})),i(this._handles.top_right,new p.BBox({...t.top_right,width:e,height:o,origin:"center"})),i(this._handles.bottom_left,new p.BBox({...t.bottom_left,width:e,height:o,origin:"center"})),i(this._handles.bottom_right,new p.BBox({...t.bottom_right,width:e,height:o,origin:"center"}))}_paint(){if(!this.bbox.is_valid)return;const{_is_hovered:t,visuals:e}=this,o=t&&e.hover_fill.doit?e.hover_fill:e.fill,i=t&&e.hover_hatch.doit?e.hover_hatch:e.hatch,r=t&&e.hover_line.doit?e.hover_line:e.line,{ctx:n}=this.layer;n.save();const{inverted:s}=this.model;if(s){n.beginPath();const t=this.layout??this.plot_view.frame,{x:e,y:s,width:l,height:a}=t.bbox;n.rect(e,s,l,a),(0,B.round_rect)(n,this.bbox,this.border_radius),o.apply(n,"evenodd"),i.apply(n,"evenodd"),n.beginPath(),(0,B.round_rect)(n,this.bbox,this.border_radius),r.apply(n)}else n.beginPath(),(0,B.round_rect)(n,this.bbox,this.border_radius),o.apply(n),i.apply(n),r.apply(n);n.restore()}interactive_bbox(){const t=this.model.line_width+o.EDGE_TOLERANCE;return this.bbox.grow_by(t)}interactive_hit(t,e){if(!this.model.visible)return!1;return this.interactive_bbox().contains(t,e)}_hit_test(t,e){const{left:i,right:r,bottom:n,top:s}=this.bbox,l=Math.max(o.EDGE_TOLERANCE,this.model.line_width/2),a=A(i-t),h=A(r-t),_=A(s-e),u=A(n-e),c={left:a{if(!m[o])return!1;const r=this._handles_views[o];return null!=r?r.bbox.contains(t,e):i};return b("top_left",c.top&&c.left)?"top_left":b("top_right",c.top&&c.right)?"top_right":b("bottom_left",c.bottom&&c.left)?"bottom_left":b("bottom_right",c.bottom&&c.right)?"bottom_right":b("left",c.left)?"left":b("right",c.right)?"right":b("top",c.top)?"top":b("bottom",c.bottom)?"bottom":b("area",this.bbox.contains(t,e))?"area":null}get resizable(){const{resizable:t}=this.model,e="left"==t||"x"==t||"all"==t,o="right"==t||"x"==t||"all"==t,i="top"==t||"y"==t||"all"==t,r="bottom"==t||"y"==t||"all"==t;return{left:e,right:o,top:i,bottom:r,top_left:i&&e,top_right:i&&o,bottom_left:r&&e,bottom_right:r&&o}}get movable(){return"none"!=this.model.movable}_hittable(){const{left:t,right:e,top:o,bottom:i}=this.resizable;return{top_left:o&&t,top_right:o&&e,bottom_left:i&&t,bottom_right:i&&e,left:t,right:e,top:o,bottom:i,area:this.movable}}_can_hit(t){const{left:e,right:o,top:i,bottom:r}=this.resizable;switch(t){case"top_left":return i&&e;case"top_right":return i&&o;case"bottom_left":return r&&e;case"bottom_right":return r&&o;case"left":return e;case"right":return o;case"top":return i;case"bottom":return r;case"area":return this.movable}}on_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:o}=t,i=this._hit_test(e,o);if(null!=i&&this._can_hit(i))return this._pan_state={bbox:this.bbox.clone(),target:i},this.model.pan.emit(["pan:start",t.modifiers]),!0}return!1}on_pan(t){(0,v.assert)(null!=this._pan_state);const{mappers:e}=this,o=(t,e,o)=>e instanceof C.Coordinate?this.resolve_as_scalar(e,t):null==e?NaN:o.compute(e),i=p.BBox.from_lrtb({left:o("x",this.model.left_limit,e.left),right:o("x",this.model.right_limit,e.right),top:o("y",this.model.top_limit,e.top),bottom:o("y",this.model.bottom_limit,e.bottom)}),[r,n,s,l]=(()=>{const{dx:e,dy:o}=t,{target:i}=this._pan_state,{symmetric:r}=this.model,[n,s]=r?[-e,-o]:[0,0];switch(i){case"top_left":return[e,n,o,s];case"top_right":return[n,e,o,s];case"bottom_left":return[e,n,s,o];case"bottom_right":return[n,e,s,o];case"left":return[e,n,0,0];case"right":return[n,e,0,0];case"top":return[0,0,o,s];case"bottom":return[0,0,s,o];case"area":switch(this.model.movable){case"both":return[e,e,o,o];case"x":return[e,e,0,0];case"y":return[0,0,o,o];case"none":return[0,0,0,0]}}})(),a=(()=>{const t=(t,e)=>(0,d.min)([t,e]),e=t=>t<0?-1:t>0?1:0,{bbox:o}=this._pan_state;let{left:a,right:h,left_sign:_,right_sign:u}=(()=>{const t=o.left+r,i=o.right+n,s=e(r),l=e(n);return t<=i?{left:t,right:i,left_sign:s,right_sign:l}:{left:i,right:t,left_sign:l,right_sign:s}})(),{top:c,bottom:m,top_sign:b,bottom_sign:g}=(()=>{const t=o.top+s,i=o.bottom+l,r=e(s),n=e(l);return t<=i?{top:t,bottom:i,top_sign:r,bottom_sign:n}:{top:i,bottom:t,top_sign:n,bottom_sign:r}})();const f=a-i.left,v=i.right-h,w=t(f<0?f:NaN,v<0?v:NaN);isFinite(w)&&w<0&&(a+=-_*-w,h+=-u*-w);const x=c-i.top,y=i.bottom-m,B=t(x<0?x:NaN,y<0?y:NaN);return isFinite(B)&&B<0&&(c+=-b*-B,m+=-g*-B),p.BBox.from_lrtb({left:a,right:h,top:c,bottom:m})})(),{min_width:h,min_height:_,max_width:u,max_height:c}=this.model,{left:m,right:b,top:g,bottom:w}=this.model,x={left:e.left.invert(a.left),right:e.right.invert(a.right),top:e.top.invert(a.top),bottom:e.bottom.invert(a.bottom)};if(0{const{scale:e}=t,{bbox:o}=this._pinch_state,{left:i,top:r,right:n,bottom:s,width:l,height:a}=o,h=l*(e-1),_=a*(e-1),{resizable:u}=this,c=u.left?-h/2:0,m=u.right?h/2:0,b=u.top?-_/2:0,d=u.bottom?_/2:0;return p.BBox.from_lrtb({left:i+c,right:n+m,top:r+b,bottom:s+d})})(),o=(()=>{const{left:t,right:o,top:i,bottom:r}=this.model,{mappers:n}=this;return{left:t instanceof C.Coordinate?t:n.left.invert(e.left),right:o instanceof C.Coordinate?o:n.right.invert(e.right),top:i instanceof C.Coordinate?i:n.top.invert(e.top),bottom:r instanceof C.Coordinate?r:n.bottom.invert(e.bottom)}})();this.model.update(o),this.model.pan.emit(["pan",t.modifiers])}on_pinch_end(t){this._pinch_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:o}=this.visuals;return t.doit||e.doit||o.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const o=this._pan_state?.target??this._hit_test(t,e);if(null==o||!this._can_hit(o))return null;const{tl_cursor:i,tr_cursor:r,bl_cursor:n,br_cursor:s,ew_cursor:l,ns_cursor:a,in_cursor:h}=this.model;switch(o){case"top_left":return null==this._handles.top_left?i:null;case"top_right":return null==this._handles.top_right?r:null;case"bottom_left":return null==this._handles.bottom_left?n:null;case"bottom_right":return null==this._handles.bottom_right?s:null;case"left":return null==this._handles.left?l:null;case"right":return null==this._handles.right?l:null;case"top":return null==this._handles.top?a:null;case"bottom":return null==this._handles.bottom?a:null;case"area":if(null!=this._handles.area)return null;switch(this.model.movable){case"both":return h;case"x":return l;case"y":return a;case"none":return null}}}}o.BoxAnnotationView=L,s=c.auto_ranged,L.__name__="BoxAnnotationView";class F extends h.Annotation{constructor(t){super(t),this.pan=new g.Signal(this,"pan"),this.nodes=(()=>{const t=new Map,e=e=>{let o=t.get(e);return void 0===o&&t.set(e,o=new z.Node({target:this,symbol:e})),o};return{get left(){return e("left")},get right(){return e("right")},get top(){return e("top")},get bottom(){return e("bottom")},get top_left(){return e("top_left")},get top_center(){return e("top_center")},get top_right(){return e("top_right")},get center_left(){return e("center_left")},get center(){return e("center")},get center_right(){return e("center_right")},get bottom_left(){return e("bottom_left")},get bottom_center(){return e("bottom_center")},get bottom_right(){return e("bottom_right")},get width(){return e("width")},get height(){return e("height")}}})()}clone(t){return super.clone(t)}update({left:t,right:e,top:o,bottom:i}){this.setv({left:t,right:e,top:o,bottom:i,visible:!0})}clear(){this.visible=!1}}o.BoxAnnotation=F,l=F,F.__name__="BoxAnnotation",l.prototype.default_view=L,l.mixins([m.Line,m.Fill,m.Hatch,["hover_",m.Line],["hover_",m.Fill],["hover_",m.Hatch]]),l.define((({Bool:t,Float:e,Ref:o,Or:i,NonNegative:r,Positive:n})=>({top:[i(e,o(C.Coordinate)),()=>new z.Node({target:"frame",symbol:"top"})],bottom:[i(e,o(C.Coordinate)),()=>new z.Node({target:"frame",symbol:"bottom"})],left:[i(e,o(C.Coordinate)),()=>new z.Node({target:"frame",symbol:"left"})],right:[i(e,o(C.Coordinate)),()=>new z.Node({target:"frame",symbol:"right"})],top_units:[b.CoordinateUnits,"data"],bottom_units:[b.CoordinateUnits,"data"],left_units:[b.CoordinateUnits,"data"],right_units:[b.CoordinateUnits,"data"],top_limit:[y.Limit,null],bottom_limit:[y.Limit,null],left_limit:[y.Limit,null],right_limit:[y.Limit,null],min_width:[r(e),0],min_height:[r(e),0],max_width:[n(e),1/0],max_height:[n(e),1/0],border_radius:[x.BorderRadius,0],editable:[t,!1],resizable:[y.Resizable,"all"],movable:[y.Movable,"both"],symmetric:[t,!1],use_handles:[t,!1],handles:[o(V),E],inverted:[t,!1]}))),l.internal((({Str:t})=>({tl_cursor:[t,"nwse-resize"],tr_cursor:[t,"nesw-resize"],bl_cursor:[t,"nesw-resize"],br_cursor:[t,"nwse-resize"],ew_cursor:[t,"ew-resize"],ns_cursor:[t,"ns-resize"],in_cursor:[t,"move"]}))),l.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})}, function _(t,o,e,n,l){n();const r=t(21),m=t(59);e.Corner=(0,r.Enum)("top_left","top_right","bottom_left","bottom_right"),e.Edge=(0,r.Enum)("left","right","top","bottom"),e.HitTarget=(0,r.Enum)(...e.Corner,...e.Edge,"area"),e.Resizable=(0,r.Enum)("none","left","right","top","bottom","x","y","all"),e.Movable=(0,r.Enum)("none","x","y","both"),e.Limit=(0,r.Nullable)((0,r.Or)(r.Float,(0,r.Ref)(m.Node)))}, -function _(e,i,n,t,a){var o;t();const l=e(170),r=e(265),s=e(241),_=e(215),c=e(270),h=e(255),p=e(253),g=e(200),m=e(10),d=e(12);class u extends l.BaseColorBarView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.color_mapper.change,(async()=>{this._title_view.remove(),this._axis_view.remove(),this.initialize(),await this.lazy_initialize(),this.plot_view.invalidate_layout()})),this.connect(this.model.color_mapper.metrics_change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_low.change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_high.change,(()=>this._metrics_changed()))}get color_mapper(){let e=this.model.color_mapper;return e instanceof c.WeightedStackColorMapper&&(e=e.alpha_mapper),e}update_layout(){super.update_layout(),this._set_canvas_image()}_create_axis(){const{color_mapper:e}=this;return e instanceof c.CategoricalColorMapper?new r.CategoricalAxis:e instanceof c.LogColorMapper?new r.LogAxis:new r.LinearAxis}_create_formatter(){const{color_mapper:e}=this;return this._ticker instanceof g.LogTicker?new s.LogTickFormatter:e instanceof c.CategoricalColorMapper?new s.CategoricalTickFormatter:new s.BasicTickFormatter}_create_major_range(){const{color_mapper:e}=this;if(e instanceof c.CategoricalColorMapper)return new h.FactorRange({factors:e.factors});if(e instanceof c.ContinuousColorMapper){const{min:i,max:n}=this._continuous_metrics(e);return new h.Range1d({start:i,end:n})}(0,d.unreachable)()}_create_major_scale(){const{color_mapper:e}=this;return e instanceof c.LinearColorMapper?new p.LinearScale:e instanceof c.LogColorMapper?new p.LogScale:e instanceof c.ScanningColorMapper?new p.LinearInterpolationScale({binning:this._scanning_binning(e)}):e instanceof c.CategoricalColorMapper?new p.CategoricalScale:void(0,d.unreachable)()}_create_ticker(){const{color_mapper:e}=this;return e instanceof c.LogColorMapper?new g.LogTicker:e instanceof c.ScanningColorMapper?new g.BinnedTicker({mapper:e}):e instanceof c.CategoricalColorMapper?new g.CategoricalTicker:new g.BasicTicker}_continuous_metrics(e){const{display_low:i,display_high:n}=this.model;let{min:t,max:a}=e.metrics;if(null!=n&&null!=i&&n0&&(this._index_low=n,t=e.index_to_value(n))}return{min:t,max:a}}_get_major_size_factor(){return this.color_mapper.palette.length}_metrics_changed(){const e=this._major_range,i=this._major_scale,{color_mapper:n}=this;if(n instanceof c.ScanningColorMapper&&i instanceof p.LinearInterpolationScale){const e=this._scanning_binning(n);i.binning=e;const t="vertical"==this.orientation,a=t?this._frame_view.y_scale:this._frame_view.x_scale;if(a instanceof p.LinearInterpolationScale){a.binning=e;const i=t?this._frame_view.y_range:this._frame_view.x_range;i instanceof h.Range1d&&(i.start=e[0],i.end=e[e.length-1])}}else if(n instanceof c.ContinuousColorMapper&&e instanceof h.Range1d){const{min:i,max:t}=this._continuous_metrics(n);e.setv({start:i,end:t})}this._set_canvas_image(),this.plot_view.request_layout()}_paint_colors(e,i){const{x:n,y:t,width:a,height:o}=i;e.save(),e.globalAlpha=this.model.scale_alpha,null!=this._image&&(e.imageSmoothingEnabled=!1,e.drawImage(this._image,n,t,a,o)),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(e),e.strokeRect(n,t,a,o)),e.restore()}_scanning_binning(e){let{binning:i,force_low_cutoff:n}=e.metrics;const{display_high:t}=this.model;let{display_low:a}=this.model;if(n&&(null==a||e.metrics.min>a)&&(a=e.metrics.min),null!=t&&null!=a&&t0&&(this._index_low=n)}if(null!=this._index_low||null!=this._index_high){const e=null!=this._index_low?this._index_low:0,n=(null!=this._index_high?this._index_high+1:i.length-1)-e+1;if(n>0){const t=new Array(n);for(let a=0;a({color_mapper:[n(_.ColorMapper)],display_low:[e(i),null],display_high:[e(i),null]})))}, -function _(i,s,x,A,o){A(),o("Axis",i(189).Axis),o("CategoricalAxis",i(266).CategoricalAxis),o("ContinuousAxis",i(195).ContinuousAxis),o("DatetimeAxis",i(267).DatetimeAxis),o("LinearAxis",i(194).LinearAxis),o("LogAxis",i(268).LogAxis),o("MercatorAxis",i(269).MercatorAxis)}, -function _(t,s,o,e,i){var r;e();const a=t(1),l=t(189),_=t(201),n=t(242),p=a.__importStar(t(80)),c=t(20),h=t(180),m=t(8);class u extends l.AxisView{_paint(){const{tick_coords:t,extents:s}=this,o=this.layer.ctx;super._paint(),this._draw_group_separators(o,s,t)}_draw_group_separators(t,s,o){const[e]=this.ranges,[i,r]=this.computed_bounds;if(null==e.tops||e.tops.length<2||!this.visuals.separator_line.doit)return;const a=this.dimension,l=1-a,_=[[],[]];let n=0;for(let t=0;ti&&pnew h.GraphicsBoxes(t.map((t=>(0,m.isString)(t)?new h.TextBox({text:t}):t))),_=t=>l(this.model.formatter.doFormat(t,this));if(1==t.levels){const t=_(i.major);a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text])}else if(2==t.levels){const t=_(i.major.map((t=>t[1])));a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([l(i.tops),r.tops,this.model.group_label_orientation,this.visuals.group_text])}else if(3==t.levels){const t=_(i.major.map((t=>t[2]))),s=i.mids.map((t=>t[1]));a.push([t,r.major,this.model.major_label_orientation,this.visuals.major_label_text]),a.push([l(s),r.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),a.push([l(i.tops),r.tops,this.model.group_label_orientation,this.visuals.group_text])}return a}get tick_coords(){const t=this.dimension,s=1-t,[o]=this.ranges,[e,i]=this.computed_bounds,r=this.model.ticker.get_ticks(e,i,o,this.loc),a={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};return a.major[t]=r.major,a.major[s]=r.major.map((()=>this.loc)),3==o.levels&&(a.mids[t]=r.mids,a.mids[s]=r.mids.map((()=>this.loc))),o.levels>1&&(a.tops[t]=r.tops,a.tops[s]=r.tops.map((()=>this.loc))),a}}o.CategoricalAxisView=u,u.__name__="CategoricalAxisView";class d extends l.Axis{constructor(t){super(t)}}o.CategoricalAxis=d,r=d,d.__name__="CategoricalAxis",r.prototype.default_view=u,r.mixins([["separator_",p.Line],["group_",p.Text],["subgroup_",p.Text]]),r.define((({Float:t,Or:s})=>({group_label_orientation:[s(c.LabelOrientation,t),"parallel"],subgroup_label_orientation:[s(c.LabelOrientation,t),"parallel"]}))),r.override({ticker:()=>new _.CategoricalTicker,formatter:()=>new n.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}, -function _(e,t,i,s,a){var n;s();const o=e(195),r=e(243),m=e(203);class _ extends o.ContinuousAxisView{}i.DatetimeAxisView=_,_.__name__="DatetimeAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}}i.DatetimeAxis=c,n=c,c.__name__="DatetimeAxis",n.prototype.default_view=_,n.override({ticker:()=>new m.DatetimeTicker,formatter:()=>new r.DatetimeTickFormatter})}, -function _(e,o,i,s,t){var n;s();const r=e(195),_=e(249),c=e(210);class a extends r.ContinuousAxisView{}i.LogAxisView=a,a.__name__="LogAxisView";class u extends r.ContinuousAxis{constructor(e){super(e)}}i.LogAxis=u,n=u,u.__name__="LogAxis",n.prototype.default_view=a,n.override({ticker:()=>new c.LogTicker,formatter:()=>new _.LogTickFormatter})}, -function _(e,r,t,i,a){var o;i();const s=e(189),c=e(194),n=e(250),_=e(211);class x extends s.AxisView{}t.MercatorAxisView=x,x.__name__="MercatorAxisView";class d extends c.LinearAxis{constructor(e){super(e)}}t.MercatorAxis=d,o=d,d.__name__="MercatorAxis",o.prototype.default_view=x,o.override({ticker:()=>new _.MercatorTicker({dimension:"lat"}),formatter:()=>new n.MercatorTickFormatter({dimension:"lat"})})}, -function _(r,o,a,p,e){p(),e("CategoricalColorMapper",r(271).CategoricalColorMapper),e("CategoricalMarkerMapper",r(273).CategoricalMarkerMapper),e("CategoricalPatternMapper",r(274).CategoricalPatternMapper),e("ContinuousColorMapper",r(214).ContinuousColorMapper),e("ColorMapper",r(215).ColorMapper),e("LinearColorMapper",r(275).LinearColorMapper),e("LogColorMapper",r(276).LogColorMapper),e("ScanningColorMapper",r(213).ScanningColorMapper),e("EqHistColorMapper",r(277).EqHistColorMapper),e("StackColorMapper",r(278).StackColorMapper),e("WeightedStackColorMapper",r(279).WeightedStackColorMapper)}, -function _(t,o,a,r,e){var c;r();const l=t(272),s=t(215),n=t(109);class _ extends s.ColorMapper{constructor(t){super(t)}_v_compute(t,o,a,{nan_color:r}){(0,l.cat_v_compute)(t,this.factors,a,o,this.start,this.end,r)}}a.CategoricalColorMapper=_,c=_,_.__name__="CategoricalColorMapper",c.define((({Float:t,Nullable:o})=>({factors:[n.FactorSeq],start:[t,0],end:[o(t),null]})))}, -function _(n,t,e,o,i){o();const c=n(13),f=n(8);function l(n,t){if(n.length!=t.length)return!1;const e=n.length;for(let o=0;ol(n,e)))}else n=(0,c.index_of)(t,_);const d=n in e?e[n]:s;o[u++]=d}}}, -function _(e,r,a,t,s){var c;t();const l=e(272),n=e(109),o=e(216),u=e(20);class i extends o.Mapper{constructor(e){super(e)}v_compute(e){const r=new Array(e.length);return(0,l.cat_v_compute)(e,this.factors,this.markers,r,this.start,this.end,this.default_value),r}}a.CategoricalMarkerMapper=i,c=i,i.__name__="CategoricalMarkerMapper",c.define((({Float:e,List:r,Nullable:a})=>({factors:[n.FactorSeq],markers:[r(u.MarkerType)],start:[e,0],end:[a(e),null],default_value:[u.MarkerType,"circle"]})))}, -function _(t,e,a,r,n){var s;r();const c=t(272),l=t(109),o=t(216),p=t(20);class u extends o.Mapper{constructor(t){super(t)}v_compute(t){const e=new Array(t.length);return(0,c.cat_v_compute)(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=u,s=u,u.__name__="CategoricalPatternMapper",s.define((({Float:t,List:e,Nullable:a})=>({factors:[l.FactorSeq],patterns:[e(p.HatchPatternType)],start:[t,0],end:[a(t),null],default_value:[p.HatchPatternType," "]})))}, -function _(n,r,o,t,a){t();const e=n(214),i=n(13),s=n(11);class _ extends e.ContinuousColorMapper{constructor(n){super(n)}scan(n,r){const o=null!=this.low?this.low:(0,i.min)(n),t=null!=this.high?this.high:(0,i.max)(n);return{max:t,min:o,norm_factor:1/(t-o),normed_interval:1/r}}index_to_value(n){const r=this._scan_data;return r.min+r.normed_interval*n/r.norm_factor}value_to_index(n,r){const o=this._scan_data;if(n==o.max)return r-1;const t=(n-o.min)*o.norm_factor,a=Math.floor(t/o.normed_interval);return(0,s.clamp)(a,-1,r)}}o.LinearColorMapper=_,_.__name__="LinearColorMapper"}, -function _(n,t,a,o,s){o();const r=n(214),e=n(13),i=n(11);class l extends r.ContinuousColorMapper{constructor(n){super(n)}scan(n,t){const a=null!=this.low?this.low:(0,e.min)(n),o=null!=this.high?this.high:(0,e.max)(n);return{max:o,min:a,scale:t/Math.log(o/a)}}index_to_value(n){const t=this._scan_data;return t.min*Math.exp(n/t.scale)}value_to_index(n,t){const a=this._scan_data;if(n==a.max)return t-1;if(n>a.max)return t;if(n1?d=1-n:m=!1}const g=(0,c.linspace)(d,1,n+1),w=(0,r.interpolate)(g,f,h);let b=!1;if(m){const e=(0,r.sorted_index)(w,s);s0&&(w[e-1]=s),b=!0}else w[0]=s;return w[w.length-1]=t,{min:s,max:t,binning:w,force_low_cutoff:b}}}s.EqHistColorMapper=a,o=a,a.__name__="EqHistColorMapper",o.define((({Bool:e,Int:n})=>({bins:[n,65536],rescale_discrete_levels:[e,!1]})))}, -function _(o,r,a,c,e){c();const p=o(215);class t extends p.ColorMapper{constructor(o){super(o)}}a.StackColorMapper=t,t.__name__="StackColorMapper"}, -function _(e,t,o,a,r){var l;a();const n=e(215),s=e(214),c=e(278),_=e(24),i=e(13),p=e(12),u=e(22);class h extends c.StackColorMapper{constructor(e){super(e)}_mix_colors(e,t,o,a){if(isNaN(a))return t;let r=0,l=0,n=0,s=0;const c=o.length;if(0!=a)for(let t=0;t({alpha_mapper:[a(s.ContinuousColorMapper)],color_baseline:[t(o),null],stack_labels:[t(e(r)),null]})))}, -function _(e,t,i,r,l){var n;r();const o=e(170),s=e(255),a=e(217),_=e(56),h=e(12);class d extends o.BaseColorBarView{*children(){yield*super.children(),yield this._fill_view,yield this._line_view}async lazy_initialize(){await super.lazy_initialize();const{fill_renderer:e,line_renderer:t}=this.model;this._fill_view=await(0,_.build_view)(e,{parent:this.parent}),this._line_view=await(0,_.build_view)(t,{parent:this.parent})}remove(){this._fill_view.remove(),this._line_view.remove(),super.remove()}_create_major_range(){const e=this.model.levels;return e.length>0?new s.Range1d({start:e[0],end:e[e.length-1]}):new s.Range1d({start:0,end:1})}_paint_colors(e,t){const i="vertical"==this.orientation,r=this.model.levels,l=this._major_scale;l.source_range=this._major_range,l.target_range=i?new s.Range1d({start:t.bottom,end:t.top}):new s.Range1d({start:t.left,end:t.right});const n=l.v_compute(r),o=this._fill_view.glyph,a=o.data_size;if(a>0){(0,h.assert)(r.length==a+1,"Inconsistent number of filled contour levels"),e.save();for(let r=0;r0){(0,h.assert)(r.length==d,"Inconsistent number of line contour levels"),e.save();for(let r=0;r({fill_renderer:[i(a.GlyphRenderer)],line_renderer:[i(a.GlyphRenderer)],levels:[e(t),[]]})))}, +function _(e,i,n,t,a){var o;t();const l=e(170),r=e(266),s=e(242),_=e(216),c=e(271),h=e(256),p=e(254),g=e(200),m=e(10),d=e(12);class u extends l.BaseColorBarView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.color_mapper.change,(async()=>{this._title_view.remove(),this._axis_view.remove(),this.initialize(),await this.lazy_initialize(),this.plot_view.invalidate_layout()})),this.connect(this.model.color_mapper.metrics_change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_low.change,(()=>this._metrics_changed())),this.connect(this.model.properties.display_high.change,(()=>this._metrics_changed()))}get color_mapper(){let e=this.model.color_mapper;return e instanceof c.WeightedStackColorMapper&&(e=e.alpha_mapper),e}update_layout(){super.update_layout(),this._set_canvas_image()}_create_axis(){const{color_mapper:e}=this;return e instanceof c.CategoricalColorMapper?new r.CategoricalAxis:e instanceof c.LogColorMapper?new r.LogAxis:new r.LinearAxis}_create_formatter(){const{color_mapper:e}=this;return this._ticker instanceof g.LogTicker?new s.LogTickFormatter:e instanceof c.CategoricalColorMapper?new s.CategoricalTickFormatter:new s.BasicTickFormatter}_create_major_range(){const{color_mapper:e}=this;if(e instanceof c.CategoricalColorMapper)return new h.FactorRange({factors:e.factors});if(e instanceof c.ContinuousColorMapper){const{min:i,max:n}=this._continuous_metrics(e);return new h.Range1d({start:i,end:n})}(0,d.unreachable)()}_create_major_scale(){const{color_mapper:e}=this;return e instanceof c.LinearColorMapper?new p.LinearScale:e instanceof c.LogColorMapper?new p.LogScale:e instanceof c.ScanningColorMapper?new p.LinearInterpolationScale({binning:this._scanning_binning(e)}):e instanceof c.CategoricalColorMapper?new p.CategoricalScale:void(0,d.unreachable)()}_create_ticker(){const{color_mapper:e}=this;return e instanceof c.LogColorMapper?new g.LogTicker:e instanceof c.ScanningColorMapper?new g.BinnedTicker({mapper:e}):e instanceof c.CategoricalColorMapper?new g.CategoricalTicker:new g.BasicTicker}_continuous_metrics(e){const{display_low:i,display_high:n}=this.model;let{min:t,max:a}=e.metrics;if(null!=n&&null!=i&&n0&&(this._index_low=n,t=e.index_to_value(n))}return{min:t,max:a}}_get_major_size_factor(){return this.color_mapper.palette.length}_metrics_changed(){const e=this._major_range,i=this._major_scale,{color_mapper:n}=this;if(n instanceof c.ScanningColorMapper&&i instanceof p.LinearInterpolationScale){const e=this._scanning_binning(n);i.binning=e;const t="vertical"==this.orientation,a=t?this._frame_view.y_scale:this._frame_view.x_scale;if(a instanceof p.LinearInterpolationScale){a.binning=e;const i=t?this._frame_view.y_range:this._frame_view.x_range;i instanceof h.Range1d&&(i.start=e[0],i.end=e[e.length-1])}}else if(n instanceof c.ContinuousColorMapper&&e instanceof h.Range1d){const{min:i,max:t}=this._continuous_metrics(n);e.setv({start:i,end:t})}this._set_canvas_image(),this.plot_view.request_layout()}_paint_colors(e,i){const{x:n,y:t,width:a,height:o}=i;e.save(),e.globalAlpha=this.model.scale_alpha,null!=this._image&&(e.imageSmoothingEnabled=!1,e.drawImage(this._image,n,t,a,o)),this.visuals.bar_line.doit&&(this.visuals.bar_line.set_value(e),e.strokeRect(n,t,a,o)),e.restore()}_scanning_binning(e){let{binning:i,force_low_cutoff:n}=e.metrics;const{display_high:t}=this.model;let{display_low:a}=this.model;if(n&&(null==a||e.metrics.min>a)&&(a=e.metrics.min),null!=t&&null!=a&&t0&&(this._index_low=n)}if(null!=this._index_low||null!=this._index_high){const e=null!=this._index_low?this._index_low:0,n=(null!=this._index_high?this._index_high+1:i.length-1)-e+1;if(n>0){const t=new Array(n);for(let a=0;a({color_mapper:[n(_.ColorMapper)],display_low:[e(i),null],display_high:[e(i),null]})))}, +function _(i,s,x,A,o){A(),o("Axis",i(189).Axis),o("CategoricalAxis",i(267).CategoricalAxis),o("ContinuousAxis",i(195).ContinuousAxis),o("DatetimeAxis",i(268).DatetimeAxis),o("LinearAxis",i(194).LinearAxis),o("LogAxis",i(269).LogAxis),o("MercatorAxis",i(270).MercatorAxis)}, +function _(t,s,e,o,i){var a;o();const r=t(1),l=t(189),_=t(201),n=t(243),c=r.__importStar(t(80)),h=t(20),p=t(180),m=t(8);class u extends l.AxisView{_hit_value(t,s){const[e]=this.ranges,{start:o,end:i,span:a}=e;switch(this.dimension){case 0:{const{x0:s,width:i}=this.bbox;return e.factor(a*(t-s)/i+o)}case 1:{const{y0:t,height:o}=this.bbox;return e.factor(i-a*(s-t)/o)}}}_paint(){const{tick_coords:t,extents:s}=this,e=this.layer.ctx;super._paint(),this._draw_group_separators(e,s,t)}_draw_group_separators(t,s,e){const[o]=this.ranges,[i,a]=this.computed_bounds,{factors:r}=o,{tops:l}=o.mapper;if(null==l||l.length<2||!this.visuals.separator_line.doit)return;const _=this.dimension,n=1-_,c=[[],[]];let h=0;for(let t=0;ti&&pnew p.GraphicsBoxes(t.map((t=>(0,m.isString)(t)?new p.TextBox({text:t}):t))),_=t=>l(this.model.formatter.doFormat(t,this));switch(t.mapper.levels){case 1:{const t=_(i.major);r.push([t,a.major,this.model.major_label_orientation,this.visuals.major_label_text]);break}case 2:{const t=_(i.major.map((t=>t[1])));r.push([t,a.major,this.model.major_label_orientation,this.visuals.major_label_text]),r.push([l(i.tops),a.tops,this.model.group_label_orientation,this.visuals.group_text]);break}case 3:{const t=_(i.major.map((t=>t[2]))),s=i.mids.map((t=>t[1]));r.push([t,a.major,this.model.major_label_orientation,this.visuals.major_label_text]),r.push([l(s),a.mids,this.model.subgroup_label_orientation,this.visuals.subgroup_text]),r.push([l(i.tops),a.tops,this.model.group_label_orientation,this.visuals.group_text]);break}}return r}get tick_coords(){const t=this.dimension,s=1-t,[e]=this.ranges,[o,i]=this.computed_bounds,a=this.model.ticker.get_ticks(o,i,e,this.loc),r={major:[[],[]],mids:[[],[]],tops:[[],[]],minor:[[],[]]};r.major[t]=a.major,r.major[s]=a.major.map((()=>this.loc));const{levels:l}=e.mapper;return 3==l&&(r.mids[t]=a.mids,r.mids[s]=a.mids.map((()=>this.loc))),l>1&&(r.tops[t]=a.tops,r.tops[s]=a.tops.map((()=>this.loc))),r}}e.CategoricalAxisView=u,u.__name__="CategoricalAxisView";class d extends l.Axis{constructor(t){super(t)}}e.CategoricalAxis=d,a=d,d.__name__="CategoricalAxis",a.prototype.default_view=u,a.mixins([["separator_",c.Line],["group_",c.Text],["subgroup_",c.Text]]),a.define((({Float:t,Or:s})=>({group_label_orientation:[s(h.LabelOrientation,t),"parallel"],subgroup_label_orientation:[s(h.LabelOrientation,t),"parallel"]}))),a.override({ticker:()=>new _.CategoricalTicker,formatter:()=>new n.CategoricalTickFormatter,separator_line_color:"lightgrey",separator_line_width:2,group_text_font_style:"bold",group_text_font_size:"11px",group_text_color:"grey",subgroup_text_font_style:"bold",subgroup_text_font_size:"11px"})}, +function _(e,t,i,s,a){var n;s();const o=e(195),r=e(244),m=e(204);class _ extends o.ContinuousAxisView{}i.DatetimeAxisView=_,_.__name__="DatetimeAxisView";class c extends o.ContinuousAxis{constructor(e){super(e)}}i.DatetimeAxis=c,n=c,c.__name__="DatetimeAxis",n.prototype.default_view=_,n.override({ticker:()=>new m.DatetimeTicker,formatter:()=>new r.DatetimeTickFormatter})}, +function _(t,e,s,i,o){var n;i();const r=t(195),c=t(250),a=t(211);class _ extends r.ContinuousAxisView{_hit_value(t,e){const[s]=this.ranges,{start:i,end:o}=s,{log10:n}=Math;switch(this.dimension){case 0:{const{x0:e,width:s}=this.bbox;return n(o/i)*(t-e)/s+n(i)}case 1:{const{y0:t,height:s}=this.bbox;return n(o)-n(o/i)*(e-t)/s}}}}s.LogAxisView=_,_.__name__="LogAxisView";class u extends r.ContinuousAxis{constructor(t){super(t)}}s.LogAxis=u,n=u,u.__name__="LogAxis",n.prototype.default_view=_,n.override({ticker:()=>new a.LogTicker,formatter:()=>new c.LogTickFormatter})}, +function _(e,r,t,i,a){var o;i();const s=e(194),n=e(251),c=e(212);class _ extends s.LinearAxisView{}t.MercatorAxisView=_,_.__name__="MercatorAxisView";class x extends s.LinearAxis{constructor(e){super(e)}}t.MercatorAxis=x,o=x,x.__name__="MercatorAxis",o.prototype.default_view=_,o.override({ticker:()=>new c.MercatorTicker({dimension:"lat"}),formatter:()=>new n.MercatorTickFormatter({dimension:"lat"})})}, +function _(r,o,a,p,e){p(),e("CategoricalColorMapper",r(272).CategoricalColorMapper),e("CategoricalMarkerMapper",r(274).CategoricalMarkerMapper),e("CategoricalPatternMapper",r(275).CategoricalPatternMapper),e("ContinuousColorMapper",r(215).ContinuousColorMapper),e("ColorMapper",r(216).ColorMapper),e("LinearColorMapper",r(276).LinearColorMapper),e("LogColorMapper",r(277).LogColorMapper),e("ScanningColorMapper",r(214).ScanningColorMapper),e("EqHistColorMapper",r(278).EqHistColorMapper),e("StackColorMapper",r(279).StackColorMapper),e("WeightedStackColorMapper",r(280).WeightedStackColorMapper)}, +function _(t,o,a,r,e){var c;r();const l=t(273),s=t(216),n=t(109);class _ extends s.ColorMapper{constructor(t){super(t)}_v_compute(t,o,a,{nan_color:r}){(0,l.cat_v_compute)(t,this.factors,a,o,this.start,this.end,r)}}a.CategoricalColorMapper=_,c=_,_.__name__="CategoricalColorMapper",c.define((({Float:t,Nullable:o})=>({factors:[n.FactorSeq],start:[t,0],end:[o(t),null]})))}, +function _(n,t,e,o,i){o(),e._cat_equals=l,e.cat_v_compute=function(n,t,e,o,i,r,s){let u=0;for(const _ of n){let n;if((0,f.isArray)(_)){const e=_.slice(i,r??void 0);n=1==e.length?(0,c.index_of)(t,e[0]):(0,c.find_index)(t,(n=>l(n,e)))}else n=(0,c.index_of)(t,_);const d=n in e?e[n]:s;o[u++]=d}};const c=n(13),f=n(8);function l(n,t){if(n.length!=t.length)return!1;const e=n.length;for(let o=0;o({factors:[n.FactorSeq],markers:[r(u.MarkerType)],start:[e,0],end:[a(e),null],default_value:[u.MarkerType,"circle"]})))}, +function _(t,e,a,r,n){var s;r();const c=t(273),l=t(109),o=t(217),p=t(20);class u extends o.Mapper{constructor(t){super(t)}v_compute(t){const e=new Array(t.length);return(0,c.cat_v_compute)(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e}}a.CategoricalPatternMapper=u,s=u,u.__name__="CategoricalPatternMapper",s.define((({Float:t,List:e,Nullable:a})=>({factors:[l.FactorSeq],patterns:[e(p.HatchPatternType)],start:[t,0],end:[a(t),null],default_value:[p.HatchPatternType," "]})))}, +function _(n,r,o,t,a){t();const e=n(215),i=n(13),s=n(11);class _ extends e.ContinuousColorMapper{constructor(n){super(n)}scan(n,r){const o=null!=this.low?this.low:(0,i.min)(n),t=null!=this.high?this.high:(0,i.max)(n);return{max:t,min:o,norm_factor:1/(t-o),normed_interval:1/r}}index_to_value(n){const r=this._scan_data;return r.min+r.normed_interval*n/r.norm_factor}value_to_index(n,r){const o=this._scan_data;if(n==o.max)return r-1;const t=(n-o.min)*o.norm_factor,a=Math.floor(t/o.normed_interval);return(0,s.clamp)(a,-1,r)}}o.LinearColorMapper=_,_.__name__="LinearColorMapper"}, +function _(n,t,a,o,s){o();const r=n(215),e=n(13),i=n(11);class l extends r.ContinuousColorMapper{constructor(n){super(n)}scan(n,t){const a=null!=this.low?this.low:(0,e.min)(n),o=null!=this.high?this.high:(0,e.max)(n);return{max:o,min:a,scale:t/Math.log(o/a)}}index_to_value(n){const t=this._scan_data;return t.min*Math.exp(n/t.scale)}value_to_index(n,t){const a=this._scan_data;if(n==a.max)return t-1;if(n>a.max)return t;if(n1?d=1-n:m=!1}const g=(0,c.linspace)(d,1,n+1),w=(0,r.interpolate)(g,f,h);let b=!1;if(m){const e=(0,r.sorted_index)(w,s);s0&&(w[e-1]=s),b=!0}else w[0]=s;return w[w.length-1]=t,{min:s,max:t,binning:w,force_low_cutoff:b}}}s.EqHistColorMapper=a,o=a,a.__name__="EqHistColorMapper",o.define((({Bool:e,Int:n})=>({bins:[n,65536],rescale_discrete_levels:[e,!1]})))}, +function _(o,r,a,c,e){c();const p=o(216);class t extends p.ColorMapper{constructor(o){super(o)}}a.StackColorMapper=t,t.__name__="StackColorMapper"}, +function _(e,t,o,a,r){var l;a();const n=e(216),s=e(215),c=e(279),_=e(24),i=e(13),p=e(12),u=e(22);class h extends c.StackColorMapper{constructor(e){super(e)}_mix_colors(e,t,o,a){if(isNaN(a))return t;let r=0,l=0,n=0,s=0;const c=o.length;if(0!=a)for(let t=0;t({alpha_mapper:[a(s.ContinuousColorMapper)],color_baseline:[t(o),null],stack_labels:[t(e(r)),null]})))}, +function _(e,t,i,r,l){var n;r();const o=e(170),s=e(256),a=e(218),_=e(56),h=e(12);class d extends o.BaseColorBarView{*children(){yield*super.children(),yield this._fill_view,yield this._line_view}async lazy_initialize(){await super.lazy_initialize();const{fill_renderer:e,line_renderer:t}=this.model;this._fill_view=await(0,_.build_view)(e,{parent:this.parent}),this._line_view=await(0,_.build_view)(t,{parent:this.parent})}remove(){this._fill_view.remove(),this._line_view.remove(),super.remove()}_create_major_range(){const e=this.model.levels;return e.length>0?new s.Range1d({start:e[0],end:e[e.length-1]}):new s.Range1d({start:0,end:1})}_paint_colors(e,t){const i="vertical"==this.orientation,r=this.model.levels,l=this._major_scale;l.source_range=this._major_range,l.target_range=i?new s.Range1d({start:t.bottom,end:t.top}):new s.Range1d({start:t.left,end:t.right});const n=l.v_compute(r),o=this._fill_view.glyph,a=o.data_size;if(a>0){(0,h.assert)(r.length==a+1,"Inconsistent number of filled contour levels"),e.save();for(let r=0;r0){(0,h.assert)(r.length==d,"Inconsistent number of line contour levels"),e.save();for(let r=0;r({fill_renderer:[i(a.GlyphRenderer)],line_renderer:[i(a.GlyphRenderer)],levels:[e(t),[]]})))}, function _(t,e,n,s,a){var i;s();const o=t(1),r=t(172),_=t(11),l=t(20),h=t(12),c=t(15),u=t(114),d=t(185),x=o.__importStar(t(186)),p=t(60);function m(t,e){return{x:t,y:e}}class g extends r.TextAnnotationView{constructor(){super(...arguments),this._pan_state=null}get mappers(){function t(t,e,n,s){switch(t){case"canvas":return s;case"screen":return n;case"data":return e}}const e=this.model,n=this.layout??this.plot_view.frame,{x_scale:s,y_scale:a}=this.coordinates,{x_view:i,y_view:o}=n.bbox,{x_screen:r,y_screen:_}=this.plot_view.canvas.bbox;return{x:t(e.x_units,s,i,r),y:t(e.y_units,a,o,_)}}get anchor(){const{align:t,baseline:e}=this.visuals.text.values();return x.text_anchor(this.model.anchor,t,e)}get angle(){const{angle:t,angle_units:e,direction:n}=this.model;return(0,_.compute_angle)(t,e,n)}get origin(){const{mappers:t}=this,{x:e,y:n,x_offset:s,y_offset:a}=this.model,i=(t,e,n)=>e instanceof p.Coordinate?this.resolve_as_scalar(e,t):n.compute(e);return{sx:i("x",e,t.x)+s,sy:i("y",n,t.y)-a}}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&"area"==this._hit_test(t,e)}_hit_test(t,e){const{sx:n,sy:s,anchor:a,angle:i,width:o,height:r}=this._rect,{x:_,y:l}=(0,u.rotate_around)(m(t,e),m(n,s),-i),h=n-a.x*o,c=s-a.y*r;return h<=_&&_<=h+o&&c<=l&&l<=c+r?"area":null}_can_hit(t){return!0}on_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:n}=t,s=this._hit_test(e,n);if(null!=s&&this._can_hit(s))return this._pan_state={angle:this.angle,base:{sx:e,sy:n},target:s,action:"rotate"},this.model.pan.emit(["pan:start",t.modifiers]),!0}return!1}on_pan(t){(0,h.assert)(null!=this._pan_state);const{dx:e,dy:n}=t,{angle:s,base:a}=this._pan_state,{origin:i}=this,o=(0,_.atan2)([i.sx,i.sy],[a.sx,a.sy]),r=(s+((0,_.atan2)([i.sx,i.sy],[a.sx+e,a.sy+n])-o))%(2*Math.PI),{angle_units:l,direction:c}=this.model;this.model.angle=(0,_.invert_angle)(r,l,c),this.model.pan.emit(["pan",t.modifiers])}on_pan_end(t){this._pan_state=null,this.model.pan.emit(["pan:end",t.modifiers])}cursor(t,e){const n=this._pan_state?.target??this._hit_test(t,e);return null!=n&&this._can_hit(n)?"var(--bokeh-cursor-rotate)":null}}n.LabelView=g,g.__name__="LabelView";class y extends r.TextAnnotation{constructor(t){super(t),this.pan=new c.Signal(this,"pan")}}n.Label=y,i=y,y.__name__="Label",i.prototype.default_view=g,i.define((({Bool:t,Float:e,Angle:n,Or:s,Ref:a})=>({anchor:[d.TextAnchor,"auto"],x:[s(e,a(p.Coordinate))],y:[s(e,a(p.Coordinate))],x_units:[l.CoordinateUnits,"data"],y_units:[l.CoordinateUnits,"data"],x_offset:[e,0],y_offset:[e,0],angle:[n,0],angle_units:[l.AngleUnits,"rad"],direction:[l.Direction,"anticlock"],editable:[t,!1]})))}, function _(t,e,i,s,a){var n;s();const o=t(1),l=t(127),r=o.__importStar(t(80)),_=t(20),c=t(180),u=o.__importStar(t(18)),x=t(24);class h extends l.DataAnnotationView{map_data(){const{x_scale:t,y_scale:e}=this.coordinates,i=null!=this.layout?this.layout:this.plot_view.frame;this.sx=(()=>{switch(this.model.x_units){case"canvas":return new x.ScreenArray(this._x);case"screen":return i.bbox.xview.v_compute(this._x);case"data":return t.v_compute(this._x)}})(),this.sy=(()=>{switch(this.model.y_units){case"canvas":return new x.ScreenArray(this._y);case"screen":return i.bbox.yview.v_compute(this._y);case"data":return e.v_compute(this._y)}})()}_paint_data(){const{ctx:t}=this.layer;for(let e=0,i=this.text.length;e({x:[u.XCoordinateSpec,{field:"x"}],y:[u.YCoordinateSpec,{field:"y"}],x_units:[_.CoordinateUnits,"data"],y_units:[_.CoordinateUnits,"data"],text:[u.NullStringSpec,{field:"text"}],angle:[u.AngleSpec,0],x_offset:[u.NumberSpec,{value:0}],y_offset:[u.NumberSpec,{value:0}]}))),n.override({background_fill_color:null,border_line_color:null})}, -function _(t,e,i,s,n){var o;s();const l=t(1),r=t(81),a=t(284),c=t(20),h=l.__importStar(t(80)),_=t(15),d=t(173),b=t(64),u=t(10),g=t(9),p=t(34),m=t(8),f=t(180),x=t(256),w=t(53),{max:v,ceil:y}=Math;class k extends x.ContentLayoutable{constructor(t,e,i,s){super(),this.item=t,this.label=e,this.text=i,this.settings=s}get field(){return this.item.get_field_from_label_prop()}_content_size(){const t=this.text.size(),{glyph_width:e,glyph_height:i,label_standoff:s,label_width:n,label_height:o}=this.settings,l=e+s+v(t.width,n),r=v(i,t.height,o);return new x.Sizeable({width:l,height:r})}}k.__name__="LegendEntry";class L extends r.AnnotationView{constructor(){super(...arguments),this._bbox=new b.BBox}_get_size(){const{width:t,height:e}=this.bbox,{margin:i}=this.model;return{width:t+2*i,height:e+2*i}}update_layout(){this.update_geometry();const{panel:t}=this;this.layout=null!=t?new d.SideLayout(t,(()=>this.get_size())):void 0}connect_signals(){super.connect_signals();const t=()=>this.request_paint();this.connect(this.model.change,t),this.connect(this.model.item_change,t)}get bbox(){return this._bbox}get padding(){return null!=this.model.border_line_color?this.model.padding:0}update_geometry(){super.update_geometry();const{spacing:t,orientation:e}=this.model,i="vertical"==e,{padding:s}=this,n=s,o=s,{title:l}=this.model,r=new f.TextBox({text:l??""});r.position={sx:0,sy:0,x_anchor:"left",y_anchor:"top"},r.visuals=this.visuals.title_text.values();const a=new d.SidePanel(this.model.title_location);r.angle=a.get_label_angle_heuristic("parallel");const c=[];for(const t of this.model.items){t.legend=this.model;const e=t.get_labels_list_from_label_prop();for(const i of e){const e=new f.TextBox({text:`${i}`});e.position={sx:0,sy:0,x_anchor:"left",y_anchor:"center"},e.visuals=this.visuals.label_text.values();const s=new k(t,i,e,this.model);s.set_sizing({visible:t.visible}),c.push({layout:s,row:0,col:0})}}const{ncols:h,nrows:_}=(()=>{let{ncols:t,nrows:e}=this.model;const s=c.length;return i?("auto"!=e||(e="auto"!=t?y(s/t):1/0),t=1/0):("auto"!=t||(t="auto"!=e?y(s/e):1/0),e=1/0),{ncols:t,nrows:e}})();let u=0,g=0;for(const t of c)t.row=u,t.col=g,i?(u+=1,u>=_&&(u=0,g+=1)):(g+=1,g>=h&&(g=0,u+=1));const p=new x.Grid(c);this.grid=p,p.spacing=t,p.set_sizing();const m=new x.TextLayout(r);this.title_panel=m;const w=""!=r.text&&this.visuals.title_text.doit;m.set_sizing({visible:w});const v=(()=>{if(!w)return new x.Column([p]);switch(this.model.title_location){case"above":return new x.Column([m,p]);case"below":return new x.Column([p,m]);case"left":return new x.Row([m,p]);case"right":return new x.Row([p,m])}})();this.border_box=v,v.position={left:n,top:o},v.spacing=this.model.title_standoff,v.set_sizing(),v.compute();const L=s+v.bbox.width+s,z=s+v.bbox.height+s;this._bbox=new b.BBox({left:0,top:0,width:L,height:z})}compute_geometry(){super.compute_geometry();const{margin:t,location:e}=this.model,{width:i,height:s}=this.bbox,n=null!=this.layout?this.layout:this.plot_view.frame,[o,l]=n.bbox.ranges;let r,a;if((0,m.isString)(e))switch(e){case"top_left":r=o.start+t,a=l.start+t;break;case"top":case"top_center":r=(o.end+o.start)/2-i/2,a=l.start+t;break;case"top_right":r=o.end-t-i,a=l.start+t;break;case"bottom_right":r=o.end-t-i,a=l.end-t-s;break;case"bottom":case"bottom_center":r=(o.end+o.start)/2-i/2,a=l.end-t-s;break;case"bottom_left":r=o.start+t,a=l.end-t-s;break;case"left":case"center_left":r=o.start+t,a=(l.end+l.start)/2-s/2;break;case"center":case"center_center":r=(o.end+o.start)/2-i/2,a=(l.end+l.start)/2-s/2;break;case"right":case"center_right":r=o.end-t-i,a=(l.end+l.start)/2-s/2}else{const[t,i]=e;r=n.bbox.xview.compute(t),a=n.bbox.yview.compute(i)-s}this._bbox=new b.BBox({left:r,top:a,width:i,height:s})}interactive_hit(t,e){return this.bbox.contains(t,e)}_hit_test(t,e){const{left:i,top:s}=this.bbox;t-=i+this.grid.bbox.left,e-=s+this.grid.bbox.top;for(const i of this.grid)if(i.bbox.contains(t,e))return{type:"entry",entry:i};return null}cursor(t,e){return("none"!=this.model.click_policy||(0,g.dict)(this.model.js_event_callbacks).has("legend_item_click"))&&null!=this._hit_test(t,e)?"pointer":null}on_hit(t,e){const i=(()=>{switch(this.model.click_policy){case"hide":return t=>t.visible=!t.visible;case"mute":return t=>t.muted=!t.muted;case"none":return t=>{}}})(),s=this._hit_test(t,e);if(null!=s){const{item:t}=s.entry;this.model.trigger_event(new w.LegendItemClick(this.model,t));for(const e of t.renderers)i(e);return!0}return!1}_paint(){if(0==this.model.items.length)return;if(!(0,u.some)(this.model.items,(t=>t.visible)))return;const{ctx:t}=this.layer;t.save(),this._draw_legend_box(t),this._draw_legend_items(t),this._draw_title(t),t.restore()}_draw_legend_box(t){const{x:e,y:i,width:s,height:n}=this.bbox;t.beginPath(),t.rect(e,i,s,n),this.visuals.background_fill.apply(t),this.visuals.border_line.apply(t)}_draw_title(t){const{title:e}=this.model;if(null==e||0==e.length||!this.visuals.title_text.doit)return;const{left:i,top:s}=this.bbox;switch(t.save(),t.translate(i,s),t.translate(this.title_panel.bbox.left,this.title_panel.bbox.top),this.model.title_location){case"left":t.translate(0,this.title_panel.bbox.height);break;case"right":t.translate(this.title_panel.bbox.width,0)}this.title_panel.text.paint(t),t.restore()}_draw_legend_items(t){const e=(()=>{switch(this.model.click_policy){case"none":return t=>!0;case"hide":return t=>(0,u.every)(t.renderers,(t=>t.visible));case"mute":return t=>(0,u.every)(t.renderers,(t=>!t.muted))}})(),i=(t,e,i)=>{if(!this.visuals.item_background_fill.doit)return!1;switch(this.model.item_background_policy){case"every":return!0;case"even":return e%2==0==(i%2==0);case"odd":return e%2==0!=(i%2==0);case"none":return!1}},{left:s,top:n}=this.bbox;t.translate(s,n),t.translate(this.grid.bbox.left,this.grid.bbox.top);for(const[{layout:s,row:n,col:o},l]of(0,p.enumerate)(this.grid.items)){const{bbox:l,text:r,item:a,label:c,field:h,settings:_}=s,{glyph_width:d,glyph_height:b,label_standoff:u}=_,{left:g,top:p,width:m,height:f}=l;t.translate(g,p),i(0,n,o)&&(t.beginPath(),t.rect(0,0,m,f),this.visuals.item_background_fill.apply(t));const x=f/2,w=0,v=x-b/2,y=w+d,k=v+b;for(const e of a.renderers){const i=this.plot_view.views.find_one(e);i?.draw_legend(t,w,y,v,k,h,c,a.index)}t.translate(y+u,x),r.paint(t),t.translate(-y-u,-x),e(a)||(t.beginPath(),t.rect(0,0,m,f),this.visuals.inactive_fill.set_value(t),t.fill()),t.translate(-g,-p)}t.translate(-this.grid.bbox.left,-this.grid.bbox.top),t.translate(-s,-n)}}i.LegendView=L,L.__name__="LegendView";class z extends r.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new _.Signal0(this,"item_change")}}i.Legend=z,o=z,z.__name__="Legend",o.prototype.default_view=L,o.mixins([["label_",h.Text],["title_",h.Text],["inactive_",h.Fill],["border_",h.Line],["background_",h.Fill],["item_background_",h.Fill]]),o.define((({Float:t,Int:e,Str:i,List:s,Tuple:n,Or:o,Ref:l,Nullable:r,Positive:h,Auto:_})=>({orientation:[c.Orientation,"vertical"],ncols:[o(h(e),_),"auto"],nrows:[o(h(e),_),"auto"],location:[o(c.LegendLocation,n(t,t)),"top_right"],title:[r(i),null],title_location:[c.Location,"above"],title_standoff:[t,5],label_standoff:[t,5],glyph_height:[t,20],glyph_width:[t,20],label_height:[t,20],label_width:[t,20],margin:[t,10],padding:[t,10],spacing:[t,3],items:[s(l(a.LegendItem)),[]],click_policy:[c.LegendClickPolicy,"none"],item_background_policy:[c.AlternationPolicy,"none"]}))),o.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,item_background_fill_color:"#f1f1f1",item_background_fill_alpha:.8,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}, -function _(e,r,n,l,t){var i;l();const s=e(1),o=e(51),_=e(217),a=e(128),u=e(28),d=s.__importStar(e(18)),c=e(19),h=e(10);class f extends o.Model{constructor(e){super(e)}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(!(0,h.includes)(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,(()=>this.legend?.item_change.emit()));this._check_data_sources_on_renderers()||c.logger.error("Non matching data sources on legend item renderers");this._check_field_label_on_data_source()||c.logger.error(`Bad column name on label: ${this.label}`)}get_field_from_label_prop(){const{label:e}=this;return(0,u.isField)(e)?e.field:null}get_labels_list_from_label_prop(){if(!this.visible)return[];const{index:e}=this;if(null!=e&&this.renderers.every((r=>!r.view.indices_map.has(e))))return[];if((0,u.isValue)(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const r=this.get_field_from_label_prop();if(null!=r){let e;if(0==this.renderers.length)return["No source found"];if(e=this.renderers[0].data_source,e instanceof a.ColumnarDataSource){const n=e.get_column(r);return null!=n?(0,h.uniq)(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=f,i=f,f.__name__="LegendItem",i.define((({Bool:e,Int:r,List:n,Ref:l,Nullable:t})=>({label:[d.NullStringSpec,null],renderers:[n(l(_.GlyphRenderer)),[]],index:[t(r),null],visible:[e,!0]})))}, -function _(t,e,s,n,i){var o,a;n();const l=t(1),r=t(81),h=t(106),_=l.__importStar(t(80)),c=t(20),y=t(228),p=t(15),d=t(64),u=t(13),v=t(12);class x{constructor(t=[],e=[]){this.xs=t,this.ys=e,(0,v.assert)(t.length==e.length)}clone(){return new x(this.xs.slice(),this.ys.slice())}[Symbol.iterator](){return this.nodes()}*nodes(){const{xs:t,ys:e,n:s}=this;for(let n=0;n=3){const n={x:t[s-1],y:e[s-1]},i={x:t[0],y:e[0]};yield[n,i,s-1]}}contains(t,e){return(0,y.point_in_poly)(t,e,this.xs,this.ys)}get bbox(){const[t,e,s,n]=(0,u.minmax2)(this.xs,this.ys);return new d.BBox({x0:t,x1:e,y0:s,y1:n})}get n(){return this.xs.length}translate(t,e,...s){const n=this.clone(),{xs:i,ys:o,n:a}=n;if(0!=s.length)for(const n of s){const s=n%a;i[s]+=t,o[s]+=e}else for(let s=0;sthis.request_paint()))}bounds(){const{xs_units:t,ys_units:e}=this.model;if("data"==t&&"data"==e){const{xs:t,ys:e}=this.model,[s,n,i,o]=(0,u.minmax2)(t,e);return{x0:s,x1:n,y0:i,y1:o}}return(0,d.empty)()}log_bounds(){return(0,d.empty)()}_mappers(){const t=(t,e,s,n)=>{switch(t){case"canvas":return n;case"screen":return s;case"data":return e}},e=this.model,{frame:s,canvas:n}=this.plot_view,{x_scale:i,y_scale:o}=s,{x_view:a,y_view:l}=s.bbox,{x_screen:r,y_screen:h}=n.bbox;return{x:t(e.xs_units,i,a,r),y:t(e.ys_units,o,l,h)}}_paint(){const{xs:t,ys:e}=this.model;(0,v.assert)(t.length==e.length),this.poly=(()=>{const{x:s,y:n}=this._mappers();return new x(s.v_compute(t),n.v_compute(e))})();const{ctx:s}=this.layer;s.beginPath();for(const[t,e]of this.poly)s.lineTo(t,e);const{_is_hovered:n,visuals:i}=this,o=n&&i.hover_fill.doit?i.hover_fill:i.fill,a=n&&i.hover_hatch.doit?i.hover_hatch:i.hatch,l=n&&i.hover_line.doit?i.hover_line:i.line;this.poly.n>=3&&(s.closePath(),o.apply(s),a.apply(s)),l.apply(s)}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&this.poly.contains(t,e)}_hit_test(t,e){const{abs:s}=Math,n=Math.max(2.5,this.model.line_width/2);for(const[i,o,a]of this.poly)if(s(i-t){const{poly:e,target:s}=this._pan_state,{dx:n,dy:i}=t;switch(s.type){case"node":{const{i:t}=s;return e.translate(n,i,t)}case"edge":{const{i:t}=s;return e.translate(n,i,t,t+1)}case"area":return e.translate(n,i)}})(),{x:s,y:n}=this._mappers(),i=s.v_invert(e.xs),o=n.v_invert(e.ys);this.model.update({xs:i,ys:o}),this.model.pan.emit(["pan",t.modifiers])}on_pan_end(t){this._pan_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:s}=this.visuals;return t.doit||e.doit||s.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const s=this._pan_state?.target??this._hit_test(t,e);if(null==s||!this._can_hit(s))return null;switch(s.type){case"node":case"edge":case"area":return"move"}}}s.PolyAnnotationView=m,o=h.auto_ranged,m.__name__="PolyAnnotationView";class f extends r.Annotation{constructor(t){super(t),this.pan=new p.Signal(this,"pan")}update({xs:t,ys:e}){this.setv({xs:t.slice(),ys:e.slice(),visible:!0})}clear(){this.setv({xs:[],ys:[],visible:!1})}}s.PolyAnnotation=f,a=f,f.__name__="PolyAnnotation",a.prototype.default_view=m,a.mixins([_.Line,_.Fill,_.Hatch,["hover_",_.Line],["hover_",_.Fill],["hover_",_.Hatch]]),a.define((({Bool:t,Float:e,Arrayable:s})=>({xs:[s(e),[]],ys:[s(e),[]],xs_units:[c.CoordinateUnits,"data"],ys_units:[c.CoordinateUnits,"data"],editable:[t,!1]}))),a.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})}, -function _(t,e,i,a,s){var o;a();const n=t(1),l=t(81),r=t(287),h=t(98),_=t(99),c=t(20),u=n.__importStar(t(80)),d=t(180),g=t(173),b=t(64),x=t(256),w=t(258),p=t(194),m=t(191),f=t(209),y=t(101),v=t(95),z=t(56),k=t(11),L=t(12),S=t(34),B=t(244),T=t(21),{round:A}=Math,R=(0,T.Enum)("adaptive","exact");class F extends l.AnnotationView{constructor(){super(...arguments),this._bbox=new b.BBox}get bbox(){return this._bbox}_get_size(){const{width:t,height:e}=this.bbox,{margin:i}=this.model;return{width:t+2*i,height:e+2*i}}initialize(){super.initialize();const{ticker:t}=this.model;this.axis=new p.LinearAxis({ticker:t,...u.attrs_of(this.model,"bar_",u.Line,"axis_")}),this.range=(()=>{const{range:t,orientation:e}=this.model;if("auto"!=t)return t;{const{frame:t}=this.parent;switch(e){case"horizontal":return t.x_range;case"vertical":return t.y_range}}})()}async lazy_initialize(){await super.lazy_initialize();const t=(()=>{const t=new _.Range1d,e=new _.Range1d,i=new _.Range1d,a=new _.Range1d;return this.axis_scale=new y.LinearScale({source_range:t,target_range:e}),this.cross_scale=new y.LinearScale({source_range:i,target_range:a}),"horizontal"==this.model.orientation?new v.CoordinateTransform(this.axis_scale,this.cross_scale):new v.CoordinateTransform(this.cross_scale,this.axis_scale)})();this.axis_view=await(0,z.build_view)(this.axis,{parent:this.plot_view}),this.axis_view.coordinates=t,this.axis_view.panel=new g.SidePanel("horizontal"==this.model.orientation?"below":"right"),this.axis_view.update_layout()}remove(){this.axis_view.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.request_paint()})),this.connect(this.range.change,(()=>{this.request_paint()}))}update_layout(){this.update_geometry();const{panel:t}=this;this.layout=null!=t?new g.SideLayout(t,(()=>this.get_size())):void 0}update_geometry(){super.update_geometry()}get horizontal(){return"horizontal"==this.model.orientation}text_layout(t){const{text:e,location:i,align:a,visuals:s}=t,{orientation:o}=this.model,n=new d.TextBox({text:e}),l=new g.SidePanel(i);n.visuals=s.values();const r=(()=>{switch(i){case"above":case"below":return"horizontal";default:return o}})();n.angle=l.get_label_angle_heuristic(r),n.base_font_size=this.plot_view.base_font_size,n.position={sx:0,sy:0,x_anchor:"left",y_anchor:"top"},n.align="auto";const h=new x.TextLayout(n);h.absolute=!0;const _="horizontal"==o,c=_?a:void 0,u=_?void 0:a;return h.set_sizing({width_policy:"min",height_policy:"min",visible:""!=e&&s.doit,halign:c,valign:u}),h}compute_geometry(){super.compute_geometry();const{orientation:t,bar_length:e,length_sizing:i,padding:a,margin:s,location:o}=this.model,{border_line:n,bar_line:l}=this.visuals,r=l.line_width.get_value(),h=n.line_width.get_value(),{frame:_}=this.parent,c="horizontal"==t?_.bbox.width:_.bbox.height,u=0<=e&&e<=1?e:(0,k.clamp)(e/c,0,1),{new_value:d,new_unit:g,scale_factor:p,exact:m}=(()=>{const{unit:t,dimensional:e}=this.model,a=this.range.span*u;return e.compute(a,t,"exact"==i)})(),f=A(c*u*p),y=(()=>{const{label:t}=this.model;return(0,B.process_placeholders)(t,((t,e,i)=>{switch(e){case"value":return m?null!=i?(0,B.sprintf)(i,d):d.toFixed(2):`${d}`;case"unit":if("short"===(i??"short"))return g;default:return null}}))})();this.label_layout=this.text_layout({text:y,location:this.model.label_location,align:this.model.label_align,visuals:this.visuals.label_text}),this.title_layout=this.text_layout({text:this.model.title,location:this.model.title_location,align:this.model.title_align,visuals:this.visuals.title_text});const v="horizontal"==t?{width:f,height:r}:{width:r,height:f},z=this.axis_view.layout;(0,L.assert)(null!=z),this.axis_layout=z,z.absolute=!0,"horizontal"==t?z.set_sizing({width_policy:"fixed",width:v.width,height_policy:"min",valign:"center"}):z.set_sizing({width_policy:"min",height_policy:"fixed",height:v.height,halign:"center"}),this.box_layout=(()=>{const t={above:[],below:[],left:[],right:[]};function e(e,i,a){e.visible&&t[i].push(function(t,e){const i=new x.FixedLayout;return i.absolute=!0,i.set_sizing("left"==t||"right"==t?{width_policy:"fixed",width:e}:{height_policy:"fixed",height:e}),i}(i,a),e)}e(this.label_layout,this.model.label_location,this.model.label_standoff),e(this.title_layout,this.model.title_location,this.model.title_standoff);const i=t.above.length,a=t.left.length,s=[{layout:z,row:i,col:a}];for(const[e,o]of(0,S.enumerate)(t.above))s.push({layout:e,row:i-o-1,col:a});for(const[e,o]of(0,S.enumerate)(t.below))s.push({layout:e,row:i+o+1,col:a});for(const[e,o]of(0,S.enumerate)(t.left))s.push({layout:e,row:i,col:a-o-1});for(const[e,o]of(0,S.enumerate)(t.right))s.push({layout:e,row:i,col:a+o+1});return new w.Grid(s)})();const{box_layout:T}=this;T.absolute=!0,T.position={left:a,top:a},T.set_sizing(),T.compute();const[R,F]=(()=>{const{x_range:e,y_range:i}=this.axis_view.bbox;return"horizontal"==t?[e,i]:[i,e]})();this.axis_scale.source_range.end=d,this.axis_scale.target_range.setv(R),this.cross_scale.source_range.end=1,this.cross_scale.target_range.setv(F);const P=h+a+T.bbox.width+a+h,V=h+a+T.bbox.height+a+h,q=null!=this.layout?this.layout:this.plot_view.frame,[C,M]=q.bbox.ranges,{sx:N,sy:O}=(()=>{switch(o){case"top_left":return{sx:C.start+s,sy:M.start+s};case"top":case"top_center":return{sx:(C.end+C.start)/2-P/2,sy:M.start+s};case"top_right":return{sx:C.end-s-P,sy:M.start+s};case"bottom_right":return{sx:C.end-s-P,sy:M.end-s-V};case"bottom":case"bottom_center":return{sx:(C.end+C.start)/2-P/2,sy:M.end-s-V};case"bottom_left":return{sx:C.start+s,sy:M.end-s-V};case"left":case"center_left":return{sx:C.start+s,sy:(M.end+M.start)/2-V/2};case"center":case"center_center":return{sx:(C.end+C.start)/2-P/2,sy:(M.end+M.start)/2-V/2};case"right":case"center_right":return{sx:C.end-s-P,sy:(M.end+M.start)/2-V/2}}})();this._bbox=new b.BBox({left:N,top:O,width:P,height:V})}_draw_box(t){const{width:e,height:i}=this.bbox;t.beginPath(),t.rect(0,0,e,i),this.visuals.background_fill.apply(t),this.visuals.background_hatch.apply(t),this.visuals.border_line.apply(t)}_draw_axis(t){this.axis_view.paint()}_draw_text(t,e,i){const{bbox:a}=e,[s,o]=(()=>{const{orientation:t}=this.model,e="horizontal"==t;switch(i){case"left":return e?[0,0]:[0,a.height];case"right":return e?[0,0]:[a.width,0];case"above":case"below":return[0,0]}})(),{left:n,top:l}=a.translate(s,o);t.translate(n,l),e.text.paint(t),t.translate(-n,-l)}_draw_label(t){this._draw_text(t,this.label_layout,this.model.label_location)}_draw_title(t){this._draw_text(t,this.title_layout,this.model.title_location)}_paint(){const{ctx:t}=this.layer,{left:e,top:i}=this.bbox;t.translate(e,i),this.box_layout.visible&&this._draw_box(t),this.axis_layout.visible&&this._draw_axis(t),this.label_layout.visible&&this._draw_label(t),this.title_layout.visible&&this._draw_title(t),t.translate(-e,-i)}}i.ScaleBarView=F,F.__name__="ScaleBarView";class P extends l.Annotation{constructor(t){super(t)}}i.ScaleBar=P,o=P,P.__name__="ScaleBar",o.prototype.default_view=F,o.mixins([["bar_",u.Line],["label_",u.Text],["title_",u.Text],["border_",u.Line],["background_",u.Fill],["background_",u.Hatch]]),o.define((({NonNegative:t,Float:e,Str:i,Ref:a,Or:s,Auto:o})=>({range:[s(a(h.Range),o),"auto"],unit:[i,"m"],dimensional:[a(r.Dimensional),()=>new r.MetricLength],orientation:[c.Orientation,"horizontal"],bar_length:[t(e),.2],length_sizing:[R,"adaptive"],location:[c.Anchor,"top_right"],label:[i,"@{value} @{unit}"],label_align:[c.Align,"center"],label_location:[c.Location,"below"],label_standoff:[e,5],title:[i,""],title_align:[c.Align,"center"],title_location:[c.Location,"above"],title_standoff:[e,5],margin:[e,10],padding:[e,10],ticker:[a(m.Ticker),()=>new f.FixedTicker({ticks:[]})]}))),o.override({bar_line_width:2,border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}, +function _(t,e,i,s,n){var o;s();const l=t(1),r=t(81),a=t(285),c=t(20),h=l.__importStar(t(80)),_=t(15),d=t(173),b=t(64),u=t(10),g=t(9),p=t(34),m=t(8),f=t(180),x=t(257),w=t(53),{max:v,ceil:y}=Math;class k extends x.ContentLayoutable{constructor(t,e,i,s){super(),this.item=t,this.label=e,this.text=i,this.settings=s}get field(){return this.item.get_field_from_label_prop()}_content_size(){const t=this.text.size(),{glyph_width:e,glyph_height:i,label_standoff:s,label_width:n,label_height:o}=this.settings,l=e+s+v(t.width,n),r=v(i,t.height,o);return new x.Sizeable({width:l,height:r})}}k.__name__="LegendEntry";class L extends r.AnnotationView{constructor(){super(...arguments),this._bbox=new b.BBox}_get_size(){const{width:t,height:e}=this.bbox,{margin:i}=this.model;return{width:t+2*i,height:e+2*i}}update_layout(){this.update_geometry();const{panel:t}=this;this.layout=null!=t?new d.SideLayout(t,(()=>this.get_size())):void 0}connect_signals(){super.connect_signals();const t=()=>this.request_paint();this.connect(this.model.change,t),this.connect(this.model.item_change,t)}get bbox(){return this._bbox}get padding(){return null!=this.model.border_line_color?this.model.padding:0}update_geometry(){super.update_geometry();const{spacing:t,orientation:e}=this.model,i="vertical"==e,{padding:s}=this,n=s,o=s,{title:l}=this.model,r=new f.TextBox({text:l??""});r.position={sx:0,sy:0,x_anchor:"left",y_anchor:"top"},r.visuals=this.visuals.title_text.values();const a=new d.SidePanel(this.model.title_location);r.angle=a.get_label_angle_heuristic("parallel");const c=[];for(const t of this.model.items){t.legend=this.model;const e=t.get_labels_list_from_label_prop();for(const i of e){const e=new f.TextBox({text:`${i}`});e.position={sx:0,sy:0,x_anchor:"left",y_anchor:"center"},e.visuals=this.visuals.label_text.values();const s=new k(t,i,e,this.model);s.set_sizing({visible:t.visible}),c.push({layout:s,row:0,col:0})}}const{ncols:h,nrows:_}=(()=>{let{ncols:t,nrows:e}=this.model;const s=c.length;return i?("auto"!=e||(e="auto"!=t?y(s/t):1/0),t=1/0):("auto"!=t||(t="auto"!=e?y(s/e):1/0),e=1/0),{ncols:t,nrows:e}})();let u=0,g=0;for(const t of c)t.row=u,t.col=g,i?(u+=1,u>=_&&(u=0,g+=1)):(g+=1,g>=h&&(g=0,u+=1));const p=new x.Grid(c);this.grid=p,p.spacing=t,p.set_sizing();const m=new x.TextLayout(r);this.title_panel=m;const w=""!=r.text&&this.visuals.title_text.doit;m.set_sizing({visible:w});const v=(()=>{if(!w)return new x.Column([p]);switch(this.model.title_location){case"above":return new x.Column([m,p]);case"below":return new x.Column([p,m]);case"left":return new x.Row([m,p]);case"right":return new x.Row([p,m])}})();this.border_box=v,v.position={left:n,top:o},v.spacing=this.model.title_standoff,v.set_sizing(),v.compute();const L=s+v.bbox.width+s,z=s+v.bbox.height+s;this._bbox=new b.BBox({left:0,top:0,width:L,height:z})}compute_geometry(){super.compute_geometry();const{margin:t,location:e}=this.model,{width:i,height:s}=this.bbox,n=null!=this.layout?this.layout:this.plot_view.frame,[o,l]=n.bbox.ranges;let r,a;if((0,m.isString)(e))switch(e){case"top_left":r=o.start+t,a=l.start+t;break;case"top":case"top_center":r=(o.end+o.start)/2-i/2,a=l.start+t;break;case"top_right":r=o.end-t-i,a=l.start+t;break;case"bottom_right":r=o.end-t-i,a=l.end-t-s;break;case"bottom":case"bottom_center":r=(o.end+o.start)/2-i/2,a=l.end-t-s;break;case"bottom_left":r=o.start+t,a=l.end-t-s;break;case"left":case"center_left":r=o.start+t,a=(l.end+l.start)/2-s/2;break;case"center":case"center_center":r=(o.end+o.start)/2-i/2,a=(l.end+l.start)/2-s/2;break;case"right":case"center_right":r=o.end-t-i,a=(l.end+l.start)/2-s/2}else{const[t,i]=e;r=n.bbox.xview.compute(t),a=n.bbox.yview.compute(i)-s}this._bbox=new b.BBox({left:r,top:a,width:i,height:s})}interactive_hit(t,e){return this.bbox.contains(t,e)}_hit_test(t,e){const{left:i,top:s}=this.bbox;t-=i+this.grid.bbox.left,e-=s+this.grid.bbox.top;for(const i of this.grid)if(i.bbox.contains(t,e))return{type:"entry",entry:i};return null}cursor(t,e){return("none"!=this.model.click_policy||(0,g.dict)(this.model.js_event_callbacks).has("legend_item_click"))&&null!=this._hit_test(t,e)?"pointer":null}on_hit(t,e){const i=(()=>{switch(this.model.click_policy){case"hide":return t=>t.visible=!t.visible;case"mute":return t=>t.muted=!t.muted;case"none":return t=>{}}})(),s=this._hit_test(t,e);if(null!=s){const{item:t}=s.entry;this.model.trigger_event(new w.LegendItemClick(this.model,t));for(const e of t.renderers)i(e);return!0}return!1}_paint(){if(0==this.model.items.length)return;if(!(0,u.some)(this.model.items,(t=>t.visible)))return;const{ctx:t}=this.layer;t.save(),this._draw_legend_box(t),this._draw_legend_items(t),this._draw_title(t),t.restore()}_draw_legend_box(t){const{x:e,y:i,width:s,height:n}=this.bbox;t.beginPath(),t.rect(e,i,s,n),this.visuals.background_fill.apply(t),this.visuals.border_line.apply(t)}_draw_title(t){const{title:e}=this.model;if(null==e||0==e.length||!this.visuals.title_text.doit)return;const{left:i,top:s}=this.bbox;switch(t.save(),t.translate(i,s),t.translate(this.title_panel.bbox.left,this.title_panel.bbox.top),this.model.title_location){case"left":t.translate(0,this.title_panel.bbox.height);break;case"right":t.translate(this.title_panel.bbox.width,0)}this.title_panel.text.paint(t),t.restore()}_draw_legend_items(t){const e=(()=>{switch(this.model.click_policy){case"none":return t=>!0;case"hide":return t=>(0,u.every)(t.renderers,(t=>t.visible));case"mute":return t=>(0,u.every)(t.renderers,(t=>!t.muted))}})(),i=(t,e,i)=>{if(!this.visuals.item_background_fill.doit)return!1;switch(this.model.item_background_policy){case"every":return!0;case"even":return e%2==0==(i%2==0);case"odd":return e%2==0!=(i%2==0);case"none":return!1}},{left:s,top:n}=this.bbox;t.translate(s,n),t.translate(this.grid.bbox.left,this.grid.bbox.top);for(const[{layout:s,row:n,col:o},l]of(0,p.enumerate)(this.grid.items)){const{bbox:l,text:r,item:a,label:c,field:h,settings:_}=s,{glyph_width:d,glyph_height:b,label_standoff:u}=_,{left:g,top:p,width:m,height:f}=l;t.translate(g,p),i(0,n,o)&&(t.beginPath(),t.rect(0,0,m,f),this.visuals.item_background_fill.apply(t));const x=f/2,w=0,v=x-b/2,y=w+d,k=v+b;for(const e of a.renderers){const i=this.plot_view.views.find_one(e);i?.draw_legend(t,w,y,v,k,h,c,a.index)}t.translate(y+u,x),r.paint(t),t.translate(-y-u,-x),e(a)||(t.beginPath(),t.rect(0,0,m,f),this.visuals.inactive_fill.set_value(t),t.fill()),t.translate(-g,-p)}t.translate(-this.grid.bbox.left,-this.grid.bbox.top),t.translate(-s,-n)}}i.LegendView=L,L.__name__="LegendView";class z extends r.Annotation{constructor(t){super(t)}initialize(){super.initialize(),this.item_change=new _.Signal0(this,"item_change")}}i.Legend=z,o=z,z.__name__="Legend",o.prototype.default_view=L,o.mixins([["label_",h.Text],["title_",h.Text],["inactive_",h.Fill],["border_",h.Line],["background_",h.Fill],["item_background_",h.Fill]]),o.define((({Float:t,Int:e,Str:i,List:s,Tuple:n,Or:o,Ref:l,Nullable:r,Positive:h,Auto:_})=>({orientation:[c.Orientation,"vertical"],ncols:[o(h(e),_),"auto"],nrows:[o(h(e),_),"auto"],location:[o(c.LegendLocation,n(t,t)),"top_right"],title:[r(i),null],title_location:[c.Location,"above"],title_standoff:[t,5],label_standoff:[t,5],glyph_height:[t,20],glyph_width:[t,20],label_height:[t,20],label_width:[t,20],margin:[t,10],padding:[t,10],spacing:[t,3],items:[s(l(a.LegendItem)),[]],click_policy:[c.LegendClickPolicy,"none"],item_background_policy:[c.AlternationPolicy,"none"]}))),o.override({border_line_color:"#e5e5e5",border_line_alpha:.5,border_line_width:1,background_fill_color:"#ffffff",background_fill_alpha:.95,item_background_fill_color:"#f1f1f1",item_background_fill_alpha:.8,inactive_fill_color:"white",inactive_fill_alpha:.7,label_text_font_size:"13px",label_text_baseline:"middle",title_text_font_size:"13px",title_text_font_style:"italic"})}, +function _(e,r,n,l,t){var i;l();const s=e(1),o=e(51),_=e(218),a=e(128),u=e(28),d=s.__importStar(e(18)),c=e(19),h=e(10);class f extends o.Model{constructor(e){super(e)}_check_data_sources_on_renderers(){if(null!=this.get_field_from_label_prop()){if(this.renderers.length<1)return!1;const e=this.renderers[0].data_source;for(const r of this.renderers)if(r.data_source!=e)return!1}return!0}_check_field_label_on_data_source(){const e=this.get_field_from_label_prop();if(null!=e){if(this.renderers.length<1)return!1;const r=this.renderers[0].data_source;if(!(0,h.includes)(r.columns(),e))return!1}return!0}initialize(){super.initialize(),this.legend=null,this.connect(this.change,(()=>this.legend?.item_change.emit()));this._check_data_sources_on_renderers()||c.logger.error("Non matching data sources on legend item renderers");this._check_field_label_on_data_source()||c.logger.error(`Bad column name on label: ${this.label}`)}get_field_from_label_prop(){const{label:e}=this;return(0,u.isField)(e)?e.field:null}get_labels_list_from_label_prop(){if(!this.visible)return[];const{index:e}=this;if(null!=e&&this.renderers.every((r=>!r.view.indices_map.has(e))))return[];if((0,u.isValue)(this.label)){const{value:e}=this.label;return null!=e?[e]:[]}const r=this.get_field_from_label_prop();if(null!=r){let e;if(0==this.renderers.length)return["No source found"];if(e=this.renderers[0].data_source,e instanceof a.ColumnarDataSource){const n=e.get_column(r);return null!=n?(0,h.uniq)(Array.from(n)):["Invalid field"]}}return[]}}n.LegendItem=f,i=f,f.__name__="LegendItem",i.define((({Bool:e,Int:r,List:n,Ref:l,Nullable:t})=>({label:[d.NullStringSpec,null],renderers:[n(l(_.GlyphRenderer)),[]],index:[t(r),null],visible:[e,!0]})))}, +function _(t,e,s,n,i){var o,a;n();const l=t(1),r=t(81),h=t(106),_=l.__importStar(t(80)),c=t(20),y=t(229),p=t(15),d=t(64),u=t(13),v=t(12);class x{constructor(t=[],e=[]){this.xs=t,this.ys=e,(0,v.assert)(t.length==e.length)}clone(){return new x(this.xs.slice(),this.ys.slice())}[Symbol.iterator](){return this.nodes()}*nodes(){const{xs:t,ys:e,n:s}=this;for(let n=0;n=3){const n={x:t[s-1],y:e[s-1]},i={x:t[0],y:e[0]};yield[n,i,s-1]}}contains(t,e){return(0,y.point_in_poly)(t,e,this.xs,this.ys)}get bbox(){const[t,e,s,n]=(0,u.minmax2)(this.xs,this.ys);return new d.BBox({x0:t,x1:e,y0:s,y1:n})}get n(){return this.xs.length}translate(t,e,...s){const n=this.clone(),{xs:i,ys:o,n:a}=n;if(0!=s.length)for(const n of s){const s=n%a;i[s]+=t,o[s]+=e}else for(let s=0;sthis.request_paint()))}bounds(){const{xs_units:t,ys_units:e}=this.model;if("data"==t&&"data"==e){const{xs:t,ys:e}=this.model,[s,n,i,o]=(0,u.minmax2)(t,e);return{x0:s,x1:n,y0:i,y1:o}}return(0,d.empty)()}log_bounds(){return(0,d.empty)()}_mappers(){const t=(t,e,s,n)=>{switch(t){case"canvas":return n;case"screen":return s;case"data":return e}},e=this.model,{frame:s,canvas:n}=this.plot_view,{x_scale:i,y_scale:o}=s,{x_view:a,y_view:l}=s.bbox,{x_screen:r,y_screen:h}=n.bbox;return{x:t(e.xs_units,i,a,r),y:t(e.ys_units,o,l,h)}}_paint(){const{xs:t,ys:e}=this.model;(0,v.assert)(t.length==e.length),this.poly=(()=>{const{x:s,y:n}=this._mappers();return new x(s.v_compute(t),n.v_compute(e))})();const{ctx:s}=this.layer;s.beginPath();for(const[t,e]of this.poly)s.lineTo(t,e);const{_is_hovered:n,visuals:i}=this,o=n&&i.hover_fill.doit?i.hover_fill:i.fill,a=n&&i.hover_hatch.doit?i.hover_hatch:i.hatch,l=n&&i.hover_line.doit?i.hover_line:i.line;this.poly.n>=3&&(s.closePath(),o.apply(s),a.apply(s)),l.apply(s)}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&this.poly.contains(t,e)}_hit_test(t,e){const{abs:s}=Math,n=Math.max(2.5,this.model.line_width/2);for(const[i,o,a]of this.poly)if(s(i-t){const{poly:e,target:s}=this._pan_state,{dx:n,dy:i}=t;switch(s.type){case"node":{const{i:t}=s;return e.translate(n,i,t)}case"edge":{const{i:t}=s;return e.translate(n,i,t,t+1)}case"area":return e.translate(n,i)}})(),{x:s,y:n}=this._mappers(),i=s.v_invert(e.xs),o=n.v_invert(e.ys);this.model.update({xs:i,ys:o}),this.model.pan.emit(["pan",t.modifiers])}on_pan_end(t){this._pan_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t,hover_fill:e,hover_hatch:s}=this.visuals;return t.doit||e.doit||s.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const s=this._pan_state?.target??this._hit_test(t,e);if(null==s||!this._can_hit(s))return null;switch(s.type){case"node":case"edge":case"area":return"move"}}}s.PolyAnnotationView=m,o=h.auto_ranged,m.__name__="PolyAnnotationView";class f extends r.Annotation{constructor(t){super(t),this.pan=new p.Signal(this,"pan")}update({xs:t,ys:e}){this.setv({xs:t.slice(),ys:e.slice(),visible:!0})}clear(){this.setv({xs:[],ys:[],visible:!1})}}s.PolyAnnotation=f,a=f,f.__name__="PolyAnnotation",a.prototype.default_view=m,a.mixins([_.Line,_.Fill,_.Hatch,["hover_",_.Line],["hover_",_.Fill],["hover_",_.Hatch]]),a.define((({Bool:t,Float:e,Arrayable:s})=>({xs:[s(e),[]],ys:[s(e),[]],xs_units:[c.CoordinateUnits,"data"],ys_units:[c.CoordinateUnits,"data"],editable:[t,!1]}))),a.override({fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_alpha:.3,hover_fill_color:null,hover_fill_alpha:.4,hover_line_color:null,hover_line_alpha:.3})}, +function _(t,e,i,a,n){var o;a();const s=t(1),r=t(81),l=t(288),c=t(98),h=t(99),_=t(20),u=s.__importStar(t(20)),d=s.__importStar(t(80)),b=t(180),g=t(173),x=t(64),w=t(257),p=t(259),m=t(194),f=t(191),y=t(210),v=t(101),z=t(104),S=t(95),k=t(56),L=t(11),A=t(12),B=t(34),F=t(8),T=t(245),R=t(21),O=t(185),V=s.__importStar(t(186)),C=t(109),{round:E}=Math,M=(0,R.Or)(u.Anchor,(0,R.Tuple)((0,R.Or)(R.Float,C.Factor,_.HAlign),(0,R.Or)(R.Float,C.Factor,_.VAlign))),P=(0,R.Enum)("data","screen","view","percent"),q=(0,R.Enum)("screen","data","percent"),H=(0,R.Enum)("adaptive","exact");class N extends r.AnnotationView{constructor(){super(...arguments),this._bbox=new x.BBox}get bbox(){return this._bbox}_get_size(){const{width:t,height:e}=this.bbox,{margin:i}=this.model;return{width:t+2*i,height:e+2*i}}initialize(){super.initialize();const{ticker:t}=this.model;this.axis=new m.LinearAxis({ticker:t,...d.attrs_of(this.model,"bar_",d.Line,"axis_")}),this.range=(()=>{const{range:t,orientation:e}=this.model;if("auto"!=t)return t;{const{frame:t}=this.parent;switch(e){case"horizontal":return t.x_range;case"vertical":return t.y_range}}})()}async lazy_initialize(){await super.lazy_initialize();const t=(()=>{const t=new h.Range1d,e=new h.Range1d,i=new h.Range1d,a=new h.Range1d;return this.axis_scale=new v.LinearScale({source_range:t,target_range:e}),this.cross_scale=new v.LinearScale({source_range:i,target_range:a}),"horizontal"==this.model.orientation?new S.CoordinateTransform(this.axis_scale,this.cross_scale):new S.CoordinateTransform(this.cross_scale,this.axis_scale)})();this.axis_view=await(0,k.build_view)(this.axis,{parent:this.plot_view}),this.axis_view.coordinates=t,this.axis_view.panel=new g.SidePanel("horizontal"==this.model.orientation?"below":"right"),this.axis_view.update_layout()}remove(){this.axis_view.remove(),super.remove()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.request_paint()})),this.connect(this.range.change,(()=>{this.request_paint()}))}update_layout(){this.update_geometry();const{panel:t}=this;this.layout=null!=t?new g.SideLayout(t,(()=>this.get_size())):void 0}update_geometry(){super.update_geometry()}get horizontal(){return"horizontal"==this.model.orientation}text_layout(t){const{text:e,location:i,align:a,visuals:n}=t,{orientation:o}=this.model,s=new b.TextBox({text:e}),r=new g.SidePanel(i);s.visuals=n.values();const l=(()=>{switch(i){case"above":case"below":return"horizontal";default:return o}})();s.angle=r.get_label_angle_heuristic(l),s.base_font_size=this.plot_view.base_font_size,s.position={sx:0,sy:0,x_anchor:"left",y_anchor:"top"},s.align="auto";const c=new w.TextLayout(s);c.absolute=!0;const h="horizontal"==o,_=h?a:void 0,u=h?void 0:a;return c.set_sizing({width_policy:"min",height_policy:"min",visible:""!=e&&n.doit,halign:_,valign:u}),c}compute_geometry(){super.compute_geometry();const{orientation:t,length_sizing:e,padding:i,margin:a}=this.model,{border_line:n,bar_line:o}=this.visuals,s=o.line_width.get_value(),r=n.line_width.get_value(),{frame:l}=this.parent,c="horizontal"==t?l.bbox.width:l.bbox.height,h=(()=>{const{bar_length:e,bar_length_units:i}=this.model;switch(i){case"screen":return 0<=e&&e<=1?e:(0,L.clamp)(e/c,0,1);case"data":{const i="horizontal"==t?this.coordinates.x_scale:this.coordinates.y_scale;(0,A.assert)(i instanceof v.LinearScale||i instanceof z.CategoricalScale);const[a,n]=i.r_compute(0,e);return Math.abs(n-a)/c}case"percent":return(0,L.clamp)(e,0,1)}})(),{new_value:_,new_unit:u,scale_factor:d,exact:b}=(()=>{const{unit:t,dimensional:i}=this.model,a=this.range.span*h;return i.compute(a,t,"exact"==e)})(),g=E(c*h*d),m=(()=>{const{label:t}=this.model;return(0,T.process_placeholders)(t,((t,e,i)=>{switch(e){case"value":return b?null!=i?(0,T.sprintf)(i,_):_.toFixed(2):`${_}`;case"unit":if("short"===(i??"short"))return u;default:return null}}))})();this.label_layout=this.text_layout({text:m,location:this.model.label_location,align:this.model.label_align,visuals:this.visuals.label_text}),this.title_layout=this.text_layout({text:this.model.title,location:this.model.title_location,align:this.model.title_align,visuals:this.visuals.title_text});const f="horizontal"==t?{width:g,height:s}:{width:s,height:g},y=this.axis_view.layout;(0,A.assert)(null!=y),this.axis_layout=y,y.absolute=!0,"horizontal"==t?y.set_sizing({width_policy:"fixed",width:f.width,height_policy:"min",valign:"center"}):y.set_sizing({width_policy:"min",height_policy:"fixed",height:f.height,halign:"center"}),this.box_layout=(()=>{const t={above:[],below:[],left:[],right:[]};function e(e,i,a){e.visible&&t[i].push(function(t,e){const i=new w.FixedLayout;return i.absolute=!0,i.set_sizing("left"==t||"right"==t?{width_policy:"fixed",width:e}:{height_policy:"fixed",height:e}),i}(i,a),e)}e(this.label_layout,this.model.label_location,this.model.label_standoff),e(this.title_layout,this.model.title_location,this.model.title_standoff);const i=t.above.length,a=t.left.length,n=[{layout:y,row:i,col:a}];for(const[e,o]of(0,B.enumerate)(t.above))n.push({layout:e,row:i-o-1,col:a});for(const[e,o]of(0,B.enumerate)(t.below))n.push({layout:e,row:i+o+1,col:a});for(const[e,o]of(0,B.enumerate)(t.left))n.push({layout:e,row:i,col:a-o-1});for(const[e,o]of(0,B.enumerate)(t.right))n.push({layout:e,row:i,col:a+o+1});return new p.Grid(n)})();const{box_layout:S}=this;S.absolute=!0,S.position={left:i,top:i},S.set_sizing(),S.compute();const[k,R]=(()=>{const{x_range:e,y_range:i}=this.axis_view.bbox;return"horizontal"==t?[e,i]:[i,e]})();this.axis_scale.source_range.end=_,this.axis_scale.target_range.setv(k),this.cross_scale.source_range.end=1,this.cross_scale.target_range.setv(R);const O=(()=>{const{location:t}=this.model;if((0,F.isString)(t)){const e=(()=>{switch(t){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"center":return"center_center";case"right":return"center_right";default:return t}})(),[i,a]=e.split("_");return{x:a,y:i}}{const[e,i]=t;return{x:e,y:i}}})(),{x:C,y:M}=(()=>{const t=this.layout??this.plot_view.frame,e=t.bbox.shrink_by(a),i=(()=>{const{x:i}=O;switch(i){case"left":return e.left;case"center":return e.x_center;case"right":return e.right}return(()=>{switch(this.model.x_units){case"data":return this.coordinates.x_scale;case"screen":return t.bbox.x_screen;case"view":return t.bbox.x_view;case"percent":return t.bbox.x_percent}})().compute(i)})(),n=(()=>{const{y:i}=O;switch(i){case"top":return e.top;case"center":return e.y_center;case"bottom":return e.right}return(()=>{switch(this.model.y_units){case"data":return this.coordinates.y_scale;case"screen":return t.bbox.y_screen;case"view":return t.bbox.y_view;case"percent":return t.bbox.y_percent}})().compute(i)})();return{x:i,y:n}})(),P=(()=>{const t=V.anchor(this.model.anchor);return{x:(()=>{if("auto"!=t.x)return t.x;switch(O.x){case"left":return 0;case"center":default:return.5;case"right":return 1}})(),y:(()=>{if("auto"!=t.y)return t.y;switch(O.y){case"top":return 0;case"center":default:return.5;case"bottom":return 1}})()}})(),q=r+i+S.bbox.width+i+r,H=r+i+S.bbox.height+i+r,N=C-P.x*q,D=M-P.y*H;this._bbox=new x.BBox({left:N,top:D,width:q,height:H})}_draw_box(t){const{width:e,height:i}=this.bbox;t.beginPath(),t.rect(0,0,e,i),this.visuals.background_fill.apply(t),this.visuals.background_hatch.apply(t),this.visuals.border_line.apply(t)}_draw_axis(t){this.axis_view.paint()}_draw_text(t,e,i){const{bbox:a}=e,[n,o]=(()=>{const{orientation:t}=this.model,e="horizontal"==t;switch(i){case"left":return e?[0,0]:[0,a.height];case"right":return e?[0,0]:[a.width,0];case"above":case"below":return[0,0]}})(),{left:s,top:r}=a.translate(n,o);t.translate(s,r),e.text.paint(t),t.translate(-s,-r)}_draw_label(t){this._draw_text(t,this.label_layout,this.model.label_location)}_draw_title(t){this._draw_text(t,this.title_layout,this.model.title_location)}_paint(){const{ctx:t}=this.layer,{left:e,top:i}=this.bbox;t.translate(e,i),this.box_layout.visible&&this._draw_box(t),this.axis_layout.visible&&this._draw_axis(t),this.label_layout.visible&&this._draw_label(t),this.title_layout.visible&&this._draw_title(t),t.translate(-e,-i)}}i.ScaleBarView=N,N.__name__="ScaleBarView";class D extends r.Annotation{constructor(t){super(t)}}i.ScaleBar=D,o=D,D.__name__="ScaleBar",o.prototype.default_view=N,o.mixins([["background_",d.Fill],["background_",d.Hatch],["bar_",d.Line],["border_",d.Line],["label_",d.Text],["title_",d.Text]]),o.define((({NonNegative:t,Float:e,Str:i,Ref:a,Or:n,Auto:o})=>({anchor:[O.AutoAnchor,"auto"],bar_length:[t(e),.2],bar_length_units:[q,"screen"],dimensional:[a(l.Dimensional),()=>new l.MetricLength],label:[i,"@{value} @{unit}"],label_align:[_.Align,"center"],label_location:[_.Location,"below"],label_standoff:[e,5],length_sizing:[H,"adaptive"],location:[M,"top_right"],margin:[e,10],orientation:[_.Orientation,"horizontal"],padding:[e,10],range:[n(a(c.Range),o),"auto"],ticker:[a(f.Ticker),()=>new y.FixedTicker({ticks:[]})],title:[i,""],title_align:[_.Align,"center"],title_location:[_.Location,"above"],title_standoff:[e,5],unit:[i,"m"],x_units:[P,"data"],y_units:[P,"data"]}))),o.override({background_fill_alpha:.95,background_fill_color:"#ffffff",bar_line_width:2,border_line_alpha:.5,border_line_color:"#e5e5e5",border_line_width:1,label_text_baseline:"middle",label_text_font_size:"13px",title_text_font_size:"13px",title_text_font_style:"italic"})}, function _(e,t,n,s,r){var i,c,a,o,l,u,_;s();const m=e(51),d=e(12),f=e(9),p=e(13),{min:h}=Math;class g extends m.Model{constructor(e){super(e)}compute(e,t,n){const s=(()=>{const{include:e,exclude:t}=this,n=(0,f.entries)(this.get_basis()).map((([e,[t,n,s]])=>({name:e,factor:t,tex_name:n,long_name:s}))).filter((({name:n})=>(null==e||e.includes(n))&&!t.includes(n)));return(0,p.sort_by)(n,(({factor:e})=>e))})(),{ticks:r}=this,i=s.find((({name:e})=>e==t));(0,d.assert)(null!=i);const c=e*i.factor,[a,o]=(()=>{const e=(0,p.bisect_right_by)(s,c,(({factor:e})=>e));if(e>0){const{name:t,factor:n}=s[e-1];return[t,c/n]}return[t,c]})();n=n??0==r.length;const l=(()=>{if(n)return o;{const e=(0,p.bisect_right)(r,o);return r[h(e,r.length-1)]}})();return{new_value:l,new_unit:a,scale_factor:l*(c/o)/e/i.factor,exact:n}}}n.Dimensional=g,i=g,g.__name__="Dimensional",i.define((({Nullable:e,List:t,Str:n,Float:s})=>({ticks:[t(s)],include:[e(t(n)),null],exclude:[t(n),[]]})));class b extends g{constructor(e){super(e)}get_basis(){return this.basis}}n.CustomDimensional=b,c=b,b.__name__="CustomDimensional",c.define((({Dict:e,Tuple:t,Float:n,Str:s,Or:r})=>({basis:[e(r(t(n,s),t(n,s,s)))]})));class x extends g{constructor(e){super(e)}get_basis(){const{base_unit:e,full_unit:t}=this,n={};for(const[s,r,i,c]of a._metric_basis){const a=`${i}${e}`,o=null!=t?`${c}${t}`:void 0;n[`${s}${e}`]=[r,a,o]}return n}}n.Metric=x,a=x,x.__name__="Metric",a.define((({Str:e,Nullable:t})=>({base_unit:[e],full_unit:[t(e),null]}))),a.override({ticks:[1,2,5,10,15,20,25,50,75,100,125,150,200,250,500,750]}),x._metric_basis=[["Q",1e30,"Q","quetta"],["R",1e27,"R","ronna"],["Y",1e24,"Y","yotta"],["Z",1e21,"Z","zetta"],["E",1e18,"E","exa"],["P",1e15,"P","peta"],["T",1e12,"T","tera"],["G",1e9,"G","giga"],["M",1e6,"M","mega"],["k",1e3,"k","kilo"],["h",100,"h","hecto"],["",1,"",""],["d",.1,"d","deci"],["c",.01,"c","centi"],["m",.001,"m","milli"],["\xb5",1e-6,"\\mu","micro"],["n",1e-9,"n","nano"],["p",1e-12,"p","pico"],["f",1e-15,"f","femto"],["a",1e-18,"a","atto"],["z",1e-21,"z","zepto"],["y",1e-24,"y","yocto"],["r",1e-27,"r","ronto"],["q",1e-30,"q","quecto"]];class M extends x{constructor(e){super(e)}get_basis(){const e=super.get_basis(),t={};for(const[n,[s,r]]of(0,f.entries)(e))t[`${n}\u207b1`]=[s**-1,`${r}^{-1}`];return t}}n.ReciprocalMetric=M,M.__name__="ReciprocalMetric";class y extends x{constructor(e){super(e)}}n.MetricLength=y,o=y,y.__name__="MetricLength",o.override({base_unit:"m",exclude:["dm","hm"]});class k extends M{constructor(e){super(e)}}n.ReciprocalMetricLength=k,l=k,k.__name__="ReciprocalMetricLength",l.override({base_unit:"m",exclude:["dm","hm"]});class v extends b{constructor(e){super(e)}}n.ImperialLength=v,u=v,v.__name__="ImperialLength",u.override({basis:{in:[1/12,"in","inch"],ft:[1,"ft","foot"],yd:[3,"yd","yard"],ch:[66,"ch","chain"],fur:[660,"fur","furlong"],mi:[5280,"mi","mile"],lea:[15840,"lea","league"]},ticks:[1,3,6,12,60]});class $ extends b{constructor(e){super(e)}}n.Angular=$,_=$,$.__name__="Angular",_.override({basis:{"\xb0":[1,"^\\circ","degree"],"'":[1/60,"^\\prime","minute"],"''":[1/3600,"^{\\prime\\prime}","second"]},ticks:[1,3,6,12,60,120,240,360]})}, function _(l,o,e,i,t){var n;i();const s=l(1),a=l(81),_=s.__importStar(l(80));class c extends a.AnnotationView{connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_paint()))}_paint(){const{gradient:l,y_intercept:o}=this.model;if(null==l||null==o)return;const{frame:e}=this.plot_view,i=this.coordinates.x_scale,t=this.coordinates.y_scale,[n,s,a,_]=(()=>{if(0==l){const l=t.compute(o),i=l;return[e.bbox.left,e.bbox.right,l,i]}{const n=e.bbox.top,s=e.bbox.bottom,a=t.invert(n),_=t.invert(s),c=(a-o)/l,h=(_-o)/l,b=i.compute(c),r=i.compute(h);return b<=r?[b,r,n,s]:[r,b,s,n]}})(),{ctx:c}=this.layer;if(c.save(),this.visuals.above_fill.doit||this.visuals.above_hatch.doit){const{left:l,right:o,top:i,bottom:t}=e.bbox;c.beginPath(),c.moveTo(n,a),c.lineTo(n,a),c.lineTo(s,_),c.lineTo(s,_),a<=_?(sl&&c.lineTo(l,t)),c.closePath(),this.visuals.above_fill.apply(c),this.visuals.above_hatch.apply(c)}if(this.visuals.below_fill.doit||this.visuals.below_hatch.doit){const{left:l,right:o,top:i,bottom:t}=e.bbox;c.beginPath(),c.moveTo(n,a),c.lineTo(n,a),c.lineTo(s,_),a<=_?(c.lineTo(o,t),c.lineTo(l,t),n>l&&c.lineTo(l,i)):(s({gradient:[o(l),null],y_intercept:[o(l),null]}))),n.override({line_color:"black",above_fill_color:null,above_fill_alpha:.4,below_fill_color:null,below_fill_alpha:.4})}, -function _(t,e,i,n,s){var o;n();const a=t(1),l=t(81),r=a.__importStar(t(80)),h=t(20),_=t(228),c=t(15),d=t(12);class u{constructor(t,e){this.p0=t,this.p1=e}clone(){return new u({...this.p0},{...this.p1})}hit_test(t,e=2.5){return(0,_.dist_to_segment)(t,this.p0,this.p1)this.plot_view.request_paint(this)))}_paint(){const{location:t,location_units:e}=this.model;if(null==t)return;function i(t,e,i,n,s){switch(e){case"canvas":return s.compute(t);case"screen":return n.compute(t);case"data":return i.compute(t)}}const{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;let l,r,h,_;"width"==this.model.dimension?(h=i(t,e,a,n.bbox.yview,s.bbox.y_screen),r=n.bbox.left,_=n.bbox.width,l=this.model.line_width):(h=n.bbox.top,r=i(t,e,o,n.bbox.xview,s.bbox.y_screen),_=this.model.line_width,l=n.bbox.height);const c={x:r,y:h},d={x:r+_,y:h+l};this.line=new u(c,d);const{_is_hovered:p,visuals:m}=this,v=p&&m.hover_line.doit?m.hover_line:m.line,{ctx:b}=this.layer;b.save(),b.beginPath(),this.visuals.line.set_value(b),b.moveTo(r,h),"width"==this.model.dimension?b.lineTo(r+_,h):b.lineTo(r,h+l),v.apply(b),b.restore()}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&null!=this._hit_test(t,e)}_hit_test(t,e){const i=Math.max(2.5,this.model.line_width/2);return this.line.hit_test({x:t,y:e},i)?"edge":null}_can_hit(t){return!0}on_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:i}=t,n=this._hit_test(e,i);if(null!=n&&this._can_hit(n))return this._pan_state={line:this.line.clone(),target:n},this.model.pan.emit(["pan:start",t.modifiers]),!0}return!1}on_pan(t){function e(t,e,i,n,s){switch(e){case"canvas":return s.invert(t);case"screen":return n.invert(t);case"data":return i.invert(t)}}(0,d.assert)(null!=this._pan_state);const i=(()=>{const{dx:e,dy:i}=t,{line:n}=this._pan_state;return"width"==this.model.dimension?n.translate(0,i).p0.y:n.translate(e,0).p0.x})(),n=(()=>{const{location_units:t}=this.model,{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;return"width"==this.model.dimension?e(i,t,a,n.bbox.yview,s.bbox.y_screen):e(i,t,o,n.bbox.xview,s.bbox.y_screen)})();this.model.location=n,this.model.pan.emit(["pan",t.modifiers])}on_pan_end(t){this._pan_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t}=this.visuals;return t.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const i=this._pan_state?.target??this._hit_test(t,e);return null!=i&&this._can_hit(i)?"width"==this.model.dimension?"ns-resize":"ew-resize":null}}i.SpanView=p,p.__name__="SpanView";class m extends l.Annotation{constructor(t){super(t),this.pan=new c.Signal(this,"pan")}}i.Span=m,o=m,m.__name__="Span",o.prototype.default_view=p,o.mixins([r.Line,["hover_",r.Line]]),o.define((({Bool:t,Float:e,Nullable:i})=>({location:[i(e),null],location_units:[h.CoordinateUnits,"data"],dimension:[h.Dimension,"width"],editable:[t,!1]}))),o.override({line_color:"black",hover_line_color:null,hover_line_alpha:.3})}, -function _(e,t,i,o,s){var l;o();const a=e(81),n=e(291),r=e(56),_=e(63),h=e(173),u=e(64);class b extends a.AnnotationView{constructor(){super(...arguments),this._previous_bbox=new u.BBox}rendering_target(){return this.plot_view.canvas_view.events_el}update_layout(){this.layout=new h.SideLayout(this.panel,(()=>this.get_size()),!0)}after_layout(){this.toolbar_view.after_render()}has_finished(){return super.has_finished()&&this.toolbar_view.has_finished()}*children(){yield*super.children(),yield this.toolbar_view}async lazy_initialize(){await super.lazy_initialize(),this.toolbar_view=await(0,r.build_view)(this.model.toolbar,{parent:this.canvas})}connect_signals(){super.connect_signals(),this.plot_view.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.plot_view.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){this.toolbar_view.remove(),super.remove()}render(){super.render(),this.toolbar_view.render_to(this.shadow_el)}_paint(){(0,_.display)(this.el);const{bbox:e}=this.layout;if(!this._previous_bbox.equals(e)){(0,_.position)(this.el,e),this._previous_bbox=e,(0,_.empty)(this.el),this.el.style.position="absolute";const{style:t}=this.toolbar_view.el;this.toolbar_view.model.horizontal?(t.width="100%",t.height="unset"):(t.width="unset",t.height="100%")}this.model.visible||(0,_.undisplay)(this.el)}_get_size(){const{tools:e,logo:t}=this.model.toolbar;return{width:30*e.length+(null!=t?25:0)+15,height:30}}}i.ToolbarPanelView=b,b.__name__="ToolbarPanelView";class v extends a.Annotation{constructor(e){super(e)}}i.ToolbarPanel=v,l=v,v.__name__="ToolbarPanel",l.prototype.default_view=b,l.define((({Ref:e})=>({toolbar:[e(n.Toolbar)]})))}, -function _(t,e,o,s,i){var l;s();const n=t(1),a=t(19),r=t(63),c=t(56),_=t(111),h=t(20),u=t(10),v=t(34),p=t(9),f=t(8),d=t(292),g=t(293),m=t(294),b=t(299),w=t(301),y=t(302),T=t(304),x=t(296),z=n.__importStar(t(305)),L=z,P=n.__importStar(t(306)),I=P,C=n.__importDefault(t(123));class k extends _.UIElementView{constructor(){super(...arguments),this._tool_button_views=new Map,this._items=[],this._visible=null}get tool_buttons(){return this._tool_buttons.flat()}get overflow_el(){return this._overflow_el}get visible(){return!!this.model.visible&&(!this.model.autohide||(this._visible??!1))}*children(){yield*super.children(),yield*this._tool_button_views.values()}has_finished(){if(!super.has_finished())return!1;for(const t of this._tool_button_views.values())if(!t.has_finished())return!1;return!0}initialize(){super.initialize();const{location:t}=this.model,e="left"==t||"above"==t,o=this.model.horizontal?"vertical":"horizontal";this._overflow_menu=new x.ContextMenu([],{target:this.el,orientation:o,reversed:e,prevent_hide:t=>t.composedPath().includes(this._overflow_el)})}async lazy_initialize(){await super.lazy_initialize(),await this._build_tool_button_views()}connect_signals(){super.connect_signals();const{buttons:t,tools:e,location:o,autohide:s}=this.model.properties;this.on_change([t,e],(async()=>{await this._build_tool_button_views(),this.render()})),this.on_change(o,(()=>{this.render()})),this.on_change(s,(()=>{this._on_visible_change()}))}stylesheets(){return[...super.stylesheets(),z.default,P.default,C.default]}remove(){(0,c.remove_views)(this._tool_button_views),super.remove()}async _build_tool_button_views(){this._tool_buttons=(()=>{const{buttons:t}=this.model;if("auto"==t){return[...(0,p.values)(this.model.gestures).map((t=>t.tools)),this.model.actions,this.model.inspectors,this.model.auxiliaries].map((t=>t.filter((t=>t.visible)).map((t=>t.tool_button()))))}return(0,u.split)(t,null)})(),await(0,c.build_views)(this._tool_button_views,this._tool_buttons.flat(),{parent:this})}set_visibility(t){t!=this._visible&&(this._visible=t,this._on_visible_change())}_on_visible_change(){this.el.classList.toggle(L.hidden,!this.visible)}_after_resize(){super._after_resize(),this._after_render()}_menu_at(){switch(this.model.location){case"right":return{left_of:this._overflow_el};case"left":return{right_of:this._overflow_el};case"above":return{below:this._overflow_el};case"below":return{above:this._overflow_el}}}toggle_menu(){this._overflow_menu.toggle(this._menu_at())}render(){super.render(),this.el.classList.add(L[this.model.location]),this.el.classList.toggle(L.inner,this.model.inner),this._on_visible_change();const{horizontal:t}=this.model;if(this._overflow_el=(0,r.div)({class:L.tool_overflow,tabIndex:0},t?"\u22ee":"\u22ef"),this._overflow_el.addEventListener("click",(t=>{this.toggle_menu()})),this._overflow_el.addEventListener("keydown",(t=>{"Enter"==t.key&&this.toggle_menu()})),this._items=[],null!=this.model.logo){const t="grey"===this.model.logo?I.grey:null,e=(0,r.a)({href:"https://bokeh.org/",target:"_blank",class:[I.logo,I.logo_small,t]});this._items.push(e),this.shadow_el.appendChild(e)}for(const[,t]of this._tool_button_views)t.render_to(this.shadow_el);const e=this._tool_buttons.map((t=>t.map((t=>this._tool_button_views.get(t).el)))).filter((t=>0!=t.length)),o=()=>(0,r.div)({class:L.divider});for(const t of(0,v.join)(e,o))this._items.push(t),this.shadow_el.append(t)}_after_render(){super._after_render(),(0,u.clear)(this._overflow_menu.items),this.shadow_el.contains(this._overflow_el)&&this.shadow_el.removeChild(this._overflow_el);for(const t of this._items)this.shadow_el.contains(t)||this.shadow_el.append(t);const{horizontal:t}=this.model,{bbox:e}=this,o=t?L.right:L.above;let s=0,i=!1;for(const l of this._items)if(i)this.shadow_el.removeChild(l),this._overflow_menu.items.push({custom:l,class:o});else{const{width:n,height:a}=l.getBoundingClientRect();s+=t?n:a,i=t?s>e.width-15:s>e.height-15,i&&(this.shadow_el.removeChild(l),this.shadow_el.appendChild(this._overflow_el),this._overflow_menu.items.push({custom:l,class:o}))}this._overflow_menu.is_open&&this._overflow_menu.show(this._menu_at())}}o.ToolbarView=k,k.__name__="ToolbarView";const A=t(21),E=(0,A.Or)((0,A.Ref)(b.GestureTool),(0,A.Ref)(g.ToolProxy)),R=(0,A.Struct)({tools:(0,A.List)(E),active:(0,A.Nullable)(E)}),S=(0,A.Struct)({pan:R,scroll:R,pinch:R,rotate:R,move:R,tap:R,doubletap:R,press:R,pressup:R,multi:R});function B(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},multi:{tools:[],active:null}}}o.Inspection=d.Tool;class $ extends _.UIElement{constructor(t){super(t)}get horizontal(){return"above"==this.location||"below"==this.location}get vertical(){return"left"==this.location||"right"==this.location}connect_signals(){super.connect_signals();const{tools:t,active_drag:e,active_inspect:o,active_scroll:s,active_tap:i,active_multi:l}=this.properties;this.on_change([t,e,o,s,i,l],(()=>{this._init_tools(),this._activate_tools()}))}initialize(){super.initialize(),this._init_tools(),this._activate_tools()}_init_tools(){const t=new Set;function e(e,o){const s=(e instanceof g.ToolProxy?e.underlying:e)instanceof o;return s&&t.add(e),s}const o=this.tools.filter((t=>e(t,w.InspectTool)));this.inspectors=o;const s=this.tools.filter((t=>e(t,T.HelpTool)));this.help=s;const i=this.tools.filter((t=>e(t,y.ActionTool)));this.actions=i;const l={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)e(t,b.GestureTool)&&l[t.event_role].tools.push(t);for(const t of(0,p.typed_keys)(l)){const e=this.gestures[t];e.tools=(0,u.sort_by)(l[t].tools,(t=>t.default_order)),null!=e.active&&(0,u.every)(e.tools,(t=>t.id!=e.active?.id))&&(e.active=null)}const n=this.tools.filter((e=>!t.has(e)));this.auxiliaries=n}_activate_tools(){if("auto"==this.active_inspect);else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;else if((0,f.isArray)(this.active_inspect)){const t=(0,u.intersection)(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)(0,u.includes)(this.active_inspect,t)||(t.active=!1)}else{let t=!1;for(const e of this.inspectors)e!=this.active_inspect?e.active=!1:t=!0;t||(this.active_inspect=null)}const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t of(0,p.values)(this.gestures))for(const e of t.tools)this.connect(e.properties.active.change,(()=>this._active_change(e)));function e(t){switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi";default:return null}}function o(t,e){return"tap"==t||"pan"==t||e.supports_auto()}const s=t=>this.tools.includes(t)||t instanceof d.Tool&&this.tools.some((e=>e instanceof g.ToolProxy&&e.tools.includes(t)));for(const[i,l]of(0,p.entries)(this.gestures)){const n=i,a=e(n);if(null!=a){const e=this[a];if("auto"==e){if(0!=l.tools.length){const[e]=l.tools;o(n,e)&&t(e)}}else if(null!=e)s(e)?t(e):this[a]=null;else{this.gestures[n].active=null;for(const t of this.gestures[n].tools)t.active=!1}}}}_active_change(t){const{event_types:e}=t;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(a.logger.debug(`Toolbar: deactivating tool: ${e} for event type '${o}'`),e.active=!1),this.gestures[o].active=t,a.logger.debug(`Toolbar: activating tool: ${t} for event type '${o}'`)}else this.gestures[o].active=null}}o.Toolbar=$,l=$,$.__name__="Toolbar",l.prototype.default_view=k,l.define((({Bool:t,List:e,Or:s,Ref:i,Nullable:l,Auto:n})=>({tools:[e(s(i(d.Tool),i(g.ToolProxy))),[]],logo:[l(h.Logo),"normal"],autohide:[t,!1],active_drag:[l(s(E,n)),"auto"],active_inspect:[l(s(i(o.Inspection),e(i(o.Inspection)),i(g.ToolProxy),n)),"auto"],active_scroll:[l(s(E,n)),"auto"],active_tap:[l(s(E,n)),"auto"],active_multi:[l(s(E,n)),"auto"]}))),l.internal((({List:t,Bool:e,Ref:o,Or:s,Null:i,Auto:l})=>({buttons:[s(t(s(o(m.ToolButton),i)),l),"auto"],location:[h.Location,"right"],inner:[e,!1],gestures:[S,B],actions:[t(s(o(y.ActionTool),o(g.ToolProxy))),[]],inspectors:[t(s(o(w.InspectTool),o(g.ToolProxy))),[]],auxiliaries:[t(s(o(d.Tool),o(g.ToolProxy))),[]],help:[t(s(o(T.HelpTool),o(g.ToolProxy))),[]]})))}, +function _(t,e,i,n,s){var o;n();const a=t(1),l=t(81),r=a.__importStar(t(80)),h=t(20),_=t(229),c=t(15),d=t(12);class u{constructor(t,e){this.p0=t,this.p1=e}clone(){return new u({...this.p0},{...this.p1})}hit_test(t,e=2.5){return(0,_.dist_to_segment)(t,this.p0,this.p1)this.plot_view.request_paint(this)))}_paint(){const{location:t,location_units:e}=this.model;if(null==t)return;function i(t,e,i,n,s){switch(e){case"canvas":return s.compute(t);case"screen":return n.compute(t);case"data":return i.compute(t)}}const{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;let l,r,h,_;"width"==this.model.dimension?(h=i(t,e,a,n.bbox.yview,s.bbox.y_screen),r=n.bbox.left,_=n.bbox.width,l=this.model.line_width):(h=n.bbox.top,r=i(t,e,o,n.bbox.xview,s.bbox.y_screen),_=this.model.line_width,l=n.bbox.height);const c={x:r,y:h},d={x:r+_,y:h+l};this.line=new u(c,d);const{_is_hovered:p,visuals:m}=this,v=p&&m.hover_line.doit?m.hover_line:m.line,{ctx:b}=this.layer;b.save(),b.beginPath(),this.visuals.line.set_value(b),b.moveTo(r,h),"width"==this.model.dimension?b.lineTo(r+_,h):b.lineTo(r,h+l),v.apply(b),b.restore()}interactive_hit(t,e){return!(!this.model.visible||!this.model.editable)&&null!=this._hit_test(t,e)}_hit_test(t,e){const i=Math.max(2.5,this.model.line_width/2);return this.line.hit_test({x:t,y:e},i)?"edge":null}_can_hit(t){return!0}on_pan_start(t){if(this.model.visible&&this.model.editable){const{sx:e,sy:i}=t,n=this._hit_test(e,i);if(null!=n&&this._can_hit(n))return this._pan_state={line:this.line.clone(),target:n},this.model.pan.emit(["pan:start",t.modifiers]),!0}return!1}on_pan(t){function e(t,e,i,n,s){switch(e){case"canvas":return s.invert(t);case"screen":return n.invert(t);case"data":return i.invert(t)}}(0,d.assert)(null!=this._pan_state);const i=(()=>{const{dx:e,dy:i}=t,{line:n}=this._pan_state;return"width"==this.model.dimension?n.translate(0,i).p0.y:n.translate(e,0).p0.x})(),n=(()=>{const{location_units:t}=this.model,{frame:n,canvas:s}=this.plot_view,{x_scale:o,y_scale:a}=this.coordinates;return"width"==this.model.dimension?e(i,t,a,n.bbox.yview,s.bbox.y_screen):e(i,t,o,n.bbox.xview,s.bbox.y_screen)})();this.model.location=n,this.model.pan.emit(["pan",t.modifiers])}on_pan_end(t){this._pan_state=null,this.model.pan.emit(["pan:end",t.modifiers])}get _has_hover(){const{hover_line:t}=this.visuals;return t.doit}on_enter(t){const{_has_hover:e}=this;return e&&(this._is_hovered=!0,this.request_paint()),e}on_move(t){}on_leave(t){this._has_hover&&(this._is_hovered=!1,this.request_paint())}cursor(t,e){const i=this._pan_state?.target??this._hit_test(t,e);return null!=i&&this._can_hit(i)?"width"==this.model.dimension?"ns-resize":"ew-resize":null}}i.SpanView=p,p.__name__="SpanView";class m extends l.Annotation{constructor(t){super(t),this.pan=new c.Signal(this,"pan")}}i.Span=m,o=m,m.__name__="Span",o.prototype.default_view=p,o.mixins([r.Line,["hover_",r.Line]]),o.define((({Bool:t,Float:e,Nullable:i})=>({location:[i(e),null],location_units:[h.CoordinateUnits,"data"],dimension:[h.Dimension,"width"],editable:[t,!1]}))),o.override({line_color:"black",hover_line_color:null,hover_line_alpha:.3})}, +function _(e,t,i,o,s){var l;o();const a=e(81),n=e(292),r=e(56),_=e(63),h=e(173),u=e(64);class b extends a.AnnotationView{constructor(){super(...arguments),this._previous_bbox=new u.BBox}rendering_target(){return this.plot_view.canvas_view.events_el}update_layout(){this.layout=new h.SideLayout(this.panel,(()=>this.get_size()),!0)}after_layout(){this.toolbar_view.after_render()}has_finished(){return super.has_finished()&&this.toolbar_view.has_finished()}*children(){yield*super.children(),yield this.toolbar_view}async lazy_initialize(){await super.lazy_initialize(),this.toolbar_view=await(0,r.build_view)(this.model.toolbar,{parent:this.canvas})}connect_signals(){super.connect_signals(),this.plot_view.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.plot_view.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){this.toolbar_view.remove(),super.remove()}render(){super.render(),this.toolbar_view.render_to(this.shadow_el)}_paint(){(0,_.display)(this.el);const{bbox:e}=this.layout;if(!this._previous_bbox.equals(e)){(0,_.position)(this.el,e),this._previous_bbox=e,(0,_.empty)(this.el),this.el.style.position="absolute";const{style:t}=this.toolbar_view.el;this.toolbar_view.model.horizontal?(t.width="100%",t.height="unset"):(t.width="unset",t.height="100%")}this.model.visible||(0,_.undisplay)(this.el)}_get_size(){const{tools:e,logo:t}=this.model.toolbar;return{width:30*e.length+(null!=t?25:0)+15,height:30}}}i.ToolbarPanelView=b,b.__name__="ToolbarPanelView";class v extends a.Annotation{constructor(e){super(e)}}i.ToolbarPanel=v,l=v,v.__name__="ToolbarPanel",l.prototype.default_view=b,l.define((({Ref:e})=>({toolbar:[e(n.Toolbar)]})))}, +function _(t,e,o,s,i){var l;s();const n=t(1),a=t(19),r=t(63),c=t(56),_=t(111),h=t(20),u=t(10),v=t(34),p=t(9),f=t(8),d=t(293),g=t(294),m=t(295),b=t(300),w=t(302),y=t(303),T=t(305),x=t(297),z=n.__importStar(t(306)),L=z,P=n.__importStar(t(307)),I=P,C=n.__importDefault(t(123));class k extends _.UIElementView{constructor(){super(...arguments),this._tool_button_views=new Map,this._items=[],this._visible=null}get tool_buttons(){return this._tool_buttons.flat()}get overflow_el(){return this._overflow_el}get visible(){return!!this.model.visible&&(!this.model.autohide||(this._visible??!1))}*children(){yield*super.children(),yield*this._tool_button_views.values()}has_finished(){if(!super.has_finished())return!1;for(const t of this._tool_button_views.values())if(!t.has_finished())return!1;return!0}initialize(){super.initialize();const{location:t}=this.model,e="left"==t||"above"==t,o=this.model.horizontal?"vertical":"horizontal";this._overflow_menu=new x.ContextMenu([],{target:this.el,orientation:o,reversed:e,prevent_hide:t=>t.composedPath().includes(this._overflow_el)})}async lazy_initialize(){await super.lazy_initialize(),await this._build_tool_button_views()}connect_signals(){super.connect_signals();const{buttons:t,tools:e,location:o,autohide:s}=this.model.properties;this.on_change([t,e],(async()=>{await this._build_tool_button_views(),this.render()})),this.on_change(o,(()=>{this.render()})),this.on_change(s,(()=>{this._on_visible_change()}))}stylesheets(){return[...super.stylesheets(),z.default,P.default,C.default]}remove(){(0,c.remove_views)(this._tool_button_views),super.remove()}async _build_tool_button_views(){this._tool_buttons=(()=>{const{buttons:t}=this.model;if("auto"==t){return[...(0,p.values)(this.model.gestures).map((t=>t.tools)),this.model.actions,this.model.inspectors,this.model.auxiliaries].map((t=>t.filter((t=>t.visible)).map((t=>t.tool_button()))))}return(0,u.split)(t,null)})(),await(0,c.build_views)(this._tool_button_views,this._tool_buttons.flat(),{parent:this})}set_visibility(t){t!=this._visible&&(this._visible=t,this._on_visible_change())}_on_visible_change(){this.el.classList.toggle(L.hidden,!this.visible)}_after_resize(){super._after_resize(),this._after_render()}_menu_at(){switch(this.model.location){case"right":return{left_of:this._overflow_el};case"left":return{right_of:this._overflow_el};case"above":return{below:this._overflow_el};case"below":return{above:this._overflow_el}}}toggle_menu(){this._overflow_menu.toggle(this._menu_at())}render(){super.render(),this.el.classList.add(L[this.model.location]),this.el.classList.toggle(L.inner,this.model.inner),this._on_visible_change();const{horizontal:t}=this.model;if(this._overflow_el=(0,r.div)({class:L.tool_overflow,tabIndex:0},t?"\u22ee":"\u22ef"),this._overflow_el.addEventListener("click",(t=>{this.toggle_menu()})),this._overflow_el.addEventListener("keydown",(t=>{"Enter"==t.key&&this.toggle_menu()})),this._items=[],null!=this.model.logo){const t="grey"===this.model.logo?I.grey:null,e=(0,r.a)({href:"https://bokeh.org/",target:"_blank",class:[I.logo,I.logo_small,t]});this._items.push(e),this.shadow_el.appendChild(e)}for(const[,t]of this._tool_button_views)t.render_to(this.shadow_el);const e=this._tool_buttons.map((t=>t.map((t=>this._tool_button_views.get(t).el)))).filter((t=>0!=t.length)),o=()=>(0,r.div)({class:L.divider});for(const t of(0,v.join)(e,o))this._items.push(t),this.shadow_el.append(t)}_after_render(){super._after_render(),(0,u.clear)(this._overflow_menu.items),this.shadow_el.contains(this._overflow_el)&&this.shadow_el.removeChild(this._overflow_el);for(const t of this._items)this.shadow_el.contains(t)||this.shadow_el.append(t);const{horizontal:t}=this.model,{bbox:e}=this,o=t?L.right:L.above;let s=0,i=!1;for(const l of this._items)if(i)this.shadow_el.removeChild(l),this._overflow_menu.items.push({custom:l,class:o});else{const{width:n,height:a}=l.getBoundingClientRect();s+=t?n:a,i=t?s>e.width-15:s>e.height-15,i&&(this.shadow_el.removeChild(l),this.shadow_el.appendChild(this._overflow_el),this._overflow_menu.items.push({custom:l,class:o}))}this._overflow_menu.is_open&&this._overflow_menu.show(this._menu_at())}}o.ToolbarView=k,k.__name__="ToolbarView";const A=t(21),E=(0,A.Or)((0,A.Ref)(b.GestureTool),(0,A.Ref)(g.ToolProxy)),R=(0,A.Struct)({tools:(0,A.List)(E),active:(0,A.Nullable)(E)}),S=(0,A.Struct)({pan:R,scroll:R,pinch:R,rotate:R,move:R,tap:R,doubletap:R,press:R,pressup:R,multi:R});function B(){return{pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},multi:{tools:[],active:null}}}o.Inspection=d.Tool;class $ extends _.UIElement{constructor(t){super(t)}get horizontal(){return"above"==this.location||"below"==this.location}get vertical(){return"left"==this.location||"right"==this.location}connect_signals(){super.connect_signals();const{tools:t,active_drag:e,active_inspect:o,active_scroll:s,active_tap:i,active_multi:l}=this.properties;this.on_change([t,e,o,s,i,l],(()=>{this._init_tools(),this._activate_tools()}))}initialize(){super.initialize(),this._init_tools(),this._activate_tools()}_init_tools(){const t=new Set;function e(e,o){const s=(e instanceof g.ToolProxy?e.underlying:e)instanceof o;return s&&t.add(e),s}const o=this.tools.filter((t=>e(t,w.InspectTool)));this.inspectors=o;const s=this.tools.filter((t=>e(t,T.HelpTool)));this.help=s;const i=this.tools.filter((t=>e(t,y.ActionTool)));this.actions=i;const l={pan:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},rotate:{tools:[],active:null},move:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},press:{tools:[],active:null},pressup:{tools:[],active:null},multi:{tools:[],active:null}};for(const t of this.tools)e(t,b.GestureTool)&&l[t.event_role].tools.push(t);for(const t of(0,p.typed_keys)(l)){const e=this.gestures[t];e.tools=(0,u.sort_by)(l[t].tools,(t=>t.default_order)),null!=e.active&&(0,u.every)(e.tools,(t=>t.id!=e.active?.id))&&(e.active=null)}const n=this.tools.filter((e=>!t.has(e)));this.auxiliaries=n}_activate_tools(){if("auto"==this.active_inspect);else if(null==this.active_inspect)for(const t of this.inspectors)t.active=!1;else if((0,f.isArray)(this.active_inspect)){const t=(0,u.intersection)(this.active_inspect,this.inspectors);t.length!=this.active_inspect.length&&(this.active_inspect=t);for(const t of this.inspectors)(0,u.includes)(this.active_inspect,t)||(t.active=!1)}else{let t=!1;for(const e of this.inspectors)e!=this.active_inspect?e.active=!1:t=!0;t||(this.active_inspect=null)}const t=t=>{t.active?this._active_change(t):t.active=!0};for(const t of(0,p.values)(this.gestures))for(const e of t.tools)this.connect(e.properties.active.change,(()=>this._active_change(e)));function e(t){switch(t){case"tap":return"active_tap";case"pan":return"active_drag";case"pinch":case"scroll":return"active_scroll";case"multi":return"active_multi";default:return null}}function o(t,e){return"tap"==t||"pan"==t||e.supports_auto()}const s=t=>this.tools.includes(t)||t instanceof d.Tool&&this.tools.some((e=>e instanceof g.ToolProxy&&e.tools.includes(t)));for(const[i,l]of(0,p.entries)(this.gestures)){const n=i,a=e(n);if(null!=a){const e=this[a];if("auto"==e){if(0!=l.tools.length){const[e]=l.tools;o(n,e)&&t(e)}}else if(null!=e)s(e)?t(e):this[a]=null;else{this.gestures[n].active=null;for(const t of this.gestures[n].tools)t.active=!1}}}}_active_change(t){const{event_types:e}=t;for(const o of e)if(t.active){const e=this.gestures[o].active;null!=e&&t!=e&&(a.logger.debug(`Toolbar: deactivating tool: ${e} for event type '${o}'`),e.active=!1),this.gestures[o].active=t,a.logger.debug(`Toolbar: activating tool: ${t} for event type '${o}'`)}else this.gestures[o].active=null}}o.Toolbar=$,l=$,$.__name__="Toolbar",l.prototype.default_view=k,l.define((({Bool:t,List:e,Or:s,Ref:i,Nullable:l,Auto:n})=>({tools:[e(s(i(d.Tool),i(g.ToolProxy))),[]],logo:[l(h.Logo),"normal"],autohide:[t,!1],active_drag:[l(s(E,n)),"auto"],active_inspect:[l(s(i(o.Inspection),e(i(o.Inspection)),i(g.ToolProxy),n)),"auto"],active_scroll:[l(s(E,n)),"auto"],active_tap:[l(s(E,n)),"auto"],active_multi:[l(s(E,n)),"auto"]}))),l.internal((({List:t,Bool:e,Ref:o,Or:s,Null:i,Auto:l})=>({buttons:[s(t(s(o(m.ToolButton),i)),l),"auto"],location:[h.Location,"right"],inner:[e,!1],gestures:[S,B],actions:[t(s(o(y.ActionTool),o(g.ToolProxy))),[]],inspectors:[t(s(o(w.InspectTool),o(g.ToolProxy))),[]],auxiliaries:[t(s(o(d.Tool),o(g.ToolProxy))),[]],help:[t(s(o(T.HelpTool),o(g.ToolProxy))),[]]})))}, function _(t,e,n,o,i){var s;o();const r=t(58),a=t(20),l=t(10),c=t(8),_=t(51);class u extends r.View{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,(()=>{this.model.active?this.activate():this.deactivate()}))}get overlays(){return[]}activate(){}deactivate(){}}n.ToolView=u,u.__name__="ToolView";class d extends _.Model{constructor(t){super(t)}get event_role(){const{event_type:t}=this;return(0,c.isString)(t)?t:"multi"}get event_types(){const{event_type:t}=this;return null==t?[]:(0,c.isString)(t)?[t]:t}get tooltip(){return this.description??this.tool_name}get computed_icon(){const{icon:t,tool_icon:e}=this;return t??(null!=e?`.${e}`:void 0)}get menu(){return null}supports_auto(){return!1}_get_dim_limits([t,e],[n,o],i,s){const r=i.bbox.h_range;let a;"width"==s||"both"==s?(a=[(0,l.min)([t,n]),(0,l.max)([t,n])],a=[(0,l.max)([a[0],r.start]),(0,l.min)([a[1],r.end])]):a=[r.start,r.end];const c=i.bbox.v_range;let _;return"height"==s||"both"==s?(_=[(0,l.min)([e,o]),(0,l.max)([e,o])],_=[(0,l.max)([_[0],c.start]),(0,l.min)([_[1],c.end])]):_=[c.start,c.end],[a,_]}_get_dim_tooltip(t){const{description:e,tool_name:n}=this;return null!=e?e:"both"==t?n:"auto"==t?`${n} (either x, y or both dimensions)`:`${n} (${"width"==t?"x":"y"}-axis)`}static register_alias(t,e){this.prototype._known_aliases.set(t,e)}static from_string(t){const e=this.prototype._known_aliases.get(t);if(null!=e)return e();{const e=[...this.prototype._known_aliases.keys()];throw new Error(`unexpected tool name '${t}', possible tools are ${e.join(", ")}`)}}}n.Tool=d,s=d,d.__name__="Tool",s.prototype._known_aliases=new Map,s.define((({Bool:t,Str:e,Regex:n,Nullable:o,Or:i})=>({icon:[o(i(a.ToolIcon,n(/^--/),n(/^\./),n(/^data:image/))),null],description:[o(e),null],visible:[t,!0]}))),s.internal((({Bool:t})=>({active:[t,!1],disabled:[t,!1]})))}, -function _(t,o,e,s,n){var i;s();const l=t(15),r=t(51),c=t(292),u=t(34);class h extends r.Model{constructor(t){super(t)}get underlying(){return this.tools[0]}tool_button(){const t=this.tools[0].tool_button();return t.tool=this,t}get event_type(){return this.tools[0].event_type}get event_role(){return this.tools[0].event_role}get event_types(){return this.tools[0].event_types}get default_order(){return this.tools[0].default_order}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get computed_icon(){return this.tools[0].computed_icon}get toggleable(){const t=this.tools[0];return"toggleable"in t&&t.toggleable}get visible(){return this.tools[0].visible}initialize(){super.initialize(),this.do=new l.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,(()=>this.doit())),this.connect(this.properties.active.change,(()=>this.set_active()));for(const t of this.tools)this.connect(t.properties.active.change,(()=>{this.active=t.active}))}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}get menu(){const{menu:t}=this.tools[0];if(null==t)return null;const o=[];for(const[e,s]of(0,u.enumerate)(t))if(null==e)o.push(null);else{const t=()=>{for(const t of this.tools)t.menu?.[s]?.handler?.()};o.push({...e,handler:t})}return o}supports_auto(){return this.tools[0].supports_auto()}}e.ToolProxy=h,i=h,h.__name__="ToolProxy",i.define((({Bool:t,List:o,Ref:e})=>({tools:[o(e(c.Tool)),[]],active:[t,t=>(0,u.some)(t.tools,(t=>t.active))],disabled:[t,!1]})))}, -function _(e,t,s,o,i){var l;o();const n=e(1),a=e(111),r=e(292),c=e(293),h=e(295),d=e(63),u=e(20),_=e(296),m=e(10),p=n.__importStar(e(298)),g=p,v=n.__importDefault(e(123));class f extends a.UIElementView{initialize(){super.initialize();const{location:e}=this.parent.model,t="left"==e||"above"==e,s=this.parent.model.horizontal?"vertical":"horizontal",o=this.model.tool.menu??[];this._menu=new _.ContextMenu(t?(0,m.reversed)(o):o,{target:this.parent.el,orientation:s,prevent_hide:e=>e.composedPath().includes(this.el)}),this._ui_gestures=new h.UIGestures(this.el,{on_tap:e=>{this._menu.is_open?this._menu.hide():e.native.composedPath().includes(this.el)&&this._clicked()},on_press:()=>{this._pressed()}}),this.el.addEventListener("keydown",(e=>{switch(e.key){case"Enter":this._clicked();break;case" ":this._pressed()}}))}connect_signals(){super.connect_signals(),this._ui_gestures.connect_signals(),this.connect(this.model.change,(()=>this.render())),this.connect(this.model.tool.change,(()=>this.render()))}remove(){this._ui_gestures.remove(),this._menu.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),p.default,v.default]}render(){super.render(),this.class_list.add(g[this.parent.model.location]),this.model.tool.disabled&&this.class_list.add(g.disabled);const e=(0,d.div)({class:g.tool_icon});this.shadow_el.appendChild(e);const t=this.model.icon??this.model.tool.computed_icon;if(null!=t)if(t.startsWith("data:image")){const s=`url("${encodeURI(t)}")`;e.style.backgroundImage=s}else if(t.startsWith("--"))e.style.backgroundImage=`var(${t})`;else if(t.startsWith(".")){const s=t.substring(1);e.classList.add(s)}else if(u.ToolIcon.valid(t)){const s=`bk-tool-icon-${t.replace(/_/g,"-")}`;e.classList.add(s)}if(null!=this.model.tool.menu){const e=(0,d.div)({class:g.tool_chevron});this.shadow_el.appendChild(e)}const s=this.model.tooltip??this.model.tool.tooltip;this.el.title=s,this.el.tabIndex=0}_pressed(){const e=(()=>{switch(this.parent.model.location){case"right":return{left_of:this.el};case"left":return{right_of:this.el};case"above":return{below:this.el};case"below":return{above:this.el}}})();this._menu.toggle(e)}}s.ToolButtonView=f,f.__name__="ToolButtonView";class b extends a.UIElement{constructor(e){super(e)}}s.ToolButton=b,l=b,b.__name__="ToolButton",l.define((({Str:e,Regex:t,Ref:s,Nullable:o,Or:i})=>({tool:[i(s(r.Tool),s(c.ToolProxy))],icon:[o(i(u.ToolIcon,t(/^--/),t(/^\./),t(/^data:image/))),null],tooltip:[o(e),null]})))}, +function _(t,o,e,s,n){var i;s();const l=t(15),r=t(51),c=t(293),u=t(34);class h extends r.Model{constructor(t){super(t)}get underlying(){return this.tools[0]}tool_button(){const t=this.tools[0].tool_button();return t.tool=this,t}get event_type(){return this.tools[0].event_type}get event_role(){return this.tools[0].event_role}get event_types(){return this.tools[0].event_types}get default_order(){return this.tools[0].default_order}get tooltip(){return this.tools[0].tooltip}get tool_name(){return this.tools[0].tool_name}get computed_icon(){return this.tools[0].computed_icon}get toggleable(){const t=this.tools[0];return"toggleable"in t&&t.toggleable}get visible(){return this.tools[0].visible}initialize(){super.initialize(),this.do=new l.Signal0(this,"do")}connect_signals(){super.connect_signals(),this.connect(this.do,(()=>this.doit())),this.connect(this.properties.active.change,(()=>this.set_active()));for(const t of this.tools)this.connect(t.properties.active.change,(()=>{this.active=t.active}))}doit(){for(const t of this.tools)t.do.emit()}set_active(){for(const t of this.tools)t.active=this.active}get menu(){const{menu:t}=this.tools[0];if(null==t)return null;const o=[];for(const[e,s]of(0,u.enumerate)(t))if(null==e)o.push(null);else{const t=()=>{for(const t of this.tools)t.menu?.[s]?.handler?.()};o.push({...e,handler:t})}return o}supports_auto(){return this.tools[0].supports_auto()}}e.ToolProxy=h,i=h,h.__name__="ToolProxy",i.define((({Bool:t,List:o,Ref:e})=>({tools:[o(e(c.Tool)),[]],active:[t,t=>(0,u.some)(t.tools,(t=>t.active))],disabled:[t,!1]})))}, +function _(e,t,s,o,i){var l;o();const n=e(1),a=e(111),r=e(293),c=e(294),h=e(296),d=e(63),u=e(20),_=e(297),m=e(10),p=n.__importStar(e(299)),g=p,v=n.__importDefault(e(123));class f extends a.UIElementView{initialize(){super.initialize();const{location:e}=this.parent.model,t="left"==e||"above"==e,s=this.parent.model.horizontal?"vertical":"horizontal",o=this.model.tool.menu??[];this._menu=new _.ContextMenu(t?(0,m.reversed)(o):o,{target:this.parent.el,orientation:s,prevent_hide:e=>e.composedPath().includes(this.el)}),this._ui_gestures=new h.UIGestures(this.el,{on_tap:e=>{this._menu.is_open?this._menu.hide():e.native.composedPath().includes(this.el)&&this._clicked()},on_press:()=>{this._pressed()}}),this.el.addEventListener("keydown",(e=>{switch(e.key){case"Enter":this._clicked();break;case" ":this._pressed()}}))}connect_signals(){super.connect_signals(),this._ui_gestures.connect_signals(),this.connect(this.model.change,(()=>this.render())),this.connect(this.model.tool.change,(()=>this.render()))}remove(){this._ui_gestures.remove(),this._menu.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),p.default,v.default]}render(){super.render(),this.class_list.add(g[this.parent.model.location]),this.model.tool.disabled&&this.class_list.add(g.disabled);const e=(0,d.div)({class:g.tool_icon});this.shadow_el.appendChild(e);const t=this.model.icon??this.model.tool.computed_icon;if(null!=t)if(t.startsWith("data:image")){const s=`url("${encodeURI(t)}")`;e.style.backgroundImage=s}else if(t.startsWith("--"))e.style.backgroundImage=`var(${t})`;else if(t.startsWith(".")){const s=t.substring(1);e.classList.add(s)}else if(u.ToolIcon.valid(t)){const s=`bk-tool-icon-${t.replace(/_/g,"-")}`;e.classList.add(s)}if(null!=this.model.tool.menu){const e=(0,d.div)({class:g.tool_chevron});this.shadow_el.appendChild(e)}const s=this.model.tooltip??this.model.tool.tooltip;this.el.title=s,this.el.tabIndex=0}_pressed(){const e=(()=>{switch(this.parent.model.location){case"right":return{left_of:this.el};case"left":return{right_of:this.el};case"above":return{below:this.el};case"below":return{above:this.el}}})();this._menu.toggle(e)}}s.ToolButtonView=f,f.__name__="ToolButtonView";class b extends a.UIElement{constructor(e){super(e)}}s.ToolButton=b,l=b,b.__name__="ToolButton",l.define((({Str:e,Regex:t,Ref:s,Nullable:o,Or:i})=>({tool:[i(s(r.Tool),s(c.ToolProxy))],icon:[o(i(u.ToolIcon,t(/^--/),t(/^\./),t(/^data:image/))),null],tooltip:[o(e),null]})))}, function _(t,s,e,i,n){i();const a=t(63),_=t(12);class r{constructor(t,s,e={}){this.phase="idle",this.pointers=new Map,this.press_timer=null,this.tap_timestamp=-1/0,this.last_scale=null,this.last_rotation=null,this.hit_area=t,this.handlers=s,this.must_be_target=e.must_be_target??!1,this._pointer_over=this._pointer_over.bind(this),this._pointer_out=this._pointer_out.bind(this),this._pointer_down=this._pointer_down.bind(this),this._pointer_move=this._pointer_move.bind(this),this._pointer_up=this._pointer_up.bind(this),this._pointer_cancel=this._pointer_cancel.bind(this)}connect_signals(){this.hit_area.addEventListener("pointerover",this._pointer_over),this.hit_area.addEventListener("pointerout",this._pointer_out),this.hit_area.addEventListener("pointerdown",this._pointer_down),this.hit_area.addEventListener("pointermove",this._pointer_move),this.hit_area.addEventListener("pointerup",this._pointer_up),this.hit_area.addEventListener("pointercancel",this._pointer_cancel)}disconnect_signals(){this.hit_area.removeEventListener("pointerover",this._pointer_over),this.hit_area.removeEventListener("pointerout",this._pointer_out),this.hit_area.removeEventListener("pointerdown",this._pointer_down),this.hit_area.removeEventListener("pointermove",this._pointer_move),this.hit_area.removeEventListener("pointerup",this._pointer_up),this.hit_area.removeEventListener("pointercancel",this._pointer_cancel)}remove(){this.disconnect_signals()}_self_is_target(t){return t.composedPath()[0]==this.hit_area}_is_event_target(t){return!this.must_be_target||this._self_is_target(t)}reset(){this._cancel_timeout(),this.phase="idle",this.pointers.clear(),this.press_timer=null,this.tap_timestamp=-1/0,this.last_scale=null,this.last_rotation=null}get _is_multi_gesture(){return this.pointers.size>=2}_within_threshold(t){const{dx:s,dy:e}=this._movement(t);return s**2+e**2<=r.move_threshold**2}get _any_movement(){return[...this.pointers.values()].some((t=>!this._within_threshold(t)))}_start_timeout(){(0,_.assert)(null==this.press_timer),this.press_timer=setTimeout((()=>this._pointer_timeout()),r.press_threshold)}_cancel_timeout(){const{press_timer:t}=this;null!=t&&(clearTimeout(t),this.press_timer=null)}_pointer_timeout(){(0,_.assert)("started"==this.phase),(0,_.assert)(!this._is_multi_gesture),this.phase="pressing",this.press_timer=null;const[t]=this.pointers.values();this.on_press(t.init)}_pointer_over(t){this._is_event_target(t)&&t.isPrimary&&this.on_enter(t)}_pointer_out(t){this._is_event_target(t)&&t.isPrimary&&this.on_leave(t)}_pointer_down(t){if(this._is_event_target(t)&&!this._is_multi_gesture&&!this.pointers.has(t.pointerId)&&(!t.isPrimary||"mouse"!=t.pointerType||t.buttons==a.MouseButton.Left)&&this.hit_area.isConnected)switch(this.pointers.set(t.pointerId,{init:t,last:t}),this.hit_area.setPointerCapture(t.pointerId),this.phase){case"idle":this.phase="started",this._start_timeout();break;case"started":this._cancel_timeout()}}_pointer_move(t){if(!this._is_event_target(t))return;t.isPrimary&&this.on_move(t);const s=this.pointers.get(t.pointerId);if(null!=s)switch(s.last=t,this.phase){case"idle":this.reset(),(0,_.unreachable)();case"started":case"transitional":if(!this._any_movement)return;if(this._cancel_timeout(),this._is_multi_gesture){const[t,s]=this.pointers.values(),e=this._scale(t,s),i=this._rotation(t,s);Math.abs(e-1)>r.pinch_threshold?(this.phase="pinching",this.on_pinch_start(t.init,s.init,1),this.on_pinch(t.last,s.last,e),this.last_scale=e):Math.abs(i)>r.rotate_threshold&&(this.phase="rotating",this.on_rotate_start(t.init,s.init,0),this.on_rotate(s.last,s.last,i),this.last_rotation=i)}else{this.phase="panning";const[t]=this.pointers.values(),{dx:s,dy:e}=this._movement(t);this.on_pan_start(t.init,0,0),this.on_pan(t.last,s,e)}break;case"pressing":break;case"panning":{const[s]=this.pointers.values(),{dx:e,dy:i}=this._movement(s);this.on_pan(t,e,i);break}case"pinching":{const[t,s]=this.pointers.values(),e=this._scale(t,s);e!=this.last_scale&&(this.on_pinch(t.last,s.last,e),this.last_scale=e);break}case"rotating":{const[t,s]=this.pointers.values(),e=this._rotation(t,s);e!=this.last_rotation&&(this.on_rotate(t.last,s.last,e),this.last_rotation=e);break}}}_pointer_up(t){if(!this._is_event_target(t))return;const s=this.pointers.get(t.pointerId);if(null!=s){switch(s.last=t,this._cancel_timeout(),this.phase){case"idle":this.reset(),(0,_.unreachable)();case"started":{const[t]=this.pointers.values(),{tap_timestamp:s}=this;t.last.timeStamp-s{this.entry_handler?.(t,e),t.handler?.(),this.hide()},this._on_mousedown=t=>{t.composedPath().includes(this.el)||this.prevent_hide?.(t)||this.hide()},this._on_keydown=t=>{"Escape"==t.key&&this.hide()},this._on_blur=()=>{this.hide()},this.items=t,this.target=e.target,this.orientation=e.orientation??"vertical",this.reversed=e.reversed??!1,this.prevent_hide=e.prevent_hide,this.extra_styles=e.extra_styles??[],this.entry_handler=e.entry_handler,this.shadow_el=this.el.attachShadow({mode:"open"}),this.class_list=new l.ClassList(this.el.classList)}remove(){this._unlisten(),this.el.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}_position(t){const e=(()=>{if("left_of"in t){const{left:e,top:i}=t.left_of.getBoundingClientRect();return{right:e,top:i}}if("right_of"in t){const{top:e,right:i}=t.right_of.getBoundingClientRect();return{left:i,top:e}}if("below"in t){const{left:e,bottom:i}=t.below.getBoundingClientRect();return{left:e,top:i}}if("above"in t){const{left:e,top:i}=t.above.getBoundingClientRect();return{left:e,bottom:i}}return t})(),i=this.el.offsetParent??document.body,s=(()=>{const t=i.getBoundingClientRect(),e=getComputedStyle(i);return{left:t.left-parseFloat(e.marginLeft),right:t.right+parseFloat(e.marginRight),top:t.top-parseFloat(e.marginTop),bottom:t.bottom+parseFloat(e.marginBottom)}})(),{style:n}=this.el;n.left=null!=e.left?e.left-s.left+"px":"auto",n.top=null!=e.top?e.top-s.top+"px":"auto",n.right=null!=e.right?s.right-e.right+"px":"auto",n.bottom=null!=e.bottom?s.bottom-e.bottom+"px":"auto"}stylesheets(){return[c.default,a.default,u.default,...this.extra_styles]}empty(){(0,l.empty)(this.shadow_el),this.class_list.clear()}render(){this.empty();for(const t of this.stylesheets()){((0,r.isString)(t)?new l.InlineStyleSheet(t):t).install(this.shadow_el)}this.class_list.add(_[this.orientation]);const t=this.reversed?(0,h.reversed)(this.items):this.items;for(const[e,i]of(0,d.enumerate)(t)){let t;if(null==e)t=(0,l.div)({class:_.divider});else{if(null!=e.if&&!e.if())continue;if(null!=e.custom)t=e.custom;else{const s=null!=e.icon?(0,l.div)({class:[_.menu_icon,e.icon]}):null,n=[e.active?.()?_.active:null,e.class];t=(0,l.div)({class:n,title:e.tooltip,tabIndex:0},s,e.label,e.content),t.addEventListener("click",(()=>{this._item_click(e,i)})),t.addEventListener("keydown",(t=>{"Enter"==t.key&&this._item_click(e,i)}))}}this.shadow_el.appendChild(t)}}show(t){0!=this.items.length&&(this.render(),0!=this.shadow_el.children.length&&((this.target.shadowRoot??this.target).appendChild(this.el),this._position(t??{left:0,top:0}),this._listen(),this._open=!0))}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}toggle(t){this._open?this.hide():this.show(t)}}i.ContextMenu=m,m.__name__="ContextMenu"}, +function _(t,e,i,s,n){s();const o=t(1),l=t(63),h=t(10),r=t(8),d=t(34),a=o.__importStar(t(298)),_=a,u=o.__importDefault(t(123)),c=o.__importDefault(t(66));class m{get is_open(){return this._open}get can_open(){return 0!=this.items.length}constructor(t,e){this.el=(0,l.div)(),this._open=!1,this._item_click=(t,e)=>{this.entry_handler?.(t,e),t.handler?.(),this.hide()},this._on_mousedown=t=>{t.composedPath().includes(this.el)||this.prevent_hide?.(t)||this.hide()},this._on_keydown=t=>{"Escape"==t.key&&this.hide()},this._on_blur=()=>{this.hide()},this.items=t,this.target=e.target,this.orientation=e.orientation??"vertical",this.reversed=e.reversed??!1,this.prevent_hide=e.prevent_hide,this.extra_styles=e.extra_styles??[],this.entry_handler=e.entry_handler,this.shadow_el=this.el.attachShadow({mode:"open"}),this.class_list=new l.ClassList(this.el.classList)}remove(){this._unlisten(),this.el.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}_position(t){const e=(()=>{if("left_of"in t){const{left:e,top:i}=t.left_of.getBoundingClientRect();return{right:e,top:i}}if("right_of"in t){const{top:e,right:i}=t.right_of.getBoundingClientRect();return{left:i,top:e}}if("below"in t){const{left:e,bottom:i}=t.below.getBoundingClientRect();return{left:e,top:i}}if("above"in t){const{left:e,top:i}=t.above.getBoundingClientRect();return{left:e,bottom:i}}return t})(),i=this.el.offsetParent??document.body,s=(()=>{const t=i.getBoundingClientRect(),e=getComputedStyle(i);return{left:t.left-parseFloat(e.marginLeft),right:t.right+parseFloat(e.marginRight),top:t.top-parseFloat(e.marginTop),bottom:t.bottom+parseFloat(e.marginBottom)}})(),{style:n}=this.el;n.left=null!=e.left?e.left-s.left+"px":"auto",n.top=null!=e.top?e.top-s.top+"px":"auto",n.right=null!=e.right?s.right-e.right+"px":"auto",n.bottom=null!=e.bottom?s.bottom-e.bottom+"px":"auto"}stylesheets(){return[c.default,a.default,u.default,...this.extra_styles]}empty(){(0,l.empty)(this.shadow_el),this.class_list.clear()}render(){this.empty();for(const t of this.stylesheets()){((0,r.isString)(t)?new l.InlineStyleSheet(t):t).install(this.shadow_el)}this.class_list.add(_[this.orientation]);const t=this.reversed?(0,h.reversed)(this.items):this.items;for(const[e,i]of(0,d.enumerate)(t)){let t;if(null==e)t=(0,l.div)({class:_.divider});else{if(null!=e.if&&!e.if())continue;if(null!=e.custom)t=e.custom;else{const s=null!=e.icon?(0,l.div)({class:[_.menu_icon,e.icon]}):null,n=[e.active?.()?_.active:null,e.class];t=(0,l.div)({class:n,title:e.tooltip,tabIndex:0},s,e.label,e.content),t.addEventListener("click",(()=>{this._item_click(e,i)})),t.addEventListener("keydown",(t=>{"Enter"==t.key&&this._item_click(e,i)}))}}this.shadow_el.appendChild(t)}}show(t){0!=this.items.length&&(this.render(),0!=this.shadow_el.children.length&&((this.target.shadowRoot??this.target).appendChild(this.el),this._position(t??{left:0,top:0}),this._listen(),this._open=!0))}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}toggle(t){this._open?this.hide():this.show(t)}}i.ContextMenu=m,m.__name__="ContextMenu"}, function _(r,o,e,i,t){i(),e.menu_icon="bk-menu-icon",e.horizontal="bk-horizontal",e.vertical="bk-vertical",e.divider="bk-divider",e.active="bk-active",e.default=".bk-menu-icon{width:28px;height:28px;mask-size:60% 60%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:60% 60%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;background-size:60%;background-color:transparent;background-repeat:no-repeat;background-position:center center;}:host{position:absolute;display:inline-flex;flex-wrap:nowrap;user-select:none;-webkit-user-select:none;width:auto;height:auto;z-index:var(--bokeh-top-level);cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:2px 4px 8px rgba(0, 0, 0, 0.175);}:host(.bk-horizontal){flex-direction:row;}:host(.bk-vertical){flex-direction:column;}.bk-divider{cursor:default;overflow:hidden;background-color:#e5e5e5;}:host(.bk-horizontal) > .bk-divider{width:1px;margin:5px 0;}:host(.bk-vertical) > .bk-divider{height:1px;margin:0 5px;}:host > :not(.bk-divider){border:1px solid transparent;--active-tool-highlight:#26aae1;}:host > :not(.bk-divider).bk-active{border-color:var(--active-tool-highlight);}:host > :not(.bk-divider):hover{background-color:#f9f9f9;}:host > :not(.bk-divider):focus,:host > :not(.bk-divider):focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}:host > :not(.bk-divider)::-moz-focus-inner{border:0;}:host(.bk-horizontal) > :not(.bk-divider):first-child{border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);}:host(.bk-horizontal) > :not(.bk-divider):last-child{border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}:host(.bk-vertical) > :not(.bk-divider):first-child{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);}:host(.bk-vertical) > :not(.bk-divider):last-child{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);}"}, function _(o,t,e,r,i){r(),e.tool_icon="bk-tool-icon",e.disabled="bk-disabled",e.tool_chevron="bk-tool-chevron",e.above="bk-above",e.below="bk-below",e.left="bk-left",e.right="bk-right",e.active="bk-active",e.default=":host{--button-width:30px;--button-height:30px;--button-color:lightgray;--button-border:2px;--active-tool-highlight:#26aae1;--active-tool-border:var(--button-border) solid transparent;}:host{position:relative;width:var(--button-width);height:var(--button-height);cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:none;}.bk-tool-icon{position:relative;top:calc(var(--button-border)/2);width:calc(var(--button-width) - var(--button-border));height:calc(var(--button-height) - var(--button-border));mask-size:60% 60%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:60% 60%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;background-size:60% 60%;background-origin:border-box;background-position:center center;background-repeat:no-repeat;}:host(.bk-disabled) .bk-tool-icon{background-color:var(--bokeh-icon-color-disabled);cursor:not-allowed;}.bk-tool-chevron{position:absolute;visibility:hidden;width:8px;height:8px;mask-size:100% 100%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;}:host(:hover) .bk-tool-chevron{visibility:visible;}:host(.bk-above) .bk-tool-chevron{right:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}:host(.bk-below) .bk-tool-chevron{right:0;top:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}:host(.bk-left) .bk-tool-chevron{right:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-right);-webkit-mask-image:var(--bokeh-icon-chevron-right);}:host(.bk-right) .bk-tool-chevron{left:0;bottom:0;background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-chevron-left);-webkit-mask-image:var(--bokeh-icon-chevron-left);}:host(:hover){background-color:rgba(192, 192, 192, 0.15);}:host(:focus),:host(:focus-visible){outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}:host::-moz-focus-inner{border:0;}:host(.bk-above){border-bottom:var(--active-tool-border);}:host(.bk-above.bk-active){border-bottom-color:var(--active-tool-highlight);}:host(.bk-below){border-top:var(--active-tool-border);}:host(.bk-below.bk-active){border-top-color:var(--active-tool-highlight);}:host(.bk-right){border-left:var(--active-tool-border);}:host(.bk-right.bk-active){border-left-color:var(--active-tool-highlight);}:host(.bk-left){border-right:var(--active-tool-border);}:host(.bk-left.bk-active){border-right-color:var(--active-tool-highlight);}"}, -function _(e,o,t,n,s){n();const r=e(292),l=e(300);class u extends r.ToolView{get plot_view(){return this.parent}}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends r.Tool{constructor(e){super(e)}tool_button(){return new l.OnOffButton({tool:this})}}t.GestureTool=_,_.__name__="GestureTool"}, -function _(t,e,o,n,s){var i;n();const c=t(1),_=t(294),l=c.__importStar(t(298));class a extends _.ToolButtonView{_toggle_active(){this.class_list.toggle(l.active,this.model.tool.active)}connect_signals(){super.connect_signals();const{active:t}=this.model.tool.properties;this.on_change(t,(()=>{this._toggle_active()}))}render(){super.render(),this._toggle_active()}_clicked(){const{active:t}=this.model.tool;this.model.tool.active=!t}}o.OnOffButtonView=a,a.__name__="OnOffButtonView";class r extends _.ToolButton{constructor(t){super(t)}}o.OnOffButton=r,i=r,r.__name__="OnOffButton",i.prototype.default_view=a}, -function _(e,t,o,n,s){var i;n();const l=e(1),r=e(292),_=e(300),c=l.__importStar(e(18));class a extends r.ToolView{get plot_view(){return this.parent}}o.InspectToolView=a,a.__name__="InspectToolView";class p extends r.Tool{constructor(e){super(e),this.event_type="move"}tool_button(){return new _.OnOffButton({tool:this})}}o.InspectTool=p,i=p,p.__name__="InspectTool",i.define((()=>({toggleable:[new c.PropertyAlias("visible")]}))),i.override({active:!0})}, -function _(o,t,n,s,i){s();const e=o(292),c=o(303),l=o(15);class _ extends e.ToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,(o=>this.doit(o)))}}n.ActionToolView=_,_.__name__="ActionToolView";class a extends e.Tool{constructor(o){super(o),this.do=new l.Signal(this,"do")}tool_button(){return new c.ClickButton({tool:this})}}n.ActionTool=a,a.__name__="ActionTool"}, -function _(t,o,e,n,i){var c;n();const l=t(294);class _ extends l.ToolButtonView{_clicked(){this.model.tool.do.emit(void 0)}}e.ClickButtonView=_,_.__name__="ClickButtonView";class s extends l.ToolButton{constructor(t){super(t)}}e.ClickButton=s,c=s,s.__name__="ClickButton",c.prototype.default_view=_}, -function _(o,e,t,l,i){var n;l();const s=o(302),r=o(123);class c extends s.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=c,c.__name__="HelpToolView";class _ extends s.ActionTool{constructor(o){super(o),this.tool_name="Help",this.tool_icon=r.tool_icon_help}}t.HelpTool=_,n=_,_.__name__="HelpTool",n.prototype.default_view=c,n.define((({Str:o})=>({redirect:[o,"https://docs.bokeh.org/en/latest/docs/user_guide/interaction/tools.html"]}))),n.override({description:"Click the question mark to learn more about Bokeh plot tools."}),n.register_alias("help",(()=>new n))}, +function _(e,o,t,n,s){n();const r=e(293),l=e(301);class u extends r.ToolView{get plot_view(){return this.parent}}t.GestureToolView=u,u.__name__="GestureToolView";class _ extends r.Tool{constructor(e){super(e)}tool_button(){return new l.OnOffButton({tool:this})}}t.GestureTool=_,_.__name__="GestureTool"}, +function _(t,e,o,n,s){var i;n();const c=t(1),_=t(295),l=c.__importStar(t(299));class a extends _.ToolButtonView{_toggle_active(){this.class_list.toggle(l.active,this.model.tool.active)}connect_signals(){super.connect_signals();const{active:t}=this.model.tool.properties;this.on_change(t,(()=>{this._toggle_active()}))}render(){super.render(),this._toggle_active()}_clicked(){const{active:t}=this.model.tool;this.model.tool.active=!t}}o.OnOffButtonView=a,a.__name__="OnOffButtonView";class r extends _.ToolButton{constructor(t){super(t)}}o.OnOffButton=r,i=r,r.__name__="OnOffButton",i.prototype.default_view=a}, +function _(e,t,o,n,s){var i;n();const l=e(1),r=e(293),_=e(301),c=l.__importStar(e(18));class a extends r.ToolView{get plot_view(){return this.parent}}o.InspectToolView=a,a.__name__="InspectToolView";class p extends r.Tool{constructor(e){super(e),this.event_type="move"}tool_button(){return new _.OnOffButton({tool:this})}}o.InspectTool=p,i=p,p.__name__="InspectTool",i.define((()=>({toggleable:[new c.PropertyAlias("visible")]}))),i.override({active:!0})}, +function _(o,t,n,s,i){s();const e=o(293),c=o(304),l=o(15);class _ extends e.ToolView{connect_signals(){super.connect_signals(),this.connect(this.model.do,(o=>this.doit(o)))}}n.ActionToolView=_,_.__name__="ActionToolView";class a extends e.Tool{constructor(o){super(o),this.do=new l.Signal(this,"do")}tool_button(){return new c.ClickButton({tool:this})}}n.ActionTool=a,a.__name__="ActionTool"}, +function _(t,o,e,n,i){var c;n();const l=t(295);class _ extends l.ToolButtonView{_clicked(){this.model.tool.do.emit(void 0)}}e.ClickButtonView=_,_.__name__="ClickButtonView";class s extends l.ToolButton{constructor(t){super(t)}}e.ClickButton=s,c=s,s.__name__="ClickButton",c.prototype.default_view=_}, +function _(o,e,t,l,i){var n;l();const s=o(303),r=o(123);class c extends s.ActionToolView{doit(){window.open(this.model.redirect)}}t.HelpToolView=c,c.__name__="HelpToolView";class _ extends s.ActionTool{constructor(o){super(o),this.tool_name="Help",this.tool_icon=r.tool_icon_help}}t.HelpTool=_,n=_,_.__name__="HelpTool",n.prototype.default_view=c,n.define((({Str:o})=>({redirect:[o,"https://docs.bokeh.org/en/latest/docs/user_guide/interaction/tools.html"]}))),n.override({description:"Click the question mark to learn more about Bokeh plot tools."}),n.register_alias("help",(()=>new n))}, function _(o,t,e,i,l){i(),e.inner="bk-inner",e.hidden="bk-hidden",e.logo="bk-logo",e.above="bk-above",e.below="bk-below",e.left="bk-left",e.right="bk-right",e.divider="bk-divider",e.tool_overflow="bk-tool-overflow",e.horizontal="bk-horizontal",e.vertical="bk-vertical",e.default=':host{--button-width:30px;--button-height:30px;--button-color:lightgray;}:host{display:flex;flex-wrap:nowrap;align-items:center;user-select:none;-webkit-user-select:none;}:host(.bk-inner){background-color:white;opacity:0.8;}:host(.bk-hidden){visibility:hidden;opacity:0;transition:visibility 0.3s linear, opacity 0.3s linear;}.bk-logo{flex-shrink:0;}:host(.bk-above),:host(.bk-below){flex-direction:row;justify-content:flex-end;}:host(.bk-above) .bk-logo,:host(.bk-below) .bk-logo{order:1;margin-left:5px;margin-right:0px;}:host(.bk-left),:host(.bk-right){flex-direction:column;justify-content:flex-start;}:host(.bk-left) .bk-logo,:host(.bk-right) .bk-logo{order:0;margin-bottom:5px;margin-top:0px;}.bk-divider{content:" ";display:inline-block;background-color:var(--button-color);}:host(.bk-above) .bk-divider,:host(.bk-below) .bk-divider{height:10px;width:1px;}:host(.bk-left) .bk-divider,:host(.bk-right) .bk-divider{height:1px;width:10px;}.bk-tool-overflow{color:gray;display:flex;align-items:center;}.bk-tool-overflow:hover{background-color:rgba(192, 192, 192, 0.15);}.bk-tool-overflow:focus,.bk-tool-overflow:focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}.bk-tool-overflow::-moz-focus-inner{border:0;}:host(.bk-above) .bk-tool-overflow,:host(.bk-below) .bk-tool-overflow,:host(.bk-horizontal) .bk-tool-overflow{width:calc(var(--button-width)/2);height:var(--button-height);flex-direction:row;}:host(.bk-left) .bk-tool-overflow,:host(.bk-right) .bk-tool-overflow,:host(.bk-vertical) .bk-tool-overflow{width:var(--button-width);height:calc(var(--button-height)/2);flex-direction:column;}'}, function _(A,l,g,o,d){o(),g.logo="bk-logo",g.grey="bk-grey",g.logo_small="bk-logo-small",g.default=".bk-logo{margin:5px;position:relative;display:block;background-repeat:no-repeat;}.bk-logo.bk-grey{filter:grayscale(100%);}.bk-logo-small{width:20px;height:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);}"}, -function _(e,t,i,s,a){var l;s();const r=e(261),_=e(168),h=e(24),n=e(56),o=e(80);class d extends r.UpperLowerView{*children(){yield*super.children();const{lower_head:e,upper_head:t}=this;null!=e&&(yield e),null!=t&&(yield t)}async lazy_initialize(){await super.lazy_initialize();const{lower_head:e,upper_head:t}=this.model;null!=e&&(this.lower_head=await(0,n.build_view)(e,{parent:this})),null!=t&&(this.upper_head=await(0,n.build_view)(t,{parent:this}))}set_data(e){super.set_data(e);const t=h.Indices.all_set(this._lower.length);this.lower_head?.set_data(e,t),this.upper_head?.set_data(e,t)}_paint_data(e){if(this.visuals.line.doit)for(let t=0,i=this._lower_sx.length;t({lower_head:[t(e(_.ArrowHead)),()=>new _.TeeHead({size:10})],upper_head:[t(e(_.ArrowHead)),()=>new _.TeeHead({size:10})]}))),l.override({level:"underlay"})}, -function _(L,e,T,l,H){l(),H("HTMLLabel",L(309).HTMLLabel),H("HTMLLabelSet",L(311).HTMLLabelSet),H("HTMLTitle",L(312).HTMLTitle)}, -function _(t,e,s,i,o){var n;i();const a=t(1),l=t(310),r=t(11),_=t(20),c=t(180),u=t(173),d=a.__importStar(t(80));class h extends l.TextAnnotationView{update_layout(){const{panel:t}=this;this.layout=null!=t?new u.SideLayout(t,(()=>this.get_size()),!1):void 0}_get_size(){const{text:t}=this.model,e=new c.TextBox({text:t}),{angle:s,angle_units:i}=this.model;e.angle=(0,r.compute_angle)(s,i),e.visuals=this.visuals.text.values();const o=e.size(),{padding:n}=this;return{width:o.width+n.left+n.right,height:o.height+n.top+n.bottom}}_paint(){const{angle:t,angle_units:e}=this.model,s=(0,r.compute_angle)(t,e),i=null!=this.layout?this.layout:this.plot_view.frame,o=this.coordinates.x_scale,n=this.coordinates.y_scale;let a=(()=>{switch(this.model.x_units){case"canvas":return this.model.x;case"screen":return i.bbox.xview.compute(this.model.x);case"data":return o.compute(this.model.x)}})(),l=(()=>{switch(this.model.y_units){case"canvas":return this.model.y;case"screen":return i.bbox.yview.compute(this.model.y);case"data":return n.compute(this.model.y)}})();a+=this.model.x_offset,l-=this.model.y_offset,this._paint_text(this.layer.ctx,this.model.text,a,l,s)}}s.HTMLLabelView=h,h.__name__="HTMLLabelView";class x extends l.TextAnnotation{constructor(t){super(t)}}s.HTMLLabel=x,n=x,x.__name__="HTMLLabel",n.prototype.default_view=h,n.mixins([d.Text,["border_",d.Line],["background_",d.Fill],["background_",d.Hatch]]),n.define((({Float:t,Str:e,Angle:s})=>({x:[t],x_units:[_.CoordinateUnits,"data"],y:[t],y_units:[_.CoordinateUnits,"data"],text:[e,""],angle:[s,0],angle_units:[_.AngleUnits,"rad"],x_offset:[t,0],y_offset:[t,0]}))),n.override({background_fill_color:null,background_hatch_color:null,border_line_color:null})}, +function _(e,t,i,s,a){var l;s();const r=e(262),_=e(168),h=e(24),n=e(56),o=e(80);class d extends r.UpperLowerView{*children(){yield*super.children();const{lower_head:e,upper_head:t}=this;null!=e&&(yield e),null!=t&&(yield t)}async lazy_initialize(){await super.lazy_initialize();const{lower_head:e,upper_head:t}=this.model;null!=e&&(this.lower_head=await(0,n.build_view)(e,{parent:this})),null!=t&&(this.upper_head=await(0,n.build_view)(t,{parent:this}))}set_data(e){super.set_data(e);const t=h.Indices.all_set(this._lower.length);this.lower_head?.set_data(e,t),this.upper_head?.set_data(e,t)}_paint_data(e){if(this.visuals.line.doit)for(let t=0,i=this._lower_sx.length;t({lower_head:[t(e(_.ArrowHead)),()=>new _.TeeHead({size:10})],upper_head:[t(e(_.ArrowHead)),()=>new _.TeeHead({size:10})]}))),l.override({level:"underlay"})}, +function _(L,e,T,l,H){l(),H("HTMLLabel",L(310).HTMLLabel),H("HTMLLabelSet",L(312).HTMLLabelSet),H("HTMLTitle",L(313).HTMLTitle)}, +function _(t,e,s,i,o){var n;i();const a=t(1),l=t(311),r=t(11),_=t(20),c=t(180),u=t(173),d=a.__importStar(t(80));class h extends l.TextAnnotationView{update_layout(){const{panel:t}=this;this.layout=null!=t?new u.SideLayout(t,(()=>this.get_size()),!1):void 0}_get_size(){const{text:t}=this.model,e=new c.TextBox({text:t}),{angle:s,angle_units:i}=this.model;e.angle=(0,r.compute_angle)(s,i),e.visuals=this.visuals.text.values();const o=e.size(),{padding:n}=this;return{width:o.width+n.left+n.right,height:o.height+n.top+n.bottom}}_paint(){const{angle:t,angle_units:e}=this.model,s=(0,r.compute_angle)(t,e),i=null!=this.layout?this.layout:this.plot_view.frame,o=this.coordinates.x_scale,n=this.coordinates.y_scale;let a=(()=>{switch(this.model.x_units){case"canvas":return this.model.x;case"screen":return i.bbox.xview.compute(this.model.x);case"data":return o.compute(this.model.x)}})(),l=(()=>{switch(this.model.y_units){case"canvas":return this.model.y;case"screen":return i.bbox.yview.compute(this.model.y);case"data":return n.compute(this.model.y)}})();a+=this.model.x_offset,l-=this.model.y_offset,this._paint_text(this.layer.ctx,this.model.text,a,l,s)}}s.HTMLLabelView=h,h.__name__="HTMLLabelView";class x extends l.TextAnnotation{constructor(t){super(t)}}s.HTMLLabel=x,n=x,x.__name__="HTMLLabel",n.prototype.default_view=h,n.mixins([d.Text,["border_",d.Line],["background_",d.Fill],["background_",d.Hatch]]),n.define((({Float:t,Str:e,Angle:s})=>({x:[t],x_units:[_.CoordinateUnits,"data"],y:[t],y_units:[_.CoordinateUnits,"data"],text:[e,""],angle:[s,0],angle_units:[_.AngleUnits,"rad"],x_offset:[t,0],y_offset:[t,0]}))),n.override({background_fill_color:null,background_hatch_color:null,border_line_color:null})}, function _(t,e,n,i,s){var o;i();const r=t(1),a=t(81),l=t(63),d=t(173),p=t(185),h=r.__importStar(t(186));class u extends a.AnnotationView{rendering_target(){return this.plot_view.canvas_view.overlays_el}update_layout(){const{panel:t}=this;this.layout=null!=t?new d.SideLayout(t,(()=>this.get_size()),!0):void 0}initialize(){super.initialize()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.paint()))}paint(){this.model.visible?super.paint():(0,l.undisplay)(this.el)}get padding(){return h.padding(this.model.padding)}get border_radius(){return h.border_radius(this.model.border_radius)}render(){super.render(),this.text_el=document.createTextNode(""),this.shadow_el.append(this.text_el)}_paint_text(t,e,n,i,s){const{el:o}=this;(0,l.undisplay)(o),this.text_el.textContent=e,this.visuals.text.set_value(t);const{padding:r,border_radius:a}=this;this.position.replace(`\n :host {\n position: absolute;\n left: ${n}px;\n top: ${i}px;\n }\n `),this.style.replace(`\n :host {\n color: ${t.fillStyle};\n -webkit-text-stroke: 1px ${t.strokeStyle};\n font: ${t.font};\n white-space: pre;\n\n padding-left: ${r.left}px;\n padding-right: ${r.right}px;\n padding-top: ${r.top}px;\n padding-bottom: ${r.bottom}px;\n\n border-top-left-radius: ${a.top_left}px;\n border-top-right-radius: ${a.top_right}px;\n border-bottom-right-radius: ${a.bottom_right}px;\n border-bottom-left-radius: ${a.bottom_left}px;\n }\n `);const[d,p]=(()=>{switch(this.visuals.text.text_align.get_value()){case"left":return["left","0%"];case"center":return["center","-50%"];case"right":return["right","-100%"]}})(),[h,u]=(()=>{switch(this.visuals.text.text_baseline.get_value()){case"top":return["top","0%"];case"middle":default:return["center","-50%"];case"bottom":return["bottom","-100%"]}})();let _=`translate(${p}, ${u})`;0!=s&&(_+=` rotate(${s}rad)`),this.style.append(`\n :host {\n transform-origin: ${d} ${h};\n transform: ${_};\n }\n `),this.layout,this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(t),this.style.append(`\n :host {\n background-color: ${t.fillStyle};\n }\n `)),this.visuals.border_line.doit&&(this.visuals.border_line.set_value(t),this.style.append(`\n :host {\n border-style: ${t.getLineDash().length<2?"solid":"dashed"};\n border-width: ${t.lineWidth}px;\n border-color: ${t.strokeStyle};\n }\n `)),(0,l.display)(o)}}n.TextAnnotationView=u,u.__name__="TextAnnotationView";class _ extends a.Annotation{constructor(t){super(t)}}n.TextAnnotation=_,o=_,_.__name__="TextAnnotation",o.define((()=>({padding:[p.Padding,0],border_radius:[p.BorderRadius,0]})))}, function _(t,e,s,i,r){var l;i();const a=t(1),o=t(127),n=a.__importStar(t(80)),c=t(20),_=t(63),h=a.__importStar(t(18)),u=t(24),d=t(12);class y extends o.DataAnnotationView{constructor(){super(...arguments),this.els=[]}set_data(t){super.set_data(t),this.els.forEach((t=>t.remove())),this.els=[...this.text.map((()=>(0,_.div)({style:{display:"none"}})))],this.plot_view.canvas_view.overlays_el.append(...this.els)}remove(){this.els.forEach((t=>t.remove())),this.els=[],super.remove()}_rerender(){this.paint()}map_data(){const{x_scale:t,y_scale:e}=this.coordinates,s=null!=this.layout?this.layout:this.plot_view.frame;this.sx=(()=>{switch(this.model.x_units){case"canvas":return new u.ScreenArray(this._x);case"screen":return s.bbox.xview.v_compute(this._x);case"data":return t.v_compute(this._x)}})(),this.sy=(()=>{switch(this.model.y_units){case"canvas":return new u.ScreenArray(this._y);case"screen":return s.bbox.yview.v_compute(this._y);case"data":return e.v_compute(this._y)}})()}_paint_data(){const{ctx:t}=this.layer;for(let e=0,s=this.text.length;e{switch(this.visuals.text.text_align.get(e)){case"left":return["left","0%"];case"center":return["center","-50%"];case"right":return["right","-100%"]}})(),[c,h]=(()=>{switch(this.visuals.text.text_baseline.get(e)){case"top":return["top","0%"];case"middle":default:return["center","-50%"];case"bottom":return["bottom","-100%"]}})();let u=`translate(${n}, ${h})`;0!=l&&(u+=`rotate(${l}rad)`),a.style.transformOrigin=`${o} ${c}`,a.style.transform=u,this.layout,this.visuals.background_fill.doit&&(this.visuals.background_fill.set_vectorize(t,e),a.style.backgroundColor=t.fillStyle),this.visuals.border_line.doit&&(this.visuals.border_line.set_vectorize(t,e),a.style.borderStyle=t.getLineDash().length<2?"solid":"dashed",a.style.borderWidth=`${t.lineWidth}px`,a.style.borderColor=t.strokeStyle),(0,_.display)(a)}}s.HTMLLabelSetView=y,y.__name__="HTMLLabelSetView";class p extends o.DataAnnotation{constructor(t){super(t)}}s.HTMLLabelSet=p,l=p,p.__name__="HTMLLabelSet",l.prototype.default_view=y,l.mixins([n.TextVector,["border_",n.LineVector],["background_",n.FillVector]]),l.define((()=>({x:[h.XCoordinateSpec,{field:"x"}],y:[h.YCoordinateSpec,{field:"y"}],x_units:[c.CoordinateUnits,"data"],y_units:[c.CoordinateUnits,"data"],text:[h.NullStringSpec,{field:"text"}],angle:[h.AngleSpec,0],x_offset:[h.NumberSpec,{value:0}],y_offset:[h.NumberSpec,{value:0}]}))),l.override({background_fill_color:null,border_line_color:null})}, -function _(t,e,i,o,a){var l;o();const s=t(1),n=t(310),r=t(20),c=t(180),h=s.__importStar(t(80));class _ extends n.TextAnnotationView{_get_location(){const t=this.model.offset,e=this.model.standoff/2;let i,o;const{bbox:a}=this.layout;switch(this.panel.side){case"above":case"below":switch(this.model.vertical_align){case"top":o=a.top+e;break;case"middle":o=a.vcenter;break;case"bottom":o=a.bottom-e}switch(this.model.align){case"left":i=a.left+t;break;case"center":i=a.hcenter;break;case"right":i=a.right-t}break;case"left":switch(this.model.vertical_align){case"top":i=a.left+e;break;case"middle":i=a.hcenter;break;case"bottom":i=a.right-e}switch(this.model.align){case"left":o=a.bottom-t;break;case"center":o=a.vcenter;break;case"right":o=a.top+t}break;case"right":switch(this.model.vertical_align){case"top":i=a.right-e;break;case"middle":i=a.hcenter;break;case"bottom":i=a.left+e}switch(this.model.align){case"left":o=a.top+t;break;case"center":o=a.vcenter;break;case"right":o=a.bottom-t}}return[i,o]}_paint(){const{text:t}=this.model;if(0==t.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[e,i]=this._get_location(),o=this.panel.get_label_angle_heuristic("parallel");this._paint_text(this.layer.ctx,t,e,i,o)}_get_size(){const{text:t}=this.model,e=new c.TextBox({text:t});e.visuals=this.visuals.text.values();const i=e.size(),{padding:o}=this,a=i.width+o.left+o.right,l=i.height+o.top+o.bottom;return{width:a,height:0==l?0:2+l+this.model.standoff}}}i.HTMLTitleView=_,_.__name__="HTMLTitleView";class d extends n.TextAnnotation{constructor(t){super(t)}}i.HTMLTitle=d,l=d,d.__name__="HTMLTitle",l.prototype.default_view=_,l.mixins([h.Text,["border_",h.Line],["background_",h.Fill],["background_",h.Hatch]]),l.define((({Float:t,Str:e})=>({text:[e,""],vertical_align:[r.VerticalAlign,"bottom"],align:[r.TextAlign,"left"],offset:[t,0],standoff:[t,10]}))),l.prototype._props.text_align.options.internal=!0,l.prototype._props.text_baseline.options.internal=!0,l.override({text_font_size:"13px",text_font_style:"bold",text_line_height:1,background_fill_color:null,background_hatch_color:null,border_line_color:null})}, -function _(i,e,l,o,g){o(),g("CustomJS",i(314).CustomJS),g("OpenURL",i(315).OpenURL),g("SetValue",i(316).SetValue),g("ToggleVisibility",i(317).ToggleVisibility),g("OpenDialog",i(318).OpenDialog),g("CloseDialog",i(322).CloseDialog)}, +function _(t,e,i,o,a){var l;o();const s=t(1),n=t(311),r=t(20),c=t(180),h=s.__importStar(t(80));class _ extends n.TextAnnotationView{_get_location(){const t=this.model.offset,e=this.model.standoff/2;let i,o;const{bbox:a}=this.layout;switch(this.panel.side){case"above":case"below":switch(this.model.vertical_align){case"top":o=a.top+e;break;case"middle":o=a.vcenter;break;case"bottom":o=a.bottom-e}switch(this.model.align){case"left":i=a.left+t;break;case"center":i=a.hcenter;break;case"right":i=a.right-t}break;case"left":switch(this.model.vertical_align){case"top":i=a.left+e;break;case"middle":i=a.hcenter;break;case"bottom":i=a.right-e}switch(this.model.align){case"left":o=a.bottom-t;break;case"center":o=a.vcenter;break;case"right":o=a.top+t}break;case"right":switch(this.model.vertical_align){case"top":i=a.right-e;break;case"middle":i=a.hcenter;break;case"bottom":i=a.left+e}switch(this.model.align){case"left":o=a.top+t;break;case"center":o=a.vcenter;break;case"right":o=a.bottom-t}}return[i,o]}_paint(){const{text:t}=this.model;if(0==t.length)return;this.model.text_baseline=this.model.vertical_align,this.model.text_align=this.model.align;const[e,i]=this._get_location(),o=this.panel.get_label_angle_heuristic("parallel");this._paint_text(this.layer.ctx,t,e,i,o)}_get_size(){const{text:t}=this.model,e=new c.TextBox({text:t});e.visuals=this.visuals.text.values();const i=e.size(),{padding:o}=this,a=i.width+o.left+o.right,l=i.height+o.top+o.bottom;return{width:a,height:0==l?0:2+l+this.model.standoff}}}i.HTMLTitleView=_,_.__name__="HTMLTitleView";class d extends n.TextAnnotation{constructor(t){super(t)}}i.HTMLTitle=d,l=d,d.__name__="HTMLTitle",l.prototype.default_view=_,l.mixins([h.Text,["border_",h.Line],["background_",h.Fill],["background_",h.Hatch]]),l.define((({Float:t,Str:e})=>({text:[e,""],vertical_align:[r.VerticalAlign,"bottom"],align:[r.TextAlign,"left"],offset:[t,0],standoff:[t,10]}))),l.prototype._props.text_align.options.internal=!0,l.prototype._props.text_baseline.options.internal=!0,l.override({text_font_size:"13px",text_font_style:"bold",text_line_height:1,background_fill_color:null,background_hatch_color:null,border_line_color:null})}, +function _(i,e,l,o,g){o(),g("CustomJS",i(315).CustomJS),g("OpenURL",i(316).OpenURL),g("SetValue",i(317).SetValue),g("ToggleVisibility",i(318).ToggleVisibility),g("OpenDialog",i(319).OpenDialog),g("CloseDialog",i(323).CloseDialog)}, function _(require,module,exports,__esModule,__esExport){var _a;__esModule();const callback_1=require(119),object_1=require(9),array_1=require(10),string_1=require(40),logging_1=require(19),types_1=require(8),standalone_1=require(54);class CustomJS extends callback_1.Callback{constructor(t){super(t),this._state=null}connect_signals(){super.connect_signals();const{args:t,code:e,module:s}=this.properties;this.on_change([t,e,s],(()=>this._state=null))}async _compile_module(){const url=URL.createObjectURL(new Blob([this.code],{type:"text/javascript"}));try{const module=await eval(`import("${url}")`);return(0,types_1.isFunction)(module.default)?module.default:(logging_1.logger.warn("custom ES module didn't export a default function"),()=>{})}finally{URL.revokeObjectURL(url)}}async _compile_function(){const[t=[],e=[]]=(0,array_1.unzip)((0,object_1.entries)(this.args)),s=(0,string_1.use_strict)(this.code),o=new Function(...t,"cb_obj","cb_data","cb_context",s);return function(...t){return o.call(this,...e,...t)}}_is_es_module(t){return t.split("\n").some((t=>t.trimStart().startsWith("export default")))}async _compile(){const t=(()=>"auto"==this.module?this._is_es_module(this.code):this.module)();return t?{func:await this._compile_module(),module:t}:{func:await this._compile_function(),module:t}}async state(){return null==this._state&&(this._state=await this._compile()),this._state}async execute(t,e={}){const{func:s,module:o}=await this.state(),n={index:standalone_1.index};return o?s((0,object_1.to_object)(this.args),t,e,n):s.call(t,t,e,n)}}exports.CustomJS=CustomJS,_a=CustomJS,CustomJS.__name__="CustomJS",_a.define((({Unknown:t,Str:e,Dict:s,Auto:o,Or:n,Bool:i})=>({args:[s(t),{}],code:[e],module:[n(o,i),"auto"]})))}, -function _(e,t,o,n,s){var i;n();const c=e(119),r=e(244),a=e(8);class d extends c.Callback{constructor(e){super(e)}navigate(e){this.same_tab?window.location.href=e:window.open(e)}execute(e,{source:t}){const o=e=>{const o=(0,r.replace_placeholders)(this.url,t,e,void 0,void 0,encodeURI);if(!(0,a.isString)(o))throw new Error("HTML output is not supported in this context");this.navigate(o)},{selected:n}=t;for(const e of n.indices)o(e);for(const e of n.line_indices)o(e)}}o.OpenURL=d,i=d,d.__name__="OpenURL",i.define((({Bool:e,Str:t})=>({url:[t,"http://"],same_tab:[e,!1]})))}, +function _(e,t,o,n,s){var i;n();const c=e(119),r=e(245),a=e(8);class d extends c.Callback{constructor(e){super(e)}navigate(e){this.same_tab?window.location.href=e:window.open(e)}execute(e,{source:t}){const o=e=>{const o=(0,r.replace_placeholders)(this.url,t,e,void 0,void 0,encodeURI);if(!(0,a.isString)(o))throw new Error("HTML output is not supported in this context");this.navigate(o)},{selected:n}=t;for(const e of n.indices)o(e);for(const e of n.line_indices)o(e)}}o.OpenURL=d,i=d,d.__name__="OpenURL",i.define((({Bool:e,Str:t})=>({url:[t,"http://"],same_tab:[e,!1]})))}, function _(e,t,r,o,a){var n;o();const s=e(119),c=e(14),l=e(19);class u extends s.Callback{constructor(e){super(e)}execute(){const{obj:e,attr:t,value:r}=this;t in e.properties?e.setv({[t]:r}):l.logger.error(`${e.type}.${t} is not a property`)}}r.SetValue=u,n=u,u.__name__="SetValue",n.define((({Str:e,Unknown:t,Ref:r})=>({obj:[r(c.HasProps)],attr:[e],value:[t]})))}, function _(e,i,t,s,l){var n;s();const c=e(119),a=e(111);class o extends c.Callback{constructor(e){super(e)}execute(){const{target:e}=this;e.visible=!e.visible}}t.ToggleVisibility=o,n=o,o.__name__="ToggleVisibility",n.define((({Ref:e})=>({target:[e(a.UIElement)]})))}, -function _(e,n,a,i,l){var o;i();const t=e(119),c=e(319);class s extends t.Callback{constructor(e){super(e)}async execute(){const{dialog:e}=this,n=e.document?.views_manager;if(null!=n){let a=n.find_one(e);null==a&&(a=await n.build_view(e)),a.open()}}}a.OpenDialog=s,o=s,s.__name__="OpenDialog",o.define((({Ref:e})=>({dialog:[e(c.Dialog)]})))}, -function _(t,e,i,s,n){var o;s();const l=t(1),r=t(111),a=t(125),h=t(320),_=t(63),m=t(8),c=t(56),d=t(64),p=t(10),b=t(34),u=t(12),g=l.__importStar(t(263)),f=t(60),x=t(21),v=l.__importStar(t(321)),z=v,w=l.__importDefault(t(123)),y=((0,x.Or)((0,x.Ref)(r.UIElement),(0,x.Ref)(a.DOMNode)),[]),L=(()=>{const t=(0,_.div)(),e=t.attachShadow({mode:"open"});return new _.InlineStyleSheet("\n:host {\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n position: fixed;\n left: 0;\n bottom: 0;\n width: max-content;\n height: max-content;\n}\n:host:empty {\n display: none;\n}\n").install(e),(0,_.dom_ready)().then((()=>document.body.append(t))),t})();class E extends r.UIElementView{constructor(){super(...arguments),this._position=new _.InlineStyleSheet,this._stacking=new _.InlineStyleSheet,this._has_rendered=!1,this._pinned=!1,this._normal_bbox=null,this._collapsed=!1,this._minimized=!1,this._maximized=!1}*children(){yield*super.children(),yield this._title,yield this._content}stylesheets(){return[...super.stylesheets(),v.default,w.default,this._position,this._stacking]}async lazy_initialize(){await super.lazy_initialize();const t=(()=>{const{title:t}=this.model;return(0,m.isString)(t)||null==t?new h.Text({content:t??""}):t})(),e=(()=>{const{content:t}=this.model;return(0,m.isString)(t)?new h.Text({content:t}):t})();this._title=await(0,c.build_view)(t,{parent:this}),this._content=await(0,c.build_view)(e,{parent:this})}connect_signals(){super.connect_signals();const{visible:t}=this.model.properties;this.connect(t.change,(()=>this._toggle(this.model.visible)))}remove(){(0,p.remove)(y,this),this._content.remove(),this._title.remove(),super.remove()}_reposition(t){this._position.replace(":host",{left:"left"in t?(0,_.px)(t.left):"unset",right:"right"in t?(0,_.px)(t.right):"unset",top:"top"in t?(0,_.px)(t.top):"unset",bottom:"bottom"in t?(0,_.px)(t.bottom):"unset",width:"width"in t?(0,_.px)(t.width):"unset",height:"height"in t?(0,_.px)(t.height):"unset"}),this.update_bbox()}render(){super.render(),this._title.render(),this._content.render();const t=(0,_.div)({class:z.inner});this.shadow_el.append(t);const e=(0,_.div)({class:z.header}),i=(0,_.div)({class:z.content},this._content.el),s=(0,_.div)({class:z.footer});t.append(e),t.append(i),t.append(s);const n=(0,_.div)({class:z.grip}),o=(0,_.div)({class:z.title},n,this._title.el),l=(0,_.div)({class:z.controls});e.append(o,l);const r=(0,_.div)({class:[z.ctrl,z.pin],title:"Pin"});r.addEventListener("click",(()=>this.pin())),this._pin_el=r;const a=(0,_.div)({class:[z.ctrl,z.collapse],title:"Collapse"});a.addEventListener("click",(()=>this.collapse())),this._collapse_el=a;const h=(0,_.div)({class:[z.ctrl,z.minimize],title:"Minimize"});h.addEventListener("click",(()=>this.minimize())),this._minimize_el=h;const m=(0,_.div)({class:[z.ctrl,z.maximize],title:"Maximize"});m.addEventListener("click",(()=>this.maximize())),this._maximize_el=m;const c=(0,_.div)({class:[z.ctrl,z.close],title:"Close"});c.addEventListener("click",(()=>this.close())),this._close_el=c,this.model.pinnable&&l.append(r),this.model.collapsible&&l.append(a),this.model.minimizable&&l.append(h),this.model.maximizable&&l.append(m),this.model.closable&&l.append(c);const d=this._handles={area:o,top:(0,_.div)({class:[z.handle,z.resize_top]}),bottom:(0,_.div)({class:[z.handle,z.resize_bottom]}),left:(0,_.div)({class:[z.handle,z.resize_left]}),right:(0,_.div)({class:[z.handle,z.resize_right]}),top_left:(0,_.div)({class:[z.handle,z.resize_top_left]}),top_right:(0,_.div)({class:[z.handle,z.resize_top_right]}),bottom_left:(0,_.div)({class:[z.handle,z.resize_bottom_left]}),bottom_right:(0,_.div)({class:[z.handle,z.resize_bottom_right]})};this.shadow_el.append(d.top,d.bottom,d.left,d.right,d.top_left,d.top_right,d.bottom_left,d.bottom_right);let p=null;const b=()=>{p=null,document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",f),document.removeEventListener("keydown",x),this.el.classList.remove(z.interacting)},g=t=>{(0,u.assert)(null!=p),t.preventDefault(),this.el.classList.add(z.interacting);const e=t.x-p.xy.x,i=t.y-p.xy.y,{target:s,bbox:n}=p,o=this._move_bbox(s,n,e,i);this._reposition(o)},f=t=>{(0,u.assert)(null!=p),t.preventDefault(),b()},x=t=>{if("Escape"==t.key){(0,u.assert)(null!=p),t.preventDefault();const{left:e,top:i,width:s,height:n}=p.bbox;this._reposition({left:e,top:i,width:s,height:n}),b()}};this.el.addEventListener("pointerdown",(t=>{(0,u.assert)(null==p),this.bring_to_front();const e=this._hit_target(t.composedPath());if(null==e||!this._can_hit(e))return;t.preventDefault();const{x:i,y:s}=t;p={bbox:(0,_.bounding_box)(this.el),xy:{x:i,y:s},target:e},document.addEventListener("pointermove",g),document.addEventListener("pointerup",f),document.addEventListener("keydown",x);this._handles[e].setPointerCapture(t.pointerId)})),o.addEventListener("wheel",(t=>{const e=t.deltaY;(e<0&&!this._collapsed||e>0&&this._collapsed)&&(t.preventDefault(),t.stopPropagation(),this.collapse())})),this._has_rendered=!0,this.model.visible&&this.bring_to_front()}get resizable(){const{resizable:t}=this.model;return{left:"left"==t||"x"==t||"all"==t,right:"right"==t||"x"==t||"all"==t,top:"top"==t||"y"==t||"all"==t,bottom:"bottom"==t||"y"==t||"all"==t}}_hit_target(t){const{_handles:e}=this;for(const i of t)switch(i){case e.area:return"area";case e.top:return"top";case e.bottom:return"bottom";case e.left:return"left";case e.right:return"right";case e.top_left:return"top_left";case e.top_right:return"top_right";case e.bottom_left:return"bottom_left";case e.bottom_right:return"bottom_right"}return null}_can_hit(t){if(this._minimized||this._maximized)return!1;const{left:e,right:i,top:s,bottom:n}=this.resizable;switch(t){case"top_left":return s&&e;case"top_right":return s&&i;case"bottom_left":return n&&e;case"bottom_right":return n&&i;case"left":return e;case"right":return i;case"top":return s;case"bottom":return n;case"area":return"none"!=this.model.movable}}_move_bbox(t,e,i,s){const n=(t,e)=>e instanceof f.Coordinate?this.resolve_as_scalar(e,t):NaN,o=d.BBox.from_lrtb({left:n("x",this.model.left_limit),right:n("x",this.model.right_limit),top:n("y",this.model.top_limit),bottom:n("y",this.model.bottom_limit)}),[l,r,a,h]=(()=>{const{symmetric:e}=this.model,[n,o]=e?[-i,-s]:[0,0];switch(t){case"top_left":return[i,n,s,o];case"top_right":return[n,i,s,o];case"bottom_left":return[i,n,o,s];case"bottom_right":return[n,i,o,s];case"left":return[i,n,0,0];case"right":return[n,i,0,0];case"top":return[0,0,s,o];case"bottom":return[0,0,o,s];case"area":switch(this.model.movable){case"both":return[i,i,s,s];case"x":return[i,i,0,0];case"y":return[0,0,s,s];case"none":return[0,0,0,0]}}})(),_=(t,e)=>(0,p.min)([t,e]),m=t=>t<0?-1:t>0?1:0;let{left:c,right:b,left_sign:u,right_sign:g}=(()=>{const t=e.left+l,i=e.right+r,s=m(l),n=m(r);return t<=i?{left:t,right:i,left_sign:s,right_sign:n}:{left:i,right:t,left_sign:n,right_sign:s}})(),{top:x,bottom:v,top_sign:z,bottom_sign:w}=(()=>{const t=e.top+a,i=e.bottom+h,s=m(a),n=m(h);return t<=i?{top:t,bottom:i,top_sign:s,bottom_sign:n}:{top:i,bottom:t,top_sign:n,bottom_sign:s}})();const y=c-o.left,L=o.right-b,E=_(y<0?y:NaN,L<0?L:NaN);isFinite(E)&&E<0&&(c+=-u*-E,b+=-g*-E);const N=x-o.top,k=o.bottom-v,D=_(N<0?N:NaN,k<0?k:NaN);return isFinite(D)&&D<0&&(x+=-z*-D,v+=-w*-D),d.BBox.from_lrtb({left:c,right:b,top:x,bottom:v})}pin(){const{_pinned:t}=this;for(const e of y)e==this?this._pin(!t):e._pin(!1);t||this.bring_to_front()}_pin(t){this._pinned!=t&&(this._pinned=t,this.el.classList.toggle(z.pinned,this._pinned),this._pin_el.title=this._pinned?"Unpin":"Pin")}collapse(){const t=(()=>{if(this._collapsed){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}{this._minimize(!1),this._maximize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el));const{left:t,top:e,width:i}=this._normal_bbox;return{left:t,top:e,width:i,height:"max-content"}}})();this._reposition(t),this._collapse(!this._collapsed)}_collapse(t){this._collapsed!=t&&(this._collapsed=t,this.el.classList.toggle(z.collapsed,this._collapsed),this._collapse_el.title=this._collapsed?"Restore":"Collapse")}minimize(){const t=(()=>{if(this._minimized){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}return this._pin(!1),this._collapse(!1),this._maximize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el)),{width:"auto",height:"max-content"}})();this._reposition(t),this._minimize(!this._minimized)}_minimize(t){if(this._minimized!=t){this._minimized=t;(t?L.shadowRoot??L:document.body).append(this.el),this.el.classList.toggle(z.minimized,this._minimized),this._minimize_el.title=this._minimized?"Restore":"Minimize"}}maximize(){const t=(()=>{if(this._maximized){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}return this._collapse(!1),this._minimize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el)),{left:0,top:0,width:"100%",height:"100%"}})();this._reposition(t),this._maximize(!this._maximized)}_maximize(t){this._maximized!=t&&(this._maximized=t,this.el.classList.toggle(z.maximized,this._maximized),this._maximize_el.title=this._maximized?"Restore":"Maximize")}restore(){this._collapse(!1),this._minimize(!1),this._maximize(!1);const{_normal_bbox:t}=this;null!=t&&(this._reposition(t),this._normal_bbox=null)}_toggle(t){t?(this._has_rendered||(this.render_to(document.body),this.r_after_render()),this.bring_to_front()):((0,p.remove)(y,this),this.el.remove())}open(){this.model.setv({visible:!0},{check_eq:!1})}close(){switch(this.model.close_action){case"hide":this.model.visible=!1;break;case"destroy":this.remove()}}bring_to_front(){y.includes(this)||y.push(this);const t=(0,p.find)(y,(t=>t._pinned));null!=t&&(0,p.remove)(y,t),(0,p.remove)(y,this),y.push(this),null!=t&&y.push(t);for(const[t,e]of(0,b.enumerate)(y))t._stacking.replace(":host",{"z-index":`${1e3+e}`})}}i.DialogView=E,E.__name__="DialogView";class N extends r.UIElement{constructor(t){super(t)}}i.Dialog=N,o=N,N.__name__="Dialog",o.prototype.default_view=E,o.define((({Bool:t,Str:e,Ref:i,Or:s,Nullable:n,Enum:o})=>({title:[n(s(e,i(a.DOMNode),i(r.UIElement))),null],content:[s(e,i(a.DOMNode),i(r.UIElement))],pinnable:[t,!0],collapsible:[t,!0],minimizable:[t,!0],maximizable:[t,!0],closable:[t,!0],close_action:[o("hide","destroy"),"destroy"],resizable:[g.Resizable,"all"],movable:[g.Movable,"both"],symmetric:[t,!1],top_limit:[g.Limit,null],bottom_limit:[g.Limit,null],left_limit:[g.Limit,null],right_limit:[g.Limit,null]})))}, +function _(e,n,a,i,l){var o;i();const t=e(119),c=e(320);class s extends t.Callback{constructor(e){super(e)}async execute(){const{dialog:e}=this,n=e.document?.views_manager;if(null!=n){let a=n.find_one(e);null==a&&(a=await n.build_view(e)),a.open()}}}a.OpenDialog=s,o=s,s.__name__="OpenDialog",o.define((({Ref:e})=>({dialog:[e(c.Dialog)]})))}, +function _(t,e,i,s,n){var o;s();const l=t(1),r=t(111),a=t(125),h=t(321),_=t(63),m=t(8),c=t(56),d=t(64),p=t(10),b=t(34),u=t(12),g=l.__importStar(t(264)),f=t(60),x=t(21),v=l.__importStar(t(322)),z=v,w=l.__importDefault(t(123)),y=((0,x.Or)((0,x.Ref)(r.UIElement),(0,x.Ref)(a.DOMNode)),[]),L=(()=>{const t=(0,_.div)(),e=t.attachShadow({mode:"open"});return new _.InlineStyleSheet("\n:host {\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n position: fixed;\n left: 0;\n bottom: 0;\n width: max-content;\n height: max-content;\n}\n:host:empty {\n display: none;\n}\n").install(e),(0,_.dom_ready)().then((()=>document.body.append(t))),t})();class E extends r.UIElementView{constructor(){super(...arguments),this._position=new _.InlineStyleSheet,this._stacking=new _.InlineStyleSheet,this._has_rendered=!1,this._pinned=!1,this._normal_bbox=null,this._collapsed=!1,this._minimized=!1,this._maximized=!1}*children(){yield*super.children(),yield this._title,yield this._content}stylesheets(){return[...super.stylesheets(),v.default,w.default,this._position,this._stacking]}async lazy_initialize(){await super.lazy_initialize();const t=(()=>{const{title:t}=this.model;return(0,m.isString)(t)||null==t?new h.Text({content:t??""}):t})(),e=(()=>{const{content:t}=this.model;return(0,m.isString)(t)?new h.Text({content:t}):t})();this._title=await(0,c.build_view)(t,{parent:this}),this._content=await(0,c.build_view)(e,{parent:this})}connect_signals(){super.connect_signals();const{visible:t}=this.model.properties;this.connect(t.change,(()=>this._toggle(this.model.visible)))}remove(){(0,p.remove)(y,this),this._content.remove(),this._title.remove(),super.remove()}_reposition(t){this._position.replace(":host",{left:"left"in t?(0,_.px)(t.left):"unset",right:"right"in t?(0,_.px)(t.right):"unset",top:"top"in t?(0,_.px)(t.top):"unset",bottom:"bottom"in t?(0,_.px)(t.bottom):"unset",width:"width"in t?(0,_.px)(t.width):"unset",height:"height"in t?(0,_.px)(t.height):"unset"}),this.update_bbox()}render(){super.render(),this._title.render(),this._content.render();const t=(0,_.div)({class:z.inner});this.shadow_el.append(t);const e=(0,_.div)({class:z.header}),i=(0,_.div)({class:z.content},this._content.el),s=(0,_.div)({class:z.footer});t.append(e),t.append(i),t.append(s);const n=(0,_.div)({class:z.grip}),o=(0,_.div)({class:z.title},n,this._title.el),l=(0,_.div)({class:z.controls});e.append(o,l);const r=(0,_.div)({class:[z.ctrl,z.pin],title:"Pin"});r.addEventListener("click",(()=>this.pin())),this._pin_el=r;const a=(0,_.div)({class:[z.ctrl,z.collapse],title:"Collapse"});a.addEventListener("click",(()=>this.collapse())),this._collapse_el=a;const h=(0,_.div)({class:[z.ctrl,z.minimize],title:"Minimize"});h.addEventListener("click",(()=>this.minimize())),this._minimize_el=h;const m=(0,_.div)({class:[z.ctrl,z.maximize],title:"Maximize"});m.addEventListener("click",(()=>this.maximize())),this._maximize_el=m;const c=(0,_.div)({class:[z.ctrl,z.close],title:"Close"});c.addEventListener("click",(()=>this.close())),this._close_el=c,this.model.pinnable&&l.append(r),this.model.collapsible&&l.append(a),this.model.minimizable&&l.append(h),this.model.maximizable&&l.append(m),this.model.closable&&l.append(c);const d=this._handles={area:o,top:(0,_.div)({class:[z.handle,z.resize_top]}),bottom:(0,_.div)({class:[z.handle,z.resize_bottom]}),left:(0,_.div)({class:[z.handle,z.resize_left]}),right:(0,_.div)({class:[z.handle,z.resize_right]}),top_left:(0,_.div)({class:[z.handle,z.resize_top_left]}),top_right:(0,_.div)({class:[z.handle,z.resize_top_right]}),bottom_left:(0,_.div)({class:[z.handle,z.resize_bottom_left]}),bottom_right:(0,_.div)({class:[z.handle,z.resize_bottom_right]})};this.shadow_el.append(d.top,d.bottom,d.left,d.right,d.top_left,d.top_right,d.bottom_left,d.bottom_right);let p=null;const b=()=>{p=null,document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",f),document.removeEventListener("keydown",x),this.el.classList.remove(z.interacting)},g=t=>{(0,u.assert)(null!=p),t.preventDefault(),this.el.classList.add(z.interacting);const e=t.x-p.xy.x,i=t.y-p.xy.y,{target:s,bbox:n}=p,o=this._move_bbox(s,n,e,i);this._reposition(o)},f=t=>{(0,u.assert)(null!=p),t.preventDefault(),b()},x=t=>{if("Escape"==t.key){(0,u.assert)(null!=p),t.preventDefault();const{left:e,top:i,width:s,height:n}=p.bbox;this._reposition({left:e,top:i,width:s,height:n}),b()}};this.el.addEventListener("pointerdown",(t=>{(0,u.assert)(null==p),this.bring_to_front();const e=this._hit_target(t.composedPath());if(null==e||!this._can_hit(e))return;t.preventDefault();const{x:i,y:s}=t;p={bbox:(0,_.bounding_box)(this.el),xy:{x:i,y:s},target:e},document.addEventListener("pointermove",g),document.addEventListener("pointerup",f),document.addEventListener("keydown",x);this._handles[e].setPointerCapture(t.pointerId)})),o.addEventListener("wheel",(t=>{const e=t.deltaY;(e<0&&!this._collapsed||e>0&&this._collapsed)&&(t.preventDefault(),t.stopPropagation(),this.collapse())})),this._has_rendered=!0,this.model.visible&&this.bring_to_front()}get resizable(){const{resizable:t}=this.model;return{left:"left"==t||"x"==t||"all"==t,right:"right"==t||"x"==t||"all"==t,top:"top"==t||"y"==t||"all"==t,bottom:"bottom"==t||"y"==t||"all"==t}}_hit_target(t){const{_handles:e}=this;for(const i of t)switch(i){case e.area:return"area";case e.top:return"top";case e.bottom:return"bottom";case e.left:return"left";case e.right:return"right";case e.top_left:return"top_left";case e.top_right:return"top_right";case e.bottom_left:return"bottom_left";case e.bottom_right:return"bottom_right"}return null}_can_hit(t){if(this._minimized||this._maximized)return!1;const{left:e,right:i,top:s,bottom:n}=this.resizable;switch(t){case"top_left":return s&&e;case"top_right":return s&&i;case"bottom_left":return n&&e;case"bottom_right":return n&&i;case"left":return e;case"right":return i;case"top":return s;case"bottom":return n;case"area":return"none"!=this.model.movable}}_move_bbox(t,e,i,s){const n=(t,e)=>e instanceof f.Coordinate?this.resolve_as_scalar(e,t):NaN,o=d.BBox.from_lrtb({left:n("x",this.model.left_limit),right:n("x",this.model.right_limit),top:n("y",this.model.top_limit),bottom:n("y",this.model.bottom_limit)}),[l,r,a,h]=(()=>{const{symmetric:e}=this.model,[n,o]=e?[-i,-s]:[0,0];switch(t){case"top_left":return[i,n,s,o];case"top_right":return[n,i,s,o];case"bottom_left":return[i,n,o,s];case"bottom_right":return[n,i,o,s];case"left":return[i,n,0,0];case"right":return[n,i,0,0];case"top":return[0,0,s,o];case"bottom":return[0,0,o,s];case"area":switch(this.model.movable){case"both":return[i,i,s,s];case"x":return[i,i,0,0];case"y":return[0,0,s,s];case"none":return[0,0,0,0]}}})(),_=(t,e)=>(0,p.min)([t,e]),m=t=>t<0?-1:t>0?1:0;let{left:c,right:b,left_sign:u,right_sign:g}=(()=>{const t=e.left+l,i=e.right+r,s=m(l),n=m(r);return t<=i?{left:t,right:i,left_sign:s,right_sign:n}:{left:i,right:t,left_sign:n,right_sign:s}})(),{top:x,bottom:v,top_sign:z,bottom_sign:w}=(()=>{const t=e.top+a,i=e.bottom+h,s=m(a),n=m(h);return t<=i?{top:t,bottom:i,top_sign:s,bottom_sign:n}:{top:i,bottom:t,top_sign:n,bottom_sign:s}})();const y=c-o.left,L=o.right-b,E=_(y<0?y:NaN,L<0?L:NaN);isFinite(E)&&E<0&&(c+=-u*-E,b+=-g*-E);const N=x-o.top,k=o.bottom-v,D=_(N<0?N:NaN,k<0?k:NaN);return isFinite(D)&&D<0&&(x+=-z*-D,v+=-w*-D),d.BBox.from_lrtb({left:c,right:b,top:x,bottom:v})}pin(){const{_pinned:t}=this;for(const e of y)e==this?this._pin(!t):e._pin(!1);t||this.bring_to_front()}_pin(t){this._pinned!=t&&(this._pinned=t,this.el.classList.toggle(z.pinned,this._pinned),this._pin_el.title=this._pinned?"Unpin":"Pin")}collapse(){const t=(()=>{if(this._collapsed){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}{this._minimize(!1),this._maximize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el));const{left:t,top:e,width:i}=this._normal_bbox;return{left:t,top:e,width:i,height:"max-content"}}})();this._reposition(t),this._collapse(!this._collapsed)}_collapse(t){this._collapsed!=t&&(this._collapsed=t,this.el.classList.toggle(z.collapsed,this._collapsed),this._collapse_el.title=this._collapsed?"Restore":"Collapse")}minimize(){const t=(()=>{if(this._minimized){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}return this._pin(!1),this._collapse(!1),this._maximize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el)),{width:"auto",height:"max-content"}})();this._reposition(t),this._minimize(!this._minimized)}_minimize(t){if(this._minimized!=t){this._minimized=t;(t?L.shadowRoot??L:document.body).append(this.el),this.el.classList.toggle(z.minimized,this._minimized),this._minimize_el.title=this._minimized?"Restore":"Minimize"}}maximize(){const t=(()=>{if(this._maximized){const{_normal_bbox:t}=this;return(0,u.assert)(null!=t),this._normal_bbox=null,t}return this._collapse(!1),this._minimize(!1),null==this._normal_bbox&&(this._normal_bbox=(0,_.bounding_box)(this.el)),{left:0,top:0,width:"100%",height:"100%"}})();this._reposition(t),this._maximize(!this._maximized)}_maximize(t){this._maximized!=t&&(this._maximized=t,this.el.classList.toggle(z.maximized,this._maximized),this._maximize_el.title=this._maximized?"Restore":"Maximize")}restore(){this._collapse(!1),this._minimize(!1),this._maximize(!1);const{_normal_bbox:t}=this;null!=t&&(this._reposition(t),this._normal_bbox=null)}_toggle(t){t?(this._has_rendered||(this.render_to(document.body),this.r_after_render()),this.bring_to_front()):((0,p.remove)(y,this),this.el.remove())}open(){this.model.setv({visible:!0},{check_eq:!1})}close(){switch(this.model.close_action){case"hide":this.model.visible=!1;break;case"destroy":this.remove()}}bring_to_front(){y.includes(this)||y.push(this);const t=(0,p.find)(y,(t=>t._pinned));null!=t&&(0,p.remove)(y,t),(0,p.remove)(y,this),y.push(this),null!=t&&y.push(t);for(const[t,e]of(0,b.enumerate)(y))t._stacking.replace(":host",{"z-index":`${1e3+e}`})}}i.DialogView=E,E.__name__="DialogView";class N extends r.UIElement{constructor(t){super(t)}}i.Dialog=N,o=N,N.__name__="Dialog",o.prototype.default_view=E,o.define((({Bool:t,Str:e,Ref:i,Or:s,Nullable:n,Enum:o})=>({title:[n(s(e,i(a.DOMNode),i(r.UIElement))),null],content:[s(e,i(a.DOMNode),i(r.UIElement))],pinnable:[t,!0],collapsible:[t,!0],minimizable:[t,!0],maximizable:[t,!0],closable:[t,!0],close_action:[o("hide","destroy"),"destroy"],resizable:[g.Resizable,"all"],movable:[g.Movable,"both"],symmetric:[t,!1],top_limit:[g.Limit,null],bottom_limit:[g.Limit,null],left_limit:[g.Limit,null],right_limit:[g.Limit,null]})))}, function _(e,t,n,r,o){var s;r();const _=e(125);class c extends _.DOMNodeView{render(){this.el.textContent=this.model.content}after_render(){this.finish()}_create_element(){return document.createTextNode("")}}n.TextView=c,c.__name__="TextView";class d extends _.DOMNode{constructor(e){super(e)}}n.Text=d,s=d,d.__name__="Text",s.prototype.default_view=c,s.define((({Str:e})=>({content:[e,""]})))}, function _(e,i,o,r,t){r(),o.interacting="bk-interacting",o.inner="bk-inner",o.header="bk-header",o.content="bk-content",o.collapsed="bk-collapsed",o.minimized="bk-minimized",o.footer="bk-footer",o.grip="bk-grip",o.title="bk-title",o.controls="bk-controls",o.ctrl="bk-ctrl",o.pin="bk-pin",o.pinned="bk-pinned",o.collapse="bk-collapse",o.minimize="bk-minimize",o.maximize="bk-maximize",o.maximized="bk-maximized",o.close="bk-close",o.handle="bk-handle",o.resize_top="bk-resize-top",o.resize_bottom="bk-resize-bottom",o.resize_left="bk-resize-left",o.resize_right="bk-resize-right",o.resize_top_left="bk-resize-top-left",o.resize_top_right="bk-resize-top-right",o.resize_bottom_left="bk-resize-bottom-left",o.resize_bottom_right="bk-resize-bottom-right",o.default=":host{--bokeh-bg-color:white;--bokeh-border-color:#e5e5e5;--bokeh-shadow-color:#e5e5e5;--bokeh-ctrl-size:16px;--bokeh-ctrl-color:gray;}:host{position:fixed;left:200px;top:200px;width:600px;height:600px;width:80vw;height:60vh;}:host(.bk-interacting){opacity:0.9;}.bk-inner{position:relative;display:flex;flex-direction:column;flex-wrap:nowrap;width:100%;height:100%;overflow:hidden;border-radius:4px;background-color:var(--bokeh-bg-color);border:1px solid var(--bokeh-border-color);box-shadow:5px 5px 10px var(--bokeh-shadow-color);}.bk-header{position:relative;display:flex;flex:0;gap:1em;padding:5px;background-color:lightgray;}.bk-content{position:relative;display:flex;flex:1;overflow:auto;}:host(.bk-collapsed) .bk-content,:host(.bk-minimized) .bk-content,:host(.bk-collapsed) .bk-footer,:host(.bk-minimized) .bk-footer{display:none;}.bk-footer{position:relative;display:flex;flex:0;}.bk-grip{width:var(--bokeh-ctrl-size);height:var(--bokeh-ctrl-size);background-color:var(--bokeh-ctrl-color);background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-y-grip);-webkit-mask-image:var(--bokeh-icon-y-grip);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}.bk-title{position:relative;display:flex;flex:1;cursor:move;white-space:nowrap;}.bk-controls{position:relative;display:flex;flex:0;}.bk-ctrl{width:var(--bokeh-ctrl-size);height:var(--bokeh-ctrl-size);cursor:pointer;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;background-color:var(--bokeh-ctrl-color);}.bk-ctrl:hover{background-color:red;}.bk-pin{mask-image:var(--bokeh-icon-pin);-webkit-mask-image:var(--bokeh-icon-pin);}:host(.bk-pinned) .bk-pin{mask-image:var(--bokeh-icon-unpin);-webkit-mask-image:var(--bokeh-icon-unpin);}.bk-collapse{mask-image:var(--bokeh-icon-chevron-up);-webkit-mask-image:var(--bokeh-icon-chevron-up);}:host(.bk-collapsed) .bk-collapse{mask-image:var(--bokeh-icon-chevron-down);-webkit-mask-image:var(--bokeh-icon-chevron-down);}.bk-minimize{mask-image:var(--bokeh-icon-arrow-down-to-bar);-webkit-mask-image:var(--bokeh-icon-arrow-down-to-bar);}:host(.bk-minimized) .bk-minimize{mask-image:var(--bokeh-icon-arrow-up-from-bar);-webkit-mask-image:var(--bokeh-icon-arrow-up-from-bar);}.bk-maximize{mask-image:var(--bokeh-icon-maximize);-webkit-mask-image:var(--bokeh-icon-maximize);}:host(.bk-maximized) .bk-maximize{mask-image:var(--bokeh-icon-minimize);-webkit-mask-image:var(--bokeh-icon-minimize);}.bk-close{mask-image:var(--bokeh-icon-x);-webkit-mask-image:var(--bokeh-icon-x);}:host{--resize-radius:3px;--resize-depth:calc(2*var(--resize-radius));}:host(.bk-minimized){position:relative;}:host(.bk-minimized) .bk-handle,:host(.bk-maximized) .bk-handle{display:none;}:host(.bk-minimized) .bk-title,:host(.bk-maximized) .bk-title{cursor:default;}.bk-resize-top{position:absolute;top:0;left:var(--resize-radius);width:calc(100% - var(--resize-depth));height:var(--resize-depth);transform:translate(0, -50%);cursor:ns-resize;}.bk-resize-bottom{position:absolute;bottom:0;left:var(--resize-radius);width:calc(100% - var(--resize-depth));height:var(--resize-depth);transform:translate(0, 50%);cursor:ns-resize;}.bk-resize-left{position:absolute;left:0;top:var(--resize-radius);width:var(--resize-depth);height:calc(100% - var(--resize-depth));transform:translate(-50%, 0);cursor:ew-resize;}.bk-resize-right{position:absolute;right:0;top:var(--resize-radius);width:var(--resize-depth);height:calc(100% - var(--resize-depth));transform:translate(50%, 0);cursor:ew-resize;}.bk-resize-top-left{position:absolute;top:0;left:0;width:var(--resize-depth);height:var(--resize-depth);transform:translate(-50%, -50%);cursor:nw-resize;}.bk-resize-top-right{position:absolute;top:0;right:0;width:var(--resize-depth);height:var(--resize-depth);transform:translate(50%, -50%);cursor:ne-resize;}.bk-resize-bottom-left{position:absolute;bottom:0;left:0;width:var(--resize-depth);height:var(--resize-depth);transform:translate(-50%, 50%);cursor:sw-resize;}.bk-resize-bottom-right{position:absolute;bottom:0;right:0;width:var(--resize-depth);height:var(--resize-depth);transform:translate(50%, 50%);cursor:se-resize;}"}, -function _(e,o,a,n,s){var c;n();const l=e(119),i=e(319);class t extends l.Callback{constructor(e){super(e)}async execute(){const{dialog:e}=this;e.document?.views_manager?.find_one(e)?.close()}}a.CloseDialog=t,c=t,t.__name__="CloseDialog",c.define((({Ref:e})=>({dialog:[e(i.Dialog)]})))}, -function _(a,n,e,r,s){r(),s("Canvas",a(324).Canvas),s("CartesianFrame",a(188).CartesianFrame)}, -function _(e,t,s,i,a){var r;i();const l=e(1),n=e(29),o=e(19),h=e(63),_=e(20),c=e(325),p=e(183),u=e(112),b=e(111),d=e(63),v=l.__importStar(e(327)),w=l.__importDefault(e(123));const g=(()=>{let t;return async()=>void 0!==t?t:t=await async function(){const t=document.createElement("canvas"),s=t.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!0});if(null!=s){const i=await(0,p.load_module)(Promise.resolve().then((()=>l.__importStar(e(539)))));if(null!=i){const e=i.get_regl(s);if(e.has_webgl)return{canvas:t,regl_wrapper:e};o.logger.trace("WebGL is supported, but not the required extensions")}else o.logger.trace("WebGL is supported, but bokehjs(.min).js bundle is not available")}else o.logger.trace("WebGL is not supported");return null}()})();class y extends b.UIElementView{constructor(){super(...arguments),this.webgl=null,this._size=new d.InlineStyleSheet,this.plot_views=[]}initialize(){super.initialize(),this.underlays_el=(0,h.div)({class:v.layer}),this.primary=this.create_layer(),this.overlays=this.create_layer(),this.overlays_el=(0,h.div)({class:v.layer}),this.events_el=(0,h.div)({class:[v.layer,v.events]}),this.ui_event_bus=new c.UIEventBus(this)}get layers(){return[this.underlays_el,this.primary,this.overlays,this.overlays_el,this.events_el]}async lazy_initialize(){if(await super.lazy_initialize(),"webgl"==this.model.output_backend&&(this.webgl=await g(),n.settings.force_webgl&&null==this.webgl))throw new Error("webgl is not available")}remove(){this.ui_event_bus.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),v.default,w.default,this._size]}render(){super.render();const e=[this.underlays_el,this.primary.el,this.overlays.el,this.overlays_el,this.events_el];this.shadow_el.append(...e)}get pixel_ratio(){return this.primary.pixel_ratio}_update_bbox(){const e=super._update_bbox();if(e){const{width:e,height:t}=this.bbox;this._size.replace(`.${v.layer}`,{width:(0,h.px)(e),height:(0,h.px)(t)}),this.primary.resize(e,t),this.overlays.resize(e,t)}return e}after_resize(){0!=this.plot_views.length?this.finish():super.after_resize()}_after_resize(){super._after_resize();const{width:e,height:t}=this.bbox;this.primary.resize(e,t),this.overlays.resize(e,t)}resize(){this._update_bbox(),this._after_resize()}prepare_webgl(e){const{webgl:t}=this;if(null!=t){const{width:s,height:i}=this.bbox;t.canvas.width=this.pixel_ratio*s,t.canvas.height=this.pixel_ratio*i;const[a,r,l,n]=e,{xview:o,yview:h}=this.bbox,_=o.compute(a),c=h.compute(r+n),p=this.pixel_ratio;t.regl_wrapper.set_scissor(p*_,p*c,p*l,p*n),this._clear_webgl()}}blit_webgl(e){const{webgl:t}=this;if(null!=t&&t.canvas.width*t.canvas.height>0){if(o.logger.debug("Blitting WebGL canvas"),e.restore(),e.drawImage(t.canvas,0,0),e.save(),this.model.hidpi){const t=this.pixel_ratio;e.scale(t,t),e.translate(.5,.5)}this._clear_webgl()}}_clear_webgl(){const{webgl:e}=this;if(null!=e){const{regl_wrapper:t,canvas:s}=e;t.clear(s.width,s.height)}}compose(){const e=this.create_layer(),{width:t,height:s}=this.bbox;return e.resize(t,s),e.ctx.drawImage(this.primary.canvas,0,0),e.ctx.drawImage(this.overlays.canvas,0,0),e}create_layer(){const{output_backend:e,hidpi:t}=this.model;return new u.CanvasLayer(e,t)}to_blob(){return this.compose().to_blob()}}s.CanvasView=y,y.__name__="CanvasView";class m extends b.UIElement{constructor(e){super(e)}}s.Canvas=m,r=m,m.__name__="Canvas",r.prototype.default_view=y,r.define((({Bool:e})=>({hidpi:[e,!0],output_backend:[_.OutputBackend,"canvas"]})))}, -function _(t,e,n,i,s){i();const r=t(1),_=t(295),o=t(15),a=t(63),h=r.__importStar(t(53)),c=t(326),l=t(10),u=t(8),p=t(293);function v(t){return(0,u.isObject)(t)&&"on_enter"in t&&"on_move"in t&&"on_leave"in t}function d(t){return(0,u.isObject)(t)&&"on_pan_start"in t&&"on_pan"in t&&"on_pan_end"in t}function g(t){return(0,u.isObject)(t)&&"on_pinch_start"in t&&"on_pinch"in t&&"on_pinch_end"in t}function w(t){return(0,u.isObject)(t)&&"on_rotate_start"in t&&"on_rotate"in t&&"on_rotate_end"in t}n.is_Tapable=function(t){return(0,u.isObject)(t)&&"on_tap"in t},n.is_Moveable=v,n.is_Pannable=d,n.is_Pinchable=g,n.is_Rotatable=w,n.is_Scrollable=function(t){return(0,u.isObject)(t)&&"on_scroll"in t},n.is_Keyable=function(t){return(0,u.isObject)(t)&&"on_keydown"in t&&"on_keyup"in t};class f{constructor(t){this.pan_start=new o.Signal(this,"pan:start"),this.pan=new o.Signal(this,"pan"),this.pan_end=new o.Signal(this,"pan:end"),this.pinch_start=new o.Signal(this,"pinch:start"),this.pinch=new o.Signal(this,"pinch"),this.pinch_end=new o.Signal(this,"pinch:end"),this.rotate_start=new o.Signal(this,"rotate:start"),this.rotate=new o.Signal(this,"rotate"),this.rotate_end=new o.Signal(this,"rotate:end"),this.tap=new o.Signal(this,"tap"),this.doubletap=new o.Signal(this,"doubletap"),this.press=new o.Signal(this,"press"),this.pressup=new o.Signal(this,"pressup"),this.move_enter=new o.Signal(this,"move:enter"),this.move=new o.Signal(this,"move"),this.move_exit=new o.Signal(this,"move:exit"),this.scroll=new o.Signal(this,"scroll"),this.keydown=new o.Signal(this,"keydown"),this.keyup=new o.Signal(this,"keyup"),this._tools=new Map,this._prev_move=null,this._curr_pan=null,this._curr_pinch=null,this._curr_rotate=null,this._current_pan_view=null,this._current_pinch_view=null,this._current_rotate_view=null,this._current_move_views=[],this.canvas_view=t,this.hit_area=t.events_el,this.on_tap=this.on_tap.bind(this),this.on_doubletap=this.on_doubletap.bind(this),this.on_press=this.on_press.bind(this),this.on_pressup=this.on_pressup.bind(this),this.on_enter=this.on_enter.bind(this),this.on_move=this.on_move.bind(this),this.on_leave=this.on_leave.bind(this),this.on_pan_start=this.on_pan_start.bind(this),this.on_pan=this.on_pan.bind(this),this.on_pan_end=this.on_pan_end.bind(this),this.on_pinch_start=this.on_pinch_start.bind(this),this.on_pinch=this.on_pinch.bind(this),this.on_pinch_end=this.on_pinch_end.bind(this),this.on_rotate_start=this.on_rotate_start.bind(this),this.on_rotate=this.on_rotate.bind(this),this.on_rotate_end=this.on_rotate_end.bind(this),this.ui_gestures=new _.UIGestures(this.hit_area,this,{must_be_target:!0}),this.ui_gestures.connect_signals(),this.on_context_menu=this.on_context_menu.bind(this),this.on_mouse_wheel=this.on_mouse_wheel.bind(this),this.on_key_down=this.on_key_down.bind(this),this.on_key_up=this.on_key_up.bind(this),this.hit_area.addEventListener("contextmenu",this.on_context_menu),this.hit_area.addEventListener("wheel",this.on_mouse_wheel),document.addEventListener("keydown",this.on_key_down),document.addEventListener("keyup",this.on_key_up)}remove(){this.ui_gestures.remove(),this.hit_area.removeEventListener("contextmenu",this.on_context_menu),this.hit_area.removeEventListener("wheel",this.on_mouse_wheel),document.removeEventListener("keydown",this.on_key_down),document.removeEventListener("keyup",this.on_key_up)}register_tool(t){const{model:e}=t;if(this._tools.has(e))throw new Error(`${e} already registered`);this._tools.set(e,t)}hit_test_renderers(t,e,n){const i=[];for(const s of(0,l.reversed)(t.all_renderer_views))s.interactive_hit?.(e,n)&&i.push(s);return i}set_cursor(t){this.hit_area.style.cursor=t??"default"}hit_test_frame(t,e,n){return t.frame.bbox.contains(e,n)}hit_test_plot(t,e){for(const n of this.canvas_view.plot_views)if(n.bbox.relative().contains(t,e))return n;return null}_trigger(t,e){if(!this.hit_area.isConnected)return;const{sx:n,sy:i,native:s}=e,r=this.hit_test_plot(n,i),_=t=>{const[s,r]=[n,i];return{...e,sx:s,sy:r}};if("pan_start"==e.type||"pan"==e.type||"pan_end"==e.type){let n;if("pan_start"==e.type&&null!=r?(this._curr_pan={plot_view:r},n=r):"pan"==e.type&&null!=this._curr_pan?n=this._curr_pan.plot_view:"pan_end"==e.type&&null!=this._curr_pan?(n=this._curr_pan.plot_view,this._curr_pan=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("pinch_start"==e.type||"pinch"==e.type||"pinch_end"==e.type){let n;if("pinch_start"==e.type&&null!=r?(this._curr_pinch={plot_view:r},n=r):"pinch"==e.type&&null!=this._curr_pinch?n=this._curr_pinch.plot_view:"pinch_end"==e.type&&null!=this._curr_pinch?(n=this._curr_pinch.plot_view,this._curr_pinch=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("rotate_start"==e.type||"rotate"==e.type||"rotate_end"==e.type){let n;if("rotate_start"==e.type&&null!=r?(this._curr_rotate={plot_view:r},n=r):"rotate"==e.type&&null!=this._curr_rotate?n=this._curr_rotate.plot_view:"rotate_end"==e.type&&null!=this._curr_rotate?(n=this._curr_rotate.plot_view,this._curr_rotate=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("enter"==e.type||"move"==e.type||"leave"==e.type){const o=this._prev_move?.plot_view;if(null!=o&&("leave"==e.type||o!=r)){const{sx:t,sy:e}=_();this.__trigger(o,this.move_exit,{type:"leave",sx:t,sy:e,modifiers:{shift:!1,ctrl:!1,alt:!1},native:s},s)}if(null!=r&&("enter"==e.type||o!=r)){const{sx:t,sy:e}=_();this.__trigger(r,this.move_enter,{type:"enter",sx:t,sy:e,modifiers:{shift:!1,ctrl:!1,alt:!1},native:s},s)}if(null!=r&&"move"==e.type){const e=_();this.__trigger(r,t,e,s)}this._prev_move={sx:n,sy:i,plot_view:r}}else if(null!=r){const e=_();this.__trigger(r,t,e,s)}}__trigger(t,e,n,i){const s=t.model.toolbar.gestures,r=e.name,_=r.split(":")[0],o=this.hit_test_renderers(t,n.sx,n.sy);if("pan"==_){const t=n;if(null!=this._current_pan_view)return"pan"==r?this._current_pan_view.on_pan(t):"pan:end"==r&&(this._current_pan_view.on_pan_end(t),this._current_pan_view=null),void i.preventDefault();if("pan:start"==r)for(const e of o)if(d(e)&&e.on_pan_start(t))return this._current_pan_view=e,void i.preventDefault()}else if("pinch"==_){const t=n;if(null!=this._current_pinch_view)return"pinch"==r?this._current_pinch_view.on_pinch(t):"pinch:end"==r&&(this._current_pinch_view.on_pinch_end(t),this._current_pinch_view=null),void i.preventDefault();if("pinch:start"==r)for(const e of o)if(g(e)&&e.on_pinch_start(t))return this._current_pinch_view=e,void i.preventDefault()}else if("rotate"==_){const t=n;if(null!=this._current_rotate_view)return"rotate"==r?this._current_rotate_view.on_rotate(t):"rotate:end"==r&&(this._current_rotate_view.on_rotate_end(t),this._current_rotate_view=null),void i.preventDefault();if("rotate:start"==r)for(const e of o)if(w(e)&&e.on_rotate_start(t))return this._current_rotate_view=e,void i.preventDefault()}else if("move"==_){const t=n,e=new Set(o),i=new Set(this._current_move_views);this._current_move_views=[];for(const n of i)e.has(n)||(i.delete(n),n.on_leave(t));for(const e of o)v(e)&&(i.has(e)?(this._current_move_views.push(e),e.on_move(t)):e.on_enter(n)&&this._current_move_views.push(e))}const a=o.at(0);switch(_){case"move":{const i=s.move.active;null!=i&&this.trigger(e,n,i);const r=t.model.toolbar.inspectors.filter((t=>t.active)),_=(()=>{const e=this._current_pan_view??this._current_pinch_view??this._current_rotate_view??this._current_move_views.at(0)??a??function(e){if(null!=e){const n=e instanceof p.ToolProxy?e.tools[0]:e;return t.tool_views.get(n)??null}return null}(i);if(null!=e){const t=e.cursor(n.sx,n.sy);if(null!=t)return t}return this.hit_test_frame(t,n.sx,n.sy)&&!(0,l.is_empty)(r)?"crosshair":null})();this.set_cursor(_),null==a||a.model.propagate_hover||(0,l.is_empty)(r)||(e=this.move_exit),r.map((t=>this.trigger(e,n,t)));break}case"tap":{const r=i.composedPath();if(0!=r.length&&r[0]!=this.hit_area)return;if(a?.on_hit?.(n.sx,n.sy),this.hit_test_frame(t,n.sx,n.sy)){const t=s.tap.active;null!=t&&this.trigger(e,n,t)}break}case"doubletap":if(this.hit_test_frame(t,n.sx,n.sy)){const t=s.doubletap.active??s.tap.active;null!=t&&this.trigger(e,n,t)}break;case"press":if(this.hit_test_frame(t,n.sx,n.sy)){const t=s.press.active??s.tap.active;null!=t&&this.trigger(e,n,t)}break;case"pinch":{const t=s.pinch.active??s.scroll.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}case"scroll":{const t=s.scroll.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}case"pan":{const t=s.pan.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}default:{const t=s[_].active;null!=t&&this.trigger(e,n,t)}}this._trigger_bokeh_event(t,n)}trigger(t,e,n=null){const i=n=>{const i=this._tools.get(n);if(null==i)return!1;const s=(()=>{switch(t){case this.pan_start:return i._pan_start;case this.pan:return i._pan;case this.pan_end:return i._pan_end;case this.pinch_start:return i._pinch_start;case this.pinch:return i._pinch;case this.pinch_end:return i._pinch_end;case this.rotate_start:return i._rotate_start;case this.rotate:return i._rotate;case this.rotate_end:return i._rotate_end;case this.move_enter:return i._move_enter;case this.move:return i._move;case this.move_exit:return i._move_exit;case this.tap:return i._tap;case this.doubletap:return i._doubletap;case this.press:return i._press;case this.pressup:return i._pressup;case this.scroll:return i._scroll;case this.keydown:return i._keydown;case this.keyup:return i._keyup;default:return null}})();if(null==s)return!1;const r=s.bind(i)(e);return!(0,u.isBoolean)(r)||r};if(null!=n)return i(n);{let t=!1;for(const e of this._tools.keys())t||(t=i(e));return t}}_trigger_bokeh_event(t,e){const n=(()=>{const{sx:n,sy:i,modifiers:s}=e,r=t.frame.x_scale.invert(n),_=t.frame.y_scale.invert(i);switch(e.type){case"wheel":return new h.MouseWheel(n,i,r,_,e.delta,s);case"enter":return new h.MouseEnter(n,i,r,_,s);case"move":return new h.MouseMove(n,i,r,_,s);case"leave":return new h.MouseLeave(n,i,r,_,s);case"tap":return new h.Tap(n,i,r,_,s);case"double_tap":return new h.DoubleTap(n,i,r,_,s);case"press":return new h.Press(n,i,r,_,s);case"press_up":return new h.PressUp(n,i,r,_,s);case"pan_start":return new h.PanStart(n,i,r,_,s);case"pan":return new h.Pan(n,i,r,_,e.dx,e.dy,s);case"pan_end":return new h.PanEnd(n,i,r,_,s);case"pinch_start":return new h.PinchStart(n,i,r,_,s);case"pinch":return new h.Pinch(n,i,r,_,e.scale,s);case"pinch_end":return new h.PinchEnd(n,i,r,_,s);case"rotate_start":return new h.RotateStart(n,i,r,_,s);case"rotate":return new h.Rotate(n,i,r,_,e.rotation,s);case"rotate_end":return new h.RotateEnd(n,i,r,_,s);default:return null}})();null!=n&&t.model.trigger_event(n)}_get_sxy(t){const{pageX:e,pageY:n}=t,{left:i,top:s}=(0,a.offset_bbox)(this.hit_area);return{sx:e-i,sy:n-s}}_get_modifiers(t){return{shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey}}_scroll_event(t){return{type:t.type,...this._get_sxy(t),delta:(0,c.getDeltaY)(t),modifiers:this._get_modifiers(t),native:t}}_key_event(t){return{type:t.type,key:t.key,modifiers:this._get_modifiers(t),native:t}}on_tap(t){this._trigger(this.tap,t)}on_doubletap(t){this._trigger(this.doubletap,t)}on_press(t){this._trigger(this.press,t)}on_pressup(t){this._trigger(this.pressup,t)}on_enter(t){this._trigger(this.move_enter,t)}on_move(t){this._trigger(this.move,t)}on_leave(t){this._trigger(this.move_exit,t)}on_pan_start(t){this._trigger(this.pan_start,t)}on_pan(t){this._trigger(this.pan,t)}on_pan_end(t){this._trigger(this.pan_end,t)}on_pinch_start(t){this._trigger(this.pinch_start,t)}on_pinch(t){this._trigger(this.pinch,t)}on_pinch_end(t){this._trigger(this.pinch_end,t)}on_rotate_start(t){this._trigger(this.rotate_start,t)}on_rotate(t){this._trigger(this.rotate,t)}on_rotate_end(t){this._trigger(this.rotate_end,t)}on_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t))}on_context_menu(t){}on_key_down(t){this.trigger(this.keydown,this._key_event(t))}on_key_up(t){this.trigger(this.keyup,this._key_event(t))}}n.UIEventBus=f,f.__name__="UIEventBus"}, +function _(e,o,a,n,s){var c;n();const l=e(119),i=e(320);class t extends l.Callback{constructor(e){super(e)}async execute(){const{dialog:e}=this;e.document?.views_manager?.find_one(e)?.close()}}a.CloseDialog=t,c=t,t.__name__="CloseDialog",c.define((({Ref:e})=>({dialog:[e(i.Dialog)]})))}, +function _(a,n,e,r,s){r(),s("Canvas",a(325).Canvas),s("CartesianFrame",a(188).CartesianFrame)}, +function _(e,t,s,i,a){var r;i();const l=e(1),n=e(29),o=e(19),h=e(63),_=e(20),c=e(326),p=e(183),u=e(112),b=e(111),d=e(63),v=l.__importStar(e(328)),w=l.__importDefault(e(123));const g=(()=>{let t;return async()=>void 0!==t?t:t=await async function(){const t=document.createElement("canvas"),s=t.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!0});if(null!=s){const i=await(0,p.load_module)(Promise.resolve().then((()=>l.__importStar(e(547)))));if(null!=i){const e=i.get_regl(s);if(e.has_webgl)return{canvas:t,regl_wrapper:e};o.logger.trace("WebGL is supported, but not the required extensions")}else o.logger.trace("WebGL is supported, but bokehjs(.min).js bundle is not available")}else o.logger.trace("WebGL is not supported");return null}()})();class y extends b.UIElementView{constructor(){super(...arguments),this.webgl=null,this._size=new d.InlineStyleSheet,this.plot_views=[]}initialize(){super.initialize(),this.underlays_el=(0,h.div)({class:v.layer}),this.primary=this.create_layer(),this.overlays=this.create_layer(),this.overlays_el=(0,h.div)({class:v.layer}),this.events_el=(0,h.div)({class:[v.layer,v.events]}),this.ui_event_bus=new c.UIEventBus(this)}get layers(){return[this.underlays_el,this.primary,this.overlays,this.overlays_el,this.events_el]}async lazy_initialize(){if(await super.lazy_initialize(),"webgl"==this.model.output_backend&&(this.webgl=await g(),n.settings.force_webgl&&null==this.webgl))throw new Error("webgl is not available")}remove(){this.ui_event_bus.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),v.default,w.default,this._size]}render(){super.render();const e=[this.underlays_el,this.primary.el,this.overlays.el,this.overlays_el,this.events_el];this.shadow_el.append(...e)}get pixel_ratio(){return this.primary.pixel_ratio}_update_bbox(){const e=super._update_bbox();if(e){const{width:e,height:t}=this.bbox;this._size.replace(`.${v.layer}`,{width:(0,h.px)(e),height:(0,h.px)(t)}),this.primary.resize(e,t),this.overlays.resize(e,t)}return e}after_resize(){0!=this.plot_views.length?this.finish():super.after_resize()}_after_resize(){super._after_resize();const{width:e,height:t}=this.bbox;this.primary.resize(e,t),this.overlays.resize(e,t)}resize(){this._update_bbox(),this._after_resize()}prepare_webgl(e){const{webgl:t}=this;if(null!=t){const{width:s,height:i}=this.bbox;t.canvas.width=this.pixel_ratio*s,t.canvas.height=this.pixel_ratio*i;const[a,r,l,n]=e,{xview:o,yview:h}=this.bbox,_=o.compute(a),c=h.compute(r+n),p=this.pixel_ratio;t.regl_wrapper.set_scissor(p*_,p*c,p*l,p*n),this._clear_webgl()}}blit_webgl(e){const{webgl:t}=this;if(null!=t&&t.canvas.width*t.canvas.height>0){if(o.logger.debug("Blitting WebGL canvas"),e.restore(),e.drawImage(t.canvas,0,0),e.save(),this.model.hidpi){const t=this.pixel_ratio;e.scale(t,t),e.translate(.5,.5)}this._clear_webgl()}}_clear_webgl(){const{webgl:e}=this;if(null!=e){const{regl_wrapper:t,canvas:s}=e;t.clear(s.width,s.height)}}compose(){const e=this.create_layer(),{width:t,height:s}=this.bbox;return e.resize(t,s),e.ctx.drawImage(this.primary.canvas,0,0),e.ctx.drawImage(this.overlays.canvas,0,0),e}create_layer(){const{output_backend:e,hidpi:t}=this.model;return new u.CanvasLayer(e,t)}to_blob(){return this.compose().to_blob()}}s.CanvasView=y,y.__name__="CanvasView";class m extends b.UIElement{constructor(e){super(e)}}s.Canvas=m,r=m,m.__name__="Canvas",r.prototype.default_view=y,r.define((({Bool:e})=>({hidpi:[e,!0],output_backend:[_.OutputBackend,"canvas"]})))}, +function _(t,e,n,i,s){i(),n.is_Tapable=function(t){return(0,u.isObject)(t)&&"on_tap"in t},n.is_Moveable=v,n.is_Pannable=d,n.is_Pinchable=g,n.is_Rotatable=w,n.is_Scrollable=function(t){return(0,u.isObject)(t)&&"on_scroll"in t},n.is_Keyable=function(t){return(0,u.isObject)(t)&&"on_keydown"in t&&"on_keyup"in t};const r=t(1),_=t(296),o=t(15),a=t(63),h=r.__importStar(t(53)),c=t(327),l=t(10),u=t(8),p=t(294);function v(t){return(0,u.isObject)(t)&&"on_enter"in t&&"on_move"in t&&"on_leave"in t}function d(t){return(0,u.isObject)(t)&&"on_pan_start"in t&&"on_pan"in t&&"on_pan_end"in t}function g(t){return(0,u.isObject)(t)&&"on_pinch_start"in t&&"on_pinch"in t&&"on_pinch_end"in t}function w(t){return(0,u.isObject)(t)&&"on_rotate_start"in t&&"on_rotate"in t&&"on_rotate_end"in t}class f{constructor(t){this.pan_start=new o.Signal(this,"pan:start"),this.pan=new o.Signal(this,"pan"),this.pan_end=new o.Signal(this,"pan:end"),this.pinch_start=new o.Signal(this,"pinch:start"),this.pinch=new o.Signal(this,"pinch"),this.pinch_end=new o.Signal(this,"pinch:end"),this.rotate_start=new o.Signal(this,"rotate:start"),this.rotate=new o.Signal(this,"rotate"),this.rotate_end=new o.Signal(this,"rotate:end"),this.tap=new o.Signal(this,"tap"),this.doubletap=new o.Signal(this,"doubletap"),this.press=new o.Signal(this,"press"),this.pressup=new o.Signal(this,"pressup"),this.move_enter=new o.Signal(this,"move:enter"),this.move=new o.Signal(this,"move"),this.move_exit=new o.Signal(this,"move:exit"),this.scroll=new o.Signal(this,"scroll"),this.keydown=new o.Signal(this,"keydown"),this.keyup=new o.Signal(this,"keyup"),this._tools=new Map,this._prev_move=null,this._curr_pan=null,this._curr_pinch=null,this._curr_rotate=null,this._current_pan_view=null,this._current_pinch_view=null,this._current_rotate_view=null,this._current_move_views=[],this.canvas_view=t,this.hit_area=t.events_el,this.on_tap=this.on_tap.bind(this),this.on_doubletap=this.on_doubletap.bind(this),this.on_press=this.on_press.bind(this),this.on_pressup=this.on_pressup.bind(this),this.on_enter=this.on_enter.bind(this),this.on_move=this.on_move.bind(this),this.on_leave=this.on_leave.bind(this),this.on_pan_start=this.on_pan_start.bind(this),this.on_pan=this.on_pan.bind(this),this.on_pan_end=this.on_pan_end.bind(this),this.on_pinch_start=this.on_pinch_start.bind(this),this.on_pinch=this.on_pinch.bind(this),this.on_pinch_end=this.on_pinch_end.bind(this),this.on_rotate_start=this.on_rotate_start.bind(this),this.on_rotate=this.on_rotate.bind(this),this.on_rotate_end=this.on_rotate_end.bind(this),this.ui_gestures=new _.UIGestures(this.hit_area,this,{must_be_target:!0}),this.ui_gestures.connect_signals(),this.on_context_menu=this.on_context_menu.bind(this),this.on_mouse_wheel=this.on_mouse_wheel.bind(this),this.on_key_down=this.on_key_down.bind(this),this.on_key_up=this.on_key_up.bind(this),this.hit_area.addEventListener("contextmenu",this.on_context_menu),this.hit_area.addEventListener("wheel",this.on_mouse_wheel),document.addEventListener("keydown",this.on_key_down),document.addEventListener("keyup",this.on_key_up)}remove(){this.ui_gestures.remove(),this.hit_area.removeEventListener("contextmenu",this.on_context_menu),this.hit_area.removeEventListener("wheel",this.on_mouse_wheel),document.removeEventListener("keydown",this.on_key_down),document.removeEventListener("keyup",this.on_key_up)}register_tool(t){const{model:e}=t;if(this._tools.has(e))throw new Error(`${e} already registered`);this._tools.set(e,t)}hit_test_renderers(t,e,n){const i=[];for(const s of(0,l.reversed)(t.all_renderer_views))s.interactive_hit?.(e,n)&&i.push(s);return i}set_cursor(t){this.hit_area.style.cursor=t??"default"}hit_test_frame(t,e,n){return t.frame.bbox.contains(e,n)}hit_test_plot(t,e){for(const n of this.canvas_view.plot_views)if(n.bbox.relative().contains(t,e))return n;return null}_trigger(t,e){if(!this.hit_area.isConnected)return;const{sx:n,sy:i,native:s}=e,r=this.hit_test_plot(n,i),_=t=>{const[s,r]=[n,i];return{...e,sx:s,sy:r}};if("pan_start"==e.type||"pan"==e.type||"pan_end"==e.type){let n;if("pan_start"==e.type&&null!=r?(this._curr_pan={plot_view:r},n=r):"pan"==e.type&&null!=this._curr_pan?n=this._curr_pan.plot_view:"pan_end"==e.type&&null!=this._curr_pan?(n=this._curr_pan.plot_view,this._curr_pan=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("pinch_start"==e.type||"pinch"==e.type||"pinch_end"==e.type){let n;if("pinch_start"==e.type&&null!=r?(this._curr_pinch={plot_view:r},n=r):"pinch"==e.type&&null!=this._curr_pinch?n=this._curr_pinch.plot_view:"pinch_end"==e.type&&null!=this._curr_pinch?(n=this._curr_pinch.plot_view,this._curr_pinch=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("rotate_start"==e.type||"rotate"==e.type||"rotate_end"==e.type){let n;if("rotate_start"==e.type&&null!=r?(this._curr_rotate={plot_view:r},n=r):"rotate"==e.type&&null!=this._curr_rotate?n=this._curr_rotate.plot_view:"rotate_end"==e.type&&null!=this._curr_rotate?(n=this._curr_rotate.plot_view,this._curr_rotate=null):n=null,null!=n){const e=_();this.__trigger(n,t,e,s)}}else if("enter"==e.type||"move"==e.type||"leave"==e.type){const o=this._prev_move?.plot_view;if(null!=o&&("leave"==e.type||o!=r)){const{sx:t,sy:e}=_();this.__trigger(o,this.move_exit,{type:"leave",sx:t,sy:e,modifiers:{shift:!1,ctrl:!1,alt:!1},native:s},s)}if(null!=r&&("enter"==e.type||o!=r)){const{sx:t,sy:e}=_();this.__trigger(r,this.move_enter,{type:"enter",sx:t,sy:e,modifiers:{shift:!1,ctrl:!1,alt:!1},native:s},s)}if(null!=r&&"move"==e.type){const e=_();this.__trigger(r,t,e,s)}this._prev_move={sx:n,sy:i,plot_view:r}}else if(null!=r){const e=_();this.__trigger(r,t,e,s)}}__trigger(t,e,n,i){const s=t.model.toolbar.gestures,r=e.name,_=r.split(":")[0],o=this.hit_test_renderers(t,n.sx,n.sy);if("pan"==_){const t=n;if(null!=this._current_pan_view)return"pan"==r?this._current_pan_view.on_pan(t):"pan:end"==r&&(this._current_pan_view.on_pan_end(t),this._current_pan_view=null),void i.preventDefault();if("pan:start"==r)for(const e of o)if(d(e)&&e.on_pan_start(t))return this._current_pan_view=e,void i.preventDefault()}else if("pinch"==_){const t=n;if(null!=this._current_pinch_view)return"pinch"==r?this._current_pinch_view.on_pinch(t):"pinch:end"==r&&(this._current_pinch_view.on_pinch_end(t),this._current_pinch_view=null),void i.preventDefault();if("pinch:start"==r)for(const e of o)if(g(e)&&e.on_pinch_start(t))return this._current_pinch_view=e,void i.preventDefault()}else if("rotate"==_){const t=n;if(null!=this._current_rotate_view)return"rotate"==r?this._current_rotate_view.on_rotate(t):"rotate:end"==r&&(this._current_rotate_view.on_rotate_end(t),this._current_rotate_view=null),void i.preventDefault();if("rotate:start"==r)for(const e of o)if(w(e)&&e.on_rotate_start(t))return this._current_rotate_view=e,void i.preventDefault()}else if("move"==_){const t=n,e=new Set(o),i=new Set(this._current_move_views);this._current_move_views=[];for(const n of i)e.has(n)||(i.delete(n),n.on_leave(t));for(const e of o)v(e)&&(i.has(e)?(this._current_move_views.push(e),e.on_move(t)):e.on_enter(n)&&this._current_move_views.push(e))}const a=o.at(0);switch(_){case"move":{const i=s.move.active;null!=i&&this.trigger(e,n,i);const r=t.model.toolbar.inspectors.filter((t=>t.active)),_=(()=>{const e=this._current_pan_view??this._current_pinch_view??this._current_rotate_view??this._current_move_views.at(0)??a??function(e){if(null!=e){const n=e instanceof p.ToolProxy?e.tools[0]:e;return t.tool_views.get(n)??null}return null}(i);if(null!=e){const t=e.cursor(n.sx,n.sy);if(null!=t)return t}return this.hit_test_frame(t,n.sx,n.sy)&&!(0,l.is_empty)(r)?"crosshair":null})();this.set_cursor(_),null==a||a.model.propagate_hover||(0,l.is_empty)(r)||(e=this.move_exit),r.map((t=>this.trigger(e,n,t)));break}case"tap":{const r=i.composedPath();if(0!=r.length&&r[0]!=this.hit_area)return;if(a?.on_hit?.(n.sx,n.sy),this.hit_test_frame(t,n.sx,n.sy)){const t=s.tap.active;null!=t&&this.trigger(e,n,t)}break}case"doubletap":if(this.hit_test_frame(t,n.sx,n.sy)){const t=s.doubletap.active??s.tap.active;null!=t&&this.trigger(e,n,t)}break;case"press":if(this.hit_test_frame(t,n.sx,n.sy)){const t=s.press.active??s.tap.active;null!=t&&this.trigger(e,n,t)}break;case"pinch":{const t=s.pinch.active??s.scroll.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}case"scroll":{const t=s.scroll.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}case"pan":{const t=s.pan.active;null!=t&&this.trigger(e,n,t)&&(i.preventDefault(),i.stopPropagation());break}default:{const t=s[_].active;null!=t&&this.trigger(e,n,t)}}this._trigger_bokeh_event(t,n)}trigger(t,e,n=null){const i=n=>{const i=this._tools.get(n);if(null==i)return!1;const s=(()=>{switch(t){case this.pan_start:return i._pan_start;case this.pan:return i._pan;case this.pan_end:return i._pan_end;case this.pinch_start:return i._pinch_start;case this.pinch:return i._pinch;case this.pinch_end:return i._pinch_end;case this.rotate_start:return i._rotate_start;case this.rotate:return i._rotate;case this.rotate_end:return i._rotate_end;case this.move_enter:return i._move_enter;case this.move:return i._move;case this.move_exit:return i._move_exit;case this.tap:return i._tap;case this.doubletap:return i._doubletap;case this.press:return i._press;case this.pressup:return i._pressup;case this.scroll:return i._scroll;case this.keydown:return i._keydown;case this.keyup:return i._keyup;default:return null}})();if(null==s)return!1;const r=s.bind(i)(e);return!(0,u.isBoolean)(r)||r};if(null!=n)return i(n);{let t=!1;for(const e of this._tools.keys()){const n=i(e);t||(t=n)}return t}}_trigger_bokeh_event(t,e){const n=(()=>{const{sx:n,sy:i,modifiers:s}=e,r=t.frame.x_scale.invert(n),_=t.frame.y_scale.invert(i);switch(e.type){case"wheel":return new h.MouseWheel(n,i,r,_,e.delta,s);case"enter":return new h.MouseEnter(n,i,r,_,s);case"move":return new h.MouseMove(n,i,r,_,s);case"leave":return new h.MouseLeave(n,i,r,_,s);case"tap":return new h.Tap(n,i,r,_,s);case"double_tap":return new h.DoubleTap(n,i,r,_,s);case"press":return new h.Press(n,i,r,_,s);case"press_up":return new h.PressUp(n,i,r,_,s);case"pan_start":return new h.PanStart(n,i,r,_,s);case"pan":return new h.Pan(n,i,r,_,e.dx,e.dy,s);case"pan_end":return new h.PanEnd(n,i,r,_,s);case"pinch_start":return new h.PinchStart(n,i,r,_,s);case"pinch":return new h.Pinch(n,i,r,_,e.scale,s);case"pinch_end":return new h.PinchEnd(n,i,r,_,s);case"rotate_start":return new h.RotateStart(n,i,r,_,s);case"rotate":return new h.Rotate(n,i,r,_,e.rotation,s);case"rotate_end":return new h.RotateEnd(n,i,r,_,s);default:return null}})();null!=n&&t.model.trigger_event(n)}_get_sxy(t){const{pageX:e,pageY:n}=t,{left:i,top:s}=(0,a.offset_bbox)(this.hit_area);return{sx:e-i,sy:n-s}}_get_modifiers(t){return{shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey}}_scroll_event(t){return{type:t.type,...this._get_sxy(t),delta:(0,c.getDeltaY)(t),modifiers:this._get_modifiers(t),native:t}}_key_event(t){return{type:t.type,key:t.key,modifiers:this._get_modifiers(t),native:t}}on_tap(t){this._trigger(this.tap,t)}on_doubletap(t){this._trigger(this.doubletap,t)}on_press(t){this._trigger(this.press,t)}on_pressup(t){this._trigger(this.pressup,t)}on_enter(t){this._trigger(this.move_enter,t)}on_move(t){this._trigger(this.move,t)}on_leave(t){this._trigger(this.move_exit,t)}on_pan_start(t){this._trigger(this.pan_start,t)}on_pan(t){this._trigger(this.pan,t)}on_pan_end(t){this._trigger(this.pan_end,t)}on_pinch_start(t){this._trigger(this.pinch_start,t)}on_pinch(t){this._trigger(this.pinch,t)}on_pinch_end(t){this._trigger(this.pinch_end,t)}on_rotate_start(t){this._trigger(this.rotate_start,t)}on_rotate(t){this._trigger(this.rotate,t)}on_rotate_end(t){this._trigger(this.rotate_end,t)}on_mouse_wheel(t){this._trigger(this.scroll,this._scroll_event(t))}on_context_menu(t){}on_key_down(t){this.trigger(this.keydown,this._key_event(t))}on_key_up(t){this.trigger(this.keyup,this._key_event(t))}}n.UIEventBus=f,f.__name__="UIEventBus"}, function _(t,e,n,a,r){ /*! * jQuery Mousewheel 3.1.13 @@ -507,214 +508,221 @@ function _(t,e,n,a,r){ */ function o(t){const e=getComputedStyle(t).fontSize,n=parseInt(e,10);return isNaN(n)?null:n}a(),n.getDeltaY=function(t){let e=-t.deltaY;if(t.target instanceof HTMLElement)switch(t.deltaMode){case t.DOM_DELTA_LINE:e*=o((n=t.target).offsetParent??document.body)??o(n)??16;break;case t.DOM_DELTA_PAGE:e*=function(t){return t.clientHeight}(t.target)}var n;return e}}, function _(e,t,o,n,i){n(),o.layer="bk-layer",o.events="bk-events",o.default=".bk-layer{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;}.bk-events{touch-action:none;overflow:visible;}"}, +function _(o,a,m,C,n){C(),n("Comparison",o(330).Comparison),n("CustomJSCompare",o(331).CustomJSCompare),n("NanCompare",o(332).NanCompare)}, +function _(o,n,s,c,e){c();const r=o(51);class t extends r.Model{constructor(o){super(o)}}s.Comparison=t,t.__name__="Comparison"}, +function _(e,s,t,n,r){var u;n();const a=e(330),o=e(9),c=e(40);class i extends a.Comparison{constructor(e){super(e)}get names(){return(0,o.keys)(this.args)}get values(){return(0,o.values)(this.args)}_make_func(){const e=(0,c.use_strict)(this.code);return new Function("x","y",...this.names,e)}compute(e,s){return this._make_func()(e,s,this.values)}}t.CustomJSCompare=i,u=i,i.__name__="CustomJSCompare",u.define((({Unknown:e,Str:s,Dict:t})=>({args:[t(e),{}],code:[s,""]})))}, +function _(s,e,i,n,r){var a;n();const t=s(330),o=s(8);class N extends t.Comparison{constructor(s){super(s)}compute(s,e){return(0,o.isNumber)(s)&&isNaN(s)?this.ascending_first?-1:1:(0,o.isNumber)(e)&&isNaN(e)?this.ascending_first?1:-1:(0,o.isNumber)(s)&&(0,o.isNumber)(e)?s==e?0:s({ascending_first:[s,!1]})))}, function _(d,e,n,o,i){o(),i("CoordinateMapping",d(95).CoordinateMapping),i("Node",d(59).Node),i("XY",d(61).XY),i("Indexed",d(62).Indexed)}, -function _(m,o,n,r,a){r(),a("Expression",m(330).Expression),a("CustomJSExpr",m(331).CustomJSExpr),a("Stack",m(332).Stack),a("CumSum",m(333).CumSum),a("ScalarExpression",m(330).ScalarExpression),a("Minimum",m(334).Minimum),a("Maximum",m(335).Maximum);var s=m(336);a("XComponent",s.XComponent),a("YComponent",s.YComponent),a("PolarTransform",m(337).PolarTransform)}, +function _(m,o,n,r,a){r(),a("Expression",m(335).Expression),a("CustomJSExpr",m(336).CustomJSExpr),a("Stack",m(337).Stack),a("CumSum",m(338).CumSum),a("ScalarExpression",m(335).ScalarExpression),a("Minimum",m(339).Minimum),a("Maximum",m(340).Maximum);var s=m(341);a("XComponent",s.XComponent),a("YComponent",s.YComponent),a("PolarTransform",m(342).PolarTransform)}, function _(e,t,s,i,r){i();const n=e(51);class _ extends n.Model{constructor(e){super(e)}initialize(){super.initialize(),this._result=new Map}v_compute(e){let t=this._result.get(e);return(void 0===t||e.changed_for(this))&&(t=this._v_compute(e),this._result.set(e,t)),t}}s.Expression=_,_.__name__="Expression";class o extends n.Model{constructor(e){super(e)}initialize(){super.initialize(),this._result=new Map}compute(e){let t=this._result.get(e);return(void 0===t||e.changed_for(this))&&(t=this._compute(e),this._result.set(e,t)),t}}s.ScalarExpression=o,o.__name__="ScalarExpression"}, -function _(e,s,t,n,r){var a;n();const o=e(14),c=e(330),i=e(24),u=e(10),l=e(9),h=e(40),g=e(8);class p extends c.Expression{constructor(e){super(e)}connect_signals(){super.connect_signals();for(const e of(0,l.values)(this.args))e instanceof o.HasProps&&e.change.connect((()=>{this._result.clear(),this.change.emit()}))}get names(){return(0,l.keys)(this.args)}get values(){return(0,l.values)(this.args)}get func(){const e=(0,h.use_strict)(this.code);return new i.GeneratorFunction(...this.names,e)}_v_compute(e){const s=this.func.apply(e,this.values);let t=s.next();if(t.done&&void 0!==t.value){const{value:s}=t;return(0,g.isArray)(s)||(0,g.isTypedArray)(s)?s:(0,g.isIterable)(s)?[...s]:(0,u.repeat)(s,e.length)}{const e=[];do{e.push(t.value),t=s.next()}while(!t.done);return e}}}t.CustomJSExpr=p,a=p,p.__name__="CustomJSExpr",a.define((({Unknown:e,Str:s,Dict:t})=>({args:[t(e),{}],code:[s,""]})))}, -function _(t,n,e,s,o){var c;s();const r=t(330),a=t(9);class i extends r.Expression{constructor(t){super(t)}_v_compute(t){const n=t.get_length()??0,e=new Float64Array(n);for(const s of this.fields){const o=(0,a.dict)(t.data).get(s);if(null!=o){const t=Math.min(n,o.length);for(let n=0;n({fields:[n(t),[]]})))}, -function _(e,t,n,o,r){var i;o();const s=e(330),u=e(9);class c extends s.Expression{constructor(e){super(e)}_v_compute(e){const t=new Float64Array(e.get_length()??0),n=(0,u.dict)(e.data).get(this.field)??[],o=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e({field:[t],include_zero:[e,!1]})))}, -function _(i,t,n,e,a){var s;e();const c=i(330),r=i(9),m=i(10);class o extends c.ScalarExpression{constructor(i){super(i)}_compute(i){const t=(0,r.dict)(i.data).get(this.field)??[];return Math.min(this.initial,(0,m.min)(t))}}n.Minimum=o,s=o,o.__name__="Minimum",s.define((({Float:i,Str:t})=>({field:[t],initial:[i,1/0]})))}, -function _(t,i,a,e,n){var s;e();const c=t(330),r=t(9),m=t(10);class o extends c.ScalarExpression{constructor(t){super(t)}_compute(t){const i=(0,r.dict)(t.data).get(this.field)??[];return Math.max(this.initial,(0,m.max)(i))}}a.Maximum=o,s=o,o.__name__="Maximum",s.define((({Float:t,Str:i})=>({field:[i],initial:[t,-1/0]})))}, -function _(n,e,t,o,r){var s;o();const _=n(330);class m extends _.Expression{constructor(n){super(n)}get x(){return new c({transform:this})}get y(){return new u({transform:this})}}t.CoordinateTransform=m,m.__name__="CoordinateTransform";class a extends _.Expression{constructor(n){super(n)}}t.XYComponent=a,s=a,a.__name__="XYComponent",s.define((({Ref:n})=>({transform:[n(m)]})));class c extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).x}}t.XComponent=c,c.__name__="XComponent";class u extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).y}}t.YComponent=u,u.__name__="YComponent"}, -function _(r,t,e,n,o){var i;n();const a=r(1),s=r(336),c=r(20),l=a.__importStar(r(18));class d extends s.CoordinateTransform{constructor(r){super(r)}_v_compute(r){const t=this.properties.radius.uniform(r),e=this.properties.angle.uniform(r),n="anticlock"==this.direction?-1:1,o=Math.min(t.length,e.length),i=new Float64Array(o),a=new Float64Array(o);for(let r=0;r({radius:[l.DistanceSpec,{field:"radius"}],angle:[l.AngleSpec,{field:"angle"}],direction:[c.Direction,"anticlock"]})))}, -function _(e,i,r,t,l){t(),l("BooleanFilter",e(339).BooleanFilter),l("CustomJSFilter",e(340).CustomJSFilter),l("Filter",e(237).Filter),l("GroupFilter",e(341).GroupFilter),l("IndexFilter",e(342).IndexFilter),l("AllIndices",e(238).AllIndices),l("InversionFilter",e(343).InversionFilter),l("IntersectionFilter",e(239).IntersectionFilter),l("UnionFilter",e(344).UnionFilter),l("DifferenceFilter",e(345).DifferenceFilter),l("SymmetricDifferenceFilter",e(346).SymmetricDifferenceFilter)}, -function _(e,l,n,o,t){var s;o();const a=e(237),r=e(24);class c extends a.Filter{constructor(e){super(e)}compute_indices(e){const l=e.get_length()??1,{booleans:n}=this;return null==n?r.Indices.all_set(l):r.Indices.from_booleans(l,n)}}n.BooleanFilter=c,s=c,c.__name__="BooleanFilter",s.define((({Bool:e,Iterable:l,Nullable:n})=>({booleans:[n(l(e)),null]})))}, -function _(e,r,s,t,n){var i;t();const o=e(237),c=e(24),u=e(9),a=e(8),l=e(40);class f extends o.Filter{constructor(e){super(e)}get names(){return(0,u.keys)(this.args)}get values(){return(0,u.values)(this.args)}get func(){const e=(0,l.use_strict)(this.code);return new Function(...this.names,"source",e)}compute_indices(e){const r=e.get_length()??1,s=this.func(...this.values,e);if(null==s)return c.Indices.all_set(r);if((0,a.isArrayOf)(s,a.isInteger))return c.Indices.from_indices(r,s);if((0,a.isArrayOf)(s,a.isBoolean))return c.Indices.from_booleans(r,s);throw new Error(`expect an array of integers or booleans, or null, got ${s}`)}}s.CustomJSFilter=f,i=f,f.__name__="CustomJSFilter",i.define((({Unknown:e,Str:r,Dict:s})=>({args:[s(e),{}],code:[r,""]})))}, -function _(e,n,t,o,r){var s;o();const u=e(237),c=e(24),i=e(19);class l extends u.Filter{constructor(e){super(e)}compute_indices(e){const n=e.get_column(this.column_name),t=e.get_length()??1;if(null==n)return i.logger.warn(`${this}: groupby column '${this.column_name}' not found in the data source`),c.Indices.all_set(t);{const e=new c.Indices(t,0);for(let t=0;t({column_name:[e],group:[e]})))}, -function _(e,n,t,i,l){var s;i();const c=e(237),r=e(24);class d extends c.Filter{constructor(e){super(e)}compute_indices(e){const n=e.get_length()??1,{indices:t}=this;return null==t?r.Indices.all_set(n):r.Indices.from_indices(n,t)}}t.IndexFilter=d,s=d,d.__name__="IndexFilter",s.define((({Int:e,Iterable:n,Nullable:t})=>({indices:[t(n(e)),null]})))}, -function _(e,n,t,s,o){var i;s();const r=e(237);class c extends r.Filter{constructor(e){super(e)}connect_signals(){super.connect_signals();const e=()=>{this.change.emit()},n=n=>{for(const t of n)this.connect(t.change,e)},t=n=>{for(const t of n)this.disconnect(t.change,e)};let s=(()=>{const{operand:e}=this.properties;return e.is_unset?[]:[e.get_value()]})();n(s),this.on_change(this.properties.operand,(()=>{t(s),s=[this.operand],n(s)}))}compute_indices(e){const n=this.operand.compute_indices(e);return n.invert(),n}}t.InversionFilter=c,i=c,c.__name__="InversionFilter",i.define((({Ref:e})=>({operand:[e(r.Filter)]})))}, -function _(n,e,o,t,i){t();const s=n(240);class _ extends s.CompositeFilter{constructor(n){super(n)}_inplace_op(n,e){n.add(e)}}o.UnionFilter=_,_.__name__="UnionFilter"}, -function _(e,t,c,n,r){n();const i=e(240);class s extends i.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.subtract(t)}}c.DifferenceFilter=s,s.__name__="DifferenceFilter"}, -function _(e,t,c,r,i){r();const n=e(240);class s extends n.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.symmetric_subtract(t)}}c.SymmetricDifferenceFilter=s,s.__name__="SymmetricDifferenceFilter"}, -function _(e,a,t,l,r){l(),r("AnnularWedge",e(348).AnnularWedge),r("Annulus",e(349).Annulus),r("Arc",e(350).Arc),r("Bezier",e(351).Bezier),r("Block",e(353).Block),r("Circle",e(355).Circle),r("Ellipse",e(356).Ellipse),r("Glyph",e(221).Glyph),r("HArea",e(233).HArea),r("HAreaStep",e(230).HAreaStep),r("HBar",e(358).HBar),r("HexTile",e(359).HexTile),r("HSpan",e(360).HSpan),r("HStrip",e(361).HStrip),r("Image",e(362).Image),r("ImageRGBA",e(364).ImageRGBA),r("ImageStack",e(365).ImageStack),r("ImageURL",e(366).ImageURL),r("Line",e(219).Line),r("MathMLGlyph",e(367).MathMLGlyph),r("MultiLine",e(370).MultiLine),r("MultiPolygons",e(371).MultiPolygons),r("Patch",e(229).Patch),r("Patches",e(372).Patches),r("Quad",e(373).Quad),r("Quadratic",e(374).Quadratic),r("Ray",e(375).Ray),r("Rect",e(376).Rect),r("Scatter",e(377).Scatter),r("Segment",e(380).Segment),r("Spline",e(381).Spline),r("Step",e(383).Step),r("TeXGlyph",e(384).TeXGlyph),r("Text",e(369).Text),r("VArea",e(235).VArea),r("VAreaStep",e(234).VAreaStep),r("VBar",e(385).VBar),r("VSpan",e(386).VSpan),r("VStrip",e(387).VStrip),r("Wedge",e(388).Wedge)}, -function _(e,t,i,s,r){var n;s();const a=e(1),_=e(220),h=e(221),d=e(227),o=e(80),u=e(24),l=e(20),c=a.__importStar(e(18)),g=e(11),p=e(130),x=e(13);class m extends _.XYGlyphView{async load_glglyph(){const{AnnularWedgeGL:t}=await Promise.resolve().then((()=>a.__importStar(e(552))));return t}_map_data(){this._define_or_inherit_attr("sinner_radius",(()=>"data"==this.model.properties.inner_radius.units?this.inherited_x&&this.inherited_inner_radius?h.inherit:this.sdist(this.renderer.xscale,this.x,this.inner_radius):this.inherited_inner_radius?h.inherit:(0,u.to_screen)(this.inner_radius))),this._define_or_inherit_attr("souter_radius",(()=>"data"==this.model.properties.outer_radius.units?this.inherited_x&&this.inherited_outer_radius?h.inherit:this.sdist(this.renderer.xscale,this.x,this.outer_radius):this.inherited_outer_radius?h.inherit:(0,u.to_screen)(this.outer_radius))),this._define_or_inherit_attr("max_souter_radius",(()=>(0,x.max)(this.souter_radius)))}_paint(e,t,i){const{sx:s,sy:r,start_angle:n,end_angle:a,sinner_radius:_,souter_radius:h}={...this,...i},d="anticlock"==this.model.direction;for(const i of t){const t=s[i],o=r[i],u=_[i],l=h[i],c=n.get(i),g=a.get(i);if(!isFinite(t+o+u+l+c+g))continue;const p=g-c;e.translate(t,o),e.rotate(c),e.beginPath(),e.moveTo(l,0),e.arc(0,0,l,0,p,d),e.rotate(p),e.lineTo(u,0),e.arc(0,0,u,0,-p,!d),e.closePath(),e.rotate(-p-c),e.translate(-t,-o),this.visuals.fill.apply(e,i),this.visuals.hatch.apply(e,i),this.visuals.line.apply(e,i)}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(i),n=t-this.max_souter_radius,a=t+this.max_souter_radius,[_,h]=this.renderer.xscale.r_invert(n,a),d=i-this.max_souter_radius,o=i+this.max_souter_radius,[u,l]=this.renderer.yscale.r_invert(d,o),c=[];for(const e of this.index.indices({x0:_,x1:h,y0:u,y1:l})){const t=this.souter_radius[e]**2,i=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(s,this.x[e]),[_,h]=this.renderer.yscale.r_compute(r,this.y[e]),d=(n-a)**2+(_-h)**2;d<=t&&d>=i&&c.push(e)}const x="anticlock"==this.model.direction,m=[];for(const e of c){const s=Math.atan2(i-this.sy[e],t-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,g.angle_between)(-s,-this.start_angle.get(e),-this.end_angle.get(e),x))&&m.push(e)}return new p.Selection({indices:m})}draw_legend_for_index(e,t,i){(0,d.generic_area_vector_legend)(this.visuals,e,t,i)}scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,i=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+t*Math.cos(i),this.sy[e]+t*Math.sin(i)]}}i.AnnularWedgeView=m,m.__name__="AnnularWedgeView";class f extends _.XYGlyph{constructor(e){super(e)}}i.AnnularWedge=f,n=f,f.__name__="AnnularWedge",n.prototype.default_view=m,n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((({})=>({direction:[l.Direction,"anticlock"],inner_radius:[c.DistanceSpec,{field:"inner_radius"}],outer_radius:[c.DistanceSpec,{field:"outer_radius"}],start_angle:[c.AngleSpec,{field:"start_angle"}],end_angle:[c.AngleSpec,{field:"end_angle"}]})))}, -function _(i,s,e,t,r){var n;t();const a=i(1),_=i(220),u=i(221),h=i(24),d=i(80),o=a.__importStar(i(18)),c=i(130);class l extends _.XYGlyphView{async load_glglyph(){const{AnnulusGL:s}=await Promise.resolve().then((()=>a.__importStar(i(559))));return s}_map_data(){this._define_or_inherit_attr("sinner_radius",(()=>"data"==this.model.properties.inner_radius.units?this.inherited_x&&this.inherited_inner_radius?u.inherit:this.sdist(this.renderer.xscale,this.x,this.inner_radius):this.inherited_inner_radius?u.inherit:(0,h.to_screen)(this.inner_radius))),this._define_or_inherit_attr("souter_radius",(()=>"data"==this.model.properties.outer_radius.units?this.inherited_x&&this.inherited_outer_radius?u.inherit:this.sdist(this.renderer.xscale,this.x,this.outer_radius):this.inherited_outer_radius?u.inherit:(0,h.to_screen)(this.outer_radius)))}_paint(i,s,e){const{sx:t,sy:r,sinner_radius:n,souter_radius:a}={...this,...e};for(const e of s){const s=t[e],_=r[e],u=n[e],h=a[e];isFinite(s+_+u+h)&&(i.beginPath(),i.arc(s,_,u,0,2*Math.PI,!0),i.moveTo(s+h,_),i.arc(s,_,h,2*Math.PI,0,!1),this.visuals.fill.apply(i,e),this.visuals.hatch.apply(i,e),this.visuals.line.apply(i,e))}}_hit_point(i){const{sx:s,sy:e}=i,t=this.renderer.xscale.invert(s),r=this.renderer.yscale.invert(e);let n,a,_,u;if("data"==this.model.properties.outer_radius.units)n=t-this.max_outer_radius,_=t+this.max_outer_radius,a=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const i=s-this.max_outer_radius,t=s+this.max_outer_radius;[n,_]=this.renderer.xscale.r_invert(i,t);const r=e-this.max_outer_radius,h=e+this.max_outer_radius;[a,u]=this.renderer.yscale.r_invert(r,h)}const h=[];for(const i of this.index.indices({x0:n,x1:_,y0:a,y1:u})){const s=this.souter_radius[i]**2,e=this.sinner_radius[i]**2,[n,a]=this.renderer.xscale.r_compute(t,this.x[i]),[_,u]=this.renderer.yscale.r_compute(r,this.y[i]),d=(n-a)**2+(_-u)**2;d<=s&&d>=e&&h.push(i)}return new c.Selection({indices:h})}draw_legend_for_index(i,{x0:s,y0:e,x1:t,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const u=new Array(a);u[n]=(e+r)/2;const h=.5*Math.min(Math.abs(t-s),Math.abs(r-e)),d=new Array(a);d[n]=.4*h;const o=new Array(a);o[n]=.8*h,this._paint(i,[n],{sx:_,sy:u,sinner_radius:d,souter_radius:o})}}e.AnnulusView=l,l.__name__="AnnulusView";class x extends _.XYGlyph{constructor(i){super(i)}}e.Annulus=x,n=x,x.__name__="Annulus",n.prototype.default_view=l,n.mixins([d.LineVector,d.FillVector,d.HatchVector]),n.define((({})=>({inner_radius:[o.DistanceSpec,{field:"inner_radius"}],outer_radius:[o.DistanceSpec,{field:"outer_radius"}]})))}, -function _(e,i,t,s,n){var r;s();const a=e(1),o=e(220),d=e(221),c=e(227),_=e(80),l=e(24),h=e(20),u=a.__importStar(e(18));class p extends o.XYGlyphView{_map_data(){this._define_or_inherit_attr("sradius",(()=>"data"==this.model.properties.radius.units?this.inherited_x&&this.inherited_radius?d.inherit:this.sdist(this.renderer.xscale,this.x,this.radius):this.inherited_radius?d.inherit:(0,l.to_screen)(this.radius)))}_paint(e,i,t){if(!this.visuals.line.doit)return;const{sx:s,sy:n,sradius:r,start_angle:a,end_angle:o}={...this,...t},d="anticlock"==this.model.direction;for(const t of i){const i=s[t],c=n[t],_=r[t],l=a.get(t),h=o.get(t);isFinite(i+c+_+l+h)&&(this._render_decorations(e,t,i,c,_,l,h,d),e.beginPath(),e.arc(i,c,_,l,h,d),this.visuals.line.apply(e,t))}}_render_decorations(e,i,t,s,n,r,a,o){const{sin:d,cos:c,PI:_}=Math;for(const o of this.decorations.values()){if(e.save(),"start"==o.model.node){const i=n*c(r)+t,a=n*d(r)+s;e.translate(i,a),e.rotate(r+_)}else if("end"==o.model.node){const i=n*Math.cos(a)+t,r=n*Math.sin(a)+s;e.translate(i,r),e.rotate(a)}o.marking.paint(e,i),e.restore()}}draw_legend_for_index(e,i,t){(0,c.generic_line_vector_legend)(this.visuals,e,i,t)}}t.ArcView=p,p.__name__="ArcView";class f extends o.XYGlyph{constructor(e){super(e)}}t.Arc=f,r=f,f.__name__="Arc",r.prototype.default_view=p,r.mixins(_.LineVector),r.define((({})=>({direction:[h.Direction,"anticlock"],radius:[u.DistanceSpec,{field:"radius"}],start_angle:[u.AngleSpec,{field:"start_angle"}],end_angle:[u.AngleSpec,{field:"end_angle"}]})))}, -function _(e,i,t,s,c){var o;s();const n=e(1),r=e(80),d=e(221),x=e(227),y=e(352),a=n.__importStar(e(18));class _ extends d.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{data_size:i,x0:t,y0:s,x1:c,y1:o,cx0:n,cy0:r,cx1:d,cy1:x}=this;for(let a=0;a({x0:[a.XCoordinateSpec,{field:"x0"}],y0:[a.YCoordinateSpec,{field:"y0"}],x1:[a.XCoordinateSpec,{field:"x1"}],y1:[a.YCoordinateSpec,{field:"y1"}],cx0:[a.XCoordinateSpec,{field:"cx0"}],cy0:[a.YCoordinateSpec,{field:"cy0"}],cx1:[a.XCoordinateSpec,{field:"cx1"}],cy1:[a.YCoordinateSpec,{field:"cy1"}]}))),o.mixins(r.LineVector)}, -function _(n,t,o,c,s){c();const r=n(13),{abs:u,sqrt:e,min:i,max:f}=Math;o.qbb=function(n,t,o,c,s,r){function u(n,t,o){if(t==(n+o)/2)return[n,o];{const c=(n-t)/(n-2*t+o),s=n*(1-c)**2+2*t*(1-c)*c+o*c**2;return[i(n,o,s),f(n,o,s)]}}const[e,a]=u(n,o,s),[x,y]=u(t,c,r);return{x0:e,x1:a,y0:x,y1:y}},o.cbb=function(n,t,o,c,s,i,f,a){const x=f,y=a;f=o,a=c;const b=s,h=i,l=[];for(let o=0;o<=2;o++){let c,s,r;if(0==o?(s=6*n-12*f+6*b,c=-3*n+9*f-9*b+3*x,r=3*f-3*n):(s=6*t-12*a+6*h,c=-3*t+9*a-9*h+3*y,r=3*a-3*t),u(c)<1e-12){if(u(s)<1e-12)continue;const n=-r/s;00;){const o=l[p],c=1-o,s=c**3*n+3*c**2*o*f+3*c*o**2*b+o**3*x,r=c**3*t+3*c**2*o*a+3*c*o**2*h+o**3*y;q[p]=s,A[p]=r}q[m]=n,A[m]=t,q[m+1]=x,A[m+1]=y;const[g,M,_,d]=(0,r.minmax2)(q,A);return{x0:g,x1:M,y0:_,y1:d}}}, -function _(t,e,i,s,r){var h;s();const n=t(1),_=t(354),a=t(11),o=t(24),c=n.__importStar(t(18));class d extends _.LRTBView{scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){const e=this.x[t],i=this.y[t],s=this.width.get(t),r=this.height.get(t),[h,n]=(0,a.minmax)(e,e+s),[_,o]=(0,a.minmax)(i,i+r);return{l:h,r:n,t:o,b:_}}_map_data(){const{sx:t,sy:e}=this,i=t.length;if(this.inherited_x&&this.inherited_width)this._inherit_attr("sleft"),this._inherit_attr("sright");else{const e=this.sdist(this.renderer.xscale,this.x,this.width,"edge"),s=new o.ScreenArray(i),r=new o.ScreenArray(i);for(let h=0;h({x:[c.XCoordinateSpec,{field:"x"}],y:[c.YCoordinateSpec,{field:"y"}],width:[c.DistanceSpec,{value:1}],height:[c.DistanceSpec,{value:1}]})))}, -function _(t,e,r,s,i){var n;s();const a=t(1),o=t(80),_=t(221),c=t(227),h=t(130),d=t(64),l=t(13),p=t(185),x=a.__importStar(t(186)),m=t(187);class u extends _.GlyphView{async load_glglyph(){const{LRTBGL:e}=await Promise.resolve().then((()=>a.__importStar(t(566))));return e}get_anchor_point(t,e,r){const s=Math.min(this.sleft[e],this.sright[e]),i=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),a=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:s,y:n};case"top":case"top_center":return{x:(s+i)/2,y:n};case"top_right":return{x:i,y:n};case"bottom_left":return{x:s,y:a};case"bottom":case"bottom_center":return{x:(s+i)/2,y:a};case"bottom_right":return{x:i,y:a};case"left":case"center_left":return{x:s,y:(n+a)/2};case"center":case"center_center":return{x:(s+i)/2,y:(n+a)/2};case"right":case"center_right":return{x:i,y:(n+a)/2}}}_set_data(t){super._set_data(t),this.border_radius=x.border_radius(this.model.border_radius)}_index_data(t){const{min:e,max:r}=Math,{data_size:s}=this;for(let i=0;ie(t,r.start))),this.inherited_sright||(0,l.inplace_map)(this.sright,(e=>t(e,r.end))),this.inherited_stop||(0,l.inplace_map)(this.stop,(t=>e(t,s.start))),this.inherited_sbottom||(0,l.inplace_map)(this.sbottom,(e=>t(e,s.end)))}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:r}=t,s=this.renderer.xscale.invert(e),i=this.renderer.yscale.invert(r),n=[...this.index.indices({x0:s,y0:i,x1:s,y1:i})];return new h.Selection({indices:n})}_hit_span(t){const{sx:e,sy:r}=t;let s;if("v"==t.direction){const t=this.renderer.yscale.invert(r),e=this.renderer.plot_view.frame.bbox.h_range,[i,n]=this.renderer.xscale.r_invert(e.start,e.end);s=[...this.index.indices({x0:i,y0:t,x1:n,y1:t})]}else{const t=this.renderer.xscale.invert(e),r=this.renderer.plot_view.frame.bbox.v_range,[i,n]=this.renderer.yscale.r_invert(r.start,r.end);s=[...this.index.indices({x0:t,y0:i,x1:t,y1:n})]}return new h.Selection({indices:s})}draw_legend_for_index(t,e,r){(0,c.generic_area_vector_legend)(this.visuals,t,e,r)}}r.LRTBView=u,u.__name__="LRTBView";class y extends _.Glyph{constructor(t){super(t)}}r.LRTB=y,n=y,y.__name__="LRTB",n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((()=>({border_radius:[p.BorderRadius,0]})))}, -function _(i,e,s,t,r){var n;t();const a=i(1),d=i(220),h=i(221),c=i(80),o=i(24),_=i(20),l=a.__importStar(i(228)),u=a.__importStar(i(18)),x=i(10),y=i(13),p=i(130);class m extends d.XYGlyphView{async load_glglyph(){const{CircleGL:e}=await Promise.resolve().then((()=>a.__importStar(i(561))));return e}_index_data(i){const{x:e,y:s,radius:t,data_size:r}=this;for(let n=0;n{if("data"!=this.model.properties.radius.units)return this.inherited_sradius?h.inherit:(0,o.to_screen)(this.radius);{const i=()=>this.sdist(this.renderer.xscale,this.x,this.radius),e=()=>this.sdist(this.renderer.yscale,this.y,this.radius),{radius_dimension:s}=this.model;switch(s){case"x":return this.inherited_x&&this.inherited_radius?h.inherit:i();case"y":return this.inherited_y&&this.inherited_radius?h.inherit:e();case"min":case"max":return this.inherited_x&&this.inherited_y&&this.inherited_radius?h.inherit:(0,x.elementwise)(i(),e(),Math[s])}}}))}_mask_data(){const{frame:i}=this.renderer.plot_view,e=i.x_target,s=i.y_target;let t,r;return"data"==this.model.properties.radius.units?(t=e.map((i=>this.renderer.xscale.invert(i))).widen(this.max_radius),r=s.map((i=>this.renderer.yscale.invert(i))).widen(this.max_radius)):(t=e.widen(this.max_radius).map((i=>this.renderer.xscale.invert(i))),r=s.widen(this.max_radius).map((i=>this.renderer.yscale.invert(i)))),this.index.indices({x0:t.start,x1:t.end,y0:r.start,y1:r.end})}_paint(i,e,s){const{sx:t,sy:r,sradius:n}={...this,...s};for(const s of e){const e=t[s],a=r[s],d=n[s];isFinite(e+a+d)&&(i.beginPath(),i.arc(e,a,d,0,2*Math.PI,!1),this.visuals.fill.apply(i,s),this.visuals.hatch.apply(i,s),this.visuals.line.apply(i,s))}}_hit_point(i){const{sx:e,sy:s}=i,t=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(s),{hit_dilation:n}=this.model,[a,d,h,c]=(()=>{if("data"==this.model.properties.radius.units){const i=this.max_radius*n;return[t-i,t+i,r-i,r+i]}{const i=this.max_radius*n,t=e-i,r=e+i,a=s-i,d=s+i,[h,c]=this.renderer.xscale.r_invert(t,r),[o,_]=this.renderer.yscale.r_invert(a,d);return[h,c,o,_]}})(),o=this.index.indices({x0:a,x1:d,y0:h,y1:c}),_=[];if("data"==this.model.properties.radius.units)for(const i of o){const e=(this.sradius[i]*n)**2,[s,a]=this.renderer.xscale.r_compute(t,this.x[i]),[d,h]=this.renderer.yscale.r_compute(r,this.y[i]);(s-a)**2+(d-h)**2<=e&&_.push(i)}else for(const i of o){const t=(this.sradius[i]*n)**2;(this.sx[i]-e)**2+(this.sy[i]-s)**2<=t&&_.push(i)}return new p.Selection({indices:_})}_hit_span(i){const{sx:e,sy:s}=i,t=this.bounds(),[r,n,a,d]=(()=>{const r=this.max_radius;if("h"==i.direction){const i=e-r,s=e+r,[n,a]=this.renderer.xscale.r_invert(i,s),{y0:d,y1:h}=t;return[n,a,d,h]}{const i=s-r,e=s+r,{x0:n,x1:a}=t,[d,h]=this.renderer.yscale.r_invert(i,e);return[n,a,d,h]}})(),h=[...this.index.indices({x0:r,x1:n,y0:a,y1:d})];return new p.Selection({indices:h})}_hit_rect(i){const{sx0:e,sx1:s,sy0:t,sy1:r}=i,[n,a]=this.renderer.xscale.r_invert(e,s),[d,h]=this.renderer.yscale.r_invert(t,r),c=this.index.indices({x0:n,x1:a,y0:d,y1:h}),o=[];for(const i of c){const n=this.sx[i],a=this.sy[i];e<=n&&n<=s&&t<=a&&a<=r&&o.push(i)}return new p.Selection({indices:o})}_hit_poly(i){const{sx:e,sy:s}=i,t=(()=>{const[i,t,r,n]=(0,y.minmax2)(e,s),[a,d]=this.renderer.xscale.r_invert(i,t),[h,c]=this.renderer.yscale.r_invert(r,n);return this.index.indices({x0:a,x1:d,y0:h,y1:c})})(),r=[];for(const i of t)l.point_in_poly(this.sx[i],this.sy[i],e,s)&&r.push(i);return new p.Selection({indices:r})}draw_legend_for_index(i,{x0:e,y0:s,x1:t,y1:r},n){const a=n+1,d=new Array(a);d[n]=(e+t)/2;const h=new Array(a);h[n]=(s+r)/2;const c=new Array(a);c[n]=.2*Math.min(Math.abs(t-e),Math.abs(r-s)),this._paint(i,[n],{sx:d,sy:h,sradius:c})}}s.CircleView=m,m.__name__="CircleView";class f extends d.XYGlyph{constructor(i){super(i)}}s.Circle=f,n=f,f.__name__="Circle",n.prototype.default_view=m,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((({Float:i})=>({radius:[u.DistanceSpec,{field:"radius"}],radius_dimension:[_.RadiusDimension,"x"],hit_dilation:[i,1]})))}, -function _(t,i,e,s,h){var r;s();const n=t(1),a=t(357),_=t(221),d=n.__importStar(t(228)),l=t(24),o=t(130),c=n.__importStar(t(18));class p extends a.CenterRotatableView{_map_data(){this._define_or_inherit_attr("swidth",(()=>"data"==this.model.properties.width.units?this.inherited_x&&this.inherited_width?_.inherit:this.sdist(this.renderer.xscale,this.x,this.width,"center"):this.inherited_width?_.inherit:(0,l.to_screen)(this.width))),this._define_or_inherit_attr("sheight",(()=>"data"==this.model.properties.height.units?this.inherited_y&&this.inherited_height?_.inherit:this.sdist(this.renderer.yscale,this.y,this.height,"center"):this.inherited_height?_.inherit:(0,l.to_screen)(this.height)))}_paint(t,i,e){const{sx:s,sy:h,swidth:r,sheight:n,angle:a}={...this,...e};for(const e of i){const i=s[e],_=h[e],d=r[e],l=n[e],o=a.get(e);isFinite(i+_+d+l+o)&&(t.beginPath(),t.ellipse(i,_,d/2,l/2,o,0,2*Math.PI),this.visuals.fill.apply(t,e),this.visuals.hatch.apply(t,e),this.visuals.line.apply(t,e))}}_hit_point(t){let i,e,s,h,r,n,a,_,l;const{sx:c,sy:p}=t,w=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(p);"data"==this.model.properties.width.units?(i=w-this.max_width,e=w+this.max_width):(n=c-this.max_width,a=c+this.max_width,[i,e]=this.renderer.xscale.r_invert(n,a)),"data"==this.model.properties.height.units?(s=x-this.max_height,h=x+this.max_height):(_=p-this.max_height,l=p+this.max_height,[s,h]=this.renderer.yscale.r_invert(_,l));const g=this.index.indices({x0:i,x1:e,y0:s,y1:h}),y=[];for(const t of g)r=d.point_in_ellipse(c,p,this.angle.get(t),this.sheight[t]/2,this.swidth[t]/2,this.sx[t],this.sy[t]),r&&y.push(t);return new o.Selection({indices:y})}draw_legend_for_index(t,{x0:i,y0:e,x1:s,y1:h},r){const n=r+1,a=new Array(n);a[r]=(i+s)/2;const _=new Array(n);_[r]=(e+h)/2;const d=this.swidth[r]/this.sheight[r],l=.8*Math.min(Math.abs(s-i),Math.abs(h-e)),o=new Array(n),p=new Array(n);d>1?(o[r]=l,p[r]=l/d):(o[r]=l*d,p[r]=l);const w=new c.UniformScalar(0,n);this._paint(t,[r],{sx:a,sy:_,swidth:o,sheight:p,angle:w})}}e.EllipseView=p,p.__name__="EllipseView";class w extends a.CenterRotatable{constructor(t){super(t)}}e.Ellipse=w,r=w,w.__name__="Ellipse",r.prototype.default_view=p}, -function _(e,t,i,a,n){var r;a();const s=e(1),h=e(220),o=e(80),_=s.__importStar(e(18));class c extends h.XYGlyphView{get max_w2(){return"data"==this.model.properties.width.units?this.max_width/2:0}get max_h2(){return"data"==this.model.properties.height.units?this.max_height/2:0}_bounds({x0:e,x1:t,y0:i,y1:a}){const{max_w2:n,max_h2:r}=this;return{x0:e-n,x1:t+n,y0:i-r,y1:a+r}}}i.CenterRotatableView=c,c.__name__="CenterRotatableView";class l extends h.XYGlyph{constructor(e){super(e)}}i.CenterRotatable=l,r=l,l.__name__="CenterRotatable",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({})=>({angle:[_.AngleSpec,0],width:[_.DistanceSpec,{field:"width"}],height:[_.DistanceSpec,{field:"height"}]})))}, -function _(t,e,i,s,r){var h;s();const n=t(1),a=t(354),_=t(24),o=n.__importStar(t(18));class c extends a.LRTBView{scenterxy(t){return[(this.sleft[t]+this.sright[t])/2,this.sy[t]]}_lrtb(t){const e=this.left[t],i=this.right[t],s=this.y[t],r=this.height.get(t)/2;return{l:Math.min(e,i),r:Math.max(e,i),t:s+r,b:s-r}}_map_data(){if(this.inherited_y&&this.inherited_height)this._inherit_attr("sheight"),this._inherit_attr("stop"),this._inherit_attr("sbottom");else{const t=this.sdist(this.renderer.yscale,this.y,this.height,"center"),{sy:e}=this,i=this.sy.length,s=new _.ScreenArray(i),r=new _.ScreenArray(i);for(let h=0;h({left:[o.XCoordinateSpec,{value:0}],y:[o.YCoordinateSpec,{field:"y"}],height:[o.DistanceSpec,{value:1}],right:[o.XCoordinateSpec,{field:"right"}]})))}, -function _(e,t,s,i,r){var n;i();const a=e(1),o=e(221),c=a.__importStar(e(228)),l=a.__importStar(e(18)),_=e(80),h=e(20),d=e(227),p=e(130);class x extends o.GlyphView{async load_glglyph(){const{HexTileGL:t}=await Promise.resolve().then((()=>a.__importStar(e(562))));return t}scenterxy(e){return[this.sx[e],this.sy[e]]}_set_data(){const{orientation:e,size:t,aspect_scale:s}=this.model,{q:i,r}=this,n=this.q.length,a=new Float64Array(n),o=new Float64Array(n),c=Math.sqrt(3);if("pointytop"==e)for(let e=0;e{if("v"==e.direction){const{sy:t}=e,s=this.renderer.yscale.invert(t),i=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(i.start,i.end);return{x0:r,y0:s,x1:n,y1:s}}{const{sx:t}=e,s=this.renderer.xscale.invert(t),i=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(i.start,i.end);return{x0:s,y0:r,x1:s,y1:n}}})(),s=[...this.index.indices(t)];return new p.Selection({indices:s})}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[n,a]=this.renderer.xscale.r_invert(t,s),[o,c]=this.renderer.yscale.r_invert(i,r),l=[...this.index.indices({x0:n,x1:a,y0:o,y1:c})];return new p.Selection({indices:l})}draw_legend_for_index(e,t,s){(0,d.generic_area_vector_legend)(this.visuals,e,t,s)}}s.HexTileView=x,x.__name__="HexTileView";class y extends o.Glyph{constructor(e){super(e)}}s.HexTile=y,n=y,y.__name__="HexTile",n.prototype.default_view=x,n.mixins([_.LineVector,_.FillVector,_.HatchVector]),n.define((({Float:e})=>({r:[l.NumberSpec,{field:"r"}],q:[l.NumberSpec,{field:"q"}],scale:[l.NumberSpec,1],size:[e,1],aspect_scale:[e,1],orientation:[h.HexTileOrientation,"pointytop"]}))),n.override({line_color:null})}, -function _(t,e,i,n,s){var _;n();const r=t(1),a=t(221),o=t(227),d=t(130),c=t(80),h=r.__importStar(t(39)),p=t(13),l=t(10),y=r.__importStar(t(18)),{abs:f,max:u}=Math;class x extends a.GlyphView{after_visuals(){super.after_visuals(),this.max_line_width=h.max(this.line_width)}_index_data(t){for(const e of this.y)t.add_point(0,e)}_bounds(t){const{y0:e,y1:i}=t;return{x0:NaN,x1:NaN,y0:e,y1:i}}_map_data(){super._map_data();const{round:t}=Math;if(!this.inherited_sy){const e=(0,p.map)(this.sy,(e=>t(e)));this._define_attr("sy",e)}}scenterxy(t){const{hcenter:e}=this.renderer.plot_view.frame.bbox;return[e,this.sy[t]]}_paint(t,e,i){const{sy:n}={...this,...i},{left:s,right:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=n[i];isFinite(e)&&(t.beginPath(),t.moveTo(s,e),t.lineTo(_,e),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_line_width:i}=this,[n,s]=this.renderer.yscale.r_invert(t-i,(e??t)+i);return this.index.indices({x0:0,x1:0,y0:n,y1:s})}_find_spans(t,e){const{sy:i,line_width:n}=this,s=[];for(const _ of t){e(i[_],n.get(_))&&s.push(_)}return s}_hit_point(t){const{sy:e}=t,i=this._get_candidates(e),n=this._find_spans(i,((t,i)=>f(t-e)<=u(i/2,2)));return new d.Selection({indices:n})}_hit_span(t){const e=(()=>{if("v"==t.direction)return(0,l.range)(0,this.data_size);{const{sy:e}=t,i=this._get_candidates(e);return this._find_spans(i,((t,i)=>f(t-e)<=u(i/2,2)))}})();return new d.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sy0:e,sy1:i}=t,n=this._get_candidates(e,i);return this._find_spans(n,((t,n)=>e-n/2<=t&&t<=i+n/2))})();return new d.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_line_vector_legend)(this.visuals,t,e,i)}}i.HSpanView=x,x.__name__="HSpanView";class m extends a.Glyph{constructor(t){super(t)}}i.HSpan=m,_=m,m.__name__="HSpan",_.prototype.default_view=x,_.mixins([c.LineVector]),_.define((()=>({y:[y.YCoordinateSpec,{field:"y"}]})))}, -function _(t,e,i,s,r){var n;s();const a=t(1),_=t(221),o=t(227),h=t(130),c=t(80),d=t(24),l=t(13),p=a.__importStar(t(34)),y=t(10),f=a.__importStar(t(18));class u extends _.GlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(566))));this.glglyph=new i(e.regl_wrapper,this)}}get sleft(){const{left:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get sright(){const{right:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get stop(){return this.sy0}get sbottom(){return this.sy1}_set_data(t){super._set_data(t);const{abs:e}=Math,{max:i,map:s,zip:r}=p,{y0:n,y1:a}=this;if(this.inherited_y0&&this.inherited_y1)this._inherit_attr("max_height");else{const t=i(s(r(n,a),(([t,i])=>e(t-i))));this._define_attr("max_height",t)}}_index_data(t){const{y0:e,y1:i,data_size:s}=this;for(let r=0;rt(e)));this._define_attr("sy0",e)}if(!this.inherited_sy1){const e=(0,l.map)(this.sy1,(e=>t(e)));this._define_attr("sy1",e)}}scenterxy(t){const{hcenter:e}=this.renderer.plot_view.frame.bbox;return[e,(this.sy0[t]+this.sy1[t])/2]}_paint(t,e,i){const{sy0:s,sy1:r}={...this,...i},{left:n,right:a,width:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=s[i],o=r[i];isFinite(e+o)&&(t.beginPath(),t.rect(n,e,_,o-e),this.visuals.fill.apply(t,i),this.visuals.hatch.apply(t,i),t.beginPath(),t.moveTo(n,e),t.lineTo(a,e),t.moveTo(n,o),t.lineTo(a,o),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_height:i}=this,[s,r]=this.renderer.yscale.r_invert(t,e??t),n=s-i,a=r+i;return this.index.indices({x0:0,x1:0,y0:n,y1:a})}_find_strips(t,e){function i(t,i){return t<=i?e(t,i):e(i,t)}const{sy0:s,sy1:r}=this,n=[];for(const e of t){i(s[e],r[e])&&n.push(e)}return n}_hit_point(t){const{sy:e}=t,i=this._get_candidates(e),s=this._find_strips(i,((t,i)=>t<=e&&e<=i));return new h.Selection({indices:s})}_hit_span(t){const e=(()=>{if("v"==t.direction)return(0,y.range)(0,this.data_size);{const{sy:e}=t,i=this._get_candidates(e);return this._find_strips(i,((t,i)=>t<=e&&e<=i))}})();return new h.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sy0:e,sy1:i}=t,s=this._get_candidates(e,i);return this._find_strips(s,((t,s)=>e<=t&&t<=i&&e<=s&&s<=i))})();return new h.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_area_vector_legend)(this.visuals,t,e,i)}}i.HStripView=u,u.__name__="HStripView";class g extends _.Glyph{constructor(t){super(t)}}i.HStrip=g,n=g,g.__name__="HStrip",n.prototype.default_view=u,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((()=>({y0:[f.YCoordinateSpec,{field:"y0"}],y1:[f.YCoordinateSpec,{field:"y1"}]})))}, -function _(e,t,a,r,n){var i,_=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&_(t,e,a);return o(t,e),t};r();const l=e(363),c=e(215),u=e(275);class p extends l.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(563))));return t}connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}_update_image(){null!=this.glglyph&&this.glglyph.set_image_changed(),null!=this.image_data&&(this._set_data(null),this.renderer.request_paint())}get _can_inherit_image_data(){return super._can_inherit_image_data&&this._can_inherit_from(this.model.properties.color_mapper,this.base)}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}a.ImageView=p,p.__name__="ImageView";class d extends l.ImageBase{constructor(e){super(e)}}a.Image=d,i=d,d.__name__="Image",i.prototype.default_view=p,i.define((({Ref:e})=>({color_mapper:[e(c.ColorMapper),()=>new u.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})))}, -function _(t,e,i,s,a){var r;s();const n=t(1),h=t(220),_=t(221),d=t(24),o=t(20),g=n.__importStar(t(18)),c=n.__importStar(t(80)),m=t(130),l=t(12),x=t(185),u=t(186);class f extends h.XYGlyphView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_paint()))}get image_dimension(){return 2}get xy_scale(){switch(this.model.origin){case"bottom_left":return{x:1,y:-1};case"top_left":return{x:1,y:1};case"bottom_right":return{x:-1,y:-1};case"top_right":return{x:-1,y:1}}}get xy_offset(){switch(this.model.origin){case"bottom_left":return{x:0,y:1};case"top_left":return{x:0,y:0};case"bottom_right":return{x:1,y:1};case"top_right":return{x:1,y:0}}}get xy_anchor(){return(0,u.anchor)(this.model.anchor)}get xy_sign(){const t=this.renderer.xscale.source_range,e=this.renderer.yscale.source_range;return{x:t.is_reversed?-1:1,y:e.is_reversed?-1:1}}_paint(t,e,i){const{image_data:s,sx:a,sy:r,sdw:n,sdh:h}={...this,...i},{xy_sign:_,xy_scale:d,xy_offset:o,xy_anchor:g}=this;if((0,l.assert)(null!=s),t.save(),t.imageSmoothingEnabled=!1,this.visuals.image.doit)for(const i of e){const e=s[i],c=a[i],m=r[i],l=n[i],x=h[i];if(null==e||!isFinite(c+m+l+x))continue;const u=_.x*g.x*l,f=_.y*g.y*x;t.save(),t.translate(c-u,m-f),t.scale(_.x*d.x,_.y*d.y),this.visuals.image.set_vectorize(t,i),t.drawImage(e,-o.x*l,-o.y*x,l,x),t.restore()}t.restore()}get _can_inherit_image_data(){return this.inherited_image}_set_data(t){const e=this.data_size;if(this._can_inherit_image_data)this._inherit_attr("image_data"),this._inherit_attr("image_width"),this._inherit_attr("image_height");else{void 0!==this.image_data&&this.image_data.length==e||(this._define_attr("image_data",new Array(e).fill(null)),this._define_attr("image_width",new Uint32Array(e)),this._define_attr("image_height",new Uint32Array(e)));const{image_dimension:i}=this;for(let s=0;s"data"==this.model.properties.dw.units?this.inherited_x&&this.inherited_dw?_.inherit:this.sdist(this.renderer.xscale,this.x,this.dw,"edge",this.model.dilate):this.inherited_dw?_.inherit:(0,d.to_screen)(this.dw))),this._define_or_inherit_attr("sdh",(()=>"data"==this.model.properties.dh.units?this.inherited_y&&this.inherited_dh?_.inherit:this.sdist(this.renderer.yscale,this.y,this.dh,"edge",this.model.dilate):this.inherited_dh?_.inherit:(0,d.to_screen)(this.dh)))}_image_index(t,e,i){const[s,a,r,n]=this._lrtb(t),h=this.image_width[t],_=(a-s)/h,d=(r-n)/this.image_height[t],o=Math.floor((e-s)/_),g=Math.floor((i-n)/d);return{index:t,i:o,j:g,flat_index:g*h+o}}_hit_point(t){const{sx:e,sy:i}=t,s=this.renderer.xscale.invert(e),a=this.renderer.yscale.invert(i),r=this.index.indices({x0:s,x1:s,y0:a,y1:a}),n=new m.Selection,h=[];for(const t of r)isFinite(e)&&isFinite(i)&&(h.push(t),n.image_indices.push(this._image_index(t,s,a)));return n.indices=h,n}}i.ImageBaseView=f,f.__name__="ImageBaseView";class y extends h.XYGlyph{constructor(t){super(t)}}i.ImageBase=y,r=y,y.__name__="ImageBase",r.mixins(c.ImageVector),r.define((({Bool:t})=>({image:[g.NDArraySpec,{field:"image"}],dw:[g.DistanceSpec,{field:"dw"}],dh:[g.DistanceSpec,{field:"dh"}],dilate:[t,!1],origin:[o.ImageOrigin,"bottom_left"],anchor:[x.Anchor,"bottom_left"]})))}, -function _(e,t,r,n,a){var i,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return u(t,e),t};n();const c=e(363),l=e(8);class _ extends c.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(563))));return t}_flat_img_to_buf8(e){const t=(0,l.isTypedArray)(e)?e:new Uint32Array(e);return new Uint8ClampedArray(t.buffer)}}r.ImageRGBAView=_,_.__name__="ImageRGBAView";class f extends c.ImageBase{constructor(e){super(e)}}r.ImageRGBA=f,i=f,f.__name__="ImageRGBA",i.prototype.default_view=_}, -function _(e,t,a,r,i){var n,_=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&_(t,e,a);return o(t,e),t};r();const c=e(363),l=e(278);class u extends c.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(563))));return t}connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}get image_dimension(){return 3}_update_image(){null!=this.glglyph&&this.glglyph.set_image_changed(),null!=this.image_data&&(this._set_data(null),this.renderer.request_paint())}get _can_inherit_image_data(){return super._can_inherit_image_data&&this._can_inherit_from(this.model.properties.color_mapper,this.base)}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}a.ImageStackView=u,u.__name__="ImageStackView";class p extends c.ImageBase{constructor(e){super(e)}}a.ImageStack=p,n=p,p.__name__="ImageStack",n.prototype.default_view=u,n.define((({Ref:e})=>({color_mapper:[e(l.StackColorMapper)]})))}, -function _(e,t,i,s,r){var n;s();const a=e(1),h=e(220),l=e(221),o=e(24),d=e(20),_=a.__importStar(e(18)),c=e(10),u=e(13),m=e(179),g=a.__importStar(e(186));class p extends h.XYGlyphView{constructor(){super(...arguments),this._images_rendered=!1,this.image=new Array(0),this._set_data_iteration=0}connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_paint()))}_index_data(e){const{data_size:t}=this;for(let i=0;i{this._set_data_iteration!=r||this.resolved.get(n)||(this.resolved.set(n),this.image[n]=e,this.loaders[n]=null,this.renderer.request_paint())},failed:()=>{if(this._set_data_iteration==r){this.resolved.set(n),this.loaders[n]=null;null!=this.image[n]&&(this.image[n]=null,this.renderer.request_paint())}},attempts:i+1,timeout:s});this.loaders[n]=a}const n="data"==this.model.properties.w.units,a="data"==this.model.properties.h.units,h=this.data_size,l=new o.ScreenArray(n?2*h:h),d=new o.ScreenArray(a?2*h:h);this.anchor=g.anchor(this.model.anchor);const{x:_,y:p}=this.anchor;function f(e,t){const i=e-_*t;return[i,i+t]}function w(e,t){const i=e+p*t;return[i,i-t]}if(n)for(let e=0;ethis.w.map((e=>e??NaN)),t=()=>this.h.map((e=>e??NaN));this._define_or_inherit_attr("sw",(()=>"data"==this.model.properties.w.units?this.inherited_x&&this.inherited_w?l.inherit:this.sdist(this.renderer.xscale,this.x,e(),"edge",this.model.dilate):this.inherited_w?l.inherit:(0,o.to_screen)(e()))),this._define_or_inherit_attr("sh",(()=>"data"==this.model.properties.h.units?this.inherited_y&&this.inherited_h?l.inherit:this.sdist(this.renderer.yscale,this.y,t(),"edge",this.model.dilate):this.inherited_h?l.inherit:(0,o.to_screen)(t())))}_paint(e,t,i){const{sx:s,sy:r,sw:n,sh:a,angle:h,global_alpha:l}={...this,...i},{image:o,loaders:d,resolved:_}=this,{frame:c}=this.renderer.plot_view,{left:u,top:m,width:g,height:p}=c.bbox;e.beginPath(),e.rect(u+1,m+1,g-2,p-2),e.clip();let f=!0;for(const i of t){const t=d[i];if(!isFinite(s[i]+r[i]+h.get(i)+l.get(i)))continue;_.get(i)||(null!=t&&t.image.complete?(o[i]=t.image,d[i]=null,_.set(i)):f=!1);const c=o[i];null!=c&&(0==c.naturalWidth&&0==c.naturalHeight||this._render_image(e,i,c,s,r,n,a,h,l))}f&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_render_image(e,t,i,s,r,n,a,h,l){isFinite(n[t])||(n[t]=i.width),isFinite(a[t])||(a[t]=i.height);const o=n[t],d=a[t],{anchor:_}=this,c=_.x*o,u=_.y*d,m=s[t]-c,g=r[t]-u,p=h.get(t),f=l.get(t);e.save(),e.globalAlpha=f;const w=o/2,y=d/2;0!=p?(e.translate(m,g),e.translate(w,y),e.rotate(p),e.translate(-w,-y),e.drawImage(i,0,0,o,d),e.translate(w,y),e.rotate(-p),e.translate(-w,-y),e.translate(-m,-g)):e.drawImage(i,m,g,o,d),e.restore()}bounds(){return this._bounds_rect}}i.ImageURLView=p,p.__name__="ImageURLView";class f extends h.XYGlyph{constructor(e){super(e)}}i.ImageURL=f,n=f,f.__name__="ImageURL",n.prototype.default_view=p,n.define((({Bool:e,Int:t})=>({url:[_.StringSpec,{field:"url"}],anchor:[d.Anchor,"top_left"],global_alpha:[_.NumberSpec,{value:1}],angle:[_.AngleSpec,0],w:[_.NullDistanceSpec,null],h:[_.NullDistanceSpec,null],dilate:[e,!1],retry_attempts:[t,0],retry_timeout:[t,0]})))}, -function _(t,e,a,h,l){var M;h();const _=t(368),n=t(178);class p extends _.MathTextGlyphView{_build_label(t){return new n.MathML({text:t})}}a.MathMLGlyphView=p,p.__name__="MathMLGlyphView";class s extends _.MathTextGlyph{constructor(t){super(t)}}a.MathMLGlyph=s,M=s,s.__name__="MathMLGlyph",M.prototype.default_view=p}, -function _(e,t,s,i,l){i();const a=e(369),n=e(178),r=e(56),h=e(8),_=e(34);class u extends a.TextView{constructor(){super(...arguments),this._label_views=new Map}remove(){(0,r.remove_views)(this._label_views),super.remove()}*children(){yield*super.children(),yield*this._label_views.values()}has_finished(){if(!super.has_finished())return!1;for(const e of this._label_views.values())if(!e.has_finished())return!1;return!0}async _build_labels(e){const t=Array.from(e,(e=>null==e?null:this._build_label(e)));return await(0,r.build_views)(this._label_views,t.filter(h.non_null),{parent:this.renderer}),t.map((e=>null==e?null:this._label_views.get(e).graphics()))}async after_lazy_visuals(){await super.after_lazy_visuals();const e=[...this._label_views.values()].map((e=>e instanceof n.MathTextView?e.request_image():null));await Promise.allSettled(e);const{left:t,right:s,top:i,bottom:l}=this.padding;for(const[e,a]of(0,_.enumerate)(this.labels)){if(null==e)continue;if(!(e instanceof n.MathTextView))continue;const r=e.size(),h=t+r.width+s,_=i+r.height+l;this.swidth[a]=h,this.sheight[a]=_}}}s.MathTextGlyphView=u,u.__name__="MathTextGlyphView";class o extends a.Text{constructor(e){super(e)}}s.MathTextGlyph=o,o.__name__="MathTextGlyph"}, -function _(t,e,a,i,s){var n;i();const o=t(1),r=t(220),l=o.__importStar(t(80)),h=o.__importStar(t(18)),c=t(39),_=t(130),d=t(64),u=t(34),x=t(114),p=t(180),g=t(185),f=o.__importStar(t(186)),y=t(187),b=t(11);class w extends h.DataSpec{}w.__name__="TextAnchorSpec";class m extends h.DataSpec{}m.__name__="OutlineShapeSpec";class v extends r.XYGlyphView{async _build_labels(t){return Array.from(t,(t=>{if(null==t)return null;{const e=`${t}`;return new p.TextBox({text:e})}}))}async _set_lazy_data(){this.inherited_text?this._inherit_attr("labels"):this._define_attr("labels",await this._build_labels(this.text))}after_visuals(){super.after_visuals();const t=this.data_size,{anchor:e}=this.base??this,{padding:a,border_radius:i}=this.model,{text_align:s,text_baseline:n}=this.visuals.text;if(e.is_Scalar()&&"auto"!=e.value)this.anchor_=new c.UniformScalar(f.anchor(e.value),t);else if(e.is_Scalar()&&s.is_Scalar()&&n.is_Scalar())this.anchor_=new c.UniformScalar(f.text_anchor(e.value,s.value,n.value),t);else{const a=new Array(t);for(let i=0;i{const{x:t,y:e,width:a,height:s}=i;if(a>s){const i=(a-s)/2;return new d.BBox({x:t,y:e-i,width:a,height:a})}{const i=(s-a)/2;return new d.BBox({x:t-i,y:e,width:s,height:s})}})();(0,y.round_rect)(t,e,n);break}case"circle":{const e=i.x_center,a=i.y_center,s=(0,b.sqrt)(i.width**2+i.height**2)/2;t.arc(e,a,s,0,2*b.PI,!1);break}case"ellipse":{const e=i.x_center,a=i.y_center,s=1.5,n=i.width/2,o=i.height/2,r=(0,b.sqrt)(n**2+n**(2/s)*o**(2-2/s)),l=(0,b.sqrt)(o**2+o**(2/s)*n**(2-2/s));t.ellipse(e,a,r,l,0,0,2*b.PI);break}case"trapezoid":{const{left:e,right:a,top:s,bottom:n,width:o}=i,r=.2*o;t.moveTo(e,s),t.lineTo(a,s),t.lineTo(a+r,n),t.lineTo(e-r,n),t.closePath();break}case"parallelogram":{const{left:e,right:a,top:s,bottom:n,width:o}=i,r=.2*o;t.moveTo(e,s),t.lineTo(a+r,s),t.lineTo(a,n),t.lineTo(e-r,n),t.closePath();break}case"diamond":{const{x_center:e,y_center:a,width:s,height:n}=i;t.moveTo(e,a-n),t.lineTo(s+s/2,a),t.lineTo(e,a+n),t.lineTo(-s/2,a),t.closePath();break}case"triangle":{const e=i.width,a=i.height,s=(0,b.sqrt)(3)/2*e,n=a+s;t.translate(e/2,-s),t.moveTo(0,0),t.lineTo(n/2,n),t.lineTo(-n/2,n),t.closePath(),t.translate(-e/2,s);break}}s.fill.apply(t,e),s.hatch.apply(t,e),s.line.apply(t,e)}_hit_point(t){const e={x:t.sx,y:t.sy},{sx:a,sy:i,x_offset:s,y_offset:n,angle:o,labels:r}=this,{anchor_:l}=this,{swidth:h,sheight:c}=this,d=this.data_size,u=[];for(let t=0;t({text:[h.NullStringSpec,{field:"text"}],angle:[h.AngleSpec,0],x_offset:[h.NumberSpec,0],y_offset:[h.NumberSpec,0],anchor:[w,{value:"auto"}],padding:[g.Padding,0],border_radius:[g.BorderRadius,0],outline_shape:[m,"box"]}))),n.override({border_line_color:null,background_fill_color:null,background_hatch_color:null})}, -function _(t,e,s,i,n){var o;i();const r=t(1),l=t(80),_=r.__importStar(t(228)),a=r.__importStar(t(18)),c=t(13),h=t(221),d=t(227),x=t(130);class g extends h.GlyphView{async load_glglyph(){const{MultiLineGL:e}=await Promise.resolve().then((()=>r.__importStar(t(567))));return e}_project_data(){this._project_xy("xs",this.xs.data,"ys",this.ys.data)}_index_data(t){const{data_size:e}=this;for(let s=0;s0&&o.set(t,s)}return new x.Selection({indices:[...o.keys()],multiline_indices:o})}get_interpolation_hit(t,e,s){const i=this.xs.get(t),n=this.ys.get(t),o=i[e],r=n[e],l=i[e+1],_=n[e+1];return(0,d.line_interpolation)(this.renderer,s,o,r,l,_)}draw_legend_for_index(t,e,s){(0,d.generic_line_vector_legend)(this.visuals,t,e,s)}scenterxy(){throw new Error(`${this}.scenterxy() is not implemented`)}}s.MultiLineView=g,g.__name__="MultiLineView";class y extends h.Glyph{constructor(t){super(t)}}s.MultiLine=y,o=y,y.__name__="MultiLine",o.prototype.default_view=g,o.define((({})=>({xs:[a.XCoordinateSeqSpec,{field:"xs"}],ys:[a.YCoordinateSeqSpec,{field:"ys"}]}))),o.mixins(l.LineVector)}, -function _(t,e,s,n,i){var r;n();const o=t(1),l=t(223),h=t(221),a=t(227),_=t(13),c=t(13),d=t(80),y=o.__importStar(t(228)),f=o.__importStar(t(18)),x=t(130),g=t(12);class p extends h.GlyphView{_project_data(){}_index_data(t){const{min:e,max:s}=Math,{data_size:n}=this;for(let i=0;i1&&c.length>1)for(let s=1,n=i.length;s{const t=this.renderer.xscale.v_invert(e),n=this.renderer.yscale.v_invert(s),[i,r,o,l]=(0,_.minmax2)(t,n);return this.index.indices({x0:i,x1:r,y0:o,y1:l})})(),r=[];for(const t of i){const i=this.sxs[t],o=this.sys[t];let l=!n;const h=i.length;for(let t=0;t1){let o=!1;for(let t=1;t({xs:[f.XCoordinateSeqSeqSeqSpec,{field:"xs"}],ys:[f.YCoordinateSeqSeqSeqSpec,{field:"ys"}]}))),r.mixins([d.LineVector,d.FillVector,d.HatchVector])}, -function _(e,t,s,i,n){var r;i();const o=e(1),a=e(221),c=e(227),_=e(13),h=e(80),l=o.__importStar(e(228)),y=o.__importStar(e(18)),d=e(130),p=e(12);class x extends a.GlyphView{_project_data(){this._project_xy("xs",this.xs.data,"ys",this.ys.data)}_index_data(e){const{data_size:t}=this;for(let s=0;s{const e=this.renderer.xscale.v_invert(t),i=this.renderer.yscale.v_invert(s),[n,r,o,a]=(0,_.minmax2)(e,i);return this.index.indices({x0:n,x1:r,y0:o,y1:a})})(),r=[];for(const e of n){const n=this.sxs.get(e),o=this.sys.get(e),a=n.length;if(0==a)continue;let c=!i;for(let e=0;e({xs:[y.XCoordinateSeqSpec,{field:"xs"}],ys:[y.YCoordinateSeqSpec,{field:"ys"}]}))),r.mixins([h.LineVector,h.FillVector,h.HatchVector])}, -function _(t,e,i,o,r){var s;o();const d=t(1),n=t(354),a=d.__importStar(t(18));class l extends n.LRTBView{scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){return{l:this.left[t],r:this.right[t],t:this.top[t],b:this.bottom[t]}}}i.QuadView=l,l.__name__="QuadView";class _ extends n.LRTB{constructor(t){super(t)}}i.Quad=_,s=_,_.__name__="Quad",s.prototype.default_view=l,s.define((({})=>({right:[a.XCoordinateSpec,{field:"right"}],bottom:[a.YCoordinateSpec,{field:"bottom"}],left:[a.XCoordinateSpec,{field:"left"}],top:[a.YCoordinateSpec,{field:"top"}]})))}, -function _(e,i,t,s,n){var o;s();const c=e(1),a=e(80),r=e(221),d=e(227),_=e(352),x=c.__importStar(e(18));class y extends r.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{x0:i,x1:t,y0:s,y1:n,cx:o,cy:c,data_size:a}=this;for(let r=0;r({x0:[x.XCoordinateSpec,{field:"x0"}],y0:[x.YCoordinateSpec,{field:"y0"}],x1:[x.XCoordinateSpec,{field:"x1"}],y1:[x.YCoordinateSpec,{field:"y1"}],cx:[x.XCoordinateSpec,{field:"cx"}],cy:[x.YCoordinateSpec,{field:"cy"}]}))),o.mixins(a.LineVector)}, -function _(e,t,i,n,s){var h;n();const r=e(1),a=e(220),l=e(221),_=e(227),o=e(80),d=e(24),g=r.__importStar(e(18));class c extends a.XYGlyphView{_map_data(){if(this._define_or_inherit_attr("slength",(()=>"data"==this.model.properties.length.units?this.inherited_x&&this.inherited_length?l.inherit:this.sdist(this.renderer.xscale,this.x,this.length):this.inherited_length?l.inherit:(0,d.to_screen)(this.length))),!this.inherited_slength){const{width:e,height:t}=this.renderer.plot_view.frame.bbox,i=2*(e+t),{slength:n}=this,s=n.length;for(let e=0;e({length:[g.DistanceSpec,0],angle:[g.AngleSpec,0]})))}, -function _(t,e,i,s,r){var _;s();const n=t(1),h=t(357),a=t(227),d=t(24),o=t(13),l=t(130),c=t(64),x=t(114),y=t(185),f=n.__importStar(t(186)),g=t(187),{abs:w,sqrt:u}=Math;class p extends h.CenterRotatableView{async load_glglyph(){const{RectGL:e}=await Promise.resolve().then((()=>n.__importStar(t(569))));return e}_set_data(t){super._set_data(t),this.border_radius=f.border_radius(this.model.border_radius)}_map_data(){const t=this.data_size;if(this.inherited_x&&this.inherited_width)this._inherit_attr("swidth"),this._inherit_attr("sx0");else{let e,i;if("data"==this.model.properties.width.units)[e,i]=this._map_dist_corner_for_data_side_length(this.x,this.width,this.renderer.xscale);else{e=(0,d.to_screen)(this.width),i=new d.ScreenArray(t);const{sx:s}=this;for(let r=0;r({border_radius:[y.BorderRadius,0],dilate:[t,!1]})))}, -function _(e,t,r,a,n){var s;a();const i=e(1),o=e(378),_=e(379),c=i.__importStar(e(18));class l extends o.MarkerView{async load_glglyph(){const{MultiMarkerGL:t}=await Promise.resolve().then((()=>i.__importStar(e(568))));return t}_paint(e,t,r){const{sx:a,sy:n,size:s,angle:i,marker:o}={...this,...r};for(const r of t){const t=a[r],c=n[r],l=s.get(r),g=i.get(r),m=o.get(r);if(!isFinite(t+c+l+g)||null==m)continue;const u=l/2;e.beginPath(),e.translate(t,c),0!=g&&e.rotate(g),_.marker_funcs[m](e,r,u,this.visuals),0!=g&&e.rotate(-g),e.translate(-t,-c)}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:n},s){const i=s+1,o=this.marker.get(s),_={...this._get_legend_args({x0:t,x1:r,y0:a,y1:n},s),marker:new c.UniformScalar(o,i)};this._paint(e,[s],_)}}r.ScatterView=l,l.__name__="ScatterView";class g extends o.Marker{constructor(e){super(e)}}r.Scatter=g,s=g,g.__name__="Scatter",s.prototype.default_view=l,s.define((()=>({marker:[c.MarkerSpec,{value:"circle"}]})))}, -function _(e,t,s,i,n){var r;i();const a=e(1),c=e(220),o=e(80),_=a.__importStar(e(228)),h=a.__importStar(e(18)),x=e(13),d=e(130);class l extends c.XYGlyphView{_paint(e,t,s){const{sx:i,sy:n,size:r,angle:a}={...this,...s};for(const s of t){const t=i[s],c=n[s],o=r.get(s),_=a.get(s);if(!isFinite(t+c+o+_))continue;const h=o/2;e.beginPath(),e.translate(t,c),0!=_&&e.rotate(_),this._render_one(e,s,h,this.visuals),0!=_&&e.rotate(-_),e.translate(-t,-c)}}_mask_data(){const{x_target:e,y_target:t}=this.renderer.plot_view.frame,s=e.widen(this.max_size).map((e=>this.renderer.xscale.invert(e))),i=t.widen(this.max_size).map((e=>this.renderer.yscale.invert(e)));return this.index.indices({x0:s.start,x1:s.end,y0:i.start,y1:i.end})}_hit_point(e){const{sx:t,sy:s}=e,{max_size:i}=this,{hit_dilation:n}=this.model,r=t-i*n,a=t+i*n,[c,o]=this.renderer.xscale.r_invert(r,a),_=s-i*n,h=s+i*n,[x,l]=this.renderer.yscale.r_invert(_,h),y=this.index.indices({x0:c,x1:o,y0:x,y1:l}),m=[];for(const e of y){const i=this.size.get(e)/2*n;Math.abs(this.sx[e]-t)<=i&&Math.abs(this.sy[e]-s)<=i&&m.push(e)}return new d.Selection({indices:m})}_hit_span(e){const{sx:t,sy:s}=e,i=this.bounds(),n=this.max_size/2,[r,a,c,o]=(()=>{if("h"==e.direction){const{y0:e,y1:s}=i,r=t-n,a=t+n,[c,o]=this.renderer.xscale.r_invert(r,a);return[c,o,e,s]}{const{x0:e,x1:t}=i,r=s-n,a=s+n,[c,o]=this.renderer.yscale.r_invert(r,a);return[e,t,c,o]}})(),_=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new d.Selection({indices:_})}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:n}=e,[r,a]=this.renderer.xscale.r_invert(t,s),[c,o]=this.renderer.yscale.r_invert(i,n),_=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new d.Selection({indices:_})}_hit_poly(e){const{sx:t,sy:s}=e,i=(()=>{const e=this.renderer.xscale.v_invert(t),i=this.renderer.yscale.v_invert(s),[n,r,a,c]=(0,x.minmax2)(e,i);return this.index.indices({x0:n,x1:r,y0:a,y1:c})})(),n=[];for(const e of i)_.point_in_poly(this.sx[e],this.sy[e],t,s)&&n.push(e);return new d.Selection({indices:n})}_get_legend_args({x0:e,x1:t,y0:s,y1:i},n){const r=n+1,a=new Array(r),c=new Array(r);a[n]=(e+t)/2,c[n]=(s+i)/2;const o=.4*Math.min(Math.abs(t-e),Math.abs(i-s));return{sx:a,sy:c,size:new h.UniformScalar(o,r),angle:new h.UniformScalar(0,r)}}draw_legend_for_index(e,{x0:t,x1:s,y0:i,y1:n},r){const a=this._get_legend_args({x0:t,x1:s,y0:i,y1:n},r);this._paint(e,[r],a)}}s.MarkerView=l,l.__name__="MarkerView";class y extends c.XYGlyph{constructor(e){super(e)}}s.Marker=y,r=y,y.__name__="Marker",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({Float:e})=>({size:[h.ScreenSizeSpec,{value:4}],angle:[h.AngleSpec,0],hit_dilation:[e,1]})))}, +function _(e,s,t,n,r){var a;n();const o=e(14),c=e(335),i=e(24),u=e(10),l=e(9),h=e(40),g=e(8);class p extends c.Expression{constructor(e){super(e)}connect_signals(){super.connect_signals();for(const e of(0,l.values)(this.args))e instanceof o.HasProps&&e.change.connect((()=>{this._result.clear(),this.change.emit()}))}get names(){return(0,l.keys)(this.args)}get values(){return(0,l.values)(this.args)}get func(){const e=(0,h.use_strict)(this.code);return new i.GeneratorFunction(...this.names,e)}_v_compute(e){const s=this.func.apply(e,this.values);let t=s.next();if(t.done&&void 0!==t.value){const{value:s}=t;return(0,g.isArray)(s)||(0,g.isTypedArray)(s)?s:(0,g.isIterable)(s)?[...s]:(0,u.repeat)(s,e.length)}{const e=[];do{e.push(t.value),t=s.next()}while(!t.done);return e}}}t.CustomJSExpr=p,a=p,p.__name__="CustomJSExpr",a.define((({Unknown:e,Str:s,Dict:t})=>({args:[t(e),{}],code:[s,""]})))}, +function _(t,n,e,s,o){var c;s();const r=t(335),a=t(9);class i extends r.Expression{constructor(t){super(t)}_v_compute(t){const n=t.get_length()??0,e=new Float64Array(n);for(const s of this.fields){const o=(0,a.dict)(t.data).get(s);if(null!=o){const t=Math.min(n,o.length);for(let n=0;n({fields:[n(t),[]]})))}, +function _(e,t,n,o,r){var i;o();const s=e(335),u=e(9);class c extends s.Expression{constructor(e){super(e)}_v_compute(e){const t=new Float64Array(e.get_length()??0),n=(0,u.dict)(e.data).get(this.field)??[],o=this.include_zero?1:0;t[0]=this.include_zero?0:n[0];for(let e=1;e({field:[t],include_zero:[e,!1]})))}, +function _(i,t,n,e,a){var s;e();const c=i(335),r=i(9),m=i(10);class o extends c.ScalarExpression{constructor(i){super(i)}_compute(i){const t=(0,r.dict)(i.data).get(this.field)??[];return Math.min(this.initial,(0,m.min)(t))}}n.Minimum=o,s=o,o.__name__="Minimum",s.define((({Float:i,Str:t})=>({field:[t],initial:[i,1/0]})))}, +function _(t,i,a,e,n){var s;e();const c=t(335),r=t(9),m=t(10);class o extends c.ScalarExpression{constructor(t){super(t)}_compute(t){const i=(0,r.dict)(t.data).get(this.field)??[];return Math.max(this.initial,(0,m.max)(i))}}a.Maximum=o,s=o,o.__name__="Maximum",s.define((({Float:t,Str:i})=>({field:[i],initial:[t,-1/0]})))}, +function _(n,e,t,o,r){var s;o();const _=n(335);class m extends _.Expression{constructor(n){super(n)}get x(){return new c({transform:this})}get y(){return new u({transform:this})}}t.CoordinateTransform=m,m.__name__="CoordinateTransform";class a extends _.Expression{constructor(n){super(n)}}t.XYComponent=a,s=a,a.__name__="XYComponent",s.define((({Ref:n})=>({transform:[n(m)]})));class c extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).x}}t.XComponent=c,c.__name__="XComponent";class u extends a{constructor(n){super(n)}_v_compute(n){return this.transform.v_compute(n).y}}t.YComponent=u,u.__name__="YComponent"}, +function _(r,t,e,n,o){var i;n();const a=r(1),s=r(341),c=r(20),l=a.__importStar(r(18));class d extends s.CoordinateTransform{constructor(r){super(r)}_v_compute(r){const t=this.properties.radius.uniform(r),e=this.properties.angle.uniform(r),n="anticlock"==this.direction?-1:1,o=Math.min(t.length,e.length),i=new Float64Array(o),a=new Float64Array(o);for(let r=0;r({radius:[l.DistanceSpec,{field:"radius"}],angle:[l.AngleSpec,{field:"angle"}],direction:[c.Direction,"anticlock"]})))}, +function _(e,i,r,t,l){t(),l("BooleanFilter",e(344).BooleanFilter),l("CustomJSFilter",e(345).CustomJSFilter),l("Filter",e(238).Filter),l("GroupFilter",e(346).GroupFilter),l("IndexFilter",e(347).IndexFilter),l("AllIndices",e(239).AllIndices),l("InversionFilter",e(348).InversionFilter),l("IntersectionFilter",e(240).IntersectionFilter),l("UnionFilter",e(349).UnionFilter),l("DifferenceFilter",e(350).DifferenceFilter),l("SymmetricDifferenceFilter",e(351).SymmetricDifferenceFilter)}, +function _(e,l,n,o,t){var s;o();const a=e(238),r=e(24);class c extends a.Filter{constructor(e){super(e)}compute_indices(e){const l=e.get_length()??1,{booleans:n}=this;return null==n?r.Indices.all_set(l):r.Indices.from_booleans(l,n)}}n.BooleanFilter=c,s=c,c.__name__="BooleanFilter",s.define((({Bool:e,Iterable:l,Nullable:n})=>({booleans:[n(l(e)),null]})))}, +function _(e,r,s,t,n){var i;t();const o=e(238),c=e(24),u=e(9),a=e(8),l=e(40);class f extends o.Filter{constructor(e){super(e)}get names(){return(0,u.keys)(this.args)}get values(){return(0,u.values)(this.args)}get func(){const e=(0,l.use_strict)(this.code);return new Function(...this.names,"source",e)}compute_indices(e){const r=e.get_length()??1,s=this.func(...this.values,e);if(null==s)return c.Indices.all_set(r);if((0,a.isArrayOf)(s,a.isInteger))return c.Indices.from_indices(r,s);if((0,a.isArrayOf)(s,a.isBoolean))return c.Indices.from_booleans(r,s);throw new Error(`expect an array of integers or booleans, or null, got ${s}`)}}s.CustomJSFilter=f,i=f,f.__name__="CustomJSFilter",i.define((({Unknown:e,Str:r,Dict:s})=>({args:[s(e),{}],code:[r,""]})))}, +function _(n,e,t,o,r){var s;o();const u=n(238),c=n(24),i=n(19),l=n(26);class a extends u.Filter{constructor(n){super(n)}compute_indices(n){const e=n.get_column(this.column_name),t=n.get_length()??1;if(null==e)return i.logger.warn(`${this}: groupby column '${this.column_name}' not found in the data source`),c.Indices.all_set(t);{const n=new c.Indices(t,0),o=new l.Comparator;for(let t=0;t({column_name:[n],group:[e]})))}, +function _(e,n,t,i,l){var s;i();const c=e(238),r=e(24);class d extends c.Filter{constructor(e){super(e)}compute_indices(e){const n=e.get_length()??1,{indices:t}=this;return null==t?r.Indices.all_set(n):r.Indices.from_indices(n,t)}}t.IndexFilter=d,s=d,d.__name__="IndexFilter",s.define((({Int:e,Iterable:n,Nullable:t})=>({indices:[t(n(e)),null]})))}, +function _(e,n,t,s,o){var i;s();const r=e(238);class c extends r.Filter{constructor(e){super(e)}connect_signals(){super.connect_signals();const e=()=>{this.change.emit()},n=n=>{for(const t of n)this.connect(t.change,e)},t=n=>{for(const t of n)this.disconnect(t.change,e)};let s=(()=>{const{operand:e}=this.properties;return e.is_unset?[]:[e.get_value()]})();n(s),this.on_change(this.properties.operand,(()=>{t(s),s=[this.operand],n(s)}))}compute_indices(e){const n=this.operand.compute_indices(e);return n.invert(),n}}t.InversionFilter=c,i=c,c.__name__="InversionFilter",i.define((({Ref:e})=>({operand:[e(r.Filter)]})))}, +function _(n,e,o,t,i){t();const s=n(241);class _ extends s.CompositeFilter{constructor(n){super(n)}_inplace_op(n,e){n.add(e)}}o.UnionFilter=_,_.__name__="UnionFilter"}, +function _(e,t,c,n,r){n();const i=e(241);class s extends i.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.subtract(t)}}c.DifferenceFilter=s,s.__name__="DifferenceFilter"}, +function _(e,t,c,r,i){r();const n=e(241);class s extends n.CompositeFilter{constructor(e){super(e)}_inplace_op(e,t){e.symmetric_subtract(t)}}c.SymmetricDifferenceFilter=s,s.__name__="SymmetricDifferenceFilter"}, +function _(e,a,t,l,r){l(),r("AnnularWedge",e(353).AnnularWedge),r("Annulus",e(354).Annulus),r("Arc",e(355).Arc),r("Bezier",e(356).Bezier),r("Block",e(358).Block),r("Circle",e(360).Circle),r("Ellipse",e(362).Ellipse),r("Glyph",e(222).Glyph),r("HArea",e(234).HArea),r("HAreaStep",e(231).HAreaStep),r("HBar",e(364).HBar),r("HexTile",e(365).HexTile),r("HSpan",e(366).HSpan),r("HStrip",e(367).HStrip),r("Image",e(368).Image),r("ImageRGBA",e(370).ImageRGBA),r("ImageStack",e(371).ImageStack),r("ImageURL",e(372).ImageURL),r("Line",e(220).Line),r("MathMLGlyph",e(373).MathMLGlyph),r("MultiLine",e(376).MultiLine),r("MultiPolygons",e(377).MultiPolygons),r("Ngon",e(378).Ngon),r("Patch",e(230).Patch),r("Patches",e(379).Patches),r("Quad",e(380).Quad),r("Quadratic",e(381).Quadratic),r("Ray",e(382).Ray),r("Rect",e(383).Rect),r("Scatter",e(384).Scatter),r("Segment",e(387).Segment),r("Spline",e(388).Spline),r("Step",e(390).Step),r("TeXGlyph",e(391).TeXGlyph),r("Text",e(375).Text),r("VArea",e(236).VArea),r("VAreaStep",e(235).VAreaStep),r("VBar",e(392).VBar),r("VSpan",e(393).VSpan),r("VStrip",e(394).VStrip),r("Wedge",e(395).Wedge)}, +function _(e,t,i,s,r){var n;s();const a=e(1),_=e(221),h=e(222),d=e(228),o=e(80),u=e(24),l=e(20),c=a.__importStar(e(18)),g=e(11),p=e(130),x=e(13);class m extends _.XYGlyphView{async load_glglyph(){const{AnnularWedgeGL:t}=await Promise.resolve().then((()=>a.__importStar(e(560))));return t}_map_data(){this._define_or_inherit_attr("sinner_radius",(()=>"data"==this.model.properties.inner_radius.units?this.inherited_x&&this.inherited_inner_radius?h.inherit:this.sdist(this.renderer.xscale,this.x,this.inner_radius):this.inherited_inner_radius?h.inherit:(0,u.to_screen)(this.inner_radius))),this._define_or_inherit_attr("souter_radius",(()=>"data"==this.model.properties.outer_radius.units?this.inherited_x&&this.inherited_outer_radius?h.inherit:this.sdist(this.renderer.xscale,this.x,this.outer_radius):this.inherited_outer_radius?h.inherit:(0,u.to_screen)(this.outer_radius))),this._define_or_inherit_attr("max_souter_radius",(()=>(0,x.max)(this.souter_radius)))}_paint(e,t,i){const{sx:s,sy:r,start_angle:n,end_angle:a,sinner_radius:_,souter_radius:h}={...this,...i},d="anticlock"==this.model.direction;for(const i of t){const t=s[i],o=r[i],u=_[i],l=h[i],c=n.get(i),g=a.get(i);if(!isFinite(t+o+u+l+c+g))continue;const p=g-c;e.translate(t,o),e.rotate(c),e.beginPath(),e.moveTo(l,0),e.arc(0,0,l,0,p,d),e.rotate(p),e.lineTo(u,0),e.arc(0,0,u,0,-p,!d),e.closePath(),e.rotate(-p-c),e.translate(-t,-o),this.visuals.fill.apply(e,i),this.visuals.hatch.apply(e,i),this.visuals.line.apply(e,i)}}_hit_point(e){const{sx:t,sy:i}=e,s=this.renderer.xscale.invert(t),r=this.renderer.yscale.invert(i),n=t-this.max_souter_radius,a=t+this.max_souter_radius,[_,h]=this.renderer.xscale.r_invert(n,a),d=i-this.max_souter_radius,o=i+this.max_souter_radius,[u,l]=this.renderer.yscale.r_invert(d,o),c=[];for(const e of this.index.indices({x0:_,x1:h,y0:u,y1:l})){const t=this.souter_radius[e]**2,i=this.sinner_radius[e]**2,[n,a]=this.renderer.xscale.r_compute(s,this.x[e]),[_,h]=this.renderer.yscale.r_compute(r,this.y[e]),d=(n-a)**2+(_-h)**2;d<=t&&d>=i&&c.push(e)}const x="anticlock"==this.model.direction,m=[];for(const e of c){const s=Math.atan2(i-this.sy[e],t-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,g.angle_between)(-s,-this.start_angle.get(e),-this.end_angle.get(e),x))&&m.push(e)}return new p.Selection({indices:m})}draw_legend_for_index(e,t,i){(0,d.generic_area_vector_legend)(this.visuals,e,t,i)}scenterxy(e){const t=(this.sinner_radius[e]+this.souter_radius[e])/2,i=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+t*Math.cos(i),this.sy[e]+t*Math.sin(i)]}}i.AnnularWedgeView=m,m.__name__="AnnularWedgeView";class f extends _.XYGlyph{constructor(e){super(e)}}i.AnnularWedge=f,n=f,f.__name__="AnnularWedge",n.prototype.default_view=m,n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((({})=>({direction:[l.Direction,"anticlock"],inner_radius:[c.DistanceSpec,{field:"inner_radius"}],outer_radius:[c.DistanceSpec,{field:"outer_radius"}],start_angle:[c.AngleSpec,{field:"start_angle"}],end_angle:[c.AngleSpec,{field:"end_angle"}]})))}, +function _(i,s,e,t,r){var n;t();const a=i(1),_=i(221),u=i(222),h=i(24),d=i(80),o=a.__importStar(i(18)),c=i(130);class l extends _.XYGlyphView{async load_glglyph(){const{AnnulusGL:s}=await Promise.resolve().then((()=>a.__importStar(i(567))));return s}_map_data(){this._define_or_inherit_attr("sinner_radius",(()=>"data"==this.model.properties.inner_radius.units?this.inherited_x&&this.inherited_inner_radius?u.inherit:this.sdist(this.renderer.xscale,this.x,this.inner_radius):this.inherited_inner_radius?u.inherit:(0,h.to_screen)(this.inner_radius))),this._define_or_inherit_attr("souter_radius",(()=>"data"==this.model.properties.outer_radius.units?this.inherited_x&&this.inherited_outer_radius?u.inherit:this.sdist(this.renderer.xscale,this.x,this.outer_radius):this.inherited_outer_radius?u.inherit:(0,h.to_screen)(this.outer_radius)))}_paint(i,s,e){const{sx:t,sy:r,sinner_radius:n,souter_radius:a}={...this,...e};for(const e of s){const s=t[e],_=r[e],u=n[e],h=a[e];isFinite(s+_+u+h)&&(i.beginPath(),i.arc(s,_,u,0,2*Math.PI,!0),i.moveTo(s+h,_),i.arc(s,_,h,2*Math.PI,0,!1),this.visuals.fill.apply(i,e),this.visuals.hatch.apply(i,e),this.visuals.line.apply(i,e))}}_hit_point(i){const{sx:s,sy:e}=i,t=this.renderer.xscale.invert(s),r=this.renderer.yscale.invert(e);let n,a,_,u;if("data"==this.model.properties.outer_radius.units)n=t-this.max_outer_radius,_=t+this.max_outer_radius,a=r-this.max_outer_radius,u=r+this.max_outer_radius;else{const i=s-this.max_outer_radius,t=s+this.max_outer_radius;[n,_]=this.renderer.xscale.r_invert(i,t);const r=e-this.max_outer_radius,h=e+this.max_outer_radius;[a,u]=this.renderer.yscale.r_invert(r,h)}const h=[];for(const i of this.index.indices({x0:n,x1:_,y0:a,y1:u})){const s=this.souter_radius[i]**2,e=this.sinner_radius[i]**2,[n,a]=this.renderer.xscale.r_compute(t,this.x[i]),[_,u]=this.renderer.yscale.r_compute(r,this.y[i]),d=(n-a)**2+(_-u)**2;d<=s&&d>=e&&h.push(i)}return new c.Selection({indices:h})}draw_legend_for_index(i,{x0:s,y0:e,x1:t,y1:r},n){const a=n+1,_=new Array(a);_[n]=(s+t)/2;const u=new Array(a);u[n]=(e+r)/2;const h=.5*Math.min(Math.abs(t-s),Math.abs(r-e)),d=new Array(a);d[n]=.4*h;const o=new Array(a);o[n]=.8*h,this._paint(i,[n],{sx:_,sy:u,sinner_radius:d,souter_radius:o})}}e.AnnulusView=l,l.__name__="AnnulusView";class x extends _.XYGlyph{constructor(i){super(i)}}e.Annulus=x,n=x,x.__name__="Annulus",n.prototype.default_view=l,n.mixins([d.LineVector,d.FillVector,d.HatchVector]),n.define((({})=>({inner_radius:[o.DistanceSpec,{field:"inner_radius"}],outer_radius:[o.DistanceSpec,{field:"outer_radius"}]})))}, +function _(e,i,t,s,n){var r;s();const a=e(1),o=e(221),d=e(222),c=e(228),_=e(80),l=e(24),h=e(20),u=a.__importStar(e(18));class p extends o.XYGlyphView{_map_data(){this._define_or_inherit_attr("sradius",(()=>"data"==this.model.properties.radius.units?this.inherited_x&&this.inherited_radius?d.inherit:this.sdist(this.renderer.xscale,this.x,this.radius):this.inherited_radius?d.inherit:(0,l.to_screen)(this.radius)))}_paint(e,i,t){if(!this.visuals.line.doit)return;const{sx:s,sy:n,sradius:r,start_angle:a,end_angle:o}={...this,...t},d="anticlock"==this.model.direction;for(const t of i){const i=s[t],c=n[t],_=r[t],l=a.get(t),h=o.get(t);isFinite(i+c+_+l+h)&&(this._render_decorations(e,t,i,c,_,l,h,d),e.beginPath(),e.arc(i,c,_,l,h,d),this.visuals.line.apply(e,t))}}_render_decorations(e,i,t,s,n,r,a,o){const{sin:d,cos:c,PI:_}=Math;for(const o of this.decorations.values()){if(e.save(),"start"==o.model.node){const i=n*c(r)+t,a=n*d(r)+s;e.translate(i,a),e.rotate(r+_)}else if("end"==o.model.node){const i=n*Math.cos(a)+t,r=n*Math.sin(a)+s;e.translate(i,r),e.rotate(a)}o.marking.paint(e,i),e.restore()}}draw_legend_for_index(e,i,t){(0,c.generic_line_vector_legend)(this.visuals,e,i,t)}}t.ArcView=p,p.__name__="ArcView";class f extends o.XYGlyph{constructor(e){super(e)}}t.Arc=f,r=f,f.__name__="Arc",r.prototype.default_view=p,r.mixins(_.LineVector),r.define((({})=>({direction:[h.Direction,"anticlock"],radius:[u.DistanceSpec,{field:"radius"}],start_angle:[u.AngleSpec,{field:"start_angle"}],end_angle:[u.AngleSpec,{field:"end_angle"}]})))}, +function _(e,i,t,s,c){var o;s();const n=e(1),r=e(80),d=e(222),x=e(228),y=e(357),a=n.__importStar(e(18));class _ extends d.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{data_size:i,x0:t,y0:s,x1:c,y1:o,cx0:n,cy0:r,cx1:d,cy1:x}=this;for(let a=0;a({x0:[a.XCoordinateSpec,{field:"x0"}],y0:[a.YCoordinateSpec,{field:"y0"}],x1:[a.XCoordinateSpec,{field:"x1"}],y1:[a.YCoordinateSpec,{field:"y1"}],cx0:[a.XCoordinateSpec,{field:"cx0"}],cy0:[a.YCoordinateSpec,{field:"cy0"}],cx1:[a.XCoordinateSpec,{field:"cx1"}],cy1:[a.YCoordinateSpec,{field:"cy1"}]}))),o.mixins(r.LineVector)}, +function _(n,t,o,c,s){c(),o.qbb=function(n,t,o,c,s,r){function u(n,t,o){if(t==(n+o)/2)return[n,o];{const c=(n-t)/(n-2*t+o),s=n*(1-c)**2+2*t*(1-c)*c+o*c**2;return[i(n,o,s),f(n,o,s)]}}const[e,a]=u(n,o,s),[x,y]=u(t,c,r);return{x0:e,x1:a,y0:x,y1:y}},o.cbb=function(n,t,o,c,s,i,f,a){const x=f,y=a;f=o,a=c;const b=s,h=i,l=[];for(let o=0;o<=2;o++){let c,s,r;if(0==o?(s=6*n-12*f+6*b,c=-3*n+9*f-9*b+3*x,r=3*f-3*n):(s=6*t-12*a+6*h,c=-3*t+9*a-9*h+3*y,r=3*a-3*t),u(c)<1e-12){if(u(s)<1e-12)continue;const n=-r/s;00;){const o=l[p],c=1-o,s=c**3*n+3*c**2*o*f+3*c*o**2*b+o**3*x,r=c**3*t+3*c**2*o*a+3*c*o**2*h+o**3*y;q[p]=s,A[p]=r}q[m]=n,A[m]=t,q[m+1]=x,A[m+1]=y;const[g,M,_,d]=(0,r.minmax2)(q,A);return{x0:g,x1:M,y0:_,y1:d}};const r=n(13),{abs:u,sqrt:e,min:i,max:f}=Math}, +function _(t,e,i,s,r){var h;s();const n=t(1),_=t(359),a=t(11),o=t(24),c=n.__importStar(t(18));class d extends _.LRTBView{scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){const e=this.x[t],i=this.y[t],s=this.width.get(t),r=this.height.get(t),[h,n]=(0,a.minmax)(e,e+s),[_,o]=(0,a.minmax)(i,i+r);return{l:h,r:n,t:o,b:_}}_map_data(){const{sx:t,sy:e}=this,i=t.length;if(this.inherited_x&&this.inherited_width)this._inherit_attr("sleft"),this._inherit_attr("sright");else{const e=this.sdist(this.renderer.xscale,this.x,this.width,"edge"),s=new o.ScreenArray(i),r=new o.ScreenArray(i);for(let h=0;h({x:[c.XCoordinateSpec,{field:"x"}],y:[c.YCoordinateSpec,{field:"y"}],width:[c.DistanceSpec,{value:1}],height:[c.DistanceSpec,{value:1}]})))}, +function _(t,e,r,s,i){var n;s();const a=t(1),o=t(80),_=t(222),c=t(228),h=t(130),d=t(64),l=t(13),p=t(185),x=a.__importStar(t(186)),m=t(187);class u extends _.GlyphView{async load_glglyph(){const{LRTBGL:e}=await Promise.resolve().then((()=>a.__importStar(t(575))));return e}get_anchor_point(t,e,r){const s=Math.min(this.sleft[e],this.sright[e]),i=Math.max(this.sright[e],this.sleft[e]),n=Math.min(this.stop[e],this.sbottom[e]),a=Math.max(this.sbottom[e],this.stop[e]);switch(t){case"top_left":return{x:s,y:n};case"top":case"top_center":return{x:(s+i)/2,y:n};case"top_right":return{x:i,y:n};case"bottom_left":return{x:s,y:a};case"bottom":case"bottom_center":return{x:(s+i)/2,y:a};case"bottom_right":return{x:i,y:a};case"left":case"center_left":return{x:s,y:(n+a)/2};case"center":case"center_center":return{x:(s+i)/2,y:(n+a)/2};case"right":case"center_right":return{x:i,y:(n+a)/2}}}_set_data(t){super._set_data(t),this.border_radius=x.border_radius(this.model.border_radius)}_index_data(t){const{min:e,max:r}=Math,{data_size:s}=this;for(let i=0;ie(t,r.start))),this.inherited_sright||(0,l.inplace_map)(this.sright,(e=>t(e,r.end))),this.inherited_stop||(0,l.inplace_map)(this.stop,(t=>e(t,s.start))),this.inherited_sbottom||(0,l.inplace_map)(this.sbottom,(e=>t(e,s.end)))}_hit_rect(t){return this._hit_rect_against_index(t)}_hit_point(t){const{sx:e,sy:r}=t,s=this.renderer.xscale.invert(e),i=this.renderer.yscale.invert(r),n=[...this.index.indices({x0:s,y0:i,x1:s,y1:i})];return new h.Selection({indices:n})}_hit_span(t){const{sx:e,sy:r}=t;let s;if("v"==t.direction){const t=this.renderer.yscale.invert(r),e=this.renderer.plot_view.frame.bbox.h_range,[i,n]=this.renderer.xscale.r_invert(e.start,e.end);s=[...this.index.indices({x0:i,y0:t,x1:n,y1:t})]}else{const t=this.renderer.xscale.invert(e),r=this.renderer.plot_view.frame.bbox.v_range,[i,n]=this.renderer.yscale.r_invert(r.start,r.end);s=[...this.index.indices({x0:t,y0:i,x1:t,y1:n})]}return new h.Selection({indices:s})}draw_legend_for_index(t,e,r){(0,c.generic_area_vector_legend)(this.visuals,t,e,r)}}r.LRTBView=u,u.__name__="LRTBView";class y extends _.Glyph{constructor(t){super(t)}}r.LRTB=y,n=y,y.__name__="LRTB",n.mixins([o.LineVector,o.FillVector,o.HatchVector]),n.define((()=>({border_radius:[p.BorderRadius,0]})))}, +function _(s,e,i,t,r){var n;t();const c=s(1),o=s(361),a=c.__importStar(s(229)),h=s(13),l=s(130);class d extends o.RadialGlyphView{async load_glglyph(){const{CircleGL:e}=await Promise.resolve().then((()=>c.__importStar(s(569))));return e}_paint(s,e,i){const{sx:t,sy:r,sradius:n}={...this,...i};for(const i of e){const e=t[i],c=r[i],o=n[i];isFinite(e+c+o)&&(s.beginPath(),s.arc(e,c,o,0,2*Math.PI,!1),this.visuals.fill.apply(s,i),this.visuals.hatch.apply(s,i),this.visuals.line.apply(s,i))}}_hit_point(s){const{sx:e,sy:i}=s,t=this.renderer.xscale.invert(e),r=this.renderer.yscale.invert(i),{hit_dilation:n}=this.model,[c,o,a,h]=(()=>{if("data"==this.model.properties.radius.units){const s=this.max_radius*n;return[t-s,t+s,r-s,r+s]}{const s=this.max_radius*n,t=e-s,r=e+s,c=i-s,o=i+s,[a,h]=this.renderer.xscale.r_invert(t,r),[l,d]=this.renderer.yscale.r_invert(c,o);return[a,h,l,d]}})(),d=this.index.indices({x0:c,x1:o,y0:a,y1:h}),_=[];if("data"==this.model.properties.radius.units)for(const s of d){const e=(this.sradius[s]*n)**2,[i,c]=this.renderer.xscale.r_compute(t,this.x[s]),[o,a]=this.renderer.yscale.r_compute(r,this.y[s]);(i-c)**2+(o-a)**2<=e&&_.push(s)}else for(const s of d){const t=(this.sradius[s]*n)**2;(this.sx[s]-e)**2+(this.sy[s]-i)**2<=t&&_.push(s)}return new l.Selection({indices:_})}_hit_span(s){const{sx:e,sy:i}=s,t=this.bounds(),[r,n,c,o]=(()=>{const r=this.max_radius;if("h"==s.direction){const s=e-r,i=e+r,[n,c]=this.renderer.xscale.r_invert(s,i),{y0:o,y1:a}=t;return[n,c,o,a]}{const s=i-r,e=i+r,{x0:n,x1:c}=t,[o,a]=this.renderer.yscale.r_invert(s,e);return[n,c,o,a]}})(),a=[...this.index.indices({x0:r,x1:n,y0:c,y1:o})];return new l.Selection({indices:a})}_hit_rect(s){const{sx0:e,sx1:i,sy0:t,sy1:r}=s,[n,c]=this.renderer.xscale.r_invert(e,i),[o,a]=this.renderer.yscale.r_invert(t,r),h=this.index.indices({x0:n,x1:c,y0:o,y1:a}),d=[];for(const s of h){const n=this.sx[s],c=this.sy[s];e<=n&&n<=i&&t<=c&&c<=r&&d.push(s)}return new l.Selection({indices:d})}_hit_poly(s){const{sx:e,sy:i}=s,t=(()=>{const[s,t,r,n]=(0,h.minmax2)(e,i),[c,o]=this.renderer.xscale.r_invert(s,t),[a,l]=this.renderer.yscale.r_invert(r,n);return this.index.indices({x0:c,x1:o,y0:a,y1:l})})(),r=[];for(const s of t)a.point_in_poly(this.sx[s],this.sy[s],e,i)&&r.push(s);return new l.Selection({indices:r})}}i.CircleView=d,d.__name__="CircleView";class _ extends o.RadialGlyph{constructor(s){super(s)}}i.Circle=_,n=_,_.__name__="Circle",n.prototype.default_view=d,n.define((({Float:s})=>({hit_dilation:[s,1]})))}, +function _(i,e,t,s,r){var a;s();const n=i(1),d=i(221),h=i(222),_=i(80),c=i(24),u=i(20),l=n.__importStar(i(18)),o=i(10);class x extends d.XYGlyphView{_index_data(i){const{x:e,y:t,radius:s,data_size:r}=this;for(let a=0;a{if("data"!=this.model.properties.radius.units)return this.inherited_sradius?h.inherit:(0,c.to_screen)(this.radius);{const i=()=>this.sdist(this.renderer.xscale,this.x,this.radius),e=()=>this.sdist(this.renderer.yscale,this.y,this.radius),{radius_dimension:t}=this.model;switch(t){case"x":return this.inherited_x&&this.inherited_radius?h.inherit:i();case"y":return this.inherited_y&&this.inherited_radius?h.inherit:e();case"min":case"max":return this.inherited_x&&this.inherited_y&&this.inherited_radius?h.inherit:(0,o.elementwise)(i(),e(),Math[t])}}}))}_mask_data(){const{frame:i}=this.renderer.plot_view,e=i.x_target,t=i.y_target;let s,r;return"data"==this.model.properties.radius.units?(s=e.map((i=>this.renderer.xscale.invert(i))).widen(this.max_radius),r=t.map((i=>this.renderer.yscale.invert(i))).widen(this.max_radius)):(s=e.widen(this.max_radius).map((i=>this.renderer.xscale.invert(i))),r=t.widen(this.max_radius).map((i=>this.renderer.yscale.invert(i)))),this.index.indices({x0:s.start,x1:s.end,y0:r.start,y1:r.end})}draw_legend_for_index(i,{x0:e,y0:t,x1:s,y1:r},a){const n=a+1,d=new Array(n);d[a]=(e+s)/2;const h=new Array(n);h[a]=(t+r)/2;const _=new Array(n);_[a]=.2*Math.min(Math.abs(s-e),Math.abs(r-t)),this._paint(i,[a],{sx:d,sy:h,sradius:_})}}t.RadialGlyphView=x,x.__name__="RadialGlyphView";class m extends d.XYGlyph{constructor(i){super(i)}}t.RadialGlyph=m,a=m,m.__name__="RadialGlyph",a.mixins([_.LineVector,_.FillVector,_.HatchVector]),a.define((()=>({radius:[l.DistanceSpec,{field:"radius"}],radius_dimension:[u.RadiusDimension,"x"]})))}, +function _(t,i,e,s,h){var r;s();const n=t(1),a=t(363),_=t(222),d=n.__importStar(t(229)),l=t(24),o=t(130),c=n.__importStar(t(18));class p extends a.CenterRotatableView{_map_data(){this._define_or_inherit_attr("swidth",(()=>"data"==this.model.properties.width.units?this.inherited_x&&this.inherited_width?_.inherit:this.sdist(this.renderer.xscale,this.x,this.width,"center"):this.inherited_width?_.inherit:(0,l.to_screen)(this.width))),this._define_or_inherit_attr("sheight",(()=>"data"==this.model.properties.height.units?this.inherited_y&&this.inherited_height?_.inherit:this.sdist(this.renderer.yscale,this.y,this.height,"center"):this.inherited_height?_.inherit:(0,l.to_screen)(this.height)))}_paint(t,i,e){const{sx:s,sy:h,swidth:r,sheight:n,angle:a}={...this,...e};for(const e of i){const i=s[e],_=h[e],d=r[e],l=n[e],o=a.get(e);isFinite(i+_+d+l+o)&&(t.beginPath(),t.ellipse(i,_,d/2,l/2,o,0,2*Math.PI),this.visuals.fill.apply(t,e),this.visuals.hatch.apply(t,e),this.visuals.line.apply(t,e))}}_hit_point(t){let i,e,s,h,r,n,a,_,l;const{sx:c,sy:p}=t,w=this.renderer.xscale.invert(c),x=this.renderer.yscale.invert(p);"data"==this.model.properties.width.units?(i=w-this.max_width,e=w+this.max_width):(n=c-this.max_width,a=c+this.max_width,[i,e]=this.renderer.xscale.r_invert(n,a)),"data"==this.model.properties.height.units?(s=x-this.max_height,h=x+this.max_height):(_=p-this.max_height,l=p+this.max_height,[s,h]=this.renderer.yscale.r_invert(_,l));const g=this.index.indices({x0:i,x1:e,y0:s,y1:h}),y=[];for(const t of g)r=d.point_in_ellipse(c,p,this.angle.get(t),this.sheight[t]/2,this.swidth[t]/2,this.sx[t],this.sy[t]),r&&y.push(t);return new o.Selection({indices:y})}draw_legend_for_index(t,{x0:i,y0:e,x1:s,y1:h},r){const n=r+1,a=new Array(n);a[r]=(i+s)/2;const _=new Array(n);_[r]=(e+h)/2;const d=this.swidth[r]/this.sheight[r],l=.8*Math.min(Math.abs(s-i),Math.abs(h-e)),o=new Array(n),p=new Array(n);d>1?(o[r]=l,p[r]=l/d):(o[r]=l*d,p[r]=l);const w=new c.UniformScalar(0,n);this._paint(t,[r],{sx:a,sy:_,swidth:o,sheight:p,angle:w})}}e.EllipseView=p,p.__name__="EllipseView";class w extends a.CenterRotatable{constructor(t){super(t)}}e.Ellipse=w,r=w,w.__name__="Ellipse",r.prototype.default_view=p}, +function _(e,t,i,a,n){var r;a();const s=e(1),h=e(221),o=e(80),_=s.__importStar(e(18));class c extends h.XYGlyphView{get max_w2(){return"data"==this.model.properties.width.units?this.max_width/2:0}get max_h2(){return"data"==this.model.properties.height.units?this.max_height/2:0}_bounds({x0:e,x1:t,y0:i,y1:a}){const{max_w2:n,max_h2:r}=this;return{x0:e-n,x1:t+n,y0:i-r,y1:a+r}}}i.CenterRotatableView=c,c.__name__="CenterRotatableView";class l extends h.XYGlyph{constructor(e){super(e)}}i.CenterRotatable=l,r=l,l.__name__="CenterRotatable",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({})=>({angle:[_.AngleSpec,0],width:[_.DistanceSpec,{field:"width"}],height:[_.DistanceSpec,{field:"height"}]})))}, +function _(t,e,i,s,r){var h;s();const n=t(1),a=t(359),_=t(24),o=n.__importStar(t(18));class c extends a.LRTBView{scenterxy(t){return[(this.sleft[t]+this.sright[t])/2,this.sy[t]]}_lrtb(t){const e=this.left[t],i=this.right[t],s=this.y[t],r=this.height.get(t)/2;return{l:Math.min(e,i),r:Math.max(e,i),t:s+r,b:s-r}}_map_data(){if(this.inherited_y&&this.inherited_height)this._inherit_attr("sheight"),this._inherit_attr("stop"),this._inherit_attr("sbottom");else{const t=this.sdist(this.renderer.yscale,this.y,this.height,"center"),{sy:e}=this,i=this.sy.length,s=new _.ScreenArray(i),r=new _.ScreenArray(i);for(let h=0;h({left:[o.XCoordinateSpec,{value:0}],y:[o.YCoordinateSpec,{field:"y"}],height:[o.DistanceSpec,{value:1}],right:[o.XCoordinateSpec,{field:"right"}]})))}, +function _(e,t,s,i,r){var n;i();const a=e(1),o=e(222),c=a.__importStar(e(229)),l=a.__importStar(e(18)),_=e(80),h=e(20),d=e(228),p=e(130);class x extends o.GlyphView{async load_glglyph(){const{HexTileGL:t}=await Promise.resolve().then((()=>a.__importStar(e(571))));return t}scenterxy(e){return[this.sx[e],this.sy[e]]}_set_data(){const{orientation:e,size:t,aspect_scale:s}=this.model,{q:i,r}=this,n=this.q.length,a=new Float64Array(n),o=new Float64Array(n),c=Math.sqrt(3);if("pointytop"==e)for(let e=0;e{if("v"==e.direction){const{sy:t}=e,s=this.renderer.yscale.invert(t),i=this.renderer.plot_view.frame.bbox.h_range,[r,n]=this.renderer.xscale.r_invert(i.start,i.end);return{x0:r,y0:s,x1:n,y1:s}}{const{sx:t}=e,s=this.renderer.xscale.invert(t),i=this.renderer.plot_view.frame.bbox.v_range,[r,n]=this.renderer.yscale.r_invert(i.start,i.end);return{x0:s,y0:r,x1:s,y1:n}}})(),s=[...this.index.indices(t)];return new p.Selection({indices:s})}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:r}=e,[n,a]=this.renderer.xscale.r_invert(t,s),[o,c]=this.renderer.yscale.r_invert(i,r),l=[...this.index.indices({x0:n,x1:a,y0:o,y1:c})];return new p.Selection({indices:l})}draw_legend_for_index(e,t,s){(0,d.generic_area_vector_legend)(this.visuals,e,t,s)}}s.HexTileView=x,x.__name__="HexTileView";class y extends o.Glyph{constructor(e){super(e)}}s.HexTile=y,n=y,y.__name__="HexTile",n.prototype.default_view=x,n.mixins([_.LineVector,_.FillVector,_.HatchVector]),n.define((({Float:e})=>({r:[l.NumberSpec,{field:"r"}],q:[l.NumberSpec,{field:"q"}],scale:[l.NumberSpec,1],size:[e,1],aspect_scale:[e,1],orientation:[h.HexTileOrientation,"pointytop"]}))),n.override({line_color:null})}, +function _(t,e,i,n,s){var _;n();const r=t(1),a=t(222),o=t(228),d=t(130),c=t(80),h=r.__importStar(t(39)),p=t(13),l=t(10),y=r.__importStar(t(18)),{abs:f,max:u}=Math;class x extends a.GlyphView{after_visuals(){super.after_visuals(),this.max_line_width=h.max(this.line_width)}_index_data(t){for(const e of this.y)t.add_point(0,e)}_bounds(t){const{y0:e,y1:i}=t;return{x0:NaN,x1:NaN,y0:e,y1:i}}_map_data(){super._map_data();const{round:t}=Math;if(!this.inherited_sy){const e=(0,p.map)(this.sy,(e=>t(e)));this._define_attr("sy",e)}}scenterxy(t){const{hcenter:e}=this.renderer.plot_view.frame.bbox;return[e,this.sy[t]]}_paint(t,e,i){const{sy:n}={...this,...i},{left:s,right:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=n[i];isFinite(e)&&(t.beginPath(),t.moveTo(s,e),t.lineTo(_,e),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_line_width:i}=this,[n,s]=this.renderer.yscale.r_invert(t-i,(e??t)+i);return this.index.indices({x0:0,x1:0,y0:n,y1:s})}_find_spans(t,e){const{sy:i,line_width:n}=this,s=[];for(const _ of t){e(i[_],n.get(_))&&s.push(_)}return s}_hit_point(t){const{sy:e}=t,i=this._get_candidates(e),n=this._find_spans(i,((t,i)=>f(t-e)<=u(i/2,2)));return new d.Selection({indices:n})}_hit_span(t){const e=(()=>{if("v"==t.direction)return(0,l.range)(0,this.data_size);{const{sy:e}=t,i=this._get_candidates(e);return this._find_spans(i,((t,i)=>f(t-e)<=u(i/2,2)))}})();return new d.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sy0:e,sy1:i}=t,n=this._get_candidates(e,i);return this._find_spans(n,((t,n)=>e-n/2<=t&&t<=i+n/2))})();return new d.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_line_vector_legend)(this.visuals,t,e,i)}}i.HSpanView=x,x.__name__="HSpanView";class m extends a.Glyph{constructor(t){super(t)}}i.HSpan=m,_=m,m.__name__="HSpan",_.prototype.default_view=x,_.mixins([c.LineVector]),_.define((()=>({y:[y.YCoordinateSpec,{field:"y"}]})))}, +function _(t,e,i,s,r){var n;s();const a=t(1),_=t(222),o=t(228),h=t(130),c=t(80),d=t(24),l=t(13),p=a.__importStar(t(34)),y=t(10),f=a.__importStar(t(18));class u extends _.GlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(575))));this.glglyph=new i(e.regl_wrapper,this)}}get sleft(){const{left:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get sright(){const{right:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get stop(){return this.sy0}get sbottom(){return this.sy1}_set_data(t){super._set_data(t);const{abs:e}=Math,{max:i,map:s,zip:r}=p,{y0:n,y1:a}=this;if(this.inherited_y0&&this.inherited_y1)this._inherit_attr("max_height");else{const t=i(s(r(n,a),(([t,i])=>e(t-i))));this._define_attr("max_height",t)}}_index_data(t){const{y0:e,y1:i,data_size:s}=this;for(let r=0;rt(e)));this._define_attr("sy0",e)}if(!this.inherited_sy1){const e=(0,l.map)(this.sy1,(e=>t(e)));this._define_attr("sy1",e)}}scenterxy(t){const{hcenter:e}=this.renderer.plot_view.frame.bbox;return[e,(this.sy0[t]+this.sy1[t])/2]}_paint(t,e,i){const{sy0:s,sy1:r}={...this,...i},{left:n,right:a,width:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=s[i],o=r[i];isFinite(e+o)&&(t.beginPath(),t.rect(n,e,_,o-e),this.visuals.fill.apply(t,i),this.visuals.hatch.apply(t,i),t.beginPath(),t.moveTo(n,e),t.lineTo(a,e),t.moveTo(n,o),t.lineTo(a,o),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_height:i}=this,[s,r]=this.renderer.yscale.r_invert(t,e??t),n=s-i,a=r+i;return this.index.indices({x0:0,x1:0,y0:n,y1:a})}_find_strips(t,e){function i(t,i){return t<=i?e(t,i):e(i,t)}const{sy0:s,sy1:r}=this,n=[];for(const e of t){i(s[e],r[e])&&n.push(e)}return n}_hit_point(t){const{sy:e}=t,i=this._get_candidates(e),s=this._find_strips(i,((t,i)=>t<=e&&e<=i));return new h.Selection({indices:s})}_hit_span(t){const e=(()=>{if("v"==t.direction)return(0,y.range)(0,this.data_size);{const{sy:e}=t,i=this._get_candidates(e);return this._find_strips(i,((t,i)=>t<=e&&e<=i))}})();return new h.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sy0:e,sy1:i}=t,s=this._get_candidates(e,i);return this._find_strips(s,((t,s)=>e<=t&&t<=i&&e<=s&&s<=i))})();return new h.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_area_vector_legend)(this.visuals,t,e,i)}}i.HStripView=u,u.__name__="HStripView";class g extends _.Glyph{constructor(t){super(t)}}i.HStrip=g,n=g,g.__name__="HStrip",n.prototype.default_view=u,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((()=>({y0:[f.YCoordinateSpec,{field:"y0"}],y1:[f.YCoordinateSpec,{field:"y1"}]})))}, +function _(e,t,a,r,n){var i,_=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&_(t,e,a);return o(t,e),t};r();const l=e(369),c=e(216),u=e(276);class p extends l.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(572))));return t}connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}_update_image(){null!=this.glglyph&&this.glglyph.set_image_changed(),null!=this.image_data&&(this._set_data(null),this.renderer.request_paint())}get _can_inherit_image_data(){return super._can_inherit_image_data&&this._can_inherit_from(this.model.properties.color_mapper,this.base)}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}a.ImageView=p,p.__name__="ImageView";class d extends l.ImageBase{constructor(e){super(e)}}a.Image=d,i=d,d.__name__="Image",i.prototype.default_view=p,i.define((({Ref:e})=>({color_mapper:[e(c.ColorMapper),()=>new u.LinearColorMapper({palette:["#000000","#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0","#ffffff"]})]})))}, +function _(t,e,i,s,a){var r;s();const n=t(1),h=t(221),_=t(222),d=t(24),o=t(20),g=n.__importStar(t(18)),c=n.__importStar(t(80)),m=t(130),l=t(12),x=t(185),u=t(186);class f extends h.XYGlyphView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_paint()))}get image_dimension(){return 2}get xy_scale(){switch(this.model.origin){case"bottom_left":return{x:1,y:-1};case"top_left":return{x:1,y:1};case"bottom_right":return{x:-1,y:-1};case"top_right":return{x:-1,y:1}}}get xy_offset(){switch(this.model.origin){case"bottom_left":return{x:0,y:1};case"top_left":return{x:0,y:0};case"bottom_right":return{x:1,y:1};case"top_right":return{x:1,y:0}}}get xy_anchor(){return(0,u.anchor)(this.model.anchor)}get xy_sign(){const t=this.renderer.xscale.source_range,e=this.renderer.yscale.source_range;return{x:t.is_reversed?-1:1,y:e.is_reversed?-1:1}}_paint(t,e,i){const{image_data:s,sx:a,sy:r,sdw:n,sdh:h}={...this,...i},{xy_sign:_,xy_scale:d,xy_offset:o,xy_anchor:g}=this;if((0,l.assert)(null!=s),t.save(),t.imageSmoothingEnabled=!1,this.visuals.image.doit)for(const i of e){const e=s[i],c=a[i],m=r[i],l=n[i],x=h[i];if(null==e||!isFinite(c+m+l+x))continue;const u=_.x*g.x*l,f=_.y*g.y*x;t.save(),t.translate(c-u,m-f),t.scale(_.x*d.x,_.y*d.y),this.visuals.image.set_vectorize(t,i),t.drawImage(e,-o.x*l,-o.y*x,l,x),t.restore()}t.restore()}get _can_inherit_image_data(){return this.inherited_image}_set_data(t){const e=this.data_size;if(this._can_inherit_image_data)this._inherit_attr("image_data"),this._inherit_attr("image_width"),this._inherit_attr("image_height");else{void 0!==this.image_data&&this.image_data.length==e||(this._define_attr("image_data",new Array(e).fill(null)),this._define_attr("image_width",new Uint32Array(e)),this._define_attr("image_height",new Uint32Array(e)));const{image_dimension:i}=this;for(let s=0;s"data"==this.model.properties.dw.units?this.inherited_x&&this.inherited_dw?_.inherit:this.sdist(this.renderer.xscale,this.x,this.dw,"edge",this.model.dilate):this.inherited_dw?_.inherit:(0,d.to_screen)(this.dw))),this._define_or_inherit_attr("sdh",(()=>"data"==this.model.properties.dh.units?this.inherited_y&&this.inherited_dh?_.inherit:this.sdist(this.renderer.yscale,this.y,this.dh,"edge",this.model.dilate):this.inherited_dh?_.inherit:(0,d.to_screen)(this.dh)))}_image_index(t,e,i){const[s,a,r,n]=this._lrtb(t),h=this.image_width[t],_=(a-s)/h,d=(r-n)/this.image_height[t],o=Math.floor((e-s)/_),g=Math.floor((i-n)/d);return{index:t,i:o,j:g,flat_index:g*h+o}}_hit_point(t){const{sx:e,sy:i}=t,s=this.renderer.xscale.invert(e),a=this.renderer.yscale.invert(i),r=this.index.indices({x0:s,x1:s,y0:a,y1:a}),n=new m.Selection,h=[];for(const t of r)isFinite(e)&&isFinite(i)&&(h.push(t),n.image_indices.push(this._image_index(t,s,a)));return n.indices=h,n}}i.ImageBaseView=f,f.__name__="ImageBaseView";class y extends h.XYGlyph{constructor(t){super(t)}}i.ImageBase=y,r=y,y.__name__="ImageBase",r.mixins(c.ImageVector),r.define((({Bool:t})=>({image:[g.NDArraySpec,{field:"image"}],dw:[g.DistanceSpec,{field:"dw"}],dh:[g.DistanceSpec,{field:"dh"}],dilate:[t,!1],origin:[o.ImageOrigin,"bottom_left"],anchor:[x.Anchor,"bottom_left"]})))}, +function _(e,t,r,n,a){var i,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return u(t,e),t};n();const c=e(369),l=e(8);class _ extends c.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(572))));return t}_flat_img_to_buf8(e){const t=(0,l.isTypedArray)(e)?e:new Uint32Array(e);return new Uint8ClampedArray(t.buffer)}}r.ImageRGBAView=_,_.__name__="ImageRGBAView";class f extends c.ImageBase{constructor(e){super(e)}}r.ImageRGBA=f,i=f,f.__name__="ImageRGBA",i.prototype.default_view=_}, +function _(e,t,a,r,i){var n,_=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var i=Object.getOwnPropertyDescriptor(t,a);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,i)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&_(t,e,a);return o(t,e),t};r();const c=e(369),l=e(279);class u extends c.ImageBaseView{async load_glglyph(){const{ImageGL:t}=await Promise.resolve().then((()=>s(e(572))));return t}connect_signals(){super.connect_signals(),this.connect(this.model.color_mapper.change,(()=>this._update_image()))}get image_dimension(){return 3}_update_image(){null!=this.glglyph&&this.glglyph.set_image_changed(),null!=this.image_data&&(this._set_data(null),this.renderer.request_paint())}get _can_inherit_image_data(){return super._can_inherit_image_data&&this._can_inherit_from(this.model.properties.color_mapper,this.base)}_flat_img_to_buf8(e){return this.model.color_mapper.rgba_mapper.v_compute(e)}}a.ImageStackView=u,u.__name__="ImageStackView";class p extends c.ImageBase{constructor(e){super(e)}}a.ImageStack=p,n=p,p.__name__="ImageStack",n.prototype.default_view=u,n.define((({Ref:e})=>({color_mapper:[e(l.StackColorMapper)]})))}, +function _(e,t,i,s,r){var n;s();const a=e(1),h=e(221),l=e(222),o=e(24),d=e(20),_=a.__importStar(e(18)),c=e(10),u=e(13),m=e(179),g=a.__importStar(e(186));class p extends h.XYGlyphView{constructor(){super(...arguments),this._images_rendered=!1,this.image=new Array(0),this._set_data_iteration=0}connect_signals(){super.connect_signals(),this.connect(this.model.properties.global_alpha.change,(()=>this.renderer.request_paint()))}_index_data(e){const{data_size:t}=this;for(let i=0;i{this._set_data_iteration!=r||this.resolved.get(n)||(this.resolved.set(n),this.image[n]=e,this.loaders[n]=null,this.renderer.request_paint())},failed:()=>{if(this._set_data_iteration==r){this.resolved.set(n),this.loaders[n]=null;null!=this.image[n]&&(this.image[n]=null,this.renderer.request_paint())}},attempts:i+1,timeout:s});this.loaders[n]=a}const n="data"==this.model.properties.w.units,a="data"==this.model.properties.h.units,h=this.data_size,l=new o.ScreenArray(n?2*h:h),d=new o.ScreenArray(a?2*h:h);this.anchor=g.anchor(this.model.anchor);const{x:_,y:p}=this.anchor;function f(e,t){const i=e-_*t;return[i,i+t]}function w(e,t){const i=e+p*t;return[i,i-t]}if(n)for(let e=0;ethis.w.map((e=>e??NaN)),t=()=>this.h.map((e=>e??NaN));this._define_or_inherit_attr("sw",(()=>"data"==this.model.properties.w.units?this.inherited_x&&this.inherited_w?l.inherit:this.sdist(this.renderer.xscale,this.x,e(),"edge",this.model.dilate):this.inherited_w?l.inherit:(0,o.to_screen)(e()))),this._define_or_inherit_attr("sh",(()=>"data"==this.model.properties.h.units?this.inherited_y&&this.inherited_h?l.inherit:this.sdist(this.renderer.yscale,this.y,t(),"edge",this.model.dilate):this.inherited_h?l.inherit:(0,o.to_screen)(t())))}_paint(e,t,i){const{sx:s,sy:r,sw:n,sh:a,angle:h,global_alpha:l}={...this,...i},{image:o,loaders:d,resolved:_}=this,{frame:c}=this.renderer.plot_view,{left:u,top:m,width:g,height:p}=c.bbox;e.beginPath(),e.rect(u+1,m+1,g-2,p-2),e.clip();let f=!0;for(const i of t){const t=d[i];if(!isFinite(s[i]+r[i]+h.get(i)+l.get(i)))continue;_.get(i)||(null!=t&&t.image.complete?(o[i]=t.image,d[i]=null,_.set(i)):f=!1);const c=o[i];null!=c&&(0==c.naturalWidth&&0==c.naturalHeight||this._render_image(e,i,c,s,r,n,a,h,l))}f&&!this._images_rendered&&(this._images_rendered=!0,this.notify_finished())}_render_image(e,t,i,s,r,n,a,h,l){isFinite(n[t])||(n[t]=i.width),isFinite(a[t])||(a[t]=i.height);const o=n[t],d=a[t],{anchor:_}=this,c=_.x*o,u=_.y*d,m=s[t]-c,g=r[t]-u,p=h.get(t),f=l.get(t);e.save(),e.globalAlpha=f;const w=o/2,y=d/2;0!=p?(e.translate(m,g),e.translate(w,y),e.rotate(p),e.translate(-w,-y),e.drawImage(i,0,0,o,d),e.translate(w,y),e.rotate(-p),e.translate(-w,-y),e.translate(-m,-g)):e.drawImage(i,m,g,o,d),e.restore()}bounds(){return this._bounds_rect}}i.ImageURLView=p,p.__name__="ImageURLView";class f extends h.XYGlyph{constructor(e){super(e)}}i.ImageURL=f,n=f,f.__name__="ImageURL",n.prototype.default_view=p,n.define((({Bool:e,Int:t})=>({url:[_.StringSpec,{field:"url"}],anchor:[d.Anchor,"top_left"],global_alpha:[_.NumberSpec,{value:1}],angle:[_.AngleSpec,0],w:[_.NullDistanceSpec,null],h:[_.NullDistanceSpec,null],dilate:[e,!1],retry_attempts:[t,0],retry_timeout:[t,0]})))}, +function _(t,e,a,h,l){var M;h();const _=t(374),n=t(178);class p extends _.MathTextGlyphView{_build_label(t){return new n.MathML({text:t})}}a.MathMLGlyphView=p,p.__name__="MathMLGlyphView";class s extends _.MathTextGlyph{constructor(t){super(t)}}a.MathMLGlyph=s,M=s,s.__name__="MathMLGlyph",M.prototype.default_view=p}, +function _(e,t,s,i,l){i();const a=e(375),n=e(178),r=e(56),h=e(34);class _ extends a.TextView{constructor(){super(...arguments),this._label_views=new Map}remove(){(0,r.remove_views)(this._label_views),super.remove()}*children(){yield*super.children(),yield*this._label_views.values()}has_finished(){if(!super.has_finished())return!1;for(const e of this._label_views.values())if(!e.has_finished())return!1;return!0}async _build_labels(e){const t=Array.from(e,(e=>null==e?null:this._build_label(e)));return await(0,r.build_views)(this._label_views,t.filter((e=>null!=e)),{parent:this.renderer}),t.map((e=>null==e?null:this._label_views.get(e).graphics()))}async after_lazy_visuals(){await super.after_lazy_visuals();const e=[...this._label_views.values()].map((e=>e instanceof n.MathTextView?e.request_image():null));await Promise.allSettled(e);const{left:t,right:s,top:i,bottom:l}=this.padding;for(const[e,a]of(0,h.enumerate)(this.labels)){if(null==e)continue;if(!(e instanceof n.MathTextView))continue;const r=e.size(),h=t+r.width+s,_=i+r.height+l;this.swidth[a]=h,this.sheight[a]=_}}}s.MathTextGlyphView=_,_.__name__="MathTextGlyphView";class u extends a.Text{constructor(e){super(e)}}s.MathTextGlyph=u,u.__name__="MathTextGlyph"}, +function _(t,e,a,i,s){var n;i();const o=t(1),r=t(221),l=o.__importStar(t(80)),h=o.__importStar(t(18)),c=t(39),_=t(130),d=t(64),u=t(34),x=t(114),p=t(180),g=t(185),f=o.__importStar(t(186)),y=t(187),b=t(11);class w extends h.DataSpec{}w.__name__="TextAnchorSpec";class m extends h.DataSpec{}m.__name__="OutlineShapeSpec";class v extends r.XYGlyphView{async _build_labels(t){return Array.from(t,(t=>{if(null==t)return null;{const e=`${t}`;return new p.TextBox({text:e})}}))}async _set_lazy_data(){this.inherited_text?this._inherit_attr("labels"):this._define_attr("labels",await this._build_labels(this.text))}after_visuals(){super.after_visuals();const t=this.data_size,{anchor:e}=this.base??this,{padding:a,border_radius:i}=this.model,{text_align:s,text_baseline:n}=this.visuals.text;if(e.is_Scalar()&&"auto"!=e.value)this.anchor_=new c.UniformScalar(f.anchor(e.value),t);else if(e.is_Scalar()&&s.is_Scalar()&&n.is_Scalar())this.anchor_=new c.UniformScalar(f.text_anchor(e.value,s.value,n.value),t);else{const a=new Array(t);for(let i=0;i{const{x:t,y:e,width:a,height:s}=i;if(a>s){const i=(a-s)/2;return new d.BBox({x:t,y:e-i,width:a,height:a})}{const i=(s-a)/2;return new d.BBox({x:t-i,y:e,width:s,height:s})}})();(0,y.round_rect)(t,e,n);break}case"circle":{const e=i.x_center,a=i.y_center,s=(0,b.sqrt)(i.width**2+i.height**2)/2;t.arc(e,a,s,0,2*b.PI,!1);break}case"ellipse":{const e=i.x_center,a=i.y_center,s=1.5,n=i.width/2,o=i.height/2,r=(0,b.sqrt)(n**2+n**(2/s)*o**(2-2/s)),l=(0,b.sqrt)(o**2+o**(2/s)*n**(2-2/s));t.ellipse(e,a,r,l,0,0,2*b.PI);break}case"trapezoid":{const{left:e,right:a,top:s,bottom:n,width:o}=i,r=.2*o;t.moveTo(e,s),t.lineTo(a,s),t.lineTo(a+r,n),t.lineTo(e-r,n),t.closePath();break}case"parallelogram":{const{left:e,right:a,top:s,bottom:n,width:o}=i,r=.2*o;t.moveTo(e,s),t.lineTo(a+r,s),t.lineTo(a,n),t.lineTo(e-r,n),t.closePath();break}case"diamond":{const{x_center:e,y_center:a,width:s,height:n}=i;t.moveTo(e,a-n),t.lineTo(s+s/2,a),t.lineTo(e,a+n),t.lineTo(-s/2,a),t.closePath();break}case"triangle":{const e=i.width,a=i.height,s=(0,b.sqrt)(3)/2*e,n=a+s;t.translate(e/2,-s),t.moveTo(0,0),t.lineTo(n/2,n),t.lineTo(-n/2,n),t.closePath(),t.translate(-e/2,s);break}}s.fill.apply(t,e),s.hatch.apply(t,e),s.line.apply(t,e)}_hit_point(t){const e={x:t.sx,y:t.sy},{sx:a,sy:i,x_offset:s,y_offset:n,angle:o,labels:r}=this,{anchor_:l}=this,{swidth:h,sheight:c}=this,d=this.data_size,u=[];for(let t=0;t({text:[h.NullStringSpec,{field:"text"}],angle:[h.AngleSpec,0],x_offset:[h.NumberSpec,0],y_offset:[h.NumberSpec,0],anchor:[w,{value:"auto"}],padding:[g.Padding,0],border_radius:[g.BorderRadius,0],outline_shape:[m,"box"]}))),n.override({border_line_color:null,background_fill_color:null,background_hatch_color:null})}, +function _(t,e,s,i,n){var o;i();const r=t(1),l=t(80),_=r.__importStar(t(229)),a=r.__importStar(t(18)),c=t(13),h=t(222),d=t(228),x=t(130);class g extends h.GlyphView{async load_glglyph(){const{MultiLineGL:e}=await Promise.resolve().then((()=>r.__importStar(t(576))));return e}_project_data(){this._project_xy("xs",this.xs.data,"ys",this.ys.data)}_index_data(t){const{data_size:e}=this;for(let s=0;s0&&o.set(t,s)}return new x.Selection({indices:[...o.keys()],multiline_indices:o})}get_interpolation_hit(t,e,s){const i=this.xs.get(t),n=this.ys.get(t),o=i[e],r=n[e],l=i[e+1],_=n[e+1];return(0,d.line_interpolation)(this.renderer,s,o,r,l,_)}draw_legend_for_index(t,e,s){(0,d.generic_line_vector_legend)(this.visuals,t,e,s)}scenterxy(){throw new Error(`${this}.scenterxy() is not implemented`)}}s.MultiLineView=g,g.__name__="MultiLineView";class y extends h.Glyph{constructor(t){super(t)}}s.MultiLine=y,o=y,y.__name__="MultiLine",o.prototype.default_view=g,o.define((({})=>({xs:[a.XCoordinateSeqSpec,{field:"xs"}],ys:[a.YCoordinateSeqSpec,{field:"ys"}]}))),o.mixins(l.LineVector)}, +function _(t,e,s,n,i){var o;n();const r=t(1),l=t(224),h=t(222),a=t(228),_=t(13),c=t(13),d=t(80),y=r.__importStar(t(229)),f=r.__importStar(t(18)),x=t(130),g=t(12);class p extends h.GlyphView{_project_data(){}_index_data(t){const{min:e,max:s}=Math,{data_size:n}=this;for(let i=0;i1&&c.length>1)for(let s=1,n=i.length;s{const t=this.renderer.xscale.v_invert(e),n=this.renderer.yscale.v_invert(s),[i,o,r,l]=(0,_.minmax2)(t,n);return this.index.indices({x0:i,x1:o,y0:r,y1:l})})(),o=[];for(const t of i){const i=this.sxs[t],r=this.sys[t];let l=!n;const h=i.length;for(let t=0;t1){let r=!1;for(let t=1;t({xs:[f.XCoordinateSeqSeqSeqSpec,{field:"xs"}],ys:[f.YCoordinateSeqSeqSeqSpec,{field:"ys"}]}))),o.mixins([d.LineVector,d.FillVector,d.HatchVector])}, +function _(e,n,t,s,i){var r;s();const o=e(1),c=e(361),a=e(13),l=e(229),h=o.__importStar(e(18)),y=e(130);function _(e,n,t,s,i){const r=new Float32Array(s),o=new Float32Array(s),c=2*Math.PI/s;for(let a=0;ao.__importStar(e(578))));return n}_paint(e,n,t){const{sx:s,sy:i,sradius:r,angle:o,n:c}={...this,...t};for(const t of n){const n=s[t],a=i[t],l=r[t],h=o.get(t),y=c.get(t);if(y<3||!isFinite(n+a+l+h+y))continue;const[d,p]=_(n,a,l,y,h);e.beginPath(),e.moveTo(d[0],p[0]);for(let n=1;n<=y;n++)e.lineTo(d[n],p[n]);e.closePath(),this.visuals.fill.apply(e,t),this.visuals.hatch.apply(e,t),this.visuals.line.apply(e,t)}}_ngon(e){const{sx:n,sy:t,sradius:s,angle:i,n:r}={...this},o=n[e],c=t[e],a=s[e],l=i.get(e);return _(o,c,a,r.get(e),l)}_hit_point(e){const n=this.renderer.xscale.invert(e.sx),t=this.renderer.yscale.invert(e.sy),s=this.index.indices({x0:n,y0:t,x1:n,y1:t}),i=[];for(const n of s){const[t,s]=this._ngon(n);(0,l.point_in_poly)(e.sx,e.sy,t,s)&&i.push(n)}return new y.Selection({indices:i})}_hit_span(e){const{sx:n,sy:t}=e,{x0:s,x1:i,y0:r,y1:o}=this.bounds(),[c,a,l]=(()=>{switch(e.direction){case"v":{const e=this.renderer.yscale.invert(t),n=this.index.indices({x0:s,y0:e,x1:i,y1:e});return[t,1,n]}case"h":{const e=this.renderer.xscale.invert(n),t=this.index.indices({x0:e,y0:r,x1:e,y1:o});return[n,0,t]}}})(),h=[];for(const e of l){const n=this._ngon(e)[a];for(let t=0;t{const e=this.renderer.xscale.v_invert(n),s=this.renderer.yscale.v_invert(t),[i,r,o,c]=(0,a.minmax2)(e,s);return this.index.indices({x0:i,x1:r,y0:o,y1:c})})(),i=[];for(const e of s){const[s,r]=this._ngon(e);(0,l.vertex_overlap)(s,r,n,t)?i.push(e):(0,l.edge_intersection)(s,r,n,t)&&i.push(e)}return new y.Selection({indices:i})}_hit_rect(e){const{sx0:n,sx1:t,sy0:s,sy1:i}=e,r=[n,t,t,n],o=[s,s,i,i];return this._hit_poly({type:"poly",sx:r,sy:o})}}t.NgonView=d,d.__name__="NgonView";class p extends c.RadialGlyph{constructor(e){super(e)}}t.Ngon=p,r=p,p.__name__="Ngon",r.prototype.default_view=d,r.define((()=>({angle:[h.AngleSpec,0],n:[h.NumberSpec,{field:"n"}]})))}, +function _(e,t,s,i,n){var r;i();const o=e(1),a=e(222),c=e(228),_=e(13),h=e(80),l=o.__importStar(e(229)),y=o.__importStar(e(18)),d=e(130),x=e(12);class p extends a.GlyphView{_project_data(){this._project_xy("xs",this.xs.data,"ys",this.ys.data)}_index_data(e){const{data_size:t}=this;for(let s=0;s{const e=this.renderer.xscale.v_invert(t),i=this.renderer.yscale.v_invert(s),[n,r,o,a]=(0,_.minmax2)(e,i);return this.index.indices({x0:n,x1:r,y0:o,y1:a})})(),r=[];for(const e of n){const n=this.sxs.get(e),o=this.sys.get(e),a=n.length;if(0==a)continue;let c=!i;for(let e=0;e({xs:[y.XCoordinateSeqSpec,{field:"xs"}],ys:[y.YCoordinateSeqSpec,{field:"ys"}]}))),r.mixins([h.LineVector,h.FillVector,h.HatchVector])}, +function _(t,e,i,o,r){var s;o();const d=t(1),n=t(359),a=d.__importStar(t(18));class l extends n.LRTBView{scenterxy(t){return[this.sleft[t]/2+this.sright[t]/2,this.stop[t]/2+this.sbottom[t]/2]}_lrtb(t){return{l:this.left[t],r:this.right[t],t:this.top[t],b:this.bottom[t]}}}i.QuadView=l,l.__name__="QuadView";class _ extends n.LRTB{constructor(t){super(t)}}i.Quad=_,s=_,_.__name__="Quad",s.prototype.default_view=l,s.define((({})=>({right:[a.XCoordinateSpec,{field:"right"}],bottom:[a.YCoordinateSpec,{field:"bottom"}],left:[a.XCoordinateSpec,{field:"left"}],top:[a.YCoordinateSpec,{field:"top"}]})))}, +function _(e,i,t,s,n){var o;s();const c=e(1),a=e(80),r=e(222),d=e(228),_=e(357),x=c.__importStar(e(18));class y extends r.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{x0:i,x1:t,y0:s,y1:n,cx:o,cy:c,data_size:a}=this;for(let r=0;r({x0:[x.XCoordinateSpec,{field:"x0"}],y0:[x.YCoordinateSpec,{field:"y0"}],x1:[x.XCoordinateSpec,{field:"x1"}],y1:[x.YCoordinateSpec,{field:"y1"}],cx:[x.XCoordinateSpec,{field:"cx"}],cy:[x.YCoordinateSpec,{field:"cy"}]}))),o.mixins(a.LineVector)}, +function _(e,t,i,n,s){var h;n();const r=e(1),a=e(221),l=e(222),_=e(228),o=e(80),d=e(24),g=r.__importStar(e(18));class c extends a.XYGlyphView{_map_data(){if(this._define_or_inherit_attr("slength",(()=>"data"==this.model.properties.length.units?this.inherited_x&&this.inherited_length?l.inherit:this.sdist(this.renderer.xscale,this.x,this.length):this.inherited_length?l.inherit:(0,d.to_screen)(this.length))),!this.inherited_slength){const{width:e,height:t}=this.renderer.plot_view.frame.bbox,i=2*(e+t),{slength:n}=this,s=n.length;for(let e=0;e({length:[g.DistanceSpec,0],angle:[g.AngleSpec,0]})))}, +function _(t,e,i,s,r){var _;s();const n=t(1),h=t(363),a=t(228),d=t(24),o=t(13),l=t(130),c=t(64),x=t(114),y=t(185),f=n.__importStar(t(186)),g=t(187),{abs:w,sqrt:u}=Math;class p extends h.CenterRotatableView{async load_glglyph(){const{RectGL:e}=await Promise.resolve().then((()=>n.__importStar(t(579))));return e}_set_data(t){super._set_data(t),this.border_radius=f.border_radius(this.model.border_radius)}_map_data(){const t=this.data_size;if(this.inherited_x&&this.inherited_width)this._inherit_attr("swidth"),this._inherit_attr("sx0");else{let e,i;if("data"==this.model.properties.width.units)[e,i]=this._map_dist_corner_for_data_side_length(this.x,this.width,this.renderer.xscale);else{e=(0,d.to_screen)(this.width),i=new d.ScreenArray(t);const{sx:s}=this;for(let r=0;r({border_radius:[y.BorderRadius,0],dilate:[t,!1]})))}, +function _(e,t,r,a,n){var s;a();const i=e(1),o=e(385),_=e(386),c=i.__importStar(e(18));class l extends o.MarkerView{async load_glglyph(){const{MultiMarkerGL:t}=await Promise.resolve().then((()=>i.__importStar(e(577))));return t}_paint(e,t,r){const{sx:a,sy:n,size:s,angle:i,marker:o}={...this,...r};for(const r of t){const t=a[r],c=n[r],l=s.get(r),g=i.get(r),m=o.get(r);if(!isFinite(t+c+l+g)||null==m)continue;const u=l/2;e.beginPath(),e.translate(t,c),0!=g&&e.rotate(g),_.marker_funcs[m](e,r,u,this.visuals),0!=g&&e.rotate(-g),e.translate(-t,-c)}}draw_legend_for_index(e,{x0:t,x1:r,y0:a,y1:n},s){const i=s+1,o=this.marker.get(s),_={...this._get_legend_args({x0:t,x1:r,y0:a,y1:n},s),marker:new c.UniformScalar(o,i)};this._paint(e,[s],_)}}r.ScatterView=l,l.__name__="ScatterView";class g extends o.Marker{constructor(e){super(e)}}r.Scatter=g,s=g,g.__name__="Scatter",s.prototype.default_view=l,s.define((()=>({marker:[c.MarkerSpec,{value:"circle"}]})))}, +function _(e,t,s,i,n){var r;i();const a=e(1),c=e(221),o=e(80),_=a.__importStar(e(229)),h=a.__importStar(e(18)),x=e(13),d=e(130);class l extends c.XYGlyphView{_paint(e,t,s){const{sx:i,sy:n,size:r,angle:a}={...this,...s};for(const s of t){const t=i[s],c=n[s],o=r.get(s),_=a.get(s);if(!isFinite(t+c+o+_))continue;const h=o/2;e.beginPath(),e.translate(t,c),0!=_&&e.rotate(_),this._render_one(e,s,h,this.visuals),0!=_&&e.rotate(-_),e.translate(-t,-c)}}_mask_data(){const{x_target:e,y_target:t}=this.renderer.plot_view.frame,s=e.widen(this.max_size).map((e=>this.renderer.xscale.invert(e))),i=t.widen(this.max_size).map((e=>this.renderer.yscale.invert(e)));return this.index.indices({x0:s.start,x1:s.end,y0:i.start,y1:i.end})}_hit_point(e){const{sx:t,sy:s}=e,{max_size:i}=this,{hit_dilation:n}=this.model,r=t-i*n,a=t+i*n,[c,o]=this.renderer.xscale.r_invert(r,a),_=s-i*n,h=s+i*n,[x,l]=this.renderer.yscale.r_invert(_,h),y=this.index.indices({x0:c,x1:o,y0:x,y1:l}),m=[];for(const e of y){const i=this.size.get(e)/2*n;Math.abs(this.sx[e]-t)<=i&&Math.abs(this.sy[e]-s)<=i&&m.push(e)}return new d.Selection({indices:m})}_hit_span(e){const{sx:t,sy:s}=e,i=this.bounds(),n=this.max_size/2,[r,a,c,o]=(()=>{if("h"==e.direction){const{y0:e,y1:s}=i,r=t-n,a=t+n,[c,o]=this.renderer.xscale.r_invert(r,a);return[c,o,e,s]}{const{x0:e,x1:t}=i,r=s-n,a=s+n,[c,o]=this.renderer.yscale.r_invert(r,a);return[e,t,c,o]}})(),_=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new d.Selection({indices:_})}_hit_rect(e){const{sx0:t,sx1:s,sy0:i,sy1:n}=e,[r,a]=this.renderer.xscale.r_invert(t,s),[c,o]=this.renderer.yscale.r_invert(i,n),_=[...this.index.indices({x0:r,x1:a,y0:c,y1:o})];return new d.Selection({indices:_})}_hit_poly(e){const{sx:t,sy:s}=e,i=(()=>{const e=this.renderer.xscale.v_invert(t),i=this.renderer.yscale.v_invert(s),[n,r,a,c]=(0,x.minmax2)(e,i);return this.index.indices({x0:n,x1:r,y0:a,y1:c})})(),n=[];for(const e of i)_.point_in_poly(this.sx[e],this.sy[e],t,s)&&n.push(e);return new d.Selection({indices:n})}_get_legend_args({x0:e,x1:t,y0:s,y1:i},n){const r=n+1,a=new Array(r),c=new Array(r);a[n]=(e+t)/2,c[n]=(s+i)/2;const o=.4*Math.min(Math.abs(t-e),Math.abs(i-s));return{sx:a,sy:c,size:new h.UniformScalar(o,r),angle:new h.UniformScalar(0,r)}}draw_legend_for_index(e,{x0:t,x1:s,y0:i,y1:n},r){const a=this._get_legend_args({x0:t,x1:s,y0:i,y1:n},r);this._paint(e,[r],a)}}s.MarkerView=l,l.__name__="MarkerView";class y extends c.XYGlyph{constructor(e){super(e)}}s.Marker=y,r=y,y.__name__="Marker",r.mixins([o.LineVector,o.FillVector,o.HatchVector]),r.define((({Float:e})=>({size:[h.ScreenSizeSpec,{value:4}],angle:[h.AngleSpec,0],hit_dilation:[e,1]})))}, function _(l,n,o,i,a){i();const t=Math.sqrt(3),e=Math.sqrt(5),p=(e+1)/4,c=Math.sqrt((5-e)/8),h=(e-1)/4,u=Math.sqrt((5+e)/8);function f(l,n){l.rotate(Math.PI/4),y(l,n),l.rotate(-Math.PI/4)}function r(l,n){const o=n*t,i=o/3;l.moveTo(-o/2,-i),l.lineTo(0,0),l.lineTo(o/2,-i),l.lineTo(0,0),l.lineTo(0,n)}function y(l,n){l.moveTo(0,n),l.lineTo(0,-n),l.moveTo(-n,0),l.lineTo(n,0)}function T(l,n){l.moveTo(0,n),l.lineTo(n/1.5,0),l.lineTo(0,-n),l.lineTo(-n/1.5,0),l.closePath()}function s(l,n){const o=n*t,i=o/3;l.moveTo(-n,i),l.lineTo(n,i),l.lineTo(0,i-o),l.closePath()}function v(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function d(l,n,o,i){T(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function P(l,n,o,i){!function(l,n){l.beginPath(),l.arc(0,0,n/4,0,2*Math.PI,!1),l.closePath()}(l,o),i.line.set_vectorize(l,n),l.fillStyle=l.strokeStyle,l.fill()}function m(l,n,o,i){!function(l,n){const o=n/2,i=t*o;l.moveTo(n,0),l.lineTo(o,-i),l.lineTo(-o,-i),l.lineTo(-n,0),l.lineTo(-o,i),l.lineTo(o,i),l.closePath()}(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function _(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function q(l,n,o,i){!function(l,n){const o=Math.sqrt(5-2*e)*n;l.moveTo(0,-n),l.lineTo(o*h,o*u-n),l.lineTo(o*(1+h),o*u-n),l.lineTo(o*(1+h-p),o*(u+c)-n),l.lineTo(o*(1+2*h-p),o*(2*u+c)-n),l.lineTo(0,2*o*u-n),l.lineTo(-o*(1+2*h-p),o*(2*u+c)-n),l.lineTo(-o*(1+h-p),o*(u+c)-n),l.lineTo(-o*(1+h),o*u-n),l.lineTo(-o*h,o*u-n),l.closePath()}(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}function M(l,n,o,i){s(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)}o.marker_funcs={asterisk:function(l,n,o,i){y(l,o),f(l,o),i.line.apply(l,n)},circle:v,circle_cross:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),y(l,o),i.line.apply(l,n)},circle_dot:function(l,n,o,i){v(l,n,o,i),P(l,n,o,i)},circle_y:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),r(l,o),i.line.apply(l,n)},circle_x:function(l,n,o,i){l.arc(0,0,o,0,2*Math.PI,!1),i.fill.apply(l,n),i.hatch.apply(l,n),f(l,o),i.line.apply(l,n)},cross:function(l,n,o,i){y(l,o),i.line.apply(l,n)},diamond:d,diamond_dot:function(l,n,o,i){d(l,n,o,i),P(l,n,o,i)},diamond_cross:function(l,n,o,i){T(l,o),i.fill.apply(l,n),i.hatch.apply(l,n),l.moveTo(0,o),l.lineTo(0,-o),l.moveTo(-o/1.5,0),l.lineTo(o/1.5,0),i.line.apply(l,n)},dot:P,hex:m,hex_dot:function(l,n,o,i){m(l,n,o,i),P(l,n,o,i)},inverted_triangle:function(l,n,o,i){l.rotate(Math.PI),s(l,o),l.rotate(-Math.PI),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},plus:function(l,n,o,i){const a=3*o/8,t=[a,a,o,o,a,a,-a,-a,-o,-o,-a,-a],e=[o,a,a,-a,-a,-o,-o,-a,-a,a,a,o];l.beginPath();for(let n=0;n<12;n++)l.lineTo(t[n],e[n]);l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},square:_,square_cross:function(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),y(l,o),i.line.apply(l,n)},square_dot:function(l,n,o,i){_(l,n,o,i),P(l,n,o,i)},square_pin:function(l,n,o,i){const a=3*o/8;l.moveTo(-o,-o),l.quadraticCurveTo(0,-a,o,-o),l.quadraticCurveTo(a,0,o,o),l.quadraticCurveTo(0,a,-o,o),l.quadraticCurveTo(-a,0,-o,-o),l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},square_x:function(l,n,o,i){const a=2*o;l.rect(-o,-o,a,a),i.fill.apply(l,n),i.hatch.apply(l,n),l.moveTo(-o,o),l.lineTo(o,-o),l.moveTo(-o,-o),l.lineTo(o,o),i.line.apply(l,n)},star:q,star_dot:function(l,n,o,i){q(l,n,o,i),P(l,n,o,i)},triangle:M,triangle_dot:function(l,n,o,i){M(l,n,o,i),P(l,n,o,i)},triangle_pin:function(l,n,o,i){const a=o*t,e=a/3,p=3*e/8;l.moveTo(-o,e),l.quadraticCurveTo(0,p,o,e),l.quadraticCurveTo(t*p/2,p/2,0,e-a),l.quadraticCurveTo(-t*p/2,p/2,-o,e),l.closePath(),i.fill.apply(l,n),i.hatch.apply(l,n),i.line.apply(l,n)},dash:function(l,n,o,i){!function(l,n){l.moveTo(-n,0),l.lineTo(n,0)}(l,o),i.line.apply(l,n)},x:function(l,n,o,i){f(l,o),i.line.apply(l,n)},y:function(l,n,o,i){r(l,o),i.line.apply(l,n)}}}, -function _(e,t,s,i,n){var r;i();const o=e(1),a=o.__importStar(e(228)),h=o.__importStar(e(18)),d=e(80),c=e(11),_=e(221),x=e(227),y=e(130);class l extends _.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{min:t,max:s}=Math,{x0:i,x1:n,y0:r,y1:o,data_size:a}=this;for(let h=0;h({x0:[h.XCoordinateSpec,{field:"x0"}],y0:[h.YCoordinateSpec,{field:"y0"}],x1:[h.XCoordinateSpec,{field:"x1"}],y1:[h.YCoordinateSpec,{field:"y1"}]}))),r.mixins(d.LineVector)}, -function _(t,e,s,i,n){var _;i();const o=t(1),a=t(220),l=o.__importStar(t(80)),c=t(382);class r extends a.XYGlyphView{_set_data(){const{tension:t,closed:e}=this.model,[s,i]=(0,c.catmullrom_spline)(this.x,this.y,20,t,e);this._define_attr("xt",s),this._define_attr("yt",i)}_map_data(){const{x_scale:t,y_scale:e}=this.renderer.coordinates,s=t.v_compute(this.xt),i=e.v_compute(this.yt);this._define_attr("sxt",s),this._define_attr("syt",i)}_paint(t,e,s){const{sxt:i,syt:n}={...this,...s};let _=!0;t.beginPath();const o=i.length;for(let e=0;e({tension:[e,.5],closed:[t,!1]})))}, -function _(n,t,e,o,s){o();const c=n(24),l=n(12);e.catmullrom_spline=function(n,t,e=10,o=.5,s=!1){(0,l.assert)(n.length==t.length);const r=n.length,f=s?r+1:r,w=(0,c.infer_type)(n,t),i=new w(f+2),u=new w(f+2);i.set(n,1),u.set(t,1),s?(i[0]=n[r-1],u[0]=t[r-1],i[f]=n[0],u[f]=t[0],i[f+1]=n[1],u[f+1]=t[1]):(i[0]=n[0],u[0]=t[0],i[f+1]=n[r-1],u[f+1]=t[r-1]);const g=new w(4*(e+1));for(let n=0,t=0;n<=e;n++){const o=n/e,s=o**2,c=o*s;g[t++]=2*c-3*s+1,g[t++]=-2*c+3*s,g[t++]=c-2*s+o,g[t++]=c-s}const h=new w((f-1)*(e+1)),_=new w((f-1)*(e+1));for(let n=1,t=0;n_.__importStar(e(570))));return t}_paint(e,t,r){const n=t.length;if(n<2)return;const{sx:s,sy:i}={...this,...r},_=this.model.mode;this.visuals.line.set_value(e);let a=!1,o=!1;const l=t[0];let c=isFinite(s[l]+i[l]);"center"==_&&(a=this._render_xy(e,a,c?s[l]:NaN,i[l]));for(const r of t){const t=isFinite(s[r+1]+i[r+1]);switch(_){case"before":a=this._render_xy(e,a,c?s[r]:NaN,i[r]),r({mode:[c.StepMode,"before"]})))}, -function _(e,t,i,l,n){var s;l();const a=e(368),o=e(178),r=e(21),c=e(177);i.DisplayMode=(0,r.Or)((0,r.Enum)("inline","block"),r.Auto);class p extends a.MathTextGlyphView{_build_label(e){const{macros:t,display:i}=this.model;if("auto"==i){const i=(0,c.parse_delimited_string)(e);return i instanceof o.TeX&&(i.macros=t),i}return new o.TeX({text:e,macros:t,inline:"inline"==i})}}i.TeXGlyphView=p,p.__name__="TeXGlyphView";class _ extends a.MathTextGlyph{constructor(e){super(e)}}i.TeXGlyph=_,s=_,_.__name__="TeXGlyph",s.prototype.default_view=p,s.define((({Float:e,Str:t,Dict:l,Tuple:n,Or:s})=>({macros:[l(s(t,n(t,e))),{}],display:[i.DisplayMode,"auto"]})))}, -function _(t,e,i,s,r){var h;s();const n=t(1),a=t(354),_=t(24),o=n.__importStar(t(18));class d extends a.LRTBView{scenterxy(t){return[this.sx[t],(this.stop[t]+this.sbottom[t])/2]}_lrtb(t){const e=this.width.get(t)/2,i=this.x[t],s=this.top[t],r=this.bottom[t];return{l:i-e,r:i+e,t:Math.max(s,r),b:Math.min(s,r)}}_map_data(){if(this.inherited_x&&this.inherited_width)this._inherit_attr("swidth"),this._inherit_attr("sleft"),this._inherit_attr("sright");else{const t=this.sdist(this.renderer.xscale,this.x,this.width,"center"),{sx:e}=this,i=e.length,s=new _.ScreenArray(i),r=new _.ScreenArray(i);for(let h=0;h({x:[o.XCoordinateSpec,{field:"x"}],bottom:[o.YCoordinateSpec,{value:0}],width:[o.DistanceSpec,{value:1}],top:[o.YCoordinateSpec,{field:"top"}]})))}, -function _(t,e,i,n,s){var _;n();const r=t(1),a=t(221),o=t(227),d=t(130),c=t(80),h=r.__importStar(t(39)),x=t(13),p=t(10),l=r.__importStar(t(18)),{abs:u,max:f}=Math;class m extends a.GlyphView{after_visuals(){super.after_visuals(),this.max_line_width=h.max(this.line_width)}_index_data(t){for(const e of this.x)t.add_point(e,0)}_bounds(t){const{x0:e,x1:i}=t;return{x0:e,x1:i,y0:NaN,y1:NaN}}_map_data(){super._map_data();const{round:t}=Math;if(!this.inherited_sx){const e=(0,x.map)(this.sx,(e=>t(e)));this._define_attr("sx",e)}}scenterxy(t){const{vcenter:e}=this.renderer.plot_view.frame.bbox;return[this.sx[t],e]}_paint(t,e,i){const{sx:n}={...this,...i},{top:s,bottom:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=n[i];isFinite(e)&&(t.beginPath(),t.moveTo(e,s),t.lineTo(e,_),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_line_width:i}=this,[n,s]=this.renderer.xscale.r_invert(t-i,(e??t)+i);return this.index.indices({x0:n,x1:s,y0:0,y1:0})}_find_spans(t,e){const{sx:i,line_width:n}=this,s=[];for(const _ of t){e(i[_],n.get(_))&&s.push(_)}return s}_hit_point(t){const{sx:e}=t,i=this._get_candidates(e),n=this._find_spans(i,((t,i)=>u(t-e)<=f(i,2)));return new d.Selection({indices:n})}_hit_span(t){const e=(()=>{if("h"==t.direction)return(0,p.range)(0,this.data_size);{const{sx:e}=t,i=this._get_candidates(e);return this._find_spans(i,((t,i)=>u(t-e)<=f(i/2,2)))}})();return new d.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sx0:e,sx1:i}=t,n=this._get_candidates(e,i);return this._find_spans(n,((t,n)=>e-n/2<=t&&t<=i+n/2))})();return new d.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_line_vector_legend)(this.visuals,t,e,i)}}i.VSpanView=m,m.__name__="VSpanView";class w extends a.Glyph{constructor(t){super(t)}}i.VSpan=w,_=w,w.__name__="VSpan",_.prototype.default_view=m,_.mixins([c.LineVector]),_.define((()=>({x:[l.XCoordinateSpec,{field:"x"}]})))}, -function _(t,e,i,s,r){var n;s();const a=t(1),_=t(221),o=t(227),h=t(130),c=t(80),d=t(24),l=t(13),p=a.__importStar(t(34)),x=t(10),f=a.__importStar(t(18));class u extends _.GlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(566))));this.glglyph=new i(e.regl_wrapper,this)}}get sleft(){return this.sx0}get sright(){return this.sx1}get stop(){const{top:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get sbottom(){const{bottom:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}_set_data(t){super._set_data(t);const{abs:e}=Math,{max:i,map:s,zip:r}=p,{x0:n,x1:a}=this;if(this.inherited_x0&&this.inherited_x1)this._inherit_attr("max_width");else{const t=i(s(r(n,a),(([t,i])=>e(t-i))));this._define_attr("max_width",t)}}_index_data(t){const{x0:e,x1:i,data_size:s}=this;for(let r=0;rt(e)));this._define_attr("sx0",e)}if(!this.inherited_sx1){const e=(0,l.map)(this.sx1,(e=>t(e)));this._define_attr("sx1",e)}}scenterxy(t){const{vcenter:e}=this.renderer.plot_view.frame.bbox;return[(this.sx0[t]+this.sx1[t])/2,e]}_paint(t,e,i){const{sx0:s,sx1:r}={...this,...i},{top:n,bottom:a,height:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=s[i],o=r[i];isFinite(e+o)&&(t.beginPath(),t.rect(e,n,o-e,_),this.visuals.fill.apply(t,i),this.visuals.hatch.apply(t,i),t.beginPath(),t.moveTo(e,n),t.lineTo(e,a),t.moveTo(o,n),t.lineTo(o,a),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_width:i}=this,[s,r]=this.renderer.xscale.r_invert(t,e??t),n=s-i,a=r+i;return this.index.indices({x0:n,x1:a,y0:0,y1:0})}_find_strips(t,e){function i(t,i){return t<=i?e(t,i):e(i,t)}const{sx0:s,sx1:r}=this,n=[];for(const e of t){i(s[e],r[e])&&n.push(e)}return n}_hit_point(t){const{sx:e}=t,i=this._get_candidates(e),s=this._find_strips(i,((t,i)=>t<=e&&e<=i));return new h.Selection({indices:s})}_hit_span(t){const e=(()=>{if("h"==t.direction)return(0,x.range)(0,this.data_size);{const{sx:e}=t,i=this._get_candidates(e);return this._find_strips(i,((t,i)=>t<=e&&e<=i))}})();return new h.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sx0:e,sx1:i}=t,s=this._get_candidates(e,i);return this._find_strips(s,((t,s)=>e<=t&&t<=i&&e<=s&&s<=i))})();return new h.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_area_vector_legend)(this.visuals,t,e,i)}}i.VStripView=u,u.__name__="VStripView";class w extends _.Glyph{constructor(t){super(t)}}i.VStrip=w,n=w,w.__name__="VStrip",n.prototype.default_view=u,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((()=>({x0:[f.XCoordinateSpec,{field:"x0"}],x1:[f.XCoordinateSpec,{field:"x1"}]})))}, -function _(e,t,s,i,r){var n;i();const a=e(1),h=e(220),d=e(221),_=e(227),c=e(80),l=e(24),o=e(20),g=a.__importStar(e(18)),u=e(11),p=e(130),x=e(13);class y extends h.XYGlyphView{async load_glglyph(){const{WedgeGL:t}=await Promise.resolve().then((()=>a.__importStar(e(571))));return t}_map_data(){this._define_or_inherit_attr("sradius",(()=>"data"==this.model.properties.radius.units?this.inherited_x&&this.inherited_radius?d.inherit:this.sdist(this.renderer.xscale,this.x,this.radius):this.inherited_radius?d.inherit:(0,l.to_screen)(this.radius))),this._define_or_inherit_attr("max_sradius",(()=>(0,x.max)(this.sradius)))}_paint(e,t,s){const{sx:i,sy:r,sradius:n,start_angle:a,end_angle:h}={...this,...s},d="anticlock"==this.model.direction;for(const s of t){const t=i[s],_=r[s],c=n[s],l=a.get(s),o=h.get(s);isFinite(t+_+c+l+o)&&(e.beginPath(),e.arc(t,_,c,l,o,d),e.lineTo(t,_),e.closePath(),this.visuals.fill.apply(e,s),this.visuals.hatch.apply(e,s),this.visuals.line.apply(e,s))}}_hit_point(e){let t,s,i,r,n;const{sx:a,sy:h}=e,d=this.renderer.xscale.invert(a),_=this.renderer.yscale.invert(h);s=a-this.max_sradius,i=a+this.max_sradius;const[c,l]=this.renderer.xscale.r_invert(s,i);r=h-this.max_sradius,n=h+this.max_sradius;const[o,g]=this.renderer.yscale.r_invert(r,n),x=[];for(const e of this.index.indices({x0:c,x1:l,y0:o,y1:g})){const a=this.sradius[e]**2;[s,i]=this.renderer.xscale.r_compute(d,this.x[e]),[r,n]=this.renderer.yscale.r_compute(_,this.y[e]),t=(s-i)**2+(r-n)**2,t<=a&&x.push(e)}const y="anticlock"==this.model.direction,m=[];for(const e of x){const t=Math.atan2(h-this.sy[e],a-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,u.angle_between)(-t,-this.start_angle.get(e),-this.end_angle.get(e),y))&&m.push(e)}return new p.Selection({indices:m})}draw_legend_for_index(e,t,s){(0,_.generic_area_vector_legend)(this.visuals,e,t,s)}scenterxy(e){const t=this.sradius[e]/2,s=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+t*Math.cos(s),this.sy[e]+t*Math.sin(s)]}}s.WedgeView=y,y.__name__="WedgeView";class m extends h.XYGlyph{constructor(e){super(e)}}s.Wedge=m,n=m,m.__name__="Wedge",n.prototype.default_view=y,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((({})=>({direction:[o.Direction,"anticlock"],radius:[g.DistanceSpec,{field:"radius"}],start_angle:[g.AngleSpec,{field:"start_angle"}],end_angle:[g.AngleSpec,{field:"end_angle"}]})))}, -function _(n,i,o,a,r){a(),r("Decoration",n(226).Decoration),r("Marking",n(169).Marking)}, -function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(391),r),e.__exportStar(t(392),r),e.__exportStar(t(393),r)}, +function _(e,t,s,i,n){var r;i();const o=e(1),a=o.__importStar(e(229)),h=o.__importStar(e(18)),d=e(80),c=e(11),_=e(222),x=e(228),y=e(130);class l extends _.GlyphView{_project_data(){this._project_xy("x0",this.x0,"y0",this.y0),this._project_xy("x1",this.x1,"y1",this.y1)}_index_data(e){const{min:t,max:s}=Math,{x0:i,x1:n,y0:r,y1:o,data_size:a}=this;for(let h=0;h({x0:[h.XCoordinateSpec,{field:"x0"}],y0:[h.YCoordinateSpec,{field:"y0"}],x1:[h.XCoordinateSpec,{field:"x1"}],y1:[h.YCoordinateSpec,{field:"y1"}]}))),r.mixins(d.LineVector)}, +function _(t,e,s,i,n){var _;i();const o=t(1),a=t(221),l=o.__importStar(t(80)),c=t(389);class r extends a.XYGlyphView{_set_data(){const{tension:t,closed:e}=this.model,[s,i]=(0,c.catmullrom_spline)(this.x,this.y,20,t,e);this._define_attr("xt",s),this._define_attr("yt",i)}_map_data(){const{x_scale:t,y_scale:e}=this.renderer.coordinates,s=t.v_compute(this.xt),i=e.v_compute(this.yt);this._define_attr("sxt",s),this._define_attr("syt",i)}_paint(t,e,s){const{sxt:i,syt:n}={...this,...s};let _=!0;t.beginPath();const o=i.length;for(let e=0;e({tension:[e,.5],closed:[t,!1]})))}, +function _(n,t,e,o,s){o(),e.catmullrom_spline=function(n,t,e=10,o=.5,s=!1){(0,l.assert)(n.length==t.length);const r=n.length,f=s?r+1:r,w=(0,c.infer_type)(n,t),i=new w(f+2),u=new w(f+2);i.set(n,1),u.set(t,1),s?(i[0]=n[r-1],u[0]=t[r-1],i[f]=n[0],u[f]=t[0],i[f+1]=n[1],u[f+1]=t[1]):(i[0]=n[0],u[0]=t[0],i[f+1]=n[r-1],u[f+1]=t[r-1]);const g=new w(4*(e+1));for(let n=0,t=0;n<=e;n++){const o=n/e,s=o**2,c=o*s;g[t++]=2*c-3*s+1,g[t++]=-2*c+3*s,g[t++]=c-2*s+o,g[t++]=c-s}const h=new w((f-1)*(e+1)),_=new w((f-1)*(e+1));for(let n=1,t=0;n_.__importStar(e(580))));return t}_paint(e,t,r){const n=t.length;if(n<2)return;const{sx:s,sy:i}={...this,...r},_=this.model.mode;this.visuals.line.set_value(e);let a=!1,o=!1;const l=t[0];let c=isFinite(s[l]+i[l]);"center"==_&&(a=this._render_xy(e,a,c?s[l]:NaN,i[l]));for(const r of t){const t=isFinite(s[r+1]+i[r+1]);switch(_){case"before":a=this._render_xy(e,a,c?s[r]:NaN,i[r]),r({mode:[c.StepMode,"before"]})))}, +function _(e,t,i,l,n){var s;l();const a=e(374),o=e(178),r=e(21),c=e(177);i.DisplayMode=(0,r.Or)((0,r.Enum)("inline","block"),r.Auto);class p extends a.MathTextGlyphView{_build_label(e){const{macros:t,display:i}=this.model;if("auto"==i){const i=(0,c.parse_delimited_string)(e);return i instanceof o.TeX&&(i.macros=t),i}return new o.TeX({text:e,macros:t,inline:"inline"==i})}}i.TeXGlyphView=p,p.__name__="TeXGlyphView";class _ extends a.MathTextGlyph{constructor(e){super(e)}}i.TeXGlyph=_,s=_,_.__name__="TeXGlyph",s.prototype.default_view=p,s.define((({Float:e,Str:t,Dict:l,Tuple:n,Or:s})=>({macros:[l(s(t,n(t,e))),{}],display:[i.DisplayMode,"auto"]})))}, +function _(t,e,i,s,r){var h;s();const n=t(1),a=t(359),_=t(24),o=n.__importStar(t(18));class d extends a.LRTBView{scenterxy(t){return[this.sx[t],(this.stop[t]+this.sbottom[t])/2]}_lrtb(t){const e=this.width.get(t)/2,i=this.x[t],s=this.top[t],r=this.bottom[t];return{l:i-e,r:i+e,t:Math.max(s,r),b:Math.min(s,r)}}_map_data(){if(this.inherited_x&&this.inherited_width)this._inherit_attr("swidth"),this._inherit_attr("sleft"),this._inherit_attr("sright");else{const t=this.sdist(this.renderer.xscale,this.x,this.width,"center"),{sx:e}=this,i=e.length,s=new _.ScreenArray(i),r=new _.ScreenArray(i);for(let h=0;h({x:[o.XCoordinateSpec,{field:"x"}],bottom:[o.YCoordinateSpec,{value:0}],width:[o.DistanceSpec,{value:1}],top:[o.YCoordinateSpec,{field:"top"}]})))}, +function _(t,e,i,n,s){var _;n();const r=t(1),a=t(222),o=t(228),d=t(130),c=t(80),h=r.__importStar(t(39)),x=t(13),p=t(10),l=r.__importStar(t(18)),{abs:u,max:f}=Math;class m extends a.GlyphView{after_visuals(){super.after_visuals(),this.max_line_width=h.max(this.line_width)}_index_data(t){for(const e of this.x)t.add_point(e,0)}_bounds(t){const{x0:e,x1:i}=t;return{x0:e,x1:i,y0:NaN,y1:NaN}}_map_data(){super._map_data();const{round:t}=Math;if(!this.inherited_sx){const e=(0,x.map)(this.sx,(e=>t(e)));this._define_attr("sx",e)}}scenterxy(t){const{vcenter:e}=this.renderer.plot_view.frame.bbox;return[this.sx[t],e]}_paint(t,e,i){const{sx:n}={...this,...i},{top:s,bottom:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=n[i];isFinite(e)&&(t.beginPath(),t.moveTo(e,s),t.lineTo(e,_),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_line_width:i}=this,[n,s]=this.renderer.xscale.r_invert(t-i,(e??t)+i);return this.index.indices({x0:n,x1:s,y0:0,y1:0})}_find_spans(t,e){const{sx:i,line_width:n}=this,s=[];for(const _ of t){e(i[_],n.get(_))&&s.push(_)}return s}_hit_point(t){const{sx:e}=t,i=this._get_candidates(e),n=this._find_spans(i,((t,i)=>u(t-e)<=f(i,2)));return new d.Selection({indices:n})}_hit_span(t){const e=(()=>{if("h"==t.direction)return(0,p.range)(0,this.data_size);{const{sx:e}=t,i=this._get_candidates(e);return this._find_spans(i,((t,i)=>u(t-e)<=f(i/2,2)))}})();return new d.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sx0:e,sx1:i}=t,n=this._get_candidates(e,i);return this._find_spans(n,((t,n)=>e-n/2<=t&&t<=i+n/2))})();return new d.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_line_vector_legend)(this.visuals,t,e,i)}}i.VSpanView=m,m.__name__="VSpanView";class w extends a.Glyph{constructor(t){super(t)}}i.VSpan=w,_=w,w.__name__="VSpan",_.prototype.default_view=m,_.mixins([c.LineVector]),_.define((()=>({x:[l.XCoordinateSpec,{field:"x"}]})))}, +function _(t,e,i,s,r){var n;s();const a=t(1),_=t(222),o=t(228),h=t(130),c=t(80),d=t(24),l=t(13),p=a.__importStar(t(34)),x=t(10),f=a.__importStar(t(18));class u extends _.GlyphView{async lazy_initialize(){await super.lazy_initialize();const{webgl:e}=this.renderer.plot_view.canvas_view;if(null!=e&&e.regl_wrapper.has_webgl){const{LRTBGL:i}=await Promise.resolve().then((()=>a.__importStar(t(575))));this.glglyph=new i(e.regl_wrapper,this)}}get sleft(){return this.sx0}get sright(){return this.sx1}get stop(){const{top:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}get sbottom(){const{bottom:t}=this.renderer.plot_view.frame.bbox,e=this.data_size,i=new d.ScreenArray(e);return i.fill(t),i}_set_data(t){super._set_data(t);const{abs:e}=Math,{max:i,map:s,zip:r}=p,{x0:n,x1:a}=this;if(this.inherited_x0&&this.inherited_x1)this._inherit_attr("max_width");else{const t=i(s(r(n,a),(([t,i])=>e(t-i))));this._define_attr("max_width",t)}}_index_data(t){const{x0:e,x1:i,data_size:s}=this;for(let r=0;rt(e)));this._define_attr("sx0",e)}if(!this.inherited_sx1){const e=(0,l.map)(this.sx1,(e=>t(e)));this._define_attr("sx1",e)}}scenterxy(t){const{vcenter:e}=this.renderer.plot_view.frame.bbox;return[(this.sx0[t]+this.sx1[t])/2,e]}_paint(t,e,i){const{sx0:s,sx1:r}={...this,...i},{top:n,bottom:a,height:_}=this.renderer.plot_view.frame.bbox;for(const i of e){const e=s[i],o=r[i];isFinite(e+o)&&(t.beginPath(),t.rect(e,n,o-e,_),this.visuals.fill.apply(t,i),this.visuals.hatch.apply(t,i),t.beginPath(),t.moveTo(e,n),t.lineTo(e,a),t.moveTo(o,n),t.lineTo(o,a),this.visuals.line.apply(t,i))}}_get_candidates(t,e){const{max_width:i}=this,[s,r]=this.renderer.xscale.r_invert(t,e??t),n=s-i,a=r+i;return this.index.indices({x0:n,x1:a,y0:0,y1:0})}_find_strips(t,e){function i(t,i){return t<=i?e(t,i):e(i,t)}const{sx0:s,sx1:r}=this,n=[];for(const e of t){i(s[e],r[e])&&n.push(e)}return n}_hit_point(t){const{sx:e}=t,i=this._get_candidates(e),s=this._find_strips(i,((t,i)=>t<=e&&e<=i));return new h.Selection({indices:s})}_hit_span(t){const e=(()=>{if("h"==t.direction)return(0,x.range)(0,this.data_size);{const{sx:e}=t,i=this._get_candidates(e);return this._find_strips(i,((t,i)=>t<=e&&e<=i))}})();return new h.Selection({indices:e})}_hit_rect(t){const e=(()=>{const{sx0:e,sx1:i}=t,s=this._get_candidates(e,i);return this._find_strips(s,((t,s)=>e<=t&&t<=i&&e<=s&&s<=i))})();return new h.Selection({indices:e})}draw_legend_for_index(t,e,i){(0,o.generic_area_vector_legend)(this.visuals,t,e,i)}}i.VStripView=u,u.__name__="VStripView";class w extends _.Glyph{constructor(t){super(t)}}i.VStrip=w,n=w,w.__name__="VStrip",n.prototype.default_view=u,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((()=>({x0:[f.XCoordinateSpec,{field:"x0"}],x1:[f.XCoordinateSpec,{field:"x1"}]})))}, +function _(e,t,s,i,r){var n;i();const a=e(1),h=e(221),d=e(222),_=e(228),c=e(80),l=e(24),o=e(20),g=a.__importStar(e(18)),u=e(11),p=e(130),x=e(13);class y extends h.XYGlyphView{async load_glglyph(){const{WedgeGL:t}=await Promise.resolve().then((()=>a.__importStar(e(581))));return t}_map_data(){this._define_or_inherit_attr("sradius",(()=>"data"==this.model.properties.radius.units?this.inherited_x&&this.inherited_radius?d.inherit:this.sdist(this.renderer.xscale,this.x,this.radius):this.inherited_radius?d.inherit:(0,l.to_screen)(this.radius))),this._define_or_inherit_attr("max_sradius",(()=>(0,x.max)(this.sradius)))}_paint(e,t,s){const{sx:i,sy:r,sradius:n,start_angle:a,end_angle:h}={...this,...s},d="anticlock"==this.model.direction;for(const s of t){const t=i[s],_=r[s],c=n[s],l=a.get(s),o=h.get(s);isFinite(t+_+c+l+o)&&(e.beginPath(),e.arc(t,_,c,l,o,d),e.lineTo(t,_),e.closePath(),this.visuals.fill.apply(e,s),this.visuals.hatch.apply(e,s),this.visuals.line.apply(e,s))}}_hit_point(e){let t,s,i,r,n;const{sx:a,sy:h}=e,d=this.renderer.xscale.invert(a),_=this.renderer.yscale.invert(h);s=a-this.max_sradius,i=a+this.max_sradius;const[c,l]=this.renderer.xscale.r_invert(s,i);r=h-this.max_sradius,n=h+this.max_sradius;const[o,g]=this.renderer.yscale.r_invert(r,n),x=[];for(const e of this.index.indices({x0:c,x1:l,y0:o,y1:g})){const a=this.sradius[e]**2;[s,i]=this.renderer.xscale.r_compute(d,this.x[e]),[r,n]=this.renderer.yscale.r_compute(_,this.y[e]),t=(s-i)**2+(r-n)**2,t<=a&&x.push(e)}const y="anticlock"==this.model.direction,m=[];for(const e of x){const t=Math.atan2(h-this.sy[e],a-this.sx[e]);(Math.abs(this.start_angle.get(e)-this.end_angle.get(e))>=2*Math.PI||(0,u.angle_between)(-t,-this.start_angle.get(e),-this.end_angle.get(e),y))&&m.push(e)}return new p.Selection({indices:m})}draw_legend_for_index(e,t,s){(0,_.generic_area_vector_legend)(this.visuals,e,t,s)}scenterxy(e){const t=this.sradius[e]/2,s=(this.start_angle.get(e)+this.end_angle.get(e))/2;return[this.sx[e]+t*Math.cos(s),this.sy[e]+t*Math.sin(s)]}}s.WedgeView=y,y.__name__="WedgeView";class m extends h.XYGlyph{constructor(e){super(e)}}s.Wedge=m,n=m,m.__name__="Wedge",n.prototype.default_view=y,n.mixins([c.LineVector,c.FillVector,c.HatchVector]),n.define((({})=>({direction:[o.Direction,"anticlock"],radius:[g.DistanceSpec,{field:"radius"}],start_angle:[g.AngleSpec,{field:"start_angle"}],end_angle:[g.AngleSpec,{field:"end_angle"}]})))}, +function _(n,i,o,a,r){a(),r("Decoration",n(227).Decoration),r("Marking",n(169).Marking)}, +function _(t,_,r,o,a){o();const e=t(1);e.__exportStar(t(398),r),e.__exportStar(t(399),r),e.__exportStar(t(400),r)}, function _(e,t,n,d,s){d();const o=e(51),r=e(13),i=e(10),_=e(9),c=e(130);class a extends o.Model{constructor(e){super(e)}_hit_test(e,t,n){if(!t.model.visible)return null;const d=n.glyph.hit_test(e);return null==d?null:n.model.view.convert_selection_from_subset(d)}}n.GraphHitTestPolicy=a,a.__name__="GraphHitTestPolicy";class l extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.edge_view)}do_selection(e,t,n,d){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;return s.update(e,n,d),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,n,d,s){if(null==e)return!1;const{edge_renderer:o}=n.model,r=o.get_selection_manager().get_or_create_inspector(n.edge_view.model);return r.update(e,d,s),n.edge_view.model.data_source.setv({inspected:r},{silent:!0}),n.edge_view.model.data_source.inspect.emit([n.edge_view.model,{geometry:t}]),!r.is_empty()}}n.EdgesOnly=l,l.__name__="EdgesOnly";class u extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}do_selection(e,t,n,d){if(null==e)return!1;const s=t.node_renderer.data_source.selected;return s.update(e,n,d),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,n,d,s){if(null==e)return!1;const{node_renderer:o}=n.model,r=o.get_selection_manager().get_or_create_inspector(n.node_view.model);return r.update(e,d,s),n.node_view.model.data_source.setv({inspected:r},{silent:!0}),n.node_view.model.data_source.inspect.emit([n.node_view.model,{geometry:t}]),!r.is_empty()}}n.NodesOnly=u,u.__name__="NodesOnly";class m extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}get_linked_edges(e,t,n){const d=(0,_.dict)(e.data).get("index")??[],s=(()=>{switch(n){case"selection":return(0,r.map)(e.selected.indices,(e=>d[e]));case"inspection":return(0,r.map)(e.inspected.indices,(e=>d[e]))}})(),o=(0,_.dict)(t.data),a=o.get("start")??[],l=o.get("end")??[],u=[],m=a.length;for(let e=0;e{switch(n){case"selection":return t.selected.indices;case"inspection":return t.inspected.indices}})(),s=(0,_.dict)(t.data),o=s.get("start")??[],a=s.get("end")??[],l=[];for(const e of d)l.push(o[e],a[e]);const u=(0,_.dict)(e.data).get("index")??[],m=(0,i.uniq)(l).map((e=>(0,r.index_of)(u,e)));return new c.Selection({indices:m})}do_selection(e,t,n,d){if(null==e)return!1;const s=t.edge_renderer.data_source.selected;s.update(e,n,d);const o=t.node_renderer.data_source.selected,r=this.get_linked_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.update(r,n,d),t.edge_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,n,d,s){if(null==e)return!1;const o=n.edge_view.model.data_source.selection_manager.get_or_create_inspector(n.edge_view.model);o.update(e,d,s),n.edge_view.model.data_source.setv({inspected:o},{silent:!0});const r=n.node_view.model.data_source.selection_manager.get_or_create_inspector(n.node_view.model),i=this.get_linked_nodes(n.node_view.model.data_source,n.edge_view.model.data_source,"inspection");return r.update(i,d,s),n.node_view.model.data_source.setv({inspected:r},{silent:!0}),n.edge_view.model.data_source.inspect.emit([n.edge_view.model,{geometry:t}]),!o.is_empty()}}n.EdgesAndLinkedNodes=p,p.__name__="EdgesAndLinkedNodes";class g extends a{constructor(e){super(e)}hit_test(e,t){return this._hit_test(e,t,t.node_view)}get_adjacent_nodes(e,t,n){const d=(0,_.dict)(e.data).get("index")??[],s=(()=>{switch(n){case"selection":return(0,r.map)(e.selected.indices,(e=>d[e]));case"inspection":return(0,r.map)(e.inspected.indices,(e=>d[e]))}})(),o=(0,_.dict)(t.data),a=o.get("start")??[],l=o.get("end")??[],u=[],m=[];for(let e=0;e(0,r.index_of)(d,e)));return new c.Selection({indices:p})}do_selection(e,t,n,d){if(null==e)return!1;const s=t.node_renderer.data_source.selected;s.update(e,n,d);const o=this.get_adjacent_nodes(t.node_renderer.data_source,t.edge_renderer.data_source,"selection");return o.is_empty()||s.update(o,n,d),t.node_renderer.data_source._select.emit(),!s.is_empty()}do_inspection(e,t,n,d,s){if(null==e)return!1;const o=n.node_view.model.data_source.selection_manager.get_or_create_inspector(n.node_view.model);o.update(e,d,s),n.node_view.model.data_source.setv({inspected:o},{silent:!0});const r=this.get_adjacent_nodes(n.node_view.model.data_source,n.edge_view.model.data_source,"inspection");return r.is_empty()||(o.update(r,d,s),n.node_view.model.data_source.setv({inspected:o},{silent:!0})),n.node_view.model.data_source.inspect.emit([n.node_view.model,{geometry:t}]),!o.is_empty()}}n.NodesAndAdjacentNodes=g,g.__name__="NodesAndAdjacentNodes"}, -function _(e,o,t,r,n){var s;r();const a=e(51),d=e(336);class _ extends a.Model{constructor(e){super(e)}get node_coordinates(){return new u({layout:this})}get edge_coordinates(){return new i({layout:this})}}t.LayoutProvider=_,_.__name__="LayoutProvider";class c extends d.CoordinateTransform{constructor(e){super(e)}}t.GraphCoordinates=c,s=c,c.__name__="GraphCoordinates",s.define((({Ref:e})=>({layout:[e(_)]})));class u extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_node_coordinates(e);return{x:o,y:t}}}t.NodeCoordinates=u,u.__name__="NodeCoordinates";class i extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_edge_coordinates(e);return{x:o,y:t}}}t.EdgeCoordinates=i,i.__name__="EdgeCoordinates"}, -function _(t,a,e,r,o){var n;r();const s=t(392),i=t(9),l=t(21);e.GraphLayout=(0,l.Or)((0,l.Dict)((0,l.Arrayable)(l.Float)),(0,l.Mapping)((0,l.Or)(l.Int,l.Str),(0,l.Arrayable)(l.Float)));class c extends s.LayoutProvider{constructor(t){super(t)}get_node_coordinates(t){const a=(0,i.dict)(t.data).get("index")??[],e=a.length,r=new Float64Array(e),o=new Float64Array(e),n=(0,i.dict)(this.graph_layout);for(let t=0;t({graph_layout:[e.GraphLayout,new Map]})))}, -function _(i,d,n,r,G){r(),G("Grid",i(395).Grid)}, -function _(i,e,s,t,n){var r;t();const o=i(1),a=i(265),d=i(190),_=i(191),l=o.__importStar(i(80)),h=i(8);class u extends d.GuideRendererView{_paint(){const i=this.layer.ctx;i.save(),this._draw_regions(i),this._draw_minor_grids(i),this._draw_grids(i),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_paint()))}_draw_regions(i){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;const[e,s]=this.grid_coords("major",!1);for(let t=0;ts[1]&&(n=s[1]);else{[t,n]=s;for(const i of this.plot_view.axis_views)i.dimension==this.model.dimension&&i.model.x_range_name==this.model.x_range_name&&i.model.y_range_name==this.model.y_range_name&&([t,n]=i.computed_bounds)}return[t,n]}grid_coords(i,e=!0){const s=this.model.dimension,t=1-s,[n,r]=this.ranges(),[o,a]=(()=>{const[i,e]=this.computed_bounds();return[Math.min(i,e),Math.max(i,e)]})(),d=[[],[]],_=this.model.get_ticker();if(null==_)return d;const l=_.get_ticks(o,a,n,r.min)[i],h=n.min,u=n.max,[c,m]=(()=>{const{cross_bounds:i}=this.model;return"auto"==i?[r.min,r.max]:i})();e||(l[0]!=h&&l.splice(0,0,h),l[l.length-1]!=u&&l.push(u));for(let i=0;i({bounds:[r(n(i,i),e),"auto"],cross_bounds:[r(n(i,i),e),"auto"],dimension:[s(0,1),0],axis:[o(t(a.Axis)),null],ticker:[o(t(_.Ticker)),null]}))),r.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}, -function _(o,x,B,a,l){a(),l("Column",o(397).Column),l("FlexBox",o(398).FlexBox),l("GridBox",o(404).GridBox),l("GroupBox",o(406).GroupBox),l("HBox",o(408).HBox),l("LayoutDOM",o(399).LayoutDOM),l("Row",o(409).Row),l("ScrollBox",o(410).ScrollBox),l("Spacer",o(411).Spacer),l("TabPanel",o(412).TabPanel),l("Tabs",o(416).Tabs),l("VBox",o(418).VBox)}, -function _(e,o,n,t,s){var u;t();const _=e(398);class c extends _.FlexBoxView{constructor(){super(...arguments),this._direction="column"}}n.ColumnView=c,c.__name__="ColumnView";class l extends _.FlexBox{constructor(e){super(e)}}n.Column=l,u=l,l.__name__="Column",u.prototype.default_view=c}, -function _(t,e,i,o,s){var n;o();const a=t(399),c=t(403),l=t(258),r=t(111),h=t(63);class d extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{children:t}=this.model.properties;this.on_change(t,(()=>this.update_children()))}get child_models(){return this.model.children}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flex"}}_update_layout(){super._update_layout(),this.style.append(":host",{flex_direction:this._direction,gap:(0,h.px)(this.model.spacing)});const t=new l.Container;let e=0,i=0;for(const o of this.child_views){if(!(o instanceof a.LayoutDOMView))continue;const s=o.box_sizing(),n=(()=>{const t="row"==this._direction?s.width_policy:s.height_policy,e="row"==this._direction?s.width:s.height,i=null!=e?(0,h.px)(e):"auto";switch(t){case"auto":case"fixed":return`0 0 ${i}`;case"fit":return"1 1 auto";case"min":return"0 1 auto";case"max":return"1 0 0px"}})(),c=(()=>{switch("row"==this._direction?s.height_policy:s.width_policy){case"auto":case"fixed":case"fit":case"min":return"row"==this._direction?s.valign:s.halign;case"max":return"stretch"}})();o.style.append(":host",{flex:n,align_self:c}),"row"==this._direction?"max"==s.height_policy&&o.style.append(":host",{height:"auto"}):"max"==s.width_policy&&o.style.append(":host",{width:"auto"}),null!=o.layout&&(t.add({r0:e,c0:i,r1:e+1,c1:i+1},o),"row"==this._direction?i+=1:e+=1)}0!=t.size?(this.layout=new c.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}}i.FlexBoxView=d,d.__name__="FlexBoxView";class _ extends a.LayoutDOM{constructor(t){super(t)}}i.FlexBox=_,n=_,_.__name__="FlexBox",n.define((({Float:t,List:e,Ref:i})=>({children:[e(i(r.UIElement)),[]],spacing:[t,0]})))}, -function _(t,e,i,s,o){var a;s();const l=t(400),n=t(19),r=t(15),h=t(20),u=t(63),_=t(8),c=t(56),d=t(256),p=t(112),f=t(12);class m extends l.PaneView{constructor(){super(...arguments),this._child_views=new Map,this.mouseenter=new r.Signal(this,"mouseenter"),this.mouseleave=new r.Signal(this,"mouseleave"),this.disabled=new r.Signal(this,"disabled"),this._auto_width="fit-content",this._auto_height="fit-content",this._layout_computed=!1}get is_layout_root(){return this.is_root||!(this.parent instanceof m)}_after_resize(){super._after_resize(),this.is_layout_root&&!this._was_built?(n.logger.warn(`${this} wasn't built properly`),this.render(),this.r_after_render()):this.compute_layout()}async lazy_initialize(){await super.lazy_initialize(),await this.build_child_views()}remove(){for(const t of this.child_views)t.remove();this._child_views.clear(),super.remove()}connect_signals(){super.connect_signals(),this.el.addEventListener("mouseenter",(t=>{this.mouseenter.emit(t)})),this.el.addEventListener("mouseleave",(t=>{this.mouseleave.emit(t)})),this.parent instanceof m&&this.connect(this.parent.disabled,(t=>{this.disabled.emit(t||this.model.disabled)}));const t=this.model.properties;this.on_change(t.disabled,(()=>{this.disabled.emit(this.model.disabled)})),this.on_change([t.css_classes,t.stylesheets,t.width,t.height,t.min_width,t.min_height,t.max_width,t.max_height,t.margin,t.width_policy,t.height_policy,t.flow_mode,t.sizing_mode,t.aspect_ratio,t.visible],(()=>this.invalidate_layout()))}*children(){yield*super.children(),yield*this.child_views}get child_views(){return this.child_models.map((t=>this._child_views.get(t))).filter(_.isNotNull)}get layoutable_views(){return this.child_views.filter((t=>t instanceof m))}async build_child_views(){const{created:t,removed:e}=await(0,c.build_views)(this._child_views,this.child_models,{parent:this});for(const t of e)this._resize_observer.unobserve(t.el);for(const e of t)this._resize_observer.observe(e.el,{box:"border-box"});return t}render(){super.render();for(const t of this.child_views){const e=t.rendering_target()??this.shadow_el;t.render_to(e)}}_update_children(){}async update_children(){const t=await this.build_child_views(),e=new Set(t);for(const t of this.child_views)t.el.remove();for(const t of this.child_views){const i=e.has(t),s=t.rendering_target()??this.shadow_el;i?t.render_to(s):s.append(t.el)}this.r_after_render(),this._update_children(),this.invalidate_layout()}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flow"}}_update_layout(){function t(t,e,i,s){switch(t){case"auto":return null!=e?(0,u.px)(e):i;case"fixed":return null!=e?(0,u.px)(e):"fit-content";case"fit":return"fit-content";case"min":return"min-content";case"max":return null==s?"100%":`calc(100% - ${s})`}}function e(t){return(0,_.isNumber)(t)?(0,u.px)(t):`${t.percent}%`}const i={},s=this._intrinsic_display();i.display=function(t){const{inner:e,outer:i}=t;switch(`${e} ${i}`){case"block flow":return"block";case"inline flow":return"inline";case"block flow-root":return"flow-root";case"inline flow-root":return"inline-block";case"block flex":return"flex";case"inline flex":return"inline-flex";case"block grid":return"grid";case"inline grid":return"inline-grid";case"block table":return"table";case"inline table":return"inline-table";default:(0,f.unreachable)()}}(s);const o=this.box_sizing(),{width_policy:a,height_policy:l,width:n,height:r,aspect_ratio:h}=o,c=(()=>{if("auto"==h){if(null!=n&&null!=r)return n/r}else if((0,_.isNumber)(h))return h;return null})();"auto"==h?i.aspect_ratio=null!=n&&null!=r?`${n} / ${r}`:"auto":(0,_.isNumber)(h)&&(i.aspect_ratio=`${h}`);const{margin:d}=this.model,p=(()=>{if(null!=d){if((0,_.isNumber)(d))return i.margin=(0,u.px)(d),{width:(0,u.px)(2*d),height:(0,u.px)(2*d)};if(2==d.length){const[t,e]=d;return i.margin=`${(0,u.px)(t)} ${(0,u.px)(e)}`,{width:(0,u.px)(2*e),height:(0,u.px)(2*t)}}{const[t,e,s,o]=d;return i.margin=`${(0,u.px)(t)} ${(0,u.px)(e)} ${(0,u.px)(s)} ${(0,u.px)(o)}`,{width:(0,u.px)(o+e),height:(0,u.px)(t+s)}}}return{width:null,height:null}})(),[m,w]=(()=>{const e=t(a,n,this._auto_width,p.width),i=t(l,r,this._auto_height,p.height);if(null!=h){if(a!=l)return"fixed"==a?[e,"auto"]:"fixed"==l?["auto",i]:"max"==a?[e,"auto"]:"max"==l?["auto",i]:["auto","auto"];if("fixed"!=a&&"fixed"!=l&&null!=c)return c>=1?[e,"auto"]:["auto",i]}return[e,i]})();i.width=m,i.height=w;const{min_width:y,max_width:g}=this.model,{min_height:b,max_height:x}=this.model;i.min_width=null==y?"0px":e(y),i.min_height=null==b?"0px":e(b),this.is_layout_root?(null!=g&&(i.max_width=e(g)),null!=x&&(i.max_height=e(x))):(null!=g?i.max_width=`min(${e(g)}, 100%)`:"fixed"!=a&&(i.max_width="100%"),null!=x?i.max_height=`min(${e(x)}, 100%)`:"fixed"!=l&&(i.max_height="100%"));const{resizable:v}=this.model;if(!1!==v){const t=(()=>{switch(v){case"width":return"horizontal";case"height":return"vertical";case!0:case"both":return"both"}})();i.resize=t,i.overflow="auto"}this.style.append(":host",i)}update_layout(){this.update_style();for(const t of this.layoutable_views)t.update_layout();this._update_layout()}get is_managed(){return this.parent instanceof m}_measure_layout(){}measure_layout(){for(const t of this.layoutable_views)t.measure_layout();this._measure_layout()}compute_layout(){this.parent instanceof m?this.parent.compute_layout():(this.measure_layout(),this.update_bbox(),this._compute_layout(),this.after_layout()),this._layout_computed=!0}_compute_layout(){if(null!=this.layout){this.layout.compute(this.bbox.size);for(const t of this.layoutable_views)null==t.layout?t._compute_layout():t._propagate_layout()}else for(const t of this.layoutable_views)t._compute_layout()}_propagate_layout(){for(const t of this.layoutable_views)null==t.layout&&t._compute_layout()}update_bbox(){for(const t of this.layoutable_views)t.update_bbox();const t=super.update_bbox();return null!=this.layout&&(this.layout.visible=this.is_displayed),t}_after_layout(){}after_layout(){for(const t of this.layoutable_views)t.after_layout();this._after_layout()}_after_render(){this.is_managed||this.invalidate_layout()}invalidate_layout(){this.parent instanceof m?this.parent.invalidate_layout():(this.update_layout(),this.compute_layout())}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;if(this.is_layout_root&&!this._layout_computed)return!1;for(const t of this.child_views)if(!t.has_finished())return!1;return!0}box_sizing(){let{width_policy:t,height_policy:e,aspect_ratio:i}=this.model;const{sizing_mode:s}=this.model;if(null!=s)if("inherit"==s){if(this.parent instanceof m){const s=this.parent.box_sizing();t=s.width_policy,e=s.height_policy,null==i&&(i=s.aspect_ratio)}}else if("fixed"==s)t=e="fixed";else if("stretch_both"==s)t=e="max";else if("stretch_width"==s)t="max";else if("stretch_height"==s)e="max";else switch(null==i&&(i="auto"),s){case"scale_width":t="max",e="min";break;case"scale_height":t="min",e="max";break;case"scale_both":t="max",e="max"}const[o,a]=(()=>{const{align:t}=this.model;return"auto"==t?[void 0,void 0]:(0,_.isArray)(t)?t:[t,t]})(),{width:l,height:n}=this.model;return{width_policy:t,height_policy:e,width:l,height:n,aspect_ratio:i,halign:o,valign:a}}export(t="auto",e=!0){const i=(()=>{switch(t){case"auto":case"png":return"canvas";case"svg":return"svg"}})(),s=new p.CanvasLayer(i,e),{x:o,y:a,width:l,height:n}=this.bbox;s.resize(l,n);const r=getComputedStyle(this.el).backgroundColor;s.ctx.fillStyle=r,s.ctx.fillRect(o,a,l,n);for(const i of this.child_views){const o=i.export(t,e),{x:a,y:l}=i.bbox.scale(s.pixel_ratio);s.ctx.drawImage(o.canvas,a,l)}return s}}i.LayoutDOMView=m,m.__name__="LayoutDOMView";class w extends l.Pane{constructor(t){super(t)}}i.LayoutDOM=w,a=w,w.__name__="LayoutDOM",a.define((t=>{const{Bool:e,Float:i,Auto:s,Tuple:o,Or:a,Null:l,Nullable:n}=t,r=o(i,i),u=o(i,i,i,i);return{width:[n(i),null],height:[n(i),null],min_width:[n(i),null],min_height:[n(i),null],max_width:[n(i),null],max_height:[n(i),null],margin:[n(a(i,r,u)),null],width_policy:[a(d.SizingPolicy,s),"auto"],height_policy:[a(d.SizingPolicy,s),"auto"],aspect_ratio:[a(i,s,l),null],flow_mode:[h.FlowMode,"block"],sizing_mode:[n(h.SizingMode),null],disabled:[e,!1],align:[a(h.Align,o(h.Align,h.Align),s),"auto"],resizable:[a(e,h.Dimensions),!1]}}))}, -function _(e,t,s,n,i){var r;n();const _=e(111),l=e(125),a=e(401),o=e(56),m=e(21);s.ElementLike=(0,m.Or)((0,m.Ref)(_.UIElement),(0,m.Ref)(l.DOMNode),(0,m.Ref)(a.HTML));class h extends _.UIElementView{constructor(){super(...arguments),this._element_views=new Map}get elements(){return this.model.elements}get element_views(){return this.elements.map((e=>this._element_views.get(e)))}*children(){yield*super.children(),yield*this.element_views}async lazy_initialize(){await super.lazy_initialize(),await this._build_elements()}async _build_elements(){return await(0,o.build_views)(this._element_views,this.elements,{parent:this})}async _update_elements(){const{created:e}=await this._build_elements(),t=new Set(e);for(const e of this.element_views)e.el.remove();for(const e of this.element_views){const s=t.has(e),n=e.rendering_target()??this.shadow_el;s?e.render_to(n):n.append(e.el)}this.r_after_render()}remove(){(0,o.remove_views)(this._element_views),super.remove()}connect_signals(){super.connect_signals();const{elements:e}=this.model.properties;this.on_change(e,(async()=>{await this._update_elements()}))}render(){super.render();for(const e of this.element_views){const t=e.rendering_target()??this.shadow_el;e.render_to(t)}}has_finished(){if(!super.has_finished())return!1;for(const e of this.element_views)if(!e.has_finished())return!1;return!0}}s.PaneView=h,h.__name__="PaneView";class d extends _.UIElement{constructor(e){super(e)}}s.Pane=d,r=d,d.__name__="Pane",r.prototype.default_view=h,r.define((({List:e})=>({elements:[e(s.ElementLike),[]]})))}, -function _(e,t,r,i,s){var n;i();const o=e(402),l=e(111),a=e(56),d=e(63),f=e(12),c=e(8),h=e(21),u=(0,h.Or)((0,h.Ref)(o.DOMElement),(0,h.Ref)(l.UIElement)),_=h.Str;class m extends o.DOMElementView{constructor(){super(...arguments),this._refs=new Map}get refs(){const{html:e,refs:t}=this.model;return[...(0,c.isArray)(e)?e.filter((e=>!(0,c.isString)(e))):[],...t]}*children(){yield*super.children(),yield*this._refs.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,a.build_views)(this._refs,this.refs)}remove(){(0,a.remove_views)(this._refs),super.remove()}render(){super.render();const e=(()=>{const{html:e}=this.model;return(0,c.isArray)(e)?e.map((e=>(0,c.isString)(e)?e:``)).join(""):e})(),t=(()=>(0,c.isString)(e)?this.parse_html(e):[e])();this.el.append(...t),this.finish()}parse_html(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=t.createNodeIterator(t,NodeFilter.SHOW_ELEMENT,(e=>"ref"==e.nodeName.toLowerCase()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT));let i;e:for(;null!=(i=r.nextNode());){(0,f.assert)(i instanceof Element);const e=i.getAttribute("id");if(null!=e){for(const[t,r]of this._refs)if(t.id==e){r.render(),i.replaceWith(r.el);continue e}i.replaceWith((0,d.span)(``));continue}const t=i.getAttribute("name");if(null==t);else{for(const[e,r]of this._refs)if(e.name==t){r.render(),i.replaceWith(r.el);continue e}i.replaceWith((0,d.span)(``))}}return[...t.body.childNodes]}}r.HTMLView=m,m.__name__="HTMLView";class p extends o.DOMElement{constructor(e){super(e)}}r.HTML=p,n=p,p.__name__="HTML",n.prototype.default_view=m,n.define((({Node:e,List:t,Or:r})=>({html:[r(e,_,t(r(_,u)))],refs:[t(u),[]]})))}, +function _(e,o,t,r,n){var s;r();const a=e(51),d=e(341);class _ extends a.Model{constructor(e){super(e)}get node_coordinates(){return new u({layout:this})}get edge_coordinates(){return new i({layout:this})}}t.LayoutProvider=_,_.__name__="LayoutProvider";class c extends d.CoordinateTransform{constructor(e){super(e)}}t.GraphCoordinates=c,s=c,c.__name__="GraphCoordinates",s.define((({Ref:e})=>({layout:[e(_)]})));class u extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_node_coordinates(e);return{x:o,y:t}}}t.NodeCoordinates=u,u.__name__="NodeCoordinates";class i extends c{constructor(e){super(e)}_v_compute(e){const[o,t]=this.layout.get_edge_coordinates(e);return{x:o,y:t}}}t.EdgeCoordinates=i,i.__name__="EdgeCoordinates"}, +function _(t,a,e,r,o){var n;r();const s=t(399),i=t(9),l=t(21);e.GraphLayout=(0,l.Or)((0,l.Dict)((0,l.Arrayable)(l.Float)),(0,l.Mapping)((0,l.Or)(l.Int,l.Str),(0,l.Arrayable)(l.Float)));class c extends s.LayoutProvider{constructor(t){super(t)}get_node_coordinates(t){const a=(0,i.dict)(t.data).get("index")??[],e=a.length,r=new Float64Array(e),o=new Float64Array(e),n=(0,i.dict)(this.graph_layout);for(let t=0;t({graph_layout:[e.GraphLayout,new Map]})))}, +function _(i,d,n,r,G){r(),G("Grid",i(402).Grid)}, +function _(i,e,s,t,n){var r;t();const o=i(1),a=i(266),d=i(190),_=i(191),l=o.__importStar(i(80)),h=i(8);class u extends d.GuideRendererView{_paint(){const i=this.layer.ctx;i.save(),this._draw_regions(i),this._draw_minor_grids(i),this._draw_grids(i),i.restore()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_paint()))}_draw_regions(i){if(!this.visuals.band_fill.doit&&!this.visuals.band_hatch.doit)return;const[e,s]=this.grid_coords("major",!1);for(let t=0;ts[1]&&(n=s[1]);else{[t,n]=s;for(const i of this.plot_view.axis_views)i.dimension==this.model.dimension&&i.model.x_range_name==this.model.x_range_name&&i.model.y_range_name==this.model.y_range_name&&([t,n]=i.computed_bounds)}return[t,n]}grid_coords(i,e=!0){const s=this.model.dimension,t=1-s,[n,r]=this.ranges(),[o,a]=(()=>{const[i,e]=this.computed_bounds();return[Math.min(i,e),Math.max(i,e)]})(),d=[[],[]],_=this.model.get_ticker();if(null==_)return d;const l=_.get_ticks(o,a,n,r.min)[i],h=n.min,u=n.max,[c,m]=(()=>{const{cross_bounds:i}=this.model;return"auto"==i?[r.min,r.max]:i})();e||(l[0]!=h&&l.splice(0,0,h),l[l.length-1]!=u&&l.push(u));for(let i=0;i({bounds:[r(n(i,i),e),"auto"],cross_bounds:[r(n(i,i),e),"auto"],dimension:[s(0,1),0],axis:[o(t(a.Axis)),null],ticker:[o(t(_.Ticker)),null]}))),r.override({level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#e5e5e5",minor_grid_line_color:null})}, +function _(o,x,B,a,l){a(),l("Column",o(404).Column),l("FlexBox",o(405).FlexBox),l("GridBox",o(411).GridBox),l("GroupBox",o(413).GroupBox),l("HBox",o(415).HBox),l("LayoutDOM",o(406).LayoutDOM),l("Row",o(416).Row),l("ScrollBox",o(417).ScrollBox),l("Spacer",o(418).Spacer),l("TabPanel",o(419).TabPanel),l("Tabs",o(423).Tabs),l("VBox",o(425).VBox)}, +function _(e,o,n,t,s){var u;t();const _=e(405);class c extends _.FlexBoxView{constructor(){super(...arguments),this._direction="column"}}n.ColumnView=c,c.__name__="ColumnView";class l extends _.FlexBox{constructor(e){super(e)}}n.Column=l,u=l,l.__name__="Column",u.prototype.default_view=c}, +function _(t,e,i,o,s){var n;o();const a=t(406),c=t(410),l=t(259),r=t(111),h=t(63);class d extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{children:t}=this.model.properties;this.on_change(t,(()=>this.update_children()))}get child_models(){return this.model.children}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flex"}}_update_layout(){super._update_layout(),this.style.append(":host",{flex_direction:this._direction,gap:(0,h.px)(this.model.spacing)});const t=new l.Container;let e=0,i=0;for(const o of this.child_views){if(!(o instanceof a.LayoutDOMView))continue;const s=o.box_sizing(),n=(()=>{const t="row"==this._direction?s.width_policy:s.height_policy,e="row"==this._direction?s.width:s.height,i=null!=e?(0,h.px)(e):"auto";switch(t){case"auto":case"fixed":return`0 0 ${i}`;case"fit":return"1 1 auto";case"min":return"0 1 auto";case"max":return"1 0 0px"}})(),c=(()=>{switch("row"==this._direction?s.height_policy:s.width_policy){case"auto":case"fixed":case"fit":case"min":return"row"==this._direction?s.valign:s.halign;case"max":return"stretch"}})();o.style.append(":host",{flex:n,align_self:c}),"row"==this._direction?"max"==s.height_policy&&o.style.append(":host",{height:"auto"}):"max"==s.width_policy&&o.style.append(":host",{width:"auto"}),null!=o.layout&&(t.add({r0:e,c0:i,r1:e+1,c1:i+1},o),"row"==this._direction?i+=1:e+=1)}0!=t.size?(this.layout=new c.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}}i.FlexBoxView=d,d.__name__="FlexBoxView";class _ extends a.LayoutDOM{constructor(t){super(t)}}i.FlexBox=_,n=_,_.__name__="FlexBox",n.define((({Float:t,List:e,Ref:i})=>({children:[e(i(r.UIElement)),[]],spacing:[t,0]})))}, +function _(t,e,i,s,o){var a;s();const l=t(407),n=t(19),r=t(15),h=t(20),u=t(63),_=t(8),c=t(56),d=t(257),p=t(112),f=t(12);class m extends l.PaneView{constructor(){super(...arguments),this._child_views=new Map,this.mouseenter=new r.Signal(this,"mouseenter"),this.mouseleave=new r.Signal(this,"mouseleave"),this.disabled=new r.Signal(this,"disabled"),this._auto_width="fit-content",this._auto_height="fit-content",this._layout_computed=!1}get is_layout_root(){return this.is_root||!(this.parent instanceof m)}_after_resize(){super._after_resize(),this.is_layout_root&&!this._was_built?(n.logger.warn(`${this} wasn't built properly`),this.render(),this.r_after_render()):this.compute_layout()}async lazy_initialize(){await super.lazy_initialize(),await this.build_child_views()}remove(){for(const t of this.child_views)t.remove();this._child_views.clear(),super.remove()}connect_signals(){super.connect_signals(),this.el.addEventListener("mouseenter",(t=>{this.mouseenter.emit(t)})),this.el.addEventListener("mouseleave",(t=>{this.mouseleave.emit(t)})),this.parent instanceof m&&this.connect(this.parent.disabled,(t=>{this.disabled.emit(t||this.model.disabled)}));const t=this.model.properties;this.on_change(t.disabled,(()=>{this.disabled.emit(this.model.disabled)})),this.on_change([t.css_classes,t.stylesheets,t.width,t.height,t.min_width,t.min_height,t.max_width,t.max_height,t.margin,t.width_policy,t.height_policy,t.flow_mode,t.sizing_mode,t.aspect_ratio,t.visible],(()=>this.invalidate_layout()))}*children(){yield*super.children(),yield*this.child_views}get child_views(){return this.child_models.map((t=>this._child_views.get(t))).filter((t=>null!=t))}get layoutable_views(){return this.child_views.filter((t=>t instanceof m))}async build_child_views(){const{created:t,removed:e}=await(0,c.build_views)(this._child_views,this.child_models,{parent:this});for(const t of e)this._resize_observer.unobserve(t.el);for(const e of t)this._resize_observer.observe(e.el,{box:"border-box"});return t}render(){super.render();for(const t of this.child_views){const e=t.rendering_target()??this.shadow_el;t.render_to(e)}}_update_children(){}async update_children(){const t=await this.build_child_views(),e=new Set(t);for(const t of this.child_views)t.el.remove();for(const t of this.child_views){const i=e.has(t),s=t.rendering_target()??this.shadow_el;i?t.render_to(s):s.append(t.el)}this.r_after_render(),this._update_children(),this.invalidate_layout()}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flow"}}_update_layout(){function t(t,e,i,s){switch(t){case"auto":return null!=e?(0,u.px)(e):i;case"fixed":return null!=e?(0,u.px)(e):"fit-content";case"fit":return"fit-content";case"min":return"min-content";case"max":return null==s?"100%":`calc(100% - ${s})`}}function e(t){return(0,_.isNumber)(t)?(0,u.px)(t):`${t.percent}%`}const i={},s=this._intrinsic_display();i.display=function(t){const{inner:e,outer:i}=t;switch(`${e} ${i}`){case"block flow":return"block";case"inline flow":return"inline";case"block flow-root":return"flow-root";case"inline flow-root":return"inline-block";case"block flex":return"flex";case"inline flex":return"inline-flex";case"block grid":return"grid";case"inline grid":return"inline-grid";case"block table":return"table";case"inline table":return"inline-table";default:(0,f.unreachable)()}}(s);const o=this.box_sizing(),{width_policy:a,height_policy:l,width:n,height:r,aspect_ratio:h}=o,c=(()=>{if("auto"==h){if(null!=n&&null!=r)return n/r}else if((0,_.isNumber)(h))return h;return null})();"auto"==h?i.aspect_ratio=null!=n&&null!=r?`${n} / ${r}`:"auto":(0,_.isNumber)(h)&&(i.aspect_ratio=`${h}`);const{margin:d}=this.model,p=(()=>{if(null!=d){if((0,_.isNumber)(d))return i.margin=(0,u.px)(d),{width:(0,u.px)(2*d),height:(0,u.px)(2*d)};if(2==d.length){const[t,e]=d;return i.margin=`${(0,u.px)(t)} ${(0,u.px)(e)}`,{width:(0,u.px)(2*e),height:(0,u.px)(2*t)}}{const[t,e,s,o]=d;return i.margin=`${(0,u.px)(t)} ${(0,u.px)(e)} ${(0,u.px)(s)} ${(0,u.px)(o)}`,{width:(0,u.px)(o+e),height:(0,u.px)(t+s)}}}return{width:null,height:null}})(),[m,w]=(()=>{const e=t(a,n,this._auto_width,p.width),i=t(l,r,this._auto_height,p.height);if(null!=h){if(a!=l)return"fixed"==a?[e,"auto"]:"fixed"==l?["auto",i]:"max"==a?[e,"auto"]:"max"==l?["auto",i]:["auto","auto"];if("fixed"!=a&&"fixed"!=l&&null!=c)return c>=1?[e,"auto"]:["auto",i]}return[e,i]})();i.width=m,i.height=w;const{min_width:y,max_width:g}=this.model,{min_height:b,max_height:x}=this.model;i.min_width=null==y?"0px":e(y),i.min_height=null==b?"0px":e(b),this.is_layout_root?(null!=g&&(i.max_width=e(g)),null!=x&&(i.max_height=e(x))):(null!=g?i.max_width=`min(${e(g)}, 100%)`:"fixed"!=a&&(i.max_width="100%"),null!=x?i.max_height=`min(${e(x)}, 100%)`:"fixed"!=l&&(i.max_height="100%"));const{resizable:v}=this.model;if(!1!==v){const t=(()=>{switch(v){case"width":return"horizontal";case"height":return"vertical";case!0:case"both":return"both"}})();i.resize=t,i.overflow="auto"}this.style.append(":host",i)}update_layout(){this.update_style();for(const t of this.layoutable_views)t.update_layout();this._update_layout()}get is_managed(){return this.parent instanceof m}_measure_layout(){}measure_layout(){for(const t of this.layoutable_views)t.measure_layout();this._measure_layout()}compute_layout(){this.parent instanceof m?this.parent.compute_layout():(this.measure_layout(),this.update_bbox(),this._compute_layout(),this.after_layout()),this._layout_computed=!0}_compute_layout(){if(null!=this.layout){this.layout.compute(this.bbox.size);for(const t of this.layoutable_views)null==t.layout?t._compute_layout():t._propagate_layout()}else for(const t of this.layoutable_views)t._compute_layout()}_propagate_layout(){for(const t of this.layoutable_views)null==t.layout&&t._compute_layout()}update_bbox(){for(const t of this.layoutable_views)t.update_bbox();const t=super.update_bbox();return null!=this.layout&&(this.layout.visible=this.is_displayed),t}_after_layout(){}after_layout(){for(const t of this.layoutable_views)t.after_layout();this._after_layout()}_after_render(){this.is_managed||this.invalidate_layout()}invalidate_layout(){this.parent instanceof m?this.parent.invalidate_layout():(this.update_layout(),this.compute_layout())}invalidate_render(){this.render(),this.invalidate_layout()}has_finished(){if(!super.has_finished())return!1;if(this.is_layout_root&&!this._layout_computed)return!1;for(const t of this.child_views)if(!t.has_finished())return!1;return!0}box_sizing(){let{width_policy:t,height_policy:e,aspect_ratio:i}=this.model;const{sizing_mode:s}=this.model;if(null!=s)if("inherit"==s){if(this.parent instanceof m){const s=this.parent.box_sizing();t=s.width_policy,e=s.height_policy,null==i&&(i=s.aspect_ratio)}}else if("fixed"==s)t=e="fixed";else if("stretch_both"==s)t=e="max";else if("stretch_width"==s)t="max";else if("stretch_height"==s)e="max";else switch(null==i&&(i="auto"),s){case"scale_width":t="max",e="min";break;case"scale_height":t="min",e="max";break;case"scale_both":t="max",e="max"}const[o,a]=(()=>{const{align:t}=this.model;return"auto"==t?[void 0,void 0]:(0,_.isArray)(t)?t:[t,t]})(),{width:l,height:n}=this.model;return{width_policy:t,height_policy:e,width:l,height:n,aspect_ratio:i,halign:o,valign:a}}export(t="auto",e=!0){const i=(()=>{switch(t){case"auto":case"png":return"canvas";case"svg":return"svg"}})(),s=new p.CanvasLayer(i,e),{x:o,y:a,width:l,height:n}=this.bbox;s.resize(l,n);const r=getComputedStyle(this.el).backgroundColor;s.ctx.fillStyle=r,s.ctx.fillRect(o,a,l,n);for(const i of this.child_views){const o=i.export(t,e),{x:a,y:l}=i.bbox.scale(s.pixel_ratio);s.ctx.drawImage(o.canvas,a,l)}return s}}i.LayoutDOMView=m,m.__name__="LayoutDOMView";class w extends l.Pane{constructor(t){super(t)}}i.LayoutDOM=w,a=w,w.__name__="LayoutDOM",a.define((t=>{const{Bool:e,Float:i,Auto:s,Tuple:o,Or:a,Null:l,Nullable:n}=t,r=o(i,i),u=o(i,i,i,i);return{width:[n(i),null],height:[n(i),null],min_width:[n(i),null],min_height:[n(i),null],max_width:[n(i),null],max_height:[n(i),null],margin:[n(a(i,r,u)),null],width_policy:[a(d.SizingPolicy,s),"auto"],height_policy:[a(d.SizingPolicy,s),"auto"],aspect_ratio:[a(i,s,l),null],flow_mode:[h.FlowMode,"block"],sizing_mode:[n(h.SizingMode),null],disabled:[e,!1],align:[a(h.Align,o(h.Align,h.Align),s),"auto"],resizable:[a(e,h.Dimensions),!1]}}))}, +function _(e,t,s,n,i){var r;n();const _=e(111),l=e(125),a=e(408),o=e(56),m=e(21);s.ElementLike=(0,m.Or)((0,m.Ref)(_.UIElement),(0,m.Ref)(l.DOMNode),(0,m.Ref)(a.HTML));class h extends _.UIElementView{constructor(){super(...arguments),this._element_views=new Map}get elements(){return this.model.elements}get element_views(){return this.elements.map((e=>this._element_views.get(e)))}*children(){yield*super.children(),yield*this.element_views}async lazy_initialize(){await super.lazy_initialize(),await this._build_elements()}async _build_elements(){return await(0,o.build_views)(this._element_views,this.elements,{parent:this})}async _update_elements(){const{created:e}=await this._build_elements(),t=new Set(e);for(const e of this.element_views)e.el.remove();for(const e of this.element_views){const s=t.has(e),n=e.rendering_target()??this.shadow_el;s?e.render_to(n):n.append(e.el)}this.r_after_render()}remove(){(0,o.remove_views)(this._element_views),super.remove()}connect_signals(){super.connect_signals();const{elements:e}=this.model.properties;this.on_change(e,(async()=>{await this._update_elements()}))}render(){super.render();for(const e of this.element_views){const t=e.rendering_target()??this.shadow_el;e.render_to(t)}}has_finished(){if(!super.has_finished())return!1;for(const e of this.element_views)if(!e.has_finished())return!1;return!0}}s.PaneView=h,h.__name__="PaneView";class d extends _.UIElement{constructor(e){super(e)}}s.Pane=d,r=d,d.__name__="Pane",r.prototype.default_view=h,r.define((({List:e})=>({elements:[e(s.ElementLike),[]]})))}, +function _(e,t,r,i,s){var n;i();const o=e(409),l=e(111),a=e(56),d=e(63),f=e(12),c=e(8),h=e(21),u=(0,h.Or)((0,h.Ref)(o.DOMElement),(0,h.Ref)(l.UIElement)),_=h.Str;class m extends o.DOMElementView{constructor(){super(...arguments),this._refs=new Map}get refs(){const{html:e,refs:t}=this.model;return[...(0,c.isArray)(e)?e.filter((e=>!(0,c.isString)(e))):[],...t]}*children(){yield*super.children(),yield*this._refs.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,a.build_views)(this._refs,this.refs)}remove(){(0,a.remove_views)(this._refs),super.remove()}render(){super.render();const e=(()=>{const{html:e}=this.model;return(0,c.isArray)(e)?e.map((e=>(0,c.isString)(e)?e:``)).join(""):e})(),t=(()=>(0,c.isString)(e)?this.parse_html(e):[e])();this.el.append(...t),this.finish()}parse_html(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=t.createNodeIterator(t,NodeFilter.SHOW_ELEMENT,(e=>"ref"==e.nodeName.toLowerCase()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT));let i;e:for(;null!=(i=r.nextNode());){(0,f.assert)(i instanceof Element);const e=i.getAttribute("id");if(null!=e){for(const[t,r]of this._refs)if(t.id==e){r.render(),i.replaceWith(r.el);continue e}i.replaceWith((0,d.span)(``));continue}const t=i.getAttribute("name");if(null==t);else{for(const[e,r]of this._refs)if(e.name==t){r.render(),i.replaceWith(r.el);continue e}i.replaceWith((0,d.span)(``))}}return[...t.body.childNodes]}}r.HTMLView=m,m.__name__="HTMLView";class p extends o.DOMElement{constructor(e){super(e)}}r.HTML=p,n=p,p.__name__="HTML",n.prototype.default_view=m,n.define((({Node:e,List:t,Or:r})=>({html:[r(e,_,t(r(_,u)))],refs:[t(u),[]]})))}, function _(e,i,s,t,l){var n;t();const r=e(125),d=e(84),h=e(111),c=e(56),o=e(8),a=e(65),_=e(63);class m extends r.DOMNodeView{constructor(){super(...arguments),this.child_views=new Map}*children(){yield*super.children(),yield*this.child_views.values()}async lazy_initialize(){await super.lazy_initialize();const e=this.model.children.filter((e=>!(0,o.isString)(e)));await(0,c.build_views)(this.child_views,e,{parent:this})}remove(){(0,c.remove_views)(this.child_views),super.remove()}render(){(0,_.empty)(this.el),(0,a.apply_styles)(this.el.style,this.model.style);for(const e of this.model.children)if((0,o.isString)(e)){const i=document.createTextNode(e);this.el.appendChild(i)}else{this.child_views.get(e).render_to(this.el)}this.finish()}}s.DOMElementView=m,m.__name__="DOMElementView";class w extends r.DOMNode{constructor(e){super(e)}}s.DOMElement=w,n=w,w.__name__="DOMElement",n.define((({Str:e,List:i,Or:s,Ref:t})=>({style:[d.StylesLike,{}],children:[i(s(e,t(r.DOMNode),t(h.UIElement))),[]]})))}, function _(t,o,e,r,i){r();const n=t(175),h=t(64),l=t(12),{max:s}=Math;class f extends n.Layoutable{constructor(t){super(),this.children=t}_measure(t){return{width:0,height:0}}compute(t={}){const{width:o,height:e}=t;(0,l.assert)(null!=o&&null!=e);const r={width:o,height:e},i=new h.BBox({left:0,top:0,width:o,height:e});let n;if(null!=r.inner){const{left:t,top:i,right:l,bottom:s}=r.inner;n=new h.BBox({left:t,top:i,right:o-l,bottom:e-s})}this.set_geometry(i,n)}_set_geometry(t,o){super._set_geometry(t,o);const e=this.children.map(((t,o)=>{const{layout:e,bbox:r}=o;(0,l.assert)(null!=e);const i=e.measure(r);return{child:o,layout:e,bbox:r,size_hint:i}})),r=Array(e.nrows).fill(null).map((()=>({top:0,bottom:0}))),i=Array(e.ncols).fill(null).map((()=>({left:0,right:0})));e.foreach((({r0:t,c0:o,r1:e,c1:n},{size_hint:h})=>{const{inner:l}=h;null!=l&&(i[o].left=s(i[o].left,l.left),i[n].right=s(i[n].right,l.right),r[t].top=s(r[t].top,l.top),r[e].bottom=s(r[e].bottom,l.bottom))})),e.foreach((({r0:t,c0:o,r1:e,c1:n},{layout:l,size_hint:s,bbox:f})=>{const g=f,m=null==s.inner?void 0:(()=>{const{inner:l,align:f}=s,m=f?.left??!0,u=f?.right??!0,c=f?.top??!0,b=f?.bottom??!0,p=f?.fixed_width??!1,a=f?.fixed_height??!1,{left:d,right:_}=(()=>{if(p){const t=g.width-l.right-l.left;if(m){const e=i[o].left;return{left:e,right:g.width-(e+t)}}if(u){const o=i[n].right;return{left:g.width-(o+t),right:o}}return{left:l.left,right:l.right}}return{left:m?i[o].left:l.left,right:u?i[n].right:l.right}})(),{top:w,bottom:y}=(()=>{if(a){const o=g.height-l.bottom-l.top;if(c){const e=r[t].top;return{top:e,bottom:g.height-(e+o)}}if(b){const t=r[e].bottom;return{top:g.height-(t+o),bottom:t}}return{top:l.top,bottom:l.bottom}}return{top:c?r[t].top:l.top,bottom:b?r[e].bottom:l.bottom}})(),{width:x,height:B}=g;return h.BBox.from_lrtb({left:d,top:w,right:x-_,bottom:B-y})})();l.set_geometry(g,m)}))}}e.GridAlignmentLayout=f,f.__name__="GridAlignmentLayout"}, -function _(e,i,s,n,r){var t;n();const o=e(405),l=e(185),c=e(111);class d extends o.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:i,cols:s}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([i,s],(()=>this.invalidate_layout()))}get _children(){return this.model.children}get _rows(){return this.model.rows}get _cols(){return this.model.cols}}s.GridBoxView=d,d.__name__="GridBoxView";class _ extends o.CSSGridBox{constructor(e){super(e)}}s.GridBox=_,t=_,_.__name__="GridBox",t.prototype.default_view=d,t.define((({List:e,Nullable:i})=>({children:[e((0,l.GridChild)(c.UIElement)),[]],rows:[i(l.TracksSizing),null],cols:[i(l.TracksSizing),null]})))}, -function _(i,n,s,t,e){var o;t();const a=i(399),r=i(403),l=i(185),c=i(63),_=i(258),d=i(34),u=i(8),{max:p}=Math;class g extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{spacing:i}=this.model.properties;this.on_change(i,(()=>this.invalidate_layout()))}get child_models(){return this._children.map((([i])=>i))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout();const i={},[n,s]=(()=>{const{spacing:i}=this.model;return(0,u.isNumber)(i)?[i,i]:i})();i.row_gap=(0,c.px)(n),i.column_gap=(0,c.px)(s);let t=0,e=0;const o=new _.Container;for(const[[,i,n,s=1,r=1],l]of(0,d.enumerate)(this._children)){const c=this.child_views[l];t=p(t,i+s),e=p(e,n+r);const _={};if(_.grid_row_start=`${i+1}`,_.grid_row_end=`span ${s}`,_.grid_column_start=`${n+1}`,_.grid_column_end=`span ${r}`,c.style.append(":host",_),c instanceof a.LayoutDOMView&&null!=c.layout){const t=i,e=n,a=i+s-1,l=n+r-1;o.add({r0:t,c0:e,r1:a,c1:l},c)}}const{_rows:l,_cols:g}=this;function h(i,n){if(i instanceof Map)for(const[s,t]of i.entries())(0,u.isString)(t)?n[s].size=t:n[s]=t;else if((0,u.isArray)(i))for(const[s,t]of(0,d.enumerate)(i))(0,u.isString)(s)?n[t].size=s:n[t]=s;else if(null!=i)for(const s of n)(0,u.isString)(i)?s.size=i:(s.size=i.size,s.align=i.align)}l instanceof Map?t=p(t,...l.keys()):(0,u.isArray)(l)&&(t=p(t,l.length)),g instanceof Map?e=p(e,...g.keys()):(0,u.isArray)(g)&&(e=p(e,g.length));const f=Array(t).fill(null).map((()=>({}))),m=Array(e).fill(null).map((()=>({})));h(l,f),h(g,m);for(const[[,i,n],s]of(0,d.enumerate)(this._children)){const t=this.child_views[s],{halign:e,valign:o}=t.box_sizing();t.style.append(":host",{justify_self:e??m[n].align,align_self:o??f[i].align})}const y="auto";i.grid_template_rows=f.map((({size:i})=>i??y)).join(" "),i.grid_template_columns=m.map((({size:i})=>i??y)).join(" "),this.style.append(":host",i),0!=o.size?(this.layout=new r.GridAlignmentLayout(o),this.layout.set_sizing()):delete this.layout}}s.CSSGridBoxView=g,g.__name__="CSSGridBoxView";class h extends a.LayoutDOM{constructor(i){super(i)}}s.CSSGridBox=h,o=h,h.__name__="CSSGridBox",o.define((()=>({spacing:[l.GridSpacing,0]})))}, -function _(e,t,s,l,i){var c;l();const h=e(1),d=e(399),o=e(111),n=e(63),a=h.__importDefault(e(407));class _ extends d.LayoutDOMView{stylesheets(){return[...super.stylesheets(),a.default]}connect_signals(){super.connect_signals();const{child:e}=this.model.properties;this.on_change(e,(()=>this.update_children()));const{checkable:t,disabled:s}=this.model.properties;this.on_change(t,(()=>{(0,n.display)(this.checkbox_el,this.model.checkable)})),this.on_change(s,(()=>{this.checkbox_el.checked=!this.model.disabled}))}get child_models(){return[this.model.child]}render(){super.render();const{checkable:e,disabled:t,title:s}=this.model;this.checkbox_el=(0,n.input)({type:"checkbox",checked:!t}),this.checkbox_el.addEventListener("change",(()=>{this.model.disabled=!this.checkbox_el.checked})),(0,n.display)(this.checkbox_el,e);const l=(0,n.legend)({},this.checkbox_el,s),i=this.child_views.map((e=>e.el));this.fieldset_el=(0,n.fieldset)({},l,...i),this.shadow_el.appendChild(this.fieldset_el)}_update_children(){const e=this.child_views.map((e=>e.el));this.fieldset_el.append(...e)}}s.GroupBoxView=_,_.__name__="GroupBoxView";class r extends d.LayoutDOM{constructor(e){super(e)}}s.GroupBox=r,c=r,r.__name__="GroupBox",c.prototype.default_view=_,c.define((({Bool:e,Str:t,Nullable:s,Ref:l})=>({title:[s(t),null],child:[l(o.UIElement)],checkable:[e,!1]})))}, +function _(e,i,s,n,r){var t;n();const o=e(412),l=e(185),c=e(111);class d extends o.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:i,cols:s}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([i,s],(()=>this.invalidate_layout()))}get _children(){return this.model.children}get _rows(){return this.model.rows}get _cols(){return this.model.cols}}s.GridBoxView=d,d.__name__="GridBoxView";class _ extends o.CSSGridBox{constructor(e){super(e)}}s.GridBox=_,t=_,_.__name__="GridBox",t.prototype.default_view=d,t.define((({List:e,Nullable:i})=>({children:[e((0,l.GridChild)(c.UIElement)),[]],rows:[i(l.TracksSizing),null],cols:[i(l.TracksSizing),null]})))}, +function _(i,n,s,t,e){var o;t();const a=i(406),r=i(410),l=i(185),c=i(63),_=i(259),d=i(34),u=i(8),{max:p}=Math;class g extends a.LayoutDOMView{connect_signals(){super.connect_signals();const{spacing:i}=this.model.properties;this.on_change(i,(()=>this.invalidate_layout()))}get child_models(){return this._children.map((([i])=>i))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout();const i={},[n,s]=(()=>{const{spacing:i}=this.model;return(0,u.isNumber)(i)?[i,i]:i})();i.row_gap=(0,c.px)(n),i.column_gap=(0,c.px)(s);let t=0,e=0;const o=new _.Container;for(const[[,i,n,s=1,r=1],l]of(0,d.enumerate)(this._children)){const c=this.child_views[l];t=p(t,i+s),e=p(e,n+r);const _={};if(_.grid_row_start=`${i+1}`,_.grid_row_end=`span ${s}`,_.grid_column_start=`${n+1}`,_.grid_column_end=`span ${r}`,c.style.append(":host",_),c instanceof a.LayoutDOMView&&null!=c.layout){const t=i,e=n,a=i+s-1,l=n+r-1;o.add({r0:t,c0:e,r1:a,c1:l},c)}}const{_rows:l,_cols:g}=this;function h(i,n){if(i instanceof Map)for(const[s,t]of i.entries())(0,u.isString)(t)?n[s].size=t:n[s]=t;else if((0,u.isArray)(i))for(const[s,t]of(0,d.enumerate)(i))(0,u.isString)(s)?n[t].size=s:n[t]=s;else if(null!=i)for(const s of n)(0,u.isString)(i)?s.size=i:(s.size=i.size,s.align=i.align)}l instanceof Map?t=p(t,...l.keys()):(0,u.isArray)(l)&&(t=p(t,l.length)),g instanceof Map?e=p(e,...g.keys()):(0,u.isArray)(g)&&(e=p(e,g.length));const f=Array(t).fill(null).map((()=>({}))),m=Array(e).fill(null).map((()=>({})));h(l,f),h(g,m);for(const[[,i,n],s]of(0,d.enumerate)(this._children)){const t=this.child_views[s],{halign:e,valign:o}=t.box_sizing();t.style.append(":host",{justify_self:e??m[n].align,align_self:o??f[i].align})}const y="auto";i.grid_template_rows=f.map((({size:i})=>i??y)).join(" "),i.grid_template_columns=m.map((({size:i})=>i??y)).join(" "),this.style.append(":host",i),0!=o.size?(this.layout=new r.GridAlignmentLayout(o),this.layout.set_sizing()):delete this.layout}}s.CSSGridBoxView=g,g.__name__="CSSGridBoxView";class h extends a.LayoutDOM{constructor(i){super(i)}}s.CSSGridBox=h,o=h,h.__name__="CSSGridBox",o.define((()=>({spacing:[l.GridSpacing,0]})))}, +function _(e,t,s,l,i){var c;l();const h=e(1),d=e(406),o=e(111),n=e(63),a=h.__importDefault(e(414));class _ extends d.LayoutDOMView{stylesheets(){return[...super.stylesheets(),a.default]}connect_signals(){super.connect_signals();const{child:e}=this.model.properties;this.on_change(e,(()=>this.update_children()));const{checkable:t,disabled:s}=this.model.properties;this.on_change(t,(()=>{(0,n.display)(this.checkbox_el,this.model.checkable)})),this.on_change(s,(()=>{this.checkbox_el.checked=!this.model.disabled}))}get child_models(){return[this.model.child]}render(){super.render();const{checkable:e,disabled:t,title:s}=this.model;this.checkbox_el=(0,n.input)({type:"checkbox",checked:!t}),this.checkbox_el.addEventListener("change",(()=>{this.model.disabled=!this.checkbox_el.checked})),(0,n.display)(this.checkbox_el,e);const l=(0,n.legend)({},this.checkbox_el,s),i=this.child_views.map((e=>e.el));this.fieldset_el=(0,n.fieldset)({},l,...i),this.shadow_el.appendChild(this.fieldset_el)}_update_children(){const e=this.child_views.map((e=>e.el));this.fieldset_el.append(...e)}}s.GroupBoxView=_,_.__name__="GroupBoxView";class r extends d.LayoutDOM{constructor(e){super(e)}}s.GroupBox=r,c=r,r.__name__="GroupBox",c.prototype.default_view=_,c.define((({Bool:e,Str:t,Nullable:s,Ref:l})=>({title:[s(t),null],child:[l(o.UIElement)],checkable:[e,!1]})))}, function _(d,a,e,l,i){l(),e.default="legend{display:flex;gap:0.5em;padding:0 calc(var(--padding-horizontal) / 2);}fieldset{border:1px solid #ccc;}"}, -function _(e,n,t,s,l){var i;s();const o=e(405),c=e(185),r=e(111),a=e(21),d=(0,a.Struct)({child:(0,a.Ref)(r.UIElement),col:(0,a.Opt)(c.Index),span:(0,a.Opt)(c.Span)});class _ extends o.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,cols:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,col:n,span:t},s)=>[e,0,n??s,1,t??1]))}get _rows(){return null}get _cols(){return this.model.cols}}t.HBoxView=_,_.__name__="HBoxView";class h extends o.CSSGridBox{constructor(e){super(e)}}t.HBox=h,i=h,h.__name__="HBox",i.prototype.default_view=_,i.define((({List:e,Nullable:n})=>({children:[e(d),[]],cols:[n(c.TracksSizing),null]})))}, -function _(e,o,t,s,_){var n;s();const r=e(398);class c extends r.FlexBoxView{constructor(){super(...arguments),this._direction="row"}}t.RowView=c,c.__name__="RowView";class w extends r.FlexBox{constructor(e){super(e)}}t.Row=w,n=w,w.__name__="Row",n.prototype.default_view=c}, -function _(e,l,o,t,r){var s;t();const a=e(399),c=e(111),i=e(20);class n extends a.LayoutDOMView{stylesheets(){return[...super.stylesheets()]}connect_signals(){super.connect_signals();const{child:e,horizontal_scrollbar:l,vertical_scrollbar:o}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([l,o],(()=>this.invalidate_layout()))}get child_models(){return[this.model.child]}_update_layout(){function e(e){switch(e){case"auto":return"auto";case"visible":return"scroll";case"hidden":return"hidden"}}super._update_layout();const{horizontal_scrollbar:l,vertical_scrollbar:o}=this.model;this.style.append(":host",{overflow_x:e(l),overflow_y:e(o)})}}o.ScrollBoxView=n,n.__name__="ScrollBoxView";class _ extends a.LayoutDOM{constructor(e){super(e)}}o.ScrollBox=_,s=_,_.__name__="ScrollBox",s.prototype.default_view=n,s.define((({Ref:e})=>({child:[e(c.UIElement)],horizontal_scrollbar:[i.ScrollbarPolicy,"auto"],vertical_scrollbar:[i.ScrollbarPolicy,"auto"]})))}, -function _(t,e,a,o,_){var r;o();const s=t(399);class c extends s.LayoutDOMView{constructor(){super(...arguments),this._auto_width="auto",this._auto_height="auto"}get child_models(){return[]}}a.SpacerView=c,c.__name__="SpacerView";class u extends s.LayoutDOM{constructor(t){super(t)}}a.Spacer=u,r=u,u.__name__="Spacer",r.prototype.default_view=c}, -function _(l,e,o,t,n){var a;t();const s=l(413),c=l(51),i=l(111);class d extends c.Model{constructor(l){super(l)}}o.TabPanel=d,a=d,d.__name__="TabPanel",a.define((({Bool:l,Str:e,Ref:o,Nullable:t})=>({title:[e,""],tooltip:[t(o(s.Tooltip)),null],child:[o(i.UIElement)],closable:[l,!1],disabled:[l,!1]})))}, -function _(e,t,i,r,s){var n;r();const o=e(1),l=e(111),a=e(125),h=e(60),c=e(414),_=e(20),u=e(63),d=e(57),p=e(8),f=e(12),w=e(64),g=e(19),v=e(56),m=e(51),b=globalThis.Node,y=o.__importStar(e(415)),x=y,z=o.__importDefault(e(123));class E extends l.UIElementView{constructor(){super(...arguments),this._element_view=null,this._has_rendered=!1}get target(){return this._target}set target(e){this._target=e}_init_target(){const{target:e}=this.model,t=(()=>{if(e instanceof l.UIElement)return this.owner.find_one(e)?.el??null;if(e instanceof c.Selector)return e.find_one(document);if(e instanceof b)return e;{const{parent:e}=this;return e instanceof d.DOMElementView?e.el:null}})();t instanceof Element?this._target=t:(g.logger.warn(`unable to resolve target '${e}' for '${this}'`),this._target=document.body)}initialize(){super.initialize(),this._init_target()}*children(){yield*super.children(),null!=this._element_view&&(yield this._element_view)}async lazy_initialize(){await super.lazy_initialize(),await this._build_content()}async _build_content(){null!=this._element_view&&(this._element_view.remove(),this._element_view=null);const{content:e}=this.model;e instanceof m.Model&&(this._element_view=await(0,v.build_view)(e,{parent:this}))}connect_signals(){super.connect_signals(),this._observer=new ResizeObserver((()=>{this._reposition()})),this._observer.observe(this.target);let e=!1;document.addEventListener("scroll",this._scroll_listener=()=>{e||(requestAnimationFrame((()=>{this._reposition(),e=!1})),e=!0)},{capture:!0});const{target:t,content:i,closable:r,interactive:s,position:n,attachment:o,visible:l}=this.model.properties;this.on_change(t,(()=>{this._init_target(),this._observer.disconnect(),this._observer.observe(this.target),this.render(),this.after_render()})),this.on_change(i,(async()=>{await this._build_content(),this.render(),this.after_render()})),this.on_change([r,s],(()=>{this.render(),this.after_render()})),this.on_change([n,o,l],(()=>{this._reposition()}))}disconnect_signals(){null!=this._scroll_listener&&(document.removeEventListener("scroll",this._scroll_listener,{capture:!0}),delete this._scroll_listener),super.disconnect_signals()}remove(){this._element_view?.remove(),this._observer.disconnect(),super.remove()}stylesheets(){return[...super.stylesheets(),y.default,z.default]}get content(){const{content:e}=this.model;return(0,p.isString)(e)?document.createTextNode(e):e instanceof m.Model?((0,f.assert)(null!=this._element_view),this._element_view.el):e}render(){super.render();const{_element_view:e}=this;null!=e&&(e.render(),e.r_after_render()),this.arrow_el=(0,u.div)({class:[x.arrow]}),this.content_el=(0,u.div)({class:x.tooltip_content},this.content),this.shadow_el.append(this.arrow_el,this.content_el),this.class_list.toggle(x.closable,this.model.closable);const t=(0,u.div)({class:x.close});this.shadow_el.append(t),t.addEventListener("click",(()=>{this.model.visible=!1})),this.el.classList.toggle(x.show_arrow,this.model.show_arrow),this.el.classList.toggle(x.non_interactive,!this.model.interactive),this._has_rendered=!0}_after_render(){super._after_render(),this._reposition()}_after_resize(){super._after_resize(),this._reposition()}_anchor_to_align(e){e=(()=>{switch(e){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right";default:return e}})();const[t,i]=e.split("_");return{v:t,h:i}}_reposition(){const e=document.body.shadowRoot??document.body;if(!this._has_rendered)return this.render_to(e),void this.after_render();const{position:t,visible:i}=this.model;if(null==t||!i)return void this.el.remove();e.append(this.el);const r=(0,u.bounding_box)(this.target),[s,n]=(()=>{if((0,p.isString)(t)){const{v:e,h:i}=this._anchor_to_align(t);return[(()=>{switch(i){case"left":return r.left;case"center":return r.hcenter;case"right":return r.right}})(),(()=>{switch(e){case"top":return r.top;case"center":return r.vcenter;case"bottom":return r.bottom}})()]}if((0,p.isArray)(t)){const[e,i]=t;return[r.left+e,r.top+i]}{const{x:e,y:i}=this.resolve_as_xy(t);return[r.left+e,r.top+i]}})(),o=new w.BBox({x:0,y:0,width:window.innerWidth,height:window.innerHeight}),l=(0,u.box_size)(this.arrow_el),a=(()=>{const e=(()=>{const{attachment:e}=this.model;if("auto"==e){if((0,p.isString)(t)){const{v:e,h:i}=this._anchor_to_align(t);if("center"!=i)return"left"==i?"left":"right";if("center"!=e)return"top"==e?"above":"below"}return"horizontal"}return e})(),i=(0,u.box_size)(this.el),a=i.width+l.width,h=i.height+l.height;switch(e){case"horizontal":return s=o.left?"left":"right";case"vertical":return n=o.top?"above":"below";default:return e}})();this.class_list.remove(x.right,x.left,x.above,x.below),this.class_list.add((()=>{switch(a){case"left":return x.right;case"right":return x.left;case"above":return x.below;case"below":return x.above}})()),this.arrow_el.style.left=`${s}px`,this.arrow_el.style.top=`${n}px`;const{left:h,top:c}=(()=>{const{width:e,height:t}=(0,u.box_size)(this.el);function i(e){return eo.bottom?o.bottom-t:e}function r(t){return to.right?o.right-e:t}switch(a){case"left":return{left:s-e-l.width,top:i(n-t/2)};case"right":return{left:s+l.width,top:i(n-t/2)};case"above":return{left:r(s-e/2),top:n-t-l.height};case"below":return{left:r(s-e/2),top:n+l.height}}})();this.el.style.top=`${c}px`,this.el.style.left=`${h}px`}}i.TooltipView=E,E.__name__="TooltipView";class T extends l.UIElement{constructor(e){super(e)}show({x:e,y:t}){this.setv({position:[e,t],visible:!0},{check_eq:!1})}clear(){this.position=null}}i.Tooltip=T,n=T,T.__name__="Tooltip",n.prototype.default_view=E,n.define((({Bool:e,Float:t,Str:i,Tuple:r,Or:s,Ref:n,Nullable:o,Auto:u})=>({target:[s(n(l.UIElement),n(c.Selector),n(b),u),"auto"],position:[o(s(_.Anchor,r(t,t),n(h.Coordinate))),null],content:[s(i,n(a.DOMNode),n(l.UIElement),n(b))],attachment:[s(_.TooltipAttachment,u),"auto"],show_arrow:[e,!0],closable:[e,!1],interactive:[e,!0]}))),n.override({visible:!1})}, +function _(e,n,t,s,l){var i;s();const o=e(412),c=e(185),r=e(111),a=e(21),d=(0,a.Struct)({child:(0,a.Ref)(r.UIElement),col:(0,a.Opt)(c.Index),span:(0,a.Opt)(c.Span)});class _ extends o.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,cols:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,col:n,span:t},s)=>[e,0,n??s,1,t??1]))}get _rows(){return null}get _cols(){return this.model.cols}}t.HBoxView=_,_.__name__="HBoxView";class h extends o.CSSGridBox{constructor(e){super(e)}}t.HBox=h,i=h,h.__name__="HBox",i.prototype.default_view=_,i.define((({List:e,Nullable:n})=>({children:[e(d),[]],cols:[n(c.TracksSizing),null]})))}, +function _(e,o,t,s,_){var n;s();const r=e(405);class c extends r.FlexBoxView{constructor(){super(...arguments),this._direction="row"}}t.RowView=c,c.__name__="RowView";class w extends r.FlexBox{constructor(e){super(e)}}t.Row=w,n=w,w.__name__="Row",n.prototype.default_view=c}, +function _(e,l,o,t,r){var s;t();const a=e(406),c=e(111),i=e(20);class n extends a.LayoutDOMView{stylesheets(){return[...super.stylesheets()]}connect_signals(){super.connect_signals();const{child:e,horizontal_scrollbar:l,vertical_scrollbar:o}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change([l,o],(()=>this.invalidate_layout()))}get child_models(){return[this.model.child]}_update_layout(){function e(e){switch(e){case"auto":return"auto";case"visible":return"scroll";case"hidden":return"hidden"}}super._update_layout();const{horizontal_scrollbar:l,vertical_scrollbar:o}=this.model;this.style.append(":host",{overflow_x:e(l),overflow_y:e(o)})}}o.ScrollBoxView=n,n.__name__="ScrollBoxView";class _ extends a.LayoutDOM{constructor(e){super(e)}}o.ScrollBox=_,s=_,_.__name__="ScrollBox",s.prototype.default_view=n,s.define((({Ref:e})=>({child:[e(c.UIElement)],horizontal_scrollbar:[i.ScrollbarPolicy,"auto"],vertical_scrollbar:[i.ScrollbarPolicy,"auto"]})))}, +function _(t,e,a,o,_){var r;o();const s=t(406);class c extends s.LayoutDOMView{constructor(){super(...arguments),this._auto_width="auto",this._auto_height="auto"}get child_models(){return[]}}a.SpacerView=c,c.__name__="SpacerView";class u extends s.LayoutDOM{constructor(t){super(t)}}a.Spacer=u,r=u,u.__name__="Spacer",r.prototype.default_view=c}, +function _(l,e,o,t,n){var a;t();const s=l(420),c=l(51),i=l(111);class d extends c.Model{constructor(l){super(l)}}o.TabPanel=d,a=d,d.__name__="TabPanel",a.define((({Bool:l,Str:e,Ref:o,Nullable:t})=>({title:[e,""],tooltip:[t(o(s.Tooltip)),null],child:[o(i.UIElement)],closable:[l,!1],disabled:[l,!1]})))}, +function _(e,t,i,r,s){var n;r();const o=e(1),l=e(111),a=e(125),h=e(60),c=e(421),_=e(20),u=e(63),d=e(57),p=e(8),f=e(12),w=e(64),g=e(19),v=e(56),m=e(51),b=globalThis.Node,y=o.__importStar(e(422)),x=y,z=o.__importDefault(e(123));class E extends l.UIElementView{constructor(){super(...arguments),this._element_view=null,this._has_rendered=!1}get target(){return this._target}set target(e){this._target=e}_init_target(){const{target:e}=this.model,t=(()=>{if(e instanceof l.UIElement)return this.owner.find_one(e)?.el??null;if(e instanceof c.Selector)return e.find_one(document);if(e instanceof b)return e;{const{parent:e}=this;return e instanceof d.DOMElementView?e.el:null}})();t instanceof Element?this._target=t:(g.logger.warn(`unable to resolve target '${e}' for '${this}'`),this._target=document.body)}initialize(){super.initialize(),this._init_target()}*children(){yield*super.children(),null!=this._element_view&&(yield this._element_view)}async lazy_initialize(){await super.lazy_initialize(),await this._build_content()}async _build_content(){null!=this._element_view&&(this._element_view.remove(),this._element_view=null);const{content:e}=this.model;e instanceof m.Model&&(this._element_view=await(0,v.build_view)(e,{parent:this}))}connect_signals(){super.connect_signals(),this._observer=new ResizeObserver((()=>{this._reposition()})),this._observer.observe(this.target);let e=!1;document.addEventListener("scroll",this._scroll_listener=()=>{e||(requestAnimationFrame((()=>{this._reposition(),e=!1})),e=!0)},{capture:!0});const{target:t,content:i,closable:r,interactive:s,position:n,attachment:o,visible:l}=this.model.properties;this.on_change(t,(()=>{this._init_target(),this._observer.disconnect(),this._observer.observe(this.target),this.render(),this.after_render()})),this.on_change(i,(async()=>{await this._build_content(),this.render(),this.after_render()})),this.on_change([r,s],(()=>{this.render(),this.after_render()})),this.on_change([n,o,l],(()=>{this._reposition()}))}disconnect_signals(){null!=this._scroll_listener&&(document.removeEventListener("scroll",this._scroll_listener,{capture:!0}),delete this._scroll_listener),super.disconnect_signals()}remove(){this._element_view?.remove(),this._observer.disconnect(),super.remove()}stylesheets(){return[...super.stylesheets(),y.default,z.default]}get content(){const{content:e}=this.model;return(0,p.isString)(e)?document.createTextNode(e):e instanceof m.Model?((0,f.assert)(null!=this._element_view),this._element_view.el):e}render(){super.render();const{_element_view:e}=this;null!=e&&(e.render(),e.r_after_render()),this.arrow_el=(0,u.div)({class:[x.arrow]}),this.content_el=(0,u.div)({class:x.tooltip_content},this.content),this.shadow_el.append(this.arrow_el,this.content_el),this.class_list.toggle(x.closable,this.model.closable);const t=(0,u.div)({class:x.close});this.shadow_el.append(t),t.addEventListener("click",(()=>{this.model.visible=!1})),this.el.classList.toggle(x.show_arrow,this.model.show_arrow),this.el.classList.toggle(x.non_interactive,!this.model.interactive),this._has_rendered=!0}_after_render(){super._after_render(),this._reposition()}_after_resize(){super._after_resize(),this._reposition()}_anchor_to_align(e){e=(()=>{switch(e){case"top":return"top_center";case"bottom":return"bottom_center";case"left":return"center_left";case"right":return"center_right";default:return e}})();const[t,i]=e.split("_");return{v:t,h:i}}_reposition(){const e=document.body.shadowRoot??document.body;if(!this._has_rendered)return this.render_to(e),void this.after_render();const{position:t,visible:i}=this.model;if(null==t||!i)return void this.el.remove();e.append(this.el);const r=(0,u.bounding_box)(this.target),[s,n]=(()=>{if((0,p.isString)(t)){const{v:e,h:i}=this._anchor_to_align(t);return[(()=>{switch(i){case"left":return r.left;case"center":return r.hcenter;case"right":return r.right}})(),(()=>{switch(e){case"top":return r.top;case"center":return r.vcenter;case"bottom":return r.bottom}})()]}if((0,p.isArray)(t)){const[e,i]=t;return[r.left+e,r.top+i]}{const{x:e,y:i}=this.resolve_as_xy(t);return[r.left+e,r.top+i]}})(),o=new w.BBox({x:0,y:0,width:window.innerWidth,height:window.innerHeight}),l=(0,u.box_size)(this.arrow_el),a=(()=>{const e=(()=>{const{attachment:e}=this.model;if("auto"==e){if((0,p.isString)(t)){const{v:e,h:i}=this._anchor_to_align(t);if("center"!=i)return"left"==i?"left":"right";if("center"!=e)return"top"==e?"above":"below"}return"horizontal"}return e})(),i=(0,u.box_size)(this.el),a=i.width+l.width,h=i.height+l.height;switch(e){case"horizontal":return s=o.left?"left":"right";case"vertical":return n=o.top?"above":"below";default:return e}})();this.class_list.remove(x.right,x.left,x.above,x.below),this.class_list.add((()=>{switch(a){case"left":return x.right;case"right":return x.left;case"above":return x.below;case"below":return x.above}})()),this.arrow_el.style.left=`${s}px`,this.arrow_el.style.top=`${n}px`;const{left:h,top:c}=(()=>{const{width:e,height:t}=(0,u.box_size)(this.el);function i(e){return eo.bottom?o.bottom-t:e}function r(t){return to.right?o.right-e:t}switch(a){case"left":return{left:s-e-l.width,top:i(n-t/2)};case"right":return{left:s+l.width,top:i(n-t/2)};case"above":return{left:r(s-e/2),top:n-t-l.height};case"below":return{left:r(s-e/2),top:n+l.height}}})();this.el.style.top=`${c}px`,this.el.style.left=`${h}px`}}i.TooltipView=E,E.__name__="TooltipView";class T extends l.UIElement{constructor(e){super(e)}show({x:e,y:t}){this.setv({position:[e,t],visible:!0},{check_eq:!1})}clear(){this.position=null}}i.Tooltip=T,n=T,T.__name__="Tooltip",n.prototype.default_view=E,n.define((({Bool:e,Float:t,Str:i,Tuple:r,Or:s,Ref:n,Nullable:o,Auto:u})=>({target:[s(n(l.UIElement),n(c.Selector),n(b),u),"auto"],position:[o(s(_.Anchor,r(t,t),n(h.Coordinate))),null],content:[s(i,n(a.DOMNode),n(l.UIElement),n(b))],attachment:[s(_.TooltipAttachment,u),"auto"],show_arrow:[e,!0],closable:[e,!1],interactive:[e,!0]}))),n.override({visible:!1})}, function _(e,r,t,c,n){var o;c();const s=e(51);class _ extends s.Model{constructor(e){super(e)}}t.Selector=_,o=_,_.__name__="Selector",o.define((({Str:e})=>({query:[e]})))}, function _(o,t,r,e,a){e(),r.non_interactive="bk-non-interactive",r.arrow="bk-arrow",r.show_arrow="bk-show-arrow",r.left="bk-left",r.right="bk-right",r.above="bk-above",r.below="bk-below",r.tooltip_content="bk-tooltip-content",r.tooltip_row_label="bk-tooltip-row-label",r.tooltip_row_value="bk-tooltip-row-value",r.tooltip_color_block="bk-tooltip-color-block",r.closable="bk-closable",r.close="bk-close",r.default=':host{--tooltip-border:#e5e5e5;--tooltip-color:white;--tooltip-text:#2f2f2f;--tooltip-arrow-color:#909599;--tooltip-arrow-width:10px;--tooltip-arrow-height:10px;--tooltip-arrow-half-width:7px;--tooltip-arrow-half-height:7px;}:host{width:max-content;font-size:var(--font-size);position:fixed;padding:5px;border:1px solid var(--tooltip-border);color:var(--tooltip-text);background-color:var(--tooltip-color);opacity:0.95;z-index:var(--bokeh-top-level);}:host(.bk-non-interactive){pointer-events:none;}.bk-arrow{pointer-events:none;position:fixed;width:0;height:0;content:" ";border-style:solid;border-color:transparent;}:host(:not(.bk-show-arrow)) .bk-arrow{display:none;}:host(.bk-left) .bk-arrow,:host(.bk-right) .bk-arrow{border-width:var(--tooltip-arrow-half-height) 0 var(--tooltip-arrow-half-height) 0;}:host(.bk-above) .bk-arrow,:host(.bk-below) .bk-arrow{border-width:0 var(--tooltip-arrow-half-width) 0 var(--tooltip-arrow-half-width);}:host(.bk-left) .bk-arrow{transform:translate(0%, -50%);border-right-width:var(--tooltip-arrow-width);border-right-color:var(--tooltip-arrow-color);}:host(.bk-right) .bk-arrow{transform:translate(-100%, -50%);border-left-width:var(--tooltip-arrow-width);border-left-color:var(--tooltip-arrow-color);}:host(.bk-above) .bk-arrow{transform:translate(-50%, 0%);border-bottom-width:var(--tooltip-arrow-height);border-bottom-color:var(--tooltip-arrow-color);}:host(.bk-below) .bk-arrow{transform:translate(-50%, -100%);border-top-width:var(--tooltip-arrow-height);border-top-color:var(--tooltip-arrow-color);}.bk-tooltip-content > div:not(:first-child){margin-top:5px;border-top:var(--tooltip-border) 1px dashed;}.bk-tooltip-row-label{text-align:right;color:#26aae1;}.bk-tooltip-row-value{color:none;}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#dddddd solid 1px;display:inline-block;}:host(:not(.bk-closable)) .bk-close{display:none;}.bk-close{position:absolute;top:2px;right:2px;width:12px;height:12px;cursor:pointer;background-color:gray;mask-image:var(--bokeh-icon-x);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-x);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}.bk-close:hover{background-color:red;}'}, -function _(e,t,s,i,a){var l;i();const o=e(1),n=e(56),d=e(63),c=e(10),r=e(258),h=e(20),_=e(399),u=e(412),p=e(403),v=o.__importStar(e(417)),m=v,b=o.__importDefault(e(123));class f extends _.LayoutDOMView{constructor(){super(...arguments),this.tooltip_views=new Map}connect_signals(){super.connect_signals();const{tabs:e,active:t}=this.model.properties;this.on_change(e,(async()=>{this._update_headers(),await this.update_children()})),this.on_change(t,(()=>{this.update_active()}))}async lazy_initialize(){await super.lazy_initialize();const{tabs:e}=this.model,t=e.map((e=>e.tooltip)).filter((e=>null!=e));await(0,n.build_views)(this.tooltip_views,t,{parent:this})}stylesheets(){return[...super.stylesheets(),v.default,b.default]}get child_models(){return this.model.tabs.map((e=>e.child))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout();const e=this.model.tabs_location;this.class_list.remove([...h.Location].map((e=>m[e]))),this.class_list.add(m[e]);const t=new r.Container;for(const e of this.child_views)e.style.append(":host",{grid_area:"stack"}),e instanceof _.LayoutDOMView&&null!=e.layout&&t.add({r0:0,c0:0,r1:1,c1:1},e);0!=t.size?(this.layout=new p.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}_after_layout(){super._after_layout();const{child_views:e}=this;for(const t of e)(0,d.hide)(t.el);const{active:t}=this.model;if(t in e){const s=e[t];(0,d.show)(s.el)}}render(){super.render(),this.header_el=(0,d.div)({class:m.header}),this.shadow_el.append(this.header_el),this._update_headers()}_update_headers(){const{active:e}=this.model,t=this.model.tabs.map(((t,s)=>{const i=(0,d.div)({class:[m.tab,s==e?m.active:null],tabIndex:0},t.title);i.addEventListener("click",(e=>{this.model.disabled||e.target==e.currentTarget&&this.change_active(s)}));const a=null!=t.tooltip?this.tooltip_views.get(t.tooltip):null;if(null!=a){a.model.target=i;const e=e=>{a.model.visible=e};i.addEventListener("mouseenter",(()=>{e(!0)})),i.addEventListener("mouseleave",(()=>{e(!1)}))}if(t.closable){const e=(0,d.div)({class:m.close});e.addEventListener("click",(e=>{if(e.target==e.currentTarget){this.model.tabs=(0,c.remove_at)(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}})),i.appendChild(e)}return(this.model.disabled||t.disabled)&&i.classList.add(m.disabled),i}));this.header_els=t,(0,d.empty)(this.header_el),this.header_el.append(...t)}change_active(e){e!=this.model.active&&(this.model.active=e)}update_active(){const e=this.model.active,{header_els:t}=this;for(const e of t)e.classList.remove(m.active);e in t&&t[e].classList.add(m.active);const{child_views:s}=this;for(const e of s)(0,d.hide)(e.el);e in s&&(0,d.show)(s[e].el)}}s.TabsView=f,f.__name__="TabsView";class w extends _.LayoutDOM{constructor(e){super(e)}}s.Tabs=w,l=w,w.__name__="Tabs",l.prototype.default_view=f,l.define((({Int:e,List:t,Ref:s})=>({tabs:[t(s(u.TabPanel)),[]],tabs_location:[h.Location,"above"],active:[e,0]})))}, +function _(e,t,s,i,a){var l;i();const o=e(1),n=e(56),d=e(63),c=e(10),r=e(259),h=e(20),_=e(406),u=e(419),p=e(410),v=o.__importStar(e(424)),m=v,b=o.__importDefault(e(123));class f extends _.LayoutDOMView{constructor(){super(...arguments),this.tooltip_views=new Map}connect_signals(){super.connect_signals();const{tabs:e,active:t}=this.model.properties;this.on_change(e,(async()=>{this._update_headers(),await this.update_children()})),this.on_change(t,(()=>{this.update_active()}))}async lazy_initialize(){await super.lazy_initialize();const{tabs:e}=this.model,t=e.map((e=>e.tooltip)).filter((e=>null!=e));await(0,n.build_views)(this.tooltip_views,t,{parent:this})}stylesheets(){return[...super.stylesheets(),v.default,b.default]}get child_models(){return this.model.tabs.map((e=>e.child))}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout();const e=this.model.tabs_location;this.class_list.remove([...h.Location].map((e=>m[e]))),this.class_list.add(m[e]);const t=new r.Container;for(const e of this.child_views)e.style.append(":host",{grid_area:"stack"}),e instanceof _.LayoutDOMView&&null!=e.layout&&t.add({r0:0,c0:0,r1:1,c1:1},e);0!=t.size?(this.layout=new p.GridAlignmentLayout(t),this.layout.set_sizing()):delete this.layout}_after_layout(){super._after_layout();const{child_views:e}=this;for(const t of e)(0,d.hide)(t.el);const{active:t}=this.model;if(t in e){const s=e[t];(0,d.show)(s.el)}}render(){super.render(),this.header_el=(0,d.div)({class:m.header}),this.shadow_el.append(this.header_el),this._update_headers()}_update_headers(){const{active:e}=this.model,t=this.model.tabs.map(((t,s)=>{const i=(0,d.div)({class:[m.tab,s==e?m.active:null],tabIndex:0},t.title);i.addEventListener("click",(e=>{this.model.disabled||e.target==e.currentTarget&&this.change_active(s)}));const a=null!=t.tooltip?this.tooltip_views.get(t.tooltip):null;if(null!=a){a.model.target=i;const e=e=>{a.model.visible=e};i.addEventListener("mouseenter",(()=>{e(!0)})),i.addEventListener("mouseleave",(()=>{e(!1)}))}if(t.closable){const e=(0,d.div)({class:m.close});e.addEventListener("click",(e=>{if(e.target==e.currentTarget){this.model.tabs=(0,c.remove_at)(this.model.tabs,s);const e=this.model.tabs.length;this.model.active>e-1&&(this.model.active=e-1)}})),i.appendChild(e)}return(this.model.disabled||t.disabled)&&i.classList.add(m.disabled),i}));this.header_els=t,(0,d.empty)(this.header_el),this.header_el.append(...t)}change_active(e){e!=this.model.active&&(this.model.active=e)}update_active(){const e=this.model.active,{header_els:t}=this;for(const e of t)e.classList.remove(m.active);e in t&&t[e].classList.add(m.active);const{child_views:s}=this;for(const e of s)(0,d.hide)(e.el);e in s&&(0,d.show)(s[e].el)}}s.TabsView=f,f.__name__="TabsView";class w extends _.LayoutDOM{constructor(e){super(e)}}s.Tabs=w,l=w,w.__name__="Tabs",l.prototype.default_view=f,l.define((({Int:e,List:t,Ref:s})=>({tabs:[t(s(u.TabPanel)),[]],tabs_location:[h.Location,"above"],active:[e,0]})))}, function _(e,r,o,t,a){t(),o.above="bk-above",o.below="bk-below",o.left="bk-left",o.right="bk-right",o.header="bk-header",o.tab="bk-tab",o.active="bk-active",o.close="bk-close",o.disabled="bk-disabled",o.default=':host{display:grid;}:host(.bk-above){grid-template:"header" max-content "stack" 1fr / 1fr;}:host(.bk-below){grid-template:"stack" 1fr "header" max-content / 1fr;}:host(.bk-left){grid-template:"header stack" 1fr / max-content 1fr;}:host(.bk-right){grid-template:"stack header" 1fr / 1fr max-content;}.bk-header{grid-area:"header";display:flex;flex-wrap:nowrap;align-items:stretch;user-select:none;-webkit-user-select:none;}:host(.bk-above) .bk-header,:host(.bk-below) .bk-header{flex-direction:row;}:host(.bk-left) .bk-header,:host(.bk-right) .bk-header{flex-direction:column;}:host(.bk-above) .bk-header{border-bottom:1px solid #e6e6e6;}:host(.bk-right) .bk-header{border-left:1px solid #e6e6e6;}:host(.bk-below) .bk-header{border-top:1px solid #e6e6e6;}:host(.bk-left) .bk-header{border-right:1px solid #e6e6e6;}.bk-tab{padding:4px 8px;border:solid transparent;outline:0;outline-offset:-5px;white-space:nowrap;cursor:pointer;text-align:center;}.bk-tab:hover{background-color:#f2f2f2;}.bk-tab:focus,.bk-tab:active{outline:1px dotted #ccc;}.bk-tab.bk-active{color:#4d4d4d;background-color:white;border-color:#e6e6e6;}.bk-tab .bk-close{margin-left:10px;}.bk-tab.bk-disabled{cursor:not-allowed;pointer-events:none;opacity:0.65;}:host(.bk-above) .bk-tab{border-width:3px 1px 0px 1px;border-radius:var(--border-radius) var(--border-radius) 0 0;}:host(.bk-right) .bk-tab{border-width:1px 3px 1px 0px;border-radius:0 var(--border-radius) var(--border-radius) 0;}:host(.bk-below) .bk-tab{border-width:0px 1px 3px 1px;border-radius:0 0 var(--border-radius) var(--border-radius);}:host(.bk-left) .bk-tab{border-width:1px 0px 1px 3px;border-radius:var(--border-radius) 0 0 var(--border-radius);}.bk-close{display:inline-block;vertical-align:middle;width:14px;height:14px;cursor:pointer;background-color:gray;mask-image:var(--bokeh-icon-x);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-x);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}.bk-close:hover{background-color:red;}'}, -function _(e,n,t,s,i){var o;s();const r=e(405),l=e(185),c=e(111),a=e(21),d=(0,a.Struct)({child:(0,a.Ref)(c.UIElement),row:(0,a.Opt)(l.Index),span:(0,a.Opt)(l.Span)});class _ extends r.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,row:n,span:t},s)=>[e,n??s,0,t??1,1]))}get _rows(){return this.model.rows}get _cols(){return null}}t.VBoxView=_,_.__name__="VBoxView";class h extends r.CSSGridBox{constructor(e){super(e)}}t.VBox=h,o=h,h.__name__="VBox",o.prototype.default_view=_,o.define((({List:e,Nullable:n})=>({children:[e(d),[]],rows:[n(l.TracksSizing),null]})))}, -function _(o,r,u,e,p){e();var y=o(420);p("GroupByModels",y.GroupByModels),p("GroupByName",y.GroupByName)}, +function _(e,n,t,s,i){var o;s();const r=e(412),l=e(185),c=e(111),a=e(21),d=(0,a.Struct)({child:(0,a.Ref)(c.UIElement),row:(0,a.Opt)(l.Index),span:(0,a.Opt)(l.Span)});class _ extends r.CSSGridBoxView{connect_signals(){super.connect_signals();const{children:e,rows:n}=this.model.properties;this.on_change(e,(()=>this.update_children())),this.on_change(n,(()=>this.invalidate_layout()))}get _children(){return this.model.children.map((({child:e,row:n,span:t},s)=>[e,n??s,0,t??1,1]))}get _rows(){return this.model.rows}get _cols(){return null}}t.VBoxView=_,_.__name__="VBoxView";class h extends r.CSSGridBox{constructor(e){super(e)}}t.VBox=h,o=h,h.__name__="VBox",o.prototype.default_view=_,o.define((({List:e,Nullable:n})=>({children:[e(d),[]],rows:[n(l.TracksSizing),null]})))}, +function _(o,r,u,e,p){e();var y=o(427);p("GroupByModels",y.GroupByModels),p("GroupByName",y.GroupByName)}, function _(o,s,e,n,r){var t;n();const u=o(51),c=o(21);class l extends u.Model{constructor(o){super(o)}}e.GroupBy=l,l.__name__="GroupBy";class a extends l{constructor(o){super(o)}*query_groups(o,s){for(const s of o)for(const o of this.groups)o.includes(s)&&(yield o)}}e.GroupByModels=a,t=a,a.__name__="GroupByModels",t.define({groups:[(0,c.List)((0,c.List)((0,c.Ref)(u.Model)))]});class _ extends l{constructor(o){super(o)}*query_groups(o,s){const e=new Map;for(const o of s){const{name:s}=o;if(null!=s){let n=e.get(s);void 0===n&&(n=new Set,e.set(s,n)),n.add(o)}}for(const s of o)for(const o of e.values())null!=s.name&&o.has(s)&&(yield[...o])}}e.GroupByName=_,_.__name__="GroupByName"}, function _(t,a,i,e,M){e();var T=t(178);M("MathText",T.MathText),M("Ascii",T.Ascii),M("MathML",T.MathML),M("TeX",T.TeX),M("PlainText",t(184).PlainText)}, -function _(r,o,t,e,n){e(),n("CustomJSTransform",r(423).CustomJSTransform),n("Dodge",r(424).Dodge),n("Interpolator",r(426).Interpolator),n("Jitter",r(427).Jitter),n("LinearInterpolator",r(429).LinearInterpolator),n("StepInterpolator",r(430).StepInterpolator),n("Transform",r(97).Transform)}, +function _(r,o,t,e,n){e(),n("CustomJSTransform",r(430).CustomJSTransform),n("Dodge",r(431).Dodge),n("Interpolator",r(433).Interpolator),n("Jitter",r(434).Jitter),n("LinearInterpolator",r(436).LinearInterpolator),n("StepInterpolator",r(437).StepInterpolator),n("Transform",r(97).Transform)}, function _(r,t,s,n,e){var a;n();const u=r(97),o=r(9),m=r(40);class _ extends u.Transform{constructor(r){super(r)}get names(){return(0,o.keys)(this.args)}get values(){return(0,o.values)(this.args)}_make_transform(r,t){return new Function(...this.names,r,(0,m.use_strict)(t))}get scalar_transform(){return this._make_transform("x",this.func)}get vector_transform(){return this._make_transform("xs",this.v_func)}compute(r){return this.scalar_transform(...this.values,r)}v_compute(r){return this.vector_transform(...this.values,r)}}s.CustomJSTransform=_,a=_,_.__name__="CustomJSTransform",a.define((({Unknown:r,Str:t,Dict:s})=>({args:[s(r),{}],func:[t,""],v_func:[t,""]})))}, -function _(e,n,o,t,a){var r;t();const s=e(425);class u extends s.RangeTransform{constructor(e){super(e)}_compute(e){return e+this.value}}o.Dodge=u,r=u,u.__name__="Dodge",r.define((({Float:e})=>({value:[e,0]})))}, +function _(e,n,o,t,a){var r;t();const s=e(432);class u extends s.RangeTransform{constructor(e){super(e)}_compute(e){return e+this.value}}o.Dodge=u,r=u,u.__name__="Dodge",r.define((({Float:e})=>({value:[e,0]})))}, function _(e,n,t,r,a){var s;r();const c=e(97),o=e(98),i=e(109),u=e(24),h=e(8),l=e(12);class g extends c.Transform{constructor(e){super(e)}v_compute(e){let n;this.range instanceof i.FactorRange?n=this.range.v_synthetic(e):(0,h.isArrayableOf)(e,h.isNumber)?n=e:(0,l.unreachable)();const t=new((0,u.infer_type)(n))(n.length);for(let e=0;e({range:[n(e(o.Range)),null]})))}, function _(t,e,r,n,s){var o;n();const i=t(97),a=t(128),h=t(24),l=t(10),d=t(8);class c extends i.Transform{constructor(t){super(t),this._sorted_dirty=!0}connect_signals(){super.connect_signals(),this.connect(this.change,(()=>this._sorted_dirty=!0))}v_compute(t){const e=new((0,h.infer_type)(t))(t.length);for(let r=0;ro*(e[t]-e[r]))),this._x_sorted=new((0,h.infer_type)(e))(n),this._y_sorted=new((0,h.infer_type)(r))(n);for(let t=0;t({x:[o(r,s(e))],y:[o(r,s(e))],data:[i(n(a.ColumnarDataSource)),null],clip:[t,!0]})))}, -function _(t,e,n,r,i){var s;r();const o=t(425),a=t(109),u=t(428),_=t(20),h=t(13),m=t(115);class c extends o.RangeTransform{constructor(t){super(t),this._previous_offsets=null}initialize(){super.initialize(),this._generator=this.random_generator?.generator()??new m.SystemRandom}v_compute(t){const e=(()=>this.range instanceof a.FactorRange?this.range.v_synthetic(t):t)(),n=(()=>{const t=e.length;return this._previous_offsets?.length!=t&&(this._previous_offsets=this._v_compute(t)),this._previous_offsets})();return(0,h.map)(n,((t,n)=>t+e[n]))}_compute(){const{mean:t,width:e}=this;switch(this.distribution){case"uniform":return this._generator.uniform(t,e);case"normal":return this._generator.normal(t,e)}}_v_compute(t){const{mean:e,width:n}=this;switch(this.distribution){case"uniform":return this._generator.uniforms(e,n,t);case"normal":return this._generator.normals(e,n,t)}}}n.Jitter=c,s=c,c.__name__="Jitter",s.define((({Float:t})=>({mean:[t,0],width:[t,1],distribution:[_.Distribution,"uniform"]}))),s.internal((({Nullable:t,Ref:e})=>({random_generator:[t(e(u.RandomGenerator)),null]})))}, +function _(t,e,n,r,i){var s;r();const o=t(432),a=t(109),u=t(435),_=t(20),h=t(13),m=t(115);class c extends o.RangeTransform{constructor(t){super(t),this._previous_offsets=null}initialize(){super.initialize(),this._generator=this.random_generator?.generator()??new m.SystemRandom}v_compute(t){const e=(()=>this.range instanceof a.FactorRange?this.range.v_synthetic(t):t)(),n=(()=>{const t=e.length;return this._previous_offsets?.length!=t&&(this._previous_offsets=this._v_compute(t)),this._previous_offsets})();return(0,h.map)(n,((t,n)=>t+e[n]))}_compute(){const{mean:t,width:e}=this;switch(this.distribution){case"uniform":return this._generator.uniform(t,e);case"normal":return this._generator.normal(t,e)}}_v_compute(t){const{mean:e,width:n}=this;switch(this.distribution){case"uniform":return this._generator.uniforms(e,n,t);case"normal":return this._generator.normals(e,n,t)}}}n.Jitter=c,s=c,c.__name__="Jitter",s.define((({Float:t})=>({mean:[t,0],width:[t,1],distribution:[_.Distribution,"uniform"]}))),s.internal((({Nullable:t,Ref:e})=>({random_generator:[t(e(u.RandomGenerator)),null]})))}, function _(n,e,o,r,t){r();const a=n(51);class s extends a.Model{constructor(n){super(n)}}o.RandomGenerator=s,s.__name__="RandomGenerator"}, -function _(t,s,_,r,e){r();const i=t(10),o=t(426);class n extends o.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(tthis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=(0,i.find_last_index)(this._x_sorted,(s=>sthis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=(0,d.find_last_index)(this._x_sorted,(e=>t>=e));break;case"before":e=(0,d.find_index)(this._x_sorted,(e=>t<=e));break;case"center":{const s=(0,d.map)(this._x_sorted,(e=>Math.abs(e-t))),r=(0,d.min)(s);e=(0,d.find_index)(s,(t=>r===t));break}default:throw new Error(`unknown mode: ${this.mode}`)}return-1!=e?this._y_sorted[e]:NaN}}s.StepInterpolator=h,_=h,h.__name__="StepInterpolator",_.define((()=>({mode:[n.StepMode,"after"]})))}, -function _(p,o,t,i,a){i(),a("MapOptions",p(432).MapOptions),a("GMapOptions",p(432).GMapOptions),a("GMapPlot",p(432).GMapPlot),a("GMap",p(444).GMap),a("Plot",p(433).Plot),a("GridPlot",p(445).GridPlot),a("Figure",p(446).Figure)}, -function _(e,t,a,o,n){var p,l,s;o();const _=e(433),r=e(20),i=e(51),c=e(99),d=e(443);n("GMapPlotView",d.GMapPlotView);class u extends i.Model{constructor(e){super(e)}}a.MapOptions=u,p=u,u.__name__="MapOptions",p.define((({Int:e,Float:t})=>({lat:[t],lng:[t],zoom:[e,12]})));class M extends u{constructor(e){super(e)}}a.GMapOptions=M,l=M,M.__name__="GMapOptions",l.define((({Bool:e,Int:t,Str:a,Nullable:o})=>({map_type:[r.MapType,"roadmap"],scale_control:[e,!1],styles:[o(a),null],tilt:[t,45]})));class m extends _.Plot{constructor(e){super(e),this.use_map=!0}}a.GMapPlot=m,s=m,m.__name__="GMapPlot",s.prototype.default_view=d.GMapPlotView,s.define((({Str:e,Bytes:t,Ref:a})=>({map_options:[a(M)],api_key:[t],api_version:[e,"weekly"]}))),s.override({x_range:()=>new c.Range1d,y_range:()=>new c.Range1d,background_fill_alpha:0})}, -function _(e,t,o,r,n){var a;r();const l=e(1),i=l.__importStar(e(80)),s=l.__importStar(e(18)),_=e(15),d=e(20),c=e(10),h=e(44),u=e(8),f=e(399),b=e(189),g=e(395),p=e(81),m=e(171),w=e(101),y=e(291),v=e(401),x=e(98),S=e(96),R=e(133),A=e(83),L=e(218),T=e(217),D=e(292),P=e(106),k=e(434);n("PlotView",k.PlotView);class O extends f.LayoutDOM{constructor(e){super(e),this.use_map=!1,this.reset=new _.Signal0(this,"reset")}add_layout(e,t="center"){const o=this.properties[t].get_value();this.setv({[t]:[...o,e]})}remove_layout(e){const t=t=>{(0,c.remove_by)(t,(t=>t==e))};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}get data_renderers(){return this.renderers.filter((e=>e instanceof L.DataRenderer))}add_renderers(...e){this.renderers=[...this.renderers,...e]}add_glyph(e,t=new R.ColumnDataSource,o={}){const r=new T.GlyphRenderer({...o,data_source:t,glyph:e});return this.add_renderers(r),r}add_tools(...e){const t=e.map((e=>e instanceof D.Tool?e:D.Tool.from_string(e)));this.toolbar.tools=[...this.toolbar.tools,...t]}remove_tools(...e){this.toolbar.tools=[...(0,h.difference)(new Set(this.toolbar.tools),new Set(e))]}get panels(){return[...this.side_panels,...this.center]}get side_panels(){const{above:e,below:t,left:o,right:r}=this;return(0,c.concat)([e,t,o,r])}}o.Plot=O,a=O,O.__name__="Plot",a.prototype.default_view=k.PlotView,a.mixins([["outline_",i.Line],["background_",i.Fill],["border_",i.Fill]]),a.define((({Bool:e,Float:t,Str:o,List:r,Dict:n,Or:a,Ref:l,Null:i,Nullable:_,Struct:c,Opt:h})=>({toolbar:[l(y.Toolbar),()=>new y.Toolbar],toolbar_location:[_(d.Location),"right"],toolbar_sticky:[e,!0],toolbar_inner:[e,!1],frame_width:[_(t),null],frame_height:[_(t),null],frame_align:[a(e,c({left:h(e),right:h(e),top:h(e),bottom:h(e)})),!0],title:[a(l(m.Title),o,i),"",{convert:e=>(0,u.isString)(e)?new m.Title({text:e}):e}],title_location:[_(d.Location),"above"],above:[r(a(l(p.Annotation),l(b.Axis))),[]],below:[r(a(l(p.Annotation),l(b.Axis))),[]],left:[r(a(l(p.Annotation),l(b.Axis))),[]],right:[r(a(l(p.Annotation),l(b.Axis))),[]],center:[r(a(l(p.Annotation),l(g.Grid))),[]],renderers:[r(l(A.Renderer)),[]],x_range:[l(x.Range),()=>new P.DataRange1d],y_range:[l(x.Range),()=>new P.DataRange1d],x_scale:[l(S.Scale),()=>new w.LinearScale],y_scale:[l(S.Scale),()=>new w.LinearScale],extra_x_ranges:[n(l(x.Range)),{}],extra_y_ranges:[n(l(x.Range)),{}],extra_x_scales:[n(l(S.Scale)),{}],extra_y_scales:[n(l(S.Scale)),{}],lod_factor:[t,10],lod_interval:[t,300],lod_threshold:[_(t),2e3],lod_timeout:[t,500],hidpi:[e,!0],output_backend:[d.OutputBackend,"canvas"],min_border:[_(t),5],min_border_top:[_(t),null],min_border_left:[_(t),null],min_border_bottom:[_(t),null],min_border_right:[_(t),null],inner_width:[t,s.unset,{readonly:!0}],inner_height:[t,s.unset,{readonly:!0}],outer_width:[t,s.unset,{readonly:!0}],outer_height:[t,s.unset,{readonly:!0}],match_aspect:[e,!1],aspect_scale:[t,1],reset_policy:[d.ResetPolicy,"standard"],hold_render:[e,!1],attribution:[r(a(o,l(v.HTML))),[]]}))),a.override({width:600,height:600,outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}, -function _(e,t,i,s,n){s();const a=e(1),r=e(188),o=e(324),l=e(83),_=e(82),h=e(293),d=e(399),c=e(81),u=e(171),p=e(189),m=e(290),g=e(106),f=e(435),b=e(437),w=e(53),v=e(56),y=e(87),x=e(19),z=e(53),S=e(15),k=e(438),N=e(8),$=e(10),M=e(34),q=e(112),P=e(257),V=e(259),R=e(258),T=e(173),B=e(64),C=e(181),D=e(439),A=e(440),H=e(29),L=e(63),I=e(59),F=a.__importDefault(e(441)),O=a.__importDefault(e(442)),{max:U}=Math;class j extends d.LayoutDOMView{constructor(){super(...arguments),this._render_count=0,this.repainted=new S.Signal0(this,"repainted"),this._computed_style=new L.InlineStyleSheet,this._outer_bbox=new B.BBox,this._inner_bbox=new B.BBox,this._needs_paint=!0,this._invalidated_painters=new Set,this._invalidate_all=!0,this.computed_renderers=[],this.renderer_views=new Map,this.tool_views=new Map,this._is_paused=0,this._needs_notify=!1,this._messages=new Map}get frame(){return this.frame_view}get canvas(){return this.canvas_view}stylesheets(){return[...super.stylesheets(),F.default,this._computed_style]}get toolbar_panel(){return null!=this._toolbar?this.views.find_one(this._toolbar):null}get state(){return this._state_manager}set invalidate_dataranges(e){this._range_manager.invalidate_dataranges=e}get computed_renderer_views(){return this.computed_renderers.map((e=>this.renderer_views.get(e))).filter(N.isNotNull)}get all_renderer_views(){const e=[];for(const t of this.computed_renderer_views)e.push(t),t instanceof _.CompositeRendererView&&e.push(...t.computed_renderer_views);return e}get auto_ranged_renderers(){return this.computed_renderer_views.filter(g.is_auto_ranged)}get base_font_size(){const e=getComputedStyle(this.el).fontSize,t=(0,C.parse_css_font_size)(e);if(null!=t){const{value:e,unit:i}=t;if("px"==i)return e}return null}*children(){yield*super.children(),yield*this.renderer_views.values(),yield*this.tool_views.values()}get child_models(){return[]}get is_paused(){return 0!=this._is_paused}pause(){this._is_paused+=1}unpause(e=!1){this._is_paused=U(this._is_paused-1,0),this.is_paused||e||this.request_repaint()}notify_finished_after_paint(){this._needs_notify=!0}request_repaint(){this.request_paint()}request_paint(...e){this.invalidate_painters(...e),this.schedule_paint()}invalidate_painters(...e){if(0!=e.length)for(const t of e){const e=(()=>t instanceof l.RendererView?t:this.views.get_one(t))();this._invalidated_painters.add(e)}else this._invalidate_all=!0}schedule_paint(){if(!this.is_paused){const e=this.throttled_paint();this._ready=this._ready.then((()=>e))}}request_layout(){this.request_repaint()}reset(){"standard"==this.model.reset_policy&&(this.state.clear(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new w.Reset)}remove(){(0,v.remove_views)(this.renderer_views),(0,v.remove_views)(this.tool_views),super.remove()}get_context_menu(e){const{x:t,y:i}=e;for(const e of(0,$.reversed)([...this.renderer_views.values()]))if(null!=e.context_menu&&1==e.interactive_hit?.(t,i))return e.context_menu;return super.get_context_menu(e)}initialize(){this.pause(),super.initialize(),this.lod_started=!1,this.visuals=new y.Visuals(this),this._initial_state={selection:new Map},this._frame=new r.CartesianFrame({x_scale:this.model.x_scale,y_scale:this.model.y_scale,x_range:this.model.x_range,y_range:this.model.y_range,extra_x_ranges:this.model.extra_x_ranges,extra_y_ranges:this.model.extra_y_ranges,extra_x_scales:this.model.extra_x_scales,extra_y_scales:this.model.extra_y_scales,aspect_scale:this.model.aspect_scale,match_aspect:this.model.match_aspect}),this._range_manager=new D.RangeManager(this),this._state_manager=new A.StateManager(this,this._initial_state),this.throttled_paint=(0,k.throttle)((()=>{this.is_destroyed||this.repaint()}),1e3/60);const{title_location:e,title:t}=this.model;null!=e&&null!=t&&(this._title=t instanceof u.Title?t:new u.Title({text:t}));const{toolbar_location:i,toolbar_inner:s,toolbar:n}=this.model;null!=i&&(this._toolbar=new m.ToolbarPanel({toolbar:n}),n.location=i,n.inner=s);const{hidpi:a,output_backend:l}=this.model;this._canvas=new o.Canvas({hidpi:a,output_backend:l}),this._attribution=new f.Panel({position:new I.Node({target:"frame",symbol:"bottom_right"}),anchor:"bottom_right",elements:[],css_variables:{"--max-width":new I.Node({target:"frame",symbol:"width"})},stylesheets:[O.default]}),this._notifications=new f.Panel({position:new I.Node({target:this.model,symbol:"top_center"}),anchor:"top_center",elements:[],stylesheets:["\n :host {\n display: flex;\n flex-direction: column;\n gap: 1em;\n width: max-content;\n max-width: 80%;\n }\n\n :host:empty {\n display: none;\n }\n\n :host > div {\n padding: 0.5em;\n border: 1px solid gray;\n border-radius: 0.5em;\n opacity: 0.8;\n }\n "]})}get elements(){return[this._canvas,this._frame,this._attribution,this._notifications,...super.elements]}async lazy_initialize(){await super.lazy_initialize(),this.canvas_view=this._element_views.get(this._canvas),this.canvas_view.plot_views=[this],this.frame_view=this._element_views.get(this._frame),await this.build_tool_views(),await this.build_renderer_views(),this._range_manager.update_dataranges()}box_sizing(){const{width_policy:e,height_policy:t,...i}=super.box_sizing(),{frame_width:s,frame_height:n}=this.model;return{...i,width_policy:null!=s&&"auto"==e?"fit":e,height_policy:null!=n&&"auto"==t?"fit":t}}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout(),this._invalidate_all=!0,this._needs_paint=!0;const e=new V.BorderLayout,{frame_align:t}=this.model;if(e.aligns=(()=>{if((0,N.isBoolean)(t))return{left:t,right:t,top:t,bottom:t};{const{left:e=!0,right:i=!0,top:s=!0,bottom:n=!0}=t;return{left:e,right:i,top:s,bottom:n}}})(),e.set_sizing({width_policy:"max",height_policy:"max"}),this.visuals.outline_line.doit){const t=this.visuals.outline_line.line_width.get_value();e.center_border_width=t}const i=(0,$.copy)(this.model.above),s=(0,$.copy)(this.model.below),n=(0,$.copy)(this.model.left),a=(0,$.copy)(this.model.right),r=[],o=[],l=[],_=[],h=(e,t=!1)=>{switch(e){case"above":return t?r:i;case"below":return t?o:s;case"left":return t?l:n;case"right":return t?_:a}},{title_location:d}=this.model;if(null!=d&&null!=this._title&&h(d).push(this._title),null!=this._toolbar){const{location:e}=this._toolbar.toolbar;if(this.model.toolbar_inner){h(e,!0).push(this._toolbar)}else{const t=h(e);let i=!0;if(this.model.toolbar_sticky)for(let s=0;s{const i=this.views.get_one(t);return i.panel=new T.SidePanel(e),i.update_layout?.(),i.layout},g=(e,t)=>{const i="above"==e||"below"==e,s=[];for(const n of t)if((0,N.isArray)(n)){const t=n.map((t=>{const s=p(e,t);if(null!=s){if(t instanceof m.ToolbarPanel){const e=i?"width_policy":"height_policy";s.set_sizing({...s.sizing,[e]:"min"})}return s}})).filter((e=>null!=e));let a;i?(a=new R.Row(t),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new R.Column(t),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else{const t=p(e,n);null!=t&&s.push(t)}return s},f=this.model.min_border??0;e.min_border={left:this.model.min_border_left??f,top:this.model.min_border_top??f,right:this.model.min_border_right??f,bottom:this.model.min_border_bottom??f};const b=new P.NodeLayout,w=new P.VStack,v=new P.VStack,y=new P.HStack,x=new P.HStack,z=new P.VStack,S=new P.VStack,k=new P.HStack,M=new P.HStack;b.absolute=!0,w.absolute=!0,v.absolute=!0,y.absolute=!0,x.absolute=!0,z.absolute=!0,S.absolute=!0,k.absolute=!0,M.absolute=!0,b.children=this.model.center.filter((e=>e instanceof c.Annotation)).map((e=>{const t=this.views.get_one(e);return t.update_layout?.(),t.layout})).filter((e=>null!=e));const{frame_width:q,frame_height:B}=this.model;b.set_sizing({...null!=q?{width_policy:"fixed",width:q}:{width_policy:"fit"},...null!=B?{height_policy:"fixed",height:B}:{height_policy:"fit"}}),b.on_resize((e=>this.frame.set_geometry(e))),w.children=(0,$.reversed)(g("above",i)),v.children=g("below",s),y.children=(0,$.reversed)(g("left",n)),x.children=g("right",a),z.children=g("above",r),S.children=g("below",o),k.children=g("left",l),M.children=g("right",_),w.set_sizing({width_policy:"fit",height_policy:"min"}),v.set_sizing({width_policy:"fit",height_policy:"min"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),x.set_sizing({width_policy:"min",height_policy:"fit"}),z.set_sizing({width_policy:"fit",height_policy:"min"}),S.set_sizing({width_policy:"fit",height_policy:"min"}),k.set_sizing({width_policy:"min",height_policy:"fit"}),M.set_sizing({width_policy:"min",height_policy:"fit"}),e.center_panel=b,e.top_panel=w,e.bottom_panel=v,e.left_panel=y,e.right_panel=x,0!=z.children.length&&(e.inner_top_panel=z),0!=S.children.length&&(e.inner_bottom_panel=S),0!=k.children.length&&(e.inner_left_panel=k),0!=M.children.length&&(e.inner_right_panel=M),this.layout=e}_measure_layout(){const{frame_width:e,frame_height:t}=this.model,i=null==e?"1fr":(0,L.px)(e),s=null==t?"1fr":(0,L.px)(t),{layout:n}=this,a=n.top_panel.measure({width:1/0,height:1/0}),r=n.bottom_panel.measure({width:1/0,height:1/0}),o=n.left_panel.measure({width:1/0,height:1/0}),l=n.right_panel.measure({width:1/0,height:1/0}),_=U(a.height,n.min_border.top),h=U(r.height,n.min_border.bottom),d=U(o.width,n.min_border.left),c=U(l.width,n.min_border.right);this._computed_style.replace(`\n :host {\n grid-template-rows: ${_}px ${s} ${h}px;\n grid-template-columns: ${d}px ${i} ${c}px;\n }\n `)}get axis_views(){const e=[];for(const[,t]of this.renderer_views)t instanceof p.AxisView&&e.push(t);return e}update_range(e,t){this.pause(),this._range_manager.update(e,t),this.unpause()}reset_range(){this.pause(),this._range_manager.reset(),this.unpause(),this.trigger_ranges_update_event()}trigger_ranges_update_event(e=[]){const{x_ranges:t,y_ranges:i}=this._range_manager.ranges(),s=[...t,...i,...e],n=new Set(s.flatMap((e=>[...e.linked_plots])));for(const e of n){const{x_range:t,y_range:i}=e.model,s=new z.RangesUpdate(t.start,t.end,i.start,i.end);e.model.trigger_event(s)}}get_selection(){const e=new Map;for(const t of this.model.data_renderers){const{selected:i}=t.selection_manager.source;e.set(t,i)}return e}update_selection(e){for(const t of this.model.data_renderers){const i=t.selection_manager.source;if(null!=e){const s=e.get(t);null!=s&&i.selected.update(s,!0)}else i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_invalidate_layout_if_needed(){(()=>{for(const e of this.model.side_panels){const t=this.renderer_views.get(e);if(t.layout?.has_size_changed())return this.invalidate_painters(t),!0}return!1})()&&this.compute_layout()}*_compute_renderers(){const{above:e,below:t,left:i,right:s,center:n,renderers:a}=this.model;yield*a,yield*e,yield*t,yield*i,yield*s,yield*n,null!=this._title&&(yield this._title),null!=this._toolbar&&(yield this._toolbar);for(const[,e]of this.tool_views)yield*e.overlays}_update_attribution(){const e=[...this.model.attribution,...this.computed_renderer_views.map((e=>e.attribution))].filter(N.isNotNull).map((e=>(0,N.isString)(e)?new b.Div({children:[e]}):e));this._attribution.elements=e}async _build_renderers(){this.computed_renderers=[...this._compute_renderers()];const e=await(0,v.build_views)(this.renderer_views,this.computed_renderers,{parent:this});return this._update_attribution(),e}async _update_renderers(){const{created:e}=await this._build_renderers(),t=new Set(e);for(const e of this.renderer_views.values())e.el.remove();for(const e of this.renderer_views.values()){const i=t.has(e),s=e.rendering_target();i?e.render_to(s):s.append(e.el)}this.r_after_render()}async build_renderer_views(){await this._build_renderers()}async build_tool_views(){const e=(0,M.flat_map)(this.model.toolbar.tools,(e=>e instanceof h.ToolProxy?e.tools:[e])),{created:t}=await(0,v.build_views)(this.tool_views,[...e],{parent:this});t.map((e=>this.canvas_view.ui_event_bus.register_tool(e)))}connect_signals(){super.connect_signals();const{x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_}=this.model.properties;this.on_change([e,t,i,s,n,a,r,o,l,_],(()=>{const{x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_}=this.model;this._frame.setv({x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_})}));const{above:h,below:d,left:c,right:u,center:p,renderers:g}=this.model.properties,f=[h,d,c,u,p];this.on_change(g,(async()=>{await this._update_renderers()})),this.on_change(f,(async()=>{await this._update_renderers(),this.invalidate_layout()})),this.connect(this.model.toolbar.properties.tools.change,(async()=>{await this.build_tool_views(),await this._update_renderers()}));const{x_ranges:b,y_ranges:w}=this.frame;for(const[,e]of b)this.connect(e.change,(()=>{this.request_repaint()}));for(const[,e]of w)this.connect(e.change,(()=>{this.request_repaint()}));this.connect(this.model.change,(()=>this.request_repaint())),this.connect(this.model.reset,(()=>this.reset()));const{toolbar_location:v}=this.model.properties;this.on_change(v,(async()=>{const{toolbar_location:e}=this.model;if(null!=this._toolbar)null!=e?this._toolbar.toolbar.location=e:(this._toolbar=void 0,await this._update_renderers());else if(null!=e){const{toolbar:t,toolbar_inner:i}=this.model;this._toolbar=new m.ToolbarPanel({toolbar:t}),t.location=e,t.inner=i,await this._update_renderers()}this.invalidate_layout()}));const{hold_render:y}=this.model.properties;this.on_change(y,(()=>{this.model.hold_render||this.request_repaint()}))}has_finished(){if(!super.has_finished())return!1;if(this.model.visible)for(const[,e]of this.renderer_views)if(!e.has_finished())return!1;return!0}_after_layout(){super._after_layout(),this.unpause(!0);const e=this.layout.left_panel.bbox,t=this.layout.right_panel.bbox,i=this.layout.center_panel.bbox,s=this.layout.top_panel.bbox,n=this.layout.bottom_panel.bbox,{bbox:a}=this,r=s.bottom,o=a.height-n.top,l=e.right,_=a.width-t.left;this.canvas.style.replace(`\n .bk-layer.bk-events {\n display: grid;\n grid-template-areas:\n ". above . "\n "left center right"\n ". below . ";\n grid-template-rows: ${(0,L.px)(r)} ${(0,L.px)(i.height)} ${(0,L.px)(o)};\n grid-template-columns: ${(0,L.px)(l)} ${(0,L.px)(i.width)} ${(0,L.px)(_)};\n }\n `);for(const[,e]of this.renderer_views)e instanceof c.AnnotationView&&e.after_layout?.();this.model.setv({inner_width:Math.round(this.frame.bbox.width),inner_height:Math.round(this.frame.bbox.height),outer_width:Math.round(this.bbox.width),outer_height:Math.round(this.bbox.height)},{no_change:!0}),this.model.match_aspect&&(this.pause(),this._range_manager.update_dataranges(),this.unpause(!0)),this._outer_bbox.equals(this.bbox)||(this.canvas_view.resize(),this._outer_bbox=this.bbox,this._invalidate_all=!0,this._needs_paint=!0);const{inner_bbox:h}=this.layout;this._inner_bbox.equals(h)||(this._inner_bbox=h,this._invalidate_all=!0,this._needs_paint=!0),this._needs_paint&&this.paint()}render(){super.render();for(const e of this.computed_renderer_views){const t=e.rendering_target();e.render_to(t)}}repaint(){this._invalidate_layout_if_needed(),this.paint()}paint(){if(!this.is_paused&&!this.model.hold_render){if(this.is_displayed)x.logger.trace(`${this.toString()}.paint()`),this._actual_paint();else for(const e of this.computed_renderer_views)e.force_finished();this._needs_notify&&(this._needs_notify=!1,this.notify_finished())}}_actual_paint(){x.logger.trace(`${this.toString()}._actual_paint ${this._render_count} start`);const{document:e}=this.model;if(null!=e){const t=e.interactive_duration();t>=0&&t{e.interactive_duration()>this.model.lod_timeout&&e.interactive_stop(),this.request_repaint()}),this.model.lod_timeout):e.interactive_stop()}this._range_manager.invalidate_dataranges&&(this._range_manager.update_dataranges(),this._invalidate_layout_if_needed());let t=!1,i=!1;if(this._invalidate_all)t=!0,i=!0;else for(const e of this._invalidated_painters){const{level:s}=e.model;if("overlay"!=s?t=!0:i=!0,t&&i)break}this._invalidated_painters.clear(),this._invalidate_all=!1;const s=[this.frame.bbox.left,this.frame.bbox.top,this.frame.bbox.width,this.frame.bbox.height],{primary:n,overlays:a}=this.canvas_view;t&&(n.prepare(),this.canvas_view.prepare_webgl(s),this._paint_empty(n.ctx,s),this._paint_outline(n.ctx,s),this._paint_levels(n.ctx,"image",s,!0),this._paint_levels(n.ctx,"underlay",s,!0),this._paint_levels(n.ctx,"glyph",s,!0),this._paint_levels(n.ctx,"guide",s,!1),this._paint_levels(n.ctx,"annotation",s,!1),n.finish()),(i||H.settings.wireframe)&&(a.prepare(),this._paint_levels(a.ctx,"overlay",s,!1),H.settings.wireframe&&this.paint_layout(a.ctx,this.layout),a.finish()),null==this._initial_state.range&&(this._initial_state.range=this._range_manager.compute_initial()??void 0);for(const e of this.element_views)e.reposition();this._needs_paint=!1,this.repainted.emit(),x.logger.trace(`${this.toString()}._actual_paint ${this._render_count} end`),this._render_count++}_paint_levels(e,t,i,s){for(const n of this.computed_renderer_views)n.model.level==t&&(e.save(),(s||n.needs_clip)&&(e.beginPath(),e.rect(...i),e.clip()),n.paint(),e.restore(),n.has_webgl&&this.canvas_view.blit_webgl(e))}paint_layout(e,t){const{x:i,y:s,width:n,height:a}=t.bbox;e.strokeStyle="blue",e.strokeRect(i,s,n,a);for(const n of t)e.save(),t.absolute||e.translate(i,s),this.paint_layout(e,n),e.restore()}_paint_empty(e,t){const[i,s,n,a]=[0,0,this.bbox.width,this.bbox.height],[r,o,l,_]=t;this.visuals.border_fill.doit&&(e.save(),e.beginPath(),e.rect(i,s,n,a),e.rect(r,o,l,_),e.clip("evenodd"),e.beginPath(),e.rect(i,s,n,a),this.visuals.border_fill.apply(e),e.restore()),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fillRect(r,o,l,_))}_paint_outline(e,t){if(this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[i,s,n,a]=t;i+n==this.bbox.width&&(n-=1),s+a==this.bbox.height&&(a-=1),e.strokeRect(i,s,n,a),e.restore()}}export(e="auto",t=!0){const i=(()=>{switch(e){case"auto":return this.canvas_view.model.output_backend;case"png":return"canvas";case"svg":return"svg"}})(),s=new q.CanvasLayer(i,t),{width:n,height:a}=this.bbox;if(s.resize(n,a),0!=n&&0!=a){const{canvas:e}=this.canvas_view.compose();s.ctx.drawImage(e,0,0)}return s}resolve_frame(){return this.frame}resolve_canvas(){return this.canvas}resolve_plot(){return this}resolve_xy(e){const{x:t,y:i}=e,s=this.frame.x_scale.compute(t),n=this.frame.y_scale.compute(i);return this.frame.bbox.contains(s,n)?{x:s,y:n}:{x:NaN,y:NaN}}resolve_indexed(e){const{index:t,renderer:i}=e,s=this.views.find_one(i);if(null!=s&&s.has_finished()){const[e,i]=s.glyph.scenterxy(t,NaN,NaN);if(this.frame.bbox.contains(e,i))return{x:e,y:i}}return{x:NaN,y:NaN}}notify_about(e){if(this._messages.has(e))return;const t=new b.Div({children:[e]}),i=setTimeout((()=>{this._messages.delete(e),this._notifications.elements=this._notifications.elements.filter((e=>e!=t))}),2e3);this._messages.set(e,i),this._notifications.elements=[...this._notifications.elements,t],x.logger.info(e)}}i.PlotView=j,j.__name__="PlotView"}, -function _(e,t,s,o,n){var i;o();const r=e(1),a=e(400),l=e(60),h=e(59),c=e(185),p=r.__importStar(e(186)),_=e(63),d=r.__importStar(e(436));class u extends a.PaneView{stylesheets(){return[...super.stylesheets(),d.default]}connect_signals(){super.connect_signals();const{position:e,anchor:t,width:s,height:o,elements:n}=this.model.properties;this.on_change([t,s,o,n],(()=>this.reposition())),this.on_transitive_change(e,(()=>this.reposition()))}reposition(e){super.reposition(e);const{position:t,visible:s,anchor:o,elements:n}=this.model;if(0==e||!s||0==n.length)return void this.el.remove();const{x:i,y:r}=this.resolve_as_xy(t);if(!isFinite(i+r))return void this.el.remove();const a=this.parent?.el??document.body,l=a.shadowRoot??a;this.el.isConnected||l.append(this.el),this.el.style.left=(0,_.px)(i),this.el.style.top=(0,_.px)(r);const h=p.anchor(o);this.el.style.transform=`translate(${-100*h.x}%, ${-100*h.y}%)`}}s.PanelView=u,u.__name__="PanelView";class m extends a.Pane{constructor(e){super(e)}}s.Panel=m,i=m,m.__name__="Panel",i.prototype.default_view=u,i.define((({Ref:e,Or:t,Auto:s,Int:o})=>({position:[e(l.Coordinate)],anchor:[c.Anchor,"top_left"],width:[t(s,o,e(h.Node)),"auto"],height:[t(s,o,e(h.Node)),"auto"]})))}, +function _(t,s,_,r,e){r();const i=t(10),o=t(433);class n extends o.Interpolator{constructor(t){super(t)}compute(t){if(this.sort(!1),this.clip){if(tthis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];const s=(0,i.find_last_index)(this._x_sorted,(s=>sthis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}let e;switch(this.mode){case"after":e=(0,d.find_last_index)(this._x_sorted,(e=>t>=e));break;case"before":e=(0,d.find_index)(this._x_sorted,(e=>t<=e));break;case"center":{const s=(0,d.map)(this._x_sorted,(e=>Math.abs(e-t))),r=(0,d.min)(s);e=(0,d.find_index)(s,(t=>r===t));break}default:throw new Error(`unknown mode: ${this.mode}`)}return-1!=e?this._y_sorted[e]:NaN}}s.StepInterpolator=h,_=h,h.__name__="StepInterpolator",_.define((()=>({mode:[n.StepMode,"after"]})))}, +function _(p,o,t,i,a){i(),a("MapOptions",p(439).MapOptions),a("GMapOptions",p(439).GMapOptions),a("GMapPlot",p(439).GMapPlot),a("GMap",p(451).GMap),a("Plot",p(440).Plot),a("GridPlot",p(452).GridPlot),a("Figure",p(453).Figure)}, +function _(e,t,a,o,n){var p,l,s;o();const _=e(440),r=e(20),i=e(51),c=e(99),d=e(450);n("GMapPlotView",d.GMapPlotView);class u extends i.Model{constructor(e){super(e)}}a.MapOptions=u,p=u,u.__name__="MapOptions",p.define((({Int:e,Float:t})=>({lat:[t],lng:[t],zoom:[e,12]})));class M extends u{constructor(e){super(e)}}a.GMapOptions=M,l=M,M.__name__="GMapOptions",l.define((({Bool:e,Int:t,Str:a,Nullable:o})=>({map_type:[r.MapType,"roadmap"],scale_control:[e,!1],styles:[o(a),null],tilt:[t,45]})));class m extends _.Plot{constructor(e){super(e),this.use_map=!0}}a.GMapPlot=m,s=m,m.__name__="GMapPlot",s.prototype.default_view=d.GMapPlotView,s.define((({Str:e,Bytes:t,Ref:a})=>({map_options:[a(M)],api_key:[t],api_version:[e,"weekly"]}))),s.override({x_range:()=>new c.Range1d,y_range:()=>new c.Range1d,background_fill_alpha:0})}, +function _(e,t,o,r,n){var a;r();const l=e(1),i=l.__importStar(e(80)),s=l.__importStar(e(18)),_=e(15),d=e(20),c=e(10),h=e(44),u=e(8),f=e(406),b=e(189),g=e(402),p=e(81),m=e(171),w=e(101),y=e(292),v=e(408),x=e(98),S=e(96),R=e(133),A=e(83),L=e(219),T=e(218),D=e(293),P=e(106),k=e(441);n("PlotView",k.PlotView);class O extends f.LayoutDOM{constructor(e){super(e),this.use_map=!1,this.reset=new _.Signal0(this,"reset")}add_layout(e,t="center"){const o=this.properties[t].get_value();this.setv({[t]:[...o,e]})}remove_layout(e){const t=t=>{(0,c.remove_by)(t,(t=>t==e))};t(this.left),t(this.right),t(this.above),t(this.below),t(this.center)}get data_renderers(){return this.renderers.filter((e=>e instanceof L.DataRenderer))}add_renderers(...e){this.renderers=[...this.renderers,...e]}add_glyph(e,t=new R.ColumnDataSource,o={}){const r=new T.GlyphRenderer({...o,data_source:t,glyph:e});return this.add_renderers(r),r}add_tools(...e){const t=e.map((e=>e instanceof D.Tool?e:D.Tool.from_string(e)));this.toolbar.tools=[...this.toolbar.tools,...t]}remove_tools(...e){this.toolbar.tools=[...(0,h.difference)(new Set(this.toolbar.tools),new Set(e))]}get panels(){return[...this.side_panels,...this.center]}get side_panels(){const{above:e,below:t,left:o,right:r}=this;return(0,c.concat)([e,t,o,r])}}o.Plot=O,a=O,O.__name__="Plot",a.prototype.default_view=k.PlotView,a.mixins([["outline_",i.Line],["background_",i.Fill],["border_",i.Fill]]),a.define((({Bool:e,Float:t,Str:o,List:r,Dict:n,Or:a,Ref:l,Null:i,Nullable:_,Struct:c,Opt:h})=>({toolbar:[l(y.Toolbar),()=>new y.Toolbar],toolbar_location:[_(d.Location),"right"],toolbar_sticky:[e,!0],toolbar_inner:[e,!1],frame_width:[_(t),null],frame_height:[_(t),null],frame_align:[a(e,c({left:h(e),right:h(e),top:h(e),bottom:h(e)})),!0],title:[a(l(m.Title),o,i),"",{convert:e=>(0,u.isString)(e)?new m.Title({text:e}):e}],title_location:[_(d.Location),"above"],above:[r(a(l(p.Annotation),l(b.Axis))),[]],below:[r(a(l(p.Annotation),l(b.Axis))),[]],left:[r(a(l(p.Annotation),l(b.Axis))),[]],right:[r(a(l(p.Annotation),l(b.Axis))),[]],center:[r(a(l(p.Annotation),l(g.Grid))),[]],renderers:[r(l(A.Renderer)),[]],x_range:[l(x.Range),()=>new P.DataRange1d],y_range:[l(x.Range),()=>new P.DataRange1d],x_scale:[l(S.Scale),()=>new w.LinearScale],y_scale:[l(S.Scale),()=>new w.LinearScale],extra_x_ranges:[n(l(x.Range)),{}],extra_y_ranges:[n(l(x.Range)),{}],extra_x_scales:[n(l(S.Scale)),{}],extra_y_scales:[n(l(S.Scale)),{}],lod_factor:[t,10],lod_interval:[t,300],lod_threshold:[_(t),2e3],lod_timeout:[t,500],hidpi:[e,!0],output_backend:[d.OutputBackend,"canvas"],min_border:[_(t),5],min_border_top:[_(t),null],min_border_left:[_(t),null],min_border_bottom:[_(t),null],min_border_right:[_(t),null],inner_width:[t,s.unset,{readonly:!0}],inner_height:[t,s.unset,{readonly:!0}],outer_width:[t,s.unset,{readonly:!0}],outer_height:[t,s.unset,{readonly:!0}],match_aspect:[e,!1],aspect_scale:[t,1],reset_policy:[d.ResetPolicy,"standard"],hold_render:[e,!1],attribution:[r(a(o,l(v.HTML))),[]]}))),a.override({width:600,height:600,outline_line_color:"#e5e5e5",border_fill_color:"#ffffff",background_fill_color:"#ffffff"})}, +function _(e,t,i,s,n){s();const a=e(1),r=e(188),o=e(325),l=e(83),_=e(82),h=e(294),d=e(406),c=e(81),u=e(171),p=e(189),m=e(291),g=e(106),f=e(442),b=e(444),w=e(53),v=e(56),y=e(87),x=e(19),z=e(53),S=e(15),k=e(445),$=e(8),N=e(10),M=e(34),q=e(112),P=e(258),V=e(260),R=e(259),T=e(173),B=e(64),C=e(181),D=e(446),A=e(447),H=e(29),L=e(63),I=e(59),F=a.__importDefault(e(448)),O=a.__importDefault(e(449)),{max:U}=Math;class j extends d.LayoutDOMView{constructor(){super(...arguments),this._render_count=0,this.repainted=new S.Signal0(this,"repainted"),this._computed_style=new L.InlineStyleSheet,this._outer_bbox=new B.BBox,this._inner_bbox=new B.BBox,this._needs_paint=!0,this._invalidated_painters=new Set,this._invalidate_all=!0,this.computed_renderers=[],this.renderer_views=new Map,this.tool_views=new Map,this._is_paused=0,this._needs_notify=!1,this._messages=new Map}get frame(){return this.frame_view}get canvas(){return this.canvas_view}stylesheets(){return[...super.stylesheets(),F.default,this._computed_style]}get toolbar_panel(){return null!=this._toolbar?this.views.find_one(this._toolbar):null}get state(){return this._state_manager}set invalidate_dataranges(e){this._range_manager.invalidate_dataranges=e}get computed_renderer_views(){return this.computed_renderers.map((e=>this.renderer_views.get(e))).filter((e=>null!=e))}get all_renderer_views(){const e=[];for(const t of this.computed_renderer_views)e.push(t),t instanceof _.CompositeRendererView&&e.push(...t.computed_renderer_views);return e}get auto_ranged_renderers(){return this.computed_renderer_views.filter(g.is_auto_ranged)}get base_font_size(){const e=getComputedStyle(this.el).fontSize,t=(0,C.parse_css_font_size)(e);if(null!=t){const{value:e,unit:i}=t;if("px"==i)return e}return null}*children(){yield*super.children(),yield*this.renderer_views.values(),yield*this.tool_views.values()}get child_models(){return[]}get is_paused(){return 0!=this._is_paused}pause(){this._is_paused+=1}unpause(e=!1){this._is_paused=U(this._is_paused-1,0),this.is_paused||e||this.request_repaint()}notify_finished_after_paint(){this._needs_notify=!0}request_repaint(){this.request_paint()}request_paint(...e){this.invalidate_painters(...e),this.schedule_paint()}invalidate_painters(...e){if(0!=e.length)for(const t of e){const e=(()=>t instanceof l.RendererView?t:this.views.get_one(t))();this._invalidated_painters.add(e)}else this._invalidate_all=!0}schedule_paint(){if(!this.is_paused){const e=this.throttled_paint();this._ready=this._ready.then((()=>e))}}request_layout(){this.request_repaint()}reset(){"standard"==this.model.reset_policy&&(this.state.clear(),this.reset_range(),this.reset_selection()),this.model.trigger_event(new w.Reset)}remove(){(0,v.remove_views)(this.renderer_views),(0,v.remove_views)(this.tool_views),super.remove()}get_context_menu(e){const{x:t,y:i}=e;for(const e of(0,N.reversed)([...this.renderer_views.values()]))if(null!=e.context_menu&&1==e.interactive_hit?.(t,i))return e.context_menu;return super.get_context_menu(e)}initialize(){this.pause(),super.initialize(),this.lod_started=!1,this.visuals=new y.Visuals(this),this._initial_state={selection:new Map},this._frame=new r.CartesianFrame({x_scale:this.model.x_scale,y_scale:this.model.y_scale,x_range:this.model.x_range,y_range:this.model.y_range,extra_x_ranges:this.model.extra_x_ranges,extra_y_ranges:this.model.extra_y_ranges,extra_x_scales:this.model.extra_x_scales,extra_y_scales:this.model.extra_y_scales,aspect_scale:this.model.aspect_scale,match_aspect:this.model.match_aspect}),this._range_manager=new D.RangeManager(this),this._state_manager=new A.StateManager(this,this._initial_state),this.throttled_paint=(0,k.throttle)((()=>{this.is_destroyed||this.repaint()}),1e3/60);const{title_location:e,title:t}=this.model;null!=e&&null!=t&&(this._title=t instanceof u.Title?t:new u.Title({text:t}));const{toolbar_location:i,toolbar_inner:s,toolbar:n}=this.model;null!=i&&(this._toolbar=new m.ToolbarPanel({toolbar:n}),n.location=i,n.inner=s);const{hidpi:a,output_backend:l}=this.model;this._canvas=new o.Canvas({hidpi:a,output_backend:l}),this._attribution=new f.Panel({position:new I.Node({target:"frame",symbol:"bottom_right"}),anchor:"bottom_right",elements:[],css_variables:{"--max-width":new I.Node({target:"frame",symbol:"width"})},stylesheets:[O.default]}),this._notifications=new f.Panel({position:new I.Node({target:this.model,symbol:"top_center"}),anchor:"top_center",elements:[],stylesheets:["\n :host {\n display: flex;\n flex-direction: column;\n gap: 1em;\n width: max-content;\n max-width: 80%;\n }\n\n :host:empty {\n display: none;\n }\n\n :host > div {\n padding: 0.5em;\n border: 1px solid gray;\n border-radius: 0.5em;\n opacity: 0.8;\n }\n "]})}get elements(){return[this._canvas,this._frame,this._attribution,this._notifications,...super.elements]}async lazy_initialize(){await super.lazy_initialize(),this.canvas_view=this._element_views.get(this._canvas),this.canvas_view.plot_views=[this],this.frame_view=this._element_views.get(this._frame),await this.build_tool_views(),await this.build_renderer_views(),this._range_manager.update_dataranges()}box_sizing(){const{width_policy:e,height_policy:t,...i}=super.box_sizing(),{frame_width:s,frame_height:n}=this.model;return{...i,width_policy:null!=s&&"auto"==e?"fit":e,height_policy:null!=n&&"auto"==t?"fit":t}}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"grid"}}_update_layout(){super._update_layout(),this._invalidate_all=!0,this._needs_paint=!0;const e=new V.BorderLayout,{frame_align:t}=this.model;if(e.aligns=(()=>{if((0,$.isBoolean)(t))return{left:t,right:t,top:t,bottom:t};{const{left:e=!0,right:i=!0,top:s=!0,bottom:n=!0}=t;return{left:e,right:i,top:s,bottom:n}}})(),e.set_sizing({width_policy:"max",height_policy:"max"}),this.visuals.outline_line.doit){const t=this.visuals.outline_line.line_width.get_value();e.center_border_width=t}const i=(0,N.copy)(this.model.above),s=(0,N.copy)(this.model.below),n=(0,N.copy)(this.model.left),a=(0,N.copy)(this.model.right),r=[],o=[],l=[],_=[],h=(e,t=!1)=>{switch(e){case"above":return t?r:i;case"below":return t?o:s;case"left":return t?l:n;case"right":return t?_:a}},{title_location:d}=this.model;if(null!=d&&null!=this._title&&h(d).push(this._title),null!=this._toolbar){const{location:e}=this._toolbar.toolbar;if(this.model.toolbar_inner){h(e,!0).push(this._toolbar)}else{const t=h(e);let i=!0;if(this.model.toolbar_sticky)for(let s=0;s{const i=this.views.get_one(t);return i.panel=new T.SidePanel(e),i.update_layout?.(),i.layout},g=(e,t)=>{const i="above"==e||"below"==e,s=[];for(const n of t)if((0,$.isArray)(n)){const t=n.map((t=>{const s=p(e,t);if(null!=s){if(t instanceof m.ToolbarPanel){const e=i?"width_policy":"height_policy";s.set_sizing({...s.sizing,[e]:"min"})}return s}})).filter((e=>null!=e));let a;i?(a=new R.Row(t),a.set_sizing({width_policy:"max",height_policy:"min"})):(a=new R.Column(t),a.set_sizing({width_policy:"min",height_policy:"max"})),a.absolute=!0,s.push(a)}else{const t=p(e,n);null!=t&&s.push(t)}return s},f=this.model.min_border??0;e.min_border={left:this.model.min_border_left??f,top:this.model.min_border_top??f,right:this.model.min_border_right??f,bottom:this.model.min_border_bottom??f};const b=new P.NodeLayout,w=new P.VStack,v=new P.VStack,y=new P.HStack,x=new P.HStack,z=new P.VStack,S=new P.VStack,k=new P.HStack,M=new P.HStack;b.absolute=!0,w.absolute=!0,v.absolute=!0,y.absolute=!0,x.absolute=!0,z.absolute=!0,S.absolute=!0,k.absolute=!0,M.absolute=!0,b.children=this.model.center.filter((e=>e instanceof c.Annotation)).map((e=>{const t=this.views.get_one(e);return t.update_layout?.(),t.layout})).filter((e=>null!=e));const{frame_width:q,frame_height:B}=this.model;b.set_sizing({...null!=q?{width_policy:"fixed",width:q}:{width_policy:"fit"},...null!=B?{height_policy:"fixed",height:B}:{height_policy:"fit"}}),b.on_resize((e=>this.frame.set_geometry(e))),w.children=(0,N.reversed)(g("above",i)),v.children=g("below",s),y.children=(0,N.reversed)(g("left",n)),x.children=g("right",a),z.children=g("above",r),S.children=g("below",o),k.children=g("left",l),M.children=g("right",_),w.set_sizing({width_policy:"fit",height_policy:"min"}),v.set_sizing({width_policy:"fit",height_policy:"min"}),y.set_sizing({width_policy:"min",height_policy:"fit"}),x.set_sizing({width_policy:"min",height_policy:"fit"}),z.set_sizing({width_policy:"fit",height_policy:"min"}),S.set_sizing({width_policy:"fit",height_policy:"min"}),k.set_sizing({width_policy:"min",height_policy:"fit"}),M.set_sizing({width_policy:"min",height_policy:"fit"}),e.center_panel=b,e.top_panel=w,e.bottom_panel=v,e.left_panel=y,e.right_panel=x,0!=z.children.length&&(e.inner_top_panel=z),0!=S.children.length&&(e.inner_bottom_panel=S),0!=k.children.length&&(e.inner_left_panel=k),0!=M.children.length&&(e.inner_right_panel=M),this.layout=e}_measure_layout(){const{frame_width:e,frame_height:t}=this.model,i=null==e?"1fr":(0,L.px)(e),s=null==t?"1fr":(0,L.px)(t),{layout:n}=this,a=n.top_panel.measure({width:1/0,height:1/0}),r=n.bottom_panel.measure({width:1/0,height:1/0}),o=n.left_panel.measure({width:1/0,height:1/0}),l=n.right_panel.measure({width:1/0,height:1/0}),_=U(a.height,n.min_border.top),h=U(r.height,n.min_border.bottom),d=U(o.width,n.min_border.left),c=U(l.width,n.min_border.right);this._computed_style.replace(`\n :host {\n grid-template-rows: ${_}px ${s} ${h}px;\n grid-template-columns: ${d}px ${i} ${c}px;\n }\n `)}get axis_views(){const e=[];for(const[,t]of this.renderer_views)t instanceof p.AxisView&&e.push(t);return e}update_range(e,t){this.pause(),this._range_manager.update(e,t),this.unpause()}reset_range(){this.pause(),this._range_manager.reset(),this.unpause(),this.trigger_ranges_update_event()}trigger_ranges_update_event(e=[]){const{x_ranges:t,y_ranges:i}=this._range_manager.ranges(),s=[...t,...i,...e],n=new Set(s.flatMap((e=>[...e.linked_plots])));for(const e of n){const{x_range:t,y_range:i}=e.model,s=new z.RangesUpdate(t.start,t.end,i.start,i.end);e.model.trigger_event(s)}}get_selection(){const e=new Map;for(const t of this.model.data_renderers){const{selected:i}=t.selection_manager.source;e.set(t,i)}return e}update_selection(e){for(const t of this.model.data_renderers){const i=t.selection_manager.source;if(null!=e){const s=e.get(t);null!=s&&i.selected.update(s,!0)}else i.selection_manager.clear()}}reset_selection(){this.update_selection(null)}_invalidate_layout_if_needed(){(()=>{for(const e of this.model.side_panels){const t=this.renderer_views.get(e);if(t.layout?.has_size_changed())return this.invalidate_painters(t),!0}return!1})()&&this.compute_layout()}*_compute_renderers(){const{above:e,below:t,left:i,right:s,center:n,renderers:a}=this.model;yield*a,yield*e,yield*t,yield*i,yield*s,yield*n,null!=this._title&&(yield this._title),null!=this._toolbar&&(yield this._toolbar);for(const[,e]of this.tool_views)yield*e.overlays}_update_attribution(){const e=[...this.model.attribution,...this.computed_renderer_views.map((e=>e.attribution))].filter((e=>null!=e)).map((e=>(0,$.isString)(e)?new b.Div({children:[e]}):e));this._attribution.elements=e}async _build_renderers(){this.computed_renderers=[...this._compute_renderers()];const e=await(0,v.build_views)(this.renderer_views,this.computed_renderers,{parent:this});return this._update_attribution(),e}async _update_renderers(){const{created:e}=await this._build_renderers(),t=new Set(e);for(const e of this.renderer_views.values())e.el.remove();for(const e of this.renderer_views.values()){const i=t.has(e),s=e.rendering_target();i?e.render_to(s):s.append(e.el)}this.r_after_render()}async build_renderer_views(){await this._build_renderers()}async build_tool_views(){const e=(0,M.flat_map)(this.model.toolbar.tools,(e=>e instanceof h.ToolProxy?e.tools:[e])),{created:t}=await(0,v.build_views)(this.tool_views,[...e],{parent:this});t.map((e=>this.canvas_view.ui_event_bus.register_tool(e)))}connect_signals(){super.connect_signals();const{x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_}=this.model.properties;this.on_change([e,t,i,s,n,a,r,o,l,_],(()=>{const{x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_}=this.model;this._frame.setv({x_range:e,y_range:t,x_scale:i,y_scale:s,extra_x_ranges:n,extra_y_ranges:a,extra_x_scales:r,extra_y_scales:o,aspect_scale:l,match_aspect:_})}));const{above:h,below:d,left:c,right:u,center:p,renderers:g}=this.model.properties,f=[h,d,c,u,p];this.on_change(g,(async()=>{await this._update_renderers()})),this.on_change(f,(async()=>{await this._update_renderers(),this.invalidate_layout()})),this.connect(this.model.toolbar.properties.tools.change,(async()=>{await this.build_tool_views(),await this._update_renderers()}));const{x_ranges:b,y_ranges:w}=this.frame;for(const[,e]of b)this.connect(e.change,(()=>{this.request_repaint()}));for(const[,e]of w)this.connect(e.change,(()=>{this.request_repaint()}));this.connect(this.model.change,(()=>this.request_repaint())),this.connect(this.model.reset,(()=>this.reset()));const{toolbar_location:v}=this.model.properties;this.on_change(v,(async()=>{const{toolbar_location:e}=this.model;if(null!=this._toolbar)null!=e?this._toolbar.toolbar.location=e:(this._toolbar=void 0,await this._update_renderers());else if(null!=e){const{toolbar:t,toolbar_inner:i}=this.model;this._toolbar=new m.ToolbarPanel({toolbar:t}),t.location=e,t.inner=i,await this._update_renderers()}this.invalidate_layout()}));const{hold_render:y}=this.model.properties;this.on_change(y,(()=>{this.model.hold_render||this.request_repaint()}))}has_finished(){if(!super.has_finished())return!1;if(this.model.visible)for(const[,e]of this.renderer_views)if(!e.has_finished())return!1;return!0}_after_layout(){super._after_layout(),this.unpause(!0);const e=this.layout.left_panel.bbox,t=this.layout.right_panel.bbox,i=this.layout.center_panel.bbox,s=this.layout.top_panel.bbox,n=this.layout.bottom_panel.bbox,{bbox:a}=this,r=s.bottom,o=a.height-n.top,l=e.right,_=a.width-t.left;this.canvas.style.replace(`\n .bk-layer.bk-events {\n display: grid;\n grid-template-areas:\n ". above . "\n "left center right"\n ". below . ";\n grid-template-rows: ${(0,L.px)(r)} ${(0,L.px)(i.height)} ${(0,L.px)(o)};\n grid-template-columns: ${(0,L.px)(l)} ${(0,L.px)(i.width)} ${(0,L.px)(_)};\n }\n `);for(const[,e]of this.renderer_views)e instanceof c.AnnotationView&&e.after_layout?.();this.model.setv({inner_width:Math.round(this.frame.bbox.width),inner_height:Math.round(this.frame.bbox.height),outer_width:Math.round(this.bbox.width),outer_height:Math.round(this.bbox.height)},{no_change:!0}),this.model.match_aspect&&(this.pause(),this._range_manager.update_dataranges(),this.unpause(!0)),this._outer_bbox.equals(this.bbox)||(this.canvas_view.resize(),this._outer_bbox=this.bbox,this._invalidate_all=!0,this._needs_paint=!0);const{inner_bbox:h}=this.layout;this._inner_bbox.equals(h)||(this._inner_bbox=h,this._invalidate_all=!0,this._needs_paint=!0),this._needs_paint&&this.paint()}render(){super.render();for(const e of this.computed_renderer_views){const t=e.rendering_target();e.render_to(t)}}repaint(){this._invalidate_layout_if_needed(),this.paint()}paint(){if(!this.is_paused&&!this.model.hold_render){if(this.is_displayed)x.logger.trace(`${this.toString()}.paint()`),this._actual_paint();else for(const e of this.computed_renderer_views)e.force_finished();this._needs_notify&&(this._needs_notify=!1,this.notify_finished())}}_actual_paint(){x.logger.trace(`${this.toString()}._actual_paint ${this._render_count} start`);const{document:e}=this.model;if(null!=e){const t=e.interactive_duration();t>=0&&t{e.interactive_duration()>this.model.lod_timeout&&e.interactive_stop(),this.request_repaint()}),this.model.lod_timeout):e.interactive_stop()}this._range_manager.invalidate_dataranges&&(this._range_manager.update_dataranges(),this._invalidate_layout_if_needed());let t=!1,i=!1;if(this._invalidate_all)t=!0,i=!0;else for(const e of this._invalidated_painters){const{level:s}=e.model;if("overlay"!=s?t=!0:i=!0,t&&i)break}this._invalidated_painters.clear(),this._invalidate_all=!1;const s=[this.frame.bbox.left,this.frame.bbox.top,this.frame.bbox.width,this.frame.bbox.height],{primary:n,overlays:a}=this.canvas_view;t&&(n.prepare(),this.canvas_view.prepare_webgl(s),this._paint_empty(n.ctx,s),this._paint_outline(n.ctx,s),this._paint_levels(n.ctx,"image",s,!0),this._paint_levels(n.ctx,"underlay",s,!0),this._paint_levels(n.ctx,"glyph",s,!0),this._paint_levels(n.ctx,"guide",s,!1),this._paint_levels(n.ctx,"annotation",s,!1),n.finish()),(i||H.settings.wireframe)&&(a.prepare(),this._paint_levels(a.ctx,"overlay",s,!1),H.settings.wireframe&&this.paint_layout(a.ctx,this.layout),a.finish()),null==this._initial_state.range&&(this._initial_state.range=this._range_manager.compute_initial()??void 0);for(const e of this.element_views)e.reposition();this._needs_paint=!1,this.repainted.emit(),x.logger.trace(`${this.toString()}._actual_paint ${this._render_count} end`),this._render_count++}_paint_levels(e,t,i,s){for(const n of this.computed_renderer_views)n.model.level==t&&(e.save(),(s||n.needs_clip)&&(e.beginPath(),e.rect(...i),e.clip()),n.paint(),e.restore(),n.has_webgl&&this.canvas_view.blit_webgl(e))}paint_layout(e,t){const{x:i,y:s,width:n,height:a}=t.bbox;e.strokeStyle="blue",e.strokeRect(i,s,n,a);for(const n of t)e.save(),t.absolute||e.translate(i,s),this.paint_layout(e,n),e.restore()}_paint_empty(e,t){const[i,s,n,a]=[0,0,this.bbox.width,this.bbox.height],[r,o,l,_]=t;this.visuals.border_fill.doit&&(e.save(),e.beginPath(),e.rect(i,s,n,a),e.rect(r,o,l,_),e.clip("evenodd"),e.beginPath(),e.rect(i,s,n,a),this.visuals.border_fill.apply(e),e.restore()),this.visuals.background_fill.doit&&(this.visuals.background_fill.set_value(e),e.fillRect(r,o,l,_))}_paint_outline(e,t){if(this.visuals.outline_line.doit){e.save(),this.visuals.outline_line.set_value(e);let[i,s,n,a]=t;i+n==this.bbox.width&&(n-=1),s+a==this.bbox.height&&(a-=1),e.strokeRect(i,s,n,a),e.restore()}}export(e="auto",t=!0){const i=(()=>{switch(e){case"auto":return this.canvas_view.model.output_backend;case"png":return"canvas";case"svg":return"svg"}})(),s=new q.CanvasLayer(i,t),{width:n,height:a}=this.bbox;if(s.resize(n,a),0!=n&&0!=a){const{canvas:e}=this.canvas_view.compose();s.ctx.drawImage(e,0,0)}return s}resolve_frame(){return this.frame}resolve_canvas(){return this.canvas}resolve_plot(){return this}resolve_xy(e){const{x:t,y:i}=e,s=this.frame.x_scale.compute(t),n=this.frame.y_scale.compute(i);return this.frame.bbox.contains(s,n)?{x:s,y:n}:{x:NaN,y:NaN}}resolve_indexed(e){const{index:t,renderer:i}=e,s=this.views.find_one(i);if(null!=s&&s.has_finished()){const[e,i]=s.glyph.scenterxy(t,NaN,NaN);if(this.frame.bbox.contains(e,i))return{x:e,y:i}}return{x:NaN,y:NaN}}notify_about(e){if(this._messages.has(e))return;const t=new b.Div({children:[e]}),i=setTimeout((()=>{this._messages.delete(e),this._notifications.elements=this._notifications.elements.filter((e=>e!=t))}),2e3);this._messages.set(e,i),this._notifications.elements=[...this._notifications.elements,t],x.logger.info(e)}}i.PlotView=j,j.__name__="PlotView"}, +function _(e,t,s,o,n){var i;o();const r=e(1),a=e(407),l=e(60),h=e(59),c=e(185),p=r.__importStar(e(186)),_=e(63),d=r.__importStar(e(443));class u extends a.PaneView{stylesheets(){return[...super.stylesheets(),d.default]}connect_signals(){super.connect_signals();const{position:e,anchor:t,width:s,height:o,elements:n}=this.model.properties;this.on_change([t,s,o,n],(()=>this.reposition())),this.on_transitive_change(e,(()=>this.reposition()))}reposition(e){super.reposition(e);const{position:t,visible:s,anchor:o,elements:n}=this.model;if(0==e||!s||0==n.length)return void this.el.remove();const{x:i,y:r}=this.resolve_as_xy(t);if(!isFinite(i+r))return void this.el.remove();const a=this.parent?.el??document.body,l=a.shadowRoot??a;this.el.isConnected||l.append(this.el),this.el.style.left=(0,_.px)(i),this.el.style.top=(0,_.px)(r);const h=p.anchor(o);this.el.style.transform=`translate(${-100*h.x}%, ${-100*h.y}%)`}}s.PanelView=u,u.__name__="PanelView";class m extends a.Pane{constructor(e){super(e)}}s.Panel=m,i=m,m.__name__="Panel",i.prototype.default_view=u,i.define((({Ref:e,Or:t,Auto:s,Int:o})=>({position:[e(l.Coordinate)],anchor:[c.Anchor,"top_left"],width:[t(s,o,e(h.Node)),"auto"],height:[t(s,o,e(h.Node)),"auto"]})))}, function _(o,t,i,n,u){n(),i.default=":host{position:absolute;background-color:white;}"}, -function _(e,a,_,n,t){var l,s,i,m;n();const w=e(402);class o extends w.DOMElementView{}_.SpanView=o,o.__name__="SpanView",o.tag_name="span";class d extends w.DOMElement{}_.Span=d,l=d,d.__name__="Span",l.prototype.default_view=o;class p extends w.DOMElementView{}_.DivView=p,p.__name__="DivView",p.tag_name="div";class D extends w.DOMElement{}_.Div=D,s=D,D.__name__="Div",s.prototype.default_view=p;class V extends w.DOMElementView{}_.TableView=V,V.__name__="TableView",V.tag_name="table";class c extends w.DOMElement{}_.Table=c,i=c,c.__name__="Table",i.prototype.default_view=V;class v extends w.DOMElementView{}_.TableRowView=v,v.__name__="TableRowView",v.tag_name="tr";class b extends w.DOMElement{}_.TableRow=b,m=b,b.__name__="TableRow",m.prototype.default_view=v}, +function _(e,a,_,n,t){var l,s,i,m;n();const w=e(409);class o extends w.DOMElementView{}_.SpanView=o,o.__name__="SpanView",o.tag_name="span";class d extends w.DOMElement{}_.Span=d,l=d,d.__name__="Span",l.prototype.default_view=o;class p extends w.DOMElementView{}_.DivView=p,p.__name__="DivView",p.tag_name="div";class D extends w.DOMElement{}_.Div=D,s=D,D.__name__="Div",s.prototype.default_view=p;class V extends w.DOMElementView{}_.TableView=V,V.__name__="TableView",V.tag_name="table";class c extends w.DOMElement{}_.Table=c,i=c,c.__name__="Table",i.prototype.default_view=V;class v extends w.DOMElementView{}_.TableRowView=v,v.__name__="TableRowView",v.tag_name="tr";class b extends w.DOMElement{}_.TableRow=b,m=b,b.__name__="TableRow",m.prototype.default_view=v}, function _(n,t,e,l,u){l(),e.throttle=function(n,t){let e,l=null,u=null,o=0,i=!1;const r=function(){return new Promise(((r,c)=>{e=r;const a=function(){o=Date.now(),l=null,u=null,i=!1;try{n(),r()}catch(n){c(n)}},m=Date.now(),s=t-(m-o);s<=0&&!i?(null!=l&&clearTimeout(l),i=!0,u=requestAnimationFrame(a)):null!=l||i?r():l=setTimeout((()=>u=requestAnimationFrame(a)),s)}))};return r.stop=function(){null!=l&&clearTimeout(l),null!=u&&cancelAnimationFrame(u),e()},r}}, -function _(t,n,e,a,s){a();const o=t(106),r=t(19);class l{constructor(t){this.invalidate_dataranges=!0,this.parent=t}get frame(){return this.parent.frame}update(t,n={}){const e=new Map;for(const[n,a]of t.xrs)e.set(n,a);for(const[n,a]of t.yrs)e.set(n,a);n.scrolling&&this._update_ranges_together(e),this._update_ranges_individually(e,n)}ranges(){const t=new Set,n=new Set;for(const n of this.frame.x_ranges.values())t.add(n);for(const t of this.frame.y_ranges.values())n.add(t);for(const e of this.parent.model.data_renderers){const{coordinates:a}=e;null!=a&&(t.add(a.x_source),n.add(a.y_source))}return{x_ranges:[...t],y_ranges:[...n]}}reset(){const{x_ranges:t,y_ranges:n}=this.ranges();for(const n of t)n.reset();for(const t of n)t.reset();this.update_dataranges()}_update_dataranges(t){const n=new Map,e=new Map;let a=!1;for(const[,n]of t.x_ranges)n instanceof o.DataRange1d&&"log"==n.scale_hint&&(a=!0);for(const[,n]of t.y_ranges)n instanceof o.DataRange1d&&"log"==n.scale_hint&&(a=!0);for(const t of this.parent.auto_ranged_renderers){const s=t.bounds();if(n.set(t.model,s),a){const n=t.log_bounds();e.set(t.model,n)}}let s=!1,l=!1;const i=t.x_target.span,d=t.y_target.span;let _;!1!==this.parent.model.match_aspect&&0!=i&&0!=d&&(_=1/this.parent.model.aspect_scale*(i/d));for(const[,a]of t.x_ranges){if(a instanceof o.DataRange1d){const t="log"==a.scale_hint?e:n;a.update(t,0,this.parent,_),null!=a.follow&&(s=!0)}null!=a.bounds&&(l=!0)}for(const[,a]of t.y_ranges){if(a instanceof o.DataRange1d){const t="log"==a.scale_hint?e:n;a.update(t,1,this.parent,_),null!=a.follow&&(s=!0)}null!=a.bounds&&(l=!0)}if(s&&l){r.logger.warn("Follow enabled so bounds are unset.");for(const[,n]of t.x_ranges)n.bounds=null;for(const[,n]of t.y_ranges)n.bounds=null}}update_dataranges(){this._update_dataranges(this.frame);for(const t of this.parent.auto_ranged_renderers){const{coordinates:n}=t.model;null!=n&&this._update_dataranges(n)}null!=this.compute_initial()&&(this.invalidate_dataranges=!1)}compute_initial(){let t=!0;const{x_ranges:n,y_ranges:e}=this.frame,a=new Map,s=new Map;for(const[,e]of n){const{start:n,end:s}=e;if(isNaN(n+s)){t=!1;break}a.set(e,{start:n,end:s})}if(t)for(const[,n]of e){const{start:e,end:a}=n;if(isNaN(e+a)){t=!1;break}s.set(n,{start:e,end:a})}return t?{xrs:a,yrs:s}:(r.logger.warn("could not set initial ranges"),null)}_update_ranges_together(t){let n=1;for(const[e,a]of t)n=Math.min(n,this._get_weight_to_constrain_interval(e,a));if(n<1)for(const[e,a]of t)a.start=n*a.start+(1-n)*e.start,a.end=n*a.end+(1-n)*e.end}_update_ranges_individually(t,n={}){const e=n.panning??!1,a=n.scrolling??!1,s=n.maintain_focus??!1;let o=!1;for(const[n,s]of t){if(!a){const t=this._get_weight_to_constrain_interval(n,s);t<1&&(s.start=t*s.start+(1-t)*n.start,s.end=t*s.end+(1-t)*n.end)}if(null!=n.bounds){const[t,r]=n.computed_bounds,l=Math.abs(s.end-s.start);n.is_reversed?(t>s.end&&(o=!0,s.end=t,(e||a)&&(s.start=t+l)),rs.start&&(o=!0,s.start=t,(e||a)&&(s.end=t+l)),r0&&r0&&r>a&&(s=(a-o)/(r-o)),s=Math.max(0,Math.min(1,s))}return s}}e.RangeManager=l,l.__name__="RangeManager"}, +function _(t,n,a,e,s){e();const o=t(106),r=t(19);class i{constructor(t){this.invalidate_dataranges=!0,this.parent=t}get frame(){return this.parent.frame}update(t,n={}){const a=n.panning??!1,e=n.scrolling??!1,s=n.maintain_focus??!1,o=new Map;for(const[n,a]of t.xrs)o.set(n,a);for(const[n,a]of t.yrs)o.set(n,a);e&&s&&this._update_ranges_together(o),this._update_ranges_individually(o,{panning:a,scrolling:e,maintain_focus:s})}ranges(){const t=new Set,n=new Set;for(const n of this.frame.x_ranges.values())t.add(n);for(const t of this.frame.y_ranges.values())n.add(t);for(const a of this.parent.model.data_renderers){const{coordinates:e}=a;null!=e&&(t.add(e.x_source),n.add(e.y_source))}return{x_ranges:[...t],y_ranges:[...n]}}reset(){const{x_ranges:t,y_ranges:n}=this.ranges();for(const n of t)n.reset();for(const t of n)t.reset();this.update_dataranges()}_update_dataranges(t){const n=new Map,a=new Map;let e=!1;for(const[,n]of t.x_ranges)n instanceof o.DataRange1d&&"log"==n.scale_hint&&(e=!0);for(const[,n]of t.y_ranges)n instanceof o.DataRange1d&&"log"==n.scale_hint&&(e=!0);for(const t of this.parent.auto_ranged_renderers){const s=t.bounds();if(n.set(t.model,s),e){const n=t.log_bounds();a.set(t.model,n)}}let s=!1,i=!1;const l=t.x_target.span,d=t.y_target.span;let _;!1!==this.parent.model.match_aspect&&0!=l&&0!=d&&(_=1/this.parent.model.aspect_scale*(l/d));for(const[,e]of t.x_ranges){if(e instanceof o.DataRange1d){const t="log"==e.scale_hint?a:n;e.update(t,0,this.parent,_),null!=e.follow&&(s=!0)}null!=e.bounds&&(i=!0)}for(const[,e]of t.y_ranges){if(e instanceof o.DataRange1d){const t="log"==e.scale_hint?a:n;e.update(t,1,this.parent,_),null!=e.follow&&(s=!0)}null!=e.bounds&&(i=!0)}if(s&&i){r.logger.warn("Follow enabled so bounds are unset.");for(const[,n]of t.x_ranges)n.bounds=null;for(const[,n]of t.y_ranges)n.bounds=null}}update_dataranges(){this._update_dataranges(this.frame);for(const t of this.parent.auto_ranged_renderers){const{coordinates:n}=t.model;null!=n&&this._update_dataranges(n)}null!=this.compute_initial()&&(this.invalidate_dataranges=!1)}compute_initial(){let t=!0;const{x_ranges:n,y_ranges:a}=this.frame,e=new Map,s=new Map;for(const[,a]of n){const{start:n,end:s}=a;if(isNaN(n+s)){t=!1;break}e.set(a,{start:n,end:s})}if(t)for(const[,n]of a){const{start:a,end:e}=n;if(isNaN(a+e)){t=!1;break}s.set(n,{start:a,end:e})}return t?{xrs:e,yrs:s}:(r.logger.warn("could not set initial ranges"),null)}_update_ranges_together(t){let n=1;for(const[a,e]of t)n=Math.min(n,this._get_weight_to_constrain_interval(a,e));if(n<1)for(const[a,e]of t)e.start=n*e.start+(1-n)*a.start,e.end=n*e.end+(1-n)*a.end}_update_ranges_individually(t,n){const{panning:a,scrolling:e,maintain_focus:s}=n;let o=!1;for(const[n,r]of t){if(!e||s){const t=this._get_weight_to_constrain_interval(n,r);t<1&&(r.start=t*r.start+(1-t)*n.start,r.end=t*r.end+(1-t)*n.end)}if(null!=n.bounds){const[t,s]=n.computed_bounds,i=Math.abs(r.end-r.start);n.is_reversed?(t>r.end&&(o=!0,r.end=t,(a||e)&&(r.start=t+i)),sr.start&&(o=!0,r.start=t,(a||e)&&(r.end=t+i)),s0&&r0&&r>e&&(s=(e-o)/(r-o)),s=Math.max(0,Math.min(1,s))}return s}}a.RangeManager=i,i.__name__="RangeManager"}, function _(t,i,e,s,n){s();const h=t(15);class a{constructor(t,i){this.history=[],this.index=-1,this.parent=t,this.initial_state=i,this.changed=new h.Signal0(this.parent,"state_changed")}_do_state_change(t){const i=t in this.history?this.history[t].state:this.initial_state;return null!=i.range&&this.parent.update_range(i.range),null!=i.selection&&this.parent.update_selection(i.selection),i}peek(){return this.can_undo?this.history[this.index]:null}push(t,i){const{history:e,index:s}=this,n=s in e?e[s].state:{},h={...this.initial_state,...n,...i};this.history=this.history.slice(0,this.index+1),this.history.push({type:t,state:h}),this.index=this.history.length-1,this.changed.emit()}clear(){this.history=[],this.index=-1,this.changed.emit()}undo(){if(this.can_undo){this.index-=1;const t=this._do_state_change(this.index);return this.changed.emit(),t}return null}redo(){if(this.can_redo){this.index+=1;const t=this._do_state_change(this.index);return this.changed.emit(),t}return null}get can_undo(){return this.index>=0}get can_redo(){return this.indexh.emit();const s=encodeURIComponent,i=document.createElement("script");i.type="text/javascript",i.src=`https://maps.googleapis.com/maps/api/js?v=${s(e)}&key=${s(t)}&callback=_bokeh_gmaps_callback&loading=async`,document.body.appendChild(i)}(this._api_key,t)}h.connect((()=>{this._build_map(),this.request_repaint()}))}else this._build_map()}remove(){this.map_el.remove(),super.remove()}update_range(t,e){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.reset_range();else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx??0,t.sdy??0),super.update_range(t,e);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t,e);const s=t.factor<0?-1:1,i=this.map.getZoom(),o=this.map.getBounds();if(null!=i&&null!=o){const t=i+s;if(t>=2){this.map.setZoom(t);const[e,s]=this._get_projected_bounds(o);s-e<0&&this.map.setZoom(i)}}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",(()=>this._set_bokeh_ranges())),t.event.addListener(this.map,"bounds_changed",(()=>this._set_bokeh_ranges())),t.event.addListenerOnce(this.map,"tilesloaded",(()=>this._render_finished())),this.connect(this.model.properties.map_options.change,(()=>this._update_options())),this.connect(this.model.map_options.properties.styles.change,(()=>this._update_styling())),this.connect(this.model.map_options.properties.lat.change,(()=>this._update_center("lat"))),this.connect(this.model.map_options.properties.lng.change,(()=>this._update_center("lng"))),this.connect(this.model.map_options.properties.zoom.change,(()=>this._update_zoom())),this.connect(this.model.map_options.properties.map_type.change,(()=>this._update_map_type())),this.connect(this.model.map_options.properties.scale_control.change,(()=>this._update_scale_control())),this.connect(this.model.map_options.properties.tilt.change,(()=>this._update_tilt()))}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(t){const e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(t){const[e,s,i,o]=this._get_latlon_bounds(t),[a,n]=_.wgs84_mercator.compute(e,i),[p,l]=_.wgs84_mercator.compute(s,o);return[a,p,n,l]}_set_bokeh_ranges(){const t=this.map.getBounds();if(null!=t){const[e,s,i,o]=this._get_projected_bounds(t);this.frame.x_range.setv({start:e,end:s}),this.frame.y_range.setv({start:i,end:o})}}_update_center(t){const e=this.map.getCenter()?.toJSON();null!=e&&(e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges())}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styling(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styling(){const{styles:t}=this.model.map_options;this.map.setOptions({styles:null!=t?JSON.parse(t):null})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_after_layout(){super._after_layout();const{left:t,top:e,width:s,height:i}=this.frame.bbox;this.map_el.style.top=`${e}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${s}px`,this.map_el.style.height=`${i}px`}}s.GMapPlotView=m,m.__name__="GMapPlotView"}, -function _(e,a,t,_,p){var s;_();const n=e(432);class o extends n.GMapPlotView{}t.GMapView=o,o.__name__="GMapView";class c extends n.GMapPlot{constructor(e){super(e)}}t.GMap=c,s=c,c.__name__="GMap",s.prototype.default_view=o}, -function _(i,o,t,e,s){var l;e();const n=i(399),a=i(404),r=i(185),c=i(291),_=i(302),d=i(56),h=i(20);class u extends n.LayoutDOMView{constructor(){super(...arguments),this._tool_views=new Map}get toolbar_view(){return this.child_views.find((i=>i.model==this.model.toolbar))}get grid_box_view(){return this.child_views.find((i=>i.model==this._grid_box))}_update_location(){const i=this.model.toolbar_location;null==i?this.model.toolbar.visible=!1:this.model.toolbar.setv({visible:!0,location:i})}initialize(){super.initialize(),this._update_location();const{children:i,rows:o,cols:t,spacing:e}=this.model;this._grid_box=new a.GridBox({children:i,rows:o,cols:t,spacing:e,sizing_mode:"inherit"})}async lazy_initialize(){await super.lazy_initialize(),await this.build_tool_views()}connect_signals(){super.connect_signals();const{toolbar:i,toolbar_location:o,children:t,rows:e,cols:s,spacing:l}=this.model.properties;this.on_change(o,(async()=>{this._update_location(),this.invalidate_layout()})),this.on_change([i,t,e,s,l],(async()=>{await this.update_children()})),this.on_change(this.model.toolbar.properties.tools,(async()=>{await this.build_tool_views()})),this.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){(0,d.remove_views)(this._tool_views),super.remove()}async build_tool_views(){const i=this.model.toolbar.tools.filter((i=>i instanceof _.ActionTool));await(0,d.build_views)(this._tool_views,i,{parent:this})}*children(){yield*super.children(),yield*this._tool_views.values()}get child_models(){return[this.model.toolbar,this._grid_box]}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flex"}}_update_layout(){super._update_layout();const{location:i}=this.model.toolbar,o=(()=>{switch(i){case"above":return"column";case"below":return"column-reverse";case"left":return"row";case"right":return"row-reverse"}})();this.style.append(":host",{flex_direction:o})}}t.GridPlotView=u,u.__name__="GridPlotView";class w extends n.LayoutDOM{constructor(i){super(i)}}t.GridPlot=w,l=w,w.__name__="GridPlot",l.prototype.default_view=u,l.define((({List:i,Ref:o,Nullable:t})=>({toolbar:[o(c.Toolbar),()=>new c.Toolbar],toolbar_location:[t(h.Location),"above"],children:[i((0,r.GridChild)(n.LayoutDOM)),[]],rows:[t(r.TracksSizing),null],cols:[t(r.TracksSizing),null],spacing:[r.GridSpacing,0]})))}, -function _(e,t,_,i,r){var s;i();const n=e(433);class o extends n.PlotView{}_.FigureView=o,o.__name__="FigureView";class u extends n.Plot{constructor(e){super(e)}}_.Figure=u,s=u,u.__name__="Figure",s.prototype.default_view=o}, +function _(t,e,s,i,o){i();const a=t(19),n=t(15),p=t(63),_=t(134),l=t(441);const h=new n.Signal0({},"gmaps_ready");class m extends l.PlotView{initialize(){super.initialize(),this._tiles_loaded=!1,this.zoom_count=0;const{zoom:t,lat:e,lng:s}=this.model.map_options;this.initial_zoom=t,this.initial_lat=e,this.initial_lng=s;const i=new TextDecoder("utf-8");if(this._api_key=i.decode(this.model.api_key),""==this._api_key){const t="https://developers.google.com/maps/documentation/javascript/get-api-key";a.logger.error(`api_key is required. See ${t} for more information on how to obtain your own.`)}}async lazy_initialize(){if(await super.lazy_initialize(),this.map_el=(0,p.div)({style:{position:"absolute"}}),this.canvas_view.underlays_el.append(this.map_el),"undefined"==typeof google||void 0===google.maps){if(void 0===window._bokeh_gmaps_callback){const{api_version:t}=this.model;!function(t,e){window._bokeh_gmaps_callback=()=>h.emit();const s=encodeURIComponent,i=document.createElement("script");i.type="text/javascript",i.src=`https://maps.googleapis.com/maps/api/js?v=${s(e)}&key=${s(t)}&callback=_bokeh_gmaps_callback&loading=async`,document.body.appendChild(i)}(this._api_key,t)}h.connect((()=>{this._build_map(),this.request_repaint()}))}else this._build_map()}remove(){this.map_el.remove(),super.remove()}update_range(t,e){if(null==t)this.map.setCenter({lat:this.initial_lat,lng:this.initial_lng}),this.map.setOptions({zoom:this.initial_zoom}),super.reset_range();else if(null!=t.sdx||null!=t.sdy)this.map.panBy(t.sdx??0,t.sdy??0),super.update_range(t,e);else if(null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,this.pause(),super.update_range(t,e);const s=t.factor<0?-1:1,i=this.map.getZoom(),o=this.map.getBounds();if(null!=i&&null!=o){const t=i+s;if(t>=2){this.map.setZoom(t);const[e,s]=this._get_projected_bounds(o);s-e<0&&this.map.setZoom(i)}}this.unpause()}this._set_bokeh_ranges()}_build_map(){const{maps:t}=google;this.map_types={satellite:t.MapTypeId.SATELLITE,terrain:t.MapTypeId.TERRAIN,roadmap:t.MapTypeId.ROADMAP,hybrid:t.MapTypeId.HYBRID};const e=this.model.map_options,s={center:new t.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[e.map_type],scaleControl:e.scale_control,tilt:e.tilt};null!=e.styles&&(s.styles=JSON.parse(e.styles)),this.map=new t.Map(this.map_el,s),t.event.addListener(this.map,"idle",(()=>this._set_bokeh_ranges())),t.event.addListener(this.map,"bounds_changed",(()=>this._set_bokeh_ranges())),t.event.addListenerOnce(this.map,"tilesloaded",(()=>this._render_finished())),this.connect(this.model.properties.map_options.change,(()=>this._update_options())),this.connect(this.model.map_options.properties.styles.change,(()=>this._update_styling())),this.connect(this.model.map_options.properties.lat.change,(()=>this._update_center("lat"))),this.connect(this.model.map_options.properties.lng.change,(()=>this._update_center("lng"))),this.connect(this.model.map_options.properties.zoom.change,(()=>this._update_zoom())),this.connect(this.model.map_options.properties.map_type.change,(()=>this._update_map_type())),this.connect(this.model.map_options.properties.scale_control.change,(()=>this._update_scale_control())),this.connect(this.model.map_options.properties.tilt.change,(()=>this._update_tilt()))}_render_finished(){this._tiles_loaded=!0,this.notify_finished()}has_finished(){return super.has_finished()&&!0===this._tiles_loaded}_get_latlon_bounds(t){const e=t.getNorthEast(),s=t.getSouthWest();return[s.lng(),e.lng(),s.lat(),e.lat()]}_get_projected_bounds(t){const[e,s,i,o]=this._get_latlon_bounds(t),[a,n]=_.wgs84_mercator.compute(e,i),[p,l]=_.wgs84_mercator.compute(s,o);return[a,p,n,l]}_set_bokeh_ranges(){const t=this.map.getBounds();if(null!=t){const[e,s,i,o]=this._get_projected_bounds(t);this.frame.x_range.setv({start:e,end:s}),this.frame.y_range.setv({start:i,end:o})}}_update_center(t){const e=this.map.getCenter()?.toJSON();null!=e&&(e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges())}_update_map_type(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})}_update_scale_control(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})}_update_tilt(){this.map.setOptions({tilt:this.model.map_options.tilt})}_update_options(){this._update_styling(),this._update_center("lat"),this._update_center("lng"),this._update_zoom(),this._update_map_type()}_update_styling(){const{styles:t}=this.model.map_options;this.map.setOptions({styles:null!=t?JSON.parse(t):null})}_update_zoom(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()}_after_layout(){super._after_layout();const{left:t,top:e,width:s,height:i}=this.frame.bbox;this.map_el.style.top=`${e}px`,this.map_el.style.left=`${t}px`,this.map_el.style.width=`${s}px`,this.map_el.style.height=`${i}px`}}s.GMapPlotView=m,m.__name__="GMapPlotView"}, +function _(e,a,t,_,p){var s;_();const n=e(439);class o extends n.GMapPlotView{}t.GMapView=o,o.__name__="GMapView";class c extends n.GMapPlot{constructor(e){super(e)}}t.GMap=c,s=c,c.__name__="GMap",s.prototype.default_view=o}, +function _(i,o,t,e,s){var l;e();const n=i(406),a=i(411),r=i(185),c=i(292),_=i(303),d=i(56),h=i(20);class u extends n.LayoutDOMView{constructor(){super(...arguments),this._tool_views=new Map}get toolbar_view(){return this.child_views.find((i=>i.model==this.model.toolbar))}get grid_box_view(){return this.child_views.find((i=>i.model==this._grid_box))}_update_location(){const i=this.model.toolbar_location;null==i?this.model.toolbar.visible=!1:this.model.toolbar.setv({visible:!0,location:i})}initialize(){super.initialize(),this._update_location();const{children:i,rows:o,cols:t,spacing:e}=this.model;this._grid_box=new a.GridBox({children:i,rows:o,cols:t,spacing:e,sizing_mode:"inherit"})}async lazy_initialize(){await super.lazy_initialize(),await this.build_tool_views()}connect_signals(){super.connect_signals();const{toolbar:i,toolbar_location:o,children:t,rows:e,cols:s,spacing:l}=this.model.properties;this.on_change(o,(async()=>{this._update_location(),this.invalidate_layout()})),this.on_change(i,(async()=>{await this.update_children()})),this.on_change([t,e,s,l],(async()=>{const{children:i,rows:o,cols:t,spacing:e}=this.model;this._grid_box.setv({children:i,rows:o,cols:t,spacing:e}),await this.grid_box_view.ready})),this.on_change(this.model.toolbar.properties.tools,(async()=>{await this.build_tool_views()})),this.mouseenter.connect((()=>{this.toolbar_view.set_visibility(!0)})),this.mouseleave.connect((()=>{this.toolbar_view.set_visibility(!1)}))}remove(){(0,d.remove_views)(this._tool_views),super.remove()}async build_tool_views(){const i=this.model.toolbar.tools.filter((i=>i instanceof _.ActionTool));await(0,d.build_views)(this._tool_views,i,{parent:this})}*children(){yield*super.children(),yield*this._tool_views.values()}get child_models(){return[this.model.toolbar,this._grid_box]}_intrinsic_display(){return{inner:this.model.flow_mode,outer:"flex"}}_update_layout(){super._update_layout();const{location:i}=this.model.toolbar,o=(()=>{switch(i){case"above":return"column";case"below":return"column-reverse";case"left":return"row";case"right":return"row-reverse"}})();this.style.append(":host",{flex_direction:o})}}t.GridPlotView=u,u.__name__="GridPlotView";class w extends n.LayoutDOM{constructor(i){super(i)}}t.GridPlot=w,l=w,w.__name__="GridPlot",l.prototype.default_view=u,l.define((({List:i,Ref:o,Nullable:t})=>({toolbar:[o(c.Toolbar),()=>new c.Toolbar],toolbar_location:[t(h.Location),"above"],children:[i((0,r.GridChild)(n.LayoutDOM)),[]],rows:[t(r.TracksSizing),null],cols:[t(r.TracksSizing),null],spacing:[r.GridSpacing,0]})))}, +function _(e,t,_,i,r){var s;i();const n=e(440);class o extends n.PlotView{}_.FigureView=o,o.__name__="FigureView";class u extends n.Plot{constructor(e){super(e)}}_.Figure=u,s=u,u.__name__="Figure",s.prototype.default_view=o}, function _(t,_,n,o,r){o();t(1).__exportStar(t(193),n)}, -function _(l,r,i,a,e){a(),e("ParkMillerLCG",l(449).ParkMillerLCG)}, -function _(e,n,r,a,t){var l;a();const o=e(428),s=e(115);class d extends o.RandomGenerator{constructor(e){super(e)}generator(){return new s.LCGRandom(this.seed??Date.now())}}r.ParkMillerLCG=d,l=d,d.__name__="ParkMillerLCG",l.define((({Int:e,Nullable:n})=>({seed:[n(e),null]})))}, -function _(e,r,n,d,R){d(),R("ContourRenderer",e(451).ContourRenderer),R("GlyphRenderer",e(217).GlyphRenderer),R("GraphRenderer",e(452).GraphRenderer),R("GuideRenderer",e(190).GuideRenderer),R("Renderer",e(83).Renderer),R("RendererGroup",e(124).RendererGroup)}, -function _(e,i,r,t,l){var n;t();const _=e(218),s=e(217),a=e(56);class d extends _.DataRendererView{*children(){yield*super.children(),yield this.fill_view,yield this.line_view}get glyph_view(){return this.fill_view.glyph.data_size>0?this.fill_view.glyph:this.line_view.glyph}async lazy_initialize(){await super.lazy_initialize();const{parent:e}=this,{fill_renderer:i,line_renderer:r}=this.model;this.fill_view=await(0,a.build_view)(i,{parent:e}),this.line_view=await(0,a.build_view)(r,{parent:e})}remove(){this.fill_view.remove(),this.line_view.remove(),super.remove()}_paint(){this.fill_view.paint(),this.line_view.paint()}hit_test(e){return this.fill_view.hit_test(e)}}r.ContourRendererView=d,d.__name__="ContourRendererView";class h extends _.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.fill_renderer.data_source.selection_manager}}r.ContourRenderer=h,n=h,h.__name__="ContourRenderer",n.prototype.default_view=d,n.define((({List:e,Float:i,Ref:r})=>({fill_renderer:[r(s.GlyphRenderer)],line_renderer:[r(s.GlyphRenderer)],levels:[e(i),[]]})))}, -function _(e,t,i,r,n){var s;r();const o=e(218),a=e(217),l=e(392),d=e(391),_=e(56),p=e(19),h=e(220),y=e(370),c=e(372);class g extends o.DataRendererView{get glyph_view(){return this.node_view.glyph}*children(){yield*super.children(),yield this.edge_view,yield this.node_view}async lazy_initialize(){await super.lazy_initialize(),this.apply_coordinates();const{parent:e}=this,{edge_renderer:t,node_renderer:i}=this.model;this.edge_view=await(0,_.build_view)(t,{parent:e}),this.node_view=await(0,_.build_view)(i,{parent:e})}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,(async()=>{this.apply_coordinates(),await this.edge_view.set_data(),await this.node_view.set_data(),this.request_paint()}))}apply_coordinates(){const{edge_renderer:e,node_renderer:t}=this.model,i=this.model.layout_provider.edge_coordinates,r=this.model.layout_provider.node_coordinates,n={expr:i.x},s={expr:i.y},o={expr:r.x},a={expr:r.y},l=[e.glyph,e.hover_glyph,e.muted_glyph,e.selection_glyph,e.nonselection_glyph],d=[t.glyph,t.hover_glyph,t.muted_glyph,t.selection_glyph,t.nonselection_glyph];for(const e of l)null!=e&&"auto"!=e&&(e instanceof y.MultiLine||e instanceof c.Patches?(e.properties.xs.internal=!0,e.properties.ys.internal=!0,e.xs=n,e.ys=s):p.logger.warn(`${this}.edge_renderer only supports MultiLine and Patches glyphs`));for(const e of d)null!=e&&"auto"!=e&&(e instanceof h.XYGlyph?(e.properties.x.internal=!0,e.properties.y.internal=!0,e.x=o,e.y=a):p.logger.warn(`${this}.node_renderer only supports XY glyphs`))}remove(){this.edge_view.remove(),this.node_view.remove(),super.remove()}_paint(){this.edge_view.paint(),this.node_view.paint()}get has_webgl(){return this.edge_view.has_webgl||this.node_view.has_webgl}hit_test(e){return this.model.inspection_policy.hit_test(e,this)}}i.GraphRendererView=g,g.__name__="GraphRendererView";class w extends o.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}i.GraphRenderer=w,s=w,w.__name__="GraphRenderer",s.prototype.default_view=g,s.define((({Ref:e})=>({layout_provider:[e(l.LayoutProvider)],node_renderer:[e(a.GlyphRenderer)],edge_renderer:[e(a.GlyphRenderer)],selection_policy:[e(d.GraphHitTestPolicy),()=>new d.NodesOnly],inspection_policy:[e(d.GraphHitTestPolicy),()=>new d.NodesOnly]})))}, +function _(l,r,i,a,e){a(),e("ParkMillerLCG",l(456).ParkMillerLCG)}, +function _(e,n,r,a,t){var l;a();const o=e(435),s=e(115);class d extends o.RandomGenerator{constructor(e){super(e)}generator(){return new s.LCGRandom(this.seed??Date.now())}}r.ParkMillerLCG=d,l=d,d.__name__="ParkMillerLCG",l.define((({Int:e,Nullable:n})=>({seed:[n(e),null]})))}, +function _(e,r,n,d,R){d(),R("ContourRenderer",e(458).ContourRenderer),R("GlyphRenderer",e(218).GlyphRenderer),R("GraphRenderer",e(459).GraphRenderer),R("GuideRenderer",e(190).GuideRenderer),R("Renderer",e(83).Renderer),R("RendererGroup",e(124).RendererGroup)}, +function _(e,i,r,t,l){var n;t();const _=e(219),s=e(218),a=e(56);class d extends _.DataRendererView{*children(){yield*super.children(),yield this.fill_view,yield this.line_view}get glyph_view(){return this.fill_view.glyph.data_size>0?this.fill_view.glyph:this.line_view.glyph}async lazy_initialize(){await super.lazy_initialize();const{parent:e}=this,{fill_renderer:i,line_renderer:r}=this.model;this.fill_view=await(0,a.build_view)(i,{parent:e}),this.line_view=await(0,a.build_view)(r,{parent:e})}remove(){this.fill_view.remove(),this.line_view.remove(),super.remove()}_paint(){this.fill_view.paint(),this.line_view.paint()}hit_test(e){return this.fill_view.hit_test(e)}}r.ContourRendererView=d,d.__name__="ContourRendererView";class h extends _.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.fill_renderer.data_source.selection_manager}}r.ContourRenderer=h,n=h,h.__name__="ContourRenderer",n.prototype.default_view=d,n.define((({List:e,Float:i,Ref:r})=>({fill_renderer:[r(s.GlyphRenderer)],line_renderer:[r(s.GlyphRenderer)],levels:[e(i),[]]})))}, +function _(e,t,i,r,n){var s;r();const o=e(219),a=e(218),l=e(399),d=e(398),_=e(56),p=e(19),h=e(221),y=e(376),c=e(379);class g extends o.DataRendererView{get glyph_view(){return this.node_view.glyph}*children(){yield*super.children(),yield this.edge_view,yield this.node_view}async lazy_initialize(){await super.lazy_initialize(),this.apply_coordinates();const{parent:e}=this,{edge_renderer:t,node_renderer:i}=this.model;this.edge_view=await(0,_.build_view)(t,{parent:e}),this.node_view=await(0,_.build_view)(i,{parent:e})}connect_signals(){super.connect_signals(),this.connect(this.model.layout_provider.change,(async()=>{this.apply_coordinates(),await this.edge_view.set_data(),await this.node_view.set_data(),this.request_paint()}))}apply_coordinates(){const{edge_renderer:e,node_renderer:t}=this.model,i=this.model.layout_provider.edge_coordinates,r=this.model.layout_provider.node_coordinates,n={expr:i.x},s={expr:i.y},o={expr:r.x},a={expr:r.y},l=[e.glyph,e.hover_glyph,e.muted_glyph,e.selection_glyph,e.nonselection_glyph],d=[t.glyph,t.hover_glyph,t.muted_glyph,t.selection_glyph,t.nonselection_glyph];for(const e of l)null!=e&&"auto"!=e&&(e instanceof y.MultiLine||e instanceof c.Patches?(e.properties.xs.internal=!0,e.properties.ys.internal=!0,e.xs=n,e.ys=s):p.logger.warn(`${this}.edge_renderer only supports MultiLine and Patches glyphs`));for(const e of d)null!=e&&"auto"!=e&&(e instanceof h.XYGlyph?(e.properties.x.internal=!0,e.properties.y.internal=!0,e.x=o,e.y=a):p.logger.warn(`${this}.node_renderer only supports XY glyphs`))}remove(){this.edge_view.remove(),this.node_view.remove(),super.remove()}_paint(){this.edge_view.paint(),this.node_view.paint()}get has_webgl(){return this.edge_view.has_webgl||this.node_view.has_webgl}hit_test(e){return this.model.inspection_policy.hit_test(e,this)}}i.GraphRendererView=g,g.__name__="GraphRendererView";class w extends o.DataRenderer{constructor(e){super(e)}get_selection_manager(){return this.node_renderer.data_source.selection_manager}}i.GraphRenderer=w,s=w,w.__name__="GraphRenderer",s.prototype.default_view=g,s.define((({Ref:e})=>({layout_provider:[e(l.LayoutProvider)],node_renderer:[e(a.GlyphRenderer)],edge_renderer:[e(a.GlyphRenderer)],selection_policy:[e(d.GraphHitTestPolicy),()=>new d.NodesOnly],inspection_policy:[e(d.GraphHitTestPolicy),()=>new d.NodesOnly]})))}, function _(e,t,n,o,c){o();e(1).__exportStar(e(131),n),c("Selection",e(130).Selection)}, -function _(y,B,a,s,C){s(),C("ByID",y(455).ByID),C("ByClass",y(456).ByClass),C("ByCSS",y(457).ByCSS),C("ByXPath",y(458).ByXPath)}, -function _(e,n,r,t,c){t();const o=e(414);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`#${this.query}`)}}r.ByID=s,s.__name__="ByID"}, -function _(e,s,n,r,t){r();const c=e(414);class o extends c.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`.${this.query}`)}}n.ByClass=o,o.__name__="ByClass"}, -function _(e,n,r,t,c){t();const o=e(414);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(this.query)}}r.ByCSS=s,s.__name__="ByCSS"}, -function _(e,t,n,r,a){r();const c=e(414);class o extends c.Selector{constructor(e){super(e)}find_one(e){return document.evaluate(this.query,e).iterateNext()}}n.ByXPath=o,o.__name__="ByXPath"}, -function _(a,e,S,o,r){o(),r("ServerSentDataSource",a(460).ServerSentDataSource),r("AjaxDataSource",a(462).AjaxDataSource),r("ColumnDataSource",a(133).ColumnDataSource),r("ColumnarDataSource",a(128).ColumnarDataSource),r("CDSView",a(236).CDSView),r("DataSource",a(132).DataSource),r("GeoJSONDataSource",a(463).GeoJSONDataSource),r("WebDataSource",a(461).WebDataSource)}, -function _(e,t,a,i,s){i();const n=e(461);class r extends n.WebDataSource{constructor(e){super(e),this.initialized=!1}setup(){if(!this.initialized){this.initialized=!0;new EventSource(this.data_url).onmessage=async e=>{await this.load_data(JSON.parse(e.data),this.mode,this.max_size??void 0)}}}}a.ServerSentDataSource=r,r.__name__="ServerSentDataSource"}, +function _(y,B,a,s,C){s(),C("ByID",y(462).ByID),C("ByClass",y(463).ByClass),C("ByCSS",y(464).ByCSS),C("ByXPath",y(465).ByXPath)}, +function _(e,n,r,t,c){t();const o=e(421);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`#${this.query}`)}}r.ByID=s,s.__name__="ByID"}, +function _(e,s,n,r,t){r();const c=e(421);class o extends c.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(`.${this.query}`)}}n.ByClass=o,o.__name__="ByClass"}, +function _(e,n,r,t,c){t();const o=e(421);class s extends o.Selector{constructor(e){super(e)}find_one(e){return e.querySelector(this.query)}}r.ByCSS=s,s.__name__="ByCSS"}, +function _(e,t,n,r,a){r();const c=e(421);class o extends c.Selector{constructor(e){super(e)}find_one(e){return document.evaluate(this.query,e).iterateNext()}}n.ByXPath=o,o.__name__="ByXPath"}, +function _(a,e,S,o,r){o(),r("ServerSentDataSource",a(467).ServerSentDataSource),r("AjaxDataSource",a(469).AjaxDataSource),r("ColumnDataSource",a(133).ColumnDataSource),r("ColumnarDataSource",a(128).ColumnarDataSource),r("CDSView",a(237).CDSView),r("DataSource",a(132).DataSource),r("GeoJSONDataSource",a(470).GeoJSONDataSource),r("WebDataSource",a(468).WebDataSource)}, +function _(e,t,a,i,s){i();const n=e(468);class r extends n.WebDataSource{constructor(e){super(e),this.initialized=!1}setup(){if(!this.initialized){this.initialized=!0;new EventSource(this.data_url).onmessage=async e=>{await this.load_data(JSON.parse(e.data),this.mode,this.max_size??void 0)}}}}a.ServerSentDataSource=r,r.__name__="ServerSentDataSource"}, function _(t,e,a,n,s){var r;n();const c=t(133),l=t(20),i=t(50),o=t(9);class u extends c.ColumnDataSource{constructor(t){super(t)}get_column(t){return(0,o.dict)(this.data).get(t)??[]}get_length(){return super.get_length()??0}initialize(){super.initialize(),this.setup()}async load_data(t,e,a){const{adapter:n}=this;let s;switch(s=null!=n?await(0,i.execute)(n,this,{response:t}):t,e){case"replace":break;case"append":{const t=(0,o.dict)(this.data),e=(0,o.dict)(s);for(const n of this.columns()){const s=Array.from(t.get(n)??[]),r=Array.from(e.get(n)??[]),c=s.concat(r);e.set(n,null!=a?c.slice(-a):c)}break}}this.data=s}}a.WebDataSource=u,r=u,u.__name__="WebDataSource",r.define((({Any:t,Int:e,Str:a,Nullable:n})=>({max_size:[n(e),null],mode:[l.UpdateMode,"replace"],adapter:[n(t),null],data_url:[a]})))}, -function _(t,e,i,s,a){var r;s();const n=t(461),o=t(20),d=t(19),l=t(9);class h extends n.WebDataSource{constructor(t){super(t)}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!0!==this.initialized&&(this.initialized=!0,this.get_data(this.mode),null!=this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=null,i=!1){const s=this.prepare_request();s.addEventListener("load",(()=>this.do_load(s,t,e??void 0))),s.addEventListener("error",(()=>this.do_error(s))),i&&null!=this.last_fetch_time&&s.setRequestHeader("If-Modified-Since",this.last_fetch_time.toUTCString()),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);for(const[e,i]of(0,l.entries)(this.http_headers))t.setRequestHeader(e,i);return t}async do_load(t,e,i){if(200==t.status){const s=JSON.parse(t.responseText);this.last_fetch_time=new Date,await this.load_data(s,e,i)}}do_error(t){d.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=h,r=h,h.__name__="AjaxDataSource",r.define((({Bool:t,Int:e,Str:i,Dict:s,Nullable:a})=>({polling_interval:[a(e),null],content_type:[i,"application/json"],http_headers:[s(i),{}],method:[o.HTTPMethod,"POST"],if_modified:[t,!1]})))}, +function _(t,e,i,s,a){var r;s();const n=t(468),o=t(20),d=t(19),l=t(9);class h extends n.WebDataSource{constructor(t){super(t)}destroy(){null!=this.interval&&clearInterval(this.interval),super.destroy()}setup(){if(!0!==this.initialized&&(this.initialized=!0,this.get_data(this.mode),null!=this.polling_interval)){const t=()=>this.get_data(this.mode,this.max_size,this.if_modified);this.interval=setInterval(t,this.polling_interval)}}get_data(t,e=null,i=!1){const s=this.prepare_request();s.addEventListener("load",(()=>this.do_load(s,t,e??void 0))),s.addEventListener("error",(()=>this.do_error(s))),i&&null!=this.last_fetch_time&&s.setRequestHeader("If-Modified-Since",this.last_fetch_time.toUTCString()),s.send()}prepare_request(){const t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader("Content-Type",this.content_type);for(const[e,i]of(0,l.entries)(this.http_headers))t.setRequestHeader(e,i);return t}async do_load(t,e,i){if(200==t.status){const s=JSON.parse(t.responseText);this.last_fetch_time=new Date,await this.load_data(s,e,i)}}do_error(t){d.logger.error(`Failed to fetch JSON from ${this.data_url} with code ${t.status}`)}}i.AjaxDataSource=h,r=h,h.__name__="AjaxDataSource",r.define((({Bool:t,Int:e,Str:i,Dict:s,Nullable:a})=>({polling_interval:[a(e),null],content_type:[i,"application/json"],http_headers:[s(i),{}],method:[o.HTTPMethod,"POST"],if_modified:[t,!1]})))}, function _(e,t,o,r,n){var s;r();const a=e(128),i=e(19),c=e(8),l=e(10),_=e(9);function g(e){return null!=e?e:NaN}class u extends a.ColumnarDataSource{constructor(e){super(e)}initialize(){super.initialize(),this._update_data()}connect_signals(){super.connect_signals(),this.connect(this.properties.geojson.change,(()=>this._update_data()))}_update_data(){this.data=this.geojson_to_column_data()}_get_new_list_array(e){return(0,l.range)(0,e).map((e=>[]))}_get_new_nan_array(e){return(0,l.range)(0,e).map((e=>NaN))}_add_properties(e,t,o,r){const n=e.properties??{},s=(0,_.dict)(t);for(const[e,a]of(0,_.dict)(n))s.has(e)||(t[e]=this._get_new_nan_array(r)),t[e][o]=g(a)}_add_geometry(e,t,o){function r(e,t){return e.concat([[NaN,NaN,NaN]]).concat(t)}switch(e.type){case"Point":{const[r,n,s]=e.coordinates;t.x[o]=r,t.y[o]=n,t.z[o]=g(s);break}case"LineString":{const{coordinates:r}=e;for(let e=0;e1&&i.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used.");const r=e.coordinates[0];for(let e=0;e1&&i.logger.warn("Bokeh does not support Polygons with holes in, only exterior ring used."),n.push(t[0]);const s=n.reduce(r);for(let e=0;e({geojson:[e]}))),s.internal((({Unknown:e,Dict:t,Arrayable:o})=>({data:[t(o(e)),{}]})))}, -function _(e,r,T,o,S){o(),S("BBoxTileSource",e(465).BBoxTileSource),S("MercatorTileSource",e(466).MercatorTileSource),S("QUADKEYTileSource",e(469).QUADKEYTileSource),S("TileRenderer",e(470).TileRenderer),S("TileSource",e(467).TileSource),S("TMSTileSource",e(472).TMSTileSource),S("WMTSTileSource",e(471).WMTSTileSource)}, -function _(e,t,r,o,l){var i;o();const s=e(466);class _ extends s.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let l,i,s,_;return this.use_latlon?[i,_,l,s]=this.get_tile_geographic_bounds(e,t,r):[i,_,l,s]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",i.toString()).replace("{YMIN}",_.toString()).replace("{XMAX}",l.toString()).replace("{YMAX}",s.toString())}}r.BBoxTileSource=_,i=_,_.__name__="BBoxTileSource",i.define((({Bool:e})=>({use_latlon:[e,!1]})))}, -function _(t,e,i,_,s){var r;_();const o=t(467),n=t(10),l=t(468);class u extends o.TileSource{constructor(t){super(t)}initialize(){super.initialize(),this._resolutions=(0,n.range)(this.min_zoom,this.max_zoom+1).map((t=>this.get_resolution(t)))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);i=0===i?i:i-1;return[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<=l;t--)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s--){const r=1<0;s--){const i=1<0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=u,r=u,u.__name__="MercatorTileSource",r.define((({Bool:t})=>({snap_to_zoom:[t,!1],wrap_around:[t,!0]}))),r.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}, +function _(e,r,T,o,S){o(),S("BBoxTileSource",e(472).BBoxTileSource),S("MercatorTileSource",e(473).MercatorTileSource),S("QUADKEYTileSource",e(476).QUADKEYTileSource),S("TileRenderer",e(477).TileRenderer),S("TileSource",e(474).TileSource),S("TMSTileSource",e(479).TMSTileSource),S("WMTSTileSource",e(478).WMTSTileSource)}, +function _(e,t,r,o,l){var i;o();const s=e(473);class _ extends s.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars);let l,i,s,_;return this.use_latlon?[i,_,l,s]=this.get_tile_geographic_bounds(e,t,r):[i,_,l,s]=this.get_tile_meter_bounds(e,t,r),o.replace("{XMIN}",i.toString()).replace("{YMIN}",_.toString()).replace("{XMAX}",l.toString()).replace("{YMAX}",s.toString())}}r.BBoxTileSource=_,i=_,_.__name__="BBoxTileSource",i.define((({Bool:e})=>({use_latlon:[e,!1]})))}, +function _(t,e,i,_,s){var r;_();const o=t(474),n=t(10),l=t(475);class u extends o.TileSource{constructor(t){super(t)}initialize(){super.initialize(),this._resolutions=(0,n.range)(this.min_zoom,this.max_zoom+1).map((t=>this.get_resolution(t)))}_computed_initial_resolution(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size}is_valid_tile(t,e,i){return!(!this.wrap_around&&(t<0||t>=2**i))&&!(e<0||e>=2**i)}parent_by_tile_xyz(t,e,i){const _=this.tile_xyz_to_quadkey(t,e,i),s=_.substring(0,_.length-1);return this.quadkey_to_tile_xyz(s)}get_resolution(t){return this._computed_initial_resolution()/2**t}get_resolution_by_extent(t,e,i){return[(t[2]-t[0])/i,(t[3]-t[1])/e]}get_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s);let o=0;for(const t of this._resolutions){if(r>t){if(0==o)return 0;if(o>0)return o-1}o+=1}return o-1}get_closest_level_by_extent(t,e,i){const _=(t[2]-t[0])/i,s=(t[3]-t[1])/e,r=Math.max(_,s),o=this._resolutions.reduce((function(t,e){return Math.abs(e-r)e?(u=o-s,a*=t):(u*=e,a=n-r)}const h=(u-(o-s))/2,c=(a-(n-r))/2;return[s-h,r-c,o+h,n+c]}tms_to_wmts(t,e,i){return[t,2**i-1-e,i]}wmts_to_tms(t,e,i){return[t,2**i-1-e,i]}pixels_to_meters(t,e,i){const _=this.get_resolution(i);return[t*_-this.x_origin_offset,e*_-this.y_origin_offset]}meters_to_pixels(t,e,i){const _=this.get_resolution(i);return[(t+this.x_origin_offset)/_,(e+this.y_origin_offset)/_]}pixels_to_tile(t,e){let i=Math.ceil(t/this.tile_size);i=0===i?i:i-1;return[i,Math.max(Math.ceil(e/this.tile_size)-1,0)]}pixels_to_raster(t,e,i){return[t,(this.tile_size<=l;t--)for(let i=n;i<=u;i++)this.is_valid_tile(i,t,e)&&h.push([i,t,e,this.get_tile_meter_bounds(i,t,e)]);return this.sort_tiles_from_center(h,[n,l,u,a]),h}quadkey_to_tile_xyz(t){let e=0,i=0;const _=t.length;for(let s=_;s>0;s--){const r=1<0;s--){const i=1<0;)if(s=s.substring(0,s.length-1),[t,e,i]=this.quadkey_to_tile_xyz(s),[t,e,i]=this.denormalize_xyz(t,e,i,_),this.tiles.has(this.tile_xyz_to_key(t,e,i)))return[t,e,i];return[0,0,0]}normalize_xyz(t,e,i){if(this.wrap_around){const _=2**i;return[(t%_+_)%_,e,i]}return[t,e,i]}denormalize_xyz(t,e,i,_){return[t+_*2**i,e,i]}denormalize_meters(t,e,i,_){return[t+2*_*Math.PI*6378137,e]}calculate_world_x_by_tile_xyz(t,e,i){return Math.floor(t/2**i)}}i.MercatorTileSource=u,r=u,u.__name__="MercatorTileSource",r.define((({Bool:t})=>({snap_to_zoom:[t,!1],wrap_around:[t,!0]}))),r.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})}, function _(e,t,r,i,l){var n;i();const a=e(51),s=e(9);class c extends a.Model{constructor(e){super(e)}initialize(){super.initialize(),this.tiles=new Map,this._normalize_case()}connect_signals(){super.connect_signals(),this.connect(this.change,(()=>this._clear_cache()))}string_lookup_replace(e,t){let r=e;for(const[e,i]of(0,s.entries)(t))r=r.replace(`{${e}}`,i);return r}_normalize_case(){const e=this.url.replace("{x}","{X}").replace("{y}","{Y}").replace("{z}","{Z}").replace("{q}","{Q}").replace("{xmin}","{XMIN}").replace("{ymin}","{YMIN}").replace("{xmax}","{XMAX}").replace("{ymax}","{YMAX}");this.url=e}_clear_cache(){this.tiles=new Map}tile_xyz_to_key(e,t,r){return`${e}:${t}:${r}`}key_to_tile_xyz(e){const[t,r,i]=e.split(":").map((e=>parseInt(e)));return[t,r,i]}sort_tiles_from_center(e,t){const[r,i,l,n]=t,a=(l-r)/2+r,s=(n-i)/2+i;e.sort((function(e,t){return Math.sqrt((a-e[0])**2+(s-e[1])**2)-Math.sqrt((a-t[0])**2+(s-t[1])**2)}))}get_image_url(e,t,r){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",t.toString()).replace("{Z}",r.toString())}}r.TileSource=c,n=c,c.__name__="TileSource",n.define((({Float:e,Str:t,Dict:r,Nullable:i})=>({url:[t,""],tile_size:[e,256],max_zoom:[e,30],min_zoom:[e,0],extra_url_vars:[r(t),{}],attribution:[t,""],x_origin_offset:[e],y_origin_offset:[e],initial_resolution:[i(e),null]})))}, -function _(t,e,r,n,o){n();const c=t(134);function _(t,e){return c.wgs84_mercator.compute(t,e)}function g(t,e){return c.wgs84_mercator.invert(t,e)}r.geographic_to_meters=_,r.meters_to_geographic=g,r.geographic_extent_to_meters=function(t){const[e,r,n,o]=t,[c,g]=_(e,r),[i,u]=_(n,o);return[c,g,i,u]},r.meters_extent_to_geographic=function(t){const[e,r,n,o]=t,[c,_]=g(e,r),[i,u]=g(n,o);return[c,_,i,u]}}, -function _(e,t,r,s,_){s();const o=e(466);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const s=this.string_lookup_replace(this.url,this.extra_url_vars),[_,o,c]=this.tms_to_wmts(e,t,r),i=this.tile_xyz_to_quadkey(_,o,c);return s.replace("{Q}",i)}}r.QUADKEYTileSource=c,c.__name__="QUADKEYTileSource"}, -function _(e,t,i,s,_){var n;s();const a=e(467),h=e(471),r=e(83),o=e(99),l=e(401),d=e(179),m=e(10),c=e(12);class p extends r.RendererView{constructor(){super(...arguments),this._tiles=null,this.map_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_paint())),this.connect(this.model.tile_source.change,(()=>this.request_paint()))}force_finished(){super.force_finished(),null==this._tiles&&(this._tiles=[])}get_extent(){const{x_range:e,y_range:t}=this,i=e.start,s=t.start,_=e.end,n=t.end;return(0,c.assert)(isFinite(i)),(0,c.assert)(isFinite(s)),(0,c.assert)(isFinite(_)),(0,c.assert)(isFinite(n)),[i,s,_,n]}get map_plot(){return this.plot_model}get map_canvas(){return this.layer.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}get attribution(){return new l.HTML({html:[this.model.tile_source.attribution]})}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof o.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof o.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3])}_create_tile(e,t,i,s,_=!1){const n=this.model.tile_source.tile_xyz_to_quadkey(e,t,i),a=this.model.tile_source.tile_xyz_to_key(e,t,i);if(this.model.tile_source.tiles.has(a))return;const[h,r,o]=this.model.tile_source.normalize_xyz(e,t,i),l=this.model.tile_source.get_image_url(h,r,o),m={img:void 0,tile_coords:[e,t,i],normalized_coords:[h,r,o],quadkey:n,cache_key:a,bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]};this.model.tile_source.tiles.set(a,m),null==this._tiles&&(this._tiles=[]),this._tiles.push(m),new d.ImageLoader(l,{loaded:e=>{Object.assign(m,{img:e,loaded:!0}),_?(m.finished=!0,this.notify_finished()):this.request_paint()},failed(){m.finished=!0}})}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame.bbox.height||this._last_width!==this.map_frame.bbox.width){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame.bbox.height,this.map_frame.bbox.width),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame.bbox.height,this.map_frame.bbox.width,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame.bbox.height,this._last_width=this.map_frame.bbox.width}}has_finished(){if(!super.has_finished())return!1;if(null==this._tiles)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}_paint(){this.map_initialized||(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.coordinates.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.coordinates.map_to_screen([t.bounds[2]],[t.bounds[1]]),n=s-e,a=_-i,h=e,r=i,o=this.map_canvas.imageSmoothingEnabled;this.map_canvas.imageSmoothingEnabled=this.model.smoothing,this.map_canvas.drawImage(t.img,h,r,n,a),this.map_canvas.imageSmoothingEnabled=o,t.finished=!0}}_set_rect(){const e=this.plot_model.outline_line_width,t=this.map_frame.bbox.left+e/2,i=this.map_frame.bbox.top+e/2,s=this.map_frame.bbox.width-e,_=this.map_frame.bbox.height-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame.bbox.height,s=this.map_frame.bbox.width,_=this.model.tile_source.get_level_by_extent(t,i,s),n=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,n.length);ti&&(s=this.extent,h=i,r=!0),r&&(this.x_range.setv({start:s[0],end:s[2]}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const o=e.get_tiles_by_extent(s,h),l=[],d=[],c=[],p=[];for(const t of o){const[i,s,n]=t,a=e.tile_xyz_to_key(i,s,n),h=e.tiles.get(a);if(null!=h&&h.loaded)d.push(a);else if(this.model.render_parents){const[t,a,h]=e.get_closest_parent_by_tile_xyz(i,s,n),r=e.tile_xyz_to_key(t,a,h),o=e.tiles.get(r);if(null!=o&&o.loaded&&!(0,m.includes)(c,r)&&c.push(r),_){const t=e.children_by_tile_xyz(i,s,n);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&p.push(t)}}}null==h&&l.push(t)}this._render_tiles(c),this._render_tiles(p),this._render_tiles(d),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout((()=>this._fetch_tiles(l)),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends r.Renderer{constructor(e){super(e)}}i.TileRenderer=g,n=g,g.__name__="TileRenderer",n.prototype.default_view=p,n.define((({Bool:e,Float:t,Ref:i})=>({alpha:[t,1],smoothing:[e,!0],tile_source:[i(a.TileSource),()=>new h.WMTSTileSource],render_parents:[e,!0]}))),n.override({level:"image"})}, -function _(t,e,r,o,s){o();const c=t(466);class i extends c.MercatorTileSource{constructor(t){super(t)}get_image_url(t,e,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,i]=this.tms_to_wmts(t,e,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",i.toString())}}r.WMTSTileSource=i,i.__name__="WMTSTileSource"}, -function _(e,r,t,c,o){c();const i=e(466);class l extends i.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=l,l.__name__="TMSTileSource"}, -function _(e,t,u,a,r){a(),r("CanvasTexture",e(474).CanvasTexture),r("ImageURLTexture",e(476).ImageURLTexture),r("Texture",e(475).Texture)}, -function _(t,e,n,c,s){var r;c();const o=t(475),a=t(40);class u extends o.Texture{constructor(t){super(t)}get func(){const t=(0,a.use_strict)(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),c}}n.CanvasTexture=u,r=u,u.__name__="CanvasTexture",r.define((({Str:t})=>({code:[t]})))}, +function _(t,e,r,n,o){n(),r.geographic_to_meters=_,r.meters_to_geographic=g,r.geographic_extent_to_meters=function(t){const[e,r,n,o]=t,[c,g]=_(e,r),[i,u]=_(n,o);return[c,g,i,u]},r.meters_extent_to_geographic=function(t){const[e,r,n,o]=t,[c,_]=g(e,r),[i,u]=g(n,o);return[c,_,i,u]};const c=t(134);function _(t,e){return c.wgs84_mercator.compute(t,e)}function g(t,e){return c.wgs84_mercator.invert(t,e)}}, +function _(e,t,r,s,_){s();const o=e(473);class c extends o.MercatorTileSource{constructor(e){super(e)}get_image_url(e,t,r){const s=this.string_lookup_replace(this.url,this.extra_url_vars),[_,o,c]=this.tms_to_wmts(e,t,r),i=this.tile_xyz_to_quadkey(_,o,c);return s.replace("{Q}",i)}}r.QUADKEYTileSource=c,c.__name__="QUADKEYTileSource"}, +function _(e,t,i,s,_){var n;s();const a=e(474),h=e(478),r=e(83),o=e(99),l=e(408),d=e(179),m=e(10),c=e(12);class p extends r.RendererView{constructor(){super(...arguments),this._tiles=null,this.map_initialized=!1}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.request_paint())),this.connect(this.model.tile_source.change,(()=>this.request_paint()))}force_finished(){super.force_finished(),null==this._tiles&&(this._tiles=[])}get_extent(){const{x_range:e,y_range:t}=this,i=e.start,s=t.start,_=e.end,n=t.end;return(0,c.assert)(isFinite(i)),(0,c.assert)(isFinite(s)),(0,c.assert)(isFinite(_)),(0,c.assert)(isFinite(n)),[i,s,_,n]}get map_plot(){return this.plot_model}get map_canvas(){return this.layer.ctx}get map_frame(){return this.plot_view.frame}get x_range(){return this.map_plot.x_range}get y_range(){return this.map_plot.y_range}_set_data(){this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0}get attribution(){return new l.HTML({html:[this.model.tile_source.attribution]})}_map_data(){this.initial_extent=this.get_extent();const e=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width),t=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame.bbox.height,this.map_frame.bbox.width,e);this.x_range.start=t[0],this.y_range.start=t[1],this.x_range.end=t[2],this.y_range.end=t[3],this.x_range instanceof o.Range1d&&(this.x_range.reset_start=t[0],this.x_range.reset_end=t[2]),this.y_range instanceof o.Range1d&&(this.y_range.reset_start=t[1],this.y_range.reset_end=t[3])}_create_tile(e,t,i,s,_=!1){const n=this.model.tile_source.tile_xyz_to_quadkey(e,t,i),a=this.model.tile_source.tile_xyz_to_key(e,t,i);if(this.model.tile_source.tiles.has(a))return;const[h,r,o]=this.model.tile_source.normalize_xyz(e,t,i),l=this.model.tile_source.get_image_url(h,r,o),m={img:void 0,tile_coords:[e,t,i],normalized_coords:[h,r,o],quadkey:n,cache_key:a,bounds:s,loaded:!1,finished:!1,x_coord:s[0],y_coord:s[3]};this.model.tile_source.tiles.set(a,m),null==this._tiles&&(this._tiles=[]),this._tiles.push(m),new d.ImageLoader(l,{loaded:e=>{Object.assign(m,{img:e,loaded:!0}),_?(m.finished=!0,this.notify_finished()):this.request_paint()},failed(){m.finished=!0}})}_enforce_aspect_ratio(){if(this._last_height!==this.map_frame.bbox.height||this._last_width!==this.map_frame.bbox.width){const e=this.get_extent(),t=this.model.tile_source.get_level_by_extent(e,this.map_frame.bbox.height,this.map_frame.bbox.width),i=this.model.tile_source.snap_to_zoom_level(e,this.map_frame.bbox.height,this.map_frame.bbox.width,t);this.x_range.setv({start:i[0],end:i[2]}),this.y_range.setv({start:i[1],end:i[3]}),this.extent=i,this._last_height=this.map_frame.bbox.height,this._last_width=this.map_frame.bbox.width}}has_finished(){if(!super.has_finished())return!1;if(null==this._tiles)return!1;for(const e of this._tiles)if(!e.finished)return!1;return!0}_paint(){this.map_initialized||(this._set_data(),this._map_data(),this.map_initialized=!0),this._enforce_aspect_ratio(),this._update(),null!=this.prefetch_timer&&clearTimeout(this.prefetch_timer),this.prefetch_timer=setTimeout(this._prefetch_tiles.bind(this),500),this.has_finished()&&this.notify_finished()}_draw_tile(e){const t=this.model.tile_source.tiles.get(e);if(null!=t&&t.loaded){const[[e],[i]]=this.coordinates.map_to_screen([t.bounds[0]],[t.bounds[3]]),[[s],[_]]=this.coordinates.map_to_screen([t.bounds[2]],[t.bounds[1]]),n=s-e,a=_-i,h=e,r=i,o=this.map_canvas.imageSmoothingEnabled;this.map_canvas.imageSmoothingEnabled=this.model.smoothing,this.map_canvas.drawImage(t.img,h,r,n,a),this.map_canvas.imageSmoothingEnabled=o,t.finished=!0}}_set_rect(){const e=this.plot_model.outline_line_width,t=this.map_frame.bbox.left+e/2,i=this.map_frame.bbox.top+e/2,s=this.map_frame.bbox.width-e,_=this.map_frame.bbox.height-e;this.map_canvas.rect(t,i,s,_),this.map_canvas.clip()}_render_tiles(e){this.map_canvas.save(),this._set_rect(),this.map_canvas.globalAlpha=this.model.alpha;for(const t of e)this._draw_tile(t);this.map_canvas.restore()}_prefetch_tiles(){const{tile_source:e}=this.model,t=this.get_extent(),i=this.map_frame.bbox.height,s=this.map_frame.bbox.width,_=this.model.tile_source.get_level_by_extent(t,i,s),n=this.model.tile_source.get_tiles_by_extent(t,_);for(let t=0,i=Math.min(10,n.length);ti&&(s=this.extent,h=i,r=!0),r&&(this.x_range.setv({start:s[0],end:s[2]}),this.y_range.setv({start:s[1],end:s[3]})),this.extent=s;const o=e.get_tiles_by_extent(s,h),l=[],d=[],c=[],p=[];for(const t of o){const[i,s,n]=t,a=e.tile_xyz_to_key(i,s,n),h=e.tiles.get(a);if(null!=h&&h.loaded)d.push(a);else if(this.model.render_parents){const[t,a,h]=e.get_closest_parent_by_tile_xyz(i,s,n),r=e.tile_xyz_to_key(t,a,h),o=e.tiles.get(r);if(null!=o&&o.loaded&&!(0,m.includes)(c,r)&&c.push(r),_){const t=e.children_by_tile_xyz(i,s,n);for(const[i,s,_]of t){const t=e.tile_xyz_to_key(i,s,_);e.tiles.has(t)&&p.push(t)}}}null==h&&l.push(t)}this._render_tiles(c),this._render_tiles(p),this._render_tiles(d),null!=this.render_timer&&clearTimeout(this.render_timer),this.render_timer=setTimeout((()=>this._fetch_tiles(l)),65)}}i.TileRendererView=p,p.__name__="TileRendererView";class g extends r.Renderer{constructor(e){super(e)}}i.TileRenderer=g,n=g,g.__name__="TileRenderer",n.prototype.default_view=p,n.define((({Bool:e,Float:t,Ref:i})=>({alpha:[t,1],smoothing:[e,!0],tile_source:[i(a.TileSource),()=>new h.WMTSTileSource],render_parents:[e,!0]}))),n.override({level:"image"})}, +function _(t,e,r,o,s){o();const c=t(473);class i extends c.MercatorTileSource{constructor(t){super(t)}get_image_url(t,e,r){const o=this.string_lookup_replace(this.url,this.extra_url_vars),[s,c,i]=this.tms_to_wmts(t,e,r);return o.replace("{X}",s.toString()).replace("{Y}",c.toString()).replace("{Z}",i.toString())}}r.WMTSTileSource=i,i.__name__="WMTSTileSource"}, +function _(e,r,t,c,o){c();const i=e(473);class l extends i.MercatorTileSource{constructor(e){super(e)}get_image_url(e,r,t){return this.string_lookup_replace(this.url,this.extra_url_vars).replace("{X}",e.toString()).replace("{Y}",r.toString()).replace("{Z}",t.toString())}}t.TMSTileSource=l,l.__name__="TMSTileSource"}, +function _(e,t,u,a,r){a(),r("CanvasTexture",e(481).CanvasTexture),r("ImageURLTexture",e(483).ImageURLTexture),r("Texture",e(482).Texture)}, +function _(t,e,n,c,s){var r;c();const o=t(482),a=t(40);class u extends o.Texture{constructor(t){super(t)}get func(){const t=(0,a.use_strict)(this.code);return new Function("ctx","color","scale","weight",t)}get_pattern(t,e,n){const c=document.createElement("canvas");c.width=e,c.height=e;const s=c.getContext("2d");return this.func.call(this,s,t,e,n),c}}n.CanvasTexture=u,r=u,u.__name__="CanvasTexture",r.define((({Str:t})=>({code:[t]})))}, function _(e,t,n,r,o){var i;r();const s=e(51),u=e(20);class c extends s.Model{constructor(e){super(e)}}n.Texture=c,i=c,c.__name__="Texture",i.define((()=>({repetition:[u.TextureRepetition,"repeat"]})))}, -function _(e,t,r,i,a){var n;i();const s=e(475),o=e(179);class u extends s.Texture{constructor(e){super(e)}initialize(){super.initialize(),this._loader=new o.ImageLoader(this.url)}get_pattern(e,t,r){const{_loader:i}=this;return this._loader.finished?i.image:i.promise}}r.ImageURLTexture=u,n=u,u.__name__="ImageURLTexture",n.define((({Str:e})=>({url:[e]})))}, -function _(e,n,a,o,t){o();const l=e(1);l.__exportStar(e(478),a),l.__exportStar(e(483),a),t("Panel",e(435).Panel),t("Dialog",e(319).Dialog),t("Examiner",e(484).Examiner),t("Pane",e(400).Pane),t("Tooltip",e(413).Tooltip),t("UIElement",e(111).UIElement)}, -function _(n,c,o,I,i){I(),i("BuiltinIcon",n(479).BuiltinIcon),i("SVGIcon",n(481).SVGIcon),i("TablerIcon",n(482).TablerIcon)}, -function _(e,n,t,i,s){var o;i();const r=e(1),a=e(480),l=e(63),c=e(22),m=e(8),u=r.__importDefault(e(123));class _ extends a.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),u.default,this._style]}render(){super.render();const e=`var(--bokeh-icon-${this.model.icon_name})`,n=(0,c.color2css)(this.model.color),t=(()=>{const{size:e}=this.model;return(0,m.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n width: ${t};\n height: ${t};\n background-color: ${n};\n mask-image: ${e};\n mask-size: contain;\n mask-repeat: no-repeat;\n -webkit-mask-image: ${e};\n -webkit-mask-size: contain;\n -webkit-mask-repeat: no-repeat;\n }\n `)}}t.BuiltinIconView=_,_.__name__="BuiltinIconView";class d extends a.Icon{constructor(e){super(e)}}t.BuiltinIcon=d,o=d,d.__name__="BuiltinIcon",o.prototype.default_view=_,o.define((({Str:e,Color:n})=>({icon_name:[e],color:[n,"gray"]})))}, +function _(e,t,r,i,a){var n;i();const s=e(482),o=e(179);class u extends s.Texture{constructor(e){super(e)}initialize(){super.initialize(),this._loader=new o.ImageLoader(this.url)}get_pattern(e,t,r){const{_loader:i}=this;return this._loader.finished?i.image:i.promise}}r.ImageURLTexture=u,n=u,u.__name__="ImageURLTexture",n.define((({Str:e})=>({url:[e]})))}, +function _(e,n,a,o,t){o();const l=e(1);l.__exportStar(e(485),a),l.__exportStar(e(490),a),t("Panel",e(442).Panel),t("Dialog",e(320).Dialog),t("Examiner",e(491).Examiner),t("Pane",e(407).Pane),t("Tooltip",e(420).Tooltip),t("UIElement",e(111).UIElement)}, +function _(n,c,o,I,i){I(),i("BuiltinIcon",n(486).BuiltinIcon),i("SVGIcon",n(488).SVGIcon),i("TablerIcon",n(489).TablerIcon)}, +function _(e,n,t,i,s){var o;i();const r=e(1),a=e(487),l=e(63),c=e(22),m=e(8),u=r.__importDefault(e(123));class _ extends a.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),u.default,this._style]}render(){super.render();const e=`var(--bokeh-icon-${this.model.icon_name})`,n=(0,c.color2css)(this.model.color),t=(()=>{const{size:e}=this.model;return(0,m.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n width: ${t};\n height: ${t};\n background-color: ${n};\n mask-image: ${e};\n mask-size: contain;\n mask-repeat: no-repeat;\n -webkit-mask-image: ${e};\n -webkit-mask-size: contain;\n -webkit-mask-repeat: no-repeat;\n }\n `)}}t.BuiltinIconView=_,_.__name__="BuiltinIconView";class d extends a.Icon{constructor(e){super(e)}}t.BuiltinIcon=d,o=d,d.__name__="BuiltinIcon",o.prototype.default_view=_,o.define((({Str:e,Color:n})=>({icon_name:[e],color:[n,"gray"]})))}, function _(e,n,s,c,t){var o;c();const i=e(111);class _ extends i.UIElementView{connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>this.render()))}}s.IconView=_,_.__name__="IconView";class a extends i.UIElement{constructor(e){super(e)}}s.Icon=a,o=a,a.__name__="Icon",o.define((({Float:e,Or:n,CSSLength:s})=>({size:[n(e,s),"1em"]})))}, -function _(e,n,s,t,r){var i;t();const o=e(480),l=e(63),c=e(8);class a extends o.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n }\n :host svg {\n width: ${e};\n height: ${e};\n }\n `);const n=(new DOMParser).parseFromString(this.model.svg,"image/svg+xml");this.shadow_el.append(n.documentElement)}}s.SVGIconView=a,a.__name__="SVGIconView";class d extends o.Icon{constructor(e){super(e)}}s.SVGIcon=d,i=d,d.__name__="SVGIcon",i.prototype.default_view=a,i.define((({Str:e})=>({svg:[e]})))}, -function _(e,n,t,s,r){var o,l;s();const i=e(480),a=e(63),c=e(8);class f extends i.IconView{constructor(){super(...arguments),this._tabler=new a.ImportedStyleSheet(`${o._url}/tabler-icons.min.css`),this._style=new a.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),o._fonts,this._tabler,this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n font-size: ${e};\n }\n `);const n=(0,a.span)({class:["ti",`ti-${this.model.icon_name}`]});this.shadow_el.appendChild(n)}}t.TablerIconView=f,o=f,f.__name__="TablerIconView",f._url="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest",f._fonts=new a.GlobalInlineStyleSheet(` /*!\n * Tabler Icons 1.68.0 by tabler - https://tabler.io\n * License - https://github.com/tabler/tabler-icons/blob/master/LICENSE\n */\n @font-face {\n font-family: "tabler-icons";\n font-style: normal;\n font-weight: 400;\n src: url("${o._url}/fonts/tabler-icons.eot");\n src: url("${o._url}/fonts/tabler-icons.eot?#iefix") format("embedded-opentype"),\n url("${o._url}/fonts/tabler-icons.woff2") format("woff2"),\n url("${o._url}/fonts/tabler-icons.woff") format("woff"),\n url("${o._url}/fonts/tabler-icons.ttf") format("truetype"),\n url("${o._url}/fonts/tabler-icons.svg#tabler-icons") format("svg");\n }\n\n @media screen and (-webkit-min-device-pixel-ratio: 0) {\n @font-face {\n font-family: "tabler-icons";\n src: url("${o._url}/fonts/tabler-icons.svg#tabler-icons") format("svg");\n }\n }\n`);class b extends i.Icon{constructor(e){super(e)}}t.TablerIcon=b,l=b,b.__name__="TablerIcon",l.prototype.default_view=f,l.define((({Str:e})=>({icon_name:[e]})))}, +function _(e,n,s,t,r){var i;t();const o=e(487),l=e(63),c=e(8);class a extends o.IconView{constructor(){super(...arguments),this._style=new l.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n }\n :host svg {\n width: ${e};\n height: ${e};\n }\n `);const n=(new DOMParser).parseFromString(this.model.svg,"image/svg+xml");this.shadow_el.append(n.documentElement)}}s.SVGIconView=a,a.__name__="SVGIconView";class d extends o.Icon{constructor(e){super(e)}}s.SVGIcon=d,i=d,d.__name__="SVGIcon",i.prototype.default_view=a,i.define((({Str:e})=>({svg:[e]})))}, +function _(e,n,t,s,r){var o,l;s();const i=e(487),a=e(63),c=e(8);class f extends i.IconView{constructor(){super(...arguments),this._tabler=new a.ImportedStyleSheet(`${o._url}/tabler-icons.min.css`),this._style=new a.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),o._fonts,this._tabler,this._style]}render(){super.render();const e=(()=>{const{size:e}=this.model;return(0,c.isNumber)(e)?`${e}px`:e})();this._style.replace(`\n :host {\n display: inline-block;\n vertical-align: middle;\n font-size: ${e};\n }\n `);const n=(0,a.span)({class:["ti",`ti-${this.model.icon_name}`]});this.shadow_el.appendChild(n)}}t.TablerIconView=f,o=f,f.__name__="TablerIconView",f._url="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest",f._fonts=new a.GlobalInlineStyleSheet(` /*!\n * Tabler Icons 1.68.0 by tabler - https://tabler.io\n * License - https://github.com/tabler/tabler-icons/blob/master/LICENSE\n */\n @font-face {\n font-family: "tabler-icons";\n font-style: normal;\n font-weight: 400;\n src: url("${o._url}/fonts/tabler-icons.eot");\n src: url("${o._url}/fonts/tabler-icons.eot?#iefix") format("embedded-opentype"),\n url("${o._url}/fonts/tabler-icons.woff2") format("woff2"),\n url("${o._url}/fonts/tabler-icons.woff") format("woff"),\n url("${o._url}/fonts/tabler-icons.ttf") format("truetype"),\n url("${o._url}/fonts/tabler-icons.svg#tabler-icons") format("svg");\n }\n\n @media screen and (-webkit-min-device-pixel-ratio: 0) {\n @font-face {\n font-family: "tabler-icons";\n src: url("${o._url}/fonts/tabler-icons.svg#tabler-icons") format("svg");\n }\n }\n`);class b extends i.Icon{constructor(e){super(e)}}t.TablerIcon=b,l=b,b.__name__="TablerIcon",l.prototype.default_view=f,l.define((({Str:e})=>({icon_name:[e]})))}, function _(e,t,i,m,n){m(),n("Menu",e(110).Menu),n("ActionItem",e(118).ActionItem),n("CheckableItem",e(120).CheckableItem),n("DividerItem",e(121).DividerItem)}, -function _(t,s,e,n,o){var i;n();const a=t(1),l=t(111),r=a.__importStar(t(18)),c=t(14),d=t(63),p=t(42),h=t(51),u=t(8),f=t(9),_=t(10),m=t(34),g=t(15),v=t(38),b=a.__importDefault(t(485)),y=a.__importStar(t(486)),k=y;class x{constructor(t,s=5,e=3){this.visited=new WeakSet,this.depth=0,this.click=t,this.max_items=s,this.max_depth=e}to_html(t){if((0,u.isObject)(t)){if(this.visited.has(t))return(0,d.span)("");this.visited.add(t)}return null==t?this.null():(0,u.isBoolean)(t)?this.boolean(t):(0,u.isNumber)(t)?this.number(t):(0,u.isString)(t)?this.string(t):(0,u.isSymbol)(t)?this.symbol(t):t instanceof h.Model?this.model(t):t instanceof r.Property?this.property(t):(0,u.isPlainObject)(t)?this.object(t):(0,u.isArray)(t)?this.array(t):(0,u.isIterable)(t)?this.iterable(t):(0,d.span)((0,p.to_string)(t))}null(){return(0,d.span)({class:k.nullish},"null")}token(t){return(0,d.span)({class:k.token},t)}boolean(t){return(0,d.span)({class:k.boolean},`${t}`)}number(t){return(0,d.span)({class:k.number},`${t}`)}string(t){const s=t.includes("'"),e=t.includes('"'),n=s&&e?`\`${t.replace(/`/g,"\\`")}\``:e?`'${t}'`:`"${t}"`;return(0,d.span)({class:k.string},n)}symbol(t){return(0,d.span)({class:k.symbol},t.toString())}array(t){const s=this.token,e=[];let n=0;for(const s of t)if(e.push(this.to_html(s)),n++>this.max_items){e.push((0,d.span)("\u2026"));break}return(0,d.span)({class:k.array},s("["),...(0,m.interleave)(e,(()=>s(", "))),s("]"))}iterable(t){const s=this.token,e=Object(t)[Symbol.toStringTag]??"Object",n=this.array([...t]);return(0,d.span)({class:k.iterable},`${e}`,s("("),n,s(")"))}object(t){const s=this.token,e=[];let n=0;for(const[o,i]of(0,f.entries)(t))if(e.push((0,d.span)(`${o}`,s(": "),this.to_html(i))),n++>this.max_items){e.push((0,d.span)("\u2026"));break}return(0,d.span)({class:k.object},s("{"),...(0,m.interleave)(e,(()=>s(", "))),s("}"))}model(t){const s=this.token,e=(0,d.span)({class:k.model},t.constructor.__qualified__,s("("),this.to_html(t.id),s(")")),{click:n}=this;return null!=n&&(e.classList.add("ref"),e.addEventListener("click",(()=>n(t)))),e}property(t){const s=this.model(t.obj),e=(0,d.span)({class:k.attr},t.attr);return(0,d.span)(s,this.token("."),e)}}e.HTMLPrinter=x,x.__name__="HTMLPrinter";class w extends l.UIElementView{constructor(){super(...arguments),this.prev_listener=null,this.watched_props=new Set}stylesheets(){return[...super.stylesheets(),y.default,b.default]}render(){super.render(),null!=this.prev_listener&&v.diagnostics.disconnect(this.prev_listener);const t=[],s=[],e=[],n=new WeakMap;v.diagnostics.connect((o=>{if(o instanceof r.Property){for(const[s,e]of t)s==o.obj&&i(e);for(const[t,e]of s)if(t==o){const[,,,s]=e.children;a(t,e,s);break}for(const[t,s]of e)if(t==o){const[,e]=s.children;a(t,s,e);break}}function i(t){const s=n.get(t);null!=s&&s.cancel();const e=t.animate([{backgroundColor:"#def189"},{backgroundColor:"initial"}],{duration:2e3});n.set(t,e)}function a(t,s,e){s.classList.toggle("dirty",t.dirty),(0,d.empty)(e);const n=t.is_unset?(0,d.span)("unset"):C(t.get_value());e.appendChild(n),i(e)}}));const o=(()=>{const s=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"});return s.addEventListener("keyup",(()=>{const e=s.value;for(const[s,n]of t){const t=s.constructor.__qualified__.includes(e);n.classList.toggle("hidden",!t)}})),(0,d.div)({class:"toolbar"},s)})(),i=(0,d.input)({type:"checkbox",checked:!0}),a=(0,d.input)({type:"checkbox",checked:!0}),l=()=>{for(const[t,e]of s){const s=i.checked,n=a.checked,o=!t.dirty&&!s||t.internal&&!n;e.classList.toggle("hidden",o)}};i.addEventListener("change",(()=>l())),a.addEventListener("change",(()=>l()));const p=(()=>{const t=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"}),e=(0,d.span)({class:"checkbox"},(0,d.input)({type:"checkbox",checked:!0}),(0,d.span)("Group")),n=(0,d.span)({class:"checkbox"},i,(0,d.span)("Initial?")),o=(0,d.span)({class:"checkbox"},a,(0,d.span)("Internal?"));return t.addEventListener("keyup",(()=>{const e=t.value;for(const[t,n]of s){const s=t.attr.includes(e);n.classList.toggle("hidden",!s)}})),(0,d.div)({class:"toolbar"},t,e,n,o)})(),u=(()=>{const t=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"});return t.addEventListener("keyup",(()=>{const s=t.value;for(const[t,n]of e){const e=t.attr.includes(s);n.classList.toggle("hidden",!e)}})),(0,d.div)({class:"toolbar"},t)})(),m=(0,d.div)({class:"models-list"}),b=(0,d.div)({class:"props-list"}),y=(0,d.div)({class:"watches-list"}),k=(0,d.div)({class:"models-panel"},o,m),w=(0,d.div)({class:"props-panel"},p,b),L=(0,d.div)({class:"watches-panel"},u,y),E=(0,d.div)({class:"col",style:{width:"100%"}},L,w),S=(0,d.div)({class:"examiner"},k,E);function j(t){t instanceof h.Model&&O(t)}function C(t){return new x(j).to_html(t)}const P=(s,e)=>{(0,_.clear)(t),(0,d.empty)(m);const n=null!=e?new Set(e.roots()):new Set;for(const e of s){const s=n.has(e)?(0,d.span)({class:"tag"},"root"):null,o=(0,d.span)({class:"model-ref",tabIndex:0},C(e),s);o.addEventListener("keydown",(t=>{"Enter"==t.key&&O(e)})),t.push([e,o]),m.appendChild(o)}},O=e=>{(0,_.clear)(s),(0,d.empty)(b);for(const[s,n]of t)n.classList.toggle("active",e==s);const n=(()=>{const t=[];let s=Object.getPrototypeOf(e);do{t.push([s.constructor,(0,f.keys)(s._props)]),s=Object.getPrototypeOf(s)}while(s.constructor!=c.HasProps);t.reverse();const n=[];for(const[,s]of t)s.splice(0,n.length),n.push(...s);return t})(),o=g.receivers_for_sender.get(e)??[];for(const[t,l]of n){if(0==l.length)continue;const n=(0,d.span)({class:["expander"]}),r=(0,d.div)({class:"base"},n,"inherited from"," ",(0,d.span)({class:"monospace"},t.__qualified__));b.appendChild(r);const c=[];for(const t of l){const n=e.property(t),l=n.kind.toString(),r=n.is_unset?(0,d.span)("unset"):C(n.get_value()),p=n.internal?(0,d.span)({class:"tag"},"internal"):null,h=o.filter((t=>t.signal==n.change)).length,u=0!=h?(0,d.span)({class:"tag"},`${h}`):null,f=this.watched_props.has(n),_=(0,d.input)({type:"checkbox",checked:f}),m=(0,d.div)({class:"prop-attr",tabIndex:0},_,(0,d.span)({class:"attr"},t),p),g=(0,d.div)({class:"prop-conns"},u),v=(0,d.div)({class:"prop-kind"},l),y=(0,d.div)({class:"prop-value"},r),k=n.dirty?"dirty":null,x=n.internal?"internal":null,w=i.checked,L=a.checked,E=!n.dirty&&!w||n.internal&&!L?"hidden":null,S=(0,d.div)({class:["prop",k,x,E]},m,g,v,y);c.push(S),s.push([n,S]),b.appendChild(S),_.addEventListener("change",(()=>{this.watched_props[_.checked?"add":"delete"](n),$()}))}r.addEventListener("click",(()=>{n.classList.toggle("closed");for(const t of c)t.classList.toggle("closed")}))}},$=()=>{if((0,_.clear)(e),(0,d.empty)(y),0==this.watched_props.size){const t=(0,d.div)({class:"nothing"},"No watched properties");y.appendChild(t)}else for(const t of this.watched_props){const s=(0,d.span)(C(t)),n=(0,d.span)(t.is_unset?(0,d.span)("unset"):C(t.get_value())),o=(0,d.div)({class:["prop",t.dirty?"dirty":null]},s,n);e.push([t,o]),y.appendChild(o)}};this.shadow_el.appendChild(S);const{target:I}=this.model;if(null!=I){const t=I.references(),{document:s}=I;P(t,s),O(I)}else{const{document:t}=this.model;if(null!=t){P(t._all_models.values(),t);const s=t.roots();if(0!=s.length){const[t]=s;O(t)}}}$()}}e.ExaminerView=w,w.__name__="ExaminerView";class L extends l.UIElement{constructor(t){super(t)}}e.Examiner=L,i=L,L.__name__="Examiner",i.prototype.default_view=w,i.define((({Ref:t,Nullable:s})=>({target:[s(t(c.HasProps)),null]})))}, +function _(t,s,e,n,o){var i;n();const a=t(1),l=t(111),r=a.__importStar(t(18)),c=t(14),d=t(63),p=t(42),h=t(51),u=t(8),f=t(9),_=t(10),m=t(34),g=t(15),v=t(38),b=a.__importDefault(t(492)),y=a.__importStar(t(493)),k=y;class x{constructor(t,s=5,e=3){this.visited=new WeakSet,this.depth=0,this.click=t,this.max_items=s,this.max_depth=e}to_html(t){if((0,u.isObject)(t)){if(this.visited.has(t))return(0,d.span)("");this.visited.add(t)}return null==t?this.null():(0,u.isBoolean)(t)?this.boolean(t):(0,u.isNumber)(t)?this.number(t):(0,u.isString)(t)?this.string(t):(0,u.isSymbol)(t)?this.symbol(t):t instanceof h.Model?this.model(t):t instanceof r.Property?this.property(t):(0,u.isPlainObject)(t)?this.object(t):(0,u.isArray)(t)?this.array(t):(0,u.isIterable)(t)?this.iterable(t):(0,d.span)((0,p.to_string)(t))}null(){return(0,d.span)({class:k.nullish},"null")}token(t){return(0,d.span)({class:k.token},t)}boolean(t){return(0,d.span)({class:k.boolean},`${t}`)}number(t){return(0,d.span)({class:k.number},`${t}`)}string(t){const s=t.includes("'"),e=t.includes('"'),n=s&&e?`\`${t.replace(/`/g,"\\`")}\``:e?`'${t}'`:`"${t}"`;return(0,d.span)({class:k.string},n)}symbol(t){return(0,d.span)({class:k.symbol},t.toString())}array(t){const s=this.token,e=[];let n=0;for(const s of t)if(e.push(this.to_html(s)),n++>this.max_items){e.push((0,d.span)("\u2026"));break}return(0,d.span)({class:k.array},s("["),...(0,m.interleave)(e,(()=>s(", "))),s("]"))}iterable(t){const s=this.token,e=Object(t)[Symbol.toStringTag]??"Object",n=this.array([...t]);return(0,d.span)({class:k.iterable},`${e}`,s("("),n,s(")"))}object(t){const s=this.token,e=[];let n=0;for(const[o,i]of(0,f.entries)(t))if(e.push((0,d.span)(`${o}`,s(": "),this.to_html(i))),n++>this.max_items){e.push((0,d.span)("\u2026"));break}return(0,d.span)({class:k.object},s("{"),...(0,m.interleave)(e,(()=>s(", "))),s("}"))}model(t){const s=this.token,e=(0,d.span)({class:k.model},t.constructor.__qualified__,s("("),this.to_html(t.id),s(")")),{click:n}=this;return null!=n&&(e.classList.add("ref"),e.addEventListener("click",(()=>n(t)))),e}property(t){const s=this.model(t.obj),e=(0,d.span)({class:k.attr},t.attr);return(0,d.span)(s,this.token("."),e)}}e.HTMLPrinter=x,x.__name__="HTMLPrinter";class w extends l.UIElementView{constructor(){super(...arguments),this.prev_listener=null,this.watched_props=new Set}stylesheets(){return[...super.stylesheets(),y.default,b.default]}render(){super.render(),null!=this.prev_listener&&v.diagnostics.disconnect(this.prev_listener);const t=[],s=[],e=[],n=new WeakMap;v.diagnostics.connect((o=>{if(o instanceof r.Property){for(const[s,e]of t)s==o.obj&&i(e);for(const[t,e]of s)if(t==o){const[,,,s]=e.children;a(t,e,s);break}for(const[t,s]of e)if(t==o){const[,e]=s.children;a(t,s,e);break}}function i(t){const s=n.get(t);null!=s&&s.cancel();const e=t.animate([{backgroundColor:"#def189"},{backgroundColor:"initial"}],{duration:2e3});n.set(t,e)}function a(t,s,e){s.classList.toggle("dirty",t.dirty),(0,d.empty)(e);const n=t.is_unset?(0,d.span)("unset"):C(t.get_value());e.appendChild(n),i(e)}}));const o=(()=>{const s=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"});return s.addEventListener("keyup",(()=>{const e=s.value;for(const[s,n]of t){const t=s.constructor.__qualified__.includes(e);n.classList.toggle("hidden",!t)}})),(0,d.div)({class:"toolbar"},s)})(),i=(0,d.input)({type:"checkbox",checked:!0}),a=(0,d.input)({type:"checkbox",checked:!0}),l=()=>{for(const[t,e]of s){const s=i.checked,n=a.checked,o=!t.dirty&&!s||t.internal&&!n;e.classList.toggle("hidden",o)}};i.addEventListener("change",(()=>l())),a.addEventListener("change",(()=>l()));const p=(()=>{const t=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"}),e=(0,d.span)({class:"checkbox"},(0,d.input)({type:"checkbox",checked:!0}),(0,d.span)("Group")),n=(0,d.span)({class:"checkbox"},i,(0,d.span)("Initial?")),o=(0,d.span)({class:"checkbox"},a,(0,d.span)("Internal?"));return t.addEventListener("keyup",(()=>{const e=t.value;for(const[t,n]of s){const s=t.attr.includes(e);n.classList.toggle("hidden",!s)}})),(0,d.div)({class:"toolbar"},t,e,n,o)})(),u=(()=>{const t=(0,d.input)({class:"filter",type:"text",placeholder:"Filter"});return t.addEventListener("keyup",(()=>{const s=t.value;for(const[t,n]of e){const e=t.attr.includes(s);n.classList.toggle("hidden",!e)}})),(0,d.div)({class:"toolbar"},t)})(),m=(0,d.div)({class:"models-list"}),b=(0,d.div)({class:"props-list"}),y=(0,d.div)({class:"watches-list"}),k=(0,d.div)({class:"models-panel"},o,m),w=(0,d.div)({class:"props-panel"},p,b),L=(0,d.div)({class:"watches-panel"},u,y),E=(0,d.div)({class:"col",style:{width:"100%"}},L,w),S=(0,d.div)({class:"examiner"},k,E);function j(t){t instanceof h.Model&&O(t)}function C(t){return new x(j).to_html(t)}const P=(s,e)=>{(0,_.clear)(t),(0,d.empty)(m);const n=null!=e?new Set(e.roots()):new Set;for(const e of s){const s=n.has(e)?(0,d.span)({class:"tag"},"root"):null,o=(0,d.span)({class:"model-ref",tabIndex:0},C(e),s);o.addEventListener("keydown",(t=>{"Enter"==t.key&&O(e)})),t.push([e,o]),m.appendChild(o)}},O=e=>{(0,_.clear)(s),(0,d.empty)(b);for(const[s,n]of t)n.classList.toggle("active",e==s);const n=(()=>{const t=[];let s=Object.getPrototypeOf(e);do{t.push([s.constructor,(0,f.keys)(s._props)]),s=Object.getPrototypeOf(s)}while(s.constructor!=c.HasProps);t.reverse();const n=[];for(const[,s]of t)s.splice(0,n.length),n.push(...s);return t})(),o=g.receivers_for_sender.get(e)??[];for(const[t,l]of n){if(0==l.length)continue;const n=(0,d.span)({class:["expander"]}),r=(0,d.div)({class:"base"},n,"inherited from"," ",(0,d.span)({class:"monospace"},t.__qualified__));b.appendChild(r);const c=[];for(const t of l){const n=e.property(t),l=n.kind.toString(),r=n.is_unset?(0,d.span)("unset"):C(n.get_value()),p=n.internal?(0,d.span)({class:"tag"},"internal"):null,h=o.filter((t=>t.signal==n.change)).length,u=0!=h?(0,d.span)({class:"tag"},`${h}`):null,f=this.watched_props.has(n),_=(0,d.input)({type:"checkbox",checked:f}),m=(0,d.div)({class:"prop-attr",tabIndex:0},_,(0,d.span)({class:"attr"},t),p),g=(0,d.div)({class:"prop-conns"},u),v=(0,d.div)({class:"prop-kind"},l),y=(0,d.div)({class:"prop-value"},r),k=n.dirty?"dirty":null,x=n.internal?"internal":null,w=i.checked,L=a.checked,E=!n.dirty&&!w||n.internal&&!L?"hidden":null,S=(0,d.div)({class:["prop",k,x,E]},m,g,v,y);c.push(S),s.push([n,S]),b.appendChild(S),_.addEventListener("change",(()=>{this.watched_props[_.checked?"add":"delete"](n),$()}))}r.addEventListener("click",(()=>{n.classList.toggle("closed");for(const t of c)t.classList.toggle("closed")}))}},$=()=>{if((0,_.clear)(e),(0,d.empty)(y),0==this.watched_props.size){const t=(0,d.div)({class:"nothing"},"No watched properties");y.appendChild(t)}else for(const t of this.watched_props){const s=(0,d.span)(C(t)),n=(0,d.span)(t.is_unset?(0,d.span)("unset"):C(t.get_value())),o=(0,d.div)({class:["prop",t.dirty?"dirty":null]},s,n);e.push([t,o]),y.appendChild(o)}};this.shadow_el.appendChild(S);const{target:I}=this.model;if(null!=I){const t=I.references(),{document:s}=I;P(t,s),O(I)}else{const{document:t}=this.model;if(null!=t){P(t._all_models.values(),t);const s=t.roots();if(0!=s.length){const[t]=s;O(t)}}}$()}}e.ExaminerView=w,w.__name__="ExaminerView";class L extends l.UIElement{constructor(t){super(t)}}e.Examiner=L,i=L,L.__name__="Examiner",i.prototype.default_view=w,i.define((({Ref:t,Nullable:s})=>({target:[s(t(c.HasProps)),null]})))}, function _(o,e,i,r,l){r(),i.default=':root{--common-padding:3px;--common-outline:#1a73e8 solid 1px;--panel-bg-color:#f1f3f4;--panel-border-color:#cacdd1;}.ref{cursor:pointer;}.monospace{font-family:var(--mono-font);}.hidden{display:none !important;}.col{display:flex;flex-direction:column;}.row{display:flex;flex-direction:row;}.toolbar{display:flex;flex-direction:row;gap:1em;background-color:var(--panel-bg-color);border-bottom:1px solid var(--panel-border-color);padding:var(--common-padding);}.checkbox{display:flex;flex-direction:row;align-items:center;gap:0.25em;}.filter:focus{outline:var(--common-outline);}.examiner{height:100%;display:flex;border:1px solid var(--panel-border-color);}.models-panel{display:flex;flex-direction:column;border-right:1px solid var(--panel-border-color);}.props-panel{display:flex;flex-direction:column;height:100%;overflow:auto;}.watches-panel{display:flex;flex-direction:column;border-bottom:1px solid var(--panel-border-color);}.models-list{display:flex;flex-direction:column;height:min-content;padding:var(--common-padding);overflow-x:hidden;overflow-y:auto;}.props-list{display:grid;grid-template-columns:min-content min-content 1fr 1fr;column-gap:1em;padding:var(--common-padding);}.watches-list{display:grid;grid-template-columns:1fr 1fr;column-gap:1em;padding:var(--common-padding);}.nothing{grid-column:1 / span 2;font-style:italic;text-align:center;}.prop{display:contents;}.prop.closed{display:none;}.prop > *{opacity:0.6;}.prop.dirty > *{opacity:1;}.model-ref{display:flex;align-items:center;flex-direction:row;font-family:var(--mono-font);}.model-ref:focus-visible{outline:var(--common-outline);}.model-ref:hover{background-color:#e2e2e2;}.model-ref.active{background-color:#c8e0ee;}.tag{margin-left:1em;padding:0 4px;font-size:60%;border-width:1px;border-style:solid;border-radius:4px;color:#202124;background-color:#f1f3f4;border-color:#cacdd1;}.expander{margin:0 2px;display:inline-block;vertical-align:middle;background-color:#5f6368;--open-image:url(\'data:image/svg+xml;utf8, \');--closed-image:url(\'data:image/svg+xml;utf8, \');}.expander{width:6px;height:6px;mask-image:var(--open-image);-webkit-mask-image:var(--open-image);}.expander.closed{width:6px;height:6px;mask-image:var(--closed-image);-webkit-mask-image:var(--closed-image);}.base{grid-column:1 / span 4;color:#5f6368;cursor:pointer;}.prop-attr,.prop-conns,.prop-kind,.prop-value{display:flex;flex-direction:row;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:var(--mono-font);}.prop-attr > input[type="checkbox"]{visibility:hidden;margin-right:0.25em;}.prop-attr > input[type="checkbox"]:checked,.prop-attr:hover > input{visibility:visible;}.prop-attr:focus-visible{outline:var(--common-outline);}'}, function _(o,b,l,r,k){r(),l.nullish="bk-nullish",l.token="bk-token",l.boolean="bk-boolean",l.number="bk-number",l.string="bk-string",l.symbol="bk-symbol",l.model="bk-model",l.attr="bk-attr",l.array="bk-array",l.object="bk-object",l.iterable="bk-iterable",l.default=".bk-nullish{color:#7724c1;}.bk-token{color:#881280;}.bk-boolean{color:#007500;}.bk-number{color:#1a1aa6;}.bk-string{color:#994500;}.bk-symbol{color:#c80000;}.bk-model{color:initial;}.bk-attr{color:#c80000;}.bk-array{color:initial;}.bk-object{color:initial;}.bk-iterable{color:initial;}"}, -function _(o,t,r,n,l){n();const _=o(1);_.__exportStar(o(488),r),_.__exportStar(o(502),r),_.__exportStar(o(512),r),_.__exportStar(o(525),r),l("Tool",o(292).Tool),l("ToolProxy",o(293).ToolProxy),l("Toolbar",o(291).Toolbar),l("ToolButton",o(294).ToolButton),l("OnOffButton",o(300).OnOffButton),l("ClickButton",o(303).ClickButton)}, -function _(o,l,T,e,n){e(),n("ActionTool",o(302).ActionTool),n("CopyTool",o(489).CopyTool),n("CustomAction",o(490).CustomAction),n("FullscreenTool",o(491).FullscreenTool),n("HelpTool",o(304).HelpTool),n("ExamineTool",o(492).ExamineTool),n("RedoTool",o(493).RedoTool),n("ResetTool",o(495).ResetTool),n("SaveTool",o(496).SaveTool),n("UndoTool",o(497).UndoTool),n("ZoomInTool",o(498).ZoomInTool),n("ZoomOutTool",o(501).ZoomOutTool)}, -function _(o,t,e,i,a){var n;i();const c=o(302),p=o(123);class s extends c.ActionToolView{async copy(){const o=await this.parent.export().to_blob(),t=new ClipboardItem({[o.type]:o});await navigator.clipboard.write([t])}doit(){this.copy()}}e.CopyToolView=s,s.__name__="CopyToolView";class l extends c.ActionTool{constructor(o){super(o),this.tool_name="Copy",this.tool_icon=p.tool_icon_copy}}e.CopyTool=l,n=l,l.__name__="CopyTool",n.prototype.default_view=s,n.register_alias("copy",(()=>new n))}, -function _(o,t,n,e,i){var c;e();const l=o(1),s=o(302),_=o(50),u=l.__importStar(o(123));class a extends s.ActionToolView{doit(){const{callback:o}=this.model;null!=o&&(0,_.execute)(o,this.model)}}n.CustomActionView=a,a.__name__="CustomActionView";class m extends s.ActionTool{constructor(o){super(o),this.tool_name="Custom Action",this.tool_icon=u.tool_icon_unknown}}n.CustomAction=m,c=m,m.__name__="CustomAction",c.prototype.default_view=a,c.define((({Any:o,Nullable:t})=>({callback:[t(o),null]}))),c.override({description:"Perform a Custom Action"})}, -function _(e,l,t,n,o){var s;n();const c=e(1),r=e(302),u=c.__importStar(e(123)),i=void 0!==Element.prototype.webkitRequestFullscreen?(e,l)=>e.webkitRequestFullscreen(l):(e,l)=>e.requestFullscreen(l);class _ extends r.ActionToolView{async fullscreen(){null!=document.fullscreenElement?await document.exitFullscreen():await i(this.parent.el)}doit(){this.fullscreen()}}t.FullscreenToolView=_,_.__name__="FullscreenToolView";class a extends r.ActionTool{constructor(e){super(e),this.tool_name="Fullscreen",this.tool_icon=u.tool_icon_fullscreen}}t.FullscreenTool=a,s=a,a.__name__="FullscreenTool",s.prototype.default_view=_,s.register_alias("fullscreen",(()=>new s))}, -function _(e,i,t,o,n){var a;o();const l=e(1),s=e(302),_=l.__importStar(e(123)),r=e(319),c=e(484),d=e(401),m=e(56),h=e(63),w=l.__importDefault(e(486));class p extends s.ActionToolView{*children(){yield*super.children(),yield this._dialog}async lazy_initialize(){await super.lazy_initialize();const e=this.parent.model,i=new c.HTMLPrinter,t=new r.Dialog({stylesheets:[w.default],title:new d.HTML({html:(0,h.div)("Examine ",i.to_html(e))}),content:new c.Examiner({target:e}),visible:!1,close_action:"hide"});this._dialog=await(0,m.build_view)(t,{parent:this.parent})}doit(){this._dialog.open()}}t.ExamineToolView=p,p.__name__="ExamineToolView";class x extends s.ActionTool{constructor(e){super(e),this.tool_name="Examine",this.tool_icon=_.tool_icon_settings}}t.ExamineTool=x,a=x,x.__name__="ExamineTool",a.prototype.default_view=p,a.register_alias("examine",(()=>new a))}, -function _(o,e,t,s,i){var n;s();const l=o(494),_=o(123);class a extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_redo))}doit(){const o=this.plot_view.state.redo();null!=o?.range&&this.plot_view.trigger_ranges_update_event()}}t.RedoToolView=a,a.__name__="RedoToolView";class d extends l.PlotActionTool{constructor(o){super(o),this.tool_name="Redo",this.tool_icon=_.tool_icon_redo}}t.RedoTool=d,n=d,d.__name__="RedoTool",n.prototype.default_view=a,n.override({disabled:!0}),n.register_alias("redo",(()=>new n))}, -function _(o,t,n,e,l){e();const c=o(302);class i extends c.ActionToolView{get plot_view(){return this.parent}}n.PlotActionToolView=i,i.__name__="PlotActionToolView";class s extends c.ActionTool{constructor(o){super(o)}}n.PlotActionTool=s,s.__name__="PlotActionTool"}, -function _(e,o,t,s,i){var l;s();const _=e(494),n=e(123);class c extends _.PlotActionToolView{doit(){this.plot_view.reset()}}t.ResetToolView=c,c.__name__="ResetToolView";class r extends _.PlotActionTool{constructor(e){super(e),this.tool_name="Reset",this.tool_icon=n.tool_icon_reset}}t.ResetTool=r,l=r,r.__name__="ResetTool",l.prototype.default_view=c,l.register_alias("reset",(()=>new l))}, -function _(e,o,t,a,n){var i;a();const l=e(302),s=e(123);class c extends l.ActionToolView{async copy(){const e=await this.parent.export().to_blob(),o=new ClipboardItem({[e.type]:e});await navigator.clipboard.write([o])}async save(e){const o=await this.parent.export().to_blob(),t=document.createElement("a");t.href=URL.createObjectURL(o),t.download=e,t.target="_blank",t.dispatchEvent(new MouseEvent("click"))}doit(e="save"){switch(e){case"save":{const e=this.model.filename??prompt("Enter filename","bokeh_plot");null!=e&&this.save(e);break}case"copy":this.copy()}}}t.SaveToolView=c,c.__name__="SaveToolView";class r extends l.ActionTool{constructor(e){super(e),this.tool_name="Save",this.tool_icon=s.tool_icon_save}get menu(){return[{icon:"bk-tool-icon-copy",tooltip:"Copy image to clipboard",if:()=>"undefined"!=typeof ClipboardItem,handler:()=>{this.do.emit("copy")}}]}}t.SaveTool=r,i=r,r.__name__="SaveTool",i.prototype.default_view=c,i.define((({Str:e,Nullable:o})=>({filename:[o(e),null]}))),i.register_alias("save",(()=>new i))}, -function _(o,t,e,n,s){var i;n();const l=o(494),_=o(123);class a extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_undo))}doit(){const o=this.plot_view.state.undo();null!=o?.range&&this.plot_view.trigger_ranges_update_event()}}e.UndoToolView=a,a.__name__="UndoToolView";class d extends l.PlotActionTool{constructor(o){super(o),this.tool_name="Undo",this.tool_icon=_.tool_icon_undo}}e.UndoTool=d,i=d,d.__name__="UndoTool",i.prototype.default_view=a,i.override({disabled:!0}),i.register_alias("undo",(()=>new i))}, -function _(o,e,n,i,s){var t;i();const _=o(499),a=o(123);class m extends _.ZoomBaseToolView{get factor(){return this.model.factor}}n.ZoomInToolView=m,m.__name__="ZoomInToolView";class l extends _.ZoomBaseTool{constructor(o){super(o),this.maintain_focus=!0,this.tool_name="Zoom In",this.tool_icon=a.tool_icon_zoom_in}}n.ZoomInTool=l,t=l,l.__name__="ZoomInTool",t.prototype.default_view=m,t.register_alias("zoom_in",(()=>new t({dimensions:"both"}))),t.register_alias("xzoom_in",(()=>new t({dimensions:"width"}))),t.register_alias("yzoom_in",(()=>new t({dimensions:"height"})))}, -function _(e,o,t,s,n){var i;s();const a=e(494),l=e(218),r=e(105),c=e(20),_=e(500),d=e(19);class m extends a.PlotActionToolView{doit(){const{dimensions:e}=this.model,o="width"==e||"both"==e,t="height"==e||"both"==e,{frame:s}=this.plot_view,{x_target:n,y_target:i}=s,a=new Map(s.x_scales),l=new Map(s.y_scales),{renderers:c}=this.model;if("auto"!=c){const e=new Set,o=new Set;for(const t of c)null==t.coordinates&&(e.add(t.x_range_name),o.add(t.y_range_name));for(const o of a.keys())e.has(o)||a.delete(o);for(const e of l.keys())o.has(e)||l.delete(e)}const m=[...a.values()],h=[...l.values()],u="auto"!=c?c:this.plot_view.model.data_renderers;for(const e of u){if(null==e.coordinates)continue;const o=this.plot_view.views.get_one(e),t=(e,o)=>{const{level:t}=this.model;for(let s=0;s({factor:[e,.1],dimensions:[c.Dimensions,"both"],renderers:[o(t(s(l.DataRenderer)),n),"auto"],level:[i(a),0]})))}, -function _(n,t,r,e,o){e();const s=n(11);function c(n,t,r){const[e,o]=(0,s.minmax)(n.start,n.end),c=r??(o+e)/2;return[e-(e-c)*t,o-(o-c)*t]}function a(n,t,r){const e=new Map;for(const o of n){const[n,s]=c(o.target_range,t,r),[a,f]=o.r_invert(n,s);e.set(o.source_range,{start:a,end:f})}return e}r.scale_interval=c,r.get_info=function(n,[t,r]){const e=new Map;for(const o of n){const[n,s]=o.r_invert(t,r);e.set(o.source_range,{start:n,end:s})}return e},r.rescale=a,r.scale_range=function(n,t,r,e,o,s=!0,c=!0,f){return{xrs:a(n,s?o:0,f?.x),yrs:a(t,c?o:0,f?.y),factor:o}}}, -function _(o,t,e,s,i){var n;s();const _=o(499),a=o(123);class m extends _.ZoomBaseToolView{get factor(){const{factor:o}=this.model;return-o/(1-o)}}e.ZoomOutToolView=m,m.__name__="ZoomOutToolView";class l extends _.ZoomBaseTool{constructor(o){super(o),this.tool_name="Zoom Out",this.tool_icon=a.tool_icon_zoom_out}}e.ZoomOutTool=l,n=l,l.__name__="ZoomOutTool",n.prototype.default_view=m,n.define((({Bool:o})=>({maintain_focus:[o,!0]}))),n.register_alias("zoom_out",(()=>new n({dimensions:"both"}))),n.register_alias("xzoom_out",(()=>new n({dimensions:"width"}))),n.register_alias("yzoom_out",(()=>new n({dimensions:"height"})))}, -function _(o,l,T,i,t){i(),t("EditTool",o(503).EditTool),t("BoxEditTool",o(504).BoxEditTool),t("FreehandDrawTool",o(505).FreehandDrawTool),t("LineEditTool",o(506).LineEditTool),t("PointDrawTool",o(508).PointDrawTool),t("PolyDrawTool",o(509).PolyDrawTool),t("PolyTool",o(510).PolyTool),t("PolyEditTool",o(511).PolyEditTool)}, -function _(e,t,s,o,n){var i;o();const c=e(10),r=e(9),a=e(8),_=e(12),l=e(299);class d extends l.GestureToolView{constructor(){super(...arguments),this._mouse_in_frame=!0}_select_mode(e){const{shift:t,ctrl:s}=e.modifiers;return t||s?t&&!s?"append":!t&&s?"intersect":t&&s?"subtract":void(0,_.unreachable)():"replace"}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){if(!this.plot_view.frame.bbox.contains(e,t))return null;const o=this.plot_view.views.find_one(s);if(null==o)return null;return[o.coordinates.x_scale.invert(e),o.coordinates.y_scale.invert(t)]}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;en.has(i)?n.get(i):o.has(i)?o.get(i):s.has(i)?s.get(i):this.model.empty_value)();e.get_array(i).push(t)}}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const c={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=this.plot_view.views.find_one(e);if(null!=n){s.select([n],c,!0,t)&&r.push(e),o.properties.selected.change.emit()}}return r}}s.EditToolView=d,d.__name__="EditToolView";class u extends l.GestureTool{constructor(e){super(e)}}s.EditTool=u,i=u,u.__name__="EditTool",i.define((({Unknown:e,Dict:t})=>({default_overrides:[t(e),{}],empty_value:[e,0]})))}, -function _(e,i,s,t,l){var n;t();const o=e(20),d=e(28),r=e(220),_=e(376),f=e(353),a=e(373),c=e(358),h=e(385),p=e(361),u=e(387),m=e(217),F=e(503),b=e(123),x=e(12),y=e(9);class g extends F.EditToolView{constructor(){super(...arguments),this._recent_renderers=[]}_tap(e){null==this._draw_basepoint&&null==this._basepoint&&(this._recent_renderers=this._select_event(e,this._select_mode(e),this.model.renderers))}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const i of this.model.renderers)if("Backspace"==e.key)this._delete_selected(i);else if("Escape"==e.key){i.data_source.selection_manager.clear()}}_set_extent([e,i],[s,t],l,n=!1){const o=this._recent_renderers[0]??this.model.renderers[0],r=this.plot_view.views.find_one(o);if(null==r)return;const{glyph:m}=o,F=o.data_source,b=(0,y.dict)(F.data),[g,w]=r.coordinates.x_scale.r_invert(e,i),[v,B]=r.coordinates.y_scale.r_invert(s,t),E=(()=>{if(m instanceof _.Rect){const{x:e,y:i,width:s,height:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:(g+w)/2,[i.field]:(v+B)/2,[s.field]:w-g,[t.field]:B-v}}else if(m instanceof f.Block){const{x:e,y:i,width:s,height:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:g,[i.field]:v,[s.field]:w-g,[t.field]:B-v}}else if(m instanceof a.Quad){const{right:e,bottom:i,left:s,top:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:w,[i.field]:v,[s.field]:g,[t.field]:B}}else if(m instanceof c.HBar){const{left:e,y:i,height:s,right:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:g,[i.field]:(v+B)/2,[s.field]:B-v,[t.field]:w}}else if(m instanceof h.VBar){const{x:e,bottom:i,width:s,top:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:(g+w)/2,[i.field]:v,[s.field]:w-g,[t.field]:B}}else if(m instanceof p.HStrip){const{y0:e,y1:i}=m;if((0,d.isField)(e)&&(0,d.isField)(i))return{[e.field]:v,[i.field]:B}}else if(m instanceof u.VStrip){const{x0:e,x1:i}=m;if((0,d.isField)(e)&&(0,d.isField)(i))return{[e.field]:g,[i.field]:w}}else(0,x.unreachable)(`'${m.type}' is not supported"`);return null})();if(null!=E){if(l){this._pop_glyphs(F,this.model.num_objects);for(const[e,i]of(0,y.entries)(E))F.get_array(e).push(i);this._pad_empty_columns(F,(0,y.keys)(E))}else{const e=F.get_length();if(null==e)return;const i=e-1;for(const[e,s]of(0,y.entries)(E))b.get(e)[i]=s}this._emit_cds_changes(F,!0,!1,n)}}_update_box(e,i=!1,s=!1){if(null==this._draw_basepoint)return;const t=[e.sx,e.sy],l=this.plot_view.frame,n=this.model.dimensions,[o,d]=this.model._get_dim_limits(this._draw_basepoint,t,l,n);this._set_extent(o,d,i,s)}_press(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,"append",this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.modifiers.shift){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._recent_renderers=this._select_event(e,"append",this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,i=!1,s=!1){if(e.modifiers.shift){if(null==this._draw_basepoint)return;this._update_box(e,i,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_drag_points(e,i,s="both"){if(null==this._basepoint)return;const[t,l]=this._basepoint;for(const n of i){const i=this._map_drag(t,l,n),o=this._map_drag(e.sx,e.sy,n);if(null==o||null==i)continue;const[_,m]=o,[F,b]=i,g="width"==s||"both"==s?_-F:0,w="height"==s||"both"==s?m-b:0,{glyph:v}=n,B=n.data_source,E=(0,y.dict)(B.data),k={};if(v instanceof r.XYGlyph){const{x:e,y:i}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(k[i.field]=w)}else if(v instanceof f.Block){const{x:e,y:i}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(k[i.field]=w)}else if(v instanceof a.Quad){const{right:e,bottom:i,left:s,top:t}=v;(0,d.isField)(s)&&(0,d.isField)(e)&&(k[s.field]=g,k[e.field]=g),(0,d.isField)(t)&&(0,d.isField)(i)&&(k[t.field]=w,k[i.field]=w)}else if(v instanceof c.HBar){const{left:e,right:i,y:s}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=g,k[i.field]=g),(0,d.isField)(s)&&(k[s.field]=w)}else if(v instanceof h.VBar){const{x:e,top:i,bottom:s}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(0,d.isField)(s)&&(k[i.field]=w,k[s.field]=w)}else if(v instanceof p.HStrip){const{y0:e,y1:i}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=w,k[i.field]=w)}else if(v instanceof u.VStrip){const{x0:e,x1:i}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=g,k[i.field]=g)}else(0,x.unreachable)(`'${v.type}' is not supported"`);for(const e of B.selected.indices)for(const[i,s]of(0,y.entries)(k)){(E.get(i)??[])[e]+=s}B.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this._pan(e,!1,!0),e.modifiers.shift)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=g,g.__name__="BoxEditToolView";class w extends F.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.tool_icon=b.tool_icon_box_edit,this.event_type=["tap","press","pan","move"],this.default_order=1}}s.BoxEditTool=w,n=w,w.__name__="BoxEditTool",n.prototype.default_view=g,n.define((({Int:e,List:i,Ref:s})=>({dimensions:[o.Dimensions,"both"],num_objects:[e,0],renderers:[i(s(m.GlyphRenderer)),[]]})))}, -function _(e,t,r,a,s){var _;a();const o=e(9),n=e(8),d=e(503),i=e(217),l=e(123);class h extends d.EditToolView{_draw(e,t,r=!1){if(!this.model.active)return;const a=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,a);if(null==s)return;const[_,d]=s,i=a.data_source,l=(0,o.dict)(i.data),h=a.glyph,[c,p]=[h.xs.field,h.ys.field];if("new"==t)this._pop_glyphs(i,this.model.num_objects),c&&i.get_array(c).push([_]),p&&i.get_array(p).push([d]),this._pad_empty_columns(i,[c,p]);else if("add"==t){if(c){const e=l.get(c)??[],t=e.length-1;let r=i.get_array(c)[t];(0,n.isArray)(r)||(r=Array.from(r),e[t]=r),r.push(_)}if(p){const e=l.get(p)??[],t=e.length-1;let r=i.get_array(p)[t];(0,n.isArray)(r)||(r=Array.from(r),e[t]=r),r.push(d)}}this._emit_cds_changes(i,!0,!0,r)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,this._select_mode(e),this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)"Escape"==e.key?t.data_source.selection_manager.clear():"Backspace"==e.key&&this._delete_selected(t)}}r.FreehandDrawToolView=h,h.__name__="FreehandDrawToolView";class c extends d.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.tool_icon=l.tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}}r.FreehandDrawTool=c,_=c,c.__name__="FreehandDrawTool",_.prototype.default_view=h,_.define((({Int:e,List:t,Ref:r})=>({num_objects:[e,0],renderers:[t(r(i.GlyphRenderer)),[]]}))),_.register_alias("freehand_draw",(()=>new _))}, -function _(e,t,s,i,r){var n;i();const _=e(20),d=e(9),o=e(217),l=e(507),c=e(123);class h extends l.LineToolView{constructor(){super(...arguments),this._drawing=!1}_press(e){if(!this.model.active)return;const t=this.model.renderers;for(const s of t){1==this._select_event(e,"replace",[s]).length&&(this._selected_renderer=s)}this._show_intersections(),this._update_line_cds()}_show_intersections(){if(!this.model.active)return;if(null==this._selected_renderer)return;if(0==this.model.renderers.length)return this._set_intersection([],[]),this._selected_renderer=null,void(this._drawing=!1);const e=this._selected_renderer.data_source,t=this._selected_renderer.glyph,[s,i]=[t.x.field,t.y.field],r=e.get_array(s),n=e.get_array(i);this._set_intersection(r,n)}_tap(e){const t=this.model.intersection_renderer;if(null==this._map_drag(e.sx,e.sy,t))return;if(this._drawing&&null!=this._selected_renderer){const s=this._select_mode(e);if(0==this._select_event(e,s,[t]).length)return}const s=this._select_mode(e);this._select_event(e,s,[t]),this._select_event(e,s,this.model.renderers)}_update_line_cds(){if(null==this._selected_renderer)return;const e=this.model.intersection_renderer.glyph,t=this.model.intersection_renderer.data_source,s=(0,d.dict)(t.data),[i,r]=[e.x.field,e.y.field];if(i&&r){const e=s.get(i),t=s.get(r);null!=e&&(0,d.dict)(this._selected_renderer.data_source.data).set(i,e),null!=t&&(0,d.dict)(this._selected_renderer.data_source.data).set(r,t)}this._emit_cds_changes(this._selected_renderer.data_source,!0,!0,!1)}_pan_start(e){this._select_event(e,"append",[this.model.intersection_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer],this.model.dimensions),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer]),this._emit_cds_changes(this.model.intersection_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}activate(){this._drawing=!0}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._drawing=!1),this._hide_intersections())}}s.LineEditToolView=h,h.__name__="LineEditToolView";class a extends l.LineTool{constructor(e){super(e),this.tool_name="Line Edit Tool",this.tool_icon=c.tool_icon_line_edit,this.event_type=["tap","press","pan","move"],this.default_order=4}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}s.LineEditTool=a,n=a,a.__name__="LineEditTool",n.prototype.default_view=h,n.define((({List:e,Ref:t})=>({dimensions:[_.Dimensions,"both"],renderers:[e(t(o.GlyphRenderer)),[]]})))}, -function _(e,i,t,n,s){var o;n();const r=e(9),_=e(8),c=e(503);class d extends c.EditToolView{_set_intersection(e,i){const t=this.model.intersection_renderer.glyph,n=this.model.intersection_renderer.data_source,s=(0,r.dict)(n.data),[o,c]=[t.x.field,t.y.field];o&&((0,_.isArray)(e)?s.set(o,e):t.x={value:e}),c&&((0,_.isArray)(i)?s.set(c,i):t.y={value:i}),this._emit_cds_changes(n,!0,!0,!1)}_hide_intersections(){this._set_intersection([],[])}}t.LineToolView=d,d.__name__="LineToolView";class l extends c.EditTool{constructor(e){super(e)}}t.LineTool=l,o=l,l.__name__="LineTool",o.define((({AnyRef:e})=>({intersection_renderer:[e()]})))}, -function _(e,t,s,o,i){var _;o();const a=e(217),n=e(503),r=e(123);class d extends n.EditToolView{_tap(e){if(0!=this._select_event(e,this._select_mode(e),this.model.renderers).length||!this.model.add)return;const t=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,t);if(null==s)return;const o=t.glyph,i=t.data_source,[_,a]=[o.x.field,o.y.field],[n,r]=s;this._pop_glyphs(i,this.model.num_objects),_&&i.get_array(_).push(n),a&&i.get_array(a).push(r),this._pad_empty_columns(i,[_,a]);const{data:d}=i;i.setv({data:d},{check_eq:!1})}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)"Backspace"==e.key?this._delete_selected(t):"Escape"==e.key&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,"append",this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}s.PointDrawToolView=d,d.__name__="PointDrawToolView";class l extends n.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.tool_icon=r.tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}}s.PointDrawTool=l,_=l,l.__name__="PointDrawTool",_.prototype.default_view=d,_.define((({Bool:e,Int:t,List:s,Ref:o})=>({add:[e,!0],drag:[e,!0],num_objects:[t,0],renderers:[s(o(a.GlyphRenderer)),[]]})))}, -function _(e,t,s,i,r){var o;i();const n=e(9),a=e(8),_=e(217),l=e(510),d=e(123);class h extends l.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,this._select_mode(e),this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],r=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==r)return;const[o,_]=this._snap_to_vertex(e,...r),l=i.data_source,d=(0,n.dict)(l.data),h=i.glyph,[c,g]=[h.xs.field,h.ys.field];if("new"==t)this._pop_glyphs(l,this.model.num_objects),c&&l.get_array(c).push([o,o]),g&&l.get_array(g).push([_,_]),this._pad_empty_columns(l,[c,g]);else if("edit"==t){if(c){const e=d.get(c)??[],t=e[e.length-1];t[t.length-1]=o}if(g){const e=d.get(g)??[],t=e[e.length-1];t[t.length-1]=_}}else if("add"==t){if(c){const e=d.get(c)??[],t=e.length-1;let s=l.get_array(c)[t];const i=s[s.length-1];s[s.length-1]=o,(0,a.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(i)}if(g){const e=d.get(g)??[],t=e.length-1;let s=l.get_array(g)[t];const i=s[s.length-1];s[s.length-1]=_,(0,a.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(i)}}this._emit_cds_changes(l,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;sthis._show_vertices()))}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),null!=this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=h,h.__name__="PolyDrawToolView";class c extends l.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.tool_icon=d.tool_icon_poly_draw,this.event_type=["pan","tap","press","move"],this.default_order=3}}s.PolyDrawTool=c,o=c,c.__name__="PolyDrawTool",o.prototype.default_view=h,o.define((({Bool:e,Int:t,List:s,Ref:i})=>({drag:[e,!0],num_objects:[t,0],renderers:[s(i(_.GlyphRenderer)),[]]})))}, -function _(e,t,r,s,l){var i;s();const o=e(9),_=e(8),n=e(12),d=e(503);class a extends d.EditToolView{_set_vertices(e,t){const{vertex_renderer:r}=this.model;(0,n.assert)(null!=r);const s=r.glyph,l=r.data_source,[i,d]=[s.x.field,s.y.field],a=(0,o.dict)(l.data);i&&((0,_.isArray)(e)?a.set(i,e):s.x={value:e}),d&&((0,_.isArray)(t)?a.set(d,t):s.y={value:t}),this._emit_cds_changes(l,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,t,r){if(null!=this.model.vertex_renderer){const s=this._select_event(e,"replace",[this.model.vertex_renderer]),l=this.model.vertex_renderer.data_source,i=this.model.vertex_renderer.glyph,[_,n]=[i.x.field,i.y.field];if(0!=s.length){const e=l.selected.indices[0],s=(0,o.dict)(l.data);_&&(t=s.get(_)[e]),n&&(r=s.get(n)[e]),l.selection_manager.clear()}}return[t,r]}}r.PolyToolView=a,a.__name__="PolyToolView";class c extends d.EditTool{constructor(e){super(e)}}r.PolyTool=c,i=c,c.__name__="PolyTool",i.define((({AnyRef:e,Nullable:t})=>({vertex_renderer:[t(e()),null]})))}, -function _(e,t,r,s,i){var _;s();const n=e(8),d=e(9),l=e(217),c=e(510),a=e(123);class o extends c.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._cur_index=null}_press(e){if(null==this.model.vertex_renderer||!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[r,s]=t,i=this._select_event(e,"replace",[this.model.vertex_renderer]),_=this.model.vertex_renderer.data_source,n=this.model.vertex_renderer.glyph,[d,l]=[n.x.field,n.y.field];if(0!=i.length&&null!=this._selected_renderer){const e=_.selected.indices[0];this._drawing?(this._drawing=!1,_.selection_manager.clear()):(_.selected.indices=[e+1],d&&_.get_array(d).splice(e+1,0,r),l&&_.get_array(l).splice(e+1,0,s),this._drawing=!0),_.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;if(0==this.model.renderers.length)return;const t=this.model.renderers[0],r=()=>this._update_vertices(t),s=t.data_source,i=this._select_event(e,"replace",this.model.renderers);if(0==i.length)return this._set_vertices([],[]),this._selected_renderer=null,this._drawing=!1,this._cur_index=null,void s.disconnect(s.properties.data.change,r);s.connect(s.properties.data.change,r),this._cur_index=i[0].data_source.selected.indices[0],this._update_vertices(i[0])}_update_vertices(e){const t=e.glyph,r=(0,d.dict)(e.data_source.data),s=this._cur_index,[i,_]=[t.xs.field,t.ys.field];if(this._drawing)return;if(null==s&&(i||_))return;let l,c;if(i&&null!=s){const e=r.get(i)??[];l=e[s],(0,n.isArray)(l)||(e[s]=l=Array.from(l))}else l=t.xs.value;if(_&&null!=s){const e=r.get(_)??[];c=e[s],(0,n.isArray)(c)||(e[s]=c=Array.from(c))}else c=t.ys.value;this._selected_renderer=e,this._set_vertices(l,c)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer;if(null==t)return;const r=t.data_source,s=(0,d.dict)(r.data),i=t.glyph,_=this._map_drag(e.sx,e.sy,t);if(null==_)return;let[n,l]=_;const c=r.selected.indices;[n,l]=this._snap_to_vertex(e,n,l),r.selected.indices=c;const[a,o]=[i.x.field,i.y.field],h=c[0];a&&(s.get(a)[h]=n),o&&(s.get(o)[h]=l),r.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer;if(null==t)return;const r=this._map_drag(e.sx,e.sy,t);if(null==r)return;if(this._drawing&&null!=this._selected_renderer){let[s,i]=r;const _=t.data_source,n=t.glyph,[d,l]=[n.x.field,n.y.field],c=_.selected.indices;[s,i]=this._snap_to_vertex(e,s,i);const a=c[0];if(_.selected.indices=[a+1],d){const e=_.get_array(d),t=e[a];e[a]=s,e.splice(a+1,0,t)}if(l){const e=_.get_array(l),t=e[a];e[a]=i,e.splice(a+1,0,t)}return _.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const s=this._select_mode(e);this._select_event(e,s,[t]),this._select_event(e,s,this.model.renderers)}_remove_vertex(){if(!this._drawing||null==this._selected_renderer)return;const e=this.model.vertex_renderer;if(null==e)return;const t=e.data_source,r=e.glyph,s=t.selected.indices[0],[i,_]=[r.x.field,r.y.field];i&&t.get_array(i).splice(s,1),_&&t.get_array(_).splice(s,1),t.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){null!=this.model.vertex_renderer&&(this._select_event(e,"append",[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy])}_pan(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;if(null!=this._selected_renderer){const{vertex_renderer:e}=this.model;t=null!=e?[e]:[]}else t=this.model.renderers;for(const r of t)"Backspace"==e.key?(this._delete_selected(r),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):"Escape"==e.key&&(this._drawing?(this._remove_vertex(),this._drawing=!1):null!=this._selected_renderer&&this._hide_vertices(),r.data_source.selection_manager.clear())}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}r.PolyEditToolView=o,o.__name__="PolyEditToolView";class h extends c.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.tool_icon=a.tool_icon_poly_edit,this.event_type=["tap","press","pan","move"],this.default_order=4}}r.PolyEditTool=h,_=h,h.__name__="PolyEditTool",_.prototype.default_view=o,_.define((({List:e,Ref:t})=>({renderers:[e(t(l.GlyphRenderer)),[]]})))}, -function _(o,l,e,T,t){T(),t("BoxSelectTool",o(513).BoxSelectTool),t("BoxZoomTool",o(516).BoxZoomTool),t("GestureTool",o(299).GestureTool),t("LassoSelectTool",o(517).LassoSelectTool),t("PanTool",o(519).PanTool),t("PolySelectTool",o(518).PolySelectTool),t("RangeTool",o(520).RangeTool),t("SelectTool",o(515).SelectTool),t("TapTool",o(521).TapTool),t("WheelPanTool",o(523).WheelPanTool),t("WheelZoomTool",o(524).WheelZoomTool)}, -function _(t,e,i,o,s){var n;o();const l=t(1),_=t(514),r=t(262),a=t(60),c=t(20),h=l.__importStar(t(123));class p extends _.RegionSelectToolView{connect_signals(){super.connect_signals();const{pan:t}=this.model.overlay;this.connect(t,(([t,e])=>{if("pan"==t&&this._is_continuous(e)||"pan:end"==t){const{left:t,top:i,right:o,bottom:s}=this.model.overlay;if(!(t instanceof a.Coordinate||i instanceof a.Coordinate||o instanceof a.Coordinate||s instanceof a.Coordinate)){const n=this._compute_lrtb({left:t,right:o,top:i,bottom:s});this._do_select([n.left,n.right],[n.top,n.bottom],!1,this._select_mode(e))}}}));const{active:e}=this.model.properties;this.on_change(e,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_compute_limits(t){const e=this.plot_view.frame,i=this.model.dimensions;let o=this._base_point;if("center"==this.model.origin){const[e,i]=o,[s,n]=t;o=[e-(s-e),i-(n-i)]}return this.model._get_dim_limits(o,t,e,i)}_mappers(){const t=(t,e,i,o)=>{switch(t){case"canvas":return o;case"screen":return i;case"data":return e}},{overlay:e}=this.model,{frame:i,canvas:o}=this.plot_view,{x_scale:s,y_scale:n}=i,{x_view:l,y_view:_}=i.bbox,{x_screen:r,y_screen:a}=o.bbox;return{left:t(e.left_units,s,l,r),right:t(e.right_units,s,l,r),top:t(e.top_units,n,_,a),bottom:t(e.bottom_units,n,_,a)}}_compute_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.compute(t),right:s.right.compute(e),top:s.top.compute(i),bottom:s.bottom.compute(o)}}_invert_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.invert(t),right:s.right.invert(e),top:s.top.invert(i),bottom:s.bottom.invert(o)}}_pan_start(t){const{sx:e,sy:i}=t,{frame:o}=this.plot_view;o.bbox.contains(e,i)&&(this._clear_other_overlays(),this._base_point=[e,i])}_pan(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]),[[n,l],[_,r]]=[o,s];this.model.overlay.update(this._invert_lrtb({left:n,right:l,top:_,bottom:r})),this._is_continuous(t.modifiers)&&this._do_select(o,s,!1,this._select_mode(t.modifiers))}_pan_end(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]);this._do_select(o,s,!0,this._select_mode(t.modifiers)),this.model.persistent||this._clear_overlay(),this._base_point=null,this.plot_view.state.push("box_select",{selection:this.plot_view.get_selection()})}get _is_selecting(){return null!=this._base_point}_stop(){this._clear_overlay(),this._base_point=null}_keyup(t){if(this.model.active){if("Escape"==t.key){if(this._is_selecting)return void this._stop();if(this.model.overlay.visible)return void this._clear_overlay()}super._keyup(t)}}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select([t,e],[i,o],s,n="replace"){const{greedy:l}=this.model,_={type:"rect",sx0:t,sx1:e,sy0:i,sy1:o,greedy:l};this._select(_,s,n)}}i.BoxSelectToolView=p,p.__name__="BoxSelectToolView";const m=()=>new r.BoxAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!0,left:NaN,right:NaN,top:NaN,bottom:NaN,top_units:"data",left_units:"data",bottom_units:"data",right_units:"data",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class d extends _.RegionSelectTool{constructor(t){super(t),this.tool_name="Box Select",this.event_type="pan",this.default_order=30}initialize(){super.initialize();const[t,e]=(()=>{switch(this.dimensions){case"width":return["x","x"];case"height":return["y","y"];case"both":return["all","both"]}})(),i="center"==this.origin;this.overlay.setv({resizable:t,movable:e,symmetric:i})}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case"both":return`.${h.tool_icon_box_select}`;case"width":return`.${h.tool_icon_x_box_select}`;case"height":return`.${h.tool_icon_y_box_select}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}i.BoxSelectTool=d,n=d,d.__name__="BoxSelectTool",n.prototype.default_view=p,n.define((({Ref:t})=>({dimensions:[c.Dimensions,"both"],overlay:[t(r.BoxAnnotation),m],origin:[c.BoxOrigin,"corner"]}))),n.register_alias("box_select",(()=>new n)),n.register_alias("xbox_select",(()=>new n({dimensions:"width"}))),n.register_alias("ybox_select",(()=>new n({dimensions:"height"})))}, -function _(e,o,t,s,l){var n;s();const c=e(515),r=e(20);class i extends c.SelectToolView{get overlays(){return[...super.overlays,this.model.overlay]}_is_continuous(e){return this.model.continuous!=e.alt}_select(e,o,t){const s=this._computed_renderers_by_data_source();for(const[,l]of s){const s=l[0].get_selection_manager(),n=[];for(const e of l){const o=this.plot_view.views.find_one(e);null!=o&&n.push(o)}s.select(n,e,o,t)}this._emit_selection_event(e,o)}_clear_overlay(){super._clear_overlay(),this.model.overlay.clear()}}t.RegionSelectToolView=i,i.__name__="RegionSelectToolView";class _ extends c.SelectTool{constructor(e){super(e)}}t.RegionSelectTool=_,n=_,_.__name__="RegionSelectTool",n.define((({Bool:e})=>({mode:[r.RegionSelectionMode,"replace"],continuous:[e,!1],persistent:[e,!1],greedy:[e,!1]})))}, -function _(e,t,o,r,n){var i;r();const s=e(1),c=e(299),l=e(217),a=e(452),_=e(218),d=e(108),h=e(53),p=e(15),u=e(12),m=e(10),v=s.__importStar(e(123));class f extends c.GestureToolView{connect_signals(){super.connect_signals(),this.model.invert.connect((()=>this._invert_selection())),this.model.clear.connect((()=>this._clear_selection()))}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,d.compute_renderers)(e,t)}_computed_renderers_by_data_source(){const e=new Map;for(const t of this.computed_renderers){let o;if(t instanceof l.GlyphRenderer)o=t.data_source;else{if(!(t instanceof a.GraphRenderer))continue;o=t.node_renderer.data_source}const r=e.get(o)??[];e.set(o,[...r,t])}return e}_clear_overlay(){}_clear_other_overlays(){for(const e of this.plot_view.tool_views.values())e instanceof f&&e!=this&&e._clear_overlay()}_clear_selection(){const{computed_renderers:e}=this,t=(0,m.uniq)(e.map((e=>e.selection_manager)));for(const e of t)e.clear();this.plot_view.request_paint(...e)}_invert_selection(){const{computed_renderers:e}=this,t=(0,m.uniq)(e.map((e=>e.selection_manager)));for(const e of t)e.invert();this.plot_view.request_paint(...e)}_select_mode(e){const{shift:t,ctrl:o}=e;return t||o?t&&!o?"append":!t&&o?"intersect":t&&o?"subtract":void(0,u.unreachable)():this.model.mode}_keyup(e){this.model.active&&"Escape"==e.key&&this._clear_selection()}_emit_selection_event(e,t=!0){const{x_scale:o,y_scale:r}=this.plot_view.frame,n=(()=>{switch(e.type){case"point":{const{sx:t,sy:n}=e,i=o.invert(t),s=r.invert(n);return{...e,x:i,y:s}}case"span":{const{sx:t,sy:n}=e,i=o.invert(t),s=r.invert(n);return{...e,x:i,y:s}}case"rect":{const{sx0:t,sx1:n,sy0:i,sy1:s}=e,[c,l]=o.r_invert(t,n),[a,_]=r.r_invert(i,s);return{...e,x0:c,y0:a,x1:l,y1:_}}case"poly":{const{sx:t,sy:n}=e,i=o.v_invert(t),s=r.v_invert(n);return{...e,x:i,y:s}}}})();this.plot_view.model.trigger_event(new h.SelectionGeometry(n,t))}}o.SelectToolView=f,f.__name__="SelectToolView";class y extends c.GestureTool{constructor(e){super(e),this.invert=new p.Signal0(this,"invert"),this.clear=new p.Signal0(this,"clear")}get menu(){return[{icon:v.tool_icon_replace_mode,tooltip:"Replace the current selection",active:()=>"replace"==this.mode,handler:()=>{this.mode="replace",this.active=!0}},{icon:v.tool_icon_append_mode,tooltip:"Append to the current selection (Shift)",active:()=>"append"==this.mode,handler:()=>{this.mode="append",this.active=!0}},{icon:v.tool_icon_intersect_mode,tooltip:"Intersect with the current selection (Ctrl)",active:()=>"intersect"==this.mode,handler:()=>{this.mode="intersect",this.active=!0}},{icon:v.tool_icon_subtract_mode,tooltip:"Subtract from the current selection (Shift+Ctrl)",active:()=>"subtract"==this.mode,handler:()=>{this.mode="subtract",this.active=!0}},{icon:v.tool_icon_xor_mode,tooltip:"Symmetric difference with the current selection",active:()=>"xor"==this.mode,handler:()=>{this.mode="xor",this.active=!0}},null,{icon:v.tool_icon_invert_selection,tooltip:"Invert the current selection",handler:()=>{this.invert.emit()}},{icon:v.tool_icon_clear_selection,tooltip:"Clear the current selection and/or selection overlay (Esc)",handler:()=>{this.clear.emit()}}]}}o.SelectTool=y,i=y,y.__name__="SelectTool",i.define((({List:e,Ref:t,Or:o,Auto:r})=>({renderers:[o(e(t(_.DataRenderer)),r),"auto"]})))}, -function _(o,t,e,i,s){var n;i();const a=o(1),_=o(299),r=o(262),l=o(20),h=a.__importStar(o(123));class c extends _.GestureToolView{constructor(){super(...arguments),this._base_point=null}get overlays(){return[...super.overlays,this.model.overlay]}_match_aspect([o,t],[e,i],s){const n=s.bbox.aspect,a=s.bbox.h_range.end,_=s.bbox.h_range.start,r=s.bbox.v_range.end,l=s.bbox.v_range.start;let h=Math.abs(o-e),c=Math.abs(t-i);const m=0==c?0:h/c,[d]=m>=n?[1,m/n]:[n/m,1];let p,u,b,x;return o<=e?(p=o,u=o+h*d,u>a&&(u=a)):(u=o,p=o-h*d,p<_&&(p=_)),h=Math.abs(u-p),t<=i?(x=t,b=t+h/n,b>r&&(b=r)):(b=t,x=t-h/n,x{const{dimensions:e}=this.model;if("auto"==e){const[e,i]=o,[s,n]=t,a=Math.abs(e-s),_=Math.abs(i-n),r=5;return ar?"height":a>r&&_new r.BoxAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!1,left:NaN,right:NaN,top:NaN,bottom:NaN,top_units:"canvas",left_units:"canvas",bottom_units:"canvas",right_units:"canvas",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class d extends _.GestureTool{constructor(o){super(o),this.tool_name="Box Zoom",this.event_type=["pan","doubletap"],this.default_order=20}get event_role(){return"pan"}get computed_icon(){const o=super.computed_icon;if(null!=o)return o;switch(this.dimensions){case"both":return`.${h.tool_icon_box_zoom}`;case"width":return`.${h.tool_icon_x_box_zoom}`;case"height":return`.${h.tool_icon_y_box_zoom}`;case"auto":return`.${h.tool_icon_auto_box_zoom}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get menu(){return[{icon:h.tool_icon_box_zoom,tooltip:"Box zoom in both dimensions",active:()=>"both"==this.dimensions,handler:()=>{this.dimensions="both",this.active=!0}},{icon:h.tool_icon_x_box_zoom,tooltip:"Box zoom in x-dimension",active:()=>"width"==this.dimensions,handler:()=>{this.dimensions="width",this.active=!0}},{icon:h.tool_icon_y_box_zoom,tooltip:"Box zoom in y-dimension",active:()=>"height"==this.dimensions,handler:()=>{this.dimensions="height",this.active=!0}},{icon:h.tool_icon_auto_box_zoom,tooltip:"Automatic mode (box zoom in x, y or both dimensions, depending on the mouse gesture)",active:()=>"auto"==this.dimensions,handler:()=>{this.dimensions="auto",this.active=!0}}]}}e.BoxZoomTool=d,n=d,d.__name__="BoxZoomTool",n.prototype.default_view=c,n.define((({Bool:o,Ref:t,Or:e,Auto:i})=>({dimensions:[e(l.Dimensions,i),"both"],overlay:[t(r.BoxAnnotation),m],match_aspect:[o,!1],origin:[l.BoxOrigin,"corner"]}))),n.register_alias("box_zoom",(()=>new n({dimensions:"both"}))),n.register_alias("xbox_zoom",(()=>new n({dimensions:"width"}))),n.register_alias("ybox_zoom",(()=>new n({dimensions:"height"}))),n.register_alias("auto_box_zoom",(()=>new n({dimensions:"auto"})))}, -function _(e,s,t,o,i){var _;o();const l=e(514),n=e(285),c=e(518),r=e(12),a=e(123);class h extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,s,t,o)=>{switch(e){case"canvas":return o;case"screen":return t;case"data":return s}},{overlay:s}=this.model,{frame:t,canvas:o}=this.plot_view,{x_scale:i,y_scale:_}=t,{x_view:l,y_view:n}=t.bbox,{x_screen:c,y_screen:r}=o.bbox;return{x:e(s.xs_units,i,l,c),y:e(s.ys_units,_,n,r)}}_v_compute(e,s){const{x:t,y:o}=this._mappers();return[t.v_compute(e),o.v_compute(s)]}_v_invert(e,s){const{x:t,y:o}=this._mappers();return[t.v_invert(e),o.v_invert(s)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,s])=>{if("pan"==e&&this._is_continuous(s)||"pan:end"==e){const{xs:e,ys:t}=this.model.overlay,[o,i]=this._v_compute(e,t);this._do_select(o,i,!1,this._select_mode(s))}}));const{active:s}=this.model.properties;this.on_change(s,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_pan_start(e){const{sx:s,sy:t}=e,{frame:o}=this.plot_view;if(!o.bbox.contains(s,t))return;this._clear_other_overlays(),this._is_selecting=!0;const[i,_]=this._v_invert([s],[t]);this.model.overlay.update({xs:i,ys:_})}_pan(e){(0,r.assert)(this._is_selecting);const[s,t]=(()=>{const{xs:e,ys:s}=this.model.overlay,[t,o]=this._v_compute(e,s);return[[...t],[...o]]})(),[o,i]=this.plot_view.frame.bbox.clip(e.sx,e.sy);s.push(o),t.push(i);const[_,l]=this._v_invert(s,t);this.model.overlay.update({xs:_,ys:l}),this._is_continuous(e.modifiers)&&this._do_select(s,t,!1,this._select_mode(e.modifiers))}_pan_end(e){(0,r.assert)(this._is_selecting),this._is_selecting=!1;const{xs:s,ys:t}=this.model.overlay,[o,i]=this._v_compute(s,t);this._do_select(o,i,!0,this._select_mode(e.modifiers)),this.plot_view.state.push("lasso_select",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_keyup(e){this.model.active&&("Escape"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select(e,s,t,o){const{greedy:i}=this.model,_={type:"poly",sx:e,sy:s,greedy:i};this._select(_,t,o)}}t.LassoSelectToolView=h,h.__name__="LassoSelectToolView";class v extends l.RegionSelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.tool_icon=a.tool_icon_lasso_select,this.event_type="pan",this.default_order=12}}t.LassoSelectTool=v,_=v,v.__name__="LassoSelectTool",_.prototype.default_view=h,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),c.DEFAULT_POLY_OVERLAY]}))),_.override({continuous:!0}),_.register_alias("lasso_select",(()=>new _))}, -function _(e,s,t,i,o){var _;i();const l=e(514),n=e(285),c=e(123);class r extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,s,t,i)=>{switch(e){case"canvas":return i;case"screen":return t;case"data":return s}},{overlay:s}=this.model,{frame:t,canvas:i}=this.plot_view,{x_scale:o,y_scale:_}=t,{x_view:l,y_view:n}=t.bbox,{x_screen:c,y_screen:r}=i.bbox;return{x:e(s.xs_units,o,l,c),y:e(s.ys_units,_,n,r)}}_v_compute(e,s){const{x:t,y:i}=this._mappers();return[t.v_compute(e),i.v_compute(s)]}_v_invert(e,s){const{x:t,y:i}=this._mappers();return[t.v_invert(e),i.v_invert(s)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,s])=>{if("pan"==e&&this._is_continuous(s)||"pan:end"==e&&!this._is_selecting){const{xs:e,ys:t}=this.model.overlay,[i,o]=this._v_compute(e,t);this._do_select(i,o,!1,this._select_mode(s))}}));const{active:s}=this.model.properties;this.on_change(s,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_tap(e){const{sx:s,sy:t}=e,{frame:i}=this.plot_view;if(!i.bbox.contains(s,t))return;this._clear_other_overlays();const[o,_]=(()=>{if(this._is_selecting){const{xs:e,ys:s}=this.model.overlay,[t,i]=this._v_compute(e,s);return[[...t],[...i]]}return this._is_selecting=!0,[[],[]]})();o.push(s),_.push(t);const[l,n]=this._v_invert(o,_);this.model.overlay.update({xs:l,ys:n}),this._is_continuous(e.modifiers)&&this._do_select(o,_,!0,this._select_mode(e.modifiers))}_finish_selection(e){this._is_selecting=!1;const{xs:s,ys:t}=this.model.overlay,[i,o]=this._v_compute(s,t);this._do_select(i,o,!0,this._select_mode(e)),this.plot_view.state.push("poly_select",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_press(e){this._finish_selection(e.modifiers)}_keyup(e){this.model.active&&("Enter"!=e.key?"Escape"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e):this._finish_selection(e.modifiers))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():(this._is_selecting=!1,super._clear_selection())}_clear_overlay(){this._is_selecting=!1,super._clear_overlay()}_do_select(e,s,t,i){const{greedy:o}=this.model,_={type:"poly",sx:e,sy:s,greedy:o};this._select(_,t,i)}}t.PolySelectToolView=r,r.__name__="PolySelectToolView";t.DEFAULT_POLY_OVERLAY=()=>new n.PolyAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!0,xs_units:"data",ys_units:"data",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class a extends l.RegionSelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.tool_icon=c.tool_icon_polygon_select,this.event_type="tap",this.default_order=11}}t.PolySelectTool=a,_=a,a.__name__="PolySelectTool",_.prototype.default_view=r,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),t.DEFAULT_POLY_OVERLAY]}))),_.register_alias("poly_select",(()=>new _))}, -function _(t,i,n,s,e){var o;s();const a=t(1),_=t(299),r=t(20),h=a.__importStar(t(123));function d(t,i,n){const s=new Map;for(const[,e]of t){const[t,o]=e.r_invert(i,n);s.set(e.source_range,{start:t,end:o})}return s}n.update_ranges=d;class l extends _.GestureToolView{cursor(t,i){const n=this.plot_view.axis_views.find((n=>n.bbox.contains(t,i)));if(null==n)return this.plot_view.frame.bbox.contains(t,i)?"move":super.cursor(t,i);switch(n.dimension){case 0:return"ew-resize";case 1:return"ns-resize"}}_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:i,sy:n}=t,s=this.plot_view.frame.bbox;if(!s.contains(i,n)){const t=s.h_range,e=s.v_range;(it.end)&&(this.v_axis_only=!0),(ne.end)&&(this.h_axis_only=!0)}this.model.document?.interactive_start(this.plot_view.model)}_pan(t){this._update(t.dx,t.dy),this.model.document?.interactive_start(this.plot_view.model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.state.push("pan",{range:this.pan_info}),this.plot_view.trigger_ranges_update_event()}_update(t,i){const n=this.plot_view.frame,s=t-this.last_dx,e=i-this.last_dy,o=n.bbox.h_range,a=o.start-s,_=o.end-s,r=n.bbox.v_range,h=r.start-e,l=r.end-e,c=this.model.dimensions;let p,m,u,v,w,x;"width"!=c&&"both"!=c||this.v_axis_only?(p=o.start,m=o.end,u=0):(p=a,m=_,u=-s),"height"!=c&&"both"!=c||this.h_axis_only?(v=r.start,w=r.end,x=0):(v=h,w=l,x=-e),this.last_dx=t,this.last_dy=i;const{x_scales:g,y_scales:y}=n,b=d(g,p,m),f=d(y,v,w);this.pan_info={xrs:b,yrs:f,sdx:u,sdy:x},this.plot_view.update_range(this.pan_info,{panning:!0})}}n.PanToolView=l,l.__name__="PanToolView";class c extends _.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case"both":return`.${h.tool_icon_pan}`;case"width":return`.${h.tool_icon_x_pan}`;case"height":return`.${h.tool_icon_y_pan}`}}get menu(){return[{icon:h.tool_icon_pan,tooltip:"Pan in both dimensions",active:()=>"both"==this.dimensions,handler:()=>{this.dimensions="both",this.active=!0}},{icon:h.tool_icon_x_pan,tooltip:"Pan in x-dimension",active:()=>"width"==this.dimensions,handler:()=>{this.dimensions="width",this.active=!0}},{icon:h.tool_icon_y_pan,tooltip:"Pan in y-dimension",active:()=>"height"==this.dimensions,handler:()=>{this.dimensions="height",this.active=!0}}]}}n.PanTool=c,o=c,c.__name__="PanTool",o.prototype.default_view=l,o.define((()=>({dimensions:[r.Dimensions,"both"]}))),o.register_alias("pan",(()=>new o({dimensions:"both"}))),o.register_alias("xpan",(()=>new o({dimensions:"width"}))),o.register_alias("ypan",(()=>new o({dimensions:"height"})))}, -function _(t,e,o,s,i){var n;s();const a=t(299),r=t(300),l=t(262),_=t(98),h=t(19),p=t(12),u=t(8),m=t(123),d=t(59),c=(0,t(21).Enum)("pan","tap","none");class g extends a.GestureToolView{get overlays(){return[...super.overlays,this.model.overlay]}initialize(){super.initialize(),this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals();const t=()=>this.model.update_overlay_from_ranges();this.on_transitive_change(this.model.properties.x_range,t),this.on_transitive_change(this.model.properties.y_range,t),this.model.overlay.pan.connect((([t,e])=>{if("pan"==t)this.model.update_ranges_from_overlay();else if("pan:end"==t){const t=[this.model.x_range,this.model.y_range].filter(u.non_null);this.parent.trigger_ranges_update_event(t)}}));const{active:e,x_interaction:o,y_interaction:s}=this.model.properties;this.on_change([e,o,s],(()=>{this.model.update_constraints()}))}_mappers(){const t=(t,e,o,s)=>{switch(t){case"canvas":return s;case"screen":return o;case"data":return e}},{overlay:e}=this.model,{frame:o,canvas:s}=this.plot_view,{x_scale:i,y_scale:n}=o,{x_view:a,y_view:r}=o.bbox,{x_screen:l,y_screen:_}=s.bbox;return{left:t(e.left_units,i,a,l),right:t(e.right_units,i,a,l),top:t(e.top_units,n,r,_),bottom:t(e.bottom_units,n,r,_)}}_invert_lrtb({left:t,right:e,top:o,bottom:s}){const i=this._mappers(),{x_range:n,y_range:a}=this.model,r=null!=n,l=null!=a;return{left:r?i.left.invert(t):this.model.nodes.left,right:r?i.right.invert(e):this.model.nodes.right,top:l?i.top.invert(o):this.model.nodes.top,bottom:l?i.bottom.invert(s):this.model.nodes.bottom}}_compute_limits(t){const e=(()=>{const{x_range:t,y_range:e}=this.model,o=null!=t,s=null!=e;return o&&s?"both":o?"width":s?"height":void(0,p.unreachable)()})();(0,p.assert)(null!=this._base_point);let o=this._base_point;if(this.model.overlay.symmetric){const[e,s]=o,[i,n]=t;o=[e-(i-e),s-(n-s)]}const{frame:s}=this.plot_view;return this.model._get_dim_limits(o,t,s,e)}_tap(t){(0,p.assert)("tap"==this.model.start_gesture);const{sx:e,sy:o}=t,{frame:s}=this.plot_view;s.bbox.contains(e,o)&&(null==this._base_point?this._base_point=[e,o]:(this._update_overlay(e,o),this._base_point=null))}_move(t){if(null!=this._base_point&&"tap"==this.model.start_gesture){const{sx:e,sy:o}=t;this._update_overlay(e,o)}}_pan_start(t){(0,p.assert)("pan"==this.model.start_gesture),(0,p.assert)(null==this._base_point);const{sx:e,sy:o}=t,{frame:s}=this.plot_view;s.bbox.contains(e,o)&&(this._base_point=[e,o])}_update_overlay(t,e){const[o,s]=this._compute_limits([t,e]),[[i,n],[a,r]]=[o,s];this.model.overlay.update(this._invert_lrtb({left:i,right:n,top:a,bottom:r})),this.model.update_ranges_from_overlay()}_pan(t){if(null==this._base_point)return;const{sx:e,sy:o}=t;this._update_overlay(e,o)}_pan_end(t){if(null==this._base_point)return;const{sx:e,sy:o}=t;this._update_overlay(e,o),this._base_point=null}get _is_selecting(){return null!=this._base_point}_stop(){this._base_point=null}_keyup(t){this.model.active&&"Escape"==t.key&&this._is_selecting&&this._stop()}}o.RangeToolView=g,g.__name__="RangeToolView";const v=()=>new l.BoxAnnotation({syncable:!1,level:"overlay",visible:!0,editable:!0,propagate_hover:!0,left:NaN,right:NaN,top:NaN,bottom:NaN,left_limit:d.Node.frame.left,right_limit:d.Node.frame.right,top_limit:d.Node.frame.top,bottom_limit:d.Node.frame.bottom,fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:.5,line_dash:[2,2]});class y extends a.GestureTool{constructor(t){super(t),this.nodes=d.Node.frame.freeze(),this.tool_name="Range Tool",this.tool_icon=m.tool_icon_range,this.default_order=40}initialize(){super.initialize(),this.update_constraints()}update_constraints(){this.overlay.editable=this.active;const t=null!=this.x_range&&this.x_interaction,e=null!=this.y_range&&this.y_interaction;t&&e?(this.overlay.movable="both",this.overlay.resizable="all"):t?(this.overlay.movable="x",this.overlay.resizable="x"):e?(this.overlay.movable="y",this.overlay.resizable="y"):(this.overlay.movable="none",this.overlay.resizable="none");const{x_range:o,y_range:s}=this;null!=o&&(this.overlay.min_width=o.min_interval??0,this.overlay.max_width=o.max_interval??1/0),null!=s&&(this.overlay.min_height=s.min_interval??0,this.overlay.max_height=s.max_interval??1/0)}update_ranges_from_overlay(){const{left:t,right:e,top:o,bottom:s}=this.overlay,{x_range:i,y_range:n}=this,a=new Set,r=new Map,l=new Map;if(null!=i&&this.x_interaction){(0,p.assert)((0,u.isNumber)(t)&&(0,u.isNumber)(e)),r.set(i,{start:t,end:e});for(const t of i.linked_plots)a.add(t)}if(null!=n&&this.y_interaction){(0,p.assert)((0,u.isNumber)(s)&&(0,u.isNumber)(o)),l.set(n,{start:s,end:o});for(const t of n.linked_plots)a.add(t)}for(const t of a)t.update_range({xrs:r,yrs:l},{panning:!0,scrolling:!0})}update_overlay_from_ranges(){const{x_range:t,y_range:e}=this,o=null!=t,s=null!=e;this.overlay.update({left:o?t.start:this.nodes.left,right:o?t.end:this.nodes.right,top:s?e.end:this.nodes.top,bottom:s?e.start:this.nodes.bottom}),o||s||(h.logger.warn("RangeTool not configured with any Ranges."),this.overlay.clear())}get event_type(){switch(this.start_gesture){case"pan":return"pan";case"tap":return["tap","move"];case"none":return[]}}supports_auto(){return!0}tool_button(){return new r.OnOffButton({tool:this})}}o.RangeTool=y,n=y,y.__name__="RangeTool",n.prototype.default_view=g,n.define((({Bool:t,Ref:e,Nullable:o})=>({x_range:[o(e(_.Range)),null],y_range:[o(e(_.Range)),null],x_interaction:[t,!0],y_interaction:[t,!0],overlay:[e(l.BoxAnnotation),v],start_gesture:[c,"none"]}))),n.override({active:!0})}, -function _(e,t,o,s,i){var l;s();const n=e(515),a=e(522),c=e(50),_=e(20),r=e(20),d=e(8),p=e(13),h=e(123);class u extends n.SelectToolView{_tap(e){const t="tap"==this.model.gesture;return t&&this._handle_tap(e),t}_doubletap(e){const t="doubletap"==this.model.gesture;return t&&this._handle_tap(e),t}_handle_tap(e){if(!(0,a.satisfies_modifiers)(this.model.modifiers,e.modifiers))return;const{sx:t,sy:o}=e,{frame:s}=this.plot_view;if(!s.bbox.contains(t,o))return;this._clear_other_overlays();const i={type:"point",sx:t,sy:o};"select"==this.model.behavior?this._select(i,!0,this._select_mode(e.modifiers)):this._inspect(i,e.modifiers)}_select(e,t,o){const s=this._computed_renderers_by_data_source();for(const[,i]of s){const s=i[0].get_selection_manager(),l=i.map((e=>this.plot_view.views.find_one(e))).filter(d.non_null);if(s.select(l,e,t,o)){const[t]=l;this._emit_callback(t,e,s.source)}}this._emit_selection_event(e),this.plot_view.state.push("tap",{selection:this.plot_view.get_selection()})}_inspect(e,t){for(const o of this.computed_renderers){const s=this.plot_view.views.find_one(o);if(null==s)continue;const i=o.get_selection_manager();i.inspect(s,e)&&this._emit_callback(s,e,i.source,t)}}_emit_callback(e,t,o,s){const{callback:i}=this.model;if(null!=i){const l=e.coordinates.x_scale.invert(t.sx),n=e.coordinates.y_scale.invert(t.sy),a={geometries:{...t,x:l,y:n},source:o,event:{modifiers:s}};(0,c.execute)(i,this.model,a)}}}o.TapToolView=u,u.__name__="TapToolView";class m extends n.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.tool_icon=h.tool_icon_tap_select,this.event_type="tap",this.default_order=10}get menu(){const e=super.menu;return null==e?null:(0,p.prepend)(e,{icon:h.tool_icon_toggle_mode,tooltip:"Toggle the current selection",active:()=>"toggle"==this.mode,handler:()=>{this.mode="toggle",this.active=!0}})}}o.TapTool=m,l=m,m.__name__="TapTool",l.prototype.default_view=u,l.define((({Any:e,Nullable:t})=>({mode:[_.SelectionMode,"toggle"],behavior:[r.TapBehavior,"select"],gesture:[r.TapGesture,"tap"],modifiers:[a.Modifiers,{}],callback:[t(e),null]}))),l.register_alias("click",(()=>new l({behavior:"inspect"}))),l.register_alias("tap",(()=>new l)),l.register_alias("doubletap",(()=>new l({gesture:"doubletap"})))}, -function _(t,l,i,s,n){s();const o=t(21);i.Modifiers=(0,o.PartialStruct)({shift:o.Bool,ctrl:o.Bool,alt:o.Bool}),i.satisfies_modifiers=function(t,l){const{alt:i,ctrl:s,shift:n}=t;return(null==n||n==l.shift)&&((null==s||s==l.ctrl)&&(null==i||i==l.alt))},i.print_modifiers=function(t){const{alt:l,ctrl:i,shift:s}=t,n=[];return!0===l&&n.push("alt"),!0===i&&n.push("ctrl"),!0===s&&n.push("shift"),n.join(" + ")}}, -function _(e,t,s,i,o){var n;i();const a=e(299),l=e(522),r=e(20),_=e(11),h=e(123),d=e(519);class p extends a.GestureToolView{_scroll(e){const{modifiers:t}=this.model;if(!(0,l.satisfies_modifiers)(t,e.modifiers))return this.plot_view.notify_about(`use ${(0,l.print_modifiers)(t)} + scroll to pan`),!1;const s=(0,_.clamp)(this.model.speed*e.delta,-.9,.9);return this._update_ranges(s),!0}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,i=t.bbox.v_range,[o,n]=[s.start,s.end],[a,l]=[i.start,i.end];let r,_,h,p;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,_=n,h=a-t*e,p=l-t*e;break}case"width":{const t=Math.abs(n-o);r=o-t*e,_=n-t*e,h=a,p=l;break}}const{x_scales:c,y_scales:u}=t,m={xrs:(0,d.update_ranges)(c,r,_),yrs:(0,d.update_ranges)(u,h,p),factor:e};this.plot_view.state.push("wheel_pan",{range:m}),this.plot_view.update_range(m,{scrolling:!0}),this.model.document?.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}s.WheelPanToolView=p,p.__name__="WheelPanToolView";class c extends a.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.tool_icon=h.tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}get tooltip(){return this._get_dim_tooltip(this.dimension)}supports_auto(){const{alt:e,ctrl:t,shift:s}=this.modifiers;return null!=e||null!=t||null!=s}}s.WheelPanTool=c,n=c,c.__name__="WheelPanTool",n.prototype.default_view=p,n.define((()=>({dimension:[r.Dimension,"width"],modifiers:[l.Modifiers,{}]}))),n.internal((({Float:e})=>({speed:[e,.001]}))),n.register_alias("xwheel_pan",(()=>new n({dimension:"width"}))),n.register_alias("ywheel_pan",(()=>new n({dimension:"height"})))}, -function _(e,t,o,s,n){var i;s();const l=e(299),r=e(522),a=e(218),c=e(105),_=e(420),d=e(500),h=e(20),m=e(19),u=e(123),f=e(21),p=(0,f.Enum)("none","cross","all"),w=(0,f.Or)((0,f.List)((0,f.Ref)(a.DataRenderer)),f.Auto);class v extends l.GestureToolView{_scroll(e){const{modifiers:t}=this.model;if(!(0,r.satisfies_modifiers)(t,e.modifiers))return this.plot_view.notify_about(`use ${(0,r.print_modifiers)(t)} + scroll to zoom`),!1;const{sx:o,sy:s,delta:n}=e;return this.zoom(o,s,n),!0}_pinch(e){const{sx:t,sy:o,scale:s}=e,n=s>=1?20*(s-1):-20/s;this.zoom(t,o,n)}zoom(e,t,o){const s=this.plot_view.axis_views.find((o=>o.bbox.contains(e,t)));if(null!=s&&!this.model.zoom_on_axis)return;const{frame:n}=this.plot_view;if(null==s&&!n.bbox.contains(e,t))return;const[i,l]=(()=>{const e=[...n.x_scales.values()],t=[...n.y_scales.values()];if(null==s)return[e,t];{const{zoom_together:o}=this.model;if("all"==o)return 0==s.dimension?[e,[]]:[[],t];{const{x_scale:e,y_scale:t}=s.coordinates;switch(o){case"cross":return[[e],[t]];case"none":return 0==s.dimension?[[e],[]]:[[],[t]]}}}})(),r=(()=>{const{renderers:o}=this.model,s=new Set("auto"!=o?o:this.plot_view.model.data_renderers);if(this.model.hit_test){const o=new Set,n=new Set;for(const i of s){if(null==i.coordinates){o.add(i);continue}const s=(()=>{switch(this.model.hit_test_mode){case"point":return{type:"point",sx:e,sy:t};case"hline":return{type:"span",sx:e,sy:t,direction:"v"};case"vline":return{type:"span",sx:e,sy:t,direction:"h"}}})(),l=this.plot_view.views.get_one(i),r=l.hit_test(s);null==r||r.is_empty()||n.add(l.model)}if(0!=n.size){const{hit_test_behavior:e}=this.model;if("only_hit"==e)for(const e of n)o.add(e);else for(const t of e.query_groups(n,s))for(const e of t)e instanceof a.DataRenderer&&s.has(e)&&o.add(e)}return[...o]}return s})(),_=new Set(i),h=new Set(l),u=new Set,f=new Set;for(const e of r){if(null==e.coordinates)continue;const t=this.plot_view.views.get_one(e),{x_scale:o,y_scale:s}=t.coordinates;o instanceof c.CompositeScale&&_.has(o.target_scale)&&u.add(o),s instanceof c.CompositeScale&&h.has(s.target_scale)&&f.add(s)}const[p,w]=(()=>"auto"==this.model.renderers?[new Set([..._,...u]),new Set([...h,...f])]:[u,f])(),v={x:!1,y:!1},y=(e,t)=>{const{level:o}=this.model;for(let s=0;s{const o=v.x?null:e,n=v.y?null:t;return null!=s?0==s.dimension?{x:o,y:null}:{x:null,y:n}:{x:o,y:n}})(),z=this.model.dimensions,b="width"==z||"both"==z,T="height"==z||"both"==z,{x_target:W,y_target:Z}=n,$=this.model.speed*o,C=(0,d.scale_range)(g,x,W,Z,$,b,T,S);this.plot_view.state.push("wheel_zoom",{range:C});const{maintain_focus:R}=this.model;this.plot_view.update_range(C,{scrolling:!0,maintain_focus:R}),this.model.document?.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}o.WheelZoomToolView=v,v.__name__="WheelZoomToolView";class y extends l.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.tool_icon=u.tool_icon_wheel_zoom,this.event_type="scroll",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}supports_auto(){const{alt:e,ctrl:t,shift:o}=this.modifiers;return null!=e||null!=t||null!=o}}o.WheelZoomTool=y,i=y,y.__name__="WheelZoomTool",i.prototype.default_view=v,i.define((({Bool:e,Float:t,NonNegative:o,Int:s,Ref:n,Or:i})=>({dimensions:[h.Dimensions,"both"],renderers:[w,"auto"],level:[o(s),0],hit_test:[e,!1],hit_test_mode:[(0,f.Enum)("point","hline","vline"),"point"],hit_test_behavior:[i(n(_.GroupBy),(0,f.Enum)("only_hit")),"only_hit"],maintain_focus:[e,!0],zoom_on_axis:[e,!0],zoom_together:[p,"all"],speed:[t,1/600],modifiers:[r.Modifiers,{}]}))),i.register_alias("wheel_zoom",(()=>new i({dimensions:"both"}))),i.register_alias("xwheel_zoom",(()=>new i({dimensions:"width"}))),i.register_alias("ywheel_zoom",(()=>new i({dimensions:"height"})))}, -function _(o,r,s,e,l){e(),l("CrosshairTool",o(526).CrosshairTool),l("CustomJSHover",o(527).CustomJSHover),l("HoverTool",o(528).HoverTool),l("InspectTool",o(301).InspectTool)}, -function _(s,i,e,t,n){var o;t();const a=s(301),r=s(289),l=s(20),_=s(8),h=s(123);class c extends a.InspectToolView{get overlays(){return[...super.overlays,...this._spans]}initialize(){super.initialize(),this._update_overlays()}connect_signals(){super.connect_signals();const{overlay:s,dimensions:i,line_color:e,line_width:t,line_alpha:n}=this.model.properties;this.on_change([s,i,e,t,n],(()=>{this._update_overlays()}))}_update_overlays(){const{overlay:s}=this.model;if("auto"==s){const{dimensions:i,line_color:e,line_alpha:t,line_width:n}=this.model;function o(s){return new r.Span({dimension:s,location_units:"canvas",level:"overlay",line_color:e,line_width:n,line_alpha:t})}switch(i){case"width":this._spans=[o("width")];break;case"height":this._spans=[o("height")];break;case"both":this._spans=[o("width"),o("height")]}}else(0,_.isArray)(s)?this._spans=[...s]:this._spans=[s]}_move(s){if(!this.model.active)return;const{sx:i,sy:e}=s;this.plot_view.frame.bbox.contains(i,e)?this._update_spans(i,e):this._update_spans(NaN,NaN)}_move_exit(s){this._update_spans(NaN,NaN)}_update_spans(s,i){const{frame:e}=this.plot_view;function t(s,i,t){const{dimension:n}=s;switch(s.location_units){case"canvas":return"width"==n?t:i;case"screen":{const{xview:s,yview:o}=e.bbox;return"width"==n?o.invert(t):s.invert(i)}case"data":{const{x_scale:s,y_scale:o}=e;return"width"==n?o.invert(t):s.invert(i)}}}for(const e of this._spans)e.location=t(e,s,i)}}e.CrosshairToolView=c,c.__name__="CrosshairToolView";class p extends a.InspectTool{constructor(s){super(s),this.tool_name="Crosshair",this.tool_icon=h.tool_icon_crosshair}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}e.CrosshairTool=p,o=p,p.__name__="CrosshairTool",o.prototype.default_view=c,o.define((({Alpha:s,Float:i,Color:e,Auto:t,Tuple:n,Ref:o,Or:a})=>({overlay:[a(t,o(r.Span),n(o(r.Span),o(r.Span))),"auto"],dimensions:[l.Dimensions,"both"],line_color:[e,"black"],line_width:[i,1],line_alpha:[s,1]}))),o.register_alias("crosshair",(()=>new o)),o.register_alias("xcrosshair",(()=>new o({dimensions:"width"}))),o.register_alias("ycrosshair",(()=>new o({dimensions:"height"})))}, +function _(o,t,r,n,l){n();const _=o(1);_.__exportStar(o(495),r),_.__exportStar(o(511),r),_.__exportStar(o(521),r),_.__exportStar(o(533),r),l("Tool",o(293).Tool),l("ToolProxy",o(294).ToolProxy),l("Toolbar",o(292).Toolbar),l("ToolButton",o(295).ToolButton),l("OnOffButton",o(301).OnOffButton),l("ClickButton",o(304).ClickButton)}, +function _(o,l,T,e,n){e(),n("ActionTool",o(303).ActionTool),n("CopyTool",o(496).CopyTool),n("CustomAction",o(497).CustomAction),n("FullscreenTool",o(498).FullscreenTool),n("HelpTool",o(305).HelpTool),n("ExamineTool",o(499).ExamineTool),n("ClickPanTool",o(500).ClickPanTool),n("RedoTool",o(503).RedoTool),n("ResetTool",o(504).ResetTool),n("SaveTool",o(505).SaveTool),n("UndoTool",o(506).UndoTool),n("ZoomInTool",o(507).ZoomInTool),n("ZoomOutTool",o(510).ZoomOutTool)}, +function _(o,t,e,i,a){var n;i();const c=o(303),p=o(123);class s extends c.ActionToolView{async copy(){const o=await this.parent.export().to_blob(),t=new ClipboardItem({[o.type]:o});await navigator.clipboard.write([t])}doit(){this.copy()}}e.CopyToolView=s,s.__name__="CopyToolView";class l extends c.ActionTool{constructor(o){super(o),this.tool_name="Copy",this.tool_icon=p.tool_icon_copy}}e.CopyTool=l,n=l,l.__name__="CopyTool",n.prototype.default_view=s,n.register_alias("copy",(()=>new n))}, +function _(o,t,n,e,i){var c;e();const l=o(1),s=o(303),_=o(50),u=l.__importStar(o(123));class a extends s.ActionToolView{doit(){const{callback:o}=this.model;null!=o&&(0,_.execute)(o,this.model)}}n.CustomActionView=a,a.__name__="CustomActionView";class m extends s.ActionTool{constructor(o){super(o),this.tool_name="Custom Action",this.tool_icon=u.tool_icon_unknown}}n.CustomAction=m,c=m,m.__name__="CustomAction",c.prototype.default_view=a,c.define((({Any:o,Nullable:t})=>({callback:[t(o),null]}))),c.override({description:"Perform a Custom Action"})}, +function _(e,l,t,n,o){var s;n();const c=e(1),r=e(303),u=c.__importStar(e(123)),i=void 0!==Element.prototype.webkitRequestFullscreen?(e,l)=>e.webkitRequestFullscreen(l):(e,l)=>e.requestFullscreen(l);class _ extends r.ActionToolView{async fullscreen(){null!=document.fullscreenElement?await document.exitFullscreen():await i(this.parent.el)}doit(){this.fullscreen()}}t.FullscreenToolView=_,_.__name__="FullscreenToolView";class a extends r.ActionTool{constructor(e){super(e),this.tool_name="Fullscreen",this.tool_icon=u.tool_icon_fullscreen}}t.FullscreenTool=a,s=a,a.__name__="FullscreenTool",s.prototype.default_view=_,s.register_alias("fullscreen",(()=>new s))}, +function _(e,i,t,o,n){var a;o();const l=e(1),s=e(303),_=l.__importStar(e(123)),r=e(320),c=e(491),d=e(408),m=e(56),h=e(63),w=l.__importDefault(e(493));class p extends s.ActionToolView{*children(){yield*super.children(),yield this._dialog}async lazy_initialize(){await super.lazy_initialize();const e=this.parent.model,i=new c.HTMLPrinter,t=new r.Dialog({stylesheets:[w.default],title:new d.HTML({html:(0,h.div)("Examine ",i.to_html(e))}),content:new c.Examiner({target:e}),visible:!1,close_action:"hide"});this._dialog=await(0,m.build_view)(t,{parent:this.parent})}doit(){this._dialog.open()}}t.ExamineToolView=p,p.__name__="ExamineToolView";class x extends s.ActionTool{constructor(e){super(e),this.tool_name="Examine",this.tool_icon=_.tool_icon_settings}}t.ExamineTool=x,a=x,x.__name__="ExamineTool",a.prototype.default_view=p,a.register_alias("examine",(()=>new a))}, +function _(e,t,n,i,o){var a;i();const r=e(1),s=e(501),c=e(21),_=e(20),l=r.__importStar(e(123)),p=e(502);class d extends s.PlotActionToolView{doit(){const e=(()=>{switch(this.model.direction){case"left":case"west":return{x:-1,y:0};case"right":case"east":return{x:1,y:0};case"up":case"north":return{x:0,y:-1};case"down":case"south":return{x:0,y:1}}})(),{frame:t}=this.plot_view,{factor:n}=this.model,i=e.x*n*t.bbox.width,o=e.y*n*t.bbox.height,a=t.bbox.translate(i,o),r=(0,p.update_ranges)(t.x_scales,a.x0,a.x1),s=(0,p.update_ranges)(t.y_scales,a.y0,a.y1);this.plot_view.update_range({xrs:r,yrs:s},{panning:!0})}}n.ClickPanToolView=d,d.__name__="ClickPanToolView";class u extends s.PlotActionTool{constructor(e){super(e),this.tool_name="Click Pan"}get tooltip(){return`Pan ${this.direction}`}get computed_icon(){const e=super.computed_icon;if(null!=e)return e;switch(this.direction){case"left":case"west":return`.${l.tool_icon_pan_left}`;case"right":case"east":return`.${l.tool_icon_pan_right}`;case"up":case"north":return`.${l.tool_icon_pan_up}`;case"down":case"south":return`.${l.tool_icon_pan_down}`}}}n.ClickPanTool=u,a=u,u.__name__="ClickPanTool",a.prototype.default_view=d,a.define((()=>({direction:[_.PanDirection],factor:[c.Float,.1]}))),a.register_alias("pan_left",(()=>new a({direction:"left"}))),a.register_alias("pan_right",(()=>new a({direction:"right"}))),a.register_alias("pan_up",(()=>new a({direction:"up"}))),a.register_alias("pan_down",(()=>new a({direction:"down"}))),a.register_alias("pan_west",(()=>new a({direction:"west"}))),a.register_alias("pan_east",(()=>new a({direction:"east"}))),a.register_alias("pan_north",(()=>new a({direction:"north"}))),a.register_alias("pan_south",(()=>new a({direction:"south"})))}, +function _(o,t,n,e,l){e();const c=o(303);class i extends c.ActionToolView{get plot_view(){return this.parent}}n.PlotActionToolView=i,i.__name__="PlotActionToolView";class s extends c.ActionTool{constructor(o){super(o)}}n.PlotActionTool=s,s.__name__="PlotActionTool"}, +function _(t,i,n,s,e){var o;s(),n.update_ranges=d;const a=t(1),_=t(300),r=t(20),h=a.__importStar(t(123));function d(t,i,n){const s=new Map;for(const[,e]of t){const[t,o]=e.r_invert(i,n);s.set(e.source_range,{start:t,end:o})}return s}class l extends _.GestureToolView{cursor(t,i){const n=this.plot_view.axis_views.find((n=>n.bbox.contains(t,i)));if(null==n)return this.plot_view.frame.bbox.contains(t,i)?"move":super.cursor(t,i);switch(n.dimension){case 0:return"ew-resize";case 1:return"ns-resize"}}_pan_start(t){this.last_dx=0,this.last_dy=0;const{sx:i,sy:n}=t,s=this.plot_view.frame.bbox;if(!s.contains(i,n)){const t=s.h_range,e=s.v_range;(it.end)&&(this.v_axis_only=!0),(ne.end)&&(this.h_axis_only=!0)}this.model.document?.interactive_start(this.plot_view.model)}_pan(t){this._update(t.dx,t.dy),this.model.document?.interactive_start(this.plot_view.model)}_pan_end(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.state.push("pan",{range:this.pan_info}),this.plot_view.trigger_ranges_update_event()}_update(t,i){const n=this.plot_view.frame,s=t-this.last_dx,e=i-this.last_dy,o=n.bbox.h_range,a=o.start-s,_=o.end-s,r=n.bbox.v_range,h=r.start-e,l=r.end-e,c=this.model.dimensions;let p,m,u,v,w,x;"width"!=c&&"both"!=c||this.v_axis_only?(p=o.start,m=o.end,u=0):(p=a,m=_,u=-s),"height"!=c&&"both"!=c||this.h_axis_only?(v=r.start,w=r.end,x=0):(v=h,w=l,x=-e),this.last_dx=t,this.last_dy=i;const{x_scales:g,y_scales:y}=n,b=d(g,p,m),f=d(y,v,w);this.pan_info={xrs:b,yrs:f,sdx:u,sdy:x},this.plot_view.update_range(this.pan_info,{panning:!0})}}n.PanToolView=l,l.__name__="PanToolView";class c extends _.GestureTool{constructor(t){super(t),this.tool_name="Pan",this.event_type="pan",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case"both":return`.${h.tool_icon_pan}`;case"width":return`.${h.tool_icon_x_pan}`;case"height":return`.${h.tool_icon_y_pan}`}}get menu(){return[{icon:h.tool_icon_pan,tooltip:"Pan in both dimensions",active:()=>"both"==this.dimensions,handler:()=>{this.dimensions="both",this.active=!0}},{icon:h.tool_icon_x_pan,tooltip:"Pan in x-dimension",active:()=>"width"==this.dimensions,handler:()=>{this.dimensions="width",this.active=!0}},{icon:h.tool_icon_y_pan,tooltip:"Pan in y-dimension",active:()=>"height"==this.dimensions,handler:()=>{this.dimensions="height",this.active=!0}}]}}n.PanTool=c,o=c,c.__name__="PanTool",o.prototype.default_view=l,o.define((()=>({dimensions:[r.Dimensions,"both"]}))),o.register_alias("pan",(()=>new o({dimensions:"both"}))),o.register_alias("xpan",(()=>new o({dimensions:"width"}))),o.register_alias("ypan",(()=>new o({dimensions:"height"})))}, +function _(o,e,t,s,i){var n;s();const l=o(501),_=o(123);class a extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_redo))}doit(){const o=this.plot_view.state.redo();null!=o?.range&&this.plot_view.trigger_ranges_update_event()}}t.RedoToolView=a,a.__name__="RedoToolView";class d extends l.PlotActionTool{constructor(o){super(o),this.tool_name="Redo",this.tool_icon=_.tool_icon_redo}}t.RedoTool=d,n=d,d.__name__="RedoTool",n.prototype.default_view=a,n.override({disabled:!0}),n.register_alias("redo",(()=>new n))}, +function _(e,o,t,s,i){var l;s();const _=e(501),n=e(123);class c extends _.PlotActionToolView{doit(){this.plot_view.reset()}}t.ResetToolView=c,c.__name__="ResetToolView";class r extends _.PlotActionTool{constructor(e){super(e),this.tool_name="Reset",this.tool_icon=n.tool_icon_reset}}t.ResetTool=r,l=r,r.__name__="ResetTool",l.prototype.default_view=c,l.register_alias("reset",(()=>new l))}, +function _(e,o,t,a,n){var i;a();const s=e(1),c=e(303),l=s.__importStar(e(123));class r extends c.ActionToolView{async _export(){return this.parent.export().to_blob()}async copy(){const e=await this._export(),o=new ClipboardItem({[e.type]:e});await navigator.clipboard.write([o])}async save(e){const o=await this._export(),t=document.createElement("a");t.href=URL.createObjectURL(o),t.download=e,t.target="_blank",t.dispatchEvent(new MouseEvent("click"))}async open(){const e=await this._export(),o=URL.createObjectURL(e);open(o)}doit(e="save"){switch(e){case"save":{const e=this.model.filename??prompt("Enter filename","bokeh_plot");null!=e&&this.save(e);break}case"copy":this.copy();break;case"open":this.open()}}}t.SaveToolView=r,r.__name__="SaveToolView";class p extends c.ActionTool{constructor(e){super(e),this.tool_name="Save",this.tool_icon=l.tool_icon_save}get menu(){return[{icon:l.tool_icon_copy,tooltip:"Copy image to clipboard",if:()=>"undefined"!=typeof ClipboardItem,handler:()=>{this.do.emit("copy")}},{icon:l.tool_icon_open,tooltip:"Open image in a new tab",handler:()=>{this.do.emit("open")}}]}}t.SaveTool=p,i=p,p.__name__="SaveTool",i.prototype.default_view=r,i.define((({Str:e,Nullable:o})=>({filename:[o(e),null]}))),i.register_alias("save",(()=>new i))}, +function _(o,t,e,n,s){var i;n();const l=o(501),_=o(123);class a extends l.PlotActionToolView{connect_signals(){super.connect_signals(),this.connect(this.plot_view.state.changed,(()=>this.model.disabled=!this.plot_view.state.can_undo))}doit(){const o=this.plot_view.state.undo();null!=o?.range&&this.plot_view.trigger_ranges_update_event()}}e.UndoToolView=a,a.__name__="UndoToolView";class d extends l.PlotActionTool{constructor(o){super(o),this.tool_name="Undo",this.tool_icon=_.tool_icon_undo}}e.UndoTool=d,i=d,d.__name__="UndoTool",i.prototype.default_view=a,i.override({disabled:!0}),i.register_alias("undo",(()=>new i))}, +function _(o,e,n,i,s){var t;i();const _=o(508),a=o(123);class m extends _.ZoomBaseToolView{get factor(){return this.model.factor}}n.ZoomInToolView=m,m.__name__="ZoomInToolView";class l extends _.ZoomBaseTool{constructor(o){super(o),this.maintain_focus=!0,this.tool_name="Zoom In",this.tool_icon=a.tool_icon_zoom_in}}n.ZoomInTool=l,t=l,l.__name__="ZoomInTool",t.prototype.default_view=m,t.register_alias("zoom_in",(()=>new t({dimensions:"both"}))),t.register_alias("xzoom_in",(()=>new t({dimensions:"width"}))),t.register_alias("yzoom_in",(()=>new t({dimensions:"height"})))}, +function _(e,o,t,s,n){var i;s();const a=e(501),l=e(219),r=e(105),c=e(20),_=e(509),d=e(19);class m extends a.PlotActionToolView{doit(){const{dimensions:e}=this.model,o="width"==e||"both"==e,t="height"==e||"both"==e,{frame:s}=this.plot_view,{x_target:n,y_target:i}=s,a=new Map(s.x_scales),l=new Map(s.y_scales),{renderers:c}=this.model;if("auto"!=c){const e=new Set,o=new Set;for(const t of c)null==t.coordinates&&(e.add(t.x_range_name),o.add(t.y_range_name));for(const o of a.keys())e.has(o)||a.delete(o);for(const e of l.keys())o.has(e)||l.delete(e)}const m=[...a.values()],h=[...l.values()],u="auto"!=c?c:this.plot_view.model.data_renderers;for(const e of u){if(null==e.coordinates)continue;const o=this.plot_view.views.get_one(e),t=(e,o)=>{const{level:t}=this.model;for(let s=0;s({factor:[e,.1],dimensions:[c.Dimensions,"both"],renderers:[o(t(s(l.DataRenderer)),n),"auto"],level:[i(a),0]})))}, +function _(n,t,r,e,o){e(),r.scale_interval=c,r.get_info=function(n,[t,r]){const e=new Map;for(const o of n){const[n,s]=o.r_invert(t,r);e.set(o.source_range,{start:n,end:s})}return e},r.rescale=a,r.scale_range=function(n,t,r,e,o,s=!0,c=!0,f){const u=a(n,s?o:0,f?.x),i=a(t,c?o:0,f?.y);return{xrs:u,yrs:i,factor:o}};const s=n(11);function c(n,t,r){const[e,o]=(0,s.minmax)(n.start,n.end),c=r??(o+e)/2;return[e-(e-c)*t,o-(o-c)*t]}function a(n,t,r){const e=new Map;for(const o of n){const[n,s]=c(o.target_range,t,r),[a,f]=o.r_invert(n,s);e.set(o.source_range,{start:a,end:f})}return e}}, +function _(o,t,e,s,i){var n;s();const _=o(508),a=o(123);class m extends _.ZoomBaseToolView{get factor(){const{factor:o}=this.model;return-o/(1-o)}}e.ZoomOutToolView=m,m.__name__="ZoomOutToolView";class l extends _.ZoomBaseTool{constructor(o){super(o),this.tool_name="Zoom Out",this.tool_icon=a.tool_icon_zoom_out}}e.ZoomOutTool=l,n=l,l.__name__="ZoomOutTool",n.prototype.default_view=m,n.define((({Bool:o})=>({maintain_focus:[o,!0]}))),n.register_alias("zoom_out",(()=>new n({dimensions:"both"}))),n.register_alias("xzoom_out",(()=>new n({dimensions:"width"}))),n.register_alias("yzoom_out",(()=>new n({dimensions:"height"})))}, +function _(o,l,T,i,t){i(),t("EditTool",o(512).EditTool),t("BoxEditTool",o(513).BoxEditTool),t("FreehandDrawTool",o(514).FreehandDrawTool),t("LineEditTool",o(515).LineEditTool),t("PointDrawTool",o(517).PointDrawTool),t("PolyDrawTool",o(518).PolyDrawTool),t("PolyTool",o(519).PolyTool),t("PolyEditTool",o(520).PolyEditTool)}, +function _(e,t,s,o,n){var i;o();const c=e(28),r=e(10),l=e(9),a=e(8),_=e(12),d=e(300);class u extends d.GestureToolView{constructor(){super(...arguments),this._mouse_in_frame=!0}_select_mode(e){const{shift:t,ctrl:s}=e.modifiers;return t||s?t&&!s?"append":!t&&s?"intersect":t&&s?"subtract":void(0,_.unreachable)():"replace"}_move_enter(e){this._mouse_in_frame=!0}_move_exit(e){this._mouse_in_frame=!1}_map_drag(e,t,s){if(!this.plot_view.frame.bbox.contains(e,t))return null;const o=this.plot_view.views.find_one(s);if(null==o)return null;return[o.coordinates.x_scale.invert(e),o.coordinates.y_scale.invert(t)]}_delete_selected(e){const t=e.data_source,s=t.selected.indices;s.sort();for(const e of t.columns()){const o=t.get_array(e);for(let e=0;en.has(i)?n.get(i):o.has(i)?o.get(i):s.has(i)?s.get(i):this.model.empty_value)();e.get_array(i).push(t)}}_select_event(e,t,s){const o=this.plot_view.frame,{sx:n,sy:i}=e;if(!o.bbox.contains(n,i))return[];const c={type:"point",sx:n,sy:i},r=[];for(const e of s){const s=e.get_selection_manager(),o=e.data_source,n=this.plot_view.views.find_one(e);if(null!=n){s.select([n],c,!0,t)&&r.push(e),o.properties.selected.change.emit()}}return r}}s.EditToolView=u,u.__name__="EditToolView";class f extends d.GestureTool{constructor(e){super(e)}}s.EditTool=f,i=f,f.__name__="EditTool",i.define((({Unknown:e,Dict:t})=>({default_overrides:[t(e),{}],empty_value:[e,0]})))}, +function _(e,i,s,t,l){var n;t();const o=e(20),d=e(28),r=e(221),_=e(383),f=e(358),a=e(380),c=e(364),h=e(392),p=e(367),u=e(394),m=e(218),F=e(512),b=e(123),x=e(12),y=e(9);class g extends F.EditToolView{constructor(){super(...arguments),this._recent_renderers=[]}_tap(e){null==this._draw_basepoint&&null==this._basepoint&&(this._recent_renderers=this._select_event(e,this._select_mode(e),this.model.renderers))}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const i of this.model.renderers)if("Backspace"==e.key)this._delete_selected(i);else if("Escape"==e.key){i.data_source.selection_manager.clear()}}_set_extent([e,i],[s,t],l,n=!1){const o=this._recent_renderers[0]??this.model.renderers[0],r=this.plot_view.views.find_one(o);if(null==r)return;const{glyph:m}=o,F=o.data_source,b=(0,y.dict)(F.data),[g,w]=r.coordinates.x_scale.r_invert(e,i),[v,B]=r.coordinates.y_scale.r_invert(s,t),E=(()=>{if(m instanceof _.Rect){const{x:e,y:i,width:s,height:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:(g+w)/2,[i.field]:(v+B)/2,[s.field]:w-g,[t.field]:B-v}}else if(m instanceof f.Block){const{x:e,y:i,width:s,height:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:g,[i.field]:v,[s.field]:w-g,[t.field]:B-v}}else if(m instanceof a.Quad){const{right:e,bottom:i,left:s,top:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:w,[i.field]:v,[s.field]:g,[t.field]:B}}else if(m instanceof c.HBar){const{left:e,y:i,height:s,right:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:g,[i.field]:(v+B)/2,[s.field]:B-v,[t.field]:w}}else if(m instanceof h.VBar){const{x:e,bottom:i,width:s,top:t}=m;if((0,d.isField)(e)&&(0,d.isField)(i)&&(0,d.isField)(s)&&(0,d.isField)(t))return{[e.field]:(g+w)/2,[i.field]:v,[s.field]:w-g,[t.field]:B}}else if(m instanceof p.HStrip){const{y0:e,y1:i}=m;if((0,d.isField)(e)&&(0,d.isField)(i))return{[e.field]:v,[i.field]:B}}else if(m instanceof u.VStrip){const{x0:e,x1:i}=m;if((0,d.isField)(e)&&(0,d.isField)(i))return{[e.field]:g,[i.field]:w}}else(0,x.unreachable)(`'${m.type}' is not supported"`);return null})();if(null!=E){if(l){this._pop_glyphs(F,this.model.num_objects);for(const[e,i]of(0,y.entries)(E))F.get_array(e).push(i);this._pad_empty_columns(F,(0,y.keys)(E))}else{const e=F.get_length();if(null==e)return;const i=e-1;for(const[e,s]of(0,y.entries)(E))b.get(e)[i]=s}this._emit_cds_changes(F,!0,!1,n)}}_update_box(e,i=!1,s=!1){if(null==this._draw_basepoint)return;const t=[e.sx,e.sy],l=this.plot_view.frame,n=this.model.dimensions,[o,d]=this.model._get_dim_limits(this._draw_basepoint,t,l,n);this._set_extent(o,d,i,s)}_press(e){this.model.active&&(null!=this._draw_basepoint?(this._update_box(e,!1,!0),this._draw_basepoint=null):(this._draw_basepoint=[e.sx,e.sy],this._select_event(e,"append",this.model.renderers),this._update_box(e,!0,!1)))}_move(e){this._update_box(e,!1,!1)}_pan_start(e){if(e.modifiers.shift){if(null!=this._draw_basepoint)return;this._draw_basepoint=[e.sx,e.sy],this._update_box(e,!0,!1)}else{if(null!=this._basepoint)return;this._recent_renderers=this._select_event(e,"append",this.model.renderers),this._basepoint=[e.sx,e.sy]}}_pan(e,i=!1,s=!1){if(e.modifiers.shift){if(null==this._draw_basepoint)return;this._update_box(e,i,s)}else{if(null==this._basepoint)return;this._drag_points(e,this.model.renderers)}}_drag_points(e,i,s="both"){if(null==this._basepoint)return;const[t,l]=this._basepoint;for(const n of i){const i=this._map_drag(t,l,n),o=this._map_drag(e.sx,e.sy,n);if(null==o||null==i)continue;const[_,m]=o,[F,b]=i,g="width"==s||"both"==s?_-F:0,w="height"==s||"both"==s?m-b:0,{glyph:v}=n,B=n.data_source,E=(0,y.dict)(B.data),k={};if(v instanceof r.XYGlyph){const{x:e,y:i}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(k[i.field]=w)}else if(v instanceof f.Block){const{x:e,y:i}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(k[i.field]=w)}else if(v instanceof a.Quad){const{right:e,bottom:i,left:s,top:t}=v;(0,d.isField)(s)&&(0,d.isField)(e)&&(k[s.field]=g,k[e.field]=g),(0,d.isField)(t)&&(0,d.isField)(i)&&(k[t.field]=w,k[i.field]=w)}else if(v instanceof c.HBar){const{left:e,right:i,y:s}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=g,k[i.field]=g),(0,d.isField)(s)&&(k[s.field]=w)}else if(v instanceof h.VBar){const{x:e,top:i,bottom:s}=v;(0,d.isField)(e)&&(k[e.field]=g),(0,d.isField)(i)&&(0,d.isField)(s)&&(k[i.field]=w,k[s.field]=w)}else if(v instanceof p.HStrip){const{y0:e,y1:i}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=w,k[i.field]=w)}else if(v instanceof u.VStrip){const{x0:e,x1:i}=v;(0,d.isField)(e)&&(0,d.isField)(i)&&(k[e.field]=g,k[i.field]=g)}else(0,x.unreachable)(`'${v.type}' is not supported"`);for(const e of B.selected.indices)for(const[i,s]of(0,y.entries)(k)){(E.get(i)??[])[e]+=s}B.change.emit()}this._basepoint=[e.sx,e.sy]}_pan_end(e){if(this._pan(e,!1,!0),e.modifiers.shift)this._draw_basepoint=null;else{this._basepoint=null;for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0)}}}s.BoxEditToolView=g,g.__name__="BoxEditToolView";class w extends F.EditTool{constructor(e){super(e),this.tool_name="Box Edit Tool",this.tool_icon=b.tool_icon_box_edit,this.event_type=["tap","press","pan","move"],this.default_order=1}}s.BoxEditTool=w,n=w,w.__name__="BoxEditTool",n.prototype.default_view=g,n.define((({Int:e,List:i,Ref:s})=>({dimensions:[o.Dimensions,"both"],num_objects:[e,0],renderers:[i(s(m.GlyphRenderer)),[]]})))}, +function _(e,t,s,r,a){var n;r();const _=e(28),i=e(9),l=e(8),d=e(512),o=e(218),h=e(123);class c extends d.EditToolView{_draw(e,t,s=!1){if(!this.model.active)return;const r=this.model.renderers[0],a=this._map_drag(e.sx,e.sy,r);if(null==a)return;const[n,d]=a,{glyph:o,data_source:h}=r,c=(0,_.isField)(o.xs)?o.xs.field:null,p=(0,_.isField)(o.ys)?o.ys.field:null,u=(0,i.dict)(h.data);if("new"==t)this._pop_glyphs(h,this.model.num_objects),null!=c&&h.get_array(c).push([n]),null!=p&&h.get_array(p).push([d]),this._pad_empty_columns(h,[c,p]);else if("add"==t){if(null!=c){const e=u.get(c)??[],t=e.length-1;let s=h.get_array(c)[t];(0,l.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(n)}if(null!=p){const e=u.get(p)??[],t=e.length-1;let s=h.get_array(p)[t];(0,l.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(d)}}this._emit_cds_changes(h,!0,!0,s)}_pan_start(e){this._draw(e,"new")}_pan(e){this._draw(e,"add")}_pan_end(e){this._draw(e,"add",!0)}_tap(e){this._select_event(e,this._select_mode(e),this.model.renderers)}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)"Escape"==e.key?t.data_source.selection_manager.clear():"Backspace"==e.key&&this._delete_selected(t)}}s.FreehandDrawToolView=c,c.__name__="FreehandDrawToolView";class p extends d.EditTool{constructor(e){super(e),this.tool_name="Freehand Draw Tool",this.tool_icon=h.tool_icon_freehand_draw,this.event_type=["pan","tap"],this.default_order=3}}s.FreehandDrawTool=p,n=p,p.__name__="FreehandDrawTool",n.prototype.default_view=c,n.define((({Int:e,List:t,Ref:s})=>({num_objects:[e,0],renderers:[t(s(o.GlyphRenderer)),[]]}))),n.register_alias("freehand_draw",(()=>new n))}, +function _(e,t,s,i,n){var r;i();const _=e(28),d=e(20),l=e(9),o=e(218),c=e(516),h=e(123);class a extends c.LineToolView{constructor(){super(...arguments),this._drawing=!1}_press(e){if(!this.model.active)return;const t=this.model.renderers;for(const s of t){1==this._select_event(e,"replace",[s]).length&&(this._selected_renderer=s)}this._show_intersections(),this._update_line_cds()}_show_intersections(){if(!this.model.active)return;if(null==this._selected_renderer)return;if(0==this.model.renderers.length)return this._set_intersection([],[]),this._selected_renderer=null,void(this._drawing=!1);const{glyph:e}=this._selected_renderer;if(!(0,_.isField)(e.x)||!(0,_.isField)(e.y))return;const[t,s]=[e.x.field,e.y.field],i=this._selected_renderer.data_source,n=i.get_array(t),r=i.get_array(s);this._set_intersection(n,r)}_tap(e){const t=this.model.intersection_renderer;if(null==this._map_drag(e.sx,e.sy,t))return;if(this._drawing&&null!=this._selected_renderer){const s=this._select_mode(e);if(0==this._select_event(e,s,[t]).length)return}const s=this._select_mode(e);this._select_event(e,s,[t]),this._select_event(e,s,this.model.renderers)}_update_line_cds(){if(null==this._selected_renderer)return;const e=this.model.intersection_renderer.glyph,t=this.model.intersection_renderer.data_source,s=(0,l.dict)(t.data),i=(0,_.isField)(e.x)?e.x.field:null,n=(0,_.isField)(e.y)?e.y.field:null;if(null!=i&&null!=n){const e=s.get(i),t=s.get(n);null!=e&&(0,l.dict)(this._selected_renderer.data_source.data).set(i,e),null!=t&&(0,l.dict)(this._selected_renderer.data_source.data).set(n,t)}this._emit_cds_changes(this._selected_renderer.data_source,!0,!0,!1)}_pan_start(e){this._select_event(e,"append",[this.model.intersection_renderer]),this._basepoint=[e.sx,e.sy]}_pan(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer],this.model.dimensions),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&(this._drag_points(e,[this.model.intersection_renderer]),this._emit_cds_changes(this.model.intersection_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}activate(){this._drawing=!0}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._drawing=!1),this._hide_intersections())}}s.LineEditToolView=a,a.__name__="LineEditToolView";class u extends c.LineTool{constructor(e){super(e),this.tool_name="Line Edit Tool",this.tool_icon=h.tool_icon_line_edit,this.event_type=["tap","press","pan","move"],this.default_order=4}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}s.LineEditTool=u,r=u,u.__name__="LineEditTool",r.prototype.default_view=a,r.define((({List:e,Ref:t})=>({dimensions:[d.Dimensions,"both"],renderers:[e(t(o.GlyphRenderer)),[]]})))}, +function _(e,i,n,t,s){var l;t();const o=e(28),r=e(9),_=e(8),d=e(218),c=e(512);class a extends c.EditToolView{_set_intersection(e,i){const n=this.model.intersection_renderer.glyph,t=this.model.intersection_renderer.data_source,s=(0,r.dict)(t.data),l=(0,o.isField)(n.x)?n.x.field:null,d=(0,o.isField)(n.y)?n.y.field:null;null!=l&&((0,_.isArray)(e)?s.set(l,e):n.x={value:e}),null!=d&&((0,_.isArray)(i)?s.set(d,i):n.y={value:i}),this._emit_cds_changes(t,!0,!0,!1)}_hide_intersections(){this._set_intersection([],[])}}n.LineToolView=a,a.__name__="LineToolView";class u extends c.EditTool{constructor(e){super(e)}}n.LineTool=u,l=u,u.__name__="LineTool",l.define((({Ref:e})=>({intersection_renderer:[e(d.GlyphRenderer)]})))}, +function _(e,t,s,o,i){var n;o();const _=e(28),a=e(218),r=e(512),l=e(123);class d extends r.EditToolView{_tap(e){if(0!=this._select_event(e,this._select_mode(e),this.model.renderers).length||!this.model.add)return;const t=this.model.renderers[0],s=this._map_drag(e.sx,e.sy,t);if(null==s)return;const{glyph:o,data_source:i}=t,n=(0,_.isField)(o.x)?o.x.field:null,a=(0,_.isField)(o.y)?o.y.field:null,[r,l]=s;this._pop_glyphs(i,this.model.num_objects),null!=n&&i.get_array(n).push(r),null!=a&&i.get_array(a).push(l),this._pad_empty_columns(i,[n,a]);const{data:d}=i;i.setv({data:d},{check_eq:!1})}_keyup(e){if(this.model.active&&this._mouse_in_frame)for(const t of this.model.renderers)"Backspace"==e.key?this._delete_selected(t):"Escape"==e.key&&t.data_source.selection_manager.clear()}_pan_start(e){this.model.drag&&(this._select_event(e,"append",this.model.renderers),this._basepoint=[e.sx,e.sy])}_pan(e){this.model.drag&&null!=this._basepoint&&this._drag_points(e,this.model.renderers)}_pan_end(e){if(this.model.drag){this._pan(e);for(const e of this.model.renderers)this._emit_cds_changes(e.data_source,!1,!0,!0);this._basepoint=null}}}s.PointDrawToolView=d,d.__name__="PointDrawToolView";class h extends r.EditTool{constructor(e){super(e),this.tool_name="Point Draw Tool",this.tool_icon=l.tool_icon_point_draw,this.event_type=["tap","pan","move"],this.default_order=2}}s.PointDrawTool=h,n=h,h.__name__="PointDrawTool",n.prototype.default_view=d,n.define((({Bool:e,Int:t,List:s,Ref:o})=>({add:[e,!0],drag:[e,!0],num_objects:[t,0],renderers:[s(o(a.GlyphRenderer)),[]]})))}, +function _(e,t,s,i,l){var n;i();const r=e(28),o=e(9),a=e(8),d=e(218),_=e(519),h=e(123);class c extends _.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._initialized=!1}_tap(e){this._drawing?this._draw(e,"add",!0):this._select_event(e,this._select_mode(e),this.model.renderers)}_draw(e,t,s=!1){const i=this.model.renderers[0],l=this._map_drag(e.sx,e.sy,i);if(this._initialized||this.activate(),null==l)return;const[n,d]=this._snap_to_vertex(e,...l),_=i.data_source,h=(0,o.dict)(_.data),c=i.glyph,g=(0,r.isField)(c.xs)?c.xs.field:null,u=(0,r.isField)(c.ys)?c.ys.field:null;if("new"==t)this._pop_glyphs(_,this.model.num_objects),null!=g&&_.get_array(g).push([n,n]),null!=u&&_.get_array(u).push([d,d]),this._pad_empty_columns(_,[g,u]);else if("edit"==t){if(null!=g){const e=h.get(g)??[],t=e[e.length-1];t[t.length-1]=n}if(null!=u){const e=h.get(u)??[],t=e[e.length-1];t[t.length-1]=d}}else if("add"==t){if(null!=g){const e=h.get(g)??[],t=e.length-1;let s=_.get_array(g)[t];const i=s[s.length-1];s[s.length-1]=n,(0,a.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(i)}if(null!=u){const e=h.get(u)??[],t=e.length-1;let s=_.get_array(u)[t];const i=s[s.length-1];s[s.length-1]=d,(0,a.isArray)(s)||(s=Array.from(s),e[t]=s),s.push(i)}}this._emit_cds_changes(_,!0,!1,s)}_show_vertices(){if(!this.model.active)return;const e=[],t=[];for(let s=0;sthis._show_vertices()))}this._initialized=!0}}deactivate(){this._drawing&&(this._remove(),this._drawing=!1),null!=this.model.vertex_renderer&&this._hide_vertices()}}s.PolyDrawToolView=c,c.__name__="PolyDrawToolView";class g extends _.PolyTool{constructor(e){super(e),this.tool_name="Polygon Draw Tool",this.tool_icon=h.tool_icon_poly_draw,this.event_type=["pan","tap","press","move"],this.default_order=3}}s.PolyDrawTool=g,n=g,g.__name__="PolyDrawTool",n.prototype.default_view=c,n.define((({Bool:e,Int:t,List:s,Ref:i})=>({drag:[e,!0],num_objects:[t,0],renderers:[s(i(d.GlyphRenderer)),[]]})))}, +function _(e,l,t,r,s){var i;r();const n=e(28),d=e(9),o=e(8),_=e(12),a=e(218),c=e(512);class u extends c.EditToolView{_set_vertices(e,l){const{vertex_renderer:t}=this.model;(0,_.assert)(null!=t);const r=t.glyph,s=t.data_source,i=(0,n.isField)(r.x)?r.x.field:null,a=(0,n.isField)(r.y)?r.y.field:null,c=(0,d.dict)(s.data);null!=i&&((0,o.isArray)(e)?c.set(i,e):r.x={value:e}),null!=a&&((0,o.isArray)(l)?c.set(a,l):r.y={value:l}),this._emit_cds_changes(s,!0,!0,!1)}_hide_vertices(){this._set_vertices([],[])}_snap_to_vertex(e,l,t){if(null!=this.model.vertex_renderer){const r=this._select_event(e,"replace",[this.model.vertex_renderer]),s=this.model.vertex_renderer.data_source,i=this.model.vertex_renderer.glyph,o=(0,n.isField)(i.x)?i.x.field:null,_=(0,n.isField)(i.y)?i.y.field:null;if(0!=r.length){const e=s.selected.indices[0],r=(0,d.dict)(s.data);null!=o&&(l=r.get(o)[e]),null!=_&&(t=r.get(_)[e]),s.selection_manager.clear()}}return[l,t]}}t.PolyToolView=u,u.__name__="PolyToolView";class h extends c.EditTool{constructor(e){super(e)}}t.PolyTool=h,i=h,h.__name__="PolyTool",i.define((({Ref:e,Nullable:l})=>({vertex_renderer:[l(e(a.GlyphRenderer)),null]})))}, +function _(e,t,s,r,i){var l;r();const n=e(28),_=e(12),d=e(8),c=e(9),a=e(218),o=e(519),h=e(123);class u extends o.PolyToolView{constructor(){super(...arguments),this._drawing=!1,this._cur_index=null}_press(e){if(null==this.model.vertex_renderer||!this.model.active)return;const t=this._map_drag(e.sx,e.sy,this.model.vertex_renderer);if(null==t)return;const[s,r]=t,i=this._select_event(e,"replace",[this.model.vertex_renderer]),l=this.model.vertex_renderer.data_source,_=this.model.vertex_renderer.glyph,d=(0,n.isField)(_.x)?_.x.field:null,c=(0,n.isField)(_.y)?_.y.field:null;if(0!=i.length&&null!=this._selected_renderer){const e=l.selected.indices[0];this._drawing?(this._drawing=!1,l.selection_manager.clear()):(l.selected.indices=[e+1],null!=d&&l.get_array(d).splice(e+1,0,s),null!=c&&l.get_array(c).splice(e+1,0,r),this._drawing=!0),l.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}else this._show_vertices(e)}_show_vertices(e){if(!this.model.active)return;if(0==this.model.renderers.length)return;const t=this.model.renderers[0],s=()=>this._update_vertices(t),r=t.data_source,i=this._select_event(e,"replace",this.model.renderers);if(0==i.length)return this._set_vertices([],[]),this._selected_renderer=null,this._drawing=!1,this._cur_index=null,void r.disconnect(r.properties.data.change,s);r.connect(r.properties.data.change,s),this._cur_index=i[0].data_source.selected.indices[0],this._update_vertices(i[0])}_update_vertices(e){const{glyph:t}=e,s=(0,n.isField)(t.xs)?t.xs.field:null,r=(0,n.isField)(t.ys)?t.ys.field:null,i=(0,c.dict)(e.data_source.data),l=this._cur_index;if(this._drawing)return;if(null==l&&(null!=s||null!=r))return;let a,o;if(null!=s&&null!=l){const e=i.get(s)??[];a=e[l],(0,d.isArray)(a)||(e[l]=a=Array.from(a))}else(0,_.assert)((0,n.isValue)(t.xs)),a=t.xs.value;if(null!=r&&null!=l){const e=i.get(r)??[];o=e[l],(0,d.isArray)(o)||(e[l]=o=Array.from(o))}else(0,_.assert)((0,n.isValue)(t.ys)),o=t.ys.value;this._selected_renderer=e,this._set_vertices(a,o)}_move(e){if(this._drawing&&null!=this._selected_renderer){const t=this.model.vertex_renderer;if(null==t)return;const s=t.data_source,r=(0,c.dict)(s.data),{glyph:i}=t,l=this._map_drag(e.sx,e.sy,t);if(null==l)return;let[_,d]=l;const a=s.selected.indices;[_,d]=this._snap_to_vertex(e,_,d),s.selected.indices=a;const o=(0,n.isField)(i.x)?i.x.field:null,h=(0,n.isField)(i.y)?i.y.field:null,u=a[0];null!=o&&(r.get(o)[u]=_),null!=h&&(r.get(h)[u]=d),s.change.emit(),this._selected_renderer.data_source.change.emit()}}_tap(e){const t=this.model.vertex_renderer;if(null==t)return;const s=this._map_drag(e.sx,e.sy,t);if(null==s)return;if(this._drawing&&null!=this._selected_renderer){let[r,i]=s;const l=t.data_source,{glyph:_}=t,d=(0,n.isField)(_.x)?_.x.field:null,c=(0,n.isField)(_.y)?_.y.field:null,a=l.selected.indices;[r,i]=this._snap_to_vertex(e,r,i);const o=a[0];if(l.selected.indices=[o+1],null!=d){const e=l.get_array(d),t=e[o];e[o]=r,e.splice(o+1,0,t)}if(null!=c){const e=l.get_array(c),t=e[o];e[o]=i,e.splice(o+1,0,t)}return l.change.emit(),void this._emit_cds_changes(this._selected_renderer.data_source,!0,!1,!0)}const r=this._select_mode(e);this._select_event(e,r,[t]),this._select_event(e,r,this.model.renderers)}_remove_vertex(){if(!this._drawing||null==this._selected_renderer)return;const e=this.model.vertex_renderer;if(null==e)return;const{glyph:t,data_source:s}=e,r=s.selected.indices[0],i=(0,n.isField)(t.x)?t.x.field:null,l=(0,n.isField)(t.y)?t.y.field:null;null!=i&&s.get_array(i).splice(r,1),null!=l&&s.get_array(l).splice(r,1),s.change.emit(),this._emit_cds_changes(this._selected_renderer.data_source)}_pan_start(e){null!=this.model.vertex_renderer&&(this._select_event(e,"append",[this.model.vertex_renderer]),this._basepoint=[e.sx,e.sy])}_pan(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),null!=this._selected_renderer&&this._selected_renderer.data_source.change.emit())}_pan_end(e){null!=this._basepoint&&null!=this.model.vertex_renderer&&(this._drag_points(e,[this.model.vertex_renderer]),this._emit_cds_changes(this.model.vertex_renderer.data_source,!1,!0,!0),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source),this._basepoint=null)}_keyup(e){if(!this.model.active||!this._mouse_in_frame)return;let t;if(null!=this._selected_renderer){const{vertex_renderer:e}=this.model;t=null!=e?[e]:[]}else t=this.model.renderers;for(const s of t)"Backspace"==e.key?(this._delete_selected(s),null!=this._selected_renderer&&this._emit_cds_changes(this._selected_renderer.data_source)):"Escape"==e.key&&(this._drawing?(this._remove_vertex(),this._drawing=!1):null!=this._selected_renderer&&this._hide_vertices(),s.data_source.selection_manager.clear())}deactivate(){null!=this._selected_renderer&&(this._drawing&&(this._remove_vertex(),this._drawing=!1),this._hide_vertices())}}s.PolyEditToolView=u,u.__name__="PolyEditToolView";class m extends o.PolyTool{constructor(e){super(e),this.tool_name="Poly Edit Tool",this.tool_icon=h.tool_icon_poly_edit,this.event_type=["tap","press","pan","move"],this.default_order=4}}s.PolyEditTool=m,l=m,m.__name__="PolyEditTool",l.prototype.default_view=u,l.define((({List:e,Ref:t})=>({renderers:[e(t(a.GlyphRenderer)),[]]})))}, +function _(o,l,e,T,t){T(),t("BoxSelectTool",o(522).BoxSelectTool),t("BoxZoomTool",o(525).BoxZoomTool),t("GestureTool",o(300).GestureTool),t("LassoSelectTool",o(526).LassoSelectTool),t("PanTool",o(502).PanTool),t("PolySelectTool",o(527).PolySelectTool),t("RangeTool",o(528).RangeTool),t("SelectTool",o(524).SelectTool),t("TapTool",o(529).TapTool),t("WheelPanTool",o(531).WheelPanTool),t("WheelZoomTool",o(532).WheelZoomTool)}, +function _(t,e,i,o,s){var n;o();const l=t(1),_=t(523),r=t(263),a=t(60),c=t(20),h=l.__importStar(t(123));class p extends _.RegionSelectToolView{connect_signals(){super.connect_signals();const{pan:t}=this.model.overlay;this.connect(t,(([t,e])=>{if("pan"==t&&this._is_continuous(e)||"pan:end"==t){const{left:t,top:i,right:o,bottom:s}=this.model.overlay;if(!(t instanceof a.Coordinate||i instanceof a.Coordinate||o instanceof a.Coordinate||s instanceof a.Coordinate)){const n=this._compute_lrtb({left:t,right:o,top:i,bottom:s});this._do_select([n.left,n.right],[n.top,n.bottom],!1,this._select_mode(e))}}}));const{active:e}=this.model.properties;this.on_change(e,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_compute_limits(t){const e=this.plot_view.frame,i=this.model.dimensions;let o=this._base_point;if("center"==this.model.origin){const[e,i]=o,[s,n]=t;o=[e-(s-e),i-(n-i)]}return this.model._get_dim_limits(o,t,e,i)}_mappers(){const t=(t,e,i,o)=>{switch(t){case"canvas":return o;case"screen":return i;case"data":return e}},{overlay:e}=this.model,{frame:i,canvas:o}=this.plot_view,{x_scale:s,y_scale:n}=i,{x_view:l,y_view:_}=i.bbox,{x_screen:r,y_screen:a}=o.bbox;return{left:t(e.left_units,s,l,r),right:t(e.right_units,s,l,r),top:t(e.top_units,n,_,a),bottom:t(e.bottom_units,n,_,a)}}_compute_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.compute(t),right:s.right.compute(e),top:s.top.compute(i),bottom:s.bottom.compute(o)}}_invert_lrtb({left:t,right:e,top:i,bottom:o}){const s=this._mappers();return{left:s.left.invert(t),right:s.right.invert(e),top:s.top.invert(i),bottom:s.bottom.invert(o)}}_pan_start(t){const{sx:e,sy:i}=t,{frame:o}=this.plot_view;o.bbox.contains(e,i)&&(this._clear_other_overlays(),this._base_point=[e,i])}_pan(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]),[[n,l],[_,r]]=[o,s];this.model.overlay.update(this._invert_lrtb({left:n,right:l,top:_,bottom:r})),this._is_continuous(t.modifiers)&&this._do_select(o,s,!1,this._select_mode(t.modifiers))}_pan_end(t){if(null==this._base_point)return;const{sx:e,sy:i}=t,[o,s]=this._compute_limits([e,i]);this._do_select(o,s,!0,this._select_mode(t.modifiers)),this.model.persistent||this._clear_overlay(),this._base_point=null,this.plot_view.state.push("box_select",{selection:this.plot_view.get_selection()})}get _is_selecting(){return null!=this._base_point}_stop(){this._clear_overlay(),this._base_point=null}_keyup(t){if(this.model.active){if("Escape"==t.key){if(this._is_selecting)return void this._stop();if(this.model.overlay.visible)return void this._clear_overlay()}super._keyup(t)}}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select([t,e],[i,o],s,n="replace"){const{greedy:l}=this.model,_={type:"rect",sx0:t,sx1:e,sy0:i,sy1:o,greedy:l};this._select(_,s,n)}}i.BoxSelectToolView=p,p.__name__="BoxSelectToolView";const m=()=>new r.BoxAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!0,left:NaN,right:NaN,top:NaN,bottom:NaN,top_units:"data",left_units:"data",bottom_units:"data",right_units:"data",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class d extends _.RegionSelectTool{constructor(t){super(t),this.tool_name="Box Select",this.event_type="pan",this.default_order=30}initialize(){super.initialize();const[t,e]=(()=>{switch(this.dimensions){case"width":return["x","x"];case"height":return["y","y"];case"both":return["all","both"]}})(),i="center"==this.origin;this.overlay.setv({resizable:t,movable:e,symmetric:i})}get computed_icon(){const t=super.computed_icon;if(null!=t)return t;switch(this.dimensions){case"both":return`.${h.tool_icon_box_select}`;case"width":return`.${h.tool_icon_x_box_select}`;case"height":return`.${h.tool_icon_y_box_select}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}i.BoxSelectTool=d,n=d,d.__name__="BoxSelectTool",n.prototype.default_view=p,n.define((({Ref:t})=>({dimensions:[c.Dimensions,"both"],overlay:[t(r.BoxAnnotation),m],origin:[c.BoxOrigin,"corner"]}))),n.register_alias("box_select",(()=>new n)),n.register_alias("xbox_select",(()=>new n({dimensions:"width"}))),n.register_alias("ybox_select",(()=>new n({dimensions:"height"})))}, +function _(e,o,t,s,l){var n;s();const c=e(524),r=e(20);class i extends c.SelectToolView{get overlays(){return[...super.overlays,this.model.overlay]}_is_continuous(e){return this.model.continuous!=e.alt}_select(e,o,t){const s=this._computed_renderers_by_data_source();for(const[,l]of s){const s=l[0].get_selection_manager(),n=[];for(const e of l){const o=this.plot_view.views.find_one(e);null!=o&&n.push(o)}s.select(n,e,o,t)}this._emit_selection_event(e,o)}_clear_overlay(){super._clear_overlay(),this.model.overlay.clear()}}t.RegionSelectToolView=i,i.__name__="RegionSelectToolView";class _ extends c.SelectTool{constructor(e){super(e)}}t.RegionSelectTool=_,n=_,_.__name__="RegionSelectTool",n.define((({Bool:e})=>({mode:[r.RegionSelectionMode,"replace"],continuous:[e,!1],persistent:[e,!1],greedy:[e,!1]})))}, +function _(e,t,o,r,n){var i;r();const s=e(1),c=e(300),l=e(218),a=e(459),_=e(219),d=e(108),h=e(53),p=e(15),u=e(12),m=e(10),v=s.__importStar(e(123));class f extends c.GestureToolView{connect_signals(){super.connect_signals(),this.model.invert.connect((()=>this._invert_selection())),this.model.clear.connect((()=>this._clear_selection()))}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,d.compute_renderers)(e,t)}_computed_renderers_by_data_source(){const e=new Map;for(const t of this.computed_renderers){let o;if(t instanceof l.GlyphRenderer)o=t.data_source;else{if(!(t instanceof a.GraphRenderer))continue;o=t.node_renderer.data_source}const r=e.get(o)??[];e.set(o,[...r,t])}return e}_clear_overlay(){}_clear_other_overlays(){for(const e of this.plot_view.tool_views.values())e instanceof f&&e!=this&&e._clear_overlay()}_clear_selection(){const{computed_renderers:e}=this,t=(0,m.uniq)(e.map((e=>e.selection_manager)));for(const e of t)e.clear();this.plot_view.request_paint(...e)}_invert_selection(){const{computed_renderers:e}=this,t=(0,m.uniq)(e.map((e=>e.selection_manager)));for(const e of t)e.invert();this.plot_view.request_paint(...e)}_select_mode(e){const{shift:t,ctrl:o}=e;return t||o?t&&!o?"append":!t&&o?"intersect":t&&o?"subtract":void(0,u.unreachable)():this.model.mode}_keyup(e){this.model.active&&"Escape"==e.key&&this._clear_selection()}_emit_selection_event(e,t=!0){const{x_scale:o,y_scale:r}=this.plot_view.frame,n=(()=>{switch(e.type){case"point":{const{sx:t,sy:n}=e,i=o.invert(t),s=r.invert(n);return{...e,x:i,y:s}}case"span":{const{sx:t,sy:n}=e,i=o.invert(t),s=r.invert(n);return{...e,x:i,y:s}}case"rect":{const{sx0:t,sx1:n,sy0:i,sy1:s}=e,[c,l]=o.r_invert(t,n),[a,_]=r.r_invert(i,s);return{...e,x0:c,y0:a,x1:l,y1:_}}case"poly":{const{sx:t,sy:n}=e,i=o.v_invert(t),s=r.v_invert(n);return{...e,x:i,y:s}}}})();this.plot_view.model.trigger_event(new h.SelectionGeometry(n,t))}}o.SelectToolView=f,f.__name__="SelectToolView";class y extends c.GestureTool{constructor(e){super(e),this.invert=new p.Signal0(this,"invert"),this.clear=new p.Signal0(this,"clear")}get menu(){return[{icon:v.tool_icon_replace_mode,tooltip:"Replace the current selection",active:()=>"replace"==this.mode,handler:()=>{this.mode="replace",this.active=!0}},{icon:v.tool_icon_append_mode,tooltip:"Append to the current selection (Shift)",active:()=>"append"==this.mode,handler:()=>{this.mode="append",this.active=!0}},{icon:v.tool_icon_intersect_mode,tooltip:"Intersect with the current selection (Ctrl)",active:()=>"intersect"==this.mode,handler:()=>{this.mode="intersect",this.active=!0}},{icon:v.tool_icon_subtract_mode,tooltip:"Subtract from the current selection (Shift+Ctrl)",active:()=>"subtract"==this.mode,handler:()=>{this.mode="subtract",this.active=!0}},{icon:v.tool_icon_xor_mode,tooltip:"Symmetric difference with the current selection",active:()=>"xor"==this.mode,handler:()=>{this.mode="xor",this.active=!0}},null,{icon:v.tool_icon_invert_selection,tooltip:"Invert the current selection",handler:()=>{this.invert.emit()}},{icon:v.tool_icon_clear_selection,tooltip:"Clear the current selection and/or selection overlay (Esc)",handler:()=>{this.clear.emit()}}]}}o.SelectTool=y,i=y,y.__name__="SelectTool",i.define((({List:e,Ref:t,Or:o,Auto:r})=>({renderers:[o(e(t(_.DataRenderer)),r),"auto"]})))}, +function _(o,t,e,i,s){var n;i();const a=o(1),_=o(300),r=o(263),l=o(20),h=a.__importStar(o(123));class c extends _.GestureToolView{constructor(){super(...arguments),this._base_point=null}get overlays(){return[...super.overlays,this.model.overlay]}_match_aspect([o,t],[e,i],s){const n=s.bbox.aspect,a=s.bbox.h_range.end,_=s.bbox.h_range.start,r=s.bbox.v_range.end,l=s.bbox.v_range.start;let h=Math.abs(o-e),c=Math.abs(t-i);const m=0==c?0:h/c,[d]=m>=n?[1,m/n]:[n/m,1];let p,u,b,x;return o<=e?(p=o,u=o+h*d,u>a&&(u=a)):(u=o,p=o-h*d,p<_&&(p=_)),h=Math.abs(u-p),t<=i?(x=t,b=t+h/n,b>r&&(b=r)):(b=t,x=t-h/n,x{const{dimensions:e}=this.model;if("auto"==e){const[e,i]=o,[s,n]=t,a=Math.abs(e-s),_=Math.abs(i-n),r=5;return ar?"height":a>r&&_new r.BoxAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!1,left:NaN,right:NaN,top:NaN,bottom:NaN,top_units:"canvas",left_units:"canvas",bottom_units:"canvas",right_units:"canvas",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class d extends _.GestureTool{constructor(o){super(o),this.tool_name="Box Zoom",this.event_type=["pan","doubletap"],this.default_order=20}get event_role(){return"pan"}get computed_icon(){const o=super.computed_icon;if(null!=o)return o;switch(this.dimensions){case"both":return`.${h.tool_icon_box_zoom}`;case"width":return`.${h.tool_icon_x_box_zoom}`;case"height":return`.${h.tool_icon_y_box_zoom}`;case"auto":return`.${h.tool_icon_auto_box_zoom}`}}get tooltip(){return this._get_dim_tooltip(this.dimensions)}get menu(){return[{icon:h.tool_icon_box_zoom,tooltip:"Box zoom in both dimensions",active:()=>"both"==this.dimensions,handler:()=>{this.dimensions="both",this.active=!0}},{icon:h.tool_icon_x_box_zoom,tooltip:"Box zoom in x-dimension",active:()=>"width"==this.dimensions,handler:()=>{this.dimensions="width",this.active=!0}},{icon:h.tool_icon_y_box_zoom,tooltip:"Box zoom in y-dimension",active:()=>"height"==this.dimensions,handler:()=>{this.dimensions="height",this.active=!0}},{icon:h.tool_icon_auto_box_zoom,tooltip:"Automatic mode (box zoom in x, y or both dimensions, depending on the mouse gesture)",active:()=>"auto"==this.dimensions,handler:()=>{this.dimensions="auto",this.active=!0}}]}}e.BoxZoomTool=d,n=d,d.__name__="BoxZoomTool",n.prototype.default_view=c,n.define((({Bool:o,Ref:t,Or:e,Auto:i})=>({dimensions:[e(l.Dimensions,i),"both"],overlay:[t(r.BoxAnnotation),m],match_aspect:[o,!1],origin:[l.BoxOrigin,"corner"]}))),n.register_alias("box_zoom",(()=>new n({dimensions:"both"}))),n.register_alias("xbox_zoom",(()=>new n({dimensions:"width"}))),n.register_alias("ybox_zoom",(()=>new n({dimensions:"height"}))),n.register_alias("auto_box_zoom",(()=>new n({dimensions:"auto"})))}, +function _(e,s,t,o,i){var _;o();const l=e(523),n=e(286),c=e(527),r=e(12),a=e(123);class h extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,s,t,o)=>{switch(e){case"canvas":return o;case"screen":return t;case"data":return s}},{overlay:s}=this.model,{frame:t,canvas:o}=this.plot_view,{x_scale:i,y_scale:_}=t,{x_view:l,y_view:n}=t.bbox,{x_screen:c,y_screen:r}=o.bbox;return{x:e(s.xs_units,i,l,c),y:e(s.ys_units,_,n,r)}}_v_compute(e,s){const{x:t,y:o}=this._mappers();return[t.v_compute(e),o.v_compute(s)]}_v_invert(e,s){const{x:t,y:o}=this._mappers();return[t.v_invert(e),o.v_invert(s)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,s])=>{if("pan"==e&&this._is_continuous(s)||"pan:end"==e){const{xs:e,ys:t}=this.model.overlay,[o,i]=this._v_compute(e,t);this._do_select(o,i,!1,this._select_mode(s))}}));const{active:s}=this.model.properties;this.on_change(s,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_pan_start(e){const{sx:s,sy:t}=e,{frame:o}=this.plot_view;if(!o.bbox.contains(s,t))return;this._clear_other_overlays(),this._is_selecting=!0;const[i,_]=this._v_invert([s],[t]);this.model.overlay.update({xs:i,ys:_})}_pan(e){(0,r.assert)(this._is_selecting);const[s,t]=(()=>{const{xs:e,ys:s}=this.model.overlay,[t,o]=this._v_compute(e,s);return[[...t],[...o]]})(),[o,i]=this.plot_view.frame.bbox.clip(e.sx,e.sy);s.push(o),t.push(i);const[_,l]=this._v_invert(s,t);this.model.overlay.update({xs:_,ys:l}),this._is_continuous(e.modifiers)&&this._do_select(s,t,!1,this._select_mode(e.modifiers))}_pan_end(e){(0,r.assert)(this._is_selecting),this._is_selecting=!1;const{xs:s,ys:t}=this.model.overlay,[o,i]=this._v_compute(s,t);this._do_select(o,i,!0,this._select_mode(e.modifiers)),this.plot_view.state.push("lasso_select",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_keyup(e){this.model.active&&("Escape"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():super._clear_selection()}_do_select(e,s,t,o){const{greedy:i}=this.model,_={type:"poly",sx:e,sy:s,greedy:i};this._select(_,t,o)}}t.LassoSelectToolView=h,h.__name__="LassoSelectToolView";class v extends l.RegionSelectTool{constructor(e){super(e),this.tool_name="Lasso Select",this.tool_icon=a.tool_icon_lasso_select,this.event_type="pan",this.default_order=12}}t.LassoSelectTool=v,_=v,v.__name__="LassoSelectTool",_.prototype.default_view=h,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),c.DEFAULT_POLY_OVERLAY]}))),_.override({continuous:!0}),_.register_alias("lasso_select",(()=>new _))}, +function _(e,s,t,i,o){var _;i();const l=e(523),n=e(286),c=e(123);class r extends l.RegionSelectToolView{constructor(){super(...arguments),this._is_selecting=!1}_mappers(){const e=(e,s,t,i)=>{switch(e){case"canvas":return i;case"screen":return t;case"data":return s}},{overlay:s}=this.model,{frame:t,canvas:i}=this.plot_view,{x_scale:o,y_scale:_}=t,{x_view:l,y_view:n}=t.bbox,{x_screen:c,y_screen:r}=i.bbox;return{x:e(s.xs_units,o,l,c),y:e(s.ys_units,_,n,r)}}_v_compute(e,s){const{x:t,y:i}=this._mappers();return[t.v_compute(e),i.v_compute(s)]}_v_invert(e,s){const{x:t,y:i}=this._mappers();return[t.v_invert(e),i.v_invert(s)]}connect_signals(){super.connect_signals();const{pan:e}=this.model.overlay;this.connect(e,(([e,s])=>{if("pan"==e&&this._is_continuous(s)||"pan:end"==e&&!this._is_selecting){const{xs:e,ys:t}=this.model.overlay,[i,o]=this._v_compute(e,t);this._do_select(i,o,!1,this._select_mode(s))}}));const{active:s}=this.model.properties;this.on_change(s,(()=>{this.model.active||this.model.persistent||this._clear_overlay()}))}_tap(e){const{sx:s,sy:t}=e,{frame:i}=this.plot_view;if(!i.bbox.contains(s,t))return;this._clear_other_overlays();const[o,_]=(()=>{if(this._is_selecting){const{xs:e,ys:s}=this.model.overlay,[t,i]=this._v_compute(e,s);return[[...t],[...i]]}return this._is_selecting=!0,[[],[]]})();o.push(s),_.push(t);const[l,n]=this._v_invert(o,_);this.model.overlay.update({xs:l,ys:n}),this._is_continuous(e.modifiers)&&this._do_select(o,_,!0,this._select_mode(e.modifiers))}_finish_selection(e){this._is_selecting=!1;const{xs:s,ys:t}=this.model.overlay,[i,o]=this._v_compute(s,t);this._do_select(i,o,!0,this._select_mode(e)),this.plot_view.state.push("poly_select",{selection:this.plot_view.get_selection()}),this.model.persistent||this._clear_overlay()}_press(e){this._finish_selection(e.modifiers)}_keyup(e){this.model.active&&("Enter"!=e.key?"Escape"==e.key&&this.model.overlay.visible?this._clear_overlay():super._keyup(e):this._finish_selection(e.modifiers))}_clear_selection(){this.model.overlay.visible?this._clear_overlay():(this._is_selecting=!1,super._clear_selection())}_clear_overlay(){this._is_selecting=!1,super._clear_overlay()}_do_select(e,s,t,i){const{greedy:o}=this.model,_={type:"poly",sx:e,sy:s,greedy:o};this._select(_,t,i)}}t.PolySelectToolView=r,r.__name__="PolySelectToolView";t.DEFAULT_POLY_OVERLAY=()=>new n.PolyAnnotation({syncable:!1,level:"overlay",visible:!1,editable:!0,xs_units:"data",ys_units:"data",fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:2,line_dash:[4,4]});class a extends l.RegionSelectTool{constructor(e){super(e),this.tool_name="Poly Select",this.tool_icon=c.tool_icon_polygon_select,this.event_type="tap",this.default_order=11}}t.PolySelectTool=a,_=a,a.__name__="PolySelectTool",_.prototype.default_view=r,_.define((({Ref:e})=>({overlay:[e(n.PolyAnnotation),t.DEFAULT_POLY_OVERLAY]}))),_.register_alias("poly_select",(()=>new _))}, +function _(t,e,o,s,i){var n;s();const a=t(300),r=t(301),l=t(263),_=t(98),h=t(19),p=t(12),u=t(8),m=t(123),d=t(59),c=(0,t(21).Enum)("pan","tap","none");class g extends a.GestureToolView{get overlays(){return[...super.overlays,this.model.overlay]}initialize(){super.initialize(),this.model.update_overlay_from_ranges()}connect_signals(){super.connect_signals();const t=()=>this.model.update_overlay_from_ranges();this.on_transitive_change(this.model.properties.x_range,t),this.on_transitive_change(this.model.properties.y_range,t),this.model.overlay.pan.connect((([t,e])=>{if("pan"==t)this.model.update_ranges_from_overlay();else if("pan:end"==t){const t=[this.model.x_range,this.model.y_range].filter((t=>null!=t));this.parent.trigger_ranges_update_event(t)}}));const{active:e,x_interaction:o,y_interaction:s}=this.model.properties;this.on_change([e,o,s],(()=>{this.model.update_constraints()}))}_mappers(){const t=(t,e,o,s)=>{switch(t){case"canvas":return s;case"screen":return o;case"data":return e}},{overlay:e}=this.model,{frame:o,canvas:s}=this.plot_view,{x_scale:i,y_scale:n}=o,{x_view:a,y_view:r}=o.bbox,{x_screen:l,y_screen:_}=s.bbox;return{left:t(e.left_units,i,a,l),right:t(e.right_units,i,a,l),top:t(e.top_units,n,r,_),bottom:t(e.bottom_units,n,r,_)}}_invert_lrtb({left:t,right:e,top:o,bottom:s}){const i=this._mappers(),{x_range:n,y_range:a}=this.model,r=null!=n,l=null!=a;return{left:r?i.left.invert(t):this.model.nodes.left,right:r?i.right.invert(e):this.model.nodes.right,top:l?i.top.invert(o):this.model.nodes.top,bottom:l?i.bottom.invert(s):this.model.nodes.bottom}}_compute_limits(t){const e=(()=>{const{x_range:t,y_range:e}=this.model,o=null!=t,s=null!=e;return o&&s?"both":o?"width":s?"height":void(0,p.unreachable)()})();(0,p.assert)(null!=this._base_point);let o=this._base_point;if(this.model.overlay.symmetric){const[e,s]=o,[i,n]=t;o=[e-(i-e),s-(n-s)]}const{frame:s}=this.plot_view;return this.model._get_dim_limits(o,t,s,e)}_tap(t){(0,p.assert)("tap"==this.model.start_gesture);const{sx:e,sy:o}=t,{frame:s}=this.plot_view;s.bbox.contains(e,o)&&(null==this._base_point?this._base_point=[e,o]:(this._update_overlay(e,o),this._base_point=null))}_move(t){if(null!=this._base_point&&"tap"==this.model.start_gesture){const{sx:e,sy:o}=t;this._update_overlay(e,o)}}_pan_start(t){(0,p.assert)("pan"==this.model.start_gesture),(0,p.assert)(null==this._base_point);const{sx:e,sy:o}=t,{frame:s}=this.plot_view;s.bbox.contains(e,o)&&(this._base_point=[e,o])}_update_overlay(t,e){const[o,s]=this._compute_limits([t,e]),[[i,n],[a,r]]=[o,s];this.model.overlay.update(this._invert_lrtb({left:i,right:n,top:a,bottom:r})),this.model.update_ranges_from_overlay()}_pan(t){if(null==this._base_point)return;const{sx:e,sy:o}=t;this._update_overlay(e,o)}_pan_end(t){if(null==this._base_point)return;const{sx:e,sy:o}=t;this._update_overlay(e,o),this._base_point=null}get _is_selecting(){return null!=this._base_point}_stop(){this._base_point=null}_keyup(t){this.model.active&&"Escape"==t.key&&this._is_selecting&&this._stop()}}o.RangeToolView=g,g.__name__="RangeToolView";const v=()=>new l.BoxAnnotation({syncable:!1,level:"overlay",visible:!0,editable:!0,propagate_hover:!0,left:NaN,right:NaN,top:NaN,bottom:NaN,left_limit:d.Node.frame.left,right_limit:d.Node.frame.right,top_limit:d.Node.frame.top,bottom_limit:d.Node.frame.bottom,fill_color:"lightgrey",fill_alpha:.5,line_color:"black",line_alpha:1,line_width:.5,line_dash:[2,2]});class y extends a.GestureTool{constructor(t){super(t),this.nodes=d.Node.frame.freeze(),this.tool_name="Range Tool",this.tool_icon=m.tool_icon_range,this.default_order=40}initialize(){super.initialize(),this.update_constraints()}update_constraints(){this.overlay.editable=this.active;const t=null!=this.x_range&&this.x_interaction,e=null!=this.y_range&&this.y_interaction;t&&e?(this.overlay.movable="both",this.overlay.resizable="all"):t?(this.overlay.movable="x",this.overlay.resizable="x"):e?(this.overlay.movable="y",this.overlay.resizable="y"):(this.overlay.movable="none",this.overlay.resizable="none");const{x_range:o,y_range:s}=this;null!=o&&(this.overlay.min_width=o.min_interval??0,this.overlay.max_width=o.max_interval??1/0),null!=s&&(this.overlay.min_height=s.min_interval??0,this.overlay.max_height=s.max_interval??1/0)}update_ranges_from_overlay(){const{left:t,right:e,top:o,bottom:s}=this.overlay,{x_range:i,y_range:n}=this,a=new Set,r=new Map,l=new Map;if(null!=i&&this.x_interaction){(0,p.assert)((0,u.isNumber)(t)&&(0,u.isNumber)(e)),r.set(i,{start:t,end:e});for(const t of i.linked_plots)a.add(t)}if(null!=n&&this.y_interaction){(0,p.assert)((0,u.isNumber)(s)&&(0,u.isNumber)(o)),l.set(n,{start:s,end:o});for(const t of n.linked_plots)a.add(t)}for(const t of a)t.update_range({xrs:r,yrs:l},{panning:!0,scrolling:!0})}update_overlay_from_ranges(){const{x_range:t,y_range:e}=this,o=null!=t,s=null!=e;this.overlay.update({left:o?t.start:this.nodes.left,right:o?t.end:this.nodes.right,top:s?e.end:this.nodes.top,bottom:s?e.start:this.nodes.bottom}),o||s||(h.logger.warn("RangeTool not configured with any Ranges."),this.overlay.clear())}get event_type(){switch(this.start_gesture){case"pan":return"pan";case"tap":return["tap","move"];case"none":return[]}}supports_auto(){return!0}tool_button(){return new r.OnOffButton({tool:this})}}o.RangeTool=y,n=y,y.__name__="RangeTool",n.prototype.default_view=g,n.define((({Bool:t,Ref:e,Nullable:o})=>({x_range:[o(e(_.Range)),null],y_range:[o(e(_.Range)),null],x_interaction:[t,!0],y_interaction:[t,!0],overlay:[e(l.BoxAnnotation),v],start_gesture:[c,"none"]}))),n.override({active:!0})}, +function _(e,t,o,s,i){var l;s();const n=e(524),a=e(530),c=e(50),_=e(20),r=e(20),d=e(13),p=e(123);class h extends n.SelectToolView{_tap(e){const t="tap"==this.model.gesture;return t&&this._handle_tap(e),t}_doubletap(e){const t="doubletap"==this.model.gesture;return t&&this._handle_tap(e),t}_handle_tap(e){if(!(0,a.satisfies_modifiers)(this.model.modifiers,e.modifiers))return;const{sx:t,sy:o}=e,{frame:s}=this.plot_view;if(!s.bbox.contains(t,o))return;this._clear_other_overlays();const i={type:"point",sx:t,sy:o};"select"==this.model.behavior?this._select(i,!0,this._select_mode(e.modifiers)):this._inspect(i,e.modifiers)}_select(e,t,o){const s=this._computed_renderers_by_data_source();for(const[,i]of s){const s=i[0].get_selection_manager(),l=i.map((e=>this.plot_view.views.find_one(e))).filter((e=>null!=e));if(s.select(l,e,t,o)){const[t]=l;this._emit_callback(t,e,s.source)}}this._emit_selection_event(e),this.plot_view.state.push("tap",{selection:this.plot_view.get_selection()})}_inspect(e,t){for(const o of this.computed_renderers){const s=this.plot_view.views.find_one(o);if(null==s)continue;const i=o.get_selection_manager();i.inspect(s,e)&&this._emit_callback(s,e,i.source,t)}}_emit_callback(e,t,o,s){const{callback:i}=this.model;if(null!=i){const l=e.coordinates.x_scale.invert(t.sx),n=e.coordinates.y_scale.invert(t.sy),a={geometries:{...t,x:l,y:n},source:o,event:{modifiers:s}};(0,c.execute)(i,this.model,a)}}}o.TapToolView=h,h.__name__="TapToolView";class u extends n.SelectTool{constructor(e){super(e),this.tool_name="Tap",this.tool_icon=p.tool_icon_tap_select,this.event_type="tap",this.default_order=10}get menu(){const e=super.menu;return null==e?null:(0,d.prepend)(e,{icon:p.tool_icon_toggle_mode,tooltip:"Toggle the current selection",active:()=>"toggle"==this.mode,handler:()=>{this.mode="toggle",this.active=!0}})}}o.TapTool=u,l=u,u.__name__="TapTool",l.prototype.default_view=h,l.define((({Any:e,Nullable:t})=>({mode:[_.SelectionMode,"toggle"],behavior:[r.TapBehavior,"select"],gesture:[r.TapGesture,"tap"],modifiers:[a.Modifiers,{}],callback:[t(e),null]}))),l.register_alias("click",(()=>new l({behavior:"inspect"}))),l.register_alias("tap",(()=>new l)),l.register_alias("doubletap",(()=>new l({gesture:"doubletap"})))}, +function _(t,i,r,l,n){l(),r.satisfies_modifiers=function(t,i){const{alt:r,ctrl:l,shift:n}=t;if(null!=n&&n!=i.shift)return!1;if(null!=l&&l!=i.ctrl)return!1;if(null!=r&&r!=i.alt)return!1;return!0},r.print_modifiers=function(t){const{alt:i,ctrl:r,shift:l}=t,n=[];!0===i&&n.push("alt");!0===r&&n.push("ctrl");!0===l&&n.push("shift");return n.join(" + ")};const s=t(21);r.Modifiers=(0,s.PartialStruct)({shift:s.Bool,ctrl:s.Bool,alt:s.Bool})}, +function _(e,t,s,i,o){var n;i();const a=e(300),l=e(530),r=e(20),_=e(11),h=e(123),d=e(502);class p extends a.GestureToolView{_scroll(e){const{modifiers:t}=this.model;if(!(0,l.satisfies_modifiers)(t,e.modifiers))return this.plot_view.notify_about(`use ${(0,l.print_modifiers)(t)} + scroll to pan`),!1;const s=(0,_.clamp)(this.model.speed*e.delta,-.9,.9);return this._update_ranges(s),!0}_update_ranges(e){const{frame:t}=this.plot_view,s=t.bbox.h_range,i=t.bbox.v_range,[o,n]=[s.start,s.end],[a,l]=[i.start,i.end];let r,_,h,p;switch(this.model.dimension){case"height":{const t=Math.abs(l-a);r=o,_=n,h=a-t*e,p=l-t*e;break}case"width":{const t=Math.abs(n-o);r=o-t*e,_=n-t*e,h=a,p=l;break}}const{x_scales:c,y_scales:u}=t,m={xrs:(0,d.update_ranges)(c,r,_),yrs:(0,d.update_ranges)(u,h,p),factor:e};this.plot_view.state.push("wheel_pan",{range:m}),this.plot_view.update_range(m,{scrolling:!0}),this.model.document?.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}s.WheelPanToolView=p,p.__name__="WheelPanToolView";class c extends a.GestureTool{constructor(e){super(e),this.tool_name="Wheel Pan",this.tool_icon=h.tool_icon_wheel_pan,this.event_type="scroll",this.default_order=12}get tooltip(){return this._get_dim_tooltip(this.dimension)}supports_auto(){const{alt:e,ctrl:t,shift:s}=this.modifiers;return null!=e||null!=t||null!=s}}s.WheelPanTool=c,n=c,c.__name__="WheelPanTool",n.prototype.default_view=p,n.define((()=>({dimension:[r.Dimension,"width"],modifiers:[l.Modifiers,{}]}))),n.internal((({Float:e})=>({speed:[e,.001]}))),n.register_alias("xwheel_pan",(()=>new n({dimension:"width"}))),n.register_alias("ywheel_pan",(()=>new n({dimension:"height"})))}, +function _(e,t,o,s,n){var i;s();const l=e(300),r=e(530),a=e(219),c=e(105),_=e(427),d=e(509),h=e(20),m=e(19),u=e(123),f=e(21),p=(0,f.Enum)("none","cross","all"),w=(0,f.Or)((0,f.List)((0,f.Ref)(a.DataRenderer)),f.Auto);class v extends l.GestureToolView{_scroll(e){const{modifiers:t}=this.model;if(!(0,r.satisfies_modifiers)(t,e.modifiers))return this.plot_view.notify_about(`use ${(0,r.print_modifiers)(t)} + scroll to zoom`),!1;const{sx:o,sy:s,delta:n}=e;return this.zoom(o,s,n),!0}_pinch(e){const{sx:t,sy:o,scale:s}=e,n=s>=1?20*(s-1):-20/s;this.zoom(t,o,n)}zoom(e,t,o){const s=this.plot_view.axis_views.find((o=>o.bbox.contains(e,t)));if(null!=s&&!this.model.zoom_on_axis)return;const{frame:n}=this.plot_view;if(null==s&&!n.bbox.contains(e,t))return;const[i,l]=(()=>{const e=[...n.x_scales.values()],t=[...n.y_scales.values()];if(null==s)return[e,t];{const{zoom_together:o}=this.model;if("all"==o)return 0==s.dimension?[e,[]]:[[],t];{const{x_scale:e,y_scale:t}=s.coordinates;switch(o){case"cross":return[[e],[t]];case"none":return 0==s.dimension?[[e],[]]:[[],[t]]}}}})(),r=(()=>{const{renderers:o}=this.model,s=new Set("auto"!=o?o:this.plot_view.model.data_renderers);if(this.model.hit_test){const o=new Set,n=new Set;for(const i of s){if(null==i.coordinates){o.add(i);continue}const s=(()=>{switch(this.model.hit_test_mode){case"point":return{type:"point",sx:e,sy:t};case"hline":return{type:"span",sx:e,sy:t,direction:"v"};case"vline":return{type:"span",sx:e,sy:t,direction:"h"}}})(),l=this.plot_view.views.get_one(i),r=l.hit_test(s);null==r||r.is_empty()||n.add(l.model)}if(0!=n.size){const{hit_test_behavior:e}=this.model;if("only_hit"==e)for(const e of n)o.add(e);else for(const t of e.query_groups(n,s))for(const e of t)e instanceof a.DataRenderer&&s.has(e)&&o.add(e)}return[...o]}return s})(),_=new Set(i),h=new Set(l),u=new Set,f=new Set;for(const e of r){if(null==e.coordinates)continue;const t=this.plot_view.views.get_one(e),{x_scale:o,y_scale:s}=t.coordinates;o instanceof c.CompositeScale&&_.has(o.target_scale)&&u.add(o),s instanceof c.CompositeScale&&h.has(s.target_scale)&&f.add(s)}const[p,w]=(()=>"auto"==this.model.renderers?[new Set([..._,...u]),new Set([...h,...f])]:[u,f])(),v={x:!1,y:!1},y=(e,t)=>{const{level:o}=this.model;for(let s=0;s{const o=v.x?null:e,n=v.y?null:t;return null!=s?0==s.dimension?{x:o,y:null}:{x:null,y:n}:{x:o,y:n}})(),z=this.model.dimensions,b="width"==z||"both"==z,T="height"==z||"both"==z,{x_target:W,y_target:Z}=n,$=this.model.speed*o,C=(0,d.scale_range)(g,x,W,Z,$,b,T,S);this.plot_view.state.push("wheel_zoom",{range:C});const{maintain_focus:R}=this.model;this.plot_view.update_range(C,{scrolling:!0,maintain_focus:R}),this.model.document?.interactive_start(this.plot_view.model,(()=>this.plot_view.trigger_ranges_update_event()))}}o.WheelZoomToolView=v,v.__name__="WheelZoomToolView";class y extends l.GestureTool{constructor(e){super(e),this.tool_name="Wheel Zoom",this.tool_icon=u.tool_icon_wheel_zoom,this.event_type="scroll",this.default_order=10}get tooltip(){return this._get_dim_tooltip(this.dimensions)}supports_auto(){const{alt:e,ctrl:t,shift:o}=this.modifiers;return null!=e||null!=t||null!=o}}o.WheelZoomTool=y,i=y,y.__name__="WheelZoomTool",i.prototype.default_view=v,i.define((({Bool:e,Float:t,NonNegative:o,Int:s,Ref:n,Or:i})=>({dimensions:[h.Dimensions,"both"],renderers:[w,"auto"],level:[o(s),0],hit_test:[e,!1],hit_test_mode:[(0,f.Enum)("point","hline","vline"),"point"],hit_test_behavior:[i(n(_.GroupBy),(0,f.Enum)("only_hit")),"only_hit"],maintain_focus:[e,!0],zoom_on_axis:[e,!0],zoom_together:[p,"all"],speed:[t,1/600],modifiers:[r.Modifiers,{}]}))),i.register_alias("wheel_zoom",(()=>new i({dimensions:"both"}))),i.register_alias("xwheel_zoom",(()=>new i({dimensions:"width"}))),i.register_alias("ywheel_zoom",(()=>new i({dimensions:"height"})))}, +function _(o,r,s,e,l){e(),l("CrosshairTool",o(534).CrosshairTool),l("CustomJSHover",o(535).CustomJSHover),l("HoverTool",o(536).HoverTool),l("InspectTool",o(302).InspectTool)}, +function _(s,i,e,t,n){var o;t();const a=s(302),r=s(290),l=s(20),_=s(8),h=s(123);class c extends a.InspectToolView{get overlays(){return[...super.overlays,...this._spans]}initialize(){super.initialize(),this._update_overlays()}connect_signals(){super.connect_signals();const{overlay:s,dimensions:i,line_color:e,line_width:t,line_alpha:n}=this.model.properties;this.on_change([s,i,e,t,n],(()=>{this._update_overlays()}))}_update_overlays(){const{overlay:s}=this.model;if("auto"==s){const{dimensions:i,line_color:e,line_alpha:t,line_width:n}=this.model;function o(s){return new r.Span({dimension:s,location_units:"canvas",level:"overlay",line_color:e,line_width:n,line_alpha:t})}switch(i){case"width":this._spans=[o("width")];break;case"height":this._spans=[o("height")];break;case"both":this._spans=[o("width"),o("height")]}}else(0,_.isArray)(s)?this._spans=[...s]:this._spans=[s]}_move(s){if(!this.model.active)return;const{sx:i,sy:e}=s;this.plot_view.frame.bbox.contains(i,e)?this._update_spans(i,e):this._update_spans(NaN,NaN)}_move_exit(s){this._update_spans(NaN,NaN)}_update_spans(s,i){const{frame:e}=this.plot_view;function t(s,i,t){const{dimension:n}=s;switch(s.location_units){case"canvas":return"width"==n?t:i;case"screen":{const{xview:s,yview:o}=e.bbox;return"width"==n?o.invert(t):s.invert(i)}case"data":{const{x_scale:s,y_scale:o}=e;return"width"==n?o.invert(t):s.invert(i)}}}for(const e of this._spans)e.location=t(e,s,i)}}e.CrosshairToolView=c,c.__name__="CrosshairToolView";class p extends a.InspectTool{constructor(s){super(s),this.tool_name="Crosshair",this.tool_icon=h.tool_icon_crosshair}get tooltip(){return this._get_dim_tooltip(this.dimensions)}}e.CrosshairTool=p,o=p,p.__name__="CrosshairTool",o.prototype.default_view=c,o.define((({Alpha:s,Float:i,Color:e,Auto:t,Tuple:n,Ref:o,Or:a})=>({overlay:[a(t,o(r.Span),n(o(r.Span),o(r.Span))),"auto"],dimensions:[l.Dimensions,"both"],line_color:[e,"black"],line_width:[i,1],line_alpha:[s,1]}))),o.register_alias("crosshair",(()=>new o)),o.register_alias("xcrosshair",(()=>new o({dimensions:"width"}))),o.register_alias("ycrosshair",(()=>new o({dimensions:"height"})))}, function _(e,s,t,r,o){var a;r();const n=e(51),u=e(9),c=e(40);class i extends n.Model{constructor(e){super(e)}get values(){return(0,u.values)(this.args)}_make_code(e,s,t,r){return new Function(...(0,u.keys)(this.args),e,s,t,(0,c.use_strict)(r))}format(e,s,t){return this._make_code("value","format","special_vars",this.code)(...this.values,e,s,t)}}t.CustomJSHover=i,a=i,i.__name__="CustomJSHover",a.define((({Unknown:e,Str:s,Dict:t})=>({args:[t(e),{}],code:[s,""]})))}, -function _(e,t,n,s,i){var o;s();const l=e(1),r=e(56),a=e(63),c=e(20),_=l.__importStar(e(228)),p=e(15),d=e(12),u=e(22),h=e(34),m=e(50),y=e(244),f=e(8),x=e(123),v=l.__importStar(e(415)),w=e(413),g=e(402),b=e(529),V=e(530),C=e(233),S=e(230),M=e(363),$=e(219),A=e(370),T=e(229),k=e(235),H=e(234),R=e(218),z=e(217),N=e(452),O=e(108),P=e(527),D=e(301);function G(e,t,n,s){const i={x:n[e],y:s[e]},o={x:n[e+1],y:s[e+1]},{sx:l,sy:r}=t,[a,c]=function(){if("span"==t.type)return"h"==t.direction?[Math.abs(i.x-l),Math.abs(o.x-l)]:[Math.abs(i.y-r),Math.abs(o.y-r)];const e={x:l,y:r};return[_.dist_2_pts(i,e),_.dist_2_pts(o,e)]}();return adelete this._template_el)),this.on_change([e,t,n],(async()=>await this._update_ttmodels())),this.connect(this.plot_view.repainted,(()=>{if(this.model.active&&null!=this._current_sxy){const[e,t]=this._current_sxy;this._inspect(e,t)}}))}async _update_ttmodels(){const{ttmodels:e}=this;e.clear();const{tooltips:t}=this.model;if(null==t)return;const{computed_renderers:n}=this;for(const t of n){const n=new w.Tooltip({content:document.createElement("div"),attachment:this.model.attachment,show_arrow:this.model.show_arrow,interactive:!1,visible:!0,position:null});t instanceof z.GlyphRenderer?e.set(t,n):t instanceof N.GraphRenderer&&(e.set(t.node_renderer,n),e.set(t.edge_renderer,n))}await(0,r.build_views)(this._ttviews,[...e.values()],{parent:this.plot_view});const s=[...function*(){for(const e of n)e instanceof z.GlyphRenderer?yield e:e instanceof N.GraphRenderer&&(yield e.node_renderer,yield e.edge_renderer)}()],i=this._slots.get(this.update);if(null!=i){const e=new Set(s.map((e=>e.data_source)));p.Signal.disconnect_receiver(this,i,e)}for(const e of s)this.connect(e.data_source.inspect,this.update)}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,O.compute_renderers)(e,t)}_clear(){this._inspect(1/0,1/0);for(const[,e]of this.ttmodels)e.clear()}_move(e){if(!this.model.active)return;const{sx:t,sy:n}=e;this.plot_view.frame.bbox.contains(t,n)?(this._current_sxy=[t,n],this._inspect(t,n)):this._clear()}_move_exit(){this._current_sxy=null,this._clear()}_inspect(e,t){const n=(()=>{if("mouse"==this.model.mode)return{type:"point",sx:e,sy:t};return{type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}})();for(const e of this.computed_renderers){const t=e.get_selection_manager(),s=this.plot_view.views.find_one(e);null!=s&&t.inspect(s,n)}this._emit_callback(n)}_update(e,t,n){const s=e.get_selection_manager(),i=s.inspectors.get(e),o=e.view.convert_selection_to_subset(i);if(i.is_empty()&&null==i.view)return void n.clear();const l=s.source,r=this.plot_view.views.find_one(e);if(null==r)return;const{sx:c,sy:_}=t,p=r.coordinates.x_scale,u=r.coordinates.y_scale,h=p.invert(c),m=u.invert(_),{glyph:y}=r,f=[];if(y instanceof T.PatchView){const[t,n]=[c,_],[s,i]=[h,m],o={index:null,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:s,snap_y:i,snap_sx:t,snap_sy:n,name:e.name},r=this._render_tooltips(l,o);f.push([t,n,r])}else if(y instanceof S.HAreaStepView||y instanceof C.HAreaView||y instanceof H.VAreaStepView||y instanceof k.VAreaView)for(const t of o.line_indices){const[n,s]=[h,m],[i,r]=[c,_],a={index:t,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:n,snap_y:s,snap_sx:i,snap_sy:r,name:e.name,indices:o.line_indices},p=this._render_tooltips(l,a);f.push([i,r,p])}else if(y instanceof $.LineView){const{line_policy:n}=this.model;for(const s of o.line_indices){const[[i,a],[d,x],v]=(()=>{const{x:e,y:i}=y;switch(n){case"interp":{const[e,n]=y.get_interpolation_hit(s,t);return[[e,n],[p.compute(e),u.compute(n)],s]}case"prev":{const[t,n]=E(y.sx,y.sy,s);return[[e[s+1],i[s+1]],t,n]}case"next":{const[t,n]=E(y.sx,y.sy,s+1);return[[e[s+1],i[s+1]],t,n]}case"nearest":{const[n,o]=G(s,t,y.sx,y.sy);return[[e[o],i[o]],n,o]}case"none":{const e=r.coordinates.x_scale,t=r.coordinates.y_scale;return[[e.invert(c),t.invert(_)],[c,_],s]}}})(),w={index:v,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:i,snap_y:a,snap_sx:d,snap_sy:x,name:e.name,indices:o.line_indices},g=this._render_tooltips(l,w);f.push([d,x,g])}}else if(y instanceof M.ImageBaseView)for(const t of i.image_indices){const[n,s]=[c,_],[i,o]=[h,m],r={index:t.index,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:i,snap_y:o,snap_sx:n,snap_sy:s,name:e.name,image_index:t},a=this._render_tooltips(l,r);f.push([n,s,a])}else for(const n of o.indices)if(y instanceof A.MultiLineView&&0!=o.multiline_indices.size){const{line_policy:s}=this.model;for(const i of o.multiline_indices.get(n)??[]){const[[r,a],[x,v],w]=(()=>{if("interp"==s){const[e,s]=y.get_interpolation_hit(n,i,t);return[[e,s],[p.compute(e),u.compute(s)],i]}const[e,o]=[y.xs.get(n),y.ys.get(n)];if("prev"==s){const[t,s]=E(y.sxs.get(n),y.sys.get(n),i);return[[e[i],o[i]],t,s]}if("next"==s){const[t,s]=E(y.sxs.get(n),y.sys.get(n),i+1);return[[e[i],o[i]],t,s]}if("nearest"==s){const[s,l]=G(i,t,y.sxs.get(n),y.sys.get(n));return[[e[l],o[l]],s,l]}(0,d.unreachable)()})(),g={index:e.view.convert_indices_from_subset([n])[0],glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:r,snap_y:a,snap_sx:x,snap_sy:v,name:e.name,indices:o.multiline_indices,segment_index:w},b=this._render_tooltips(l,g);f.push([x,v,b])}}else{const t=y.x?.[n],s=y.y?.[n],{point_policy:i,anchor:r}=this.model,[a,p]=function(){if("snap_to_data"==i){const e=y.get_anchor_point(r,n,[c,_]);if(null!=e)return[e.x,e.y];const t=y.get_anchor_point("center",n,[c,_]);return null!=t?[t.x,t.y]:[c,_]}return[c,_]}(),d={index:e.view.convert_indices_from_subset([n])[0],glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:t,snap_y:s,snap_sx:a,snap_sy:p,name:e.name,indices:o.indices},u=this._render_tooltips(l,d);f.push([a,p,u])}const{bbox:x}=this.plot_view.frame,v=f.filter((([e,t])=>x.contains(e,t)));if(0==v.length)n.clear();else{const{content:e}=n;(0,d.assert)(e instanceof Node),(0,a.empty)(e);for(const[,,t]of v)null!=t&&e.appendChild(t);const[t,s]=v[v.length-1];n.show({x:t,y:s})}}update([e,{geometry:t}]){if(!this.model.active)return;if("point"!=t.type&&"span"!=t.type)return;if("ignore"==this.model.muted_policy&&e.muted)return;const n=this.ttmodels.get(e);(0,f.is_undefined)(n)||this._update(e,t,n)}_emit_callback(e){const{callback:t}=this.model;if(null!=t)for(const n of this.computed_renderers){if(!(n instanceof z.GlyphRenderer))continue;const s=this.plot_view.views.find_one(n);if(null==s)continue;const{x_scale:i,y_scale:o}=s.coordinates,l=i.invert(e.sx),r=o.invert(e.sy),a=n.data_source.inspected;(0,m.execute)(t,this.model,{geometry:{x:l,y:r,...e},renderer:n,index:a})}}_create_template(e){const t=(0,a.div)({style:{display:"table",borderSpacing:"2px"}});for(const[n]of e){const e=(0,a.div)({style:{display:"table-row"}});t.appendChild(e);const s=(0,a.div)({style:{display:"table-cell"},class:v.tooltip_row_label},0!=n.length?`${n}: `:"");e.appendChild(s);const i=(0,a.span)();i.dataset.value="";const o=(0,a.span)({class:v.tooltip_color_block}," ");o.dataset.swatch="",(0,a.undisplay)(o);const l=(0,a.div)({style:{display:"table-cell"},class:v.tooltip_row_value},i,o);e.appendChild(l)}return t}_render_template(e,t,n,s){const i=e.cloneNode(!0),o=(0,f.is_undefined)(s.image_index)?s.index:s.image_index,l=i.querySelectorAll("[data-value]"),r=i.querySelectorAll("[data-swatch]"),c=/\$color(\[.*\])?:(\w*)/,_=/\$swatch:(\w*)/;for(const[[,e],i]of(0,h.enumerate)(t)){const t=e.match(_),p=e.match(c);if(null!=t||null!=p){if(null!=t){const[,e]=t,s=n.get_column(e);if(null==s)l[i].textContent=`${e} unknown`;else{const e=(0,f.isNumber)(o)?s[o]:null;null!=e&&(r[i].style.backgroundColor=(0,u.color2css)(e),(0,a.display)(r[i]))}}if(null!=p){const[,e="",t]=p,s=n.get_column(t);if(null==s){l[i].textContent=`${t} unknown`;continue}const c=e.indexOf("hex")>=0,_=e.indexOf("swatch")>=0,d=(0,f.isNumber)(o)?s[o]:null;if(null==d){l[i].textContent="(null)";continue}l[i].textContent=c?(0,u.color2hex)(d):(0,u.color2css)(d),_&&(r[i].style.backgroundColor=(0,u.color2css)(d),(0,a.display)(r[i]))}}else{const t=(0,y.replace_placeholders)(e.replace("$~","$data_"),n,o,this.model.formatters,s);if((0,f.isString)(t))l[i].textContent=t;else for(const e of t)l[i].appendChild(e)}}return i}_render_tooltips(e,t){const{tooltips:n}=this.model,s=t.index;if((0,f.isString)(n)){const i=(0,y.replace_placeholders)({html:n},e,s,this.model.formatters,t);return(0,a.div)(i)}if((0,f.isFunction)(n))return n(e,t);if(n instanceof g.DOMElement){const{_template_view:n}=this;return(0,d.assert)(null!=n),this._update_template(n,e,s,t),n.el.cloneNode(!0)}if(null!=n){const s=this._template_el??(this._template_el=this._create_template(n));return this._render_template(s,n,e,t)}return null}_update_template(e,t,n,s){const{formatters:i}=this.model;e instanceof V.TemplateView?e.update(t,n,s,i):(0,r.traverse_views)([e],(e=>{e instanceof b.PlaceholderView&&e.update(t,n,s,i)}))}}n.HoverToolView=L,L.__name__="HoverToolView";class B extends D.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.tool_icon=x.tool_icon_hover}}n.HoverTool=B,o=B,B.__name__="HoverTool",o.prototype.default_view=L,o.define((({Any:e,Bool:t,Str:n,List:s,Tuple:i,Dict:o,Or:l,Ref:r,Func:a,Auto:_,Nullable:p})=>({tooltips:[p(l(r(g.DOMElement),n,s(i(n,n)),a())),[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[o(l(r(P.CustomJSHover),c.BuiltinFormatter)),{}],renderers:[l(s(r(R.DataRenderer)),_),"auto"],mode:[c.HoverMode,"mouse"],muted_policy:[c.MutedPolicy,"show"],point_policy:[c.PointPolicy,"snap_to_data"],line_policy:[c.LinePolicy,"nearest"],show_arrow:[t,!0],anchor:[c.Anchor,"center"],attachment:[c.TooltipAttachment,"horizontal"],callback:[p(e),null]}))),o.register_alias("hover",(()=>new o))}, -function _(e,t,a,l,n){l();const o=e(402),r=e(314),s=e(527),c=e(20),_=e(21);a.Formatter=(0,_.Or)(c.BuiltinFormatter,(0,_.Ref)(r.CustomJS),(0,_.Ref)(s.CustomJSHover));class m extends o.DOMElementView{}a.PlaceholderView=m,m.__name__="PlaceholderView",m.tag_name="span";class d extends o.DOMElement{constructor(e){super(e)}}a.Placeholder=d,d.__name__="Placeholder"}, -function _(e,i,t,s,a){var n;s();const l=e(402),o=e(531),c=e(529),_=e(56);class r extends l.DOMElementView{constructor(){super(...arguments),this.action_views=new Map}*children(){yield*super.children(),yield*this.action_views.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,_.build_views)(this.action_views,this.model.actions,{parent:this})}remove(){(0,_.remove_views)(this.action_views),super.remove()}update(e,i,t,s){(0,_.traverse_views)([this],(a=>{a instanceof c.PlaceholderView&&a.update(e,i,t,s)}));for(const s of this.action_views.values())s.update(e,i,t)}}t.TemplateView=r,r.__name__="TemplateView";class v extends l.DOMElement{}t.Template=v,n=v,v.__name__="Template",n.prototype.default_view=r,n.define((({List:e,Ref:i})=>({actions:[e(i(o.Action)),[]]})))}, +function _(e,t,n,s,i){var o;s(),n._nearest_line_hit=G,n._line_hit=E;const l=e(1),r=e(56),a=e(63),c=e(20),_=l.__importStar(e(229)),p=e(15),d=e(12),u=e(22),h=e(34),m=e(50),y=e(245),f=e(8),x=e(123),v=l.__importStar(e(422)),w=e(420),g=e(409),b=e(537),V=e(538),C=e(234),S=e(231),M=e(369),$=e(220),A=e(376),T=e(230),k=e(236),H=e(235),R=e(219),z=e(218),N=e(459),O=e(108),P=e(535),D=e(302);function G(e,t,n,s){const i={x:n[e],y:s[e]},o={x:n[e+1],y:s[e+1]},{sx:l,sy:r}=t,[a,c]=function(){if("span"==t.type)return"h"==t.direction?[Math.abs(i.x-l),Math.abs(o.x-l)]:[Math.abs(i.y-r),Math.abs(o.y-r)];const e={x:l,y:r};return[_.dist_2_pts(i,e),_.dist_2_pts(o,e)]}();return adelete this._template_el)),this.on_change([e,t,n],(async()=>await this._update_ttmodels())),this.connect(this.plot_view.repainted,(()=>{if(this.model.active&&null!=this._current_sxy){const[e,t]=this._current_sxy;this._inspect(e,t)}}))}async _update_ttmodels(){const{ttmodels:e}=this;e.clear();const{tooltips:t}=this.model;if(null==t)return;const{computed_renderers:n}=this;for(const t of n){const n=new w.Tooltip({content:document.createElement("div"),attachment:this.model.attachment,show_arrow:this.model.show_arrow,interactive:!1,visible:!0,position:null});t instanceof z.GlyphRenderer?e.set(t,n):t instanceof N.GraphRenderer&&(e.set(t.node_renderer,n),e.set(t.edge_renderer,n))}await(0,r.build_views)(this._ttviews,[...e.values()],{parent:this.plot_view});const s=[...function*(){for(const e of n)e instanceof z.GlyphRenderer?yield e:e instanceof N.GraphRenderer&&(yield e.node_renderer,yield e.edge_renderer)}()],i=this._slots.get(this.update);if(null!=i){const e=new Set(s.map((e=>e.data_source)));p.Signal.disconnect_receiver(this,i,e)}for(const e of s)this.connect(e.data_source.inspect,this.update)}get computed_renderers(){const{renderers:e}=this.model,t=this.plot_view.model.data_renderers;return(0,O.compute_renderers)(e,t)}_clear(){this._inspect(1/0,1/0);for(const[,e]of this.ttmodels)e.clear()}_move(e){if(!this.model.active)return;const{sx:t,sy:n}=e;this.plot_view.frame.bbox.contains(t,n)?(this._current_sxy=[t,n],this._inspect(t,n)):this._clear()}_move_exit(){this._current_sxy=null,this._clear()}_inspect(e,t){const n=(()=>{if("mouse"==this.model.mode)return{type:"point",sx:e,sy:t};return{type:"span",direction:"vline"==this.model.mode?"h":"v",sx:e,sy:t}})();for(const e of this.computed_renderers){const t=e.get_selection_manager(),s=this.plot_view.views.find_one(e);null!=s&&t.inspect(s,n)}this._emit_callback(n)}_update(e,t,n){const s=e.get_selection_manager(),i=s.inspectors.get(e),o=e.view.convert_selection_to_subset(i);if(i.is_empty()&&null==i.view)return void n.clear();const l=s.source,r=this.plot_view.views.find_one(e);if(null==r)return;const{sx:c,sy:_}=t,p=r.coordinates.x_scale,u=r.coordinates.y_scale,h=p.invert(c),m=u.invert(_),{glyph:y}=r,f=[];if(y instanceof T.PatchView){const[t,n]=[c,_],[s,i]=[h,m],o={index:null,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:s,snap_y:i,snap_sx:t,snap_sy:n,name:e.name},r=this._render_tooltips(l,o);f.push([t,n,r])}else if(y instanceof S.HAreaStepView||y instanceof C.HAreaView||y instanceof H.VAreaStepView||y instanceof k.VAreaView)for(const t of o.line_indices){const[n,s]=[h,m],[i,r]=[c,_],a={index:t,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:n,snap_y:s,snap_sx:i,snap_sy:r,name:e.name,indices:o.line_indices},p=this._render_tooltips(l,a);f.push([i,r,p])}else if(y instanceof $.LineView){const{line_policy:n}=this.model;for(const s of o.line_indices){const[[i,a],[d,x],v]=(()=>{const{x:e,y:i}=y;switch(n){case"interp":{const[e,n]=y.get_interpolation_hit(s,t);return[[e,n],[p.compute(e),u.compute(n)],s]}case"prev":{const[t,n]=E(y.sx,y.sy,s);return[[e[s+1],i[s+1]],t,n]}case"next":{const[t,n]=E(y.sx,y.sy,s+1);return[[e[s+1],i[s+1]],t,n]}case"nearest":{const[n,o]=G(s,t,y.sx,y.sy);return[[e[o],i[o]],n,o]}case"none":{const e=r.coordinates.x_scale,t=r.coordinates.y_scale;return[[e.invert(c),t.invert(_)],[c,_],s]}}})(),w={index:v,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:i,snap_y:a,snap_sx:d,snap_sy:x,name:e.name,indices:o.line_indices},g=this._render_tooltips(l,w);f.push([d,x,g])}}else if(y instanceof M.ImageBaseView)for(const t of i.image_indices){const[n,s]=[c,_],[i,o]=[h,m],r={index:t.index,glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:i,snap_y:o,snap_sx:n,snap_sy:s,name:e.name,image_index:t},a=this._render_tooltips(l,r);f.push([n,s,a])}else for(const n of o.indices)if(y instanceof A.MultiLineView&&0!=o.multiline_indices.size){const{line_policy:s}=this.model;for(const i of o.multiline_indices.get(n)??[]){const[[r,a],[x,v],w]=(()=>{if("interp"==s){const[e,s]=y.get_interpolation_hit(n,i,t);return[[e,s],[p.compute(e),u.compute(s)],i]}const[e,o]=[y.xs.get(n),y.ys.get(n)];if("prev"==s){const[t,s]=E(y.sxs.get(n),y.sys.get(n),i);return[[e[i],o[i]],t,s]}if("next"==s){const[t,s]=E(y.sxs.get(n),y.sys.get(n),i+1);return[[e[i],o[i]],t,s]}if("nearest"==s){const[s,l]=G(i,t,y.sxs.get(n),y.sys.get(n));return[[e[l],o[l]],s,l]}(0,d.unreachable)()})(),g={index:e.view.convert_indices_from_subset([n])[0],glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:r,snap_y:a,snap_sx:x,snap_sy:v,name:e.name,indices:o.multiline_indices,segment_index:w},b=this._render_tooltips(l,g);f.push([x,v,b])}}else{const t=y.x?.[n],s=y.y?.[n],{point_policy:i,anchor:r}=this.model,[a,p]=function(){if("snap_to_data"==i){const e=y.get_anchor_point(r,n,[c,_]);if(null!=e)return[e.x,e.y];const t=y.get_anchor_point("center",n,[c,_]);return null!=t?[t.x,t.y]:[c,_]}return[c,_]}(),d={index:e.view.convert_indices_from_subset([n])[0],glyph_view:y,type:y.model.type,x:h,y:m,sx:c,sy:_,snap_x:t,snap_y:s,snap_sx:a,snap_sy:p,name:e.name,indices:o.indices},u=this._render_tooltips(l,d);f.push([a,p,u])}const{bbox:x}=this.plot_view.frame,v=f.filter((([e,t])=>x.contains(e,t)));if(0==v.length)n.clear();else{const{content:e}=n;(0,d.assert)(e instanceof Node),(0,a.empty)(e);for(const[,,t]of v)null!=t&&e.appendChild(t);const[t,s]=v[v.length-1];n.show({x:t,y:s})}}update([e,{geometry:t}]){if(!this.model.active)return;if("point"!=t.type&&"span"!=t.type)return;if("ignore"==this.model.muted_policy&&e.muted)return;const n=this.ttmodels.get(e);(0,f.is_undefined)(n)||this._update(e,t,n)}_emit_callback(e){const{callback:t}=this.model;if(null!=t)for(const n of this.computed_renderers){if(!(n instanceof z.GlyphRenderer))continue;const s=this.plot_view.views.find_one(n);if(null==s)continue;const{x_scale:i,y_scale:o}=s.coordinates,l=i.invert(e.sx),r=o.invert(e.sy),a=n.data_source.inspected;(0,m.execute)(t,this.model,{geometry:{x:l,y:r,...e},renderer:n,index:a})}}_create_template(e){const t=(0,a.div)({style:{display:"table",borderSpacing:"2px"}});for(const[n]of e){const e=(0,a.div)({style:{display:"table-row"}});t.appendChild(e);const s=(0,a.div)({style:{display:"table-cell"},class:v.tooltip_row_label},0!=n.length?`${n}: `:"");e.appendChild(s);const i=(0,a.span)();i.dataset.value="";const o=(0,a.span)({class:v.tooltip_color_block}," ");o.dataset.swatch="",(0,a.undisplay)(o);const l=(0,a.div)({style:{display:"table-cell"},class:v.tooltip_row_value},i,o);e.appendChild(l)}return t}_render_template(e,t,n,s,i){const o=e.cloneNode(!0),l=o.querySelectorAll("[data-value]"),r=o.querySelectorAll("[data-swatch]");for(const[[,e],o]of(0,h.enumerate)(t)){const t=e.match(B),c=e.match(L);if(null!=t||null!=c){if(null!=t){const[,e]=t,i=n.get_column(e);if(null==i)l[o].textContent=`${e} unknown`;else{const e=(0,f.isNumber)(s)?i[s]:null;null!=e&&(r[o].style.backgroundColor=(0,u.color2css)(e),(0,a.display)(r[o]))}}if(null!=c){const[,e="",t]=c,i=n.get_column(t);if(null==i){l[o].textContent=`${t} unknown`;continue}const _=e.indexOf("hex")>=0,p=e.indexOf("swatch")>=0,d=(0,f.isNumber)(s)?i[s]:null;if(null==d){l[o].textContent="(null)";continue}l[o].textContent=_?(0,u.color2hex)(d):(0,u.color2css)(d),p&&(r[o].style.backgroundColor=(0,u.color2css)(d),(0,a.display)(r[o]))}}else{const t=(0,y.replace_placeholders)(e.replace("$~","$data_"),n,s,this.model.formatters,i);if((0,f.isString)(t))l[o].textContent=t;else for(const e of t)l[o].appendChild(e)}}return o}_render_tooltips(e,t){const{tooltips:n}=this.model,s=(0,f.is_undefined)(t.image_index)?t.index:t.image_index;if((0,f.isString)(n)){const i=(0,y.replace_placeholders)({html:n},e,s,this.model.formatters,t);return(0,a.div)(i)}if((0,f.isFunction)(n))return n(e,t);if(n instanceof g.DOMElement){const{_template_view:n}=this;return(0,d.assert)(null!=n),this._update_template(n,e,s,t),n.el.cloneNode(!0)}if(null!=n){const i=this._template_el??(this._template_el=this._create_template(n));return this._render_template(i,n,e,s,t)}return null}_update_template(e,t,n,s){const{formatters:i}=this.model;e instanceof V.TemplateView?e.update(t,n,s,i):(0,r.traverse_views)([e],(e=>{e instanceof b.PlaceholderView&&e.update(t,n,s,i)}))}}n.HoverToolView=F,F.__name__="HoverToolView";class I extends D.InspectTool{constructor(e){super(e),this.tool_name="Hover",this.tool_icon=x.tool_icon_hover}}n.HoverTool=I,o=I,I.__name__="HoverTool",o.prototype.default_view=F,o.define((({Any:e,Bool:t,Str:n,List:s,Tuple:i,Dict:o,Or:l,Ref:r,Func:a,Auto:_,Nullable:p})=>({tooltips:[p(l(r(g.DOMElement),n,s(i(n,n)),a())),[["index","$index"],["data (x, y)","($x, $y)"],["screen (x, y)","($sx, $sy)"]]],formatters:[o(l(r(P.CustomJSHover),c.BuiltinFormatter)),{}],renderers:[l(s(r(R.DataRenderer)),_),"auto"],mode:[c.HoverMode,"mouse"],muted_policy:[c.MutedPolicy,"show"],point_policy:[c.PointPolicy,"snap_to_data"],line_policy:[c.LinePolicy,"nearest"],show_arrow:[t,!0],anchor:[c.Anchor,"center"],attachment:[c.TooltipAttachment,"horizontal"],callback:[p(e),null]}))),o.register_alias("hover",(()=>new o))}, +function _(e,t,a,l,n){l();const o=e(409),r=e(315),s=e(535),c=e(20),_=e(21);a.Formatter=(0,_.Or)(c.BuiltinFormatter,(0,_.Ref)(r.CustomJS),(0,_.Ref)(s.CustomJSHover));class m extends o.DOMElementView{}a.PlaceholderView=m,m.__name__="PlaceholderView",m.tag_name="span";class d extends o.DOMElement{constructor(e){super(e)}}a.Placeholder=d,d.__name__="Placeholder"}, +function _(e,i,t,s,a){var n;s();const l=e(409),o=e(539),c=e(537),_=e(56);class r extends l.DOMElementView{constructor(){super(...arguments),this.action_views=new Map}*children(){yield*super.children(),yield*this.action_views.values()}async lazy_initialize(){await super.lazy_initialize(),await(0,_.build_views)(this.action_views,this.model.actions,{parent:this})}remove(){(0,_.remove_views)(this.action_views),super.remove()}update(e,i,t,s){(0,_.traverse_views)([this],(a=>{a instanceof c.PlaceholderView&&a.update(e,i,t,s)}));for(const s of this.action_views.values())s.update(e,i,t)}}t.TemplateView=r,r.__name__="TemplateView";class v extends l.DOMElement{}t.Template=v,n=v,v.__name__="Template",n.prototype.default_view=r,n.define((({List:e,Ref:i})=>({actions:[e(i(o.Action)),[]]})))}, function _(e,o,_,n,c){n();const s=e(51),t=e(58);class i extends t.View{}_.ActionView=i,i.__name__="ActionView";class d extends s.Model{constructor(e){super(e)}}_.Action=d,d.__name__="Action",d.__module__="bokeh.models.dom"}, -function _(e,l,t,o,a){o(),a("Action",e(531).Action),a("ColorRef",e(533).ColorRef),a("DOMElement",e(402).DOMElement),a("DOMNode",e(125).DOMNode);var S=e(437);a("Span",S.Span),a("Div",S.Div),a("Table",S.Table),a("TableRow",S.TableRow),a("HTML",e(401).HTML),a("Index",e(535).Index),a("Placeholder",e(529).Placeholder),a("Styles",e(85).Styles);var n=e(86);a("InlineStyleSheet",n.InlineStyleSheet),a("GlobalInlineStyleSheet",n.GlobalInlineStyleSheet),a("ImportedStyleSheet",n.ImportedStyleSheet),a("GlobalImportedStyleSheet",n.GlobalImportedStyleSheet),a("Template",e(530).Template),a("Text",e(320).Text),a("ToggleGroup",e(536).ToggleGroup),a("ValueOf",e(537).ValueOf),a("ValueRef",e(534).ValueRef)}, -function _(e,l,t,o,s){var a;o();const _=e(1),n=e(534),i=e(244),r=e(63),c=_.__importStar(e(415));class h extends n.ValueRefView{render(){super.render(),this.value_el=(0,r.span)(),this.swatch_el=(0,r.span)({class:c.tooltip_color_block}," "),this.el.appendChild(this.value_el),this.el.appendChild(this.swatch_el)}update(e,l,t,o){const s=(0,i._get_column_value)(this.model.field,e,l),a=null==s?"???":`${s}`;this.el.textContent=a}}t.ColorRefView=h,h.__name__="ColorRefView";class d extends n.ValueRef{constructor(e){super(e)}}t.ColorRef=d,a=d,d.__name__="ColorRef",a.prototype.default_view=h,a.define((({Bool:e})=>({hex:[e,!0],swatch:[e,!0]})))}, -function _(e,t,a,l,o){var n;l();const s=e(529),r=e(314),i=e(527),c=e(244),f=e(50),u=e(8);class d extends s.PlaceholderView{update(e,t,a,l){const{field:o,format:n,formatter:s}=this.model,d=(0,c._get_column_value)(o,e,t),m=e=>{null==e?this.el.textContent=c.MISSING:e instanceof Node?this.el.replaceChildren(e):(0,u.isArray)(e)?this.el.replaceChildren(...e.map((e=>e instanceof Node?e:`${e}`))):this.el.textContent=`${e}`};if(s instanceof r.CustomJS)(async()=>{const e=await(0,f.execute)(s,this.model,{value:d,format:n,vars:a});m(e)})();else{const e=null==n?c.DEFAULT_FORMATTERS.basic(d,"",a):s instanceof i.CustomJSHover?s.format(d,n,a):c.DEFAULT_FORMATTERS[s](d,n,a);m(e)}}}a.ValueRefView=d,d.__name__="ValueRefView";class m extends s.Placeholder{constructor(e){super(e)}}a.ValueRef=m,n=m,m.__name__="ValueRef",n.prototype.default_view=d,n.define((({Str:e,Nullable:t})=>({field:[e],format:[t(e),null],formatter:[s.Formatter,"raw"]})))}, -function _(e,n,t,l,d){var s;l();const _=e(529);class a extends _.PlaceholderView{update(e,n,t,l){this.el.textContent=null==n?"(null)":`${n}`}}t.IndexView=a,a.__name__="IndexView";class o extends _.Placeholder{constructor(e){super(e)}}t.Index=o,s=o,o.__name__="Index",s.prototype.default_view=a}, -function _(e,o,r,t,s){var n;t();const u=e(531),i=e(124),p=e(34);class g extends u.ActionView{update(e,o,r){for(const[e,r]of(0,p.enumerate)(this.model.groups))e.visible=o==r}}r.ToggleGroupView=g,g.__name__="ToggleGroupView";class _ extends u.Action{constructor(e){super(e)}}r.ToggleGroup=_,n=_,_.__name__="ToggleGroup",n.prototype.default_view=g,n.define((({List:e,Ref:o})=>({groups:[e(o(i.RendererGroup)),[]]})))}, -function _(e,t,n,s,r){var o;s();const i=e(402),a=e(14),l=e(42);class c extends i.DOMElementView{connect_signals(){super.connect_signals();const{obj:e,attr:t}=this.model;t in e.properties&&this.on_change(e.properties[t],(()=>this.render()))}render(){super.render(),this.el.style.display="contents";const e=(()=>{const{obj:e,attr:t}=this.model;if(t in e.properties){const n=e.properties[t].get_value();return(0,l.to_string)(n)}return``})();this.el.textContent=e}}n.ValueOfView=c,c.__name__="ValueOfView";class p extends i.DOMElement{constructor(e){super(e)}}n.ValueOf=p,o=p,p.__name__="ValueOf",o.prototype.default_view=c,o.define((({Str:e,Ref:t})=>({obj:[t(a.HasProps)],attr:[e]})))}, -], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/object":9,"core/util/array":10,"core/util/math":11,"core/util/assert":12,"core/util/arrayable":13,"core/has_props":14,"core/signaling":15,"core/util/defer":16,"core/util/refs":17,"core/properties":18,"core/logging":19,"core/enums":20,"core/kinds":21,"core/util/color":22,"core/util/svg_colors":23,"core/types":24,"core/util/bitset":25,"core/util/eq":26,"core/util/platform":27,"core/vectorization":28,"core/settings":29,"core/util/ndarray":30,"core/util/cloneable":31,"core/serialization/index":32,"core/serialization/serializer":33,"core/util/iterator":34,"core/serialization/buffer":35,"core/util/buffer":36,"core/serialization/reps":37,"core/diagnostics":38,"core/uniforms":39,"core/util/string":40,"document/events":41,"core/util/pretty":42,"core/patching":43,"core/util/set":44,"core/util/typed_array":45,"core/resolvers":46,"core/serialization/deserializer":47,"core/util/slice":48,"core/util/version":49,"core/util/callbacks":50,"model":51,"document/defs":52,"core/bokeh_events":53,"embed/standalone":54,"core/view_manager":55,"core/build_views":56,"core/dom_view":57,"core/view":58,"models/coordinates/node":59,"models/coordinates/coordinate":60,"models/coordinates/xy":61,"models/coordinates/indexed":62,"core/dom":63,"core/util/bbox":64,"core/css":65,"styles/base.css":66,"embed/server":67,"client/connection":68,"protocol/message":69,"protocol/receiver":70,"client/session":71,"embed/dom":72,"embed/notebook":73,"protocol/index":74,"safely":75,"models/main":76,"models/index":77,"models/annotations/index":78,"models/annotations/area_visuals":79,"core/property_mixins":80,"models/annotations/annotation":81,"models/renderers/composite_renderer":82,"models/renderers/renderer":83,"models/ui/styled_element":84,"models/dom/styles":85,"models/dom/stylesheets":86,"core/visuals/index":87,"core/visuals/line":88,"core/visuals/visual":89,"core/visuals/fill":90,"core/visuals/text":91,"core/visuals/hatch":92,"core/visuals/patterns":93,"core/visuals/image":94,"models/coordinates/coordinate_mapping":95,"models/scales/scale":96,"models/transforms/transform":97,"models/ranges/range":98,"models/ranges/range1d":99,"models/ranges/numerical_range":100,"models/scales/linear_scale":101,"models/scales/continuous_scale":102,"models/scales/log_scale":103,"models/scales/categorical_scale":104,"models/scales/composite_scale":105,"models/ranges/data_range1d":106,"models/ranges/data_range":107,"models/util":108,"models/ranges/factor_range":109,"models/ui/menus/menu":110,"models/ui/ui_element":111,"core/util/canvas":112,"core/util/svg":113,"core/util/affine":114,"core/util/random":115,"styles/ui.css":116,"models/ui/menus/menu_item":117,"models/ui/menus/action_item":118,"models/callbacks/callback":119,"models/ui/menus/checkable_item":120,"models/ui/menus/divider_item":121,"styles/menus_.css":122,"styles/icons.css":123,"models/renderers/renderer_group":124,"models/dom/dom_node":125,"models/annotations/arrow":126,"models/annotations/data_annotation":127,"models/sources/columnar_data_source":128,"core/selection_manager":129,"models/selections/selection":130,"models/selections/interaction_policy":131,"models/sources/data_source":132,"models/sources/column_data_source":133,"core/util/projections":134,"models/annotations/arrow_head":168,"models/graphics/marking":169,"models/annotations/base_color_bar":170,"models/annotations/title":171,"models/annotations/text_annotation":172,"core/layout/side_panel":173,"core/layout/types":174,"core/layout/layoutable":175,"models/text/base_text":176,"models/text/utils":177,"models/text/math_text":178,"core/util/image":179,"core/graphics":180,"core/util/text":181,"models/text/providers":182,"core/util/modules":183,"models/text/plain_text":184,"models/common/kinds":185,"models/common/resolve":186,"models/common/painting":187,"models/canvas/cartesian_frame":188,"models/axes/axis":189,"models/renderers/guide_renderer":190,"models/tickers/ticker":191,"models/formatters/tick_formatter":192,"models/policies/labeling":193,"models/axes/linear_axis":194,"models/axes/continuous_axis":195,"models/formatters/basic_tick_formatter":196,"models/tickers/basic_ticker":197,"models/tickers/adaptive_ticker":198,"models/tickers/continuous_ticker":199,"models/tickers/index":200,"models/tickers/categorical_ticker":201,"models/tickers/composite_ticker":202,"models/tickers/datetime_ticker":203,"models/tickers/days_ticker":204,"models/tickers/single_interval_ticker":205,"models/tickers/util":206,"models/tickers/months_ticker":207,"models/tickers/years_ticker":208,"models/tickers/fixed_ticker":209,"models/tickers/log_ticker":210,"models/tickers/mercator_ticker":211,"models/tickers/binned_ticker":212,"models/mappers/scanning_color_mapper":213,"models/mappers/continuous_color_mapper":214,"models/mappers/color_mapper":215,"models/mappers/mapper":216,"models/renderers/glyph_renderer":217,"models/renderers/data_renderer":218,"models/glyphs/line":219,"models/glyphs/xy_glyph":220,"models/glyphs/glyph":221,"core/util/ragged_array":222,"core/util/spatial":223,"models/graphics/decoration":226,"models/glyphs/utils":227,"core/hittest":228,"models/glyphs/patch":229,"models/glyphs/harea_step":230,"models/glyphs/area":231,"core/util/flip_step_mode":232,"models/glyphs/harea":233,"models/glyphs/varea_step":234,"models/glyphs/varea":235,"models/sources/cds_view":236,"models/filters/filter":237,"models/filters/all_indices":238,"models/filters/intersection_filter":239,"models/filters/composite_filter":240,"models/formatters/index":241,"models/formatters/categorical_tick_formatter":242,"models/formatters/datetime_tick_formatter":243,"core/util/templating":244,"models/formatters/customjs_tick_formatter":248,"models/formatters/log_tick_formatter":249,"models/formatters/mercator_tick_formatter":250,"models/formatters/numeral_tick_formatter":251,"models/formatters/printf_tick_formatter":252,"models/scales/index":253,"models/scales/linear_interpolation_scale":254,"models/ranges/index":255,"core/layout/index":256,"core/layout/alignments":257,"core/layout/grid":258,"core/layout/border":259,"models/annotations/band":260,"models/annotations/upper_lower":261,"models/annotations/box_annotation":262,"models/common/box_kinds":263,"models/annotations/color_bar":264,"models/axes/index":265,"models/axes/categorical_axis":266,"models/axes/datetime_axis":267,"models/axes/log_axis":268,"models/axes/mercator_axis":269,"models/mappers/index":270,"models/mappers/categorical_color_mapper":271,"models/mappers/categorical_mapper":272,"models/mappers/categorical_marker_mapper":273,"models/mappers/categorical_pattern_mapper":274,"models/mappers/linear_color_mapper":275,"models/mappers/log_color_mapper":276,"models/mappers/eqhist_color_mapper":277,"models/mappers/stack_color_mapper":278,"models/mappers/weighted_stack_color_mapper":279,"models/annotations/contour_color_bar":280,"models/annotations/label":281,"models/annotations/label_set":282,"models/annotations/legend":283,"models/annotations/legend_item":284,"models/annotations/poly_annotation":285,"models/annotations/scale_bar":286,"models/annotations/dimensional":287,"models/annotations/slope":288,"models/annotations/span":289,"models/annotations/toolbar_panel":290,"models/tools/toolbar":291,"models/tools/tool":292,"models/tools/tool_proxy":293,"models/tools/tool_button":294,"core/ui_gestures":295,"core/util/menus":296,"styles/menus.css":297,"styles/tool_button.css":298,"models/tools/gestures/gesture_tool":299,"models/tools/on_off_button":300,"models/tools/inspectors/inspect_tool":301,"models/tools/actions/action_tool":302,"models/tools/click_button":303,"models/tools/actions/help_tool":304,"styles/toolbar.css":305,"styles/logo.css":306,"models/annotations/whisker":307,"models/annotations/html/index":308,"models/annotations/html/label":309,"models/annotations/html/text_annotation":310,"models/annotations/html/label_set":311,"models/annotations/html/title":312,"models/callbacks/index":313,"models/callbacks/customjs":314,"models/callbacks/open_url":315,"models/callbacks/set_value":316,"models/callbacks/toggle_visibility":317,"models/callbacks/open_dialog":318,"models/ui/dialog":319,"models/dom/text":320,"styles/dialogs.css":321,"models/callbacks/close_dialog":322,"models/canvas/index":323,"models/canvas/canvas":324,"core/ui_events":325,"core/util/wheel":326,"styles/canvas.css":327,"models/coordinates/index":328,"models/expressions/index":329,"models/expressions/expression":330,"models/expressions/customjs_expr":331,"models/expressions/stack":332,"models/expressions/cumsum":333,"models/expressions/minimum":334,"models/expressions/maximum":335,"models/expressions/coordinate_transform":336,"models/expressions/polar":337,"models/filters/index":338,"models/filters/boolean_filter":339,"models/filters/customjs_filter":340,"models/filters/group_filter":341,"models/filters/index_filter":342,"models/filters/inversion_filter":343,"models/filters/union_filter":344,"models/filters/difference_filter":345,"models/filters/symmetric_difference_filter":346,"models/glyphs/index":347,"models/glyphs/annular_wedge":348,"models/glyphs/annulus":349,"models/glyphs/arc":350,"models/glyphs/bezier":351,"core/util/algorithms":352,"models/glyphs/block":353,"models/glyphs/lrtb":354,"models/glyphs/circle":355,"models/glyphs/ellipse":356,"models/glyphs/center_rotatable":357,"models/glyphs/hbar":358,"models/glyphs/hex_tile":359,"models/glyphs/hspan":360,"models/glyphs/hstrip":361,"models/glyphs/image":362,"models/glyphs/image_base":363,"models/glyphs/image_rgba":364,"models/glyphs/image_stack":365,"models/glyphs/image_url":366,"models/glyphs/mathml_glyph":367,"models/glyphs/math_text_glyph":368,"models/glyphs/text":369,"models/glyphs/multi_line":370,"models/glyphs/multi_polygons":371,"models/glyphs/patches":372,"models/glyphs/quad":373,"models/glyphs/quadratic":374,"models/glyphs/ray":375,"models/glyphs/rect":376,"models/glyphs/scatter":377,"models/glyphs/marker":378,"models/glyphs/defs":379,"models/glyphs/segment":380,"models/glyphs/spline":381,"core/util/interpolation":382,"models/glyphs/step":383,"models/glyphs/tex_glyph":384,"models/glyphs/vbar":385,"models/glyphs/vspan":386,"models/glyphs/vstrip":387,"models/glyphs/wedge":388,"models/graphics/index":389,"models/graphs/index":390,"models/graphs/graph_hit_test_policy":391,"models/graphs/layout_provider":392,"models/graphs/static_layout_provider":393,"models/grids/index":394,"models/grids/grid":395,"models/layouts/index":396,"models/layouts/column":397,"models/layouts/flex_box":398,"models/layouts/layout_dom":399,"models/ui/pane":400,"models/dom/html":401,"models/dom/dom_element":402,"models/layouts/alignments":403,"models/layouts/grid_box":404,"models/layouts/css_grid_box":405,"models/layouts/group_box":406,"styles/group_box.css":407,"models/layouts/hbox":408,"models/layouts/row":409,"models/layouts/scroll_box":410,"models/layouts/spacer":411,"models/layouts/tab_panel":412,"models/ui/tooltip":413,"models/selectors/selector":414,"styles/tooltips.css":415,"models/layouts/tabs":416,"styles/tabs.css":417,"models/layouts/vbox":418,"models/misc/index":419,"models/misc/group_by":420,"models/text/index":421,"models/transforms/index":422,"models/transforms/customjs_transform":423,"models/transforms/dodge":424,"models/transforms/range_transform":425,"models/transforms/interpolator":426,"models/transforms/jitter":427,"models/random/random_generator":428,"models/transforms/linear_interpolator":429,"models/transforms/step_interpolator":430,"models/plots/index":431,"models/plots/gmap_plot":432,"models/plots/plot":433,"models/plots/plot_canvas":434,"models/ui/panel":435,"styles/panels.css":436,"models/dom/elements":437,"core/util/throttle":438,"models/plots/range_manager":439,"models/plots/state_manager":440,"styles/plots.css":441,"styles/attribution.css":442,"models/plots/gmap_plot_canvas":443,"models/plots/gmap":444,"models/plots/grid_plot":445,"models/plots/figure":446,"models/policies/index":447,"models/random/index":448,"models/random/park_miller_lcg":449,"models/renderers/index":450,"models/renderers/contour_renderer":451,"models/renderers/graph_renderer":452,"models/selections/index":453,"models/selectors/index":454,"models/selectors/by_id":455,"models/selectors/by_class":456,"models/selectors/by_css":457,"models/selectors/by_xpath":458,"models/sources/index":459,"models/sources/server_sent_data_source":460,"models/sources/web_data_source":461,"models/sources/ajax_data_source":462,"models/sources/geojson_data_source":463,"models/tiles/index":464,"models/tiles/bbox_tile_source":465,"models/tiles/mercator_tile_source":466,"models/tiles/tile_source":467,"models/tiles/tile_utils":468,"models/tiles/quadkey_tile_source":469,"models/tiles/tile_renderer":470,"models/tiles/wmts_tile_source":471,"models/tiles/tms_tile_source":472,"models/textures/index":473,"models/textures/canvas_texture":474,"models/textures/texture":475,"models/textures/image_url_texture":476,"models/ui/index":477,"models/ui/icons/index":478,"models/ui/icons/builtin_icon":479,"models/ui/icons/icon":480,"models/ui/icons/svg_icon":481,"models/ui/icons/tabler_icon":482,"models/ui/menus/index":483,"models/ui/examiner":484,"styles/examiner.css":485,"styles/pretty.css":486,"models/tools/index":487,"models/tools/actions/index":488,"models/tools/actions/copy_tool":489,"models/tools/actions/custom_action":490,"models/tools/actions/fullscreen_tool":491,"models/tools/actions/examine_tool":492,"models/tools/actions/redo_tool":493,"models/tools/actions/plot_action_tool":494,"models/tools/actions/reset_tool":495,"models/tools/actions/save_tool":496,"models/tools/actions/undo_tool":497,"models/tools/actions/zoom_in_tool":498,"models/tools/actions/zoom_base_tool":499,"core/util/zoom":500,"models/tools/actions/zoom_out_tool":501,"models/tools/edit/index":502,"models/tools/edit/edit_tool":503,"models/tools/edit/box_edit_tool":504,"models/tools/edit/freehand_draw_tool":505,"models/tools/edit/line_edit_tool":506,"models/tools/edit/line_tool":507,"models/tools/edit/point_draw_tool":508,"models/tools/edit/poly_draw_tool":509,"models/tools/edit/poly_tool":510,"models/tools/edit/poly_edit_tool":511,"models/tools/gestures/index":512,"models/tools/gestures/box_select_tool":513,"models/tools/gestures/region_select_tool":514,"models/tools/gestures/select_tool":515,"models/tools/gestures/box_zoom_tool":516,"models/tools/gestures/lasso_select_tool":517,"models/tools/gestures/poly_select_tool":518,"models/tools/gestures/pan_tool":519,"models/tools/gestures/range_tool":520,"models/tools/gestures/tap_tool":521,"models/tools/gestures/common":522,"models/tools/gestures/wheel_pan_tool":523,"models/tools/gestures/wheel_zoom_tool":524,"models/tools/inspectors/index":525,"models/tools/inspectors/crosshair_tool":526,"models/tools/inspectors/customjs_hover":527,"models/tools/inspectors/hover_tool":528,"models/dom/placeholder":529,"models/dom/template":530,"models/dom/action":531,"models/dom/index":532,"models/dom/color_ref":533,"models/dom/value_ref":534,"models/dom/index_":535,"models/dom/toggle_group":536,"models/dom/value_of":537}, {});}); +function _(e,l,t,o,a){o(),a("Action",e(539).Action),a("ColorRef",e(541).ColorRef),a("DOMElement",e(409).DOMElement),a("DOMNode",e(125).DOMNode);var S=e(444);a("Span",S.Span),a("Div",S.Div),a("Table",S.Table),a("TableRow",S.TableRow),a("HTML",e(408).HTML),a("Index",e(543).Index),a("Placeholder",e(537).Placeholder),a("Styles",e(85).Styles);var n=e(86);a("InlineStyleSheet",n.InlineStyleSheet),a("GlobalInlineStyleSheet",n.GlobalInlineStyleSheet),a("ImportedStyleSheet",n.ImportedStyleSheet),a("GlobalImportedStyleSheet",n.GlobalImportedStyleSheet),a("Template",e(538).Template),a("Text",e(321).Text),a("ToggleGroup",e(544).ToggleGroup),a("ValueOf",e(545).ValueOf),a("ValueRef",e(542).ValueRef)}, +function _(e,l,t,o,s){var a;o();const _=e(1),n=e(542),i=e(245),r=e(63),c=_.__importStar(e(422));class h extends n.ValueRefView{render(){super.render(),this.value_el=(0,r.span)(),this.swatch_el=(0,r.span)({class:c.tooltip_color_block}," "),this.el.appendChild(this.value_el),this.el.appendChild(this.swatch_el)}update(e,l,t,o){const s=(0,i._get_column_value)(this.model.field,e,l),a=null==s?"???":`${s}`;this.el.textContent=a}}t.ColorRefView=h,h.__name__="ColorRefView";class d extends n.ValueRef{constructor(e){super(e)}}t.ColorRef=d,a=d,d.__name__="ColorRef",a.prototype.default_view=h,a.define((({Bool:e})=>({hex:[e,!0],swatch:[e,!0]})))}, +function _(e,t,a,l,o){var n;l();const s=e(537),r=e(315),i=e(535),c=e(245),f=e(50),u=e(8);class d extends s.PlaceholderView{update(e,t,a,l){const{field:o,format:n,formatter:s}=this.model,d=(0,c._get_column_value)(o,e,t),m=e=>{null==e?this.el.textContent=c.MISSING:e instanceof Node?this.el.replaceChildren(e):(0,u.isArray)(e)?this.el.replaceChildren(...e.map((e=>e instanceof Node?e:`${e}`))):this.el.textContent=`${e}`};if(s instanceof r.CustomJS)(async()=>{const e=await(0,f.execute)(s,this.model,{value:d,format:n,vars:a});m(e)})();else{const e=null==n?c.DEFAULT_FORMATTERS.basic(d,"",a):s instanceof i.CustomJSHover?s.format(d,n,a):c.DEFAULT_FORMATTERS[s](d,n,a);m(e)}}}a.ValueRefView=d,d.__name__="ValueRefView";class m extends s.Placeholder{constructor(e){super(e)}}a.ValueRef=m,n=m,m.__name__="ValueRef",n.prototype.default_view=d,n.define((({Str:e,Nullable:t})=>({field:[e],format:[t(e),null],formatter:[s.Formatter,"raw"]})))}, +function _(e,n,t,l,d){var s;l();const _=e(537);class a extends _.PlaceholderView{update(e,n,t,l){this.el.textContent=null==n?"(null)":`${n}`}}t.IndexView=a,a.__name__="IndexView";class o extends _.Placeholder{constructor(e){super(e)}}t.Index=o,s=o,o.__name__="Index",s.prototype.default_view=a}, +function _(e,o,r,t,s){var n;t();const u=e(539),i=e(124),p=e(34);class g extends u.ActionView{update(e,o,r){for(const[e,r]of(0,p.enumerate)(this.model.groups))e.visible=o==r}}r.ToggleGroupView=g,g.__name__="ToggleGroupView";class _ extends u.Action{constructor(e){super(e)}}r.ToggleGroup=_,n=_,_.__name__="ToggleGroup",n.prototype.default_view=g,n.define((({List:e,Ref:o})=>({groups:[e(o(i.RendererGroup)),[]]})))}, +function _(e,t,n,s,r){var o;s();const i=e(409),a=e(14),l=e(42);class c extends i.DOMElementView{connect_signals(){super.connect_signals();const{obj:e,attr:t}=this.model;t in e.properties&&this.on_change(e.properties[t],(()=>this.render()))}render(){super.render(),this.el.style.display="contents";const e=(()=>{const{obj:e,attr:t}=this.model;if(t in e.properties){const n=e.properties[t].get_value();return(0,l.to_string)(n)}return``})();this.el.textContent=e}}n.ValueOfView=c,c.__name__="ValueOfView";class p extends i.DOMElement{constructor(e){super(e)}}n.ValueOf=p,o=p,p.__name__="ValueOf",o.prototype.default_view=c,o.define((({Str:e,Ref:t})=>({obj:[t(a.HasProps)],attr:[e]})))}, +], 0, {"main":0,"tslib":1,"index":2,"version":3,"embed/index":4,"document/index":5,"document/document":6,"base":7,"core/util/types":8,"core/util/object":9,"core/util/array":10,"core/util/math":11,"core/util/assert":12,"core/util/arrayable":13,"core/has_props":14,"core/signaling":15,"core/util/defer":16,"core/util/refs":17,"core/properties":18,"core/logging":19,"core/enums":20,"core/kinds":21,"core/util/color":22,"core/util/svg_colors":23,"core/types":24,"core/util/bitset":25,"core/util/eq":26,"core/util/platform":27,"core/vectorization":28,"core/settings":29,"core/util/ndarray":30,"core/util/cloneable":31,"core/serialization/index":32,"core/serialization/serializer":33,"core/util/iterator":34,"core/serialization/buffer":35,"core/util/buffer":36,"core/serialization/reps":37,"core/diagnostics":38,"core/uniforms":39,"core/util/string":40,"document/events":41,"core/util/pretty":42,"core/patching":43,"core/util/set":44,"core/util/typed_array":45,"core/resolvers":46,"core/serialization/deserializer":47,"core/util/slice":48,"core/util/version":49,"core/util/callbacks":50,"model":51,"document/defs":52,"core/bokeh_events":53,"embed/standalone":54,"core/view_manager":55,"core/build_views":56,"core/dom_view":57,"core/view":58,"models/coordinates/node":59,"models/coordinates/coordinate":60,"models/coordinates/xy":61,"models/coordinates/indexed":62,"core/dom":63,"core/util/bbox":64,"core/css":65,"styles/base.css":66,"embed/server":67,"client/connection":68,"protocol/message":69,"protocol/receiver":70,"client/session":71,"embed/dom":72,"embed/notebook":73,"protocol/index":74,"safely":75,"models/main":76,"models/index":77,"models/annotations/index":78,"models/annotations/area_visuals":79,"core/property_mixins":80,"models/annotations/annotation":81,"models/renderers/composite_renderer":82,"models/renderers/renderer":83,"models/ui/styled_element":84,"models/dom/styles":85,"models/dom/stylesheets":86,"core/visuals/index":87,"core/visuals/line":88,"core/visuals/visual":89,"core/visuals/fill":90,"core/visuals/text":91,"core/visuals/hatch":92,"core/visuals/patterns":93,"core/visuals/image":94,"models/coordinates/coordinate_mapping":95,"models/scales/scale":96,"models/transforms/transform":97,"models/ranges/range":98,"models/ranges/range1d":99,"models/ranges/numerical_range":100,"models/scales/linear_scale":101,"models/scales/continuous_scale":102,"models/scales/log_scale":103,"models/scales/categorical_scale":104,"models/scales/composite_scale":105,"models/ranges/data_range1d":106,"models/ranges/data_range":107,"models/util":108,"models/ranges/factor_range":109,"models/ui/menus/menu":110,"models/ui/ui_element":111,"core/util/canvas":112,"core/util/svg":113,"core/util/affine":114,"core/util/random":115,"styles/ui.css":116,"models/ui/menus/menu_item":117,"models/ui/menus/action_item":118,"models/callbacks/callback":119,"models/ui/menus/checkable_item":120,"models/ui/menus/divider_item":121,"styles/menus_.css":122,"styles/icons.css":123,"models/renderers/renderer_group":124,"models/dom/dom_node":125,"models/annotations/arrow":126,"models/annotations/data_annotation":127,"models/sources/columnar_data_source":128,"core/selection_manager":129,"models/selections/selection":130,"models/selections/interaction_policy":131,"models/sources/data_source":132,"models/sources/column_data_source":133,"core/util/projections":134,"models/annotations/arrow_head":168,"models/graphics/marking":169,"models/annotations/base_color_bar":170,"models/annotations/title":171,"models/annotations/text_annotation":172,"core/layout/side_panel":173,"core/layout/types":174,"core/layout/layoutable":175,"models/text/base_text":176,"models/text/utils":177,"models/text/math_text":178,"core/util/image":179,"core/graphics":180,"core/util/text":181,"models/text/providers":182,"core/util/modules":183,"models/text/plain_text":184,"models/common/kinds":185,"models/common/resolve":186,"models/common/painting":187,"models/canvas/cartesian_frame":188,"models/axes/axis":189,"models/renderers/guide_renderer":190,"models/tickers/ticker":191,"models/formatters/tick_formatter":192,"models/policies/labeling":193,"models/axes/linear_axis":194,"models/axes/continuous_axis":195,"models/formatters/basic_tick_formatter":196,"models/tickers/basic_ticker":197,"models/tickers/adaptive_ticker":198,"models/tickers/continuous_ticker":199,"models/tickers/index":200,"models/tickers/categorical_ticker":201,"models/tickers/composite_ticker":202,"models/tickers/customjs_ticker":203,"models/tickers/datetime_ticker":204,"models/tickers/days_ticker":205,"models/tickers/single_interval_ticker":206,"models/tickers/util":207,"models/tickers/months_ticker":208,"models/tickers/years_ticker":209,"models/tickers/fixed_ticker":210,"models/tickers/log_ticker":211,"models/tickers/mercator_ticker":212,"models/tickers/binned_ticker":213,"models/mappers/scanning_color_mapper":214,"models/mappers/continuous_color_mapper":215,"models/mappers/color_mapper":216,"models/mappers/mapper":217,"models/renderers/glyph_renderer":218,"models/renderers/data_renderer":219,"models/glyphs/line":220,"models/glyphs/xy_glyph":221,"models/glyphs/glyph":222,"core/util/ragged_array":223,"core/util/spatial":224,"models/graphics/decoration":227,"models/glyphs/utils":228,"core/hittest":229,"models/glyphs/patch":230,"models/glyphs/harea_step":231,"models/glyphs/area":232,"core/util/flip_step_mode":233,"models/glyphs/harea":234,"models/glyphs/varea_step":235,"models/glyphs/varea":236,"models/sources/cds_view":237,"models/filters/filter":238,"models/filters/all_indices":239,"models/filters/intersection_filter":240,"models/filters/composite_filter":241,"models/formatters/index":242,"models/formatters/categorical_tick_formatter":243,"models/formatters/datetime_tick_formatter":244,"core/util/templating":245,"models/formatters/customjs_tick_formatter":249,"models/formatters/log_tick_formatter":250,"models/formatters/mercator_tick_formatter":251,"models/formatters/numeral_tick_formatter":252,"models/formatters/printf_tick_formatter":253,"models/scales/index":254,"models/scales/linear_interpolation_scale":255,"models/ranges/index":256,"core/layout/index":257,"core/layout/alignments":258,"core/layout/grid":259,"core/layout/border":260,"models/annotations/band":261,"models/annotations/upper_lower":262,"models/annotations/box_annotation":263,"models/common/box_kinds":264,"models/annotations/color_bar":265,"models/axes/index":266,"models/axes/categorical_axis":267,"models/axes/datetime_axis":268,"models/axes/log_axis":269,"models/axes/mercator_axis":270,"models/mappers/index":271,"models/mappers/categorical_color_mapper":272,"models/mappers/categorical_mapper":273,"models/mappers/categorical_marker_mapper":274,"models/mappers/categorical_pattern_mapper":275,"models/mappers/linear_color_mapper":276,"models/mappers/log_color_mapper":277,"models/mappers/eqhist_color_mapper":278,"models/mappers/stack_color_mapper":279,"models/mappers/weighted_stack_color_mapper":280,"models/annotations/contour_color_bar":281,"models/annotations/label":282,"models/annotations/label_set":283,"models/annotations/legend":284,"models/annotations/legend_item":285,"models/annotations/poly_annotation":286,"models/annotations/scale_bar":287,"models/annotations/dimensional":288,"models/annotations/slope":289,"models/annotations/span":290,"models/annotations/toolbar_panel":291,"models/tools/toolbar":292,"models/tools/tool":293,"models/tools/tool_proxy":294,"models/tools/tool_button":295,"core/ui_gestures":296,"core/util/menus":297,"styles/menus.css":298,"styles/tool_button.css":299,"models/tools/gestures/gesture_tool":300,"models/tools/on_off_button":301,"models/tools/inspectors/inspect_tool":302,"models/tools/actions/action_tool":303,"models/tools/click_button":304,"models/tools/actions/help_tool":305,"styles/toolbar.css":306,"styles/logo.css":307,"models/annotations/whisker":308,"models/annotations/html/index":309,"models/annotations/html/label":310,"models/annotations/html/text_annotation":311,"models/annotations/html/label_set":312,"models/annotations/html/title":313,"models/callbacks/index":314,"models/callbacks/customjs":315,"models/callbacks/open_url":316,"models/callbacks/set_value":317,"models/callbacks/toggle_visibility":318,"models/callbacks/open_dialog":319,"models/ui/dialog":320,"models/dom/text":321,"styles/dialogs.css":322,"models/callbacks/close_dialog":323,"models/canvas/index":324,"models/canvas/canvas":325,"core/ui_events":326,"core/util/wheel":327,"styles/canvas.css":328,"models/comparisons/index":329,"models/comparisons/comparison":330,"models/comparisons/customjs_compare":331,"models/comparisons/nan_compare":332,"models/coordinates/index":333,"models/expressions/index":334,"models/expressions/expression":335,"models/expressions/customjs_expr":336,"models/expressions/stack":337,"models/expressions/cumsum":338,"models/expressions/minimum":339,"models/expressions/maximum":340,"models/expressions/coordinate_transform":341,"models/expressions/polar":342,"models/filters/index":343,"models/filters/boolean_filter":344,"models/filters/customjs_filter":345,"models/filters/group_filter":346,"models/filters/index_filter":347,"models/filters/inversion_filter":348,"models/filters/union_filter":349,"models/filters/difference_filter":350,"models/filters/symmetric_difference_filter":351,"models/glyphs/index":352,"models/glyphs/annular_wedge":353,"models/glyphs/annulus":354,"models/glyphs/arc":355,"models/glyphs/bezier":356,"core/util/algorithms":357,"models/glyphs/block":358,"models/glyphs/lrtb":359,"models/glyphs/circle":360,"models/glyphs/radial_glyph":361,"models/glyphs/ellipse":362,"models/glyphs/center_rotatable":363,"models/glyphs/hbar":364,"models/glyphs/hex_tile":365,"models/glyphs/hspan":366,"models/glyphs/hstrip":367,"models/glyphs/image":368,"models/glyphs/image_base":369,"models/glyphs/image_rgba":370,"models/glyphs/image_stack":371,"models/glyphs/image_url":372,"models/glyphs/mathml_glyph":373,"models/glyphs/math_text_glyph":374,"models/glyphs/text":375,"models/glyphs/multi_line":376,"models/glyphs/multi_polygons":377,"models/glyphs/ngon":378,"models/glyphs/patches":379,"models/glyphs/quad":380,"models/glyphs/quadratic":381,"models/glyphs/ray":382,"models/glyphs/rect":383,"models/glyphs/scatter":384,"models/glyphs/marker":385,"models/glyphs/defs":386,"models/glyphs/segment":387,"models/glyphs/spline":388,"core/util/interpolation":389,"models/glyphs/step":390,"models/glyphs/tex_glyph":391,"models/glyphs/vbar":392,"models/glyphs/vspan":393,"models/glyphs/vstrip":394,"models/glyphs/wedge":395,"models/graphics/index":396,"models/graphs/index":397,"models/graphs/graph_hit_test_policy":398,"models/graphs/layout_provider":399,"models/graphs/static_layout_provider":400,"models/grids/index":401,"models/grids/grid":402,"models/layouts/index":403,"models/layouts/column":404,"models/layouts/flex_box":405,"models/layouts/layout_dom":406,"models/ui/pane":407,"models/dom/html":408,"models/dom/dom_element":409,"models/layouts/alignments":410,"models/layouts/grid_box":411,"models/layouts/css_grid_box":412,"models/layouts/group_box":413,"styles/group_box.css":414,"models/layouts/hbox":415,"models/layouts/row":416,"models/layouts/scroll_box":417,"models/layouts/spacer":418,"models/layouts/tab_panel":419,"models/ui/tooltip":420,"models/selectors/selector":421,"styles/tooltips.css":422,"models/layouts/tabs":423,"styles/tabs.css":424,"models/layouts/vbox":425,"models/misc/index":426,"models/misc/group_by":427,"models/text/index":428,"models/transforms/index":429,"models/transforms/customjs_transform":430,"models/transforms/dodge":431,"models/transforms/range_transform":432,"models/transforms/interpolator":433,"models/transforms/jitter":434,"models/random/random_generator":435,"models/transforms/linear_interpolator":436,"models/transforms/step_interpolator":437,"models/plots/index":438,"models/plots/gmap_plot":439,"models/plots/plot":440,"models/plots/plot_canvas":441,"models/ui/panel":442,"styles/panels.css":443,"models/dom/elements":444,"core/util/throttle":445,"models/plots/range_manager":446,"models/plots/state_manager":447,"styles/plots.css":448,"styles/attribution.css":449,"models/plots/gmap_plot_canvas":450,"models/plots/gmap":451,"models/plots/grid_plot":452,"models/plots/figure":453,"models/policies/index":454,"models/random/index":455,"models/random/park_miller_lcg":456,"models/renderers/index":457,"models/renderers/contour_renderer":458,"models/renderers/graph_renderer":459,"models/selections/index":460,"models/selectors/index":461,"models/selectors/by_id":462,"models/selectors/by_class":463,"models/selectors/by_css":464,"models/selectors/by_xpath":465,"models/sources/index":466,"models/sources/server_sent_data_source":467,"models/sources/web_data_source":468,"models/sources/ajax_data_source":469,"models/sources/geojson_data_source":470,"models/tiles/index":471,"models/tiles/bbox_tile_source":472,"models/tiles/mercator_tile_source":473,"models/tiles/tile_source":474,"models/tiles/tile_utils":475,"models/tiles/quadkey_tile_source":476,"models/tiles/tile_renderer":477,"models/tiles/wmts_tile_source":478,"models/tiles/tms_tile_source":479,"models/textures/index":480,"models/textures/canvas_texture":481,"models/textures/texture":482,"models/textures/image_url_texture":483,"models/ui/index":484,"models/ui/icons/index":485,"models/ui/icons/builtin_icon":486,"models/ui/icons/icon":487,"models/ui/icons/svg_icon":488,"models/ui/icons/tabler_icon":489,"models/ui/menus/index":490,"models/ui/examiner":491,"styles/examiner.css":492,"styles/pretty.css":493,"models/tools/index":494,"models/tools/actions/index":495,"models/tools/actions/copy_tool":496,"models/tools/actions/custom_action":497,"models/tools/actions/fullscreen_tool":498,"models/tools/actions/examine_tool":499,"models/tools/actions/click_pan_tool":500,"models/tools/actions/plot_action_tool":501,"models/tools/gestures/pan_tool":502,"models/tools/actions/redo_tool":503,"models/tools/actions/reset_tool":504,"models/tools/actions/save_tool":505,"models/tools/actions/undo_tool":506,"models/tools/actions/zoom_in_tool":507,"models/tools/actions/zoom_base_tool":508,"core/util/zoom":509,"models/tools/actions/zoom_out_tool":510,"models/tools/edit/index":511,"models/tools/edit/edit_tool":512,"models/tools/edit/box_edit_tool":513,"models/tools/edit/freehand_draw_tool":514,"models/tools/edit/line_edit_tool":515,"models/tools/edit/line_tool":516,"models/tools/edit/point_draw_tool":517,"models/tools/edit/poly_draw_tool":518,"models/tools/edit/poly_tool":519,"models/tools/edit/poly_edit_tool":520,"models/tools/gestures/index":521,"models/tools/gestures/box_select_tool":522,"models/tools/gestures/region_select_tool":523,"models/tools/gestures/select_tool":524,"models/tools/gestures/box_zoom_tool":525,"models/tools/gestures/lasso_select_tool":526,"models/tools/gestures/poly_select_tool":527,"models/tools/gestures/range_tool":528,"models/tools/gestures/tap_tool":529,"models/tools/gestures/common":530,"models/tools/gestures/wheel_pan_tool":531,"models/tools/gestures/wheel_zoom_tool":532,"models/tools/inspectors/index":533,"models/tools/inspectors/crosshair_tool":534,"models/tools/inspectors/customjs_hover":535,"models/tools/inspectors/hover_tool":536,"models/dom/placeholder":537,"models/dom/template":538,"models/dom/action":539,"models/dom/index":540,"models/dom/color_ref":541,"models/dom/value_ref":542,"models/dom/index_":543,"models/dom/toggle_group":544,"models/dom/value_of":545}, {});}); diff --git a/instock/web/static/js/bokeh-widgets-3.5.1.min.js b/instock/web/static/js/bokeh-widgets-3.6.0.min.js similarity index 82% rename from instock/web/static/js/bokeh-widgets-3.5.1.min.js rename to instock/web/static/js/bokeh-widgets-3.6.0.min.js index af47a415a..5ce6fe73c 100644 --- a/instock/web/static/js/bokeh-widgets-3.5.1.min.js +++ b/instock/web/static/js/bokeh-widgets-3.6.0.min.js @@ -30,7 +30,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ (function(root, factory) { - factory(root["Bokeh"], "3.5.1"); + factory(root["Bokeh"], "3.6.0"); })(this, function(Bokeh, version) { let define; return (function(modules, entry, aliases, externals) { @@ -42,53 +42,53 @@ } }) ({ -588: function _(t,e,i,o,r){o();const s=t(1).__importStar(t(589));i.Widgets=s;(0,t(7).register_models)(s)}, -589: function _(e,t,i,o,r){o();const u=e(1);r("AbstractButton",e(590).AbstractButton),r("AutocompleteInput",e(594).AutocompleteInput),r("Button",e(600).Button),r("CheckboxButtonGroup",e(601).CheckboxButtonGroup),r("CheckboxGroup",e(604).CheckboxGroup),r("Checkbox",e(607).Checkbox),r("ColorPicker",e(609).ColorPicker),r("DatePicker",e(610).DatePicker),r("DateRangePicker",e(622).DateRangePicker),r("DatetimePicker",e(623).DatetimePicker),r("DatetimeRangePicker",e(625).DatetimeRangePicker),r("Div",e(626).Div),r("Dropdown",e(629).Dropdown),r("FileInput",e(631).FileInput),r("HelpButton",e(632).HelpButton),r("InputWidget",e(597).InputWidget),r("Markup",e(627).Markup),r("MultiChoice",e(633).MultiChoice),r("MultiSelect",e(636).MultiSelect),r("MultipleDatePicker",e(637).MultipleDatePicker),r("MultipleDatetimePicker",e(638).MultipleDatetimePicker),r("NumericInput",e(639).NumericInput),r("PaletteSelect",e(640).PaletteSelect),r("Paragraph",e(646).Paragraph),r("PasswordInput",e(647).PasswordInput),r("PreText",e(649).PreText),r("RadioButtonGroup",e(650).RadioButtonGroup),r("RadioGroup",e(651).RadioGroup),r("Select",e(652).Select),r("Spinner",e(653).Spinner),r("Switch",e(654).Switch),r("TextAreaInput",e(656).TextAreaInput),r("TextInput",e(595).TextInput),r("TimePicker",e(657).TimePicker),r("Toggle",e(658).Toggle),r("Widget",e(697).Widget),u.__exportStar(e(659),i)}, -590: function _(e,t,i,n,s){var l;n();const o=e(1),r=e(20),a=e(63),_=e(56),c=e(8),h=e(591),u=e(125),d=e(320),b=e(480),w=o.__importStar(e(593)),v=w;class p extends h.ControlView{*controls(){yield this.button_el}*children(){yield*super.children(),null!=this.label_view&&(yield this.label_view),null!=this.icon_view&&(yield this.icon_view)}async lazy_initialize(){await super.lazy_initialize(),await this._rebuild_label(),await this._rebuild_icon()}async _rebuild_label(){this.label_view?.remove();const e=(()=>{const{label:e}=this.model;return(0,c.isString)(e)?new d.Text({content:e}):e})();this.label_view=await this.owner.build_view(e,this)}async _rebuild_icon(){this.icon_view?.remove();const{icon:e}=this.model;null!=e&&(this.icon_view=await(0,_.build_view)(e,{parent:this}))}connect_signals(){super.connect_signals();const{label:e,icon:t,button_type:i,disabled:n}=this.model.properties;this.on_transitive_change(e,(async()=>{await this._rebuild_label(),this.render()})),this.on_transitive_change(t,(async()=>{await this._rebuild_icon(),this.render()})),this.on_change([i,n],(()=>{this.render()}))}remove(){this.label_view?.remove(),this.icon_view?.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),w.default]}_render_button(...e){return(0,a.button)({type:"button",disabled:this.model.disabled,class:[v.btn,v[`btn_${this.model.button_type}`]]},...e)}render(){if(super.render(),this.label_view?.render(),this.button_el=this._render_button(this.label_view?.el),this.button_el.addEventListener("click",(()=>this.click())),null!=this.icon_view){const e=""!=this.model.label?(0,a.nbsp)():(0,a.text)("");(0,a.prepend)(this.button_el,this.icon_view.el,e),this.icon_view.render()}this.group_el=(0,a.div)({class:v.btn_group},this.button_el),this.shadow_el.append(this.group_el)}click(){}}i.AbstractButtonView=p,p.__name__="AbstractButtonView";class y extends h.Control{constructor(e){super(e)}}i.AbstractButton=y,l=y,y.__name__="AbstractButton",l.define((({Str:e,Ref:t,Or:i,Nullable:n})=>({label:[i(t(u.DOMNode),e),"Button"],icon:[n(t(b.Icon)),null],button_type:[r.ButtonType,"default"]})))}, -591: function _(t,n,o,s,e){s();const c=t(697),i=t(63);class l extends c.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.disabled,(t=>{for(const n of this.controls())(0,i.toggle_attribute)(n,"disabled",t)}))}}o.ControlView=l,l.__name__="ControlView";class _ extends c.Widget{constructor(t){super(t)}}o.Control=_,_.__name__="Control"}, -697: function _(t,e,i,r,s){var a;r();const n=t(399),o=t(182);class d extends n.LayoutDOMView{get child_models(){return[]}get provider(){return o.default_provider}async lazy_initialize(){await super.lazy_initialize(),"not_started"==this.provider.status&&await this.provider.fetch()}_after_layout(){super._after_layout(),"loading"==this.provider.status&&(this._has_finished=!1)}process_tex(t){if(null==this.provider.MathJax)return t;const e=this.provider.MathJax.find_tex(t),i=[];let r=0;for(const s of e)i.push(t.slice(r,s.start.n)),i.push(this.provider.MathJax.tex2svg(s.math,{display:s.display}).outerHTML),r=s.end.n;return r0}}i.WidgetView=d,d.__name__="WidgetView";class _ extends n.LayoutDOM{constructor(t){super(t)}}i.Widget=_,a=_,_.__name__="Widget",a.override({margin:5})}, -593: function _(b,o,r,e,t){e(),r.btn="bk-btn",r.active="bk-active",r.btn_default="bk-btn-default",r.btn_primary="bk-btn-primary",r.btn_success="bk-btn-success",r.btn_warning="bk-btn-warning",r.btn_danger="bk-btn-danger",r.btn_light="bk-btn-light",r.btn_group="bk-btn-group",r.vertical="bk-vertical",r.horizontal="bk-horizontal",r.dropdown_toggle="bk-dropdown-toggle",r.default=".bk-btn,::file-selector-button{height:100%;display:inline-block;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;padding:var(--padding-vertical) var(--padding-horizontal);font-size:var(--font-size);border:1px solid transparent;border-radius:var(--border-radius);outline:0;outline-offset:-5px;user-select:none;-webkit-user-select:none;}.bk-btn:hover,::file-selector-button:hover,.bk-btn:focus,::file-selector-button:focus{text-decoration:none;}.bk-btn:active,::file-selector-button:active,.bk-active.bk-btn,.bk-active::file-selector-button{background-image:none;box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}.bk-btn[disabled]{cursor:not-allowed;pointer-events:none;opacity:0.65;box-shadow:none;}::file-selector-button{color:#333;background-color:#fff;border-color:#ccc;}::file-selector-button:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active::file-selector-button{background-color:#ebebeb;border-color:#adadad;}::file-selector-button[disabled],::file-selector-button[disabled]:hover,::file-selector-button[disabled]:focus,::file-selector-button[disabled]:active,.bk-active::file-selector-button[disabled]{background-color:#e6e6e6;border-color:#ccc;}::file-selector-button:focus,::file-selector-button:active{outline:1px dotted #ccc;}.bk-btn-default{color:#333;background-color:#fff;border-color:#ccc;}.bk-btn-default:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-default{background-color:#ebebeb;border-color:#adadad;}.bk-btn-default[disabled],.bk-btn-default[disabled]:hover,.bk-btn-default[disabled]:focus,.bk-btn-default[disabled]:active,.bk-active.bk-btn-default[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-default:focus,.bk-btn-default:active{outline:1px dotted #ccc;}.bk-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd;}.bk-btn-primary:hover{background-color:#3681c1;border-color:#2c699e;}.bk-active.bk-btn-primary{background-color:#3276b1;border-color:#285e8e;}.bk-btn-primary[disabled],.bk-btn-primary[disabled]:hover,.bk-btn-primary[disabled]:focus,.bk-btn-primary[disabled]:active,.bk-active.bk-btn-primary[disabled]{background-color:#506f89;border-color:#357ebd;}.bk-btn-primary:focus,.bk-btn-primary:active{outline:1px dotted #ccc;}.bk-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c;}.bk-btn-success:hover{background-color:#4eb24e;border-color:#409240;}.bk-active.bk-btn-success{background-color:#47a447;border-color:#398439;}.bk-btn-success[disabled],.bk-btn-success[disabled]:hover,.bk-btn-success[disabled]:focus,.bk-btn-success[disabled]:active,.bk-active.bk-btn-success[disabled]{background-color:#667b66;border-color:#4cae4c;}.bk-btn-success:focus,.bk-btn-success:active{outline:1px dotted #ccc;}.bk-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236;}.bk-btn-warning:hover{background-color:#eea43b;border-color:#e89014;}.bk-active.bk-btn-warning{background-color:#ed9c28;border-color:#d58512;}.bk-btn-warning[disabled],.bk-btn-warning[disabled]:hover,.bk-btn-warning[disabled]:focus,.bk-btn-warning[disabled]:active,.bk-active.bk-btn-warning[disabled]{background-color:#c89143;border-color:#eea236;}.bk-btn-warning:focus,.bk-btn-warning:active{outline:1px dotted #ccc;}.bk-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a;}.bk-btn-danger:hover{background-color:#d5433e;border-color:#bd2d29;}.bk-active.bk-btn-danger{background-color:#d2322d;border-color:#ac2925;}.bk-btn-danger[disabled],.bk-btn-danger[disabled]:hover,.bk-btn-danger[disabled]:focus,.bk-btn-danger[disabled]:active,.bk-active.bk-btn-danger[disabled]{background-color:#a55350;border-color:#d43f3a;}.bk-btn-danger:focus,.bk-btn-danger:active{outline:1px dotted #ccc;}.bk-btn-light{color:#333;background-color:#fff;border-color:#ccc;border-color:transparent;}.bk-btn-light:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-light{background-color:#ebebeb;border-color:#adadad;}.bk-btn-light[disabled],.bk-btn-light[disabled]:hover,.bk-btn-light[disabled]:focus,.bk-btn-light[disabled]:active,.bk-active.bk-btn-light[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-light:focus,.bk-btn-light:active{outline:1px dotted #ccc;}.bk-btn-group{height:100%;display:flex;flex-wrap:nowrap;align-items:center;}.bk-btn-group:not(.bk-vertical),.bk-btn-group.bk-horizontal{flex-direction:row;}.bk-btn-group.bk-vertical{flex-direction:column;}.bk-btn-group > .bk-btn{flex-grow:1;}.bk-btn-group:not(.bk-vertical) > .bk-btn + .bk-btn{margin-left:-1px;}.bk-btn-group.bk-vertical > .bk-btn + .bk-btn{margin-top:-1px;}.bk-btn-group:not(.bk-vertical) > .bk-btn:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:first-child:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;}.bk-btn-group:not(.bk-vertical) > .bk-btn:not(:first-child):last-child{border-bottom-left-radius:0;border-top-left-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:not(:first-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}.bk-btn-group > .bk-btn:not(:first-child):not(:last-child){border-radius:0;}.bk-btn-group.bk-vertical > .bk-btn{width:100%;}.bk-btn-group .bk-dropdown-toggle{flex:0 0 0;padding:var(--padding-vertical) calc(var(--padding-horizontal)/2);}"}, -594: function _(e,t,s,i,n){var h;i();const o=e(1),_=e(595),u=e(63),r=e(34),c=e(11),l=e(21),a=o.__importStar(e(599)),m=a,d=(0,l.Enum)("starts_with","includes");class p extends _.TextInputView{constructor(){super(...arguments),this._open=!1,this._last_value="",this._hover_index=0}stylesheets(){return[...super.stylesheets(),a.default]}render(){super.render(),this.input_el.addEventListener("focusin",(()=>this._toggle_menu())),this.menu=(0,u.div)({class:[m.menu,m.below]}),this.menu.addEventListener("click",(e=>this._menu_click(e))),this.menu.addEventListener("mouseover",(e=>this._menu_hover(e))),this.shadow_el.appendChild(this.menu),(0,u.undisplay)(this.menu)}change_input(){this._open&&this.menu.children.length>0?(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu()):this.model.restrict||super.change_input()}_update_completions(e){(0,u.empty)(this.menu);const{max_completions:t}=this.model,s=null!=t?(0,r.take)(e,t):e;for(const e of s){const t=(0,u.div)(e);this.menu.append(t)}this.menu.firstElementChild?.classList.add(m.active)}compute_completions(e){const t=(()=>{const{case_sensitive:e}=this.model;return e?e=>e:e=>e.toLowerCase()})(),s=(()=>{switch(this.model.search_strategy){case"starts_with":return(e,t)=>e.startsWith(t);case"includes":return(e,t)=>e.includes(t)}})(),i=t(e),n=[];for(const e of this.model.completions){s(t(e),i)&&n.push(e)}return n}_toggle_menu(){const{value:e}=this.input_el;if(e.length{t.composedPath().includes(this.el)||(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,(0,u.undisplay)(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element)for(let t=0;t0&&(this.menu.children[this._hover_index].classList.remove(m.active),this._hover_index=(0,c.clamp)(e,0,t-1),this.menu.children[this._hover_index].classList.add(m.active))}_keyup(e){switch(super._keyup(e),e.key){case"Enter":this.change_input();break;case"Escape":this._hide_menu();break;case"ArrowUp":this._bump_hover(this._hover_index-1);break;case"ArrowDown":this._bump_hover(this._hover_index+1);break;default:this._toggle_menu()}}}s.AutocompleteInputView=p,p.__name__="AutocompleteInputView";class v extends _.TextInput{constructor(e){super(e)}}s.AutocompleteInput=v,h=v,v.__name__="AutocompleteInput",h.prototype.default_view=p,h.define((({Bool:e,Int:t,Str:s,List:i,NonNegative:n,Positive:h,Nullable:o})=>({completions:[i(s),[]],min_characters:[n(t),2],max_completions:[o(h(t)),null],case_sensitive:[e,!0],restrict:[e,!0],search_strategy:[d,"starts_with"]})))}, -595: function _(e,t,n,i,s){var u;i();const l=e(1),p=e(596),r=e(63),_=e(53),a=l.__importStar(e(598));class c extends p.TextLikeInputView{connect_signals(){super.connect_signals();const{prefix:e,suffix:t}=this.model.properties;this.on_change([e,t],(()=>this.render()))}_render_input(){this.input_el=(0,r.input)({type:"text",class:a.input});const{prefix:e,suffix:t}=this.model,n=null!=e?(0,r.div)({class:"bk-input-prefix"},e):null,i=null!=t?(0,r.div)({class:"bk-input-suffix"},t):null;return(0,r.div)({class:"bk-input-container"},n,this.input_el,i)}render(){super.render(),this.input_el.addEventListener("keyup",(e=>this._keyup(e)))}_keyup(e){"Enter"!=e.key||e.shiftKey||e.ctrlKey||e.altKey||this.model.trigger_event(new _.ValueSubmit(this.input_el.value))}}n.TextInputView=c,c.__name__="TextInputView";class o extends p.TextLikeInput{constructor(e){super(e)}}n.TextInput=o,u=o,o.__name__="TextInput",u.prototype.default_view=c,u.define((({Str:e,Nullable:t})=>({prefix:[t(e),null],suffix:[t(e),null]})))}, -596: function _(e,t,n,i,l){var s;i();const h=e(597);class a extends h.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,(()=>this.input_el.value=this.model.value)),this.connect(this.model.properties.value_input.change,(()=>this.input_el.value=this.model.value_input)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.max_length.change,(()=>{const{max_length:e}=this.model;null!=e?this.input_el.maxLength=e:this.input_el.removeAttribute("maxLength")}))}render(){super.render();const{input_el:e}=this;e.value=this.model.value,e.disabled=this.model.disabled,e.placeholder=this.model.placeholder,null!=this.model.max_length&&(e.maxLength=this.model.max_length),e.addEventListener("change",(()=>this.change_input())),e.addEventListener("input",(()=>this.change_input_value()))}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_value(){this.model.value_input=this.input_el.value,super.change_input()}}n.TextLikeInputView=a,a.__name__="TextLikeInputView";class u extends h.InputWidget{constructor(e){super(e)}}n.TextLikeInput=u,s=u,u.__name__="TextLikeInput",s.define((({Int:e,Str:t,Nullable:n})=>({value:[t,""],value_input:[t,""],placeholder:[t,""],max_length:[n(e),null]})))}, -597: function _(e,t,i,s,n){var l,o;s();const r=e(1);var c,d=this&&this.__decorate||function(e,t,i,s){var n,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(o=(l<3?n(o):l>3?n(t,i,o):n(t,i))||o);return l>3&&o&&Object.defineProperty(t,i,o),o};const a=e(591),u=e(413),_=e(401),p=e(8),h=e(56),f=e(63),v=e(58),m=e(53),w=r.__importStar(e(598)),b=w,g=r.__importDefault(e(123));let y=(l=class extends m.ModelEvent{constructor(e){super(),this.model=e,this.origin=e}static from_values(e){const{model:t}=e;return new c(t)}},c=l,l.__name__="ClearInput",l);i.ClearInput=y,i.ClearInput=y=c=d([(0,m.server_event)("clear_input")],y);class L extends a.ControlView{constructor(){super(...arguments),this.description=null,this.desc_el=null}*controls(){yield this.input_el}*children(){yield*super.children();const{title:e,description:t}=this;e instanceof v.View&&(yield e),t instanceof v.View&&(yield t)}async lazy_initialize(){await super.lazy_initialize(),await this._build_title(),await this._build_description()}remove(){const{title:e,description:t}=this;e instanceof v.View&&e.remove(),t instanceof v.View&&t.remove(),super.remove()}connect_signals(){super.connect_signals();const{title:e,description:t}=this.model.properties;this.on_change(e,(async()=>{await this._build_title(),this.render()})),this.on_change(t,(async()=>{await this._build_description(),this.render()}))}stylesheets(){return[...super.stylesheets(),w.default,g.default]}render(){super.render(),this.desc_el=this._build_description_el(),this.title_el=this._build_title_el();const e=this._render_input();this.input_el.id="input",this.group_el=(0,f.div)({class:b.input_group},this.title_el,e),this.shadow_el.append(this.group_el)}_build_description_el(){const{description:e}=this;if(null==e)return null;{const t=(0,f.div)({class:b.icon}),i=(0,f.div)({class:b.description},t);if((0,p.isString)(e))i.title=e;else{"auto"==e.model.target&&(e.target=i);let s=!1;const n=i=>{e.model.setv({visible:i,closable:s}),t.classList.toggle(b.opaque,i&&s)};this.on_change(e.model.properties.visible,(()=>{const{visible:t}=e.model;t||(s=!1),n(t)})),i.addEventListener("mouseenter",(()=>{n(!0)})),i.addEventListener("mouseleave",(()=>{s||n(!1)})),document.addEventListener("mousedown",(t=>{const l=t.composedPath();l.includes(e.el)||(l.includes(i)?(s=!s,n(s)):(s=!1,n(!1)))})),window.addEventListener("blur",(()=>{s=!1,n(!1)}))}return i}}async _build_title(){const{title:e}=this.model;e instanceof _.HTML?this.title=await(0,h.build_view)(e,{parent:this}):this.title=e}async _build_description(){const{description:e}=this.model;e instanceof u.Tooltip?this.description=await(0,h.build_view)(e,{parent:this}):this.description=e}_build_title_el(){const{title:e}=this,t=e instanceof _.HTMLView?(e.render(),e.el):e,i=""==e?"none":"";return(0,f.label)({for:"input",style:{display:i}},t,this.desc_el)}change_input(){}}i.InputWidgetView=L,L.__name__="InputWidgetView";class V extends a.Control{constructor(e){super(e)}}i.InputWidget=V,o=V,V.__name__="InputWidget",o.define((({Str:e,Nullable:t,Or:i,Ref:s})=>({title:[i(e,s(_.HTML)),""],description:[t(i(e,s(u.Tooltip))),null]})))}, -598: function _(i,n,t,e,p){e(),t.input="bk-input",t.disabled="bk-disabled",t.input_container="bk-input-container",t.input_prefix="bk-input-prefix",t.input_suffix="bk-input-suffix",t.input_group="bk-input-group",t.inline="bk-inline",t.spin_wrapper="bk-spin-wrapper",t.spin_btn="bk-spin-btn",t.spin_btn_up="bk-spin-btn-up",t.spin_btn_down="bk-spin-btn-down",t.description="bk-description",t.icon="bk-icon",t.opaque="bk-opaque",t.default=':host{--input-min-height:calc(var(--line-height-computed) + 2*var(--padding-vertical) + 2px);}.bk-input{position:relative;display:inline-block;width:100%;flex-grow:1;min-height:var(--input-min-height);padding:0 var(--padding-horizontal);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);resize:none;}.bk-input:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);}.bk-input::placeholder,.bk-input:-ms-input-placeholder,.bk-input::-moz-placeholder,.bk-input::-webkit-input-placeholder{color:#999;opacity:1;}.bk-input[disabled],.bk-input.bk-disabled{cursor:not-allowed;background-color:#eee;opacity:1;}.bk-input-container{width:100%;height:100%;display:flex;flex-direction:row;flex-wrap:nowrap;}.bk-input-container .bk-input-prefix,.bk-input-container .bk-input-suffix{display:flex;align-items:center;flex:0 1 0;border:1px solid #ccc;border-radius:var(--border-radius);padding:0 var(--padding-horizontal);background-color:#e6e6e6;}.bk-input-container .bk-input-prefix{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;}.bk-input-container .bk-input-suffix{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input{flex:1 0 0;}.bk-input-container .bk-input:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;}input[type=file].bk-input{padding-left:0;}input[type=file]::file-selector-button{box-sizing:inherit;font-family:inherit;font-size:inherit;line-height:inherit;}select:not([multiple]).bk-input,select:not([size]).bk-input{height:auto;appearance:none;-webkit-appearance:none;background-image:url(\'data:image/svg+xml;utf8,\');background-position:right 0.5em center;background-size:8px 6px;background-repeat:no-repeat;padding-right:calc(var(--padding-horizontal) + 8px);}option{padding:0;}select[multiple].bk-input,select[size].bk-input,textarea.bk-input{height:auto;}.bk-input-group{position:relative;width:100%;height:100%;display:inline-flex;flex-wrap:nowrap;align-items:start;flex-direction:column;white-space:nowrap;}.bk-input-group.bk-inline{flex-direction:row;}.bk-input-group.bk-inline > *:not(:first-child){margin-left:5px;}.bk-input-group > .bk-spin-wrapper{display:inherit;width:inherit;height:inherit;position:relative;overflow:hidden;padding:0;vertical-align:middle;}.bk-input-group > .bk-spin-wrapper input{padding-right:20px;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn{position:absolute;display:block;height:50%;min-height:0;min-width:0;width:30px;padding:0;margin:0;right:0;border:none;background:none;cursor:pointer;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn:before{content:"";display:inline-block;transform:translateY(-50%);border-left:5px solid transparent;border-right:5px solid transparent;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up{top:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:before{border-bottom:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:disabled:before{border-bottom-color:grey;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down{bottom:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:before{border-top:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:disabled:before{border-top-color:grey;}.bk-description{position:relative;display:inline-block;margin-left:0.25em;vertical-align:middle;margin-top:-2px;cursor:pointer;}.bk-description > .bk-icon{opacity:0.5;width:18px;height:18px;background-color:gray;mask-image:var(--bokeh-icon-help);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-help);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}label:hover > .bk-description > .bk-icon,.bk-icon.bk-opaque{opacity:1;}'}, -599: function _(e,o,i,b,r){b(),i.menu="bk-menu",i.above="bk-above",i.below="bk-below",i.divider="bk-divider",i.active="bk-active",i.default=":host{position:relative;}.bk-menu{position:absolute;left:0;width:100%;z-index:var(--bokeh-top-level);cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);}.bk-menu.bk-above{bottom:100%;}.bk-menu.bk-below{top:100%;}.bk-menu > .bk-divider{height:1px;margin:calc(var(--line-height-computed)/2 - 1px) 0;overflow:hidden;background-color:#e5e5e5;}.bk-menu > :not(.bk-divider){padding:var(--padding-vertical) var(--padding-horizontal);}.bk-menu > :not(.bk-divider):hover,.bk-menu > :not(.bk-divider).bk-active{background-color:#e6e6e6;}"}, -600: function _(t,e,n,o,c){var i;o();const s=t(590),u=t(53);class _ extends s.AbstractButtonView{click(){this.model.trigger_event(new u.ButtonClick),super.click()}}n.ButtonView=_,_.__name__="ButtonView";class r extends s.AbstractButton{constructor(t){super(t)}on_click(t){this.on_event(u.ButtonClick,t)}}n.Button=r,i=r,r.__name__="Button",i.prototype.default_view=_,i.override({label:"Button"})}, -601: function _(t,e,o,c,s){var a;c();const i=t(1),n=t(602),u=i.__importStar(t(593));class r extends n.ToggleButtonGroupView{get active(){return new Set(this.model.active)}change_active(t){const{active:e}=this;e.has(t)?e.delete(t):e.add(t),this.model.active=[...e].sort()}_update_active(){const{active:t}=this;this._buttons.forEach(((e,o)=>{e.classList.toggle(u.active,t.has(o))}))}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends n.ToggleButtonGroup{constructor(t){super(t)}}o.CheckboxButtonGroup=_,a=_,_.__name__="CheckboxButtonGroup",a.prototype.default_view=r,a.define((({Int:t,List:e})=>({active:[e(t),[]]})))}, -602: function _(t,e,n,s,o){var i;s();const r=t(1),l=t(603),a=t(53),_=t(20),d=t(63),u=r.__importStar(t(593)),c=u;class h extends l.OrientedControlView{*controls(){yield*this._buttons}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,(()=>this.render())),this.on_change(t.labels,(()=>this.render())),this.on_change(t.active,(()=>this._update_active()))}stylesheets(){return[...super.stylesheets(),u.default]}render(){super.render(),this._buttons=this.model.labels.map(((t,e)=>{const n=(0,d.button)({class:[c.btn,c[`btn_${this.model.button_type}`]],disabled:this.model.disabled},t);return n.addEventListener("click",(()=>{this.change_active(e),this.model.trigger_event(new a.ButtonClick)})),n})),this._update_active();const t="horizontal"==this.model.orientation?c.horizontal:c.vertical,e=(0,d.div)({class:[c.btn_group,t]},this._buttons);this.shadow_el.appendChild(e)}}n.ToggleButtonGroupView=h,h.__name__="ToggleButtonGroupView";class p extends l.OrientedControl{constructor(t){super(t)}}n.ToggleButtonGroup=p,i=p,p.__name__="ToggleButtonGroup",i.define((({Str:t,List:e})=>({labels:[e(t),[]],button_type:[_.ButtonType,"default"]})))}, -603: function _(n,e,o,t,r){var i;t();const l=n(591),s=n(20);class _ extends l.ControlView{}o.OrientedControlView=_,_.__name__="OrientedControlView";class a extends l.Control{constructor(n){super(n)}}o.OrientedControl=a,i=a,a.__name__="OrientedControl",i.define((()=>({orientation:[s.Orientation,"horizontal"]})))}, -604: function _(e,t,s,n,i){var c;n();const o=e(1),a=e(605),h=e(63),l=e(10),d=e(34),p=o.__importStar(e(598));class r extends a.ToggleInputGroupView{get active(){return new Set(this.model.active)}connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this;for(const[t,s]of(0,d.enumerate)(this._inputs))t.checked=e.has(s)}))}render(){super.render();const e=(0,h.div)({class:[p.input_group,this.model.inline?p.inline:null]});this.shadow_el.appendChild(e);const{active:t,labels:s}=this.model;this._inputs=[];for(let n=0;nthis.change_active(n))),this._inputs.push(i),this.model.disabled&&(i.disabled=!0),(0,l.includes)(t,n)&&(i.checked=!0);const c=(0,h.label)(i,(0,h.span)(s[n]));e.appendChild(c)}}change_active(e){const{active:t}=this;t.has(e)?t.delete(e):t.add(e),this.model.active=[...t].sort()}}s.CheckboxGroupView=r,r.__name__="CheckboxGroupView";class u extends a.ToggleInputGroup{constructor(e){super(e)}}s.CheckboxGroup=u,c=u,u.__name__="CheckboxGroup",c.prototype.default_view=r,c.define((({Int:e,List:t})=>({active:[t(e),[]]})))}, -605: function _(e,t,n,s,o){var l;s();const r=e(1),i=e(591),u=r.__importDefault(e(598)),_=r.__importDefault(e(606));class p extends i.ControlView{*controls(){yield*this._inputs}connect_signals(){super.connect_signals();const{labels:e,inline:t}=this.model.properties;this.on_change([e,t],(()=>this.render()))}stylesheets(){return[...super.stylesheets(),u.default,_.default]}}n.ToggleInputGroupView=p,p.__name__="ToggleInputGroupView";class a extends i.Control{constructor(e){super(e)}}n.ToggleInputGroup=a,l=a,a.__name__="ToggleInputGroup",l.define((({Bool:e,Str:t,List:n})=>({labels:[n(t),[]],inline:[e,!1]})))}, -606: function _(t,i,p,e,n){e(),p.default='input[type="checkbox"],input[type="radio"]{margin:0;}input[type="checkbox"] + *,input[type="radio"] + *{position:relative;top:-2px;margin-left:3px;}'}, -607: function _(e,t,s,l,i){var a;l();const _=e(1),c=e(608),h=e(63),o=_.__importDefault(e(606));class d extends c.ToggleInputView{stylesheets(){return[...super.stylesheets(),o.default]}connect_signals(){super.connect_signals();const{label:e}=this.model.properties;this.on_change(e,(()=>this._update_label()))}render(){super.render(),this.checkbox_el=(0,h.input)({type:"checkbox"}),this.label_el=(0,h.span)(this.model.label),this.checkbox_el.addEventListener("change",(()=>this._toggle_active())),this._update_active(),this._update_disabled(),this.shadow_el.append(this.checkbox_el,this.label_el)}_update_active(){this.checkbox_el.checked=this.model.active}_update_disabled(){this.checkbox_el.toggleAttribute("disabled",this.model.disabled)}_update_label(){this.label_el.textContent=this.model.label}}s.CheckboxView=d,d.__name__="CheckboxView";class n extends c.ToggleInput{constructor(e){super(e)}}s.Checkbox=n,a=n,n.__name__="Checkbox",a.prototype.default_view=d,a.define((({Str:e})=>({label:[e,""]})))}, -608: function _(e,t,i,s,n){var o;s();const a=e(697);class c extends a.WidgetView{connect_signals(){super.connect_signals();const{active:e,disabled:t}=this.model.properties;this.on_change(e,(()=>this._update_active())),this.on_change(t,(()=>this._update_disabled()))}_toggle_active(){this.model.disabled||(this.model.active=!this.model.active)}}i.ToggleInputView=c,c.__name__="ToggleInputView";class _ extends a.Widget{constructor(e){super(e)}}i.ToggleInput=_,o=_,_.__name__="ToggleInput",o.define((({Bool:e})=>({active:[e,!1]})))}, -609: function _(e,t,i,n,o){var s;n();const r=e(1),l=e(597),c=e(63),a=e(22),d=r.__importStar(e(598));class h extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>this.input_el.name=this.model.name??"")),this.connect(this.model.properties.color.change,(()=>this.input_el.value=(0,a.color2hexrgb)(this.model.color))),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled))}_render_input(){return this.input_el=(0,c.input)({type:"color",class:d.input,name:this.model.name,value:(0,a.color2hexrgb)(this.model.color),disabled:this.model.disabled})}render(){super.render(),this.input_el.addEventListener("change",(()=>this.change_input()))}change_input(){this.model.color=this.input_el.value,super.change_input()}}i.ColorPickerView=h,h.__name__="ColorPickerView";class p extends l.InputWidget{constructor(e){super(e)}}i.ColorPicker=p,s=p,p.__name__="ColorPicker",s.prototype.default_view=h,s.define((({Color:e})=>({color:[e,"#000000"]})))}, -610: function _(e,t,a,n,r){var i;n();const s=e(611),l=e(12);class c extends s.BaseDatePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"single"}}_on_change(e){(0,l.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_date(t)}})()}}a.DatePickerView=c,c.__name__="DatePickerView";class _ extends s.BaseDatePicker{constructor(e){super(e)}}a.DatePicker=_,i=_,_.__name__="DatePicker",i.prototype.default_view=c,i.define((({Nullable:e})=>({value:[e(s.DateLike),null]})))}, -611: function _(e,t,a,i,s){var n;i();const l=e(612),c=e(8),r=e(21);a.DateLike=(0,r.Or)((0,r.Ref)(Date),r.Str,r.Float),a.DateLikeList=(0,r.List)((0,r.Or)(a.DateLike,(0,r.Tuple)(a.DateLike,a.DateLike),(0,r.Struct)({from:a.DateLike,to:a.DateLike})));class d extends l.PickerBaseView{_format_date(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:a,disabled_dates:i,enabled_dates:s,date_format:n}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("minDate",this.model.min_date))),this.connect(a.change,(()=>this.picker.set("maxDate",this.model.max_date))),this.connect(i.change,(()=>{const{disabled_dates:e}=this.model;this.picker.set("disable",null!=e?this._convert_date_list(e):[])})),this.connect(s.change,(()=>{const{enabled_dates:e}=this.model;null!=e?this.picker.set("enable",this._convert_date_list(e)):(this.picker.config._enable=void 0,this.picker.redraw(),this.picker.updateValue(!0))})),this.connect(n.change,(()=>this.picker.set("altFormat",this.model.date_format)))}get flatpickr_options(){const{value:e,min_date:t,max_date:a,disabled_dates:i,enabled_dates:s,date_format:n}=this.model,l=super.flatpickr_options;return l.altInput=!0,l.altFormat=n,l.dateFormat="Y-m-d",null!=e&&(l.defaultDate=e),null!=t&&(l.minDate=t),null!=a&&(l.maxDate=a),null!=i&&(l.disable=this._convert_date_list(i)),null!=s&&(l.enable=this._convert_date_list(s)),l}_convert_date_list(e){const t=[];for(const a of e)if((0,c.isArray)(a)){const[e,i]=a;t.push({from:e,to:i})}else t.push(a);return t}}a.BaseDatePickerView=d,d.__name__="BaseDatePickerView";class o extends l.PickerBase{constructor(e){super(e)}}a.BaseDatePicker=o,n=o,o.__name__="BaseDatePicker",n.define((({Nullable:e})=>({min_date:[e(a.DateLike),null],max_date:[e(a.DateLike),null],disabled_dates:[e(a.DateLikeList),null],enabled_dates:[e(a.DateLikeList),null],date_format:[r.Str,"Y-m-d"]})))}, -612: function _(e,t,i,n,o){var s;n();const r=e(1),a=r.__importDefault(e(613)),l=e(597),c=e(63),d=e(20),h=e(63),p=e(12),f=r.__importDefault(e(621)),g=r.__importStar(e(598));class u extends l.InputWidgetView{get picker(){return(0,p.assert)(null!=this._picker),this._picker}*controls(){yield this.picker.altInput??this.input_el}remove(){this._picker?.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),f.default]}connect_signals(){super.connect_signals();const{inline:e}=this.model.properties;this.connect(e.change,(()=>this.picker.set("inline",this.model.inline)))}get flatpickr_options(){return{appendTo:this.group_el,inline:this.model.inline,position:this._position.bind(this),onChange:e=>{this._on_change(e),this.change_input()}}}_render_input(){return this.input_el=(0,c.input)({type:"text",class:g.input,disabled:this.model.disabled})}render(){super.render(),this._picker?.destroy();const e=this.flatpickr_options;this._picker=(0,a.default)(this.input_el,e)}_position(e,t){const i=t??e._positionElement,n=[...e.calendarContainer.children].reduce(((e,t)=>e+(0,h.bounding_box)(t).height),0),o=e.calendarContainer.offsetWidth,s=this.model.position.split(" "),r=s[0],a=s.length>1?s[1]:null,l=i.offsetTop,c=i.offsetTop+i.offsetHeight,d=i.offsetLeft,p=i.offsetLeft+i.offsetWidth,f=i.offsetWidth,g=window.innerHeight-c,u="above"===r||"below"!==r&&gn,_=null!=e.config.appendTo?l+(u?-n-2:i.offsetHeight+2):window.scrollY+l+(u?-n-2:i.offsetHeight+2);if(e.calendarContainer.classList.toggle("arrowTop",!u),e.calendarContainer.classList.toggle("arrowBottom",u),e.config.inline)return;let w=window.scrollX+d,C=!1,m=!1;"center"===a?(w-=(o-f)/2,C=!0):"right"===a&&(w-=o-f,m=!0),e.calendarContainer.classList.toggle("arrowLeft",!C&&!m),e.calendarContainer.classList.toggle("arrowCenter",C),e.calendarContainer.classList.toggle("arrowRight",m);const y=window.document.body.offsetWidth-(window.scrollX+p),k=w+o>window.document.body.offsetWidth,b=y+o>window.document.body.offsetWidth;if(e.calendarContainer.classList.toggle("rightMost",k),!e.config.static)if(e.calendarContainer.style.top=`${_}px`,k)if(b){const t=this.shadow_el.styleSheets[0],i=window.document.body.offsetWidth,n=Math.max(0,i/2-o/2),s=".flatpickr-calendar.centerMost:before",r=".flatpickr-calendar.centerMost:after",a=t.cssRules.length,l=`{left:${d}px;right:auto;}`;e.calendarContainer.classList.toggle("rightMost",!1),e.calendarContainer.classList.toggle("centerMost",!0),t.insertRule(`${s},${r}${l}`,a),e.calendarContainer.style.left=`${n}px`,e.calendarContainer.style.right="auto"}else e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${y}px`;else e.calendarContainer.style.left=`${w}px`,e.calendarContainer.style.right="auto"}}i.PickerBaseView=u,u.__name__="PickerBaseView";class _ extends l.InputWidget{constructor(e){super(e)}}i.PickerBase=_,s=_,_.__name__="PickerBase",s.define((({Bool:e})=>({position:[d.CalendarPosition,"auto"],inline:[e,!1]})))}, -613: function _(e,t,n,a,i){a();const o=e(1);var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0?new Date:new Date(n.config.minDate.getTime()),a=(0,f.getDefaultHours)(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,a=(0,u.getEventTarget)(e),i=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),r=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),f=c+l*s;if(void 0!==i.value&&2===i.value.length){var m=i===n.hourElement,g=i===n.minuteElement;fr&&(f=i===n.hourElement?f-r-(0,d.int)(!n.amPM):o,g&&x(void 0,1,n.hourElement)),n.amPM&&m&&(1===l?f+c===23:Math.abs(f-c)>l)&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=(0,d.pad)(f)}}(e);var i=n._input.value;h(),se(),n._input.value!==i&&n._debouncedChange()}function h(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*(0,d.int)(t===n.l10n.amPM[1]));var r=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=(0,f.calculateSecondsSinceMidnight)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=(0,f.calculateSecondsSinceMidnight)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=(0,f.calculateSecondsSinceMidnight)(a,i,o);if(u>s&&u=12)]),void 0!==n.secondElement&&(n.secondElement.value=(0,d.pad)(a)))}function b(e){var t=(0,u.getEventTarget)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&R(n)}function M(e,t,a,i){return t instanceof Array?t.forEach((function(t){return M(e,t,a,i)})):e instanceof Array?e.forEach((function(e){return M(e,t,a,i)})):(e.addEventListener(t,a,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,i)}}))}function y(){ie("onChange")}function w(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate=0&&(0,f.compareDates)(e,n.selectedDates[1])<=0)}(t)&&!re(t)&&r.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend",""+n.config.getWeek(t)+""),ie("onDayCreate",r),r}function T(e){e.focus(),"range"===n.config.mode&&J(e)}function _(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,i=t;i!=a;i+=e)for(var o=n.daysContainer.children[i],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf("hidden")&&W(s.dateObj))return s}}function I(e,t){var i=a(),o=B(i||document.body),r=void 0!==e?e:o?i:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:_(t>0?1:-1);void 0===r?n._input.focus():o?function(e,t){for(var a=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,o=t>0?1:-1,r=a-n.currentMonth;r!=i;r+=o)for(var l=n.daysContainer.children[r],c=a-n.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf("hidden")&&W(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return T(u)}n.changeMonth(o),I(_(o),0)}(r,t):T(r)}function S(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?"prevMonthDay hidden":"prevMonthDay",s=l?"nextMonthDay hidden":"nextMonthDay",d=i+1-a,f=0;d<=i;d++,f++)r.appendChild(k("flatpickr-day "+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(k("flatpickr-day",new Date(e,t,d),0,f));for(var m=o+1;m<=42-a&&(1===n.config.showMonths||f%7!=0);m++,f++)r.appendChild(k("flatpickr-day "+s,new Date(e,t+1,m%o),0,f));var g=(0,u.createElement)("div","dayContainer");return g.appendChild(r),g}function O(){if(void 0!==n.daysContainer){(0,u.clearNode)(n.daysContainer),n.weekNumbers&&(0,u.clearNode)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&en.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var a=(0,u.createElement)("option","flatpickr-monthDropdown-month");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=(0,m.monthToStr)(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function A(){var e,t=(0,u.createElement)("div","flatpickr-month"),a=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=(0,u.createElement)("span","cur-month"):(n.monthsDropdownContainer=(0,u.createElement)("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),M(n.monthsDropdownContainer,"change",(function(e){var t=(0,u.getEventTarget)(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ie("onMonthChange")})),N(),e=n.monthsDropdownContainer);var i=(0,u.createNumberInput)("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var r=(0,u.createElement)("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),a.appendChild(r),t.appendChild(a),{container:t,yearElement:o,monthElement:e}}function P(){(0,u.clearNode)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=A();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?(0,u.clearNode)(n.weekdayContainer):n.weekdayContainer=(0,u.createElement)("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=(0,u.createElement)("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return F(),n.weekdayContainer}function F(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=l(n.l10n.weekdays.shorthand);e>0&&e\n "+t.join("")+"\n \n "}}function j(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ie("onYearChange"),N()),O(),ie("onMonthChange"),le())}function L(e){return n.calendarContainer.contains(e)}function H(e){if(n.isOpen&&!n.config.inline){var t=(0,u.getEventTarget)(e),a=L(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!L(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&p(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function R(e){if(!(!e||n.config.minDate&&en.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ie("onYearChange"),N())}}function W(e,t){var a;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&(0,f.compareDates)(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&(0,f.compareDates)(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,r=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,l=0,c=void 0;l=c.from.getTime()&&i.getTime()<=c.to.getTime())return o}return!o}function B(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function K(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==ce();!t||!a||e.relatedTarget&&L(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(t){var i=(0,u.getEventTarget)(t),o=n.config.wrap?e.contains(i):i===n._input,r=n.config.allowInput,l=n.isOpen&&(!r||!o),c=n.config.inline&&o&&!r;if(13===t.keyCode&&o){if(r)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(L(i)||l||c){var s=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:s?(t.preventDefault(),p(),G()):Z(t);break;case 27:t.preventDefault(),G();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=a();if(void 0!==n.daysContainer&&(!1===r||d&&B(d))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),j(f),I(_(1),0)):I(void 0,f)}}break;case 38:case 40:t.preventDefault();var m=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),R(n.currentYear-m),I(_(1),0)):s||I(void 0,7*m):i===n.currentYearElement?R(n.currentYear-m):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),p(t),n._debouncedChange());break;case 9:if(s){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),v=g.indexOf(i);if(-1!==v){var D=g[v+(t.shiftKey?-1:1)];t.preventDefault(),(D||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],h(),se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],h(),se()}(o||L(i))&&ie("onKeyDown",t)}function J(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(a,n.selectedDates[0].getTime()),r=Math.max(a,n.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;do&&dc)?c=d:d>i&&(!s||d ."+t)).forEach((function(t){var o=t.dateObj.getTime(),r=c>0&&o0&&o>s;if(r)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));l&&!r||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?"startRange":"endRange"),ia&&o===i&&t.classList.add("endRange"),o>=c&&(0===s||o<=s)&&(0,f.isBetween)(o,i,a)&&t.classList.add("inRange")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||X()}function $(e){return function(t){var a=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),i=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==a&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return W(e)})),n.selectedDates.length||"min"!==e||D(a),se()),n.daysContainer&&(z(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==a&&i.getFullYear()===a.getFullYear())}}function Q(){return n.config.wrap?e.querySelector("[data-input]"):e}function V(){"object"!=typeof n.config.locale&&void 0===v.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=r(r({},v.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?v.l10ns[n.config.locale]:void 0),m.tokenRegex.D="("+n.l10n.weekdays.shorthand.join("|")+")",m.tokenRegex.l="("+n.l10n.weekdays.longhand.join("|")+")",m.tokenRegex.M="("+n.l10n.months.shorthand.join("|")+")",m.tokenRegex.F="("+n.l10n.months.longhand.join("|")+")",m.tokenRegex.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===r(r({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===v.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=(0,f.createDateFormatter)(n),n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n})}function X(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){ie("onPreCalendarPosition");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,d="above"===r||"below"!==r&&sa,f=window.pageYOffset+c.top+(d?-a-2:t.offsetHeight+2);if((0,u.toggleClass)(n.calendarContainer,"arrowTop",!d),(0,u.toggleClass)(n.calendarContainer,"arrowBottom",d),!n.config.inline){var m=window.pageXOffset+c.left,g=!1,p=!1;"center"===l?(m-=(i-c.width)/2,g=!0):"right"===l&&(m-=i-c.width,p=!0),(0,u.toggleClass)(n.calendarContainer,"arrowLeft",!g&&!p),(0,u.toggleClass)(n.calendarContainer,"arrowCenter",g),(0,u.toggleClass)(n.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+i>window.document.body.offsetWidth,D=h+i>window.document.body.offsetWidth;if((0,u.toggleClass)(n.calendarContainer,"rightMost",v),!n.config.static)if(n.calendarContainer.style.top=f+"px",v)if(D){var C=function(){for(var e=null,t=0;tn.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=a,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var r=re(i);r?n.selectedDates.splice(parseInt(r),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==(0,f.compareDates)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(h(),o){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(ie("onYearChange"),N()),ie("onMonthChange")}if(le(),O(),se(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():T(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,s="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||s)&&G()}y()}}n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=M,n._setHoursFromDate=D,n._positionCalendar=X,n.changeMonth=j,n.changeYear=R,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=(0,f.getDefaultHours)(n.config);C(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ie("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));ie("onClose")},n.onMouseOver=J,n._createElement=u.createElement,n.createDay=k,n.destroy=function(){void 0!==n.config&&ie("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=W,n.jumpToDate=w,n.updateValue=se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=(0,u.getEventTarget)(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ie("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),ie("onOpen"),X(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=z,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ee[a]&&ee[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ee[e]?ee[e].forEach((function(e){return e()})):c.HOOKS.indexOf(e)>-1&&(n.config[e]=(0,d.arrayify)(t));n.redraw(),se(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),w(void 0,t),D(),0===n.selectedDates.length&&n.clear(!1);se(t),t&&ie("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[V,F],showMonths:[P,o,Y],minDate:[w],maxDate:[w],positionElement:[ae],clickOpens:[function(){!0===n.config.clickOpens?(M(n._input,"focus",n.open),M(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function te(e,t){var a=[];if(e instanceof Array)a=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)a=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":a=[n.parseDate(e,t)];break;case"multiple":a=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case"range":a=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter((function(e){return e instanceof Date&&W(e,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ne(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ae(){n._positionElement=n.config.positionElement||n._input}function ie(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var i=0;a[i]&&i1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=(0,m.monthToStr)(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYearn.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ce(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,a){return"range"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ce(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ce(n.config.altFormat)),!1!==e&&ie("onValueUpdate")}function de(e){var t=(0,u.getEventTarget)(e),a=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);a||i?j(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=r(r({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var s="time"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var u=v.defaultConfig.dateFormat||c.defaults.dateFormat;l.dateFormat=o.noCalendar||s?"H:i"+(o.enableSeconds?":S":""):u+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var f=v.defaultConfig.altFormat||c.defaults.altFormat;l.altFormat=o.noCalendar||s?"h:i"+(o.enableSeconds?":S K":" K"):f+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:$("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:$("max")});var m=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:m("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:m("max")}),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,o);for(var g=0;g-1?n.config[h]=(0,d.arrayify)(p[h]).map(i).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=Q().className+" "+n.config.altInputClass);ie("onParseConfig")}(),V(),function(){if(n.input=Q(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=(0,u.createElement)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");ae()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=(0,u.createElement)("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=(0,u.createElement)("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=(0,u.createElement)("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=(0,u.createElement)("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,P(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&((0,u.toggleClass)(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&((0,u.toggleClass)(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],le(),n.monthNav)),n.innerContainer=(0,u.createElement)("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=(0,u.createElement)("div","flatpickr-weekwrapper");e.appendChild((0,u.createElement)("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=(0,u.createElement)("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=i,n.weekWrapper=a}n.rContainer=(0,u.createElement)("div","flatpickr-rContainer"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=(0,u.createElement)("div","flatpickr-days"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=(0,f.getDefaultHours)(n.config);n.timeContainer=(0,u.createElement)("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=(0,u.createElement)("span","flatpickr-time-separator",":"),a=(0,u.createNumberInput)("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName("input")[0];var i=(0,u.createNumberInput)("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=(0,u.createNumberInput)("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild((0,u.createElement)("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=(0,u.createElement)("span","flatpickr-am-pm",n.l10n.amPM[(0,d.int)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());(0,u.toggleClass)(n.calendarContainer,"rangeMode","range"===n.config.mode),(0,u.toggleClass)(n.calendarContainer,"animate",!0===n.config.animate),(0,u.toggleClass)(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var r=(0,u.createElement)("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(r,n.element),r.appendChild(n.element),n.altInput&&r.appendChild(n.altInput),r.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),(function(t){return M(t,"click",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=(0,u.createElement)("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}M(n.mobileInput,"change",(function(e){n.setDate((0,u.getEventTarget)(e).value,!1,n.mobileFormatStr),ie("onChange"),ie("onClose")}))}();var e=(0,d.debounce)(U,50);n._debouncedChange=(0,d.debounce)(y,g),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(n.daysContainer,"mouseover",(function(e){"range"===n.config.mode&&J((0,u.getEventTarget)(e))}));M(n._input,"keydown",q),void 0!==n.calendarContainer&&M(n.calendarContainer,"keydown",q);n.config.inline||n.config.static||M(window,"resize",e);void 0!==window.ontouchstart?M(window.document,"touchstart",H):M(window.document,"mousedown",H);M(window.document,"focus",H,{capture:!0}),!0===n.config.clickOpens&&(M(n._input,"focus",n.open),M(n._input,"click",n.open));void 0!==n.daysContainer&&(M(n.monthNav,"click",de),M(n.monthNav,["keyup","increment"],b),M(n.daysContainer,"click",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return(0,u.getEventTarget)(e).select()};M(n.timeContainer,["increment"],p),M(n.timeContainer,"blur",p,{capture:!0}),M(n.timeContainer,"click",E),M([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&M(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&M(n.amPM,"click",(function(e){p(e)}))}n.config.allowInput&&M(n._input,"blur",K)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&D(n.config.noCalendar?n.latestSelectedDateObj:void 0),se(!1)),o();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&X(),ie("onReady")}(),n}function h(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}}, -615: function _(e,r,a,n,t){n(),a.english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a.default=a.english}, -616: function _(n,t,r,i,u){i();r.pad=function(n,t){return void 0===t&&(t=2),("000"+n).slice(-1*t)};r.int=function(n){return!0===n?1:0},r.debounce=function(n,t){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout((function(){return n.apply(i,u)}),t)}};r.arrayify=function(n){return n instanceof Array?n:[n]}}, -617: function _(t,e,n,r,a){function i(t,e,n){var r=window.document.createElement(t);return e=e||"",n=n||"",r.className=e,void 0!==n&&(r.textContent=n),r}r(),n.toggleClass=function(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)},n.createElement=i,n.clearNode=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.findParent=function t(e,n){return n(e)?e:e.parentNode?t(e.parentNode,n):void 0},n.createNumberInput=function(t,e){var n=i("div","numInputWrapper"),r=i("input","numInput "+t),a=i("span","arrowUp"),o=i("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==e)for(var d in e)r.setAttribute(d,e[d]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},n.getEventTarget=function(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}}, -618: function _(e,t,n,a,r){a();const i=e(619),o=e(614),s=e(615);n.createDateFormatter=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a,u=e.isMobile,f=void 0!==u&&u;return function(e,t,a){var o=a||r;return void 0===n.formatDate||f?t.split("").map((function(t,a,r){return i.formats[t]&&"\\"!==r[a-1]?i.formats[t](e,o,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,o)}};n.createDateParser=function(e){var t=e.config,n=void 0===t?o.defaults:t,a=e.l10n,r=void 0===a?s.english:a;return function(e,t,a,s){if(0===e||e){var u,f=s||r,d=e;if(e instanceof Date)u=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)u=new Date(e);else if("string"==typeof e){var c=t||(n||o.defaults).dateFormat,g=String(e).trim();if("today"===g)u=new Date,a=!0;else if(n&&n.parseDate)u=n.parseDate(e,c);else if(/Z$/.test(g)||/GMT$/.test(g))u=new Date(e);else{for(var m=void 0,l=[],v=0,D=0,h="";vMath.min(t,n)&&e=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*(0,u.int)(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(1e3*parseFloat(n))},W:function(t,n,e){var o=parseInt(n),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+e.firstDayOfWeek),r},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:a,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:a,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},e.tokenRegex={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},e.formats={Z:function(t){return t.toISOString()},D:function(t,n,o){return n.weekdays.shorthand[e.formats.w(t,n,o)]},F:function(t,n,o){return(0,e.monthToStr)(e.formats.n(t,n,o)-1,!1,n)},G:function(t,n,o){return(0,u.pad)(e.formats.h(t,n,o))},H:function(t){return(0,u.pad)(t.getHours())},J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[(0,u.int)(t.getHours()>11)]},M:function(t,n){return(0,e.monthToStr)(t.getMonth(),!0,n)},S:function(t){return(0,u.pad)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return(0,u.pad)(t.getFullYear(),4)},d:function(t){return(0,u.pad)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return(0,u.pad)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return(0,u.pad)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}}, -620: function _(n,t,o,r,e){"function"!=typeof Object.assign&&(Object.assign=function(n){for(var t=[],o=1;o({value:[a(e(r.DateLike,r.DateLike)),null]})))}, -623: function _(e,t,i,a,n){var r;a();const s=e(624),l=e(611),c=e(12);class _ extends s.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"single"}}_on_change(e){(0,c.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_date(t)}})()}}i.DatetimePickerView=_,_.__name__="DatetimePickerView";class o extends s.BaseDatetimePicker{constructor(e){super(e)}}i.DatetimePicker=o,r=o,o.__name__="DatetimePicker",r.prototype.default_view=_,r.define((({Nullable:e})=>({value:[e(l.DateLike),null]})))}, -624: function _(e,t,n,c,i){var s;c();const r=e(611),o=e(20);class m extends r.BaseDatePickerView{connect_signals(){super.connect_signals();const{value:e,hour_increment:t,minute_increment:n,second_increment:c,seconds:i,clock:s}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("hourIncrement",this.model.hour_increment))),this.connect(n.change,(()=>this.picker.set("minuteIncrement",this.model.minute_increment))),this.connect(c.change,(()=>this._update_second_increment())),this.connect(i.change,(()=>this.picker.set("enableSeconds",this.model.seconds))),this.connect(s.change,(()=>this.picker.set("time_24hr","24h"==this.model.clock)))}get flatpickr_options(){const{hour_increment:e,minute_increment:t,seconds:n,clock:c}=this.model,i=super.flatpickr_options;return i.enableTime=!0,i.dateFormat="Y-m-dTH:i:S",i.hourIncrement=e,i.minuteIncrement=t,i.enableSeconds=n,i.time_24hr="24h"==c,i}render(){super.render(),this._update_second_increment()}_update_second_increment(){const{second_increment:e}=this.model;this.picker.secondElement?.setAttribute("step",e.toString())}}n.BaseDatetimePickerView=m,m.__name__="BaseDatetimePickerView";class a extends r.BaseDatePicker{constructor(e){super(e)}}n.BaseDatetimePicker=a,s=a,a.__name__="BaseDatetimePicker",s.define((({Bool:e,Positive:t,Int:n})=>({hour_increment:[t(n),1],minute_increment:[t(n),1],second_increment:[t(n),1],seconds:[e,!1],clock:[o.Clock,"24h"]}))),s.override({date_format:"Y-m-d H:i"})}, -625: function _(e,t,a,i,n){var s;i();const r=e(624),l=e(611),c=e(12);class _ extends r.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"range"}}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:break;case 2:{const[t,a]=e,i=this._format_date(t),n=this._format_date(a);this.model.value=[i,n];break}default:(0,c.assert)(!1,"invalid length")}}}a.DatetimeRangePickerView=_,_.__name__="DatetimeRangePickerView";class o extends r.BaseDatetimePicker{constructor(e){super(e)}}a.DatetimeRangePicker=o,s=o,o.__name__="DatetimeRangePicker",s.prototype.default_view=_,s.define((({Nullable:e,Tuple:t})=>({value:[e(t(l.DateLike,l.DateLike)),null]})))}, -626: function _(e,t,s,i,r){var _;i();const n=e(627);class a extends n.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.has_math_disabled()?this.model.text:this.process_tex(this.model.text)}}s.DivView=a,a.__name__="DivView";class d extends n.Markup{constructor(e){super(e)}}s.Div=d,_=d,d.__name__="Div",_.prototype.default_view=a,_.define((({Bool:e})=>({render_as_text:[e,!1]})))}, -627: function _(t,e,s,i,r){var a;i();const n=t(1),d=t(63),h=t(697),o=n.__importStar(t(628));class _ extends h.WidgetView{constructor(){super(...arguments),this._auto_width="fit-content",this._auto_height="auto"}async lazy_initialize(){await super.lazy_initialize(),"not_started"!=this.provider.status&&"loading"!=this.provider.status||this.provider.ready.connect((()=>{this.contains_tex_string(this.model.text)&&this.rerender()}))}has_math_disabled(){return this.model.disable_math||!this.contains_tex_string(this.model.text)}rerender(){this.render()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.rerender()}))}stylesheets(){return[...super.stylesheets(),o.default,"p { margin: 0; }"]}render(){super.render(),this.markup_el=(0,d.div)({class:o.clearfix,style:{display:"inline-block"}}),this.shadow_el.appendChild(this.markup_el),"failed"!=this.provider.status&&"loaded"!=this.provider.status||(this._has_finished=!0)}}s.MarkupView=_,_.__name__="MarkupView";class l extends h.Widget{constructor(t){super(t)}}s.Markup=l,a=l,l.__name__="Markup",a.define((({Bool:t,Str:e})=>({text:[e,""],disable_math:[t,!1]})))}, -628: function _(e,a,f,l,r){l(),f.clearfix="bk-clearfix",f.default='.bk-clearfix:before,.bk-clearfix:after{content:"";display:table;}.bk-clearfix:after{clear:both;}'}, -629: function _(e,t,i,s,n){var o;s();const l=e(1),_=e(590),r=e(53),d=e(63),u=e(8),c=e(50),h=l.__importStar(e(593)),m=l.__importStar(e(599)),p=m,a=l.__importStar(e(630)),g=a;class w extends _.AbstractButtonView{constructor(){super(...arguments),this._open=!1}stylesheets(){return[...super.stylesheets(),m.default,a.default]}connect_signals(){super.connect_signals();const{menu:e}=this.model.properties;this.on_change(e,(()=>this.rebuild_menu()))}render(){super.render();const e=(0,d.div)({class:[g.caret,g.down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(h.dropdown_toggle),t.addEventListener("click",(()=>this._toggle_menu())),this.group_el.append(t)}else this.button_el.append(e);this.menu_el=(0,d.div)({class:[p.menu,p.below]}),this.shadow_el.append(this.menu_el),this.rebuild_menu(),(0,d.undisplay)(this.menu_el)}_show_menu(){if(!this._open){this._open=!0,(0,d.display)(this.menu_el);const e=t=>{t.composedPath().includes(this.el)||(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,(0,d.undisplay)(this.menu_el))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new r.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=(0,u.isString)(t)?t:t[1];(0,u.isString)(i)?this.model.trigger_event(new r.MenuItemClick(i)):(0,c.execute)(i,this.model,{index:e})}}rebuild_menu(){(0,d.empty)(this.menu_el);const e=this.model.menu.map(((e,t)=>{if(null==e)return(0,d.div)({class:p.divider});{const i=(0,u.isString)(e)?e:e[0],s=(0,d.div)(i);return s.addEventListener("click",(()=>this._item_click(t))),s}}));this.menu_el.append(...e)}}i.DropdownView=w,w.__name__="DropdownView";class v extends _.AbstractButton{constructor(e){super(e)}get is_split(){return this.split}}i.Dropdown=v,o=v,v.__name__="Dropdown",o.prototype.default_view=w,o.define((({Null:e,Bool:t,Str:i,List:s,Tuple:n,Or:o})=>({split:[t,!1],menu:[s(o(i,n(i,o(i)),e)),[]]}))),o.override({label:"Dropdown"})}, -630: function _(t,r,e,a,d){a(),e.caret="bk-caret",e.down="bk-down",e.up="bk-up",e.left="bk-left",e.right="bk-right",e.default=":host{--caret-width:4px;}.bk-caret{display:inline-block;vertical-align:middle;width:0;height:0;margin:0 5px;}.bk-caret.bk-down{border-top:var(--caret-width) solid;}.bk-caret.bk-up{border-bottom:var(--caret-width) solid;}.bk-caret.bk-down,.bk-caret.bk-up{border-right:var(--caret-width) solid transparent;border-left:var(--caret-width) solid transparent;}.bk-caret.bk-left{border-right:var(--caret-width) solid;}.bk-caret.bk-right{border-left:var(--caret-width) solid;}.bk-caret.bk-left,.bk-caret.bk-right{border-top:var(--caret-width) solid transparent;border-bottom:var(--caret-width) solid transparent;}"}, -631: function _(e,t,n,i,s){var l;i();const r=e(1),a=e(597),o=e(63),u=e(8),p=r.__importStar(e(18)),d=r.__importStar(e(598)),c=r.__importDefault(e(593));class _ extends a.InputWidgetView{connect_signals(){super.connect_signals(),this.model.on_event(a.ClearInput,(()=>{this.model.setv({value:"",mime_type:"",filename:""}),this.input_el.value=""}))}stylesheets(){return[...super.stylesheets(),c.default]}_render_input(){const{multiple:e,disabled:t,directory:n}=this.model,i=(()=>{const{accept:e}=this.model;return(0,u.isString)(e)?e:e.join(",")})();return this.input_el=(0,o.input)({type:"file",class:d.input,multiple:e,accept:i,disabled:t,webkitdirectory:n})}render(){super.render(),this.input_el.addEventListener("change",(async()=>{const{files:e}=this.input_el;null!=e&&await this.load_files(e)}))}async load_files(e){const t=[],n=[],i=[],{directory:s,multiple:l}=this.model,r=(()=>{const{accept:e}=this.model;return(0,u.isString)(e)?e:e.join(",")})();for(const l of e){const e=await this._read_file(l),[,a="",,o=""]=e.split(/[:;,]/,4);if(s){const e=l.name.split(".").pop();r.length>0&&(0,u.isString)(e)&&!r.includes(`.${e}`)||(n.push(l.webkitRelativePath),t.push(o),i.push(a))}else n.push(l.name),t.push(o),i.push(a)}const[a,o,p]=s||l?[t,n,i]:0!=e.length?[t[0],n[0],i[0]]:["","",""];this.model.setv({value:a,filename:o,mime_type:p})}_read_file(e){return new Promise(((t,n)=>{const i=new FileReader;i.onload=()=>{const{result:s}=i;null!=s?t(s):n(i.error??new Error(`unable to read '${e.name}'`))},i.readAsDataURL(e)}))}}n.FileInputView=_,_.__name__="FileInputView";class m extends a.InputWidget{constructor(e){super(e)}}n.FileInput=m,l=m,m.__name__="FileInput",l.prototype.default_view=_,l.define((({Bool:e,Str:t,List:n,Or:i})=>({value:[i(t,n(t)),p.unset,{readonly:!0}],mime_type:[i(t,n(t)),p.unset,{readonly:!0}],filename:[i(t,n(t)),p.unset,{readonly:!0}],accept:[i(t,n(t)),""],multiple:[e,!1],directory:[e,!1]})))}, -632: function _(e,t,i,o,n){var s;o();const l=e(590),d=e(413),r=e(479),a=e(56);class p extends l.AbstractButtonView{*children(){yield*super.children(),yield this.tooltip}async lazy_initialize(){await super.lazy_initialize();const{tooltip:e}=this.model;this.tooltip=await(0,a.build_view)(e,{parent:this})}remove(){this.tooltip.remove(),super.remove()}render(){super.render();let e=!1;const t=t=>{this.tooltip.model.setv({visible:t,closable:e})};this.on_change(this.tooltip.model.properties.visible,(()=>{const{visible:i}=this.tooltip.model;i||(e=!1),t(i)})),this.el.addEventListener("mouseenter",(()=>{t(!0)})),this.el.addEventListener("mouseleave",(()=>{e||t(!1)})),document.addEventListener("mousedown",(i=>{const o=i.composedPath();o.includes(this.tooltip.el)||(o.includes(this.el)?(e=!e,t(e)):(e=!1,t(!1)))})),window.addEventListener("blur",(()=>{e=!1,t(!1)}))}}i.HelpButtonView=p,p.__name__="HelpButtonView";class u extends l.AbstractButton{constructor(e){super(e)}}i.HelpButton=u,s=u,u.__name__="HelpButton",s.prototype.default_view=p,s.define((({Ref:e})=>({tooltip:[e(d.Tooltip)]}))),s.override({label:"",icon:()=>new r.BuiltinIcon({icon_name:"help",size:18}),button_type:"default"})}, -633: function _(e,t,i,s,o){var l;s();const n=e(1),u=n.__importDefault(e(634)),_=e(63),r=e(8),a=e(26),c=n.__importStar(e(598)),h=n.__importDefault(e(635)),d=e(597);function p(e){return Object.defineProperty(e,"target",{get:()=>e.composedPath()[0]??null,configurable:!0}),e}class m extends u.default{_onFocus(e){super._onFocus(p(e))}_onBlur(e){super._onBlur(p(e))}_onKeyUp(e){super._onKeyUp(p(e))}_onKeyDown(e){super._onKeyDown(p(e))}_onClick(e){super._onClick(p(e))}_onTouchEnd(e){super._onTouchEnd(p(e))}_onMouseDown(e){super._onMouseDown(p(e))}_onMouseOver(e){super._onMouseOver(p(e))}}m.__name__="OurChoices";class g extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.disabled.change,(()=>this.set_disabled()));const{value:e,max_items:t,option_limit:i,search_option_limit:s,delete_button:o,placeholder:l,options:n,name:u,title:_}=this.model.properties;this.on_change([t,i,s,o,l,n,u,_],(()=>this.render())),this.on_change(e,(()=>{(0,a.is_equal)(this.model.value,this._current_values)||this.render()}))}stylesheets(){return[...super.stylesheets(),h.default]}_render_input(){return this.input_el=(0,_.select)({multiple:!0,class:c.input,name:this.model.name,disabled:this.model.disabled})}render(){super.render();const e=new Set(this.model.value),t=this.model.options.map((t=>{let i,s;return(0,r.isString)(t)?i=s=t:[i,s]=t,{value:i,label:s,selected:e.has(i)}})),i=this.model.solid?"solid":"light",s=`choices__item ${i}`,o=`choices__button ${i}`,l={choices:t,itemSelectText:"",duplicateItemsAllowed:!1,shouldSort:!1,removeItemButton:this.model.delete_button,classNames:{item:s,button:o},placeholderValue:this.model.placeholder,maxItemCount:this.model.max_items??-1,renderChoiceLimit:this.model.option_limit??-1,searchResultLimit:this.model.search_option_limit??4};this.choice_el=new m(this.input_el,l),this.input_el.addEventListener("change",(()=>this.change_input()))}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}get _current_values(){return this.choice_el.getValue().map((e=>e.value))}change_input(){this.model.value=this._current_values,super.change_input()}}i.MultiChoiceView=g,g.__name__="MultiChoiceView";class b extends d.InputWidget{constructor(e){super(e)}}i.MultiChoice=b,l=b,b.__name__="MultiChoice",l.prototype.default_view=g,l.define((({Bool:e,Int:t,Str:i,List:s,Tuple:o,Or:l,Nullable:n})=>({value:[s(i),[]],options:[s(l(i,o(i,i))),[]],max_items:[n(t),null],delete_button:[e,!0],placeholder:[n(i),null],option_limit:[n(t),null],search_option_limit:[n(t),null],solid:[e,!0]})))}, -634: function _(e,t,i,n,r){ +598: function _(t,e,i,o,r){o();const s=t(1).__importStar(t(599));i.Widgets=s;(0,t(7).register_models)(s)}, +599: function _(e,t,i,o,r){o();const u=e(1);r("AbstractButton",e(600).AbstractButton),r("AutocompleteInput",e(604).AutocompleteInput),r("Button",e(610).Button),r("CheckboxButtonGroup",e(611).CheckboxButtonGroup),r("CheckboxGroup",e(614).CheckboxGroup),r("Checkbox",e(617).Checkbox),r("ColorPicker",e(619).ColorPicker),r("DatePicker",e(620).DatePicker),r("DateRangePicker",e(632).DateRangePicker),r("DatetimePicker",e(633).DatetimePicker),r("DatetimeRangePicker",e(635).DatetimeRangePicker),r("Div",e(636).Div),r("Dropdown",e(639).Dropdown),r("FileInput",e(641).FileInput),r("HelpButton",e(642).HelpButton),r("InputWidget",e(607).InputWidget),r("Markup",e(637).Markup),r("MultiChoice",e(643).MultiChoice),r("MultiSelect",e(646).MultiSelect),r("MultipleDatePicker",e(647).MultipleDatePicker),r("MultipleDatetimePicker",e(648).MultipleDatetimePicker),r("NumericInput",e(649).NumericInput),r("PaletteSelect",e(650).PaletteSelect),r("Paragraph",e(656).Paragraph),r("PasswordInput",e(657).PasswordInput),r("PreText",e(659).PreText),r("RadioButtonGroup",e(660).RadioButtonGroup),r("RadioGroup",e(661).RadioGroup),r("Select",e(662).Select),r("Spinner",e(663).Spinner),r("Switch",e(664).Switch),r("TextAreaInput",e(666).TextAreaInput),r("TextInput",e(605).TextInput),r("TimePicker",e(667).TimePicker),r("Toggle",e(668).Toggle),r("Widget",e(707).Widget),u.__exportStar(e(669),i)}, +600: function _(e,t,i,n,s){var l;n();const o=e(1),r=e(20),a=e(63),_=e(56),c=e(8),h=e(601),u=e(125),d=e(321),b=e(487),w=o.__importStar(e(603)),v=w;class p extends h.ControlView{*controls(){yield this.button_el}*children(){yield*super.children(),null!=this.label_view&&(yield this.label_view),null!=this.icon_view&&(yield this.icon_view)}async lazy_initialize(){await super.lazy_initialize(),await this._rebuild_label(),await this._rebuild_icon()}async _rebuild_label(){this.label_view?.remove();const e=(()=>{const{label:e}=this.model;return(0,c.isString)(e)?new d.Text({content:e}):e})();this.label_view=await this.owner.build_view(e,this)}async _rebuild_icon(){this.icon_view?.remove();const{icon:e}=this.model;null!=e&&(this.icon_view=await(0,_.build_view)(e,{parent:this}))}connect_signals(){super.connect_signals();const{label:e,icon:t,button_type:i,disabled:n}=this.model.properties;this.on_transitive_change(e,(async()=>{await this._rebuild_label(),this.render()})),this.on_transitive_change(t,(async()=>{await this._rebuild_icon(),this.render()})),this.on_change([i,n],(()=>{this.render()}))}remove(){this.label_view?.remove(),this.icon_view?.remove(),super.remove()}stylesheets(){return[...super.stylesheets(),w.default]}_render_button(...e){return(0,a.button)({type:"button",disabled:this.model.disabled,class:[v.btn,v[`btn_${this.model.button_type}`]]},...e)}render(){if(super.render(),this.label_view?.render(),this.button_el=this._render_button(this.label_view?.el),this.button_el.addEventListener("click",(()=>this.click())),null!=this.icon_view){const e=""!=this.model.label?(0,a.nbsp)():(0,a.text)("");(0,a.prepend)(this.button_el,this.icon_view.el,e),this.icon_view.render()}this.group_el=(0,a.div)({class:v.btn_group},this.button_el),this.shadow_el.append(this.group_el)}click(){}}i.AbstractButtonView=p,p.__name__="AbstractButtonView";class y extends h.Control{constructor(e){super(e)}}i.AbstractButton=y,l=y,y.__name__="AbstractButton",l.define((({Str:e,Ref:t,Or:i,Nullable:n})=>({label:[i(t(u.DOMNode),e),"Button"],icon:[n(t(b.Icon)),null],button_type:[r.ButtonType,"default"]})))}, +601: function _(t,n,o,s,e){s();const c=t(707),i=t(63);class l extends c.WidgetView{connect_signals(){super.connect_signals(),this.connect(this.disabled,(t=>{for(const n of this.controls())(0,i.toggle_attribute)(n,"disabled",t)}))}}o.ControlView=l,l.__name__="ControlView";class _ extends c.Widget{constructor(t){super(t)}}o.Control=_,_.__name__="Control"}, +707: function _(t,e,i,r,s){var a;r();const n=t(406),o=t(182);class d extends n.LayoutDOMView{get child_models(){return[]}get provider(){return o.default_provider}async lazy_initialize(){await super.lazy_initialize(),"not_started"==this.provider.status&&await this.provider.fetch()}_after_layout(){super._after_layout(),"loading"==this.provider.status&&(this._has_finished=!1)}process_tex(t){if(null==this.provider.MathJax)return t;const e=this.provider.MathJax.find_tex(t),i=[];let r=0;for(const s of e)i.push(t.slice(r,s.start.n)),i.push(this.provider.MathJax.tex2svg(s.math,{display:s.display}).outerHTML),r=s.end.n;return r0}}i.WidgetView=d,d.__name__="WidgetView";class _ extends n.LayoutDOM{constructor(t){super(t)}}i.Widget=_,a=_,_.__name__="Widget",a.override({margin:5})}, +603: function _(b,o,r,e,t){e(),r.btn="bk-btn",r.active="bk-active",r.btn_default="bk-btn-default",r.btn_primary="bk-btn-primary",r.btn_success="bk-btn-success",r.btn_warning="bk-btn-warning",r.btn_danger="bk-btn-danger",r.btn_light="bk-btn-light",r.btn_group="bk-btn-group",r.vertical="bk-vertical",r.horizontal="bk-horizontal",r.dropdown_toggle="bk-dropdown-toggle",r.default=".bk-btn,::file-selector-button{height:100%;display:inline-block;text-align:center;vertical-align:middle;white-space:nowrap;cursor:pointer;padding:var(--padding-vertical) var(--padding-horizontal);font-size:var(--font-size);border:1px solid transparent;border-radius:var(--border-radius);outline:0;outline-offset:-5px;user-select:none;-webkit-user-select:none;}.bk-btn:hover,::file-selector-button:hover,.bk-btn:focus,::file-selector-button:focus{text-decoration:none;}.bk-btn:active,::file-selector-button:active,.bk-active.bk-btn,.bk-active::file-selector-button{background-image:none;box-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}.bk-btn[disabled]{cursor:not-allowed;pointer-events:none;opacity:0.65;box-shadow:none;}::file-selector-button{color:#333;background-color:#fff;border-color:#ccc;}::file-selector-button:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active::file-selector-button{background-color:#ebebeb;border-color:#adadad;}::file-selector-button[disabled],::file-selector-button[disabled]:hover,::file-selector-button[disabled]:focus,::file-selector-button[disabled]:active,.bk-active::file-selector-button[disabled]{background-color:#e6e6e6;border-color:#ccc;}::file-selector-button:focus,::file-selector-button:active{outline:1px dotted #ccc;}.bk-btn-default{color:#333;background-color:#fff;border-color:#ccc;}.bk-btn-default:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-default{background-color:#ebebeb;border-color:#adadad;}.bk-btn-default[disabled],.bk-btn-default[disabled]:hover,.bk-btn-default[disabled]:focus,.bk-btn-default[disabled]:active,.bk-active.bk-btn-default[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-default:focus,.bk-btn-default:active{outline:1px dotted #ccc;}.bk-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd;}.bk-btn-primary:hover{background-color:#3681c1;border-color:#2c699e;}.bk-active.bk-btn-primary{background-color:#3276b1;border-color:#285e8e;}.bk-btn-primary[disabled],.bk-btn-primary[disabled]:hover,.bk-btn-primary[disabled]:focus,.bk-btn-primary[disabled]:active,.bk-active.bk-btn-primary[disabled]{background-color:#506f89;border-color:#357ebd;}.bk-btn-primary:focus,.bk-btn-primary:active{outline:1px dotted #ccc;}.bk-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c;}.bk-btn-success:hover{background-color:#4eb24e;border-color:#409240;}.bk-active.bk-btn-success{background-color:#47a447;border-color:#398439;}.bk-btn-success[disabled],.bk-btn-success[disabled]:hover,.bk-btn-success[disabled]:focus,.bk-btn-success[disabled]:active,.bk-active.bk-btn-success[disabled]{background-color:#667b66;border-color:#4cae4c;}.bk-btn-success:focus,.bk-btn-success:active{outline:1px dotted #ccc;}.bk-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236;}.bk-btn-warning:hover{background-color:#eea43b;border-color:#e89014;}.bk-active.bk-btn-warning{background-color:#ed9c28;border-color:#d58512;}.bk-btn-warning[disabled],.bk-btn-warning[disabled]:hover,.bk-btn-warning[disabled]:focus,.bk-btn-warning[disabled]:active,.bk-active.bk-btn-warning[disabled]{background-color:#c89143;border-color:#eea236;}.bk-btn-warning:focus,.bk-btn-warning:active{outline:1px dotted #ccc;}.bk-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a;}.bk-btn-danger:hover{background-color:#d5433e;border-color:#bd2d29;}.bk-active.bk-btn-danger{background-color:#d2322d;border-color:#ac2925;}.bk-btn-danger[disabled],.bk-btn-danger[disabled]:hover,.bk-btn-danger[disabled]:focus,.bk-btn-danger[disabled]:active,.bk-active.bk-btn-danger[disabled]{background-color:#a55350;border-color:#d43f3a;}.bk-btn-danger:focus,.bk-btn-danger:active{outline:1px dotted #ccc;}.bk-btn-light{color:#333;background-color:#fff;border-color:#ccc;border-color:transparent;}.bk-btn-light:hover{background-color:#f5f5f5;border-color:#b8b8b8;}.bk-active.bk-btn-light{background-color:#ebebeb;border-color:#adadad;}.bk-btn-light[disabled],.bk-btn-light[disabled]:hover,.bk-btn-light[disabled]:focus,.bk-btn-light[disabled]:active,.bk-active.bk-btn-light[disabled]{background-color:#e6e6e6;border-color:#ccc;}.bk-btn-light:focus,.bk-btn-light:active{outline:1px dotted #ccc;}.bk-btn-group{height:100%;display:flex;flex-wrap:nowrap;align-items:center;}.bk-btn-group:not(.bk-vertical),.bk-btn-group.bk-horizontal{flex-direction:row;}.bk-btn-group.bk-vertical{flex-direction:column;}.bk-btn-group > .bk-btn{flex-grow:1;}.bk-btn-group:not(.bk-vertical) > .bk-btn + .bk-btn{margin-left:-1px;}.bk-btn-group.bk-vertical > .bk-btn + .bk-btn{margin-top:-1px;}.bk-btn-group:not(.bk-vertical) > .bk-btn:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:first-child:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;}.bk-btn-group:not(.bk-vertical) > .bk-btn:not(:first-child):last-child{border-bottom-left-radius:0;border-top-left-radius:0;}.bk-btn-group.bk-vertical > .bk-btn:not(:first-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}.bk-btn-group > .bk-btn:not(:first-child):not(:last-child){border-radius:0;}.bk-btn-group.bk-vertical > .bk-btn{width:100%;}.bk-btn-group .bk-dropdown-toggle{flex:0 0 0;padding:var(--padding-vertical) calc(var(--padding-horizontal)/2);}"}, +604: function _(e,t,s,i,n){var h;i();const o=e(1),_=e(605),u=e(63),r=e(34),c=e(11),l=e(21),a=o.__importStar(e(609)),m=a,d=(0,l.Enum)("starts_with","includes");class p extends _.TextInputView{constructor(){super(...arguments),this._open=!1,this._last_value="",this._hover_index=0}stylesheets(){return[...super.stylesheets(),a.default]}render(){super.render(),this.input_el.addEventListener("focusin",(()=>this._toggle_menu())),this.menu=(0,u.div)({class:[m.menu,m.below]}),this.menu.addEventListener("click",(e=>this._menu_click(e))),this.menu.addEventListener("mouseover",(e=>this._menu_hover(e))),this.shadow_el.appendChild(this.menu),(0,u.undisplay)(this.menu)}change_input(){this._open&&this.menu.children.length>0?(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu()):this.model.restrict||super.change_input()}_update_completions(e){(0,u.empty)(this.menu);const{max_completions:t}=this.model,s=null!=t?(0,r.take)(e,t):e;for(const e of s){const t=(0,u.div)(e);this.menu.append(t)}this.menu.firstElementChild?.classList.add(m.active)}compute_completions(e){const t=(()=>{const{case_sensitive:e}=this.model;return e?e=>e:e=>e.toLowerCase()})(),s=(()=>{switch(this.model.search_strategy){case"starts_with":return(e,t)=>e.startsWith(t);case"includes":return(e,t)=>e.includes(t)}})(),i=t(e),n=[];for(const e of this.model.completions){s(t(e),i)&&n.push(e)}return n}_toggle_menu(){const{value:e}=this.input_el;if(e.length{t.composedPath().includes(this.el)||(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,(0,u.undisplay)(this.menu))}_menu_click(e){e.target!=e.currentTarget&&e.target instanceof Element&&(this.model.value=e.target.textContent,this.input_el.focus(),this._hide_menu())}_menu_hover(e){if(e.target!=e.currentTarget&&e.target instanceof Element)for(let t=0;t0&&(this.menu.children[this._hover_index].classList.remove(m.active),this._hover_index=(0,c.clamp)(e,0,t-1),this.menu.children[this._hover_index].classList.add(m.active))}_keyup(e){switch(super._keyup(e),e.key){case"Enter":this.change_input();break;case"Escape":this._hide_menu();break;case"ArrowUp":this._bump_hover(this._hover_index-1);break;case"ArrowDown":this._bump_hover(this._hover_index+1);break;default:this._toggle_menu()}}}s.AutocompleteInputView=p,p.__name__="AutocompleteInputView";class v extends _.TextInput{constructor(e){super(e)}}s.AutocompleteInput=v,h=v,v.__name__="AutocompleteInput",h.prototype.default_view=p,h.define((({Bool:e,Int:t,Str:s,List:i,NonNegative:n,Positive:h,Nullable:o})=>({completions:[i(s),[]],min_characters:[n(t),2],max_completions:[o(h(t)),null],case_sensitive:[e,!0],restrict:[e,!0],search_strategy:[d,"starts_with"]})))}, +605: function _(e,t,n,i,s){var u;i();const l=e(1),p=e(606),r=e(63),_=e(53),a=l.__importStar(e(608));class c extends p.TextLikeInputView{connect_signals(){super.connect_signals();const{prefix:e,suffix:t}=this.model.properties;this.on_change([e,t],(()=>this.render()))}_render_input(){this.input_el=(0,r.input)({type:"text",class:a.input});const{prefix:e,suffix:t}=this.model,n=null!=e?(0,r.div)({class:"bk-input-prefix"},e):null,i=null!=t?(0,r.div)({class:"bk-input-suffix"},t):null;return(0,r.div)({class:"bk-input-container"},n,this.input_el,i)}render(){super.render(),this.input_el.addEventListener("keyup",(e=>this._keyup(e)))}_keyup(e){"Enter"!=e.key||e.shiftKey||e.ctrlKey||e.altKey||this.model.trigger_event(new _.ValueSubmit(this.input_el.value))}}n.TextInputView=c,c.__name__="TextInputView";class o extends p.TextLikeInput{constructor(e){super(e)}}n.TextInput=o,u=o,o.__name__="TextInput",u.prototype.default_view=c,u.define((({Str:e,Nullable:t})=>({prefix:[t(e),null],suffix:[t(e),null]})))}, +606: function _(e,t,n,i,l){var s;i();const h=e(607);class a extends h.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.value.change,(()=>this.input_el.value=this.model.value)),this.connect(this.model.properties.value_input.change,(()=>this.input_el.value=this.model.value_input)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.max_length.change,(()=>{const{max_length:e}=this.model;null!=e?this.input_el.maxLength=e:this.input_el.removeAttribute("maxLength")}))}render(){super.render();const{input_el:e}=this;e.value=this.model.value,e.disabled=this.model.disabled,e.placeholder=this.model.placeholder,null!=this.model.max_length&&(e.maxLength=this.model.max_length),e.addEventListener("change",(()=>this.change_input())),e.addEventListener("input",(()=>this.change_input_value()))}change_input(){this.model.value=this.input_el.value,super.change_input()}change_input_value(){this.model.value_input=this.input_el.value,super.change_input()}}n.TextLikeInputView=a,a.__name__="TextLikeInputView";class u extends h.InputWidget{constructor(e){super(e)}}n.TextLikeInput=u,s=u,u.__name__="TextLikeInput",s.define((({Int:e,Str:t,Nullable:n})=>({value:[t,""],value_input:[t,""],placeholder:[t,""],max_length:[n(e),null]})))}, +607: function _(e,t,i,s,n){var l,o;s();const r=e(1);var c,d=this&&this.__decorate||function(e,t,i,s){var n,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(o=(l<3?n(o):l>3?n(t,i,o):n(t,i))||o);return l>3&&o&&Object.defineProperty(t,i,o),o};const a=e(601),u=e(420),_=e(408),p=e(8),h=e(56),f=e(63),v=e(58),m=e(53),w=r.__importStar(e(608)),b=w,g=r.__importDefault(e(123));let y=(l=class extends m.ModelEvent{constructor(e){super(),this.model=e,this.origin=e}static from_values(e){const{model:t}=e;return new c(t)}},c=l,l.__name__="ClearInput",l);i.ClearInput=y,i.ClearInput=y=c=d([(0,m.server_event)("clear_input")],y);class L extends a.ControlView{constructor(){super(...arguments),this.description=null,this.desc_el=null}*controls(){yield this.input_el}*children(){yield*super.children();const{title:e,description:t}=this;e instanceof v.View&&(yield e),t instanceof v.View&&(yield t)}async lazy_initialize(){await super.lazy_initialize(),await this._build_title(),await this._build_description()}remove(){const{title:e,description:t}=this;e instanceof v.View&&e.remove(),t instanceof v.View&&t.remove(),super.remove()}connect_signals(){super.connect_signals();const{title:e,description:t}=this.model.properties;this.on_change(e,(async()=>{await this._build_title(),this.render()})),this.on_change(t,(async()=>{await this._build_description(),this.render()}))}stylesheets(){return[...super.stylesheets(),w.default,g.default]}render(){super.render(),this.desc_el=this._build_description_el(),this.title_el=this._build_title_el();const e=this._render_input();this.input_el.id="input",this.group_el=(0,f.div)({class:b.input_group},this.title_el,e),this.shadow_el.append(this.group_el)}_build_description_el(){const{description:e}=this;if(null==e)return null;{const t=(0,f.div)({class:b.icon}),i=(0,f.div)({class:b.description},t);if((0,p.isString)(e))i.title=e;else{"auto"==e.model.target&&(e.target=i);let s=!1;const n=i=>{e.model.setv({visible:i,closable:s}),t.classList.toggle(b.opaque,i&&s)};this.on_change(e.model.properties.visible,(()=>{const{visible:t}=e.model;t||(s=!1),n(t)})),i.addEventListener("mouseenter",(()=>{n(!0)})),i.addEventListener("mouseleave",(()=>{s||n(!1)})),document.addEventListener("mousedown",(t=>{const l=t.composedPath();l.includes(e.el)||(l.includes(i)?(s=!s,n(s)):(s=!1,n(!1)))})),window.addEventListener("blur",(()=>{s=!1,n(!1)}))}return i}}async _build_title(){const{title:e}=this.model;e instanceof _.HTML?this.title=await(0,h.build_view)(e,{parent:this}):this.title=e}async _build_description(){const{description:e}=this.model;e instanceof u.Tooltip?this.description=await(0,h.build_view)(e,{parent:this}):this.description=e}_build_title_el(){const{title:e}=this,t=e instanceof _.HTMLView?(e.render(),e.el):e,i=""==e?"none":"";return(0,f.label)({for:"input",style:{display:i}},t,this.desc_el)}change_input(){}}i.InputWidgetView=L,L.__name__="InputWidgetView";class V extends a.Control{constructor(e){super(e)}}i.InputWidget=V,o=V,V.__name__="InputWidget",o.define((({Str:e,Nullable:t,Or:i,Ref:s})=>({title:[i(e,s(_.HTML)),""],description:[t(i(e,s(u.Tooltip))),null]})))}, +608: function _(i,n,t,e,p){e(),t.input="bk-input",t.disabled="bk-disabled",t.input_container="bk-input-container",t.input_prefix="bk-input-prefix",t.input_suffix="bk-input-suffix",t.input_group="bk-input-group",t.inline="bk-inline",t.spin_wrapper="bk-spin-wrapper",t.spin_btn="bk-spin-btn",t.spin_btn_up="bk-spin-btn-up",t.spin_btn_down="bk-spin-btn-down",t.description="bk-description",t.icon="bk-icon",t.opaque="bk-opaque",t.default=':host{--input-min-height:calc(var(--line-height-computed) + 2*var(--padding-vertical) + 2px);}.bk-input{position:relative;display:inline-block;width:100%;flex-grow:1;min-height:var(--input-min-height);padding:0 var(--padding-horizontal);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);resize:none;}.bk-input:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);}.bk-input::placeholder,.bk-input:-ms-input-placeholder,.bk-input::-moz-placeholder,.bk-input::-webkit-input-placeholder{color:#999;opacity:1;}.bk-input[disabled],.bk-input.bk-disabled{cursor:not-allowed;background-color:#eee;opacity:1;}.bk-input-container{width:100%;height:100%;display:flex;flex-direction:row;flex-wrap:nowrap;}.bk-input-container .bk-input-prefix,.bk-input-container .bk-input-suffix{display:flex;align-items:center;flex:0 1 0;border:1px solid #ccc;border-radius:var(--border-radius);padding:0 var(--padding-horizontal);background-color:#e6e6e6;}.bk-input-container .bk-input-prefix{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;}.bk-input-container .bk-input-suffix{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input{flex:1 0 0;}.bk-input-container .bk-input:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;}.bk-input-container .bk-input:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;}input[type=file].bk-input{padding-left:0;}input[type=file]::file-selector-button{box-sizing:inherit;font-family:inherit;font-size:inherit;line-height:inherit;}select:not([multiple]).bk-input,select:not([size]).bk-input{height:auto;appearance:none;-webkit-appearance:none;background-image:url(\'data:image/svg+xml;utf8,\');background-position:right 0.5em center;background-size:8px 6px;background-repeat:no-repeat;padding-right:calc(var(--padding-horizontal) + 8px);}option{padding:0;}select[multiple].bk-input,select[size].bk-input,textarea.bk-input{height:auto;}.bk-input-group{position:relative;width:100%;height:100%;display:inline-flex;flex-wrap:nowrap;align-items:start;flex-direction:column;white-space:nowrap;}.bk-input-group.bk-inline{flex-direction:row;}.bk-input-group.bk-inline > *:not(:first-child){margin-left:5px;}.bk-input-group > .bk-spin-wrapper{display:inherit;width:inherit;height:inherit;position:relative;overflow:hidden;padding:0;vertical-align:middle;}.bk-input-group > .bk-spin-wrapper input{padding-right:20px;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn{position:absolute;display:block;height:50%;min-height:0;min-width:0;width:30px;padding:0;margin:0;right:0;border:none;background:none;cursor:pointer;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn:before{content:"";display:inline-block;transform:translateY(-50%);border-left:5px solid transparent;border-right:5px solid transparent;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up{top:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:before{border-bottom:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-up:disabled:before{border-bottom-color:grey;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down{bottom:0;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:before{border-top:5px solid black;}.bk-input-group > .bk-spin-wrapper > .bk-spin-btn.bk-spin-btn-down:disabled:before{border-top-color:grey;}.bk-description{position:relative;display:inline-block;margin-left:0.25em;vertical-align:middle;margin-top:-2px;cursor:pointer;}.bk-description > .bk-icon{opacity:0.5;width:18px;height:18px;background-color:gray;mask-image:var(--bokeh-icon-help);mask-size:contain;mask-repeat:no-repeat;-webkit-mask-image:var(--bokeh-icon-help);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;}label:hover > .bk-description > .bk-icon,.bk-icon.bk-opaque{opacity:1;}'}, +609: function _(e,o,i,b,r){b(),i.menu="bk-menu",i.above="bk-above",i.below="bk-below",i.divider="bk-divider",i.active="bk-active",i.default=":host{position:relative;}.bk-menu{position:absolute;left:0;width:100%;z-index:var(--bokeh-top-level);cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);}.bk-menu.bk-above{bottom:100%;}.bk-menu.bk-below{top:100%;}.bk-menu > .bk-divider{height:1px;margin:calc(var(--line-height-computed)/2 - 1px) 0;overflow:hidden;background-color:#e5e5e5;}.bk-menu > :not(.bk-divider){padding:var(--padding-vertical) var(--padding-horizontal);}.bk-menu > :not(.bk-divider):hover,.bk-menu > :not(.bk-divider).bk-active{background-color:#e6e6e6;}"}, +610: function _(t,e,n,o,c){var i;o();const s=t(600),u=t(53);class _ extends s.AbstractButtonView{click(){this.model.trigger_event(new u.ButtonClick),super.click()}}n.ButtonView=_,_.__name__="ButtonView";class r extends s.AbstractButton{constructor(t){super(t)}on_click(t){this.on_event(u.ButtonClick,t)}}n.Button=r,i=r,r.__name__="Button",i.prototype.default_view=_,i.override({label:"Button"})}, +611: function _(t,e,o,c,s){var a;c();const i=t(1),n=t(612),u=i.__importStar(t(603));class r extends n.ToggleButtonGroupView{get active(){return new Set(this.model.active)}change_active(t){const{active:e}=this;e.has(t)?e.delete(t):e.add(t),this.model.active=[...e].sort()}_update_active(){const{active:t}=this;this._buttons.forEach(((e,o)=>{e.classList.toggle(u.active,t.has(o))}))}}o.CheckboxButtonGroupView=r,r.__name__="CheckboxButtonGroupView";class _ extends n.ToggleButtonGroup{constructor(t){super(t)}}o.CheckboxButtonGroup=_,a=_,_.__name__="CheckboxButtonGroup",a.prototype.default_view=r,a.define((({Int:t,List:e})=>({active:[e(t),[]]})))}, +612: function _(t,e,n,s,o){var i;s();const r=t(1),l=t(613),a=t(53),_=t(20),d=t(63),u=r.__importStar(t(603)),c=u;class h extends l.OrientedControlView{*controls(){yield*this._buttons}connect_signals(){super.connect_signals();const t=this.model.properties;this.on_change(t.button_type,(()=>this.render())),this.on_change(t.labels,(()=>this.render())),this.on_change(t.active,(()=>this._update_active()))}stylesheets(){return[...super.stylesheets(),u.default]}render(){super.render(),this._buttons=this.model.labels.map(((t,e)=>{const n=(0,d.button)({class:[c.btn,c[`btn_${this.model.button_type}`]],disabled:this.model.disabled},t);return n.addEventListener("click",(()=>{this.change_active(e),this.model.trigger_event(new a.ButtonClick)})),n})),this._update_active();const t="horizontal"==this.model.orientation?c.horizontal:c.vertical,e=(0,d.div)({class:[c.btn_group,t]},this._buttons);this.shadow_el.appendChild(e)}}n.ToggleButtonGroupView=h,h.__name__="ToggleButtonGroupView";class p extends l.OrientedControl{constructor(t){super(t)}}n.ToggleButtonGroup=p,i=p,p.__name__="ToggleButtonGroup",i.define((({Str:t,List:e})=>({labels:[e(t),[]],button_type:[_.ButtonType,"default"]})))}, +613: function _(n,e,o,t,r){var i;t();const l=n(601),s=n(20);class _ extends l.ControlView{}o.OrientedControlView=_,_.__name__="OrientedControlView";class a extends l.Control{constructor(n){super(n)}}o.OrientedControl=a,i=a,a.__name__="OrientedControl",i.define((()=>({orientation:[s.Orientation,"horizontal"]})))}, +614: function _(e,t,s,n,i){var c;n();const o=e(1),a=e(615),h=e(63),l=e(10),d=e(34),p=o.__importStar(e(608));class r extends a.ToggleInputGroupView{get active(){return new Set(this.model.active)}connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this;for(const[t,s]of(0,d.enumerate)(this._inputs))t.checked=e.has(s)}))}render(){super.render();const e=(0,h.div)({class:[p.input_group,this.model.inline?p.inline:null]});this.shadow_el.appendChild(e);const{active:t,labels:s}=this.model;this._inputs=[];for(let n=0;nthis.change_active(n))),this._inputs.push(i),this.model.disabled&&(i.disabled=!0),(0,l.includes)(t,n)&&(i.checked=!0);const c=(0,h.label)(i,(0,h.span)(s[n]));e.appendChild(c)}}change_active(e){const{active:t}=this;t.has(e)?t.delete(e):t.add(e),this.model.active=[...t].sort()}}s.CheckboxGroupView=r,r.__name__="CheckboxGroupView";class u extends a.ToggleInputGroup{constructor(e){super(e)}}s.CheckboxGroup=u,c=u,u.__name__="CheckboxGroup",c.prototype.default_view=r,c.define((({Int:e,List:t})=>({active:[t(e),[]]})))}, +615: function _(e,t,n,s,o){var l;s();const r=e(1),i=e(601),u=r.__importDefault(e(608)),_=r.__importDefault(e(616));class p extends i.ControlView{*controls(){yield*this._inputs}connect_signals(){super.connect_signals();const{labels:e,inline:t}=this.model.properties;this.on_change([e,t],(()=>this.render()))}stylesheets(){return[...super.stylesheets(),u.default,_.default]}}n.ToggleInputGroupView=p,p.__name__="ToggleInputGroupView";class a extends i.Control{constructor(e){super(e)}}n.ToggleInputGroup=a,l=a,a.__name__="ToggleInputGroup",l.define((({Bool:e,Str:t,List:n})=>({labels:[n(t),[]],inline:[e,!1]})))}, +616: function _(t,i,p,e,n){e(),p.default='input[type="checkbox"],input[type="radio"]{margin:0;}input[type="checkbox"] + *,input[type="radio"] + *{position:relative;top:-2px;margin-left:3px;}'}, +617: function _(e,t,s,l,i){var a;l();const _=e(1),c=e(618),h=e(63),o=_.__importDefault(e(616));class d extends c.ToggleInputView{stylesheets(){return[...super.stylesheets(),o.default]}connect_signals(){super.connect_signals();const{label:e}=this.model.properties;this.on_change(e,(()=>this._update_label()))}render(){super.render(),this.checkbox_el=(0,h.input)({type:"checkbox"}),this.label_el=(0,h.span)(this.model.label),this.checkbox_el.addEventListener("change",(()=>this._toggle_active())),this._update_active(),this._update_disabled(),this.shadow_el.append(this.checkbox_el,this.label_el)}_update_active(){this.checkbox_el.checked=this.model.active}_update_disabled(){this.checkbox_el.toggleAttribute("disabled",this.model.disabled)}_update_label(){this.label_el.textContent=this.model.label}}s.CheckboxView=d,d.__name__="CheckboxView";class n extends c.ToggleInput{constructor(e){super(e)}}s.Checkbox=n,a=n,n.__name__="Checkbox",a.prototype.default_view=d,a.define((({Str:e})=>({label:[e,""]})))}, +618: function _(e,t,i,s,n){var o;s();const a=e(707);class c extends a.WidgetView{connect_signals(){super.connect_signals();const{active:e,disabled:t}=this.model.properties;this.on_change(e,(()=>this._update_active())),this.on_change(t,(()=>this._update_disabled()))}_toggle_active(){this.model.disabled||(this.model.active=!this.model.active)}}i.ToggleInputView=c,c.__name__="ToggleInputView";class _ extends a.Widget{constructor(e){super(e)}}i.ToggleInput=_,o=_,_.__name__="ToggleInput",o.define((({Bool:e})=>({active:[e,!1]})))}, +619: function _(e,t,i,n,o){var s;n();const r=e(1),l=e(607),c=e(63),a=e(22),d=r.__importStar(e(608));class h extends l.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>this.input_el.name=this.model.name??"")),this.connect(this.model.properties.color.change,(()=>this.input_el.value=(0,a.color2hexrgb)(this.model.color))),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled))}_render_input(){return this.input_el=(0,c.input)({type:"color",class:d.input,name:this.model.name,value:(0,a.color2hexrgb)(this.model.color),disabled:this.model.disabled})}render(){super.render(),this.input_el.addEventListener("change",(()=>this.change_input()))}change_input(){this.model.color=this.input_el.value,super.change_input()}}i.ColorPickerView=h,h.__name__="ColorPickerView";class p extends l.InputWidget{constructor(e){super(e)}}i.ColorPicker=p,s=p,p.__name__="ColorPicker",s.prototype.default_view=h,s.define((({Color:e})=>({color:[e,"#000000"]})))}, +620: function _(e,t,a,n,r){var i;n();const s=e(621),l=e(12);class c extends s.BaseDatePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"single"}}_on_change(e){(0,l.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_date(t)}})()}}a.DatePickerView=c,c.__name__="DatePickerView";class _ extends s.BaseDatePicker{constructor(e){super(e)}}a.DatePicker=_,i=_,_.__name__="DatePicker",i.prototype.default_view=c,i.define((({Nullable:e})=>({value:[e(s.DateLike),null]})))}, +621: function _(e,t,a,i,s){var n;i();const l=e(622),c=e(8),r=e(21);a.DateLike=(0,r.Or)((0,r.Ref)(Date),r.Str,r.Float),a.DateLikeList=(0,r.List)((0,r.Or)(a.DateLike,(0,r.Tuple)(a.DateLike,a.DateLike),(0,r.Struct)({from:a.DateLike,to:a.DateLike})));class d extends l.PickerBaseView{_format_date(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_date:t,max_date:a,disabled_dates:i,enabled_dates:s,date_format:n}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("minDate",this.model.min_date))),this.connect(a.change,(()=>this.picker.set("maxDate",this.model.max_date))),this.connect(i.change,(()=>{const{disabled_dates:e}=this.model;this.picker.set("disable",null!=e?this._convert_date_list(e):[])})),this.connect(s.change,(()=>{const{enabled_dates:e}=this.model;null!=e?this.picker.set("enable",this._convert_date_list(e)):(this.picker.config._enable=void 0,this.picker.redraw(),this.picker.updateValue(!0))})),this.connect(n.change,(()=>this.picker.set("altFormat",this.model.date_format)))}get flatpickr_options(){const{value:e,min_date:t,max_date:a,disabled_dates:i,enabled_dates:s,date_format:n}=this.model,l=super.flatpickr_options;return l.altInput=!0,l.altFormat=n,l.dateFormat="Y-m-d",null!=e&&(l.defaultDate=e),null!=t&&(l.minDate=t),null!=a&&(l.maxDate=a),null!=i&&(l.disable=this._convert_date_list(i)),null!=s&&(l.enable=this._convert_date_list(s)),l}_convert_date_list(e){const t=[];for(const a of e)if((0,c.isArray)(a)){const[e,i]=a;t.push({from:e,to:i})}else t.push(a);return t}}a.BaseDatePickerView=d,d.__name__="BaseDatePickerView";class o extends l.PickerBase{constructor(e){super(e)}}a.BaseDatePicker=o,n=o,o.__name__="BaseDatePicker",n.define((({Nullable:e})=>({min_date:[e(a.DateLike),null],max_date:[e(a.DateLike),null],disabled_dates:[e(a.DateLikeList),null],enabled_dates:[e(a.DateLikeList),null],date_format:[r.Str,"Y-m-d"]})))}, +622: function _(e,t,i,n,o){var s;n();const r=e(1),a=r.__importDefault(e(623)),l=e(607),c=e(63),d=e(20),h=e(63),p=e(12),f=r.__importDefault(e(631)),g=r.__importStar(e(608));class u extends l.InputWidgetView{get picker(){return(0,p.assert)(null!=this._picker),this._picker}*controls(){yield this.picker.altInput??this.input_el}remove(){this._picker?.destroy(),super.remove()}stylesheets(){return[...super.stylesheets(),f.default]}connect_signals(){super.connect_signals();const{inline:e}=this.model.properties;this.connect(e.change,(()=>this.picker.set("inline",this.model.inline)))}get flatpickr_options(){return{appendTo:this.group_el,inline:this.model.inline,position:this._position.bind(this),onChange:e=>{this._on_change(e),this.change_input()}}}_render_input(){return this.input_el=(0,c.input)({type:"text",class:g.input,disabled:this.model.disabled})}render(){super.render(),this._picker?.destroy();const e=this.flatpickr_options;this._picker=(0,a.default)(this.input_el,e)}_position(e,t){const i=t??e._positionElement,n=[...e.calendarContainer.children].reduce(((e,t)=>e+(0,h.bounding_box)(t).height),0),o=e.calendarContainer.offsetWidth,s=this.model.position.split(" "),r=s[0],a=s.length>1?s[1]:null,l=i.offsetTop,c=i.offsetTop+i.offsetHeight,d=i.offsetLeft,p=i.offsetLeft+i.offsetWidth,f=i.offsetWidth,g=window.innerHeight-c,u="above"===r||"below"!==r&&gn,_=null!=e.config.appendTo?l+(u?-n-2:i.offsetHeight+2):window.scrollY+l+(u?-n-2:i.offsetHeight+2);if(e.calendarContainer.classList.toggle("arrowTop",!u),e.calendarContainer.classList.toggle("arrowBottom",u),e.config.inline)return;let w=window.scrollX+d,C=!1,m=!1;"center"===a?(w-=(o-f)/2,C=!0):"right"===a&&(w-=o-f,m=!0),e.calendarContainer.classList.toggle("arrowLeft",!C&&!m),e.calendarContainer.classList.toggle("arrowCenter",C),e.calendarContainer.classList.toggle("arrowRight",m);const y=window.document.body.offsetWidth-(window.scrollX+p),k=w+o>window.document.body.offsetWidth,b=y+o>window.document.body.offsetWidth;if(e.calendarContainer.classList.toggle("rightMost",k),!e.config.static)if(e.calendarContainer.style.top=`${_}px`,k)if(b){const t=this.shadow_el.styleSheets[0],i=window.document.body.offsetWidth,n=Math.max(0,i/2-o/2),s=".flatpickr-calendar.centerMost:before",r=".flatpickr-calendar.centerMost:after",a=t.cssRules.length,l=`{left:${d}px;right:auto;}`;e.calendarContainer.classList.toggle("rightMost",!1),e.calendarContainer.classList.toggle("centerMost",!0),t.insertRule(`${s},${r}${l}`,a),e.calendarContainer.style.left=`${n}px`,e.calendarContainer.style.right="auto"}else e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${y}px`;else e.calendarContainer.style.left=`${w}px`,e.calendarContainer.style.right="auto"}}i.PickerBaseView=u,u.__name__="PickerBaseView";class _ extends l.InputWidget{constructor(e){super(e)}}i.PickerBase=_,s=_,_.__name__="PickerBase",s.define((({Bool:e})=>({position:[d.CalendarPosition,"auto"],inline:[e,!1]})))}, +623: function _(e,t,n,a,i){a();const o=e(1);var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0?new Date:new Date(n.config.minDate.getTime()),a=(0,f.getDefaultHours)(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,a=(0,u.getEventTarget)(e),i=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),r=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),f=c+l*s;if(void 0!==i.value&&2===i.value.length){var m=i===n.hourElement,g=i===n.minuteElement;fr&&(f=i===n.hourElement?f-r-(0,d.int)(!n.amPM):o,g&&x(void 0,1,n.hourElement)),n.amPM&&m&&(1===l?f+c===23:Math.abs(f-c)>l)&&(n.amPM.textContent=n.l10n.amPM[(0,d.int)(n.amPM.textContent===n.l10n.amPM[0])]),i.value=(0,d.pad)(f)}}(e);var i=n._input.value;h(),se(),n._input.value!==i&&n._debouncedChange()}function h(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*(0,d.int)(t===n.l10n.amPM[1]));var r=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===(0,f.compareDates)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var c=(0,f.calculateSecondsSinceMidnight)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=(0,f.calculateSecondsSinceMidnight)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),u=(0,f.calculateSecondsSinceMidnight)(a,i,o);if(u>s&&u=12)]),void 0!==n.secondElement&&(n.secondElement.value=(0,d.pad)(a)))}function b(e){var t=(0,u.getEventTarget)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&R(n)}function M(e,t,a,i){return t instanceof Array?t.forEach((function(t){return M(e,t,a,i)})):e instanceof Array?e.forEach((function(e){return M(e,t,a,i)})):(e.addEventListener(t,a,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,i)}}))}function y(){ie("onChange")}function w(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate=0&&(0,f.compareDates)(e,n.selectedDates[1])<=0)}(t)&&!re(t)&&r.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend",""+n.config.getWeek(t)+""),ie("onDayCreate",r),r}function T(e){e.focus(),"range"===n.config.mode&&J(e)}function _(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,i=t;i!=a;i+=e)for(var o=n.daysContainer.children[i],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf("hidden")&&W(s.dateObj))return s}}function I(e,t){var i=a(),o=B(i||document.body),r=void 0!==e?e:o?i:void 0!==n.selectedDateElem&&B(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&B(n.todayDateElem)?n.todayDateElem:_(t>0?1:-1);void 0===r?n._input.focus():o?function(e,t){for(var a=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,o=t>0?1:-1,r=a-n.currentMonth;r!=i;r+=o)for(var l=n.daysContainer.children[r],c=a-n.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf("hidden")&&W(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return T(u)}n.changeMonth(o),I(_(o),0)}(r,t):T(r)}function S(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?"prevMonthDay hidden":"prevMonthDay",s=l?"nextMonthDay hidden":"nextMonthDay",d=i+1-a,f=0;d<=i;d++,f++)r.appendChild(k("flatpickr-day "+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(k("flatpickr-day",new Date(e,t,d),0,f));for(var m=o+1;m<=42-a&&(1===n.config.showMonths||f%7!=0);m++,f++)r.appendChild(k("flatpickr-day "+s,new Date(e,t+1,m%o),0,f));var g=(0,u.createElement)("div","dayContainer");return g.appendChild(r),g}function O(){if(void 0!==n.daysContainer){(0,u.clearNode)(n.daysContainer),n.weekNumbers&&(0,u.clearNode)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&en.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var a=(0,u.createElement)("option","flatpickr-monthDropdown-month");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=(0,m.monthToStr)(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function A(){var e,t=(0,u.createElement)("div","flatpickr-month"),a=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=(0,u.createElement)("span","cur-month"):(n.monthsDropdownContainer=(0,u.createElement)("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),M(n.monthsDropdownContainer,"change",(function(e){var t=(0,u.getEventTarget)(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ie("onMonthChange")})),N(),e=n.monthsDropdownContainer);var i=(0,u.createNumberInput)("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var r=(0,u.createElement)("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),a.appendChild(r),t.appendChild(a),{container:t,yearElement:o,monthElement:e}}function P(){(0,u.clearNode)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=A();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function Y(){n.weekdayContainer?(0,u.clearNode)(n.weekdayContainer):n.weekdayContainer=(0,u.createElement)("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=(0,u.createElement)("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return F(),n.weekdayContainer}function F(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=l(n.l10n.weekdays.shorthand);e>0&&e\n "+t.join("")+"\n \n "}}function j(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ie("onYearChange"),N()),O(),ie("onMonthChange"),le())}function L(e){return n.calendarContainer.contains(e)}function H(e){if(n.isOpen&&!n.config.inline){var t=(0,u.getEventTarget)(e),a=L(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!L(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&p(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function R(e){if(!(!e||n.config.minDate&&en.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ie("onYearChange"),N())}}function W(e,t){var a;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&(0,f.compareDates)(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&(0,f.compareDates)(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!n.config.enable,r=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,l=0,c=void 0;l=c.from.getTime()&&i.getTime()<=c.to.getTime())return o}return!o}function B(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function K(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==ce();!t||!a||e.relatedTarget&&L(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function q(t){var i=(0,u.getEventTarget)(t),o=n.config.wrap?e.contains(i):i===n._input,r=n.config.allowInput,l=n.isOpen&&(!r||!o),c=n.config.inline&&o&&!r;if(13===t.keyCode&&o){if(r)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(L(i)||l||c){var s=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:s?(t.preventDefault(),p(),G()):Z(t);break;case 27:t.preventDefault(),G();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=a();if(void 0!==n.daysContainer&&(!1===r||d&&B(d))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),j(f),I(_(1),0)):I(void 0,f)}}break;case 38:case 40:t.preventDefault();var m=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),R(n.currentYear-m),I(_(1),0)):s||I(void 0,7*m):i===n.currentYearElement?R(n.currentYear-m):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),p(t),n._debouncedChange());break;case 9:if(s){var g=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),v=g.indexOf(i);if(-1!==v){var D=g[v+(t.shiftKey?-1:1)];t.preventDefault(),(D||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],h(),se();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],h(),se()}(o||L(i))&&ie("onKeyDown",t)}function J(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(a,n.selectedDates[0].getTime()),r=Math.max(a,n.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;do&&dc)?c=d:d>i&&(!s||d ."+t)).forEach((function(t){var o=t.dateObj.getTime(),r=c>0&&o0&&o>s;if(r)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));l&&!r||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?"startRange":"endRange"),ia&&o===i&&t.classList.add("endRange"),o>=c&&(0===s||o<=s)&&(0,f.isBetween)(o,i,a)&&t.classList.add("inRange")))}))}}function U(){!n.isOpen||n.config.static||n.config.inline||X()}function $(e){return function(t){var a=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),i=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==a&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return W(e)})),n.selectedDates.length||"min"!==e||D(a),se()),n.daysContainer&&(z(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==a&&i.getFullYear()===a.getFullYear())}}function Q(){return n.config.wrap?e.querySelector("[data-input]"):e}function V(){"object"!=typeof n.config.locale&&void 0===v.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=r(r({},v.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?v.l10ns[n.config.locale]:void 0),m.tokenRegex.D="("+n.l10n.weekdays.shorthand.join("|")+")",m.tokenRegex.l="("+n.l10n.weekdays.longhand.join("|")+")",m.tokenRegex.M="("+n.l10n.months.shorthand.join("|")+")",m.tokenRegex.F="("+n.l10n.months.longhand.join("|")+")",m.tokenRegex.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===r(r({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===v.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=(0,f.createDateFormatter)(n),n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n})}function X(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){ie("onPreCalendarPosition");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,d="above"===r||"below"!==r&&sa,f=window.pageYOffset+c.top+(d?-a-2:t.offsetHeight+2);if((0,u.toggleClass)(n.calendarContainer,"arrowTop",!d),(0,u.toggleClass)(n.calendarContainer,"arrowBottom",d),!n.config.inline){var m=window.pageXOffset+c.left,g=!1,p=!1;"center"===l?(m-=(i-c.width)/2,g=!0):"right"===l&&(m-=i-c.width,p=!0),(0,u.toggleClass)(n.calendarContainer,"arrowLeft",!g&&!p),(0,u.toggleClass)(n.calendarContainer,"arrowCenter",g),(0,u.toggleClass)(n.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+i>window.document.body.offsetWidth,D=h+i>window.document.body.offsetWidth;if((0,u.toggleClass)(n.calendarContainer,"rightMost",v),!n.config.static)if(n.calendarContainer.style.top=f+"px",v)if(D){var C=function(){for(var e=null,t=0;tn.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=a,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var r=re(i);r?n.selectedDates.splice(parseInt(r),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==(0,f.compareDates)(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(h(),o){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(ie("onYearChange"),N()),ie("onMonthChange")}if(le(),O(),se(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():T(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,s="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||s)&&G()}y()}}n.parseDate=(0,f.createDateParser)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=M,n._setHoursFromDate=D,n._positionCalendar=X,n.changeMonth=j,n.changeYear=R,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=(0,f.getDefaultHours)(n.config);C(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ie("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));ie("onClose")},n.onMouseOver=J,n._createElement=u.createElement,n.createDay=k,n.destroy=function(){void 0!==n.config&&ie("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=W,n.jumpToDate=w,n.updateValue=se,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=(0,u.getEventTarget)(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ie("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),ie("onOpen"),X(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=z,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ee[a]&&ee[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ee[e]?ee[e].forEach((function(e){return e()})):c.HOOKS.indexOf(e)>-1&&(n.config[e]=(0,d.arrayify)(t));n.redraw(),se(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),w(void 0,t),D(),0===n.selectedDates.length&&n.clear(!1);se(t),t&&ie("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[V,F],showMonths:[P,o,Y],minDate:[w],maxDate:[w],positionElement:[ae],clickOpens:[function(){!0===n.config.clickOpens?(M(n._input,"focus",n.open),M(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function te(e,t){var a=[];if(e instanceof Array)a=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)a=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":a=[n.parseDate(e,t)];break;case"multiple":a=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case"range":a=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter((function(e){return e instanceof Date&&W(e,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ne(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ae(){n._positionElement=n.config.positionElement||n._input}function ie(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var i=0;a[i]&&i1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=(0,m.monthToStr)(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYearn.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ce(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,a){return"range"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function se(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ce(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ce(n.config.altFormat)),!1!==e&&ie("onValueUpdate")}function de(e){var t=(0,u.getEventTarget)(e),a=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);a||i?j(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=r(r({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var s="time"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var u=v.defaultConfig.dateFormat||c.defaults.dateFormat;l.dateFormat=o.noCalendar||s?"H:i"+(o.enableSeconds?":S":""):u+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var f=v.defaultConfig.altFormat||c.defaults.altFormat;l.altFormat=o.noCalendar||s?"h:i"+(o.enableSeconds?":S K":" K"):f+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:$("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:$("max")});var m=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:m("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:m("max")}),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,o);for(var g=0;g-1?n.config[h]=(0,d.arrayify)(p[h]).map(i).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=Q().className+" "+n.config.altInputClass);ie("onParseConfig")}(),V(),function(){if(n.input=Q(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=(0,u.createElement)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");ae()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=(0,u.createElement)("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=(0,u.createElement)("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=(0,u.createElement)("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=(0,u.createElement)("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,P(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&((0,u.toggleClass)(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&((0,u.toggleClass)(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],le(),n.monthNav)),n.innerContainer=(0,u.createElement)("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=(0,u.createElement)("div","flatpickr-weekwrapper");e.appendChild((0,u.createElement)("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=(0,u.createElement)("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=i,n.weekWrapper=a}n.rContainer=(0,u.createElement)("div","flatpickr-rContainer"),n.rContainer.appendChild(Y()),n.daysContainer||(n.daysContainer=(0,u.createElement)("div","flatpickr-days"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=(0,f.getDefaultHours)(n.config);n.timeContainer=(0,u.createElement)("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=(0,u.createElement)("span","flatpickr-time-separator",":"),a=(0,u.createNumberInput)("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName("input")[0];var i=(0,u.createNumberInput)("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=(0,u.createNumberInput)("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=(0,d.pad)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild((0,u.createElement)("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=(0,u.createElement)("span","flatpickr-am-pm",n.l10n.amPM[(0,d.int)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());(0,u.toggleClass)(n.calendarContainer,"rangeMode","range"===n.config.mode),(0,u.toggleClass)(n.calendarContainer,"animate",!0===n.config.animate),(0,u.toggleClass)(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var r=(0,u.createElement)("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(r,n.element),r.appendChild(n.element),n.altInput&&r.appendChild(n.altInput),r.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),(function(t){return M(t,"click",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=(0,u.createElement)("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}M(n.mobileInput,"change",(function(e){n.setDate((0,u.getEventTarget)(e).value,!1,n.mobileFormatStr),ie("onChange"),ie("onClose")}))}();var e=(0,d.debounce)(U,50);n._debouncedChange=(0,d.debounce)(y,g),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(n.daysContainer,"mouseover",(function(e){"range"===n.config.mode&&J((0,u.getEventTarget)(e))}));M(n._input,"keydown",q),void 0!==n.calendarContainer&&M(n.calendarContainer,"keydown",q);n.config.inline||n.config.static||M(window,"resize",e);void 0!==window.ontouchstart?M(window.document,"touchstart",H):M(window.document,"mousedown",H);M(window.document,"focus",H,{capture:!0}),!0===n.config.clickOpens&&(M(n._input,"focus",n.open),M(n._input,"click",n.open));void 0!==n.daysContainer&&(M(n.monthNav,"click",de),M(n.monthNav,["keyup","increment"],b),M(n.daysContainer,"click",Z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return(0,u.getEventTarget)(e).select()};M(n.timeContainer,["increment"],p),M(n.timeContainer,"blur",p,{capture:!0}),M(n.timeContainer,"click",E),M([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&M(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&M(n.amPM,"click",(function(e){p(e)}))}n.config.allowInput&&M(n._input,"blur",K)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&D(n.config.noCalendar?n.latestSelectedDateObj:void 0),se(!1)),o();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&X(),ie("onReady")}(),n}function h(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}}, +625: function _(e,r,a,n,t){n(),a.english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a.default=a.english}, +626: function _(n,t,r,i,u){i(),r.debounce=function(n,t){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout((function(){return n.apply(i,u)}),t)}};r.pad=function(n,t){return void 0===t&&(t=2),("000"+n).slice(-1*t)};r.int=function(n){return!0===n?1:0};r.arrayify=function(n){return n instanceof Array?n:[n]}}, +627: function _(t,e,n,r,a){function i(t,e,n){var r=window.document.createElement(t);return e=e||"",n=n||"",r.className=e,void 0!==n&&(r.textContent=n),r}r(),n.toggleClass=function(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)},n.createElement=i,n.clearNode=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.findParent=function t(e,n){if(n(e))return e;if(e.parentNode)return t(e.parentNode,n);return},n.createNumberInput=function(t,e){var n=i("div","numInputWrapper"),r=i("input","numInput "+t),a=i("span","arrowUp"),o=i("span","arrowDown");-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*");if(void 0!==e)for(var u in e)r.setAttribute(u,e[u]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},n.getEventTarget=function(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}}, +628: function _(e,t,n,a,r){a(),n.compareDates=function(e,t,n){void 0===n&&(n=!0);if(!1!==n)return new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0);return e.getTime()-t.getTime()},n.compareTimes=function(e,t){return 3600*(e.getHours()-t.getHours())+60*(e.getMinutes()-t.getMinutes())+e.getSeconds()-t.getSeconds()},n.getDefaultHours=function(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();tMath.min(t,n)&&e=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*(0,u.int)(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(1e3*parseFloat(n))},W:function(t,n,e){var o=parseInt(n),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+e.firstDayOfWeek),r},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:a,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:a,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},e.tokenRegex={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},e.formats={Z:function(t){return t.toISOString()},D:function(t,n,o){return n.weekdays.shorthand[e.formats.w(t,n,o)]},F:function(t,n,o){return(0,e.monthToStr)(e.formats.n(t,n,o)-1,!1,n)},G:function(t,n,o){return(0,u.pad)(e.formats.h(t,n,o))},H:function(t){return(0,u.pad)(t.getHours())},J:function(t,n){return void 0!==n.ordinal?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[(0,u.int)(t.getHours()>11)]},M:function(t,n){return(0,e.monthToStr)(t.getMonth(),!0,n)},S:function(t){return(0,u.pad)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return(0,u.pad)(t.getFullYear(),4)},d:function(t){return(0,u.pad)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return(0,u.pad)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return(0,u.pad)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}}, +630: function _(n,t,o,r,e){"function"!=typeof Object.assign&&(Object.assign=function(n){for(var t=[],o=1;o({value:[a(e(r.DateLike,r.DateLike)),null]})))}, +633: function _(e,t,i,a,n){var r;a();const s=e(634),l=e(621),c=e(12);class _ extends s.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"single"}}_on_change(e){(0,c.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_date(t)}})()}}i.DatetimePickerView=_,_.__name__="DatetimePickerView";class o extends s.BaseDatetimePicker{constructor(e){super(e)}}i.DatetimePicker=o,r=o,o.__name__="DatetimePicker",r.prototype.default_view=_,r.define((({Nullable:e})=>({value:[e(l.DateLike),null]})))}, +634: function _(e,t,n,c,i){var s;c();const r=e(621),o=e(20);class m extends r.BaseDatePickerView{connect_signals(){super.connect_signals();const{value:e,hour_increment:t,minute_increment:n,second_increment:c,seconds:i,clock:s}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("hourIncrement",this.model.hour_increment))),this.connect(n.change,(()=>this.picker.set("minuteIncrement",this.model.minute_increment))),this.connect(c.change,(()=>this._update_second_increment())),this.connect(i.change,(()=>this.picker.set("enableSeconds",this.model.seconds))),this.connect(s.change,(()=>this.picker.set("time_24hr","24h"==this.model.clock)))}get flatpickr_options(){const{hour_increment:e,minute_increment:t,seconds:n,clock:c}=this.model,i=super.flatpickr_options;return i.enableTime=!0,i.dateFormat="Y-m-dTH:i:S",i.hourIncrement=e,i.minuteIncrement=t,i.enableSeconds=n,i.time_24hr="24h"==c,i}render(){super.render(),this._update_second_increment()}_update_second_increment(){const{second_increment:e}=this.model;this.picker.secondElement?.setAttribute("step",e.toString())}}n.BaseDatetimePickerView=m,m.__name__="BaseDatetimePickerView";class a extends r.BaseDatePicker{constructor(e){super(e)}}n.BaseDatetimePicker=a,s=a,a.__name__="BaseDatetimePicker",s.define((({Bool:e,Positive:t,Int:n})=>({hour_increment:[t(n),1],minute_increment:[t(n),1],second_increment:[t(n),1],seconds:[e,!1],clock:[o.Clock,"24h"]}))),s.override({date_format:"Y-m-d H:i"})}, +635: function _(e,t,a,i,n){var s;i();const r=e(634),l=e(621),c=e(12);class _ extends r.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"range"}}_on_change(e){switch(e.length){case 0:this.model.value=null;break;case 1:break;case 2:{const[t,a]=e,i=this._format_date(t),n=this._format_date(a);this.model.value=[i,n];break}default:(0,c.assert)(!1,"invalid length")}}}a.DatetimeRangePickerView=_,_.__name__="DatetimeRangePickerView";class o extends r.BaseDatetimePicker{constructor(e){super(e)}}a.DatetimeRangePicker=o,s=o,o.__name__="DatetimeRangePicker",s.prototype.default_view=_,s.define((({Nullable:e,Tuple:t})=>({value:[e(t(l.DateLike,l.DateLike)),null]})))}, +636: function _(e,t,s,i,r){var _;i();const n=e(637);class a extends n.MarkupView{render(){super.render(),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.has_math_disabled()?this.model.text:this.process_tex(this.model.text)}}s.DivView=a,a.__name__="DivView";class d extends n.Markup{constructor(e){super(e)}}s.Div=d,_=d,d.__name__="Div",_.prototype.default_view=a,_.define((({Bool:e})=>({render_as_text:[e,!1]})))}, +637: function _(t,e,s,i,r){var a;i();const n=t(1),d=t(63),h=t(707),o=n.__importStar(t(638));class _ extends h.WidgetView{constructor(){super(...arguments),this._auto_width="fit-content",this._auto_height="auto"}async lazy_initialize(){await super.lazy_initialize(),"not_started"!=this.provider.status&&"loading"!=this.provider.status||this.provider.ready.connect((()=>{this.contains_tex_string(this.model.text)&&this.rerender()}))}has_math_disabled(){return this.model.disable_math||!this.contains_tex_string(this.model.text)}rerender(){this.render()}connect_signals(){super.connect_signals(),this.connect(this.model.change,(()=>{this.rerender()}))}stylesheets(){return[...super.stylesheets(),o.default,"p { margin: 0; }"]}render(){super.render(),this.markup_el=(0,d.div)({class:o.clearfix,style:{display:"inline-block"}}),this.shadow_el.appendChild(this.markup_el),"failed"!=this.provider.status&&"loaded"!=this.provider.status||(this._has_finished=!0)}}s.MarkupView=_,_.__name__="MarkupView";class l extends h.Widget{constructor(t){super(t)}}s.Markup=l,a=l,l.__name__="Markup",a.define((({Bool:t,Str:e})=>({text:[e,""],disable_math:[t,!1]})))}, +638: function _(e,a,f,l,r){l(),f.clearfix="bk-clearfix",f.default='.bk-clearfix:before,.bk-clearfix:after{content:"";display:table;}.bk-clearfix:after{clear:both;}'}, +639: function _(e,t,i,s,n){var o;s();const l=e(1),_=e(600),r=e(53),d=e(63),u=e(8),c=e(50),h=l.__importStar(e(603)),m=l.__importStar(e(609)),p=m,a=l.__importStar(e(640)),g=a;class w extends _.AbstractButtonView{constructor(){super(...arguments),this._open=!1}stylesheets(){return[...super.stylesheets(),m.default,a.default]}connect_signals(){super.connect_signals();const{menu:e}=this.model.properties;this.on_change(e,(()=>this.rebuild_menu()))}render(){super.render();const e=(0,d.div)({class:[g.caret,g.down]});if(this.model.is_split){const t=this._render_button(e);t.classList.add(h.dropdown_toggle),t.addEventListener("click",(()=>this._toggle_menu())),this.group_el.append(t)}else this.button_el.append(e);this.menu_el=(0,d.div)({class:[p.menu,p.below]}),this.shadow_el.append(this.menu_el),this.rebuild_menu(),(0,d.undisplay)(this.menu_el)}_show_menu(){if(!this._open){this._open=!0,(0,d.display)(this.menu_el);const e=t=>{t.composedPath().includes(this.el)||(document.removeEventListener("click",e),this._hide_menu())};document.addEventListener("click",e)}}_hide_menu(){this._open&&(this._open=!1,(0,d.undisplay)(this.menu_el))}_toggle_menu(){this._open?this._hide_menu():this._show_menu()}click(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new r.ButtonClick),super.click()):this._toggle_menu()}_item_click(e){this._hide_menu();const t=this.model.menu[e];if(null!=t){const i=(0,u.isString)(t)?t:t[1];(0,u.isString)(i)?this.model.trigger_event(new r.MenuItemClick(i)):(0,c.execute)(i,this.model,{index:e})}}rebuild_menu(){(0,d.empty)(this.menu_el);const e=this.model.menu.map(((e,t)=>{if(null==e)return(0,d.div)({class:p.divider});{const i=(0,u.isString)(e)?e:e[0],s=(0,d.div)(i);return s.addEventListener("click",(()=>this._item_click(t))),s}}));this.menu_el.append(...e)}}i.DropdownView=w,w.__name__="DropdownView";class v extends _.AbstractButton{constructor(e){super(e)}get is_split(){return this.split}}i.Dropdown=v,o=v,v.__name__="Dropdown",o.prototype.default_view=w,o.define((({Null:e,Bool:t,Str:i,List:s,Tuple:n,Or:o})=>({split:[t,!1],menu:[s(o(i,n(i,o(i)),e)),[]]}))),o.override({label:"Dropdown"})}, +640: function _(t,r,e,a,d){a(),e.caret="bk-caret",e.down="bk-down",e.up="bk-up",e.left="bk-left",e.right="bk-right",e.default=":host{--caret-width:4px;}.bk-caret{display:inline-block;vertical-align:middle;width:0;height:0;margin:0 5px;}.bk-caret.bk-down{border-top:var(--caret-width) solid;}.bk-caret.bk-up{border-bottom:var(--caret-width) solid;}.bk-caret.bk-down,.bk-caret.bk-up{border-right:var(--caret-width) solid transparent;border-left:var(--caret-width) solid transparent;}.bk-caret.bk-left{border-right:var(--caret-width) solid;}.bk-caret.bk-right{border-left:var(--caret-width) solid;}.bk-caret.bk-left,.bk-caret.bk-right{border-top:var(--caret-width) solid transparent;border-bottom:var(--caret-width) solid transparent;}"}, +641: function _(e,t,n,i,s){var l;i();const r=e(1),a=e(607),o=e(63),u=e(8),p=r.__importStar(e(18)),d=r.__importStar(e(608)),c=r.__importDefault(e(603));class _ extends a.InputWidgetView{connect_signals(){super.connect_signals(),this.model.on_event(a.ClearInput,(()=>{this.model.setv({value:"",mime_type:"",filename:""}),this.input_el.value=""}))}stylesheets(){return[...super.stylesheets(),c.default]}_render_input(){const{multiple:e,disabled:t,directory:n}=this.model,i=(()=>{const{accept:e}=this.model;return(0,u.isString)(e)?e:e.join(",")})();return this.input_el=(0,o.input)({type:"file",class:d.input,multiple:e,accept:i,disabled:t,webkitdirectory:n})}render(){super.render(),this.input_el.addEventListener("change",(async()=>{const{files:e}=this.input_el;null!=e&&await this.load_files(e)}))}async load_files(e){const t=[],n=[],i=[],{directory:s,multiple:l}=this.model,r=(()=>{const{accept:e}=this.model;return(0,u.isString)(e)?e:e.join(",")})();for(const l of e){const e=await this._read_file(l),[,a="",,o=""]=e.split(/[:;,]/,4);if(s){const e=l.name.split(".").pop();r.length>0&&(0,u.isString)(e)&&!r.includes(`.${e}`)||(n.push(l.webkitRelativePath),t.push(o),i.push(a))}else n.push(l.name),t.push(o),i.push(a)}const[a,o,p]=s||l?[t,n,i]:0!=e.length?[t[0],n[0],i[0]]:["","",""];this.model.setv({value:a,filename:o,mime_type:p})}_read_file(e){return new Promise(((t,n)=>{const i=new FileReader;i.onload=()=>{const{result:s}=i;null!=s?t(s):n(i.error??new Error(`unable to read '${e.name}'`))},i.readAsDataURL(e)}))}}n.FileInputView=_,_.__name__="FileInputView";class m extends a.InputWidget{constructor(e){super(e)}}n.FileInput=m,l=m,m.__name__="FileInput",l.prototype.default_view=_,l.define((({Bool:e,Str:t,List:n,Or:i})=>({value:[i(t,n(t)),p.unset,{readonly:!0}],mime_type:[i(t,n(t)),p.unset,{readonly:!0}],filename:[i(t,n(t)),p.unset,{readonly:!0}],accept:[i(t,n(t)),""],multiple:[e,!1],directory:[e,!1]})))}, +642: function _(e,t,i,o,n){var s;o();const l=e(600),d=e(420),r=e(486),a=e(56);class p extends l.AbstractButtonView{*children(){yield*super.children(),yield this.tooltip}async lazy_initialize(){await super.lazy_initialize();const{tooltip:e}=this.model;this.tooltip=await(0,a.build_view)(e,{parent:this})}remove(){this.tooltip.remove(),super.remove()}render(){super.render();let e=!1;const t=t=>{this.tooltip.model.setv({visible:t,closable:e})};this.on_change(this.tooltip.model.properties.visible,(()=>{const{visible:i}=this.tooltip.model;i||(e=!1),t(i)})),this.el.addEventListener("mouseenter",(()=>{t(!0)})),this.el.addEventListener("mouseleave",(()=>{e||t(!1)})),document.addEventListener("mousedown",(i=>{const o=i.composedPath();o.includes(this.tooltip.el)||(o.includes(this.el)?(e=!e,t(e)):(e=!1,t(!1)))})),window.addEventListener("blur",(()=>{e=!1,t(!1)}))}}i.HelpButtonView=p,p.__name__="HelpButtonView";class u extends l.AbstractButton{constructor(e){super(e)}}i.HelpButton=u,s=u,u.__name__="HelpButton",s.prototype.default_view=p,s.define((({Ref:e})=>({tooltip:[e(d.Tooltip)]}))),s.override({label:"",icon:()=>new r.BuiltinIcon({icon_name:"help",size:18}),button_type:"default"})}, +643: function _(e,t,i,s,o){var l;s();const n=e(1),u=n.__importDefault(e(644)),_=e(63),r=e(8),a=e(26),c=n.__importStar(e(608)),h=n.__importDefault(e(645)),d=e(607);function p(e){return Object.defineProperty(e,"target",{get:()=>e.composedPath()[0]??null,configurable:!0}),e}class m extends u.default{_onFocus(e){super._onFocus(p(e))}_onBlur(e){super._onBlur(p(e))}_onKeyUp(e){super._onKeyUp(p(e))}_onKeyDown(e){super._onKeyDown(p(e))}_onClick(e){super._onClick(p(e))}_onTouchEnd(e){super._onTouchEnd(p(e))}_onMouseDown(e){super._onMouseDown(p(e))}_onMouseOver(e){super._onMouseOver(p(e))}}m.__name__="OurChoices";class g extends d.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.disabled.change,(()=>this.set_disabled()));const{value:e,max_items:t,option_limit:i,search_option_limit:s,delete_button:o,placeholder:l,options:n,name:u,title:_}=this.model.properties;this.on_change([t,i,s,o,l,n,u,_],(()=>this.render())),this.on_change(e,(()=>{(0,a.is_equal)(this.model.value,this._current_values)||this.render()}))}stylesheets(){return[...super.stylesheets(),h.default]}_render_input(){return this.input_el=(0,_.select)({multiple:!0,class:c.input,name:this.model.name,disabled:this.model.disabled})}render(){super.render();const e=new Set(this.model.value),t=this.model.options.map((t=>{let i,s;return(0,r.isString)(t)?i=s=t:[i,s]=t,{value:i,label:s,selected:e.has(i)}})),i=this.model.solid?"solid":"light",s=`choices__item ${i}`,o=`choices__button ${i}`,l={choices:t,itemSelectText:"",duplicateItemsAllowed:!1,shouldSort:!1,removeItemButton:this.model.delete_button,classNames:{item:s,button:o},placeholderValue:this.model.placeholder,maxItemCount:this.model.max_items??-1,renderChoiceLimit:this.model.option_limit??-1,searchResultLimit:this.model.search_option_limit??4};this.choice_el=new m(this.input_el,l),this.input_el.addEventListener("change",(()=>this.change_input()))}set_disabled(){this.model.disabled?this.choice_el.disable():this.choice_el.enable()}get _current_values(){return this.choice_el.getValue().map((e=>e.value))}change_input(){this.model.value=this._current_values,super.change_input()}}i.MultiChoiceView=g,g.__name__="MultiChoiceView";class b extends d.InputWidget{constructor(e){super(e)}}i.MultiChoice=b,l=b,b.__name__="MultiChoice",l.prototype.default_view=g,l.define((({Bool:e,Int:t,Str:i,List:s,Tuple:o,Or:l,Nullable:n})=>({value:[s(i),[]],options:[s(l(i,o(i,i))),[]],max_items:[n(t),null],delete_button:[e,!0],placeholder:[n(i),null],option_limit:[n(t),null],search_option_limit:[n(t),null],solid:[e,!0]})))}, +644: function _(e,t,i,n,r){ /*! choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ var s,o;s=window,o=function(){return function(){"use strict";var e={282:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var n=i(883);t.addChoice=function(e){var t=e.value,i=e.label,r=e.id,s=e.groupId,o=e.disabled,a=e.elementId,c=e.customProperties,l=e.placeholder,h=e.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:t,label:i,id:r,groupId:s,disabled:o,elementId:a,customProperties:c,placeholder:l,keyCode:h}},t.filterChoices=function(e){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var n=i(883);t.addGroup=function(e){var t=e.value,i=e.id,r=e.active,s=e.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:t,id:i,active:r,disabled:s}}},464:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var n=i(883);t.addItem=function(e){var t=e.value,i=e.label,r=e.id,s=e.choiceId,o=e.groupId,a=e.customProperties,c=e.placeholder,l=e.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:t,label:i,id:r,choiceId:s,groupId:o,customProperties:a,placeholder:c,keyCode:l}},t.removeItem=function(e,t){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var n=i(883);t.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:n.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r=0?this._store.getGroupById(r):null;return this._store.dispatch((0,l.highlightItem)(i,!0)),t&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,i=e.groupId,n=void 0===i?-1:i,r=e.value,s=void 0===r?"":r,o=e.label,a=void 0===o?"":o,c=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,l.highlightItem)(t,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:t,value:s,label:a,groupValue:c&&c.value?c.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;return t.push(n),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,i,n){var r=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var s=e(this);if("function"==typeof Promise&&s instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return s})).then((function(e){return r.setChoices(e,t,i,n)})).catch((function(e){r.config.silent||console.error(e)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(s))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof s));return this.setChoices(s,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)r._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:i});else{var n=e;r._addChoice({value:n[t],label:n[i],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,h.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,n=t.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var s=n.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));s.length>=1&&(r=this._createChoicesFragment(s,r)),r=this._createGroupsFragment(i,n,r)}else n.length>=1&&(r=this._createChoicesFragment(n,r));if(r.childNodes&&r.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,this.input.value);if(a.response)this.choiceList.append(r),this._highlightChoice();else{var c=this._getTemplate("notice",a.notice);this.choiceList.append(c)}}else{var l=void 0;c=void 0,this._isSearching?(c="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,l=this._getTemplate("notice",c,"no-results")):(c="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,l=this._getTemplate("notice",c,"no-choices")),this.choiceList.append(l)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,i){var n=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var r=function(e){return t.filter((function(t){return n._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===n.config.renderSelectedChoices||!t.selected)}))}(e);if(r.length>=1){var s=n._getTemplate("choiceGroup",e);i.appendChild(s),n._createChoicesFragment(r,i,!0)}})),i},e.prototype._createChoicesFragment=function(e,t,i){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,c=s.renderChoiceLimit,l=this._isSearching?f.sortByScore:this.config.sorter,h=function(e){if("auto"!==o||r._isSelectOneElement||!e.selected){var i=r._getTemplate("choice",e,r.config.itemSelectText);t.appendChild(i)}},u=e;"auto"!==o||this._isSelectOneElement||(u=e.filter((function(e){return!e.selected})));var d=u.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=d.placeholderChoices,m=d.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(l);var v=u.length,g=this._isSelectOneElement?n(n([],p,!0),m,!0):m;this._isSearching?v=a:c&&c>0&&!i&&(v=c);for(var _=0;_=n){var o=r?this._searchChoices(e):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:e,resultCount:o})}else s&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var i=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&i&&(i=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:n}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(i," "))return 0;var r=this._store.searchableChoices,s=t,c=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,!0),includeMatches:!0}),l=new o.default(r,c).search(s);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(l)),l.length},e.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,n=this.input.isFocussed,r=this.dropdown.isActive,s=this.itemList.hasChildren(),o=String.fromCharCode(t),a=/[^\x00-\x1F]/.test(o),c=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY,h=d.KEY_CODES.ENTER_KEY,u=d.KEY_CODES.A_KEY,p=d.KEY_CODES.ESC_KEY,f=d.KEY_CODES.UP_KEY,m=d.KEY_CODES.DOWN_KEY,v=d.KEY_CODES.PAGE_UP_KEY,g=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case u:return this._onSelectKey(e,s);case h:return this._onEnterKey(e,i,r);case p:return this._onEscapeKey(r);case f:case v:case m:case g:return this._onDirectionKey(e,r);case l:case c:return this._onDeleteKey(e,i,n)}},e.prototype._onKeyUp=function(e){var t=e.target,i=e.keyCode,n=this.input.value,r=this._store.activeItems,s=this._canAddItem(r,n),o=d.KEY_CODES.BACK_KEY,c=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(s.notice&&n){var l=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=l.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var h=(i===o||i===c)&&t&&!t.value,u=!this._isTextElement&&this._isSearching,p=this._canSearch&&s.response;h&&u?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var i=e.ctrlKey,n=e.metaKey;(i||n)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t,i){var n=e.target,r=d.KEY_CODES.ENTER_KEY,s=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var o=this.input.value;this._canAddItem(t,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(s&&(this._handleButtonAction(t,n),e.preventDefault()),i){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(t[0]&&(t[0].keyCode=r),this._handleChoiceAction(t,a)),e.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e,t){var i=e.keyCode,n=e.metaKey,r=d.KEY_CODES.DOWN_KEY,s=d.KEY_CODES.PAGE_UP_KEY,o=d.KEY_CODES.PAGE_DOWN_KEY;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=i===r||i===o?1:-1,c="[data-choice-selectable]",l=void 0;if(n||i===o||i===s)l=a>0?this.dropdown.element.querySelector("".concat(c,":last-of-type")):this.dropdown.element.querySelector(c);else{var h=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));l=h?(0,f.getAdjacentEl)(h,c,a):this.dropdown.element.querySelector(c)}l&&((0,f.isScrolledIntoView)(l,this.choiceList.element,a)||this.choiceList.scrollToChildElement(l,a),this._highlightChoice(l)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,i){var n=e.target;this._isSelectOneElement||n.value||!i||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(_&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,n="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,i=this,n=e.target;n&&this.containerOuter.element.contains(n)&&((t={})[d.TEXT_TYPE]=function(){n===i.input.element&&i.containerOuter.addFocusState()},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState(),n===i.input.element&&i.showDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,i=this,n=e.target;if(n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[d.TEXT_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),r&&i.unhighlightAll(),i.hideDropdown(!0))},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),(n===i.input.element||n===i.containerOuter.element&&!i._canSearch)&&i.hideDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),r&&i.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},e.prototype._addItem=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,r=e.choiceId,s=void 0===r?-1:r,o=e.groupId,a=void 0===o?-1:o,c=e.customProperties,h=void 0===c?{}:c,u=e.placeholder,p=void 0!==u&&u,f=e.keyCode,m=void 0===f?-1:f,v="string"==typeof t?t.trim():t,g=this._store.items,_=n||v,y=s||-1,E=a>=0?this._store.getGroupById(a):null,b=g?g.length+1:1;this.config.prependValue&&(v=this.config.prependValue+v.toString()),this.config.appendValue&&(v+=this.config.appendValue.toString()),this._store.dispatch((0,l.addItem)({value:v,label:_,id:b,choiceId:y,groupId:a,customProperties:h,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(b),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:b,value:v,label:_,customProperties:h,groupValue:E&&E.value?E.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,r=e.customProperties,s=e.choiceId,o=e.groupId,a=o&&o>=0?this._store.getGroupById(o):null;t&&s&&(this._store.dispatch((0,l.removeItem)(t,s)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:r,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,i=e.label,n=void 0===i?null:i,r=e.isSelected,s=void 0!==r&&r,o=e.isDisabled,c=void 0!==o&&o,l=e.groupId,h=void 0===l?-1:l,u=e.customProperties,d=void 0===u?{}:u,p=e.placeholder,f=void 0!==p&&p,m=e.keyCode,v=void 0===m?-1:m;if(null!=t){var g=this._store.choices,_=n||t,y=g?g.length+1:1,E="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(y);this._store.dispatch((0,a.addChoice)({id:y,groupId:h,elementId:E,value:t,label:_,disabled:c,customProperties:d,placeholder:f,keyCode:v})),s&&this._addItem({value:t,label:_,choiceId:y,customProperties:d,placeholder:f,keyCode:v})}},e.prototype._addGroup=function(e){var t=this,i=e.group,n=e.id,r=e.valueKey,s=void 0===r?"value":r,o=e.labelKey,a=void 0===o?"label":o,l=(0,f.isType)("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),h=n||Math.floor((new Date).valueOf()*Math.random()),u=!!i.disabled&&i.disabled;l?(this._store.dispatch((0,c.addGroup)({value:i.label,id:h,active:!0,disabled:u})),l.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[s],label:(0,f.isType)("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:h,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,c.addGroup)({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},e.prototype._getTemplate=function(e){for(var t,i=[],r=1;r0?this.element.scrollTop+o-r:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,i){var n=(i-e)/t,r=n>1?n:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,i){var n=(e-i)/t,r=n>1?n:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var i=this,r=n.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;t>0?(this._scrollDown(s,r,e),se&&(o=!0)),o&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();t.default=r},730:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799),r=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,n.dispatchEvent)(this.element,e,t)},e}();t.default=r},541:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=t.element,n=t.classNames,r=t.delimiter,s=e.call(this,{element:i,classNames:n})||this;return s.delimiter=r,s}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(s(i(730)).default);t.default=o},982:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=t.element,n=t.classNames,r=t.template,s=e.call(this,{element:i,classNames:n})||this;return s.template=r,s}return r(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return n=e,r=t.template(n),void i.appendChild(r);var n,r})),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(s(i(730)).default);t.default=o},883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var n=i(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add "'.concat((0,n.sanitise)(e),'"')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},978:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},948:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},359:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},285:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},533:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(18),t),r(i(978),t),r(i(948),t),r(i(359),t),r(i(285),t),r(i(533),t),r(i(287),t),r(i(132),t),r(i(837),t),r(i(598),t),r(i(369),t),r(i(37),t),r(i(47),t),r(i(923),t),r(i(876),t)},287:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},132:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},837:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},598:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},37:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},369:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},47:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},923:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},876:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},799:function(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,i){var n=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),n="".concat(i,"-").concat(n)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,i){return null!=i&&(0,t.getType)(i)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,i){void 0===i&&(i=1);for(var n="".concat(i>0?"next":"previous","ElementSibling"),r=e[n];r;){if(r.matches(t))return r;r=r[n]}return r},t.isScrolledIntoView=function(e,t,i){return void 0===i&&(i=1),!!e&&(i>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,">").replace(/-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(o.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var a=n;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var c=n;return e.map((function(e){var t=e;return t.active=c.results.some((function(e){var i=e.item,n=e.score;return i.id===t.id&&(t.score=n,!0)})),t}));case"ACTIVATE_CHOICES":var l=n;return e.map((function(e){var t=e;return t.active=l.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,s=t.length;r0?"treeitem":"option"),Object.assign(E.dataset,{choice:"",id:d,value:p,selectText:i}),g?(E.classList.add(h),E.dataset.choiceDisabled="",E.setAttribute("aria-disabled","true")):(E.classList.add(c),E.dataset.choiceSelectable=""),E},input:function(e,t){var i=e.classNames,n=i.input,r=i.inputCloned,s=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",t),s},dropdown:function(e){var t=e.classNames,i=t.list,n=t.listDropdown,r=document.createElement("div");return r.classList.add(i,n),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,i){var n,r=e.allowHTML,s=e.classNames,o=s.item,a=s.itemChoice,c=s.noResults,l=s.noChoices;void 0===i&&(i="");var h=[o,a];return"no-choices"===i?h.push(l):"no-results"===i&&h.push(c),Object.assign(document.createElement("div"),((n={})[r?"innerHTML":"innerText"]=t,n.className=h.join(" "),n))},option:function(e){var t=e.label,i=e.value,n=e.customProperties,r=e.active,s=e.disabled,o=new Option(t,i,!1,r);return n&&(o.dataset.customProperties="".concat(n)),o.disabled=!!s,o}};t.default=i},996:function(e){var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function r(e,t,i){return e.concat(t).map((function(e){return n(e,i)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,i){var r={};return i.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=n(e[t],i)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&i.isMergeableObject(t[s])?r[s]=function(e,t){if(!t.customMerge)return c;var i=t.customMerge(e);return"function"==typeof i?i:c}(s,i)(e[s],t[s],i):r[s]=n(t[s],i))})),r}function c(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||r,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(i);return o===Array.isArray(e)?o?s.arrayMerge(e,i,s):a(e,i,s):n(i,s)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return c(e,i,t)}),{})};var l=c;e.exports=l},221:function(e,t,i){ /** @@ -99,43 +99,43 @@ var s,o;s=window,o=function(){return function(){"use strict";var e={282:function * * http://www.apache.org/licenses/LICENSE-2.0 */ -function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}i.r(t),i.d(t,{default:function(){return X}});const r=1/0;function s(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-r?"-0":t}(e)}function o(e){return"string"==typeof e}function a(e){return"number"==typeof e}function c(e){return!0===e||!1===e||function(e){return l(e)&&null!==e}(e)&&"[object Boolean]"==d(e)}function l(e){return"object"==typeof e}function h(e){return null!=e}function u(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const p=e=>`Missing ${e} property in key`,f=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class v{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let i=g(e);t+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(e){let t=null,i=null,r=null,s=1,a=null;if(o(e)||n(e))r=e,t=_(e),i=y(e);else{if(!m.call(e,"name"))throw new Error(p("name"));const n=e.name;if(r=n,m.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(f(n));t=_(n),i=y(n),a=e.getFn}return{path:t,id:i,weight:s,src:r,getFn:a}}function _(e){return n(e)?e:e.split(".")}function y(e){return n(e)?e.join("."):e}var E={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(h(e))if(t[u]){const d=e[t[u]];if(!h(d))return;if(u===t.length-1&&(o(d)||a(d)||c(d)))i.push(s(d));else if(n(d)){r=!0;for(let e=0,i=d.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,i=this.size();t{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(h(s))if(n(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:i,value:r}=t.pop();if(h(r))if(o(r)&&!u(r)){let t={v:r,i,n:this.norm.get(r)};e.push(t)}else n(r)&&r.forEach(((e,i)=>{t.push({nestedArrIndex:i,value:e})}))}i.$[r]=e}else if(o(s)&&!u(s)){let e={v:s,n:this.norm.get(s)};i.$[r]=e}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function O(e,t,{getFn:i=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){const r=new S({getFn:i,fieldNormWeight:n});return r.setKeys(e.map(g)),r.setSources(t),r.create(),r}function I(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:r=E.distance,ignoreLocation:s=E.ignoreLocation}={}){const o=t/e.length;if(s)return o;const a=Math.abs(n-i);return r?o+a/r:a?1:o}const C=32;function T(e,t,i,{location:n=E.location,distance:r=E.distance,threshold:s=E.threshold,findAllMatches:o=E.findAllMatches,minMatchCharLength:a=E.minMatchCharLength,includeMatches:c=E.includeMatches,ignoreLocation:l=E.ignoreLocation}={}){if(t.length>C)throw new Error("Pattern length exceeds max of 32.");const h=t.length,u=e.length,d=Math.max(0,Math.min(n,u));let p=s,f=d;const m=a>1||c,v=m?Array(u):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=I(t,{currentLocation:g,expectedLocation:d,distance:r,ignoreLocation:l});if(p=Math.min(e,p),f=g+h,m){let e=0;for(;e=c;s-=1){let o=s-1,a=i[e.charAt(o)];if(m&&(v[o]=+!!a),E[s]=(E[s+1]<<1|1)&a,n&&(E[s]|=(_[s+1]|_[s])<<1|1|_[s+1]),E[s]&S&&(y=I(t,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l}),y<=p)){if(p=y,f=o,f<=d)break;c=Math.max(1,2*d-f)}}if(I(t,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l})>p)break;_=E}const O={isMatch:f>=0,score:Math.max(.001,y)};if(m){const e=function(e=[],t=E.minMatchCharLength){let i=[],n=-1,r=-1,s=0;for(let o=e.length;s=t&&i.push([n,r]),n=-1)}return e[s-1]&&s-n>=t&&i.push([n,s-1]),i}(v,a);e.length?c&&(O.indices=e):O.isMatch=!1}return O}function L(e){let t={};for(let i=0,n=e.length;i{this.chunks.push({pattern:e,alphabet:L(e),startIndex:t})},h=this.pattern.length;if(h>C){let e=0;const t=h%C,i=h-t;for(;e{const{isMatch:f,score:m,indices:v}=T(e,t,d,{location:n+p,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});f&&(u=!0),h+=m,f&&v&&(l=[...l,...v])}));let d={isMatch:u,score:u?h/this.chunks.length:1};return u&&i&&(d.indices=l),d}}class A{constructor(e){this.pattern=e}static isMultiMatch(e){return M(e,this.multiRegex)}static isSingleMatch(e){return M(e,this.singleRegex)}search(){}}function M(e,t){const i=e.match(t);return i?i[1]:null}class P extends A{constructor(e,{location:t=E.location,threshold:i=E.threshold,distance:n=E.distance,includeMatches:r=E.includeMatches,findAllMatches:s=E.findAllMatches,minMatchCharLength:o=E.minMatchCharLength,isCaseSensitive:a=E.isCaseSensitive,ignoreLocation:c=E.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:i,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class x extends A{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+r,n.push([t,i-1]);const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const N=[class extends A{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},x,class extends A{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},P],D=N.length,j=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([P.type,x.type]);class k{constructor(e,{isCaseSensitive:t=E.isCaseSensitive,includeMatches:i=E.includeMatches,minMatchCharLength:n=E.minMatchCharLength,ignoreLocation:r=E.ignoreLocation,findAllMatches:s=E.findAllMatches,location:o=E.location,threshold:a=E.threshold,distance:c=E.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let i=e.trim().split(j).filter((e=>e&&!!e.trim())),n=[];for(let e=0,r=i.length;e!(!e[Y]&&!e[H]),U=e=>({[Y]:Object.keys(e).map((t=>({[t]:e[t]})))});function W(e,t,{auto:i=!0}={}){const r=e=>{let s=Object.keys(e);const a=(e=>!!e[V])(e);if(!a&&s.length>1&&!G(e))return r(U(e));if((e=>!n(e)&&l(e)&&!G(e))(e)){const n=a?e[V]:s[0],r=a?e[B]:e[n];if(!o(r))throw new Error((e=>`Invalid value for key ${e}`)(n));const c={keyId:y(n),pattern:r};return i&&(c.searcher=R(r,t)),c}let c={children:[],operator:s[0]};return s.forEach((t=>{const i=e[t];n(i)&&i.forEach((e=>{c.children.push(r(e))}))})),c};return G(e)||(e=U(e)),r(e)}function $(e,t){const i=e.matches;t.matches=[],h(i)&&i.forEach((e=>{if(!h(e.indices)||!e.indices.length)return;const{indices:i,value:n}=e;let r={indices:i,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function q(e,t){t.score=e.score}class X{constructor(e,t={},i){this.options={...E,...t},this.options.useExtendedSearch,this._keyStore=new v(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof S))throw new Error("Incorrect 'index' type");this._myIndex=t||O(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){h(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let i=0,n=this._docs.length;i{let i=1;e.matches.forEach((({key:e,norm:n,score:r})=>{const s=e?e.weight:null;i*=Math.pow(0===r&&s?Number.EPSILON:r,(s||1)*(t?1:n))})),e.score=i}))}(l,{ignoreFieldNorm:c}),r&&l.sort(s),a(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:i=E.includeMatches,includeScore:n=E.includeScore}={}){const r=[];return i&&r.push($),n&&r.push(q),e.map((e=>{const{idx:i}=e,n={item:t[i],refIndex:i};return r.length&&r.forEach((t=>{t(e,n)})),n}))}(l,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const t=R(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach((({v:e,i,n:r})=>{if(!h(e))return;const{isMatch:s,score:o,indices:a}=t.searchIn(e);s&&n.push({item:e,idx:i,matches:[{score:o,value:e,norm:r,indices:a}]})})),n}_searchLogical(e){const t=W(e,this.options),i=(e,t,n)=>{if(!e.children){const{keyId:i,searcher:r}=e,s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:r});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}const r=[];for(let s=0,o=e.children.length;s{if(h(e)){let o=i(t,e,n);o.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},s.push(r[n])),o.forEach((({matches:e})=>{r[n].matches.push(...e)})))}})),s}_searchObjectList(e){const t=R(e,this.options),{keys:i,records:n}=this._myIndex,r=[];return n.forEach((({$:e,i:n})=>{if(!h(e))return;let s=[];i.forEach(((i,n)=>{s.push(...this._findMatches({key:i,value:e[n],searcher:t}))})),s.length&&r.push({idx:n,item:e,matches:s})})),r}_findMatches({key:e,value:t,searcher:i}){if(!h(t))return[];let r=[];if(n(t))t.forEach((({v:t,i:n,n:s})=>{if(!h(t))return;const{isMatch:o,score:a,indices:c}=i.searchIn(t);o&&r.push({score:a,key:e,value:t,idx:n,norm:s,indices:c})}));else{const{v:n,n:s}=t,{isMatch:o,score:a,indices:c}=i.searchIn(n);o&&r.push({score:a,key:e,value:n,norm:s,indices:c})}return r}}X.version="6.6.2",X.createIndex=O,X.parseIndex=function(e,{getFn:t=E.getFn,fieldNormWeight:i=E.fieldNormWeight}={}){const{keys:n,records:r}=e,s=new S({getFn:t,fieldNormWeight:i});return s.setKeys(n),s.setIndexRecords(r),s},X.config=E,X.parseQuery=W,function(...e){K.push(...e)}(k)},791:function(e,t,i){function n(e){return n="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},n(e)}function r(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function s(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;tthis.render_selection())),this.connect(this.model.properties.options.change,(()=>this.render())),this.connect(this.model.properties.name.change,(()=>this.render())),this.connect(this.model.properties.title.change,(()=>this.render())),this.connect(this.model.properties.size.change,(()=>this.render())),this.connect(this.model.properties.disabled.change,(()=>this.render()))}_render_input(){const e=this.model.options.map((e=>{let t,s;return(0,c.isString)(e)?t=s=e:[t,s]=e,(0,r.option)({value:t},s)}));return this.input_el=(0,r.select)({multiple:!0,class:d.input,name:this.model.name,disabled:this.model.disabled},e),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el}render(){super.render(),this.render_selection()}render_selection(){const e=new Set(this.model.value);for(const t of this.shadow_el.querySelectorAll("option"))t.selected=e.has(t.value);this.input_el.size=this.model.size}change_input(){const e=null!=this.shadow_el.querySelector("select:focus"),t=[];for(const e of this.shadow_el.querySelectorAll("option"))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.input_el.focus()}}s.MultiSelectView=p,p.__name__="MultiSelectView";class u extends h.InputWidget{constructor(e){super(e)}}s.MultiSelect=u,l=u,u.__name__="MultiSelect",l.prototype.default_view=p,l.define((({Int:e,Str:t,List:s,Tuple:i,Or:n})=>({value:[s(t),[]],options:[s(n(t,i(t,t))),[]],size:[e,4]})))}, -637: function _(e,t,a,i,r){var s;i();const l=e(611);class o extends l.BaseDatePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"multiple",conjunction:this.model.separator}}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}a.MultipleDatePickerView=o,o.__name__="MultipleDatePickerView";class c extends l.BaseDatePicker{constructor(e){super(e)}}a.MultipleDatePicker=c,s=c,c.__name__="MultipleDatePicker",s.prototype.default_view=o,s.define((({Str:e,List:t})=>({value:[t(l.DateLike),[]],separator:[e,", "]})))}, -638: function _(e,t,i,a,r){var s;a();const l=e(624),o=e(611);class c extends l.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"multiple",conjunction:this.model.separator}}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}i.MultipleDatetimePickerView=c,c.__name__="MultipleDatetimePickerView";class n extends l.BaseDatetimePicker{constructor(e){super(e)}}i.MultipleDatetimePicker=n,s=n,n.__name__="MultipleDatetimePicker",s.prototype.default_view=c,s.define((({Str:e,List:t})=>({value:[t(o.DateLike),[]],separator:[e,", "]})))}, -639: function _(e,t,l,i,n){var s;i();const u=e(1),h=u.__importStar(e(245)),o=e(597),a=e(192),r=e(63),d=e(8),p=e(12),_=u.__importStar(e(598)),m=/^[-+]?\d*$/,c=/^[-+]?\d*\.?\d*(?:(?:\d|\d.)[eE][-+]?)*\d*$/;class v extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>this.input_el.name=this.model.name??"")),this.connect(this.model.properties.value.change,(()=>{this.input_el.value=this.format_value,this.old_value=this.input_el.value})),this.connect(this.model.properties.low.change,(()=>{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(t<=l,"Invalid bounds, low must be inferior to high"),null!=e&&null!=t&&e{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(l>=t,"Invalid bounds, high must be superior to low"),null!=e&&null!=l&&e>l&&(this.model.value=l)})),this.connect(this.model.properties.high.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder))}get format_value(){return null!=this.model.value?this.model.pretty(this.model.value):""}_set_input_filter(e){this.input_el.addEventListener("input",(()=>{const{selectionStart:t,selectionEnd:l}=this.input_el;if(e(this.input_el.value))this.old_value=this.input_el.value;else{const e=this.old_value.length-this.input_el.value.length;this.input_el.value=this.old_value,null!=t&&null!=l&&this.input_el.setSelectionRange(t-1,l+e)}}))}_render_input(){return this.input_el=(0,r.input)({type:"text",class:_.input,name:this.model.name,value:this.format_value,disabled:this.model.disabled,placeholder:this.model.placeholder})}render(){super.render(),this.old_value=this.format_value,this.set_input_filter(),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el.addEventListener("focusout",(()=>this.input_el.value=this.format_value))}set_input_filter(){const e="int"==this.model.mode?m:c;this._set_input_filter((t=>e.test(t)))}bound_value(e){let t=e;const{low:l,high:i}=this.model;return t=null!=l?Math.max(l,t):t,t=null!=i?Math.min(i,t):t,t}get value(){let e=""!=this.input_el.value?Number(this.input_el.value):null;return null!=e&&(e=this.bound_value(e)),e}change_input(){null==this.value?this.model.value=null:Number.isNaN(this.value)||(this.model.value=this.value)}}l.NumericInputView=v,v.__name__="NumericInputView";class g extends o.InputWidget{constructor(e){super(e)}_formatter(e,t){return(0,d.isString)(t)?h.format(e,t):t.doFormat([e],{loc:0})[0]}pretty(e){return null!=this.format?this._formatter(e,this.format):`${e}`}}l.NumericInput=g,s=g,g.__name__="NumericInput",s.prototype.default_view=v,s.define((({Float:e,Str:t,Enum:l,Ref:i,Or:n,Nullable:s})=>({value:[s(e),null],placeholder:[t,""],mode:[l("int","float"),"int"],format:[s(n(t,i(a.TickFormatter))),null],low:[s(e),null],high:[s(e),null]})))}, -640: function _(e,t,s,n,i){var l;n();const r=e(1),a=e(63),o=e(641),h=e(34),c=e(22),d=e(11),u=e(10),_=e(597),p=r.__importStar(e(598)),v=r.__importStar(e(643)),g=r.__importStar(e(644)),m=r.__importStar(e(645)),w=r.__importStar(e(123)),f=e(21),y=(0,f.Tuple)(f.Str,(0,f.Arrayable)(f.Color));class S extends _.InputWidgetView{stylesheets(){return[...super.stylesheets(),v.default,g.default,w.default]}connect_signals(){super.connect_signals();const{value:e,items:t,ncols:s,swatch_width:n,swatch_height:i}=this.model.properties;this.on_change([t,n,i],(()=>this.render())),this.on_change(e,(()=>this._update_value())),this.on_change(s,(()=>this._update_ncols()))}_update_value(){(0,a.empty)(this._value_el);const e=this._render_value();null!=e&&this._value_el.append(e)}_update_ncols(){const{ncols:e}=this.model;this._pane.el.style.setProperty("--number-of-columns",`${e}`)}_render_image(e){const[t,s]=e,{swatch_width:n,swatch_height:i}=this.model,l=n,r="auto"==i?n:i,o=(0,a.canvas)({width:l,height:r}),d=o.getContext("2d"),u=100/s.length;for(const[e,t]of(0,h.enumerate)(s)){d.beginPath(),d.rect(t*u,0,u,20);const s=(0,c.color2css)(e);d.strokeStyle=s,d.fillStyle=s,d.fill(),d.stroke()}return o}_render_item(e){const[t,s]=e,{swatch_width:n,swatch_height:i}=this.model,l=s.length,r=(0,u.linspace)(0,100,l+1),o=[];for(const[e,t]of(0,h.enumerate)(s)){const[s,n]=[r[t],r[t+1]];o.push(`${(0,c.color2css)(e)} ${s}% ${n}%`)}const d=(0,a.div)();d.style.background=`linear-gradient(to right, ${o.join(", ")})`,d.style.width=(0,a.px)(n),"auto"==i?d.style.alignSelf="stretch":d.style.height=(0,a.px)(i);return(0,a.div)({class:g.entry},d,t)}_render_value(){const{value:e,items:t}=this.model,s=t.find((([t])=>t==e));return null!=s?this._render_item(s):null}_render_input(){this._value_el=(0,a.div)({class:[v.value,g.entry]},this._render_value());const e=(0,a.div)({class:[v.chevron,w.tool_icon_chevron_down]}),t=(0,a.div)({class:[p.input,v.value_input]},this._value_el,e);return this.model.disabled?t.classList.add(p.disabled):t.tabIndex=0,this.input_el=t,this.input_el}render(){super.render();const e=[];for(const[t,s]of(0,h.enumerate)(this.model.items)){const n=this._render_item(t),i=(0,a.div)({class:g.item,tabIndex:0},n);i.addEventListener("pointerup",(()=>{this.select(t)})),i.addEventListener("keyup",(e=>{switch(e.key){case"Enter":this.select(t);break;case"Escape":this.hide()}}));const l=t=>{const{items:n}=this.model,i=(0,d.cycle)(s+t,0,n.length-1);e[i].focus()};i.addEventListener("keydown",(e=>{const t=(()=>{switch(e.key){case"ArrowUp":return-this.model.ncols;case"ArrowDown":return+this.model.ncols;case"ArrowLeft":return-1;case"ArrowRight":return 1;default:return null}})();null!=t&&(e.preventDefault(),l(t))})),e.push(i)}this._pane=new o.DropPane(e,{target:this.group_el,prevent_hide:this.input_el,extra_stylesheets:[g.default,m.default]}),this._update_ncols(),this.input_el.addEventListener("pointerup",(()=>{this.toggle()})),this.input_el.addEventListener("keyup",(e=>{switch(e.key){case"Enter":this.toggle();break;case"Escape":this.hide()}}));const t=e=>{const{items:t,value:s}=this.model,n=t.findIndex((([e])=>s==e));if(-1!=n){const s=(0,d.cycle)(n+e,0,t.length-1);this.select(t[s])}};this.input_el.addEventListener("keydown",(e=>{const s=(()=>{switch(e.key){case"ArrowUp":return-1;case"ArrowDown":return 1;default:return null}})();null!=s&&(e.preventDefault(),t(s))}))}select(e){this.hide();const[t]=e;this.model.value=t,super.change_input(),this.input_el.focus()}toggle(){this.model.disabled||this._pane.toggle()}hide(){this._pane.hide()}}s.PaletteSelectView=S,S.__name__="PaletteSelectView";class k extends _.InputWidget{constructor(e){super(e)}}s.PaletteSelect=k,l=k,k.__name__="PaletteSelect",l.prototype.default_view=S,l.define((({Int:e,Str:t,List:s,NonNegative:n,Positive:i,Or:l,Auto:r})=>({value:[t],items:[s(y)],swatch_width:[n(e),100],swatch_height:[l(r,n(e)),"auto"],ncols:[i(e),1]})))}, -641: function _(e,t,s,i,n){i();const o=e(1),h=e(63),_=e(8),l=o.__importDefault(e(642)),r=o.__importDefault(e(66));class d{get is_open(){return this._open}constructor(e,t){this.el=(0,h.div)(),this._open=!1,this._on_mousedown=e=>{if(e.composedPath().includes(this.el))return;const{prevent_hide:t}=this;if(t instanceof HTMLElement){if(e.composedPath().includes(t))return}else if(null!=t&&t(e))return;this.hide()},this._on_keydown=e=>{if("Escape"===e.key)this.hide()},this._on_blur=()=>{this.hide()},this.contents=e,this.target=t.target,this.prevent_hide=t.prevent_hide,this.extra_stylesheets=t.extra_stylesheets??[],this.shadow_el=this.el.attachShadow({mode:"open"}),this.class_list=new h.ClassList(this.el.classList)}remove(){this._unlisten(),this.el.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}stylesheets(){return[r.default,l.default,...this.extra_stylesheets]}empty(){(0,h.empty)(this.shadow_el),this.class_list.clear()}render(){this.empty();for(const e of this.stylesheets()){((0,_.isString)(e)?new h.InlineStyleSheet(e):e).install(this.shadow_el)}this.shadow_el.append(...this.contents)}show(){if(!this._open){this.render();(this.target.shadowRoot??this.target).appendChild(this.el),this._listen(),this._open=!0}}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}toggle(){this._open?this.hide():this.show()}}s.DropPane=d,d.__name__="DropPane"}, -642: function _(o,e,r,t,i){t(),r.default=":host{position:absolute;top:100%;min-width:100%;width:auto;height:auto;user-select:none;-webkit-user-select:none;z-index:var(--bokeh-top-level);cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:2px 4px 8px rgba(0, 0, 0, 0.175);}"}, -643: function _(e,t,a,i,n){i(),a.value_input="bk-value-input",a.value="bk-value",a.chevron="bk-chevron",a.default=".bk-value-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:1em;cursor:pointer;}.bk-value{flex-grow:1;}.bk-chevron{width:16px;height:16px;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}"}, -644: function _(e,t,i,o,r){o(),i.entry="bk-entry",i.item="bk-item",i.active="bk-active",i.default=".bk-entry{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0.5em;}.bk-item{--active-tool-highlight:#26aae1;border:1px solid transparent;}.bk-item.bk-active{border-color:var(--active-tool-highlight);}.bk-item:hover{background-color:#f9f9f9;}.bk-item:focus,.bk-item:focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}.bk-item::-moz-focus-inner{border:0;}"}, -645: function _(e,n,a,m,o){m(),a.default=":host{--number-of-columns:1;padding:5px;display:grid;grid-template-columns:repeat(var(--number-of-columns), 1fr);gap:0.25em;}"}, -646: function _(e,a,t,r,s){var n;r();const p=e(627),i=e(63);class _ extends p.MarkupView{render(){super.render();const e=(0,i.p)({style:{margin:"0px"}});this.has_math_disabled()?e.textContent=this.model.text:e.innerHTML=this.process_tex(this.model.text),this.markup_el.appendChild(e)}}t.ParagraphView=_,_.__name__="ParagraphView";class h extends p.Markup{constructor(e){super(e)}}t.Paragraph=h,n=h,h.__name__="Paragraph",n.prototype.default_view=_}, -647: function _(e,t,s,l,n){var o;l();const p=e(1),r=e(595),a=e(63),i=p.__importDefault(e(648)),_=p.__importDefault(e(123));class u extends r.TextInputView{stylesheets(){return[...super.stylesheets(),i.default,_.default]}render(){super.render(),this.input_el.type="password",this.toggle_el=(0,a.div)({class:"bk-toggle"}),this.toggle_el.addEventListener("click",(()=>{const{input_el:e,toggle_el:t}=this,s="text"==e.type;t.classList.toggle("bk-visible",!s),e.type=s?"password":"text"})),this.shadow_el.append(this.toggle_el)}}s.PasswordInputView=u,u.__name__="PasswordInputView";class d extends r.TextInput{constructor(e){super(e)}}s.PasswordInput=d,o=d,d.__name__="PasswordInput",o.prototype.default_view=u}, -648: function _(e,i,o,t,g){t(),o.input="bk-input",o.toggle="bk-toggle",o.visible="bk-visible",o.default=":host{--toggle-size:14px;--toggle-padding:4px;--toggle-width:calc(var(--toggle-size) + 2*var(--toggle-padding));}.bk-input{padding-right:max();}.bk-toggle{position:absolute;right:0;top:0;width:var(--toggle-width);height:100%;padding:0 var(--toggle-padding);background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);mask-size:var(--toggle-size) var(--toggle-size);-webkit-mask-size:var(--toggle-size) var(--toggle-size);mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;cursor:pointer;}.bk-toggle.bk-visible{mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}"}, -649: function _(e,t,r,s,n){var a;s();const o=e(627),_=e(63);class p extends o.MarkupView{render(){super.render();const e=(0,_.pre)({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=p,p.__name__="PreTextView";class u extends o.Markup{constructor(e){super(e)}}r.PreText=u,a=u,u.__name__="PreText",a.prototype.default_view=p}, -650: function _(t,o,e,a,i){var n;a();const u=t(1),s=t(602),c=u.__importStar(t(593));class _ extends s.ToggleButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach(((o,e)=>{o.classList.toggle(c.active,t===e)}))}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class l extends s.ToggleButtonGroup{constructor(t){super(t)}}e.RadioButtonGroup=l,n=l,l.__name__="RadioButtonGroup",n.prototype.default_view=_,n.define((({Int:t,Nullable:o})=>({active:[o(t),null]})))}, -651: function _(e,t,n,i,s){var o;i();const a=e(1),l=e(605),c=e(63),d=e(40),p=e(34),u=a.__importStar(e(598));class r extends l.ToggleInputGroupView{connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this.model;for(const[t,n]of(0,p.enumerate)(this._inputs))t.checked=e==n}))}render(){super.render();const e=(0,c.div)({class:[u.input_group,this.model.inline?u.inline:null]});this.shadow_el.appendChild(e);const t=(0,d.unique_id)(),{active:n,labels:i}=this.model;this._inputs=[];for(let s=0;sthis.change_active(s))),this._inputs.push(o),this.model.disabled&&(o.disabled=!0),s==n&&(o.checked=!0);const a=(0,c.label)(o,(0,c.span)(i[s]));e.appendChild(a)}}change_active(e){this.model.active=e}}n.RadioGroupView=r,r.__name__="RadioGroupView";class h extends l.ToggleInputGroup{constructor(e){super(e)}}n.RadioGroup=h,o=h,h.__name__="RadioGroup",o.prototype.default_view=r,o.define((({Int:e,Nullable:t})=>({active:[t(e),null]})))}, -652: function _(e,t,n,i,s){var u;i();const l=e(1),o=e(63),_=e(8),a=e(9),p=e(597),r=l.__importStar(e(598)),c=e(21),h=c.Unknown,d=c.Str,v=(0,c.List)((0,c.Or)(d,(0,c.Tuple)(h,d))),m=(0,c.Dict)(v);class g extends p.InputWidgetView{constructor(){super(...arguments),this._known_values=new Map}connect_signals(){super.connect_signals();const{value:e,options:t}=this.model.properties;this.on_change(e,(()=>{this._update_value()})),this.on_change(t,(()=>{(0,o.empty)(this.input_el),this.input_el.append(...this.options_el()),this._update_value()}))}options_el(){const{_known_values:e}=this;function t(t){return t.map((t=>{let n,i;return(0,_.isString)(t)?n=i=t:[n,i]=t,e.set(n,i),(0,o.option)({value:i},i)}))}e.clear();const{options:n}=this.model;return(0,_.isArray)(n)?t(n):(0,a.entries)(n).map((([e,n])=>(0,o.optgroup)({label:e},t(n))))}_render_input(){return this.input_el=(0,o.select)({class:r.input,name:this.model.name,disabled:this.model.disabled},this.options_el()),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el}render(){super.render(),this._update_value()}change_input(){const e=this.input_el.value,t=[...this._known_values].find((([t,n])=>e==n)),n=(()=>{if(null==t)return"";{const[e,n]=t;return e}})();this.model.value=n,super.change_input()}_update_value(){const{value:e}=this.model,t=this._known_values.get(e);void 0!==t?this.input_el.value=t:(this.input_el.removeAttribute("value"),this.input_el.selectedIndex=-1)}}n.SelectView=g,g.__name__="SelectView";class w extends p.InputWidget{constructor(e){super(e)}}n.Select=w,u=w,w.__name__="Select",u.prototype.default_view=g,u.define((()=>({value:[h,""],options:[(0,c.Or)(v,m),[]]})))}, -653: function _(e,t,n,i,s){var l;i();const o=e(1),r=e(639),a=o.__importStar(e(18)),_=e(63),{min:h,max:u}=Math;class d extends r.NumericInputView{*buttons(){yield this.btn_up_el,yield this.btn_down_el}initialize(){super.initialize(),this._handles={interval:void 0,timeout:void 0},this._interval=200}connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,(()=>{for(const e of this.buttons())(0,_.toggle_attribute)(e,"disabled",this.model.disabled)}))}_render_input(){super._render_input(),this.btn_up_el=(0,_.button)({class:"bk-spin-btn bk-spin-btn-up"}),this.btn_down_el=(0,_.button)({class:"bk-spin-btn bk-spin-btn-down"});const{input_el:e,btn_up_el:t,btn_down_el:n}=this;return this.wrapper_el=(0,_.div)({class:"bk-spin-wrapper"},e,t,n),this.wrapper_el}render(){super.render();for(const e of this.buttons())(0,_.toggle_attribute)(e,"disabled",this.model.disabled),e.addEventListener("mousedown",(e=>this._btn_mouse_down(e))),e.addEventListener("mouseup",(()=>this._btn_mouse_up())),e.addEventListener("mouseleave",(()=>this._btn_mouse_leave()));this.input_el.addEventListener("keydown",(e=>{this._input_key_down(e)})),this.input_el.addEventListener("keyup",(()=>{this.model.value_throttled=this.model.value})),this.input_el.addEventListener("wheel",(e=>{this._input_mouse_wheel(e)})),this.input_el.addEventListener("wheel",function(e,t,n=!1){let i;return function(...s){const l=this,o=n&&void 0===i;void 0!==i&&clearTimeout(i),i=setTimeout((function(){i=void 0,n||e.apply(l,s)}),t),o&&e.apply(l,s)}}((()=>{this.model.value_throttled=this.model.value}),this.model.wheel_wait,!1))}remove(){this._stop_incrementation(),super.remove()}_start_incrementation(e){clearInterval(this._handles.interval),this._counter=0;const{step:t}=this.model,n=e=>{if(this._counter+=1,this._counter%5==0){const t=Math.floor(this._counter/5);t<10?(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>n(e)),this._interval/(t+1))):t>=10&&t<=13&&(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>n(2*e)),this._interval/10))}this.increment(e)};this._handles.interval=setInterval((()=>n(e*t)),this._interval)}_stop_incrementation(){clearTimeout(this._handles.timeout),this._handles.timeout=void 0,clearInterval(this._handles.interval),this._handles.interval=void 0,this.model.value_throttled=this.model.value}_btn_mouse_down(e){e.preventDefault();const t=e.currentTarget===this.btn_up_el?1:-1;this.increment(t*this.model.step),this.input_el.focus(),this._handles.timeout=setTimeout((()=>this._start_incrementation(t)),this._interval)}_btn_mouse_up(){this._stop_incrementation()}_btn_mouse_leave(){this._stop_incrementation()}_input_mouse_wheel(e){if(document.activeElement===this.input_el){e.preventDefault();const t=e.deltaY>0?-1:1;this.increment(t*this.model.step)}}_input_key_down(e){switch(e.key){case"ArrowUp":return e.preventDefault(),this.increment(this.model.step);case"ArrowDown":return e.preventDefault(),this.increment(-this.model.step);case"PageUp":return e.preventDefault(),this.increment(this.model.page_step_multiplier*this.model.step);case"PageDown":return e.preventDefault(),this.increment(-this.model.page_step_multiplier*this.model.step)}}increment(e){const{low:t,high:n}=this.model;null==this.model.value?e>0?this.model.value=null!=t?t:null!=n?h(0,n):0:e<0&&(this.model.value=null!=n?n:null!=t?u(t,0):0):this.model.value=this.bound_value(this.model.value+e)}change_input(){super.change_input(),this.model.value_throttled=this.model.value}bound_value(e){const{low:t,high:n}=this.model;return null!=t&&en?this.model.value??0:e}}n.SpinnerView=d,d.__name__="SpinnerView";class p extends r.NumericInput{constructor(e){super(e)}}n.Spinner=p,l=p,p.__name__="Spinner",l.prototype.default_view=d,l.define((({Float:e,Nullable:t})=>({value_throttled:[t(e),a.unset,{readonly:!0}],step:[e,1],page_step_multiplier:[e,10],wheel_wait:[e,100]}))),l.override({mode:"float"})}, -654: function _(e,t,s,i,a){var l;i();const d=e(1),n=e(608),c=e(63),_=d.__importDefault(e(655));class h extends n.ToggleInputView{stylesheets(){return[...super.stylesheets(),_.default]}connect_signals(){super.connect_signals(),this.el.addEventListener("keydown",(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),this._toggle_active()}})),this.el.addEventListener("click",(()=>this._toggle_active()))}render(){super.render(),this.bar_el=(0,c.div)({class:"bar"}),this.knob_el=(0,c.div)({class:"knob",tabIndex:0});const e=(0,c.div)({class:"body"},this.bar_el,this.knob_el);this._update_active(),this._update_disabled(),this.shadow_el.appendChild(e)}_update_active(){this.el.classList.toggle("active",this.model.active)}_update_disabled(){this.el.classList.toggle("disabled",this.model.disabled)}}s.SwitchView=h,h.__name__="SwitchView";class o extends n.ToggleInput{constructor(e){super(e)}}s.Switch=o,l=o,o.__name__="Switch",l.prototype.default_view=h,l.override({width:32})}, -655: function _(o,r,t,a,i){a(),t.default=":host{cursor:pointer;}:host(.disabled){cursor:default;}:host{--switch-size:16px;--bar-height:10px;}.body{width:100%;height:var(--switch-size);}.bar{position:relative;top:calc(50% - var(--bar-height)/2);height:var(--bar-height);border-radius:calc(var(--bar-height)/2);background-color:#e5e5e5;transition-property:background-color;}.knob{position:absolute;top:0;left:0;width:var(--switch-size);height:var(--switch-size);border-radius:8px;background-color:#adadad;transition-property:left, background-color;}:host(.active) .bar{background-color:#c2d5f7;}:host(.active) .knob{left:calc(100% - var(--switch-size));background-color:#3b80f0;}"}, -656: function _(e,t,s,n,i){var r;n();const o=e(1),l=e(596),c=e(63),p=o.__importStar(e(598));class _ extends l.TextLikeInputView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.rows.change,(()=>this.input_el.rows=this.model.rows)),this.connect(this.model.properties.cols.change,(()=>this.input_el.cols=this.model.cols))}_render_input(){return this.input_el=(0,c.textarea)({class:p.input})}render(){super.render(),this.input_el.cols=this.model.cols,this.input_el.rows=this.model.rows}}s.TextAreaInputView=_,_.__name__="TextAreaInputView";class u extends l.TextLikeInput{constructor(e){super(e)}}s.TextAreaInput=u,r=u,u.__name__="TextAreaInput",r.prototype.default_view=_,r.define((({Int:e})=>({cols:[e,20],rows:[e,2]}))),r.override({max_length:500})}, -657: function _(e,t,n,i,c){var s;i();const m=e(612),r=e(21),o=e(20),a=e(12);n.TimeLike=(0,r.Or)(r.Str,r.Float);class l extends m.PickerBaseView{_format_time(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,second_increment:m,seconds:r,clock:o}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("minTime",this.model.min_time))),this.connect(n.change,(()=>this.picker.set("maxTime",this.model.max_time))),this.connect(i.change,(()=>this.picker.set("altFormat",this.model.time_format))),this.connect(c.change,(()=>this.picker.set("hourIncrement",this.model.hour_increment))),this.connect(s.change,(()=>this.picker.set("minuteIncrement",this.model.minute_increment))),this.connect(m.change,(()=>this._update_second_increment())),this.connect(r.change,(()=>this.picker.set("enableSeconds",this.model.seconds))),this.connect(o.change,(()=>this.picker.set("time_24hr","24h"==this.model.clock)))}get flatpickr_options(){const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,seconds:m,clock:r}=this.model,o=super.flatpickr_options;return o.enableTime=!0,o.noCalendar=!0,o.altInput=!0,o.altFormat=i,o.dateFormat="H:i:S",o.hourIncrement=c,o.minuteIncrement=s,o.enableSeconds=m,o.time_24hr="24h"==r,null!=e&&(o.defaultDate=e),null!=t&&(o.minTime=t),null!=n&&(o.maxTime=n),o}render(){super.render(),this._update_second_increment()}_update_second_increment(){const{second_increment:e}=this.model;this.picker.secondElement?.setAttribute("step",e.toString())}_on_change(e){(0,a.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_time(t)}})()}}n.TimePickerView=l,l.__name__="TimePickerView";class h extends m.PickerBase{constructor(e){super(e)}}n.TimePicker=h,s=h,h.__name__="TimePicker",s.prototype.default_view=l,s.define((({Bool:e,Str:t,Nullable:i,Positive:c,Int:s})=>({value:[i(n.TimeLike),null],min_time:[i(n.TimeLike),null],max_time:[i(n.TimeLike),null],time_format:[t,"H:i"],hour_increment:[c(s),1],minute_increment:[c(s),1],second_increment:[c(s),1],seconds:[e,!1],clock:[o.Clock,"24h"]})))}, -658: function _(e,t,i,s,c){var o;s();const a=e(1),n=e(590),l=e(53),r=a.__importStar(e(593));class _ extends n.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,(()=>this._update_active()))}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,this.model.trigger_event(new l.ButtonClick),super.click()}_update_active(){this.button_el.classList.toggle(r.active,this.model.active)}}i.ToggleView=_,_.__name__="ToggleView";class g extends n.AbstractButton{constructor(e){super(e)}}i.Toggle=g,o=g,g.__name__="Toggle",o.prototype.default_view=_,o.define((({Bool:e})=>({active:[e,!1]}))),o.override({label:"Toggle"})}, -659: function _(e,i,a,l,r){l(),r("CategoricalSlider",e(660).CategoricalSlider),r("DateRangeSlider",e(665).DateRangeSlider),r("DateSlider",e(668).DateSlider),r("DatetimeRangeSlider",e(670).DatetimeRangeSlider),r("RangeSlider",e(671).RangeSlider),r("Slider",e(672).Slider)}, -660: function _(e,t,r,s,i){var o;s();const a=e(661),c=e(8);class n extends a.AbstractSliderView{constructor(){super(...arguments),this.behaviour="tap"}connect_signals(){super.connect_signals();const{categories:e}=this.model.properties;this.on_change([e],(()=>this._update_slider()))}_calc_to(){const{categories:e}=this.model;return{range:{min:0,max:e.length-1},start:[this.model.value],step:1,format:{to:t=>e[t],from:t=>e.indexOf(t)}}}_calc_from([e]){const{categories:t}=this.model;return t[0|e]}pretty(e){return(0,c.isNumber)(e)?this.model.categories[e]:e}}r.CategoricalSliderView=n,n.__name__="CategoricalSliderView";class l extends a.AbstractSlider{constructor(e){super(e)}}r.CategoricalSlider=l,o=l,l.__name__="CategoricalSlider",o.prototype.default_view=n,o.define((({List:e,Str:t})=>({categories:[e(t)]})))}, -661: function _(t,e,i,s,l){var o;s();const r=t(1),n=r.__importDefault(t(662)),_=r.__importStar(t(18)),h=t(63),d=t(10),a=t(22),c=t(603),u=r.__importStar(t(663)),p=u,m=r.__importDefault(t(664)),g=r.__importStar(t(598));class b extends c.OrientedControlView{constructor(){super(...arguments),this.connected=!1,this._auto_width="auto",this._auto_height="auto"}*controls(){yield this.slider_el}get _steps(){return this._noUiSlider.steps}_update_slider(){this._noUiSlider.updateOptions(this._calc_to(),!0)}connect_signals(){super.connect_signals();const{direction:t,orientation:e,tooltips:i}=this.model.properties;this.on_change([t,e,i],(()=>this.render()));const{bar_color:s}=this.model.properties;this.on_change(s,(()=>{this._set_bar_color()}));const{value:l,title:o,show_value:r}=this.model.properties;this.on_change([l,o,r],(()=>this._update_title())),this.on_change(l,(()=>this._update_slider()))}stylesheets(){return[...super.stylesheets(),m.default,u.default]}_update_title(){(0,h.empty)(this.title_el);const t=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=t?"none":"",!t){const{title:t}=this.model;if(null!=t&&t.length>0&&(this.contains_tex_string(t)?this.title_el.innerHTML=`${this.process_tex(t)}: `:this.title_el.textContent=`${t}: `),this.model.show_value){const{start:t}=this._calc_to(),e=t.map((t=>this.pretty(t))).join(" .. ");this.title_el.appendChild((0,h.span)({class:p.slider_value},e))}}}_set_bar_color(){if(!1!==this.connected&&!this.model.disabled&&null!=this.slider_el){this.slider_el.querySelector(".noUi-connect").style.backgroundColor=(0,a.color2css)(this.model.bar_color)}}render(){let t;if(super.render(),this.model.tooltips){const e={to:t=>this.pretty(t)},{start:i}=this._calc_to();t=(0,d.repeat)(e,i.length)}else t=null;if(null==this.slider_el){this.slider_el=(0,h.div)(),this._noUiSlider=n.default.create(this.slider_el,{...this._calc_to(),behaviour:this.behaviour,connect:this.connected,tooltips:t??!1,orientation:this.model.orientation,direction:this.model.direction}),this._noUiSlider.on("slide",((t,e,i)=>this._slide(i))),this._noUiSlider.on("change",((t,e,i)=>this._change(i)));const e=(e,i)=>{if(null==t||null==this.slider_el)return;this.slider_el.querySelectorAll(".noUi-handle")[e].querySelector(".noUi-tooltip").style.display=i?"block":""};this._noUiSlider.on("start",(()=>this._toggle_user_select(!1))),this._noUiSlider.on("end",(()=>this._toggle_user_select(!0))),this._noUiSlider.on("start",((t,i)=>e(i,!0))),this._noUiSlider.on("end",((t,i)=>e(i,!1)))}else this._update_slider();this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=(0,h.div)({class:p.slider_title}),this._update_title(),this.group_el=(0,h.div)({class:g.input_group},this.title_el,this.slider_el),this.shadow_el.appendChild(this.group_el),this._has_finished=!0}_toggle_user_select(t){const{style:e}=document.body,i=t?"":"none";e.userSelect=i,e.webkitUserSelect=i}_slide(t){this.model.value=this._calc_from(t)}_change(t){const e=this._calc_from(t);this.model.setv({value:e,value_throttled:e})}}i.AbstractSliderView=b,b.__name__="AbstractSliderView";class S extends c.OrientedControl{constructor(t){super(t)}}i.AbstractSlider=S,o=S,S.__name__="AbstractSlider",o.define((({Unknown:t,Bool:e,Str:i,Color:s,Enum:l,Nullable:o})=>({title:[o(i),""],show_value:[e,!0],value:[t],value_throttled:[t,_.unset,{readonly:!0}],direction:[l("ltr","rtl"),"ltr"],tooltips:[e,!0],bar_color:[s,"#e6e6e6"]}))),o.override({width:300})}, -662: function _(t,e,r,n,i){var o,s;function a(t){return"object"==typeof t&&"function"==typeof t.to}function l(t){t.parentElement.removeChild(t)}function u(t){return null!=t}function c(t){t.preventDefault()}function p(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function f(t,e,r){r>0&&(g(t,e),setTimeout((function(){v(t,e)}),r))}function d(t){return Math.max(Math.min(t,100),0)}function h(t){return Array.isArray(t)?t:[t]}function m(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function g(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function v(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function b(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function S(t,e){return 100/(e-t)}function x(t,e,r){return 100*e/(t[r+1]-t[r])}function y(t,e){for(var r=1;t>=e[r];)r+=1;return r}function w(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=y(r,t),i=t[n-1],o=t[n],s=e[n-1],a=e[n];return s+function(t,e){return x(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([i,o],r)/S(s,a)}function E(t,e,r,n){if(100===n)return n;var i=y(n,t),o=t[i-1],s=t[i];return r?n-o>(s-o)/2?s:o:e[i-1]?t[i-1]+function(t,e){return Math.round(t/e)*e}(n-t[i-1],e[i-1]):n}n(),(o=r.PipsMode||(r.PipsMode={})).Range="range",o.Steps="steps",o.Positions="positions",o.Count="count",o.Values="values",(s=r.PipsType||(r.PipsType={}))[s.None=-1]="None",s[s.NoValue=0]="NoValue",s[s.LargeValue=1]="LargeValue",s[s.SmallValue=2]="SmallValue";var P=function(){function t(t,e,r){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=e;var i=[];for(Object.keys(t).forEach((function(e){i.push([h(t[e]),e])})),i.sort((function(t,e){return t[0][0]-e[0][0]})),n=0;nthis.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);r||t!==this.xPct[i+1]||i++,null===e&&(e=[]);var o=1,s=e[i],a=0,l=0,u=0,c=0;for(n=r?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);s>0;)a=this.xPct[i+1+c]-this.xPct[i+c],e[i+c]*o+100-100*n>100?(l=a*n,o=(s-100*n)/e[i+c],n=1):(l=e[i+c]*a/100*o,o=0),r?(u-=l,this.xPct.length+c>=1&&c--):(u+=l,this.xPct.length-c>=1&&c++),s=e[i+c]*o;return t+u},t.prototype.toStepping=function(t){return t=w(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n=y(r,e),i=t[n-1],o=t[n],s=e[n-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([i,o],(r-s)*S(s,e[n]))}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=E(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=y(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){var e=y(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(m);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var r;if(!p(r="min"===t?0:"max"===t?100:parseFloat(t))||!p(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(r),this.xVal.push(e[0]);var n=Number(e[1]);r?this.xSteps.push(!isNaN(n)&&n):isNaN(n)||(this.xSteps[0]=n),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){if(e)if(this.xVal[t]!==this.xVal[t+1]){this.xSteps[t]=x([this.xVal[t],this.xVal[t+1]],e,0)/S(this.xPct[t],this.xPct[t+1]);var r=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],n=Math.ceil(Number(r.toFixed(3))-1),i=this.xVal[t]+this.xNumSteps[t]*n;this.xHighestCompleteStep[t]=i}else this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]},t}(),C={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},N={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"};r.cssClasses=N;var V={tooltips:".__tooltips",aria:".__aria"};function A(t,e){if(!p(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function k(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function M(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function U(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function D(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new P(e,t.snap||!1,t.singleStep)}function O(t,e){if(e=h(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function L(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function T(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function z(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function j(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function B(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function q(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0,a=e.indexOf("unconstrained")>=0,l=e.indexOf("drag-all")>=0,u=e.indexOf("smooth-steps")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");F(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||o,drag:n,dragAll:l,smoothSteps:u,fixed:i,snap:o,hover:s,unconstrained:a}}function X(t,e){if(!1!==e)if(!0===e||a(e)){t.tooltips=[];for(var r=0;r= 2) required for mode 'count'.");for(var e=t.values-1,n=100/e,i=[];e--;)i[e]=e*n;return i.push(100),B(i,t.stepped)}return t.mode===r.PipsMode.Positions?B(t.values,t.stepped):t.mode===r.PipsMode.Values?t.stepped?t.values.map((function(t){return E.fromStepping(E.getStep(E.toStepping(t)))})):t.values:[]}(t),i={},o=E.xVal[0],s=E.xVal[E.xVal.length-1],a=!1,l=!1,u=0;return e=n.slice().sort((function(t,e){return t-e})),(n=e.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(n.unshift(o),a=!0),n[n.length-1]!==s&&(n.push(s),l=!0),n.forEach((function(e,o){var s,c,p,f,d,h,m,g,v,b,S=e,x=n[o+1],y=t.mode===r.PipsMode.Steps;for(y&&(s=E.xNumSteps[o]),s||(s=x-S),void 0===x&&(x=S),s=Math.max(s,1e-7),c=S;c<=x;c=Number((c+s).toFixed(7))){for(g=(d=(f=E.toStepping(c))-u)/(t.density||1),b=d/(v=Math.round(g)),p=1;p<=v;p+=1)i[(h=u+p*b).toFixed(5)]=[E.fromStepping(h),0];m=n.indexOf(c)>-1?r.PipsType.LargeValue:y?r.PipsType.SmallValue:r.PipsType.NoValue,!o&&a&&c!==x&&(m=0),c===x&&l||(i[f.toFixed(5)]=[c,m]),u=f}})),i}function X(t,n,i){var o,s,a=M.createElement("div"),l=((o={})[r.PipsType.None]="",o[r.PipsType.NoValue]=e.cssClasses.valueNormal,o[r.PipsType.LargeValue]=e.cssClasses.valueLarge,o[r.PipsType.SmallValue]=e.cssClasses.valueSub,o),u=((s={})[r.PipsType.None]="",s[r.PipsType.NoValue]=e.cssClasses.markerNormal,s[r.PipsType.LargeValue]=e.cssClasses.markerLarge,s[r.PipsType.SmallValue]=e.cssClasses.markerSub,s),c=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],p=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];function f(t,r){var n=r===e.cssClasses.value,i=n?l:u;return r+" "+(n?c:p)[e.ort]+" "+i[t]}return g(a,e.cssClasses.pips),g(a,0===e.ort?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o,s){if((s=n?n(o,s):s)!==r.PipsType.None){var l=L(a,!1);l.className=f(s,e.cssClasses.marker),l.style[e.style]=t+"%",s>r.PipsType.NoValue&&((l=L(a,!1)).className=f(s,e.cssClasses.value),l.setAttribute("data-value",String(o)),l.style[e.style]=t+"%",l.innerHTML=String(i.to(o)))}}(o,t[o][0],t[o][1])})),a}function Y(){a&&(l(a),a=null)}function I(t){Y();var e=q(t),r=t.filter,n=t.format||{to:function(t){return String(Math.round(t))}};return a=w.appendChild(X(e,r,n))}function W(){var t=i.getBoundingClientRect(),r="offset"+["Width","Height"][e.ort];return 0===e.ort?t.width||i[r]:t.height||i[r]}function $(t,r,n,i){var o=function(o){var s,a,l=function(t,e,r){var n=0===t.type.indexOf("touch"),i=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),s=0,a=0;0===t.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(n){var l=function(e){var n=e.target;return n===r||r.contains(n)||t.composed&&t.composedPath().shift()===r};if("touchstart"===t.type){var u=Array.prototype.filter.call(t.touches,l);if(u.length>1)return!1;s=u[0].pageX,a=u[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,l);if(!c)return!1;s=c.pageX,a=c.pageY}}e=e||b(M),(i||o)&&(s=t.clientX+e.x,a=t.clientY+e.y);return t.pageOffset=e,t.points=[s,a],t.cursor=i||o,t}(o,i.pageOffset,i.target||r);return!!l&&(!(H()&&!i.doNotReject)&&(s=w,a=e.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!i.doNotReject)&&(!(t===x.start&&void 0!==l.buttons&&l.buttons>1)&&((!i.hover||!l.buttons)&&(y||l.preventDefault(),l.calcPoint=l.points[e.ort],void n(l,i))))))},s=[];return t.split(" ").forEach((function(t){r.addEventListener(t,o,!!y&&{passive:!0}),s.push([t,o])})),s}function G(t){var r,n,o,s,a,l,u=100*(t-(r=i,n=e.ort,o=r.getBoundingClientRect(),s=r.ownerDocument,a=s.documentElement,l=b(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),n?o.top+l.y-a.clientTop:o.left+l.x-a.clientLeft))/W();return u=d(u),e.dir?100-u:u}function J(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&Z(t,e)}function K(t,r){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==r.buttonsProperty)return Z(t,r);var n=(e.dir?-1:1)*(t.calcPoint-r.startCalcPoint);lt(n>0,100*n/r.baseSize,r.locations,r.handleNumbers,r.connect)}function Z(t,r){r.handle&&(v(r.handle,e.cssClasses.active),A-=1),r.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===A&&(v(w,e.cssClasses.drag),ct(),t.cursor&&(D.style.cursor="",D.removeEventListener("selectstart",c))),e.events.smoothSteps&&(r.handleNumbers.forEach((function(t){pt(t,C[t],!0,!0,!1,!1)})),r.handleNumbers.forEach((function(t){ot("update",t)}))),r.handleNumbers.forEach((function(t){ot("change",t),ot("set",t),ot("end",t)}))}function tt(t,r){if(!r.handleNumbers.some(F)){var n;if(1===r.handleNumbers.length)n=o[r.handleNumbers[0]].children[0],A+=1,g(n,e.cssClasses.active);t.stopPropagation();var i=[],s=$(x.move,U,K,{target:t.target,handle:n,connect:r.connect,listeners:i,startCalcPoint:t.calcPoint,baseSize:W(),pageOffset:t.pageOffset,handleNumbers:r.handleNumbers,buttonsProperty:t.buttons,locations:C.slice()}),a=$(x.end,U,Z,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:r.handleNumbers}),l=$("mouseout",U,J,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:r.handleNumbers});i.push.apply(i,s.concat(a,l)),t.cursor&&(D.style.cursor=getComputedStyle(t.target).cursor,o.length>1&&g(w,e.cssClasses.drag),D.addEventListener("selectstart",c,!1)),r.handleNumbers.forEach((function(t){ot("start",t)}))}}function et(t){t.stopPropagation();var r=G(t.calcPoint),n=function(t){var e=100,r=!1;return o.forEach((function(n,i){if(!F(i)){var o=C[i],s=Math.abs(o-t);(so||100===s&&100===e)&&(r=i,e=s)}})),r}(r);!1!==n&&(e.events.snap||f(w,e.cssClasses.tap,e.animationDuration),pt(n,r,!0,!0),ct(),ot("slide",n,!0),ot("update",n,!0),e.events.snap?tt(t,{handleNumbers:[n]}):(ot("change",n,!0),ot("set",n,!0)))}function rt(t){var e=G(t.calcPoint),r=E.getStep(e),n=E.fromStepping(r);Object.keys(k).forEach((function(t){"hover"===t.split(".")[0]&&k[t].forEach((function(t){t.call(vt,n)}))}))}function nt(t,e){k[t]=k[t]||[],k[t].push(e),"update"===t.split(".")[0]&&o.forEach((function(t,e){ot("update",e)}))}function it(t){var e=t&&t.split(".")[0],r=e?t.substring(e.length):t;Object.keys(k).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||function(t){return t===V.aria||t===V.tooltips}(i)&&r!==i||delete k[t]}))}function ot(t,r,n){Object.keys(k).forEach((function(i){var o=i.split(".")[0];t===o&&k[i].forEach((function(t){t.call(vt,P.map(e.format.to),r,P.slice(),n||!1,C.slice(),vt)}))}))}function st(t,r,n,i,s,a,l){var u;return o.length>1&&!e.events.unconstrained&&(i&&r>0&&(u=E.getAbsoluteDistance(t[r-1],e.margin,!1),n=Math.max(n,u)),s&&r1&&e.limit&&(i&&r>0&&(u=E.getAbsoluteDistance(t[r-1],e.limit,!1),n=Math.min(n,u)),s&&r1?i.forEach((function(t,e){var n=st(s,t,s[t]+r,u[e],c[e],!1,l);!1===n?r=0:(r=n-s[t],s[t]=n)})):u=c=[!0];var p=!1;i.forEach((function(t,e){p=pt(t,n[t]+r,u[e],c[e],!1,l)||p})),p&&(i.forEach((function(t){ot("update",t),ot("slide",t)})),null!=o&&ot("drag",a))}function ut(t,r){return e.dir?100-t-r:t}function ct(){N.forEach((function(t){var e=C[t]>50?-1:1,r=3+(o.length+e*t);o[t].style.zIndex=String(r)}))}function pt(t,r,n,i,s,a){return s||(r=st(C,t,r,n,i,!1,a)),!1!==r&&(function(t,r){C[t]=r,P[t]=E.fromStepping(r);var n="translate("+at(ut(r,0)-O+"%","0")+")";o[t].style[e.transformRule]=n,ft(t),ft(t+1)}(t,r),!0)}function ft(t){if(s[t]){var r=0,n=100;0!==t&&(r=C[t-1]),t!==s.length-1&&(n=C[t]);var i=n-r,o="translate("+at(ut(r,i)+"%","0")+")",a="scale("+at(i/100,"1")+")";s[t].style[e.transformRule]=o+" "+a}}function dt(t,r){return null===t||!1===t||void 0===t?C[r]:("number"==typeof t&&(t=String(t)),!1!==(t=e.format.from(t))&&(t=E.toStepping(t)),!1===t||isNaN(t)?C[r]:t)}function ht(t,r,n){var i=h(t),o=void 0===C[0];r=void 0===r||r,e.animate&&!o&&f(w,e.cssClasses.tap,e.animationDuration),N.forEach((function(t){pt(t,dt(i[t],t),!0,!1,n)}));var s=1===N.length?0:1;if(o&&E.hasNoSize()&&(n=!0,C[0]=0,N.length>1)){var a=100/(N.length-1);N.forEach((function(t){C[t]=t*a}))}for(;sn.stepAfter.startValue&&(o=n.stepAfter.startValue-i),s=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===r?o=null:0===r&&(s=null);var a=E.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}g(m=w,e.cssClasses.target),0===e.dir?g(m,e.cssClasses.ltr):g(m,e.cssClasses.rtl),0===e.ort?g(m,e.cssClasses.horizontal):g(m,e.cssClasses.vertical),g(m,"rtl"===getComputedStyle(m).direction?e.cssClasses.textDirectionRtl:e.cssClasses.textDirectionLtr),i=L(m,e.cssClasses.base),function(t,r){var n=L(r,e.cssClasses.connects);o=[],(s=[]).push(z(n,t[0]));for(var i=0;i=0&&tthis._update_slider()))}pretty(e){return this._formatter(e,this.model.format)}}r.BaseNumericalSliderView=l,l.__name__="BaseNumericalSliderView";class o extends n.AbstractSlider{constructor(e){super(e)}}r.BaseNumericalSlider=o,i=o,o.__name__="BaseNumericalSlider",i.define((({Float:e,Str:t,Or:r,Ref:s})=>({start:[e],end:[e],step:[e,1],format:[r(t,s(c.TickFormatter))]})))}, -668: function _(e,t,r,a,i){var c;a();const o=e(1).__importDefault(e(247)),s=e(669),_=e(8);class l extends s.NumericalSliderView{constructor(){super(...arguments),this.behaviour="tap",this.connected=[!0,!1]}_calc_to(){const e=super._calc_to();return e.step*=864e5,e}_formatter(e,t){return(0,_.isString)(t)?(0,o.default)(e,t):t.compute(e)}}r.DateSliderView=l,l.__name__="DateSliderView";class n extends s.NumericalSlider{constructor(e){super(e)}}r.DateSlider=n,c=n,n.__name__="DateSlider",c.prototype.default_view=l,c.override({format:"%d %b %Y"})}, -669: function _(e,r,t,s,i){s();const a=e(667);class l extends a.BaseNumericalSliderView{_calc_to(){const{start:e,end:r,value:t,step:s}=this.model;return{range:{min:e,max:r},start:[t],step:s}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}}t.NumericalSliderView=l,l.__name__="NumericalSliderView";class n extends a.BaseNumericalSlider{constructor(e){super(e)}}t.NumericalSlider=n,n.__name__="NumericalSlider"}, -670: function _(e,t,r,a,i){var n;a();const o=e(1).__importDefault(e(247)),s=e(666),d=e(8);class c extends s.NumericalRangeSliderView{constructor(){super(...arguments),this.behaviour="drag",this.connected=[!1,!0,!1]}_formatter(e,t){return(0,d.isString)(t)?(0,o.default)(e,t):t.compute(e)}}r.DatetimeRangeSliderView=c,c.__name__="DatetimeRangeSliderView";class l extends s.NumericalRangeSlider{constructor(e){super(e)}}r.DatetimeRangeSlider=l,n=l,l.__name__="DatetimeRangeSlider",n.prototype.default_view=c,n.override({format:"%d %b %Y %H:%M:%S",step:36e5})}, -671: function _(e,r,t,a,i){var n;a();const o=e(1).__importStar(e(245)),s=e(666),c=e(8);class _ extends s.NumericalRangeSliderView{constructor(){super(...arguments),this.behaviour="drag",this.connected=[!1,!0,!1]}_formatter(e,r){return(0,c.isString)(r)?o.format(e,r):r.compute(e)}}t.RangeSliderView=_,_.__name__="RangeSliderView";class d extends s.NumericalRangeSlider{constructor(e){super(e)}}t.RangeSlider=d,n=d,d.__name__="RangeSlider",n.prototype.default_view=_,n.override({format:"0[.]00"})}, -672: function _(e,r,t,i,o){var a;i();const s=e(1).__importStar(e(245)),c=e(669),n=e(8);class _ extends c.NumericalSliderView{constructor(){super(...arguments),this.behaviour="tap",this.connected=[!0,!1]}_formatter(e,r){return(0,n.isString)(r)?s.format(e,r):r.compute(e)}}t.SliderView=_,_.__name__="SliderView";class d extends c.NumericalSlider{constructor(e){super(e)}}t.Slider=d,a=d,d.__name__="Slider",a.prototype.default_view=_,a.override({format:"0[.]00"})}, -}, 588, {"models/widgets/main":588,"models/widgets/index":589,"models/widgets/abstract_button":590,"models/widgets/control":591,"models/widgets/widget":697,"styles/buttons.css":593,"models/widgets/autocomplete_input":594,"models/widgets/text_input":595,"models/widgets/text_like_input":596,"models/widgets/input_widget":597,"styles/widgets/inputs.css":598,"styles/dropdown.css":599,"models/widgets/button":600,"models/widgets/checkbox_button_group":601,"models/widgets/toggle_button_group":602,"models/widgets/oriented_control":603,"models/widgets/checkbox_group":604,"models/widgets/toggle_input_group":605,"styles/widgets/checkbox.css":606,"models/widgets/checkbox":607,"models/widgets/toggle_input":608,"models/widgets/color_picker":609,"models/widgets/date_picker":610,"models/widgets/base_date_picker":611,"models/widgets/picker_base":612,"styles/widgets/flatpickr.css":621,"models/widgets/date_range_picker":622,"models/widgets/datetime_picker":623,"models/widgets/base_datetime_picker":624,"models/widgets/datetime_range_picker":625,"models/widgets/div":626,"models/widgets/markup":627,"styles/clearfix.css":628,"models/widgets/dropdown":629,"styles/caret.css":630,"models/widgets/file_input":631,"models/widgets/help_button":632,"models/widgets/multi_choice":633,"styles/widgets/choices.css":635,"models/widgets/multiselect":636,"models/widgets/multiple_date_picker":637,"models/widgets/multiple_datetime_picker":638,"models/widgets/numeric_input":639,"models/widgets/palette_select":640,"core/util/panes":641,"styles/panes.css":642,"styles/widgets/palette_select.css":643,"styles/widgets/palette_select_item.css":644,"styles/widgets/palette_select_pane.css":645,"models/widgets/paragraph":646,"models/widgets/password_input":647,"styles/widgets/password_input.css":648,"models/widgets/pretext":649,"models/widgets/radio_button_group":650,"models/widgets/radio_group":651,"models/widgets/select":652,"models/widgets/spinner":653,"models/widgets/switch":654,"styles/widgets/switch.css":655,"models/widgets/textarea_input":656,"models/widgets/time_picker":657,"models/widgets/toggle":658,"models/widgets/sliders/index":659,"models/widgets/sliders/categorical_slider":660,"models/widgets/sliders/abstract_slider":661,"styles/widgets/sliders.css":663,"styles/widgets/nouislider.css":664,"models/widgets/sliders/date_range_slider":665,"models/widgets/sliders/numerical_range_slider":666,"models/widgets/sliders/base_numerical_slider":667,"models/widgets/sliders/date_slider":668,"models/widgets/sliders/numerical_slider":669,"models/widgets/sliders/datetime_range_slider":670,"models/widgets/sliders/range_slider":671,"models/widgets/sliders/slider":672}, {});}); +function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}i.r(t),i.d(t,{default:function(){return X}});const r=1/0;function s(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-r?"-0":t}(e)}function o(e){return"string"==typeof e}function a(e){return"number"==typeof e}function c(e){return!0===e||!1===e||function(e){return l(e)&&null!==e}(e)&&"[object Boolean]"==d(e)}function l(e){return"object"==typeof e}function h(e){return null!=e}function u(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const p=e=>`Missing ${e} property in key`,f=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class v{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let i=g(e);t+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function g(e){let t=null,i=null,r=null,s=1,a=null;if(o(e)||n(e))r=e,t=_(e),i=y(e);else{if(!m.call(e,"name"))throw new Error(p("name"));const n=e.name;if(r=n,m.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(f(n));t=_(n),i=y(n),a=e.getFn}return{path:t,id:i,weight:s,src:r,getFn:a}}function _(e){return n(e)?e:e.split(".")}function y(e){return n(e)?e.join("."):e}var E={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(h(e))if(t[u]){const d=e[t[u]];if(!h(d))return;if(u===t.length-1&&(o(d)||a(d)||c(d)))i.push(s(d));else if(n(d)){r=!0;for(let e=0,i=d.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,i=this.size();t{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(h(s))if(n(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:i,value:r}=t.pop();if(h(r))if(o(r)&&!u(r)){let t={v:r,i,n:this.norm.get(r)};e.push(t)}else n(r)&&r.forEach(((e,i)=>{t.push({nestedArrIndex:i,value:e})}))}i.$[r]=e}else if(o(s)&&!u(s)){let e={v:s,n:this.norm.get(s)};i.$[r]=e}})),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function O(e,t,{getFn:i=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){const r=new S({getFn:i,fieldNormWeight:n});return r.setKeys(e.map(g)),r.setSources(t),r.create(),r}function I(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:r=E.distance,ignoreLocation:s=E.ignoreLocation}={}){const o=t/e.length;if(s)return o;const a=Math.abs(n-i);return r?o+a/r:a?1:o}const C=32;function T(e,t,i,{location:n=E.location,distance:r=E.distance,threshold:s=E.threshold,findAllMatches:o=E.findAllMatches,minMatchCharLength:a=E.minMatchCharLength,includeMatches:c=E.includeMatches,ignoreLocation:l=E.ignoreLocation}={}){if(t.length>C)throw new Error("Pattern length exceeds max of 32.");const h=t.length,u=e.length,d=Math.max(0,Math.min(n,u));let p=s,f=d;const m=a>1||c,v=m?Array(u):[];let g;for(;(g=e.indexOf(t,f))>-1;){let e=I(t,{currentLocation:g,expectedLocation:d,distance:r,ignoreLocation:l});if(p=Math.min(e,p),f=g+h,m){let e=0;for(;e=c;s-=1){let o=s-1,a=i[e.charAt(o)];if(m&&(v[o]=+!!a),E[s]=(E[s+1]<<1|1)&a,n&&(E[s]|=(_[s+1]|_[s])<<1|1|_[s+1]),E[s]&S&&(y=I(t,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l}),y<=p)){if(p=y,f=o,f<=d)break;c=Math.max(1,2*d-f)}}if(I(t,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l})>p)break;_=E}const O={isMatch:f>=0,score:Math.max(.001,y)};if(m){const e=function(e=[],t=E.minMatchCharLength){let i=[],n=-1,r=-1,s=0;for(let o=e.length;s=t&&i.push([n,r]),n=-1)}return e[s-1]&&s-n>=t&&i.push([n,s-1]),i}(v,a);e.length?c&&(O.indices=e):O.isMatch=!1}return O}function L(e){let t={};for(let i=0,n=e.length;i{this.chunks.push({pattern:e,alphabet:L(e),startIndex:t})},h=this.pattern.length;if(h>C){let e=0;const t=h%C,i=h-t;for(;e{const{isMatch:f,score:m,indices:v}=T(e,t,d,{location:n+p,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});f&&(u=!0),h+=m,f&&v&&(l=[...l,...v])}));let d={isMatch:u,score:u?h/this.chunks.length:1};return u&&i&&(d.indices=l),d}}class A{constructor(e){this.pattern=e}static isMultiMatch(e){return M(e,this.multiRegex)}static isSingleMatch(e){return M(e,this.singleRegex)}search(){}}function M(e,t){const i=e.match(t);return i?i[1]:null}class P extends A{constructor(e,{location:t=E.location,threshold:i=E.threshold,distance:n=E.distance,includeMatches:r=E.includeMatches,findAllMatches:s=E.findAllMatches,minMatchCharLength:o=E.minMatchCharLength,isCaseSensitive:a=E.isCaseSensitive,ignoreLocation:c=E.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:i,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class x extends A{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0;const n=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+r,n.push([t,i-1]);const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const N=[class extends A{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},x,class extends A{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends A{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},P],D=N.length,j=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([P.type,x.type]);class k{constructor(e,{isCaseSensitive:t=E.isCaseSensitive,includeMatches:i=E.includeMatches,minMatchCharLength:n=E.minMatchCharLength,ignoreLocation:r=E.ignoreLocation,findAllMatches:s=E.findAllMatches,location:o=E.location,threshold:a=E.threshold,distance:c=E.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let i=e.trim().split(j).filter((e=>e&&!!e.trim())),n=[];for(let e=0,r=i.length;e!(!e[Y]&&!e[H]),U=e=>({[Y]:Object.keys(e).map((t=>({[t]:e[t]})))});function W(e,t,{auto:i=!0}={}){const r=e=>{let s=Object.keys(e);const a=(e=>!!e[V])(e);if(!a&&s.length>1&&!G(e))return r(U(e));if((e=>!n(e)&&l(e)&&!G(e))(e)){const n=a?e[V]:s[0],r=a?e[B]:e[n];if(!o(r))throw new Error((e=>`Invalid value for key ${e}`)(n));const c={keyId:y(n),pattern:r};return i&&(c.searcher=R(r,t)),c}let c={children:[],operator:s[0]};return s.forEach((t=>{const i=e[t];n(i)&&i.forEach((e=>{c.children.push(r(e))}))})),c};return G(e)||(e=U(e)),r(e)}function $(e,t){const i=e.matches;t.matches=[],h(i)&&i.forEach((e=>{if(!h(e.indices)||!e.indices.length)return;const{indices:i,value:n}=e;let r={indices:i,value:n};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function q(e,t){t.score=e.score}class X{constructor(e,t={},i){this.options={...E,...t},this.options.useExtendedSearch,this._keyStore=new v(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof S))throw new Error("Incorrect 'index' type");this._myIndex=t||O(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){h(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let i=0,n=this._docs.length;i{let i=1;e.matches.forEach((({key:e,norm:n,score:r})=>{const s=e?e.weight:null;i*=Math.pow(0===r&&s?Number.EPSILON:r,(s||1)*(t?1:n))})),e.score=i}))}(l,{ignoreFieldNorm:c}),r&&l.sort(s),a(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:i=E.includeMatches,includeScore:n=E.includeScore}={}){const r=[];return i&&r.push($),n&&r.push(q),e.map((e=>{const{idx:i}=e,n={item:t[i],refIndex:i};return r.length&&r.forEach((t=>{t(e,n)})),n}))}(l,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const t=R(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach((({v:e,i,n:r})=>{if(!h(e))return;const{isMatch:s,score:o,indices:a}=t.searchIn(e);s&&n.push({item:e,idx:i,matches:[{score:o,value:e,norm:r,indices:a}]})})),n}_searchLogical(e){const t=W(e,this.options),i=(e,t,n)=>{if(!e.children){const{keyId:i,searcher:r}=e,s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(t,i),searcher:r});return s&&s.length?[{idx:n,item:t,matches:s}]:[]}const r=[];for(let s=0,o=e.children.length;s{if(h(e)){let o=i(t,e,n);o.length&&(r[n]||(r[n]={idx:n,item:e,matches:[]},s.push(r[n])),o.forEach((({matches:e})=>{r[n].matches.push(...e)})))}})),s}_searchObjectList(e){const t=R(e,this.options),{keys:i,records:n}=this._myIndex,r=[];return n.forEach((({$:e,i:n})=>{if(!h(e))return;let s=[];i.forEach(((i,n)=>{s.push(...this._findMatches({key:i,value:e[n],searcher:t}))})),s.length&&r.push({idx:n,item:e,matches:s})})),r}_findMatches({key:e,value:t,searcher:i}){if(!h(t))return[];let r=[];if(n(t))t.forEach((({v:t,i:n,n:s})=>{if(!h(t))return;const{isMatch:o,score:a,indices:c}=i.searchIn(t);o&&r.push({score:a,key:e,value:t,idx:n,norm:s,indices:c})}));else{const{v:n,n:s}=t,{isMatch:o,score:a,indices:c}=i.searchIn(n);o&&r.push({score:a,key:e,value:n,norm:s,indices:c})}return r}}X.version="6.6.2",X.createIndex=O,X.parseIndex=function(e,{getFn:t=E.getFn,fieldNormWeight:i=E.fieldNormWeight}={}){const{keys:n,records:r}=e,s=new S({getFn:t,fieldNormWeight:i});return s.setKeys(n),s.setIndexRecords(r),s},X.config=E,X.parseQuery=W,function(...e){K.push(...e)}(k)},791:function(e,t,i){function n(e){return n="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},n(e)}function r(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function s(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;tthis.render_selection())),this.connect(this.model.properties.options.change,(()=>this.render())),this.connect(this.model.properties.name.change,(()=>this.render())),this.connect(this.model.properties.title.change,(()=>this.render())),this.connect(this.model.properties.size.change,(()=>this.render())),this.connect(this.model.properties.disabled.change,(()=>this.render()))}_render_input(){const e=this.model.options.map((e=>{let t,s;return(0,c.isString)(e)?t=s=e:[t,s]=e,(0,r.option)({value:t},s)}));return this.input_el=(0,r.select)({multiple:!0,class:d.input,name:this.model.name,disabled:this.model.disabled},e),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el}render(){super.render(),this.render_selection()}render_selection(){const e=new Set(this.model.value);for(const t of this.shadow_el.querySelectorAll("option"))t.selected=e.has(t.value);this.input_el.size=this.model.size}change_input(){const e=null!=this.shadow_el.querySelector("select:focus"),t=[];for(const e of this.shadow_el.querySelectorAll("option"))e.selected&&t.push(e.value);this.model.value=t,super.change_input(),e&&this.input_el.focus()}}s.MultiSelectView=p,p.__name__="MultiSelectView";class u extends h.InputWidget{constructor(e){super(e)}}s.MultiSelect=u,l=u,u.__name__="MultiSelect",l.prototype.default_view=p,l.define((({Int:e,Str:t,List:s,Tuple:i,Or:n})=>({value:[s(t),[]],options:[s(n(t,i(t,t))),[]],size:[e,4]})))}, +647: function _(e,t,a,i,r){var s;i();const l=e(621);class o extends l.BaseDatePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"multiple",conjunction:this.model.separator}}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}a.MultipleDatePickerView=o,o.__name__="MultipleDatePickerView";class c extends l.BaseDatePicker{constructor(e){super(e)}}a.MultipleDatePicker=c,s=c,c.__name__="MultipleDatePicker",s.prototype.default_view=o,s.define((({Str:e,List:t})=>({value:[t(l.DateLike),[]],separator:[e,", "]})))}, +648: function _(e,t,i,a,r){var s;a();const l=e(634),o=e(621);class c extends l.BaseDatetimePickerView{get flatpickr_options(){return{...super.flatpickr_options,mode:"multiple",conjunction:this.model.separator}}_on_change(e){this.model.value=e.map((e=>this._format_date(e)))}}i.MultipleDatetimePickerView=c,c.__name__="MultipleDatetimePickerView";class n extends l.BaseDatetimePicker{constructor(e){super(e)}}i.MultipleDatetimePicker=n,s=n,n.__name__="MultipleDatetimePicker",s.prototype.default_view=c,s.define((({Str:e,List:t})=>({value:[t(o.DateLike),[]],separator:[e,", "]})))}, +649: function _(e,t,l,i,n){var s;i();const u=e(1),h=u.__importStar(e(246)),o=e(607),a=e(192),r=e(63),d=e(8),p=e(12),_=u.__importStar(e(608)),m=/^[-+]?\d*$/,c=/^[-+]?\d*\.?\d*(?:(?:\d|\d.)[eE][-+]?)*\d*$/;class v extends o.InputWidgetView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.name.change,(()=>this.input_el.name=this.model.name??"")),this.connect(this.model.properties.value.change,(()=>{this.input_el.value=this.format_value,this.old_value=this.input_el.value})),this.connect(this.model.properties.low.change,(()=>{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(t<=l,"Invalid bounds, low must be inferior to high"),null!=e&&null!=t&&e{const{value:e,low:t,high:l}=this.model;null!=t&&null!=l&&(0,p.assert)(l>=t,"Invalid bounds, high must be superior to low"),null!=e&&null!=l&&e>l&&(this.model.value=l)})),this.connect(this.model.properties.high.change,(()=>this.input_el.placeholder=this.model.placeholder)),this.connect(this.model.properties.disabled.change,(()=>this.input_el.disabled=this.model.disabled)),this.connect(this.model.properties.placeholder.change,(()=>this.input_el.placeholder=this.model.placeholder))}get format_value(){return null!=this.model.value?this.model.pretty(this.model.value):""}_set_input_filter(e){this.input_el.addEventListener("input",(()=>{const{selectionStart:t,selectionEnd:l}=this.input_el;if(e(this.input_el.value))this.old_value=this.input_el.value;else{const e=this.old_value.length-this.input_el.value.length;this.input_el.value=this.old_value,null!=t&&null!=l&&this.input_el.setSelectionRange(t-1,l+e)}}))}_render_input(){return this.input_el=(0,r.input)({type:"text",class:_.input,name:this.model.name,value:this.format_value,disabled:this.model.disabled,placeholder:this.model.placeholder})}render(){super.render(),this.old_value=this.format_value,this.set_input_filter(),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el.addEventListener("focusout",(()=>this.input_el.value=this.format_value))}set_input_filter(){const e="int"==this.model.mode?m:c;this._set_input_filter((t=>e.test(t)))}bound_value(e){let t=e;const{low:l,high:i}=this.model;return t=null!=l?Math.max(l,t):t,t=null!=i?Math.min(i,t):t,t}get value(){let e=""!=this.input_el.value?Number(this.input_el.value):null;return null!=e&&(e=this.bound_value(e)),e}change_input(){null==this.value?this.model.value=null:Number.isNaN(this.value)||(this.model.value=this.value)}}l.NumericInputView=v,v.__name__="NumericInputView";class g extends o.InputWidget{constructor(e){super(e)}_formatter(e,t){return(0,d.isString)(t)?h.format(e,t):t.doFormat([e],{loc:0})[0]}pretty(e){return null!=this.format?this._formatter(e,this.format):`${e}`}}l.NumericInput=g,s=g,g.__name__="NumericInput",s.prototype.default_view=v,s.define((({Float:e,Str:t,Enum:l,Ref:i,Or:n,Nullable:s})=>({value:[s(e),null],placeholder:[t,""],mode:[l("int","float"),"int"],format:[s(n(t,i(a.TickFormatter))),null],low:[s(e),null],high:[s(e),null]})))}, +650: function _(e,t,s,n,i){var l;n();const r=e(1),a=e(63),o=e(651),h=e(34),c=e(22),u=e(11),_=e(10),d=e(12),p=e(607),m=r.__importStar(e(608)),v=r.__importStar(e(653)),w=r.__importStar(e(654)),g=r.__importStar(e(655)),y=r.__importStar(e(123)),f=e(21),S=(0,f.Tuple)(f.Str,(0,f.Arrayable)(f.Color));class k extends p.InputWidgetView{constructor(){super(...arguments),this._style=new a.InlineStyleSheet,this._style_menu=new a.InlineStyleSheet}stylesheets(){return[...super.stylesheets(),v.default,w.default,y.default,this._style]}connect_signals(){super.connect_signals();const{value:e,items:t,ncols:s,swatch_width:n,swatch_height:i}=this.model.properties;this.on_change([t,n,i],(()=>this.render())),this.on_change(e,(()=>this._update_value())),this.on_change(s,(()=>this._update_ncols()))}_update_value(){(0,a.empty)(this._value_el);const e=this._render_value();null!=e&&this._value_el.append(e)}_update_ncols(){const{ncols:e}=this.model;this._pane.el.style.setProperty("--number-of-columns",`${e}`)}_render_item(e){const[t]=e,s=this.model.items.indexOf(e);(0,d.assert)(-1!=s);const n=(0,a.div)({class:w.swatch,id:`item_${s}`});return(0,a.div)({class:w.entry},n,(0,a.div)(t))}_render_value(){const{value:e,items:t}=this.model,s=t.find((([t])=>t==e));return null!=s?this._render_item(s):null}_render_input(){this._value_el=(0,a.div)({class:[v.value,w.entry]},this._render_value());const e=(0,a.div)({class:[v.chevron,y.tool_icon_chevron_down]}),t=(0,a.div)({class:[m.input,v.value_input]},this._value_el,e);return this.model.disabled?t.classList.add(m.disabled):t.tabIndex=0,this.input_el=t,this.input_el}render(){super.render();const{swatch_width:e,swatch_height:t}=this.model;this._style.replace(`\n .${w.swatch} {\n width: ${e}px;\n height: ${"auto"==t?"auto":(0,a.px)(t)};\n }\n `);for(const[e,t]of(0,h.enumerate)(this.model.items)){const[,s]=e,n=s.length,i=(0,_.linspace)(0,100,n+1),l=[];for(const[e,t]of(0,h.enumerate)(s)){const[s,n]=[i[t],i[t+1]];l.push(`${(0,c.color2css)(e)} ${s}% ${n}%`)}const r=l.join(", ");this._style.append(`\n #item_${t} {\n background: linear-gradient(to right, ${r});\n }\n `)}this._style_menu.replace(this._style.css);const s=[];for(const[e,t]of(0,h.enumerate)(this.model.items)){const n=this._render_item(e),i=(0,a.div)({class:w.item,tabIndex:0},n);i.addEventListener("pointerup",(()=>{this.select(e)})),i.addEventListener("keyup",(t=>{switch(t.key){case"Enter":this.select(e);break;case"Escape":this.hide()}}));const l=e=>{const{items:n}=this.model,i=(0,u.cycle)(t+e,0,n.length-1);s[i].focus()};i.addEventListener("keydown",(e=>{const t=(()=>{switch(e.key){case"ArrowUp":return-this.model.ncols;case"ArrowDown":return+this.model.ncols;case"ArrowLeft":return-1;case"ArrowRight":return 1;default:return null}})();null!=t&&(e.preventDefault(),l(t))})),s.push(i)}this._pane=new o.DropPane(s,{target:this.group_el,prevent_hide:this.input_el,extra_stylesheets:[w.default,g.default,this._style_menu]}),this._update_ncols(),this.input_el.addEventListener("pointerup",(()=>{this.toggle()})),this.input_el.addEventListener("keyup",(e=>{switch(e.key){case"Enter":this.toggle();break;case"Escape":this.hide()}}));const n=e=>{const{items:t,value:s}=this.model,n=t.findIndex((([e])=>s==e));if(-1!=n){const s=(0,u.cycle)(n+e,0,t.length-1);this.select(t[s])}};this.input_el.addEventListener("keydown",(e=>{const t=(()=>{switch(e.key){case"ArrowUp":return-1;case"ArrowDown":return 1;default:return null}})();null!=t&&(e.preventDefault(),n(t))}))}select(e){this.hide();const[t]=e;this.model.value=t,super.change_input(),this.input_el.focus()}toggle(){this.model.disabled||this._pane.toggle()}hide(){this._pane.hide()}}s.PaletteSelectView=k,k.__name__="PaletteSelectView";class b extends p.InputWidget{constructor(e){super(e)}}s.PaletteSelect=b,l=b,b.__name__="PaletteSelect",l.prototype.default_view=k,l.define((({Int:e,Str:t,List:s,NonNegative:n,Positive:i,Or:l,Auto:r})=>({value:[t],items:[s(S)],ncols:[i(e),1],swatch_width:[n(e),100],swatch_height:[l(r,n(e)),"auto"]})))}, +651: function _(e,t,s,i,n){i();const o=e(1),h=e(63),_=e(8),l=o.__importDefault(e(652)),r=o.__importDefault(e(66));class d{get is_open(){return this._open}constructor(e,t){this.el=(0,h.div)(),this._open=!1,this._on_mousedown=e=>{if(e.composedPath().includes(this.el))return;const{prevent_hide:t}=this;if(t instanceof HTMLElement){if(e.composedPath().includes(t))return}else if(null!=t&&t(e))return;this.hide()},this._on_keydown=e=>{if("Escape"===e.key)this.hide()},this._on_blur=()=>{this.hide()},this.contents=e,this.target=t.target,this.prevent_hide=t.prevent_hide,this.extra_stylesheets=t.extra_stylesheets??[],this.shadow_el=this.el.attachShadow({mode:"open"}),this.class_list=new h.ClassList(this.el.classList)}remove(){this._unlisten(),this.el.remove()}_listen(){document.addEventListener("mousedown",this._on_mousedown),document.addEventListener("keydown",this._on_keydown),window.addEventListener("blur",this._on_blur)}_unlisten(){document.removeEventListener("mousedown",this._on_mousedown),document.removeEventListener("keydown",this._on_keydown),window.removeEventListener("blur",this._on_blur)}stylesheets(){return[r.default,l.default,...this.extra_stylesheets]}empty(){(0,h.empty)(this.shadow_el),this.class_list.clear()}render(){this.empty();for(const e of this.stylesheets()){((0,_.isString)(e)?new h.InlineStyleSheet(e):e).install(this.shadow_el)}this.shadow_el.append(...this.contents)}show(){if(!this._open){this.render();(this.target.shadowRoot??this.target).appendChild(this.el),this._listen(),this._open=!0}}hide(){this._open&&(this._open=!1,this._unlisten(),this.el.remove())}toggle(){this._open?this.hide():this.show()}}s.DropPane=d,d.__name__="DropPane"}, +652: function _(o,e,r,t,i){t(),r.default=":host{position:absolute;top:100%;min-width:100%;width:auto;height:auto;user-select:none;-webkit-user-select:none;z-index:var(--bokeh-top-level);cursor:pointer;font-size:var(--font-size);background-color:#fff;border:1px solid #ccc;border-radius:var(--border-radius);box-shadow:2px 4px 8px rgba(0, 0, 0, 0.175);}"}, +653: function _(e,t,a,i,n){i(),a.value_input="bk-value-input",a.value="bk-value",a.chevron="bk-chevron",a.default=".bk-value-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:1em;cursor:pointer;}.bk-value{flex-grow:1;}.bk-chevron{width:16px;height:16px;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}"}, +654: function _(t,e,i,o,a){o(),i.entry="bk-entry",i.swatch="bk-swatch",i.item="bk-item",i.active="bk-active",i.default=".bk-entry{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0.5em;}.bk-swatch{width:100px;height:auto;align-self:stretch;}.bk-item{--active-tool-highlight:#26aae1;border:1px solid transparent;}.bk-item.bk-active{border-color:var(--active-tool-highlight);}.bk-item:hover{background-color:#f9f9f9;}.bk-item:focus,.bk-item:focus-visible{outline:1px dotted var(--active-tool-highlight);outline-offset:-1px;}.bk-item::-moz-focus-inner{border:0;}"}, +655: function _(e,n,a,m,o){m(),a.default=":host{--number-of-columns:1;padding:5px;display:grid;grid-template-columns:repeat(var(--number-of-columns), 1fr);gap:0.25em;}"}, +656: function _(e,a,t,r,s){var n;r();const p=e(637),i=e(63);class _ extends p.MarkupView{render(){super.render();const e=(0,i.p)({style:{margin:"0px"}});this.has_math_disabled()?e.textContent=this.model.text:e.innerHTML=this.process_tex(this.model.text),this.markup_el.appendChild(e)}}t.ParagraphView=_,_.__name__="ParagraphView";class h extends p.Markup{constructor(e){super(e)}}t.Paragraph=h,n=h,h.__name__="Paragraph",n.prototype.default_view=_}, +657: function _(e,t,s,l,n){var o;l();const p=e(1),r=e(605),a=e(63),i=p.__importDefault(e(658)),_=p.__importDefault(e(123));class u extends r.TextInputView{stylesheets(){return[...super.stylesheets(),i.default,_.default]}render(){super.render(),this.input_el.type="password",this.toggle_el=(0,a.div)({class:"bk-toggle"}),this.toggle_el.addEventListener("click",(()=>{const{input_el:e,toggle_el:t}=this,s="text"==e.type;t.classList.toggle("bk-visible",!s),e.type=s?"password":"text"})),this.shadow_el.append(this.toggle_el)}}s.PasswordInputView=u,u.__name__="PasswordInputView";class d extends r.TextInput{constructor(e){super(e)}}s.PasswordInput=d,o=d,d.__name__="PasswordInput",o.prototype.default_view=u}, +658: function _(e,i,o,t,g){t(),o.input="bk-input",o.toggle="bk-toggle",o.visible="bk-visible",o.default=":host{--toggle-size:14px;--toggle-padding:4px;--toggle-width:calc(var(--toggle-size) + 2*var(--toggle-padding));}.bk-input{padding-right:max();}.bk-toggle{position:absolute;right:0;top:0;width:var(--toggle-width);height:100%;padding:0 var(--toggle-padding);background-color:var(--bokeh-icon-color);mask-image:var(--bokeh-icon-see-off);-webkit-mask-image:var(--bokeh-icon-see-off);mask-size:var(--toggle-size) var(--toggle-size);-webkit-mask-size:var(--toggle-size) var(--toggle-size);mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;cursor:pointer;}.bk-toggle.bk-visible{mask-image:var(--bokeh-icon-see-on);-webkit-mask-image:var(--bokeh-icon-see-on);}"}, +659: function _(e,t,r,s,n){var a;s();const o=e(637),_=e(63);class p extends o.MarkupView{render(){super.render();const e=(0,_.pre)({style:{overflow:"auto"}},this.model.text);this.markup_el.appendChild(e)}}r.PreTextView=p,p.__name__="PreTextView";class u extends o.Markup{constructor(e){super(e)}}r.PreText=u,a=u,u.__name__="PreText",a.prototype.default_view=p}, +660: function _(t,o,e,a,i){var n;a();const u=t(1),s=t(612),c=u.__importStar(t(603));class _ extends s.ToggleButtonGroupView{change_active(t){this.model.active!==t&&(this.model.active=t)}_update_active(){const{active:t}=this.model;this._buttons.forEach(((o,e)=>{o.classList.toggle(c.active,t===e)}))}}e.RadioButtonGroupView=_,_.__name__="RadioButtonGroupView";class l extends s.ToggleButtonGroup{constructor(t){super(t)}}e.RadioButtonGroup=l,n=l,l.__name__="RadioButtonGroup",n.prototype.default_view=_,n.define((({Int:t,Nullable:o})=>({active:[o(t),null]})))}, +661: function _(e,t,n,i,s){var o;i();const a=e(1),l=e(615),c=e(63),d=e(40),p=e(34),u=a.__importStar(e(608));class r extends l.ToggleInputGroupView{connect_signals(){super.connect_signals();const{active:e}=this.model.properties;this.on_change(e,(()=>{const{active:e}=this.model;for(const[t,n]of(0,p.enumerate)(this._inputs))t.checked=e==n}))}render(){super.render();const e=(0,c.div)({class:[u.input_group,this.model.inline?u.inline:null]});this.shadow_el.appendChild(e);const t=(0,d.unique_id)(),{active:n,labels:i}=this.model;this._inputs=[];for(let s=0;sthis.change_active(s))),this._inputs.push(o),this.model.disabled&&(o.disabled=!0),s==n&&(o.checked=!0);const a=(0,c.label)(o,(0,c.span)(i[s]));e.appendChild(a)}}change_active(e){this.model.active=e}}n.RadioGroupView=r,r.__name__="RadioGroupView";class h extends l.ToggleInputGroup{constructor(e){super(e)}}n.RadioGroup=h,o=h,h.__name__="RadioGroup",o.prototype.default_view=r,o.define((({Int:e,Nullable:t})=>({active:[t(e),null]})))}, +662: function _(e,t,n,i,s){var u;i();const l=e(1),o=e(63),_=e(8),a=e(9),p=e(607),r=l.__importStar(e(608)),c=e(21),h=c.Unknown,d=c.Str,v=(0,c.List)((0,c.Or)(d,(0,c.Tuple)(h,d))),m=(0,c.Dict)(v);class g extends p.InputWidgetView{constructor(){super(...arguments),this._known_values=new Map}connect_signals(){super.connect_signals();const{value:e,options:t}=this.model.properties;this.on_change(e,(()=>{this._update_value()})),this.on_change(t,(()=>{(0,o.empty)(this.input_el),this.input_el.append(...this.options_el()),this._update_value()}))}options_el(){const{_known_values:e}=this;function t(t){return t.map((t=>{let n,i;return(0,_.isString)(t)?n=i=t:[n,i]=t,e.set(n,i),(0,o.option)({value:i},i)}))}e.clear();const{options:n}=this.model;return(0,_.isArray)(n)?t(n):(0,a.entries)(n).map((([e,n])=>(0,o.optgroup)({label:e},t(n))))}_render_input(){return this.input_el=(0,o.select)({class:r.input,name:this.model.name,disabled:this.model.disabled},this.options_el()),this.input_el.addEventListener("change",(()=>this.change_input())),this.input_el}render(){super.render(),this._update_value()}change_input(){const e=this.input_el.value,t=[...this._known_values].find((([t,n])=>e==n)),n=(()=>{if(null==t)return"";{const[e,n]=t;return e}})();this.model.value=n,super.change_input()}_update_value(){const{value:e}=this.model,t=this._known_values.get(e);void 0!==t?this.input_el.value=t:(this.input_el.removeAttribute("value"),this.input_el.selectedIndex=-1)}}n.SelectView=g,g.__name__="SelectView";class w extends p.InputWidget{constructor(e){super(e)}}n.Select=w,u=w,w.__name__="Select",u.prototype.default_view=g,u.define((()=>({value:[h,""],options:[(0,c.Or)(v,m),[]]})))}, +663: function _(e,t,n,i,s){var l;i();const o=e(1),r=e(649),a=o.__importStar(e(18)),_=e(63),{min:u,max:h}=Math;class d extends r.NumericInputView{*buttons(){yield this.btn_up_el,yield this.btn_down_el}initialize(){super.initialize(),this._handles={interval:void 0,timeout:void 0},this._interval=200}connect_signals(){super.connect_signals();const e=this.model.properties;this.on_change(e.disabled,(()=>{for(const e of this.buttons())(0,_.toggle_attribute)(e,"disabled",this.model.disabled)}))}_render_input(){super._render_input(),this.btn_up_el=(0,_.button)({class:"bk-spin-btn bk-spin-btn-up"}),this.btn_down_el=(0,_.button)({class:"bk-spin-btn bk-spin-btn-down"});const{input_el:e,btn_up_el:t,btn_down_el:n}=this;return this.wrapper_el=(0,_.div)({class:"bk-spin-wrapper"},e,t,n),this.wrapper_el}render(){super.render();for(const e of this.buttons())(0,_.toggle_attribute)(e,"disabled",this.model.disabled),e.addEventListener("mousedown",(e=>this._btn_mouse_down(e))),e.addEventListener("mouseup",(()=>this._btn_mouse_up())),e.addEventListener("mouseleave",(()=>this._btn_mouse_leave()));this.input_el.addEventListener("keydown",(e=>{this._input_key_down(e)})),this.input_el.addEventListener("keyup",(()=>{this.model.value_throttled=this.model.value})),this.input_el.addEventListener("wheel",(e=>{this._input_mouse_wheel(e)})),this.input_el.addEventListener("wheel",function(e,t,n=!1){let i;return function(...s){const l=this,o=n&&void 0===i;void 0!==i&&clearTimeout(i),i=setTimeout((function(){i=void 0,n||e.apply(l,s)}),t),o&&e.apply(l,s)}}((()=>{this.model.value_throttled=this.model.value}),this.model.wheel_wait,!1))}remove(){this._stop_incrementation(),super.remove()}_start_incrementation(e){clearInterval(this._handles.interval),this._counter=0;const{step:t}=this.model,n=e=>{if(this._counter+=1,this._counter%5==0){const t=Math.floor(this._counter/5);t<10?(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>n(e)),this._interval/(t+1))):t>=10&&t<=13&&(clearInterval(this._handles.interval),this._handles.interval=setInterval((()=>n(2*e)),this._interval/10))}this.increment(e)};this._handles.interval=setInterval((()=>n(e*t)),this._interval)}_stop_incrementation(){clearTimeout(this._handles.timeout),this._handles.timeout=void 0,clearInterval(this._handles.interval),this._handles.interval=void 0,this.model.value_throttled=this.model.value}_btn_mouse_down(e){e.preventDefault();const t=e.currentTarget===this.btn_up_el?1:-1;this.increment(t*this.model.step),this.input_el.focus(),this._handles.timeout=setTimeout((()=>this._start_incrementation(t)),this._interval)}_btn_mouse_up(){this._stop_incrementation()}_btn_mouse_leave(){this._stop_incrementation()}_input_mouse_wheel(e){if(this.shadow_el.activeElement===this.input_el){e.preventDefault();const t=e.deltaY>0?-1:1;this.increment(t*this.model.step)}}_input_key_down(e){const t=(()=>{const{step:t,page_step_multiplier:n}=this.model;switch(e.key){case"ArrowUp":return t;case"ArrowDown":return-t;case"PageUp":return n*t;case"PageDown":return-n*t;default:return null}})();null!=t&&(e.preventDefault(),this.increment(t))}increment(e){const{low:t,high:n}=this.model;null==this.model.value?e>0?this.model.value=null!=t?t:null!=n?u(0,n):0:e<0&&(this.model.value=null!=n?n:null!=t?h(t,0):0):this.model.value=this.bound_value(this.model.value+e)}change_input(){super.change_input(),this.model.value_throttled=this.model.value}bound_value(e){const{low:t,high:n}=this.model;return null!=t&&en?this.model.value??0:e}}n.SpinnerView=d,d.__name__="SpinnerView";class p extends r.NumericInput{constructor(e){super(e)}}n.Spinner=p,l=p,p.__name__="Spinner",l.prototype.default_view=d,l.define((({Float:e,Nullable:t})=>({value_throttled:[t(e),a.unset,{readonly:!0}],step:[e,1],page_step_multiplier:[e,10],wheel_wait:[e,100]}))),l.override({mode:"float"})}, +664: function _(e,t,s,i,a){var l;i();const d=e(1),n=e(618),c=e(63),_=d.__importDefault(e(665));class h extends n.ToggleInputView{stylesheets(){return[...super.stylesheets(),_.default]}connect_signals(){super.connect_signals(),this.el.addEventListener("keydown",(e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),this._toggle_active()}})),this.el.addEventListener("click",(()=>this._toggle_active()))}render(){super.render(),this.bar_el=(0,c.div)({class:"bar"}),this.knob_el=(0,c.div)({class:"knob",tabIndex:0});const e=(0,c.div)({class:"body"},this.bar_el,this.knob_el);this._update_active(),this._update_disabled(),this.shadow_el.appendChild(e)}_update_active(){this.el.classList.toggle("active",this.model.active)}_update_disabled(){this.el.classList.toggle("disabled",this.model.disabled)}}s.SwitchView=h,h.__name__="SwitchView";class o extends n.ToggleInput{constructor(e){super(e)}}s.Switch=o,l=o,o.__name__="Switch",l.prototype.default_view=h,l.override({width:32})}, +665: function _(o,r,t,a,i){a(),t.default=":host{cursor:pointer;}:host(.disabled){cursor:default;}:host{--switch-size:16px;--bar-height:10px;}.body{width:100%;height:var(--switch-size);}.bar{position:relative;top:calc(50% - var(--bar-height)/2);height:var(--bar-height);border-radius:calc(var(--bar-height)/2);background-color:#e5e5e5;transition-property:background-color;}.knob{position:absolute;top:0;left:0;width:var(--switch-size);height:var(--switch-size);border-radius:8px;background-color:#adadad;transition-property:left, background-color;}:host(.active) .bar{background-color:#c2d5f7;}:host(.active) .knob{left:calc(100% - var(--switch-size));background-color:#3b80f0;}"}, +666: function _(e,t,s,n,i){var r;n();const o=e(1),l=e(606),c=e(63),p=o.__importStar(e(608));class _ extends l.TextLikeInputView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.rows.change,(()=>this.input_el.rows=this.model.rows)),this.connect(this.model.properties.cols.change,(()=>this.input_el.cols=this.model.cols))}_render_input(){return this.input_el=(0,c.textarea)({class:p.input})}render(){super.render(),this.input_el.cols=this.model.cols,this.input_el.rows=this.model.rows}}s.TextAreaInputView=_,_.__name__="TextAreaInputView";class u extends l.TextLikeInput{constructor(e){super(e)}}s.TextAreaInput=u,r=u,u.__name__="TextAreaInput",r.prototype.default_view=_,r.define((({Int:e})=>({cols:[e,20],rows:[e,2]}))),r.override({max_length:500})}, +667: function _(e,t,n,i,c){var s;i();const m=e(622),r=e(21),o=e(20),a=e(12);n.TimeLike=(0,r.Or)(r.Str,r.Float);class l extends m.PickerBaseView{_format_time(e){const{picker:t}=this;return t.formatDate(e,t.config.dateFormat)}connect_signals(){super.connect_signals();const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,second_increment:m,seconds:r,clock:o}=this.model.properties;this.connect(e.change,(()=>{const{value:e}=this.model;null!=e?this.picker.setDate(e):this.picker.clear()})),this.connect(t.change,(()=>this.picker.set("minTime",this.model.min_time))),this.connect(n.change,(()=>this.picker.set("maxTime",this.model.max_time))),this.connect(i.change,(()=>this.picker.set("altFormat",this.model.time_format))),this.connect(c.change,(()=>this.picker.set("hourIncrement",this.model.hour_increment))),this.connect(s.change,(()=>this.picker.set("minuteIncrement",this.model.minute_increment))),this.connect(m.change,(()=>this._update_second_increment())),this.connect(r.change,(()=>this.picker.set("enableSeconds",this.model.seconds))),this.connect(o.change,(()=>this.picker.set("time_24hr","24h"==this.model.clock)))}get flatpickr_options(){const{value:e,min_time:t,max_time:n,time_format:i,hour_increment:c,minute_increment:s,seconds:m,clock:r}=this.model,o=super.flatpickr_options;return o.enableTime=!0,o.noCalendar=!0,o.altInput=!0,o.altFormat=i,o.dateFormat="H:i:S",o.hourIncrement=c,o.minuteIncrement=s,o.enableSeconds=m,o.time_24hr="24h"==r,null!=e&&(o.defaultDate=e),null!=t&&(o.minTime=t),null!=n&&(o.maxTime=n),o}render(){super.render(),this._update_second_increment()}_update_second_increment(){const{second_increment:e}=this.model;this.picker.secondElement?.setAttribute("step",e.toString())}_on_change(e){(0,a.assert)(e.length<=1),this.model.value=(()=>{if(0==e.length)return null;{const[t]=e;return this._format_time(t)}})()}}n.TimePickerView=l,l.__name__="TimePickerView";class h extends m.PickerBase{constructor(e){super(e)}}n.TimePicker=h,s=h,h.__name__="TimePicker",s.prototype.default_view=l,s.define((({Bool:e,Str:t,Nullable:i,Positive:c,Int:s})=>({value:[i(n.TimeLike),null],min_time:[i(n.TimeLike),null],max_time:[i(n.TimeLike),null],time_format:[t,"H:i"],hour_increment:[c(s),1],minute_increment:[c(s),1],second_increment:[c(s),1],seconds:[e,!1],clock:[o.Clock,"24h"]})))}, +668: function _(e,t,i,s,c){var o;s();const a=e(1),n=e(600),l=e(53),r=a.__importStar(e(603));class _ extends n.AbstractButtonView{connect_signals(){super.connect_signals(),this.connect(this.model.properties.active.change,(()=>this._update_active()))}render(){super.render(),this._update_active()}click(){this.model.active=!this.model.active,this.model.trigger_event(new l.ButtonClick),super.click()}_update_active(){this.button_el.classList.toggle(r.active,this.model.active)}}i.ToggleView=_,_.__name__="ToggleView";class g extends n.AbstractButton{constructor(e){super(e)}}i.Toggle=g,o=g,g.__name__="Toggle",o.prototype.default_view=_,o.define((({Bool:e})=>({active:[e,!1]}))),o.override({label:"Toggle"})}, +669: function _(e,i,a,l,r){l(),r("CategoricalSlider",e(670).CategoricalSlider),r("DateRangeSlider",e(675).DateRangeSlider),r("DateSlider",e(678).DateSlider),r("DatetimeRangeSlider",e(680).DatetimeRangeSlider),r("RangeSlider",e(681).RangeSlider),r("Slider",e(682).Slider)}, +670: function _(e,t,r,s,i){var o;s();const a=e(671),c=e(8);class n extends a.AbstractSliderView{constructor(){super(...arguments),this.behaviour="tap"}connect_signals(){super.connect_signals();const{categories:e}=this.model.properties;this.on_change([e],(()=>this._update_slider()))}_calc_to(){const{categories:e}=this.model;return{range:{min:0,max:e.length-1},start:[this.model.value],step:1,format:{to:t=>e[t],from:t=>e.indexOf(t)}}}_calc_from([e]){const{categories:t}=this.model;return t[0|e]}pretty(e){return(0,c.isNumber)(e)?this.model.categories[e]:e}}r.CategoricalSliderView=n,n.__name__="CategoricalSliderView";class l extends a.AbstractSlider{constructor(e){super(e)}}r.CategoricalSlider=l,o=l,l.__name__="CategoricalSlider",o.prototype.default_view=n,o.define((({List:e,Str:t})=>({categories:[e(t)]})))}, +671: function _(t,e,i,s,l){var o;s();const r=t(1),n=r.__importDefault(t(672)),_=r.__importStar(t(18)),h=t(63),d=t(10),a=t(22),c=t(613),u=r.__importStar(t(673)),p=u,m=r.__importDefault(t(674)),g=r.__importStar(t(608));class b extends c.OrientedControlView{constructor(){super(...arguments),this.connected=!1,this._auto_width="auto",this._auto_height="auto"}*controls(){yield this.slider_el}get _steps(){return this._noUiSlider.steps}_update_slider(){this._noUiSlider.updateOptions(this._calc_to(),!0)}connect_signals(){super.connect_signals();const{direction:t,orientation:e,tooltips:i}=this.model.properties;this.on_change([t,e,i],(()=>this.render()));const{bar_color:s}=this.model.properties;this.on_change(s,(()=>{this._set_bar_color()}));const{value:l,title:o,show_value:r}=this.model.properties;this.on_change([l,o,r],(()=>this._update_title())),this.on_change(l,(()=>this._update_slider()))}stylesheets(){return[...super.stylesheets(),m.default,u.default]}_update_title(){(0,h.empty)(this.title_el);const t=null==this.model.title||0==this.model.title.length&&!this.model.show_value;if(this.title_el.style.display=t?"none":"",!t){const{title:t}=this.model;if(null!=t&&t.length>0&&(this.contains_tex_string(t)?this.title_el.innerHTML=`${this.process_tex(t)}: `:this.title_el.textContent=`${t}: `),this.model.show_value){const{start:t}=this._calc_to(),e=t.map((t=>this.pretty(t))).join(" .. ");this.title_el.appendChild((0,h.span)({class:p.slider_value},e))}}}_set_bar_color(){if(!1!==this.connected&&!this.model.disabled&&null!=this.slider_el){this.slider_el.querySelector(".noUi-connect").style.backgroundColor=(0,a.color2css)(this.model.bar_color)}}render(){let t;if(super.render(),this.model.tooltips){const e={to:t=>this.pretty(t)},{start:i}=this._calc_to();t=(0,d.repeat)(e,i.length)}else t=null;if(null==this.slider_el){this.slider_el=(0,h.div)(),this._noUiSlider=n.default.create(this.slider_el,{...this._calc_to(),behaviour:this.behaviour,connect:this.connected,tooltips:t??!1,orientation:this.model.orientation,direction:this.model.direction}),this._noUiSlider.on("slide",((t,e,i)=>this._slide(i))),this._noUiSlider.on("change",((t,e,i)=>this._change(i)));const e=(e,i)=>{if(null==t||null==this.slider_el)return;this.slider_el.querySelectorAll(".noUi-handle")[e].querySelector(".noUi-tooltip").style.display=i?"block":""};this._noUiSlider.on("start",(()=>this._toggle_user_select(!1))),this._noUiSlider.on("end",(()=>this._toggle_user_select(!0))),this._noUiSlider.on("start",((t,i)=>e(i,!0))),this._noUiSlider.on("end",((t,i)=>e(i,!1)))}else this._update_slider();this._set_bar_color(),this.model.disabled?this.slider_el.setAttribute("disabled","true"):this.slider_el.removeAttribute("disabled"),this.title_el=(0,h.div)({class:p.slider_title}),this._update_title(),this.group_el=(0,h.div)({class:g.input_group},this.title_el,this.slider_el),this.shadow_el.appendChild(this.group_el),this._has_finished=!0}_toggle_user_select(t){const{style:e}=document.body,i=t?"":"none";e.userSelect=i,e.webkitUserSelect=i}_slide(t){this.model.value=this._calc_from(t)}_change(t){const e=this._calc_from(t);this.model.setv({value:e,value_throttled:e})}}i.AbstractSliderView=b,b.__name__="AbstractSliderView";class S extends c.OrientedControl{constructor(t){super(t)}}i.AbstractSlider=S,o=S,S.__name__="AbstractSlider",o.define((({Unknown:t,Bool:e,Str:i,Color:s,Enum:l,Nullable:o})=>({title:[o(i),""],show_value:[e,!0],value:[t],value_throttled:[t,_.unset,{readonly:!0}],direction:[l("ltr","rtl"),"ltr"],tooltips:[e,!0],bar_color:[s,"#e6e6e6"]}))),o.override({width:300})}, +672: function _(t,e,r,n,i){var o,s;function a(t){return"object"==typeof t&&"function"==typeof t.to}function l(t){t.parentElement.removeChild(t)}function u(t){return null!=t}function c(t){t.preventDefault()}function p(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function f(t,e,r){r>0&&(g(t,e),setTimeout((function(){v(t,e)}),r))}function d(t){return Math.max(Math.min(t,100),0)}function h(t){return Array.isArray(t)?t:[t]}function m(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function g(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function v(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function b(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function S(t,e){return 100/(e-t)}function x(t,e,r){return 100*e/(t[r+1]-t[r])}function y(t,e){for(var r=1;t>=e[r];)r+=1;return r}function w(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=y(r,t),i=t[n-1],o=t[n],s=e[n-1],a=e[n];return s+function(t,e){return x(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([i,o],r)/S(s,a)}function E(t,e,r,n){if(100===n)return n;var i=y(n,t),o=t[i-1],s=t[i];return r?n-o>(s-o)/2?s:o:e[i-1]?t[i-1]+function(t,e){return Math.round(t/e)*e}(n-t[i-1],e[i-1]):n}n(),r.create=tt,(o=r.PipsMode||(r.PipsMode={})).Range="range",o.Steps="steps",o.Positions="positions",o.Count="count",o.Values="values",(s=r.PipsType||(r.PipsType={}))[s.None=-1]="None",s[s.NoValue=0]="NoValue",s[s.LargeValue=1]="LargeValue",s[s.SmallValue=2]="SmallValue";var P=function(){function t(t,e,r){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=e;var i=[];for(Object.keys(t).forEach((function(e){i.push([h(t[e]),e])})),i.sort((function(t,e){return t[0][0]-e[0][0]})),n=0;nthis.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);r||t!==this.xPct[i+1]||i++,null===e&&(e=[]);var o=1,s=e[i],a=0,l=0,u=0,c=0;for(n=r?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);s>0;)a=this.xPct[i+1+c]-this.xPct[i+c],e[i+c]*o+100-100*n>100?(l=a*n,o=(s-100*n)/e[i+c],n=1):(l=e[i+c]*a/100*o,o=0),r?(u-=l,this.xPct.length+c>=1&&c--):(u+=l,this.xPct.length-c>=1&&c++),s=e[i+c]*o;return t+u},t.prototype.toStepping=function(t){return t=w(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,r){if(r>=100)return t.slice(-1)[0];var n=y(r,e),i=t[n-1],o=t[n],s=e[n-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([i,o],(r-s)*S(s,e[n]))}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=E(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=y(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){var e=y(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(m);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){var r;if(!p(r="min"===t?0:"max"===t?100:parseFloat(t))||!p(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(r),this.xVal.push(e[0]);var n=Number(e[1]);r?this.xSteps.push(!isNaN(n)&&n):isNaN(n)||(this.xSteps[0]=n),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){if(e)if(this.xVal[t]!==this.xVal[t+1]){this.xSteps[t]=x([this.xVal[t],this.xVal[t+1]],e,0)/S(this.xPct[t],this.xPct[t+1]);var r=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],n=Math.ceil(Number(r.toFixed(3))-1),i=this.xVal[t]+this.xNumSteps[t]*n;this.xHighestCompleteStep[t]=i}else this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]},t}(),C={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},N={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"};r.cssClasses=N;var V={tooltips:".__tooltips",aria:".__aria"};function A(t,e){if(!p(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function k(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function M(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function U(t,e){if(!p(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function D(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new P(e,t.snap||!1,t.singleStep)}function O(t,e){if(e=h(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function L(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function T(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function z(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function j(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function B(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function q(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0,a=e.indexOf("unconstrained")>=0,l=e.indexOf("drag-all")>=0,u=e.indexOf("smooth-steps")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");F(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||o,drag:n,dragAll:l,smoothSteps:u,fixed:i,snap:o,hover:s,unconstrained:a}}function X(t,e){if(!1!==e)if(!0===e||a(e)){t.tooltips=[];for(var r=0;r= 2) required for mode 'count'.");for(var e=t.values-1,n=100/e,i=[];e--;)i[e]=e*n;return i.push(100),B(i,t.stepped)}return t.mode===r.PipsMode.Positions?B(t.values,t.stepped):t.mode===r.PipsMode.Values?t.stepped?t.values.map((function(t){return E.fromStepping(E.getStep(E.toStepping(t)))})):t.values:[]}(t),i={},o=E.xVal[0],s=E.xVal[E.xVal.length-1],a=!1,l=!1,u=0;return e=n.slice().sort((function(t,e){return t-e})),(n=e.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(n.unshift(o),a=!0),n[n.length-1]!==s&&(n.push(s),l=!0),n.forEach((function(e,o){var s,c,p,f,d,h,m,g,v,b,S=e,x=n[o+1],y=t.mode===r.PipsMode.Steps;for(y&&(s=E.xNumSteps[o]),s||(s=x-S),void 0===x&&(x=S),s=Math.max(s,1e-7),c=S;c<=x;c=Number((c+s).toFixed(7))){for(g=(d=(f=E.toStepping(c))-u)/(t.density||1),b=d/(v=Math.round(g)),p=1;p<=v;p+=1)i[(h=u+p*b).toFixed(5)]=[E.fromStepping(h),0];m=n.indexOf(c)>-1?r.PipsType.LargeValue:y?r.PipsType.SmallValue:r.PipsType.NoValue,!o&&a&&c!==x&&(m=0),c===x&&l||(i[f.toFixed(5)]=[c,m]),u=f}})),i}function X(t,n,i){var o,s,a=M.createElement("div"),l=((o={})[r.PipsType.None]="",o[r.PipsType.NoValue]=e.cssClasses.valueNormal,o[r.PipsType.LargeValue]=e.cssClasses.valueLarge,o[r.PipsType.SmallValue]=e.cssClasses.valueSub,o),u=((s={})[r.PipsType.None]="",s[r.PipsType.NoValue]=e.cssClasses.markerNormal,s[r.PipsType.LargeValue]=e.cssClasses.markerLarge,s[r.PipsType.SmallValue]=e.cssClasses.markerSub,s),c=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],p=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];function f(t,r){var n=r===e.cssClasses.value,i=n?l:u;return r+" "+(n?c:p)[e.ort]+" "+i[t]}return g(a,e.cssClasses.pips),g(a,0===e.ort?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o,s){if((s=n?n(o,s):s)!==r.PipsType.None){var l=L(a,!1);l.className=f(s,e.cssClasses.marker),l.style[e.style]=t+"%",s>r.PipsType.NoValue&&((l=L(a,!1)).className=f(s,e.cssClasses.value),l.setAttribute("data-value",String(o)),l.style[e.style]=t+"%",l.innerHTML=String(i.to(o)))}}(o,t[o][0],t[o][1])})),a}function Y(){a&&(l(a),a=null)}function I(t){Y();var e=q(t),r=t.filter,n=t.format||{to:function(t){return String(Math.round(t))}};return a=w.appendChild(X(e,r,n))}function W(){var t=i.getBoundingClientRect(),r="offset"+["Width","Height"][e.ort];return 0===e.ort?t.width||i[r]:t.height||i[r]}function $(t,r,n,i){var o=function(o){var s,a,l=function(t,e,r){var n=0===t.type.indexOf("touch"),i=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),s=0,a=0;0===t.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(n){var l=function(e){var n=e.target;return n===r||r.contains(n)||t.composed&&t.composedPath().shift()===r};if("touchstart"===t.type){var u=Array.prototype.filter.call(t.touches,l);if(u.length>1)return!1;s=u[0].pageX,a=u[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,l);if(!c)return!1;s=c.pageX,a=c.pageY}}e=e||b(M),(i||o)&&(s=t.clientX+e.x,a=t.clientY+e.y);return t.pageOffset=e,t.points=[s,a],t.cursor=i||o,t}(o,i.pageOffset,i.target||r);return!!l&&(!(H()&&!i.doNotReject)&&(s=w,a=e.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!i.doNotReject)&&(!(t===x.start&&void 0!==l.buttons&&l.buttons>1)&&((!i.hover||!l.buttons)&&(y||l.preventDefault(),l.calcPoint=l.points[e.ort],void n(l,i))))))},s=[];return t.split(" ").forEach((function(t){r.addEventListener(t,o,!!y&&{passive:!0}),s.push([t,o])})),s}function G(t){var r,n,o,s,a,l,u=100*(t-(r=i,n=e.ort,o=r.getBoundingClientRect(),s=r.ownerDocument,a=s.documentElement,l=b(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),n?o.top+l.y-a.clientTop:o.left+l.x-a.clientLeft))/W();return u=d(u),e.dir?100-u:u}function J(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&Z(t,e)}function K(t,r){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==r.buttonsProperty)return Z(t,r);var n=(e.dir?-1:1)*(t.calcPoint-r.startCalcPoint);lt(n>0,100*n/r.baseSize,r.locations,r.handleNumbers,r.connect)}function Z(t,r){r.handle&&(v(r.handle,e.cssClasses.active),A-=1),r.listeners.forEach((function(t){U.removeEventListener(t[0],t[1])})),0===A&&(v(w,e.cssClasses.drag),ct(),t.cursor&&(D.style.cursor="",D.removeEventListener("selectstart",c))),e.events.smoothSteps&&(r.handleNumbers.forEach((function(t){pt(t,C[t],!0,!0,!1,!1)})),r.handleNumbers.forEach((function(t){ot("update",t)}))),r.handleNumbers.forEach((function(t){ot("change",t),ot("set",t),ot("end",t)}))}function tt(t,r){if(!r.handleNumbers.some(F)){var n;if(1===r.handleNumbers.length)n=o[r.handleNumbers[0]].children[0],A+=1,g(n,e.cssClasses.active);t.stopPropagation();var i=[],s=$(x.move,U,K,{target:t.target,handle:n,connect:r.connect,listeners:i,startCalcPoint:t.calcPoint,baseSize:W(),pageOffset:t.pageOffset,handleNumbers:r.handleNumbers,buttonsProperty:t.buttons,locations:C.slice()}),a=$(x.end,U,Z,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:r.handleNumbers}),l=$("mouseout",U,J,{target:t.target,handle:n,listeners:i,doNotReject:!0,handleNumbers:r.handleNumbers});i.push.apply(i,s.concat(a,l)),t.cursor&&(D.style.cursor=getComputedStyle(t.target).cursor,o.length>1&&g(w,e.cssClasses.drag),D.addEventListener("selectstart",c,!1)),r.handleNumbers.forEach((function(t){ot("start",t)}))}}function et(t){t.stopPropagation();var r=G(t.calcPoint),n=function(t){var e=100,r=!1;return o.forEach((function(n,i){if(!F(i)){var o=C[i],s=Math.abs(o-t);(so||100===s&&100===e)&&(r=i,e=s)}})),r}(r);!1!==n&&(e.events.snap||f(w,e.cssClasses.tap,e.animationDuration),pt(n,r,!0,!0),ct(),ot("slide",n,!0),ot("update",n,!0),e.events.snap?tt(t,{handleNumbers:[n]}):(ot("change",n,!0),ot("set",n,!0)))}function rt(t){var e=G(t.calcPoint),r=E.getStep(e),n=E.fromStepping(r);Object.keys(k).forEach((function(t){"hover"===t.split(".")[0]&&k[t].forEach((function(t){t.call(vt,n)}))}))}function nt(t,e){k[t]=k[t]||[],k[t].push(e),"update"===t.split(".")[0]&&o.forEach((function(t,e){ot("update",e)}))}function it(t){var e=t&&t.split(".")[0],r=e?t.substring(e.length):t;Object.keys(k).forEach((function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||function(t){return t===V.aria||t===V.tooltips}(i)&&r!==i||delete k[t]}))}function ot(t,r,n){Object.keys(k).forEach((function(i){var o=i.split(".")[0];t===o&&k[i].forEach((function(t){t.call(vt,P.map(e.format.to),r,P.slice(),n||!1,C.slice(),vt)}))}))}function st(t,r,n,i,s,a,l){var u;return o.length>1&&!e.events.unconstrained&&(i&&r>0&&(u=E.getAbsoluteDistance(t[r-1],e.margin,!1),n=Math.max(n,u)),s&&r1&&e.limit&&(i&&r>0&&(u=E.getAbsoluteDistance(t[r-1],e.limit,!1),n=Math.min(n,u)),s&&r1?i.forEach((function(t,e){var n=st(s,t,s[t]+r,u[e],c[e],!1,l);!1===n?r=0:(r=n-s[t],s[t]=n)})):u=c=[!0];var p=!1;i.forEach((function(t,e){p=pt(t,n[t]+r,u[e],c[e],!1,l)||p})),p&&(i.forEach((function(t){ot("update",t),ot("slide",t)})),null!=o&&ot("drag",a))}function ut(t,r){return e.dir?100-t-r:t}function ct(){N.forEach((function(t){var e=C[t]>50?-1:1,r=3+(o.length+e*t);o[t].style.zIndex=String(r)}))}function pt(t,r,n,i,s,a){return s||(r=st(C,t,r,n,i,!1,a)),!1!==r&&(function(t,r){C[t]=r,P[t]=E.fromStepping(r);var n="translate("+at(ut(r,0)-O+"%","0")+")";o[t].style[e.transformRule]=n,ft(t),ft(t+1)}(t,r),!0)}function ft(t){if(s[t]){var r=0,n=100;0!==t&&(r=C[t-1]),t!==s.length-1&&(n=C[t]);var i=n-r,o="translate("+at(ut(r,i)+"%","0")+")",a="scale("+at(i/100,"1")+")";s[t].style[e.transformRule]=o+" "+a}}function dt(t,r){return null===t||!1===t||void 0===t?C[r]:("number"==typeof t&&(t=String(t)),!1!==(t=e.format.from(t))&&(t=E.toStepping(t)),!1===t||isNaN(t)?C[r]:t)}function ht(t,r,n){var i=h(t),o=void 0===C[0];r=void 0===r||r,e.animate&&!o&&f(w,e.cssClasses.tap,e.animationDuration),N.forEach((function(t){pt(t,dt(i[t],t),!0,!1,n)}));var s=1===N.length?0:1;if(o&&E.hasNoSize()&&(n=!0,C[0]=0,N.length>1)){var a=100/(N.length-1);N.forEach((function(t){C[t]=t*a}))}for(;sn.stepAfter.startValue&&(o=n.stepAfter.startValue-i),s=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===r?o=null:0===r&&(s=null);var a=E.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}g(m=w,e.cssClasses.target),0===e.dir?g(m,e.cssClasses.ltr):g(m,e.cssClasses.rtl),0===e.ort?g(m,e.cssClasses.horizontal):g(m,e.cssClasses.vertical),g(m,"rtl"===getComputedStyle(m).direction?e.cssClasses.textDirectionRtl:e.cssClasses.textDirectionLtr),i=L(m,e.cssClasses.base),function(t,r){var n=L(r,e.cssClasses.connects);o=[],(s=[]).push(z(n,t[0]));for(var i=0;i=0&&tthis._update_slider()))}pretty(e){return this._formatter(e,this.model.format)}}r.BaseNumericalSliderView=l,l.__name__="BaseNumericalSliderView";class o extends n.AbstractSlider{constructor(e){super(e)}}r.BaseNumericalSlider=o,i=o,o.__name__="BaseNumericalSlider",i.define((({Float:e,Str:t,Or:r,Ref:s})=>({start:[e],end:[e],step:[e,1],format:[r(t,s(c.TickFormatter))]})))}, +678: function _(e,t,r,a,i){var c;a();const o=e(1).__importDefault(e(248)),s=e(679),_=e(8);class l extends s.NumericalSliderView{constructor(){super(...arguments),this.behaviour="tap",this.connected=[!0,!1]}_calc_to(){const e=super._calc_to();return e.step*=864e5,e}_formatter(e,t){return(0,_.isString)(t)?(0,o.default)(e,t):t.compute(e)}}r.DateSliderView=l,l.__name__="DateSliderView";class n extends s.NumericalSlider{constructor(e){super(e)}}r.DateSlider=n,c=n,n.__name__="DateSlider",c.prototype.default_view=l,c.override({format:"%d %b %Y"})}, +679: function _(e,r,t,s,i){s();const a=e(677);class l extends a.BaseNumericalSliderView{_calc_to(){const{start:e,end:r,value:t,step:s}=this.model;return{range:{min:e,max:r},start:[t],step:s}}_calc_from([e]){return Number.isInteger(this.model.start)&&Number.isInteger(this.model.end)&&Number.isInteger(this.model.step)?Math.round(e):e}}t.NumericalSliderView=l,l.__name__="NumericalSliderView";class n extends a.BaseNumericalSlider{constructor(e){super(e)}}t.NumericalSlider=n,n.__name__="NumericalSlider"}, +680: function _(e,t,r,a,i){var n;a();const o=e(1).__importDefault(e(248)),s=e(676),d=e(8);class c extends s.NumericalRangeSliderView{constructor(){super(...arguments),this.behaviour="drag",this.connected=[!1,!0,!1]}_formatter(e,t){return(0,d.isString)(t)?(0,o.default)(e,t):t.compute(e)}}r.DatetimeRangeSliderView=c,c.__name__="DatetimeRangeSliderView";class l extends s.NumericalRangeSlider{constructor(e){super(e)}}r.DatetimeRangeSlider=l,n=l,l.__name__="DatetimeRangeSlider",n.prototype.default_view=c,n.override({format:"%d %b %Y %H:%M:%S",step:36e5})}, +681: function _(e,r,t,a,i){var n;a();const o=e(1).__importStar(e(246)),s=e(676),c=e(8);class _ extends s.NumericalRangeSliderView{constructor(){super(...arguments),this.behaviour="drag",this.connected=[!1,!0,!1]}_formatter(e,r){return(0,c.isString)(r)?o.format(e,r):r.compute(e)}}t.RangeSliderView=_,_.__name__="RangeSliderView";class d extends s.NumericalRangeSlider{constructor(e){super(e)}}t.RangeSlider=d,n=d,d.__name__="RangeSlider",n.prototype.default_view=_,n.override({format:"0[.]00"})}, +682: function _(e,r,t,i,o){var a;i();const s=e(1).__importStar(e(246)),c=e(679),n=e(8);class _ extends c.NumericalSliderView{constructor(){super(...arguments),this.behaviour="tap",this.connected=[!0,!1]}_formatter(e,r){return(0,n.isString)(r)?s.format(e,r):r.compute(e)}}t.SliderView=_,_.__name__="SliderView";class d extends c.NumericalSlider{constructor(e){super(e)}}t.Slider=d,a=d,d.__name__="Slider",a.prototype.default_view=_,a.override({format:"0[.]00"})}, +}, 598, {"models/widgets/main":598,"models/widgets/index":599,"models/widgets/abstract_button":600,"models/widgets/control":601,"models/widgets/widget":707,"styles/buttons.css":603,"models/widgets/autocomplete_input":604,"models/widgets/text_input":605,"models/widgets/text_like_input":606,"models/widgets/input_widget":607,"styles/widgets/inputs.css":608,"styles/dropdown.css":609,"models/widgets/button":610,"models/widgets/checkbox_button_group":611,"models/widgets/toggle_button_group":612,"models/widgets/oriented_control":613,"models/widgets/checkbox_group":614,"models/widgets/toggle_input_group":615,"styles/widgets/checkbox.css":616,"models/widgets/checkbox":617,"models/widgets/toggle_input":618,"models/widgets/color_picker":619,"models/widgets/date_picker":620,"models/widgets/base_date_picker":621,"models/widgets/picker_base":622,"styles/widgets/flatpickr.css":631,"models/widgets/date_range_picker":632,"models/widgets/datetime_picker":633,"models/widgets/base_datetime_picker":634,"models/widgets/datetime_range_picker":635,"models/widgets/div":636,"models/widgets/markup":637,"styles/clearfix.css":638,"models/widgets/dropdown":639,"styles/caret.css":640,"models/widgets/file_input":641,"models/widgets/help_button":642,"models/widgets/multi_choice":643,"styles/widgets/choices.css":645,"models/widgets/multiselect":646,"models/widgets/multiple_date_picker":647,"models/widgets/multiple_datetime_picker":648,"models/widgets/numeric_input":649,"models/widgets/palette_select":650,"core/util/panes":651,"styles/panes.css":652,"styles/widgets/palette_select.css":653,"styles/widgets/palette_select_item.css":654,"styles/widgets/palette_select_pane.css":655,"models/widgets/paragraph":656,"models/widgets/password_input":657,"styles/widgets/password_input.css":658,"models/widgets/pretext":659,"models/widgets/radio_button_group":660,"models/widgets/radio_group":661,"models/widgets/select":662,"models/widgets/spinner":663,"models/widgets/switch":664,"styles/widgets/switch.css":665,"models/widgets/textarea_input":666,"models/widgets/time_picker":667,"models/widgets/toggle":668,"models/widgets/sliders/index":669,"models/widgets/sliders/categorical_slider":670,"models/widgets/sliders/abstract_slider":671,"styles/widgets/sliders.css":673,"styles/widgets/nouislider.css":674,"models/widgets/sliders/date_range_slider":675,"models/widgets/sliders/numerical_range_slider":676,"models/widgets/sliders/base_numerical_slider":677,"models/widgets/sliders/date_slider":678,"models/widgets/sliders/numerical_slider":679,"models/widgets/sliders/datetime_range_slider":680,"models/widgets/sliders/range_slider":681,"models/widgets/sliders/slider":682}, {});}); diff --git a/instock/web/static/js/gc.spread.excelio.min.js b/instock/web/static/js/gc.spread.excelio.min.js index a05844e35..3bc415019 100644 --- a/instock/web/static/js/gc.spread.excelio.min.js +++ b/instock/web/static/js/gc.spread.excelio.min.js @@ -1,6 +1,6 @@ /*! * - * SpreadJS ExcelIO Library 17.1.3 + * SpreadJS ExcelIO Library 17.1.7 * * Copyright(c) of respective holders. All rights reserved. * @@ -20,9 +20,9 @@ borderWidth:1,borderStyle:"thin",borderColor:"#999999"}},selectedItemWithNoDataS "HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":6,"Informal Roman":7,"Ink Free":6,IrisUPC:6,"Iskoola Pota":6,JasmineUPC:6,"Javanese Text":7,Jokerman:9,"Juice ITC":4,KaiTi:6,Kalinga:6,Kartika:6,"Khmer UI":6,KodchiangUPC:6,Kokila:6,"Kristen ITC":7,"Kunstler Script":4,"Lao UI":6,Latha:6,Leelawadee:6,"Leelawadee UI":6,"Leelawadee UI Semilight":7,"Levenim MT":6,LilyUPC:6,"Lucida Bright":7,"Lucida Calligraphy":9,"Lucida Console":8,"Lucida Fax":8,"Lucida Handwriting":9,"Lucida Sans":8,"Lucida Sans Typewriter":7,"Lucida Sans Unicode":9,"Magic R":8,Magneto:9,"Maiandra GD":8,"Malgun Gothic":7,"Malgun Gothic Semilight":8,Mangal:7,Marlett:13,"Matura MT Script Capitals":9,Meiryo:8,"Meiryo UI":8,"Microsoft GothicNeo":7,"Microsoft Himalaya":5,"Microsoft JhengHei":7,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":7,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":7,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":7,MingLiU:7,MingLiU_HKSCS:7,"MingLiU_HKSCS-ExtB":7,"MingLiU-ExtB":7,Miriam:7,"Miriam Fixed":7,Mistral:6,"Modern No. 20":6,"MoeumT R":8,"Mongolian Baiti":7,"Monotype Corsiva":6,MoolBoran:7,"MS Gothic":6,"MS Mincho":7,"MS Outlook":7,"MS PGothic":7,"MS PMincho":7,"MS Reference Sans Serif":9,"MS Reference Specialty":15,"MS UI Gothic":7,"MT Extra":13,"MV Boli":9,"Myanmar Text":7,Narkisim:7,"Neue Haas Grotesk Text Pro":7,"New Gulim":8,"News Gothic MT":7,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:7,"OCR A Extended":8,OCRB:8,"Old English Text MT":7,Onyx:5,"Palace Script MT":5,"Palatino Linotype":6,Papyrus:8,Parchment:4,Perpetua:6,"Perpetua Titling MT":8,"Plantagenet Cherokee":7,Playbill:5,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:6,"Pyunji R":7,Raavi:7,"Rage Italic":7,Ravie:12,Rockwell:7,"Rockwell Condensed":5,"Rockwell Extra Bold":8,"Rockwell Light":7,"Rockwell Nova":7,"Rockwell Nova Cond":7,"Rockwell Nova Cond Light":7,"Rockwell Nova Extra Bold":7,"Rockwell Nova Light":7,Rod:7,"Sakkal Majalla":7,"Sanskrit Text":7,"Script MT Bold":6,"Segoe MDL2 Assets":5,"Segoe Print":9,"Segoe Script":9,"Segoe UI":6,"Segoe UI Black":7,"Segoe UI Emoji":6,"Segoe UI Historic":6,"Segoe UI Light":6,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":6,Selawik:6,"Selawik Light":6,"Selawik Semibold":6,"Shonar Bangla":6,"Showcard Gothic":8,Shruti:6,"Simplified Arabic":6,"Simplified Arabic Fixed":6,"SimSun-ExtB":6,"Sitka Banner":6,"Sitka Display":6,"Sitka Heading":7,"Sitka Small":8,"Sitka Subheading":7,"Sitka Text":8,"Snap ITC":10,"Source Sans Pro":6,"Source Sans Pro Black":6,"Source Sans Pro ExtraLight":6,"Source Sans Pro Light":6,"Source Sans Pro SemiBold":6,Stencil:7,Sylfaen:6,Symbol:6,Tahoma:7,"Tempus Sans ITC":8,"TH SarabunPSK":6,"Times New Roman":6,"Traditional Arabic":6,"Trebuchet MS":6,Tunga:6,"Tw Cen MT":7,"Tw Cen MT Condensed":4,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":6,"UD Digi Kyokasho NK-B":6,"UD Digi Kyokasho NK-R":6,"UD Digi Kyokasho NP-B":6,"UD Digi Kyokasho NP-R":6,"UD Digi Kyokasho N-R":6,Univers:6,"Univers Condensed":6,"Univers Condensed Light":6,"Univers Light":6,"Urdu Typesetting":6,Utsaah:6,Vani:6,Verdana:8,"Verdana Pro":6,"Verdana Pro Black":6,"Verdana Pro Cond":6,"Verdana Pro Cond Black":6,"Verdana Pro Cond Light":6,"Verdana Pro Cond SemiBold":6,"Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":8,Vivaldi:5,"Vladimir Script":6,Vrinda:6,Webdings:12,"Wide Latin":15,Wingdings:16,"Wingdings 2":14,"Wingdings 3":11,"Yet R":6,"Yu Gothic":7,"Yu Gothic Light":6,"Yu Gothic Medium":7,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":7,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":7,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":6,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':6,"\u30e1\u30a4\u30ea\u30aa":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":6,"HG\u660e\u671dB":6,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":6},10:{"Gill Sans MT":7,Abadi:8,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:8,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":9,"Arial Narrow":6,"Arial Nova":7,"Arial Nova Cond":7,"Arial Nova Cond Light":6,"Arial Nova Light":7,"Arial Rounded MT Bold":8,"Baskerville Old Face":6,Batang:7,BatangChe:7,"Bauhaus 93":7,"Bell MT":7,Bembo:6,"Berlin Sans FB":8,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":9,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":5,"Book Antiqua":7,"Bookman Old Style":8,"Bookshelf Symbol 7":10,"Bradley Hand ITC":8,"Britannic Bold":8,Broadway:8,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":7,Calibri:7,"Calibri Light":7,"Californian FB":7,"Calisto MT":7,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":7,"Comic Sans MS":8,Consolas:7,Constantia:7,"Cooper Black":8,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:7,"Cordia New":5,CordiaUPC:5,"Courier New":8,"Curlz MT":7,Dante:6,DaunPenh:4,David:6,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:7,Dubai:7,"Dubai Light":7,"Dubai Medium":7,Ebrima:7,"Edwardian Script ITC":6,Elephant:10,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":8,"Eras Light ITC":7,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:8,"Expo M":11,FangSong:7,"Felix Titling":8,"Footlight MT Light":7,Forte:7,"Franklin Gothic Book":8,"Franklin Gothic Demi":8,"Franklin Gothic Demi Cond":7,"Franklin Gothic Heavy":8,"Franklin Gothic Medium":8,"Franklin Gothic Medium Cond":7,FrankRuehl:5,FreesiaUPC:6,"Freestyle Script":5,"French Script MT":5,Gabriola:5,Gadugi:7,Garamond:6,Gautami:8,Georgia:9,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":7,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":7,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":8,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":7,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":8,"Gill Sans Nova Cond XBd":7,"Gill Sans Nova Light":7,"Gill Sans Nova Ultra Bold":11,"Gill Sans Ultra Bold":11,"Gill Sans Ultra Bold Condensed":8,Gisha:7,"Gloucester MT Extra Condensed":5,"Goudy Old Style":7,"Goudy Stout":11,Grotesque:6,"Grotesque Light":6,Gulim:7,GulimChe:7,Gungsuh:6,GungsuhChe:7,"Hadassah Friedlaender":7,Haettenschweiler:6,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:7,HGGothicM:7,HGGyoshotai:7,HGKyokashotai:7,HGMaruGothicMPRO:10,HGMinchoB:8,HGMinchoE:8,HGPGothicE:8,HGPGothicM:9,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:8,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:8,HGSGothicE:7,HGSGothicM:8,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:8,HGSoeiKakugothicUB:8,HGSoeiKakupoptai:8,HGSoeiPresenceEB:8,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":8,"HYGraphic-Medium":8,"HYGungSo-Bold":8,"HYHeadLine-Medium":8,"HYMyeongJo-Extra":9,"HYPMokGak-Bold":9,"HYPost-Light":9,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":7,"Informal Roman":7,"Ink Free":7,IrisUPC:7,"Iskoola Pota":7,JasmineUPC:7,"Javanese Text":8,Jokerman:9,"Juice ITC":5,KaiTi:7,Kalinga:7,Kartika:7,"Khmer UI":7,KodchiangUPC:4,Kokila:7,"Kristen ITC":8,"Kunstler Script":5,"Lao UI":7,Latha:7,Leelawadee:7,"Leelawadee UI":7,"Leelawadee UI Semilight":7,"Levenim MT":7,LilyUPC:7,"Lucida Bright":8,"Lucida Calligraphy":10,"Lucida Console":9,"Lucida Fax":9,"Lucida Handwriting":10,"Lucida Sans":9,"Lucida Sans Typewriter":8,"Lucida Sans Unicode":9,"Magic R":8,Magneto:10,"Maiandra GD":9,"Malgun Gothic":8,"Malgun Gothic Semilight":8,Mangal:8,Marlett:14,"Matura MT Script Capitals":10,Meiryo:9,"Meiryo UI":9,"Microsoft GothicNeo":8,"Microsoft Himalaya":5,"Microsoft JhengHei":8,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":8,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":8,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":8,MingLiU:8,MingLiU_HKSCS:8,"MingLiU_HKSCS-ExtB":8,"MingLiU-ExtB":8,Miriam:8,"Miriam Fixed":8,Mistral:7,"Modern No. 20":7,"MoeumT R":8,"Mongolian Baiti":8,"Monotype Corsiva":7,MoolBoran:8,"MS Gothic":7,"MS Mincho":8,"MS Outlook":8,"MS PGothic":8,"MS PMincho":8,"MS Reference Sans Serif":9,"MS Reference Specialty":17,"MS UI Gothic":8,"MT Extra":14,"MV Boli":10,"Myanmar Text":7,Narkisim:8,"Neue Haas Grotesk Text Pro":8,"New Gulim":8,"News Gothic MT":8,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:8,"OCR A Extended":9,OCRB:9,"Old English Text MT":8,Onyx:6,"Palace Script MT":5,"Palatino Linotype":7,Papyrus:9,Parchment:4,Perpetua:6,"Perpetua Titling MT":9,"Plantagenet Cherokee":8,Playbill:6,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:8,"Pyunji R":7,Raavi:8,"Rage Italic":8,Ravie:13,Rockwell:7,"Rockwell Condensed":6,"Rockwell Extra Bold":9,"Rockwell Light":8,"Rockwell Nova":8,"Rockwell Nova Cond":8,"Rockwell Nova Cond Light":8,"Rockwell Nova Extra Bold":8,"Rockwell Nova Light":8,Rod:8,"Sakkal Majalla":8,"Sanskrit Text":8,"Script MT Bold":7,"Segoe MDL2 Assets":5,"Segoe Print":10,"Segoe Script":10,"Segoe UI":7,"Segoe UI Black":8,"Segoe UI Emoji":7,"Segoe UI Historic":7,"Segoe UI Light":7,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":7,Selawik:7,"Selawik Light":7,"Selawik Semibold":7,"Shonar Bangla":7,"Showcard Gothic":8,Shruti:7,"Simplified Arabic":7,"Simplified Arabic Fixed":7,"SimSun-ExtB":7,"Sitka Banner":7,"Sitka Display":7,"Sitka Heading":7,"Sitka Small":9,"Sitka Subheading":8,"Sitka Text":8,"Snap ITC":11,"Source Sans Pro":7,"Source Sans Pro Black":7,"Source Sans Pro ExtraLight":7,"Source Sans Pro Light":7,"Source Sans Pro SemiBold":7,Stencil:7,Sylfaen:7,Symbol:7,Tahoma:7,"Tempus Sans ITC":9,"TH SarabunPSK":7,"Times New Roman":6,"Traditional Arabic":7,"Trebuchet MS":7,Tunga:7,"Tw Cen MT":7,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":7,"UD Digi Kyokasho NK-B":7,"UD Digi Kyokasho NK-R":7,"UD Digi Kyokasho NP-B":7,"UD Digi Kyokasho NP-R":7,"UD Digi Kyokasho N-R":7,Univers:7,"Univers Condensed":7,"Univers Condensed Light":7,"Univers Light":7,"Urdu Typesetting":7,Utsaah:7,Vani:7,Verdana:8,"Verdana Pro":8,"Verdana Pro Black":7,"Verdana Pro Cond":7,"Verdana Pro Cond Black":7,"Verdana Pro Cond Light":7,"Verdana Pro Cond SemiBold":7,"Verdana Pro Light":7,"Verdana Pro SemiBold":7,Vijaya:7,"Viner Hand ITC":9,Vivaldi:6,"Vladimir Script":6,Vrinda:7,Webdings:13,"Wide Latin":16,Wingdings:17,"Wingdings 2":15,"Wingdings 3":12,"Yet R":7,"Yu Gothic":7,"Yu Gothic Light":7,"Yu Gothic Medium":7,"Yu Gothic UI":7,"Yu Gothic UI Light":7,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":7,"Yu Mincho Light":7,"\u4eff\u5b8b":7,"\u534e\u6587\u4e2d\u5b8b":8,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":8,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":7,"\u534e\u6587\u96b6\u4e66":6,"\u5b8b\u4f53":7,"\u5e7c\u5706":7,"\u5fae\u8f6f\u96c5\u9ed1":8,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":7,"\u65b9\u6b63\u59da\u4f53":7,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":7,"\u7b49\u7ebf":7,"\u7b49\u7ebf Light":7,"\u96b6\u4e66":7,"\u9ed1\u4f53":7,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":7,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':7,"\u30e1\u30a4\u30ea\u30aa":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":7,"HG\u660e\u671dB":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":7},11:{"Gill Sans MT":8,Abadi:9,"Abadi Extra Light":8,"Agency FB":6,Aharoni:6,Aldhabi:5,Algerian:9,"Ami R":6,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:8,"Arial Black":10,"Arial Narrow":7,"Arial Nova":8,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":8,"Arial Rounded MT Bold":9,"Baskerville Old Face":7,Batang:8,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:7,"Berlin Sans FB":9,"Berlin Sans FB Demi":9,"Bernard MT Condensed":7,"Blackadder ITC":6,"Bodoni MT":7,"Bodoni MT Black":10,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":5,"Book Antiqua":8,"Bookman Old Style":9,"Bookshelf Symbol 7":11,"Bradley Hand ITC":10,"Britannic Bold":9,Broadway:10,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":8,Calibri:7,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:8,"Cambria Math":8,Candara:8,Castellar:11,Centaur:7,Century:8,"Century Gothic":8,"Century Schoolbook":8,Chiller:7,"Colonna MT":8,"Comic Sans MS":9,Consolas:8,Constantia:8,"Cooper Black":9,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":11,Corbel:8,"Cordia New":5,CordiaUPC:5,"Courier New":9,"Curlz MT":8,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:8,Dotum:9,DotumChe:8,Dubai:8,"Dubai Light":8,"Dubai Medium":8,Ebrima:8,"Edwardian Script ITC":7,Elephant:11,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":9,"Eras Light ITC":8,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":13,FangSong:8,"Felix Titling":9,"Footlight MT Light":8,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:6,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":5,Gabriola:6,Gadugi:8,Garamond:7,Gautami:9,Georgia:9,"Georgia Pro":8,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":8,"Georgia Pro Light":8,"Georgia Pro Semibold":9,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":5,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":13,"Gill Sans Ultra Bold":13,"Gill Sans Ultra Bold Condensed":9,Gisha:8,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":12,Grotesque:7,"Grotesque Light":7,Gulim:8,GulimChe:8,Gungsuh:7,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:8,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:11,HGMinchoB:9,HGMinchoE:9,HGPGothicE:9,HGPGothicM:10,HGPGyoshotai:8,HGPKyokashotai:8,HGPMinchoB:8,HGPMinchoE:9,HGPSoeiKakugothicUB:10,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:9,HGSeikaishotaiPRO:9,HGSGothicE:8,HGSGothicM:9,HGSGyoshotai:7,HGSKyokashotai:7,HGSMinchoB:8,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:9,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:8,"High Tower Text":7,"HYGothic-Extra":9,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":10,"HYPMokGak-Bold":11,"HYPost-Light":10,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":9,Impact:8,"Imprint MT Shadow":8,"Informal Roman":8,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:8,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":9,"Kunstler Script":5,"Lao UI":8,Latha:8,Leelawadee:8,"Leelawadee UI":8,"Leelawadee UI Semilight":8,"Levenim MT":9,LilyUPC:8,"Lucida Bright":9,"Lucida Calligraphy":11,"Lucida Console":10,"Lucida Fax":10,"Lucida Handwriting":11,"Lucida Sans":10,"Lucida Sans Typewriter":9,"Lucida Sans Unicode":10,"Magic R":9,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":9,Mangal:9,Marlett:16,"Matura MT Script Capitals":11,Meiryo:9,"Meiryo UI":10,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":9,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":9,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":9,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":9,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":10,Mistral:8,"Modern No. 20":8,"MoeumT R":9,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:9,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":19,"MS UI Gothic":9,"MT Extra":16,"MV Boli":12,"Myanmar Text":9,Narkisim:7,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":5,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":9,Nyala:9,"OCR A Extended":10,OCRB:10,"Old English Text MT":9,Onyx:6,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":10,"Plantagenet Cherokee":9,Playbill:6,PMingLiU:8,"PMingLiU-ExtB":8,"Poor Richard":9,Pristina:9,"Pyunji R":8,Raavi:9,"Rage Italic":9,Ravie:15,Rockwell:8,"Rockwell Condensed":6,"Rockwell Extra Bold":10,"Rockwell Light":9,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":6,"Segoe Print":11,"Segoe Script":11,"Segoe UI":8,"Segoe UI Black":9,"Segoe UI Emoji":8,"Segoe UI Historic":8,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":8,"Segoe UI Symbol":8,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":8,"Sitka Small":10,"Sitka Subheading":9,"Sitka Text":9,"Snap ITC":13,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:8,"Tempus Sans ITC":10,"TH SarabunPSK":8,"Times New Roman":7,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":8,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":7,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:8,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":10,Vivaldi:6,"Vladimir Script":7,Vrinda:9,Webdings:15,"Wide Latin":19,Wingdings:20,"Wingdings 2":17,"Wingdings 3":13,"Yet R":8,"Yu Gothic":8,"Yu Gothic Light":8,"Yu Gothic Medium":8,"Yu Gothic UI":8,"Yu Gothic UI Light":8,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":8,"Yu Mincho":8,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":9,"\u534e\u6587\u4eff\u5b8b":7,"\u534e\u6587\u5b8b\u4f53":7,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":7,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":8,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":8,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":8,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":9,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},12:{"Gill Sans MT":8,Abadi:10,"Abadi Extra Light":9,"Agency FB":6,Aharoni:7,Aldhabi:5,Algerian:10,"Ami R":7,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:9,"Arial Black":11,"Arial Narrow":7,"Arial Nova":9,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":9,"Arial Rounded MT Bold":10,"Baskerville Old Face":8,Batang:9,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:8,"Berlin Sans FB":10,"Berlin Sans FB Demi":10,"Bernard MT Condensed":8,"Blackadder ITC":6,"Bodoni MT":8,"Bodoni MT Black":11,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":6,"Book Antiqua":8,"Bookman Old Style":10,"Bookshelf Symbol 7":12,"Bradley Hand ITC":10,"Britannic Bold":10,Broadway:10,"Browallia New":6,BrowalliaUPC:6,"Brush Script MT":8,Calibri:8,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:9,"Cambria Math":9,Candara:9,Castellar:12,Centaur:8,Century:9,"Century Gothic":9,"Century Schoolbook":9,Chiller:8,"Colonna MT":8,"Comic Sans MS":10,Consolas:9,Constantia:9,"Cooper Black":10,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":12,Corbel:8,"Cordia New":6,CordiaUPC:6,"Courier New":10,"Curlz MT":9,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:9,Dotum:8,DotumChe:8,Dubai:9,"Dubai Light":9,"Dubai Medium":9,Ebrima:9,"Edwardian Script ITC":8,Elephant:12,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":10,"Eras Light ITC":9,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":14,FangSong:8,"Felix Titling":9,"Footlight MT Light":9,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:7,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":6,Gabriola:6,Gadugi:9,Garamond:8,Gautami:10,Georgia:10,"Georgia Pro":9,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":9,"Georgia Pro Light":9,"Georgia Pro Semibold":10,Gigi:7,"Gill Sans MT Condensed":6,"Gill Sans MT Ext Condensed Bold":6,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":14,"Gill Sans Ultra Bold":14,"Gill Sans Ultra Bold Condensed":9,Gisha:9,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":13,Grotesque:8,"Grotesque Light":8,Gulim:9,GulimChe:8,Gungsuh:9,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:9,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:12,HGMinchoB:9,HGMinchoE:9,HGPGothicE:10,HGPGothicM:10,HGPGyoshotai:9,HGPKyokashotai:8,HGPMinchoB:9,HGPMinchoE:9,HGPSoeiKakugothicUB:11,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:10,HGSeikaishotaiPRO:10,HGSGothicE:9,HGSGothicM:9,HGSGyoshotai:8,HGSKyokashotai:7,HGSMinchoB:9,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:10,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:9,"High Tower Text":8,"HYGothic-Extra":10,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":11,"HYPMokGak-Bold":11,"HYPost-Light":11,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":10,Impact:9,"Imprint MT Shadow":8,"Informal Roman":9,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:9,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":10,"Kunstler Script":6,"Lao UI":8,Latha:8,Leelawadee:9,"Leelawadee UI":9,"Leelawadee UI Semilight":9,"Levenim MT":9,LilyUPC:7,"Lucida Bright":10,"Lucida Calligraphy":12,"Lucida Console":11,"Lucida Fax":11,"Lucida Handwriting":12,"Lucida Sans":11,"Lucida Sans Typewriter":10,"Lucida Sans Unicode":11,"Magic R":10,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":10,Mangal:9,Marlett:17,"Matura MT Script Capitals":12,Meiryo:11,"Meiryo UI":11,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":10,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":10,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":10,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":10,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":11,Mistral:8,"Modern No. 20":8,"MoeumT R":10,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:7,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":20,"MS UI Gothic":9,"MT Extra":17,"MV Boli":12,"Myanmar Text":9,Narkisim:8,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":6,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":10,Nyala:9,"OCR A Extended":11,OCRB:11,"Old English Text MT":9,Onyx:7,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":11,"Plantagenet Cherokee":9,Playbill:7,PMingLiU:9,"PMingLiU-ExtB":9,"Poor Richard":10,Pristina:9,"Pyunji R":9,Raavi:8,"Rage Italic":9,Ravie:16,Rockwell:9,"Rockwell Condensed":7,"Rockwell Extra Bold":11,"Rockwell Light":10,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":7,"Segoe Print":12,"Segoe Script":12,"Segoe UI":9,"Segoe UI Black":10,"Segoe UI Emoji":9,"Segoe UI Historic":9,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":9,"Segoe UI Symbol":9,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":9,"Sitka Small":11,"Sitka Subheading":9,"Sitka Text":10,"Snap ITC":14,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:9,"Tempus Sans ITC":11,"TH SarabunPSK":8,"Times New Roman":8,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":9,"Tw Cen MT Condensed":6,"Tw Cen MT Condensed Extra Bold":8,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:6,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":11,Vivaldi:7,"Vladimir Script":7,Vrinda:9,Webdings:16,"Wide Latin":20,Wingdings:22,"Wingdings 2":18,"Wingdings 3":14,"Yet R":9,"Yu Gothic":9,"Yu Gothic Light":9,"Yu Gothic Medium":9,"Yu Gothic UI":9,"Yu Gothic UI Light":9,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":9,"Yu Mincho":9,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":10,"\u534e\u6587\u4eff\u5b8b":8,"\u534e\u6587\u5b8b\u4f53":8,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":8,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":9,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":9,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":9,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},14:{"Gill Sans MT":10,Abadi:11,"Abadi Extra Light":11,"Agency FB":8,Aharoni:8,Aldhabi:6,Algerian:11,"Ami R":8,"Angsana New":6,AngsanaUPC:6,Aparajita:8,"Arabic Typesetting":6,Arial:11,"Arial Black":13,"Arial Narrow":9,"Arial Nova":11,"Arial Nova Cond":10,"Arial Nova Cond Light":9,"Arial Nova Light":11,"Arial Rounded MT Bold":11,"Baskerville Old Face":9,Batang:10,BatangChe:10,"Bauhaus 93":11,"Bell MT":10,Bembo:9,"Berlin Sans FB":11,"Berlin Sans FB Demi":12,"Bernard MT Condensed":9,"Blackadder ITC":8,"Bodoni MT":9,"Bodoni MT Black":12,"Bodoni MT Condensed":6,"Bodoni MT Poster Compressed":6,"Book Antiqua":10,"Bookman Old Style":12,"Bookshelf Symbol 7":14,"Bradley Hand ITC":12,"Britannic Bold":12,Broadway:12,"Browallia New":7,BrowalliaUPC:7,"Brush Script MT":10,Calibri:10,"Calibri Light":10,"Californian FB":11,"Calisto MT":10,Cambria:11,"Cambria Math":11,Candara:10,Castellar:14,Centaur:9,Century:11,"Century Gothic":11,"Century Schoolbook":11,Chiller:9,"Colonna MT":10,"Comic Sans MS":12,Consolas:10,Constantia:10,"Cooper Black":11,"Copperplate Gothic Bold":14,"Copperplate Gothic Light":14,Corbel:10,"Cordia New":7,CordiaUPC:7,"Courier New":11,"Curlz MT":10,Dante:9,DaunPenh:6,David:8,DilleniaUPC:6,DokChampa:11,Dotum:10,DotumChe:10,Dubai:10,"Dubai Light":10,"Dubai Medium":10,Ebrima:10,"Edwardian Script ITC":9,Elephant:14,"Engravers MT":12,"Eras Bold ITC":12,"Eras Demi ITC":12,"Eras Light ITC":10,"Eras Medium ITC":11,EucrosiaUPC:8,Euphemia:11,"Expo M":16,FangSong:10,"Felix Titling":11,"Footlight MT Light":11,Forte:10,"Franklin Gothic Book":11,"Franklin Gothic Demi":11,"Franklin Gothic Demi Cond":10,"Franklin Gothic Heavy":11,"Franklin Gothic Medium":11,"Franklin Gothic Medium Cond":10,FrankRuehl:8,FreesiaUPC:8,"Freestyle Script":7,"French Script MT":7,Gabriola:8,Gadugi:10,Garamond:9,Gautami:11,Georgia:12,"Georgia Pro":11,"Georgia Pro Black":13,"Georgia Pro Cond":10,"Georgia Pro Cond Black":12,"Georgia Pro Cond Light":10,"Georgia Pro Cond Semibold":11,"Georgia Pro Light":10,"Georgia Pro Semibold":12,Gigi:10,"Gill Sans MT Condensed":7,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":10,"Gill Sans Nova Cond":6,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":11,"Gill Sans Nova Cond XBd":10,"Gill Sans Nova Light":10,"Gill Sans Nova Ultra Bold":16,"Gill Sans Ultra Bold":16,"Gill Sans Ultra Bold Condensed":11,Gisha:10,"Gloucester MT Extra Condensed":7,"Goudy Old Style":10,"Goudy Stout":16,Grotesque:9,"Grotesque Light":9,Gulim:10,GulimChe:10,Gungsuh:10,GungsuhChe:10,"Hadassah Friedlaender":11,Haettenschweiler:8,"Harlow Solid Italic":9,Harrington:11,"Headline R":14,HGGothicE:10,HGGothicM:10,HGGyoshotai:10,HGKyokashotai:10,HGMaruGothicMPRO:14,HGMinchoB:11,HGMinchoE:11,HGPGothicE:11,HGPGothicM:12,HGPGyoshotai:10,HGPKyokashotai:10,HGPMinchoB:10,HGPMinchoE:11,HGPSoeiKakugothicUB:13,HGPSoeiKakupoptai:13,HGPSoeiPresenceEB:12,HGSeikaishotaiPRO:11,HGSGothicE:10,HGSGothicM:11,HGSGyoshotai:9,HGSKyokashotai:9,HGSMinchoB:10,HGSMinchoE:11,HGSoeiKakugothicUB:11,HGSoeiKakupoptai:11,HGSoeiPresenceEB:11,HGSSoeiKakugothicUB:12,HGSSoeiKakupoptai:12,HGSSoeiPresenceEB:11,"High Tower Text":9,"HYGothic-Extra":12,"HYGothic-Medium":11,"HYGraphic-Medium":11,"HYGungSo-Bold":11,"HYHeadLine-Medium":11,"HYMyeongJo-Extra":13,"HYPMokGak-Bold":13,"HYPost-Light":13,"HYPost-Medium":13,"HYShortSamul-Medium":7,"HYSinMyeongJo-Medium":12,Impact:10,"Imprint MT Shadow":10,"Informal Roman":10,"Ink Free":10,IrisUPC:10,"Iskoola Pota":10,JasmineUPC:10,"Javanese Text":11,Jokerman:14,"Juice ITC":7,KaiTi:10,Kalinga:11,Kartika:11,"Khmer UI":10,KodchiangUPC:7,Kokila:10,"Kristen ITC":11, "Kunstler Script":7,"Lao UI":10,Latha:10,Leelawadee:10,"Leelawadee UI":10,"Leelawadee UI Semilight":10,"Levenim MT":11,LilyUPC:8,"Lucida Bright":12,"Lucida Calligraphy":14,"Lucida Console":12,"Lucida Fax":13,"Lucida Handwriting":14,"Lucida Sans":13,"Lucida Sans Typewriter":11,"Lucida Sans Unicode":13,"Magic R":12,Magneto:15,"Maiandra GD":12,"Malgun Gothic":11,"Malgun Gothic Semilight":12,Mangal:11,Marlett:20,"Matura MT Script Capitals":13,Meiryo:13,"Meiryo UI":13,"Microsoft GothicNeo":11,"Microsoft Himalaya":7,"Microsoft JhengHei":11,"Microsoft JhengHei Light":12,"Microsoft JhengHei UI":11,"Microsoft JhengHei UI Light":12,"Microsoft New Tai Lue":11,"Microsoft PhagsPa":11,"Microsoft Sans Serif":11,"Microsoft Tai Le":11,"Microsoft Uighur":7,"Microsoft YaHei Light":12,"Microsoft YaHei UI":12,"Microsoft YaHei UI Light":12,"Microsoft Yi Baiti":11,MingLiU:11,MingLiU_HKSCS:11,"MingLiU_HKSCS-ExtB":11,"MingLiU-ExtB":11,Miriam:10,"Miriam Fixed":12,Mistral:10,"Modern No. 20":10,"MoeumT R":11,"Mongolian Baiti":11,"Monotype Corsiva":9,MoolBoran:8,"MS Gothic":10,"MS Mincho":11,"MS Outlook":11,"MS PGothic":11,"MS PMincho":11,"MS Reference Sans Serif":13,"MS Reference Specialty":24,"MS UI Gothic":11,"MT Extra":20,"MV Boli":14,"Myanmar Text":11,Narkisim:9,"Neue Haas Grotesk Text Pro":11,"New Gulim":12,"News Gothic MT":12,"Niagara Engraved":7,"Niagara Solid":7,"Nirmala UI":11,"Nirmala UI Semilight":11,Nyala:11,"OCR A Extended":12,OCRB:12,"Old English Text MT":11,Onyx:7,"Palace Script MT":7,"Palatino Linotype":10,Papyrus:12,Parchment:5,Perpetua:9,"Perpetua Titling MT":13,"Plantagenet Cherokee":11,Playbill:8,PMingLiU:10,"PMingLiU-ExtB":10,"Poor Richard":11,Pristina:10,"Pyunji R":10,Raavi:10,"Rage Italic":11,Ravie:19,Rockwell:10,"Rockwell Condensed":8,"Rockwell Extra Bold":13,"Rockwell Light":11,"Rockwell Nova":11,"Rockwell Nova Cond":11,"Rockwell Nova Cond Light":11,"Rockwell Nova Extra Bold":11,"Rockwell Nova Light":11,Rod:11,"Sakkal Majalla":11,"Sanskrit Text":12,"Script MT Bold":10,"Segoe MDL2 Assets":8,"Segoe Print":14,"Segoe Script":14,"Segoe UI":10,"Segoe UI Black":12,"Segoe UI Emoji":10,"Segoe UI Historic":10,"Segoe UI Light":10,"Segoe UI Semibold":11,"Segoe UI Semilight":10,"Segoe UI Symbol":10,Selawik:10,"Selawik Light":10,"Selawik Semibold":10,"Shonar Bangla":10,"Showcard Gothic":11,Shruti:11,"Simplified Arabic":10,"Simplified Arabic Fixed":11,"SimSun-ExtB":10,"Sitka Banner":10,"Sitka Display":10,"Sitka Heading":11,"Sitka Small":13,"Sitka Subheading":11,"Sitka Text":12,"Snap ITC":16,"Source Sans Pro":9,"Source Sans Pro Black":10,"Source Sans Pro ExtraLight":9,"Source Sans Pro Light":10,"Source Sans Pro SemiBold":10,Stencil:11,Sylfaen:10,Symbol:10,Tahoma:10,"Tempus Sans ITC":13,"TH SarabunPSK":7,"Times New Roman":10,"Traditional Arabic":10,"Trebuchet MS":10,Tunga:10,"Tw Cen MT":10,"Tw Cen MT Condensed":7,"Tw Cen MT Condensed Extra Bold":9,"UD Digi Kyokasho N-B":10,"UD Digi Kyokasho NK-B":10,"UD Digi Kyokasho NK-R":10,"UD Digi Kyokasho NP-B":10,"UD Digi Kyokasho NP-R":10,"UD Digi Kyokasho N-R":10,Univers:10,"Univers Condensed":10,"Univers Condensed Light":8,"Univers Light":10,"Urdu Typesetting":10,Utsaah:8,Vani:11,Verdana:12,"Verdana Pro":12,"Verdana Pro Black":10,"Verdana Pro Cond":10,"Verdana Pro Cond Black":10,"Verdana Pro Cond Light":10,"Verdana Pro Cond SemiBold":10,"Verdana Pro Light":10,"Verdana Pro SemiBold":10,Vijaya:10,"Viner Hand ITC":13,Vivaldi:8,"Vladimir Script":9,Vrinda:11,Webdings:19,"Wide Latin":24,Wingdings:26,"Wingdings 2":22,"Wingdings 3":17,"Yet R":10,"Yu Gothic":11,"Yu Gothic Light":10,"Yu Gothic Medium":11,"Yu Gothic UI":10,"Yu Gothic UI Light":10,"Yu Gothic UI Semibold":11,"Yu Gothic UI Semilight":10,"Yu Mincho":10,"Yu Mincho Demibold":10,"Yu Mincho Light":10,"\u4eff\u5b8b":10,"\u534e\u6587\u4e2d\u5b8b":12,"\u534e\u6587\u4eff\u5b8b":9,"\u534e\u6587\u5b8b\u4f53":9,"\u534e\u6587\u5f69\u4e91":11,"\u534e\u6587\u65b0\u9b4f":11,"\u534e\u6587\u6977\u4f53":9,"\u534e\u6587\u7425\u73c0":11,"\u534e\u6587\u7ec6\u9ed1":11,"\u534e\u6587\u884c\u6977":10,"\u534e\u6587\u96b6\u4e66":8,"\u5b8b\u4f53":10,"\u5e7c\u5706":10,"\u5fae\u8f6f\u96c5\u9ed1":11,"\u5fae\u8f6f\u96c5\u9ed1 Light":11,"\u65b0\u5b8b\u4f53":10,"\u65b9\u6b63\u59da\u4f53":10,"\u65b9\u6b63\u8212\u4f53":10,"\u6977\u4f53":10,"\u7b49\u7ebf":10,"\u7b49\u7ebf Light":10,"\u96b6\u4e66":10,"\u9ed1\u4f53":10,"\u6e38\u30b4\u30b7\u30c3\u30af":11,"\uff2d\uff33 \uff30\u660e\u671d":10,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':10,"\u30e1\u30a4\u30ea\u30aa":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":10,"HG\u660e\u671dB":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":10},16:{"Gill Sans MT":11,Abadi:13,"Abadi Extra Light":12,"Agency FB":9,Aharoni:9,Aldhabi:7,Algerian:13,"Ami R":9,"Angsana New":7,AngsanaUPC:7,Aparajita:8,"Arabic Typesetting":7,Arial:12,"Arial Black":14,"Arial Narrow":10,"Arial Nova":12,"Arial Nova Cond":11,"Arial Nova Cond Light":9,"Arial Nova Light":12,"Arial Rounded MT Bold":12,"Baskerville Old Face":10,Batang:10,BatangChe:11,"Bauhaus 93":12,"Bell MT":11,Bembo:10,"Berlin Sans FB":13,"Berlin Sans FB Demi":13,"Bernard MT Condensed":10,"Blackadder ITC":8,"Bodoni MT":10,"Bodoni MT Black":14,"Bodoni MT Condensed":7,"Bodoni MT Poster Compressed":7,"Book Antiqua":11,"Bookman Old Style":13,"Bookshelf Symbol 7":16,"Bradley Hand ITC":14,"Britannic Bold":13,Broadway:14,"Browallia New":8,BrowalliaUPC:8,"Brush Script MT":11,Calibri:11,"Calibri Light":11,"Californian FB":12,"Calisto MT":11,Cambria:12,"Cambria Math":12,Candara:12,Castellar:15,Centaur:10,Century:12,"Century Gothic":12,"Century Schoolbook":12,Chiller:10,"Colonna MT":11,"Comic Sans MS":13,Consolas:12,Constantia:11,"Cooper Black":13,"Copperplate Gothic Bold":15,"Copperplate Gothic Light":15,Corbel:11,"Cordia New":8,CordiaUPC:8,"Courier New":13,"Curlz MT":11,Dante:9,DaunPenh:7,David:9,DilleniaUPC:7,DokChampa:12,Dotum:11,DotumChe:11,Dubai:11,"Dubai Light":11,"Dubai Medium":11,Ebrima:11,"Edwardian Script ITC":10,Elephant:16,"Engravers MT":14,"Eras Bold ITC":14,"Eras Demi ITC":13,"Eras Light ITC":11,"Eras Medium ITC":12,EucrosiaUPC:9,Euphemia:12,"Expo M":18,FangSong:11,"Felix Titling":12,"Footlight MT Light":12,Forte:11,"Franklin Gothic Book":12,"Franklin Gothic Demi":12,"Franklin Gothic Demi Cond":11,"Franklin Gothic Heavy":12,"Franklin Gothic Medium":12,"Franklin Gothic Medium Cond":11,FrankRuehl:9,FreesiaUPC:9,"Freestyle Script":8,"French Script MT":8,Gabriola:8,Gadugi:11,Garamond:10,Gautami:13,Georgia:13,"Georgia Pro":12,"Georgia Pro Black":15,"Georgia Pro Cond":11,"Georgia Pro Cond Black":13,"Georgia Pro Cond Light":11,"Georgia Pro Cond Semibold":12,"Georgia Pro Light":12,"Georgia Pro Semibold":13,Gigi:12,"Gill Sans MT Condensed":8,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":11,"Gill Sans Nova Cond":7,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":12,"Gill Sans Nova Cond XBd":11,"Gill Sans Nova Light":11,"Gill Sans Nova Ultra Bold":18,"Gill Sans Ultra Bold":18,"Gill Sans Ultra Bold Condensed":12,Gisha:11,"Gloucester MT Extra Condensed":8,"Goudy Old Style":11,"Goudy Stout":17,Grotesque:10,"Grotesque Light":10,Gulim:11,GulimChe:11,Gungsuh:11,GungsuhChe:11,"Hadassah Friedlaender":12,Haettenschweiler:9,"Harlow Solid Italic":10,Harrington:12,"Headline R":15,HGGothicE:11,HGGothicM:11,HGGyoshotai:11,HGKyokashotai:11,HGMaruGothicMPRO:16,HGMinchoB:12,HGMinchoE:12,HGPGothicE:12,HGPGothicM:13,HGPGyoshotai:11,HGPKyokashotai:11,HGPMinchoB:11,HGPMinchoE:12,HGPSoeiKakugothicUB:14,HGPSoeiKakupoptai:15,HGPSoeiPresenceEB:13,HGSeikaishotaiPRO:12,HGSGothicE:11,HGSGothicM:12,HGSGyoshotai:10,HGSKyokashotai:10,HGSMinchoB:11,HGSMinchoE:12,HGSoeiKakugothicUB:12,HGSoeiKakupoptai:12,HGSoeiPresenceEB:12,HGSSoeiKakugothicUB:13,HGSSoeiKakupoptai:14,HGSSoeiPresenceEB:12,"High Tower Text":10,"HYGothic-Extra":13,"HYGothic-Medium":12,"HYGraphic-Medium":12,"HYGungSo-Bold":12,"HYHeadLine-Medium":12,"HYMyeongJo-Extra":14,"HYPMokGak-Bold":15,"HYPost-Light":14,"HYPost-Medium":15,"HYShortSamul-Medium":8,"HYSinMyeongJo-Medium":13,Impact:11,"Imprint MT Shadow":11,"Informal Roman":11,"Ink Free":11,IrisUPC:11,"Iskoola Pota":11,JasmineUPC:10,"Javanese Text":12,Jokerman:15,"Juice ITC":8,KaiTi:11,Kalinga:12,Kartika:12,"Khmer UI":11,KodchiangUPC:7,Kokila:8,"Kristen ITC":13,"Kunstler Script":7,"Lao UI":11,Latha:11,Leelawadee:11,"Leelawadee UI":11,"Leelawadee UI Semilight":12,"Levenim MT":12,LilyUPC:9,"Lucida Bright":13,"Lucida Calligraphy":15,"Lucida Console":14,"Lucida Fax":14,"Lucida Handwriting":15,"Lucida Sans":14,"Lucida Sans Typewriter":13,"Lucida Sans Unicode":14,"Magic R":13,Magneto:16,"Maiandra GD":13,"Malgun Gothic":12,"Malgun Gothic Semilight":13,Mangal:12,Marlett:22,"Matura MT Script Capitals":15,Meiryo:14,"Meiryo UI":14,"Microsoft GothicNeo":12,"Microsoft Himalaya":8,"Microsoft JhengHei":13,"Microsoft JhengHei Light":13,"Microsoft JhengHei UI":13,"Microsoft JhengHei UI Light":13,"Microsoft New Tai Lue":12,"Microsoft PhagsPa":12,"Microsoft Sans Serif":13,"Microsoft Tai Le":12,"Microsoft Uighur":8,"Microsoft YaHei Light":13,"Microsoft YaHei UI":13,"Microsoft YaHei UI Light":13,"Microsoft Yi Baiti":12,MingLiU:12,MingLiU_HKSCS:12,"MingLiU_HKSCS-ExtB":12,"MingLiU-ExtB":12,Miriam:11,"Miriam Fixed":14,Mistral:10,"Modern No. 20":11,"MoeumT R":13,"Mongolian Baiti":12,"Monotype Corsiva":10,MoolBoran:8,"MS Gothic":11,"MS Mincho":12,"MS Outlook":12,"MS PGothic":12,"MS PMincho":12,"MS Reference Sans Serif":14,"MS Reference Specialty":26,"MS UI Gothic":12,"MT Extra":22,"MV Boli":16,"Myanmar Text":12,Narkisim:10,"Neue Haas Grotesk Text Pro":12,"New Gulim":13,"News Gothic MT":14,"Niagara Engraved":8,"Niagara Solid":8,"Nirmala UI":12,"Nirmala UI Semilight":13,Nyala:12,"OCR A Extended":14,OCRB:14,"Old English Text MT":12,Onyx:8,"Palace Script MT":8,"Palatino Linotype":11,Papyrus:14,Parchment:5,Perpetua:10,"Perpetua Titling MT":14,"Plantagenet Cherokee":12,Playbill:8,PMingLiU:11,"PMingLiU-ExtB":11,"Poor Richard":13,Pristina:11,"Pyunji R":11,Raavi:11,"Rage Italic":12,Ravie:21,Rockwell:11,"Rockwell Condensed":9,"Rockwell Extra Bold":14,"Rockwell Light":12,"Rockwell Nova":12,"Rockwell Nova Cond":12,"Rockwell Nova Cond Light":12,"Rockwell Nova Extra Bold":12,"Rockwell Nova Light":12,Rod:12,"Sakkal Majalla":12,"Sanskrit Text":13,"Script MT Bold":11,"Segoe MDL2 Assets":8,"Segoe Print":15,"Segoe Script":15,"Segoe UI":11,"Segoe UI Black":13,"Segoe UI Emoji":11,"Segoe UI Historic":11,"Segoe UI Light":11,"Segoe UI Semibold":12,"Segoe UI Semilight":11,"Segoe UI Symbol":11,Selawik:11,"Selawik Light":11,"Selawik Semibold":12,"Shonar Bangla":11,"Showcard Gothic":12,Shruti:13,"Simplified Arabic":11,"Simplified Arabic Fixed":13,"SimSun-ExtB":11,"Sitka Banner":11,"Sitka Display":11,"Sitka Heading":12,"Sitka Small":14,"Sitka Subheading":12,"Sitka Text":13,"Snap ITC":18,"Source Sans Pro":10,"Source Sans Pro Black":11,"Source Sans Pro ExtraLight":10,"Source Sans Pro Light":11,"Source Sans Pro SemiBold":11,Stencil:12,Sylfaen:11,Symbol:11,Tahoma:11,"Tempus Sans ITC":14,"TH SarabunPSK":8,"Times New Roman":11,"Traditional Arabic":10,"Trebuchet MS":11,Tunga:11,"Tw Cen MT":12,"Tw Cen MT Condensed":8,"Tw Cen MT Condensed Extra Bold":10,"UD Digi Kyokasho N-B":11,"UD Digi Kyokasho NK-B":11,"UD Digi Kyokasho NK-R":11,"UD Digi Kyokasho NP-B":11,"UD Digi Kyokasho NP-R":11,"UD Digi Kyokasho N-R":11,Univers:11,"Univers Condensed":11,"Univers Condensed Light":9,"Univers Light":11,"Urdu Typesetting":11,Utsaah:8,Vani:13,Verdana:13,"Verdana Pro":13,"Verdana Pro Black":11,"Verdana Pro Cond":11,"Verdana Pro Cond Black":11,"Verdana Pro Cond Light":11,"Verdana Pro Cond SemiBold":11,"Verdana Pro Light":11,"Verdana Pro SemiBold":11,Vijaya:11,"Viner Hand ITC":14,Vivaldi:9,"Vladimir Script":10,Vrinda:12,Webdings:21,"Wide Latin":26,Wingdings:28,"Wingdings 2":24,"Wingdings 3":19,"Yet R":11,"Yu Gothic":12,"Yu Gothic Light":11,"Yu Gothic Medium":12,"Yu Gothic UI":11,"Yu Gothic UI Light":11,"Yu Gothic UI Semibold":12,"Yu Gothic UI Semilight":12,"Yu Mincho":11,"Yu Mincho Demibold":11,"Yu Mincho Light":11,"\u4eff\u5b8b":11,"\u534e\u6587\u4e2d\u5b8b":13,"\u534e\u6587\u4eff\u5b8b":10,"\u534e\u6587\u5b8b\u4f53":10,"\u534e\u6587\u5f69\u4e91":12,"\u534e\u6587\u65b0\u9b4f":12,"\u534e\u6587\u6977\u4f53":10,"\u534e\u6587\u7425\u73c0":12,"\u534e\u6587\u7ec6\u9ed1":12,"\u534e\u6587\u884c\u6977":11,"\u534e\u6587\u96b6\u4e66":9,"\u5b8b\u4f53":11,"\u5e7c\u5706":11,"\u5fae\u8f6f\u96c5\u9ed1":12,"\u5fae\u8f6f\u96c5\u9ed1 Light":12,"\u65b0\u5b8b\u4f53":11,"\u65b9\u6b63\u59da\u4f53":11,"\u65b9\u6b63\u8212\u4f53":11,"\u6977\u4f53":11,"\u7b49\u7ebf":11,"\u7b49\u7ebf Light":11,"\u96b6\u4e66":11,"\u9ed1\u4f53":11,"\u6e38\u30b4\u30b7\u30c3\u30af":12,"\uff2d\uff33 \uff30\u660e\u671d":11,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':11,"\u30e1\u30a4\u30ea\u30aa":13,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":11,"HG\u660e\u671dB":11,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":11},18:{"Gill Sans MT":12,Abadi:15,"Abadi Extra Light":13,"Agency FB":10,Aharoni:10,Aldhabi:8,Algerian:14,"Ami R":10,"Angsana New":8,AngsanaUPC:8,Aparajita:10,"Arabic Typesetting":8,Arial:13,"Arial Black":16,"Arial Narrow":11,"Arial Nova":13,"Arial Nova Cond":12,"Arial Nova Cond Light":11,"Arial Nova Light":13,"Arial Rounded MT Bold":14,"Baskerville Old Face":12,Batang:12,BatangChe:12,"Bauhaus 93":14,"Bell MT":12,Bembo:12,"Berlin Sans FB":14,"Berlin Sans FB Demi":15,"Bernard MT Condensed":12,"Blackadder ITC":9,"Bodoni MT":12,"Bodoni MT Black":16,"Bodoni MT Condensed":8,"Bodoni MT Poster Compressed":8,"Book Antiqua":12,"Bookman Old Style":15,"Bookshelf Symbol 7":18,"Bradley Hand ITC":15,"Britannic Bold":15,Broadway:16,"Browallia New":9,BrowalliaUPC:9,"Brush Script MT":12,Calibri:12,"Calibri Light":12,"Californian FB":13,"Calisto MT":12,Cambria:13,"Cambria Math":13,Candara:13,Castellar:17,Centaur:12,Century:13,"Century Gothic":13,"Century Schoolbook":13,Chiller:11,"Colonna MT":12,"Comic Sans MS":15,Consolas:13,Constantia:13,"Cooper Black":14,"Copperplate Gothic Bold":17,"Copperplate Gothic Light":17,Corbel:13,"Cordia New":9,CordiaUPC:9,"Courier New":14,"Curlz MT":13,Dante:11,DaunPenh:8,David:11,DilleniaUPC:7,DokChampa:13,Dotum:13,DotumChe:12,Dubai:13,"Dubai Light":13,"Dubai Medium":13,Ebrima:13,"Edwardian Script ITC":11,Elephant:18,"Engravers MT":16,"Eras Bold ITC":16,"Eras Demi ITC":15,"Eras Light ITC":13,"Eras Medium ITC":14,EucrosiaUPC:10,Euphemia:14,"Expo M":21,FangSong:12,"Felix Titling":14,"Footlight MT Light":13,Forte:13,"Franklin Gothic Book":14,"Franklin Gothic Demi":14,"Franklin Gothic Demi Cond":12,"Franklin Gothic Heavy":14,"Franklin Gothic Medium":14,"Franklin Gothic Medium Cond":12,FrankRuehl:10,FreesiaUPC:11,"Freestyle Script":9,"French Script MT":9,Gabriola:10,Gadugi:13,Garamond:11,Gautami:14,Georgia:15,"Georgia Pro":14,"Georgia Pro Black":17,"Georgia Pro Cond":13,"Georgia Pro Cond Black":15,"Georgia Pro Cond Light":12,"Georgia Pro Cond Semibold":13,"Georgia Pro Light":13,"Georgia Pro Semibold":15,Gigi:12,"Gill Sans MT Condensed":9,"Gill Sans MT Ext Condensed Bold":8,"Gill Sans Nova":12,"Gill Sans Nova Cond":8,"Gill Sans Nova Cond Lt":7,"Gill Sans Nova Cond Ultra Bold":14,"Gill Sans Nova Cond XBd":13,"Gill Sans Nova Light":12,"Gill Sans Nova Ultra Bold":20,"Gill Sans Ultra Bold":21,"Gill Sans Ultra Bold Condensed":14,Gisha:13,"Gloucester MT Extra Condensed":9,"Goudy Old Style":12,"Goudy Stout":20,Grotesque:12,"Grotesque Light":12,Gulim:13,GulimChe:12,Gungsuh:13,GungsuhChe:12,"Hadassah Friedlaender":14,Haettenschweiler:11,"Harlow Solid Italic":11,Harrington:13,"Headline R":17,HGGothicE:12,HGGothicM:12,HGGyoshotai:12,HGKyokashotai:12,HGMaruGothicMPRO:18,HGMinchoB:13,HGMinchoE:13,HGPGothicE:14,HGPGothicM:15,HGPGyoshotai:12,HGPKyokashotai:12,HGPMinchoB:12,HGPMinchoE:13,HGPSoeiKakugothicUB:16,HGPSoeiKakupoptai:17,HGPSoeiPresenceEB:14,HGSeikaishotaiPRO:14,HGSGothicE:13,HGSGothicM:14,HGSGyoshotai:11,HGSKyokashotai:11,HGSMinchoB:12,HGSMinchoE:13,HGSoeiKakugothicUB:13,HGSoeiKakupoptai:13,HGSoeiPresenceEB:13,HGSSoeiKakugothicUB:15,HGSSoeiKakupoptai:16,HGSSoeiPresenceEB:13,"High Tower Text":12,"HYGothic-Extra":15,"HYGothic-Medium":14,"HYGraphic-Medium":14,"HYGungSo-Bold":14,"HYHeadLine-Medium":14,"HYMyeongJo-Extra":16,"HYPMokGak-Bold":17,"HYPost-Light":16,"HYPost-Medium":17,"HYShortSamul-Medium":9,"HYSinMyeongJo-Medium":15,Impact:13,"Imprint MT Shadow":12,"Informal Roman":13,"Ink Free":12,IrisUPC:12,"Iskoola Pota":12,JasmineUPC:11,"Javanese Text":14,Jokerman:17,"Juice ITC":8,KaiTi:12,Kalinga:13,Kartika:14,"Khmer UI":13,KodchiangUPC:8,Kokila:9,"Kristen ITC":14,"Kunstler Script":8,"Lao UI":13,Latha:12,Leelawadee:13,"Leelawadee UI":13,"Leelawadee UI Semilight":13,"Levenim MT":14,LilyUPC:11,"Lucida Bright":15,"Lucida Calligraphy":17,"Lucida Console":15,"Lucida Fax":16,"Lucida Handwriting":17,"Lucida Sans":16,"Lucida Sans Typewriter":14,"Lucida Sans Unicode":16,"Magic R":14,Magneto:19,"Maiandra GD":15,"Malgun Gothic":14,"Malgun Gothic Semilight":14,Mangal:14,Marlett:25,"Matura MT Script Capitals":17,Meiryo:16,"Meiryo UI":16,"Microsoft GothicNeo":13,"Microsoft Himalaya":9,"Microsoft JhengHei":14,"Microsoft JhengHei Light":15,"Microsoft JhengHei UI":14,"Microsoft JhengHei UI Light":15,"Microsoft New Tai Lue":14,"Microsoft PhagsPa":14,"Microsoft Sans Serif":14,"Microsoft Tai Le":14,"Microsoft Uighur":9,"Microsoft YaHei Light":15,"Microsoft YaHei UI":15,"Microsoft YaHei UI Light":15,"Microsoft Yi Baiti":13,MingLiU:13,MingLiU_HKSCS:13,"MingLiU_HKSCS-ExtB":13,"MingLiU-ExtB":13,Miriam:12,"Miriam Fixed":15,Mistral:12,"Modern No. 20":12,"MoeumT R":14,"Mongolian Baiti":13,"Monotype Corsiva":12,MoolBoran:9,"MS Gothic":12,"MS Mincho":13,"MS Outlook":13,"MS PGothic":13,"MS PMincho":13,"MS Reference Sans Serif":16,"MS Reference Specialty":30,"MS UI Gothic":13,"MT Extra":25,"MV Boli":18,"Myanmar Text":14,Narkisim:11,"Neue Haas Grotesk Text Pro":13,"New Gulim":15,"News Gothic MT":16,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":14,"Nirmala UI Semilight":14,Nyala:13,"OCR A Extended":15,OCRB:15,"Old English Text MT":13,Onyx:9,"Palace Script MT":9,"Palatino Linotype":12,Papyrus:15,Parchment:6,Perpetua:11,"Perpetua Titling MT":16,"Plantagenet Cherokee":13,Playbill:10,PMingLiU:12,"PMingLiU-ExtB":12,"Poor Richard":14,Pristina:13,"Pyunji R":13,Raavi:12,"Rage Italic":13,Ravie:24,Rockwell:13,"Rockwell Condensed":10,"Rockwell Extra Bold":17,"Rockwell Light":14,"Rockwell Nova":13,"Rockwell Nova Cond":13,"Rockwell Nova Cond Light":13,"Rockwell Nova Extra Bold":13,"Rockwell Nova Light":13,Rod:15,"Sakkal Majalla":10,"Sanskrit Text":15,"Script MT Bold":13,"Segoe MDL2 Assets":10,"Segoe Print":18,"Segoe Script":18,"Segoe UI":13,"Segoe UI Black":15,"Segoe UI Emoji":13,"Segoe UI Historic":13,"Segoe UI Light":12,"Segoe UI Semibold":14,"Segoe UI Semilight":13,"Segoe UI Symbol":13,Selawik:12,"Selawik Light":13,"Selawik Semibold":14,"Shonar Bangla":12,"Showcard Gothic":14,Shruti:14,"Simplified Arabic":13,"Simplified Arabic Fixed":14,"SimSun-ExtB":12,"Sitka Banner":12,"Sitka Display":13,"Sitka Heading":13,"Sitka Small":16,"Sitka Subheading":14,"Sitka Text":15,"Snap ITC":21,"Source Sans Pro":12,"Source Sans Pro Black":12,"Source Sans Pro ExtraLight":11,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":12,Stencil:14,Sylfaen:12,Symbol:12,Tahoma:13,"Tempus Sans ITC":16,"TH SarabunPSK":9,"Times New Roman":12,"Traditional Arabic":12,"Trebuchet MS":13,Tunga:13,"Tw Cen MT":13,"Tw Cen MT Condensed":9,"Tw Cen MT Condensed Extra Bold":12,"UD Digi Kyokasho N-B":12,"UD Digi Kyokasho NK-B":12,"UD Digi Kyokasho NK-R":12,"UD Digi Kyokasho NP-B":17,"UD Digi Kyokasho NP-R":12,"UD Digi Kyokasho N-R":12,Univers:12,"Univers Condensed":12,"Univers Condensed Light":11,"Univers Light":12,"Urdu Typesetting":12,Utsaah:10,Vani:15,Verdana:15,"Verdana Pro":15,"Verdana Pro Black":12,"Verdana Pro Cond":12,"Verdana Pro Cond Black":12,"Verdana Pro Cond Light":12,"Verdana Pro Cond SemiBold":12,"Verdana Pro Light":12,"Verdana Pro SemiBold":12,Vijaya:12,"Viner Hand ITC":16,Vivaldi:10,"Vladimir Script":11,Vrinda:14,Webdings:24,"Wide Latin":30,Wingdings:32,"Wingdings 2":27,"Wingdings 3":21,"Yet R":13,"Yu Gothic":13,"Yu Gothic Light":13,"Yu Gothic Medium":13,"Yu Gothic UI":13,"Yu Gothic UI Light":13,"Yu Gothic UI Semibold":14,"Yu Gothic UI Semilight":13,"Yu Mincho":13,"Yu Mincho Demibold":13,"Yu Mincho Light":12,"\u4eff\u5b8b":12,"\u534e\u6587\u4e2d\u5b8b":15,"\u534e\u6587\u4eff\u5b8b":11,"\u534e\u6587\u5b8b\u4f53":11,"\u534e\u6587\u5f69\u4e91":14,"\u534e\u6587\u65b0\u9b4f":14,"\u534e\u6587\u6977\u4f53":11,"\u534e\u6587\u7425\u73c0":14,"\u534e\u6587\u7ec6\u9ed1":13,"\u534e\u6587\u884c\u6977":12,"\u534e\u6587\u96b6\u4e66":11,"\u5b8b\u4f53":12,"\u5e7c\u5706":12,"\u5fae\u8f6f\u96c5\u9ed1":14,"\u5fae\u8f6f\u96c5\u9ed1 Light":14,"\u65b0\u5b8b\u4f53":12,"\u65b9\u6b63\u59da\u4f53":12,"\u65b9\u6b63\u8212\u4f53":13,"\u6977\u4f53":12,"\u7b49\u7ebf":13,"\u7b49\u7ebf Light":12,"\u96b6\u4e66":12,"\u9ed1\u4f53":12,"\u6e38\u30b4\u30b7\u30c3\u30af":13,"\uff2d\uff33 \uff30\u660e\u671d":12,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':12,"\u30e1\u30a4\u30ea\u30aa":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":12,"HG\u660e\u671dB":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":12},20:{"Gill Sans MT":14,Abadi:16,"Abadi Extra Light":15,"Agency FB":11,Aharoni:11,Aldhabi:9,Algerian:16,"Ami R":11,"Angsana New":9,AngsanaUPC:9,Aparajita:11,"Arabic Typesetting":9,Arial:15,"Arial Black":18,"Arial Narrow":12,"Arial Nova":15,"Arial Nova Cond":14,"Arial Nova Cond Light":12,"Arial Nova Light":15,"Arial Rounded MT Bold":16,"Baskerville Old Face":13,Batang:16,BatangChe:14,"Bauhaus 93":15,"Bell MT":14,Bembo:13,"Berlin Sans FB":16,"Berlin Sans FB Demi":17,"Bernard MT Condensed":13,"Blackadder ITC":11,"Bodoni MT":13,"Bodoni MT Black":18,"Bodoni MT Condensed":9,"Bodoni MT Poster Compressed":8,"Book Antiqua":14,"Bookman Old Style":17,"Bookshelf Symbol 7":20,"Bradley Hand ITC":17,"Britannic Bold":17,Broadway:17,"Browallia New":10,BrowalliaUPC:10,"Brush Script MT":14,Calibri:14,"Calibri Light":14,"Californian FB":14,"Calisto MT":14,Cambria:15,"Cambria Math":15,Candara:15,Castellar:19,Centaur:13,Century:15,"Century Gothic":15,"Century Schoolbook":15,Chiller:13,"Colonna MT":14,"Comic Sans MS":16,Consolas:15,Constantia:15,"Cooper Black":16,"Copperplate Gothic Bold":19,"Copperplate Gothic Light":19,Corbel:14,"Cordia New":10,CordiaUPC:10,"Courier New":16,"Curlz MT":15,Dante:12,DaunPenh:9,David:12,DilleniaUPC:8,DokChampa:15,Dotum:16,DotumChe:14,Dubai:15,"Dubai Light":15,"Dubai Medium":15,Ebrima:15,"Edwardian Script ITC":13,Elephant:20,"Engravers MT":17,"Eras Bold ITC":18,"Eras Demi ITC":16,"Eras Light ITC":14,"Eras Medium ITC":15,EucrosiaUPC:11,Euphemia:16,"Expo M":23,FangSong:14,"Felix Titling":16,"Footlight MT Light":15,Forte:14,"Franklin Gothic Book":16,"Franklin Gothic Demi":16,"Franklin Gothic Demi Cond":14,"Franklin Gothic Heavy":16,"Franklin Gothic Medium":16,"Franklin Gothic Medium Cond":14,FrankRuehl:11,FreesiaUPC:12,"Freestyle Script":10,"French Script MT":10,Gabriola:11,Gadugi:15,Garamond:13,Gautami:16,Georgia:17,"Georgia Pro":15,"Georgia Pro Black":19,"Georgia Pro Cond":14,"Georgia Pro Cond Black":17,"Georgia Pro Cond Light":14,"Georgia Pro Cond Semibold":15,"Georgia Pro Light":15,"Georgia Pro Semibold":17,Gigi:14,"Gill Sans MT Condensed":10,"Gill Sans MT Ext Condensed Bold":9,"Gill Sans Nova":14,"Gill Sans Nova Cond":9,"Gill Sans Nova Cond Lt":8,"Gill Sans Nova Cond Ultra Bold":16,"Gill Sans Nova Cond XBd":14,"Gill Sans Nova Light":14,"Gill Sans Nova Ultra Bold":23,"Gill Sans Ultra Bold":23,"Gill Sans Ultra Bold Condensed":16,Gisha:15,"Gloucester MT Extra Condensed":10,"Goudy Old Style":14,"Goudy Stout":22,Grotesque:13,"Grotesque Light":13,Gulim:16,GulimChe:14,Gungsuh:16,GungsuhChe:14,"Hadassah Friedlaender":15,Haettenschweiler:12,"Harlow Solid Italic":13,Harrington:15,"Headline R":19,HGGothicE:14,HGGothicM:14,HGGyoshotai:14,HGKyokashotai:14,HGMaruGothicMPRO:20,HGMinchoB:15,HGMinchoE:15,HGPGothicE:16,HGPGothicM:17,HGPGyoshotai:14,HGPKyokashotai:14,HGPMinchoB:14,HGPMinchoE:15,HGPSoeiKakugothicUB:18,HGPSoeiKakupoptai:19,HGPSoeiPresenceEB:16,HGSeikaishotaiPRO:16,HGSGothicE:15,HGSGothicM:16,HGSGyoshotai:13,HGSKyokashotai:13,HGSMinchoB:14,HGSMinchoE:15,HGSoeiKakugothicUB:15,HGSoeiKakupoptai:15,HGSoeiPresenceEB:15,HGSSoeiKakugothicUB:17,HGSSoeiKakupoptai:18,HGSSoeiPresenceEB:15,"High Tower Text":13,"HYGothic-Extra":17,"HYGothic-Medium":16,"HYGraphic-Medium":16,"HYGungSo-Bold":16,"HYHeadLine-Medium":16,"HYMyeongJo-Extra":18,"HYPMokGak-Bold":19,"HYPost-Light":18,"HYPost-Medium":19,"HYShortSamul-Medium":10,"HYSinMyeongJo-Medium":17,Impact:15,"Imprint MT Shadow":14,"Informal Roman":15,"Ink Free":14,IrisUPC:14,"Iskoola Pota":14,JasmineUPC:12,"Javanese Text":16,Jokerman:19,"Juice ITC":10,KaiTi:14,Kalinga:15,Kartika:16,"Khmer UI":15,KodchiangUPC:9,Kokila:10,"Kristen ITC":16,"Kunstler Script":10,"Lao UI":15,Latha:14,Leelawadee:15,"Leelawadee UI":15,"Leelawadee UI Semilight":15,"Levenim MT":15,LilyUPC:12,"Lucida Bright":16,"Lucida Calligraphy":19,"Lucida Console":17,"Lucida Fax":18,"Lucida Handwriting":19,"Lucida Sans":18,"Lucida Sans Typewriter":16,"Lucida Sans Unicode":18,"Magic R":16,Magneto:21,"Maiandra GD":17,"Malgun Gothic":16,"Malgun Gothic Semilight":16,Mangal:16,Marlett:28,"Matura MT Script Capitals":19,Meiryo:18,"Meiryo UI":18,"Microsoft GothicNeo":15,"Microsoft Himalaya":10,"Microsoft JhengHei":16,"Microsoft JhengHei Light":17,"Microsoft JhengHei UI":16,"Microsoft JhengHei UI Light":17,"Microsoft New Tai Lue":16,"Microsoft PhagsPa":16,"Microsoft Sans Serif":16,"Microsoft Tai Le":16,"Microsoft Uighur":10,"Microsoft YaHei Light":16,"Microsoft YaHei UI":17,"Microsoft YaHei UI Light":16,"Microsoft Yi Baiti":15,MingLiU:15,MingLiU_HKSCS:15,"MingLiU_HKSCS-ExtB":15,"MingLiU-ExtB":15,Miriam:14,"Miriam Fixed":17,Mistral:13,"Modern No. 20":13,"MoeumT R":16,"Mongolian Baiti":15,"Monotype Corsiva":13,MoolBoran:10,"MS Gothic":14,"MS Mincho":15,"MS Outlook":15,"MS PGothic":15,"MS PMincho":15,"MS Reference Sans Serif":18,"MS Reference Specialty":33,"MS UI Gothic":15,"MT Extra":29,"MV Boli":20,"Myanmar Text":16,Narkisim:12,"Neue Haas Grotesk Text Pro":15,"New Gulim":17,"News Gothic MT":18,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":16,"Nirmala UI Semilight":16,Nyala:15,"OCR A Extended":17,OCRB:17,"Old English Text MT":15,Onyx:9,"Palace Script MT":9,"Palatino Linotype":14,Papyrus:16,Parchment:7,Perpetua:12,"Perpetua Titling MT":18,"Plantagenet Cherokee":15,Playbill:11,PMingLiU:14,"PMingLiU-ExtB":14,"Poor Richard":16,Pristina:14,"Pyunji R":14,Raavi:14,"Rage Italic":15,Ravie:27,Rockwell:15,"Rockwell Condensed":12,"Rockwell Extra Bold":19,"Rockwell Light":15,"Rockwell Nova":15,"Rockwell Nova Cond":15,"Rockwell Nova Cond Light":15,"Rockwell Nova Extra Bold":15,"Rockwell Nova Light":15,Rod:17,"Sakkal Majalla":11,"Sanskrit Text":17,"Script MT Bold":14,"Segoe MDL2 Assets":11,"Segoe Print":20,"Segoe Script":20,"Segoe UI":15,"Segoe UI Black":17,"Segoe UI Emoji":15,"Segoe UI Historic":15,"Segoe UI Light":14,"Segoe UI Semibold":15,"Segoe UI Semilight":15,"Segoe UI Symbol":15,Selawik:14,"Selawik Light":14,"Selawik Semibold":15,"Shonar Bangla":14,"Showcard Gothic":16,Shruti:16,"Simplified Arabic":14,"Simplified Arabic Fixed":16,"SimSun-ExtB":14,"Sitka Banner":14,"Sitka Display":14,"Sitka Heading":15,"Sitka Small":18,"Sitka Subheading":16,"Sitka Text":17,"Snap ITC":23,"Source Sans Pro":13,"Source Sans Pro Black":14,"Source Sans Pro ExtraLight":12,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":14,Stencil:16,Sylfaen:14,Symbol:14,Tahoma:15,"Tempus Sans ITC":18,"TH SarabunPSK":10,"Times New Roman":14,"Traditional Arabic":13,"Trebuchet MS":14,Tunga:14,"Tw Cen MT":15,"Tw Cen MT Condensed":10,"Tw Cen MT Condensed Extra Bold":13,"UD Digi Kyokasho N-B":14,"UD Digi Kyokasho NK-B":14,"UD Digi Kyokasho NK-R":14,"UD Digi Kyokasho NP-B":19,"UD Digi Kyokasho NP-R":14,"UD Digi Kyokasho N-R":14,Univers:14,"Univers Condensed":14,"Univers Condensed Light":12,"Univers Light":14,"Urdu Typesetting":14,Utsaah:11,Vani:17,Verdana:17,"Verdana Pro":17,"Verdana Pro Black":14,"Verdana Pro Cond":14,"Verdana Pro Cond Black":14,"Verdana Pro Cond Light":14,"Verdana Pro Cond SemiBold":14,"Verdana Pro Light":14,"Verdana Pro SemiBold":14,Vijaya:14,"Viner Hand ITC":18,Vivaldi:12,"Vladimir Script":13,Vrinda:16,Webdings:27,"Wide Latin":33,Wingdings:36,"Wingdings 2":31,"Wingdings 3":24,"Yet R":14,"Yu Gothic":15,"Yu Gothic Light":14,"Yu Gothic Medium":15,"Yu Gothic UI":15,"Yu Gothic UI Light":14,"Yu Gothic UI Semibold":16,"Yu Gothic UI Semilight":15,"Yu Mincho":15,"Yu Mincho Demibold":14,"Yu Mincho Light":14,"\u4eff\u5b8b":14,"\u534e\u6587\u4e2d\u5b8b":17,"\u534e\u6587\u4eff\u5b8b":13,"\u534e\u6587\u5b8b\u4f53":13,"\u534e\u6587\u5f69\u4e91":15,"\u534e\u6587\u65b0\u9b4f":16,"\u534e\u6587\u6977\u4f53":13,"\u534e\u6587\u7425\u73c0":15,"\u534e\u6587\u7ec6\u9ed1":15,"\u534e\u6587\u884c\u6977":14,"\u534e\u6587\u96b6\u4e66":12,"\u5b8b\u4f53":14,"\u5e7c\u5706":14,"\u5fae\u8f6f\u96c5\u9ed1":16,"\u5fae\u8f6f\u96c5\u9ed1 Light":15,"\u65b0\u5b8b\u4f53":14,"\u65b9\u6b63\u59da\u4f53":14,"\u65b9\u6b63\u8212\u4f53":15,"\u6977\u4f53":14,"\u7b49\u7ebf":14,"\u7b49\u7ebf Light":14,"\u96b6\u4e66":14,"\u9ed1\u4f53":14,"\u6e38\u30b4\u30b7\u30c3\u30af":15,"\uff2d\uff33 \uff30\u660e\u671d":14,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':14,"\u30e1\u30a4\u30ea\u30aa":17,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":14,"HG\u660e\u671dB":14,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":14},22:{"Gill Sans MT":15,Abadi:18,"Abadi Extra Light":16,"Agency FB":11,Aharoni:12,Aldhabi:9,Algerian:17,"Ami R":12,"Angsana New":10,AngsanaUPC:10,Aparajita:12,"Arabic Typesetting":10,Arial:16,"Arial Black":19,"Arial Narrow":13,"Arial Nova":16,"Arial Nova Cond":15,"Arial Nova Cond Light":13,"Arial Nova Light":16,"Arial Rounded MT Bold":17,"Baskerville Old Face":14,Batang:17,BatangChe:15,"Bauhaus 93":16,"Bell MT":15,Bembo:14,"Berlin Sans FB":17,"Berlin Sans FB Demi":18,"Bernard MT Condensed":14,"Blackadder ITC":11,"Bodoni MT":14,"Bodoni MT Black":19,"Bodoni MT Condensed":10,"Bodoni MT Poster Compressed":9,"Book Antiqua":15,"Bookman Old Style":18,"Bookshelf Symbol 7":21,"Bradley Hand ITC":19,"Britannic Bold":18,Broadway:19,"Browallia New":11,BrowalliaUPC:11,"Brush Script MT":15,Calibri:15,"Calibri Light":15,"Californian FB":15,"Calisto MT":15,Cambria:16,"Cambria Math":16,Candara:16,Castellar:21,Centaur:14,Century:16,"Century Gothic":16,"Century Schoolbook":16,Chiller:14,"Colonna MT":15,"Comic Sans MS":18,Consolas:16,Constantia:16,"Cooper Black":17,"Copperplate Gothic Bold":21,"Copperplate Gothic Light":21,Corbel:15,"Cordia New":11,CordiaUPC:11,"Courier New":17,"Curlz MT":16,Dante:13,DaunPenh:10,David:13,DilleniaUPC:9,DokChampa:16,Dotum:17,DotumChe:15,Dubai:16,"Dubai Light":16,"Dubai Medium":16,Ebrima:16,"Edwardian Script ITC":14,Elephant:22,"Engravers MT":19,"Eras Bold ITC":19,"Eras Demi ITC":18,"Eras Light ITC":16,"Eras Medium ITC":17,EucrosiaUPC:12,Euphemia:17,"Expo M":25,FangSong:15,"Felix Titling":17,"Footlight MT Light":16,Forte:15,"Franklin Gothic Book":17,"Franklin Gothic Demi":17,"Franklin Gothic Demi Cond":15,"Franklin Gothic Heavy":17,"Franklin Gothic Medium":17,"Franklin Gothic Medium Cond":15,FrankRuehl:12,FreesiaUPC:13,"Freestyle Script":10,"French Script MT":11,Gabriola:12,Gadugi:16,Garamond:14,Gautami:17,Georgia:18,"Georgia Pro":16,"Georgia Pro Black":21,"Georgia Pro Cond":15,"Georgia Pro Cond Black":18,"Georgia Pro Cond Light":15,"Georgia Pro Cond Semibold":16,"Georgia Pro Light":16,"Georgia Pro Semibold":18,Gigi:14,"Gill Sans MT Condensed":11,"Gill Sans MT Ext Condensed Bold":10,"Gill Sans Nova":15,"Gill Sans Nova Cond":10,"Gill Sans Nova Cond Lt":9,"Gill Sans Nova Cond Ultra Bold":17,"Gill Sans Nova Cond XBd":15,"Gill Sans Nova Light":15,"Gill Sans Nova Ultra Bold":25,"Gill Sans Ultra Bold":25,"Gill Sans Ultra Bold Condensed":17,Gisha:16,"Gloucester MT Extra Condensed":11,"Goudy Old Style":15,"Goudy Stout":24,Grotesque:14,"Grotesque Light":14,Gulim:17,GulimChe:15,Gungsuh:17,GungsuhChe:15,"Hadassah Friedlaender":17,Haettenschweiler:13,"Harlow Solid Italic":14,Harrington:16,"Headline R":21,HGGothicE:15,HGGothicM:15,HGGyoshotai:15,HGKyokashotai:15,HGMaruGothicMPRO:22, HGMinchoB:16,HGMinchoE:16,HGPGothicE:17,HGPGothicM:18,HGPGyoshotai:15,HGPKyokashotai:14,HGPMinchoB:15,HGPMinchoE:16,HGPSoeiKakugothicUB:19,HGPSoeiKakupoptai:20,HGPSoeiPresenceEB:17,HGSeikaishotaiPRO:17,HGSGothicE:16,HGSGothicM:17,HGSGyoshotai:14,HGSKyokashotai:13,HGSMinchoB:15,HGSMinchoE:16,HGSoeiKakugothicUB:16,HGSoeiKakupoptai:16,HGSoeiPresenceEB:16,HGSSoeiKakugothicUB:18,HGSSoeiKakupoptai:19,HGSSoeiPresenceEB:16,"High Tower Text":14,"HYGothic-Extra":18,"HYGothic-Medium":17,"HYGraphic-Medium":17,"HYGungSo-Bold":17,"HYHeadLine-Medium":17,"HYMyeongJo-Extra":19,"HYPMokGak-Bold":21,"HYPost-Light":19,"HYPost-Medium":21,"HYShortSamul-Medium":11,"HYSinMyeongJo-Medium":18,Impact:16,"Imprint MT Shadow":15,"Informal Roman":16,"Ink Free":15,IrisUPC:15,"Iskoola Pota":15,JasmineUPC:13,"Javanese Text":17,Jokerman:21,"Juice ITC":11,KaiTi:15,Kalinga:16,Kartika:17,"Khmer UI":16,KodchiangUPC:10,Kokila:11,"Kristen ITC":17,"Kunstler Script":10,"Lao UI":16,Latha:15,Leelawadee:16,"Leelawadee UI":16,"Leelawadee UI Semilight":16,"Levenim MT":17,LilyUPC:13,"Lucida Bright":18,"Lucida Calligraphy":20,"Lucida Console":18,"Lucida Fax":19,"Lucida Handwriting":21,"Lucida Sans":19,"Lucida Sans Typewriter":17,"Lucida Sans Unicode":19,"Magic R":17,Magneto:22,"Maiandra GD":18,"Malgun Gothic":17,"Malgun Gothic Semilight":17,Mangal:17,Marlett:30,"Matura MT Script Capitals":20,Meiryo:20,"Meiryo UI":20,"Microsoft GothicNeo":16,"Microsoft Himalaya":11,"Microsoft JhengHei":17,"Microsoft JhengHei Light":18,"Microsoft JhengHei UI":17,"Microsoft JhengHei UI Light":18,"Microsoft New Tai Lue":17,"Microsoft PhagsPa":17,"Microsoft Sans Serif":17,"Microsoft Tai Le":17,"Microsoft Uighur":11,"Microsoft YaHei Light":18,"Microsoft YaHei UI":18,"Microsoft YaHei UI Light":18,"Microsoft Yi Baiti":16,MingLiU:16,MingLiU_HKSCS:16,"MingLiU_HKSCS-ExtB":16,"MingLiU-ExtB":16,Miriam:15,"Miriam Fixed":18,Mistral:14,"Modern No. 20":14,"MoeumT R":17,"Mongolian Baiti":16,"Monotype Corsiva":14,MoolBoran:11,"MS Gothic":15,"MS Mincho":16,"MS Outlook":16,"MS PGothic":16,"MS PMincho":16,"MS Reference Sans Serif":19,"MS Reference Specialty":36,"MS UI Gothic":16,"MT Extra":31,"MV Boli":21,"Myanmar Text":17,Narkisim:13,"Neue Haas Grotesk Text Pro":16,"New Gulim":18,"News Gothic MT":19,"Niagara Engraved":10,"Niagara Solid":10,"Nirmala UI":17,"Nirmala UI Semilight":17,Nyala:16,"OCR A Extended":19,OCRB:18,"Old English Text MT":16,Onyx:10,"Palace Script MT":10,"Palatino Linotype":15,Papyrus:18,Parchment:7,Perpetua:13,"Perpetua Titling MT":20,"Plantagenet Cherokee":16,Playbill:11,PMingLiU:15,"PMingLiU-ExtB":15,"Poor Richard":17,Pristina:15,"Pyunji R":15,Raavi:15,"Rage Italic":16,Ravie:29,Rockwell:16,"Rockwell Condensed":12,"Rockwell Extra Bold":20,"Rockwell Light":16,"Rockwell Nova":16,"Rockwell Nova Cond":16,"Rockwell Nova Cond Light":16,"Rockwell Nova Extra Bold":16,"Rockwell Nova Light":16,Rod:18,"Sakkal Majalla":12,"Sanskrit Text":18,"Script MT Bold":15,"Segoe MDL2 Assets":12,"Segoe Print":21,"Segoe Script":21,"Segoe UI":16,"Segoe UI Black":18,"Segoe UI Emoji":16,"Segoe UI Historic":16,"Segoe UI Light":15,"Segoe UI Semibold":17,"Segoe UI Semilight":16,"Segoe UI Symbol":16,Selawik:15,"Selawik Light":15,"Selawik Semibold":16,"Shonar Bangla":15,"Showcard Gothic":17,Shruti:17,"Simplified Arabic":15,"Simplified Arabic Fixed":17,"SimSun-ExtB":15,"Sitka Banner":15,"Sitka Display":15,"Sitka Heading":16,"Sitka Small":20,"Sitka Subheading":17,"Sitka Text":18,"Snap ITC":25,"Source Sans Pro":14,"Source Sans Pro Black":15,"Source Sans Pro ExtraLight":13,"Source Sans Pro Light":13,"Source Sans Pro SemiBold":14,Stencil:17,Sylfaen:15,Symbol:15,Tahoma:16,"Tempus Sans ITC":19,"TH SarabunPSK":11,"Times New Roman":15,"Traditional Arabic":14,"Trebuchet MS":15,Tunga:15,"Tw Cen MT":16,"Tw Cen MT Condensed":11,"Tw Cen MT Condensed Extra Bold":14,"UD Digi Kyokasho N-B":15,"UD Digi Kyokasho NK-B":15,"UD Digi Kyokasho NK-R":15,"UD Digi Kyokasho NP-B":21,"UD Digi Kyokasho NP-R":15,"UD Digi Kyokasho N-R":15,Univers:15,"Univers Condensed":15,"Univers Condensed Light":13,"Univers Light":15,"Urdu Typesetting":15,Utsaah:12,Vani:18,Verdana:18,"Verdana Pro":18,"Verdana Pro Black":15,"Verdana Pro Cond":15,"Verdana Pro Cond Black":15,"Verdana Pro Cond Light":15,"Verdana Pro Cond SemiBold":15,"Verdana Pro Light":15,"Verdana Pro SemiBold":15,Vijaya:12,"Viner Hand ITC":20,Vivaldi:12,"Vladimir Script":13,Vrinda:17,Webdings:29,"Wide Latin":36,Wingdings:39,"Wingdings 2":33,"Wingdings 3":26,"Yet R":16,"Yu Gothic":16,"Yu Gothic Light":16,"Yu Gothic Medium":16,"Yu Gothic UI":16,"Yu Gothic UI Light":15,"Yu Gothic UI Semibold":17,"Yu Gothic UI Semilight":16,"Yu Mincho":16,"Yu Mincho Demibold":15,"Yu Mincho Light":15,"\u4eff\u5b8b":15,"\u534e\u6587\u4e2d\u5b8b":18,"\u534e\u6587\u4eff\u5b8b":14,"\u534e\u6587\u5b8b\u4f53":14,"\u534e\u6587\u5f69\u4e91":16,"\u534e\u6587\u65b0\u9b4f":17,"\u534e\u6587\u6977\u4f53":14,"\u534e\u6587\u7425\u73c0":16,"\u534e\u6587\u7ec6\u9ed1":16,"\u534e\u6587\u884c\u6977":15,"\u534e\u6587\u96b6\u4e66":13,"\u5b8b\u4f53":15,"\u5e7c\u5706":15,"\u5fae\u8f6f\u96c5\u9ed1":17,"\u5fae\u8f6f\u96c5\u9ed1 Light":17,"\u65b0\u5b8b\u4f53":15,"\u65b9\u6b63\u59da\u4f53":15,"\u65b9\u6b63\u8212\u4f53":16,"\u6977\u4f53":15,"\u7b49\u7ebf":15,"\u7b49\u7ebf Light":15,"\u96b6\u4e66":15,"\u9ed1\u4f53":15,"\u6e38\u30b4\u30b7\u30c3\u30af":16,"\uff2d\uff33 \uff30\u660e\u671d":15,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':15,"\u30e1\u30a4\u30ea\u30aa":18,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":15,"HG\u660e\u671dB":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":15},24:{"Gill Sans MT":16,Abadi:19,"Abadi Extra Light":18,"Agency FB":14,Aharoni:13,Aldhabi:10,Algerian:19,"Ami R":13,"Angsana New":11,AngsanaUPC:11,Aparajita:13,"Arabic Typesetting":11,Arial:18,"Arial Black":21,"Arial Narrow":15,"Arial Nova":18,"Arial Nova Cond":16,"Arial Nova Cond Light":14,"Arial Nova Light":18,"Arial Rounded MT Bold":19,"Baskerville Old Face":16,Batang:19,BatangChe:16,"Bauhaus 93":18,"Bell MT":16,Bembo:16,"Berlin Sans FB":19,"Berlin Sans FB Demi":20,"Bernard MT Condensed":16,"Blackadder ITC":13,"Bodoni MT":16,"Bodoni MT Black":21,"Bodoni MT Condensed":11,"Bodoni MT Poster Compressed":9,"Book Antiqua":16,"Bookman Old Style":20,"Bookshelf Symbol 7":24,"Bradley Hand ITC":21,"Britannic Bold":20,Broadway:21,"Browallia New":12,BrowalliaUPC:12,"Brush Script MT":16,Calibri:16,"Calibri Light":16,"Californian FB":17,"Calisto MT":16,Cambria:18,"Cambria Math":18,Candara:18,Castellar:23,Centaur:16,Century:18,"Century Gothic":18,"Century Schoolbook":18,Chiller:15,"Colonna MT":16,"Comic Sans MS":20,Consolas:18,Constantia:17,"Cooper Black":19,"Copperplate Gothic Bold":23,"Copperplate Gothic Light":23,Corbel:17,"Cordia New":12,CordiaUPC:12,"Courier New":19,"Curlz MT":17,Dante:14,DaunPenh:11,David:14,DilleniaUPC:10,DokChampa:18,Dotum:19,DotumChe:16,Dubai:17,"Dubai Light":17,"Dubai Medium":17,Ebrima:17,"Edwardian Script ITC":15,Elephant:24,"Engravers MT":21,"Eras Bold ITC":21,"Eras Demi ITC":20,"Eras Light ITC":17,"Eras Medium ITC":18,EucrosiaUPC:13,Euphemia:19,"Expo M":28,FangSong:16,"Felix Titling":19,"Footlight MT Light":18,Forte:17,"Franklin Gothic Book":19,"Franklin Gothic Demi":19,"Franklin Gothic Demi Cond":16,"Franklin Gothic Heavy":19,"Franklin Gothic Medium":19,"Franklin Gothic Medium Cond":16,FrankRuehl:13,FreesiaUPC:14,"Freestyle Script":12,"French Script MT":12,Gabriola:13,Gadugi:17,Garamond:15,Gautami:19,Georgia:20,"Georgia Pro":18,"Georgia Pro Black":23,"Georgia Pro Cond":17,"Georgia Pro Cond Black":20,"Georgia Pro Cond Light":16,"Georgia Pro Cond Semibold":18,"Georgia Pro Light":18,"Georgia Pro Semibold":20,Gigi:17,"Gill Sans MT Condensed":12,"Gill Sans MT Ext Condensed Bold":11,"Gill Sans Nova":16,"Gill Sans Nova Cond":11,"Gill Sans Nova Cond Lt":10,"Gill Sans Nova Cond Ultra Bold":19,"Gill Sans Nova Cond XBd":17,"Gill Sans Nova Light":16,"Gill Sans Nova Ultra Bold":27,"Gill Sans Ultra Bold":27,"Gill Sans Ultra Bold Condensed":19,Gisha:17,"Gloucester MT Extra Condensed":12,"Goudy Old Style":16,"Goudy Stout":26,Grotesque:15,"Grotesque Light":15,Gulim:18,GulimChe:16,Gungsuh:19,GungsuhChe:16,"Hadassah Friedlaender":18,Haettenschweiler:14,"Harlow Solid Italic":15,Harrington:18,"Headline R":23,HGGothicE:16,HGGothicM:16,HGGyoshotai:16,HGKyokashotai:16,HGMaruGothicMPRO:24,HGMinchoB:17,HGMinchoE:17,HGPGothicE:18,HGPGothicM:20,HGPGyoshotai:16,HGPKyokashotai:16,HGPMinchoB:16,HGPMinchoE:18,HGPSoeiKakugothicUB:21,HGPSoeiKakupoptai:22,HGPSoeiPresenceEB:19,HGSeikaishotaiPRO:19,HGSGothicE:17,HGSGothicM:19,HGSGyoshotai:15,HGSKyokashotai:15,HGSMinchoB:16,HGSMinchoE:18,HGSoeiKakugothicUB:17,HGSoeiKakupoptai:17,HGSoeiPresenceEB:17,HGSSoeiKakugothicUB:20,HGSSoeiKakupoptai:21,HGSSoeiPresenceEB:18,"High Tower Text":15,"HYGothic-Extra":20,"HYGothic-Medium":19,"HYGraphic-Medium":19,"HYGungSo-Bold":19,"HYHeadLine-Medium":19,"HYMyeongJo-Extra":21,"HYPMokGak-Bold":23,"HYPost-Light":21,"HYPost-Medium":23,"HYShortSamul-Medium":12,"HYSinMyeongJo-Medium":20,Impact:17,"Imprint MT Shadow":16,"Informal Roman":17,"Ink Free":16,IrisUPC:16,"Iskoola Pota":16,JasmineUPC:15,"Javanese Text":19,Jokerman:23,"Juice ITC":11,KaiTi:16,Kalinga:18,Kartika:18,"Khmer UI":17,KodchiangUPC:11,Kokila:12,"Kristen ITC":19,"Kunstler Script":11,"Lao UI":17,Latha:16,Leelawadee:17,"Leelawadee UI":17,"Leelawadee UI Semilight":18,"Levenim MT":18,LilyUPC:14,"Lucida Bright":19,"Lucida Calligraphy":22,"Lucida Console":20,"Lucida Fax":21,"Lucida Handwriting":23,"Lucida Sans":21,"Lucida Sans Typewriter":19,"Lucida Sans Unicode":21,"Magic R":19,Magneto:25,"Maiandra GD":20,"Malgun Gothic":19,"Malgun Gothic Semilight":19,Mangal:18,Marlett:33,"Matura MT Script Capitals":22,Meiryo:22,"Meiryo UI":22,"Microsoft GothicNeo":17,"Microsoft Himalaya":12,"Microsoft JhengHei":19,"Microsoft JhengHei Light":19,"Microsoft JhengHei UI":19,"Microsoft JhengHei UI Light":19,"Microsoft New Tai Lue":18,"Microsoft PhagsPa":18,"Microsoft Sans Serif":19,"Microsoft Tai Le":18,"Microsoft Uighur":12,"Microsoft YaHei Light":19,"Microsoft YaHei UI":20,"Microsoft YaHei UI Light":19,"Microsoft Yi Baiti":17,MingLiU:17,MingLiU_HKSCS:17,"MingLiU_HKSCS-ExtB":17,"MingLiU-ExtB":17,Miriam:16,"Miriam Fixed":20,Mistral:15,"Modern No. 20":16,"MoeumT R":19,"Mongolian Baiti":17,"Monotype Corsiva":15,MoolBoran:12,"MS Gothic":16,"MS Mincho":17,"MS Outlook":17,"MS PGothic":17,"MS PMincho":17,"MS Reference Sans Serif":21,"MS Reference Specialty":39,"MS UI Gothic":17,"MT Extra":34,"MV Boli":23,"Myanmar Text":18,Narkisim:14,"Neue Haas Grotesk Text Pro":17,"New Gulim":19,"News Gothic MT":21,"Niagara Engraved":11,"Niagara Solid":11,"Nirmala UI":18,"Nirmala UI Semilight":19,Nyala:17,"OCR A Extended":20,OCRB:20,"Old English Text MT":17,Onyx:10,"Palace Script MT":11,"Palatino Linotype":16,Papyrus:20,Parchment:8,Perpetua:15,"Perpetua Titling MT":22,"Plantagenet Cherokee":18,Playbill:12,PMingLiU:16,"PMingLiU-ExtB":16,"Poor Richard":19,Pristina:16,"Pyunji R":17,Raavi:16,"Rage Italic":18,Ravie:31,Rockwell:17,"Rockwell Condensed":14,"Rockwell Extra Bold":22,"Rockwell Light":18,"Rockwell Nova":17,"Rockwell Nova Cond":17,"Rockwell Nova Cond Light":17,"Rockwell Nova Extra Bold":17,"Rockwell Nova Light":17,Rod:20,"Sakkal Majalla":13,"Sanskrit Text":19,"Script MT Bold":17,"Segoe MDL2 Assets":13,"Segoe Print":23,"Segoe Script":23,"Segoe UI":17,"Segoe UI Black":20,"Segoe UI Emoji":17,"Segoe UI Historic":17,"Segoe UI Light":16,"Segoe UI Semibold":18,"Segoe UI Semilight":17,"Segoe UI Symbol":17,Selawik:17,"Selawik Light":17,"Selawik Semibold":18,"Shonar Bangla":13,"Showcard Gothic":19,Shruti:19,"Simplified Arabic":17,"Simplified Arabic Fixed":19,"SimSun-ExtB":16,"Sitka Banner":16,"Sitka Display":17,"Sitka Heading":18,"Sitka Small":22,"Sitka Subheading":19,"Sitka Text":20,"Snap ITC":28,"Source Sans Pro":15,"Source Sans Pro Black":17,"Source Sans Pro ExtraLight":15,"Source Sans Pro Light":15,"Source Sans Pro SemiBold":16,Stencil:18,Sylfaen:16,Symbol:16,Tahoma:17,"Tempus Sans ITC":21,"TH SarabunPSK":12,"Times New Roman":16,"Traditional Arabic":16,"Trebuchet MS":17,Tunga:17,"Tw Cen MT":18,"Tw Cen MT Condensed":12,"Tw Cen MT Condensed Extra Bold":16,"UD Digi Kyokasho N-B":16,"UD Digi Kyokasho NK-B":16,"UD Digi Kyokasho NK-R":16,"UD Digi Kyokasho NP-B":23,"UD Digi Kyokasho NP-R":16,"UD Digi Kyokasho N-R":16,Univers:16,"Univers Condensed":16,"Univers Condensed Light":14,"Univers Light":16,"Urdu Typesetting":16,Utsaah:13,Vani:20,Verdana:20,"Verdana Pro":20,"Verdana Pro Black":16,"Verdana Pro Cond":16,"Verdana Pro Cond Black":16,"Verdana Pro Cond Light":16,"Verdana Pro Cond SemiBold":16,"Verdana Pro Light":16,"Verdana Pro SemiBold":16,Vijaya:13,"Viner Hand ITC":22,Vivaldi:14,"Vladimir Script":15,Vrinda:18,Webdings:32,"Wide Latin":40,Wingdings:43,"Wingdings 2":36,"Wingdings 3":29,"Yet R":17,"Yu Gothic":18,"Yu Gothic Light":17,"Yu Gothic Medium":18,"Yu Gothic UI":17,"Yu Gothic UI Light":17,"Yu Gothic UI Semibold":18,"Yu Gothic UI Semilight":18,"Yu Mincho":17,"Yu Mincho Demibold":17,"Yu Mincho Light":16,"\u4eff\u5b8b":16,"\u534e\u6587\u4e2d\u5b8b":20,"\u534e\u6587\u4eff\u5b8b":15,"\u534e\u6587\u5b8b\u4f53":15,"\u534e\u6587\u5f69\u4e91":18,"\u534e\u6587\u65b0\u9b4f":19,"\u534e\u6587\u6977\u4f53":15,"\u534e\u6587\u7425\u73c0":18,"\u534e\u6587\u7ec6\u9ed1":18,"\u534e\u6587\u884c\u6977":16,"\u534e\u6587\u96b6\u4e66":14,"\u5b8b\u4f53":16,"\u5e7c\u5706":16,"\u5fae\u8f6f\u96c5\u9ed1":19,"\u5fae\u8f6f\u96c5\u9ed1 Light":18,"\u65b0\u5b8b\u4f53":16,"\u65b9\u6b63\u59da\u4f53":16,"\u65b9\u6b63\u8212\u4f53":18,"\u6977\u4f53":16,"\u7b49\u7ebf":17,"\u7b49\u7ebf Light":16,"\u96b6\u4e66":16,"\u9ed1\u4f53":16,"\u6e38\u30b4\u30b7\u30c3\u30af":18,"\uff2d\uff33 \uff30\u660e\u671d":16,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':16,"\u30e1\u30a4\u30ea\u30aa":20,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":16,"HG\u660e\u671dB":16,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":16}},t.unknownFontMaxDigitWidthMap={},a="http://schemas.openxmlformats.org/spreadsheetml/2006/main",t.XFileConstants={Bb:"_rels",Cb:"/xl",Db:"[Content_Types].xml",Eb:"bin",Fb:"application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings",Gb:"rels",Hb:"application/vnd.openxmlformats-package.relationships+xml",Ib:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",Jb:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",Kb:"application/vnd.openxmlformats-officedocument.theme+xml",Lb:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",Mb:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",Ob:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Pb:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",Qb:"application/vnd.openxmlformats-officedocument.drawing+xml",Rb:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",Sb:"application/vnd.ms-office.chartex+xml",Tb:"application/vnd.ms-office.chartstyle+xml",Ub:"application/vnd.ms-office.chartcolorstyle+xml",Vb:"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml",Wb:"application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml",Xb:"application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml",Yb:"application/vnd.ms-office.drawingml.diagramDrawing+xml",Zb:"application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml",$b:"application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml",_b:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",ac:"application/vnd.ms-excel.threadedcomments+xml",bc:"application/vnd.ms-excel.person+xml",cc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",dc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",ec:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",fc:"application/vnd.ms-excel.slicer+xml",gc:"application/vnd.ms-excel.slicerCache+xml",hc:"application/vnd.ms-excel.timeline+xml",ic:"application/vnd.ms-excel.timelineCache+xml",jc:"application/vnd.ms-office.vbaProject",kc:"application/vnd.openxmlformats-officedocument.vmlDrawing",lc:"application/vnd.ms-excel.controlproperties+xml",nc:"xml",oc:"vml",pc:"application/xml",qc:"jpg",sc:"image/jpg",tc:"tiff",uc:"image/tiff",vc:"jpeg",wc:"image/jpeg",xc:"svg",yc:"image/svg+xml",zc:"png",Ac:"image/png",Bc:"bmp",Cc:"image/bmp",Dc:"gif",Ec:"image/gif",Fc:"emf",Gc:"image/x-emf",Hc:"wmf",Ic:"image/x-wmf",Jc:"drawings",Kc:"vmlDrawing",Lc:"/xl/charts",Mc:"/xl/drawings",Nc:"/xl/persons",Oc:"/xl/media",Pc:"/xl/ctrlProps",Qc:"/xl/threadedComments",Rc:"/xl/worksheets",Sc:"/xl/tables",Tc:"/xl/slicers",Uc:"/xl/timelines",Vc:"/xl/externalLinks",Wc:"/xl/slicerCaches",Xc:"/xl/timelineCaches",Yc:"/xl/pivotCache",Zc:"/xl/pivotTables",$c:"sheet",_c:"externalLink",ad:"comments",bd:"chart",dd:"chartEx",ed:"style",fd:"person",hd:"colors",jd:"drawing",kd:"threadedComment",ld:"image",md:"ctrlProp",od:"table",pd:"slicer",qd:"timeline",rd:"slicerCache",sd:"timelineCache",td:"pivotCacheDefinition",ud:"pivotCacheRecords",vd:"pivotTable",wd:"/xl/sharedStrings.xml",xd:"/xl/theme/theme1.xml",yd:"/xl/worksheets",zd:"/xl/workbook.xml",Ad:"/docProps/core.xml",Bd:"/docProps/app.xml",Cd:"/docProps/custom.xml",Dd:"/xl/styles.xml",Ed:"/xl/theme/theme1.xml",Fd:"metadata.xml",Gd:"/xl/_rels/workbook.xml.rels",Hd:a,Jd:"http://schemas.openxmlformats.org/markup-compatibility/2006",Kd:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",Ld:"http://schemas.openxmlformats.org/drawingml/2006/main",Md:a,Nd:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",Od:"x14ac",Pd:"x14ac xr xr2 xr3",Qd:"xr",Rd:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",Sd:"http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",Td:"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",Ud:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",Vd:"http://schemas.openxmlformats.org/package/2006/content-types",Wd:"http://schemas.openxmlformats.org/package/2006/relationships",Xd:"http://schemas.openxmlformats.org/drawingml/2006/main",Yd:"http://schemas.microsoft.com/office/drawing/2010/main",Zd:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",$d:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",_d:"http://schemas.microsoft.com/office/excel/2006/main",ae:"http://schemas.openxmlformats.org/markup-compatibility/2006",be:a,ce:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",de:"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",ee:"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures",fe:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",ge:"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",he:"http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",ie:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",je:a,ke:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",le:a,me:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",ne:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",oe:"http://purl.org/dc/elements/1.1/",pe:"http://purl.org/dc/terms/",qe:"http://purl.org/dc/dcmitype/",re:"http://www.w3.org/2001/XMLSchema-instance",se:"application/vnd.openxmlformats-package.core-properties+xml",te:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",ue:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ve:"application/vnd.openxmlformats-officedocument.extended-properties+xml",we:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",xe:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ye:"application/vnd.openxmlformats-officedocument.custom-properties+xml"},function(e){e[e.latin=0]="latin",e[e.cs=1]="cs",e[e.ea=2]="ea",e[e.sym=3]="sym"}(l=t.FontLanguage||(t.FontLanguage={})),s=function(){function e(e,t){this.row=e,this.col=t}return e}(),t.ExcelCell=s,c=function(){function e(e){this.index=e}return e}(),t.ExcelColumn=c,d=function(){function e(e){this.index=e}return e}(),t.ExcelRow=d,u=function(){function e(e,t,r){this.name=e,this.colorScheme=t,this.fontScheme=r}return e}(),t.ExcelTheme=u,f=function(){function e(e,t){this.name=e,this.schemeColors=t}return e}(),t.ColorScheme=f,b=function(){function e(e,t,r){this.name=e,this.majorFont=t,this.minorFont=r}return e}(),t.FontScheme=b,h=function(){function e(e,t){this.script=e,this.typeface=t}return e}(),t.ThemeFont=h,p=function(){function e(e,t){this.runFormattings=e,this.themesFonts=t}return e}(),t.ThemeFonts=p,m=function(){function e(e,t){this.fontLanguage=e,this.typeface=t}return e}(),t.RunFormatting=m,g=function(){function e(){}return e}(),t.SheetInfo=g,y=function(){function e(){}return e}(),t.DefaultContentType=y,S=function(){function e(){}return e}(),t.OverrideContentType=S,C=function(){function e(){}return e}(),w=function(){function e(e,t){this.fileName=e,this.fileType=t,this.relationFiles={count:0}}return e.prototype.ze=function(e){if(!e)return"";this.relationFiles.count++;var r=t.RelationshipConstants.Ja+this.relationFiles.count;return this.relationFiles[r]=e,r},e.prototype.Ae=function(r){var i,n,a,l,s,c,d,u,f;if(r&&(i=this.Be(this.fileName,r)))for(n=0,a=i.length;ni.ExcelConstants.wb||r.col>i.ExcelConstants.vb||r.rowCount>i.ExcelConstants.wb||r.col>i.ExcelConstants.vb||o.push(r)}),o)}t.getRangesFromString=n;function a(e,t){var r,n,a,l,s,c,d,u={},f=e.indexOf("!");if(f>-1&&(e=e.substr(f+1)),r=e.split("$").join(""),r=r.split(":"),1===r.length){if(c=r[0],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),n===-1&&a===-1)return null;u.row=n,u.col=a,u.rowCount=1,u.colCount=1}else 2===r.length&&(c=r[0],d=r[1],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),l=o.IndexHelper.P(d),s=o.IndexHelper.R(d),u.row=n,u.col=a,u.rowCount=l-n+1,u.colCount=s-a+1,t||0!==n||u.rowCount!==i.ExcelConstants.wb||(u.row=-1,u.rowCount=-1),t||0!==a||u.colCount!==i.ExcelConstants.vb||(u.col=-1,u.colCount=-1));return u}function l(e){var t,r,n,a,l,s,c,d=[];for(t=0;t1||r.colCount>1)&&(c+=":"+o.IndexHelper.T(s)+(a+1)),d.push(c);return d.join(" ")}t.getRangeString=l},"./src/common/tuple.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){var e,t,r,o=[];for(e=0;e0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"17.1.3"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r=0&&o=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;wL&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.levelh.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches; +isometricOffAxis4Right:37,isometricOffAxis4Bottom:38,obliqueTopLeft:39,obliqueTop:40,obliqueTopRight:41,obliqueLeft:42,obliqueRight:43,obliqueBottomLeft:44,obliqueBottom:45,obliqueBottomRight:46,perspectiveFront:47,perspectiveLeft:48,perspectiveRight:49,perspectiveAbove:50,perspectiveBelow:51,perspectiveAboveLeftFacing:52,perspectiveAboveRightFacing:53,perspectiveContrastingLeftFacing:54,perspectiveContrastingRightFacing:55,perspectiveHeroicLeftFacing:56,perspectiveHeroicRightFacing:57,perspectiveHeroicExtremeLeftFacing:58,perspectiveHeroicExtremeRightFacing:59,perspectiveRelaxed:60,perspectiveRelaxedModerately:61},Ue(G),t.Charts.ST_PresetCameraType=G,U={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Ue(U),t.Charts.ST_LightRigDirection=U,J={legacyFlat1:0,legacyFlat2:1,legacyFlat3:2,legacyFlat4:3,legacyNormal1:4,legacyNormal2:5,legacyNormal3:6,legacyNormal4:7,legacyHarsh1:8,legacyHarsh2:9,legacyHarsh3:10,legacyHarsh4:11,threePt:12,balanced:13,soft:14,harsh:15,flood:16,contrasting:17,morning:18,sunrise:19,sunset:20,chilly:21,freezing:22,flat:23,twoPt:24,glow:25,brightRoom:26},Ue(J),t.Charts.ST_LightRigType=J,z={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Ue(z),t.Charts.ST_BevelPresetType=z,V={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},Ue(V),t.Charts.ST_PresetMaterialType=V,j={shdw1:0,shdw2:1,shdw3:2,shdw4:3,shdw5:4,shdw6:5,shdw7:6,shdw8:7,shdw9:8,shdw10:9,shdw11:10,shdw12:11,shdw13:12,shdw14:13,shdw15:14,shdw16:15,shdw17:16,shdw18:17,shdw19:18,shdw20:19},Ue(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Ue(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Ue(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Ue(q),t.Charts.ST_BlipCompression=q,Y={pct5:0,pct10:1,pct20:2,pct25:3,pct30:4,pct40:5,pct50:6,pct60:7,pct70:8,pct75:9,pct80:10,pct90:11,horz:12,vert:13,ltHorz:14,ltVert:15,dkHorz:16,dkVert:17,narHorz:18,narVert:19,dashHorz:20,dashVert:21,cross:22,dnDiag:23,upDiag:24,ltDnDiag:25,ltUpDiag:26,dkDnDiag:27,dkUpDiag:28,wdDnDiag:29,wdUpDiag:30,dashDnDiag:31,dashUpDiag:32,diagCross:33,smCheck:34,lgCheck:35,smGrid:36,lgGrid:37,dotGrid:38,smConfetti:39,lgConfetti:40,horzBrick:41,diagBrick:42,solidDmnd:43,openDmnd:44,dotDmnd:45,plaid:46,sphere:47,weave:48,divot:49,shingle:50,wave:51,trellis:52,zigZag:53},Ue(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Ue(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Ue(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Ue($),t.Charts.ST_EffectContainerType=$,t.Charts.ST_PathToType={PathLine:0,PathMove:1,PathQuadBez:2,PathCubicBez:3},ee={line:0,lineInv:1,triangle:2,rtTriangle:3,rect:4,diamond:5,parallelogram:6,trapezoid:7,nonIsoscelesTrapezoid:8,pentagon:9,hexagon:10,heptagon:11,octagon:12,decagon:13,dodecagon:14,star4:15,star5:16,star6:17,star7:18,star8:19,star10:20,star12:21,star16:22,star24:23,star32:24,roundRect:25,round1Rect:26,round2SameRect:27,round2DiagRect:28,snipRoundRect:29,snip1Rect:30,snip2SameRect:31,snip2DiagRect:32,plaque:33,ellipse:34,teardrop:35,homePlate:36,chevron:37,pieWedge:38,pie:39,blockArc:40,donut:41,noSmoking:42,rightArrow:43,leftArrow:44,upArrow:45,downArrow:46,stripedRightArrow:47,notchedRightArrow:48,bentUpArrow:49,leftRightArrow:50,upDownArrow:51,leftUpArrow:52,leftRightUpArrow:53,quadArrow:54,leftArrowCallout:55,rightArrowCallout:56,upArrowCallout:57,downArrowCallout:58,leftRightArrowCallout:59,upDownArrowCallout:60,quadArrowCallout:61,bentArrow:62,uturnArrow:63,circularArrow:64,leftCircularArrow:65,leftRightCircularArrow:66,curvedRightArrow:67,curvedLeftArrow:68,curvedUpArrow:69,curvedDownArrow:70,swooshArrow:71,cube:72,can:73,lightningBolt:74,heart:75,sun:76,moon:77,smileyFace:78,irregularSeal1:79,irregularSeal2:80,foldedCorner:81,bevel:82,frame:83,halfFrame:84,corner:85,diagStripe:86,chord:87,arc:88,leftBracket:89,rightBracket:90,leftBrace:91,rightBrace:92,bracketPair:93,bracePair:94,straightConnector1:95,bentConnector2:96,bentConnector3:97,bentConnector4:98,bentConnector5:99,curvedConnector2:100,curvedConnector3:101,curvedConnector4:102,curvedConnector5:103,callout1:104,callout2:105,callout3:106,accentCallout1:107,accentCallout2:108,accentCallout3:109,borderCallout1:110,borderCallout2:111,borderCallout3:112,accentBorderCallout1:113,accentBorderCallout2:114,accentBorderCallout3:115,wedgeRectCallout:116,wedgeRoundRectCallout:117,wedgeEllipseCallout:118,cloudCallout:119,cloud:120,ribbon:121,ribbon2:122,ellipseRibbon:123,ellipseRibbon2:124,leftRightRibbon:125,verticalScroll:126,horizontalScroll:127,wave:128,doubleWave:129,plus:130,flowChartProcess:131,flowChartDecision:132,flowChartInputOutput:133,flowChartPredefinedProcess:134,flowChartInternalStorage:135,flowChartDocument:136,flowChartMultidocument:137,flowChartTerminator:138,flowChartPreparation:139,flowChartManualInput:140,flowChartManualOperation:141,flowChartConnector:142,flowChartPunchedCard:143,flowChartPunchedTape:144,flowChartSummingJunction:145,flowChartOr:146,flowChartCollate:147,flowChartSort:148,flowChartExtract:149,flowChartMerge:150,flowChartOfflineStorage:151,flowChartOnlineStorage:152,flowChartMagneticTape:153,flowChartMagneticDisk:154,flowChartMagneticDrum:155,flowChartDisplay:156,flowChartDelay:157,flowChartAlternateProcess:158,flowChartOffpageConnector:159,actionButtonBlank:160,actionButtonHome:161,actionButtonHelp:162,actionButtonInformation:163,actionButtonForwardNext:164,actionButtonBackPrevious:165,actionButtonEnd:166,actionButtonBeginning:167,actionButtonReturn:168,actionButtonDocument:169,actionButtonSound:170,actionButtonMovie:171,gear6:172,gear9:173,funnel:174,mathPlus:175,mathMinus:176,mathMultiply:177,mathDivide:178,mathEqual:179,mathNotEqual:180,cornerTabs:181,squareTabs:182,plaqueTabs:183,chartX:184,chartStar:185,chartPlus:186},Ue(ee),t.Charts.ST_ShapeType=ee,te={textNoShape:0,textPlain:1,textStop:2,textTriangle:3,textTriangleInverted:4,textChevron:5,textChevronInverted:6,textRingInside:7,textRingOutside:8,textArchUp:9,textArchDown:10,textCircle:11,textButton:12,textArchUpPour:13,textArchDownPour:14,textCirclePour:15,textButtonPour:16,textCurveUp:17,textCurveDown:18,textCanUp:19,textCanDown:20,textWave1:21,textWave2:22,textDoubleWave1:23,textWave4:24,textInflate:25,textDeflate:26,textInflateBottom:27,textDeflateBottom:28,textInflateTop:29,textDeflateTop:30,textDeflateInflate:31,textDeflateInflateDeflate:32,textFadeRight:33,textFadeLeft:34,textFadeUp:35,textFadeDown:36,textSlantUp:37,textSlantDown:38,textCascadeUp:39,textCascadeDown:40},Ue(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Ue(re),t.Charts.ST_PathFillMode=re,oe={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Ue(oe),t.Charts.ST_LineEndType=oe,ie={sm:0,med:1,lg:2},Ue(ie),t.Charts.ST_LineEndWidth=ie,ne={sm:0,med:1,lg:2},Ue(ne),t.Charts.ST_LineEndLength=ne,ae={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Ue(ae),t.Charts.ST_PresetLineDashVal=ae,le={rnd:0,sq:1,flat:2},Ue(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Ue(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Ue(ce),t.Charts.ST_CompoundLine=ce,de={twoCell:0,oneCell:1,absolute:2},Ue(de),t.Charts.ST_EditAs=de,ue={t:0,ctr:1,b:2,just:3,dist:4},Ue(ue),t.Charts.ST_TextAnchoringType=ue,fe={overflow:0,ellipsis:1,clip:2},Ue(fe),t.Charts.ST_TextVertOverflowType=fe,be={overflow:0,clip:1},Ue(be),t.Charts.ST_TextHorzOverflowType=be,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Ue(he),t.Charts.ST_TextVerticalType=he,pe={none:0,square:1},Ue(pe),t.Charts.ST_TextWrappingType=pe;me={alphaLcParenBoth:0,alphaUcParenBoth:1,alphaLcParenR:2,alphaUcParenR:3,alphaLcPeriod:4,alphaUcPeriod:5,arabicParenBoth:6,arabicParenR:7,arabicPeriod:8,arabicPlain:9,romanLcParenBoth:10,romanUcParenBoth:11,romanLcParenR:12,romanUcParenR:13,romanLcPeriod:14,romanUcPeriod:15,circleNumDbPlain:16,circleNumWdBlackPlain:17,circleNumWdWhitePlain:18,arabicDbPeriod:19,arabicDbPlain:20,ea1ChsPeriod:21,ea1ChsPlain:22,ea1ChtPeriod:23,ea1ChtPlain:24,ea1JpnChsDbPeriod:25,ea1JpnKorPlain:26,ea1JpnKorPeriod:27,arabic1Minus:28,arabic2Minus:29,hebrew2Minus:30,thaiAlphaPeriod:31,thaiAlphaParenR:32,thaiAlphaParenBoth:33,thaiNumPeriod:34,thaiNumParenR:35,thaiNumParenBoth:36,hindiAlphaPeriod:37,hindiNumPeriod:38,hindiNumParenR:39,hindiAlpha1Period:40};Ue(me),t.Charts.ST_TextAutonumberScheme=me,ge={none:0,words:1,sng:2,dbl:3,heavy:4,dotted:5,dottedHeavy:6,dash:7,dashHeavy:8,dashLong:9,dashLongHeavy:10,dotDash:11,dotDashHeavy:12,dotDotDash:13,dotDotDashHeavy:14,wavy:15,wavyHeavy:16,wavyDbl:17},Ue(ge),t.Charts.ST_TextUnderlineType=ge,ye={noStrike:0,sngStrike:1,dblStrike:2},Ue(ye),t.Charts.ST_TextStrikeType=ye,Se={none:0,small:1,all:2},Ue(Se),t.Charts.ST_TextCapsType=Se,Ce={l:0,ctr:1,r:2,dec:3},Ue(Ce),t.Charts.ST_TextTabAlignType=Ce,we={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Ue(we),t.Charts.ST_TextAlignType=we,xe={auto:0,t:1,ctr:2,base:3,b:4},Ue(xe),t.Charts.ST_TextFontAlignType=xe,Ae={auto:0},Ue(Ae),t.Charts.ST_StyleColorVal=Ae,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Ue(Te),t.Charts.ST_FormulaDirection=Te,ve={cat:0,colorStr:1},Ue(ve),t.Charts.ST_StringDimensionType=ve,ke={val:0,x:1,y:2,size:3,colorVal:4},Ue(ke),t.Charts.ST_NumericDimensionType=ke,Fe={l:0,t:1,r:2,b:3},Ue(Fe),t.Charts.ST_SidePos=Fe,Re={t:1,r:2,l:3,b:4},Ue(Re),t.Charts.ST_2016ChartPosLegend=Re,Ee={min:0,ctr:1,max:2},Ue(Ee),t.Charts.ST_PosAlign=Ee,Ie={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Ue(Ie),t.Charts.ST_AxisUnit=Ie,Le={in:1,out:3,cross:0,none:2},Ue(Le),t.Charts.ST_TickMarksType=Le,De={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Ue(De),t.Charts.ST_SeriesLayout=De,Be={none:0,banner:1,overlapping:2},Ue(Be),t.Charts.ST_ParentLabelLayout=Be,Pe={none:0,bestFitOnly:1,showAll:2},Ue(Pe),t.Charts.ST_RegionLabelLayout=Pe,We={l:0,r:1},Ue(We),t.Charts.ST_IntervalClosedSide=We,_e={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Ue(_e),t.Charts.ST_EntityType=_e,Ne={mercator:0,miller:1,robinson:2,albers:3},Ue(Ne),t.Charts.ST_GeoProjectionType=Ne,Me={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Ue(Me),t.Charts.ST_GeoMappingLevel=Me,Oe={inclusive:0,exclusive:1},Ue(Oe),t.Charts.ST_QuartileMethod=Oe,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(He),t.Charts.ST_DataLabelPos=He,Ge={default:0,portrait:1,landscape:2},Ue(Ge),t.Charts.ST_PageOrientation=Ge},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-helper.ts"),l=r("./src/datamodel/datetime-helper.ts"),s=r("./src/common/range-parser.ts"),c=r("./src/xml-io/node-helper.ts"),d=o.StringEx.O,u=n.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,b=null,h=void 0,p="Normal";function S(e,t,r,o,i,n){var a,l,s,c,d=e.itemsData;d&&(a=d[d.length-1],l=d[d.length-2],s=a&&a.info,c=l&&l.info,s&&(o&&i&&1===a.count?c&&l.index===a.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"17.1.7"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r=0&&o=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;wL&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.levelh.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches; if(i)for(r in i)if(i.hasOwnProperty(r)&&i[r]&&i[r][e]===t)return i[r]},e.prototype.Gg=function(e){var t,r,o,i,n,a,l=this,s=e.sp||e.cxnSp,c=s&&s.style,d=s&&s.spPr;c&&(t=c.lnRef,r=void 0,o=void 0,i=d.ln,i||(i={}),t&&(r=t.idx,r&&(o=l.qf(1,r-1),M(o,i),d.ln=i))),n=e.grpSp,n&&(a=n.sp,a&&a.length&&a.forEach(function(e){l.Gg({sp:e})}))},e.prototype.Eg=function(e,t){var r=this;t.shapes=t.shapes||[],e.map(function(e){r.Gg(e);var o=a.convertFromExcelShape(t,e);t.shapes.push(o)})},e.prototype.Hg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.controls=e},e.prototype.Ig=function(e,t){var r=function(e){var t,r,o=e&&e.nvSpPr&&e.nvSpPr.cNvPr,i=o&&o.extLst&&o.extLst.ext||[];for(t=0;t=l.rowCount&&(l.rowCount=o[i].row+1),o[i].col>=l.columnCount&&(l.columnCount=o[i].col+1)},e.prototype.Kg=function(e,t){var r,o,i,a,l,s,c,d,u,f,b,h=this,p=h.Ne,m=p.sheets&&p.sheets[t];for(m.tables=e,r=0;rm.rowCount&&(m.rowCount=e[r].row+e[r].rowCount),e[r].col+e[r].colCount>m.columnCount&&(m.columnCount=e[r].col+e[r].colCount),o=m.data&&m.data.dataTable,i=e[r],a=m.data&&m.data.defaultDataNode&&m.data.defaultDataNode.style&&m.data.defaultDataNode.style.font;for(l in i.style)i.style.hasOwnProperty(l)&&i.style[l]&&i.style[l].font&&(i.style[l].font=n.ConverterHelper.composeFontWeightAndFontStyleToDestFont(i.style[l].font,a));for(s={},c=i.row+i.rowCount,d=i.col+i.colCount,u=i.row;u0&&s0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);l.push(C(5,0,t,!n.blank))}),s=!0),e.customFilters&&(l.push(T(e.customFilters,o.J(t)?i:u.Lg(t,i,a,1))),s=!0),e.dynamicFilter&&(l.push(k(e.dynamicFilter,i,a)),s=!0),e.top10Filter&&(l.push(R(e.top10Filter)),s=!0),s&&(r.filteredColumns.push(a),r.filterItemMap.push({index:a,conditions:l}))}),a=e.sortInfo,a&&a.dxfId===h?r.sortInfo=a:a&&a.dxfId!==h&&(l=void 0,s=e.sortInfo.isBackColor,c=u.hf[a.dxfId]&&u.hf[a.dxfId].fill,c&&(0===c.patternType?l="":(d={},n.ConverterHelper.Ie(c,d),l="object"==typeof d.backColor?JSON.stringify(d.backColor):d.backColor)),r.sortInfo={ascending:a.ascending,index:a.index,isBackColor:s,color:l}),r},e.prototype.Ng=function(e,t){if(!o.J(e)){var r={};return r.filterItemMap=[],e.filterColumns.forEach(function(e){var o=[],i=e.filters;i&&(i.filter.forEach(function(e){o.push(C(t.conType,0,e,i.blank))}),i.dateGroupItem.forEach(function(e){var r=new Date(e.year,e.month>0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);o.push(C(t.conType,0,r,!i.blank))})),e.customFilters&&o.push(v(e.customFilters,t)),e.dynamicFilter&&o.push(F(e.dynamicFilter,t)),e.top10Filter&&o.push(E(e.top10Filter,t)),r.filterItemMap.push({conditions:o})}),r}},e.prototype.Og=function(e,t){if(!o.J(e)){var r=this,i=r.Ne,n=i.sheets&&i.sheets[e];n.rowFilter=r.Mg(t,e),i.allowAutoExtendFilterRange=!0}},e.prototype.Pg=function(e,t){var r,o,i,n,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[t];d.slicers=d.slicers||[],r=d.slicers,o=[];for(i in c.sheets)c.sheets[i].tables&&(o=o.concat(c.sheets[i].tables));n=[];for(l in c.sheets)c.sheets[l].pivotTables&&(n=n.concat(c.sheets[l].pivotTables));e.forEach(function(e){"pivot"===e.type||"timeline"===e.type?e.pivotName=P(e.pivotCacheId,n,c.pivotCaches):(e.tableName=D(e.tableId,o),e.columnName=B(e.tableId,e.columnId,o),delete e.tableId,delete e.columnId),a.inflateWorksheetByAnchor(d,e),r.push(e)})},e.prototype.Qg=function(e,t){var r,i,n,a,l;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],a=r.Rg(t),l=n.validations,l||(l=n.validations=[]),a.ranges=W(t.ranges,", "),l.push(a))},e.prototype.Rg=function(e){var t,r,i,n,a,l,s,c;if(o.J(e))return b;switch(t=e.type,r=e.compareOperator,i=e.firstFormula,n=e.secondFormula,a={type:t},t){case 0:break;case 1:case 2:case 6:l={operator:r,value1:I(i),value2:I(n)};break;case 3:s=i,o.J(s)&&(s=n),s&&(l='"'===s[0]&&'"'===s[s.length-1]?{value:L(s)}:{formula:I(s)});break;case 4:case 5:c=void 0,o.J(i)||(c=parseFloat(i),isNaN(c)||(i=this.hg(c))),o.J(n)||(c=parseFloat(n),isNaN(c)||(n=this.hg(c))),l={operator:r,value1:i&&i.indexOf("/OADate(")!==-1?i:I(i),value2:n&&n.indexOf("/OADate(")!==-1?n:I(n)};break;case 7:l={formula:I(i)}}return l&&(a.validatorInfo=l),a!==b&&(a.errorStyle=e.errorType,a.errorMessage=e.error,a.errorTitle=e.errorTitle,a.ignoreBlank=e.allowBlank,a.inCellDropdown=e.showPromptBox,a.inputMessage=e.prompt,a.inputTitle=e.promptTitle,a.showErrorMessage=e.showErrorMessage,a.showInputMessage=e.showInputMessage),a},e.prototype.Sg=function(e,t){var r,i,n,a;function l(e){return e=e||0,parseInt(Math.round(100*e),10)}o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.margin={top:l(t.top),bottom:l(t.bottom),left:l(t.left),right:l(t.right),header:l(t.header),footer:l(t.footer)})},e.prototype.Tg=function(e,t){var r,i,n,a,l,s,c,d;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.showGridLine=t.printGridLine,l=t.horizontalCentered,s=t.verticalCentered,c=0,l&&s?c=3:l?c=1:s&&(c=2),a.centering=c,d=t.printRowColumnsHeaders?2:1,a.showColumnHeader=d,a.showRowHeader=d)},e.prototype.Ug=function(e,t,r){e.rows||(e.rows=[]);var o=e.rows[t];o?o.pageBreak=r:e.rows[t]={pageBreak:r}},e.prototype.Vg=function(e,t,r){e.columns||(e.columns=[]);var o=e.columns[t];o?o.pageBreak=r:e.columns[t]={pageBreak:r}},e.prototype.Wg=function(e,t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y,S;function C(e){var t,r,o,i,n;if(e===h)return b;if(t=["","",""],e===b||""===e)return t;for(r=0,o=1,i=e.length;r0&&(a.zoomFactor=t.zoomFactor),t.useSmartPrint&&(t.smartPrintPagesWidth>=1&&(a.fitPagesWide=t.smartPrintPagesWidth),t.smartPrintPagesHeight>=1&&(a.fitPagesTall=t.smartPrintPagesHeight)),s=t.advancedHeadFooterSetting,s&&(c=a.pageHeaderFooter={},a.differentOddAndEvenPages=s.headerFooterDifferentOddEvenPages,a.differentFirstPage=s.headerFooterDifferentFirstPage,d=C(s.headerOddPage),d&&(s.headerFooterDifferentOddEvenPages?c.odd={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}}:c.normal={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}},a.headerLeft=d[0],a.headerCenter=d[1],a.headerRight=d[2]),u=C(s.footerOddPage),u&&(s.headerFooterDifferentOddEvenPages?(c.odd=c.odd||{},c.odd.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}):(c.normal=c.normal||{},c.normal.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}),a.footerLeft=u[0],a.footerCenter=u[1],a.footerRight=u[2]),f=C(s.headerEvenPage),f&&(c.even={header:{left:f[0],center:f[1],right:f[2],leftImage:s.evenHeaderLeftImage,centerImage:s.evenHeaderCenterImage,rightImage:s.evenHeaderRightImage}}),p=C(s.footerEvenPage),p&&(c.even=c.even||{},c.even.footer={left:p[0],center:p[1],right:p[2],leftImage:s.evenFooterLeftImage,centerImage:s.evenFooterCenterImage,rightImage:s.evenFooterRightImage}),m=C(s.headerFirstPage),m&&(c.first={header:{left:m[0],center:m[1],right:m[2],leftImage:s.firstHeaderLeftImage,centerImage:s.firstHeaderCenterImage,rightImage:s.firstHeaderRightImage}}),g=C(s.footerFirstPage),g&&(c.first=c.first||{},c.first.footer={left:g[0],center:g[1],right:g[2],leftImage:s.firstFooterLeftImage,centerImage:s.firstFooterCenterImage,rightImage:s.firstFooterRightImage}),s.headerLeftImage&&(a.headerLeftImage=s.headerLeftImage),s.headerCenterImage&&(a.headerCenterImage=s.headerCenterImage),s.headerRightImage&&(a.headerRightImage=s.headerRightImage),s.footerLeftImage&&(a.footerLeftImage=s.footerLeftImage),s.footerCenterImage&&(a.footerCenterImage=s.footerCenterImage),s.footerRightImage&&(a.footerRightImage=s.footerRightImage)),y=t.rowBreakLines,y&&y.length>0&&y.forEach(function(e){r.Ug(n,e,!0)}),S=t.columnBreakLines,S&&S.length>0&&S.forEach(function(e){r.Vg(n,e,!0)}))},e.prototype.Xg=function(e,t){var r,o,i,n;e<0||(r=this,o=r.Yg(e),o.printInfo||(o.printInfo={}),i=s.getRangesFromString(t),1===i.length&&(n=i[0],n.row>-1&&(o.printInfo.rowStart=n.row),n.rowCount>0&&(o.printInfo.rowEnd=n.row+n.rowCount-1),n.col>-1&&(o.printInfo.columnStart=n.col),n.colCount>0&&(o.printInfo.columnEnd=n.col+n.colCount-1)))},e.prototype.Zg=function(e,t){var r,i,n,a,l;if(!(e<0))for(r=this,i=r.Yg(e),i.printInfo||(i.printInfo={}),n=s.getRangesFromString(t.replace(","," ")),a=0;at&&(o=parseFloat(e.substring(t+7,r)),isNaN(o)||(e=""+o))),e}function L(e,t,r){var o,i=e.tables||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function D(e,t,r){var o,i=e.spans||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function B(e,t){var r,o=e.spans||[];for(r=0;r=2&&"="===e[0]?e.substring(1):"="===e?"":e}function G(e,t,r,i){var n,a,l;if(1===r.colCount){for(n=[],l=r.row;l0&&(l.value=o/i),l}function V(e){var t=new Date,r=t.getDay(),o=t.getDate(),i=new Date(t),n=new Date(t);switch(e){case 3:i.setDate(o-6);break;case 1:i.setDate(o-1);break;case 0:break;case 2:i.setDate(o+1);break;case 8:i.setDate(o-r-7),n.setDate(o-r-1);break;case 7:i.setDate(o-r),n.setDate(o-r+6);break;case 9:i.setDate(o-r+7),n.setDate(o-r+13);break;case 5:i.setDate(1),i.setMonth(i.getMonth()-1),n.setDate(0);break;case 4:i.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0);break;case 6:i.setDate(1),i.setMonth(i.getMonth()+1),n.setMonth(n.getMonth()+2),n.setDate(0)}return i.setHours(0),i.setMinutes(0),i.setSeconds(0),n.setHours(23),n.setMinutes(59),n.setSeconds(59),{from:i,to:n}}function j(e){var t,r,o,i,n,a,l=new Date,s=l.getDay(),d=l.getDate(),u=new Date(l),f=new Date(l);switch(e){case 11:u.setDate(d-6);break;case 9:u.setDate(d-1);break;case 8:break;case 10:u.setDate(d+1);break;case 16:u.setDate(d-s-7),f.setDate(d-s-1);break;case 15:u.setDate(d-s),f.setDate(d-s+6);break;case 17:u.setDate(d-s+7),f.setDate(d-s+13);break;case 13:u.setDate(1),u.setMonth(u.getMonth()-1),f.setDate(0);break;case 12:u.setDate(1),f.setMonth(f.getMonth()+1),f.setDate(0);break;case 14:u.setDate(1),u.setMonth(u.getMonth()+1),f.setMonth(f.getMonth()+2),f.setDate(0);break;case 18:t=u.getMonth()-u.getMonth()%3+1+3,r=t+3+3,u.setDate(1),u.setMonth(t),f.setMonth(r),f.setDate(0);break;case 19:o=u.getMonth()-u.getMonth()%3+1,i=o+3,u.setDate(1),u.setMonth(o),f.setMonth(i),f.setDate(0);break;case 20:n=u.getMonth()-u.getMonth()%3+1-3,a=o+3-3,u.setDate(1),u.setMonth(n),f.setMonth(a),f.setDate(0);break;case 21:u.setDate(1),u.setMonth(1),u.setFullYear(u.getFullYear()+1),f.setFullYear(f.getFullYear()+2),f.setMonth(0),f.setDate(0);break;case 22:u.setDate(1),u.setMonth(1),f.setFullYear(f.getFullYear()+1),f.setMonth(0),f.setDate(0);break;case 23:u.setDate(1),u.setMonth(1),u.setMonth(u.getFullYear()-1),f.setMonth(0),f.setDate(0);break;case 40:u.setMonth(0,1),u.setHours(0,0,0,0),f.setHours(23,59,59,999)}return u.setHours(0),u.setMinutes(0),u.setSeconds(0),f.setHours(23),f.setMinutes(59),f.setSeconds(59),{from:c.DateTimeHelper.ig(u),to:c.DateTimeHelper.ig(f)}}function X(e){var t,r=e.expected,o={filterType:2,type:r,conType:e.conType,expectTypeId:e.expectTypeId};return r>=0&&r<=15||r>=21&&r<=32?(t=V(r),t.from&&t.to&&(o.value=t.from,o.maxValue=t.to)):o.type=-1,o}function K(e){if(!o.J(e.compareType)){var t={filterType:4};return t.filter1={},t.filter1.operator=e.compareType,o.J(e.expected)?t.filter1.value=H(e.formula):t.filter1.value=e.expected,t}}function q(e){var t,r,i,n;if(!o.J(e.compareType))return t={filterType:4},t.filter1={},r=e.compareType,i=void 0,n=void 0,6===r?(i=5,n=3,t.and=!0):(i=r,n=r),t.filter1.operator=i,e.item1&&!o.J(e.item1.expected)&&(t.filter1.value=e.item1.expected),e.item2&&!o.J(e.item2.expected)&&(t.filter2={},t.filter2.operator=n,t.filter2.value=e.item2.expected),t}function Y(e){var t=e.expected,r=-1;switch(e.compareType){case 0:return{filterType:3,filter:[t]};case 1:r=1;break;case 2:t+="*";break;case 3:r=1,t+="*";break;case 4:t="*"+t;break;case 5:r=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:r=1,t="*"+t+"*"}return{filterType:4,filter1:{operator:r,value:t}}}function Q(e){var t,r,i;if(o.J(e.value1)?o.J(e.item1)||(t=e.item1.expected):t=e.value1,o.J(e.value2)?o.J(e.item2)||(r=e.item2.expected):r=e.value2,!r){switch(i=-1,e.compareType){case 0:return{filterType:3,filter:[t]};case 1:i=1;break;case 2:t+="*";break;case 3:i=1,t+="*";break;case 4:t="*"+t;break;case 5:i=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:i=1,t="*"+t+"*";break;case 8:i=2;break;case 9:i=5;break;case 10:i=4;break;case 11:i=3}return{filterType:4,filter1:{operator:i,value:t}}}return 12===e.compareType?{filterType:4,filter1:{operator:3,value:t},filter2:{operator:5,value:r}}:13===e.compareType?{filterType:4,filter1:{operator:4,value:t},filter2:{operator:2,value:r}}:void 0}function Z(e,t){var r;r="/OADate"===e.expected.substring(0,7)?P(e.expected):new Date(e.expected),t.dateGroupItem=t.dateGroupItem||[],t.dateGroupItem.push({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),dateTimeGrouping:2})}function $(e,t){var r,i,n,a=o.J(e.compareType)?e.operator:e.compareType;if(a>=8&&a<=23||40===a)r={filterType:2,type:t},i=j(a),i.from&&i.to&&(r.value=i.from,r.maxValue=i.to);else if(a>=24&&a<=39)r={filterType:2,type:t};else if(a>=0&&a<=7)return n=q(e),e.isWholeDay&&(n.isWholeDay=e.isWholeDay),n;return r}t.getPivotDateFilter=$;function ee(e){var t,r,o;if(0===e.compareType)return t={filterType:3},Z(e,t),t;switch(r=-1,e.compareType){case 0:break;case 1:r=1;break;case 2:r=4;break;case 3:r=5;break;case 4:r=2;break;case 5:r=3}return r!==-1?(o=E(e),o=I(o),{filterType:4,filter1:{operator:r,value:o}}):void 0}function te(e){var t,r,i=[],n=[];for(n.push(e);n.length>0;)t=n.shift(),0===t.conType?(r=t,o.J(r.item1)||n.push(r.item1),o.J(r.item2)||n.push(r.item2)):i.push(t);return i}function re(e){var t=-1;switch(e){case 0:case 2:case 4:case 6:t=0;break;case 1:case 3:case 5:case 7:t=1;break;default:t=0}return t}function oe(e,t){switch(t){case 0:case 1:return e;case 2:case 3:return e.concat("*");case 4:case 5:return"*".concat(e);case 6:case 7:return"*".concat(e).concat("*");default:return e}}function ie(e){var t={filterType:3,filter:[]};return e.forEach(function(e){o.J(e.expected)||t.filter.push(e.expected)}),t}function ne(e,t){return e.every(function(e){return e.conType===t})}function ae(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g;if(0===e.compareType){if(i=te(e),ne(i,5))return n={filterType:3},i.forEach(function(e){Z(e,n)}),n;if(ne(i,2)){if(s=!1,i.length<=2)for(c=0;c0)return f=i[0],l={filterType:4,filter1:{operator:f.compareType}},o.J(f.expected)?l.filter1.value=H(f.formula):l.filter1.value=f.expected,2===i.length&&(f=i[1],l.filter2={operator:f.compareType},o.J(f.expected)?l.filter2.value=H(f.formula):l.filter2.value=f.expected),l.and=!1,l}return l={filterType:4,and:!1},b=le(t,i[0],r),l.filter1=b.filter1,i.length>1&&(h=le(t,i[1],r),l.filter2=h.filter1),l}if(i=te(e),2===i.length)return l={filterType:4},l.and=!0,p=le(t,i[0],r),o.J(p)||!p.filter1?m:(l.filter1=p.filter1,g=le(t,i[1],r),o.J(g)||!g.filter1?m:(l.filter2=g.filter1,l))}function le(e,t,r){if(e===m)return m;var o=t.conType;if(3===o);else{if(8===o)return U(e,t,r);if(10===o)return z(e,t,r);if(6===o)return X(t);if(11===o||1===o)return K(t);if(2===o)return Y(t);if(5===o)return ee(t);if(0===o)return ae(t,e,r)}}function se(e,t){var r=e.conType;return 3===r?J(e):2===r?q(e):0===r?Q(e):1===r?$(e,t):void 0}function ce(e){var t,r,i;return o.J(e)?m:(t=m,r=m,i=0,i=1===e.compareType?6:7,e.item1&&(t=0===e.item1.conType?ce(e.item1):de(e.item1)),e.item2&&(r=0===e.item2.conType?ce(e.item2):de(e.item2)),new s.Tuple(t,r,i))}function de(e){if(!o.J(e)){var t=e.conType,r,i;return 0===t?ce(e):1===t||7===t?(r=e.compareType,i=e.formula,o.J(i)&&(i=e.expected),new s.Tuple(i,m,r)):4===t?new s.Tuple(o.J(e.formula)?e.expected:e.formula,m,1):12===t||5===t||13===t?(i=E(e),new s.Tuple(i,m,1)):m}}function ue(e){if(e instanceof s.Tuple){var t=e;if(!o.J(t.item1))return ue(t.item1)}else if(!o.J(e))return H(""+e);return""}function fe(e,t,r){var i,n,a,l,s;return o.J(e)?m:(i=de(e.condition),n=m,a=m,o.J(i)||(o.J(i.item1)||(n=ue(i.item1)),o.J(i.item2)||(a=ue(i.item2))),l={},(h(n,t,r)||h(a,t,r))&&(l.external=!0),s=e.type,l.type=s,l.firstFormula=n,l.secondFormula=a,4!==s&&5!==s||(o.J(l.firstFormula)||(l.firstFormula=I(l.firstFormula)),o.J(l.secondFormula)||(l.secondFormula=I(l.secondFormula))),l.compareOperator=e.comparisonOperator,l.allowBlank=e.ignoreBlank,l.error=e.errorMessage,l.errorTitle=e.errorTitle,l.errorStyle=e.errorStyle,l.prompt=e.inputMessage,l.showPromptBox=e.inCellDropdown,l.promptTitle=e.inputTitle,l.showErrorBox=e.showErrorMessage,l.showInputMessage=e.showInputMessage,l)}function be(e,t,r){if(r.ih&&r.ih[e])return r.ih[e];var i=o.ga._(r.namedStyles,e);return i?(W(r,e,i),i):t.ih&&t.ih[e]?t.ih[e]:(i=o.ga._(t.namedStyles,e),i&&W(t,e,i),i)}function he(e,t,r,o){e.forEach(function(e){var i=fe(e,r,o);i.ranges=e.ranges.split(", ").join(" "),t.push(i)})}x={empty:0,thin:1,medium:2,dashed:3,dotted:4,thick:5,double:6,hair:7,mediumDashed:8,dashDot:9,mediumDashDot:10,dashDotDot:11,mediumDashDotDot:12,slantedDashDot:13};function pe(e){if(e){var t={};return e.borderColor&&(t.color=e.borderColor),e.borderStyle&&(t.style=x[e.borderStyle]),t}}function me(e,t){var r,o;if(e){for(r in e)e.hasOwnProperty(r)&&r.indexOf("border")>=0&&(o=e[r],o&&(e[r]=pe(o)));return t&&(e.isSlicerHeader=!0),e}}function ge(e){var t,r,i=e.sheets;if(i)for(t in i)i.hasOwnProperty(t)&&(r=i[t],r.defaults=r.defaults||o.Ea())}function ye(e){var t,r;if(o.J(e)||!Array.isArray(e))return m;for(t=[],r=0;r=0;l--)a[l+h]=a[l];for(s=e.colHeaderData.dataTable,l=0;l0)for(u=e.rows,u||(e.rows=[]),l=0;l=0;l--)f[l+h]=f[l];for(b=e.colHeaderData.rowDataArray,l=0;l0&&(e.frozenRowCount+=h,e.topCellIndex+=h)}function Re(e){var t,r,o,i,n,a=e.colHeaderRowCount||1,l=[],s=e.data,c=s.dataTable,d=c[a-1];if(e.columnCount=e.columnCount||e.columns&&e.columns.length||0,0!==e.rowCount&&0!==e.columnCount){if(d)for(t=0;t=0;t--)n=l[t],i[n.name]?n.name=n.name+" "+t:i[n.name]=!0;e.tables=[{name:e.name,row:a-1,col:0,rowCount:e.rowCount,colCount:e.columnCount,rowFilter:{range:{row:a,col:0,rowCount:e.rowCount-1,colCount:e.columnCount},showFilterButton:!0},columns:l}]}}function Ee(e,t){var r=e;return r.length>255?r=r.slice(-240):(r=t+" "+r,r.length>250&&(r=e+" "+Math.random().toString(36).slice(-6))),r}function Ie(e){Fe(e),delete e.rowFilter,Re(e)}function Le(e,t){var r,i,a,l,s;o.J(e.numberFormat)||(r=e.numberFormat,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.numberFormatId=i.numberFormat.numberFormatId),t.push(i))}function De(e,t){var r={name:e};return l.getPictureInfo(t,r),r}function Be(e,t,r){var i=m,n=p,a=!1;return o.J(e)||(k(e)?Array.isArray(e)?i=e.join(","):(n=e.richText,n?i=ye(n):o.J(e._code)||(i=e),a=e._code>=99,a&&r<3&&(r=t?2:3)):(i=e,t&&r<1&&(r=1))),{value:i,richText:n,isSpillError:a,dynamicArrayLevel:r}}function Pe(e){return e&&"'"===e[0]&&"'"===e[e.length-1]&&(e=e.substring(1,e.length-1)),e}A=function(){function e(e){var t=this;t.kh(e),t.Ne=e,t.lh={},t.mh=[],t.nh={},t.oh=[],t.ph={},t.qh=[],t.rh={},t.sh={},t.af=[],t.th=[],t.uh={},t.vh={},t.wh={},t.xh={},t.yh={},t.Ah={},t.Bh={},t.hf=[],t.Ch=[],t.Dh=[],t.Eh=e.allowDynamicArray?1:0,t.Fh={},t.Gh={},t.Hh={},t.Ih=[]}return e.prototype.kh=function(e){var t,r,o,i,n,a,l,s,c,d=e.sheetCount||0;if(e.sheetCount=d+(e.sheetTabCount||0),t=e.activeSheetIndex,r=e.activeSheetTabIndex,(void 0===t||t<0)&&void 0!==r&&r>=0&&(e.activeSheetIndex=d+r),o=e.sheetTabs){i=function(t){if(o.hasOwnProperty(t)){var r=o[t];e.dataManager&&e.dataManager.tables&&r.addition&&r.addition.dataView&&r.addition.dataView.tableName&&(r.jh=e.dataManager.tables.filter(function(e){return e.name===r.addition.dataView.tableName})[0]),Ie(r),ve(r)}};for(n in o)i(n);if(a=e.sheets){for(l in o)o.hasOwnProperty(l)&&(a[l]=o[l]);for(s in a)a.hasOwnProperty(s)&&(c=a[s],"number"==typeof c.order&&(c.index=c.order))}else e.sheets=o}void 0===e.startSheetIndex&&(e.startSheetIndex=0)},e.prototype.$e=function(){var e=n.DefaultStyle.Jh(this.Ne);this.lh.Normal=0,this.af.push(e),this.th.push(e),this.vh[e.name]=this.af.length-1},e.prototype.Kh=function(e){var t=e.index;this.uh[t]||(this.uh[t]={}),this.wh[t]||(this.wh[t]={}),this.xh[t]||(this.xh[t]={}),this.yh[t]||(this.yh[t]={}),this.Ah[t]||(this.Ah[t]={})},e.prototype.Lh=function(e,t){var r,i,n,l,s,c,d,u;if(!e||!t)return!1;if(r=!0,!o.StringEx.L(t.fileName)&&(i=this.Mh(t.fileType),!o.StringEx.L(i))){for(n=new a.OverrideContentType,n.partName=t.fileName,n.contentType=i,l=!1,s=0,c=e.length;s0)for(u in t.relationFiles)t.relationFiles.hasOwnProperty(u)&&"count"!==u&&(r=r&&this.Lh(e,t.relationFiles[u]));return r},e.prototype.Mh=function(e){if(o.StringEx.L(e))return"";switch(e){case i.RelationshipConstants.Sa:return i.XFileConstants.Ib;case i.RelationshipConstants.Pa:return i.XFileConstants.Jb;case i.RelationshipConstants.Ua:return i.XFileConstants.Kb;case i.RelationshipConstants.Na:return i.XFileConstants.Lb;case i.RelationshipConstants.Ra:return i.XFileConstants.Mb;case i.RelationshipConstants.Za:return i.XFileConstants.Ob;case i.RelationshipConstants.$a:return i.XFileConstants.Pb;case i.RelationshipConstants._a:return i.XFileConstants._b;case i.RelationshipConstants.eb:return i.XFileConstants.Qb;case i.RelationshipConstants.jb:return i.XFileConstants.fc;case i.RelationshipConstants.kb:return i.XFileConstants.gc;case i.RelationshipConstants.lb:return i.XFileConstants.Rb;case i.RelationshipConstants.mb:return i.XFileConstants.Sb;case i.RelationshipConstants.pb:return i.XFileConstants.Ub;case i.RelationshipConstants.qb:return i.XFileConstants.Tb;case i.RelationshipConstants.ob:return i.XFileConstants.Vb;case i.RelationshipConstants.sb:return i.XFileConstants.fe;case i.RelationshipConstants.Ka:return i.XFileConstants.se;case i.RelationshipConstants.La:return i.XFileConstants.ve;case i.RelationshipConstants.Ma:return i.XFileConstants.ye;case i.RelationshipConstants.Wa:return i.XFileConstants.cc;case i.RelationshipConstants.Xa:return i.XFileConstants.dc;case i.RelationshipConstants.Ya:return i.XFileConstants.ec;case i.RelationshipConstants.bb:return i.XFileConstants.lc;case i.RelationshipConstants.ub:return i.XFileConstants.ic;case i.RelationshipConstants.tb:return i.XFileConstants.hc;default:return""}},e.prototype.Nh=function(e,t,r,o,i){var n,a,s,c,d,u,f,b,h,p,m,y,C,w=this,x=w.Ne,A=x.namedStyles;for(n=0;n0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets;for(r in b)if(b.hasOwnProperty(r)&&(i=b[r],n=i.namedStyles,n&&n.length>0)){if(!t)if(t={},f.namedStyles)for(a=f.namedStyles,l=0;l255;)d=Ee(d,i.name);s.name=d,f.namedStyles.push(s),t[d]=1,c!==d&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[c]=d)}}},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o=n.index&&e=n.index&&e=0&&tt&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r=0&&o=0&&i9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.range,n=t.adjustRangeForFrozen?E.frozenRowCount:0,a={range:O(E,i,n),filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,n,s,c,d;if(!(e.index=i.col+i.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],n=1;n0){for(d=i.row-1,u=i.col,f=i.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),left:Te(n.left,t.bottom),right:Te(n.right,t.bottom), +t.Dh.push(e)),r},e.prototype.ci=function(e){var t=this,r=e.slicers,i=t.fi();r&&r.length>0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets;for(r in b)if(b.hasOwnProperty(r)&&(i=b[r],n=i.namedStyles,n&&n.length>0)){if(!t)if(t={},f.namedStyles)for(a=f.namedStyles,l=0;l255;)d=Ee(d,i.name);s.name=d,f.namedStyles.push(s),t[d]=1,c!==d&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[c]=d)}}},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o=n.index&&e=n.index&&e=0&&tt&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r=0&&o=0&&i9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.adjustRangeForFrozen?E.frozenRowCount:0,n=O(E,t.range,i),a={range:n,filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,i,s,c,d;if(!(e.index=n.col+n.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],i=1;i0){for(d=n.row,u=n.col,f=n.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),left:Te(n.left,t.bottom),right:Te(n.right,t.bottom), header:Te(n.header,t.bottom),footer:Te(n.footer,t.bottom)}:m},e.prototype.Lj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo;if(i)return t=i.centering,{horizontalCentered:1===t||3===t,verticalCentered:2===t||3===t,printGridLine:i.showGridLine,printRowColumnsHeaders:2===i.showRowHeader&&2===i.showColumnHeader}},e.prototype.Mj=function(e,t){var r,i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C;function w(e,t,r){return e=e||"",t=t||"",r=r||"","&L"+e+"&C"+t+"&R"+r}function x(e,t,r){if(e[t]&&e[t][r]){var o=e[t][r];return w(o.left,o.center,o.right)}}return r=this.Ne,i=r.sheets&&r.sheets[e],(n=i.printInfo)?(a={},l=n.fitPagesTall,s=n.fitPagesWide,o.J(l)||l===-1||(a.useSmartPrint=!0,a.smartPrintPagesHeight=Math.max(0,l)),o.J(s)||s===-1||(a.useSmartPrint=!0,a.smartPrintPagesWidth=Math.max(0,s)),t||(n.paperSize&&(c=n.paperSize.kind,0!==c&&(a.paperSizeIndex=c)),a.copies=1,o.J(n.firstPageNumber)||(a.useCustomStartingPage=!0,a.firstPageNumber=n.firstPageNumber),a.orientation=2===n.orientation?2:1,a.pageOrder=1===n.pageOrder?1:2,a.zoomFactor=parseFloat(n.zoomFactor),a.showColor=!n.blackAndWhite,a.advancedHeadFooterSetting={},d=a.advancedHeadFooterSetting,u=n.pageHeaderFooter,f=void 0,u?(d.headerFooterDifferentFirstPage=n.differentFirstPage,f=x(u,"first","header"),f&&(d.headerFirstPage=f),f=x(u,"first","footer"),f&&(d.footerFirstPage=f),b=n.differentOddAndEvenPages,d.headerFooterDifferentOddEvenPages=n.differentOddAndEvenPages,f=b?x(u,"odd","header"):x(u,"normal","header"),f&&(d.headerOddPage=f),f=b?x(u,"odd","footer"):x(u,"normal","footer"),f&&(d.footerOddPage=f),f=x(u,"even","header"),f&&(d.headerEvenPage=f),f=x(u,"even","footer"),f&&(d.footerEvenPage=f)):(h=w(n.headerLeft,n.headerCenter,n.headerRight),p=w(n.footerLeft,n.footerCenter,n.footerRight),a.advancedHeadFooterSetting={headerEvenPage:h,headerOddPage:h,footerOddPage:p,footerEvenPage:p}),g=i.rows,y=[],g&&g.length>0&&g.forEach(function(e,t){e&&e.pageBreak&&y.push(t)}),S=i.columns,C=[],S&&S.length>0&&S.forEach(function(e,t){e&&e.pageBreak&&C.push(t)}),y.length>0&&(a.rowBreakLines=y),C.length>0&&(a.columnBreakLines=C)),a):m},e.prototype.Nj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].printInfo},e.prototype.Oj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].rowFilter},e.prototype.Pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=r.shapes,i=[];return o&&o.length>0&&this.Qj(o,i),i},e.prototype.Qj=function(e,t){var r=this;e.forEach(function(e,o){var i,n,a,l;1===e.shapeType?(i=void 0,e.shapeData&&e.shapeData.pic&&e.shapeData.pic.cameraTool?i=e.shapeData.pic:e.cameraTool===!0&&(i=e),i&&(n=o+1,a=De("Picture_x0020_"+n,i.src),a.style=i.vmlStyle,a.anchor=i.anchor,a.cellRange=i.cellRange,a.spid="_x0000_s10"+i.spid,t.push(a))):3===e.shapeType&&(l=e.shapeData&&e.shapeData.grpSp&&e.shapeData.grpSp.sp||e.sp,l&&r.Qj(l,t))})},e.prototype.Rj=function(e){var t,r,o,i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e],d=c.printInfo,u=[];return d&&(t=d.pageHeaderFooter,t?(r=t.normal,o=t.odd,o?(i=o.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=o.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))):r&&(i=r.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=r.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))),a=t.even,a&&(i=a.header||{},i.leftImage&&u.push(De("LHEVEN",i.leftImage)),i.centerImage&&u.push(De("CHEVEN",i.centerImage)),i.rightImage&&u.push(De("RHEVEN",i.rightImage)),n=a.footer||{},n.leftImage&&u.push(De("LFEVEN",n.leftImage)),n.centerImage&&u.push(De("CFEVEN",n.centerImage)),n.rightImage&&u.push(De("RFEVEN",n.rightImage))),l=t.first,l&&(i=l.header||{},i.leftImage&&u.push(De("LHFIRST",i.leftImage)),i.centerImage&&u.push(De("CHFIRST",i.centerImage)),i.rightImage&&u.push(De("RHFIRST",i.rightImage)),n=l.footer||{},n.leftImage&&u.push(De("LFFIRST",n.leftImage)),n.centerImage&&u.push(De("CFFIRST",n.centerImage)),n.rightImage&&u.push(De("RFFIRST",n.rightImage)))):(d.headerLeftImage&&u.push(De("LH",d.headerLeftImage)),d.headerCenterImage&&u.push(De("CH",d.headerCenterImage)),d.headerRightImage&&u.push(De("RH",d.headerRightImage)),d.footerLeftImage&&u.push(De("LF",d.footerLeftImage)),d.footerCenterImage&&u.push(De("CF",d.footerCenterImage)),d.footerRightImage&&u.push(De("RF",d.footerRightImage)))),u},e.prototype.Sj=function(){return this.vh},e.Bi={"20% - Accent1":30,"20% - Accent2":34,"20% - Accent3":38,"20% - Accent4":42,"20% - Accent5":46,"20% - Accent6":50,"40% - Accent1":31,"40% - Accent2":35,"40% - Accent3":39,"40% - Accent4":43,"40% - Accent5":47,"40% - Accent6":51,"60% - Accent1":32,"60% - Accent2":36,"60% - Accent3":40,"60% - Accent4":44,"60% - Accent5":48,"60% - Accent6":52,Accent1:29,Accent2:33,Accent3:37,Accent4:41,Accent5:45,Accent6:49,Bad:27,Calculation:22,"Check Cell":23,Comma:3,"Comma [0]":6,Currency:4,"Currency [0]":7,"Explanatory Text":53,Good:26,"Heading 1":16,"Heading 2":17,"Heading 3":18,"Heading 4":19,Input:20,"Linked Cell":24,Neutral:28,Normal:0,Note:10,Output:21,Percent:5,Title:15,Total:25,"Warning Text":11,Hyperlink:8,FollowedHyperLink:9,RowLevel_1:1,RowLevel_2:1,RowLevel_3:1,RowLevel_4:1,RowLevel_5:1,RowLevel_6:1,RowLevel_7:1,ColLevel_1:2,ColLevel_2:2,ColLevel_3:2,ColLevel_4:2,ColLevel_5:2,ColLevel_6:2,ColLevel_7:2},e}(),t.WriterDataModel=A},"./src/datamodel/datetime-helper.ts":function(e,t,r){"use strict";var o,i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=null,n=void 0;function l(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t===-321&&(t=-321-10/60),t===-507&&(t=-507-52/60),t===-402&&(t=-402-4/60),t}a=function(){function e(){}return e.jg=function(e){return"/OADate("+e+")/"},e.Tj=function(e){return"string"==typeof e&&"/OADate("===e.substr(0,8)?parseInt(e.substr(8,e.length-8-1-1),10):e},e.ig=function(e){return e===n||e===i?0:("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date?(1440*e.getTime()+3181192704e6-864e5*l(e))/124416e6:0)},e.Je=function(e){var t,r=e-25569,o=new Date(864e5*r),i=r>=0?1:-1,n=l(o),a=(864e5*e*1440+i-3181192704e6+864e5*n)/1440,s=new Date(a),c=n>=0?1:-1,d=new Date(a+36e5*c),u=l(d);return Math.abs(n-u)>=60?new Date(a+60*(u-n)*1e3):(t=e+"",s=999===s.getMilliseconds()&&"33333333"===t.substr(t.length-8)?new Date(s.valueOf()+1):s)},e.vf=function(t){var r,o,n,a,l,s,c;if(!t||" "===t)return!1;if(0===t.length)return!1;if(t=t.toUpperCase(),t=t.replace(/(\[.*\])+/g," "),t=t.replace(/"[^"]*"/g," "),t=t.replace(/(\*.|_.|\\.)+/g," "),t.indexOf("GENERAL")!==-1)return!1;for(r=-1,o=0,n=!1,a=null,l=0;l0&&"\\"!==t[l-1])&&(n=!0,r=l,o=1);else{if(n=!1," "===s&&a)return!0;0!==o&&(c=t.substring(r,r+o),r=l,o=0,a=a===i?e.Uj(c):a&&e.Uj(c))}}return 0!==o&&l===t.length&&(c=t.substring(r,r+o),a=a===i?e.Uj(c):a&&e.Uj(c)),!!a},e.Uj=function(e){var t,r,i,a,l,s,c,d,u;if(o.StringEx.O(e))return!1;for(t=[],r="",i=0,a=e.length;iu)return!1}return!0},e}(),t.DateTimeHelper=a},"./src/datamodel/excel-helper.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/datamodel/excel-style.ts"),n=r("./src/datamodel/chart-model.ts"),a=r("./src/common/excel-types.ts"),l=null;function h(e,t,r){var o,i=e.defaults.colWidth,n=e.columns,a=0,s=n?l:i;for(o=t;o0?(c--,o=r-o):o=t-s,{col:c,colOffset:o}}function S(e,t){for(var r,o,i=e.defaults.rowHeight,n=e.rowsVisibleInfo||e.rows,s=0,c=0,d=n&&n.length||a.ExcelConstants.wb,u=n?l:i;s0?(c--,o=r-o):o=t-s,{row:c,rowOffset:o}}function C(e,t){var r=t.x,o=t.y,i={},n={},a=S(e,o);return A(a,i,["row","rowOffset"]),a=y(e,r),A(a,i,["col","colOffset"]),a=S(e,o+t.height),A(a,n,["row","rowOffset"]),a=y(e,r+t.width),A(a,n,["col","colOffset"]),{startPoint:i,endPoint:n}}function w(e,t){if(!t)return!1;if(t.items)return t.items[e]&&t.items[e].viewCollapsed;if(!t.itemsData)return!1;t.collapseIndexMap||x(t);var r=t.collapseIndexMap;return!!r[e]}t.isCollapsed=w;function x(e){var t,r,o,i,n,a,l,s=e.itemsData,c=e.collapseIndexMap={},d=!1;if(0===e.direction){for(t=s.length-1;t>=0;t--)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){for(i=o.index+o.count,n=t+1;no.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l=0;n--)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index+a.count-1===i&&(i=a.index-1);for(l=i+1;l0&&(t.base64Image=e.substr(o+d.length),r=e.substr(0,o).split("/").pop(),"x-icon"===r&&(r="png"),t.imageType=r)}t.getPictureInfo=O;function H(e){if(!e)return!1;var t={};return O(e,t),"svg+xml"===t.imageType}t.isSVGPicture=H;function G(e,t,r){function o(e){return e.name===this.name}function i(t){var r=o.bind({name:t});return void 0!==e.filter(r)[0]}t=t||r;for(var n=t,a=1;i(n);)n=t+"_"+a,a++;return n}function U(e,t){var r,o,n,a,l;return e?(r=e.fillFormat,r&&1===r.fillFormatType&&(t.backColor=i.ColorHelper.toRGBColor(r.color)),o=e.lineFormat,void(o&&(t.borderWidth=o.width,n=o.fillFormat,n&&1===n.fillFormatType?t.borderColor=i.ColorHelper.toRGBColor(n.color):n&&0===n.fillFormatType&&(t.noFill=!0),a=o.lineDashType,a&&(l=o.compoundLineType,t.borderStyle=W(a,l))))):null}u=2;function J(e,t,r){e.rowCountg?S:S+(g-F)/2,L=k>p?w:w+(p-k)/2;for(p=R,g=E,r=0,o=y,i=I,n=!1;og+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;sp+L){T=s-1<0?0:s-1,v=u-(l-p-L);break}return t.width=p,t.height=g,t.startRow=y,t.startRowOffset=S,t.endRow=x,t.endRowOffset=A,t.startColumn=C,t.startColumnOffset=w,t.endColumn=T,t.endColumnOffset=v,t}function te(e,t){var r,o,i,n,a,l,s,c,d=e.rowCount,u=e.columnCount,f=t.width,b=t.height,p=t.startRow,g=t.startRowOffset||0,y=t.startColumn,S=t.startColumnOffset||0,C=t.endRow,w=t.endRowOffset||0,x=t.endColumn,A=t.endColumnOffset||0,T=t.originalWidth,v=t.originalHeight,k=f/b,F=T/v,R=0,E=0,I=f,L=b;if(b>0&&v>0&&k>F)I=F*b,R=S+f/2-I/2,f=I,b=1/F*f;else{if(!(f>0&&T>0&&1/k>1/F))return t;L=1/F*f,E=g+b/2-L/2,b=L,f=F*b}if(R>0){for(;yI+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;pL+g){w=c-(l-L-g),C=s-1<0?0:s-1;break}}return t.width=f,t.height=b,t.startRow=p,t.startRowOffset=g,t.endRow=C,t.endRowOffset=w,t.startColumn=y,t.startColumnOffset=S,t.endColumn=x,t.endColumnOffset=A,t}function re(e,t){var r,o,i,n,a,l,s=e.rowCount,c=e.columnCount,d=t.width,u=t.height,f=t.startRow,b=t.startRowOffset||0,p=t.startColumn,g=t.startColumnOffset||0,y=t.endRow,S=t.endRowOffset||0,C=t.endColumn,w=t.endColumnOffset||0,x=t.originalWidth,A=t.originalHeight;for(d=Math.min(d,x),u=Math.min(u,A),r=0,o=f;ou+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;ad+g){C=a-1<0?0:a-1,w=l-(n-d-g);break}return t.width=d,t.height=u,t.startRow=f,t.startRowOffset=b,t.endRow=y,t.endRowOffset=S,t.startColumn=p,t.startColumnOffset=g,t.endColumn=C,t.endColumnOffset=w,t}function oe(e,t,r,o){var i=t.anchorType;return 0===i?X(e,t):1===i?K(e,t):2===i?q(t):3===i?Y(t,r,o):4===i?Q(t,r,o):null}function ie(e){var t=e.anchorType||e.editAs||0,r=!0,o=!0;return 2===t?(r=!1,o=!1):1===t&&(o=!1),{dynamicMove:r,dynamicSize:o}}function ne(e,t){var r;return e===!1&&t===!1?r=2:t===!1&&(r=1),r}function ae(e,t,r){var o={x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0};return{startPoint:{x:(o.x/t).toFixed(5),y:(o.y/r).toFixed(5)},endPoint:{x:((o.x+o.width)/t).toFixed(5),y:((o.y+o.height)/r).toFixed(5)}}}function le(e){var t,r,o;return e?(t=i.ColorHelper.toExcelColor(e),r=t.colorType(),2===r?(o=i.ColorHelper.getRGBAColorData(t),{srgbClr:{val:o.rgb}}):3===r?{schemeClr:{val:t.value()}}:null):null}function se(e,t,r){return{x:e.x*r-e.y*t,y:e.x*t+e.y*r}}f=Math.PI/180/6e4;function ce(e){var t,r,i,n,a,l,s,c,d,u,b,h,p,m,g,y,S,C,w,x;if(e&&!o.J(e.rot))return t=e.rot,r=e.off,i=e.ext,n=r.x,a=r.y,l=i.cx,s=i.cy,c=l/2,d=s/2,u=t*f,b=Math.sin(u),h=Math.cos(u),p=n+c,m=a+d,g=[],y=[],[{x:-c,y:-d},{x:c,y:-d},{x:-c,y:d},{x:c,y:d}].forEach(function(e){var t=se(e,b,h);g.push(t.x+p),y.push(t.y+m)}),S=Math.min.apply(null,g),C=Math.max.apply(null,g),w=Math.min.apply(null,y),x=Math.max.apply(null,y),{x:S,y:w,width:C-S,height:x-w}}function de(e,t,r,o){var i,n,a=ce(o)||oe(t,e),l=ie(e);r.dynamicMove=l.dynamicMove,r.dynamicSize=l.dynamicSize,A(a,r,["x","y","width","height"]),0===e.anchorType?(i=o?C(t,a):e,I(i,r)):i=C(t,a),z(t,i),n=e.clientData,n&&(r.isLocked=n.fLocksWithSheet,r.canPrint=n.fPrintsWithSheet)}function ue(e,t){var r,i,n,a,l,s,c,d,u,f,b;return z(e,t),n=o.Util.za(t),a=n&&n.layoutId,l=o.Util.Aa(a),r=l?t.AlternateContent&&t.AlternateContent.Choice&&t.AlternateContent.Choice.GraphicalObjectFrame&&t.AlternateContent.Choice.GraphicalObjectFrame.nvGraphicFramePr:2===t.shapeType?t.nvGraphicFramePr:t.graphicFrame&&t.graphicFrame.nvGraphicFramePr,i=r&&r.cNvPr,s=G(e.charts,i.name,"chart"),c=t.chartSpace,d={name:s,chartSpace:c,isVisible:!i.hidden,alt:i.descr,AlternateContent:t.AlternateContent},de(t,e,d,t.xfrm),u=d.width,f=d.height,b=c.userShapes,b&&(c.userShapes=b.map(function(t){return t.pic?me(e,t,u,f):t.graphicFrame?he(e,t,u,f):void 0})),d}t.convertFromExcelChart=ue;function fe(e,t){var r,o=t.shapeData;return o.editAs=ne(t.dynamicMove,t.dynamicSize),o.clientData={fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},r=t.alt,r&&(o.sp?o.sp.nvSpPr.cNvPr.descr=r:o.cxnSp?o.cxnSp.nvCxnSpPr.cNvPr.descr=r:o.grpSp?o.grpSp.nvGrpSpPr.cNvPr.descr=r:o.pic&&(o.pic.nvPicPr.cNvPr.descr=r)),o}t.convertToExcelShape=fe;function be(e,t){var r,i=Z(e,t),n=t.isVisible,a=t.chartSpace,l={anchorType:0,startPoint:i.startPoint,endPoint:i.endPoint,editAs:i.editAs,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:t.name,descr:t.alt||"",hidden:!o.J(n)&&!n}}},clientData:{fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},chartSpace:a,AlternateContent:t.AlternateContent},s=1,c=a.userShapes;return c&&c.length>0&&(r=c.map(function(e){var r;return"1"===e.typeName?(r=ge(e,s,t.width,t.height),s++):"2"===e.typeName&&(r=pe(e,s,t.width,t.height),s++),r}).filter(function(e){return!!e}),r.length>0?a.userShapes={relSizeAnchor:r}:delete a.userShapes),l}t.convertToExcelChart=be;function he(e,t,r,o){var i=t.graphicFrame&&t.graphicFrame.nvGraphicFramePr&&t.graphicFrame.nvGraphicFramePr.cNvPr&&t.graphicFrame.nvGraphicFramePr.cNvPr,n=G(e.charts,i.name,"chart"),a=oe(e,t,r,o),l={name:n,chartSpace:t.chartSpace,isVisible:!i.hidden,alt:i.descr};return A(a,l,["x","y","width","height"]),l}function pe(e,t,r,i){var n=ae(e,r,i),a=e.isVisible;return{typeName:e.typeName,anchorType:3,startPoint:n.startPoint,endPoint:n.endPoint,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:e.name,descr:e.alt||"",hidden:!o.J(a)&&!a}}},chartSpace:e.chartSpace}}function me(e,t,r,o){var i,n,a,l,s,c=t.pic&&t.pic.nvPicPr&&t.pic.nvPicPr.cNvPr,d=c.name,u=e.floatingObjects;return u&&(d=G(u,d,"picture")),i=t.pic&&t.pic.blipFill,n=i&&i.blip&&i.blip.blipBlob,a=n&&n.blob,l={name:d,alt:c.descr,src:a,isVisible:!c.hidden},s=oe(e,t,r,o),A(s,l,["x","y","width","height"]),U(t.pictureFormat,l),l}function ge(e,t,r,o){var i,a,l=ae(e,r,o),s={typeName:e.typeName,anchorType:3,startPoint:l.startPoint,endPoint:l.endPoint,pic:{nvPicPr:{cNvPr:{name:e.name,descr:e.alt||""},cNvPicPr:{picLocks:{}}},spPr:{ln:{w:_(e.borderStyle)?0:e.borderWidth},prstGeom:{prst:1,avLst:{}}}},src:e.src},c=s.pic.spPr,d=c.ln,u=le(e.backColor);return u&&(c.solidFill=u),i=le(e.borderColor),i&&(d.solidFill=i),a=N(e.borderStyle),"dbl"===a?d.cmpd=n.Charts.ST_CompoundLine[a]:d.prstDash=n.Charts.ST_PresetLineDashVal[a],s}function ye(e,t){return!(!e||!t||e.color!==t.color||e.type!==t.type)||!e&&!t}t.isBorderEqual=ye,b={backColor:2,foreColor:0,borderBottom:1,borderLeft:1,borderRight:1,borderTop:1,font:0,textDecoration:0};function Se(e,t){var r,i={};for(r in e)e.hasOwnProperty(r)&&(0===b[r]?e[r]!==t[r]&&(i[r]=e[r]):1===b[r]?ye(e[r],t[r])||(i[r]=e[r]):2===b[r]?o.Util.Da(e[r],t[r])||(i[r]=e[r]):i[r]=e[r]);return i}t.processTableCellStyle=Se;function Ce(e,t){var r,o={};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);for(r in b)void 0===e[r]&&void 0!==t[r]&&(o[r]=t[r]);return o}t.resetTableCellStyle=Ce;function we(e,t){var r,o="png",i=e.lastIndexOf(".");return i!==-1&&(o=e.substr(i+1)),"svg"===o&&(o="svg+xml"),r=t(e,!0),r?"data:image/"+o+";base64,"+r:l}t.getImageContent=we;function xe(e){return JSON.parse(JSON.stringify(e))}function Ae(e){var t=e.sp||e.cxnSp||e.grpSp;return t&&(t.spPr&&t.spPr.xfrm||t.grpSpPr&&t.grpSpPr.xfrm)}t.getXFrm=Ae;function Te(e,t){if(e&&5===e.shapeType){var r=t[e.nvSpPr.cNvPr.id];r&&(e.shapeType=7,e.control=r)}}function ve(e,t){var r=e&&e.sp||[];r.forEach(function(e){5===e.shapeType?Te(e,t):3===e.shapeType&&ve(e,t)})}function ke(e,t){var r,o,i={},n=e.controls||{};return de(t,e,i),t.sp?(Te(t.sp,n),i.shapeType=t.sp.shapeType,i.name=t.sp.nvSpPr.cNvPr.name,i.alt=t.sp.nvSpPr.cNvPr.descr,i.shapeData=xe(t)):t.cxnSp?(i.shapeType=t.cxnSp.shapeType,i.name=t.cxnSp.nvCxnSpPr.cNvPr.name,i.alt=t.cxnSp.nvCxnSpPr.cNvPr.descr,i.shapeData=xe(t)):t.grpSp?(ve(t.grpSp,n),i.shapeType=t.grpSp.shapeType,i.name=t.grpSp.nvGrpSpPr.cNvPr.name,i.alt=t.grpSp.nvGrpSpPr.cNvPr.descr,i.shapeData=xe(t)):t.pic&&(r=t.pic,i.shapeType=r.shapeType,i.name=r.nvPicPr.cNvPr.name,i.alt=r.nvPicPr.cNvPr.descr,i.shapeData=xe(t)),o=i.shapeData,o&&o.hidden&&(o.isVisible=!1,i.isVisible=!1,delete o.hidden),i}t.convertFromExcelShape=ke,t.toProtectionOptions={selectLockedCells:"allowSelectLockedCells",selectUnlockedCells:"allowSelectUnlockedCells",autoFilter:"allowFilter",sort:"allowSort",insertColumns:"allowInsertColumns",insertRows:"allowInsertRows",deleteColumns:"allowDeleteColumns",deleteRows:"allowDeleteRows",objects:"allowEditObjects"},t.fromProtectionOptions={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},t.excelSupportProtectionOptions={formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,sort:!0,autoFilter:!0,pivotTables:!0};function Fe(e){return Ee(e)?(e>4294934530&&e<4294967296&&(e-=4294967296),e):e}t.convertFirstPageNumber=Fe;function Re(e){return Ee(e)?(e<0&&(e+=4294967296),e):e}t.convertFirstPageNumberToExcel=Re;function Ee(e){return"string"==typeof e&&(e=+e),!(isNaN(e)||!isFinite(e))}},"./src/datamodel/excel-style.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/builtIn-resource.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-reader.ts"),l=r("./src/xlsx-io/reader/style-reader.ts"),s=null,c=void 0,d="Headings",u="Body",f="Calibri",b="bold",h="italic",function(e){e[e.none=0]="none",e[e.major=1]="major",e[e.minor=2]="minor",e[e.ninched=255]="ninched"}(p=t.FontSchemeCategory||(t.FontSchemeCategory={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(m=t.ExcelVerticalAlignment||(t.ExcelVerticalAlignment={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerContinuous=6]="centerContinuous",e[e.distributed=7]="distributed"}(g=t.ExcelHorizontalAlignment||(t.ExcelHorizontalAlignment={})),function(e){e[e.accordingToContext=0]="accordingToContext",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(y=t.TextDirection||(t.TextDirection={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleaccounting=3]="singleaccounting",e[e.doubleaccounting=4]="doubleaccounting"}(S=t.UnderLineStyle||(t.UnderLineStyle={})),function(e){e[e.baseLine=0]="baseLine",e[e.superscript=1]="superscript",e[e.subscript=2]="subscript"}(C=t.VertAlign||(t.VertAlign={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(w=t.ExcelBorderStyle||(t.ExcelBorderStyle={})),function(e){e[e.none=0]="none",e[e.solid=1]="solid",e[e.darkGray=2]="darkGray",e[e.mediumGray=3]="mediumGray",e[e.lightGray=4]="lightGray",e[e.gray125=5]="gray125",e[e.gray0625=6]="gray0625",e[e.darkHorizontal=7]="darkHorizontal",e[e.darkVertical=8]="darkVertical",e[e.darkDown=9]="darkDown",e[e.darkUp=10]="darkUp",e[e.darkGrid=11]="darkGrid",e[e.darkTrellis=12]="darkTrellis",e[e.lightHorizontal=13]="lightHorizontal",e[e.lightVertical=14]="lightVertical",e[e.lightDown=15]="lightDown",e[e.lightUp=16]="lightUp",e[e.lightGrid=17]="lightGrid",e[e.lightTrellis=18]="lightTrellis"}(x=t.FillPatternType||(t.FillPatternType={})),A=function(){function e(e,t,r){var o=this;if(3===e&&t>11&&241!==t&&242!==t&&243!==t&&244!==t&&255!==t)throw Error("themeColorIndexError");if(r>1||r<-1)throw Error("colorTintError");1===e&&32767===t&&(o.Vj=!0),o.Wj=e||2,o.Xj=t||0,o.Yj=r||0}return e.prototype.colorType=function(){return this.Wj},e.prototype.value=function(){return this.Xj},e.prototype.tint=function(){return this.Yj},e.prototype.isAutoColor=function(e){var t=this;return 0===arguments.length?t.Vj:void("boolean"==typeof e&&e!==t.Vj&&(t.Vj=e))},e.prototype.isIndexedColor=function(){return 1===this.Wj},e.prototype.isRGBColor=function(){return 2===this.Wj},e.prototype.isThemeColor=function(){return 3===this.Wj},e.prototype.equals=function(e){return this===e||!!e&&(this.Wj===e.colorType()&&this.value()===e.value()&&this.tint()===e.tint()&&this.isAutoColor()===e.isAutoColor())},e.EmptyColor=new e,e}(),t.ExcelColor=A,T=function(){function e(e,t){this.color=e||null,this.lineStyle=t||0}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.color?t.color.equals(e.color)&&t.lineStyle===e.lineStyle:!e.color&&t.lineStyle===e.lineStyle)},e.prototype.isDefault=function(){return null===this.color&&0===this.lineStyle},e}(),t.ExcelBorderSide=T,v=function(){function e(){var e=this;e.left=new T,e.top=new T,e.right=new T,e.bottom=new T,e.diagonalUp=new T,e.diagonalDown=new T}return e.prototype.clone=function(){var t=this,r=new e;return r.left=t.left?new T(t.left.color,t.left.lineStyle):t.left,r.right=t.right?new T(t.right.color,t.right.lineStyle):t.right,r.top=t.top?new T(t.top.color,t.top.lineStyle):t.top,r.bottom=t.bottom?new T(t.bottom.color,t.bottom.lineStyle):t.bottom,r.diagonalUp=t.diagonalUp?new T(t.diagonalUp.color,t.diagonalUp.lineStyle):t.diagonalUp,r.diagonalDown=t.diagonalDown?new T(t.diagonalDown.color,t.diagonalDown.lineStyle):t.diagonalDown,r},e.prototype.compose=function(e){var t=this;t.left&&t.left.isDefault()&&(t.left=e.left),t.right&&t.right.isDefault()&&(t.right=e.right),t.top&&t.top.isDefault()&&(t.top=e.top),t.bottom&&t.bottom.isDefault()&&(t.bottom=e.bottom),t.diagonalUp&&t.diagonalUp.isDefault()&&(t.diagonalUp=e.diagonalUp),t.diagonalDown&&t.diagonalDown.isDefault()&&(t.diagonalDown=e.diagonalDown)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.left.equals(e.left)&&t.right.equals(e.right)&&t.top.equals(e.top)&&t.bottom.equals(e.bottom)&&t.diagonalUp.equals(e.diagonalUp)&&t.diagonalDown.equals(e.diagonalDown)); },e}(),t.ExcelBorder=v,k=function(){function e(){}return e.prototype.clone=function(){var t=this,r=new e;return r.bgColor=t.bgColor,r.fgColor=t.fgColor,r.patternType=t.patternType,r.stops=t.stops,r.type=t.type,r.degree=t.degree,r.left=t.left,r.right=t.right,r.top=t.top,r.bottom=t.bottom,r},e.prototype.compose=function(e){var t=this;t.bgColor===c&&(t.bgColor=e.bgColor),t.fgColor===c&&(t.fgColor=e.fgColor),t.patternType===c&&(t.patternType=e.patternType),t.stops===c&&(t.stops=e.stops),t.type===c&&(t.type=e.type),t.degree===c&&(t.degree=e.degree),t.left===c&&(t.left=e.left),t.right===c&&(t.right=e.right),t.top===c&&(t.top=e.top),t.bottom===c&&(t.bottom=e.bottom)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&JSON.stringify(t)===JSON.stringify(e)},e.Default=function(){return e.Zj||(e.Zj=new e,e.Zj.bgColor=c,e.Zj.fgColor=c,e.Zj.patternType=0),e.Zj},e}(),t.ExcelFill=k,F=function(){function e(e,t,r){var o=this;void 0!==t?o.fontColor=t:o.fontColor=null,void 0!==e?o.fontName=e:o.fontName=null,void 0!==r?o.fontFamily=r:o.fontFamily=0,o.isAutoColor=!1,o.isBold=!1,o.isItalic=!1,o.isOutlineStyle=!1,o.isShadowStyle=!1,o.isStrikeOut=!1,o.fontScheme=0,o.fontSize=11,o.charSetIndex=0,o.underLineStyle=0,o.vertAlign=0,o.Zj=null}return e.prototype.equals=function(e){var t,r=this;return r===e||!!e&&(t=r.isBold===e.isBold&&r.isItalic===e.isItalic&&this.isOutlineStyle===e.isOutlineStyle&&this.isShadowStyle===e.isShadowStyle&&this.isStrikeOut===e.isStrikeOut&&this.fontName===e.fontName&&this.fontFamily===e.fontFamily&&this.fontSize===e.fontSize&&this.charSetIndex===e.charSetIndex&&this.underLineStyle===e.underLineStyle&&this.vertAlign===e.vertAlign&&this.fontScheme===e.fontScheme,!!t&&(!r.fontColor&&!e.fontColor||!(!r.fontColor&&e.fontColor)&&(!(r.fontColor&&!e.fontColor)&&r.fontColor.equals(e.fontColor))))},e.prototype.clone=function(){var t=this,r=new e(t.fontName,t.fontColor,t.fontFamily);return r.isAutoColor=t.isAutoColor,r.isBold=t.isBold,r.isItalic=t.isItalic,r.isOutlineStyle=t.isOutlineStyle,r.isShadowStyle=t.isShadowStyle,r.isStrikeOut=t.isStrikeOut,r.fontScheme=t.fontScheme,r.fontSize=t.fontSize,r.charSetIndex=t.charSetIndex,r.underLineStyle=t.underLineStyle,r.vertAlign=t.vertAlign,r.fontColor=t.fontColor,r},e.prototype.Default=function(){var t=this;return t.Zj||(t.Zj=new e,t.Zj.fontSize=11,t.Zj.fontFamily=2,t.Zj.fontColor=new A(1,0,0),t.Zj.fontName="Calibri",t.Zj.charSetIndex=0),t.Zj},e.prototype.compose=function(e){var t=this;null===t.fontColor&&(t.fontColor=e.fontColor),null===t.fontName&&(t.fontName=e.fontName),0===t.fontFamily&&(t.fontFamily=e.fontFamily),t.isAutoColor===!1&&(t.isAutoColor=e.isAutoColor),t.isBold===!1&&(t.isBold=e.isBold),t.isItalic===!1&&(t.isItalic=e.isItalic),t.isOutlineStyle===!1&&(t.isOutlineStyle=e.isOutlineStyle),t.isShadowStyle===!1&&(t.isShadowStyle=e.isShadowStyle),t.isStrikeOut===!1&&(t.isStrikeOut=e.isStrikeOut),0===t.fontScheme&&(t.fontScheme=e.fontScheme),11===t.fontSize&&(t.fontSize=e.fontSize),0===t.charSetIndex&&(t.charSetIndex=e.charSetIndex),0===t.underLineStyle&&(t.underLineStyle=e.underLineStyle),0===t.vertAlign&&(t.vertAlign=e.vertAlign),null===t.Zj&&(t.Zj=e.Zj)},e}(),t.ExcelFont=F,R=function(){function e(e,t){this.numberFormatId=e,this.numberFormatCode=t}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.numberFormatId===e.numberFormatId&&t.numberFormatCode===e.numberFormatCode)},e.prototype.compose=function(e){var t=this;t.numberFormatId===c&&(t.numberFormatId=e.numberFormatId),t.numberFormatCode===c&&(t.numberFormatCode=e.numberFormatCode)},e.prototype.clone=function(){var t=this;return new e(t.numberFormatId,t.numberFormatCode)},e}(),t.ExcelNumerFormat=R,E=function(){function e(){var e=this;e.font=(new F).Default(),e.border=new v,e.applyAlignment=c,e.applyBorder=c,e.applyFill=c,e.applyFont=c,e.applyNumberFormat=c,e.applyProtection=c,e.quotePrefix=c,e.fill=k.Default(),e.numberFormatIndex=0,e.numberFormat=c,e.isStyleFormat=!1,e.parentFormatID=c,e.parentName=c,e.horizontalAlign=0,e.verticalAlign=0,e.isLocked=!1,e.rotation=0,e.isWordWrap=!1,e.isJustfyLastLine=!1,e.isShrinkToFit=!1,e.isFirstSymbolApostrophe=!1,e.readingOrder=0,e.isHidden=!1,e.indent=0,e.isVerticalText=!1}return e.Default=function(){var t=new e;return t.numberFormatIndex=0,t.isLocked=!0,t.verticalAlign=2,t.horizontalAlign=0,t},e.prototype.copyFrom=function(e){var t=this;t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyFill=e.applyFill,t.applyFont=e.applyFont,t.applyNumberFormat=e.applyNumberFormat,t.applyProtection=e.applyProtection,t.fill=null!==e.fill?e.fill.clone():null,t.border=null!==e.border?e.border.clone():null,t.font=null!==e.font?e.font.clone():null,t.numberFormatIndex=e.numberFormatIndex,t.numberFormat=e.numberFormat,t.isStyleFormat=e.isStyleFormat,t.parentFormatID=e.parentFormatID,t.horizontalAlign=e.horizontalAlign,t.verticalAlign=e.verticalAlign,t.isLocked=e.isLocked,t.rotation=e.rotation,t.isWordWrap=e.isWordWrap,t.isJustfyLastLine=e.isJustfyLastLine,t.isShrinkToFit=e.isShrinkToFit,t.isFirstSymbolApostrophe=e.isFirstSymbolApostrophe,t.readingOrder=e.readingOrder,t.isHidden=e.isHidden,t.indent=e.indent,t.quotePrefix=e.quotePrefix},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e,t,r){var o,i=this;if(i===e)return!0;if(!e)return!1;if(!i.numberFormat&&e.numberFormat)return!1;if(o=i.numberFormatIndex===e.numberFormatIndex&&i.horizontalAlign===e.horizontalAlign&&i.verticalAlign===e.verticalAlign&&i.isLocked===e.isLocked&&i.rotation===e.rotation&&i.isWordWrap===e.isWordWrap&&i.isJustfyLastLine===e.isJustfyLastLine&&i.isShrinkToFit===e.isShrinkToFit&&i.isFirstSymbolApostrophe===e.isFirstSymbolApostrophe&&i.readingOrder===e.readingOrder&&i.isHidden===e.isHidden&&i.indent===e.indent&&i.parentFormatID===e.parentFormatID&&i.quotePrefix===e.quotePrefix&&i.border.equals(e.border)&&i.isVerticalText===e.isVerticalText,t||(o=o&&i.parentName===e.parentName),r||(o=o&&i.applyAlignment===e.applyAlignment&&i.applyBorder===e.applyBorder&&i.applyFill===e.applyFill&&i.applyFont===e.applyFont&&i.applyNumberFormat===e.applyNumberFormat&&i.applyProtection===e.applyProtection),i.font)o=o&&i.font.equals(e.font);else if(e.font)return!1;if(i.numberFormat&&(o=o&&i.numberFormat.equals(e.numberFormat)),i.fill)o=o&&i.fill.equals(e.fill);else if(e.fill)return!1;return o},e}(),t.ExtendedFormat=E,I=function(){function e(){this.$j=null,this.builtInStyle=0,this.category=0,this.isCustomBuiltin=!1,this.name=null,this.outLineLevel=0}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):void(t.$j=e)},e.prototype.copy=function(){var t=this,r=new e;return r.builtInStyle=t.builtInStyle,r.outLineLevel=t.outLineLevel,r.isCustomBuiltin=t.isCustomBuiltin,r.category=t.category,r.name=t.name,r.format(t.format().clone()),r},e.prototype.isBuiltInStyle=function(){return!0},e.prototype.getBuiltInStyleCategory=function(){var e=this;if(!e.isBuiltInStyle())return 0;switch(e.builtInStyle){case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 2:case 1:return 4;case 24:return 1;case 19:return 2;case 20:return 2;case 3:case 6:case 4:case 7:return 5;case 49:return 2;case 23:return 1;case 13:case 14:case 15:case 16:return 3;case 17:return 2;case 21:return 2;case 25:return 1;case 0:return 1;case 10:case 18:return 2;case 5:return 5;case 12:case 22:return 3;case 11:return 2;default:return 0}},e}(),t.ExcelStyle=I,L=function(){function e(){this.$j=null,this.name=null}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):(t.$j=e,this)},e.prototype.copy=function(){var t=new e;return t.name=this.name,t.format(this.format().clone()),t},e.prototype.isBuiltInStyle=function(){return!1},e}(),t.CustomExcelStyle=L,D=function(){function e(){}return e.initBuiltInExcelStyleCollections=function(){var t,r,o,n,s,c,d,u;if(e.builtInStyles.length=0,t=i.BuiltInStylesResource)for(r=new a.XmlReader,r.reset(),r.setXml(t),o=[],n=[],s=[],c=[],d={};r.read();)if(1===r.depth&&2!==r.elementType)switch(r.name()){case"numFmts":l.readNumberFormats(r,d);break;case"fonts":l.readFonts(r,o);break;case"fills":l.readFills(r,n);break;case"borders":l.readBorders(r,s);break;case"cellStyleXfs":l.readXFs(r,c,o,s,d,n,!0);break;case"cellStyles":for(u=r.depth;r.read();){if(r.depth<=u)return;1===r.nodeType()&&"cellStyle"===r.name()&&U(r,c,d)}}},e.getBuiltInStyles=function(){var t,r,o=e.builtInStyles.length;for(47!==o&&e.initBuiltInExcelStyleCollections(),t=[],o=e.builtInStyles.length,r=0;rl&&(l=s));c.count=l}},e.initLanguageIndepedentNumberFormat=function(){var t=e.ak;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},e.getFormatCode=function(t){var r,o,i,n=e.builtInNumberFomrat(),a=e.customNumberFormat(),l=e.languageIndepedentNumberFormat(),s=t.numberFormatIndex;return t.numberFormat?(r=t.numberFormat,o=r.numberFormatId,i=r.numberFormatCode,n[o]&&n[o]!==i?(n[o]=i,i):(a[i]||(a[i]=o,a.count++),i)):n[s]?n[s]:l[s]?l[s]:"General"},e.getFormatId=function(t){var r,o,i,n,a,l,s,c=e.ek();if(c[t])return c[t];if(o=e.builtInNumberFomrat())for(i in o)if(o[i]===t)return r={isBuiltIn:!0,id:parseInt(i,10)},c[t]=r,r;if(n=e.customNumberFormat(),n&&n[t])return r={isBuiltIn:!1,id:n[t]},c[t]=r,r;if(a=0,n.count>0){l=0;for(s in n)n[s]>l&&(l=n[s]);a=l}return a=Math.max(e.fk,a)+1,e.fk++,n[t]=a,r={isBuiltIn:!1,id:a}},e.ek=function(){return e.gk||(e.gk={}),e.gk},e.ck=null,e.gk=null,e._j={count:0},e.ak={count:0},e.dk={count:0},e.fk=170,e}(),t.ExtendedNumberFormatHelper=B;function J(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}P=function(){function e(){}return e.pointToPixel=function(e,t){return void 0===t&&(t=2),J(96*e/72,t)},e.pixelToPoint=function(e){return 72*e/96},e.emuToPixles=function(e,t){return J(96*e/914400,t||2)},e.pixelToEMU=function(e){return Math.round(914400*e/96)},e.getMaxiumDigitWidth=function(t){var r,o,i,a,l,s,c=0,d=e.hk();if(d[t])return d[t];try{if(e.ik||(e.ik=document.createElement("span")),r=e.ik,r.style.font=t,o=r.style.fontSize,o.indexOf("px")!==-1?o=Math.round(e.pixelToPoint(parseFloat(o))):o.indexOf("pt")!==-1&&(o=Math.round(parseFloat(o))),!isNaN(o)&&o||(o=Math.round(e.pixelToPoint(parseFloat(t.match(/(\d|\.)+/))))),i=r.style.fontFamily,i||t.split(" ").forEach(function(e){"normal"!==e&&"italic"!==e&&"bold"!==e&&e.indexOf("px")===-1&&e.indexOf("pt")===-1&&isNaN(e)&&(i=e)}),n.unknownFontMaxDigitWidthMap[o]&&n.unknownFontMaxDigitWidthMap[o][i]?c=n.unknownFontMaxDigitWidthMap[o][i]:n.MaxDigitWidthMap[o]&&n.MaxDigitWidthMap[o][i]&&(c=n.MaxDigitWidthMap[o][i]),c>0)return c=Math.round(c),d[t]=c,c}catch(e){}for(a="0123456789",l=0,s=0;sc&&(c=l);return c>0?(c=Math.round(c),d[t]=c,c):(d[t]=7,d[t])},e.truncate=function(e){return Math.floor(e)},e.hk=function(){return e.jk||(e.jk={}),e.jk},e.measureText=function(t,r){var o,i;function n(){return e.kk||(e.kk=document.createElement("canvas")),e.kk}try{return o=n(),i=o.getContext("2d"),i.font=r,i.measureText(t).width}catch(e){return 8}},e.ik=null,e.jk=null,e.kk=null,e}(),t.UnitHelper=P,W=function(){function e(e,t,r,o){var i=this;i.a=e,i.r=t,i.g=r,i.b=o}return e.prototype.toString=function(){var e=this;return 255===e.a?"#"+e.getColorUnitString(e.r)+e.getColorUnitString(e.g)+e.getColorUnitString(e.b):"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"},e.prototype.getColorUnitString=function(e){var t=e.toString(16);return 1===t.length&&(t="0"+t),t},e.hueToRGB=function(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e},e.fromHLS=function(t,r,o){var i,n,a,l,s;return 0===o?i=n=a=parseInt(255*r/240,10):(l=void 0,s=void 0,s=r<=120?(r*(240+o)+120)/240:r+o-(r*o+120)/240,l=2*r-s,i=parseInt((255*e.hueToRGB(l,s,t+80)+120)/240,10),n=parseInt((255*e.hueToRGB(l,s,t)+120)/240,10),a=parseInt((255*e.hueToRGB(l,s,t-80)+120)/240,10)),new e(255,i,n,a)},e}(),t.lk=W,_=function(){function e(e){var t,r,o,i,n=this,a=e.r,l=e.g,s=e.b,c=Math.max(Math.max(a,l),s),d=Math.min(Math.min(a,l),s),u=c+d;n.luminosity=parseInt(""+(240*u+255)/510,10),t=c-d,0===t?(n.saturation=0,n.hue=160):(n.luminosity<=120?n.saturation=parseInt(""+(240*t+u/2)/u,10):n.saturation=parseInt(""+(240*t+(510-u)/2)/(510-u),10),r=(40*(c-a)+t/2)/t,o=(40*(c-l)+t/2)/t,i=(40*(c-s)+t/2)/t,a===c?n.hue=parseInt(""+(i-o),10):l===c?n.hue=parseInt(""+(80+r-i),10):n.hue=parseInt(""+(160+o-r),10),n.hue<0&&(n.hue+=240),n.hue>240&&(n.hue-=240))}return e.prototype.toColor=function(){return W.fromHLS(this.hue,this.luminosity,this.saturation)},e}(),N=function(){function e(){}return e.getThemeColorName=function(e){if(!e||3!==e.colorType())return null;var t=Math.round(100*e.tint());return 0===e.value()||243===e.value()?"Background 1 "+t:1===e.value()||241===e.value()?"Text 1 "+t:2===e.value()||244===e.value()?"Background 2 "+t:3===e.value()||242===e.value()?"Text 2 "+t:4===e.value()?"Accent 1 "+t:5===e.value()?"Accent 2 "+t:6===e.value()?"Accent 3 "+t:7===e.value()?"Accent 4 "+t:8===e.value()?"Accent 5 "+t:9===e.value()?"Accent 6 "+t:10===e.value()?"hyperlink":11===e.value()?"followedHyperlink":null},e.getThemeColorIndex=function(e,t){return"Background 1"===e.substring(0,12)?t?243:0:"Text 1"===e.substring(0,6)?t?241:1:"Background 2"===e.substring(0,12)?t?244:2:"Text 2"===e.substring(0,6)?t?242:3:"Accent 1"===e.substring(0,8)?4:"Accent 2"===e.substring(0,8)?5:"Accent 3"===e.substring(0,8)?6:"Accent 4"===e.substring(0,8)?7:"Accent 5"===e.substring(0,8)?8:"Accent 6"===e.substring(0,8)?9:"hyperlink"===e?10:"followedHyperlink"===e?11:void 0},e.mk=function(){return e.nk||(e.nk={}),e.nk},e.getExcelThemeColor=function(t){var r,i,n,a;return o.StringEx.L(t)?A.EmptyColor:(r=e.mk(),r[t]?r[t]:(i=0,n=t.split(" "),n.length>=3&&(i=parseFloat(n[2]),isNaN(i)||(i/=100)),a=new A(3,e.getThemeColorIndex(t),i),r[t]=a,a))},e.toRGBColor=function(t){return t?""+e.getRGBColor(t):null},e.colorFromIndex=function(t,r){var o,i,n,a;return 32767===t?new W(0,0,0,0):t<0||t>=e.palette.length?new W(255,0,0,0):e.useCustomPalette?e.customPalette[t]!==c?e.customPalette[t]:64===t?new W(255,0,0,0):65===t?new W(255,255,255,255):new W(0,255,255,255):(o=e.palette[t],i=o>>16&255,n=o>>8&255,a=255&o,new W(r,i,n,a))},e.updateTint=function(e,t){var r,o,i;return 0===t?e:(r=new _(e),t>0?(o=240-r.luminosity,i=o*t,W.fromHLS(r.hue,r.luminosity+i,r.saturation)):(i=r.luminosity*-t,W.fromHLS(r.hue,r.luminosity-i,r.saturation)))},e.getRGBColor=function(t){var r,o;return null===t||t===c?new W(0,255,255,255):t.isAutoColor()?new W(255,0,0,0):t.isIndexedColor()?(r=e.colorFromIndex(0|t.value(),255),e.updateTint(r,t.tint())):t.isRGBColor()?(o=(16777215&t.value())+4278190080,r=e.fromArgb(o),e.updateTint(r,t.tint())):t.isThemeColor()?e.getThemeColorName(t):new W(0,255,255,255)},e.fromArgb=function(e){return new W(e>>24&255,e>>16&255,e>>8&255,255&e)},e.getRGBAColorData=function(t){var r=e.fromArgb(t.value());return{rgb:r.getColorUnitString(r.r)+r.getColorUnitString(r.g)+r.getColorUnitString(r.b),alpha:r.a}},e.pk=function(){return e.qk||(e.qk={}),e.qk},e.fromHtmlColor=function(t){var r,o,i,n,a,l;if(t)return"string"!=typeof t?t:(r=e.pk(),r[t]?r[t]:(o=t.toLowerCase(),"#"===o.substring(0,1)?(7===o.length?o="#ff"+o.substring(1):4===o.length&&(o="#ff"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]),i=parseInt(o.substring(1,o.length),16)):"rgb("===o.substring(0,4)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=255*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):"rgba("===o.substring(0,5)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=parseInt(255*parseFloat(l[3]),10)*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):i=e.rk[o]?e.rk[o]:parseInt(o,10),r[t]=i,i))},e.isThemeColor=function(e){if(!e||"string"!=typeof e)return!1;e=e.toLowerCase();var t=e[0];switch(t){case"b":return 0===e.indexOf("background ");case"t":return 0===e.indexOf("text ");case"a":return 0===e.indexOf("accent ");case"h":return 0===e.indexOf("hyperlink");case"f":return 0===e.indexOf("followedhyperlink");default:return!1}},e.mixTranslucentColor=function(t,r){var o,i,n,a;return 255===r.a?r:0===r.a?t:(o=Math.round((255-t.a)*r.a/255),i=e.getMaxInt(t.a,r.a,t.r,r.r,o+t.a),n=e.getMaxInt(t.a,r.a,t.g,r.g,o+t.a),a=e.getMaxInt(t.a,r.a,t.b,r.b,o+t.a),new W(Math.round(o+t.a),i,n,a))},e.getMaxInt=function(e,t,r,o,i){return 0===i?0:(t*o+(255-t)*e*r/255)/i},e.toExcelColor=function(t,r){if(t instanceof A)return t;if(r===c&&(r=16777215),!t)return null;if(e.isThemeColor(t))return e.getExcelThemeColor(t);var o=e.fromHtmlColor(t);return o!==r?e.fromColorToExcelColor(e.fromArgb(o)):null},e.toExcelBackColor=function(t,r){var o,i;if(t!==s&&"object"==typeof t)if(t.stops)for(o=t,i=0;i=0;n--)a=e.palette[n],l=(16711680&a)>>16,s=(65280&a)>>8,d=255&a,u=Math.abs(.3*(l-t.r))+Math.abs(.59*(s-t.g))+Math.abs(.11*(d-t.b)),u0?a:0,l=l>0?l:0,s=s>0?s:0,a=a<255?a:255,l=l<255?l:255,s=s>255?s:255,new W(0,a,l,s)},e.hueToRGB=function(e,t,r){return r<0&&(r+=255),r>255&&(r-=255),r<42?e+((t-e)*r+21)/42:r<127?t:r<170?e+((t-e)*(170-r)+21)/42:e},e.fromPresetColorVal=function(t){var r=e.rk[t];return r!==c?e.fromArgb(r):null},e.nk=null,e.qk=null,e.useCustomPalette=!1,e.customPalette=null,e.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],e.sk=new W(255,255,255,255),e.rk={aliceblue:4293982463,antiquewhite:4294634455,aqua:4278255615,aquamarine:4286578644,azure:4293984255,beige:4294309340,bisque:4294960324,black:4278190080,blanchedalmond:4294962125,blue:4278190335,blueviolet:4287245282,brown:4289014314,burlywood:4292786311,cadetblue:4284456608,chartreuse:4286578432,chocolate:4291979550,coral:4294934352,cornflowerblue:4284782061,cornsilk:4294965468,crimson:4292613180,cyan:4278255615,darkblue:4278190219,darkcyan:4278225803,darkgoldenrod:4290283019,darkgray:4289309097,darkgreen:4278215680,darkkhaki:4290623339,darkmagenta:4287299723,darkolivegreen:4283788079,darkorange:4294937600,darkorchid:4288230092,darkred:4287299584,darksalmon:4293498490,darkseagreen:4287609999,darkslateblue:4282924427,darkslategray:4281290575,darkturquoise:4278243025,darkviolet:4287889619,deeppink:4294907027,deepskyblue:4278239231,dimgray:4285098345,dodgerblue:4280193279,feldspar:4291924597,firebrick:4289864226,floralwhite:4294966e3,forestgreen:4280453922,fuchsia:4294902015,gainsboro:4292664540,ghostwhite:4294506751,gold:4294956800,goldenrod:4292519200,gray:4286611584,green:4278222848,greenyellow:4289593135,honeydew:4293984240,hotpink:4294928820,"indianred ":4291648604,"indigo ":4283105410,ivory:4294967280,khaki:4293977740,lavender:4293322490,lavenderblush:4294963445,lawngreen:4286381056,lemonchiffon:4294965965,lightblue:4289583334,lightcoral:4293951616,lightcyan:4292935679,lightgoldenrodyellow:4294638290,lightgrey:4292072403,lightgreen:4287688336,lightpink:4294948545,lightsalmon:4294942842,lightseagreen:4280332970,lightskyblue:4287090426,lightslateblue:4286869759,lightslategray:4286023833,lightsteelblue:4289774814,lightyellow:4294967264,lime:4278255360,limegreen:4281519410,linen:4294635750,magenta:4294902015,maroon:4286578688,mediumaquamarine:4284927402,mediumblue:4278190285,mediumorchid:4290401747,mediumpurple:4287852760,mediumseagreen:4282168177,mediumslateblue:4286277870,mediumspringgreen:4278254234,mediumturquoise:4282962380,mediumvioletred:4291237253,midnightblue:4279834992,mintcream:4294311930,mistyrose:4294960353,moccasin:4294960309,navajowhite:4294958765,navy:4278190208,oldlace:4294833638,olive:4286611456,olivedrab:4285238819,orange:4294944e3,orangered:4294919424,orchid:4292505814,palegoldenrod:4293847210,palegreen:4288215960,paleturquoise:4289720046,palevioletred:4292374675,papayawhip:4294963157,peachpuff:4294957753,peru:4291659071,pink:4294951115,plum:4292714717,powderblue:4289781990,purple:4286578816,red:4294901760,rosybrown:4290547599,royalblue:4282477025,saddlebrown:4287317267,salmon:4294606962,sandybrown:4294222944,seagreen:4281240407,seashell:4294964718,sienna:4288696877,silver:4290822336,skyblue:4287090411,slateblue:4285160141,slategray:4285563024,snow:4294966010,springgreen:4278255487,steelblue:4282811060,tan:4291998860,teal:4278222976,thistle:4292394968,tomato:4294927175,turquoise:4282441936,violet:4293821166,violetred:4291829904,wheat:4294303411,white:4294967295,whitesmoke:4294309365,yellow:4294967040,yellowgreen:4288335154,transparent:16777215},e}(),t.ColorHelper=N;function z(e){return e===!1}function V(e){return e&&"NORMAL"!==e.toUpperCase()&&e.indexOf("__builtInStyle")<0}M=function(){function e(){}return e.getFontName=function(e){var t,r,o;if(!e)return null;if(t=e,r=",",t.indexOf(r)!==-1&&(t=t.split(r)[0]),t){for(o=t.length-1;o>=0&&"/"!==t[o];)o--;o>=0&&(t=t.substring(o)),t&&"/#"===t.substring(0,2)&&(t=t.substring(2)),'"'===t[0]&&'"'===t[t.length-1]&&(t=t.substring(1,t.length-1))}return t},e.setStyleInfoFont=function(e,t,r,o){var i,n,a,l,s,b,h=e.fontName;h||(h=f),n="",e.fontSize>0&&(n=P.pointToPixel(e.fontSize,4)+"px"),a="",a=e.isItalic?"italic":"normal",l="",l=e.isBold?"bold":"normal",s="",s=e.fontColor?e.fontColor.isThemeColor()?N.getThemeColorName(e.fontColor):N.toRGBColor(e.fontColor):e.fontColor,t.foreColor=s,e.isStrikeOut&&(t.textDecoration=2),e.underLineStyle!==c&&(b=1,2===e.underLineStyle?b=8:0===e.underLineStyle&&(b=0),t.textDecoration===c?t.textDecoration=b:t.textDecoration=t.textDecoration|b),1===e.fontScheme?(t.themeFont=d,r&&(h=r)):2===e.fontScheme&&(t.themeFont=u,o&&(h=o)),i=a+" "+l+" "+n+" "+h,i&&(t.font=i)},e.tk=function(){return e.uk||(e.uk={}),e.uk},e.fromHtmlFont=function(t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y;if(!o.StringEx.L(t)){if(r={},i=e.tk(),i[t])return i[t];if(n=e.splitFontString(t),0!==n.length){for(a=0,l=!1,s=!1,c=!1;a=700?r.fontWeight=b:"lighter"===d?r.fontWeight="ExtraLight":r.fontWeight=d;else s=!0,r.fontVariant=d;else l=!0,"oblique"===d&&(d=h),r.fontStyle=d;if(a++,l&&s&&c)break}if(a0&&t.push(r),t},e.toVerticalAlignment=function(e){return 0===e||1===e||2===e?e:2},e.toExcelVerticalAlignment=function(e){return 0===e||1===e||2===e?e:0},e.toHorizontalAlignment=function(e){switch(e){case 0:return 3;case 1:return 0;case 6:return 4;case 2:return 1;case 3:return 2;case 4:case 5:case 7:return 3;default:return 3}},e.toExcelHorizontalAlignment=function(e){switch(e){case 1:return 2;case 0:return 1;case 2:return 3;case 3:return 0;case 4:return 6;default:return 0}},e.toBorderLine=function(e){if(e){var t=null;return 0===e.lineStyle?null:(e.color||(e.color=new A(1,0,0)),t=e.color.isThemeColor()?{color:N.getThemeColorName(e.color),style:e.lineStyle}:{color:""+N.getRGBColor(e.color),style:e.lineStyle})}},e.toExcelBorderSide=function(e){var t,r,o=new T;return e?(t=e.color,N.isThemeColor(t)?o.color=N.getExcelThemeColor(t):(r=e.color,o.color=new A(2,N.fromHtmlColor(r),0)),o.lineStyle=e.style,o):o},e.setStyleInfoBorders=function(t,r){r.borderLeft=e.toBorderLine(t.left),r.borderRight=e.toBorderLine(t.right),r.borderTop=e.toBorderLine(t.top),r.borderBottom=e.toBorderLine(t.bottom),r.borderVertical=e.toBorderLine(t.vertical),r.borderHorizontal=e.toBorderLine(t.horizontal),r.diagonalUp=e.toBorderLine(t.diagonalUp),r.diagonalDown=e.toBorderLine(t.diagonalDown)},e.toCellStyle=function(t,r,i){var n,a,l,d,u,f,b,h,p,m,g,y={};return t?(n=t.isStyleFormat,a=t.applyFont,l=t.applyFill,d=t.applyBorder,u=t.applyAlignment,f=t.applyProtection,b=t.applyNumberFormat,n&&(z(a)&&(y.applyFont=a),z(l)&&(y.applyFill=l),z(d)&&(y.applyBorder=d),z(u)&&(y.applyAlignment=u),z(f)&&(y.applyProtection=f),z(b)&&(y.applyNumberFormat=b)),(!n&&t.applyFont!==!1||n)&&t.font&&e.setStyleInfoFont(t.font,y,r,i),y.locked=t.isLocked,t.indent!==c&&(y.textIndent=t.indent, y.textIndent>0&&(h=y.textIndent,p=Math.floor(h),h-p===.5&&0===(1&p)?y.textIndent=p:y.textIndent=Math.round(h))),y.wordWrap=t.isWordWrap,y.vAlign=e.toVerticalAlignment(t.verticalAlign),y.hAlign=e.toHorizontalAlignment(t.horizontalAlign),o.J(t.rotation)||(255===t.rotation?y.isVerticalText=!0:y.textOrientation=t.rotation>90?90-t.rotation:t.rotation),t.border&&(m=t.border,m&&e.setStyleInfoBorders(m,y)),t.fill&&0!==t.fill.patternType?e.Ie(t.fill,y):y.backColor=s,t.isShrinkToFit?y.shrinkToFit=!0:y.shrinkToFit=!1,g=B.getFormatCode(t),n&&"General"===g||(y.formatter=g),o.J(t.quotePrefix)||(y.quotePrefix=t.quotePrefix),y):null},e.toRichTextStyle=function(t,r,o){var i={};return e.setStyleInfoFont(t,i,r,o),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamily=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.fromRichTextStyle=function(t){var r,i,n,a,l;if(!o.J(t))return r=f,i={},t.font&&(n=e.fromHtmlFont(t.font),n.fontFamily&&(r=e.getFontName(n.fontFamily)),o.StringEx.L(r)&&(r=f),i.fontFamily=r,n.fontSize&&(i.fontSize=Math.round(P.pixelToPoint(n.fontSize))),n.fontStyle===h&&(i.isItalic=!0),n.fontWeight===b&&(i.isBold=!0)),t.foreColor&&(N.isThemeColor(t.foreColor)?i.foreColor=N.getExcelThemeColor(t.foreColor):(a=N.fromHtmlColor(t.foreColor),l=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(a)),a=l.a*Math.pow(16,6)+l.r*Math.pow(16,4)+l.g*Math.pow(16,2)+l.b,i.foreColor=new A(2,a,0))),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?i.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(i.fontScheme=2)),1===(1&t.textDecoration)&&(i.underLineStyle=1),8===(8&t.textDecoration)&&(i.underLineStyle=2),i.isStrikeOut=2===(2&t.textDecoration),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamilySet=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.toSchemeClrValue=function(e){switch(e){case 255:return"";case 1:return"dk1";case 0:return"lt1";case 3:return"dk2";case 2:return"lt2";case 4:return"accent1";case 5:return"accent2";case 6:return"accent3";case 7:return"accent4";case 8:return"accent5";case 9:return"accent6";case 10:return"hlink";case 11:return"folHlink";case 240:return"phClr";case 241:return"tx1";case 242:return"tx2";case 243:return"bg1";case 244:return"bg2";default:return""}},e.Ie=function(t,r){1===t.patternType?e.vk(t.fgColor,r):t.patternType?e.wk(t.patternType,t.fgColor,t.bgColor,r):t.stops&&e.xk(t,r)},e.vk=function(e,t){if(o.J(e))t.backColor="#000000";else{var r=e.isRGBColor()&&0===e.value();if(e.isRGBColor()&&0===e.value()||e.isIndexedColor()&&64===e.value()||e.isIndexedColor()&&65===e.value())return void(r&&(t.backColor=null));e.isThemeColor()?t.backColor=N.getThemeColorName(e):t.backColor=N.toRGBColor(e)}},e.wk=function(e,t,r,o){o.backColor={type:e,patternColor:null,backgroundColor:null},t&&(t.isThemeColor()?o.backColor.patternColor=N.getThemeColorName(t):o.backColor.patternColor=N.toRGBColor(t)),r&&!r.isAutoColor()&&(r.isThemeColor()?o.backColor.backgroundColor=N.getThemeColorName(r):o.backColor.backgroundColor=N.toRGBColor(r))},e.xk=function(e,t){var r,o;for(t.backColor=e,r=0;r=0&&n.indexOf("}}")>=0)?i:("string"==typeof n&&" "!==n?i=n:e.autoFormatter?(t=e.autoFormatter.formatCached,t&&!o.StringEx.O(t)&&(i=t)):n&&(r=n.formatCached,r&&!o.StringEx.O(r)&&(i=r)),i)},e.toExtendedFormat=function(t,r){var i,n,a,l,d,u,p,m,g,y,S,C,w,x,T,I,L,D,P;if(t){if(i=t.parentName,n=t.name,a=V(n),l=new E,d=e.getStyleFormatter(t),d?(u=B.getFormatId(d),p=u.id,m=u.isBuiltIn,m?l.numberFormatIndex=p:l.numberFormat=new R(p,d),g=r.bj(i),y=g&&e.getStyleFormatter(g),!a&&(0!==p||y&&0!==B.getFormatId(y).id)&&(l.applyNumberFormat=!0)):l.numberFormatIndex=0,t.backColor&&0!==t.backColor.type){if(a||(l.applyFill=!0),S=new k,"string"==typeof t.backColor)S.patternType=1,S.fgColor=t.backColor;else if(o.J(t.backColor.type)||"path"===t.backColor.type)for(C in t.backColor)S[C]=t.backColor[C];else S.patternType=t.backColor.type,S.fgColor=t.backColor.patternColor,S.bgColor=t.backColor.backgroundColor;for(o.J(S.fgColor)||(S.fgColor=N.toExcelColor(S.fgColor)),o.J(S.bgColor)||(S.bgColor=N.toExcelColor(S.bgColor)),w=S.stops&&S.stops.length,x=0;x=e[n].length?"00":e[n].charAt(r)+e[n].charAt(r+1):r0&&a===e.length-i.length-1))return!0}return!1}function G(e,t){var r,o,i,n;if(0===e.indexOf("[")&&e.lastIndexOf("]")===e.length-1&&(e=e.substring(1,e.length-1)),e.indexOf("%")>-1&&(e=e.split("%")[0]),a(e))for(r=d.parse(e),o=0;o-1||t[1].indexOf(".")>-1)&&(r=d.parse(t[1]).prefixLengthFromSubnetMask(),e=[t[0],r].join("/"));try{return d.parseCIDR(e)}catch(e){return!1}}function s(e,t){var r=""+d.parse(e),o=""+d.parse(t);return r===o}function c(e,t){try{return e.match(t)}catch(e){return!1}}}function U(e,t){var r,o,i,n;if(e&&4===e.split(".").length)for(r=0,o=t.length;r0&&(i===e||".*"===i.substr(n)&&e.substr(0,n)===i.substr(0,n)&&g.test(e))))return!0;return!1}function J(e,t){var r,o,i,n;return!!q()&&(r=b("JYx3Gb#8Pb5R"),o=b("1agFGc#UHbw5"),i=m[r]&&m[r][o],!!i&&(i=i.toLowerCase(),n=e.split(","),!(!e||!O(i,n))))}function z(e,t){var r,o=b("JYx3Gb#8Pb5R"),i=b("Zdg3Ga#UHbw5"),n=m[o]&&m[o][i];return!n||(n=n.toLowerCase(),r=e.split(","),!(!e||!H(n,r))||(!(!e||!U(n,r))||!(!e||!G(n,r))))}function V(){var e=b("JYx3Gb#8Pb5R");return j(m[e])}function j(e){var t=b("VdgJHc#wJb59"),r=b("Zdg3Ga#UHbw5");return e&&(X(e[t])||K(e[t])||Y(e[r]))}function X(e){var t=b("MlSZto#Z");return e&&e===t}function K(e){var t=b("yXbog&w");return e&&e===t}function q(){var e=b("JYx3Gb#8Pb5R"),t=b("VdgJHc#wJb59"),r=b("Udg36Y#oUddV"),o=m[e];return o&&o[t]===r}function Y(e){var t=b("4LJITMx8UMcA"),r=b("Zo9Wv2#M"),o=b("JYw3Gb4NOb6x");return e&&(e===t||e===r||e===o)}function Q(e){var t=B(D(["S","R"])),r=P()&&t&&P().ResourceManager;return r&&new r(t).getResource()[e]}i=function(e,t,r){var o,i,n,a=Q(D([e,"s"])),l=B(D(["Wrbo","okok"])),s=Q(l&&1===l.lm?D(["ld","se"]):D(["lr","su"])),c=Z(a,t);for(s=Z(s,t),c=c.replace("{0}",r.d),c=c.replace("{1}",s).replace("{1}",s),o=[],i=0,n=0;n0)for(p=0;p=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(a=t-r,n=":";a--;)n+="0:";return e=e.replace("::",n),":"===e[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),t=function(){var t,r=e.split(":"),o=[];for(t=0;t0;){if(n=r-o,n<0&&(n=0),e[i]>>n!==t[i]>>n)return!1;o-=r,i+=1}return!0}function f(e){if(a.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(n.test(e))return parseInt(e,8);throw Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function b(e,t){for(;e.length=0;e-=1){if(t=this.octets[e],!(t in n))return null;if(r=n[t],i&&0!==r)return null;8!==r&&(i=!0),o+=r}return 32-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return r.IPv6.parse("::ffff:".concat(""+this))},e.prototype.toNormalizedString=function(){return""+this},e.prototype.toString=function(){return this.octets.join(".")},e}(),r.IPv4.broadcastAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|255^parseInt(o[n],10)),n++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.isIPv4=function(e){return null!==this.parser(e)},r.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},r.IPv4.isValidFourPartDecimal=function(e){return!(!r.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},r.IPv4.networkAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<4;)i.push(parseInt(o[r],10)&parseInt(n[r],10)),r++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},r.IPv4.parseCIDR=function(e){var t,r,o;if((t=e.match(/^(.+)\/(\d+)$/))&&(r=parseInt(t[2]),r>=0&&r<=32))return o=[this.parse(t[1]),r],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.parser=function(e){var t,r,o;if(t=e.match(i.fourOctet))return function(){var e,o=t.slice(1,6),i=[];for(e=0;e4294967295||o<0)throw Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(o>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),r=[];if(o=f(e[1]),o>16777215||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(o>>16&255),r.push(o>>8&255),r.push(255&o),r}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),r=[];if(o=f(e[2]),o>65535||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(f(e[1])),r.push(o>>8&255),r.push(255&o),r}():null},r.IPv4.subnetMaskFromPrefixLength=function(e){var t,r,o;if(e=parseInt(e),e<0||e>32)throw Error("ipaddr: invalid IPv4 prefix length");for(t=[0,0,0,0],r=0,o=Math.floor(e/8);r=0;r-=1){if(e=this.parts[r],!(e in n))return null;if(t=n[e],i&&0!==t)return null;16!==t&&(i=!0),o+=t}return 128-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges); @@ -46,10 +46,10 @@ i.numDim&&i.numDim.length>0)for(r=0;r0&&e.writeElement("c:pivotFmts",function(){var r,o,i,n;for(r=0;r=0&&e.writeAttributeString("w",n(a.w)),l.J(a.cap)||e.writeAttributeString("cap",o.Charts.ST_LineCap[a.cap]),l.J(a.cmpd)||e.writeAttributeString("cmpd",o.Charts.ST_CompoundLine[a.cmpd]),l.J(a.algn)||e.writeAttributeString("algn",o.Charts.ST_PenAlignment[a.algn])},function(){var t=a.noFill,r=a.solidFill,o=a.gradFill,i=a.pattFill,n=a.prstDash,s=a.custDash,c=a.round,d=a.bevel,u=a.miter,f=a.headEnd,b=a.tailEnd,h=a.extLst;l.J(t)?l.J(r)?l.J(o)?l.J(i)||Ba(e,ve,W,i):Fa(e,ve,B,o):xr(e,ve,D,r):xa(e,ve,L),l.J(n)?l.J(s)||ml(e,ve,"custDash",s):hl(e,ve,"prstDash",n),l.J(c)||fl(e,ve,"round"),l.J(d)||ul(e,ve,"bevel"),l.J(u)||bl(e,ve,"miter",u),l.J(f)||dl(e,ve,"headEnd",f),l.J(b)||dl(e,ve,"tailEnd",b),l.J(h)||hr(e,ve,m,h)})}t.DrawingWriter.WriteCT_LineProperties=gl;function yl(e,t){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",s.XFileConstants.Zd);var r=t.embed;l.J(r)||e.writeAttributeString("r:embed",r)})}t.DrawingWriter.WriteCT_SvgBlipProperties=yl;function Sl(e,t,r,o,i){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.custGeom,n=o.prstGeom,a=o.noFill,s=o.solidFill,c=o.gradFill,d=o.blipFill,u=o.pattFill,f=o.grpFill,b=o.ln,h=o.effectLst,p=o.effectDag,g=o.scene3d,y=o.sp3d,w=o.extLst;l.J(i)&&(i=!0),mr(e,ve,"xfrm",t,i),l.J(r)?l.J(n)||ll(e,ve,"prstGeom",n):cl(e,ve,"custGeom",r),l.J(a)?l.J(s)?l.J(c)?l.J(d)?l.J(u)?l.J(f)||Pa(e,ve,_):Ba(e,ve,W,u):Da(e,ve,P,d):Fa(e,ve,B,c):xr(e,ve,D,s):xa(e,ve,L),l.J(b)||gl(e,ve,"ln",b),l.J(h)||Ga(e,ve,S,h),l.J(p)||Ma(e,ve,C,p),l.J(g)||qn(e,ve,M,g),l.J(y)||Zn(e,ve,"sp3d",y),l.J(w)||hr(e,ve,m,w)})}t.DrawingWriter.WriteCT_ShapeProperties=Sl;function Cl(e,t,r,o){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.scene3d,i=o.extLst,n=o.effectLst,a=o.effectDag;l.J(t)||gr(e,ve,"xfrm",t),je(e,o),l.J(n)||Ga(e,ve,S,n),l.J(a)||Ma(e,ve,C,a),l.J(r)||qn(e,ve,M,r),l.J(i)||hr(e,ve,m,i)})}t.DrawingWriter.WriteCT_GroupShapeProperties=Cl;function wl(e,t,r,o){e.writeElement(t+":"+r,function(){vt(e,o)},function(){o.ColorProp&&Ve(e,o.ColorProp)})}t.DrawingWriter.WriteCT_StyleMatrixReference=wl;function xl(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.idx)||e.writeAttributeString("idx",o.Charts.ST_FontCollectionIndex[i.idx])},function(){var t=i.TextCharacterProperties&&i.TextCharacterProperties.solidFill;t&&Ve(e,t)})}t.DrawingWriter.WriteCT_FontReference=xl;function Al(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.lnRef,r=o.fillRef,i=o.effectRef,n=o.fontRef;l.J(t)||wl(e,ve,"lnRef",t),l.J(r)||wl(e,ve,"fillRef",r),l.J(i)||wl(e,ve,"effectRef",i),l.J(n)||xl(e,ve,"fontRef",n)})}t.DrawingWriter.WriteCT_ShapeStyle=Al;function Tl(e,t,r,o){e.writeLeafElement(t+":"+r,function(){o.fLocksWithSheet===!1&&e.writeAttributeString("fLocksWithSheet","0"),o.fPrintsWithSheet===!1&&e.writeAttributeString("fPrintsWithSheet","0")})}t.DrawingWriter.WriteCT_AnchorClientData=Tl;function vl(e,t,r,o){nt(e,t,r,o,t)}t.DrawingWriter.WriteCT_ShapeNonVisual=vl;function kl(e,t,r,o){nt(e,t,r,o,ke)}t.DrawingWriter.WriteCT_ShapeNonVisualForCdr=kl;function Fl(e,t,r,o){nt(e,t,r,o,Re)}t.DrawingWriter.WriteCT_ShapeNonVisualForXdr=Fl;function Rl(e,t,r,o){it(e,t,r,o,t,vl)}t.DrawingWriter.WriteCT_Shape=Rl;function El(e,t,r,o){it(e,t,r,o,ke,kl)}t.DrawingWriter.WriteCT_ShapeForCdr=El;function Il(e,t,r,o){it(e,t,r,o,Re,Fl)}t.DrawingWriter.WriteCT_ShapeForXdr=Il;function Ll(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Hn(e,Re,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisual=Ll;function Dl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Hn(e,ke,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisualCdr=Dl;function Bl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,Re,"nvCxnSpPr",t),l.J(r)||Sl(e,Re,O,r,!1),l.J(i)||Al(e,Re,ye,i)})}t.DrawingWriter.WriteCT_Connector=Bl;function Pl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,ke,"nvCxnSpPr",t),l.J(r)||Sl(e,ke,O,r,!1),l.J(i)||Al(e,ke,ye,i)})}t.DrawingWriter.WriteCT_ConnectorCdr=Pl;function Wl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Gn(e,Re,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualGroup=Wl;function _l(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ve,g,t),l.J(r)||Gn(e,ve,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisual=_l;function Nl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Gn(e,ke,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualrelSizeAnchor=Nl,t.DrawingWriter.WriteCT_PictureNonVisualOneCellAnchor=Wl,t.DrawingWriter.WriteCT_PictureNonVisualForXdr=Wl;function Ml(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureGroup=Ml;function Ol(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Nl(e,ke,we,t),l.J(r)||Da(e,ke,P,r),l.J(i)||Sl(e,ke,O,i),l.J(n)||Al(e,ke,ye,n)})}t.DrawingWriter.WriteCT_PictureRelSizeAnchor=Ol;function Hl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,ve,P,r),l.J(i)||Sl(e,ve,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_Picture=Hl;function Gl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureOneCellAnchor=Gl;function Ul(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,Re,ye,n)})}t.DrawingWriter.WriteCT_PictureForXdr=Ul;function Jl(e,t,r,o){Ye(e,t,r,o,Re)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual=Jl;function zl(e,t,r,o){Ye(e,t,r,o,ke)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual_cdr=zl;function Vl(e,t,r,o,i){e.writeElement(t+":"+r,function(){e.writeAttributeString(y,"")},function(){var t=o.nvGraphicFramePr,r=o.graphic;l.J(t)||Jl(e,Re,"nvGraphicFramePr",t),mr(e,Re,"xfrm",u,!0),l.J(r)||jn(e,ve,"graphic",r,i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame=Vl;function jl(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.macro)||e.writeAttributeString(y,o.macro),o.fPublished===!0&&e.writeAttributeString(w,"1")},function(){var t=o.nvGraphicFramePr,r=o.xfrm,i=o.graphic;l.J(t)||zl(e,ke,"nvGraphicFramePr",t),mr(e,ke,"xfrm",r,!0),l.J(i)||jn(e,ve,"graphic",i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame_cdr=jl;function Xl(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.cNvPr,i=o.cNvGrpSpPr;l.J(r)||Mn(e,t,g,r),l.J(i)||Un(e,t,"cNvGrpSpPr",i)})}t.DrawingWriter.WriteCT_GroupShapeNonVisual=Xl;function Kl(e,r,o,i){e.writeElement(r+":"+o,function(){var o=i.nvGrpSpPr,n=i.grpSpPr;l.J(o)||Xl(e,Re,"nvGrpSpPr",o),l.J(n)||Cl(e,Re,"grpSpPr",n),i.sp.forEach(function(o){var i,n,a,s;5===o.shapeType?Rl(e,r,"sp",o):3===o.shapeType?Kl(e,r,z,o):2===o.shapeType?Vl(e,r,x,o):4===o.shapeType?Bl(e,r,V,o):1===o.shapeType?l.J(o.cellRange)||o.cameraTool!==!0?Ml(e,r,"pic",o):(i={a14:t.DrawingWriter.a14,Requires:"a14",pic:o},n={},o={AlternateContent:t.DrawingWriter.mc,Choice:i,Fallback:n},Ql(e,"mc","AlternateContent",o)):0===o.shapeType||7===o.shapeType&&(a=o.nvSpPr.cNvPr.extLst||{},a.ext=a.ext||[],a.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:o.control.spid}}),o.nvSpPr.cNvPr.extLst=a,i={a14:t.DrawingWriter.a14,Requires:"a14",sp:o},s={AlternateContent:t.DrawingWriter.mc,Choice:i,FallBack:!0},Ql(e,"mc","AlternateContent",s))})})}t.DrawingWriter.WriteCT_GroupShape=Kl;function ql(e,t,r,o){var i=void 0===t?r:t+":"+r;e.writeElement(i,function(){var t,r;l.J(o.col)||e.writeElementString("xdr:col",o.col),t=o.colOffset,l.J(t)||e.writeElementString("xdr:colOff",n(t)),l.J(o.row)||e.writeElementString("xdr:row",o.row),r=o.rowOffset,l.J(r)||e.writeElementString("xdr:rowOff",n(r))})}t.DrawingWriter.WriteCT_Position=ql;function Yl(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.editAs;l.J(t)||0===t||e.writeAttributeString("editAs",o.Charts.ST_EditAs[t])},function(){var t=i.startPoint,r=i.endPoint,o=i.AlternateContent,n=i.sp,a=i.grpSp,s=i.graphicFrame,c=i.cxnSp,d=i.pic,u=i.clientData,f=l.Util.za(i),b=f&&f.layoutId,h=l.Util.Aa(b);l.J(t)||ql(e,Re,"from",t),l.J(r)||ql(e,Re,"to",r),!l.J(o)&&h&&Ql(e,Be,Ae,o,h),l.J(n)||Il(e,Re,"sp",n),l.J(a)||Kl(e,Re,z,a),l.J(s)||h||Vl(e,Re,x,s,h),l.J(c)||Bl(e,Re,V,c),l.J(d)||Ul(e,Re,"pic",d),l.J(u)||Tl(e,Re,Te,u)})}t.DrawingWriter.WriteCT_TwoCellAnchor=Yl;function Ql(e,r,o,i,n){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:mc",i.AlternateContent)},function(){var r=i.Choice,o=i.Fallback;l.J(r)&&Zl(i)&&(r={a14:t.DrawingWriter.a14,Requires:"a14",twoCellAnchor:i},o={}),l.J(r)||$l(e,Be,"Choice",r,n),l.J(o)||es(e,Be,"Fallback",o)})}t.DrawingWriter.WriteCT_AlternateContent=Ql;function Zl(e){return!(!e||!e.pic||e.pic.cameraTool!==!0)}function $l(e,t,r,o,i){e.writeElement(t+":"+r,function(){!i||l.J(o.Requires)||l.J(o.cx)||e.writeAttributeString("xmlns:"+o.Requires,o.cx);var t=o.a14;l.J(t)||e.writeAttributeString("xmlns:a14",o.a14),e.writeAttributeString("Requires",o.Requires)},function(){var t,r,n,a=o.GraphicalObjectFrame;l.J(a)||Vl(e,Re,"graphicFrame",a,i),t=o.twoCellAnchor,l.J(t)||Yl(e,Re,"twoCellAnchor",t),r=o.sp,l.J(r)||Rl(e,Re,"sp",r),n=o.pic,l.J(n)||Ul(e,Re,"pic",n)})}t.DrawingWriter.WriteCT_Choice=$l;function es(e,t,r,o){e.writeElement(t+":"+r,function(){},function(){var t=o.GraphicalObjectFrame;l.J(t)||Vl(e,Re,"graphicFrame",t)})}t.DrawingWriter.WriteCT_FallBack=es;function ts(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.startPoint;l.J(t)||ql(e,Re,"from",t),at(e,o,!0)})}t.DrawingWriter.WriteCT_OneCellAnchor=ts;function rs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.pos;l.J(t)||er(e,Re,"pos",t,!0),at(e,o)})}t.DrawingWriter.WriteCT_AbsoluteAnchor=rs;function os(e,r,o,i){e.writeElement("xdr:"+o,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:xdr",t.DrawingWriter.xdr)},function(){i.AnchorBaseList.forEach(function(t){1===t.anchorType?ts(e,Re,"oneCellAnchor",t):0===t.anchorType?Yl(e,Re,"twoCellAnchor",t):2===t.anchorType&&rs(e,Re,"absoluteAnchor",t)})})}t.DrawingWriter.WriteCT_Drawing=os;function is(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spPr,r=o.bodyPr,i=o.lstStyle,n=o.style,a=o.extLst;l.J(t)||Sl(e,ve,O,t),l.J(r)||Ss(e,ve,"bodyPr",r),l.J(i)||hs(e,ve,"lstStyle",i),l.J(n)||Al(e,ve,ye,n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_DefaultShapeDefinition=is;function ns(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spDef,r=o.lnDef,i=o.txDef,n=o.extLst;l.J(t)||is(e,ve,"spDef",t),l.J(r)||is(e,ve,"lnDef",r),l.J(i)||is(e,ve,"txDef",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_ObjectStyleDefaults=ns;function as(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_EmptyElement=as;function ls(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.masterClrMapping,r=o.overrideClrMapping;l.J(t)||as(e,ve,"masterClrMapping"),l.J(r)||cn(e,ve,"overrideClrMapping",r)})}t.DrawingWriter.WriteCT_ColorMappingOverride=ls;function ss(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.clrMap;l.J(t)||Rt(e,ve,j,t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ColorSchemeAndMapping=ss;function cs(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.extraClrScheme,function(t){ss(e,ve,"extraClrScheme",t)})})}t.DrawingWriter.WriteCT_ColorSchemeList=cs;function ds(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.name;Oe(t)||e.writeAttributeString(b,t)},function(){var t=o.themeElements,r=o.objectDefaults,i=o.extraClrSchemeLst,n=o.custClrLst,a=o.extLst;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||ns(e,ve,"objectDefaults",r),l.J(i)||cs(e,ve,"extraClrSchemeLst",i),l.J(n)||Lt(e,ve,"custClrLst",n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_OfficeStyleSheet=ds;function us(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.fontScheme,i=o.fmtScheme;l.J(t)||Rt(e,ve,j,t),l.J(r)||Pt(e,ve,X,r),l.J(i)||Ot(e,ve,K,i)})}t.DrawingWriter.WriteCT_BaseStylesOverride=us;function fs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.themeElements,r=o.clrMap;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ClipboardStyleSheet=fs;function bs(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.pPr,i=o.endParaRPr,n=o.elements;l.J(r)||Hs(e,t,"pPr",r),l.J(n)||n.forEach(function(r){0===r.elementType?Us(e,t,Fe,r):1===r.elementType?Ms(e,t,"br",r):2===r.elementType&&Gs(e,t,"fld",r)}),l.J(i)||Bs(e,t,"endParaRPr",i)})}t.DrawingWriter.WriteCT_TextParagraph=bs;function hs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.defPPr,r=o.lvl1pPr,i=o.lvl2pPr,n=o.lvl3pPr,a=o.lvl4pPr,s=o.lvl5pPr,c=o.lvl6pPr,d=o.lvl7pPr,u=o.lvl8pPr,f=o.lvl9pPr,b=o.extLst;l.J(t)||Hs(e,ve,"defPPr",t),l.J(r)||Hs(e,ve,"lvl1pPr",r),l.J(i)||Hs(e,ve,"lvl2pPr",i),l.J(n)||Hs(e,ve,"lvl3pPr",n),l.J(a)||Hs(e,ve,"lvl4pPr",a),l.J(s)||Hs(e,ve,"lvl5pPr",s),l.J(c)||Hs(e,ve,"lvl6pPr",c),l.J(d)||Hs(e,ve,"lvl7pPr",d),l.J(u)||Hs(e,ve,"lvl8pPr",u),l.J(f)||Hs(e,ve,"lvl9pPr",f),l.J(b)||hr(e,ve,m,b)})}t.DrawingWriter.WriteCT_TextListStyle=hs;function ps(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.fontScale,r=o.lnSpcReduction;l.J(t)||1e5===t||e.writeAttributeString("fontScale",t),l.J(r)||0===r||e.writeAttributeString("lnSpcReduction",r)})}t.DrawingWriter.WriteCT_TextNormalAutofit=ps;function ms(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextShapeAutofit=ms;function gs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoAutofit=gs;function ys(e){return 6e4*e}t.DrawingWriter.getRotationData=ys;function Ss(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.rot,r=i.vertOverflow,n=i.horzOverflow,a=i.wrap,s=i.lIns,c=i.tIns,d=i.rIns,u=i.bIns,f=i.numCol,b=i.spcCol,h=i.anchor;l.J(t)||e.writeAttributeString("rot",ys(t)),i.spcFirstLastPara===!0&&e.writeAttributeString("spcFirstLastPara","1"),l.J(r)||0===r||e.writeAttributeString("vertOverflow",o.Charts.ST_TextVertOverflowType[r]),l.J(n)||0===n||e.writeAttributeString("horzOverflow",o.Charts.ST_TextHorzOverflowType[n]),l.J(i.vert)||e.writeAttributeString("vert",o.Charts.ST_TextVerticalType[i.vert]),l.J(a)||0===a||e.writeAttributeString("wrap",o.Charts.ST_TextWrappingType[a]),l.J(s)||91440===s||e.writeAttributeString("lIns",s),l.J(c)||45720===c||e.writeAttributeString("tIns",c),l.J(d)||91440===d||e.writeAttributeString("rIns",d),l.J(u)||45720===u||e.writeAttributeString("bIns",u),l.J(f)||0===f||e.writeAttributeString("numCol",f),l.J(b)||0===b||e.writeAttributeString("spcCol",b),i.rtlCol===!0&&e.writeAttributeString("rtlCol","1"),i.fromWordArt===!0&&e.writeAttributeString("fromWordArt","1"),l.J(h)||0===h||e.writeAttributeString("anchor",o.Charts.ST_TextAnchoringType[h]),i.anchorCtr===!0&&e.writeAttributeString("anchorCtr","1"),i.forceAA===!0&&e.writeAttributeString("forceAA","1"),i.upright===!0&&e.writeAttributeString("upright","1"),i.compatLnSpc===!0&&e.writeAttributeString("compatLnSpc","1")},function(){var t=i.prstTxWarp,r=i.noAutofit,o=i.normAutofit,n=i.spAutoFit,a=i.scene3d,s=i.sp3d,c=i.flatTx,d=i.extLst;l.J(t)||sl(e,ve,"prstTxWarp",t),l.J(r)||gs(e,ve,"noAutofit"),l.J(o)||ps(e,ve,"normAutofit",o),l.J(n)||ms(e,ve,"spAutoFit"),l.J(a)||qn(e,ve,M,a),l.J(s)||Zn(e,ve,"sp3d",s),l.J(c)||$n(e,ve,"flatTx",c),l.J(d)||hr(e,ve,m,d)})}t.DrawingWriter.WriteCT_TextBodyProperties=Ss;function Cs(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r,i=o.bodyPr,n=o.lstStyle;Ss(e,ve,"bodyPr",i||{}),l.J(n)||hs(e,ve,"lstStyle",n),t=o.p,l.J(t)?(r={pPr:{defRPr:{}},endParaRPr:{},elements:[]},bs(e,ve,"p",r)):Ze(o.p,function(t){bs(e,ve,"p",t)})})}t.DrawingWriter.WriteCT_TextBody=Cs;function ws(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletColorFollowText=ws;function xs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletSizeFollowText=xs;function As(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePercent=As;function Ts(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePoint=Ts;function vs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletTypefaceFollowText=vs;function ks(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.startAt;l.J(i.type)||e.writeAttributeString(h,o.Charts.ST_TextAutonumberScheme[i.type]),l.J(t)||1===t||e.writeAttributeString("startAt",t)})}t.DrawingWriter.WriteCT_TextAutonumberBullet=ks;function Fs(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.char)||e.writeAttributeString("char",o.char)})}t.DrawingWriter.WriteCT_TextCharBullet=Fs;function Rs(e,t,r,o){Ue(e,t,r,o,Ia,ve,"blip")}t.DrawingWriter.WriteCT_TextBlipBullet=Rs;function Es(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoBullet=Es;function Is(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.typeface,r=o.panose,n=o.pitchFamily,a=o.charset;l.J(t)||e.writeAttributeString("typeface",i.ConverterHelper.getFontName(t)),l.J(r)||e.writeAttributeString("panose",r),l.J(n)||0===n||e.writeAttributeString("pitchFamily",n),l.J(a)||1===a||e.writeAttributeString("charset",a)})}t.DrawingWriter.WriteCT_TextFont=Is;function Ls(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineLineFollowText=Ls;function Ds(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineFillFollowText=Ds,t.DrawingWriter.WriteCT_TextUnderlineFillGroupWrapper=Wa;function Bs(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.altLang,r=n.sz,a=n.kern,s=n.cap,c=n.spc,d=n.baseline,u=n.smtId,f=n.bmk;n.kumimoji===!0&&e.writeAttributeString("kumimoji","1"),l.J(t)||e.writeAttributeString("altLang",t),l.J(r)||0===r||e.writeAttributeString("sz",Math.round(100*i.UnitHelper.pixelToPoint(r))),l.J(n.b)||e.writeAttributeString("b",n.b?"1":"0"),l.J(n.i)||e.writeAttributeString("i",n.i?"1":"0"),l.J(n.u)||e.writeAttributeString("u",o.Charts.ST_TextUnderlineType[n.u]),l.J(n.strike)||e.writeAttributeString("strike",o.Charts.ST_TextStrikeType[n.strike]),l.J(a)||0===a||e.writeAttributeString("kern",a),l.J(s)||0===s||e.writeAttributeString("cap",o.Charts.ST_TextCapsType[s]),l.J(c)||e.writeAttributeString("spc",c),n.normalizeH===!0&&e.writeAttributeString("normalizeH","1"),l.J(d)||e.writeAttributeString("baseline",d),n.noProof===!0&&e.writeAttributeString("noProof","1"),n.dirty===!1&&e.writeAttributeString("dirty","0"),n.err===!0&&e.writeAttributeString("err","1"),n.smtClean===!1&&e.writeAttributeString("smtClean","0"),l.J(u)||0===u||e.writeAttributeString("smtId",u),l.J(f)||e.writeAttributeString("bmk",f)},function(){var t=n.ln,r=n.highlight,o=n.uLnTx,i=n.uLn,a=n.uFillTx,s=n.uFill,c=n.latin,d=n.ea,u=n.cs,f=n.sym,b=n.hlinkClick,h=n.hlinkMouseOver,p=n.extLst,g=n.effectLst,y=n.effectDag;l.J(t)||gl(e,ve,"ln",t),je(e,n),l.J(g)||Ga(e,ve,S,g),l.J(y)||Ma(e,ve,C,y),l.J(r)||xr(e,ve,"highlight",r),l.J(o)||Ls(e,ve,"uLnTx"),l.J(i)||gl(e,ve,"uLn",i),l.J(a)||Ds(e,ve,"uFillTx"),l.J(s)||Wa(e,ve,"uFill",s),l.J(c)||Is(e,ve,"latin",c),l.J(d)||Is(e,ve,"ea",d),l.J(u)||Is(e,ve,"cs",u),l.J(f)||Is(e,ve,"sym",f),l.J(b)||vr(e,ve,"hlinkClick",b),l.J(h)||vr(e,ve,"hlinkMouseOver",h),l.J(p)||hr(e,ve,m,p)})}t.DrawingWriter.WriteCT_TextCharacterProperties=Bs;function Ps(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPercent=Ps;function Ws(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPoint=Ws;function _s(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.pos)||e.writeAttributeString("pos",i.pos),l.J(i.algn)||e.writeAttributeString("algn",o.Charts.ST_TextTabAlignType[i.algn])})}t.DrawingWriter.WriteCT_TextTabStop=_s;function Ns(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.tab,function(t){_s(e,ve,"tab",t)})})}t.DrawingWriter.WriteCT_TextTabStopList=Ns;function Ms(e,t,r,o){Ue(e,t,r,o,Bs,ve,"rPr")}t.DrawingWriter.WriteCT_TextLineBreak=Ms;function Os(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.spcPct)||Ps(e,ve,"spcPct",o.spcPct),l.J(o.spcPts)||Ws(e,ve,"spcPts",o.spcPts)})}t.DrawingWriter.WriteCT_TextSpacing=Os;function Hs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.marL,r=i.marR,n=i.lvl,a=i.indent,s=i.algn,c=i.defTabSz,d=i.fontAlgn;l.J(t)||0===t||e.writeAttributeString("marL",t),l.J(r)||0===r||e.writeAttributeString("marR",r),l.J(n)||0===n||e.writeAttributeString("lvl",n),l.J(a)||0===a||e.writeAttributeString("indent",a),l.J(s)||0===s||e.writeAttributeString("algn",o.Charts.ST_TextAlignType[s]),l.J(c)||0===c||e.writeAttributeString("defTabSz",c),i.rtl===!0&&e.writeAttributeString("rtl","1"),i.eaLnBrk===!0&&e.writeAttributeString("eaLnBrk","1"),l.J(d)||0===d||e.writeAttributeString("fontAlgn",o.Charts.ST_TextFontAlignType[d]),i.latinLnBrk===!0&&e.writeAttributeString("latinLnBrk","1"),i.hangingPunct===!0&&e.writeAttributeString("hangingPunct","1")},function(){var t=i.lnSpc,r=i.spcBef,o=i.spcAft,n=i.buClrTx,a=i.buClr,s=i.buSzTx,c=i.buSzPct,d=i.buSzPts,u=i.buFontTx,f=i.buFont,b=i.buNone,h=i.buAutoNum,p=i.buChar,g=i.buBlip,y=i.tabLst,S=i.defRPr,C=i.extLst;l.J(t)||Os(e,ve,"lnSpc",t),l.J(r)||Os(e,ve,"spcBef",r),l.J(o)||Os(e,ve,"spcAft",o),l.J(n)||ws(e,ve,"buClrTx"),l.J(a)||xr(e,ve,"buClr",a),l.J(s)||xs(e,ve,"buSzTx"),l.J(c)||As(e,ve,"buSzPct",c),l.J(d)||Ts(e,ve,"buSzPts",d),l.J(u)||vs(e,ve,"buFontTx"),l.J(f)||Is(e,ve,"buFont",f),l.J(b)||Es(e,ve,"buNone"),l.J(h)||ks(e,ve,"buAutoNum",h),l.J(p)||Fs(e,ve,"buChar",p),l.J(g)||Rs(e,ve,"buBlip",g),l.J(y)||Ns(e,ve,"tabLst",y),l.J(S)||Bs(e,ve,"defRPr",S),l.J(C)||hr(e,ve,m,C)})}t.DrawingWriter.WriteCT_TextParagraphProperties=Hs;function Gs(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.id)||e.writeAttributeString("id",o.id),l.J(o.type)||e.writeAttributeString(h,o.type)},function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.pPr)||Hs(e,ve,"pPr",o.pPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_TextField=Gs;function Us(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_RegularTextRun=Us},"./src/xlsx-io/writer/comment-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/datamodel/excel-style.ts"),s=o.Util.oa;function c(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("comments",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd)},function(){u(r),r.writeElement("commentList",function(){t.forEach(function(e){d(r,e)})})}),r.getXmlString()}t.writeComments=c;function d(e,t){function r(e){var t=e;if(t){if("number"==typeof t)return t>400;if("string"==typeof t)return t.toLowerCase().indexOf("bold")!==-1||parseInt(t,10)>400}return!1}function i(e){var t=e;return!!t&&["italic","oblique"].indexOf(t.toLowerCase().trim())!==-1}e.writeElement("comment",function(){e.writeAttributeString("ref",o.IndexHelper.T(t.col)+(t.row+1)),e.writeAttributeString("authorId","0")},function(){e.writeElement("text",function(){e.writeElement("r",function(){var n,c,d;e.writeElement("rPr",function(){var o,n=t.fontWeight;r(n)&&e.writeLeafElement("b"),n=t.fontStyle,i(n)&&e.writeLeafElement("i"),o=t.textDecoration,o&&(1&o&&e.writeLeafElement("u"),8&o&&e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[2])}),2&o&&e.writeLeafElement("strike")),n=t.fontSize,n&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",n)}),n=t.foreColor,n?a.writeColor(e,"color",n):e.writeLeafElement("color",function(){e.writeAttributeString("indexed","81")}),n=t.fontFamily,n&&e.writeLeafElement("rFont",function(){e.writeAttributeString("val",n)}),e.writeLeafElement("family",function(){e.writeAttributeString("val","2")})}),n=t.text,c=o.J(n)?"":n,d=c.length!==c.trim().length,e.writeElement("t",function(){d&&e.writeAttributeString("xml:space","preserve")},function(){e.writeValue(s(c))})})})})}function u(e){e.writeElement("authors",void 0,function(){e.writeElement("author",void 0,function(){e.writeValue("Author")})})}function f(e,t,r){var i="_x0000_t",n="202",a="_x0000_s";e.writeElement("v:shapetype",function(){e.writeAttributeString("id",i+n),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt",n),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("gradientshapeok","t"),e.writeAttributeString("o:connecttype","rect")})}),t.forEach(c);function s(e){if(e&&e.indexOf("rgb")>=0){var t=l.ColorHelper.fromHtmlColor(e),r=t.toString(16).substr(-6);return"#"+r}return e}function c(t){var l=t.inset;e.writeElement("v:shape",function(){e.writeAttributeString("id",a+r),r++,e.writeAttributeString("type","#"+i+n),e.writeAttributeString("style",c(t)),e.writeAttributeString("fillcolor",s(t.backColor)),e.writeAttributeString("strokecolor",s(t.borderColor)),e.writeAttributeString("strokeweight",""+t.borderWidth),l||e.writeAttributeString("o:insetmode","auto")},function(){var r=t.dashStyle,i=t.lineStyle;r?e.writeLeafElement("v:stroke",function(){e.writeAttributeString("dashstyle",r)}):i&&e.writeLeafElement("v:stroke",function(){e.writeAttributeString("linestyle",i)}),e.writeLeafElement("v:fill",function(){var r=t.opacity;o.J(r)||1===r||e.writeAttributeString("opacity",Math.floor(65535*r)+"f"),e.writeAttributeString("color2","#ffffe1")}),e.writeLeafElement("v:shadow",function(){e.writeAttributeString("color","black"),e.writeAttributeString("obscured","t")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("o:connecttype","none")}),e.writeElement("v:textbox",function(){e.writeAttributeString("style","mso-direction-alt:auto"+(t.autoSize?";mso-fit-shape-to-text:t":"")),l&&e.writeAttributeString("inset",l)},function(){e.writeElement("div",function(){e.writeAttributeString("style","text-align:"+t.hAlign.toLowerCase())},null)}),e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Note")},function(){t.dynamicMove===!1&&e.writeLeafElement("x:MoveWithCells"),t.dynamicSize===!1&&e.writeLeafElement("x:SizeWithCells"),t.locked===!1&&e.writeElementString("x:Locked","False"),t.lockText===!1&&e.writeElementString("x:LockText","False"),e.writeElementString("x:AutoFill","False");var r=t.hAlign;"Left"!==r&&e.writeElementString("x:TextHAlign",r),e.writeElementString("x:Row",t.row),e.writeElementString("x:Column",t.col),1===t.displayMode&&e.writeLeafElement("x:Visible")})});function c(e){var t=["position:absolute"],r=e.marginLeft;return r>=0&&t.push("margin-left:"+r+"pt"),r=e.marginTop,r>=0&&t.push("margin-top:"+r+"pt"),r=e.width,r&&t.push("width:"+r),r=e.height,r&&t.push("height:"+r),t.push("z-index:"+e.zIndex),r=e.visibility,r&&t.push("visibility:"+r),t.join(";")}}}t.writeCommentShapes=f},"./src/xlsx-io/writer/conditionalformat-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/range-parser.ts"),i=r("./src/common/common.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/xlsx-io/writer/style-writer.ts"),c=r("./src/xlsx-io/writer/datavalidation-writer.ts"),function(e){e[e.conditionRuleBase=0]="conditionRuleBase",e[e.cellValueRule=1]="cellValueRule",e[e.specificTextRule=2]="specificTextRule",e[e.formulaRule=3]="formulaRule",e[e.dateOccurringRule=4]="dateOccurringRule",e[e.top10Rule=5]="top10Rule",e[e.uniqueRule=6]="uniqueRule",e[e.duplicateRule=7]="duplicateRule",e[e.averageRule=8]="averageRule",e[e.twoScaleRule=10]="twoScaleRule",e[e.threeScaleRule=11]="threeScaleRule",e[e.dataBarRule=12]="dataBarRule",e[e.iconSetRule=13]="iconSetRule",e[e.rowStateRule=14]="rowStateRule",e[e.columnStateRule=15]="columnStateRule"}(d||(d={})),u={0:"num",1:"min",2:"max",3:"percent",4:"percentile",6:"formula",5:"autoMin",7:"autoMax"},f={0:"3Arrows",1:"3ArrowsGray",4:"3Flags",5:"3TrafficLights1",6:"3TrafficLights2",7:"3Signs",8:"3Symbols",9:"3Symbols2",10:"4Arrows",11:"4ArrowsGray",12:"4RedToBlack",13:"4Rating",14:"4TrafficLights",15:"5Arrows",16:"5ArrowsGray",17:"5Rating",18:"5Quarters",3:"3Stars",2:"3Triangles",19:"5Boxes",20:"NoIcons"},b={1:"num",4:"percent",7:"formula",5:"percentile"},h={0:"equal",1:"notEqual",2:"greaterThan",3:"greaterThanOrEqual",4:"lessThan",5:"lessThanOrEqual",6:"between",7:"notBetween"};function S(e){var t=""+e;return"="===t.charAt(0)?t.substr(1):t}function C(e){return"string"==typeof e?(e="="===e[0]?e.substr(1):e,i.addXLFNPrefix(e)):e}function w(e){return"string"==typeof e}function x(e){return e===u[1]||e===u[2]}function A(e){var t,r,o,i;if(w(e.value1)&&c.isTablesheetColumnFormula(e.value1))return!0;if(w(e.value2)&&c.isTablesheetColumnFormula(e.value2))return!0;if(w(e.minValue)&&c.isTablesheetColumnFormula(e.minValue))return!0;if(w(e.midValue)&&c.isTablesheetColumnFormula(e.midValue))return!0;if(w(e.maxValue)&&c.isTablesheetColumnFormula(e.maxValue))return!0;if(w(e.text)&&c.isTablesheetColumnFormula(e.text))return!0;if(w(e.formula)&&c.isTablesheetColumnFormula(e.formula)&&c.isTablesheetColumnFormula(e.formula))return!0;if(e.iconCriteria&&e.iconCriteria.length>0)for(t=0,r=e.iconCriteria;t0)for(n=function(n){var l=c[n];return i.J(l.priority)&&(l.priority=1),N(l)||H(l,t,r.jj())||M(l)||A(l)?"continue":void e.writeElement("conditionalFormatting",function(){e.writeAttributeString("sqref",o.getRangeString(l.ranges)),l.pivot&&e.writeAttributeString("pivot","1")},function(){if(l.ruleType===d.dataBarRule)e.writeElement("cfRule",function(){e.writeAttributeString("type",d[l.ruleType].replace("Rule","")),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("dataBar",function(){l.showBarOnly&&e.writeAttributeString("showValue","0")},function(){var t,r=u[l.minType];(i.J(r)||"autoMin"===r)&&(r="min"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",r),x(r)||i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))}),t=u[l.maxType],(i.J(t)||"autoMax"===t)&&(t="max"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",t),x(t)||i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.color))}),e.writeElement("extLst",function(){ -e.writeElement("ext",function(){e.writeAttributeString("uri","{B025F937-C7B1-47D3-B67F-A62EFF666E3E}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){l.id=i.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===d.twoScaleRule||l.ruleType===d.threeScaleRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","colorScale"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("colorScale",function(){e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.minType]),i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))});var t=l.ruleType===d.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.midType]),i.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",i.Util.oa(S(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.maxType]),i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.minColor)),t&&a.writeColor(e,"color",_(l.midColor)),a.writeColor(e,"color",_(l.maxColor))})});else if(l.ruleType===d.iconSetRule){if(N(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;i.J(t)&&(t=0),e.writeAttributeString("iconSet",f[t]),l.reverseIconOrder&&e.writeAttributeString("reverse","1"),l.showIconOnly&&e.writeAttributeString("showValue","0")},function(){var t,r;for(e.writeLeafElement("cfvo",function(){e.writeAttributeString("type","percent"),e.writeAttributeString("val","0")}),t=function(t){var r=l.iconCriteria[t];e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",b[r.iconValueType]),e.writeAttributeString("val",i.Util.oa(S(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r=0&&e.writeAttributeString("dxfId",l.dxfId),l.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){i.J(l.value1)||e.writeElement("formula",function(){e.writeValue(L(C(l.value1)))}),i.J(l.value2)||e.writeElement("formula",function(){e.writeValue(L(C(l.value2)))})});else{var t=v(l);e.writeElement("cfRule",function(){4===l.ruleType?e.writeAttributeString("type","timePeriod"):8===l.ruleType?(e.writeAttributeString("type","aboveAverage"),"aboveOrEqualToAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.equalAverage=!0),"belowAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.aboveAverage=!1)):2===l.ruleType&&i.J(t.type)?e.writeAttributeString("type","containsText"):e.writeAttributeString("type",t.type),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId),t.priority>=0&&e.writeAttributeString("priority",t.priority),t.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),i.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),i.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),i.J(t.operator)||e.writeAttributeString("operator",t.operator),i.J(t.rank)||e.writeAttributeString("rank",t.rank),i.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),i.J(t.text)||e.writeAttributeString("text",i.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,o;if(!i.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(L(C(t.formulas[r])))})},o=0;o/g;return"string"==typeof e?e.replace(t,"&").replace(r,"<").replace(o,">"):i.J(e)?e:""+e}function D(e){return"string"==typeof e?e.replace(/"/g,'""'):i.J(e)?e:""+e}function B(e){var t,r,o=e.operator,i="containsText",n="contains";return 2===o?(i="beginsWith",n="beginsWith"):3===o?(i="endsWith",n="endsWith"):1===o?(i="notContainsText",n="notContains"):0===o&&(n="containsText"),t={type:i,priority:e.priority,operator:n,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=P(t),r&&(t.formulas=[r]),t}function P(e){var t,r,o,n;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=i.IndexHelper.T(t.col)+(t.row+1),o="",o=t.rowCount===l.ExcelConstants.wb?W("${0}:${1}",i.IndexHelper.T(t.col),i.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?W("${0}:${1}",t.row+1,t.row+t.rowCount):W("${0}${1}:${2}${3}",i.IndexHelper.T(t.col),t.row+1,i.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),n=D(e.text),"top10"===e.type)return e.bottom?e.percent?W("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",o,e.rank,r):W("SMALL(({0}),MIN({1},COUNT({0})))>={2}",o,e.rank,r):e.percent?W("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",o,e.rank,r):W("LARGE(({0}),MIN({1},COUNT({0})))<={2}",o,e.rank,r);if("containsText"===e.type)return W('NOT(ISERROR(SEARCH("{0}",{1})))',n,r);if("notContainsText"===e.type)return W('ISERROR(SEARCH("{0}",{1}))',n,r);if("beginsWith"===e.type)return W('LEFT({0},{1}) = "{2}"',r,e.text.length,n);if("endsWith"===e.type)return W('RIGHT({0},{1}) = "{2}"',r,e.text.length,n);if("duplicateValues"===e.type)return W("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",o,r);if("uniqueValues"===e.type)return W("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",o,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&i.J(e.stdDev))return W("{0}>AVERAGE({1})",r,o);if(!i.J(e.aboveAverage)){if(!(i.J(e.equalAverage)||e.aboveAverage||i.J(e.equalAverage))&&e.equalAverage&&i.J(e.stdDev))return W("{0}<=AVERAGE({1})",r,o);if(!e.aboveAverage&&i.J(e.stdDev))return W("{0}=AVERAGE({1})",r,o);if(!i.J(e.stdDev))return i.J(e.aboveAverage)||e.aboveAverage?W("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,o,e.stdDev):W("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,o,e.stdDev)}return null}function W(e){var t,r,o=[];for(t=1;t0)for(t=0;t0&&a.forEach(function(e){e.external?r.On.push(e):l.push(e)}),l.length>0&&e.writeElement("dataValidations",function(){e.writeAttributeString("count",l.length)},function(){l.forEach(function(t){o.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){b(e,t),e.writeAttributeString("sqref",t.ranges)},function(){i(t.firstFormula)||e.writeElementString("formula1",n(o.addXLFNPrefix(t.firstFormula))),i(t.secondFormula)||e.writeElementString("formula2",n(o.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function p(e,t){var r=t.On;r&&0===r.length||(e.writeElement("ext",function(){e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"),e.writeAttributeString("uri","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")},function(){e.writeElement("x14:dataValidations",function(){e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main"),e.writeAttributeString("count",r.length)},function(){r.forEach(function(t){e.writeElement("x14:dataValidation",function(){b(e,t)},function(){i(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.firstFormula)))}),i(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=a)}t.writeExtensionDataValidations=p},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.te),t.writeAttributeString("xmlns:vt",i.XFileConstants.ue)},function(){var r,o=e.Ne.docProps.docPropsApp;for(r in o)if(o.hasOwnProperty(r))switch(r){case"HeadingPairs":a(t,o);break;case"TitlesOfParts":l(t,o);break;default:s(r,t,o)}}),t.getXmlString()}t.writeDocPropsApp=n;function a(e,t){e.writeElement("HeadingPairs",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.HeadingPairs.size),e.writeAttributeString("baseType",t.HeadingPairs.baseType)},function(){var r,o=t.HeadingPairs.workbookInfoArray,i=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(o[t].elementType,function(){},function(){e.writeValue(o[t].value)})})};for(r=0;r/g,">").replace(/\')}i='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function a(e,t,r){var o=(t?1:0)+(r?1:0);e.push('\t'),t&&e.push('\t\t'),r&&e.push('\t\t"),e.push("\t")}function l(e,t,r,o){if(t&&e.push('\t '),r){var i=' ';o&&(i+=' '),e.push("\t"+i+" ")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push(''),t.push(" '),o&&t.push('\t '+(i?' ':"")+" "),t.push(""),t.join("\r\n")}t.getMetadataContent=s},"./src/xlsx-io/writer/pivot-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts"),t.captionCompareTypeExcel=[["captionEqual","captionNotEqual","captionBeginsWith","captionNotBeginsWith","captionEndsWith","captionNotEndsWith","captionContains","captionNotContains","captionGreaterThan","captionGreaterThanOrEqual","captionLessThan","captionLessThanOrEqual","captionBetween","captionNotBetween"],["dateEqual","dateNotEqual","dateOlderThan","dateOlderThanOrEqual","dateNewerThan","dateNewerThanOrEqual","dateBetween","dateNotBetween","today","yesterday","tomorrow",void 0,"thisMonth","lastMonth","nextMonth","thisWeek","lastWeek","nextWeek","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","Q1","Q2","Q3","Q4","M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","yearToDate"],["valueEqual","valueNotEqual","valueGreaterThan","valueGreaterThanOrEqual","valueLessThan","valueLessThanOrEqual","valueBetween","valueNotBetween"],["count","percent","sum"]],s=o.Util.oa,c=o.Util.Ba,d=o.Util.xa,u="mc:Ignorable";function f(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),o.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),o.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",a.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),o.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),o.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),e.enableRefresh===!1&&t.writeAttributeString("enableRefresh","0"),e.invalid&&t.writeAttributeString("invalid","1"),e.minRefreshableVersion>0&&e.minRefreshableVersion<=e.createdVersion&&t.writeAttributeString("minRefreshableVersion",e.minRefreshableVersion),e.missingItemsLimit>0&&t.writeAttributeString("missingItemsLimit",e.missingItemsLimit),e.optimizeMemory&&t.writeAttributeString("optimizeMemory","1"),o.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),o.isNullOrUndefined(e.refreshOnLoad)||t.writeAttributeString("refreshOnLoad","1"),e.supportSubquery&&t.writeAttributeString("supportSubquery","1"),e.supportAdvancedDrill&&t.writeAttributeString("supportAdvancedDrill","1"),e.tupleCache&&t.writeAttributeString("tupleCache","1"),e.upgradeOnRefresh&&t.writeAttributeString("upgradeOnRefresh","1")},function(){h(t,e),p(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&A(t,e),e.KPIs&&e.KPIs.length>0&&E(t,e),o.isNullOrUndefined(e.pivotTupleCache)||L(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&_(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&M(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&U(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&z(t,e),b(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function b(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:pivotCacheDefinition",function(){e.writeAttributeString("pivotCacheId",t+"")},function(){})})})}function h(e,t){e.writeElement("cacheSource",function(){e.writeAttributeString("type",t.sourceType)},function(){"worksheet"===t.sourceType&&e.writeLeafElement("worksheetSource",function(){t.sourceName&&e.writeAttributeString("name",t.sourceName),t.ref&&e.writeAttributeString("ref",t.ref),t.sheet&&e.writeAttributeString("sheet",t.sheet)})})}function p(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,o;for(r=0;r0&&e.writeAttributeString("hierarchy",t.hierarchy),t.level>0&&e.writeAttributeString("level",t.level),t.mappingCount>0&&e.writeAttributeString("mappingCount",t.mappingCount),o.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),o.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),o.isNullOrUndefined(t.serverField)||e.writeAttributeString("serverField","1"),t.sqlType>0&&e.writeAttributeString("sqlType",t.sqlType),t.uniqueList===!1&&e.writeAttributeString("uniqueList","0")},function(){t.databaseField!==!1&&(t.entities&&t.entities.length>0?e.writeElement("sharedItems",function(){g(e,t)},function(){y(e,t)}):e.writeLeafElement("sharedItems",function(){g(e,t)})),x(e,t.fieldGroup)})}function g(e,t){t.containsSemiMixedTypes===!1&&e.writeAttributeString("containsSemiMixedTypes","0"),t.containsNonDate===!1&&e.writeAttributeString("containsNonDate","0"),t.containsDate&&e.writeAttributeString("containsDate","1"),t.containsString===!1&&e.writeAttributeString("containsString","0"),t.containsBlank&&e.writeAttributeString("containsBlank","1"),t.containsMixedTypes&&e.writeAttributeString("containsMixedTypes","1"),t.containsNumber&&!t.containsDate&&e.writeAttributeString("containsNumber","1"),t.containsInteger&&!t.containsDate&&e.writeAttributeString("containsInteger","1"),t.longText&&e.writeAttributeString("longText","1"),t.containsDate?(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))):(t.containsNumber||t.containsInteger)&&(e.writeAttributeString("minValue",""+t.minValue),e.writeAttributeString("maxValue",""+t.maxValue)),t.isShared&&(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))),t.entities&&t.entities.length>0&&e.writeAttributeString("count",t.entities.length)}function y(e,t){var r,o;for(r=0;r0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),o.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),o.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),o.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),o.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),o.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),o.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),o.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function x(e,t){o.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.par>=0&&e.writeAttributeString("par",t.par),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,i;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),o.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),o.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),o.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),o.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),o.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),o.isNullOrUndefined(t.endDate)||e.writeAttributeString("endDate",c(new Date(t.endDate)))}),r=t.discreteGroup,r&&r.length>0&&e.writeElement("discretePr",function(){e.writeAttributeString("count",r.length)},function(){var t,o=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r=0&&e.writeAttributeString("parentSet",t.parentSet),t.iconSet>0&&e.writeAttributeString("iconSet",t.iconSet),t.attribute&&e.writeAttributeString("attribute","1"),t.time&&e.writeAttributeString("time","1"),t.keyAttribute&&e.writeAttributeString("keyAttribute","1"),o.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),o.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),o.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),o.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),t.measures&&e.writeAttributeString("measures","1"),t.count>=0&&e.writeAttributeString("count",t.count),t.oneField&&e.writeAttributeString("oneField","1"),t.memberValueDatatype>0&&e.writeAttributeString("memberValueDatatype",t.memberValueDatatype),t.unbalanced||e.writeAttributeString("unbalanced","0"),t.unbalancedGroup||e.writeAttributeString("unbalancedGroup","0"),t.hidden&&e.writeAttributeString("hidden","1")},function(){t.fieldsUsage.length>0&&e.writeElement("fieldsUsage",function(){e.writeAttributeString("count",t.fieldsUsage.length)},function(){for(var r=0;r0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r0&&e.writeAttributeString("id",t.id)},function(){t.groupMembers.length>0&&e.writeElement("groupMembers",function(){e.writeAttributeString("count",t.groupMembers.length)},function(){for(var r=0;r0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r=0&&e.writeAttributeString("fld",t.fld),t.hier>=0&&e.writeAttributeString("hier",t.hier),t.item>=0&&e.writeAttributeString("item",t.item)})}function W(e,t){e.writeLeafElement("serverFormat",function(){o.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),o.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function _(e,t){var r=t.calculatedItems;r&&e.writeElement("calculatedItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=0&&e.writeAttributeString("field",t.field),t.formula&&e.writeAttributeString("formula",s(t.formula))},function(){t.pivotArea&&te(e,t.pivotArea)})}function M(e,t){var r=t.calculatedMembers;r&&e.writeElement("calculatedMembers",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeAttributeString("solveOrder",t.solveOrder),t.set&&e.writeAttributeString("set","1")})}function H(e,t){!t.dimensions||t.dimensions.length<=0||e.writeElement("dimensions",function(){e.writeAttributeString("count",t.dimensions.length)},function(){for(var r=0;r=0&&e.writeAttributeString("measureGroup",t.measureGroup),t.dimension>=0&&e.writeAttributeString("dimension",t.dimension)})}function j(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("count",e.length)},function(){for(var r=0;r0?r.writeAttributeString("updatedVersion",t.updatedVersion):r.writeAttributeString("updatedVersion","7"),t.minRefreshableVersion>0&&t.minRefreshableVersion<=t.createdVersion&&r.writeAttributeString("minRefreshableVersion",t.minRefreshableVersion),t.printDrill&&r.writeAttributeString("printDrill","1"),t.showDrill===!1&&r.writeAttributeString("showDrill","0"),t.showDataTips===!1&&r.writeAttributeString("showDataTips","0"),t.enableDrill===!1&&r.writeAttributeString("enableDrill","0"),t.preserveFormatting===!1&&r.writeAttributeString("preserveFormatting","0"),t.useAutoFormatting&&r.writeAttributeString("useAutoFormatting","1"),t.pageWrap>0&&r.writeAttributeString("pageWrap",t.pageWrap),t.pageOverThenDown&&r.writeAttributeString("pageOverThenDown","1"),t.rowGrandTotals===!1&&r.writeAttributeString("rowGrandTotals","0"),t.colGrandTotals===!1&&r.writeAttributeString("colGrandTotals","0"),t.itemPrintTitles&&r.writeAttributeString("itemPrintTitles","1"),t.fieldPrintTitles&&r.writeAttributeString("fieldPrintTitles","1"),t.mergeItem&&r.writeAttributeString("mergeItem","1"),t.createdVersion>0?r.writeAttributeString("createdVersion",t.createdVersion):r.writeAttributeString("createdVersion","7"),t.indent>=0&&r.writeAttributeString("indent",t.indent),t.asteriskTotals&&r.writeAttributeString("asteriskTotals","1"),t.autoFormatId>0&&r.writeAttributeString("autoFormatId",t.autoFormatId),o.isNullOrUndefined(t.colHeaderCaption)||r.writeAttributeString("colHeaderCaption",t.colHeaderCaption),t.compact===!1&&r.writeAttributeString("compact","0"),t.compactData===!1&&r.writeAttributeString("compactData","0"),t.dataOnRows&&r.writeAttributeString("dataOnRows","1"),t.dataPosition>0&&r.writeAttributeString("dataPosition",t.dataPosition),t.disableFieldList&&r.writeAttributeString("disableFieldList","1"),t.editData&&r.writeAttributeString("editData","1"),t.enableFieldProperties===!1&&r.writeAttributeString("enableFieldProperties","0"),t.enableWizard===!1&&r.writeAttributeString("enableWizard","0"),t.gridDropZones&&r.writeAttributeString("gridDropZones","1"),t.immersive&&r.writeAttributeString("immersive","1"),t.mdxSubqueries&&r.writeAttributeString("mdxSubqueries","1"),t.showHeaders===!1&&r.writeAttributeString("showHeaders","0"),t.outline&&r.writeAttributeString("outline","1"),t.outlineData&&r.writeAttributeString("outlineData","1"),t.multipleFieldFilters===!1&&r.writeAttributeString("multipleFieldFilters","0"),t.chartFormat>0&&r.writeAttributeString("chartFormat",t.chartFormat),t.fieldListSortAscending&&r.writeAttributeString("fieldListSortAscending","1"),t.customListSort===!1&&r.writeAttributeString("customListSort","0"),o.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),o.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),o.isNullOrUndefined(t.rowHeaderCaption)||r.writeAttributeString("rowHeaderCaption",t.rowHeaderCaption),t.showCalcMbrs===!1&&r.writeAttributeString("showCalcMbrs","0"),t.showDataDropDown&&r.writeAttributeString("showDataDropDown","0"),t.showDropZones===!1&&r.writeAttributeString("showDropZones","0"),t.showEmptyCol===!1&&r.writeAttributeString("showEmptyCol","0"),t.showEmptyRow===!1&&r.writeAttributeString("showEmptyRow","0"),t.showItems===!1&&r.writeAttributeString("showItems","0"),t.showMemberPropertyTips===!1&&r.writeAttributeString("showMemberPropertyTips","0"),t.showMultipleLabel===!1&&r.writeAttributeString("showMultipleLabel","0"),t.subtotalHiddenItems&&r.writeAttributeString("subtotalHiddenItems","1"),o.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),o.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ie(r,t,!0),ae(r,t),ie(r,t,!1),le(r,t),de(r,t),fe(r,t),pe(r,t),ge(r,t),Se(r,t),we(r,t),ve(r,t),ke(e,r,t),Ee(r,t),Ie(r,t),De(r,t)}),r.getXmlString()}t.writePivotTable=K;function q(e,t){e.writeLeafElement("location",function(){e.writeAttributeString("ref",t.ref),t.firstHeaderRow>=0&&e.writeAttributeString("firstHeaderRow",t.firstHeaderRow),t.firstDataRow>=0&&e.writeAttributeString("firstDataRow",t.firstDataRow),t.firstDataCol>=0&&e.writeAttributeString("firstDataCol",t.firstDataCol),t.rowPageCount>0&&e.writeAttributeString("rowPageCount",t.rowPageCount),t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r0?e.writeElement("pivotField",function(){ -Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})}),n&&n.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){n[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",n[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){a[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",a[0].rid)})})})}t.writeSlicersInWorkSheet=g;function y(e,t,r){var o,n=t&&t.length>0,a=!1,l=!1,s=[],c=[];if(r)for(o=0;o0&&o.forEach(function(r){p(e,t,r)})})}t.writeSparklineGroups=h,d={0:"line",1:"column",2:"stacked"},u={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function p(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",d[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),i.isNullOrUndefined(t)||(!i.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",u[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",u[0]),t.showMarkers&&e.writeAttributeString("markers","1"),t.showHigh&&e.writeAttributeString("high","1"),t.showLow&&e.writeAttributeString("low","1"),t.showFirst&&e.writeAttributeString("first","1"),t.showLast&&e.writeAttributeString("last","1"),t.showNegative&&e.writeAttributeString("negative","1"),t.displayXAxis&&e.writeAttributeString("displayXAxis","1"),t.displayHidden&&e.writeAttributeString("displayHidden","1"),t.rightToLeft&&e.writeAttributeString("rightToLeft","1"),t.minAxisType&&e.writeAttributeString("minAxisType",f[t.minAxisType]),t.maxAxisType&&e.writeAttributeString("maxAxisType",f[t.maxAxisType]),t.manualMin&&e.writeAttributeString("manualMin",t.manualMin),t.manualMax&&e.writeAttributeString("manualMax",t.manualMax))},function(){var o=r&&r.setting,i=a.ColorHelper.toExcelColor(o.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",i),i=a.ColorHelper.toExcelColor(o.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",i),i=a.ColorHelper.toExcelColor(o.axisColor||"black"),l.writeColor(e,"x14:colorAxis",i),i=a.ColorHelper.toExcelColor(o.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",i),i=a.ColorHelper.toExcelColor(o.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",i),i=a.ColorHelper.toExcelColor(o.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",i),i=a.ColorHelper.toExcelColor(o.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",i),i=a.ColorHelper.toExcelColor(o.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",i),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(g(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){m(e,t,r)})})})}t.writeSparklineGroup=p;function m(e,t,r){e.writeElement("x14:sparkline",function(){i.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(g(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(n.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function g(e,t){return c(s(e)+"!"+n.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/tuple.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/common/common.ts"),c=r("./src/xlsx-io/common/color-writer.ts"),d=void 0,u={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},f={selectedItemWithDataStyle:"selectedItemWithData",selectedItemWithNoDataStyle:"selectedItemWithNoData",unSelectedItemWithDataStyle:"unselectedItemWithData",unSelectedItemWithNoDataStyle:"unselectedItemWithNoData",hoveredSelectedItemWithDataStyle:"hoveredSelectedItemWithData",hoveredSelectedItemWithNoDataStyle:"hoveredSelectedItemWithNoData",hoveredUnSelectedItemWithDataStyle:"hoveredUnselectedItemWithData",hoveredUnSelectedItemWithNoDataStyle:"hoveredUnselectedItemWithNoData"},b={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}function p(e,t){var r=x(e,t),a=new o.XmlWriter;return a.writeDocument(),a.writeElement("styleSheet",function(){a.writeAttributeString("xmlns",i.XFileConstants.Hd),a.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),a.writeAttributeString("xmlns:x14ac",i.XFileConstants.Nd),a.writeAttributeString("mc:Ignorable",i.XFileConstants.Od)},function(){var t,o,i,l,c,f,b;if(r.gn.count>0&&a.writeElement("numFmts",function(){a.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&A(a,{key:e,value:r.gn[e]})}),a.writeElement("fonts",function(){a.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e0?a.writeElement("tableStyles",function(){a.writeAttributeString("count",e.mh.length),a.writeAttributeString("defaultTableStyle","TableStyleMedium2"),a.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){a.writeElement("tableStyle",function(){a.writeAttributeString("name",e.name),e.isPivot?a.writeAttributeString("table","0"):(a.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||a.writeAttributeString("table",e.tableId)),a.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){a.writeLeafElement("tableStyleElement",function(){a.writeAttributeString("type",u[e.type]),a.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||a.writeAttributeString("size",e.size)})})})})}):a.writeLeafElement("tableStyles",function(){h(a,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&a.writeElement("extLst",function(){e.oh.length>0&&(m(a,e),y(a,e.oh)),e.qh.length>0&&(g(a,e),S(a,e.qh))})}),{xml:a.getXmlString(),styleOffset:r.Xn}}t.writeStyle=p;function m(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){P(e,t)})}function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){W(e,t)})}function y(e,t){var r,o="SlicerStyle",n="Light",a="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerStyles",function(){e.writeAttributeString("defaultSlicerStyle","SlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x14:slicerStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x14:slicerStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x14:slicerStyleElement",function(){e.writeAttributeString("type",f[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(e,t){var r,o="TimeSlicerStyle",n="Light",a="Dark",l=[];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineStyles",function(){e.writeAttributeString("defaultTimelineStyle","TimeSlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x15:timelineStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x15:timelineStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x15:timelineStyleElement",function(){e.writeAttributeString("type",b[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function C(e){var t=e&&e.fontName;return t&&('"'===t.charAt(0)&&(t=t.substr(1)),'"'===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.fontName=t),e}function w(e,t){var r,o=e.length;if(0===o)return-1;for(r=0;r=0&&(m=v.numberFormatIndex),v.border&&(y=s.Util.la(P.Tn,v.border),y===-1&&(P.Tn.push(v.border),y=P.Tn.length-1)),s.isNullOrUndefined(v.fill)||0===v.fill.patternType?g=0:(k=v.fill,g=s.Util.la(P.Sn,k),g===-1&&(P.Sn.push(k),g=P.Sn.length-1)),v.isStyleFormat?(t[T]=""+P.Un.length,T++,P.Un.push(new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)))):(F=new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)),R=w(P.Vn,F),R===-1?(t[T]=""+P.Vn.length,P.Vn.push(F)):t[T]=""+R,T++);if(e.Ih&&e.Ih.length>0)for(E=e.Ih,I=E.length,i=0;i0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+o)})}void 0!==t.fontColor&&t.fontColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.fontColor),r||(0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])}),s.StringEx.O(t.fontName)||e.writeLeafElement("name",function(){e.writeAttributeString("val",t.fontName)}),s.isNullOrUndefined(t.fontFamily)||0===t.fontFamily||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamily)}),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}))})}function v(e,t){t&&e.writeElement("rPr",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.foreColor),t.isCondense&&e.writeLeafElement("condense"),t.isExtend&&e.writeLeafElement("extend"),s.isNullOrUndefined(t.fontFamilySet)||0===t.fontFamilySet||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamilySet)}),t.isItalic&&e.writeLeafElement("i"),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),s.StringEx.O(t.fontFamily)||e.writeLeafElement("rFont",function(){e.writeAttributeString("val",t.fontFamily)}),t.fontScheme&&0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isStrikeOut&&e.writeLeafElement("strike"),t.fontSize&&0!==t.fontSize||t.fontSize!==-1){var r=t.fontSize;r>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+r)})}t.underLineStyle&&0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),t.vertAlign&&0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])})})}t.writerRichTextStyle=v;function k(e,t,r){e.writeElement("fill",d,function(){t.stops?e.writeElement("gradientFill",function(){var r,o,i,n=["degree","left","right","top","bottom"];for(r=0,o=n;r0,f=d&&(d.item1||!d.item2),b="writeElement";u||f||(b="writeLeafElement"),e[b]("xf",function(){if(e.writeAttributeString("numFmtId",""+n.item1),e.writeAttributeString("fontId",""+n.item2),e.writeAttributeString("fillId",""+n.item3),e.writeAttributeString("borderId",""+n.item4),c){if(o)I(e,c,"applyFont",!0),I(e,c,"applyFill",!0),I(e,c,"applyBorder",!0),I(e,c,"applyNumberFormat",!0),I(e,c,"applyAlignment",!0),I(e,c,"applyProtection",!0);else{if(c.isStyleFormat||s.isNullOrUndefined(c.parentFormatID))e.writeAttributeString("xfId","0");else{var t=c.parentFormatID;s.isNullOrUndefined(t)?e.writeAttributeString("xfId","0"):e.writeAttributeString("xfId",""+t)}s.isNullOrUndefined(c.applyFont)&&0===n.item2||I(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||I(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||I(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||I(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||I(e,c,"applyAlignment",!1),s.isNullOrUndefined(c.applyProtection)||I(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0"); -}},function(){u&&e.writeLeafElement("alignment",function(){0!==c.horizontalAlign?e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[c.horizontalAlign]):0===c.horizontalAlign&&c.indent>0&&e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[1]),2!==c.verticalAlign&&e.writeAttributeString("vertical",a.ExcelVerticalAlignment[c.verticalAlign]),c.isVerticalText===!0?e.writeAttributeString("textRotation",255):0!==c.rotation&&e.writeAttributeString("textRotation",""+c.rotation),0!==c.readingOrder&&e.writeAttributeString("readingOrder",l.TextDirection[c.readingOrder]),c.isWordWrap&&e.writeAttributeString("wrapText","1"),c.isShrinkToFit&&e.writeAttributeString("shrinkToFit","1"),c.isJustfyLastLine&&e.writeAttributeString("justifyLastLine","1"),c.indent>0&&e.writeAttributeString("indent",""+c.indent)}),f&&e.writeLeafElement("protection",function(){d.item2||e.writeAttributeString("locked","0"),d.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,i=t.length;r=0)&&(o=void 0,i=void 0,n.numberFormat?(o=n.numberFormat.numberFormatId,i=n.numberFormat.numberFormatCode):(o=n.numberFormatIndex,i=n.numberFormatCode),A(e,{key:o,value:i})),n.fill&&(1===n.fill.patternType&&(n.fill.bgColor=n.fill.fgColor),k(e,n.fill,!0)),n.border&&F(e,n.border,n.isSlicerHeader,!0)})}t.writeDxf=_},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function d(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function u(e,t,r,s){if(n.isNullOrUndefined(e))return null;var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("table",function(){var t,r;u.writeAttributeString("xmlns",i.XFileConstants.Md),u.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),u.writeAttributeString("name",t),r=d(t.split("-").join("_"),s),u.writeAttributeString("displayName",r),u.writeAttributeString("ref",a.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&u.writeAttributeString("headerRowCount","0"),e.showFooter&&u.writeAttributeString("totalsRowCount","1")},function(){var o,i;e.rowFilter&&!n.isNullOrUndefined(e.rowFilter)&&(o=void 0,i=t.Bj(r,e.rowFilter,e.tableSortInfo),i&&i.sortInfo&&(o=i.sortInfo,i.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(i),l.writeAutoFilter(u,i)),o&&l.writeSortInfo(u,o)),e.columns&&e.columns.length>0&&u.writeElement("tableColumns",function(){u.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var o=b(t.footerFormula);"custom"!==o?u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),n.isNullOrUndefined(t.footerValue)||u.writeAttributeString("totalsRowLabel",n.Util.oa(n.Util.xa(""+t.footerValue,!0))),n.isNullOrUndefined(t.footerFormula)||u.writeAttributeString("totalsRowFunction",o)},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))})}):u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),u.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))}),u.writeElement("totalsRowFormula",function(){u.writeValue(n.Util.oa(t.footerFormula))})})}})}),u.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=n.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,u.writeAttributeString("name",t)}e.highlightFirstColumn?u.writeAttributeString("showFirstColumn","1"):u.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?u.writeAttributeString("showLastColumn","1"):u.writeAttributeString("showLastColumn","0"),n.isNullOrUndefined(e.bandRows)?u.writeAttributeString("showRowStripes","1"):u.writeAttributeString("showRowStripes","0"),e.bandColumns?u.writeAttributeString("showColumnStripes","1"):u.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&u.writeElement("extLst",function(){},function(){u.writeElement("ext",function(){n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||u.writeAttributeString("uri",e.reservedElement.ext._attr.uri),n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||u.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",o=e.reservedElement.ext[r];n.isNullOrUndefined(o)||u.writeElement(r,function(){n.isNullOrUndefined(o._attr&&o._attr["xmlns:vp"])||u.writeAttributeString("xmlns:vp",o._attr["xmlns:vp"])},function(){n.isNullOrUndefined(o[r])||u.writeValue(o[r])}),t=e.reservedElement.ext["x14:table"],n.isNullOrUndefined(t&&t._attr)||u.writeLeafElement("x14:table",function(){n.isNullOrUndefined(t._attr.altText)||u.writeAttributeString("altText",t._attr.altText),n.isNullOrUndefined(t._attr.altTextSummary)||u.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),u.getXmlString()}t.writeTable=u;function f(e){var t,r;if(!e.showFilterButton)return!1;t=e.filterButtonVisibleInfo;for(r in t)if(t.hasOwnProperty(r)&&!t[r])return!1;return!0}s={101:"average",102:"countNums",103:"count",104:"max",105:"min",107:"stdDev",109:"sum",110:"let"};function b(e){var t,r;if(!n.isNullOrUndefined(e))return t=/\[\S[\S\s]*\S\]/,e=e.trim(),"SUBTOTAL("!==e.substr(0,9)||!t.test(e)||e.indexOf("[[")?"custom":(r=e.substr(9,3),s[r]||"custom")}function h(e){if(0===e.filterColumns.length)for(var t=0;t0)for(o=function(r,o){var i=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",i.script),e.writeAttributeString("script",i.typeface)})},n=0,a=t.themesFonts.length;n0&&(i.writeCommentShapes(a,t,o),o+=t.length),r&&r.length>0&&n.writeControlShapes(a,r,o)}),a.getXmlString()}t.writeVmlDrawingForLegacyDrawing=a},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,a,l,s,c){var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("workbook",function(){u.writeAttributeString("xmlns",i.XFileConstants.Hd),u.writeAttributeString("xmlns:r",i.XFileConstants.Ud)},function(){d(u,e),u.writeElement("sheets",void 0,function(){var r,o,i=function(r,o){var i=t[r];i&&u.writeLeafElement("sheet",function(){u.writeAttributeString("name",n.Util.oa(i.name)),u.writeAttributeString("sheetId",""+i.sheetId),e.tj(i.name)?u.writeAttributeString("state","hidden"):e.uj(i.name)&&u.writeAttributeString("state","veryHidden"),u.writeAttributeString("r:id",""+i.rID)})};for(r=0,o=t.length;r0&&e.writeAttributeString("firstSheet",""+r.startSheetIndex),"number"==typeof r.activeSheetIndex&&r.activeSheetIndex>0&&e.writeAttributeString("activeTab",""+r.activeSheetIndex)})})}function u(e){return e.toUpperCase()===n.PRINT_AREA_UPPERCASE?n.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var o,i,a=t.vj(),l=g(t);m(a,l),o=y(t),m(a,o),i=b(t),m(a,i),m(a,r),a.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=a[t];e.writeElement("definedName",function(){e.writeAttributeString("name",n.Util.oa(u(r.name))),r.comment&&e.writeAttributeString("comment",n.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(n.addXLFNPrefix(r.formula).replace(/&/g,"&").replace(//g,">"))})};for(t=0;t0&&B(m,e.fi(t)),w(e,t)&&D(m,t,e)}),m.getXmlString()}t.writeWorksheet=C;function w(e,t){var r,o,i,n,a=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(a&&a.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(o=e.xg(t),i=o&&o.rules,!(!i||!c.needWriteConditionalFormatExtension(i,t,e.jj()))||(n=e.On,!!(n&&n.length>0))))}function x(e,t,r){var o=r.lj(t),i=o.colsSumRight,n=o.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&i&&n&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&a.writeColor(e,"tabColor",l),i&&n||e.writeLeafElement("outlinePr",function(){i||e.writeAttributeString("summaryRight","0"),n||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function A(e,t,r){var o=r.nj(t),i=o.columnCount,n=o.rowCount;i>0&&n>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(i-1)+n)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",m,function(){e.writeElement("sheetView",function(){var i,n,a,l,s,c,d,u,f,b,h,p,m=r.oj(t),g=m.gridlineColor;null!==g&&1===g.colorType()&&64!==g.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+g.value())),i=r.pj(t),n=i.frozenTopRow||0,a=i.frozenLeftCol||0,l=m.topLeftCell,s=i.frozenColCount,c=i.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(n||a?(d=""+r.Ki(a)+(n+1),e.writeAttributeString("topLeftCell",""+d)):s||c?s&&!c?(d="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+d)):!s&&c&&(d=""+r.Ki(l.col)+"1", -e.writeAttributeString("topLeftCell",""+d)):(d=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+d))),m.showGridLine||e.writeAttributeString("showGridLines","0"),m.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),o.isNullOrUndefined(m.zoom)||(u=Math.round(100*m.zoom),100!==u&&e.writeAttributeString("zoomScale",""+u)),f=r.kj(t),f.showFormulas&&e.writeAttributeString("showFormulas","1"),f.showZeros===!1&&e.writeAttributeString("showZeros","0"),e.writeAttributeString("workbookViewId","0"),h=r.sj(),h&&(b=h.activeSheetIndex),p=f.index===b,(f.isSelected||p)&&e.writeAttributeString("tabSelected",1)},function(){var i,a,l,s,c,d,u,f=r.pj(t),b=f.frozenColCount,h=f.frozenRowCount,p=0,m=0,g=3,y="1",S="A",C=r.oj(t).topLeftCell;for((b>0||h>0)&&(b>0?(p=b,S=r.Ki(C.col)):p=0,h>0?(m=h,y=C.row+1+""):m=0,b>0&&0===h?g=1:0===b&&h>0?g=2:b>0&&h>0&&(g=0),e.writeLeafElement("pane",function(){var t,o=b-f.frozenLeftCol;o>0&&e.writeAttributeString("xSplit",""+o),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),S+y==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(p)+(m+1)):e.writeAttributeString("topLeftCell",""+S+y),e.writeAttributeString("activePane",n.PaneType[g]),e.writeAttributeString("state","frozen")})),i=[],a=new o.Range,l=0,s=1,c=-1,d=function(d){var u,f,p,m,g,y,S,C,w,x;if(i.length=0,u=d,r.$i(t,i,a,u)){for(s=i.length,l=0;l=f.col&&a.col<=f.col+f.colCount-1&&a.row>=f.row&&a.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(a.row=i[0].row,a.col=i[0].col),p=""+r.Ki(a.col)+(a.row+1),m="",b>0&&h>0&&(1===u||2===u))m=p;else{for(l=0;l1||g.rowCount>1)&&(C=Math.min(S+g.colCount-1,n.ExcelConstants.vb),w=Math.min(y+g.rowCount-1,n.ExcelConstants.wb),x=""+r.Ki(C)+w,m+=":"+x),m+=" ";m=m.trim()}o.StringEx.O(m)||3===u&&(b>0||h>0||3!==u)||e.writeLeafElement("selection",function(){3!==u&&e.writeAttributeString("pane",n.PaneType[u]),e.writeAttributeString("activeCell",p),0!==c&&0===u&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",m)})}},u=3;u>=0;u--)d(u)})})}function v(e,t,r){var o=r.Xi(t),i=o.height,n=o.customHeight,a=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var o,l,s;isNaN(a)||e.writeAttributeString("defaultColWidth",""+a),n&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+i),o=r.Wi(t),l=o.outlineLevelRow-1,s=o.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,o,i){var a=r.Ti(t),l=r.Vi(t);0!==a.length&&e.writeElement("cols",m,function(){var t,r,s,c,d=function(r,s){var c,d,u,f=a[r],b=f.index;if(b>=n.ExcelConstants.vb)return t=r,"break";for(c=r+1,d=b;c=0){var t=o[f.formatId+i];t!==m?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===m?e.writeAttributeString("width",""+l):e.writeAttributeString("width",""+f.width),f.visible===!1&&e.writeAttributeString("hidden","1"),f.collapsed&&e.writeAttributeString("collapsed","1"),!isNaN(f.width)&&Math.abs(f.width-l)>1e-4&&e.writeAttributeString("customWidth","1"),"number"==typeof f.outLineLevel&&0!==f.outLineLevel&&e.writeAttributeString("outlineLevel",""+f.outLineLevel)}),t=r};for(r=0,s=a.length;r=0){var t=s[a.formatId+c];t!==m&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}a.customHeight&&(e.writeAttributeString("customHeight","1"),a.height!==m&&e.writeAttributeString("ht",""+a.height)),a.visible===!1&&e.writeAttributeString("hidden","1"),a.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof a.outLineLevel&&0!==a.outLineLevel&&e.writeAttributeString("outlineLevel",""+a.outLineLevel)}};i&&i.length>0?e.writeElement("row",b,function(){var t,r,o,a=-1;for(t=0,r=i.length;t=n.ExcelConstants.vb||(E(e,o,f,a,l,s,c,d,u),a=o.col)}):e.writeLeafElement("row",b)}S=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function E(e,t,r,i,n,a,l,s,c){var d=t.value,u=t.formula,f=t.cellType,b=t.richText,h=function(){var s,c,u,b;switch((n.xlsxStrictMode||t.col!==i+1)&&e.writeAttributeString("r",o.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=a[s],c!==m&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:u="s";break;case 5:u="b";break;case 7:u="e"}t.formula&&(t.arrayFormulaRange?(b=t.arrayFormulaRange.isDynamicArray,b&&e.writeAttributeString("cm","1"),t.isSpillError&&(u="e",e.writeAttributeString("vm","1"))):o.isNullOrUndefined(d)||"#"!==(""+d).substring(0,1)||S.indexOf((""+d).toUpperCase())===-1?t.isSpillError&&(u="e",e.writeAttributeString("vm","2")):u="e"),(t.formula||t.qi)&&"s"===u&&(u="str"),o.isNullOrUndefined(u)||e.writeAttributeString("t",u)};function p(e){var t,r=s.Zn[e.value],o=s.$n[e.value];return o===m&&(o=s.$n[e.value]=[]),t=C(o,e),r===m||t===m?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,o.push({index:r,value:e})):r=t,s.Pn++,r}function C(e,t){for(var r=0,o=e.length;ry&&(r=""),r=o.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function I(e,t,r){var o,i=r.qj(t),n=r.rj(t,i);(i||Object.keys(n).length>0)&&e.writeLeafElement("sheetProtection",function(){i&&e.writeAttributeString("sheet","1");for(var t in n)n.hasOwnProperty(t)&&(o=n[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,o):b.excelSupportProtectionOptions[t]&&(o=n[t]?"0":"1",e.writeAttributeString(t,o)))})}function L(e,t,r){var i=r.aj(t);i&&i.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+i.length)},function(){var t,r,n=function(t,r){var n=i[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",o.IndexHelper.T(n.col)+(n.row+1)+":"+o.IndexHelper.T(n.col+n.colCount-1)+(n.row+n.rowCount))})};for(t=0,r=i.length;t0&&e.writeElement("hyperlinks",function(){var t,r,a=function(t,r){var a=i[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",a.ref),a.location?e.writeAttributeString("location",a.location):(t="",r=new n.XFile(t,n.RelationshipConstants.gb),r.target=a.url,r.targetMode="External",a.rid=o.ze(r),e.writeAttributeString("r:id",a.rid)),a.display&&e.writeAttributeString("display",a.display),a.tooltip&&e.writeAttributeString("tooltip",a.tooltip),a["xr:uid"]&&e.writeAttributeString("xr:uid",a["xr:uid"])})};for(t=0,r=i.length;t0),i.wn(),i.fo.generateAsync({type:i.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){i.onZip(e)}).catch(function(){i.onError()})},e.prototype.so=function(e){var t,r,n,a=this,l=a.ro.Ne;i.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new o.XFile(o.XFileConstants.Ad,o.RelationshipConstants.Ka),e.ze(t),a.Go()),l.docProps.docPropsApp&&(r=new o.XFile(o.XFileConstants.Bd,o.RelationshipConstants.La),e.ze(r),a.Ho()),l.docProps.docPropsCustom&&(n=new o.XFile(o.XFileConstants.Cd,o.RelationshipConstants.Ma),e.ze(n),a.Io()))},e.prototype.Eo=function(e){var t,r,a,l,s,c,d,u,f,b;if(!i.isNullOrUndefined(e)&&!i.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=i.Util.ra(e.fileName),r=t.dir,a=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(d=e.relationFiles[c],d&&"count"!==c&&(u=[d.target||d.fileName.replace(r+"/",""),d.fileType],d.targetMode&&u.push(d.targetMode),s[c]=u,this.Eo(d)));f=new n.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",o.XFileConstants.Wd)},function(){var e,t=function(e){if(s.hasOwnProperty(e)){var t=s[e];t&&t.length>=2&&f.writeLeafElement("Relationship",function(){f.writeAttributeString("Id",e),f.writeAttributeString("Type",t[1]),f.writeAttributeString("Target",t[0]),t[2]&&f.writeAttributeString("TargetMode",t[2])})}};for(e in s)t(e)}),b=r+"/"+o.XFileConstants.Bb+"/"+a+"."+o.XFileConstants.Gb,l.fo.file(b.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),i=new n.XmlWriter;i.writeDocument(),i.writeElement("Types",function(){i.writeAttributeString("xmlns",o.XFileConstants.Vd)},function(){var e,t,n=function(e,t){var n=r[e];n instanceof o.DefaultContentType?i.writeLeafElement("Default",function(){i.writeAttributeString("Extension",n.extension),i.writeAttributeString("ContentType",n.contentType)}):n instanceof o.OverrideContentType&&i.writeLeafElement("Override",function(){i.writeAttributeString("PartName",n.partName),i.writeAttributeString("ContentType",n.contentType)})};for(e=0,t=r.length;e0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l0&&(s=l.substr(-1),"/"===s||"\\"===s?a.target=l+a.target:a.target=l+"/"+a.target),a.target=a.target.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""),a.targetMode="External",n.ze(a),c=F.writeExternalLink(this.ro,r),this.fo.file(i.substring(1),c))},e.prototype.Do=function(e){var t=this,r=h.writeWorkbook(t.ro,t.un,t.co,e,t.Uo,t.eo,t.do);t.fo.file(o.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,i,n,a,l,s,c,d;if(e){r=1,i=1,this.Uo={};for(n in e)e.hasOwnProperty(n)&&(a=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc,o.RelationshipConstants.Wa),l=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc,o.RelationshipConstants.Xa),s=t.ze(a),this.Uo[n]={file:a,cacheId:n,rid:s},c=T.writePivotCacheDefinition(e[n]),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc).substring(1),c),a.ze(l),d=T.writePivotCacheRecords(e[n].pivotCacheRecords),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc).substring(1),d),r++,i++)}},e.prototype.To=function(e,t,r,i,n,a){var l=this,s=u.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,i,n,a);this.fo.file(o.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+o.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var i,n,a;r&&r.length>0&&(this.io++,i=o.XFileConstants.ad+this.io+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Cb+"/"+i,o.RelationshipConstants._a),n.target="../"+i,t.ze(n),a=p.writeComments(e,r),this.fo.file(n.fileName.substring(1),a))},e.prototype.Jo=function(e,t,r,i,n){var a,l,s,c,d=n.controlShapes,u=i&&i.length>0,f=d&&d.length>0;(u||f)&&(this.ho++,a=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,l=new o.XFile(o.XFileConstants.Mc+"/"+a,o.RelationshipConstants.ab),l.target=I+a,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:o.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,d),c=k.writeVmlDrawingForLegacyDrawing(t,i,d),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var o,i,n=t.sp.control.style,a=n&&n.fill,l=a&&a.src;l&&(o={},x.getPictureInfo(l,o),r.ko++,i=P(o,r.ko,e),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.relationFiles[o.rid]=i,a.rid=o.rid)})},e.prototype.So=function(e,t,r){var i,n,a,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(i in c)c.hasOwnProperty(i)&&(n=o.XFileConstants.vd+this.Wo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Zc+"/"+n,o.RelationshipConstants.Ya),a.target="../pivotTables/"+n,t.ze(a),l=this.Uo&&this.Uo[c[i].cacheId]&&this.Uo[c[i].cacheId].file,l&&a.ze(l),s=T.writePivotTable(e,c[i]),this.fo.file((o.XFileConstants.Zc+"/"+n).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var o,i=this,n=t.charts;n&&n.forEach(function(t){i.Xo(t,e,r)}),o=t.shapes,o&&o.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,i.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var a,l,s,c,d,u,f,b,h,p,m,g,y=this,S=i.Util.za(e),C=S&&S.layoutId,x=i.Util.Aa(C),A=x?o.RelationshipConstants.mb:o.RelationshipConstants.lb,T=x?o.XFileConstants.dd:o.XFileConstants.bd;y.qo++,a=T+y.qo+"."+o.XFileConstants.nc,l=o.XFileConstants.ed+y.qo+"."+o.XFileConstants.nc,s=o.XFileConstants.hd+y.qo+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Lc+"/"+a,A),d=new o.XFile(o.XFileConstants.Lc+"/"+l,o.RelationshipConstants.qb),u=new o.XFile(o.XFileConstants.Lc+"/"+s,o.RelationshipConstants.pb),c.target=E+a,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=W(f.name,e.chartId,f.descr),b=e.chartSpace,b&&(y.Yo(b,e,c),y.Zo(b,c),h=new n.XmlWriter,h.writeDocument(),x?(p=void 0,p=y.ro&&y.ro.Ne&&y.ro.Ne.names?y.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",b,p,r)):w.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",b),y.fo.file(c.fileName.substring(1),h.getXmlString()),x&&(d.target=E+l,i.isNullOrUndefined(e.chartSpace.style)&&(e.chartSpace.style=JSON.parse('{"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","id":"381"},"axisTitle":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"categoryAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"chartArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":0}},"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":13.33}},"dataLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":14}}},"idx":1},"defRPr":{"sz":12}},"dataLabelCallout":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"solidFill":{"schemeClr":{"val":13,"lumMod":[25000],"lumOff":[75000]}}}},"defRPr":{"sz":12},"bodyPr":{"rot":0,"spcFirstLastPara":true,"vertOverflow":2,"horzOverflow":1,"vert":0,"wrap":1,"lIns":36576,"tIns":18288,"rIns":36576,"bIns":18288,"anchor":1,"anchorCtr":true,"spAutoFit":true}},"dataPoint":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":2,"solidFill":{"schemeClr":{"val":14}}}}},"dataPoint3D":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}}}},"dataPointLine":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataPointMarker":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":14}}}}},"dataPointMarkerLayout":{"attribute":{"symbol":"circle","size":"5"}},"dataPointWireframe":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataTable":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}},"defRPr":{"sz":12}},"downBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}}}},"dropLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"errorBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}},"round":true}}},"floor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"gridlineMajor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"gridlineMinor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"hiLoLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[75000],"lumOff":[25000]}},"round":true}}},"leaderLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"legend":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"plotArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"plotArea3D":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"seriesAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"seriesLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"solidFill":{"srgbClr":{"val":[217,217,217]}},"round":true}}},"title":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":18.67}},"trendline":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":2,"cap":0,"solidFill":{"schemeClr":{"val":12}},"prstDash":7}}},"trendlineLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"upBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}}},"valueAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"wall":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}}}')), +e.writeElement("ext",function(){e.writeAttributeString("uri","{B025F937-C7B1-47D3-B67F-A62EFF666E3E}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){l.id=i.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===d.twoScaleRule||l.ruleType===d.threeScaleRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","colorScale"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("colorScale",function(){e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.minType]),i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))});var t=l.ruleType===d.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.midType]),i.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",i.Util.oa(S(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.maxType]),i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.minColor)),t&&a.writeColor(e,"color",_(l.midColor)),a.writeColor(e,"color",_(l.maxColor))})});else if(l.ruleType===d.iconSetRule){if(N(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;i.J(t)&&(t=0),e.writeAttributeString("iconSet",f[t]),l.reverseIconOrder&&e.writeAttributeString("reverse","1"),l.showIconOnly&&e.writeAttributeString("showValue","0")},function(){var t,r;for(e.writeLeafElement("cfvo",function(){e.writeAttributeString("type","percent"),e.writeAttributeString("val","0")}),t=function(t){var r=l.iconCriteria[t];e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",b[r.iconValueType]),e.writeAttributeString("val",i.Util.oa(S(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r=0&&e.writeAttributeString("dxfId",l.dxfId),l.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){i.J(l.value1)||e.writeElement("formula",function(){e.writeValue(L(C(l.value1)))}),i.J(l.value2)||e.writeElement("formula",function(){e.writeValue(L(C(l.value2)))})});else{var t=v(l);e.writeElement("cfRule",function(){4===l.ruleType?e.writeAttributeString("type","timePeriod"):8===l.ruleType?(e.writeAttributeString("type","aboveAverage"),"aboveOrEqualToAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.equalAverage=!0),"belowAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.aboveAverage=!1)):2===l.ruleType&&i.J(t.type)?e.writeAttributeString("type","containsText"):e.writeAttributeString("type",t.type),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId),t.priority>=0&&e.writeAttributeString("priority",t.priority),t.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),i.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),i.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),i.J(t.operator)||e.writeAttributeString("operator",t.operator),i.J(t.rank)||e.writeAttributeString("rank",t.rank),i.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),i.J(t.text)||e.writeAttributeString("text",i.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,o;if(!i.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(L(C(t.formulas[r])))})},o=0;o/g;return"string"==typeof e?e.replace(t,"&").replace(r,"<").replace(o,">"):i.J(e)?e:""+e}function D(e){return"string"==typeof e?e.replace(/"/g,'""'):i.J(e)?e:""+e}function B(e){var t,r,o=e.operator,i="containsText",n="contains";return 2===o?(i="beginsWith",n="beginsWith"):3===o?(i="endsWith",n="endsWith"):1===o?(i="notContainsText",n="notContains"):0===o&&(n="containsText"),t={type:i,priority:e.priority,operator:n,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=P(t),r&&(t.formulas=[r]),t}function P(e){var t,r,o,n;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=i.IndexHelper.T(t.col)+(t.row+1),o="",o=t.rowCount===l.ExcelConstants.wb?W("${0}:${1}",i.IndexHelper.T(t.col),i.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?W("${0}:${1}",t.row+1,t.row+t.rowCount):W("${0}${1}:${2}${3}",i.IndexHelper.T(t.col),t.row+1,i.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),n=D(e.text),"top10"===e.type)return e.bottom?e.percent?W("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",o,e.rank,r):W("SMALL(({0}),MIN({1},COUNT({0})))>={2}",o,e.rank,r):e.percent?W("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",o,e.rank,r):W("LARGE(({0}),MIN({1},COUNT({0})))<={2}",o,e.rank,r);if("containsText"===e.type)return W('NOT(ISERROR(SEARCH("{0}",{1})))',n,r);if("notContainsText"===e.type)return W('ISERROR(SEARCH("{0}",{1}))',n,r);if("beginsWith"===e.type)return W('LEFT({0},{1}) = "{2}"',r,e.text.length,n);if("endsWith"===e.type)return W('RIGHT({0},{1}) = "{2}"',r,e.text.length,n);if("duplicateValues"===e.type)return W("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",o,r);if("uniqueValues"===e.type)return W("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",o,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&i.J(e.stdDev))return W("{0}>AVERAGE({1})",r,o);if(!i.J(e.aboveAverage)){if(!(i.J(e.equalAverage)||e.aboveAverage||i.J(e.equalAverage))&&e.equalAverage&&i.J(e.stdDev))return W("{0}<=AVERAGE({1})",r,o);if(!e.aboveAverage&&i.J(e.stdDev))return W("{0}=AVERAGE({1})",r,o);if(!i.J(e.stdDev))return i.J(e.aboveAverage)||e.aboveAverage?W("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,o,e.stdDev):W("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,o,e.stdDev)}return null}function W(e){var t,r,o=[];for(t=1;t0)for(t=0;t0&&a.forEach(function(e){e.external?r.On.push(e):l.push(e)}),l.length>0&&e.writeElement("dataValidations",function(){e.writeAttributeString("count",l.length)},function(){l.forEach(function(t){o.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){b(e,t),e.writeAttributeString("sqref",t.ranges)},function(){i(t.firstFormula)||e.writeElementString("formula1",n(o.addXLFNPrefix(t.firstFormula))),i(t.secondFormula)||e.writeElementString("formula2",n(o.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function p(e,t){var r=t.On;r&&0===r.length||(e.writeElement("ext",function(){e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"),e.writeAttributeString("uri","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")},function(){e.writeElement("x14:dataValidations",function(){e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main"),e.writeAttributeString("count",r.length)},function(){r.forEach(function(t){e.writeElement("x14:dataValidation",function(){b(e,t)},function(){i(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.firstFormula)))}),i(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=a)}t.writeExtensionDataValidations=p},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.te),t.writeAttributeString("xmlns:vt",i.XFileConstants.ue)},function(){var r,o=e.Ne.docProps.docPropsApp;for(r in o)if(o.hasOwnProperty(r))switch(r){case"HeadingPairs":l(t,o);break;case"TitlesOfParts":s(t,o);break;default:c(r,t,o)}}),t.getXmlString()}t.writeDocPropsApp=a;function l(e,t){e.writeElement("HeadingPairs",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.HeadingPairs.size),e.writeAttributeString("baseType",t.HeadingPairs.baseType)},function(){var r,o=t.HeadingPairs.workbookInfoArray,i=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(o[t].elementType,function(){},function(){e.writeValue(o[t].value)})})};for(r=0;r/g,">").replace(/\')}i='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function a(e,t,r){var o=(t?1:0)+(r?1:0);e.push('\t'),t&&e.push('\t\t'),r&&e.push('\t\t"),e.push("\t")}function l(e,t,r,o){if(t&&e.push('\t '),r){var i=' ';o&&(i+=' '),e.push("\t"+i+" ")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push(''),t.push(" '),o&&t.push('\t '+(i?' ':"")+" "),t.push(""),t.join("\r\n")}t.getMetadataContent=s},"./src/xlsx-io/writer/pivot-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts"),t.captionCompareTypeExcel=[["captionEqual","captionNotEqual","captionBeginsWith","captionNotBeginsWith","captionEndsWith","captionNotEndsWith","captionContains","captionNotContains","captionGreaterThan","captionGreaterThanOrEqual","captionLessThan","captionLessThanOrEqual","captionBetween","captionNotBetween"],["dateEqual","dateNotEqual","dateOlderThan","dateOlderThanOrEqual","dateNewerThan","dateNewerThanOrEqual","dateBetween","dateNotBetween","today","yesterday","tomorrow",void 0,"thisMonth","lastMonth","nextMonth","thisWeek","lastWeek","nextWeek","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","Q1","Q2","Q3","Q4","M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","yearToDate"],["valueEqual","valueNotEqual","valueGreaterThan","valueGreaterThanOrEqual","valueLessThan","valueLessThanOrEqual","valueBetween","valueNotBetween"],["count","percent","sum"]],s=o.Util.oa,c=o.Util.Ba,d=o.Util.xa,u="mc:Ignorable";function f(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),o.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),o.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",a.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),o.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),o.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),e.enableRefresh===!1&&t.writeAttributeString("enableRefresh","0"),e.invalid&&t.writeAttributeString("invalid","1"),e.minRefreshableVersion>0&&e.minRefreshableVersion<=e.createdVersion&&t.writeAttributeString("minRefreshableVersion",e.minRefreshableVersion),e.missingItemsLimit>0&&t.writeAttributeString("missingItemsLimit",e.missingItemsLimit),e.optimizeMemory&&t.writeAttributeString("optimizeMemory","1"),o.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),o.isNullOrUndefined(e.refreshOnLoad)||t.writeAttributeString("refreshOnLoad","1"),e.supportSubquery&&t.writeAttributeString("supportSubquery","1"),e.supportAdvancedDrill&&t.writeAttributeString("supportAdvancedDrill","1"),e.tupleCache&&t.writeAttributeString("tupleCache","1"),e.upgradeOnRefresh&&t.writeAttributeString("upgradeOnRefresh","1")},function(){h(t,e),p(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&A(t,e),e.KPIs&&e.KPIs.length>0&&E(t,e),o.isNullOrUndefined(e.pivotTupleCache)||L(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&_(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&M(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&U(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&z(t,e),b(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function b(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:pivotCacheDefinition",function(){e.writeAttributeString("pivotCacheId",t+"")},function(){})})})}function h(e,t){e.writeElement("cacheSource",function(){e.writeAttributeString("type",t.sourceType)},function(){"worksheet"===t.sourceType&&e.writeLeafElement("worksheetSource",function(){t.sourceName&&e.writeAttributeString("name",t.sourceName),t.ref&&e.writeAttributeString("ref",t.ref),t.sheet&&e.writeAttributeString("sheet",t.sheet)})})}function p(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,o;for(r=0;r0&&e.writeAttributeString("hierarchy",t.hierarchy),t.level>0&&e.writeAttributeString("level",t.level),t.mappingCount>0&&e.writeAttributeString("mappingCount",t.mappingCount),o.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),o.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),o.isNullOrUndefined(t.serverField)||e.writeAttributeString("serverField","1"),t.sqlType>0&&e.writeAttributeString("sqlType",t.sqlType),t.uniqueList===!1&&e.writeAttributeString("uniqueList","0")},function(){t.databaseField!==!1&&(t.entities&&t.entities.length>0?e.writeElement("sharedItems",function(){g(e,t)},function(){y(e,t)}):e.writeLeafElement("sharedItems",function(){g(e,t)})),x(e,t.fieldGroup)})}function g(e,t){t.containsSemiMixedTypes===!1&&e.writeAttributeString("containsSemiMixedTypes","0"),t.containsNonDate===!1&&e.writeAttributeString("containsNonDate","0"),t.containsDate&&e.writeAttributeString("containsDate","1"),t.containsString===!1&&e.writeAttributeString("containsString","0"),t.containsBlank&&e.writeAttributeString("containsBlank","1"),t.containsMixedTypes&&e.writeAttributeString("containsMixedTypes","1"),t.containsNumber&&!t.containsDate&&e.writeAttributeString("containsNumber","1"),t.containsInteger&&!t.containsDate&&e.writeAttributeString("containsInteger","1"),t.longText&&e.writeAttributeString("longText","1"),t.containsDate?(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))):(t.containsNumber||t.containsInteger)&&(e.writeAttributeString("minValue",""+t.minValue),e.writeAttributeString("maxValue",""+t.maxValue)),t.isShared&&(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))),t.entities&&t.entities.length>0&&e.writeAttributeString("count",t.entities.length)}function y(e,t){var r,o;for(r=0;r0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),o.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),o.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),o.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),o.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),o.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),o.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),o.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function x(e,t){o.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.par>=0&&e.writeAttributeString("par",t.par),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,i;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),o.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),o.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),o.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),o.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),o.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),o.isNullOrUndefined(t.endDate)||e.writeAttributeString("endDate",c(new Date(t.endDate)))}),r=t.discreteGroup,r&&r.length>0&&e.writeElement("discretePr",function(){e.writeAttributeString("count",r.length)},function(){var t,o=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r=0&&e.writeAttributeString("parentSet",t.parentSet),t.iconSet>0&&e.writeAttributeString("iconSet",t.iconSet),t.attribute&&e.writeAttributeString("attribute","1"),t.time&&e.writeAttributeString("time","1"),t.keyAttribute&&e.writeAttributeString("keyAttribute","1"),o.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),o.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),o.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),o.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),t.measures&&e.writeAttributeString("measures","1"),t.count>=0&&e.writeAttributeString("count",t.count),t.oneField&&e.writeAttributeString("oneField","1"),t.memberValueDatatype>0&&e.writeAttributeString("memberValueDatatype",t.memberValueDatatype),t.unbalanced||e.writeAttributeString("unbalanced","0"),t.unbalancedGroup||e.writeAttributeString("unbalancedGroup","0"),t.hidden&&e.writeAttributeString("hidden","1")},function(){t.fieldsUsage.length>0&&e.writeElement("fieldsUsage",function(){e.writeAttributeString("count",t.fieldsUsage.length)},function(){for(var r=0;r0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r0&&e.writeAttributeString("id",t.id)},function(){t.groupMembers.length>0&&e.writeElement("groupMembers",function(){e.writeAttributeString("count",t.groupMembers.length)},function(){for(var r=0;r0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r=0&&e.writeAttributeString("fld",t.fld),t.hier>=0&&e.writeAttributeString("hier",t.hier),t.item>=0&&e.writeAttributeString("item",t.item)})}function W(e,t){e.writeLeafElement("serverFormat",function(){o.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),o.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function _(e,t){var r=t.calculatedItems;r&&e.writeElement("calculatedItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=0&&e.writeAttributeString("field",t.field),t.formula&&e.writeAttributeString("formula",s(t.formula))},function(){t.pivotArea&&te(e,t.pivotArea)})}function M(e,t){var r=t.calculatedMembers;r&&e.writeElement("calculatedMembers",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeAttributeString("solveOrder",t.solveOrder),t.set&&e.writeAttributeString("set","1")})}function H(e,t){!t.dimensions||t.dimensions.length<=0||e.writeElement("dimensions",function(){e.writeAttributeString("count",t.dimensions.length)},function(){for(var r=0;r=0&&e.writeAttributeString("measureGroup",t.measureGroup),t.dimension>=0&&e.writeAttributeString("dimension",t.dimension)})}function j(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("count",e.length)},function(){for(var r=0;r0?r.writeAttributeString("updatedVersion",t.updatedVersion):r.writeAttributeString("updatedVersion","7"),t.minRefreshableVersion>0&&t.minRefreshableVersion<=t.createdVersion&&r.writeAttributeString("minRefreshableVersion",t.minRefreshableVersion),t.printDrill&&r.writeAttributeString("printDrill","1"),t.showDrill===!1&&r.writeAttributeString("showDrill","0"),t.showDataTips===!1&&r.writeAttributeString("showDataTips","0"),t.enableDrill===!1&&r.writeAttributeString("enableDrill","0"),t.preserveFormatting===!1&&r.writeAttributeString("preserveFormatting","0"),t.useAutoFormatting&&r.writeAttributeString("useAutoFormatting","1"),t.pageWrap>0&&r.writeAttributeString("pageWrap",t.pageWrap),t.pageOverThenDown&&r.writeAttributeString("pageOverThenDown","1"),t.rowGrandTotals===!1&&r.writeAttributeString("rowGrandTotals","0"),t.colGrandTotals===!1&&r.writeAttributeString("colGrandTotals","0"),t.itemPrintTitles&&r.writeAttributeString("itemPrintTitles","1"),t.fieldPrintTitles&&r.writeAttributeString("fieldPrintTitles","1"),t.mergeItem&&r.writeAttributeString("mergeItem","1"),t.createdVersion>0?r.writeAttributeString("createdVersion",t.createdVersion):r.writeAttributeString("createdVersion","7"),t.indent>=0&&r.writeAttributeString("indent",t.indent),t.asteriskTotals&&r.writeAttributeString("asteriskTotals","1"),t.autoFormatId>0&&r.writeAttributeString("autoFormatId",t.autoFormatId),o.isNullOrUndefined(t.colHeaderCaption)||r.writeAttributeString("colHeaderCaption",t.colHeaderCaption),t.compact===!1&&r.writeAttributeString("compact","0"),t.compactData===!1&&r.writeAttributeString("compactData","0"),t.dataOnRows&&r.writeAttributeString("dataOnRows","1"),t.dataPosition>0&&r.writeAttributeString("dataPosition",t.dataPosition),t.disableFieldList&&r.writeAttributeString("disableFieldList","1"),t.editData&&r.writeAttributeString("editData","1"),t.enableFieldProperties===!1&&r.writeAttributeString("enableFieldProperties","0"),t.enableWizard===!1&&r.writeAttributeString("enableWizard","0"),t.gridDropZones&&r.writeAttributeString("gridDropZones","1"),t.immersive&&r.writeAttributeString("immersive","1"),t.mdxSubqueries&&r.writeAttributeString("mdxSubqueries","1"),t.showHeaders===!1&&r.writeAttributeString("showHeaders","0"),t.outline&&r.writeAttributeString("outline","1"),t.outlineData&&r.writeAttributeString("outlineData","1"),t.multipleFieldFilters===!1&&r.writeAttributeString("multipleFieldFilters","0"),t.chartFormat>0&&r.writeAttributeString("chartFormat",t.chartFormat),t.fieldListSortAscending&&r.writeAttributeString("fieldListSortAscending","1"),t.customListSort===!1&&r.writeAttributeString("customListSort","0"),o.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),o.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),o.isNullOrUndefined(t.rowHeaderCaption)||r.writeAttributeString("rowHeaderCaption",t.rowHeaderCaption),t.showCalcMbrs===!1&&r.writeAttributeString("showCalcMbrs","0"),t.showDataDropDown&&r.writeAttributeString("showDataDropDown","0"),t.showDropZones===!1&&r.writeAttributeString("showDropZones","0"),t.showEmptyCol===!1&&r.writeAttributeString("showEmptyCol","0"),t.showEmptyRow===!1&&r.writeAttributeString("showEmptyRow","0"),t.showItems===!1&&r.writeAttributeString("showItems","0"),t.showMemberPropertyTips===!1&&r.writeAttributeString("showMemberPropertyTips","0"),t.showMultipleLabel===!1&&r.writeAttributeString("showMultipleLabel","0"),t.subtotalHiddenItems&&r.writeAttributeString("subtotalHiddenItems","1"),o.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),o.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ie(r,t,!0),ae(r,t),ie(r,t,!1),le(r,t),de(r,t),fe(r,t),pe(r,t),ge(r,t),Se(r,t),we(r,t),ve(r,t),ke(e,r,t),Ee(r,t),Ie(r,t),De(r,t)}),r.getXmlString()}t.writePivotTable=K;function q(e,t){e.writeLeafElement("location",function(){e.writeAttributeString("ref",t.ref),t.firstHeaderRow>=0&&e.writeAttributeString("firstHeaderRow",t.firstHeaderRow),t.firstDataRow>=0&&e.writeAttributeString("firstDataRow",t.firstDataRow),t.firstDataCol>=0&&e.writeAttributeString("firstDataCol",t.firstDataCol),t.rowPageCount>0&&e.writeAttributeString("rowPageCount",t.rowPageCount),t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r0?e.writeElement("pivotField",function(){Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})}),n&&n.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){n[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",n[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){a[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",a[0].rid)})})})}t.writeSlicersInWorkSheet=g;function y(e,t,r){var o,n=t&&t.length>0,a=!1,l=!1,s=[],c=[];if(r)for(o=0;o0&&o.forEach(function(r){p(e,t,r)})})}t.writeSparklineGroups=h,d={0:"line",1:"column",2:"stacked"},u={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function p(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",d[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),i.isNullOrUndefined(t)||(!i.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",u[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",u[0]),t.showMarkers&&e.writeAttributeString("markers","1"),t.showHigh&&e.writeAttributeString("high","1"),t.showLow&&e.writeAttributeString("low","1"),t.showFirst&&e.writeAttributeString("first","1"),t.showLast&&e.writeAttributeString("last","1"),t.showNegative&&e.writeAttributeString("negative","1"),t.displayXAxis&&e.writeAttributeString("displayXAxis","1"),t.displayHidden&&e.writeAttributeString("displayHidden","1"),t.rightToLeft&&e.writeAttributeString("rightToLeft","1"),t.minAxisType&&e.writeAttributeString("minAxisType",f[t.minAxisType]),t.maxAxisType&&e.writeAttributeString("maxAxisType",f[t.maxAxisType]),t.manualMin&&e.writeAttributeString("manualMin",t.manualMin),t.manualMax&&e.writeAttributeString("manualMax",t.manualMax))},function(){var o=r&&r.setting,i=a.ColorHelper.toExcelColor(o.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",i),i=a.ColorHelper.toExcelColor(o.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",i),i=a.ColorHelper.toExcelColor(o.axisColor||"black"),l.writeColor(e,"x14:colorAxis",i),i=a.ColorHelper.toExcelColor(o.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",i),i=a.ColorHelper.toExcelColor(o.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",i),i=a.ColorHelper.toExcelColor(o.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",i),i=a.ColorHelper.toExcelColor(o.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",i),i=a.ColorHelper.toExcelColor(o.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",i),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(g(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){m(e,t,r)})})})}t.writeSparklineGroup=p;function m(e,t,r){e.writeElement("x14:sparkline",function(){i.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(g(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(n.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function g(e,t){return c(s(e)+"!"+n.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/tuple.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/common/common.ts"),c=r("./src/xlsx-io/common/color-writer.ts"),d=void 0,u={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},f={selectedItemWithDataStyle:"selectedItemWithData",selectedItemWithNoDataStyle:"selectedItemWithNoData",unSelectedItemWithDataStyle:"unselectedItemWithData",unSelectedItemWithNoDataStyle:"unselectedItemWithNoData",hoveredSelectedItemWithDataStyle:"hoveredSelectedItemWithData",hoveredSelectedItemWithNoDataStyle:"hoveredSelectedItemWithNoData",hoveredUnSelectedItemWithDataStyle:"hoveredUnselectedItemWithData",hoveredUnSelectedItemWithNoDataStyle:"hoveredUnselectedItemWithNoData"},b={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}function p(e,t){var r=x(e,t),a=new o.XmlWriter;return a.writeDocument(),a.writeElement("styleSheet",function(){a.writeAttributeString("xmlns",i.XFileConstants.Hd),a.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),a.writeAttributeString("xmlns:x14ac",i.XFileConstants.Nd),a.writeAttributeString("mc:Ignorable",i.XFileConstants.Od)},function(){var t,o,i,l,c,f,b;if(r.gn.count>0&&a.writeElement("numFmts",function(){a.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&A(a,{key:e,value:r.gn[e]})}),a.writeElement("fonts",function(){a.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e0?a.writeElement("tableStyles",function(){a.writeAttributeString("count",e.mh.length),a.writeAttributeString("defaultTableStyle","TableStyleMedium2"),a.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){a.writeElement("tableStyle",function(){a.writeAttributeString("name",e.name),e.isPivot?a.writeAttributeString("table","0"):(a.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||a.writeAttributeString("table",e.tableId)),a.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){a.writeLeafElement("tableStyleElement",function(){a.writeAttributeString("type",u[e.type]),a.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||a.writeAttributeString("size",e.size)})})})})}):a.writeLeafElement("tableStyles",function(){h(a,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&a.writeElement("extLst",function(){e.oh.length>0&&(m(a,e),y(a,e.oh)),e.qh.length>0&&(g(a,e),S(a,e.qh))})}),{xml:a.getXmlString(),styleOffset:r.Xn}}t.writeStyle=p;function m(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){P(e,t)})}function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){W(e,t)})}function y(e,t){var r,o="SlicerStyle",n="Light",a="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerStyles",function(){e.writeAttributeString("defaultSlicerStyle","SlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x14:slicerStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x14:slicerStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x14:slicerStyleElement",function(){e.writeAttributeString("type",f[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(e,t){var r,o="TimeSlicerStyle",n="Light",a="Dark",l=[];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineStyles",function(){e.writeAttributeString("defaultTimelineStyle","TimeSlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x15:timelineStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x15:timelineStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x15:timelineStyleElement",function(){e.writeAttributeString("type",b[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function C(e){var t=e&&e.fontName;return t&&('"'===t.charAt(0)&&(t=t.substr(1)),'"'===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.fontName=t),e}function w(e,t){var r,o=e.length;if(0===o)return-1;for(r=0;r=0&&(m=v.numberFormatIndex),v.border&&(y=s.Util.la(P.Tn,v.border),y===-1&&(P.Tn.push(v.border),y=P.Tn.length-1)),s.isNullOrUndefined(v.fill)||0===v.fill.patternType?g=0:(k=v.fill,g=s.Util.la(P.Sn,k),g===-1&&(P.Sn.push(k),g=P.Sn.length-1)),v.isStyleFormat?(t[T]=""+P.Un.length,T++,P.Un.push(new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)))):(F=new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)),R=w(P.Vn,F),R===-1?(t[T]=""+P.Vn.length,P.Vn.push(F)):t[T]=""+R,T++);if(e.Ih&&e.Ih.length>0)for(E=e.Ih,I=E.length,i=0;i0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+o)})}void 0!==t.fontColor&&t.fontColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.fontColor),r||(0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])}),s.StringEx.O(t.fontName)||e.writeLeafElement("name",function(){e.writeAttributeString("val",t.fontName)}),s.isNullOrUndefined(t.fontFamily)||0===t.fontFamily||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamily)}),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}))})}function v(e,t){t&&e.writeElement("rPr",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.foreColor),t.isCondense&&e.writeLeafElement("condense"),t.isExtend&&e.writeLeafElement("extend"),s.isNullOrUndefined(t.fontFamilySet)||0===t.fontFamilySet||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamilySet)}),t.isItalic&&e.writeLeafElement("i"),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),s.StringEx.O(t.fontFamily)||e.writeLeafElement("rFont",function(){e.writeAttributeString("val",t.fontFamily)}),t.fontScheme&&0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isStrikeOut&&e.writeLeafElement("strike"),t.fontSize&&0!==t.fontSize||t.fontSize!==-1){var r=t.fontSize;r>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+r)})}t.underLineStyle&&0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),t.vertAlign&&0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])})})}t.writerRichTextStyle=v;function k(e,t,r){e.writeElement("fill",d,function(){t.stops?e.writeElement("gradientFill",function(){var r,o,i,n=["degree","left","right","top","bottom"];for(r=0,o=n;r0,f=d&&(d.item1||!d.item2),b="writeElement";u||f||(b="writeLeafElement"),e[b]("xf",function(){if(e.writeAttributeString("numFmtId",""+n.item1),e.writeAttributeString("fontId",""+n.item2),e.writeAttributeString("fillId",""+n.item3),e.writeAttributeString("borderId",""+n.item4),c){if(o)I(e,c,"applyFont",!0),I(e,c,"applyFill",!0),I(e,c,"applyBorder",!0),I(e,c,"applyNumberFormat",!0),I(e,c,"applyAlignment",!0),I(e,c,"applyProtection",!0);else{if(c.isStyleFormat||s.isNullOrUndefined(c.parentFormatID))e.writeAttributeString("xfId","0");else{var t=c.parentFormatID;s.isNullOrUndefined(t)?e.writeAttributeString("xfId","0"):e.writeAttributeString("xfId",""+t)}s.isNullOrUndefined(c.applyFont)&&0===n.item2||I(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||I(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||I(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||I(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||I(e,c,"applyAlignment",!1), +s.isNullOrUndefined(c.applyProtection)||I(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0")}},function(){u&&e.writeLeafElement("alignment",function(){0!==c.horizontalAlign?e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[c.horizontalAlign]):0===c.horizontalAlign&&c.indent>0&&e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[1]),2!==c.verticalAlign&&e.writeAttributeString("vertical",a.ExcelVerticalAlignment[c.verticalAlign]),c.isVerticalText===!0?e.writeAttributeString("textRotation",255):0!==c.rotation&&e.writeAttributeString("textRotation",""+c.rotation),0!==c.readingOrder&&e.writeAttributeString("readingOrder",l.TextDirection[c.readingOrder]),c.isWordWrap&&e.writeAttributeString("wrapText","1"),c.isShrinkToFit&&e.writeAttributeString("shrinkToFit","1"),c.isJustfyLastLine&&e.writeAttributeString("justifyLastLine","1"),c.indent>0&&e.writeAttributeString("indent",""+c.indent)}),f&&e.writeLeafElement("protection",function(){d.item2||e.writeAttributeString("locked","0"),d.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,i=t.length;r=0)&&(o=void 0,i=void 0,n.numberFormat?(o=n.numberFormat.numberFormatId,i=n.numberFormat.numberFormatCode):(o=n.numberFormatIndex,i=n.numberFormatCode),A(e,{key:o,value:i})),n.fill&&(1===n.fill.patternType&&(n.fill.bgColor=n.fill.fgColor),k(e,n.fill,!0)),n.border&&F(e,n.border,n.isSlicerHeader,!0)})}t.writeDxf=_},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function d(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function u(e,t,r,s){if(n.isNullOrUndefined(e))return null;var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("table",function(){var t,r;u.writeAttributeString("xmlns",i.XFileConstants.Md),u.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),u.writeAttributeString("name",t),r=d(t.split("-").join("_"),s),u.writeAttributeString("displayName",r),u.writeAttributeString("ref",a.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&u.writeAttributeString("headerRowCount","0"),e.showFooter&&u.writeAttributeString("totalsRowCount","1")},function(){var o,i;e.rowFilter&&!n.isNullOrUndefined(e.rowFilter)&&(o=void 0,i=t.Bj(r,e.rowFilter,e.tableSortInfo),i&&i.sortInfo&&(o=i.sortInfo,i.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(i),l.writeAutoFilter(u,i)),o&&l.writeSortInfo(u,o)),e.columns&&e.columns.length>0&&u.writeElement("tableColumns",function(){u.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var o=b(t.footerFormula);"custom"!==o?u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),n.isNullOrUndefined(t.footerValue)||u.writeAttributeString("totalsRowLabel",n.Util.oa(n.Util.xa(""+t.footerValue,!0))),n.isNullOrUndefined(t.footerFormula)||u.writeAttributeString("totalsRowFunction",o)},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))})}):u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),u.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))}),u.writeElement("totalsRowFormula",function(){u.writeValue(n.Util.oa(t.footerFormula))})})}})}),u.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=n.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,u.writeAttributeString("name",t)}e.highlightFirstColumn?u.writeAttributeString("showFirstColumn","1"):u.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?u.writeAttributeString("showLastColumn","1"):u.writeAttributeString("showLastColumn","0"),n.isNullOrUndefined(e.bandRows)?u.writeAttributeString("showRowStripes","1"):u.writeAttributeString("showRowStripes","0"),e.bandColumns?u.writeAttributeString("showColumnStripes","1"):u.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&u.writeElement("extLst",function(){},function(){u.writeElement("ext",function(){n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||u.writeAttributeString("uri",e.reservedElement.ext._attr.uri),n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||u.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",o=e.reservedElement.ext[r];n.isNullOrUndefined(o)||u.writeElement(r,function(){n.isNullOrUndefined(o._attr&&o._attr["xmlns:vp"])||u.writeAttributeString("xmlns:vp",o._attr["xmlns:vp"])},function(){n.isNullOrUndefined(o[r])||u.writeValue(o[r])}),t=e.reservedElement.ext["x14:table"],n.isNullOrUndefined(t&&t._attr)||u.writeLeafElement("x14:table",function(){n.isNullOrUndefined(t._attr.altText)||u.writeAttributeString("altText",t._attr.altText),n.isNullOrUndefined(t._attr.altTextSummary)||u.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),u.getXmlString()}t.writeTable=u;function f(e){var t,r;if(!e.showFilterButton)return!1;t=e.filterButtonVisibleInfo;for(r in t)if(t.hasOwnProperty(r)&&!t[r])return!1;return!0}s={101:"average",102:"countNums",103:"count",104:"max",105:"min",107:"stdDev",109:"sum",110:"let"};function b(e){var t,r;if(!n.isNullOrUndefined(e))return t=/\[\S[\S\s]*\S\]/,e=e.trim(),"SUBTOTAL("!==e.substr(0,9)||!t.test(e)||e.indexOf("[[")?"custom":(r=e.substr(9,3),s[r]||"custom")}function h(e){if(0===e.filterColumns.length)for(var t=0;t0)for(o=function(r,o){var i=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",i.script),e.writeAttributeString("script",i.typeface)})},n=0,a=t.themesFonts.length;n0&&(i.writeCommentShapes(a,t,o),o+=t.length),r&&r.length>0&&n.writeControlShapes(a,r,o)}),a.getXmlString()}t.writeVmlDrawingForLegacyDrawing=a},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,a,l,s,c){var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("workbook",function(){u.writeAttributeString("xmlns",i.XFileConstants.Hd),u.writeAttributeString("xmlns:r",i.XFileConstants.Ud)},function(){d(u,e),u.writeElement("sheets",void 0,function(){var r,o,i=function(r,o){var i=t[r];i&&u.writeLeafElement("sheet",function(){u.writeAttributeString("name",n.Util.oa(i.name)),u.writeAttributeString("sheetId",""+i.sheetId),e.tj(i.name)?u.writeAttributeString("state","hidden"):e.uj(i.name)&&u.writeAttributeString("state","veryHidden"),u.writeAttributeString("r:id",""+i.rID)})};for(r=0,o=t.length;r0&&e.writeAttributeString("firstSheet",""+r.startSheetIndex),"number"==typeof r.activeSheetIndex&&r.activeSheetIndex>0&&e.writeAttributeString("activeTab",""+r.activeSheetIndex)})})}function u(e){return e.toUpperCase()===n.PRINT_AREA_UPPERCASE?n.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var o,i,a=t.vj(),l=g(t);m(a,l),o=y(t),m(a,o),i=b(t),m(a,i),m(a,r),a.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=a[t];e.writeElement("definedName",function(){e.writeAttributeString("name",n.Util.oa(u(r.name))),r.comment&&e.writeAttributeString("comment",n.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(n.addXLFNPrefix(r.formula).replace(/&/g,"&").replace(//g,">"))})};for(t=0;t0&&B(m,e.fi(t)),w(e,t)&&D(m,t,e)}),m.getXmlString()}t.writeWorksheet=C;function w(e,t){var r,o,i,n,a=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(a&&a.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(o=e.xg(t),i=o&&o.rules,!(!i||!c.needWriteConditionalFormatExtension(i,t,e.jj()))||(n=e.On,!!(n&&n.length>0))))}function x(e,t,r){var o=r.lj(t),i=o.colsSumRight,n=o.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&i&&n&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&a.writeColor(e,"tabColor",l),i&&n||e.writeLeafElement("outlinePr",function(){i||e.writeAttributeString("summaryRight","0"),n||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function A(e,t,r){var o=r.nj(t),i=o.columnCount,n=o.rowCount;i>0&&n>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(i-1)+n)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",m,function(){e.writeElement("sheetView",function(){var i,n,a,l,s,c,d,u,f,b,h,p,m=r.oj(t),g=m.gridlineColor;null!==g&&1===g.colorType()&&64!==g.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+g.value())),i=r.pj(t),n=i.frozenTopRow||0,a=i.frozenLeftCol||0,l=m.topLeftCell,s=i.frozenColCount,c=i.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(n||a?(d=""+r.Ki(a)+(n+1), +e.writeAttributeString("topLeftCell",""+d)):s||c?s&&!c?(d="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+d)):!s&&c&&(d=""+r.Ki(l.col)+"1",e.writeAttributeString("topLeftCell",""+d)):(d=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+d))),m.showGridLine||e.writeAttributeString("showGridLines","0"),m.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),o.isNullOrUndefined(m.zoom)||(u=Math.round(100*m.zoom),100!==u&&e.writeAttributeString("zoomScale",""+u)),f=r.kj(t),f.showFormulas&&e.writeAttributeString("showFormulas","1"),f.showZeros===!1&&e.writeAttributeString("showZeros","0"),e.writeAttributeString("workbookViewId","0"),h=r.sj(),h&&(b=h.activeSheetIndex),p=f.index===b,(f.isSelected||p)&&e.writeAttributeString("tabSelected",1)},function(){var i,a,l,s,c,d,u,f=r.pj(t),b=f.frozenColCount,h=f.frozenRowCount,p=0,m=0,g=3,y="1",S="A",C=r.oj(t).topLeftCell;for((b>0||h>0)&&(b>0?(p=b,S=r.Ki(C.col)):p=0,h>0?(m=h,y=C.row+1+""):m=0,b>0&&0===h?g=1:0===b&&h>0?g=2:b>0&&h>0&&(g=0),e.writeLeafElement("pane",function(){var t,o=b-f.frozenLeftCol;o>0&&e.writeAttributeString("xSplit",""+o),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),S+y==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(p)+(m+1)):e.writeAttributeString("topLeftCell",""+S+y),e.writeAttributeString("activePane",n.PaneType[g]),e.writeAttributeString("state","frozen")})),i=[],a=new o.Range,l=0,s=1,c=-1,d=function(d){var u,f,p,m,g,y,S,C,w,x;if(i.length=0,u=d,r.$i(t,i,a,u)){for(s=i.length,l=0;l=f.col&&a.col<=f.col+f.colCount-1&&a.row>=f.row&&a.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(a.row=i[0].row,a.col=i[0].col),p=""+r.Ki(a.col)+(a.row+1),m="",b>0&&h>0&&(1===u||2===u))m=p;else{for(l=0;l1||g.rowCount>1)&&(C=Math.min(S+g.colCount-1,n.ExcelConstants.vb),w=Math.min(y+g.rowCount-1,n.ExcelConstants.wb),x=""+r.Ki(C)+w,m+=":"+x),m+=" ";m=m.trim()}o.StringEx.O(m)||3===u&&(b>0||h>0||3!==u)||e.writeLeafElement("selection",function(){3!==u&&e.writeAttributeString("pane",n.PaneType[u]),e.writeAttributeString("activeCell",p),0!==c&&0===u&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",m)})}},u=3;u>=0;u--)d(u)})})}function v(e,t,r){var o=r.Xi(t),i=o.height,n=o.customHeight,a=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var o,l,s;isNaN(a)||e.writeAttributeString("defaultColWidth",""+a),n&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+i),o=r.Wi(t),l=o.outlineLevelRow-1,s=o.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,o,i){var a=r.Ti(t),l=r.Vi(t);0!==a.length&&e.writeElement("cols",m,function(){var t,r,s,c,d=function(r,s){var c,d,u,f=a[r],b=f.index;if(b>=n.ExcelConstants.vb)return t=r,"break";for(c=r+1,d=b;c=0){var t=o[f.formatId+i];t!==m?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===m?e.writeAttributeString("width",""+l):e.writeAttributeString("width",""+f.width),f.visible===!1&&e.writeAttributeString("hidden","1"),f.collapsed&&e.writeAttributeString("collapsed","1"),!isNaN(f.width)&&Math.abs(f.width-l)>1e-4&&e.writeAttributeString("customWidth","1"),"number"==typeof f.outLineLevel&&0!==f.outLineLevel&&e.writeAttributeString("outlineLevel",""+f.outLineLevel)}),t=r};for(r=0,s=a.length;r=0){var t=s[a.formatId+c];t!==m&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}a.customHeight&&(e.writeAttributeString("customHeight","1"),a.height!==m&&e.writeAttributeString("ht",""+a.height)),a.visible===!1&&e.writeAttributeString("hidden","1"),a.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof a.outLineLevel&&0!==a.outLineLevel&&e.writeAttributeString("outlineLevel",""+a.outLineLevel)}};i&&i.length>0?e.writeElement("row",b,function(){var t,r,o,a=-1;for(t=0,r=i.length;t=n.ExcelConstants.vb||(E(e,o,f,a,l,s,c,d,u),a=o.col)}):e.writeLeafElement("row",b)}S=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function E(e,t,r,i,n,a,l,s,c){var d=t.value,u=t.formula,f=t.cellType,b=t.richText,h=function(){var s,c,u,b;switch((n.xlsxStrictMode||t.col!==i+1)&&e.writeAttributeString("r",o.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=a[s],c!==m&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:u="s";break;case 5:u="b";break;case 7:u="e"}t.formula&&(t.arrayFormulaRange?(b=t.arrayFormulaRange.isDynamicArray,b&&e.writeAttributeString("cm","1"),t.isSpillError&&(u="e",e.writeAttributeString("vm","1"))):o.isNullOrUndefined(d)||"#"!==(""+d).substring(0,1)||S.indexOf((""+d).toUpperCase())===-1?t.isSpillError&&(u="e",e.writeAttributeString("vm","2")):u="e"),(t.formula||t.qi)&&"s"===u&&(u="str"),o.isNullOrUndefined(u)||e.writeAttributeString("t",u)};function p(e){var t,r=s.Zn[e.value],o=s.$n[e.value];return o===m&&(o=s.$n[e.value]=[]),t=C(o,e),r===m||t===m?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,o.push({index:r,value:e})):r=t,s.Pn++,r}function C(e,t){for(var r=0,o=e.length;ry&&(r=""),r=o.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function I(e,t,r){var o,i=r.qj(t),n=r.rj(t,i);(i||Object.keys(n).length>0)&&e.writeLeafElement("sheetProtection",function(){i&&e.writeAttributeString("sheet","1");for(var t in n)n.hasOwnProperty(t)&&(o=n[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,o):b.excelSupportProtectionOptions[t]&&(o=n[t]?"0":"1",e.writeAttributeString(t,o)))})}function L(e,t,r){var i=r.aj(t);i&&i.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+i.length)},function(){var t,r,n=function(t,r){var n=i[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",o.IndexHelper.T(n.col)+(n.row+1)+":"+o.IndexHelper.T(n.col+n.colCount-1)+(n.row+n.rowCount))})};for(t=0,r=i.length;t0&&e.writeElement("hyperlinks",function(){var t,r,a=function(t,r){var a=i[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",a.ref),a.location?e.writeAttributeString("location",a.location):(t="",r=new n.XFile(t,n.RelationshipConstants.gb),r.target=a.url,r.targetMode="External",a.rid=o.ze(r),e.writeAttributeString("r:id",a.rid)),a.display&&e.writeAttributeString("display",a.display),a.tooltip&&e.writeAttributeString("tooltip",a.tooltip),a["xr:uid"]&&e.writeAttributeString("xr:uid",a["xr:uid"])})};for(t=0,r=i.length;t0),i.wn(),i.fo.generateAsync({type:i.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){i.onZip(e)}).catch(function(){i.onError()})},e.prototype.so=function(e){var t,r,n,a=this,l=a.ro.Ne;i.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new o.XFile(o.XFileConstants.Ad,o.RelationshipConstants.Ka),e.ze(t),a.Go()),l.docProps.docPropsApp&&(r=new o.XFile(o.XFileConstants.Bd,o.RelationshipConstants.La),e.ze(r),a.Ho()),l.docProps.docPropsCustom&&(n=new o.XFile(o.XFileConstants.Cd,o.RelationshipConstants.Ma),e.ze(n),a.Io()))},e.prototype.Eo=function(e){var t,r,a,l,s,c,d,u,f,b;if(!i.isNullOrUndefined(e)&&!i.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=i.Util.ra(e.fileName),r=t.dir,a=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(d=e.relationFiles[c],d&&"count"!==c&&(u=[d.target||d.fileName.replace(r+"/",""),d.fileType],d.targetMode&&u.push(d.targetMode),s[c]=u,this.Eo(d)));f=new n.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",o.XFileConstants.Wd)},function(){var e,t=function(e){if(s.hasOwnProperty(e)){var t=s[e];t&&t.length>=2&&f.writeLeafElement("Relationship",function(){f.writeAttributeString("Id",e),f.writeAttributeString("Type",t[1]),f.writeAttributeString("Target",t[0]),t[2]&&f.writeAttributeString("TargetMode",t[2])})}};for(e in s)t(e)}),b=r+"/"+o.XFileConstants.Bb+"/"+a+"."+o.XFileConstants.Gb,l.fo.file(b.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),i=new n.XmlWriter;i.writeDocument(),i.writeElement("Types",function(){i.writeAttributeString("xmlns",o.XFileConstants.Vd)},function(){var e,t,n=function(e,t){var n=r[e];n instanceof o.DefaultContentType?i.writeLeafElement("Default",function(){i.writeAttributeString("Extension",n.extension),i.writeAttributeString("ContentType",n.contentType)}):n instanceof o.OverrideContentType&&i.writeLeafElement("Override",function(){i.writeAttributeString("PartName",n.partName),i.writeAttributeString("ContentType",n.contentType)})};for(e=0,t=r.length;e0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l0&&(s=l.substr(-1),"/"===s||"\\"===s?a.target=l+a.target:a.target=l+"/"+a.target),a.target=a.target.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""),a.targetMode="External",n.ze(a),c=F.writeExternalLink(this.ro,r),this.fo.file(i.substring(1),c))},e.prototype.Do=function(e){var t=this,r=h.writeWorkbook(t.ro,t.un,t.co,e,t.Uo,t.eo,t.do);t.fo.file(o.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,i,n,a,l,s,c,d;if(e){r=1,i=1,this.Uo={};for(n in e)e.hasOwnProperty(n)&&(a=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc,o.RelationshipConstants.Wa),l=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc,o.RelationshipConstants.Xa),s=t.ze(a),this.Uo[n]={file:a,cacheId:n,rid:s},c=T.writePivotCacheDefinition(e[n]),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc).substring(1),c),a.ze(l),d=T.writePivotCacheRecords(e[n].pivotCacheRecords),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc).substring(1),d),r++,i++)}},e.prototype.To=function(e,t,r,i,n,a){var l=this,s=u.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,i,n,a);this.fo.file(o.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+o.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var i,n,a;r&&r.length>0&&(this.io++,i=o.XFileConstants.ad+this.io+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Cb+"/"+i,o.RelationshipConstants._a),n.target="../"+i,t.ze(n),a=p.writeComments(e,r),this.fo.file(n.fileName.substring(1),a))},e.prototype.Jo=function(e,t,r,i,n){var a,l,s,c,d=n.controlShapes,u=i&&i.length>0,f=d&&d.length>0;(u||f)&&(this.ho++,a=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,l=new o.XFile(o.XFileConstants.Mc+"/"+a,o.RelationshipConstants.ab),l.target=I+a,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:o.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,d),c=k.writeVmlDrawingForLegacyDrawing(t,i,d),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var o,i,n=t.sp.control.style,a=n&&n.fill,l=a&&a.src;l&&(o={},x.getPictureInfo(l,o),r.ko++,i=P(o,r.ko,e),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.relationFiles[o.rid]=i,a.rid=o.rid)})},e.prototype.So=function(e,t,r){var i,n,a,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(i in c)c.hasOwnProperty(i)&&(n=o.XFileConstants.vd+this.Wo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Zc+"/"+n,o.RelationshipConstants.Ya),a.target="../pivotTables/"+n,t.ze(a),l=this.Uo&&this.Uo[c[i].cacheId]&&this.Uo[c[i].cacheId].file,l&&a.ze(l),s=T.writePivotTable(e,c[i]),this.fo.file((o.XFileConstants.Zc+"/"+n).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var o,i=this,n=t.charts;n&&n.forEach(function(t){i.Xo(t,e,r)}),o=t.shapes,o&&o.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,i.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var a,l,s,c,d,u,f,b,h,p,m,g,y=this,S=i.Util.za(e),C=S&&S.layoutId,x=i.Util.Aa(C),A=x?o.RelationshipConstants.mb:o.RelationshipConstants.lb,T=x?o.XFileConstants.dd:o.XFileConstants.bd;y.qo++,a=T+y.qo+"."+o.XFileConstants.nc,l=o.XFileConstants.ed+y.qo+"."+o.XFileConstants.nc,s=o.XFileConstants.hd+y.qo+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Lc+"/"+a,A),d=new o.XFile(o.XFileConstants.Lc+"/"+l,o.RelationshipConstants.qb),u=new o.XFile(o.XFileConstants.Lc+"/"+s,o.RelationshipConstants.pb),c.target=E+a,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=W(f.name,e.chartId,f.descr),b=e.chartSpace,b&&(y.Yo(b,e,c),y.Zo(b,c),h=new n.XmlWriter,h.writeDocument(),x?(p=void 0,p=y.ro&&y.ro.Ne&&y.ro.Ne.names?y.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",b,p,r)):w.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",b),y.fo.file(c.fileName.substring(1),h.getXmlString()),x&&(d.target=E+l,i.isNullOrUndefined(e.chartSpace.style)&&(e.chartSpace.style=JSON.parse('{"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","id":"381"},"axisTitle":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"categoryAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"chartArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":0}},"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":13.33}},"dataLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":14}}},"idx":1},"defRPr":{"sz":12}},"dataLabelCallout":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"solidFill":{"schemeClr":{"val":13,"lumMod":[25000],"lumOff":[75000]}}}},"defRPr":{"sz":12},"bodyPr":{"rot":0,"spcFirstLastPara":true,"vertOverflow":2,"horzOverflow":1,"vert":0,"wrap":1,"lIns":36576,"tIns":18288,"rIns":36576,"bIns":18288,"anchor":1,"anchorCtr":true,"spAutoFit":true}},"dataPoint":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":2,"solidFill":{"schemeClr":{"val":14}}}}},"dataPoint3D":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}}}},"dataPointLine":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataPointMarker":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":14}}}}},"dataPointMarkerLayout":{"attribute":{"symbol":"circle","size":"5"}},"dataPointWireframe":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataTable":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}},"defRPr":{"sz":12}},"downBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}}}},"dropLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"errorBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}},"round":true}}},"floor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"gridlineMajor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"gridlineMinor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"hiLoLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[75000],"lumOff":[25000]}},"round":true}}},"leaderLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"legend":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"plotArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"plotArea3D":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"seriesAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"seriesLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"solidFill":{"srgbClr":{"val":[217,217,217]}},"round":true}}},"title":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":18.67}},"trendline":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":2,"cap":0,"solidFill":{"schemeClr":{"val":12}},"prstDash":7}}},"trendlineLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"upBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}}},"valueAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"wall":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}}}')), e.chartSpace.style.id=c.ze(d),u.target=E+s,i.isNullOrUndefined(e.chartSpace.colors)&&(e.chartSpace.colors=JSON.parse('{"schemeClr":[{"val":4},{"val":5},{"val":6},{"val":7},{"val":8},{"val":9}],"variation":[{},{"lumMod":60000},{"lumMod":80000,"lumOff":20000},{"lumMod":80000},{"lumMod":60000,"lumOff":40000},{"lumMod":50000},{"lumMod":70000,"lumOff":30000},{"lumMod":70000},{"lumMod":50000,"lumOff":50000}],"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","meth":"cycle","id":"10"}}')),e.chartSpace.colors.id=c.ze(u),m=new n.XmlWriter,w.DrawingWriter.chart2016Write.WriteCT_ChartStyle(m,"cs","chartStyle",null,b.style),y.fo.file(d.fileName.substring(1),m.getXmlString()),g=new n.XmlWriter,w.DrawingWriter.chart2016Write.WriteCT_ChartColors(g,"cs","colorStyle",null,b.colors),y.fo.file(u.fileName.substring(1),g.getXmlString())))},e.prototype.Yo=function(e,t,r){var i,n,a,l=this,s=e.userShapes,c=s&&s.relSizeAnchor;c&&c.length>0&&(l.jo++,i=o.XFileConstants.jd+l.jo+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Mc+"/"+i,o.RelationshipConstants.ob),n.target=I+i,t.drawingFile=n,a=r.ze(n),e.userShapes.id=a,c.forEach(function(e){"1"===e.typeName?l.$o(e,n):"2"===e.typeName&&l._o(e,n)}))},e.prototype.$o=function(e,t){var r,o,i,n=e.src;n&&(r=this,r.ko++,o={},x.getPictureInfo(n,o),i=P(o,r.ko,t),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.pic.blipFill={blip:{embed:o.rid}})},e.prototype.ap=function(e,t){var r,o,i,n,a=this;!e.src&&e.size&&(r=a.bp(e.size.width,e.size.height),r=r.replace("png","emf"),e.src=r),o=e.src,o&&(a.ko++,i={},x.getPictureInfo(o,i),n=P(i,a.ko,t),a.fo.file(n.fileName.substring(1),i.base64Image,{base64:!0}),e.blipFill={blip:{embed:i.rid}})},e.prototype.bp=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r.toDataURL("image/png")},e.prototype._o=function(e,t){var r,a,l,s,c,d,u,f,b,h=this;h.qo++,r=o.XFileConstants.bd+h.qo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Lc+"/"+r,o.RelationshipConstants.lb),a.target=E+r,l=t.ze(a),s=e.chartSpace,c=i.Util.za(s),d=c&&c.layoutId,u=i.Util.Aa(d),s&&(e.graphicFrame.graphic={graphicData:{chart:{id:l,typeName:"chartSpace"}}},f=new n.XmlWriter,f.writeDocument(),u?(b=void 0,b=h.ro&&h.ro.Ne&&h.ro.Ne.names?h.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(f,"cx","chartSpace",s,b)):w.DrawingWriter.WriteCT_ChartSpace(f,"c","chartSpace",s),h.fo.file(a.fileName.substring(1),f.getXmlString()))},e.prototype.Zo=function(e,t){var r=this,o=e.chart.plotArea;o&&o.chartGroups&&o.chartGroups.forEach(function(e){e&&e.ser&&e.ser.forEach(function(e){e.spPr&&r.cp(t,e.spPr),e.dLbls&&e.dLbls.spPr&&r.cp(t,e.dLbls.spPr)})}),o.spPr&&r.cp(t,o.spPr),e.spPr&&r.cp(t,e.spPr)},e.prototype.dp=function(e,t,r){var o=this;e&&e.forEach(function(e){e.sp||e.cxnSp||e.grpSp?e.sp&&e.sp.spPr?o.cp(t,e.sp.spPr):e.grpSp&&(e.grpSp.sp&&o.ep(e.grpSp.sp,t,r),e.grpSp.grpSpPr&&o.cp(t,e.grpSp.grpSpPr)):e.pic&&(e.pic.cameraTool?(o.fp(e.pic,t,r),r++):(o.cp(t,e.pic),o.cp(t,e.pic.spPr)))})},e.prototype.ep=function(e,t,r){var o=this;e.forEach(function(e){e.spPr&&(i.isNullOrUndefined(e.cellRange)?o.cp(t,e.spPr):(o.fp(e,t,r),r++)),e.blipFill&&o.cp(t,e),3===e.shapeType&&o.ep(e.sp,t,r)})},e.prototype.Lo=function(e,t,r){var i=this,n=r.controlShapes;n.forEach(function(e){var r,n,a,l;i.lo++,r=o.XFileConstants.md+i.lo+".xml",n=new o.XFile(o.XFileConstants.Pc+"/"+r,o.RelationshipConstants.bb),a=t.ze(n),e.sp.control.rid=a,l=v.writeCtrlProps(e),i.fo.file(n.fileName.substring(1),l)})},e.prototype.fp=function(e,t,r){var o=this;e&&(o.ap(e,t),e.blipFill.srcRect={},e.blipFill.stretch={},e.blipFill.stretch.fillRect={},e.spid=r,e.nvPicPr&&e.nvPicPr.cNvPicPr&&e.nvPicPr.cNvPicPr.extLst&&e.nvPicPr.cNvPicPr.extLst.ext&&e.nvPicPr.cNvPicPr.extLst.ext[0]&&e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool&&(e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool.spid=e.spid))},e.prototype.cp=function(e,t){var r,o,i,n,a,l,s,c=t&&t.blipFill&&t.blipFill.blip&&t.blipFill.blip.blipBlob&&t.blipFill.blip.blipBlob.blob;if(c){for(r=this,o={},x.getPictureInfo(c,o),i=Object.keys(this.ao),n=0;n0&&l.forEach(function(e){n.ko++;var r=P(e,n.ko,t);a.file(r.fileName.substring(1),e.base64Image,{base64:!0})}),r.withDrawingObjects&&(o=25,n.dp(r.shapes,t,o),i=m.writeDrawing(e,r,t),a.file(t.fileName.substring(1),i),n.gp(r.charts))},e.prototype.gp=function(e){if(e&&e.length>0){var t=this.fo;e.forEach(function(e){var r,o=e.chartSpace,i=o&&o.userShapes,a=i&&i.relSizeAnchor;a&&a.length>0&&(r=new n.XmlWriter,r.writeDocument(!1),w.DrawingWriter.WriteCT_ChartDrawing(r,"","userShapes",i),t.file(e.drawingFile.fileName.substring(1),r.getXmlString()))})}},e.prototype.Po=function(e,t,r,i){var n=this,a=e.fi(r);a&&a.length>0&&a.forEach(function(a){var l,s=o.XFileConstants.od+a.id+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Sc+"/"+s,o.RelationshipConstants.$a);c.target="../tables/"+s,l=t.ze(c),a.rid=l,n.hp(a,c.fileName,e,r,i)})},e.prototype.hp=function(e,t,r,o,i){var n=this,a=n.fo,l=g.writeTable(e,r,o,i);a.file(t.substring(1),l)},e.prototype.Qo=function(e,t,r,o,i){var n,a,l=this,s=e.Dj(r);s&&s.length>0&&l.ip(e,t,r,s),n=e.Ej(r,"pivot"),n&&n.length>0&&l.ip(e,t,r,n),a=e.Ej(r,"timeline"),a&&a.length>0&&l.jp(e,t,r,a)},e.prototype.jp=function(e,t,r,i){var n,a,l,s,c,d=this;d.no++,n=o.XFileConstants.qd+d.no+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Uc+"/"+n,o.RelationshipConstants.tb),a.target="../timelines/"+n,l=t.ze(a),i[0].rid=l,s=d.fo,c=R.writeTimelines(i),s.file(a.fileName.substring(1),c)},e.prototype.ip=function(e,t,r,i){var n,a,l,s,c,d=this;d.mo++,n=o.XFileConstants.pd+d.mo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Tc+"/"+n,o.RelationshipConstants.jb),a.target="../slicers/"+n,l=t.ze(a),i[0].rid=l,s=d.fo,c=y.writeSlicer(i),s.file(a.fileName.substring(1),c)},e.prototype.yo=function(e,t,r){var i,n,a=this;t&&(i=e.fi(),n={},t.forEach(function(e){var t,l,s,c,d,u=Object.keys(n);0!==u.length&&n[e.name]||(a.oo++,t=o.XFileConstants.rd+a.oo+"."+o.XFileConstants.nc,l=new o.XFile(o.XFileConstants.Wc+"/"+t,o.RelationshipConstants.kb),l.target="slicerCaches/"+t,s=r.ze(l),n[e.name]=s,e.cacheRid=s,c=a.fo,d=y.writeTableSlicerCache(e,i),c.file(l.fileName.substring(1),d))}))},e.prototype.wo=function(e,t){var r,n=this;e&&(r={},e.forEach(function(e){var a,l,s,c,d,u,f,b=Object.keys(r);0!==b.length&&r[e.name]||(i.isNullOrUndefined(e.boundsStartDate)?(n.oo++,u=o.XFileConstants.rd+n.oo+"."+o.XFileConstants.nc,f=new o.XFile(o.XFileConstants.Wc+"/"+u,o.RelationshipConstants.kb),f.target="slicerCaches/"+u,s=t.ze(f),r[e.name]=s,e.cacheRid=s,c=n.fo,d=y.writePivotSlicerCache(e),c.file(f.fileName.substring(1),d)):(n.po++,a=o.XFileConstants.sd+n.po+"."+o.XFileConstants.nc,l=new o.XFile(o.XFileConstants.Xc+"/"+a,o.RelationshipConstants.ub),l.target="timelineCaches/"+a,s=t.ze(l),r[e.name]=s,e.cacheRid=s,c=n.fo,d=R.writePivotTimelineCache(e),c.file(l.fileName.substring(1),d)))}))},e.prototype.Ro=function(e,t,r,o){var i,n=e.Rj(r);n&&n.length>0&&this.kp(e,t,n,!0),i=e.Pj(r),i&&i.length>0&&this.kp(e,t,i,!1)},e.prototype.kp=function(e,t,r,i){var n,a,l,s;this.ho++,n=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,a=new o.XFile(o.XFileConstants.Mc+"/"+n,o.RelationshipConstants.ab),a.target=I+n,this.lp(r,a),l=t.ze(a),i&&(e.jn=l),s=S.writeVmlDrawingFile(r),this.fo.file(a.fileName.substring(1),s)},e.prototype.lp=function(e,t){var r=this;e.forEach(function(e){r.ko++;var o=P(e,r.ko,t);r.fo.file(o.fileName.substring(1),e.base64Image,{base64:!0}),t.relationFiles[e.rid]=o})},e.prototype.Co=function(e){var t,r,i,n=this,a=n.ro.Eh;a&&(t=o.XFileConstants.Fd,r=new o.XFile(o.XFileConstants.Cb+"/"+t,o.RelationshipConstants.sb),r.target=t,e.ze(r),i=C.getMetadataContent(a),n.fo.file(r.fileName.substring(1),i))},e.prototype.wn=function(){A.clearCache(),this.ro=L},e}(),t.XlsxWriter=B},"./src/xml-io/node-helper.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/excel-style.ts"),i=o.UnitHelper.emuToPixles,n=function(){function e(){}return e.Vm=function(e,t){return"1"===e||"0"!==e&&t},e.Wm=function(e,t){if(e){var r=parseFloat(e);if(!isNaN(r))return r}return t},e.Xm=function(e,t){if(e){var r=parseInt(e,10);if(!isNaN(r))return r}return t},e.He=function(e){return Array.isArray(e)||(e=e?[e]:[]),e},e.Ym=function(e,t,r){return r=r||t,e[t]&&e[t][r]},e.bn=function(e,t){e&&(t.x=i(parseInt(e._attr.x,10)),t.y=i(parseInt(e._attr.y,10)))},e.cn=function(e,t){e&&(t.width=i(parseInt(e._attr.cx,10)),t.height=i(parseInt(e._attr.cy,10)))},e.dn=function(t){if(t)return{col:parseInt(e.Ym(t,"xdr:col"),10),colOffset:i(parseInt(e.Ym(t,"xdr:colOff"),10)),row:parseInt(e.Ym(t,"xdr:row"),10),rowOffset:i(parseInt(e.Ym(t,"xdr:rowOff"),10))}},e}(),t.XmlNodeHelper=n},"./src/xml-io/xml-parser.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/xml-io/xml-reader.ts");function i(e,t){var r,i,a;if(e){for(r=new o.XmlReader,i={},r.reset(),r.setXml(e),r.keepRootNamespace=t;r.read();)if(2!==r.elementType){for(a={},a._attr={},i[r.name()]=a;r.moveToNextAttribute();)a._attr[r.readAttributeNameAsString()]=r.readContentAsString();3!==r.elementType&&n(r,a)}return i}}t.parseXmlToObject=i;function n(e,t){for(var r,o,i,a=e.depth;e.read()&&!(e.depth<=a);)if(1===e.nodeType()){for(r={},o=e.name(),t[o]?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(r)):t[o]=r,r._attr={};e.moveToNextAttribute();)r._attr[e.readAttributeNameAsString()]=e.readContentAsString();if(3===e.elementType)continue;i=e.readElementContentAsString(),1===(1&e.elementType)&&""!==i&&e.mp>e.rn&&("preserve"===r._attr["xml:space"]&&(i=e.readElementContentAsString(!0)),r[o]=i),n(e,r)}}function a(e,t){var r,o,i,n="<"+t,l=e._attr;if(l)for(r in l)l.hasOwnProperty(r)&&(n+=" "+r+'="'+l[r]+'"');n+=">",o=function(t){e.hasOwnProperty(t)&&l!==e[t]&&(Array.isArray(e[t])?e[t].forEach(function(e){n+=a(e,t)}):n+="object"==typeof e[t]?a(e[t],t):e[t])};for(i in e)o(i);return n+=""}t.convertObjectToXml=a},"./src/xml-io/xml-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.Util.oa,n="",l=null,s=function(){function e(){this.np=-1,this.op=0,this.pp=0,this.qp=0,this.buffer="",this.elementType=2,this.depth=0,this.rn=0,this._l=0,this.rp=0,this.tp=0,this.vp=0,this.wp=0,this.mp=0,this.xp=0,this.xmlIndex=0,this.xml="",this.yp=!1,this.zp=1/0,this.reset()}return e.prototype.reset=function(){var e=this;e.np=-1,e.op=0,e.pp=0,e.qp=0,e.buffer="",e.elementType=2,e.depth=0,e.rn=0,e._l=0,e.rp=0,e.tp=0,e.vp=0,e.wp=0,e.mp=0,e.xp=0,e.xmlIndex=0,e.xml="",e.yp=!1,e.zp=1/0,e.Ap=0,e.Bp=""},e.prototype.setXml=function(e){this.xml=e,this.zp=e.length},e.prototype.name=function(){var e,t=this,r=t.buffer.slice(t.rn,t.rn+t._l);return r&&!t.keepRootNamespace?(e=r.lastIndexOf(":")+1,e===t.Ap&&r.substr(0,e)===t.Bp||(e=0),r.substr(e)):r},e.prototype.nodeType=function(){return 2===this.elementType?15:1},e.prototype.fillBuffer=function(){var e=this,t=e.buffer.length;return 0===t&&(e.buffer=e.xml,e.np=0,e.mp=0,e.pp=e.buffer.length,!0)},e.prototype.read=function(){var e,t,r,o,i,l,s,c,d,u,f,b=this,h=b.zp;for(b.op=Number.MAX_VALUE,b.yp=!1;b.np=b.pp&&!b.fillBuffer())return!1;if(e=b.buffer[b.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=t.length,o=0,i=!1;o=h)return!1;switch(t[o]){case"elementStarting":for(i=!1;b.np"===e)return!0}else if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.rn=b.np;break}}if(i)continue;case"elementStart":for(i=!1,1===b.elementType&&b.depth++;b.np"===e){b._l=b.np-b.rn,o=3,i=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e||"/"===e){b._l=b.np-b.rn,b.op=b.np;break}}if(0===b.depth&&!b.keepRootNamespace&&b._l&&(l=b.buffer.substr(b.rn,b._l),s=l.lastIndexOf(":")+1,s&&(b.Bp=l.substr(0,s),b.Ap=s)),i)continue;case"elementNameEnd":for(c=!1;b.np"!==e););for(d=b.np;d>0;){if(d--,e=b.buffer[d],"/"===e)return b.qp=d,b.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.qp=d,b.elementType=1,o=4;break}}continue;case"elementEnd":for(d=b.np;d>0;){if(d--,e=b.buffer[d],"/"===e)return b.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){b.elementType=1;break}}case"elementContent":for(u=!1;b.np"===e)return b._l=b.np-b.rn,!0}}},e.prototype.fastRead=function(){var e,t,r,o,i,l,s,c,d,u=this,f=u.zp;for(u.op=Number.MAX_VALUE,u.yp=!1;u.np=u.pp&&!u.fillBuffer())return!1;if(e=u.buffer[u.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=0,o=!1;r=f)return!1;switch(t[r]){case"elementStarting":for(o=!1;u.np"===e){u._l=u.np-u.rn,r=3,o=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e){u._l=u.np-u.rn,u.op=u.np;break}}if(0===u.depth&&!u.keepRootNamespace&&u._l&&(i=u.buffer.substr(u.rn,u._l),l=i.lastIndexOf(":")+1,l&&(u.Bp=i.substr(0,l),u.Ap=l)),o)continue;case"elementNameEnd":for(s=!1;u.np"!==e););for(c=u.np;c>0;){if(c--,e=u.buffer[c],"/"===e)return u.qp=c,u.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){u.qp=c,u.elementType=1,r=4;break}}continue;case"elementEnd":for(c=u.np;c>0;){if(c--,e=u.buffer[c],"/"===e)return u.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){u.elementType=1;break}}case"elementContent":for(;u.np"===e)return!0}}},e.prototype.moveToNextAttribute=function(){for(var e,t,r=this,o=r.zp;r.op=r.qp-1)return!1;if(r.op++,e=r.buffer[r.op]," "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){r.rp=r.op;break}}for(;r.op0&&(" "===r||"\r"===r||"\n"===r||"\t"===r);)s--,r=t[s-1];return o=l.buffer.slice(s,l.xp),l.yp&&(o=i(o.replace(n,"").replace(a,"")),l.yp=!1),o},e.prototype.readElementContentAsInt=function(e){var t=this,r=parseInt(t.buffer.slice(t.mp,t.xp),10);return isNaN(r)?e:r},e.prototype.readElementContentAsDouble=function(e){var t=this,r=parseFloat(t.buffer.slice(t.mp,t.xp));return isNaN(r)?e:r},e.prototype.readElementContentAsBoolean=function(e){var t=this,r=t.buffer[t.mp];return"1"===r||"t"===r||"0"!==r&&"f"!==r&&e},e.prototype.readAttributeNameAsString=function(){var e=this;return e.buffer.slice(e.rp,e.rp+e.tp)},e.prototype.readFullElement=function(){var e,t,r=this;if(2===r.elementType)return"";if(e=r.rn-1,3===r.elementType)return r.buffer.slice(e,r.qp+2);if(t=r.depth,1===r.elementType){for(;r.read()&&!(r.depth<=t););return r.buffer.slice(e,r.rn+r._l+1)}return""},e}(),t.XmlReader=s},"./src/xml-io/xml-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){var t=this;t.size=e||500,t.blockIndex=-1,t.stringIndex=0,t.blocks=[],this.createNewArray()}o.prototype.createNewArray=function(){var e=this,t=Array(e.size);e.blocks.push(t),e.blockIndex++,e.stringIndex=0},o.prototype.addString=function(e){var t=this;t.isFullArray()&&t.createNewArray(),t.blocks[t.blockIndex][t.stringIndex]=e,t.stringIndex++},o.prototype.getAllString=function(){var e,t,r=this;for(e=0;ee.size-2};var i=function(){function e(){this.xml=new o}return e.prototype.writeDocument=function(e){this.xml.addString('\r\n")},e.prototype.writeElement=function(e,t,r){void 0===r&&(r=t,t=void 0),this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString(">"),"function"==typeof r&&r(),this.xml.addString("")},e.prototype.writeValue=function(e){this.xml.addString(e)},e.prototype.writeLeafElement=function(e,t){this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString("/>")},e.prototype.writeAttributeString=function(e,t){this.xml.addString(" "+e),"style"===e?this.xml.addString("='"+t+"'"):this.xml.addString('="'+t+'"')},e.prototype.writeElementString=function(e,t){this.xml.addString("<"+e+">"+t+"")},e.prototype.getXmlString=function(){return this.xml.getAllString()},e}();t.XmlWriter=i}})}); \ No newline at end of file diff --git a/instock/web/static/js/gc.spread.sheets.all.min.js b/instock/web/static/js/gc.spread.sheets.all.min.js index 78ff18a12..c267e90bf 100644 --- a/instock/web/static/js/gc.spread.sheets.all.min.js +++ b/instock/web/static/js/gc.spread.sheets.all.min.js @@ -1,13 +1,13 @@ /*! * - * SpreadJS Library 17.1.3 + * SpreadJS Library 17.1.7 * * Copyright(c) of respective holders. All rights reserved. * * Licensed under the SpreadJS Commercial License. * */ -var GC;!function(){var e,i,t;function r(t){var n,n,n=i[t];return void 0!==n||(n=i[t]={exports:{}},e[t].call(n.exports,n,n.exports,r)),n.exports}e={"./all.entry.js":function(t,n,e){(GC=GC||{}).Spread=GC.Spread||{},GC.Spread=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),GC.Spread.CalcEngine=e("./node_modules_local/@spreadjs/js-calc/index.js"),GC.Spread.CalcEngine.BasicFunctions=e("./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js"),GC.Spread.CalcEngine.AdvancedFunctions=e("./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js"),GC.Data=e("./node_modules_local/@spreadjs/js-data-manager/index.js"),GC.Spread.Sheets=e("./dist/core/core.entry.js"),GC.Spread.Sheets.Bindings=e("./dist/plugins/data/data.entry.js"),GC.Spread.Sheets.Outlines=e("./dist/plugins/group/group.entry.js"),GC.Spread.Sheets.CalcEngine=e("./dist/plugins/sheetsCalc/sheetsCalc.entry.js"),GC.Spread.Sheets.ConditionalFormatting=e("./dist/plugins/conditional/conditional.entry.js"),GC.Spread.Sheets.DataValidation=e("./dist/plugins/validation/datavalidation.entry.js"),GC.Spread.Sheets.Search=e("./dist/plugins/search/search.entry.js"),GC.Spread.Sheets.Touch=e("./dist/plugins/touch/touch.entry.js"),GC.Spread.Sheets.FloatingObjects=e("./dist/plugins/floatingObject/floatingobject.entry.js"),GC.Spread.Sheets.Sparklines=e("./dist/plugins/sparkline/sparkline-wrapper.entry.js"),GC.Spread.Sheets.Comments=e("./dist/plugins/comment/comment.entry.js"),GC.Spread.Sheets.CellState=e("./dist/plugins/cellState/cellstate.entry.js"),GC.Spread.Sheets.CellTypes=e("./dist/plugins/celltype/celltypes.entry.js"),GC.Spread.Sheets.Filter=e("./dist/plugins/filter/filter.entry.js"),GC.Spread.Sheets.Tables=e("./dist/plugins/table/table.entry.js"),GC.Spread.Sheets.Fill=e("./dist/plugins/fill/fill.entry.js"),GC.Spread.Sheets.ContextMenu=e("./dist/plugins/contextMenu/context-menu.entry.js"),GC.Spread.Sheets.FormulaTextBox=e("./dist/plugins/formulaTextbox/formulaTextBox.entry.js"),GC.Spread.Sheets.OutlineColumn=e("./dist/plugins/outlineColumn/outlineColumn.entry.js"),GC.Spread.Sheets.DragMerge=e("./dist/plugins/dragMerge/dragMerge.entry.js"),GC.Spread.Sheets.StatusBar=e("./dist/plugins/statusBar/statusBar.entry.js"),GC.Spread.Sheets.AutoMerge=e("./dist/plugins/autoMerge/autoMerge.js"),GC.Spread.Sheets.Hyperlink=e("./dist/plugins/hyperlink/hyperlink.js"),GC.Spread.Sheets.NameBox=e("./dist/plugins/namebox/namebox.entry.js"),GC.Spread.Sheets.Components=e("./dist/plugins/components/index.js"),GC.Spread.Sheets.InputMask=e("./dist/plugins/inputMask/inputMask.entry.js"),GC.Spread.Sheets.Spacing=e("./dist/plugins/spacing/spacing.js"),t.exports=GC.Spread},"./dist/core/celltype/basecelltype.js":function(n,u,t){"use strict";var c,v,ht,dt,g,Z,e,l,h,d,p,t,W,o,Q,Mt,J,vt,y,M,K,R,et,C,L,S,x,X,q,$,j,tt,b,_,A,gt,N,mt,pt,Ct,bt,i,s,wt,St,T,D,k,O,r,E,F,B,I,P,a,G;function nt(t){var n=t.isPrinting,t=t.printZoomFactor;return n&&typeof t===b&&1!==t}function U(t){var n;return!(t instanceof CanvasRenderingContext2D)&&!C(t._ae)}function H(t,n){var e,i,r,e=0,i=t.font+n,r=!U(t);return r&&D[i]?e=D[i]:(e=K(t,t.font,n),r&&(D[i]=e)),e}function w(){}function z(t,n){var e;return n/2-t/2+(8=n.width))if(0===(a=(a=t.labelOptions.alignment)===A?t.labelOptions.alignment=0:a)||1===a||2===a){if(0e.y+e.height&&(s.y=wt(s.y-(s.y+s.height-e.y-e.height),e.y))),n=(a=f.getImage(l)).width,h=a.height,ht.mt.Tt.msie&&(O[l]||(a.style.position="absolute",a.style.left="-10000px",a.style.top="-100000px",document.body.appendChild(a),O[l]={width:a.width,height:a.height},document.body.removeChild(a)),n=O[l].width,h=O[l].height),u&&ht.mt.Tt.msie&&s.x+s.width>u.x+u.width?0<(i=c=u.x+u.width-s.x)&&t.drawImage(a,0,0,i*(d=n/r),h,N(s.x),N(s.y),i,o):(c=r,t.drawImage(a,0,0,n,h,N(s.x),N(s.y),c,o))):f.addImage(l,"anonymous"),t.restore()}function an(t){var n=t.context,e=t.style,t=t.externals;dt.W.Xue(e)&&(t.left=t.left.concat(un(n,e,Z.IconPosition.leftOfText)),t.right=t.right.concat(un(n,e,Z.IconPosition.rightOfText)))}function un(n,t,e){for(var i,r,o,a,i=!1,r=0,o=t.decoration.icons;r=s&&x.col>=c&&1=v&&y.col>=g&&1=v&&y.col>=g&&1=t.width&&(i.width=0),r+a>=t.height&&(i.height=0),i},f.prototype.In=function(t,n,e,i){var r,o,r,r=this,o=nt(i)?i.printZoomFactor:i.sheet.zoom();return n=r.An(n,e,o),f.et(i.sheet,"getCellPaddingRect",r={ctx:t,options:{rect:n,context:i}}),r.options.rect},f.prototype.xn=function(t,n,e,i){var r,o,i,a,u,s,c,o,f,l,n,a,h,d,r=e.labelOptions;r&&(i=(o=i.sheet).getText(i.row,i.col,i.sheetArea),a=e.watermark,1!==(u=r.visibility))&&a&&(s=r.font||e.font||o.Dn.Nn(),1!==(c=o.zoom())&&(s=o.Dn._n(s)),o=Q(s),f=Rt(e,n)?Pt(n,e):f)&&((l=(0,v.GC$)(ht.mt.En("span"))).text(a),n=(2===u||u===A)&&""===i,a=f.height-o,h=f.y+(n&&0e.width?a.width+u.width+t.width:e.width,e=!isNaN(a&&a.height)&&a.height+u.height+t.height>e.height?a.height+u.height+t.height:e.height,r.updateEditorContainer(o,a,n,i,s={width:c,height:e},u,t)},f.prototype.Bn=function(t,n,e,i,r){return this.getCellAndPaddingHitInfo(t,n,e,i,r)},f.prototype.Ln=function(t,n,e,i,r){var o,t,o=kt(r,e)+Nt(r)+jt(r,e),t=this.getAutoFitWidth(t,n,e,i,r);return 0M-1-2?(y=y.substring(0,y.length-4)+k,c.push(y.split(k)[0].length)):c.push(x)}else if(1===d){for(A=0;AM-1-2?(y=y.replace(m[S],""),c.push(y.split(k)[0].length)):c.push(x),s[g].y=a+(o-(3*w+(y.length-3)*p))/2}else{for(c.push(0),T=m.length-1;T>=m.length-C;T--)y=m[T]+y;3*w+((y=k+y).length-3)*p+u>M-1-2&&(y=y.replace(m[m.length-C],"")),s[g].y=a+o-u-(3*w+(y.length-3)*p)-2}e[g].textInfos[0].text=y,f.Ut.$n(l,h,m,v)}else f.Ut.$n(l,h,null,v)},f.prototype.Qn=function(t,n,e,i,r,o,a,u,s,c,f,l){var h,d,v,g,m,h,p,b,w,y,M,C,S,y,T,m,h,d,l,m,x,A,b,S,I,N,k,T,f,j,D;if(n&&n.richText&&(n={text:(n=n.converted?n:ht.util.g0(n)).text,richText:n.converted}),v=this,g=new ht.Rect(e,i,r,o),m=u.sheet?u.sheet.zoom():1,h=u.printZoomFactor,h=nt(u)?h:_,p=v.Gn(a.textIndent,u.sheet.outlineColumn,u.col,h?h*m:m),b=u.cellOverflowLayout&&u.cellOverflowLayout.expandedWidth,w=a.hAlign,y=a.formatter||a._autoFormatter,3===w&&(w=Mt(w,n,y)),C=!!(M=a.isVerticalText&&4!==w)&&J(s),S=a.font,y=v.Ft(y,n&&n.text),T=L(!0,[],v.Pt(n,s,y,S,a.foreColor)),(0,ht.resetFillStyle)(t,u.sheet,a,f),n&&n.richText&&0C.length?S.substring(0,S.length-1)+k+C:S+k+C.substring(1,C.length),M=this.qn(i,g)}else for(m=0;mr||4===m,v=p.x,b=p.y,_=p.width,p=p.height,g)if(t.rect(v,b,_,p),t.clip(),t.beginPath(),O=i+M,1w.backgroundLeftWidth||g>w.backgroundRightWidth)&&(f=!0):(_d.backgroundLeftWidth||h>d.backgroundRightWidth)&&(v=!0):(ae-d.x&&p&&(o=d.x+b+1,M=d.width-b-1),S="",n.forEach(function(t){return S+=t.value}),h=i,(a=pn([S],f.lineHeight,l)).descenderHeight&&(h+=a.descenderHeight),f.textRect=new ht.Rect(e,h,e,a.height),g.Zn(t,l,f,o,i,m,f.lineHeight,d),M?(t.save(),t.beginPath(),t.rect(o,d.y,M,d.height),t.clip(),C=this.We(t,n,e,i,y,u,s,c,l.textDirection),t.restore()):C=this.We(t,n,e,i,y,u,s,c,l.textDirection),g.Wn(t,l,f,e,i,C-e,f.lineHeight,d),t.restore()},f.prototype.We=function(t,n,e,i,r,o,a,u,s){for(var c,f,l,l,c=this.qn(t,"0"),f=0;fn?r+=o*(u=pt(t[a]/n)):r+=o;return r}function en(t,n,e){var t=K(t);return t&&"="===t[0]||""===t&&"="===n[0]||0===e&&"="===n[0]}function rn(t){var t=t&&t.tagName;return"TEXTAREA"===t||"INPUT"===t}function on(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?At:xt)}function an(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?xt:At)}function un(t){var n,e,i;if(t&&t.content)for(n=t.content.length-1;0<=n&&((e=t.content[n])&&e.value&&e.value.endsWith(Tt));n--){for(i=e.value.length-1;0<=i&&e.value[i]===Tt;i--);if(-1!==i){e.value=e.value.substring(0,i+1);break}t.content.pop()}}function sn(t,n){t.ki(d,{sheet:t,sheetName:t.name(),row:t.ui,col:t.ci,editingText:n})}function cn(t,n,e,i,r,o,a){var u,s,c,f,l,t,i,h,i,d,v,t,r,i,g,m,u=t,s=a.sheet,c=s.zoom?s.zoom():1,l=i,t=o.textOrientation,i=o.textIndent&&0!==o.textIndent,h=o.isVerticalText;if(t&&-90<=t&&t<=90&&!i&&!h&&(i=yt(t*Math.PI/180),l=(r-a.lineHeight*wt(i))/bt(i)),v={},r=(t=o.formatter)&&"General"!==t,i=D(t),g=o._autoFormatter&&o._autoFormatter.formatCached&&"General"!==o._autoFormatter.formatCached,(r="string"==typeof t?r&&!i:r)?d=o.formatter:g?d=o._autoFormatter:s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.mask?d=R.Context.Nt(n,e,l,o,c):s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(d=o._autoFormatter),!(f=i&&(e instanceof Date||"boolean"==typeof e||e instanceof Boolean||"number"==typeof e)?u.format(e,t,{}):u.format(et(e),d,v,a))||!f.endsWith(Tt)||!0!==o.wordWrap&&(5!==o.hAlign||a.sheet.options.showFormulas&&a.isFormula)||(f=(0,L.r2e)(f),un(v)),!0!==o.shrinkToFit&&!h&&it(e)&&s.parent){switch(m=f,s.parent.options.numbersFitMode){case x.NumbersFitMode.mask:m=u.wi(n,f,l,o,c,a,v,s);break;case x.NumbersFitMode.overflow:m=u.overflow(n,a,e,o,s,f,v)}f=m}return f}function o(t){var n=Dt.call(this)||this;return n.allowOverflow=!0,n.typeName="1",n.editorType=F(t)?1:t,n}function fn(t){var n,t,e,i,r,n=["0","0","0","0"];return typeof t===It&&(r=i=void 0,1===(e=(t=t.split(" ",4)).length)?n=[i=t[0],i,i,i]:2===e?n=[i=t[0],r=t[1],i,r]:3===e?(r=t[1],n=[t[0],r,t[2],r]):4===e&&(n=[t[0],t[1],t[2],t[3]])),n}u=this&&this.__extends||(jt=function(t,n){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}jt(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextCellType=t.EditorType=t.xHe=void 0,e=n("Common"),h=n("./dist/core/worksheet/worksheet.js"),E=n("./dist/core/util/domUtil.js"),i=n("./dist/core/util/common.js"),l=n("./dist/core/celltype/celltype.ns.js"),R=n("./dist/core/celltype/basecelltype.js"),x=n("./dist/core/core.enum.js"),L=n("./dist/core/util/common.js"),n=n("CalcEngine"),j=!!n,F=e.Common.lt.ht,X=i.q,d=i.Events.EditChange,v=i.hi,r=i.mt,s=i.di,D=r.St,g=r.En,c=r.Tt,B=c.msie,_=c.edge,q=c.chrome,y=r.vi,$=r.gt,m=r.mi,p=r.gi,f=r.pi(),tt=r.vt,b=r.bi,w=r.Mt,O=r.yi,nt=r.yt,et=r.wt,it=r.Ct,P="left",rt="right",ot="center",at="top",M="gcUIElement",G="none",C=".gcEditingInput",S="gcEditingInput",U="width",H="height",ut="text-align",z="hidden",V="word-wrap",Y="overflow",st="vertical-align",Z="normal",ct="break-word",ft="overflow-y",lt="scroll",ht="word-break",dt="float",T=window,A=document,vt=.337,gt=f.ipad,mt=f.iphone||gt||f.android,I=null,N=void 0,pt=Math.ceil,W=Math.min,bt=Math.sin,wt=Math.cos,yt=Math.abs,Mt=Math.max,Q=parseInt,Ct="\xa0",St="\u200b",Tt=" ",xt=90,At=89,It="string",Nt="number",t.xHe=cn,(n=kt=t.EditorType||(t.EditorType={}))[n.textarea=0]="textarea",n[n.editableDiv=1]="editableDiv",Dt=R.Base,u(o,Dt),o.prototype.getText=function(t,n){return t},o.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,m,p,b,w,p,m,y,p,M,C,M,S,C,T,p,v,M,s=this,c=u.sheet,f=c.zoom?c.zoom():1;if(n=s.getText(n,u),l={},u.quotePrefix=a.quotePrefix,v=(d=a.formatter)&&"General"!==d,g=D(d),"string"==typeof d&&(v=v&&!g),m=a.textOrientation,p=a.textIndent&&0!==a.textIndent,b=a.isVerticalText,w=r,m&&-90<=m&&m<=90&&!p&&!b&&(p=yt(m*Math.PI/180),w=(o-u.lineHeight*wt(p))/bt(p)),m=(y=s.Pn(t,h,a,u,e,i,r,o)).externals,p=s.Hn(m.left),M=s.Hn(m.right),2===(C=3===(C=a.hAlign)?$(C,n,a.formatter||a._autoFormatter):C)?w-=M:0===C&&(w-=p),M=a._autoFormatter&&a._autoFormatter.formatCached&&"General"!==a._autoFormatter.formatCached,v?S=a.formatter:M?S=a._autoFormatter:c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.mask?S=R.Context.Nt(t,n,w,a,f):c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(S=a._autoFormatter),!(h=g&&(n instanceof Date||"boolean"==typeof n||n instanceof Boolean||"number"==typeof n)?s.format(n,d,{}):s.format(et(n),S,l,u))||!h.endsWith(Tt)||!0!==a.wordWrap&&(5!==a.hAlign||u.sheet.options.showFormulas&&u.isFormula)||(h=(0,L.r2e)(h),un(l)),C=new L.Rect(e,i,r,o),this.adjustRectForIconSet(a.hAlign,u.sheet,u.row,u.col,u.sheetArea,C,l.content&&this.hasInfilling(l.content)),e=C.x,r=C.width,!0!==a.shrinkToFit&&!b)if(it(n)){if(c.parent){switch(T=h,c.parent.options.numbersFitMode){case x.NumbersFitMode.mask:T=this.wi(t,h,w,a,f,u,l,c);break;case x.NumbersFitMode.overflow:T=this.overflow(t,u,n,a,c,h,l)}h=T}}else void 0===c.Ut.Ci(u.row,u.col,u.sheetArea)||a.showEllipsis||c.Ut.$n(u.row,u.col,void 0,u.sheetArea);p=a.labelOptions,v=a.watermark,M=!p||0!==p.visibility,v&&!h&&M?s.paintText(t,v,e,i,r,o,a,u,v,l,vt):(h||l.content&&l.content.length||a.cellButtons&&a.cellButtons.length)&&s.paintText(t,n,e,i,r,o,a,u,h,l,N,m)},o.prototype.wi=function(t,n,e,i,r,o,a,u){var s,t,e,s,s=o.cellOverflowLayout&&o.cellOverflowLayout.expandedWidth,t=R.Context.Et(t,n,F(s)?e:s,i,r),e=o.row,s=o.col;return n!==t?(delete a.content,i.textIndent=0,u.Ut.$n(e,s,u.getText(e,s,o.sheetArea),o.sheetArea)):u.Ut.$n(e,s,void 0,o.sheetArea),t},o.prototype.overflow=function(t,n,e,i,r,o,a){var u,s,t,c,f,l,h,u=n.row,s=n.col;if(i.wordWrap&&(i.wordWrap=!1),t=w(t,i.font,o),c=r.Jt.Kt(s),l=void 0,!(f=n.cellOverflowLayout)&&cf.backgroundWidth:f.valueWidth/2>f.backgroundLeftWidth||f.valueWidth/2>f.backgroundRightWidth)?r.getText(u,s,n.sheetArea):void 0}return r.Ut.$n(u,s,l,n.sheetArea),o},o.prototype.Si=function(t){return null!=t},o.prototype.createEditorElement=function(t,n){var t,t,n,e,t=t&&t.sheet&&t.sheet.parent&&t.sheet.parent.Ti,t=p(t)+1e3;return(0,E.GC$)(n).css("z-index",t),n=Ot(this.editorType),(0,E.GC$)(n).css({font:"normal 11pt calibri",outline:G,resize:G,border:G,"vertical-align":"top","min-height":"0px","box-sizing":"content-box",background:"transparent"}).css(V,Z).attr({tabindex:-1,autocomplete:"off",contenteditable:!0}).css(Y,z).attr(M,S),c.safari&&(0,E.GC$)(n).css("-webkit-user-select","auto"),(e=J((0,E.GC$)(n)[0]))&&((0,E.GC$)(n).css("display","table-cell"),(0,E.GC$)(n).css(ht,Z)),(0,E.GC$)(n)[0]},o.prototype.getEditorValue=function(t,n){var e,i,n,t;return t&&(e=K(t),i=!F(e)&&0n.start?i-1:i)){for(u=0;t.childNodes[u]&&0<=i;)i-=t.childNodes[u].textContent.length,u++;r.setEnd(t.childNodes[u-1],i+t.childNodes[u-1].textContent.length)}else r.setEnd(t.childNodes[0],i);r.collapse(!0),o.removeAllRanges(),o.addRange(r)}else t.value&&(a=(s=t.value).length,e=W(e,a),i=i>n.start?i-1:i,i=W(i,a),t.setSelectionRange(e,i))},o.prototype.activateEditor=function(n,l,h,d,v,g,m){var p,b,w,n,o,n,t,e,i,r,a,u,e,p=d&&d.sheet;if(p&&(b=this,w=n)){if(n=(0,E.GC$)(w),o=J(w),b._editingElement=w,n.attr(M)||n.attr(M,S),f.android&&n.bind("input"+C,function(t){try{b.fi(w,l,h,t,d,!1,v,g,m)}catch(t){}}),n.bind("keydown"+C,function(t){var n,e,i;try{n=t.keyCode,e={event:t,editor:w,value:K(w),caret:b.Xmt(w),cancel:!1},8===n?(R.Base.et(p,"editorBackspace",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processBackspaceAndLeftArrowKeyEvent(t,!0)):46===n?(R.Base.et(p,"editorDelete",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processDeleteAndRightArrowKeyEvent(t,!0)):37===n&&o?s.processBackspaceAndLeftArrowKeyEvent(t,!1):39===n&&o&&s.processDeleteAndRightArrowKeyEvent(t,!1),on(t)&&o?(R.Base.et(p,"editorUndo",e),!0===e.cancel&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value}))):an(t)&&o&&(R.Base.et(p,"editorRedo",e),!0===e.cancel)&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})),((i=229===n||0===n)||b.Ni)&&!f.android||b.fi(w,l,h,t,d,!0,v,g,m),Wt(t,d,b.Ni,v,g,m)}catch(t){}}),n.bind("keyup"+C,function(t){var n,e,i,r,n=t.keyCode,e=t.ctrlKey,i=t.altKey,r;(!(229===n||0===n)&&!b.Ni||f.android)&&(46!==n&&8!==n&&(90!==n&&89!==n||!e||i)||(o&&"\n"===w.innerText&&(0,E.GC$)(w).empty(),b.fi(w,l,h,t,d,!1,v,g,m)),13!==n&&9!==n&&27!==n&&16!==n||e||i)&&sn(p,b.getEditorValue(w,d))}),n.bind("mousedown"+C,function(){1===p.Di&&(p.Di=2,p._i(1,2))}),n.bind("textInput"+C,function(t){var n,n,e,e;if(c.safari){if(t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key)return;n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))}t.data&&(b.probabilityAddPercentSpec||b.probabilityAddPercent)&&/^[0-9]+.?[0-9]*/.test(t.data)&&((e=document.createElement("span")).innerText="%",e.id="updateEditorImpAddPercent",("#text"===w.firstChild.nodeName?w:w.firstChild).appendChild(e),delete b.probabilityAddPercentSpec,delete b.probabilityAddPercent)}),n.bind("compositionstart"+C,function(){b.Ni=!0,b.Ei=K(w)}),n.bind("compositionupdate"+C,function(t){b.fi(w,l,h,t||I,d,!0,v,g,m)}),n.bind("compositionend"+C,function(t){var n,n,e,e,n,t,i,n=t.data,n={editor:w,value:n,caret:b.Xmt(w),isImeInputting:!0,cancel:!1};R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})),b.fi(w,l,h,t||I,d,!1,v,g,m),b.Ni=!1,e=t.keyCode,n=t.ctrlKey,t=t.altKey,i=b.getEditorValue(w,d)||"",b.Ei!==i&&(e===N||13!==e&&9!==e||n||t)&&sn(p,i)}),o&&(n.bind("copy"+C,function(t){var n=T.clipboardData,e=t.clipboardData,i=Xt(t.currentTarget);F(i)||(n&&n.setData?(n.setData("text",i),y(t)):e&&e.setData&&(e.setData("text/plain",i),y(t)))}),n.bind("cut"+C,function(t){var n,n,e,i,r,r,n=Xt(t.currentTarget),e="editorCut";!F(n)&&w.Rse&&(T.clipboardData&&T.clipboardData.setData?(i="text",r=T.clipboardData):t.clipboardData&&t.clipboardData.setData&&(i="text/plain",r=t.clipboardData),n={editor:w,clipboardData:r,dataName:i,caret:b.Xmt(w)},R.Base.et(p,e,n),y(t),k(w,n.value),r=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&r&&r.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret)),b.ji=T.setTimeout(function(){sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10)}),n.bind("paste"+C,function(t){var n,e,i,r,o,a,u,s,c,f,n=!1;try{e=void 0,B&&!_&&T.clipboardData&&T.clipboardData.getData?e=T.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData&&(e=t.clipboardData.getData("text/plain")),e=Zt(e=e.replace(/\r\n?/g,"\n")),i={editor:w,pasteValue:e,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorPaste",i),!0===i.cancel?(n=!0,k(w,i.pasteValue),b.qmt(w,i.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:i.pasteValue})):0<(r=T.getSelection()).rangeCount&&((a=(o=r.getRangeAt(0)).startOffset)!==(u=o.endOffset)&&o.deleteContents(),en(w,e,a)||(s=A.createElement("span"),"\n"===(e=8203===e[(c=e.length)-1].charCodeAt(0)&&"\n"===e[c-2]?e.replace(/\u200B/g,""):e)[(c=e.length)-1]&&(e="\r"===e[c-2]?e.substr(0,c-2):e.substr(0,c-1)),s.innerText=e,o.insertNode(s),(f=document.createRange()).setStartAfter(s),f.setEndAfter(s),f.collapse(!1),r.removeAllRanges(),r.addRange(f),n=!0))}catch(t){}if(b.ji=T.setTimeout(function(){b.fi(w,l,h,t,d,!1,v,g,m),p.parent&&p.parent.ki(L.Events.FormulaTextBoxUpdatePosition,void 0),sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10),n)return!1}),n.bind("keypress"+C,function(t){var n,n,t;t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key||(n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),t=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&t&&t.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})))})),t=n=void 0,(n=!d||(t=j&&p.getFormula(d.row,d.col))?n:l.mask)&&n.pattern&&"="===n.pattern[0]){e=p.Lp,i=p.Uw(3),r=0<=d.row?d.row:0,a=0<=d.col?d.col:0;try{u=e.evaluate(i,n.pattern,r,a),n.pattern="object"==typeof u?"":""+u}catch(t){n.pattern=""}}e={editor:w,ns:C,mask:n,text:K(w)},R.Base.et(p,"activateEditor",e)}},o.prototype.deactivateEditor=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this;if(R.Base.et(n&&n.sheet,"deactivateEditor",{editor:t}),t&&n&&n.sheet){if(i=n.sheet,e.Ni&>&&i.Oi)try{(0,E.GC$)(t).trigger("compositionend"+C)}catch(t){}if(r=i.getActualStyle(n.row,n.col,n.sheetArea).cellPadding)for(o=[P,at],a=[3,0],u=0;ut.width&&(A=e.width=t.width-e.x,a.width=t.width-a.x),d.css(U,A-y).css(H,e.height-x),c.options.rightToLeft?h.maxWidth=l.left+t.BA-e.x-y-C:h.maxWidth=l.left+t.width-e.x-y-C,d.css("max-width",h.maxWidth+"px"),h.maxHeight=l.top+t.height-e.y-x-S,h.minWidth=Q(h.style.width,10),h.minHeight=Q(h.style.height,10)),a=Rt(h),A=Lt(h),l=(o=(o=o&&i&&i.keyCode&&c.rt.Pi(i)&&0===a&&A===g.length)||c.Ai)&&!n.mask?"":g,w=(w=h.style.font)||v._n(v.Nn()),t=tt(w),i&&f.probabilityAddPercent&&(e=i.key)&&-1!==L.NUMBER_ARRAY.indexOf(e)&&(c.parent.options.enableFormulaTextbox?(v=h.innerText,/[a-z]/i.test(v)?f.probabilityAddPercent=!1:((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.appendChild(I),delete f.probabilityAddPercent)):((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.firstChild.appendChild(I),delete f.probabilityAddPercent)),!o&&i&&(e=c.parent,c.rt.Pi(i)&&8!==i.keyCode&&F(e.contextMenu.menuView.getHost())&&(l=Yt(h,l,a,A,i)),f.Ni)&&(l=B?g:f.Ei+i.data),N=[],j=k=void 0,D=(N=n&&(n.wordWrap||5===p)?X.un(l,Q(h.style.width)-y,w):l.split(/\r\n|\r|\n/)).length,h.minWidth=W(h.minWidth,h.maxWidth),h.minHeight=W(h.minHeight,h.maxHeight),n&&(n.wordWrap||5===p)||0h.minWidth&&_<=h.maxWidth&&!r?(d.css(U,_).css(V,Z).css(Y,z),m&&d.css(ht,Z)):_>h.maxWidth&&!r&&(d.css(U,h.maxWidth-2).css(V,ct).css(Y,z),v=nn(O,h.maxWidth,t,I)):a<_&&!r&&(v=nn(O,a,t,I))}v<=h.minHeight?d.css(H,h.minHeight).css(dt,G):v>h.minHeight&&v<=h.maxHeight?d.css(H,v).css(dt,G):v>h.maxHeight&&d.css(H,h.maxHeight-1).css(ft,lt).css(dt,P)}return b=d.css(ut),A=d.width()-h.minWidth,F(b)||b===P||(b===ot?d.css(P,h.originalLeft-A/2):b===rt&&d.css(P,h.originalLeft-A)),n&&m&&(1===(g=n.vAlign)?d.css(st,"middle"):2===g&&d.css(st,"bottom")),f=Q(h.style.height)+x+M+S,i=y+T+C,d.css(ft)===lt?{width:h.offsetWidth+i,height:o?0:f}:{width:Q(h.style.width)+i,height:f}}},o.prototype.updateEditor=function(t,n,e,i,r,o,a){var n,i,u;return e=this.Bi(t,n,e,I,i,!1,r,o,a),B&&t&&(i=(n=(0,E.GC$)(t))[0].style.width,n.width(i+1).width(i)),u=!F(e)&&t?new L.Rect(t.style.left?parseFloat(t.style.left):0,t.style.top?parseFloat(t.style.top):0,e.width,e.height):u},o.prototype.fi=function(t,n,e,i,r,o,a,u,s){var i,o;e=this.Bi(t,n,e,i,r,o,a,u,s),B&&t&&(o=(i=(0,E.GC$)(t))[0].style.width,i.width(o+1).width(o)),!F(e)&&t&&(F(a)?a=e:(a.x=N,a.y=N),this.updateEditorContainer(t,e,n,r,a,u,s))},o.prototype.updateEditorContainer=function(t,n,e,i,r,o,a){var u,u,s;i&&i.preventOverflow?(Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a),(u=t.parentNode)&&n&&(u=(0,E.GC$)(u),0<(s=n.width))&&u.width(s)):(n&&n.width&&r&&r.width&&(r.width=n.width),n&&n.height&&r&&r.height&&(r.height=n.height),Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a))},o.prototype.updateImeMode=function(t,n,e){this.isImeAware()&&t&&R.Context.hn(t,n)},o.prototype.isReservedKey=function(t,n){var e=t.srcElement||t.target,i=t.keyCode,r=t.ctrlKey,o=t.altKey,a=t.metaKey;return!!(e&&n&&n.isEditing&&e.getAttribute(M)===S)&&(13===i&&(r&&!t.shiftKey||o)||90===i&&r&&!o||89===i&&r&&!o||67===i&&(r||a)&&!o||88===i&&(r||a)&&!o)},o.prototype.isImeAware=function(t){return!0},o.prototype.toJSON=function(){var t,n,e,t={},n=this;for(e in n)n.hasOwnProperty(e)&&"_editingElement"!==e&&(t[e]=n[e]);return t},o.prototype.lfe=function(t,n){var n={eventName:n,eventArg:t};return R.Base.et(t.sheet,"onCreateEventArg",n),n.eventArg},t.TextCellType=e=o,t.Text=e,l.ti[1]=e},"./dist/core/core.definition.js":function(){},"./dist/core/core.entry.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,s,f,r,l,h;function d(t,n){return a._Ae(t,n)}i=this&&this.__createBinding||(Object.create?function(t,n,e,i){void 0===i&&(i=e);var r=Object.getOwnPropertyDescriptor(n,e);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,i,r)}:function(t,n,e,i){t[i=void 0===i?e:i]=n[e]}),r=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||i(n,t,e)},Object.defineProperty(n,"__esModule",{value:!0}),n.Aoe=n._Ae=n.CellTypes=n.xHe=n.isPrintZoomFactorExist=n.paintDecoration=n.cellTypeContext_paintBackground=void 0,e("./dist/core/core.res.en.js"),o=e("./dist/core/util/common.js"),Object.defineProperty(n,"getTypeFromString",{set:function(t){o.getTypeFromString=t},get:function(){return o.getTypeFromString}}),r(e("./dist/core/core.ns.js"),n),r(e("./dist/core/core.interface.js"),n),r(e("./dist/core/core.enum.js"),n),r(e("./dist/core/util/common.js"),n),r(e("./dist/core/excel-io-util/common.js"),n),r(e("./dist/core/excel-io-util/excel-types.js"),n),r(e("./dist/core/excel-io-util/range-parser.js"),n),r(e("./dist/core/excel-io-util/excel-helper.js"),n),r(e("./dist/core/excel-io-util/excel-style.js"),n),r(e("./dist/core/util/domUtil.js"),n),e("./dist/core/core.definition.js"),s=-1,1===(u=(a=e("./dist/core/lc/releaseLc.js"))._pt)&&(s=Math.floor(5*Math.random()),n["G".concat("C","$")]["s".concat("d")]=s),r(e("./dist/core/util/theme.js"),n),r(e("./dist/core/util/basedialog.js"),n),r(e("./dist/core/util/imageLoader.js"),n),r(e("./dist/core/util/tasks.js"),n),r(e("./dist/core/util/crypto.js"),n),r(e("./dist/core/util/dataManager.js"),n),r(e("./dist/core/util/custom-list.js"),n),0===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/stylehelper.js"),n),1===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/style.js"),n),2===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/clipboardhelper.js"),n),3===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet-model.js"),n),4===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet.js"),n),r(e("./dist/core/worksheet/worksheet-formatter.js"),n),r(e("./dist/core/worksheet/worksheet-actions.js"),n),r(e("./dist/core/worksheet/worksheet-border.js"),n),e("./dist/core/worksheet/worksheet-edit.js"),r(e("./dist/core/worksheet/worksheet-event.js"),n),e("./dist/core/worksheet/worksheet-json.js"),r(e("./dist/core/worksheet/worksheet-render.js"),n),e("./dist/core/worksheet/worksheet-selection.js"),e("./dist/core/worksheet/worksheet-sort.js"),r(e("./dist/core/worksheet/worksheet-ui.js"),n),r(e("./dist/core/worksheet/worksheet-static.js"),n),r(e("./dist/core/worksheet/worksheet-clipboard.js"),n),(0,(c=e("./dist/core/worksheet/feature-registers/index.js")).registerWorkbookFeatures)(),r(e("./dist/core/workbook/workbook.js"),n),r(e("./dist/core/workbook/workbook-json.js"),n),r(e("./dist/core/workbook/sheettabbase.js"),n),r(e("./dist/core/workbook/sheettab.js"),n),r(e("./dist/core/workbook/sheettab2007.js"),n),r(e("./dist/core/workbook/workbookpanelex.js"),n),r(e("./dist/core/workbook/customThemeManager.js"),n),r(e("./dist/core/worksheet/attachmentManager/index.js"),n),r(e("./dist/core/util/styleManager.js"),n),s=e("./dist/core/celltype/cellType.entry.js"),n.CellTypes=s,f=e("./dist/core/celltype/basecelltype.js"),Object.defineProperty(n,"cellTypeContext_paintBackground",{enumerable:!0,get:function(){return f.cellTypeContext_paintBackground}}),Object.defineProperty(n,"paintDecoration",{enumerable:!0,get:function(){return f.paintDecoration}}),Object.defineProperty(n,"isPrintZoomFactorExist",{enumerable:!0,get:function(){return f.isPrintZoomFactorExist}}),r=e("./dist/core/celltype/headercelltype.js"),l=e("./dist/core/celltype/textcelltype.js"),h=e("./dist/core/celltype/textcelltype.js"),Object.defineProperty(n,"xHe",{enumerable:!0,get:function(){return h.xHe}}),s.Hi=r,s.zi=l,1!==u&&2!==u||a.Vi(n),n._Ae=d,n.Aoe=a.Aoe},"./dist/core/core.enum.js":function(L,t){"use strict";var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,F,B,P,G,U,H,z,V,Y,Z,W,Q,E,J,K,X,q,$,tt,nt,et,it,rt,ot,at,ut,st,ct,ft,lt,ht,dt,vt,gt,mt,pt,bt,wt,yt,Mt,Ct,St,Tt,xt,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R;Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionAlignment=t.IconPosition=t.ButtonPosition=t.DropDownType=t.ButtonImageType=t.ButtonVisibility=t.RowColumnStates=t.CellStatesType=t.SortState=t.SheetArea=t.VerticalPosition=t.HorizontalPosition=t.Yi=t.ImageLayout=t.ValueType=t.RangeChangedAction=t.HeaderAutoText=t.StorageType=t.SelectionUnit=t.SelectionPolicy=t.ImeMode=t.EditorStatus=t.VisualState=t.Zi=t.VertAlign=t.VerticalAlign=t.HorizontalAlign=t.TextDirectionType=t.TextDecorationType=t.LabelVisibility=t.LabelAlignment=t.PasteOperationOptions=t.CopyToOptions=t.ClipboardPasteOptions=t.AutoFitType=t.InvalidOperationType=t.ResizeZeroIndicator=t.HeaderOptions=t.CalculationType=t.CalculationMode=t.CopyPasteHeaderOptions=t.ResizeMode=t.InsertShiftCell=t.ShowScrollTip=t.ScrollbarAppearance=t.ShowResizeTip=t.WorksheetType=t.ScrollbarState=t.AxisInfoChangeType=t.ScrollType=void 0,t.AllowDragHeaderToMove=t.ListType=t.SheetTabState=t.DefaultChangeValueType=t.ClipboardActionType=t.OpenMode=t.OpenSaveFileType=t.FileType=t.TableStyleElement=t.SortBy=t.UsedRangeType=t.ColumnHeaderFitMode=t.AllSheetsListVisibility=t.SheetTabVisible=t.SheetType=t.HyperlinkTargetType=t.TabStripPosition=t.NumbersFitMode=t.PatternType=t.DropDownAlignment=t.DropDownDirection=t.DropdownListValue=t.GroupSort=t.CalendarStartDay=t.CalendarPage=t.LayoutDisplayAs=t.LayoutDirection=void 0,(E=n=t.ScrollType||(t.ScrollType={}))[E.pixels=0]="pixels",E[E.continuous=1]="continuous",(E=e=t.AxisInfoChangeType||(t.AxisInfoChangeType={}))[E.setRowCount=0]="setRowCount",E[E.setColumnCount=1]="setColumnCount",E[E.addRows=2]="addRows",E[E.deleteRows=3]="deleteRows",E[E.addColumns=4]="addColumns",E[E.deleteColumns=5]="deleteColumns",E[E.setRowHeight=6]="setRowHeight",E[E.setColumnWidth=7]="setColumnWidth",E[E.setRowVisible=8]="setRowVisible",E[E.setColumnVisible=9]="setColumnVisible",E[E.filterRows=10]="filterRows",E[E.outlineExpandRows=11]="outlineExpandRows",E[E.outlineExpandColumns=12]="outlineExpandColumns",(E=i=t.ScrollbarState||(t.ScrollbarState={}))[E.hide=0]="hide",E[E.show=1]="show",E[E.active=2]="active",E[E.inactive=3]="inactive",(E=r=t.WorksheetType||(t.WorksheetType={}))[E.worksheet=0]="worksheet",E[E.reportTemplateSheet=1]="reportTemplateSheet",(E=o=t.ShowResizeTip||(t.ShowResizeTip={}))[E.none=0]="none",E[E.column=1]="column",E[E.row=2]="row",E[E.both=3]="both",(E=a=t.ScrollbarAppearance||(t.ScrollbarAppearance={}))[E.skin=0]="skin",E[E.mobile=1]="mobile",(E=u=t.ShowScrollTip||(t.ShowScrollTip={}))[E.none=0]="none",E[E.horizontal=1]="horizontal",E[E.vertical=2]="vertical",E[E.both=3]="both",(E=s=t.InsertShiftCell||(t.InsertShiftCell={}))[E.right=0]="right",E[E.down=1]="down",(E=c=t.ResizeMode||(t.ResizeMode={}))[E.normal=0]="normal",E[E.split=1]="split",(E=f=t.CopyPasteHeaderOptions||(t.CopyPasteHeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=l=t.CalculationMode||(t.CalculationMode={}))[E.auto=0]="auto",E[E.manual=1]="manual",(E=h=t.CalculationType||(t.CalculationType={}))[E.all=0]="all",E[E.rebuild=1]="rebuild",E[E.minimal=2]="minimal",E[E.regular=3]="regular",(E=d=t.HeaderOptions||(t.HeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=v=t.ResizeZeroIndicator||(t.ResizeZeroIndicator={}))[E.default=0]="default",E[E.enhanced=1]="enhanced",(E=g=t.InvalidOperationType||(t.InvalidOperationType={}))[E.setFormula=0]="setFormula",E[E.copyPaste=1]="copyPaste",E[E.dragFill=2]="dragFill",E[E.dragDrop=3]="dragDrop",E[E.changePartOfArrayFormula=4]="changePartOfArrayFormula",E[E.changeSheetName=5]="changeSheetName",E[E.table=6]="table",E[E.filter=7]="filter",E[E.hideSheet=8]="hideSheet",E[E.sort=9]="sort",E[E.pivotTable=10]="pivotTable",E[E.ptOverlapValue=11]="ptOverlapValue",E[E.groupProtected=12]="groupProtected",E[E.editProtected=13]="editProtected",E[E.cutProtected=14]="cutProtected",E[E.customName=15]="customName",E[E.dataObjectCellTypeInsertData=16]="dataObjectCellTypeInsertData",E[E.reportSheet=17]="reportSheet",E[E.sizeLimitExceeded=18]="sizeLimitExceeded",(E=m=t.AutoFitType||(t.AutoFitType={}))[E.cell=0]="cell",E[E.cellWithHeader=1]="cellWithHeader",(E=p=t.ClipboardPasteOptions||(t.ClipboardPasteOptions={}))[E.all=0]="all",E[E.values=1]="values",E[E.formatting=2]="formatting",E[E.formulas=3]="formulas",E[E.valuesAndFormatting=4]="valuesAndFormatting",E[E.formulasAndFormatting=5]="formulasAndFormatting",E[E.comments=6]="comments",E[E.validation=7]="validation",E[E.usingSourceTheme=8]="usingSourceTheme",E[E.noBorder=9]="noBorder",E[E.columnWidths=10]="columnWidths",E[E.formulasAndNumberFormatting=11]="formulasAndNumberFormatting",E[E.valuesAndNumberFormatting=12]="valuesAndNumberFormatting",E[E.valuesAndSourceFormatting=13]="valuesAndSourceFormatting",E[E.allAndColumnWidth=14]="allAndColumnWidth",(E=b=t.CopyToOptions||(t.CopyToOptions={}))[E.value=1]="value",E[E.formula=2]="formula",E[E.comment=4]="comment",E[E.outline=8]="outline",E[E.sparkline=16]="sparkline",E[E.span=32]="span",E[E.style=64]="style",E[E.tag=128]="tag",E[E.bindingPath=256]="bindingPath",E[E.conditionalFormat=512]="conditionalFormat",E[E.hyperlink=1024]="hyperlink",E[E.defaultValue=2048]="defaultValue",E[E.altText=4096]="altText",E[E.all=8191]="all",(E=w=t.PasteOperationOptions||(t.PasteOperationOptions={}))[E.none=0]="none",E[E.add=1]="add",E[E.subtract=2]="subtract",E[E.multiply=3]="multiply",E[E.divide=4]="divide",(E=y=t.LabelAlignment||(t.LabelAlignment={}))[E.topLeft=0]="topLeft",E[E.topCenter=1]="topCenter",E[E.topRight=2]="topRight",E[E.bottomLeft=3]="bottomLeft",E[E.bottomCenter=4]="bottomCenter",E[E.bottomRight=5]="bottomRight",(E=M=t.LabelVisibility||(t.LabelVisibility={}))[E.visible=0]="visible",E[E.hidden=1]="hidden",E[E.auto=2]="auto",(E=C=t.TextDecorationType||(t.TextDecorationType={}))[E.underline=1]="underline",E[E.lineThrough=2]="lineThrough",E[E.overline=4]="overline",E[E.doubleUnderline=8]="doubleUnderline",E[E.none=0]="none",(E=S=t.TextDirectionType||(t.TextDirectionType={}))[E.context=0]="context",E[E.leftToRight=1]="leftToRight",E[E.rightToLeft=2]="rightToLeft",(E=T=t.HorizontalAlign||(t.HorizontalAlign={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.general=3]="general",E[E.centerContinuous=4]="centerContinuous",E[E.distributed=5]="distributed",(E=x=t.VerticalAlign||(t.VerticalAlign={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",(E=A=t.VertAlign||(t.VertAlign={}))[E.normal=0]="normal",E[E.superscript=1]="superscript",E[E.subscript=2]="subscript",(E=I=t.Zi||(t.Zi={}))[E.smallDecrement=0]="smallDecrement",E[E.smallIncrement=1]="smallIncrement",E[E.largeDecrement=2]="largeDecrement",E[E.largeIncrement=3]="largeIncrement",E[E.thumbPosition=4]="thumbPosition",E[E.thumbTrack=5]="thumbTrack",E[E.endScroll=6]="endScroll",(E=N=t.VisualState||(t.VisualState={}))[E.normal=0]="normal",E[E.highlight=1]="highlight",E[E.selected=2]="selected",E[E.active=3]="active",E[E.hover=4]="hover",E[E.activeNotSelected=5]="activeNotSelected",(E=k=t.EditorStatus||(t.EditorStatus={}))[E.ready=0]="ready",E[E.enter=1]="enter",E[E.edit=2]="edit",(E=j=t.ImeMode||(t.ImeMode={}))[E.auto=1]="auto",E[E.active=2]="active",E[E.inactive=4]="inactive",E[E.disabled=0]="disabled",(E=D=t.SelectionPolicy||(t.SelectionPolicy={}))[E.single=0]="single",E[E.range=1]="range",E[E.multiRange=2]="multiRange",(E=_=t.SelectionUnit||(t.SelectionUnit={}))[E.cell=0]="cell",E[E.row=1]="row",E[E.column=2]="column",(E=O=t.StorageType||(t.StorageType={}))[E.data=1]="data",E[E.style=2]="style",E[E.comment=4]="comment",E[E.tag=8]="tag",E[E.sparkline=16]="sparkline",E[E.axis=32]="axis",E[E.bindingPath=64]="bindingPath",E[E.hyperlink=256]="hyperlink",E[E.altText=512]="altText",(E=F=t.HeaderAutoText||(t.HeaderAutoText={}))[E.blank=0]="blank",E[E.numbers=1]="numbers",E[E.letters=2]="letters",(E=B=t.RangeChangedAction||(t.RangeChangedAction={}))[E.dragDrop=0]="dragDrop",E[E.dragFill=1]="dragFill",E[E.clear=2]="clear",E[E.paste=3]="paste",E[E.sort=4]="sort",E[E.setArrayFormula=5]="setArrayFormula",E[E.evaluateFormula=6]="evaluateFormula",(E=P=t.ValueType||(t.ValueType={}))[E.normal=0]="normal",E[E.richText=1]="richText",(E=G=t.ImageLayout||(t.ImageLayout={}))[E.stretch=0]="stretch",E[E.center=1]="center",E[E.zoom=2]="zoom",E[E.none=3]="none",(E=U=t.Yi||(t.Yi={})).ThumbButton="thumbButton",E.TrackButton="trackButton",E.LeftButton="leftButton",E.RightButton="rightButton",E.UpButton="upButton",E.DownButton="downButton",(E=H=t.HorizontalPosition||(t.HorizontalPosition={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.nearest=3]="nearest",(E=z=t.VerticalPosition||(t.VerticalPosition={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",E[E.nearest=3]="nearest",(E=V=t.SheetArea||(t.SheetArea={}))[E.corner=0]="corner",E[E.colHeader=1]="colHeader",E[E.rowHeader=2]="rowHeader",E[E.viewport=3]="viewport",(E=Y=t.SortState||(t.SortState={}))[E.none=0]="none",E[E.ascending=1]="ascending",E[E.descending=2]="descending",(E=Z=t.CellStatesType||(t.CellStatesType={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.readonly=4]="readonly",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.invalidFormula=128]="invalidFormula",(E=W=t.RowColumnStates||(t.RowColumnStates={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.inserted=128]="inserted",E[E.invalidFormula=512]="invalidFormula",(E=Q=t.ButtonVisibility||(t.ButtonVisibility={}))[E.always=0]="always",E[E.onSelected=1]="onSelected",E[E.onEditing=2]="onEditing",(R=E=t.ButtonImageType||(t.ButtonImageType={}))[R.none=0]="none",R[R.custom=1]="custom",R[R.clear=2]="clear",R[R.cancel=3]="cancel",R[R.ok=4]="ok",R[R.dropdown=5]="dropdown",R[R.ellipsis=6]="ellipsis",R[R.left=7]="left",R[R.right=8]="right",R[R.plus=9]="plus",R[R.minus=10]="minus",R[R.undo=11]="undo",R[R.redo=12]="redo",R[R.search=13]="search",R[R.separator=14]="separator",R[R.spinLeft=15]="spinLeft",R[R.spinRight=16]="spinRight",R[R.collapse=17]="collapse",R[R.expand=18]="expand",E.calcel=E.cancel,(R=J=t.DropDownType||(t.DropDownType={}))[R.colorPicker=0]="colorPicker",R[R.dateTimePicker=1]="dateTimePicker",R[R.timePicker=2]="timePicker",R[R.monthPicker=3]="monthPicker",R[R.list=4]="list",R[R.slider=5]="slider",R[R.calculator=6]="calculator",R[R.workflowList=7]="workflowList",R[R.multiColumn=8]="multiColumn",(E=K=t.ButtonPosition||(t.ButtonPosition={}))[E.left=0]="left",E[E.right=1]="right",E[E.leftOfText=2]="leftOfText",E[E.rightOfText=3]="rightOfText",(R=X=t.IconPosition||(t.IconPosition={}))[R.left=0]="left",R[R.right=1]="right",R[R.leftOfText=2]="leftOfText",R[R.rightOfText=3]="rightOfText",R[R.outsideLeft=4]="outsideLeft",R[R.outsideRight=5]="outsideRight",(E=q=t.CaptionAlignment||(t.CaptionAlignment={}))[E.left=0]="left",E[E.right=1]="right",(R=$=t.LayoutDirection||(t.LayoutDirection={}))[R.horizontal=0]="horizontal",R[R.vertical=1]="vertical",(E=tt=t.LayoutDisplayAs||(t.LayoutDisplayAs={}))[E.inline=0]="inline",E[E.popup=1]="popup",E[E.tree=2]="tree",(R=nt=t.CalendarPage||(t.CalendarPage={}))[R.year=1]="year",R[R.month=2]="month",R[R.day=3]="day",(E=et=t.CalendarStartDay||(t.CalendarStartDay={}))[E.monday=1]="monday",E[E.tuesday=2]="tuesday",E[E.wednesday=3]="wednesday",E[E.thursday=4]="thursday",E[E.friday=5]="friday",E[E.saturday=6]="saturday",E[E.sunday=7]="sunday",(R=it=t.GroupSort||(t.GroupSort={}))[R.none=0]="none",R[R.group=1]="group",R[R.child=2]="child",R[R.full=3]="full",(E=rt=t.DropdownListValue||(t.DropdownListValue={}))[E.string=0]="string",E[E.array=1]="array",(R=ot=t.DropDownDirection||(t.DropDownDirection={}))[R.Down=0]="Down",R[R.Up=1]="Up",R[R.Left=2]="Left",R[R.Right=3]="Right",(E=at=t.DropDownAlignment||(t.DropDownAlignment={}))[E.Near=0]="Near",E[E.Center=1]="Center",E[E.Far=2]="Far",(R=ut=t.PatternType||(t.PatternType={}))[R.solid=1]="solid",R[R.darkGray=2]="darkGray",R[R.mediumGray=3]="mediumGray",R[R.lightGray=4]="lightGray",R[R.gray125=5]="gray125",R[R.gray0625=6]="gray0625",R[R.darkHorizontal=7]="darkHorizontal",R[R.darkVertical=8]="darkVertical",R[R.darkDown=9]="darkDown",R[R.darkUp=10]="darkUp",R[R.darkGrid=11]="darkGrid",R[R.darkTrellis=12]="darkTrellis",R[R.lightHorizontal=13]="lightHorizontal",R[R.lightVertical=14]="lightVertical",R[R.lightDown=15]="lightDown",R[R.lightUp=16]="lightUp",R[R.lightGrid=17]="lightGrid",R[R.lightTrellis=18]="lightTrellis",(E=st=t.NumbersFitMode||(t.NumbersFitMode={}))[E.mask=0]="mask",E[E.overflow=1]="overflow",(R=ct=t.TabStripPosition||(t.TabStripPosition={}))[R.bottom=0]="bottom",R[R.top=1]="top",R[R.left=2]="left",R[R.right=3]="right",(E=ft=t.HyperlinkTargetType||(t.HyperlinkTargetType={}))[E.blank=0]="blank",E[E.self=1]="self",E[E.parent=2]="parent",E[E.top=3]="top",(R=lt=t.SheetType||(t.SheetType={}))[R.tableSheet=0]="tableSheet",R[R.ganttSheet=1]="ganttSheet",R[R.customSheetTab=2]="customSheetTab",R[R.reportSheet=3]="reportSheet",R[R.printSheet=9007199254740991]="printSheet",(E=ht=t.SheetTabVisible||(t.SheetTabVisible={}))[E.hidden=0]="hidden",E[E.visible=1]="visible",E[E.veryHidden=2]="veryHidden",(R=dt=t.AllSheetsListVisibility||(t.AllSheetsListVisibility={}))[R.hide=0]="hide",R[R.show=1]="show",R[R.auto=2]="auto",(E=vt=t.ColumnHeaderFitMode||(t.ColumnHeaderFitMode={}))[E.normal=0]="normal",E[E.vertical=1]="vertical",E[E.stack=2]="stack",(R=gt=t.UsedRangeType||(t.UsedRangeType={}))[R.all=262143]="all",R[R.axis=1]="axis",R[R.style=2]="style",R[R.rowStyle=4]="rowStyle",R[R.colStyle=8]="colStyle",R[R.data=16]="data",R[R.formula=32]="formula",R[R.span=64]="span",R[R.shape=128]="shape",R[R.table=256]="table",R[R.sparkLine=512]="sparkLine",R[R.comment=1024]="comment",R[R.slicer=2048]="slicer",R[R.pivottable=4096]="pivottable",R[R.filter=8192]="filter",R[R.dataValidation=16384]="dataValidation",R[R.conditionFormat=32768]="conditionFormat",R[R.chart=65536]="chart",R[R.picture=131072]="picture",(E=mt=t.SortBy||(t.SortBy={})).cellColor="cellColor",E.fontColor="fontColor",E.icon="icon",E.value="value",(R=pt=t.TableStyleElement||(t.TableStyleElement={})).wholeTable="wholeTable",R.firstColumnStripe="firstColumnStripe",R.secondColumnStripe="secondColumnStripe",R.firstRowStripe="firstRowStripe",R.secondRowStripe="secondRowStripe",R.lastColumn="lastColumn",R.firstColumn="firstColumn",R.headerRow="headerRow",R.totalRow="totalRow",R.firstHeaderCell="firstHeaderCell",R.lastHeaderCell="lastHeaderCell",R.firstTotalCell="firstTotalCell",R.lastTotalCell="lastTotalCell",(E=bt=t.FileType||(t.FileType={}))[E.excel=0]="excel",E[E.ssjson=1]="ssjson",E[E.csv=2]="csv",(R=wt=t.OpenSaveFileType||(t.OpenSaveFileType={}))[R.excel=0]="excel",R[R.sjs=1]="sjs",(E=yt=t.OpenMode||(t.OpenMode={}))[E.normal=0]="normal",E[E.lazy=1]="lazy",E[E.incremental=2]="incremental",(R=Mt=t.ClipboardActionType||(t.ClipboardActionType={}))[R.copy=1]="copy",R[R.cut=2]="cut",R[R.reset=3]="reset",(E=Ct=t.DefaultChangeValueType||(t.DefaultChangeValueType={})).Expression="expr",E.Value="value",(R=St=t.SheetTabState||(t.SheetTabState={}))[R.hover=1]="hover",R[R.selected=2]="selected",R[R.active=4]="active",R[R.protected=8]="protected",R[R.normal=16]="normal",(E=Tt=t.ListType||(t.ListType={}))[E.disc=0]="disc",E[E.circle=1]="circle",E[E.square=2]="square",E[E.decimal=3]="decimal",E[E.lowerAlpha=4]="lowerAlpha",E[E.upperAlpha=5]="upperAlpha",E[E.lowerRoman=6]="lowerRoman",E[E.upperRoman=7]="upperRoman",E[E.lowerGreek=8]="lowerGreek",(R=xt=t.AllowDragHeaderToMove||(t.AllowDragHeaderToMove={}))[R.none=0]="none",R[R.column=1]="column",R[R.row=2]="row",R[R.both=3]="both"},"./dist/core/core.interface.js":function(t,n){"use strict";var e,n;Object.defineProperty(n,"__esModule",{value:!0}),n.CornerPosition=void 0,(n=e=n.CornerPosition||(n.CornerPosition={}))[n.leftTop=1]="leftTop",n[n.rightTop=2]="rightTop",n[n.leftBottom=4]="leftBottom",n[n.rightBottom=8]="rightBottom"},"./dist/core/core.ns.js":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SR=void 0;var e=e("./dist/core/core.res.en.js");n.SR={en:e}},"./dist/core/core.res.en.js":function(t,n,e){"use strict";var i,r;for(r in Object.defineProperty(n,"__esModule",{value:!0}),n.ARIA_Cell=n.ARIA_Scrollbar_TRACK_Button=n.ARIA_Scrollbar_Bottom_Button=n.ARIA_Scrollbar_Right_Button=n.ARIA_Scrollbar_Thumb_Button=n.ARIA_Scrollbar_Top_Button=n.ARIA_Scrollbar_Left_Button=n.ARIA_Blank=n.ARIA_NewSheet=n.ARIA_SheetTab=n.ARIA_NextButton=n.ARIA_PreviousButton=n.ARIA_Last=n.ARIA_NextArrow=n.ARIA_PreviousArrow=n.ARIA_First=n.ARIA_Resize=n.NeedCanvasSupport=n.Exp_OverlappingSpans=n.Exp_SheetIsNull=n.Exp_DestSheetIsNull=n.Exp_ArrayFormulaSpan=n.Exp_SheetNameConflict=n.Exp_SheetNameInvalid=n.Exp_EmptyNamedStyle=n.NewTab=n.Tip_Width=n.Tip_Height=n.Tip_Column_Offset=n.Tip_Column=n.Tip_Row=n.Exp_PasteChangeMergeCell=n.Exp_PasteDestinationCellsLocked=n.Exp_InvalidCopyPasteSize=n.Exp_PasteSourceCellsLocked=n.Exp_ArgumentOutOfRange=n.Exp_NotAFunction=n.Exp_InvalidRange=n.Exp_IndexOutOfRange=n.Exp_CustomNameBothInUse=n.Exp_InvalidCustomName=n.Exp_InvalidCustomFunction=n.Exp_DestIsNull=n.Exp_SrcIsNull=n.Exp_InvalidAndSpace=n.Exp_ChangePartOfArray=n.Exp_MultipleSelections=n.Exp_InvalidPastedArea=n.Exp_PasteExtentIsNull=n.Exp_NotSupported=void 0,n.cancel=n.ok=n.pasteSpecialOptionDialog=n.STEP=n.Exp_InvalidOperationSizeLimitExceeded=n.EXP_UNSUPPORT_CRYPTO_ALGORITHM=n.GENERAL=n.NORMAL=n.EXP_INVALID_PASSWORD=n.EXP_NO_PASSWORD=n.EXP_FILE_FORMAT=n.EXP_IO=n.Exp_InvalidOperationInProtect=n.Exp_InvalidSortPartTableOrMultiTableInRange=n.Exp_InvalidSortSpanInRange=n.Exp_InvalidSortArrayFormulaInRange=n.Exp_InsertCopiedCutCellsAffectTable=n.Exp_InsertCopiedCutCellsOverlap=n.Exp_InsertCopiedCutCellsNoRange=n.Exp_InsertCopiedCutCellsOnSpanTable=n.Exp_InsertCopiedCutCells=n.REPORT_SUMMARY=n.SHEET_NAME=n.ARIA_ColumnHeader=n.ARIA_RowHeader=n.ARIA_HasComment=n.ARIA_HasHyperlink=n.ARIA_HasButton=n.ARIA_HasCheckbox=n.ARIA_HasFormula=n.ARIA_HasValue=void 0,n.Exp_NotSupported="Not supported exception",n.Exp_PasteExtentIsNull="pasteExtent is null",n.Exp_InvalidPastedArea="The pasted area should have the same size as the copy or cut area.",n.Exp_MultipleSelections="This action won't work on multiple selections.",n.Exp_ChangePartOfArray="Cannot change part of an array.",n.Exp_InvalidAndSpace="Invalid {0}: {1} (must be between {2} and {3}).",n.Exp_SrcIsNull="The argument 'src' is null",n.Exp_DestIsNull="The argument 'dest' is null",n.Exp_InvalidCustomFunction="invalid custom function",n.Exp_InvalidCustomName="invalid custom name",n.Exp_CustomNameBothInUse="Both the current name and new name are referenced in cell formulas",n.Exp_IndexOutOfRange="Index is out of range!",n.Exp_InvalidRange="Invalid range",n.Exp_NotAFunction="Not A Function",n.Exp_ArgumentOutOfRange="ArgumentOutOfRange",n.Exp_PasteSourceCellsLocked="Source sheet's cells are locked.",n.Exp_InvalidCopyPasteSize="The copy and paste areas are not the same size.",n.Exp_PasteDestinationCellsLocked="The cell you are trying to change is protected and therefore read-only.",n.Exp_PasteChangeMergeCell="Cannot change part of a merged cell.",n.Tip_Row="Row: ",n.Tip_Column="Column: ",n.Tip_Column_Offset="Offset: ",n.Tip_Height="Height: {0} pixels",n.Tip_Width="Width: {0} pixels",n.NewTab="New...",n.Exp_EmptyNamedStyle="The name of named style cannot be empty or null",n.Exp_SheetNameInvalid="The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",n.Exp_SheetNameConflict="That name is already taken. Try a different one.",n.Exp_ArrayFormulaSpan="Array formulas are not valid in merged cells.",n.Exp_DestSheetIsNull="destSheet is null",n.Exp_SheetIsNull="sheet is null.",n.Exp_OverlappingSpans="This operation will cause overlapping spans.",n.NeedCanvasSupport="You need a browser which full supports HTML5 Canvas to run SpreadJS",n.ARIA_Resize="resize",n.ARIA_First="first",n.ARIA_PreviousArrow="previous arrow",n.ARIA_NextArrow="next arrow",n.ARIA_Last="last",n.ARIA_PreviousButton="previous button",n.ARIA_NextButton="next button",n.ARIA_SheetTab="sheet tab",n.ARIA_NewSheet="new sheet",n.ARIA_Blank="blank",n.ARIA_Scrollbar_Left_Button="scrollbar left button",n.ARIA_Scrollbar_Top_Button="scrollbar top button",n.ARIA_Scrollbar_Thumb_Button="scrollbar thumb button",n.ARIA_Scrollbar_Right_Button="scrollbar right button",n.ARIA_Scrollbar_Bottom_Button="scrollbar bottom button",n.ARIA_Scrollbar_TRACK_Button="scrollbar track button",n.ARIA_Cell="cell",n.ARIA_HasValue="has value {0}",n.ARIA_HasFormula="has formula {0}",n.ARIA_HasCheckbox="has checkbox {0}",n.ARIA_HasButton="has button {0}",n.ARIA_HasHyperlink="has hyperlink {0}",n.ARIA_HasComment="has comment {0}",n.ARIA_RowHeader="row header",n.ARIA_ColumnHeader="column header",n.SHEET_NAME="Sheet",n.REPORT_SUMMARY="Sum",i=e("./dist/core/lc/lr.en.js"))i.hasOwnProperty(r)&&(n[r]=i[r]);n.Exp_InsertCopiedCutCells="This selection is not valid. The copy/paste area must be the same size",n.Exp_InsertCopiedCutCellsOnSpanTable="This won\u2019t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.",n.Exp_InsertCopiedCutCellsNoRange="New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.",n.Exp_InsertCopiedCutCellsOverlap="This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.",n.Exp_InsertCopiedCutCellsAffectTable="You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.",n.Exp_InvalidSortArrayFormulaInRange="Can't sort current range as array formula exist.",n.Exp_InvalidSortSpanInRange="Can't sort current range as span exist.",n.Exp_InvalidSortPartTableOrMultiTableInRange="Can't sort current range as part table or more than one table exist.",n.Exp_InvalidOperationInProtect="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.",n.EXP_IO="File read and write exception.",n.EXP_FILE_FORMAT="Incorrect file format.",n.EXP_NO_PASSWORD="The Excel file cannot be opened because the workbook/worksheet is password protected.",n.EXP_INVALID_PASSWORD="The specified password is incorrect.",n.NORMAL="Normal",n.GENERAL="General",n.EXP_UNSUPPORT_CRYPTO_ALGORITHM="Unsupported cryptographic algorithms",n.Exp_InvalidOperationSizeLimitExceeded="File size exceeds set limit the max size.",n.STEP={start:"start load {0}",loadFileData:"load {0}'s data to spread",loadSheetData:"load {0}'s data",startCalc:"start reCalc",loadSheetFormula:"load {0}'s formula",parseFile:"parse {0} content"},n.pasteSpecialOptionDialog={title:"Paste Special",paste:"Paste",pasteOptions:{all:"All",formulas:"Formulas",values:"Values",formats:"Formats",comments:"Comments",validation:"Validation",usingSourceTheme:"All using Source theme",noBorders:"All except borders",columnWidth:"Column widths",formulasAndNumberFormats:"Formulas and number formats",valueAndNumberFormats:"Value and number formats"},operation:"Operation",operationOptions:{none:"None",add:"Add",subtract:"Subtract",multiply:"Multiply",divide:"Divide"},skipBlanks:"Skip blanks",transpose:"Transpose",pasteLink:"Paste Link"},n.ok="OK",n.cancel="Cancel"},"./dist/core/excel-io-util/common.js":function(t,n,e){"use strict";var i,r,u,v,g,s,c,f,l,o,a,h,d,m,e,p,b,w,y,M,C;function S(){}function T(){}function x(){}function A(t,n){var n,n,e,n=n.toUpperCase(),n=p[n];return n?(e=m,(e=n.reg?n.prefix:m)+t):t}function I(n,t,e){var i,r,e,t,i,r=function(t){return n.getColumnWidth(t)},e=N(e,function(t){return n.getRowHeight(t)},n.getRowCount(),n.defaults.rowHeight),t=N(t,r,n.getColumnCount(),n.defaults.colWidth);return{rowIndex:e.index,rowOffset:e.offset,colIndex:t.index,colOffset:t.offset}}function N(t,n,e,i){for(var r,o,a,u,s,c,r=-1,o=-1,a=0,u=0;u=g.XmlConstants.Io||t>=g.XmlConstants.xo)||D.So(e,n,t,r)})},D.Uce=function(t){var n,e,i,r;function o(t,n){var t=parseInt(t.v_||0,10);return n?s.ExcelHelper.emuToPixles(t):t}return{row:n=o(t.row),col:e=o(t.col),rowOff:i=o(t.rowOff,!0),colOff:r=o(t.colOff,!0)}},D.Gce=function(t,n){var n,e,i,n=D.Uce(n),e,i;return{x:v.util.w0(t,0,n.col,!1)+n.colOff,y:v.util.w0(t,0,n.row,!0)+n.rowOff}},D.No=function(t){return t=Math.min(t,g.XmlConstants.xo-1),w.nr(t)},D.ko=function(t){return!t||f(t.fileType)||t.fileType===r.OpenSaveFileType.sjs},D.encodeNameFormula=function(t){if(t)return t.replace(/&/g,"&").replace(//g,">")},D.Oge=function(t,n){var n,e,i,r,o,a,t,n={n_:"definedName",c_:[D.addXLFNPrefix(D.encodeNameFormula(n))]},e=t.name,i=t.localSheetId,r=t.e,o=t.comment,a=t.isReadOnly,t=t.hidden;return f(e)||(n.name=v.util.vo(e)),f(i)||(n.localSheetId=i),f(r)||(n.e=r),f(o)||(n.comment=v.util.vo(o)),f(a)||(n.isReadOnly=a),f(t)||(n.hidden=t),n},M=D,n.Util=M,n.SJSStylePropsToStyleProps={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},n.protectionOptionsMap={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},n.excelSupportProtectionOptions={objects:!0,formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,selectLockedCells:!0,selectUnlockedCells:!0,sort:!0,autoFilter:!0,pivotTables:!0},_.builtInNumberFormat=function(){return 0===(_.Md=_.Md?_.Md:{count:0}).count&&_.initBuiltNumberFormat(),_.Md},_.languageIndepedentNumberFormat=function(){return 0===(_.Ch=_.Ch?_.Ch:{count:0}).count&&_.initLanguageIndepedentNumberFormat(),_.Ch},_.formatCodeTable=function(){return _.Sh=_.Sh?_.Sh:[]},_.customNumberFormat=function(){return _.Th=_.Th?_.Th:{count:0}},_.getCultureInfo=function(){var t,n,t=M.ro(),n;return t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&M.ro().GC.Spread.Common.CultureManager.getCultureInfo()||M.ao()},_.initBuiltNumberFormat=function(){var t,n,n,e,i,r,o,a,t=_.Md;if(t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yyyy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yyyy h:mm",t[37]="#,##0_);(#,##0)",t[38]="#,##0_);[Red](#,##0)",t[39]="#,##0.00_);(#,##0.00)",t[40]="#,##0.00_);[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mm:ss.0",t[48]="##0.0E+0",t[49]="@",t.count=49,M.oo())if("zh-cn"===(n=M.oo()))t[14]="yyyy/m/d",t[17]="mmm-yy",t[22]="yyyy/m/d h:mm",t[27]='yyyy"\u5e74"m"\u6708"',t[28]='m"\u6708"d"\u65e5"',t[29]='m"\u6708"d"\u65e5"',t[30]="m-d-yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u65f6"mm"\u5206"',t[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',t[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[36]='yyyy"\u5e74"m"\u6708"',t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]='yyyy"\u5e74"m"\u6708"',t[51]='m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='m"\u6708"d"\u65e5"',t[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[57]='yyyy"\u5e74"m"\u6708"',t[58]='m"\u6708"d"\u65e5"',t.count=58;else if("ja-jp"===n)t[14]="yyyy/m/d",t[15]="dd-mmm-yy",t[16]="dd-mmm",t[17]="mmm-yy",t[22]="yyyy/mm/dd h:mm",t[27]="[$-411]ge.m.d",t[28]='[$-411]ggge"\u5e74"m"\u6708"d"',t[29]='[$-411]ggge"\u5e74"m"\u6708"d"',t[30]="m/d/yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u6642"mm"\u5206"',t[33]='h"\u6642"mm"\u5206"ss"\u79d2"',t[34]='yyyy"\u5e74"m"\u6708"',t[35]='m"\u6708"d"\u65e5"',t[36]="[$-411]ge.m.d",t[38]="#,##0;[Red]-#,##0",t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]="[$-411]ge.m.d",t[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[55]='yyyy"\u5e74"m"\u6708"',t[56]='m"\u6708"d"\u65e5"',t[57]="[$-411]ge.m.d",t[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t.count=58;else if(e=(n=_.getCultureInfo())&&n.LocalNumberFormat,!f(e)&&!Array.isArray(e)&&"object"==typeof e){for(i in e)isNaN(Number(i))||(r=e[i],M.uo(r)&&(t[i]=e[i]));for(i in o=0,t)isNaN(Number(i))||o<(a=Number(i))&&(o=a);t.count=o}},_.initLanguageIndepedentNumberFormat=function(){var t=_.Ch;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},_.getFormatCode=function(t){var n,e,i,r,t,o,t,n=_.builtInNumberFormat(),e=_.customNumberFormat(),i=_.languageIndepedentNumberFormat(),r=t.numberFormatIndex;return t.numberFormat?(o=(t=t.numberFormat).numberFormatId,t=t.numberFormatCode,n[o]&&n[o]!==t?n[o]=t:(e[t]||(e[t]=o,e.count++),t)):n[r]||i[r]||"General"},_.getFormatId=function(t){var n,e,i,r,o,a,u,s,n=_.Ah();if(n[t])return n[t];if(i=_.builtInNumberFormat())for(r in i)if(i[r]===t)return e={isBuiltIn:!0,id:parseInt(r,10)},n[t]=e;if((o=_.customNumberFormat())&&o[t])return e={isBuiltIn:!1,id:o[t]},n[t]=e;if((a=0)u&&(u=o[s]);a=u}return _.Ih++,a=Math.max(_.Ih,a)+1,e={isBuiltIn:!1,id:o[t]=a}},_.Ah=function(){return _.xh=_.xh?_.xh:{}},_.resetBuiltInNumberFormat=function(){_.Md={count:0},_.Ch={count:0}},_.Sh=null,_.xh=null,_.Md={count:0},_.Ch={count:0},_.Th={count:0},_.Ih=170,n.ExtendedNumberFormatHelper=_},"./dist/core/excel-io-util/excel-helper.js":function(t,n){"use strict";function e(t,n){var n=Math.pow(10,n);return Math.round(t*n)/n}var i;function r(){}Object.defineProperty(n,"__esModule",{value:!0}),n.ExcelHelper=void 0,r.pointToPixel=function(t){return e(96*t/72,2)},r.pixelToPoint=function(t){return 72*t/96},r.emuToPixles=function(t,n){return e(96*t/914400,n||2)},r.pixelToEMU=function(t){return Math.round(914400*t/96)},r.getActualColumnWidth=function(t,n,e){for(var i,r,i=0,r=n;rf||t.col>l||t.rowCount>f||t.col>l||e.push(t)}),e},s._c=function(t,n){var e,i,i,r,o,i,a,a,t,e=(0,u.Ec)(0,0,0,0),i=t.indexOf("!");if(1===(i=(i=(t=-1=t[u].length?r+="00":r+=t[u].charAt(e)+t[u].charAt(e+1):e>o!=n[r]>>o)return!1;i-=e,r+=1}return!0}function c(t){if(l.test(t))return parseInt(t,16);if("0"!==t[0]||isNaN(parseInt(t[1],10)))return parseInt(t,10);if(s.test(t))return parseInt(t,8);throw new Error("ipaddr: cannot parse ".concat(t," as octal"))}function e(t,n){for(;t.length>n&255);return t}().reverse()}if(n=t.match(f.twoOctet)){var u,s,u=n.slice(1,4),s=[];if(16777215<(i=c(u[1]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(i>>16&255),s.push(i>>8&255),s.push(255&i),s}if(n=t.match(f.threeOctet)){var u,s,u=n.slice(1,5),s=[];if(65535<(i=c(u[2]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(c(u[1])),s.push(i>>8&255),s.push(255&i),s}return null},g.IPv4.subnetMaskFromPrefixLength=function(t){var n,e,i;if((t=parseInt(t))<0||32>8),n.push(255&t);return n},r.prototype.toFixedLengthString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;n>8,255&n,t>>8,255&t]);throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4")},r.prototype.toNormalizedString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;ni&&(e=r.index,i=r[0].length);return i<0?n:"".concat(n.substring(0,e),"::").concat(n.substring(e+i))},r.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},r),g.IPv6.broadcastAddressFromCIDR=function(t){var n,e,i,r,o;try{for(e=(n=this.parseCIDR(t))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(e[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.isIPv6=function(t){return null!==this.parser(t)},g.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{var n=this.parser(t);return new this(n.parts,n.zoneId),!0}catch(t){return!1}},g.IPv6.networkAddressFromCIDR=function(t){var n,e,i,r,o;try{for(i=(n=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],e=0;e<16;)r.push(parseInt(i[e],10)&parseInt(o[e],10)),e++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.parse=function(t){var t=this.parser(t);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},g.IPv6.parseCIDR=function(t){var n,t,t;if((t=t.match(/^(.+)\/(\d+)$/))&&0<=(n=parseInt(t[2]))&&n<=128)return t=[this.parse(t[1]),n],Object.defineProperty(t,"toString",{value:function t(){return this.join("/")}}),t;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},g.IPv6.parser=function(t){var t,n,e,i,r,t;if(e=t.match(v.deprecatedTransitional))return this.parser("::ffff:".concat(e[1]));if(v.native.test(t))return o(t,8);if((e=t.match(v.transitional))&&(t=e[6]||"",(t=o(e[1].slice(0,-1)+t,6)).parts)){for(r=[parseInt(e[2]),parseInt(e[3]),parseInt(e[4]),parseInt(e[5])],n=0;n>12&63,u=r>>6&63,s=63&r,c[l/3]=d.charAt(o=r>>18&63)+d.charAt(a)+d.charAt(u)+d.charAt(s);return t=(t=c.join("")).slice(0,t.length-f.length)+f}function m(t){for(var n,e,i,r,n,o,a,r,u,s,c,f,l,u=[],f=v,c=t,l=0;l>>16&255,e=r>>>8&255,i=255&r),64==a&&(u[l/4]=d(n,e)),64==o&&(u[l/4]=d(n));return s=u.join("")}function p(t){return(h&&window.atob||m)(t)}function b(t){return(h&&window.btoa||l)(t)}function w(t){return decodeURIComponent(Array.prototype.map.call(p(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function y(t){return b(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return d(parseInt(n,16))}))}function M(t){var t,n;return t?(t=f(t=c(t)),n=Math.ceil(t.length/2),w(t=(t=(t=t.substr(n)+t.substr(0,n)).replace("#","=")).replace("&","=="))):""}function C(t){for(var n,e,i,r,n=p(t),e=n.length,i=new o(e),r=0;rc&&(u=f.left+r-c),f.top+o>s&&(a=f.top+o-s),(e<0||i<0||0=e[r].value;)i+=e[r].numeral,t-=e[r].value;return i}function mn(t,n){var e="",i=n?97:65;if(0===t)return String.fromCharCode(i);for(;0>16&255,g:t>>8&255,b:255&t,a:t>>24&255}},c.convertRgbToXyz=function(t){var n,e,i,t,e,i,n,r,o,a,n=function(t){return t=.04045<(t/=255)?T((t+.055)/1.055,2.4):t/12.92,t*=100},e=t.r,i=t.g,t=t.b,e=n(e),i=n(i),n=n(t),r,o,a;return{x:.4124564*e+.3575761*i+.1804375*n,y:.2126729*e+.7151522*i+.072175*n,z:.0193339*e+.119192*i+.9503041*n}},c.convertXyzToLab=function(t){var n,e,i,t,r,o,a,n=function(t){return.008856>16&255)+","+(e=t>>8&255)+","+(i=255&t)+")":void 0},c.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],c.paletteInLab=[{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:46.22743146876261,redGreen:-51.51899057263506,blueYellow:49.61670487243066},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:51.86894337734398,redGreen:-12.69765903738712,blueYellow:56.380043157800905},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:77.7043667134314,redGreen:.3348315663007084,blueYellow:-.7885979888260453},{lightness:53.585015771669404,redGreen:.2486464680258038,blueYellow:-.5856141545440119},{lightness:67.10642818332406,redGreen:24.661563327250835,blueYellow:-51.70481284997233},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:98.88366982816507,redGreen:-7.647377025903346,blueYellow:23.604961406243042},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:22.946593663526578,redGreen:50.30757275587142,blueYellow:-31.51689638909162},{lightness:68.21369400049187,redGreen:48.529707503769,blueYellow:22.097909906924063},{lightness:44.03181574544729,redGreen:15.497390355584283,blueYellow:-60.313393374835414},{lightness:83.56960561788927,redGreen:10.660290354444879,blueYellow:-25.869538462689157},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:76.31433784805343,redGreen:-24.045184322556313,blueYellow:-37.63232479221295},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:95.46123799053612,redGreen:-25.20013221308681,blueYellow:18.33180794427749},{lightness:98.0661672083006,redGreen:-13.832882960730986,blueYellow:47.940897645383274},{lightness:80.27790732349922,redGreen:-3.692924875082826,blueYellow:-31.192993832087378},{lightness:75.08051024268852,redGreen:44.9470828980269,blueYellow:-10.53443113754624},{lightness:71.44638619892534,redGreen:38.40169770146873,blueYellow:-44.58196770374543},{lightness:85.37715784474301,redGreen:11.871131967975845,blueYellow:31.5700614950422},{lightness:48.789468602187014,redGreen:37.72886428748323,blueYellow:-81.46151935827358},{lightness:74.97920661167659,redGreen:-37.437024973414836,blueYellow:-12.053212107002897},{lightness:76.04314994204388,redGreen:-38.98270545611504,blueYellow:75.18013610138723},{lightness:84.19958734726818,redGreen:4.040877427542666,blueYellow:84.79018925434798},{lightness:72.2607240884026,redGreen:30.50579205114734,blueYellow:76.85864017596677},{lightness:62.312481453511026,redGreen:55.3256388060856,blueYellow:71.01583749339153},{lightness:45.11897896728884,redGreen:12.741665540704494,blueYellow:-28.39942907333195},{lightness:62.082179778109094,redGreen:.2790091803857031,blueYellow:-.6571246580693746},{lightness:21.3066228635372,redGreen:6.957317762469661,blueYellow:-34.694697216998314},{lightness:56.52959107095738,redGreen:-41.28375003303447,blueYellow:17.929912574393892},{lightness:17.308442495122094,redGreen:-27.576541316135987,blueYellow:24.11521195522933},{lightness:20.328171424265783,redGreen:-6.796668862699029,blueYellow:28.392687041649655},{lightness:36.25649980036505,redGreen:41.047060654411325,blueYellow:47.86323594949912},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:27.765685279866425,redGreen:33.339639613412324,blueYellow:-56.37161392120451},{lightness:21.24673253653905,redGreen:.13309285609849897,blueYellow:-.31346136150179893},{lightness:0,redGreen:0,blueYellow:0}],St=c,f.ColorHelper=St,f.getFontHeightWithCanvas=dn,Tt=/&#(\d+);/g,xt=/&#x([0-9A-F]+);/gi,k.Vf=function(t){for(var n,e,n="";0=s&&(u+=t.Gt(s,3))):(c=t.S0(s),t.getViewportLeftColumn(c)<=s&&t.getViewportRightColumn(c)>=s&&(u+=t.nn(s,3))),!(r&&r(o=t[r]).row&&(n=o.row),e>o.col&&(e=o.col);return{r:n=n<0?0:n,c:e=e<0?0:e}},k.V0=function(t){var t,t=typeof t===A&&"/"===t.charAt(0)?k.a2e(t):t;return t},k.a2e=function(t){var n,n,n=pt.test(t)?(n=t.match(pt),h.Common.ct.Y0(st(n[1]))):mt.test(t)?(n=t.match(mt),new Date(st(n[1]))):t;return n},k.Z0=function(t){var t,t=!b(t)&&h.Common.ct.W0(t)?h.Common.ct.Q0(t):t;return t},k.K0=function(t,n){for(var e,i,r,o,e=t.getImageData(n.x,n.y,n.width,n.height),i=e.data,r=0;rn&&(t.rowCount=n),t.colCount>e&&(t.colCount=e)},k.X0=function(t,n,e,i){for(var r=e;r)|(")|(')/g).test(t)?typeof t===A?t.replace(n,function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'"}}):""+t:t},k.Nfe=function(t,n){return(n=void 0!==n&&n)?t&&t.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""):t&&t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\").replace(/</g,"<")},k.n1=function(t){var n,e;return b(t)?t:!(n=typeof t===A)||-1===t.indexOf("&")?""+t:(e=/(&)|(>)|(<)|(")|(')/g,(t=-1!==t.indexOf("&#")?t.replace(Tt,sn(10)).replace(xt,sn(16)):t).replace(e,function(t){switch(t){case"&":return"&";case">":return">";case"<":return"<";case""":return'"';case"'":return"'"}}))},k.e1=function(t,n,e){var i,r;if(t&&typeof t===A)for(i=0;iNumber.POSITIVE_INFINITY))for(;n%2&&(e+=t),(n=Math.floor(n/2))&&(t+=t),n;);return e},k.toPlainString=function(t){var n,e;return(""+t).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/,function(t,n,e,i,r){return+r<0?n+"0."+k.repeatString("0",1-+r-e.length-1)+e+i:n+e+i+k.repeatString("0",+r-i.length)})},k.jse=function(t){var n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild},k.rfe=function(t,n){var e,i,r,o;if(t===m||n===m||"object"!=typeof t||"object"!=typeof n)return t===n;if(e=Object.keys(t),i=Object.keys(n),e.length!==i.length)return!1;for(r=0;r=e.length||n.priority>e[i].priority){e.splice(i,0,n);break}l&&(null!=(t=f.c2e)?t:[]).forEach(function(t){t()})},f.et=function(t,n,e,i){var r,r,o,a,u,s,c,o=f.fh;if(o){if(t&&!t.lh&&(t.lh={}),!(a=l&&t?null==(r=t.lh)?void 0:r[n]:null==(r=f.lh)?void 0:r[n]))for(a=l&&t?t.lh[n]=[]:f.lh[n]=[],u=0;u\u200b"),e.selectAllChildren(o),0>2]|=t[r]<>2]|=i<>2]|=(192|i>>6)<>2]|=(224|i>>12)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=r[3&n],this.block=t[32],112<=n&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash())},m.prototype.hash=function(){for(var L,F,B,P,G,U,H,z,V,Y,Z,W,Q,J,K,X,t,n,e,i,r,o,a,u,s,c,f,l,q,f,l,q,$,tt,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,E,R,L=this.h0h,F=this.h0l,B=this.h1h,P=this.h1l,G=this.h2h,U=this.h2l,H=this.h3h,z=this.h3l,V=this.h4h,Y=this.h4l,Z=this.h5h,W=this.h5l,Q=this.h6h,J=this.h6l,K=this.h7h,X=this.h7l,t=this.blocks,n=32;n<160;n+=2)e=((v=t[n-30])>>>1|(g=t[n-29])<<31)^(v>>>8|g<<24)^v>>>7,i=(g>>>1|v<<31)^(g>>>8|v<<24)^(g>>>7|v<<25),r=((v=t[n-4])>>>19|(g=t[n-3])<<13)^(g>>>29|v<<3)^v>>>6,o=(g>>>19|v<<13)^(v>>>29|g<<3)^(g>>>6|v<<26),v=t[n-32],g=t[n-31],m=t[n-14],p=t[n-13],t[n]=(c=(m>>>16)+(v>>>16)+(e>>>16)+(r>>>16)+((s=(65535&m)+(65535&v)+(65535&e)+(65535&r)+((u=(p>>>16)+(g>>>16)+(i>>>16)+(o>>>16)+((a=(65535&p)+(65535&g)+(65535&i)+(65535&o))>>>16))>>>16))>>>16))<<16|65535&s,t[n+1]=u<<16|65535&a;for(y=L,M=F,A=H,I=z,N=V,k=Y,j=Z,D=W,_=Q,O=J,E=K,R=X,$=(C=B)&(T=G),tt=(S=P)&(x=U),n=0;n<160;n+=8)v=t[n],g=t[n+1],v=(c=((m=nt[n])>>>16)+(v>>>16)+((b=N&j^~N&_)>>>16)+((r=(N>>>14|k<<18)^(N>>>18|k<<14)^(k>>>9|N<<23))>>>16)+(E>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&E)+((u=((p=nt[n+1])>>>16)+(g>>>16)+((w=k&D^~k&O)>>>16)+((o=(k>>>14|N<<18)^(k>>>18|N<<14)^(N>>>9|k<<23))>>>16)+(R>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(f=y&C)^y&T^$)>>>16)+((e=(y>>>28|M<<4)^(M>>>2|y<<30)^(M>>>7|y<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(l=M&S)^M&x^tt)>>>16)+((i=(M>>>28|y<<4)^(y>>>2|M<<30)^(y>>>7|M<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,E=(c=(A>>>16)+(v>>>16)+((s=(65535&A)+(65535&v)+((u=(I>>>16)+(g>>>16)+((a=(65535&I)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,R=u<<16|65535&a,A=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,I=u<<16|65535&a,v=t[n+2],g=t[n+3],v=(c=((m=nt[n+2])>>>16)+(v>>>16)+((b=E&N^~E&j)>>>16)+((r=(E>>>14|R<<18)^(E>>>18|R<<14)^(R>>>9|E<<23))>>>16)+(_>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&_)+((u=((p=nt[n+3])>>>16)+(g>>>16)+((w=R&k^~R&D)>>>16)+((o=(R>>>14|E<<18)^(R>>>18|E<<14)^(E>>>9|R<<23))>>>16)+(O>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(q=A&y)^A&C^f)>>>16)+((e=(A>>>28|I<<4)^(I>>>2|A<<30)^(I>>>7|A<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(f=I&M)^I&S^l)>>>16)+((i=(I>>>28|A<<4)^(A>>>2|I<<30)^(A>>>7|I<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,_=(c=(T>>>16)+(v>>>16)+((s=(65535&T)+(65535&v)+((u=(x>>>16)+(g>>>16)+((a=(65535&x)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,O=u<<16|65535&a,T=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,x=u<<16|65535&a,v=t[n+4],g=t[n+5],v=(c=((m=nt[n+4])>>>16)+(v>>>16)+((b=_&E^~_&N)>>>16)+((r=(_>>>14|O<<18)^(_>>>18|O<<14)^(O>>>9|_<<23))>>>16)+(j>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&j)+((u=((p=nt[n+5])>>>16)+(g>>>16)+((w=O&R^~O&k)>>>16)+((o=(O>>>14|_<<18)^(O>>>18|_<<14)^(_>>>9|O<<23))>>>16)+(D>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(l=T&A)^T&y^q)>>>16)+((e=(T>>>28|x<<4)^(x>>>2|T<<30)^(x>>>7|T<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(q=x&I)^x&M^f)>>>16)+((i=(x>>>28|T<<4)^(T>>>2|x<<30)^(T>>>7|x<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,j=(c=(C>>>16)+(v>>>16)+((s=(65535&C)+(65535&v)+((u=(S>>>16)+(g>>>16)+((a=(65535&S)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,D=u<<16|65535&a,C=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,S=u<<16|65535&a,v=t[n+6],g=t[n+7],v=(c=((m=nt[n+6])>>>16)+(v>>>16)+((b=j&_^~j&E)>>>16)+((r=(j>>>14|D<<18)^(j>>>18|D<<14)^(D>>>9|j<<23))>>>16)+(N>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&N)+((u=((p=nt[n+7])>>>16)+(g>>>16)+((w=D&O^~D&R)>>>16)+((o=(D>>>14|j<<18)^(D>>>18|j<<14)^(j>>>9|D<<23))>>>16)+(k>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=($=C&T)^C&A^l)>>>16)+((e=(C>>>28|S<<4)^(S>>>2|C<<30)^(S>>>7|C<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(tt=S&x)^S&I^q)>>>16)+((i=(S>>>28|C<<4)^(C>>>2|S<<30)^(C>>>7|S<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,N=(c=(y>>>16)+(v>>>16)+((s=(65535&y)+(65535&v)+((u=(M>>>16)+(g>>>16)+((a=(65535&M)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,k=u<<16|65535&a,y=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,M=u<<16|65535&a;this.h0h=(c=(L>>>16)+(y>>>16)+((s=(65535&L)+(65535&y)+((u=(F>>>16)+(M>>>16)+((a=(65535&F)+(65535&M))>>>16))>>>16))>>>16))<<16|65535&s,this.h0l=u<<16|65535&a,this.h1h=(c=(B>>>16)+(C>>>16)+((s=(65535&B)+(65535&C)+((u=(P>>>16)+(S>>>16)+((a=(65535&P)+(65535&S))>>>16))>>>16))>>>16))<<16|65535&s,this.h1l=u<<16|65535&a,this.h2h=(c=(G>>>16)+(T>>>16)+((s=(65535&G)+(65535&T)+((u=(U>>>16)+(x>>>16)+((a=(65535&U)+(65535&x))>>>16))>>>16))>>>16))<<16|65535&s,this.h2l=u<<16|65535&a,this.h3h=(c=(H>>>16)+(A>>>16)+((s=(65535&H)+(65535&A)+((u=(z>>>16)+(I>>>16)+((a=(65535&z)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,this.h3l=u<<16|65535&a,this.h4h=(c=(V>>>16)+(N>>>16)+((s=(65535&V)+(65535&N)+((u=(Y>>>16)+(k>>>16)+((a=(65535&Y)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,this.h4l=u<<16|65535&a,this.h5h=(c=(Z>>>16)+(j>>>16)+((s=(65535&Z)+(65535&j)+((u=(W>>>16)+(D>>>16)+((a=(65535&W)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,this.h5l=u<<16|65535&a,this.h6h=(c=(Q>>>16)+(_>>>16)+((s=(65535&Q)+(65535&_)+((u=(J>>>16)+(O>>>16)+((a=(65535&J)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,this.h6l=u<<16|65535&a,this.h7h=(c=(K>>>16)+(E>>>16)+((s=(65535&K)+(65535&E)+((u=(X>>>16)+(R>>>16)+((a=(65535&X)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,this.h7l=u<<16|65535&a},m.prototype.hex=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,m=this.bits,t=p[t>>28&15]+p[t>>24&15]+p[t>>20&15]+p[t>>16&15]+p[t>>12&15]+p[t>>8&15]+p[t>>4&15]+p[15&t]+p[n>>28&15]+p[n>>24&15]+p[n>>20&15]+p[n>>16&15]+p[n>>12&15]+p[n>>8&15]+p[n>>4&15]+p[15&n]+p[e>>28&15]+p[e>>24&15]+p[e>>20&15]+p[e>>16&15]+p[e>>12&15]+p[e>>8&15]+p[e>>4&15]+p[15&e]+p[i>>28&15]+p[i>>24&15]+p[i>>20&15]+p[i>>16&15]+p[i>>12&15]+p[i>>8&15]+p[i>>4&15]+p[15&i]+p[r>>28&15]+p[r>>24&15]+p[r>>20&15]+p[r>>16&15]+p[r>>12&15]+p[r>>8&15]+p[r>>4&15]+p[15&r]+p[o>>28&15]+p[o>>24&15]+p[o>>20&15]+p[o>>16&15]+p[o>>12&15]+p[o>>8&15]+p[o>>4&15]+p[15&o]+p[a>>28&15]+p[a>>24&15]+p[a>>20&15]+p[a>>16&15]+p[a>>12&15]+p[a>>8&15]+p[a>>4&15]+p[15&a],256<=m&&(t+=p[u>>28&15]+p[u>>24&15]+p[u>>20&15]+p[u>>16&15]+p[u>>12&15]+p[u>>8&15]+p[u>>4&15]+p[15&u]),384<=m&&(t+=p[s>>28&15]+p[s>>24&15]+p[s>>20&15]+p[s>>16&15]+p[s>>12&15]+p[s>>8&15]+p[s>>4&15]+p[15&s]+p[c>>28&15]+p[c>>24&15]+p[c>>20&15]+p[c>>16&15]+p[c>>12&15]+p[c>>8&15]+p[c>>4&15]+p[15&c]+p[f>>28&15]+p[f>>24&15]+p[f>>20&15]+p[f>>16&15]+p[f>>12&15]+p[f>>8&15]+p[f>>4&15]+p[15&f]+p[l>>28&15]+p[l>>24&15]+p[l>>20&15]+p[l>>16&15]+p[l>>12&15]+p[l>>8&15]+p[l>>4&15]+p[15&l]),512===m&&(t+=p[h>>28&15]+p[h>>24&15]+p[h>>20&15]+p[h>>16&15]+p[h>>12&15]+p[h>>8&15]+p[h>>4&15]+p[15&h]+p[d>>28&15]+p[d>>24&15]+p[d>>20&15]+p[d>>16&15]+p[d>>12&15]+p[d>>8&15]+p[d>>4&15]+p[15&d]+p[v>>28&15]+p[v>>24&15]+p[v>>20&15]+p[v>>16&15]+p[v>>12&15]+p[v>>8&15]+p[v>>4&15]+p[15&v]+p[g>>28&15]+p[g>>24&15]+p[g>>20&15]+p[g>>16&15]+p[g>>12&15]+p[g>>8&15]+p[g>>4&15]+p[15&g]),t},m.prototype.digest=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,n,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,t=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a],256<=(n=this.bits)&&t.push(u>>24&255,u>>16&255,u>>8&255,255&u),384<=n&&t.push(s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,f>>24&255,f>>16&255,f>>8&255,255&f,l>>24&255,l>>16&255,l>>8&255,255&l),512===n&&t.push(h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g),t},m.prototype.arrayBuffer=function(){var t,n,e;return this.finalize(),t=this.bits,n=new ArrayBuffer(t/8),(e=new DataView(n)).setUint32(0,this.h0h),e.setUint32(4,this.h0l),e.setUint32(8,this.h1h),e.setUint32(12,this.h1l),e.setUint32(16,this.h2h),e.setUint32(20,this.h2l),e.setUint32(24,this.h3h),256<=t&&e.setUint32(28,this.h3l),384<=t&&(e.setUint32(32,this.h4h),e.setUint32(36,this.h4l),e.setUint32(40,this.h5h),e.setUint32(44,this.h5l)),512===t&&(e.setUint32(48,this.h6h),e.setUint32(52,this.h6l),e.setUint32(56,this.h7h),e.setUint32(60,this.h7l)),n},m.prototype.clone=function(){var t=new m(this.bits,!1);return this.copyTo(t),t},m.prototype.copyTo=function(t){for(var n,e=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"],n=0;n>8,n[2]=(16711680&t)>>16,n[3]=(4278190080&t)>>24,n},w.Joe=function(t){var n,e,i,r,o,a,u,s,n,c,n=.75*t.length,e=t.length,r=0;for("="===t[t.length-1]&&(n--,"="===t[t.length-2])&&n--,n=new ArrayBuffer(n),c=new Uint8Array(n),i=0;i>4,c[r++]=(15&a)<<4|u>>2,c[r++]=(3&u)<<6|63&s;return new Uint8Array(n)},w.Xoe=function(t){for(var n,e=t.length,i="",n=0;n>2])+a[(3&t[n])<<4|t[n+1]>>4])+a[(15&t[n+1])<<2|t[n+2]>>6])+a[63&t[n+2]];return e%3==2?i=i.substring(0,i.length-1)+"=":e%3==1&&(i=i.substring(0,i.length-2)+"=="),i},w.qoe=function(t){for(var n,e,n=new DataView(new ArrayBuffer(2*t.length)),e=0;e>14&1|n<<1&32767,n^=t.charCodeAt(e);return(n=(n=n>>14&1|n<<1&32767)^t.length^52811).toString(16).toUpperCase()},n.Qoe=w},"./dist/core/util/custom-list.js":function(t,n){"use strict";var o,e;function i(t,n){this.wY=t,this.kb=n}o=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;i=this.zh},r.prototype.addLoadingPromises=function(t){var n;t&&0>0:t},v.prototype.HVe=function(t){return t<0?t>>>0:t},n.CustomDocPropsManager=v,e.Y8.ch("customDocProps",{setValue:function(t){var n,e,i,t,r,e=t.row,i=t.col,t=t.value,r=this.Mf.getParent();null!=(n=null==r?void 0:r.docProps)&&n.customDocPropsManager&&r.docProps.customDocPropsManager.vIt(e,i,t)}})},"./dist/core/workbook/customThemeManager.js":function(t,n){"use strict";var e,i;function r(t,n){this.Vv=t,this.tkt=[],this.jkt=n.create,this.Ekt=n.buildIn,this.OHe=n.prefixName}e=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;it.dm():t.lm+2*t.M2e[t.hm]>t.dm()},v.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,m.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em()-n.Qv():n.ot().width-n.rm()-n.Jv()-n.Qv():n.ot().height-n.Yv()},v.prototype.vm=function(){return 6},v.prototype.mm=function(){return[s,c]},v.prototype.gm=function(){return this.tm()},v.prototype.pm=function(t,n){var e,i,e=this;t.save(),t.beginPath(),i=m.I.He(0,"gc-tabStripBackground").backgroundColor,e.bm=u(i),t.fillStyle=i,t.fillRect(n.x,n.y,n.width,n.height),t.restore()},v.prototype.ym=function(t,n){var e,i,i,r,o,a,u,s,e,i=this.Vv,i=i&&i.options.tabStripPosition,r=m.I.He(0,"gc-tabStripBackground").borderTopColor;t.save(),t.beginPath(),t.strokeStyle=r,i===b.TabStripPosition.bottom?(o=n.x,a=n.y,u=n.x+n.width,s=n.y+.5):i===b.TabStripPosition.top?(o=n.x,a=n.height-.5,u=n.x+n.width,s=n.y+n.height-.5):i===b.TabStripPosition.left?(o=n.x+n.width-.5,a=n.y,u=n.x+n.width-.5,s=n.y+n.height):i===b.TabStripPosition.right&&(o=n.x+.5,a=n.y,u=n.x+.5,s=n.y+n.height),t.moveTo(o,a),t.lineTo(u,s),t.stroke(),t.restore()},v.prototype.wm=function(t,n){var e=this;e.pm(t,n),e.ym(t,n)},v.prototype.Mm=function(t,n,e){var i,r,o,a,u,i,s,c,f,e,l,h,d,u,i,d,i,c,r=this,o,a=r.Vv.options.newTabVisible,u=r.im(),i=null==(i=(0,m.jf)(r.Vv))?void 0:i.options.rightToLeft,s=r.tm(),c=r.Xv(),f=r.jv,e=e,l=0,h=f;u?(u=r.Qv(),i?((e-=u)<(i=n.x+r.rm()+r.Jv())&&(c<(d=e=i)&&(e=(d=c)-f),r.Cm(t,d,0,u,n.height)),e-=r.Jv()):(e+=u,r.nm()&&(s-=r.em()),(i=n.x+n.width-r.rm()-r.Jv())t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},l.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,S.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em():n.ot().width-n.rm():n.ot().height-n.Yv()},l.prototype.vm=function(){var t;return this.im()?1:4},l.prototype.mm=function(){return[a]},l.prototype.gm=function(){var t,n,e,t=this,n=t.im(),e=t.tm();return e=n&&(e+=t.ot().height,t.Vv.options.newTabVisible)?(e+=t.Jv())+t._v:e},l.prototype.wm=function(t,n){var e,i,r,i,o,a,u,s;if(t.save(),t.beginPath(),e=t.createLinearGradient(n.x,n.y,n.width,n.height),r=(i=S.I.He(0,"gc-tabStripBackground"))&&i.backgroundImage,i=i&&i.backgroundColor,r&&-1!==r.indexOf(k))for(a=0,u=(o=x(r)).length;at)e.xg(r);else{if(!o[o.length-1]||!(o[o.length-1].indexa.x&&tv.moreTabPos+v.secondMoreTabWidth||0===v.moreTabPos))return{type:G,element:O,index:C.index,position:C.position}}else for(h=i.om;hv.moreTabPos&&0=n?(i.options.tabStripRatio=n,e.Lg=r):e.Lg=t.pageX,i.Xg();else if(e.Qg)e.qg(t.pageX,t.pageY),e.$g(t);else{if(e.Nm=-1,e.Tm=-1,c=(0,T.GC$)(e.Dg()).offset(),n=t.pageX-c.left,r=t.pageY-c.top,t=(i=e.hitTest(n,r)).element,e.Vv&&e.Vv.options.enableAccessibility&&(c=e.t2(i),e.Vv.n2(c)),""===t)return o.cursor=a,e.repaint(),!1;t===_?o.cursor=u:(o.cursor=a,0<=F.indexOf(t)?e.Nm=i.index:t===O?e.Tm=i.index:t===E?e.Tm=-2:t===L&&(e.Tm=-3)),e.repaint()}return!1},l.prototype.t2=function(t){var n,e,i,r,t,n=$(),e="",i=t.element;return i===_?e=n.ARIA_Resize:0<=F.indexOf(i)?e=(r={first:n.ARIA_First,prevArrow:n.ARIA_PreviousArrow,nextArrow:n.ARIA_NextArrow,last:n.ARIA_Last,prevButton:n.ARIA_PreviousButton,nextButton:n.ARIA_NextButton})[i]||"":i===O?(t=this.Vv.e2(t.index).name(),e=n.ARIA_SheetTab+" "+t.replace(/([0-9]+)/," $1 ")):i===E?e=n.ARIA_NewSheet:i===R&&(e=n.ARIA_Blank),e},l.prototype.bg=function(t){var n,t,t,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseUp",t),p(t=t.r)?(n.Bg&&(n.Bg=!1,n.Vv.Xg()),n.i2(),n.Qg&&(n.Qg=!1,n.r2.remove(),n.o2(),n.dg.hide()),n.Wg=N,n.a2(),n.u2(),!n.Yg||(n.Yg=!1)):t},l.prototype.yg=function(t){var n,t,t,e,i,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseOut",t),p(t=t.r)?(n.a2(),e=n.Nm,n.Nm=-1,i=n.Tm,n.Tm=-1,n.Nm===e&&n.Tm===i||n.repaint(),!1):t},l.prototype.Fg=function(){var n=this;n.s2||((0,T.GC$)(a).bind(V,function(t){n.pg(t)}).bind(Y,function(t){n.bg(t)}),n.c2(!0),n.s2=!0)},l.prototype.c2=function(t){var n,e,n,e=this.Vv.getActiveSheet();e&&(e.f2=t)},l.prototype.u2=function(){var t;this.s2&&((this.s2=!1,T.GC$)(a).unbind(V).unbind(Y),t=this.Vv.getActiveSheet())&&delete t.f2},l.prototype.Pg=function(t,n,e){var i,r,i,o,a,r=this,i=null==(i=(0,x.jf)(r.Vv))?void 0:i.options.rightToLeft;r.a2(),(o=r.Zm()).length<=0||(a=200,0===(t%=4)?i?r.d2(o):r.l2(o):1===t?(n||(r.h2=b.setTimeout(function(){r.Pg(1)},200)),i&&!e?r.Ng(o):r.xg(o)):2===t?(n||(r.h2=b.setTimeout(function(){r.Pg(2)},200)),i&&!e?r.xg(o):r.Ng(o)):3===t&&(i?r.l2(o):r.d2(o)))},l.prototype.Gg=function(t,n,e){var i,r,o,r,o,i=this,r=i.Vv,o=r.v2,r=r.e2(t),o=o&&o.sheetsState;o&&0===o[r.name()]?(i.ug!==N&&clearTimeout(i.ug),i.ug=window.setTimeout(function(){i.m2(t,n,e),i.c2(!0),i.ug=N,i.Vg()})):i.m2(t,n,e)},l.prototype.m2=function(t,n,e){var i,r,n,o,n,i=this,r=i.Vv;i.hm=t,i.lm=n,r.suspendPaint(),n=r.getActiveSheet(),(o=r.e2(t))&&o.isEditing()&&o!==n&&(n=n&&n.il&&n.il.rl,!o.ol(void 0,void 0,n,void 0,!1))||(nt(r,o,t),i.g2(t,e),r.resumePaint(),i.repaint())},l.prototype.p2=function(t,n,e,i,r,o){var e={oldValue:e,newValue:i,sheetName:r,propertyName:"isSelected",cancel:!1,sheetIndex:o,sheetPosition:t.getSheetPosition(r)};t.ki(x.Events.SheetChanging,e),e.cancel||(n.b2(i),t&&t.w2&&t.w2.repaint(),delete e.cancel,t.ki(x.Events.SheetChanged,e))},l.prototype.Hg=function(t){var n,e,i,r,r,o,a,r,u,n=this,e=n.Vv,i=n.im(),r=e.getActiveSheet();if((!n.C2||n.C2(r))&&(nt(e,N,N),r=e.qv(),o=e.getSheetCount(),a=e.S2(e.T2(o)),r.forEach(function(t){t.b2(!1,!0)}),u={sheetName:r=a.name(),propertyName:"insertSheet",cancel:!1,sheetIndex:o,sheetPosition:e.getSheetPosition(r)},n.p2(e,a,!1,!0,r,o),e.ki(x.Events.SheetChanging,u),!u.cancel)){for(e.A2(o,1,a),e.ki(x.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:o,sheetPosition:e.getSheetPosition(a.name())}),n.hm=o,n.lm=t,e.I2(e.qv().length-1,1,!1,!0);n.hm>n.om&&(n.fm()||n.ome.dm():e.lm+e.M2e[e.hm]>=e.dm(),e.hm>e.om&&c&&-1!==n&&(e.om=n)):f&&r.forEach(function(t){var n,e,n=t.name(),e;i.getSheetPosition(n)!==i.ep()&&t.b2()&&t.visible()===A.SheetTabVisible.visible&&t.b2(!1,!0)}),e.hmi);u++)e.commandManager().execute({cmd:"moveSheet",sheetName:a[u].name(),targetIndex:i})}else t=null==(t=(s=e.e2(r)).options)?void 0:t.rightToLeft,-1!==i&&-1!==r&&r!==i&&(r!==i-1&&!t||t)&&n.dg.isVisible()&&(rt[0]&&-1!==(t=n.Vm(n.om))&&n.Vv.startSheetIndex(t)},l.prototype.Ng=function(t){var n,e;0=i.x+i.width)return;if(n.y>=i.y+i.height)return;if(n.x+n.width>i.width&&(n.width=i.width-n.x,n.width<=0))return;if(n.y+n.height>i.height&&(n.height=i.height-n.y,n.height<=0))return;if(n.width<=0||n.height<=0)return}if((o=e.buffer)&&o.width===r.width&&o.height===r.height&&(o||o.width===i.width&&o.height===i.height)||(o&&(x.Bf.nh(e.Vv,o),e.TCe()),e.buffer=o=I(J),x.Bf.Wl(o,e.Vv),x.Bf.$l(o,i.width,i.height)),!(i.width<=0||i.height<=0||n&&(n.width<=0||n.height<=0))){(o=e.buffer.getContext(D)).clearRect(0,0,i.width,i.height),x.Lf.Yl(o,-i.x,-i.y),e.Z2(o,n),x.Lf.Yl(o,i.x,i.y),s=a=0<=i.x?0:-i.x,c=u=0<=i.y?0:-i.y,n&&(s=i.x+n.x,c=i.y+n.y,i=new x.Rect(s,c,n.width,n.height)),a=0<=i.x?i.x:0,u=0<=i.y?i.y:0,h=N,d=x.Bf.Kl(r),v=x.Bf.Jl(r),r&&1!==d&&(s*=d,c*=v,i.x*=d,i.y*=v,i.width*=d,i.height*=v);try{l=r?n?(f=w(i.width-s,0),w(i.height-c,0)):(f=y(i.width-s,w(r.width-i.x,3)),y(i.height-c,w(r.height-i.y,3))):(s=n.x,c=n.y,f=n.width,n.height),r?(x.Lf.Vl(t,1,1),t.clearRect(a,u,f,l),t.drawImage(e.buffer,s,c,f,l,a,u,f,l),x.Lf.Vl(t,d,v)):h=(o=e.buffer.getContext(D)).getImageData(s,c,f,l)}catch(t){return}!r&&h&&0u.x+u.width)break}else if(c>u.y+u.height)break;s.push({index:h,position:c,width:f,height:l,text:o[h].name(),visible:d,style:t&&t[o[h].name()]}),d===A.SheetTabVisible.visible&&(c+=a?f+i._v:l)}return{tabsInfo:s,newTabStartPosition:c}},l.prototype.U2e=function(t){var n,e,i,n,e=A.VisualState.normal,i;return 2007U(a)){if(k=N=void 0,N=(j=t._y(1))&&0v+g;)k=j[D-=1];k&&k.row>n&&(c=!0,M=(h||d).x,C=N.y+U(e),A&&t.FCn(N.row)&&(C-=t.PCn(N.row)),y=k.y+k.height-C-l,S.Ey(M,C,w,y,M,v),i.colHeaderVisible||(t.invalidateLayout(),S.D1(T,new L.Rect(M,0,w,f+1))),t.invalidateLayout(),I=new L.Rect(M,v+y,w,(N=x?g:g+b+m)-y),S.D1(T,I,void 0,r.cAn(t,I)),S.Ey(d.Py,d.Cy,d.hL,d.A6,d.Py,d.Cy,!0),S.jy(T,new L.Rect(M,v-2,w,2+(N-=x?0:m))),this.xb(t,M,w))}}else{for(_=0,O=n;OU(a)){if(N=I=void 0,I=(k=t.Yy(1))&&0g+m);)N=k[j-=1];N&&N.col>n&&(s=!0,C=(d||v).y,l?(M=N.x,S=I.x+I.width-U(e)-M,D=0U(r)&&(i=r)):eU(r)&&(i=r)):e=u&&a)i._2=a.Vm(u);else{for(h=void 0,h=Math.max(0,i._2);h=u?i.startSheetIndex(a.Vm(u)):a.om<0?i.startSheetIndex(a.N2(-1)):i.Cg())},k.prototype.g3=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,c,s,f,e=this,i=e.mp,r=e.Lp,o=e.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(I().Exp_IndexOutOfRange);if(u=N(e),s=e.jb,c=t<=e.jb||t===a-1,f=e.getActiveSheetTab(),t=a)e.jb=o.Vm(a);else{for(h=void 0,h=Math.max(0,e.jb);h=a?e.startSheetIndex(o.Vm(a)):o.om<0?e.startSheetIndex(o.N2(-1)):e.Cg())},k.prototype.clearSheets=function(){for(var t,n,e,i,r,o,a,t=this,n=t.sheets,e=t.Lp,i=t.w2,r=0,o=n;r=n.m4()&&(t=((n.y4=t)-n.m4())*n.k4,n.scrollTo(t,!0)),n)},d.prototype.w4=function(){var n,t,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I;function N(){n.N4=q("div"),n.D4=(0,O.GC$)(n.N4),n.D4.css([U,B,G,mt,pt,z,V],[J,0,0,"hidden","none",0,0]).addClass($+" "+tt+" "+u+" "),n.h4&&n.D4.css(dt,B)}function k(t){n._4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+w,t),n.E4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],g+" "+y,n._4)}function j(t){n.j4=O.GC$.En("div",[U,Y,W,H,z,V],[Q,K,X,"none",0,0],et+" "+et,t)}function D(t){n.O4=O.GC$.En("div",[],[],ht+" "+M+" "+it,t),n.R4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],p+" "+C,n.O4)}function _(t){n.B4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+S,t),n.L4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],m+" "+T,n.B4)}e=t=0,i=!1,a=(o=(r=(n=this).o4)===E.ScrollbarAppearance.mobile)?0:2,u="ui-widget ui-corner-all",s=n.ZC(),c=n.YC(),h=f=o?0:s,d=B,v=P,g=at,m=ut,p=lt,b=gt,w="ui-button ui-state-default ui-corner-bl btn btn-default",y="ui-icon ui-icon-triangle-1-w",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-vertical",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-e",n.F4=l=c-2*f,n.h4||(l=f=o?0:c,d=G,v=vt,g=rt,m=ot,p=ft,b=wt,w="ui-button ui-state-default ui-corner-tr btn btn-default",y="ui-icon ui-icon-triangle-1-n",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-horizontal",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-s",n.F4=h=s-2*f),x=n.F4,A=n.v4()-n.m4(),n.P4=n.d4()*x/(A+n.d4()),n.P4>x&&(n.P4=x),n.P4<10&&(n.P4=10),I=n.P4,n.k4=0==A?1:(x-I)/A,e=n.h4?(t=I,f):(t=f,I),n.D4||(i=!0,N()),o?n.D4.addClass(st):n.D4.removeClass(st),n._4||k(n.D4),n.j4||j(n.D4),n.O4?n.O4.removeAttr("style"):D(n.j4),o?n.O4.css(U,Q).addClass(ct):n.O4.css([U,bt,z,V,W],[Q,"1px",0,0,X]).removeClass(ct),n.B4||_(n.D4),o?(yt(n.D4,H),yt(n.D4,V),n.h4?(n.D4.css([L,F],[c,Z]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,R(t-a),Z])):(n.D4.css([L,F,V],[Z,Z,0]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,Z,R(e-a)])),n.R4.remove(),n._4.remove(),n.B4.remove()):(n.D4.css([L,F,H],[c,s,"none"]),n.j4.css([d,L,F],[f,l,h]),n.O4.css([d,L,F],[n.b4,R(t-a),R(e-a)]),n._4.css([d,L,F],[0,f-a,f-a]),n.E4.css([L,F],[Z,Z]),n.B4.css([v,L,F],[0,f-a,f-a]),n.L4.css([L,F],[Z,Z]),n.R4.css([L,F,b],[f-a,f-a,Math.floor((n.P4-f)/2)]),n.O4.append(n.R4),n.D4.append(n._4),n.D4.append(n.B4)),i&&n.G4()},d.prototype.G4=function(){var r=this;function t(t,n){t.bind(S,function(t){r.U4(t,n)}).bind(o,function(t){r.H4(t,n)}).bind(x,function(t){r.z4(t,n)}).bind(A,function(t){r.V4(t,n)})}t(r._4,!0),t(r.B4,!1),r.O4.bind(S,function(t){r.Y4(t)}).bind(T,function(t){r.Z4(t)}).bind(o,function(t){r.W4(t)}).bind(x,function(t){r.K4(t)}).bind(A,function(t){r.J4(t)}),r.j4.bind(S,function(t){var n,e,i,n;w&&w.mozilla&&(e=(new Date).valueOf(),i=r.X4,r.X4=e,i)&&e-i<100||r.q4(t)}).bind(o,function(t){r.tS(t)}),r.nS=function(t){r.eS(t)},r.D4.bind(u,r.nS),r.D4.bind(I,r.nS),d.et(r,"initEvents",r.N4)},d.prototype.Jw=function(t){this.o4=t},d.prototype.dispose=function(){var t=this;function n(t){t&&t.unbind(r)}n(t.B4),n(t.O4),n(t._4),n(t.j4),t.D4&&(t.nS&&(t.D4.unbind(u,t.nS),t.D4.unbind(I,t.nS)),d.et(t,"dispose",t.N4),t.D4.unbind(r).remove())},d.prototype.Fg=function(){var n=this;n.p4||((0,O.GC$)(a).bind(T,function(t){n.Z4(t)}).bind(o,function(t){n.W4(t)}),n.p4=!0)},d.prototype.u2=function(){this.p4&&(this.p4=!1,O.GC$)(a).unbind(T).unbind(o)},d.prototype.U4=function(t,n){var e,i,r,o,a,e=0,i=this,r=!0,o=i.Gxn;i.u4=!0,null===i.s4&&(n?(i._4.addClass(s),e=o?i.iS():0-i.iS(),i.rS=o?E.Zi.smallIncrement:E.Zi.smallDecrement):(i.B4.addClass(s),e=o?0-i.iS():i.iS(),i.rS=o?E.Zi.smallDecrement:E.Zi.smallIncrement),(a=function(){i.scrollTo(i.b4+e*i.k4,!1),i.s4=y.setTimeout(a,r?i.f4:i.l4),r=!1})(),h(t))},d.prototype.H4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass(s),e.oS(),h(t)},d.prototype.z4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).addClass("gc-scroll-arrow-hover ui-state-hover"),h(t)},d.prototype.V4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass("gc-scroll-arrow-hover ui-state-hover "+s),e.oS(),h(t)},d.prototype.Y4=function(t){var n,e,i,r,o,a,u,n=this;0===t.button&&(n.a4=!0,n._oldPosition={x:t.pageX,y:t.pageY},n.qy(E.ScrollbarState.show),n.Fg(),n.D4.addClass(C),n.O4.addClass(s),e=n.O4.offset(),i=n.O4.outerWidth(!0),r=n.O4.outerHeight(!0),o=n.j4.offset(),a=n.j4.outerWidth(!0),u=n.j4.outerHeight(!0),n.aS={isBeyondEdge:!1,startEdgePosition:{x:o.left+t.pageX-e.left,y:o.top+t.pageY-e.top},endEdgePosition:{x:o.left+a-(i-t.pageX+e.left),y:o.top+u-(r-t.pageY+e.top)}}),h(t)},d.prototype.Z4=function(t){var n=this;n.a4&&(n.qy(E.ScrollbarState.active),n.uS={x:t.pageX,y:t.pageY},n.sS(),n._oldPosition=n.uS,(0,O.GC$)(a.body).attr("unselectable","on").addClass(ht)),h(t)},d.prototype.W4=function(t){var n,e,i,r,o,o,n=this;n.a4=!1,n.rS=E.Zi.thumbPosition,n.aS=null,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),i=((e=n.y4)-n.m4())*n.k4,r=n.Gxn?P:B,o=(o=t.target.classList)&&o.contains(ct),n.h4||(r=G),o?n.qy(E.ScrollbarState.hide):n.qy(E.ScrollbarState.inactive),n.b4=i,n.O4.css(r,R(i)),n.h4&&n.O4.css(n.Gxn?B:P,"auto"),n.u2(),(0,O.GC$)(a.body).removeClass(ht),(0,O.GC$)(a.body).attr("unselectable")&&(0,O.GC$)(a.body).removeAttr("unselectable"),n.O4.removeClass(s),n.D4.removeClass(C),n.rS=6,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),h(t)},d.prototype.K4=function(t){this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.J4=function(t){this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.eS=function(t){var n,e,i,e,i,n=this,e=n.Gxn;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=t.detail||t.wheelDelta/-40,e&&(i*=-1),e=i/3*n.iS()*n.k4,n.rS=0<=e?1:0,n.scrollTo(n.b4+e,!1),n.rS=6,i={newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS},n.D4.trigger(b,i),h(t)},d.prototype.q4=function(t){var e,i,r,o,a,u,s,c,f,e=this,i=!0,r=t.pageX,o=t.pageY,a=0,u=e.j4.offset(),s=e.cS(),c=e.Gxn;null===e.c4&&(a=e.h4?r-u.left-(c?e.F4-e.b4-e.P4:e.b4):o-u.top-e.b4,(f=function(){var t=0,n=c?e.F4-e.b4-e.P4:e.b4,t;if((t=e.h4?r-u.left-n:o-u.top-n)*a<0||0<=t&&te.v4()&&(n.newValue=e.v4()),r=n.newValue,c=n.newValueWithOffset),f(c)&&(c=r),e.y4=r,5!==e.rS&&(t=(c-e.m4())*e.k4),e.b4=t,s||(e.O4.css(i,R(t)),e.h4&&e.O4.css(e.Gxn?B:P,"auto"))},d.prototype.hitTest=function(t,n){var e,i,r,o,a,u,s,c,f,u,o,f,a,e=this,i=0,r=0,o=e.O4.outerWidth(),a=e._4.outerWidth(),u=e.j4.outerWidth(),s=e.O4.offset(),c=(0,O.GC$)(e.oy()).offset(),f=s.left-c.left-18;return e.h4?t<0+u+a&&0+ar.leftWidth&&(o=t.leftWidth-i.left-e.innerWidth(),a.I0=nr.topHeight&&(o=t.topHeight-i.top-e.innerHeight(),a.A0=n>t/4).toString(16)})),n=32===t?n.split("-").join(""):n}},"./dist/core/worksheet/clipboardhelper.js":function(t,n,e){"use strict";var B,i,h,d,A,P,c,G,v,U,H,r,I,o;function a(t){return t&&t.options.allowCopyPasteExcelStyle}function g(t,n){var e,i;if(G.msie){for(e=[],i=0;i"===o.substring(o.length-4)?n+="\n"+r:n+=r;return n}function f(t,n,e){var i,r,i=-1;if(e)for(r=i=0;r]+>/g,G=B.mt.Tt,v=i.Common.lt.ht,U=i.Common.Uf.OS,H=null,s.prototype.add=function(t){var n=this.Nf,e=n.indexOf(t);return-1===e&&(n.push(t),e=n.length-1),e},s.prototype.toString=function(t){var t=this.Nf[t];return v(t)?"":this.Zc+":"+t},r=s,n.Boe=r,w.prototype.Loe=function(e){var i=this.joe;return this.Doe.map(function(t,n){return i[n].add(e[t])}).join("_")},w.prototype.add=function(t){var n=this.Nf,t=this.Loe(t);return n[t]||(n[t]="sjs"+this.Lre,this.Lre++),n[t]},w.prototype.toString=function(){var t,n,e,i,r,o,a,u,s,t=this.joe,n=[],e=this.Nf;for(i in e)if(e.hasOwnProperty(i)){for(r=i.split("_"),o=[],a=0;a\S+\r\n\r\n\r\n\r\n\r\n"),r=t.length,e+=n?'':'
',o=0;o",a=0;a"}return e+="
",i&&(e+="\r\n\r\n"),e},z.n5=function(t){return t&&0<=t.indexOf('gc-sjs-clipboard="true"')},z.vI=function(t,n,e,i,r,o,a){var u,s,c,i,r,f,l,l,l,o,l,u,o,s,n,l,u,u,u,u,c,u,u=z.convertVAlign,s=z.convertHAlign,c=z.convertLineBorder,i=i,r=r,f={},l=t.backColor;return l&&(f["background-color"]=l,r=i=!1),(l=t.foreColor)&&(f.color=l),(l=t.font)&&(o&&(l=l+", "+B.FallbackFontFamily),f.font=l.replace(/"/g,"'").replace(/([\.\d]+px)/,function(t){return(3*parseFloat(t.substring(0,t.length-2))/4).toFixed(2)+"pt"})),t.wordWrap?a?(f["word-wrap"]=["break-word"],f["white-space"]=["break-spaces"]):f["white-space"]="normal":f["white-space"]="nowrap",o=t.vAlign,v(o)||(f["vertical-align"]=u(o)),l=t.hAlign,v(l)||(u=s(l=a?B.mt.gt(l,n):l))&&(f["text-align"]=u),o="border-left",s="border-right",n="border-top",l="border-bottom",(u=t.borderLeft)&&(f[o]=c(u),r=!1),(u=t.borderRight)&&(f[s]=c(u),r=!1),(u=t.borderTop)&&(f[n]=c(u),i=!1),(u=t.borderBottom)&&(f[l]=c(u),i=!1),c="1px solid "+e,i&&(f[n]=c,f[l]=c),r&&(f[o]=c,f[s]=c),u=t.formatter,!a&&u&&(f["mso-number-format"]=b(u)),f},z.dge=function(t,n,e,i,r){var o,a,u,s,c,o=t.row===n&&t.col===e;if(i&&r){for(u=t.row;u"),k=(k=1==(1&j))||8==(8&j))&&(x+=""),(D=t?t.getText(M,T,o):"")?(" "!==D[0]&&" "!==D[D.length-1]||"number"!=typeof _||(D=D.trim()),"number"!=typeof _&&(D=P.j0(D).replace(f,l))):G.chrome?D="":G.safari&&(D=" "),x+=D=g?D:D.replace(/\n/g,'
'),s&&(k&&(x+="
"),A)&&(x+=""),C.push(x+="")}w.push(C)}return w},z.e5=function(t,n,e,i,r,o,a){var u,t,e,s,u="",t=f(t,e,r);return 0)/g,function(t,n,e,i){return"\n"!==i[e+t.length]?n+"\n":n}),i.innerHTML=g,m=i.innerText,0<=g.indexOf("',t.forEach(function(t,n){o+=h(t,r,r+(n+e))}),o+=""},e=0;e")},d="pasteOptions",v="operationOptions",g="skipBlanks",m="transpose",p="pasteLink",y=o.Ase,e(C,y),C.prototype.$c=function(t){this.Dn(),y.prototype.$c.call(this,t),this.q2e(),this.$2e()},C.prototype.rQ=function(t){this.submitCallback=t,this.$c()},C.prototype.npe=function(t,n){return this.Wc[0].querySelector('input[name="'.concat(t,'"][value="').concat(n,'"]'))},C.prototype.Dn=function(){this.Wc.html(this.ipe),this.npe(d,this.data.pasteOptions).checked=!0,this.X2e&&(this.npe(v,this.data.operationOptions).checked=!0)},C.prototype.$2e=function(){var t=this.Wc.width(),n=this.Wc.height(),e=this.Fc.width(),i=this.Fc.height();this.Wc.css(["position","left","top"],["absolute",(e-t)/2+"px",(i-n)/2+"px"])},Object.defineProperty(C.prototype,"ipe",{get:function(){return'\n
\n
\n '.concat(c().pasteSpecialOptionDialog.title,'\n \xd7\n
\n
\n
\n ').concat(c().pasteSpecialOptionDialog.paste,'\n
\n
\n
\n ').concat(M(f(),6,d),"\n
\n ").concat(this.X2e?'\n
\n '.concat(c().pasteSpecialOptionDialog.operation,'\n
\n
\n
\n ').concat(M(l(),3,v),"\n
\n "):"",'\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n ")},enumerable:!1,configurable:!0}),C.prototype.submit=function(t){var t=t||this.data;this.submitCallback&&this.submitCallback(t),this.close()},C.prototype.rpe=function(t){var n,t,n,t=t.target.dataset.cmd;if(t)switch(t){case"close":this.close();break;case"submit":this.submit();break;case p:this.submit(r(r({},this.data),{pasteLink:!0}))}},C.prototype.ope=function(t){var t=t.target;t.name?(t.name===d&&t.checked&&(this.data.pasteOptions=+t.value),t.name===v&&t.checked&&(this.data.operationOptions=+t.value)):(t.id===g&&(this.data.skipBlanks=t.checked),t.id===m&&(this.data.transpose=t.checked)),this.ape()},C.prototype.q2e=function(){var n,t,e,i,r,n=this,t=function(t){n.rpe(t)},e=function(t){n.ope(t)},i=function(t){"Escape"!==t.key&&27!==t.keyCode||n.close(),"Enter"!==t.key&&13!==t.keyCode||n.submit()};this.Wc.bind("click",t),this.Wc.bind("change",e),document.addEventListener("keyup",i),r=this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")),this.wpt=function(){n.Wc.unbind("click",t),n.Wc.unbind("change",e),document.removeEventListener("keyup",i),r()}},C.prototype.close=function(){this.wpt&&this.wpt(),y.prototype.close.call(this)},C.prototype.ape=function(){var t,n,t,e,n;this.X2e&&(n=[(t=a.ClipboardPasteOptions).formatting,t.comments,t.validation],t=[t.all,t.noBorder],e=this.Wc[0].querySelectorAll("[name=".concat(v,"]")),n.includes(this.data.pasteOptions)?e.forEach(function(t){return t.disabled=!0}):e.forEach(function(t){return t.disabled=!1}),n=this.Wc[0].querySelector('[data-cmd="'.concat(p,'"]')),!t.includes(this.data.pasteOptions)||this.data.operationOptions!==a.PasteOperationOptions.none||this.data.skipBlanks||this.data.transpose?n.classList.add("disable"):n.classList.remove("disable"))},n.PasteSpecialDialog=C},"./dist/core/worksheet/style.js":function(L,t,n){"use strict";var a,o,u,s,b,c,r,i,n,f,w,l,y,M,h,d,n,v,g,m,p,C,S,T,e,F,B,P,G,U,H,z,V,x,A,I,N,k,k,k;function Y(t){var n,e,n={};return t&&t.option&&t.option.dataSource?(e=t.option.dataSource,t.option.dataSource=M,(n=w(t)).option.dataSource=e,t.option.dataSource=e):n=w(t),n}function j(t,n,e){this.color=t||"black",this.style=n||0,this.level=e}function Z(t){return!(!t||"object"!=typeof t||t.patternColor||t.stops)}function W(t){return(!t||!t.stops)&&t&&t.type?{type:E(r.PatternType,t.type,M),patternColor:t.patternColor,backgroundColor:t.backgroundColor}:t}function D(t){return t?new x(t.color,E(z,t.style,M)):M}function Q(t){var n,e,e,e;if(t){if(!(e=(n={checkbox:"5",combobox:"7",hyperlink:"8",radioButtonList:"11",checkboxList:"12",fileUpload:"19"})[t.type]))return ot(t,!0,void 0);if(e=c.ti[e])return(e=new e).Je(t),e}return t}function J(t){return t?{alignment:E(r.LabelAlignment,t.alignment,M),visibility:E(r.LabelVisibility,t.visibility,M),font:t.font,foreColor:t.foreColor,margin:t.margin}:M}function K(t){return t?{cornerFold:t.cornerFold,icons:t.icons&&0_(t)&&t.setRowCount(n+o),u.E5&&e+a>O(t)&&t.setColumnCount(e+a),f={},h=l=0;l=_(t))&&Gn("row",n,"-1",_(t)-1),(e<-1||e>=O(t))&&Gn("column",e,"-1",O(t)-1),I(i)||""===i||(-1===n&&(n=0),-1===e&&(e=0),(i=Wn(i,r,o,a,s,c))&&0=E(e)&&t.z5>=R(e))}function fe(t,n){var e,e,t,n;return!!t.endEdit()&&((e=t.rt).V5(),e.Y5(),T.hi.F1(k),e=!1,(t=t.parent)&&((n=n.call(t))&&n.focus?(n.focus(),e=!0):t.vC()),{ignoreCancelDefault:!e})}function f(t,n,e){var i=this;i.Mf=t,i.Z5=n,i.W5=e,i.Q5=[],i.K5=[],i.J5()}function le(n,t){var e,i,e=[];return"string"==typeof t?(i=(0,T._f)(n,t))&&e.push(i):Array.isArray(t)&&t.forEach(function(t){var t=(0,T._f)(n,t);t&&e.push(t)}),e}function he(t){return t instanceof P.Worksheet?t:t.Mf instanceof P.Worksheet?t.Mf:void 0}function de(t,n){I(t.Tb)&&(t.Tb=n.Tb,t.Ab=n.Ab)}function ve(t,n){var n=t.vw(n);-1!==n&&no.col)?D[tn]:D[lt]).execute(t,n)}},D[rn]={canUndo:!1,execute:function(t,n){var e,i,r,o,a,e=c(t,n),i=e.qA,r=e.getActiveColumnIndex();return e.F5=!0,o=e.sI(e.getActiveRowIndex(),r,!0,i),e.F5=!1,((a=!o||o.leadingCellRow>i||o.leadingCellRow===i&&rt&&(t=s.x),s.y>n)&&(n=s.y),o=o!==Y&&o!==Z?o:1){case 1:return new l(t,n,e,i,r,1,a,void 0,c);case 2:return new l(t,n,e,i,r,2,a,u,c);case 5:return new l(t,n,e,i,r,3,a,u,c);case 3:return new f(t,n,e,i,r,1,[3,1],a,void 0,c);case 9:return new f(t,n,e,i,r,1,[8,2,2,2],a,void 0,c);case 4:return new f(t,n,e,i,r,1,[2,2],a,void 0,c);case 11:return new f(t,n,e,i,r,1,[9,3,3,3,3,3],a,void 0,c);case 13:return new B(t,n,e,i,r,t!==e,[11,1,5,1],[10,2,4,2],a,c);case 10:return new f(t,n,e,i,r,2,[9,3,3,3],a,u,c);case 12:return new f(t,n,e,i,r,2,[9,3,3,3,3,3],a,u,c);case 8:return new f(t,n,e,i,r,2,[9,3],a,u,c);case 7:return new f(t,n,e,i,r,1,[1],a,void 0,c);case 6:return new P(t,n,e,i,r,a,c)}return Z}function A(){}function c(t,n,e,i,r){var o=this;o.Ux=!1,o.Hx=!1,o.Mf=t,o.nT=i,o.zx=n,o.Vx=e,o.JCe=new k.VisibleRowColCache(t),o.YAe=r}e=this&&this.__extends||(U=function(t,n){return(U=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}U(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Yx=t.Zx=void 0,I=n("./dist/core/worksheet/style.js"),i=n("./dist/core/util/domUtil.js"),V=n("./dist/core/core.enum.js"),N=n("Common"),k=n("./dist/core/worksheet/helpers/visible-row-col-cache.js"),Y=void 0,Z=null,j=Math.sqrt,v=Math.pow,D=Math.min,W=Math.abs,Q=Math.tan,J=Math.ceil,K=Math.PI,O=i.GC$.inherit,o=i.GC$.isEmptyObject,X=N.Common.lt.ht,g=w=0,m=y=1,p=M=2,b=C=3,S=4,T=5,x=6,F=7,r.prototype.Wx=function(t){var n=this;0===t._orientation?this.needRightToLeft?(t.Kx&&(n._x1-=t.Kx),t.Jx&&(n._x2-=t.Jx)):(t.Kx&&(n._x2+=t.Kx),t.Jx&&(n._x1+=t.Jx)):(t.Kx&&(n._y2+=t.Kx),t.Jx&&(n._y1+=t.Jx))},r.prototype._e=function(t){var n=this._x||"#9eb6ce",e=this.Ex,i=t.lineWidth,r=t.strokeStyle;i===e&&r===n||(i!==e&&(t.lineWidth=e),r!==n&&(t.strokeStyle=n)),this.Xx(t)},r.prototype.Xx=function(t){var n,e,i,e,i,n=this,e=n._x1===n._x2,i=n._y1===n._y2;e&&i||(e||i?(t.beginPath(),n.qx(t),t.stroke()):(t.save(),e=Math.min(n._x1,n._x2),i=Math.min(n._y1,n._y2),t.rect(e,i,Math.abs(n._x2-n._x1),Math.abs(n._y2-n._y1)),t.clip(),t.beginPath(),n.qx(t),t.stroke(),t.beginPath(),t.restore()))},r.prototype.qx=function(t){var n=this;t.moveTo(n._x1,n._y1),t.lineTo(n._x2,n._y2)},e(nt,H=n=r),l=nt,e(a,z=n),a.prototype.qx=function(t){var n=this;a.Dn(t,n._x1,n._y1,n._x2,n._y2,n.Ox)},a.Dn=function(t,n,e,i,r,o){var a,u,s,c,f,l,h,d,a=j(v(i-n,2)+v(r-e,2)),s=(i-n)/a,c=(r-e)/a,f=0,l=0;for(o=o&&o.length?o:[4,4];fo+1&&v.c>a+1);d++);l||t.VN(u,c,t.AN,!0),h||t.VN(s,f,t.IN,!1)}},c.prototype.JN=function(){for(var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,y,t=this,n=t.Mf,e=n.Ut,i=t.MN,r=t.CN,o=i.length,a=r.length,l={},h={},u=0;u=r.row+r.rowCount&&n+i>=r.col+r.colCount||r.col>n+i||r.col+r.colCount-1n+i-1||r.col+r.colCount-1r.row))return!0}function ft(t,n){return t.tables&&t.tables.Uue(n)}function dt(t,n,e,i,r){return t.tables&&t.tables.oSt(n,e,i,r)}function lt(t,n,e,i,r){var o,n,a,o=n.rowCount,n=n.colCount,a=!1;return r===nt.InsertShiftCell.right?(n=1,i===t.col&&(a=!0)):(o=1,e===t.row&&(a=!0)),(-1===t.row||-1===t.col)&&t.intersect(e,i,o,n)&&!t.equals(new et.Range(e,i,o,n))&&!a}function j(t){return(t&nt.CopyToOptions.style)<=0}function E(t,n){var e,i,r,t,o,a,u,n,s,e,o,i,a,e=t.row,i=t.col,r=t.row+t.rowCount,t=t.col+t.colCount,o=n.row,a=n.col,u=n.row+n.rowCount,n=n.col+n.colCount,s;return R(e,o)<=c(r,u)&&R(i,a)<=c(t,n)&&(e=R(e,o),o=R(i,a),i=c(r,u)-e,a=c(t,n)-o,new et.Range(e,o,i,a))}function B(n,t){var e=[];return t.forEach(function(t){var t=E(n,t);t&&e.push(t)}),e}function P(t,n){t&&y&&t.suspendCalcService(n)}function G(t,n){t&&y&&t.resumeCalcService(n)}function F(t,n){return n===nt.ClipboardPasteOptions.formatting&&t.options.protectionOptions.formatCells}function V(t,n,e,i,r){t.ki("shiftCellsDown",{row:i,col:r,changedRowCount:i-n,changedColCount:r-e,srcRow:n,srcColumn:e},!0)}function tt(t,n,e,i){var t,e,i,r,o,a,u;n&&e&&i!==it&&(e=n.Ky,i=n.iw,r=n.Sx,o=n.Tx,a={showHeader:n.showHeader(),showFooter:n.showFooter(),useFooterDropDownList:n.useFooterDropDownList(),showResizeHandle:n.showResizeHandle()},u=n.style(),t.tables._Qt(n.name(),e,i,r,o,null!=(t=u.name())?t:u,a,!0),n.L0())}function vt(t,n,e,i,r,o){for(var a,u,s,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),u=t.tables&&t.tables.U3,s=t.pivotTables&&t.pivotTables.all(),c=0;c=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.row>n+i||f.row+f.rowCount-1n+i-1||f.row+f.rowCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.Ky>n+i||l.Ky+l.Sx-1n+i-1||l.Ky+l.Sx-1=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.col>e+r||f.col+f.colCount-1e+r-1||f.col+f.colCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.iw>e+r||l.iw+l.Tx-1e+r-1||l.iw+l.Tx-1l.Ky))return 1;if(s)for(c=0;c=(l=o[f]).row&&u<=l.row+l.rowCount-1&&s>=l.col&&s<=l.col+l.colCount-1)return!0;for(h=0;h=(d=a.get(h)).Ky&&u<=d.Ky+d.Sx-1&&s>=d.iw&&s<=d.iw+d.Tx-1)return!0}return!1}function H(t,n){var t;return null!=(t=t.getSpan(n.row,n.col))&&t.equals(n)}function z(t,n){var e,i,r,o,a,u,s;if(t&&1<(e=t.length)){for(i=void 0,i=0;iC.iw&&j=C.Ky&&hC.Ky+T)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!x&&t&&N=C.Ky&&v<=C.Ky+T&&k===C.Sx&&(O=j),$=b?k:C.Sx}}if(o||(a!==I&&-1!==a||!(u<=N)||C&&!b&&!E)&&ot(O)||(f?(e.col+=e.colCount,e.col=r.O5(e.col-1),Y=r.lT(e.col,e.colCount),e.colCount+=Y):e.col=e.col+(ot(O)?e.colCount:O),F=!0),h=r.getColumnCount()-e.colCount,v=e.colCount,f&&(W=r.lT(u,e.colCount),h=m-(v=(D=e.colCount+W)+r.ox(m-1,D)),F)&&(e.col+=W),(H=mt(r,l,h,d,v))&&!U&&(!t||o||!A||-1!==e.row))return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(J){if(M=void 0,h=u,v=w=j,_=!C||!A||x||st(n,m)||j<=C.iw,f&&(w+=M=r.lT(u,w),v+=M),!_&&C&&y&&(j=e.row+e.rowCount||K&&-1===e.row)&&(R=!0),!C&&A&<(e,n,a,u,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(NC.iw&&C.iw+S>j&&e.intersect(a,u,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};!_&&C&&0b.Ky&&b.showHeader(),o+uT+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+u,a,e.getColumnCount()-o-u,nt.CopyToOptions.all,!0):(e.addColumns(o,u),e.deleteColumns(e.getColumnCount()-u,u));V(e,r,o,r,o+u),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&(M||i.rowCount!==b.Sx&&!ct(i,e.getRowCount())||(b.showFooter()||y?(b.insertColumns(o-b.iw,i.colCount),m=!0):b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+u))))}else o+u>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+a,o,e.getRowCount()-r-a,u,!0))if(r+a=b.startRow()&&i.row<=b.endRow()?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(U=u,j=a+e.ox(e.getRowCount()-1,a,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+a,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,a),e.deleteRows(e.getRowCount()-a,a));else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0}else if(p)if(e.mT(r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,!0))if(o+i.colCount-(c&&!n&&this.kse&&-1===i.row?i.colCount:0)b.Ky&&b.showHeader(),d)if(H=i.rowCount,C=(E=i.colCount+e.lT(o,i.colCount))+e.ox(e.getColumnCount()-1,E),-1===r)-1!==i.row||n?e.moveTo(r,o,r,o+E,i.rowCount,e.getColumnCount()-o-C,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);else for(S=r;ST+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);V(e,r,o,r,o+i.colCount),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&i.rowCount>b.Ky&&(M||i.rowCount!==b.Sx&&!ct(i,e.getRowCount())||(c||!b.showFooter()&&!y?b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+i.colCount)):(b.insertColumns(o-b.iw,i.colCount),m=!0)))}else o+i.colCount>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+i.rowCount,o,e.getRowCount()-r-i.rowCount,i.colCount,!0))if(r+i.rowCount-(c&&!n&&this.kse&&-1===i.col?i.rowCount:0)b.iw&&(k=(N=b.dataRange()).col+N.colCount,(G=r===b.Ky)||(I=i.rowCount,0<(I=c&&(!g&&i.intersect(b.Ky,0,b.Sx,b.endColumn()+1)||new et.Range(b.Ky,0,b.Sx,b.endColumn()+1).containsRange(i))?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(z=i.colCount,j=(R=i.rowCount+e.lT(r,i.rowCount,!0))+e.ox(e.getRowCount()-1,R,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+R,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,i.rowCount),w=!0);else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0;return{ignoreTableExpand:m,ignoreTableFooterIndex:B,raiseInvalidOperation:f,returnFunc:l,isInsert:w}},ht.prototype.hx=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,s=u.changePasteDataRangeRowInvisibleCount,c=u.changePasteDataRangeColInvisibleCount,f=u.invisibleRowCountInAcRange,l=u.invisibleColCountInAcRange,h=this.tT.pasteExtent.targetRange;t&&(n.colCount-=c,n.col-=n.colCount,n.col-=l,h.colCount-=c),e&&(n.rowCount-=s,n.row-=n.rowCount,n.row-=f,h.rowCount-=s),i&&(n.colCount-=c,n.col-=o,n.col-=l,h.colCount-=c),r&&(n.rowCount-=s,n.row-=a,n.row-=f,h.rowCount-=s),u.changePasteDataRangeRowInvisibleCount=0,u.changePasteDataRangeColInvisibleCount=0,u.invisibleRowCountInAcRange=0,u.invisibleColCountInAcRange=0},ht.prototype.vx=function(t,n){var e=[].concat(n.parent.sheets);return t&&(t.NMi||t.isReportTemplateSheet)&&e.push(t),n&&n!==t&&(n.NMi||n.isReportTemplateSheet)&&e.push(n),e},ht.prototype.execute=function(){var t,t,n,e,i,r,o,a,u,s,c,f,L,l,l,t,h,d,h,d,h,v,g,m,p,b,d,t,w,F,B,P,G,h,y,M,C,U,H,S,S,T,S,T,S,x,A,z,I,N,k,V,Y,Z,j,W,D,Q,J,_,O,E,R,K,X,h,y,I,b,l,v,g,k,j,n=this;if(n.canExecute()&&(e=n.tT.fromSheet,i=n.tT.toSheet,r=n.tT.pasteExtent,o=n.tT.pasteOption,a=r.sourceRange,u=r.targetRange,s=r.isCutting,!e||!a||e.zT(a.row,a.col,a.rowCount,a.colCount,e.getRowCount(),e.getColumnCount()))&&i&&u&&i.HT(u.row,u.col,u.rowCount,u.colCount,!0)&&!(i.tables&&i.tables.mx(e,a,i,u,s)||i.pivotTables&&i.pivotTables.KYt(a,u,i))){if(e&&(L=e.ST(),c=n._shiftCells,f=n.fA)&&(l=f.row,t=f.col,h=f.rowCount,d=f.colCount,l=new et.Range(l,t,h,d),null!=(t=r.pasteSpecialOptions)&&t.transpose&&(h=f.row<0?0:f.row,d=f.col<0?0:f.col,f=new et.Range(h,d,f.colCount,f.rowCount)),null!=(t=r.pasteSpecialOptions))&&t.pasteLink&&(f=new et.Range(f.row,f.col,u.rowCount,u.colCount),h=e.getSpan(f.row,f.col))&&h.rowCount===a.rowCount&&h.colCount===a.colCount&&(f=new et.Range(f.row,f.col,1,1)),n.cA&&(v=n.cA.row,g=n.cA.col,m=n.cA.rowCount,p=n.cA.colCount),d=n.kse,t=i===e,h=at(i),y=G=P=B=F=!1,H=U=C=M=0,c!==it&&f){if(t&&s&&c===nt.InsertShiftCell.right&&ct(f,i.getRowCount())&&(w=ut(i,f))&&(S=ut(i,new et.Range(v,g,m,p)))&&S.name()===w.name()&&(n.tT.Hfe=w,i.tables.remove(w,1)),(S=this.ex(s,n.cA,f,c,i,e)).returnFunc)return void tt(i,w,s,c);F=S.changePasteDataRangeCol,B=S.changePasteDataRangeRow,M=S.changePasteDataRangeRowInvisibleCount,C=S.changePasteDataRangeColInvisibleCount,U=S.invisibleRowCountInAcRange,H=S.invisibleColCountInAcRange,P=S.changePasteDataRangeCols,G=S.changePasteDataRangeRows,y=S.moveRangeHaveValue,b=S.selectRange,m=n.cA.rowCount,p=n.cA.colCount,u.rowCount+=M,u.colCount+=C,T=S.adjustedTableRowCount,S=S.adjustedTableColCount,ot(T)||(u.row=0,u.rowCount=T),ot(S)||(u.col=0,u.colCount=S)}n.XI(),T=n.vx(e,i),q.Commands.II(T),i.suspendPaint(),i.suspendEvent(),S=!(i.QI=!0),e&&(e.suspendEvent(),e.QI=!0);try{if(h&&!(z=this.ype(e,i,a,u,v,g,c,y,l,w,s)))S=!0,x=1,A=rt().Exp_InvalidCopyPasteSize,I=i.U5(),u.colCount=I.colCount,u.rowCount=I.rowCount;else if((S=(N=c!==it&&this.fx(b,c,e,i,n.cA,l,v,g,m,p,n.px,s)).raiseInvalidOperation)&&(x=1,A=rt().Exp_InsertCopiedCutCellsNoRange),N.returnFunc)tt(i,w,s,c);else{if(a&&et.Be.Ll(e,a.row,a.col,a.row+a.rowCount-1,a.col+a.colCount-1),k=!a||-1!==a.col&&-1!==a.row,V=c!==it?!N.ignoreTableExpand:k)try{Y={shiftCells:n.bx&&c===nt.InsertShiftCell.down,isCopy:!s,isFirst:!1,isHeaderPaste:n.kse},Z=[],j=ot(N.ignoreTableFooterIndex)?0:N.ignoreTableFooterIndex,W=new et.Range(u.row,u.col,u.rowCount-j,u.colCount),i.tables&&i.tables.yx(e,W,a,$,$,$,{shiftInfo:Y,backupTableResizedArgs:Z}),this.tT.Kh.lCe=Z}catch(t){return S=!0,x=6,A=t.message,void tt(i,w,s,c)}D=f||a,Q=s&&c!==it&&(c===nt.InsertShiftCell.right&&(-1===D.row||D.row===u.row)||c===nt.InsertShiftCell.down&&(-1===D.col||D.col===u.col)),pt(e,f||a,i,u,J={isCutting:s,clipboardText:r.clipboardText,clipboardHtml:r.clipboardHtml,clipboardImage:r.clipboardImage,clipboardPasteOptions:o,ignoreFilteredOutRow:!r.includeFilteredOutRow,ignorePasteSkipInvisibleRange:!0===Q,pasteSpecialOptions:r.pasteSpecialOptions}),s&&c!==it&&(_=D.row,O=D.col,E=D.rowCount,R=D.colCount,K=u.row,X=u.col,c!==nt.InsertShiftCell.right||-1!==D.row&&D.row!==u.row||(t&&d&&O=o.col+o.colCount&&(d.colCount=d.colCount-o.colCount),p=m=g=v=0,n&&r&&(v=r.row<0?0:r.row,g=r.col<0?0:r.col,m=r.row<0?n.getRowCount():r.rowCount,p=r.col<0?n.getColumnCount():r.colCount),b=[],w=[],(y=t.tableNamesObj)&&(e&&y.r===u&&y.c===s&&y.rc===c&&y.cc===f&&(w=y.tableNames),n)&&y.r===v&&y.c===g&&y.rc===m&&y.cc===p&&(b=y.tableNames),M=t._shiftCells,e&&(C=a.Mx,q.Commands.SI(e,u,s,c,f,C?C.MI():[],3,b,!0,M)),i.isCutting&&n&&(S=a.wx,q.Commands.SI(n,v,g,m,p,S?S.MI():[],3,w,!0,M)),(T=t.tT.Hfe)&&tt(e,T,i.isCutting,M),(0,et.handleRestoredTableResizedArgs)(a.lCe)}finally{e.resumePaint()}}return!0},ht.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},N=ht,t.ClipboardPasteRangeUndoAction=N,D=r.ActionBase,e(o,D),o.prototype.execute=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,t=this,n=t.tT,e=n.cachedActions,i=!1;if(t.canExecute()&&e){o=(r=t.Mf).parent.jg(),t.X5(o,!0),a=r.parent.i4(),q.Commands.II(a);try{for(u=!1,s=n.fA&&(Array.isArray(n.fA)?n.fA:[n.fA]),c=0;c\r\n\r\n\x3c!--StartFragment--\x3e",b="\x3c!--EndFragment--\x3e\r\n\r\n",m.substr(0,p.length)===p&&m.substr(m.length-b.length,b.length)===b&&(m=m.substring(p.length,m.length-b.length)),et.mt.Qf())&&(w="",m.substr(0,w.length)===w)&&(m=m.substring(w.length,m.length)),!g&&d&&v&&(g=d.bT([v])),!m&&d&&v&&C(r)&&(m=d.MT([v])),y={sheet:r,sheetName:r.name(),cellRange:f.nx(),pasteOption:f.tT.pasteOption,pasteData:{text:g,html:m},shiftCells:n._shiftCells,fromSheet:d,fromRange:v,isCutting:!!h.isCutting,cancel:!1,action:h.isCutting?nt.ClipboardActionType.cut:nt.ClipboardActionType.copy},(M=l.clipboardImage)&&(y.pasteData.image=M),r.ki(et.Events.ClipboardPasting,y),y.cancel||(i=f.execute(),delete y.cancel,u=!0,r.ki(et.Events.ClipboardPasted,y))):i=f.execute();u&&t.Ax()}finally{q.Commands.xI(a,t.tT),t.q5(o,!0)}}return i},o.prototype.Ax=function(){var t,n,e,i,t,r,o,a,u,s,c,a,t=this,n=t.tT,e=n.cachedActions,i=t.Mf;if(i&&e){if(t=i.getSelections(),r=[],o=i.parent,i.IA(),n.hT)a=n.pastedRanges[0],i.n4(a.row,a.col,a.rowCount,a.colCount);else if(1i.col&&(i=o);return(0,et.Ec)(e.row,e.col,e.rowCount,i.col+i.colCount-e.col)}if(e.col===i.col&&e.colCount===i.colCount){for(r=0;ri.row&&(i=o);return(0,et.Ec)(e.row,e.col,i.row+i.rowCount-e.row,e.colCount)}}}return $},wT:function(t){var n,e,i,r,o,a,r,u,s,c,s,f,l,h,n=[],e=[];if(t&&1<(i=t.length)&&(r=t[0],o=t[i-1],a=r.row===o.row&&r.rowCount===o.rowCount,r=r.col===o.col&&r.colCount===o.colCount,a||r))for(t.sort(a?function(t,n){return t.col-n.col}:function(t,n){return t.row-n.row}),u=1;u=t.getFreeAreaColumnCount(p.SheetArea.rowHeader),s=o<0&&n.row>=t.getFreeAreaRowCount(p.SheetArea.colHeader),u||s)&&((u=t.getCellRect(n.row,n.col,o,a,{needAutoMerge:!0}))&&0=r.height-r.D6)&&(f=new w.Rect(u.x-2,u.y-2,u.width+4,u.height+4),s=void 0,s=o<0&&a<0?r.R1():o<0?r.L1(a):r.B1(o),f=f.getIntersectRect(s),e._6(f.x,f.y,f.width,f.height),i=Nt(t,n))):n.cellTypeHitInfo&&n.cellTypeHitInfo.addRowColumnButtonHitInfo&&(f=void 0,1===(c=n.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType?f=r.XAe():2===c.addRowColumnButtonType&&(f=r.qAe()),e._6(f.x,f.y,f.width,f.height))),i}function D(t){return t.isEditing()}function _(t){return t.endEdit()}function jt(t){return t.frozenRowCount()}function Dt(t){return t.frozenColumnCount()}function O(t,n){return t.getRowCount(n)}function E(t,n){return t.getColumnCount(n)}function R(t){return t.rowViewportIndex}function L(t){return t.colViewportIndex}function F(t){return t.hitTestType}function _t(t){return t.getActiveRowIndex()}function Ot(t){return t.getActiveColumnIndex()}function l(t){return t.keyCode}function h(t){return t.ctrlKey}function B(t){return t.shiftKey}function Et(t){return t.altKey}function Rt(t){return t.metaKey}function P(t){return t.colCount}function Lt(t){return t.rowCount}function G(t,n,e){return{action:t,index:n,sheetArea:e}}function Ft(t,n,e){return S===n.O5(t,e,!0)}function Bt(t,n,e){return S===n.j5(t,e,!0)}function Pt(t,n){return n?t.E6?t.startY-t.movingY:t.movingY-t.startY:t.j6||t.Gxn?t.startX-t.movingX:t.movingX-t.startX}function U(t,n,e,i,r,o,a){var n,r,n={sheet:t,sheetName:n,sheetArea:r,row:e,col:i},r=t.getCellType(e,i);return r&&(n=r.lfe(n,a)),o&&(n.cancel=!1),n}function Gt(t,n,e,i,r,o){var a,u,a=t.Mf,u=U(a,a.name(),a.ui,a.ci,M,!0);if(a.ki(w.Events.LeaveCell,u),u&&!0===u.cancel)return!0;a.O6(n,e,i,r,o),a.ki(w.Events.EnterCell,U(a,a.name(),n,e)),a.ki(w.Events.EnterCellInternal,U(a,a.name(),n,e,M,M,w.Events.EnterCellInternal)),t.PA&&t.PA(n,e)}function Ut(t,n,e,i,r,o,a){var u,n,s,u=t.Mf,n=n.call(u,o.sheetArea);return(a&&!u.getRowVisible(o.index,o.sheetArea)||!a&&!u.getColumnVisible(o.index,o.sheetArea))&&(o.index=e.call(t,o.index,o.sheetArea)),s=(s=i.call(n,o.index))||i.call(n,r)}function Ht(t,n,e,i,r){var o,a,u,n,e,o=i?"movingY":"movingX",a=i?"startY":"startX";t[o]=n,(u=t.j6||t.Gxn||t.E6?t[o]>t[a]:t[o]n&&!e&&(t[o]=n),r!==S&&t[o]>t[a]+r&&(t[o]=t[a]+r)}function zt(t,n){var e,e,e=t.Fi();return 0e.Ay?2:t.FCn&&(e=t.dw(3))&&e.findY(n)?3:1}function Vt(t,n){var e=t.Fi();return 0e.Hy&&n=(n=r.Fi()).x&&e>=n.y&&(r.sw=o,!h.r))if(i.ab=!0,o.tableSelectInfo&&!r.Nde)i.mk(o,r);else if(o.resizeInfo)(fn(r)||_(r))&&i.gk(o);else if(o.dragHeaderToMoveInfo)(fn(r)||_(r))&&i.FTe&&i.FTe(o);else if(o.dragMergeInfo)_(r)&&i.pk&&i.pk(o);else if(s&&s.side&&s.side!==wt)_(r)&&(i.bk&&i.bk(o),i.yk(t));else if(s&&s.side===wt)_(r)&&i.wk&&i.wk(o);else if(o.filterButtonHitInfo)_(r);else{if(c)return c.inBorder?(i.Mk(o),!0):c.inTopLeft||c.inTopRight||c.inBottomLeft||c.inBottomRight?(i.Ck(o),!0):void 0;if(l)i.Sk&&i.Sk(o);else if(r.JA(R(o)<0?-1:a,L(o)<0?-1:u)){if(e=r.Nde,o.tableSelectInfo&&e?(n=this.Tk(o,r),o.tableSelectInfo.tableSelection=n,e.Ak(n)):e&&e.Hce(),i.Ik&&i.Ik(r,o))return!0;if(h=_t(r),s=Ot(r),f){if(c=dn(r,f,o),i.xk(c,f)&&(l=f.sheetArea,y(l)||3===l)&&(a!==h||u!==s)){r.suspendPaint();try{if(!_(r))return;if(d=U(r,r.name(),h,s,M,!0),r.ki(w.Events.LeaveCell,d),d&&!0===d.cancel)return;(v="number"==typeof(null==o?void 0:o.rowSpacingIndex))||(g=r.Ut.getSelections(),m=r.Ut.getSpan(a,u),p=[new w.Range(m.row,m.col,m.rowCount,m.colCount)],r.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),r.EA(g,p),r.t4(a,u,M,M,1),r.ki(w.Events.EnterCell,U(r,r.name(),a,u)),r.ki(w.Events.EnterCellInternal,U(r,r.name(),a,u)),r.jA(g),r.Nk=!0,i.PA&&i.PA(a,u))}finally{r.resumePaint()}}c.processCellAndPaddingMouseDown(f)}if(f&&f.isReservedLocation)return!0;i.yk(t),i.kk(r,o,a,u)}}},i.prototype.kk=function(t,n,e,i){var r,e,i,r=this;try{if(r.Dk=n,D(t)&&!_(t))return}finally{r.Dk=S}y(e)||y(i)||(3===F(n)&&r.PA&&r.PA(e,i),t.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),e=t.Ut.getSelections(),r._k(n,e),i=t.Ut.getSelections(),t.EA(e,i))},i.prototype.xk=function(t,n){return t&&n&&n.isReservedLocation&&(!t.activeOnClick||t.activeOnClick())},i.prototype.Ek=function(t){var n,e,n=this.Mf;return!n||(e=n.Fi(),y(t.x))||y(t.y)||y(t.width)||y(t.height)||t.x+t.width>e.Py+n.Gy(e)+e.zy||t.y+t.height>e.Cy+n.Sy(e)+e.Iy},i.prototype.jk=function(t,n,e,i,r){for(var o,a,u,s,c,f,r,r,l,o=this.Mf,u=0,s=t.options,c=s.length;u=a.Cy+r.Sy(a)))&&r.$A(s):o>jt(r)&&r.$A(r.nI(o))),n.Pk()},i.prototype.Fk=function(t){var n,e,i,r,o,a,u,s,c,t,u,o,n=this,e;n.i9()||(i=n.Mf,o=(r=n.Rk).r9,a=i.getViewportLeftColumn(o),u=i.getViewportRightColumn(o),c=(s=i.bge())===a?a:i.O5(a),t?(u=u.Py+i.Gy(u)))&&i.o9(c):a>Dt(i)&&i.o9(i.r6(a))),n.Pk()},i.prototype.n9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.Fi(),e=jt(t),i=t.frozenTrailingRowCount(),r=this.fk,o=this.Rk,a=o.e9;if(0===a){if(r.y>n.Cy)return t.$A(t.pw()),o.e9=1,!0}else if(1===a){if((u=t._y(1))&&0n.Ay&&s.row>=t.P6()&&s.y+s.height<=n.Ay)return o.e9=2,!0}}else if(2===a&&(u=t._y(1))&&0n.Ay){for(c=t.Sy(n),l=0,h=f=O(t)-i-1;e<=h;h--)if(c<(l+=t.Gt(h))){f=A(h+1,f);break}t.$A(t.j5(f-1))}return o.e9=1,!0}return!1},i.prototype.i9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.frozenTrailingColumnCount(),e=Dt(t),i=t.Fi(),r=this.fk,o=this.Rk,a=o.r9;if(0===a){if(r.x>i.Py)return t.o9(t.Sw()),o.r9=1,!0}else if(1===a){if((u=t.Yy(1))&&0i.Hy&&s.col>=t.G6()&&s.x+s.width<=i.Hy)return o.r9=2,!0}}else if(2===a&&(u=t.Yy(1))&&0i.Hy){for(c=t.Gy(i),l=0,h=f=E(t)-n-1;e<=h;h--)if(c<(l+=t.nn(h))){f=A(h+1,f);break}t.o9(t.O5(f-1))}return o.r9=1,!0}return!1},i.prototype.a9=function(){var t,n,e,i,r,i,o,a,u,u,r,e,i,n,s,t=this;(t.rb||t.u9||t.s9)&&(e=(n=t.Mf).Fi(),i=t.Rk,y(i)||(r=i.e9,i=i.r9,o=t.fk,a=S,0<=r&&0<=i?(a=e.c9(r,i),0===r&&n.Tb===n.frozenRowCount()&&(u=e.c9(1,i),a.height+=u.height),0===i&&n.Ab===n.frozenColumnCount()&&(u=e.c9(r,1),a.width+=u.width)):0<=r?a=e.B1(r):0<=i&&(a=e.L1(i)),a&&(r=(u=n.parent)&&u.options.scrollbarAppearance===p.ScrollbarAppearance.mobile,i=e=0,s=n=!1,o.x<=a.x?(e=o.x-a.x,r&&(s=!0)):o.x>=a.x+a.width?(0===(e=o.x-(a.x+a.width))&&(e=50),r&&(s=!0)):r&&o.x===a.x+a.width-1&&(e=50,s=!0),o.y<=a.y?(i=o.y-a.y,r&&(n=!0)):o.y>=a.y+a.height&&(i=o.y-(a.y+a.height),r)&&(n=!0),u&&r&&(n&&(u.Xb.qy(p.ScrollbarState.show),u.ib.$y(!0)),s)&&(u.zb.qy(p.ScrollbarState.show),u.ib.$y(!1)),t.lk().ik(t.f9(e)),t.hk().ik(t.f9(i)))))},i.prototype.l9=function(){this.lk().rk(),this.hk().rk()},i.prototype.gk=function(t){var n,e,i,r,o,o,e,o,i,t,n=this,e=s.h9.prototype,i=n.Mf,r=t.resizeInfo;r.action===k||r.action===N?(o=Ut(n,i.d9,n.v9,e.findRow,t.row,r,!0),r.startY=o.y+(r.E6?o.height:0)):(o=Ut(n,i.m9,n.g9,e.findCol,t.col,r,!1),r.startX=o.x+(r.j6||r.Gxn?o.width:0)),e=i.parent,o=t.x,i=t.y,!e||(1!==(t=e.options.showResizeTip)||r.action!==j&&r.action!==yt)&&(2!==t||r.action!==k&&r.action!==N)&&3!==t||(i-30<0?i+=15:i-=30,e.Tw(Y.j0(n.p9()),o,i)),n.isResizing=!0,n.rb=!0,n.ctrl&&(n.b9=!0)},i.prototype.y9=function(){var t,n,e,i,r,o,r,a,u,s,e,r,s,t=this,n=t.Mf,e=n.sw,i=e.resizeInfo,r=t.fk,o=r.x,r=r.y,a=n.Fi(),u=n.parent,s=i.sheetArea;i&&t.rb&&t.isResizing&&(e.x===o&&e.y===r||(i.action===k||i.action===N?un(n,i,s,r,t.b9):sn(n,i,s,o,t.b9),r=(e=n.Dn).J(),e.FA(a.x,a.y,a.width,a.height),e.jy(r),!u)||(1!==(s=u.options.showResizeTip)||i.action!==j&&i.action!==yt)&&(2!==s||i.action!==k&&i.action!==N)&&3!==s||u.ny(t.w9(i)))},i.prototype.C9=function(){var t,n,e,i,r,o,a,i,u,s,i,u,i,t=this;t.isResizing=!1,n=!(t.rb=!1),i=(e=t.Mf).sw,(r=i.resizeInfo)&&(t.iy(),r.action===k||r.action===N?y(r.movingY)?n=!1:(o=x(0,Pt(r,!0)/e.zoom()),a=[],i="resizeRow",e.S9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.col&&(1===r.sheetArea?a.push({firstRow:r.index,lastRow:r.index}):(n=e.JS(n),a.push({firstRow:n.row,lastRow:n.row+Lt(n)-1})))}):a.push({firstRow:r.index,lastRow:r.index}),nn(e,r,a,t.b9)&&(i="splitResizeRow"),u=1===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),rows:a,size:o,columnHeader:u})):y(r.movingX)?n=!1:(o=x(0,Pt(r)/e.zoom()),s=[],i="resizeColumn",e.T9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.row&&(n=e.JS(n),2===r.sheetArea?s.push({firstCol:r.index,lastCol:r.index}):s.push({firstCol:n.col,lastCol:n.col+P(n)-1}))}):s.push({firstCol:r.index,lastCol:r.index}),an(e,r,s,t.b9)&&(i="splitResizeColumn"),u=2===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),columns:s,size:o,rowHeader:u})),(i=e.hitTest(t.fk.x,t.fk.y))&&t.cw(i),n||e.repaint(),t.b9=!1)},i.prototype.A9=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,d,c,e=0,i=0,r=0,o=0,a=this,u=a.Mf,s=u.H3,c=jt(u),f=Dt(u),h=F(t),d=1===h&&u.NMi&&u.NMi.options.isDesignMode&&t.rowt.pw()||2===n&&e<2&&0t.Sw()||2===n&&e<2&&0=r?r-1:a.row}else if(a=Yt(i,n=this.nD(),o)){if(e=i.Fi(),r=a.row,1===n&&oe.Ay&&r>i.getLastFullyVisibleRow()?i.nI(r)||r:r}return-1},i.prototype.K9=function(t,n,e){var i,r,o,a,u,r,n,e,r,u;if(void 0===n&&(n=p.SheetArea.viewport),r=(i=this.Mf).Ut,o=i.options.rightToLeft,a=this.fk.x,n===p.SheetArea.rowHeader){if(u=Qt(i,a))return r=r.getFreeAreaColumnCount(n),e&&0=r?r-1:u.col}else if(u=Wt(i,n=this.eD(),a)){if(e=i.Fi(),r=u.col,1===n&&ae.BA:ae.Hy&&r>i.getLastFullyVisibleColumn()?i.r6(r)||r:r}return-1},i.prototype.f9=function(t){var n,e,n=0;return T(t)||0===t||(e=t<0,n=it(500/I(t)),200<(n=x(20,10*n))&&(n=200),e&&(n=-n)),n},i.prototype.v9=function(t,n){var e,n=this.Mf.nI(t,n);return n!==S?n:t},i.prototype.g9=function(t,n){var e,n=this.Mf.r6(t,n);return n!==S?n:t},i.prototype.oD=function(t,n,e){for(var i=this.Mf;n=o.getFreeAreaRowCount(p.SheetArea.colHeader)?c=(c=r.dD(o,t,i,1,n))||r.cD(o,t,i,1,e):0<=R(t)&&L(t)<0&&u&&t.col>=o.getFreeAreaRowCount(p.SheetArea.rowHeader)?c=(c=r.cD(o,t,i,2,e))||r.dD(o,t,i,2,n):R(t)<0&&L(t)<0?o.P6(2)===S&&I(e-a.qC)<=i?(h=o._y(1))&&0=a.x)return!0}else if(a.contains(e,i))return!0;if(1===t)if((u=r._y(t))&&0(1=c.x&&a.y>=c.y+c.qC&&a.x+a.width<=c.Py&&a.y+a.height<=c.Ay+c.Iy:t===p.SheetArea.colHeader?e=a.x>=c.x+c.XC&&a.y>=c.y&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Cy:t===p.SheetArea.viewport&&(e=l?a.x>=c.x&&a.y>=c.T6&&a.x+a.width<=c.BA&&a.y+a.height<=c.Ay+c.Iy:a.x>=c.b6&&a.y>=c.T6&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Ay+c.Iy),a&&0=I(r)?r=0:i=0),a&&(i=(s=f.wge(i,r,1)).detailY,r=s.detailX)):(a=t.wheelDeltaY,c=t.wheelDeltaX,e||(I(a)>=I(c)?c=0:a=0),(g.safari||g.chrome)&&(u=g.safari?-4:-40,i=(s=f.wge(a,c,u)).detailY,r=s.detailX)),(0!==i||0!==r)&&(e=f.parent.ib.Mg(f,t,et(i,10)||0,et(r,10)||0),n.iy(),!!e)&&void 0},f.G_=function(t){var n={e:t,r:S};if(b.Worksheet.et(f,"preProcessMouseOut",n),!n.r)return i.yg(t)},f.U_=function(t){var n,e,e,n=f.sw,e={e:t,r:S,target:n};b.Worksheet.et(f,"preProcessMouseDbClick",e),e.r||n&&(e=!1,3===F(n)?r(i,t):e=i.j_(n),e||f.ki(w.Events.CellDoubleClick,U(f,f.name(),n.row,n.col,F(n))))},n=i.tk,t.bind(Q+"."+n,function(t){return f.B_(t)}).bind(J+"."+n,function(t){return f.F_(t)}).bind(K+"."+n,function(t){return f.L_(t)}).bind(X+"."+n,function(t){return f.P_(t)}).bind(tt+"."+n,function(t){return f.G_(t)}).bind(nt+"."+n,function(t){return f.U_(t)}),g.mozilla)&&(e="onwheel"in document?$:q,t.bind(e+"."+n,function(t){return f.P_(t)}))}}),t.Hv.ch("worksheet-event",{preProcessMouseMove:function(t){var n,n,n=this.Vv.getActiveSheet();n&&(n=n.rt)&&n.ab&&n.rb&&n.isResizing&&(n.pg(t.e),t.r=!1)}})},"./dist/core/worksheet/worksheet-formatter.js":function(t,n,u){"use strict";var e,i,r,o,a,l,s,h,c,d,v,g;function f(t,n,e,i,r){var o,n,a,o=n.getRange(e,i);if(n.source&&(t=n.source.Mf),n=o.row,a=o.col,r)if(1===o.rowCount)a=i;else{if(1!==o.colCount)return d;n=e}return m(t,n,a)}function m(t,n,e){var i,r,o,r,t,r;return t&&t.getFormatter?(i=t.getFormatter(n,e))&&"General"!==i?y(i,function(t,n){return a.Be.Re(t,n)}):(r=t.getStyle(n,e),(o=r&&r._autoFormatter)?y(o.formatCached,function(t,n){return o.format(t)}):(t=(r=t.pivotTables)&&r.findPivotTable(n,e))&&(i=(r=t.hqt(n,e))&&r.formatter)?y(i,function(t,n){return a.Be.Re(t,n)}):d):d}function p(t,n){var n=s(t,"E")&&n(1,t);return n&&s(n,"E")}function b(t,n){var n=n(123,t);return s(n,"123")&&0<(n=n.replace(/[1230. ]+/g,"")).length}function w(t,n){var n;if(t=t.replace("DBNum",""),e.Common.$T.qT("[mMdDyYhHseg]").test(t))return n=n(123,t),!s(n,"123")}function y(t,n){var e,i,r,o;if("string"!=typeof t||"="===t[0])return d;if(e={f:t},w(t,n)){if(i=n(44955,t),r=n(44955.11,t),o=n(45323,t),i!==r)return e.t=i===o?6:8,e;if(i!==o)return e.t=7,e}if(s(t,"%"))e.t=0;else if(s(t,"/"))e.t=4;else if(p(t,n))e.t=3;else if(b(t,n))e.t=5;else if(s(t,"0")||s(t,"DBNum",!0))e.t=2;else if(s(t,"GENERAL",!0))e.t=1;else{if(!s(t,"@"))return d;e.t=9}return e}function M(t,n,e,i,r){var e,t,e=e.value;if(e&&2===e.type)return{f:"0.00%",t:0};if(e&&9===e.type)if(0===e.operatorType||1===e.operatorType){if(e.value&&2===e.value.type)return{f:"0.00%",t:0}}else if(2===e.operatorType)return(t=M(t,n,e,i,r))&&0===t.t&&(t.f=t.f.replace("%","00%")),t;return d}function C(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);if(7===o.t||8===o.t){if(7===t.t||8===t.t)return d;if(6===t.t)return 8===o.t?o:{f:o.f+" "+t.f,t:8}}else if(6===o.t){if(8===t.t)return t;if(7===t.t)return{f:t.f+" "+o.f,t:8}}return 0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:1!==o.t?o:t}function S(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);return 9===o.t?o:9===t.t?t:5<=o.t?5<=t.t?d:o:5<=t.t?t:3===o.t?o:3===t.t?t:4===o.t?o:4===t.t?t:2!==o.t&&1!==o.t&&2!==t.t&&1!==t.t&&0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:d}function T(t,n,e,i,r){var o,a,u,s,c,f,o=e.functionName&&e.functionName.toUpperCase(),a=g[o];if(l(v[o]))return"number"==typeof a?x(t,n,f=e.arguments[a],i,r):a?a(t,n,e,i,r):d;switch(v[o]){case 6:u="H:mm:ss";break;case 7:u=h.Fe().DateTimeFormat.shortDatePattern||"M/d/yyyy";break;case 8:u=h.Fe().DateTimeFormat.defaultDatePattern||"M/d/yyyy H:mm:ss";break;case 0:u="0.00%";break;case 5:s=h.Fe().NumberFormat.currencySymbol||"$",u=(c=h.Fe().predefinedFormats.Currency)&&c[c.length-1]||"".concat(s,"#,##0.00_);[Red](").concat(s,"#,##0.00)")}return{f:u,t:v[o]}}function x(t,n,e,i,r){if(e)if(9===e.type){if(2===e.operatorType)return M(t,n,e,i,r);if(3===e.operatorType||4===e.operatorType)return C(t,n,e,i,r);if(5===e.operatorType||6===e.operatorType||7===e.operatorType)return S(t,n,e,i,r);if(0===e.operatorType||1===e.operatorType)return x(t,n,e.value,i,r)}else{if(1===e.type||13===e.type||22===e.type)return f(t,e,i,r);if(7===e.type)return T(t,n,e,i,r);if(10===e.type)return x(t,n,e.value,i,r)}return d}function A(t,n,e,i,r){var o=t.getFormatter(i,r);(!o||o.toUpperCase&&"GENERAL"===o.toUpperCase())&&(e=t.oMt.Fyt(i,r)||e,I(t,i,r,x(t,n,e,i,r)))}function I(t,n,e,i){var r=t.Z_(n,e)||new o.Style;(i="string"==typeof i?y(i,function(t,n){return a.Be.Re(t,n)}):i)&&1!==i.t?r._autoFormatter=new c(i.f):delete r._autoFormatter,delete r.formatter,t.setStyle(n,e,r)}Object.defineProperty(n,"__esModule",{value:!0}),n.Ffe=n.Fue=n.Pue=void 0,e=u("Common"),i=u("./dist/core/util/domUtil.js"),r=u("./dist/core/worksheet/worksheet.js"),o=u("./dist/core/worksheet/style.js"),a=u("./dist/core/util/common.js"),l=e.Common.lt.ht,s=e.Common.zf.OS,h=e.Common.CultureManager,c=e.Formatter&&e.Formatter.GeneralFormatter,d={t:1},i.GC$.extend(r.Worksheet.prototype,{getFormatter:function(t,n,e){return this.l0(t,n,"formatter",e)},setFormatter:function(t,n,e,i){var r=this.Z_(t,n,i),r;(r=r||new o.Style).formatter=e,this.setStyle(t,n,r,i)}}),r.Worksheet.ch("formatter",{settingText:function(t){var n,n,n=a.util.Kf(t.value);c&&n&&(n={},(new c).getPreferredDisplayFormatter(t.value,n),"number"==typeof n.value)&&(t.value=n.value)}}),v={NOW:8,TODAY:7,TIME:6,DATE:7,IRR:0,XIRR:0,MIRR:0,RATE:0,YIELD:0,INTRATE:0,NPV:5,XNPV:5},(g={SUM:0,MAX:0,MIN:0,AVEDEV:0,FLOOR:0,ROUND:0,ROUNDUP:0,ROUNDDOWN:0,INT:0,TRUNC:0}).SINGLE=g["@"]=function(t,n,e,i,r){var e=e.arguments[0];return!e||1!==e.type&&13!==e.type?d:f(t,e,i,r,!0)},g.INDIRECT=g.OFFSET=g.INDEX=function(i,t,n,r,o){var e,a,e=u("SheetsCalc"),a=d;return e&&(n.Gue=function(t,n,e){a=l(n)?f(i,t,r,o):m(e&&e.Mf||i,t,n)},e.evaluateExpression(i,n,r,o)),a},n.Pue=x,n.Fue=A,n.Ffe=I},"./dist/core/worksheet/worksheet-json.js":function(i,t,n){"use strict";var t,Z,W,Q,st,J,ct,y,ft,r,lt,e,ht,p,n,dt,n,u,C,o,Ct,a,K,X,vt,q,gt,S,$,mt,St,l,h,s,d,Tt,w,j,D,c,v,xt,N,_,pt,g,M,T,k,f,At,It,Nt,m,b,kt,jt,Dt,x,rt,tt,nt,bt,wt,A,I,O,yt,n;function Mt(t,n){return mt(t)?n:mt(n)?t:Math.max(t,n)}function E(t,n,e,i){var t,t;t.dataTable&&(n.dataTable||(n.dataTable={}),t=t.dataTable[e])&&(n.dataTable[e]||(n.dataTable[e]={}),t=t[i])&&(n.dataTable[e][i]||(n.dataTable[e][i]={}),t.formula)&&(n.dataTable[e][i].formula=t.formula)}function ot(t,n,e,i,r){var o,a,u,s,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),u=o.W_(ft.SheetArea.colHeader),s=o.Q_(!0),c=o.Q_(!0,ft.SheetArea.colHeader),f=o.K_(),l=o.K_(ft.SheetArea.colHeader),h=a.getColumnCount();for(!r&&mt(n.colHeaderData)?n.colHeaderData={}:o.ap=e,u.setRowCount(e),d=0;d=+(o=a[i]).min&&t<=+o.max){n=o,e=i;break}return{colItem:n,colItemIndex:e}},o=function(t){var t=r(t),n=t.colItem,t=t.colItemIndex;if(n)return i(n,t)},s=n.col,c=n.col+n.colCount;su.maxCol?o(s+1):u)&<.Util.cme(t,e,s,u.columnSize,u.hidden,u.colStyle)}function _t(t,n){var n,e,i,n=w(n,m);n&&(e=t.spanModels[3],(i=n.c_).forEach(function(t){var t=N(t.ref);e.find(t.row,t.col)||e.add(t)}))}function Ot(t,o,a){var n,u;if(0=v.col&&s.col<=v.col+v.colCount-1&&s.row>=v.row&&s.row<=v.row+v.rowCount-1&&(l=c);if(l<0&&0t+e)||-1!==n&&(a.coln+i)))return!0;return!1},n.prototype.eE=function(t,n,e,i){for(var r,o,a,u,r=!1,o=this.spans,a=0,u=o.length;a=this.startColumn&&t<=this.endColumn},g.Q8=Wt,e.prototype.getProperty=function(t){return this[t]},e.prototype.setProperty=function(t,n,e){e&&(e[0].push(t),e[1]=this[t],e[2]=n),this[t]=n},e.prototype.clear=function(t){t&&(t.push(["selections",this.get()]),t.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=[],this.activeSelectedRangeIndex=-1},e.prototype.add=function(t,n,e,i,r,o){r&&(r.push(["selections",this.get()]),r.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex]));var r=this,a=r.selectionPolicy,u=r.selectionUnit;0===a?(e=T(e,1),i=T(i,1),r.clear()):1===a&&r.clear(),1===u?i=n=-1:2===u&&(e=t=-1),r.selections.push((0,it.Ec)(t,n,e,i)),!1!==o&&(r.activeSelectedRangeIndex=r.selections.length-1)},e.prototype.get=function(){return[].concat(this.selections)},e.prototype.set=function(t,n){n&&(n.push(["selections",this.get()]),n.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=t,this.activeSelectedRangeIndex>=t.length&&(this.activeSelectedRangeIndex=0)},e.prototype.toJSON=function(){var t,n,e,i,r,o,a,t=this,n={},e=t.selectionPolicy,i=t.selectionUnit,r=t.activeSelectedRangeIndex,o=t.selections.length;for(2!==e&&(n.selectionPolicy=e),0!==i&&(n.selectionUnit=i),0!==r&&(n.activeSelectedRangeIndex=r),n.length=o,a=0;ae&&(e=o.height,i=r);return q(i)&&this[i]},i.prototype.findLargestCol=function(t){var n,e,i,r,o,n=this.length;if(0===n)return at;for(r=e=0;re&&(e=o.width,i=r);return q(i)&&this[i]},i.prototype.findLargestRange=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this.length;if(0===e)return at;for(i=t.row,r=t.col,o=t.rowCount,a=t.colCount,c=s=0;cs&&(s=l.height,u=c);else for(f=t.col;fs&&(s=l.width,u=c);return q(u)&&this[u]},i.prototype.findX=function(t,n){return Jt(this,ut,ut,t,ut,n)},i.prototype.findY=function(t){return Jt(this,ut,ut,ut,t)},i.prototype.findNearX=function(t,n){return Kt(this,t,ut,n)},i.prototype.findNearY=function(t,n){return Kt(this,ut,t,n)},i.prototype.findXByExactY=function(t,n,e){var i,t,r,o,a,u,i=this.findX(t,!0);if(!Array.isArray(i))return i;for(t=i.length,r=e.y,o=e.height,a=t-1;0<=a;a--)if(n>r+(u=i[a]).y*o)return u},g.h9=i,Xt.prototype.contains=function(t,n){var e=this;return tr.I8&&(r.I8=n),o},o.prototype.CE=function(t,n,e,i){var r,o;if(t)return r=this,o=t[n],e&&(o=o||(t[n]={}),!i)&&r.x8=a&&w.push(g)))}return w},e.prototype.C7=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,f,y,M,C,e=this,i=e.Mf,r=i.Jt,o=e.Vx;if(0===o.length)return[];for(a=o[0].col,u=o[o.length-1].col,s=i.Ut,m=i.getColumnCount(),y=[],n=n||nt.q.J(),M=i.options.rightToLeft,C=1;C<100;C++){if(m<=(p=u+C))return y;if(s.findSpan(t,p)||i.Cb&&i.Cb.D7(t,p,bt.SheetArea.viewport))return y;f=r.$t(t,p,3,1),0<(l=r.Kt(p))&&!Mt(f)&&(4!==(d=(c=r.o2e(t,p)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=S(d,f,Ct,c.textOrientation)),h=r.Gt(t),v=c.cellType||e.f7,w=nt.Be.Cl(i,c,f,g={},{row:t,col:p,sheet:i}),f={data:f,style:c,width:l,text:w=g.content&&0=l+h))for(y=0,M=(w=r.gO(e)).length;yv+m&&(T=0,A=v+m),t.moveTo(x+S-1,c-1),t.lineTo(A+T,c-1),t.stroke());if(I=o.frozenColumnCount(),F&&(1!==f||0!==I||o.Ab<=d||o.Ab>=d+a))for(k=0,j=(N=r.pO(n)).length;kg+p&&(O=0,R=g+p),D=o.options.rightToLeft,t.moveTo(D?u.x+u.width-u.XC-1:s-1,E+_-1),t.lineTo(D?u.x+u.width-u.XC-1:s-1,R+O),t.stroke());t.beginPath(),t.restore()}},i.prototype.gO=function(t){for(var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,s,m,h,d,v,g,n=this.Mf,e=n.Ut.getSelections(),i=e.length,r=n.Yy(t),o=[],a=n.options.rightToLeft,u={},c=0;c=m.x+xt(m)||_+E<=m.y||_>=m.y+Tt(m))&&(!C||D>m.x+xt(m))&&!A.isOutside)return"continue";if(0===O||0===E)return"continue";if(!H&&1===g&&e=P.iw&&(0===s&&P.Ky+P.Sx>f||0c)&&j=x(n)&&(t.r=n.P6(),e=!0),t.c<0?t.c=n.k9():t.c>=T(n)&&(t.c=n.G6(),e=!0),e&&((e=n.Ut.getSpan(t.r,t.c)).row!==t.r&&(t.r=e.row),e.col!==t.c)&&(t.c=e.col)},CA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.col,c=a.col+I(a)-1,f=t,l=n;f=(h=e.CR(f,l)).r,!(s<=(l=h.c));){if(o===r&&f===t&&l<=n)return;l=u<=--f?c+1:(h=e.JS(e.U5(3)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.col,c=h.col+I(h)-1,f=h.row+A(h)-1,h.col+I(h))}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},SA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.col,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.TR(f,l)).r,!((l=h.c)<=c);){if(o===r&&f===t&&n<=l)return;l=++f<=s?u-1:(h=e.JS(e.U5(4)),o=i.getActiveSelectedRangeIndex(),u=h.col,s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row,h.col-1)}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},TA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col,f=t,l=n;f=(h=e.AR(f,l)).r,l=h.c,!(u<=f);){if(o===r&&l===n&&f<=t)return;c<=--l?f=s+1:(h=e.JS(e.U5(1)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.row+A(h)-1,c=h.col,f=h.row+A(h),l=h.col+I(h)-1)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},AA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.IR(f,l)).r,l=h.c,!(f<=s);){if(o===r&&l===n&&t<=f)return;++l<=c?f=u-1:(h=e.JS(e.U5(2)),o=i.getActiveSelectedRangeIndex(),s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row-1,l=h.col)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},gA:function(t,n,e){var i,r,o,o,e,t,i=this,o=i.tables,r=e&&(r=o&&o.xR(t,n))||i.uI(t,n,e,i.qA||0);!r||r.row===t&&r.col===n||(o=r.row,e=r.col,t=r.leadingCellRow,i.dR(o,e)&&(i.qA=t,i.hR=e,i.XA(o,e)))},uI:function(t,n,e,i){var r,o,a,u,s,c,f,r=this,o=x(r),a=T(r),s=n;if(s===a-1&&!e||0===o||0===a)return M;for(c=r.NR(i,s),f=i,e||r.mR(c),u=c.r,s=c.c;s===a&&e;){if(t===o-1&&t===u&&(!r.getRowVisible(u,3)||r.Gt(u,3)<=0))return M;if(i=u=o<=(u=r.j5(u,3,!0))||d(u)?r.j5(-1,3,!0):u,u=(c=r.NR(i,-1)).r,s=c.c,u===t&&n=(o=o[0]).col&&(r=o.col,i=o.row),e.dR(i,r)))return{r:i,c:r};return{r:i,c:r}},CR:function(t,n){for(var e,i,r,e=this;0<=n&&!(--n<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;n>=i.col&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},NR:function(t,n){for(var e,i,r,o,a,a,u,e=this,i=T(e),o=n;o(u=a[0]).col?o=C(o,u.col+I(u)):r=u.row),e.dR(r,o)))return{r:r,c:o};return{r:r,c:o}},TR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=T(e);no.col?n=C(n,o.col+I(o)):t=o.row}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},dR:function(t,n){var e,i,r,o,e=this;return!!e.JA(t,n)&&(i=0<=t&&t=(i=i[0]).row&&(t=i.row,n=i.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},AR:function(t,n){for(var e,i,r,e=this;0<=t&&!(--t<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;t>=i.row&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},pR:function(t,n){for(var e,i,r,r,o,e=this,i=x(e);t(o=r[0]).row?t=C(t,o.row+A(o)):n=o.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},IR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=x(e);to.row?t=C(t,o.row+A(o)):n=o.col}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},D9:function(t,n,e,i,r,o){var a=this;a.Ut.do("addSelection",t,n,e,i,M,o),r&&a.My<=0&&a.Dn.E1(M,M,M,M,o)},L9:function(t,n,e){var i,t,n,r,o,t,a,u,i=this,t=i.xA(t,n,i.ui,i.ci),n=t.row,r=t.col,o=A(t),t=I(t),a=i.selectionPolicy(),u=i.selectionUnit();0!==a&&(1===a&&i.Ut.do("clearSelection"),1===u?t=r=-1:2===u&&(o=n=-1),i.kA(n,r,o,t,e))},xA:function(t,n,e,i,r,o){var a,u,e,i,u,t,a=this;return d(e)&&(e=a.ui),d(i)&&(i=a.ci),e=(u=a.Ut).getSpan(e,i,o),i=u.getSpan(t,n,o),r&&e.equals(i)?new y.Range(e.row,e.col,1,1):(u=e.union(i),(t=a.Ut.getSpans(M,o))&&0=i.sB()&&(f=i.nI(i.sB())),u=i.xA(f,o,n,e),s=S(r,u.row),i=S(o,u.col),f=S(r+a-1,u.row+A(u)-1),n=C(o+I(t)-1,u.col+I(u)-1),(0,y.Ec)(s,i,l=f-s+1,h=n-i+1))},eB:function(t,n,e){var i,r,o,a,u,s,u,s,i,u,n,e,c,f,i=this,r=t.row,o=t.col,a=A(t),u=i.tI();return d(u)?M:(s=i._y(1),i.$A(u),(u=i.nI(r+a-1+p(s)))=i.sB()&&(u=i.Tb>=i.cB()?i.sB():i.nI(i.sB())),s=i.xA(u,o,n,e),i=C(r,s.row),u=S(o,s.col),n=C(r+a-1,s.row+A(s)-1),e=C(o+I(t)-1,s.col+I(s)-1),(0,y.Ec)(i,u,c=n-i+1,f=e-u+1))},QA:function(){var t,n,n,e,i,r,o,t=this,n=t._y(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenRowCount())?t.j5(n-1):t.N9(),i=0,r=t.Tb,o=t.Fi();et.Sy(o)););return r},fB:function(){var t,n,n,e,i,r,o,t=this,n=t.Yy(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenColumnCount())?t.O5(n-1):t.k9(),i=0,r=t.Ab,o=t.Fi();et.Gy(o)););return r},tI:function(){var t,n,t,t=this._y(1),n=p(t);return t&&0t.Gy(n));)o--;return o=0n.toLowerCase():n=n&&o.index=n+e&&(o.index-=e))}Object.defineProperty(t,"__esModule",{value:!0}),e=o("Common"),t=o("./dist/core/util/domUtil.js"),y=o("./dist/core/util/common.js"),w=o("./dist/core/worksheet/worksheet.js"),n=o("CalcEngine"),M=!!n,n=o("./dist/core/core.ns.js"),C=o("./dist/core/core.enum.js"),S=o("./dist/core/excel-io-util/range-parser.js"),n=new e.Common.ResourceManager(n.SR,"Sheets"),b=n.getResource.bind(n),u=e.Common.ct.o0,h=e.Common.Uf,T=e.Common.lt.ht,s="boolean",c="string",x="number",f="backColor",l="fontColor",A=void 0,t.GC$.extend(w.Worksheet.prototype,{sortRange:function(t,n,e,i,r,o,a,u,s){var c,f,f,l,h,d,v,l,h,l,h,g,h,l,m,p,h,g,l,c=!1;if(0===arguments.length){if(!(f=this.getSortState()))return!1;t=f.row,n=f.col,e=f.rowCount,i=f.colCount,o=f.sortConditions,r=f.byRow,c=!0}if(l=(f=this).getRowCount(),h=f.getColumnCount(),-1===e&&(e=l),-1===n&&(n=0),-1===i&&(i=h),(t=-1===t?0:t)<0||l<=t||n<0||h<=n||e<0||l=e.row+e.rowCount))if(t<=e.row){if(e.row=e.row+n,!e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},kpe:function(t,n){var e,i,r,o,a,e=this.getSortState();if(e&&!(t>=e.col+e.colCount))if(t<=e.col){if(e.col=e.col+n,e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},_pe:function(t,n){var e,i,r,o,a,u,e=this.getSortState();if(e&&(i=[],!(t>=e.row+e.rowCount))){if(t+n<=e.row){if(e.row=e.row-n,!e.byRow)for(r=0,o=e.sortConditions;r=e.row&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=e.col+e.colCount))){if(t+n<=e.col){if(e.col=e.col-n,e.byRow)for(r=0,o=e.sortConditions;r=e.col&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=a&&t.minY>=u&&g.push(t)}),o&&o.forEach(function(t){i.Rme(t),v.gF(t.minX,t.minY,1,1),t.minX>=f&&t.minY>=l&&d.Lme(t,!0)}),g.forEach(function(t){var t={minX:t.minX+f-a,minY:t.minY+l-u,maxX:t.maxX+f-a,maxY:t.maxY+l-u,isValid:t.isValid};d.Bme(t,!0)})):(o&&o.forEach(function(t){t.minX>=f&&t.minY>=l?d.Rme(t,!0,!0):(d.Rme(t),v.gF(t.minX,t.minY,1,1))}),r&&r.forEach(function(t){var n,e,i,r,o;if(t.minX>=a&&t.minY>=u)(n={minX:t.minX+f-a,minY:t.minY+l-u,maxX:J(t.maxX+f-a,f+s-1),maxY:J(t.maxY+l-u,l+c-1),isValid:t.isValid}).isValid||(n.maxX=n.minX,n.maxY=n.minY),d&&d.Bme(n,!0);else if(t.isValid)for(e=J(t.maxX,a+s-1),i=J(t.maxY,u+c-1),r=K(t.minX,a);r<=e;r++)for(h[r]=h[r]||{},o=K(t.minY,u);o<=i;o++)h[r][o]=1})),h}function at(t,n,e,i,r,o,a,u){var s=z("SheetsCalc");s&&s.CalcOperatorAdjustor.moveFormula(t,n,e,i,r,o,a,u)}function ut(t,n,e,i,r,o,a,u,s){var c,f,l,n,h,d,v,g,m,c={};if(t===n&&t.tables)for(f=X(e,i,r,o),l=X(a,u,r,o),h=(n=t.tables).all(),d=void 0,v=0,g=(h=n.zB?h.concat(n.zB):h).length;v=s&&t.minY>=c)if(!t.isValid||t.maxX=o&&t.minY>=a)b.Rme(t,!0,!0,!0);else if(t.isValid)for(n=J(t.maxX,o+l-1),e=J(t.maxY,a+h-1),i=K(t.minX,o);i<=n;i++)for(g[i]=g[i]||{},r=K(t.minY,a);r<=e;r++)g[i][r]=t})),this.Ope(w=function(t,n,e,i){var r,o,a,u,a,a,s,r=3===i,a=d?0:1,u=t.Ut;return r?o=v&&v[n]&&v[n][e]?N:t.getValueIgnoreDefault(n,e,i,a):(o=u.getValue(n,e,i,!0,a),1===i&&B(o)&&f.UB&&(a=t.H3)&&a._dataSource&&(a=u.q_(!1,3,e),s=t.options.colHeaderAutoTextIndex,a)&&(0<=s&&n===s||-1===s&&n===q(t,i)-1)&&(o=a.displayName||a.name)),B(o)||(r?t.YI(n,e,Q,i,!1,!0):u.do("setValue",n,e,Q,i,!0,!0)),o},y=function(t,n,e,i,r){var o=g&&g[n]&&g[n][e];B(i)?o&&o.isValid||t.YI(n,e,Q,r,!!t.HB,!0):(o&&o.isValid&&b.Rme(o,!0,u.Ut.G8),t.YI(n,e,i,r,!!t.HB,!0))}),(m=m.map(function(t){p.Lme(t,!0);var n={minX:t.minX+o-s,minY:t.minY+a-c,maxX:t.maxX+o-s,maxY:t.maxY+a-c,_v:t._v,isValid:t.isValid};return t._v=null,n})).forEach(function(t){t._v?b.setArray(t.minX,t.minY,t.maxX-t.minX+1,t.maxY-t.minY+1,t._v,!1,!0):b.Bme(t,!0)})},e.prototype.copyMoveStyle=function(u){var g,t,t,m,s,p,t,c,b,w,n,e,g=this,m=this.isMove,s=this.options.ignoreSheet,p=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.advancedPasteOptions,c=null==t?void 0:t.usingSourceTheme,b=null==t?void 0:t.noBorder,w=null==t?void 0:t.numberFormats,n,e;this.Ope(function(t,n,e,i){var r,o,a,r=(3===i||B(i))&&u&&u[n]&&u[n][e],a=t.Z_(n,e,i);return c?(o=t.getActualStyle(n,e,i,N,{notClone:N,isForFilter:N,ignoreSheet:s}))&&(delete o.themeFont,a||delete o.parentName):(o=t.getCompositeStyle(n,e,i,N,N,N,{hasTableStyle:r,ignoreSheet:s}))&&!a&&delete o.parentName,m&&o&&_(t,n,e,Q,i),o},function(t,n,e,i,r,o){var a,a,u,s,c,f,l,h,d,a,v;p&&g.jpe.get(n,e)||(w&&(a=i.formatter,(i=(i=t.getStyle(n,e))||new C.Style).formatter=a),b&&(u=(a=t.getCompositeStyle(n,e)).diagonalUp,s=a.diagonalDown,c=a.borderTop,f=a.borderBottom,l=a.borderLeft,h=a.borderRight,d=a.borderHorizontal,a=a.borderVertical,Object.assign(i,{diagonalUp:u,diagonalDown:s,borderTop:c,borderBottom:f,borderLeft:l,borderRight:h,borderHorizontal:d,borderVertical:a})),_(t,n,e,i,r),Z.Worksheet.et(t,"afterCopyMoveStyle",v={target:{sheet:t,row:n,col:e},source:o,isMove:m}))})},e.prototype.copyMoveValidator=function(){var t,s,a,u,c,f,l,h,d,v,n,e,i,r,r,r,g,o,m,t=this,s=t.src,a=t.srcRow,u=t.srcColumn,c=t.dest,f=t.copyRowCount,l=t.copyColumnCount,h=t.isMove,d=t.destRow,v=t.destColumn,n=s.b8.YB;for(e in n)(i=n[e])&&(r=i._S,h&&s===c&&r&&(r=r.some(function(t){return t.contains(a,u,f,l)&&!t.equals(new F.Range(a,u,f,l))}),i.Epe=r),r=i.condition())&&r.initExpression();h&&y(s,c)&&(g=new b.Common.rbush),this.Ope(o=function(t,n,e){var i,r,o,o,i=t.getDataValidator(n,e,3);return i&&(h&&(r=void 0,!i.Epe&&1===i._S.length&&y(s,c)&&((r=i._S[0]).isInner(a,u,f,l)?g.insert({minX:r.row+d-a,minY:r.col+v-u,maxX:r.row+d-a+r.rowCount-1,maxY:r.col+v-u+r.colCount-1,rc:r.rowCount,cc:r.colCount}):a===d&&ur.col&&u+l>=r.col+r.colCount?(o=r.colCount+v-u,g.insert({minX:r.row,minY:r.col,maxX:r.row+r.rowCount-1,maxY:r.col+o-1,rc:r.rowCount,cc:o})):u===v&&ar.row&&a+f>=r.row+r.rowCount?(o=r.rowCount+d-a,g.insert({minX:r.row,minY:r.col,maxX:r.row+o-1,maxY:r.col+r.colCount-1,rc:o,cc:r.colCount})):r=null),r?t.setDataValidator(r.row,r.col,r.rowCount,r.colCount,Q):t.setDataValidator(n,e,Q)),y(s,c))&&(i.ZB=!0),i},m=function(t,n,e,i){var r,o,a,u,r=!1;g&&0<(u=g.search({minX:n,minY:e,maxX:n,maxY:e})).length&&(i&&t.setDataValidator(u[0].minX,u[0].minY,u[0].rc,u[0].cc,i),r=!0),r||t.setDataValidator(n,e,i),y(s,c)&&i&&delete i.ZB},{copyPasteHeaders:0})},e.prototype.copyMoveComment=function(){var t,r,o,n,e,r=this.isMove,o=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,n,e;this.Ope(function(t,n,e){var t,i,t=t.Ut.pI,i=t&&t.get(n,e);return i&&r&&t.remove(n,e),i},function(t,n,e,i){var t;o&&!i||(t=t.Ut.pI)&&t.WB(n,e,i)},{copyPasteHeaders:0})},e.prototype.copyMoveMultiColumnPrecedents=function(){var h,t,n,h=this.isMove,t,n;this.Ope(function(t,n,e){var i,r,o,a,u,s,c,f,l,l,i=t.Rpe&&t.Rpe(),r=[],o=t.name();if(i)for(a=0,u=i.length;a=o&&r.maxRow!==1/0&&(r.maxRow=o-1),r.maxCol>=a&&r.maxCol!==1/0&&(r.maxCol=a-1),n=r.maxRow===1/0?-1:r.maxRow-r.minRow+1,e=r.maxCol===1/0?-1:r.maxCol-r.minCol+1,new A.Range(r.minRow,r.minCol,n,e)):N},Y.prototype.name=function(t){var n=this,e=n.parent;if(0===arguments.length)return n.Ut?n.Ut.getName():"";if($(t,e?e.sheets:null,n))return n.ub(t),e&&e.Xg(),n;throw m().Exp_NotSupported},Y.prototype.isSelected=function(t){return this.b2(t)},Y.prototype.b2=function(t,n){var e,i,r,o,a,u,e=this,i=e.parent,r=!!e.Ut&&e.Ut.Xj();return D(t)?r:(t!==r&&(o=e.name(),a=i&&i.Ese(o),u=void 0,n&&(u={oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",cancel:!1,sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)},i)&&i.ki(A.Events.SheetChanging,u),!n||u&&!1===u.cancel)&&(e.Ut.qj(t),i&&i.w2&&i.w2.repaint(),n)&&i&&i.ki(A.Events.SheetChanged,{oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)}),e)},Y.prototype.Mtt=function(t){this.Ut.undo(t)},Y.prototype.VAe=function(){this.Ut.startTransaction()},Y.prototype.zAe=function(){return this.Ut.endTransaction()},Y.prototype.ub=function(t,n){var e,i,r,o,e=this,i=e.name(),r=e.parent;n||Y.et(e,"beforeSetName",{oldName:i,newName:t}),e.Ut.do("setName",t),r&&(o=r.sheetTabStyles.O2e[i],i!==t)&&o&&(r.sheetTabStyles.O2e[t]=o,r.sheetTabStyles.clear([i])),n||Y.et(e,"setName",{oldName:i,newName:t})},Y.prototype.addRows=function(t,n,e){this.ffe(t,n,e)},Y.prototype.ffe=function(t,n,e,i){var r,o,a,u,s,c,f;if((e=Vt(o=e=void 0===e?j.SheetArea.viewport:e))!==j.SheetArea.corner&&!(n<=0)){u=G(a=this,e),(t<0||u=d&&(v=d-1,g=o.getActiveColumnIndex(),(m=o.getSpan(v,g))&&(v=m.row,g=m.col),o.setActiveCell(v,g)),o.Ww=!0,Y.et(o,L,{changeType:u,row:t,oldValue:a,rowCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!0,t),o.dj(t,r,u,n,a)}}finally{o.sL(!0,e),o.resumePaint()}}},Y.prototype.addColumns=function(t,n,e){void 0===e&&(e=j.SheetArea.viewport),this.r9e(t,n,e)},Y.prototype.r9e=function(t,n,e,i){var r,o,a,u,s,r,r;(e=Yt(o=e=void 0===e?j.SheetArea.viewport:e))===j.SheetArea.corner||n<=0||(u=P(a=this,e),a.Dj(t=t<0||u=i&&(l=o.getActiveRowIndex(),(h=o.getSpan(l,i=i-1))&&(l=h.row,i=h.col),o.setActiveCell(l,i)),o.Zw=!0,Y.et(o,L,{changeType:u,col:t,oldValue:a,colCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!1,t),o.vj(t,r,u,n,a),o.sL(!0,e),o.zw()}},Y.prototype.frozenColumnCount=function(t,n){var e=this;if(0===arguments.length)return e.fp;e.ame(t,n)},Y.prototype.ame=function(t,n,e){var i,r,o,i=this;0<=t&&(!D(n)&&"number"==typeof n||(n=0),r=i.yve,i.fp=t,0t&&e.frozenRowCount(t)):1===n&&e.Ut.do("setRowCount",t,n),Y.et(e,L,{changeType:"setRowCount",row:i,rowCount:t,sheetArea:n}),e.Ww=!0,e.ui>=t&&(3===n||2===n)&&e.setActiveCell(t-1,e.getActiveColumnIndex()),e.zw(),e.clearPendingChanges())},Y.prototype.setColumnCount=function(t,n,e){var i,r,e;t=S(t,10),g(t)||(r=(i=this).getColumnCount(n),t<0)||t===r||(D(n)&&(n=3),D(e)||(e=i.getUsedRange(e),D(e))||(-1===e.colCount&&(e.colCount=i.getColumnCount(n)),t=Math.max(t,e.col+e.colCount)),3===n||1===n?(i.Ut.do("setColumnCount",t,n),z(i)>t&&i.frozenColumnCount(t)):2===n&&i.Ut.do("setColumnCount",t,n),Y.et(i,L,{changeType:"setColumnCount",col:r,colCount:t,sheetArea:n}),i.Zw=!0,i.ci>=t&&(3===n||1===n)&&i.setActiveCell(i.getActiveRowIndex(),t-1),i.zw(),i.clearPendingChanges())},Y.prototype.getFreeAreaRowCount=function(t){var n;return this.Ut.getFreeAreaRowCount(t)},Y.prototype.getFreeAreaColumnCount=function(t){var n;return this.Ut.getFreeAreaColumnCount(t)},Y.prototype.setFreeAreaRowCount=function(t,n){var e;this.Ut.setFreeAreaRowCount(t,n)},Y.prototype.setFreeAreaColumnCount=function(t,n){var e;this.Ut.setFreeAreaColumnCount(t,n)},Y.prototype.w8=function(t){var n,e,i,r,o;if(!D(t)&&(n=t.rows,i=!1,this.filterRowsVisibleInfo)){if(r=this.filterRowsVisibleInfo.rowsVisibleInfo||{},n&&0=r.row&&a[i].row=r.col&&a[i].cola)for(u=new O.h9,c=s=o[0].col;ca)for(u=new O.h9,c=s=o[0].row;ce.getLastFullyVisibleColumn()&&n<=e.G6()){for(f=0,l=n,c=e.Fi(),h=e.Gy(c),(c=e.Ut.findSpan(t,l))&&(l=c.col+c.colCount-1);l>e.Ab&&!(h<(f+=e.nn(l)));)l--;d=c=void 0,d=u?(l===e.Ab&&fe.getLastFullyVisibleRow()&&t<=e.P6()){for(g=0,(c=e.Ut.findSpan(m=t,n))&&(m=c.row+c.rowCount-1),d=e.Fi(),p=e.Sy(d);m>e.Tb&&!(p<(g+=e.Gt(m)));)m--;t=s=void 0,t=u?(m===e.Tb&&g=G(a)||n<0||n>=P(a)||(u=a.parent&&a.parent.options.scrollByPixel,s=a.parent&&a.parent.options.scrollbarMaxAlign,c=a.S0(n),f=a.C0(t),l=a.getViewportTopRow(f),h=a.ly,d=a.getViewportLeftColumn(c),v=a.my,1===c&&D(o)&&(n=(i=a.rB(n,i,u,s)).col,o=i.offset),1===f&&D(r)&&(t=(i=a.oF(t,e,u,s)).row,r=i.offset),u=e=!1,1!==f||t===l&&r===h||(t=E(t,a.mw().Ky),a.Tb=t,a.ly=r,a.tw(),e=!0),1!==c||n===d&&o===v||(n=E(n,a.Mw().iw),a.Ab=n,a.my=o,a.ow(),u=!0),(e||u)&&((s=a.parent)&&!s.options.scrollbarShowMax&&(a.Zw=!0,a.Ww=!0),a.zw(),i=a.zoom(),e&&a.ki(A.Events.TopRowChanged,{sheet:a,sheetName:a.name(),oldTopRow:l,newTopRow:t,oldOffset:T(h/i),newOffset:T(r/i)}),u)&&a.ki(A.Events.LeftColumnChanged,{sheet:a,sheetName:a.name(),oldLeftCol:d,newLeftCol:n,oldOffset:T(v/i),newOffset:T(o/i)}))},Y.prototype.C0=function(t,n){var e=this;return J(n)?3:t=G(e)-H(e)?2:1},Y.prototype.S0=function(t){var n=this;return t=P(n)-U(n)?2:1},Y.prototype.oF=function(t,n,e,i){var r,o,a,u,s,c,f,l,h,d,v,g,i,n,m,p,i,r=this,o=r.Jt,a=r.C0(t),u=r.getViewportTopRow(a),s=r.ly,c=V(r),l=r.P6();if(0===n)if(i){for(h=l,f=r.getViewportHeight(a);c<=h;h--)if((f-=o.Gt(h))<0){tg[g.length-1].col||tm[m.length-1].row||lm[0].row?i.y+=c.Mf.PCn(f):f===m[0].row&&(i.y+=c.Mf.PCn(m[0].row))),a<=l&&lm[0].row&&(i.height-=c.Mf.PCn(o)),l=i.getRowCount()&&u=i.pw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.yy(i,t,n||0,e),i.tw()),s&&!s.options.scrollbarShowMax&&i.ew(),i.invalidateLayout())},Y.prototype.o9=function(t,n,e){var i,r,o,a,u,a,s,s,i=this,r=i.Ab,o=i.my,a=i.Mw(),u=a.iw,a=a.Xy,s=!D(e);(t=r>=i.getColumnCount()&&u=i.Sw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.wy(i,t,n||0,e),i.ow()),s&&!s.options.scrollbarShowMax&&i.aw(),i.invalidateLayout())},Y.prototype.JL=function(t,n,e){var i,r,o,a,u,s,c,u,s,s,u,c,u,c,u,f,l,s,u,h,i=this,r=t.row,o=t.col,a=t.hitTestType;return D(r)||D(o)?(s=!1,c=(u=i.Fi()).XAe(),!(s=!D(c)&&c.contains(n,e,!0)||(c=u.qAe(),!D(c)&&c.contains(n,e,!0))?!0:s)||(u=i.PTe(a),D(u))||(s=i.$Ae(a),D(s))?N:s.Bn(n,e,u,c,{sheet:i,row:r,col:o,sheetArea:a})):((s=3===t.rowViewportIndex)||((u=i.getSpan(r,o,a))&&(r=u.row,o=u.col),i.Cb&&(c=i.Cb.D7(r,o,a))&&(r=c.row,o=c.col)),u={},s&&(u.rowSpacingIndex=t.rowSpacingIndex,u.isAfterRowSpacing=t.isAfterRowSpacing),c=i.Il(r,o,a,_,u),u=1===a?-1:_,f=2===a?-1:_,l={needAutoMerge:!0},s&&(l.rowSpacingIndex=t.rowSpacingIndex,l.isAfterRowSpacing=t.isAfterRowSpacing),s=i.getCellRect(r,o,u,f,l),u={sheet:i,row:r,col:o,sheetArea:a,rowSpacingIndex:t.rowSpacingIndex,isAfterRowSpacing:t.isAfterRowSpacing},(h=c.cellType||i.$f(a)).Bn(n,e,c,s,u))},Y.prototype.bC=function(){this.unbindAll(),this.E3()},Y.prototype.dA=function(t,n,e){for(var t,i,r,o,a,u,s,c,f,u,f,f,t=this.JS(t),i=t.row,r=t.col,o=i+t.rowCount,a=r+t.colCount,s=i;st-1?e.splice(i,1):r.row+r.rowCount-1>t-1&&(r.rowCount=t-1-r.row+1))},T.prototype.DP=function(t,n){var e,i,r;for(void 0===n&&(n=b.SheetArea.viewport),i=(e=this.SP).length-1;0<=i;i--)-1!==(r=e[i].range).col&&m(e[i].sheetArea,n,!1)&&(r.col>t-1?e.splice(i,1):r.col+r.colCount-1>t-1&&(r.colCount=t-1-r.col+1))},T.prototype.toJSON=function(){return this.SP.map(function(t){var n=t.range;return{range:{row:n.row,col:n.col,rowCount:n.rowCount,colCount:n.colCount},direction:t.direction,mode:t.mode,sheetArea:t.sheetArea,selectionMode:t.selectionMode}})},T.prototype.fromJSON=function(t){var n,e,i,r,o,a;if(t)for(n=this.SP,e=0,i=t;e=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.col||o.col+o.colCount>e)&&u.repaint(u.getRangeRect(1,2,o))):a===b.SheetArea.rowHeader&&(o=u.Fi(),u.repaint(o.B1(1)))}),u.bind(b.Events.LeftColumnChanged+"."+o,function(){var t,n,e,i,r,o,a,o,o,t=s.all();if(0=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.row||o.row+o.rowCount>e)&&u.repaint(u.getRangeRect(2,1,o))):a===b.SheetArea.colHeader&&(o=u.Fi(),u.repaint(o.L1(1)))})},dispose:function(t){!1!==t.clearCache&&(this.Cb=C,this.unbind(b.Events.TopRowChanged+"."+o),this.unbind(b.Events.LeftColumnChanged+"."+o))},onLayoutChanged:function(t){var n,e,i,r,o,t,a,n=t.changeType,e=t.row,i=t.rowCount,r=t.col,o=t.colCount,t=t.sheetArea,a=this.Ut;"addRows"===n?a.jP(e,i,t):"deleteRows"===n?a.OP(e,i,t):"addColumns"===n?a.RP(r,o,t):"deleteColumns"===n?a.BP(r,o,t):"setRowCount"===n?a.LP(i,t):"setColumnCount"===n&&a.FP(o,t),"invalidateLayout"===n&&this.My<=0&&this.Cb.IP()},toJson:function(t,n){var e,i,e;n&&n.ignoreStyle||(i=this.Cb,t.autoMergeRangeInfos=i.toJSON(),n&&n.includeAutoMergedCells&&(i.IP(!0,!0),A(i,t)))},fromJson:function(t,n,e){var i;e&&e.ignoreStyle||this.Cb.fromJSON(t.autoMergeRangeInfos)},wh:function(t,n,e){var i,r,o,e,i;e&&!1===e.includeStyles||(t.lossless.autoMerge={},r=this.Cb,t.lossless.autoMerge.autoMergeRangeInfos=r.toJSON(),o=r.Mf.NMi,e&&e.includeAutoMergedCells&&!o&&(e={},r.IP(!0,!0),A(r,e),x(e,t)))},yh:function(t,n,e){var i;e&&!1===e.includeStyles||!t.lossless||!t.lossless.autoMerge||this.Cb.fromJSON(t.lossless.autoMerge.autoMergeRangeInfos)}}),b.Workbook.ch(o,{onCultureChanged:function(){c()}}),b.GC$.extend(b.Worksheet.prototype,{autoMerge:function(t,n,e,i,r){void 0===n&&(n=l.column),void 0===e&&(e=w.free),void 0===i&&(i=b.SheetArea.viewport),void 0===r&&(r=h.source);var o=this.Cb;if(0===arguments.length)return o.all();t&&(this.Ut._P(),n===l.none?o.remove(t,i):o.add(t,n,e,i,r),this.zw())}})},"./dist/plugins/autoMerge/autoMerge.res.en.js":function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Exp_RangeIsIntersected=void 0,n.Exp_RangeIsIntersected="The range should not intersect with exsit ranges."},"./dist/plugins/cellState/cellStateManager.js":function(t,n,e){"use strict";var o,a,i,b,w,e,f,i,y,r,u,n,s;function c(t){var n=t.row,e=t.col,i=t.rowCount,t=t.colCount;return new b.Range(n,e,i,t)}function l(t,n){this.Mf=t,this.Kh=n,this.cE=[];for(var e=1;e<=3;e++)this.PP(e)}function h(t){this.Mf=t,this.GP={}}function d(n,t,e){var i=[],r=n.getRowCount(3),o=n.getColumnCount(3);return t.forEach(function(t){i=i.concat(m(n,t.style,t.range,e,r,o))}),i}function v(t){for(var n,e,i,r,o,e,a,u,s,c,e,n=[],i=0,r=t.length;i=parseFloat(e.style.width)&&(t.x=parseFloat(e.style.width)-1),Nt(u(t,!0),!0,e)},e.addEventListener("mouseleave",n)}function ft(t,n,e,i,r,o,a,u,s,c,f,l){var n,h,d,e,v,g,m,p,n=U(n,e,a,u,!0,[t]);if(0r.x+r.width||n+ir.y+r.height))return t+e>r.x+r.width&&(e=r.x+r.width-t),n+i>r.y+r.height&&(i=r.y+r.height-n),te.y+e.height&&(h.y=v(h.y-(h.y+h.height-e.y-e.height),e.y))),l=(u=f.getImage(a)).width,i=u.height,T.mt.Tt.msie&&n.imageType&&(i=n.imageType===T.ButtonImageType.custom?(g[a]||(u.style.position="absolute",u.style.left="-10000px",u.style.top="-100000px",document.body.appendChild(u),g[a]={width:u.width,height:u.height},document.body.removeChild(u)),l=g[a].width,g[a].height):l=12),s&&T.mt.Tt.msie&&h.x+h.width>s.x+s.width?0<(e=s.x+s.width-h.x)&&t.drawImage(u,0,0,e*(d=l/(r*c)),i,h.x,h.y,e,o*c):t.drawImage(u,0,0,l,i,h.x,h.y,r*c,o*c)):f.addImage(a),t.restore()}function G(t,n,e,i){var r,o,n,a,u,e;return void 0===i&&(i=!0),r=B(e)?e.printZoomFactor:e.sheet.zoom(),o=2*A+3,C(t.width)?(n=N.Bt(x,t.caption,n,r,e),a=t.useButtonStyle,(u=Ot(t,e.row))&&(n=Ct(t)+n,o=(a?o:0)+K),i?(n+o+7)*r:n+o+7):(e=v(1,t.width),isNaN(e)&&(e=1),i?e*r:e)}function Mt(t,n,e){var i,r,i,n,t;return void 0===e&&(e=!0),i=n.sheet,r=B(n)?n.printZoomFactor:i.zoom(),i=i.getRowHeight(n.row),n=t.imageSize?t.imageSize.height:x,t=v(1,n||i),isNaN(t)&&(t=1),e?t*r:t}function U(t,n,e,i,r,o){var a,u,s,c,f,l,a=[];if(!n||0===n.length)return[];for(u=!1,s=t.Ut.getValueForKey(e,i,h),t.getActiveRowIndex()===e&&t.getActiveColumnIndex()===i&&!0!==s&&(u=!0),c=0;cf&&(u=l.left+r-f),l.top+o>c&&(a=l.top+o-c)):(c=(l=t.sfe).clientHeight,f=l.clientWidth,c=i.getRowCount(o)||r<0||r>=i.getColumnCount(o))return!1;if(i.showCell(t,r,S.VerticalPosition.nearest,S.HorizontalPosition.nearest),s=i.getCellRect(t,r,a=1===o?-1:void 0,u=2===o?-1:void 0),i.parent&&!i.parent.options.scrollByPixel&&!i.isEditing()){if(0<(c=i.frozenColumnCount())&&c<(f=i.getViewportLeftColumn(1))&&(l=i.getSpan(t,r,o))&&l.col<=f&&f\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n x\n \n 2\n
\n
\n \n 1\n \n \n \n x\n \n
\n
\n
\n
\n
\n
CE
\n
C
\n
BS
\n
\n
\n
\n
\n
7
\n
8
\n
9
\n
\n
\n
\n
\n
4
\n
5
\n
6
\n
\n
\n
\n
\n
1
\n
2
\n
3
\n
\n
\n
\n
\n
\n
\n
0
\n
.
\n
\n
\n
\n
\n
OK
\n
\n
\n
\n
\n\n',f=Math.floor,l=Math.abs,h=Math.pow,d=Math.round,v=Math.sqrt,g=Math.max,m=new Array("0","1","2","3","4","5","6","7","8","9","+/-",".","+","-","*","/","SQRT","%","1/x","=","MC","MR","MS","M+","BS","CE","C","POW"),x.Init=function(){var t;x.GetBrowserType(),x.IsIE=void 0!==x.ie||void 0!==x.edge},x.GetBrowserType=function(){try{var t=navigator.userAgent.toLowerCase();window.ActiveXObject?x.ie=t.match(/msie ([\d.]+)/)[1]:-1!==t.indexOf("edge")?x.edge=t.match(/edge\/([\d.]+)/)[1]:-1!==t.indexOf("firefox")&&(x.firefox=t.match(/firefox\/([\d.]+)/)[1]),-1!==t.indexOf("rv:")&&-1===t.indexOf("firefox")&&(x.ie=t.match(/rv:([\d.]+)/)[1])}catch(t){}},(p=x).Init(),A.IsErrorText=function(t){return t===s().Calculator_DivideByZeroInfo||t===s().Calculator_InvalidInputInfo||t===s().Calculator_SqrtParameterException||t===s().Calculator_OverFlowInfo},b=A,n.CalculatorErrorInfo=b,I.IsDotContained=function(t){var n;return-1!==(t+"").indexOf(".")},I.GetDotPosition=function(t){var n,e,i,n=t+"",e=0,i=0;for(i=n.length;0t.clientWidth)},k.prototype.aH=function(t){var n=T(t);t.style.fontSize="".concat(n-1,"px")},k.prototype.uH=function(t){for(var n,e,n=this,e=T(t);!n.oH(t)&&ethis.eraMax)},D.addMilliseconds=function(t,n){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+n),new Date(t.valueOf())},D.getEraDate=function(t){var n,e,i,n={era:-1,eraYear:-1};if(D.isValidEraDate(t))for(e=0;ef.start&&(st):(e=this.selectedDate,i=this.focusDate,n.selected=e&&e.getMonth()===t&&e.getFullYear()===i.getFullYear(),n.focused=i&&i.getMonth()===t),this.monthItems.push(n)},_.prototype.updateYearItems=function(){var t,n,e;for(this.yearItems=[],t=this.focusDateYearRangeStart-1;t<=this.focusDateYearRangeEnd+1;t++)n=new Ot(t),this.owner.A1e?(e=this.T1e,n.selected=e.start.getFullYear()===t||e.end.getFullYear()===t,n.focused=e.start.getFullYear()t):(n.selected=this.selectedDate&&this.selectedDate.getFullYear()===t,n.focused=this.focusDate&&this.focusDate.getFullYear()===t,n.disabled=tthis.focusDateYearRangeEnd),this.yearItems.push(n)},_.prototype.updateYearRange=function(){this.focusDateYearRangeStart=10*Math.floor(this.focusDate.getFullYear()/10),this.focusDateYearRangeEnd=this.focusDateYearRangeStart+9},_.prototype.getShortWeekName=function(t){var n,e,n,e;return N.resource.shortWeeks[t=(this.owner.dH+t-1)%7]},_.prototype.getCurrentMonthName=function(){var t=this.focusDate.getMonth();return _.getMonthName(t)},_.prototype.updateCalendarData=function(t){t?(this.T1e=t.selectedDateRange,this.S1e=t.oldSelectedDateRange,this.E1e=t.hoverDate):this.RangeCalendar.notifyCalendarData({selectedDateRange:this.T1e,oldSelectedDateRange:this.S1e,hoverDate:this.E1e})},Lt=_,Ut=F.EventBase,e(O,Ut),Object.defineProperty(O.prototype,"host",{get:function(){return this.jS.getContainer()},enumerable:!1,configurable:!0}),O.prototype.createCalendarDom=function(){var t,n,e,i,r,i,t,t=this.jS;return this.mH=new _t,n=j("div"),this.jS.A1e?n.className=c+" "+H:n.classList.add(c),t.HG?n.classList.add(z):n.classList.add(W),e=j("table"),i=j("tr"),(r=j("td")).classList.add(X),t.HG&&r.classList.add(q),r.appendChild(this.gH()),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.HG&&(i=j("tr"),t=j("td"),r.appendChild(this.pH()),r.appendChild(this.bH()),t.appendChild(this.yH()),t.appendChild(this.wH()),i.appendChild(t),e.appendChild(i)),this.mH.outerContainerDiv=n},O.prototype.wH=function(){var t,n,t=j("div");return t.classList.add(Z),(n=j("button")).textContent=g().OK,n.className=x+" "+Tt+" "+St,t.appendChild(n),this.mH.okButton=n,t},O.prototype.pH=function(){var t=j("div");return t.classList.add($),t},O.prototype.yH=function(){var t=j("div");return t.classList.add(tt),t},O.prototype.gH=function(){var t=j("div");return t.className=V+" "+ut+" "+st,t.tabIndex=0,t.appendChild(this.MH()),t.appendChild(this.CH()),t.appendChild(this.SH()),this.mH.dateContainerDiv=t},O.prototype.MH=function(){var t=j("div");return t.classList.add(nt),t.appendChild(this.TH()),t.appendChild(this.AH()),t},O.prototype.TH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastTenYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).classList.add(M),(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextTenYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarYearSection).headerDiv=t,a.lastYearRangeButton=i,a.focusDateYearRangeName=r,a.nextYearRangeButton=o,t.appendChild(n),t},O.prototype.AH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarYearSection.currentYearRangeTable=t,this.IH(),n},O.prototype.IH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarYearSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(xt,(4*e+r).toString()),(a=j("span")).classList.add(ft),a.setAttribute(xt,(4*e+r).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.yearTds.push(o);n.appendChild(i)}t.currentYearRangeTable.appendChild(n)},O.prototype.CH=function(){var t=j("div");return t.classList.add(it),t.appendChild(this.xH()),t.appendChild(this.NH()),t},O.prototype.xH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarMonthSection).headerDiv=t,a.lastYearButton=i,a.currentYearName=r,a.nextYearButton=o,t.appendChild(n),t},O.prototype.NH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarMonthSection.currentYearTable=t,this.kH(),n},O.prototype.kH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarMonthSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(At,(4*e+r+1).toString()),(a=j("span")).classList.add(ft),a.setAttribute(At,(4*e+r+1).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.monthTds.push(o);n.appendChild(i)}t.currentYearTable.appendChild(n)},O.prototype.SH=function(){var t=j("div");return t.classList.add(rt),t.appendChild(this._H()),t.appendChild(this.EH()),t.appendChild(this.jH()),this.jS.A1e||t.appendChild(this.OH()),t},O.prototype._H=function(){var t,n,e,i,r,r,o,a,a,u,s,c,f,l,h,d,v,c,t=j("div");for(t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastMonth,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextMonth,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=j("div")).className=et+" "+Mt,(u=j("div")).classList.add(at),(s=j("select")).classList.add(ot),f=(c=new Date).getFullYear()-this.lH,l=c.getFullYear()+this.fH,h=f;h<=l;h++)(d=j("option")).text=h.toString(),d.value=h.toString(),s.options.add(d);return(v=j("div")).classList.add(at),u.appendChild(s),a.appendChild(u),t.appendChild(a),t.appendChild(n),(c=this.mH.calendarDaySection).headerDiv=t,c.lastMonthButton=i,c.currentMonthName=r,c.nextMonthButton=o,c.yearSelect=s,t},O.prototype.EH=function(){var t,n,e,i,r,o,a,t=j("div");for(t.className=Q+" "+w+" "+T,(n=j("table")).className=f+" "+S,e=j("thead"),i=j("tr"),r=0;r<7;r++)(o=j("th")).setAttribute(It,r.toString()),(a=j("span")).classList.add(lt),a.setAttribute(It,r.toString()),a.innerText=this.jS._data.getShortWeekName(r),o.appendChild(a),i.appendChild(o),this.mH.calendarDaySection.weekThs.push(o);return e.appendChild(i),n.appendChild(e),t.appendChild(n),t},O.prototype.jH=function(){var t,n,e,i,r,o,a,u,s,c,t=this.mH.calendarDaySection,n=j("div"),e=j("div"),i=j("table");for(i.className=f+" "+S,r=j("tbody"),o=0;o<6;o++){for(a=j("tr"),u=0;u<7;u++)(s=j("td")).setAttribute(A,(7*o+u).toString()),(c=j("span")).classList.add(ft),c.setAttribute(A,(7*o+u).toString()),s.appendChild(c),a.appendChild(s),t.dayTds.push(s);r.appendChild(a)}return i.appendChild(r),e.appendChild(i),n.appendChild(e),t.dayContentTable=i,n},O.prototype.OH=function(){var t,n,e,i,r,o,t=j("div");return t.classList.add(J),(n=j("table")).classList.add(f),e=j("tbody"),i=j("tr"),r=j("td"),(o=j("i")).className=ht+" "+yt,o.innerText=N.resource.today,r.appendChild(o),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.appendChild(n),this.mH.calendarDaySection.todayTd=r,this.mH.calendarDaySection.todayTable=n,t},O.prototype.bH=function(){var n,t,n=this,t=j("div");return t.className=Y+" "+ut+" "+st,t.tabIndex=0,this.mH.timeContainerDiv=t,this.RH=new B.TimePicker(t),this.RH.setOptions({step:{minute:30},height:260}),this.RH.on(o.BaseDropdown.Event_ValueChanged,function(t){n.BH(t)}),t},O.prototype.updateCalendarDom=function(){this.LH(),this.jS.HG&&this.FH()},O.prototype.LH=function(){switch(this.jS._data.calendarPage){case u.CalendarPage.year:this.PH();break;case u.CalendarPage.month:this.GH();break;case u.CalendarPage.day:this.UH()}},O.prototype.HH=function(){var t,n,e,i,r,o,t,a,u,a,t,n,s,c,f,t=this.jS._data,n=this.mH.calendarDaySection,e=!1;for(n.currentMonthName.innerText=t.getCurrentMonthName(),i=t.focusDate.getFullYear(),r=n.yearSelect,o=0;oc.getFullYear()?r.options[o].disabled=!0:r.options[o].disabled=!1;s.getFullYear()===c.getFullYear()&&s.getMonth()>=c.getMonth()-1?(t.disabled=!0,t.classList.add(l)):(t.disabled=!1,t.classList.remove(l))}else if(2===n){for(o=0;ot.start)&&(n.E1e=e),n.updateCalendarData(),this.RangeCalendar.updateRangeCalendarDom()))},O.prototype.fz=function(){var t,n,n,e,t=this.jS,n=t._data.selectedDate,n=n?new Date(n.valueOf()):null,e=new Date;n&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(0)),t._data.selectedDate=e,t._data.focusDate=new Date(e.valueOf()),this.LH(),t.HG||this.oz()},O.prototype.hz=function(t){var t=t.srcElement||t.target;t&&(this.jS._data.focusDate.setFullYear(+t.value),this.jS.A1e?(this.RangeCalendar.checkFocusDateValid(),this.RangeCalendar.updateRangeCalendarDom()):this.LH())},O.prototype.attachTimeEvent=function(){var n=this;this.mH.timeContainerDiv.addEventListener("click",function(t){n.setCalendarActivePart(I.Time)}),this.mH.okButton.addEventListener("click",function(t){n.oz()})},O.prototype.BH=function(t){var n,e,t,n=this.jS._data,e=n.selectedDate?new Date(n.selectedDate.valueOf()):new Date,t=t.value;e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),n.selectedDate=e,n.focusDate=new Date(e.valueOf())},O.prototype.oz=function(){var t=this.jS._data;this.fire(o.BaseDropdown.Event_ValueChanged,{oldValue:t.oldSelectedData,newValue:t.selectedDate}),t.oldSelectedData=t.selectedDate},O.prototype.showCalendarPage=function(t){var n,e,i,n=this.host.querySelector("."+nt),e=this.host.querySelector("."+it),i=this.host.querySelector("."+rt);switch(n.style.display="none",e.style.display="none",i.style.display="none",t){case u.CalendarPage.year:n.style.display="";break;case u.CalendarPage.month:e.style.display="";break;case u.CalendarPage.day:i.style.display=""}this.jS._data.calendarPage=t,this.updateCalendarDom()},O.prototype.setCalendarActivePart=function(t){switch(this.jS._data.calendarActivePart=t,this.mH.dateContainerDiv.classList.remove(r),this.jS.HG&&this.mH.timeContainerDiv.classList.remove(r),t){case I.Date:this.jS.HG&&this.mH.dateContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus();break;case I.Time:this.jS.HG&&this.mH.timeContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus()}},O.Event_GetHost="GetHost",Ft=O,Ht=o.BaseDropdown,e(E,Ht),E.prototype.setOptions=function(t){var n,t;t&&(t.showTime||this.A1e||(this.HG=t.showTime,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),n=t&&t.calendarPage?t.calendarPage:u.CalendarPage.day,(t=t&&t.startDay?t.startDay:u.CalendarStartDay.saturday)!==this.dH&&(this.dH=t,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),this.Dn.showCalendarPage(n),this.Dn.setCalendarActivePart(I.Date))},E.prototype.setValue=function(t){var n=this._data;if(t){if(this.A1e&&t instanceof Object){if(!t.start||!t.end)return;n.S1e={start:t.start,end:t.end},n.T1e={start:t.start,end:t.end},n.updateCalendarData()}else t instanceof Date&&(n.selectedDate=t,n.oldSelectedData=new Date(t.valueOf()),n.focusDate=new Date(t.valueOf()),n.updateYearRange());n.updateDayFocusDate()}},E.prototype.scrollToSelect=function(){this.Dn.updateCalendarDom()},Bt=E,t.Calendar=Bt,zt=o.BaseDropdown,e(R,zt),R.prototype.setOptions=function(t){s(t.showBuiltInDateRange)&&(t.showBuiltInDateRange=!0),t.showTime=!1,t.calendarPage=u.CalendarPage.day,this.R1e.setOptions(t),this.B1e.setOptions(t)},R.prototype.setValue=function(t){this.R1e.setValue(t),this.B1e.setValue(t),this.updateRangeCalendarDom()},R.prototype.updateRangeCalendarDom=function(){this.R1e.Dn.updateCalendarDom(),this.B1e.Dn.updateCalendarDom(),this.updateDataRangeResult(this.T1e)},R.prototype.L1e=function(){var t,i,t=k.getBuiltInDateRanges(),i=j("div");return i.className=c+" "+vt,t.forEach(function(t,n){var e,n,e=j("div");e.className=dt,e.setAttribute(Nt,n+""),n=P.createTextNode(t[0]),e.appendChild(n),i.appendChild(e)}),this.P1e=i},R.prototype._1e=function(t){var n,e,e;this.Ti.innerHTML="",(n=j("div")).className=c+" "+U,t&&!1===t.showBuiltInDateRange||n.appendChild(this.L1e()),(e=j("div")).classList.add(G),this.R1e=new Bt(e,t,this,1),n.appendChild(e),(e=j("div")).classList.add(G),this.B1e=new Bt(e,t,this,2),n.appendChild(e),this.Ti.appendChild(n),this.Ti.appendChild(this.G1e())},R.prototype.aY=function(){var n=this;this.P1e&&this.P1e.addEventListener("click",function(t){n.U1e(t)}),this.H1e.addEventListener("click",function(t){n.onOkButtonClick(t)}),this.z1e.addEventListener("click",function(t){n.onCancelButtonClick(t)}),this.on(Ft.Event_GetHost,function(t){t.host=n.Ti})},R.prototype.G1e=function(){var t,n,n,e,n,e,t=j("div");return t.className=gt,(n=j("div")).classList.add(wt),t.appendChild(n),this.V1e=n,this.updateDataRangeResult(this.T1e),(n=j("div")).className=bt,(e=j("button")).textContent=g().Cancel,e.className=mt,n.appendChild(e),t.appendChild(n),this.z1e=e,(n=j("div")).className=bt,(e=j("button")).textContent=g().OK,e.className=mt,n.appendChild(e),t.appendChild(n),this.H1e=e,t},R.prototype.U1e=function(t){var t,t,n,t,t=t.srcElement||t.target;t&&(t=t.getAttribute(Nt),s(t)||(t=(n=k.getBuiltInDateRanges())[t],this.T1e={start:t[1].start,end:t[1].end},this.notifyCalendarData(),this.fire(o.BaseDropdown.Event_ValueChanged,{text:k.getShortDate(this.T1e)})))},R.prototype.updateDataRangeResult=function(t){var n,e,i,r,r;if(t&&t.start instanceof Date&&t.end instanceof Date&&(this.V1e.innerHTML="".concat(t.start.toLocaleDateString("en-US"),"-").concat(t.end.toLocaleDateString("en-US"))),this.P1e)for(n=k.getBuiltInDateRanges(),e=0;ethis.MU.stopYear&&(i=this.MU.stopYear),"number"==typeof e&&(t=n.Ti.querySelector("[".concat(g,"='").concat(i,"-").concat(e,"']")))&&(t.classList.add(v),n.Wz&&n.Wz.classList.remove(v),n.Wz=t)},M.prototype.scrollToSelect=function(){var t,t,t=this.Wz;t&&(t=t.offsetTop,this.Ti.scrollTop=t)},M.prototype.Qz=function(t,n){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var n=(this.document||this.ownerDocument).querySelectorAll(t),e=n.length;0<=e&&n.item(e)!==this;)--e;return-1=n&&(c.row+=e)}function k(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;s=n&&(c.col+=e)}function D(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;sh&&m&&(i=y.DropDownDirection.Down);break;case y.DropDownDirection.Down:e.height>d&&m&&(i=y.DropDownDirection.Up);break;case y.DropDownDirection.Left:e.width>v&&p&&(i=y.DropDownDirection.Right);break;case y.DropDownDirection.Right:e.width>g&&p&&(i=y.DropDownDirection.Left)}switch(w=b=0,i){case y.DropDownDirection.Up:w=f-e.height;break;case y.DropDownDirection.Down:w=l;break;case y.DropDownDirection.Left:b=s-e.width;break;case y.DropDownDirection.Right:b=c}return i===y.DropDownDirection.Up||i===y.DropDownDirection.Down?r===y.DropDownAlignment.Near?b=s:r===y.DropDownAlignment.Center?b=s-(e.width-n.width)/2:r===y.DropDownAlignment.Far&&(b=c-e.width):i!==y.DropDownDirection.Right&&i!==y.DropDownDirection.Left||(r===y.DropDownAlignment.Near?w=f:r===y.DropDownAlignment.Center?w=f-(e.height-n.height)/2:r===y.DropDownAlignment.Far&&(w=l-e.height)),n=new C(b,w,e.width,e.height),o&&(n.width>t.width?n.x=0:(n.x=Math.max(n.x,0),n.x=Math.min(n.x,t.width-n.width))),a&&(n.height>t.height?n.y=0:(n.y=Math.max(n.y,0),n.y=Math.min(n.y,t.height-n.height))),n.Offset(u),n.Location},f.prototype.render=function(){var n=this;this.aV?(this._oldPosition=this.sourceElement.style.position,this.sourceElement.style.position="absolute",this.uV=this.sourceElement.style.display,this.sourceElement.style.display="",this.sourceElement.style.zIndex="10000",this.sourceElement.classList.add(r),this.cV=this.sourceElement):(this.sV=document.createElement("div"),this.sV.style.cssText="position:absolute; z-index:10000; box-shadow:rgba(0, 0, 0, 0.4) 2px 4px 5px; outline:none",this.sV.classList.add(r),this.sV.appendChild(this.sourceElement),this.MU.hostElement.appendChild(this.sV),this.cV=this.sV),this.MU.Oue&&setTimeout(function(){var t;n.cV&&(t=n.cV.querySelector("[role=menu],[role=listbox]"))&&t.focus()},500)},f.prototype.bindEvent=function(){var n=this;this.MU.closeAfterClickOutside&&(document.addEventListener("mousedown",this.globalMousedownEventHandler,!0),"touchstart MSPointerDown pointerdown".split(" ").forEach(function(t){document.addEventListener(t,n.globalMousedownEventHandler,!0)})),this.MU.closeAfterResize&&document.addEventListener("resize",this.windowResizeEventHandler)},n.PopupControl=f},"./dist/plugins/celltype/editor/slider.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C;function S(t){return document.createElement(t)}function T(t){var n=t.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/);return t.toFixed(f(0,(n[1]||"").length-parseInt(n[2],10)))}function x(t){var t,n,t=T(t||0),n=0;return n=0<=t.indexOf(".")?t.length-t.indexOf(".")-1:n}function A(){}function I(t,n){this.Wc=n,this.fV={},this.fV=d.extend(this.fV,t)}function N(t,n){this.Wc=n,this.lV={},this.lV=d.extend(this.lV,t)}function k(t,n){this.Wc=t,this.hV={},this.dV="",this.hV=d.extend(this.hV,n),this.dV='\n
\n
\n
\n
{{value}}
\n
\n
\n ')}function j(t,n){this.Wc=n,this.vV={},this.mV=!1,this.gV=c,this.isSelected=!1,this.yme=c,this.vV=d.extend(this.vV,t),this.gV=new m(this.Wc,this.pV())}function D(t,n){this.Wc=n,this.bV={},this.bV=d.extend(this.bV,t)}function _(t,n,e,i,r){this.Wc=t,this.yV=n,this.wV=e,this.endHandle=i,this.MU=r,this.MV=c,this.CV=c,this.MV=new g(this.SV(),this.Wc),this.CV=new b(this.TV(),this.Wc)}function O(t,n){var i=C.call(this,t)||this;return i.yV=c,i.wV=c,i.Y1e=c,i.Z1e=c,i.AV=c,i.Mme=function(t){var t,t,t;d.pauseEvent(t),t=i.AV.getKeyboardValueMutator(t),d.isEmpty(t)||(t=t(i._V.value),(t=i.AV.trimAlignValue(t))!==i._V.value&&(i.setValue(t),i._V.onChange(t),i._V.onAfterChange(t),i.fire(r.BaseDropdown.Event_ValueChanged,{value:t,text:t.toString(),notCloseDropDown:!0})))},i.IV=function(t){0===t.button&&(document.addEventListener("mouseup",i.xV,!1),document.addEventListener("pointerup",i.xV,!1),document.addEventListener("MSPointerUp",i.xV,!1),document.addEventListener("mousemove",i.NV,!1),document.addEventListener("pointermove",i.NV,!1),document.addEventListener("MSPointerMove",i.NV,!1),i.NV(t))},i.NV=function(t){var t,n,t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.xV=function(t){var n,e;i.NV(t),document.removeEventListener("mousemove",i.NV),document.removeEventListener("mouseup",i.xV),document.removeEventListener("pointermove",i.NV),document.removeEventListener("pointerup",i.xV),document.removeEventListener("MSPointerMove",i.NV),document.removeEventListener("MSPointerUp",i.xV),n=i.kV(t,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.EV=function(t){var n=t.target||t.srcElement;document.addEventListener("touchend",i.jV,!1),n.classList.contains("".concat(i._V.prefixCls,"-handle"))?document.addEventListener("touchmove",i.OV,!1):i.OV(t)},i.OV=function(t){var t,t,n,t=t.targetTouches[0],t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.jV=function(t){var n,n,e;document.removeEventListener("touchmove",i.OV),document.removeEventListener("touchend",i.jV),n=t.changedTouches[0],n=i.kV(n,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.init(n),i}i=this&&this.__extends||(M=function(t,n){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}M(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0,r=e("./dist/plugins/celltype/editor/baseControl.js"),o=e("Common"),a=e("Core"),u=o.Common.lt.ht,s=o.Common.zf.j0,c=null,f=Math.max,l=Math.min,h=Math.abs,A.isEmpty=function(t){return void 0===t||t===c||""===t||Array.isArray(t)&&0===t.length},A.isEmptyObject=function(t){var n,e,n=!0;for(e in t)if(e){n=!1;break}return n},A.pauseEvent=function(t){t.stopPropagation(),t.preventDefault()},A.isObject=function(t){var n=typeof t;return"function"==n||"object"==n&&!!t},A.allKeys=function(t){var n,e,n=[];if(!A.isObject(t))return[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},A.parseStyleObject=function(t){var n,e,i,r,o,a,o;if(!A.isObject(t))return"";for(n="",i=0,r=(e=A.allKeys(t)).length;ithis._V.max&&(this._V.max=this._V.min),u(t.tooltipVisible)||(this._V.tooltipVisible=t.tooltipVisible),u(t.showNumberRange)||(this._V.showNumberRange=!!t.showNumberRange),this._V.marks={},t.marks)&&t.marks.forEach(function(t){var t,n,t=parseFloat(t);isNaN(t)||t>=e._V.min&&t<=e._V.max&&(n=new o.Formatter.GeneralFormatter(e._V.formatString),e._V.marks[t]={label:n.format(t)})})},O.prototype.sY=function(t,n){var t;u(t)||(t=parseFloat(t),isNaN(t))||(this._V[n]=t)},O.prototype.iY=function(){return{className:"".concat(this._V.prefixCls,"-track"),included:this._V.included,direction:this._V.direction,offset:0,length:0}},O.prototype.rY=function(){return{prefixCls:this._V.prefixCls,className:"".concat(this._V.prefixCls,"-handle"),direction:this._V.direction,disabled:this._V.disabled,min:this._V.min,max:this._V.max,value:this._V.value,offset:0,tabIndex:0,tooltipVisible:this._V.tooltipVisible,formatString:this._V.formatString,showNumberRange:this._V.showNumberRange,numberRange:this._V.numberRange}},O.prototype.oY=function(){return{prefixCls:this._V.prefixCls,min:this._V.min,max:this._V.max,value:this._V.value,disabled:this._V.disabled,direction:this._V.direction,dots:this._V.dots,step:this._V.step,included:this._V.included,marks:this._V.marks,showNumberRange:this._V.showNumberRange}},O.prototype.UV=function(){var t="".concat(this._V.prefixCls);return this._V.direction===a.LayoutDirection.vertical&&(t+=" ".concat(this._V.prefixCls,"-vertical")),d.isEmptyObject(this._V.marks)||(t+=" ".concat(this._V.prefixCls,"-with-marks")),this._V.disabled&&(t+=" ".concat(this._V.prefixCls,"-disabled")),t},O.prototype.dispose=function(){var t=this.yV.Wc;t&&(t.removeEventListener("mousedown",this.IV),t.removeEventListener("pointerdown",this.IV),t.removeEventListener("MSPointerDown",this.IV),t.removeEventListener("touchstart",this.EV),t.removeEventListener("keyup",this.Mme)),this.yV.Wc=c,this.wV&&this.wV.dispose(),this.wV=c,this.Y1e&&this.Y1e.dispose(),this.Y1e=c,this.Z1e&&this.Z1e.dispose(),this.Z1e=c,C.prototype.dispose.call(this)},n.Slider=O},"./dist/plugins/celltype/editor/timepicker.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l;function h(t,n){var t=l.call(this,t)||this;return t.Hc(),t.setOptions(n),t}i=this&&this.__extends||(f=function(t,n){return(f=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0,r=e("./dist/plugins/celltype/editor/listControl.js"),o=e("./dist/plugins/celltype/editor/baseControl.js"),a="undefined",u=e("Common"),s=u.Common.lt.ht,l=o.BaseDropdown,i(h,l),h.prototype.setOptions=function(t){var n,n,n,n;t&&(null!==(n=this.cY(t.min))&&(this.MU.min=n),null!==(n=this.cY(t.max))&&(this.MU.max=n),null!==(n=this.cY(t.step))&&(this.MU.step=n),s(t.formatString)||(this.MU.formatString=t.formatString),s(t.height)||(n=parseInt(t.height,10),isNaN(n))||(this.MU.height=n),this.MU.height=Math.max(1,this.MU.height)),this._6()},h.prototype.setValue=function(t){void 0!==t&&(this.Bz={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()},this.fY=t,this.yz(),this.scrollToSelect())},h.prototype.scrollToSelect=function(){var t,t,t=this.gz.querySelector(".selected");null!==t&&(t=t.offsetTop,this.Wc.scrollTop=t)},h.prototype.Hc=function(){var n=this;this.MU={min:{},max:{hour:23,minute:59,second:59},step:{hour:1},formatString:"hh:mm",height:200},this.gz=document.createElement("div"),this.gz.classList.add("gc-time-picker-outer-div"),this.gz.addEventListener("click",function(t){n.pz(t)}),this.Ti.appendChild(this.gz)},h.prototype.cY=function(t){var n,e,e,e,n=null;return s(t)||(n={},s(t.hour)||(e=parseInt(t.hour,10),isNaN(e))||(n.hour=e),s(t.minute)||(e=parseInt(t.minute,10),isNaN(e))||(n.minute=e),s(t.second))||(e=parseInt(t.second,10),isNaN(e))||(n.second=e),n},h.prototype._6=function(){this.gz.innerHTML="",new r.List(this.gz,this.lY()),this.yz()},h.prototype.yz=function(){var t,n,e,i,r,t=this.gz.querySelectorAll(".gc-time-picker-li");if(0r.MU.height&&0<=r.MU.height?n.style.overflowY="scroll":n.style.overflowY="hidden",n.appendChild(e),n}}},h.prototype.vY=function(t){var n=document.createElement("li");return n.classList.add("gc-time-picker-li"),n.setAttribute("hour",t.hour.toString()),n.setAttribute("minute",t.minute.toString()),n.setAttribute("second",t.second.toString()),n.innerText=this.mY(t),n},h.prototype.dY=function(){for(var t,n,e,t=this.gY(this.MU.min),n=this.gY(this.MU.max),e=[];t<=n;)e.push({hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()}),t=this.pY(t,this.MU.step);return e},h.prototype.pY=function(t,n){return typeof n.hour!=a&&t.setHours(t.getHours()+n.hour),typeof n.minute!=a&&t.setMinutes(t.getMinutes()+n.minute),typeof n.second!=a&&t.setSeconds(t.getSeconds()+n.second),t},h.prototype.mY=function(t){var n,e,t,n=new Date;return n.setHours(t.hour),n.setMinutes(t.minute),n.setSeconds(t.second),(t=(e=new u.Formatter.GeneralFormatter(this.MU.formatString)).format(n))&&""!==t&&null!==t?t:this.bY(n)},h.prototype.bY=function(t){var n,t,e,i,r,n=t.getHours(),t=t.getMinutes(),e,i,r;return(n<12?"AM":"PM")+" "+(0===n||12===n?"12":(n%12).toString())+":"+(t<10?"0"+t.toString():t.toString())},h.prototype.gY=function(t){var n=new Date;return n.setHours(t.hour||0),n.setMinutes(t.minute||0),n.setSeconds(t.second||0),n},h.prototype.hY=function(t,n){return!(!t||!n)&&(t=this.yY(t),n=this.yY(n),t.hour===n.hour)&&t.minute===n.minute&&t.second===n.second},h.prototype.yY=function(t){return{hour:t.hour||0,minute:t.minute||0,second:t.second||0}},h.prototype.pz=function(t){var t,n,e,t,i,r,r,t=t.target;t&&(n=+t.getAttribute("hour"),e=+t.getAttribute("minute"),t=+t.getAttribute("second"),(i=this.fY||new Date).setHours(n),i.setMinutes(e),i.setSeconds(t),i.setMilliseconds(0),r=(new u.Common.CultureInfo).DateTimeFormat,r=new u.Formatter.GeneralFormatter(r.defaultDatePattern).format(i),this.fire(o.BaseDropdown.Event_ValueChanged,{value:i,text:r}),this.Bz={hour:n,minute:e,second:t},this.yz())},n.TimePicker=h},"./dist/plugins/celltype/editor/workflowPicker.js":function(t,n,e){"use strict";var i,r,o,e,s,a,u,c;function f(t,n){var e=c.call(this,t)||this;return e.wY=new o.List(t),e.wY.on(r.BaseDropdown.Event_ValueChanged,function(t){e.fire(r.BaseDropdown.Event_ValueChanged,t)}),e.setOptions(n),e}function l(t,n){var i,r,o,e,a,u,i={items:[]},r=t.items,o=r.filter(function(t){return t.value===n})[0];if(s(o)&&r&&0\n
\n \n \xd7\n
\n
\n #\n
\n\n '},n.T9e=u},"./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js":function(t,n,e){"use strict";var i,r,o,h,a,u,y,f,M,e,o,s,l,c,d,v;function g(){var t=v.call(this)||this;return t.typeName="19",t._text=(0,y.getSR)().FileUpload_Title,t.N9e=l,t.j9e=l,t._9e=22,t.Hc(),t}i=this&&this.__extends||(d=function(t,n){return(d=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e,i,r,e=1,i=arguments.length;ethis._9e?this._9e:.2*i,r;return{iconSize:n,space:(i-n*t)/(t+1)}},g.prototype.H9e=function(t){var n=t.BO();Object.values(y.ICON_MAP).forEach(function(t){n.addImage(t,"anonymous")})},g.prototype.R9e=function(t,n,e,i,r){var o,a,u,s,a,c,a,i,o=t.Ut.getFileGUID(n,e),a=t.VTe(),u=t.getValue(n,e),s=a.Wxn(o,!0),a=a.FHe(o),c=this._valuePath;if(a||!u)return s&&(i?s:(a={dataUrl:s.dataUrl,blob:s.blob,name:s.name},i=(0,y.getValueByValuePath)(a,c,s),(0,y.isFileInfoEqual)(i,u)||r?a:void(0,y.x9e)({row:n,col:e,value:u,valuePath:c,fileGUID:o},t,void 0,!0)));(0,y.x9e)({row:n,col:e,value:u,fileGUID:o,valuePath:c},t,void 0,!0)},g.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,g,s=this;t&&(c=e+s._marginLeft,f=i+s._marginTop,l=r-s._marginLeft-s._marginRight,h=o-s._marginTop-s._marginBottom,d=eu._9e?4:2,i.fillRect(e-n,l-n,c+2*n,c+2*n)),i.drawImage(t,e,l,c,c))}),i.restore()},g.prototype.J9e=function(t,n,e,i,r,o){var a,n,u,s,i,e,c,o;this.isClearEnabled()&&(a=o.sheet.BO(),t.save(),t.beginPath(),i=n+i-(n=this.U9e(o.sheet,o.row,o.col,i).iconSize)-4,e=e+(s=u=2)+2,c=y.ICON_MAP.clear,a.getImage(c)||this.H9e(o.sheet),a.getState(c)&&a.qh(c)&&(o=a.getImage(c),"clear"===this.j9e&&(t.fillStyle="rgba(255, 255, 255, 0.3)",t.fillRect(i-2,e-2,n+4,n+4)),t.drawImage(o,i,e,n,n)),t.restore())},g.prototype.processMouseUp=function(t){var n,n,e,i,r,n={cancel:!1,sheet:t.sheet};if(h.Worksheet.et(t.sheet,"preUploadFile",n),!n.cancel&&this.K9e(t))return n=t.sheet,e=t.row,i=t.col,this.F9e(n,e,i)?(this.X9e(t),!0):!(this.O9e(n,e,i)||(this.H9e(n),!n)||!t.isReservedLocation||((r=this.q9e(t)).click(),0))},g.prototype.processMouseEnter=function(t){var n,e,t;return!!this.K9e(t)&&(n=t.sheet,e=t.row,t=t.col,this.N9e={row:e,col:t},n.zw(),!0)},g.prototype.processMouseLeave=function(t){return this.K9e(t)&&(this.N9e=l,t.sheet.zw()),!1},g.prototype.processMouseMove=function(t){var n,n,e,i,r,n;return!!this.K9e(t)&&(e=t.sheet,i=t.row,r=t.col,this.N9e&&(null==(n=this.N9e)?void 0:n.col)===r&&(null==(n=this.N9e)?void 0:n.row)===i||(this.N9e={row:i,col:r}),!!this.F9e(e,i,r))&&((n=this.$9e(t))!==this.j9e&&(this.j9e=n,e.zw()),!0)},g.prototype.getHitInfo=function(t,n,e,i,r){var o,a,u,s,c,o,i,o=this;return r&&(a=r.sheetArea,f(a)||3===a)&&i?(u=i.x+o._marginLeft,s=i.x+i.width-o._marginRight,c=i.y+o._marginTop,o=i.y+i.height-o._marginBottom,i={x:t,y:n,row:r.row,col:r.col,cellRect:i,sheetArea:a,sheet:r.sheet,cellStyle:e},u<=t&&t<=s&&c<=n&&n<=o&&(i.isReservedLocation=!0),i):l},g.prototype.$9e=function(t){var n,e,i,r,o,r,n,e,i,r,e,t,o,n=t.sheet,e=t.row,i=t.col,r=this.U9e(n,e,i,t.cellRect.width),o=r.iconSize,r=r.space,n=this.P9e(n,e,i),e=t.cellRect.y+(t.cellRect.height-o)/2,i=t.x>=t.cellRect.x+r-2&&t.x<=t.cellRect.x+o+r+2,r=t.x>=t.cellRect.x+o+2*r-2&&t.x<=t.cellRect.x+2*o+2*r+2,e=t.y>=e-2&&t.y<=e+o+2,t=t.x>=t.cellRect.x+t.cellRect.width-o-6&&t.x<=t.cellRect.x+t.cellRect.width-2&&t.y>=t.cellRect.y-2&&t.y<=t.cellRect.y+o+6&&this.isClearEnabled(),o=i&&e?n[0]:r&&e?n[1]:t?"clear":l;return o},g.prototype.q9e=function(t){var n,e,i,n=this,e="sjs-fake-file-upload-dom";return document.getElementById(e)&&document.getElementById(e).remove(),(i=document.createElement("input")).type="file",i.style.display="none",i.accept=n.accept(),i.id=e,i.addEventListener("change",function(){n.D7e(t,i),i.remove()}),document.body.appendChild(i),i},g.prototype.G7e=function(t,n,e,i){var r=this.R9e(t,n,e);(0,y.x9e)({row:n,col:e,value:i,oldValue:r,valuePath:this._valuePath},t,!0)},g.prototype.D7e=function(t,n){var e,i,t,n,r,r,e=t.sheet,i=t.row,t=t.col,n=n.files[0];n&&(n.size>1024*this.maxSize()?(r={row:i,col:t,maxSize:this.maxSize(),fileSize:n.size},e.jT(h.InvalidOperationType.sizeLimitExceeded,e.A9e(),r)):(r={name:n.name,blob:n},this.G7e(e,i,t,r)))},g.prototype.U7e=function(t,n){var e,i,r,o,e=t.sheet,i=t.col,r=t.row,o=this.R9e(e,r,i);if(this.E9e(o)){switch(n){case"preview":this.V7e(o,t);break;case"download":this.Y7e(e,r,i);break;case"clear":this.Z7e(e,r,i)}this.N9e=l,this.j9e=l}},g.prototype.K9e=function(t){var n=t.sheet,e=t.col,t=t.row;return!(n.isActualProtected()&&n.getCell(t,e).locked())},g.prototype.Q7e=function(t){var n;new a.T9e(document.body,2e3,!0).rQ(t.name,t.dataUrl)},g.prototype.V7e=function(t,n){var e,i,n,n,i;this.previewCommand?(e=n.sheet,i=n.col,n=n.row,n=r(r({},t),{sheetName:e.name(),row:n,col:i}),"function"==typeof this.previewCommand?this.previewCommand(n):"string"==typeof this.previewCommand&&null!=(i=e.getParent())&&i.commandManager().execute(r({cmd:this.previewCommand},n))):this.Q7e(t)},g.prototype.Y7e=function(t,n,e){var t,n,t=this.R9e(t,n,e,!0);t&&((n=document.createElement("a")).href=t.dataUrl,n.download=t.name,n.type=t.type,n.click())},g.prototype.Z7e=function(t,n,e){this.G7e(t,n,e)},g.prototype.X9e=function(t){this.j9e===l&&(this.j9e=this.$9e(t)),this.U7e(t,this.j9e)},g.prototype.Je=function(t){var t,n,n={marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,maxSize:t.maxSize,accept:t.accept,isPreviewEnabled:t.isPreviewEnabled,isDownloadEnabled:t.isDownloadEnabled,isClearEnabled:t.isClearEnabled};t.hasOwnProperty("valuePath")&&(n.valuePath=null!=(t=t.valuePath)?t:null),this.fromJSON(n)},g.prototype.toJSON=function(){var e,i,r,e=this,i={typeName:e.typeName};return s(y.defaultFileUploadProps,function(t,n){(r=e["_"+t])!==n&&(i[t]=r)}),i},g.prototype.fromJSON=function(e){var i=this;s(y.defaultFileUploadProps,function(t){var n=e[t];void 0!==n&&(i["_"+t]=n)})},c=g,n.FileUpload=c,s(y.defaultFileUploadProps,function(n){c.prototype[n]=function(t){return 0===arguments.length?this["_"+n]:(this["_"+n]=t="valuePath"===n&&void 0===t?null:t,this)}}),(0,u.registerFeatures)(),h.CellTypes.ti[19]=c},"./dist/plugins/celltype/fileUploadCellType/utils.js":function(t,g,n){"use strict";var e,n,n,i,r,m,o,a;function u(t,n,e){if(e||t){if("string"==typeof n)return(e||t)[n];if(e&&e.hasOwnProperty(n))return e[n];if(i(n)&&e)return e.cellValue}return t}function s(t,n){var e,i,r,o,e=typeof t,i;if(e!=typeof n)return!1;if("string"==e)return t===n;if("object"==e){if(t instanceof Blob||n instanceof Blob)return t===n;if(t&&n)return t.blob===n.blob&&t.dataUrl===n.dataUrl&&t.name===n.name}return!0}Object.defineProperty(g,"__esModule",{value:!0}),g.isFileInfoEqual=g.getValueByValuePath=g.x9e=g.Hne=g.E9e=g.defaultFileUploadProps=g.MIMETYPE_TO_FILE_EXTENSION_MAP=g.IMAGE_FILE_EXTENSIONS=g.ICON_MAP=g.getSR=void 0,e=n("Common"),n=n("./dist/plugins/celltype/celltypes.ns.js"),n=new e.Common.ResourceManager(n.SR,"CellTypes"),i=e.Common.lt.ht,g.getSR=n.getResource.bind(n),g.ICON_MAP={commonFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y29tbW9uIGZpbGUgaW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImNvbW1vbi1maWxlLWltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNTAsMiBDNTIuMjA5MTM5LDIgNTQsMy43OTA4NjEgNTQsNiBMNTQsNTggQzU0LDYwLjIwOTEzOSA1Mi4yMDkxMzksNjIgNTAsNjIgTDE0LDYyIEMxMS43OTA4NjEsNjIgMTAsNjAuMjA5MTM5IDEwLDU4IEwxMCwxOC4xMDEwNzQyIEwyMS45NjMzNzg5LDE4LjEwMTA3NDIgQzI0LjE3MjUxNzksMTguMTAxMDc0MiAyNS45NjMzNzg5LDE2LjMxMDIxMzIgMjUuOTYzMzc4OSwxNC4xMDEwNzQyIEwyNS45NjMzNzg5LDIgTDUwLDIgWiBNMjMsMiBMMjMsMTUgTDEwLDE1IEwyMywyIFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70iIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",errorFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZXJyb3IgSW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImVycm9yLUltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgOC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0i5b2i54q257uT5ZCILXBhdGjlpIfku70tMiIgZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSI2MCA0LjI2MzI1NjQxZS0xNCAwIDQuMjYzMjU2NDFlLTE0IDAgNDguOTQ3MzY4NCA2MCA0OC45NDczNjg0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNi44MjYsMCBMMzIsMTEuMzMwMDc4MSBMMjIsMjMuMTIxMDkzNyBMMjksMzguODQzNzUgTDI0LjEyOCw0OCBMNCw0OCBDMS43OTA4NjEsNDggLTEuMTk2OTk2ODhlLTE1LDQ2LjIwOTEzOSAwLDQ0IEwwLDQgQy0yLjcwNTQxNWUtMTYsMS43OTA4NjEgMS43OTA4NjEsLTEuMDYxNzI2MTNlLTE1IDQsMCBMMjYuODI2LDAgWiBNNTYsMCBDNTguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiA2MCwxLjc5MDg2MSA2MCw0IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDk0LDQ4IEwzNiwzOC42MjY5NTMxIEwyOSwyMy40OTgwNDY5IEwzOSwxMS4yNTM5MDYyIEwzMy44MzYsMCBMNTYsMCBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRTVFNUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNi4zNjU2ODUxLDE1IEwyMy4wMzEsMjIuMDA3IEwyMiwyMy4xMjEwOTM3IEwyOSwzOC44NDM3NSBMMjQuMTI3LDQ4IEw0LDQ4IEMxLjc5MDg2MSw0OCAyLjc2Njg4MDE4ZS0xNCw0Ni4yMDkxMzkgMi44NDIxNzA5NGUtMTQsNDQgTDIuODQyMTcwOTRlLTE0LDMxLjIxMTA3MTIgTDE2LjM2NTY4NTEsMTUgWiBNNDguMzkxNjc2OCwyNi4wMTg3NTQyIEw2MCwzNS42NDIyNzM1IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDkzLDQ4IEwzNiwzOC42MjY5NTMxIEwzMy4zMDcsMzIuODA4IEwzNy44MjA3NjkyLDM3LjU1MjcyODggTDM3LjgyMjI2NTUsMzcuMDA5MzkxNCBMNDguMzkxNjc2OCwyNi4wMTg3NTQyIFogTTQ4LDcgQzUwLjIwOTEzOSw3IDUyLDguNzkwODYxIDUyLDExIEM1MiwxMy4yMDkxMzkgNTAuMjA5MTM5LDE1IDQ4LDE1IEM0NS43OTA4NjEsMTUgNDQsMTMuMjA5MTM5IDQ0LDExIEM0NCw4Ljc5MDg2MSA0NS43OTA4NjEsNyA0OCw3IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNEM0QzRDMiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",preview:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+cHJldmlldyBpbWFnZTwvdGl0bGU+CiAgICA8ZyBpZD0icHJldmlldy1pbWFnZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEwLjAwMDE0NzMsMyBDMTIuMjM1MDA1NSwzIDE0LjI1ODM2MzUsMy45OTU2OCAxNS44Njk3MjE0LDUuMTYyMDIgQzE3LjQ4NzcyMjEsNi4zMzMyNiAxOC43NTY4NjU1LDcuNzI0NTggMTkuNDk4NTA4Nyw4LjYyNjYgTDE5LjMxMiw4Ljc3MyBMMTkuNDk4OTM3Myw4LjYyNzE2IEMyMC4xMjc1NzYyLDkuMzkzMjQgMjAuMTY0OTM0NiwxMC40MjkxMTIxIDE5LjYwOTY0MjgsMTEuMjI2Njk4OSBMMTkuNDk4NTgwMSwxMS4zNzMzMyBMMTkuMzQzMTk5NywxMS41NjAxMTc4IEMxOC41ODYwOTU5LDEyLjQ1OTk1MTIgMTcuMzc5ODU1NCwxMy43NDQ4MjI3IDE1Ljg2OTcyMTQsMTQuODM3OTggQzE0LjI1ODM2MzUsMTYuMDA0MzIgMTIuMjM1MDA1NSwxNyAxMC4wMDAxNDczLDE3IEM3Ljc2NTI4OTE4LDE3IDUuNzQxOTMxMTMsMTYuMDA0MzIgNC4xMzA2NDQ3LDE0LjgzNzk4IEMyLjUxMzU3MjU1LDEzLjY2NzQ0IDEuMjQ1MDAwNTYsMTIuMjc3MSAwLjUwMzE0MzA4MiwxMS4zNzUwOCBDMC4xNzk1MDAwOCwxMC45ODU5NSAwLDEwLjUwMjMyIDAsMTAgQzAsOS40OTc2OCAwLjE3OTUwMDA4LDkuMDE0MDUgMC41MDMyMTQ1MSw4LjYyNDkyIEMxLjI0NTAwMDU2LDcuNzIyODMgMi41MTM2NDM5OCw2LjMzMjU2IDQuMTMwNjQ0Nyw1LjE2MjAyIEM1Ljc0MTkzMTEzLDMuOTk1NjggNy43NjUyODkxOCwzIDEwLjAwMDE0NzMsMyBaIE0xMC4wMDAxNTQ3LDQgQzguMTA1MDUzNyw0IDYuMjkyMDc3NzYsNC44NjgwNSA0LjcyODMyNjk0LDYuMDIzMDUgQzMuMTcxNjI2MTMsNy4xNzI4NzUgMS45MzA1MjU0OCw4LjU1NjcgMS4xOTQ5MjUxLDkuNDY5Njc1IEMxLjA2NDgwMDAzLDkuNjI4ODI1IDEsOS44MTQxNSAxLDEwIEMxLDEwLjE4NTg1IDEuMDY0ODAwMDMsMTAuMzcxMTc1IDEuMTkxNjI1MSwxMC41MjYzNSBDMS45MzA1MjU0OCwxMS40NDMzIDMuMTcxNjI2MTMsMTIuODI3MTI1IDQuNzI4MzI2OTQsMTMuOTc2OTUgQzYuMjkyMDc3NzYsMTUuMTMxOTUgOC4xMDUwNTM3LDE2IDEwLjAwMDE1NDcsMTYgQzExLjg5NTMzMDcsMTYgMTMuNzA4MjMxNiwxNS4xMzE5NSAxNS4yNzE5ODI0LDEzLjk3Njk1IEMxNi44Mjg2MDgyLDEyLjgyNzIgMTguMDY5NzA4OSwxMS40NDM0NSAxOC44MDUzMDkzLDEwLjUzMDQ3NSBDMTkuMDY0NzM0NCwxMC4yMDg0MjUgMTkuMDY1MTg0NCw5Ljc5MjcgMTguODA0OTM0Myw5LjQ2OTA3NSBDMTguMDY5MjU4OSw4LjU1NjEgMTYuODI4MzgzMiw3LjE3MjY1IDE1LjI3MTk4MjQsNi4wMjMwNSBDMTMuNzA4MjMxNiw0Ljg2ODA1IDExLjg5NTMzMDcsNCAxMC4wMDAxNTQ3LDQgWiBNOS45OTk5NjA0NSw2IEMxMi4xNzA5ODU2LDYgMTQsNy43NTIwNzQyOCAxNCwxMCBDMTQsMTIuMjQ3OTI1NyAxMi4xNzA5ODU2LDE0IDkuOTk5OTYwNDUsMTQgQzcuODI5MDE0MzcsMTQgNiwxMi4yNDc5MjU3IDYsMTAgQzYsNy43NTIwNzQyOCA3LjgyOTAxNDM3LDYgOS45OTk5NjA0NSw2IFogTTkuOTk5OTUwOTMsNyBDOC4yOTU3MTY2LDcgNyw4LjM5MjUzMDg5IDcsMTAgQzcsMTEuNjA3NDY5MSA4LjI5NTcxNjYsMTMgOS45OTk5NTA5MywxMyBDMTEuNzA0MTg1MywxMyAxMywxMS42MDc0NjkxIDEzLDEwIEMxMyw4LjM5MjUzMDg5IDExLjcwNDE4NTMsNyA5Ljk5OTk1MDkzLDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",download:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZG93bmxvYWQgZmlsZXM8L3RpdGxlPgogICAgPGcgaWQ9ImRvd25sb2FkLWZpbGVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTEuMDg4Nzc5NSwyLjM3ODY0NTkgTDE1Ljk2NTI4NTUsNyBMMTUuOTY1Mjg1NSw3IEwxNS45NjUyODU1LDggTDExLjA4ODc3OTUsMTIuNjIxMzU0MSBDMTAuODg2Nzg2NiwxMi44MTI3NzgxIDEwLjU2OTA4NTEsMTIuODA4NTExNSAxMC4zNzIzMDU3LDEyLjYxMTczMjEgQzEwLjE4MDkxNTIsMTIuNDIwMzQxNiAxMC4xODA5MTUyLDEyLjExMDAzNjQgMTAuMzcyMzA1NywxMS45MTg2NDU5IEMxMC4zNzQ2MTksMTEuOTE2MzMyNiAxMC4zNzY5NTU0LDExLjkxNDA0MjUgMTAuMzc5MzE0NiwxMS45MTE3NzYgTDE0LjQ1MTI4NTUsNy45OTk3MTQ1IEwxNC40NTEyODU1LDcuOTk5NzE0NSBMNS40NjUyODU1LDcuOTk5OTg0OTUgQzUuMTg5MTUxNDQsNy45OTk5OTMyNiA0Ljk2NTI5MzgxLDcuNzc2MTQ5MTEgNC45NjUyODU1LDcuNTAwMDE1MDUgQzQuOTY1Mjg1NSw3LjUwMDAxMDAzIDQuOTY1Mjg1NSw3LjUwMDAwNTAyIDQuOTY1Mjg1NSw3LjUgQzQuOTY1Mjg1NSw3LjIyMzg1NTE5IDUuMTg5MTQwNjksNi45OTk5OTMyNiA1LjQ2NTI4NTUsNi45OTk5ODQ5NSBMMTQuNDUxMjg1NSw2Ljk5OTcxNDUgTDE0LjQ1MTI4NTUsNi45OTk3MTQ1IEwxMC4zNzkzMzc4LDMuMDg4MTk5ODcgQzEwLjE4NDE1MzcsMi45MDA3MDU5NCAxMC4xNzc5MTk2LDIuNTkwNDg0MDkgMTAuMzY1NDEzNSwyLjM5NTI5OTk5IEMxMC4zNjc2ODczLDIuMzkyOTMyOTQgMTAuMzY5OTg0OCwyLjM5MDU4ODc5IDEwLjM3MjMwNTcsMi4zODgyNjc5IEMxMC41NjkwODUxLDIuMTkxNDg4NDcgMTAuODg2Nzg2NiwyLjE4NzIyMTg1IDExLjA4ODc3OTUsMi4zNzg2NDU5IFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70tM+Wkh+S7vSIgZmlsbD0iI0ZGRkZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuNDY1Mjg1LCA3LjUwMDAwMCkgc2NhbGUoLTEsIC0xKSByb3RhdGUoLTkwLjAwMDAwMCkgdHJhbnNsYXRlKC0xMC40NjUyODUsIC03LjUwMDAwMCkgIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTE3LjE0NjM2MzYsMTEuMTQ2MzYzNSBDMTcuMDUyNTc5MSwxMS4yNDAxNDggMTYuOTk5OTI0OSwxMS4zNjczNjg2IDE3LDExLjQ5OTk5OSBMMTcsMTUuOTk5OTk5IEw0LDE1Ljk5OTk5OSBMNCwxMS40OTk5OTkgQzQsMTEuMjIzODU3NSAzLjc3NjE0MjQ2LDEwLjk5OTk5OSAzLjUsMTAuOTk5OTk5IEMzLjIyMzg1NzcxLDEwLjk5OTk5OSAzLDExLjIyMzg1NzUgMywxMS40OTk5OTkgTDMsMTYuNDk5OTk5IEMzLDE2LjYzMjYzMTIgMy4wNTI1NzkxMiwxNi43NTk4NTE5IDMuMTQ2MzYzNjIsMTYuODUzNjM2NCBDMy4yNDAxNDgxMiwxNi45NDc0MjA5IDMuMzY3MzY4NzksMTcuMDAwMDc1MSAzLjUsMTYuOTk5OTk5IEwxNy41LDE2Ljk5OTk5OSBDMTcuNjMyNjMxNCwxNy4wMDAwNzUxIDE3Ljc1OTg1MiwxNi45NDc0MjA5IDE3Ljg1MzYzNjUsMTYuODUzNjM2NCBDMTcuOTQ3NDIxLDE2Ljc1OTg1MTkgMTgsMTYuNjMyNjMxMiAxOCwxNi40OTk5OTkgTDE4LDExLjQ5OTk5OSBDMTgsMTEuMzY3MzY4NiAxNy45NDc0MjEsMTEuMjQwMTQ4IDE3Ljg1MzYzNjUsMTEuMTQ2MzYzNSBDMTcuNzU5ODUyLDExLjA1MjU3OSAxNy42MzI2MzE0LDEwLjk5OTkyNDcgMTcuNSwxMC45OTk5OTkgQzE3LjM2NzM2ODgsMTAuOTk5OTI0NyAxNy4yNDAxNDgxLDExLjA1MjU3OSAxNy4xNDYzNjM2LDExLjE0NjM2MzUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",clear:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2xlYXIgdXBsb2FkZWQgZmlsZTwvdGl0bGU+CiAgICA8ZyBpZD0iY2xlYXItdXBsb2FkZWQtZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTE2LjgyNTEzNjUsNC4wMTU0OCBDMTcuMDU4Mjg3OCwzLjc4MzE4NTQgMTcuMDU4Mjg3OCwzLjQwNjUxODQzIDE2LjgyNTEzNjUsMy4xNzQyMjA5NSBDMTYuNTkzMzMyLDIuOTQxOTI2MzUgMTYuMjE3MTU1MSwyLjk0MTkyNjM1IDE1Ljk4NDQ5NDUsMy4xNzQyMjA5NSBMMTAuMDAwMjM0OCw5LjE1ODcyNDYyIEw0LjAxNTQ4LDMuMTc0MjIwOTUgQzMuNzgzMTg1NCwyLjk0MTkyNjM1IDMuNDA2NTE4NDMsMi45NDE5MjYzNSAzLjE3NDIyMDk1LDMuMTc0MjIwOTUgQzIuOTQxOTI2MzUsMy40MDY1MTU1NiAyLjk0MTkyNjM1LDMuNzgzMTgyNTMgMy4xNzQyMjA5NSw0LjAxNTQ4IEw5LjE1ODg1Mzc4LDEwLjAwMDExMjggTDMuMTc0MjIwOTUsMTUuOTg1MTExNiBDMi45NDE5MjYzNSwxNi4yMTc1MjgyIDIuOTQxOTI2MzUsMTYuNTkzNDYwNCAzLjE3NDIyMDk1LDE2LjgyNTg3NTYgQzMuNDA2NTE1NTYsMTcuMDU4MjkyMiAzLjc4MzE4MjUzLDE3LjA1ODI5MjIgNC4wMTU0OCwxNi44MjU4NzU2IEwxMC4wMDAyMzQ4LDEwLjg0MTM3MTkgTDE1Ljk4NDQ5NDUsMTYuODI1ODc1NiBDMTYuMjE3MTU2NSwxNy4wNTgyOTIyIDE2LjU5MzQ1NjEsMTcuMDU4MjkyMiAxNi44MjUxMzY1LDE2LjgyNTg3NTYgQzE3LjA1ODI4NzgsMTYuNTkzODI2MyAxNy4wNTgyODc4LDE2LjIxNzUyNjcgMTYuODI1MTM2NSwxNS45ODUxMTE2IEwxMC44NDEzNjQ3LDEwLjAwMDExMjggTDE2LjgyNTEzNjUsNC4wMTU0OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},g.IMAGE_FILE_EXTENSIONS=["jpg","jpeg","png","gif","bmp","svg","ico","webp"],g.MIMETYPE_TO_FILE_EXTENSION_MAP={"image/jpeg":g.IMAGE_FILE_EXTENSIONS[1],"image/jpg":g.IMAGE_FILE_EXTENSIONS[0],"image/png":g.IMAGE_FILE_EXTENSIONS[2],"image/gif":g.IMAGE_FILE_EXTENSIONS[3],"image/bmp":g.IMAGE_FILE_EXTENSIONS[4],"image/svg+xml":g.IMAGE_FILE_EXTENSIONS[5],"image/x-icon":g.IMAGE_FILE_EXTENSIONS[6],"image/webp":g.IMAGE_FILE_EXTENSIONS[7]},g.defaultFileUploadProps={marginTop:2,marginRight:2,marginBottom:2,marginLeft:2,maxSize:2048,accept:"",isPreviewEnabled:!0,isDownloadEnabled:!0,isClearEnabled:!0,valuePath:"dataUrl"},g.E9e=r=function(t){return t&&"string"==typeof t.name&&(t.blob&&t.blob instanceof Blob||t.dataUrl&&"string"==typeof t.dataUrl)},m=function(t){var n,n,e,e={name:""};return"string"==typeof t?e.dataUrl=t:t instanceof Blob?(e.blob=t,e.name=null!=(n=t.name)?n:""):t instanceof Object&&(e=t)&&t.hasOwnProperty("blob")&&t.blob instanceof Blob&&!t.hasOwnProperty("name")&&(t.name=null!=(n=t.blob.name)?n:""),(0,g.E9e)(e)?e:void 0},g.Hne=o=function(t){var n=crypto&&crypto.randomUUID&&crypto.randomUUID();return e.Common.lt.ht(n)&&(n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})),n=32===t?n.split("-").join(""):n},g.x9e=a=function(t,u,s,c){var f,l,h,d,v,t,n,e,i,r,t,o,a,a,f=t.row,l=t.col,h=t.value,d=t.oldValue,v=t.valuePath,t=t.fileGUID,n=u.VTe(),e=u.Ut.getFileGUID(f,l),i=n.Wxn(e);i&&n.FAe([e]),(r=m(h))?(t=null!=t?t:(0,g.Hne)(),o=function(t){var n,n,e,i,r,o,a,n,e,n,e,e=t.name,i=t.dataUrl;c&&(t[r=null===(r=v)?"cellValue":v]=h),o=!1,a=u.BO(),-1=a&&l.rowCount<=1&&l.col>=s&&s===l.col&&(f=o.nn(s,c),1i&&(r=(n.height-i-e)/2+e):2===t.vAlign&&(r=n.height-i-e),r}function tt(t,n,e,i,r){var o,a,u,s;if(t._direction===Z.vertical){if(t._isFlowLayout){if(r!==h)for(o=t._items.length;0l.x+l.width||r.y>l.y+l.height?y[t]=null:y[t]=r},C=0;Ce.DQ&&t<=e.RQ&&i.dynamicSize()&&(e.RQ+=n),e.AQ()},L.prototype.qO=function(t,n){var e=this,i=e.TZ;t<=e.NQ?i.dynamicMove()&&(e.NQ+=n,e.jQ+=n):t>e.NQ&&t<=e.jQ&&i.dynamicSize()&&(e.jQ+=n),e.AQ()},L.prototype.xP=function(t,n){var e,i,r,e=this,i=e.TZ,r=t+n-1;tl.x+R(l)&&(a+=l.x+R(l)-1-s)),(a=x(R(l)-1,a))<0&&(s=i.Mf,d=i.yZ,v=s.r6(s.getColumnCount()-s.lL),g=s.getViewportRightColumn(1),!1===s.Vy)&&d===v&&d===g&&(u=l.x+R(l)-1-i.width(),a=i.width()),rl.y+E(l)&&(o+=l.y+E(l)-1-c)),o=x(E(l)-1,o),(s=(0,T.GC$)(e.qW)).css({left:u,top:r}),v=s.height(),d=s.width(),g=!1,(f=e.JQ(a,o))&&(a=f.adjustedWidth,o=f.adjustedHeight,g=!n&&f.needReposition),o<=0&&v<=0||a<=0&&d<=0||((1e.x?_(n.left+i.left,n.top+i.top):n.top+i.top+u.height()h.x+R(h)&&(i-=f-(h.x+R(h))),i=x(R(h),i),nh.y+E(h)&&(s-=l-(h.y+E(h))),s=x(E(h),s),(0,T.GC$)(t.$W).css(p,c).css(b,n).css(g,i).css(w,s),m.$l(t.tQ,i,s),e.x=e.x-c,e.y=e.y-n,u.x=u.x-c,u.y=u.y-n,t.eK(e,u)},L.prototype.eK=function(t,n){var e,i,r,e,e=this;e.iK||(e.iK=e.tQ.getContext("2d")),i=e.iK,r=e.TZ.borderColor(),i.strokeStyle=r,i.clearRect(0,0,m.Xl(e.tQ),m.ql(e.tQ)),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(n.x,n.y),i.stroke(),i.save(),nt.Yl(i,t.x,t.y),i.fillStyle=r,i.beginPath(),e=z(n.y-t.y,n.x-t.x),i.rotate(e),i.moveTo(0,0),i.lineTo(7,-4),i.lineTo(7,4),i.lineTo(0,0),i.fill(),nt.Yl(i,-t.x,-t.y),i.closePath(),i.restore()},L.prototype.UQ=function(){var t,n,e,i,r,o,a,u,s,c,t=this,n=t.TZ,e=n.Mf;t.rK=t.TZ.commentState(),t.oK||(t.oK=t.SW.getContext("2d")),i=t.oK,r=m.Xl(t.SW),o=m.ql(t.SW),a=(0,T.GC$)(t.TW).outerWidth(),u=(0,T.GC$)(t.TW).outerHeight(),s=t.eQ,i.clearRect(0,0,r,o),t.TZ.showShadow()&&(t.aK(i,r,o),i.clearRect(s,s,r-(c=2*(s+2)),o-c),t.uK(i,s,a,u)),kn(e,n)&&t.sK(i,s,r,o,a,u),i.restore()},L.prototype.uK=function(t,n,e,i){t.save(),t.fillStyle=fn,t.fillRect(n+2,i+n,e,2),t.fillRect(e+n,n+2,2,i),t.restore()},L.prototype.aK=function(t,n,e){var i,r,o;switch(t.save(),t.strokeStyle=fn,this.rK){case D.active:for(t.beginPath(),r=0;r=t.row&&a=t.col&&oi.zIndex())&&(i=o);return i?{x:t,y:n,comment:i,area:e.GK(i,t,n)?Yt:Zt}:d},e.prototype.nK=function(t){var n=this,e=n.RK();return t===n.PW?e+2:t===n.MZ?e+1:t.zIndex()},e.prototype.jK=function(){this.UW.forEach(function(t){t.TQ()})},e.prototype.fromJSON=function(t,n){var e,i,r,o,e=this;if(t&&0!==t.length){for(i=e.GW=0;it&&(t=a.RQ),a.jQ>n)&&(n=a.jQ);return{lastNonNullRow:t,lastNonNullCol:n}},clearSelection:function(){this.Ut.pI.CZ()},processKeyDown:function(t){var n=this,e=n.Ut.pI.pZ();e&&n.rt.Pi(t.e)&&jn(n,e)&&(e.commentState(2,!0),t.r=!0)},yh:function(t,n,e){var i,t,r,r,o,i,a,u,s,c,f,o,t,l,i=S(t,"legacyDrawing"),t=t.rels,r=e&&!1===e.includeStyles;if(i&&!r){for(r=this,o=t.c_,i=i&&i["r:id"],u=0,s=o;u!1,this.u_e=()=>!1,this.s_e=()=>!1,this.c_e=t=>{this.a_e(t)||(this.f_e?this.l_e():this.h_e())},this.d_e=()=>{this.f_e=this.v_e();var t=document.createElement("div");this.f_e.appendChild(t),t.classList.add("dp-panel"),t.style.position="fixed",t.style.boxShadow=r.CSSUtils.boxShadow.replace("box-shadow:","").replace(";",""),t.style.background=r.CSSVariables.background,t.style.color=r.CSSVariables.color,t.style.width=this.g_e.getBoundingClientRect().width+"px",this.shadowRoot.querySelector(".container").appendChild(this.f_e),window.addEventListener("resize",this.dC),window.addEventListener("mousedown",this.m_e,!0),window.addEventListener("wheel",this.p_e)},this.b_e=()=>{window.removeEventListener("resize",this.dC),window.removeEventListener("mousedown",this.m_e,!0),window.removeEventListener("wheel",this.p_e),this.f_e.remove(),this.f_e=void 0},this.v_e=()=>{var t=document.createElement("div");return t.style.zIndex="1024",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.background="transparent",t.classList.add("dp-panel-root"),t},this.dC=()=>{this.w_e()},this.m_e=t=>{var n,e;!this.f_e||t.target.closest(".sjs-dp-panel-sub-content")||(n=this.g_e.getBoundingClientRect(),e=this.y_e().getBoundingClientRect(),this.C_e(n,t.clientX,t.clientY))||this.C_e(e,t.clientX,t.clientY)||this.l_e()},this.p_e=t=>{var n=this.y_e().getBoundingClientRect();this.C_e(n,t.clientX,t.clientY)||this.l_e()},this.C_e=(t,n,e)=>n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom,this.y_e=()=>this.f_e.querySelector(".dp-panel")}connectedCallback(){this.y4=this.M_e(this.getAttribute("value"));var t=this.getAttribute("label"),n=this.attachShadow({mode:"open"}),e=this.u_e(),i=this.s_e();n.innerHTML=` +var GC;!function(){var e,i,t;function r(t){var n,n,n=i[t];return void 0!==n||(n=i[t]={exports:{}},e[t].call(n.exports,n,n.exports,r)),n.exports}e={"./all.entry.js":function(t,n,e){(GC=GC||{}).Spread=GC.Spread||{},GC.Spread=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),GC.Spread.CalcEngine=e("./node_modules_local/@spreadjs/js-calc/index.js"),GC.Spread.CalcEngine.BasicFunctions=e("./node_modules_local/@spreadjs/js-calc-basicfunctions/index.js"),GC.Spread.CalcEngine.AdvancedFunctions=e("./node_modules_local/@spreadjs/js-calc-advancedfunctions/index.js"),GC.Data=e("./node_modules_local/@spreadjs/js-data-manager/index.js"),GC.Spread.Sheets=e("./dist/core/core.entry.js"),GC.Spread.Sheets.Bindings=e("./dist/plugins/data/data.entry.js"),GC.Spread.Sheets.Outlines=e("./dist/plugins/group/group.entry.js"),GC.Spread.Sheets.CalcEngine=e("./dist/plugins/sheetsCalc/sheetsCalc.entry.js"),GC.Spread.Sheets.ConditionalFormatting=e("./dist/plugins/conditional/conditional.entry.js"),GC.Spread.Sheets.DataValidation=e("./dist/plugins/validation/datavalidation.entry.js"),GC.Spread.Sheets.Search=e("./dist/plugins/search/search.entry.js"),GC.Spread.Sheets.Touch=e("./dist/plugins/touch/touch.entry.js"),GC.Spread.Sheets.FloatingObjects=e("./dist/plugins/floatingObject/floatingobject.entry.js"),GC.Spread.Sheets.Sparklines=e("./dist/plugins/sparkline/sparkline-wrapper.entry.js"),GC.Spread.Sheets.Comments=e("./dist/plugins/comment/comment.entry.js"),GC.Spread.Sheets.CellState=e("./dist/plugins/cellState/cellstate.entry.js"),GC.Spread.Sheets.CellTypes=e("./dist/plugins/celltype/celltypes.entry.js"),GC.Spread.Sheets.Filter=e("./dist/plugins/filter/filter.entry.js"),GC.Spread.Sheets.Tables=e("./dist/plugins/table/table.entry.js"),GC.Spread.Sheets.Fill=e("./dist/plugins/fill/fill.entry.js"),GC.Spread.Sheets.ContextMenu=e("./dist/plugins/contextMenu/context-menu.entry.js"),GC.Spread.Sheets.FormulaTextBox=e("./dist/plugins/formulaTextbox/formulaTextBox.entry.js"),GC.Spread.Sheets.OutlineColumn=e("./dist/plugins/outlineColumn/outlineColumn.entry.js"),GC.Spread.Sheets.DragMerge=e("./dist/plugins/dragMerge/dragMerge.entry.js"),GC.Spread.Sheets.StatusBar=e("./dist/plugins/statusBar/statusBar.entry.js"),GC.Spread.Sheets.AutoMerge=e("./dist/plugins/autoMerge/autoMerge.js"),GC.Spread.Sheets.Hyperlink=e("./dist/plugins/hyperlink/hyperlink.js"),GC.Spread.Sheets.NameBox=e("./dist/plugins/namebox/namebox.entry.js"),GC.Spread.Sheets.Components=e("./dist/plugins/components/index.js"),GC.Spread.Sheets.InputMask=e("./dist/plugins/inputMask/inputMask.entry.js"),GC.Spread.Sheets.Spacing=e("./dist/plugins/spacing/spacing.js"),t.exports=GC.Spread},"./dist/core/celltype/basecelltype.js":function(n,u,t){"use strict";var c,v,ht,dt,g,Z,e,l,h,d,p,t,W,o,Q,Mt,J,vt,y,M,K,R,et,C,L,S,x,X,q,$,j,tt,b,_,A,gt,N,mt,pt,Ct,bt,i,s,wt,St,T,D,k,O,r,E,F,B,I,P,a,G;function nt(t){var n=t.isPrinting,t=t.printZoomFactor;return n&&typeof t===b&&1!==t}function U(t){var n;return!(t instanceof CanvasRenderingContext2D)&&!C(t._ae)}function H(t,n){var e,i,r,e=0,i=t.font+n,r=!U(t);return r&&D[i]?e=D[i]:(e=K(t,t.font,n),r&&(D[i]=e)),e}function w(){}function z(t,n){var e;return n/2-t/2+(8=n.width))if(0===(a=(a=t.labelOptions.alignment)===A?t.labelOptions.alignment=0:a)||1===a||2===a){if(0e.y+e.height&&(s.y=wt(s.y-(s.y+s.height-e.y-e.height),e.y))),n=(a=f.getImage(l)).width,h=a.height,ht.mt.Tt.msie&&(O[l]||(a.style.position="absolute",a.style.left="-10000px",a.style.top="-100000px",document.body.appendChild(a),O[l]={width:a.width,height:a.height},document.body.removeChild(a)),n=O[l].width,h=O[l].height),u&&ht.mt.Tt.msie&&s.x+s.width>u.x+u.width?0<(i=c=u.x+u.width-s.x)&&t.drawImage(a,0,0,i*(d=n/r),h,N(s.x),N(s.y),i,o):(c=r,t.drawImage(a,0,0,n,h,N(s.x),N(s.y),c,o))):f.addImage(l,"anonymous"),t.restore()}function an(t){var n=t.context,e=t.style,t=t.externals;dt.W.Xue(e)&&(t.left=t.left.concat(un(n,e,Z.IconPosition.leftOfText)),t.right=t.right.concat(un(n,e,Z.IconPosition.rightOfText)))}function un(n,t,e){for(var i,r,o,a,i=!1,r=0,o=t.decoration.icons;r=s&&x.col>=c&&1=v&&y.col>=g&&1=v&&y.col>=g&&1=t.width&&(i.width=0),r+a>=t.height&&(i.height=0),i},f.prototype.In=function(t,n,e,i){var r,o,r,r=this,o=nt(i)?i.printZoomFactor:i.sheet.zoom();return n=r.An(n,e,o),f.et(i.sheet,"getCellPaddingRect",r={ctx:t,options:{rect:n,context:i}}),r.options.rect},f.prototype.xn=function(t,n,e,i){var r,o,i,a,u,s,c,o,f,l,n,a,h,d,r=e.labelOptions;r&&(i=(o=i.sheet).getText(i.row,i.col,i.sheetArea),a=e.watermark,1!==(u=r.visibility))&&a&&(s=r.font||e.font||o.Dn.Nn(),1!==(c=o.zoom())&&(s=o.Dn._n(s)),o=Q(s),f=Rt(e,n)?Pt(n,e):f)&&((l=(0,v.GC$)(ht.mt.En("span"))).text(a),n=(2===u||u===A)&&""===i,a=f.height-o,h=f.y+(n&&0e.width?a.width+u.width+t.width:e.width,e=!isNaN(a&&a.height)&&a.height+u.height+t.height>e.height?a.height+u.height+t.height:e.height,r.updateEditorContainer(o,a,n,i,s={width:c,height:e},u,t)},f.prototype.Bn=function(t,n,e,i,r){return this.getCellAndPaddingHitInfo(t,n,e,i,r)},f.prototype.Ln=function(t,n,e,i,r){var o,t,o=kt(r,e)+Nt(r)+jt(r,e),t=this.getAutoFitWidth(t,n,e,i,r);return 0M-1-2?(y=y.substring(0,y.length-4)+k,c.push(y.split(k)[0].length)):c.push(x)}else if(1===d){for(A=0;AM-1-2?(y=y.replace(m[S],""),c.push(y.split(k)[0].length)):c.push(x),s[g].y=a+(o-(3*w+(y.length-3)*p))/2}else{for(c.push(0),T=m.length-1;T>=m.length-C;T--)y=m[T]+y;3*w+((y=k+y).length-3)*p+u>M-1-2&&(y=y.replace(m[m.length-C],"")),s[g].y=a+o-u-(3*w+(y.length-3)*p)-2}e[g].textInfos[0].text=y,f.Ut.$n(l,h,m,v)}else f.Ut.$n(l,h,null,v)},f.prototype.Qn=function(t,n,e,i,r,o,a,u,s,c,f,l){var h,d,v,g,m,h,p,b,w,y,M,C,S,y,T,m,h,d,l,m,x,A,b,S,I,N,k,T,f,j,D;if(n&&n.richText&&(n={text:(n=n.converted?n:ht.util.g0(n)).text,richText:n.converted}),v=this,g=new ht.Rect(e,i,r,o),m=u.sheet?u.sheet.zoom():1,h=u.printZoomFactor,h=nt(u)?h:_,p=v.Gn(a.textIndent,u.sheet.outlineColumn,u.col,h?h*m:m),b=u.cellOverflowLayout&&u.cellOverflowLayout.expandedWidth,w=a.hAlign,y=a.formatter||a._autoFormatter,3===w&&(w=Mt(w,n,y)),C=!!(M=a.isVerticalText&&4!==w)&&J(s),S=a.font,y=v.Ft(y,n&&n.text),T=L(!0,[],v.Pt(n,s,y,S,a.foreColor)),(0,ht.resetFillStyle)(t,u.sheet,a,f),n&&n.richText&&0C.length?S.substring(0,S.length-1)+k+C:S+k+C.substring(1,C.length),M=this.qn(i,g)}else for(m=0;mr||4===m,v=p.x,b=p.y,_=p.width,p=p.height,g)if(t.rect(v,b,_,p),t.clip(),t.beginPath(),O=i+M,1w.backgroundLeftWidth||g>w.backgroundRightWidth)&&(f=!0):(_d.backgroundLeftWidth||h>d.backgroundRightWidth)&&(v=!0):(ae-d.x&&p&&(o=d.x+b+1,M=d.width-b-1),S="",n.forEach(function(t){return S+=t.value}),h=i,(a=pn([S],f.lineHeight,l)).descenderHeight&&(h+=a.descenderHeight),f.textRect=new ht.Rect(e,h,e,a.height),g.Zn(t,l,f,o,i,m,f.lineHeight,d),M?(t.save(),t.beginPath(),t.rect(o,d.y,M,d.height),t.clip(),C=this.We(t,n,e,i,y,u,s,c,l.textDirection),t.restore()):C=this.We(t,n,e,i,y,u,s,c,l.textDirection),g.Wn(t,l,f,e,i,C-e,f.lineHeight,d),t.restore()},f.prototype.We=function(t,n,e,i,r,o,a,u,s){for(var c,f,l,l,c=this.qn(t,"0"),f=0;fn?r+=o*(u=pt(t[a]/n)):r+=o;return r}function en(t,n,e){var t=K(t);return t&&"="===t[0]||""===t&&"="===n[0]||0===e&&"="===n[0]}function rn(t){var t=t&&t.tagName;return"TEXTAREA"===t||"INPUT"===t}function on(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?At:xt)}function an(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?xt:At)}function un(t){var n,e,i;if(t&&t.content)for(n=t.content.length-1;0<=n&&((e=t.content[n])&&e.value&&e.value.endsWith(Tt));n--){for(i=e.value.length-1;0<=i&&e.value[i]===Tt;i--);if(-1!==i){e.value=e.value.substring(0,i+1);break}t.content.pop()}}function sn(t,n){t.ki(d,{sheet:t,sheetName:t.name(),row:t.ui,col:t.ci,editingText:n})}function cn(t,n,e,i,r,o,a){var u,s,c,f,l,t,i,h,i,d,v,t,r,i,g,m,u=t,s=a.sheet,c=s.zoom?s.zoom():1,l=i,t=o.textOrientation,i=o.textIndent&&0!==o.textIndent,h=o.isVerticalText;if(t&&-90<=t&&t<=90&&!i&&!h&&(i=yt(t*Math.PI/180),l=(r-a.lineHeight*wt(i))/bt(i)),v={},r=(t=o.formatter)&&"General"!==t,i=D(t),g=o._autoFormatter&&o._autoFormatter.formatCached&&"General"!==o._autoFormatter.formatCached,(r="string"==typeof t?r&&!i:r)?d=o.formatter:g?d=o._autoFormatter:s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.mask?d=R.Context.Nt(n,e,l,o,c):s.parent&&s.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(d=o._autoFormatter),!(f=i&&(e instanceof Date||"boolean"==typeof e||e instanceof Boolean||"number"==typeof e)?u.format(e,t,{}):u.format(et(e),d,v,a))||!f.endsWith(Tt)||!0!==o.wordWrap&&(5!==o.hAlign||a.sheet.options.showFormulas&&a.isFormula)||(f=(0,L.r2e)(f),un(v)),!0!==o.shrinkToFit&&!h&&it(e)&&s.parent){switch(m=f,s.parent.options.numbersFitMode){case x.NumbersFitMode.mask:m=u.wi(n,f,l,o,c,a,v,s);break;case x.NumbersFitMode.overflow:m=u.overflow(n,a,e,o,s,f,v)}f=m}return f}function o(t){var n=Dt.call(this)||this;return n.allowOverflow=!0,n.typeName="1",n.editorType=F(t)?1:t,n}function fn(t){var n,t,e,i,r,n=["0","0","0","0"];return typeof t===It&&(r=i=void 0,1===(e=(t=t.split(" ",4)).length)?n=[i=t[0],i,i,i]:2===e?n=[i=t[0],r=t[1],i,r]:3===e?(r=t[1],n=[t[0],r,t[2],r]):4===e&&(n=[t[0],t[1],t[2],t[3]])),n}u=this&&this.__extends||(jt=function(t,n){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}jt(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextCellType=t.EditorType=t.xHe=void 0,e=n("Common"),h=n("./dist/core/worksheet/worksheet.js"),E=n("./dist/core/util/domUtil.js"),i=n("./dist/core/util/common.js"),l=n("./dist/core/celltype/celltype.ns.js"),R=n("./dist/core/celltype/basecelltype.js"),x=n("./dist/core/core.enum.js"),L=n("./dist/core/util/common.js"),n=n("CalcEngine"),j=!!n,F=e.Common.lt.ht,X=i.q,d=i.Events.EditChange,v=i.hi,r=i.mt,s=i.di,D=r.St,g=r.En,c=r.Tt,B=c.msie,_=c.edge,q=c.chrome,y=r.vi,$=r.gt,m=r.mi,p=r.gi,f=r.pi(),tt=r.vt,b=r.bi,w=r.Mt,O=r.yi,nt=r.yt,et=r.wt,it=r.Ct,P="left",rt="right",ot="center",at="top",M="gcUIElement",G="none",C=".gcEditingInput",S="gcEditingInput",U="width",H="height",ut="text-align",z="hidden",V="word-wrap",Y="overflow",st="vertical-align",Z="normal",ct="break-word",ft="overflow-y",lt="scroll",ht="word-break",dt="float",T=window,A=document,vt=.337,gt=f.ipad,mt=f.iphone||gt||f.android,I=null,N=void 0,pt=Math.ceil,W=Math.min,bt=Math.sin,wt=Math.cos,yt=Math.abs,Mt=Math.max,Q=parseInt,Ct="\xa0",St="\u200b",Tt=" ",xt=90,At=89,It="string",Nt="number",t.xHe=cn,(n=kt=t.EditorType||(t.EditorType={}))[n.textarea=0]="textarea",n[n.editableDiv=1]="editableDiv",Dt=R.Base,u(o,Dt),o.prototype.getText=function(t,n){return t},o.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,m,p,b,w,p,m,y,p,M,C,M,S,C,T,p,v,M,s=this,c=u.sheet,f=c.zoom?c.zoom():1;if(n=s.getText(n,u),l={},u.quotePrefix=a.quotePrefix,v=(d=a.formatter)&&"General"!==d,g=D(d),"string"==typeof d&&(v=v&&!g),m=a.textOrientation,p=a.textIndent&&0!==a.textIndent,b=a.isVerticalText,w=r,m&&-90<=m&&m<=90&&!p&&!b&&(p=yt(m*Math.PI/180),w=(o-u.lineHeight*wt(p))/bt(p)),m=(y=s.Pn(t,h,a,u,e,i,r,o)).externals,p=s.Hn(m.left),M=s.Hn(m.right),2===(C=3===(C=a.hAlign)?$(C,n,a.formatter||a._autoFormatter):C)?w-=M:0===C&&(w-=p),M=a._autoFormatter&&a._autoFormatter.formatCached&&"General"!==a._autoFormatter.formatCached,v?S=a.formatter:M?S=a._autoFormatter:c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.mask?S=R.Context.Nt(t,n,w,a,f):c.parent&&c.parent.options.numbersFitMode===x.NumbersFitMode.overflow&&(S=a._autoFormatter),!(h=g&&(n instanceof Date||"boolean"==typeof n||n instanceof Boolean||"number"==typeof n)?s.format(n,d,{}):s.format(et(n),S,l,u))||!h.endsWith(Tt)||!0!==a.wordWrap&&(5!==a.hAlign||u.sheet.options.showFormulas&&u.isFormula)||(h=(0,L.r2e)(h),un(l)),C=new L.Rect(e,i,r,o),this.adjustRectForIconSet(a.hAlign,u.sheet,u.row,u.col,u.sheetArea,C,l.content&&this.hasInfilling(l.content)),e=C.x,r=C.width,!0!==a.shrinkToFit&&!b)if(it(n)){if(c.parent){switch(T=h,c.parent.options.numbersFitMode){case x.NumbersFitMode.mask:T=this.wi(t,h,w,a,f,u,l,c);break;case x.NumbersFitMode.overflow:T=this.overflow(t,u,n,a,c,h,l)}h=T}}else void 0===c.Ut.Ci(u.row,u.col,u.sheetArea)||a.showEllipsis||c.Ut.$n(u.row,u.col,void 0,u.sheetArea);p=a.labelOptions,v=a.watermark,M=!p||0!==p.visibility,v&&!h&&M?s.paintText(t,v,e,i,r,o,a,u,v,l,vt):(h||l.content&&l.content.length||a.cellButtons&&a.cellButtons.length)&&s.paintText(t,n,e,i,r,o,a,u,h,l,N,m)},o.prototype.wi=function(t,n,e,i,r,o,a,u){var s,t,e,s,s=o.cellOverflowLayout&&o.cellOverflowLayout.expandedWidth,t=R.Context.Et(t,n,F(s)?e:s,i,r),e=o.row,s=o.col;return n!==t?(delete a.content,i.textIndent=0,u.Ut.$n(e,s,u.getText(e,s,o.sheetArea),o.sheetArea)):u.Ut.$n(e,s,void 0,o.sheetArea),t},o.prototype.overflow=function(t,n,e,i,r,o,a){var u,s,t,c,f,l,h,u=n.row,s=n.col;if(i.wordWrap&&(i.wordWrap=!1),t=w(t,i.font,o),c=r.Jt.Kt(s),l=void 0,!(f=n.cellOverflowLayout)&&cf.backgroundWidth:f.valueWidth/2>f.backgroundLeftWidth||f.valueWidth/2>f.backgroundRightWidth)?r.getText(u,s,n.sheetArea):void 0}return r.Ut.$n(u,s,l,n.sheetArea),o},o.prototype.Si=function(t){return null!=t},o.prototype.createEditorElement=function(t,n){var t,t,n,e,t=t&&t.sheet&&t.sheet.parent&&t.sheet.parent.Ti,t=p(t)+1e3;return(0,E.GC$)(n).css("z-index",t),n=Ot(this.editorType),(0,E.GC$)(n).css({font:"normal 11pt calibri",outline:G,resize:G,border:G,"vertical-align":"top","min-height":"0px","box-sizing":"content-box",background:"transparent"}).css(V,Z).attr({tabindex:-1,autocomplete:"off",contenteditable:!0}).css(Y,z).attr(M,S),c.safari&&(0,E.GC$)(n).css("-webkit-user-select","auto"),(e=J((0,E.GC$)(n)[0]))&&((0,E.GC$)(n).css("display","table-cell"),(0,E.GC$)(n).css(ht,Z)),(0,E.GC$)(n)[0]},o.prototype.getEditorValue=function(t,n){var e,i,n,t;return t&&(e=K(t),i=!F(e)&&0n.start?i-1:i)){for(u=0;t.childNodes[u]&&0<=i;)i-=t.childNodes[u].textContent.length,u++;r.setEnd(t.childNodes[u-1],i+t.childNodes[u-1].textContent.length)}else r.setEnd(t.childNodes[0],i);r.collapse(!0),o.removeAllRanges(),o.addRange(r)}else t.value&&(a=(s=t.value).length,e=W(e,a),i=i>n.start?i-1:i,i=W(i,a),t.setSelectionRange(e,i))},o.prototype.activateEditor=function(n,l,h,d,v,g,m){var p,b,w,n,o,n,t,e,i,r,a,u,e,p=d&&d.sheet;if(p&&(b=this,w=n)){if(n=(0,E.GC$)(w),o=J(w),b._editingElement=w,n.attr(M)||n.attr(M,S),f.android&&n.bind("input"+C,function(t){try{b.fi(w,l,h,t,d,!1,v,g,m)}catch(t){}}),n.bind("keydown"+C,function(t){var n,e,i;try{n=t.keyCode,e={event:t,editor:w,value:K(w),caret:b.Xmt(w),cancel:!1},8===n?(R.Base.et(p,"editorBackspace",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processBackspaceAndLeftArrowKeyEvent(t,!0)):46===n?(R.Base.et(p,"editorDelete",e),!0===e.cancel?(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})):o&&s.processDeleteAndRightArrowKeyEvent(t,!0)):37===n&&o?s.processBackspaceAndLeftArrowKeyEvent(t,!1):39===n&&o&&s.processDeleteAndRightArrowKeyEvent(t,!1),on(t)&&o?(R.Base.et(p,"editorUndo",e),!0===e.cancel&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value}))):an(t)&&o&&(R.Base.et(p,"editorRedo",e),!0===e.cancel)&&(y(t),k(w,e.value),b.qmt(w,e.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})),((i=229===n||0===n)||b.Ni)&&!f.android||b.fi(w,l,h,t,d,!0,v,g,m),Wt(t,d,b.Ni,v,g,m)}catch(t){}}),n.bind("keyup"+C,function(t){var n,e,i,r,n=t.keyCode,e=t.ctrlKey,i=t.altKey,r;(!(229===n||0===n)&&!b.Ni||f.android)&&(46!==n&&8!==n&&(90!==n&&89!==n||!e||i)||(o&&"\n"===w.innerText&&(0,E.GC$)(w).empty(),b.fi(w,l,h,t,d,!1,v,g,m)),13!==n&&9!==n&&27!==n&&16!==n||e||i)&&sn(p,b.getEditorValue(w,d))}),n.bind("mousedown"+C,function(){1===p.Di&&(p.Di=2,p._i(1,2))}),n.bind("textInput"+C,function(t){var n,n,e,e;if(c.safari){if(t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key)return;n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))}t.data&&(b.probabilityAddPercentSpec||b.probabilityAddPercent)&&/^[0-9]+.?[0-9]*/.test(t.data)&&((e=document.createElement("span")).innerText="%",e.id="updateEditorImpAddPercent",("#text"===w.firstChild.nodeName?w:w.firstChild).appendChild(e),delete b.probabilityAddPercentSpec,delete b.probabilityAddPercent)}),n.bind("compositionstart"+C,function(){b.Ni=!0,b.Ei=K(w)}),n.bind("compositionupdate"+C,function(t){b.fi(w,l,h,t||I,d,!0,v,g,m)}),n.bind("compositionend"+C,function(t){var n,n,e,e,n,t,i,n=t.data,n={editor:w,value:n,caret:b.Xmt(w),isImeInputting:!0,cancel:!1};R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),e=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&e&&e.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})),b.fi(w,l,h,t||I,d,!1,v,g,m),b.Ni=!1,e=t.keyCode,n=t.ctrlKey,t=t.altKey,i=b.getEditorValue(w,d)||"",b.Ei!==i&&(e===N||13!==e&&9!==e||n||t)&&sn(p,i)}),o&&(n.bind("copy"+C,function(t){var n=T.clipboardData,e=t.clipboardData,i=Xt(t.currentTarget);F(i)||(n&&n.setData?(n.setData("text",i),y(t)):e&&e.setData&&(e.setData("text/plain",i),y(t)))}),n.bind("cut"+C,function(t){var n,n,e,i,r,r,n=Xt(t.currentTarget),e="editorCut";!F(n)&&w.Rse&&(T.clipboardData&&T.clipboardData.setData?(i="text",r=T.clipboardData):t.clipboardData&&t.clipboardData.setData&&(i="text/plain",r=t.clipboardData),n={editor:w,clipboardData:r,dataName:i,caret:b.Xmt(w)},R.Base.et(p,e,n),y(t),k(w,n.value),r=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&r&&r.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret)),b.ji=T.setTimeout(function(){sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10)}),n.bind("paste"+C,function(t){var n,e,i,r,o,a,u,s,c,f,n=!1;try{e=void 0,B&&!_&&T.clipboardData&&T.clipboardData.getData?e=T.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData&&(e=t.clipboardData.getData("text/plain")),e=Zt(e=e.replace(/\r\n?/g,"\n")),i={editor:w,pasteValue:e,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorPaste",i),!0===i.cancel?(n=!0,k(w,i.pasteValue),b.qmt(w,i.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:i.pasteValue})):0<(r=T.getSelection()).rangeCount&&((a=(o=r.getRangeAt(0)).startOffset)!==(u=o.endOffset)&&o.deleteContents(),en(w,e,a)||(s=A.createElement("span"),"\n"===(e=8203===e[(c=e.length)-1].charCodeAt(0)&&"\n"===e[c-2]?e.replace(/\u200B/g,""):e)[(c=e.length)-1]&&(e="\r"===e[c-2]?e.substr(0,c-2):e.substr(0,c-1)),s.innerText=e,o.insertNode(s),(f=document.createRange()).setStartAfter(s),f.setEndAfter(s),f.collapse(!1),r.removeAllRanges(),r.addRange(f),n=!0))}catch(t){}if(b.ji=T.setTimeout(function(){b.fi(w,l,h,t,d,!1,v,g,m),p.parent&&p.parent.ki(L.Events.FormulaTextBoxUpdatePosition,void 0),sn(p,b.getEditorValue(w,d)),b.ji&&(clearTimeout(b.ji),delete b.ji)},10),n)return!1}),n.bind("keypress"+C,function(t){var n,n,t;t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key||(n=t.key||t.data,n={editor:w,value:n,caret:b.Xmt(w),cancel:!1},R.Base.et(p,"editorInput",n),!0===n.cancel&&(y(t),k(w,n.value),t=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&t&&t.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),b.qmt(w,n.caret),p.ki(L.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})))})),t=n=void 0,(n=!d||(t=j&&p.getFormula(d.row,d.col))?n:l.mask)&&n.pattern&&"="===n.pattern[0]){e=p.Lp,i=p.Uw(3),r=0<=d.row?d.row:0,a=0<=d.col?d.col:0;try{u=e.evaluate(i,n.pattern,r,a),n.pattern="object"==typeof u?"":""+u}catch(t){n.pattern=""}}e={editor:w,ns:C,mask:n,text:K(w)},R.Base.et(p,"activateEditor",e)}},o.prototype.deactivateEditor=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this;if(R.Base.et(n&&n.sheet,"deactivateEditor",{editor:t}),t&&n&&n.sheet){if(i=n.sheet,e.Ni&>&&i.Oi)try{(0,E.GC$)(t).trigger("compositionend"+C)}catch(t){}if(r=i.getActualStyle(n.row,n.col,n.sheetArea).cellPadding)for(o=[P,at],a=[3,0],u=0;ut.width&&(A=e.width=t.width-e.x,a.width=t.width-a.x),d.css(U,A-y).css(H,e.height-x),c.options.rightToLeft?h.maxWidth=l.left+t.BA-e.x-y-C:h.maxWidth=l.left+t.width-e.x-y-C,d.css("max-width",h.maxWidth+"px"),h.maxHeight=l.top+t.height-e.y-x-S,h.minWidth=Q(h.style.width,10),h.minHeight=Q(h.style.height,10)),a=Rt(h),A=Lt(h),l=(o=(o=o&&i&&i.keyCode&&c.rt.Pi(i)&&0===a&&A===g.length)||c.Ai)&&!n.mask?"":g,w=(w=h.style.font)||v._n(v.Nn()),t=tt(w),i&&f.probabilityAddPercent&&(e=i.key)&&-1!==L.NUMBER_ARRAY.indexOf(e)&&(c.parent.options.enableFormulaTextbox?(v=h.innerText,/[a-z]/i.test(v)?f.probabilityAddPercent=!1:((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.appendChild(I),delete f.probabilityAddPercent)):((I=document.createElement("span")).innerText="%",I.id="updateEditorImpAddPercent",h.firstChild.appendChild(I),delete f.probabilityAddPercent)),!o&&i&&(e=c.parent,c.rt.Pi(i)&&8!==i.keyCode&&F(e.contextMenu.menuView.getHost())&&(l=Yt(h,l,a,A,i)),f.Ni)&&(l=B?g:f.Ei+i.data),N=[],j=k=void 0,D=(N=n&&(n.wordWrap||5===p)?X.un(l,Q(h.style.width)-y,w):l.split(/\r\n|\r|\n/)).length,h.minWidth=W(h.minWidth,h.maxWidth),h.minHeight=W(h.minHeight,h.maxHeight),n&&(n.wordWrap||5===p)||0h.minWidth&&_<=h.maxWidth&&!r?(d.css(U,_).css(V,Z).css(Y,z),m&&d.css(ht,Z)):_>h.maxWidth&&!r&&(d.css(U,h.maxWidth-2).css(V,ct).css(Y,z),v=nn(O,h.maxWidth,t,I)):a<_&&!r&&(v=nn(O,a,t,I))}v<=h.minHeight?d.css(H,h.minHeight).css(dt,G):v>h.minHeight&&v<=h.maxHeight?d.css(H,v).css(dt,G):v>h.maxHeight&&d.css(H,h.maxHeight-1).css(ft,lt).css(dt,P)}return b=d.css(ut),A=d.width()-h.minWidth,F(b)||b===P||(b===ot?d.css(P,h.originalLeft-A/2):b===rt&&d.css(P,h.originalLeft-A)),n&&m&&(1===(g=n.vAlign)?d.css(st,"middle"):2===g&&d.css(st,"bottom")),f=Q(h.style.height)+x+M+S,i=y+T+C,d.css(ft)===lt?{width:h.offsetWidth+i,height:o?0:f}:{width:Q(h.style.width)+i,height:f}}},o.prototype.updateEditor=function(t,n,e,i,r,o,a){var n,i,u;return e=this.Bi(t,n,e,I,i,!1,r,o,a),B&&t&&(i=(n=(0,E.GC$)(t))[0].style.width,n.width(i+1).width(i)),u=!F(e)&&t?new L.Rect(t.style.left?parseFloat(t.style.left):0,t.style.top?parseFloat(t.style.top):0,e.width,e.height):u},o.prototype.fi=function(t,n,e,i,r,o,a,u,s){var i,o;e=this.Bi(t,n,e,i,r,o,a,u,s),B&&t&&(o=(i=(0,E.GC$)(t))[0].style.width,i.width(o+1).width(o)),!F(e)&&t&&(F(a)?a=e:(a.x=N,a.y=N),this.updateEditorContainer(t,e,n,r,a,u,s))},o.prototype.updateEditorContainer=function(t,n,e,i,r,o,a){var u,u,s;i&&i.preventOverflow?(Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a),(u=t.parentNode)&&n&&(u=(0,E.GC$)(u),0<(s=n.width))&&u.width(s)):(n&&n.width&&r&&r.width&&(r.width=n.width),n&&n.height&&r&&r.height&&(r.height=n.height),Dt.prototype.updateEditorContainer.call(this,t,n,e,i,r,o,a))},o.prototype.updateImeMode=function(t,n,e){this.isImeAware()&&t&&R.Context.hn(t,n)},o.prototype.isReservedKey=function(t,n){var e=t.srcElement||t.target,i=t.keyCode,r=t.ctrlKey,o=t.altKey,a=t.metaKey;return!!(e&&n&&n.isEditing&&e.getAttribute(M)===S)&&(13===i&&(r&&!t.shiftKey||o)||90===i&&r&&!o||89===i&&r&&!o||67===i&&(r||a)&&!o||88===i&&(r||a)&&!o)},o.prototype.isImeAware=function(t){return!0},o.prototype.toJSON=function(){var t,n,e,t={},n=this;for(e in n)n.hasOwnProperty(e)&&"_editingElement"!==e&&(t[e]=n[e]);return t},o.prototype.lfe=function(t,n){var n={eventName:n,eventArg:t};return R.Base.et(t.sheet,"onCreateEventArg",n),n.eventArg},t.TextCellType=e=o,t.Text=e,l.ti[1]=e},"./dist/core/core.definition.js":function(){},"./dist/core/core.entry.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,s,f,r,l,h;function d(t,n){return a._Ae(t,n)}i=this&&this.__createBinding||(Object.create?function(t,n,e,i){void 0===i&&(i=e);var r=Object.getOwnPropertyDescriptor(n,e);r&&("get"in r?n.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,i,r)}:function(t,n,e,i){t[i=void 0===i?e:i]=n[e]}),r=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||i(n,t,e)},Object.defineProperty(n,"__esModule",{value:!0}),n.Aoe=n._Ae=n.CellTypes=n.xHe=n.isPrintZoomFactorExist=n.paintDecoration=n.cellTypeContext_paintBackground=void 0,e("./dist/core/core.res.en.js"),o=e("./dist/core/util/common.js"),Object.defineProperty(n,"getTypeFromString",{set:function(t){o.getTypeFromString=t},get:function(){return o.getTypeFromString}}),r(e("./dist/core/core.ns.js"),n),r(e("./dist/core/core.interface.js"),n),r(e("./dist/core/core.enum.js"),n),r(e("./dist/core/util/common.js"),n),r(e("./dist/core/excel-io-util/common.js"),n),r(e("./dist/core/excel-io-util/excel-types.js"),n),r(e("./dist/core/excel-io-util/range-parser.js"),n),r(e("./dist/core/excel-io-util/excel-helper.js"),n),r(e("./dist/core/excel-io-util/excel-style.js"),n),r(e("./dist/core/util/domUtil.js"),n),e("./dist/core/core.definition.js"),s=-1,1===(u=(a=e("./dist/core/lc/releaseLc.js"))._pt)&&(s=Math.floor(5*Math.random()),n["G".concat("C","$")]["s".concat("d")]=s),r(e("./dist/core/util/theme.js"),n),r(e("./dist/core/util/basedialog.js"),n),r(e("./dist/core/util/imageLoader.js"),n),r(e("./dist/core/util/tasks.js"),n),r(e("./dist/core/util/crypto.js"),n),r(e("./dist/core/util/dataManager.js"),n),r(e("./dist/core/util/custom-list.js"),n),0===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/stylehelper.js"),n),1===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/style.js"),n),2===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/clipboardhelper.js"),n),3===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet-model.js"),n),4===s&&e("./dist/core/lc/lcRegister.js"),r(e("./dist/core/worksheet/worksheet.js"),n),r(e("./dist/core/worksheet/worksheet-formatter.js"),n),r(e("./dist/core/worksheet/worksheet-actions.js"),n),r(e("./dist/core/worksheet/worksheet-border.js"),n),e("./dist/core/worksheet/worksheet-edit.js"),r(e("./dist/core/worksheet/worksheet-event.js"),n),e("./dist/core/worksheet/worksheet-json.js"),r(e("./dist/core/worksheet/worksheet-render.js"),n),e("./dist/core/worksheet/worksheet-selection.js"),e("./dist/core/worksheet/worksheet-sort.js"),r(e("./dist/core/worksheet/worksheet-ui.js"),n),r(e("./dist/core/worksheet/worksheet-static.js"),n),r(e("./dist/core/worksheet/worksheet-clipboard.js"),n),(0,(c=e("./dist/core/worksheet/feature-registers/index.js")).registerWorkbookFeatures)(),r(e("./dist/core/workbook/workbook.js"),n),r(e("./dist/core/workbook/workbook-json.js"),n),r(e("./dist/core/workbook/sheettabbase.js"),n),r(e("./dist/core/workbook/sheettab.js"),n),r(e("./dist/core/workbook/sheettab2007.js"),n),r(e("./dist/core/workbook/workbookpanelex.js"),n),r(e("./dist/core/workbook/customThemeManager.js"),n),r(e("./dist/core/worksheet/attachmentManager/index.js"),n),r(e("./dist/core/util/styleManager.js"),n),s=e("./dist/core/celltype/cellType.entry.js"),n.CellTypes=s,f=e("./dist/core/celltype/basecelltype.js"),Object.defineProperty(n,"cellTypeContext_paintBackground",{enumerable:!0,get:function(){return f.cellTypeContext_paintBackground}}),Object.defineProperty(n,"paintDecoration",{enumerable:!0,get:function(){return f.paintDecoration}}),Object.defineProperty(n,"isPrintZoomFactorExist",{enumerable:!0,get:function(){return f.isPrintZoomFactorExist}}),r=e("./dist/core/celltype/headercelltype.js"),l=e("./dist/core/celltype/textcelltype.js"),h=e("./dist/core/celltype/textcelltype.js"),Object.defineProperty(n,"xHe",{enumerable:!0,get:function(){return h.xHe}}),s.Hi=r,s.zi=l,1!==u&&2!==u||a.Vi(n),n._Ae=d,n.Aoe=a.Aoe},"./dist/core/core.enum.js":function(L,t){"use strict";var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,F,B,P,G,U,H,z,V,Y,Z,W,Q,E,J,K,X,q,$,tt,nt,et,it,rt,ot,at,ut,st,ct,ft,lt,ht,dt,vt,gt,mt,pt,bt,wt,yt,Mt,Ct,St,Tt,xt,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,R,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R,E,R;Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionAlignment=t.IconPosition=t.ButtonPosition=t.DropDownType=t.ButtonImageType=t.ButtonVisibility=t.RowColumnStates=t.CellStatesType=t.SortState=t.SheetArea=t.VerticalPosition=t.HorizontalPosition=t.Yi=t.ImageLayout=t.ValueType=t.RangeChangedAction=t.HeaderAutoText=t.StorageType=t.SelectionUnit=t.SelectionPolicy=t.ImeMode=t.EditorStatus=t.VisualState=t.Zi=t.VertAlign=t.VerticalAlign=t.HorizontalAlign=t.TextDirectionType=t.TextDecorationType=t.LabelVisibility=t.LabelAlignment=t.PasteOperationOptions=t.CopyToOptions=t.ClipboardPasteOptions=t.AutoFitType=t.InvalidOperationType=t.ResizeZeroIndicator=t.HeaderOptions=t.CalculationType=t.CalculationMode=t.CopyPasteHeaderOptions=t.ResizeMode=t.InsertShiftCell=t.ShowScrollTip=t.ScrollbarAppearance=t.ShowResizeTip=t.WorksheetType=t.ScrollbarState=t.AxisInfoChangeType=t.ScrollType=void 0,t.AllowDragHeaderToMove=t.ListType=t.SheetTabState=t.DefaultChangeValueType=t.ClipboardActionType=t.OpenMode=t.OpenSaveFileType=t.FileType=t.TableStyleElement=t.SortBy=t.UsedRangeType=t.ColumnHeaderFitMode=t.AllSheetsListVisibility=t.SheetTabVisible=t.SheetType=t.HyperlinkTargetType=t.TabStripPosition=t.NumbersFitMode=t.PatternType=t.DropDownAlignment=t.DropDownDirection=t.DropdownListValue=t.GroupSort=t.CalendarStartDay=t.CalendarPage=t.LayoutDisplayAs=t.LayoutDirection=void 0,(E=n=t.ScrollType||(t.ScrollType={}))[E.pixels=0]="pixels",E[E.continuous=1]="continuous",(E=e=t.AxisInfoChangeType||(t.AxisInfoChangeType={}))[E.setRowCount=0]="setRowCount",E[E.setColumnCount=1]="setColumnCount",E[E.addRows=2]="addRows",E[E.deleteRows=3]="deleteRows",E[E.addColumns=4]="addColumns",E[E.deleteColumns=5]="deleteColumns",E[E.setRowHeight=6]="setRowHeight",E[E.setColumnWidth=7]="setColumnWidth",E[E.setRowVisible=8]="setRowVisible",E[E.setColumnVisible=9]="setColumnVisible",E[E.filterRows=10]="filterRows",E[E.outlineExpandRows=11]="outlineExpandRows",E[E.outlineExpandColumns=12]="outlineExpandColumns",(E=i=t.ScrollbarState||(t.ScrollbarState={}))[E.hide=0]="hide",E[E.show=1]="show",E[E.active=2]="active",E[E.inactive=3]="inactive",(E=r=t.WorksheetType||(t.WorksheetType={}))[E.worksheet=0]="worksheet",E[E.reportTemplateSheet=1]="reportTemplateSheet",(E=o=t.ShowResizeTip||(t.ShowResizeTip={}))[E.none=0]="none",E[E.column=1]="column",E[E.row=2]="row",E[E.both=3]="both",(E=a=t.ScrollbarAppearance||(t.ScrollbarAppearance={}))[E.skin=0]="skin",E[E.mobile=1]="mobile",(E=u=t.ShowScrollTip||(t.ShowScrollTip={}))[E.none=0]="none",E[E.horizontal=1]="horizontal",E[E.vertical=2]="vertical",E[E.both=3]="both",(E=s=t.InsertShiftCell||(t.InsertShiftCell={}))[E.right=0]="right",E[E.down=1]="down",(E=c=t.ResizeMode||(t.ResizeMode={}))[E.normal=0]="normal",E[E.split=1]="split",(E=f=t.CopyPasteHeaderOptions||(t.CopyPasteHeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=l=t.CalculationMode||(t.CalculationMode={}))[E.auto=0]="auto",E[E.manual=1]="manual",(E=h=t.CalculationType||(t.CalculationType={}))[E.all=0]="all",E[E.rebuild=1]="rebuild",E[E.minimal=2]="minimal",E[E.regular=3]="regular",(E=d=t.HeaderOptions||(t.HeaderOptions={}))[E.noHeaders=0]="noHeaders",E[E.rowHeaders=1]="rowHeaders",E[E.columnHeaders=2]="columnHeaders",E[E.allHeaders=3]="allHeaders",(E=v=t.ResizeZeroIndicator||(t.ResizeZeroIndicator={}))[E.default=0]="default",E[E.enhanced=1]="enhanced",(E=g=t.InvalidOperationType||(t.InvalidOperationType={}))[E.setFormula=0]="setFormula",E[E.copyPaste=1]="copyPaste",E[E.dragFill=2]="dragFill",E[E.dragDrop=3]="dragDrop",E[E.changePartOfArrayFormula=4]="changePartOfArrayFormula",E[E.changeSheetName=5]="changeSheetName",E[E.table=6]="table",E[E.filter=7]="filter",E[E.hideSheet=8]="hideSheet",E[E.sort=9]="sort",E[E.pivotTable=10]="pivotTable",E[E.ptOverlapValue=11]="ptOverlapValue",E[E.groupProtected=12]="groupProtected",E[E.editProtected=13]="editProtected",E[E.cutProtected=14]="cutProtected",E[E.customName=15]="customName",E[E.dataObjectCellTypeInsertData=16]="dataObjectCellTypeInsertData",E[E.reportSheet=17]="reportSheet",E[E.sizeLimitExceeded=18]="sizeLimitExceeded",(E=m=t.AutoFitType||(t.AutoFitType={}))[E.cell=0]="cell",E[E.cellWithHeader=1]="cellWithHeader",(E=p=t.ClipboardPasteOptions||(t.ClipboardPasteOptions={}))[E.all=0]="all",E[E.values=1]="values",E[E.formatting=2]="formatting",E[E.formulas=3]="formulas",E[E.valuesAndFormatting=4]="valuesAndFormatting",E[E.formulasAndFormatting=5]="formulasAndFormatting",E[E.comments=6]="comments",E[E.validation=7]="validation",E[E.usingSourceTheme=8]="usingSourceTheme",E[E.noBorder=9]="noBorder",E[E.columnWidths=10]="columnWidths",E[E.formulasAndNumberFormatting=11]="formulasAndNumberFormatting",E[E.valuesAndNumberFormatting=12]="valuesAndNumberFormatting",E[E.valuesAndSourceFormatting=13]="valuesAndSourceFormatting",E[E.allAndColumnWidth=14]="allAndColumnWidth",(E=b=t.CopyToOptions||(t.CopyToOptions={}))[E.value=1]="value",E[E.formula=2]="formula",E[E.comment=4]="comment",E[E.outline=8]="outline",E[E.sparkline=16]="sparkline",E[E.span=32]="span",E[E.style=64]="style",E[E.tag=128]="tag",E[E.bindingPath=256]="bindingPath",E[E.conditionalFormat=512]="conditionalFormat",E[E.hyperlink=1024]="hyperlink",E[E.defaultValue=2048]="defaultValue",E[E.altText=4096]="altText",E[E.shape=8192]="shape",E[E.all=16383]="all",(E=w=t.PasteOperationOptions||(t.PasteOperationOptions={}))[E.none=0]="none",E[E.add=1]="add",E[E.subtract=2]="subtract",E[E.multiply=3]="multiply",E[E.divide=4]="divide",(E=y=t.LabelAlignment||(t.LabelAlignment={}))[E.topLeft=0]="topLeft",E[E.topCenter=1]="topCenter",E[E.topRight=2]="topRight",E[E.bottomLeft=3]="bottomLeft",E[E.bottomCenter=4]="bottomCenter",E[E.bottomRight=5]="bottomRight",(E=M=t.LabelVisibility||(t.LabelVisibility={}))[E.visible=0]="visible",E[E.hidden=1]="hidden",E[E.auto=2]="auto",(E=C=t.TextDecorationType||(t.TextDecorationType={}))[E.underline=1]="underline",E[E.lineThrough=2]="lineThrough",E[E.overline=4]="overline",E[E.doubleUnderline=8]="doubleUnderline",E[E.none=0]="none",(E=S=t.TextDirectionType||(t.TextDirectionType={}))[E.context=0]="context",E[E.leftToRight=1]="leftToRight",E[E.rightToLeft=2]="rightToLeft",(E=T=t.HorizontalAlign||(t.HorizontalAlign={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.general=3]="general",E[E.centerContinuous=4]="centerContinuous",E[E.distributed=5]="distributed",(E=x=t.VerticalAlign||(t.VerticalAlign={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",(E=A=t.VertAlign||(t.VertAlign={}))[E.normal=0]="normal",E[E.superscript=1]="superscript",E[E.subscript=2]="subscript",(E=I=t.Zi||(t.Zi={}))[E.smallDecrement=0]="smallDecrement",E[E.smallIncrement=1]="smallIncrement",E[E.largeDecrement=2]="largeDecrement",E[E.largeIncrement=3]="largeIncrement",E[E.thumbPosition=4]="thumbPosition",E[E.thumbTrack=5]="thumbTrack",E[E.endScroll=6]="endScroll",(E=N=t.VisualState||(t.VisualState={}))[E.normal=0]="normal",E[E.highlight=1]="highlight",E[E.selected=2]="selected",E[E.active=3]="active",E[E.hover=4]="hover",E[E.activeNotSelected=5]="activeNotSelected",(E=k=t.EditorStatus||(t.EditorStatus={}))[E.ready=0]="ready",E[E.enter=1]="enter",E[E.edit=2]="edit",(E=j=t.ImeMode||(t.ImeMode={}))[E.auto=1]="auto",E[E.active=2]="active",E[E.inactive=4]="inactive",E[E.disabled=0]="disabled",(E=D=t.SelectionPolicy||(t.SelectionPolicy={}))[E.single=0]="single",E[E.range=1]="range",E[E.multiRange=2]="multiRange",(E=_=t.SelectionUnit||(t.SelectionUnit={}))[E.cell=0]="cell",E[E.row=1]="row",E[E.column=2]="column",(E=O=t.StorageType||(t.StorageType={}))[E.data=1]="data",E[E.style=2]="style",E[E.comment=4]="comment",E[E.tag=8]="tag",E[E.sparkline=16]="sparkline",E[E.axis=32]="axis",E[E.bindingPath=64]="bindingPath",E[E.hyperlink=256]="hyperlink",E[E.altText=512]="altText",(E=F=t.HeaderAutoText||(t.HeaderAutoText={}))[E.blank=0]="blank",E[E.numbers=1]="numbers",E[E.letters=2]="letters",(E=B=t.RangeChangedAction||(t.RangeChangedAction={}))[E.dragDrop=0]="dragDrop",E[E.dragFill=1]="dragFill",E[E.clear=2]="clear",E[E.paste=3]="paste",E[E.sort=4]="sort",E[E.setArrayFormula=5]="setArrayFormula",E[E.evaluateFormula=6]="evaluateFormula",(E=P=t.ValueType||(t.ValueType={}))[E.normal=0]="normal",E[E.richText=1]="richText",(E=G=t.ImageLayout||(t.ImageLayout={}))[E.stretch=0]="stretch",E[E.center=1]="center",E[E.zoom=2]="zoom",E[E.none=3]="none",(E=U=t.Yi||(t.Yi={})).ThumbButton="thumbButton",E.TrackButton="trackButton",E.LeftButton="leftButton",E.RightButton="rightButton",E.UpButton="upButton",E.DownButton="downButton",(E=H=t.HorizontalPosition||(t.HorizontalPosition={}))[E.left=0]="left",E[E.center=1]="center",E[E.right=2]="right",E[E.nearest=3]="nearest",(E=z=t.VerticalPosition||(t.VerticalPosition={}))[E.top=0]="top",E[E.center=1]="center",E[E.bottom=2]="bottom",E[E.nearest=3]="nearest",(E=V=t.SheetArea||(t.SheetArea={}))[E.corner=0]="corner",E[E.colHeader=1]="colHeader",E[E.rowHeader=2]="rowHeader",E[E.viewport=3]="viewport",(E=Y=t.SortState||(t.SortState={}))[E.none=0]="none",E[E.ascending=1]="ascending",E[E.descending=2]="descending",(E=Z=t.CellStatesType||(t.CellStatesType={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.readonly=4]="readonly",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.invalidFormula=128]="invalidFormula",(E=W=t.RowColumnStates||(t.RowColumnStates={}))[E.hover=1]="hover",E[E.invalid=2]="invalid",E[E.edit=8]="edit",E[E.active=16]="active",E[E.selected=32]="selected",E[E.dirty=64]="dirty",E[E.inserted=128]="inserted",E[E.invalidFormula=512]="invalidFormula",(E=Q=t.ButtonVisibility||(t.ButtonVisibility={}))[E.always=0]="always",E[E.onSelected=1]="onSelected",E[E.onEditing=2]="onEditing",(R=E=t.ButtonImageType||(t.ButtonImageType={}))[R.none=0]="none",R[R.custom=1]="custom",R[R.clear=2]="clear",R[R.cancel=3]="cancel",R[R.ok=4]="ok",R[R.dropdown=5]="dropdown",R[R.ellipsis=6]="ellipsis",R[R.left=7]="left",R[R.right=8]="right",R[R.plus=9]="plus",R[R.minus=10]="minus",R[R.undo=11]="undo",R[R.redo=12]="redo",R[R.search=13]="search",R[R.separator=14]="separator",R[R.spinLeft=15]="spinLeft",R[R.spinRight=16]="spinRight",R[R.collapse=17]="collapse",R[R.expand=18]="expand",E.calcel=E.cancel,(R=J=t.DropDownType||(t.DropDownType={}))[R.colorPicker=0]="colorPicker",R[R.dateTimePicker=1]="dateTimePicker",R[R.timePicker=2]="timePicker",R[R.monthPicker=3]="monthPicker",R[R.list=4]="list",R[R.slider=5]="slider",R[R.calculator=6]="calculator",R[R.workflowList=7]="workflowList",R[R.multiColumn=8]="multiColumn",(E=K=t.ButtonPosition||(t.ButtonPosition={}))[E.left=0]="left",E[E.right=1]="right",E[E.leftOfText=2]="leftOfText",E[E.rightOfText=3]="rightOfText",(R=X=t.IconPosition||(t.IconPosition={}))[R.left=0]="left",R[R.right=1]="right",R[R.leftOfText=2]="leftOfText",R[R.rightOfText=3]="rightOfText",R[R.outsideLeft=4]="outsideLeft",R[R.outsideRight=5]="outsideRight",(E=q=t.CaptionAlignment||(t.CaptionAlignment={}))[E.left=0]="left",E[E.right=1]="right",(R=$=t.LayoutDirection||(t.LayoutDirection={}))[R.horizontal=0]="horizontal",R[R.vertical=1]="vertical",(E=tt=t.LayoutDisplayAs||(t.LayoutDisplayAs={}))[E.inline=0]="inline",E[E.popup=1]="popup",E[E.tree=2]="tree",(R=nt=t.CalendarPage||(t.CalendarPage={}))[R.year=1]="year",R[R.month=2]="month",R[R.day=3]="day",(E=et=t.CalendarStartDay||(t.CalendarStartDay={}))[E.monday=1]="monday",E[E.tuesday=2]="tuesday",E[E.wednesday=3]="wednesday",E[E.thursday=4]="thursday",E[E.friday=5]="friday",E[E.saturday=6]="saturday",E[E.sunday=7]="sunday",(R=it=t.GroupSort||(t.GroupSort={}))[R.none=0]="none",R[R.group=1]="group",R[R.child=2]="child",R[R.full=3]="full",(E=rt=t.DropdownListValue||(t.DropdownListValue={}))[E.string=0]="string",E[E.array=1]="array",(R=ot=t.DropDownDirection||(t.DropDownDirection={}))[R.Down=0]="Down",R[R.Up=1]="Up",R[R.Left=2]="Left",R[R.Right=3]="Right",(E=at=t.DropDownAlignment||(t.DropDownAlignment={}))[E.Near=0]="Near",E[E.Center=1]="Center",E[E.Far=2]="Far",(R=ut=t.PatternType||(t.PatternType={}))[R.solid=1]="solid",R[R.darkGray=2]="darkGray",R[R.mediumGray=3]="mediumGray",R[R.lightGray=4]="lightGray",R[R.gray125=5]="gray125",R[R.gray0625=6]="gray0625",R[R.darkHorizontal=7]="darkHorizontal",R[R.darkVertical=8]="darkVertical",R[R.darkDown=9]="darkDown",R[R.darkUp=10]="darkUp",R[R.darkGrid=11]="darkGrid",R[R.darkTrellis=12]="darkTrellis",R[R.lightHorizontal=13]="lightHorizontal",R[R.lightVertical=14]="lightVertical",R[R.lightDown=15]="lightDown",R[R.lightUp=16]="lightUp",R[R.lightGrid=17]="lightGrid",R[R.lightTrellis=18]="lightTrellis",(E=st=t.NumbersFitMode||(t.NumbersFitMode={}))[E.mask=0]="mask",E[E.overflow=1]="overflow",(R=ct=t.TabStripPosition||(t.TabStripPosition={}))[R.bottom=0]="bottom",R[R.top=1]="top",R[R.left=2]="left",R[R.right=3]="right",(E=ft=t.HyperlinkTargetType||(t.HyperlinkTargetType={}))[E.blank=0]="blank",E[E.self=1]="self",E[E.parent=2]="parent",E[E.top=3]="top",(R=lt=t.SheetType||(t.SheetType={}))[R.tableSheet=0]="tableSheet",R[R.ganttSheet=1]="ganttSheet",R[R.customSheetTab=2]="customSheetTab",R[R.reportSheet=3]="reportSheet",R[R.printSheet=9007199254740991]="printSheet",(E=ht=t.SheetTabVisible||(t.SheetTabVisible={}))[E.hidden=0]="hidden",E[E.visible=1]="visible",E[E.veryHidden=2]="veryHidden",(R=dt=t.AllSheetsListVisibility||(t.AllSheetsListVisibility={}))[R.hide=0]="hide",R[R.show=1]="show",R[R.auto=2]="auto",(E=vt=t.ColumnHeaderFitMode||(t.ColumnHeaderFitMode={}))[E.normal=0]="normal",E[E.vertical=1]="vertical",E[E.stack=2]="stack",(R=gt=t.UsedRangeType||(t.UsedRangeType={}))[R.all=262143]="all",R[R.axis=1]="axis",R[R.style=2]="style",R[R.rowStyle=4]="rowStyle",R[R.colStyle=8]="colStyle",R[R.data=16]="data",R[R.formula=32]="formula",R[R.span=64]="span",R[R.shape=128]="shape",R[R.table=256]="table",R[R.sparkLine=512]="sparkLine",R[R.comment=1024]="comment",R[R.slicer=2048]="slicer",R[R.pivottable=4096]="pivottable",R[R.filter=8192]="filter",R[R.dataValidation=16384]="dataValidation",R[R.conditionFormat=32768]="conditionFormat",R[R.chart=65536]="chart",R[R.picture=131072]="picture",(E=mt=t.SortBy||(t.SortBy={})).cellColor="cellColor",E.fontColor="fontColor",E.icon="icon",E.value="value",(R=pt=t.TableStyleElement||(t.TableStyleElement={})).wholeTable="wholeTable",R.firstColumnStripe="firstColumnStripe",R.secondColumnStripe="secondColumnStripe",R.firstRowStripe="firstRowStripe",R.secondRowStripe="secondRowStripe",R.lastColumn="lastColumn",R.firstColumn="firstColumn",R.headerRow="headerRow",R.totalRow="totalRow",R.firstHeaderCell="firstHeaderCell",R.lastHeaderCell="lastHeaderCell",R.firstTotalCell="firstTotalCell",R.lastTotalCell="lastTotalCell",(E=bt=t.FileType||(t.FileType={}))[E.excel=0]="excel",E[E.ssjson=1]="ssjson",E[E.csv=2]="csv",(R=wt=t.OpenSaveFileType||(t.OpenSaveFileType={}))[R.excel=0]="excel",R[R.sjs=1]="sjs",(E=yt=t.OpenMode||(t.OpenMode={}))[E.normal=0]="normal",E[E.lazy=1]="lazy",E[E.incremental=2]="incremental",(R=Mt=t.ClipboardActionType||(t.ClipboardActionType={}))[R.copy=1]="copy",R[R.cut=2]="cut",R[R.reset=3]="reset",(E=Ct=t.DefaultChangeValueType||(t.DefaultChangeValueType={})).Expression="expr",E.Value="value",(R=St=t.SheetTabState||(t.SheetTabState={}))[R.hover=1]="hover",R[R.selected=2]="selected",R[R.active=4]="active",R[R.protected=8]="protected",R[R.normal=16]="normal",(E=Tt=t.ListType||(t.ListType={}))[E.disc=0]="disc",E[E.circle=1]="circle",E[E.square=2]="square",E[E.decimal=3]="decimal",E[E.lowerAlpha=4]="lowerAlpha",E[E.upperAlpha=5]="upperAlpha",E[E.lowerRoman=6]="lowerRoman",E[E.upperRoman=7]="upperRoman",E[E.lowerGreek=8]="lowerGreek",(R=xt=t.AllowDragHeaderToMove||(t.AllowDragHeaderToMove={}))[R.none=0]="none",R[R.column=1]="column",R[R.row=2]="row",R[R.both=3]="both"},"./dist/core/core.interface.js":function(t,n){"use strict";var e,n;Object.defineProperty(n,"__esModule",{value:!0}),n.CornerPosition=void 0,(n=e=n.CornerPosition||(n.CornerPosition={}))[n.leftTop=1]="leftTop",n[n.rightTop=2]="rightTop",n[n.leftBottom=4]="leftBottom",n[n.rightBottom=8]="rightBottom"},"./dist/core/core.ns.js":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SR=void 0;var e=e("./dist/core/core.res.en.js");n.SR={en:e}},"./dist/core/core.res.en.js":function(t,n,e){"use strict";var i,r;for(r in Object.defineProperty(n,"__esModule",{value:!0}),n.ARIA_Cell=n.ARIA_Scrollbar_TRACK_Button=n.ARIA_Scrollbar_Bottom_Button=n.ARIA_Scrollbar_Right_Button=n.ARIA_Scrollbar_Thumb_Button=n.ARIA_Scrollbar_Top_Button=n.ARIA_Scrollbar_Left_Button=n.ARIA_Blank=n.ARIA_NewSheet=n.ARIA_SheetTab=n.ARIA_NextButton=n.ARIA_PreviousButton=n.ARIA_Last=n.ARIA_NextArrow=n.ARIA_PreviousArrow=n.ARIA_First=n.ARIA_Resize=n.NeedCanvasSupport=n.Exp_OverlappingSpans=n.Exp_SheetIsNull=n.Exp_DestSheetIsNull=n.Exp_ArrayFormulaSpan=n.Exp_SheetNameConflict=n.Exp_SheetNameInvalid=n.Exp_EmptyNamedStyle=n.NewTab=n.Tip_Width=n.Tip_Height=n.Tip_Column_Offset=n.Tip_Column=n.Tip_Row=n.Exp_PasteChangeMergeCell=n.Exp_PasteDestinationCellsLocked=n.Exp_InvalidCopyPasteSize=n.Exp_PasteSourceCellsLocked=n.Exp_ArgumentOutOfRange=n.Exp_NotAFunction=n.Exp_InvalidRange=n.Exp_IndexOutOfRange=n.Exp_CustomNameBothInUse=n.Exp_InvalidCustomName=n.Exp_InvalidCustomFunction=n.Exp_DestIsNull=n.Exp_SrcIsNull=n.Exp_InvalidAndSpace=n.Exp_ChangePartOfArray=n.Exp_MultipleSelections=n.Exp_InvalidPastedArea=n.Exp_PasteExtentIsNull=n.Exp_NotSupported=void 0,n.cancel=n.ok=n.pasteSpecialOptionDialog=n.STEP=n.Exp_InvalidOperationSizeLimitExceeded=n.EXP_UNSUPPORT_CRYPTO_ALGORITHM=n.GENERAL=n.NORMAL=n.EXP_INVALID_PASSWORD=n.EXP_NO_PASSWORD=n.EXP_FILE_FORMAT=n.EXP_IO=n.Exp_InvalidOperationInProtect=n.Exp_InvalidSortPartTableOrMultiTableInRange=n.Exp_InvalidSortSpanInRange=n.Exp_InvalidSortArrayFormulaInRange=n.Exp_InsertCopiedCutCellsAffectTable=n.Exp_InsertCopiedCutCellsOverlap=n.Exp_InsertCopiedCutCellsNoRange=n.Exp_InsertCopiedCutCellsOnSpanTable=n.Exp_InsertCopiedCutCells=n.REPORT_SUMMARY=n.SHEET_NAME=n.ARIA_ColumnHeader=n.ARIA_RowHeader=n.ARIA_HasComment=n.ARIA_HasHyperlink=n.ARIA_HasButton=n.ARIA_HasCheckbox=n.ARIA_HasFormula=n.ARIA_HasValue=void 0,n.Exp_NotSupported="Not supported exception",n.Exp_PasteExtentIsNull="pasteExtent is null",n.Exp_InvalidPastedArea="The pasted area should have the same size as the copy or cut area.",n.Exp_MultipleSelections="This action won't work on multiple selections.",n.Exp_ChangePartOfArray="Cannot change part of an array.",n.Exp_InvalidAndSpace="Invalid {0}: {1} (must be between {2} and {3}).",n.Exp_SrcIsNull="The argument 'src' is null",n.Exp_DestIsNull="The argument 'dest' is null",n.Exp_InvalidCustomFunction="invalid custom function",n.Exp_InvalidCustomName="invalid custom name",n.Exp_CustomNameBothInUse="Both the current name and new name are referenced in cell formulas",n.Exp_IndexOutOfRange="Index is out of range!",n.Exp_InvalidRange="Invalid range",n.Exp_NotAFunction="Not A Function",n.Exp_ArgumentOutOfRange="ArgumentOutOfRange",n.Exp_PasteSourceCellsLocked="Source sheet's cells are locked.",n.Exp_InvalidCopyPasteSize="The copy and paste areas are not the same size.",n.Exp_PasteDestinationCellsLocked="The cell you are trying to change is protected and therefore read-only.",n.Exp_PasteChangeMergeCell="Cannot change part of a merged cell.",n.Tip_Row="Row: ",n.Tip_Column="Column: ",n.Tip_Column_Offset="Offset: ",n.Tip_Height="Height: {0} pixels",n.Tip_Width="Width: {0} pixels",n.NewTab="New...",n.Exp_EmptyNamedStyle="The name of named style cannot be empty or null",n.Exp_SheetNameInvalid="The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",n.Exp_SheetNameConflict="That name is already taken. Try a different one.",n.Exp_ArrayFormulaSpan="Array formulas are not valid in merged cells.",n.Exp_DestSheetIsNull="destSheet is null",n.Exp_SheetIsNull="sheet is null.",n.Exp_OverlappingSpans="This operation will cause overlapping spans.",n.NeedCanvasSupport="You need a browser which full supports HTML5 Canvas to run SpreadJS",n.ARIA_Resize="resize",n.ARIA_First="first",n.ARIA_PreviousArrow="previous arrow",n.ARIA_NextArrow="next arrow",n.ARIA_Last="last",n.ARIA_PreviousButton="previous button",n.ARIA_NextButton="next button",n.ARIA_SheetTab="sheet tab",n.ARIA_NewSheet="new sheet",n.ARIA_Blank="blank",n.ARIA_Scrollbar_Left_Button="scrollbar left button",n.ARIA_Scrollbar_Top_Button="scrollbar top button",n.ARIA_Scrollbar_Thumb_Button="scrollbar thumb button",n.ARIA_Scrollbar_Right_Button="scrollbar right button",n.ARIA_Scrollbar_Bottom_Button="scrollbar bottom button",n.ARIA_Scrollbar_TRACK_Button="scrollbar track button",n.ARIA_Cell="cell",n.ARIA_HasValue="has value {0}",n.ARIA_HasFormula="has formula {0}",n.ARIA_HasCheckbox="has checkbox {0}",n.ARIA_HasButton="has button {0}",n.ARIA_HasHyperlink="has hyperlink {0}",n.ARIA_HasComment="has comment {0}",n.ARIA_RowHeader="row header",n.ARIA_ColumnHeader="column header",n.SHEET_NAME="Sheet",n.REPORT_SUMMARY="Sum",i=e("./dist/core/lc/lr.en.js"))i.hasOwnProperty(r)&&(n[r]=i[r]);n.Exp_InsertCopiedCutCells="This selection is not valid. The copy/paste area must be the same size",n.Exp_InsertCopiedCutCellsOnSpanTable="This won\u2019t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.",n.Exp_InsertCopiedCutCellsNoRange="New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.",n.Exp_InsertCopiedCutCellsOverlap="This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.",n.Exp_InsertCopiedCutCellsAffectTable="You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.",n.Exp_InvalidSortArrayFormulaInRange="Can't sort current range as array formula exist.",n.Exp_InvalidSortSpanInRange="Can't sort current range as span exist.",n.Exp_InvalidSortPartTableOrMultiTableInRange="Can't sort current range as part table or more than one table exist.",n.Exp_InvalidOperationInProtect="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.",n.EXP_IO="File read and write exception.",n.EXP_FILE_FORMAT="Incorrect file format.",n.EXP_NO_PASSWORD="The Excel file cannot be opened because the workbook/worksheet is password protected.",n.EXP_INVALID_PASSWORD="The specified password is incorrect.",n.NORMAL="Normal",n.GENERAL="General",n.EXP_UNSUPPORT_CRYPTO_ALGORITHM="Unsupported cryptographic algorithms",n.Exp_InvalidOperationSizeLimitExceeded="File size exceeds set limit the max size.",n.STEP={start:"start load {0}",loadFileData:"load {0}'s data to spread",loadSheetData:"load {0}'s data",startCalc:"start reCalc",loadSheetFormula:"load {0}'s formula",parseFile:"parse {0} content"},n.pasteSpecialOptionDialog={title:"Paste Special",paste:"Paste",pasteOptions:{all:"All",formulas:"Formulas",values:"Values",formats:"Formats",comments:"Comments",validation:"Validation",usingSourceTheme:"All using Source theme",noBorders:"All except borders",columnWidth:"Column widths",formulasAndNumberFormats:"Formulas and number formats",valueAndNumberFormats:"Value and number formats"},operation:"Operation",operationOptions:{none:"None",add:"Add",subtract:"Subtract",multiply:"Multiply",divide:"Divide"},skipBlanks:"Skip blanks",transpose:"Transpose",pasteLink:"Paste Link"},n.ok="OK",n.cancel="Cancel"},"./dist/core/excel-io-util/common.js":function(t,n,e){"use strict";var i,r,u,v,g,s,c,f,l,o,a,h,d,m,e,p,b,w,y,M,C;function S(){}function T(){}function x(){}function A(t,n){var n,n,e,n=n.toUpperCase(),n=p[n];return n?(e=m,(e=n.reg?n.prefix:m)+t):t}function I(n,t,e){var i,r,e,t,i,r=function(t){return n.getColumnWidth(t)},e=N(e,function(t){return n.getRowHeight(t)},n.getRowCount(),n.defaults.rowHeight),t=N(t,r,n.getColumnCount(),n.defaults.colWidth);return{rowIndex:e.index,rowOffset:e.offset,colIndex:t.index,colOffset:t.offset}}function N(t,n,e,i){for(var r,o,a,u,s,c,r=-1,o=-1,a=0,u=0;u=g.XmlConstants.Io||t>=g.XmlConstants.xo)||D.So(e,n,t,r)})},D.Uce=function(t){var n,e,i,r;function o(t,n){var t=parseInt(t.v_||0,10);return n?s.ExcelHelper.emuToPixles(t):t}return{row:n=o(t.row),col:e=o(t.col),rowOff:i=o(t.rowOff,!0),colOff:r=o(t.colOff,!0)}},D.Gce=function(t,n){var n,e,i,n=D.Uce(n),e,i;return{x:v.util.w0(t,0,n.col,!1)+n.colOff,y:v.util.w0(t,0,n.row,!0)+n.rowOff}},D.No=function(t){return t=Math.min(t,g.XmlConstants.xo-1),w.nr(t)},D.ko=function(t){return!t||f(t.fileType)||t.fileType===r.OpenSaveFileType.sjs},D.encodeNameFormula=function(t){if(t)return t.replace(/&/g,"&").replace(//g,">")},D.Oge=function(t,n){var n,e,i,r,o,a,t,n={n_:"definedName",c_:[D.addXLFNPrefix(D.encodeNameFormula(n))]},e=t.name,i=t.localSheetId,r=t.e,o=t.comment,a=t.isReadOnly,t=t.hidden;return f(e)||(n.name=v.util.vo(e)),f(i)||(n.localSheetId=i),f(r)||(n.e=r),f(o)||(n.comment=v.util.vo(o)),f(a)||(n.isReadOnly=a),f(t)||(n.hidden=t),n},M=D,n.Util=M,n.SJSStylePropsToStyleProps={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},n.protectionOptionsMap={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},n.excelSupportProtectionOptions={objects:!0,formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,selectLockedCells:!0,selectUnlockedCells:!0,sort:!0,autoFilter:!0,pivotTables:!0},_.builtInNumberFormat=function(){return 0===(_.Md=_.Md?_.Md:{count:0}).count&&_.initBuiltNumberFormat(),_.Md},_.languageIndepedentNumberFormat=function(){return 0===(_.Ch=_.Ch?_.Ch:{count:0}).count&&_.initLanguageIndepedentNumberFormat(),_.Ch},_.formatCodeTable=function(){return _.Sh=_.Sh?_.Sh:[]},_.customNumberFormat=function(){return _.Th=_.Th?_.Th:{count:0}},_.getCultureInfo=function(){var t,n,t=M.ro(),n;return t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&M.ro().GC.Spread.Common.CultureManager.getCultureInfo()||M.ao()},_.initBuiltNumberFormat=function(){var t,n,n,e,i,r,o,a,t=_.Md;if(t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yyyy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yyyy h:mm",t[37]="#,##0_);(#,##0)",t[38]="#,##0_);[Red](#,##0)",t[39]="#,##0.00_);(#,##0.00)",t[40]="#,##0.00_);[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mm:ss.0",t[48]="##0.0E+0",t[49]="@",t.count=49,M.oo())if("zh-cn"===(n=M.oo()))t[14]="yyyy/m/d",t[17]="mmm-yy",t[22]="yyyy/m/d h:mm",t[27]='yyyy"\u5e74"m"\u6708"',t[28]='m"\u6708"d"\u65e5"',t[29]='m"\u6708"d"\u65e5"',t[30]="m-d-yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u65f6"mm"\u5206"',t[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',t[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[36]='yyyy"\u5e74"m"\u6708"',t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]='yyyy"\u5e74"m"\u6708"',t[51]='m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='m"\u6708"d"\u65e5"',t[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[57]='yyyy"\u5e74"m"\u6708"',t[58]='m"\u6708"d"\u65e5"',t.count=58;else if("ja-jp"===n)t[14]="yyyy/m/d",t[15]="dd-mmm-yy",t[16]="dd-mmm",t[17]="mmm-yy",t[22]="yyyy/mm/dd h:mm",t[27]="[$-411]ge.m.d",t[28]='[$-411]ggge"\u5e74"m"\u6708"d"',t[29]='[$-411]ggge"\u5e74"m"\u6708"d"',t[30]="m/d/yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u6642"mm"\u5206"',t[33]='h"\u6642"mm"\u5206"ss"\u79d2"',t[34]='yyyy"\u5e74"m"\u6708"',t[35]='m"\u6708"d"\u65e5"',t[36]="[$-411]ge.m.d",t[38]="#,##0;[Red]-#,##0",t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]="[$-411]ge.m.d",t[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[55]='yyyy"\u5e74"m"\u6708"',t[56]='m"\u6708"d"\u65e5"',t[57]="[$-411]ge.m.d",t[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t.count=58;else if(e=(n=_.getCultureInfo())&&n.LocalNumberFormat,!f(e)&&!Array.isArray(e)&&"object"==typeof e){for(i in e)isNaN(Number(i))||(r=e[i],M.uo(r)&&(t[i]=e[i]));for(i in o=0,t)isNaN(Number(i))||o<(a=Number(i))&&(o=a);t.count=o}},_.initLanguageIndepedentNumberFormat=function(){var t=_.Ch;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},_.getFormatCode=function(t){var n,e,i,r,t,o,t,n=_.builtInNumberFormat(),e=_.customNumberFormat(),i=_.languageIndepedentNumberFormat(),r=t.numberFormatIndex;return t.numberFormat?(o=(t=t.numberFormat).numberFormatId,t=t.numberFormatCode,n[o]&&n[o]!==t?n[o]=t:(e[t]||(e[t]=o,e.count++),t)):n[r]||i[r]||"General"},_.getFormatId=function(t){var n,e,i,r,o,a,u,s,n=_.Ah();if(n[t])return n[t];if(i=_.builtInNumberFormat())for(r in i)if(i[r]===t)return e={isBuiltIn:!0,id:parseInt(r,10)},n[t]=e;if((o=_.customNumberFormat())&&o[t])return e={isBuiltIn:!1,id:o[t]},n[t]=e;if((a=0)u&&(u=o[s]);a=u}return _.Ih++,a=Math.max(_.Ih,a)+1,e={isBuiltIn:!1,id:o[t]=a}},_.Ah=function(){return _.xh=_.xh?_.xh:{}},_.resetBuiltInNumberFormat=function(){_.Md={count:0},_.Ch={count:0}},_.Sh=null,_.xh=null,_.Md={count:0},_.Ch={count:0},_.Th={count:0},_.Ih=170,n.ExtendedNumberFormatHelper=_},"./dist/core/excel-io-util/excel-helper.js":function(t,n){"use strict";function e(t,n){var n=Math.pow(10,n);return Math.round(t*n)/n}var i;function r(){}Object.defineProperty(n,"__esModule",{value:!0}),n.ExcelHelper=void 0,r.pointToPixel=function(t){return e(96*t/72,2)},r.pixelToPoint=function(t){return 72*t/96},r.emuToPixles=function(t,n){return e(96*t/914400,n||2)},r.pixelToEMU=function(t){return Math.round(914400*t/96)},r.getActualColumnWidth=function(t,n,e){for(var i,r,i=0,r=n;rf||t.col>l||t.rowCount>f||t.col>l||e.push(t)}),e},s._c=function(t,n){var e,i,i,r,o,i,a,a,t,e=(0,u.Ec)(0,0,0,0),i=t.indexOf("!");if(1===(i=(i=(t=-1=t[u].length?r+="00":r+=t[u].charAt(e)+t[u].charAt(e+1):e>o!=n[r]>>o)return!1;i-=e,r+=1}return!0}function c(t){if(l.test(t))return parseInt(t,16);if("0"!==t[0]||isNaN(parseInt(t[1],10)))return parseInt(t,10);if(s.test(t))return parseInt(t,8);throw new Error("ipaddr: cannot parse ".concat(t," as octal"))}function e(t,n){for(;t.length>n&255);return t}().reverse()}if(n=t.match(f.twoOctet)){var u,s,u=n.slice(1,4),s=[];if(16777215<(i=c(u[1]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(i>>16&255),s.push(i>>8&255),s.push(255&i),s}if(n=t.match(f.threeOctet)){var u,s,u=n.slice(1,5),s=[];if(65535<(i=c(u[2]))||i<0)throw new Error("ipaddr: address outside defined range");return s.push(c(u[0])),s.push(c(u[1])),s.push(i>>8&255),s.push(255&i),s}return null},g.IPv4.subnetMaskFromPrefixLength=function(t){var n,e,i;if((t=parseInt(t))<0||32>8),n.push(255&t);return n},r.prototype.toFixedLengthString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;n>8,255&n,t>>8,255&t]);throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4")},r.prototype.toNormalizedString=function(){var t,n,t,n="";return function(){for(var t,n,t=[],n=0;ni&&(e=r.index,i=r[0].length);return i<0?n:"".concat(n.substring(0,e),"::").concat(n.substring(e+i))},r.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},r),g.IPv6.broadcastAddressFromCIDR=function(t){var n,e,i,r,o;try{for(e=(n=this.parseCIDR(t))[0].toByteArray(),i=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(e[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.isIPv6=function(t){return null!==this.parser(t)},g.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{var n=this.parser(t);return new this(n.parts,n.zoneId),!0}catch(t){return!1}},g.IPv6.networkAddressFromCIDR=function(t){var n,e,i,r,o;try{for(i=(n=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(n[1]).toByteArray(),r=[],e=0;e<16;)r.push(parseInt(i[e],10)&parseInt(o[e],10)),e++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(t,")"))}},g.IPv6.parse=function(t){var t=this.parser(t);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},g.IPv6.parseCIDR=function(t){var n,t,t;if((t=t.match(/^(.+)\/(\d+)$/))&&0<=(n=parseInt(t[2]))&&n<=128)return t=[this.parse(t[1]),n],Object.defineProperty(t,"toString",{value:function t(){return this.join("/")}}),t;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},g.IPv6.parser=function(t){var t,n,e,i,r,t;if(e=t.match(v.deprecatedTransitional))return this.parser("::ffff:".concat(e[1]));if(v.native.test(t))return o(t,8);if((e=t.match(v.transitional))&&(t=e[6]||"",(t=o(e[1].slice(0,-1)+t,6)).parts)){for(r=[parseInt(e[2]),parseInt(e[3]),parseInt(e[4]),parseInt(e[5])],n=0;n>12&63,u=r>>6&63,s=63&r,c[l/3]=d.charAt(o=r>>18&63)+d.charAt(a)+d.charAt(u)+d.charAt(s);return t=(t=c.join("")).slice(0,t.length-f.length)+f}function m(t){for(var n,e,i,r,n,o,a,r,u,s,c,f,l,u=[],f=v,c=t,l=0;l>>16&255,e=r>>>8&255,i=255&r),64==a&&(u[l/4]=d(n,e)),64==o&&(u[l/4]=d(n));return s=u.join("")}function p(t){return(h&&window.atob||m)(t)}function b(t){return(h&&window.btoa||l)(t)}function w(t){return decodeURIComponent(Array.prototype.map.call(p(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function y(t){return b(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,n){return d(parseInt(n,16))}))}function M(t){var t,n;return t?(t=f(t=c(t)),n=Math.ceil(t.length/2),w(t=(t=(t=t.substr(n)+t.substr(0,n)).replace("#","=")).replace("&","=="))):""}function C(t){for(var n,e,i,r,n=p(t),e=n.length,i=new o(e),r=0;rc&&(u=f.left+r-c),f.top+o>s&&(a=f.top+o-s),(e<0||i<0||0=e[r].value;)i+=e[r].numeral,t-=e[r].value;return i}function mn(t,n){var e="",i=n?97:65;if(0===t)return String.fromCharCode(i);for(;0>16&255,g:t>>8&255,b:255&t,a:t>>24&255}},c.convertRgbToXyz=function(t){var n,e,i,t,e,i,n,r,o,a,n=function(t){return t=.04045<(t/=255)?M((t+.055)/1.055,2.4):t/12.92,t*=100},e=t.r,i=t.g,t=t.b,e=n(e),i=n(i),n=n(t),r,o,a;return{x:.4124564*e+.3575761*i+.1804375*n,y:.2126729*e+.7151522*i+.072175*n,z:.0193339*e+.119192*i+.9503041*n}},c.convertXyzToLab=function(t){var n,e,i,t,r,o,a,n=function(t){return.008856>16&255)+","+(e=t>>8&255)+","+(i=255&t)+")":void 0},c.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],c.paletteInLab=[{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:46.22743146876261,redGreen:-51.51899057263506,blueYellow:49.61670487243066},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:51.86894337734398,redGreen:-12.69765903738712,blueYellow:56.380043157800905},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:77.7043667134314,redGreen:.3348315663007084,blueYellow:-.7885979888260453},{lightness:53.585015771669404,redGreen:.2486464680258038,blueYellow:-.5856141545440119},{lightness:67.10642818332406,redGreen:24.661563327250835,blueYellow:-51.70481284997233},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:98.88366982816507,redGreen:-7.647377025903346,blueYellow:23.604961406243042},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:22.946593663526578,redGreen:50.30757275587142,blueYellow:-31.51689638909162},{lightness:68.21369400049187,redGreen:48.529707503769,blueYellow:22.097909906924063},{lightness:44.03181574544729,redGreen:15.497390355584283,blueYellow:-60.313393374835414},{lightness:83.56960561788927,redGreen:10.660290354444879,blueYellow:-25.869538462689157},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:76.31433784805343,redGreen:-24.045184322556313,blueYellow:-37.63232479221295},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:95.46123799053612,redGreen:-25.20013221308681,blueYellow:18.33180794427749},{lightness:98.0661672083006,redGreen:-13.832882960730986,blueYellow:47.940897645383274},{lightness:80.27790732349922,redGreen:-3.692924875082826,blueYellow:-31.192993832087378},{lightness:75.08051024268852,redGreen:44.9470828980269,blueYellow:-10.53443113754624},{lightness:71.44638619892534,redGreen:38.40169770146873,blueYellow:-44.58196770374543},{lightness:85.37715784474301,redGreen:11.871131967975845,blueYellow:31.5700614950422},{lightness:48.789468602187014,redGreen:37.72886428748323,blueYellow:-81.46151935827358},{lightness:74.97920661167659,redGreen:-37.437024973414836,blueYellow:-12.053212107002897},{lightness:76.04314994204388,redGreen:-38.98270545611504,blueYellow:75.18013610138723},{lightness:84.19958734726818,redGreen:4.040877427542666,blueYellow:84.79018925434798},{lightness:72.2607240884026,redGreen:30.50579205114734,blueYellow:76.85864017596677},{lightness:62.312481453511026,redGreen:55.3256388060856,blueYellow:71.01583749339153},{lightness:45.11897896728884,redGreen:12.741665540704494,blueYellow:-28.39942907333195},{lightness:62.082179778109094,redGreen:.2790091803857031,blueYellow:-.6571246580693746},{lightness:21.3066228635372,redGreen:6.957317762469661,blueYellow:-34.694697216998314},{lightness:56.52959107095738,redGreen:-41.28375003303447,blueYellow:17.929912574393892},{lightness:17.308442495122094,redGreen:-27.576541316135987,blueYellow:24.11521195522933},{lightness:20.328171424265783,redGreen:-6.796668862699029,blueYellow:28.392687041649655},{lightness:36.25649980036505,redGreen:41.047060654411325,blueYellow:47.86323594949912},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:27.765685279866425,redGreen:33.339639613412324,blueYellow:-56.37161392120451},{lightness:21.24673253653905,redGreen:.13309285609849897,blueYellow:-.31346136150179893},{lightness:0,redGreen:0,blueYellow:0}],St=c,f.ColorHelper=St,f.getFontHeightWithCanvas=dn,Tt=/&#(\d+);/g,xt=/&#x([0-9A-F]+);/gi,k.Vf=function(t){for(var n,e,n="";0=s&&(u+=t.Gt(s,3))):(c=t.S0(s),t.getViewportLeftColumn(c)<=s&&t.getViewportRightColumn(c)>=s&&(u+=t.nn(s,3))),!(r&&r(o=t[r]).row&&(n=o.row),e>o.col&&(e=o.col);return{r:n=n<0?0:n,c:e=e<0?0:e}},k.V0=function(t){var t,t=typeof t===A&&"/"===t.charAt(0)?k.a2e(t):t;return t},k.a2e=function(t){var n,n,n=pt.test(t)?(n=t.match(pt),h.Common.ct.Y0(st(n[1]))):mt.test(t)?(n=t.match(mt),new Date(st(n[1]))):t;return n},k.Z0=function(t){var t,t=!T(t)&&h.Common.ct.W0(t)?h.Common.ct.Q0(t):t;return t},k.K0=function(t,n){for(var e,i,r,o,e=t.getImageData(n.x,n.y,n.width,n.height),i=e.data,r=0;rn&&(t.rowCount=n),t.colCount>e&&(t.colCount=e)},k.X0=function(t,n,e,i){for(var r=e;r)|(")|(')/g).test(t)?typeof t===A?t.replace(n,function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'"}}):""+t:t},k.Nfe=function(t,n){return(n=void 0!==n&&n)?t&&t.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&").replace(/\"/g,"""):t&&t.replace(/\&/g,"&").replace(/\"/g,""").replace(/\>/g,">").replace(/\").replace(/</g,"<")},k.n1=function(t){var n,e;return T(t)?t:!(n=typeof t===A)||-1===t.indexOf("&")?""+t:(e=/(&)|(>)|(<)|(")|(')/g,(t=-1!==t.indexOf("&#")?t.replace(Tt,sn(10)).replace(xt,sn(16)):t).replace(e,function(t){switch(t){case"&":return"&";case">":return">";case"<":return"<";case""":return'"';case"'":return"'"}}))},k.e1=function(t,n,e){var i,r;if(t&&typeof t===A)for(i=0;iNumber.POSITIVE_INFINITY))for(;n%2&&(e+=t),(n=Math.floor(n/2))&&(t+=t),n;);return e},k.toPlainString=function(t){var n,e;return(""+t).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/,function(t,n,e,i,r){return+r<0?n+"0."+k.repeatString("0",1-+r-e.length-1)+e+i:n+e+i+k.repeatString("0",+r-i.length)})},k.jse=function(t){var n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild},k.rfe=function(t,n){var e,i,r,o;if(t===m||n===m||"object"!=typeof t||"object"!=typeof n)return t===n;if(e=Object.keys(t),i=Object.keys(n),e.length!==i.length)return!1;for(r=0;r=e.length||n.priority>e[i].priority){e.splice(i,0,n);break}l&&(null!=(t=f.c2e)?t:[]).forEach(function(t){t()})},f.et=function(t,n,e,i){var r,r,o,a,u,s,c,o=f.fh;if(o){if(t&&!t._featuresCache&&(t._featuresCache={}),!(a=l&&t?null==(r=t._featuresCache)?void 0:r[n]:null==(r=f._featuresCache)?void 0:r[n]))for(a=l&&t?t._featuresCache[n]=[]:f._featuresCache[n]=[],u=0;u\u200b"),e.selectAllChildren(o),0>2]|=t[r]<>2]|=i<>2]|=(192|i>>6)<>2]|=(224|i>>12)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=r[3&n],this.block=t[32],112<=n&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash())},m.prototype.hash=function(){for(var L,F,B,P,G,U,H,z,V,Y,Z,W,Q,J,K,X,t,n,e,i,r,o,a,u,s,c,f,l,q,f,l,q,$,tt,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,O,E,R,L=this.h0h,F=this.h0l,B=this.h1h,P=this.h1l,G=this.h2h,U=this.h2l,H=this.h3h,z=this.h3l,V=this.h4h,Y=this.h4l,Z=this.h5h,W=this.h5l,Q=this.h6h,J=this.h6l,K=this.h7h,X=this.h7l,t=this.blocks,n=32;n<160;n+=2)e=((v=t[n-30])>>>1|(g=t[n-29])<<31)^(v>>>8|g<<24)^v>>>7,i=(g>>>1|v<<31)^(g>>>8|v<<24)^(g>>>7|v<<25),r=((v=t[n-4])>>>19|(g=t[n-3])<<13)^(g>>>29|v<<3)^v>>>6,o=(g>>>19|v<<13)^(v>>>29|g<<3)^(g>>>6|v<<26),v=t[n-32],g=t[n-31],m=t[n-14],p=t[n-13],t[n]=(c=(m>>>16)+(v>>>16)+(e>>>16)+(r>>>16)+((s=(65535&m)+(65535&v)+(65535&e)+(65535&r)+((u=(p>>>16)+(g>>>16)+(i>>>16)+(o>>>16)+((a=(65535&p)+(65535&g)+(65535&i)+(65535&o))>>>16))>>>16))>>>16))<<16|65535&s,t[n+1]=u<<16|65535&a;for(y=L,M=F,A=H,I=z,N=V,k=Y,j=Z,D=W,_=Q,O=J,E=K,R=X,$=(C=B)&(T=G),tt=(S=P)&(x=U),n=0;n<160;n+=8)v=t[n],g=t[n+1],v=(c=((m=nt[n])>>>16)+(v>>>16)+((b=N&j^~N&_)>>>16)+((r=(N>>>14|k<<18)^(N>>>18|k<<14)^(k>>>9|N<<23))>>>16)+(E>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&E)+((u=((p=nt[n+1])>>>16)+(g>>>16)+((w=k&D^~k&O)>>>16)+((o=(k>>>14|N<<18)^(k>>>18|N<<14)^(N>>>9|k<<23))>>>16)+(R>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(f=y&C)^y&T^$)>>>16)+((e=(y>>>28|M<<4)^(M>>>2|y<<30)^(M>>>7|y<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(l=M&S)^M&x^tt)>>>16)+((i=(M>>>28|y<<4)^(y>>>2|M<<30)^(y>>>7|M<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,E=(c=(A>>>16)+(v>>>16)+((s=(65535&A)+(65535&v)+((u=(I>>>16)+(g>>>16)+((a=(65535&I)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,R=u<<16|65535&a,A=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,I=u<<16|65535&a,v=t[n+2],g=t[n+3],v=(c=((m=nt[n+2])>>>16)+(v>>>16)+((b=E&N^~E&j)>>>16)+((r=(E>>>14|R<<18)^(E>>>18|R<<14)^(R>>>9|E<<23))>>>16)+(_>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&_)+((u=((p=nt[n+3])>>>16)+(g>>>16)+((w=R&k^~R&D)>>>16)+((o=(R>>>14|E<<18)^(R>>>18|E<<14)^(E>>>9|R<<23))>>>16)+(O>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(q=A&y)^A&C^f)>>>16)+((e=(A>>>28|I<<4)^(I>>>2|A<<30)^(I>>>7|A<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(f=I&M)^I&S^l)>>>16)+((i=(I>>>28|A<<4)^(A>>>2|I<<30)^(A>>>7|I<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,_=(c=(T>>>16)+(v>>>16)+((s=(65535&T)+(65535&v)+((u=(x>>>16)+(g>>>16)+((a=(65535&x)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,O=u<<16|65535&a,T=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,x=u<<16|65535&a,v=t[n+4],g=t[n+5],v=(c=((m=nt[n+4])>>>16)+(v>>>16)+((b=_&E^~_&N)>>>16)+((r=(_>>>14|O<<18)^(_>>>18|O<<14)^(O>>>9|_<<23))>>>16)+(j>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&j)+((u=((p=nt[n+5])>>>16)+(g>>>16)+((w=O&R^~O&k)>>>16)+((o=(O>>>14|_<<18)^(O>>>18|_<<14)^(_>>>9|O<<23))>>>16)+(D>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=(l=T&A)^T&y^q)>>>16)+((e=(T>>>28|x<<4)^(x>>>2|T<<30)^(x>>>7|T<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(q=x&I)^x&M^f)>>>16)+((i=(x>>>28|T<<4)^(T>>>2|x<<30)^(T>>>7|x<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,j=(c=(C>>>16)+(v>>>16)+((s=(65535&C)+(65535&v)+((u=(S>>>16)+(g>>>16)+((a=(65535&S)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,D=u<<16|65535&a,C=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,S=u<<16|65535&a,v=t[n+6],g=t[n+7],v=(c=((m=nt[n+6])>>>16)+(v>>>16)+((b=j&_^~j&E)>>>16)+((r=(j>>>14|D<<18)^(j>>>18|D<<14)^(D>>>9|j<<23))>>>16)+(N>>>16)+((s=(65535&m)+(65535&v)+(65535&b)+(65535&r)+(65535&N)+((u=((p=nt[n+7])>>>16)+(g>>>16)+((w=D&O^~D&R)>>>16)+((o=(D>>>14|j<<18)^(D>>>18|j<<14)^(j>>>9|D<<23))>>>16)+(k>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,g=u<<16|65535&a,m=(c=((h=($=C&T)^C&A^l)>>>16)+((e=(C>>>28|S<<4)^(S>>>2|C<<30)^(S>>>7|C<<25))>>>16)+((s=(65535&h)+(65535&e)+((u=((d=(tt=S&x)^S&I^q)>>>16)+((i=(S>>>28|C<<4)^(C>>>2|S<<30)^(C>>>7|S<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&s,p=u<<16|65535&a,N=(c=(y>>>16)+(v>>>16)+((s=(65535&y)+(65535&v)+((u=(M>>>16)+(g>>>16)+((a=(65535&M)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,k=u<<16|65535&a,y=(c=(m>>>16)+(v>>>16)+((s=(65535&m)+(65535&v)+((u=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&s,M=u<<16|65535&a;this.h0h=(c=(L>>>16)+(y>>>16)+((s=(65535&L)+(65535&y)+((u=(F>>>16)+(M>>>16)+((a=(65535&F)+(65535&M))>>>16))>>>16))>>>16))<<16|65535&s,this.h0l=u<<16|65535&a,this.h1h=(c=(B>>>16)+(C>>>16)+((s=(65535&B)+(65535&C)+((u=(P>>>16)+(S>>>16)+((a=(65535&P)+(65535&S))>>>16))>>>16))>>>16))<<16|65535&s,this.h1l=u<<16|65535&a,this.h2h=(c=(G>>>16)+(T>>>16)+((s=(65535&G)+(65535&T)+((u=(U>>>16)+(x>>>16)+((a=(65535&U)+(65535&x))>>>16))>>>16))>>>16))<<16|65535&s,this.h2l=u<<16|65535&a,this.h3h=(c=(H>>>16)+(A>>>16)+((s=(65535&H)+(65535&A)+((u=(z>>>16)+(I>>>16)+((a=(65535&z)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,this.h3l=u<<16|65535&a,this.h4h=(c=(V>>>16)+(N>>>16)+((s=(65535&V)+(65535&N)+((u=(Y>>>16)+(k>>>16)+((a=(65535&Y)+(65535&k))>>>16))>>>16))>>>16))<<16|65535&s,this.h4l=u<<16|65535&a,this.h5h=(c=(Z>>>16)+(j>>>16)+((s=(65535&Z)+(65535&j)+((u=(W>>>16)+(D>>>16)+((a=(65535&W)+(65535&D))>>>16))>>>16))>>>16))<<16|65535&s,this.h5l=u<<16|65535&a,this.h6h=(c=(Q>>>16)+(_>>>16)+((s=(65535&Q)+(65535&_)+((u=(J>>>16)+(O>>>16)+((a=(65535&J)+(65535&O))>>>16))>>>16))>>>16))<<16|65535&s,this.h6l=u<<16|65535&a,this.h7h=(c=(K>>>16)+(E>>>16)+((s=(65535&K)+(65535&E)+((u=(X>>>16)+(R>>>16)+((a=(65535&X)+(65535&R))>>>16))>>>16))>>>16))<<16|65535&s,this.h7l=u<<16|65535&a},m.prototype.hex=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,m=this.bits,t=p[t>>28&15]+p[t>>24&15]+p[t>>20&15]+p[t>>16&15]+p[t>>12&15]+p[t>>8&15]+p[t>>4&15]+p[15&t]+p[n>>28&15]+p[n>>24&15]+p[n>>20&15]+p[n>>16&15]+p[n>>12&15]+p[n>>8&15]+p[n>>4&15]+p[15&n]+p[e>>28&15]+p[e>>24&15]+p[e>>20&15]+p[e>>16&15]+p[e>>12&15]+p[e>>8&15]+p[e>>4&15]+p[15&e]+p[i>>28&15]+p[i>>24&15]+p[i>>20&15]+p[i>>16&15]+p[i>>12&15]+p[i>>8&15]+p[i>>4&15]+p[15&i]+p[r>>28&15]+p[r>>24&15]+p[r>>20&15]+p[r>>16&15]+p[r>>12&15]+p[r>>8&15]+p[r>>4&15]+p[15&r]+p[o>>28&15]+p[o>>24&15]+p[o>>20&15]+p[o>>16&15]+p[o>>12&15]+p[o>>8&15]+p[o>>4&15]+p[15&o]+p[a>>28&15]+p[a>>24&15]+p[a>>20&15]+p[a>>16&15]+p[a>>12&15]+p[a>>8&15]+p[a>>4&15]+p[15&a],256<=m&&(t+=p[u>>28&15]+p[u>>24&15]+p[u>>20&15]+p[u>>16&15]+p[u>>12&15]+p[u>>8&15]+p[u>>4&15]+p[15&u]),384<=m&&(t+=p[s>>28&15]+p[s>>24&15]+p[s>>20&15]+p[s>>16&15]+p[s>>12&15]+p[s>>8&15]+p[s>>4&15]+p[15&s]+p[c>>28&15]+p[c>>24&15]+p[c>>20&15]+p[c>>16&15]+p[c>>12&15]+p[c>>8&15]+p[c>>4&15]+p[15&c]+p[f>>28&15]+p[f>>24&15]+p[f>>20&15]+p[f>>16&15]+p[f>>12&15]+p[f>>8&15]+p[f>>4&15]+p[15&f]+p[l>>28&15]+p[l>>24&15]+p[l>>20&15]+p[l>>16&15]+p[l>>12&15]+p[l>>8&15]+p[l>>4&15]+p[15&l]),512===m&&(t+=p[h>>28&15]+p[h>>24&15]+p[h>>20&15]+p[h>>16&15]+p[h>>12&15]+p[h>>8&15]+p[h>>4&15]+p[15&h]+p[d>>28&15]+p[d>>24&15]+p[d>>20&15]+p[d>>16&15]+p[d>>12&15]+p[d>>8&15]+p[d>>4&15]+p[15&d]+p[v>>28&15]+p[v>>24&15]+p[v>>20&15]+p[v>>16&15]+p[v>>12&15]+p[v>>8&15]+p[v>>4&15]+p[15&v]+p[g>>28&15]+p[g>>24&15]+p[g>>20&15]+p[g>>16&15]+p[g>>12&15]+p[g>>8&15]+p[g>>4&15]+p[15&g]),t},m.prototype.digest=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,n,t;return this.finalize(),t=this.h0h,n=this.h0l,e=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,t=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a],256<=(n=this.bits)&&t.push(u>>24&255,u>>16&255,u>>8&255,255&u),384<=n&&t.push(s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,f>>24&255,f>>16&255,f>>8&255,255&f,l>>24&255,l>>16&255,l>>8&255,255&l),512===n&&t.push(h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g),t},m.prototype.arrayBuffer=function(){var t,n,e;return this.finalize(),t=this.bits,n=new ArrayBuffer(t/8),(e=new DataView(n)).setUint32(0,this.h0h),e.setUint32(4,this.h0l),e.setUint32(8,this.h1h),e.setUint32(12,this.h1l),e.setUint32(16,this.h2h),e.setUint32(20,this.h2l),e.setUint32(24,this.h3h),256<=t&&e.setUint32(28,this.h3l),384<=t&&(e.setUint32(32,this.h4h),e.setUint32(36,this.h4l),e.setUint32(40,this.h5h),e.setUint32(44,this.h5l)),512===t&&(e.setUint32(48,this.h6h),e.setUint32(52,this.h6l),e.setUint32(56,this.h7h),e.setUint32(60,this.h7l)),n},m.prototype.clone=function(){var t=new m(this.bits,!1);return this.copyTo(t),t},m.prototype.copyTo=function(t){for(var n,e=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"],n=0;n>8,n[2]=(16711680&t)>>16,n[3]=(4278190080&t)>>24,n},w.Joe=function(t){var n,e,i,r,o,a,u,s,n,c,n=.75*t.length,e=t.length,r=0;for("="===t[t.length-1]&&(n--,"="===t[t.length-2])&&n--,n=new ArrayBuffer(n),c=new Uint8Array(n),i=0;i>4,c[r++]=(15&a)<<4|u>>2,c[r++]=(3&u)<<6|63&s;return new Uint8Array(n)},w.Xoe=function(t){for(var n,e=t.length,i="",n=0;n>2])+a[(3&t[n])<<4|t[n+1]>>4])+a[(15&t[n+1])<<2|t[n+2]>>6])+a[63&t[n+2]];return e%3==2?i=i.substring(0,i.length-1)+"=":e%3==1&&(i=i.substring(0,i.length-2)+"=="),i},w.qoe=function(t){for(var n,e,n=new DataView(new ArrayBuffer(2*t.length)),e=0;e>14&1|n<<1&32767,n^=t.charCodeAt(e);return(n=(n=n>>14&1|n<<1&32767)^t.length^52811).toString(16).toUpperCase()},n.Qoe=w},"./dist/core/util/custom-list.js":function(t,n){"use strict";var o,e;function i(t,n){this.wY=t,this.kb=n}o=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;i=this.zh},r.prototype.addLoadingPromises=function(t){var n;t&&0>0:t},v.prototype.HVe=function(t){return t<0?t>>>0:t},n.CustomDocPropsManager=v,e.Y8.ch("customDocProps",{setValue:function(t){var n,e,i,t,r,e=t.row,i=t.col,t=t.value,r=this.Mf.getParent();null!=(n=null==r?void 0:r.docProps)&&n.customDocPropsManager&&r.docProps.customDocPropsManager.vIt(e,i,t)}})},"./dist/core/workbook/customThemeManager.js":function(t,n){"use strict";var e,i;function r(t,n){this.Vv=t,this.tkt=[],this.jkt=n.create,this.Ekt=n.buildIn,this.OHe=n.prefixName}e=this&&this.__spreadArray||function(t,n,e){if(e||2===arguments.length)for(var i=0,r=n.length,o;it.dm():t.lm+2*t.M2e[t.hm]>t.dm()},v.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,m.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em()-n.Qv():n.ot().width-n.rm()-n.Jv()-n.Qv():n.ot().height-n.Yv()},v.prototype.vm=function(){return 6},v.prototype.mm=function(){return[s,c]},v.prototype.gm=function(){return this.tm()},v.prototype.pm=function(t,n){var e,i,e=this;t.save(),t.beginPath(),i=m.I.He(0,"gc-tabStripBackground").backgroundColor,e.bm=u(i),t.fillStyle=i,t.fillRect(n.x,n.y,n.width,n.height),t.restore()},v.prototype.ym=function(t,n){var e,i,i,r,o,a,u,s,e,i=this.Vv,i=i&&i.options.tabStripPosition,r=m.I.He(0,"gc-tabStripBackground").borderTopColor;t.save(),t.beginPath(),t.strokeStyle=r,i===b.TabStripPosition.bottom?(o=n.x,a=n.y,u=n.x+n.width,s=n.y+.5):i===b.TabStripPosition.top?(o=n.x,a=n.height-.5,u=n.x+n.width,s=n.y+n.height-.5):i===b.TabStripPosition.left?(o=n.x+n.width-.5,a=n.y,u=n.x+n.width-.5,s=n.y+n.height):i===b.TabStripPosition.right&&(o=n.x+.5,a=n.y,u=n.x+.5,s=n.y+n.height),t.moveTo(o,a),t.lineTo(u,s),t.stroke(),t.restore()},v.prototype.wm=function(t,n){var e=this;e.pm(t,n),e.ym(t,n)},v.prototype.Mm=function(t,n,e){var i,r,o,a,u,i,s,c,f,e,l,h,d,u,i,d,i,c,r=this,o,a=r.Vv.options.newTabVisible,u=r.im(),i=null==(i=(0,m.jf)(r.Vv))?void 0:i.options.rightToLeft,s=r.tm(),c=r.Xv(),f=r.jv,e=e,l=0,h=f;u?(u=r.Qv(),i?((e-=u)<(i=n.x+r.rm()+r.Jv())&&(c<(d=e=i)&&(e=(d=c)-f),r.Cm(t,d,0,u,n.height)),e-=r.Jv()):(e+=u,r.nm()&&(s-=r.em()),(i=n.x+n.width-r.rm()-r.Jv())t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},l.prototype.dm=function(){var t,n,e,t,n=this,e=n.im(),t=null==(t=(0,S.jf)(n.Vv))?void 0:t.options.rightToLeft;return e?t?n.ot().width-n.Wsn()-n.em():n.ot().width-n.rm():n.ot().height-n.Yv()},l.prototype.vm=function(){var t;return this.im()?1:4},l.prototype.mm=function(){return[a]},l.prototype.gm=function(){var t,n,e,t=this,n=t.im(),e=t.tm();return e=n&&(e+=t.ot().height,t.Vv.options.newTabVisible)?(e+=t.Jv())+t._v:e},l.prototype.wm=function(t,n){var e,i,r,i,o,a,u,s;if(t.save(),t.beginPath(),e=t.createLinearGradient(n.x,n.y,n.width,n.height),r=(i=S.I.He(0,"gc-tabStripBackground"))&&i.backgroundImage,i=i&&i.backgroundColor,r&&-1!==r.indexOf(k))for(a=0,u=(o=x(r)).length;at)e.xg(r);else{if(!o[o.length-1]||!(o[o.length-1].indexa.x&&tv.moreTabPos+v.secondMoreTabWidth||0===v.moreTabPos))return{type:G,element:O,index:C.index,position:C.position}}else for(h=i.om;hv.moreTabPos&&0=n?(i.options.tabStripRatio=n,e.Lg=r):e.Lg=t.pageX,i.Xg();else if(e.Qg)e.qg(t.pageX,t.pageY),e.$g(t);else{if(e.Nm=-1,e.Tm=-1,c=(0,T.GC$)(e.Dg()).offset(),n=t.pageX-c.left,r=t.pageY-c.top,t=(i=e.hitTest(n,r)).element,e.Vv&&e.Vv.options.enableAccessibility&&(c=e.t2(i),e.Vv.n2(c)),""===t)return o.cursor=a,e.repaint(),!1;t===_?o.cursor=u:(o.cursor=a,0<=F.indexOf(t)?e.Nm=i.index:t===O?e.Tm=i.index:t===E?e.Tm=-2:t===L&&(e.Tm=-3)),e.repaint()}return!1},l.prototype.t2=function(t){var n,e,i,r,t,n=$(),e="",i=t.element;return i===_?e=n.ARIA_Resize:0<=F.indexOf(i)?e=(r={first:n.ARIA_First,prevArrow:n.ARIA_PreviousArrow,nextArrow:n.ARIA_NextArrow,last:n.ARIA_Last,prevButton:n.ARIA_PreviousButton,nextButton:n.ARIA_NextButton})[i]||"":i===O?(t=this.Vv.e2(t.index).name(),e=n.ARIA_SheetTab+" "+t.replace(/([0-9]+)/," $1 ")):i===E?e=n.ARIA_NewSheet:i===R&&(e=n.ARIA_Blank),e},l.prototype.bg=function(t){var n,t,t,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseUp",t),p(t=t.r)?(n.Bg&&(n.Bg=!1,n.Vv.Xg()),n.i2(),n.Qg&&(n.Qg=!1,n.r2.remove(),n.o2(),n.dg.hide()),n.Wg=N,n.a2(),n.u2(),!n.Yg||(n.Yg=!1)):t},l.prototype.yg=function(t){var n,t,t,e,i,n=this,t={e:t,r:N};return l.et(n,"preProcessMouseOut",t),p(t=t.r)?(n.a2(),e=n.Nm,n.Nm=-1,i=n.Tm,n.Tm=-1,n.Nm===e&&n.Tm===i||n.repaint(),!1):t},l.prototype.Fg=function(){var n=this;n.s2||((0,T.GC$)(a).bind(V,function(t){n.pg(t)}).bind(Y,function(t){n.bg(t)}),n.c2(!0),n.s2=!0)},l.prototype.c2=function(t){var n,e,n,e=this.Vv.getActiveSheet();e&&(e.f2=t)},l.prototype.u2=function(){var t;this.s2&&((this.s2=!1,T.GC$)(a).unbind(V).unbind(Y),t=this.Vv.getActiveSheet())&&delete t.f2},l.prototype.Pg=function(t,n,e){var i,r,i,o,a,r=this,i=null==(i=(0,x.jf)(r.Vv))?void 0:i.options.rightToLeft;r.a2(),(o=r.Zm()).length<=0||(a=200,0===(t%=4)?i?r.d2(o):r.l2(o):1===t?(n||(r.h2=b.setTimeout(function(){r.Pg(1)},200)),i&&!e?r.Ng(o):r.xg(o)):2===t?(n||(r.h2=b.setTimeout(function(){r.Pg(2)},200)),i&&!e?r.xg(o):r.Ng(o)):3===t&&(i?r.l2(o):r.d2(o)))},l.prototype.Gg=function(t,n,e){var i,r,o,r,o,i=this,r=i.Vv,o=r.v2,r=r.e2(t),o=o&&o.sheetsState;o&&0===o[r.name()]?(i.ug!==N&&clearTimeout(i.ug),i.ug=window.setTimeout(function(){i.m2(t,n,e),i.c2(!0),i.ug=N,i.Vg()})):i.m2(t,n,e)},l.prototype.m2=function(t,n,e){var i,r,n,o,n,i=this,r=i.Vv;i.hm=t,i.lm=n,r.suspendPaint(),n=r.getActiveSheet(),(o=r.e2(t))&&o.isEditing()&&o!==n&&(n=n&&n.il&&n.il.rl,!o.ol(void 0,void 0,n,void 0,!1))||(nt(r,o,t),i.g2(t,e),r.resumePaint(),i.repaint())},l.prototype.p2=function(t,n,e,i,r,o){var e={oldValue:e,newValue:i,sheetName:r,propertyName:"isSelected",cancel:!1,sheetIndex:o,sheetPosition:t.getSheetPosition(r)};t.ki(x.Events.SheetChanging,e),e.cancel||(n.b2(i),t&&t.w2&&t.w2.repaint(),delete e.cancel,t.ki(x.Events.SheetChanged,e))},l.prototype.Hg=function(t){var n,e,i,r,r,o,a,r,u,n=this,e=n.Vv,i=n.im(),r=e.getActiveSheet();if((!n.C2||n.C2(r))&&(nt(e,N,N),r=e.qv(),o=e.getSheetCount(),a=e.S2(e.T2(o)),r.forEach(function(t){t.b2(!1,!0)}),u={sheetName:r=a.name(),propertyName:"insertSheet",cancel:!1,sheetIndex:o,sheetPosition:e.getSheetPosition(r)},n.p2(e,a,!1,!0,r,o),e.ki(x.Events.SheetChanging,u),!u.cancel)){for(e.A2(o,1,a),e.ki(x.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:o,sheetPosition:e.getSheetPosition(a.name())}),n.hm=o,n.lm=t,e.I2(e.qv().length-1,1,!1,!0);n.hm>n.om&&(n.fm()||n.ome.dm():e.lm+e.M2e[e.hm]>=e.dm(),e.hm>e.om&&c&&-1!==n&&(e.om=n)):f&&r.forEach(function(t){var n,e,n=t.name(),e;i.getSheetPosition(n)!==i.ep()&&t.b2()&&t.visible()===A.SheetTabVisible.visible&&t.b2(!1,!0)}),e.hmi);u++)e.commandManager().execute({cmd:"moveSheet",sheetName:a[u].name(),targetIndex:i})}else t=null==(t=(s=e.e2(r)).options)?void 0:t.rightToLeft,-1!==i&&-1!==r&&r!==i&&(r!==i-1&&!t||t)&&n.dg.isVisible()&&(rt[0]&&-1!==(t=n.Vm(n.om))&&n.Vv.startSheetIndex(t)},l.prototype.Ng=function(t){var n,e;0=i.x+i.width)return;if(n.y>=i.y+i.height)return;if(n.x+n.width>i.width&&(n.width=i.width-n.x,n.width<=0))return;if(n.y+n.height>i.height&&(n.height=i.height-n.y,n.height<=0))return;if(n.width<=0||n.height<=0)return}if((o=e.buffer)&&o.width===r.width&&o.height===r.height&&(o||o.width===i.width&&o.height===i.height)||(o&&(x.Bf.nh(e.Vv,o),e.TCe()),e.buffer=o=I(J),x.Bf.Wl(o,e.Vv),x.Bf.$l(o,i.width,i.height)),!(i.width<=0||i.height<=0||n&&(n.width<=0||n.height<=0))){(o=e.buffer.getContext(D)).clearRect(0,0,i.width,i.height),x.Lf.Yl(o,-i.x,-i.y),e.Z2(o,n),x.Lf.Yl(o,i.x,i.y),s=a=0<=i.x?0:-i.x,c=u=0<=i.y?0:-i.y,n&&(s=i.x+n.x,c=i.y+n.y,i=new x.Rect(s,c,n.width,n.height)),a=0<=i.x?i.x:0,u=0<=i.y?i.y:0,h=N,d=x.Bf.Kl(r),v=x.Bf.Jl(r),r&&1!==d&&(s*=d,c*=v,i.x*=d,i.y*=v,i.width*=d,i.height*=v);try{l=r?n?(f=w(i.width-s,0),w(i.height-c,0)):(f=y(i.width-s,w(r.width-i.x,3)),y(i.height-c,w(r.height-i.y,3))):(s=n.x,c=n.y,f=n.width,n.height),r?(x.Lf.Vl(t,1,1),t.clearRect(a,u,f,l),t.drawImage(e.buffer,s,c,f,l,a,u,f,l),x.Lf.Vl(t,d,v)):h=(o=e.buffer.getContext(D)).getImageData(s,c,f,l)}catch(t){return}!r&&h&&0u.x+u.width)break}else if(c>u.y+u.height)break;s.push({index:h,position:c,width:f,height:l,text:o[h].name(),visible:d,style:t&&t[o[h].name()]}),d===A.SheetTabVisible.visible&&(c+=a?f+i._v:l)}return{tabsInfo:s,newTabStartPosition:c}},l.prototype.U2e=function(t){var n,e,i,n,e=A.VisualState.normal,i;return 2007U(a)){if(k=N=void 0,N=(j=t._y(1))&&0v+g;)k=j[D-=1];k&&k.row>n&&(c=!0,M=(h||d).x,C=N.y+U(e),A&&t.FCn(N.row)&&(C-=t.PCn(N.row)),y=k.y+k.height-C-l,S.Ey(M,C,w,y,M,v),i.colHeaderVisible||(t.invalidateLayout(),S.D1(T,new L.Rect(M,0,w,f+1))),t.invalidateLayout(),I=new L.Rect(M,v+y,w,(N=x?g:g+b+m)-y),S.D1(T,I,void 0,r.cAn(t,I)),S.Ey(d.Py,d.Cy,d.hL,d.A6,d.Py,d.Cy,!0),S.jy(T,new L.Rect(M,v-2,w,2+(N-=x?0:m))),this.xb(t,M,w))}}else{for(_=0,O=n;OU(a)){if(N=I=void 0,I=(k=t.Yy(1))&&0g+m);)N=k[j-=1];N&&N.col>n&&(s=!0,C=(d||v).y,l?(M=N.x,S=I.x+I.width-U(e)-M,D=0U(r)&&(i=r)):eU(r)&&(i=r)):e=u&&a)i._2=a.Vm(u);else{for(h=void 0,h=Math.max(0,i._2);h=u?i.startSheetIndex(a.Vm(u)):a.om<0?i.startSheetIndex(a.N2(-1)):i.Cg())},k.prototype.g3=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,c,s,f,e=this,i=e.mp,r=e.Lp,o=e.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(I().Exp_IndexOutOfRange);if(u=N(e),s=e.jb,c=t<=e.jb||t===a-1,f=e.getActiveSheetTab(),t=a)e.jb=o.Vm(a);else{for(h=void 0,h=Math.max(0,e.jb);h=a?e.startSheetIndex(o.Vm(a)):o.om<0?e.startSheetIndex(o.N2(-1)):e.Cg())},k.prototype.clearSheets=function(){for(var t,n,e,i,r,o,a,t=this,n=t.sheets,e=t.Lp,i=t.w2,r=0,o=n;r=n.m4()&&(t=((n.y4=t)-n.m4())*n.k4,n.scrollTo(t,!0)),n)},d.prototype.w4=function(){var n,t,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I;function N(){n.N4=q("div"),n.D4=(0,O.GC$)(n.N4),n.D4.css([U,B,G,mt,pt,z,V],[J,0,0,"hidden","none",0,0]).addClass($+" "+tt+" "+u+" "),n.h4&&n.D4.css(dt,B)}function k(t){n._4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+w,t),n.E4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],g+" "+y,n._4)}function j(t){n.j4=O.GC$.En("div",[U,Y,W,H,z,V],[Q,K,X,"none",0,0],et+" "+et,t)}function D(t){n.O4=O.GC$.En("div",[],[],ht+" "+M+" "+it,t),n.R4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],p+" "+C,n.O4)}function _(t){n.B4=O.GC$.En("div",[U,Y,bt,z,V,W],[Q,K,"1px",0,0,X],nt+" "+S,t),n.L4=O.GC$.En("span",[Y,H,z,V],["block","none",0,0],m+" "+T,n.B4)}e=t=0,i=!1,a=(o=(r=(n=this).o4)===E.ScrollbarAppearance.mobile)?0:2,u="ui-widget ui-corner-all",s=n.ZC(),c=n.YC(),h=f=o?0:s,d=B,v=P,g=at,m=ut,p=lt,b=gt,w="ui-button ui-state-default ui-corner-bl btn btn-default",y="ui-icon ui-icon-triangle-1-w",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-vertical",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-e",n.F4=l=c-2*f,n.h4||(l=f=o?0:c,d=G,v=vt,g=rt,m=ot,p=ft,b=wt,w="ui-button ui-state-default ui-corner-tr btn btn-default",y="ui-icon ui-icon-triangle-1-n",M="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",C="ui-icon ui-icon-grip-solid-horizontal",S="ui-button ui-state-default ui-corner-br btn btn-default",T="ui-icon ui-icon-triangle-1-s",n.F4=h=s-2*f),x=n.F4,A=n.v4()-n.m4(),n.P4=n.d4()*x/(A+n.d4()),n.P4>x&&(n.P4=x),n.P4<10&&(n.P4=10),I=n.P4,n.k4=0==A?1:(x-I)/A,e=n.h4?(t=I,f):(t=f,I),n.D4||(i=!0,N()),o?n.D4.addClass(st):n.D4.removeClass(st),n._4||k(n.D4),n.j4||j(n.D4),n.O4?n.O4.removeAttr("style"):D(n.j4),o?n.O4.css(U,Q).addClass(ct):n.O4.css([U,bt,z,V,W],[Q,"1px",0,0,X]).removeClass(ct),n.B4||_(n.D4),o?(yt(n.D4,H),yt(n.D4,V),n.h4?(n.D4.css([L,F],[c,Z]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,R(t-a),Z])):(n.D4.css([L,F,V],[Z,Z,0]),n.j4.css([d,L,F],[f,Z,Z]),n.O4.css([d,L,F],[n.b4,Z,R(e-a)])),n.R4.remove(),n._4.remove(),n.B4.remove()):(n.D4.css([L,F,H],[c,s,"none"]),n.j4.css([d,L,F],[f,l,h]),n.O4.css([d,L,F],[n.b4,R(t-a),R(e-a)]),n._4.css([d,L,F],[0,f-a,f-a]),n.E4.css([L,F],[Z,Z]),n.B4.css([v,L,F],[0,f-a,f-a]),n.L4.css([L,F],[Z,Z]),n.R4.css([L,F,b],[f-a,f-a,Math.floor((n.P4-f)/2)]),n.O4.append(n.R4),n.D4.append(n._4),n.D4.append(n.B4)),i&&n.G4()},d.prototype.G4=function(){var r=this;function t(t,n){t.bind(S,function(t){r.U4(t,n)}).bind(o,function(t){r.H4(t,n)}).bind(x,function(t){r.z4(t,n)}).bind(A,function(t){r.V4(t,n)})}t(r._4,!0),t(r.B4,!1),r.O4.bind(S,function(t){r.Y4(t)}).bind(T,function(t){r.Z4(t)}).bind(o,function(t){r.W4(t)}).bind(x,function(t){r.K4(t)}).bind(A,function(t){r.J4(t)}),r.j4.bind(S,function(t){var n,e,i,n;w&&w.mozilla&&(e=(new Date).valueOf(),i=r.X4,r.X4=e,i)&&e-i<100||r.q4(t)}).bind(o,function(t){r.tS(t)}),r.nS=function(t){r.eS(t)},r.D4.bind(u,r.nS),r.D4.bind(I,r.nS),d.et(r,"initEvents",r.N4)},d.prototype.Jw=function(t){this.o4=t},d.prototype.dispose=function(){var t=this;function n(t){t&&t.unbind(r)}n(t.B4),n(t.O4),n(t._4),n(t.j4),t.D4&&(t.nS&&(t.D4.unbind(u,t.nS),t.D4.unbind(I,t.nS)),d.et(t,"dispose",t.N4),t.D4.unbind(r).remove())},d.prototype.Fg=function(){var n=this;n.p4||((0,O.GC$)(a).bind(T,function(t){n.Z4(t)}).bind(o,function(t){n.W4(t)}),n.p4=!0)},d.prototype.u2=function(){this.p4&&(this.p4=!1,O.GC$)(a).unbind(T).unbind(o)},d.prototype.U4=function(t,n){var e,i,r,o,a,e=0,i=this,r=!0,o=i.Gxn;i.u4=!0,null===i.s4&&(n?(i._4.addClass(s),e=o?i.iS():0-i.iS(),i.rS=o?E.Zi.smallIncrement:E.Zi.smallDecrement):(i.B4.addClass(s),e=o?0-i.iS():i.iS(),i.rS=o?E.Zi.smallDecrement:E.Zi.smallIncrement),(a=function(){i.scrollTo(i.b4+e*i.k4,!1),i.s4=y.setTimeout(a,r?i.f4:i.l4),r=!1})(),h(t))},d.prototype.H4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass(s),e.oS(),h(t)},d.prototype.z4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).addClass("gc-scroll-arrow-hover ui-state-hover"),h(t)},d.prototype.V4=function(t,n){var e,i,e=this,i;(n?e._4:e.B4).removeClass("gc-scroll-arrow-hover ui-state-hover "+s),e.oS(),h(t)},d.prototype.Y4=function(t){var n,e,i,r,o,a,u,n=this;0===t.button&&(n.a4=!0,n._oldPosition={x:t.pageX,y:t.pageY},n.qy(E.ScrollbarState.show),n.Fg(),n.D4.addClass(C),n.O4.addClass(s),e=n.O4.offset(),i=n.O4.outerWidth(!0),r=n.O4.outerHeight(!0),o=n.j4.offset(),a=n.j4.outerWidth(!0),u=n.j4.outerHeight(!0),n.aS={isBeyondEdge:!1,startEdgePosition:{x:o.left+t.pageX-e.left,y:o.top+t.pageY-e.top},endEdgePosition:{x:o.left+a-(i-t.pageX+e.left),y:o.top+u-(r-t.pageY+e.top)}}),h(t)},d.prototype.Z4=function(t){var n=this;n.a4&&(n.qy(E.ScrollbarState.active),n.uS={x:t.pageX,y:t.pageY},n.sS(),n._oldPosition=n.uS,(0,O.GC$)(a.body).attr("unselectable","on").addClass(ht)),h(t)},d.prototype.W4=function(t){var n,e,i,r,o,o,n=this;n.a4=!1,n.rS=E.Zi.thumbPosition,n.aS=null,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),i=((e=n.y4)-n.m4())*n.k4,r=n.Gxn?P:B,o=(o=t.target.classList)&&o.contains(ct),n.h4||(r=G),o?n.qy(E.ScrollbarState.hide):n.qy(E.ScrollbarState.inactive),n.b4=i,n.O4.css(r,R(i)),n.h4&&n.O4.css(n.Gxn?B:P,"auto"),n.u2(),(0,O.GC$)(a.body).removeClass(ht),(0,O.GC$)(a.body).attr("unselectable")&&(0,O.GC$)(a.body).removeAttr("unselectable"),n.O4.removeClass(s),n.D4.removeClass(C),n.rS=6,n.D4.trigger(b,{newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS}),h(t)},d.prototype.K4=function(t){this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.J4=function(t){this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"),h(t)},d.prototype.eS=function(t){var n,e,i,e,i,n=this,e=n.Gxn;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=t.detail||t.wheelDelta/-40,e&&(i*=-1),e=i/3*n.iS()*n.k4,n.rS=0<=e?1:0,n.scrollTo(n.b4+e,!1),n.rS=6,i={newValue:n.y4,oldValue:n.y4,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS},n.D4.trigger(b,i),h(t)},d.prototype.q4=function(t){var e,i,r,o,a,u,s,c,f,e=this,i=!0,r=t.pageX,o=t.pageY,a=0,u=e.j4.offset(),s=e.cS(),c=e.Gxn;e.a4||null===e.c4&&(a=e.h4?r-u.left-(c?e.F4-e.b4-e.P4:e.b4):o-u.top-e.b4,(f=function(){var t=0,n=c?e.F4-e.b4-e.P4:e.b4,t;if((t=e.h4?r-u.left-n:o-u.top-n)*a<0||0<=t&&te.v4()&&(n.newValue=e.v4()),r=n.newValue,c=n.newValueWithOffset),f(c)&&(c=r),e.y4=r,5!==e.rS&&(t=(c-e.m4())*e.k4),e.b4=t,s||(e.O4.css(i,R(t)),e.h4&&e.O4.css(e.Gxn?B:P,"auto"))},d.prototype.hitTest=function(t,n){var e,i,r,o,a,u,s,c,f,u,o,f,a,e=this,i=0,r=0,o=e.O4.outerWidth(),a=e._4.outerWidth(),u=e.j4.outerWidth(),s=e.O4.offset(),c=(0,O.GC$)(e.oy()).offset(),f=s.left-c.left-18;return e.h4?t<0+u+a&&0+ar.leftWidth&&(o=t.leftWidth-i.left-e.innerWidth(),a.I0=nr.topHeight&&(o=t.topHeight-i.top-e.innerHeight(),a.A0=n>t/4).toString(16)})),n=32===t?n.split("-").join(""):n}},"./dist/core/worksheet/clipboardhelper.js":function(t,n,e){"use strict";var B,u,h,d,A,P,c,G,v,U,H,i,I,r;function o(t){return t&&t.options.allowCopyPasteExcelStyle}function g(t,n){var e,i;if(G.msie){for(e=[],i=0;i"===o.substring(o.length-4)?n+="\n"+r:n+=r;return n}function f(t,n,e){var i,r,i=-1;if(e)for(r=i=0;r]+>/g,G=B.mt.Tt,v=u.Common.lt.ht,U=u.Common.Uf.OS,H=null,s.prototype.add=function(t){var n=this.Nf,e=n.indexOf(t);return-1===e&&(n.push(t),e=n.length-1),e},s.prototype.toString=function(t){var t=this.Nf[t];return v(t)?"":this.Zc+":"+t},i=s,n.Boe=i,w.prototype.Loe=function(e){var i=this.joe;return this.Doe.map(function(t,n){return i[n].add(e[t])}).join("_")},w.prototype.add=function(t){var n=this.Nf,t=this.Loe(t);return n[t]||(n[t]="sjs"+this.Lre,this.Lre++),n[t]},w.prototype.toString=function(){var t,n,e,i,r,o,a,u,s,t=this.joe,n=[],e=this.Nf;for(i in e)if(e.hasOwnProperty(i)){for(r=i.split("_"),o=[],a=0;a\S+\r\n\r\n\r\n\r\n\r\n"),r=t.length,e+=n?'':'
',o=0;o",a=0;a"}return e+="
",i&&(e+="\r\n\r\n"),e},z.n5=function(t){return t&&0<=t.indexOf('gc-sjs-clipboard="true"')},z.vI=function(t,n,e,i,r,o,a){var u,s,c,i,r,f,l,l,l,o,l,u,o,s,n,l,u,u,u,u,c,u,u=z.convertVAlign,s=z.convertHAlign,c=z.convertLineBorder,i=i,r=r,f={},l=t.backColor;return l&&(f["background-color"]=l,r=i=!1),(l=t.foreColor)&&(f.color=l),(l=t.font)&&(o&&(l=l+", "+B.FallbackFontFamily),f.font=l.replace(/"/g,"'").replace(/([\.\d]+px)/,function(t){return(3*parseFloat(t.substring(0,t.length-2))/4).toFixed(2)+"pt"})),t.wordWrap?a?(f["word-wrap"]=["break-word"],f["white-space"]=["break-spaces"]):f["white-space"]="normal":f["white-space"]="nowrap",o=t.vAlign,v(o)||(f["vertical-align"]=u(o)),l=t.hAlign,v(l)||(u=s(l=a?B.mt.gt(l,n):l))&&(f["text-align"]=u),o="border-left",s="border-right",n="border-top",l="border-bottom",(u=t.borderLeft)&&(f[o]=c(u),r=!1),(u=t.borderRight)&&(f[s]=c(u),r=!1),(u=t.borderTop)&&(f[n]=c(u),i=!1),(u=t.borderBottom)&&(f[l]=c(u),i=!1),c="1px solid "+e,i&&(f[n]=c,f[l]=c),r&&(f[o]=c,f[s]=c),u=t.formatter,!a&&u&&(f["mso-number-format"]=b(u)),f},z.dge=function(t,n,e,i,r){var o,a,u,s,c,o=t.row===n&&t.col===e;if(i&&r){for(u=t.row;u"),k=(k=1==(1&j))||8==(8&j))&&(x+=""),(D=t?t.getText(M,T,o):"")?(" "!==D[0]&&" "!==D[D.length-1]||"number"!=typeof _||(D=D.trim()),"number"!=typeof _&&(D=P.j0(D).replace(f,l))):G.chrome?D="":G.safari&&(D=" "),x+=D=g?D:D.replace(/\n/g,'
'),s&&(k&&(x+="
"),A)&&(x+=""),C.push(x+="")}w.push(C)}return w},z.e5=function(t,n,e,i,r,o,a){var u,t,e,s,u="",t=f(t,e,r);return 0)/g,function(t,n,e,i){return"\n"!==i[e+t.length]?n+"\n":n}),i.innerHTML=g,m=i.innerText,0<=g.indexOf("',t.forEach(function(t,n){o+=h(t,r,r+(n+e))}),o+=""},e=0;e")},d="pasteOptions",v="operationOptions",g="skipBlanks",m="transpose",p="pasteLink",y=o.Ase,e(C,y),C.prototype.$c=function(t){this.Dn(),y.prototype.$c.call(this,t),this.q2e(),this.$2e()},C.prototype.rQ=function(t){this.submitCallback=t,this.$c()},C.prototype.npe=function(t,n){return this.Wc[0].querySelector('input[name="'.concat(t,'"][value="').concat(n,'"]'))},C.prototype.Dn=function(){this.Wc.html(this.ipe),this.npe(d,this.data.pasteOptions).checked=!0,this.X2e&&(this.npe(v,this.data.operationOptions).checked=!0)},C.prototype.$2e=function(){var t=this.Wc.width(),n=this.Wc.height(),e=this.Fc.width(),i=this.Fc.height();this.Wc.css(["position","left","top"],["absolute",(e-t)/2+"px",(i-n)/2+"px"])},Object.defineProperty(C.prototype,"ipe",{get:function(){return'\n
\n
\n '.concat(c().pasteSpecialOptionDialog.title,'\n \xd7\n
\n
\n
\n ').concat(c().pasteSpecialOptionDialog.paste,'\n
\n
\n
\n ').concat(M(f(),6,d),"\n
\n ").concat(this.X2e?'\n
\n '.concat(c().pasteSpecialOptionDialog.operation,'\n
\n
\n
\n ').concat(M(l(),3,v),"\n
\n "):"",'\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n
\n ")},enumerable:!1,configurable:!0}),C.prototype.submit=function(t){var t=t||this.data;this.submitCallback&&this.submitCallback(t),this.close()},C.prototype.rpe=function(t){var n,t,n,t=t.target.dataset.cmd;if(t)switch(t){case"close":this.close();break;case"submit":this.submit();break;case p:this.submit(r(r({},this.data),{pasteLink:!0}))}},C.prototype.ope=function(t){var t=t.target;t.name?(t.name===d&&t.checked&&(this.data.pasteOptions=+t.value),t.name===v&&t.checked&&(this.data.operationOptions=+t.value)):(t.id===g&&(this.data.skipBlanks=t.checked),t.id===m&&(this.data.transpose=t.checked)),this.ape()},C.prototype.q2e=function(){var n,t,e,i,r,n=this,t=function(t){n.rpe(t)},e=function(t){n.ope(t)},i=function(t){"Escape"!==t.key&&27!==t.keyCode||n.close(),"Enter"!==t.key&&13!==t.keyCode||n.submit()};this.Wc.bind("click",t),this.Wc.bind("change",e),document.addEventListener("keyup",i),r=this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")),this.wpt=function(){n.Wc.unbind("click",t),n.Wc.unbind("change",e),document.removeEventListener("keyup",i),r()}},C.prototype.close=function(){this.wpt&&this.wpt(),y.prototype.close.call(this)},C.prototype.ape=function(){var t,n,t,e,n;this.X2e&&(n=[(t=a.ClipboardPasteOptions).formatting,t.comments,t.validation],t=[t.all,t.noBorder],e=this.Wc[0].querySelectorAll("[name=".concat(v,"]")),n.includes(this.data.pasteOptions)?e.forEach(function(t){return t.disabled=!0}):e.forEach(function(t){return t.disabled=!1}),n=this.Wc[0].querySelector('[data-cmd="'.concat(p,'"]')),!t.includes(this.data.pasteOptions)||this.data.operationOptions!==a.PasteOperationOptions.none||this.data.skipBlanks||this.data.transpose?n.classList.add("disable"):n.classList.remove("disable"))},n.PasteSpecialDialog=C},"./dist/core/worksheet/style.js":function(L,t,n){"use strict";var a,r,u,s,b,c,o,i,n,f,w,l,y,M,h,d,n,v,g,m,p,C,S,T,F,B,P,G,U,H,z,V,Y,x,A,I,N,e,e,e;function Z(t){var n,e,n={};return t&&t.option&&t.option.dataSource?(e=t.option.dataSource,t.option.dataSource=M,(n=w(t)).option.dataSource=e,t.option.dataSource=e):n=w(t),n}function k(t,n,e){this.color=t||"black",this.style=n||0,this.level=e}function W(t){return!(!t||"object"!=typeof t||t.patternColor||t.stops)}function Q(t){return(!t||!t.stops)&&t&&t.type?{type:E(o.PatternType,t.type,M),patternColor:t.patternColor,backgroundColor:t.backgroundColor}:t}function j(t){return t?new x(t.color,E(V,t.style,M)):M}function J(t){var n,e,i,i,n=r.Formatter&&r.Formatter.GeneralFormatter;return n?((i=(e=t).typeName)?(i=s.getTypeFromString(i))&&(e=new i).fromJSON(t):e=new n(t.formatCached,t.customerCultureName),e):t}function K(t){return t&&"object"==typeof t?J(t):t}function X(t){var n,e,e,e;if(t){if(!(e=(n={checkbox:"5",combobox:"7",hyperlink:"8",radioButtonList:"11",checkboxList:"12",fileUpload:"19"})[t.type]))return ut(t,!0,void 0);if(e=c.ti[e])return(e=new e).Je(t),e}return t}function q(t){return t?{alignment:E(o.LabelAlignment,t.alignment,M),visibility:E(o.LabelVisibility,t.visibility,M),font:t.font,foreColor:t.foreColor,margin:t.margin}:M}function $(t){return t?{cornerFold:t.cornerFold,icons:t.icons&&0_(t)&&t.setRowCount(n+o),u.E5&&e+a>O(t)&&t.setColumnCount(e+a),f={},h=l=0;l=_(t))&&Gn("row",n,"-1",_(t)-1),(e<-1||e>=O(t))&&Gn("column",e,"-1",O(t)-1),I(i)||""===i||(-1===n&&(n=0),-1===e&&(e=0),(i=Wn(i,r,o,a,s,c))&&0=E(e)&&t.z5>=R(e))}function fe(t,n){var e,e,t,n;return!!t.endEdit()&&((e=t.rt).V5(),e.Y5(),T.hi.F1(k),e=!1,(t=t.parent)&&((n=n.call(t))&&n.focus?(n.focus(),e=!0):t.vC()),{ignoreCancelDefault:!e})}function f(t,n,e){var i=this;i.Mf=t,i.Z5=n,i.W5=e,i.Q5=[],i.K5=[],i.J5()}function le(n,t){var e,i,e=[];return"string"==typeof t?(i=(0,T._f)(n,t))&&e.push(i):Array.isArray(t)&&t.forEach(function(t){var t=(0,T._f)(n,t);t&&e.push(t)}),e}function he(t){return t instanceof P.Worksheet?t:t.Mf instanceof P.Worksheet?t.Mf:void 0}function de(t,n){I(t.Tb)&&(t.Tb=n.Tb,t.Ab=n.Ab)}function ve(t,n){var n=t.vw(n);-1!==n&&no.col)?D[tn]:D[lt]).execute(t,n)}},D[rn]={canUndo:!1,execute:function(t,n){var e,i,r,o,a,e=c(t,n),i=e.qA,r=e.getActiveColumnIndex();return e.F5=!0,o=e.sI(e.getActiveRowIndex(),r,!0,i),e.F5=!1,((a=!o||o.leadingCellRow>i||o.leadingCellRow===i&&rt&&(t=s.x),s.y>n)&&(n=s.y),o=o!==Y&&o!==Z?o:1){case 1:return new l(t,n,e,i,r,1,a,void 0,c);case 2:return new l(t,n,e,i,r,2,a,u,c);case 5:return new l(t,n,e,i,r,3,a,u,c);case 3:return new f(t,n,e,i,r,1,[3,1],a,void 0,c);case 9:return new f(t,n,e,i,r,1,[8,2,2,2],a,void 0,c);case 4:return new f(t,n,e,i,r,1,[2,2],a,void 0,c);case 11:return new f(t,n,e,i,r,1,[9,3,3,3,3,3],a,void 0,c);case 13:return new B(t,n,e,i,r,t!==e,[11,1,5,1],[10,2,4,2],a,c);case 10:return new f(t,n,e,i,r,2,[9,3,3,3],a,u,c);case 12:return new f(t,n,e,i,r,2,[9,3,3,3,3,3],a,u,c);case 8:return new f(t,n,e,i,r,2,[9,3],a,u,c);case 7:return new f(t,n,e,i,r,1,[1],a,void 0,c);case 6:return new P(t,n,e,i,r,a,c)}return Z}function A(){}function c(t,n,e,i,r){var o=this;o.Ux=!1,o.Hx=!1,o.Mf=t,o.nT=i,o.zx=n,o.Vx=e,o.JCe=new k.VisibleRowColCache(t),o.YAe=r}e=this&&this.__extends||(U=function(t,n){return(U=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}U(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Yx=t.Zx=void 0,I=n("./dist/core/worksheet/style.js"),i=n("./dist/core/util/domUtil.js"),V=n("./dist/core/core.enum.js"),N=n("Common"),k=n("./dist/core/worksheet/helpers/visible-row-col-cache.js"),Y=void 0,Z=null,j=Math.sqrt,v=Math.pow,D=Math.min,W=Math.abs,Q=Math.tan,J=Math.ceil,K=Math.PI,O=i.GC$.inherit,o=i.GC$.isEmptyObject,X=N.Common.lt.ht,g=w=0,m=y=1,p=M=2,b=C=3,S=4,T=5,x=6,F=7,r.prototype.Wx=function(t){var n=this;0===t._orientation?this.needRightToLeft?(t.Kx&&(n._x1-=t.Kx),t.Jx&&(n._x2-=t.Jx)):(t.Kx&&(n._x2+=t.Kx),t.Jx&&(n._x1+=t.Jx)):(t.Kx&&(n._y2+=t.Kx),t.Jx&&(n._y1+=t.Jx))},r.prototype._e=function(t){var n=this._x||"#9eb6ce",e=this.Ex,i=t.lineWidth,r=t.strokeStyle;i===e&&r===n||(i!==e&&(t.lineWidth=e),r!==n&&(t.strokeStyle=n)),this.Xx(t)},r.prototype.Xx=function(t){var n,e,i,e,i,n=this,e=n._x1===n._x2,i=n._y1===n._y2;e&&i||(e||i?(t.beginPath(),n.qx(t),t.stroke()):(t.save(),e=Math.min(n._x1,n._x2),i=Math.min(n._y1,n._y2),t.rect(e,i,Math.abs(n._x2-n._x1),Math.abs(n._y2-n._y1)),t.clip(),t.beginPath(),n.qx(t),t.stroke(),t.beginPath(),t.restore()))},r.prototype.qx=function(t){var n=this;t.moveTo(n._x1,n._y1),t.lineTo(n._x2,n._y2)},e(nt,H=n=r),l=nt,e(a,z=n),a.prototype.qx=function(t){var n=this;a.Dn(t,n._x1,n._y1,n._x2,n._y2,n.Ox)},a.Dn=function(t,n,e,i,r,o){var a,u,s,c,f,l,h,d,a=j(v(i-n,2)+v(r-e,2)),s=(i-n)/a,c=(r-e)/a,f=0,l=0;for(o=o&&o.length?o:[4,4];fo+1&&v.c>a+1);d++);l||t.VN(u,c,t.AN,!0),h||t.VN(s,f,t.IN,!1)}},c.prototype.JN=function(){for(var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C,S,T,x,A,I,N,k,j,D,_,y,t=this,n=t.Mf,e=n.Ut,i=t.MN,r=t.CN,o=i.length,a=r.length,l={},h={},u=0;u=r.row+r.rowCount&&n+i>=r.col+r.colCount||r.col>n+i||r.col+r.colCount-1n+i-1||r.col+r.colCount-1r.row))return!0}function ft(t,n){return t.tables&&t.tables.Uue(n)}function dt(t,n,e,i,r){return t.tables&&t.tables.oSt(n,e,i,r)}function lt(t,n,e,i,r){var o,n,a,o=n.rowCount,n=n.colCount,a=!1;return r===nt.InsertShiftCell.right?(n=1,i===t.col&&(a=!0)):(o=1,e===t.row&&(a=!0)),(-1===t.row||-1===t.col)&&t.intersect(e,i,o,n)&&!t.equals(new et.Range(e,i,o,n))&&!a}function j(t){return(t&nt.CopyToOptions.style)<=0}function E(t,n){var e,i,r,t,o,a,u,n,s,e,o,i,a,e=t.row,i=t.col,r=t.row+t.rowCount,t=t.col+t.colCount,o=n.row,a=n.col,u=n.row+n.rowCount,n=n.col+n.colCount,s;return R(e,o)<=c(r,u)&&R(i,a)<=c(t,n)&&(e=R(e,o),o=R(i,a),i=c(r,u)-e,a=c(t,n)-o,new et.Range(e,o,i,a))}function B(n,t){var e=[];return t.forEach(function(t){var t=E(n,t);t&&e.push(t)}),e}function P(t,n){t&&y&&t.suspendCalcService(n)}function G(t,n){t&&y&&t.resumeCalcService(n)}function F(t,n){return n===nt.ClipboardPasteOptions.formatting&&t.options.protectionOptions.formatCells}function V(t,n,e,i,r){t.ki("shiftCellsDown",{row:i,col:r,changedRowCount:i-n,changedColCount:r-e,srcRow:n,srcColumn:e},!0)}function tt(t,n,e,i){var t,e,i,r,o,a,u;n&&e&&i!==it&&(e=n.Ky,i=n.iw,r=n.Sx,o=n.Tx,a={showHeader:n.showHeader(),showFooter:n.showFooter(),useFooterDropDownList:n.useFooterDropDownList(),showResizeHandle:n.showResizeHandle()},u=n.style(),t.tables._Qt(n.name(),e,i,r,o,null!=(t=u.name())?t:u,a,!0),n.L0())}function vt(t,n,e,i,r,o){for(var a,u,s,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),u=t.tables&&t.tables.U3,s=t.pivotTables&&t.pivotTables.all(),c=0;c=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.row>n+i||f.row+f.rowCount-1n+i-1||f.row+f.rowCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.Ky>n+i||l.Ky+l.Sx-1n+i-1||l.Ky+l.Sx-1=f.row+f.rowCount&&e+r>=f.col+f.colCount||f.col>e+r||f.col+f.colCount-1e+r-1||f.col+f.colCount-1=l.Ky+l.Sx&&e+r>=l.iw+l.Tx||l.iw>e+r||l.iw+l.Tx-1e+r-1||l.iw+l.Tx-1l.Ky))return 1;if(s)for(c=0;c=(l=o[f]).row&&u<=l.row+l.rowCount-1&&s>=l.col&&s<=l.col+l.colCount-1)return!0;for(h=0;h=(d=a.get(h)).Ky&&u<=d.Ky+d.Sx-1&&s>=d.iw&&s<=d.iw+d.Tx-1)return!0}return!1}function H(t,n){var t;return null!=(t=t.getSpan(n.row,n.col))&&t.equals(n)}function z(t,n){var e,i,r,o,a,u,s;if(t&&1<(e=t.length)){for(i=void 0,i=0;iC.iw&&j=C.Ky&&hC.Ky+T)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!x&&t&&N=C.Ky&&v<=C.Ky+T&&k===C.Sx&&(O=j),$=b?k:C.Sx}}if(o||(a!==I&&-1!==a||!(u<=N)||C&&!b&&!E)&&ot(O)||(f?(e.col+=e.colCount,e.col=r.O5(e.col-1),Y=r.lT(e.col,e.colCount),e.colCount+=Y):e.col=e.col+(ot(O)?e.colCount:O),F=!0),h=r.getColumnCount()-e.colCount,v=e.colCount,f&&(W=r.lT(u,e.colCount),h=m-(v=(D=e.colCount+W)+r.ox(m-1,D)),F)&&(e.col+=W),(H=mt(r,l,h,d,v))&&!U&&(!t||o||!A||-1!==e.row))return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(J){if(M=void 0,h=u,v=w=j,_=!C||!A||x||st(n,m)||j<=C.iw,f&&(w+=M=r.lT(u,w),v+=M),!_&&C&&y&&(j=e.row+e.rowCount||K&&-1===e.row)&&(R=!0),!C&&A&<(e,n,a,u,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(NC.iw&&C.iw+S>j&&e.intersect(a,u,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};!_&&C&&0b.Ky&&b.showHeader(),o+uT+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+u,a,e.getColumnCount()-o-u,nt.CopyToOptions.all,!0):(e.addColumns(o,u),e.deleteColumns(e.getColumnCount()-u,u));V(e,r,o,r,o+u),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&(M||i.rowCount!==b.Sx&&!ct(i,e.getRowCount())||(b.showFooter()||y?(b.insertColumns(o-b.iw,i.colCount),m=!0):b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+u))))}else o+u>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+a,o,e.getRowCount()-r-a,u,!0))if(r+a=b.startRow()&&i.row<=b.endRow()?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(U=u,j=a+e.ox(e.getRowCount()-1,a,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+a,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,a),e.deleteRows(e.getRowCount()-a,a));else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0}else if(p)if(e.mT(r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,!0))if(o+i.colCount-(c&&!n&&this.kse&&-1===i.row?i.colCount:0)b.Ky&&b.showHeader(),d)if(H=i.rowCount,C=(E=i.colCount+e.lT(o,i.colCount))+e.ox(e.getColumnCount()-1,E),-1===r)-1!==i.row||n?e.moveTo(r,o,r,o+E,i.rowCount,e.getColumnCount()-o-C,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);else for(S=r;ST+1&&e.moveTo(T+1,o,T+1,o+i.colCount,i.rowCount-T-1,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0)):-1!==r||-1!==i.row||n?e.moveTo(r,o,r,o+i.colCount,i.rowCount,e.getColumnCount()-o-i.colCount,nt.CopyToOptions.all,!0):(e.addColumns(o,i.colCount),w=!0);V(e,r,o,r,o+i.colCount),(A=(x=e.rowFilter())&&x.range)&&-1===r&&1A.col&&o<=A.col+A.colCount-1&&(A.colCount=A.colCount+i.colCount),h&&b&&i.rowCount>b.Ky&&(M||i.rowCount!==b.Sx&&!ct(i,e.getRowCount())||(c||!b.showFooter()&&!y?b.K5t(new et.Range(b.Ky,b.iw,b.Sx,b.Tx+i.colCount)):(b.insertColumns(o-b.iw,i.colCount),m=!0)))}else o+i.colCount>e.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(e.mT(r+i.rowCount,o,e.getRowCount()-r-i.rowCount,i.colCount,!0))if(r+i.rowCount-(c&&!n&&this.kse&&-1===i.col?i.rowCount:0)b.iw&&(k=(N=b.dataRange()).col+N.colCount,(G=r===b.Ky)||(I=i.rowCount,0<(I=c&&(!g&&i.intersect(b.Ky,0,b.Sx,b.endColumn()+1)||new et.Range(b.Ky,0,b.Sx,b.endColumn()+1).containsRange(i))?i.row+i.rowCount-1-b.endRow():I)&&(s=b.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!Y(e,{row:i.row,col:k,rowCount:i.rowCount,colCount:i.colCount-k})||(m=!0)),d)if(z=i.colCount,j=(R=i.rowCount+e.lT(r,i.rowCount,!0))+e.ox(e.getRowCount()-1,R,!0),-1===o)-1!==i.col||n?e.moveTo(r,o,r+R,o,e.getRowCount()-r-j,i.colCount,nt.CopyToOptions.all,!0):(e.addRows(r,i.rowCount),w=!0);else for(D=o;De.getRowCount()&&(l=f=!0);else l=f=!0;return{ignoreTableExpand:m,ignoreTableFooterIndex:B,raiseInvalidOperation:f,returnFunc:l,isInsert:w}},ht.prototype.hx=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,s=u.changePasteDataRangeRowInvisibleCount,c=u.changePasteDataRangeColInvisibleCount,f=u.invisibleRowCountInAcRange,l=u.invisibleColCountInAcRange,h=this.tT.pasteExtent.targetRange;t&&(n.colCount-=c,n.col-=n.colCount,n.col-=l,h.colCount-=c),e&&(n.rowCount-=s,n.row-=n.rowCount,n.row-=f,h.rowCount-=s),i&&(n.colCount-=c,n.col-=o,n.col-=l,h.colCount-=c),r&&(n.rowCount-=s,n.row-=a,n.row-=f,h.rowCount-=s),u.changePasteDataRangeRowInvisibleCount=0,u.changePasteDataRangeColInvisibleCount=0,u.invisibleRowCountInAcRange=0,u.invisibleColCountInAcRange=0},ht.prototype.vx=function(t,n){var e=[].concat(n.parent.sheets);return t&&(t.NMi||t.isReportTemplateSheet)&&e.push(t),n&&n!==t&&(n.NMi||n.isReportTemplateSheet)&&e.push(n),e},ht.prototype.execute=function(){var t,t,n,e,i,r,o,a,u,s,c,f,L,l,l,t,h,d,h,d,h,v,g,m,p,b,d,t,w,F,B,P,G,h,y,M,C,U,H,S,S,T,S,T,S,x,A,z,I,N,k,V,Y,Z,j,W,D,Q,J,_,O,E,R,K,X,h,y,I,b,l,v,g,k,j,n=this;if(n.canExecute()&&(e=n.tT.fromSheet,i=n.tT.toSheet,r=n.tT.pasteExtent,o=n.tT.pasteOption,a=r.sourceRange,u=r.targetRange,s=r.isCutting,!e||!a||e.zT(a.row,a.col,a.rowCount,a.colCount,e.getRowCount(),e.getColumnCount()))&&i&&u&&i.HT(u.row,u.col,u.rowCount,u.colCount,!0)&&!(i.tables&&i.tables.mx(e,a,i,u,s)||i.pivotTables&&i.pivotTables.KYt(a,u,i))){if(e&&(L=e.ST(),c=n._shiftCells,f=n.fA)&&(l=f.row,t=f.col,h=f.rowCount,d=f.colCount,l=new et.Range(l,t,h,d),null!=(t=r.pasteSpecialOptions)&&t.transpose&&(h=f.row<0?0:f.row,d=f.col<0?0:f.col,f=new et.Range(h,d,f.colCount,f.rowCount)),null!=(t=r.pasteSpecialOptions))&&t.pasteLink&&(f=new et.Range(f.row,f.col,u.rowCount,u.colCount),h=e.getSpan(f.row,f.col))&&h.rowCount===a.rowCount&&h.colCount===a.colCount&&(f=new et.Range(f.row,f.col,1,1)),n.cA&&(v=n.cA.row,g=n.cA.col,m=n.cA.rowCount,p=n.cA.colCount),d=n.kse,t=i===e,h=at(i),y=G=P=B=F=!1,H=U=C=M=0,c!==it&&f){if(t&&s&&c===nt.InsertShiftCell.right&&ct(f,i.getRowCount())&&(w=ut(i,f))&&(S=ut(i,new et.Range(v,g,m,p)))&&S.name()===w.name()&&(n.tT.Hfe=w,i.tables.remove(w,1)),(S=this.ex(s,n.cA,f,c,i,e)).returnFunc)return void tt(i,w,s,c);F=S.changePasteDataRangeCol,B=S.changePasteDataRangeRow,M=S.changePasteDataRangeRowInvisibleCount,C=S.changePasteDataRangeColInvisibleCount,U=S.invisibleRowCountInAcRange,H=S.invisibleColCountInAcRange,P=S.changePasteDataRangeCols,G=S.changePasteDataRangeRows,y=S.moveRangeHaveValue,b=S.selectRange,m=n.cA.rowCount,p=n.cA.colCount,u.rowCount+=M,u.colCount+=C,T=S.adjustedTableRowCount,S=S.adjustedTableColCount,ot(T)||(u.row=0,u.rowCount=T),ot(S)||(u.col=0,u.colCount=S)}n.XI(),T=n.vx(e,i),q.Commands.II(T),i.suspendPaint(),i.suspendEvent(),S=!(i.QI=!0),e&&(e.suspendEvent(),e.QI=!0);try{if(h&&!(z=this.ype(e,i,a,u,v,g,c,y,l,w,s)))S=!0,x=1,A=rt().Exp_InvalidCopyPasteSize,I=i.U5(),u.colCount=I.colCount,u.rowCount=I.rowCount;else if((S=(N=c!==it&&this.fx(b,c,e,i,n.cA,l,v,g,m,p,n.px,s)).raiseInvalidOperation)&&(x=1,A=rt().Exp_InsertCopiedCutCellsNoRange),N.returnFunc)tt(i,w,s,c);else{if(a&&et.Be.Ll(e,a.row,a.col,a.row+a.rowCount-1,a.col+a.colCount-1),k=!a||-1!==a.col&&-1!==a.row,V=c!==it?!N.ignoreTableExpand:k)try{Y={shiftCells:n.bx&&c===nt.InsertShiftCell.down,isCopy:!s,isFirst:!1,isHeaderPaste:n.kse},Z=[],j=ot(N.ignoreTableFooterIndex)?0:N.ignoreTableFooterIndex,W=new et.Range(u.row,u.col,u.rowCount-j,u.colCount),i.tables&&i.tables.yx(e,W,a,$,$,$,{shiftInfo:Y,backupTableResizedArgs:Z}),this.tT.Kh.lCe=Z}catch(t){return S=!0,x=6,A=t.message,void tt(i,w,s,c)}D=f||a,Q=s&&c!==it&&(c===nt.InsertShiftCell.right&&(-1===D.row||D.row===u.row)||c===nt.InsertShiftCell.down&&(-1===D.col||D.col===u.col)),pt(e,f||a,i,u,J={isCutting:s,clipboardText:r.clipboardText,clipboardHtml:r.clipboardHtml,clipboardImage:r.clipboardImage,clipboardPasteOptions:o,ignoreFilteredOutRow:!r.includeFilteredOutRow,ignorePasteSkipInvisibleRange:!0===Q,pasteSpecialOptions:r.pasteSpecialOptions}),s&&c!==it&&(_=D.row,O=D.col,E=D.rowCount,R=D.colCount,K=u.row,X=u.col,c!==nt.InsertShiftCell.right||-1!==D.row&&D.row!==u.row||(t&&d&&O=o.col+o.colCount&&(d.colCount=d.colCount-o.colCount),p=m=g=v=0,n&&r&&(v=r.row<0?0:r.row,g=r.col<0?0:r.col,m=r.row<0?n.getRowCount():r.rowCount,p=r.col<0?n.getColumnCount():r.colCount),b=[],w=[],(y=t.tableNamesObj)&&(e&&y.r===u&&y.c===s&&y.rc===c&&y.cc===f&&(w=y.tableNames),n)&&y.r===v&&y.c===g&&y.rc===m&&y.cc===p&&(b=y.tableNames),M=t._shiftCells,e&&(C=a.Mx,q.Commands.SI(e,u,s,c,f,C?C.MI():[],3,b,!0,M)),i.isCutting&&n&&(S=a.wx,q.Commands.SI(n,v,g,m,p,S?S.MI():[],3,w,!0,M)),(T=t.tT.Hfe)&&tt(e,T,i.isCutting,M),(0,et.handleRestoredTableResizedArgs)(a.lCe)}finally{e.resumePaint()}}return!0},ht.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},N=ht,t.ClipboardPasteRangeUndoAction=N,D=r.ActionBase,e(o,D),o.prototype.execute=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,t=this,n=t.tT,e=n.cachedActions,i=!1;if(t.canExecute()&&e){o=(r=t.Mf).parent.jg(),t.X5(o,!0),a=r.parent.i4(),q.Commands.II(a);try{for(u=!1,s=n.fA&&(Array.isArray(n.fA)?n.fA:[n.fA]),c=0;c\r\n\r\n\x3c!--StartFragment--\x3e",b="\x3c!--EndFragment--\x3e\r\n\r\n",m.substr(0,p.length)===p&&m.substr(m.length-b.length,b.length)===b&&(m=m.substring(p.length,m.length-b.length)),et.mt.Qf())&&(w="",m.substr(0,w.length)===w)&&(m=m.substring(w.length,m.length)),!g&&d&&v&&(g=d.bT([v])),!m&&d&&v&&C(r)&&(m=d.MT([v])),y={sheet:r,sheetName:r.name(),cellRange:f.nx(),pasteOption:f.tT.pasteOption,pasteData:{text:g,html:m},shiftCells:n._shiftCells,fromSheet:d,fromRange:v,isCutting:!!h.isCutting,cancel:!1,action:h.isCutting?nt.ClipboardActionType.cut:nt.ClipboardActionType.copy},(M=l.clipboardImage)&&(y.pasteData.image=M),r.ki(et.Events.ClipboardPasting,y),y.cancel||(i=f.execute(),delete y.cancel,u=!0,r.ki(et.Events.ClipboardPasted,y))):i=f.execute();u&&t.Ax()}finally{q.Commands.xI(a,t.tT),t.q5(o,!0)}}return i},o.prototype.Ax=function(){var t,n,e,i,t,r,o,a,u,s,c,a,t=this,n=t.tT,e=n.cachedActions,i=t.Mf;if(i&&e){if(t=i.getSelections(),r=[],o=i.parent,i.IA(),n.hT)a=n.pastedRanges[0],i.n4(a.row,a.col,a.rowCount,a.colCount);else if(1i.col&&(i=o);return(0,et.Ec)(e.row,e.col,e.rowCount,i.col+i.colCount-e.col)}if(e.col===i.col&&e.colCount===i.colCount){for(r=0;ri.row&&(i=o);return(0,et.Ec)(e.row,e.col,i.row+i.rowCount-e.row,e.colCount)}}}return $},wT:function(t){var n,e,i,r,o,a,r,u,s,c,s,f,l,h,n=[],e=[];if(t&&1<(i=t.length)&&(r=t[0],o=t[i-1],a=r.row===o.row&&r.rowCount===o.rowCount,r=r.col===o.col&&r.colCount===o.colCount,a||r))for(t.sort(a?function(t,n){return t.col-n.col}:function(t,n){return t.row-n.row}),u=1;u=t.getFreeAreaColumnCount(m.SheetArea.rowHeader),s=o<0&&n.row>=t.getFreeAreaRowCount(m.SheetArea.colHeader),u||s)&&((u=t.getCellRect(n.row,n.col,o,a,{needAutoMerge:!0}))&&0=r.height-r.D6)&&(f=new w.Rect(u.x-2,u.y-2,u.width+4,u.height+4),s=void 0,s=o<0&&a<0?r.R1():o<0?r.L1(a):r.B1(o),f=f.getIntersectRect(s),e._6(f.x,f.y,f.width,f.height),i=jt(t,n))):n.cellTypeHitInfo&&n.cellTypeHitInfo.addRowColumnButtonHitInfo&&(f=void 0,1===(c=n.cellTypeHitInfo.addRowColumnButtonHitInfo).addRowColumnButtonType?f=r.XAe():2===c.addRowColumnButtonType&&(f=r.qAe()),e._6(f.x,f.y,f.width,f.height))),i}function D(t){return t.isEditing()}function _(t){return t.endEdit()}function _t(t){return t.frozenRowCount()}function Ot(t){return t.frozenColumnCount()}function O(t,n){return t.getRowCount(n)}function E(t,n){return t.getColumnCount(n)}function R(t){return t.rowViewportIndex}function L(t){return t.colViewportIndex}function F(t){return t.hitTestType}function Et(t){return t.getActiveRowIndex()}function Rt(t){return t.getActiveColumnIndex()}function l(t){return t.keyCode}function h(t){return t.ctrlKey}function B(t){return t.shiftKey}function Lt(t){return t.altKey}function Ft(t){return t.metaKey}function P(t){return t.colCount}function Bt(t){return t.rowCount}function G(t,n,e){return{action:t,index:n,sheetArea:e}}function Pt(t,n,e){return S===n.O5(t,e,!0)}function Gt(t,n,e){return S===n.j5(t,e,!0)}function Ut(t,n){return n?t.E6?t.startY-t.movingY:t.movingY-t.startY:t.j6||t.Gxn?t.startX-t.movingX:t.movingX-t.startX}function U(t,n,e,i,r,o,a){var n,r,n={sheet:t,sheetName:n,sheetArea:r,row:e,col:i},r=t.getCellType(e,i);return r&&(n=r.lfe(n,a)),o&&(n.cancel=!1),n}function Ht(t,n,e,i,r,o){var a,u,a=t.Mf,u=U(a,a.name(),a.ui,a.ci,M,!0);if(a.ki(w.Events.LeaveCell,u),u&&!0===u.cancel)return!0;a.O6(n,e,i,r,o),a.ki(w.Events.EnterCell,U(a,a.name(),n,e)),a.ki(w.Events.EnterCellInternal,U(a,a.name(),n,e,M,M,w.Events.EnterCellInternal)),t.PA&&t.PA(n,e)}function zt(t,n,e,i,r,o,a){var u,n,s,u=t.Mf,n=n.call(u,o.sheetArea);return(a&&!u.getRowVisible(o.index,o.sheetArea)||!a&&!u.getColumnVisible(o.index,o.sheetArea))&&(o.index=e.call(t,o.index,o.sheetArea)),s=(s=i.call(n,o.index))||i.call(n,r)}function Vt(t,n,e,i,r){var o,a,u,n,e,o=i?"movingY":"movingX",a=i?"startY":"startX";t[o]=n,(u=t.j6||t.Gxn||t.E6?t[o]>t[a]:t[o]n&&!e&&(t[o]=n),r!==S&&t[o]>t[a]+r&&(t[o]=t[a]+r)}function Yt(t,n){var e,e,e=t.Fi();return 0<_t(t)&&ne.Ay?2:t.FCn&&(e=t.dw(3))&&e.findY(n)?3:1}function Zt(t,n){var e=t.Fi();return 0e.Hy&&n=(n=r.Fi()).x&&e>=n.y&&(r.sw=o,!h.r))if(i.ab=!0,o.tableSelectInfo&&!r.Nde)i.mk(o,r);else if(o.resizeInfo)(hn(r)||_(r))&&i.gk(o);else if(o.dragHeaderToMoveInfo)(hn(r)||_(r))&&i.FTe&&i.FTe(o);else if(o.dragMergeInfo)_(r)&&i.pk&&i.pk(o);else if(s&&s.side&&s.side!==wt)_(r)&&(i.bk&&i.bk(o),i.yk(t));else if(s&&s.side===wt)_(r)&&i.wk&&i.wk(o);else if(o.filterButtonHitInfo)_(r);else{if(c)return c.inBorder?(i.Mk(o),!0):c.inTopLeft||c.inTopRight||c.inBottomLeft||c.inBottomRight?(i.Ck(o),!0):void 0;if(l)i.Sk&&i.Sk(o);else if(r.JA(R(o)<0?-1:a,L(o)<0?-1:u)){if(e=r.Nde,o.tableSelectInfo&&e?(n=this.Tk(o,r),o.tableSelectInfo.tableSelection=n,e.Ak(n)):e&&e.Hce(),i.Ik&&i.Ik(r,o))return!0;if(h=Et(r),s=Rt(r),f){if(c=gn(r,f,o),i.xk(c,f)&&(l=f.sheetArea,y(l)||3===l)&&(a!==h||u!==s)){r.suspendPaint();try{if(!_(r))return;if(d=U(r,r.name(),h,s,M,!0),r.ki(w.Events.LeaveCell,d),d&&!0===d.cancel)return;(v="number"==typeof(null==o?void 0:o.rowSpacingIndex))||(g=r.Ut.getSelections(),m=r.Ut.getSpan(a,u),p=[new w.Range(m.row,m.col,m.rowCount,m.colCount)],r.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),r.EA(g,p),r.t4(a,u,M,M,1),r.ki(w.Events.EnterCell,U(r,r.name(),a,u)),r.ki(w.Events.EnterCellInternal,U(r,r.name(),a,u)),r.jA(g),r.Nk=!0,i.PA&&i.PA(a,u))}finally{r.resumePaint()}}c.processCellAndPaddingMouseDown(f)}if(f&&f.isReservedLocation)return!0;i.yk(t),i.kk(r,o,a,u)}}},i.prototype.kk=function(t,n,e,i){var r,e,i,r=this;try{if(r.Dk=n,D(t)&&!_(t))return}finally{r.Dk=S}y(e)||y(i)||(3===F(n)&&r.PA&&r.PA(e,i),t.ki(w.Events.FloatingElementSelected,{type:"worksheet"}),e=t.Ut.getSelections(),r._k(n,e),i=t.Ut.getSelections(),t.EA(e,i))},i.prototype.xk=function(t,n){return t&&n&&n.isReservedLocation&&(!t.activeOnClick||t.activeOnClick())},i.prototype.Ek=function(t){var n,e,n=this.Mf;return!n||(e=n.Fi(),y(t.x))||y(t.y)||y(t.width)||y(t.height)||t.x+t.width>e.Py+n.Gy(e)+e.zy||t.y+t.height>e.Cy+n.Sy(e)+e.Iy},i.prototype.jk=function(t,n,e,i,r){for(var o,a,u,s,c,f,r,r,l,o=this.Mf,u=0,s=t.options,c=s.length;u=a.Cy+r.Sy(a)))&&r.$A(s):o>_t(r)&&r.$A(r.nI(o))),n.Pk()},i.prototype.Fk=function(t){var n,e,i,r,o,a,u,s,c,t,u,o,n=this,e;n.i9()||(i=n.Mf,o=(r=n.Rk).r9,a=i.getViewportLeftColumn(o),u=i.getViewportRightColumn(o),c=(s=i.bge())===a?a:i.O5(a),t?(u=u.Py+i.Gy(u)))&&i.o9(c):a>Ot(i)&&i.o9(i.r6(a))),n.Pk()},i.prototype.n9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.Fi(),e=_t(t),i=t.frozenTrailingRowCount(),r=this.fk,o=this.Rk,a=o.e9;if(0===a){if(r.y>n.Cy)return t.$A(t.pw()),o.e9=1,!0}else if(1===a){if((u=t._y(1))&&0n.Ay&&s.row>=t.P6()&&s.y+s.height<=n.Ay)return o.e9=2,!0}}else if(2===a&&(u=t._y(1))&&0n.Ay){for(c=t.Sy(n),l=0,h=f=O(t)-i-1;e<=h;h--)if(c<(l+=t.Gt(h))){f=A(h+1,f);break}t.$A(t.j5(f-1))}return o.e9=1,!0}return!1},i.prototype.i9=function(){var t,n,e,i,r,o,a,u,s,c,f,l,h,t=this.Mf,n=t.frozenTrailingColumnCount(),e=Ot(t),i=t.Fi(),r=this.fk,o=this.Rk,a=o.r9;if(0===a){if(r.x>i.Py)return t.o9(t.Sw()),o.r9=1,!0}else if(1===a){if((u=t.Yy(1))&&0i.Hy&&s.col>=t.G6()&&s.x+s.width<=i.Hy)return o.r9=2,!0}}else if(2===a&&(u=t.Yy(1))&&0i.Hy){for(c=t.Gy(i),l=0,h=f=E(t)-n-1;e<=h;h--)if(c<(l+=t.nn(h))){f=A(h+1,f);break}t.o9(t.O5(f-1))}return o.r9=1,!0}return!1},i.prototype.a9=function(){var t,n,e,i,r,i,o,a,u,u,r,e,i,n,s,t=this;(t.rb||t.u9||t.s9)&&(e=(n=t.Mf).Fi(),i=t.Rk,y(i)||(r=i.e9,i=i.r9,o=t.fk,a=S,0<=r&&0<=i?(a=e.c9(r,i),0===r&&n.Tb===n.frozenRowCount()&&(u=e.c9(1,i),a.height+=u.height),0===i&&n.Ab===n.frozenColumnCount()&&(u=e.c9(r,1),a.width+=u.width)):0<=r?a=e.B1(r):0<=i&&(a=e.L1(i)),a&&(r=(u=n.parent)&&u.options.scrollbarAppearance===m.ScrollbarAppearance.mobile,i=e=0,s=n=!1,o.x<=a.x?(e=o.x-a.x,r&&(s=!0)):o.x>=a.x+a.width?(0===(e=o.x-(a.x+a.width))&&(e=50),r&&(s=!0)):r&&o.x===a.x+a.width-1&&(e=50,s=!0),o.y<=a.y?(i=o.y-a.y,r&&(n=!0)):o.y>=a.y+a.height&&(i=o.y-(a.y+a.height),r)&&(n=!0),u&&r&&(n&&(u.Xb.qy(m.ScrollbarState.show),u.ib.$y(!0)),s)&&(u.zb.qy(m.ScrollbarState.show),u.ib.$y(!1)),t.lk().ik(t.f9(e)),t.hk().ik(t.f9(i)))))},i.prototype.l9=function(){this.lk().rk(),this.hk().rk()},i.prototype.gk=function(t){var n,e,i,r,o,o,e,o,i,t,n=this,e=s.h9.prototype,i=n.Mf,r=t.resizeInfo;r.action===k||r.action===N?(o=zt(n,i.d9,n.v9,e.findRow,t.row,r,!0),r.startY=o.y+(r.E6?o.height:0)):(o=zt(n,i.m9,n.g9,e.findCol,t.col,r,!1),r.startX=o.x+(r.j6||r.Gxn?o.width:0)),e=i.parent,o=t.x,i=t.y,!e||(1!==(t=e.options.showResizeTip)||r.action!==j&&r.action!==yt)&&(2!==t||r.action!==k&&r.action!==N)&&3!==t||(i-30<0?i+=15:i-=30,e.Tw(Y.j0(n.p9()),o,i)),n.isResizing=!0,n.rb=!0,n.ctrl&&(n.b9=!0)},i.prototype.y9=function(){var t,n,e,i,r,o,r,a,u,s,e,r,s,t=this,n=t.Mf,e=n.sw,i=e.resizeInfo,r=t.fk,o=r.x,r=r.y,a=n.Fi(),u=n.parent,s=i.sheetArea;i&&t.rb&&t.isResizing&&(e.x===o&&e.y===r||(i.action===k||i.action===N?cn(n,i,s,r,t.b9):fn(n,i,s,o,t.b9),r=(e=n.Dn).J(),e.FA(a.x,a.y,a.width,a.height),e.jy(r),!u)||(1!==(s=u.options.showResizeTip)||i.action!==j&&i.action!==yt)&&(2!==s||i.action!==k&&i.action!==N)&&3!==s||u.ny(t.w9(i)))},i.prototype.C9=function(){var t,n,e,i,r,o,a,i,u,s,i,u,i,t=this;t.isResizing=!1,n=!(t.rb=!1),i=(e=t.Mf).sw,(r=i.resizeInfo)&&(t.iy(),r.action===k||r.action===N?y(r.movingY)?n=!1:(o=x(0,Ut(r,!0)/e.zoom()),a=[],i="resizeRow",e.S9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.col&&(1===r.sheetArea?a.push({firstRow:r.index,lastRow:r.index}):(n=e.JS(n),a.push({firstRow:n.row,lastRow:n.row+Bt(n)-1})))}):a.push({firstRow:r.index,lastRow:r.index}),rn(e,r,a,t.b9)&&(i="splitResizeRow"),u=1===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),rows:a,size:o,columnHeader:u})):y(r.movingX)?n=!1:(o=x(0,Ut(r)/e.zoom()),s=[],i="resizeColumn",e.T9(r.index)?d.GC$.each(e.Ut.getSelections(),function(t,n){var n;-1===n.row&&(n=e.JS(n),2===r.sheetArea?s.push({firstCol:r.index,lastCol:r.index}):s.push({firstCol:n.col,lastCol:n.col+P(n)-1}))}):s.push({firstCol:r.index,lastCol:r.index}),sn(e,r,s,t.b9)&&(i="splitResizeColumn"),u=2===r.sheetArea,e.Qy().execute({cmd:i,sheetName:e.name(),columns:s,size:o,rowHeader:u})),(i=e.hitTest(t.fk.x,t.fk.y))&&t.cw(i),n||e.repaint(),t.b9=!1)},i.prototype.A9=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,d,c,e=0,i=0,r=0,o=0,a=this,u=a.Mf,s=u.H3,c=_t(u),f=Ot(u),h=F(t),d=1===h&&u.NMi&&u.NMi.options.isDesignMode&&t.rowt.pw()||2===n&&e<2&&0t.Sw()||2===n&&e<2&&0=r?r-1:a.row}else if(a=Wt(i,n=this.nD(),o)){if(e=i.Fi(),r=a.row,1===n&&oe.Ay&&r>i.getLastFullyVisibleRow()?i.nI(r)||r:r}return-1},i.prototype.K9=function(t,n,e){var i,r,o,a,u,r,n,e,r,u;if(void 0===n&&(n=m.SheetArea.viewport),r=(i=this.Mf).Ut,o=i.options.rightToLeft,a=this.fk.x,n===m.SheetArea.rowHeader){if(u=Kt(i,a))return r=r.getFreeAreaColumnCount(n),e&&0=r?r-1:u.col}else if(u=Jt(i,n=this.eD(),a)){if(e=i.Fi(),r=u.col,1===n&&ae.BA:ae.Hy&&r>i.getLastFullyVisibleColumn()?i.r6(r)||r:r}return-1},i.prototype.f9=function(t){var n,e,n=0;return T(t)||0===t||(e=t<0,n=it(500/I(t)),200<(n=x(20,10*n))&&(n=200),e&&(n=-n)),n},i.prototype.v9=function(t,n){var e,n=this.Mf.nI(t,n);return n!==S?n:t},i.prototype.g9=function(t,n){var e,n=this.Mf.r6(t,n);return n!==S?n:t},i.prototype.oD=function(t,n,e){for(var i=this.Mf;n=o.getFreeAreaRowCount(m.SheetArea.colHeader)?c=(c=r.dD(o,t,i,1,n))||r.cD(o,t,i,1,e):0<=R(t)&&L(t)<0&&u&&t.col>=o.getFreeAreaRowCount(m.SheetArea.rowHeader)?c=(c=r.cD(o,t,i,2,e))||r.dD(o,t,i,2,n):R(t)<0&&L(t)<0?o.P6(2)===S&&I(e-a.qC)<=i?(h=o._y(1))&&0=a.x)return!0}else if(a.contains(e,i))return!0;if(1===t)if((u=r._y(t))&&0(1=c.x&&a.y>=c.y+c.qC&&a.x+a.width<=c.Py&&a.y+a.height<=c.Ay+c.Iy:t===m.SheetArea.colHeader?e=a.x>=c.x+c.XC&&a.y>=c.y&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Cy:t===m.SheetArea.viewport&&(e=l?a.x>=c.x&&a.y>=c.T6&&a.x+a.width<=c.BA&&a.y+a.height<=c.Ay+c.Iy:a.x>=c.b6&&a.y>=c.T6&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Ay+c.Iy),a&&0=I(r)?r=0:i=0),a&&(i=(s=f.wge(i,r,1)).detailY,r=s.detailX)):(a=t.wheelDeltaY,c=t.wheelDeltaX,e||(I(a)>=I(c)?c=0:a=0),(g.safari||g.chrome)&&(u=g.safari?-4:-40,i=(s=f.wge(a,c,u)).detailY,r=s.detailX)),(0!==i||0!==r)&&(e=f.parent.ib.Mg(f,t,et(i,10)||0,et(r,10)||0),n.iy(),!!e)&&void 0},f.G_=function(t){var n={e:t,r:S};if(b.Worksheet.et(f,"preProcessMouseOut",n),!n.r)return i.yg(t)},f.U_=function(t){var n,e,e,n=f.sw,e={e:t,r:S,target:n};b.Worksheet.et(f,"preProcessMouseDbClick",e),e.r||n&&(e=!1,3===F(n)?r(i,t):e=i.j_(n),e||f.ki(w.Events.CellDoubleClick,U(f,f.name(),n.row,n.col,F(n))))},n=i.tk,t.bind(Q+"."+n,function(t){return f.B_(t)}).bind(J+"."+n,function(t){return f.F_(t)}).bind(K+"."+n,function(t){return f.L_(t)}).bind(X+"."+n,function(t){return f.P_(t)}).bind(tt+"."+n,function(t){return f.G_(t)}).bind(nt+"."+n,function(t){return f.U_(t)}),g.mozilla)&&(e="onwheel"in document?$:q,t.bind(e+"."+n,function(t){return f.P_(t)}))}}),t.Hv.ch("worksheet-event",{preProcessMouseMove:function(t){var n,n,n=this.Vv.getActiveSheet();n&&(n=n.rt)&&n.ab&&n.rb&&n.isResizing&&(n.pg(t.e),t.r=!1)}})},"./dist/core/worksheet/worksheet-formatter.js":function(t,n,u){"use strict";var e,i,r,o,a,l,s,h,c,d,v,g;function f(t,n,e,i,r){var o,n,a,o=n.getRange(e,i);if(n.source&&(t=n.source.Mf),n=o.row,a=o.col,r)if(1===o.rowCount)a=i;else{if(1!==o.colCount)return d;n=e}return m(t,n,a)}function m(t,n,e){var i,r,o,r,t,r;return t&&t.getFormatter?(i=t.getFormatter(n,e))&&"General"!==i?y(i,function(t,n){return a.Be.Re(t,n)}):(r=t.getStyle(n,e),(o=r&&r._autoFormatter)?y(o.formatCached,function(t,n){return o.format(t)}):(t=(r=t.pivotTables)&&r.findPivotTable(n,e))&&(i=(r=t.hqt(n,e))&&r.formatter)?y(i,function(t,n){return a.Be.Re(t,n)}):d):d}function p(t,n){var n=s(t,"E")&&n(1,t);return n&&s(n,"E")}function b(t,n){var n=n(123,t);return s(n,"123")&&0<(n=n.replace(/[1230. ]+/g,"")).length}function w(t,n){var n;if(t=t.replace("DBNum",""),e.Common.$T.qT("[mMdDyYhHseg]").test(t))return n=n(123,t),!s(n,"123")}function y(t,n){var e,i,r,o;if("string"!=typeof t||"="===t[0])return d;if(e={f:t},w(t,n)){if(i=n(44955,t),r=n(44955.11,t),o=n(45323,t),i!==r)return e.t=i===o?6:8,e;if(i!==o)return e.t=7,e}if(s(t,"%"))e.t=0;else if(s(t,"/"))e.t=4;else if(p(t,n))e.t=3;else if(b(t,n))e.t=5;else if(s(t,"0")||s(t,"DBNum",!0))e.t=2;else if(s(t,"GENERAL",!0))e.t=1;else{if(!s(t,"@"))return d;e.t=9}return e}function M(t,n,e,i,r){var e,t,e=e.value;if(e&&2===e.type)return{f:"0.00%",t:0};if(e&&9===e.type)if(0===e.operatorType||1===e.operatorType){if(e.value&&2===e.value.type)return{f:"0.00%",t:0}}else if(2===e.operatorType)return(t=M(t,n,e,i,r))&&0===t.t&&(t.f=t.f.replace("%","00%")),t;return d}function C(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);if(7===o.t||8===o.t){if(7===t.t||8===t.t)return d;if(6===t.t)return 8===o.t?o:{f:o.f+" "+t.f,t:8}}else if(6===o.t){if(8===t.t)return t;if(7===t.t)return{f:t.f+" "+o.f,t:8}}return 0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:1!==o.t?o:t}function S(t,n,e,i,r){var o,t,o=x(t,n,e.value,i,r),t=x(t,n,e.value2,i,r);return 9===o.t?o:9===t.t?t:5<=o.t?5<=t.t?d:o:5<=t.t?t:3===o.t?o:3===t.t?t:4===o.t?o:4===t.t?t:2!==o.t&&1!==o.t&&2!==t.t&&1!==t.t&&0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:d}function T(t,n,e,i,r){var o,a,u,s,c,f,o=e.functionName&&e.functionName.toUpperCase(),a=g[o];if(l(v[o]))return"number"==typeof a?x(t,n,f=e.arguments[a],i,r):a?a(t,n,e,i,r):d;switch(v[o]){case 6:u="H:mm:ss";break;case 7:u=h.Fe().DateTimeFormat.shortDatePattern||"M/d/yyyy";break;case 8:u=h.Fe().DateTimeFormat.defaultDatePattern||"M/d/yyyy H:mm:ss";break;case 0:u="0.00%";break;case 5:s=h.Fe().NumberFormat.currencySymbol||"$",u=(c=h.Fe().predefinedFormats.Currency)&&c[c.length-1]||"".concat(s,"#,##0.00_);[Red](").concat(s,"#,##0.00)")}return{f:u,t:v[o]}}function x(t,n,e,i,r){if(e)if(9===e.type){if(2===e.operatorType)return M(t,n,e,i,r);if(3===e.operatorType||4===e.operatorType)return C(t,n,e,i,r);if(5===e.operatorType||6===e.operatorType||7===e.operatorType)return S(t,n,e,i,r);if(0===e.operatorType||1===e.operatorType)return x(t,n,e.value,i,r)}else{if(1===e.type||13===e.type||22===e.type)return f(t,e,i,r);if(7===e.type)return T(t,n,e,i,r);if(10===e.type)return x(t,n,e.value,i,r)}return d}function A(t,n,e,i,r){var o=t.getFormatter(i,r);(!o||o.toUpperCase&&"GENERAL"===o.toUpperCase())&&(e=t.oMt.Fyt(i,r)||e,I(t,i,r,x(t,n,e,i,r)))}function I(t,n,e,i){var r=t.Z_(n,e)||new o.Style;(i="string"==typeof i?y(i,function(t,n){return a.Be.Re(t,n)}):i)&&1!==i.t?r._autoFormatter=new c(i.f):delete r._autoFormatter,delete r.formatter,t.setStyle(n,e,r)}Object.defineProperty(n,"__esModule",{value:!0}),n.Ffe=n.Fue=n.Pue=void 0,e=u("Common"),i=u("./dist/core/util/domUtil.js"),r=u("./dist/core/worksheet/worksheet.js"),o=u("./dist/core/worksheet/style.js"),a=u("./dist/core/util/common.js"),l=e.Common.lt.ht,s=e.Common.zf.OS,h=e.Common.CultureManager,c=e.Formatter&&e.Formatter.GeneralFormatter,d={t:1},i.GC$.extend(r.Worksheet.prototype,{getFormatter:function(t,n,e){return this.l0(t,n,"formatter",e)},setFormatter:function(t,n,e,i){var r=this.Z_(t,n,i),r;(r=r||new o.Style).formatter=e,this.setStyle(t,n,r,i)}}),r.Worksheet.ch("formatter",{settingText:function(t){var n,n,n=a.util.Kf(t.value);c&&n&&(n={},(new c).getPreferredDisplayFormatter(t.value,n),"number"==typeof n.value)&&(t.value=n.value)}}),v={NOW:8,TODAY:7,TIME:6,DATE:7,IRR:0,XIRR:0,MIRR:0,RATE:0,YIELD:0,INTRATE:0,NPV:5,XNPV:5},(g={SUM:0,MAX:0,MIN:0,AVEDEV:0,FLOOR:0,ROUND:0,ROUNDUP:0,ROUNDDOWN:0,INT:0,TRUNC:0}).SINGLE=g["@"]=function(t,n,e,i,r){var e=e.arguments[0];return!e||1!==e.type&&13!==e.type?d:f(t,e,i,r,!0)},g.INDIRECT=g.OFFSET=g.INDEX=function(i,t,n,r,o){var e,a,e=u("SheetsCalc"),a=d;return e&&(n.Gue=function(t,n,e){a=l(n)?f(i,t,r,o):m(e&&e.Mf||i,t,n)},e.evaluateExpression(i,n,r,o)),a},n.Pue=x,n.Fue=A,n.Ffe=I},"./dist/core/worksheet/worksheet-json.js":function(i,t,n){"use strict";var t,Z,W,Q,st,J,ct,y,ft,r,lt,e,ht,p,n,dt,n,u,C,o,Ct,a,K,X,vt,q,gt,S,$,mt,St,l,h,s,d,Tt,w,j,D,c,v,xt,N,_,pt,g,M,T,k,f,At,It,Nt,m,b,kt,jt,Dt,x,rt,tt,nt,bt,wt,A,I,yt,n;function Mt(t,n){return mt(t)?n:mt(n)?t:Math.max(t,n)}function O(t,n,e,i){var t,t;t.dataTable&&(n.dataTable||(n.dataTable={}),t=t.dataTable[e])&&(n.dataTable[e]||(n.dataTable[e]={}),t=t[i])&&(n.dataTable[e][i]||(n.dataTable[e][i]={}),t.formula)&&(n.dataTable[e][i].formula=t.formula)}function ot(t,n,e,i,r){var o,a,u,s,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),u=o.W_(ft.SheetArea.colHeader),s=o.Q_(!0),c=o.Q_(!0,ft.SheetArea.colHeader),f=o.K_(),l=o.K_(ft.SheetArea.colHeader),h=a.getColumnCount();for(!r&&mt(n.colHeaderData)?n.colHeaderData={}:o.ap=e,u.setRowCount(e),d=0;d=+(o=a[i]).min&&t<=+o.max){n=o,e=i;break}return{colItem:n,colItemIndex:e}},o=function(t){var t=r(t),n=t.colItem,t=t.colItemIndex;if(n)return i(n,t)},s=n.col,c=n.col+n.colCount;su.maxCol?o(s+1):u)&<.Util.cme(t,e,s,u.columnSize,u.hidden,u.colStyle)}function Y(t,n){var n,e,i,n=w(n,m);n&&(e=t.spanModels[3],(i=n.c_).forEach(function(t){var t=N(t.ref);e.find(t.row,t.col)||e.add(t)}))}function _t(t,o,a){var n,u;if(0=v.col&&s.col<=v.col+v.colCount-1&&s.row>=v.row&&s.row<=v.row+v.rowCount-1&&(l=c);if(l<0&&0t+e)||-1!==n&&(a.coln+i)))return!0;return!1},n.prototype.eE=function(t,n,e,i){for(var r,o,a,u,r=!1,o=this.spans,a=0,u=o.length;a=this.startColumn&&t<=this.endColumn},g.Q8=Qt,e.prototype.getProperty=function(t){return this[t]},e.prototype.setProperty=function(t,n,e){e&&(e[0].push(t),e[1]=this[t],e[2]=n),this[t]=n},e.prototype.clear=function(t){t&&(t.push(["selections",this.get()]),t.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=[],this.activeSelectedRangeIndex=-1},e.prototype.add=function(t,n,e,i,r,o){r&&(r.push(["selections",this.get()]),r.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex]));var r=this,a=r.selectionPolicy,u=r.selectionUnit;0===a?(e=T(e,1),i=T(i,1),r.clear()):1===a&&r.clear(),1===u?i=n=-1:2===u&&(e=t=-1),r.selections.push((0,it.Ec)(t,n,e,i)),!1!==o&&(r.activeSelectedRangeIndex=r.selections.length-1)},e.prototype.get=function(){return[].concat(this.selections)},e.prototype.set=function(t,n){n&&(n.push(["selections",this.get()]),n.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=t,this.activeSelectedRangeIndex>=t.length&&(this.activeSelectedRangeIndex=0)},e.prototype.toJSON=function(){var t,n,e,i,r,o,a,t=this,n={},e=t.selectionPolicy,i=t.selectionUnit,r=t.activeSelectedRangeIndex,o=t.selections.length;for(2!==e&&(n.selectionPolicy=e),0!==i&&(n.selectionUnit=i),0!==r&&(n.activeSelectedRangeIndex=r),n.length=o,a=0;ae&&(e=o.height,i=r);return q(i)&&this[i]},i.prototype.findLargestCol=function(t){var n,e,i,r,o,n=this.length;if(0===n)return at;for(r=e=0;re&&(e=o.width,i=r);return q(i)&&this[i]},i.prototype.findLargestRange=function(t,n){var e,i,r,o,a,u,s,c,f,l,e=this.length;if(0===e)return at;for(i=t.row,r=t.col,o=t.rowCount,a=t.colCount,c=s=0;cs&&(s=l.height,u=c);else for(f=t.col;fs&&(s=l.width,u=c);return q(u)&&this[u]},i.prototype.findX=function(t,n){return Kt(this,ut,ut,t,ut,n)},i.prototype.findY=function(t){return Kt(this,ut,ut,ut,t)},i.prototype.findNearX=function(t,n){return Xt(this,t,ut,n)},i.prototype.findNearY=function(t,n){return Xt(this,ut,t,n)},i.prototype.findXByExactY=function(t,n,e){var i,t,r,o,a,u,i=this.findX(t,!0);if(!Array.isArray(i))return i;for(t=i.length,r=e.y,o=e.height,a=t-1;0<=a;a--)if(n>r+(u=i[a]).y*o)return u},g.h9=i,qt.prototype.contains=function(t,n){var e=this;return tr.I8&&(r.I8=n),o},o.prototype.CE=function(t,n,e,i){var r,o;if(t)return r=this,o=t[n],e&&(o=o||(t[n]={}),!i)&&r.x8=a&&w.push(g)))}return w},e.prototype.C7=function(t,n){var e,i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,f,y,M,C,e=this,i=e.Mf,r=i.Jt,o=e.Vx;if(0===o.length)return[];for(a=o[0].col,u=o[o.length-1].col,s=i.Ut,m=i.getColumnCount(),y=[],n=n||nt.q.J(),M=i.options.rightToLeft,C=1;C<100;C++){if(m<=(p=u+C))return y;if(s.findSpan(t,p)||i.Cb&&i.Cb.D7(t,p,bt.SheetArea.viewport))return y;f=r.$t(t,p,3,1),0<(l=r.Kt(p))&&!Mt(f)&&(4!==(d=(c=r.o2e(t,p)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=S(d,f,Ct,c.textOrientation)),h=r.Gt(t),v=c.cellType||e.f7,w=nt.Be.Cl(i,c,f,g={},{row:t,col:p,sheet:i}),f={data:f,style:c,width:l,text:w=g.content&&0=l+h))for(y=0,M=(w=r.gO(e)).length;yv+m&&(T=0,A=v+m),t.moveTo(x+S-1,c-1),t.lineTo(A+T,c-1),t.stroke());if(I=o.frozenColumnCount(),F&&(1!==f||0!==I||o.Ab<=d||o.Ab>=d+a))for(k=0,j=(N=r.pO(n)).length;kg+p&&(O=0,R=g+p),D=o.options.rightToLeft,t.moveTo(D?u.x+u.width-u.XC-1:s-1,E+_-1),t.lineTo(D?u.x+u.width-u.XC-1:s-1,R+O),t.stroke());t.beginPath(),t.restore()}},i.prototype.gO=function(t){for(var n,e,i,r,o,a,u,s,c,f,l,h,d,v,g,s,m,h,d,v,g,n=this.Mf,e=n.Ut.getSelections(),i=e.length,r=n.Yy(t),o=[],a=n.options.rightToLeft,u={},c=0;c=m.x+xt(m)||_+E<=m.y||_>=m.y+Tt(m))&&(!C||D>m.x+xt(m))&&!A.isOutside)return"continue";if(0===O||0===E)return"continue";if(!H&&1===g&&e=P.iw&&(0===s&&P.Ky+P.Sx>f||0c)&&j=x(n)&&(t.r=n.P6(),e=!0),t.c<0?t.c=n.k9():t.c>=T(n)&&(t.c=n.G6(),e=!0),e&&((e=n.Ut.getSpan(t.r,t.c)).row!==t.r&&(t.r=e.row),e.col!==t.c)&&(t.c=e.col)},CA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.col,c=a.col+I(a)-1,f=t,l=n;f=(h=e.CR(f,l)).r,!(s<=(l=h.c));){if(o===r&&f===t&&l<=n)return;l=u<=--f?c+1:(h=e.JS(e.U5(3)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.col,c=h.col+I(h)-1,f=h.row+A(h)-1,h.col+I(h))}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},SA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.col,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.TR(f,l)).r,!((l=h.c)<=c);){if(o===r&&f===t&&n<=l)return;l=++f<=s?u-1:(h=e.JS(e.U5(4)),o=i.getActiveSelectedRangeIndex(),u=h.col,s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row,h.col-1)}0<=f&&(e.XA(f,l),e.qA=f,e.hR=l)},TA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col,f=t,l=n;f=(h=e.AR(f,l)).r,l=h.c,!(u<=f);){if(o===r&&l===n&&f<=t)return;c<=--l?f=s+1:(h=e.JS(e.U5(1)),o=i.getActiveSelectedRangeIndex(),u=h.row,s=h.row+A(h)-1,c=h.col,f=h.row+A(h),l=h.col+I(h)-1)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},AA:function(t,n){for(var e,i,r,o,a,u,s,c,f,l,h,h,e=this,i=e.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=e.JS(e.U5()),u=a.row,s=a.row+A(a)-1,c=a.col+I(a)-1,f=t,l=n;f=(h=e.IR(f,l)).r,l=h.c,!(f<=s);){if(o===r&&l===n&&t<=f)return;++l<=c?f=u-1:(h=e.JS(e.U5(2)),o=i.getActiveSelectedRangeIndex(),s=h.row+A(h)-1,c=h.col+I(h)-1,f=h.row-1,l=h.col)}0<=l&&(e.XA(f,l),e.qA=f,e.hR=l)},gA:function(t,n,e){var i,r,o,o,e,t,i=this,o=i.tables,r=e&&(r=o&&o.xR(t,n))||i.uI(t,n,e,i.qA||0);!r||r.row===t&&r.col===n||(o=r.row,e=r.col,t=r.leadingCellRow,i.dR(o,e)&&(i.qA=t,i.hR=e,i.XA(o,e)))},uI:function(t,n,e,i){var r,o,a,u,s,c,f,r=this,o=x(r),a=T(r),s=n;if(s===a-1&&!e||0===o||0===a)return M;for(c=r.NR(i,s),f=i,e||r.mR(c),u=c.r,s=c.c;s===a&&e;){if(t===o-1&&t===u&&(!r.getRowVisible(u,3)||r.Gt(u,3)<=0))return M;if(i=u=o<=(u=r.j5(u,3,!0))||d(u)?r.j5(-1,3,!0):u,u=(c=r.NR(i,-1)).r,s=c.c,u===t&&n=(o=o[0]).col&&(r=o.col,i=o.row),e.dR(i,r)))return{r:i,c:r};return{r:i,c:r}},CR:function(t,n){for(var e,i,r,e=this;0<=n&&!(--n<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;n>=i.col&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},NR:function(t,n){for(var e,i,r,o,a,a,u,e=this,i=T(e),o=n;o(u=a[0]).col?o=C(o,u.col+I(u)):r=u.row),e.dR(r,o)))return{r:r,c:o};return{r:r,c:o}},TR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=T(e);no.col?n=C(n,o.col+I(o)):t=o.row}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},dR:function(t,n){var e,i,r,o,e=this;return!!e.JA(t,n)&&(i=0<=t&&t=(i=i[0]).row&&(t=i.row,n=i.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},AR:function(t,n){for(var e,i,r,e=this;0<=t&&!(--t<0);){if(i=e.Ut.findSpan(t,n)){if(!((r=e.U5()).row<=i.row&&i.row+A(i)<=r.row+A(r)&&r.col<=i.col&&i.col+I(i)<=r.col+I(r)))continue;if(i.row!==t||i.col!==n)continue;t>=i.row&&(n=i.col,t=i.row)}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},pR:function(t,n){for(var e,i,r,r,o,e=this,i=x(e);t(o=r[0]).row?t=C(t,o.row+A(o)):n=o.col),e.dR(t,n)))return{r:t,c:n};return{r:t,c:n}},IR:function(t,n){for(var e,i,r,o,o,a,e=this,i=e.Ut,r=x(e);to.row?t=C(t,o.row+A(o)):n=o.col}if(e.dR(t,n))return{r:t,c:n}}return{r:t,c:n}},D9:function(t,n,e,i,r,o){var a=this;a.Ut.do("addSelection",t,n,e,i,M,o),r&&a.My<=0&&a.Dn.E1(M,M,M,M,o)},L9:function(t,n,e){var i,t,n,r,o,t,a,u,i=this,t=i.xA(t,n,i.ui,i.ci),n=t.row,r=t.col,o=A(t),t=I(t),a=i.selectionPolicy(),u=i.selectionUnit();0!==a&&(1===a&&i.Ut.do("clearSelection"),1===u?t=r=-1:2===u&&(o=n=-1),i.kA(n,r,o,t,e))},xA:function(t,n,e,i,r,o){var a,u,e,i,u,t,a=this;return d(e)&&(e=a.ui),d(i)&&(i=a.ci),e=(u=a.Ut).getSpan(e,i,o),i=u.getSpan(t,n,o),r&&e.equals(i)?new y.Range(e.row,e.col,1,1):(u=e.union(i),(t=a.Ut.getSpans(M,o))&&0=i.sB()&&(f=i.nI(i.sB())),u=i.xA(f,o,n,e),s=S(r,u.row),i=S(o,u.col),f=S(r+a-1,u.row+A(u)-1),n=C(o+I(t)-1,u.col+I(u)-1),(0,y.Ec)(s,i,l=f-s+1,h=n-i+1))},eB:function(t,n,e){var i,r,o,a,u,s,u,s,i,u,n,e,c,f,i=this,r=t.row,o=t.col,a=A(t),u=i.tI();return d(u)?M:(s=i._y(1),i.$A(u),(u=i.nI(r+a-1+p(s)))=i.sB()&&(u=i.Tb>=i.cB()?i.sB():i.nI(i.sB())),s=i.xA(u,o,n,e),i=C(r,s.row),u=S(o,s.col),n=C(r+a-1,s.row+A(s)-1),e=C(o+I(t)-1,s.col+I(s)-1),(0,y.Ec)(i,u,c=n-i+1,f=e-u+1))},QA:function(){var t,n,n,e,i,r,o,t=this,n=t._y(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenRowCount())?t.j5(n-1):t.N9(),i=0,r=t.Tb,o=t.Fi();et.Sy(o)););return r},fB:function(){var t,n,n,e,i,r,o,t=this,n=t.Yy(1);if(!n||p(n)<=0)return M;for(e=(n=t.frozenColumnCount())?t.O5(n-1):t.k9(),i=0,r=t.Ab,o=t.Fi();et.Gy(o)););return r},tI:function(){var t,n,t,t=this._y(1),n=p(t);return t&&0t.Gy(n));)o--;return o=0n.toLowerCase():n=n&&o.index=n+e&&(o.index-=e))}Object.defineProperty(t,"__esModule",{value:!0}),e=o("Common"),t=o("./dist/core/util/domUtil.js"),y=o("./dist/core/util/common.js"),w=o("./dist/core/worksheet/worksheet.js"),n=o("CalcEngine"),M=!!n,n=o("./dist/core/core.ns.js"),C=o("./dist/core/core.enum.js"),S=o("./dist/core/excel-io-util/range-parser.js"),n=new e.Common.ResourceManager(n.SR,"Sheets"),b=n.getResource.bind(n),u=e.Common.ct.o0,h=e.Common.Uf,T=e.Common.lt.ht,s="boolean",c="string",x="number",f="backColor",l="fontColor",A=void 0,t.GC$.extend(w.Worksheet.prototype,{sortRange:function(t,n,e,i,r,o,a,u,s){var c,f,f,l,h,d,v,l,h,l,h,g,h,l,m,p,h,g,l,c=!1;if(0===arguments.length){if(!(f=this.getSortState()))return!1;t=f.row,n=f.col,e=f.rowCount,i=f.colCount,o=f.sortConditions,r=f.byRow,c=!0}if(l=(f=this).getRowCount(),h=f.getColumnCount(),-1===e&&(e=l),-1===n&&(n=0),-1===i&&(i=h),(t=-1===t?0:t)<0||l<=t||n<0||h<=n||e<0||l=e.row+e.rowCount))if(t<=e.row){if(e.row=e.row+n,!e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},kpe:function(t,n){var e,i,r,o,a,e=this.getSortState();if(e&&!(t>=e.col+e.colCount))if(t<=e.col){if(e.col=e.col+n,e.byRow)for(i=0,r=e.sortConditions;i=t&&(o.index+=n)},_pe:function(t,n){var e,i,r,o,a,u,e=this.getSortState();if(e&&(i=[],!(t>=e.row+e.rowCount))){if(t+n<=e.row){if(e.row=e.row-n,!e.byRow)for(r=0,o=e.sortConditions;r=e.row&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=e.col+e.colCount))){if(t+n<=e.col){if(e.col=e.col-n,e.byRow)for(r=0,o=e.sortConditions;r=e.col&&t+n=t&&a.index=t+n&&(a.index-=n))}else t=a&&t.minY>=u&&g.push(t)}),o&&o.forEach(function(t){i.Rme(t),v.gF(t.minX,t.minY,1,1),t.minX>=f&&t.minY>=l&&d.Lme(t,!0)}),g.forEach(function(t){var t={minX:t.minX+f-a,minY:t.minY+l-u,maxX:t.maxX+f-a,maxY:t.maxY+l-u,isValid:t.isValid};d.Bme(t,!0)})):(o&&o.forEach(function(t){t.minX>=f&&t.minY>=l?d.Rme(t,!0,!0):(d.Rme(t),v.gF(t.minX,t.minY,1,1))}),r&&r.forEach(function(t){var n,e,i,r,o;if(t.minX>=a&&t.minY>=u)(n={minX:t.minX+f-a,minY:t.minY+l-u,maxX:J(t.maxX+f-a,f+s-1),maxY:J(t.maxY+l-u,l+c-1),isValid:t.isValid}).isValid||(n.maxX=n.minX,n.maxY=n.minY),d&&d.Bme(n,!0);else if(t.isValid)for(e=J(t.maxX,a+s-1),i=J(t.maxY,u+c-1),r=K(t.minX,a);r<=e;r++)for(h[r]=h[r]||{},o=K(t.minY,u);o<=i;o++)h[r][o]=1})),h}function at(t,n,e,i,r,o,a,u){var s=z("SheetsCalc");s&&s.CalcOperatorAdjustor.moveFormula(t,n,e,i,r,o,a,u)}function ut(t,n,e,i,r,o,a,u,s){var c,f,l,n,h,d,v,g,m,c={};if(t===n&&t.tables)for(f=X(e,i,r,o),l=X(a,u,r,o),h=(n=t.tables).all(),d=void 0,v=0,g=(h=n.zB?h.concat(n.zB):h).length;v=s&&t.minY>=c)if(!t.isValid||t.maxX=o&&t.minY>=a)b.Rme(t,!0,!0,!0);else if(t.isValid)for(n=J(t.maxX,o+l-1),e=J(t.maxY,a+h-1),i=K(t.minX,o);i<=n;i++)for(g[i]=g[i]||{},r=K(t.minY,a);r<=e;r++)g[i][r]=t})),this.Ope(w=function(t,n,e,i){var r,o,a,u,a,a,s,r=3===i,a=d?0:1,u=t.Ut;return r?o=v&&v[n]&&v[n][e]?N:t.getValueIgnoreDefault(n,e,i,a):(o=u.getValue(n,e,i,!0,a),1===i&&B(o)&&f.UB&&(a=t.H3)&&a._dataSource&&(a=u.q_(!1,3,e),s=t.options.colHeaderAutoTextIndex,a)&&(0<=s&&n===s||-1===s&&n===q(t,i)-1)&&(o=a.displayName||a.name)),B(o)||(r?t.YI(n,e,Q,i,!1,!0):u.do("setValue",n,e,Q,i,!0,!0)),o},y=function(t,n,e,i,r){var o=g&&g[n]&&g[n][e];B(i)?o&&o.isValid||t.YI(n,e,Q,r,!!t.HB,!0):(o&&o.isValid&&b.Rme(o,!0,u.Ut.G8),t.YI(n,e,i,r,!!t.HB,!0))}),(m=m.map(function(t){p.Lme(t,!0);var n={minX:t.minX+o-s,minY:t.minY+a-c,maxX:t.maxX+o-s,maxY:t.maxY+a-c,_v:t._v,isValid:t.isValid};return t._v=null,n})).forEach(function(t){t._v?b.setArray(t.minX,t.minY,t.maxX-t.minX+1,t.maxY-t.minY+1,t._v,!1,!0):b.Bme(t,!0)})},e.prototype.copyMoveStyle=function(u){var g,t,t,m,s,p,t,c,b,w,n,e,g=this,m=this.isMove,s=this.options.ignoreSheet,p=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.advancedPasteOptions,c=null==t?void 0:t.usingSourceTheme,b=null==t?void 0:t.noBorder,w=null==t?void 0:t.numberFormats,n,e;this.Ope(function(t,n,e,i){var r,o,a,r=(3===i||B(i))&&u&&u[n]&&u[n][e],a=t.Z_(n,e,i);return c?(o=t.getActualStyle(n,e,i,N,{notClone:N,isForFilter:N,ignoreSheet:s}))&&(delete o.themeFont,a||delete o.parentName):(o=t.getCompositeStyle(n,e,i,N,N,N,{hasTableStyle:r,ignoreSheet:s}))&&!a&&delete o.parentName,m&&o&&_(t,n,e,Q,i),o},function(t,n,e,i,r,o){var a,a,u,s,c,f,l,h,d,a,v;p&&g.jpe.get(n,e)||(w&&(a=i.formatter,(i=(i=t.getStyle(n,e))||new C.Style).formatter=a),b&&(u=(a=t.getCompositeStyle(n,e)).diagonalUp,s=a.diagonalDown,c=a.borderTop,f=a.borderBottom,l=a.borderLeft,h=a.borderRight,d=a.borderHorizontal,a=a.borderVertical,Object.assign(i,{diagonalUp:u,diagonalDown:s,borderTop:c,borderBottom:f,borderLeft:l,borderRight:h,borderHorizontal:d,borderVertical:a})),_(t,n,e,i,r),Z.Worksheet.et(t,"afterCopyMoveStyle",v={target:{sheet:t,row:n,col:e},source:o,isMove:m}))})},e.prototype.copyMoveValidator=function(){var t,s,a,u,c,f,l,h,d,v,n,e,i,r,r,r,g,o,m,t=this,s=t.src,a=t.srcRow,u=t.srcColumn,c=t.dest,f=t.copyRowCount,l=t.copyColumnCount,h=t.isMove,d=t.destRow,v=t.destColumn,n=s.b8.YB;for(e in n)(i=n[e])&&(r=i._S,h&&s===c&&r&&(r=r.some(function(t){return t.contains(a,u,f,l)&&!t.equals(new F.Range(a,u,f,l))}),i.Epe=r),r=i.condition())&&r.initExpression();h&&y(s,c)&&(g=new b.Common.rbush),this.Ope(o=function(t,n,e){var i,r,o,o,i=t.getDataValidator(n,e,3);return i&&(h&&(r=void 0,!i.Epe&&1===i._S.length&&y(s,c)&&((r=i._S[0]).isInner(a,u,f,l)?g.insert({minX:r.row+d-a,minY:r.col+v-u,maxX:r.row+d-a+r.rowCount-1,maxY:r.col+v-u+r.colCount-1,rc:r.rowCount,cc:r.colCount}):a===d&&ur.col&&u+l>=r.col+r.colCount?(o=r.colCount+v-u,g.insert({minX:r.row,minY:r.col,maxX:r.row+r.rowCount-1,maxY:r.col+o-1,rc:r.rowCount,cc:o})):u===v&&ar.row&&a+f>=r.row+r.rowCount?(o=r.rowCount+d-a,g.insert({minX:r.row,minY:r.col,maxX:r.row+o-1,maxY:r.col+r.colCount-1,rc:o,cc:r.colCount})):r=null),r?t.setDataValidator(r.row,r.col,r.rowCount,r.colCount,Q):t.setDataValidator(n,e,Q)),y(s,c))&&(i.ZB=!0),i},m=function(t,n,e,i){var r,o,a,u,r=!1;g&&0<(u=g.search({minX:n,minY:e,maxX:n,maxY:e})).length&&(i&&t.setDataValidator(u[0].minX,u[0].minY,u[0].rc,u[0].cc,i),r=!0),r||t.setDataValidator(n,e,i),y(s,c)&&i&&delete i.ZB},{copyPasteHeaders:0})},e.prototype.copyMoveComment=function(){var t,r,o,n,e,r=this.isMove,o=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,n,e;this.Ope(function(t,n,e){var t,i,t=t.Ut.pI,i=t&&t.get(n,e);return i&&r&&t.remove(n,e),i},function(t,n,e,i){var t;o&&!i||(t=t.Ut.pI)&&t.WB(n,e,i)},{copyPasteHeaders:0})},e.prototype.copyMoveMultiColumnPrecedents=function(){var h,t,n,h=this.isMove,t,n;this.Ope(function(t,n,e){var i,r,o,a,u,s,c,f,l,l,i=t.Rpe&&t.Rpe(),r=[],o=t.name();if(i)for(a=0,u=i.length;a=o&&r.maxRow!==1/0&&(r.maxRow=o-1),r.maxCol>=a&&r.maxCol!==1/0&&(r.maxCol=a-1),n=r.maxRow===1/0?-1:r.maxRow-r.minRow+1,e=r.maxCol===1/0?-1:r.maxCol-r.minCol+1,new A.Range(r.minRow,r.minCol,n,e)):N},Y.prototype.name=function(t){var n=this,e=n.parent;if(0===arguments.length)return n.Ut?n.Ut.getName():"";if($(t,e?e.sheets:null,n))return n.ub(t),e&&e.Xg(),n;throw m().Exp_NotSupported},Y.prototype.isSelected=function(t){return this.b2(t)},Y.prototype.b2=function(t,n){var e,i,r,o,a,u,e=this,i=e.parent,r=!!e.Ut&&e.Ut.Xj();return D(t)?r:(t!==r&&(o=e.name(),a=i&&i.Ese(o),u=void 0,n&&(u={oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",cancel:!1,sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)},i)&&i.ki(A.Events.SheetChanging,u),!n||u&&!1===u.cancel)&&(e.Ut.qj(t),i&&i.w2&&i.w2.repaint(),n)&&i&&i.ki(A.Events.SheetChanged,{oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)}),e)},Y.prototype.Mtt=function(t){this.Ut.undo(t)},Y.prototype.VAe=function(){this.Ut.startTransaction()},Y.prototype.zAe=function(){return this.Ut.endTransaction()},Y.prototype.ub=function(t,n){var e,i,r,o,e=this,i=e.name(),r=e.parent;n||Y.et(e,"beforeSetName",{oldName:i,newName:t}),e.Ut.do("setName",t),r&&(o=r.sheetTabStyles.O2e[i],i!==t)&&o&&(r.sheetTabStyles.O2e[t]=o,r.sheetTabStyles.clear([i])),n||Y.et(e,"setName",{oldName:i,newName:t})},Y.prototype.addRows=function(t,n,e){this.ffe(t,n,e)},Y.prototype.ffe=function(t,n,e,i){var r,o,a,u,s,c,f;if((e=Vt(o=e=void 0===e?j.SheetArea.viewport:e))!==j.SheetArea.corner&&!(n<=0)){u=G(a=this,e),(t<0||u=d&&(v=d-1,g=o.getActiveColumnIndex(),(m=o.getSpan(v,g))&&(v=m.row,g=m.col),o.setActiveCell(v,g)),o.Ww=!0,Y.et(o,L,{changeType:u,row:t,oldValue:a,rowCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!0,t),o.dj(t,r,u,n,a)}}finally{o.sL(!0,e),o.resumePaint()}}},Y.prototype.addColumns=function(t,n,e){void 0===e&&(e=j.SheetArea.viewport),this.r9e(t,n,e)},Y.prototype.r9e=function(t,n,e,i){var r,o,a,u,s,r,r;(e=Yt(o=e=void 0===e?j.SheetArea.viewport:e))===j.SheetArea.corner||n<=0||(u=P(a=this,e),a.Dj(t=t<0||u=i&&(l=o.getActiveRowIndex(),(h=o.getSpan(l,i=i-1))&&(l=h.row,i=h.col),o.setActiveCell(l,i)),o.Zw=!0,Y.et(o,L,{changeType:u,col:t,oldValue:a,colCount:n,sheetArea:e}),e===j.SheetArea.viewport&&o.tables&&o.tables.cL(!1,t),o.vj(t,r,u,n,a),o.sL(!0,e),o.zw()}},Y.prototype.frozenColumnCount=function(t,n){var e=this;if(0===arguments.length)return e.fp;e.ame(t,n)},Y.prototype.ame=function(t,n,e){var i,r,o,i=this;0<=t&&(!D(n)&&"number"==typeof n||(n=0),r=i.yve,i.fp=t,0t&&e.frozenRowCount(t)):1===n&&e.Ut.do("setRowCount",t,n),Y.et(e,L,{changeType:"setRowCount",row:i,rowCount:t,sheetArea:n}),e.Ww=!0,e.ui>=t&&(3===n||2===n)&&e.setActiveCell(t-1,e.getActiveColumnIndex()),e.zw(),e.clearPendingChanges())},Y.prototype.setColumnCount=function(t,n,e){var i,r,e;t=S(t,10),g(t)||(r=(i=this).getColumnCount(n),t<0)||t===r||(D(n)&&(n=3),D(e)||(e=i.getUsedRange(e),D(e))||(-1===e.colCount&&(e.colCount=i.getColumnCount(n)),t=Math.max(t,e.col+e.colCount)),3===n||1===n?(i.Ut.do("setColumnCount",t,n),z(i)>t&&i.frozenColumnCount(t)):2===n&&i.Ut.do("setColumnCount",t,n),Y.et(i,L,{changeType:"setColumnCount",col:r,colCount:t,sheetArea:n}),i.Zw=!0,i.ci>=t&&(3===n||1===n)&&i.setActiveCell(i.getActiveRowIndex(),t-1),i.zw(),i.clearPendingChanges())},Y.prototype.getFreeAreaRowCount=function(t){var n;return this.Ut.getFreeAreaRowCount(t)},Y.prototype.getFreeAreaColumnCount=function(t){var n;return this.Ut.getFreeAreaColumnCount(t)},Y.prototype.setFreeAreaRowCount=function(t,n){var e;this.Ut.setFreeAreaRowCount(t,n)},Y.prototype.setFreeAreaColumnCount=function(t,n){var e;this.Ut.setFreeAreaColumnCount(t,n)},Y.prototype.w8=function(t){var n,e,i,r,o;if(!D(t)&&(n=t.rows,i=!1,this.filterRowsVisibleInfo)){if(r=this.filterRowsVisibleInfo.rowsVisibleInfo||{},n&&0=r.row&&a[i].row=r.col&&a[i].cola)for(u=new O.h9,c=s=o[0].col;ca)for(u=new O.h9,c=s=o[0].row;ce.getLastFullyVisibleColumn()&&n<=e.G6()){for(f=0,l=n,c=e.Fi(),h=e.Gy(c),(c=e.Ut.findSpan(t,l))&&(l=c.col+c.colCount-1);l>e.Ab&&!(h<(f+=e.nn(l)));)l--;d=c=void 0,d=u?(l===e.Ab&&fe.getLastFullyVisibleRow()&&t<=e.P6()){for(g=0,(c=e.Ut.findSpan(m=t,n))&&(m=c.row+c.rowCount-1),d=e.Fi(),p=e.Sy(d);m>e.Tb&&!(p<(g+=e.Gt(m)));)m--;t=s=void 0,t=u?(m===e.Tb&&g=G(a)||n<0||n>=P(a)||(u=a.parent&&a.parent.options.scrollByPixel,s=a.parent&&a.parent.options.scrollbarMaxAlign,c=a.S0(n),f=a.C0(t),l=a.getViewportTopRow(f),h=a.ly,d=a.getViewportLeftColumn(c),v=a.my,1===c&&D(o)&&(n=(i=a.rB(n,i,u,s)).col,o=i.offset),1===f&&D(r)&&(t=(i=a.oF(t,e,u,s)).row,r=i.offset),u=e=!1,1!==f||t===l&&r===h||(t=E(t,a.mw().Ky),a.Tb=t,a.ly=r,a.tw(),e=!0),1!==c||n===d&&o===v||(n=E(n,a.Mw().iw),a.Ab=n,a.my=o,a.ow(),u=!0),(e||u)&&((s=a.parent)&&!s.options.scrollbarShowMax&&(a.Zw=!0,a.Ww=!0),a.zw(),i=a.zoom(),e&&a.ki(A.Events.TopRowChanged,{sheet:a,sheetName:a.name(),oldTopRow:l,newTopRow:t,oldOffset:T(h/i),newOffset:T(r/i)}),u)&&a.ki(A.Events.LeftColumnChanged,{sheet:a,sheetName:a.name(),oldLeftCol:d,newLeftCol:n,oldOffset:T(v/i),newOffset:T(o/i)}))},Y.prototype.C0=function(t,n){var e=this;return J(n)?3:t=G(e)-H(e)?2:1},Y.prototype.S0=function(t){var n=this;return t=P(n)-U(n)?2:1},Y.prototype.oF=function(t,n,e,i){var r,o,a,u,s,c,f,l,h,d,v,g,i,n,m,p,i,r=this,o=r.Jt,a=r.C0(t),u=r.getViewportTopRow(a),s=r.ly,c=V(r),l=r.P6();if(0===n)if(i){for(h=l,f=r.getViewportHeight(a);c<=h;h--)if((f-=o.Gt(h))<0){tg[g.length-1].col||tm[m.length-1].row||lm[0].row?i.y+=c.Mf.PCn(f):f===m[0].row&&(i.y+=c.Mf.PCn(m[0].row))),a<=l&&lm[0].row&&(i.height-=c.Mf.PCn(o)),l=i.getRowCount()&&u=i.pw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.yy(i,t,n||0,e),i.tw()),s&&!s.options.scrollbarShowMax&&i.ew(),i.invalidateLayout())},Y.prototype.o9=function(t,n,e){var i,r,o,a,u,a,s,s,i=this,r=i.Ab,o=i.my,a=i.Mw(),u=a.iw,a=a.Xy,s=!D(e);(t=r>=i.getColumnCount()&&u=i.Sw()&&t<=u&&(s||t!==r||n!==o)&&((s=i.parent)&&(n||t!==u||(n=a),s.ib&&s.ib.wy(i,t,n||0,e),i.ow()),s&&!s.options.scrollbarShowMax&&i.aw(),i.invalidateLayout())},Y.prototype.JL=function(t,n,e){var i,r,o,a,u,s,c,u,s,s,u,c,u,c,u,f,l,s,u,h,i=this,r=t.row,o=t.col,a=t.hitTestType;return D(r)||D(o)?(s=!1,c=(u=i.Fi()).XAe(),!(s=!D(c)&&c.contains(n,e,!0)||(c=u.qAe(),!D(c)&&c.contains(n,e,!0))?!0:s)||(u=i.PTe(a),D(u))||(s=i.$Ae(a),D(s))?N:s.Bn(n,e,u,c,{sheet:i,row:r,col:o,sheetArea:a})):((s=3===t.rowViewportIndex)||((u=i.getSpan(r,o,a))&&(r=u.row,o=u.col),i.Cb&&(c=i.Cb.D7(r,o,a))&&(r=c.row,o=c.col)),u={},s&&(u.rowSpacingIndex=t.rowSpacingIndex,u.isAfterRowSpacing=t.isAfterRowSpacing),c=i.Il(r,o,a,_,u),u=1===a?-1:_,f=2===a?-1:_,l={needAutoMerge:!0},s&&(l.rowSpacingIndex=t.rowSpacingIndex,l.isAfterRowSpacing=t.isAfterRowSpacing),s=i.getCellRect(r,o,u,f,l),u={sheet:i,row:r,col:o,sheetArea:a,rowSpacingIndex:t.rowSpacingIndex,isAfterRowSpacing:t.isAfterRowSpacing},(h=c.cellType||i.$f(a)).Bn(n,e,c,s,u))},Y.prototype.bC=function(){this.unbindAll(),this.E3()},Y.prototype.dA=function(t,n,e){for(var t,i,r,o,a,u,s,c,f,u,f,f,t=this.JS(t),i=t.row,r=t.col,o=i+t.rowCount,a=r+t.colCount,s=i;st-1?e.splice(i,1):r.row+r.rowCount-1>t-1&&(r.rowCount=t-1-r.row+1))},T.prototype.DP=function(t,n){var e,i,r;for(void 0===n&&(n=b.SheetArea.viewport),i=(e=this.SP).length-1;0<=i;i--)-1!==(r=e[i].range).col&&m(e[i].sheetArea,n,!1)&&(r.col>t-1?e.splice(i,1):r.col+r.colCount-1>t-1&&(r.colCount=t-1-r.col+1))},T.prototype.toJSON=function(){return this.SP.map(function(t){var n=t.range;return{range:{row:n.row,col:n.col,rowCount:n.rowCount,colCount:n.colCount},direction:t.direction,mode:t.mode,sheetArea:t.sheetArea,selectionMode:t.selectionMode}})},T.prototype.fromJSON=function(t){var n,e,i,r,o,a;if(t)for(n=this.SP,e=0,i=t;e=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.col||o.col+o.colCount>e)&&u.repaint(u.getRangeRect(1,2,o))):a===b.SheetArea.rowHeader&&(o=u.Fi(),u.repaint(o.B1(1)))}),u.bind(b.Events.LeftColumnChanged+"."+o,function(){var t,n,e,i,r,o,a,o,o,t=s.all();if(0=n)&&u.repaint(u.getRangeRect(1,1,o)),(-1===o.row||o.row+o.rowCount>e)&&u.repaint(u.getRangeRect(2,1,o))):a===b.SheetArea.colHeader&&(o=u.Fi(),u.repaint(o.L1(1)))})},dispose:function(t){!1!==t.clearCache&&(this.Cb=C,this.unbind(b.Events.TopRowChanged+"."+o),this.unbind(b.Events.LeftColumnChanged+"."+o))},onLayoutChanged:function(t){var n,e,i,r,o,t,a,n=t.changeType,e=t.row,i=t.rowCount,r=t.col,o=t.colCount,t=t.sheetArea,a=this.Ut;"addRows"===n?a.jP(e,i,t):"deleteRows"===n?a.OP(e,i,t):"addColumns"===n?a.RP(r,o,t):"deleteColumns"===n?a.BP(r,o,t):"setRowCount"===n?a.LP(i,t):"setColumnCount"===n&&a.FP(o,t),"invalidateLayout"===n&&this.My<=0&&this.Cb.IP()},toJson:function(t,n){var e,i,e;n&&n.ignoreStyle||(i=this.Cb,t.autoMergeRangeInfos=i.toJSON(),n&&n.includeAutoMergedCells&&(i.IP(!n.gp,!0),A(i,t)))},fromJson:function(t,n,e){var i;e&&e.ignoreStyle||this.Cb.fromJSON(t.autoMergeRangeInfos)},wh:function(t,n,e){var i,r,o,o,i;e&&!1===e.includeStyles||(t.lossless.autoMerge={},r=this.Cb,t.lossless.autoMerge.autoMergeRangeInfos=r.toJSON(),o=r.Mf.NMi,e&&e.includeAutoMergedCells&&!o&&(o={},r.IP(!e.gp,!0),A(r,o),x(o,t)))},yh:function(t,n,e){var i;e&&!1===e.includeStyles||!t.lossless||!t.lossless.autoMerge||this.Cb.fromJSON(t.lossless.autoMerge.autoMergeRangeInfos)}}),b.Workbook.ch(o,{onCultureChanged:function(){c()}}),b.GC$.extend(b.Worksheet.prototype,{autoMerge:function(t,n,e,i,r){void 0===n&&(n=l.column),void 0===e&&(e=w.free),void 0===i&&(i=b.SheetArea.viewport),void 0===r&&(r=h.source);var o=this.Cb;if(0===arguments.length)return o.all();t&&(this.Ut._P(),n===l.none?o.remove(t,i):o.add(t,n,e,i,r),this.zw())}})},"./dist/plugins/autoMerge/autoMerge.res.en.js":function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Exp_RangeIsIntersected=void 0,n.Exp_RangeIsIntersected="The range should not intersect with exsit ranges."},"./dist/plugins/cellState/cellStateManager.js":function(t,n,e){"use strict";var o,a,i,b,w,e,f,i,y,r,u,n,s;function c(t){var n=t.row,e=t.col,i=t.rowCount,t=t.colCount;return new b.Range(n,e,i,t)}function l(t,n){this.Mf=t,this.Kh=n,this.cE=[];for(var e=1;e<=3;e++)this.PP(e)}function h(t){this.Mf=t,this.GP={}}function d(n,t,e){var i=[],r=n.getRowCount(3),o=n.getColumnCount(3);return t.forEach(function(t){i=i.concat(m(n,t.style,t.range,e,r,o))}),i}function v(t){for(var n,e,i,r,o,e,a,u,s,c,e,n=[],i=0,r=t.length;i=parseFloat(e.style.width)&&(t.x=parseFloat(e.style.width)-1),Nt(u(t,!0),!0,e)},e.addEventListener("mouseleave",n)}function ft(t,n,e,i,r,o,a,u,s,c,f,l){var n,h,d,e,v,g,m,p,n=U(n,e,a,u,!0,[t]);if(0r.x+r.width||n+ir.y+r.height))return t+e>r.x+r.width&&(e=r.x+r.width-t),n+i>r.y+r.height&&(i=r.y+r.height-n),te.y+e.height&&(h.y=v(h.y-(h.y+h.height-e.y-e.height),e.y))),l=(u=f.getImage(a)).width,i=u.height,T.mt.Tt.msie&&n.imageType&&(i=n.imageType===T.ButtonImageType.custom?(g[a]||(u.style.position="absolute",u.style.left="-10000px",u.style.top="-100000px",document.body.appendChild(u),g[a]={width:u.width,height:u.height},document.body.removeChild(u)),l=g[a].width,g[a].height):l=12),s&&T.mt.Tt.msie&&h.x+h.width>s.x+s.width?0<(e=s.x+s.width-h.x)&&t.drawImage(u,0,0,e*(d=l/(r*c)),i,h.x,h.y,e,o*c):t.drawImage(u,0,0,l,i,h.x,h.y,r*c,o*c)):f.addImage(a),t.restore()}function G(t,n,e,i){var r,o,n,a,u,e;return void 0===i&&(i=!0),r=B(e)?e.printZoomFactor:e.sheet.zoom(),o=2*A+3,C(t.width)?(n=N.Bt(x,t.caption,n,r,e),a=t.useButtonStyle,(u=Ot(t,e.row))&&(n=Ct(t)+n,o=(a?o:0)+K),i?(n+o+7)*r:n+o+7):(e=v(1,t.width),isNaN(e)&&(e=1),i?e*r:e)}function Mt(t,n,e){var i,r,i,n,t;return void 0===e&&(e=!0),i=n.sheet,r=B(n)?n.printZoomFactor:i.zoom(),i=i.getRowHeight(n.row),n=t.imageSize?t.imageSize.height:x,t=v(1,n||i),isNaN(t)&&(t=1),e?t*r:t}function U(t,n,e,i,r,o){var a,u,s,c,f,l,a=[];if(!n||0===n.length)return[];for(u=!1,s=t.Ut.getValueForKey(e,i,h),t.getActiveRowIndex()===e&&t.getActiveColumnIndex()===i&&!0!==s&&(u=!0),c=0;cf&&(u=l.left+r-f),l.top+o>c&&(a=l.top+o-c)):(c=(l=t.sfe).clientHeight,f=l.clientWidth,c=i.getRowCount(o)||r<0||r>=i.getColumnCount(o))return!1;if(i.showCell(t,r,S.VerticalPosition.nearest,S.HorizontalPosition.nearest),s=i.getCellRect(t,r,a=1===o?-1:void 0,u=2===o?-1:void 0),i.parent&&!i.parent.options.scrollByPixel&&!i.isEditing()){if(0<(c=i.frozenColumnCount())&&c<(f=i.getViewportLeftColumn(1))&&(l=i.getSpan(t,r,o))&&l.col<=f&&f\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n x\n \n 2\n
\n
\n \n 1\n \n \n \n x\n \n
\n
\n
\n
\n
\n
CE
\n
C
\n
BS
\n
\n
\n
\n
\n
7
\n
8
\n
9
\n
\n
\n
\n
\n
4
\n
5
\n
6
\n
\n
\n
\n
\n
1
\n
2
\n
3
\n
\n
\n
\n
\n
\n
\n
0
\n
.
\n
\n
\n
\n
\n
OK
\n
\n
\n
\n
\n\n',f=Math.floor,l=Math.abs,h=Math.pow,d=Math.round,v=Math.sqrt,g=Math.max,m=new Array("0","1","2","3","4","5","6","7","8","9","+/-",".","+","-","*","/","SQRT","%","1/x","=","MC","MR","MS","M+","BS","CE","C","POW"),x.Init=function(){var t;x.GetBrowserType(),x.IsIE=void 0!==x.ie||void 0!==x.edge},x.GetBrowserType=function(){try{var t=navigator.userAgent.toLowerCase();window.ActiveXObject?x.ie=t.match(/msie ([\d.]+)/)[1]:-1!==t.indexOf("edge")?x.edge=t.match(/edge\/([\d.]+)/)[1]:-1!==t.indexOf("firefox")&&(x.firefox=t.match(/firefox\/([\d.]+)/)[1]),-1!==t.indexOf("rv:")&&-1===t.indexOf("firefox")&&(x.ie=t.match(/rv:([\d.]+)/)[1])}catch(t){}},(p=x).Init(),A.IsErrorText=function(t){return t===s().Calculator_DivideByZeroInfo||t===s().Calculator_InvalidInputInfo||t===s().Calculator_SqrtParameterException||t===s().Calculator_OverFlowInfo},b=A,n.CalculatorErrorInfo=b,I.IsDotContained=function(t){var n;return-1!==(t+"").indexOf(".")},I.GetDotPosition=function(t){var n,e,i,n=t+"",e=0,i=0;for(i=n.length;0t.clientWidth)},k.prototype.aH=function(t){var n=T(t);t.style.fontSize="".concat(n-1,"px")},k.prototype.uH=function(t){for(var n,e,n=this,e=T(t);!n.oH(t)&&ethis.eraMax)},D.addMilliseconds=function(t,n){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+n),new Date(t.valueOf())},D.getEraDate=function(t){var n,e,i,n={era:-1,eraYear:-1};if(D.isValidEraDate(t))for(e=0;ef.start&&(st):(e=this.selectedDate,i=this.focusDate,n.selected=e&&e.getMonth()===t&&e.getFullYear()===i.getFullYear(),n.focused=i&&i.getMonth()===t),this.monthItems.push(n)},_.prototype.updateYearItems=function(){var t,n,e;for(this.yearItems=[],t=this.focusDateYearRangeStart-1;t<=this.focusDateYearRangeEnd+1;t++)n=new Ot(t),this.owner.A1e?(e=this.T1e,n.selected=e.start.getFullYear()===t||e.end.getFullYear()===t,n.focused=e.start.getFullYear()t):(n.selected=this.selectedDate&&this.selectedDate.getFullYear()===t,n.focused=this.focusDate&&this.focusDate.getFullYear()===t,n.disabled=tthis.focusDateYearRangeEnd),this.yearItems.push(n)},_.prototype.updateYearRange=function(){this.focusDateYearRangeStart=10*Math.floor(this.focusDate.getFullYear()/10),this.focusDateYearRangeEnd=this.focusDateYearRangeStart+9},_.prototype.getShortWeekName=function(t){var n,e,n,e;return N.resource.shortWeeks[t=(this.owner.dH+t-1)%7]},_.prototype.getCurrentMonthName=function(){var t=this.focusDate.getMonth();return _.getMonthName(t)},_.prototype.updateCalendarData=function(t){t?(this.T1e=t.selectedDateRange,this.S1e=t.oldSelectedDateRange,this.E1e=t.hoverDate):this.RangeCalendar.notifyCalendarData({selectedDateRange:this.T1e,oldSelectedDateRange:this.S1e,hoverDate:this.E1e})},Lt=_,Ut=F.EventBase,e(O,Ut),Object.defineProperty(O.prototype,"host",{get:function(){return this.jS.getContainer()},enumerable:!1,configurable:!0}),O.prototype.createCalendarDom=function(){var t,n,e,i,r,i,t,t=this.jS;return this.mH=new _t,n=j("div"),this.jS.A1e?n.className=c+" "+H:n.classList.add(c),t.HG?n.classList.add(z):n.classList.add(W),e=j("table"),i=j("tr"),(r=j("td")).classList.add(X),t.HG&&r.classList.add(q),r.appendChild(this.gH()),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.HG&&(i=j("tr"),t=j("td"),r.appendChild(this.pH()),r.appendChild(this.bH()),t.appendChild(this.yH()),t.appendChild(this.wH()),i.appendChild(t),e.appendChild(i)),this.mH.outerContainerDiv=n},O.prototype.wH=function(){var t,n,t=j("div");return t.classList.add(Z),(n=j("button")).textContent=g().OK,n.className=x+" "+Tt+" "+St,t.appendChild(n),this.mH.okButton=n,t},O.prototype.pH=function(){var t=j("div");return t.classList.add($),t},O.prototype.yH=function(){var t=j("div");return t.classList.add(tt),t},O.prototype.gH=function(){var t=j("div");return t.className=V+" "+ut+" "+st,t.tabIndex=0,t.appendChild(this.MH()),t.appendChild(this.CH()),t.appendChild(this.SH()),this.mH.dateContainerDiv=t},O.prototype.MH=function(){var t=j("div");return t.classList.add(nt),t.appendChild(this.TH()),t.appendChild(this.AH()),t},O.prototype.TH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastTenYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).classList.add(M),(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextTenYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarYearSection).headerDiv=t,a.lastYearRangeButton=i,a.focusDateYearRangeName=r,a.nextYearRangeButton=o,t.appendChild(n),t},O.prototype.AH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarYearSection.currentYearRangeTable=t,this.IH(),n},O.prototype.IH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarYearSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(xt,(4*e+r).toString()),(a=j("span")).classList.add(ft),a.setAttribute(xt,(4*e+r).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.yearTds.push(o);n.appendChild(i)}t.currentYearRangeTable.appendChild(n)},O.prototype.CH=function(){var t=j("div");return t.classList.add(it),t.appendChild(this.xH()),t.appendChild(this.NH()),t},O.prototype.xH=function(){var t,n,e,i,r,r,o,a,a,t=j("div");return t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastYear,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextYear,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=this.mH.calendarMonthSection).headerDiv=t,a.lastYearButton=i,a.currentYearName=r,a.nextYearButton=o,t.appendChild(n),t},O.prototype.NH=function(){var t,n,t=j("table");return t.className=f+" "+S,(n=j("div")).appendChild(t),this.mH.calendarMonthSection.currentYearTable=t,this.kH(),n},O.prototype.kH=function(){for(var t,n,e,i,r,o,a,t=this.mH.calendarMonthSection,n=j("tbody"),e=0;e<3;e++){for(i=j("tr"),r=0;r<4;r++)(o=j("td")).setAttribute(At,(4*e+r+1).toString()),(a=j("span")).classList.add(ft),a.setAttribute(At,(4*e+r+1).toString()),a.innerText=(4*e+r+1).toString(),o.appendChild(a),i.appendChild(o),t.monthTds.push(o);n.appendChild(i)}t.currentYearTable.appendChild(n)},O.prototype.SH=function(){var t=j("div");return t.classList.add(rt),t.appendChild(this._H()),t.appendChild(this.EH()),t.appendChild(this.jH()),this.jS.A1e||t.appendChild(this.OH()),t},O.prototype._H=function(){var t,n,e,i,r,r,o,a,a,u,s,c,f,l,h,d,v,c,t=j("div");for(t.className=m+" "+w+" "+T,(n=j("div")).className=y+" "+T+" "+ct+" "+Ct,(e=j("div")).classList.add(M),(i=j("button")).className=x+" "+C,i.title=g().Calendar_LastMonth,i.setAttribute("type","button"),(r=j("div")).classList.add(p),i.appendChild(r),(r=j("span")).className=K+" "+M,(o=j("button")).className=x+" "+C,o.title=g().Calendar_NextMonth,o.setAttribute("type","button"),(a=j("div")).classList.add(b),o.appendChild(a),n.appendChild(i),n.appendChild(r),n.appendChild(o),(a=j("div")).className=et+" "+Mt,(u=j("div")).classList.add(at),(s=j("select")).classList.add(ot),f=(c=new Date).getFullYear()-this.lH,l=c.getFullYear()+this.fH,h=f;h<=l;h++)(d=j("option")).text=h.toString(),d.value=h.toString(),s.options.add(d);return(v=j("div")).classList.add(at),u.appendChild(s),a.appendChild(u),t.appendChild(a),t.appendChild(n),(c=this.mH.calendarDaySection).headerDiv=t,c.lastMonthButton=i,c.currentMonthName=r,c.nextMonthButton=o,c.yearSelect=s,t},O.prototype.EH=function(){var t,n,e,i,r,o,a,t=j("div");for(t.className=Q+" "+w+" "+T,(n=j("table")).className=f+" "+S,e=j("thead"),i=j("tr"),r=0;r<7;r++)(o=j("th")).setAttribute(It,r.toString()),(a=j("span")).classList.add(lt),a.setAttribute(It,r.toString()),a.innerText=this.jS._data.getShortWeekName(r),o.appendChild(a),i.appendChild(o),this.mH.calendarDaySection.weekThs.push(o);return e.appendChild(i),n.appendChild(e),t.appendChild(n),t},O.prototype.jH=function(){var t,n,e,i,r,o,a,u,s,c,t=this.mH.calendarDaySection,n=j("div"),e=j("div"),i=j("table");for(i.className=f+" "+S,r=j("tbody"),o=0;o<6;o++){for(a=j("tr"),u=0;u<7;u++)(s=j("td")).setAttribute(A,(7*o+u).toString()),(c=j("span")).classList.add(ft),c.setAttribute(A,(7*o+u).toString()),s.appendChild(c),a.appendChild(s),t.dayTds.push(s);r.appendChild(a)}return i.appendChild(r),e.appendChild(i),n.appendChild(e),t.dayContentTable=i,n},O.prototype.OH=function(){var t,n,e,i,r,o,t=j("div");return t.classList.add(J),(n=j("table")).classList.add(f),e=j("tbody"),i=j("tr"),r=j("td"),(o=j("i")).className=ht+" "+yt,o.innerText=N.resource.today,r.appendChild(o),i.appendChild(r),e.appendChild(i),n.appendChild(e),t.appendChild(n),this.mH.calendarDaySection.todayTd=r,this.mH.calendarDaySection.todayTable=n,t},O.prototype.bH=function(){var n,t,n=this,t=j("div");return t.className=Y+" "+ut+" "+st,t.tabIndex=0,this.mH.timeContainerDiv=t,this.RH=new B.TimePicker(t),this.RH.setOptions({step:{minute:30},height:260}),this.RH.on(o.BaseDropdown.Event_ValueChanged,function(t){n.BH(t)}),t},O.prototype.updateCalendarDom=function(){this.LH(),this.jS.HG&&this.FH()},O.prototype.LH=function(){switch(this.jS._data.calendarPage){case u.CalendarPage.year:this.PH();break;case u.CalendarPage.month:this.GH();break;case u.CalendarPage.day:this.UH()}},O.prototype.HH=function(){var t,n,e,i,r,o,t,a,u,a,t,n,s,c,f,t=this.jS._data,n=this.mH.calendarDaySection,e=!1;for(n.currentMonthName.innerText=t.getCurrentMonthName(),i=t.focusDate.getFullYear(),r=n.yearSelect,o=0;oc.getFullYear()?r.options[o].disabled=!0:r.options[o].disabled=!1;s.getFullYear()===c.getFullYear()&&s.getMonth()>=c.getMonth()-1?(t.disabled=!0,t.classList.add(l)):(t.disabled=!1,t.classList.remove(l))}else if(2===n){for(o=0;ot.start)&&(n.E1e=e),n.updateCalendarData(),this.RangeCalendar.updateRangeCalendarDom()))},O.prototype.fz=function(){var t,n,n,e,t=this.jS,n=t._data.selectedDate,n=n?new Date(n.valueOf()):null,e=new Date;n&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(0)),t._data.selectedDate=e,t._data.focusDate=new Date(e.valueOf()),this.LH(),t.HG||this.oz()},O.prototype.hz=function(t){var t=t.srcElement||t.target;t&&(this.jS._data.focusDate.setFullYear(+t.value),this.jS.A1e?(this.RangeCalendar.checkFocusDateValid(),this.RangeCalendar.updateRangeCalendarDom()):this.LH())},O.prototype.attachTimeEvent=function(){var n=this;this.mH.timeContainerDiv.addEventListener("click",function(t){n.setCalendarActivePart(I.Time)}),this.mH.okButton.addEventListener("click",function(t){n.oz()})},O.prototype.BH=function(t){var n,e,t,n=this.jS._data,e=n.selectedDate?new Date(n.selectedDate.valueOf()):new Date,t=t.value;e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),n.selectedDate=e,n.focusDate=new Date(e.valueOf())},O.prototype.oz=function(){var t=this.jS._data;this.fire(o.BaseDropdown.Event_ValueChanged,{oldValue:t.oldSelectedData,newValue:t.selectedDate}),t.oldSelectedData=t.selectedDate},O.prototype.showCalendarPage=function(t){var n,e,i,n=this.host.querySelector("."+nt),e=this.host.querySelector("."+it),i=this.host.querySelector("."+rt);switch(n.style.display="none",e.style.display="none",i.style.display="none",t){case u.CalendarPage.year:n.style.display="";break;case u.CalendarPage.month:e.style.display="";break;case u.CalendarPage.day:i.style.display=""}this.jS._data.calendarPage=t,this.updateCalendarDom()},O.prototype.setCalendarActivePart=function(t){switch(this.jS._data.calendarActivePart=t,this.mH.dateContainerDiv.classList.remove(r),this.jS.HG&&this.mH.timeContainerDiv.classList.remove(r),t){case I.Date:this.jS.HG&&this.mH.dateContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus();break;case I.Time:this.jS.HG&&this.mH.timeContainerDiv.classList.add(r),this.mH.outerContainerDiv.focus()}},O.Event_GetHost="GetHost",Ft=O,Ht=o.BaseDropdown,e(E,Ht),E.prototype.setOptions=function(t){var n,t;t&&(t.showTime||this.A1e||(this.HG=t.showTime,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),n=t&&t.calendarPage?t.calendarPage:u.CalendarPage.day,(t=t&&t.startDay?t.startDay:u.CalendarStartDay.saturday)!==this.dH&&(this.dH=t,this.Ti.innerHTML="",this.Ti.appendChild(this.Dn.createCalendarDom()),this.Dn.attachEvent()),this.Dn.showCalendarPage(n),this.Dn.setCalendarActivePart(I.Date))},E.prototype.setValue=function(t){var n=this._data;if(t){if(this.A1e&&t instanceof Object){if(!t.start||!t.end)return;n.S1e={start:t.start,end:t.end},n.T1e={start:t.start,end:t.end},n.updateCalendarData()}else t instanceof Date&&(n.selectedDate=t,n.oldSelectedData=new Date(t.valueOf()),n.focusDate=new Date(t.valueOf()),n.updateYearRange());n.updateDayFocusDate()}},E.prototype.scrollToSelect=function(){this.Dn.updateCalendarDom()},Bt=E,t.Calendar=Bt,zt=o.BaseDropdown,e(R,zt),R.prototype.setOptions=function(t){s(t.showBuiltInDateRange)&&(t.showBuiltInDateRange=!0),t.showTime=!1,t.calendarPage=u.CalendarPage.day,this.R1e.setOptions(t),this.B1e.setOptions(t)},R.prototype.setValue=function(t){this.R1e.setValue(t),this.B1e.setValue(t),this.updateRangeCalendarDom()},R.prototype.updateRangeCalendarDom=function(){this.R1e.Dn.updateCalendarDom(),this.B1e.Dn.updateCalendarDom(),this.updateDataRangeResult(this.T1e)},R.prototype.L1e=function(){var t,i,t=k.getBuiltInDateRanges(),i=j("div");return i.className=c+" "+vt,t.forEach(function(t,n){var e,n,e=j("div");e.className=dt,e.setAttribute(Nt,n+""),n=P.createTextNode(t[0]),e.appendChild(n),i.appendChild(e)}),this.P1e=i},R.prototype._1e=function(t){var n,e,e;this.Ti.innerHTML="",(n=j("div")).className=c+" "+U,t&&!1===t.showBuiltInDateRange||n.appendChild(this.L1e()),(e=j("div")).classList.add(G),this.R1e=new Bt(e,t,this,1),n.appendChild(e),(e=j("div")).classList.add(G),this.B1e=new Bt(e,t,this,2),n.appendChild(e),this.Ti.appendChild(n),this.Ti.appendChild(this.G1e())},R.prototype.aY=function(){var n=this;this.P1e&&this.P1e.addEventListener("click",function(t){n.U1e(t)}),this.H1e.addEventListener("click",function(t){n.onOkButtonClick(t)}),this.z1e.addEventListener("click",function(t){n.onCancelButtonClick(t)}),this.on(Ft.Event_GetHost,function(t){t.host=n.Ti})},R.prototype.G1e=function(){var t,n,n,e,n,e,t=j("div");return t.className=gt,(n=j("div")).classList.add(wt),t.appendChild(n),this.V1e=n,this.updateDataRangeResult(this.T1e),(n=j("div")).className=bt,(e=j("button")).textContent=g().Cancel,e.className=mt,n.appendChild(e),t.appendChild(n),this.z1e=e,(n=j("div")).className=bt,(e=j("button")).textContent=g().OK,e.className=mt,n.appendChild(e),t.appendChild(n),this.H1e=e,t},R.prototype.U1e=function(t){var t,t,n,t,t=t.srcElement||t.target;t&&(t=t.getAttribute(Nt),s(t)||(t=(n=k.getBuiltInDateRanges())[t],this.T1e={start:t[1].start,end:t[1].end},this.notifyCalendarData(),this.fire(o.BaseDropdown.Event_ValueChanged,{text:k.getShortDate(this.T1e)})))},R.prototype.updateDataRangeResult=function(t){var n,e,i,r,r;if(t&&t.start instanceof Date&&t.end instanceof Date&&(this.V1e.innerHTML="".concat(t.start.toLocaleDateString("en-US"),"-").concat(t.end.toLocaleDateString("en-US"))),this.P1e)for(n=k.getBuiltInDateRanges(),e=0;ethis.MU.stopYear&&(i=this.MU.stopYear),"number"==typeof e&&(t=n.Ti.querySelector("[".concat(g,"='").concat(i,"-").concat(e,"']")))&&(t.classList.add(v),n.Wz&&n.Wz.classList.remove(v),n.Wz=t)},M.prototype.scrollToSelect=function(){var t,t,t=this.Wz;t&&(t=t.offsetTop,this.Ti.scrollTop=t)},M.prototype.Qz=function(t,n){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var n=(this.document||this.ownerDocument).querySelectorAll(t),e=n.length;0<=e&&n.item(e)!==this;)--e;return-1=n&&(c.row+=e)}function k(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;s=n&&(c.col+=e)}function D(t,n,e){var i,r,o,a,u,s,c,f;if(t)for(i in t)if(t.hasOwnProperty(i)&&(r=t[i]))for(o in r)if(r.hasOwnProperty(o)&&(a=r[o])){for(u=[],s=0,c=a;sh&&m&&(i=y.DropDownDirection.Down);break;case y.DropDownDirection.Down:e.height>d&&m&&(i=y.DropDownDirection.Up);break;case y.DropDownDirection.Left:e.width>v&&p&&(i=y.DropDownDirection.Right);break;case y.DropDownDirection.Right:e.width>g&&p&&(i=y.DropDownDirection.Left)}switch(w=b=0,i){case y.DropDownDirection.Up:w=f-e.height;break;case y.DropDownDirection.Down:w=l;break;case y.DropDownDirection.Left:b=s-e.width;break;case y.DropDownDirection.Right:b=c}return i===y.DropDownDirection.Up||i===y.DropDownDirection.Down?r===y.DropDownAlignment.Near?b=s:r===y.DropDownAlignment.Center?b=s-(e.width-n.width)/2:r===y.DropDownAlignment.Far&&(b=c-e.width):i!==y.DropDownDirection.Right&&i!==y.DropDownDirection.Left||(r===y.DropDownAlignment.Near?w=f:r===y.DropDownAlignment.Center?w=f-(e.height-n.height)/2:r===y.DropDownAlignment.Far&&(w=l-e.height)),n=new C(b,w,e.width,e.height),o&&(n.width>t.width?n.x=0:(n.x=Math.max(n.x,0),n.x=Math.min(n.x,t.width-n.width))),a&&(n.height>t.height?n.y=0:(n.y=Math.max(n.y,0),n.y=Math.min(n.y,t.height-n.height))),n.Offset(u),n.Location},f.prototype.render=function(){var n=this;this.aV?(this._oldPosition=this.sourceElement.style.position,this.sourceElement.style.position="absolute",this.uV=this.sourceElement.style.display,this.sourceElement.style.display="",this.sourceElement.style.zIndex="10000",this.sourceElement.classList.add(r),this.cV=this.sourceElement):(this.sV=document.createElement("div"),this.sV.style.cssText="position:absolute; z-index:10000; box-shadow:rgba(0, 0, 0, 0.4) 2px 4px 5px; outline:none",this.sV.classList.add(r),this.sV.appendChild(this.sourceElement),this.MU.hostElement.appendChild(this.sV),this.cV=this.sV),this.MU.Oue&&setTimeout(function(){var t;n.cV&&(t=n.cV.querySelector("[role=menu],[role=listbox]"))&&t.focus()},500)},f.prototype.bindEvent=function(){var n=this;this.MU.closeAfterClickOutside&&(document.addEventListener("mousedown",this.globalMousedownEventHandler,!0),"touchstart MSPointerDown pointerdown".split(" ").forEach(function(t){document.addEventListener(t,n.globalMousedownEventHandler,!0)})),this.MU.closeAfterResize&&document.addEventListener("resize",this.windowResizeEventHandler)},n.PopupControl=f},"./dist/plugins/celltype/editor/slider.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l,h,d,v,g,m,p,b,w,y,M,C;function S(t){return document.createElement(t)}function T(t){var n=t.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/);return t.toFixed(f(0,(n[1]||"").length-parseInt(n[2],10)))}function x(t){var t,n,t=T(t||0),n=0;return n=0<=t.indexOf(".")?t.length-t.indexOf(".")-1:n}function A(){}function I(t,n){this.Wc=n,this.fV={},this.fV=d.extend(this.fV,t)}function N(t,n){this.Wc=n,this.lV={},this.lV=d.extend(this.lV,t)}function k(t,n){this.Wc=t,this.hV={},this.dV="",this.hV=d.extend(this.hV,n),this.dV='\n
\n
\n
\n
{{value}}
\n
\n
\n ')}function j(t,n){this.Wc=n,this.vV={},this.mV=!1,this.gV=c,this.isSelected=!1,this.yme=c,this.vV=d.extend(this.vV,t),this.gV=new m(this.Wc,this.pV())}function D(t,n){this.Wc=n,this.bV={},this.bV=d.extend(this.bV,t)}function _(t,n,e,i,r){this.Wc=t,this.yV=n,this.wV=e,this.endHandle=i,this.MU=r,this.MV=c,this.CV=c,this.MV=new g(this.SV(),this.Wc),this.CV=new b(this.TV(),this.Wc)}function O(t,n){var i=C.call(this,t)||this;return i.yV=c,i.wV=c,i.Y1e=c,i.Z1e=c,i.AV=c,i.Mme=function(t){var t,t,t;d.pauseEvent(t),t=i.AV.getKeyboardValueMutator(t),d.isEmpty(t)||(t=t(i._V.value),(t=i.AV.trimAlignValue(t))!==i._V.value&&(i.setValue(t),i._V.onChange(t),i._V.onAfterChange(t),i.fire(r.BaseDropdown.Event_ValueChanged,{value:t,text:t.toString(),notCloseDropDown:!0})))},i.IV=function(t){0===t.button&&(document.addEventListener("mouseup",i.xV,!1),document.addEventListener("pointerup",i.xV,!1),document.addEventListener("MSPointerUp",i.xV,!1),document.addEventListener("mousemove",i.NV,!1),document.addEventListener("pointermove",i.NV,!1),document.addEventListener("MSPointerMove",i.NV,!1),i.NV(t))},i.NV=function(t){var t,n,t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.xV=function(t){var n,e;i.NV(t),document.removeEventListener("mousemove",i.NV),document.removeEventListener("mouseup",i.xV),document.removeEventListener("pointermove",i.NV),document.removeEventListener("pointerup",i.xV),document.removeEventListener("MSPointerMove",i.NV),document.removeEventListener("MSPointerUp",i.xV),n=i.kV(t,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.EV=function(t){var n=t.target||t.srcElement;document.addEventListener("touchend",i.jV,!1),n.classList.contains("".concat(i._V.prefixCls,"-handle"))?document.addEventListener("touchmove",i.OV,!1):i.OV(t)},i.OV=function(t){var t,t,n,t=t.targetTouches[0],t=i.kV(t,!0),n=i.AV.trimAlignValue(t);i._V.showNumberRange?i.Cme(n,t):i.DV!==n&&(i.setValue(n),i._V.onChange(n))},i.jV=function(t){var n,n,e;document.removeEventListener("touchmove",i.OV),document.removeEventListener("touchend",i.jV),n=t.changedTouches[0],n=i.kV(n,!0),e=i.AV.trimAlignValue(n),i._V.showNumberRange?(i.Cme(e,n),i._V.onAfterChange(i._V.numberRange),i.fire(r.BaseDropdown.Event_ValueChanged,{value:i._V.numberRange,text:i._V.numberRange,notCloseDropDown:!0})):(i.DV=e,i._V.onAfterChange(i._V.value),i.fire(r.BaseDropdown.Event_ValueChanged,{value:e,text:e.toString(),notCloseDropDown:!0})),d.pauseEvent(t)},i.init(n),i}i=this&&this.__extends||(M=function(t,n){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}M(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.Slider=void 0,r=e("./dist/plugins/celltype/editor/baseControl.js"),o=e("Common"),a=e("Core"),u=o.Common.lt.ht,s=o.Common.zf.j0,c=null,f=Math.max,l=Math.min,h=Math.abs,A.isEmpty=function(t){return void 0===t||t===c||""===t||Array.isArray(t)&&0===t.length},A.isEmptyObject=function(t){var n,e,n=!0;for(e in t)if(e){n=!1;break}return n},A.pauseEvent=function(t){t.stopPropagation(),t.preventDefault()},A.isObject=function(t){var n=typeof t;return"function"==n||"object"==n&&!!t},A.allKeys=function(t){var n,e,n=[];if(!A.isObject(t))return[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},A.parseStyleObject=function(t){var n,e,i,r,o,a,o;if(!A.isObject(t))return"";for(n="",i=0,r=(e=A.allKeys(t)).length;ithis._V.max&&(this._V.max=this._V.min),u(t.tooltipVisible)||(this._V.tooltipVisible=t.tooltipVisible),u(t.showNumberRange)||(this._V.showNumberRange=!!t.showNumberRange),this._V.marks={},t.marks)&&t.marks.forEach(function(t){var t,n,t=parseFloat(t);isNaN(t)||t>=e._V.min&&t<=e._V.max&&(n=new o.Formatter.GeneralFormatter(e._V.formatString),e._V.marks[t]={label:n.format(t)})})},O.prototype.sY=function(t,n){var t;u(t)||(t=parseFloat(t),isNaN(t))||(this._V[n]=t)},O.prototype.iY=function(){return{className:"".concat(this._V.prefixCls,"-track"),included:this._V.included,direction:this._V.direction,offset:0,length:0}},O.prototype.rY=function(){return{prefixCls:this._V.prefixCls,className:"".concat(this._V.prefixCls,"-handle"),direction:this._V.direction,disabled:this._V.disabled,min:this._V.min,max:this._V.max,value:this._V.value,offset:0,tabIndex:0,tooltipVisible:this._V.tooltipVisible,formatString:this._V.formatString,showNumberRange:this._V.showNumberRange,numberRange:this._V.numberRange}},O.prototype.oY=function(){return{prefixCls:this._V.prefixCls,min:this._V.min,max:this._V.max,value:this._V.value,disabled:this._V.disabled,direction:this._V.direction,dots:this._V.dots,step:this._V.step,included:this._V.included,marks:this._V.marks,showNumberRange:this._V.showNumberRange}},O.prototype.UV=function(){var t="".concat(this._V.prefixCls);return this._V.direction===a.LayoutDirection.vertical&&(t+=" ".concat(this._V.prefixCls,"-vertical")),d.isEmptyObject(this._V.marks)||(t+=" ".concat(this._V.prefixCls,"-with-marks")),this._V.disabled&&(t+=" ".concat(this._V.prefixCls,"-disabled")),t},O.prototype.dispose=function(){var t=this.yV.Wc;t&&(t.removeEventListener("mousedown",this.IV),t.removeEventListener("pointerdown",this.IV),t.removeEventListener("MSPointerDown",this.IV),t.removeEventListener("touchstart",this.EV),t.removeEventListener("keyup",this.Mme)),this.yV.Wc=c,this.wV&&this.wV.dispose(),this.wV=c,this.Y1e&&this.Y1e.dispose(),this.Y1e=c,this.Z1e&&this.Z1e.dispose(),this.Z1e=c,C.prototype.dispose.call(this)},n.Slider=O},"./dist/plugins/celltype/editor/timepicker.js":function(t,n,e){"use strict";var i,r,o,a,u,s,c,f,l;function h(t,n){var t=l.call(this,t)||this;return t.Hc(),t.setOptions(n),t}i=this&&this.__extends||(f=function(t,n){return(f=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),Object.defineProperty(n,"__esModule",{value:!0}),n.TimePicker=void 0,r=e("./dist/plugins/celltype/editor/listControl.js"),o=e("./dist/plugins/celltype/editor/baseControl.js"),a="undefined",u=e("Common"),s=u.Common.lt.ht,l=o.BaseDropdown,i(h,l),h.prototype.setOptions=function(t){var n,n,n,n;t&&(null!==(n=this.cY(t.min))&&(this.MU.min=n),null!==(n=this.cY(t.max))&&(this.MU.max=n),null!==(n=this.cY(t.step))&&(this.MU.step=n),s(t.formatString)||(this.MU.formatString=t.formatString),s(t.height)||(n=parseInt(t.height,10),isNaN(n))||(this.MU.height=n),this.MU.height=Math.max(1,this.MU.height)),this._6()},h.prototype.setValue=function(t){void 0!==t&&(this.Bz={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()},this.fY=t,this.yz(),this.scrollToSelect())},h.prototype.scrollToSelect=function(){var t,t,t=this.gz.querySelector(".selected");null!==t&&(t=t.offsetTop,this.Wc.scrollTop=t)},h.prototype.Hc=function(){var n=this;this.MU={min:{},max:{hour:23,minute:59,second:59},step:{hour:1},formatString:"hh:mm",height:200},this.gz=document.createElement("div"),this.gz.classList.add("gc-time-picker-outer-div"),this.gz.addEventListener("click",function(t){n.pz(t)}),this.Ti.appendChild(this.gz)},h.prototype.cY=function(t){var n,e,e,e,n=null;return s(t)||(n={},s(t.hour)||(e=parseInt(t.hour,10),isNaN(e))||(n.hour=e),s(t.minute)||(e=parseInt(t.minute,10),isNaN(e))||(n.minute=e),s(t.second))||(e=parseInt(t.second,10),isNaN(e))||(n.second=e),n},h.prototype._6=function(){this.gz.innerHTML="",new r.List(this.gz,this.lY()),this.yz()},h.prototype.yz=function(){var t,n,e,i,r,t=this.gz.querySelectorAll(".gc-time-picker-li");if(0r.MU.height&&0<=r.MU.height?n.style.overflowY="scroll":n.style.overflowY="hidden",n.appendChild(e),n}}},h.prototype.vY=function(t){var n=document.createElement("li");return n.classList.add("gc-time-picker-li"),n.setAttribute("hour",t.hour.toString()),n.setAttribute("minute",t.minute.toString()),n.setAttribute("second",t.second.toString()),n.innerText=this.mY(t),n},h.prototype.dY=function(){for(var t,n,e,t=this.gY(this.MU.min),n=this.gY(this.MU.max),e=[];t<=n;)e.push({hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()}),t=this.pY(t,this.MU.step);return e},h.prototype.pY=function(t,n){return typeof n.hour!=a&&t.setHours(t.getHours()+n.hour),typeof n.minute!=a&&t.setMinutes(t.getMinutes()+n.minute),typeof n.second!=a&&t.setSeconds(t.getSeconds()+n.second),t},h.prototype.mY=function(t){var n,e,t,n=new Date;return n.setHours(t.hour),n.setMinutes(t.minute),n.setSeconds(t.second),(t=(e=new u.Formatter.GeneralFormatter(this.MU.formatString)).format(n))&&""!==t&&null!==t?t:this.bY(n)},h.prototype.bY=function(t){var n,t,e,i,r,n=t.getHours(),t=t.getMinutes(),e,i,r;return(n<12?"AM":"PM")+" "+(0===n||12===n?"12":(n%12).toString())+":"+(t<10?"0"+t.toString():t.toString())},h.prototype.gY=function(t){var n=new Date;return n.setHours(t.hour||0),n.setMinutes(t.minute||0),n.setSeconds(t.second||0),n},h.prototype.hY=function(t,n){return!(!t||!n)&&(t=this.yY(t),n=this.yY(n),t.hour===n.hour)&&t.minute===n.minute&&t.second===n.second},h.prototype.yY=function(t){return{hour:t.hour||0,minute:t.minute||0,second:t.second||0}},h.prototype.pz=function(t){var t,n,e,t,i,r,r,t=t.target;t&&(n=+t.getAttribute("hour"),e=+t.getAttribute("minute"),t=+t.getAttribute("second"),(i=this.fY||new Date).setHours(n),i.setMinutes(e),i.setSeconds(t),i.setMilliseconds(0),r=(new u.Common.CultureInfo).DateTimeFormat,r=new u.Formatter.GeneralFormatter(r.defaultDatePattern).format(i),this.fire(o.BaseDropdown.Event_ValueChanged,{value:i,text:r}),this.Bz={hour:n,minute:e,second:t},this.yz())},n.TimePicker=h},"./dist/plugins/celltype/editor/workflowPicker.js":function(t,n,e){"use strict";var i,r,o,e,s,a,u,c;function f(t,n){var e=c.call(this,t)||this;return e.wY=new o.List(t),e.wY.on(r.BaseDropdown.Event_ValueChanged,function(t){e.fire(r.BaseDropdown.Event_ValueChanged,t)}),e.setOptions(n),e}function l(t,n){var i,r,o,e,a,u,i={items:[]},r=t.items,o=r.filter(function(t){return t.value===n})[0];if(s(o)&&r&&0\n
\n \n \xd7\n
\n
\n #\n
\n\n '},n.T9e=u},"./dist/plugins/celltype/fileUploadCellType/fileUploadCellType.js":function(t,n,e){"use strict";var i,r,o,h,a,u,y,f,M,e,o,s,l,c,d,v;function g(){var t=v.call(this)||this;return t.typeName="19",t._text=(0,y.getSR)().FileUpload_Title,t.N9e=l,t.j9e=l,t._9e=22,t.Hc(),t}i=this&&this.__extends||(d=function(t,n){return(d=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}))(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var n,e,i,r,e=1,i=arguments.length;ethis._9e?this._9e:.2*i,r;return{iconSize:n,space:(i-n*t)/(t+1)}},g.prototype.H9e=function(t){var n=t.BO();Object.values(y.ICON_MAP).forEach(function(t){n.addImage(t,"anonymous")})},g.prototype.R9e=function(t,n,e,i,r){var o,a,u,s,a,c,a,i,o=t.Ut.getFileGUID(n,e),a=t.VTe(),u=t.getValue(n,e),s=a.Wxn(o,!0),a=a.FHe(o),c=this._valuePath;if(a||!u)return s&&(i?s:(a={dataUrl:s.dataUrl,blob:s.blob,name:s.name},i=(0,y.getValueByValuePath)(a,c,s),(0,y.isFileInfoEqual)(i,u)||r?a:void(0,y.x9e)({row:n,col:e,value:u,valuePath:c,fileGUID:o},t,void 0,!0)));(0,y.x9e)({row:n,col:e,value:u,fileGUID:o,valuePath:c},t,void 0,!0)},g.prototype.paintValue=function(t,n,e,i,r,o,a,u){var s,c,f,l,h,d,v,g,g,s=this;t&&(c=e+s._marginLeft,f=i+s._marginTop,l=r-s._marginLeft-s._marginRight,h=o-s._marginTop-s._marginBottom,d=eu._9e?4:2,i.fillRect(e-n,l-n,c+2*n,c+2*n)),i.drawImage(t,e,l,c,c))}),i.restore()},g.prototype.J9e=function(t,n,e,i,r,o){var a,n,u,s,i,e,c,o;this.isClearEnabled()&&(a=o.sheet.BO(),t.save(),t.beginPath(),i=n+i-(n=this.U9e(o.sheet,o.row,o.col,i).iconSize)-4,e=e+(s=u=2)+2,c=y.ICON_MAP.clear,a.getImage(c)||this.H9e(o.sheet),a.getState(c)&&a.qh(c)&&(o=a.getImage(c),"clear"===this.j9e&&(t.fillStyle="rgba(255, 255, 255, 0.3)",t.fillRect(i-2,e-2,n+4,n+4)),t.drawImage(o,i,e,n,n)),t.restore())},g.prototype.processMouseUp=function(t){var n,n,e,i,r,n={cancel:!1,sheet:t.sheet};if(h.Worksheet.et(t.sheet,"preUploadFile",n),!n.cancel&&this.K9e(t))return n=t.sheet,e=t.row,i=t.col,this.F9e(n,e,i)?(this.X9e(t),!0):!(this.O9e(n,e,i)||(this.H9e(n),!n)||!t.isReservedLocation||((r=this.q9e(t)).click(),0))},g.prototype.processMouseEnter=function(t){var n,e,t;return!!this.K9e(t)&&(n=t.sheet,e=t.row,t=t.col,this.N9e={row:e,col:t},n.zw(),!0)},g.prototype.processMouseLeave=function(t){return this.K9e(t)&&(this.N9e=l,t.sheet.zw()),!1},g.prototype.processMouseMove=function(t){var n,n,e,i,r,n;return!!this.K9e(t)&&(e=t.sheet,i=t.row,r=t.col,this.N9e&&(null==(n=this.N9e)?void 0:n.col)===r&&(null==(n=this.N9e)?void 0:n.row)===i||(this.N9e={row:i,col:r}),!!this.F9e(e,i,r))&&((n=this.$9e(t))!==this.j9e&&(this.j9e=n,e.zw()),!0)},g.prototype.getHitInfo=function(t,n,e,i,r){var o,a,u,s,c,o,i,o=this;return r&&(a=r.sheetArea,f(a)||3===a)&&i?(u=i.x+o._marginLeft,s=i.x+i.width-o._marginRight,c=i.y+o._marginTop,o=i.y+i.height-o._marginBottom,i={x:t,y:n,row:r.row,col:r.col,cellRect:i,sheetArea:a,sheet:r.sheet,cellStyle:e},u<=t&&t<=s&&c<=n&&n<=o&&(i.isReservedLocation=!0),i):l},g.prototype.getOperationRects=function(t){var n,e,i,r,o,e,i,r,e,a,r,e,n={},e=t.sheet,i=t.row,r=t.col,o=this.P9e(e,i,r),e=this.U9e(e,i,r,t.cellRect.width),i=e.iconSize,r=e.space,e=t.cellRect.y+(t.cellRect.height-i)/2,a={x:t.cellRect.x+r-2,y:e-2,width:i+4,height:i+4},r={x:t.cellRect.x+i+2*r-2,y:e-2,width:i+4,height:i+4};return 2===o.length?(n[o[0]]=a,n[o[1]]=r):1===o.length&&(n[o[0]]=a),this.isClearEnabled()&&(e={x:t.cellRect.x+t.cellRect.width-i-6,y:t.cellRect.y-2,width:i+4,height:i+8},n.clear=e),n},g.prototype.$9e=function(t){var n,e,i,r,o,r,n,e,i,r,e,t,o,n=t.sheet,e=t.row,i=t.col,r=this.U9e(n,e,i,t.cellRect.width),o=r.iconSize,r=r.space,n=this.P9e(n,e,i),e=t.cellRect.y+(t.cellRect.height-o)/2,i=t.x>=t.cellRect.x+r-2&&t.x<=t.cellRect.x+o+r+2,r=t.x>=t.cellRect.x+o+2*r-2&&t.x<=t.cellRect.x+2*o+2*r+2,e=t.y>=e-2&&t.y<=e+o+2,t=t.x>=t.cellRect.x+t.cellRect.width-o-6&&t.x<=t.cellRect.x+t.cellRect.width-2&&t.y>=t.cellRect.y-2&&t.y<=t.cellRect.y+o+6&&this.isClearEnabled(),o=i&&e?n[0]:r&&e?n[1]:t?"clear":l;return o},g.prototype.q9e=function(t){var n,e,i,n=this,e="sjs-fake-file-upload-dom";return document.getElementById(e)&&document.getElementById(e).remove(),(i=document.createElement("input")).type="file",i.style.display="none",i.accept=n.accept(),i.id=e,i.addEventListener("change",function(){n.D7e(t,i),i.remove()}),document.body.appendChild(i),i},g.prototype.G7e=function(t,n,e,i){var r=this.R9e(t,n,e);(0,y.x9e)({row:n,col:e,value:i,oldValue:r,valuePath:this._valuePath},t,!0)},g.prototype.D7e=function(t,n){var e,i,t,n,r,r,e=t.sheet,i=t.row,t=t.col,n=n.files[0];n&&(n.size>1024*this.maxSize()?(r={row:i,col:t,maxSize:this.maxSize(),fileSize:n.size},e.jT(h.InvalidOperationType.sizeLimitExceeded,e.A9e(),r)):(r={name:n.name,blob:n},this.G7e(e,i,t,r)))},g.prototype.U7e=function(t,n){var e,i,r,o,e=t.sheet,i=t.col,r=t.row,o=this.R9e(e,r,i);if(this.E9e(o)){switch(n){case"preview":this.V7e(o,t);break;case"download":this.Y7e(e,r,i);break;case"clear":this.Z7e(e,r,i)}this.N9e=l,this.j9e=l}},g.prototype.K9e=function(t){var n=t.sheet,e=t.col,t=t.row;return!(n.isActualProtected()&&n.getCell(t,e).locked())},g.prototype.Q7e=function(t){var n;new a.T9e(document.body,2e3,!0).rQ(t.name,t.dataUrl)},g.prototype.V7e=function(t,n){var e,i,n,n,i;this.previewCommand?(e=n.sheet,i=n.col,n=n.row,n=r(r({},t),{sheetName:e.name(),row:n,col:i}),"function"==typeof this.previewCommand?this.previewCommand(n):"string"==typeof this.previewCommand&&null!=(i=e.getParent())&&i.commandManager().execute(r({cmd:this.previewCommand},n))):this.Q7e(t)},g.prototype.Y7e=function(t,n,e){var t,n,t=this.R9e(t,n,e,!0);t&&((n=document.createElement("a")).href=t.dataUrl,n.download=t.name,n.type=t.type,n.click())},g.prototype.Z7e=function(t,n,e){this.G7e(t,n,e)},g.prototype.X9e=function(t){this.j9e===l&&(this.j9e=this.$9e(t)),this.U7e(t,this.j9e)},g.prototype.Je=function(t){var t,n,n={marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,maxSize:t.maxSize,accept:t.accept,isPreviewEnabled:t.isPreviewEnabled,isDownloadEnabled:t.isDownloadEnabled,isClearEnabled:t.isClearEnabled};t.hasOwnProperty("valuePath")&&(n.valuePath=null!=(t=t.valuePath)?t:null),this.fromJSON(n)},g.prototype.toJSON=function(){var e,i,r,e=this,i={typeName:e.typeName};return s(y.defaultFileUploadProps,function(t,n){(r=e["_"+t])!==n&&(i[t]=r)}),i},g.prototype.fromJSON=function(e){var i=this;s(y.defaultFileUploadProps,function(t){var n=e[t];void 0!==n&&(i["_"+t]=n)})},c=g,n.FileUpload=c,s(y.defaultFileUploadProps,function(n){c.prototype[n]=function(t){return 0===arguments.length?this["_"+n]:(this["_"+n]=t="valuePath"===n&&void 0===t?null:t,this)}}),(0,u.registerFeatures)(),h.CellTypes.ti[19]=c},"./dist/plugins/celltype/fileUploadCellType/utils.js":function(t,g,n){"use strict";var e,n,n,i,r,m,o,a;function u(t,n,e){if(e||t){if("string"==typeof n)return(e||t)[n];if(e&&e.hasOwnProperty(n))return e[n];if(i(n)&&e)return e.cellValue}return t}function s(t,n){var e,i,r,o,e=typeof t,i;if(e!=typeof n)return!1;if("string"==e)return t===n;if("object"==e){if(t instanceof Blob||n instanceof Blob)return t===n;if(t&&n)return t.blob===n.blob&&t.dataUrl===n.dataUrl&&t.name===n.name}return!0}Object.defineProperty(g,"__esModule",{value:!0}),g.isFileInfoEqual=g.getValueByValuePath=g.x9e=g.Hne=g.E9e=g.defaultFileUploadProps=g.MIMETYPE_TO_FILE_EXTENSION_MAP=g.IMAGE_FILE_EXTENSIONS=g.ICON_MAP=g.getSR=void 0,e=n("Common"),n=n("./dist/plugins/celltype/celltypes.ns.js"),n=new e.Common.ResourceManager(n.SR,"CellTypes"),i=e.Common.lt.ht,g.getSR=n.getResource.bind(n),g.ICON_MAP={commonFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y29tbW9uIGZpbGUgaW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImNvbW1vbi1maWxlLWltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNNTAsMiBDNTIuMjA5MTM5LDIgNTQsMy43OTA4NjEgNTQsNiBMNTQsNTggQzU0LDYwLjIwOTEzOSA1Mi4yMDkxMzksNjIgNTAsNjIgTDE0LDYyIEMxMS43OTA4NjEsNjIgMTAsNjAuMjA5MTM5IDEwLDU4IEwxMCwxOC4xMDEwNzQyIEwyMS45NjMzNzg5LDE4LjEwMTA3NDIgQzI0LjE3MjUxNzksMTguMTAxMDc0MiAyNS45NjMzNzg5LDE2LjMxMDIxMzIgMjUuOTYzMzc4OSwxNC4xMDEwNzQyIEwyNS45NjMzNzg5LDIgTDUwLDIgWiBNMjMsMiBMMjMsMTUgTDEwLDE1IEwyMywyIFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70iIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",errorFile:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZXJyb3IgSW1hZ2U8L3RpdGxlPgogICAgPGcgaWQ9ImVycm9yLUltYWdlIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgOC4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0i5b2i54q257uT5ZCILXBhdGjlpIfku70tMiIgZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSI2MCA0LjI2MzI1NjQxZS0xNCAwIDQuMjYzMjU2NDFlLTE0IDAgNDguOTQ3MzY4NCA2MCA0OC45NDczNjg0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNi44MjYsMCBMMzIsMTEuMzMwMDc4MSBMMjIsMjMuMTIxMDkzNyBMMjksMzguODQzNzUgTDI0LjEyOCw0OCBMNCw0OCBDMS43OTA4NjEsNDggLTEuMTk2OTk2ODhlLTE1LDQ2LjIwOTEzOSAwLDQ0IEwwLDQgQy0yLjcwNTQxNWUtMTYsMS43OTA4NjEgMS43OTA4NjEsLTEuMDYxNzI2MTNlLTE1IDQsMCBMMjYuODI2LDAgWiBNNTYsMCBDNTguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiA2MCwxLjc5MDg2MSA2MCw0IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDk0LDQ4IEwzNiwzOC42MjY5NTMxIEwyOSwyMy40OTgwNDY5IEwzOSwxMS4yNTM5MDYyIEwzMy44MzYsMCBMNTYsMCBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRTVFNUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xNi4zNjU2ODUxLDE1IEwyMy4wMzEsMjIuMDA3IEwyMiwyMy4xMjEwOTM3IEwyOSwzOC44NDM3NSBMMjQuMTI3LDQ4IEw0LDQ4IEMxLjc5MDg2MSw0OCAyLjc2Njg4MDE4ZS0xNCw0Ni4yMDkxMzkgMi44NDIxNzA5NGUtMTQsNDQgTDIuODQyMTcwOTRlLTE0LDMxLjIxMTA3MTIgTDE2LjM2NTY4NTEsMTUgWiBNNDguMzkxNjc2OCwyNi4wMTg3NTQyIEw2MCwzNS42NDIyNzM1IEw2MCw0NCBDNjAsNDYuMjA5MTM5IDU4LjIwOTEzOSw0OCA1Niw0OCBMMzEuMDkzLDQ4IEwzNiwzOC42MjY5NTMxIEwzMy4zMDcsMzIuODA4IEwzNy44MjA3NjkyLDM3LjU1MjcyODggTDM3LjgyMjI2NTUsMzcuMDA5MzkxNCBMNDguMzkxNjc2OCwyNi4wMTg3NTQyIFogTTQ4LDcgQzUwLjIwOTEzOSw3IDUyLDguNzkwODYxIDUyLDExIEM1MiwxMy4yMDkxMzkgNTAuMjA5MTM5LDE1IDQ4LDE1IEM0NS43OTA4NjEsMTUgNDQsMTMuMjA5MTM5IDQ0LDExIEM0NCw4Ljc5MDg2MSA0NS43OTA4NjEsNyA0OCw3IFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9IiNEM0QzRDMiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",preview:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+cHJldmlldyBpbWFnZTwvdGl0bGU+CiAgICA8ZyBpZD0icHJldmlldy1pbWFnZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEwLjAwMDE0NzMsMyBDMTIuMjM1MDA1NSwzIDE0LjI1ODM2MzUsMy45OTU2OCAxNS44Njk3MjE0LDUuMTYyMDIgQzE3LjQ4NzcyMjEsNi4zMzMyNiAxOC43NTY4NjU1LDcuNzI0NTggMTkuNDk4NTA4Nyw4LjYyNjYgTDE5LjMxMiw4Ljc3MyBMMTkuNDk4OTM3Myw4LjYyNzE2IEMyMC4xMjc1NzYyLDkuMzkzMjQgMjAuMTY0OTM0NiwxMC40MjkxMTIxIDE5LjYwOTY0MjgsMTEuMjI2Njk4OSBMMTkuNDk4NTgwMSwxMS4zNzMzMyBMMTkuMzQzMTk5NywxMS41NjAxMTc4IEMxOC41ODYwOTU5LDEyLjQ1OTk1MTIgMTcuMzc5ODU1NCwxMy43NDQ4MjI3IDE1Ljg2OTcyMTQsMTQuODM3OTggQzE0LjI1ODM2MzUsMTYuMDA0MzIgMTIuMjM1MDA1NSwxNyAxMC4wMDAxNDczLDE3IEM3Ljc2NTI4OTE4LDE3IDUuNzQxOTMxMTMsMTYuMDA0MzIgNC4xMzA2NDQ3LDE0LjgzNzk4IEMyLjUxMzU3MjU1LDEzLjY2NzQ0IDEuMjQ1MDAwNTYsMTIuMjc3MSAwLjUwMzE0MzA4MiwxMS4zNzUwOCBDMC4xNzk1MDAwOCwxMC45ODU5NSAwLDEwLjUwMjMyIDAsMTAgQzAsOS40OTc2OCAwLjE3OTUwMDA4LDkuMDE0MDUgMC41MDMyMTQ1MSw4LjYyNDkyIEMxLjI0NTAwMDU2LDcuNzIyODMgMi41MTM2NDM5OCw2LjMzMjU2IDQuMTMwNjQ0Nyw1LjE2MjAyIEM1Ljc0MTkzMTEzLDMuOTk1NjggNy43NjUyODkxOCwzIDEwLjAwMDE0NzMsMyBaIE0xMC4wMDAxNTQ3LDQgQzguMTA1MDUzNyw0IDYuMjkyMDc3NzYsNC44NjgwNSA0LjcyODMyNjk0LDYuMDIzMDUgQzMuMTcxNjI2MTMsNy4xNzI4NzUgMS45MzA1MjU0OCw4LjU1NjcgMS4xOTQ5MjUxLDkuNDY5Njc1IEMxLjA2NDgwMDAzLDkuNjI4ODI1IDEsOS44MTQxNSAxLDEwIEMxLDEwLjE4NTg1IDEuMDY0ODAwMDMsMTAuMzcxMTc1IDEuMTkxNjI1MSwxMC41MjYzNSBDMS45MzA1MjU0OCwxMS40NDMzIDMuMTcxNjI2MTMsMTIuODI3MTI1IDQuNzI4MzI2OTQsMTMuOTc2OTUgQzYuMjkyMDc3NzYsMTUuMTMxOTUgOC4xMDUwNTM3LDE2IDEwLjAwMDE1NDcsMTYgQzExLjg5NTMzMDcsMTYgMTMuNzA4MjMxNiwxNS4xMzE5NSAxNS4yNzE5ODI0LDEzLjk3Njk1IEMxNi44Mjg2MDgyLDEyLjgyNzIgMTguMDY5NzA4OSwxMS40NDM0NSAxOC44MDUzMDkzLDEwLjUzMDQ3NSBDMTkuMDY0NzM0NCwxMC4yMDg0MjUgMTkuMDY1MTg0NCw5Ljc5MjcgMTguODA0OTM0Myw5LjQ2OTA3NSBDMTguMDY5MjU4OSw4LjU1NjEgMTYuODI4MzgzMiw3LjE3MjY1IDE1LjI3MTk4MjQsNi4wMjMwNSBDMTMuNzA4MjMxNiw0Ljg2ODA1IDExLjg5NTMzMDcsNCAxMC4wMDAxNTQ3LDQgWiBNOS45OTk5NjA0NSw2IEMxMi4xNzA5ODU2LDYgMTQsNy43NTIwNzQyOCAxNCwxMCBDMTQsMTIuMjQ3OTI1NyAxMi4xNzA5ODU2LDE0IDkuOTk5OTYwNDUsMTQgQzcuODI5MDE0MzcsMTQgNiwxMi4yNDc5MjU3IDYsMTAgQzYsNy43NTIwNzQyOCA3LjgyOTAxNDM3LDYgOS45OTk5NjA0NSw2IFogTTkuOTk5OTUwOTMsNyBDOC4yOTU3MTY2LDcgNyw4LjM5MjUzMDg5IDcsMTAgQzcsMTEuNjA3NDY5MSA4LjI5NTcxNjYsMTMgOS45OTk5NTA5MywxMyBDMTEuNzA0MTg1MywxMyAxMywxMS42MDc0NjkxIDEzLDEwIEMxMyw4LjM5MjUzMDg5IDExLjcwNDE4NTMsNyA5Ljk5OTk1MDkzLDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",download:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZG93bmxvYWQgZmlsZXM8L3RpdGxlPgogICAgPGcgaWQ9ImRvd25sb2FkLWZpbGVzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTEuMDg4Nzc5NSwyLjM3ODY0NTkgTDE1Ljk2NTI4NTUsNyBMMTUuOTY1Mjg1NSw3IEwxNS45NjUyODU1LDggTDExLjA4ODc3OTUsMTIuNjIxMzU0MSBDMTAuODg2Nzg2NiwxMi44MTI3NzgxIDEwLjU2OTA4NTEsMTIuODA4NTExNSAxMC4zNzIzMDU3LDEyLjYxMTczMjEgQzEwLjE4MDkxNTIsMTIuNDIwMzQxNiAxMC4xODA5MTUyLDEyLjExMDAzNjQgMTAuMzcyMzA1NywxMS45MTg2NDU5IEMxMC4zNzQ2MTksMTEuOTE2MzMyNiAxMC4zNzY5NTU0LDExLjkxNDA0MjUgMTAuMzc5MzE0NiwxMS45MTE3NzYgTDE0LjQ1MTI4NTUsNy45OTk3MTQ1IEwxNC40NTEyODU1LDcuOTk5NzE0NSBMNS40NjUyODU1LDcuOTk5OTg0OTUgQzUuMTg5MTUxNDQsNy45OTk5OTMyNiA0Ljk2NTI5MzgxLDcuNzc2MTQ5MTEgNC45NjUyODU1LDcuNTAwMDE1MDUgQzQuOTY1Mjg1NSw3LjUwMDAxMDAzIDQuOTY1Mjg1NSw3LjUwMDAwNTAyIDQuOTY1Mjg1NSw3LjUgQzQuOTY1Mjg1NSw3LjIyMzg1NTE5IDUuMTg5MTQwNjksNi45OTk5OTMyNiA1LjQ2NTI4NTUsNi45OTk5ODQ5NSBMMTQuNDUxMjg1NSw2Ljk5OTcxNDUgTDE0LjQ1MTI4NTUsNi45OTk3MTQ1IEwxMC4zNzkzMzc4LDMuMDg4MTk5ODcgQzEwLjE4NDE1MzcsMi45MDA3MDU5NCAxMC4xNzc5MTk2LDIuNTkwNDg0MDkgMTAuMzY1NDEzNSwyLjM5NTI5OTk5IEMxMC4zNjc2ODczLDIuMzkyOTMyOTQgMTAuMzY5OTg0OCwyLjM5MDU4ODc5IDEwLjM3MjMwNTcsMi4zODgyNjc5IEMxMC41NjkwODUxLDIuMTkxNDg4NDcgMTAuODg2Nzg2NiwyLjE4NzIyMTg1IDExLjA4ODc3OTUsMi4zNzg2NDU5IFoiIGlkPSLlvaLnirbnu5PlkIjlpIfku70tM+Wkh+S7vSIgZmlsbD0iI0ZGRkZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuNDY1Mjg1LCA3LjUwMDAwMCkgc2NhbGUoLTEsIC0xKSByb3RhdGUoLTkwLjAwMDAwMCkgdHJhbnNsYXRlKC0xMC40NjUyODUsIC03LjUwMDAwMCkgIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTE3LjE0NjM2MzYsMTEuMTQ2MzYzNSBDMTcuMDUyNTc5MSwxMS4yNDAxNDggMTYuOTk5OTI0OSwxMS4zNjczNjg2IDE3LDExLjQ5OTk5OSBMMTcsMTUuOTk5OTk5IEw0LDE1Ljk5OTk5OSBMNCwxMS40OTk5OTkgQzQsMTEuMjIzODU3NSAzLjc3NjE0MjQ2LDEwLjk5OTk5OSAzLjUsMTAuOTk5OTk5IEMzLjIyMzg1NzcxLDEwLjk5OTk5OSAzLDExLjIyMzg1NzUgMywxMS40OTk5OTkgTDMsMTYuNDk5OTk5IEMzLDE2LjYzMjYzMTIgMy4wNTI1NzkxMiwxNi43NTk4NTE5IDMuMTQ2MzYzNjIsMTYuODUzNjM2NCBDMy4yNDAxNDgxMiwxNi45NDc0MjA5IDMuMzY3MzY4NzksMTcuMDAwMDc1MSAzLjUsMTYuOTk5OTk5IEwxNy41LDE2Ljk5OTk5OSBDMTcuNjMyNjMxNCwxNy4wMDAwNzUxIDE3Ljc1OTg1MiwxNi45NDc0MjA5IDE3Ljg1MzYzNjUsMTYuODUzNjM2NCBDMTcuOTQ3NDIxLDE2Ljc1OTg1MTkgMTgsMTYuNjMyNjMxMiAxOCwxNi40OTk5OTkgTDE4LDExLjQ5OTk5OSBDMTgsMTEuMzY3MzY4NiAxNy45NDc0MjEsMTEuMjQwMTQ4IDE3Ljg1MzYzNjUsMTEuMTQ2MzYzNSBDMTcuNzU5ODUyLDExLjA1MjU3OSAxNy42MzI2MzE0LDEwLjk5OTkyNDcgMTcuNSwxMC45OTk5OTkgQzE3LjM2NzM2ODgsMTAuOTk5OTI0NyAxNy4yNDAxNDgxLDExLjA1MjU3OSAxNy4xNDYzNjM2LDExLjE0NjM2MzUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",clear:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2xlYXIgdXBsb2FkZWQgZmlsZTwvdGl0bGU+CiAgICA8ZyBpZD0iY2xlYXItdXBsb2FkZWQtZmlsZSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTE2LjgyNTEzNjUsNC4wMTU0OCBDMTcuMDU4Mjg3OCwzLjc4MzE4NTQgMTcuMDU4Mjg3OCwzLjQwNjUxODQzIDE2LjgyNTEzNjUsMy4xNzQyMjA5NSBDMTYuNTkzMzMyLDIuOTQxOTI2MzUgMTYuMjE3MTU1MSwyLjk0MTkyNjM1IDE1Ljk4NDQ5NDUsMy4xNzQyMjA5NSBMMTAuMDAwMjM0OCw5LjE1ODcyNDYyIEw0LjAxNTQ4LDMuMTc0MjIwOTUgQzMuNzgzMTg1NCwyLjk0MTkyNjM1IDMuNDA2NTE4NDMsMi45NDE5MjYzNSAzLjE3NDIyMDk1LDMuMTc0MjIwOTUgQzIuOTQxOTI2MzUsMy40MDY1MTU1NiAyLjk0MTkyNjM1LDMuNzgzMTgyNTMgMy4xNzQyMjA5NSw0LjAxNTQ4IEw5LjE1ODg1Mzc4LDEwLjAwMDExMjggTDMuMTc0MjIwOTUsMTUuOTg1MTExNiBDMi45NDE5MjYzNSwxNi4yMTc1MjgyIDIuOTQxOTI2MzUsMTYuNTkzNDYwNCAzLjE3NDIyMDk1LDE2LjgyNTg3NTYgQzMuNDA2NTE1NTYsMTcuMDU4MjkyMiAzLjc4MzE4MjUzLDE3LjA1ODI5MjIgNC4wMTU0OCwxNi44MjU4NzU2IEwxMC4wMDAyMzQ4LDEwLjg0MTM3MTkgTDE1Ljk4NDQ5NDUsMTYuODI1ODc1NiBDMTYuMjE3MTU2NSwxNy4wNTgyOTIyIDE2LjU5MzQ1NjEsMTcuMDU4MjkyMiAxNi44MjUxMzY1LDE2LjgyNTg3NTYgQzE3LjA1ODI4NzgsMTYuNTkzODI2MyAxNy4wNTgyODc4LDE2LjIxNzUyNjcgMTYuODI1MTM2NSwxNS45ODUxMTE2IEwxMC44NDEzNjQ3LDEwLjAwMDExMjggTDE2LjgyNTEzNjUsNC4wMTU0OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},g.IMAGE_FILE_EXTENSIONS=["jpg","jpeg","png","gif","bmp","svg","ico","webp"],g.MIMETYPE_TO_FILE_EXTENSION_MAP={"image/jpeg":g.IMAGE_FILE_EXTENSIONS[1],"image/jpg":g.IMAGE_FILE_EXTENSIONS[0],"image/png":g.IMAGE_FILE_EXTENSIONS[2],"image/gif":g.IMAGE_FILE_EXTENSIONS[3],"image/bmp":g.IMAGE_FILE_EXTENSIONS[4],"image/svg+xml":g.IMAGE_FILE_EXTENSIONS[5],"image/x-icon":g.IMAGE_FILE_EXTENSIONS[6],"image/webp":g.IMAGE_FILE_EXTENSIONS[7]},g.defaultFileUploadProps={marginTop:2,marginRight:2,marginBottom:2,marginLeft:2,maxSize:2048,accept:"",isPreviewEnabled:!0,isDownloadEnabled:!0,isClearEnabled:!0,valuePath:"dataUrl"},g.E9e=r=function(t){return t&&"string"==typeof t.name&&(t.blob&&t.blob instanceof Blob||t.dataUrl&&"string"==typeof t.dataUrl)},m=function(t){var n,n,e,e={name:""};return"string"==typeof t?e.dataUrl=t:t instanceof Blob?(e.blob=t,e.name=null!=(n=t.name)?n:""):t instanceof Object&&(e=t)&&t.hasOwnProperty("blob")&&t.blob instanceof Blob&&!t.hasOwnProperty("name")&&(t.name=null!=(n=t.blob.name)?n:""),(0,g.E9e)(e)?e:void 0},g.Hne=o=function(t){var n=crypto&&crypto.randomUUID&&crypto.randomUUID();return e.Common.lt.ht(n)&&(n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})),n=32===t?n.split("-").join(""):n},g.x9e=a=function(t,u,s,c){var f,l,h,d,v,t,n,e,i,r,t,o,a,a,f=t.row,l=t.col,h=t.value,d=t.oldValue,v=t.valuePath,t=t.fileGUID,n=u.VTe(),e=u.Ut.getFileGUID(f,l),i=n.Wxn(e);i&&n.FAe([e]),(r=m(h))?(t=null!=t?t:(0,g.Hne)(),o=function(t){var n,n,e,i,r,o,a,n,e,n,e,e=t.name,i=t.dataUrl;c&&(t[r=null===(r=v)?"cellValue":v]=h),o=!1,a=u.BO(),-1=a&&l.rowCount<=1&&l.col>=s&&s===l.col&&(f=o.nn(s,c),1i&&(r=(n.height-i-e)/2+e):2===t.vAlign&&(r=n.height-i-e),r}function tt(t,n,e,i,r){var o,a,u,s;if(t._direction===Z.vertical){if(t._isFlowLayout){if(r!==h)for(o=t._items.length;0l.x+l.width||r.y>l.y+l.height?y[t]=null:y[t]=r},C=0;Ce.DQ&&t<=e.RQ&&i.dynamicSize()&&(e.RQ+=n),e.AQ()},L.prototype.qO=function(t,n){var e=this,i=e.TZ;t<=e.NQ?i.dynamicMove()&&(e.NQ+=n,e.jQ+=n):t>e.NQ&&t<=e.jQ&&i.dynamicSize()&&(e.jQ+=n),e.AQ()},L.prototype.xP=function(t,n){var e,i,r,e=this,i=e.TZ,r=t+n-1;tl.x+R(l)&&(a+=l.x+R(l)-1-s)),(a=N(R(l)-1,a))<0&&(s=i.Mf,d=i.yZ,v=s.r6(s.getColumnCount()-s.lL),g=s.getViewportRightColumn(1),!1===s.Vy)&&d===v&&d===g&&(u=l.x+R(l)-1-i.width(),a=i.width()),rl.y+E(l)&&(o+=l.y+E(l)-1-c)),o=N(E(l)-1,o),(s=(0,I.GC$)(e.qW)).css({left:u,top:r}),v=s.height(),d=s.width(),g=!1,(f=e.JQ(a,o))&&(a=f.adjustedWidth,o=f.adjustedHeight,g=!n&&f.needReposition),o<=0&&v<=0||a<=0&&d<=0||((1e.x?_(n.left+i.left,n.top+i.top):n.top+i.top+u.height()h.x+R(h)&&(i-=f-(h.x+R(h))),i=N(R(h),i),nh.y+E(h)&&(s-=l-(h.y+E(h))),s=N(E(h),s),(0,I.GC$)(t.$W).css(p,c).css(b,n).css(g,i).css(w,s),m.$l(t.tQ,i,s),e.x=e.x-c,e.y=e.y-n,u.x=u.x-c,u.y=u.y-n,t.eK(e,u)},L.prototype.eK=function(t,n){var e,i,r,e,e=this;e.iK||(e.iK=e.tQ.getContext("2d")),i=e.iK,r=e.TZ.borderColor(),i.strokeStyle=r,i.clearRect(0,0,m.Xl(e.tQ),m.ql(e.tQ)),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(n.x,n.y),i.stroke(),i.save(),nt.Yl(i,t.x,t.y),i.fillStyle=r,i.beginPath(),e=z(n.y-t.y,n.x-t.x),i.rotate(e),i.moveTo(0,0),i.lineTo(7,-4),i.lineTo(7,4),i.lineTo(0,0),i.fill(),nt.Yl(i,-t.x,-t.y),i.closePath(),i.restore()},L.prototype.UQ=function(){var t,n,e,i,r,o,a,u,s,c,t=this,n=t.TZ,e=n.Mf;t.rK=t.TZ.commentState(),t.oK||(t.oK=t.SW.getContext("2d")),i=t.oK,r=m.Xl(t.SW),o=m.ql(t.SW),a=(0,I.GC$)(t.TW).outerWidth(),u=(0,I.GC$)(t.TW).outerHeight(),s=t.eQ,i.clearRect(0,0,r,o),t.TZ.showShadow()&&(t.aK(i,r,o),i.clearRect(s,s,r-(c=2*(s+2)),o-c),t.uK(i,s,a,u)),kn(e,n)&&t.sK(i,s,r,o,a,u),i.restore()},L.prototype.uK=function(t,n,e,i){t.save(),t.fillStyle=fn,t.fillRect(n+2,i+n,e,2),t.fillRect(e+n,n+2,2,i),t.restore()},L.prototype.aK=function(t,n,e){var i,r,o;switch(t.save(),t.strokeStyle=fn,this.rK){case D.active:for(t.beginPath(),r=0;r=t.row&&a=t.col&&oi.zIndex())&&(i=o);return i?{x:t,y:n,comment:i,area:e.GK(i,t,n)?Yt:Zt}:d},e.prototype.nK=function(t){var n=this,e=n.RK();return t===n.PW?e+2:t===n.MZ?e+1:t.zIndex()},e.prototype.jK=function(){this.UW.forEach(function(t){t.TQ()})},e.prototype.fromJSON=function(t,n){var e,i,r,o,e=this;if(t&&0!==t.length){for(i=e.GW=0;it&&(t=a.RQ),a.jQ>n)&&(n=a.jQ);return{lastNonNullRow:t,lastNonNullCol:n}},clearSelection:function(){this.Ut.pI.CZ()},processKeyDown:function(t){var n=this,e=n.Ut.pI.pZ();e&&n.rt.Pi(t.e)&&jn(n,e)&&(e.commentState(2,!0),t.r=!0)},yh:function(t,n,e){var i,t,r,r,o,i,a,u,s,c,f,o,t,l,i=S(t,"legacyDrawing"),t=t.rels,r=e&&!1===e.includeStyles;if(i&&!r){for(r=this,o=t.c_,i=i&&i["r:id"],u=0,s=o;u!1,this.u_e=()=>!1,this.s_e=()=>!1,this.c_e=t=>{this.a_e(t)||(this.f_e?this.l_e():this.h_e())},this.d_e=()=>{this.f_e=this.v_e();var t=document.createElement("div");this.f_e.appendChild(t),t.classList.add("dp-panel"),t.style.position="fixed",t.style.boxShadow=r.CSSUtils.boxShadow.replace("box-shadow:","").replace(";",""),t.style.background=r.CSSVariables.background,t.style.color=r.CSSVariables.color,t.style.width=this.g_e.getBoundingClientRect().width+"px",this.shadowRoot.querySelector(".container").appendChild(this.f_e),window.addEventListener("resize",this.dC),window.addEventListener("mousedown",this.m_e,!0),window.addEventListener("wheel",this.p_e)},this.b_e=()=>{window.removeEventListener("resize",this.dC),window.removeEventListener("mousedown",this.m_e,!0),window.removeEventListener("wheel",this.p_e),this.f_e.remove(),this.f_e=void 0},this.v_e=()=>{var t=document.createElement("div");return t.style.zIndex="1024",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.background="transparent",t.classList.add("dp-panel-root"),t},this.dC=()=>{this.w_e()},this.m_e=t=>{var n,e;!this.f_e||t.target.closest(".sjs-dp-panel-sub-content")||(n=this.g_e.getBoundingClientRect(),e=this.y_e().getBoundingClientRect(),this.C_e(n,t.clientX,t.clientY))||this.C_e(e,t.clientX,t.clientY)||this.l_e()},this.p_e=t=>{var n=this.y_e().getBoundingClientRect();this.C_e(n,t.clientX,t.clientY)||this.l_e()},this.C_e=(t,n,e)=>n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom,this.y_e=()=>this.f_e.querySelector(".dp-panel")}connectedCallback(){this.y4=this.M_e(this.getAttribute("value"));var t=this.getAttribute("label"),n=this.attachShadow({mode:"open"}),e=this.u_e(),i=this.s_e();n.innerHTML=`
@@ -223,7 +223,7 @@ var GC;!function(){var e,i,t;function r(t){var n,n,n=i[t];return void 0!==n||(n=
- `,this.zGt=t.querySelector("sjs-color-saturation"),this.wv=t.querySelector("sjs-color-hue"),this.StV=t.querySelector("sjs-color-alpha"),this.Pq=t.querySelector("sjs-color-fields"),this.V_e=t.querySelector("sjs-color-sets"),this.Z_e=t.querySelector(".preview-color"),this.Kbt(this.y4),this.Q_e()}disconnectedCallback(){this.J_e()}M_e(t){return t?(0,r.tinycolor)(t).toHex8String():"#FFFFFFFF"}}(0,o.vHe)("sjs-color-picker-panel",u)},"./dist/plugins/components/common/dropdowns/color-picker/components/color-sets.js":function(t,n,e){"use strict";var i,n;e.r(n),e.d(n,{ColorSets:function(){return o}}),i=e("./dist/plugins/components/utils/index.js"),n=e("./dist/plugins/components/common/base/index.js");const r=["#D0021BFF","#EC407AFF","#F5A623FF","#F8E71CFF","#8B572AFF","#7ED321FF","#417505FF","#BD10E0FF","#9013FEFF","#4A90E2FF","#50E3C2FF","#B8E986FF","#000000FF","#4A4A4AFF","#9B9B9BFF","#FFFFFFFF"];class o extends n.ComponentBase{constructor(){super(...arguments),this.z_e=t=>{var t;t&&t.length?(this.K_e.style.display="flex",t=t.map(t=>{var t=t.toUpperCase();return`
+ `,this.zGt=t.querySelector("sjs-color-saturation"),this.wv=t.querySelector("sjs-color-hue"),this.StV=t.querySelector("sjs-color-alpha"),this.Pq=t.querySelector("sjs-color-fields"),this.V_e=t.querySelector("sjs-color-sets"),this.Z_e=t.querySelector(".preview-color"),this._x=(0,s.tinycolor)(this.y4),this.Kbt(this.y4),this.Q_e()}disconnectedCallback(){this.J_e()}M_e(t){return t?(0,s.tinycolor)(t).toHex8String():"#FFFFFFFF"}}(0,r.vHe)("sjs-color-picker-panel",a)},"./dist/plugins/components/common/dropdowns/color-picker/components/color-sets.js":function(t,n,e){"use strict";var i,n;e.r(n),e.d(n,{ColorSets:function(){return o}}),i=e("./dist/plugins/components/utils/index.js"),n=e("./dist/plugins/components/common/base/index.js");const r=["#D0021BFF","#EC407AFF","#F5A623FF","#F8E71CFF","#8B572AFF","#7ED321FF","#417505FF","#BD10E0FF","#9013FEFF","#4A90E2FF","#50E3C2FF","#B8E986FF","#000000FF","#4A4A4AFF","#9B9B9BFF","#FFFFFFFF"];class o extends n.ComponentBase{constructor(){super(...arguments),this.z_e=t=>{var t;t&&t.length?(this.K_e.style.display="flex",t=t.map(t=>{var t=t.toUpperCase();return`
`}).join(""),this.K_e.innerHTML=t):this.K_e.style.display="none"},this.Kbt=t=>{var n,n=this.shadowRoot.querySelector(`div[data-color="${null==(n=this.y4)?void 0:n.toUpperCase()}"]`),n=(n&&(n.style.boxShadow="inset 0 0 0 1px rgba(0,0,0,.15)"),super.Kbt(t),this.shadowRoot.querySelector(`div[data-color="${null==t?void 0:t.toUpperCase()}"]`));n&&(n.style.boxShadow="inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t)},this.rpe=t=>{var t=t.target.closest(".swatch");t&&(this.Kbt(t.dataset.color),this.r_e())}}connectedCallback(){var t=this.attachShadow({mode:"open"});t.innerHTML=`